antosdk-apps/SVGEdit/build/debug/svgedit/xdomain-Editor.js
DanyLE 4a62c4d1cf
All checks were successful
gitea-sync/antosdk-apps/pipeline/head This commit looks good
add SVGEdit package
2023-08-17 23:54:41 +02:00

519 lines
2.2 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function _typeof$2(en){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(en){return typeof en}:function(en){return en&&"function"==typeof Symbol&&en.constructor===Symbol&&en!==Symbol.prototype?"symbol":typeof en},_typeof$2(en)}function _classCallCheck(en,tn){if(!(en instanceof tn))throw new TypeError("Cannot call a class as a function")}function _defineProperties(en,tn){for(var nn=0;nn<tn.length;nn++){var rn=tn[nn];rn.enumerable=rn.enumerable||!1,rn.configurable=!0,"value"in rn&&(rn.writable=!0),Object.defineProperty(en,rn.key,rn)}}function _createClass(en,tn,nn){return tn&&_defineProperties(en.prototype,tn),nn&&_defineProperties(en,nn),Object.defineProperty(en,"prototype",{writable:!1}),en}function _assertThisInitialized(en){if(void 0===en)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return en}function _setPrototypeOf(en,tn){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(en,tn){return en.__proto__=tn,en},_setPrototypeOf(en,tn)}function _inherits(en,tn){if("function"!=typeof tn&&null!==tn)throw new TypeError("Super expression must either be null or a function");en.prototype=Object.create(tn&&tn.prototype,{constructor:{value:en,writable:!0,configurable:!0}}),Object.defineProperty(en,"prototype",{writable:!1}),tn&&_setPrototypeOf(en,tn)}function _possibleConstructorReturn(en,tn){if(tn&&("object"===_typeof$2(tn)||"function"==typeof tn))return tn;if(void 0!==tn)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(en)}function _getPrototypeOf(en){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(en){return en.__proto__||Object.getPrototypeOf(en)},_getPrototypeOf(en)}function _defineProperty$2(en,tn,nn){return tn in en?Object.defineProperty(en,tn,{value:nn,enumerable:!0,configurable:!0,writable:!0}):en[tn]=nn,en}function _arrayLikeToArray(en,tn){(null==tn||tn>en.length)&&(tn=en.length);for(var nn=0,rn=new Array(tn);nn<tn;nn++)rn[nn]=en[nn];return rn}function _toArray(en){return function _arrayWithHoles(en){if(Array.isArray(en))return en}(en)||function _iterableToArray(en){if("undefined"!=typeof Symbol&&null!=en[Symbol.iterator]||null!=en["@@iterator"])return Array.from(en)}(en)||function _unsupportedIterableToArray(en,tn){if(en){if("string"==typeof en)return _arrayLikeToArray(en,tn);var nn=Object.prototype.toString.call(en).slice(8,-1);return"Object"===nn&&en.constructor&&(nn=en.constructor.name),"Map"===nn||"Set"===nn?Array.from(en):"Arguments"===nn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nn)?_arrayLikeToArray(en,tn):void 0}}(en)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ownKeys$3(en,tn){var nn=Object.keys(en);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(en);tn&&(rn=rn.filter((function(tn){return Object.getOwnPropertyDescriptor(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread$1(en){for(var tn=1;tn<arguments.length;tn++){var nn=null!=arguments[tn]?arguments[tn]:{};tn%2?ownKeys$3(Object(nn),!0).forEach((function(tn){_defineProperty$2(en,tn,nn[tn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(nn)):ownKeys$3(Object(nn)).forEach((function(tn){Object.defineProperty(en,tn,Object.getOwnPropertyDescriptor(nn,tn))}))}return en}var en={type:"logger",log:function log(en){this.output("log",en)},warn:function warn(en){this.output("warn",en)},error:function error(en){this.output("error",en)},output:function output(en,tn){console&&console[en]&&console[en].apply(console,tn)}},tn=new(function(){function Logger(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,Logger),this.init(en,tn)}return _createClass(Logger,[{key:"init",value:function init(tn){var nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=nn.prefix||"i18next:",this.logger=tn||en,this.options=nn,this.debug=nn.debug}},{key:"setDebug",value:function setDebug(en){this.debug=en}},{key:"log",value:function log(){for(var en=arguments.length,tn=new Array(en),nn=0;nn<en;nn++)tn[nn]=arguments[nn];return this.forward(tn,"log","",!0)}},{key:"warn",value:function warn(){for(var en=arguments.length,tn=new Array(en),nn=0;nn<en;nn++)tn[nn]=arguments[nn];return this.forward(tn,"warn","",!0)}},{key:"error",value:function error(){for(var en=arguments.length,tn=new Array(en),nn=0;nn<en;nn++)tn[nn]=arguments[nn];return this.forward(tn,"error","")}},{key:"deprecate",value:function deprecate(){for(var en=arguments.length,tn=new Array(en),nn=0;nn<en;nn++)tn[nn]=arguments[nn];return this.forward(tn,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function forward(en,tn,nn,rn){return rn&&!this.debug?null:("string"==typeof en[0]&&(en[0]="".concat(nn).concat(this.prefix," ").concat(en[0])),this.logger[tn](en))}},{key:"create",value:function create(en){return new Logger(this.logger,_objectSpread$1(_objectSpread$1({},{prefix:"".concat(this.prefix,":").concat(en,":")}),this.options))}}]),Logger}()),nn=function(){function EventEmitter(){_classCallCheck(this,EventEmitter),this.observers={}}return _createClass(EventEmitter,[{key:"on",value:function on(en,tn){var nn=this;return en.split(" ").forEach((function(en){nn.observers[en]=nn.observers[en]||[],nn.observers[en].push(tn)})),this}},{key:"off",value:function off(en,tn){this.observers[en]&&(tn?this.observers[en]=this.observers[en].filter((function(en){return en!==tn})):delete this.observers[en])}},{key:"emit",value:function emit(en){for(var tn=arguments.length,nn=new Array(tn>1?tn-1:0),rn=1;rn<tn;rn++)nn[rn-1]=arguments[rn];if(this.observers[en]){var an=[].concat(this.observers[en]);an.forEach((function(en){en.apply(void 0,nn)}))}if(this.observers["*"]){var sn=[].concat(this.observers["*"]);sn.forEach((function(tn){tn.apply(tn,[en].concat(nn))}))}}}]),EventEmitter}();function defer(){var en,tn,nn=new Promise((function(nn,rn){en=nn,tn=rn}));return nn.resolve=en,nn.reject=tn,nn}function makeString(en){return null==en?"":""+en}function copy(en,tn,nn){en.forEach((function(en){tn[en]&&(nn[en]=tn[en])}))}function getLastOfPath(en,tn,nn){function cleanKey(en){return en&&en.indexOf("###")>-1?en.replace(/###/g,"."):en}function canNotTraverseDeeper(){return!en||"string"==typeof en}for(var rn="string"!=typeof tn?[].concat(tn):tn.split(".");rn.length>1;){if(canNotTraverseDeeper())return{};var an=cleanKey(rn.shift());!en[an]&&nn&&(en[an]=new nn),en=Object.prototype.hasOwnProperty.call(en,an)?en[an]:{}}return canNotTraverseDeeper()?{}:{obj:en,k:cleanKey(rn.shift())}}function setPath(en,tn,nn){var rn=getLastOfPath(en,tn,Object);rn.obj[rn.k]=nn}function getPath(en,tn){var nn=getLastOfPath(en,tn),rn=nn.obj,an=nn.k;if(rn)return rn[an]}function getPathWithDefaults(en,tn,nn){var rn=getPath(en,nn);return void 0!==rn?rn:getPath(tn,nn)}function deepExtend(en,tn,nn){for(var rn in tn)"__proto__"!==rn&&"constructor"!==rn&&(rn in en?"string"==typeof en[rn]||en[rn]instanceof String||"string"==typeof tn[rn]||tn[rn]instanceof String?nn&&(en[rn]=tn[rn]):deepExtend(en[rn],tn[rn],nn):en[rn]=tn[rn]);return en}function regexEscape$1(en){return en.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var rn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function escape$1(en){return"string"==typeof en?en.replace(/[&<>"'\/]/g,(function(en){return rn[en]})):en}var an="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,sn=[" ",",","?","!",";"];function ownKeys$1$1(en,tn){var nn=Object.keys(en);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(en);tn&&(rn=rn.filter((function(tn){return Object.getOwnPropertyDescriptor(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread$1$1(en){for(var tn=1;tn<arguments.length;tn++){var nn=null!=arguments[tn]?arguments[tn]:{};tn%2?ownKeys$1$1(Object(nn),!0).forEach((function(tn){_defineProperty$2(en,tn,nn[tn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(nn)):ownKeys$1$1(Object(nn)).forEach((function(tn){Object.defineProperty(en,tn,Object.getOwnPropertyDescriptor(nn,tn))}))}return en}function _createSuper(en){var tn=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=_getPrototypeOf(en);if(tn){var an=_getPrototypeOf(this).constructor;nn=Reflect.construct(rn,arguments,an)}else nn=rn.apply(this,arguments);return _possibleConstructorReturn(this,nn)}}function deepFind(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(en){if(en[tn])return en[tn];for(var rn=tn.split(nn),an=en,sn=0;sn<rn.length;++sn){if(!an)return;if("string"==typeof an[rn[sn]]&&sn+1<rn.length)return;if(void 0===an[rn[sn]]){for(var cn=2,An=rn.slice(sn,sn+cn).join(nn),dn=an[An];void 0===dn&&rn.length>sn+cn;)cn++,dn=an[An=rn.slice(sn,sn+cn).join(nn)];if(void 0===dn)return;if(null===dn)return null;if(tn.endsWith(An)){if("string"==typeof dn)return dn;if(An&&"string"==typeof dn[An])return dn[An]}var un=rn.slice(sn+cn).join(nn);return un?deepFind(dn,un,nn):void 0}an=an[rn[sn]]}return an}}var cn=function(en){_inherits(ResourceStore,nn);var tn=_createSuper(ResourceStore);function ResourceStore(en){var rn,sn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return _classCallCheck(this,ResourceStore),rn=tn.call(this),an&&nn.call(_assertThisInitialized(rn)),rn.data=en||{},rn.options=sn,void 0===rn.options.keySeparator&&(rn.options.keySeparator="."),void 0===rn.options.ignoreJSONStructure&&(rn.options.ignoreJSONStructure=!0),rn}return _createClass(ResourceStore,[{key:"addNamespaces",value:function addNamespaces(en){this.options.ns.indexOf(en)<0&&this.options.ns.push(en)}},{key:"removeNamespaces",value:function removeNamespaces(en){var tn=this.options.ns.indexOf(en);tn>-1&&this.options.ns.splice(tn,1)}},{key:"getResource",value:function getResource(en,tn,nn){var rn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},an=void 0!==rn.keySeparator?rn.keySeparator:this.options.keySeparator,sn=void 0!==rn.ignoreJSONStructure?rn.ignoreJSONStructure:this.options.ignoreJSONStructure,cn=[en,tn];nn&&"string"!=typeof nn&&(cn=cn.concat(nn)),nn&&"string"==typeof nn&&(cn=cn.concat(an?nn.split(an):nn)),en.indexOf(".")>-1&&(cn=en.split("."));var An=getPath(this.data,cn);return An||!sn||"string"!=typeof nn?An:deepFind(this.data&&this.data[en]&&this.data[en][tn],nn,an)}},{key:"addResource",value:function addResource(en,tn,nn,rn){var an=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},sn=this.options.keySeparator;void 0===sn&&(sn=".");var cn=[en,tn];nn&&(cn=cn.concat(sn?nn.split(sn):nn)),en.indexOf(".")>-1&&(rn=tn,tn=(cn=en.split("."))[1]),this.addNamespaces(tn),setPath(this.data,cn,rn),an.silent||this.emit("added",en,tn,nn,rn)}},{key:"addResources",value:function addResources(en,tn,nn){var rn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var an in nn)"string"!=typeof nn[an]&&"[object Array]"!==Object.prototype.toString.apply(nn[an])||this.addResource(en,tn,an,nn[an],{silent:!0});rn.silent||this.emit("added",en,tn,nn)}},{key:"addResourceBundle",value:function addResourceBundle(en,tn,nn,rn,an){var sn=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},cn=[en,tn];en.indexOf(".")>-1&&(rn=nn,nn=tn,tn=(cn=en.split("."))[1]),this.addNamespaces(tn);var An=getPath(this.data,cn)||{};rn?deepExtend(An,nn,an):An=_objectSpread$1$1(_objectSpread$1$1({},An),nn),setPath(this.data,cn,An),sn.silent||this.emit("added",en,tn,nn)}},{key:"removeResourceBundle",value:function removeResourceBundle(en,tn){this.hasResourceBundle(en,tn)&&delete this.data[en][tn],this.removeNamespaces(tn),this.emit("removed",en,tn)}},{key:"hasResourceBundle",value:function hasResourceBundle(en,tn){return void 0!==this.getResource(en,tn)}},{key:"getResourceBundle",value:function getResourceBundle(en,tn){return tn||(tn=this.options.defaultNS),"v1"===this.options.compatibilityAPI?_objectSpread$1$1(_objectSpread$1$1({},{}),this.getResource(en,tn)):this.getResource(en,tn)}},{key:"getDataByLanguage",value:function getDataByLanguage(en){return this.data[en]}},{key:"hasLanguageSomeTranslations",value:function hasLanguageSomeTranslations(en){var tn=this.getDataByLanguage(en);return!!(tn&&Object.keys(tn)||[]).find((function(en){return tn[en]&&Object.keys(tn[en]).length>0}))}},{key:"toJSON",value:function toJSON(){return this.data}}]),ResourceStore}(),An={processors:{},addPostProcessor:function addPostProcessor(en){this.processors[en.name]=en},handle:function handle(en,tn,nn,rn,an){var sn=this;return en.forEach((function(en){sn.processors[en]&&(tn=sn.processors[en].process(tn,nn,rn,an))})),tn}};function ownKeys$2$1(en,tn){var nn=Object.keys(en);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(en);tn&&(rn=rn.filter((function(tn){return Object.getOwnPropertyDescriptor(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread$2$1(en){for(var tn=1;tn<arguments.length;tn++){var nn=null!=arguments[tn]?arguments[tn]:{};tn%2?ownKeys$2$1(Object(nn),!0).forEach((function(tn){_defineProperty$2(en,tn,nn[tn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(nn)):ownKeys$2$1(Object(nn)).forEach((function(tn){Object.defineProperty(en,tn,Object.getOwnPropertyDescriptor(nn,tn))}))}return en}function _createSuper$1(en){var tn=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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=_getPrototypeOf(en);if(tn){var an=_getPrototypeOf(this).constructor;nn=Reflect.construct(rn,arguments,an)}else nn=rn.apply(this,arguments);return _possibleConstructorReturn(this,nn)}}var dn={},un=function(en){_inherits(Translator,nn);var rn=_createSuper$1(Translator);function Translator(en){var sn,cn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _classCallCheck(this,Translator),sn=rn.call(this),an&&nn.call(_assertThisInitialized(sn)),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],en,_assertThisInitialized(sn)),sn.options=cn,void 0===sn.options.keySeparator&&(sn.options.keySeparator="."),sn.logger=tn.create("translator"),sn}return _createClass(Translator,[{key:"changeLanguage",value:function changeLanguage(en){en&&(this.language=en)}},{key:"exists",value:function exists(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==en)return!1;var nn=this.resolve(en,tn);return nn&&void 0!==nn.res}},{key:"extractFromKey",value:function extractFromKey(en,tn){var nn=void 0!==tn.nsSeparator?tn.nsSeparator:this.options.nsSeparator;void 0===nn&&(nn=":");var rn=void 0!==tn.keySeparator?tn.keySeparator:this.options.keySeparator,an=tn.ns||this.options.defaultNS||[],cn=nn&&en.indexOf(nn)>-1,An=!(this.options.userDefinedKeySeparator||tn.keySeparator||this.options.userDefinedNsSeparator||tn.nsSeparator||function looksLikeObjectPath(en,tn,nn){tn=tn||"",nn=nn||"";var rn=sn.filter((function(en){return tn.indexOf(en)<0&&nn.indexOf(en)<0}));if(0===rn.length)return!0;var an=new RegExp("(".concat(rn.map((function(en){return"?"===en?"\\?":en})).join("|"),")")),cn=!an.test(en);if(!cn){var An=en.indexOf(nn);An>0&&!an.test(en.substring(0,An))&&(cn=!0)}return cn}(en,nn,rn));if(cn&&!An){var dn=en.match(this.interpolator.nestingRegexp);if(dn&&dn.length>0)return{key:en,namespaces:an};var un=en.split(nn);(nn!==rn||nn===rn&&this.options.ns.indexOf(un[0])>-1)&&(an=un.shift()),en=un.join(rn)}return"string"==typeof an&&(an=[an]),{key:en,namespaces:an}}},{key:"translate",value:function translate(en,tn,nn){var rn=this;if("object"!==_typeof$2(tn)&&this.options.overloadTranslationOptionHandler&&(tn=this.options.overloadTranslationOptionHandler(arguments)),tn||(tn={}),null==en)return"";Array.isArray(en)||(en=[String(en)]);var an=void 0!==tn.returnDetails?tn.returnDetails:this.options.returnDetails,sn=void 0!==tn.keySeparator?tn.keySeparator:this.options.keySeparator,cn=this.extractFromKey(en[en.length-1],tn),An=cn.key,dn=cn.namespaces,un=dn[dn.length-1],pn=tn.lng||this.language,hn=tn.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(pn&&"cimode"===pn.toLowerCase()){if(hn){var gn=tn.nsSeparator||this.options.nsSeparator;return an?(_n.res="".concat(un).concat(gn).concat(An),_n):"".concat(un).concat(gn).concat(An)}return an?(_n.res=An,_n):An}var _n=this.resolve(en,tn),mn=_n&&_n.res,fn=_n&&_n.usedKey||An,yn=_n&&_n.exactUsedKey||An,bn=Object.prototype.toString.apply(mn),vn=["[object Number]","[object Function]","[object RegExp]"],wn=void 0!==tn.joinArrays?tn.joinArrays:this.options.joinArrays,xn=!this.i18nFormat||this.i18nFormat.handleAsObject,kn="string"!=typeof mn&&"boolean"!=typeof mn&&"number"!=typeof mn;if(xn&&mn&&kn&&vn.indexOf(bn)<0&&("string"!=typeof wn||"[object Array]"!==bn)){if(!tn.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Cn=this.options.returnedObjectHandler?this.options.returnedObjectHandler(fn,mn,_objectSpread$2$1(_objectSpread$2$1({},tn),{},{ns:dn})):"key '".concat(An," (").concat(this.language,")' returned an object instead of string.");return an?(_n.res=Cn,_n):Cn}if(sn){var Sn="[object Array]"===bn,Bn=Sn?[]:{},En=Sn?yn:fn;for(var jn in mn)if(Object.prototype.hasOwnProperty.call(mn,jn)){var Ln="".concat(En).concat(sn).concat(jn);Bn[jn]=this.translate(Ln,_objectSpread$2$1(_objectSpread$2$1({},tn),{joinArrays:!1,ns:dn})),Bn[jn]===Ln&&(Bn[jn]=mn[jn])}mn=Bn}}else if(xn&&"string"==typeof wn&&"[object Array]"===bn)(mn=mn.join(wn))&&(mn=this.extendTranslation(mn,en,tn,nn));else{var Pn=!1,Tn=!1,Fn=void 0!==tn.count&&"string"!=typeof tn.count,Un=Translator.hasDefaultValue(tn),Nn=Fn?this.pluralResolver.getSuffix(pn,tn.count,tn):"",In=tn["defaultValue".concat(Nn)]||tn.defaultValue;!this.isValidLookup(mn)&&Un&&(Pn=!0,mn=In),this.isValidLookup(mn)||(Tn=!0,mn=An);var Mn=tn.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Rn=Mn&&Tn?void 0:mn,On=Un&&In!==mn&&this.options.updateMissing;if(Tn||Pn||On){if(this.logger.log(On?"updateKey":"missingKey",pn,un,An,On?In:mn),sn){var Qn=this.resolve(An,_objectSpread$2$1(_objectSpread$2$1({},tn),{},{keySeparator:!1}));Qn&&Qn.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var qn=[],Vn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,tn.lng||this.language);if("fallback"===this.options.saveMissingTo&&Vn&&Vn[0])for(var Gn=0;Gn<Vn.length;Gn++)qn.push(Vn[Gn]);else"all"===this.options.saveMissingTo?qn=this.languageUtils.toResolveHierarchy(tn.lng||this.language):qn.push(tn.lng||this.language);var Dn=function send(en,nn,an){var sn=Un&&an!==mn?an:Rn;rn.options.missingKeyHandler?rn.options.missingKeyHandler(en,un,nn,sn,On,tn):rn.backendConnector&&rn.backendConnector.saveMissing&&rn.backendConnector.saveMissing(en,un,nn,sn,On,tn),rn.emit("missingKey",en,un,nn,mn)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Fn?qn.forEach((function(en){rn.pluralResolver.getSuffixes(en,tn).forEach((function(nn){Dn([en],An+nn,tn["defaultValue".concat(nn)]||In)}))})):Dn(qn,An,In))}mn=this.extendTranslation(mn,en,tn,_n,nn),Tn&&mn===An&&this.options.appendNamespaceToMissingKey&&(mn="".concat(un,":").concat(An)),(Tn||Pn)&&this.options.parseMissingKeyHandler&&(mn="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(un,":").concat(An):An,Pn?mn:void 0):this.options.parseMissingKeyHandler(mn))}return an?(_n.res=mn,_n):mn}},{key:"extendTranslation",value:function extendTranslation(en,tn,nn,rn,an){var sn=this;if(this.i18nFormat&&this.i18nFormat.parse)en=this.i18nFormat.parse(en,_objectSpread$2$1(_objectSpread$2$1({},this.options.interpolation.defaultVariables),nn),rn.usedLng,rn.usedNS,rn.usedKey,{resolved:rn});else if(!nn.skipInterpolation){nn.interpolation&&this.interpolator.init(_objectSpread$2$1(_objectSpread$2$1({},nn),{interpolation:_objectSpread$2$1(_objectSpread$2$1({},this.options.interpolation),nn.interpolation)}));var cn,dn="string"==typeof en&&(nn&&nn.interpolation&&void 0!==nn.interpolation.skipOnVariables?nn.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(dn){var un=en.match(this.interpolator.nestingRegexp);cn=un&&un.length}var pn=nn.replace&&"string"!=typeof nn.replace?nn.replace:nn;if(this.options.interpolation.defaultVariables&&(pn=_objectSpread$2$1(_objectSpread$2$1({},this.options.interpolation.defaultVariables),pn)),en=this.interpolator.interpolate(en,pn,nn.lng||this.language,nn),dn){var hn=en.match(this.interpolator.nestingRegexp);cn<(hn&&hn.length)&&(nn.nest=!1)}!1!==nn.nest&&(en=this.interpolator.nest(en,(function(){for(var en=arguments.length,rn=new Array(en),cn=0;cn<en;cn++)rn[cn]=arguments[cn];return an&&an[0]===rn[0]&&!nn.context?(sn.logger.warn("It seems you are nesting recursively key: ".concat(rn[0]," in key: ").concat(tn[0])),null):sn.translate.apply(sn,rn.concat([tn]))}),nn)),nn.interpolation&&this.interpolator.reset()}var gn=nn.postProcess||this.options.postProcess,_n="string"==typeof gn?[gn]:gn;return null!=en&&_n&&_n.length&&!1!==nn.applyPostProcessor&&(en=An.handle(_n,en,tn,this.options&&this.options.postProcessPassResolved?_objectSpread$2$1({i18nResolved:rn},nn):nn,this)),en}},{key:"resolve",value:function resolve(en){var tn,nn,rn,an,sn,cn=this,An=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof en&&(en=[en]),en.forEach((function(en){if(!cn.isValidLookup(tn)){var un=cn.extractFromKey(en,An),pn=un.key;nn=pn;var hn=un.namespaces;cn.options.fallbackNS&&(hn=hn.concat(cn.options.fallbackNS));var gn=void 0!==An.count&&"string"!=typeof An.count,_n=gn&&!An.ordinal&&0===An.count&&cn.pluralResolver.shouldUseIntlApi(),mn=void 0!==An.context&&("string"==typeof An.context||"number"==typeof An.context)&&""!==An.context,fn=An.lngs?An.lngs:cn.languageUtils.toResolveHierarchy(An.lng||cn.language,An.fallbackLng);hn.forEach((function(en){cn.isValidLookup(tn)||(sn=en,!dn["".concat(fn[0],"-").concat(en)]&&cn.utils&&cn.utils.hasLoadedNamespace&&!cn.utils.hasLoadedNamespace(sn)&&(dn["".concat(fn[0],"-").concat(en)]=!0,cn.logger.warn('key "'.concat(nn,'" for languages "').concat(fn.join(", "),'" won\'t get resolved as namespace "').concat(sn,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),fn.forEach((function(nn){if(!cn.isValidLookup(tn)){an=nn;var sn,dn=[pn];if(cn.i18nFormat&&cn.i18nFormat.addLookupKeys)cn.i18nFormat.addLookupKeys(dn,pn,nn,en,An);else{var un;gn&&(un=cn.pluralResolver.getSuffix(nn,An.count,An));var hn="".concat(cn.options.pluralSeparator,"zero");if(gn&&(dn.push(pn+un),_n&&dn.push(pn+hn)),mn){var fn="".concat(pn).concat(cn.options.contextSeparator).concat(An.context);dn.push(fn),gn&&(dn.push(fn+un),_n&&dn.push(fn+hn))}}for(;sn=dn.pop();)cn.isValidLookup(tn)||(rn=sn,tn=cn.getResource(nn,en,sn,An))}})))}))}})),{res:tn,usedKey:nn,exactUsedKey:rn,usedLng:an,usedNS:sn}}},{key:"isValidLookup",value:function isValidLookup(en){return!(void 0===en||!this.options.returnNull&&null===en||!this.options.returnEmptyString&&""===en)}},{key:"getResource",value:function getResource(en,tn,nn){var rn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(en,tn,nn,rn):this.resourceStore.getResource(en,tn,nn,rn)}}],[{key:"hasDefaultValue",value:function hasDefaultValue(en){var tn="defaultValue";for(var nn in en)if(Object.prototype.hasOwnProperty.call(en,nn)&&tn===nn.substring(0,tn.length)&&void 0!==en[nn])return!0;return!1}}]),Translator}();function capitalize(en){return en.charAt(0).toUpperCase()+en.slice(1)}var pn=function(){function LanguageUtil(en){_classCallCheck(this,LanguageUtil),this.options=en,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tn.create("languageUtils")}return _createClass(LanguageUtil,[{key:"getScriptPartFromCode",value:function getScriptPartFromCode(en){if(!en||en.indexOf("-")<0)return null;var tn=en.split("-");return 2===tn.length?null:(tn.pop(),"x"===tn[tn.length-1].toLowerCase()?null:this.formatLanguageCode(tn.join("-")))}},{key:"getLanguagePartFromCode",value:function getLanguagePartFromCode(en){if(!en||en.indexOf("-")<0)return en;var tn=en.split("-");return this.formatLanguageCode(tn[0])}},{key:"formatLanguageCode",value:function formatLanguageCode(en){if("string"==typeof en&&en.indexOf("-")>-1){var tn=["hans","hant","latn","cyrl","cans","mong","arab"],nn=en.split("-");return this.options.lowerCaseLng?nn=nn.map((function(en){return en.toLowerCase()})):2===nn.length?(nn[0]=nn[0].toLowerCase(),nn[1]=nn[1].toUpperCase(),tn.indexOf(nn[1].toLowerCase())>-1&&(nn[1]=capitalize(nn[1].toLowerCase()))):3===nn.length&&(nn[0]=nn[0].toLowerCase(),2===nn[1].length&&(nn[1]=nn[1].toUpperCase()),"sgn"!==nn[0]&&2===nn[2].length&&(nn[2]=nn[2].toUpperCase()),tn.indexOf(nn[1].toLowerCase())>-1&&(nn[1]=capitalize(nn[1].toLowerCase())),tn.indexOf(nn[2].toLowerCase())>-1&&(nn[2]=capitalize(nn[2].toLowerCase()))),nn.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?en.toLowerCase():en}},{key:"isSupportedCode",value:function isSupportedCode(en){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(en=this.getLanguagePartFromCode(en)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(en)>-1}},{key:"getBestMatchFromCodes",value:function getBestMatchFromCodes(en){var tn,nn=this;return en?(en.forEach((function(en){if(!tn){var rn=nn.formatLanguageCode(en);nn.options.supportedLngs&&!nn.isSupportedCode(rn)||(tn=rn)}})),!tn&&this.options.supportedLngs&&en.forEach((function(en){if(!tn){var rn=nn.getLanguagePartFromCode(en);if(nn.isSupportedCode(rn))return tn=rn;tn=nn.options.supportedLngs.find((function(en){if(0===en.indexOf(rn))return en}))}})),tn||(tn=this.getFallbackCodes(this.options.fallbackLng)[0]),tn):null}},{key:"getFallbackCodes",value:function getFallbackCodes(en,tn){if(!en)return[];if("function"==typeof en&&(en=en(tn)),"string"==typeof en&&(en=[en]),"[object Array]"===Object.prototype.toString.apply(en))return en;if(!tn)return en.default||[];var nn=en[tn];return nn||(nn=en[this.getScriptPartFromCode(tn)]),nn||(nn=en[this.formatLanguageCode(tn)]),nn||(nn=en[this.getLanguagePartFromCode(tn)]),nn||(nn=en.default),nn||[]}},{key:"toResolveHierarchy",value:function toResolveHierarchy(en,tn){var nn=this,rn=this.getFallbackCodes(tn||this.options.fallbackLng||[],en),an=[],sn=function addCode(en){en&&(nn.isSupportedCode(en)?an.push(en):nn.logger.warn("rejecting language code not found in supportedLngs: ".concat(en)))};return"string"==typeof en&&en.indexOf("-")>-1?("languageOnly"!==this.options.load&&sn(this.formatLanguageCode(en)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&sn(this.getScriptPartFromCode(en)),"currentOnly"!==this.options.load&&sn(this.getLanguagePartFromCode(en))):"string"==typeof en&&sn(this.formatLanguageCode(en)),rn.forEach((function(en){an.indexOf(en)<0&&sn(nn.formatLanguageCode(en))})),an}}]),LanguageUtil}(),hn=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],gn={1:function _(en){return Number(en>1)},2:function _(en){return Number(1!=en)},3:function _(en){return 0},4:function _(en){return Number(en%10==1&&en%100!=11?0:en%10>=2&&en%10<=4&&(en%100<10||en%100>=20)?1:2)},5:function _(en){return Number(0==en?0:1==en?1:2==en?2:en%100>=3&&en%100<=10?3:en%100>=11?4:5)},6:function _(en){return Number(1==en?0:en>=2&&en<=4?1:2)},7:function _(en){return Number(1==en?0:en%10>=2&&en%10<=4&&(en%100<10||en%100>=20)?1:2)},8:function _(en){return Number(1==en?0:2==en?1:8!=en&&11!=en?2:3)},9:function _(en){return Number(en>=2)},10:function _(en){return Number(1==en?0:2==en?1:en<7?2:en<11?3:4)},11:function _(en){return Number(1==en||11==en?0:2==en||12==en?1:en>2&&en<20?2:3)},12:function _(en){return Number(en%10!=1||en%100==11)},13:function _(en){return Number(0!==en)},14:function _(en){return Number(1==en?0:2==en?1:3==en?2:3)},15:function _(en){return Number(en%10==1&&en%100!=11?0:en%10>=2&&(en%100<10||en%100>=20)?1:2)},16:function _(en){return Number(en%10==1&&en%100!=11?0:0!==en?1:2)},17:function _(en){return Number(1==en||en%10==1&&en%100!=11?0:1)},18:function _(en){return Number(0==en?0:1==en?1:2)},19:function _(en){return Number(1==en?0:0==en||en%100>1&&en%100<11?1:en%100>10&&en%100<20?2:3)},20:function _(en){return Number(1==en?0:0==en||en%100>0&&en%100<20?1:2)},21:function _(en){return Number(en%100==1?1:en%100==2?2:en%100==3||en%100==4?3:0)},22:function _(en){return Number(1==en?0:2==en?1:(en<0||en>10)&&en%10==0?2:3)}},_n=["v1","v2","v3"],mn={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){var en={};return hn.forEach((function(tn){tn.lngs.forEach((function(nn){en[nn]={numbers:tn.nr,plurals:gn[tn.fc]}}))})),en}var fn=function(){function PluralResolver(en){var nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,PluralResolver),this.languageUtils=en,this.options=nn,this.logger=tn.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}return _createClass(PluralResolver,[{key:"addRule",value:function addRule(en,tn){this.rules[en]=tn}},{key:"getRule",value:function getRule(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(en,{type:tn.ordinal?"ordinal":"cardinal"})}catch(en){return}return this.rules[en]||this.rules[this.languageUtils.getLanguagePartFromCode(en)]}},{key:"needsPlural",value:function needsPlural(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nn=this.getRule(en,tn);return this.shouldUseIntlApi()?nn&&nn.resolvedOptions().pluralCategories.length>1:nn&&nn.numbers.length>1}},{key:"getPluralFormsOfKey",value:function getPluralFormsOfKey(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(en,nn).map((function(en){return"".concat(tn).concat(en)}))}},{key:"getSuffixes",value:function getSuffixes(en){var tn=this,nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rn=this.getRule(en,nn);return rn?this.shouldUseIntlApi()?rn.resolvedOptions().pluralCategories.sort((function(en,tn){return mn[en]-mn[tn]})).map((function(en){return"".concat(tn.options.prepend).concat(en)})):rn.numbers.map((function(rn){return tn.getSuffix(en,rn,nn)})):[]}},{key:"getSuffix",value:function getSuffix(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},rn=this.getRule(en,nn);return rn?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(rn.select(tn)):this.getSuffixRetroCompatible(rn,tn):(this.logger.warn("no plural rule found for: ".concat(en)),"")}},{key:"getSuffixRetroCompatible",value:function getSuffixRetroCompatible(en,tn){var nn=this,rn=en.noAbs?en.plurals(tn):en.plurals(Math.abs(tn)),an=en.numbers[rn];this.options.simplifyPluralSuffix&&2===en.numbers.length&&1===en.numbers[0]&&(2===an?an="plural":1===an&&(an=""));var sn=function returnSuffix(){return nn.options.prepend&&an.toString()?nn.options.prepend+an.toString():an.toString()};return"v1"===this.options.compatibilityJSON?1===an?"":"number"==typeof an?"_plural_".concat(an.toString()):sn():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===en.numbers.length&&1===en.numbers[0]?sn():this.options.prepend&&rn.toString()?this.options.prepend+rn.toString():rn.toString()}},{key:"shouldUseIntlApi",value:function shouldUseIntlApi(){return!_n.includes(this.options.compatibilityJSON)}}]),PluralResolver}();function ownKeys$3$1(en,tn){var nn=Object.keys(en);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(en);tn&&(rn=rn.filter((function(tn){return Object.getOwnPropertyDescriptor(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread$3(en){for(var tn=1;tn<arguments.length;tn++){var nn=null!=arguments[tn]?arguments[tn]:{};tn%2?ownKeys$3$1(Object(nn),!0).forEach((function(tn){_defineProperty$2(en,tn,nn[tn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(nn)):ownKeys$3$1(Object(nn)).forEach((function(tn){Object.defineProperty(en,tn,Object.getOwnPropertyDescriptor(nn,tn))}))}return en}var yn=function(){function Interpolator(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,Interpolator),this.logger=tn.create("interpolator"),this.options=en,this.format=en.interpolation&&en.interpolation.format||function(en){return en},this.init(en)}return _createClass(Interpolator,[{key:"init",value:function init(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};en.interpolation||(en.interpolation={escapeValue:!0});var tn=en.interpolation;this.escape=void 0!==tn.escape?tn.escape:escape$1,this.escapeValue=void 0===tn.escapeValue||tn.escapeValue,this.useRawValueToEscape=void 0!==tn.useRawValueToEscape&&tn.useRawValueToEscape,this.prefix=tn.prefix?regexEscape$1(tn.prefix):tn.prefixEscaped||"{{",this.suffix=tn.suffix?regexEscape$1(tn.suffix):tn.suffixEscaped||"}}",this.formatSeparator=tn.formatSeparator?tn.formatSeparator:tn.formatSeparator||",",this.unescapePrefix=tn.unescapeSuffix?"":tn.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":tn.unescapeSuffix||"",this.nestingPrefix=tn.nestingPrefix?regexEscape$1(tn.nestingPrefix):tn.nestingPrefixEscaped||regexEscape$1("$t("),this.nestingSuffix=tn.nestingSuffix?regexEscape$1(tn.nestingSuffix):tn.nestingSuffixEscaped||regexEscape$1(")"),this.nestingOptionsSeparator=tn.nestingOptionsSeparator?tn.nestingOptionsSeparator:tn.nestingOptionsSeparator||",",this.maxReplaces=tn.maxReplaces?tn.maxReplaces:1e3,this.alwaysFormat=void 0!==tn.alwaysFormat&&tn.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function reset(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function resetRegExp(){var en="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(en,"g");var tn="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(tn,"g");var nn="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(nn,"g")}},{key:"interpolate",value:function interpolate(en,tn,nn,rn){var an,sn,cn,An=this,dn=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function regexSafe(en){return en.replace(/\$/g,"$$$$")}var un=function handleFormat(en){if(en.indexOf(An.formatSeparator)<0){var an=getPathWithDefaults(tn,dn,en);return An.alwaysFormat?An.format(an,void 0,nn,_objectSpread$3(_objectSpread$3(_objectSpread$3({},rn),tn),{},{interpolationkey:en})):an}var sn=en.split(An.formatSeparator),cn=sn.shift().trim(),un=sn.join(An.formatSeparator).trim();return An.format(getPathWithDefaults(tn,dn,cn),un,nn,_objectSpread$3(_objectSpread$3(_objectSpread$3({},rn),tn),{},{interpolationkey:cn}))};this.resetRegExp();var pn=rn&&rn.missingInterpolationHandler||this.options.missingInterpolationHandler,hn=rn&&rn.interpolation&&void 0!==rn.interpolation.skipOnVariables?rn.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function safeValue(en){return regexSafe(en)}},{regex:this.regexp,safeValue:function safeValue(en){return An.escapeValue?regexSafe(An.escape(en)):regexSafe(en)}}].forEach((function(tn){for(cn=0;an=tn.regex.exec(en);){var nn=an[1].trim();if(void 0===(sn=un(nn)))if("function"==typeof pn){var dn=pn(en,an,rn);sn="string"==typeof dn?dn:""}else if(rn&&rn.hasOwnProperty(nn))sn="";else{if(hn){sn=an[0];continue}An.logger.warn("missed to pass in variable ".concat(nn," for interpolating ").concat(en)),sn=""}else"string"==typeof sn||An.useRawValueToEscape||(sn=makeString(sn));var gn=tn.safeValue(sn);if(en=en.replace(an[0],gn),hn?(tn.regex.lastIndex+=sn.length,tn.regex.lastIndex-=an[0].length):tn.regex.lastIndex=0,++cn>=An.maxReplaces)break}})),en}},{key:"nest",value:function nest(en,tn){var nn,rn,an=this,sn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},cn=_objectSpread$3({},sn);function handleHasOptions(en,tn){var nn=this.nestingOptionsSeparator;if(en.indexOf(nn)<0)return en;var rn=en.split(new RegExp("".concat(nn,"[ ]*{"))),an="{".concat(rn[1]);en=rn[0],an=(an=this.interpolate(an,cn)).replace(/'/g,'"');try{cn=JSON.parse(an),tn&&(cn=_objectSpread$3(_objectSpread$3({},tn),cn))}catch(tn){return this.logger.warn("failed parsing options string in nesting for key ".concat(en),tn),"".concat(en).concat(nn).concat(an)}return delete cn.defaultValue,en}for(cn.applyPostProcessor=!1,delete cn.defaultValue;nn=this.nestingRegexp.exec(en);){var An=[],dn=!1;if(-1!==nn[0].indexOf(this.formatSeparator)&&!/{.*}/.test(nn[1])){var un=nn[1].split(this.formatSeparator).map((function(en){return en.trim()}));nn[1]=un.shift(),An=un,dn=!0}if((rn=tn(handleHasOptions.call(this,nn[1].trim(),cn),cn))&&nn[0]===en&&"string"!=typeof rn)return rn;"string"!=typeof rn&&(rn=makeString(rn)),rn||(this.logger.warn("missed to resolve ".concat(nn[1]," for nesting ").concat(en)),rn=""),dn&&(rn=An.reduce((function(en,tn){return an.format(en,tn,sn.lng,_objectSpread$3(_objectSpread$3({},sn),{},{interpolationkey:nn[1].trim()}))}),rn.trim())),en=en.replace(nn[0],rn),this.regexp.lastIndex=0}return en}}]),Interpolator}();function ownKeys$4(en,tn){var nn=Object.keys(en);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(en);tn&&(rn=rn.filter((function(tn){return Object.getOwnPropertyDescriptor(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread$4(en){for(var tn=1;tn<arguments.length;tn++){var nn=null!=arguments[tn]?arguments[tn]:{};tn%2?ownKeys$4(Object(nn),!0).forEach((function(tn){_defineProperty$2(en,tn,nn[tn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(nn)):ownKeys$4(Object(nn)).forEach((function(tn){Object.defineProperty(en,tn,Object.getOwnPropertyDescriptor(nn,tn))}))}return en}var bn=function(){function Formatter(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,Formatter),this.logger=tn.create("formatter"),this.options=en,this.formats={number:function number(en,tn,nn){return new Intl.NumberFormat(tn,nn).format(en)},currency:function currency(en,tn,nn){return new Intl.NumberFormat(tn,_objectSpread$4(_objectSpread$4({},nn),{},{style:"currency"})).format(en)},datetime:function datetime(en,tn,nn){return new Intl.DateTimeFormat(tn,_objectSpread$4({},nn)).format(en)},relativetime:function relativetime(en,tn,nn){return new Intl.RelativeTimeFormat(tn,_objectSpread$4({},nn)).format(en,nn.range||"day")},list:function list(en,tn,nn){return new Intl.ListFormat(tn,_objectSpread$4({},nn)).format(en)}},this.init(en)}return _createClass(Formatter,[{key:"init",value:function init(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},nn=tn.interpolation;this.formatSeparator=nn.formatSeparator?nn.formatSeparator:nn.formatSeparator||","}},{key:"add",value:function add(en,tn){this.formats[en.toLowerCase().trim()]=tn}},{key:"format",value:function format(en,tn,nn,rn){var an=this,sn=tn.split(this.formatSeparator).reduce((function(en,tn){var sn=function parseFormatStr(en){var tn=en.toLowerCase().trim(),nn={};if(en.indexOf("(")>-1){var rn=en.split("(");tn=rn[0].toLowerCase().trim();var an=rn[1].substring(0,rn[1].length-1);"currency"===tn&&an.indexOf(":")<0?nn.currency||(nn.currency=an.trim()):"relativetime"===tn&&an.indexOf(":")<0?nn.range||(nn.range=an.trim()):an.split(";").forEach((function(en){if(en){var tn=_toArray(en.split(":")),rn=tn[0],an=tn.slice(1).join(":").trim().replace(/^'+|'+$/g,"");nn[rn.trim()]||(nn[rn.trim()]=an),"false"===an&&(nn[rn.trim()]=!1),"true"===an&&(nn[rn.trim()]=!0),isNaN(an)||(nn[rn.trim()]=parseInt(an,10))}}))}return{formatName:tn,formatOptions:nn}}(tn),cn=sn.formatName,An=sn.formatOptions;if(an.formats[cn]){var dn=en;try{var un=rn&&rn.formatParams&&rn.formatParams[rn.interpolationkey]||{},pn=un.locale||un.lng||rn.locale||rn.lng||nn;dn=an.formats[cn](en,pn,_objectSpread$4(_objectSpread$4(_objectSpread$4({},An),rn),un))}catch(en){an.logger.warn(en)}return dn}return an.logger.warn("there was no format function for ".concat(cn)),en}),en);return sn}}]),Formatter}();function ownKeys$5(en,tn){var nn=Object.keys(en);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(en);tn&&(rn=rn.filter((function(tn){return Object.getOwnPropertyDescriptor(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread$5(en){for(var tn=1;tn<arguments.length;tn++){var nn=null!=arguments[tn]?arguments[tn]:{};tn%2?ownKeys$5(Object(nn),!0).forEach((function(tn){_defineProperty$2(en,tn,nn[tn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(nn)):ownKeys$5(Object(nn)).forEach((function(tn){Object.defineProperty(en,tn,Object.getOwnPropertyDescriptor(nn,tn))}))}return en}function _createSuper$2(en){var tn=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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=_getPrototypeOf(en);if(tn){var an=_getPrototypeOf(this).constructor;nn=Reflect.construct(rn,arguments,an)}else nn=rn.apply(this,arguments);return _possibleConstructorReturn(this,nn)}}var vn=function(en){_inherits(Connector,nn);var rn=_createSuper$2(Connector);function Connector(en,sn,cn){var An,dn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _classCallCheck(this,Connector),An=rn.call(this),an&&nn.call(_assertThisInitialized(An)),An.backend=en,An.store=sn,An.services=cn,An.languageUtils=cn.languageUtils,An.options=dn,An.logger=tn.create("backendConnector"),An.waitingReads=[],An.maxParallelReads=dn.maxParallelReads||10,An.readingCalls=0,An.maxRetries=dn.maxRetries>=0?dn.maxRetries:5,An.retryTimeout=dn.retryTimeout>=1?dn.retryTimeout:350,An.state={},An.queue=[],An.backend&&An.backend.init&&An.backend.init(cn,dn.backend,dn),An}return _createClass(Connector,[{key:"queueLoad",value:function queueLoad(en,tn,nn,rn){var an=this,sn={},cn={},An={},dn={};return en.forEach((function(en){var rn=!0;tn.forEach((function(tn){var An="".concat(en,"|").concat(tn);!nn.reload&&an.store.hasResourceBundle(en,tn)?an.state[An]=2:an.state[An]<0||(1===an.state[An]?void 0===cn[An]&&(cn[An]=!0):(an.state[An]=1,rn=!1,void 0===cn[An]&&(cn[An]=!0),void 0===sn[An]&&(sn[An]=!0),void 0===dn[tn]&&(dn[tn]=!0)))})),rn||(An[en]=!0)})),(Object.keys(sn).length||Object.keys(cn).length)&&this.queue.push({pending:cn,pendingCount:Object.keys(cn).length,loaded:{},errors:[],callback:rn}),{toLoad:Object.keys(sn),pending:Object.keys(cn),toLoadLanguages:Object.keys(An),toLoadNamespaces:Object.keys(dn)}}},{key:"loaded",value:function loaded(en,tn,nn){var rn=en.split("|"),an=rn[0],sn=rn[1];tn&&this.emit("failedLoading",an,sn,tn),nn&&this.store.addResourceBundle(an,sn,nn),this.state[en]=tn?-1:2;var loaded={};this.queue.forEach((function(nn){!function pushPath(en,tn,nn,rn){var an=getLastOfPath(en,tn,Object),sn=an.obj,cn=an.k;sn[cn]=sn[cn]||[],rn&&(sn[cn]=sn[cn].concat(nn)),rn||sn[cn].push(nn)}(nn.loaded,[an],sn),function removePending(en,tn){void 0!==en.pending[tn]&&(delete en.pending[tn],en.pendingCount--)}(nn,en),tn&&nn.errors.push(tn),0!==nn.pendingCount||nn.done||(Object.keys(nn.loaded).forEach((function(en){loaded[en]||(loaded[en]={});var tn=nn.loaded[en];tn.length&&tn.forEach((function(tn){void 0===loaded[en][tn]&&(loaded[en][tn]=!0)}))})),nn.done=!0,nn.errors.length?nn.callback(nn.errors):nn.callback())})),this.emit("loaded",loaded),this.queue=this.queue.filter((function(en){return!en.done}))}},{key:"read",value:function read(en,tn,nn){var rn=this,an=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,sn=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,cn=arguments.length>5?arguments[5]:void 0;return en.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:en,ns:tn,fcName:nn,tried:an,wait:sn,callback:cn}):(this.readingCalls++,this.backend[nn](en,tn,(function(An,dn){if(rn.readingCalls--,rn.waitingReads.length>0){var un=rn.waitingReads.shift();rn.read(un.lng,un.ns,un.fcName,un.tried,un.wait,un.callback)}An&&dn&&an<rn.maxRetries?setTimeout((function(){rn.read.call(rn,en,tn,nn,an+1,2*sn,cn)}),sn):cn(An,dn)}))):cn(null,{})}},{key:"prepareLoading",value:function prepareLoading(en,tn){var nn=this,rn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},an=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),an&&an();"string"==typeof en&&(en=this.languageUtils.toResolveHierarchy(en)),"string"==typeof tn&&(tn=[tn]);var sn=this.queueLoad(en,tn,rn,an);if(!sn.toLoad.length)return sn.pending.length||an(),null;sn.toLoad.forEach((function(en){nn.loadOne(en)}))}},{key:"load",value:function load(en,tn,nn){this.prepareLoading(en,tn,{},nn)}},{key:"reload",value:function reload(en,tn,nn){this.prepareLoading(en,tn,{reload:!0},nn)}},{key:"loadOne",value:function loadOne(en){var tn=this,nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",rn=en.split("|"),an=rn[0],sn=rn[1];this.read(an,sn,"read",void 0,void 0,(function(rn,cn){rn&&tn.logger.warn("".concat(nn,"loading namespace ").concat(sn," for language ").concat(an," failed"),rn),!rn&&cn&&tn.logger.log("".concat(nn,"loaded namespace ").concat(sn," for language ").concat(an),cn),tn.loaded(en,rn,cn)}))}},{key:"saveMissing",value:function saveMissing(en,tn,nn,rn,an){var sn=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(tn)?this.logger.warn('did not save key "'.concat(nn,'" as the namespace "').concat(tn,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=nn&&""!==nn&&(this.backend&&this.backend.create&&this.backend.create(en,tn,nn,rn,null,_objectSpread$5(_objectSpread$5({},sn),{},{isUpdate:an})),en&&en[0]&&this.store.addResource(en[0],tn,nn,rn))}}]),Connector}();function get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function handle(en){var tn={};if("object"===_typeof$2(en[1])&&(tn=en[1]),"string"==typeof en[1]&&(tn.defaultValue=en[1]),"string"==typeof en[2]&&(tn.tDescription=en[2]),"object"===_typeof$2(en[2])||"object"===_typeof$2(en[3])){var nn=en[3]||en[2];Object.keys(nn).forEach((function(en){tn[en]=nn[en]}))}return tn},interpolation:{escapeValue:!0,format:function format(en,tn,nn,rn){return en},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(en){return"string"==typeof en.ns&&(en.ns=[en.ns]),"string"==typeof en.fallbackLng&&(en.fallbackLng=[en.fallbackLng]),"string"==typeof en.fallbackNS&&(en.fallbackNS=[en.fallbackNS]),en.supportedLngs&&en.supportedLngs.indexOf("cimode")<0&&(en.supportedLngs=en.supportedLngs.concat(["cimode"])),en}function ownKeys$6(en,tn){var nn=Object.keys(en);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(en);tn&&(rn=rn.filter((function(tn){return Object.getOwnPropertyDescriptor(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread$6(en){for(var tn=1;tn<arguments.length;tn++){var nn=null!=arguments[tn]?arguments[tn]:{};tn%2?ownKeys$6(Object(nn),!0).forEach((function(tn){_defineProperty$2(en,tn,nn[tn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(nn)):ownKeys$6(Object(nn)).forEach((function(tn){Object.defineProperty(en,tn,Object.getOwnPropertyDescriptor(nn,tn))}))}return en}function _createSuper$3(en){var tn=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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=_getPrototypeOf(en);if(tn){var an=_getPrototypeOf(this).constructor;nn=Reflect.construct(rn,arguments,an)}else nn=rn.apply(this,arguments);return _possibleConstructorReturn(this,nn)}}function noop$2(){}function bindMemberFunctions(en){Object.getOwnPropertyNames(Object.getPrototypeOf(en)).forEach((function(tn){"function"==typeof en[tn]&&(en[tn]=en[tn].bind(en))}))}var wn=function(en){_inherits(I18n,nn);var rn=_createSuper$3(I18n);function I18n(){var en,sn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},cn=arguments.length>1?arguments[1]:void 0;if(_classCallCheck(this,I18n),en=rn.call(this),an&&nn.call(_assertThisInitialized(en)),en.options=transformOptions(sn),en.services={},en.logger=tn,en.modules={external:[]},bindMemberFunctions(_assertThisInitialized(en)),cn&&!en.isInitialized&&!sn.isClone){if(!en.options.initImmediate)return en.init(sn,cn),_possibleConstructorReturn(en,_assertThisInitialized(en));setTimeout((function(){en.init(sn,cn)}),0)}return en}return _createClass(I18n,[{key:"init",value:function init(){var en=this,nn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},rn=arguments.length>1?arguments[1]:void 0;"function"==typeof nn&&(rn=nn,nn={}),!nn.defaultNS&&nn.ns&&("string"==typeof nn.ns?nn.defaultNS=nn.ns:nn.ns.indexOf("translation")<0&&(nn.defaultNS=nn.ns[0]));var an=get();function createClassOnDemand(en){return en?"function"==typeof en?new en:en:null}if(this.options=_objectSpread$6(_objectSpread$6(_objectSpread$6({},an),this.options),transformOptions(nn)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=_objectSpread$6(_objectSpread$6({},an.interpolation),this.options.interpolation)),void 0!==nn.keySeparator&&(this.options.userDefinedKeySeparator=nn.keySeparator),void 0!==nn.nsSeparator&&(this.options.userDefinedNsSeparator=nn.nsSeparator),!this.options.isClone){var sn;this.modules.logger?tn.init(createClassOnDemand(this.modules.logger),this.options):tn.init(null,this.options),this.modules.formatter?sn=this.modules.formatter:"undefined"!=typeof Intl&&(sn=bn);var An=new pn(this.options);this.store=new cn(this.options.resources,this.options);var dn=this.services;dn.logger=tn,dn.resourceStore=this.store,dn.languageUtils=An,dn.pluralResolver=new fn(An,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!sn||this.options.interpolation.format&&this.options.interpolation.format!==an.interpolation.format||(dn.formatter=createClassOnDemand(sn),dn.formatter.init(dn,this.options),this.options.interpolation.format=dn.formatter.format.bind(dn.formatter)),dn.interpolator=new yn(this.options),dn.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},dn.backendConnector=new vn(createClassOnDemand(this.modules.backend),dn.resourceStore,dn,this.options),dn.backendConnector.on("*",(function(tn){for(var nn=arguments.length,rn=new Array(nn>1?nn-1:0),an=1;an<nn;an++)rn[an-1]=arguments[an];en.emit.apply(en,[tn].concat(rn))})),this.modules.languageDetector&&(dn.languageDetector=createClassOnDemand(this.modules.languageDetector),dn.languageDetector.init(dn,this.options.detection,this.options)),this.modules.i18nFormat&&(dn.i18nFormat=createClassOnDemand(this.modules.i18nFormat),dn.i18nFormat.init&&dn.i18nFormat.init(this)),this.translator=new un(this.services,this.options),this.translator.on("*",(function(tn){for(var nn=arguments.length,rn=new Array(nn>1?nn-1:0),an=1;an<nn;an++)rn[an-1]=arguments[an];en.emit.apply(en,[tn].concat(rn))})),this.modules.external.forEach((function(tn){tn.init&&tn.init(en)}))}if(this.format=this.options.interpolation.format,rn||(rn=noop$2),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var hn=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);hn.length>0&&"dev"!==hn[0]&&(this.options.lng=hn[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var gn=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];gn.forEach((function(tn){en[tn]=function(){var nn;return(nn=en.store)[tn].apply(nn,arguments)}}));var _n=["addResource","addResources","addResourceBundle","removeResourceBundle"];_n.forEach((function(tn){en[tn]=function(){var nn;return(nn=en.store)[tn].apply(nn,arguments),en}}));var mn=defer(),wn=function load(){var tn=function finish(tn,nn){en.isInitialized&&!en.initializedStoreOnce&&en.logger.warn("init: i18next is already initialized. You should call init just once!"),en.isInitialized=!0,en.options.isClone||en.logger.log("initialized",en.options),en.emit("initialized",en.options),mn.resolve(nn),rn(tn,nn)};if(en.languages&&"v1"!==en.options.compatibilityAPI&&!en.isInitialized)return tn(null,en.t.bind(en));en.changeLanguage(en.options.lng,tn)};return this.options.resources||!this.options.initImmediate?wn():setTimeout(wn,0),mn}},{key:"loadResources",value:function loadResources(en){var tn=this,nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop$2,rn=nn,an="string"==typeof en?en:this.language;if("function"==typeof en&&(rn=en),!this.options.resources||this.options.partialBundledLanguages){if(an&&"cimode"===an.toLowerCase())return rn();var sn=[],cn=function append(en){en&&tn.services.languageUtils.toResolveHierarchy(en).forEach((function(en){sn.indexOf(en)<0&&sn.push(en)}))};if(an)cn(an);else{var An=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);An.forEach((function(en){return cn(en)}))}this.options.preload&&this.options.preload.forEach((function(en){return cn(en)})),this.services.backendConnector.load(sn,this.options.ns,(function(en){en||tn.resolvedLanguage||!tn.language||tn.setResolvedLanguage(tn.language),rn(en)}))}else rn(null)}},{key:"reloadResources",value:function reloadResources(en,tn,nn){var rn=defer();return en||(en=this.languages),tn||(tn=this.options.ns),nn||(nn=noop$2),this.services.backendConnector.reload(en,tn,(function(en){rn.resolve(),nn(en)})),rn}},{key:"use",value:function use(en){if(!en)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!en.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===en.type&&(this.modules.backend=en),("logger"===en.type||en.log&&en.warn&&en.error)&&(this.modules.logger=en),"languageDetector"===en.type&&(this.modules.languageDetector=en),"i18nFormat"===en.type&&(this.modules.i18nFormat=en),"postProcessor"===en.type&&An.addPostProcessor(en),"formatter"===en.type&&(this.modules.formatter=en),"3rdParty"===en.type&&this.modules.external.push(en),this}},{key:"setResolvedLanguage",value:function setResolvedLanguage(en){if(en&&this.languages&&!(["cimode","dev"].indexOf(en)>-1))for(var tn=0;tn<this.languages.length;tn++){var nn=this.languages[tn];if(!(["cimode","dev"].indexOf(nn)>-1)&&this.store.hasLanguageSomeTranslations(nn)){this.resolvedLanguage=nn;break}}}},{key:"changeLanguage",value:function changeLanguage(en,tn){var nn=this;this.isLanguageChangingTo=en;var rn=defer();this.emit("languageChanging",en);var an=function setLngProps(en){nn.language=en,nn.languages=nn.services.languageUtils.toResolveHierarchy(en),nn.resolvedLanguage=void 0,nn.setResolvedLanguage(en)},sn=function setLng(sn){en||sn||!nn.services.languageDetector||(sn=[]);var cn="string"==typeof sn?sn:nn.services.languageUtils.getBestMatchFromCodes(sn);cn&&(nn.language||an(cn),nn.translator.language||nn.translator.changeLanguage(cn),nn.services.languageDetector&&nn.services.languageDetector.cacheUserLanguage(cn)),nn.loadResources(cn,(function(en){!function done(en,sn){sn?(an(sn),nn.translator.changeLanguage(sn),nn.isLanguageChangingTo=void 0,nn.emit("languageChanged",sn),nn.logger.log("languageChanged",sn)):nn.isLanguageChangingTo=void 0,rn.resolve((function(){return nn.t.apply(nn,arguments)})),tn&&tn(en,(function(){return nn.t.apply(nn,arguments)}))}(en,cn)}))};return en||!this.services.languageDetector||this.services.languageDetector.async?!en&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(sn):sn(en):sn(this.services.languageDetector.detect()),rn}},{key:"getFixedT",value:function getFixedT(en,tn,nn){var rn=this,an=function fixedT(en,tn){var an;if("object"!==_typeof$2(tn)){for(var sn=arguments.length,cn=new Array(sn>2?sn-2:0),An=2;An<sn;An++)cn[An-2]=arguments[An];an=rn.options.overloadTranslationOptionHandler([en,tn].concat(cn))}else an=_objectSpread$6({},tn);an.lng=an.lng||fixedT.lng,an.lngs=an.lngs||fixedT.lngs,an.ns=an.ns||fixedT.ns,an.keyPrefix=an.keyPrefix||nn||fixedT.keyPrefix;var dn=rn.options.keySeparator||".",un=an.keyPrefix?"".concat(an.keyPrefix).concat(dn).concat(en):en;return rn.t(un,an)};return"string"==typeof en?an.lng=en:an.lngs=en,an.ns=tn,an.keyPrefix=nn,an}},{key:"t",value:function t(){var en;return this.translator&&(en=this.translator).translate.apply(en,arguments)}},{key:"exists",value:function exists(){var en;return this.translator&&(en=this.translator).exists.apply(en,arguments)}},{key:"setDefaultNamespace",value:function setDefaultNamespace(en){this.options.defaultNS=en}},{key:"hasLoadedNamespace",value:function hasLoadedNamespace(en){var tn=this,nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var rn=this.resolvedLanguage||this.languages[0],an=!!this.options&&this.options.fallbackLng,sn=this.languages[this.languages.length-1];if("cimode"===rn.toLowerCase())return!0;var cn=function loadNotPending(en,nn){var rn=tn.services.backendConnector.state["".concat(en,"|").concat(nn)];return-1===rn||2===rn};if(nn.precheck){var An=nn.precheck(this,cn);if(void 0!==An)return An}return!!this.hasResourceBundle(rn,en)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!cn(rn,en)||an&&!cn(sn,en)))}},{key:"loadNamespaces",value:function loadNamespaces(en,tn){var nn=this,rn=defer();return this.options.ns?("string"==typeof en&&(en=[en]),en.forEach((function(en){nn.options.ns.indexOf(en)<0&&nn.options.ns.push(en)})),this.loadResources((function(en){rn.resolve(),tn&&tn(en)})),rn):(tn&&tn(),Promise.resolve())}},{key:"loadLanguages",value:function loadLanguages(en,tn){var nn=defer();"string"==typeof en&&(en=[en]);var rn=this.options.preload||[],an=en.filter((function(en){return rn.indexOf(en)<0}));return an.length?(this.options.preload=rn.concat(an),this.loadResources((function(en){nn.resolve(),tn&&tn(en)})),nn):(tn&&tn(),Promise.resolve())}},{key:"dir",value:function dir(en){if(en||(en=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!en)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(en))>-1||en.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function cloneInstance(){var en=this,tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop$2,rn=_objectSpread$6(_objectSpread$6(_objectSpread$6({},this.options),tn),{isClone:!0}),an=new I18n(rn),sn=["store","services","language"];return sn.forEach((function(tn){an[tn]=en[tn]})),an.services=_objectSpread$6({},this.services),an.services.utils={hasLoadedNamespace:an.hasLoadedNamespace.bind(an)},an.translator=new un(an.services,an.options),an.translator.on("*",(function(en){for(var tn=arguments.length,nn=new Array(tn>1?tn-1:0),rn=1;rn<tn;rn++)nn[rn-1]=arguments[rn];an.emit.apply(an,[en].concat(nn))})),an.init(rn,nn),an.translator.options=an.options,an.translator.backendConnector.services.utils={hasLoadedNamespace:an.hasLoadedNamespace.bind(an)},an}},{key:"toJSON",value:function toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),I18n}();_defineProperty$2(wn,"createInstance",(function(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tn=arguments.length>1?arguments[1]:void 0;return new wn(en,tn)}));var xn=wn.createInstance();let kn;xn.createInstance=wn.createInstance,xn.createInstance,xn.init,xn.loadResources,xn.reloadResources,xn.use,xn.changeLanguage,xn.getFixedT,xn.t,xn.exists,xn.setDefaultNamespace,xn.hasLoadedNamespace,xn.loadNamespaces,xn.loadLanguages;const putLocale=async function(en,tn){en?kn=en:navigator.userLanguage?kn=navigator.userLanguage:navigator.language&&(kn=navigator.language),tn.includes(kn)||"test"===kn||(kn="en");const nn=await function __variableDynamicImportRuntime0__(en){switch(en){case"./locale/lang.af.js":return Promise.resolve().then((function(){return zS}));case"./locale/lang.ar.js":return Promise.resolve().then((function(){return KS}));case"./locale/lang.az.js":return Promise.resolve().then((function(){return $S}));case"./locale/lang.be.js":return Promise.resolve().then((function(){return WS}));case"./locale/lang.bg.js":return Promise.resolve().then((function(){return XS}));case"./locale/lang.ca.js":return Promise.resolve().then((function(){return YS}));case"./locale/lang.cs.js":return Promise.resolve().then((function(){return ZS}));case"./locale/lang.cy.js":return Promise.resolve().then((function(){return JS}));case"./locale/lang.da.js":return Promise.resolve().then((function(){return eB}));case"./locale/lang.de.js":return Promise.resolve().then((function(){return tB}));case"./locale/lang.el.js":return Promise.resolve().then((function(){return nB}));case"./locale/lang.en.js":return Promise.resolve().then((function(){return rB}));case"./locale/lang.es.js":return Promise.resolve().then((function(){return oB}));case"./locale/lang.et.js":return Promise.resolve().then((function(){return iB}));case"./locale/lang.fa.js":return Promise.resolve().then((function(){return aB}));case"./locale/lang.fi.js":return Promise.resolve().then((function(){return sB}));case"./locale/lang.fr.js":return Promise.resolve().then((function(){return lB}));case"./locale/lang.fy.js":return Promise.resolve().then((function(){return cB}));case"./locale/lang.ga.js":return Promise.resolve().then((function(){return AB}));case"./locale/lang.gl.js":return Promise.resolve().then((function(){return dB}));case"./locale/lang.he.js":return Promise.resolve().then((function(){return uB}));case"./locale/lang.hi.js":return Promise.resolve().then((function(){return pB}));case"./locale/lang.hr.js":return Promise.resolve().then((function(){return hB}));case"./locale/lang.hu.js":return Promise.resolve().then((function(){return gB}));case"./locale/lang.hy.js":return Promise.resolve().then((function(){return _B}));case"./locale/lang.id.js":return Promise.resolve().then((function(){return mB}));case"./locale/lang.is.js":return Promise.resolve().then((function(){return fB}));case"./locale/lang.it.js":return Promise.resolve().then((function(){return yB}));case"./locale/lang.ja.js":return Promise.resolve().then((function(){return bB}));case"./locale/lang.ko.js":return Promise.resolve().then((function(){return vB}));case"./locale/lang.lt.js":return Promise.resolve().then((function(){return wB}));case"./locale/lang.lv.js":return Promise.resolve().then((function(){return xB}));case"./locale/lang.mk.js":return Promise.resolve().then((function(){return kB}));case"./locale/lang.ms.js":return Promise.resolve().then((function(){return CB}));case"./locale/lang.mt.js":return Promise.resolve().then((function(){return SB}));case"./locale/lang.nl.js":return Promise.resolve().then((function(){return BB}));case"./locale/lang.no.js":return Promise.resolve().then((function(){return EB}));case"./locale/lang.pl.js":return Promise.resolve().then((function(){return jB}));case"./locale/lang.pt-BR.js":return Promise.resolve().then((function(){return LB}));case"./locale/lang.pt-PT.js":return Promise.resolve().then((function(){return PB}));case"./locale/lang.ro.js":return Promise.resolve().then((function(){return TB}));case"./locale/lang.ru.js":return Promise.resolve().then((function(){return FB}));case"./locale/lang.sk.js":return Promise.resolve().then((function(){return UB}));case"./locale/lang.sl.js":return Promise.resolve().then((function(){return NB}));case"./locale/lang.sq.js":return Promise.resolve().then((function(){return IB}));case"./locale/lang.sr.js":return Promise.resolve().then((function(){return MB}));case"./locale/lang.sv.js":return Promise.resolve().then((function(){return RB}));case"./locale/lang.sw.js":return Promise.resolve().then((function(){return OB}));case"./locale/lang.test.js":return Promise.resolve().then((function(){return QB}));case"./locale/lang.th.js":return Promise.resolve().then((function(){return qB}));case"./locale/lang.tl.js":return Promise.resolve().then((function(){return VB}));case"./locale/lang.tr.js":return Promise.resolve().then((function(){return GB}));case"./locale/lang.uk.js":return Promise.resolve().then((function(){return DB}));case"./locale/lang.vi.js":return Promise.resolve().then((function(){return HB}));case"./locale/lang.yi.js":return Promise.resolve().then((function(){return zB}));case"./locale/lang.zh-CN.js":return Promise.resolve().then((function(){return KB}));case"./locale/lang.zh-HK.js":return Promise.resolve().then((function(){return $B}));case"./locale/lang.zh-TW.js":return Promise.resolve().then((function(){return WB}));default:return new Promise((function(tn,nn){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(nn.bind(null,new Error("Unknown variable dynamic import: "+en)))}))}}("./locale/lang.".concat(encodeURIComponent(kn),".js"));return xn.init({lng:kn,debug:!1,resources:{[kn]:{translation:nn.default}}}),{langParam:kn,i18next:xn}},t$1=function(en){return xn.t(en)},Cn=document.createElement("template");Cn.innerHTML='\n <style>\n :host(:hover) :not(.disabled)\n {\n background-color: var(--icon-bg-color-hover);\n }\n div\n {\n height: 24px;\n width: 24px;\n margin: 4px 1px 4px;\n padding: 3px;\n background-color: var(--icon-bg-color);\n cursor: pointer;\n border-radius: 3px;\n }\n .small {\n width: 14px;\n height: 14px;\n padding: 1px;\n border-radius: 1px;\n }\n img {\n border: none;\n width: 100%;\n height: 100%;\n }\n .pressed {\n background-color: var(--icon-bg-color-hover);\n }\n .disabled {\n opacity: 0.3;\n cursor: default;\n }\n </style>\n <div title="title">\n <img alt="icon">\n </div>\n';class ToolButton extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(Cn.content.cloneNode(!0)),this.$div=this._shadowRoot.querySelector("div"),this.$img=this._shadowRoot.querySelector("img"),this.imgPath=svgEditor.configObj.curConfig.imgPath}static get observedAttributes(){return["title","src","pressed","disabled","size","style"]}attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"title":{const en=this.getAttribute("shortcut");this.$div.setAttribute("title","".concat(t$1(nn)," ").concat(en?"[".concat(t$1(en),"]"):""))}break;case"style":this.$div.style=nn;break;case"src":-1!==nn.indexOf("data:")?this.$img.setAttribute("src",nn):this.$img.setAttribute("src",this.imgPath+"/"+nn);break;case"pressed":null===nn?this.$div.classList.remove("pressed"):this.$div.classList.add("pressed");break;case"size":"small"===nn?this.$div.classList.add("small"):this.$div.classList.remove("small");break;case"disabled":nn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(en))}}get title(){return this.getAttribute("title")}set title(en){this.setAttribute("title",en)}get pressed(){return this.hasAttribute("pressed")}set pressed(en){en?this.setAttribute("pressed","true"):this.removeAttribute("pressed")}get disabled(){return this.hasAttribute("disabled")}set disabled(en){en?this.setAttribute("disabled","true"):this.removeAttribute("disabled")}get src(){return this.getAttribute("src")}set src(en){this.setAttribute("src",en)}get size(){return this.getAttribute("size")}set size(en){this.setAttribute("size",en)}connectedCallback(){const en=this.getAttribute("shortcut");en&&document.addEventListener("keydown",(tn=>{if("BODY"!==tn.target.nodeName)return;const nn="".concat(tn.metaKey?"meta+":"").concat(tn.ctrlKey?"ctrl+":"").concat(tn.key.toUpperCase());en===nn&&(this.click(),tn.preventDefault())}))}}customElements.define("se-button",ToolButton);class FlyingButton extends HTMLElement{constructor(){super(),this.imgPath=svgEditor.configObj.curConfig.imgPath,this.template=this.createTemplate(this.imgPath),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(this.template.content.cloneNode(!0)),this.$button=this._shadowRoot.querySelector(".menu-button"),this.$handle=this._shadowRoot.querySelector(".handle"),this.$overall=this._shadowRoot.querySelector(".overall"),this.$img=this._shadowRoot.querySelector("img"),this.$menu=this._shadowRoot.querySelector(".menu"),this.$elements=this.$menu.lastElementChild.assignedElements()}createTemplate(en){const tn=document.createElement("template");return tn.innerHTML="\n <style>\n :host {\n position:relative;\n }\n .overall:hover *\n {\n background-color: var(--icon-bg-color-hover);\n }\n img {\n border: none;\n width: 24px;\n height: 24px;\n }\n .overall.pressed .button-icon,\n .overall.pressed .handle {\n background-color: var(--icon-bg-color-hover) !important;\n }\n .overall.pressed .menu-button {\n background-color: var(--icon-bg-color-hover) !important;\n }\n .disabled {\n opacity: 0.3;\n cursor: default;\n }\n .menu-button {\n height: 24px;\n width: 24px;\n margin: 2px 1px 4px;\n padding: 3px;\n background-color: var(--icon-bg-color);\n cursor: pointer;\n position: relative;\n border-radius: 3px;\n overflow: hidden;\n }\n .handle {\n height: 8px;\n width: 8px;\n background-image: url(".concat(en,'/handle.svg);\n position:absolute;\n bottom: 0px;\n right: 0px;\n }\n .button-icon {\n }\n .menu {\n position: fixed;\n background: none !important;\n display:none;\n margin-left: 34px;\n }\n .open {\n display: flex;\n }\n .menu-item {\n align-content: flex-start;\n height: 24px;\n width: 24px;\n top:0px;\n left:0px;\n }\n .overall {\n background: none !important;\n }\n </style>\n\n <div class="overall">\n <div class="menu">\n <slot></slot>\n </div>\n <div class="menu-button">\n <img class="button-icon" src="logo.svg" alt="icon">\n <div class="handle"></div>\n </div>\n </div>'),tn}static get observedAttributes(){return["title","pressed","disabled","opened"]}attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"title":{const en=this.getAttribute("shortcut");this.$button.setAttribute("title","".concat(t$1(nn)," ").concat(en?"[".concat(t$1(en),"]"):""))}break;case"pressed":nn?this.$overall.classList.add("pressed"):this.$overall.classList.remove("pressed");break;case"opened":nn?this.$menu.classList.add("open"):this.$menu.classList.remove("open");break;case"disabled":nn?this.$overall.classList.add("disabled"):this.$overall.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(en))}}get title(){return this.getAttribute("title")}set title(en){this.setAttribute("title",en)}get pressed(){return this.hasAttribute("pressed")}set pressed(en){en?this.setAttribute("pressed","true"):(this.removeAttribute("pressed",""),this.removeAttribute("opened"))}get opened(){return this.hasAttribute("opened")}set opened(en){en?this.setAttribute("opened","opened"):this.removeAttribute("opened")}get disabled(){return this.hasAttribute("disabled")}set disabled(en){en?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}connectedCallback(){this.activeSlot=this.shadowRoot.querySelector("slot").assignedElements()[0],this.$img.setAttribute("src",this.imgPath+"/"+this.activeSlot.getAttribute("src"));const onClickHandler=en=>{switch(en.stopPropagation(),en.target.nodeName){case"SE-FLYINGBUTTON":this.pressed?this.setAttribute("opened","opened"):(this.activeSlot.click(),this.setAttribute("pressed","pressed"));break;case"SE-BUTTON":this.$img.setAttribute("src",this.imgPath+"/"+en.target.getAttribute("src")),this.activeSlot=en.target,this.setAttribute("pressed","pressed"),this.$menu.classList.remove("open");break;case"DIV":if(this.opened)this.removeAttribute("opened");else{this.setAttribute("opened","opened");const en=this.getBoundingClientRect();this.$menu.style.top=en.top+"px"}break;default:console.error("unkonw nodeName for:",en.target,en.target.className)}};svgEditor.$click(this,onClickHandler),svgEditor.$click(this.$handle,onClickHandler)}}customElements.define("se-flyingbutton",FlyingButton);class ExplorerButton extends HTMLElement{constructor(){super(),this.imgPath=svgEditor.configObj.curConfig.imgPath,this.template=this.createTemplate(this.imgPath),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(this.template.content.cloneNode(!0)),this.$button=this._shadowRoot.querySelector(".menu-button"),this.$overall=this._shadowRoot.querySelector(".overall"),this.$img=this._shadowRoot.querySelector(".menu-button img"),this.$menu=this._shadowRoot.querySelector(".menu"),this.$handle=this._shadowRoot.querySelector(".handle"),this.$lib=this._shadowRoot.querySelector(".image-lib"),this.files=[],this.request=new XMLHttpRequest,this.imgPath=svgEditor.configObj.curConfig.imgPath}createTemplate(en){const tn=document.createElement("template");return tn.innerHTML="\n <style>\n :host {\n position:relative;\n }\n .menu-button:hover, se-button:hover, .menu-item:hover\n {\n background-color: var(--icon-bg-color-hover);\n }\n img {\n border: none;\n width: 24px;\n height: 24px;\n }\n .overall.pressed .button-icon,\n .overall.pressed,\n .menu-item.pressed {\n background-color: var(--icon-bg-color-hover) !important;\n }\n .overall.pressed .menu-button {\n background-color: var(--icon-bg-color-hover) !important;\n }\n .disabled {\n opacity: 0.3;\n cursor: default;\n }\n .menu-button {\n height: 24px;\n width: 24px;\n margin: 2px 1px 4px;\n padding: 3px;\n background-color: var(--icon-bg-color);\n cursor: pointer;\n position: relative;\n border-radius: 3px;\n overflow: hidden;\n }\n .handle {\n height: 8px;\n width: 8px;\n background-image: url(".concat(en,'/handle.svg);\n position:absolute;\n bottom: 0px;\n right: 0px;\n }\n .button-icon {\n }\n .menu {\n position: fixed;\n margin-left: 34px;\n background: none !important;\n display:none;\n top: 30%;\n left: 171px;\n }\n .image-lib {\n position: fixed;\n left: 34px;\n top: 30%;\n background: #E8E8E8;\n display: none;\n flex-wrap: wrap;\n flex-direction: row;\n width: 170px;\n }\n .menu-item {\n line-height: 1em;\n padding: 0.5em;\n border: 1px solid #5a6162;\n background: #E8E8E8;\n margin-bottom: -1px;\n white-space: nowrap;\n }\n .open-lib {\n display: inline-flex;\n }\n .open {\n display: block;\n }\n .overall {\n background: none !important;\n }\n </style>\n \n <div class="overall">\n <div class="menu-button">\n <img class="button-icon" src="explorer.svg" alt="icon">\n <div class="handle"></div>\n </div>\n <div class="image-lib"">\n <se-button></se-button>\n </div>\n <div class="menu">\n <div class="menu-item">menu</div>\n </div>\n </div>'),tn}static get observedAttributes(){return["title","pressed","disabled","lib","src"]}async attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"title":{const en=this.getAttribute("shortcut");this.$button.setAttribute("title","".concat(nn," [").concat(en,"]"))}break;case"pressed":nn?this.$overall.classList.add("pressed"):this.$overall.classList.remove("pressed");break;case"disabled":nn?this.$overall.classList.add("disabled"):this.$overall.classList.remove("disabled");break;case"lib":try{const en=await fetch("".concat(nn,"index.json")),tn=await en.json(),{lib:rn}=tn;this.$menu.innerHTML=rn.map(((en,tn)=>'<div data-menu="'.concat(en,'" class="menu-item ').concat(0===tn?"pressed":"",' ">').concat(en,"</div>"))).join(""),await this.updateLib(rn[0])}catch(en){console.error(en)}break;case"src":this.$img.setAttribute("src",this.imgPath+"/"+nn);break;default:console.error("unknown attribute: ".concat(en))}}get title(){return this.getAttribute("title")}set title(en){this.setAttribute("title",en)}get pressed(){return this.hasAttribute("pressed")}set pressed(en){en?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}get disabled(){return this.hasAttribute("disabled")}set disabled(en){en?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}connectedCallback(){const onClickHandler=en=>{switch(en.stopPropagation(),en.target.nodeName){case"SE-EXPLORERBUTTON":this.$menu.classList.add("open"),this.$lib.classList.add("open-lib");break;case"SE-BUTTON":this.currentAction=en.target,this.$img.setAttribute("src",this.currentAction.getAttribute("src")),this.dataset.draw=this.data[this.currentAction.dataset.shape],this._shadowRoot.querySelectorAll(".image-lib [pressed]").forEach((en=>{en.pressed=!1})),this.currentAction.setAttribute("pressed","pressed"),this.$menu.classList.remove("open"),this.$lib.classList.remove("open-lib");break;case"DIV":"handle"===en.target.classList[0]?(this.$menu.classList.toggle("open"),this.$lib.classList.toggle("open-lib")):(this._shadowRoot.querySelectorAll(".menu > .pressed").forEach((en=>{en.classList.remove("pressed")})),en.target.classList.add("pressed"),this.updateLib(en.target.dataset.menu));break;default:console.error("unknown nodeName for:",en.target,en.target.className)}};svgEditor.$click(this,onClickHandler),svgEditor.$click(this.$menu,onClickHandler),svgEditor.$click(this.$lib,onClickHandler),svgEditor.$click(this.$handle,onClickHandler)}async updateLib(en){const tn=this.getAttribute("lib");try{var nn;const rn=await fetch("".concat(tn).concat(en,".json")),an=await rn.json();this.data=an.data;const sn=null!==(nn=an.size)&&void 0!==nn?nn:300,cn=an.fill?"#333":"none",An=.05*sn,dn=[-An,-An,sn+2*An,sn+2*An].join(" "),un=an.fill?0:sn/30;this.$lib.innerHTML=Object.entries(this.data).map((en=>{let[tn,nn]=en;const rn=btoa('\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n <svg viewBox="'.concat(dn,'"><path fill="').concat(cn,'" stroke="#f8bb00" stroke-width="').concat(un,'" d="').concat(nn,'"></path></svg>\n </svg>'));return'<se-button data-shape="'.concat(tn,'"src="data:image/svg+xml;base64,').concat(rn,'"></se-button>')})).join("")}catch(nn){console.error("could not read file:".concat(tn).concat(en,".json"),nn)}}}customElements.define("se-explorerbutton",ExplorerButton);const Sn=document.createElement("template");Sn.innerHTML='\n <style>\n input{\n border:unset;\n background-color:var(--input-color);\n min-width:unset;\n width:40px;\n height:23px;\n padding:1px 2px;\n border:2px;\n font: inherit;\n margin: 2px 1px 0px 2px;\n box-sizing:border-box;\n text-align: center;\n border-radius: 3px 0px 0px 3px;\n }\n #tool-wrapper{\n height:20px;\n display:flex;\n align-items:center;\n }\n #icon{\n margin-bottom:1px\n }\n #spinner{\n display:flex;\n flex-direction:column;\n }\n #spinner > div {\n height: 11px;\n width: 7px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 7px;\n border-left:solid 1px transparent;\n border-right:solid 1px transparent;\n background-color:var(--input-color);\n }\n #arrow-up{\n height:9px;\n margin-top: 2px;\n margin-bottom: 1px;\n }\n #down{\n width:18px;\n height:23px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color:var(--input-color);\n border-radius: 0px 3px 3px 0px;\n margin: 2px 5px 0px 1px;\n }\n #down > img {\n margin-top: 2px;\n }\n #options-container {\n position:fixed\n display:flex;\n flex-direction:column;\n background-color:var(--icon-bg-color);\n border:solid 1px white;\n box-shadow:0 0px 10px rgb(0 0 0 / 50%);\n }\n ::slotted(*) {\n margin:2px;\n padding:3px;\n color:white;\n }\n ::slotted(*:hover) {\n background-color: rgb(43, 60, 69);\n }\n </style>\n <div id="tool-wrapper">\n <img id="icon" alt="icon" width="18" height="18"/>\n <input/>\n <div id="spinner">\n <div id="arrow-up">▲</div>\n <div id="arrow-down">▼</div>\n </div>\n <div id="down">\n <img width="16" height="8" src="./images/arrow_down.svg"/>\n </div>\n </div>\n <div id="options-container" style="display:none">\n <slot></slot>\n </div>\n';class SeZoom extends HTMLElement{constructor(){super(),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.initPopup=this.initPopup.bind(this),this.handleInput=this.handleInput.bind(this),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(Sn.content.cloneNode(!0)),this.slotElement=this._shadowRoot.querySelector("slot"),this.slotElement.addEventListener("slotchange",this.handleOptionsChange.bind(this)),this.inputElement=this._shadowRoot.querySelector("input"),this.inputElement.addEventListener("click",this.handleClick.bind(this)),this.inputElement.addEventListener("change",this.handleInput),this.inputElement.addEventListener("keydown",this.handleKeyDown),this.clickArea=this._shadowRoot.querySelector("#down"),this.clickArea.addEventListener("click",this.handleClick.bind(this)),this.imageElement=this._shadowRoot.querySelector("img"),this.imageElement.setAttribute("src",this.imgPath=svgEditor.configObj.curConfig.imgPath+"/"+this.getAttribute("src")),this.arrowUp=this._shadowRoot.querySelector("#arrow-up"),this.arrowUp.addEventListener("click",this.increment.bind(this)),this.arrowUp.addEventListener("mousedown",(en=>this.handleMouseDown("up",!0))),this.arrowUp.addEventListener("mouseleave",(en=>this.handleMouseUp("up"))),this.arrowUp.addEventListener("mouseup",(en=>this.handleMouseUp("up"))),this.arrowDown=this._shadowRoot.querySelector("#arrow-down"),this.arrowDown.addEventListener("click",this.decrement.bind(this)),this.arrowDown.addEventListener("mousedown",(en=>this.handleMouseDown("down",!0))),this.arrowDown.addEventListener("mouseleave",(en=>this.handleMouseUp("down"))),this.arrowDown.addEventListener("mouseup",(en=>this.handleMouseUp("down"))),this.optionsContainer=this._shadowRoot.querySelector("#options-container"),document.addEventListener("click",(en=>this.handleClose(en))),this.changedTimeout=null}static get observedAttributes(){return["value"]}get value(){return this.getAttribute("value")}set value(en){this.setAttribute("value",en)}attributeChangedCallback(en,tn,nn){if(tn!==nn){if("value"===en)this.inputElement.value=nn,this.dispatchEvent(new CustomEvent("change",{detail:{value:nn}}))}else if("value"===en)parseInt(this.inputElement.value)!==nn&&(this.inputElement.value=nn)}handleOptionsChange(){this.slotElement.assignedElements().length>0&&(this.options=this.slotElement.assignedElements(),this.selectedValue=this.options[0].textContent,this.initPopup(),this.options.forEach((en=>{en.addEventListener("click",(en=>this.handleSelect(en)))})))}handleClick(){this.optionsContainer.style.display="flex",this.inputElement.select(),this.initPopup()}handleSelect(en){this.value=en.target.getAttribute("value"),this.title=en.target.getAttribute("text")}initPopup(){const en=this.getBoundingClientRect(),tn=this.optionsContainer.getBoundingClientRect(),nn=en.top-tn.height,rn=en.left;this.optionsContainer.style.position="fixed",this.optionsContainer.style.top="".concat(nn,"px"),this.optionsContainer.style.left="".concat(rn,"px")}handleClose(en){en.target!==this&&(this.optionsContainer.style.display="none",this.inputElement.blur())}handleInput(){this.changedTimeout&&clearTimeout(this.changedTimeout),this.changedTimeout=setTimeout(this.triggerInputChanged.bind(this),500)}triggerInputChanged(){const en=this.inputElement.value;this.value=en}increment(){this.value=parseInt(this.value)+10}decrement(){this.value-10<=0?this.value=10:this.value=parseInt(this.value)-10}handleMouseDown(en,tn){"up"===en?(this.incrementHold=!0,!tn&&this.increment(),setTimeout((()=>{this.incrementHold&&this.handleMouseDown(en,!1)}),tn?500:50)):"down"===en&&(this.decrementHold=!0,!tn&&this.decrement(),setTimeout((()=>{this.decrementHold&&this.handleMouseDown(en,!1)}),tn?500:50))}handleMouseUp(en){"up"===en?this.incrementHold=!1:this.decrementHold=!1}handleKeyDown(en){"ArrowUp"===en.key?this.increment():"ArrowDown"===en.key&&this.decrement()}}function _defineProperty$1(en,tn,nn){return tn in en?Object.defineProperty(en,tn,{value:nn,enumerable:!0,configurable:!0,writable:!0}):en[tn]=nn,en}function _taggedTemplateLiteral(en,tn){return tn||(tn=en.slice(0)),Object.freeze(Object.defineProperties(en,{raw:{value:Object.freeze(tn)}}))}customElements.define("se-zoom",SeZoom);const Bn={html(en){for(var tn=arguments.length,nn=new Array(tn>1?tn-1:0),rn=1;rn<tn;rn++)nn[rn-1]=arguments[rn];return En.html(en,...nn).content}},En={html(en){const tn=document.createElement("template");for(var nn=arguments.length,rn=new Array(nn>1?nn-1:0),an=1;an<nn;an++)rn[an-1]=arguments[an];return tn.innerHTML=String.raw(en,...rn),tn}},jn=Symbol("defaultState"),Ln=Symbol("delegatesFocus"),Pn=Symbol("firstRender"),Tn=Symbol("focusTarget"),Fn=Symbol("hasDynamicTemplate"),Un=Symbol("ids"),Nn=Symbol("nativeInternals"),In=Symbol("raiseChangeEvents"),Mn=Symbol("render"),Rn=Symbol("renderChanges"),On=Symbol("rendered"),Qn=Symbol("rendering"),qn=Symbol("setState"),Vn=Symbol("shadowRoot"),Gn=Symbol("shadowRootMode"),Dn=Symbol("state"),Hn=Symbol("stateEffects"),zn=Symbol("template"),Kn={tabindex:"tabIndex"},$n={tabIndex:"tabindex"};function attributesForClass(en){if(en===HTMLElement)return[];const tn=Object.getPrototypeOf(en.prototype).constructor;let nn=tn.observedAttributes;nn||(nn=attributesForClass(tn));const rn=Object.getOwnPropertyNames(en.prototype).filter((tn=>{const nn=Object.getOwnPropertyDescriptor(en.prototype,tn);return nn&&"function"==typeof nn.set})).map((en=>function propertyNameToAttribute(en){let tn=$n[en];if(!tn){const nn=/([A-Z])/g;tn=en.replace(nn,"-$1").toLowerCase(),$n[en]=tn}return tn}(en))).filter((en=>nn.indexOf(en)<0));return nn.concat(rn)}function booleanAttributeValue(en,tn){return"boolean"==typeof tn?tn:"string"==typeof tn&&(""===tn||en.toLowerCase()===tn.toLowerCase())}const Wn={checked:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,multiple:!0,noresize:!0,readonly:!0,selected:!0},Xn=Symbol("state"),Yn=Symbol("raiseChangeEventsInNextRender"),Zn=Symbol("changedSinceLastRender");function fieldsChanged(en,tn){const nn={};for(const sn in tn)rn=tn[sn],an=en[sn],(rn instanceof Date&&an instanceof Date?rn.getTime()===an.getTime():rn===an)||(nn[sn]=!0);var rn,an;return nn}const Jn=new Map,Tr=Symbol("shadowIdProxy"),Ur=Symbol("proxyElement"),Rr={get(en,tn){const nn=en[Ur][Vn];return nn&&"string"==typeof tn?nn.getElementById(tn):null}};const Qr=function AttributeMarshallingMixin(en){return class AttributeMarshalling extends en{attributeChangedCallback(en,tn,nn){if(super.attributeChangedCallback&&super.attributeChangedCallback(en,tn,nn),nn!==tn&&!this[Qn]){const tn=function attributeToPropertyName(en){let tn=Kn[en];if(!tn){const nn=/-([a-z])/g;tn=en.replace(nn,(en=>en[1].toUpperCase())),Kn[en]=tn}return tn}(en);if(tn in this){const rn=Wn[en]?booleanAttributeValue(en,nn):nn;this[tn]=rn}}}static get observedAttributes(){return attributesForClass(this)}}}(function ReactiveMixin(en){class Reactive extends en{constructor(){super(),this[Pn]=void 0,this[In]=!1,this[Zn]=null,this[qn](this[jn])}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this[Rn]()}get[jn](){return super[jn]||{}}[Mn](en){super[Mn]&&super[Mn](en)}[Rn](){void 0===this[Pn]&&(this[Pn]=!0);const en=this[Zn];if(this[Pn]||en){const tn=this[In];this[In]=this[Yn],this[Yn]=!1,this[Qn]=!0,this[Mn](en),this[Qn]=!1,this[Zn]=null,this[On](en),this[Pn]=!1,this[In]=tn}}[On](en){super[On]&&super[On](en)}async[qn](en){this[Qn]&&console.warn("".concat(this.constructor.name," called [setState] during rendering, which you should avoid.\nSee https://elix.org/documentation/ReactiveMixin."));const{state:tn,changed:nn}=function copyStateWithChanges(en,tn){const nn=Object.assign({},en[Xn]),rn={};let an=tn;for(;;){const tn=fieldsChanged(nn,an);if(0===Object.keys(tn).length)break;Object.assign(nn,an),Object.assign(rn,tn),an=en[Hn](nn,tn)}return{state:nn,changed:rn}}(this,en);if(this[Xn]&&0===Object.keys(nn).length)return;Object.freeze(tn),this[Xn]=tn,this[In]&&(this[Yn]=!0);const rn=void 0===this[Pn]||null!==this[Zn];this[Zn]=Object.assign(this[Zn]||{},nn);this.isConnected&&!rn&&(await Promise.resolve(),this[Rn]())}get[Dn](){return this[Xn]}[Hn](en,tn){return super[Hn]?super[Hn](en,tn):{}}}return"true"===new URLSearchParams(location.search).get("elixdebug")&&Object.defineProperty(Reactive.prototype,"state",{get(){return this[Dn]}}),Reactive}(function ShadowTemplateMixin(en){return class ShadowTemplate extends en{get[Un](){if(!this[Tr]){const en={[Ur]:this};this[Tr]=new Proxy(en,Rr)}return this[Tr]}[Mn](en){if(super[Mn]&&super[Mn](en),void 0===this[Vn]){const en=function getTemplate(en){let tn=en[Fn]?void 0:Jn.get(en.constructor);if(void 0===tn){if(tn=en[zn],tn&&!(tn instanceof HTMLTemplateElement))throw"Warning: the [template] property for ".concat(en.constructor.name," must return an HTMLTemplateElement.");en[Fn]||Jn.set(en.constructor,tn||null)}return tn}(this);if(en){const tn=this.attachShadow({delegatesFocus:this[Ln],mode:this[Gn]}),nn=document.importNode(en.content,!0);tn.append(nn),this[Vn]=tn}else this[Vn]=null}}get[Gn](){return"open"}}}(HTMLElement))),Vr=Symbol("checkSize"),Gr=Symbol("closestAvailableItemIndex"),Dr=Symbol("contentSlot"),Hr=jn,zr=Symbol("defaultTabIndex"),Kr=Ln,$r=Symbol("effectEndTarget"),Wr=Pn,Xr=Tn,Yr=Symbol("getItemText"),Zr=Symbol("goDown"),Jr=Symbol("goEnd"),eo=Symbol("goFirst"),to=Symbol("goLast"),no=Symbol("goLeft"),ro=Symbol("goNext"),oo=Symbol("goPrevious"),io=Symbol("goRight"),ao=Symbol("goStart"),so=Symbol("goToItemWithPrefix"),lo=Symbol("goUp"),co=Fn,Ao=Un,uo=Symbol("inputDelegate"),po=Symbol("itemsDelegate"),ho=Symbol("keydown"),go=Symbol("mouseenter"),_o=Symbol("mouseleave"),mo=Nn,fo=In,yo=Mn,bo=Rn,vo=Symbol("renderDataToElement"),wo=On,xo=Qn,ko=Symbol("scrollTarget"),Co=qn,So=Vn,Bo=Gn,Eo=Symbol("startEffect"),jo=Dn,Lo=Hn,Po=Symbol("swipeDown"),To=Symbol("swipeDownComplete"),Fo=Symbol("swipeLeft"),Uo=Symbol("swipeLeftTransitionEnd"),No=Symbol("swipeRight"),Io=Symbol("swipeRightTransitionEnd"),Mo=Symbol("swipeUp"),Ro=Symbol("swipeUpComplete"),Oo=Symbol("swipeStart"),Qo=Symbol("swipeTarget"),qo=Symbol("tap"),Vo=zn,Go=Symbol("toggleSelectedFlag");function DelegateInputLabelMixin(en){return class DelegateInputLabel extends en{get ariaLabel(){return this[jo].ariaLabel}set ariaLabel(en){this[jo].removingAriaAttribute||this[Co]({ariaLabel:String(en)})}get ariaLabelledby(){return this[jo].ariaLabelledby}set ariaLabelledby(en){this[jo].removingAriaAttribute||this[Co]({ariaLabelledby:String(en)})}get[Hr](){return Object.assign(super[Hr]||{},{ariaLabel:null,ariaLabelledby:null,inputLabel:null,removingAriaAttribute:!1})}[yo](en){if(super[yo]&&super[yo](en),this[Wr]&&this.addEventListener("focus",(()=>{this[fo]=!0;const en=refreshInputLabel(this,this[jo]);this[Co]({inputLabel:en}),this[fo]=!1})),en.inputLabel){const{inputLabel:en}=this[jo];en?this[uo].setAttribute("aria-label",en):this[uo].removeAttribute("aria-label")}}[wo](en){if(super[wo]&&super[wo](en),this[Wr]){(window.requestIdleCallback||setTimeout)((()=>{const en=refreshInputLabel(this,this[jo]);this[Co]({inputLabel:en})}))}const{ariaLabel:tn,ariaLabelledby:nn}=this[jo];en.ariaLabel&&!this[jo].removingAriaAttribute&&this.getAttribute("aria-label")&&(this.setAttribute("delegated-label",tn),this[Co]({removingAriaAttribute:!0}),this.removeAttribute("aria-label")),en.ariaLabelledby&&!this[jo].removingAriaAttribute&&this.getAttribute("aria-labelledby")&&(this.setAttribute("delegated-labelledby",nn),this[Co]({removingAriaAttribute:!0}),this.removeAttribute("aria-labelledby")),en.removingAriaAttribute&&this[jo].removingAriaAttribute&&this[Co]({removingAriaAttribute:!1})}[Lo](en,tn){const nn=super[Lo]?super[Lo](en,tn):{};if(tn.ariaLabel&&en.ariaLabel||tn.selectedText&&en.ariaLabelledby&&this.matches(":focus-within")){const tn=refreshInputLabel(this,en);Object.assign(nn,{inputLabel:tn})}return nn}}}function getLabelFromElement(en){if("selectedText"in en)return en.selectedText;if("value"in en&&"options"in en){const tn=en.value,nn=en.options.find((en=>en.value===tn));return nn?nn.innerText:""}return"value"in en?en.value:en.innerText}function refreshInputLabel(en,tn){const{ariaLabel:nn,ariaLabelledby:rn}=tn,an=en.isConnected?en.getRootNode():null;let sn=null;if(rn&&an){const nn=rn.split(" ").map((nn=>{const rn=an.getElementById(nn);return rn?rn===en&&null!==tn.value?tn.selectedText:getLabelFromElement(rn):""}));sn=nn.join(" ")}else if(nn)sn=nn;else if(an){const tn=en.id;if(tn){const en=an.querySelector('[for="'.concat(tn,'"]'));en instanceof HTMLElement&&(sn=getLabelFromElement(en))}if(null===sn){const tn=en.closest("label");tn&&(sn=getLabelFromElement(tn))}}return sn&&(sn=sn.trim()),sn}"true"===new URLSearchParams(location.search).get("elixdebug")&&(window.elix={internal:{checkSize:Vr,closestAvailableItemIndex:Gr,contentSlot:Dr,defaultState:Hr,defaultTabIndex:zr,delegatesFocus:Kr,effectEndTarget:$r,firstRender:Wr,focusTarget:Xr,getItemText:Yr,goDown:Zr,goEnd:Jr,goFirst:eo,goLast:to,goLeft:no,goNext:ro,goPrevious:oo,goRight:io,goStart:ao,goToItemWithPrefix:so,goUp:lo,hasDynamicTemplate:co,ids:Ao,inputDelegate:uo,itemsDelegate:po,keydown:ho,mouseenter:go,mouseleave:_o,nativeInternals:mo,event:event,raiseChangeEvents:fo,render:yo,renderChanges:bo,renderDataToElement:vo,rendered:wo,rendering:xo,scrollTarget:ko,setState:Co,shadowRoot:So,shadowRootMode:Bo,startEffect:Eo,state:jo,stateEffects:Lo,swipeDown:Po,swipeDownComplete:To,swipeLeft:Fo,swipeLeftTransitionEnd:Uo,swipeRight:No,swipeRightTransitionEnd:Io,swipeUp:Mo,swipeUpComplete:Ro,swipeStart:Oo,swipeTarget:Qo,tap:qo,template:Vo,toggleSelectedFlag:Go}});const Do=Symbol("mousedownListener");function closestFocusableNode(en){for(const tn of selfAndComposedAncestors(en)){const en=tn[Tn]||tn,nn=en;if(en instanceof HTMLElement&&en.tabIndex>=0&&!nn.disabled&&!(en instanceof HTMLSlotElement))return en}return null}function deepContains(en,tn){let nn=tn;for(;nn;){const tn=nn.assignedSlot||nn.parentNode||nn.host;if(tn===en)return!0;nn=tn}return!1}function firstFocusableElement(en){const tn=walkComposedTree(en,(en=>en instanceof HTMLElement&&en.matches('a[href],area[href],button:not([disabled]),details,iframe,input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[contentEditable="true"],[tabindex]')&&en.tabIndex>=0)),{value:nn}=tn.next();return nn instanceof HTMLElement?nn:null}function forwardFocus(en,tn){en[Do]&&en.removeEventListener("mousedown",en[Do]),tn&&(en[Do]=en=>{if(0!==en.button)return;const nn=closestFocusableNode(tn[Tn]||tn);nn&&(nn.focus(),en.preventDefault())},en.addEventListener("mousedown",en[Do]))}function indexOfItemContainingTarget(en,tn){return Array.prototype.findIndex.call(en,(en=>en===tn||deepContains(en,tn)))}function ownEvent(en,tn){const nn=tn.composedPath()[0];return en===nn||deepContains(en,nn)}function*selfAndComposedAncestors(en){en&&(yield en,yield*function*composedAncestors(en){let tn=en;for(;tn=tn instanceof HTMLElement&&tn.assignedSlot?tn.assignedSlot:tn instanceof ShadowRoot?tn.host:tn.parentNode,tn;)yield tn}(en))}function setInternalState(en,tn,nn){if(en.toggleAttribute(tn,nn),en[Nn]&&en[Nn].states){const rn=en[Nn].states,an="--".concat(tn);nn?rn.add(an):rn.delete(an)}}function*walkComposedTree(en,tn){let nn;if(tn(en)&&(yield en),en instanceof HTMLElement&&en.shadowRoot)nn=en.shadowRoot.children;else{const tn=en instanceof HTMLSlotElement?en.assignedNodes({flatten:!0}):[];nn=tn.length>0?tn:en.childNodes}if(nn)for(let en=0;en<nn.length;en++)yield*walkComposedTree(nn[en],tn)}var Ho,zo;let Ko=!1;const $o=Symbol("focusVisibleChangedListener");function FocusVisibleMixin(en){return class FocusVisible extends en{constructor(){super(),this.addEventListener("focusout",(en=>{Promise.resolve().then((()=>{const tn=en.relatedTarget||document.activeElement,nn=this===tn,rn=deepContains(this,tn);!nn&&!rn&&(this[Co]({focusVisible:!1}),document.removeEventListener("focusvisiblechange",this[$o]),this[$o]=null)}))})),this.addEventListener("focusin",(()=>{Promise.resolve().then((()=>{this[jo].focusVisible!==Ko&&this[Co]({focusVisible:Ko}),this[$o]||(this[$o]=()=>function refreshFocus(en){en[Co]({focusVisible:Ko})}(this),document.addEventListener("focusvisiblechange",this[$o]))}))}))}get[Hr](){return Object.assign(super[Hr]||{},{focusVisible:!1})}[yo](en){if(super[yo]&&super[yo](en),en.focusVisible){const{focusVisible:en}=this[jo];this.toggleAttribute("focus-visible",en)}}get[Vo](){const en=super[Vo]||En.html(Ho||(Ho=_taggedTemplateLiteral([""])));return en.content.append(Bn.html(zo||(zo=_taggedTemplateLiteral(["\n <style>\n :host {\n outline: none;\n }\n\n :host([focus-visible]:focus-within) {\n outline-color: Highlight; /* Firefox */\n outline-color: -webkit-focus-ring-color; /* All other browsers */\n outline-style: auto;\n }\n </style>\n "])))),en}}}function updateKeyboardActive(en){if(Ko!==en){Ko=en;const tn=new CustomEvent("focusvisiblechange",{detail:{focusVisible:Ko}});document.dispatchEvent(tn)}}function FormElementMixin(en){return class FormElement extends en{constructor(){super();const en=this;!this[mo]&&en.attachInternals&&(this[mo]=en.attachInternals())}checkValidity(){return this[mo].checkValidity()}get[Hr](){return Object.assign(super[Hr]||{},{name:"",validationMessage:"",valid:!0})}get internals(){return this[mo]}static get formAssociated(){return!0}get form(){return this[mo].form}get name(){return this[jo]?this[jo].name:""}set name(tn){const nn=String(tn);"name"in en.prototype&&(super.name=nn),this[Co]({name:nn})}[yo](en){if(super[yo]&&super[yo](en),en.name){const{name:en}=this[jo];en?this.setAttribute("name",en):this.removeAttribute("name")}if(this[mo]&&this[mo].setValidity&&(en.valid||en.validationMessage)){const{valid:en,validationMessage:tn}=this[jo];en?this[mo].setValidity({}):this[mo].setValidity({customError:!0},tn)}}[wo](en){super[wo]&&super[wo](en),en.value&&this[mo]&&this[mo].setFormValue&&this[mo].setFormValue(this[jo].value,this[jo])}reportValidity(){return this[mo].reportValidity()}get type(){return super.type||this.localName}get validationMessage(){return this[jo].validationMessage}get validity(){return this[mo].validity}get willValidate(){return this[mo].willValidate}}}function refreshSelectionState(en){const tn=en.inner,{selectionEnd:nn,selectionStart:rn}=tn;en[Co]({selectionEnd:nn,selectionStart:rn})}function DelegateFocusMixin(en){return class DelegateFocus extends en{get[Kr](){return!0}focus(en){const tn=this[Xr];tn&&tn.focus(en)}get[Xr](){return firstFocusableElement(this[So])}}}var Wo;window.addEventListener("keydown",(()=>{updateKeyboardActive(!0)}),{capture:!0}),window.addEventListener("mousedown",(()=>{updateKeyboardActive(!1)}),{capture:!0});const Xo=Symbol("extends"),Yo=Symbol("delegatedPropertySetters"),Zo={a:!0,area:!0,button:!0,details:!0,iframe:!0,input:!0,select:!0,textarea:!0},Jo={address:["scroll"],blockquote:["scroll"],caption:["scroll"],center:["scroll"],dd:["scroll"],dir:["scroll"],div:["scroll"],dl:["scroll"],dt:["scroll"],fieldset:["scroll"],form:["reset","scroll"],frame:["load"],h1:["scroll"],h2:["scroll"],h3:["scroll"],h4:["scroll"],h5:["scroll"],h6:["scroll"],iframe:["load"],img:["abort","error","load"],input:["abort","change","error","select","load"],li:["scroll"],link:["load"],menu:["scroll"],object:["error","scroll"],ol:["scroll"],p:["scroll"],script:["error","load"],select:["change","scroll"],tbody:["scroll"],tfoot:["scroll"],thead:["scroll"],textarea:["change","select","scroll"]},ei=["click","dblclick","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","wheel"],ti={abort:!0,change:!0,reset:!0},ni=["address","article","aside","blockquote","canvas","dd","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tfoot","ul","video"],ri=["accept-charset","autoplay","buffered","challenge","codebase","colspan","contenteditable","controls","crossorigin","datetime","dirname","for","formaction","http-equiv","icon","ismap","itemprop","keytype","language","loop","manifest","maxlength","minlength","muted","novalidate","preload","radiogroup","readonly","referrerpolicy","rowspan","scoped","usemap"],oi=DelegateFocusMixin(Qr);class WrappedStandardElement extends oi{constructor(){super();const en=this;!this[mo]&&en.attachInternals&&(this[mo]=en.attachInternals())}attributeChangedCallback(en,tn,nn){if(ri.indexOf(en)>=0){const tn=Object.assign({},this[jo].innerAttributes,{[en]:nn});this[Co]({innerAttributes:tn})}else super.attributeChangedCallback(en,tn,nn)}blur(){this.inner.blur()}get[Hr](){return Object.assign(super[Hr],{innerAttributes:{}})}get[zr](){return Zo[this.extends]?0:-1}get extends(){return this.constructor[Xo]}get inner(){const en=this[Ao]&&this[Ao].inner;return en||console.warn("Attempted to get an inner standard element before it was instantiated."),en}static get observedAttributes(){return[...super.observedAttributes,...ri]}[yo](en){super[yo](en);const tn=this.inner;if(this[Wr]){(Jo[this.extends]||[]).forEach((en=>{tn.addEventListener(en,(()=>{const tn=new Event(en,{bubbles:ti[en]||!1});this.dispatchEvent(tn)}))})),"disabled"in tn&&ei.forEach((en=>{this.addEventListener(en,(en=>{tn.disabled&&en.stopImmediatePropagation()}))}))}if(en.tabIndex&&(tn.tabIndex=this[jo].tabIndex),en.innerAttributes){const{innerAttributes:en}=this[jo];for(const nn in en)applyAttribute(tn,nn,en[nn])}this.constructor[Yo].forEach((nn=>{if(en[nn]){const en=this[jo][nn];("selectionEnd"===nn||"selectionStart"===nn)&&null===en||(tn[nn]=en)}}))}[wo](en){if(super[wo](en),en.disabled){const{disabled:en}=this[jo];void 0!==en&&setInternalState(this,"disabled",en)}}get[Vo](){const en=ni.includes(this.extends)?"block":"inline-block",tn=this.extends;return En.html(Wo||(Wo=_taggedTemplateLiteral(["\n <style>\n :host {\n display: ",'\n }\n \n [part~="inner"] {\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n }\n </style>\n <',' id="inner" part="inner ','">\n <slot></slot>\n </',">\n "])),en,tn,tn,tn)}static wrap(en){class Wrapped extends WrappedStandardElement{}Wrapped[Xo]=en;const tn=document.createElement(en);return function defineDelegates(en,tn){const nn=Object.getOwnPropertyNames(tn);en[Yo]=[],nn.forEach((nn=>{const rn=Object.getOwnPropertyDescriptor(tn,nn);if(!rn)return;const an=function createDelegate(en,tn){if("function"==typeof tn.value){if("constructor"!==en)return function createMethodDelegate(en,tn){const value=function(){this.inner[en](...arguments)};return{configurable:tn.configurable,enumerable:tn.enumerable,value:value,writable:tn.writable}}(en,tn)}else if("function"==typeof tn.get||"function"==typeof tn.set)return function createPropertyDelegate(en,tn){const nn={configurable:tn.configurable,enumerable:tn.enumerable};tn.get&&(nn.get=function(){return function getInnerProperty(en,tn){return en[jo][tn]||en[So]&&en.inner[tn]}(this,en)});tn.set&&(nn.set=function(tn){!function setInnerProperty(en,tn,nn){en[jo][tn]!==nn&&en[Co]({[tn]:nn})}(this,en,tn)});tn.writable&&(nn.writable=tn.writable);return nn}(en,tn);return null}(nn,rn);an&&(Object.defineProperty(en.prototype,nn,an),an.set&&en[Yo].push(nn))}))}(Wrapped,Object.getPrototypeOf(tn)),Wrapped}}function applyAttribute(en,tn,nn){Wn[tn]?"string"==typeof nn?en.setAttribute(tn,""):null===nn&&en.removeAttribute(tn):null!=nn?en.setAttribute(tn,nn.toString()):en.removeAttribute(tn)}var ii;const ai=DelegateInputLabelMixin(FocusVisibleMixin(FormElementMixin(function TrackTextSelectionMixin(en){return class TrackTextSelection extends en{get[Hr](){return Object.assign(super[Hr]||{},{selectionEnd:0,selectionStart:0})}[yo](en){if(super[yo]&&super[yo](en),this[Wr]){const en=(()=>{setTimeout((()=>{this[fo]=!0,refreshSelectionState(this),this[fo]=!1}),10)}).bind(this);this.addEventListener("keydown",en),this.addEventListener("mousedown",en),this.addEventListener("touchend",en)}}[wo](en){super[wo](en),en.value&&refreshSelectionState(this)}}}(WrappedStandardElement.wrap("input")))));class Input extends ai{get[Hr](){return Object.assign(super[Hr],{value:""})}get[uo](){return this.inner}[yo](en){super[yo](en),this[Wr]&&this[Ao].inner.addEventListener("input",(()=>{this[fo]=!0;const en=this[Ao].inner;this[Co]({value:en.value}),this[fo]=!1}))}get[Vo](){const en=super[Vo];return en.content.append(Bn.html(ii||(ii=_taggedTemplateLiteral(['\n <style>\n [part~="input"] {\n font: inherit;\n outline: none;\n text-align: inherit;\n }\n </style>\n '])))),en}get value(){return this[jo].value}set value(en){this[Co]({value:String(en)})}}var si;class PlainInput extends(function PlainInputMixin(en){return class PlainInput extends en{get[Vo](){const en=super[Vo];return en.content.append(Bn.html(si||(si=_taggedTemplateLiteral(['\n <style>\n :host {\n background: white;\n border: 1px solid gray;\n box-sizing: border-box;\n }\n\n [part~="input"] {\n background: transparent;\n border-color: transparent;\n }\n </style>\n '])))),en}}}(Input)){}customElements.define("elix-input",class ElixInput extends PlainInput{});const li=document.createElement("template");li.innerHTML='\n <style>\n div {\n height: 24px;\n margin: 5px 1px;\n padding: 3px;\n }\n img {\n top: 2px;\n left: 4px;\n position: relative;\n }\n span {\n bottom: 1px;\n right: -4px;\n position: relative;\n margin-right: 4px;\n color: #fff;\n }\n elix-input {\n background-color: var(--input-color);\n border-radius: 3px;\n height: 24px;\n }\n </style>\n <div>\n <img alt="icon" width="12" height="12" />\n <span id="label">label</span>\n <elix-input></elix-input>\n </div>\n';class SEInput extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(li.content.cloneNode(!0)),this.$div=this._shadowRoot.querySelector("div"),this.$img=this._shadowRoot.querySelector("img"),this.$label=this.shadowRoot.getElementById("label"),this.$event=new CustomEvent("change"),this.$input=this._shadowRoot.querySelector("elix-input")}static get observedAttributes(){return["value","label","src","size","title"]}attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"title":this.$div.setAttribute("title","".concat(t$1(nn)));break;case"src":this.$img.setAttribute("src",nn),this.$label.remove();break;case"size":this.$input.setAttribute("size",nn);break;case"label":this.$label.textContent=t$1(nn),this.$img.remove();break;case"value":this.$input.value=nn;break;default:console.error("unknown attribute: ".concat(en))}}get title(){return this.getAttribute("title")}set title(en){this.setAttribute("title",en)}get label(){return this.getAttribute("label")}set label(en){this.setAttribute("label",en)}get value(){return this.$input.value}set value(en){this.$input.value=en}get src(){return this.getAttribute("src")}set src(en){this.setAttribute("src",en)}get size(){return this.getAttribute("size")}set size(en){this.setAttribute("size",en)}connectedCallback(){this.$input.addEventListener("change",(en=>{en.preventDefault(),this.value=en.target.value,this.dispatchEvent(this.$event)})),this.$input.addEventListener("keyup",(en=>{en.preventDefault(),this.value=en.target.value,this.dispatchEvent(this.$event)}))}}customElements.define("se-input",SEInput);const ci=document.createElement("div");ci.attachShadow({mode:"open",delegatesFocus:!0});const Ai=ci.shadowRoot.delegatesFocus;var di;const ui=function ComposedFocusMixin(en){return class ComposedFocus extends en{get[Hr](){return Object.assign(super[Hr]||{},{composeFocus:!Ai})}[yo](en){super[yo]&&super[yo](en),this[Wr]&&this.addEventListener("mousedown",(en=>{if(this[jo].composeFocus&&0===en.button&&en.target instanceof Element){const tn=closestFocusableNode(en.target);tn&&(tn.focus(),en.preventDefault())}}))}}}(DelegateInputLabelMixin(FocusVisibleMixin(WrappedStandardElement.wrap("button"))));class Button extends ui{get[Hr](){return Object.assign(super[Hr],{role:"button"})}get[uo](){return this[Ao].inner}[qo](){const en=new MouseEvent("click",{bubbles:!0,cancelable:!0});this.dispatchEvent(en)}get[Vo](){const en=super[Vo];return en.content.append(Bn.html(di||(di=_taggedTemplateLiteral(['\n <style>\n :host {\n display: inline-flex;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n touch-action: manipulation;\n }\n\n [part~="button"] {\n align-items: center;\n background: none;\n border: none;\n color: inherit;\n flex: 1;\n font: inherit;\n outline: none;\n padding: 0;\n }\n </style>\n '])))),en}}class SyntheticMouseEvent extends MouseEvent{}function clearRepeat(en){en[jo].repeatTimeout&&clearTimeout(en[jo].repeatTimeout),en[jo].repeatInterval&&clearInterval(en[jo].repeatInterval)}function repeatStart(en){const{repeatIntervalDuration:tn,repeatDelayDuration:nn}=en[jo],rn=setTimeout((()=>{const nn=setInterval((()=>{!function raiseMousedown(en){const tn=new SyntheticMouseEvent("mousedown",{bubbles:!0,button:0,cancelable:!0,clientX:0,clientY:0});en.dispatchEvent(tn)}(en)}),tn);en[Co]({repeatInterval:nn})}),nn-tn);en[Co]({repeatTimeout:rn})}function repeatStop(en){clearRepeat(en),en[Co]({repeatTimeout:null,repeatInterval:null})}class RepeatButton extends(function RepeatMousedownMixin(en){return class RepeatMousedown extends en{get[Hr](){return Object.assign(super[Hr]||{},{repeatDelayDuration:500,repeatInterval:null,repeatIntervalDuration:50,repeatTimeout:null})}[yo](en){super[yo]&&super[yo](en),this[Wr]&&(this.addEventListener("mousedown",(en=>{en instanceof SyntheticMouseEvent||0!==en.button||(this[fo]=!0,repeatStart(this),this[fo]=!1)})),this.addEventListener("mouseup",(en=>{0===en.button&&(this[fo]=!0,repeatStop(this),this[fo]=!1)})),this.addEventListener("mouseleave",(en=>{0===en.button&&(this[fo]=!0,repeatStop(this),this[fo]=!1)})),this.addEventListener("touchstart",(()=>{this[fo]=!0,repeatStart(this),this[fo]=!1})),this.addEventListener("touchend",(()=>{this[fo]=!0,repeatStop(this),this[fo]=!1})))}[Lo](en,tn){const nn=super[Lo]?super[Lo](en,tn):{};return tn.disabled&&en.disabled&&(clearRepeat(this),Object.assign(nn,{repeatInterval:null,repeatTimeout:null})),nn}}}(Button)){}var pi,hi;function PlainButtonMixin(en){return class PlainButton extends en{get[Vo](){const en=super[Vo];return en.content.append(Bn.html(pi||(pi=_taggedTemplateLiteral(['\n <style>\n :host([disabled]) ::slotted(*) {\n opacity: 0.5;\n }\n\n [part~="button"] {\n display: inline-flex;\n justify-content: center;\n margin: 0;\n position: relative;\n }\n </style>\n '])))),en}}}class PlainRepeatButton extends(PlainButtonMixin(RepeatButton)){}const gi=new Map;function createElement(en){if("function"==typeof en){let tn;try{tn=new en}catch(nn){if("TypeError"!==nn.name)throw nn;!function registerCustomElement(en){let tn;const nn=/^[A-Za-z][A-Za-z0-9_$]*$/,rn=en.name&&en.name.match(nn);if(rn){const en=/([A-Z])/g;tn=rn[0].replace(en,((en,tn,nn)=>nn>0?"-".concat(tn):tn)).toLowerCase()}else tn="custom-element";let an,sn=gi.get(tn)||0;for(;an="".concat(tn,"-").concat(sn),customElements.get(an);sn++);customElements.define(an,en),gi.set(tn,sn+1)}(en),tn=new en}return tn}return document.createElement(en)}function replace(en,tn){const nn=en.parentNode;if(!nn)throw"An element must have a parent before it can be substituted.";return(en instanceof HTMLElement||en instanceof SVGElement)&&(tn instanceof HTMLElement||tn instanceof SVGElement)&&(Array.prototype.forEach.call(en.attributes,(en=>{tn.getAttribute(en.name)||"class"===en.name||"style"===en.name||tn.setAttribute(en.name,en.value)})),Array.prototype.forEach.call(en.classList,(en=>{tn.classList.add(en)})),Array.prototype.forEach.call(en.style,(nn=>{tn.style[nn]||(tn.style[nn]=en.style[nn])}))),tn.append(...en.childNodes),nn.replaceChild(tn,en),tn}function transmute(en,tn){if("function"==typeof tn&&en.constructor===tn||"string"==typeof tn&&en instanceof Element&&en.localName===tn)return en;{const nn=createElement(tn);return replace(en,nn),nn}}function DisabledMixin(en){return class Disabled extends en{get[Hr](){return Object.assign(super[Hr]||{},{disabled:!1})}get disabled(){return this[jo].disabled}set disabled(en){this[Co]({disabled:en})}[wo](en){if(super[wo]&&super[wo](en),en.disabled&&(this.toggleAttribute("disabled",this.disabled),this[fo])){const en=new CustomEvent("disabledchange",{bubbles:!0});this.dispatchEvent(en)}}}}function KeyboardDirectionMixin(en){return class KeyboardDirection extends en{get[Hr](){return Object.assign(super[Hr],{handleBubblingDirectionKeys:!1})}[Zr](){if(super[Zr])return super[Zr]()}[Jr](){if(super[Jr])return super[Jr]()}[no](){if(super[no])return super[no]()}[io](){if(super[io])return super[io]()}[ao](){if(super[ao])return super[ao]()}[lo](){if(super[lo])return super[lo]()}[ho](en){let tn=!1;if(this[jo].handleBubblingDirectionKeys||en.target===this){const nn=this[jo].orientation||"both",rn="horizontal"===nn||"both"===nn,an="vertical"===nn||"both"===nn;switch(en.key){case"ArrowDown":an&&(tn=en.altKey?this[Jr]():this[Zr]());break;case"ArrowLeft":!rn||en.metaKey||en.altKey||(tn=this[no]());break;case"ArrowRight":!rn||en.metaKey||en.altKey||(tn=this[io]());break;case"ArrowUp":an&&(tn=en.altKey?this[ao]():this[lo]());break;case"End":tn=this[Jr]();break;case"Home":tn=this[ao]()}}return tn||super[ho]&&super[ho](en)||!1}}}function KeyboardMixin(en){return class Keyboard extends en{constructor(){super(),this.addEventListener("keydown",(async en=>{this[fo]=!0,this[jo].focusVisible||this[Co]({focusVisible:!0});this[ho](en)&&(en.preventDefault(),en.stopImmediatePropagation()),await Promise.resolve(),this[fo]=!1}))}attributeChangedCallback(en,tn,nn){if("tabindex"===en){let en;null===nn?en=-1:(en=Number(nn),isNaN(en)&&(en=this[zr]?this[zr]:0)),this.tabIndex=en}else super.attributeChangedCallback(en,tn,nn)}get[Hr](){const en=this[Kr]?-1:0;return Object.assign(super[Hr]||{},{tabIndex:en})}[ho](en){return!!super[ho]&&super[ho](en)}[yo](en){super[yo]&&super[yo](en),en.tabIndex&&(this.tabIndex=this[jo].tabIndex)}get tabIndex(){return super.tabIndex}set tabIndex(en){super.tabIndex!==en&&(super.tabIndex=en),this[xo]||this[Co]({tabIndex:en})}}}var _i;const mi=DelegateFocusMixin(DelegateInputLabelMixin(function DelegateInputSelectionMixin(en){return class DelegateInputSelection extends en{select(){this[uo].select()}get selectionEnd(){return this[uo].selectionEnd}set selectionEnd(en){this[uo].selectionEnd=en}get selectionStart(){return this[uo].selectionStart}set selectionStart(en){this[uo].selectionStart=en}setRangeText(){this[uo].setRangeText(...arguments)}setSelectionRange(){this[uo].setSelectionRange(...arguments);document.createElement("input").select}}}(DisabledMixin(FocusVisibleMixin(FormElementMixin(KeyboardDirectionMixin(KeyboardMixin(Qr))))))));class SpinBox extends mi{get[Hr](){return Object.assign(super[Hr],{buttonPartType:"button",canGoDown:!0,canGoUp:!0,inputPartType:"input",orientation:"vertical",step:1,stepSelect:!1,value:""})}[Zr](){return super[Zr]&&super[Zr](),this.stepDown(),!0}[lo](){return super[lo]&&super[lo](),this.stepUp(),!0}get[uo](){return this[Ao].input}[yo](en){if(super[yo](en),function renderParts$4(en,tn,nn){if(!nn||nn.inputPartType){const{buttonPartType:nn}=tn;en.querySelectorAll('[part~="spin-button"]').forEach((en=>{transmute(en,nn)}))}if(!nn||nn.inputPartType){const{inputPartType:nn}=tn,rn=en.getElementById("input");rn&&transmute(rn,nn)}}(this[So],this[jo],en),en.buttonPartType&&(this[Ao].downButton.addEventListener("mousedown",(()=>{this[fo]=!0,this.stepDown(),this[fo]=!1})),this[Ao].upButton.addEventListener("mousedown",(()=>{this[fo]=!0,this.stepUp(),this[fo]=!1}))),en.inputPartType&&this[Ao].input.addEventListener("input",(()=>{this[fo]=!0,this.value=this[Ao].input.value,this[fo]=!1})),en.buttonPartType||en.inputPartType){const en=this[Ao].input,tn=this[Ao].downButton;tn instanceof HTMLElement&&en instanceof HTMLElement&&forwardFocus(tn,en);const nn=this[Ao].upButton;nn instanceof HTMLElement&&en instanceof HTMLElement&&forwardFocus(nn,en)}const{disabled:tn,value:nn}=this[jo];if(en.canGoUp||en.canGoDown||en.disabled){const{canGoUp:en,canGoDown:nn}=this[jo];if("disabled"in this[Ao].input&&(this[Ao].input.disabled=tn),"disabled"in this[Ao].downButton){const nn=tn||!en;this[Ao].upButton.disabled=nn}if("disabled"in this[Ao].upButton){const en=tn||!nn;this[Ao].downButton.disabled=en}}en.value&&(this[Ao].input.value=nn)}[wo](en){super[wo](en);const{stepSelect:tn,value:nn}=this[jo];if(en.value&&tn){const en=this[Ao].input,tn=nn.length;en.selectionStart=tn,en.selectionEnd=tn,this[Co]({stepSelect:!1})}if(en.value&&this[fo]){const en=new CustomEvent("change",{bubbles:!0,detail:{value:nn}});this.dispatchEvent(en)}}stepDown(){this[Co]({stepSelect:!0})}stepUp(){this[Co]({stepSelect:!0})}get[Vo](){const en=super[Vo];return en.content.append(Bn.html(_i||(_i=_taggedTemplateLiteral(['\n <style>\n :host {\n display: inline-grid;\n }\n\n [part~="input"] {\n grid-row-end: 3;\n grid-row-start: 1;\n outline: none;\n text-align: right;\n }\n\n [part~="spin-button"] {\n grid-column: 2;\n user-select: none;\n }\n </style>\n <div id="input" part="input"></div>\n <div id="upButton" part="spin-button up-button" tabindex="-1"></div>\n <div id="downButton" part="spin-button down-button" tabindex="-1"></div>\n '])))),en}get value(){return this[jo].value}set value(en){this[Co]({value:String(en)})}}class NumberSpinBox extends SpinBox{attributeChangedCallback(en,tn,nn){"max"===en?this.max=parseFloat(nn):"min"===en?this.min=parseFloat(nn):"step"===en?this.step=parseFloat(nn):super.attributeChangedCallback(en,tn,nn)}get[Hr](){return Object.assign(super[Hr],{max:null,min:null,step:1})}formatValue(en,tn){return Number(en).toFixed(tn)}get max(){return this[jo].max}set max(en){this[Co]({max:en})}get min(){return this[jo].min}set min(en){this[Co]({min:en})}parseValue(en,tn){const nn=0===tn?parseInt(en):parseFloat(en);return isNaN(nn)?0:nn}[Lo](en,tn){const nn=super[Lo];if(tn.step){const{step:tn}=en,rn=/\.(\d)+$/.exec(String(tn)),an=rn&&rn[1]?rn[1].length:0;Object.assign(nn,{precision:an})}if(tn.max||tn.min||tn.value){const{max:tn,min:rn,precision:an,value:sn}=en,cn=parseInt(sn,an);""!==sn&&isNaN(cn)?Object.assign(nn,{valid:!1,validationMessage:"Value must be a number"}):null===tn||cn<=tn?null===rn||cn>=rn?Object.assign(nn,{valid:!0,validationMessage:""}):Object.assign(nn,{valid:!1,validationMessage:"Value must be greater than or equal to ".concat(rn,".")}):Object.assign(nn,{valid:!1,validationMessage:"Value must be less than or equal to ".concat(tn,".")}),Object.assign(nn,{canGoUp:isNaN(cn)||null===en.max||cn<=en.max}),Object.assign(nn,{canGoDown:isNaN(cn)||null===en.min||cn>=en.min})}return nn}get step(){return this[jo].step}set step(en){isNaN(en)||this[Co]({step:en})}stepDown(){super.stepDown();const{max:en,precision:tn,value:nn}=this[jo];let rn=this.parseValue(nn,tn)-this.step;null!==en&&(rn=Math.min(rn,en));const{min:an}=this[jo];(null===an||rn>=an)&&(this.value=this.formatValue(rn,tn))}stepUp(){super.stepUp();const{min:en,precision:tn,value:nn}=this[jo];let rn=this.parseValue(nn,tn)+this.step;null!==en&&(rn=Math.max(rn,en));const{max:an}=this[jo];(null===an||rn<=an)&&(this.value=this.formatValue(rn,tn))}}class PlainNumberSpinBox extends(function PlainSpinBoxMixin(en){return class PlainSpinBox extends en{get[Hr](){return Object.assign(super[Hr]||{},{buttonPartType:PlainRepeatButton,inputPartType:PlainInput})}get[Vo](){const en=super[Vo];en.content.getElementById("upButton").textContent="▲";return en.content.getElementById("downButton").textContent="▼",en.content.append(Bn.html(hi||(hi=_taggedTemplateLiteral(['\n <style>\n :host {\n background: white;\n border: 1px solid gray;\n box-sizing: border-box;\n }\n\n [part~="input"] {\n background: transparent;\n border: none;\n width: 4em;\n }\n\n [part~="spin-button"] {\n background: transparent;\n border: 1px solid gray;\n box-sizing: border-box;\n font-size: 0.6em;\n padding: 2px;\n }\n\n [part~="up-button"] {\n border-right: none;\n border-top: none;\n }\n\n [part~="down-button"] {\n border-bottom: none;\n border-right: none;\n border-top: none;\n }\n </style>\n '])))),en}}}(NumberSpinBox)){}customElements.define("elix-number-spin-box",class ElixNumberSpinBox extends PlainNumberSpinBox{});const fi=document.createElement("template");fi.innerHTML='\n <style>\n div {\n height: 24px;\n margin: 5px 1px;\n padding: 3px;\n }\n div.imginside {\n width: var(--global-se-spin-input-width);\n }\n img {\n position: relative;\n right: -4px;\n top: 2px;\n }\n span {\n bottom: -0.5em;\n right: -4px;\n position: relative;\n margin-left: -4px;\n margin-right: 1px;\n color: #fff;\n }\n elix-number-spin-box {\n background-color: var(--input-color);\n border-radius: 3px;\n height: 20px;\n margin-top: 1px;\n vertical-align: top;\n }\n elix-number-spin-box::part(spin-button) {\n padding: 0px;\n }\n elix-number-spin-box::part(input) {\n width: 3em;\n }\n elix-number-spin-box{\n width: 54px;\n height: 24px;\n }\n </style>\n <div>\n <img alt="icon" width="24" height="24" aria-labelledby="label" />\n <span id="label">label</span>\n <elix-number-spin-box min="1" step="1"></elix-number-spin-box>\n </div>\n';class SESpinInput extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(fi.content.cloneNode(!0)),this.$div=this._shadowRoot.querySelector("div"),this.$img=this._shadowRoot.querySelector("img"),this.$label=this.shadowRoot.getElementById("label"),this.$event=new CustomEvent("change"),this.$input=this._shadowRoot.querySelector("elix-number-spin-box"),this.imgPath=svgEditor.configObj.curConfig.imgPath}static get observedAttributes(){return["value","label","src","size","min","max","step","title"]}attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"title":{const en=this.getAttribute("shortcut");this.$div.setAttribute("title","".concat(t$1(nn)," ").concat(en?"[".concat(t$1(en),"]"):""))}break;case"src":this.$img.setAttribute("src",this.imgPath+"/"+nn),this.$label.remove(),this.$div.classList.add("imginside");break;case"size":this.$input.shadowRoot.getElementById("input").size=nn,this.$input.shadowRoot.getElementById("input").style.width="unset";break;case"step":this.$input.setAttribute("step",nn);break;case"min":this.$input.setAttribute("min",nn);break;case"max":this.$input.setAttribute("max",nn);break;case"label":this.$label.textContent=t$1(nn),this.$img.remove();break;case"value":this.$input.value=nn;break;default:console.error("unknown attribute: ".concat(en))}}get title(){return this.getAttribute("title")}set title(en){this.setAttribute("title",en)}get label(){return this.getAttribute("label")}set label(en){this.setAttribute("label",en)}get value(){return this.$input.value}set value(en){this.$input.value=en}get src(){return this.getAttribute("src")}set src(en){this.setAttribute("src",en)}get size(){return this.getAttribute("size")}set size(en){this.setAttribute("size",en)}connectedCallback(){const en=this.$input.shadowRoot;Array.from(en.childNodes).forEach((en=>{"input"===(null==en?void 0:en.id)&&en.addEventListener("keyup",(en=>{en.preventDefault(),isNaN(en.target.value)||(this.value=en.target.value,this.dispatchEvent(this.$event))}))})),this.$input.addEventListener("change",(en=>{en.preventDefault(),this.value=en.target.value,this.dispatchEvent(this.$event)})),svgEditor.$click(this.$input,(en=>{en.preventDefault(),this.value=en.target.value,this.dispatchEvent(this.$event)}))}}customElements.define("se-spin-input",SESpinInput);const yi=["none","#000000","#3f3f3f","#7f7f7f","#bfbfbf","#ffffff","#ff0000","#ff7f00","#ffff00","#7fff00","#00ff00","#00ff7f","#00ffff","#007fff","#0000ff","#7f00ff","#ff00ff","#ff007f","#7f0000","#7f3f00","#7f7f00","#3f7f00","#007f00","#007f3f","#007f7f","#003f7f","#00007f","#3f007f","#7f007f","#7f003f","#ffaaaa","#ffd4aa","#ffffaa","#d4ffaa","#aaffaa","#aaffd4","#aaffff","#aad4ff","#aaaaff","#d4aaff","#ffaaff","#ffaad4"],bi=document.createElement("template");bi.innerHTML='\n <style>\n .square {\n height: 15px;\n width: 15px;\n float: left;\n }\n #palette_holder {\n overflow: hidden;\n padding: 4px;\n background: #f0f0f0;\n border-radius: 3px;\n z-index: 2;\n }\n \n #js-se-palette {\n float: left;\n width: 632px;\n height: 16px;\n }\n \n div.palette_item {\n height: 15px;\n width: 15px;\n float: left;\n }\n \n div.palette_item:first-child {\n background: white;\n }\n \n </style>\n <div id="palette_holder" title="">\n <div id="js-se-palette">\n </div>\n </div>\n';class SEPalette extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(bi.content.cloneNode(!0)),this.$strip=this._shadowRoot.querySelector("#js-se-palette"),yi.forEach((en=>{const tn=document.createElement("div");if(tn.classList.add("square"),"none"===en){const en=document.createElement("img");en.src="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgY2xhc3M9InN2Z19pY29uIj48c3ZnIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiNkNDAwMDAiIGlkPSJzdmdfOTAiIHkyPSIyNCIgeDI9IjI0IiB5MT0iMCIgeDE9IjAiLz4KICAgIDxsaW5lIGlkPSJzdmdfOTIiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2Q0MDAwMCIgeTI9IjI0IiB4Mj0iMCIgeTE9IjAiIHgxPSIyNCIvPgogIDwvc3ZnPjwvc3ZnPg==",en.style.width="15px",en.style.height="15px",tn.append(en)}else tn.style.backgroundColor=en;tn.dataset.rgb=en,svgEditor.$click(tn,(en=>{en.preventDefault();const nn=en.shiftKey||2===en.button?"stroke":"fill";let rn=tn.dataset.rgb;"none"!==rn&&"transparent"!==rn&&"initial"!==rn||(rn="none");const an=new CustomEvent("change",{detail:{picker:nn,color:rn},bubbles:!1});this.dispatchEvent(an)})),this.$strip.append(tn)}))}init(en){this.setAttribute("ui-palette_info",en.t("ui.palette_info"))}static get observedAttributes(){return["ui-palette_info"]}attributeChangedCallback(en,tn,nn){let rn;"ui-palette_info"===en&&(rn=this._shadowRoot.querySelector("#palette_holder"),rn.setAttribute("title",nn))}connectedCallback(){}}customElements.define("se-palette",SEPalette);class MenuItem extends(function CurrentMixin(en){return class Current extends en{constructor(){super();const en=this;!this[mo]&&en.attachInternals&&(this[mo]=en.attachInternals())}attributeChangedCallback(en,tn,nn){if("current"===en){const tn=booleanAttributeValue(en,nn);this.current!==tn&&(this.current=tn)}else super.attributeChangedCallback(en,tn,nn)}get[Hr](){return Object.assign(super[Hr]||{},{current:!1})}[yo](en){if(super[yo](en),en.current){const{current:en}=this[jo];setInternalState(this,"current",en)}}[wo](en){if(super[wo]&&super[wo](en),en.current){const{current:en}=this[jo],tn=new CustomEvent("currentchange",{bubbles:!0,detail:{current:en}});this.dispatchEvent(tn)}}get current(){return this[jo].current}set current(en){this[Co]({current:en})}}}(DisabledMixin(function SelectableMixin(en){return class Selectable extends en{constructor(){super();const en=this;!this[mo]&&en.attachInternals&&(this[mo]=en.attachInternals())}get[Hr](){return Object.assign(super[Hr]||{},{selected:!1})}[yo](en){if(super[yo](en),en.selected){const{selected:en}=this[jo];setInternalState(this,"selected",en)}}[wo](en){if(super[wo]&&super[wo](en),en.selected){const{selected:en}=this[jo],tn=new CustomEvent("selectedchange",{bubbles:!0,detail:{selected:en}});this.dispatchEvent(tn)}}get selected(){return this[jo].selected}set selected(en){this[Co]({selected:en})}}}(Qr)))){}var vi;class PlainMenuItem extends MenuItem{get[Vo](){return En.html(vi||(vi=_taggedTemplateLiteral(['\n <style>\n :host {\n font-family: -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, Oxygen, Ubuntu, Cantarell, \'Open Sans\', \'Helvetica Neue\', sans-serif;\n font-size: 10pt;\n white-space: nowrap;\n }\n\n :host([disabled]) {\n opacity: 0.5;\n }\n\n #checkmark {\n height: 1em;\n visibility: hidden;\n width: 1em;\n }\n\n :host([selected]) #checkmark {\n visibility: visible;\n }\n </style>\n <svg id="checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="4 6 18 12">\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/>\n </svg>\n <slot></slot>\n '])))}}customElements.define("elix-menu-item",class ElixMenuItem extends PlainMenuItem{});const wi={a:"link",article:"region",button:"button",h1:"sectionhead",h2:"sectionhead",h3:"sectionhead",h4:"sectionhead",h5:"sectionhead",h6:"sectionhead",hr:"sectionhead",iframe:"region",link:"link",menu:"menu",ol:"list",option:"option",output:"liveregion",progress:"progressbar",select:"select",table:"table",td:"td",textarea:"textbox",th:"th",ul:"list"};function defaultScrollTarget(en){const tn=en[So],nn=tn&&tn.querySelector("slot:not([name])");return nn&&nn.parentNode instanceof Element&&function getScrollableElement(en){for(const tn of selfAndComposedAncestors(en))if(tn instanceof HTMLElement&&isElementScrollable(tn))return tn;return null}(nn.parentNode)||en}function isElementScrollable(en){const tn=getComputedStyle(en),nn=tn.overflowX,rn=tn.overflowY;return"scroll"===nn||"auto"===nn||"scroll"===rn||"auto"===rn}function moveToIndex(en,tn,nn){const rn=en[Gr](en[jo],{direction:nn,index:tn});if(rn<0)return!1;const an=en[jo].currentIndex!==rn;return an&&en[Co]({currentIndex:rn}),an}const xi=["applet","basefont","embed","font","frame","frameset","isindex","keygen","link","multicol","nextid","noscript","object","param","script","style","template","noembed"];function getIndexOfItemAtY(en,tn,nn){const rn=en[jo].items,an=nn?0:rn.length-1,sn=nn?rn.length:0,cn=nn?1:-1;let An,dn,un=null;const{availableItemFlags:pn}=en[jo];for(An=an;An!==sn;An+=cn){if((!pn||pn[An])&&(dn=rn[An].getBoundingClientRect(),dn.top<=tn&&tn<=dn.bottom)){un=rn[An];break}}if(!un||!dn)return null;const hn=getComputedStyle(un),gn=hn.paddingTop?parseFloat(hn.paddingTop):0,_n=hn.paddingBottom?parseFloat(hn.paddingBottom):0,mn=dn.top+gn,fn=mn+un.clientHeight-gn-_n;return nn&&mn<=tn||!nn&&fn>=tn?An:An-cn}function scrollOnePage(en,tn){const nn=en[jo].items,rn=en[jo].currentIndex,an=en[ko].getBoundingClientRect(),sn=getIndexOfItemAtY(en,tn?an.bottom:an.top,tn);let cn;if(sn&&rn===sn){const an=nn[rn].getBoundingClientRect(),sn=en[ko].clientHeight;cn=getIndexOfItemAtY(en,tn?an.bottom+sn:an.top-sn,tn)}else cn=sn;if(!cn){const rn=tn?nn.length-1:0;cn=en[Gr]?en[Gr](en[jo],{direction:tn?-1:1,index:rn}):rn}const An=cn!==rn;if(An){const tn=en[fo];en[fo]=!0,en[Co]({currentIndex:cn}),en[fo]=tn}return An}const ki=Symbol("typedPrefix"),Ci=Symbol("prefixTimeout");function resetPrefixTimeout(en){const tn=en;tn[Ci]&&(clearTimeout(tn[Ci]),tn[Ci]=!1)}function resetTypedPrefix(en){en[ki]="",resetPrefixTimeout(en)}function setPrefixTimeout(en){resetPrefixTimeout(en),en[Ci]=setTimeout((()=>{resetTypedPrefix(en)}),1e3)}function LanguageDirectionMixin(en){return class LanguageDirection extends en{connectedCallback(){const en="rtl"===getComputedStyle(this).direction;this[Co]({rightToLeft:en}),super.connectedCallback()}}}function ContentItemsMixin(en){return class ContentItems extends en{get[Hr](){return Object.assign(super[Hr]||{},{items:null})}[Lo](en,tn){const nn=super[Lo]?super[Lo](en,tn):{};if(tn.content){const tn=en.content,rn=tn?Array.prototype.filter.call(tn,(en=>function isSubstantiveElement(en){return en instanceof Element&&(!en.localName||xi.indexOf(en.localName)<0)}(en))):null;rn&&Object.freeze(rn),Object.assign(nn,{items:rn})}return nn}}}function SlotContentMixin(en){return class SlotContent extends en{get[Dr](){const en=this[So]&&this[So].querySelector("slot:not([name])");return this[So]&&en||console.warn("SlotContentMixin expects ".concat(this.constructor.name," to define a shadow tree that includes a default (unnamed) slot.\nSee https://elix.org/documentation/SlotContentMixin.")),en}get[Hr](){return Object.assign(super[Hr]||{},{content:null})}[wo](en){if(super[wo]&&super[wo](en),this[Wr]){const en=this[Dr];en&&en.addEventListener("slotchange",(async()=>{this[fo]=!0;const tn=en.assignedNodes({flatten:!0});Object.freeze(tn),this[Co]({content:tn}),await Promise.resolve(),this[fo]=!1}))}}}}var Si;const Bi=function AriaMenuMixin(en){return class AriaMenu extends en{get[Hr](){const en=super[Hr];return Object.assign(en,{itemRole:en.itemRole||"menuitem",role:en.role||"menu"})}get itemRole(){return this[jo].itemRole}set itemRole(en){this[Co]({itemRole:en})}[yo](en){super[yo]&&super[yo](en);const tn=this[jo].items;if((en.items||en.itemRole)&&tn){const{itemRole:en}=this[jo];tn.forEach((tn=>{en===wi[tn.localName]?tn.removeAttribute("role"):tn.setAttribute("role",en)}))}if(en.role){const{role:en}=this[jo];this.setAttribute("role",en)}}get role(){return super.role}set role(en){super.role=en,this[xo]||this[Co]({role:en})}}}(function CursorAPIMixin(en){return class CursorAPI extends en{attributeChangedCallback(en,tn,nn){if("current-index"===en)this.currentIndex=Number(nn);else if("current-item-required"===en){const tn=booleanAttributeValue(en,nn);this.currentItemRequired!==tn&&(this.currentItemRequired=tn)}else if("cursor-operations-wrap"===en){const tn=booleanAttributeValue(en,nn);this.cursorOperationsWrap!==tn&&(this.cursorOperationsWrap=tn)}else super.attributeChangedCallback(en,tn,nn)}get currentIndex(){const{items:en,currentIndex:tn}=this[jo];return en&&en.length>0?tn:-1}set currentIndex(en){isNaN(en)||this[Co]({currentIndex:en})}get currentItem(){const{items:en,currentIndex:tn}=this[jo];return en&&en[tn]}set currentItem(en){const{items:tn}=this[jo];if(!tn)return;const nn=tn.indexOf(en);this[Co]({currentIndex:nn})}get currentItemRequired(){return this[jo].currentItemRequired}set currentItemRequired(en){this[Co]({currentItemRequired:en})}get cursorOperationsWrap(){return this[jo].cursorOperationsWrap}set cursorOperationsWrap(en){this[Co]({cursorOperationsWrap:en})}goFirst(){return super.goFirst&&super.goFirst(),this[eo]()}goLast(){return super.goLast&&super.goLast(),this[to]()}goNext(){return super.goNext&&super.goNext(),this[ro]()}goPrevious(){return super.goPrevious&&super.goPrevious(),this[oo]()}[wo](en){if(super[wo]&&super[wo](en),en.currentIndex&&this[fo]){const{currentIndex:en}=this[jo],tn=new CustomEvent("currentindexchange",{bubbles:!0,detail:{currentIndex:en}});this.dispatchEvent(tn)}}}}(function CursorInViewMixin(en){return class CursorInView extends en{[wo](en){super[wo]&&super[wo](en),en.currentItem&&this.scrollCurrentItemIntoView()}scrollCurrentItemIntoView(){super.scrollCurrentItemIntoView&&super.scrollCurrentItemIntoView();const{currentItem:en,items:tn}=this[jo];if(!en||!tn)return;const nn=this[ko].getBoundingClientRect(),rn=en.getBoundingClientRect(),an=rn.bottom-nn.bottom,sn=rn.left-nn.left,cn=rn.right-nn.right,An=rn.top-nn.top,dn=this[jo].orientation||"both";"horizontal"!==dn&&"both"!==dn||(cn>0?this[ko].scrollLeft+=cn:sn<0&&(this[ko].scrollLeft+=Math.ceil(sn))),"vertical"!==dn&&"both"!==dn||(an>0?this[ko].scrollTop+=an:An<0&&(this[ko].scrollTop+=Math.ceil(An)))}get[ko](){return super[ko]||defaultScrollTarget(this)}}}(DelegateFocusMixin(function DirectionCursorMixin(en){return class DirectionCursor extends en{get[Hr](){return Object.assign(super[Hr]||{},{canGoDown:null,canGoLeft:null,canGoRight:null,canGoUp:null})}[Zr](){return super[Zr]&&super[Zr](),this[ro]()}[Jr](){return super[Jr]&&super[Jr](),this[to]()}[no](){return super[no]&&super[no](),this[jo]&&this[jo].rightToLeft?this[ro]():this[oo]()}[io](){return super[io]&&super[io](),this[jo]&&this[jo].rightToLeft?this[oo]():this[ro]()}[ao](){return super[ao]&&super[ao](),this[eo]()}[lo](){return super[lo]&&super[lo](),this[oo]()}[Lo](en,tn){const nn=super[Lo]?super[Lo](en,tn):{};if(tn.canGoNext||tn.canGoPrevious||tn.languageDirection||tn.orientation||tn.rightToLeft){const{canGoNext:tn,canGoPrevious:rn,orientation:an,rightToLeft:sn}=en,cn="horizontal"===an||"both"===an,An="vertical"===an||"both"===an,dn=An&&tn,un=!!cn&&(sn?tn:rn),pn=!!cn&&(sn?rn:tn),hn=An&&rn;Object.assign(nn,{canGoDown:dn,canGoLeft:un,canGoRight:pn,canGoUp:hn})}return nn}}}(function ItemsAPIMixin(en){return class ItemsAPI extends en{get items(){return this[jo]?this[jo].items:null}[wo](en){if(super[wo]&&super[wo](en),!this[Wr]&&en.items&&this[fo]){const en=new CustomEvent("itemschange",{bubbles:!0});this.dispatchEvent(en)}}}}(function ItemsCursorMixin(en){return class ItemsCursor extends en{[Gr](en){let tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const nn=void 0!==tn.direction?tn.direction:1,rn=void 0!==tn.index?tn.index:en.currentIndex,an=void 0!==tn.wrap?tn.wrap:en.cursorOperationsWrap,{items:sn}=en,cn=sn?sn.length:0;if(0===cn)return-1;if(an){let tn=(rn%cn+cn)%cn;const an=((tn-nn)%cn+cn)%cn;for(;tn!==an;){if(!en.availableItemFlags||en.availableItemFlags[tn])return tn;tn=((tn+nn)%cn+cn)%cn}}else for(let tn=rn;tn>=0&&tn<cn;tn+=nn){if(!en.availableItemFlags||en.availableItemFlags[tn])return tn}return-1}get[Hr](){return Object.assign(super[Hr]||{},{currentIndex:-1,desiredCurrentIndex:null,currentItem:null,currentItemRequired:!1,cursorOperationsWrap:!1})}[eo](){return super[eo]&&super[eo](),moveToIndex(this,0,1)}[to](){return super[to]&&super[to](),moveToIndex(this,this[jo].items.length-1,-1)}[ro](){super[ro]&&super[ro]();const{currentIndex:en,items:tn}=this[jo];return moveToIndex(this,en<0&&tn?0:en+1,1)}[oo](){super[oo]&&super[oo]();const{currentIndex:en,items:tn}=this[jo];return moveToIndex(this,en<0&&tn?tn.length-1:en-1,-1)}[Lo](en,tn){const nn=super[Lo]?super[Lo](en,tn):{};if(tn.availableItemFlags||tn.items||tn.currentIndex||tn.currentItemRequired){const{currentIndex:rn,desiredCurrentIndex:an,currentItem:sn,currentItemRequired:cn,items:An}=en,dn=An?An.length:0;let un,pn=an;if(tn.items&&!tn.currentIndex&&sn&&dn>0&&An[rn]!==sn){const en=An.indexOf(sn);en>=0&&(pn=en)}else tn.currentIndex&&(rn<0&&null!==sn||rn>=0&&(0===dn||An[rn]!==sn)||null===an)&&(pn=rn);cn&&pn<0&&(pn=0),pn<0?(pn=-1,un=-1):0===dn?un=-1:(un=Math.max(Math.min(dn-1,pn),0),un=this[Gr](en,{direction:1,index:un,wrap:!1}),un<0&&(un=this[Gr](en,{direction:-1,index:un-1,wrap:!1})));const hn=An&&An[un]||null;Object.assign(nn,{currentIndex:un,desiredCurrentIndex:pn,currentItem:hn})}return nn}}}(function ItemsTextMixin(en){return class ItemsText extends en{get[Hr](){return Object.assign(super[Hr]||{},{texts:null})}[Yr](en){return super[Yr]?super[Yr](en):function getDefaultText(en){return en.getAttribute("aria-label")||en.getAttribute("alt")||en.innerText||en.textContent||""}(en)}[Lo](en,tn){const nn=super[Lo]?super[Lo](en,tn):{};if(tn.items){const{items:tn}=en,rn=function getTextsFromItems(en,tn){return en?Array.from(en,(en=>tn(en))):null}(tn,this[Yr]);rn&&(Object.freeze(rn),Object.assign(nn,{texts:rn}))}return nn}}}(KeyboardDirectionMixin(KeyboardMixin(function KeyboardPagedCursorMixin(en){return class KeyboardPagedCursor extends en{[ho](en){let tn=!1;if("horizontal"!==this.orientation)switch(en.key){case"PageDown":tn=this.pageDown();break;case"PageUp":tn=this.pageUp()}return tn||super[ho]&&super[ho](en)}get orientation(){return super.orientation||this[jo]&&this[jo].orientation||"both"}pageDown(){return super.pageDown&&super.pageDown(),scrollOnePage(this,!0)}pageUp(){return super.pageUp&&super.pageUp(),scrollOnePage(this,!1)}get[ko](){return super[ko]||defaultScrollTarget(this)}}}(function KeyboardPrefixCursorMixin(en){return class KeyboardPrefixCursor extends en{constructor(){super(),resetTypedPrefix(this)}[so](en){if(super[so]&&super[so](en),null==en||0===en.length)return!1;const tn=en.toLowerCase(),nn=this[jo].texts.findIndex((nn=>nn.substr(0,en.length).toLowerCase()===tn));if(nn>=0){const en=this[jo].currentIndex;return this[Co]({currentIndex:nn}),this[jo].currentIndex!==en}return!1}[ho](en){let tn;switch(en.key){case"Backspace":!function handleBackspace(en){const tn=en,nn=tn[ki]?tn[ki].length:0;nn>0&&(tn[ki]=tn[ki].substr(0,nn-1));en[so](tn[ki]),setPrefixTimeout(en)}(this),tn=!0;break;case"Escape":resetTypedPrefix(this);break;default:en.ctrlKey||en.metaKey||en.altKey||1!==en.key.length||function handlePlainCharacter(en,tn){const nn=en,rn=nn[ki]||"";nn[ki]=rn+tn,en[so](nn[ki]),setPrefixTimeout(en)}(this,en.key)}return tn||super[ho]&&super[ho](en)}}}(LanguageDirectionMixin(function SlotItemsMixin(en){return ContentItemsMixin(SlotContentMixin(en))}(function TapCursorMixin(en){return class TapCursor extends en{constructor(){super(),this.addEventListener("mousedown",(en=>{0===en.button&&(this[fo]=!0,this[qo](en),this[fo]=!1)}))}[yo](en){super[yo]&&super[yo](en),this[Wr]&&Object.assign(this.style,{touchAction:"manipulation",mozUserSelect:"none",msUserSelect:"none",webkitUserSelect:"none",userSelect:"none"})}[qo](en){const tn=en.composedPath?en.composedPath()[0]:en.target,{items:nn,currentItemRequired:rn}=this[jo];if(nn&&tn instanceof Node){const an=indexOfItemContainingTarget(nn,tn),sn=an>=0?nn[an]:null;(sn&&!sn.disabled||!sn&&!rn)&&(this[Co]({currentIndex:an}),en.stopPropagation())}}}}(Qr)))))))))))))));class Menu extends Bi{get[Hr](){return Object.assign(super[Hr],{availableItemFlags:null,handleBubblingDirectionKeys:!0,highlightCurrentItem:!0,orientation:"vertical",currentItemFocused:!1})}async flashCurrentItem(){const en=this[jo].focusVisible,tn=matchMedia("(pointer: fine)").matches;if(en||tn){const en=75;this[Co]({highlightCurrentItem:!1}),await new Promise((tn=>setTimeout(tn,en))),this[Co]({highlightCurrentItem:!0}),await new Promise((tn=>setTimeout(tn,en)))}}[yo](en){super[yo](en),this[Wr]&&(this.addEventListener("disabledchange",(en=>{this[fo]=!0;const tn=en.target,{items:nn}=this[jo],rn=null===nn?-1:nn.indexOf(tn);if(rn>=0){const en=this[jo].availableItemFlags.slice();en[rn]=!tn.disabled,this[Co]({availableItemFlags:en})}this[fo]=!1})),"PointerEvent"in window?this.addEventListener("pointerdown",(en=>this[qo](en))):this.addEventListener("touchstart",(en=>this[qo](en))),this.removeAttribute("tabindex"));const{currentIndex:tn,items:nn}=this[jo];if((en.items||en.currentIndex||en.highlightCurrentItem)&&nn){const{highlightCurrentItem:en}=this[jo];nn.forEach(((nn,rn)=>{nn.toggleAttribute("current",en&&rn===tn)}))}(en.items||en.currentIndex||en.currentItemFocused||en.focusVisible)&&nn&&nn.forEach(((en,nn)=>{const rn=nn===tn,an=tn<0&&0===nn;this[jo].currentItemFocused?rn||an||en.removeAttribute("tabindex"):(rn||an)&&(en.tabIndex=0)}))}[wo](en){if(super[wo](en),!this[Wr]&&en.currentIndex&&!this[jo].currentItemFocused){const{currentItem:en}=this[jo];(en instanceof HTMLElement?en:this).focus(),this[Co]({currentItemFocused:!0})}}get[ko](){return this[Ao].content}[Lo](en,tn){const nn=super[Lo](en,tn);if(tn.currentIndex&&Object.assign(nn,{currentItemFocused:!1}),tn.items){const{items:tn}=en,rn=null===tn?null:tn.map((en=>!en.disabled));Object.assign(nn,{availableItemFlags:rn})}return nn}get[Vo](){return En.html(Si||(Si=_taggedTemplateLiteral(['\n <style>\n :host {\n box-sizing: border-box;\n cursor: default;\n display: inline-flex;\n -webkit-tap-highlight-color: transparent;\n touch-action: manipulation;\n }\n\n #content {\n display: flex;\n flex: 1;\n flex-direction: column;\n max-height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch; /* for momentum scrolling */\n }\n \n ::slotted(*) {\n flex-shrink: 0;\n outline: none;\n touch-action: manipulation;\n }\n\n ::slotted(option) {\n font: inherit;\n min-height: inherit;\n }\n </style>\n <div id="content" role="none">\n <slot></slot>\n </div>\n '])))}}const Ei=Symbol("documentMouseupListener");async function handleMouseup(en){const tn=this,nn=tn[So].elementsFromPoint(en.clientX,en.clientY);if(tn.opened){const en=nn.indexOf(tn[Ao].source)>=0,rn=tn[Ao].popup,an=nn.indexOf(rn)>=0,sn=rn.frame&&nn.indexOf(rn.frame)>=0;en?tn[jo].dragSelect&&(tn[fo]=!0,tn[Co]({dragSelect:!1}),tn[fo]=!1):an||sn||(tn[fo]=!0,await tn.close(),tn[fo]=!1)}}function listenIfOpenAndConnected$1(en){en[jo].opened&&en.isConnected?en[Ei]||(en[Ei]=handleMouseup.bind(en),document.addEventListener("mouseup",en[Ei])):en[Ei]&&(document.removeEventListener("mouseup",en[Ei]),en[Ei]=null)}function availableSpace(en,tn,nn,rn){const an=getSourceOrigin(en,nn,rn);let sn=0,cn=0;const An="above"===nn||"below"===nn;switch(nn){case"above":sn=an.y-tn.top;break;case"below":sn=tn.bottom-an.y;break;case"left":cn=an.x-tn.left;break;case"right":cn=tn.right-an.x}switch(rn){case"bottom":sn=an.y-tn.top;break;case"center":An?cn=tn.width:sn=tn.height;break;case"stretch":An?cn=en.width:sn=en.height;break;case"left":cn=tn.right-an.x;break;case"right":cn=an.x-tn.left;break;case"top":sn=tn.bottom-an.y}return sn=Math.max(0,sn),cn=Math.max(0,cn),{height:sn,width:cn}}function getSourceOrigin(en,tn,nn){let rn=0,an=0;const sn="above"===tn||"below"===tn;switch(tn){case"above":an=en.top;break;case"below":an=en.bottom;break;case"left":case"right":rn=en[tn]}switch(nn){case"bottom":case"top":an=en[nn];break;case"left":case"right":rn=en[nn];break;case"center":sn?rn=en.left+en.width/2:an=en.top+en.height/2;break;case"stretch":sn?rn=en.left:an=en.top}return{x:rn,y:an}}function layoutPopup(en,tn,nn,rn){const an=function normalizeOptions(en){const{align:tn,direction:nn,rightToLeft:rn}=en,an="below",sn={above:"above",below:"below",column:"below","column-reverse":"above",left:"left",right:"right",row:rn?"left":"right","row-reverse":rn?"right":"left"}[nn]||an,cn={above:"horizontal",below:"horizontal",left:"vertical",right:"vertical"}[sn],An={horizontal:"left",vertical:"top"}[cn];return{align:{horizontal:{center:"center",end:rn?"left":"right",left:"left",right:"right",start:rn?"right":"left",stretch:"stretch"},vertical:{bottom:"bottom",center:"center",end:"bottom",start:"top",stretch:"stretch",top:"top"}}[cn][tn]||An,direction:sn,rightToLeft:rn}}(rn),sn=function prioritizedLayouts(en,tn){const nn={above:"below",below:"above",left:"right",right:"left"},rn={top:"bottom",bottom:"top",left:"right",right:"left"},an=[{align:tn,direction:en}];"center"===tn||"stretch"===tn?an.push({align:tn,direction:nn[en]}):(an.push({align:rn[tn],direction:en}),an.push({align:tn,direction:nn[en]}),an.push({align:rn[tn],direction:nn[en]}));return an}(an.direction,an.align);sn.sort(((rn,an)=>function compareLayouts(en,tn,nn,rn,an){const sn=availableSpace(nn,an,en.direction,en.align),cn=availableSpace(nn,an,tn.direction,tn.align),An=rn.width<=sn.width,dn=rn.height<=sn.height,un=An||dn,pn=An&&dn,hn=rn.width<=cn.width,gn=rn.height<=cn.height,_n=hn||gn,mn=hn&&gn,fn=sn.width*sn.height,yn=cn.width*cn.height;return pn&&mn?0:pn?-1:mn?1:un&&!_n?-1:_n&&!un?1:un&&fn>yn?-1:_n&&yn>fn?1:fn>yn?-1:yn>fn?1:0}(rn,an,en,tn,nn)));const cn=sn[0];return cn.rect=function getPositionedRect(en,tn,nn,rn,an){const sn=getSourceOrigin(en,rn,an);let{x:cn,y:An,bottom:dn,right:un}=nn,pn=0,hn=0,gn=tn.height,_n=tn.width;const mn="above"===rn||"below"===rn;switch(rn){case"above":hn=sn.y-tn.height,dn=sn.y;break;case"below":hn=sn.y,An=sn.y;break;case"left":pn=sn.x-tn.width,un=sn.x;break;case"right":pn=sn.x,cn=sn.x}switch(an){case"bottom":hn=sn.y-tn.height,dn=sn.y;break;case"left":pn=sn.x,cn=sn.x;break;case"center":mn?pn=sn.x-tn.width/2:hn=sn.y-tn.height/2;break;case"right":pn=sn.x-tn.width,un=sn.x;break;case"stretch":mn?(pn=sn.x,_n=en.width):(hn=sn.y,gn=en.height);break;case"top":hn=sn.y,An=sn.y}return pn=Math.max(pn,cn),hn=Math.max(hn,An),_n=Math.min(_n,un-pn),gn=Math.min(gn,dn-hn),new DOMRect(pn,hn,_n,gn)}(en,tn,nn,cn.direction,cn.align),cn}const ji=Symbol("closePromise"),Li=Symbol("closeResolve");function OpenCloseMixin(en){return class OpenClose extends en{attributeChangedCallback(en,tn,nn){if("opened"===en){const tn=booleanAttributeValue(en,nn);this.opened!==tn&&(this.opened=tn)}else super.attributeChangedCallback(en,tn,nn)}async close(en){super.close&&await super.close(),this[Co]({closeResult:en}),await this.toggle(!1)}get closed(){return this[jo]&&!this[jo].opened}get closeFinished(){return this[jo].closeFinished}get closeResult(){return this[jo].closeResult}get[Hr](){const en={closeResult:void 0,opened:!1};return this[Eo]&&Object.assign(en,{closeFinished:!0,effect:"close",effectPhase:"after",openCloseEffects:!0}),Object.assign(super[Hr]||{},en)}async open(){super.open&&await super.open(),await this.toggle(!0)}get opened(){return this[jo]&&this[jo].opened}set opened(en){this[Co]({closeResult:void 0}),this.toggle(en)}[yo](en){if(super[yo](en),en.opened){const{opened:en}=this[jo];setInternalState(this,"opened",en)}if(en.closeFinished){const{closeFinished:en}=this[jo];setInternalState(this,"closed",en)}}[wo](en){if(super[wo]&&super[wo](en),en.opened&&this[fo]){const en=new CustomEvent("openedchange",{bubbles:!0,detail:{closeResult:this[jo].closeResult,opened:this[jo].opened}});if(this.dispatchEvent(en),this[jo].opened){const en=new CustomEvent("opened",{bubbles:!0});this.dispatchEvent(en);const tn=new CustomEvent("open",{bubbles:!0});this.dispatchEvent(tn)}else{const en=new CustomEvent("closed",{bubbles:!0,detail:{closeResult:this[jo].closeResult}});this.dispatchEvent(en);const tn=new CustomEvent("close",{bubbles:!0,detail:{closeResult:this[jo].closeResult}});this.dispatchEvent(tn)}}const tn=this[Li];this.closeFinished&&tn&&(this[Li]=null,this[ji]=null,tn(this[jo].closeResult))}[Lo](en,tn){const nn=super[Lo]?super[Lo](en,tn):{};if(tn.opened&&en.opened&&Object.assign(nn,{closeResult:void 0}),tn.openCloseEffects||tn.effect||tn.effectPhase||tn.opened){const{effect:tn,effectPhase:rn,openCloseEffects:an,opened:sn}=en,cn=an?"close"===tn&&"after"===rn:!sn;Object.assign(nn,{closeFinished:cn})}return nn}async toggle(){let en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened;super.toggle&&await super.toggle(en);if(en!==this[jo].opened){const tn={opened:en};this[jo].openCloseEffects&&(tn.effect=en?"open":"close","after"===this[jo].effectPhase&&(tn.effectPhase="before")),await this[Co](tn)}}whenClosed(){return this[ji]||(this[ji]=new Promise((en=>{this[Li]=en}))),this[ji]}}}var Pi;const Ti=function AriaRoleMixin(en){return class AriaRole extends en{get[Hr](){return Object.assign(super[Hr]||{},{role:null})}[yo](en){if(super[yo]&&super[yo](en),en.role){const{role:en}=this[jo];en?this.setAttribute("role",en):this.removeAttribute("role")}}get role(){return super.role}set role(en){const tn=String(en);super.role=tn,this[xo]||this[Co]({s:tn})}}}(Qr);class Backdrop extends Ti{get[Hr](){return Object.assign(super[Hr],{role:"none"})}get[Vo](){return En.html(Pi||(Pi=_taggedTemplateLiteral(["\n <style>\n :host {\n display: inline-block;\n height: 100%;\n left: 0;\n position: fixed;\n top: 0;\n touch-action: manipulation;\n width: 100%;\n }\n </style>\n <slot></slot>\n "])))}}var Fi,Ui,Ni;class OverlayFrame extends Qr{get[Vo](){return En.html(Fi||(Fi=_taggedTemplateLiteral(["\n <style>\n :host {\n display: inline-block;\n position: relative;\n }\n </style>\n <slot></slot>\n "])))}}const Ii=Symbol("appendedToDocument"),Mi=Symbol("assignedZIndex"),Ri=Symbol("restoreFocusToElement");function bringToFront(en){const tn=function maxZIndexInUse(){const en=document.body.querySelectorAll("*"),tn=Array.from(en,(en=>{const tn=getComputedStyle(en);let nn=0;if("static"!==tn.position&&"auto"!==tn.zIndex){const en=tn.zIndex?parseInt(tn.zIndex):0;nn=isNaN(en)?0:en}return nn}));return Math.max(...tn)}()+1;en[Mi]=tn,en.style.zIndex=tn.toString()}function hasZIndex(en){const tn=getComputedStyle(en).zIndex,nn=en.style.zIndex,rn=!isNaN(parseInt(nn));if("auto"===tn)return rn;if("0"===tn&&!rn){const tn=en.assignedSlot||(en instanceof ShadowRoot?en.host:en.parentNode);if(!(tn instanceof HTMLElement))return!0;if(!hasZIndex(tn))return!1}return!0}var Oi;const Qi=OpenCloseMixin(function OverlayMixin(en){return class Overlay extends en{get autoFocus(){return this[jo].autoFocus}set autoFocus(en){this[Co]({autoFocus:en})}get[Hr](){return Object.assign(super[Hr]||{},{autoFocus:!0,persistent:!1})}async open(){this[jo].persistent||this.isConnected||(this[Ii]=!0,document.body.append(this)),super.open&&await super.open()}[yo](en){if(super[yo]&&super[yo](en),this[Wr]&&this.addEventListener("blur",(en=>{const tn=en.relatedTarget||document.activeElement;if(tn instanceof HTMLElement){deepContains(this,tn)||(this.opened?this[Ri]=tn:(tn.focus(),this[Ri]=null))}})),(en.effectPhase||en.opened||en.persistent)&&!this[jo].persistent){(void 0===this.closeFinished?this.closed:this.closeFinished)?this[Mi]&&(this.style.zIndex="",this[Mi]=null):this[Mi]?this.style.zIndex=this[Mi]:hasZIndex(this)||bringToFront(this)}}[wo](en){if(super[wo]&&super[wo](en),this[Wr]&&this[jo].persistent&&!hasZIndex(this)&&bringToFront(this),en.opened&&this[jo].autoFocus)if(this[jo].opened){this[Ri]||document.activeElement===document.body||(this[Ri]=document.activeElement);const en=firstFocusableElement(this);en&&en.focus()}else this[Ri]&&(this[Ri].focus(),this[Ri]=null);!this[Wr]&&!this[jo].persistent&&this.closeFinished&&this[Ii]&&(this[Ii]=!1,this.parentNode&&this.parentNode.removeChild(this))}get[Vo](){const en=super[Vo]||En.html(Ui||(Ui=_taggedTemplateLiteral([""])));return en.content.append(Bn.html(Ni||(Ni=_taggedTemplateLiteral(["\n <style>\n :host([closed]) {\n display: none;\n }\n </style>\n "])))),en}}}(SlotContentMixin(Qr)));class Overlay extends Qi{get backdrop(){return this[Ao]&&this[Ao].backdrop}get backdropPartType(){return this[jo].backdropPartType}set backdropPartType(en){this[Co]({backdropPartType:en})}get[Hr](){return Object.assign(super[Hr],{backdropPartType:Backdrop,framePartType:OverlayFrame})}get frame(){return this[Ao].frame}get framePartType(){return this[jo].framePartType}set framePartType(en){this[Co]({framePartType:en})}[yo](en){super[yo](en),renderParts$3(this[So],this[jo],en)}[wo](en){super[wo](en),en.opened&&this[jo].content&&this[jo].content.forEach((en=>{en[Vr]&&en[Vr]()}))}get[Vo](){const en=super[Vo];return en.content.append(Bn.html(Oi||(Oi=_taggedTemplateLiteral(['\n <style>\n :host {\n max-height: 100vh;\n max-width: 100vw;\n outline: none;\n position: fixed;\n -webkit-tap-highlight-color: transparent;\n }\n\n [part~="frame"] {\n box-sizing: border-box;\n display: grid;\n overflow: hidden;\n overscroll-behavior: contain;\n pointer-events: initial;\n position: relative;\n }\n </style>\n <div id="backdrop" part="backdrop" tabindex="-1"></div>\n <div id="frame" part="frame" role="none">\n <slot></slot>\n </div>\n '])))),renderParts$3(en.content,this[jo]),en}}function renderParts$3(en,tn,nn){if(!nn||nn.backdropPartType){const{backdropPartType:nn}=tn,rn=en.getElementById("backdrop");rn&&transmute(rn,nn)}if(!nn||nn.framePartType){const{framePartType:nn}=tn,rn=en.getElementById("frame");rn&&transmute(rn,nn)}}const qi=Symbol("implicitCloseListener"),Vi="true"===new URLSearchParams(location.search).get("elixdebugpopup");async function blurHandler$1(en){const tn=this,nn=en.relatedTarget||document.activeElement;nn instanceof Element&&!deepContains(tn,nn)&&(tn[fo]=!0,await tn.close({canceled:"window blur"}),tn[fo]=!1)}async function closeHandler(en){const tn=this,nn="resize"!==en.type||tn[jo].closeOnWindowResize;!ownEvent(tn,en)&&nn&&(tn[fo]=!0,await tn.close({canceled:"window ".concat(en.type)}),tn[fo]=!1)}var Gi;const Di=KeyboardMixin(function PopupModalityMixin(en){return class PopupModality extends en{get closeOnWindowResize(){return this[jo].closeOnWindowResize}set closeOnWindowResize(en){this[Co]({closeOnWindowResize:en})}get[Hr](){return Object.assign(super[Hr]||{},{closeOnWindowResize:!0,role:"alert"})}[ho](en){let tn=!1;if("Escape"===en.key)this.close({canceled:"Escape"}),tn=!0;return tn||super.keydown&&super.keydown(en)||!1}[yo](en){if(super[yo]&&super[yo](en),this[Wr]&&(Vi||this.addEventListener("blur",blurHandler$1.bind(this))),en.role){const{role:en}=this[jo];this.setAttribute("role",en)}}[wo](en){if(super[wo]&&super[wo](en),en.opened)if(this.opened){("requestIdleCallback"in window?window.requestIdleCallback:setTimeout)((()=>{this.opened&&function addEventListeners$1(en){en[qi]=closeHandler.bind(en),Vi||window.addEventListener("blur",en[qi]);window.addEventListener("resize",en[qi]),window.addEventListener("scroll",en[qi])}(this)}))}else!function removeEventListeners$1(en){en[qi]&&(Vi||window.removeEventListener("blur",en[qi]),window.removeEventListener("resize",en[qi]),window.removeEventListener("scroll",en[qi]),en[qi]=null)}(this)}get role(){return super.role}set role(en){super.role=en,this[xo]||this[Co]({role:en})}}}(Overlay));class Popup extends Di{[yo](en){super[yo](en),en.backdropPartType&&(this[Ao].backdrop.addEventListener("mousedown",mousedownHandler.bind(this)),"PointerEvent"in window||this[Ao].backdrop.addEventListener("touchend",mousedownHandler))}get[Vo](){const en=super[Vo];return en.content.append(Bn.html(Gi||(Gi=_taggedTemplateLiteral(["\n <style>\n :host {\n display: grid;\n grid-template: minmax(0, max-content) / minmax(0, max-content);\n }\n </style>\n "])))),en}}async function mousedownHandler(en){const tn=this;tn[fo]=!0,await tn.close({canceled:"mousedown outside"}),tn[fo]=!1,en.preventDefault(),en.stopPropagation()}var Hi;const zi=Symbol("resizeListener"),Ki=DisabledMixin(FocusVisibleMixin(LanguageDirectionMixin(OpenCloseMixin(Qr))));function choosePopupLayout(en){const{popupAlign:tn,popupDirection:nn,rightToLeft:rn}=en[jo],an=en[Ao].source.getBoundingClientRect(),sn=en[Ao].popup.getBoundingClientRect();en[Ao].popup.frame&&(sn.height=en[Ao].popup[Ao].frame.scrollHeight,sn.width=en[Ao].popup[Ao].frame.scrollWidth);const cn=layoutPopup(an,sn,function viewportBounds(){const en=window.visualViewport;return en?new DOMRect(en.offsetLeft,en.offsetTop,en.width,en.height):new DOMRect(0,0,window.innerWidth,window.innerHeight)}(),{align:tn,direction:nn,rightToLeft:rn});en[Co]({popupLayout:cn})}function renderParts$2(en,tn,nn){if(!nn||nn.popupPartType){const{popupPartType:nn}=tn,rn=en.getElementById("popup");rn&&transmute(rn,nn)}if(!nn||nn.sourcePartType){const{sourcePartType:nn}=tn,rn=en.getElementById("source");rn&&transmute(rn,nn)}}var $i;const Wi="true"===new URLSearchParams(location.search).get("elixdebugpopup"),Xi=DelegateFocusMixin(KeyboardMixin(function PopupDragSelectMixin(en){return class PopupDragSelect extends en{connectedCallback(){super.connectedCallback(),listenIfOpenAndConnected$1(this)}get[Hr](){return Object.assign(super[Hr]||{},{dragSelect:!0})}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),listenIfOpenAndConnected$1(this)}[wo](en){super[wo](en),en.opened&&listenIfOpenAndConnected$1(this)}[Lo](en,tn){const nn=super[Lo](en,tn);return tn.opened&&en.opened&&Object.assign(nn,{dragSelect:!0}),nn}}}(class PopupSource extends Ki{get[Hr](){return Object.assign(super[Hr],{ariaHasPopup:"true",popupAlign:"start",popupDirection:"column",popupLayout:null,popupPartType:Popup,sourcePartType:"div"})}get[uo](){return this[Ao].source}get frame(){return this[Ao].popup.frame}get popupAlign(){return this[jo].popupAlign}set popupAlign(en){this[Co]({popupAlign:en})}get popupDirection(){return this[jo].popupDirection}set popupDirection(en){this[Co]({popupDirection:en})}get popupPartType(){return this[jo].popupPartType}set popupPartType(en){this[Co]({popupPartType:en})}[yo](en){if(super[yo](en),renderParts$2(this[So],this[jo],en),this[Wr]||en.ariaHasPopup){const{ariaHasPopup:en}=this[jo];null===en?this[uo].removeAttribute("aria-haspopup"):this[uo].setAttribute("aria-haspopup",this[jo].ariaHasPopup)}if(en.popupPartType&&(this[Ao].popup.addEventListener("open",(()=>{this.opened||(this[fo]=!0,this.open(),this[fo]=!1)})),this[Ao].popup.addEventListener("close",(en=>{if(!this.closed){this[fo]=!0;const tn=en.detail.closeResult;this.close(tn),this[fo]=!1}}))),en.opened||en.popupLayout){const{opened:en,popupLayout:tn}=this[jo],nn={height:"",left:"",opacity:"",top:"",width:""};if(en)if(tn){const{align:en,direction:rn,rect:an}=tn,sn="stretch"===en,cn="above"===rn||"below"===rn,An=!cn&&sn?"minmax(0, 1fr)":"",dn=cn&&sn?"minmax(0, 1fr)":"";Object.assign(nn,{gridTemplateColumns:dn,gridTemplateRows:An,height:"".concat(an.height,"px"),left:"".concat(an.left,"px"),top:"".concat(an.top,"px"),width:"".concat(an.width,"px")})}else nn.opacity=0;else;Object.assign(this[Ao].popup.style,nn)}if(en.opened){const{opened:en}=this[jo];this[Ao].popup.opened=en}if(en.disabled&&"disabled"in this[Ao].source){const{disabled:en}=this[jo];this[Ao].source.disabled=en}if(en.popupLayout){const{popupLayout:en}=this[jo];if(en){const{align:tn,direction:nn}=en,rn=this[Ao].popup;"position"in rn&&(rn.position=nn),"align"in rn&&(rn.align=tn)}}}[wo](en){super[wo](en);const{opened:tn}=this[jo];en.opened?tn?function waitThenRenderOpened(en){setTimeout((()=>{en[jo].opened&&(choosePopupLayout(en),function addEventListeners(en){const tn=en;tn[zi]=()=>{choosePopupLayout(en)};(window.visualViewport||window).addEventListener("resize",tn[zi])}(en))}))}(this):function removeEventListeners(en){const tn=en;if(tn[zi]){(window.visualViewport||window).removeEventListener("resize",tn[zi]),tn[zi]=null}}(this):en.popupLayout&&this[jo].opened&&!this[jo].popupLayout&&choosePopupLayout(this)}get sourcePartType(){return this[jo].sourcePartType}set sourcePartType(en){this[Co]({sourcePartType:en})}[Lo](en,tn){const nn=super[Lo](en,tn);return(tn.opened&&!en.opened||en.opened&&(tn.popupAlign||tn.popupDirection||tn.rightToLeft))&&Object.assign(nn,{popupLayout:null}),nn}get[Vo](){const en=super[Vo];return en.content.append(Bn.html(Hi||(Hi=_taggedTemplateLiteral(['\n <style>\n :host {\n display: inline-block;\n position: relative;\n }\n\n [part~="source"] {\n height: 100%;\n -webkit-tap-highlight-color: transparent;\n touch-action: manipulation;\n width: 100%;\n }\n\n [part~="popup"] {\n outline: none;\n position: fixed;\n }\n </style>\n <div id="source" part="source">\n <slot name="source"></slot>\n </div>\n <div id="popup" part="popup" exportparts="backdrop, frame" role="none">\n <slot></slot>\n </div>\n '])))),renderParts$2(en.content,this[jo]),en}})));async function blurHandler(en){const tn=this,nn=en.relatedTarget||document.activeElement;nn instanceof Element&&!deepContains(tn,nn)&&(tn[fo]=!0,await tn.close({canceled:"blur"}),tn[fo]=!1)}const Yi=Symbol("documentMousemoveListener");function handleMousemove(en){const tn=this,{hasHoveredOverItemSinceOpened:nn,opened:rn}=tn[jo];if(rn){const rn=en.composedPath?en.composedPath()[0]:en.target,an=tn.items;if(rn&&rn instanceof Node&&an){const en=indexOfItemContainingTarget(an,rn),sn=an[en],cn=sn&&!sn.disabled?en:-1;(nn||cn>=0)&&cn!==tn[jo].currentIndex&&(tn[fo]=!0,tn[Co]({currentIndex:cn}),cn>=0&&!nn&&tn[Co]({hasHoveredOverItemSinceOpened:!0}),tn[fo]=!1)}}}function listenIfOpenAndConnected(en){en[jo].opened&&en.isConnected?en[Yi]||(en[Yi]=handleMousemove.bind(en),document.addEventListener("mousemove",en[Yi])):en[Yi]&&(document.removeEventListener("mousemove",en[Yi]),en[Yi]=null)}async function selectCurrentItemAndClose(en){const tn=en[fo],nn=en[jo].currentIndex>=0,rn=en.items;if(rn){const an=nn?rn[en[jo].currentIndex]:void 0,sn=en[jo].popupList;nn&&"flashCurrentItem"in sn&&await sn.flashCurrentItem();const cn=en[fo];en[fo]=tn,await en.close(an),en[fo]=cn}}var Zi,Ji;const ea=function PopupListMixin(en){return class PopupList extends en{connectedCallback(){super.connectedCallback(),listenIfOpenAndConnected(this)}get[Hr](){return Object.assign(super[Hr]||{},{currentIndex:-1,hasHoveredOverItemSinceOpened:!1,popupList:null})}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),listenIfOpenAndConnected(this)}[ho](en){let tn=!1;if("Enter"===en.key)this.opened&&(selectCurrentItemAndClose(this),tn=!0);return tn||super[ho]&&super[ho](en)||!1}[yo](en){if(super[yo]&&super[yo](en),en.popupList){const{popupList:en}=this[jo];en&&(en.addEventListener("mouseup",(async en=>{const tn=this[jo].currentIndex;this[jo].dragSelect||tn>=0?(en.stopPropagation(),this[fo]=!0,await selectCurrentItemAndClose(this),this[fo]=!1):en.stopPropagation()})),en.addEventListener("currentindexchange",(en=>{this[fo]=!0;const tn=en;this[Co]({currentIndex:tn.detail.currentIndex}),this[fo]=!1})))}if(en.currentIndex||en.popupList){const{currentIndex:en,popupList:tn}=this[jo];tn&&"currentIndex"in tn&&(tn.currentIndex=en)}}[wo](en){if(super[wo]&&super[wo](en),en.opened){if(this[jo].opened){const{popupList:en}=this[jo];en.scrollCurrentItemIntoView&&setTimeout((()=>{en.scrollCurrentItemIntoView()}))}listenIfOpenAndConnected(this)}}[Lo](en,tn){const nn=super[Lo]?super[Lo](en,tn):{};return tn.opened&&en.opened&&Object.assign(nn,{hasHoveredOverItemSinceOpened:!1}),nn}}}(class PopupButton extends Xi{get[Hr](){return Object.assign(super[Hr],{sourcePartType:"button"})}[ho](en){let tn;switch(en.key){case" ":case"ArrowDown":case"ArrowUp":this.closed&&(this.open(),tn=!0);break;case"Enter":this.opened||(this.open(),tn=!0);break;case"Escape":this.opened&&(this.close({canceled:"Escape"}),tn=!0)}if(tn=super[ho]&&super[ho](en),!tn&&this.opened&&!en.metaKey&&!en.altKey)switch(en.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":case"PageDown":case"PageUp":case" ":tn=!0}return tn}[yo](en){if(super[yo](en),this[Wr]&&(Wi||this.addEventListener("blur",blurHandler.bind(this)),this[Ao].source.addEventListener("focus",(async en=>{const tn=ownEvent(this[Ao].popup,en),nn=null!==this[jo].popupHeight;!tn&&this.opened&&nn&&(this[fo]=!0,await this.close(),this[fo]=!1)}))),en.opened){const{opened:en}=this[jo];this.toggleAttribute("opened",en)}if(en.sourcePartType){this[Ao].source.addEventListener("mousedown",(en=>{if(this.disabled)return void en.preventDefault();const tn=en;tn.button&&0!==tn.button||(setTimeout((()=>{this.opened||(this[fo]=!0,this.open(),this[fo]=!1)})),en.stopPropagation())}))}en.popupPartType&&this[Ao].popup.removeAttribute("tabindex")}get[Vo](){const en=super[Vo];return en.content.append(Bn.html($i||($i=_taggedTemplateLiteral(['\n <style>\n [part~="source"] {\n cursor: default;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n touch-action: manipulation;\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n\n :host([opened][focus-visible]) {\n outline: none;\n }\n </style>\n '])))),en}});class MenuButton extends ea{get[Hr](){return Object.assign(super[Hr],{menuPartType:Menu})}get items(){const en=this[Ao]&&this[Ao].menu;return en?en.items:null}get menuPartType(){return this[jo].menuPartType}set menuPartType(en){this[Co]({menuPartType:en})}[yo](en){if(super[yo](en),renderParts$1(this[So],this[jo],en),en.menuPartType&&(this[Ao].menu.addEventListener("blur",(async en=>{const tn=en.relatedTarget||document.activeElement;this.opened&&!deepContains(this[Ao].menu,tn)&&(this[fo]=!0,await this.close(),this[fo]=!1)})),this[Ao].menu.addEventListener("mousedown",(en=>{0===en.button&&this.opened&&(en.stopPropagation(),en.preventDefault())}))),en.opened){const{opened:en}=this[jo];this[Ao].source.setAttribute("aria-expanded",en.toString())}}[wo](en){super[wo](en),en.menuPartType&&this[Co]({popupList:this[Ao].menu})}[Lo](en,tn){const nn=super[Lo](en,tn);return tn.opened&&!en.opened&&Object.assign(nn,{currentIndex:-1}),nn}get[Vo](){const en=super[Vo],tn=en.content.querySelector("slot:not([name])");return tn&&tn.replaceWith(Bn.html(Zi||(Zi=_taggedTemplateLiteral(['\n <div id="menu" part="menu">\n <slot></slot>\n </div>\n '])))),renderParts$1(en.content,this[jo]),en.content.append(Bn.html(Ji||(Ji=_taggedTemplateLiteral(['\n <style>\n [part~="menu"] {\n max-height: 100%;\n }\n </style>\n '])))),en}}function renderParts$1(en,tn,nn){if(!nn||nn.menuPartType){const{menuPartType:nn}=tn,rn=en.getElementById("menu");rn&&transmute(rn,nn)}}var ta;const na=DisabledMixin(Qr);class UpDownToggle extends na{get[Hr](){return Object.assign(super[Hr],{direction:"down"})}get direction(){return this[jo].direction}set direction(en){this[Co]({direction:en})}[yo](en){if(super[yo](en),en.direction){const{direction:en}=this[jo];this[Ao].downIcon.style.display="down"===en?"block":"none",this[Ao].upIcon.style.display="up"===en?"block":"none"}}get[Vo](){return En.html(ta||(ta=_taggedTemplateLiteral(['\n <style>\n :host {\n display: inline-block;\n }\n </style>\n <div id="downIcon" part="toggle-icon down-icon">\n <slot name="down-icon"></slot>\n </div>\n <div id="upIcon" part="toggle-icon up-icon">\n <slot name="up-icon"></slot>\n </div>\n '])))}}var ra,oa,ia,aa,sa,la,ca,Aa,da,ua;function renderParts(en,tn,nn){if(!nn||nn.popupTogglePartType){const{popupTogglePartType:nn}=tn,rn=en.getElementById("popupToggle");rn&&transmute(rn,nn)}}class PlainButton extends(PlainButtonMixin(Button)){}class PlainBorderButton extends PlainButton{get[Vo](){const en=super[Vo];return en.content.append(Bn.html(ia||(ia=_taggedTemplateLiteral(['\n <style>\n [part~="button"] {\n background: #eee;\n border: 1px solid #ccc;\n padding: 0.25em 0.5em;\n }\n </style>\n '])))),en}}class PlainMenu extends Menu{get[Vo](){const en=super[Vo];return en.content.append(Bn.html(aa||(aa=_taggedTemplateLiteral(["\n <style>\n :host ::slotted(*) {\n padding: 0.25em 1em;\n }\n \n :host ::slotted([current]) {\n background: highlight;\n color: highlighttext;\n }\n\n @media (pointer: coarse) {\n ::slotted(*) {\n padding: 1em;\n }\n }\n </style>\n "])))),en}}class PlainOpenCloseToggle extends UpDownToggle{get[Vo](){const en=super[Vo],tn=en.content.getElementById("downIcon"),nn=Bn.html(sa||(sa=_taggedTemplateLiteral(['\n <svg\n id="downIcon"\n part="toggle-icon down-icon"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 10 5"\n >\n <path d="M 0 0 l5 5 5 -5 z" />\n </svg>\n ']))).firstElementChild;tn&&nn&&replace(tn,nn);const rn=en.content.getElementById("upIcon"),an=Bn.html(la||(la=_taggedTemplateLiteral(['\n <svg\n id="upIcon"\n part="toggle-icon up-icon"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 10 5"\n >\n <path d="M 0 5 l5 -5 5 5 z" />\n </svg>\n ']))).firstElementChild;return rn&&an&&replace(rn,an),en.content.append(Bn.html(ca||(ca=_taggedTemplateLiteral(['\n <style>\n :host {\n align-items: center;\n display: inline-flex;\n padding: 2px;\n }\n\n :host(:not([disabled])):hover {\n background: #eee;\n }\n\n [part~="toggle-icon"] {\n fill: currentColor;\n height: 10px;\n margin: 0.25em;\n width: 10px;\n }\n </style>\n '])))),en}}class PlainBackdrop extends Backdrop{}class PlainOverlayFrame extends OverlayFrame{get[Vo](){const en=super[Vo];return en.content.append(Bn.html(Aa||(Aa=_taggedTemplateLiteral(["\n <style>\n :host {\n background: white;\n border: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);\n box-sizing: border-box;\n }\n </style>\n "])))),en}}class PlainPopup extends Popup{get[Hr](){return Object.assign(super[Hr],{backdropPartType:PlainBackdrop,framePartType:PlainOverlayFrame})}}class PlainMenuButton extends(function PopupToggleMixin(en){return class PopupToggle extends en{get[Hr](){return Object.assign(super[Hr]||{},{popupTogglePartType:UpDownToggle})}get popupTogglePartType(){return this[jo].popupTogglePartType}set popupTogglePartType(en){this[Co]({popupTogglePartType:en})}[yo](en){if(super[yo](en),renderParts(this[So],this[jo],en),en.popupDirection||en.popupTogglePartType){const{popupDirection:en}=this[jo],tn="above"===en||"column-reverse"===en?"up":"down",nn=this[Ao].popupToggle;"direction"in nn&&(nn.direction=tn)}if(en.disabled){const{disabled:en}=this[jo];this[Ao].popupToggle.disabled=en}}get[Vo](){const en=super[Vo],tn=en.content.querySelector('[part~="source"]');return tn&&tn.append(Bn.html(ra||(ra=_taggedTemplateLiteral(['\n <div\n id="popupToggle"\n part="popup-toggle"\n exportparts="toggle-icon, down-icon, up-icon"\n tabindex="-1"\n ></div>\n '])))),renderParts(en.content,this[jo]),en.content.append(Bn.html(oa||(oa=_taggedTemplateLiteral(['\n <style>\n [part~="popup-toggle"] {\n outline: none;\n }\n\n [part~="source"] {\n align-items: center;\n display: flex;\n }\n </style>\n '])))),en}}}(MenuButton)){get[Hr](){return Object.assign(super[Hr],{menuPartType:PlainMenu,popupPartType:PlainPopup,popupTogglePartType:PlainOpenCloseToggle,sourcePartType:PlainBorderButton})}get[Vo](){const en=super[Vo];return en.content.append(Bn.html(da||(da=_taggedTemplateLiteral(['\n <style>\n [part~="menu"] {\n background: window;\n border: none;\n padding: 0.5em 0;\n }\n </style>\n '])))),en}}class SePlainBorderButton extends PlainButton{get[Vo](){const en=super[Vo];return en.content.append(Bn.html(ua||(ua=_taggedTemplateLiteral(['\n <style>\n [part~="button"] {\n background: var(--main-bg-color);\n border: 1px solid #ccc;\n }\n </style>\n '])))),en}}customElements.define("elix-menu-button",class ElixMenuButton extends PlainMenuButton{get[Hr](){return Object.assign(super[Hr],{sourcePartType:SePlainBorderButton})}});const pa=document.createElement("template");pa.innerHTML='\n <style>\n :host {\n padding: 0px;\n }\n elix-menu-button::part(menu) {\n background-color: var(--icon-bg-color) !important;\n color: #fff;\n }\n elix-menu-button::part(popup-toggle) {\n padding: 0.25em 0.30em !important\n }\n :host ::slotted([current]){\n background-color: var(--icon-bg-color-hover) !important;\n color: #fff;\n }\n :host ::slotted(*){\n padding: 0.25em 1.25em 0.25em 0.25em !important;\n margin: 2px;\n }\n </style>\n\n <elix-menu-button id="MenuButton" aria-label="Main Menu">\n <slot></slot>\n </elix-menu-button>\n\n';class SeMenu extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(pa.content.cloneNode(!0)),this.$menu=this._shadowRoot.querySelector("elix-menu-button"),this.$label=this.$menu.shadowRoot.querySelector("#popupToggle").shadowRoot,this.imgPath=svgEditor.configObj.curConfig.imgPath}static get observedAttributes(){return["label","src"]}attributeChangedCallback(en,tn,nn){const rn=new Image;if(tn!==nn)switch(en){case"src":rn.src=this.imgPath+"/"+nn,rn.width=24,rn.height=24,this.$label.prepend(rn);break;case"label":this.$label.prepend(nn);break;default:console.error("unknown attribute: ".concat(en))}}get label(){return this.getAttribute("label")}set label(en){this.setAttribute("label",en)}get src(){return this.getAttribute("src")}set src(en){this.setAttribute("src",en)}}customElements.define("se-menu",SeMenu);customElements.define("elix-menu",class ElixMenu extends PlainMenu{});const ha=document.createElement("template");ha.innerHTML='\n <style>\n </style>\n <elix-menu-item>\n <div style="display:flex; align-items: center;">\n <img src="logo.svg" alt="icon" style="display:none;" width="24"/>\n <span style="margin-left: 7px;"></span>\n </div>\n </elix-menu-item>\n';class SeMenuItem extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(ha.content.cloneNode(!0)),this.$img=this._shadowRoot.querySelector("img"),this.$label=this._shadowRoot.querySelector("span"),this.$menuitem=this._shadowRoot.querySelector("elix-menu-item"),this.$svg=this.$menuitem.shadowRoot.querySelector("#checkmark"),this.$svg.setAttribute("style","display: none;"),this.imgPath=svgEditor.configObj.curConfig.imgPath}static get observedAttributes(){return["label","src"]}attributeChangedCallback(en,tn,nn){let rn="";if(tn!==nn)switch(en){case"src":this.$img.style.display="inline-block",this.$img.setAttribute("src",this.imgPath+"/"+nn);break;case"label":rn=this.getAttribute("shortcut"),this.$label.textContent="".concat(t$1(nn)," ").concat(rn?"(".concat(rn,")"):"");break;default:console.error("unknown attribute: ".concat(en))}}get label(){return this.getAttribute("label")}set label(en){this.setAttribute("label",en)}get src(){return this.getAttribute("src")}set src(en){this.setAttribute("src",en)}connectedCallback(){const en=this.getAttribute("shortcut");en&&document.addEventListener("keydown",(tn=>{if("BODY"!==tn.target.nodeName)return;const nn="".concat(tn.metaKey?"meta+":"").concat(tn.ctrlKey?"ctrl+":"").concat(tn.key.toUpperCase());en===nn&&(this.id&&document.getElementById(this.id).click(),tn.preventDefault())}))}}customElements.define("se-menu-item",SeMenuItem);const ga=document.createElement("template");ga.innerHTML='\n<style>\n#select-container {\n margin-top: 10px;\n display: inline-block;\n}\n\n#select-container:hover {\n background-color: var(--icon-bg-color-hover);\n}\n\n#select-container::part(value) {\n background-color: var(--main-bg-color);\n}\n\n#select-container::part(popup-toggle) {\n display: none;\n}\n::slotted(*) {\n padding:0;\n width:100%;\n}\n\n.closed {\n display: none;\n}\n\n#options-container {\n position: fixed;\n}\n\n</style>\n <label>Label</label>\n <div id="select-container" tabindex="0">\n <div id="selected-value"></div>\n <div id="options-container">\n <slot></slot>\n </div>\n </div>\n\n';class SeList extends HTMLElement{constructor(){super(),_defineProperty$1(this,"toggleList",(en=>{this.isDropdownOpen?this.closeDropdown():(this.openDropdown(),this.setDropdownListPosition())})),_defineProperty$1(this,"updateSelectedValue",(en=>{Array.from(this.items).forEach((tn=>{if(tn.getAttribute("value")===en)if(tn.setAttribute("selected",!0),tn.hasAttribute("src")){for(;this.$selection.firstChild;)this.$selection.removeChild(this.$selection.firstChild);const en=document.createElement("img");en.src=this.imgPath+"/"+tn.getAttribute("src"),en.style.height=tn.getAttribute("img-height"),en.setAttribute("title",t$1(tn.getAttribute("title"))),this.$selection.append(en)}else this.$selection.textContent=t$1(tn.getAttribute("option"));else tn.setAttribute("selected",!1)}))})),_defineProperty$1(this,"openDropdown",(()=>{this.isDropdownOpen=!0,this.$optionsContainer.classList.remove("closed")})),_defineProperty$1(this,"closeDropdown",(()=>{this.isDropdownOpen=!1,this.$optionsContainer.classList.add("closed")})),_defineProperty$1(this,"setDropdownListPosition",(()=>{const en=window.innerHeight,tn=this.$selection.getBoundingClientRect(),nn=this.$optionsContainer.getBoundingClientRect();tn.bottom+nn.height>en?(this.$optionsContainer.style.top=tn.top-nn.height+"px",this.$optionsContainer.style.left=tn.left+"px"):(this.$optionsContainer.style.top=tn.bottom+"px",this.$optionsContainer.style.left=tn.left+"px")})),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(ga.content.cloneNode(!0)),this.$dropdown=this._shadowRoot.querySelector("#select-container"),this.$label=this._shadowRoot.querySelector("label"),this.$selection=this.$dropdown.querySelector("#selected-value"),this.items=this.querySelectorAll("se-list-item"),this.imgPath=svgEditor.configObj.curConfig.imgPath,this.$optionsContainer=this._shadowRoot.querySelector("#options-container"),this.$optionsContainer.classList.add("closed"),this.$selection.addEventListener("click",this.toggleList),this.updateSelectedValue(this.items[0].getAttribute("value")),this.isDropdownOpen=!1}static get observedAttributes(){return["label","width","height","title","value"]}attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"title":this.$dropdown.setAttribute("title",t$1(nn));break;case"label":this.$label.textContent=t$1(nn);break;case"height":this.$dropdown.style.height=nn;break;case"width":this.$dropdown.style.width=nn;break;case"value":this.updateSelectedValue(nn);break;default:console.error("unknown attribute: ".concat(en))}}get title(){return this.getAttribute("title")}set title(en){this.setAttribute("title",en)}get label(){return this.getAttribute("label")}set label(en){this.setAttribute("label",en)}get width(){return this.getAttribute("width")}set width(en){this.setAttribute("width",en)}get height(){return this.getAttribute("height")}set height(en){this.setAttribute("height",en)}connectedCallback(){const en=this;this.$dropdown.addEventListener("selectedindexchange",(tn=>{var nn;if(void 0!==(null==tn||null===(nn=tn.detail)||void 0===nn?void 0:nn.selectedItem)){const nn=tn.detail.selectedItem,rn=new CustomEvent("change",{detail:{value:nn}});en.dispatchEvent(rn),en.value=nn,en.setAttribute("value",nn)}})),this.$dropdown.addEventListener("focusout",(en=>{this.closeDropdown()})),window.addEventListener("mousedown",(en=>{this.isDropdownOpen&&(en.target.closest("se-list")||(en.stopPropagation(),this.closeDropdown()))}),{capture:!0})}}customElements.define("se-list",SeList);const _a=document.createElement("template");_a.innerHTML='\n <style>\n [aria-label="option"]{\n padding:0.25rem 0.125rem !important;\n background-color: var(--icon-bg-color);\n }\n [aria-label="option"]:hover{\n background-color: var(--icon-bg-color-hover);\n }\n\n .selected {\n background-color: var(--icon-bg-color-hover);\n }\n\n </style>\n <div aria-label="option">\n <img alt="icon" />\n <slot></slot>\n </div>\n';class SeListItem extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(_a.content.cloneNode(!0)),this.$menuitem=this._shadowRoot.querySelector("[aria-label=option]"),this.$img=this._shadowRoot.querySelector("img"),this.$img.setAttribute("style","display: none;"),this.imgPath=svgEditor.configObj.curConfig.imgPath,this.$menuitem.addEventListener("mousedown",(en=>{this.$menuitem.dispatchEvent(new CustomEvent("selectedindexchange",{bubbles:!0,composed:!0,detail:{selectedItem:this.getAttribute("value")}}))}))}static get observedAttributes(){return["option","src","title","img-height","selected"]}attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"option":this.$menuitem.setAttribute("option",nn),this.$menuitem.textContent=t$1(nn);break;case"src":this.$img.setAttribute("style","display: block;"),this.$img.setAttribute("src",this.imgPath+"/"+nn);break;case"title":this.$img.setAttribute("title",t$1(nn));break;case"img-height":this.$img.setAttribute("height",nn);break;case"selected":"true"===nn?this.$menuitem.classList.add("selected"):this.$menuitem.classList.remove("selected");break;default:console.error("unknown attribute: ".concat(en))}}get option(){return this.getAttribute("option")}set option(en){this.setAttribute("option",en)}get title(){return this.getAttribute("title")}set title(en){this.setAttribute("title",en)}get imgHeight(){return this.getAttribute("img-height")}set imgHeight(en){this.setAttribute("img-height",en)}get src(){return this.getAttribute("src")}set src(en){this.setAttribute("src",en)}}function _mergeNamespaces(en,tn){return tn.forEach((function(tn){tn&&"string"!=typeof tn&&!Array.isArray(tn)&&Object.keys(tn).forEach((function(nn){if("default"!==nn&&!(nn in en)){var rn=Object.getOwnPropertyDescriptor(tn,nn);Object.defineProperty(en,nn,rn.get?rn:{enumerable:!0,get:function(){return tn[nn]}})}}))})),Object.freeze(en)}customElements.define("se-list-item",SeListItem),"undefined"!=typeof window&&("SVGPathSeg"in window||(window.SVGPathSeg=function(en,tn,nn){this.pathSegType=en,this.pathSegTypeAsLetter=tn,this._owningPathSegList=nn},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(en){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",en)},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(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",en),this._x=tn,this._y=nn},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",en),this._x=tn,this._y=nn},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",en),this._x=tn,this._y=nn},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",en),this._x=tn,this._y=nn},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(en,tn,nn,rn,an,sn,cn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",en),this._x=tn,this._y=nn,this._x1=rn,this._y1=an,this._x2=sn,this._y2=cn},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(en){this._x1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(en){this._y1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(en){this._x2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(en){this._y2=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(en,tn,nn,rn,an,sn,cn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",en),this._x=tn,this._y=nn,this._x1=rn,this._y1=an,this._x2=sn,this._y2=cn},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(en){this._x1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(en){this._y1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(en){this._x2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(en){this._y2=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(en,tn,nn,rn,an){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",en),this._x=tn,this._y=nn,this._x1=rn,this._y1=an},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(en){this._x1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(en){this._y1=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(en,tn,nn,rn,an){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",en),this._x=tn,this._y=nn,this._x1=rn,this._y1=an},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(en){this._x1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(en){this._y1=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(en,tn,nn,rn,an,sn,cn,An){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",en),this._x=tn,this._y=nn,this._r1=rn,this._r2=an,this._angle=sn,this._largeArcFlag=cn,this._sweepFlag=An},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(en){this._r1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(en){this._r2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(en){this._angle=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(en){this._largeArcFlag=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(en){this._sweepFlag=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(en,tn,nn,rn,an,sn,cn,An){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",en),this._x=tn,this._y=nn,this._r1=rn,this._r2=an,this._angle=sn,this._largeArcFlag=cn,this._sweepFlag=An},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(en){this._r1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(en){this._r2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(en){this._angle=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(en){this._largeArcFlag=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(en){this._sweepFlag=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(en,tn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",en),this._x=tn},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(en,tn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",en),this._x=tn},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(en,tn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",en),this._y=tn},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(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(en,tn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",en),this._y=tn},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(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(en,tn,nn,rn,an){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",en),this._x=tn,this._y=nn,this._x2=rn,this._y2=an},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(en){this._x2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(en){this._y2=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(en,tn,nn,rn,an){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",en),this._x=tn,this._y=nn,this._x2=rn,this._y2=an},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(en){this._x2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(en){this._y2=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",en),this._x=tn,this._y=nn},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",en),this._x=tn,this._y=nn},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(){return this._x},set:function(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(en,tn){return new window.SVGPathSegMovetoAbs(void 0,en,tn)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(en,tn){return new window.SVGPathSegMovetoRel(void 0,en,tn)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(en,tn){return new window.SVGPathSegLinetoAbs(void 0,en,tn)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(en,tn){return new window.SVGPathSegLinetoRel(void 0,en,tn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(en,tn,nn,rn,an,sn){return new window.SVGPathSegCurvetoCubicAbs(void 0,en,tn,nn,rn,an,sn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(en,tn,nn,rn,an,sn){return new window.SVGPathSegCurvetoCubicRel(void 0,en,tn,nn,rn,an,sn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(en,tn,nn,rn){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,en,tn,nn,rn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(en,tn,nn,rn){return new window.SVGPathSegCurvetoQuadraticRel(void 0,en,tn,nn,rn)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(en,tn,nn,rn,an,sn,cn){return new window.SVGPathSegArcAbs(void 0,en,tn,nn,rn,an,sn,cn)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(en,tn,nn,rn,an,sn,cn){return new window.SVGPathSegArcRel(void 0,en,tn,nn,rn,an,sn,cn)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(en){return new window.SVGPathSegLinetoHorizontalAbs(void 0,en)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(en){return new window.SVGPathSegLinetoHorizontalRel(void 0,en)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(en){return new window.SVGPathSegLinetoVerticalAbs(void 0,en)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(en){return new window.SVGPathSegLinetoVerticalRel(void 0,en)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(en,tn,nn,rn){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,en,tn,nn,rn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(en,tn,nn,rn){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,en,tn,nn,rn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(en,tn){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,en,tn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(en,tn){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,en,tn)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(en){if(void 0===en||!isFinite(en))throw"Invalid arguments.";var tn=document.createElementNS("http://www.w3.org/2000/svg","path");tn.setAttribute("d",this.getAttribute("d"));var nn=tn.pathSegList.numberOfItems-1;if(nn<=0)return 0;do{if(tn.pathSegList.removeItem(nn),en>tn.getTotalLength())break;nn--}while(nn>0);return nn})),"SVGPathSegList"in window&&"appendItem"in window.SVGPathSegList.prototype||(window.SVGPathSegList=function(en){this._pathElement=en,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(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathSegList.prototype,"length",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(en){if(this._pathElement){var tn=!1;en.forEach((function(en){"d"==en.attributeName&&(tn=!0)})),tn&&(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(en){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach((function(en){en._owningPathSegList=null})),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(en){return this._checkPathSynchronizedToList(),this._list=[en],en._owningPathSegList=this,this._writeListToPath(),en},window.SVGPathSegList.prototype._checkValidIndex=function(en){if(isNaN(en)||en<0||en>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(en){return this._checkPathSynchronizedToList(),this._checkValidIndex(en),this._list[en]},window.SVGPathSegList.prototype.insertItemBefore=function(en,tn){return this._checkPathSynchronizedToList(),tn>this.numberOfItems&&(tn=this.numberOfItems),en._owningPathSegList&&(en=en.clone()),this._list.splice(tn,0,en),en._owningPathSegList=this,this._writeListToPath(),en},window.SVGPathSegList.prototype.replaceItem=function(en,tn){return this._checkPathSynchronizedToList(),en._owningPathSegList&&(en=en.clone()),this._checkValidIndex(tn),this._list[tn]=en,en._owningPathSegList=this,this._writeListToPath(),en},window.SVGPathSegList.prototype.removeItem=function(en){this._checkPathSynchronizedToList(),this._checkValidIndex(en);var tn=this._list[en];return this._list.splice(en,1),this._writeListToPath(),tn},window.SVGPathSegList.prototype.appendItem=function(en){return this._checkPathSynchronizedToList(),en._owningPathSegList&&(en=en.clone()),this._list.push(en),en._owningPathSegList=this,this._writeListToPath(),en},window.SVGPathSegList._pathSegArrayAsString=function(en){var tn="",nn=!0;return en.forEach((function(en){nn?(nn=!1,tn+=en._asPathString()):tn+=" "+en._asPathString()})),tn},window.SVGPathSegList.prototype._parsePath=function(en){if(!en||0==en.length)return[];var tn=this,Builder=function(){this.pathSegList=[]};Builder.prototype.appendSegment=function(en){this.pathSegList.push(en)};var Source=function(en){this._string=en,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};Source.prototype._isCurrentSpace=function(){var en=this._string[this._currentIndex];return en<=" "&&(" "==en||"\n"==en||"\t"==en||"\r"==en||"\f"==en)},Source.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},Source.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},Source.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},Source.prototype.peekSegmentType=function(){var en=this._string[this._currentIndex];return this._pathSegTypeFromChar(en)},Source.prototype._pathSegTypeFromChar=function(en){switch(en){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},Source.prototype._nextCommandHelper=function(en,tn){return("+"==en||"-"==en||"."==en||en>="0"&&en<="9")&&tn!=window.SVGPathSeg.PATHSEG_CLOSEPATH?tn==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:tn==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:tn:window.SVGPathSeg.PATHSEG_UNKNOWN},Source.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var en=this.peekSegmentType();return en==window.SVGPathSeg.PATHSEG_MOVETO_ABS||en==window.SVGPathSeg.PATHSEG_MOVETO_REL},Source.prototype._parseNumber=function(){var en=0,tn=0,nn=1,rn=0,an=1,sn=1,cn=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,an=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))){for(var An=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=An)for(var dn=this._currentIndex-1,un=1;dn>=An;)tn+=un*(this._string.charAt(dn--)-"0"),un*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)nn*=10,rn+=(this._string.charAt(this._currentIndex)-"0")/nn,this._currentIndex+=1}if(this._currentIndex!=cn&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,sn=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)en*=10,en+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var pn=tn+rn;if(pn*=an,en&&(pn*=Math.pow(10,sn*en)),cn!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),pn}},Source.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var en=!1,tn=this._string.charAt(this._currentIndex++);if("0"==tn)en=!1;else{if("1"!=tn)return;en=!0}return this._skipOptionalSpacesOrDelimiter(),en}},Source.prototype.parseSegment=function(){var en=this._string[this._currentIndex],nn=this._pathSegTypeFromChar(en);if(nn==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((nn=this._nextCommandHelper(en,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=nn,nn){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(tn,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(tn,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(tn,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(tn,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(tn);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var rn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(tn,rn.x,rn.y,rn.x1,rn.y1,rn.x2,rn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return rn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(tn,rn.x,rn.y,rn.x1,rn.y1,rn.x2,rn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return rn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(tn,rn.x,rn.y,rn.x2,rn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return rn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(tn,rn.x,rn.y,rn.x2,rn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return rn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(tn,rn.x,rn.y,rn.x1,rn.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return rn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(tn,rn.x,rn.y,rn.x1,rn.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return rn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(tn,rn.x,rn.y,rn.x1,rn.y1,rn.arcAngle,rn.arcLarge,rn.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return rn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(tn,rn.x,rn.y,rn.x1,rn.y1,rn.arcAngle,rn.arcLarge,rn.arcSweep);default:throw"Unknown path seg type."}};var nn=new Builder,rn=new Source(en);if(!rn.initialCommandIsMoveTo())return[];for(;rn.hasMoreData();){var an=rn.parseSegment();if(!an)return[];nn.appendSegment(an)}return nn.pathSegList}));class Paint{constructor(en){const tn=en||{};if(this.alpha=isNaN(tn.alpha)?100:tn.alpha,tn.copy)switch(this.type=tn.copy.type,this.alpha=tn.copy.alpha,this.solidColor=null,this.linearGradient=null,this.radialGradient=null,this.type){case"none":break;case"solidColor":this.solidColor=tn.copy.solidColor;break;case"linearGradient":this.linearGradient=tn.copy.linearGradient.cloneNode(!0);break;case"radialGradient":this.radialGradient=tn.copy.radialGradient.cloneNode(!0)}else if(tn.linearGradient)if(this.type="linearGradient",this.solidColor=null,this.radialGradient=null,tn.linearGradient.hasAttribute("xlink:href")){const en=document.getElementById(tn.linearGradient.getAttribute("xlink:href").substr(1));this.linearGradient=en.cloneNode(!0)}else this.linearGradient=tn.linearGradient.cloneNode(!0);else if(tn.radialGradient)if(this.type="radialGradient",this.solidColor=null,this.linearGradient=null,tn.radialGradient.hasAttribute("xlink:href")){const en=document.getElementById(tn.radialGradient.getAttribute("xlink:href").substr(1));this.radialGradient=en.cloneNode(!0)}else this.radialGradient=tn.radialGradient.cloneNode(!0);else tn.solidColor?(this.type="solidColor",this.solidColor=tn.solidColor):(this.type="none",this.solidColor=null,this.linearGradient=null,this.radialGradient=null)}}
/**
* Tools for working with units.
* @module units
* @license MIT
*
* @copyright 2010 Alexis Deveria, 2010 Jeff Schiller
*/const ma="http://www.w3.org/2000/svg",fa=["x","x1","cx","rx","width"],ya=["y","y1","cy","ry","height"],ba=["r","radius",...fa,...ya];let va,wa={};const getTypeMap$2=()=>wa,shortFloat=en=>{const tn=va.getRoundDigits();return isNaN(en)?Array.isArray(en)?shortFloat(en[0])+","+shortFloat(en[1]):Number.parseFloat(en).toFixed(tn)-0:Number(Number(en).toFixed(tn))},convertUnit$3=(en,tn)=>(tn=tn||va.getBaseUnit(),shortFloat(en/wa[tn])),setUnitAttr=(en,tn,nn)=>{en.setAttribute(tn,nn)},convertToNum=(en,tn)=>{if(!isNaN(tn))return tn-0;if("%"===tn.substr(-1)){const nn=tn.substr(0,tn.length-1)/100,rn=va.getWidth(),an=va.getHeight();return fa.includes(en)?nn*rn:ya.includes(en)?nn*an:nn*Math.sqrt(rn*rn+an*an)/Math.sqrt(2)}const nn=tn.substr(-2);return tn.substr(0,tn.length-2)*wa[nn]},xa={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",OI:"http://www.optimistik.fr/namespace/svg/OIdata",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"},getReverseNS=function(){const en={};return Object.entries(xa).forEach((tn=>{let[nn,rn]=tn;en[rn]=nn.toLowerCase()})),en},ka=document.createElementNS(xa.SVG,"svg"),transformPoint=function(en,tn,nn){return{x:nn.a*en+nn.c*tn+nn.e,y:nn.b*en+nn.d*tn+nn.f}},isIdentity=function(en){return 1===en.a&&0===en.b&&0===en.c&&1===en.d&&0===en.e&&0===en.f},matrixMultiply=function(){for(var en=arguments.length,tn=new Array(en),nn=0;nn<en;nn++)tn[nn]=arguments[nn];const rn=tn.reduceRight(((en,tn)=>tn.multiply(en)));return Math.abs(rn.a)<1e-14&&(rn.a=0),Math.abs(rn.b)<1e-14&&(rn.b=0),Math.abs(rn.c)<1e-14&&(rn.c=0),Math.abs(rn.d)<1e-14&&(rn.d=0),Math.abs(rn.e)<1e-14&&(rn.e=0),Math.abs(rn.f)<1e-14&&(rn.f=0),rn},hasMatrixTransform=function(en){if(!en)return!1;let tn=en.numberOfItems;for(;tn--;){const nn=en.getItem(tn);if(1===nn.type&&!isIdentity(nn.matrix))return!0}return!1},transformBox=function(en,tn,nn,rn,an){const sn=transformPoint(en,tn,an),cn=transformPoint(en+nn,tn,an),An=transformPoint(en,tn+rn,an),dn=transformPoint(en+nn,tn+rn,an),un=Math.min(sn.x,cn.x,An.x,dn.x),pn=Math.max(sn.x,cn.x,An.x,dn.x),hn=Math.min(sn.y,cn.y,An.y,dn.y);return{tl:sn,tr:cn,bl:An,br:dn,aabox:{x:un,y:hn,width:pn-un,height:Math.max(sn.y,cn.y,An.y,dn.y)-hn}}},transformListToTransform=function(en,tn,nn){if(!en)return ka.createSVGTransformFromMatrix(ka.createSVGMatrix());if(tn=tn||0,nn=nn||en.numberOfItems-1,(tn=Number.parseInt(tn))>(nn=Number.parseInt(nn))){const en=nn;nn=tn,tn=en}let rn=ka.createSVGMatrix();for(let an=tn;an<=nn;++an){const tn=an>=0&&an<en.numberOfItems?en.getItem(an).matrix:ka.createSVGMatrix();rn=matrixMultiply(rn,tn)}return ka.createSVGTransformFromMatrix(rn)},getMatrix=en=>{const tn=en.transform.baseVal;return transformListToTransform(tn).matrix},snapToAngle=(en,tn,nn,rn)=>{const an=Math.PI/4,sn=nn-en,cn=rn-tn,An=Math.atan2(cn,sn),dn=Math.sqrt(sn*sn+cn*cn),un=Math.round(An/an)*an;return{x:en+dn*Math.cos(un),y:tn+dn*Math.sin(un),a:un}},rectsIntersect=(en,tn)=>tn.x<en.x+en.width&&tn.x+tn.width>en.x&&tn.y<en.y+en.height&&tn.y+tn.height>en.y;function isObject$9(en){return en&&"object"==typeof en&&!Array.isArray(en)}function mergeDeep$1(en,tn){const nn=Object.assign({},en);return isObject$9(en)&&isObject$9(tn)&&Object.keys(tn).forEach((rn=>{isObject$9(tn[rn])?rn in en?nn[rn]=mergeDeep$1(en[rn],tn[rn]):Object.assign(nn,{[rn]:tn[rn]}):Object.assign(nn,{[rn]:tn[rn]})})),nn}function getClosest(en,tn){const nn=tn.charAt(0),rn="classList"in document.documentElement;let an,sn;for("["===nn&&(an=(tn=tn.substr(1,tn.length-2)).split("="),an.length>1&&(sn=!0,an[1]=an[1].replace(/"/g,"").replace(/'/g,"")));en&&en!==document&&1===en.nodeType;en=en.parentNode){if("."===nn)if(rn){if(en.classList.contains(tn.substr(1)))return en}else if(new RegExp("(^|\\s)"+tn.substr(1)+"(\\s|$)").test(en.className))return en;if("#"===nn&&en.id===tn.substr(1))return en;if("["===nn&&en.hasAttribute(an[0])){if(!sn)return en;if(en.getAttribute(an[0])===an[1])return en}if(en.tagName.toLowerCase()===tn)return en}return null}function getParents(en,tn){const nn=[],rn=null==tn?void 0:tn.charAt(0);for(;en&&en!==document;en=en.parentNode)tn?("."===rn&&en.classList.contains(tn.substr(1))&&nn.push(en),"#"===rn&&en.id===tn.substr(1)&&nn.push(en),"["===rn&&en.hasAttribute(tn.substr(1,tn.length-1))&&nn.push(en),en.tagName.toLowerCase()===tn&&nn.push(en)):nn.push(en);return nn.length?nn:null}
/**
* Miscellaneous utilities.
* @module utilities
* @license MIT
*
* @copyright 2010 Alexis Deveria, 2010 Jeff Schiller
*/const Ca="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use,clipPath".split(",");let Sa=null,Ba=null;const toXml=en=>en.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;");function encode64(en){return en=encodeUTF8(en),window.btoa(en)}function decode64$1(en){return function decodeUTF8(en){return decodeURIComponent(escape(en))}(window.atob(en))}const encodeUTF8=en=>unescape(encodeURIComponent(en)),createObjectURL=en=>en&&"undefined"!=typeof URL&&URL.createObjectURL?URL.createObjectURL(en):"",Ea=(()=>{if("undefined"==typeof Blob)return"";const en=new Blob(["<html><head><title>SVG-edit</title></head><body>&nbsp;</body></html>"],{type:"text/html"});return createObjectURL(en)})(),text2xml=en=>{let tn,nn;en.includes("<svg:svg")&&(en=en.replace(/<(\/?)svg:/g,"<$1").replace("xmlns:svg","xmlns"));try{nn=new DOMParser,nn.async=!1}catch(en){throw new Error("XML Parser could not be instantiated")}try{tn=nn.parseFromString(en,"text/xml")}catch(en){throw new Error("Error parsing XML string")}return tn},walkTree=(en,tn)=>{if(1===(null==en?void 0:en.nodeType)){tn(en);let nn=en.childNodes.length;for(;nn--;)walkTree(en.childNodes.item(nn),tn)}},getUrlFromAttr=function(en){if(en){if(en.startsWith('url("'))return en.substring(5,en.indexOf('"',6));if(en.startsWith("url('"))return en.substring(5,en.indexOf("'",6));if(en.startsWith("url("))return en.substring(4,en.indexOf(")"))}return null};let getHref=function(en){return en.getAttributeNS(xa.XLINK,"href")},setHref=function(en,tn){en.setAttributeNS(xa.XLINK,"xlink:href",tn)};const findDefs=function(){const en=Sa.getSvgContent();let tn=en.getElementsByTagNameNS(xa.SVG,"defs");return tn.length>0?tn=tn[0]:(tn=en.ownerDocument.createElementNS(xa.SVG,"defs"),en.firstChild?en.insertBefore(tn,en.firstChild.nextSibling):en.append(tn)),tn},getBBox=function(en){const tn=en||Sa.getSelectedElements()[0];if(1!==en.nodeType)return null;const nn=tn.nodeName;let rn=null;switch(nn){case"text":""===tn.textContent?(tn.textContent="a",rn=tn.getBBox(),tn.textContent=""):tn.getBBox&&(rn=tn.getBBox());break;case"path":case"g":case"a":tn.getBBox&&(rn=tn.getBBox());break;default:if("use"===nn)rn=tn.getBBox();else if(Ca.includes(nn))if(tn)try{rn=tn.getBBox()}catch(en){const nn=tn.getExtentOfChar(0),an=tn.getComputedTextLength();rn={x:nn.x,y:nn.y,width:an,height:nn.height}}else{const en=getClosest(tn.parentNode,"foreignObject");en.length&&en[0].getBBox&&(rn=en[0].getBBox())}}return rn&&(rn=(en=>{let{x:tn,y:nn,width:rn,height:an}=en;return{x:tn,y:nn,width:rn,height:an}})(rn)),rn},getPathDFromSegments=function(en){let tn="";return en.forEach((function(en,nn){let[rn,an]=en;tn+=rn;for(let en=0;en<an.length;en+=2)tn+=an[en]+","+an[en+1]+" "})),tn},getPathDFromElement=function(en){let tn,nn,rn,an=1.81;switch(en.tagName){case"ellipse":case"circle":{nn=Number(en.getAttribute("rx")),rn=Number(en.getAttribute("ry"));const sn=Number(en.getAttribute("cx")),cn=Number(en.getAttribute("cy"));"circle"===en.tagName&&en.hasAttribute("r")&&(rn=Number(en.getAttribute("r")),nn=rn),tn=getPathDFromSegments([["M",[sn-nn,cn]],["C",[sn-nn,cn-rn/an,sn-nn/an,cn-rn,sn,cn-rn]],["C",[sn+nn/an,cn-rn,sn+nn,cn-rn/an,sn+nn,cn]],["C",[sn+nn,cn+rn/an,sn+nn/an,cn+rn,sn,cn+rn]],["C",[sn-nn/an,cn+rn,sn-nn,cn+rn/an,sn-nn,cn]],["Z",[]]]);break}case"path":tn=en.getAttribute("d");break;case"line":tn="M"+en.getAttribute("x1")+","+en.getAttribute("y1")+"L"+en.getAttribute("x2")+","+en.getAttribute("y2");break;case"polyline":tn="M"+en.getAttribute("points");break;case"polygon":tn="M"+en.getAttribute("points")+" Z";break;case"rect":{nn=Number(en.getAttribute("rx")),rn=Number(en.getAttribute("ry"));const sn=en.getBBox(),{x:cn,y:An}=sn,dn=sn.width,un=sn.height;an=4-an,tn=getPathDFromSegments(nn||rn?[["M",[cn,An+rn]],["C",[cn,An+rn/an,cn+nn/an,An,cn+nn,An]],["L",[cn+dn-nn,An]],["C",[cn+dn-nn/an,An,cn+dn,An+rn/an,cn+dn,An+rn]],["L",[cn+dn,An+un-rn]],["C",[cn+dn,An+un-rn/an,cn+dn-nn/an,An+un,cn+dn-nn,An+un]],["L",[cn+nn,An+un]],["C",[cn+nn/an,An+un,cn,An+un-rn/an,cn,An+un-rn]],["L",[cn,An+rn]],["Z",[]]]:[["M",[cn,An]],["L",[cn+dn,An]],["L",[cn+dn,An+un]],["L",[cn,An+un]],["L",[cn,An]],["Z",[]]]);break}}return tn},getExtraAttributesForConvertToPath=function(en){const tn={};return["marker-start","marker-end","marker-mid","filter","clip-path"].forEach((function(nn){const rn=en.getAttribute(nn);rn&&(tn[nn]=rn)})),tn},getBBoxOfElementAsPath=function(en,tn,nn){const rn=tn({element:"path",attr:getExtraAttributesForConvertToPath(en)}),an=en.getAttribute("transform");an&&rn.setAttribute("transform",an);const{parentNode:sn}=en;en.nextSibling?en.before(rn):sn.append(rn);const cn=getPathDFromElement(en);cn?rn.setAttribute("d",cn):rn.remove(),nn.resetOrientation(rn);let An=!1;try{An=rn.getBBox()}catch(en){}return rn.remove(),An},getBBoxWithTransform=function(en,tn,nn){let rn=getBBox(en);if(!rn)return null;const an=en.transform.baseVal,sn=getRotationAngleFromTransformList(an),cn=hasMatrixTransform(an);if(sn||cn){let An=!1;if(function bBoxCanBeOptimizedOverNativeGetBBox(en,tn){const nn=en%90;return tn||!(nn>-.001&&nn<.001||nn<-89.99||nn>89.99)}(sn,cn))if(["ellipse","path","line","polyline","polygon"].includes(en.tagName))An=getBBoxOfElementAsPath(en,tn,nn),rn=An;else if("rect"===en.tagName){const an=Number(en.getAttribute("rx")),sn=Number(en.getAttribute("ry"));(an||sn)&&(An=getBBoxOfElementAsPath(en,tn,nn),rn=An)}if(!An){const{matrix:en}=transformListToTransform(an);rn=transformBox(rn.x,rn.y,rn.width,rn.height,en).aabox}}return rn},getStrokeOffsetForBBox=en=>{const tn=en.getAttribute("stroke-width");return isNaN(tn)||"none"===en.getAttribute("stroke")?0:tn/2},getStrokedBBox=(en,tn,nn)=>{if(!en||!en.length)return!1;let rn;if(en.forEach((en=>{rn||en.parentNode&&(rn=getBBoxWithTransform(en,tn,nn))})),!rn)return null;let an=rn.x+rn.width,sn=rn.y+rn.height,cn=rn.x,An=rn.y;if(1===en.length){const tn=getStrokeOffsetForBBox(en[0]);cn-=tn,An-=tn,an+=tn,sn+=tn}else en.forEach((en=>{const rn=getBBoxWithTransform(en,tn,nn);if(rn){const tn=getStrokeOffsetForBBox(en);cn=Math.min(cn,rn.x-tn),An=Math.min(An,rn.y-tn),1===en.nodeType&&(an=Math.max(an,rn.x+rn.width+tn),sn=Math.max(sn,rn.y+rn.height+tn))}}));return rn.x=cn,rn.y=An,rn.width=an-cn,rn.height=sn-An,rn},getVisibleElements=en=>{en||(en=Sa.getSvgContent().children[0]);const tn=[],nn=en.children;return Array.from(nn,(en=>{en.getBBox&&tn.push(en)})),tn.reverse()},getStrokedBBoxDefaultVisible=en=>(en||(en=getVisibleElements()),getStrokedBBox(en,Sa.addSVGElementsFromJson,Sa.pathActions)),getRotationAngleFromTransformList=(en,tn)=>{if(!en)return 0;for(let nn=0;nn<en.numberOfItems;++nn){const rn=en.getItem(nn);if(4===rn.type)return tn?rn.angle*Math.PI/180:rn.angle}return 0};let getRotationAngle=(en,tn)=>{var nn;const rn=null===(nn=(en||Sa.getSelectedElements()[0]).transform)||void 0===nn?void 0:nn.baseVal;return getRotationAngleFromTransformList(rn,tn)};const getRefElem=en=>getElement(getUrlFromAttr(en).substr(1)),getFeGaussianBlur=en=>{var tn;if("feGaussianBlur"===(null==en||null===(tn=en.firstChild)||void 0===tn?void 0:tn.tagName))return en.firstChild;{const tn=en.children;for(const[en,nn]of Object.entries(tn))if("feGaussianBlur"===nn.tagName)return nn}return null},getElement=en=>Ba.querySelector("#"+en),assignAttributes=(en,tn,nn,rn)=>{for(const[nn,an]of Object.entries(tn)){const tn="xml:"===nn.substr(0,4)?xa.XML:"xlink:"===nn.substr(0,6)?xa.XLINK:null;void 0!==an?tn?en.setAttributeNS(tn,nn,an):rn?setUnitAttr(en,nn,an):en.setAttribute(nn,an):tn?en.removeAttributeNS(tn,nn):en.removeAttribute(nn)}},cleanupElement=en=>{const tn={"fill-opacity":1,"stop-opacity":1,opacity:1,stroke:"none","stroke-dasharray":"none","stroke-linejoin":"miter","stroke-linecap":"butt","stroke-opacity":1,"stroke-width":1,rx:0,ry:0};"ellipse"===en.nodeName&&(delete tn.rx,delete tn.ry),Object.entries(tn).forEach((tn=>{let[nn,rn]=tn;en.getAttribute(nn)===String(rn)&&en.removeAttribute(nn)}))},snapToGrid=en=>{const tn=Sa.getBaseUnit();let nn=Sa.getSnappingStep();return"px"!==tn&&(nn*=getTypeMap$2()[tn]),Math.round(en/nn)*nn},preventClickDefault=en=>{$click$6(en,(en=>{en.preventDefault()}))},stringToHTML=en=>(new DOMParser).parseFromString(en,"text/html").body.firstChild,insertChildAtIndex=function(en,tn){let nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const rn=stringToHTML(tn);nn>=en.children.length?en.appendChild(rn):en.insertBefore(rn,en.children[nn])},$id$8=en=>document.getElementById(en),$qq$1=en=>document.querySelector(en),$qa$2=en=>[...document.querySelectorAll(en)],$click$6=(en,tn)=>{en.addEventListener("click",tn),en.addEventListener("touchend",tn)},ja={BEFORE_APPLY:"before_apply",AFTER_APPLY:"after_apply",BEFORE_UNAPPLY:"before_unapply",AFTER_UNAPPLY:"after_unapply"};class Command{getText(){return this.text}apply(en,tn){en&&en.handleHistoryEvent(ja.BEFORE_APPLY,this),tn(en),en&&en.handleHistoryEvent(ja.AFTER_APPLY,this)}unapply(en,tn){en&&en.handleHistoryEvent(ja.BEFORE_UNAPPLY,this),tn(),en&&en.handleHistoryEvent(ja.AFTER_UNAPPLY,this)}elements(){return[this.elem]}type(){return this.constructor.name}}class MoveElementCommand$1 extends Command{constructor(en,tn,nn,rn){super(),this.elem=en,this.text=rn?"Move "+en.tagName+" to "+rn:"Move "+en.tagName,this.oldNextSibling=tn,this.oldParent=nn,this.newNextSibling=en.nextSibling,this.newParent=en.parentNode}apply(en){super.apply(en,(()=>{this.elem=this.newParent.insertBefore(this.elem,this.newNextSibling)}))}unapply(en){super.unapply(en,(()=>{this.elem=this.oldParent.insertBefore(this.elem,this.oldNextSibling)}))}}class InsertElementCommand$4 extends Command{constructor(en,tn){super(),this.elem=en,this.text=tn||"Create "+en.tagName,this.parent=en.parentNode,this.nextSibling=this.elem.nextSibling}apply(en){super.apply(en,(()=>{this.elem=this.parent.insertBefore(this.elem,this.nextSibling)}))}unapply(en){super.unapply(en,(()=>{this.parent=this.elem.parentNode,this.elem.remove()}))}}class RemoveElementCommand$2 extends Command{constructor(en,tn,nn,rn){super(),this.elem=en,this.text=rn||"Delete "+en.tagName,this.nextSibling=tn,this.parent=nn}apply(en){super.apply(en,(()=>{this.parent=this.elem.parentNode,this.elem.remove()}))}unapply(en){super.unapply(en,(()=>{this.nextSibling||console.error("Reference element was lost"),this.parent.insertBefore(this.elem,this.nextSibling)}))}}class ChangeElementCommand$2 extends Command{constructor(en,tn,nn){super(),this.elem=en,this.text=nn?"Change "+en.tagName+" "+nn:"Change "+en.tagName,this.newValues={},this.oldValues=tn;for(const nn in tn)this.newValues[nn]="#text"===nn?en?en.textContent:"":"#href"===nn?getHref(en):en.getAttribute(nn)}apply(en){super.apply(en,(()=>{let en=!1;if(Object.entries(this.newValues).forEach((tn=>{let[nn,rn]=tn;rn?"#text"===nn?this.elem.textContent=rn:"#href"===nn?setHref(this.elem,rn):this.elem.setAttribute(nn,rn):"#text"===nn?this.elem.textContent="":(this.elem.setAttribute(nn,""),this.elem.removeAttribute(nn)),"transform"===nn&&(en=!0)})),!en){const en=getRotationAngle(this.elem);if(en){const tn=getBBox(this.elem),nn=["rotate(",en," ",tn.x+tn.width/2,",",tn.y+tn.height/2,")"].join("");nn!==this.elem.getAttribute("transform")&&this.elem.setAttribute("transform",nn)}}}))}unapply(en){super.unapply(en,(()=>{let en=!1;if(Object.entries(this.oldValues).forEach((tn=>{let[nn,rn]=tn;rn?"#text"===nn?this.elem.textContent=rn:"#href"===nn?setHref(this.elem,rn):this.elem.setAttribute(nn,rn):"#text"===nn?this.elem.textContent="":this.elem.removeAttribute(nn),"transform"===nn&&(en=!0)})),!en){const en=getRotationAngle(this.elem);if(en){const tn=getBBox(this.elem),nn=["rotate(",en," ",tn.x+tn.width/2,",",tn.y+tn.height/2,")"].join("");nn!==this.elem.getAttribute("transform")&&this.elem.setAttribute("transform",nn)}}}))}}class BatchCommand$4 extends Command{constructor(en){super(),this.text=en||"Batch Command",this.stack=[]}apply(en){super.apply(en,(()=>{this.stack.forEach((tn=>{console.assert(tn,"stack item should not be null"),tn&&tn.apply(en)}))}))}unapply(en){super.unapply(en,(()=>{this.stack.reverse().forEach((tn=>{console.assert(tn,"stack item should not be null"),tn&&tn.unapply(en)}))}))}elements(){const en=[];let tn=this.stack.length;for(;tn--;){if(!this.stack[tn])continue;const nn=this.stack[tn].elements();let rn=nn.length;for(;rn--;)en.includes(nn[rn])||en.push(nn[rn])}return en}addSubCommand(en){console.assert(null!==en,"cmd should not be null"),this.stack.push(en)}isEmpty(){return!this.stack.length}}var La=Object.freeze({__proto__:null,HistoryEventTypes:ja,Command:Command,MoveElementCommand:MoveElementCommand$1,InsertElementCommand:InsertElementCommand$4,RemoveElementCommand:RemoveElementCommand$2,ChangeElementCommand:ChangeElementCommand$2,BatchCommand:BatchCommand$4,UndoManager:class UndoManager$1{constructor(en){this.handler_=en||null,this.undoStackPointer=0,this.undoStack=[],this.undoChangeStackPointer=-1,this.undoableChangeStack=[]}resetUndoStack(){this.undoStack=[],this.undoStackPointer=0}getUndoStackSize(){return this.undoStackPointer}getRedoStackSize(){return this.undoStack.length-this.undoStackPointer}getNextUndoCommandText(){return this.undoStackPointer>0?this.undoStack[this.undoStackPointer-1].getText():""}getNextRedoCommandText(){return this.undoStackPointer<this.undoStack.length?this.undoStack[this.undoStackPointer].getText():""}undo(){this.undoStackPointer>0&&this.undoStack[--this.undoStackPointer].unapply(this.handler_)}redo(){this.undoStackPointer<this.undoStack.length&&this.undoStack.length>0&&this.undoStack[this.undoStackPointer++].apply(this.handler_)}addCommandToHistory(en){this.undoStackPointer<this.undoStack.length&&this.undoStack.length>0&&(this.undoStack=this.undoStack.splice(0,this.undoStackPointer)),this.undoStack.push(en),this.undoStackPointer=this.undoStack.length}beginUndoableChange(en,tn){const nn=++this.undoChangeStackPointer;let rn=tn.length;const an=new Array(rn),sn=new Array(rn);for(;rn--;){const nn=tn[rn];nn&&(sn[rn]=nn,an[rn]=nn.getAttribute(en))}this.undoableChangeStack[nn]={attrName:en,oldValues:an,elements:sn}}finishUndoableChange(){const en=this.undoChangeStackPointer--,tn=this.undoableChangeStack[en],{attrName:nn}=tn,rn=new BatchCommand$4("Change "+nn);let an=tn.elements.length;for(;an--;){const en=tn.elements[an];if(!en)continue;const sn={};sn[nn]=tn.oldValues[an],sn[nn]!==en.getAttribute(nn)&&rn.addSubCommand(new ChangeElementCommand$2(en,sn,nn))}return this.undoableChangeStack[en]=null,rn}}});
/**
* Path functionality.
* @module path
* @license MIT
*
* @copyright 2011 Alexis Deveria, 2011 Jeff Schiller
*/let Pa=null;const ptObjToArrMethod=function(en,tn){return Pa.getSegData()[en].map((en=>tn[en]))},getGripPtMethod=function(en,tn){const{path:nn}=en;let rn={x:tn?tn.x:en.item.x,y:tn?tn.y:en.item.y};nn.matrix&&(rn=transformPoint(rn.x,rn.y,nn.matrix));const an=Pa.getZoom();return rn.x*=an,rn.y*=an,rn},getPointFromGripMethod=function(en,tn){const nn={x:en.x,y:en.y};tn.matrix&&(en=transformPoint(nn.x,nn.y,tn.imatrix),nn.x=en.x,nn.y=en.y);const rn=Pa.getZoom();return nn.x/=rn,nn.y/=rn,nn},getGripContainerMethod=function(){let en=getElement("pathpointgrip_container");if(!en){const tn=getElement("selectorParentGroup");en=document.createElementNS(xa.SVG,"g"),tn.append(en),en.id="pathpointgrip_container"}return en},addPointGripMethod=function(en,tn,nn){const rn=getGripContainerMethod();let an=getElement("pathpointgrip_"+en);if(!an){var sn;an=document.createElementNS(xa.SVG,"circle");const tn={id:"pathpointgrip_"+en,display:"none",r:4,fill:"#0FF",stroke:"#00F","stroke-width":2,cursor:"move",style:"pointer-events:all"},nn=Pa.getUIStrings();"pathNodeTooltip"in nn&&(tn["xlink:title"]=nn.pathNodeTooltip),assignAttributes(an,tn),rn.append(an),null===(sn=document.getElementById("pathpointgrip_"+en))||void 0===sn||sn.addEventListener("dblclick",(()=>{const en=Pa.getPathObj();en&&en.setSegType()}))}return tn&&nn&&assignAttributes(an,{cx:tn,cy:nn,display:"inline"}),an},addCtrlGripMethod=function(en){let tn=getElement("ctrlpointgrip_"+en);if(tn)return tn;tn=document.createElementNS(xa.SVG,"circle");const nn={id:"ctrlpointgrip_"+en,display:"none",r:4,fill:"#0FF",stroke:"#55F","stroke-width":1,cursor:"move",style:"pointer-events:all"},rn=Pa.getUIStrings();return"pathCtrlPtTooltip"in rn&&(nn["xlink:title"]=rn.pathCtrlPtTooltip),assignAttributes(tn,nn),getGripContainerMethod().append(tn),tn},getCtrlLineMethod=function(en){let tn=getElement("ctrlLine_"+en);return tn||(tn=document.createElementNS(xa.SVG,"line"),assignAttributes(tn,{id:"ctrlLine_"+en,stroke:"#555","stroke-width":1,style:"pointer-events:none"}),getGripContainerMethod().append(tn),tn)},getPointGripMethod=function(en,tn){const{index:nn}=en,rn=addPointGripMethod(nn);if(tn){const tn=getGripPtMethod(en);assignAttributes(rn,{cx:tn.x,cy:tn.y,display:"inline"})}return rn},getControlPointsMethod=function(en){const{item:tn,index:nn}=en;if(!("x1"in tn)||!("x2"in tn))return null;const rn={};getGripContainerMethod();const an=[Pa.getPathObj().segs[nn-1].item,tn];for(let sn=1;sn<3;sn++){const cn=nn+"c"+sn,An=rn["c"+sn+"_line"]=getCtrlLineMethod(cn),dn=getGripPtMethod(en,{x:tn["x"+sn],y:tn["y"+sn]}),un=getGripPtMethod(en,{x:an[sn-1].x,y:an[sn-1].y});assignAttributes(An,{x1:dn.x,y1:dn.y,x2:un.x,y2:un.y,display:"inline"}),rn["c"+sn+"_line"]=An;const pn=rn["c"+sn]=addCtrlGripMethod(cn);assignAttributes(pn,{cx:dn.x,cy:dn.y,display:"inline"}),rn["c"+sn]=pn}return rn},replacePathSegMethod=function(en,tn,nn,rn){const an=Pa.getPathObj(),sn=rn||an.elem,cn=sn["createSVGPathSeg"+Pa.getPathFuncs()[en]](...nn);sn.pathSegList.replaceItem(cn,tn)},getSegSelectorMethod=function(en,tn){const{index:nn}=en;let rn=getElement("segline_"+nn);if(!rn){const en=getGripContainerMethod();rn=document.createElementNS(xa.SVG,"path"),assignAttributes(rn,{id:"segline_"+nn,display:"none",fill:"none",stroke:"#0FF","stroke-width":2,style:"pointer-events:none",d:"M0,0 0,0"}),en.append(rn)}if(tn){const{prev:tn}=en;if(!tn)return rn.setAttribute("display","none"),rn;const nn=getGripPtMethod(tn);replacePathSegMethod(2,0,[nn.x,nn.y],rn);const an=ptObjToArrMethod(en.type,en.item);for(let tn=0;tn<an.length;tn+=2){const nn=getGripPtMethod(en,{x:an[tn],y:an[tn+1]});an[tn]=nn.x,an[tn+1]=nn.y}replacePathSegMethod(en.type,1,an,rn)}return rn};class Segment{constructor(en,tn){this.selected=!1,this.index=en,this.item=tn,this.type=tn.pathSegType,this.ctrlpts=[],this.ptgrip=null,this.segsel=null}showCtrlPts(en){for(const tn in this.ctrlpts)({}).hasOwnProperty.call(this.ctrlpts,tn)&&this.ctrlpts[tn].setAttribute("display",en?"inline":"none")}selectCtrls(en){document.getElementById("ctrlpointgrip_"+this.index+"c1").setAttribute("fill",en?"#0FF":"#EEE"),document.getElementById("ctrlpointgrip_"+this.index+"c2").setAttribute("fill",en?"#0FF":"#EEE")}show(en){this.ptgrip&&(this.ptgrip.setAttribute("display",en?"inline":"none"),this.segsel.setAttribute("display",en?"inline":"none"),this.showCtrlPts(en))}select(en){this.ptgrip&&(this.ptgrip.setAttribute("stroke",en?"#0FF":"#00F"),this.segsel.setAttribute("display",en?"inline":"none"),this.ctrlpts&&this.selectCtrls(en),this.selected=en)}addGrip(){this.ptgrip=getPointGripMethod(this,!0),this.ctrlpts=getControlPointsMethod(this),this.segsel=getSegSelectorMethod(this,!0)}update(en){if(this.ptgrip){const tn=getGripPtMethod(this);if(assignAttributes(this.ptgrip,{cx:tn.x,cy:tn.y}),getSegSelectorMethod(this,!0),this.ctrlpts){if(en){const en=Pa.getPathObj();this.item=en.elem.pathSegList.getItem(this.index),this.type=this.item.pathSegType}getControlPointsMethod(this)}}}move(en,tn){var nn;const{item:rn}=this,an=this.ctrlpts?[rn.x+=en,rn.y+=tn,rn.x1,rn.y1,rn.x2+=en,rn.y2+=tn]:[rn.x+=en,rn.y+=tn];if(replacePathSegMethod(this.type,this.index,10===this.type?ptObjToArrMethod(this.type,rn):an),null!==(nn=this.next)&&void 0!==nn&&nn.ctrlpts){const nn=this.next.item,rn=[nn.x,nn.y,nn.x1+=en,nn.y1+=tn,nn.x2,nn.y2];replacePathSegMethod(this.next.type,this.next.index,rn)}if(this.mate){const{item:nn}=this.mate,rn=[nn.x+=en,nn.y+=tn];replacePathSegMethod(this.mate.type,this.mate.index,rn)}this.update(!0),this.next&&this.next.update(!0)}setLinked(en){let tn,nn,rn;if(2===en){if(nn=1,tn=this.next,!tn)return;rn=this.item}else{if(nn=2,tn=this.prev,!tn)return;rn=tn.item}const{item:an}=tn;an["x"+nn]=rn.x+(rn.x-this.item["x"+en]),an["y"+nn]=rn.y+(rn.y-this.item["y"+en]);const sn=[an.x,an.y,an.x1,an.y1,an.x2,an.y2];replacePathSegMethod(tn.type,tn.index,sn),tn.update(!0)}moveCtrl(en,tn,nn){const{item:rn}=this;rn["x"+en]+=tn,rn["y"+en]+=nn;const an=[rn.x,rn.y,rn.x1,rn.y1,rn.x2,rn.y2];replacePathSegMethod(this.type,this.index,an),this.update(!0)}setType(en,tn){replacePathSegMethod(en,this.index,tn),this.type=en;const nn=Pa.getPathObj();this.item=nn.elem.pathSegList.getItem(this.index),this.showCtrlPts(6===en),this.ctrlpts=getControlPointsMethod(this),this.update(!0)}}class Path$1{constructor(en){if(!en||"path"!==en.tagName)throw new Error("svgedit.path.Path constructed without a <path> element");this.elem=en,this.segs=[],this.selected_pts=[],Pa.setPathObj(this),this.init()}setPathContext(){Pa.setPathObj(this)}init(){const en=getGripContainerMethod().querySelectorAll("*");Array.prototype.forEach.call(en,(function(en){en.setAttribute("display","none")}));const tn=this.elem.pathSegList,nn=tn.numberOfItems;this.segs=[],this.selected_pts=[],this.first_seg=null;for(let en=0;en<nn;en++){const nn=tn.getItem(en),rn=new Segment(en,nn);rn.path=this,this.segs.push(rn)}const{segs:rn}=this;let an=null;for(let en=0;en<nn;en++){const tn=rn[en],sn=en+1>=nn?null:rn[en+1],cn=en-1<0?null:rn[en-1];if(2===tn.type){if(cn&&1!==cn.type){const en=rn[an];en.next=rn[an+1],en.next.prev=en,en.addGrip()}an=en}else if(1===(null==sn?void 0:sn.type))tn.next=rn[an+1],tn.next.prev=tn,tn.mate=rn[an],tn.addGrip(),this.first_seg||(this.first_seg=tn);else if(sn)1!==tn.type&&(tn.addGrip(),sn&&2!==sn.type&&(tn.next=sn,tn.next.prev=tn));else if(1!==tn.type){const en=rn[an];en.next=rn[an+1],en.next.prev=en,en.addGrip(),tn.addGrip(),this.first_seg||(this.first_seg=rn[an])}}return this}eachSeg(en){const tn=this.segs.length;for(let nn=0;nn<tn&&!1!==en.call(this.segs[nn],nn);nn++);}addSeg(en){const tn=this.segs[en];if(!tn.prev)return;const{prev:nn}=tn;let rn,an,sn;switch(tn.item.pathSegType){case 4:an=(tn.item.x+nn.item.x)/2,sn=(tn.item.y+nn.item.y)/2,rn=this.elem.createSVGPathSegLinetoAbs(an,sn);break;case 6:{const cn=(nn.item.x+tn.item.x1)/2,An=(tn.item.x1+tn.item.x2)/2,dn=(tn.item.x2+tn.item.x)/2,un=(cn+An)/2,pn=(An+dn)/2;an=(un+pn)/2;const hn=(nn.item.y+tn.item.y1)/2,gn=(tn.item.y1+tn.item.y2)/2,_n=(tn.item.y2+tn.item.y)/2,mn=(hn+gn)/2,fn=(gn+_n)/2;sn=(mn+fn)/2,rn=this.elem.createSVGPathSegCurvetoCubicAbs(an,sn,cn,hn,un,mn);const yn=[tn.item.x,tn.item.y,pn,fn,dn,_n];replacePathSegMethod(tn.type,en,yn);break}}this.elem.pathSegList.insertItemBefore(rn,en)}deleteSeg(en){const tn=this.segs[en],nn=this.elem.pathSegList;tn.show(!1);const{next:rn}=tn;if(tn.mate){const en=[rn.item.x,rn.item.y];replacePathSegMethod(2,rn.index,en),replacePathSegMethod(4,tn.index,en),nn.removeItem(tn.mate.index)}else if(tn.prev)nn.removeItem(en);else{const an=[rn.item.x,rn.item.y];replacePathSegMethod(2,tn.next.index,an),nn.removeItem(en)}}removePtFromSelection(en){const tn=this.selected_pts.indexOf(en);-1!==tn&&(this.segs[en].select(!1),this.selected_pts.splice(tn,1))}clearSelection(){this.eachSeg((function(){this.select(!1)})),this.selected_pts=[]}storeD(){this.last_d=this.elem.getAttribute("d")}show(en){return this.eachSeg((function(){this.show(en)})),en&&this.selectPt(this.first_seg.index),this}movePts(en,tn){let nn=this.selected_pts.length;for(;nn--;)this.segs[this.selected_pts[nn]].move(en,tn)}moveCtrl(en,tn){const nn=this.segs[this.selected_pts[0]];nn.moveCtrl(this.dragctrl,en,tn),Pa.getLinkControlPts()&&nn.setLinked(this.dragctrl)}setSegType(en){this.storeD();let tn,nn=this.selected_pts.length;for(;nn--;){const rn=this.selected_pts[nn],an=this.segs[rn],{prev:sn}=an;if(!sn)continue;en||(tn="Toggle Path Segment Type",en=6===an.type?4:6),en=Number(en);const cn=an.item.x,An=an.item.y,dn=sn.item.x,un=sn.item.y;let pn;switch(en){case 6:if(an.olditem){const en=an.olditem;pn=[cn,An,en.x1,en.y1,en.x2,en.y2]}else{const en=cn-dn,tn=An-un;pn=[cn,An,dn+en/3,un+tn/3,cn-en/3,An-tn/3]}break;case 4:pn=[cn,An],an.olditem=an.item}an.setType(en,pn)}Pa.getPathObj().endChanges(tn)}selectPt(en,tn){this.clearSelection(),en||this.eachSeg((function(tn){this.prev&&(en=tn)})),this.addPtsToSelection(en),tn&&(this.dragctrl=tn,Pa.getLinkControlPts()&&this.segs[en].setLinked(tn))}update(){const{elem:en}=this;return getRotationAngle(en)?(this.matrix=getMatrix(en),this.imatrix=this.matrix.inverse()):(this.matrix=null,this.imatrix=null),this.eachSeg((function(tn){this.item=en.pathSegList.getItem(tn),this.update()})),this}endChanges(en){const tn=new ChangeElementCommand$2(this.elem,{d:this.last_d},en);Pa.endChanges({cmd:tn,elem:this.elem})}addPtsToSelection(en){Array.isArray(en)||(en=[en]),en.forEach((en=>{this.segs[en].ptgrip&&!this.selected_pts.includes(en)&&en>=0&&this.selected_pts.push(en)})),this.selected_pts.sort();let tn=this.selected_pts.length;const nn=[];for(nn.length=tn;tn--;){const en=this.selected_pts[tn],rn=this.segs[en];rn.select(!0),nn[tn]=rn.ptgrip}const rn=Path$1.subpathIsClosed(this.selected_pts[0]);Pa.addPtsToSelection({grips:nn,closedSubpath:rn})}static subpathIsClosed(en){let tn=!1;return Pa.getPathObj().eachSeg((function(nn){return nn<=en||2!==this.type&&(1!==this.type||(tn=!0,!1))})),tn}}
/**
* Path functionality.
* @module path
* @license MIT
*
* @copyright 2011 Alexis Deveria, 2011 Jeff Schiller
*/let Ta=null,Fa=null;const convertPath$1=function(en,tn){const{pathSegList:nn}=en,rn=nn.numberOfItems;let an=0,sn=0,cn="",An=null;for(let en=0;en<rn;++en){const rn=nn.getItem(en);let dn=rn.x||0,un=rn.y||0,pn=rn.x1||0,hn=rn.y1||0,gn=rn.x2||0,_n=rn.y2||0,mn=rn.pathSegTypeAsLetter;switch(mn){case"z":case"Z":cn+="z",An&&!tn&&(an=An[0],sn=An[1]);break;case"H":dn-=an;case"h":tn?(un=0,an+=dn,mn="l"):(un=sn,dn+=an,an=dn,mn="L"),cn+=pathDSegment$1(mn,[[dn,un]]);break;case"V":un-=sn;case"v":tn?(dn=0,sn+=un,mn="l"):(dn=an,un+=sn,sn=un,mn="L"),cn+=pathDSegment$1(mn,[[dn,un]]);break;case"M":case"L":case"T":dn-=an,un-=sn;case"l":case"m":case"t":tn?(an+=dn,sn+=un,mn=mn.toLowerCase()):(dn+=an,un+=sn,an=dn,sn=un,mn=mn.toUpperCase()),"m"!==mn&&"M"!==mn||(An=[an,sn]),cn+=pathDSegment$1(mn,[[dn,un]]);break;case"C":dn-=an,pn-=an,gn-=an,un-=sn,hn-=sn,_n-=sn;case"c":tn?(an+=dn,sn+=un,mn="c"):(dn+=an,pn+=an,gn+=an,un+=sn,hn+=sn,_n+=sn,an=dn,sn=un,mn="C"),cn+=pathDSegment$1(mn,[[pn,hn],[gn,_n],[dn,un]]);break;case"Q":dn-=an,pn-=an,un-=sn,hn-=sn;case"q":tn?(an+=dn,sn+=un,mn="q"):(dn+=an,pn+=an,un+=sn,hn+=sn,an=dn,sn=un,mn="Q"),cn+=pathDSegment$1(mn,[[pn,hn],[dn,un]]);break;case"A":dn-=an,un-=sn;case"a":tn?(an+=dn,sn+=un,mn="a"):(dn+=an,un+=sn,an=dn,sn=un,mn="A"),cn+=pathDSegment$1(mn,[[rn.r1,rn.r2]],[rn.angle,rn.largeArcFlag?1:0,rn.sweepFlag?1:0],[dn,un]);break;case"S":dn-=an,gn-=an,un-=sn,_n-=sn;case"s":tn?(an+=dn,sn+=un,mn="s"):(dn+=an,gn+=an,un+=sn,_n+=sn,an=dn,sn=un,mn="S"),cn+=pathDSegment$1(mn,[[gn,_n],[dn,un]])}}return cn};function pathDSegment$1(en,tn,nn,rn){tn.forEach((function(en,nn){tn[nn]=shortFloat(en)}));let an=en+tn.join(" ");return nn&&(an+=" "+nn.join(" ")),rn&&(an+=" "+shortFloat(rn)),an}const Ua=function(){let en,tn,nn=!1,rn=null,an=!1;return{mouseDown(tn,rn,an,sn){let cn,An;if("path"!==Ta.getCurrentMode()){if(Fa){if(Fa.storeD(),({id:cn}=tn.target),"pathpointgrip_"===cn.substr(0,14)){An=Fa.cur_pt=Number.parseInt(cn.substr(14)),Fa.dragging=[an,sn];const en=Fa.segs[An];tn.shiftKey?en.selected?Fa.removePtFromSelection(An):Fa.addPtsToSelection(An):((Fa.selected_pts.length<=1||!en.selected)&&Fa.clearSelection(),Fa.addPtsToSelection(An))}else if(cn.startsWith("ctrlpointgrip_")){Fa.dragging=[an,sn];const en=cn.split("_")[1].split("c");An=Number(en[0]);const tn=Number(en[1]);Fa.selectPt(An,tn)}if(!Fa.dragging){let en=Ta.getRubberBox();en||(en=Ta.setRubberBox(Ta.selectorManager.getRubberBandBox()));const tn=Ta.getZoom();assignAttributes(en,{x:an*tn,y:sn*tn,width:0,height:0,display:"inline"})}}}else{let rn=an,An=sn;const dn=Ta.getZoom();let un=rn/dn,pn=An/dn,hn=getElement("path_stretch_line");en=[un,pn],Ta.getGridSnapping()&&(un=snapToGrid(un),pn=snapToGrid(pn),rn=snapToGrid(rn),An=snapToGrid(An)),hn||(hn=document.createElementNS(xa.SVG,"path"),assignAttributes(hn,{id:"path_stretch_line",stroke:"#22C","stroke-width":"0.5",fill:"none"}),getElement("selectorParentGroup").append(hn)),hn.setAttribute("display","inline");let gn,_n=null;const mn=Ta.getDrawnPath();if(mn){const en=mn.pathSegList;let rn=en.numberOfItems;const an=6/dn;let sn=!1;for(;rn;){rn--;const tn=en.getItem(rn),nn=tn.x,cn=tn.y;if(un>=nn-an&&un<=nn+an&&pn>=cn-an&&pn<=cn+an){sn=!0;break}}cn=Ta.getId(),Ta.removePath_(cn);const An=getElement(cn);let fn,yn;const bn=en.numberOfItems;if(sn){if(rn<=1&&bn>=2){const tn=en.getItem(0).x,nn=en.getItem(0).y;yn=hn.pathSegList.getItem(1),fn=4===yn.pathSegType?mn.createSVGPathSegLinetoAbs(tn,nn):mn.createSVGPathSegCurvetoCubicAbs(tn,nn,yn.x1/dn,yn.y1/dn,tn,nn);const rn=mn.createSVGPathSegClosePath();en.appendItem(fn),en.appendItem(rn)}else if(bn<3)return _n=!1,_n;if(hn.remove(),Ta.setDrawnPath(null),Ta.setStarted(!1),nn){Fa.matrix&&Ta.remapElement(An,{},Fa.matrix.inverse());const en=An.getAttribute("d"),tn=Fa.elem.getAttribute("d");return Fa.elem.setAttribute("d",tn+en),An.parentNode.removeChild(An),Fa.matrix&&Ta.recalcRotatedPath(),Ua.toEditMode(Fa.elem),Fa.selectPt(),!1}}else{if(Ta.getContainer()===Ta.getMouseTarget(tn)||!Ta.getContainer().contains(Ta.getMouseTarget(tn)))return!1;const en=mn.pathSegList.numberOfItems,rn=mn.pathSegList.getItem(en-1),an=rn.x,sn=rn.y;if(tn.shiftKey){const en=snapToAngle(an,sn,un,pn);({x:un,y:pn}=en)}yn=hn.pathSegList.getItem(1),fn=4===yn.pathSegType?mn.createSVGPathSegLinetoAbs(Ta.round(un),Ta.round(pn)):mn.createSVGPathSegCurvetoCubicAbs(Ta.round(un),Ta.round(pn),yn.x1/dn,yn.y1/dn,yn.x2/dn,yn.y2/dn),mn.pathSegList.appendItem(fn),un*=dn,pn*=dn,hn.setAttribute("d",["M",un,pn,un,pn].join(" ")),gn=en,nn&&(gn+=Fa.segs.length),Ta.addPointGrip(gn,un,pn)}}else{const en="M"+un+","+pn+" ";Ta.setDrawnPath(Ta.addSVGElementsFromJson({element:"path",curStyles:!0,attr:{d:en,id:Ta.getNextId(),opacity:Ta.getOpacity()/2}})),hn.setAttribute("d",["M",rn,An,rn,An].join(" ")),gn=nn?Fa.segs.length:0,Ta.addPointGrip(gn,rn,An)}}},mouseMove(nn,rn){const sn=Ta.getZoom();an=!0;const cn=Ta.getDrawnPath();if("path"!==Ta.getCurrentMode())if(Fa.dragging){const en=Ta.getPointFromGrip({x:Fa.dragging[0],y:Fa.dragging[1]},Fa),tn=Ta.getPointFromGrip({x:nn,y:rn},Fa),an=tn.x-en.x,sn=tn.y-en.y;Fa.dragging=[nn,rn],Fa.dragctrl?Fa.moveCtrl(an,sn):Fa.movePts(an,sn)}else Fa.selected_pts=[],Fa.eachSeg((function(en){const tn=this;if(!tn.next&&!tn.prev)return;const nn=Ta.getRubberBox(),rn=getBBox(nn),an=Ta.getGripPt(tn),sn={x:an.x,y:an.y,width:0,height:0},cn=rectsIntersect(rn,sn);this.select(cn),cn&&Fa.selected_pts.push(tn.index)}));else{if(!cn)return;const an=cn.pathSegList,An=an.numberOfItems-1;if(en){const dn=Ta.addCtrlGrip("1c1"),un=Ta.addCtrlGrip("0c2");dn.setAttribute("cx",nn),dn.setAttribute("cy",rn),dn.setAttribute("display","inline");const pn=en[0],hn=en[1],gn=pn+(pn-nn/sn),_n=hn+(hn-rn/sn);un.setAttribute("cx",gn*sn),un.setAttribute("cy",_n*sn),un.setAttribute("display","inline");const mn=Ta.getCtrlLine(1);if(assignAttributes(mn,{x1:nn,y1:rn,x2:gn*sn,y2:_n*sn,display:"inline"}),0===An)tn=[nn,rn];else{const en=an.getItem(An-1);let nn=en.x,rn=en.y;6===en.pathSegType?(nn+=nn-en.x2,rn+=rn-en.y2):tn&&(nn=tn[0]/sn,rn=tn[1]/sn),Ta.replacePathSeg(6,An,[pn,hn,nn,rn,gn,_n],cn)}}else{const en=getElement("path_stretch_line");if(en){const cn=an.getItem(An);if(6===cn.pathSegType){const tn=cn.x+(cn.x-cn.x2),an=cn.y+(cn.y-cn.y2);Ta.replacePathSeg(6,1,[nn,rn,tn*sn,an*sn,nn,rn],en)}else tn?Ta.replacePathSeg(6,1,[nn,rn,tn[0],tn[1],nn,rn],en):Ta.replacePathSeg(4,1,[nn,rn],en)}}}},mouseUp(nn,rn,sn,cn){const An=Ta.getDrawnPath();if("path"===Ta.getCurrentMode())return en=null,An||(rn=getElement(Ta.getId()),Ta.setStarted(!1),tn=null),{keep:!0,element:rn};const dn=Ta.getRubberBox();if(Fa.dragging){const en=Fa.cur_pt;Fa.dragging=!1,Fa.dragctrl=!1,Fa.update(),an&&Fa.endChanges("Move path point(s)"),nn.shiftKey||an||Fa.selectPt(en)}else"none"!==(null==dn?void 0:dn.getAttribute("display"))?(dn.setAttribute("display","none"),dn.getAttribute("width")<=2&&dn.getAttribute("height")<=2&&Ua.toSelectMode(nn.target)):Ua.toSelectMode(nn.target);an=!1},toEditMode(en){Fa=Ta.getPath_(en),Ta.setCurrentMode("pathedit"),Ta.clearSelection(),Fa.setPathContext(),Fa.show(!0).update(),Fa.oldbbox=getBBox(Fa.elem),nn=!1},toSelectMode(en){const tn=en===Fa.elem;Ta.setCurrentMode("select"),Fa.setPathContext(),Fa.show(!1),rn=!1,Ta.clearSelection(),Fa.matrix&&Ta.recalcRotatedPath(),tn&&(Ta.call("selected",[en]),Ta.addToSelection([en],!0))},addSubPath(en){en?(Ta.setCurrentMode("path"),nn=!0):(Ua.clear(!0),Ua.toEditMode(Fa.elem))},select(en){rn===en?(Ua.toEditMode(en),Ta.setCurrentMode("pathedit")):rn=en},reorient(){const en=Ta.getSelectedElements()[0];if(!en)return;if(0===getRotationAngle(en))return;const tn=new BatchCommand$4("Reorient path"),nn={d:en.getAttribute("d"),transform:en.getAttribute("transform")};tn.addSubCommand(new ChangeElementCommand$2(en,nn)),Ta.clearSelection(),this.resetOrientation(en),Ta.addCommandToHistory(tn),Ta.getPath_(en).show(!1).matrix=null,this.clear(),Ta.addToSelection([en],!0),Ta.call("changed",Ta.getSelectedElements())},clear(){const en=Ta.getDrawnPath();if(rn=null,en){const en=getElement(Ta.getId()),nn=getElement("path_stretch_line");nn.parentNode.removeChild(nn),en.parentNode.removeChild(en);const rn=getElement("pathpointgrip_container").querySelectorAll("*");Array.prototype.forEach.call(rn,(function(en){en.setAttribute("display","none")})),tn=null,Ta.setDrawnPath(null),Ta.setStarted(!1)}else"pathedit"===Ta.getCurrentMode()&&this.toSelectMode();Fa&&Fa.init().show(!1)},resetOrientation(en){if("path"!==(null==en?void 0:en.nodeName))return!1;const tn=en.transform.baseVal,nn=transformListToTransform(tn).matrix;tn.clear(),en.removeAttribute("transform");const rn=en.pathSegList,an=rn.numberOfItems;for(let tn=0;tn<an;++tn){const an=rn.getItem(tn),sn=an.pathSegType;if(1===sn)continue;const cn=[];["",1,2].forEach((function(en){const tn=an["x"+en],rn=an["y"+en];if(void 0!==tn&&void 0!==rn){const en=transformPoint(tn,rn,nn);cn.splice(cn.length,0,en.x,en.y)}})),Ta.replacePathSeg(sn,tn,cn,en)}Ta.reorientGrads(en,nn)},zoomChange(){"pathedit"===Ta.getCurrentMode()&&Fa.update()},getNodePoint(){const en=Fa.selected_pts.length?Fa.selected_pts[0]:1,tn=Fa.segs[en];return{x:tn.item.x,y:tn.item.y,type:tn.type}},linkControlPoints(en){Ta.setLinkControlPoints(en)},clonePathNode(){Fa.storeD();const en=Fa.selected_pts;let tn=en.length;const nn=[];for(;tn--;){const rn=en[tn];Fa.addSeg(rn),nn.push(rn+tn),nn.push(rn+tn+1)}Fa.init().addPtsToSelection(nn),Fa.endChanges("Clone path node(s)")},opencloseSubPath(){const en=Fa.selected_pts;if(1!==en.length)return;const{elem:tn}=Fa,nn=tn.pathSegList,rn=en[0];let an,sn,cn=null,An=null;if(Fa.eachSeg((function(en){return 2===this.type&&en<=rn&&(An=this.item),en<=rn||(2===this.type?(cn=en,!1):1!==this.type||(cn=!1,!1))})),cn||(cn=Fa.segs.length-1),!1!==cn){const en=tn.createSVGPathSegLinetoAbs(An.x,An.y),rn=tn.createSVGPathSegClosePath();return cn===Fa.segs.length-1?(nn.appendItem(en),nn.appendItem(rn)):(nn.insertItemBefore(rn,cn),nn.insertItemBefore(en,cn)),void Fa.init().selectPt(cn+1)}if(Fa.segs[rn].mate)return nn.removeItem(rn),nn.removeItem(rn),void Fa.init().selectPt(rn-1);for(let en=0;en<nn.numberOfItems;en++){const tn=nn.getItem(en);if(2===tn.pathSegType)an=en;else if(en===rn)nn.removeItem(an);else if(1===tn.pathSegType&&rn<en){sn=en-1,nn.removeItem(en);break}}let dn=rn-an-1;for(;dn--;)nn.insertItemBefore(nn.getItem(an),sn);const un=nn.getItem(an);Ta.replacePathSeg(2,an,[un.x,un.y]),Fa.init().selectPt(0)},deletePathNode(){if(!Ua.canDeleteNodes)return;Fa.storeD();const en=Fa.selected_pts;let tn=en.length;for(;tn--;){const nn=en[tn];Fa.deleteSeg(nn)}const cleanup=function(){const en=Fa.elem.pathSegList;let tn=en.numberOfItems;const remItems=function(tn,nn){for(;nn--;)en.removeItem(tn)};if(tn<=1)return!0;for(;tn--;){const nn=en.getItem(tn);if(1===nn.pathSegType){const nn=en.getItem(tn-1),rn=en.getItem(tn-2);if(2===nn.pathSegType){remItems(tn-1,2),cleanup();break}if(2===rn.pathSegType){remItems(tn-2,3),cleanup();break}}else if(2===nn.pathSegType&&tn>0){const nn=en.getItem(tn-1).pathSegType;if(2===nn){remItems(tn-1,1),cleanup();break}if(1===nn&&en.numberOfItems-1===tn){remItems(tn,1),cleanup();break}}}return!1};if(cleanup(),Fa.elem.pathSegList.numberOfItems<=1)return Ua.toSelectMode(Fa.elem),void Ta.canvas.deleteSelectedElements();Fa.init(),Fa.clearSelection(),window.opera&&Fa.elem.setAttribute("d",Fa.elem.getAttribute("d")),Fa.endChanges("Delete path node(s)")},smoothPolylineIntoPath:function(en){let tn;const{points:nn}=en,rn=nn.numberOfItems;if(rn>=4){let an=nn.getItem(0),sn=null,cn=[];for(cn.push(["M",an.x,",",an.y," C"].join("")),tn=1;tn<=rn-4;tn+=3){let en=nn.getItem(tn);const rn=nn.getItem(tn+1),An=nn.getItem(tn+2);if(sn){const tn=Ta.smoothControlPoints(sn,en,an);if(2===(null==tn?void 0:tn.length)){const nn=cn[cn.length-1].split(",");nn[2]=tn[0].x,nn[3]=tn[0].y,cn[cn.length-1]=nn.join(","),en=tn[1]}}cn.push([en.x,en.y,rn.x,rn.y,An.x,An.y].join(",")),an=An,sn=rn}for(cn.push("L");tn<rn;){const en=nn.getItem(tn);cn.push([en.x,en.y].join(",")),tn++}cn=cn.join(" "),en=Ta.addSVGElementsFromJson({element:"path",curStyles:!0,attr:{id:Ta.getId(),d:cn,fill:"none"}})}return en},setSegType(en){var tn;null===(tn=Fa)||void 0===tn||tn.setSegType(en)},moveNode(en,tn){const nn=Fa.selected_pts;if(!nn.length)return;Fa.storeD();const rn=Fa.segs[nn[0]],an={x:0,y:0};an[en]=tn-rn.item[en],rn.move(an.x,an.y),Fa.endChanges("Move path point")},fixEnd(en){const tn=en.pathSegList,nn=tn.numberOfItems;let rn;for(let an=0;an<nn;++an){const nn=tn.getItem(an);if(2===nn.pathSegType&&(rn=nn),1===nn.pathSegType){const nn=tn.getItem(an-1);if(nn.x!==rn.x||nn.y!==rn.y){const nn=en.createSVGPathSegLinetoAbs(rn.x,rn.y);tn.insertItemBefore(nn,an),Ua.fixEnd(en);break}}}},convertPath:convertPath$1}}(),Na={2:["x","y"],4:["x","y"],6:["x","y","x1","y1","x2","y2"],8:["x","y","x1","y1"],10:["x","y","r1","r2","angle","largeArcFlag","sweepFlag"],12:["x"],14:["y"],16:["x","y","x2","y2"],18:["x","y"]};
/**
* Path functionality.
* @module path
* @license MIT
*
* @copyright 2011 Alexis Deveria, 2011 Jeff Schiller
*/let Ia;const Ma={},setUiStrings=en=>{Object.assign(Ma,en.ui)};let Ra=[],Oa=!0,Qa={};const setLinkControlPoints=en=>{Oa=en};let qa=null;const init$g=en=>{Ia=en,Ia.replacePathSeg=replacePathSegMethod,Ia.addPointGrip=addPointGripMethod,Ia.removePath_=removePath_,Ia.getPath_=getPath_,Ia.addCtrlGrip=addCtrlGripMethod,Ia.getCtrlLine=getCtrlLineMethod,Ia.getGripPt=Ga,Ia.getPointFromGrip=getPointFromGripMethod,Ia.setLinkControlPoints=setLinkControlPoints,Ia.reorientGrads=reorientGrads,Ia.getSegData=()=>Na,Ia.getUIStrings=()=>Ma,Ia.getPathObj=()=>qa,Ia.setPathObj=en=>{qa=en},Ia.getPathFuncs=()=>Ra,Ia.getLinkControlPts=()=>Oa,Ra=[0,"ClosePath"],["Moveto","Lineto","CurvetoCubic","CurvetoQuadratic","Arc","LinetoHorizontal","LinetoVertical","CurvetoCubicSmooth","CurvetoQuadraticSmooth"].forEach((en=>{Ra.push(en+"Abs"),Ra.push(en+"Rel")})),Ta=Ia,Pa=Ia},Va=ptObjToArrMethod,Ga=getGripPtMethod,Da=getPointFromGripMethod,Ha=addPointGripMethod,za=getGripContainerMethod,Ka=addCtrlGripMethod,$a=getCtrlLineMethod,Wa=getPointGripMethod,Xa=getControlPointsMethod,Ya=replacePathSegMethod,Za=getSegSelectorMethod,smoothControlPoints=(en,tn,nn)=>{const rn=en.x-nn.x,an=en.y-nn.y,sn=tn.x-nn.x,cn=tn.y-nn.y;if(!(0===rn&&0===an||0===sn&&0===cn)){const en=Math.sqrt(rn*rn+an*an),tn=Math.sqrt(sn*sn+cn*cn),An=Ia.getSvgRoot().createSVGPoint(),dn=Ia.getSvgRoot().createSVGPoint();let un=Math.atan2(an,rn),pn=Math.atan2(cn,sn);un<0&&(un+=2*Math.PI),pn<0&&(pn+=2*Math.PI);const hn=Math.abs(un-pn),gn=Math.abs(Math.PI-hn)/2;let _n,mn;return un-pn>0?(_n=hn<Math.PI?un+gn:un-gn,mn=hn<Math.PI?pn-gn:pn+gn):(_n=hn<Math.PI?un-gn:un+gn,mn=hn<Math.PI?pn+gn:pn-gn),An.x=en*Math.cos(_n)+nn.x,An.y=en*Math.sin(_n)+nn.y,dn.x=tn*Math.cos(mn)+nn.x,dn.y=tn*Math.sin(mn)+nn.y,[An,dn]}},getPath_=en=>{let tn=Qa[en.id];return tn||(tn=Qa[en.id]=new Path$1(en)),tn},removePath_=en=>{en in Qa&&delete Qa[en]};let Ja,es,ts,ns,rs;const getRotVals=(en,tn)=>{let nn=en-ts,rn=tn-ns,an=Math.sqrt(nn*nn+rn*rn),sn=Math.atan2(rn,nn)+rs;return nn=an*Math.cos(sn)+ts,rn=an*Math.sin(sn)+ns,nn-=Ja,rn-=es,an=Math.sqrt(nn*nn+rn*rn),sn=Math.atan2(rn,nn)-rs,{x:an*Math.cos(sn)+Ja,y:an*Math.sin(sn)+es}},clearData=()=>{Qa={}},reorientGrads=(en,tn)=>{const nn=getBBox(en);for(let rn=0;rn<2;rn++){const an=0===rn?"fill":"stroke",sn=en.getAttribute(an);if(sn&&sn.startsWith("url(")){const rn=getRefElem(sn);if("linearGradient"===rn.tagName){let sn=rn.getAttribute("x1")||0,cn=rn.getAttribute("y1")||0,An=rn.getAttribute("x2")||1,dn=rn.getAttribute("y2")||0;sn=nn.width*sn+nn.x,cn=nn.height*cn+nn.y,An=nn.width*An+nn.x,dn=nn.height*dn+nn.y;const un=transformPoint(sn,cn,tn),pn=transformPoint(An,dn,tn),hn={x1:(un.x-nn.x)/nn.width,y1:(un.y-nn.y)/nn.height,x2:(pn.x-nn.x)/nn.width,y2:(pn.y-nn.y)/nn.height},gn=rn.cloneNode(!0);for(const[en,tn]of Object.entries(hn))gn.setAttribute(en,tn);gn.id=Ia.getNextId(),findDefs().append(gn),en.setAttribute(an,"url(#"+gn.id+")")}}}},os=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"],pathDSegment=(en,tn,nn,rn)=>{tn.forEach(((en,nn)=>{tn[nn]=shortFloat(en)}));let an=en+tn.join(" ");return nn&&(an+=" "+nn.join(" ")),rn&&(an+=" "+shortFloat(rn)),an},is=Ua;var as=Object.freeze({__proto__:null,setUiStrings:setUiStrings,setLinkControlPoints:setLinkControlPoints,get path(){return qa},init:init$g,ptObjToArr:Va,getGripPt:Ga,getPointFromGrip:Da,addPointGrip:Ha,getGripContainer:za,addCtrlGrip:Ka,getCtrlLine:$a,getPointGrip:Wa,getControlPoints:Xa,replacePathSeg:Ya,getSegSelector:Za,smoothControlPoints:smoothControlPoints,getPath_:getPath_,removePath_:removePath_,recalcRotatedPath:()=>{const en=qa.elem;if(rs=getRotationAngle(en,!0),!rs)return;const tn=qa.oldbbox;ts=tn.x+tn.width/2,ns=tn.y+tn.height/2;const nn=getBBox(en);Ja=nn.x+nn.width/2,es=nn.y+nn.height/2;const rn=Ja-ts,an=es-ns,sn=Math.sqrt(rn*rn+an*an),cn=Math.atan2(an,rn)+rs;Ja=sn*Math.cos(cn)+ts,es=sn*Math.sin(cn)+ns;const An=en.pathSegList;let dn=An.numberOfItems;for(;dn;){dn-=1;const en=An.getItem(dn),tn=en.pathSegType;if(1===tn)continue;const nn=getRotVals(en.x,en.y),rn=[nn.x,nn.y];if(en.x1&&en.x2){const tn=getRotVals(en.x1,en.y1),nn=getRotVals(en.x2,en.y2);rn.splice(rn.length,0,tn.x,tn.y,nn.x,nn.y)}Ya(tn,dn,rn)}getBBox(en);const un=Ia.getSvgRoot().createSVGTransform(),pn=en.transform.baseVal;un.setRotate(180*rs/Math.PI,Ja,es),pn.replaceItem(un,0)},clearData:clearData,reorientGrads:reorientGrads,convertPath:(en,tn)=>{const{pathSegList:nn}=en,rn=nn.numberOfItems;let an=0,sn=0,cn="",An=null;for(let en=0;en<rn;++en){const rn=nn.getItem(en);let dn=rn.x||0,un=rn.y||0,pn=rn.x1||0,hn=rn.y1||0,gn=rn.x2||0,_n=rn.y2||0;const mn=rn.pathSegType;let fn=os[mn][tn?"toLowerCase":"toUpperCase"]();switch(mn){case 1:cn+="z",An&&!tn&&(an=An[0],sn=An[1]);break;case 12:dn-=an;case 13:tn?(un=0,an+=dn,fn="l"):(un=sn,dn+=an,an=dn,fn="L"),cn+=pathDSegment(fn,[[dn,un]]);break;case 14:un-=sn;case 15:tn?(dn=0,sn+=un,fn="l"):(dn=an,un+=sn,sn=un,fn="L"),cn+=pathDSegment(fn,[[dn,un]]);break;case 2:case 4:case 18:case 10:dn-=an,un-=sn;case 5:case 3:case 19:tn?(an+=dn,sn+=un):(dn+=an,un+=sn,an=dn,sn=un),2!==mn&&3!==mn||(An=[an,sn]),cn+=pathDSegment(fn,[[dn,un]]);break;case 6:dn-=an,pn-=an,gn-=an,un-=sn,hn-=sn,_n-=sn;case 7:tn?(an+=dn,sn+=un):(dn+=an,pn+=an,gn+=an,un+=sn,hn+=sn,_n+=sn,an=dn,sn=un),cn+=pathDSegment(fn,[[pn,hn],[gn,_n],[dn,un]]);break;case 8:dn-=an,pn-=an,un-=sn,hn-=sn;case 9:tn?(an+=dn,sn+=un):(dn+=an,pn+=an,un+=sn,hn+=sn,an=dn,sn=un),cn+=pathDSegment(fn,[[pn,hn],[dn,un]]);break;case 11:tn?(an+=dn,sn+=un):(dn+=an,un+=sn,an=dn,sn=un),cn+=pathDSegment(fn,[[rn.r1,rn.r2]],[rn.angle,rn.largeArcFlag?1:0,rn.sweepFlag?1:0],[dn,un]);break;case 16:dn-=an,gn-=an,un-=sn,_n-=sn;case 17:tn?(an+=dn,sn+=un):(dn+=an,gn+=an,un+=sn,_n+=sn,an=dn,sn=un),cn+=pathDSegment(fn,[[gn,_n],[dn,un]])}}return cn},pathActions:is});
/**
* Provides tools for the layer concept.
* @module layer
* @license MIT
*
* @copyright 2011 Jeff Schiller, 2016 Flint O'Brien
*/class Layer{constructor(en,tn,nn){if(this.name_=en,this.group_=nn?null:tn,nn){const rn=nn.ownerDocument;this.group_=rn.createElementNS(xa.SVG,"g");const an=rn.createElementNS(xa.SVG,"title");an.textContent=en,this.group_.append(an),tn?tn.insertAdjacentElement("afterend",this.group_):nn.append(this.group_)}!function addLayerClass(en){const tn=en.getAttribute("class");tn&&tn.length?Layer.CLASS_REGEX.test(tn)||en.setAttribute("class",tn+" "+Layer.CLASS_NAME):en.setAttribute("class",Layer.CLASS_NAME)}
/**
* HistoryRecordingService component of history.
* @module history
* @license MIT
* @copyright 2016 Flint O'Brien
*/(this.group_),walkTree(this.group_,(function(en){en.setAttribute("style","pointer-events:inherit")})),this.group_.setAttribute("style",nn?"pointer-events:all":"pointer-events:none")}getName(){return this.name_}getGroup(){return this.group_}activate(){this.group_.setAttribute("style","pointer-events:all")}deactivate(){this.group_.setAttribute("style","pointer-events:none")}setVisible(en){const tn=void 0===en||en?"inline":"none";this.group_.getAttribute("display")!==tn&&this.group_.setAttribute("display",tn)}isVisible(){return"none"!==this.group_.getAttribute("display")}getOpacity(){const en=this.group_.getAttribute("opacity");return en?Number.parseFloat(en):1}setOpacity(en){"number"==typeof en&&en>=0&&en<=1&&this.group_.setAttribute("opacity",en)}appendChildren(en){for(const tn of en)this.group_.append(tn)}getTitleElement(){const en=this.group_.childNodes.length;for(let tn=0;tn<en;++tn){const en=this.group_.childNodes.item(tn);if("title"===(null==en?void 0:en.tagName))return en}return null}setName(en,tn){const nn=this.name_;en=toXml(en);const rn=this.getTitleElement();if(rn){for(;rn.firstChild;)rn.removeChild(rn.firstChild);return rn.textContent=en,this.name_=en,tn&&tn.changeElement(rn,{"#text":nn}),this.name_}return null}removeGroup(){const en=this.group_;return this.group_.remove(),this.group_=void 0,en}static isLayer(en){return en&&"g"===en.tagName&&Layer.CLASS_REGEX.test(en.getAttribute("class"))}}Layer.CLASS_NAME="layer",Layer.CLASS_REGEX=new RegExp("(\\s|^)"+Layer.CLASS_NAME+"(\\s|$)");class HistoryRecordingService{constructor(en){this.undoManager_=en,this.currentBatchCommand_=null,this.batchCommandStack_=[]}startBatchCommand(en){return this.undoManager_?(this.currentBatchCommand_=new BatchCommand$4(en),this.batchCommandStack_.push(this.currentBatchCommand_),this):this}endBatchCommand(){if(!this.undoManager_)return this;if(this.currentBatchCommand_){const en=this.currentBatchCommand_;this.batchCommandStack_.pop();const{length:tn}=this.batchCommandStack_;this.currentBatchCommand_=tn?this.batchCommandStack_[tn-1]:null,this.addCommand_(en)}return this}moveElement(en,tn,nn,rn){return this.undoManager_?(this.addCommand_(new MoveElementCommand$1(en,tn,nn,rn)),this):this}insertElement(en,tn){return this.undoManager_?(this.addCommand_(new InsertElementCommand$4(en,tn)),this):this}removeElement(en,tn,nn,rn){return this.undoManager_?(this.addCommand_(new RemoveElementCommand$2(en,tn,nn,rn)),this):this}changeElement(en,tn,nn){return this.undoManager_?(this.addCommand_(new ChangeElementCommand$2(en,tn,nn)),this):this}addCommand_(en){if(!this.undoManager_)return this;this.currentBatchCommand_?this.currentBatchCommand_.addSubCommand(en):this.undoManager_.addCommandToHistory(en)}}HistoryRecordingService.NO_HISTORY=new HistoryRecordingService;const copyElem=function(en,tn){const nn=document.createElementNS(en.namespaceURI,en.nodeName);if(Object.values(en.attributes).forEach((en=>{nn.setAttributeNS(en.namespaceURI,en.nodeName,en.value)})),nn.removeAttribute("id"),nn.id=tn(),en.childNodes.forEach((function(en){switch(en.nodeType){case 1:nn.append(copyElem(en,tn));break;case 3:nn.textContent=en.nodeValue}})),en.dataset.gsvg)nn.dataset.gsvg=nn.firstChild;else if(en.dataset.symbol){const tn=en.dataset.symbol;nn.dataset.ref=tn,nn.dataset.symbol=tn}else"image"===nn.tagName&&preventClickDefault(nn);return nn},ss="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use".split(",");
/**
* Tools for drawing.
* @module draw
* @license MIT
* @copyright 2011 Jeff Schiller
*/let ls=0,cs=[];function historyRecordingService(en){return en||new HistoryRecordingService(As.undoMgr)}function findLayerNameInGroup(en){const tn=en.querySelector("title");return tn?tn.textContent:""}function getNewLayerName(en){let tn=1;for(;en.includes("Layer "+tn);)tn++;return"Layer "+tn}class Drawing{constructor(en,tn){if(!en||!en.tagName||!en.namespaceURI||"svg"!==en.tagName||en.namespaceURI!==xa.SVG)throw new Error("Error: svgedit.draw.Drawing instance initialized without a <svg> element");this.svgElem_=en,this.obj_num=0,this.idPrefix=tn||"svg_",this.releasedNums=[],this.all_layers=[],this.layer_map={},this.current_layer=null,this.nonce_="";const nn=this.svgElem_.getAttributeNS(xa.SE,"nonce");nn&&2!==ls?this.nonce_=nn:1===ls&&this.setNonce(Math.floor(100001*Math.random()))}getElem_(en){return this.svgElem_.querySelector?this.svgElem_.querySelector("#"+en):this.svgElem_.querySelector("[id="+en+"]")}getSvgElem(){return this.svgElem_}getNonce(){return this.nonce_}setNonce(en){this.svgElem_.setAttributeNS(xa.XMLNS,"xmlns:se",xa.SE),this.svgElem_.setAttributeNS(xa.SE,"se:nonce",en),this.nonce_=en}clearNonce(){this.nonce_=""}getId(){return this.nonce_?this.idPrefix+this.nonce_+"_"+this.obj_num:this.idPrefix+this.obj_num}getNextId(){const en=this.obj_num;let tn=!1;this.releasedNums.length>0?(this.obj_num=this.releasedNums.pop(),tn=!0):this.obj_num++;let nn=this.getId();for(;this.getElem_(nn);)tn&&(this.obj_num=en,tn=!1),this.obj_num++,nn=this.getId();return tn&&(this.obj_num=en),nn}releaseId(en){const tn=this.idPrefix+(this.nonce_?this.nonce_+"_":"");if("string"!=typeof en||!en.startsWith(tn))return!1;const nn=Number.parseInt(en.substr(tn.length));return!("number"!=typeof nn||nn<=0||this.releasedNums.includes(nn)||(this.releasedNums.push(nn),0))}getNumLayers(){return this.all_layers.length}hasLayer(en){return void 0!==this.layer_map[en]}getLayerName(en){return en>=0&&en<this.getNumLayers()?this.all_layers[en].getName():""}getCurrentLayer(){return this.current_layer?this.current_layer.getGroup():null}getLayerByName(en){const tn=this.layer_map[en];return tn?tn.getGroup():null}getCurrentLayerName(){return this.current_layer?this.current_layer.getName():""}setCurrentLayerName(en,tn){let nn=null;if(this.current_layer){const rn=this.current_layer.getName();nn=this.current_layer.setName(en,tn),nn&&(delete this.layer_map[rn],this.layer_map[nn]=this.current_layer)}return nn}setCurrentLayerPosition(en){const tn=this.getNumLayers();if(!this.current_layer||en<0||en>=tn)return null;const nn=this.indexCurrentLayer();if(-1===nn||nn===en)return null;const rn=this.current_layer.getGroup(),an=rn.nextSibling;let sn=null;return en>nn?en<tn-1&&(sn=this.all_layers[en+1].getGroup()):sn=this.all_layers[en].getGroup(),this.svgElem_.insertBefore(rn,sn),this.identifyLayers(),this.setCurrentLayer(this.getLayerName(en)),{currentGroup:rn,oldNextSibling:an}}mergeLayer(en){const tn=this.current_layer.getGroup(),nn=tn.previousElementSibling;if(!nn)return;en.startBatchCommand("Merge Layer");const rn=tn.nextSibling;for(en.removeElement(tn,rn,this.svgElem_);tn.firstChild;){const rn=tn.firstChild;if("title"===rn.localName){en.removeElement(rn,rn.nextSibling,tn),rn.remove();continue}const an=rn.nextSibling;nn.append(rn),en.moveElement(rn,an,tn)}this.current_layer.removeGroup();const an=this.indexCurrentLayer();if(an>0){const en=this.current_layer.getName();this.current_layer=this.all_layers[an-1],this.all_layers.splice(an,1),delete this.layer_map[en]}en.endBatchCommand()}mergeAllLayers(en){for(this.current_layer=this.all_layers[this.all_layers.length-1],en.startBatchCommand("Merge all Layers");this.all_layers.length>1;)this.mergeLayer(en);en.endBatchCommand()}setCurrentLayer(en){const tn=this.layer_map[en];return!!tn&&(this.current_layer&&this.current_layer.deactivate(),this.current_layer=tn,this.current_layer.activate(),!0)}indexCurrentLayer(){return this.all_layers.indexOf(this.current_layer)}deleteCurrentLayer(){if(this.current_layer&&this.getNumLayers()>1){const en=this.current_layer.removeGroup();return this.identifyLayers(),en}return null}identifyLayers(){this.all_layers=[],this.layer_map={};const en=this.svgElem_.childNodes.length,tn=[],nn=[];let rn=null,an=!1;for(let sn=0;sn<en;++sn){const en=this.svgElem_.childNodes.item(sn);if(1===(null==en?void 0:en.nodeType))if("g"===en.tagName){an=!0;const sn=findLayerNameInGroup(en);sn?(nn.push(sn),rn=new Layer(sn,en),this.all_layers.push(rn),this.layer_map[sn]=rn):tn.push(en)}else ss.includes(en.nodeName)&&tn.push(en)}tn.length>0||!an?(rn=new Layer(getNewLayerName(nn),null,this.svgElem_),rn.appendChildren(tn),this.all_layers.push(rn),this.layer_map[name]=rn):rn.activate(),this.current_layer=rn}createLayer(en,tn){this.current_layer&&this.current_layer.deactivate(),(null==en||""===en||this.layer_map[en])&&(en=getNewLayerName(Object.keys(this.layer_map)));const nn=new Layer(en,null,this.svgElem_);return tn&&(tn.startBatchCommand("Create Layer"),tn.insertElement(nn.getGroup()),tn.endBatchCommand()),this.all_layers.push(nn),this.layer_map[en]=nn,this.current_layer=nn,nn.getGroup()}cloneLayer(en,tn){if(!this.current_layer)return null;this.current_layer.deactivate(),(null==en||""===en||this.layer_map[en])&&(en=getNewLayerName(Object.keys(this.layer_map)));const nn=this.current_layer.getGroup(),rn=new Layer(en,nn,this.svgElem_),an=rn.getGroup();[...nn.childNodes].forEach((en=>{"title"!==en.localName&&an.append(this.copyElem(en))})),tn&&(tn.startBatchCommand("Duplicate Layer"),tn.insertElement(an),tn.endBatchCommand());const sn=this.indexCurrentLayer();return sn>=0?this.all_layers.splice(sn+1,0,rn):this.all_layers.push(rn),this.layer_map[en]=rn,this.current_layer=rn,an}getLayerVisibility(en){const tn=this.layer_map[en];return!!tn&&tn.isVisible()}setLayerVisibility(en,tn){if("boolean"!=typeof tn)return null;const nn=this.layer_map[en];return nn?(nn.setVisible(tn),nn.getGroup()):null}getLayerOpacity(en){const tn=this.layer_map[en];return tn?tn.getOpacity():null}setLayerOpacity(en,tn){if("number"!=typeof tn||tn<0||tn>1)return;const nn=this.layer_map[en];nn&&nn.setOpacity(tn)}copyElem(en){const tn=this;return copyElem(en,(function(){return tn.getNextId()}))}}let As;const identifyLayers=()=>{leaveContext(),As.getCurrentDrawing().identifyLayers()},indexCurrentLayer=()=>As.getCurrentDrawing().indexCurrentLayer(),createLayer=(en,tn)=>{const nn=As.getCurrentDrawing().createLayer(en,historyRecordingService(tn));As.clearSelection(),As.call("changed",[nn])},cloneLayer=(en,tn)=>{const nn=As.getCurrentDrawing().cloneLayer(en,historyRecordingService(tn));As.clearSelection(),leaveContext(),As.call("changed",[nn])},deleteCurrentLayer=()=>{const{BatchCommand:en,RemoveElementCommand:tn}=As.history;let nn=As.getCurrentDrawing().getCurrentLayer();const{nextSibling:rn}=nn,an=nn.parentNode;if(nn=As.getCurrentDrawing().deleteCurrentLayer(),nn){const sn=new en("Delete Layer");return sn.addSubCommand(new tn(nn,rn,an)),As.addCommandToHistory(sn),As.clearSelection(),As.call("changed",[an]),!0}return!1},setCurrentLayer=en=>{const tn=As.getCurrentDrawing().setCurrentLayer(toXml(en));return tn&&As.clearSelection(),tn},renameCurrentLayer=en=>{const tn=As.getCurrentDrawing(),nn=tn.getCurrentLayer();return!(!nn||!tn.setCurrentLayerName(en,historyRecordingService()))&&(As.call("changed",[nn]),!0)},setCurrentLayerPosition=en=>{const{MoveElementCommand:tn}=As.history,nn=As.getCurrentDrawing().setCurrentLayerPosition(en);return!!nn&&(As.addCommandToHistory(new tn(nn.currentGroup,nn.oldNextSibling,As.getSvgContent())),!0)},setLayerVisibility=(en,tn)=>{const{ChangeElementCommand:nn}=As.history,rn=As.getCurrentDrawing(),an=rn.getLayerVisibility(en),sn=rn.setLayerVisibility(en,tn);if(!sn)return!1;{const en=an?"inline":"none";As.addCommandToHistory(new nn(sn,{display:en},"Layer Visibility"))}return sn===rn.getCurrentLayer()&&(As.clearSelection(),As.pathActions.clear()),!0},moveSelectedToLayer=en=>{const{BatchCommand:tn,MoveElementCommand:nn}=As.history,rn=As.getCurrentDrawing().getLayerByName(en);if(!rn)return!1;const an=new tn("Move Elements to Layer"),sn=As.getSelectedElements();let cn=sn.length;for(;cn--;){const en=sn[cn];if(!en)continue;const tn=en.nextSibling,An=en.parentNode;rn.append(en),an.addSubCommand(new nn(en,tn,An))}return As.addCommandToHistory(an),!0},mergeLayer=en=>{As.getCurrentDrawing().mergeLayer(historyRecordingService(en)),As.clearSelection(),leaveContext(),As.changeSvgContent()},mergeAllLayers=en=>{As.getCurrentDrawing().mergeAllLayers(historyRecordingService(en)),As.clearSelection(),leaveContext(),As.changeSvgContent()},leaveContext=()=>{const en=cs.length,tn=As.getDataStorage();if(en){for(let nn=0;nn<en;nn++){const en=cs[nn],rn=tn.get(en,"orig_opac");1!==rn?en.setAttribute("opacity",rn):en.removeAttribute("opacity"),en.setAttribute("style","pointer-events: inherit")}cs=[],As.clearSelection(!0),As.call("contextset",null)}As.setCurrentGroup(null)},setContext=en=>{const tn=As.getDataStorage();leaveContext(),"string"==typeof en&&(en=getElement(en)),As.setCurrentGroup(en);const nn=function getParentsUntil(en,tn,nn){const rn=[],an=null==tn?void 0:tn.charAt(0),sn=null==nn?void 0:nn.selector.charAt(0);for(;en&&en!==document;en=en.parentNode){if(tn){if("."===an&&en.classList.contains(tn.substr(1)))break;if("#"===an&&en.id===tn.substr(1))break;if("["===an&&en.hasAttribute(tn.substr(1,tn.length-1)))break;if(en.tagName.toLowerCase()===tn)break}nn?("."===sn&&en.classList.contains(nn.substr(1))&&rn.push(en),"#"===sn&&en.id===nn.substr(1)&&rn.push(en),"["===sn&&en.hasAttribute(nn.substr(1,nn.length-1))&&rn.push(en),en.tagName.toLowerCase()===nn&&rn.push(en)):rn.push(en)}return rn.length?rn:null}(en,"#svgcontent"),rn=[];nn.forEach((function(en){Array.prototype.filter.call(en.parentNode.children,(function(tn){return tn!==en})).forEach((function(en){rn.push(en)}))})),rn.forEach((function(en){const nn=en.getAttribute("opacity")||1;tn.put(en,"orig_opac",nn),en.setAttribute("opacity",.33*nn),en.setAttribute("style","pointer-events: none"),cs.push(en)})),As.clearSelection(),As.call("contextset",As.getCurrentGroup())},{InsertElementCommand:ds,BatchCommand:us}=La;let ps=null;const pasteElementsMethod=function(en,tn,nn){let rn=JSON.parse(sessionStorage.getItem(ps.getClipboardID()));if(!rn)return;let an=rn.length;if(!an)return;const sn=[],cn=new us("Paste elements"),An={};function checkIDs(en){var tn;null!==(tn=en.attr)&&void 0!==tn&&tn.id&&(An[en.attr.id]=ps.getNextId(),en.attr.id=An[en.attr.id]),en.children&&en.children.forEach((en=>checkIDs(en)))}for(rn.forEach((en=>checkIDs(en))),ps.runExtensions("IDsUpdated",{elems:rn,changes:An},!0).forEach((function(en){en&&"remove"in en&&en.remove.forEach((function(en){rn=rn.filter((function(tn){return tn.attr.id!==en}))}))}));an--;){const en=rn[an];if(!en)continue;const tn=ps.addSVGElementsFromJson(en);sn.push(tn),cn.addSubCommand(new ds(tn)),ps.restoreRefElements(tn)}if(ps.selectOnly(sn),"in_place"!==en){let rn,an;en?"point"===en&&(rn=tn,an=nn):(rn=ps.getLastClickPoint("x"),an=ps.getLastClickPoint("y"));const An=getStrokedBBoxDefaultVisible(sn),dn=rn-(An.x+An.width/2),un=an-(An.y+An.height/2),pn=[],hn=[];sn.forEach((function(en){pn.push(dn),hn.push(un)}));const gn=ps.moveSelectedElements(pn,hn,!1);gn&&cn.addSubCommand(gn)}ps.addCommandToHistory(cn),ps.call("changed",sn)},touchHandler=en=>{en.preventDefault();const{changedTouches:tn}=en,nn=tn[0];let rn="";switch(en.type){case"touchstart":rn="mousedown";break;case"touchmove":rn="mousemove";break;case"touchend":rn="mouseup";break;default:return}const{screenX:an,screenY:sn,clientX:cn,clientY:An}=nn,dn=new MouseEvent(rn,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:an,screenY:sn,clientX:cn,clientY:An,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});tn.length<2&&nn.target.dispatchEvent(dn)},hs="http://www.w3.org/2000/svg",{userAgent:gs}=navigator,_s=gs.includes("AppleWebKit"),ms=gs.includes("Gecko/"),fs=gs.includes("Chrome/");gs.includes("Macintosh");const ys=function(){const en=document.createElementNS(hs,"svg"),tn=document.createElementNS(hs,"svg");document.documentElement.append(en),tn.setAttribute("x",5),en.append(tn);const nn=document.createElementNS(hs,"text");nn.textContent="a",tn.append(nn);try{return 0===nn.getStartPositionOfChar(0).x}catch(en){return!1}finally{en.remove()}}(),isWebkit=()=>_s,isGecko$1=()=>ms,{UndoManager:bs,HistoryEventTypes:vs}=La;let ws=null;const ffClone=function(en){if(!isGecko$1())return en;const tn=en.cloneNode(!0);return en.before(tn),en.remove(),ws.selectorManager.releaseSelector(en),ws.setSelectedElements(0,tn),ws.selectorManager.requestSelector(tn).showGrips(!0),tn},changeSelectedAttributeNoUndoMethod=(en,tn,nn)=>{var rn;if("id"===en){const en=nn[0],rn=en.id;return void(rn!==tn&&(ws.clearSelection(),en.id=tn,ws.addToSelection([en],!0),ws.call("elementRenamed",{elem:en,oldId:rn,newId:tn})))}const an=ws.getSelectedElements(),sn=ws.getZoom();"pathedit"===ws.getCurrentMode()&&ws.pathActions.moveNode(en,tn);let cn=(nn=null!==(rn=nn)&&void 0!==rn?rn:an).length;const An=["g","polyline","path"];for(;cn--;){let rn=nn[cn];if(!rn)continue;if(("x"===en||"y"===en)&&An.includes(rn.tagName)){const nn=getStrokedBBoxDefaultVisible([rn]),an="x"===en?tn-nn.x:0,cn="y"===en?tn-nn.y:0;ws.moveSelectedElements(an*sn,cn*sn,!0);continue}let un="#text"===en?rn.textContent:rn.getAttribute(en);if(un||(un=""),un!==String(tn)){"#text"===en?(rn.textContent=tn,/rotate/.test(rn.getAttribute("transform"))&&(rn=ffClone(rn))):"#href"===en?setHref(rn,tn):tn||"number"==typeof tn?rn.setAttribute(en,tn):rn.removeAttribute(en),"textedit"===ws.getCurrentMode()&&"#text"!==en&&rn.textContent.length&&ws.textActions.toSelectMode(rn),isGecko$1()&&"text"===rn.nodeName&&/rotate/.test(rn.getAttribute("transform"))&&(String(tn).startsWith("url")||["font-size","font-family","x","y"].includes(en)&&rn.textContent)&&(rn=ffClone(rn)),an.includes(rn)&&setTimeout((function(){rn.parentNode&&ws.selectorManager.requestSelector(rn).resize()}),0);const nn=getRotationAngle(rn);if(0!==nn&&"transform"!==en){var dn;const en=null===(dn=rn.transform)||void 0===dn?void 0:dn.baseVal;let tn=en.numberOfItems;for(;tn--;)if(4===en.getItem(tn).type){en.removeItem(tn);const an=getBBox(rn),sn=transformPoint(an.x+an.width/2,an.y+an.height/2,transformListToTransform(en).matrix),cn=sn.x,An=sn.y,dn=ws.getSvgRoot().createSVGTransform();dn.setRotate(nn,cn,An),en.insertItemBefore(dn,tn);break}}}}},changeSelectedAttributeMethod=function(en,tn,nn){const rn=ws.getSelectedElements();nn=nn||rn,ws.undoMgr.beginUndoableChange(en,nn),changeSelectedAttributeNoUndoMethod(en,tn,nn);const an=ws.undoMgr.finishUndoableChange();an.isEmpty()||ws.undoMgr.addCommandToHistory(an)},{BatchCommand:ks}=La;let Cs=null;const clearSelectionMethod=en=>{var tn;Cs.getSelectedElements().forEach((en=>{en&&Cs.selectorManager.releaseSelector(en)})),null!==(tn=Cs)&&void 0!==tn&&tn.setEmptySelectedElements(),en||Cs.call("selected",Cs.getSelectedElements())},addToSelectionMethod=(en,tn)=>{const nn=Cs.getSelectedElements();if(!en.length)return;let rn=0;for(;rn<nn.length&&null!==nn[rn];)++rn;let an=en.length;for(;an--;){let tn=en[an];if(tn&&tn.getBBox&&("a"===tn.tagName&&1===tn.childNodes.length&&(tn=tn.firstChild),!nn.includes(tn))){nn[rn]=tn,rn++;const en=Cs.selectorManager.requestSelector(tn);nn.length>1&&en.showGrips(!1)}}if(nn.length)for(Cs.call("selected",nn),1===nn.length&&Cs.selectorManager.requestSelector(nn[0]).showGrips(tn),nn.sort(((en,tn)=>en&&tn&&en.compareDocumentPosition?3-(6&tn.compareDocumentPosition(en)):en?0:1));!nn[0];)nn.shift(0)},getMouseTargetMethod=en=>{if(!en)return null;let tn=en.target;if(tn.correspondingUseElement&&(tn=tn.correspondingUseElement),[xa.MATH,xa.HTML].includes(tn.namespaceURI)&&"svgcanvas"!==tn.id)for(;"foreignObject"!==tn.nodeName;)if(tn=tn.parentNode,!tn)return Cs.getSvgRoot();const nn=Cs.getCurrentDrawing().getCurrentLayer();if([Cs.getSvgRoot(),Cs.getDOMContainer(),Cs.getSvgContent(),nn].includes(tn))return Cs.getSvgRoot();if(getClosest(tn.parentNode,"#selectorParentGroup"))return Cs.selectorManager.selectorParentGroup;for(;null===(rn=tn)||void 0===rn||null===(an=rn.parentNode)||void 0===an||!an.isSameNode(Cs.getCurrentGroup()||nn);){var rn,an;tn=tn.parentNode}return tn},runExtensionsMethod=(en,tn,nn)=>{let rn=!!nn&&[];for(const[an,sn]of Object.entries(Cs.getExtensions()))if("function"==typeof tn&&(tn=tn(an)),sn.eventBased){const nn=new CustomEvent("svgedit",{detail:{action:en,vars:tn}});document.dispatchEvent(nn)}else sn[en]&&(nn?rn.push(sn[en](tn)):rn=sn[en](tn));return rn},getIntersectionListMethod=en=>{const tn=Cs.getZoom();if(!Cs.getRubberBox())return null;const nn=Cs.getCurrentGroup()||Cs.getCurrentDrawing().getCurrentLayer();let rn;if(en)rn=Cs.getSvgContent().createSVGRect(),rn.x=en.x,rn.y=en.y,rn.width=en.width,rn.height=en.height;else{rn=getBBox(Cs.getRubberBox());const en=Cs.getSvgContent().createSVGRect();["x","y","width","height","top","right","bottom","left"].forEach((nn=>{en[nn]=rn[nn]/tn})),rn=en}const an=[];0===Cs.getCurBBoxes().length&&Cs.setCurBBoxes((en=>{en||(en=Cs.getSvgContent().children);const tn=[],nn=en.children;return Array.from(nn).forEach((en=>{en.getBBox&&tn.push({elem:en,bbox:getStrokedBBoxDefaultVisible([en])})})),tn.reverse()})(nn));let sn=Cs.getCurBBoxes().length;for(;sn--;){const en=Cs.getCurBBoxes();rn.width&&rectsIntersect(rn,en[sn].bbox)&&an.push(en[sn].elem)}return an},groupSvgElem=en=>{const tn=Cs.getDataStorage(),nn=document.createElementNS(xa.SVG,"g");en.replaceWith(nn),nn.appendChild(en),tn.put(nn,"gsvg",en),nn.id=Cs.getNextId()},prepareSvg=en=>{Cs.sanitizeSvg(en.documentElement),[...en.getElementsByTagNameNS(xa.SVG,"path")].forEach((en=>{const tn=Cs.pathActions.convertPath(en);en.setAttribute("d",tn),Cs.pathActions.fixEnd(en)}))},setRotationAngle=(en,tn)=>{const nn=Cs.getSelectedElements();en=Number.parseFloat(en);const rn=nn[0],an=rn.getAttribute("transform"),sn=getBBox(rn),cn=sn.x+sn.width/2,An=sn.y+sn.height/2,dn=rn.transform.baseVal;if(dn.numberOfItems>0&&4===dn.getItem(0).type&&dn.removeItem(0),0!==en){const tn=transformPoint(cn,An,transformListToTransform(dn).matrix),nn=Cs.getSvgRoot().createSVGTransform();nn.setRotate(en,tn.x,tn.y),dn.numberOfItems?dn.insertItemBefore(nn,0):dn.appendItem(nn)}else 0===dn.numberOfItems&&rn.removeAttribute("transform");if(!tn){let en=rn.getAttribute("transform");if(en){const tn=en.split(" "),nn=(en=>Math.round(Number(en)+Number.EPSILON))(tn[1]);en="".concat(tn[0]," ").concat(nn," ").concat(tn[2])}an?rn.setAttribute("transform",an):rn.removeAttribute("transform"),Cs.changeSelectedAttribute("transform",en,nn),Cs.call("changed",nn)}Cs.selectorManager.requestSelector(nn[0]).resize(),Cs.getSelector().updateGripCursors(en)},recalculateAllSelectedDimensions=()=>{const en="none"===Cs.getCurrentResizeMode()?"position":"size",tn=new ks(en),nn=Cs.getSelectedElements();nn.forEach((en=>{const nn=Cs.recalculateDimensions(en);nn&&tn.addSubCommand(nn)})),tn.isEmpty()||(Cs.addCommandToHistory(tn),Cs.call("changed",nn))};
/**
* @module text-actions Tools for Text edit functions
* @license MIT
*
* @copyright 2010 Alexis Deveria, 2010 Jeff Schiller
*/let Bs=null;const js=function(){let en,tn,nn,rn,an,sn,cn,An,dn,un,pn=[];function setCursor(en){const cn=""===tn.value;if(tn.focus(),!arguments.length)if(cn)en=0;else{if(tn.selectionEnd!==tn.selectionStart)return;en=tn.selectionEnd}const An=pn[en];cn||tn.setSelectionRange(en,en),nn=getElement("text_cursor"),nn||(nn=document.createElementNS(xa.SVG,"line"),assignAttributes(nn,{id:"text_cursor",stroke:"#333","stroke-width":1}),getElement("selectorParentGroup").append(nn)),an||(an=setInterval((function(){const en="none"===nn.getAttribute("display");nn.setAttribute("display",en?"inline":"none")}),600));const dn=ptToScreen(An.x,sn.y),un=ptToScreen(An.x,sn.y+sn.height);assignAttributes(nn,{x1:dn.x,y1:dn.y,x2:un.x,y2:un.y,visibility:"visible",display:"inline"}),rn&&rn.setAttribute("d","")}function setSelection(en,an,cn){if(en===an)return void setCursor(an);cn||tn.setSelectionRange(en,an),rn=getElement("text_selectblock"),rn||(rn=document.createElementNS(xa.SVG,"path"),assignAttributes(rn,{id:"text_selectblock",fill:"green",opacity:.5,style:"pointer-events:none"}),getElement("selectorParentGroup").append(rn));const An=pn[en],dn=pn[an];nn.setAttribute("visibility","hidden");const un=ptToScreen(An.x,sn.y),hn=ptToScreen(An.x+(dn.x-An.x),sn.y),gn=ptToScreen(An.x,sn.y+sn.height),_n=ptToScreen(An.x+(dn.x-An.x),sn.y+sn.height),mn="M"+un.x+","+un.y+" L"+hn.x+","+hn.y+" "+_n.x+","+_n.y+" "+gn.x+","+gn.y+"z";assignAttributes(rn,{d:mn,display:"inline"})}function getIndexFromPoint(tn,nn){const rn=Bs.getSvgRoot().createSVGPoint();if(rn.x=tn,rn.y=nn,1===pn.length)return 0;let an=en.getCharNumAtPosition(rn);an<0?(an=pn.length-2,tn<=pn[0].x&&(an=0)):an>=pn.length-2&&(an=pn.length-2);const sn=pn[an];return tn>sn.x+sn.width/2&&an++,an}function setCursorFromPoint(en,tn){setCursor(getIndexFromPoint(en,tn))}function setEndSelectionFromPoint(en,nn,rn){const an=tn.selectionStart,sn=getIndexFromPoint(en,nn);setSelection(Math.min(an,sn),Math.max(an,sn),!rn)}function screenToPt(en,tn){const nn={x:en,y:tn},rn=Bs.getZoom();if(nn.x/=rn,nn.y/=rn,cn){const en=transformPoint(nn.x,nn.y,cn.inverse());nn.x=en.x,nn.y=en.y}return nn}function ptToScreen(en,tn){const nn={x:en,y:tn};if(cn){const en=transformPoint(nn.x,nn.y,cn);nn.x=en.x,nn.y=en.y}const rn=Bs.getZoom();return nn.x*=rn,nn.y*=rn,nn}function selectAll(tn){setSelection(0,en.textContent.length),tn.target.removeEventListener("click",selectAll)}function selectWord(tn){if(!un||!en)return;const nn=Bs.getZoom(),rn=transformPoint(tn.pageX,tn.pageY,Bs.getrootSctm()),an=screenToPt(rn.x*nn,rn.y*nn),sn=getIndexFromPoint(an.x,an.y),cn=en.textContent,An=cn.substr(0,sn).replace(/[a-z\d]+$/i,"").length,dn=cn.substr(sn).match(/^[a-z\d]+/i);setSelection(An,(dn?dn[0].length:0)+sn),Bs.$click(tn.target,selectAll),setTimeout((function(){tn.target.removeEventListener("click",selectAll)}),300)}return{select(tn,nn,rn){en=tn,Bs.textActions.toEditMode(nn,rn)},start(tn){en=tn,Bs.textActions.toEditMode()},mouseDown(en,nn,rn,an){const sn=screenToPt(rn,an);tn.focus(),setCursorFromPoint(sn.x,sn.y),An=rn,dn=an},mouseMove(en,tn){const nn=screenToPt(en,tn);setEndSelectionFromPoint(nn.x,nn.y)},mouseUp(tn,nn,rn){const an=screenToPt(nn,rn);setEndSelectionFromPoint(an.x,an.y,!0),tn.target!==en&&nn<An+2&&nn>An-2&&rn<dn+2&&rn>dn-2&&Bs.textActions.toSelectMode(!0)},setCursor:setCursor,toEditMode(tn,nn){if(un=!1,Bs.setCurrentMode("textedit"),Bs.selectorManager.requestSelector(en).showGrips(!1),Bs.selectorManager.requestSelector(en),Bs.textActions.init(),en.style.cursor="text",arguments.length){const en=screenToPt(tn,nn);setCursorFromPoint(en.x,en.y)}else setCursor();setTimeout((function(){un=!0}),300)},toSelectMode(sn){var cn;Bs.setCurrentMode("select"),clearInterval(an),an=null,rn&&rn.setAttribute("display","none"),nn&&nn.setAttribute("visibility","hidden"),en.style.cursor="move",sn&&(Bs.clearSelection(),en.style.cursor="move",Bs.call("selected",[en]),Bs.addToSelection([en],!0)),null!==(cn=en)&&void 0!==cn&&cn.textContent.length||Bs.deleteSelectedElements(),tn.blur(),en=!1},setInputElem(en){tn=en},clear(){"textedit"===Bs.getCurrentMode()&&Bs.textActions.toSelectMode()},init(nn){if(!en)return;let rn,an;if(!en.parentNode){const tn=Bs.getSelectedElements();en=tn[0],Bs.selectorManager.requestSelector(en).showGrips(!1)}const An=en.textContent.length,dn=en.getAttribute("transform");for(sn=getBBox(en),cn=dn?getMatrix(en):null,pn=[],pn.length=An,tn.focus(),en.removeEventListener("dblclick",selectWord),en.addEventListener("dblclick",selectWord),An||(an={x:sn.x+sn.width/2,width:0}),rn=0;rn<An;rn++){const tn=en.getStartPositionOfChar(rn);if(an=en.getEndPositionOfChar(rn),!ys){const en=Bs.getZoom(),nn=Bs.contentW*en;tn.x-=nn,an.x-=nn,tn.x/=en,an.x/=en}pn[rn]={x:tn.x,y:sn.y,width:an.x-tn.x,height:sn.height}}pn.push({x:an.x,width:0}),setSelection(tn.selectionStart,tn.selectionEnd,!0)}}}(),{InsertElementCommand:Ls}=La;let Ps=null;const getBsplinePoint=en=>{const tn={x:0,y:0},nn=Ps.getControllPoint2("x"),rn=Ps.getControllPoint2("y"),an=Ps.getControllPoint1("x"),sn=Ps.getControllPoint1("y"),cn=Ps.getStart("x"),An=Ps.getStart("y"),dn=Ps.getEnd("x"),un=Ps.getEnd("y"),pn=1/6,hn=en*en,gn=hn*en,_n=[[-1,3,-3,1],[3,-6,3,0],[-3,0,3,0],[1,4,1,0]];return tn.x=pn*((nn*_n[0][0]+an*_n[0][1]+cn*_n[0][2]+dn*_n[0][3])*gn+(nn*_n[1][0]+an*_n[1][1]+cn*_n[1][2]+dn*_n[1][3])*hn+(nn*_n[2][0]+an*_n[2][1]+cn*_n[2][2]+dn*_n[2][3])*en+(nn*_n[3][0]+an*_n[3][1]+cn*_n[3][2]+dn*_n[3][3])),tn.y=pn*((rn*_n[0][0]+sn*_n[0][1]+An*_n[0][2]+un*_n[0][3])*gn+(rn*_n[1][0]+sn*_n[1][1]+An*_n[1][2]+un*_n[1][3])*hn+(rn*_n[2][0]+sn*_n[2][1]+An*_n[2][2]+un*_n[2][3])*en+(rn*_n[3][0]+sn*_n[3][1]+An*_n[3][2]+un*_n[3][3])),{x:tn.x,y:tn.y}},mouseMoveEvent=en=>{var tn;if(!Ps.getStarted())return;if(1===en.button||Ps.spaceKey)return;Ps.textActions.init(),en.preventDefault();const nn=Ps.getSelectedElements(),rn=Ps.getZoom(),an=Ps.getSvgRoot(),sn=nn[0];let cn,An,dn,un,pn,hn,gn,_n,mn;const fn=transformPoint(en.clientX,en.clientY,Ps.getrootSctm()),yn=fn.x*rn,bn=fn.y*rn,vn=getElement(Ps.getId());let wn,xn=yn/rn,kn=xn,Cn=bn/rn,Sn=Cn;switch(Ps.getCurConfig().gridSnapping&&(kn=snapToGrid(kn),Sn=snapToGrid(Sn)),Ps.getCurrentMode()){case"select":sn&&(pn=kn-Ps.getStartX(),hn=Sn-Ps.getStartY(),Ps.getCurConfig().gridSnapping&&(pn=snapToGrid(pn),hn=snapToGrid(hn)),(pn||hn)&&(nn.forEach((en=>{en&&(((en,tn,nn,rn)=>{var an;const sn=en.createSVGTransform();sn.setTranslate(nn,rn);const cn=null===(an=tn.transform)||void 0===an?void 0:an.baseVal;cn.numberOfItems?2===cn.getItem(0).type?cn.replaceItem(sn,0):cn.insertItemBefore(sn,0):cn.appendItem(sn)})(an,en,pn,hn),Ps.selectorManager.requestSelector(en).resize())})),Ps.call("transition",nn)));break;case"multiselect":{xn*=rn,Cn*=rn,assignAttributes(Ps.getRubberBox(),{x:Math.min(Ps.getRStartX(),xn),y:Math.min(Ps.getRStartY(),Cn),width:Math.abs(xn-Ps.getRStartX()),height:Math.abs(Cn-Ps.getRStartY())});const en=nn.slice(),tn=[],an=Ps.getIntersectionList();for(gn=an.length,cn=0;cn<gn;++cn){const rn=an[cn];nn.includes(rn)||tn.push(rn);const sn=en.indexOf(rn);-1!==sn&&en.splice(sn,1)}en.length>0&&Ps.removeFromSelection(en),tn.length>0&&Ps.addToSelection(tn);break}case"resize":{wn=sn.transform.baseVal;const tn=hasMatrixTransform(wn);mn=tn?Ps.getInitBbox():getBBox(sn);let rn=mn.x,cn=mn.y,{width:An,height:dn}=mn;if(pn=kn-Ps.getStartX(),hn=Sn-Ps.getStartY(),Ps.getCurConfig().gridSnapping&&(pn=snapToGrid(pn),hn=snapToGrid(hn),dn=snapToGrid(dn),An=snapToGrid(An)),_n=getRotationAngle(sn),_n){const en=Math.sqrt(pn*pn+hn*hn),tn=Math.atan2(hn,pn)-_n*Math.PI/180;pn=en*Math.cos(tn),hn=en*Math.sin(tn)}Ps.getCurrentResizeMode().includes("n")||Ps.getCurrentResizeMode().includes("s")||(hn=0),Ps.getCurrentResizeMode().includes("e")||Ps.getCurrentResizeMode().includes("w")||(pn=0);let un=0,gn=0,fn=dn?(dn+hn)/dn:1,yn=An?(An+pn)/An:1;Ps.getCurrentResizeMode().includes("n")&&(fn=dn?(dn-hn)/dn:1,gn=dn),Ps.getCurrentResizeMode().includes("w")&&(yn=An?(An-pn)/An:1,un=An);const bn=an.createSVGTransform(),vn=an.createSVGTransform(),xn=an.createSVGTransform();if(Ps.getCurConfig().gridSnapping&&(rn=snapToGrid(rn),un=snapToGrid(un),cn=snapToGrid(cn),gn=snapToGrid(gn)),bn.setTranslate(-(rn+un),-(cn+gn)),en.shiftKey&&(1===yn?yn=fn:fn=yn),vn.setScale(yn,fn),xn.setTranslate(rn+un,cn+gn),tn){const en=_n?1:0;wn.replaceItem(bn,2+en),wn.replaceItem(vn,1+en),wn.replaceItem(xn,Number(en))}else{const en=wn.numberOfItems;wn.replaceItem(xn,en-3),wn.replaceItem(vn,en-2),wn.replaceItem(bn,en-1)}Ps.selectorManager.requestSelector(sn).resize(),Ps.call("transition",nn);break}case"zoom":xn*=rn,Cn*=rn,assignAttributes(Ps.getRubberBox(),{x:Math.min(Ps.getRStartX()*rn,xn),y:Math.min(Ps.getRStartY()*rn,Cn),width:Math.abs(xn-Ps.getRStartX()*rn),height:Math.abs(Cn-Ps.getRStartY()*rn)});break;case"text":assignAttributes(vn,{x:kn,y:Sn});break;case"line":{Ps.getCurConfig().gridSnapping&&(kn=snapToGrid(kn),Sn=snapToGrid(Sn));let tn=kn,nn=Sn;en.shiftKey&&(An=snapToAngle(Ps.getStartX(),Ps.getStartY(),tn,nn),tn=An.x,nn=An.y),vn.setAttribute("x2",tn),vn.setAttribute("y2",nn);break}case"foreignObject":case"square":case"rect":case"image":{const tn="square"===Ps.getCurrentMode()||en.shiftKey;let nn,rn,an=Math.abs(kn-Ps.getStartX()),sn=Math.abs(Sn-Ps.getStartY());tn?(an=sn=Math.max(an,sn),nn=Ps.getStartX()<kn?Ps.getStartX():Ps.getStartX()-an,rn=Ps.getStartY()<Sn?Ps.getStartY():Ps.getStartY()-sn):(nn=Math.min(Ps.getStartX(),kn),rn=Math.min(Ps.getStartY(),Sn)),Ps.getCurConfig().gridSnapping&&(an=snapToGrid(an),sn=snapToGrid(sn),nn=snapToGrid(nn),rn=snapToGrid(rn)),assignAttributes(vn,{width:an,height:sn,x:nn,y:rn});break}case"circle":{dn=Number(vn.getAttribute("cx")),un=Number(vn.getAttribute("cy"));let en=Math.sqrt((kn-dn)*(kn-dn)+(Sn-un)*(Sn-un));Ps.getCurConfig().gridSnapping&&(en=snapToGrid(en)),vn.setAttribute("r",en);break}case"ellipse":{dn=Number(vn.getAttribute("cx")),un=Number(vn.getAttribute("cy")),Ps.getCurConfig().gridSnapping&&(kn=snapToGrid(kn),dn=snapToGrid(dn),Sn=snapToGrid(Sn),un=snapToGrid(un)),vn.setAttribute("rx",Math.abs(kn-dn));const tn=Math.abs(en.shiftKey?kn-dn:Sn-un);vn.setAttribute("ry",tn);break}case"fhellipse":case"fhrect":Ps.setFreehand("minx",Math.min(xn,Ps.getFreehand("minx"))),Ps.setFreehand("maxx",Math.max(xn,Ps.getFreehand("maxx"))),Ps.setFreehand("miny",Math.min(Cn,Ps.getFreehand("miny"))),Ps.setFreehand("maxy",Math.max(Cn,Ps.getFreehand("maxy")));case"fhpath":if(Ps.setEnd("x",xn),Ps.setEnd("y",Cn),Ps.getControllPoint2("x")&&Ps.getControllPoint2("y"))for(cn=0;cn<Ps.getStepCount()-1;cn++)if(Ps.setParameter(cn/Ps.getStepCount()),Ps.setNextParameter((cn+1)/Ps.getStepCount()),Ps.setbSpline(getBsplinePoint(Ps.getNextParameter())),Ps.setNextPos({x:Ps.getbSpline("x"),y:Ps.getbSpline("y")}),Ps.setbSpline(getBsplinePoint(Ps.getParameter())),Ps.setSumDistance(Ps.getSumDistance()+Math.sqrt((Ps.getNextPos("x")-Ps.getbSpline("x"))*(Ps.getNextPos("x")-Ps.getbSpline("x"))+(Ps.getNextPos("y")-Ps.getbSpline("y"))*(Ps.getNextPos("y")-Ps.getbSpline("y")))),Ps.getSumDistance()>Ps.getThreSholdDist()){Ps.setSumDistance(Ps.getSumDistance()-Ps.getThreSholdDist());const en=Ps.getSvgContent().createSVGPoint();en.x=Ps.getbSpline("x"),en.y=Ps.getbSpline("y"),vn.points.appendItem(en)}Ps.setControllPoint2("x",Ps.getControllPoint1("x")),Ps.setControllPoint2("y",Ps.getControllPoint1("y")),Ps.setControllPoint1("x",Ps.getStart("x")),Ps.setControllPoint1("y",Ps.getStart("y")),Ps.setStart({x:Ps.getEnd("x"),y:Ps.getEnd("y")});break;case"path":case"pathedit":if(kn*=rn,Sn*=rn,Ps.getCurConfig().gridSnapping&&(kn=snapToGrid(kn),Sn=snapToGrid(Sn),Ps.setStartX(snapToGrid(Ps.getStartX())),Ps.setStartY(snapToGrid(Ps.getStartY()))),en.shiftKey){const{path:en}=as;let tn,nn;en?(tn=en.dragging?en.dragging[0]:Ps.getStartX(),nn=en.dragging?en.dragging[1]:Ps.getStartY()):(tn=Ps.getStartX(),nn=Ps.getStartY()),An=snapToAngle(tn,nn,kn,Sn),({x:kn,y:Sn}=An)}"none"!==(null===(tn=Ps.getRubberBox())||void 0===tn?void 0:tn.getAttribute("display"))&&(xn*=rn,Cn*=rn,assignAttributes(Ps.getRubberBox(),{x:Math.min(Ps.getRStartX()*rn,xn),y:Math.min(Ps.getRStartY()*rn,Cn),width:Math.abs(xn-Ps.getRStartX()*rn),height:Math.abs(Cn-Ps.getRStartY()*rn)})),Ps.pathActions.mouseMove(kn,Sn);break;case"textedit":kn*=rn,Sn*=rn,Ps.textActions.mouseMove(yn,bn);break;case"rotate":{mn=getBBox(sn),dn=mn.x+mn.width/2,un=mn.y+mn.height/2;const tn=getMatrix(sn),rn=transformPoint(dn,un,tn);if(dn=rn.x,un=rn.y,_n=(Math.atan2(un-Sn,dn-kn)*(180/Math.PI)-90)%360,Ps.getCurConfig().gridSnapping&&(_n=snapToGrid(_n)),en.shiftKey){const en=45;_n=Math.round(_n/en)*en}Ps.setRotationAngle(_n<-180?360+_n:_n,!0),Ps.call("transition",nn);break}}Ps.runExtensions("mouseMove",{event:en,mouse_x:yn,mouse_y:bn,selected:sn})},mouseOutEvent=()=>{const{$id:en}=Ps;if("select"!==Ps.getCurrentMode()&&Ps.getStarted()){const tn=new Event("mouseup");en("svgcanvas").dispatchEvent(tn)}},mouseUpEvent=en=>{if(2===en.button)return;if(!Ps.getStarted())return;Ps.textActions.init();const tn=Ps.getSelectedElements(),nn=Ps.getZoom(),rn=Ps.getJustSelected();Ps.setJustSelected(null);const an=transformPoint(en.clientX,en.clientY,Ps.getrootSctm()),sn=an.x*nn,cn=an.y*nn,An=sn/nn,dn=cn/nn;let un=getElement(Ps.getId()),pn=!1;const hn=An,gn=dn;let _n;switch(Ps.setStarted(!1),Ps.getCurrentMode()){case"resize":case"multiselect":Ps.getRubberBox()&&(Ps.getRubberBox().setAttribute("display","none"),Ps.setCurBBoxes([])),Ps.setCurrentMode("select");case"select":if(tn[0]){if(!tn[1]){const en=tn[0];switch(en.tagName){case"g":case"use":case"image":case"foreignObject":break;case"text":Ps.setCurText("font_size",en.getAttribute("font-size")),Ps.setCurText("font_family",en.getAttribute("font-family"));default:Ps.setCurProperties("fill",en.getAttribute("fill")),Ps.setCurProperties("fill_opacity",en.getAttribute("fill-opacity")),Ps.setCurProperties("stroke",en.getAttribute("stroke")),Ps.setCurProperties("stroke_opacity",en.getAttribute("stroke-opacity")),Ps.setCurProperties("stroke_width",en.getAttribute("stroke-width")),Ps.setCurProperties("stroke_dasharray",en.getAttribute("stroke-dasharray")),Ps.setCurProperties("stroke_linejoin",en.getAttribute("stroke-linejoin")),Ps.setCurProperties("stroke_linecap",en.getAttribute("stroke-linecap"))}Ps.selectorManager.requestSelector(en).showGrips(!0)}if(Ps.recalculateAllSelectedDimensions(),hn!==Ps.getRStartX()||gn!==Ps.getRStartY()){const en=tn.length;for(let nn=0;nn<en&&tn[nn];++nn)Ps.selectorManager.requestSelector(tn[nn]).resize()}else _n=en.target,"path"!==tn[0].nodeName||tn[1]?en.shiftKey&&rn!==_n&&Ps.removeFromSelection([_n]):Ps.pathActions.select(tn[0]);const nn=tn[0];nn&&(nn.removeAttribute("style"),walkTree(nn,(en=>{en.removeAttribute("style")})))}return;case"zoom":{var mn;null===(mn=Ps.getRubberBox())||void 0===mn||mn.setAttribute("display","none");const tn=en.shiftKey?.5:2;return void Ps.call("zoomed",{x:Math.min(Ps.getRStartX(),hn),y:Math.min(Ps.getRStartY(),gn),width:Math.abs(hn-Ps.getRStartX()),height:Math.abs(gn-Ps.getRStartY()),factor:tn})}case"fhpath":{Ps.setSumDistance(0),Ps.setControllPoint2("x",0),Ps.setControllPoint2("y",0),Ps.setControllPoint1("x",0),Ps.setControllPoint1("y",0),Ps.setStart({x:0,y:0}),Ps.setEnd("x",0),Ps.setEnd("y",0);const en=un.getAttribute("points"),tn=en.indexOf(",");pn=tn>=0?en.includes(",",tn+1):en.includes(" ",en.indexOf(" ")+1),pn&&(un=Ps.pathActions.smoothPolylineIntoPath(un));break}case"line":{const en=un.getAttribute("x1"),tn=un.getAttribute("y1"),nn=un.getAttribute("x2"),rn=un.getAttribute("y2");pn=en!==nn||tn!==rn}break;case"foreignObject":case"square":case"rect":case"image":{const en=un.getAttribute("width"),tn=un.getAttribute("height");pn=en||tn||"image"===Ps.getCurrentMode()}break;case"circle":pn="0"!==un.getAttribute("r");break;case"ellipse":{const en=Number(un.getAttribute("rx")),tn=Number(un.getAttribute("ry"));pn=en||tn}break;case"fhellipse":Ps.getFreehand("maxx")-Ps.getFreehand("minx")>0&&Ps.getFreehand("maxy")-Ps.getFreehand("miny")>0&&(un=Ps.addSVGElementsFromJson({element:"ellipse",curStyles:!0,attr:{cx:(Ps.getFreehand("minx")+Ps.getFreehand("maxx"))/2,cy:(Ps.getFreehand("miny")+Ps.getFreehand("maxy"))/2,rx:(Ps.getFreehand("maxx")-Ps.getFreehand("minx"))/2,ry:(Ps.getFreehand("maxy")-Ps.getFreehand("miny"))/2,id:Ps.getId()}}),Ps.call("changed",[un]),pn=!0);break;case"fhrect":Ps.getFreehand("maxx")-Ps.getFreehand("minx")>0&&Ps.getFreehand("maxy")-Ps.getFreehand("miny")>0&&(un=Ps.addSVGElementsFromJson({element:"rect",curStyles:!0,attr:{x:Ps.getFreehand("minx"),y:Ps.getFreehand("miny"),width:Ps.getFreehand("maxx")-Ps.getFreehand("minx"),height:Ps.getFreehand("maxy")-Ps.getFreehand("miny"),id:Ps.getId()}}),Ps.call("changed",[un]),pn=!0);break;case"text":pn=!0,Ps.selectOnly([un]),Ps.textActions.start(un);break;case"path":{un=null,Ps.setStarted(!0);const tn=Ps.pathActions.mouseUp(en,un,sn,cn);({element:un}=tn),({keep:pn}=tn);break}case"pathedit":pn=!0,un=null,Ps.pathActions.mouseUp(en);break;case"textedit":pn=!1,un=null,Ps.textActions.mouseUp(en,sn,cn);break;case"rotate":{pn=!0,un=null,Ps.setCurrentMode("select");const en=Ps.undoMgr.finishUndoableChange();en.isEmpty()||Ps.addCommandToHistory(en),Ps.recalculateAllSelectedDimensions(),Ps.call("changed",tn);break}}if(Ps.runExtensions("mouseUp",{event:en,mouse_x:sn,mouse_y:cn},!0).forEach((en=>{en&&(pn=en.keep||pn,({element:un}=en),Ps.setStarted(en.started||Ps.getStarted()))})),!pn&&un){var fn;for(Ps.getCurrentDrawing().releaseId(Ps.getId()),un.remove(),un=null,_n=en.target;"g"===(null===(yn=_n)||void 0===yn||null===(bn=yn.parentNode)||void 0===bn||null===(vn=bn.parentNode)||void 0===vn?void 0:vn.tagName);){var yn,bn,vn;_n=_n.parentNode}"path"===Ps.getCurrentMode()&&Ps.getDrawnPath()||!_n||"selectorParentGroup"===(null===(fn=_n.parentNode)||void 0===fn?void 0:fn.id)||"svgcanvas"===_n.id||"svgroot"===_n.id||(Ps.setMode("select"),Ps.selectOnly([_n],!0))}else if(un){Ps.addedNew=!0;let tn,nn=.2;const rn=Ps.getStyle(),an=Ps.getOpacAni();if(an.beginElement&&Number.parseFloat(un.getAttribute("opacity"))!==rn.opacity){tn=an.cloneNode(!0),tn.setAttribute("to",rn.opacity),tn.setAttribute("dur",nn),un.appendChild(tn);try{tn.beginElement()}catch(en){}}else nn=0;setTimeout((()=>{tn&&tn.remove(),un.setAttribute("opacity",rn.opacity),un.setAttribute("style","pointer-events:inherit"),cleanupElement(un),"path"===Ps.getCurrentMode()?Ps.pathActions.toEditMode(un):Ps.getCurConfig().selectNew&&(-1!==["circle","ellipse","square","rect","fhpath","line","fhellipse","fhrect","star","polygon"].indexOf(Ps.getCurrentMode())&&Ps.setMode("select"),Ps.selectOnly([un],!0)),Ps.addCommandToHistory(new Ls(un)),Ps.call("changed",[un])}),1e3*nn)}Ps.setStartTransform(null)},dblClickEvent=en=>{const tn=Ps.getSelectedElements(),nn=en.target.parentNode;let rn=Ps.getMouseTarget(en);const{tagName:an}=rn;if("text"===an&&"textedit"!==Ps.getCurrentMode()){const tn=transformPoint(en.clientX,en.clientY,Ps.getrootSctm());Ps.textActions.select(rn,tn.x,tn.y)}nn!==Ps.getCurrentGroup()&&("g"!==an&&"a"!==an||!getRotationAngle(rn)||(Ps.pushGroupProperties(rn),rn=tn[0],Ps.clearSelection(!0)),Ps.getCurrentGroup()&&leaveContext(),"g"!==nn.tagName&&"a"!==nn.tagName||nn===Ps.getCurrentDrawing().getCurrentLayer()||rn===Ps.selectorManager.selectorParentGroup||setContext(rn))},mouseDownEvent=en=>{const tn=Ps.getDataStorage(),nn=Ps.getSelectedElements(),rn=Ps.getZoom(),an=Ps.getStyle(),sn=Ps.getSvgRoot(),{$id:cn}=Ps;if(Ps.spaceKey||1===en.button)return;const An=2===en.button;en.altKey&&Ps.cloneSelectedElements(0,0),Ps.setRootSctm(cn("svgcontent").querySelector("g").getScreenCTM().inverse());const dn=transformPoint(en.clientX,en.clientY,Ps.getrootSctm()),un=dn.x*rn,pn=dn.y*rn;if(en.preventDefault(),An){if("path"===Ps.getCurrentMode())return;Ps.setCurrentMode("select"),Ps.setLastClickPoint(dn)}let hn=un/rn,gn=pn/rn,_n=Ps.getMouseTarget(en);"a"===_n.tagName&&1===_n.childNodes.length&&(_n=_n.firstChild);const mn=hn;Ps.setStartX(hn),Ps.setRStartX(hn);const fn=gn;if(Ps.setStartY(gn),Ps.setRStartY(gn),Ps.getCurConfig().gridSnapping&&(hn=snapToGrid(hn),gn=snapToGrid(gn),Ps.setStartX(snapToGrid(Ps.getStartX())),Ps.setStartY(snapToGrid(Ps.getStartY()))),_n===Ps.selectorManager.selectorParentGroup&&nn[0]){const rn=en.target,an=tn.get(rn,"type");"rotate"===an?Ps.setCurrentMode("rotate"):"resize"===an&&(Ps.setCurrentMode("resize"),Ps.setCurrentResizeMode(tn.get(rn,"dir"))),_n=nn[0]}Ps.setStartTransform(_n.getAttribute("transform"));const yn=_n.transform.baseVal;if(yn.numberOfItems>1){const en=yn.getItem(0);yn.removeItem(0),yn.consolidate(),yn.insertItemBefore(en,0)}switch(Ps.getCurrentMode()){case"select":if(Ps.setStarted(!0),Ps.setCurrentResizeMode("none"),An&&Ps.setStarted(!1),_n!==sn){if(nn.includes(_n)||(en.shiftKey||Ps.clearSelection(!0),Ps.addToSelection([_n]),Ps.setJustSelected(_n),Ps.pathActions.clear()),!An)for(const en of nn){var bn;if(!en)continue;const tn=null===(bn=en.transform)||void 0===bn?void 0:bn.baseVal;tn.numberOfItems?tn.insertItemBefore(sn.createSVGTransform(),0):tn.appendItem(sn.createSVGTransform())}}else An||(Ps.clearSelection(),Ps.setCurrentMode("multiselect"),Ps.getRubberBox()||Ps.setRubberBox(Ps.selectorManager.getRubberBandBox()),Ps.setRStartX(Ps.getRStartX()*rn),Ps.setRStartY(Ps.getRStartY()*rn),assignAttributes(Ps.getRubberBox(),{x:Ps.getRStartX(),y:Ps.getRStartY(),width:0,height:0,display:"inline"}));break;case"zoom":Ps.setStarted(!0),Ps.getRubberBox()||Ps.setRubberBox(Ps.selectorManager.getRubberBandBox()),assignAttributes(Ps.getRubberBox(),{x:mn*rn,y:mn*rn,width:0,height:0,display:"inline"});break;case"resize":{Ps.setStarted(!0),Ps.setStartX(hn),Ps.setStartY(gn),Ps.setInitBbox(getBBox(cn("selectedBox0")));const en={};for(const[tn,nn]of Object.entries(Ps.getInitBbox()))en[tn]=nn/rn;Ps.setInitBbox(en);const tn=getRotationAngle(_n)?1:0;hasMatrixTransform(yn)?(yn.insertItemBefore(sn.createSVGTransform(),tn),yn.insertItemBefore(sn.createSVGTransform(),tn),yn.insertItemBefore(sn.createSVGTransform(),tn)):(yn.appendItem(sn.createSVGTransform()),yn.appendItem(sn.createSVGTransform()),yn.appendItem(sn.createSVGTransform()));break}case"fhellipse":case"fhrect":case"fhpath":Ps.setStart({x:mn,y:fn}),Ps.setControllPoint1("x",0),Ps.setControllPoint1("y",0),Ps.setControllPoint2("x",0),Ps.setControllPoint2("y",0),Ps.setStarted(!0),Ps.setDAttr(mn+","+fn+" "),Ps.addSVGElementsFromJson({element:"polyline",curStyles:!0,attr:{points:Ps.getDAttr(),id:Ps.getNextId(),fill:"none",opacity:an.opacity/2,"stroke-linecap":"round",style:"pointer-events:none"}}),Ps.setFreehand("minx",mn),Ps.setFreehand("maxx",mn),Ps.setFreehand("miny",fn),Ps.setFreehand("maxy",fn);break;case"image":{Ps.setStarted(!0);const en=Ps.addSVGElementsFromJson({element:"image",attr:{x:hn,y:gn,width:0,height:0,id:Ps.getNextId(),opacity:an.opacity/2,style:"pointer-events:inherit"}});setHref(en,Ps.getLastGoodImgUrl()),preventClickDefault(en);break}case"square":case"rect":Ps.setStarted(!0),Ps.setStartX(hn),Ps.setStartY(gn),Ps.addSVGElementsFromJson({element:"rect",curStyles:!0,attr:{x:hn,y:gn,width:0,height:0,id:Ps.getNextId(),opacity:an.opacity/2}});break;case"line":{Ps.setStarted(!0);const en=0===Number(an.stroke_width)?1:an.stroke_width;Ps.addSVGElementsFromJson({element:"line",curStyles:!0,attr:{x1:hn,y1:gn,x2:hn,y2:gn,id:Ps.getNextId(),stroke:an.stroke,"stroke-width":en,"stroke-dasharray":an.stroke_dasharray,"stroke-linejoin":an.stroke_linejoin,"stroke-linecap":an.stroke_linecap,"stroke-opacity":an.stroke_opacity,fill:"none",opacity:an.opacity/2,style:"pointer-events:none"}});break}case"circle":Ps.setStarted(!0),Ps.addSVGElementsFromJson({element:"circle",curStyles:!0,attr:{cx:hn,cy:gn,r:0,id:Ps.getNextId(),opacity:an.opacity/2}});break;case"ellipse":Ps.setStarted(!0),Ps.addSVGElementsFromJson({element:"ellipse",curStyles:!0,attr:{cx:hn,cy:gn,rx:0,ry:0,id:Ps.getNextId(),opacity:an.opacity/2}});break;case"text":Ps.setStarted(!0),Ps.addSVGElementsFromJson({element:"text",curStyles:!0,attr:{x:hn,y:gn,id:Ps.getNextId(),fill:Ps.getCurText("fill"),"stroke-width":Ps.getCurText("stroke_width"),"font-size":Ps.getCurText("font_size"),"font-family":Ps.getCurText("font_family"),"text-anchor":"middle","xml:space":"preserve",opacity:an.opacity}});break;case"path":case"pathedit":Ps.setStartX(Ps.getStartX()*rn),Ps.setStartY(Ps.getStartY()*rn),Ps.pathActions.mouseDown(en,_n,Ps.getStartX(),Ps.getStartY()),Ps.setStarted(!0);break;case"textedit":Ps.setStartX(Ps.getStartX()*rn),Ps.setStartY(Ps.getStartY()*rn),Ps.textActions.mouseDown(en,_n,Ps.getStartX(),Ps.getStartY()),Ps.setStarted(!0);break;case"rotate":Ps.setStarted(!0),Ps.undoMgr.beginUndoableChange("transform",nn)}Ps.runExtensions("mouseDown",{event:en,start_x:Ps.getStartX(),start_y:Ps.getStartY(),selectedElements:nn},!0).forEach((en=>{(null==en?void 0:en.started)&&Ps.setStarted(!0)}))},DOMMouseScrollEvent=en=>{const tn=Ps.getZoom(),{$id:nn}=Ps;if(!en.shiftKey)return;en.preventDefault(),Ps.setRootSctm(nn("svgcontent").querySelector("g").getScreenCTM().inverse());const rn=document.getElementById("workarea"),an=Ps.getCurConfig().showRulers?16:0,sn=transformPoint(en.clientX,en.clientY,Ps.getrootSctm()),cn=parseFloat(getComputedStyle(rn,null).width.replace("px","")),An=parseFloat(getComputedStyle(rn,null).height.replace("px","")),dn=cn-15-an,un=An-15-an,pn=dn*Ps.getrootSctm().a,hn=un*Ps.getrootSctm().d,gn=function findPos(en){let tn=0,nn=0;if(en.offsetParent){do{tn+=en.offsetLeft,nn+=en.offsetTop}while(en=en.offsetParent);return{left:tn,top:nn}}return{left:tn,top:nn}}(rn),_n=gn.left+an,mn=gn.top+an,fn=en.wheelDelta?en.wheelDelta:en.detail?-en.detail:0;if(!fn)return;let yn,bn,vn=Math.max(3/4,Math.min(4/3,fn));vn>1?(yn=Math.ceil(dn/pn*vn*100)/100,bn=Math.ceil(un/hn*vn*100)/100):(yn=Math.floor(dn/pn*vn*100)/100,bn=Math.floor(un/hn*vn*100)/100);let wn=Math.min(yn,bn);if(wn=Math.min(10,Math.max(.01,wn)),wn===tn)return;vn=wn/tn;const xn=transformPoint(_n,mn,Ps.getrootSctm()),kn={x:(sn.x-(sn.x-xn.x)/vn)*wn-an+cn/2,y:(sn.y-(sn.y-xn.y)/vn)*wn-an+An/2};Ps.setZoom(wn),document.getElementById("zoom").value=(100*wn).toFixed(1),Ps.call("updateCanvas",{center:!1,newCtr:kn}),Ps.call("zoomDone")};
/**
* Tools for SVG handle on JSON format.
* @module svgcanvas
* @license MIT
*
* @copyright 2010 Alexis Deveria, 2010 Jeff Schiller
*/let Ts=null,Ns=null;const getJsonFromSvgElements=en=>{if(3===en.nodeType)return en.nodeValue;const tn={element:en.tagName,attr:{},children:[]};for(let nn,rn=0;nn=en.attributes[rn];rn++)tn.attr[nn.name]=nn.value;for(let nn,rn=0;nn=en.childNodes[rn];rn++)tn.children[rn]=getJsonFromSvgElements(nn);return tn},addSVGElementsFromJson=en=>{if("string"==typeof en)return Ns.createTextNode(en);let tn=getElement(en.attr.id);const nn=Ts.getDrawing().getCurrentLayer();if(tn&&en.element!==tn.tagName&&(tn.remove(),tn=null),!tn){const rn=en.namespace||xa.SVG;tn=Ns.createElementNS(rn,en.element),nn&&(Ts.getCurrentGroup()||nn).append(tn)}const rn=Ts.getCurShape();return en.curStyles&&assignAttributes(tn,{fill:rn.fill,stroke:rn.stroke,"stroke-width":rn.strokeWidth,"stroke-dasharray":rn.stroke_dasharray,"stroke-linejoin":rn.stroke_linejoin,"stroke-linecap":rn.stroke_linecap,"stroke-opacity":rn.stroke_opacity,"fill-opacity":rn.fill_opacity,opacity:rn.opacity/2,style:"pointer-events:inherit"}),assignAttributes(tn,en.attr),cleanupElement(tn),en.children&&en.children.forEach((en=>{tn.append(addSVGElementsFromJson(en))})),tn};
/**
* @module elem-get-set get and set methods.
* @license MIT
* @copyright 2011 Jeff Schiller
*/let Is=null;const getResolutionMethod=()=>{const en=Is.getZoom();return{w:Is.getSvgContent().getAttribute("width")/en,h:Is.getSvgContent().getAttribute("height")/en,zoom:en}},getTitleMethod=en=>{const tn=Is.getSelectedElements(),nn=Is.getDataStorage();if(!(en=en||tn[0]))return;nn.has(en,"gsvg")?en=nn.get(en,"gsvg"):nn.has(en,"symbol")&&(en=nn.get(en,"symbol"));const rn=en.childNodes;for(const en of rn)if("title"===en.nodeName)return en.textContent;return""},setGroupTitleMethod=en=>{const{InsertElementCommand:tn,RemoveElementCommand:nn,ChangeElementCommand:rn,BatchCommand:an}=Is.history,sn=Is.getSelectedElements(),cn=Is.getDataStorage();let An=sn[0];cn.has(An,"gsvg")&&(An=cn.get(An,"gsvg"));const dn=An.querySelectorAll("title"),un=new an("Set Label");let pn;if(0===en.length){const en=dn.nextSibling;un.addSubCommand(new nn(dn[0],en,An)),dn.remove()}else dn.length?(pn=dn[0],un.addSubCommand(new rn(pn,{"#text":pn.textContent})),pn.textContent=en):(pn=Is.getDOMDocument().createElementNS(xa.SVG,"title"),pn.textContent=en,An.insertBefore(pn,An.firstChild),un.addSubCommand(new tn(pn)));Is.addCommandToHistory(un)},setDocumentTitleMethod=en=>{const{ChangeElementCommand:tn,BatchCommand:nn}=Is.history,rn=Is.getSvgContent().childNodes;let an=!1,sn="";const cn=new nn("Change Image Title");for(const en of rn)if("title"===en.nodeName){an=en,sn=an.textContent;break}an||(an=Is.getDOMDocument().createElementNS(xa.SVG,"title"),Is.getSvgContent().insertBefore(an,Is.getSvgContent().firstChild)),en.length?an.textContent=en:an.remove(),cn.addSubCommand(new tn(an,{"#text":sn})),Is.addCommandToHistory(cn)},setResolutionMethod=(en,tn)=>{const{ChangeElementCommand:nn,BatchCommand:rn}=Is.history,an=Is.getZoom(),sn=Is.getResolution(),{w:cn,h:An}=sn;let dn;if("fit"===en){const nn=getStrokedBBoxDefaultVisible();if(!nn)return!1;{dn=new rn("Fit Canvas to Content");const an=getVisibleElements();Is.addToSelection(an);const sn=[],cn=[];an.forEach(((en,tn)=>{sn.push(-1*nn.x),cn.push(-1*nn.y)}));const An=Is.moveSelectedElements(sn,cn,!0);dn.addSubCommand(An),Is.clearSelection(),en=Math.round(nn.width),tn=Math.round(nn.height)}}return en===cn&&tn===An||(dn||(dn=new rn("Change Image Dimensions")),en=convertToNum("width",en),tn=convertToNum("height",tn),Is.getSvgContent().setAttribute("width",en),Is.getSvgContent().setAttribute("height",tn),Is.contentW=en,Is.contentH=tn,dn.addSubCommand(new nn(Is.getSvgContent(),{width:cn,height:An})),Is.getSvgContent().setAttribute("viewBox",[0,0,en/an,tn/an].join(" ")),dn.addSubCommand(new nn(Is.getSvgContent(),{viewBox:["0 0",cn,An].join(" ")})),Is.addCommandToHistory(dn),Is.call("changed",[Is.getSvgContent()])),!0},getEditorNSMethod=en=>(en&&Is.getSvgContent().setAttribute("xmlns:se",xa.SE),xa.SE),setBBoxZoomMethod=(en,tn,nn)=>{const rn=Is.getZoom(),an=Is.getSelectedElements();let sn,cn=.85;const calcZoom=en=>{if(!en)return!1;const rn=Math.round(tn/en.width*100*cn)/100,an=Math.round(nn/en.height*100*cn)/100,sn=Math.min(rn,an);return Is.setZoom(sn),{zoom:sn,bbox:en}};if("object"==typeof en){if(sn=en,0===sn.width||0===sn.height){const en=sn.zoom?sn.zoom:rn*sn.factor;return Is.setZoom(en),{zoom:rn,bbox:sn}}return calcZoom(sn)}switch(en){case"selection":{if(!an[0])return;const en=an.map(((en,tn)=>{if(en)return en}));sn=getStrokedBBoxDefaultVisible(en);break}case"canvas":{const en=Is.getResolution();cn=.95,sn={width:en.w,height:en.h,x:0,y:0};break}case"content":sn=getStrokedBBoxDefaultVisible();break;case"layer":sn=getStrokedBBoxDefaultVisible(getVisibleElements(Is.getCurrentDrawing().getCurrentLayer()));break;default:return}return calcZoom(sn)},setZoomMethod=en=>{const tn=Is.getSelectedElements(),nn=Is.getResolution();Is.getSvgContent().setAttribute("viewBox","0 0 "+nn.w/en+" "+nn.h/en),Is.setZoom(en),tn.forEach((en=>{en&&Is.selectorManager.requestSelector(en).resize()})),Is.pathActions.zoomChange(),Is.runExtensions("zoomChanged",en)},setColorMethod=(en,tn,nn)=>{const rn=Is.getSelectedElements();Is.setCurShape(en,tn),Is.setCurProperties(en+"_paint",{type:"solidColor"});const an=[],addNonG=en=>{"g"!==en.nodeName&&an.push(en)};let sn=rn.length;for(;sn--;){const tn=rn[sn];tn&&("g"===tn.tagName?walkTree(tn,addNonG):"fill"===en?"polyline"!==tn.tagName&&"line"!==tn.tagName&&an.push(tn):an.push(tn))}an.length>0&&(nn?Is.changeSelectedAttributeNoUndo(en,tn,an):(Is.changeSelectedAttribute(en,tn,an),Is.call("changed",an)))},setGradientMethod=en=>{if(!Is.getCurProperties(en+"_paint")||"solidColor"===Is.getCurProperties(en+"_paint").type)return;let tn=Is[en+"Grad"];const nn=findDuplicateGradient(tn),rn=findDefs();nn?tn=nn:(tn=Is.getDOMDocument().importNode(tn,!0),rn.append(tn),tn.id=Is.getNextId()),Is.setColor(en,"url(#"+tn.id+")")},findDuplicateGradient=en=>{const tn=findDefs().querySelectorAll("linearGradient, radialGradient");let nn=tn.length;const rn=["r","cx","cy","fx","fy"];for(;nn--;){const an=tn[nn];if("linearGradient"===en.tagName){if(en.getAttribute("x1")!==an.getAttribute("x1")||en.getAttribute("y1")!==an.getAttribute("y1")||en.getAttribute("x2")!==an.getAttribute("x2")||en.getAttribute("y2")!==an.getAttribute("y2"))continue}else{const tn={r:Number(en.getAttribute("r")),cx:Number(en.getAttribute("cx")),cy:Number(en.getAttribute("cy")),fx:Number(en.getAttribute("fx")),fy:Number(en.getAttribute("fy"))},nn={r:Number(an.getAttribute("r")),cx:Number(an.getAttribute("cx")),cy:Number(an.getAttribute("cy")),fx:Number(an.getAttribute("fx")),fy:Number(an.getAttribute("fy"))};let sn=!1;if(rn.forEach((en=>{tn[en]!==nn[en]&&(sn=!0)})),sn)continue}const sn=en.getElementsByTagNameNS(xa.SVG,"stop"),cn=an.getElementsByTagNameNS(xa.SVG,"stop");if(sn.length!==cn.length)continue;let An=sn.length;for(;An--;){const en=sn[An],tn=cn[An];if(en.getAttribute("offset")!==tn.getAttribute("offset")||en.getAttribute("stop-opacity")!==tn.getAttribute("stop-opacity")||en.getAttribute("stop-color")!==tn.getAttribute("stop-color"))break}if(-1===An)return an}return null},setPaintMethod=(en,tn)=>{const nn=new Paint(tn);switch(Is.setPaintOpacity(en,nn.alpha/100,!0),Is.setCurProperties(en+"_paint",nn),nn.type){case"solidColor":Is.setColor(en,"none"!==nn.solidColor?"#"+nn.solidColor:"none");break;case"linearGradient":case"radialGradient":Is.setCanvas(en+"Grad",nn[nn.type]),Is.setGradient(en)}},setStrokeWidthMethod=en=>{const tn=Is.getSelectedElements();if(0===en&&["line","path"].includes(Is.getMode()))return void Is.setStrokeWidth(1);Is.setCurProperties("stroke_width",en);const nn=[],addNonG=en=>{"g"!==en.nodeName&&nn.push(en)};let rn=tn.length;for(;rn--;){const en=tn[rn];en&&("g"===en.tagName?walkTree(en,addNonG):nn.push(en))}nn.length>0&&(Is.changeSelectedAttribute("stroke-width",en,nn),Is.call("changed",tn))},setStrokeAttrMethod=(en,tn)=>{const nn=Is.getSelectedElements();Is.setCurShape(en.replace("-","_"),tn);const rn=[];let an=nn.length;for(;an--;){const en=nn[an];en&&("g"===en.tagName?walkTree(en,(en=>{"g"!==en.nodeName&&rn.push(en)})):rn.push(en))}rn.length>0&&(Is.changeSelectedAttribute(en,tn,rn),Is.call("changed",nn))},getBoldMethod=()=>{const en=Is.getSelectedElements(),tn=en[0];return"text"===(null==tn?void 0:tn.tagName)&&!en[1]&&"bold"===tn.getAttribute("font-weight")},setBoldMethod=en=>{var tn;const nn=Is.getSelectedElements();"text"!==(null===(tn=nn[0])||void 0===tn?void 0:tn.tagName)||nn[1]||Is.changeSelectedAttribute("font-weight",en?"bold":"normal"),nn[0].textContent||Is.textActions.setCursor()},hasTextDecorationMethod=en=>{const tn=Is.getSelectedElements(),nn=tn[0];return"text"===(null==nn?void 0:nn.tagName)&&!tn[1]&&(nn.getAttribute("text-decoration")||"").includes(en)},addTextDecorationMethod=en=>{const tn=Is.getSelectedElements(),nn=tn[0];if("text"===(null==nn?void 0:nn.tagName)&&!tn[1]){const tn=nn.getAttribute("text-decoration")||"";Is.changeSelectedAttribute("text-decoration",(tn+" "+en).trim())}tn.length>0&&!tn[0].textContent&&Is.textActions.setCursor()},removeTextDecorationMethod=en=>{const tn=Is.getSelectedElements(),nn=tn[0];if("text"===(null==nn?void 0:nn.tagName)&&!tn[1]){const tn=nn.getAttribute("text-decoration")||"";Is.changeSelectedAttribute("text-decoration",tn.replace(en,"").trim())}tn.length>0&&!tn[0].textContent&&Is.textActions.setCursor()},getItalicMethod=()=>{const en=Is.getSelectedElements(),tn=en[0];return"text"===(null==tn?void 0:tn.tagName)&&!en[1]&&"italic"===tn.getAttribute("font-style")},setItalicMethod=en=>{var tn;const nn=Is.getSelectedElements();"text"!==(null===(tn=nn[0])||void 0===tn?void 0:tn.tagName)||nn[1]||Is.changeSelectedAttribute("font-style",en?"italic":"normal"),nn[0].textContent||Is.textActions.setCursor()},setTextAnchorMethod=en=>{var tn;const nn=Is.getSelectedElements();"text"!==(null===(tn=nn[0])||void 0===tn?void 0:tn.tagName)||nn[1]||Is.changeSelectedAttribute("text-anchor",en),nn.length>0&&!nn[0].textContent&&Is.textActions.setCursor()},setLetterSpacingMethod=en=>{var tn;const nn=Is.getSelectedElements();"text"!==(null===(tn=nn[0])||void 0===tn?void 0:tn.tagName)||nn[1]||Is.changeSelectedAttribute("letter-spacing",en),nn.length>0&&!nn[0].textContent&&Is.textActions.setCursor()},setWordSpacingMethod=en=>{var tn;const nn=Is.getSelectedElements();"text"!==(null===(tn=nn[0])||void 0===tn?void 0:tn.tagName)||nn[1]||Is.changeSelectedAttribute("word-spacing",en),nn.length>0&&!nn[0].textContent&&Is.textActions.setCursor()},setTextLengthMethod=en=>{var tn;const nn=Is.getSelectedElements();"text"!==(null===(tn=nn[0])||void 0===tn?void 0:tn.tagName)||nn[1]||Is.changeSelectedAttribute("textLength",en),nn.length>0&&!nn[0].textContent&&Is.textActions.setCursor()},setLengthAdjustMethod=en=>{var tn;const nn=Is.getSelectedElements();"text"!==(null===(tn=nn[0])||void 0===tn?void 0:tn.tagName)||nn[1]||Is.changeSelectedAttribute("lengthAdjust",en),nn.length>0&&!nn[0].textContent&&Is.textActions.setCursor()},getFontFamilyMethod=()=>Is.getCurText("font_family"),setFontFamilyMethod=en=>{var tn;const nn=Is.getSelectedElements();Is.setCurText("font_family",en),Is.changeSelectedAttribute("font-family",en),(null===(tn=nn[0])||void 0===tn?void 0:tn.textContent)||Is.textActions.setCursor()},setFontColorMethod=en=>{Is.setCurText("fill",en),Is.changeSelectedAttribute("fill",en)},getFontColorMethod=()=>Is.getCurText("fill"),getFontSizeMethod=()=>Is.getCurText("font_size"),setFontSizeMethod=en=>{var tn;const nn=Is.getSelectedElements();Is.setCurText("font_size",en),Is.changeSelectedAttribute("font-size",en),(null===(tn=nn[0])||void 0===tn?void 0:tn.textContent)||Is.textActions.setCursor()},getTextMethod=()=>{const en=Is.getSelectedElements()[0];return en?en.textContent:""},setTextContentMethod=en=>{Is.changeSelectedAttribute("#text",en),Is.textActions.init(en),Is.textActions.setCursor()},setImageURLMethod=en=>{const{ChangeElementCommand:tn,BatchCommand:nn}=Is.history,rn=Is.getSelectedElements()[0];if(!rn)return;const an=rn.getAttribute("width"),sn=rn.getAttribute("height"),cn=!an||!sn,An=getHref(rn);if(An===en&&!cn)return;const dn=new nn("Change Image URL");setHref(rn,en),dn.addSubCommand(new tn(rn,{"#href":An}));const un=new Image;un.onload=function(){const en={width:rn.getAttribute("width"),height:rn.getAttribute("height")};rn.setAttribute("width",this.width),rn.setAttribute("height",this.height),Is.selectorManager.requestSelector(rn).resize(),dn.addSubCommand(new tn(rn,en)),Is.addCommandToHistory(dn),Is.call("changed",[rn])},un.src=en},setLinkURLMethod=en=>{const{ChangeElementCommand:tn,BatchCommand:nn}=Is.history;let rn=Is.getSelectedElements()[0];if(!rn)return;if("a"!==rn.tagName){const en=getParents(rn.parentNode,"a");if(null==en||!en.length)return;rn=en[0]}const an=getHref(rn);if(an===en)return;const sn=new nn("Change Link URL");setHref(rn,en),sn.addSubCommand(new tn(rn,{"#href":an})),Is.addCommandToHistory(sn)},setRectRadiusMethod=en=>{const{ChangeElementCommand:tn}=Is.history,nn=Is.getSelectedElements()[0];if("rect"===(null==nn?void 0:nn.tagName)){const rn=Number(nn.getAttribute("rx"));rn!==en&&(nn.setAttribute("rx",en),nn.setAttribute("ry",en),Is.addCommandToHistory(new tn(nn,{rx:rn,ry:rn},"Radius")),Is.call("changed",[nn]))}},makeHyperlinkMethod=en=>{Is.groupSelectedElements("a",en)},removeHyperlinkMethod=()=>{Is.ungroupSelectedElement()},setSegTypeMethod=en=>{Is.pathActions.setSegType(en)},setBackgroundMethod=(en,tn)=>{const nn=getElement("canvasBackground"),rn=nn.querySelector("rect");let an=getElement("background_image"),sn=getElement("background_pattern");if(rn.setAttribute("fill","chessboard"===en?"#fff":en),"chessboard"===en){if(!sn){sn=Is.getDOMDocument().createElementNS(xa.SVG,"foreignObject"),Is.assignAttributes(sn,{id:"background_pattern",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"});const en=document.createElement("div");Is.assignAttributes(en,{style:"pointer-events:none;width:100%;height:100%;background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"}),sn.append(en),nn.append(sn)}}else sn&&sn.remove();tn?(an||(an=Is.getDOMDocument().createElementNS(xa.SVG,"image"),Is.assignAttributes(an,{id:"background_image",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"})),setHref(an,tn),nn.append(an)):an&&an.remove()},Ms=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"];let Rs=null;const remapElement=(en,tn,nn)=>{const remap=(en,tn)=>transformPoint(en,tn,nn),scalew=en=>nn.a*en,scaleh=en=>nn.d*en,rn=Rs.getGridSnapping()&&"svg"===en.parentNode.parentNode.localName,finishUp=()=>{rn&&Object.entries(tn).forEach((en=>{let[nn,rn]=en;tn[nn]=snapToGrid(rn)})),assignAttributes(en,tn,0,!0)},an=getBBox(en);["fill","stroke"].forEach((tn=>{const rn=en.getAttribute(tn);if(null!=rn&&rn.startsWith("url(")&&(nn.a<0||nn.d<0)){const an=getRefElem(rn).cloneNode(!0);if(nn.a<0){const en=an.getAttribute("x1"),tn=an.getAttribute("x2");an.setAttribute("x1",-(en-1)),an.setAttribute("x2",-(tn-1))}if(nn.d<0){const en=an.getAttribute("y1"),tn=an.getAttribute("y2");an.setAttribute("y1",-(en-1)),an.setAttribute("y2",-(tn-1))}an.id=Rs.getCurrentDrawing().getNextId(),findDefs().append(an),en.setAttribute(tn,"url(#"+an.id+")")}}));const sn=en.tagName;if("g"===sn||"text"===sn||"tspan"===sn||"use"===sn)if(1!==nn.a||0!==nn.b||0!==nn.c||1!==nn.d||0===nn.e&&0===nn.f){const tn=en.transform.baseVal,rn=Rs.getSvgRoot().createSVGTransform();rn.setMatrix(matrixMultiply(transformListToTransform(tn).matrix,nn)),tn.clear(),tn.appendItem(rn)}else{const rn=transformListToTransform(en).matrix,an=matrixMultiply(rn.inverse(),nn,rn);tn.x=Number.parseFloat(tn.x)+an.e,tn.y=Number.parseFloat(tn.y)+an.f}switch(sn){case"foreignObject":case"rect":case"image":if("image"===sn&&(nn.a<0||nn.d<0)){const tn=en.transform.baseVal,rn=Rs.getSvgRoot().createSVGTransform();rn.setMatrix(matrixMultiply(transformListToTransform(tn).matrix,nn)),tn.clear(),tn.appendItem(rn)}else{const en=remap(tn.x,tn.y);tn.width=scalew(tn.width),tn.height=scaleh(tn.height),tn.x=en.x+Math.min(0,tn.width),tn.y=en.y+Math.min(0,tn.height),tn.width=Math.abs(tn.width),tn.height=Math.abs(tn.height)}finishUp();break;case"ellipse":{const en=remap(tn.cx,tn.cy);tn.cx=en.x,tn.cy=en.y,tn.rx=scalew(tn.rx),tn.ry=scaleh(tn.ry),tn.rx=Math.abs(tn.rx),tn.ry=Math.abs(tn.ry),finishUp();break}case"circle":{const en=remap(tn.cx,tn.cy);tn.cx=en.x,tn.cy=en.y;const rn=transformBox(an.x,an.y,an.width,an.height,nn),sn=rn.tr.x-rn.tl.x,cn=rn.bl.y-rn.tl.y;tn.r=Math.min(sn/2,cn/2),tn.r&&(tn.r=Math.abs(tn.r)),finishUp();break}case"line":{const en=remap(tn.x1,tn.y1),nn=remap(tn.x2,tn.y2);tn.x1=en.x,tn.y1=en.y,tn.x2=nn.x,tn.y2=nn.y}case"text":case"tspan":case"use":finishUp();break;case"g":{const nn=Rs.getDataStorage().get(en,"gsvg");nn&&assignAttributes(nn,tn,0,!0);break}case"polyline":case"polygon":{tn.points.forEach((en=>{const{x:tn,y:nn}=remap(en.x,en.y);en.x=tn,en.y=nn}));let nn="";tn.points.forEach((en=>{nn+=en.x+","+en.y+" "})),en.setAttribute("points",nn);break}case"path":{const nn=en.pathSegList;let rn=nn.numberOfItems;tn.d=[];for(let en=0;en<rn;++en){const rn=nn.getItem(en);tn.d[en]={type:rn.pathSegType,x:rn.x,y:rn.y,x1:rn.x1,y1:rn.y1,x2:rn.x2,y2:rn.y2,r1:rn.r1,r2:rn.r2,angle:rn.angle,largeArcFlag:rn.largeArcFlag,sweepFlag:rn.sweepFlag}}rn=tn.d.length;const an=tn.d[0];let sn;rn>0&&(sn=remap(an.x,an.y),tn.d[0].x=sn.x,tn.d[0].y=sn.y);for(let en=1;en<rn;++en){const nn=tn.d[en],{type:rn}=nn;if(rn%2==0){const en=void 0!==nn.x?nn.x:sn.x,tn=void 0!==nn.y?nn.y:sn.y,rn=remap(en,tn),an=remap(nn.x1,nn.y1),cn=remap(nn.x2,nn.y2);nn.x=rn.x,nn.y=rn.y,nn.x1=an.x,nn.y1=an.y,nn.x2=cn.x,nn.y2=cn.y,nn.r1=scalew(nn.r1),nn.r2=scaleh(nn.r2)}else nn.x=scalew(nn.x),nn.y=scaleh(nn.y),nn.x1=scalew(nn.x1),nn.y1=scaleh(nn.y1),nn.x2=scalew(nn.x2),nn.y2=scaleh(nn.y2),nn.r1=scalew(nn.r1),nn.r2=scaleh(nn.r2)}let cn="";tn.d.forEach((en=>{const{type:tn}=en;switch(cn+=Ms[tn],tn){case 13:case 12:cn+=en.x+" ";break;case 15:case 14:cn+=en.y+" ";break;case 3:case 5:case 19:case 2:case 4:case 18:cn+=en.x+","+en.y+" ";break;case 7:case 6:cn+=en.x1+","+en.y1+" "+en.x2+","+en.y2+" "+en.x+","+en.y+" ";break;case 9:case 8:cn+=en.x1+","+en.y1+" "+en.x+","+en.y+" ";break;case 11:case 10:cn+=en.r1+","+en.r2+" "+en.angle+" "+Number(en.largeArcFlag)+" "+Number(en.sweepFlag)+" "+en.x+","+en.y+" ";break;case 17:case 16:cn+=en.x2+","+en.y2+" "+en.x+","+en.y+" "}})),en.setAttribute("d",cn);break}}};
/**
* Recalculate.
* @module recalculate
* @license MIT
*/let Os;const updateClipPath=(en,tn,nn)=>{const rn=getRefElem(en).firstChild,an=rn.transform.baseVal,sn=Os.getSvgRoot().createSVGTransform();sn.setTranslate(tn,nn),an.appendItem(sn),recalculateDimensions(rn)},recalculateDimensions=en=>{var tn;if(!en)return null;const nn=Os.getSvgRoot(),rn=Os.getDataStorage(),an=null===(tn=en.transform)||void 0===tn?void 0:tn.baseVal;if((null==an?void 0:an.numberOfItems)>0){let tn=an.numberOfItems;const nn=tn;for(;tn--;){const rn=an.getItem(tn);if(0===rn.type)an.removeItem(tn);else if(1===rn.type){if(isIdentity(rn.matrix)){if(1===nn)return en.removeAttribute("transform"),null;an.removeItem(tn)}}else 4===rn.type&&0===rn.angle&&an.removeItem(tn)}if(1===an.numberOfItems&&getRotationAngle(en))return null}if(!an||0===an.numberOfItems)return en.setAttribute("transform",""),en.removeAttribute("transform"),null;if(an){let en=[],tn=an.numberOfItems;for(;tn--;){const nn=an.getItem(tn);1===nn.type?en.push([nn.matrix,tn]):en.length&&(en=[])}if(2===en.length){const tn=nn.createSVGTransformFromMatrix(matrixMultiply(en[1][0],en[0][0]));an.removeItem(en[0][1]),an.removeItem(en[1][1]),an.insertItemBefore(tn,en[1][1])}if(tn=an.numberOfItems,tn>=2&&1===an.getItem(tn-2).type&&2===an.getItem(tn-1).type){const en=nn.createSVGTransform(),rn=matrixMultiply(an.getItem(tn-2).matrix,an.getItem(tn-1).matrix);en.setMatrix(rn),an.removeItem(tn-2),an.removeItem(tn-2),an.appendItem(en)}}switch(en.tagName){case"line":case"polyline":case"polygon":case"path":break;default:if(1===an.numberOfItems&&1===an.getItem(0).type||2===an.numberOfItems&&1===an.getItem(0).type&&4===an.getItem(0).type)return null}const sn=rn.has(en,"gsvg")?rn.get(en,"gsvg"):void 0,cn=new BatchCommand$4("Transform");let An,dn,un={},pn=null,hn=[];switch(en.tagName){case"line":hn=["x1","y1","x2","y2"];break;case"circle":hn=["cx","cy","r"];break;case"ellipse":hn=["cx","cy","rx","ry"];break;case"foreignObject":case"rect":case"image":hn=["width","height","x","y"];break;case"use":case"text":case"tspan":hn=["x","y"];break;case"polygon":case"polyline":{pn={},pn.points=en.getAttribute("points");const tn=en.points,nn=tn.numberOfItems;un.points=new Array(nn);for(let en=0;en<nn;++en){const nn=tn.getItem(en);un.points[en]={x:nn.x,y:nn.y}}break}case"path":pn={},pn.d=en.getAttribute("d"),un.d=en.getAttribute("d")}if(hn.length?hn.forEach((tn=>{un[tn]=convertToNum(tn,en.getAttribute(tn))})):sn&&(un={x:Number(sn.getAttribute("x"))||0,y:Number(sn.getAttribute("y"))||0}),!pn){pn=mergeDeep$1({},un);for(const[en,tn]of Object.entries(pn))pn[en]=convertToNum(en,tn)}if(pn.transform=Os.getStartTransform()||"","g"===en.tagName&&!sn||"a"===en.tagName){const tn=getBBox(en);An={x:tn.x+tn.width/2,y:tn.y+tn.height/2},dn=transformPoint(tn.x+tn.width/2,tn.y+tn.height/2,transformListToTransform(an).matrix);const rn=getRotationAngle(en);if(rn){const en=rn*Math.PI/180,tn=Math.abs(en)>1e-10?Math.sin(en)/(1-Math.cos(en)):2/en;for(let en=0;en<an.numberOfItems;++en){const nn=an.getItem(en);if(4===nn.type){const rn=nn.matrix;An.y=(tn*rn.e+rn.f)/2,An.x=(rn.e-tn*rn.f)/2,an.removeItem(en);break}}}const sn=an.numberOfItems;let un,pn,hn=0,fn=0,yn=0;if(sn&&(un=an.getItem(0).matrix),sn>=3&&3===an.getItem(sn-2).type&&2===an.getItem(sn-3).type&&2===an.getItem(sn-1).type){yn=3;const tn=an.getItem(sn-3).matrix,rn=an.getItem(sn-2).matrix,An=an.getItem(sn-1).matrix,dn=en.childNodes;let un=dn.length;for(;un--;){const en=dn.item(un);if(hn=0,fn=0,1===en.nodeType){const an=en.transform.baseVal;if(!an)continue;const sn=transformListToTransform(an).matrix,dn=getRotationAngle(en);if(pn=Os.getStartTransform(),Os.setStartTransform(en.getAttribute("transform")),dn||hasMatrixTransform(an)){const en=nn.createSVGTransform();en.setMatrix(matrixMultiply(tn,rn,An,sn)),an.clear(),an.appendItem(en)}else{const en=matrixMultiply(sn.inverse(),An,sn),cn=nn.createSVGMatrix();cn.e=-en.e,cn.f=-en.f;const dn=matrixMultiply(cn.inverse(),sn.inverse(),tn,rn,An,sn,en.inverse()),un=nn.createSVGTransform(),pn=nn.createSVGTransform(),hn=nn.createSVGTransform();un.setTranslate(en.e,en.f),pn.setScale(dn.a,dn.d),hn.setTranslate(cn.e,cn.f),an.appendItem(hn),an.appendItem(pn),an.appendItem(un)}cn.addSubCommand(recalculateDimensions(en)),Os.setStartTransform(pn)}}an.removeItem(sn-1),an.removeItem(sn-2),an.removeItem(sn-3)}else if(sn>=3&&1===an.getItem(sn-1).type){yn=3;const en=transformListToTransform(an).matrix,tn=nn.createSVGTransform();tn.setMatrix(en),an.clear(),an.appendItem(tn)}else if((1===sn||sn>1&&3!==an.getItem(1).type)&&2===an.getItem(0).type){yn=2;const tn=transformListToTransform(an).matrix;an.removeItem(0);const rn=transformListToTransform(an).matrix.inverse(),sn=matrixMultiply(rn,tn);if(hn=sn.e,fn=sn.f,0!==hn||0!==fn){const tn=en.childNodes;let rn=tn.length;const an=[];for(;rn--;){const sn=tn.item(rn);if(1===sn.nodeType){var gn;if(sn.getAttribute("clip-path")){const en=sn.getAttribute("clip-path");an.includes(en)||(updateClipPath(en,hn,fn),an.push(en))}pn=Os.getStartTransform(),Os.setStartTransform(sn.getAttribute("transform"));const tn=null===(gn=sn.transform)||void 0===gn?void 0:gn.baseVal;if(tn){const rn=nn.createSVGTransform();rn.setTranslate(hn,fn),tn.numberOfItems?tn.insertItemBefore(rn,0):tn.appendItem(rn),cn.addSubCommand(recalculateDimensions(sn));const an=en.getElementsByTagNameNS(xa.SVG,"use"),An="#"+sn.id;let dn=an.length;for(;dn--;){const en=an.item(dn);if(An===getHref(en)){const tn=nn.createSVGTransform();tn.setTranslate(-hn,-fn),en.transform.baseVal.insertItemBefore(tn,0),cn.addSubCommand(recalculateDimensions(en))}}Os.setStartTransform(pn)}}}Os.setStartTransform(pn)}}else{if(1!==sn||1!==an.getItem(0).type||rn){if(rn){const en=nn.createSVGTransform();en.setRotate(rn,dn.x,dn.y),an.numberOfItems?an.insertItemBefore(en,0):an.appendItem(en)}return 0===an.numberOfItems&&en.removeAttribute("transform"),null}{yn=1;const tn=an.getItem(0).matrix,rn=en.childNodes;let sn=rn.length;for(;sn--;){const en=rn.item(sn);if(1===en.nodeType){var _n;pn=Os.getStartTransform(),Os.setStartTransform(en.getAttribute("transform"));const rn=null===(_n=en.transform)||void 0===_n?void 0:_n.baseVal;if(!rn)continue;const an=matrixMultiply(tn,transformListToTransform(rn).matrix),sn=nn.createSVGTransform();sn.setMatrix(an),rn.clear(),rn.appendItem(sn,0),cn.addSubCommand(recalculateDimensions(en)),Os.setStartTransform(pn);const An=en.getAttribute("stroke-width");if("none"!==en.getAttribute("stroke")&&!isNaN(An)){const tn=(Math.abs(an.a)+Math.abs(an.d))/2;en.setAttribute("stroke-width",An*tn)}}}an.clear()}}if(2===yn){if(rn){dn={x:An.x+un.e,y:An.y+un.f};const en=nn.createSVGTransform();en.setRotate(rn,dn.x,dn.y),an.numberOfItems?an.insertItemBefore(en,0):an.appendItem(en)}}else if(3===yn){const tn=transformListToTransform(an).matrix,sn=nn.createSVGTransform();sn.setRotate(rn,An.x,An.y);const un=sn.matrix,gn=nn.createSVGTransform();gn.setRotate(rn,dn.x,dn.y);const _n=gn.matrix.inverse(),yn=tn.inverse(),bn=matrixMultiply(yn,_n,un,tn);if(hn=bn.e,fn=bn.f,0!==hn||0!==fn){const tn=en.childNodes;let rn=tn.length;for(;rn--;){const en=tn.item(rn);if(1===en.nodeType){var mn;pn=Os.getStartTransform(),Os.setStartTransform(en.getAttribute("transform"));const tn=null===(mn=en.transform)||void 0===mn?void 0:mn.baseVal,rn=nn.createSVGTransform();rn.setTranslate(hn,fn),tn.numberOfItems?tn.insertItemBefore(rn,0):tn.appendItem(rn),cn.addSubCommand(recalculateDimensions(en)),Os.setStartTransform(pn)}}}rn&&(an.numberOfItems?an.insertItemBefore(gn,0):an.appendItem(gn))}}else{const tn=getBBox(en);if(!tn&&"path"!==en.tagName)return null;let rn;const sn=getRotationAngle(en);if(sn){An={x:tn.x+tn.width/2,y:tn.y+tn.height/2},dn=transformPoint(tn.x+tn.width/2,tn.y+tn.height/2,transformListToTransform(an).matrix);const en=sn*Math.PI/180,nn=Math.abs(en)>1e-10?Math.sin(en)/(1-Math.cos(en)):2/en;for(let en=0;en<an.numberOfItems;++en){const tn=an.getItem(en);if(4===tn.type){const rn=tn.matrix;An.y=(nn*rn.e+rn.f)/2,An.x=(rn.e-nn*rn.f)/2,an.removeItem(en);break}}}let cn=0;const pn=an.numberOfItems,hn=en.getAttribute("fill");if(null!=hn&&hn.startsWith("url(")){const en=getRefElem(hn);if(en){let tn="pattern";if((null==en?void 0:en.tagName)!==tn&&(tn="gradient"),"userSpaceOnUse"===en.getAttribute(tn+"Units")){rn=transformListToTransform(an).matrix;const nn=en.transform.baseVal,sn=transformListToTransform(nn).matrix;rn=matrixMultiply(rn,sn);const cn="matrix("+[rn.a,rn.b,rn.c,rn.d,rn.e,rn.f].join(",")+")";en.setAttribute(tn+"Transform",cn)}}}if(pn>=3&&3===an.getItem(pn-2).type&&2===an.getItem(pn-3).type&&2===an.getItem(pn-1).type)cn=3,rn=transformListToTransform(an,pn-3,pn-1).matrix,an.removeItem(pn-1),an.removeItem(pn-2),an.removeItem(pn-3);else if(4===pn&&1===an.getItem(pn-1).type){cn=3,rn=transformListToTransform(an).matrix;const en=nn.createSVGTransform();en.setMatrix(rn),an.clear(),an.appendItem(en),rn=nn.createSVGMatrix()}else if((1===pn||pn>1&&3!==an.getItem(1).type)&&2===an.getItem(0).type){cn=2;const en=an.getItem(0).matrix,tn=transformListToTransform(an,1).matrix,nn=tn.inverse();rn=matrixMultiply(nn,en,tn),an.removeItem(0)}else{if(1!==pn||1!==an.getItem(0).type||sn){if(sn){const en=nn.createSVGTransform();en.setRotate(sn,dn.x,dn.y),an.numberOfItems?an.insertItemBefore(en,0):an.appendItem(en)}return 0===an.numberOfItems&&en.removeAttribute("transform"),null}switch(rn=transformListToTransform(an).matrix,en.tagName){case"line":un={x1:en.getAttribute("x1"),y1:en.getAttribute("y1"),x2:en.getAttribute("x2"),y2:en.getAttribute("y2")};case"polyline":case"polygon":if(un.points=en.getAttribute("points"),un.points){const tn=en.points,nn=tn.numberOfItems;un.points=new Array(nn);for(let en=0;en<nn;++en){const nn=tn.getItem(en);un.points[en]={x:nn.x,y:nn.y}}}case"path":un.d=en.getAttribute("d"),cn=1,an.clear()}}if(1!==cn&&2!==cn&&3!==cn||remapElement(en,un,rn),2===cn){if(sn){hasMatrixTransform(an)||(dn={x:An.x+rn.e,y:An.y+rn.f});const en=nn.createSVGTransform();en.setRotate(sn,dn.x,dn.y),an.numberOfItems?an.insertItemBefore(en,0):an.appendItem(en)}if("text"===en.tagName){const tn=en.childNodes;let nn=tn.length;for(;nn--;){const en=tn.item(nn);if("tspan"===en.tagName){const tn={x:Number(en.getAttribute("x"))||0,y:Number(en.getAttribute("y"))||0};remapElement(en,tn,rn)}}}}else if(3===cn&&sn){const{matrix:tn}=transformListToTransform(an),rn=nn.createSVGTransform();rn.setRotate(sn,An.x,An.y);const cn=rn.matrix,pn=nn.createSVGTransform();pn.setRotate(sn,dn.x,dn.y);const hn=pn.matrix.inverse(),gn=tn.inverse(),_n=matrixMultiply(gn,hn,cn,tn);remapElement(en,un,_n),sn&&(an.numberOfItems?an.insertItemBefore(pn,0):an.appendItem(pn))}}return 0===an.numberOfItems&&en.removeAttribute("transform"),cn.addSubCommand(new ChangeElementCommand$2(en,pn)),cn},{MoveElementCommand:Qs,BatchCommand:Vs,InsertElementCommand:Gs,RemoveElementCommand:Ds,ChangeElementCommand:Hs}=La;let zs=null;const moveToTopSelectedElem=()=>{const[en]=zs.getSelectedElements();if(en){const tn=en,nn=tn.parentNode,rn=tn.nextSibling;tn.parentNode.append(tn),rn!==tn.nextSibling&&(zs.addCommandToHistory(new Qs(tn,rn,nn,"top")),zs.call("changed",[tn]))}},moveToBottomSelectedElem=()=>{const[en]=zs.getSelectedElements();if(en){let tn=en;const nn=tn.parentNode,rn=tn.nextSibling;let{firstChild:an}=tn.parentNode;"title"===an.tagName&&(an=an.nextSibling),"defs"===an.tagName&&(an=an.nextSibling),tn=tn.parentNode.insertBefore(tn,an),rn!==tn.nextSibling&&(zs.addCommandToHistory(new Qs(tn,rn,nn,"bottom")),zs.call("changed",[tn]))}},moveUpDownSelected=en=>{const tn=zs.getSelectedElements()[0];if(!tn)return;let nn,rn;zs.setCurBBoxes([]);const an=zs.getIntersectionList(getStrokedBBoxDefaultVisible([tn]));if("Down"===en&&an.reverse(),Array.prototype.forEach.call(an,(en=>rn?(void 0===nn&&(nn=en),!1):(en===tn&&(rn=!0),!0))),!nn)return;const sn=tn,cn=sn.parentNode,An=sn.nextSibling;"Down"===en?nn.insertAdjacentElement("beforebegin",sn):nn.insertAdjacentElement("afterend",sn),An!==sn.nextSibling&&(zs.addCommandToHistory(new Qs(sn,An,cn,"Move "+en)),zs.call("changed",[sn]))},moveSelectedElements=function(en,tn){let nn=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const rn=zs.getSelectedElements(),an=zs.getZoom();Array.isArray(en)||(en/=an,tn/=an);const sn=new Vs("position");if(rn.forEach(((nn,rn)=>{if(nn){var an;const cn=zs.getSvgRoot().createSVGTransform(),An=null===(an=nn.transform)||void 0===an?void 0:an.baseVal;Array.isArray(en)?cn.setTranslate(en[rn],tn[rn]):cn.setTranslate(en,tn),An.numberOfItems?An.insertItemBefore(cn,0):An.appendItem(cn);const dn=recalculateDimensions(nn);dn&&sn.addSubCommand(dn),zs.gettingSelectorManager().requestSelector(nn).resize()}})),!sn.isEmpty())return nn&&zs.addCommandToHistory(sn),zs.call("changed",rn),sn},cloneSelectedElements=(en,tn)=>{const nn=zs.getSelectedElements(),rn=zs.getCurrentGroup();let an,sn;const cn=new Vs("Clone Elements"),An=nn.length,index=en=>{if(!en)return-1;let tn=0;do{tn++}while(en===en.previousElementSibling);return tn};for(nn.sort(((en,tn)=>index(tn)-index(en))),an=0;an<An&&(sn=nn[an],sn);++an);const dn=nn.slice(0,an);zs.clearSelection(!0);const un=zs.getDrawing();for(an=dn.length;an--;)sn=dn[an]=un.copyElem(dn[an]),(rn||un.getCurrentLayer()).append(sn),cn.addSubCommand(new Gs(sn));cn.isEmpty()||(zs.addToSelection(dn.reverse()),moveSelectedElements(en,tn,!1),zs.addCommandToHistory(cn))},alignSelectedElements=(en,tn)=>{const nn=zs.getSelectedElements(),rn=[],an=nn.length;if(!an)return;let sn=Number.MAX_VALUE,cn=Number.MIN_VALUE,An=Number.MAX_VALUE,dn=Number.MIN_VALUE;const isHorizontalAlign=en=>["l","c","r","left","center","right"].includes(en),isVerticalAlign=en=>["t","m","b","top","middle","bottom"].includes(en);for(let en=0;en<an&&nn[en];++en){const tn=nn[en];rn[en]=getStrokedBBoxDefaultVisible([tn])}switch(["smallest","largest"].includes(tn)&&["dh","distrib_horiz","dv","distrib_verti"].includes(en)&&(tn="selected"),tn){case"smallest":if(isHorizontalAlign(en)||isVerticalAlign(en)){const en=rn.slice().sort(((en,tn)=>en.width-tn.width)),tn=en[0];sn=tn.x,An=tn.y,cn=tn.x+tn.width,dn=tn.y+tn.height}break;case"largest":if(isHorizontalAlign(en)||isVerticalAlign(en)){const en=rn.slice().sort(((en,tn)=>en.width-tn.width)),tn=en[rn.length-1];sn=tn.x,An=tn.y,cn=tn.x+tn.width,dn=tn.y+tn.height}break;case"page":sn=0,An=0,cn=zs.getContentW(),dn=zs.getContentH();break;default:sn=Math.min(...rn.map((en=>en.x))),An=Math.min(...rn.map((en=>en.y))),cn=Math.max(...rn.map((en=>en.x+en.width))),dn=Math.max(...rn.map((en=>en.y+en.height)))}let un=[],pn=[];["dh","distrib_horiz"].includes(en)?[un,pn]=_getDistributeHorizontalDistances(tn,nn,rn,sn,cn,An,dn):["dv","distrib_verti"].includes(en)?[un,pn]=_getDistributeVerticalDistances(tn,nn,rn,sn,cn,An,dn):[un,pn]=_getNormalDistances(en,nn,rn,sn,cn,An,dn),moveSelectedElements(un,pn)},_getDistributeHorizontalDistances=(en,tn,nn,rn,an,sn,cn)=>{const An=[],dn=[];for(let en=0;en<tn.length;en++)dn[en]=0;const un=nn.slice().sort(((en,tn)=>{const nn=en.x+en.width,rn=tn.x+tn.width;return nn===rn?0:nn>rn?1:-1}));"page"===en&&(un.unshift({x:0,y:0,width:0,height:cn}),un.push({x:an,y:0,width:0,height:cn}));const pn=an-rn,hn=un.map((en=>en.width)).reduce(((en,tn)=>en+tn),0),gn=(pn-hn)/(un.length-1),_n=[];for(let en=0;en<un.length;++en){if(_n[en]=0,0===en)continue;const tn=un[en].x;un[en].x=un[en-1].x+un[en-1].width+gn,_n[en]=un[en].x-tn}return un.forEach(((en,tn)=>{const rn=nn.findIndex((tn=>tn===en));-1!==rn&&(An[rn]=_n[tn])})),[An,dn]},_getDistributeVerticalDistances=(en,tn,nn,rn,an,sn,cn)=>{const An=[],dn=[];for(let en=0;en<tn.length;en++)An[en]=0;const un=nn.slice().sort(((en,tn)=>{const nn=en.y+en.height,rn=tn.y+tn.height;return nn===rn?0:nn>rn?1:-1}));"page"===en&&(un.unshift({x:0,y:0,width:an,height:0}),un.push({x:0,y:cn,width:an,height:0}));const pn=cn-sn,hn=un.map((en=>en.height)).reduce(((en,tn)=>en+tn),0),gn=(pn-hn)/(un.length-1),_n=[];for(let en=0;en<un.length;++en){if(_n[en]=0,0===en)continue;const tn=un[en].y;un[en].y=un[en-1].y+un[en-1].height+gn,_n[en]=un[en].y-tn}return un.forEach(((en,tn)=>{const rn=nn.findIndex((tn=>tn===en));-1!==rn&&(dn[rn]=_n[tn])})),[An,dn]},_getNormalDistances=(en,tn,nn,rn,an,sn,cn)=>{const An=tn.length,dn=new Array(An),un=new Array(An);for(let pn=0;pn<An&&tn[pn];++pn){const tn=nn[pn];switch(dn[pn]=0,un[pn]=0,en){case"l":case"left":dn[pn]=rn-tn.x;break;case"c":case"center":dn[pn]=(rn+an)/2-(tn.x+tn.width/2);break;case"r":case"right":dn[pn]=an-(tn.x+tn.width);break;case"t":case"top":un[pn]=sn-tn.y;break;case"m":case"middle":un[pn]=(sn+cn)/2-(tn.y+tn.height/2);break;case"b":case"bottom":un[pn]=cn-(tn.y+tn.height)}}return[dn,un]},deleteSelectedElements=()=>{const en=zs.getSelectedElements(),tn=new Vs("Delete Elements"),nn=[];en.forEach((en=>{if(en){let rn=en.parentNode,an=en;zs.gettingSelectorManager().releaseSelector(an),removePath_(an.id),"a"===rn.tagName&&1===rn.childNodes.length&&(an=rn,rn=rn.parentNode);const{nextSibling:sn}=an;an.remove();const cn=an;nn.push(en),tn.addSubCommand(new Ds(cn,sn,rn))}})),zs.setEmptySelectedElements(),tn.isEmpty()||zs.addCommandToHistory(tn),zs.call("changed",nn),zs.clearSelection()},copySelectedElements=()=>{const en=zs.getSelectedElements(),tn=JSON.stringify(en.map((en=>zs.getJsonFromSvgElements(en))));sessionStorage.setItem(zs.getClipboardID(),tn),zs.flashStorage(),document.getElementById("se-cmenu_canvas").setAttribute("enablemenuitems","#paste,#paste_in_place")},groupSelectedElements=(en,tn)=>{const nn=zs.getSelectedElements();en||(en="g");let rn,an="";"a"===en?(an="Make hyperlink",rn=tn||""):(en="g",an="Group Elements");const sn=new Vs(an),cn=zs.addSVGElementsFromJson({element:en,attr:{id:zs.getNextId()}});"a"===en&&setHref(cn,rn),sn.addSubCommand(new Gs(cn));let An=nn.length;for(;An--;){let en=nn[An];if(!en)continue;"a"===en.parentNode.tagName&&1===en.parentNode.childNodes.length&&(en=en.parentNode);const tn=en.nextSibling,rn=en.parentNode;cn.append(en),sn.addSubCommand(new Qs(en,tn,rn))}sn.isEmpty()||zs.addCommandToHistory(sn),zs.selectOnly([cn],!0)},pushGroupProperty=(en,tn)=>{const nn=en.childNodes,rn=nn.length,an=en.getAttribute("transform"),sn=en.transform.baseVal,cn=transformListToTransform(sn).matrix,An=new Vs("Push group properties"),dn=getRotationAngle(en),un={filter:en.getAttribute("filter"),opacity:en.getAttribute("opacity")};let pn,hn,gn;const _n=zs.getDrawing();for(let tn=0;tn<rn;tn++){var mn;const rn=nn[tn];if(1!==rn.nodeType)continue;if(null!==un.opacity&&1!==un.opacity){const en=Math.round((rn.getAttribute("opacity")||1)*un.opacity*100)/100;zs.changeSelectedAttribute("opacity",en,[rn])}if(un.filter){let tn=zs.getBlur(rn);const nn=tn;if(hn||(hn=zs.getBlur(en)),tn?tn=Number(hn)+Number(tn):0===tn&&(tn=hn),nn)pn=getRefElem(rn.getAttribute("filter"));else if(pn){var fn;pn=_n.copyElem(pn),findDefs().append(pn);const en="feGaussianBlur"===(null===(fn=getFeGaussianBlur(pn))||void 0===fn?void 0:fn.tagName)?"blur":"filter";pn.id=rn.id+"_"+en,zs.changeSelectedAttribute("filter","url(#"+pn.id+")",[rn])}else pn=getRefElem(un.filter);const an=getFeGaussianBlur(pn);tn&&(zs.changeSelectedAttribute("stdDeviation",tn,[an]),zs.setBlurOffsets(pn,tn))}let an=null===(mn=rn.transform)||void 0===mn?void 0:mn.baseVal;if(rn.tagName.includes("Gradient")&&(an=null),an&&"defs"!==rn.tagName&&sn.numberOfItems){if(dn&&1===sn.numberOfItems){const en=sn.getItem(0).matrix;let tn=zs.getSvgRoot().createSVGMatrix();const nn=getRotationAngle(rn);nn&&(tn=an.getItem(0).matrix);const cn=getBBox(rn),An=transformListToTransform(an).matrix,un=transformPoint(cn.x+cn.width/2,cn.y+cn.height/2,An),pn=dn+nn,hn=zs.getSvgRoot().createSVGTransform();hn.setRotate(pn,un.x,un.y);const gn=matrixMultiply(en,tn,hn.matrix.inverse());if(nn&&an.removeItem(0),pn&&(an.numberOfItems?an.insertItemBefore(hn,0):an.appendItem(hn)),gn.e||gn.f){const en=zs.getSvgRoot().createSVGTransform();en.setTranslate(gn.e,gn.f),an.numberOfItems?an.insertItemBefore(en,0):an.appendItem(en)}}else{const en=rn.getAttribute("transform");gn={},gn.transform=en||"";const tn=zs.getSvgRoot().createSVGTransform(),nn=transformListToTransform(an).matrix,sn=nn.inverse(),An=matrixMultiply(sn,cn,nn);tn.setMatrix(An),an.appendItem(tn)}const en=recalculateDimensions(rn);en&&An.addSubCommand(en)}}if(an&&(gn={},gn.transform=an,en.setAttribute("transform",""),en.removeAttribute("transform"),An.addSubCommand(new Hs(en,gn))),tn&&!An.isEmpty())return An},convertToGroup=en=>{const tn=zs.getSelectedElements();en||(en=tn[0]);const nn=en,rn=new Vs;let an;const sn=zs.getDataStorage();if(sn.has(nn,"gsvg")){const tn=en.firstChild,nn={x:Number(tn.getAttribute("x")),y:Number(tn.getAttribute("y"))},rn=en.firstChild.firstChild;rn&&(rn.outerHTML=rn.innerHTML),sn.remove(en,"gsvg");const an=en.transform.baseVal,cn=zs.getSvgRoot().createSVGTransform();cn.setTranslate(nn.x,nn.y),an.appendItem(cn),recalculateDimensions(en),zs.call("selected",[en])}else if(sn.has(nn,"symbol")){en=sn.get(nn,"symbol"),an=nn.getAttribute("transform");const tn={x:Number(nn.getAttribute("x")),y:Number(nn.getAttribute("y"))},cn=en.getAttribute("viewBox");if(cn){const en=cn.split(" ");tn.x-=Number(en[0]),tn.y-=Number(en[1])}an+=" translate("+(tn.x||0)+","+(tn.y||0)+")";const An=nn.previousElementSibling;rn.addSubCommand(new Ds(nn,nn.nextElementSibling,nn.parentNode)),nn.remove();const dn=zs.getSvgContent().querySelectorAll("use").length,un=zs.getDOMDocument().createElementNS(xa.SVG,"g"),pn=en.childNodes;let hn;for(hn=0;hn<pn.length;hn++)un.append(pn[hn].cloneNode(!0));if(isGecko$1()){const en=findDefs().querySelectorAll("linearGradient,radialGradient,pattern");for(let tn=0,nn=en.length;nn>tn;tn++)un.appendChild(en[tn].cloneNode(!0))}an&&un.setAttribute("transform",an);const gn=en.parentNode;if(zs.uniquifyElems(un),isGecko$1()){const en=findDefs(),tn=un.querySelectorAll("linearGradient,radialGradient,pattern");for(let nn=0,rn=tn.length;rn>nn;nn++)en.appendChild(tn[nn])}if(un.id=zs.getNextId(),An.after(un),gn){if(!dn){const{nextSibling:tn}=en;en.remove(),rn.addSubCommand(new Ds(en,tn,gn))}rn.addSubCommand(new Gs(un))}zs.setUseData(un),isGecko$1()?zs.convertGradients(findDefs()):zs.convertGradients(un),((en,tn)=>{if(1===(null==en?void 0:en.nodeType)){let nn=en.childNodes.length;for(;nn--;)walkTree(en.childNodes.item(nn),tn);tn(en)}})(un,(en=>{try{recalculateDimensions(en)}catch(en){console.error(en)}}));const _n=un.querySelectorAll(zs.getVisElems());Array.prototype.forEach.call(_n,(en=>{en.id||(en.id=zs.getNextId())})),zs.selectOnly([un]);const mn=pushGroupProperty(un,!0);mn&&rn.addSubCommand(mn),zs.addCommandToHistory(rn)}else console.warn("Unexpected element to ungroup:",en)},ungroupSelectedElement=()=>{const en=zs.getSelectedElements(),tn=zs.getDataStorage();let nn=en[0];if(!nn)return;if(tn.has(nn,"gsvg")||tn.has(nn,"symbol"))return void convertToGroup(nn);if("use"===nn.tagName){const en=getElement(getHref(nn).substr(1));return tn.put(nn,"symbol",en),tn.put(nn,"ref",en),void convertToGroup(nn)}const rn=getParents(nn.parentNode,"a");if(null!=rn&&rn.length&&(nn=rn[0]),"g"===nn.tagName||"a"===nn.tagName){const en=new Vs("Ungroup Elements"),tn=pushGroupProperty(nn,!0);tn&&en.addSubCommand(tn);const rn=nn.parentNode,an=nn.nextSibling,sn=new Array(nn.childNodes.length);let cn=0;for(;nn.firstChild;){const tn=nn.firstChild,An=tn.nextSibling,dn=tn.parentNode;if("title"!==tn.tagName)sn[cn++]=rn.insertBefore(tn,an),en.addSubCommand(new Qs(tn,An,dn));else{const{nextSibling:nn}=tn;en.addSubCommand(new Ds(tn,nn,dn)),tn.remove()}}zs.clearSelection();const An=nn.nextSibling;nn.remove(),en.addSubCommand(new Ds(nn,An,rn)),en.isEmpty()||zs.addCommandToHistory(en),zs.addToSelection(sn)}},updateCanvas=(en,tn)=>{zs.getSvgRoot().setAttribute("width",en),zs.getSvgRoot().setAttribute("height",tn);const nn=zs.getZoom(),rn=document.getElementById("canvasBackground"),an=Number(zs.getSvgContent().getAttribute("x")),sn=Number(zs.getSvgContent().getAttribute("y")),cn=(en-zs.contentW*nn)/2,An=(tn-zs.contentH*nn)/2;assignAttributes(zs.getSvgContent(),{width:zs.contentW*nn,height:zs.contentH*nn,x:cn,y:An,viewBox:"0 0 "+zs.contentW+" "+zs.contentH}),assignAttributes(rn,{width:zs.getSvgContent().getAttribute("width"),height:zs.getSvgContent().getAttribute("height"),x:cn,y:An});const dn=getElement("background_image");return dn&&assignAttributes(dn,{width:"100%",height:"100%"}),zs.selectorManager.selectorParentGroup.setAttribute("transform","translate("+cn+","+An+")"),zs.runExtensions("canvasUpdated",{new_x:cn,new_y:An,old_x:an,old_y:sn,d_x:cn-an,d_y:An-sn}),{x:cn,y:An,old_x:an,old_y:sn,d_x:cn-an,d_y:An-sn}},cycleElement=en=>{const tn=zs.getSelectedElements(),nn=zs.getCurrentGroup();let rn;const an=tn[0];let sn=!1;const cn=getVisibleElements(nn||zs.getCurrentDrawing().getCurrentLayer());if(cn.length){if(an){let tn=cn.length;for(;tn--;)if(cn[tn]===an){rn=en?tn-1:tn+1,rn>=cn.length?rn=0:rn<0&&(rn=cn.length-1),sn=cn[rn];break}}else rn=en?cn.length-1:0,sn=cn[rn];zs.selectOnly([sn],!0),zs.call("selected",tn)}};
/**
* Tools for blur event.
* @module blur
* @license MIT
* @copyright 2011 Jeff Schiller
*/let Ks=null;const setBlurNoUndo=function(en){const tn=Ks.getSelectedElements();if(Ks.getFilter())if(0===en)Ks.changeSelectedAttributeNoUndo("filter",""),Ks.setFilterHidden(!0);else{const nn=tn[0];Ks.getFilterHidden()&&Ks.changeSelectedAttributeNoUndo("filter","url(#"+nn.id+"_blur)");const rn=Ks.getFilter();Ks.changeSelectedAttributeNoUndo("stdDeviation",en,[rn.firstChild]),Ks.setBlurOffsets(rn,en)}else Ks.setBlur(en)};function finishChange(){const en=Ks.undoMgr.finishUndoableChange();Ks.getCurCommand().addSubCommand(en),Ks.addCommandToHistory(Ks.getCurCommand()),Ks.setCurCommand(null),Ks.setFilter(null)}const setBlurOffsets=function(en,tn){tn>3?Ks.assignAttributes(en,{x:"-50%",y:"-50%",width:"200%",height:"200%"},100):(en.removeAttribute("x"),en.removeAttribute("y"),en.removeAttribute("width"),en.removeAttribute("height"))},setBlur=function(en,tn){const{InsertElementCommand:nn,ChangeElementCommand:rn,BatchCommand:an}=Ks.history,sn=Ks.getSelectedElements();if(Ks.getCurCommand())return void finishChange();const cn=sn[0],An=cn.id;Ks.setFilter(Ks.getElement(An+"_blur")),en-=0;const dn=new an;if(Ks.getFilter())0===en&&Ks.setFilter(null);else{const tn=Ks.addSVGElementsFromJson({element:"feGaussianBlur",attr:{in:"SourceGraphic",stdDeviation:en}});Ks.setFilter(Ks.addSVGElementsFromJson({element:"filter",attr:{id:An+"_blur"}})),Ks.getFilter().append(tn),Ks.findDefs().append(Ks.getFilter()),dn.addSubCommand(new nn(Ks.getFilter()))}const un={filter:cn.getAttribute("filter")};if(0===en)return cn.removeAttribute("filter"),void dn.addSubCommand(new rn(cn,un));Ks.changeSelectedAttribute("filter","url(#"+An+"_blur)"),dn.addSubCommand(new rn(cn,un)),Ks.setBlurOffsets(Ks.getFilter(),en);const pn=Ks.getFilter();Ks.setCurCommand(dn),Ks.undoMgr.beginUndoableChange("stdDeviation",[pn?pn.firstChild:null]),tn&&(Ks.setBlurNoUndo(en),finishChange())},$s=getReverseNS(),Ws=["class","id","display","transform","style"],Xs={a:["clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","mask","opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage","xlink:href","xlink:title"],circle:["clip-path","clip-rule","cx","cy","enable-background","fill","fill-opacity","fill-rule","filter","mask","opacity","r","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage"],clipPath:["clipPathUnits"],defs:[],desc:[],ellipse:["clip-path","clip-rule","cx","cy","fill","fill-opacity","fill-rule","filter","mask","opacity","requiredFeatures","rx","ry","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage"],feBlend:["in","in2"],feColorMatrix:["in","type","value","result","values"],feComposite:["in","operator","result","in2"],feFlood:["flood-color","in","result","flood-opacity"],feGaussianBlur:["color-interpolation-filters","in","requiredFeatures","stdDeviation","result"],feMerge:[],feMergeNode:["in"],feMorphology:["in","operator","radius"],feOffset:["dx","in","dy","result"],filter:["color-interpolation-filters","filterRes","filterUnits","height","primitiveUnits","requiredFeatures","width","x","xlink:href","y"],foreignObject:["font-size","height","opacity","requiredFeatures","width","x","y"],g:["clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage","font-family","font-size","font-style","font-weight","text-anchor"],image:["clip-path","clip-rule","filter","height","mask","opacity","requiredFeatures","systemLanguage","width","x","xlink:href","xlink:title","y"],line:["clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","marker-end","marker-mid","marker-start","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage","x1","x2","y1","y2"],linearGradient:["gradientTransform","gradientUnits","requiredFeatures","spreadMethod","systemLanguage","x1","x2","xlink:href","y1","y2"],marker:["markerHeight","markerUnits","markerWidth","orient","preserveAspectRatio","refX","refY","se_type","systemLanguage","viewBox"],mask:["height","maskContentUnits","maskUnits","width","x","y"],metadata:[],path:["clip-path","clip-rule","d","enable-background","fill","fill-opacity","fill-rule","filter","marker-end","marker-mid","marker-start","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage"],pattern:["height","patternContentUnits","patternTransform","patternUnits","requiredFeatures","systemLanguage","viewBox","width","x","xlink:href","y"],polygon:["clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","marker-end","marker-mid","marker-start","mask","opacity","points","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage","sides","shape","edge","point","starRadiusMultiplier","r","radialshift","r2","orient","cx","cy"],polyline:["clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","marker-end","marker-mid","marker-start","mask","opacity","points","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage","se:connector"],radialGradient:["cx","cy","fx","fy","gradientTransform","gradientUnits","r","requiredFeatures","spreadMethod","systemLanguage","xlink:href"],rect:["clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","height","mask","opacity","requiredFeatures","rx","ry","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage","width","x","y"],stop:["offset","requiredFeatures","stop-opacity","systemLanguage","stop-color","gradientUnits","gradientTransform"],style:["type"],svg:["clip-path","clip-rule","enable-background","filter","height","mask","preserveAspectRatio","requiredFeatures","systemLanguage","version","viewBox","width","x","xmlns","xmlns:se","xmlns:xlink","xmlns:oi","oi:animations","y","stroke-linejoin","fill-rule","aria-label","stroke-width","fill-rule","xml:space"],switch:["requiredFeatures","systemLanguage"],symbol:["fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","opacity","overflow","preserveAspectRatio","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage","viewBox","width","height"],text:["clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage","text-anchor","letter-spacing","word-spacing","text-decoration","textLength","lengthAdjust","x","xml:space","y"],textPath:["method","requiredFeatures","spacing","startOffset","systemLanguage","xlink:href"],title:[],tspan:["clip-path","clip-rule","dx","dy","fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","mask","opacity","requiredFeatures","rotate","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","systemLanguage","text-anchor","textLength","x","xml:space","y"],use:["clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","height","mask","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","width","x","xlink:href","y","overflow"],annotation:["encoding"],"annotation-xml":["encoding"],maction:["actiontype","other","selection"],math:["xmlns"],menclose:["notation"],merror:[],mfrac:["linethickness"],mi:["mathvariant"],mmultiscripts:[],mn:[],mo:["fence","lspace","maxsize","minsize","rspace","stretchy"],mover:[],mpadded:["lspace","width","height","depth","voffset"],mphantom:[],mprescripts:[],mroot:[],mrow:["xlink:href","xlink:type","xmlns:xlink"],mspace:["depth","height","width"],msqrt:[],mstyle:["displaystyle","mathbackground","mathcolor","mathvariant","scriptlevel"],msub:[],msubsup:[],msup:[],mtable:["align","columnalign","columnlines","columnspacing","displaystyle","equalcolumns","equalrows","frame","rowalign","rowlines","rowspacing","width"],mtd:["columnalign","columnspan","rowalign","rowspan"],mtext:[],mtr:["columnalign","rowalign"],munder:[],munderover:[],none:[],semantics:[]};Object.keys(Xs).forEach((en=>{Xs[en]=[...Xs[en],...Ws]}));const Ys={};Object.entries(Xs).forEach((en=>{let[tn,nn]=en;const rn={};Object.entries(nn).forEach((en=>{let[tn,nn]=en;if(nn.includes(":")){const en=nn.split(":");rn[en[1]]=xa[en[0].toUpperCase()]}else rn[nn]="xmlns"===nn?xa.XMLNS:null})),Ys[tn]=rn}));const sanitizeSvg=en=>{if(3===en.nodeType&&(en.nodeValue=en.nodeValue.trim(),en.nodeValue.length||en.remove()),1!==en.nodeType)return;const tn=en.ownerDocument,nn=en.parentNode;if(!tn||!nn)return;const rn=Xs[en.nodeName],an=Ys[en.nodeName];if(void 0!==rn){const tn=[];let nn=en.attributes.length;for(;nn--;){const sn=en.attributes.item(nn),cn=sn.nodeName,An=sn.localName,dn=sn.namespaceURI;if(dn!==an[An]&&dn!==xa.XMLNS&&(dn!==xa.XMLNS||!$s[sn.value]))if(cn.startsWith("se:")||cn.startsWith("oi:")||cn.startsWith("data-")){const en=cn.startsWith("se:")?xa.SE:cn.startsWith("oi:")?xa.OI:null;tn.push([cn,sn.value,en])}else console.warn("sanitizeSvg: attribute ".concat(cn," in element ").concat(en.nodeName," not in whitelist is removed")),en.removeAttributeNS(dn,An);if("style"===cn){const tn=sn.value.split(";");let nn=tn.length;for(;nn--;){const[an,sn]=tn[nn].split(":"),cn=(an||"").trim(),An=(sn||"").trim();rn.includes(cn)&&en.setAttribute(cn,An)}en.removeAttribute("style")}}Object.values(tn).forEach((tn=>{let[nn,rn,an]=tn;en.setAttributeNS(an,nn,rn)}));const sn=getHref(en);if(sn&&["filter","linearGradient","pattern","radialGradient","textPath","use"].includes(en.nodeName)&&"#"!==sn[0]&&(setHref(en,""),console.warn("sanitizeSvg: attribute href in element ".concat(en.nodeName," pointing to a non-local reference (").concat(sn,") is removed")),en.removeAttributeNS(xa.XLINK,"href")),"use"===en.nodeName&&!getHref(en))return console.warn("sanitizeSvg: element ".concat(en.nodeName," without a xlink:href is removed")),void en.remove();for(Object.values(["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"],(tn=>{let nn=en.getAttribute(tn);nn&&(nn=getUrlFromAttr(nn),nn&&"#"!==nn[0]&&(en.setAttribute(tn,""),console.warn("sanitizeSvg: attribute ".concat(tn," in element ").concat(en.nodeName," pointing to a non-local reference (").concat(nn,") is removed")),en.removeAttribute(tn)))})),nn=en.childNodes.length;nn--;)sanitizeSvg(en.childNodes.item(nn))}else{console.warn("sanitizeSvg: element ".concat(en.nodeName," not supported is removed"));const tn=[];for(;en.hasChildNodes();)tn.push(nn.insertBefore(en.firstChild,en));en.remove();let rn=tn.length;for(;rn--;)sanitizeSvg(tn[rn])}};function _typeof$1(en){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(en){return typeof en}:function(en){return en&&"function"==typeof Symbol&&en.constructor===Symbol&&en!==Symbol.prototype?"symbol":typeof en},_typeof$1(en)}var Zs=Uint8Array,Js=Uint16Array,el=Uint32Array,tl=new Zs([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),nl=new Zs([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),rl=new Zs([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(en,tn){for(var nn=new Js(31),rn=0;rn<31;++rn)nn[rn]=tn+=1<<en[rn-1];var an=new el(nn[30]);for(rn=1;rn<30;++rn)for(var sn=nn[rn];sn<nn[rn+1];++sn)an[sn]=sn-nn[rn]<<5|rn;return[nn,an]},ol=freb(tl,2),il=ol[0],al=ol[1];il[28]=258,al[258]=28;for(var sl=freb(nl,0),ll=sl[0],cl=sl[1],Al=new Js(32768),dl=0;dl<32768;++dl){var ul=(43690&dl)>>>1|(21845&dl)<<1;ul=(61680&(ul=(52428&ul)>>>2|(13107&ul)<<2))>>>4|(3855&ul)<<4,Al[dl]=((65280&ul)>>>8|(255&ul)<<8)>>>1}var hMap=function(en,tn,nn){for(var rn=en.length,an=0,sn=new Js(tn);an<rn;++an)++sn[en[an]-1];var cn,An=new Js(tn);for(an=0;an<tn;++an)An[an]=An[an-1]+sn[an-1]<<1;if(nn){cn=new Js(1<<tn);var dn=15-tn;for(an=0;an<rn;++an)if(en[an])for(var un=an<<4|en[an],pn=tn-en[an],hn=An[en[an]-1]++<<pn,gn=hn|(1<<pn)-1;hn<=gn;++hn)cn[Al[hn]>>>dn]=un}else for(cn=new Js(rn),an=0;an<rn;++an)cn[an]=Al[An[en[an]-1]++]>>>15-en[an];return cn},pl=new Zs(288);for(dl=0;dl<144;++dl)pl[dl]=8;for(dl=144;dl<256;++dl)pl[dl]=9;for(dl=256;dl<280;++dl)pl[dl]=7;for(dl=280;dl<288;++dl)pl[dl]=8;var hl=new Zs(32);for(dl=0;dl<32;++dl)hl[dl]=5;var gl=hMap(pl,9,0),_l=hMap(pl,9,1),ml=hMap(hl,5,0),fl=hMap(hl,5,1),max$3=function(en){for(var tn=en[0],nn=1;nn<en.length;++nn)en[nn]>tn&&(tn=en[nn]);return tn},bits=function(en,tn,nn){var rn=tn/8>>0;return(en[rn]|en[rn+1]<<8)>>>(7&tn)&nn},bits16=function(en,tn){var nn=tn/8>>0;return(en[nn]|en[nn+1]<<8|en[nn+2]<<16)>>>(7&tn)},shft=function(en){return(en/8>>0)+(7&en&&1)},slc=function(en,tn,nn){(null==tn||tn<0)&&(tn=0),(null==nn||nn>en.length)&&(nn=en.length);var rn=new(en instanceof Js?Js:en instanceof el?el:Zs)(nn-tn);return rn.set(en.subarray(tn,nn)),rn},wbits=function(en,tn,nn){nn<<=7&tn;var rn=tn/8>>0;en[rn]|=nn,en[rn+1]|=nn>>>8},wbits16=function(en,tn,nn){nn<<=7&tn;var rn=tn/8>>0;en[rn]|=nn,en[rn+1]|=nn>>>8,en[rn+2]|=nn>>>16},hTree=function(en,tn){for(var nn=[],rn=0;rn<en.length;++rn)en[rn]&&nn.push({s:rn,f:en[rn]});var an=nn.length,sn=nn.slice();if(!an)return[new Zs(0),0];if(1==an){var cn=new Zs(nn[0].s+1);return cn[nn[0].s]=1,[cn,1]}nn.sort((function(en,tn){return en.f-tn.f})),nn.push({s:-1,f:25001});var An=nn[0],dn=nn[1],un=0,pn=1,hn=2;for(nn[0]={s:-1,f:An.f+dn.f,l:An,r:dn};pn!=an-1;)An=nn[nn[un].f<nn[hn].f?un++:hn++],dn=nn[un!=pn&&nn[un].f<nn[hn].f?un++:hn++],nn[pn++]={s:-1,f:An.f+dn.f,l:An,r:dn};var gn=sn[0].s;for(rn=1;rn<an;++rn)sn[rn].s>gn&&(gn=sn[rn].s);var _n=new Js(gn+1),mn=ln(nn[pn-1],_n,0);if(mn>tn){rn=0;var fn=0,yn=mn-tn,bn=1<<yn;for(sn.sort((function(en,tn){return _n[tn.s]-_n[en.s]||en.f-tn.f}));rn<an;++rn){var vn=sn[rn].s;if(!(_n[vn]>tn))break;fn+=bn-(1<<mn-_n[vn]),_n[vn]=tn}for(fn>>>=yn;fn>0;){var wn=sn[rn].s;_n[wn]<tn?fn-=1<<tn-_n[wn]++-1:++rn}for(;rn>=0&&fn;--rn){var xn=sn[rn].s;_n[xn]==tn&&(--_n[xn],++fn)}mn=tn}return[new Zs(_n),mn]},ln=function(en,tn,nn){return-1==en.s?Math.max(ln(en.l,tn,nn+1),ln(en.r,tn,nn+1)):tn[en.s]=nn},lc=function(en){for(var tn=en.length;tn&&!en[--tn];);for(var nn=new Js(++tn),rn=0,an=en[0],sn=1,w=function(en){nn[rn++]=en},cn=1;cn<=tn;++cn)if(en[cn]==an&&cn!=tn)++sn;else{if(!an&&sn>2){for(;sn>138;sn-=138)w(32754);sn>2&&(w(sn>10?sn-11<<5|28690:sn-3<<5|12305),sn=0)}else if(sn>3){for(w(an),--sn;sn>6;sn-=6)w(8304);sn>2&&(w(sn-3<<5|8208),sn=0)}for(;sn--;)w(an);sn=1,an=en[cn]}return[nn.subarray(0,rn),tn]},clen=function(en,tn){for(var nn=0,rn=0;rn<tn.length;++rn)nn+=en[rn]*tn[rn];return nn},wfblk=function(en,tn,nn){var rn=nn.length,an=shft(tn+2);en[an]=255&rn,en[an+1]=rn>>>8,en[an+2]=255^en[an],en[an+3]=255^en[an+1];for(var sn=0;sn<rn;++sn)en[an+sn+4]=nn[sn];return 8*(an+4+rn)},wblk=function(en,tn,nn,rn,an,sn,cn,An,dn,un,pn){wbits(tn,pn++,nn),++an[256];for(var hn=hTree(an,15),gn=hn[0],_n=hn[1],mn=hTree(sn,15),fn=mn[0],yn=mn[1],bn=lc(gn),vn=bn[0],wn=bn[1],xn=lc(fn),kn=xn[0],Cn=xn[1],Sn=new Js(19),Bn=0;Bn<vn.length;++Bn)Sn[31&vn[Bn]]++;for(Bn=0;Bn<kn.length;++Bn)Sn[31&kn[Bn]]++;for(var En=hTree(Sn,7),jn=En[0],Ln=En[1],Pn=19;Pn>4&&!jn[rl[Pn-1]];--Pn);var Tn,Fn,Un,Nn,In=un+5<<3,Mn=clen(an,pl)+clen(sn,hl)+cn,Rn=clen(an,gn)+clen(sn,fn)+cn+14+3*Pn+clen(Sn,jn)+(2*Sn[16]+3*Sn[17]+7*Sn[18]);if(In<=Mn&&In<=Rn)return wfblk(tn,pn,en.subarray(dn,dn+un));if(wbits(tn,pn,1+(Rn<Mn)),pn+=2,Rn<Mn){Tn=hMap(gn,_n,0),Fn=gn,Un=hMap(fn,yn,0),Nn=fn;var On=hMap(jn,Ln,0);for(wbits(tn,pn,wn-257),wbits(tn,pn+5,Cn-1),wbits(tn,pn+10,Pn-4),pn+=14,Bn=0;Bn<Pn;++Bn)wbits(tn,pn+3*Bn,jn[rl[Bn]]);pn+=3*Pn;for(var Qn=[vn,kn],qn=0;qn<2;++qn){var Vn=Qn[qn];for(Bn=0;Bn<Vn.length;++Bn){var Gn=31&Vn[Bn];wbits(tn,pn,On[Gn]),pn+=jn[Gn],Gn>15&&(wbits(tn,pn,Vn[Bn]>>>5&127),pn+=Vn[Bn]>>>12)}}}else Tn=gl,Fn=pl,Un=ml,Nn=hl;for(Bn=0;Bn<An;++Bn)if(rn[Bn]>255){Gn=rn[Bn]>>>18&31,wbits16(tn,pn,Tn[Gn+257]),pn+=Fn[Gn+257],Gn>7&&(wbits(tn,pn,rn[Bn]>>>23&31),pn+=tl[Gn]);var Dn=31&rn[Bn];wbits16(tn,pn,Un[Dn]),pn+=Nn[Dn],Dn>3&&(wbits16(tn,pn,rn[Bn]>>>5&8191),pn+=nl[Dn])}else wbits16(tn,pn,Tn[rn[Bn]]),pn+=Fn[rn[Bn]];return wbits16(tn,pn,Tn[256]),pn+Fn[256]},yl=new el([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),bl=new Zs(0);function zlibSync(en,tn){void 0===tn&&(tn={});var nn=function(){var en=1,tn=0;return{p:function(nn){for(var rn=en,an=tn,sn=nn.length,cn=0;cn!=sn;){for(var An=Math.min(cn+5552,sn);cn<An;++cn)an+=rn+=nn[cn];rn%=65521,an%=65521}en=rn,tn=an},d:function(){return(en>>>8<<16|(255&tn)<<8|tn>>>8)+2*((255&en)<<23)}}}();nn.p(en);var rn=function(en,tn,nn,rn,an){return function(en,tn,nn,rn,an,sn){var cn=en.length,An=new Zs(rn+cn+5*(1+Math.floor(cn/7e3))+an),dn=An.subarray(rn,An.length-an),un=0;if(!tn||cn<8)for(var pn=0;pn<=cn;pn+=65535){var hn=pn+65535;hn<cn?un=wfblk(dn,un,en.subarray(pn,hn)):(dn[pn]=sn,un=wfblk(dn,un,en.subarray(pn,cn)))}else{for(var gn=yl[tn-1],_n=gn>>>13,mn=8191&gn,fn=(1<<nn)-1,yn=new Js(32768),bn=new Js(fn+1),vn=Math.ceil(nn/3),wn=2*vn,hsh=function(tn){return(en[tn]^en[tn+1]<<vn^en[tn+2]<<wn)&fn},xn=new el(25e3),kn=new Js(288),Cn=new Js(32),Sn=0,Bn=0,En=(pn=0,0),jn=0,Ln=0;pn<cn;++pn){var Pn=hsh(pn),Tn=32767&pn,Fn=bn[Pn];if(yn[Tn]=Fn,bn[Pn]=Tn,jn<=pn){var Un=cn-pn;if((Sn>7e3||En>24576)&&Un>423){un=wblk(en,dn,0,xn,kn,Cn,Bn,En,Ln,pn-Ln,un),En=Sn=Bn=0,Ln=pn;for(var Nn=0;Nn<286;++Nn)kn[Nn]=0;for(Nn=0;Nn<30;++Nn)Cn[Nn]=0}var In=2,Mn=0,Rn=mn,On=Tn-Fn&32767;if(Un>2&&Pn==hsh(pn-On))for(var Qn=Math.min(_n,Un)-1,qn=Math.min(32767,pn),Vn=Math.min(258,Un);On<=qn&&--Rn&&Tn!=Fn;){if(en[pn+In]==en[pn+In-On]){for(var Gn=0;Gn<Vn&&en[pn+Gn]==en[pn+Gn-On];++Gn);if(Gn>In){if(In=Gn,Mn=On,Gn>Qn)break;var Dn=Math.min(On,Gn-2),Hn=0;for(Nn=0;Nn<Dn;++Nn){var zn=pn-On+Nn+32768&32767,Kn=zn-yn[zn]+32768&32767;Kn>Hn&&(Hn=Kn,Fn=zn)}}}On+=(Tn=Fn)-(Fn=yn[Tn])+32768&32767}if(Mn){xn[En++]=268435456|al[In]<<18|cl[Mn];var $n=31&al[In],Wn=31&cl[Mn];Bn+=tl[$n]+nl[Wn],++kn[257+$n],++Cn[Wn],jn=pn+In,++Sn}else xn[En++]=en[pn],++kn[en[pn]]}}un=wblk(en,dn,sn,xn,kn,Cn,Bn,En,Ln,pn-Ln,un),sn||(un=wfblk(dn,un,bl))}return slc(An,0,rn+shft(un)+an)}(en,null==tn.level?6:tn.level,null==tn.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(en.length)))):12+tn.mem,nn,rn,!an)}(en,tn,2,4);return function(en,tn){var nn=tn.level,rn=0==nn?0:nn<6?1:9==nn?3:2;en[0]=120,en[1]=rn<<6|(rn?32-2*rn:1)}(rn,tn),function(en,tn,nn){for(;nn;++tn)en[tn]=nn,nn>>>=8}(rn,rn.length-4,nn.d()),rn}
/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
* CommitID 00000000
*
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2021 yWorks GmbH, http://www.yworks.com
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, https://github.com/willowsystems
* 2012 Pablo Hess, https://github.com/pablohess
* 2012 Florian Jenett, https://github.com/fjenett
* 2013 Warren Weckesser, https://github.com/warrenweckesser
* 2013 Youssef Beddad, https://github.com/lifof
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2013 Stefan Slonevskiy, https://github.com/stefslon
* 2013 Jeremy Morel, https://github.com/jmorel
* 2013 Christoph Hartmann, https://github.com/chris-rock
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Makes, https://github.com/dollaruw
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 Steven Spungin, https://github.com/Flamenco
* 2014 Kenneth Glassey, https://github.com/Gavvers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
*/
var vl=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function i$2(){vl.console&&"function"==typeof vl.console.log&&vl.console.log.apply(vl.console,arguments)}var wl={log:i$2,warn:function(en){vl.console&&("function"==typeof vl.console.warn?vl.console.warn.apply(vl.console,arguments):i$2.call(null,arguments))},error:function(en){vl.console&&("function"==typeof vl.console.error?vl.console.error.apply(vl.console,arguments):i$2(en))}};function o$1(en,tn,nn){var rn=new XMLHttpRequest;rn.open("GET",en),rn.responseType="blob",rn.onload=function(){Cl(rn.response,tn,nn)},rn.onerror=function(){wl.error("could not download file")},rn.send()}function s$1(en){var tn=new XMLHttpRequest;tn.open("HEAD",en,!1);try{tn.send()}catch(en){}return tn.status>=200&&tn.status<=299}function c$2(en){try{en.dispatchEvent(new MouseEvent("click"))}catch(nn){var tn=document.createEvent("MouseEvents");tn.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),en.dispatchEvent(tn)}}var xl,kl,Cl=vl.saveAs||("object"!==("undefined"==typeof window?"undefined":_typeof$1(window))||window!==vl?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(en,tn,nn){var rn=vl.URL||vl.webkitURL,an=document.createElement("a");tn=tn||en.name||"download",an.download=tn,an.rel="noopener","string"==typeof en?(an.href=en,an.origin!==location.origin?s$1(an.href)?o$1(en,tn,nn):c$2(an,an.target="_blank"):c$2(an)):(an.href=rn.createObjectURL(en),setTimeout((function(){rn.revokeObjectURL(an.href)}),4e4),setTimeout((function(){c$2(an)}),0))}:"msSaveOrOpenBlob"in navigator?function(en,tn,nn){if(tn=tn||en.name||"download","string"==typeof en)if(s$1(en))o$1(en,tn,nn);else{var rn=document.createElement("a");rn.href=en,rn.target="_blank",setTimeout((function(){c$2(rn)}))}else navigator.msSaveOrOpenBlob(function(en,tn){return void 0===tn?tn={autoBom:!1}:"object"!==_typeof$1(tn)&&(wl.warn("Deprecated: Expected third argument to be a object"),tn={autoBom:!tn}),tn.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(en.type)?new Blob([String.fromCharCode(65279),en],{type:en.type}):en}(en,nn),tn)}:function(en,tn,nn,rn){if((rn=rn||open("","_blank"))&&(rn.document.title=rn.document.body.innerText="downloading..."),"string"==typeof en)return o$1(en,tn,nn);var an="application/octet-stream"===en.type,sn=/constructor/i.test(vl.HTMLElement)||vl.safari,cn=/CriOS\/[\d]+/.test(navigator.userAgent);if((cn||an&&sn)&&"object"===("undefined"==typeof FileReader?"undefined":_typeof$1(FileReader))){var An=new FileReader;An.onloadend=function(){var en=An.result;en=cn?en:en.replace(/^data:[^;]*;/,"data:attachment/file;"),rn?rn.location.href=en:location=en,rn=null},An.readAsDataURL(en)}else{var dn=vl.URL||vl.webkitURL,un=dn.createObjectURL(en);rn?rn.location=un:location.href=un,rn=null,setTimeout((function(){dn.revokeObjectURL(un)}),4e4)}});
/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function f$1(en){var tn;en=en||"",this.ok=!1,"#"==en.charAt(0)&&(en=en.substr(1,6)),en={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[en=(en=en.replace(/ /g,"")).toLowerCase()]||en;for(var nn=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(en){return[parseInt(en[1]),parseInt(en[2]),parseInt(en[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(en){return[parseInt(en[1],16),parseInt(en[2],16),parseInt(en[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(en){return[parseInt(en[1]+en[1],16),parseInt(en[2]+en[2],16),parseInt(en[3]+en[3],16)]}}],rn=0;rn<nn.length;rn++){var an=nn[rn].re,sn=nn[rn].process,cn=an.exec(en);cn&&(tn=sn(cn),this.r=tn[0],this.g=tn[1],this.b=tn[2],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.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var en=this.r.toString(16),tn=this.g.toString(16),nn=this.b.toString(16);return 1==en.length&&(en="0"+en),1==tn.length&&(tn="0"+tn),1==nn.length&&(nn="0"+nn),"#"+en+tn+nn}}
/**
* @license
* Joseph Myers does not specify a particular license for his work.
*
* Author: Joseph Myers
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
*
* Modified by: Owen Leong
*/function d(en,tn){var nn=en[0],rn=en[1],an=en[2],sn=en[3];nn=g(nn,rn,an,sn,tn[0],7,-680876936),sn=g(sn,nn,rn,an,tn[1],12,-389564586),an=g(an,sn,nn,rn,tn[2],17,606105819),rn=g(rn,an,sn,nn,tn[3],22,-1044525330),nn=g(nn,rn,an,sn,tn[4],7,-176418897),sn=g(sn,nn,rn,an,tn[5],12,1200080426),an=g(an,sn,nn,rn,tn[6],17,-1473231341),rn=g(rn,an,sn,nn,tn[7],22,-45705983),nn=g(nn,rn,an,sn,tn[8],7,1770035416),sn=g(sn,nn,rn,an,tn[9],12,-1958414417),an=g(an,sn,nn,rn,tn[10],17,-42063),rn=g(rn,an,sn,nn,tn[11],22,-1990404162),nn=g(nn,rn,an,sn,tn[12],7,1804603682),sn=g(sn,nn,rn,an,tn[13],12,-40341101),an=g(an,sn,nn,rn,tn[14],17,-1502002290),nn=m$2(nn,rn=g(rn,an,sn,nn,tn[15],22,1236535329),an,sn,tn[1],5,-165796510),sn=m$2(sn,nn,rn,an,tn[6],9,-1069501632),an=m$2(an,sn,nn,rn,tn[11],14,643717713),rn=m$2(rn,an,sn,nn,tn[0],20,-373897302),nn=m$2(nn,rn,an,sn,tn[5],5,-701558691),sn=m$2(sn,nn,rn,an,tn[10],9,38016083),an=m$2(an,sn,nn,rn,tn[15],14,-660478335),rn=m$2(rn,an,sn,nn,tn[4],20,-405537848),nn=m$2(nn,rn,an,sn,tn[9],5,568446438),sn=m$2(sn,nn,rn,an,tn[14],9,-1019803690),an=m$2(an,sn,nn,rn,tn[3],14,-187363961),rn=m$2(rn,an,sn,nn,tn[8],20,1163531501),nn=m$2(nn,rn,an,sn,tn[13],5,-1444681467),sn=m$2(sn,nn,rn,an,tn[2],9,-51403784),an=m$2(an,sn,nn,rn,tn[7],14,1735328473),nn=v$1(nn,rn=m$2(rn,an,sn,nn,tn[12],20,-1926607734),an,sn,tn[5],4,-378558),sn=v$1(sn,nn,rn,an,tn[8],11,-2022574463),an=v$1(an,sn,nn,rn,tn[11],16,1839030562),rn=v$1(rn,an,sn,nn,tn[14],23,-35309556),nn=v$1(nn,rn,an,sn,tn[1],4,-1530992060),sn=v$1(sn,nn,rn,an,tn[4],11,1272893353),an=v$1(an,sn,nn,rn,tn[7],16,-155497632),rn=v$1(rn,an,sn,nn,tn[10],23,-1094730640),nn=v$1(nn,rn,an,sn,tn[13],4,681279174),sn=v$1(sn,nn,rn,an,tn[0],11,-358537222),an=v$1(an,sn,nn,rn,tn[3],16,-722521979),rn=v$1(rn,an,sn,nn,tn[6],23,76029189),nn=v$1(nn,rn,an,sn,tn[9],4,-640364487),sn=v$1(sn,nn,rn,an,tn[12],11,-421815835),an=v$1(an,sn,nn,rn,tn[15],16,530742520),nn=b(nn,rn=v$1(rn,an,sn,nn,tn[2],23,-995338651),an,sn,tn[0],6,-198630844),sn=b(sn,nn,rn,an,tn[7],10,1126891415),an=b(an,sn,nn,rn,tn[14],15,-1416354905),rn=b(rn,an,sn,nn,tn[5],21,-57434055),nn=b(nn,rn,an,sn,tn[12],6,1700485571),sn=b(sn,nn,rn,an,tn[3],10,-1894986606),an=b(an,sn,nn,rn,tn[10],15,-1051523),rn=b(rn,an,sn,nn,tn[1],21,-2054922799),nn=b(nn,rn,an,sn,tn[8],6,1873313359),sn=b(sn,nn,rn,an,tn[15],10,-30611744),an=b(an,sn,nn,rn,tn[6],15,-1560198380),rn=b(rn,an,sn,nn,tn[13],21,1309151649),nn=b(nn,rn,an,sn,tn[4],6,-145523070),sn=b(sn,nn,rn,an,tn[11],10,-1120210379),an=b(an,sn,nn,rn,tn[2],15,718787259),rn=b(rn,an,sn,nn,tn[9],21,-343485551),en[0]=_$1(nn,en[0]),en[1]=_$1(rn,en[1]),en[2]=_$1(an,en[2]),en[3]=_$1(sn,en[3])}function p$1(en,tn,nn,rn,an,sn){return tn=_$1(_$1(tn,en),_$1(rn,sn)),_$1(tn<<an|tn>>>32-an,nn)}function g(en,tn,nn,rn,an,sn,cn){return p$1(tn&nn|~tn&rn,en,tn,an,sn,cn)}function m$2(en,tn,nn,rn,an,sn,cn){return p$1(tn&rn|nn&~rn,en,tn,an,sn,cn)}function v$1(en,tn,nn,rn,an,sn,cn){return p$1(tn^nn^rn,en,tn,an,sn,cn)}function b(en,tn,nn,rn,an,sn,cn){return p$1(nn^(tn|~rn),en,tn,an,sn,cn)}function y$1(en){var tn,nn=en.length,rn=[1732584193,-271733879,-1732584194,271733878];for(tn=64;tn<=en.length;tn+=64)d(rn,w(en.substring(tn-64,tn)));en=en.substring(tn-64);var an=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(tn=0;tn<en.length;tn++)an[tn>>2]|=en.charCodeAt(tn)<<(tn%4<<3);if(an[tn>>2]|=128<<(tn%4<<3),tn>55)for(d(rn,an),tn=0;tn<16;tn++)an[tn]=0;return an[14]=8*nn,d(rn,an),rn}function w(en){var tn,nn=[];for(tn=0;tn<64;tn+=4)nn[tn>>2]=en.charCodeAt(tn)+(en.charCodeAt(tn+1)<<8)+(en.charCodeAt(tn+2)<<16)+(en.charCodeAt(tn+3)<<24);return nn}xl=vl.atob.bind(vl),kl=vl.btoa.bind(vl);var Sl="0123456789abcdef".split("");function L(en){for(var tn="",nn=0;nn<4;nn++)tn+=Sl[en>>8*nn+4&15]+Sl[en>>8*nn&15];return tn}function A(en){return String.fromCharCode((255&en)>>0,(65280&en)>>8,(16711680&en)>>16,(4278190080&en)>>24)}function x(en){return y$1(en).map(A).join("")}var Bl="5d41402abc4b2a76b9719d911017c592"!=function(en){for(var tn=0;tn<en.length;tn++)en[tn]=L(en[tn]);return en.join("")}(y$1("hello"));function _$1(en,tn){if(Bl){var nn=(65535&en)+(65535&tn);return(en>>16)+(tn>>16)+(nn>>16)<<16|65535&nn}return en+tn&4294967295}
/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function P(en,tn){var nn,rn,an,sn;if(en!==nn){for(var cn=(an=en,sn=1+(256/en.length>>0),new Array(sn+1).join(an)),An=[],dn=0;dn<256;dn++)An[dn]=dn;var un=0;for(dn=0;dn<256;dn++){var pn=An[dn];un=(un+pn+cn.charCodeAt(dn))%256,An[dn]=An[un],An[un]=pn}nn=en,rn=An}else An=rn;var hn=tn.length,gn=0,_n=0,mn="";for(dn=0;dn<hn;dn++)_n=(_n+(pn=An[gn=(gn+1)%256]))%256,An[gn]=An[_n],An[_n]=pn,cn=An[(An[gn]+An[_n])%256],mn+=String.fromCharCode(tn.charCodeAt(dn)^cn);return mn}
/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var El={print:4,modify:8,copy:16,"annot-forms":32};function I(en,tn,nn,rn){this.v=1,this.r=2;var an=192;en.forEach((function(en){if(void 0!==El.perm)throw new Error("Invalid permission: "+en);an+=El[en]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var sn=(tn+this.padding).substr(0,32),cn=(nn+this.padding).substr(0,32);this.O=this.processOwnerPassword(sn,cn),this.P=-(1+(255^an)),this.encryptionKey=x(sn+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(rn)).substr(0,5),this.U=P(this.encryptionKey,this.padding)}function F(en){if(/[^\u0000-\u00ff]/.test(en))throw new Error("Invalid PDF Name Object: "+en+", Only accept ASCII characters.");for(var tn="",nn=en.length,rn=0;rn<nn;rn++){var an=en.charCodeAt(rn);tn+=an<33||35===an||37===an||40===an||41===an||47===an||60===an||62===an||91===an||93===an||123===an||125===an||an>126?"#"+("0"+an.toString(16)).slice(-2):en[rn]}return tn}function C(en){if("object"!==_typeof$1(en))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var tn={};this.subscribe=function(en,nn,rn){if(rn=rn||!1,"string"!=typeof en||"function"!=typeof nn||"boolean"!=typeof rn)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");tn.hasOwnProperty(en)||(tn[en]={});var an=Math.random().toString(35);return tn[en][an]=[nn,!!rn],an},this.unsubscribe=function(en){for(var nn in tn)if(tn[nn][en])return delete tn[nn][en],0===Object.keys(tn[nn]).length&&delete tn[nn],!0;return!1},this.publish=function(nn){if(tn.hasOwnProperty(nn)){var rn=Array.prototype.slice.call(arguments,1),an=[];for(var sn in tn[nn]){var cn=tn[nn][sn];try{cn[0].apply(en,rn)}catch(nn){vl.console&&wl.error("jsPDF PubSub Error",nn.message,nn)}cn[1]&&an.push(sn)}an.length&&an.forEach(this.unsubscribe)}},this.getTopics=function(){return tn}}function j(en){if(!(this instanceof j))return new j(en);var tn="opacity,stroke-opacity".split(",");for(var nn in en)en.hasOwnProperty(nn)&&tn.indexOf(nn)>=0&&(this[nn]=en[nn]);this.id="",this.objectNumber=-1}function O$1(en,tn){this.gState=en,this.matrix=tn,this.id="",this.objectNumber=-1}function B(en,tn,nn,rn,an){if(!(this instanceof B))return new B(en,tn,nn,rn,an);this.type="axial"===en?2:3,this.coords=tn,this.colors=nn,O$1.call(this,rn,an)}function M(en,tn,nn,rn,an){if(!(this instanceof M))return new M(en,tn,nn,rn,an);this.boundingBox=en,this.xStep=tn,this.yStep=nn,this.stream="",this.cloneIndex=0,O$1.call(this,rn,an)}function E(en){var tn,nn="string"==typeof arguments[0]?arguments[0]:"p",rn=arguments[1],an=arguments[2],sn=arguments[3],cn=[],An=1,dn=16,un="S",pn=null;"object"===_typeof$1(en=en||{})&&(nn=en.orientation,rn=en.unit||rn,an=en.format||an,sn=en.compress||en.compressPdf||sn,null!==(pn=en.encryption||null)&&(pn.userPassword=pn.userPassword||"",pn.ownerPassword=pn.ownerPassword||"",pn.userPermissions=pn.userPermissions||[]),An="number"==typeof en.userUnit?Math.abs(en.userUnit):1,void 0!==en.precision&&(tn=en.precision),void 0!==en.floatPrecision&&(dn=en.floatPrecision),un=en.defaultPathOperation||"S"),cn=en.filters||(!0===sn?["FlateEncode"]:cn),rn=rn||"mm",nn=(""+(nn||"P")).toLowerCase();var hn=en.putOnlyUsedFonts||!1,gn={},_n={internal:{},__private__:{}};_n.__private__.PubSub=C;var mn="1.3",fn=_n.__private__.getPdfVersion=function(){return mn};_n.__private__.setPdfVersion=function(en){mn=en};var yn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};_n.__private__.getPageFormats=function(){return yn};var bn=_n.__private__.getPageFormat=function(en){return yn[en]};an=an||"a4";var vn={COMPAT:"compat",ADVANCED:"advanced"},wn=vn.COMPAT;function _(){this.saveGraphicsState(),$n(new po(Kr,0,0,-Kr,0,fi()*Kr).toString()+" cm"),this.setFontSize(this.getFontSize()/Kr),un="n",wn=vn.ADVANCED}function P(){this.restoreGraphicsState(),un="S",wn=vn.COMPAT}var xn=_n.__private__.combineFontStyleAndFontWeight=function(en,tn){if("bold"==en&&"normal"==tn||"bold"==en&&400==tn||"normal"==en&&"italic"==tn||"bold"==en&&"italic"==tn)throw new Error("Invalid Combination of fontweight and fontstyle");return tn&&(en=400==tn||"normal"===tn?"italic"===en?"italic":"normal":700!=tn&&"bold"!==tn||"normal"!==en?(700==tn?"bold":tn)+""+en:"bold"),en};_n.advancedAPI=function(en){var tn=wn===vn.COMPAT;return tn&&_.call(this),"function"!=typeof en||(en(this),tn&&P.call(this)),this},_n.compatAPI=function(en){var tn=wn===vn.ADVANCED;return tn&&P.call(this),"function"!=typeof en||(en(this),tn&&_.call(this)),this},_n.isAdvancedAPI=function(){return wn===vn.ADVANCED};var kn,q=function(en){if(wn!==vn.ADVANCED)throw new Error(en+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Cn=_n.roundToPrecision=_n.__private__.roundToPrecision=function(en,nn){var rn=tn||nn;if(isNaN(en)||isNaN(rn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return en.toFixed(rn).replace(/0+$/,"")};kn=_n.hpf=_n.__private__.hpf="number"==typeof dn?function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.hpf");return Cn(en,dn)}:"smart"===dn?function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.hpf");return Cn(en,en>-1&&en<1?16:5)}:function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.hpf");return Cn(en,16)};var Sn=_n.f2=_n.__private__.f2=function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.f2");return Cn(en,2)},Bn=_n.__private__.f3=function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.f3");return Cn(en,3)},En=_n.scale=_n.__private__.scale=function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.scale");return wn===vn.COMPAT?en*Kr:wn===vn.ADVANCED?en:void 0},z=function(en){return wn===vn.COMPAT?fi()-en:wn===vn.ADVANCED?en:void 0},H=function(en){return En(z(en))};_n.__private__.setPrecision=_n.setPrecision=function(en){"number"==typeof parseInt(en,10)&&(tn=parseInt(en,10))};var jn,Ln="00000000000000000000000000000000",Pn=_n.__private__.getFileId=function(){return Ln},Tn=_n.__private__.setFileId=function(en){return Ln=void 0!==en&&/^[a-fA-F0-9]{32}$/.test(en)?en.toUpperCase():Ln.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==pn&&(Ro=new I(pn.userPermissions,pn.userPassword,pn.ownerPassword,Ln)),Ln};_n.setFileId=function(en){return Tn(en),this},_n.getFileId=function(){return Pn()};var Fn=_n.__private__.convertDateToPDFDate=function(en){var tn=en.getTimezoneOffset(),nn=tn<0?"+":"-",rn=Math.floor(Math.abs(tn/60)),an=Math.abs(tn%60),sn=[nn,Rn(rn),"'",Rn(an),"'"].join("");return["D:",en.getFullYear(),Rn(en.getMonth()+1),Rn(en.getDate()),Rn(en.getHours()),Rn(en.getMinutes()),Rn(en.getSeconds()),sn].join("")},Un=_n.__private__.convertPDFDateToDate=function(en){var tn=parseInt(en.substr(2,4),10),nn=parseInt(en.substr(6,2),10)-1,rn=parseInt(en.substr(8,2),10),an=parseInt(en.substr(10,2),10),sn=parseInt(en.substr(12,2),10),cn=parseInt(en.substr(14,2),10);return new Date(tn,nn,rn,an,sn,cn,0)},Nn=_n.__private__.setCreationDate=function(en){var tn;if(void 0===en&&(en=new Date),en instanceof Date)tn=Fn(en);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(en))throw new Error("Invalid argument passed to jsPDF.setCreationDate");tn=en}return jn=tn},In=_n.__private__.getCreationDate=function(en){var tn=jn;return"jsDate"===en&&(tn=Un(jn)),tn};_n.setCreationDate=function(en){return Nn(en),this},_n.getCreationDate=function(en){return In(en)};var Mn,Rn=_n.__private__.padd2=function(en){return("0"+parseInt(en)).slice(-2)},On=_n.__private__.padd2Hex=function(en){return("00"+(en=en.toString())).substr(en.length)},Qn=0,qn=[],Vn=[],Gn=0,Dn=[],Hn=[],zn=!1,Kn=Vn,ut=function(){Qn=0,Gn=0,Vn=[],qn=[],Dn=[],yo=mo(),bo=mo()};_n.__private__.setCustomOutputDestination=function(en){zn=!0,Kn=en};var ht=function(en){zn||(Kn=en)};_n.__private__.resetCustomOutputDestination=function(){zn=!1,Kn=Vn};var $n=_n.__private__.out=function(en){return en=en.toString(),Gn+=en.length+1,Kn.push(en),Kn},Wn=_n.__private__.write=function(en){return $n(1===arguments.length?en.toString():Array.prototype.join.call(arguments," "))},Xn=_n.__private__.getArrayBuffer=function(en){for(var tn=en.length,nn=new ArrayBuffer(tn),rn=new Uint8Array(nn);tn--;)rn[tn]=en.charCodeAt(tn);return nn},Yn=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];_n.__private__.getStandardFonts=function(){return Yn};var Zn=en.fontSize||16;_n.__private__.setFontSize=_n.setFontSize=function(en){return Zn=wn===vn.ADVANCED?en/Kr:en,this};var Jn,Tr=_n.__private__.getFontSize=_n.getFontSize=function(){return wn===vn.COMPAT?Zn:Zn*Kr},Ur=en.R2L||!1;_n.__private__.setR2L=_n.setR2L=function(en){return Ur=en,this},_n.__private__.getR2L=_n.getR2L=function(){return Ur};var Rr,Qr=_n.__private__.setZoomMode=function(en){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(en))Jn=en;else if(isNaN(en)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(en))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+en+'" is not recognized.');Jn=en}else Jn=parseInt(en,10)};_n.__private__.getZoomMode=function(){return Jn};var Vr,Gr=_n.__private__.setPageMode=function(en){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(en))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+en+'" is not recognized.');Rr=en};_n.__private__.getPageMode=function(){return Rr};var Dr=_n.__private__.setLayoutMode=function(en){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(en))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+en+'" is not recognized.');Vr=en};_n.__private__.getLayoutMode=function(){return Vr},_n.__private__.setDisplayMode=_n.setDisplayMode=function(en,tn,nn){return Qr(en),Dr(tn),Gr(nn),this};var Hr={title:"",subject:"",author:"",keywords:"",creator:""};_n.__private__.getDocumentProperty=function(en){if(-1===Object.keys(Hr).indexOf(en))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Hr[en]},_n.__private__.getDocumentProperties=function(){return Hr},_n.__private__.setDocumentProperties=_n.setProperties=_n.setDocumentProperties=function(en){for(var tn in Hr)Hr.hasOwnProperty(tn)&&en[tn]&&(Hr[tn]=en[tn]);return this},_n.__private__.setDocumentProperty=function(en,tn){if(-1===Object.keys(Hr).indexOf(en))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Hr[en]=tn};var zr,Kr,$r,Wr,Xr,Yr={},Zr={},Jr=[],eo={},to={},no={},ro={},oo=null,io=0,ao=[],so=new C(_n),lo=en.hotfixes||[],co={},Ao={},uo=[],po=function t(en,tn,nn,rn,an,sn){if(!(this instanceof t))return new t(en,tn,nn,rn,an,sn);isNaN(en)&&(en=1),isNaN(tn)&&(tn=0),isNaN(nn)&&(nn=0),isNaN(rn)&&(rn=1),isNaN(an)&&(an=0),isNaN(sn)&&(sn=0),this._matrix=[en,tn,nn,rn,an,sn]};Object.defineProperty(po.prototype,"sx",{get:function(){return this._matrix[0]},set:function(en){this._matrix[0]=en}}),Object.defineProperty(po.prototype,"shy",{get:function(){return this._matrix[1]},set:function(en){this._matrix[1]=en}}),Object.defineProperty(po.prototype,"shx",{get:function(){return this._matrix[2]},set:function(en){this._matrix[2]=en}}),Object.defineProperty(po.prototype,"sy",{get:function(){return this._matrix[3]},set:function(en){this._matrix[3]=en}}),Object.defineProperty(po.prototype,"tx",{get:function(){return this._matrix[4]},set:function(en){this._matrix[4]=en}}),Object.defineProperty(po.prototype,"ty",{get:function(){return this._matrix[5]},set:function(en){this._matrix[5]=en}}),Object.defineProperty(po.prototype,"a",{get:function(){return this._matrix[0]},set:function(en){this._matrix[0]=en}}),Object.defineProperty(po.prototype,"b",{get:function(){return this._matrix[1]},set:function(en){this._matrix[1]=en}}),Object.defineProperty(po.prototype,"c",{get:function(){return this._matrix[2]},set:function(en){this._matrix[2]=en}}),Object.defineProperty(po.prototype,"d",{get:function(){return this._matrix[3]},set:function(en){this._matrix[3]=en}}),Object.defineProperty(po.prototype,"e",{get:function(){return this._matrix[4]},set:function(en){this._matrix[4]=en}}),Object.defineProperty(po.prototype,"f",{get:function(){return this._matrix[5]},set:function(en){this._matrix[5]=en}}),Object.defineProperty(po.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(po.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(po.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(po.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),po.prototype.join=function(en){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(kn).join(en)},po.prototype.multiply=function(en){var tn=en.sx*this.sx+en.shy*this.shx,nn=en.sx*this.shy+en.shy*this.sy,rn=en.shx*this.sx+en.sy*this.shx,an=en.shx*this.shy+en.sy*this.sy,sn=en.tx*this.sx+en.ty*this.shx+this.tx,cn=en.tx*this.shy+en.ty*this.sy+this.ty;return new po(tn,nn,rn,an,sn,cn)},po.prototype.decompose=function(){var en=this.sx,tn=this.shy,nn=this.shx,rn=this.sy,an=this.tx,sn=this.ty,cn=Math.sqrt(en*en+tn*tn),An=(en/=cn)*nn+(tn/=cn)*rn;nn-=en*An,rn-=tn*An;var dn=Math.sqrt(nn*nn+rn*rn);return An/=dn,en*(rn/=dn)<tn*(nn/=dn)&&(en=-en,tn=-tn,An=-An,cn=-cn),{scale:new po(cn,0,0,dn,0,0),translate:new po(1,0,0,1,an,sn),rotate:new po(en,tn,-tn,en,0,0),skew:new po(1,0,An,1,0,0)}},po.prototype.toString=function(en){return this.join(" ")},po.prototype.inversed=function(){var en=this.sx,tn=this.shy,nn=this.shx,rn=this.sy,an=this.tx,sn=this.ty,cn=1/(en*rn-tn*nn),An=rn*cn,dn=-tn*cn,un=-nn*cn,pn=en*cn;return new po(An,dn,un,pn,-An*an-un*sn,-dn*an-pn*sn)},po.prototype.applyToPoint=function(en){var tn=en.x*this.sx+en.y*this.shx+this.tx,nn=en.x*this.shy+en.y*this.sy+this.ty;return new Cr(tn,nn)},po.prototype.applyToRectangle=function(en){var tn=this.applyToPoint(en),nn=this.applyToPoint(new Cr(en.x+en.w,en.y+en.h));return new jr(tn.x,tn.y,nn.x-tn.x,nn.y-tn.y)},po.prototype.clone=function(){var en=this.sx,tn=this.shy,nn=this.shx,rn=this.sy,an=this.tx,sn=this.ty;return new po(en,tn,nn,rn,an,sn)},_n.Matrix=po;var ho=_n.matrixMult=function(en,tn){return tn.multiply(en)},go=new po(1,0,0,1,0,0);_n.unitMatrix=_n.identityMatrix=go;var Jt=function(en,tn){if(!to[en]){var nn=(tn instanceof B?"Sh":"P")+(Object.keys(eo).length+1).toString(10);tn.id=nn,to[en]=nn,eo[nn]=tn,so.publish("addPattern",tn)}};_n.ShadingPattern=B,_n.TilingPattern=M,_n.addShadingPattern=function(en,tn){return q("addShadingPattern()"),Jt(en,tn),this},_n.beginTilingPattern=function(en){q("beginTilingPattern()"),Br(en.boundingBox[0],en.boundingBox[1],en.boundingBox[2]-en.boundingBox[0],en.boundingBox[3]-en.boundingBox[1],en.matrix)},_n.endTilingPattern=function(en,tn){q("endTilingPattern()"),tn.stream=Hn[Mn].join("\n"),Jt(en,tn),so.publish("endTilingPattern",tn),uo.pop().restore()};var _o=_n.__private__.newObject=function(){var en=mo();return Zt(en,!0),en},mo=_n.__private__.newObjectDeferred=function(){return Qn++,qn[Qn]=function(){return Gn},Qn},Zt=function(en,tn){return tn="boolean"==typeof tn&&tn,qn[en]=Gn,tn&&$n(en+" 0 obj"),en},fo=_n.__private__.newAdditionalObject=function(){var en={objId:mo(),content:""};return Dn.push(en),en},yo=mo(),bo=mo(),vo=_n.__private__.decodeColorString=function(en){var tn=en.split(" ");if(2!==tn.length||"g"!==tn[1]&&"G"!==tn[1])5!==tn.length||"k"!==tn[4]&&"K"!==tn[4]||(tn=[(1-tn[0])*(1-tn[3]),(1-tn[1])*(1-tn[3]),(1-tn[2])*(1-tn[3]),"r"]);else{var nn=parseFloat(tn[0]);tn=[nn,nn,nn,"r"]}for(var rn="#",an=0;an<3;an++)rn+=("0"+Math.floor(255*parseFloat(tn[an])).toString(16)).slice(-2);return rn},wo=_n.__private__.encodeColorString=function(en){var tn;"string"==typeof en&&(en={ch1:en});var nn=en.ch1,rn=en.ch2,an=en.ch3,sn=en.ch4,cn="draw"===en.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof nn&&"#"!==nn.charAt(0)){var An=new f$1(nn);if(An.ok)nn=An.toHex();else if(!/^\d*\.?\d*$/.test(nn))throw new Error('Invalid color "'+nn+'" passed to jsPDF.encodeColorString.')}if("string"==typeof nn&&/^#[0-9A-Fa-f]{3}$/.test(nn)&&(nn="#"+nn[1]+nn[1]+nn[2]+nn[2]+nn[3]+nn[3]),"string"==typeof nn&&/^#[0-9A-Fa-f]{6}$/.test(nn)){var dn=parseInt(nn.substr(1),16);nn=dn>>16&255,rn=dn>>8&255,an=255&dn}if(void 0===rn||void 0===sn&&nn===rn&&rn===an)tn="string"==typeof nn?nn+" "+cn[0]:2===en.precision?Sn(nn/255)+" "+cn[0]:Bn(nn/255)+" "+cn[0];else if(void 0===sn||"object"===_typeof$1(sn)){if(sn&&!isNaN(sn.a)&&0===sn.a)return["1.","1.","1.",cn[1]].join(" ");tn="string"==typeof nn?[nn,rn,an,cn[1]].join(" "):2===en.precision?[Sn(nn/255),Sn(rn/255),Sn(an/255),cn[1]].join(" "):[Bn(nn/255),Bn(rn/255),Bn(an/255),cn[1]].join(" ")}else tn="string"==typeof nn?[nn,rn,an,sn,cn[2]].join(" "):2===en.precision?[Sn(nn),Sn(rn),Sn(an),Sn(sn),cn[2]].join(" "):[Bn(nn),Bn(rn),Bn(an),Bn(sn),cn[2]].join(" ");return tn},xo=_n.__private__.getFilters=function(){return cn},ko=_n.__private__.putStream=function(en){var tn=(en=en||{}).data||"",nn=en.filters||xo(),rn=en.alreadyAppliedFilters||[],an=en.addLength1||!1,sn=tn.length,cn=en.objectId,s=function(en){return en};if(null!==pn&&void 0===cn)throw new Error("ObjectId must be passed to putStream for file encryption");null!==pn&&(s=Ro.encryptor(cn,0));var An={};!0===nn&&(nn=["FlateEncode"]);var dn=en.additionalKeyValues||[],un=(An=void 0!==E.API.processDataByFilters?E.API.processDataByFilters(tn,nn):{data:tn,reverseChain:[]}).reverseChain+(Array.isArray(rn)?rn.join(" "):rn.toString());if(0!==An.data.length&&(dn.push({key:"Length",value:An.data.length}),!0===an&&dn.push({key:"Length1",value:sn})),0!=un.length)if(un.split("/").length-1==1)dn.push({key:"Filter",value:un});else{dn.push({key:"Filter",value:"["+un+"]"});for(var hn=0;hn<dn.length;hn+=1)if("DecodeParms"===dn[hn].key){for(var gn=[],_n=0;_n<An.reverseChain.split("/").length-1;_n+=1)gn.push("null");gn.push(dn[hn].value),dn[hn].value="["+gn.join(" ")+"]"}}$n("<<");for(var mn=0;mn<dn.length;mn++)$n("/"+dn[mn].key+" "+dn[mn].value);$n(">>"),0!==An.data.length&&($n("stream"),$n(s(An.data)),$n("endstream"))},Co=_n.__private__.putPage=function(en){var tn=en.number,nn=en.data,rn=en.objId,an=en.contentsObjId;Zt(rn,!0),$n("<</Type /Page"),$n("/Parent "+en.rootDictionaryObjId+" 0 R"),$n("/Resources "+en.resourceDictionaryObjId+" 0 R"),$n("/MediaBox ["+parseFloat(kn(en.mediaBox.bottomLeftX))+" "+parseFloat(kn(en.mediaBox.bottomLeftY))+" "+kn(en.mediaBox.topRightX)+" "+kn(en.mediaBox.topRightY)+"]"),null!==en.cropBox&&$n("/CropBox ["+kn(en.cropBox.bottomLeftX)+" "+kn(en.cropBox.bottomLeftY)+" "+kn(en.cropBox.topRightX)+" "+kn(en.cropBox.topRightY)+"]"),null!==en.bleedBox&&$n("/BleedBox ["+kn(en.bleedBox.bottomLeftX)+" "+kn(en.bleedBox.bottomLeftY)+" "+kn(en.bleedBox.topRightX)+" "+kn(en.bleedBox.topRightY)+"]"),null!==en.trimBox&&$n("/TrimBox ["+kn(en.trimBox.bottomLeftX)+" "+kn(en.trimBox.bottomLeftY)+" "+kn(en.trimBox.topRightX)+" "+kn(en.trimBox.topRightY)+"]"),null!==en.artBox&&$n("/ArtBox ["+kn(en.artBox.bottomLeftX)+" "+kn(en.artBox.bottomLeftY)+" "+kn(en.artBox.topRightX)+" "+kn(en.artBox.topRightY)+"]"),"number"==typeof en.userUnit&&1!==en.userUnit&&$n("/UserUnit "+en.userUnit),so.publish("putPage",{objId:rn,pageContext:ao[tn],pageNumber:tn,page:nn}),$n("/Contents "+an+" 0 R"),$n(">>"),$n("endobj");var sn=nn.join("\n");return wn===vn.ADVANCED&&(sn+="\nQ"),Zt(an,!0),ko({data:sn,filters:xo(),objectId:an}),$n("endobj"),rn},So=_n.__private__.putPages=function(){var en,tn,nn=[];for(en=1;en<=io;en++)ao[en].objId=mo(),ao[en].contentsObjId=mo();for(en=1;en<=io;en++)nn.push(Co({number:en,data:Hn[en],objId:ao[en].objId,contentsObjId:ao[en].contentsObjId,mediaBox:ao[en].mediaBox,cropBox:ao[en].cropBox,bleedBox:ao[en].bleedBox,trimBox:ao[en].trimBox,artBox:ao[en].artBox,userUnit:ao[en].userUnit,rootDictionaryObjId:yo,resourceDictionaryObjId:bo}));Zt(yo,!0),$n("<</Type /Pages");var rn="/Kids [";for(tn=0;tn<io;tn++)rn+=nn[tn]+" 0 R ";$n(rn+"]"),$n("/Count "+io),$n(">>"),$n("endobj"),so.publish("postPutPages")},se=function(en){so.publish("putFont",{font:en,out:$n,newObject:_o,putStream:ko}),!0!==en.isAlreadyPutted&&(en.objectNumber=_o(),$n("<<"),$n("/Type /Font"),$n("/BaseFont /"+F(en.postScriptName)),$n("/Subtype /Type1"),"string"==typeof en.encoding&&$n("/Encoding /"+en.encoding),$n("/FirstChar 32"),$n("/LastChar 255"),$n(">>"),$n("endobj"))},ce=function(){for(var en in Yr)Yr.hasOwnProperty(en)&&(!1===hn||!0===hn&&gn.hasOwnProperty(en))&&se(Yr[en])},ue=function(en){en.objectNumber=_o();var tn=[];tn.push({key:"Type",value:"/XObject"}),tn.push({key:"Subtype",value:"/Form"}),tn.push({key:"BBox",value:"["+[kn(en.x),kn(en.y),kn(en.x+en.width),kn(en.y+en.height)].join(" ")+"]"}),tn.push({key:"Matrix",value:"["+en.matrix.toString()+"]"});var nn=en.pages[1].join("\n");ko({data:nn,additionalKeyValues:tn,objectId:en.objectNumber}),$n("endobj")},he=function(){for(var en in co)co.hasOwnProperty(en)&&ue(co[en])},le=function(en,tn){var nn,rn=[],an=1/(tn-1);for(nn=0;nn<1;nn+=an)rn.push(nn);if(rn.push(1),0!=en[0].offset){var sn={offset:0,color:en[0].color};en.unshift(sn)}if(1!=en[en.length-1].offset){var cn={offset:1,color:en[en.length-1].color};en.push(cn)}for(var An="",dn=0,un=0;un<rn.length;un++){for(nn=rn[un];nn>en[dn+1].offset;)dn++;var pn=en[dn].offset,hn=(nn-pn)/(en[dn+1].offset-pn),gn=en[dn].color,_n=en[dn+1].color;An+=On(Math.round((1-hn)*gn[0]+hn*_n[0]).toString(16))+On(Math.round((1-hn)*gn[1]+hn*_n[1]).toString(16))+On(Math.round((1-hn)*gn[2]+hn*_n[2]).toString(16))}return An.trim()},fe=function(en,tn){tn||(tn=21);var nn=_o(),rn=le(en.colors,tn),an=[];an.push({key:"FunctionType",value:"0"}),an.push({key:"Domain",value:"[0.0 1.0]"}),an.push({key:"Size",value:"["+tn+"]"}),an.push({key:"BitsPerSample",value:"8"}),an.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),an.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ko({data:rn,additionalKeyValues:an,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:nn}),$n("endobj"),en.objectNumber=_o(),$n("<< /ShadingType "+en.type),$n("/ColorSpace /DeviceRGB");var sn="/Coords ["+kn(parseFloat(en.coords[0]))+" "+kn(parseFloat(en.coords[1]))+" ";2===en.type?sn+=kn(parseFloat(en.coords[2]))+" "+kn(parseFloat(en.coords[3])):sn+=kn(parseFloat(en.coords[2]))+" "+kn(parseFloat(en.coords[3]))+" "+kn(parseFloat(en.coords[4]))+" "+kn(parseFloat(en.coords[5])),$n(sn+="]"),en.matrix&&$n("/Matrix ["+en.matrix.toString()+"]"),$n("/Function "+nn+" 0 R"),$n("/Extend [true true]"),$n(">>"),$n("endobj")},de=function(en,tn){var nn=mo(),rn=_o();tn.push({resourcesOid:nn,objectOid:rn}),en.objectNumber=rn;var an=[];an.push({key:"Type",value:"/Pattern"}),an.push({key:"PatternType",value:"1"}),an.push({key:"PaintType",value:"1"}),an.push({key:"TilingType",value:"1"}),an.push({key:"BBox",value:"["+en.boundingBox.map(kn).join(" ")+"]"}),an.push({key:"XStep",value:kn(en.xStep)}),an.push({key:"YStep",value:kn(en.yStep)}),an.push({key:"Resources",value:nn+" 0 R"}),en.matrix&&an.push({key:"Matrix",value:"["+en.matrix.toString()+"]"}),ko({data:en.stream,additionalKeyValues:an,objectId:en.objectNumber}),$n("endobj")},pe=function(en){var tn;for(tn in eo)eo.hasOwnProperty(tn)&&(eo[tn]instanceof B?fe(eo[tn]):eo[tn]instanceof M&&de(eo[tn],en))},ge=function(en){for(var tn in en.objectNumber=_o(),$n("<<"),en)switch(tn){case"opacity":$n("/ca "+Sn(en[tn]));break;case"stroke-opacity":$n("/CA "+Sn(en[tn]))}$n(">>"),$n("endobj")},me=function(){var en;for(en in no)no.hasOwnProperty(en)&&ge(no[en])},ve=function(){for(var en in $n("/XObject <<"),co)co.hasOwnProperty(en)&&co[en].objectNumber>=0&&$n("/"+en+" "+co[en].objectNumber+" 0 R");so.publish("putXobjectDict"),$n(">>")},be=function(){Ro.oid=_o(),$n("<<"),$n("/Filter /Standard"),$n("/V "+Ro.v),$n("/R "+Ro.r),$n("/U <"+Ro.toHexString(Ro.U)+">"),$n("/O <"+Ro.toHexString(Ro.O)+">"),$n("/P "+Ro.P),$n(">>"),$n("endobj")},ye=function(){for(var en in $n("/Font <<"),Yr)Yr.hasOwnProperty(en)&&(!1===hn||!0===hn&&gn.hasOwnProperty(en))&&$n("/"+en+" "+Yr[en].objectNumber+" 0 R");$n(">>")},we=function(){if(Object.keys(eo).length>0){for(var en in $n("/Shading <<"),eo)eo.hasOwnProperty(en)&&eo[en]instanceof B&&eo[en].objectNumber>=0&&$n("/"+en+" "+eo[en].objectNumber+" 0 R");so.publish("putShadingPatternDict"),$n(">>")}},Ne=function(en){if(Object.keys(eo).length>0){for(var tn in $n("/Pattern <<"),eo)eo.hasOwnProperty(tn)&&eo[tn]instanceof _n.TilingPattern&&eo[tn].objectNumber>=0&&eo[tn].objectNumber<en&&$n("/"+tn+" "+eo[tn].objectNumber+" 0 R");so.publish("putTilingPatternDict"),$n(">>")}},Le=function(){if(Object.keys(no).length>0){var en;for(en in $n("/ExtGState <<"),no)no.hasOwnProperty(en)&&no[en].objectNumber>=0&&$n("/"+en+" "+no[en].objectNumber+" 0 R");so.publish("putGStateDict"),$n(">>")}},Ae=function(en){Zt(en.resourcesOid,!0),$n("<<"),$n("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),Ne(en.objectOid),Le(),ve(),$n(">>"),$n("endobj")},xe=function(){var en=[];ce(),me(),he(),pe(en),so.publish("putResources"),en.forEach(Ae),Ae({resourcesOid:bo,objectOid:Number.MAX_SAFE_INTEGER}),so.publish("postPutResources")},Se=function(){so.publish("putAdditionalObjects");for(var en=0;en<Dn.length;en++){var tn=Dn[en];Zt(tn.objId,!0),$n(tn.content),$n("endobj")}so.publish("postPutAdditionalObjects")},_e=function(en){Zr[en.fontName]=Zr[en.fontName]||{},Zr[en.fontName][en.fontStyle]=en.id},Pe=function(en,tn,nn,rn,an){var sn={id:"F"+(Object.keys(Yr).length+1).toString(10),postScriptName:en,fontName:tn,fontStyle:nn,encoding:rn,isStandardFont:an||!1,metadata:{}};return so.publish("addFont",{font:sn,instance:this}),Yr[sn.id]=sn,_e(sn),sn.id},ke=function(en){for(var tn=0,nn=Yn.length;tn<nn;tn++){var rn=Pe.call(this,en[tn][0],en[tn][1],en[tn][2],Yn[tn][3],!0);!1===hn&&(gn[rn]=!0);var an=en[tn][0].split("-");_e({id:rn,fontName:an[0],fontStyle:an[1]||""})}so.publish("addFonts",{fonts:Yr,dictionary:Zr})},Ie=function(en){return en.foo=function(){try{return en.apply(this,arguments)}catch(en){var tn=en.stack||"";~tn.indexOf(" at ")&&(tn=tn.split(" at ")[1]);var nn="Error in function "+tn.split("\n")[0].split("<")[0]+": "+en.message;if(!vl.console)throw new Error(nn);vl.console.error(nn,en),vl.alert&&alert(nn)}},en.foo.bar=en,en.foo},Fe=function(en,tn){var nn,rn,an,sn,cn,An,dn,un,pn;if(an=(tn=tn||{}).sourceEncoding||"Unicode",cn=tn.outputEncoding,(tn.autoencode||cn)&&Yr[zr].metadata&&Yr[zr].metadata[an]&&Yr[zr].metadata[an].encoding&&(sn=Yr[zr].metadata[an].encoding,!cn&&Yr[zr].encoding&&(cn=Yr[zr].encoding),!cn&&sn.codePages&&(cn=sn.codePages[0]),"string"==typeof cn&&(cn=sn[cn]),cn)){for(dn=!1,An=[],nn=0,rn=en.length;nn<rn;nn++)(un=cn[en.charCodeAt(nn)])?An.push(String.fromCharCode(un)):An.push(en[nn]),An[nn].charCodeAt(0)>>8&&(dn=!0);en=An.join("")}for(nn=en.length;void 0===dn&&0!==nn;)en.charCodeAt(nn-1)>>8&&(dn=!0),nn--;if(!dn)return en;for(An=tn.noBOM?[]:[254,255],nn=0,rn=en.length;nn<rn;nn++){if((pn=(un=en.charCodeAt(nn))>>8)>>8)throw new Error("Character at position "+nn+" of string '"+en+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");An.push(pn),An.push(un-(pn<<8))}return String.fromCharCode.apply(void 0,An)},Bo=_n.__private__.pdfEscape=_n.pdfEscape=function(en,tn){return Fe(en,tn).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Eo=_n.__private__.beginPage=function(en){Hn[++io]=[],ao[io]={objId:0,contentsObjId:0,userUnit:Number(An),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(en[0]),topRightY:Number(en[1])}},Me(io),ht(Hn[Mn])},Oe=function(en,tn){var rn,sn,cn;switch(nn=tn||nn,"string"==typeof en&&(rn=bn(en.toLowerCase()),Array.isArray(rn)&&(sn=rn[0],cn=rn[1])),Array.isArray(en)&&(sn=en[0]*Kr,cn=en[1]*Kr),isNaN(sn)&&(sn=an[0],cn=an[1]),(sn>14400||cn>14400)&&(wl.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),sn=Math.min(14400,sn),cn=Math.min(14400,cn)),an=[sn,cn],nn.substr(0,1)){case"l":cn>sn&&(an=[cn,sn]);break;case"p":sn>cn&&(an=[cn,sn])}Eo(an),Jo(Yo),$n(si),0!==pi&&$n(pi+" J"),0!==hi&&$n(hi+" j"),so.publish("addPage",{pageNumber:io})},Be=function(en){en>0&&en<=io&&(Hn.splice(en,1),ao.splice(en,1),io--,Mn>io&&(Mn=io),this.setPage(Mn))},Me=function(en){en>0&&en<=io&&(Mn=en)},jo=_n.__private__.getNumberOfPages=_n.getNumberOfPages=function(){return Hn.length-1},qe=function(en,tn,nn){var rn,an=void 0;return nn=nn||{},en=void 0!==en?en:Yr[zr].fontName,tn=void 0!==tn?tn:Yr[zr].fontStyle,rn=en.toLowerCase(),void 0!==Zr[rn]&&void 0!==Zr[rn][tn]?an=Zr[rn][tn]:void 0!==Zr[en]&&void 0!==Zr[en][tn]?an=Zr[en][tn]:!1===nn.disableWarning&&wl.warn("Unable to look up font label for font '"+en+"', '"+tn+"'. Refer to getFontList() for available fonts."),an||nn.noFallback||null==(an=Zr.times[tn])&&(an=Zr.times.normal),an},Lo=_n.__private__.putInfo=function(){var en=_o(),e=function(en){return en};for(var tn in null!==pn&&(e=Ro.encryptor(en,0)),$n("<<"),$n("/Producer ("+Bo(e("jsPDF "+E.version))+")"),Hr)Hr.hasOwnProperty(tn)&&Hr[tn]&&$n("/"+tn.substr(0,1).toUpperCase()+tn.substr(1)+" ("+Bo(e(Hr[tn]))+")");$n("/CreationDate ("+Bo(e(jn))+")"),$n(">>"),$n("endobj")},Po=_n.__private__.putCatalog=function(en){var tn=(en=en||{}).rootDictionaryObjId||yo;switch(_o(),$n("<<"),$n("/Type /Catalog"),$n("/Pages "+tn+" 0 R"),Jn||(Jn="fullwidth"),Jn){case"fullwidth":$n("/OpenAction [3 0 R /FitH null]");break;case"fullheight":$n("/OpenAction [3 0 R /FitV null]");break;case"fullpage":$n("/OpenAction [3 0 R /Fit]");break;case"original":$n("/OpenAction [3 0 R /XYZ null null 1]");break;default:var nn=""+Jn;"%"===nn.substr(nn.length-1)&&(Jn=parseInt(Jn)/100),"number"==typeof Jn&&$n("/OpenAction [3 0 R /XYZ null null "+Sn(Jn)+"]")}switch(Vr||(Vr="continuous"),Vr){case"continuous":$n("/PageLayout /OneColumn");break;case"single":$n("/PageLayout /SinglePage");break;case"two":case"twoleft":$n("/PageLayout /TwoColumnLeft");break;case"tworight":$n("/PageLayout /TwoColumnRight")}Rr&&$n("/PageMode /"+Rr),so.publish("putCatalog"),$n(">>"),$n("endobj")},To=_n.__private__.putTrailer=function(){$n("trailer"),$n("<<"),$n("/Size "+(Qn+1)),$n("/Root "+Qn+" 0 R"),$n("/Info "+(Qn-1)+" 0 R"),null!==pn&&$n("/Encrypt "+Ro.oid+" 0 R"),$n("/ID [ <"+Ln+"> <"+Ln+"> ]"),$n(">>")},Fo=_n.__private__.putHeader=function(){$n("%PDF-"+mn),$n("%ºß¬à")},Uo=_n.__private__.putXRef=function(){var en="0000000000";$n("xref"),$n("0 "+(Qn+1)),$n("0000000000 65535 f ");for(var tn=1;tn<=Qn;tn++)"function"==typeof qn[tn]?$n((en+qn[tn]()).slice(-10)+" 00000 n "):void 0!==qn[tn]?$n((en+qn[tn]).slice(-10)+" 00000 n "):$n("0000000000 00000 n ")},No=_n.__private__.buildDocument=function(){ut(),ht(Vn),so.publish("buildDocument"),Fo(),So(),Se(),xe(),null!==pn&&be(),Lo(),Po();var en=Gn;return Uo(),To(),$n("startxref"),$n(""+en),$n("%%EOF"),ht(Hn[Mn]),Vn.join("\n")},Io=_n.__private__.getBlob=function(en){return new Blob([Xn(en)],{type:"application/pdf"})},Mo=_n.output=_n.__private__.output=Ie((function(en,tn){switch("string"==typeof(tn=tn||{})?tn={filename:tn}:tn.filename=tn.filename||"generated.pdf",en){case void 0:return No();case"save":_n.save(tn.filename);break;case"arraybuffer":return Xn(No());case"blob":return Io(No());case"bloburi":case"bloburl":if(void 0!==vl.URL&&"function"==typeof vl.URL.createObjectURL)return vl.URL&&vl.URL.createObjectURL(Io(No()))||void 0;wl.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var nn="",rn=No();try{nn=kl(rn)}catch(en){nn=kl(unescape(encodeURIComponent(rn)))}return"data:application/pdf;filename="+tn.filename+";base64,"+nn;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(vl)){var an="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",sn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';tn.pdfObjectUrl&&(an=tn.pdfObjectUrl,sn="");var cn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+an+'"'+sn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(tn)+");<\/script></body></html>",An=vl.open();return null!==An&&An.document.write(cn),An}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(vl)){var dn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(tn.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+tn.filename+'" width="500px" height="400px" /></body></html>',un=vl.open();if(null!==un){un.document.write(dn);var pn=this;un.document.documentElement.querySelector("#pdfViewer").onload=function(){un.document.title=tn.filename,un.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(pn.output("bloburl"))}}return un}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(vl))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var hn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",tn)+'"></iframe></body></html>',gn=vl.open();if(null!==gn&&(gn.document.write(hn),gn.document.title=tn.filename),gn||"undefined"==typeof safari)return gn;break;case"datauri":case"dataurl":return vl.document.location.href=this.output("datauristring",tn);default:return null}})),Ge=function(en){return!0===Array.isArray(lo)&&lo.indexOf(en)>-1};switch(rn){case"pt":Kr=1;break;case"mm":Kr=72/25.4;break;case"cm":Kr=72/2.54;break;case"in":Kr=72;break;case"px":Kr=1==Ge("px_scaling")?.75:96/72;break;case"pc":case"em":Kr=12;break;case"ex":Kr=6;break;default:if("number"!=typeof rn)throw new Error("Invalid unit: "+rn);Kr=rn}var Ro=null;Nn(),Tn();var Je=function(en){return null!==pn?Ro.encryptor(en,0):function(en){return en}},Oo=_n.__private__.getPageInfo=_n.getPageInfo=function(en){if(isNaN(en)||en%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ao[en].objId,pageNumber:en,pageContext:ao[en]}},Qo=_n.__private__.getPageInfoByObjId=function(en){if(isNaN(en)||en%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var tn in ao)if(ao[tn].objId===en)break;return Oo(tn)},qo=_n.__private__.getCurrentPageInfo=_n.getCurrentPageInfo=function(){return{objId:ao[Mn].objId,pageNumber:Mn,pageContext:ao[Mn]}};_n.addPage=function(){return Oe.apply(this,arguments),this},_n.setPage=function(){return Me.apply(this,arguments),ht.call(this,Hn[Mn]),this},_n.insertPage=function(en){return this.addPage(),this.movePage(Mn,en),this},_n.movePage=function(en,tn){var nn,rn;if(en>tn){nn=Hn[en],rn=ao[en];for(var an=en;an>tn;an--)Hn[an]=Hn[an-1],ao[an]=ao[an-1];Hn[tn]=nn,ao[tn]=rn,this.setPage(tn)}else if(en<tn){nn=Hn[en],rn=ao[en];for(var sn=en;sn<tn;sn++)Hn[sn]=Hn[sn+1],ao[sn]=ao[sn+1];Hn[tn]=nn,ao[tn]=rn,this.setPage(tn)}return this},_n.deletePage=function(){return Be.apply(this,arguments),this},_n.__private__.text=_n.text=function(en,tn,nn,rn,an){var sn,cn,An,dn,un,pn,hn,_n,mn,fn=(rn=rn||{}).scope||this;if("number"==typeof en&&"number"==typeof tn&&("string"==typeof nn||Array.isArray(nn))){var yn=nn;nn=tn,tn=en,en=yn}if(arguments[3]instanceof po==0?(An=arguments[4],dn=arguments[5],"object"===_typeof$1(hn=arguments[3])&&null!==hn||("string"==typeof An&&(dn=An,An=null),"string"==typeof hn&&(dn=hn,hn=null),"number"==typeof hn&&(An=hn,hn=null),rn={flags:hn,angle:An,align:dn})):(q("The transform parameter of text() with a Matrix value"),mn=an),isNaN(tn)||isNaN(nn)||null==en)throw new Error("Invalid arguments passed to jsPDF.text");if(0===en.length)return fn;var bn="",xn=!1,Cn="number"==typeof rn.lineHeightFactor?rn.lineHeightFactor:Xo,Sn=fn.internal.scaleFactor;function L(en){return en=en.split("\t").join(Array(rn.TabLen||9).join(" ")),Bo(en,hn)}function A(en){for(var tn,nn=en.concat(),rn=[],an=nn.length;an--;)"string"==typeof(tn=nn.shift())?rn.push(tn):Array.isArray(en)&&(1===tn.length||void 0===tn[1]&&void 0===tn[2])?rn.push(tn[0]):rn.push([tn[0],tn[1],tn[2]]);return rn}function _(en,tn){var nn;if("string"==typeof en)nn=tn(en)[0];else if(Array.isArray(en)){for(var rn,an,sn=en.concat(),cn=[],An=sn.length;An--;)"string"==typeof(rn=sn.shift())?cn.push(tn(rn)[0]):Array.isArray(rn)&&"string"==typeof rn[0]&&(an=tn(rn[0],rn[1],rn[2]),cn.push([an[0],an[1],an[2]]));nn=cn}return nn}var Bn=!1,jn=!0;if("string"==typeof en)Bn=!0;else if(Array.isArray(en)){var Ln=en.concat();cn=[];for(var Pn,Tn=Ln.length;Tn--;)("string"!=typeof(Pn=Ln.shift())||Array.isArray(Pn)&&"string"!=typeof Pn[0])&&(jn=!1);Bn=jn}if(!1===Bn)throw new Error('Type of text must be string or Array. "'+en+'" is not recognized.');"string"==typeof en&&(en=en.match(/[\r?\n]/)?en.split(/\r\n|\r|\n/g):[en]);var Fn=Zn/fn.internal.scaleFactor,Un=Fn*(Cn-1);switch(rn.baseline){case"bottom":nn-=Un;break;case"top":nn+=Fn-Un;break;case"hanging":nn+=Fn-2*Un;break;case"middle":nn+=Fn/2-Un}if((pn=rn.maxWidth||0)>0&&("string"==typeof en?en=fn.splitTextToSize(en,pn):"[object Array]"===Object.prototype.toString.call(en)&&(en=en.reduce((function(en,tn){return en.concat(fn.splitTextToSize(tn,pn))}),[]))),sn={text:en,x:tn,y:nn,options:rn,mutex:{pdfEscape:Bo,activeFontKey:zr,fonts:Yr,activeFontSize:Zn}},so.publish("preProcessText",sn),en=sn.text,An=(rn=sn.options).angle,mn instanceof po==0&&An&&"number"==typeof An){An*=Math.PI/180,0===rn.rotationDirection&&(An=-An),wn===vn.ADVANCED&&(An=-An);var Nn=Math.cos(An),In=Math.sin(An);mn=new po(Nn,In,-In,Nn,0,0)}else An&&An instanceof po&&(mn=An);wn!==vn.ADVANCED||mn||(mn=go),void 0!==(un=rn.charSpace||di)&&(bn+=kn(En(un))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(_n=rn.horizontalScale)&&(bn+=kn(100*_n)+" Tz\n"),rn.lang;var Mn=-1,Rn=void 0!==rn.renderingMode?rn.renderingMode:rn.stroke,On=fn.internal.getCurrentPageInfo().pageContext;switch(Rn){case 0:case!1:case"fill":Mn=0;break;case 1:case!0:case"stroke":Mn=1;break;case 2:case"fillThenStroke":Mn=2;break;case 3:case"invisible":Mn=3;break;case 4:case"fillAndAddForClipping":Mn=4;break;case 5:case"strokeAndAddPathForClipping":Mn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Mn=6;break;case 7:case"addToPathForClipping":Mn=7}var Qn=void 0!==On.usedRenderingMode?On.usedRenderingMode:-1;-1!==Mn?bn+=Mn+" Tr\n":-1!==Qn&&(bn+="0 Tr\n"),-1!==Mn&&(On.usedRenderingMode=Mn),dn=rn.align||"left";var qn,Vn=Zn*Cn,Gn=fn.internal.pageSize.getWidth(),Dn=Yr[zr];un=rn.charSpace||di,pn=rn.maxWidth||0,hn=Object.assign({autoencode:!0,noBOM:!0},rn.flags);var Hn=[];if("[object Array]"===Object.prototype.toString.call(en)){var zn;cn=A(en),"left"!==dn&&(qn=cn.map((function(en){return fn.getStringUnitWidth(en,{font:Dn,charSpace:un,fontSize:Zn,doKerning:!1})*Zn/Sn})));var Kn,Wn=0;if("right"===dn){tn-=qn[0],en=[],Tn=cn.length;for(var Xn=0;Xn<Tn;Xn++)0===Xn?(Kn=ri(tn),zn=oi(nn)):(Kn=En(Wn-qn[Xn]),zn=-Vn),en.push([cn[Xn],Kn,zn]),Wn=qn[Xn]}else if("center"===dn){tn-=qn[0]/2,en=[],Tn=cn.length;for(var Yn=0;Yn<Tn;Yn++)0===Yn?(Kn=ri(tn),zn=oi(nn)):(Kn=En((Wn-qn[Yn])/2),zn=-Vn),en.push([cn[Yn],Kn,zn]),Wn=qn[Yn]}else if("left"===dn){en=[],Tn=cn.length;for(var Jn=0;Jn<Tn;Jn++)en.push(cn[Jn])}else{if("justify"!==dn)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');en=[],Tn=cn.length,pn=0!==pn?pn:Gn;for(var Tr=0;Tr<Tn;Tr++)zn=0===Tr?oi(nn):-Vn,Kn=0===Tr?ri(tn):0,Tr<Tn-1?Hn.push(kn(En((pn-qn[Tr])/(cn[Tr].split(" ").length-1)))):Hn.push(0),en.push([cn[Tr],Kn,zn])}}var Rr="boolean"==typeof rn.R2L?rn.R2L:Ur;!0===Rr&&(en=_(en,(function(en,tn,nn){return[en.split("").reverse().join(""),tn,nn]}))),sn={text:en,x:tn,y:nn,options:rn,mutex:{pdfEscape:Bo,activeFontKey:zr,fonts:Yr,activeFontSize:Zn}},so.publish("postProcessText",sn),en=sn.text,xn=sn.mutex.isHex||!1;var Qr=Yr[zr].encoding;"WinAnsiEncoding"!==Qr&&"StandardEncoding"!==Qr||(en=_(en,(function(en,tn,nn){return[L(en),tn,nn]}))),cn=A(en),en=[];for(var Vr,Gr,Dr,Hr=0,Kr=1,$r=Array.isArray(cn[0])?Kr:Hr,Wr="",ht=function(en,tn,nn){var an="";return nn instanceof po?(nn="number"==typeof rn.angle?ho(nn,new po(1,0,0,1,en,tn)):ho(new po(1,0,0,1,en,tn),nn),wn===vn.ADVANCED&&(nn=ho(new po(1,0,0,-1,0,0),nn)),an=nn.join(" ")+" Tm\n"):an=kn(en)+" "+kn(tn)+" Td\n",an},Xr=0;Xr<cn.length;Xr++){switch(Wr="",$r){case Kr:Dr=(xn?"<":"(")+cn[Xr][0]+(xn?">":")"),Vr=parseFloat(cn[Xr][1]),Gr=parseFloat(cn[Xr][2]);break;case Hr:Dr=(xn?"<":"(")+cn[Xr]+(xn?">":")"),Vr=ri(tn),Gr=oi(nn)}void 0!==Hn&&void 0!==Hn[Xr]&&(Wr=Hn[Xr]+" Tw\n"),0===Xr?en.push(Wr+ht(Vr,Gr,mn)+Dr):$r===Hr?en.push(Wr+Dr):$r===Kr&&en.push(Wr+ht(Vr,Gr,mn)+Dr)}en=$r===Hr?en.join(" Tj\nT* "):en.join(" Tj\n"),en+=" Tj\n";var Zr="BT\n/";return Zr+=zr+" "+Zn+" Tf\n",Zr+=kn(Zn*Cn)+" TL\n",Zr+=ci+"\n",Zr+=bn,Zr+=en,$n(Zr+="ET"),gn[zr]=!0,fn};var Vo=_n.__private__.clip=_n.clip=function(en){return $n("evenodd"===en?"W*":"W"),this};_n.clipEvenOdd=function(){return Vo("evenodd")},_n.__private__.discardPath=_n.discardPath=function(){return $n("n"),this};var Go=_n.__private__.isValidStyle=function(en){var tn=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(en)&&(tn=!0),tn};_n.__private__.setDefaultPathOperation=_n.setDefaultPathOperation=function(en){return Go(en)&&(un=en),this};var Do=_n.__private__.getStyle=_n.getStyle=function(en){var tn=un;switch(en){case"D":case"S":tn="S";break;case"F":tn="f";break;case"FD":case"DF":tn="B";break;case"f":case"f*":case"B":case"B*":tn=en}return tn},Ho=_n.close=function(){return $n("h"),this};_n.stroke=function(){return $n("S"),this},_n.fill=function(en){return rr("f",en),this},_n.fillEvenOdd=function(en){return rr("f*",en),this},_n.fillStroke=function(en){return rr("B",en),this},_n.fillStrokeEvenOdd=function(en){return rr("B*",en),this};var rr=function(en,tn){"object"===_typeof$1(tn)?ar(tn,en):$n(en)},nr=function(en){null===en||wn===vn.ADVANCED&&void 0===en||(en=Do(en),$n(en))};function ir(en,tn,nn,rn,an){var sn=new M(tn||this.boundingBox,nn||this.xStep,rn||this.yStep,this.gState,an||this.matrix);sn.stream=this.stream;var cn=en+"$$"+this.cloneIndex+++"$$";return Jt(cn,sn),sn}var ar=function(en,tn){var nn=to[en.key],rn=eo[nn];if(rn instanceof B)$n("q"),$n(or(tn)),rn.gState&&_n.setGState(rn.gState),$n(en.matrix.toString()+" cm"),$n("/"+nn+" sh"),$n("Q");else if(rn instanceof M){var an=new po(1,0,0,-1,0,fi());en.matrix&&(an=an.multiply(en.matrix||go),nn=ir.call(rn,en.key,en.boundingBox,en.xStep,en.yStep,an).id),$n("q"),$n("/Pattern cs"),$n("/"+nn+" scn"),rn.gState&&_n.setGState(rn.gState),$n(tn),$n("Q")}},or=function(en){switch(en){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},zo=_n.moveTo=function(en,tn){return $n(kn(En(en))+" "+kn(H(tn))+" m"),this},Ko=_n.lineTo=function(en,tn){return $n(kn(En(en))+" "+kn(H(tn))+" l"),this},$o=_n.curveTo=function(en,tn,nn,rn,an,sn){return $n([kn(En(en)),kn(H(tn)),kn(En(nn)),kn(H(rn)),kn(En(an)),kn(H(sn)),"c"].join(" ")),this};_n.__private__.line=_n.line=function(en,tn,nn,rn,an){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||!Go(an))throw new Error("Invalid arguments passed to jsPDF.line");return wn===vn.COMPAT?this.lines([[nn-en,rn-tn]],en,tn,[1,1],an||"S"):this.lines([[nn-en,rn-tn]],en,tn,[1,1]).stroke()},_n.__private__.lines=_n.lines=function(en,tn,nn,rn,an,sn){var cn,An,dn,un,pn,hn,gn,_n,mn,fn,yn,bn;if("number"==typeof en&&(bn=nn,nn=tn,tn=en,en=bn),rn=rn||[1,1],sn=sn||!1,isNaN(tn)||isNaN(nn)||!Array.isArray(en)||!Array.isArray(rn)||!Go(an)||"boolean"!=typeof sn)throw new Error("Invalid arguments passed to jsPDF.lines");for(zo(tn,nn),cn=rn[0],An=rn[1],un=en.length,fn=tn,yn=nn,dn=0;dn<un;dn++)2===(pn=en[dn]).length?(fn=pn[0]*cn+fn,yn=pn[1]*An+yn,Ko(fn,yn)):(hn=pn[0]*cn+fn,gn=pn[1]*An+yn,_n=pn[2]*cn+fn,mn=pn[3]*An+yn,fn=pn[4]*cn+fn,yn=pn[5]*An+yn,$o(hn,gn,_n,mn,fn,yn));return sn&&Ho(),nr(an),this},_n.path=function(en){for(var tn=0;tn<en.length;tn++){var nn=en[tn],rn=nn.c;switch(nn.op){case"m":zo(rn[0],rn[1]);break;case"l":Ko(rn[0],rn[1]);break;case"c":$o.apply(this,rn);break;case"h":Ho()}}return this},_n.__private__.rect=_n.rect=function(en,tn,nn,rn,an){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||!Go(an))throw new Error("Invalid arguments passed to jsPDF.rect");return wn===vn.COMPAT&&(rn=-rn),$n([kn(En(en)),kn(H(tn)),kn(En(nn)),kn(En(rn)),"re"].join(" ")),nr(an),this},_n.__private__.triangle=_n.triangle=function(en,tn,nn,rn,an,sn,cn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||isNaN(an)||isNaN(sn)||!Go(cn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[nn-en,rn-tn],[an-nn,sn-rn],[en-an,tn-sn]],en,tn,[1,1],cn,!0),this},_n.__private__.roundedRect=_n.roundedRect=function(en,tn,nn,rn,an,sn,cn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||isNaN(an)||isNaN(sn)||!Go(cn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var An=4/3*(Math.SQRT2-1);return an=Math.min(an,.5*nn),sn=Math.min(sn,.5*rn),this.lines([[nn-2*an,0],[an*An,0,an,sn-sn*An,an,sn],[0,rn-2*sn],[0,sn*An,-an*An,sn,-an,sn],[2*an-nn,0],[-an*An,0,-an,-sn*An,-an,-sn],[0,2*sn-rn],[0,-sn*An,an*An,-sn,an,-sn]],en+an,tn,[1,1],cn,!0),this},_n.__private__.ellipse=_n.ellipse=function(en,tn,nn,rn,an){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||!Go(an))throw new Error("Invalid arguments passed to jsPDF.ellipse");var sn=4/3*(Math.SQRT2-1)*nn,cn=4/3*(Math.SQRT2-1)*rn;return zo(en+nn,tn),$o(en+nn,tn-cn,en+sn,tn-rn,en,tn-rn),$o(en-sn,tn-rn,en-nn,tn-cn,en-nn,tn),$o(en-nn,tn+cn,en-sn,tn+rn,en,tn+rn),$o(en+sn,tn+rn,en+nn,tn+cn,en+nn,tn),nr(an),this},_n.__private__.circle=_n.circle=function(en,tn,nn,rn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||!Go(rn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(en,tn,nn,nn,rn)},_n.setFont=function(en,tn,nn){return nn&&(tn=xn(tn,nn)),zr=qe(en,tn,{disableWarning:!1}),this};var Wo=_n.__private__.getFont=_n.getFont=function(){return Yr[qe.apply(_n,arguments)]};_n.__private__.getFontList=_n.getFontList=function(){var en,tn,nn={};for(en in Zr)if(Zr.hasOwnProperty(en))for(tn in nn[en]=[],Zr[en])Zr[en].hasOwnProperty(tn)&&nn[en].push(tn);return nn},_n.addFont=function(en,tn,nn,rn,an){var sn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==sn.indexOf(arguments[3])?an=arguments[3]:arguments[3]&&-1==sn.indexOf(arguments[3])&&(nn=xn(nn,rn)),an=an||"Identity-H",Pe.call(this,en,tn,nn,an)};var Xo,Yo=en.lineWidth||.200025,Zo=_n.__private__.getLineWidth=_n.getLineWidth=function(){return Yo},Jo=_n.__private__.setLineWidth=_n.setLineWidth=function(en){return Yo=en,$n(kn(En(en))+" w"),this};_n.__private__.setLineDash=E.API.setLineDash=E.API.setLineDashPattern=function(en,tn){if(en=en||[],tn=tn||0,isNaN(tn)||!Array.isArray(en))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return en=en.map((function(en){return kn(En(en))})).join(" "),tn=kn(En(tn)),$n("["+en+"] "+tn+" d"),this};var ei=_n.__private__.getLineHeight=_n.getLineHeight=function(){return Zn*Xo};_n.__private__.getLineHeight=_n.getLineHeight=function(){return Zn*Xo};var ti=_n.__private__.setLineHeightFactor=_n.setLineHeightFactor=function(en){return"number"==typeof(en=en||1.15)&&(Xo=en),this},ni=_n.__private__.getLineHeightFactor=_n.getLineHeightFactor=function(){return Xo};ti(en.lineHeight);var ri=_n.__private__.getHorizontalCoordinate=function(en){return En(en)},oi=_n.__private__.getVerticalCoordinate=function(en){return wn===vn.ADVANCED?en:ao[Mn].mediaBox.topRightY-ao[Mn].mediaBox.bottomLeftY-En(en)},ii=_n.__private__.getHorizontalCoordinateString=_n.getHorizontalCoordinateString=function(en){return kn(ri(en))},ai=_n.__private__.getVerticalCoordinateString=_n.getVerticalCoordinateString=function(en){return kn(oi(en))},si=en.strokeColor||"0 G";_n.__private__.getStrokeColor=_n.getDrawColor=function(){return vo(si)},_n.__private__.setStrokeColor=_n.setDrawColor=function(en,tn,nn,rn){return si=wo({ch1:en,ch2:tn,ch3:nn,ch4:rn,pdfColorType:"draw",precision:2}),$n(si),this};var li=en.fillColor||"0 g";_n.__private__.getFillColor=_n.getFillColor=function(){return vo(li)},_n.__private__.setFillColor=_n.setFillColor=function(en,tn,nn,rn){return li=wo({ch1:en,ch2:tn,ch3:nn,ch4:rn,pdfColorType:"fill",precision:2}),$n(li),this};var ci=en.textColor||"0 g",Ai=_n.__private__.getTextColor=_n.getTextColor=function(){return vo(ci)};_n.__private__.setTextColor=_n.setTextColor=function(en,tn,nn,rn){return ci=wo({ch1:en,ch2:tn,ch3:nn,ch4:rn,pdfColorType:"text",precision:3}),this};var di=en.charSpace,ui=_n.__private__.getCharSpace=_n.getCharSpace=function(){return parseFloat(di||0)};_n.__private__.setCharSpace=_n.setCharSpace=function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return di=en,this};var pi=0;_n.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},_n.__private__.setLineCap=_n.setLineCap=function(en){var tn=_n.CapJoinStyles[en];if(void 0===tn)throw new Error("Line cap style of '"+en+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return pi=tn,$n(tn+" J"),this};var hi=0;_n.__private__.setLineJoin=_n.setLineJoin=function(en){var tn=_n.CapJoinStyles[en];if(void 0===tn)throw new Error("Line join style of '"+en+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return hi=tn,$n(tn+" j"),this},_n.__private__.setLineMiterLimit=_n.__private__.setMiterLimit=_n.setLineMiterLimit=_n.setMiterLimit=function(en){if(en=en||0,isNaN(en))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return $n(kn(En(en))+" M"),this},_n.GState=j,_n.setGState=function(en){(en="string"==typeof en?no[ro[en]]:Fr(null,en)).equals(oo)||($n("/"+en.id+" gs"),oo=en)};var Fr=function(en,tn){if(!en||!ro[en]){var nn=!1;for(var rn in no)if(no.hasOwnProperty(rn)&&no[rn].equals(tn)){nn=!0;break}if(nn)tn=no[rn];else{var an="GS"+(Object.keys(no).length+1).toString(10);no[an]=tn,tn.id=an}return en&&(ro[en]=tn.id),so.publish("addGState",tn),tn}};_n.addGState=function(en,tn){return Fr(en,tn),this},_n.saveGraphicsState=function(){return $n("q"),Jr.push({key:zr,size:Zn,color:ci}),this},_n.restoreGraphicsState=function(){$n("Q");var en=Jr.pop();return zr=en.key,Zn=en.size,ci=en.color,oo=null,this},_n.setCurrentTransformationMatrix=function(en){return $n(en.toString()+" cm"),this},_n.comment=function(en){return $n("#"+en),this};var Cr=function(en,tn){var nn=en||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return nn},set:function(en){isNaN(en)||(nn=parseFloat(en))}});var rn=tn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return rn},set:function(en){isNaN(en)||(rn=parseFloat(en))}});var an="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return an},set:function(en){an=en.toString()}}),this},jr=function(en,tn,nn,rn){Cr.call(this,en,tn),this.type="rect";var an=nn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return an},set:function(en){isNaN(en)||(an=parseFloat(en))}});var sn=rn||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return sn},set:function(en){isNaN(en)||(sn=parseFloat(en))}}),this},Or=function(){this.page=io,this.currentPage=Mn,this.pages=Hn.slice(0),this.pagesContext=ao.slice(0),this.x=$r,this.y=Wr,this.matrix=Xr,this.width=_i(Mn),this.height=fi(Mn),this.outputDestination=Kn,this.id="",this.objectNumber=-1};Or.prototype.restore=function(){io=this.page,Mn=this.currentPage,ao=this.pagesContext,Hn=this.pages,$r=this.x,Wr=this.y,Xr=this.matrix,mi(Mn,this.width),yi(Mn,this.height),Kn=this.outputDestination};var Br=function(en,tn,nn,rn,an){uo.push(new Or),io=Mn=0,Hn=[],$r=en,Wr=tn,Xr=an,Eo([nn,rn])},Mr=function(en){if(Ao[en])uo.pop().restore();else{var tn=new Or,nn="Xo"+(Object.keys(co).length+1).toString(10);tn.id=nn,Ao[en]=nn,co[nn]=tn,so.publish("addFormObject",tn),uo.pop().restore()}};for(var gi in _n.beginFormObject=function(en,tn,nn,rn,an){return Br(en,tn,nn,rn,an),this},_n.endFormObject=function(en){return Mr(en),this},_n.doFormObject=function(en,tn){var nn=co[Ao[en]];return $n("q"),$n(tn.toString()+" cm"),$n("/"+nn.id+" Do"),$n("Q"),this},_n.getFormObject=function(en){var tn=co[Ao[en]];return{x:tn.x,y:tn.y,width:tn.width,height:tn.height,matrix:tn.matrix}},_n.save=function(en,tn){return en=en||"generated.pdf",(tn=tn||{}).returnPromise=tn.returnPromise||!1,!1===tn.returnPromise?(Cl(Io(No()),en),"function"==typeof Cl.unload&&vl.setTimeout&&setTimeout(Cl.unload,911),this):new Promise((function(tn,nn){try{var rn=Cl(Io(No()),en);"function"==typeof Cl.unload&&vl.setTimeout&&setTimeout(Cl.unload,911),tn(rn)}catch(en){nn(en.message)}}))},E.API)E.API.hasOwnProperty(gi)&&("events"===gi&&E.API.events.length?function(en,tn){var nn,rn,an;for(an=tn.length-1;-1!==an;an--)nn=tn[an][0],rn=tn[an][1],en.subscribe.apply(en,[nn].concat("function"==typeof rn?[rn]:rn))}(so,E.API.events):_n[gi]=E.API[gi]);var _i=_n.getPageWidth=function(en){return(ao[en=en||Mn].mediaBox.topRightX-ao[en].mediaBox.bottomLeftX)/Kr},mi=_n.setPageWidth=function(en,tn){ao[en].mediaBox.topRightX=tn*Kr+ao[en].mediaBox.bottomLeftX},fi=_n.getPageHeight=function(en){return(ao[en=en||Mn].mediaBox.topRightY-ao[en].mediaBox.bottomLeftY)/Kr},yi=_n.setPageHeight=function(en,tn){ao[en].mediaBox.topRightY=tn*Kr+ao[en].mediaBox.bottomLeftY};return _n.internal={pdfEscape:Bo,getStyle:Do,getFont:Wo,getFontSize:Tr,getCharSpace:ui,getTextColor:Ai,getLineHeight:ei,getLineHeightFactor:ni,getLineWidth:Zo,write:Wn,getHorizontalCoordinate:ri,getVerticalCoordinate:oi,getCoordinateString:ii,getVerticalCoordinateString:ai,collections:{},newObject:_o,newAdditionalObject:fo,newObjectDeferred:mo,newObjectDeferredBegin:Zt,getFilters:xo,putStream:ko,events:so,scaleFactor:Kr,pageSize:{getWidth:function(){return _i(Mn)},setWidth:function(en){mi(Mn,en)},getHeight:function(){return fi(Mn)},setHeight:function(en){yi(Mn,en)}},encryptionOptions:pn,encryption:Ro,getEncryptor:Je,output:Mo,getNumberOfPages:jo,pages:Hn,out:$n,f2:Sn,f3:Bn,getPageInfo:Oo,getPageInfoByObjId:Qo,getCurrentPageInfo:qo,getPDFVersion:fn,Point:Cr,Rectangle:jr,Matrix:po,hasHotfix:Ge},Object.defineProperty(_n.internal.pageSize,"width",{get:function(){return _i(Mn)},set:function(en){mi(Mn,en)},enumerable:!0,configurable:!0}),Object.defineProperty(_n.internal.pageSize,"height",{get:function(){return fi(Mn)},set:function(en){yi(Mn,en)},enumerable:!0,configurable:!0}),ke.call(_n,Yn),zr="F1",Oe(an,nn),so.publish("initialized"),_n}I.prototype.lsbFirstWord=function(en){return String.fromCharCode(en>>0&255,en>>8&255,en>>16&255,en>>24&255)},I.prototype.toHexString=function(en){return en.split("").map((function(en){return("0"+(255&en.charCodeAt(0)).toString(16)).slice(-2)})).join("")},I.prototype.hexToBytes=function(en){for(var tn=[],nn=0;nn<en.length;nn+=2)tn.push(String.fromCharCode(parseInt(en.substr(nn,2),16)));return tn.join("")},I.prototype.processOwnerPassword=function(en,tn){return P(x(tn).substr(0,5),en)},I.prototype.encryptor=function(en,tn){var nn=x(this.encryptionKey+String.fromCharCode(255&en,en>>8&255,en>>16&255,255&tn,tn>>8&255)).substr(0,10);return function(en){return P(nn,en)}},j.prototype.equals=function(en){var tn,nn="id,objectNumber,equals";if(!en||_typeof$1(en)!==_typeof$1(this))return!1;var rn=0;for(tn in this)if(!(nn.indexOf(tn)>=0)){if(this.hasOwnProperty(tn)&&!en.hasOwnProperty(tn))return!1;if(this[tn]!==en[tn])return!1;rn++}for(tn in en)en.hasOwnProperty(tn)&&nn.indexOf(tn)<0&&rn--;return 0===rn},E.API={events:[]},E.version="2.5.1";var jl=E.API,Ll=1,R=function(en){return en.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},T$1=function(en){return en.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},U=function(en){return en.toFixed(2)},z=function(en){return en.toFixed(5)};jl.__acroform__={};var H=function(en,tn){en.prototype=Object.create(tn.prototype),en.prototype.constructor=en},W=function(en){return en*Ll},V=function(en){var tn=new ut,nn=ql.internal.getHeight(en)||0,rn=ql.internal.getWidth(en)||0;return tn.BBox=[0,0,Number(U(rn)),Number(U(nn))],tn},Pl=jl.__acroform__.setBit=function(en,tn){if(en=en||0,tn=tn||0,isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return en|1<<tn},Tl=jl.__acroform__.clearBit=function(en,tn){if(en=en||0,tn=tn||0,isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return en&~(1<<tn)},Fl=jl.__acroform__.getBit=function(en,tn){if(isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(en&1<<tn)?0:1},Ul=jl.__acroform__.getBitForPdf=function(en,tn){if(isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Fl(en,tn-1)},Nl=jl.__acroform__.setBitForPdf=function(en,tn){if(isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Pl(en,tn-1)},Il=jl.__acroform__.clearBitForPdf=function(en,tn){if(isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Tl(en,tn-1)},Ml=jl.__acroform__.calculateCoordinates=function(en,tn){var nn=tn.internal.getHorizontalCoordinate,rn=tn.internal.getVerticalCoordinate,an=en[0],sn=en[1],cn=en[2],An=en[3],dn={};return dn.lowerLeft_X=nn(an)||0,dn.lowerLeft_Y=rn(sn+An)||0,dn.upperRight_X=nn(an+cn)||0,dn.upperRight_Y=rn(sn)||0,[Number(U(dn.lowerLeft_X)),Number(U(dn.lowerLeft_Y)),Number(U(dn.upperRight_X)),Number(U(dn.upperRight_Y))]},Q=function(en){if(en.appearanceStreamContent)return en.appearanceStreamContent;if(en.V||en.DV){var tn=[],nn=en._V||en.DV,rn=tt(en,nn),an=en.scope.internal.getFont(en.fontName,en.fontStyle).id;tn.push("/Tx BMC"),tn.push("q"),tn.push("BT"),tn.push(en.scope.__private__.encodeColorString(en.color)),tn.push("/"+an+" "+U(rn.fontSize)+" Tf"),tn.push("1 0 0 1 0 0 Tm"),tn.push(rn.text),tn.push("ET"),tn.push("Q"),tn.push("EMC");var sn=V(en);return sn.scope=en.scope,sn.stream=tn.join("\n"),sn}},tt=function(en,tn){var nn=0===en.fontSize?en.maxFontSize:en.fontSize,rn={text:"",fontSize:""},an=(tn=")"==(tn="("==tn.substr(0,1)?tn.substr(1):tn).substr(tn.length-1)?tn.substr(0,tn.length-1):tn).split(" ");an=en.multiline?an.map((function(en){return en.split("\n")})):an.map((function(en){return[en]}));var sn=nn,cn=ql.internal.getHeight(en)||0;cn=cn<0?-cn:cn;var An=ql.internal.getWidth(en)||0;An=An<0?-An:An;var c=function(tn,nn,rn){if(tn+1<an.length){var sn=nn+" "+an[tn+1][0];return et(sn,en,rn).width<=An-4}return!1};sn++;e:for(;sn>0;){tn="",sn--;var dn,un,pn=et("3",en,sn).height,hn=en.multiline?cn-sn:(cn-pn)/2,gn=hn+=2,_n=0,mn=0,fn=0;if(sn<=0){tn="(...) Tj\n",tn+="% Width of Text: "+et(tn,en,sn=12).width+", FieldWidth:"+An+"\n";break}for(var yn="",bn=0,vn=0;vn<an.length;vn++)if(an.hasOwnProperty(vn)){var wn=!1;if(1!==an[vn].length&&fn!==an[vn].length-1){if((pn+2)*(bn+2)+2>cn)continue e;yn+=an[vn][fn],wn=!0,mn=vn,vn--}else{yn=" "==(yn+=an[vn][fn]+" ").substr(yn.length-1)?yn.substr(0,yn.length-1):yn;var xn=parseInt(vn),kn=c(xn,yn,sn),Cn=vn>=an.length-1;if(kn&&!Cn){yn+=" ",fn=0;continue}if(kn||Cn){if(Cn)mn=xn;else if(en.multiline&&(pn+2)*(bn+2)+2>cn)continue e}else{if(!en.multiline)continue e;if((pn+2)*(bn+2)+2>cn)continue e;mn=xn}}for(var Sn="",Bn=_n;Bn<=mn;Bn++){var En=an[Bn];if(en.multiline){if(Bn===mn){Sn+=En[fn]+" ",fn=(fn+1)%En.length;continue}if(Bn===_n){Sn+=En[En.length-1]+" ";continue}}Sn+=En[0]+" "}switch(Sn=" "==Sn.substr(Sn.length-1)?Sn.substr(0,Sn.length-1):Sn,un=et(Sn,en,sn).width,en.textAlign){case"right":dn=An-un-2;break;case"center":dn=(An-un)/2;break;default:dn=2}tn+=U(dn)+" "+U(gn)+" Td\n",tn+="("+R(Sn)+") Tj\n",tn+=-U(dn)+" 0 Td\n",gn=-(sn+2),un=0,_n=wn?mn:mn+1,bn++,yn=""}break}return rn.text=tn,rn.fontSize=sn,rn},et=function(en,tn,nn){var rn=tn.scope.internal.getFont(tn.fontName,tn.fontStyle),an=tn.scope.getStringUnitWidth(en,{font:rn,fontSize:parseFloat(nn),charSpace:0})*parseFloat(nn);return{height:tn.scope.getStringUnitWidth("3",{font:rn,fontSize:parseFloat(nn),charSpace:0})*parseFloat(nn)*1.5,width:an}},Rl={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},nt=function(en,tn){var nn={type:"reference",object:en};void 0===tn.internal.getPageInfo(en.page).pageContext.annotations.find((function(en){return en.type===nn.type&&en.object===nn.object}))&&tn.internal.getPageInfo(en.page).pageContext.annotations.push(nn)},Ol=jl.__acroform__.arrayToPdfArray=function(en,tn,nn){var i=function(en){return en};if(Array.isArray(en)){for(var rn="[",an=0;an<en.length;an++)switch(0!==an&&(rn+=" "),_typeof$1(en[an])){case"boolean":case"number":case"object":rn+=en[an].toString();break;case"string":"/"!==en[an].substr(0,1)?(void 0!==tn&&nn&&(i=nn.internal.getEncryptor(tn)),rn+="("+R(i(en[an].toString()))+")"):rn+=en[an].toString()}return rn+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},st=function(en,tn,nn){var n=function(en){return en};return void 0!==tn&&nn&&(n=nn.internal.getEncryptor(tn)),(en=en||"").toString(),"("+R(n(en))+")"},ct=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(en){this._objId=en}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ct.prototype.toString=function(){return this.objId+" 0 R"},ct.prototype.putStream=function(){var en=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:en,objectId:this.objId}),this.scope.internal.out("endobj")},ct.prototype.getKeyValueListForStream=function(){var en=[],tn=Object.getOwnPropertyNames(this).filter((function(en){return"content"!=en&&"appearanceStreamContent"!=en&&"scope"!=en&&"objId"!=en&&"_"!=en.substring(0,1)}));for(var nn in tn)if(!1===Object.getOwnPropertyDescriptor(this,tn[nn]).configurable){var rn=tn[nn],an=this[rn];an&&(Array.isArray(an)?en.push({key:rn,value:Ol(an,this.objId,this.scope)}):an instanceof ct?(an.scope=this.scope,en.push({key:rn,value:an.objId+" 0 R"})):"function"!=typeof an&&en.push({key:rn,value:an}))}return en};var ut=function(){ct.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var en,tn=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return tn},set:function(en){tn=en}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(tn){en=tn.trim()},get:function(){return en||null}})};H(ut,ct);var ht=function(){ct.call(this);var en,tn=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return tn.length>0?tn:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return tn}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(en){var e=function(en){return en};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+R(e(en))+")"}},set:function(tn){en=tn}})};H(ht,ct);var Ql=function t(){ct.call(this);var en=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return en},set:function(tn){if(isNaN(tn))throw new Error('Invalid value "'+tn+'" for attribute F supplied.');en=tn}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(en,3))},set:function(tn){!0===Boolean(tn)?this.F=Nl(en,3):this.F=Il(en,3)}});var tn=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return tn},set:function(en){if(isNaN(en))throw new Error('Invalid value "'+en+'" for attribute Ff supplied.');tn=en}});var nn=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==nn.length)return nn},set:function(en){nn=void 0!==en?en:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!nn||isNaN(nn[0])?0:nn[0]},set:function(en){nn[0]=en}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!nn||isNaN(nn[1])?0:nn[1]},set:function(en){nn[1]=en}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!nn||isNaN(nn[2])?0:nn[2]},set:function(en){nn[2]=en}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!nn||isNaN(nn[3])?0:nn[3]},set:function(en){nn[3]=en}});var rn="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return rn},set:function(en){switch(en){case"/Btn":case"/Tx":case"/Ch":case"/Sig":rn=en;break;default:throw new Error('Invalid value "'+en+'" for attribute FT supplied.')}}});var an=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!an||an.length<1){if(this instanceof yt)return;an="FieldObject"+t.FieldNum++}var e=function(en){return en};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+R(e(an))+")"},set:function(en){an=en.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return an},set:function(en){an=en}});var sn="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return sn},set:function(en){sn=en}});var cn="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return cn},set:function(en){cn=en}});var An=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return An},set:function(en){An=en}});var dn=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===dn?50/Ll:dn},set:function(en){dn=en}});var un="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return un},set:function(en){un=en}});var pn="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!pn||this instanceof yt||this instanceof Nt))return st(pn,this.objId,this.scope)},set:function(en){en=en.toString(),pn=en}});var hn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(hn)return this instanceof mt==0?st(hn,this.objId,this.scope):hn},set:function(en){en=en.toString(),hn=this instanceof mt==0?"("===en.substr(0,1)?T$1(en.substr(1,en.length-2)):T$1(en):en}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof mt==1?T$1(hn.substr(1,hn.length-1)):hn},set:function(en){en=en.toString(),hn=this instanceof mt==1?"/"+en:en}});var gn=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(gn)return gn},set:function(en){this.V=en}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(gn)return this instanceof mt==0?st(gn,this.objId,this.scope):gn},set:function(en){en=en.toString(),gn=this instanceof mt==0?"("===en.substr(0,1)?T$1(en.substr(1,en.length-2)):T$1(en):en}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof mt==1?T$1(gn.substr(1,gn.length-1)):gn},set:function(en){en=en.toString(),gn=this instanceof mt==1?"/"+en:en}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var _n,mn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return mn},set:function(en){en=Boolean(en),mn=en}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(_n)return _n},set:function(en){_n=en}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,1))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,1):this.Ff=Il(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,2))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,2):this.Ff=Il(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,3))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,3):this.Ff=Il(this.Ff,3)}});var fn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==fn)return fn},set:function(en){if(-1===[0,1,2].indexOf(en))throw new Error('Invalid value "'+en+'" for attribute Q supplied.');fn=en}}),Object.defineProperty(this,"textAlign",{get:function(){var en;switch(fn){case 0:default:en="left";break;case 1:en="center";break;case 2:en="right"}return en},configurable:!0,enumerable:!0,set:function(en){switch(en){case"right":case 2:fn=2;break;case"center":case 1:fn=1;break;default:fn=0}}})};H(Ql,ct);var ft=function(){Ql.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var en=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return en},set:function(tn){en=tn}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return en},set:function(tn){en=tn}});var tn=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ol(tn,this.objId,this.scope)},set:function(en){var nn,rn;rn=[],"string"==typeof(nn=en)&&(rn=function(en,tn,nn){nn||(nn=1);for(var rn,an=[];rn=tn.exec(en);)an.push(rn[nn]);return an}(nn,/\((.*?)\)/g)),tn=rn}}),this.getOptions=function(){return tn},this.setOptions=function(en){tn=en,this.sort&&tn.sort()},this.addOption=function(en){en=(en=en||"").toString(),tn.push(en),this.sort&&tn.sort()},this.removeOption=function(en,nn){for(nn=nn||!1,en=(en=en||"").toString();-1!==tn.indexOf(en)&&(tn.splice(tn.indexOf(en),1),!1!==nn););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,18))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,18):this.Ff=Il(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,19))},set:function(en){!0===this.combo&&(!0===Boolean(en)?this.Ff=Nl(this.Ff,19):this.Ff=Il(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,20))},set:function(en){!0===Boolean(en)?(this.Ff=Nl(this.Ff,20),tn.sort()):this.Ff=Il(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,22))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,22):this.Ff=Il(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,23))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,23):this.Ff=Il(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,27))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,27):this.Ff=Il(this.Ff,27)}}),this.hasAppearanceStream=!1};H(ft,Ql);var dt=function(){ft.call(this),this.fontName="helvetica",this.combo=!1};H(dt,ft);var pt=function(){dt.call(this),this.combo=!0};H(pt,dt);var gt=function(){pt.call(this),this.edit=!0};H(gt,pt);var mt=function(){Ql.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,15))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,15):this.Ff=Il(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,16))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,16):this.Ff=Il(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,17))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,17):this.Ff=Il(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,26))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,26):this.Ff=Il(this.Ff,26)}});var en,tn={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(en){return en};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(tn).length){var en,nn=[];for(en in nn.push("<<"),tn)nn.push("/"+en+" ("+R(t(tn[en]))+")");return nn.push(">>"),nn.join("\n")}},set:function(en){"object"===_typeof$1(en)&&(tn=en)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return tn.CA||""},set:function(en){"string"==typeof en&&(tn.CA=en)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return en},set:function(tn){en=tn}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return en.substr(1,en.length-1)},set:function(tn){en="/"+tn}})};H(mt,Ql);var vt=function(){mt.call(this),this.pushButton=!0};H(vt,mt);var bt=function(){mt.call(this),this.radio=!0,this.pushButton=!1;var en=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return en},set:function(tn){en=void 0!==tn?tn:[]}})};H(bt,mt);var yt=function(){var en,tn;Ql.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return en},set:function(tn){en=tn}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return tn},set:function(en){tn=en}});var nn,rn={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(en){return en};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var en,tn=[];for(en in tn.push("<<"),rn)tn.push("/"+en+" ("+R(t(rn[en]))+")");return tn.push(">>"),tn.join("\n")},set:function(en){"object"===_typeof$1(en)&&(rn=en)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return rn.CA||""},set:function(en){"string"==typeof en&&(rn.CA=en)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return nn},set:function(en){nn=en}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return nn.substr(1,nn.length-1)},set:function(en){nn="/"+en}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ql.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};H(yt,Ql),bt.prototype.setAppearance=function(en){if(!("createAppearanceStream"in en)||!("getCA"in en))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var tn in this.Kids)if(this.Kids.hasOwnProperty(tn)){var nn=this.Kids[tn];nn.appearanceStreamContent=en.createAppearanceStream(nn.optionName),nn.caption=en.getCA()}},bt.prototype.createOption=function(en){var tn=new yt;return tn.Parent=this,tn.optionName=en,this.Kids.push(tn),Vl.call(this.scope,tn),tn};var wt=function(){mt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ql.CheckBox.createAppearanceStream()};H(wt,mt);var Nt=function(){Ql.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,13))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,13):this.Ff=Il(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,21))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,21):this.Ff=Il(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,23))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,23):this.Ff=Il(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,24))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,24):this.Ff=Il(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,25))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,25):this.Ff=Il(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,26))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,26):this.Ff=Il(this.Ff,26)}});var en=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return en},set:function(tn){en=tn}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return en},set:function(tn){Number.isInteger(tn)&&(en=tn)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};H(Nt,Ql);var Lt=function(){Nt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ul(this.Ff,14))},set:function(en){!0===Boolean(en)?this.Ff=Nl(this.Ff,14):this.Ff=Il(this.Ff,14)}}),this.password=!0};H(Lt,Nt);var ql={CheckBox:{createAppearanceStream:function(){return{N:{On:ql.CheckBox.YesNormal},D:{On:ql.CheckBox.YesPushDown,Off:ql.CheckBox.OffPushDown}}},YesPushDown:function(en){var tn=V(en);tn.scope=en.scope;var nn=[],rn=en.scope.internal.getFont(en.fontName,en.fontStyle).id,an=en.scope.__private__.encodeColorString(en.color),sn=tt(en,en.caption);return nn.push("0.749023 g"),nn.push("0 0 "+U(ql.internal.getWidth(en))+" "+U(ql.internal.getHeight(en))+" re"),nn.push("f"),nn.push("BMC"),nn.push("q"),nn.push("0 0 1 rg"),nn.push("/"+rn+" "+U(sn.fontSize)+" Tf "+an),nn.push("BT"),nn.push(sn.text),nn.push("ET"),nn.push("Q"),nn.push("EMC"),tn.stream=nn.join("\n"),tn},YesNormal:function(en){var tn=V(en);tn.scope=en.scope;var nn=en.scope.internal.getFont(en.fontName,en.fontStyle).id,rn=en.scope.__private__.encodeColorString(en.color),an=[],sn=ql.internal.getHeight(en),cn=ql.internal.getWidth(en),An=tt(en,en.caption);return an.push("1 g"),an.push("0 0 "+U(cn)+" "+U(sn)+" re"),an.push("f"),an.push("q"),an.push("0 0 1 rg"),an.push("0 0 "+U(cn-1)+" "+U(sn-1)+" re"),an.push("W"),an.push("n"),an.push("0 g"),an.push("BT"),an.push("/"+nn+" "+U(An.fontSize)+" Tf "+rn),an.push(An.text),an.push("ET"),an.push("Q"),tn.stream=an.join("\n"),tn},OffPushDown:function(en){var tn=V(en);tn.scope=en.scope;var nn=[];return nn.push("0.749023 g"),nn.push("0 0 "+U(ql.internal.getWidth(en))+" "+U(ql.internal.getHeight(en))+" re"),nn.push("f"),tn.stream=nn.join("\n"),tn}},RadioButton:{Circle:{createAppearanceStream:function(en){var tn={D:{Off:ql.RadioButton.Circle.OffPushDown},N:{}};return tn.N[en]=ql.RadioButton.Circle.YesNormal,tn.D[en]=ql.RadioButton.Circle.YesPushDown,tn},getCA:function(){return"l"},YesNormal:function(en){var tn=V(en);tn.scope=en.scope;var nn=[],rn=ql.internal.getWidth(en)<=ql.internal.getHeight(en)?ql.internal.getWidth(en)/4:ql.internal.getHeight(en)/4;rn=Number((.9*rn).toFixed(5));var an=ql.internal.Bezier_C,sn=Number((rn*an).toFixed(5));return nn.push("q"),nn.push("1 0 0 1 "+z(ql.internal.getWidth(en)/2)+" "+z(ql.internal.getHeight(en)/2)+" cm"),nn.push(rn+" 0 m"),nn.push(rn+" "+sn+" "+sn+" "+rn+" 0 "+rn+" c"),nn.push("-"+sn+" "+rn+" -"+rn+" "+sn+" -"+rn+" 0 c"),nn.push("-"+rn+" -"+sn+" -"+sn+" -"+rn+" 0 -"+rn+" c"),nn.push(sn+" -"+rn+" "+rn+" -"+sn+" "+rn+" 0 c"),nn.push("f"),nn.push("Q"),tn.stream=nn.join("\n"),tn},YesPushDown:function(en){var tn=V(en);tn.scope=en.scope;var nn=[],rn=ql.internal.getWidth(en)<=ql.internal.getHeight(en)?ql.internal.getWidth(en)/4:ql.internal.getHeight(en)/4;rn=Number((.9*rn).toFixed(5));var an=Number((2*rn).toFixed(5)),sn=Number((an*ql.internal.Bezier_C).toFixed(5)),cn=Number((rn*ql.internal.Bezier_C).toFixed(5));return nn.push("0.749023 g"),nn.push("q"),nn.push("1 0 0 1 "+z(ql.internal.getWidth(en)/2)+" "+z(ql.internal.getHeight(en)/2)+" cm"),nn.push(an+" 0 m"),nn.push(an+" "+sn+" "+sn+" "+an+" 0 "+an+" c"),nn.push("-"+sn+" "+an+" -"+an+" "+sn+" -"+an+" 0 c"),nn.push("-"+an+" -"+sn+" -"+sn+" -"+an+" 0 -"+an+" c"),nn.push(sn+" -"+an+" "+an+" -"+sn+" "+an+" 0 c"),nn.push("f"),nn.push("Q"),nn.push("0 g"),nn.push("q"),nn.push("1 0 0 1 "+z(ql.internal.getWidth(en)/2)+" "+z(ql.internal.getHeight(en)/2)+" cm"),nn.push(rn+" 0 m"),nn.push(rn+" "+cn+" "+cn+" "+rn+" 0 "+rn+" c"),nn.push("-"+cn+" "+rn+" -"+rn+" "+cn+" -"+rn+" 0 c"),nn.push("-"+rn+" -"+cn+" -"+cn+" -"+rn+" 0 -"+rn+" c"),nn.push(cn+" -"+rn+" "+rn+" -"+cn+" "+rn+" 0 c"),nn.push("f"),nn.push("Q"),tn.stream=nn.join("\n"),tn},OffPushDown:function(en){var tn=V(en);tn.scope=en.scope;var nn=[],rn=ql.internal.getWidth(en)<=ql.internal.getHeight(en)?ql.internal.getWidth(en)/4:ql.internal.getHeight(en)/4;rn=Number((.9*rn).toFixed(5));var an=Number((2*rn).toFixed(5)),sn=Number((an*ql.internal.Bezier_C).toFixed(5));return nn.push("0.749023 g"),nn.push("q"),nn.push("1 0 0 1 "+z(ql.internal.getWidth(en)/2)+" "+z(ql.internal.getHeight(en)/2)+" cm"),nn.push(an+" 0 m"),nn.push(an+" "+sn+" "+sn+" "+an+" 0 "+an+" c"),nn.push("-"+sn+" "+an+" -"+an+" "+sn+" -"+an+" 0 c"),nn.push("-"+an+" -"+sn+" -"+sn+" -"+an+" 0 -"+an+" c"),nn.push(sn+" -"+an+" "+an+" -"+sn+" "+an+" 0 c"),nn.push("f"),nn.push("Q"),tn.stream=nn.join("\n"),tn}},Cross:{createAppearanceStream:function(en){var tn={D:{Off:ql.RadioButton.Cross.OffPushDown},N:{}};return tn.N[en]=ql.RadioButton.Cross.YesNormal,tn.D[en]=ql.RadioButton.Cross.YesPushDown,tn},getCA:function(){return"8"},YesNormal:function(en){var tn=V(en);tn.scope=en.scope;var nn=[],rn=ql.internal.calculateCross(en);return nn.push("q"),nn.push("1 1 "+U(ql.internal.getWidth(en)-2)+" "+U(ql.internal.getHeight(en)-2)+" re"),nn.push("W"),nn.push("n"),nn.push(U(rn.x1.x)+" "+U(rn.x1.y)+" m"),nn.push(U(rn.x2.x)+" "+U(rn.x2.y)+" l"),nn.push(U(rn.x4.x)+" "+U(rn.x4.y)+" m"),nn.push(U(rn.x3.x)+" "+U(rn.x3.y)+" l"),nn.push("s"),nn.push("Q"),tn.stream=nn.join("\n"),tn},YesPushDown:function(en){var tn=V(en);tn.scope=en.scope;var nn=ql.internal.calculateCross(en),rn=[];return rn.push("0.749023 g"),rn.push("0 0 "+U(ql.internal.getWidth(en))+" "+U(ql.internal.getHeight(en))+" re"),rn.push("f"),rn.push("q"),rn.push("1 1 "+U(ql.internal.getWidth(en)-2)+" "+U(ql.internal.getHeight(en)-2)+" re"),rn.push("W"),rn.push("n"),rn.push(U(nn.x1.x)+" "+U(nn.x1.y)+" m"),rn.push(U(nn.x2.x)+" "+U(nn.x2.y)+" l"),rn.push(U(nn.x4.x)+" "+U(nn.x4.y)+" m"),rn.push(U(nn.x3.x)+" "+U(nn.x3.y)+" l"),rn.push("s"),rn.push("Q"),tn.stream=rn.join("\n"),tn},OffPushDown:function(en){var tn=V(en);tn.scope=en.scope;var nn=[];return nn.push("0.749023 g"),nn.push("0 0 "+U(ql.internal.getWidth(en))+" "+U(ql.internal.getHeight(en))+" re"),nn.push("f"),tn.stream=nn.join("\n"),tn}}},createDefaultAppearanceStream:function(en){var tn=en.scope.internal.getFont(en.fontName,en.fontStyle).id,nn=en.scope.__private__.encodeColorString(en.color);return"/"+tn+" "+en.fontSize+" Tf "+nn}};ql.internal={Bezier_C:.551915024494,calculateCross:function(en){var tn=ql.internal.getWidth(en),nn=ql.internal.getHeight(en),rn=Math.min(tn,nn);return{x1:{x:(tn-rn)/2,y:(nn-rn)/2+rn},x2:{x:(tn-rn)/2+rn,y:(nn-rn)/2},x3:{x:(tn-rn)/2,y:(nn-rn)/2},x4:{x:(tn-rn)/2+rn,y:(nn-rn)/2+rn}}}},ql.internal.getWidth=function(en){var tn=0;return"object"===_typeof$1(en)&&(tn=W(en.Rect[2])),tn},ql.internal.getHeight=function(en){var tn=0;return"object"===_typeof$1(en)&&(tn=W(en.Rect[3])),tn};var Vl=jl.addField=function(en){if(function(en,tn){if(tn.scope=en,void 0!==en.internal&&(void 0===en.internal.acroformPlugin||!1===en.internal.acroformPlugin.isInitialized)){if(Ql.FieldNum=0,en.internal.acroformPlugin=JSON.parse(JSON.stringify(Rl)),en.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ll=en.internal.scaleFactor,en.internal.acroformPlugin.acroFormDictionaryRoot=new ht,en.internal.acroformPlugin.acroFormDictionaryRoot.scope=en,en.internal.acroformPlugin.acroFormDictionaryRoot._eventID=en.internal.events.subscribe("postPutResources",(function(){!function(en){en.internal.events.unsubscribe(en.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete en.internal.acroformPlugin.acroFormDictionaryRoot._eventID,en.internal.acroformPlugin.printedOut=!0}(en)})),en.internal.events.subscribe("buildDocument",(function(){!function(en){en.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var tn=en.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var nn in tn)if(tn.hasOwnProperty(nn)){var rn=tn[nn];rn.objId=void 0,rn.hasAnnotation&&nt(rn,en)}}(en)})),en.internal.events.subscribe("putCatalog",(function(){!function(en){if(void 0===en.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");en.internal.write("/AcroForm "+en.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(en)})),en.internal.events.subscribe("postPutPages",(function(tn){!function(en,tn){var nn=!en;for(var rn in en||(tn.internal.newObjectDeferredBegin(tn.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),tn.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),en=en||tn.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(en.hasOwnProperty(rn)){var an=en[rn],sn=[],cn=an.Rect;if(an.Rect&&(an.Rect=Ml(an.Rect,tn)),tn.internal.newObjectDeferredBegin(an.objId,!0),an.DA=ql.createDefaultAppearanceStream(an),"object"===_typeof$1(an)&&"function"==typeof an.getKeyValueListForStream&&(sn=an.getKeyValueListForStream()),an.Rect=cn,an.hasAppearanceStream&&!an.appearanceStreamContent){var An=Q(an);sn.push({key:"AP",value:"<</N "+An+">>"}),tn.internal.acroformPlugin.xForms.push(An)}if(an.appearanceStreamContent){var dn="";for(var un in an.appearanceStreamContent)if(an.appearanceStreamContent.hasOwnProperty(un)){var pn=an.appearanceStreamContent[un];if(dn+="/"+un+" ",dn+="<<",Object.keys(pn).length>=1||Array.isArray(pn)){for(var rn in pn)if(pn.hasOwnProperty(rn)){var hn=pn[rn];"function"==typeof hn&&(hn=hn.call(tn,an)),dn+="/"+rn+" "+hn+" ",tn.internal.acroformPlugin.xForms.indexOf(hn)>=0||tn.internal.acroformPlugin.xForms.push(hn)}}else"function"==typeof(hn=pn)&&(hn=hn.call(tn,an)),dn+="/"+rn+" "+hn,tn.internal.acroformPlugin.xForms.indexOf(hn)>=0||tn.internal.acroformPlugin.xForms.push(hn);dn+=">>"}sn.push({key:"AP",value:"<<\n"+dn+">>"})}tn.internal.putStream({additionalKeyValues:sn,objectId:an.objId}),tn.internal.out("endobj")}nn&&function(en,tn){for(var nn in en)if(en.hasOwnProperty(nn)){var rn=nn,an=en[nn];tn.internal.newObjectDeferredBegin(an.objId,!0),"object"===_typeof$1(an)&&"function"==typeof an.putStream&&an.putStream(),delete en[rn]}}(tn.internal.acroformPlugin.xForms,tn)}(tn,en)})),en.internal.acroformPlugin.isInitialized=!0}}(this,en),!(en instanceof Ql))throw new Error("Invalid argument passed to jsPDF.addField.");var tn;return(tn=en).scope.internal.acroformPlugin.printedOut&&(tn.scope.internal.acroformPlugin.printedOut=!1,tn.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),tn.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(tn),en.page=en.scope.internal.getCurrentPageInfo().pageNumber,this};function _t(en){return en.reduce((function(en,tn,nn){return en[tn]=nn,en}),{})}jl.AcroFormChoiceField=ft,jl.AcroFormListBox=dt,jl.AcroFormComboBox=pt,jl.AcroFormEditBox=gt,jl.AcroFormButton=mt,jl.AcroFormPushButton=vt,jl.AcroFormRadioButton=bt,jl.AcroFormCheckBox=wt,jl.AcroFormTextField=Nt,jl.AcroFormPasswordField=Lt,jl.AcroFormAppearance=ql,jl.AcroForm={ChoiceField:ft,ListBox:dt,ComboBox:pt,EditBox:gt,Button:mt,PushButton:vt,RadioButton:bt,CheckBox:wt,TextField:Nt,PasswordField:Lt,Appearance:ql},E.AcroForm={ChoiceField:ft,ListBox:dt,ComboBox:pt,EditBox:gt,Button:mt,PushButton:vt,RadioButton:bt,CheckBox:wt,TextField:Nt,PasswordField:Lt,Appearance:ql},E.AcroForm,function(en){en.__addimage__={};var tn="UNKNOWN",nn={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},rn=en.__addimage__.getImageFileTypeByImageData=function(en,rn){var an,sn,cn,An,dn,un=tn;if("RGBA"===(rn=rn||tn)||void 0!==en.data&&en.data instanceof Uint8ClampedArray&&"height"in en&&"width"in en)return"RGBA";if(hn(en))for(dn in nn)for(cn=nn[dn],an=0;an<cn.length;an+=1){for(An=!0,sn=0;sn<cn[an].length;sn+=1)if(void 0!==cn[an][sn]&&cn[an][sn]!==en[sn]){An=!1;break}if(!0===An){un=dn;break}}else for(dn in nn)for(cn=nn[dn],an=0;an<cn.length;an+=1){for(An=!0,sn=0;sn<cn[an].length;sn+=1)if(void 0!==cn[an][sn]&&cn[an][sn]!==en.charCodeAt(sn)){An=!1;break}if(!0===An){un=dn;break}}return un===tn&&rn!==tn&&(un=rn),un},an=function t(en){for(var tn=this.internal.write,nn=this.internal.putStream,rn=(0,this.internal.getFilters)();-1!==rn.indexOf("FlateEncode");)rn.splice(rn.indexOf("FlateEncode"),1);en.objectId=this.internal.newObject();var an=[];if(an.push({key:"Type",value:"/XObject"}),an.push({key:"Subtype",value:"/Image"}),an.push({key:"Width",value:en.width}),an.push({key:"Height",value:en.height}),en.colorSpace===sn.INDEXED?an.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(en.palette.length/3-1)+" "+("sMask"in en&&void 0!==en.sMask?en.objectId+2:en.objectId+1)+" 0 R]"}):(an.push({key:"ColorSpace",value:"/"+en.colorSpace}),en.colorSpace===sn.DEVICE_CMYK&&an.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),an.push({key:"BitsPerComponent",value:en.bitsPerComponent}),"decodeParameters"in en&&void 0!==en.decodeParameters&&an.push({key:"DecodeParms",value:"<<"+en.decodeParameters+">>"}),"transparency"in en&&Array.isArray(en.transparency)){for(var cn="",An=0,dn=en.transparency.length;An<dn;An++)cn+=en.transparency[An]+" "+en.transparency[An]+" ";an.push({key:"Mask",value:"["+cn+"]"})}void 0!==en.sMask&&an.push({key:"SMask",value:en.objectId+1+" 0 R"});var un=void 0!==en.filter?["/"+en.filter]:void 0;if(nn({data:en.data,additionalKeyValues:an,alreadyAppliedFilters:un,objectId:en.objectId}),tn("endobj"),"sMask"in en&&void 0!==en.sMask){var pn="/Predictor "+en.predictor+" /Colors 1 /BitsPerComponent "+en.bitsPerComponent+" /Columns "+en.width,hn={width:en.width,height:en.height,colorSpace:"DeviceGray",bitsPerComponent:en.bitsPerComponent,decodeParameters:pn,data:en.sMask};"filter"in en&&(hn.filter=en.filter),t.call(this,hn)}if(en.colorSpace===sn.INDEXED){var gn=this.internal.newObject();nn({data:_n(new Uint8Array(en.palette)),objectId:gn}),tn("endobj")}},o=function(){var en=this.internal.collections.addImage_images;for(var tn in en)an.call(this,en[tn])},s=function(){var en,tn=this.internal.collections.addImage_images,nn=this.internal.write;for(var rn in tn)nn("/I"+(en=tn[rn]).index,en.objectId,"0","R")},c=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},h=function(){var en=this.internal.collections.addImage_images;return c.call(this),en},l=function(){return Object.keys(this.internal.collections.addImage_images).length},f=function(tn){return"function"==typeof en["process"+tn.toUpperCase()]},d=function(en){return"object"===_typeof$1(en)&&1===en.nodeType},p=function(tn,nn){if("IMG"===tn.nodeName&&tn.hasAttribute("src")){var rn=""+tn.getAttribute("src");if(0===rn.indexOf("data:image/"))return xl(unescape(rn).split("base64,").pop());var an=en.loadFile(rn,!0);if(void 0!==an)return an}if("CANVAS"===tn.nodeName){if(0===tn.width||0===tn.height)throw new Error("Given canvas must have data. Canvas width: "+tn.width+", height: "+tn.height);var sn;switch(nn){case"PNG":sn="image/png";break;case"WEBP":sn="image/webp";break;default:sn="image/jpeg"}return xl(tn.toDataURL(sn,1).split("base64,").pop())}},g=function(en){var tn=this.internal.collections.addImage_images;if(tn)for(var nn in tn)if(en===tn[nn].alias)return tn[nn]},m=function(en,tn,nn){return en||tn||(en=-96,tn=-96),en<0&&(en=-1*nn.width*72/en/this.internal.scaleFactor),tn<0&&(tn=-1*nn.height*72/tn/this.internal.scaleFactor),0===en&&(en=tn*nn.width/nn.height),0===tn&&(tn=en*nn.height/nn.width),[en,tn]},v=function(en,tn,nn,rn,an,sn){var cn=m.call(this,nn,rn,an),An=this.internal.getCoordinateString,dn=this.internal.getVerticalCoordinateString,un=h.call(this);if(nn=cn[0],rn=cn[1],un[an.index]=an,sn){sn*=Math.PI/180;var pn=Math.cos(sn),hn=Math.sin(sn),d=function(en){return en.toFixed(4)},gn=[d(pn),d(hn),d(-1*hn),d(pn),0,0,"cm"]}this.internal.write("q"),sn?(this.internal.write([1,"0","0",1,An(en),dn(tn+rn),"cm"].join(" ")),this.internal.write(gn.join(" ")),this.internal.write([An(nn),"0","0",An(rn),"0","0","cm"].join(" "))):this.internal.write([An(nn),"0","0",An(rn),An(en),dn(tn+rn),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+an.index+" Do"),this.internal.write("Q")},sn=en.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};en.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var cn=en.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},An=en.__addimage__.sHashCode=function(en){var tn,nn,rn=0;if("string"==typeof en)for(nn=en.length,tn=0;tn<nn;tn++)rn=(rn<<5)-rn+en.charCodeAt(tn),rn|=0;else if(hn(en))for(nn=en.byteLength/2,tn=0;tn<nn;tn++)rn=(rn<<5)-rn+en[tn],rn|=0;return rn},dn=en.__addimage__.validateStringAsBase64=function(en){(en=en||"").toString().trim();var tn=!0;return 0===en.length&&(tn=!1),en.length%4!=0&&(tn=!1),!1===/^[A-Za-z0-9+/]+$/.test(en.substr(0,en.length-2))&&(tn=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(en.substr(-2))&&(tn=!1),tn},un=en.__addimage__.extractImageFromDataUrl=function(en){var tn=(en=en||"").split("base64,"),nn=null;if(2===tn.length){var rn=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(tn[0]);Array.isArray(rn)&&(nn={mimeType:rn[1],charset:rn[2],data:tn[1]})}return nn},pn=en.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};en.__addimage__.isArrayBuffer=function(en){return pn()&&en instanceof ArrayBuffer};var hn=en.__addimage__.isArrayBufferView=function(en){return pn()&&"undefined"!=typeof Uint32Array&&(en instanceof Int8Array||en instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&en instanceof Uint8ClampedArray||en instanceof Int16Array||en instanceof Uint16Array||en instanceof Int32Array||en instanceof Uint32Array||en instanceof Float32Array||en instanceof Float64Array)},gn=en.__addimage__.binaryStringToUint8Array=function(en){for(var tn=en.length,nn=new Uint8Array(tn),rn=0;rn<tn;rn++)nn[rn]=en.charCodeAt(rn);return nn},_n=en.__addimage__.arrayBufferToBinaryString=function(en){for(var tn="",nn=hn(en)?en:new Uint8Array(en),rn=0;rn<nn.length;rn+=8192)tn+=String.fromCharCode.apply(null,nn.subarray(rn,rn+8192));return tn};en.addImage=function(){var en,nn,rn,an,sn,cn,An,dn,un;if("number"==typeof arguments[1]?(nn=tn,rn=arguments[1],an=arguments[2],sn=arguments[3],cn=arguments[4],An=arguments[5],dn=arguments[6],un=arguments[7]):(nn=arguments[1],rn=arguments[2],an=arguments[3],sn=arguments[4],cn=arguments[5],An=arguments[6],dn=arguments[7],un=arguments[8]),"object"===_typeof$1(en=arguments[0])&&!d(en)&&"imageData"in en){var pn=en;en=pn.imageData,nn=pn.format||nn||tn,rn=pn.x||rn||0,an=pn.y||an||0,sn=pn.w||pn.width||sn,cn=pn.h||pn.height||cn,An=pn.alias||An,dn=pn.compression||dn,un=pn.rotation||pn.angle||un}var hn=this.internal.getFilters();if(void 0===dn&&-1!==hn.indexOf("FlateEncode")&&(dn="SLOW"),isNaN(rn)||isNaN(an))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var gn=P.call(this,en,nn,An,dn);return v.call(this,rn,an,sn,cn,gn,un),this};var P=function(nn,an,sn,dn){var un,_n,fn;if("string"==typeof nn&&rn(nn)===tn){nn=unescape(nn);var yn=mn(nn,!1);(""!==yn||void 0!==(yn=en.loadFile(nn,!0)))&&(nn=yn)}if(d(nn)&&(nn=p(nn,an)),an=rn(nn,an),!f(an))throw new Error("addImage does not support files of type '"+an+"', please ensure that a plugin for '"+an+"' support is added.");if((null==(fn=sn)||0===fn.length)&&(sn=function(en){return"string"==typeof en||hn(en)?An(en):hn(en.data)?An(en.data):null}(nn)),(un=g.call(this,sn))||(pn()&&(nn instanceof Uint8Array||"RGBA"===an||(_n=nn,nn=gn(nn))),un=this["process"+an.toUpperCase()](nn,l.call(this),sn,function(tn){return tn&&"string"==typeof tn&&(tn=tn.toUpperCase()),tn in en.image_compression?tn:cn.NONE}(dn),_n)),!un)throw new Error("An unknown error occurred whilst processing the image.");return un},mn=en.__addimage__.convertBase64ToBinaryString=function(en,tn){var nn;tn="boolean"!=typeof tn||tn;var rn,an="";if("string"==typeof en){rn=null!==(nn=un(en))?nn.data:en;try{an=xl(rn)}catch(en){if(tn)throw dn(rn)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+en.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return an};en.getImageProperties=function(nn){var an,sn,cn="";if(d(nn)&&(nn=p(nn)),"string"==typeof nn&&rn(nn)===tn&&(""===(cn=mn(nn,!1))&&(cn=en.loadFile(nn)||""),nn=cn),sn=rn(nn),!f(sn))throw new Error("addImage does not support files of type '"+sn+"', please ensure that a plugin for '"+sn+"' support is added.");if(!pn()||nn instanceof Uint8Array||(nn=gn(nn)),!(an=this["process"+sn.toUpperCase()](nn)))throw new Error("An unknown error occurred whilst processing the image");return an.fileType=sn,an}}(E.API),
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(en){var e=function(en){if(void 0!==en&&""!=en)return!0};E.API.events.push(["addPage",function(en){this.internal.getPageInfo(en.pageNumber).pageContext.annotations=[]}]),en.events.push(["putPage",function(en){for(var tn,nn,rn,an=this.internal.getCoordinateString,sn=this.internal.getVerticalCoordinateString,cn=this.internal.getPageInfoByObjId(en.objId),An=en.pageContext.annotations,dn=!1,un=0;un<An.length&&!dn;un++)switch((tn=An[un]).type){case"link":(e(tn.options.url)||e(tn.options.pageNumber))&&(dn=!0);break;case"reference":case"text":case"freetext":dn=!0}if(0!=dn){this.internal.write("/Annots [");for(var pn=0;pn<An.length;pn++){tn=An[pn];var hn=this.internal.pdfEscape,gn=this.internal.getEncryptor(en.objId);switch(tn.type){case"reference":this.internal.write(" "+tn.object.objId+" 0 R ");break;case"text":var _n=this.internal.newAdditionalObject(),mn=this.internal.newAdditionalObject(),fn=this.internal.getEncryptor(_n.objId),yn=tn.title||"Note";rn="<</Type /Annot /Subtype /Text "+(nn="/Rect ["+an(tn.bounds.x)+" "+sn(tn.bounds.y+tn.bounds.h)+" "+an(tn.bounds.x+tn.bounds.w)+" "+sn(tn.bounds.y)+"] ")+"/Contents ("+hn(fn(tn.contents))+")",rn+=" /Popup "+mn.objId+" 0 R",rn+=" /P "+cn.objId+" 0 R",rn+=" /T ("+hn(fn(yn))+") >>",_n.content=rn;var bn=_n.objId+" 0 R";rn="<</Type /Annot /Subtype /Popup "+(nn="/Rect ["+an(tn.bounds.x+30)+" "+sn(tn.bounds.y+tn.bounds.h)+" "+an(tn.bounds.x+tn.bounds.w+30)+" "+sn(tn.bounds.y)+"] ")+" /Parent "+bn,tn.open&&(rn+=" /Open true"),rn+=" >>",mn.content=rn,this.internal.write(_n.objId,"0 R",mn.objId,"0 R");break;case"freetext":nn="/Rect ["+an(tn.bounds.x)+" "+sn(tn.bounds.y)+" "+an(tn.bounds.x+tn.bounds.w)+" "+sn(tn.bounds.y+tn.bounds.h)+"] ";var vn=tn.color||"#000000";rn="<</Type /Annot /Subtype /FreeText "+nn+"/Contents ("+hn(gn(tn.contents))+")",rn+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+vn+")",rn+=" /Border [0 0 0]",rn+=" >>",this.internal.write(rn);break;case"link":if(tn.options.name){var wn=this.annotations._nameMap[tn.options.name];tn.options.pageNumber=wn.page,tn.options.top=wn.y}else tn.options.top||(tn.options.top=0);if(nn="/Rect ["+tn.finalBounds.x+" "+tn.finalBounds.y+" "+tn.finalBounds.w+" "+tn.finalBounds.h+"] ",rn="",tn.options.url)rn="<</Type /Annot /Subtype /Link "+nn+"/Border [0 0 0] /A <</S /URI /URI ("+hn(gn(tn.options.url))+") >>";else if(tn.options.pageNumber)switch(rn="<</Type /Annot /Subtype /Link "+nn+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(tn.options.pageNumber).objId+" 0 R",tn.options.magFactor=tn.options.magFactor||"XYZ",tn.options.magFactor){case"Fit":rn+=" /Fit]";break;case"FitH":rn+=" /FitH "+tn.options.top+"]";break;case"FitV":tn.options.left=tn.options.left||0,rn+=" /FitV "+tn.options.left+"]";break;default:var xn=sn(tn.options.top);tn.options.left=tn.options.left||0,void 0===tn.options.zoom&&(tn.options.zoom=0),rn+=" /XYZ "+tn.options.left+" "+xn+" "+tn.options.zoom+"]"}""!=rn&&(rn+=" >>",this.internal.write(rn))}}this.internal.write("]")}}]),en.createAnnotation=function(en){var tn=this.internal.getCurrentPageInfo();switch(en.type){case"link":this.link(en.bounds.x,en.bounds.y,en.bounds.w,en.bounds.h,en);break;case"text":case"freetext":tn.pageContext.annotations.push(en)}},en.link=function(en,tn,nn,rn,an){var sn=this.internal.getCurrentPageInfo(),cn=this.internal.getCoordinateString,An=this.internal.getVerticalCoordinateString;sn.pageContext.annotations.push({finalBounds:{x:cn(en),y:An(tn),w:cn(en+nn),h:An(tn+rn)},options:an,type:"link"})},en.textWithLink=function(en,tn,nn,rn){var an,sn,cn=this.getTextWidth(en),An=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==rn.maxWidth){sn=rn.maxWidth;var dn=this.splitTextToSize(en,sn).length;an=Math.ceil(An*dn)}else sn=cn,an=An;return this.text(en,tn,nn,rn),nn+=.2*An,"center"===rn.align&&(tn-=cn/2),"right"===rn.align&&(tn-=cn),this.link(tn,nn-An,sn,an,rn),cn},en.getTextWidth=function(en){var tn=this.internal.getFontSize();return this.getStringUnitWidth(en)*tn/this.internal.scaleFactor}}(E.API),
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(en){var tn={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},nn={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},rn={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},an=[1570,1571,1573,1575];en.__arabicParser__={};var sn=en.__arabicParser__.isInArabicSubstitutionA=function(en){return void 0!==tn[en.charCodeAt(0)]},cn=en.__arabicParser__.isArabicLetter=function(en){return"string"==typeof en&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(en)},An=en.__arabicParser__.isArabicEndLetter=function(en){return cn(en)&&sn(en)&&tn[en.charCodeAt(0)].length<=2},dn=en.__arabicParser__.isArabicAlfLetter=function(en){return cn(en)&&an.indexOf(en.charCodeAt(0))>=0};en.__arabicParser__.arabicLetterHasIsolatedForm=function(en){return cn(en)&&sn(en)&&tn[en.charCodeAt(0)].length>=1};var un=en.__arabicParser__.arabicLetterHasFinalForm=function(en){return cn(en)&&sn(en)&&tn[en.charCodeAt(0)].length>=2};en.__arabicParser__.arabicLetterHasInitialForm=function(en){return cn(en)&&sn(en)&&tn[en.charCodeAt(0)].length>=3};var pn=en.__arabicParser__.arabicLetterHasMedialForm=function(en){return cn(en)&&sn(en)&&4==tn[en.charCodeAt(0)].length},hn=en.__arabicParser__.resolveLigatures=function(en){var tn=0,rn=nn,an="",sn=0;for(tn=0;tn<en.length;tn+=1)void 0!==rn[en.charCodeAt(tn)]?(sn++,"number"==typeof(rn=rn[en.charCodeAt(tn)])&&(an+=String.fromCharCode(rn),rn=nn,sn=0),tn===en.length-1&&(rn=nn,an+=en.charAt(tn-(sn-1)),tn-=sn-1,sn=0)):(rn=nn,an+=en.charAt(tn-sn),tn-=sn,sn=0);return an};en.__arabicParser__.isArabicDiacritic=function(en){return void 0!==en&&void 0!==rn[en.charCodeAt(0)]};var gn=en.__arabicParser__.getCorrectForm=function(en,tn,nn){return cn(en)?!1===sn(en)?-1:!un(en)||!cn(tn)&&!cn(nn)||!cn(nn)&&An(tn)||An(en)&&!cn(tn)||An(en)&&dn(tn)||An(en)&&An(tn)?0:pn(en)&&cn(tn)&&!An(tn)&&cn(nn)&&un(nn)?3:An(en)||!cn(nn)?1:2:-1},d=function(en){var nn=0,rn=0,an=0,sn="",An="",dn="",un=(en=en||"").split("\\s+"),pn=[];for(nn=0;nn<un.length;nn+=1){for(pn.push(""),rn=0;rn<un[nn].length;rn+=1)sn=un[nn][rn],An=un[nn][rn-1],dn=un[nn][rn+1],cn(sn)?(an=gn(sn,An,dn),pn[nn]+=-1!==an?String.fromCharCode(tn[sn.charCodeAt(0)][an]):sn):pn[nn]+=sn;pn[nn]=hn(pn[nn])}return pn.join(" ")},_n=en.__arabicParser__.processArabic=en.processArabic=function(){var en,tn="string"==typeof arguments[0]?arguments[0]:arguments[0].text,nn=[];if(Array.isArray(tn)){var rn=0;for(nn=[],rn=0;rn<tn.length;rn+=1)Array.isArray(tn[rn])?nn.push([d(tn[rn][0]),tn[rn][1],tn[rn][2]]):nn.push([d(tn[rn])]);en=nn}else en=d(tn);return"string"==typeof arguments[0]?en:(arguments[0].text=en,arguments[0])};en.events.push(["preProcessText",_n])}(E.API),E.API.autoPrint=function(en){var tn;return"javascript"===((en=en||{}).variant=en.variant||"non-conform",en.variant)?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",(function(){tn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+tn+" 0 R")}))),this},
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(en){var e=function(){var en=void 0;Object.defineProperty(this,"pdf",{get:function(){return en},set:function(tn){en=tn}});var tn=150;Object.defineProperty(this,"width",{get:function(){return tn},set:function(en){tn=isNaN(en)||!1===Number.isInteger(en)||en<0?150:en,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=tn+1)}});var nn=300;Object.defineProperty(this,"height",{get:function(){return nn},set:function(en){nn=isNaN(en)||!1===Number.isInteger(en)||en<0?300:en,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=nn+1)}});var rn=[];Object.defineProperty(this,"childNodes",{get:function(){return rn},set:function(en){rn=en}});var an={};Object.defineProperty(this,"style",{get:function(){return an},set:function(en){an=en}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(en,tn){var nn;if("2d"!==(en=en||"2d"))return null;for(nn in tn)this.pdf.context2d.hasOwnProperty(nn)&&(this.pdf.context2d[nn]=tn[nn]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},en.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(E.API),function(en){var tn={left:0,top:0,bottom:0,right:0},nn=!1,i=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},tn),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var en=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return en},set:function(tn){en=tn}});var tn=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return tn},set:function(en){tn=en}});var nn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return nn},set:function(en){nn=en}});var rn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return rn},set:function(en){rn=en}});var an=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return an},set:function(en){an=en}});var sn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return sn},set:function(en){sn=en}});var cn=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return cn},set:function(en){cn=en}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},en.setHeaderFunction=function(en){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof en?en:void 0,this},en.getTextDimensions=function(en,tn){i.call(this);var nn=(tn=tn||{}).fontSize||this.getFontSize(),rn=tn.font||this.getFont(),an=tn.scaleFactor||this.internal.scaleFactor,sn=0,cn=0,An=0,dn=this;if(!Array.isArray(en)&&"string"!=typeof en){if("number"!=typeof en)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");en=String(en)}var un=tn.maxWidth;un>0?"string"==typeof en?en=this.splitTextToSize(en,un):"[object Array]"===Object.prototype.toString.call(en)&&(en=en.reduce((function(en,tn){return en.concat(dn.splitTextToSize(tn,un))}),[])):en=Array.isArray(en)?en:[en];for(var pn=0;pn<en.length;pn++)sn<(An=this.getStringUnitWidth(en[pn],{font:rn})*nn)&&(sn=An);return 0!==sn&&(cn=en.length),{w:sn/=an,h:Math.max((cn*nn*this.getLineHeightFactor()-nn*(this.getLineHeightFactor()-1))/an,0)}},en.cellAddPage=function(){i.call(this),this.addPage();var en=this.internal.__cell__.margins||tn;return this.internal.__cell__.lastCell=new o(en.left,en.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var rn=en.cell=function(){var en;en=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var rn=this.internal.__cell__.lastCell,an=this.internal.__cell__.padding,sn=this.internal.__cell__.margins||tn,cn=this.internal.__cell__.tableHeaderRow,An=this.internal.__cell__.printHeaders;return void 0!==rn.lineNumber&&(rn.lineNumber===en.lineNumber?(en.x=(rn.x||0)+(rn.width||0),en.y=rn.y||0):rn.y+rn.height+en.height+sn.bottom>this.getPageHeight()?(this.cellAddPage(),en.y=sn.top,An&&cn&&(this.printHeaderRow(en.lineNumber,!0),en.y+=cn[0].height)):en.y=rn.y+rn.height||en.y),void 0!==en.text[0]&&(this.rect(en.x,en.y,en.width,en.height,!0===nn?"FD":void 0),"right"===en.align?this.text(en.text,en.x+en.width-an,en.y+an,{align:"right",baseline:"top"}):"center"===en.align?this.text(en.text,en.x+en.width/2,en.y+an,{align:"center",baseline:"top",maxWidth:en.width-an-an}):this.text(en.text,en.x+an,en.y+an,{align:"left",baseline:"top",maxWidth:en.width-an-an})),this.internal.__cell__.lastCell=en,this};en.table=function(en,nn,an,sn,cn){if(i.call(this),!an)throw new Error("No data for PDF table.");var An,dn,un,pn,hn=[],gn=[],_n=[],mn={},fn={},yn=[],bn=[],vn=(cn=cn||{}).autoSize||!1,wn=!1!==cn.printHeaders,xn=cn.css&&void 0!==cn.css["font-size"]?16*cn.css["font-size"]:cn.fontSize||12,kn=cn.margins||Object.assign({width:this.getPageWidth()},tn),Cn="number"==typeof cn.padding?cn.padding:3,Sn=cn.headerBackgroundColor||"#c8c8c8",Bn=cn.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=wn,this.internal.__cell__.margins=kn,this.internal.__cell__.table_font_size=xn,this.internal.__cell__.padding=Cn,this.internal.__cell__.headerBackgroundColor=Sn,this.internal.__cell__.headerTextColor=Bn,this.setFontSize(xn),null==sn)gn=hn=Object.keys(an[0]),_n=hn.map((function(){return"left"}));else if(Array.isArray(sn)&&"object"===_typeof$1(sn[0]))for(hn=sn.map((function(en){return en.name})),gn=sn.map((function(en){return en.prompt||en.name||""})),_n=sn.map((function(en){return en.align||"left"})),An=0;An<sn.length;An+=1)fn[sn[An].name]=sn[An].width*(19.049976/25.4);else Array.isArray(sn)&&"string"==typeof sn[0]&&(gn=hn=sn,_n=hn.map((function(){return"left"})));if(vn||Array.isArray(sn)&&"string"==typeof sn[0])for(An=0;An<hn.length;An+=1){for(mn[pn=hn[An]]=an.map((function(en){return en[pn]})),this.setFont(void 0,"bold"),yn.push(this.getTextDimensions(gn[An],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),dn=mn[pn],this.setFont(void 0,"normal"),un=0;un<dn.length;un+=1)yn.push(this.getTextDimensions(dn[un],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);fn[pn]=Math.max.apply(null,yn)+Cn+Cn,yn=[]}if(wn){var En={};for(An=0;An<hn.length;An+=1)En[hn[An]]={},En[hn[An]].text=gn[An],En[hn[An]].align=_n[An];var jn=c.call(this,En,fn);bn=hn.map((function(tn){return new o(en,nn,fn[tn],jn,En[tn].text,void 0,En[tn].align)})),this.setTableHeaderRow(bn),this.printHeaderRow(1,!1)}var Ln=sn.reduce((function(en,tn){return en[tn.name]=tn.align,en}),{});for(An=0;An<an.length;An+=1){"rowStart"in cn&&cn.rowStart instanceof Function&&cn.rowStart({row:An,data:an[An]},this);var Pn=c.call(this,an[An],fn);for(un=0;un<hn.length;un+=1){var Tn=an[An][hn[un]];"cellStart"in cn&&cn.cellStart instanceof Function&&cn.cellStart({row:An,col:un,data:Tn},this),rn.call(this,new o(en,nn,fn[hn[un]],Pn,Tn,An+2,Ln[hn[un]]))}}return this.internal.__cell__.table_x=en,this.internal.__cell__.table_y=nn,this};var c=function(en,tn){var nn=this.internal.__cell__.padding,rn=this.internal.__cell__.table_font_size,an=this.internal.scaleFactor;return Object.keys(en).map((function(rn){var an=en[rn];return this.splitTextToSize(an.hasOwnProperty("text")?an.text:an,tn[rn]-nn-nn)}),this).map((function(en){return this.getLineHeightFactor()*en.length*rn/an+nn+nn}),this).reduce((function(en,tn){return Math.max(en,tn)}),0)};en.setTableHeaderRow=function(en){i.call(this),this.internal.__cell__.tableHeaderRow=en},en.printHeaderRow=function(en,tn){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var an;if(nn=!0,"function"==typeof this.internal.__cell__.headerFunction){var sn=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(sn[0],sn[1],sn[2],sn[3],void 0,-1)}this.setFont(void 0,"bold");for(var cn=[],An=0;An<this.internal.__cell__.tableHeaderRow.length;An+=1){an=this.internal.__cell__.tableHeaderRow[An].clone(),tn&&(an.y=this.internal.__cell__.margins.top||0,cn.push(an)),an.lineNumber=en;var dn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),rn.call(this,an),this.setTextColor(dn)}cn.length>0&&this.setTableHeaderRow(cn),this.setFont(void 0,"normal"),nn=!1}}(E.API);var Gl={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Dl=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Hl=_t(Dl),zl=[100,200,300,400,500,600,700,800,900],Kl=_t(zl);function jt(en){var tn=en.family.replace(/"|'/g,"").toLowerCase(),nn=function(en){return Gl[en=en||"normal"]?en:"normal"}(en.style),rn=function(en){return en?"number"==typeof en?en>=100&&en<=900&&en%100==0?en:400:/^\d00$/.test(en)?parseInt(en):"bold"===en?700:400:400}(en.weight),an=function(en){return"number"==typeof Hl[en=en||"normal"]?en:"normal"}(en.stretch);return{family:tn,style:nn,weight:rn,stretch:an,src:en.src||[],ref:en.ref||{name:tn,style:[an,nn,rn].join(" ")}}}function Ot(en,tn,nn,rn){var an;for(an=nn;an>=0&&an<tn.length;an+=rn)if(en[tn[an]])return en[tn[an]];for(an=nn;an>=0&&an<tn.length;an-=rn)if(en[tn[an]])return en[tn[an]]}var $l={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Wl={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Et(en){return[en.stretch,en.style,en.weight,en.family].join(" ")}function Dt(en){return en.trimLeft()}function Rt(en,tn){for(var nn=0;nn<en.length;){if(en.charAt(nn)===tn)return[en.substring(0,nn),en.substring(nn+1)];nn+=1}return null}function Tt(en){var tn=en.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===tn?null:[tn[0],en.substring(tn[0].length)]}var Xl,Yl,Zl,Jl=["times"];!function(en){var tn,nn,rn,an,sn,cn,An,dn,un,d=function(en){return en=en||{},this.isStrokeTransparent=en.isStrokeTransparent||!1,this.strokeOpacity=en.strokeOpacity||1,this.strokeStyle=en.strokeStyle||"#000000",this.fillStyle=en.fillStyle||"#000000",this.isFillTransparent=en.isFillTransparent||!1,this.fillOpacity=en.fillOpacity||1,this.font=en.font||"10px sans-serif",this.textBaseline=en.textBaseline||"alphabetic",this.textAlign=en.textAlign||"left",this.lineWidth=en.lineWidth||1,this.lineJoin=en.lineJoin||"miter",this.lineCap=en.lineCap||"butt",this.path=en.path||[],this.transform=void 0!==en.transform?en.transform.clone():new dn,this.globalCompositeOperation=en.globalCompositeOperation||"normal",this.globalAlpha=en.globalAlpha||1,this.clip_path=en.clip_path||[],this.currentPoint=en.currentPoint||new cn,this.miterLimit=en.miterLimit||10,this.lastPoint=en.lastPoint||new cn,this.lineDashOffset=en.lineDashOffset||0,this.lineDash=en.lineDash||[],this.margin=en.margin||[0,0,0,0],this.prevPageLastElemOffset=en.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof en.ignoreClearRect||en.ignoreClearRect,this};en.events.push(["initialized",function(){this.context2d=new p(this),tn=this.internal.f2,nn=this.internal.getCoordinateString,rn=this.internal.getVerticalCoordinateString,an=this.internal.getHorizontalCoordinate,sn=this.internal.getVerticalCoordinate,cn=this.internal.Point,An=this.internal.Rectangle,dn=this.internal.Matrix,un=new d}]);var p=function(en){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var tn=en;Object.defineProperty(this,"pdf",{get:function(){return tn}});var nn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return nn},set:function(en){nn=Boolean(en)}});var rn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return rn},set:function(en){rn=Boolean(en)}});var an=0;Object.defineProperty(this,"posX",{get:function(){return an},set:function(en){isNaN(en)||(an=en)}});var sn=0;Object.defineProperty(this,"posY",{get:function(){return sn},set:function(en){isNaN(en)||(sn=en)}}),Object.defineProperty(this,"margin",{get:function(){return un.margin},set:function(en){var tn;"number"==typeof en?tn=[en,en,en,en]:((tn=new Array(4))[0]=en[0],tn[1]=en.length>=2?en[1]:tn[0],tn[2]=en.length>=3?en[2]:tn[0],tn[3]=en.length>=4?en[3]:tn[1]),un.margin=tn}});var cn=!1;Object.defineProperty(this,"autoPaging",{get:function(){return cn},set:function(en){cn=en}});var An=0;Object.defineProperty(this,"lastBreak",{get:function(){return An},set:function(en){An=en}});var dn=[];Object.defineProperty(this,"pageBreaks",{get:function(){return dn},set:function(en){dn=en}}),Object.defineProperty(this,"ctx",{get:function(){return un},set:function(en){en instanceof d&&(un=en)}}),Object.defineProperty(this,"path",{get:function(){return un.path},set:function(en){un.path=en}});var pn=[];Object.defineProperty(this,"ctxStack",{get:function(){return pn},set:function(en){pn=en}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(en){var tn;tn=g(en),this.ctx.fillStyle=tn.style,this.ctx.isFillTransparent=0===tn.a,this.ctx.fillOpacity=tn.a,this.pdf.setFillColor(tn.r,tn.g,tn.b,{a:tn.a}),this.pdf.setTextColor(tn.r,tn.g,tn.b,{a:tn.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(en){var tn=g(en);this.ctx.strokeStyle=tn.style,this.ctx.isStrokeTransparent=0===tn.a,this.ctx.strokeOpacity=tn.a,0===tn.a?this.pdf.setDrawColor(255,255,255):(tn.a,this.pdf.setDrawColor(tn.r,tn.g,tn.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(en){-1!==["butt","round","square"].indexOf(en)&&(this.ctx.lineCap=en,this.pdf.setLineCap(en))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(en){isNaN(en)||(this.ctx.lineWidth=en,this.pdf.setLineWidth(en))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(en){-1!==["bevel","round","miter"].indexOf(en)&&(this.ctx.lineJoin=en,this.pdf.setLineJoin(en))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(en){isNaN(en)||(this.ctx.miterLimit=en,this.pdf.setMiterLimit(en))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(en){this.ctx.textBaseline=en}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(en){-1!==["right","end","center","left","start"].indexOf(en)&&(this.ctx.textAlign=en)}});var hn=null;function f(en,tn){if(null===hn){var nn=function(en){var tn=[];return Object.keys(en).forEach((function(nn){en[nn].forEach((function(en){var rn=null;switch(en){case"bold":rn={family:nn,weight:"bold"};break;case"italic":rn={family:nn,style:"italic"};break;case"bolditalic":rn={family:nn,weight:"bold",style:"italic"};break;case"":case"normal":rn={family:nn}}null!==rn&&(rn.ref={name:nn,style:en},tn.push(rn))}))})),tn}(en.getFontList());hn=function(en){for(var tn={},nn=0;nn<en.length;++nn){var rn=jt(en[nn]),an=rn.family,sn=rn.stretch,cn=rn.style,An=rn.weight;tn[an]=tn[an]||{},tn[an][sn]=tn[an][sn]||{},tn[an][sn][cn]=tn[an][sn][cn]||{},tn[an][sn][cn][An]=rn}return tn}(nn.concat(tn))}return hn}var gn=null;Object.defineProperty(this,"fontFaces",{get:function(){return gn},set:function(en){hn=null,gn=en}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(en){var tn;if(this.ctx.font=en,null!==(tn=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(en))){var nn=tn[1],rn=(tn[2],tn[3]),an=tn[4],sn=(tn[5],tn[6]),cn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(an)[2];an="px"===cn?Math.floor(parseFloat(an)*this.pdf.internal.scaleFactor):"em"===cn?Math.floor(parseFloat(an)*this.pdf.getFontSize()):Math.floor(parseFloat(an)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(an);var An=function(en){var tn,nn,rn=[],an=en.trim();if(""===an)return Jl;if(an in Wl)return[Wl[an]];for(;""!==an;){switch(nn=null,tn=(an=Dt(an)).charAt(0)){case'"':case"'":nn=Rt(an.substring(1),tn);break;default:nn=Tt(an)}if(null===nn)return Jl;if(rn.push(nn[0]),""!==(an=Dt(nn[1]))&&","!==an.charAt(0))return Jl;an=an.replace(/^,/,"")}return rn}(sn);if(this.fontFaces){var dn=function qt(en,tn,nn){for(var rn=(nn=nn||{}).defaultFontFamily||"times",an=Object.assign({},$l,nn.genericFontFamilies||{}),sn=null,cn=null,An=0;An<tn.length;++An)if(an[(sn=jt(tn[An])).family]&&(sn.family=an[sn.family]),en.hasOwnProperty(sn.family)){cn=en[sn.family];break}if(!(cn=cn||en[rn]))throw new Error("Could not find a font-family for the rule '"+Et(sn)+"' and default family '"+rn+"'.");if(cn=function(en,tn){if(tn[en])return tn[en];var nn=Hl[en],rn=nn<=Hl.normal?-1:1,an=Ot(tn,Dl,nn,rn);if(!an)throw new Error("Could not find a matching font-stretch value for "+en);return an}(sn.stretch,cn),cn=function(en,tn){if(tn[en])return tn[en];for(var nn=Gl[en],rn=0;rn<nn.length;++rn)if(tn[nn[rn]])return tn[nn[rn]];throw new Error("Could not find a matching font-style for "+en)}(sn.style,cn),!(cn=function(en,tn){if(tn[en])return tn[en];if(400===en&&tn[500])return tn[500];if(500===en&&tn[400])return tn[400];var nn=Kl[en],rn=Ot(tn,zl,nn,en<400?-1:1);if(!rn)throw new Error("Could not find a matching font-weight for value "+en);return rn}(sn.weight,cn)))throw new Error("Failed to resolve a font for the rule '"+Et(sn)+"'.");return cn}(f(this.pdf,this.fontFaces),An.map((function(en){return{family:en,stretch:"normal",weight:rn,style:nn}})));this.pdf.setFont(dn.ref.name,dn.ref.style)}else{var un="";("bold"===rn||parseInt(rn,10)>=700||"bold"===nn)&&(un="bold"),"italic"===nn&&(un+="italic"),0===un.length&&(un="normal");for(var pn="",hn={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},gn=0;gn<An.length;gn++){if(void 0!==this.pdf.internal.getFont(An[gn],un,{noFallback:!0,disableWarning:!0})){pn=An[gn];break}if("bolditalic"===un&&void 0!==this.pdf.internal.getFont(An[gn],"bold",{noFallback:!0,disableWarning:!0}))pn=An[gn],un="bold";else if(void 0!==this.pdf.internal.getFont(An[gn],"normal",{noFallback:!0,disableWarning:!0})){pn=An[gn],un="normal";break}}if(""===pn)for(var _n=0;_n<An.length;_n++)if(hn[An[_n]]){pn=hn[An[_n]];break}pn=""===pn?"Times":pn,this.pdf.setFont(pn,un)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(en){this.ctx.globalCompositeOperation=en}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(en){this.ctx.globalAlpha=en}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(en){this.ctx.lineDashOffset=en,T.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(en){this.ctx.lineDash=en,T.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(en){this.ctx.ignoreClearRect=Boolean(en)}})};p.prototype.setLineDash=function(en){this.lineDash=en},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){A.call(this,"fill",!1)},p.prototype.stroke=function(){A.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(en,tn){if(isNaN(en)||isNaN(tn))throw wl.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var nn=this.ctx.transform.applyToPoint(new cn(en,tn));this.path.push({type:"mt",x:nn.x,y:nn.y}),this.ctx.lastPoint=new cn(en,tn)},p.prototype.closePath=function(){var en=new cn(0,0),tn=0;for(tn=this.path.length-1;-1!==tn;tn--)if("begin"===this.path[tn].type&&"object"===_typeof$1(this.path[tn+1])&&"number"==typeof this.path[tn+1].x){en=new cn(this.path[tn+1].x,this.path[tn+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new cn(en.x,en.y)},p.prototype.lineTo=function(en,tn){if(isNaN(en)||isNaN(tn))throw wl.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var nn=this.ctx.transform.applyToPoint(new cn(en,tn));this.path.push({type:"lt",x:nn.x,y:nn.y}),this.ctx.lastPoint=new cn(nn.x,nn.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},p.prototype.quadraticCurveTo=function(en,tn,nn,rn){if(isNaN(nn)||isNaN(rn)||isNaN(en)||isNaN(tn))throw wl.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var an=this.ctx.transform.applyToPoint(new cn(nn,rn)),sn=this.ctx.transform.applyToPoint(new cn(en,tn));this.path.push({type:"qct",x1:sn.x,y1:sn.y,x:an.x,y:an.y}),this.ctx.lastPoint=new cn(an.x,an.y)},p.prototype.bezierCurveTo=function(en,tn,nn,rn,an,sn){if(isNaN(an)||isNaN(sn)||isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn))throw wl.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var An=this.ctx.transform.applyToPoint(new cn(an,sn)),dn=this.ctx.transform.applyToPoint(new cn(en,tn)),un=this.ctx.transform.applyToPoint(new cn(nn,rn));this.path.push({type:"bct",x1:dn.x,y1:dn.y,x2:un.x,y2:un.y,x:An.x,y:An.y}),this.ctx.lastPoint=new cn(An.x,An.y)},p.prototype.arc=function(en,tn,nn,rn,an,sn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||isNaN(an))throw wl.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(sn=Boolean(sn),!this.ctx.transform.isIdentity){var An=this.ctx.transform.applyToPoint(new cn(en,tn));en=An.x,tn=An.y;var dn=this.ctx.transform.applyToPoint(new cn(0,nn)),un=this.ctx.transform.applyToPoint(new cn(0,0));nn=Math.sqrt(Math.pow(dn.x-un.x,2)+Math.pow(dn.y-un.y,2))}Math.abs(an-rn)>=2*Math.PI&&(rn=0,an=2*Math.PI),this.path.push({type:"arc",x:en,y:tn,radius:nn,startAngle:rn,endAngle:an,counterclockwise:sn})},p.prototype.arcTo=function(en,tn,nn,rn,an){throw new Error("arcTo not implemented.")},p.prototype.rect=function(en,tn,nn,rn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn))throw wl.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(en,tn),this.lineTo(en+nn,tn),this.lineTo(en+nn,tn+rn),this.lineTo(en,tn+rn),this.lineTo(en,tn),this.lineTo(en+nn,tn),this.lineTo(en,tn)},p.prototype.fillRect=function(en,tn,nn,rn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn))throw wl.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!m.call(this)){var an={};"butt"!==this.lineCap&&(an.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(an.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(en,tn,nn,rn),this.fill(),an.hasOwnProperty("lineCap")&&(this.lineCap=an.lineCap),an.hasOwnProperty("lineJoin")&&(this.lineJoin=an.lineJoin)}},p.prototype.strokeRect=function(en,tn,nn,rn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn))throw wl.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(en,tn,nn,rn),this.stroke())},p.prototype.clearRect=function(en,tn,nn,rn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn))throw wl.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(en,tn,nn,rn))},p.prototype.save=function(en){en="boolean"!=typeof en||en;for(var tn=this.pdf.internal.getCurrentPageInfo().pageNumber,nn=0;nn<this.pdf.internal.getNumberOfPages();nn++)this.pdf.setPage(nn+1),this.pdf.internal.out("q");if(this.pdf.setPage(tn),en){this.ctx.fontSize=this.pdf.internal.getFontSize();var rn=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=rn}},p.prototype.restore=function(en){en="boolean"!=typeof en||en;for(var tn=this.pdf.internal.getCurrentPageInfo().pageNumber,nn=0;nn<this.pdf.internal.getNumberOfPages();nn++)this.pdf.setPage(nn+1),this.pdf.internal.out("Q");this.pdf.setPage(tn),en&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(en){var tn,nn,rn,an;if(!0===en.isCanvasGradient&&(en=en.getColor()),!en)return{r:0,g:0,b:0,a:0,style:en};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(en))tn=0,nn=0,rn=0,an=0;else{var sn=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(en);if(null!==sn)tn=parseInt(sn[1]),nn=parseInt(sn[2]),rn=parseInt(sn[3]),an=1;else if(null!==(sn=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(en)))tn=parseInt(sn[1]),nn=parseInt(sn[2]),rn=parseInt(sn[3]),an=parseFloat(sn[4]);else{if(an=1,"string"==typeof en&&"#"!==en.charAt(0)){var cn=new f$1(en);en=cn.ok?cn.toHex():"#000000"}4===en.length?(tn=en.substring(1,2),tn+=tn,nn=en.substring(2,3),nn+=nn,rn=en.substring(3,4),rn+=rn):(tn=en.substring(1,3),nn=en.substring(3,5),rn=en.substring(5,7)),tn=parseInt(tn,16),nn=parseInt(nn,16),rn=parseInt(rn,16)}}return{r:tn,g:nn,b:rn,a:an,style:en}},m=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},v=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};p.prototype.fillText=function(en,tn,nn,rn){if(isNaN(tn)||isNaN(nn)||"string"!=typeof en)throw wl.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(rn=isNaN(rn)?void 0:rn,!m.call(this)){var an=q(this.ctx.transform.rotation),sn=this.ctx.transform.scaleX;C.call(this,{text:en,x:tn,y:nn,scale:sn,angle:an,align:this.textAlign,maxWidth:rn})}},p.prototype.strokeText=function(en,tn,nn,rn){if(isNaN(tn)||isNaN(nn)||"string"!=typeof en)throw wl.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){rn=isNaN(rn)?void 0:rn;var an=q(this.ctx.transform.rotation),sn=this.ctx.transform.scaleX;C.call(this,{text:en,x:tn,y:nn,scale:sn,renderingMode:"stroke",angle:an,align:this.textAlign,maxWidth:rn})}},p.prototype.measureText=function(en){if("string"!=typeof en)throw wl.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var tn=this.pdf,nn=this.pdf.internal.scaleFactor,rn=tn.internal.getFontSize(),an=tn.getStringUnitWidth(en)*rn/tn.internal.scaleFactor,o=function(en){var tn=(en=en||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return tn}}),this};return new o({width:an*=Math.round(96*nn/72*1e4)/1e4})},p.prototype.scale=function(en,tn){if(isNaN(en)||isNaN(tn))throw wl.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var nn=new dn(en,0,0,tn,0,0);this.ctx.transform=this.ctx.transform.multiply(nn)},p.prototype.rotate=function(en){if(isNaN(en))throw wl.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var tn=new dn(Math.cos(en),Math.sin(en),-Math.sin(en),Math.cos(en),0,0);this.ctx.transform=this.ctx.transform.multiply(tn)},p.prototype.translate=function(en,tn){if(isNaN(en)||isNaN(tn))throw wl.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var nn=new dn(1,0,0,1,en,tn);this.ctx.transform=this.ctx.transform.multiply(nn)},p.prototype.transform=function(en,tn,nn,rn,an,sn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||isNaN(an)||isNaN(sn))throw wl.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var cn=new dn(en,tn,nn,rn,an,sn);this.ctx.transform=this.ctx.transform.multiply(cn)},p.prototype.setTransform=function(en,tn,nn,rn,an,sn){en=isNaN(en)?1:en,tn=isNaN(tn)?0:tn,nn=isNaN(nn)?0:nn,rn=isNaN(rn)?1:rn,an=isNaN(an)?0:an,sn=isNaN(sn)?0:sn,this.ctx.transform=new dn(en,tn,nn,rn,an,sn)};var b=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(en,tn,nn,rn,an,sn,cn,un,pn){var hn=this.pdf.getImageProperties(en),gn=1,_n=1,mn=1,fn=1;void 0!==rn&&void 0!==un&&(mn=un/rn,fn=pn/an,gn=hn.width/rn*un/rn,_n=hn.height/an*pn/an),void 0===sn&&(sn=tn,cn=nn,tn=0,nn=0),void 0!==rn&&void 0===un&&(un=rn,pn=an),void 0===rn&&void 0===un&&(un=hn.width,pn=hn.height);for(var yn,bn=this.ctx.transform.decompose(),vn=q(bn.rotate.shx),wn=new dn,xn=(wn=(wn=(wn=wn.multiply(bn.translate)).multiply(bn.skew)).multiply(bn.scale)).applyToRectangle(new An(sn-tn*mn,cn-nn*fn,rn*gn,an*_n)),kn=y.call(this,xn),Cn=[],Sn=0;Sn<kn.length;Sn+=1)-1===Cn.indexOf(kn[Sn])&&Cn.push(kn[Sn]);if(L(Cn),this.autoPaging)for(var Bn=Cn[0],En=Cn[Cn.length-1],jn=Bn;jn<En+1;jn++){this.pdf.setPage(jn);var Ln=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Pn=1===jn?this.posY+this.margin[0]:this.margin[0],Tn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Fn=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Un=1===jn?0:Tn+(jn-2)*Fn;if(0!==this.ctx.clip_path.length){var Nn=this.path;yn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(yn,this.posX+this.margin[3],-Un+Pn+this.ctx.prevPageLastElemOffset),x.call(this,"fill",!0),this.path=Nn}var In=JSON.parse(JSON.stringify(xn));In=N([In],this.posX+this.margin[3],-Un+Pn+this.ctx.prevPageLastElemOffset)[0];var Mn=(jn>Bn||jn<En)&&b.call(this);Mn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ln,Fn,null).clip().discardPath()),this.pdf.addImage(en,"JPEG",In.x,In.y,In.w,In.h,null,null,vn),Mn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(en,"JPEG",xn.x,xn.y,xn.w,xn.h,null,null,vn)};var y=function(en,tn,nn){var rn=[];tn=tn||this.pdf.internal.pageSize.width,nn=nn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var an=this.posY+this.ctx.prevPageLastElemOffset;switch(en.type){default:case"mt":case"lt":rn.push(Math.floor((en.y+an)/nn)+1);break;case"arc":rn.push(Math.floor((en.y+an-en.radius)/nn)+1),rn.push(Math.floor((en.y+an+en.radius)/nn)+1);break;case"qct":var sn=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,en.x1,en.y1,en.x,en.y);rn.push(Math.floor((sn.y+an)/nn)+1),rn.push(Math.floor((sn.y+sn.h+an)/nn)+1);break;case"bct":var cn=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,en.x1,en.y1,en.x2,en.y2,en.x,en.y);rn.push(Math.floor((cn.y+an)/nn)+1),rn.push(Math.floor((cn.y+cn.h+an)/nn)+1);break;case"rect":rn.push(Math.floor((en.y+an)/nn)+1),rn.push(Math.floor((en.y+en.h+an)/nn)+1)}for(var An=0;An<rn.length;An+=1)for(;this.pdf.internal.getNumberOfPages()<rn[An];)w.call(this);return rn},w=function(){var en=this.fillStyle,tn=this.strokeStyle,nn=this.font,rn=this.lineCap,an=this.lineWidth,sn=this.lineJoin;this.pdf.addPage(),this.fillStyle=en,this.strokeStyle=tn,this.font=nn,this.lineCap=rn,this.lineWidth=an,this.lineJoin=sn},N=function(en,tn,nn){for(var rn=0;rn<en.length;rn++)switch(en[rn].type){case"bct":en[rn].x2+=tn,en[rn].y2+=nn;case"qct":en[rn].x1+=tn,en[rn].y1+=nn;default:en[rn].x+=tn,en[rn].y+=nn}return en},L=function(en){return en.sort((function(en,tn){return en-tn}))},A=function(en,tn){for(var nn,rn,an=this.fillStyle,sn=this.strokeStyle,cn=this.lineCap,An=this.lineWidth,dn=Math.abs(An*this.ctx.transform.scaleX),un=this.lineJoin,pn=JSON.parse(JSON.stringify(this.path)),hn=JSON.parse(JSON.stringify(this.path)),gn=[],_n=0;_n<hn.length;_n++)if(void 0!==hn[_n].x)for(var mn=y.call(this,hn[_n]),fn=0;fn<mn.length;fn+=1)-1===gn.indexOf(mn[fn])&&gn.push(mn[fn]);for(var yn=0;yn<gn.length;yn++)for(;this.pdf.internal.getNumberOfPages()<gn[yn];)w.call(this);if(L(gn),this.autoPaging)for(var bn=gn[0],vn=gn[gn.length-1],wn=bn;wn<vn+1;wn++){this.pdf.setPage(wn),this.fillStyle=an,this.strokeStyle=sn,this.lineCap=cn,this.lineWidth=dn,this.lineJoin=un;var xn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],kn=1===wn?this.posY+this.margin[0]:this.margin[0],Cn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Sn=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Bn=1===wn?0:Cn+(wn-2)*Sn;if(0!==this.ctx.clip_path.length){var En=this.path;nn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(nn,this.posX+this.margin[3],-Bn+kn+this.ctx.prevPageLastElemOffset),x.call(this,en,!0),this.path=En}if(rn=JSON.parse(JSON.stringify(pn)),this.path=N(rn,this.posX+this.margin[3],-Bn+kn+this.ctx.prevPageLastElemOffset),!1===tn||0===wn){var jn=(wn>bn||wn<vn)&&b.call(this);jn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],xn,Sn,null).clip().discardPath()),x.call(this,en,tn),jn&&this.pdf.restoreGraphicsState()}this.lineWidth=An}else this.lineWidth=dn,x.call(this,en,tn),this.lineWidth=An;this.path=pn},x=function(en,tn){if(("stroke"!==en||tn||!v.call(this))&&("stroke"===en||tn||!m.call(this))){for(var nn,rn,an=[],sn=this.path,cn=0;cn<sn.length;cn++){var An=sn[cn];switch(An.type){case"begin":an.push({begin:!0});break;case"close":an.push({close:!0});break;case"mt":an.push({start:An,deltas:[],abs:[]});break;case"lt":var dn=an.length;if(sn[cn-1]&&!isNaN(sn[cn-1].x)&&(nn=[An.x-sn[cn-1].x,An.y-sn[cn-1].y],dn>0))for(;dn>=0;dn--)if(!0!==an[dn-1].close&&!0!==an[dn-1].begin){an[dn-1].deltas.push(nn),an[dn-1].abs.push(An);break}break;case"bct":nn=[An.x1-sn[cn-1].x,An.y1-sn[cn-1].y,An.x2-sn[cn-1].x,An.y2-sn[cn-1].y,An.x-sn[cn-1].x,An.y-sn[cn-1].y],an[an.length-1].deltas.push(nn);break;case"qct":var un=sn[cn-1].x+2/3*(An.x1-sn[cn-1].x),pn=sn[cn-1].y+2/3*(An.y1-sn[cn-1].y),hn=An.x+2/3*(An.x1-An.x),gn=An.y+2/3*(An.y1-An.y),_n=An.x,mn=An.y;nn=[un-sn[cn-1].x,pn-sn[cn-1].y,hn-sn[cn-1].x,gn-sn[cn-1].y,_n-sn[cn-1].x,mn-sn[cn-1].y],an[an.length-1].deltas.push(nn);break;case"arc":an.push({deltas:[],abs:[],arc:!0}),Array.isArray(an[an.length-1].abs)&&an[an.length-1].abs.push(An)}}rn=tn?null:"stroke"===en?"stroke":"fill";for(var fn=!1,yn=0;yn<an.length;yn++)if(an[yn].arc)for(var bn=an[yn].abs,vn=0;vn<bn.length;vn++){var wn=bn[vn];"arc"===wn.type?P.call(this,wn.x,wn.y,wn.radius,wn.startAngle,wn.endAngle,wn.counterclockwise,void 0,tn,!fn):j.call(this,wn.x,wn.y),fn=!0}else if(!0===an[yn].close)this.pdf.internal.out("h"),fn=!1;else if(!0!==an[yn].begin){var xn=an[yn].start.x,kn=an[yn].start.y;O.call(this,an[yn].deltas,xn,kn),fn=!0}rn&&k.call(this,rn),tn&&I.call(this)}},S=function(en){var tn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,nn=tn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return en-nn;case"top":return en+tn-nn;case"hanging":return en+tn-2*nn;case"middle":return en+tn/2-nn;default:return en}},_=function(en){return en+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(en,tn){this.colorStops.push([en,tn])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var P=function(en,tn,nn,rn,an,sn,cn,An,dn){for(var un=M.call(this,nn,rn,an,sn),pn=0;pn<un.length;pn++){var hn=un[pn];0===pn&&(dn?F.call(this,hn.x1+en,hn.y1+tn):j.call(this,hn.x1+en,hn.y1+tn)),B.call(this,en,tn,hn.x2,hn.y2,hn.x3,hn.y3,hn.x4,hn.y4)}An?I.call(this):k.call(this,cn)},k=function(en){switch(en){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},I=function(){this.pdf.clip(),this.pdf.discardPath()},F=function(en,tn){this.pdf.internal.out(nn(en)+" "+rn(tn)+" m")},C=function(en){var tn;switch(en.align){case"right":case"end":tn="right";break;case"center":tn="center";break;default:tn="left"}var nn=this.pdf.getTextDimensions(en.text),rn=S.call(this,en.y),an=_.call(this,rn)-nn.h,sn=this.ctx.transform.applyToPoint(new cn(en.x,rn)),un=this.ctx.transform.decompose(),pn=new dn;pn=(pn=(pn=pn.multiply(un.translate)).multiply(un.skew)).multiply(un.scale);for(var hn,gn,_n,mn=this.ctx.transform.applyToRectangle(new An(en.x,rn,nn.w,nn.h)),fn=pn.applyToRectangle(new An(en.x,an,nn.w,nn.h)),yn=y.call(this,fn),bn=[],vn=0;vn<yn.length;vn+=1)-1===bn.indexOf(yn[vn])&&bn.push(yn[vn]);if(L(bn),this.autoPaging)for(var wn=bn[0],xn=bn[bn.length-1],kn=wn;kn<xn+1;kn++){this.pdf.setPage(kn);var Cn=1===kn?this.posY+this.margin[0]:this.margin[0],Sn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Bn=this.pdf.internal.pageSize.height-this.margin[2],En=Bn-this.margin[0],jn=this.pdf.internal.pageSize.width-this.margin[1],Ln=jn-this.margin[3],Pn=1===kn?0:Sn+(kn-2)*En;if(0!==this.ctx.clip_path.length){var Tn=this.path;hn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(hn,this.posX+this.margin[3],-1*Pn+Cn),x.call(this,"fill",!0),this.path=Tn}var Fn=N([JSON.parse(JSON.stringify(fn))],this.posX+this.margin[3],-Pn+Cn+this.ctx.prevPageLastElemOffset)[0];en.scale>=.01&&(gn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(gn*en.scale),_n=this.lineWidth,this.lineWidth=_n*en.scale);var Un="text"!==this.autoPaging;if(Un||Fn.y+Fn.h<=Bn){if(Un||Fn.y>=Cn&&Fn.x<=jn){var Nn=Un?en.text:this.pdf.splitTextToSize(en.text,en.maxWidth||jn-Fn.x)[0],In=N([JSON.parse(JSON.stringify(mn))],this.posX+this.margin[3],-Pn+Cn+this.ctx.prevPageLastElemOffset)[0],Mn=Un&&(kn>wn||kn<xn)&&b.call(this);Mn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ln,En,null).clip().discardPath()),this.pdf.text(Nn,In.x,In.y,{angle:en.angle,align:tn,renderingMode:en.renderingMode}),Mn&&this.pdf.restoreGraphicsState()}}else Fn.y<Bn&&(this.ctx.prevPageLastElemOffset+=Bn-Fn.y);en.scale>=.01&&(this.pdf.setFontSize(gn),this.lineWidth=_n)}else en.scale>=.01&&(gn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(gn*en.scale),_n=this.lineWidth,this.lineWidth=_n*en.scale),this.pdf.text(en.text,sn.x+this.posX,sn.y+this.posY,{angle:en.angle,align:tn,renderingMode:en.renderingMode,maxWidth:en.maxWidth}),en.scale>=.01&&(this.pdf.setFontSize(gn),this.lineWidth=_n)},j=function(en,tn,an,sn){an=an||0,sn=sn||0,this.pdf.internal.out(nn(en+an)+" "+rn(tn+sn)+" l")},O=function(en,tn,nn){return this.pdf.lines(en,tn,nn,null,null)},B=function(en,nn,rn,cn,An,dn,un,pn){this.pdf.internal.out([tn(an(rn+en)),tn(sn(cn+nn)),tn(an(An+en)),tn(sn(dn+nn)),tn(an(un+en)),tn(sn(pn+nn)),"c"].join(" "))},M=function(en,tn,nn,rn){for(var an=2*Math.PI,sn=Math.PI/2;tn>nn;)tn-=an;var cn=Math.abs(nn-tn);cn<an&&rn&&(cn=an-cn);for(var An=[],dn=rn?-1:1,un=tn;cn>1e-5;){var pn=un+dn*Math.min(cn,sn);An.push(E.call(this,en,un,pn)),cn-=Math.abs(pn-un),un=pn}return An},E=function(en,tn,nn){var rn=(nn-tn)/2,an=en*Math.cos(rn),sn=en*Math.sin(rn),cn=an,An=-sn,dn=cn*cn+An*An,un=dn+cn*an+An*sn,pn=4/3*(Math.sqrt(2*dn*un)-un)/(cn*sn-An*an),hn=cn-pn*An,gn=An+pn*cn,_n=hn,mn=-gn,fn=rn+tn,yn=Math.cos(fn),bn=Math.sin(fn);return{x1:en*Math.cos(tn),y1:en*Math.sin(tn),x2:hn*yn-gn*bn,y2:hn*bn+gn*yn,x3:_n*yn-mn*bn,y3:_n*bn+mn*yn,x4:en*Math.cos(nn),y4:en*Math.sin(nn)}},q=function(en){return 180*en/Math.PI},D=function(en,tn,nn,rn,an,sn){var cn=en+.5*(nn-en),dn=tn+.5*(rn-tn),un=an+.5*(nn-an),pn=sn+.5*(rn-sn),hn=Math.min(en,an,cn,un),gn=Math.max(en,an,cn,un),_n=Math.min(tn,sn,dn,pn),mn=Math.max(tn,sn,dn,pn);return new An(hn,_n,gn-hn,mn-_n)},R=function(en,tn,nn,rn,an,sn,cn,dn){var un,pn,hn,gn,_n,mn,fn,yn,bn,vn,wn,xn,kn,Cn,Sn=nn-en,Bn=rn-tn,En=an-nn,jn=sn-rn,Ln=cn-an,Pn=dn-sn;for(pn=0;pn<41;pn++)bn=(fn=(hn=en+(un=pn/40)*Sn)+un*((_n=nn+un*En)-hn))+un*(_n+un*(an+un*Ln-_n)-fn),vn=(yn=(gn=tn+un*Bn)+un*((mn=rn+un*jn)-gn))+un*(mn+un*(sn+un*Pn-mn)-yn),0==pn?(wn=bn,xn=vn,kn=bn,Cn=vn):(wn=Math.min(wn,bn),xn=Math.min(xn,vn),kn=Math.max(kn,bn),Cn=Math.max(Cn,vn));return new An(Math.round(wn),Math.round(xn),Math.round(kn-wn),Math.round(Cn-xn))},T=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var en,tn,nn=(en=this.ctx.lineDash,tn=this.ctx.lineDashOffset,JSON.stringify({lineDash:en,lineDashOffset:tn}));this.prevLineDash!==nn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=nn)}}}(E.API),
/**
* @license
* jsPDF filters PlugIn
* Copyright (c) 2014 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(en){var r=function(en){var tn,nn,rn,an,sn,cn,An,dn,un,pn;for(/[^\x00-\xFF]/.test(en),nn=[],rn=0,an=(en+=tn="\0\0\0\0".slice(en.length%4||4)).length;an>rn;rn+=4)0!==(sn=(en.charCodeAt(rn)<<24)+(en.charCodeAt(rn+1)<<16)+(en.charCodeAt(rn+2)<<8)+en.charCodeAt(rn+3))?(cn=(sn=((sn=((sn=((sn=(sn-(pn=sn%85))/85)-(un=sn%85))/85)-(dn=sn%85))/85)-(An=sn%85))/85)%85,nn.push(cn+33,An+33,dn+33,un+33,pn+33)):nn.push(122);return function(en,tn){for(var nn=tn;nn>0;nn--)en.pop()}(nn,tn.length),String.fromCharCode.apply(String,nn)+"~>"},n=function(en){var tn,nn,rn,an,sn,cn=String,An="length",dn=255,un="charCodeAt",pn="slice",hn="replace";for(en[pn](-2),en=en[pn](0,-2)[hn](/\s/g,"")[hn]("z","!!!!!"),rn=[],an=0,sn=(en+=tn="uuuuu"[pn](en[An]%5||5))[An];sn>an;an+=5)nn=52200625*(en[un](an)-33)+614125*(en[un](an+1)-33)+7225*(en[un](an+2)-33)+85*(en[un](an+3)-33)+(en[un](an+4)-33),rn.push(dn&nn>>24,dn&nn>>16,dn&nn>>8,dn&nn);return function(en,tn){for(var nn=tn;nn>0;nn--)en.pop()}(rn,tn[An]),cn.fromCharCode.apply(cn,rn)},i=function(en){var tn=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(en=en.replace(/\s/g,"")).indexOf(">")&&(en=en.substr(0,en.indexOf(">"))),en.length%2&&(en+="0"),!1===tn.test(en))return"";for(var nn="",rn=0;rn<en.length;rn+=2)nn+=String.fromCharCode("0x"+(en[rn]+en[rn+1]));return nn},a=function(en){for(var tn=new Uint8Array(en.length),nn=en.length;nn--;)tn[nn]=en.charCodeAt(nn);return(tn=zlibSync(tn)).reduce((function(en,tn){return en+String.fromCharCode(tn)}),"")};en.processDataByFilters=function(en,tn){var nn=0,rn=en||"",an=[];for("string"==typeof(tn=tn||[])&&(tn=[tn]),nn=0;nn<tn.length;nn+=1)switch(tn[nn]){case"ASCII85Decode":case"/ASCII85Decode":rn=n(rn),an.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":rn=r(rn),an.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":rn=i(rn),an.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":rn=rn.split("").map((function(en){return("0"+en.charCodeAt().toString(16)).slice(-2)})).join("")+">",an.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":rn=a(rn),an.push("/FlateDecode");break;default:throw new Error('The filter: "'+tn[nn]+'" is not implemented')}return{data:rn,reverseChain:an.reverse().join(" ")}}}(E.API),
/**
* @license
* jsPDF fileloading PlugIn
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(en){en.loadFile=function(en,tn,nn){return function(en,tn,nn){tn=!1!==tn,nn="function"==typeof nn?nn:function(){};var rn=void 0;try{rn=function(en,tn,nn){var rn=new XMLHttpRequest,an=0,a=function(en){var tn=en.length,nn=[],rn=String.fromCharCode;for(an=0;an<tn;an+=1)nn.push(rn(255&en.charCodeAt(an)));return nn.join("")};if(rn.open("GET",en,!tn),rn.overrideMimeType("text/plain; charset=x-user-defined"),!1===tn&&(rn.onload=function(){200===rn.status?nn(a(this.responseText)):nn(void 0)}),rn.send(null),tn&&200===rn.status)return a(rn.responseText)}(en,tn,nn)}catch(en){}return rn}(en,tn,nn)},en.loadImageFile=en.loadFile}(E.API),function(en){function r(){return(vl.html2canvas?Promise.resolve(vl.html2canvas):Promise.resolve().then((function(){return $A}))).catch((function(en){return Promise.reject(new Error("Could not load html2canvas: "+en))})).then((function(en){return en.default?en.default:en}))}function i(){return(vl.DOMPurify?Promise.resolve(vl.DOMPurify):Promise.resolve().then((function(){return ld}))).catch((function(en){return Promise.reject(new Error("Could not load dompurify: "+en))})).then((function(en){return en.default?en.default:en}))}var a=function(en){var tn=_typeof$1(en);return"undefined"===tn?"undefined":"string"===tn||en instanceof String?"string":"number"===tn||en instanceof Number?"number":"function"===tn||en instanceof Function?"function":en&&en.constructor===Array?"array":en&&1===en.nodeType?"element":"object"===tn?"object":"unknown"},o=function(en,tn){var nn=document.createElement(en);for(var rn in tn.className&&(nn.className=tn.className),tn.innerHTML&&tn.dompurify&&(nn.innerHTML=tn.dompurify.sanitize(tn.innerHTML)),tn.style)nn.style[rn]=tn.style[rn];return nn},tn=function t(en){var tn=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),nn=t.convert(Promise.resolve(),tn);return(nn=nn.setProgress(1,t,1,[t])).set(en)};(tn.prototype=Object.create(Promise.prototype)).constructor=tn,tn.convert=function(en,nn){return en.__proto__=nn||tn.prototype,en},tn.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},tn.prototype.from=function(en,tn){return this.then((function(){switch(tn=tn||function(en){switch(a(en)){case"string":return"string";case"element":return"canvas"===en.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(en)){case"string":return this.then(i).then((function(tn){return this.set({src:o("div",{innerHTML:en,dompurify:tn})})}));case"element":return this.set({src:en});case"canvas":return this.set({canvas:en});case"img":return this.set({img:en});default:return this.error("Unknown source type.")}}))},tn.prototype.to=function(en){switch(en){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},tn.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var en={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},tn=function t(en,tn){for(var nn=3===en.nodeType?document.createTextNode(en.nodeValue):en.cloneNode(!1),rn=en.firstChild;rn;rn=rn.nextSibling)!0!==tn&&1===rn.nodeType&&"SCRIPT"===rn.nodeName||nn.appendChild(t(rn,tn));return 1===en.nodeType&&("CANVAS"===en.nodeName?(nn.width=en.width,nn.height=en.height,nn.getContext("2d").drawImage(en,0,0)):"TEXTAREA"!==en.nodeName&&"SELECT"!==en.nodeName||(nn.value=en.value),nn.addEventListener("load",(function(){nn.scrollTop=en.scrollTop,nn.scrollLeft=en.scrollLeft}),!0)),nn}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===tn.tagName&&(en.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:en}),this.prop.container.appendChild(tn),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},tn.prototype.toCanvas=function(){var en=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(en).then(r).then((function(en){var tn=Object.assign({},this.opt.html2canvas);return delete tn.onrendered,en(this.prop.container,tn)})).then((function(en){(this.opt.html2canvas.onrendered||function(){})(en),this.prop.canvas=en,document.body.removeChild(this.prop.overlay)}))},tn.prototype.toContext2d=function(){var en=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(en).then(r).then((function(en){var tn=this.opt.jsPDF,nn=this.opt.fontFaces,rn="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,an=Object.assign({async:!0,allowTaint:!0,scale:rn,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete an.onrendered,tn.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,tn.context2d.posX=this.opt.x,tn.context2d.posY=this.opt.y,tn.context2d.margin=this.opt.margin,tn.context2d.fontFaces=nn,nn)for(var sn=0;sn<nn.length;++sn){var cn=nn[sn],An=cn.src.find((function(en){return"truetype"===en.format}));An&&tn.addFont(An.url,cn.ref.name,cn.ref.style)}return an.windowHeight=an.windowHeight||0,an.windowHeight=0==an.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):an.windowHeight,tn.context2d.save(!0),en(this.prop.container,an)})).then((function(en){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(en),this.prop.canvas=en,document.body.removeChild(this.prop.overlay)}))},tn.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var en=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=en}))},tn.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},tn.prototype.output=function(en,tn,nn){return"img"===(nn=nn||"pdf").toLowerCase()||"image"===nn.toLowerCase()?this.outputImg(en,tn):this.outputPdf(en,tn)},tn.prototype.outputPdf=function(en,tn){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(en,tn)}))},tn.prototype.outputImg=function(en){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(en){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+en+'" is not supported.'}}))},tn.prototype.save=function(en){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(en?{filename:en}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},tn.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},tn.prototype.set=function(en){if("object"!==a(en))return this;var nn=Object.keys(en||{}).map((function(nn){if(nn in tn.template.prop)return function(){this.prop[nn]=en[nn]};switch(nn){case"margin":return this.setMargin.bind(this,en.margin);case"jsPDF":return function(){return this.opt.jsPDF=en.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,en.pageSize);default:return function(){this.opt[nn]=en[nn]}}}),this);return this.then((function(){return this.thenList(nn)}))},tn.prototype.get=function(en,nn){return this.then((function(){var rn=en in tn.template.prop?this.prop[en]:this.opt[en];return nn?nn(rn):rn}))},tn.prototype.setMargin=function(en){return this.then((function(){switch(a(en)){case"number":en=[en,en,en,en];case"array":if(2===en.length&&(en=[en[0],en[1],en[0],en[1]]),4===en.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=en})).then(this.setPageSize)},tn.prototype.setPageSize=function(en){function e(en,tn){return Math.floor(en*tn/72*96)}return this.then((function(){(en=en||E.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(en.inner={width:en.width-this.opt.margin[1]-this.opt.margin[3],height:en.height-this.opt.margin[0]-this.opt.margin[2]},en.inner.px={width:e(en.inner.width,en.k),height:e(en.inner.height,en.k)},en.inner.ratio=en.inner.height/en.inner.width),this.prop.pageSize=en}))},tn.prototype.setProgress=function(en,tn,nn,rn){return null!=en&&(this.progress.val=en),null!=tn&&(this.progress.state=tn),null!=nn&&(this.progress.n=nn),null!=rn&&(this.progress.stack=rn),this.progress.ratio=this.progress.val/this.progress.state,this},tn.prototype.updateProgress=function(en,tn,nn,rn){return this.setProgress(en?this.progress.val+en:null,tn||null,nn?this.progress.n+nn:null,rn?this.progress.stack.concat(rn):null)},tn.prototype.then=function(en,tn){var nn=this;return this.thenCore(en,tn,(function(en,tn){return nn.updateProgress(null,null,1,[en]),Promise.prototype.then.call(this,(function(tn){return nn.updateProgress(null,en),tn})).then(en,tn).then((function(en){return nn.updateProgress(1),en}))}))},tn.prototype.thenCore=function(en,nn,rn){rn=rn||Promise.prototype.then,en&&(en=en.bind(this)),nn&&(nn=nn.bind(this));var an=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:tn.convert(Object.assign({},this),Promise.prototype),sn=rn.call(an,en,nn);return tn.convert(sn,this.__proto__)},tn.prototype.thenExternal=function(en,tn){return Promise.prototype.then.call(this,en,tn)},tn.prototype.thenList=function(en){var tn=this;return en.forEach((function(en){tn=tn.thenCore(en)})),tn},tn.prototype.catch=function(en){en&&(en=en.bind(this));var nn=Promise.prototype.catch.call(this,en);return tn.convert(nn,this)},tn.prototype.catchExternal=function(en){return Promise.prototype.catch.call(this,en)},tn.prototype.error=function(en){return this.then((function(){throw new Error(en)}))},tn.prototype.using=tn.prototype.set,tn.prototype.saveAs=tn.prototype.save,tn.prototype.export=tn.prototype.output,tn.prototype.run=tn.prototype.then,E.getPageSize=function(en,tn,nn){if("object"===_typeof$1(en)){var rn=en;en=rn.orientation,tn=rn.unit||tn,nn=rn.format||nn}tn=tn||"mm",nn=nn||"a4",en=(""+(en||"P")).toLowerCase();var an,sn=(""+nn).toLowerCase(),cn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(tn){case"pt":an=1;break;case"mm":an=72/25.4;break;case"cm":an=72/2.54;break;case"in":an=72;break;case"px":an=.75;break;case"pc":case"em":an=12;break;case"ex":an=6;break;default:throw"Invalid unit: "+tn}var An,dn=0,un=0;if(cn.hasOwnProperty(sn))dn=cn[sn][1]/an,un=cn[sn][0]/an;else try{dn=nn[1],un=nn[0]}catch(en){throw new Error("Invalid format: "+nn)}if("p"===en||"portrait"===en)en="p",un>dn&&(An=un,un=dn,dn=An);else{if("l"!==en&&"landscape"!==en)throw"Invalid orientation: "+en;en="l",dn>un&&(An=un,un=dn,dn=An)}return{width:un,height:dn,unit:tn,k:an,orientation:en}},en.html=function(en,nn){(nn=nn||{}).callback=nn.callback||function(){},nn.html2canvas=nn.html2canvas||{},nn.html2canvas.canvas=nn.html2canvas.canvas||this.canvas,nn.jsPDF=nn.jsPDF||this,nn.fontFaces=nn.fontFaces?nn.fontFaces.map(jt):null;var rn=new tn(nn);return nn.worker?rn:rn.from(en).doCallback()}}(E.API),E.API.addJS=function(en){return Zl=en,this.internal.events.subscribe("postPutResources",(function(){Xl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Xl+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Yl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Zl+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==Xl&&void 0!==Yl&&this.internal.out("/Names <</JavaScript "+Xl+" 0 R>>")})),this},
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(en){var tn;en.events.push(["postPutResources",function(){var en=this,nn=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var rn=en.outline.render().split(/\r\n/),an=0;an<rn.length;an++){var sn=rn[an],cn=nn.exec(sn);if(null!=cn){var An=cn[1];en.internal.newObjectDeferredBegin(An,!1)}en.internal.write(sn)}if(this.outline.createNamedDestinations){var dn=this.internal.pages.length,un=[];for(an=0;an<dn;an++){var pn=en.internal.newObject();un.push(pn);var hn=en.internal.getPageInfo(an+1);en.internal.write("<< /D["+hn.objId+" 0 R /XYZ null null null]>> endobj")}var gn=en.internal.newObject();for(en.internal.write("<< /Names [ "),an=0;an<un.length;an++)en.internal.write("(page_"+(an+1)+")"+un[an]+" 0 R");en.internal.write(" ] >>","endobj"),tn=en.internal.newObject(),en.internal.write("<< /Dests "+gn+" 0 R"),en.internal.write(">>","endobj")}}]),en.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+tn+" 0 R"))}]),en.events.push(["initialized",function(){var en=this;en.outline={createNamedDestinations:!1,root:{children:[]}},en.outline.add=function(en,tn,nn){var rn={title:tn,options:nn,children:[]};return null==en&&(en=this.root),en.children.push(rn),rn},en.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=en,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},en.outline.genIds_r=function(tn){tn.id=en.internal.newObjectDeferred();for(var nn=0;nn<tn.children.length;nn++)this.genIds_r(tn.children[nn])},en.outline.renderRoot=function(en){this.objStart(en),this.line("/Type /Outlines"),en.children.length>0&&(this.line("/First "+this.makeRef(en.children[0])),this.line("/Last "+this.makeRef(en.children[en.children.length-1]))),this.line("/Count "+this.count_r({count:0},en)),this.objEnd()},en.outline.renderItems=function(tn){for(var nn=this.ctx.pdf.internal.getVerticalCoordinateString,rn=0;rn<tn.children.length;rn++){var an=tn.children[rn];this.objStart(an),this.line("/Title "+this.makeString(an.title)),this.line("/Parent "+this.makeRef(tn)),rn>0&&this.line("/Prev "+this.makeRef(tn.children[rn-1])),rn<tn.children.length-1&&this.line("/Next "+this.makeRef(tn.children[rn+1])),an.children.length>0&&(this.line("/First "+this.makeRef(an.children[0])),this.line("/Last "+this.makeRef(an.children[an.children.length-1])));var sn=this.count=this.count_r({count:0},an);if(sn>0&&this.line("/Count "+sn),an.options&&an.options.pageNumber){var cn=en.internal.getPageInfo(an.options.pageNumber);this.line("/Dest ["+cn.objId+" 0 R /XYZ 0 "+nn(0)+" 0]")}this.objEnd()}for(var An=0;An<tn.children.length;An++)this.renderItems(tn.children[An])},en.outline.line=function(en){this.ctx.val+=en+"\r\n"},en.outline.makeRef=function(en){return en.id+" 0 R"},en.outline.makeString=function(tn){return"("+en.internal.pdfEscape(tn)+")"},en.outline.objStart=function(en){this.ctx.val+="\r\n"+en.id+" 0 obj\r\n<<\r\n"},en.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},en.outline.count_r=function(en,tn){for(var nn=0;nn<tn.children.length;nn++)en.count++,this.count_r(en,tn.children[nn]);return en.count}}])}(E.API),
/**
* @license
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(en){var tn=[192,193,194,195,196,197,198,199];en.processJPEG=function(en,nn,rn,an,sn,cn){var An,dn=this.decode.DCT_DECODE,un=null;if("string"==typeof en||this.__addimage__.isArrayBuffer(en)||this.__addimage__.isArrayBufferView(en)){switch(en=sn||en,en=this.__addimage__.isArrayBuffer(en)?new Uint8Array(en):en,(An=function(en){for(var nn,rn=256*en.charCodeAt(4)+en.charCodeAt(5),an=en.length,sn={width:0,height:0,numcomponents:1},cn=4;cn<an;cn+=2){if(cn+=rn,-1!==tn.indexOf(en.charCodeAt(cn+1))){nn=256*en.charCodeAt(cn+5)+en.charCodeAt(cn+6),sn={width:256*en.charCodeAt(cn+7)+en.charCodeAt(cn+8),height:nn,numcomponents:en.charCodeAt(cn+9)};break}rn=256*en.charCodeAt(cn+2)+en.charCodeAt(cn+3)}return sn}(en=this.__addimage__.isArrayBufferView(en)?this.__addimage__.arrayBufferToBinaryString(en):en)).numcomponents){case 1:cn=this.color_spaces.DEVICE_GRAY;break;case 4:cn=this.color_spaces.DEVICE_CMYK;break;case 3:cn=this.color_spaces.DEVICE_RGB}un={data:en,width:An.width,height:An.height,colorSpace:cn,bitsPerComponent:8,filter:dn,index:nn,alias:rn}}return un}}(E.API);var ec,tc,nc,rc,oc,ic=function(){var en,tn,nn;function a(en){var tn,nn,rn,an,sn,cn,An,dn,un,pn,hn,gn,_n,mn;for(this.data=en,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},cn=null;;){switch(tn=this.readUInt32(),un=function(){var en,tn;for(tn=[],en=0;en<4;++en)tn.push(String.fromCharCode(this.data[this.pos++]));return tn}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(tn);break;case"fcTL":cn&&this.animation.frames.push(cn),this.pos+=4,cn={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},sn=this.readUInt16(),an=this.readUInt16()||100,cn.delay=1e3*sn/an,cn.disposeOp=this.data[this.pos++],cn.blendOp=this.data[this.pos++],cn.data=[];break;case"IDAT":case"fdAT":for("fdAT"===un&&(this.pos+=4,tn-=4),en=(null!=cn?cn.data:void 0)||this.imgData,gn=0;0<=tn?gn<tn:gn>tn;0<=tn?++gn:--gn)en.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(rn=this.palette.length/3,this.transparency.indexed=this.read(tn),this.transparency.indexed.length>rn)throw new Error("More transparent colors than palette size");if((pn=rn-this.transparency.indexed.length)>0)for(_n=0;0<=pn?_n<pn:_n>pn;0<=pn?++_n:--_n)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(tn)[0];break;case 2:this.transparency.rgb=this.read(tn)}break;case"tEXt":An=(hn=this.read(tn)).indexOf(0),dn=String.fromCharCode.apply(String,hn.slice(0,An)),this.text[dn]=String.fromCharCode.apply(String,hn.slice(An+1));break;case"IEND":return cn&&this.animation.frames.push(cn),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(mn=this.colorType)||6===mn,nn=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*nn,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=tn}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}a.prototype.read=function(en){var tn,nn;for(nn=[],tn=0;0<=en?tn<en:tn>en;0<=en?++tn:--tn)nn.push(this.data[this.pos++]);return nn},a.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.decodePixels=function(en){var tn=this.pixelBitlength/8,nn=new Uint8Array(this.width*this.height*tn),rn=0,an=this;if(null==en&&(en=this.imgData),0===en.length)return new Uint8Array(0);function o(sn,cn,An,dn){var un,pn,hn,gn,_n,mn,fn,yn,bn,vn,wn,xn,kn,Cn,Sn,Bn,En,jn,Ln,Pn,Tn,Fn=Math.ceil((an.width-sn)/An),Un=Math.ceil((an.height-cn)/dn),Nn=an.width==Fn&&an.height==Un;for(Cn=tn*Fn,xn=Nn?nn:new Uint8Array(Cn*Un),mn=en.length,kn=0,pn=0;kn<Un&&rn<mn;){switch(en[rn++]){case 0:for(gn=En=0;En<Cn;gn=En+=1)xn[pn++]=en[rn++];break;case 1:for(gn=jn=0;jn<Cn;gn=jn+=1)un=en[rn++],_n=gn<tn?0:xn[pn-tn],xn[pn++]=(un+_n)%256;break;case 2:for(gn=Ln=0;Ln<Cn;gn=Ln+=1)un=en[rn++],hn=(gn-gn%tn)/tn,Sn=kn&&xn[(kn-1)*Cn+hn*tn+gn%tn],xn[pn++]=(Sn+un)%256;break;case 3:for(gn=Pn=0;Pn<Cn;gn=Pn+=1)un=en[rn++],hn=(gn-gn%tn)/tn,_n=gn<tn?0:xn[pn-tn],Sn=kn&&xn[(kn-1)*Cn+hn*tn+gn%tn],xn[pn++]=(un+Math.floor((_n+Sn)/2))%256;break;case 4:for(gn=Tn=0;Tn<Cn;gn=Tn+=1)un=en[rn++],hn=(gn-gn%tn)/tn,_n=gn<tn?0:xn[pn-tn],0===kn?Sn=Bn=0:(Sn=xn[(kn-1)*Cn+hn*tn+gn%tn],Bn=hn&&xn[(kn-1)*Cn+(hn-1)*tn+gn%tn]),fn=_n+Sn-Bn,yn=Math.abs(fn-_n),vn=Math.abs(fn-Sn),wn=Math.abs(fn-Bn),bn=yn<=vn&&yn<=wn?_n:vn<=wn?Sn:Bn,xn[pn++]=(un+bn)%256;break;default:throw new Error("Invalid filter algorithm: "+en[rn-1])}if(!Nn){var In=((cn+kn*dn)*an.width+sn)*tn,Mn=kn*Cn;for(gn=0;gn<Fn;gn+=1){for(var Rn=0;Rn<tn;Rn+=1)nn[In++]=xn[Mn++];In+=(An-1)*tn}}kn++}}return en=function unzlibSync(en,tn){return function(en,tn,nn){var rn=en.length,an=!tn||nn,sn=!nn||nn.i;nn||(nn={}),tn||(tn=new Zs(3*rn));var cbuf=function(en){var nn=tn.length;if(en>nn){var rn=new Zs(Math.max(2*nn,en));rn.set(tn),tn=rn}},cn=nn.f||0,An=nn.p||0,dn=nn.b||0,un=nn.l,pn=nn.d,hn=nn.m,gn=nn.n,_n=8*rn;do{if(!un){nn.f=cn=bits(en,An,1);var mn=bits(en,An+1,3);if(An+=3,!mn){var fn=en[(jn=shft(An)+4)-4]|en[jn-3]<<8,yn=jn+fn;if(yn>rn){if(sn)throw"unexpected EOF";break}an&&cbuf(dn+fn),tn.set(en.subarray(jn,yn),dn),nn.b=dn+=fn,nn.p=An=8*yn;continue}if(1==mn)un=_l,pn=fl,hn=9,gn=5;else{if(2!=mn)throw"invalid block type";var bn=bits(en,An,31)+257,vn=bits(en,An+10,15)+4,wn=bn+bits(en,An+5,31)+1;An+=14;for(var xn=new Zs(wn),kn=new Zs(19),Cn=0;Cn<vn;++Cn)kn[rl[Cn]]=bits(en,An+3*Cn,7);An+=3*vn;var Sn=max$3(kn),Bn=(1<<Sn)-1;if(!sn&&An+wn*(Sn+7)>_n)break;var En=hMap(kn,Sn,1);for(Cn=0;Cn<wn;){var jn,Ln=En[bits(en,An,Bn)];if(An+=15&Ln,(jn=Ln>>>4)<16)xn[Cn++]=jn;else{var Pn=0,Tn=0;for(16==jn?(Tn=3+bits(en,An,3),An+=2,Pn=xn[Cn-1]):17==jn?(Tn=3+bits(en,An,7),An+=3):18==jn&&(Tn=11+bits(en,An,127),An+=7);Tn--;)xn[Cn++]=Pn}}var Fn=xn.subarray(0,bn),Un=xn.subarray(bn);hn=max$3(Fn),gn=max$3(Un),un=hMap(Fn,hn,1),pn=hMap(Un,gn,1)}if(An>_n)throw"unexpected EOF"}an&&cbuf(dn+131072);for(var Nn=(1<<hn)-1,In=(1<<gn)-1,Mn=hn+gn+18;sn||An+Mn<_n;){var Rn=(Pn=un[bits16(en,An)&Nn])>>>4;if((An+=15&Pn)>_n)throw"unexpected EOF";if(!Pn)throw"invalid length/literal";if(Rn<256)tn[dn++]=Rn;else{if(256==Rn){un=null;break}var On=Rn-254;if(Rn>264){var Qn=tl[Cn=Rn-257];On=bits(en,An,(1<<Qn)-1)+il[Cn],An+=Qn}var qn=pn[bits16(en,An)&In],Vn=qn>>>4;if(!qn)throw"invalid distance";if(An+=15&qn,Un=ll[Vn],Vn>3&&(Qn=nl[Vn],Un+=bits16(en,An)&(1<<Qn)-1,An+=Qn),An>_n)throw"unexpected EOF";an&&cbuf(dn+131072);for(var Gn=dn+On;dn<Gn;dn+=4)tn[dn]=tn[dn-Un],tn[dn+1]=tn[dn+1-Un],tn[dn+2]=tn[dn+2-Un],tn[dn+3]=tn[dn+3-Un];dn=Gn}}nn.l=un,nn.p=An,nn.b=dn,un&&(cn=1,nn.m=hn,nn.d=pn,nn.n=gn)}while(!cn);return dn==tn.length?tn:slc(tn,0,dn)}((function(en){if(8!=(15&en[0])||en[0]>>>4>7||(en[0]<<8|en[1])%31)throw"invalid zlib data";if(32&en[1])throw"invalid zlib data: preset dictionaries not supported"}(en),en.subarray(2,-4)),tn)}(en),1==an.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),nn},a.prototype.decodePalette=function(){var en,tn,nn,rn,an,sn,cn,An,dn;for(nn=this.palette,sn=this.transparency.indexed||[],an=new Uint8Array((sn.length||0)+nn.length),rn=0,en=0,tn=cn=0,An=nn.length;cn<An;tn=cn+=3)an[rn++]=nn[tn],an[rn++]=nn[tn+1],an[rn++]=nn[tn+2],an[rn++]=null!=(dn=sn[en++])?dn:255;return an},a.prototype.copyToImageData=function(en,tn){var nn,rn,an,sn,cn,An,dn,un,pn,hn,gn;if(rn=this.colors,pn=null,nn=this.hasAlphaChannel,this.palette.length&&(pn=null!=(gn=this._decodedPalette)?gn:this._decodedPalette=this.decodePalette(),rn=4,nn=!0),un=(an=en.data||en).length,cn=pn||tn,sn=An=0,1===rn)for(;sn<un;)dn=pn?4*tn[sn/4]:An,hn=cn[dn++],an[sn++]=hn,an[sn++]=hn,an[sn++]=hn,an[sn++]=nn?cn[dn++]:255,An=dn;else for(;sn<un;)dn=pn?4*tn[sn/4]:An,an[sn++]=cn[dn++],an[sn++]=cn[dn++],an[sn++]=cn[dn++],an[sn++]=nn?cn[dn++]:255,An=dn},a.prototype.decode=function(){var en;return en=new Uint8Array(this.width*this.height*4),this.copyToImageData(en,this.decodePixels()),en};var o=function(){if("[object Window]"===Object.prototype.toString.call(vl)){try{tn=vl.document.createElement("canvas"),nn=tn.getContext("2d")}catch(en){return!1}return!0}return!1};return o(),en=function(en){var rn;if(!0===o())return nn.width=en.width,nn.height=en.height,nn.clearRect(0,0,en.width,en.height),nn.putImageData(en,0,0),(rn=new Image).src=tn.toDataURL(),rn;throw new Error("This method requires a Browser with Canvas-capability.")},a.prototype.decodeFrames=function(tn){var nn,rn,an,sn,cn,An,dn,un;if(this.animation){for(un=[],rn=cn=0,An=(dn=this.animation.frames).length;cn<An;rn=++cn)nn=dn[rn],an=tn.createImageData(nn.width,nn.height),sn=this.decodePixels(new Uint8Array(nn.data)),this.copyToImageData(an,sn),nn.imageData=an,un.push(nn.image=en(an));return un}},a.prototype.renderFrame=function(en,tn){var nn,rn,an;return nn=(rn=this.animation.frames)[tn],an=rn[tn-1],0===tn&&en.clearRect(0,0,this.width,this.height),1===(null!=an?an.disposeOp:void 0)?en.clearRect(an.xOffset,an.yOffset,an.width,an.height):2===(null!=an?an.disposeOp:void 0)&&en.putImageData(an.imageData,an.xOffset,an.yOffset),0===nn.blendOp&&en.clearRect(nn.xOffset,nn.yOffset,nn.width,nn.height),en.drawImage(nn.image,nn.xOffset,nn.yOffset)},a.prototype.animate=function(en){var tn,nn,rn,an,sn,cn,An=this;return nn=0,cn=this.animation,an=cn.numFrames,rn=cn.frames,sn=cn.numPlays,(tn=function(){var cn,dn;if(cn=nn++%an,dn=rn[cn],An.renderFrame(en,cn),an>1&&nn/an<sn)return An.animation._timeout=setTimeout(tn,dn.delay)})()},a.prototype.stopAnimation=function(){var en;return clearTimeout(null!=(en=this.animation)?en._timeout:void 0)},a.prototype.render=function(en){var tn,nn;return en._png&&en._png.stopAnimation(),en._png=this,en.width=this.width,en.height=this.height,tn=en.getContext("2d"),this.animation?(this.decodeFrames(tn),this.animate(tn)):(nn=tn.createImageData(this.width,this.height),this.copyToImageData(nn,this.decodePixels()),tn.putImageData(nn,0,0))},a}();
/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
/**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function Zt(en){var tn=0;if(71!==en[tn++]||73!==en[tn++]||70!==en[tn++]||56!==en[tn++]||56!=(en[tn++]+1&253)||97!==en[tn++])throw new Error("Invalid GIF 87a/89a header.");var nn=en[tn++]|en[tn++]<<8,rn=en[tn++]|en[tn++]<<8,an=en[tn++],sn=an>>7,cn=1<<1+(7&an);en[tn++],en[tn++];var An=null,dn=null;sn&&(An=tn,dn=cn,tn+=3*cn);var un=!0,pn=[],hn=0,gn=null,_n=0,mn=null;for(this.width=nn,this.height=rn;un&&tn<en.length;)switch(en[tn++]){case 33:switch(en[tn++]){case 255:if(11!==en[tn]||78==en[tn+1]&&69==en[tn+2]&&84==en[tn+3]&&83==en[tn+4]&&67==en[tn+5]&&65==en[tn+6]&&80==en[tn+7]&&69==en[tn+8]&&50==en[tn+9]&&46==en[tn+10]&&48==en[tn+11]&&3==en[tn+12]&&1==en[tn+13]&&0==en[tn+16])tn+=14,mn=en[tn++]|en[tn++]<<8,tn++;else for(tn+=12;;){if(!((Ln=en[tn++])>=0))throw Error("Invalid block size");if(0===Ln)break;tn+=Ln}break;case 249:if(4!==en[tn++]||0!==en[tn+4])throw new Error("Invalid graphics extension block.");var fn=en[tn++];hn=en[tn++]|en[tn++]<<8,gn=en[tn++],0==(1&fn)&&(gn=null),_n=fn>>2&7,tn++;break;case 254:for(;;){if(!((Ln=en[tn++])>=0))throw Error("Invalid block size");if(0===Ln)break;tn+=Ln}break;default:throw new Error("Unknown graphic control label: 0x"+en[tn-1].toString(16))}break;case 44:var yn=en[tn++]|en[tn++]<<8,bn=en[tn++]|en[tn++]<<8,vn=en[tn++]|en[tn++]<<8,wn=en[tn++]|en[tn++]<<8,xn=en[tn++],kn=xn>>6&1,Cn=1<<1+(7&xn),Sn=An,Bn=dn,En=!1;xn>>7&&(En=!0,Sn=tn,Bn=Cn,tn+=3*Cn);var jn=tn;for(tn++;;){var Ln;if(!((Ln=en[tn++])>=0))throw Error("Invalid block size");if(0===Ln)break;tn+=Ln}pn.push({x:yn,y:bn,width:vn,height:wn,has_local_palette:En,palette_offset:Sn,palette_size:Bn,data_offset:jn,data_length:tn-jn,transparent_index:gn,interlaced:!!kn,delay:hn,disposal:_n});break;case 59:un=!1;break;default:throw new Error("Unknown gif block: 0x"+en[tn-1].toString(16))}this.numFrames=function(){return pn.length},this.loopCount=function(){return mn},this.frameInfo=function(en){if(en<0||en>=pn.length)throw new Error("Frame index out of range.");return pn[en]},this.decodeAndBlitFrameBGRA=function(tn,rn){var an=this.frameInfo(tn),sn=an.width*an.height,cn=new Uint8Array(sn);$t(en,an.data_offset,cn,sn);var An=an.palette_offset,dn=an.transparent_index;null===dn&&(dn=256);var un=an.width,pn=nn-un,hn=un,gn=4*(an.y*nn+an.x),_n=4*((an.y+an.height)*nn+an.x),mn=gn,fn=4*pn;!0===an.interlaced&&(fn+=4*nn*7);for(var yn=8,bn=0,vn=cn.length;bn<vn;++bn){var wn=cn[bn];if(0===hn&&(hn=un,(mn+=fn)>=_n&&(fn=4*pn+4*nn*(yn-1),mn=gn+(un+pn)*(yn<<1),yn>>=1)),wn===dn)mn+=4;else{var xn=en[An+3*wn],kn=en[An+3*wn+1],Cn=en[An+3*wn+2];rn[mn++]=Cn,rn[mn++]=kn,rn[mn++]=xn,rn[mn++]=255}--hn}},this.decodeAndBlitFrameRGBA=function(tn,rn){var an=this.frameInfo(tn),sn=an.width*an.height,cn=new Uint8Array(sn);$t(en,an.data_offset,cn,sn);var An=an.palette_offset,dn=an.transparent_index;null===dn&&(dn=256);var un=an.width,pn=nn-un,hn=un,gn=4*(an.y*nn+an.x),_n=4*((an.y+an.height)*nn+an.x),mn=gn,fn=4*pn;!0===an.interlaced&&(fn+=4*nn*7);for(var yn=8,bn=0,vn=cn.length;bn<vn;++bn){var wn=cn[bn];if(0===hn&&(hn=un,(mn+=fn)>=_n&&(fn=4*pn+4*nn*(yn-1),mn=gn+(un+pn)*(yn<<1),yn>>=1)),wn===dn)mn+=4;else{var xn=en[An+3*wn],kn=en[An+3*wn+1],Cn=en[An+3*wn+2];rn[mn++]=xn,rn[mn++]=kn,rn[mn++]=Cn,rn[mn++]=255}--hn}}}function $t(en,tn,nn,rn){for(var an=en[tn++],sn=1<<an,cn=sn+1,An=cn+1,dn=an+1,un=(1<<dn)-1,pn=0,hn=0,gn=0,_n=en[tn++],mn=new Int32Array(4096),fn=null;;){for(;pn<16&&0!==_n;)hn|=en[tn++]<<pn,pn+=8,1===_n?_n=en[tn++]:--_n;if(pn<dn)break;var yn=hn&un;if(hn>>=dn,pn-=dn,yn!==sn){if(yn===cn)break;for(var bn=yn<An?yn:fn,vn=0,wn=bn;wn>sn;)wn=mn[wn]>>8,++vn;var xn=wn;if(gn+vn+(bn!==yn?1:0)>rn)return void wl.log("Warning, gif stream longer than expected.");nn[gn++]=xn;var kn=gn+=vn;for(bn!==yn&&(nn[gn++]=xn),wn=bn;vn--;)wn=mn[wn],nn[--kn]=255&wn,wn>>=8;null!==fn&&An<4096&&(mn[An++]=fn<<8|xn,An>=un+1&&dn<12&&(++dn,un=un<<1|1)),fn=yn}else An=cn+1,un=(1<<(dn=an+1))-1,fn=null}return gn!==rn&&wl.log("Warning, gif stream shorter than expected."),nn;
/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/}function Qt(en){var tn,nn,rn,an,sn,cn=Math.floor,An=new Array(64),dn=new Array(64),un=new Array(64),pn=new Array(64),hn=new Array(65535),gn=new Array(65535),_n=new Array(64),mn=new Array(64),fn=[],yn=0,bn=7,vn=new Array(64),wn=new Array(64),xn=new Array(64),kn=new Array(256),Cn=new Array(2048),Sn=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Bn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],En=[0,1,2,3,4,5,6,7,8,9,10,11],jn=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Ln=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Pn=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Tn=[0,1,2,3,4,5,6,7,8,9,10,11],Fn=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Un=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function j(en,tn){for(var nn=0,rn=0,an=new Array,sn=1;sn<=16;sn++){for(var cn=1;cn<=en[sn];cn++)an[tn[rn]]=[],an[tn[rn]][0]=nn,an[tn[rn]][1]=sn,rn++,nn++;nn*=2}return an}function O(en){for(var tn=en[0],nn=en[1]-1;nn>=0;)tn&1<<nn&&(yn|=1<<bn),nn--,--bn<0&&(255==yn?(B(255),B(0)):B(yn),bn=7,yn=0)}function B(en){fn.push(en)}function M(en){B(en>>8&255),B(255&en)}function E(en,tn,nn,rn,an){for(var sn,cn=an[0],An=an[240],dn=function(en,tn){var nn,rn,an,sn,cn,An,dn,un,pn,hn,gn=0;for(pn=0;pn<8;++pn){nn=en[gn],rn=en[gn+1],an=en[gn+2],sn=en[gn+3],cn=en[gn+4],An=en[gn+5],dn=en[gn+6];var mn=nn+(un=en[gn+7]),fn=nn-un,yn=rn+dn,bn=rn-dn,vn=an+An,wn=an-An,xn=sn+cn,kn=sn-cn,Cn=mn+xn,Sn=mn-xn,Bn=yn+vn,En=yn-vn;en[gn]=Cn+Bn,en[gn+4]=Cn-Bn;var jn=.707106781*(En+Sn);en[gn+2]=Sn+jn,en[gn+6]=Sn-jn;var Ln=.382683433*((Cn=kn+wn)-(En=bn+fn)),Pn=.5411961*Cn+Ln,Tn=1.306562965*En+Ln,Fn=.707106781*(Bn=wn+bn),Un=fn+Fn,Nn=fn-Fn;en[gn+5]=Nn+Pn,en[gn+3]=Nn-Pn,en[gn+1]=Un+Tn,en[gn+7]=Un-Tn,gn+=8}for(gn=0,pn=0;pn<8;++pn){nn=en[gn],rn=en[gn+8],an=en[gn+16],sn=en[gn+24],cn=en[gn+32],An=en[gn+40],dn=en[gn+48];var In=nn+(un=en[gn+56]),Mn=nn-un,Rn=rn+dn,On=rn-dn,Qn=an+An,qn=an-An,Vn=sn+cn,Gn=sn-cn,Dn=In+Vn,Hn=In-Vn,zn=Rn+Qn,Kn=Rn-Qn;en[gn]=Dn+zn,en[gn+32]=Dn-zn;var $n=.707106781*(Kn+Hn);en[gn+16]=Hn+$n,en[gn+48]=Hn-$n;var Wn=.382683433*((Dn=Gn+qn)-(Kn=On+Mn)),Xn=.5411961*Dn+Wn,Yn=1.306562965*Kn+Wn,Zn=.707106781*(zn=qn+On),Jn=Mn+Zn,Tr=Mn-Zn;en[gn+40]=Tr+Xn,en[gn+24]=Tr-Xn,en[gn+8]=Jn+Yn,en[gn+56]=Jn-Yn,gn++}for(pn=0;pn<64;++pn)hn=en[pn]*tn[pn],_n[pn]=hn>0?hn+.5|0:hn-.5|0;return _n}(en,tn),un=0;un<64;++un)mn[Sn[un]]=dn[un];var pn=mn[0]-nn;nn=mn[0],0==pn?O(rn[0]):(O(rn[gn[sn=32767+pn]]),O(hn[sn]));for(var fn=63;fn>0&&0==mn[fn];)fn--;if(0==fn)return O(cn),nn;for(var yn,bn=1;bn<=fn;){for(var vn=bn;0==mn[bn]&&bn<=fn;)++bn;var wn=bn-vn;if(wn>=16){yn=wn>>4;for(var xn=1;xn<=yn;++xn)O(An);wn&=15}sn=32767+mn[bn],O(an[(wn<<4)+gn[sn]]),O(hn[sn]),bn++}return 63!=fn&&O(cn),nn}function q(en){en=Math.min(Math.max(en,1),100),sn!=en&&(function(en){for(var tn=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],nn=0;nn<64;nn++){var rn=cn((tn[nn]*en+50)/100);rn=Math.min(Math.max(rn,1),255),An[Sn[nn]]=rn}for(var an=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],sn=0;sn<64;sn++){var hn=cn((an[sn]*en+50)/100);hn=Math.min(Math.max(hn,1),255),dn[Sn[sn]]=hn}for(var gn=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],_n=0,mn=0;mn<8;mn++)for(var fn=0;fn<8;fn++)un[_n]=1/(An[Sn[_n]]*gn[mn]*gn[fn]*8),pn[_n]=1/(dn[Sn[_n]]*gn[mn]*gn[fn]*8),_n++}(en<50?Math.floor(5e3/en):Math.floor(200-2*en)),sn=en)}this.encode=function(en,sn){sn&&q(sn),fn=new Array,yn=0,bn=7,M(65496),M(65504),M(16),B(74),B(70),B(73),B(70),B(0),B(1),B(1),B(0),M(1),M(1),B(0),B(0),function(){M(65499),M(132),B(0);for(var en=0;en<64;en++)B(An[en]);B(1);for(var tn=0;tn<64;tn++)B(dn[tn])}(),function(en,tn){M(65472),M(17),B(8),M(tn),M(en),B(3),B(1),B(17),B(0),B(2),B(17),B(1),B(3),B(17),B(1)}(en.width,en.height),function(){M(65476),M(418),B(0);for(var en=0;en<16;en++)B(Bn[en+1]);for(var tn=0;tn<=11;tn++)B(En[tn]);B(16);for(var nn=0;nn<16;nn++)B(jn[nn+1]);for(var rn=0;rn<=161;rn++)B(Ln[rn]);B(1);for(var an=0;an<16;an++)B(Pn[an+1]);for(var sn=0;sn<=11;sn++)B(Tn[sn]);B(17);for(var cn=0;cn<16;cn++)B(Fn[cn+1]);for(var An=0;An<=161;An++)B(Un[An])}(),M(65498),M(12),B(3),B(1),B(0),B(2),B(17),B(3),B(17),B(0),B(63),B(0);var cn=0,hn=0,gn=0;yn=0,bn=7,this.encode.displayName="_encode_";for(var _n,mn,kn,Sn,Nn,In,Mn,Rn,On,Qn=en.data,qn=en.width,Vn=en.height,Gn=4*qn,Dn=0;Dn<Vn;){for(_n=0;_n<Gn;){for(Nn=Gn*Dn+_n,Mn=-1,Rn=0,On=0;On<64;On++)In=Nn+(Rn=On>>3)*Gn+(Mn=4*(7&On)),Dn+Rn>=Vn&&(In-=Gn*(Dn+1+Rn-Vn)),_n+Mn>=Gn&&(In-=_n+Mn-Gn+4),mn=Qn[In++],kn=Qn[In++],Sn=Qn[In++],vn[On]=(Cn[mn]+Cn[kn+256>>0]+Cn[Sn+512>>0]>>16)-128,wn[On]=(Cn[mn+768>>0]+Cn[kn+1024>>0]+Cn[Sn+1280>>0]>>16)-128,xn[On]=(Cn[mn+1280>>0]+Cn[kn+1536>>0]+Cn[Sn+1792>>0]>>16)-128;cn=E(vn,un,cn,tn,rn),hn=E(wn,pn,hn,nn,an),gn=E(xn,pn,gn,nn,an),_n+=32}Dn+=8}if(bn>=0){var Hn=[];Hn[1]=bn+1,Hn[0]=(1<<bn+1)-1,O(Hn)}return M(65497),new Uint8Array(fn)},en=en||50,function(){for(var en=String.fromCharCode,tn=0;tn<256;tn++)kn[tn]=en(tn)}(),tn=j(Bn,En),nn=j(Pn,Tn),rn=j(jn,Ln),an=j(Fn,Un),function(){for(var en=1,tn=2,nn=1;nn<=15;nn++){for(var rn=en;rn<tn;rn++)gn[32767+rn]=nn,hn[32767+rn]=[],hn[32767+rn][1]=nn,hn[32767+rn][0]=rn;for(var an=-(tn-1);an<=-en;an++)gn[32767+an]=nn,hn[32767+an]=[],hn[32767+an][1]=nn,hn[32767+an][0]=tn-1+an;en<<=1,tn<<=1}}(),function(){for(var en=0;en<256;en++)Cn[en]=19595*en,Cn[en+256>>0]=38470*en,Cn[en+512>>0]=7471*en+32768,Cn[en+768>>0]=-11059*en,Cn[en+1024>>0]=-21709*en,Cn[en+1280>>0]=32768*en+8421375,Cn[en+1536>>0]=-27439*en,Cn[en+1792>>0]=-5329*en}(),q(en)}
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function te(en,tn){if(this.pos=0,this.buffer=en,this.datav=new DataView(en.buffer),this.is_with_alpha=!!tn,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ee(en){function e(en){if(!en)throw Error("assert :P")}function r(en,tn,nn){for(var rn=0;4>rn;rn++)if(en[tn+rn]!=nn.charCodeAt(rn))return!0;return!1}function n(en,tn,nn,rn,an){for(var sn=0;sn<an;sn++)en[tn+sn]=nn[rn+sn]}function i(en,tn,nn,rn){for(var an=0;an<rn;an++)en[tn+an]=nn}function a(en){return new Int32Array(en)}function o(en,tn){for(var nn=[],rn=0;rn<en;rn++)nn.push(new tn);return nn}function s(en,tn){var nn=[];return function t(en,nn,rn){for(var an=rn[nn],sn=0;sn<an&&(en.push(rn.length>nn+1?[]:new tn),!(rn.length<nn+1));sn++)t(en[sn],nn+1,rn)}(nn,0,en),nn}var c=function(){var en=this;function c(en,tn){for(var nn=1<<tn-1>>>0;en&nn;)nn>>>=1;return nn?(en&nn-1)+nn:en}function u(en,tn,nn,rn,an){e(!(rn%nn));do{en[tn+(rn-=nn)]=an}while(0<rn)}function h(en,tn,nn,rn,an){if(e(2328>=an),512>=an)var sn=a(512);else if(null==(sn=a(an)))return 0;return function(en,tn,nn,rn,an,sn){var cn,An,dn=tn,un=1<<nn,pn=a(16),hn=a(16);for(e(0!=an),e(null!=rn),e(null!=en),e(0<nn),An=0;An<an;++An){if(15<rn[An])return 0;++pn[rn[An]]}if(pn[0]==an)return 0;for(hn[1]=0,cn=1;15>cn;++cn){if(pn[cn]>1<<cn)return 0;hn[cn+1]=hn[cn]+pn[cn]}for(An=0;An<an;++An)cn=rn[An],0<rn[An]&&(sn[hn[cn]++]=An);if(1==hn[15])return(rn=new l).g=0,rn.value=sn[0],u(en,dn,1,un,rn),un;var gn,_n=-1,mn=un-1,fn=0,yn=1,bn=1,vn=1<<nn;for(An=0,cn=1,an=2;cn<=nn;++cn,an<<=1){if(yn+=bn<<=1,0>(bn-=pn[cn]))return 0;for(;0<pn[cn];--pn[cn])(rn=new l).g=cn,rn.value=sn[An++],u(en,dn+fn,an,vn,rn),fn=c(fn,cn)}for(cn=nn+1,an=2;15>=cn;++cn,an<<=1){if(yn+=bn<<=1,0>(bn-=pn[cn]))return 0;for(;0<pn[cn];--pn[cn]){if(rn=new l,(fn&mn)!=_n){for(dn+=vn,gn=1<<(_n=cn)-nn;15>_n&&!(0>=(gn-=pn[_n]));)++_n,gn<<=1;un+=vn=1<<(gn=_n-nn),en[tn+(_n=fn&mn)].g=gn+nn,en[tn+_n].value=dn-tn-_n}rn.g=cn-nn,rn.value=sn[An++],u(en,dn+(fn>>nn),an,vn,rn),fn=c(fn,cn)}}return yn!=2*hn[15]-1?0:un}(en,tn,nn,rn,an,sn)}function l(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,l),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(tn,f)}function p(en,tn,nn,rn){e(null!=en),e(null!=tn),e(2147483648>rn),en.Ca=254,en.I=0,en.b=-8,en.Ka=0,en.oa=tn,en.pa=nn,en.Jd=tn,en.Yc=nn+rn,en.Zc=4<=rn?nn+rn-4+1:nn,_(en)}function g(en,tn){for(var nn=0;0<tn--;)nn|=k(en,128)<<tn;return nn}function m(en,tn){var nn=g(en,tn);return P(en)?-nn:nn}function v(en,tn,nn,rn){var an,sn=0;for(e(null!=en),e(null!=tn),e(4294967288>rn),en.Sb=rn,en.Ra=0,en.u=0,en.h=0,4<rn&&(rn=4),an=0;an<rn;++an)sn+=tn[nn+an]<<8*an;en.Ra=sn,en.bb=rn,en.oa=tn,en.pa=nn}function b(en){for(;8<=en.u&&en.bb<en.Sb;)en.Ra>>>=8,en.Ra+=en.oa[en.pa+en.bb]<<an-8>>>0,++en.bb,en.u-=8;A(en)&&(en.h=1,en.u=0)}function y(en,tn){if(e(0<=tn),!en.h&&tn<=rn){var an=L(en)&nn[tn];return en.u+=tn,b(en),an}return en.h=1,en.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function L(en){return en.Ra>>>(en.u&an-1)>>>0}function A(en){return e(en.bb<=en.Sb),en.h||en.bb==en.Sb&&en.u>an}function x(en,tn){en.u=tn,en.h=A(en)}function S(en){en.u>=sn&&(e(en.u>=sn),b(en))}function _(en){e(null!=en&&null!=en.oa),en.pa<en.Zc?(en.I=(en.oa[en.pa++]|en.I<<8)>>>0,en.b+=8):(e(null!=en&&null!=en.oa),en.pa<en.Yc?(en.b+=8,en.I=en.oa[en.pa++]|en.I<<8):en.Ka?en.b=0:(en.I<<=8,en.b+=8,en.Ka=1))}function P(en){return g(en,1)}function k(en,tn){var nn=en.Ca;0>en.b&&_(en);var rn=en.b,an=nn*tn>>>8,sn=(en.I>>>rn>an)+0;for(sn?(nn-=an,en.I-=an+1<<rn>>>0):nn=an+1,rn=nn,an=0;256<=rn;)an+=8,rn>>=8;return rn=7^an+cn[rn],en.b-=rn,en.Ca=(nn<<rn)-1,sn}function I(en,tn,nn){en[tn+0]=nn>>24&255,en[tn+1]=nn>>16&255,en[tn+2]=nn>>8&255,en[tn+3]=nn>>0&255}function F(en,tn){return en[tn+0]<<0|en[tn+1]<<8}function C(en,tn){return F(en,tn)|en[tn+2]<<16}function j(en,tn){return F(en,tn)|F(en,tn+2)<<16}function O(en,tn){var nn=1<<tn;return e(null!=en),e(0<tn),en.X=a(nn),null==en.X?0:(en.Mb=32-tn,en.Xa=tn,1)}function B(en,tn){e(null!=en),e(null!=tn),e(en.Xa==tn.Xa),n(tn.X,0,en.X,0,1<<tn.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function E(en,tn,nn,rn){e(null!=nn),e(null!=rn);var an=nn[0],sn=rn[0];return 0==an&&(an=(en*sn+tn/2)/tn),0==sn&&(sn=(tn*an+en/2)/en),0>=an||0>=sn?0:(nn[0]=an,rn[0]=sn,1)}function q(en,tn){return en+(1<<tn)-1>>>tn}function D(en,tn){return((4278255360&en)+(4278255360&tn)>>>0&4278255360)+((16711935&en)+(16711935&tn)>>>0&16711935)>>>0}function R(tn,nn){en[nn]=function(nn,rn,an,sn,cn,An,dn){var un;for(un=0;un<cn;++un){var pn=en[tn](An[dn+un-1],an,sn+un);An[dn+un]=D(nn[rn+un],pn)}}}function T(){this.ud=this.hd=this.jd=0}function U(en,tn){return((4278124286&(en^tn))>>>1)+(en&tn)>>>0}function z(en){return 0<=en&&256>en?en:0>en?0:255<en?255:void 0}function H(en,tn){return z(en+(en-tn+.5>>1))}function W(en,tn,nn){return Math.abs(tn-nn)-Math.abs(en-nn)}function V(en,tn,nn,rn,an,sn,cn){for(rn=sn[cn-1],nn=0;nn<an;++nn)sn[cn+nn]=rn=D(en[tn+nn],rn)}function G(en,tn,nn,rn,an){var sn;for(sn=0;sn<nn;++sn){var cn=en[tn+sn],An=cn>>8&255,dn=16711935&(dn=(dn=16711935&cn)+((An<<16)+An));rn[an+sn]=(4278255360&cn)+dn>>>0}}function Y(en,tn){tn.jd=en>>0&255,tn.hd=en>>8&255,tn.ud=en>>16&255}function J(en,tn,nn,rn,an,sn){var cn;for(cn=0;cn<rn;++cn){var An=tn[nn+cn],dn=An>>>8,un=An,pn=255&(pn=(pn=An>>>16)+((en.jd<<24>>24)*(dn<<24>>24)>>>5));un=255&(un=(un+=(en.hd<<24>>24)*(dn<<24>>24)>>>5)+((en.ud<<24>>24)*(pn<<24>>24)>>>5)),an[sn+cn]=(4278255360&An)+(pn<<16)+un}}function X(tn,nn,rn,an,sn){en[nn]=function(en,tn,nn,rn,cn,An,dn,un,pn){for(rn=dn;rn<un;++rn)for(dn=0;dn<pn;++dn)cn[An++]=sn(nn[an(en[tn++])])},en[tn]=function(tn,nn,cn,An,dn,un,pn){var hn=8>>tn.b,gn=tn.Ea,_n=tn.K[0],mn=tn.w;if(8>hn)for(tn=(1<<tn.b)-1,mn=(1<<hn)-1;nn<cn;++nn){var fn,yn=0;for(fn=0;fn<gn;++fn)fn&tn||(yn=an(An[dn++])),un[pn++]=sn(_n[yn&mn]),yn>>=hn}else en["VP8LMapColor"+rn](An,dn,_n,mn,un,pn,nn,cn,gn)}}function K(en,tn,nn,rn,an){for(nn=tn+nn;tn<nn;){var sn=en[tn++];rn[an++]=sn>>16&255,rn[an++]=sn>>8&255,rn[an++]=sn>>0&255}}function Z(en,tn,nn,rn,an){for(nn=tn+nn;tn<nn;){var sn=en[tn++];rn[an++]=sn>>16&255,rn[an++]=sn>>8&255,rn[an++]=sn>>0&255,rn[an++]=sn>>24&255}}function $(en,tn,nn,rn,an){for(nn=tn+nn;tn<nn;){var sn=(cn=en[tn++])>>16&240|cn>>12&15,cn=cn>>0&240|cn>>28&15;rn[an++]=sn,rn[an++]=cn}}function Q(en,tn,nn,rn,an){for(nn=tn+nn;tn<nn;){var sn=(cn=en[tn++])>>16&248|cn>>13&7,cn=cn>>5&224|cn>>3&31;rn[an++]=sn,rn[an++]=cn}}function tt(en,tn,nn,rn,an){for(nn=tn+nn;tn<nn;){var sn=en[tn++];rn[an++]=sn>>0&255,rn[an++]=sn>>8&255,rn[an++]=sn>>16&255}}function et(en,tn,nn,rn,an,sn){if(0==sn)for(nn=tn+nn;tn<nn;)I(rn,((sn=en[tn++])[0]>>24|sn[1]>>8&65280|sn[2]<<8&16711680|sn[3]<<24)>>>0),an+=32;else n(rn,an,en,tn,nn)}function rt(tn,nn){en[nn][0]=en[tn+"0"],en[nn][1]=en[tn+"1"],en[nn][2]=en[tn+"2"],en[nn][3]=en[tn+"3"],en[nn][4]=en[tn+"4"],en[nn][5]=en[tn+"5"],en[nn][6]=en[tn+"6"],en[nn][7]=en[tn+"7"],en[nn][8]=en[tn+"8"],en[nn][9]=en[tn+"9"],en[nn][10]=en[tn+"10"],en[nn][11]=en[tn+"11"],en[nn][12]=en[tn+"12"],en[nn][13]=en[tn+"13"],en[nn][14]=en[tn+"0"],en[nn][15]=en[tn+"0"]}function nt(en){return en==zr||en==Kr||en==$r||en==Wr}function it(){this.eb=[],this.size=this.A=this.fb=0}function at(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new at,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ct(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ut(en){return alert("todo:WebPSamplerProcessPlane"),en.T}function ht(en,tn){var nn=en.T,rn=tn.ba.f.RGBA,an=rn.eb,sn=rn.fb+en.ka*rn.A,cn=vo[tn.ba.S],An=en.y,dn=en.O,un=en.f,pn=en.N,hn=en.ea,gn=en.W,_n=tn.cc,mn=tn.dc,fn=tn.Mc,yn=tn.Nc,bn=en.ka,vn=en.ka+en.T,wn=en.U,xn=wn+1>>1;for(0==bn?cn(An,dn,null,null,un,pn,hn,gn,un,pn,hn,gn,an,sn,null,null,wn):(cn(tn.ec,tn.fc,An,dn,_n,mn,fn,yn,un,pn,hn,gn,an,sn-rn.A,an,sn,wn),++nn);bn+2<vn;bn+=2)_n=un,mn=pn,fn=hn,yn=gn,pn+=en.Rc,gn+=en.Rc,sn+=2*rn.A,cn(An,(dn+=2*en.fa)-en.fa,An,dn,_n,mn,fn,yn,un,pn,hn,gn,an,sn-rn.A,an,sn,wn);return dn+=en.fa,en.j+vn<en.o?(n(tn.ec,tn.fc,An,dn,wn),n(tn.cc,tn.dc,un,pn,xn),n(tn.Mc,tn.Nc,hn,gn,xn),nn--):1&vn||cn(An,dn,null,null,un,pn,hn,gn,un,pn,hn,gn,an,sn+rn.A,null,null,wn),nn}function lt(en,tn,nn){var rn=en.F,an=[en.J];if(null!=rn){var sn=en.U,cn=tn.ba.S,An=cn==Gr||cn==$r;tn=tn.ba.f.RGBA;var dn=[0],un=en.ka;dn[0]=en.T,en.Kb&&(0==un?--dn[0]:(--un,an[0]-=en.width),en.j+en.ka+en.T==en.o&&(dn[0]=en.o-en.j-un));var pn=tn.eb;un=tn.fb+un*tn.A,en=Dn(rn,an[0],en.width,sn,dn,pn,un+(An?0:3),tn.A),e(nn==dn),en&&nt(cn)&&Vn(pn,un,An,sn,dn,tn.A)}return 0}function ft(en){var tn=en.ma,nn=tn.ba.S,rn=11>nn,an=nn==Rr||nn==Vr||nn==Gr||nn==Dr||12==nn||nt(nn);if(tn.memory=null,tn.Ib=null,tn.Jb=null,tn.Nd=null,!Mr(tn.Oa,en,an?11:12))return 0;if(an&&nt(nn)&&br(),en.da)alert("todo:use_scaling");else{if(rn){if(tn.Ib=ut,en.Kb){if(nn=en.U+1>>1,tn.memory=a(en.U+2*nn),null==tn.memory)return 0;tn.ec=tn.memory,tn.fc=0,tn.cc=tn.ec,tn.dc=tn.fc+en.U,tn.Mc=tn.cc,tn.Nc=tn.dc+nn,tn.Ib=ht,br()}}else alert("todo:EmitYUV");an&&(tn.Jb=lt,rn&&mr())}if(rn&&!No){for(en=0;256>en;++en)Io[en]=89858*(en-128)+Lo>>jo,Oo[en]=-22014*(en-128)+Lo,Ro[en]=-45773*(en-128),Mo[en]=113618*(en-128)+Lo>>jo;for(en=Po;en<To;++en)tn=76283*(en-16)+Lo>>jo,Qo[en-Po]=Vt(tn,255),qo[en-Po]=Vt(tn+8>>4,15);No=1}return 1}function dt(en){var tn=en.ma,nn=en.U,rn=en.T;return e(!(1&en.ka)),0>=nn||0>=rn?0:(nn=tn.Ib(en,tn),null!=tn.Jb&&tn.Jb(en,tn,nn),tn.Dc+=nn,1)}function pt(en){en.ma.memory=null}function gt(en,tn,nn,rn){return 47!=y(en,8)?0:(tn[0]=y(en,14)+1,nn[0]=y(en,14)+1,rn[0]=y(en,1),0!=y(en,3)?0:!en.h)}function mt(en,tn){if(4>en)return en+1;var nn=en-2>>1;return(2+(1&en)<<nn)+y(tn,nn)+1}function vt(en,tn){return 120<tn?tn-120:1<=(nn=((nn=to[tn-1])>>4)*en+(8-(15&nn)))?nn:1;var nn}function bt(en,tn,nn){var rn=L(nn),an=en[tn+=255&rn].g-8;return 0<an&&(x(nn,nn.u+8),rn=L(nn),tn+=en[tn].value,tn+=rn&(1<<an)-1),x(nn,nn.u+en[tn].g),en[tn].value}function yt(en,tn,nn){return nn.g+=en.g,nn.value+=en.value<<tn>>>0,e(8>=nn.g),en.g}function wt(en,tn,nn){var rn=en.xc;return e((tn=0==rn?0:en.vc[en.md*(nn>>rn)+(tn>>rn)])<en.Wb),en.Ya[tn]}function Nt(en,tn,nn,rn){var an=en.ab,sn=en.c*tn,cn=en.C;tn=cn+tn;var hn=nn,gn=rn;for(rn=en.Ta,nn=en.Ua;0<an--;){var _n=en.gc[an],yn=cn,bn=tn,vn=hn,wn=gn,xn=(gn=rn,hn=nn,_n.Ea);switch(e(yn<bn),e(bn<=_n.nc),_n.hc){case 2:un(vn,wn,(bn-yn)*xn,gn,hn);break;case 0:var kn=yn,Cn=bn,Sn=gn,Bn=hn,En=(Fn=_n).Ea;0==kn&&(An(vn,wn,null,null,1,Sn,Bn),V(vn,wn+1,0,0,En-1,Sn,Bn+1),wn+=En,Bn+=En,++kn);for(var jn=1<<Fn.b,Ln=jn-1,Pn=q(En,Fn.b),Tn=Fn.K,Fn=Fn.w+(kn>>Fn.b)*Pn;kn<Cn;){var Un=Tn,Nn=Fn,In=1;for(dn(vn,wn,Sn,Bn-En,1,Sn,Bn);In<En;){var Mn=(In&~Ln)+jn;Mn>En&&(Mn=En),(0,mn[Un[Nn++]>>8&15])(vn,wn+ +In,Sn,Bn+In-En,Mn-In,Sn,Bn+In),In=Mn}wn+=En,Bn+=En,++kn&Ln||(Fn+=Pn)}bn!=_n.nc&&n(gn,hn-xn,gn,hn+(bn-yn-1)*xn,xn);break;case 1:for(xn=vn,Cn=wn,En=(vn=_n.Ea)-(Bn=vn&~(Sn=(wn=1<<_n.b)-1)),kn=q(vn,_n.b),jn=_n.K,_n=_n.w+(yn>>_n.b)*kn;yn<bn;){for(Ln=jn,Pn=_n,Tn=new T,Fn=Cn+Bn,Un=Cn+vn;Cn<Fn;)Y(Ln[Pn++],Tn),fn(Tn,xn,Cn,wn,gn,hn),Cn+=wn,hn+=wn;Cn<Un&&(Y(Ln[Pn++],Tn),fn(Tn,xn,Cn,En,gn,hn),Cn+=En,hn+=En),++yn&Sn||(_n+=kn)}break;case 3:if(vn==gn&&wn==hn&&0<_n.b){for(Cn=gn,vn=xn=hn+(bn-yn)*xn-(Bn=(bn-yn)*q(_n.Ea,_n.b)),wn=gn,Sn=hn,kn=[],Bn=(En=Bn)-1;0<=Bn;--Bn)kn[Bn]=wn[Sn+Bn];for(Bn=En-1;0<=Bn;--Bn)Cn[vn+Bn]=kn[Bn];pn(_n,yn,bn,gn,xn,gn,hn)}else pn(_n,yn,bn,vn,wn,gn,hn)}hn=rn,gn=nn}gn!=nn&&n(rn,nn,hn,gn,sn)}function Lt(en,tn){var nn=en.V,rn=en.Ba+en.c*en.C,an=tn-en.C;if(e(tn<=en.l.o),e(16>=an),0<an){var sn=en.l,cn=en.Ta,An=en.Ua,dn=sn.width;if(Nt(en,an,nn,rn),an=An=[An],e((nn=en.C)<(rn=tn)),e(sn.v<sn.va),rn>sn.o&&(rn=sn.o),nn<sn.j){var un=sn.j-nn;nn=sn.j,an[0]+=un*dn}if(nn>=rn?nn=0:(an[0]+=4*sn.v,sn.ka=nn-sn.j,sn.U=sn.va-sn.v,sn.T=rn-nn,nn=1),nn){if(An=An[0],11>(nn=en.ca).S){var pn=nn.f.RGBA,hn=(rn=nn.S,an=sn.U,sn=sn.T,un=pn.eb,pn.A),gn=sn;for(pn=pn.fb+en.Ma*pn.A;0<gn--;){var _n=cn,mn=An,fn=an,kn=un,Cn=pn;switch(rn){case Ur:yn(_n,mn,fn,kn,Cn);break;case Rr:bn(_n,mn,fn,kn,Cn);break;case zr:bn(_n,mn,fn,kn,Cn),Vn(kn,Cn,0,fn,1,0);break;case Qr:xn(_n,mn,fn,kn,Cn);break;case Vr:et(_n,mn,fn,kn,Cn,1);break;case Kr:et(_n,mn,fn,kn,Cn,1),Vn(kn,Cn,0,fn,1,0);break;case Gr:et(_n,mn,fn,kn,Cn,0);break;case $r:et(_n,mn,fn,kn,Cn,0),Vn(kn,Cn,1,fn,1,0);break;case Dr:vn(_n,mn,fn,kn,Cn);break;case Wr:vn(_n,mn,fn,kn,Cn),Gn(kn,Cn,fn,1,0);break;case Hr:wn(_n,mn,fn,kn,Cn);break;default:e(0)}An+=dn,pn+=hn}en.Ma+=sn}else alert("todo:EmitRescaledRowsYUVA");e(en.Ma<=nn.height)}}en.C=tn,e(en.C<=en.i)}function At(en){var tn;if(0<en.ua)return 0;for(tn=0;tn<en.Wb;++tn){var nn=en.Ya[tn].G,rn=en.Ya[tn].H;if(0<nn[1][rn[1]+0].g||0<nn[2][rn[2]+0].g||0<nn[3][rn[3]+0].g)return 0}return 1}function xt(en,tn,nn,rn,an,sn){if(0!=en.Z){var cn=en.qd,An=en.rd;for(e(null!=bo[en.Z]);tn<nn;++tn)bo[en.Z](cn,An,rn,an,rn,an,sn),cn=rn,An=an,an+=sn;en.qd=cn,en.rd=An}}function St(en,tn){var nn=en.l.ma,rn=0==nn.Z||1==nn.Z?en.l.j:en.C;if(rn=en.C<rn?rn:en.C,e(tn<=en.l.o),tn>rn){var an=en.l.width,sn=nn.ca,cn=nn.tb+an*rn,An=en.V,dn=en.Ba+en.c*rn,un=en.gc;e(1==en.ab),e(3==un[0].hc),gn(un[0],rn,tn,An,dn,sn,cn),xt(nn,rn,tn,sn,cn,an)}en.C=en.Ma=tn}function _t(en,nn,rn,an,sn,cn,An){var dn=en.$/an,un=en.$%an,pn=en.m,hn=en.s,gn=rn+en.$,_n=gn;sn=rn+an*sn;var mn=rn+an*cn,fn=280+hn.ua,yn=en.Pb?dn:16777216,bn=0<hn.ua?hn.Wa:null,vn=hn.wc,wn=gn<mn?wt(hn,un,dn):null;e(en.C<cn),e(mn<=sn);var xn=!1;e:for(;;){for(;xn||gn<mn;){var kn=0;if(dn>=yn){var Cn=gn-rn;e((yn=en).Pb),yn.wd=yn.m,yn.xd=Cn,0<yn.s.ua&&B(yn.s.Wa,yn.s.vb),yn=dn+ro}if(un&vn||(wn=wt(hn,un,dn)),e(null!=wn),wn.Qb&&(nn[gn]=wn.qb,xn=!0),!xn)if(S(pn),wn.jc){kn=pn,Cn=nn;var Sn=gn,Bn=wn.pd[L(kn)&tn-1];e(wn.jc),256>Bn.g?(x(kn,kn.u+Bn.g),Cn[Sn]=Bn.value,kn=0):(x(kn,kn.u+Bn.g-256),e(256<=Bn.value),kn=Bn.value),0==kn&&(xn=!0)}else kn=bt(wn.G[0],wn.H[0],pn);if(pn.h)break;if(xn||256>kn){if(!xn)if(wn.nd)nn[gn]=(wn.qb|kn<<8)>>>0;else{if(S(pn),xn=bt(wn.G[1],wn.H[1],pn),S(pn),Cn=bt(wn.G[2],wn.H[2],pn),Sn=bt(wn.G[3],wn.H[3],pn),pn.h)break;nn[gn]=(Sn<<24|xn<<16|kn<<8|Cn)>>>0}if(xn=!1,++gn,++un>=an&&(un=0,++dn,null!=An&&dn<=cn&&!(dn%16)&&An(en,dn),null!=bn))for(;_n<gn;)kn=nn[_n++],bn.X[(506832829*kn&4294967295)>>>bn.Mb]=kn}else if(280>kn){if(kn=mt(kn-256,pn),Cn=bt(wn.G[4],wn.H[4],pn),S(pn),Cn=vt(an,Cn=mt(Cn,pn)),pn.h)break;if(gn-rn<Cn||sn-gn<kn)break e;for(Sn=0;Sn<kn;++Sn)nn[gn+Sn]=nn[gn+Sn-Cn];for(gn+=kn,un+=kn;un>=an;)un-=an,++dn,null!=An&&dn<=cn&&!(dn%16)&&An(en,dn);if(e(gn<=sn),un&vn&&(wn=wt(hn,un,dn)),null!=bn)for(;_n<gn;)kn=nn[_n++],bn.X[(506832829*kn&4294967295)>>>bn.Mb]=kn}else{if(!(kn<fn))break e;for(xn=kn-280,e(null!=bn);_n<gn;)kn=nn[_n++],bn.X[(506832829*kn&4294967295)>>>bn.Mb]=kn;kn=gn,e(!(xn>>>(Cn=bn).Xa)),nn[kn]=Cn.X[xn],xn=!0}xn||e(pn.h==A(pn))}if(en.Pb&&pn.h&&gn<sn)e(en.m.h),en.a=5,en.m=en.wd,en.$=en.xd,0<en.s.ua&&B(en.s.vb,en.s.Wa);else{if(pn.h)break e;null!=An&&An(en,dn>cn?cn:dn),en.a=0,en.$=gn-rn}return 1}return en.a=3,0}function Pt(en){e(null!=en),en.vc=null,en.yc=null,en.Ya=null;var tn=en.Wa;null!=tn&&(tn.X=null),en.vb=null,e(null!=en)}function kt(){var tn=new or;return null==tn?null:(tn.a=0,tn.xb=yo,rt("Predictor","VP8LPredictors"),rt("Predictor","VP8LPredictors_C"),rt("PredictorAdd","VP8LPredictorsAdd"),rt("PredictorAdd","VP8LPredictorsAdd_C"),un=G,fn=J,yn=K,bn=Z,vn=$,wn=Q,xn=tt,en.VP8LMapColor32b=hn,en.VP8LMapColor8b=_n,tn)}function It(en,nn,rn,an,sn){var cn=1,An=[en],dn=[nn],un=an.m,pn=an.s,hn=null,gn=0;e:for(;;){if(rn)for(;cn&&y(un,1);){var _n=An,mn=dn,fn=an,yn=1,bn=fn.m,vn=fn.gc[fn.ab],wn=y(bn,2);if(fn.Oc&1<<wn)cn=0;else{switch(fn.Oc|=1<<wn,vn.hc=wn,vn.Ea=_n[0],vn.nc=mn[0],vn.K=[null],++fn.ab,e(4>=fn.ab),wn){case 0:case 1:vn.b=y(bn,3)+2,yn=It(q(vn.Ea,vn.b),q(vn.nc,vn.b),0,fn,vn.K),vn.K=vn.K[0];break;case 3:var xn,kn=y(bn,8)+1,Cn=16<kn?0:4<kn?1:2<kn?2:3;if(_n[0]=q(vn.Ea,Cn),vn.b=Cn,xn=yn=It(kn,1,0,fn,vn.K)){var Sn,Bn=kn,En=vn,jn=1<<(8>>En.b),Ln=a(jn);if(null==Ln)xn=0;else{var Pn=En.K[0],Tn=En.w;for(Ln[0]=En.K[0][0],Sn=1;Sn<1*Bn;++Sn)Ln[Sn]=D(Pn[Tn+Sn],Ln[Sn-1]);for(;Sn<4*jn;++Sn)Ln[Sn]=0;En.K[0]=null,En.K[0]=Ln,xn=1}}yn=xn;break;case 2:break;default:e(0)}cn=yn}}if(An=An[0],dn=dn[0],cn&&y(un,1)&&!(cn=1<=(gn=y(un,4))&&11>=gn)){an.a=3;break e}var Fn;if(Fn=cn)t:{var Un,Nn,In,Mn=an,Rn=An,On=dn,Qn=gn,qn=rn,Vn=Mn.m,Gn=Mn.s,Dn=[null],Hn=1,zn=0,Kn=no[Qn];n:for(;;){if(qn&&y(Vn,1)){var $n=y(Vn,3)+2,Wn=q(Rn,$n),Xn=q(On,$n),Yn=Wn*Xn;if(!It(Wn,Xn,0,Mn,Dn))break n;for(Dn=Dn[0],Gn.xc=$n,Un=0;Un<Yn;++Un){var Zn=Dn[Un]>>8&65535;Dn[Un]=Zn,Zn>=Hn&&(Hn=Zn+1)}}if(Vn.h)break n;for(Nn=0;5>Nn;++Nn){var Jn=Zr[Nn];!Nn&&0<Qn&&(Jn+=1<<Qn),zn<Jn&&(zn=Jn)}var Tr=o(Hn*Kn,l),Ur=Hn,Rr=o(Ur,d);if(null==Rr)var Qr=null;else e(65536>=Ur),Qr=Rr;var Vr=a(zn);if(null==Qr||null==Vr||null==Tr){Mn.a=1;break n}var Gr=Tr;for(Un=In=0;Un<Hn;++Un){var Dr=Qr[Un],Hr=Dr.G,zr=Dr.H,Kr=0,$r=1,Wr=0;for(Nn=0;5>Nn;++Nn){Jn=Zr[Nn],Hr[Nn]=Gr,zr[Nn]=In,!Nn&&0<Qn&&(Jn+=1<<Qn);r:{var to,ro=Jn,oo=Mn,io=Vr,ao=Gr,so=In,lo=0,co=oo.m,Ao=y(co,1);if(i(io,0,0,ro),Ao){var uo=y(co,1)+1,po=y(co,1),ho=y(co,0==po?1:8);io[ho]=1,2==uo&&(io[ho=y(co,8)]=1);var go=1}else{var _o=a(19),mo=y(co,4)+4;if(19<mo){oo.a=3;var yo=0;break r}for(to=0;to<mo;++to)_o[eo[to]]=y(co,3);var bo=void 0,vo=void 0,wo=oo,xo=_o,ko=ro,Co=io,So=0,Bo=wo.m,Eo=8,jo=o(128,l);o:for(;h(jo,0,7,xo,19);){if(y(Bo,1)){var Lo=2+2*y(Bo,3);if((bo=2+y(Bo,Lo))>ko)break o}else bo=ko;for(vo=0;vo<ko&&bo--;){S(Bo);var Po=jo[0+(127&L(Bo))];x(Bo,Bo.u+Po.g);var To=Po.value;if(16>To)Co[vo++]=To,0!=To&&(Eo=To);else{var Fo=16==To,Uo=To-16,No=Yr[Uo],Io=y(Bo,Xr[Uo])+No;if(vo+Io>ko)break o;for(var Mo=Fo?Eo:0;0<Io--;)Co[vo++]=Mo}}So=1;break o}So||(wo.a=3),go=So}(go=go&&!co.h)&&(lo=h(ao,so,8,io,ro)),go&&0!=lo?yo=lo:(oo.a=3,yo=0)}if(0==yo)break n;if($r&&1==Jr[Nn]&&($r=0==Gr[In].g),Kr+=Gr[In].g,In+=yo,3>=Nn){var Ro,Oo=Vr[0];for(Ro=1;Ro<Jn;++Ro)Vr[Ro]>Oo&&(Oo=Vr[Ro]);Wr+=Oo}}if(Dr.nd=$r,Dr.Qb=0,$r&&(Dr.qb=(Hr[3][zr[3]+0].value<<24|Hr[1][zr[1]+0].value<<16|Hr[2][zr[2]+0].value)>>>0,0==Kr&&256>Hr[0][zr[0]+0].value&&(Dr.Qb=1,Dr.qb+=Hr[0][zr[0]+0].value<<8)),Dr.jc=!Dr.Qb&&6>Wr,Dr.jc){var Qo,qo=Dr;for(Qo=0;Qo<tn;++Qo){var Vo=Qo,Go=qo.pd[Vo],Do=qo.G[0][qo.H[0]+Vo];256<=Do.value?(Go.g=Do.g+256,Go.value=Do.value):(Go.g=0,Go.value=0,Vo>>=yt(Do,8,Go),Vo>>=yt(qo.G[1][qo.H[1]+Vo],16,Go),Vo>>=yt(qo.G[2][qo.H[2]+Vo],0,Go),yt(qo.G[3][qo.H[3]+Vo],24,Go))}}}Gn.vc=Dn,Gn.Wb=Hn,Gn.Ya=Qr,Gn.yc=Tr,Fn=1;break t}Fn=0}if(!(cn=Fn)){an.a=3;break e}if(0<gn){if(pn.ua=1<<gn,!O(pn.Wa,gn)){an.a=1,cn=0;break e}}else pn.ua=0;var Ho=an,zo=An,Ko=dn,$o=Ho.s,Wo=$o.xc;if(Ho.c=zo,Ho.i=Ko,$o.md=q(zo,Wo),$o.wc=0==Wo?-1:(1<<Wo)-1,rn){an.xb=fo;break e}if(null==(hn=a(An*dn))){an.a=1,cn=0;break e}cn=(cn=_t(an,hn,0,An,dn,dn,null))&&!un.h;break e}return cn?(null!=sn?sn[0]=hn:(e(null==hn),e(rn)),an.$=0,rn||Pt(pn)):Pt(pn),cn}function Ft(en,tn){var nn=en.c*en.i,rn=nn+tn+16*tn;return e(en.c<=tn),en.V=a(rn),null==en.V?(en.Ta=null,en.Ua=0,en.a=1,0):(en.Ta=en.V,en.Ua=en.Ba+nn+tn,1)}function Ct(en,tn){var nn=en.C,rn=tn-nn,an=en.V,sn=en.Ba+en.c*nn;for(e(tn<=en.l.o);0<rn;){var cn=16<rn?16:rn,An=en.l.ma,dn=en.l.width,un=dn*cn,pn=An.ca,hn=An.tb+dn*nn,gn=en.Ta,_n=en.Ua;Nt(en,cn,an,sn),Hn(gn,_n,pn,hn,un),xt(An,nn,nn+cn,pn,hn,dn),rn-=cn,an+=cn*en.c,nn+=cn}e(nn==tn),en.C=en.Ma=tn}function jt(){this.ub=this.yd=this.td=this.Rb=0}function Ot(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Bt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Mt(){this.Yb=function(){var en=[];return function t(en,tn,nn){for(var rn=nn[tn],an=0;an<rn&&(en.push(nn.length>tn+1?[]:0),!(nn.length<tn+1));an++)t(en[an],tn+1,nn)}(en,0,[3,11]),en}()}function Et(){this.jb=a(3),this.Wc=s([4,8],Mt),this.Xc=s([4,17],Mt)}function qt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Dt(){this.ld=this.La=this.dd=this.tc=0}function Rt(){this.Na=this.la=0}function Tt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ut(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function zt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Dt),this.Y=0,this.ya=Array(new Ut),this.aa=0,this.l=new Gt}function Ht(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Wt(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new jt,this.Kc=new Ot,this.ed=new qt,this.Qa=new Bt,this.Ic=this.$c=this.Aa=0,this.D=new zt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,w),this.ia=0,this.pb=o(4,Tt),this.Pa=new Et,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ht),this.Hd=0,this.rb=Array(new Rt),this.sb=0,this.wa=Array(new Dt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ut),this.L=this.aa=0,this.gd=s([4,2],Dt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Vt(en,tn){return 0>en?0:en>tn?tn:en}function Gt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Yt(){var en=new Wt;return null!=en&&(en.a=0,en.sc="OK",en.cb=0,en.Xb=0,ao||(ao=Zt)),en}function Jt(en,tn,nn){return 0==en.a&&(en.a=tn,en.sc=nn,en.cb=0),0}function Xt(en,tn,nn){return 3<=nn&&157==en[tn+0]&&1==en[tn+1]&&42==en[tn+2]}function Kt(en,tn){if(null==en)return 0;if(en.a=0,en.sc="OK",null==tn)return Jt(en,2,"null VP8Io passed to VP8GetHeaders()");var nn=tn.data,rn=tn.w,an=tn.ha;if(4>an)return Jt(en,7,"Truncated header.");var sn=nn[rn+0]|nn[rn+1]<<8|nn[rn+2]<<16,cn=en.Od;if(cn.Rb=!(1&sn),cn.td=sn>>1&7,cn.yd=sn>>4&1,cn.ub=sn>>5,3<cn.td)return Jt(en,3,"Incorrect keyframe parameters.");if(!cn.yd)return Jt(en,4,"Frame not displayable.");rn+=3,an-=3;var An=en.Kc;if(cn.Rb){if(7>an)return Jt(en,7,"cannot parse picture header");if(!Xt(nn,rn,an))return Jt(en,3,"Bad code word");An.c=16383&(nn[rn+4]<<8|nn[rn+3]),An.Td=nn[rn+4]>>6,An.i=16383&(nn[rn+6]<<8|nn[rn+5]),An.Ud=nn[rn+6]>>6,rn+=7,an-=7,en.za=An.c+15>>4,en.Ub=An.i+15>>4,tn.width=An.c,tn.height=An.i,tn.Da=0,tn.j=0,tn.v=0,tn.va=tn.width,tn.o=tn.height,tn.da=0,tn.ib=tn.width,tn.hb=tn.height,tn.U=tn.width,tn.T=tn.height,i((sn=en.Pa).jb,0,255,sn.jb.length),e(null!=(sn=en.Qa)),sn.Cb=0,sn.Bb=0,sn.Fb=1,i(sn.Zb,0,0,sn.Zb.length),i(sn.Lb,0,0,sn.Lb)}if(cn.ub>an)return Jt(en,7,"bad partition length");p(sn=en.m,nn,rn,cn.ub),rn+=cn.ub,an-=cn.ub,cn.Rb&&(An.Ld=P(sn),An.Kd=P(sn)),An=en.Qa;var dn,un=en.Pa;if(e(null!=sn),e(null!=An),An.Cb=P(sn),An.Cb){if(An.Bb=P(sn),P(sn)){for(An.Fb=P(sn),dn=0;4>dn;++dn)An.Zb[dn]=P(sn)?m(sn,7):0;for(dn=0;4>dn;++dn)An.Lb[dn]=P(sn)?m(sn,6):0}if(An.Bb)for(dn=0;3>dn;++dn)un.jb[dn]=P(sn)?g(sn,8):255}else An.Bb=0;if(sn.Ka)return Jt(en,3,"cannot parse segment header");if((An=en.ed).zd=P(sn),An.Tb=g(sn,6),An.wb=g(sn,3),An.Pc=P(sn),An.Pc&&P(sn)){for(un=0;4>un;++un)P(sn)&&(An.vd[un]=m(sn,6));for(un=0;4>un;++un)P(sn)&&(An.od[un]=m(sn,6))}if(en.L=0==An.Tb?0:An.zd?1:2,sn.Ka)return Jt(en,3,"cannot parse filter header");var pn=an;if(an=dn=rn,rn=dn+pn,An=pn,en.Xb=(1<<g(en.m,2))-1,pn<3*(un=en.Xb))nn=7;else{for(dn+=3*un,An-=3*un,pn=0;pn<un;++pn){var hn=nn[an+0]|nn[an+1]<<8|nn[an+2]<<16;hn>An&&(hn=An),p(en.Jc[+pn],nn,dn,hn),dn+=hn,An-=hn,an+=3}p(en.Jc[+un],nn,dn,An),nn=dn<rn?0:5}if(0!=nn)return Jt(en,nn,"cannot parse partitions");for(nn=g(dn=en.m,7),an=P(dn)?m(dn,4):0,rn=P(dn)?m(dn,4):0,An=P(dn)?m(dn,4):0,un=P(dn)?m(dn,4):0,dn=P(dn)?m(dn,4):0,pn=en.Qa,hn=0;4>hn;++hn){if(pn.Cb){var gn=pn.Zb[hn];pn.Fb||(gn+=nn)}else{if(0<hn){en.pb[hn]=en.pb[0];continue}gn=nn}var _n=en.pb[hn];_n.Sc[0]=oo[Vt(gn+an,127)],_n.Sc[1]=io[Vt(gn+0,127)],_n.Eb[0]=2*oo[Vt(gn+rn,127)],_n.Eb[1]=101581*io[Vt(gn+An,127)]>>16,8>_n.Eb[1]&&(_n.Eb[1]=8),_n.Qc[0]=oo[Vt(gn+un,117)],_n.Qc[1]=io[Vt(gn+dn,127)],_n.lc=gn+dn}if(!cn.Rb)return Jt(en,4,"Not a key frame.");for(P(sn),cn=en.Pa,nn=0;4>nn;++nn){for(an=0;8>an;++an)for(rn=0;3>rn;++rn)for(An=0;11>An;++An)un=k(sn,po[nn][an][rn][An])?g(sn,8):Ao[nn][an][rn][An],cn.Wc[nn][an].Yb[rn][An]=un;for(an=0;17>an;++an)cn.Xc[nn][an]=cn.Wc[nn][ho[an]]}return en.kc=P(sn),en.kc&&(en.Bd=g(sn,8)),en.cb=1}function Zt(en,tn,nn,rn,an,sn,cn){var An=tn[an].Yb[nn];for(nn=0;16>an;++an){if(!k(en,An[nn+0]))return an;for(;!k(en,An[nn+1]);)if(An=tn[++an].Yb[0],nn=0,16==an)return 16;var dn=tn[an+1].Yb;if(k(en,An[nn+2])){var un=en,pn=0;if(k(un,(gn=An)[(hn=nn)+3]))if(k(un,gn[hn+6])){for(An=0,hn=2*(pn=k(un,gn[hn+8]))+(gn=k(un,gn[hn+9+pn])),pn=0,gn=so[hn];gn[An];++An)pn+=pn+k(un,gn[An]);pn+=3+(8<<hn)}else k(un,gn[hn+7])?(pn=7+2*k(un,165),pn+=k(un,145)):pn=5+k(un,159);else pn=k(un,gn[hn+4])?3+k(un,gn[hn+5]):2;An=dn[2]}else pn=1,An=dn[1];dn=cn+lo[an],0>(un=en).b&&_(un);var hn,gn=un.b,_n=(hn=un.Ca>>1)-(un.I>>gn)>>31;--un.b,un.Ca+=_n,un.Ca|=1,un.I-=(hn+1&_n)<<gn,sn[dn]=((pn^_n)-_n)*rn[(0<an)+0]}return 16}function $t(en){var tn=en.rb[en.sb-1];tn.la=0,tn.Na=0,i(en.zc,0,0,en.zc.length),en.ja=0}function te(en,tn,nn,rn,an){an=en[tn+nn+32*rn]+(an>>3),en[tn+nn+32*rn]=-256&an?0>an?0:255:an}function ee(en,tn,nn,rn,an,sn){te(en,tn,0,nn,rn+an),te(en,tn,1,nn,rn+sn),te(en,tn,2,nn,rn-sn),te(en,tn,3,nn,rn-an)}function re(en){return(20091*en>>16)+en}function ne(en,tn,nn,rn){var an,sn=0,cn=a(16);for(an=0;4>an;++an){var An=en[tn+0]+en[tn+8],dn=en[tn+0]-en[tn+8],un=(35468*en[tn+4]>>16)-re(en[tn+12]),pn=re(en[tn+4])+(35468*en[tn+12]>>16);cn[sn+0]=An+pn,cn[sn+1]=dn+un,cn[sn+2]=dn-un,cn[sn+3]=An-pn,sn+=4,tn++}for(an=sn=0;4>an;++an)An=(en=cn[sn+0]+4)+cn[sn+8],dn=en-cn[sn+8],un=(35468*cn[sn+4]>>16)-re(cn[sn+12]),te(nn,rn,0,0,An+(pn=re(cn[sn+4])+(35468*cn[sn+12]>>16))),te(nn,rn,1,0,dn+un),te(nn,rn,2,0,dn-un),te(nn,rn,3,0,An-pn),sn++,rn+=32}function ie(en,tn,nn,rn){var an=en[tn+0]+4,sn=35468*en[tn+4]>>16,cn=re(en[tn+4]),An=35468*en[tn+1]>>16;ee(nn,rn,0,an+cn,en=re(en[tn+1]),An),ee(nn,rn,1,an+sn,en,An),ee(nn,rn,2,an-sn,en,An),ee(nn,rn,3,an-cn,en,An)}function ae(en,tn,nn,rn,an){ne(en,tn,nn,rn),an&&ne(en,tn+16,nn,rn+4)}function oe(en,tn,nn,rn){Cn(en,tn+0,nn,rn,1),Cn(en,tn+32,nn,rn+128,1)}function se(en,tn,nn,rn){var an;for(en=en[tn+0]+4,an=0;4>an;++an)for(tn=0;4>tn;++tn)te(nn,rn,tn,an,en)}function ce(en,tn,nn,rn){en[tn+0]&&En(en,tn+0,nn,rn),en[tn+16]&&En(en,tn+16,nn,rn+4),en[tn+32]&&En(en,tn+32,nn,rn+128),en[tn+48]&&En(en,tn+48,nn,rn+128+4)}function ue(en,tn,nn,rn){var an,sn=a(16);for(an=0;4>an;++an){var cn=en[tn+0+an]+en[tn+12+an],An=en[tn+4+an]+en[tn+8+an],dn=en[tn+4+an]-en[tn+8+an],un=en[tn+0+an]-en[tn+12+an];sn[0+an]=cn+An,sn[8+an]=cn-An,sn[4+an]=un+dn,sn[12+an]=un-dn}for(an=0;4>an;++an)cn=(en=sn[0+4*an]+3)+sn[3+4*an],An=sn[1+4*an]+sn[2+4*an],dn=sn[1+4*an]-sn[2+4*an],un=en-sn[3+4*an],nn[rn+0]=cn+An>>3,nn[rn+16]=un+dn>>3,nn[rn+32]=cn-An>>3,nn[rn+48]=un-dn>>3,rn+=64}function he(en,tn,nn){var rn,an=tn-32,sn=Jn,cn=255-en[an-1];for(rn=0;rn<nn;++rn){var An,dn=sn,un=cn+en[tn-1];for(An=0;An<nn;++An)en[tn+An]=dn[un+en[an+An]];tn+=32}}function le(en,tn){he(en,tn,4)}function fe(en,tn){he(en,tn,8)}function de(en,tn){he(en,tn,16)}function pe(en,tn){var nn;for(nn=0;16>nn;++nn)n(en,tn+32*nn,en,tn-32,16)}function ge(en,tn){var nn;for(nn=16;0<nn;--nn)i(en,tn,en[tn-1],16),tn+=32}function me(en,tn,nn){var rn;for(rn=0;16>rn;++rn)i(tn,nn+32*rn,en,16)}function ve(en,tn){var nn,rn=16;for(nn=0;16>nn;++nn)rn+=en[tn-1+32*nn]+en[tn+nn-32];me(rn>>5,en,tn)}function be(en,tn){var nn,rn=8;for(nn=0;16>nn;++nn)rn+=en[tn-1+32*nn];me(rn>>4,en,tn)}function ye(en,tn){var nn,rn=8;for(nn=0;16>nn;++nn)rn+=en[tn+nn-32];me(rn>>4,en,tn)}function we(en,tn){me(128,en,tn)}function Ne(en,tn,nn){return en+2*tn+nn+2>>2}function Le(en,tn){var nn,rn=tn-32;for(rn=new Uint8Array([Ne(en[rn-1],en[rn+0],en[rn+1]),Ne(en[rn+0],en[rn+1],en[rn+2]),Ne(en[rn+1],en[rn+2],en[rn+3]),Ne(en[rn+2],en[rn+3],en[rn+4])]),nn=0;4>nn;++nn)n(en,tn+32*nn,rn,0,rn.length)}function Ae(en,tn){var nn=en[tn-1],rn=en[tn-1+32],an=en[tn-1+64],sn=en[tn-1+96];I(en,tn+0,16843009*Ne(en[tn-1-32],nn,rn)),I(en,tn+32,16843009*Ne(nn,rn,an)),I(en,tn+64,16843009*Ne(rn,an,sn)),I(en,tn+96,16843009*Ne(an,sn,sn))}function xe(en,tn){var nn,rn=4;for(nn=0;4>nn;++nn)rn+=en[tn+nn-32]+en[tn-1+32*nn];for(rn>>=3,nn=0;4>nn;++nn)i(en,tn+32*nn,rn,4)}function Se(en,tn){var nn=en[tn-1+0],rn=en[tn-1+32],an=en[tn-1+64],sn=en[tn-1-32],cn=en[tn+0-32],An=en[tn+1-32],dn=en[tn+2-32],un=en[tn+3-32];en[tn+0+96]=Ne(rn,an,en[tn-1+96]),en[tn+1+96]=en[tn+0+64]=Ne(nn,rn,an),en[tn+2+96]=en[tn+1+64]=en[tn+0+32]=Ne(sn,nn,rn),en[tn+3+96]=en[tn+2+64]=en[tn+1+32]=en[tn+0+0]=Ne(cn,sn,nn),en[tn+3+64]=en[tn+2+32]=en[tn+1+0]=Ne(An,cn,sn),en[tn+3+32]=en[tn+2+0]=Ne(dn,An,cn),en[tn+3+0]=Ne(un,dn,An)}function _e(en,tn){var nn=en[tn+1-32],rn=en[tn+2-32],an=en[tn+3-32],sn=en[tn+4-32],cn=en[tn+5-32],An=en[tn+6-32],dn=en[tn+7-32];en[tn+0+0]=Ne(en[tn+0-32],nn,rn),en[tn+1+0]=en[tn+0+32]=Ne(nn,rn,an),en[tn+2+0]=en[tn+1+32]=en[tn+0+64]=Ne(rn,an,sn),en[tn+3+0]=en[tn+2+32]=en[tn+1+64]=en[tn+0+96]=Ne(an,sn,cn),en[tn+3+32]=en[tn+2+64]=en[tn+1+96]=Ne(sn,cn,An),en[tn+3+64]=en[tn+2+96]=Ne(cn,An,dn),en[tn+3+96]=Ne(An,dn,dn)}function Pe(en,tn){var nn=en[tn-1+0],rn=en[tn-1+32],an=en[tn-1+64],sn=en[tn-1-32],cn=en[tn+0-32],An=en[tn+1-32],dn=en[tn+2-32],un=en[tn+3-32];en[tn+0+0]=en[tn+1+64]=sn+cn+1>>1,en[tn+1+0]=en[tn+2+64]=cn+An+1>>1,en[tn+2+0]=en[tn+3+64]=An+dn+1>>1,en[tn+3+0]=dn+un+1>>1,en[tn+0+96]=Ne(an,rn,nn),en[tn+0+64]=Ne(rn,nn,sn),en[tn+0+32]=en[tn+1+96]=Ne(nn,sn,cn),en[tn+1+32]=en[tn+2+96]=Ne(sn,cn,An),en[tn+2+32]=en[tn+3+96]=Ne(cn,An,dn),en[tn+3+32]=Ne(An,dn,un)}function ke(en,tn){var nn=en[tn+0-32],rn=en[tn+1-32],an=en[tn+2-32],sn=en[tn+3-32],cn=en[tn+4-32],An=en[tn+5-32],dn=en[tn+6-32],un=en[tn+7-32];en[tn+0+0]=nn+rn+1>>1,en[tn+1+0]=en[tn+0+64]=rn+an+1>>1,en[tn+2+0]=en[tn+1+64]=an+sn+1>>1,en[tn+3+0]=en[tn+2+64]=sn+cn+1>>1,en[tn+0+32]=Ne(nn,rn,an),en[tn+1+32]=en[tn+0+96]=Ne(rn,an,sn),en[tn+2+32]=en[tn+1+96]=Ne(an,sn,cn),en[tn+3+32]=en[tn+2+96]=Ne(sn,cn,An),en[tn+3+64]=Ne(cn,An,dn),en[tn+3+96]=Ne(An,dn,un)}function Ie(en,tn){var nn=en[tn-1+0],rn=en[tn-1+32],an=en[tn-1+64],sn=en[tn-1+96];en[tn+0+0]=nn+rn+1>>1,en[tn+2+0]=en[tn+0+32]=rn+an+1>>1,en[tn+2+32]=en[tn+0+64]=an+sn+1>>1,en[tn+1+0]=Ne(nn,rn,an),en[tn+3+0]=en[tn+1+32]=Ne(rn,an,sn),en[tn+3+32]=en[tn+1+64]=Ne(an,sn,sn),en[tn+3+64]=en[tn+2+64]=en[tn+0+96]=en[tn+1+96]=en[tn+2+96]=en[tn+3+96]=sn}function Fe(en,tn){var nn=en[tn-1+0],rn=en[tn-1+32],an=en[tn-1+64],sn=en[tn-1+96],cn=en[tn-1-32],An=en[tn+0-32],dn=en[tn+1-32],un=en[tn+2-32];en[tn+0+0]=en[tn+2+32]=nn+cn+1>>1,en[tn+0+32]=en[tn+2+64]=rn+nn+1>>1,en[tn+0+64]=en[tn+2+96]=an+rn+1>>1,en[tn+0+96]=sn+an+1>>1,en[tn+3+0]=Ne(An,dn,un),en[tn+2+0]=Ne(cn,An,dn),en[tn+1+0]=en[tn+3+32]=Ne(nn,cn,An),en[tn+1+32]=en[tn+3+64]=Ne(rn,nn,cn),en[tn+1+64]=en[tn+3+96]=Ne(an,rn,nn),en[tn+1+96]=Ne(sn,an,rn)}function Ce(en,tn){var nn;for(nn=0;8>nn;++nn)n(en,tn+32*nn,en,tn-32,8)}function je(en,tn){var nn;for(nn=0;8>nn;++nn)i(en,tn,en[tn-1],8),tn+=32}function Oe(en,tn,nn){var rn;for(rn=0;8>rn;++rn)i(tn,nn+32*rn,en,8)}function Be(en,tn){var nn,rn=8;for(nn=0;8>nn;++nn)rn+=en[tn+nn-32]+en[tn-1+32*nn];Oe(rn>>4,en,tn)}function Me(en,tn){var nn,rn=4;for(nn=0;8>nn;++nn)rn+=en[tn+nn-32];Oe(rn>>3,en,tn)}function Ee(en,tn){var nn,rn=4;for(nn=0;8>nn;++nn)rn+=en[tn-1+32*nn];Oe(rn>>3,en,tn)}function qe(en,tn){Oe(128,en,tn)}function De(en,tn,nn){var rn=en[tn-nn],an=en[tn+0],sn=3*(an-rn)+Yn[1020+en[tn-2*nn]-en[tn+nn]],cn=Zn[112+(sn+4>>3)];en[tn-nn]=Jn[255+rn+Zn[112+(sn+3>>3)]],en[tn+0]=Jn[255+an-cn]}function Re(en,tn,nn,rn){var an=en[tn+0],sn=en[tn+nn];return Tr[255+en[tn-2*nn]-en[tn-nn]]>rn||Tr[255+sn-an]>rn}function Te(en,tn,nn,rn){return 4*Tr[255+en[tn-nn]-en[tn+0]]+Tr[255+en[tn-2*nn]-en[tn+nn]]<=rn}function Ue(en,tn,nn,rn,an){var sn=en[tn-3*nn],cn=en[tn-2*nn],An=en[tn-nn],dn=en[tn+0],un=en[tn+nn],pn=en[tn+2*nn],hn=en[tn+3*nn];return 4*Tr[255+An-dn]+Tr[255+cn-un]>rn?0:Tr[255+en[tn-4*nn]-sn]<=an&&Tr[255+sn-cn]<=an&&Tr[255+cn-An]<=an&&Tr[255+hn-pn]<=an&&Tr[255+pn-un]<=an&&Tr[255+un-dn]<=an}function ze(en,tn,nn,rn){var an=2*rn+1;for(rn=0;16>rn;++rn)Te(en,tn+rn,nn,an)&&De(en,tn+rn,nn)}function He(en,tn,nn,rn){var an=2*rn+1;for(rn=0;16>rn;++rn)Te(en,tn+rn*nn,1,an)&&De(en,tn+rn*nn,1)}function We(en,tn,nn,rn){var an;for(an=3;0<an;--an)ze(en,tn+=4*nn,nn,rn)}function Ve(en,tn,nn,rn){var an;for(an=3;0<an;--an)He(en,tn+=4,nn,rn)}function Ge(en,tn,nn,rn,an,sn,cn,An){for(sn=2*sn+1;0<an--;){if(Ue(en,tn,nn,sn,cn))if(Re(en,tn,nn,An))De(en,tn,nn);else{var dn=en,un=tn,pn=nn,hn=dn[un-2*pn],gn=dn[un-pn],_n=dn[un+0],mn=dn[un+pn],fn=dn[un+2*pn],yn=27*(vn=Yn[1020+3*(_n-gn)+Yn[1020+hn-mn]])+63>>7,bn=18*vn+63>>7,vn=9*vn+63>>7;dn[un-3*pn]=Jn[255+dn[un-3*pn]+vn],dn[un-2*pn]=Jn[255+hn+bn],dn[un-pn]=Jn[255+gn+yn],dn[un+0]=Jn[255+_n-yn],dn[un+pn]=Jn[255+mn-bn],dn[un+2*pn]=Jn[255+fn-vn]}tn+=rn}}function Ye(en,tn,nn,rn,an,sn,cn,An){for(sn=2*sn+1;0<an--;){if(Ue(en,tn,nn,sn,cn))if(Re(en,tn,nn,An))De(en,tn,nn);else{var dn=en,un=tn,pn=nn,hn=dn[un-pn],gn=dn[un+0],_n=dn[un+pn],mn=Zn[112+(4+(fn=3*(gn-hn))>>3)],fn=Zn[112+(fn+3>>3)],yn=mn+1>>1;dn[un-2*pn]=Jn[255+dn[un-2*pn]+yn],dn[un-pn]=Jn[255+hn+fn],dn[un+0]=Jn[255+gn-mn],dn[un+pn]=Jn[255+_n-yn]}tn+=rn}}function Je(en,tn,nn,rn,an,sn){Ge(en,tn,nn,1,16,rn,an,sn)}function Xe(en,tn,nn,rn,an,sn){Ge(en,tn,1,nn,16,rn,an,sn)}function Ke(en,tn,nn,rn,an,sn){var cn;for(cn=3;0<cn;--cn)Ye(en,tn+=4*nn,nn,1,16,rn,an,sn)}function Ze(en,tn,nn,rn,an,sn){var cn;for(cn=3;0<cn;--cn)Ye(en,tn+=4,1,nn,16,rn,an,sn)}function $e(en,tn,nn,rn,an,sn,cn,An){Ge(en,tn,an,1,8,sn,cn,An),Ge(nn,rn,an,1,8,sn,cn,An)}function Qe(en,tn,nn,rn,an,sn,cn,An){Ge(en,tn,1,an,8,sn,cn,An),Ge(nn,rn,1,an,8,sn,cn,An)}function tr(en,tn,nn,rn,an,sn,cn,An){Ye(en,tn+4*an,an,1,8,sn,cn,An),Ye(nn,rn+4*an,an,1,8,sn,cn,An)}function er(en,tn,nn,rn,an,sn,cn,An){Ye(en,tn+4,1,an,8,sn,cn,An),Ye(nn,rn+4,1,an,8,sn,cn,An)}function rr(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ct,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nr(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ir(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ar(){this.ua=0,this.Wa=new M,this.vb=new M,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new l}function or(){this.xb=this.a=0,this.l=new Gt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ar,this.ab=0,this.gc=o(4,ir),this.Oc=0}function sr(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cr(en,tn,nn,rn,an,sn,cn){for(en=null==en?0:en[tn+0],tn=0;tn<cn;++tn)an[sn+tn]=en+nn[rn+tn]&255,en=an[sn+tn]}function ur(en,tn,nn,rn,an,sn,cn){var An;if(null==en)cr(null,null,nn,rn,an,sn,cn);else for(An=0;An<cn;++An)an[sn+An]=en[tn+An]+nn[rn+An]&255}function hr(en,tn,nn,rn,an,sn,cn){if(null==en)cr(null,null,nn,rn,an,sn,cn);else{var An,dn=en[tn+0],un=dn,pn=dn;for(An=0;An<cn;++An)un=pn+(dn=en[tn+An])-un,pn=nn[rn+An]+(-256&un?0>un?0:255:un)&255,un=dn,an[sn+An]=pn}}function lr(en,tn,nn,rn){var an=tn.width,sn=tn.o;if(e(null!=en&&null!=tn),0>nn||0>=rn||nn+rn>sn)return null;if(!en.Cc){if(null==en.ga){var cn;if(en.ga=new sr,(cn=null==en.ga)||(cn=tn.width*tn.o,e(0==en.Gb.length),en.Gb=a(cn),en.Uc=0,null==en.Gb?cn=0:(en.mb=en.Gb,en.nb=en.Uc,en.rc=null,cn=1),cn=!cn),!cn){cn=en.ga;var An=en.Fa,dn=en.P,un=en.qc,pn=en.mb,hn=en.nb,gn=dn+1,_n=un-1,mn=cn.l;if(e(null!=An&&null!=pn&&null!=tn),bo[0]=null,bo[1]=cr,bo[2]=ur,bo[3]=hr,cn.ca=pn,cn.tb=hn,cn.c=tn.width,cn.i=tn.height,e(0<cn.c&&0<cn.i),1>=un)tn=0;else if(cn.$a=An[dn+0]>>0&3,cn.Z=An[dn+0]>>2&3,cn.Lc=An[dn+0]>>4&3,dn=An[dn+0]>>6&3,0>cn.$a||1<cn.$a||4<=cn.Z||1<cn.Lc||dn)tn=0;else if(mn.put=dt,mn.ac=ft,mn.bc=pt,mn.ma=cn,mn.width=tn.width,mn.height=tn.height,mn.Da=tn.Da,mn.v=tn.v,mn.va=tn.va,mn.j=tn.j,mn.o=tn.o,cn.$a)e:{e(1==cn.$a),tn=kt();t:for(;;){if(null==tn){tn=0;break e}if(e(null!=cn),cn.mc=tn,tn.c=cn.c,tn.i=cn.i,tn.l=cn.l,tn.l.ma=cn,tn.l.width=cn.c,tn.l.height=cn.i,tn.a=0,v(tn.m,An,gn,_n),!It(cn.c,cn.i,1,tn,null))break t;if(1==tn.ab&&3==tn.gc[0].hc&&At(tn.s)?(cn.ic=1,An=tn.c*tn.i,tn.Ta=null,tn.Ua=0,tn.V=a(An),tn.Ba=0,null==tn.V?(tn.a=1,tn=0):tn=1):(cn.ic=0,tn=Ft(tn,cn.c)),!tn)break t;tn=1;break e}cn.mc=null,tn=0}else tn=_n>=cn.c*cn.i;cn=!tn}if(cn)return null;1!=en.ga.Lc?en.Ga=0:rn=sn-nn}e(null!=en.ga),e(nn+rn<=sn);e:{if(tn=(An=en.ga).c,sn=An.l.o,0==An.$a){if(gn=en.rc,_n=en.Vc,mn=en.Fa,dn=en.P+1+nn*tn,un=en.mb,pn=en.nb+nn*tn,e(dn<=en.P+en.qc),0!=An.Z)for(e(null!=bo[An.Z]),cn=0;cn<rn;++cn)bo[An.Z](gn,_n,mn,dn,un,pn,tn),gn=un,_n=pn,pn+=tn,dn+=tn;else for(cn=0;cn<rn;++cn)n(un,pn,mn,dn,tn),gn=un,_n=pn,pn+=tn,dn+=tn;en.rc=gn,en.Vc=_n}else{if(e(null!=An.mc),tn=nn+rn,e(null!=(cn=An.mc)),e(tn<=cn.i),cn.C>=tn)tn=1;else if(An.ic||mr(),An.ic){An=cn.V,gn=cn.Ba,_n=cn.c;var fn=cn.i,yn=(mn=1,dn=cn.$/_n,un=cn.$%_n,pn=cn.m,hn=cn.s,cn.$),bn=_n*fn,vn=_n*tn,wn=hn.wc,xn=yn<vn?wt(hn,un,dn):null;e(yn<=bn),e(tn<=fn),e(At(hn));t:for(;;){for(;!pn.h&&yn<vn;){if(un&wn||(xn=wt(hn,un,dn)),e(null!=xn),S(pn),256>(fn=bt(xn.G[0],xn.H[0],pn)))An[gn+yn]=fn,++yn,++un>=_n&&(un=0,++dn<=tn&&!(dn%16)&&St(cn,dn));else{if(!(280>fn)){mn=0;break t}fn=mt(fn-256,pn);var kn,Cn=bt(xn.G[4],xn.H[4],pn);if(S(pn),!(yn>=(Cn=vt(_n,Cn=mt(Cn,pn)))&&bn-yn>=fn)){mn=0;break t}for(kn=0;kn<fn;++kn)An[gn+yn+kn]=An[gn+yn+kn-Cn];for(yn+=fn,un+=fn;un>=_n;)un-=_n,++dn<=tn&&!(dn%16)&&St(cn,dn);yn<vn&&un&wn&&(xn=wt(hn,un,dn))}e(pn.h==A(pn))}St(cn,dn>tn?tn:dn);break t}!mn||pn.h&&yn<bn?(mn=0,cn.a=pn.h?5:3):cn.$=yn,tn=mn}else tn=_t(cn,cn.V,cn.Ba,cn.c,cn.i,tn,Ct);if(!tn){rn=0;break e}}nn+rn>=sn&&(en.Cc=1),rn=1}if(!rn)return null;if(en.Cc&&(null!=(rn=en.ga)&&(rn.mc=null),en.ga=null,0<en.Ga))return alert("todo:WebPDequantizeLevels"),null}return en.nb+nn*an}function fr(en,tn,nn,rn,an,sn){for(;0<an--;){var cn,An=en,dn=tn+(nn?1:0),un=en,pn=tn+(nn?0:3);for(cn=0;cn<rn;++cn){var hn=un[pn+4*cn];255!=hn&&(hn*=32897,An[dn+4*cn+0]=An[dn+4*cn+0]*hn>>23,An[dn+4*cn+1]=An[dn+4*cn+1]*hn>>23,An[dn+4*cn+2]=An[dn+4*cn+2]*hn>>23)}tn+=sn}}function dr(en,tn,nn,rn,an){for(;0<rn--;){var sn;for(sn=0;sn<nn;++sn){var cn=en[tn+2*sn+0],An=15&(un=en[tn+2*sn+1]),dn=4369*An,un=(240&un|un>>4)*dn>>16;en[tn+2*sn+0]=(240&cn|cn>>4)*dn>>16&240|(15&cn|cn<<4)*dn>>16>>4&15,en[tn+2*sn+1]=240&un|An}tn+=an}}function pr(en,tn,nn,rn,an,sn,cn,An){var dn,un,pn=255;for(un=0;un<an;++un){for(dn=0;dn<rn;++dn){var hn=en[tn+dn];sn[cn+4*dn]=hn,pn&=hn}tn+=nn,cn+=An}return 255!=pn}function gr(en,tn,nn,rn,an){var sn;for(sn=0;sn<an;++sn)nn[rn+sn]=en[tn+sn]>>8}function mr(){Vn=fr,Gn=dr,Dn=pr,Hn=gr}function vr(tn,nn,rn){en[tn]=function(en,tn,an,sn,cn,An,dn,un,pn,hn,gn,_n,mn,fn,yn,bn,vn){var wn,xn=vn-1>>1,kn=cn[An+0]|dn[un+0]<<16,Cn=pn[hn+0]|gn[_n+0]<<16;e(null!=en);var Sn=3*kn+Cn+131074>>2;for(nn(en[tn+0],255&Sn,Sn>>16,mn,fn),null!=an&&(Sn=3*Cn+kn+131074>>2,nn(an[sn+0],255&Sn,Sn>>16,yn,bn)),wn=1;wn<=xn;++wn){var Bn=cn[An+wn]|dn[un+wn]<<16,En=pn[hn+wn]|gn[_n+wn]<<16,jn=kn+Bn+Cn+En+524296,Ln=jn+2*(Bn+Cn)>>3;Sn=Ln+kn>>1,kn=(jn=jn+2*(kn+En)>>3)+Bn>>1,nn(en[tn+2*wn-1],255&Sn,Sn>>16,mn,fn+(2*wn-1)*rn),nn(en[tn+2*wn-0],255&kn,kn>>16,mn,fn+(2*wn-0)*rn),null!=an&&(Sn=jn+Cn>>1,kn=Ln+En>>1,nn(an[sn+2*wn-1],255&Sn,Sn>>16,yn,bn+(2*wn-1)*rn),nn(an[sn+2*wn+0],255&kn,kn>>16,yn,bn+(2*wn+0)*rn)),kn=Bn,Cn=En}1&vn||(Sn=3*kn+Cn+131074>>2,nn(en[tn+vn-1],255&Sn,Sn>>16,mn,fn+(vn-1)*rn),null!=an&&(Sn=3*Cn+kn+131074>>2,nn(an[sn+vn-1],255&Sn,Sn>>16,yn,bn+(vn-1)*rn)))}}function br(){vo[Ur]=wo,vo[Rr]=ko,vo[Qr]=xo,vo[Vr]=Co,vo[Gr]=So,vo[Dr]=Bo,vo[Hr]=Eo,vo[zr]=ko,vo[Kr]=Co,vo[$r]=So,vo[Wr]=Bo}function yr(en){return en&~Uo?0>en?0:255:en>>Fo}function wr(en,tn){return yr((19077*en>>8)+(26149*tn>>8)-14234)}function Nr(en,tn,nn){return yr((19077*en>>8)-(6419*tn>>8)-(13320*nn>>8)+8708)}function Lr(en,tn){return yr((19077*en>>8)+(33050*tn>>8)-17685)}function Ar(en,tn,nn,rn,an){rn[an+0]=wr(en,nn),rn[an+1]=Nr(en,tn,nn),rn[an+2]=Lr(en,tn)}function xr(en,tn,nn,rn,an){rn[an+0]=Lr(en,tn),rn[an+1]=Nr(en,tn,nn),rn[an+2]=wr(en,nn)}function Sr(en,tn,nn,rn,an){var sn=Nr(en,tn,nn);tn=sn<<3&224|Lr(en,tn)>>3,rn[an+0]=248&wr(en,nn)|sn>>5,rn[an+1]=tn}function _r(en,tn,nn,rn,an){var sn=240&Lr(en,tn)|15;rn[an+0]=240&wr(en,nn)|Nr(en,tn,nn)>>4,rn[an+1]=sn}function Pr(en,tn,nn,rn,an){rn[an+0]=255,Ar(en,tn,nn,rn,an+1)}function kr(en,tn,nn,rn,an){xr(en,tn,nn,rn,an),rn[an+3]=255}function Ir(en,tn,nn,rn,an){Ar(en,tn,nn,rn,an),rn[an+3]=255}function Vt(en,tn){return 0>en?0:en>tn?tn:en}function Fr(tn,nn,rn){en[tn]=function(en,tn,an,sn,cn,An,dn,un,pn){for(var hn=un+(-2&pn)*rn;un!=hn;)nn(en[tn+0],an[sn+0],cn[An+0],dn,un),nn(en[tn+1],an[sn+0],cn[An+0],dn,un+rn),tn+=2,++sn,++An,un+=2*rn;1&pn&&nn(en[tn+0],an[sn+0],cn[An+0],dn,un)}}function Cr(en,tn,nn){return 0==nn?0==en?0==tn?6:5:0==tn?4:0:nn}function jr(en,tn,nn,rn,an){switch(en>>>30){case 3:Cn(tn,nn,rn,an,0);break;case 2:Sn(tn,nn,rn,an);break;case 1:En(tn,nn,rn,an)}}function Or(en,tn){var nn,rn,an=tn.M,sn=tn.Nb,cn=en.oc,An=en.pc+40,dn=en.oc,un=en.pc+584,pn=en.oc,hn=en.pc+600;for(nn=0;16>nn;++nn)cn[An+32*nn-1]=129;for(nn=0;8>nn;++nn)dn[un+32*nn-1]=129,pn[hn+32*nn-1]=129;for(0<an?cn[An-1-32]=dn[un-1-32]=pn[hn-1-32]=129:(i(cn,An-32-1,127,21),i(dn,un-32-1,127,9),i(pn,hn-32-1,127,9)),rn=0;rn<en.za;++rn){var gn=tn.ya[tn.aa+rn];if(0<rn){for(nn=-1;16>nn;++nn)n(cn,An+32*nn-4,cn,An+32*nn+12,4);for(nn=-1;8>nn;++nn)n(dn,un+32*nn-4,dn,un+32*nn+4,4),n(pn,hn+32*nn-4,pn,hn+32*nn+4,4)}var _n=en.Gd,mn=en.Hd+rn,fn=gn.ad,yn=gn.Hc;if(0<an&&(n(cn,An-32,_n[mn].y,0,16),n(dn,un-32,_n[mn].f,0,8),n(pn,hn-32,_n[mn].ea,0,8)),gn.Za){var bn=cn,vn=An-32+16;for(0<an&&(rn>=en.za-1?i(bn,vn,_n[mn].y[15],4):n(bn,vn,_n[mn+1].y,0,4)),nn=0;4>nn;nn++)bn[vn+128+nn]=bn[vn+256+nn]=bn[vn+384+nn]=bn[vn+0+nn];for(nn=0;16>nn;++nn,yn<<=2)bn=cn,vn=An+Vo[nn],_o[gn.Ob[nn]](bn,vn),jr(yn,fn,16*+nn,bn,vn)}else if(bn=Cr(rn,an,gn.Ob[0]),go[bn](cn,An),0!=yn)for(nn=0;16>nn;++nn,yn<<=2)jr(yn,fn,16*+nn,cn,An+Vo[nn]);for(nn=gn.Gc,bn=Cr(rn,an,gn.Dd),mo[bn](dn,un),mo[bn](pn,hn),yn=fn,bn=dn,vn=un,255&(gn=nn>>0)&&(170&gn?Bn(yn,256,bn,vn):jn(yn,256,bn,vn)),gn=pn,yn=hn,255&(nn>>=8)&&(170&nn?Bn(fn,320,gn,yn):jn(fn,320,gn,yn)),an<en.Ub-1&&(n(_n[mn].y,0,cn,An+480,16),n(_n[mn].f,0,dn,un+224,8),n(_n[mn].ea,0,pn,hn+224,8)),nn=8*sn*en.B,_n=en.sa,mn=en.ta+16*rn+16*sn*en.R,fn=en.qa,gn=en.ra+8*rn+nn,yn=en.Ha,bn=en.Ia+8*rn+nn,nn=0;16>nn;++nn)n(_n,mn+nn*en.R,cn,An+32*nn,16);for(nn=0;8>nn;++nn)n(fn,gn+nn*en.B,dn,un+32*nn,8),n(yn,bn+nn*en.B,pn,hn+32*nn,8)}}function Br(en,tn,nn,rn,an,sn,cn,An,dn){var un=[0],pn=[0],hn=0,gn=null!=dn?dn.kd:0,_n=null!=dn?dn:new nr;if(null==en||12>nn)return 7;_n.data=en,_n.w=tn,_n.ha=nn,tn=[tn],nn=[nn],_n.gb=[_n.gb];e:{var mn=tn,fn=nn,yn=_n.gb;if(e(null!=en),e(null!=fn),e(null!=yn),yn[0]=0,12<=fn[0]&&!r(en,mn[0],"RIFF")){if(r(en,mn[0]+8,"WEBP")){yn=3;break e}var bn=j(en,mn[0]+4);if(12>bn||4294967286<bn){yn=3;break e}if(gn&&bn>fn[0]-8){yn=7;break e}yn[0]=bn,mn[0]+=12,fn[0]-=12}yn=0}if(0!=yn)return yn;for(bn=0<_n.gb[0],nn=nn[0];;){e:{var vn=en;fn=tn,yn=nn;var wn=un,xn=pn,kn=mn=[0];if((Bn=hn=[hn])[0]=0,8>yn[0])yn=7;else{if(!r(vn,fn[0],"VP8X")){if(10!=j(vn,fn[0]+4)){yn=3;break e}if(18>yn[0]){yn=7;break e}var Cn=j(vn,fn[0]+8),Sn=1+C(vn,fn[0]+12);if(2147483648<=Sn*(vn=1+C(vn,fn[0]+15))){yn=3;break e}null!=kn&&(kn[0]=Cn),null!=wn&&(wn[0]=Sn),null!=xn&&(xn[0]=vn),fn[0]+=18,yn[0]-=18,Bn[0]=1}yn=0}}if(hn=hn[0],mn=mn[0],0!=yn)return yn;if(fn=!!(2&mn),!bn&&hn)return 3;if(null!=sn&&(sn[0]=!!(16&mn)),null!=cn&&(cn[0]=fn),null!=An&&(An[0]=0),cn=un[0],mn=pn[0],hn&&fn&&null==dn){yn=0;break}if(4>nn){yn=7;break}if(bn&&hn||!bn&&!hn&&!r(en,tn[0],"ALPH")){nn=[nn],_n.na=[_n.na],_n.P=[_n.P],_n.Sa=[_n.Sa];e:{Cn=en,yn=tn,bn=nn;var Bn=_n.gb;wn=_n.na,xn=_n.P,kn=_n.Sa,Sn=22,e(null!=Cn),e(null!=bn),vn=yn[0];var En=bn[0];for(e(null!=wn),e(null!=kn),wn[0]=null,xn[0]=null,kn[0]=0;;){if(yn[0]=vn,bn[0]=En,8>En){yn=7;break e}var jn=j(Cn,vn+4);if(4294967286<jn){yn=3;break e}var Ln=8+jn+1&-2;if(Sn+=Ln,0<Bn&&Sn>Bn){yn=3;break e}if(!r(Cn,vn,"VP8 ")||!r(Cn,vn,"VP8L")){yn=0;break e}if(En[0]<Ln){yn=7;break e}r(Cn,vn,"ALPH")||(wn[0]=Cn,xn[0]=vn+8,kn[0]=jn),vn+=Ln,En-=Ln}}if(nn=nn[0],_n.na=_n.na[0],_n.P=_n.P[0],_n.Sa=_n.Sa[0],0!=yn)break}nn=[nn],_n.Ja=[_n.Ja],_n.xa=[_n.xa];e:if(Bn=en,yn=tn,bn=nn,wn=_n.gb[0],xn=_n.Ja,kn=_n.xa,Cn=yn[0],vn=!r(Bn,Cn,"VP8 "),Sn=!r(Bn,Cn,"VP8L"),e(null!=Bn),e(null!=bn),e(null!=xn),e(null!=kn),8>bn[0])yn=7;else{if(vn||Sn){if(Bn=j(Bn,Cn+4),12<=wn&&Bn>wn-12){yn=3;break e}if(gn&&Bn>bn[0]-8){yn=7;break e}xn[0]=Bn,yn[0]+=8,bn[0]-=8,kn[0]=Sn}else kn[0]=5<=bn[0]&&47==Bn[Cn+0]&&!(Bn[Cn+4]>>5),xn[0]=bn[0];yn=0}if(nn=nn[0],_n.Ja=_n.Ja[0],_n.xa=_n.xa[0],tn=tn[0],0!=yn)break;if(4294967286<_n.Ja)return 3;if(null==An||fn||(An[0]=_n.xa?2:1),cn=[cn],mn=[mn],_n.xa){if(5>nn){yn=7;break}An=cn,gn=mn,fn=sn,null==en||5>nn?en=0:5<=nn&&47==en[tn+0]&&!(en[tn+4]>>5)?(bn=[0],Bn=[0],wn=[0],v(xn=new N,en,tn,nn),gt(xn,bn,Bn,wn)?(null!=An&&(An[0]=bn[0]),null!=gn&&(gn[0]=Bn[0]),null!=fn&&(fn[0]=wn[0]),en=1):en=0):en=0}else{if(10>nn){yn=7;break}An=mn,null==en||10>nn||!Xt(en,tn+3,nn-3)?en=0:(gn=en[tn+0]|en[tn+1]<<8|en[tn+2]<<16,fn=16383&(en[tn+7]<<8|en[tn+6]),en=16383&(en[tn+9]<<8|en[tn+8]),1&gn||3<(gn>>1&7)||!(gn>>4&1)||gn>>5>=_n.Ja||!fn||!en?en=0:(cn&&(cn[0]=fn),An&&(An[0]=en),en=1))}if(!en)return 3;if(cn=cn[0],mn=mn[0],hn&&(un[0]!=cn||pn[0]!=mn))return 3;null!=dn&&(dn[0]=_n,dn.offset=tn-dn.w,e(4294967286>tn-dn.w),e(dn.offset==dn.ha-nn));break}return 0==yn||7==yn&&hn&&null==dn?(null!=sn&&(sn[0]|=null!=_n.na&&0<_n.na.length),null!=rn&&(rn[0]=cn),null!=an&&(an[0]=mn),0):yn}function Mr(en,tn,nn){var rn=tn.width,an=tn.height,sn=0,cn=0,An=rn,dn=an;if(tn.Da=null!=en&&0<en.Da,tn.Da&&(An=en.cd,dn=en.bd,sn=en.v,cn=en.j,11>nn||(sn&=-2,cn&=-2),0>sn||0>cn||0>=An||0>=dn||sn+An>rn||cn+dn>an))return 0;if(tn.v=sn,tn.j=cn,tn.va=sn+An,tn.o=cn+dn,tn.U=An,tn.T=dn,tn.da=null!=en&&0<en.da,tn.da){if(!E(An,dn,nn=[en.ib],sn=[en.hb]))return 0;tn.ib=nn[0],tn.hb=sn[0]}return tn.ob=null!=en&&en.ob,tn.Kb=null==en||!en.Sd,tn.da&&(tn.ob=tn.ib<3*rn/4&&tn.hb<3*an/4,tn.Kb=0),1}function Er(en){if(null==en)return 2;if(11>en.S){var tn=en.f.RGBA;tn.fb+=(en.height-1)*tn.A,tn.A=-tn.A}else tn=en.f.kb,en=en.height,tn.O+=(en-1)*tn.fa,tn.fa=-tn.fa,tn.N+=(en-1>>1)*tn.Ab,tn.Ab=-tn.Ab,tn.W+=(en-1>>1)*tn.Db,tn.Db=-tn.Db,null!=tn.F&&(tn.J+=(en-1)*tn.lb,tn.lb=-tn.lb);return 0}function qr(en,tn,nn,rn){if(null==rn||0>=en||0>=tn)return 2;if(null!=nn){if(nn.Da){var an=nn.cd,sn=nn.bd,cn=-2&nn.v,An=-2&nn.j;if(0>cn||0>An||0>=an||0>=sn||cn+an>en||An+sn>tn)return 2;en=an,tn=sn}if(nn.da){if(!E(en,tn,an=[nn.ib],sn=[nn.hb]))return 2;en=an[0],tn=sn[0]}}rn.width=en,rn.height=tn;e:{var dn=rn.width,un=rn.height;if(en=rn.S,0>=dn||0>=un||!(en>=Ur&&13>en))en=2;else{if(0>=rn.Rd&&null==rn.sd){cn=sn=an=tn=0;var pn=(An=dn*zo[en])*un;if(11>en||(sn=(un+1)/2*(tn=(dn+1)/2),12==en&&(cn=(an=dn)*un)),null==(un=a(pn+2*sn+cn))){en=1;break e}rn.sd=un,11>en?((dn=rn.f.RGBA).eb=un,dn.fb=0,dn.A=An,dn.size=pn):((dn=rn.f.kb).y=un,dn.O=0,dn.fa=An,dn.Fd=pn,dn.f=un,dn.N=0+pn,dn.Ab=tn,dn.Cd=sn,dn.ea=un,dn.W=0+pn+sn,dn.Db=tn,dn.Ed=sn,12==en&&(dn.F=un,dn.J=0+pn+2*sn),dn.Tc=cn,dn.lb=an)}if(tn=1,an=rn.S,sn=rn.width,cn=rn.height,an>=Ur&&13>an)if(11>an)en=rn.f.RGBA,tn&=(An=Math.abs(en.A))*(cn-1)+sn<=en.size,tn&=An>=sn*zo[an],tn&=null!=en.eb;else{en=rn.f.kb,An=(sn+1)/2,pn=(cn+1)/2,dn=Math.abs(en.fa),un=Math.abs(en.Ab);var hn=Math.abs(en.Db),gn=Math.abs(en.lb),_n=gn*(cn-1)+sn;tn&=dn*(cn-1)+sn<=en.Fd,tn&=un*(pn-1)+An<=en.Cd,tn=(tn&=hn*(pn-1)+An<=en.Ed)&dn>=sn&un>=An&hn>=An,tn&=null!=en.y,tn&=null!=en.f,tn&=null!=en.ea,12==an&&(tn&=gn>=sn,tn&=_n<=en.Tc,tn&=null!=en.F)}else tn=0;en=tn?0:2}}return 0!=en||null!=nn&&nn.fd&&(en=Er(rn)),en}var tn=64,nn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],rn=24,an=32,sn=8,cn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];R("Predictor0","PredictorAdd0"),en.Predictor0=function(){return 4278190080},en.Predictor1=function(en){return en},en.Predictor2=function(en,tn,nn){return tn[nn+0]},en.Predictor3=function(en,tn,nn){return tn[nn+1]},en.Predictor4=function(en,tn,nn){return tn[nn-1]},en.Predictor5=function(en,tn,nn){return U(U(en,tn[nn+1]),tn[nn+0])},en.Predictor6=function(en,tn,nn){return U(en,tn[nn-1])},en.Predictor7=function(en,tn,nn){return U(en,tn[nn+0])},en.Predictor8=function(en,tn,nn){return U(tn[nn-1],tn[nn+0])},en.Predictor9=function(en,tn,nn){return U(tn[nn+0],tn[nn+1])},en.Predictor10=function(en,tn,nn){return U(U(en,tn[nn-1]),U(tn[nn+0],tn[nn+1]))},en.Predictor11=function(en,tn,nn){var rn=tn[nn+0];return 0>=W(rn>>24&255,en>>24&255,(tn=tn[nn-1])>>24&255)+W(rn>>16&255,en>>16&255,tn>>16&255)+W(rn>>8&255,en>>8&255,tn>>8&255)+W(255&rn,255&en,255&tn)?rn:en},en.Predictor12=function(en,tn,nn){var rn=tn[nn+0];return(z((en>>24&255)+(rn>>24&255)-((tn=tn[nn-1])>>24&255))<<24|z((en>>16&255)+(rn>>16&255)-(tn>>16&255))<<16|z((en>>8&255)+(rn>>8&255)-(tn>>8&255))<<8|z((255&en)+(255&rn)-(255&tn)))>>>0},en.Predictor13=function(en,tn,nn){var rn=tn[nn-1];return(H((en=U(en,tn[nn+0]))>>24&255,rn>>24&255)<<24|H(en>>16&255,rn>>16&255)<<16|H(en>>8&255,rn>>8&255)<<8|H(en>>0&255,rn>>0&255))>>>0};var An=en.PredictorAdd0;en.PredictorAdd1=V,R("Predictor2","PredictorAdd2"),R("Predictor3","PredictorAdd3"),R("Predictor4","PredictorAdd4"),R("Predictor5","PredictorAdd5"),R("Predictor6","PredictorAdd6"),R("Predictor7","PredictorAdd7"),R("Predictor8","PredictorAdd8"),R("Predictor9","PredictorAdd9"),R("Predictor10","PredictorAdd10"),R("Predictor11","PredictorAdd11"),R("Predictor12","PredictorAdd12"),R("Predictor13","PredictorAdd13");var dn=en.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",(function(en){return en>>8&255}),(function(en){return en})),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(en){return en}),(function(en){return en>>8&255}));var un,pn=en.ColorIndexInverseTransform,hn=en.MapARGB,gn=en.VP8LColorIndexInverseTransformAlpha,_n=en.MapAlpha,mn=en.VP8LPredictorsAdd=[];mn.length=16,(en.VP8LPredictors=[]).length=16,(en.VP8LPredictorsAdd_C=[]).length=16,(en.VP8LPredictors_C=[]).length=16;var fn,yn,bn,vn,wn,xn,kn,Cn,Sn,Bn,En,jn,Ln,Pn,Tn,Fn,Un,Nn,In,Mn,Rn,On,Qn,qn,Vn,Gn,Dn,Hn,zn=a(511),Kn=a(2041),$n=a(225),Wn=a(767),Xn=0,Yn=Kn,Zn=$n,Jn=Wn,Tr=zn,Ur=0,Rr=1,Qr=2,Vr=3,Gr=4,Dr=5,Hr=6,zr=7,Kr=8,$r=9,Wr=10,Xr=[2,3,7],Yr=[3,3,11],Zr=[280,256,256,256,40],Jr=[0,1,1,1,0],eo=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],to=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],no=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ro=8,oo=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],io=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ao=null,so=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],lo=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],co=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Ao=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],uo=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],po=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ho=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],go=[],_o=[],mo=[],fo=1,yo=2,bo=[],vo=[];vr("UpsampleRgbLinePair",Ar,3),vr("UpsampleBgrLinePair",xr,3),vr("UpsampleRgbaLinePair",Ir,4),vr("UpsampleBgraLinePair",kr,4),vr("UpsampleArgbLinePair",Pr,4),vr("UpsampleRgba4444LinePair",_r,2),vr("UpsampleRgb565LinePair",Sr,2);var wo=en.UpsampleRgbLinePair,xo=en.UpsampleBgrLinePair,ko=en.UpsampleRgbaLinePair,Co=en.UpsampleBgraLinePair,So=en.UpsampleArgbLinePair,Bo=en.UpsampleRgba4444LinePair,Eo=en.UpsampleRgb565LinePair,jo=16,Lo=1<<jo-1,Po=-227,To=482,Fo=6,Uo=(256<<Fo)-1,No=0,Io=a(256),Mo=a(256),Ro=a(256),Oo=a(256),Qo=a(To-Po),qo=a(To-Po);Fr("YuvToRgbRow",Ar,3),Fr("YuvToBgrRow",xr,3),Fr("YuvToRgbaRow",Ir,4),Fr("YuvToBgraRow",kr,4),Fr("YuvToArgbRow",Pr,4),Fr("YuvToRgba4444Row",_r,2),Fr("YuvToRgb565Row",Sr,2);var Vo=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Go=[0,2,8],Do=[8,7,6,4,4,2,2,2,1,1,1,1],Ho=1;this.WebPDecodeRGBA=function(en,tn,nn,rn,an){var sn=Rr,cn=new rr,An=new ot;cn.ba=An,An.S=sn,An.width=[An.width],An.height=[An.height];var dn=An.width,un=An.height,pn=new st;if(null==pn||null==en)var hn=2;else e(null!=pn),hn=Br(en,tn,nn,pn.width,pn.height,pn.Pd,pn.Qd,pn.format,null);if(0!=hn?dn=0:(null!=dn&&(dn[0]=pn.width[0]),null!=un&&(un[0]=pn.height[0]),dn=1),dn){An.width=An.width[0],An.height=An.height[0],null!=rn&&(rn[0]=An.width),null!=an&&(an[0]=An.height);e:{if(rn=new Gt,(an=new nr).data=en,an.w=tn,an.ha=nn,an.kd=1,tn=[0],e(null!=an),(0==(en=Br(an.data,an.w,an.ha,null,null,null,tn,null,an))||7==en)&&tn[0]&&(en=4),0==(tn=en)){if(e(null!=cn),rn.data=an.data,rn.w=an.w+an.offset,rn.ha=an.ha-an.offset,rn.put=dt,rn.ac=ft,rn.bc=pt,rn.ma=cn,an.xa){if(null==(en=kt())){cn=1;break e}if(function(en,tn){var nn=[0],rn=[0],an=[0];t:for(;;){if(null==en)return 0;if(null==tn)return en.a=2,0;if(en.l=tn,en.a=0,v(en.m,tn.data,tn.w,tn.ha),!gt(en.m,nn,rn,an)){en.a=3;break t}if(en.xb=yo,tn.width=nn[0],tn.height=rn[0],!It(nn[0],rn[0],1,en,null))break t;return 1}return e(0!=en.a),0}(en,rn)){if(rn=0==(tn=qr(rn.width,rn.height,cn.Oa,cn.ba))){t:{rn=en;n:for(;;){if(null==rn){rn=0;break t}if(e(null!=rn.s.yc),e(null!=rn.s.Ya),e(0<rn.s.Wb),e(null!=(nn=rn.l)),e(null!=(an=nn.ma)),0!=rn.xb){if(rn.ca=an.ba,rn.tb=an.tb,e(null!=rn.ca),!Mr(an.Oa,nn,Vr)){rn.a=2;break n}if(!Ft(rn,nn.width))break n;if(nn.da)break n;if((nn.da||nt(rn.ca.S))&&mr(),11>rn.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=rn.ca.f.kb.F&&mr()),rn.Pb&&0<rn.s.ua&&null==rn.s.vb.X&&!O(rn.s.vb,rn.s.Wa.Xa)){rn.a=1;break n}rn.xb=0}if(!_t(rn,rn.V,rn.Ba,rn.c,rn.i,nn.o,Lt))break n;an.Dc=rn.Ma,rn=1;break t}e(0!=rn.a),rn=0}rn=!rn}rn&&(tn=en.a)}else tn=en.a}else{if(null==(en=new Yt)){cn=1;break e}if(en.Fa=an.na,en.P=an.P,en.qc=an.Sa,Kt(en,rn)){if(0==(tn=qr(rn.width,rn.height,cn.Oa,cn.ba))){if(en.Aa=0,nn=cn.Oa,e(null!=(an=en)),null!=nn){if(0<(dn=0>(dn=nn.Md)?0:100<dn?255:255*dn/100)){for(un=pn=0;4>un;++un)12>(hn=an.pb[un]).lc&&(hn.ia=dn*Do[0>hn.lc?0:hn.lc]>>3),pn|=hn.ia;pn&&(alert("todo:VP8InitRandom"),an.ia=1)}an.Ga=nn.Id,100<an.Ga?an.Ga=100:0>an.Ga&&(an.Ga=0)}(function Qt(en,tn){if(null==en)return 0;if(null==tn)return Jt(en,2,"NULL VP8Io parameter in VP8Decode().");if(!en.cb&&!Kt(en,tn))return 0;if(e(en.cb),null==tn.ac||tn.ac(tn)){tn.ob&&(en.L=0);var nn=Go[en.L];if(2==en.L?(en.yb=0,en.zb=0):(en.yb=tn.v-nn>>4,en.zb=tn.j-nn>>4,0>en.yb&&(en.yb=0),0>en.zb&&(en.zb=0)),en.Va=tn.o+15+nn>>4,en.Hb=tn.va+15+nn>>4,en.Hb>en.za&&(en.Hb=en.za),en.Va>en.Ub&&(en.Va=en.Ub),0<en.L){var rn=en.ed;for(nn=0;4>nn;++nn){var an;if(en.Qa.Cb){var sn=en.Qa.Lb[nn];en.Qa.Fb||(sn+=rn.Tb)}else sn=rn.Tb;for(an=0;1>=an;++an){var cn=en.gd[nn][an],An=sn;if(rn.Pc&&(An+=rn.vd[0],an&&(An+=rn.od[0])),0<(An=0>An?0:63<An?63:An)){var dn=An;0<rn.wb&&(dn=4<rn.wb?dn>>2:dn>>1)>9-rn.wb&&(dn=9-rn.wb),1>dn&&(dn=1),cn.dd=dn,cn.tc=2*An+dn,cn.ld=40<=An?2:15<=An?1:0}else cn.tc=0;cn.La=an}}}nn=0}else Jt(en,6,"Frame setup failed"),nn=en.a;if(nn=0==nn){if(nn){en.$c=0,0<en.Aa||(en.Ic=Ho);t:{nn=en.Ic,rn=4*(dn=en.za);var un=32*dn,pn=dn+1,hn=0<en.L?dn*(0<en.Aa?2:1):0,gn=(2==en.Aa?2:1)*dn;if((cn=rn+832+(an=3*(16*nn+Go[en.L])/2*un)+(sn=null!=en.Fa&&0<en.Fa.length?en.Kc.c*en.Kc.i:0))!=cn)nn=0;else{if(cn>en.Vb){if(en.Vb=0,en.Ec=a(cn),en.Fc=0,null==en.Ec){nn=Jt(en,1,"no memory during frame initialization.");break t}en.Vb=cn}cn=en.Ec,An=en.Fc,en.Ac=cn,en.Bc=An,An+=rn,en.Gd=o(un,Ht),en.Hd=0,en.rb=o(pn+1,Rt),en.sb=1,en.wa=hn?o(hn,Dt):null,en.Y=0,en.D.Nb=0,en.D.wa=en.wa,en.D.Y=en.Y,0<en.Aa&&(en.D.Y+=dn),e(!0),en.oc=cn,en.pc=An,An+=832,en.ya=o(gn,Ut),en.aa=0,en.D.ya=en.ya,en.D.aa=en.aa,2==en.Aa&&(en.D.aa+=dn),en.R=16*dn,en.B=8*dn,dn=(un=Go[en.L])*en.R,un=un/2*en.B,en.sa=cn,en.ta=An+dn,en.qa=en.sa,en.ra=en.ta+16*nn*en.R+un,en.Ha=en.qa,en.Ia=en.ra+8*nn*en.B+un,en.$c=0,An+=an,en.mb=sn?cn:null,en.nb=sn?An:null,e(An+sn<=en.Fc+en.Vb),$t(en),i(en.Ac,en.Bc,0,rn),nn=1}}if(nn){if(tn.ka=0,tn.y=en.sa,tn.O=en.ta,tn.f=en.qa,tn.N=en.ra,tn.ea=en.Ha,tn.Vd=en.Ia,tn.fa=en.R,tn.Rc=en.B,tn.F=null,tn.J=0,!Xn){for(nn=-255;255>=nn;++nn)zn[255+nn]=0>nn?-nn:nn;for(nn=-1020;1020>=nn;++nn)Kn[1020+nn]=-128>nn?-128:127<nn?127:nn;for(nn=-112;112>=nn;++nn)$n[112+nn]=-16>nn?-16:15<nn?15:nn;for(nn=-255;510>=nn;++nn)Wn[255+nn]=0>nn?0:255<nn?255:nn;Xn=1}kn=ue,Cn=ae,Bn=oe,En=se,jn=ce,Sn=ie,Ln=Je,Pn=Xe,Tn=$e,Fn=Qe,Un=Ke,Nn=Ze,In=tr,Mn=er,Rn=ze,On=He,Qn=We,qn=Ve,_o[0]=xe,_o[1]=le,_o[2]=Le,_o[3]=Ae,_o[4]=Se,_o[5]=Pe,_o[6]=_e,_o[7]=ke,_o[8]=Fe,_o[9]=Ie,go[0]=ve,go[1]=de,go[2]=pe,go[3]=ge,go[4]=be,go[5]=ye,go[6]=we,mo[0]=Be,mo[1]=fe,mo[2]=Ce,mo[3]=je,mo[4]=Ee,mo[5]=Me,mo[6]=qe,nn=1}else nn=0}nn&&(nn=function(en,tn){for(en.M=0;en.M<en.Va;++en.M){var nn,rn=en.Jc[en.M&en.Xb],an=en.m,sn=en;for(nn=0;nn<sn.za;++nn){var cn=an,An=sn,dn=An.Ac,un=An.Bc+4*nn,pn=An.zc,hn=An.ya[An.aa+nn];if(An.Qa.Bb?hn.$b=k(cn,An.Pa.jb[0])?2+k(cn,An.Pa.jb[2]):k(cn,An.Pa.jb[1]):hn.$b=0,An.kc&&(hn.Ad=k(cn,An.Bd)),hn.Za=!k(cn,145)+0,hn.Za){var gn=hn.Ob,_n=0;for(An=0;4>An;++An){var mn,fn=pn[0+An];for(mn=0;4>mn;++mn){fn=uo[dn[un+mn]][fn];for(var yn=co[k(cn,fn[0])];0<yn;)yn=co[2*yn+k(cn,fn[yn])];fn=-yn,dn[un+mn]=fn}n(gn,_n,dn,un,4),_n+=4,pn[0+An]=fn}}else fn=k(cn,156)?k(cn,128)?1:3:k(cn,163)?2:0,hn.Ob[0]=fn,i(dn,un,fn,4),i(pn,0,fn,4);hn.Dd=k(cn,142)?k(cn,114)?k(cn,183)?1:3:2:0}if(sn.m.Ka)return Jt(en,7,"Premature end-of-partition0 encountered.");for(;en.ja<en.za;++en.ja){if(sn=rn,cn=(an=en).rb[an.sb-1],dn=an.rb[an.sb+an.ja],nn=an.ya[an.aa+an.ja],un=an.kc?nn.Ad:0)cn.la=dn.la=0,nn.Za||(cn.Na=dn.Na=0),nn.Hc=0,nn.Gc=0,nn.ia=0;else{var bn,vn;if(cn=dn,dn=sn,un=an.Pa.Xc,pn=an.ya[an.aa+an.ja],hn=an.pb[pn.$b],An=pn.ad,gn=0,_n=an.rb[an.sb-1],fn=mn=0,i(An,gn,0,384),pn.Za)var wn=0,xn=un[3];else{yn=a(16);var Cn=cn.Na+_n.Na;if(Cn=ao(dn,un[1],Cn,hn.Eb,0,yn,0),cn.Na=_n.Na=(0<Cn)+0,1<Cn)kn(yn,0,An,gn);else{var Sn=yn[0]+3>>3;for(yn=0;256>yn;yn+=16)An[gn+yn]=Sn}wn=1,xn=un[0]}var Bn=15&cn.la,En=15&_n.la;for(yn=0;4>yn;++yn){var jn=1&En;for(Sn=vn=0;4>Sn;++Sn)Bn=Bn>>1|(jn=(Cn=ao(dn,xn,Cn=jn+(1&Bn),hn.Sc,wn,An,gn))>wn)<<7,vn=vn<<2|(3<Cn?3:1<Cn?2:0!=An[gn+0]),gn+=16;Bn>>=4,En=En>>1|jn<<7,mn=(mn<<8|vn)>>>0}for(xn=Bn,wn=En>>4,bn=0;4>bn;bn+=2){for(vn=0,Bn=cn.la>>4+bn,En=_n.la>>4+bn,yn=0;2>yn;++yn){for(jn=1&En,Sn=0;2>Sn;++Sn)Cn=jn+(1&Bn),Bn=Bn>>1|(jn=0<(Cn=ao(dn,un[2],Cn,hn.Qc,0,An,gn)))<<3,vn=vn<<2|(3<Cn?3:1<Cn?2:0!=An[gn+0]),gn+=16;Bn>>=2,En=En>>1|jn<<5}fn|=vn<<4*bn,xn|=Bn<<4<<bn,wn|=(240&En)<<bn}cn.la=xn,_n.la=wn,pn.Hc=mn,pn.Gc=fn,pn.ia=43690&fn?0:hn.ia,un=!(mn|fn)}if(0<an.L&&(an.wa[an.Y+an.ja]=an.gd[nn.$b][nn.Za],an.wa[an.Y+an.ja].La|=!un),sn.Ka)return Jt(en,7,"Premature end-of-file encountered.")}if($t(en),an=tn,sn=1,nn=(rn=en).D,cn=0<rn.L&&rn.M>=rn.zb&&rn.M<=rn.Va,0==rn.Aa)t:{if(nn.M=rn.M,nn.uc=cn,Or(rn,nn),sn=1,nn=(vn=rn.D).Nb,cn=(fn=Go[rn.L])*rn.R,dn=fn/2*rn.B,yn=16*nn*rn.R,Sn=8*nn*rn.B,un=rn.sa,pn=rn.ta-cn+yn,hn=rn.qa,An=rn.ra-dn+Sn,gn=rn.Ha,_n=rn.Ia-dn+Sn,En=0==(Bn=vn.M),mn=Bn>=rn.Va-1,2==rn.Aa&&Or(rn,vn),vn.uc)for(jn=(Cn=rn).D.M,e(Cn.D.uc),vn=Cn.yb;vn<Cn.Hb;++vn){wn=vn,xn=jn;var Vn=(Gn=(Zn=Cn).D).Nb;bn=Zn.R;var Gn=Gn.wa[Gn.Y+wn],Dn=Zn.sa,Hn=Zn.ta+16*Vn*bn+16*wn,zn=Gn.dd,Kn=Gn.tc;if(0!=Kn)if(e(3<=Kn),1==Zn.L)0<wn&&On(Dn,Hn,bn,Kn+4),Gn.La&&qn(Dn,Hn,bn,Kn),0<xn&&Rn(Dn,Hn,bn,Kn+4),Gn.La&&Qn(Dn,Hn,bn,Kn);else{var $n=Zn.B,Wn=Zn.qa,Xn=Zn.ra+8*Vn*$n+8*wn,Yn=Zn.Ha,Zn=Zn.Ia+8*Vn*$n+8*wn;Vn=Gn.ld,0<wn&&(Pn(Dn,Hn,bn,Kn+4,zn,Vn),Fn(Wn,Xn,Yn,Zn,$n,Kn+4,zn,Vn)),Gn.La&&(Nn(Dn,Hn,bn,Kn,zn,Vn),Mn(Wn,Xn,Yn,Zn,$n,Kn,zn,Vn)),0<xn&&(Ln(Dn,Hn,bn,Kn+4,zn,Vn),Tn(Wn,Xn,Yn,Zn,$n,Kn+4,zn,Vn)),Gn.La&&(Un(Dn,Hn,bn,Kn,zn,Vn),In(Wn,Xn,Yn,Zn,$n,Kn,zn,Vn))}}if(rn.ia&&alert("todo:DitherRow"),null!=an.put){if(vn=16*Bn,Bn=16*(Bn+1),En?(an.y=rn.sa,an.O=rn.ta+yn,an.f=rn.qa,an.N=rn.ra+Sn,an.ea=rn.Ha,an.W=rn.Ia+Sn):(vn-=fn,an.y=un,an.O=pn,an.f=hn,an.N=An,an.ea=gn,an.W=_n),mn||(Bn-=fn),Bn>an.o&&(Bn=an.o),an.F=null,an.J=null,null!=rn.Fa&&0<rn.Fa.length&&vn<Bn&&(an.J=lr(rn,an,vn,Bn-vn),an.F=rn.mb,null==an.F&&0==an.F.length)){sn=Jt(rn,3,"Could not decode alpha data.");break t}vn<an.j&&(fn=an.j-vn,vn=an.j,e(!(1&fn)),an.O+=rn.R*fn,an.N+=rn.B*(fn>>1),an.W+=rn.B*(fn>>1),null!=an.F&&(an.J+=an.width*fn)),vn<Bn&&(an.O+=an.v,an.N+=an.v>>1,an.W+=an.v>>1,null!=an.F&&(an.J+=an.v),an.ka=vn-an.j,an.U=an.va-an.v,an.T=Bn-vn,sn=an.put(an))}nn+1!=rn.Ic||mn||(n(rn.sa,rn.ta-cn,un,pn+16*rn.R,cn),n(rn.qa,rn.ra-dn,hn,An+8*rn.B,dn),n(rn.Ha,rn.Ia-dn,gn,_n+8*rn.B,dn))}if(!sn)return Jt(en,6,"Output aborted.")}return 1}(en,tn)),null!=tn.bc&&tn.bc(tn),nn&=1}return nn?(en.cb=0,nn):0})(en,rn)||(tn=en.a)}}else tn=en.a}0==tn&&null!=cn.Oa&&cn.Oa.fd&&(tn=Er(cn.ba))}cn=tn}sn=0!=cn?null:11>sn?An.f.RGBA.eb:An.f.kb.y}else sn=null;return sn};var zo=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(en,tn){for(var nn="",rn=0;rn<4;rn++)nn+=String.fromCharCode(en[tn++]);return nn}function h(en,tn){return(en[tn+0]<<0|en[tn+1]<<8|en[tn+2]<<16)>>>0}function l(en,tn){return(en[tn+0]<<0|en[tn+1]<<8|en[tn+2]<<16|en[tn+3]<<24)>>>0}new c;var tn=[0],nn=[0],rn=[],an=new c,sn=en,cn=function(en,tn){var nn={},rn=0,an=!1,sn=0,cn=0;if(nn.frames=[],!
/** @license
* Copyright (c) 2017 Dominik Homberger
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
https://webpjs.appspot.com
WebPRiffParser dominikhlbg@gmail.com
*/
function(en,tn,nn,rn){for(var an=0;an<4;an++)if(en[tn+an]!="RIFF".charCodeAt(an))return!0;return!1}(en,tn)){var An,dn;for(l(en,tn+=4),tn+=8;tn<en.length;){var un=u(en,tn),pn=l(en,tn+=4);tn+=4;var hn=pn+(1&pn);switch(un){case"VP8 ":case"VP8L":void 0===nn.frames[rn]&&(nn.frames[rn]={}),(mn=nn.frames[rn]).src_off=an?cn:tn-8,mn.src_size=sn+pn+8,rn++,an&&(an=!1,sn=0,cn=0);break;case"VP8X":(mn=nn.header={}).feature_flags=en[tn];var gn=tn+4;mn.canvas_width=1+h(en,gn),gn+=3,mn.canvas_height=1+h(en,gn),gn+=3;break;case"ALPH":an=!0,sn=hn+8,cn=tn-8;break;case"ANIM":(mn=nn.header).bgcolor=l(en,tn),gn=tn+4,mn.loop_count=(An=en)[(dn=gn)+0]<<0|An[dn+1]<<8,gn+=2;break;case"ANMF":var _n,mn;(mn=nn.frames[rn]={}).offset_x=2*h(en,tn),tn+=3,mn.offset_y=2*h(en,tn),tn+=3,mn.width=1+h(en,tn),tn+=3,mn.height=1+h(en,tn),tn+=3,mn.duration=h(en,tn),tn+=3,_n=en[tn++],mn.dispose=1&_n,mn.blend=_n>>1&1}"ANMF"!=un&&(tn+=hn)}return nn}}(sn,0);cn.response=sn,cn.rgbaoutput=!0,cn.dataurl=!1;var An=cn.header?cn.header:null,dn=cn.frames?cn.frames:null;if(An){An.loop_counter=An.loop_count,tn=[An.canvas_height],nn=[An.canvas_width];for(var un=0;un<dn.length&&0!=dn[un].blend;un++);}var pn=dn[0],hn=an.WebPDecodeRGBA(sn,pn.src_off,pn.src_size,nn,tn);pn.rgba=hn,pn.imgwidth=nn[0],pn.imgheight=tn[0];for(var gn=0;gn<nn[0]*tn[0]*4;gn++)rn[gn]=hn[gn];return this.width=nn,this.height=tn,this.data=rn,this}!function(en){var n=function(tn,nn,rn,an){var sn=4,cn=s;switch(an){case en.image_compression.FAST:sn=1,cn=o;break;case en.image_compression.MEDIUM:sn=6,cn=c;break;case en.image_compression.SLOW:sn=9,cn=u}var An=zlibSync(tn=i(tn,nn,rn,cn),{level:sn});return en.__addimage__.arrayBufferToBinaryString(An)},i=function(en,tn,nn,rn){for(var an,sn,cn,An=en.length/tn,dn=new Uint8Array(en.length+An),un=l(),pn=0;pn<An;pn+=1){if(cn=pn*tn,an=en.subarray(cn,cn+tn),rn)dn.set(rn(an,nn,sn),cn+pn);else{for(var hn,gn=un.length,_n=[];hn<gn;hn+=1)_n[hn]=un[hn](an,nn,sn);var mn=f(_n.concat());dn.set(_n[mn],cn+pn)}sn=an}return dn},a=function(en){var tn=Array.apply([],en);return tn.unshift(0),tn},o=function(en,tn){var nn,rn=[],an=en.length;rn[0]=1;for(var sn=0;sn<an;sn+=1)nn=en[sn-tn]||0,rn[sn+1]=en[sn]-nn+256&255;return rn},s=function(en,tn,nn){var rn,an=[],sn=en.length;an[0]=2;for(var cn=0;cn<sn;cn+=1)rn=nn&&nn[cn]||0,an[cn+1]=en[cn]-rn+256&255;return an},c=function(en,tn,nn){var rn,an,sn=[],cn=en.length;sn[0]=3;for(var An=0;An<cn;An+=1)rn=en[An-tn]||0,an=nn&&nn[An]||0,sn[An+1]=en[An]+256-(rn+an>>>1)&255;return sn},u=function(en,tn,nn){var rn,an,sn,cn,An=[],dn=en.length;An[0]=4;for(var un=0;un<dn;un+=1)rn=en[un-tn]||0,an=nn&&nn[un]||0,sn=nn&&nn[un-tn]||0,cn=h(rn,an,sn),An[un+1]=en[un]-cn+256&255;return An},h=function(en,tn,nn){if(en===tn&&tn===nn)return en;var rn=Math.abs(tn-nn),an=Math.abs(en-nn),sn=Math.abs(en+tn-nn-nn);return rn<=an&&rn<=sn?en:an<=sn?tn:nn},l=function(){return[a,o,s,c,u]},f=function(en){var tn=en.map((function(en){return en.reduce((function(en,tn){return en+Math.abs(tn)}),0)}));return tn.indexOf(Math.min.apply(null,tn))};en.processPNG=function(tn,nn,rn,an){var sn,cn,An,dn,un,pn,hn,gn,_n,mn,fn,yn,bn,vn,wn,xn=this.decode.FLATE_DECODE,kn="";if(this.__addimage__.isArrayBuffer(tn)&&(tn=new Uint8Array(tn)),this.__addimage__.isArrayBufferView(tn)){if(tn=(An=new ic(tn)).imgData,cn=An.bits,sn=An.colorSpace,un=An.colors,-1!==[4,6].indexOf(An.colorType)){if(8===An.bits){_n=(gn=32==An.pixelBitlength?new Uint32Array(An.decodePixels().buffer):16==An.pixelBitlength?new Uint16Array(An.decodePixels().buffer):new Uint8Array(An.decodePixels().buffer)).length,fn=new Uint8Array(_n*An.colors),mn=new Uint8Array(_n);var Cn,Sn=An.pixelBitlength-An.bits;for(vn=0,wn=0;vn<_n;vn++){for(bn=gn[vn],Cn=0;Cn<Sn;)fn[wn++]=bn>>>Cn&255,Cn+=An.bits;mn[vn]=bn>>>Cn&255}}if(16===An.bits){_n=(gn=new Uint32Array(An.decodePixels().buffer)).length,fn=new Uint8Array(_n*(32/An.pixelBitlength)*An.colors),mn=new Uint8Array(_n*(32/An.pixelBitlength)),yn=An.colors>1,vn=0,wn=0;for(var Bn=0;vn<_n;)bn=gn[vn++],fn[wn++]=bn>>>0&255,yn&&(fn[wn++]=bn>>>16&255,bn=gn[vn++],fn[wn++]=bn>>>0&255),mn[Bn++]=bn>>>16&255;cn=8}an!==en.image_compression.NONE?(tn=n(fn,An.width*An.colors,An.colors,an),hn=n(mn,An.width,1,an)):(tn=fn,hn=mn,xn=void 0)}if(3===An.colorType&&(sn=this.color_spaces.INDEXED,pn=An.palette,An.transparency.indexed)){var En=An.transparency.indexed,jn=0;for(vn=0,_n=En.length;vn<_n;++vn)jn+=En[vn];if((jn/=255)==_n-1&&-1!==En.indexOf(0))dn=[En.indexOf(0)];else if(jn!==_n){for(gn=An.decodePixels(),mn=new Uint8Array(gn.length),vn=0,_n=gn.length;vn<_n;vn++)mn[vn]=En[gn[vn]];hn=n(mn,An.width,1)}}var Ln=function(tn){var nn;switch(tn){case en.image_compression.FAST:nn=11;break;case en.image_compression.MEDIUM:nn=13;break;case en.image_compression.SLOW:nn=14;break;default:nn=12}return nn}(an);return xn===this.decode.FLATE_DECODE&&(kn="/Predictor "+Ln+" "),kn+="/Colors "+un+" /BitsPerComponent "+cn+" /Columns "+An.width,(this.__addimage__.isArrayBuffer(tn)||this.__addimage__.isArrayBufferView(tn))&&(tn=this.__addimage__.arrayBufferToBinaryString(tn)),(hn&&this.__addimage__.isArrayBuffer(hn)||this.__addimage__.isArrayBufferView(hn))&&(hn=this.__addimage__.arrayBufferToBinaryString(hn)),{alias:rn,data:tn,index:nn,filter:xn,decodeParameters:kn,transparency:dn,palette:pn,sMask:hn,predictor:Ln,width:An.width,height:An.height,bitsPerComponent:cn,colorSpace:sn}}}}(E.API),function(en){en.processGIF89A=function(tn,nn,rn,an){var sn=new Zt(tn),cn=sn.width,An=sn.height,dn=[];sn.decodeAndBlitFrameRGBA(0,dn);var un={data:dn,width:cn,height:An},pn=new Qt(100).encode(un,100);return en.processJPEG.call(this,pn,nn,rn,an)},en.processGIF87A=en.processGIF89A}(E.API),te.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var en=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(en);for(var tn=0;tn<en;tn++){var nn=this.datav.getUint8(this.pos++,!0),rn=this.datav.getUint8(this.pos++,!0),an=this.datav.getUint8(this.pos++,!0),sn=this.datav.getUint8(this.pos++,!0);this.palette[tn]={red:an,green:rn,blue:nn,quad:sn}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},te.prototype.parseBGR=function(){this.pos=this.offset;try{var en="bit"+this.bitPP,tn=this.width*this.height*4;this.data=new Uint8Array(tn),this[en]()}catch(en){wl.log("bit decode error:"+en)}},te.prototype.bit1=function(){var en,tn=Math.ceil(this.width/8),nn=tn%4;for(en=this.height-1;en>=0;en--){for(var rn=this.bottom_up?en:this.height-1-en,an=0;an<tn;an++)for(var sn=this.datav.getUint8(this.pos++,!0),cn=rn*this.width*4+8*an*4,An=0;An<8&&8*an+An<this.width;An++){var dn=this.palette[sn>>7-An&1];this.data[cn+4*An]=dn.blue,this.data[cn+4*An+1]=dn.green,this.data[cn+4*An+2]=dn.red,this.data[cn+4*An+3]=255}0!==nn&&(this.pos+=4-nn)}},te.prototype.bit4=function(){for(var en=Math.ceil(this.width/2),tn=en%4,nn=this.height-1;nn>=0;nn--){for(var rn=this.bottom_up?nn:this.height-1-nn,an=0;an<en;an++){var sn=this.datav.getUint8(this.pos++,!0),cn=rn*this.width*4+2*an*4,An=sn>>4,dn=15&sn,un=this.palette[An];if(this.data[cn]=un.blue,this.data[cn+1]=un.green,this.data[cn+2]=un.red,this.data[cn+3]=255,2*an+1>=this.width)break;un=this.palette[dn],this.data[cn+4]=un.blue,this.data[cn+4+1]=un.green,this.data[cn+4+2]=un.red,this.data[cn+4+3]=255}0!==tn&&(this.pos+=4-tn)}},te.prototype.bit8=function(){for(var en=this.width%4,tn=this.height-1;tn>=0;tn--){for(var nn=this.bottom_up?tn:this.height-1-tn,rn=0;rn<this.width;rn++){var an=this.datav.getUint8(this.pos++,!0),sn=nn*this.width*4+4*rn;if(an<this.palette.length){var cn=this.palette[an];this.data[sn]=cn.red,this.data[sn+1]=cn.green,this.data[sn+2]=cn.blue,this.data[sn+3]=255}else this.data[sn]=255,this.data[sn+1]=255,this.data[sn+2]=255,this.data[sn+3]=255}0!==en&&(this.pos+=4-en)}},te.prototype.bit15=function(){for(var en=this.width%3,tn=parseInt("11111",2),nn=this.height-1;nn>=0;nn--){for(var rn=this.bottom_up?nn:this.height-1-nn,an=0;an<this.width;an++){var sn=this.datav.getUint16(this.pos,!0);this.pos+=2;var cn=(sn&tn)/tn*255|0,An=(sn>>5&tn)/tn*255|0,dn=(sn>>10&tn)/tn*255|0,un=sn>>15?255:0,pn=rn*this.width*4+4*an;this.data[pn]=dn,this.data[pn+1]=An,this.data[pn+2]=cn,this.data[pn+3]=un}this.pos+=en}},te.prototype.bit16=function(){for(var en=this.width%3,tn=parseInt("11111",2),nn=parseInt("111111",2),rn=this.height-1;rn>=0;rn--){for(var an=this.bottom_up?rn:this.height-1-rn,sn=0;sn<this.width;sn++){var cn=this.datav.getUint16(this.pos,!0);this.pos+=2;var An=(cn&tn)/tn*255|0,dn=(cn>>5&nn)/nn*255|0,un=(cn>>11)/tn*255|0,pn=an*this.width*4+4*sn;this.data[pn]=un,this.data[pn+1]=dn,this.data[pn+2]=An,this.data[pn+3]=255}this.pos+=en}},te.prototype.bit24=function(){for(var en=this.height-1;en>=0;en--){for(var tn=this.bottom_up?en:this.height-1-en,nn=0;nn<this.width;nn++){var rn=this.datav.getUint8(this.pos++,!0),an=this.datav.getUint8(this.pos++,!0),sn=this.datav.getUint8(this.pos++,!0),cn=tn*this.width*4+4*nn;this.data[cn]=sn,this.data[cn+1]=an,this.data[cn+2]=rn,this.data[cn+3]=255}this.pos+=this.width%4}},te.prototype.bit32=function(){for(var en=this.height-1;en>=0;en--)for(var tn=this.bottom_up?en:this.height-1-en,nn=0;nn<this.width;nn++){var rn=this.datav.getUint8(this.pos++,!0),an=this.datav.getUint8(this.pos++,!0),sn=this.datav.getUint8(this.pos++,!0),cn=this.datav.getUint8(this.pos++,!0),An=tn*this.width*4+4*nn;this.data[An]=sn,this.data[An+1]=an,this.data[An+2]=rn,this.data[An+3]=cn}},te.prototype.getData=function(){return this.data},
/**
* @license
* Copyright (c) 2018 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(en){en.processBMP=function(tn,nn,rn,an){var sn=new te(tn,!1),cn=sn.width,An=sn.height,dn={data:sn.getData(),width:cn,height:An},un=new Qt(100).encode(dn,100);return en.processJPEG.call(this,un,nn,rn,an)}}(E.API),ee.prototype.getData=function(){return this.data},
/**
* @license
* Copyright (c) 2019 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(en){en.processWEBP=function(tn,nn,rn,an){var sn=new ee(tn),cn=sn.width,An=sn.height,dn={data:sn.getData(),width:cn,height:An},un=new Qt(100).encode(dn,100);return en.processJPEG.call(this,un,nn,rn,an)}}(E.API),E.API.processRGBA=function(en,tn,nn){for(var rn=en.data,an=rn.length,sn=new Uint8Array(an/4*3),cn=new Uint8Array(an/4),An=0,dn=0,un=0;un<an;un+=4){var pn=rn[un],hn=rn[un+1],gn=rn[un+2],_n=rn[un+3];sn[An++]=pn,sn[An++]=hn,sn[An++]=gn,cn[dn++]=_n}var mn=this.__addimage__.arrayBufferToBinaryString(sn);return{alpha:this.__addimage__.arrayBufferToBinaryString(cn),data:mn,index:tn,alias:nn,colorSpace:"DeviceRGB",bitsPerComponent:8,width:en.width,height:en.height}},E.API.setLanguage=function(en){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[en]&&(this.internal.languageSettings.languageCode=en,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},ec=E.API,tc=ec.getCharWidthsArray=function(en,tn){var nn,rn,an=(tn=tn||{}).font||this.internal.getFont(),sn=tn.fontSize||this.internal.getFontSize(),cn=tn.charSpace||this.internal.getCharSpace(),An=tn.widths?tn.widths:an.metadata.Unicode.widths,dn=An.fof?An.fof:1,un=tn.kerning?tn.kerning:an.metadata.Unicode.kerning,pn=un.fof?un.fof:1,hn=!1!==tn.doKerning,gn=0,_n=en.length,mn=0,fn=An[0]||dn,yn=[];for(nn=0;nn<_n;nn++)rn=en.charCodeAt(nn),"function"==typeof an.metadata.widthOfString?yn.push((an.metadata.widthOfGlyph(an.metadata.characterToGlyph(rn))+cn*(1e3/sn)||0)/1e3):(gn=hn&&"object"===_typeof$1(un[rn])&&!isNaN(parseInt(un[rn][mn],10))?un[rn][mn]/pn:0,yn.push((An[rn]||fn)/dn+gn)),mn=rn;return yn},nc=ec.getStringUnitWidth=function(en,tn){var nn=(tn=tn||{}).fontSize||this.internal.getFontSize(),rn=tn.font||this.internal.getFont(),an=tn.charSpace||this.internal.getCharSpace();return ec.processArabic&&(en=ec.processArabic(en)),"function"==typeof rn.metadata.widthOfString?rn.metadata.widthOfString(en,nn,an)/nn:tc.apply(this,arguments).reduce((function(en,tn){return en+tn}),0)},rc=function(en,tn,nn,rn){for(var an=[],sn=0,cn=en.length,An=0;sn!==cn&&An+tn[sn]<nn;)An+=tn[sn],sn++;an.push(en.slice(0,sn));var dn=sn;for(An=0;sn!==cn;)An+tn[sn]>rn&&(an.push(en.slice(dn,sn)),An=0,dn=sn),An+=tn[sn],sn++;return dn!==sn&&an.push(en.slice(dn,sn)),an},oc=function(en,tn,nn){nn||(nn={});var rn,an,sn,cn,An,dn,un,pn=[],hn=[pn],gn=nn.textIndent||0,_n=0,mn=0,fn=en.split(" "),yn=tc.apply(this,[" ",nn])[0];if(dn=-1===nn.lineIndent?fn[0].length+2:nn.lineIndent||0){var bn=Array(dn).join(" "),vn=[];fn.map((function(en){(en=en.split(/\s*\n/)).length>1?vn=vn.concat(en.map((function(en,tn){return(tn&&en.length?"\n":"")+en}))):vn.push(en[0])})),fn=vn,dn=nc.apply(this,[bn,nn])}for(sn=0,cn=fn.length;sn<cn;sn++){var wn=0;if(rn=fn[sn],dn&&"\n"==rn[0]&&(rn=rn.substr(1),wn=1),gn+_n+(mn=(an=tc.apply(this,[rn,nn])).reduce((function(en,tn){return en+tn}),0))>tn||wn){if(mn>tn){for(An=rc.apply(this,[rn,an,tn-(gn+_n),tn]),pn.push(An.shift()),pn=[An.pop()];An.length;)hn.push([An.shift()]);mn=an.slice(rn.length-(pn[0]?pn[0].length:0)).reduce((function(en,tn){return en+tn}),0)}else pn=[rn];hn.push(pn),gn=mn+dn,_n=yn}else pn.push(rn),gn+=_n+mn,_n=yn}return un=dn?function(en,tn){return(tn?bn:"")+en.join(" ")}:function(en){return en.join(" ")},hn.map(un)},ec.splitTextToSize=function(en,tn,nn){var rn,an=(nn=nn||{}).fontSize||this.internal.getFontSize(),sn=function(en){if(en.widths&&en.kerning)return{widths:en.widths,kerning:en.kerning};var tn=this.internal.getFont(en.fontName,en.fontStyle);return tn.metadata.Unicode?{widths:tn.metadata.Unicode.widths||{0:1},kerning:tn.metadata.Unicode.kerning||{}}:{font:tn.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,nn);rn=Array.isArray(en)?en:String(en).split(/\r?\n/);var cn=1*this.internal.scaleFactor*tn/an;sn.textIndent=nn.textIndent?1*nn.textIndent*this.internal.scaleFactor/an:0,sn.lineIndent=nn.lineIndent;var An,dn,un=[];for(An=0,dn=rn.length;An<dn;An++)un=un.concat(oc.apply(this,[rn[An],cn,sn]));return un},function(en){en.__fontmetrics__=en.__fontmetrics__||{};for(var tn="klmnopqrstuvwxyz",nn={},rn={},an=0;an<tn.length;an++)nn[tn[an]]="0123456789abcdef"[an],rn["0123456789abcdef"[an]]=tn[an];var o=function(en){return"0x"+parseInt(en,10).toString(16)},sn=en.__fontmetrics__.compress=function(en){var tn,nn,an,cn,An=["{"];for(var dn in en){if(tn=en[dn],isNaN(parseInt(dn,10))?nn="'"+dn+"'":(dn=parseInt(dn,10),nn=(nn=o(dn).slice(2)).slice(0,-1)+rn[nn.slice(-1)]),"number"==typeof tn)tn<0?(an=o(tn).slice(3),cn="-"):(an=o(tn).slice(2),cn=""),an=cn+an.slice(0,-1)+rn[an.slice(-1)];else{if("object"!==_typeof$1(tn))throw new Error("Don't know what to do with value type "+_typeof$1(tn)+".");an=sn(tn)}An.push(nn+an)}return An.push("}"),An.join("")},cn=en.__fontmetrics__.uncompress=function(en){if("string"!=typeof en)throw new Error("Invalid argument passed to uncompress.");for(var tn,rn,an,sn,cn={},An=1,dn=cn,un=[],pn="",hn="",gn=en.length-1,_n=1;_n<gn;_n+=1)"'"==(sn=en[_n])?tn?(an=tn.join(""),tn=void 0):tn=[]:tn?tn.push(sn):"{"==sn?(un.push([dn,an]),dn={},an=void 0):"}"==sn?((rn=un.pop())[0][rn[1]]=dn,an=void 0,dn=rn[0]):"-"==sn?An=-1:void 0===an?nn.hasOwnProperty(sn)?(pn+=nn[sn],an=parseInt(pn,16)*An,An=1,pn=""):pn+=sn:nn.hasOwnProperty(sn)?(hn+=nn[sn],dn[an]=parseInt(hn,16)*An,An=1,an=void 0,hn=""):hn+=sn;return cn},An={codePages:["WinAnsiEncoding"],WinAnsiEncoding:cn("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},dn={Unicode:{Courier:An,"Courier-Bold":An,"Courier-BoldOblique":An,"Courier-Oblique":An,Helvetica:An,"Helvetica-Bold":An,"Helvetica-BoldOblique":An,"Helvetica-Oblique":An,"Times-Roman":An,"Times-Bold":An,"Times-BoldItalic":An,"Times-Italic":An}},un={Unicode:{"Courier-Oblique":cn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":cn("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":cn("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:cn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":cn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":cn("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:cn("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:cn("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":cn("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:cn("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":cn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":cn("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":cn("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":cn("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};en.events.push(["addFont",function(en){var tn=en.font,nn=un.Unicode[tn.postScriptName];nn&&(tn.metadata.Unicode={},tn.metadata.Unicode.widths=nn.widths,tn.metadata.Unicode.kerning=nn.kerning);var rn=dn.Unicode[tn.postScriptName];rn&&(tn.metadata.Unicode.encoding=rn,tn.encoding=rn.codePages[0])}])}(E.API),
/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(en){var e=function(en){for(var tn=en.length,nn=new Uint8Array(tn),rn=0;rn<tn;rn++)nn[rn]=en.charCodeAt(rn);return nn};en.API.events.push(["addFont",function(tn){var nn=void 0,rn=tn.font,an=tn.instance;if(!rn.isStandardFont){if(void 0===an)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+rn.postScriptName+"').");if("string"!=typeof(nn=!1===an.existsFileInVFS(rn.postScriptName)?an.loadFile(rn.postScriptName):an.getFileFromVFS(rn.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+rn.postScriptName+"').");!function(tn,nn){nn=/^\x00\x01\x00\x00/.test(nn)?e(nn):e(xl(nn)),tn.metadata=en.API.TTFFont.open(nn),tn.metadata.Unicode=tn.metadata.Unicode||{encoding:{},kerning:{},widths:[]},tn.metadata.glyIdsUsed=[0]}(rn,nn)}}])}(E),
/** @license
* Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
function(en){function e(){return(vl.canvg?Promise.resolve(vl.canvg):Promise.resolve().then((function(){return UC}))).catch((function(en){return Promise.reject(new Error("Could not load canvg: "+en))})).then((function(en){return en.default?en.default:en}))}E.API.addSvgAsImage=function(en,tn,nn,rn,an,sn,cn,An){if(isNaN(tn)||isNaN(nn))throw wl.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(rn)||isNaN(an))throw wl.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var dn=document.createElement("canvas");dn.width=rn,dn.height=an;var un=dn.getContext("2d");un.fillStyle="#fff",un.fillRect(0,0,dn.width,dn.height);var pn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},hn=this;return e().then((function(tn){return tn.fromString(un,en,pn)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(en){return en.render(pn)})).then((function(){hn.addImage(dn.toDataURL("image/jpeg",1),tn,nn,rn,an,cn,An)}))}}(),E.API.putTotalPages=function(en){var tn,nn=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(tn=new RegExp(en,"g"),nn=this.internal.getNumberOfPages()):(tn=new RegExp(this.pdfEscape16(en,this.internal.getFont()),"g"),nn=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var rn=1;rn<=this.internal.getNumberOfPages();rn++)for(var an=0;an<this.internal.pages[rn].length;an++)this.internal.pages[rn][an]=this.internal.pages[rn][an].replace(tn,nn);return this},E.API.viewerPreferences=function(en,tn){var nn;en=en||{},tn=tn||!1;var rn,an,sn,cn={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},An=Object.keys(cn),dn=[],un=0,pn=0,hn=0;function d(en,tn){var nn,rn=!1;for(nn=0;nn<en.length;nn+=1)en[nn]===tn&&(rn=!0);return rn}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(cn)),this.internal.viewerpreferences.isSubscribed=!1),nn=this.internal.viewerpreferences.configuration,"reset"===en||!0===tn){var gn=An.length;for(hn=0;hn<gn;hn+=1)nn[An[hn]].value=nn[An[hn]].defaultValue,nn[An[hn]].explicitSet=!1}if("object"===_typeof$1(en))for(an in en)if(sn=en[an],d(An,an)&&void 0!==sn){if("boolean"===nn[an].type&&"boolean"==typeof sn)nn[an].value=sn;else if("name"===nn[an].type&&d(nn[an].valueSet,sn))nn[an].value=sn;else if("integer"===nn[an].type&&Number.isInteger(sn))nn[an].value=sn;else if("array"===nn[an].type){for(un=0;un<sn.length;un+=1)if(rn=!0,1===sn[un].length&&"number"==typeof sn[un][0])dn.push(String(sn[un]-1));else if(sn[un].length>1){for(pn=0;pn<sn[un].length;pn+=1)"number"!=typeof sn[un][pn]&&(rn=!1);!0===rn&&dn.push([sn[un][0]-1,sn[un][1]-1].join(" "))}nn[an].value="["+dn.join(" ")+"]"}else nn[an].value=nn[an].defaultValue;nn[an].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var en,tn=[];for(en in nn)!0===nn[en].explicitSet&&("name"===nn[en].type?tn.push("/"+en+" /"+nn[en].value):tn.push("/"+en+" "+nn[en].value));0!==tn.length&&this.internal.write("/ViewerPreferences\n<<\n"+tn.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=nn,this},
/** ====================================================================
* @license
* jsPDF XMP metadata plugin
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
function(en){var e=function(){var en='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',tn=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),nn=unescape(encodeURIComponent(en)),rn=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),an=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),sn=unescape(encodeURIComponent("</x:xmpmeta>")),cn=nn.length+rn.length+an.length+tn.length+sn.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+cn+" >>"),this.internal.write("stream"),this.internal.write(tn+nn+rn+an+sn),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};en.addMetadata=function(en,tn){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:en,namespaceuri:tn||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",e)),this}}(E.API),function(en){var tn=en.API,nn=tn.pdfEscape16=function(en,tn){for(var nn,rn=tn.metadata.Unicode.widths,an=["","0","00","000","0000"],sn=[""],cn=0,An=en.length;cn<An;++cn){if(nn=tn.metadata.characterToGlyph(en.charCodeAt(cn)),tn.metadata.glyIdsUsed.push(nn),tn.metadata.toUnicode[nn]=en.charCodeAt(cn),-1==rn.indexOf(nn)&&(rn.push(nn),rn.push([parseInt(tn.metadata.widthOfGlyph(nn),10)])),"0"==nn)return sn.join("");nn=nn.toString(16),sn.push(an[4-nn.length],nn)}return sn.join("")},n=function(en){var tn,nn,rn,an,sn,cn,An;for(sn="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",rn=[],cn=0,An=(nn=Object.keys(en).sort((function(en,tn){return en-tn}))).length;cn<An;cn++)tn=nn[cn],rn.length>=100&&(sn+="\n"+rn.length+" beginbfchar\n"+rn.join("\n")+"\nendbfchar",rn=[]),void 0!==en[tn]&&null!==en[tn]&&"function"==typeof en[tn].toString&&(an=("0000"+en[tn].toString(16)).slice(-4),tn=("0000"+(+tn).toString(16)).slice(-4),rn.push("<"+tn+"><"+an+">"));return rn.length&&(sn+="\n"+rn.length+" beginbfchar\n"+rn.join("\n")+"\nendbfchar\n"),sn+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};tn.events.push(["putFont",function(tn){!function(tn){var nn=tn.font,rn=tn.out,an=tn.newObject,sn=tn.putStream;if(nn.metadata instanceof en.API.TTFFont&&"Identity-H"===nn.encoding){for(var cn=nn.metadata.Unicode.widths,An=nn.metadata.subset.encode(nn.metadata.glyIdsUsed,1),dn="",un=0;un<An.length;un++)dn+=String.fromCharCode(An[un]);var pn=an();sn({data:dn,addLength1:!0,objectId:pn}),rn("endobj");var hn=an();sn({data:n(nn.metadata.toUnicode),addLength1:!0,objectId:hn}),rn("endobj");var gn=an();rn("<<"),rn("/Type /FontDescriptor"),rn("/FontName /"+F(nn.fontName)),rn("/FontFile2 "+pn+" 0 R"),rn("/FontBBox "+en.API.PDFObject.convert(nn.metadata.bbox)),rn("/Flags "+nn.metadata.flags),rn("/StemV "+nn.metadata.stemV),rn("/ItalicAngle "+nn.metadata.italicAngle),rn("/Ascent "+nn.metadata.ascender),rn("/Descent "+nn.metadata.decender),rn("/CapHeight "+nn.metadata.capHeight),rn(">>"),rn("endobj");var _n=an();rn("<<"),rn("/Type /Font"),rn("/BaseFont /"+F(nn.fontName)),rn("/FontDescriptor "+gn+" 0 R"),rn("/W "+en.API.PDFObject.convert(cn)),rn("/CIDToGIDMap /Identity"),rn("/DW 1000"),rn("/Subtype /CIDFontType2"),rn("/CIDSystemInfo"),rn("<<"),rn("/Supplement 0"),rn("/Registry (Adobe)"),rn("/Ordering ("+nn.encoding+")"),rn(">>"),rn(">>"),rn("endobj"),nn.objectNumber=an(),rn("<<"),rn("/Type /Font"),rn("/Subtype /Type0"),rn("/ToUnicode "+hn+" 0 R"),rn("/BaseFont /"+F(nn.fontName)),rn("/Encoding /"+nn.encoding),rn("/DescendantFonts ["+_n+" 0 R]"),rn(">>"),rn("endobj"),nn.isAlreadyPutted=!0}}(tn)}]),tn.events.push(["putFont",function(tn){!function(tn){var nn=tn.font,rn=tn.out,an=tn.newObject,sn=tn.putStream;if(nn.metadata instanceof en.API.TTFFont&&"WinAnsiEncoding"===nn.encoding){for(var cn=nn.metadata.rawData,An="",dn=0;dn<cn.length;dn++)An+=String.fromCharCode(cn[dn]);var un=an();sn({data:An,addLength1:!0,objectId:un}),rn("endobj");var pn=an();sn({data:n(nn.metadata.toUnicode),addLength1:!0,objectId:pn}),rn("endobj");var hn=an();rn("<<"),rn("/Descent "+nn.metadata.decender),rn("/CapHeight "+nn.metadata.capHeight),rn("/StemV "+nn.metadata.stemV),rn("/Type /FontDescriptor"),rn("/FontFile2 "+un+" 0 R"),rn("/Flags 96"),rn("/FontBBox "+en.API.PDFObject.convert(nn.metadata.bbox)),rn("/FontName /"+F(nn.fontName)),rn("/ItalicAngle "+nn.metadata.italicAngle),rn("/Ascent "+nn.metadata.ascender),rn(">>"),rn("endobj"),nn.objectNumber=an();for(var gn=0;gn<nn.metadata.hmtx.widths.length;gn++)nn.metadata.hmtx.widths[gn]=parseInt(nn.metadata.hmtx.widths[gn]*(1e3/nn.metadata.head.unitsPerEm));rn("<</Subtype/TrueType/Type/Font/ToUnicode "+pn+" 0 R/BaseFont/"+F(nn.fontName)+"/FontDescriptor "+hn+" 0 R/Encoding/"+nn.encoding+" /FirstChar 29 /LastChar 255 /Widths "+en.API.PDFObject.convert(nn.metadata.hmtx.widths)+">>"),rn("endobj"),nn.isAlreadyPutted=!0}}(tn)}]);var i=function(en){var tn,rn=en.text||"",an=en.x,sn=en.y,cn=en.options||{},An=en.mutex||{},dn=An.pdfEscape,un=An.activeFontKey,pn=An.fonts,hn=un,gn="",_n=0,mn="",fn=pn[hn].encoding;if("Identity-H"!==pn[hn].encoding)return{text:rn,x:an,y:sn,options:cn,mutex:An};for(mn=rn,hn=un,Array.isArray(rn)&&(mn=rn[0]),_n=0;_n<mn.length;_n+=1)pn[hn].metadata.hasOwnProperty("cmap")&&(tn=pn[hn].metadata.cmap.unicode.codeMap[mn[_n].charCodeAt(0)]),tn||mn[_n].charCodeAt(0)<256&&pn[hn].metadata.hasOwnProperty("Unicode")?gn+=mn[_n]:gn+="";var yn="";return parseInt(hn.slice(1))<14||"WinAnsiEncoding"===fn?yn=dn(gn,hn).split("").map((function(en){return en.charCodeAt(0).toString(16)})).join(""):"Identity-H"===fn&&(yn=nn(gn,pn[hn])),An.isHex=!0,{text:yn,x:an,y:sn,options:cn,mutex:An}};tn.events.push(["postProcessText",function(en){var tn=en.text||"",nn=[],rn={text:tn,x:en.x,y:en.y,options:en.options,mutex:en.mutex};if(Array.isArray(tn)){var an=0;for(an=0;an<tn.length;an+=1)Array.isArray(tn[an])&&3===tn[an].length?nn.push([i(Object.assign({},rn,{text:tn[an][0]})).text,tn[an][1],tn[an][2]]):nn.push(i(Object.assign({},rn,{text:tn[an]})).text);en.text=nn}else en.text=i(Object.assign({},rn,{text:tn})).text}])}(E),
/**
* @license
* jsPDF virtual FileSystem functionality
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(en){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};en.existsFileInVFS=function(en){return e.call(this),void 0!==this.internal.vFS[en]},en.addFileToVFS=function(en,tn){return e.call(this),this.internal.vFS[en]=tn,this},en.getFileFromVFS=function(en){return e.call(this),void 0!==this.internal.vFS[en]?this.internal.vFS[en]:null}}(E.API),
/**
* @license
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
* MIT License
*/
function(en){en.__bidiEngine__=en.prototype.__bidiEngine__=function(en){var nn,rn,an,sn,cn,An,dn,un=tn,pn=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],hn=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],gn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},_n={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},mn=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","","","","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],fn=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),yn=!1,bn=0;this.__bidiEngine__={};var b=function(en){var tn=en.charCodeAt(),nn=tn>>8,rn=_n[nn];return void 0!==rn?un[256*rn+(255&tn)]:252===nn||253===nn?"AL":fn.test(nn)?"L":8===nn?"R":"N"},y=function(en){for(var tn,nn=0;nn<en.length;nn++){if("L"===(tn=b(en.charAt(nn))))return!1;if("R"===tn)return!0}return!1},w=function(en,tn,cn,An){var dn,un,pn,hn,gn=tn[An];switch(gn){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":yn=!1;break;case"N":case"AN":break;case"EN":yn&&(gn="AN");break;case"AL":yn=!0,gn="R";break;case"WS":case"BN":gn="N";break;case"CS":An<1||An+1>=tn.length||"EN"!==(dn=cn[An-1])&&"AN"!==dn||"EN"!==(un=tn[An+1])&&"AN"!==un?gn="N":yn&&(un="AN"),gn=un===dn?un:"N";break;case"ES":gn="EN"===(dn=An>0?cn[An-1]:"B")&&An+1<tn.length&&"EN"===tn[An+1]?"EN":"N";break;case"ET":if(An>0&&"EN"===cn[An-1]){gn="EN";break}if(yn){gn="N";break}for(pn=An+1,hn=tn.length;pn<hn&&"ET"===tn[pn];)pn++;gn=pn<hn&&"EN"===tn[pn]?"EN":"N";break;case"NSM":if(an&&!sn){for(hn=tn.length,pn=An+1;pn<hn&&"NSM"===tn[pn];)pn++;if(pn<hn){var _n=en[An],mn=_n>=1425&&_n<=2303||64286===_n;if(dn=tn[pn],mn&&("R"===dn||"AL"===dn)){gn="R";break}}}gn=An<1||"B"===(dn=tn[An-1])?"N":cn[An-1];break;case"B":yn=!1,nn=!0,gn=bn;break;case"S":rn=!0,gn="N"}return gn},N=function(en,tn,nn){var rn=en.split("");return nn&&L(rn,nn,{hiLevel:bn}),rn.reverse(),tn&&tn.reverse(),rn.join("")},L=function(en,tn,an){var sn,cn,An,dn,un,_n=-1,mn=en.length,fn=0,vn=[],wn=bn?hn:pn,xn=[];for(yn=!1,nn=!1,rn=!1,cn=0;cn<mn;cn++)xn[cn]=b(en[cn]);for(An=0;An<mn;An++){if(un=fn,vn[An]=w(en,xn,vn,An),sn=240&(fn=wn[un][gn[vn[An]]]),fn&=15,tn[An]=dn=wn[fn][5],sn>0)if(16===sn){for(cn=_n;cn<An;cn++)tn[cn]=1;_n=-1}else _n=-1;if(wn[fn][6])-1===_n&&(_n=An);else if(_n>-1){for(cn=_n;cn<An;cn++)tn[cn]=dn;_n=-1}"B"===xn[An]&&(tn[An]=0),an.hiLevel|=dn}rn&&function(en,tn,nn){for(var rn=0;rn<nn;rn++)if("S"===en[rn]){tn[rn]=bn;for(var an=rn-1;an>=0&&"WS"===en[an];an--)tn[an]=bn}}(xn,tn,mn)},A=function(en,tn,rn,an,sn){if(!(sn.hiLevel<en)){if(1===en&&1===bn&&!nn)return tn.reverse(),void(rn&&rn.reverse());for(var cn,An,dn,un,pn=tn.length,hn=0;hn<pn;){if(an[hn]>=en){for(dn=hn+1;dn<pn&&an[dn]>=en;)dn++;for(un=hn,An=dn-1;un<An;un++,An--)cn=tn[un],tn[un]=tn[An],tn[An]=cn,rn&&(cn=rn[un],rn[un]=rn[An],rn[An]=cn);hn=dn}hn++}}},x=function(en,tn,nn){var rn=en.split(""),an={hiLevel:bn};return nn||(nn=[]),L(rn,nn,an),function(en,tn,nn){if(0!==nn.hiLevel&&dn)for(var rn,an=0;an<en.length;an++)1===tn[an]&&(rn=mn.indexOf(en[an]))>=0&&(en[an]=mn[rn+1])}(rn,nn,an),A(2,rn,tn,nn,an),A(1,rn,tn,nn,an),rn.join("")};return this.__bidiEngine__.doBidiReorder=function(en,tn,nn){if(function(en,tn){if(tn)for(var nn=0;nn<en.length;nn++)tn[nn]=nn;void 0===sn&&(sn=y(en)),void 0===An&&(An=y(en))}(en,tn),an||!cn||An)if(an&&cn&&sn^An)bn=sn?1:0,en=N(en,tn,nn);else if(!an&&cn&&An)bn=sn?1:0,en=x(en,tn,nn),en=N(en,tn);else if(!an||sn||cn||An){if(an&&!cn&&sn^An)en=N(en,tn),sn?(bn=0,en=x(en,tn,nn)):(bn=1,en=x(en,tn,nn),en=N(en,tn));else if(an&&sn&&!cn&&An)bn=1,en=x(en,tn,nn),en=N(en,tn);else if(!an&&!cn&&sn^An){var rn=dn;sn?(bn=1,en=x(en,tn,nn),bn=0,dn=!1,en=x(en,tn,nn),dn=rn):(bn=0,en=x(en,tn,nn),en=N(en,tn),bn=1,dn=!1,en=x(en,tn,nn),dn=rn,en=N(en,tn))}}else bn=0,en=x(en,tn,nn);else bn=sn?1:0,en=x(en,tn,nn);return en},this.__bidiEngine__.setOptions=function(en){en&&(an=en.isInputVisual,cn=en.isOutputVisual,sn=en.isInputRtl,An=en.isOutputRtl,dn=en.isSymmetricSwapping)},this.__bidiEngine__.setOptions(en),this.__bidiEngine__};var tn=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],nn=new en.__bidiEngine__({isInputVisual:!0});en.API.events.push(["postProcessText",function(en){var tn=en.text,rn=(en.x,en.y,en.options||{}),an=(en.mutex,rn.lang,[]);if(rn.isInputVisual="boolean"!=typeof rn.isInputVisual||rn.isInputVisual,nn.setOptions(rn),"[object Array]"===Object.prototype.toString.call(tn)){var sn=0;for(an=[],sn=0;sn<tn.length;sn+=1)"[object Array]"===Object.prototype.toString.call(tn[sn])?an.push([nn.doBidiReorder(tn[sn][0]),tn[sn][1],tn[sn][2]]):an.push([nn.doBidiReorder(tn[sn])]);en.text=an}else en.text=nn.doBidiReorder(tn);nn.setOptions({isInputVisual:!0})}])}(E),E.API.TTFFont=function(){function t(en){var tn;if(this.rawData=en,tn=this.contents=new sc(en),this.contents.pos=4,"ttcf"===tn.readString(4))throw new Error("TTCF not supported.");tn.pos=0,this.parse(),this.subset=new Cc(this),this.registerTTF()}return t.open=function(en){return new t(en)},t.prototype.parse=function(){return this.directory=new cc(this.contents),this.head=new dc(this),this.name=new mc(this),this.cmap=new pc(this),this.toUnicode={},this.hhea=new hc(this),this.maxp=new fc(this),this.hmtx=new yc(this),this.post=new _c(this),this.os2=new gc(this),this.loca=new kc(this),this.glyf=new vc(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var en,tn,nn,rn,an;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var tn,nn,rn,an;for(an=[],tn=0,nn=(rn=this.bbox).length;tn<nn;tn++)en=rn[tn],an.push(Math.round(en*this.scaleFactor));return an}.call(this),this.stemV=0,this.post.exists?(nn=255&(rn=this.post.italic_angle),0!=(32768&(tn=rn>>16))&&(tn=-(1+(65535^tn))),this.italicAngle=+(tn+"."+nn)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(an=this.familyClass)||2===an||3===an||4===an||5===an||7===an,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(en){var tn;return(null!=(tn=this.cmap.unicode)?tn.codeMap[en]:void 0)||0},t.prototype.widthOfGlyph=function(en){var tn;return tn=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(en).advance*tn},t.prototype.widthOfString=function(en,tn,nn){var rn,an,sn,cn;for(sn=0,an=0,cn=(en=""+en).length;0<=cn?an<cn:an>cn;an=0<=cn?++an:--an)rn=en.charCodeAt(an),sn+=this.widthOfGlyph(this.characterToGlyph(rn))+nn*(1e3/tn)||0;return sn*(tn/1e3)},t.prototype.lineHeight=function(en,tn){var nn;return null==tn&&(tn=!1),nn=tn?this.lineGap:0,(this.ascender+nn-this.decender)/1e3*en},t}();var ac,sc=function(){function t(en){this.data=null!=en?en:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(en){return this.data[this.pos++]=en},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(en){return this.writeByte(en>>>24&255),this.writeByte(en>>16&255),this.writeByte(en>>8&255),this.writeByte(255&en)},t.prototype.readInt32=function(){var en;return(en=this.readUInt32())>=2147483648?en-4294967296:en},t.prototype.writeInt32=function(en){return en<0&&(en+=4294967296),this.writeUInt32(en)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(en){return this.writeByte(en>>8&255),this.writeByte(255&en)},t.prototype.readInt16=function(){var en;return(en=this.readUInt16())>=32768?en-65536:en},t.prototype.writeInt16=function(en){return en<0&&(en+=65536),this.writeUInt16(en)},t.prototype.readString=function(en){var tn,nn;for(nn=[],tn=0;0<=en?tn<en:tn>en;tn=0<=en?++tn:--tn)nn[tn]=String.fromCharCode(this.readByte());return nn.join("")},t.prototype.writeString=function(en){var tn,nn,rn;for(rn=[],tn=0,nn=en.length;0<=nn?tn<nn:tn>nn;tn=0<=nn?++tn:--tn)rn.push(this.writeByte(en.charCodeAt(tn)));return rn},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(en){return this.writeInt16(en)},t.prototype.readLongLong=function(){var en,tn,nn,rn,an,sn,cn,An;return en=this.readByte(),tn=this.readByte(),nn=this.readByte(),rn=this.readByte(),an=this.readByte(),sn=this.readByte(),cn=this.readByte(),An=this.readByte(),128&en?-1*(72057594037927940*(255^en)+281474976710656*(255^tn)+1099511627776*(255^nn)+4294967296*(255^rn)+16777216*(255^an)+65536*(255^sn)+256*(255^cn)+(255^An)+1):72057594037927940*en+281474976710656*tn+1099511627776*nn+4294967296*rn+16777216*an+65536*sn+256*cn+An},t.prototype.writeLongLong=function(en){var tn,nn;return tn=Math.floor(en/4294967296),nn=4294967295&en,this.writeByte(tn>>24&255),this.writeByte(tn>>16&255),this.writeByte(tn>>8&255),this.writeByte(255&tn),this.writeByte(nn>>24&255),this.writeByte(nn>>16&255),this.writeByte(nn>>8&255),this.writeByte(255&nn)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(en){return this.writeInt32(en)},t.prototype.read=function(en){var tn,nn;for(tn=[],nn=0;0<=en?nn<en:nn>en;nn=0<=en?++nn:--nn)tn.push(this.readByte());return tn},t.prototype.write=function(en){var tn,nn,rn,an;for(an=[],nn=0,rn=en.length;nn<rn;nn++)tn=en[nn],an.push(this.writeByte(tn));return an},t}(),cc=function(){var en;function e(en){var tn,nn,rn;for(this.scalarType=en.readInt(),this.tableCount=en.readShort(),this.searchRange=en.readShort(),this.entrySelector=en.readShort(),this.rangeShift=en.readShort(),this.tables={},nn=0,rn=this.tableCount;0<=rn?nn<rn:nn>rn;nn=0<=rn?++nn:--nn)tn={tag:en.readString(4),checksum:en.readInt(),offset:en.readInt(),length:en.readInt()},this.tables[tn.tag]=tn}return e.prototype.encode=function(tn){var nn,rn,an,sn,cn,An,dn,un,pn,hn,gn,_n,mn;for(mn in gn=Object.keys(tn).length,An=Math.log(2),pn=16*Math.floor(Math.log(gn)/An),sn=Math.floor(pn/An),un=16*gn-pn,(rn=new sc).writeInt(this.scalarType),rn.writeShort(gn),rn.writeShort(pn),rn.writeShort(sn),rn.writeShort(un),an=16*gn,dn=rn.pos+an,cn=null,_n=[],tn)for(hn=tn[mn],rn.writeString(mn),rn.writeInt(en(hn)),rn.writeInt(dn),rn.writeInt(hn.length),_n=_n.concat(hn),"head"===mn&&(cn=dn),dn+=hn.length;dn%4;)_n.push(0),dn++;return rn.write(_n),nn=2981146554-en(rn.data),rn.pos=cn+8,rn.writeUInt32(nn),rn.data},en=function(en){var tn,nn,rn,an;for(en=bc.call(en);en.length%4;)en.push(0);for(rn=new sc(en),nn=0,tn=0,an=en.length;tn<an;tn=tn+=4)nn+=rn.readUInt32();return 4294967295&nn},e}(),Ac={}.hasOwnProperty,oe=function(en,tn){for(var nn in tn)Ac.call(tn,nn)&&(en[nn]=tn[nn]);function n(){this.constructor=en}return n.prototype=tn.prototype,en.prototype=new n,en.__super__=tn.prototype,en};ac=function(){function t(en){var tn;this.file=en,tn=this.file.directory.tables[this.tag],this.exists=!!tn,tn&&(this.offset=tn.offset,this.length=tn.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var dc=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return oe(e,ac),e.prototype.tag="head",e.prototype.parse=function(en){return en.pos=this.offset,this.version=en.readInt(),this.revision=en.readInt(),this.checkSumAdjustment=en.readInt(),this.magicNumber=en.readInt(),this.flags=en.readShort(),this.unitsPerEm=en.readShort(),this.created=en.readLongLong(),this.modified=en.readLongLong(),this.xMin=en.readShort(),this.yMin=en.readShort(),this.xMax=en.readShort(),this.yMax=en.readShort(),this.macStyle=en.readShort(),this.lowestRecPPEM=en.readShort(),this.fontDirectionHint=en.readShort(),this.indexToLocFormat=en.readShort(),this.glyphDataFormat=en.readShort()},e.prototype.encode=function(en){var tn;return(tn=new sc).writeInt(this.version),tn.writeInt(this.revision),tn.writeInt(this.checkSumAdjustment),tn.writeInt(this.magicNumber),tn.writeShort(this.flags),tn.writeShort(this.unitsPerEm),tn.writeLongLong(this.created),tn.writeLongLong(this.modified),tn.writeShort(this.xMin),tn.writeShort(this.yMin),tn.writeShort(this.xMax),tn.writeShort(this.yMax),tn.writeShort(this.macStyle),tn.writeShort(this.lowestRecPPEM),tn.writeShort(this.fontDirectionHint),tn.writeShort(en),tn.writeShort(this.glyphDataFormat),tn.data},e}(),uc=function(){function t(en,tn){var nn,rn,an,sn,cn,An,dn,un,pn,hn,gn,_n,mn,fn,yn,bn,vn;switch(this.platformID=en.readUInt16(),this.encodingID=en.readShort(),this.offset=tn+en.readInt(),pn=en.pos,en.pos=this.offset,this.format=en.readUInt16(),this.length=en.readUInt16(),this.language=en.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(An=0;An<256;++An)this.codeMap[An]=en.readByte();break;case 4:for(gn=en.readUInt16(),hn=gn/2,en.pos+=6,an=function(){var tn,nn;for(nn=[],An=tn=0;0<=hn?tn<hn:tn>hn;An=0<=hn?++tn:--tn)nn.push(en.readUInt16());return nn}(),en.pos+=2,mn=function(){var tn,nn;for(nn=[],An=tn=0;0<=hn?tn<hn:tn>hn;An=0<=hn?++tn:--tn)nn.push(en.readUInt16());return nn}(),dn=function(){var tn,nn;for(nn=[],An=tn=0;0<=hn?tn<hn:tn>hn;An=0<=hn?++tn:--tn)nn.push(en.readUInt16());return nn}(),un=function(){var tn,nn;for(nn=[],An=tn=0;0<=hn?tn<hn:tn>hn;An=0<=hn?++tn:--tn)nn.push(en.readUInt16());return nn}(),rn=(this.length-en.pos+this.offset)/2,cn=function(){var tn,nn;for(nn=[],An=tn=0;0<=rn?tn<rn:tn>rn;An=0<=rn?++tn:--tn)nn.push(en.readUInt16());return nn}(),An=yn=0,vn=an.length;yn<vn;An=++yn)for(fn=an[An],nn=bn=_n=mn[An];_n<=fn?bn<=fn:bn>=fn;nn=_n<=fn?++bn:--bn)0===un[An]?sn=nn+dn[An]:0!==(sn=cn[un[An]/2+(nn-_n)-(hn-An)]||0)&&(sn+=dn[An]),this.codeMap[nn]=65535&sn}en.pos=pn}return t.encode=function(en,tn){var nn,rn,an,sn,cn,An,dn,un,pn,hn,gn,_n,mn,fn,yn,bn,vn,wn,xn,kn,Cn,Sn,Bn,En,jn,Ln,Pn,Tn,Fn,Un,Nn,In,Mn,Rn,On,Qn,qn,Vn,Gn,Dn,Hn,zn,Kn,$n,Wn,Xn;switch(Tn=new sc,sn=Object.keys(en).sort((function(en,tn){return en-tn})),tn){case"macroman":for(mn=0,fn=function(){var en=[];for(_n=0;_n<256;++_n)en.push(0);return en}(),bn={0:0},an={},Fn=0,Mn=sn.length;Fn<Mn;Fn++)null==bn[Kn=en[rn=sn[Fn]]]&&(bn[Kn]=++mn),an[rn]={old:en[rn],new:bn[en[rn]]},fn[rn]=bn[en[rn]];return Tn.writeUInt16(1),Tn.writeUInt16(0),Tn.writeUInt32(12),Tn.writeUInt16(0),Tn.writeUInt16(262),Tn.writeUInt16(0),Tn.write(fn),{charMap:an,subtable:Tn.data,maxGlyphID:mn+1};case"unicode":for(Ln=[],pn=[],vn=0,bn={},nn={},yn=dn=null,Un=0,Rn=sn.length;Un<Rn;Un++)null==bn[xn=en[rn=sn[Un]]]&&(bn[xn]=++vn),nn[rn]={old:xn,new:bn[xn]},cn=bn[xn]-rn,null!=yn&&cn===dn||(yn&&pn.push(yn),Ln.push(rn),dn=cn),yn=rn;for(yn&&pn.push(yn),pn.push(65535),Ln.push(65535),En=2*(Bn=Ln.length),Sn=2*Math.pow(Math.log(Bn)/Math.LN2,2),hn=Math.log(Sn/2)/Math.LN2,Cn=2*Bn-Sn,An=[],kn=[],gn=[],_n=Nn=0,On=Ln.length;Nn<On;_n=++Nn){if(jn=Ln[_n],un=pn[_n],65535===jn){An.push(0),kn.push(0);break}if(jn-(Pn=nn[jn].new)>=32768)for(An.push(0),kn.push(2*(gn.length+Bn-_n)),rn=In=jn;jn<=un?In<=un:In>=un;rn=jn<=un?++In:--In)gn.push(nn[rn].new);else An.push(Pn-jn),kn.push(0)}for(Tn.writeUInt16(3),Tn.writeUInt16(1),Tn.writeUInt32(12),Tn.writeUInt16(4),Tn.writeUInt16(16+8*Bn+2*gn.length),Tn.writeUInt16(0),Tn.writeUInt16(En),Tn.writeUInt16(Sn),Tn.writeUInt16(hn),Tn.writeUInt16(Cn),Hn=0,Qn=pn.length;Hn<Qn;Hn++)rn=pn[Hn],Tn.writeUInt16(rn);for(Tn.writeUInt16(0),zn=0,qn=Ln.length;zn<qn;zn++)rn=Ln[zn],Tn.writeUInt16(rn);for($n=0,Vn=An.length;$n<Vn;$n++)cn=An[$n],Tn.writeUInt16(cn);for(Wn=0,Gn=kn.length;Wn<Gn;Wn++)wn=kn[Wn],Tn.writeUInt16(wn);for(Xn=0,Dn=gn.length;Xn<Dn;Xn++)mn=gn[Xn],Tn.writeUInt16(mn);return{charMap:nn,subtable:Tn.data,maxGlyphID:vn+1}}},t}(),pc=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return oe(e,ac),e.prototype.tag="cmap",e.prototype.parse=function(en){var tn,nn,rn;for(en.pos=this.offset,this.version=en.readUInt16(),rn=en.readUInt16(),this.tables=[],this.unicode=null,nn=0;0<=rn?nn<rn:nn>rn;nn=0<=rn?++nn:--nn)tn=new uc(en,this.offset),this.tables.push(tn),tn.isUnicode&&null==this.unicode&&(this.unicode=tn);return!0},e.encode=function(en,tn){var nn,rn;return null==tn&&(tn="macroman"),nn=uc.encode(en,tn),(rn=new sc).writeUInt16(0),rn.writeUInt16(1),nn.table=rn.data.concat(nn.subtable),nn},e}(),hc=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return oe(e,ac),e.prototype.tag="hhea",e.prototype.parse=function(en){return en.pos=this.offset,this.version=en.readInt(),this.ascender=en.readShort(),this.decender=en.readShort(),this.lineGap=en.readShort(),this.advanceWidthMax=en.readShort(),this.minLeftSideBearing=en.readShort(),this.minRightSideBearing=en.readShort(),this.xMaxExtent=en.readShort(),this.caretSlopeRise=en.readShort(),this.caretSlopeRun=en.readShort(),this.caretOffset=en.readShort(),en.pos+=8,this.metricDataFormat=en.readShort(),this.numberOfMetrics=en.readUInt16()},e}(),gc=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return oe(e,ac),e.prototype.tag="OS/2",e.prototype.parse=function(en){if(en.pos=this.offset,this.version=en.readUInt16(),this.averageCharWidth=en.readShort(),this.weightClass=en.readUInt16(),this.widthClass=en.readUInt16(),this.type=en.readShort(),this.ySubscriptXSize=en.readShort(),this.ySubscriptYSize=en.readShort(),this.ySubscriptXOffset=en.readShort(),this.ySubscriptYOffset=en.readShort(),this.ySuperscriptXSize=en.readShort(),this.ySuperscriptYSize=en.readShort(),this.ySuperscriptXOffset=en.readShort(),this.ySuperscriptYOffset=en.readShort(),this.yStrikeoutSize=en.readShort(),this.yStrikeoutPosition=en.readShort(),this.familyClass=en.readShort(),this.panose=function(){var tn,nn;for(nn=[],tn=0;tn<10;++tn)nn.push(en.readByte());return nn}(),this.charRange=function(){var tn,nn;for(nn=[],tn=0;tn<4;++tn)nn.push(en.readInt());return nn}(),this.vendorID=en.readString(4),this.selection=en.readShort(),this.firstCharIndex=en.readShort(),this.lastCharIndex=en.readShort(),this.version>0&&(this.ascent=en.readShort(),this.descent=en.readShort(),this.lineGap=en.readShort(),this.winAscent=en.readShort(),this.winDescent=en.readShort(),this.codePageRange=function(){var tn,nn;for(nn=[],tn=0;tn<2;tn=++tn)nn.push(en.readInt());return nn}(),this.version>1))return this.xHeight=en.readShort(),this.capHeight=en.readShort(),this.defaultChar=en.readShort(),this.breakChar=en.readShort(),this.maxContext=en.readShort()},e}(),_c=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return oe(e,ac),e.prototype.tag="post",e.prototype.parse=function(en){var tn,nn,rn;switch(en.pos=this.offset,this.format=en.readInt(),this.italicAngle=en.readInt(),this.underlinePosition=en.readShort(),this.underlineThickness=en.readShort(),this.isFixedPitch=en.readInt(),this.minMemType42=en.readInt(),this.maxMemType42=en.readInt(),this.minMemType1=en.readInt(),this.maxMemType1=en.readInt(),this.format){case 65536:case 196608:break;case 131072:var an;for(nn=en.readUInt16(),this.glyphNameIndex=[],an=0;0<=nn?an<nn:an>nn;an=0<=nn?++an:--an)this.glyphNameIndex.push(en.readUInt16());for(this.names=[],rn=[];en.pos<this.offset+this.length;)tn=en.readByte(),rn.push(this.names.push(en.readString(tn)));return rn;case 151552:return nn=en.readUInt16(),this.offsets=en.read(nn);case 262144:return this.map=function(){var tn,nn,rn;for(rn=[],an=tn=0,nn=this.file.maxp.numGlyphs;0<=nn?tn<nn:tn>nn;an=0<=nn?++tn:--tn)rn.push(en.readUInt32());return rn}.call(this)}},e}(),de=function(en,tn){this.raw=en,this.length=en.length,this.platformID=tn.platformID,this.encodingID=tn.encodingID,this.languageID=tn.languageID},mc=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return oe(e,ac),e.prototype.tag="name",e.prototype.parse=function(en){var tn,nn,rn,an,sn,cn,An,dn,un,pn,hn;for(en.pos=this.offset,en.readShort(),tn=en.readShort(),cn=en.readShort(),nn=[],an=0;0<=tn?an<tn:an>tn;an=0<=tn?++an:--an)nn.push({platformID:en.readShort(),encodingID:en.readShort(),languageID:en.readShort(),nameID:en.readShort(),length:en.readShort(),offset:this.offset+cn+en.readShort()});for(An={},an=un=0,pn=nn.length;un<pn;an=++un)rn=nn[an],en.pos=rn.offset,dn=en.readString(rn.length),sn=new de(dn,rn),null==An[hn=rn.nameID]&&(An[hn]=[]),An[rn.nameID].push(sn);this.strings=An,this.copyright=An[0],this.fontFamily=An[1],this.fontSubfamily=An[2],this.uniqueSubfamily=An[3],this.fontName=An[4],this.version=An[5];try{this.postscriptName=An[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(en){this.postscriptName=An[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=An[7],this.manufacturer=An[8],this.designer=An[9],this.description=An[10],this.vendorUrl=An[11],this.designerUrl=An[12],this.license=An[13],this.licenseUrl=An[14],this.preferredFamily=An[15],this.preferredSubfamily=An[17],this.compatibleFull=An[18],this.sampleText=An[19]},e}(),fc=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return oe(e,ac),e.prototype.tag="maxp",e.prototype.parse=function(en){return en.pos=this.offset,this.version=en.readInt(),this.numGlyphs=en.readUInt16(),this.maxPoints=en.readUInt16(),this.maxContours=en.readUInt16(),this.maxCompositePoints=en.readUInt16(),this.maxComponentContours=en.readUInt16(),this.maxZones=en.readUInt16(),this.maxTwilightPoints=en.readUInt16(),this.maxStorage=en.readUInt16(),this.maxFunctionDefs=en.readUInt16(),this.maxInstructionDefs=en.readUInt16(),this.maxStackElements=en.readUInt16(),this.maxSizeOfInstructions=en.readUInt16(),this.maxComponentElements=en.readUInt16(),this.maxComponentDepth=en.readUInt16()},e}(),yc=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return oe(e,ac),e.prototype.tag="hmtx",e.prototype.parse=function(en){var tn,nn,rn,an,sn,cn,An;for(en.pos=this.offset,this.metrics=[],tn=0,cn=this.file.hhea.numberOfMetrics;0<=cn?tn<cn:tn>cn;tn=0<=cn?++tn:--tn)this.metrics.push({advance:en.readUInt16(),lsb:en.readInt16()});for(rn=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var nn,an;for(an=[],tn=nn=0;0<=rn?nn<rn:nn>rn;tn=0<=rn?++nn:--nn)an.push(en.readInt16());return an}(),this.widths=function(){var en,tn,nn,rn;for(rn=[],en=0,tn=(nn=this.metrics).length;en<tn;en++)an=nn[en],rn.push(an.advance);return rn}.call(this),nn=this.widths[this.widths.length-1],An=[],tn=sn=0;0<=rn?sn<rn:sn>rn;tn=0<=rn?++sn:--sn)An.push(this.widths.push(nn));return An},e.prototype.forGlyph=function(en){return en in this.metrics?this.metrics[en]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[en-this.metrics.length]}},e}(),bc=[].slice,vc=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return oe(e,ac),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(en){var tn,nn,rn,an,sn,cn,An,dn,un,pn;return en in this.cache?this.cache[en]:(an=this.file.loca,tn=this.file.contents,nn=an.indexOf(en),0===(rn=an.lengthOf(en))?this.cache[en]=null:(tn.pos=this.offset+nn,sn=(cn=new sc(tn.read(rn))).readShort(),dn=cn.readShort(),pn=cn.readShort(),An=cn.readShort(),un=cn.readShort(),this.cache[en]=-1===sn?new xc(cn,dn,pn,An,un):new wc(cn,sn,dn,pn,An,un),this.cache[en]))},e.prototype.encode=function(en,tn,nn){var rn,an,sn,cn,An;for(sn=[],an=[],cn=0,An=tn.length;cn<An;cn++)rn=en[tn[cn]],an.push(sn.length),rn&&(sn=sn.concat(rn.encode(nn)));return an.push(sn.length),{table:sn,offsets:an}},e}(),wc=function(){function t(en,tn,nn,rn,an,sn){this.raw=en,this.numberOfContours=tn,this.xMin=nn,this.yMin=rn,this.xMax=an,this.yMax=sn,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),xc=function(){function t(en,tn,nn,rn,an){var sn,cn;for(this.raw=en,this.xMin=tn,this.yMin=nn,this.xMax=rn,this.yMax=an,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],sn=this.raw;cn=sn.readShort(),this.glyphOffsets.push(sn.pos),this.glyphIDs.push(sn.readUInt16()),32&cn;)sn.pos+=1&cn?4:2,128&cn?sn.pos+=8:64&cn?sn.pos+=4:8&cn&&(sn.pos+=2)}return t.prototype.encode=function(){var en,tn,nn;for(tn=new sc(bc.call(this.raw.data)),en=0,nn=this.glyphIDs.length;en<nn;++en)tn.pos=this.glyphOffsets[en];return tn.data},t}(),kc=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return oe(e,ac),e.prototype.tag="loca",e.prototype.parse=function(en){var tn,nn;return en.pos=this.offset,tn=this.file.head.indexToLocFormat,this.offsets=0===tn?function(){var tn,rn;for(rn=[],nn=0,tn=this.length;nn<tn;nn+=2)rn.push(2*en.readUInt16());return rn}.call(this):function(){var tn,rn;for(rn=[],nn=0,tn=this.length;nn<tn;nn+=4)rn.push(en.readUInt32());return rn}.call(this)},e.prototype.indexOf=function(en){return this.offsets[en]},e.prototype.lengthOf=function(en){return this.offsets[en+1]-this.offsets[en]},e.prototype.encode=function(en,tn){for(var nn=new Uint32Array(this.offsets.length),rn=0,an=0,sn=0;sn<nn.length;++sn)if(nn[sn]=rn,an<tn.length&&tn[an]==sn){++an,nn[sn]=rn;var cn=this.offsets[sn],An=this.offsets[sn+1]-cn;An>0&&(rn+=An)}for(var dn=new Array(4*nn.length),un=0;un<nn.length;++un)dn[4*un+3]=255&nn[un],dn[4*un+2]=(65280&nn[un])>>8,dn[4*un+1]=(16711680&nn[un])>>16,dn[4*un]=(4278190080&nn[un])>>24;return dn},e}(),Cc=function(){function t(en){this.font=en,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var en,tn,nn,rn,an;for(tn in rn=this.font.cmap.tables[0].codeMap,en={},an=this.subset)nn=an[tn],en[tn]=rn[nn];return en},t.prototype.glyphsFor=function(en){var tn,nn,rn,an,sn,cn,An;for(rn={},sn=0,cn=en.length;sn<cn;sn++)rn[an=en[sn]]=this.font.glyf.glyphFor(an);for(an in tn=[],rn)(null!=(nn=rn[an])?nn.compound:void 0)&&tn.push.apply(tn,nn.glyphIDs);if(tn.length>0)for(an in An=this.glyphsFor(tn))nn=An[an],rn[an]=nn;return rn},t.prototype.encode=function(en,tn){var nn,rn,an,sn,cn,An,dn,un,pn,hn,gn,_n,mn,fn,yn;for(rn in nn=pc.encode(this.generateCmap(),"unicode"),sn=this.glyphsFor(en),gn={0:0},yn=nn.charMap)gn[(An=yn[rn]).old]=An.new;for(_n in hn=nn.maxGlyphID,sn)_n in gn||(gn[_n]=hn++);return un=function(en){var tn,nn;for(tn in nn={},en)nn[en[tn]]=tn;return nn}(gn),pn=Object.keys(un).sort((function(en,tn){return en-tn})),mn=function(){var en,tn,nn;for(nn=[],en=0,tn=pn.length;en<tn;en++)cn=pn[en],nn.push(un[cn]);return nn}(),an=this.font.glyf.encode(sn,mn,gn),dn=this.font.loca.encode(an.offsets,mn),fn={cmap:this.font.cmap.raw(),glyf:an.table,loca:dn,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(tn)},this.font.os2.exists&&(fn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(fn)},t}();E.API.PDFObject=function(){var en;function e(){}return en=function(en,tn){return(Array(tn+1).join("0")+en).slice(-tn)},e.convert=function(tn){var nn,rn,an,sn;if(Array.isArray(tn))return"["+function(){var en,rn,an;for(an=[],en=0,rn=tn.length;en<rn;en++)nn=tn[en],an.push(e.convert(nn));return an}().join(" ")+"]";if("string"==typeof tn)return"/"+tn;if(null!=tn?tn.isString:void 0)return"("+tn+")";if(tn instanceof Date)return"(D:"+en(tn.getUTCFullYear(),4)+en(tn.getUTCMonth(),2)+en(tn.getUTCDate(),2)+en(tn.getUTCHours(),2)+en(tn.getUTCMinutes(),2)+en(tn.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(tn)){for(rn in an=["<<"],tn)sn=tn[rn],an.push("/"+rn+" "+e.convert(sn));return an.push(">>"),an.join("\n")}return""+tn},e}();var Sc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Bc={}.hasOwnProperty,Ec=/[ -,\.\/:-@\[-\^`\{-~]/,jc=/[ -,\.\/:-@\[\]\^`\{-~]/,Lc=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Pc=function cssesc(en,tn){"single"!=(tn=function merge(en,tn){if(!en)return tn;var nn={};for(var rn in tn)nn[rn]=Bc.call(en,rn)?en[rn]:tn[rn];return nn}(tn,cssesc.options)).quotes&&"double"!=tn.quotes&&(tn.quotes="single");for(var nn="double"==tn.quotes?'"':"'",rn=tn.isIdentifier,an=en.charAt(0),sn="",cn=0,An=en.length;cn<An;){var dn=en.charAt(cn++),un=dn.charCodeAt(),pn=void 0;if(un<32||un>126){if(un>=55296&&un<=56319&&cn<An){var hn=en.charCodeAt(cn++);56320==(64512&hn)?un=((1023&un)<<10)+(1023&hn)+65536:cn--}pn="\\"+un.toString(16).toUpperCase()+" "}else pn=tn.escapeEverything?Ec.test(dn)?"\\"+dn:"\\"+un.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(dn)?"\\"+un.toString(16).toUpperCase()+" ":"\\"==dn||!rn&&('"'==dn&&nn==dn||"'"==dn&&nn==dn)||rn&&jc.test(dn)?"\\"+dn:dn;sn+=pn}return rn&&(/^-[-\d]/.test(sn)?sn="\\-"+sn.slice(1):/\d/.test(an)&&(sn="\\3"+an+" "+sn.slice(1))),sn=sn.replace(Lc,(function(en,tn,nn){return tn&&tn.length%2?en:(tn||"")+nn})),!rn&&tn.wrap?nn+sn+nn:sn};/*! https://mths.be/cssesc v3.0.0 by @mathias */Pc.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},Pc.version="3.0.0";var Tc=Pc,Fc=/[a-z0-9_-]/i,Uc=/[\s\t]/,Nc={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},Ic=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isDigit(en){return en>=48&&en<=57}function State(en){this.index=0,this.path=en,this.max=en.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(en){for(;en.index<en.max&&(10===(tn=en.path.charCodeAt(en.index))||13===tn||8232===tn||8233===tn||32===tn||9===tn||11===tn||12===tn||160===tn||tn>=5760&&Ic.indexOf(tn)>=0);)en.index++;var tn}function scanFlag(en){var tn=en.path.charCodeAt(en.index);return 48===tn?(en.param=0,void en.index++):49===tn?(en.param=1,void en.index++):void(en.err="SvgPath: arc flag can be 0 or 1 only (at pos "+en.index+")")}function scanParam(en){var tn,nn=en.index,rn=nn,an=en.max,sn=!1,cn=!1,An=!1,dn=!1;if(rn>=an)en.err="SvgPath: missed param (at pos "+rn+")";else if(43!==(tn=en.path.charCodeAt(rn))&&45!==tn||(tn=++rn<an?en.path.charCodeAt(rn):0),isDigit(tn)||46===tn){if(46!==tn){if(sn=48===tn,tn=++rn<an?en.path.charCodeAt(rn):0,sn&&rn<an&&tn&&isDigit(tn))return void(en.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+nn+")");for(;rn<an&&isDigit(en.path.charCodeAt(rn));)rn++,cn=!0;tn=rn<an?en.path.charCodeAt(rn):0}if(46===tn){for(dn=!0,rn++;isDigit(en.path.charCodeAt(rn));)rn++,An=!0;tn=rn<an?en.path.charCodeAt(rn):0}if(101===tn||69===tn){if(dn&&!cn&&!An)return void(en.err="SvgPath: invalid float exponent (at pos "+rn+")");if(43!==(tn=++rn<an?en.path.charCodeAt(rn):0)&&45!==tn||rn++,!(rn<an&&isDigit(en.path.charCodeAt(rn))))return void(en.err="SvgPath: invalid float exponent (at pos "+rn+")");for(;rn<an&&isDigit(en.path.charCodeAt(rn));)rn++}en.index=rn,en.param=parseFloat(en.path.slice(nn,rn))+0}else en.err="SvgPath: param should start with 0..9 or `.` (at pos "+rn+")"}function finalizeSegment(en){var tn,nn;nn=(tn=en.path[en.segmentStart]).toLowerCase();var rn=en.data;if("m"===nn&&rn.length>2&&(en.result.push([tn,rn[0],rn[1]]),rn=rn.slice(2),nn="l",tn="m"===tn?"l":"L"),"r"===nn)en.result.push([tn].concat(rn));else for(;rn.length>=Nc[nn]&&(en.result.push([tn].concat(rn.splice(0,Nc[nn]))),Nc[nn]););}function scanSegment(en){var tn,nn,rn,an,sn,cn=en.max;if(en.segmentStart=en.index,nn=function isArc(en){return 97==(32|en)}(tn=en.path.charCodeAt(en.index)),function isCommand(en){switch(32|en){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}(tn))if(an=Nc[en.path[en.index].toLowerCase()],en.index++,skipSpaces(en),en.data=[],an){for(rn=!1;;){for(sn=an;sn>0;sn--){if(!nn||3!==sn&&4!==sn?scanParam(en):scanFlag(en),en.err.length)return;en.data.push(en.param),skipSpaces(en),rn=!1,en.index<cn&&44===en.path.charCodeAt(en.index)&&(en.index++,skipSpaces(en),rn=!0)}if(!rn){if(en.index>=en.max)break;if(!((An=en.path.charCodeAt(en.index))>=48&&An<=57||43===An||45===An||46===An))break}}var An;finalizeSegment(en)}else finalizeSegment(en);else en.err="SvgPath: bad command "+en.path[en.index]+" (at pos "+en.index+")"}function Matrix$2(){if(!(this instanceof Matrix$2))return new Matrix$2;this.queue=[],this.cache=null}Matrix$2.prototype.matrix=function(en){return 1===en[0]&&0===en[1]&&0===en[2]&&1===en[3]&&0===en[4]&&0===en[5]||(this.cache=null,this.queue.push(en)),this},Matrix$2.prototype.translate=function(en,tn){return 0===en&&0===tn||(this.cache=null,this.queue.push([1,0,0,1,en,tn])),this},Matrix$2.prototype.scale=function(en,tn){return 1===en&&1===tn||(this.cache=null,this.queue.push([en,0,0,tn,0,0])),this},Matrix$2.prototype.rotate=function(en,tn,nn){var rn,an,sn;return 0!==en&&(this.translate(tn,nn),rn=en*Math.PI/180,an=Math.cos(rn),sn=Math.sin(rn),this.queue.push([an,sn,-sn,an,0,0]),this.cache=null,this.translate(-tn,-nn)),this},Matrix$2.prototype.skewX=function(en){return 0!==en&&(this.cache=null,this.queue.push([1,0,Math.tan(en*Math.PI/180),1,0,0])),this},Matrix$2.prototype.skewY=function(en){return 0!==en&&(this.cache=null,this.queue.push([1,Math.tan(en*Math.PI/180),0,1,0,0])),this},Matrix$2.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],1===this.queue.length)return this.cache;for(var en=1;en<this.queue.length;en++)this.cache=(tn=this.cache,nn=this.queue[en],[tn[0]*nn[0]+tn[2]*nn[1],tn[1]*nn[0]+tn[3]*nn[1],tn[0]*nn[2]+tn[2]*nn[3],tn[1]*nn[2]+tn[3]*nn[3],tn[0]*nn[4]+tn[2]*nn[5]+tn[4],tn[1]*nn[4]+tn[3]*nn[5]+tn[5]]);var tn,nn;return this.cache},Matrix$2.prototype.calc=function(en,tn,nn){var rn;return this.queue.length?(this.cache||(this.cache=this.toArray()),[en*(rn=this.cache)[0]+tn*rn[2]+(nn?0:rn[4]),en*rn[1]+tn*rn[3]+(nn?0:rn[5])]):[en,tn]};var Mc=Matrix$2,Rc=Mc,Oc={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},Qc=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,qc=/[\s,]+/,Vc=2*Math.PI;function unit_vector_angle(en,tn,nn,rn){var an=en*nn+tn*rn;return an>1&&(an=1),an<-1&&(an=-1),(en*rn-tn*nn<0?-1:1)*Math.acos(an)}function approximate_unit_arc(en,tn){var nn=4/3*Math.tan(tn/4),rn=Math.cos(en),an=Math.sin(en),sn=Math.cos(en+tn),cn=Math.sin(en+tn);return[rn,an,rn-an*nn,an+rn*nn,sn+cn*nn,cn-sn*nn,sn,cn]}var Gc=Math.PI/180;function Ellipse$1(en,tn,nn){if(!(this instanceof Ellipse$1))return new Ellipse$1(en,tn,nn);this.rx=en,this.ry=tn,this.ax=nn}Ellipse$1.prototype.transform=function(en){var tn=Math.cos(this.ax*Gc),nn=Math.sin(this.ax*Gc),rn=[this.rx*(en[0]*tn+en[2]*nn),this.rx*(en[1]*tn+en[3]*nn),this.ry*(-en[0]*nn+en[2]*tn),this.ry*(-en[1]*nn+en[3]*tn)],an=rn[0]*rn[0]+rn[2]*rn[2],sn=rn[1]*rn[1]+rn[3]*rn[3],cn=((rn[0]-rn[3])*(rn[0]-rn[3])+(rn[2]+rn[1])*(rn[2]+rn[1]))*((rn[0]+rn[3])*(rn[0]+rn[3])+(rn[2]-rn[1])*(rn[2]-rn[1])),An=(an+sn)/2;if(cn<1e-10*An)return this.rx=this.ry=Math.sqrt(An),this.ax=0,this;var dn=rn[0]*rn[1]+rn[2]*rn[3],un=An+(cn=Math.sqrt(cn))/2,pn=An-cn/2;return this.ax=Math.abs(dn)<1e-10&&Math.abs(un-sn)<1e-10?90:180*Math.atan(Math.abs(dn)>Math.abs(un-sn)?(un-an)/dn:dn/(un-sn))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(un),this.ry=Math.sqrt(pn)):(this.ax+=90,this.rx=Math.sqrt(pn),this.ry=Math.sqrt(un)),this},Ellipse$1.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx};var Dc=Mc,Hc=Ellipse$1;function SvgPath(en){if(!(this instanceof SvgPath))return new SvgPath(en);var tn=function pathParse(en){var tn=new State(en),nn=tn.max;for(skipSpaces(tn);tn.index<nn&&!tn.err.length;)scanSegment(tn);return tn.err.length?tn.result=[]:tn.result.length&&("mM".indexOf(tn.result[0][0])<0?(tn.err="SvgPath: string should start with `M` or `m`",tn.result=[]):tn.result[0][0]="M"),{err:tn.err,segments:tn.result}}(en);this.segments=tn.segments,this.err=tn.err,this.__stack=[]}SvgPath.from=function(en){if("string"==typeof en)return new SvgPath(en);if(en instanceof SvgPath){var tn=new SvgPath("");return tn.err=en.err,tn.segments=en.segments.map((function(en){return en.slice()})),tn.__stack=en.__stack.map((function(en){return Dc().matrix(en.toArray())})),tn}throw new Error("SvgPath.from: invalid param type "+en)},SvgPath.prototype.__matrix=function(en){var tn,nn=this;en.queue.length&&this.iterate((function(rn,an,sn,cn){var An,dn,un,pn;switch(rn[0]){case"v":dn=0===(An=en.calc(0,rn[1],!0))[0]?["v",An[1]]:["l",An[0],An[1]];break;case"V":dn=(An=en.calc(sn,rn[1],!1))[0]===en.calc(sn,cn,!1)[0]?["V",An[1]]:["L",An[0],An[1]];break;case"h":dn=0===(An=en.calc(rn[1],0,!0))[1]?["h",An[0]]:["l",An[0],An[1]];break;case"H":dn=(An=en.calc(rn[1],cn,!1))[1]===en.calc(sn,cn,!1)[1]?["H",An[0]]:["L",An[0],An[1]];break;case"a":case"A":var hn=en.toArray(),gn=Hc(rn[1],rn[2],rn[3]).transform(hn);if(hn[0]*hn[3]-hn[1]*hn[2]<0&&(rn[5]=rn[5]?"0":"1"),An=en.calc(rn[6],rn[7],"a"===rn[0]),"A"===rn[0]&&rn[6]===sn&&rn[7]===cn||"a"===rn[0]&&0===rn[6]&&0===rn[7]){dn=["a"===rn[0]?"l":"L",An[0],An[1]];break}dn=gn.isDegenerate()?["a"===rn[0]?"l":"L",An[0],An[1]]:[rn[0],gn.rx,gn.ry,gn.ax,rn[4],rn[5],An[0],An[1]];break;case"m":pn=an>0,dn=["m",(An=en.calc(rn[1],rn[2],pn))[0],An[1]];break;default:for(dn=[un=rn[0]],pn=un.toLowerCase()===un,tn=1;tn<rn.length;tn+=2)An=en.calc(rn[tn],rn[tn+1],pn),dn.push(An[0],An[1])}nn.segments[an]=dn}),!0)},SvgPath.prototype.__evaluateStack=function(){var en,tn;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(en=Dc(),tn=this.__stack.length;--tn>=0;)en.matrix(this.__stack[tn].toArray());this.__matrix(en),this.__stack=[]}},SvgPath.prototype.toString=function(){var en,tn,nn=[];this.__evaluateStack();for(var rn=0;rn<this.segments.length;rn++)tn=this.segments[rn][0],en=rn>0&&"m"!==tn&&"M"!==tn&&tn===this.segments[rn-1][0],nn=nn.concat(en?this.segments[rn].slice(1):this.segments[rn]);return nn.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},SvgPath.prototype.translate=function(en,tn){return this.__stack.push(Dc().translate(en,tn||0)),this},SvgPath.prototype.scale=function(en,tn){return this.__stack.push(Dc().scale(en,tn||0===tn?tn:en)),this},SvgPath.prototype.rotate=function(en,tn,nn){return this.__stack.push(Dc().rotate(en,tn||0,nn||0)),this},SvgPath.prototype.skewX=function(en){return this.__stack.push(Dc().skewX(en)),this},SvgPath.prototype.skewY=function(en){return this.__stack.push(Dc().skewY(en)),this},SvgPath.prototype.matrix=function(en){return this.__stack.push(Dc().matrix(en)),this},SvgPath.prototype.transform=function(en){return en.trim()?(this.__stack.push(function transformParse(en){var tn,nn,rn=new Rc;return en.split(Qc).forEach((function(en){if(en.length)if(void 0===Oc[en])switch(nn=en.split(qc).map((function(en){return+en||0})),tn){case"matrix":return void(6===nn.length&&rn.matrix(nn));case"scale":return void(1===nn.length?rn.scale(nn[0],nn[0]):2===nn.length&&rn.scale(nn[0],nn[1]));case"rotate":return void(1===nn.length?rn.rotate(nn[0],0,0):3===nn.length&&rn.rotate(nn[0],nn[1],nn[2]));case"translate":return void(1===nn.length?rn.translate(nn[0],0):2===nn.length&&rn.translate(nn[0],nn[1]));case"skewX":return void(1===nn.length&&rn.skewX(nn[0]));case"skewY":return void(1===nn.length&&rn.skewY(nn[0]))}else tn=en})),rn}(en)),this):this},SvgPath.prototype.round=function(en){var tn,nn=0,rn=0,an=0,sn=0;return en=en||0,this.__evaluateStack(),this.segments.forEach((function(cn){var An=cn[0].toLowerCase()===cn[0];switch(cn[0]){case"H":case"h":return An&&(cn[1]+=an),an=cn[1]-cn[1].toFixed(en),void(cn[1]=+cn[1].toFixed(en));case"V":case"v":return An&&(cn[1]+=sn),sn=cn[1]-cn[1].toFixed(en),void(cn[1]=+cn[1].toFixed(en));case"Z":case"z":return an=nn,void(sn=rn);case"M":case"m":return An&&(cn[1]+=an,cn[2]+=sn),an=cn[1]-cn[1].toFixed(en),sn=cn[2]-cn[2].toFixed(en),nn=an,rn=sn,cn[1]=+cn[1].toFixed(en),void(cn[2]=+cn[2].toFixed(en));case"A":case"a":return An&&(cn[6]+=an,cn[7]+=sn),an=cn[6]-cn[6].toFixed(en),sn=cn[7]-cn[7].toFixed(en),cn[1]=+cn[1].toFixed(en),cn[2]=+cn[2].toFixed(en),cn[3]=+cn[3].toFixed(en+2),cn[6]=+cn[6].toFixed(en),void(cn[7]=+cn[7].toFixed(en));default:return tn=cn.length,An&&(cn[tn-2]+=an,cn[tn-1]+=sn),an=cn[tn-2]-cn[tn-2].toFixed(en),sn=cn[tn-1]-cn[tn-1].toFixed(en),void cn.forEach((function(tn,nn){nn&&(cn[nn]=+cn[nn].toFixed(en))}))}})),this},SvgPath.prototype.iterate=function(en,tn){var nn,rn,an,sn=this.segments,cn={},An=!1,dn=0,un=0,pn=0,hn=0;if(tn||this.__evaluateStack(),sn.forEach((function(tn,nn){var rn=en(tn,nn,dn,un);Array.isArray(rn)&&(cn[nn]=rn,An=!0);var an=tn[0]===tn[0].toLowerCase();switch(tn[0]){case"m":case"M":return dn=tn[1]+(an?dn:0),un=tn[2]+(an?un:0),pn=dn,void(hn=un);case"h":case"H":return void(dn=tn[1]+(an?dn:0));case"v":case"V":return void(un=tn[1]+(an?un:0));case"z":case"Z":return dn=pn,void(un=hn);default:dn=tn[tn.length-2]+(an?dn:0),un=tn[tn.length-1]+(an?un:0)}})),!An)return this;for(an=[],nn=0;nn<sn.length;nn++)if(void 0!==cn[nn])for(rn=0;rn<cn[nn].length;rn++)an.push(cn[nn][rn]);else an.push(sn[nn]);return this.segments=an,this},SvgPath.prototype.abs=function(){return this.iterate((function(en,tn,nn,rn){var an,sn=en[0],cn=sn.toUpperCase();if(sn!==cn)switch(en[0]=cn,sn){case"v":return void(en[1]+=rn);case"a":return en[6]+=nn,void(en[7]+=rn);default:for(an=1;an<en.length;an++)en[an]+=an%2?nn:rn}}),!0),this},SvgPath.prototype.rel=function(){return this.iterate((function(en,tn,nn,rn){var an,sn=en[0],cn=sn.toLowerCase();if(sn!==cn&&(0!==tn||"M"!==sn))switch(en[0]=cn,sn){case"V":return void(en[1]-=rn);case"A":return en[6]-=nn,void(en[7]-=rn);default:for(an=1;an<en.length;an++)en[an]-=an%2?nn:rn}}),!0),this},SvgPath.prototype.unarc=function(){return this.iterate((function(en,tn,nn,rn){var an,sn,cn,An=[],dn=en[0];return"A"!==dn&&"a"!==dn?null:("a"===dn?(sn=nn+en[6],cn=rn+en[7]):(sn=en[6],cn=en[7]),0===(an=function a2c(en,tn,nn,rn,an,sn,cn,An,dn){var un=Math.sin(dn*Vc/360),pn=Math.cos(dn*Vc/360),hn=pn*(en-nn)/2+un*(tn-rn)/2,gn=-un*(en-nn)/2+pn*(tn-rn)/2;if(0===hn&&0===gn)return[];if(0===cn||0===An)return[];cn=Math.abs(cn),An=Math.abs(An);var _n=hn*hn/(cn*cn)+gn*gn/(An*An);_n>1&&(cn*=Math.sqrt(_n),An*=Math.sqrt(_n));var mn=function get_arc_center(en,tn,nn,rn,an,sn,cn,An,dn,un){var pn=un*(en-nn)/2+dn*(tn-rn)/2,hn=-dn*(en-nn)/2+un*(tn-rn)/2,gn=cn*cn,_n=An*An,mn=pn*pn,fn=hn*hn,yn=gn*_n-gn*fn-_n*mn;yn<0&&(yn=0),yn/=gn*fn+_n*mn;var bn=(yn=Math.sqrt(yn)*(an===sn?-1:1))*cn/An*hn,vn=yn*-An/cn*pn,wn=un*bn-dn*vn+(en+nn)/2,xn=dn*bn+un*vn+(tn+rn)/2,kn=(pn-bn)/cn,Cn=(hn-vn)/An,Sn=(-pn-bn)/cn,Bn=(-hn-vn)/An,En=unit_vector_angle(1,0,kn,Cn),jn=unit_vector_angle(kn,Cn,Sn,Bn);return 0===sn&&jn>0&&(jn-=Vc),1===sn&&jn<0&&(jn+=Vc),[wn,xn,En,jn]}(en,tn,nn,rn,an,sn,cn,An,un,pn),fn=[],yn=mn[2],bn=mn[3],vn=Math.max(Math.ceil(Math.abs(bn)/(Vc/4)),1);bn/=vn;for(var wn=0;wn<vn;wn++)fn.push(approximate_unit_arc(yn,bn)),yn+=bn;return fn.map((function(en){for(var tn=0;tn<en.length;tn+=2){var nn=en[tn+0],rn=en[tn+1],an=pn*(nn*=cn)-un*(rn*=An),sn=un*nn+pn*rn;en[tn+0]=an+mn[0],en[tn+1]=sn+mn[1]}return en}))}(nn,rn,sn,cn,en[4],en[5],en[1],en[2],en[3])).length?[["a"===en[0]?"l":"L",en[6],en[7]]]:(an.forEach((function(en){An.push(["C",en[2],en[3],en[4],en[5],en[6],en[7]])})),An))})),this},SvgPath.prototype.unshort=function(){var en,tn,nn,rn,an,sn=this.segments;return this.iterate((function(cn,An,dn,un){var pn,hn=cn[0],gn=hn.toUpperCase();An&&("T"===gn?(pn="t"===hn,"Q"===(nn=sn[An-1])[0]?(en=nn[1]-dn,tn=nn[2]-un):"q"===nn[0]?(en=nn[1]-nn[3],tn=nn[2]-nn[4]):(en=0,tn=0),rn=-en,an=-tn,pn||(rn+=dn,an+=un),sn[An]=[pn?"q":"Q",rn,an,cn[1],cn[2]]):"S"===gn&&(pn="s"===hn,"C"===(nn=sn[An-1])[0]?(en=nn[3]-dn,tn=nn[4]-un):"c"===nn[0]?(en=nn[3]-nn[5],tn=nn[4]-nn[6]):(en=0,tn=0),rn=-en,an=-tn,pn||(rn+=dn,an+=un),sn[An]=[pn?"c":"C",rn,an,cn[1],cn[2],cn[3],cn[4]]))})),this};var zc=SvgPath,calculateSingle=function(en){var tn,nn,rn=en,an={a:0,b:0,c:0},sn=[];return tn=function(tn,nn){var cn,An,dn,un,pn,hn;if(tn.test(rn))for(An=0,dn=(cn=rn.match(tn)).length;An<dn;An+=1)an[nn]+=1,un=cn[An],pn=rn.indexOf(un),hn=un.length,sn.push({selector:en.substr(pn,hn),type:nn,index:pn,length:hn}),rn=rn.replace(un,Array(hn+1).join(" "))},nn=function(en){var tn,nn,an,sn;if(en.test(rn))for(nn=0,an=(tn=rn.match(en)).length;nn<an;nn+=1)sn=tn[nn],rn=rn.replace(sn,Array(sn.length+1).join("A"))},nn(/\\[0-9A-Fa-f]{6}\s?/g),nn(/\\[0-9A-Fa-f]{1,5}\s/g),nn(/\\./g),function(){var en,tn,nn,an,sn=/{[^]*/gm;if(sn.test(rn))for(tn=0,nn=(en=rn.match(sn)).length;tn<nn;tn+=1)an=en[tn],rn=rn.replace(an,Array(an.length+1).join(" "))}(),tn(/(\[[^\]]+\])/g,"b"),tn(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),tn(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),tn(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),tn(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),tn(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),rn=(rn=(rn=(rn=(rn=(rn=rn.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),tn(/([^\s\+>~\.\[:]+)/g,"c"),sn.sort((function(en,tn){return en.index-tn.index})),{selector:en,specificity:"0,"+an.a.toString()+","+an.b.toString()+","+an.c.toString(),specificityArray:[0,an.a,an.b,an.c],parts:sn}},extendStatics=function(en,tn){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(en,tn){en.__proto__=tn}||function(en,tn){for(var nn in tn)tn.hasOwnProperty(nn)&&(en[nn]=tn[nn])},extendStatics(en,tn)};function __extends(en,tn){function __(){this.constructor=en}extendStatics(en,tn),en.prototype=null===tn?Object.create(tn):(__.prototype=tn.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(en){for(var tn,nn=1,rn=arguments.length;nn<rn;nn++)for(var an in tn=arguments[nn])Object.prototype.hasOwnProperty.call(tn,an)&&(en[an]=tn[an]);return en},__assign.apply(this,arguments)};function __awaiter(en,tn,nn,rn){return new(nn||(nn=Promise))((function(an,sn){function fulfilled(en){try{step(rn.next(en))}catch(en){sn(en)}}function rejected(en){try{step(rn.throw(en))}catch(en){sn(en)}}function step(en){en.done?an(en.value):function adopt(en){return en instanceof nn?en:new nn((function(tn){tn(en)}))}(en.value).then(fulfilled,rejected)}step((rn=rn.apply(en,tn||[])).next())}))}function __generator(en,tn){var nn,rn,an,sn,cn={label:0,sent:function(){if(1&an[0])throw an[1];return an[1]},trys:[],ops:[]};return sn={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(sn[Symbol.iterator]=function(){return this}),sn;function verb(sn){return function(An){return function step(sn){if(nn)throw new TypeError("Generator is already executing.");for(;cn;)try{if(nn=1,rn&&(an=2&sn[0]?rn.return:sn[0]?rn.throw||((an=rn.return)&&an.call(rn),0):rn.next)&&!(an=an.call(rn,sn[1])).done)return an;switch(rn=0,an&&(sn=[2&sn[0],an.value]),sn[0]){case 0:case 1:an=sn;break;case 4:return cn.label++,{value:sn[1],done:!1};case 5:cn.label++,rn=sn[1],sn=[0];continue;case 7:sn=cn.ops.pop(),cn.trys.pop();continue;default:if(!((an=(an=cn.trys).length>0&&an[an.length-1])||6!==sn[0]&&2!==sn[0])){cn=0;continue}if(3===sn[0]&&(!an||sn[1]>an[0]&&sn[1]<an[3])){cn.label=sn[1];break}if(6===sn[0]&&cn.label<an[1]){cn.label=an[1],an=sn;break}if(an&&cn.label<an[2]){cn.label=an[2],cn.ops.push(sn);break}an[2]&&cn.ops.pop(),cn.trys.pop();continue}sn=tn.call(en,cn)}catch(en){sn=[6,en],rn=0}finally{nn=an=0}if(5&sn[0])throw sn[1];return{value:sn[0]?sn[1]:void 0,done:!0}}([sn,An])}}}var Kc=function(){function RGBColor(en){if(this.a=void 0,this.r=0,this.g=0,this.b=0,this.simpleColors={},this.colorDefs=[],this.ok=!1,en){for(var tn in"#"==en.charAt(0)&&(en=en.substr(1,6)),en=(en=en.replace(/ /g,"")).toLowerCase(),this.simpleColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},this.simpleColors)en==tn&&(en=this.simpleColors[tn]);this.colorDefs=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(en){return[parseInt(en[1]),parseInt(en[2]),parseInt(en[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(en){return[parseInt(en[1],16),parseInt(en[2],16),parseInt(en[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(en){return[parseInt(en[1]+en[1],16),parseInt(en[2]+en[2],16),parseInt(en[3]+en[3],16)]}}];for(var nn=0;nn<this.colorDefs.length;nn++){var rn=this.colorDefs[nn].re,an=this.colorDefs[nn].process,sn=rn.exec(en);if(sn){var cn=an(sn);this.r=cn[0],this.g=cn[1],this.b=cn[2],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}}return RGBColor.prototype.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},RGBColor.prototype.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+(this.a||"1")+")"},RGBColor.prototype.toHex=function(){var en=this.r.toString(16),tn=this.g.toString(16),nn=this.b.toString(16);return 1==en.length&&(en="0"+en),1==tn.length&&(tn="0"+tn),1==nn.length&&(nn="0"+nn),"#"+en+tn+nn},RGBColor.prototype.getHelpXML=function(){for(var en=[],tn=0;tn<this.colorDefs.length;tn++)for(var nn=this.colorDefs[tn].example,rn=0;rn<nn.length;rn++)en[en.length]=nn[rn];for(var an in this.simpleColors)en[en.length]=an;var sn=document.createElement("ul");for(sn.setAttribute("id","rgbcolor-examples"),tn=0;tn<en.length;tn++)try{var cn=document.createElement("li"),An=new RGBColor(en[tn]),dn=document.createElement("div");dn.style.cssText="margin: 3px; border: 1px solid black; background:"+An.toHex()+"; color:"+An.toHex(),dn.appendChild(document.createTextNode("test"));var un=document.createTextNode(" "+en[tn]+" -> "+An.toRGB()+" -> "+An.toHex());cn.appendChild(dn),cn.appendChild(un),sn.appendChild(cn)}catch(en){}return sn},RGBColor}(),$c=function(){function ColorFill(en){this.color=en}return ColorFill.prototype.getFillData=function(en,tn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(en){return[2,void 0]}))}))},ColorFill}(),Wc=function(){function AttributeState(){this.xmlSpace="",this.fill=null,this.fillOpacity=1,this.fontFamily="",this.fontSize=16,this.fontStyle="",this.fontWeight="",this.opacity=1,this.stroke=null,this.strokeDasharray=null,this.strokeDashoffset=0,this.strokeLinecap="",this.strokeLinejoin="",this.strokeMiterlimit=4,this.strokeOpacity=1,this.strokeWidth=1,this.alignmentBaseline="",this.textAnchor="",this.visibility="",this.color=null}return AttributeState.prototype.clone=function(){var en=new AttributeState;return en.xmlSpace=this.xmlSpace,en.fill=this.fill,en.fillOpacity=this.fillOpacity,en.fontFamily=this.fontFamily,en.fontSize=this.fontSize,en.fontStyle=this.fontStyle,en.fontWeight=this.fontWeight,en.opacity=this.opacity,en.stroke=this.stroke,en.strokeDasharray=this.strokeDasharray,en.strokeDashoffset=this.strokeDashoffset,en.strokeLinecap=this.strokeLinecap,en.strokeLinejoin=this.strokeLinejoin,en.strokeMiterlimit=this.strokeMiterlimit,en.strokeOpacity=this.strokeOpacity,en.strokeWidth=this.strokeWidth,en.textAnchor=this.textAnchor,en.alignmentBaseline=this.alignmentBaseline,en.visibility=this.visibility,en.color=this.color,en},AttributeState.default=function(){var en=new AttributeState;return en.xmlSpace="default",en.fill=new $c(new Kc("rgb(0, 0, 0)")),en.fillOpacity=1,en.fontFamily="times",en.fontSize=16,en.fontStyle="normal",en.fontWeight="normal",en.opacity=1,en.stroke=null,en.strokeDasharray=null,en.strokeDashoffset=0,en.strokeLinecap="butt",en.strokeLinejoin="miter",en.strokeMiterlimit=4,en.strokeOpacity=1,en.strokeWidth=1,en.alignmentBaseline="baseline",en.textAnchor="start",en.visibility="visible",en.color=new Kc("rgb(0, 0, 0)"),en},AttributeState}(),Xc=/url\(["']?#([^"']+)["']?\)/,Yc={bottom:"bottom","text-bottom":"bottom",top:"top","text-top":"top",hanging:"hanging",middle:"middle",central:"middle",center:"middle",mathematical:"middle",ideographic:"ideographic",alphabetic:"alphabetic",baseline:"alphabetic"},Zc=function(){function TextMeasure(){this.measureMethods={}}return TextMeasure.prototype.getTextOffset=function(en,tn){var nn=tn.textAnchor;if("start"===nn)return 0;var rn=this.measureTextWidth(en,tn),an=0;switch(nn){case"end":an=rn;break;case"middle":an=rn/2}return an},TextMeasure.prototype.measureTextWidth=function(en,tn){if(0===en.length)return 0;var nn=tn.fontFamily;return this.getMeasureFunction(nn).call(this,en,tn.fontFamily,tn.fontSize+"px",tn.fontStyle,tn.fontWeight)},TextMeasure.prototype.getMeasurementTextNode=function(){if(!this.textMeasuringTextElement){this.textMeasuringTextElement=document.createElementNS("http://www.w3.org/2000/svg","text");var en=document.createElementNS("http://www.w3.org/2000/svg","svg");en.appendChild(this.textMeasuringTextElement),en.style.setProperty("position","absolute"),en.style.setProperty("visibility","hidden"),document.body.appendChild(en)}return this.textMeasuringTextElement},TextMeasure.prototype.canvasTextMeasure=function(en,tn,nn,rn,an){var sn=document.createElement("canvas").getContext("2d");return null!=sn?(sn.font=[rn,an,nn,tn].join(" "),sn.measureText(en).width):0},TextMeasure.prototype.svgTextMeasure=function(en,tn,nn,rn,an,sn){void 0===sn&&(sn=this.getMeasurementTextNode());var cn=sn;return cn.setAttribute("font-family",tn),cn.setAttribute("font-size",nn),cn.setAttribute("font-style",rn),cn.setAttribute("font-weight",an),cn.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),cn.textContent=en,cn.getBBox().width},TextMeasure.prototype.getMeasureFunction=function(en){var tn=this.measureMethods[en];if(!tn){var nn="16px",rn="normal",an="normal",sn=this.canvasTextMeasure(TextMeasure.testString,en,nn,rn,an),cn=this.svgTextMeasure(TextMeasure.testString,en,nn,rn,an);tn=Math.abs(sn-cn)<TextMeasure.epsilon?this.canvasTextMeasure:this.svgTextMeasure,this.measureMethods[en]=tn}return tn},TextMeasure.prototype.cleanupTextMeasuring=function(){if(this.textMeasuringTextElement){var en=this.textMeasuringTextElement.parentNode;en&&document.body.removeChild(en),this.textMeasuringTextElement=void 0}},TextMeasure.testString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789!\"$%&/()=?'\\+*-_.:,;^}][{#~|<>",TextMeasure.epsilon=.1,TextMeasure}(),Jc=function(){function Context(en,tn){var nn,rn,an,sn,cn,An;this.pdf=en,this.svg2pdfParameters=tn.svg2pdfParameters,this.attributeState=tn.attributeState?tn.attributeState.clone():Wc.default(),this.viewport=tn.viewport,this.refsHandler=null!==(nn=tn.refsHandler)&&void 0!==nn?nn:null,this.styleSheets=null!==(rn=tn.styleSheets)&&void 0!==rn?rn:null,this.textMeasure=null!==(an=tn.textMeasure)&&void 0!==an?an:new Zc,this.transform=null!==(sn=tn.transform)&&void 0!==sn?sn:this.pdf.unitMatrix,this.withinClipPath=null!==(cn=tn.withinClipPath)&&void 0!==cn&&cn,this.withinUse=null!==(An=tn.withinUse)&&void 0!==An&&An}return Context.prototype.clone=function(en){var tn,nn,rn,an,sn,cn,An,dn;return void 0===en&&(en={}),new Context(this.pdf,{svg2pdfParameters:null!==(tn=en.svg2pdfParameters)&&void 0!==tn?tn:this.svg2pdfParameters,attributeState:en.attributeState?en.attributeState.clone():this.attributeState.clone(),viewport:null!==(nn=en.viewport)&&void 0!==nn?nn:this.viewport,refsHandler:null!==(rn=en.refsHandler)&&void 0!==rn?rn:this.refsHandler,styleSheets:null!==(an=en.styleSheets)&&void 0!==an?an:this.styleSheets,textMeasure:null!==(sn=en.textMeasure)&&void 0!==sn?sn:this.textMeasure,transform:null!==(cn=en.transform)&&void 0!==cn?cn:this.transform,withinClipPath:null!==(An=en.withinClipPath)&&void 0!==An?An:this.withinClipPath,withinUse:null!==(dn=en.withinUse)&&void 0!==dn?dn:this.withinUse})},Context}(),eA=function(){function ReferencesHandler(en){this.renderedElements={},this.idMap=en,this.idPrefix=String(ReferencesHandler.instanceCounter++)}return ReferencesHandler.prototype.getRendered=function(en,tn,nn){return __awaiter(this,void 0,void 0,(function(){var rn,an;return __generator(this,(function(sn){switch(sn.label){case 0:return rn=this.generateKey(en,tn),this.renderedElements.hasOwnProperty(rn)?[2,this.renderedElements[en]]:(an=this.get(en),this.renderedElements[rn]=an,[4,nn(an)]);case 1:return sn.sent(),[2,an]}}))}))},ReferencesHandler.prototype.get=function(en){return this.idMap[Tc(en,{isIdentifier:!0})]},ReferencesHandler.prototype.generateKey=function(en,tn){return this.idPrefix+"|"+en+"|"+(tn||new Kc("rgb(0,0,0)")).toRGBA()},ReferencesHandler.instanceCounter=0,ReferencesHandler}();function getAngle(en,tn){return Math.atan2(tn[1]-en[1],tn[0]-en[0])}var tA=2/3;function toCubic(en,tn){return[tA*(tn[0]-en[0])+en[0],tA*(tn[1]-en[1])+en[1]]}function normalize$1(en){var tn=Math.sqrt(en[0]*en[0]+en[1]*en[1]);return[en[0]/tn,en[1]/tn]}function getDirectionVector(en,tn){return normalize$1([tn[0]-en[0],tn[1]-en[1]])}function addVectors(en,tn){return[en[0]+tn[0],en[1]+tn[1]]}function multVecMatrix(en,tn){var nn=en[0],rn=en[1];return[tn.a*nn+tn.c*rn+tn.e,tn.b*nn+tn.d*rn+tn.f]}var nA=function(){function Path(){this.segments=[]}return Path.prototype.moveTo=function(en,tn){return this.segments.push(new rA(en,tn)),this},Path.prototype.lineTo=function(en,tn){return this.segments.push(new oA(en,tn)),this},Path.prototype.curveTo=function(en,tn,nn,rn,an,sn){return this.segments.push(new iA(en,tn,nn,rn,an,sn)),this},Path.prototype.close=function(){return this.segments.push(new aA),this},Path.prototype.transform=function(en){this.segments.forEach((function(tn){if(tn instanceof rA||tn instanceof oA||tn instanceof iA){var nn=multVecMatrix([tn.x,tn.y],en);tn.x=nn[0],tn.y=nn[1]}if(tn instanceof iA){var rn=multVecMatrix([tn.x1,tn.y1],en),an=multVecMatrix([tn.x2,tn.y2],en);tn.x1=rn[0],tn.y1=rn[1],tn.x2=an[0],tn.y2=an[1]}}))},Path.prototype.draw=function(en){var tn=en.pdf;this.segments.forEach((function(en){en instanceof rA?tn.moveTo(en.x,en.y):en instanceof oA?tn.lineTo(en.x,en.y):en instanceof iA?tn.curveTo(en.x1,en.y1,en.x2,en.y2,en.x,en.y):tn.close()}))},Path}(),rA=function Ss(en,tn){this.x=en,this.y=tn},oA=function xs(en,tn){this.x=en,this.y=tn},iA=function Fs(en,tn,nn,rn,an,sn){this.x1=en,this.y1=tn,this.x2=nn,this.y2=rn,this.x=an,this.y=sn},aA=function Es(){};function nodeIs(en,tn){return tn.split(",").indexOf((en.nodeName||en.tagName).toLowerCase())>=0}function getAttribute(en,tn,nn,rn){var an;void 0===rn&&(rn=nn);var sn=null===(an=en.style)||void 0===an?void 0:an.getPropertyValue(rn);return sn||(tn.getPropertyValue(en,rn)||en.hasAttribute(nn)&&en.getAttribute(nn)||void 0)}function svgNodeIsVisible(en,tn,nn){if("none"===getAttribute(en.element,nn.styleSheets,"display"))return!1;var rn=tn,an=getAttribute(en.element,nn.styleSheets,"visibility");return an&&(rn="hidden"!==an),rn}function svgNodeAndChildrenVisible(en,tn,nn){var rn=svgNodeIsVisible(en,tn,nn);return 0!==en.element.childNodes.length&&(en.children.forEach((function(en){en.isVisible(rn,nn)&&(rn=!0)})),rn)}var sA=function(){function MarkerList(){this.markers=[]}return MarkerList.prototype.addMarker=function(en){this.markers.push(en)},MarkerList.prototype.draw=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,An;return __generator(this,(function(dn){switch(dn.label){case 0:tn=0,dn.label=1;case 1:return tn<this.markers.length?(nn=this.markers[tn],rn=void 0,an=nn.angle,sn=nn.anchor,cn=Math.cos(an),An=Math.sin(an),rn=en.pdf.Matrix(cn,An,-An,cn,sn[0],sn[1]),rn=en.pdf.matrixMult(en.pdf.Matrix(en.attributeState.strokeWidth,0,0,en.attributeState.strokeWidth,0,0),rn),rn=en.pdf.matrixMult(rn,en.transform),en.pdf.saveGraphicsState(),[4,en.refsHandler.getRendered(nn.id,null,(function(tn){return tn.apply(en)}))]):[3,4];case 2:dn.sent(),en.pdf.doFormObject(nn.id,rn),en.pdf.restoreGraphicsState(),dn.label=3;case 3:return tn++,[3,1];case 4:return[2]}}))}))},MarkerList}(),lA=function Us(en,tn,nn){this.id=en,this.anchor=tn,this.angle=nn};function toPixels(en,tn){var nn;return(nn=en&&en.toString().match(/^([\-0-9.]+)em$/))?parseFloat(nn[1])*tn:(nn=en&&en.toString().match(/^([\-0-9.]+)(px|)$/))?parseFloat(nn[1]):0}function mapAlignmentBaseline(en){return Yc[en]||"alphabetic"}function parseFloats(en){for(var tn,nn=[],rn=/[+-]?(?:(?:\d+\.?\d*)|(?:\d*\.?\d+))(?:[eE][+-]?\d+)?/g;tn=rn.exec(en);)nn.push(parseFloat(tn[0]));return nn}function parseColor(en,tn){if("transparent"===en){var nn=new Kc("rgb(0,0,0)");return nn.a=0,nn}if("currentcolor"===en.toLowerCase())return tn||new Kc("rgb(0,0,0)");var rn=/\s*rgba\(((?:[^,\)]*,){3}[^,\)]*)\)\s*/.exec(en);if(rn){var an=parseFloats(rn[1]),sn=new Kc("rgb("+an.slice(0,3).join(",")+")");return sn.a=an[3],sn}return new Kc(en)}var cA,AA={"sans-serif":"helvetica",verdana:"helvetica",arial:"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",serif:"times",cursive:"times",fantasy:"times"},dA=(cA=E.version.split("."),2===parseFloat(cA[0])&&3===parseFloat(cA[1]));function combineFontStyleAndFontWeight(en,tn){return dA?400==tn?"italic"==en?"italic":"normal":700==tn&&"italic"!==en?"bold":en+""+tn:400==tn||"normal"===tn?"italic"===en?"italic":"normal":700!=tn&&"bold"!==tn||"normal"!==en?(700==tn?"bold":tn)+""+en:"bold"}function getBoundingBoxByChildren(en,tn){if("none"===getAttribute(tn.element,en.styleSheets,"display"))return[0,0,0,0];var nn=[0,0,0,0];return tn.children.forEach((function(tn){var rn=tn.getBoundingBox(en);nn=[Math.min(nn[0],rn[0]),Math.min(nn[1],rn[1]),Math.max(nn[0]+nn[2],rn[0]+rn[2])-Math.min(nn[0],rn[0]),Math.max(nn[1]+nn[3],rn[1]+rn[3])-Math.min(nn[1],rn[1])]})),nn}function defaultBoundingBox(en,tn){var nn=parseFloat,rn=nn(en.getAttribute("x1"))||nn(getAttribute(en,tn.styleSheets,"x"))||nn(getAttribute(en,tn.styleSheets,"cx"))-nn(getAttribute(en,tn.styleSheets,"r"))||0,an=nn(en.getAttribute("x2"))||rn+nn(getAttribute(en,tn.styleSheets,"width"))||nn(getAttribute(en,tn.styleSheets,"cx"))+nn(getAttribute(en,tn.styleSheets,"r"))||0,sn=nn(en.getAttribute("y1"))||nn(getAttribute(en,tn.styleSheets,"y"))||nn(getAttribute(en,tn.styleSheets,"cy"))-nn(getAttribute(en,tn.styleSheets,"r"))||0,cn=nn(en.getAttribute("y2"))||sn+nn(getAttribute(en,tn.styleSheets,"height"))||nn(getAttribute(en,tn.styleSheets,"cy"))+nn(getAttribute(en,tn.styleSheets,"r"))||0;return[Math.min(rn,an),Math.min(sn,cn),Math.max(rn,an)-Math.min(rn,an),Math.max(sn,cn)-Math.min(sn,cn)]}function computeViewBoxTransform(en,tn,nn,rn,an,sn,cn,An){void 0===An&&(An=!1);var dn,un,pn=tn[0],hn=tn[1],gn=tn[2],_n=tn[3],mn=an/gn,fn=sn/_n,yn=en.getAttribute("preserveAspectRatio");if(yn){var bn=yn.split(" ");"defer"===bn[0]&&(bn=bn.slice(1)),dn=bn[0],un=bn[1]||"meet"}else dn="xMidYMid",un="meet";if("none"!==dn&&("meet"===un?mn=fn=Math.min(mn,fn):"slice"===un&&(mn=fn=Math.max(mn,fn))),An)return cn.pdf.Matrix(mn,0,0,fn,0,0);var vn=nn-pn*mn,wn=rn-hn*fn;dn.indexOf("xMid")>=0?vn+=(an-gn*mn)/2:dn.indexOf("xMax")>=0&&(vn+=an-gn*mn),dn.indexOf("YMid")>=0?wn+=(sn-_n*fn)/2:dn.indexOf("YMax")>=0&&(wn+=sn-_n*fn);var xn=cn.pdf.Matrix(1,0,0,1,vn,wn),kn=cn.pdf.Matrix(mn,0,0,fn,0,0);return cn.pdf.matrixMult(kn,xn)}function parseTransform$1(en,tn){if(!en||"none"===en)return tn.pdf.unitMatrix;for(var nn,rn,an=/^[\s,]*matrix\(([^)]+)\)\s*/,sn=/^[\s,]*translate\(([^)]+)\)\s*/,cn=/^[\s,]*rotate\(([^)]+)\)\s*/,An=/^[\s,]*scale\(([^)]+)\)\s*/,dn=/^[\s,]*skewX\(([^)]+)\)\s*/,un=/^[\s,]*skewY\(([^)]+)\)\s*/,pn=tn.pdf.unitMatrix;en.length>0&&en.length!==rn;){rn=en.length;var hn=an.exec(en);if(hn&&(nn=parseFloats(hn[1]),pn=tn.pdf.matrixMult(tn.pdf.Matrix(nn[0],nn[1],nn[2],nn[3],nn[4],nn[5]),pn),en=en.substr(hn[0].length)),hn=cn.exec(en)){nn=parseFloats(hn[1]);var gn=Math.PI*nn[0]/180;if(pn=tn.pdf.matrixMult(tn.pdf.Matrix(Math.cos(gn),Math.sin(gn),-Math.sin(gn),Math.cos(gn),0,0),pn),nn[1]||nn[2]){var _n=tn.pdf.Matrix(1,0,0,1,nn[1],nn[2]),mn=tn.pdf.Matrix(1,0,0,1,-nn[1],-nn[2]);pn=tn.pdf.matrixMult(mn,tn.pdf.matrixMult(pn,_n))}en=en.substr(hn[0].length)}(hn=sn.exec(en))&&(nn=parseFloats(hn[1]),pn=tn.pdf.matrixMult(tn.pdf.Matrix(1,0,0,1,nn[0],nn[1]||0),pn),en=en.substr(hn[0].length)),(hn=An.exec(en))&&((nn=parseFloats(hn[1]))[1]||(nn[1]=nn[0]),pn=tn.pdf.matrixMult(tn.pdf.Matrix(nn[0],0,0,nn[1],0,0),pn),en=en.substr(hn[0].length)),(hn=dn.exec(en))&&(nn=parseFloat(hn[1]),nn*=Math.PI/180,pn=tn.pdf.matrixMult(tn.pdf.Matrix(1,0,Math.tan(nn),1,0,0),pn),en=en.substr(hn[0].length)),(hn=un.exec(en))&&(nn=parseFloat(hn[1]),nn*=Math.PI/180,pn=tn.pdf.matrixMult(tn.pdf.Matrix(1,Math.tan(nn),0,1,0,0),pn),en=en.substr(hn[0].length))}return pn}var uA=function(){function SvgNode(en,tn){this.element=en,this.children=tn,this.parent=null}return SvgNode.prototype.setParent=function(en){this.parent=en},SvgNode.prototype.getParent=function(){return this.parent},SvgNode.prototype.getBoundingBox=function(en){return"none"===getAttribute(this.element,en.styleSheets,"display")?[0,0,0,0]:this.getBoundingBoxCore(en)},SvgNode.prototype.computeNodeTransform=function(en){var tn=this.computeNodeTransformCore(en),nn=getAttribute(this.element,en.styleSheets,"transform");return nn?en.pdf.matrixMult(tn,parseTransform$1(nn,en)):tn},SvgNode}(),pA=function(en){function NonRenderedNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(NonRenderedNode,en),NonRenderedNode.prototype.render=function(en){return Promise.resolve()},NonRenderedNode.prototype.getBoundingBoxCore=function(en){return[]},NonRenderedNode.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},NonRenderedNode}(uA),hA=function(en){function Gradient(tn,nn,rn){var an=en.call(this,nn,rn)||this;return an.pdfGradientType=tn,an.contextColor=void 0,an}return __extends(Gradient,en),Gradient.prototype.apply=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn;return __generator(this,(function(An){return(tn=this.element.getAttribute("id"))?(nn=this.getStops(en.styleSheets),rn=0,an=!1,nn.forEach((function(en){var tn=en.opacity;tn&&1!==tn&&(rn+=tn,an=!0)})),an&&(sn=new j({opacity:rn/nn.length})),cn=new B(this.pdfGradientType,this.getCoordinates(),nn,sn),en.pdf.addShadingPattern(tn,cn),[2]):[2]}))}))},Gradient.prototype.getStops=function(en){var tn=this;if(this.stops)return this.stops;if(void 0===this.contextColor){this.contextColor=null;for(var nn=this;nn;){var rn=getAttribute(nn.element,en,"color");if(rn){this.contextColor=parseColor(rn,null);break}nn=nn.getParent()}}var an=[];return this.children.forEach((function(nn){if("stop"===nn.element.tagName.toLowerCase()){var rn=getAttribute(nn.element,en,"color"),sn=parseColor(getAttribute(nn.element,en,"stop-color")||"",rn?parseColor(rn,null):tn.contextColor),cn=parseFloat(getAttribute(nn.element,en,"stop-opacity")||"1");an.push({offset:Gradient.parseGradientOffset(nn.element.getAttribute("offset")||"0"),color:[sn.r,sn.g,sn.b],opacity:cn})}})),this.stops=an},Gradient.prototype.getBoundingBoxCore=function(en){return defaultBoundingBox(this.element,en)},Gradient.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Gradient.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},Gradient.parseGradientOffset=function(en){var tn=parseFloat(en);return!isNaN(tn)&&en.indexOf("%")>=0?tn/100:tn},Gradient}(pA),gA=function(en){function LinearGradient(tn,nn){return en.call(this,"axial",tn,nn)||this}return __extends(LinearGradient,en),LinearGradient.prototype.getCoordinates=function(){return[parseFloat(this.element.getAttribute("x1")||"0"),parseFloat(this.element.getAttribute("y1")||"0"),parseFloat(this.element.getAttribute("x2")||"1"),parseFloat(this.element.getAttribute("y2")||"0")]},LinearGradient}(hA),_A=function(en){function RadialGradient(tn,nn){return en.call(this,"radial",tn,nn)||this}return __extends(RadialGradient,en),RadialGradient.prototype.getCoordinates=function(){var en=this.element.getAttribute("cx"),tn=this.element.getAttribute("cy"),nn=this.element.getAttribute("fx"),rn=this.element.getAttribute("fy");return[parseFloat(nn||en||"0.5"),parseFloat(rn||tn||"0.5"),0,parseFloat(en||"0.5"),parseFloat(tn||"0.5"),parseFloat(this.element.getAttribute("r")||"0.5")]},RadialGradient}(hA),mA=function(){function GradientFill(en,tn){this.key=en,this.gradient=tn}return GradientFill.prototype.getFillData=function(en,tn){return __awaiter(this,void 0,void 0,(function(){var nn,rn,an;return __generator(this,(function(sn){switch(sn.label){case 0:return[4,tn.refsHandler.getRendered(this.key,null,(function(en){return en.apply(new Jc(tn.pdf,{refsHandler:tn.refsHandler,textMeasure:tn.textMeasure,styleSheets:tn.styleSheets,viewport:tn.viewport,svg2pdfParameters:tn.svg2pdfParameters}))}))];case 1:return sn.sent(),this.gradient.element.hasAttribute("gradientUnits")&&"objectboundingbox"!==this.gradient.element.getAttribute("gradientUnits").toLowerCase()?nn=tn.pdf.unitMatrix:(rn=en.getBoundingBox(tn),nn=tn.pdf.Matrix(rn[2],0,0,rn[3],rn[0],rn[1])),an=parseTransform$1(getAttribute(this.gradient.element,tn.styleSheets,"gradientTransform","transform"),tn),[2,{key:this.key,matrix:tn.pdf.matrixMult(an,nn)}]}}))}))},GradientFill}(),fA=function(en){function Pattern(){return null!==en&&en.apply(this,arguments)||this}return __extends(Pattern,en),Pattern.prototype.apply=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn;return __generator(this,(function(cn){switch(cn.label){case 0:if(!(tn=this.element.getAttribute("id")))return[2];nn=this.getBoundingBox(en),rn=new M([nn[0],nn[1],nn[0]+nn[2],nn[1]+nn[3]],nn[2],nn[3]),en.pdf.beginTilingPattern(rn),an=0,sn=this.children,cn.label=1;case 1:return an<sn.length?[4,sn[an].render(new Jc(en.pdf,{attributeState:en.attributeState,refsHandler:en.refsHandler,styleSheets:en.styleSheets,viewport:en.viewport,svg2pdfParameters:en.svg2pdfParameters}))]:[3,4];case 2:cn.sent(),cn.label=3;case 3:return an++,[3,1];case 4:return en.pdf.endTilingPattern(tn,rn),[2]}}))}))},Pattern.prototype.getBoundingBoxCore=function(en){return defaultBoundingBox(this.element,en)},Pattern.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Pattern.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},Pattern}(pA),yA=function(){function PatternFill(en,tn){this.key=en,this.pattern=tn}return PatternFill.prototype.getFillData=function(en,tn){return __awaiter(this,void 0,void 0,(function(){var nn,rn,an,sn,cn,An,dn,un,pn,hn,gn,_n;return __generator(this,(function(mn){switch(mn.label){case 0:return[4,tn.refsHandler.getRendered(this.key,null,(function(en){return en.apply(new Jc(tn.pdf,{refsHandler:tn.refsHandler,textMeasure:tn.textMeasure,styleSheets:tn.styleSheets,viewport:tn.viewport,svg2pdfParameters:tn.svg2pdfParameters}))}))];case 1:return mn.sent(),nn={key:this.key,boundingBox:void 0,xStep:0,yStep:0,matrix:void 0},an=tn.pdf.unitMatrix,this.pattern.element.hasAttribute("patternUnits")&&"objectboundingbox"!==this.pattern.element.getAttribute("patternUnits").toLowerCase()||(rn=en.getBoundingBox(tn),an=tn.pdf.Matrix(1,0,0,1,rn[0],rn[1]),cn=this.pattern.getBoundingBox(tn),An=cn[0]*rn[0]||0,dn=cn[1]*rn[1]||0,un=cn[2]*rn[2]||0,pn=cn[3]*rn[3]||0,nn.boundingBox=[An,dn,An+un,dn+pn],nn.xStep=un,nn.yStep=pn),sn=tn.pdf.unitMatrix,this.pattern.element.hasAttribute("patternContentUnits")&&"objectboundingbox"===this.pattern.element.getAttribute("patternContentUnits").toLowerCase()&&(rn||(rn=en.getBoundingBox(tn)),sn=tn.pdf.Matrix(rn[2],0,0,rn[3],0,0),cn=nn.boundingBox||this.pattern.getBoundingBox(tn),An=cn[0]/rn[0]||0,dn=cn[1]/rn[1]||0,un=cn[2]/rn[2]||0,pn=cn[3]/rn[3]||0,nn.boundingBox=[An,dn,An+un,dn+pn],nn.xStep=un,nn.yStep=pn),hn=tn.pdf.unitMatrix,(gn=getAttribute(this.pattern.element,tn.styleSheets,"patternTransform","transform"))&&(hn=parseTransform$1(gn,tn)),_n=sn,_n=tn.pdf.matrixMult(_n,an),_n=tn.pdf.matrixMult(_n,hn),_n=tn.pdf.matrixMult(_n,tn.transform),nn.matrix=_n,[2,nn]}}))}))},PatternFill}();function parseAttributes(en,tn,nn){var rn=nn||tn.element,an=getAttribute(rn,en.styleSheets,"color");if(an){var sn=parseColor(an,en.attributeState.color);sn.ok?en.attributeState.color=sn:en.attributeState.color=new Kc("rgb(0,0,0)")}var cn=getAttribute(rn,en.styleSheets,"visibility");cn&&(en.attributeState.visibility=cn);var An=getAttribute(rn,en.styleSheets,"fill");An&&(en.attributeState.fill=function parseFill(en,tn){var nn=Xc.exec(en);if(nn){var rn=nn[1],an=tn.refsHandler.get(rn);return an&&(an instanceof gA||an instanceof _A)?function getGradientFill(en,tn,nn){var rn=tn.getStops(nn.styleSheets);if(0===rn.length)return null;if(1===rn.length){var an=rn[0].color,sn=new Kc;return sn.ok=!0,sn.r=an[0],sn.g=an[1],sn.b=an[2],sn.a=rn[0].opacity,new $c(sn)}return new mA(en,tn)}(rn,an,tn):an&&an instanceof fA?new yA(rn,an):new $c(new Kc("rgb(0, 0, 0)"))}var sn=parseColor(en,tn.attributeState.color);return sn.ok?new $c(sn):null}(An,en));var dn=getAttribute(rn,en.styleSheets,"fill-opacity");dn&&(en.attributeState.fillOpacity=parseFloat(dn));var un=getAttribute(rn,en.styleSheets,"stroke-opacity");un&&(en.attributeState.strokeOpacity=parseFloat(un));var pn=getAttribute(rn,en.styleSheets,"opacity");pn&&(en.attributeState.opacity=parseFloat(pn));var hn=getAttribute(rn,en.styleSheets,"stroke-width");void 0!==hn&&""!==hn&&(en.attributeState.strokeWidth=Math.abs(parseFloat(hn)));var gn=getAttribute(rn,en.styleSheets,"stroke");if(gn)if("none"===gn)en.attributeState.stroke=null;else{var _n=parseColor(gn,en.attributeState.color);_n.ok&&(en.attributeState.stroke=new $c(_n))}var mn=getAttribute(rn,en.styleSheets,"stroke-linecap");mn&&(en.attributeState.strokeLinecap=mn);var fn=getAttribute(rn,en.styleSheets,"stroke-linejoin");fn&&(en.attributeState.strokeLinejoin=fn);var yn=getAttribute(rn,en.styleSheets,"stroke-dasharray");if(yn){var bn=parseInt(getAttribute(rn,en.styleSheets,"stroke-dashoffset")||"0");en.attributeState.strokeDasharray=parseFloats(yn),en.attributeState.strokeDashoffset=bn}var vn=getAttribute(rn,en.styleSheets,"stroke-miterlimit");void 0!==vn&&""!==vn&&(en.attributeState.strokeMiterlimit=parseFloat(vn));var wn=rn.getAttribute("xml:space");wn&&(en.attributeState.xmlSpace=wn);var xn=getAttribute(rn,en.styleSheets,"font-weight");xn&&(en.attributeState.fontWeight=xn);var kn=getAttribute(rn,en.styleSheets,"font-style");kn&&(en.attributeState.fontStyle=kn);var Cn=getAttribute(rn,en.styleSheets,"font-family");if(Cn){var Sn=function(en){for(var tn,nn,rn=!0,an=0,sn="",cn=0,An=[];;){if(nn=en[cn],0===an){if(!nn&&rn)break;if(!nn&&!rn)throw new Error("Parse error");if('"'===nn||"'"===nn)tn=nn,an=1,rn=!1;else if(Uc.test(nn));else{if(!Fc.test(nn))throw new Error("Parse error");an=3,rn=!1,cn--}}else if(1===an){if(!nn)throw new Error("Parse Error");"\\"===nn?an=2:nn===tn?(An.push(sn),sn="",an=4):sn+=nn}else if(2===an){if(nn!==tn&&"\\"!==nn)throw new Error("Parse error");sn+=nn,an=1}else if(3===an){if(!nn){An.push(sn);break}Fc.test(nn)?sn+=nn:","===nn?(An.push(sn),sn="",an=0):Uc.test(nn)?an=5:"\\"===nn&&(an=6)}else if(6===an){if(/[0-9a-f]/i.test(nn))throw new Error("Parse error");sn+=nn,an=3}else if(5===an){if(!nn){An.push(sn);break}if(Fc.test(nn))sn+=" "+nn,an=3;else if(","===nn)An.push(sn),sn="",an=0;else if(!Uc.test(nn))throw new Error("Parse error")}else if(4===an){if(!nn)break;if(","===nn)an=0;else if(!Uc.test(nn))throw new Error("Parse error")}cn++}return An}(Cn);en.attributeState.fontFamily=function findFirstAvailableFontFamily(en,tn,nn){var rn=combineFontStyleAndFontWeight(en.fontStyle,en.fontWeight),an=nn.pdf.getFontList(),sn="";return tn.some((function(en){var tn=an[en];return tn&&tn.indexOf(rn)>=0?(sn=en,!0):(en=en.toLowerCase(),!!AA.hasOwnProperty(en)&&(sn=en,!0))}))||(sn="times"),sn}(en.attributeState,Sn,en)}var Bn=getAttribute(rn,en.styleSheets,"font-size");if(Bn){var En=en.pdf.getFontSize();en.attributeState.fontSize=toPixels(Bn,En)}var jn=getAttribute(rn,en.styleSheets,"vertical-align")||getAttribute(rn,en.styleSheets,"alignment-baseline");if(jn){var Ln=jn.match(/(baseline|text-bottom|alphabetic|ideographic|middle|central|mathematical|text-top|bottom|center|top|hanging)/);Ln&&(en.attributeState.alignmentBaseline=Ln[0])}var Pn=getAttribute(rn,en.styleSheets,"text-anchor");Pn&&(en.attributeState.textAnchor=Pn)}function applyAttributes(en,tn,nn){var rn=1,an=1;rn*=en.attributeState.fillOpacity,rn*=en.attributeState.opacity,en.attributeState.fill instanceof $c&&void 0!==en.attributeState.fill.color.a&&(rn*=en.attributeState.fill.color.a),an*=en.attributeState.strokeOpacity,an*=en.attributeState.opacity,en.attributeState.stroke instanceof $c&&void 0!==en.attributeState.stroke.color.a&&(an*=en.attributeState.stroke.color.a);var sn,cn,An=rn<1,dn=an<1;if(nodeIs(nn,"use")?(An=!0,dn=!0,rn*=en.attributeState.fill?1:0,an*=en.attributeState.stroke?1:0):en.withinUse&&(en.attributeState.fill!==tn.attributeState.fill?(An=!0,rn*=en.attributeState.fill?1:0):An&&!en.attributeState.fill&&(rn=0),en.attributeState.stroke!==tn.attributeState.stroke?(dn=!0,an*=en.attributeState.stroke?1:0):dn&&!en.attributeState.stroke&&(an=0)),An||dn){var un={};An&&(un.opacity=rn),dn&&(un["stroke-opacity"]=an),en.pdf.setGState(new j(un))}if(en.attributeState.fill&&en.attributeState.fill!==tn.attributeState.fill&&en.attributeState.fill instanceof $c&&en.attributeState.fill.color.ok&&!nodeIs(nn,"text")&&en.pdf.setFillColor(en.attributeState.fill.color.r,en.attributeState.fill.color.g,en.attributeState.fill.color.b),en.attributeState.strokeWidth!==tn.attributeState.strokeWidth&&en.pdf.setLineWidth(en.attributeState.strokeWidth),en.attributeState.stroke!==tn.attributeState.stroke&&en.attributeState.stroke instanceof $c&&en.pdf.setDrawColor(en.attributeState.stroke.color.r,en.attributeState.stroke.color.g,en.attributeState.stroke.color.b),en.attributeState.strokeLinecap!==tn.attributeState.strokeLinecap&&en.pdf.setLineCap(en.attributeState.strokeLinecap),en.attributeState.strokeLinejoin!==tn.attributeState.strokeLinejoin&&en.pdf.setLineJoin(en.attributeState.strokeLinejoin),en.attributeState.strokeDasharray===tn.attributeState.strokeDasharray&&en.attributeState.strokeDashoffset===tn.attributeState.strokeDashoffset||!en.attributeState.strokeDasharray||en.pdf.setLineDashPattern(en.attributeState.strokeDasharray,en.attributeState.strokeDashoffset),en.attributeState.strokeMiterlimit!==tn.attributeState.strokeMiterlimit&&en.pdf.setLineMiterLimit(en.attributeState.strokeMiterlimit),en.attributeState.fontFamily!==tn.attributeState.fontFamily&&(sn=AA.hasOwnProperty(en.attributeState.fontFamily)?AA[en.attributeState.fontFamily]:en.attributeState.fontFamily),en.attributeState.fill&&en.attributeState.fill!==tn.attributeState.fill&&en.attributeState.fill instanceof $c&&en.attributeState.fill.color.ok){var pn=en.attributeState.fill.color;en.pdf.setTextColor(pn.r,pn.g,pn.b)}en.attributeState.fontWeight===tn.attributeState.fontWeight&&en.attributeState.fontStyle===tn.attributeState.fontStyle||(cn=combineFontStyleAndFontWeight(en.attributeState.fontStyle,en.attributeState.fontWeight)),void 0===sn&&void 0===cn||(void 0===sn&&(sn=AA.hasOwnProperty(en.attributeState.fontFamily)?AA[en.attributeState.fontFamily]:en.attributeState.fontFamily),en.pdf.setFont(sn,cn)),en.attributeState.fontSize!==tn.attributeState.fontSize&&en.pdf.setFontSize(en.attributeState.fontSize*en.pdf.internal.scaleFactor)}function getClipPathNode(en,tn,nn){var rn=Xc.exec(en);if(rn){var an=rn[1];return nn.refsHandler.get(an)||void 0}}function applyClipPath(en,tn,nn){return __awaiter(this,void 0,void 0,(function(){var rn,an;return __generator(this,(function(sn){switch(sn.label){case 0:return rn=nn.clone(),tn.element.hasAttribute("clipPathUnits")&&"objectboundingbox"===tn.element.getAttribute("clipPathUnits").toLowerCase()&&(an=en.getBoundingBox(nn),rn.transform=nn.pdf.matrixMult(nn.pdf.Matrix(an[2],0,0,an[3],an[0],an[1]),nn.transform)),[4,tn.apply(rn)];case 1:return sn.sent(),[2]}}))}))}var bA=function(en){function RenderedNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(RenderedNode,en),RenderedNode.prototype.render=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an;return __generator(this,(function(sn){switch(sn.label){case 0:return this.isVisible("hidden"!==en.attributeState.visibility,en)?((tn=en.clone()).transform=tn.pdf.matrixMult(this.computeNodeTransform(tn),en.transform),parseAttributes(tn,this),nn=getAttribute(this.element,tn.styleSheets,"clip-path"),(rn=nn&&"none"!==nn)?(an=getClipPathNode(nn,0,tn))?an.isVisible(!0,tn)?(tn.pdf.saveGraphicsState(),[4,applyClipPath(this,an,tn)]):[3,2]:[3,4]:[3,5]):[2];case 1:return sn.sent(),[3,3];case 2:return[2];case 3:return[3,5];case 4:rn=!1,sn.label=5;case 5:return tn.withinClipPath||tn.pdf.saveGraphicsState(),applyAttributes(tn,en,this.element),[4,this.renderCore(tn)];case 6:return sn.sent(),tn.withinClipPath||tn.pdf.restoreGraphicsState(),rn&&tn.pdf.restoreGraphicsState(),[2]}}))}))},RenderedNode}(uA),vA=function(en){function GraphicsNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(GraphicsNode,en),GraphicsNode}(bA),wA=function(en){function GeometryNode(tn,nn,rn){var an=en.call(this,nn,rn)||this;return an.cachedPath=null,an.hasMarkers=tn,an}return __extends(GeometryNode,en),GeometryNode.prototype.renderCore=function(en){return __awaiter(this,void 0,void 0,(function(){var tn;return __generator(this,(function(nn){switch(nn.label){case 0:return null===(tn=this.getCachedPath(en))||0===tn.segments.length?[2]:(en.withinClipPath?tn.transform(en.transform):en.pdf.setCurrentTransformationMatrix(en.transform),tn.draw(en),[4,this.fillOrStroke(en)]);case 1:return nn.sent(),this.hasMarkers?[4,this.drawMarkers(en,tn)]:[3,3];case 2:nn.sent(),nn.label=3;case 3:return[2]}}))}))},GeometryNode.prototype.getCachedPath=function(en){return this.cachedPath||(this.cachedPath=this.getPath(en))},GeometryNode.prototype.drawMarkers=function(en,tn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(nn){switch(nn.label){case 0:return[4,this.getMarkers(tn,en).draw(en.clone({transform:en.pdf.unitMatrix}))];case 1:return nn.sent(),[2]}}))}))},GeometryNode.prototype.fillOrStroke=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn;return __generator(this,(function(cn){switch(cn.label){case 0:return en.withinClipPath?[2]:(tn=en.attributeState.fill,nn=en.attributeState.stroke&&0!==en.attributeState.strokeWidth,tn?[4,tn.getFillData(this,en)]:[3,2]);case 1:return an=cn.sent(),[3,3];case 2:an=void 0,cn.label=3;case 3:return rn=an,sn="evenodd"===getAttribute(this.element,en.styleSheets,"fill-rule"),tn&&nn||en.withinUse?sn?en.pdf.fillStrokeEvenOdd(rn):en.pdf.fillStroke(rn):tn?sn?en.pdf.fillEvenOdd(rn):en.pdf.fill(rn):nn?en.pdf.stroke():en.pdf.discardPath(),[2]}}))}))},GeometryNode.prototype.getBoundingBoxCore=function(en){var tn=this.getCachedPath(en);if(!tn)return[0,0,0,0];for(var nn=Number.POSITIVE_INFINITY,rn=Number.POSITIVE_INFINITY,an=Number.NEGATIVE_INFINITY,sn=Number.NEGATIVE_INFINITY,cn=0,An=0,dn=0;dn<tn.segments.length;dn++){var un=tn.segments[dn];(un instanceof rA||un instanceof oA||un instanceof iA)&&(cn=un.x,An=un.y),un instanceof iA?(nn=Math.min(nn,cn,un.x1,un.x2,un.x),an=Math.max(an,cn,un.x1,un.x2,un.x),rn=Math.min(rn,An,un.y1,un.y2,un.y),sn=Math.max(sn,An,un.y1,un.y2,un.y)):(nn=Math.min(nn,cn),an=Math.max(an,cn),rn=Math.min(rn,An),sn=Math.max(sn,An))}return[nn,rn,an-nn,sn-rn]},GeometryNode.prototype.getMarkers=function(en,tn){var nn=getAttribute(this.element,tn.styleSheets,"marker-start"),rn=getAttribute(this.element,tn.styleSheets,"marker-mid"),an=getAttribute(this.element,tn.styleSheets,"marker-end"),sn=new sA;if(nn||rn||an){an&&(an=iri(an)),nn&&(nn=iri(nn)),rn&&(rn=iri(rn));for(var cn=en.segments,An=[1,0],dn=void 0,un=!1,pn=[1,0],hn=!1,_loop_1=function(en){var tn=cn[en],gn=nn&&(1===en||!(cn[en]instanceof rA)&&cn[en-1]instanceof rA);gn&&cn.forEach((function(tn,nn){if(!hn&&tn instanceof aA&&nn>en){var rn=cn[nn-1];hn=(rn instanceof rA||rn instanceof oA||rn instanceof iA)&&rn}}));var _n=an&&(en===cn.length-1||!(cn[en]instanceof rA)&&cn[en+1]instanceof rA),mn=rn&&en>0&&!(1===en&&cn[en-1]instanceof rA),fn=cn[en-1]||null;if(fn instanceof rA||fn instanceof oA||fn instanceof iA)if(tn instanceof iA)gn&&sn.addMarker(new lA(nn,[fn.x,fn.y],getAngle(hn?[hn.x,hn.y]:[fn.x,fn.y],[tn.x1,tn.y1]))),_n&&sn.addMarker(new lA(an,[tn.x,tn.y],getAngle([tn.x2,tn.y2],[tn.x,tn.y]))),mn&&(dn=getDirectionVector([fn.x,fn.y],[tn.x1,tn.y1]),dn=fn instanceof rA?dn:normalize$1(addVectors(An,dn)),sn.addMarker(new lA(rn,[fn.x,fn.y],Math.atan2(dn[1],dn[0])))),An=getDirectionVector([tn.x2,tn.y2],[tn.x,tn.y]);else if(tn instanceof rA||tn instanceof oA){if(dn=getDirectionVector([fn.x,fn.y],[tn.x,tn.y]),gn){var yn=hn?getDirectionVector([hn.x,hn.y],[tn.x,tn.y]):dn;sn.addMarker(new lA(nn,[fn.x,fn.y],Math.atan2(yn[1],yn[0])))}_n&&sn.addMarker(new lA(an,[tn.x,tn.y],Math.atan2(dn[1],dn[0]))),mn&&(yn=tn instanceof rA?An:fn instanceof rA?dn:normalize$1(addVectors(An,dn)),sn.addMarker(new lA(rn,[fn.x,fn.y],Math.atan2(yn[1],yn[0])))),An=dn}else tn instanceof aA&&(dn=getDirectionVector([fn.x,fn.y],[un.x,un.y]),mn&&(yn=fn instanceof rA?dn:normalize$1(addVectors(An,dn)),sn.addMarker(new lA(rn,[fn.x,fn.y],Math.atan2(yn[1],yn[0])))),_n&&(yn=normalize$1(addVectors(dn,pn)),sn.addMarker(new lA(an,[un.x,un.y],Math.atan2(yn[1],yn[0])))),An=dn);else{un=tn instanceof rA&&tn;var bn=cn[en+1];(bn instanceof rA||bn instanceof oA||bn instanceof iA)&&(pn=getDirectionVector([un.x,un.y],[bn.x,bn.y]))}},gn=0;gn<cn.length;gn++)_loop_1(gn)}return sn},GeometryNode}(vA);function iri(en){var tn=Xc.exec(en);return tn&&tn[1]||void 0}var xA=function(en){function Line(tn,nn){return en.call(this,!0,tn,nn)||this}return __extends(Line,en),Line.prototype.getPath=function(en){if(en.withinClipPath||null===en.attributeState.stroke)return null;var tn=parseFloat(this.element.getAttribute("x1")||"0"),nn=parseFloat(this.element.getAttribute("y1")||"0"),rn=parseFloat(this.element.getAttribute("x2")||"0"),an=parseFloat(this.element.getAttribute("y2")||"0");return tn||rn||nn||an?(new nA).moveTo(tn,nn).lineTo(rn,an):null},Line.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Line.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},Line.prototype.fillOrStroke=function(tn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(nn){switch(nn.label){case 0:return tn.attributeState.fill=null,[4,en.prototype.fillOrStroke.call(this,tn)];case 1:return nn.sent(),[2]}}))}))},Line}(wA),kA=function(en){function Symbol(){return null!==en&&en.apply(this,arguments)||this}return __extends(Symbol,en),Symbol.prototype.apply=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn;return __generator(this,(function(cn){switch(cn.label){case 0:return this.isVisible("hidden"!==en.attributeState.visibility,en)?((tn=en.clone()).transform=tn.pdf.unitMatrix,parseAttributes(tn,this),(nn=getAttribute(this.element,tn.styleSheets,"clip-path"))&&"none"!==nn&&(rn=getClipPathNode(nn,0,tn))?rn.isVisible(!0,tn)?[4,applyClipPath(this,rn,tn)]:[3,2]:[3,3]):[2];case 1:return cn.sent(),[3,3];case 2:return[2];case 3:applyAttributes(tn,en,this.element),an=0,sn=this.children,cn.label=4;case 4:return an<sn.length?[4,sn[an].render(tn)]:[3,7];case 5:cn.sent(),cn.label=6;case 6:return an++,[3,4];case 7:return[2]}}))}))},Symbol.prototype.getBoundingBoxCore=function(en){return getBoundingBoxByChildren(en,this)},Symbol.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},Symbol.prototype.computeNodeTransformCore=function(en){var tn=parseFloat(getAttribute(this.element,en.styleSheets,"x")||"0"),nn=parseFloat(getAttribute(this.element,en.styleSheets,"y")||"0"),rn=this.element.getAttribute("viewBox");if(rn){var an=parseFloats(rn),sn=parseFloat(getAttribute(this.element,en.styleSheets,"width")||getAttribute(this.element.ownerSVGElement,en.styleSheets,"width")||rn[2]),cn=parseFloat(getAttribute(this.element,en.styleSheets,"height")||getAttribute(this.element.ownerSVGElement,en.styleSheets,"height")||rn[3]);return computeViewBoxTransform(this.element,an,tn,nn,sn,cn,en)}return en.pdf.Matrix(1,0,0,1,tn,nn)},Symbol}(pA),CA=function qs(en,tn){this.width=en,this.height=tn},SA=function(en){function Use(){return null!==en&&en.apply(this,arguments)||this}return __extends(Use,en),Use.prototype.renderCore=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,An,dn,un,pn,hn,gn,_n;return __generator(this,(function(mn){switch(mn.label){case 0:return tn=parseFloat,(nn=this.element.getAttribute("href")||this.element.getAttribute("xlink:href"))?(rn=nn.substring(1),an=en.refsHandler.get(rn),sn=nodeIs(an.element,"symbol,svg")&&an.element.hasAttribute("viewBox"),cn=tn(getAttribute(this.element,en.styleSheets,"x")||"0"),An=tn(getAttribute(this.element,en.styleSheets,"y")||"0"),dn=void 0,un=void 0,sn?(dn=tn(getAttribute(this.element,en.styleSheets,"width")||getAttribute(an.element,en.styleSheets,"width")||"0"),un=tn(getAttribute(this.element,en.styleSheets,"height")||getAttribute(an.element,en.styleSheets,"height")||"0"),cn+=tn(getAttribute(an.element,en.styleSheets,"x")||"0"),An+=tn(getAttribute(an.element,en.styleSheets,"y")||"0"),hn=parseFloats(an.element.getAttribute("viewBox")),pn=computeViewBoxTransform(an.element,hn,cn,An,dn,un,en)):pn=en.pdf.Matrix(1,0,0,1,cn,An),gn=new Jc(en.pdf,{refsHandler:en.refsHandler,styleSheets:en.styleSheets,withinUse:!0,viewport:sn?new CA(dn,un):en.viewport,svg2pdfParameters:en.svg2pdfParameters}),_n=en.attributeState.color,[4,en.refsHandler.getRendered(rn,_n,(function(en){return Use.renderReferencedNode(en,rn,_n,gn)}))]):[2];case 1:return mn.sent(),en.pdf.saveGraphicsState(),en.pdf.setCurrentTransformationMatrix(en.transform),sn&&"visible"!==getAttribute(an.element,en.styleSheets,"overflow")&&(en.pdf.rect(cn,An,dn,un),en.pdf.clip().discardPath()),en.pdf.doFormObject(en.refsHandler.generateKey(rn,_n),pn),en.pdf.restoreGraphicsState(),[2]}}))}))},Use.renderReferencedNode=function(en,tn,nn,rn){return __awaiter(this,void 0,void 0,(function(){var an;return __generator(this,(function(sn){switch(sn.label){case 0:return an=[(an=en.getBoundingBox(rn))[0]-.5*an[2],an[1]-.5*an[3],2*an[2],2*an[3]],rn.attributeState.color=nn,rn.pdf.beginFormObject(an[0],an[1],an[2],an[3],rn.pdf.unitMatrix),en instanceof kA?[4,en.apply(rn)]:[3,2];case 1:return sn.sent(),[3,4];case 2:return[4,en.render(rn)];case 3:sn.sent(),sn.label=4;case 4:return rn.pdf.endFormObject(rn.refsHandler.generateKey(tn,nn)),[2]}}))}))},Use.prototype.getBoundingBoxCore=function(en){return defaultBoundingBox(this.element,en)},Use.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},Use.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Use}(vA),BA=function(en){function Rect(tn,nn){return en.call(this,!1,tn,nn)||this}return __extends(Rect,en),Rect.prototype.getPath=function(en){var tn=parseFloat(getAttribute(this.element,en.styleSheets,"width")||"0"),nn=parseFloat(getAttribute(this.element,en.styleSheets,"height")||"0");if(!isFinite(tn)||tn<=0||!isFinite(nn)||nn<=0)return null;var rn=getAttribute(this.element,en.styleSheets,"rx"),an=getAttribute(this.element,en.styleSheets,"ry"),sn=Math.min(parseFloat(rn||an||"0"),.5*tn),cn=Math.min(parseFloat(an||rn||"0"),.5*nn),An=parseFloat(getAttribute(this.element,en.styleSheets,"x")||"0"),dn=parseFloat(getAttribute(this.element,en.styleSheets,"y")||"0"),un=4/3*(Math.SQRT2-1);return 0===sn&&0===cn?(new nA).moveTo(An,dn).lineTo(An+tn,dn).lineTo(An+tn,dn+nn).lineTo(An,dn+nn).close():(new nA).moveTo(An+=sn,dn).lineTo(An+=tn-2*sn,dn).curveTo(An+sn*un,dn,An+sn,dn+(cn-cn*un),An+=sn,dn+=cn).lineTo(An,dn+=nn-2*cn).curveTo(An,dn+cn*un,An-sn*un,dn+cn,An-=sn,dn+=cn).lineTo(An+=2*sn-tn,dn).curveTo(An-sn*un,dn,An-sn,dn-cn*un,An-=sn,dn-=cn).lineTo(An,dn+=2*cn-nn).curveTo(An,dn-cn*un,An+sn*un,dn-cn,An+=sn,dn-=cn).close()},Rect.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Rect.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},Rect}(wA),EA=function(en){function EllipseBase(tn,nn){return en.call(this,!1,tn,nn)||this}return __extends(EllipseBase,en),EllipseBase.prototype.getPath=function(en){var tn=this.getRx(en),nn=this.getRy(en);if(!isFinite(tn)||nn<=0||!isFinite(nn)||nn<=0)return null;var rn=parseFloat(getAttribute(this.element,en.styleSheets,"cx")||"0"),an=parseFloat(getAttribute(this.element,en.styleSheets,"cy")||"0"),sn=4/3*(Math.SQRT2-1)*tn,cn=4/3*(Math.SQRT2-1)*nn;return(new nA).moveTo(rn+tn,an).curveTo(rn+tn,an-cn,rn+sn,an-nn,rn,an-nn).curveTo(rn-sn,an-nn,rn-tn,an-cn,rn-tn,an).curveTo(rn-tn,an+cn,rn-sn,an+nn,rn,an+nn).curveTo(rn+sn,an+nn,rn+tn,an+cn,rn+tn,an)},EllipseBase.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},EllipseBase.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},EllipseBase}(wA),jA=function(en){function Ellipse(tn,nn){return en.call(this,tn,nn)||this}return __extends(Ellipse,en),Ellipse.prototype.getRx=function(en){return parseFloat(getAttribute(this.element,en.styleSheets,"rx")||"0")},Ellipse.prototype.getRy=function(en){return parseFloat(getAttribute(this.element,en.styleSheets,"ry")||"0")},Ellipse}(EA);function getTextRenderingMode(en){var tn="invisible";return en.fill&&en.stroke?tn="fillThenStroke":en.fill?tn="fill":en.stroke&&(tn="stroke"),tn}function removeNewlines(en){return en.replace(/[\n\r]/g,"")}function replaceTabsBySpace(en){return en.replace(/[\t]/g," ")}function consolidateSpaces(en){return en.replace(/ +/g," ")}function transformText(en,tn,nn){switch(getAttribute(en,nn.styleSheets,"text-transform")){case"uppercase":return tn.toUpperCase();case"lowercase":return tn.toLowerCase();default:return tn}}var LA=function(){function TextChunk(en,tn,nn,rn){this.textNode=en,this.texts=[],this.textNodes=[],this.contexts=[],this.textAnchor=tn,this.originX=nn,this.originY=rn,this.textMeasures=[]}return TextChunk.prototype.setX=function(en){this.originX=en},TextChunk.prototype.setY=function(en){this.originY=en},TextChunk.prototype.add=function(en,tn,nn){this.texts.push(tn),this.textNodes.push(en),this.contexts.push(nn)},TextChunk.prototype.rightTrimText=function(){for(var en=this.texts.length-1;en>=0;en--)if("default"===this.contexts[en].attributeState.xmlSpace&&(this.texts[en]=this.texts[en].replace(/\s+$/,"")),this.texts[en].match(/[^\s]/))return!1;return!0},TextChunk.prototype.measureText=function(en){for(var tn=0;tn<this.texts.length;tn++)this.textMeasures.push({width:en.textMeasure.measureTextWidth(this.texts[tn],this.contexts[tn].attributeState),length:this.texts[tn].length})},TextChunk.prototype.put=function(en,tn){var nn,rn,an,sn,cn=[],An=[],dn=[],un=this.originX,pn=this.originY,hn=un,gn=un;for(nn=0;nn<this.textNodes.length;nn++){rn=this.textNodes[nn],an=this.contexts[nn],sn=this.textMeasures[nn]||{width:en.textMeasure.measureTextWidth(this.texts[nn],this.contexts[nn].attributeState),length:this.texts[nn].length};var _n=un,mn=pn;if("#text"!==rn.nodeName&&!cn.includes(rn)){cn.push(rn);var fn=rn.getAttribute("dx");null!==fn&&(_n+=toPixels(fn,an.attributeState.fontSize));var yn=rn.getAttribute("dy");null!==yn&&(mn+=toPixels(yn,an.attributeState.fontSize))}An[nn]=_n,dn[nn]=mn,un=_n+sn.width+sn.length*tn,pn=mn,hn=Math.min(hn,_n),gn=Math.max(gn,un)}var bn=0;switch(this.textAnchor){case"start":bn=0;break;case"middle":bn=(gn-hn)/2;break;case"end":bn=gn-hn}for(nn=0;nn<this.textNodes.length;nn++)if(rn=this.textNodes[nn],an=this.contexts[nn],"#text"===rn.nodeName||"hidden"!==an.attributeState.visibility){en.pdf.saveGraphicsState(),applyAttributes(an,en,rn);var vn=an.attributeState.alignmentBaseline,wn=getTextRenderingMode(an.attributeState);en.pdf.text(this.texts[nn],An[nn]-bn,dn[nn],{baseline:mapAlignmentBaseline(vn),angle:en.transform,renderingMode:"fill"===wn?void 0:wn,charSpace:0===tn?void 0:tn}),en.pdf.restoreGraphicsState()}return[un,pn]},TextChunk}(),PA=function(en){function TextNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(TextNode,en),TextNode.prototype.processTSpans=function(en,tn,nn,rn,an,sn){for(var cn=nn.pdf.getFontSize(),An=nn.attributeState.xmlSpace,dn=!0,un=!1,pn=0;pn<tn.childNodes.length;pn++){var hn=tn.childNodes[pn];if(hn.textContent){var gn=hn.textContent;if("#text"===hn.nodeName){var _n=removeNewlines(gn);_n=replaceTabsBySpace(_n),"default"===An&&(_n=consolidateSpaces(_n),dn&&_n.match(/^\s/)&&(un=!0),_n.match(/[^\s]/)&&(dn=!1),sn.prevText.match(/\s$/)&&(_n=_n.replace(/^\s+/,"")));var mn=transformText(tn,_n,nn);an.add(tn,mn,nn),sn.prevText=gn,sn.prevContext=nn}else if(nodeIs(hn,"title"));else if(nodeIs(hn,"tspan")){var fn=hn,yn=fn.getAttribute("x");if(null!==yn){var bn=toPixels(yn,cn);an=new LA(this,getAttribute(fn,nn.styleSheets,"text-anchor")||nn.attributeState.textAnchor,bn,0),rn.push({type:"y",chunk:an})}var vn=fn.getAttribute("y");if(null!==vn){var wn=toPixels(vn,cn);an=new LA(this,getAttribute(fn,nn.styleSheets,"text-anchor")||nn.attributeState.textAnchor,0,wn),rn.push({type:"x",chunk:an})}var xn=nn.clone();parseAttributes(xn,en,fn),this.processTSpans(en,fn,xn,rn,an,sn)}}}return un},TextNode.prototype.renderCore=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,An,dn,un,pn,hn,gn,_n,mn,fn,yn,bn,vn,wn,xn,kn,Cn,Sn;return __generator(this,(function(Bn){if(en.pdf.saveGraphicsState(),tn=0,nn=0,rn=1,an=en.pdf.getFontSize(),sn=toPixels(this.element.getAttribute("x"),an),cn=toPixels(this.element.getAttribute("y"),an),An=toPixels(this.element.getAttribute("dx"),an),dn=toPixels(this.element.getAttribute("dy"),an),un=parseFloat(this.element.getAttribute("textLength")||"0"),pn=en.attributeState.visibility,0===this.element.childElementCount)hn=this.element.textContent||"",gn=function transformXmlSpace(en,tn){return en=replaceTabsBySpace(en=removeNewlines(en)),"default"===tn.xmlSpace&&(en=consolidateSpaces(en=en.trim())),en}(hn,en.attributeState),_n=transformText(this.element,gn,en),tn=en.textMeasure.getTextOffset(_n,en.attributeState),un>0&&(mn=en.textMeasure.measureTextWidth(_n,en.attributeState),"default"===en.attributeState.xmlSpace&&hn.match(/^\s/)&&(rn=0),nn=(un-mn)/(_n.length-rn)||0),"visible"===pn&&(fn=en.attributeState.alignmentBaseline,yn=getTextRenderingMode(en.attributeState),en.pdf.text(_n,sn+An-tn,cn+dn,{baseline:mapAlignmentBaseline(fn),angle:en.transform,renderingMode:"fill"===yn?void 0:yn,charSpace:0===nn?void 0:nn}));else{for(bn=[],vn=new LA(this,en.attributeState.textAnchor,sn+An,cn+dn),bn.push({type:"",chunk:vn}),wn=this.processTSpans(this,this.element,en,bn,vn,{prevText:" ",prevContext:en}),rn=wn?0:1,xn=!0,kn=bn.length-1;kn>=0;kn--)xn&&(xn=bn[kn].chunk.rightTrimText());un>0&&(Cn=0,Sn=0,bn.forEach((function(tn){var nn=tn.chunk;nn.measureText(en),nn.textMeasures.forEach((function(en){var tn=en.width,nn=en.length;Cn+=tn,Sn+=nn}))})),nn=(un-Cn)/(Sn-rn)),bn.reduce((function(tn,rn){var an=rn.type,sn=rn.chunk;return"x"===an?sn.setX(tn[0]):"y"===an&&sn.setY(tn[1]),sn.put(en,nn)}),[0,0])}return en.pdf.restoreGraphicsState(),[2]}))}))},TextNode.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},TextNode.prototype.getBoundingBoxCore=function(en){return defaultBoundingBox(this.element,en)},TextNode.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},TextNode}(vA),TA=function(en){function PathNode(tn,nn){return en.call(this,!0,tn,nn)||this}return __extends(PathNode,en),PathNode.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},PathNode.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},PathNode.prototype.getPath=function(en){var tn,nn,rn=new zc(getAttribute(this.element,en.styleSheets,"d")||"").unshort().unarc().abs(),an=new nA;return rn.iterate((function(en){switch(en[0]){case"M":an.moveTo(en[1],en[2]);break;case"L":an.lineTo(en[1],en[2]);break;case"H":an.lineTo(en[1],nn);break;case"V":an.lineTo(tn,en[1]);break;case"C":an.curveTo(en[1],en[2],en[3],en[4],en[5],en[6]);break;case"Q":var rn=toCubic([tn,nn],[en[1],en[2]]),sn=toCubic([en[3],en[4]],[en[1],en[2]]);an.curveTo(rn[0],rn[1],sn[0],sn[1],en[3],en[4]);break;case"Z":an.close()}switch(en[0]){case"M":case"L":tn=en[1],nn=en[2];break;case"H":tn=en[1];break;case"V":nn=en[1];break;case"C":tn=en[5],nn=en[6];break;case"Q":tn=en[3],nn=en[4]}})),an},PathNode}(wA),FA=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*\s*)$/i,UA=function(en){function ImageNode(tn,nn){var rn=en.call(this,tn,nn)||this;return rn.imageLoadingPromise=null,rn.imageUrl=rn.element.getAttribute("xlink:href")||rn.element.getAttribute("href"),rn.imageUrl&&(rn.imageLoadingPromise=ImageNode.fetchImageData(rn.imageUrl)),rn}return __extends(ImageNode,en),ImageNode.prototype.renderCore=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,An,dn,un,pn,hn,gn;return __generator(this,(function(_n){switch(_n.label){case 0:return this.imageLoadingPromise?(en.pdf.setCurrentTransformationMatrix(en.transform),tn=parseFloat(getAttribute(this.element,en.styleSheets,"width")||"0"),nn=parseFloat(getAttribute(this.element,en.styleSheets,"height")||"0"),rn=parseFloat(getAttribute(this.element,en.styleSheets,"x")||"0"),an=parseFloat(getAttribute(this.element,en.styleSheets,"y")||"0"),!isFinite(tn)||tn<=0||!isFinite(nn)||nn<=0?[2]:[4,this.imageLoadingPromise]):[2];case 1:return sn=_n.sent(),cn=sn.data,0!==(An=sn.format).indexOf("svg")?[3,3]:(dn=new DOMParser,un=dn.parseFromString(cn,"image/svg+xml").firstElementChild,(!(pn=this.element.getAttribute("preserveAspectRatio"))||pn.indexOf("defer")<0||!un.getAttribute("preserveAspectRatio"))&&un.setAttribute("preserveAspectRatio",pn||""),un.setAttribute("x",String(rn)),un.setAttribute("y",String(an)),un.setAttribute("width",String(tn)),un.setAttribute("height",String(nn)),[4,parse(un,hn={}).render(new Jc(en.pdf,{refsHandler:new eA(hn),styleSheets:en.styleSheets,viewport:new CA(tn,nn),svg2pdfParameters:en.svg2pdfParameters}))]);case 2:return _n.sent(),[2];case 3:gn="data:image/"+An+";base64,"+btoa(cn);try{en.pdf.addImage(gn,"",rn,an,tn,nn)}catch(en){"object"==typeof console&&console.warn&&console.warn("Could not load image "+this.imageUrl+".\n"+en)}_n.label=4;case 4:return[2]}}))}))},ImageNode.prototype.getBoundingBoxCore=function(en){return defaultBoundingBox(this.element,en)},ImageNode.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},ImageNode.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},ImageNode.fetchImageData=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn;return __generator(this,(function(cn){switch(cn.label){case 0:if(!(rn=en.match(FA)))return[3,1];if(an=rn[2],"image"!==(sn=an.split("/"))[0])throw new Error("Unsupported image URL: "+en);return nn=sn[1],tn=rn[5],tn="base64"===rn[4]?atob(tn):decodeURIComponent(tn),[3,3];case 1:return[4,ImageNode.fetchImage(en)];case 2:tn=cn.sent(),nn=en.substring(en.lastIndexOf(".")+1),cn.label=3;case 3:return[2,{data:tn,format:nn}]}}))}))},ImageNode.fetchImage=function(en){return new Promise((function(tn,nn){var rn=new XMLHttpRequest;rn.open("GET",en,!0),rn.responseType="arraybuffer",rn.onload=function(){if(200!==rn.status)throw new Error("Error "+rn.status+": Failed to load image '"+en+"'");for(var nn=new Uint8Array(rn.response),an="",sn=0;sn<nn.length;sn++)an+=String.fromCharCode(nn[sn]);tn(an)},rn.onerror=nn,rn.onabort=nn,rn.send(null)}))},ImageNode.getMimeType=function(en){switch(en=en.toLowerCase()){case"jpg":case"jpeg":return"image/jpeg";default:return"image/"+en}},ImageNode}(vA),NA=function(en){function Traverse(tn,nn,rn){var an=en.call(this,!0,nn,rn)||this;return an.closed=tn,an}return __extends(Traverse,en),Traverse.prototype.getPath=function(en){if(!this.element.hasAttribute("points")||""===this.element.getAttribute("points"))return null;var tn=Traverse.parsePointsString(this.element.getAttribute("points")),nn=new nA;if(tn.length<1)return nn;nn.moveTo(tn[0][0],tn[0][1]);for(var rn=1;rn<tn.length;rn++)nn.lineTo(tn[rn][0],tn[rn][1]);return this.closed&&nn.close(),nn},Traverse.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},Traverse.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Traverse.parsePointsString=function(en){for(var tn=parseFloats(en),nn=[],rn=0;rn<tn.length-1;rn+=2){var an=tn[rn],sn=tn[rn+1];nn.push([an,sn])}return nn},Traverse}(wA),IA=function(en){function Polygon(tn,nn){return en.call(this,!0,tn,nn)||this}return __extends(Polygon,en),Polygon}(NA),MA=function(en){function VoidNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(VoidNode,en),VoidNode.prototype.render=function(en){return Promise.resolve()},VoidNode.prototype.getBoundingBoxCore=function(en){return[0,0,0,0]},VoidNode.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},VoidNode.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},VoidNode}(uA),RA=function(en){function MarkerNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(MarkerNode,en),MarkerNode.prototype.apply=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn;return __generator(this,(function(cn){switch(cn.label){case 0:tn=this.computeNodeTransform(en),nn=this.getBoundingBox(en),en.pdf.beginFormObject(nn[0],nn[1],nn[2],nn[3],tn),function applyContext(en){var tn=en.attributeState,nn=en.pdf,rn=1,an=1;rn*=tn.fillOpacity,rn*=tn.opacity,tn.fill instanceof $c&&void 0!==tn.fill.color.a&&(rn*=tn.fill.color.a),an*=tn.strokeOpacity,an*=tn.opacity,tn.stroke instanceof $c&&void 0!==tn.stroke.color.a&&(an*=tn.stroke.color.a);var sn,cn={};if(cn.opacity=rn,cn["stroke-opacity"]=an,nn.setGState(new j(cn)),tn.fill&&tn.fill instanceof $c&&tn.fill.color.ok?nn.setFillColor(tn.fill.color.r,tn.fill.color.g,tn.fill.color.b):nn.setFillColor(0,0,0),nn.setLineWidth(tn.strokeWidth),tn.stroke instanceof $c?nn.setDrawColor(tn.stroke.color.r,tn.stroke.color.g,tn.stroke.color.b):nn.setDrawColor(0,0,0),nn.setLineCap(tn.strokeLinecap),nn.setLineJoin(tn.strokeLinejoin),tn.strokeDasharray?nn.setLineDashPattern(tn.strokeDasharray,tn.strokeDashoffset):nn.setLineDashPattern([],0),nn.setLineMiterLimit(tn.strokeMiterlimit),sn=AA.hasOwnProperty(tn.fontFamily)?AA[tn.fontFamily]:tn.fontFamily,tn.fill&&tn.fill instanceof $c&&tn.fill.color.ok){var An=tn.fill.color;nn.setTextColor(An.r,An.g,An.b)}else nn.setTextColor(0,0,0);var dn="";"bold"===tn.fontWeight&&(dn="bold"),"italic"===tn.fontStyle&&(dn+="italic"),""===dn&&(dn="normal"),void 0!==sn||void 0!==dn?(void 0===sn&&(sn=AA.hasOwnProperty(tn.fontFamily)?AA[tn.fontFamily]:tn.fontFamily),nn.setFont(sn,dn)):nn.setFont("helvetica",dn),nn.setFontSize(tn.fontSize*nn.internal.scaleFactor)}(rn=new Jc(en.pdf,{refsHandler:en.refsHandler,styleSheets:en.styleSheets,viewport:en.viewport,svg2pdfParameters:en.svg2pdfParameters})),an=0,sn=this.children,cn.label=1;case 1:return an<sn.length?[4,sn[an].render(rn)]:[3,4];case 2:cn.sent(),cn.label=3;case 3:return an++,[3,1];case 4:return en.pdf.endFormObject(this.element.getAttribute("id")),[2]}}))}))},MarkerNode.prototype.getBoundingBoxCore=function(en){var tn,nn=this.element.getAttribute("viewBox");return nn&&(tn=parseFloats(nn)),[tn&&tn[0]||0,tn&&tn[1]||0,tn&&tn[2]||parseFloat(this.element.getAttribute("markerWidth")||"3"),tn&&tn[3]||parseFloat(this.element.getAttribute("markerHeight")||"3")]},MarkerNode.prototype.computeNodeTransformCore=function(en){var tn,nn=parseFloat(this.element.getAttribute("refX")||"0"),rn=parseFloat(this.element.getAttribute("refY")||"0"),an=this.element.getAttribute("viewBox");if(an){var sn=parseFloats(an);tn=computeViewBoxTransform(this.element,sn,0,0,parseFloat(this.element.getAttribute("markerWidth")||"3"),parseFloat(this.element.getAttribute("markerHeight")||"3"),en,!0),tn=en.pdf.matrixMult(en.pdf.Matrix(1,0,0,1,-nn,-rn),tn)}else tn=en.pdf.Matrix(1,0,0,1,-nn,-rn);return tn},MarkerNode.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},MarkerNode}(pA),OA=function(en){function Circle(tn,nn){return en.call(this,tn,nn)||this}return __extends(Circle,en),Circle.prototype.getR=function(en){var tn;return null!==(tn=this.r)&&void 0!==tn?tn:this.r=parseFloat(getAttribute(this.element,en.styleSheets,"r")||"0")},Circle.prototype.getRx=function(en){return this.getR(en)},Circle.prototype.getRy=function(en){return this.getR(en)},Circle}(EA),QA=function(en){function Polyline(tn,nn){return en.call(this,!1,tn,nn)||this}return __extends(Polyline,en),Polyline}(NA),qA=function(en){function ContainerNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(ContainerNode,en),ContainerNode.prototype.renderCore=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn;return __generator(this,(function(rn){switch(rn.label){case 0:tn=0,nn=this.children,rn.label=1;case 1:return tn<nn.length?[4,nn[tn].render(en)]:[3,4];case 2:rn.sent(),rn.label=3;case 3:return tn++,[3,1];case 4:return[2]}}))}))},ContainerNode.prototype.getBoundingBoxCore=function(en){return getBoundingBoxByChildren(en,this)},ContainerNode}(bA),VA=function(en){function Svg(){return null!==en&&en.apply(this,arguments)||this}return __extends(Svg,en),Svg.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},Svg.prototype.render=function(tn){return __awaiter(this,void 0,void 0,(function(){var nn,rn,an,sn,cn;return __generator(this,(function(An){switch(An.label){case 0:return this.isVisible("hidden"!==tn.attributeState.visibility,tn)?(nn=this.getX(tn),rn=this.getY(tn),an=this.getWidth(tn),sn=this.getHeight(tn),tn.pdf.saveGraphicsState(),cn=tn.transform,this.element.hasAttribute("transform")&&(cn=tn.pdf.matrixMult(parseTransform$1(this.element.getAttribute("transform"),tn),cn)),tn.pdf.setCurrentTransformationMatrix(cn),tn.withinUse||"visible"===getAttribute(this.element,tn.styleSheets,"overflow")||tn.pdf.rect(nn,rn,an,sn).clip().discardPath(),[4,en.prototype.render.call(this,tn.clone({transform:tn.pdf.unitMatrix,viewport:tn.withinUse?tn.viewport:new CA(an,sn)}))]):[2];case 1:return An.sent(),tn.pdf.restoreGraphicsState(),[2]}}))}))},Svg.prototype.computeNodeTransform=function(en){return this.computeNodeTransformCore(en)},Svg.prototype.computeNodeTransformCore=function(en){if(en.withinUse)return en.pdf.unitMatrix;var tn,nn=this.getX(en),rn=this.getY(en),an=this.getViewBox();if(an){var sn=this.getWidth(en),cn=this.getHeight(en);tn=computeViewBoxTransform(this.element,an,nn,rn,sn,cn,en)}else tn=en.pdf.Matrix(1,0,0,1,nn,rn);return tn},Svg.prototype.getWidth=function(en){if(void 0!==this.width)return this.width;var tn,nn,rn=en.svg2pdfParameters;if(this.isOutermostSvg(en))if(null!=rn.width)tn=rn.width;else if(nn=getAttribute(this.element,en.styleSheets,"width"))tn=parseFloat(nn);else{var an=this.getViewBox();if(an&&(null!=rn.height||getAttribute(this.element,en.styleSheets,"height"))){var sn=an[2]/an[3];tn=this.getHeight(en)*sn}else tn=Math.min(300,en.viewport.width,2*en.viewport.height)}else tn=(nn=getAttribute(this.element,en.styleSheets,"width"))?parseFloat(nn):en.viewport.width;return this.width=tn},Svg.prototype.getHeight=function(en){if(void 0!==this.height)return this.height;var tn,nn,rn=en.svg2pdfParameters;if(this.isOutermostSvg(en))if(null!=rn.height)tn=rn.height;else if(nn=getAttribute(this.element,en.styleSheets,"height"))tn=parseFloat(nn);else{var an=this.getViewBox();if(an){var sn=an[2]/an[3];tn=this.getWidth(en)/sn}else tn=Math.min(150,en.viewport.width/2,en.viewport.height)}else tn=(nn=getAttribute(this.element,en.styleSheets,"height"))?parseFloat(nn):en.viewport.height;return this.height=tn},Svg.prototype.getX=function(en){if(void 0!==this.x)return this.x;if(this.isOutermostSvg(en))return this.x=0;var tn=getAttribute(this.element,en.styleSheets,"x");return this.x=tn?parseFloat(tn):0},Svg.prototype.getY=function(en){if(void 0!==this.y)return this.y;if(this.isOutermostSvg(en))return this.y=0;var tn=getAttribute(this.element,en.styleSheets,"y");return this.y=tn?parseFloat(tn):0},Svg.prototype.getViewBox=function(){if(void 0!==this.viewBox)return this.viewBox;var en=this.element.getAttribute("viewBox");return this.viewBox=en?parseFloats(en):void 0},Svg.prototype.isOutermostSvg=function(en){return en.svg2pdfParameters.element===this.element},Svg}(qA),GA=function(en){function Group(){return null!==en&&en.apply(this,arguments)||this}return __extends(Group,en),Group.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},Group.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Group}(qA),DA=function(en){function ClipPath(){return null!==en&&en.apply(this,arguments)||this}return __extends(ClipPath,en),ClipPath.prototype.apply=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn;return __generator(this,(function(an){switch(an.label){case 0:if(!this.isVisible(!0,en))return[2];tn=en.pdf.matrixMult(this.computeNodeTransform(en),en.transform),en.pdf.setCurrentTransformationMatrix(tn),nn=0,rn=this.children,an.label=1;case 1:return nn<rn.length?[4,rn[nn].render(new Jc(en.pdf,{refsHandler:en.refsHandler,styleSheets:en.styleSheets,viewport:en.viewport,withinClipPath:!0,svg2pdfParameters:en.svg2pdfParameters}))]:[3,4];case 2:an.sent(),an.label=3;case 3:return nn++,[3,1];case 4:return en.pdf.clip().discardPath(),en.pdf.setCurrentTransformationMatrix(tn.inversed()),[2]}}))}))},ClipPath.prototype.getBoundingBoxCore=function(en){return getBoundingBoxByChildren(en,this)},ClipPath.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},ClipPath}(pA);function parse(en,tn){var nn,rn=[];switch(function forEachChild(en,tn){for(var nn=[],rn=0;rn<en.childNodes.length;rn++){var an=en.childNodes[rn];"#"!==an.nodeName.charAt(0)&&nn.push(an)}for(rn=0;rn<nn.length;rn++)tn(rn,nn[rn])}(en,(function(en,nn){return rn.push(parse(nn,tn))})),en.tagName.toLowerCase()){case"a":case"g":nn=new GA(en,rn);break;case"circle":nn=new OA(en,rn);break;case"clippath":nn=new DA(en,rn);break;case"ellipse":nn=new jA(en,rn);break;case"lineargradient":nn=new gA(en,rn);break;case"image":nn=new UA(en,rn);break;case"line":nn=new xA(en,rn);break;case"marker":nn=new RA(en,rn);break;case"path":nn=new TA(en,rn);break;case"pattern":nn=new fA(en,rn);break;case"polygon":nn=new IA(en,rn);break;case"polyline":nn=new QA(en,rn);break;case"radialgradient":nn=new _A(en,rn);break;case"rect":nn=new BA(en,rn);break;case"svg":nn=new VA(en,rn);break;case"symbol":nn=new kA(en,rn);break;case"text":nn=new PA(en,rn);break;case"use":nn=new SA(en,rn);break;default:nn=new MA(en,rn)}if(null!=tn&&nn.element.hasAttribute("id")){var an=Tc(nn.element.id,{isIdentifier:!0});tn[an]=tn[an]||nn}return nn.children.forEach((function(en){return en.setParent(nn)})),nn}var HA=function(){function StyleSheets(en,tn){this.rootSvg=en,this.loadExternalSheets=tn,this.styleSheets=[]}return StyleSheets.prototype.load=function(){return __awaiter(this,void 0,void 0,(function(){var en;return __generator(this,(function(tn){switch(tn.label){case 0:return[4,this.collectStyleSheetTexts()];case 1:return en=tn.sent(),this.parseCssSheets(en),[2]}}))}))},StyleSheets.prototype.collectStyleSheetTexts=function(){return __awaiter(this,void 0,void 0,(function(){var en,tn,nn,rn,an;return __generator(this,(function(sn){switch(sn.label){case 0:if(en=[],this.loadExternalSheets&&this.rootSvg.ownerDocument)for(rn=0;rn<this.rootSvg.ownerDocument.childNodes.length;rn++)"xml-stylesheet"===(tn=this.rootSvg.ownerDocument.childNodes[rn]).nodeName&&"string"==typeof tn.data&&en.push(StyleSheets.loadSheet(tn.data.match(/href=["'].*?["']/)[0].split("=")[1].slice(1,-1)));for(nn=this.rootSvg.querySelectorAll("style,link"),rn=0;rn<nn.length;rn++)nodeIs(an=nn[rn],"style")?en.push(an.textContent):this.loadExternalSheets&&nodeIs(an,"link")&&"stylesheet"===an.getAttribute("rel")&&an.hasAttribute("href")&&en.push(StyleSheets.loadSheet(an.getAttribute("href")));return[4,Promise.all(en)];case 1:return[2,sn.sent().filter((function(en){return null!==en}))]}}))}))},StyleSheets.prototype.parseCssSheets=function(en){for(var tn=document.implementation.createHTMLDocument(""),nn=0,rn=en;nn<rn.length;nn++){var an=rn[nn],sn=tn.createElement("style");sn.textContent=an,tn.body.appendChild(sn);var cn=sn.sheet;if(cn instanceof CSSStyleSheet){for(var An=cn.cssRules.length-1;An>=0;An--){var dn=cn.cssRules[An];if(dn instanceof CSSStyleRule){var un=dn;if(un.selectorText.indexOf(",")>=0){cn.deleteRule(An);for(var pn=un.cssText.substring(un.selectorText.length),hn=StyleSheets.splitSelectorAtCommas(un.selectorText),gn=0;gn<hn.length;gn++)cn.insertRule(hn[gn]+pn,An+gn)}}else cn.deleteRule(An)}this.styleSheets.push(cn)}}},StyleSheets.splitSelectorAtCommas=function(en){for(var tn,nn=/,|["']/g,rn=/[^\\]["]/g,an=/[^\\][']/g,sn=[],cn="initial",An=-1,dn=rn,un=0;un<en.length;)switch(cn){case"initial":nn.lastIndex=un,(tn=nn.exec(en))?(","===tn[0]?(sn.push(en.substring(An+1,nn.lastIndex-1).trim()),An=nn.lastIndex-1):(cn="withinQuotes",dn='"'===tn[0]?rn:an),un=nn.lastIndex):(sn.push(en.substring(An+1).trim()),un=en.length);break;case"withinQuotes":dn.lastIndex=un,(tn=dn.exec(en))&&(un=dn.lastIndex,cn="initial")}return sn},StyleSheets.loadSheet=function(en){return new Promise((function(tn,nn){var rn=new XMLHttpRequest;rn.open("GET",en,!0),rn.responseType="text",rn.onload=function(){200!==rn.status&&nn(new Error("Error "+rn.status+": Failed to load '"+en+"'")),tn(rn.responseText)},rn.onerror=nn,rn.onabort=nn,rn.send(null)})).catch((function(){return null}))},StyleSheets.prototype.getPropertyValue=function(en,tn){for(var nn=[],rn=0,an=this.styleSheets;rn<an.length;rn++)for(var sn=an[rn],cn=0;cn<sn.cssRules.length;cn++){var An=sn.cssRules[cn];An.style.getPropertyValue(tn)&&en.matches(An.selectorText)&&nn.push(An)}if(0!==nn.length){var compare$1=function(en,nn){var rn=en.style.getPropertyPriority(tn);return rn!==nn.style.getPropertyPriority(tn)?"important"===rn?1:-1:function(en,tn){var nn,rn,an;if("string"==typeof en){if(-1!==en.indexOf(","))throw"Invalid CSS selector";nn=calculateSingle(en).specificityArray}else{if(!Array.isArray(en))throw"Invalid CSS selector or specificity array";if(4!==en.filter((function(en){return"number"==typeof en})).length)throw"Invalid specificity array";nn=en}if("string"==typeof tn){if(-1!==tn.indexOf(","))throw"Invalid CSS selector";rn=calculateSingle(tn).specificityArray}else{if(!Array.isArray(tn))throw"Invalid CSS selector or specificity array";if(4!==tn.filter((function(en){return"number"==typeof en})).length)throw"Invalid specificity array";rn=tn}for(an=0;an<4;an+=1){if(nn[an]<rn[an])return-1;if(nn[an]>rn[an])return 1}return 0}(en.selectorText,nn.selectorText)};return nn.reduce((function(en,tn){return 1===compare$1(en,tn)?en:tn})).style.getPropertyValue(tn)||void 0}},StyleSheets}();E.API.svg=function(en,tn){return void 0===tn&&(tn={}),function svg2pdf(en,tn,nn){var rn,an,sn;return void 0===nn&&(nn={}),__awaiter(this,void 0,void 0,(function(){var cn,An,dn,un,pn,hn,gn,_n,mn,fn;return __generator(this,(function(yn){switch(yn.label){case 0:return cn=null!==(rn=nn.x)&&void 0!==rn?rn:0,An=null!==(an=nn.y)&&void 0!==an?an:0,dn=null!==(sn=nn.loadExternalStyleSheets)&&void 0!==sn&&sn,pn=new eA(un={}),[4,(hn=new HA(en,dn)).load()];case 1:return yn.sent(),gn=new CA(tn.internal.pageSize.getWidth(),tn.internal.pageSize.getHeight()),_n=__assign(__assign({},nn),{element:en}),mn=new Jc(tn,{refsHandler:pn,styleSheets:hn,viewport:gn,svg2pdfParameters:_n}),tn.advancedAPI(),tn.saveGraphicsState(),tn.setCurrentTransformationMatrix(tn.Matrix(1,0,0,1,cn,An)),tn.setLineWidth(mn.attributeState.strokeWidth),fn=mn.attributeState.fill.color,tn.setFillColor(fn.r,fn.g,fn.b),tn.setFont(mn.attributeState.fontFamily),tn.setFontSize(mn.attributeState.fontSize*tn.internal.scaleFactor),[4,parse(en,un).render(mn)];case 2:return yn.sent(),tn.restoreGraphicsState(),tn.compatAPI(),mn.textMeasure.cleanupTextMeasuring(),[2,tn]}}))}))}(en,this,tn)};var zA={exports:{}},KA=zA.exports=function(){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var extendStatics=function(en,tn){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(en,tn){en.__proto__=tn}||function(en,tn){for(var nn in tn)Object.prototype.hasOwnProperty.call(tn,nn)&&(en[nn]=tn[nn])},extendStatics(en,tn)};function __extends(en,tn){if("function"!=typeof tn&&null!==tn)throw new TypeError("Class extends value "+String(tn)+" is not a constructor or null");function __(){this.constructor=en}extendStatics(en,tn),en.prototype=null===tn?Object.create(tn):(__.prototype=tn.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(en){for(var tn,nn=1,rn=arguments.length;nn<rn;nn++)for(var an in tn=arguments[nn])Object.prototype.hasOwnProperty.call(tn,an)&&(en[an]=tn[an]);return en},__assign.apply(this,arguments)};function __awaiter(en,tn,nn,rn){function adopt(en){return en instanceof nn?en:new nn((function(tn){tn(en)}))}return new(nn||(nn=Promise))((function(nn,an){function fulfilled(en){try{step(rn.next(en))}catch(en){an(en)}}function rejected(en){try{step(rn.throw(en))}catch(en){an(en)}}function step(en){en.done?nn(en.value):adopt(en.value).then(fulfilled,rejected)}step((rn=rn.apply(en,tn||[])).next())}))}function __generator(en,tn){var nn,rn,an,sn,cn={label:0,sent:function(){if(1&an[0])throw an[1];return an[1]},trys:[],ops:[]};return sn={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(sn[Symbol.iterator]=function(){return this}),sn;function verb(en){return function(tn){return step([en,tn])}}function step(sn){if(nn)throw new TypeError("Generator is already executing.");for(;cn;)try{if(nn=1,rn&&(an=2&sn[0]?rn.return:sn[0]?rn.throw||((an=rn.return)&&an.call(rn),0):rn.next)&&!(an=an.call(rn,sn[1])).done)return an;switch(rn=0,an&&(sn=[2&sn[0],an.value]),sn[0]){case 0:case 1:an=sn;break;case 4:return cn.label++,{value:sn[1],done:!1};case 5:cn.label++,rn=sn[1],sn=[0];continue;case 7:sn=cn.ops.pop(),cn.trys.pop();continue;default:if(!((an=(an=cn.trys).length>0&&an[an.length-1])||6!==sn[0]&&2!==sn[0])){cn=0;continue}if(3===sn[0]&&(!an||sn[1]>an[0]&&sn[1]<an[3])){cn.label=sn[1];break}if(6===sn[0]&&cn.label<an[1]){cn.label=an[1],an=sn;break}if(an&&cn.label<an[2]){cn.label=an[2],cn.ops.push(sn);break}an[2]&&cn.ops.pop(),cn.trys.pop();continue}sn=tn.call(en,cn)}catch(en){sn=[6,en],rn=0}finally{nn=an=0}if(5&sn[0])throw sn[1];return{value:sn[0]?sn[1]:void 0,done:!0}}}function __spreadArray(en,tn,nn){if(nn||2===arguments.length)for(var rn,an=0,sn=tn.length;an<sn;an++)!rn&&an in tn||(rn||(rn=Array.prototype.slice.call(tn,0,an)),rn[an]=tn[an]);return en.concat(rn||tn)}for(var en=function(){function Bounds(en,tn,nn,rn){this.left=en,this.top=tn,this.width=nn,this.height=rn}return Bounds.prototype.add=function(en,tn,nn,rn){return new Bounds(this.left+en,this.top+tn,this.width+nn,this.height+rn)},Bounds.fromClientRect=function(en,tn){return new Bounds(tn.left+en.windowBounds.left,tn.top+en.windowBounds.top,tn.width,tn.height)},Bounds.fromDOMRectList=function(en,tn){var nn=Array.from(tn).find((function(en){return 0!==en.width}));return nn?new Bounds(nn.left+en.windowBounds.left,nn.top+en.windowBounds.top,nn.width,nn.height):Bounds.EMPTY},Bounds.EMPTY=new Bounds(0,0,0,0),Bounds}(),parseBounds=function(tn,nn){return en.fromClientRect(tn,nn.getBoundingClientRect())},toCodePoints$1=function(en){for(var tn=[],nn=0,rn=en.length;nn<rn;){var an=en.charCodeAt(nn++);if(an>=55296&&an<=56319&&nn<rn){var sn=en.charCodeAt(nn++);56320==(64512&sn)?tn.push(((1023&an)<<10)+(1023&sn)+65536):(tn.push(an),nn--)}else tn.push(an)}return tn},fromCodePoint$1=function(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];if(String.fromCodePoint)return String.fromCodePoint.apply(String,en);var nn=en.length;if(!nn)return"";for(var rn=[],an=-1,sn="";++an<nn;){var cn=en[an];cn<=65535?rn.push(cn):(cn-=65536,rn.push(55296+(cn>>10),cn%1024+56320)),(an+1===nn||rn.length>16384)&&(sn+=String.fromCharCode.apply(String,rn),rn.length=0)}return sn},tn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rn=0;rn<tn.length;rn++)nn[tn.charCodeAt(rn)]=rn;for(var an="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),cn=0;cn<an.length;cn++)sn[an.charCodeAt(cn)]=cn;for(var slice16$1=function(en,tn,nn){return en.slice?en.slice(tn,nn):new Uint16Array(Array.prototype.slice.call(en,tn,nn))},An=function(){function Trie(en,tn,nn,rn,an,sn){this.initialValue=en,this.errorValue=tn,this.highStart=nn,this.highValueIndex=rn,this.index=an,this.data=sn}return Trie.prototype.get=function(en){var tn;if(en>=0){if(en<55296||en>56319&&en<=65535)return tn=((tn=this.index[en>>5])<<2)+(31&en),this.data[tn];if(en<=65535)return tn=((tn=this.index[2048+(en-55296>>5)])<<2)+(31&en),this.data[tn];if(en<this.highStart)return tn=2080+(en>>11),tn=this.index[tn],tn+=en>>5&63,tn=((tn=this.index[tn])<<2)+(31&en),this.data[tn];if(en<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Trie}(),dn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",un="undefined"==typeof Uint8Array?[]:new Uint8Array(256),pn=0;pn<dn.length;pn++)un[dn.charCodeAt(pn)]=pn;var hn=10,gn=13,_n=15,mn=17,fn=18,yn=19,bn=20,vn=21,wn=22,xn=24,kn=25,Cn=26,Sn=27,Bn=28,En=30,jn=32,Ln=33,Pn=34,Tn=35,Fn=37,Un=38,Nn=39,In=40,Mn=42,Rn=[9001,65288],On="×",Qn="÷",qn=function(en,tn){var nn=function(en){var tn,nn,rn,an,cn,An=.75*en.length,dn=en.length,un=0;"="===en[en.length-1]&&(An--,"="===en[en.length-2]&&An--);var pn="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(An):new Array(An),hn=Array.isArray(pn)?pn:new Uint8Array(pn);for(tn=0;tn<dn;tn+=4)nn=sn[en.charCodeAt(tn)],rn=sn[en.charCodeAt(tn+1)],an=sn[en.charCodeAt(tn+2)],cn=sn[en.charCodeAt(tn+3)],hn[un++]=nn<<2|rn>>4,hn[un++]=(15&rn)<<4|an>>2,hn[un++]=(3&an)<<6|63&cn;return pn}(en),rn=Array.isArray(nn)?function(en){for(var tn=en.length,nn=[],rn=0;rn<tn;rn+=4)nn.push(en[rn+3]<<24|en[rn+2]<<16|en[rn+1]<<8|en[rn]);return nn}(nn):new Uint32Array(nn),an=Array.isArray(nn)?function(en){for(var tn=en.length,nn=[],rn=0;rn<tn;rn+=2)nn.push(en[rn+1]<<8|en[rn]);return nn}(nn):new Uint16Array(nn),cn=slice16$1(an,12,rn[4]/2),dn=2===rn[5]?slice16$1(an,(24+rn[4])/2):function(en,tn,nn){return en.slice?en.slice(tn,nn):new Uint32Array(Array.prototype.slice.call(en,tn,nn))}(rn,Math.ceil((24+rn[4])/4));return new An(rn[0],rn[1],rn[2],rn[3],cn,dn)}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),Vn=[En,36],Gn=[1,2,3,5],Dn=[hn,8],Hn=[Sn,Cn],zn=Gn.concat(Dn),Kn=[Un,Nn,In,Pn,Tn],$n=[_n,gn],isAdjacentWithSpaceIgnored=function(en,tn,nn,rn){var an=rn[nn];if(Array.isArray(en)?-1!==en.indexOf(an):en===an)for(var sn=nn;sn<=rn.length;){if((dn=rn[++sn])===tn)return!0;if(dn!==hn)break}if(an===hn)for(sn=nn;sn>0;){var cn=rn[--sn];if(Array.isArray(en)?-1!==en.indexOf(cn):en===cn)for(var An=nn;An<=rn.length;){var dn;if((dn=rn[++An])===tn)return!0;if(dn!==hn)break}if(cn!==hn)break}return!1},previousNonSpaceClassType=function(en,tn){for(var nn=en;nn>=0;){var rn=tn[nn];if(rn!==hn)return rn;nn--}return 0},_lineBreakAtIndex=function(en,tn,nn,rn,an){if(0===nn[rn])return On;var sn=rn-1;if(Array.isArray(an)&&!0===an[sn])return On;var cn=sn-1,An=sn+1,dn=tn[sn],un=cn>=0?tn[cn]:0,pn=tn[An];if(2===dn&&3===pn)return On;if(-1!==Gn.indexOf(dn))return"!";if(-1!==Gn.indexOf(pn))return On;if(-1!==Dn.indexOf(pn))return On;if(8===previousNonSpaceClassType(sn,tn))return Qn;if(11===qn.get(en[sn]))return On;if((dn===jn||dn===Ln)&&11===qn.get(en[An]))return On;if(7===dn||7===pn)return On;if(9===dn)return On;if(-1===[hn,gn,_n].indexOf(dn)&&9===pn)return On;if(-1!==[mn,fn,yn,xn,Bn].indexOf(pn))return On;if(previousNonSpaceClassType(sn,tn)===wn)return On;if(isAdjacentWithSpaceIgnored(23,wn,sn,tn))return On;if(isAdjacentWithSpaceIgnored([mn,fn],vn,sn,tn))return On;if(isAdjacentWithSpaceIgnored(12,12,sn,tn))return On;if(dn===hn)return Qn;if(23===dn||23===pn)return On;if(16===pn||16===dn)return Qn;if(-1!==[gn,_n,vn].indexOf(pn)||14===dn)return On;if(36===un&&-1!==$n.indexOf(dn))return On;if(dn===Bn&&36===pn)return On;if(pn===bn)return On;if(-1!==Vn.indexOf(pn)&&dn===kn||-1!==Vn.indexOf(dn)&&pn===kn)return On;if(dn===Sn&&-1!==[Fn,jn,Ln].indexOf(pn)||-1!==[Fn,jn,Ln].indexOf(dn)&&pn===Cn)return On;if(-1!==Vn.indexOf(dn)&&-1!==Hn.indexOf(pn)||-1!==Hn.indexOf(dn)&&-1!==Vn.indexOf(pn))return On;if(-1!==[Sn,Cn].indexOf(dn)&&(pn===kn||-1!==[wn,_n].indexOf(pn)&&tn[An+1]===kn)||-1!==[wn,_n].indexOf(dn)&&pn===kn||dn===kn&&-1!==[kn,Bn,xn].indexOf(pn))return On;if(-1!==[kn,Bn,xn,mn,fn].indexOf(pn))for(var En=sn;En>=0;){if((Mn=tn[En])===kn)return On;if(-1===[Bn,xn].indexOf(Mn))break;En--}if(-1!==[Sn,Cn].indexOf(pn))for(En=-1!==[mn,fn].indexOf(dn)?cn:sn;En>=0;){var Mn;if((Mn=tn[En])===kn)return On;if(-1===[Bn,xn].indexOf(Mn))break;En--}if(Un===dn&&-1!==[Un,Nn,Pn,Tn].indexOf(pn)||-1!==[Nn,Pn].indexOf(dn)&&-1!==[Nn,In].indexOf(pn)||-1!==[In,Tn].indexOf(dn)&&pn===In)return On;if(-1!==Kn.indexOf(dn)&&-1!==[bn,Cn].indexOf(pn)||-1!==Kn.indexOf(pn)&&dn===Sn)return On;if(-1!==Vn.indexOf(dn)&&-1!==Vn.indexOf(pn))return On;if(dn===xn&&-1!==Vn.indexOf(pn))return On;if(-1!==Vn.concat(kn).indexOf(dn)&&pn===wn&&-1===Rn.indexOf(en[An])||-1!==Vn.concat(kn).indexOf(pn)&&dn===fn)return On;if(41===dn&&41===pn){for(var zn=nn[sn],Wn=1;zn>0&&41===tn[--zn];)Wn++;if(Wn%2!=0)return On}return dn===jn&&pn===Ln?On:Qn},cssFormattedClasses=function(en,tn){tn||(tn={lineBreak:"normal",wordBreak:"normal"});var nn=function(en,tn){void 0===tn&&(tn="strict");var nn=[],rn=[],an=[];return en.forEach((function(en,sn){var cn=qn.get(en);if(cn>50?(an.push(!0),cn-=50):an.push(!1),-1!==["normal","auto","loose"].indexOf(tn)&&-1!==[8208,8211,12316,12448].indexOf(en))return rn.push(sn),nn.push(16);if(4===cn||11===cn){if(0===sn)return rn.push(sn),nn.push(En);var An=nn[sn-1];return-1===zn.indexOf(An)?(rn.push(rn[sn-1]),nn.push(An)):(rn.push(sn),nn.push(En))}return rn.push(sn),31===cn?nn.push("strict"===tn?vn:Fn):cn===Mn||29===cn?nn.push(En):43===cn?en>=131072&&en<=196605||en>=196608&&en<=262141?nn.push(Fn):nn.push(En):void nn.push(cn)})),[rn,nn,an]}(en,tn.lineBreak),rn=nn[0],an=nn[1],sn=nn[2];"break-all"!==tn.wordBreak&&"break-word"!==tn.wordBreak||(an=an.map((function(en){return-1!==[kn,En,Mn].indexOf(en)?Fn:en})));var cn="keep-all"===tn.wordBreak?sn.map((function(tn,nn){return tn&&en[nn]>=19968&&en[nn]<=40959})):void 0;return[rn,an,cn]},Wn=function(){function Break(en,tn,nn,rn){this.codePoints=en,this.required="!"===tn,this.start=nn,this.end=rn}return Break.prototype.slice=function(){return fromCodePoint$1.apply(void 0,this.codePoints.slice(this.start,this.end))},Break}(),Xn=45,Yn=43,Zn=-1,isDigit=function(en){return en>=48&&en<=57},isHex=function(en){return isDigit(en)||en>=65&&en<=70||en>=97&&en<=102},isWhiteSpace=function(en){return 10===en||9===en||32===en},isNameStartCodePoint=function(en){return function(en){return function(en){return en>=97&&en<=122}(en)||function(en){return en>=65&&en<=90}(en)}(en)||function(en){return en>=128}(en)||95===en},isNameCodePoint=function(en){return isNameStartCodePoint(en)||isDigit(en)||en===Xn},isNonPrintableCodePoint=function(en){return en>=0&&en<=8||11===en||en>=14&&en<=31||127===en},isValidEscape=function(en,tn){return 92===en&&10!==tn},isIdentifierStart=function(en,tn,nn){return en===Xn?isNameStartCodePoint(tn)||isValidEscape(tn,nn):!!isNameStartCodePoint(en)||!(92!==en||!isValidEscape(en,tn))},isNumberStart=function(en,tn,nn){return en===Yn||en===Xn?!!isDigit(tn)||46===tn&&isDigit(nn):isDigit(46===en?tn:en)},stringToNumber=function(en){var tn=0,nn=1;en[tn]!==Yn&&en[tn]!==Xn||(en[tn]===Xn&&(nn=-1),tn++);for(var rn=[];isDigit(en[tn]);)rn.push(en[tn++]);var an=rn.length?parseInt(fromCodePoint$1.apply(void 0,rn),10):0;46===en[tn]&&tn++;for(var sn=[];isDigit(en[tn]);)sn.push(en[tn++]);var cn=sn.length,An=cn?parseInt(fromCodePoint$1.apply(void 0,sn),10):0;69!==en[tn]&&101!==en[tn]||tn++;var dn=1;en[tn]!==Yn&&en[tn]!==Xn||(en[tn]===Xn&&(dn=-1),tn++);for(var un=[];isDigit(en[tn]);)un.push(en[tn++]);var pn=un.length?parseInt(fromCodePoint$1.apply(void 0,un),10):0;return nn*(an+An*Math.pow(10,-cn))*Math.pow(10,dn*pn)},Jn={type:2},Tr={type:3},Ur={type:4},Rr={type:13},Qr={type:8},Vr={type:21},Gr={type:9},Dr={type:10},Hr={type:11},zr={type:12},Kr={type:14},$r={type:23},Wr={type:1},Xr={type:25},Yr={type:24},Zr={type:26},Jr={type:27},eo={type:28},to={type:29},no={type:31},ro={type:32},oo=function(){function Tokenizer(){this._value=[]}return Tokenizer.prototype.write=function(en){this._value=this._value.concat(toCodePoints$1(en))},Tokenizer.prototype.read=function(){for(var en=[],tn=this.consumeToken();tn!==ro;)en.push(tn),tn=this.consumeToken();return en},Tokenizer.prototype.consumeToken=function(){var en=this.consumeCodePoint();switch(en){case 34:return this.consumeStringToken(34);case 35:var tn=this.peekCodePoint(0),nn=this.peekCodePoint(1),rn=this.peekCodePoint(2);if(isNameCodePoint(tn)||isValidEscape(nn,rn)){var an=isIdentifierStart(tn,nn,rn)?2:1;return{type:5,value:this.consumeName(),flags:an}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Rr;break;case 39:return this.consumeStringToken(39);case 40:return Jn;case 41:return Tr;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Kr;break;case Yn:if(isNumberStart(en,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(en),this.consumeNumericToken();break;case 44:return Ur;case Xn:var sn=en,cn=this.peekCodePoint(0),An=this.peekCodePoint(1);if(isNumberStart(sn,cn,An))return this.reconsumeCodePoint(en),this.consumeNumericToken();if(isIdentifierStart(sn,cn,An))return this.reconsumeCodePoint(en),this.consumeIdentLikeToken();if(cn===Xn&&62===An)return this.consumeCodePoint(),this.consumeCodePoint(),Yr;break;case 46:if(isNumberStart(en,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(en),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var dn=this.consumeCodePoint();if(42===dn&&47===(dn=this.consumeCodePoint()))return this.consumeToken();if(dn===Zn)return this.consumeToken()}break;case 58:return Zr;case 59:return Jr;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===Xn&&this.peekCodePoint(2)===Xn)return this.consumeCodePoint(),this.consumeCodePoint(),Xr;break;case 64:var un=this.peekCodePoint(0),pn=this.peekCodePoint(1),hn=this.peekCodePoint(2);if(isIdentifierStart(un,pn,hn))return{type:7,value:this.consumeName()};break;case 91:return eo;case 92:if(isValidEscape(en,this.peekCodePoint(0)))return this.reconsumeCodePoint(en),this.consumeIdentLikeToken();break;case 93:return to;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Qr;break;case 123:return Hr;case 125:return zr;case 117:case 85:var gn=this.peekCodePoint(0),_n=this.peekCodePoint(1);return gn!==Yn||!isHex(_n)&&63!==_n||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(en),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Gr;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Vr;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Dr;break;case Zn:return ro}return isWhiteSpace(en)?(this.consumeWhiteSpace(),no):isDigit(en)?(this.reconsumeCodePoint(en),this.consumeNumericToken()):isNameStartCodePoint(en)?(this.reconsumeCodePoint(en),this.consumeIdentLikeToken()):{type:6,value:fromCodePoint$1(en)}},Tokenizer.prototype.consumeCodePoint=function(){var en=this._value.shift();return void 0===en?-1:en},Tokenizer.prototype.reconsumeCodePoint=function(en){this._value.unshift(en)},Tokenizer.prototype.peekCodePoint=function(en){return en>=this._value.length?-1:this._value[en]},Tokenizer.prototype.consumeUnicodeRangeToken=function(){for(var en=[],tn=this.consumeCodePoint();isHex(tn)&&en.length<6;)en.push(tn),tn=this.consumeCodePoint();for(var nn=!1;63===tn&&en.length<6;)en.push(tn),tn=this.consumeCodePoint(),nn=!0;if(nn)return{type:30,start:parseInt(fromCodePoint$1.apply(void 0,en.map((function(en){return 63===en?48:en}))),16),end:parseInt(fromCodePoint$1.apply(void 0,en.map((function(en){return 63===en?70:en}))),16)};var rn=parseInt(fromCodePoint$1.apply(void 0,en),16);if(this.peekCodePoint(0)===Xn&&isHex(this.peekCodePoint(1))){this.consumeCodePoint(),tn=this.consumeCodePoint();for(var an=[];isHex(tn)&&an.length<6;)an.push(tn),tn=this.consumeCodePoint();return{type:30,start:rn,end:parseInt(fromCodePoint$1.apply(void 0,an),16)}}return{type:30,start:rn,end:rn}},Tokenizer.prototype.consumeIdentLikeToken=function(){var en=this.consumeName();return"url"===en.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:en}):{type:20,value:en}},Tokenizer.prototype.consumeUrlToken=function(){var en=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn)return{type:22,value:""};var tn=this.peekCodePoint(0);if(39===tn||34===tn){var nn=this.consumeStringToken(this.consumeCodePoint());return 0===nn.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:nn.value}):(this.consumeBadUrlRemnants(),$r)}for(;;){var rn=this.consumeCodePoint();if(rn===Zn||41===rn)return{type:22,value:fromCodePoint$1.apply(void 0,en)};if(isWhiteSpace(rn))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:fromCodePoint$1.apply(void 0,en)}):(this.consumeBadUrlRemnants(),$r);if(34===rn||39===rn||40===rn||isNonPrintableCodePoint(rn))return this.consumeBadUrlRemnants(),$r;if(92===rn){if(!isValidEscape(rn,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),$r;en.push(this.consumeEscapedCodePoint())}else en.push(rn)}},Tokenizer.prototype.consumeWhiteSpace=function(){for(;isWhiteSpace(this.peekCodePoint(0));)this.consumeCodePoint()},Tokenizer.prototype.consumeBadUrlRemnants=function(){for(;;){var en=this.consumeCodePoint();if(41===en||en===Zn)return;isValidEscape(en,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Tokenizer.prototype.consumeStringSlice=function(en){for(var tn="";en>0;){var nn=Math.min(5e4,en);tn+=fromCodePoint$1.apply(void 0,this._value.splice(0,nn)),en-=nn}return this._value.shift(),tn},Tokenizer.prototype.consumeStringToken=function(en){for(var tn="",nn=0;;){var rn=this._value[nn];if(rn===Zn||void 0===rn||rn===en)return{type:0,value:tn+=this.consumeStringSlice(nn)};if(10===rn)return this._value.splice(0,nn),Wr;if(92===rn){var an=this._value[nn+1];an!==Zn&&void 0!==an&&(10===an?(tn+=this.consumeStringSlice(nn),nn=-1,this._value.shift()):isValidEscape(rn,an)&&(tn+=this.consumeStringSlice(nn),tn+=fromCodePoint$1(this.consumeEscapedCodePoint()),nn=-1))}nn++}},Tokenizer.prototype.consumeNumber=function(){var en=[],tn=4,nn=this.peekCodePoint(0);for(nn!==Yn&&nn!==Xn||en.push(this.consumeCodePoint());isDigit(this.peekCodePoint(0));)en.push(this.consumeCodePoint());nn=this.peekCodePoint(0);var rn=this.peekCodePoint(1);if(46===nn&&isDigit(rn))for(en.push(this.consumeCodePoint(),this.consumeCodePoint()),tn=8;isDigit(this.peekCodePoint(0));)en.push(this.consumeCodePoint());nn=this.peekCodePoint(0),rn=this.peekCodePoint(1);var an=this.peekCodePoint(2);if((69===nn||101===nn)&&((rn===Yn||rn===Xn)&&isDigit(an)||isDigit(rn)))for(en.push(this.consumeCodePoint(),this.consumeCodePoint()),tn=8;isDigit(this.peekCodePoint(0));)en.push(this.consumeCodePoint());return[stringToNumber(en),tn]},Tokenizer.prototype.consumeNumericToken=function(){var en=this.consumeNumber(),tn=en[0],nn=en[1],rn=this.peekCodePoint(0),an=this.peekCodePoint(1),sn=this.peekCodePoint(2);return isIdentifierStart(rn,an,sn)?{type:15,number:tn,flags:nn,unit:this.consumeName()}:37===rn?(this.consumeCodePoint(),{type:16,number:tn,flags:nn}):{type:17,number:tn,flags:nn}},Tokenizer.prototype.consumeEscapedCodePoint=function(){var en=this.consumeCodePoint();if(isHex(en)){for(var tn=fromCodePoint$1(en);isHex(this.peekCodePoint(0))&&tn.length<6;)tn+=fromCodePoint$1(this.consumeCodePoint());isWhiteSpace(this.peekCodePoint(0))&&this.consumeCodePoint();var nn=parseInt(tn,16);return 0===nn||function(en){return en>=55296&&en<=57343}(nn)||nn>1114111?65533:nn}return en===Zn?65533:en},Tokenizer.prototype.consumeName=function(){for(var en="";;){var tn=this.consumeCodePoint();if(isNameCodePoint(tn))en+=fromCodePoint$1(tn);else{if(!isValidEscape(tn,this.peekCodePoint(0)))return this.reconsumeCodePoint(tn),en;en+=fromCodePoint$1(this.consumeEscapedCodePoint())}}},Tokenizer}(),io=function(){function Parser(en){this._tokens=en}return Parser.create=function(en){var tn=new oo;return tn.write(en),new Parser(tn.read())},Parser.parseValue=function(en){return Parser.create(en).parseComponentValue()},Parser.parseValues=function(en){return Parser.create(en).parseComponentValues()},Parser.prototype.parseComponentValue=function(){for(var en=this.consumeToken();31===en.type;)en=this.consumeToken();if(32===en.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(en);var tn=this.consumeComponentValue();do{en=this.consumeToken()}while(31===en.type);if(32===en.type)return tn;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Parser.prototype.parseComponentValues=function(){for(var en=[];;){var tn=this.consumeComponentValue();if(32===tn.type)return en;en.push(tn),en.push()}},Parser.prototype.consumeComponentValue=function(){var en=this.consumeToken();switch(en.type){case 11:case 28:case 2:return this.consumeSimpleBlock(en.type);case 19:return this.consumeFunction(en)}return en},Parser.prototype.consumeSimpleBlock=function(en){for(var tn={type:en,values:[]},nn=this.consumeToken();;){if(32===nn.type||isEndingTokenFor(nn,en))return tn;this.reconsumeToken(nn),tn.values.push(this.consumeComponentValue()),nn=this.consumeToken()}},Parser.prototype.consumeFunction=function(en){for(var tn={name:en.value,values:[],type:18};;){var nn=this.consumeToken();if(32===nn.type||3===nn.type)return tn;this.reconsumeToken(nn),tn.values.push(this.consumeComponentValue())}},Parser.prototype.consumeToken=function(){var en=this._tokens.shift();return void 0===en?ro:en},Parser.prototype.reconsumeToken=function(en){this._tokens.unshift(en)},Parser}(),isDimensionToken=function(en){return 15===en.type},isNumberToken=function(en){return 17===en.type},isIdentToken=function(en){return 20===en.type},isStringToken=function(en){return 0===en.type},isIdentWithValue=function(en,tn){return isIdentToken(en)&&en.value===tn},nonWhiteSpace=function(en){return 31!==en.type},nonFunctionArgSeparator=function(en){return 31!==en.type&&4!==en.type},parseFunctionArgs=function(en){var tn=[],nn=[];return en.forEach((function(en){if(4===en.type){if(0===nn.length)throw new Error("Error parsing function args, zero tokens for arg");return tn.push(nn),void(nn=[])}31!==en.type&&nn.push(en)})),nn.length&&tn.push(nn),tn},isEndingTokenFor=function(en,tn){return 11===tn&&12===en.type||28===tn&&29===en.type||2===tn&&3===en.type},isLength=function(en){return 17===en.type||15===en.type},isLengthPercentage=function(en){return 16===en.type||isLength(en)},parseLengthPercentageTuple=function(en){return en.length>1?[en[0],en[1]]:[en[0]]},ao={type:17,number:0,flags:4},so={type:16,number:50,flags:4},lo={type:16,number:100,flags:4},getAbsoluteValueForTuple=function(en,tn,nn){var rn=en[0],an=en[1];return[getAbsoluteValue(rn,tn),getAbsoluteValue(void 0!==an?an:rn,nn)]},getAbsoluteValue=function(en,tn){if(16===en.type)return en.number/100*tn;if(isDimensionToken(en))switch(en.unit){case"rem":case"em":return 16*en.number;default:return en.number}return en.number},co="grad",Ao="turn",Di_parse=function(en,tn){if(15===tn.type)switch(tn.unit){case"deg":return Math.PI*tn.number/180;case co:return Math.PI/200*tn.number;case"rad":return tn.number;case Ao:return 2*Math.PI*tn.number}throw new Error("Unsupported angle type")},isAngle=function(en){return 15===en.type&&("deg"===en.unit||en.unit===co||"rad"===en.unit||en.unit===Ao)},parseNamedSide=function(en){switch(en.filter(isIdentToken).map((function(en){return en.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ao,ao];case"to top":case"bottom":return deg(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ao,lo];case"to right":case"left":return deg(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[lo,lo];case"to bottom":case"top":return deg(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[lo,ao];case"to left":case"right":return deg(270)}return 0},deg=function(en){return Math.PI*en/180},Ri_parse=function(en,tn){if(18===tn.type){var nn=uo[tn.name];if(void 0===nn)throw new Error('Attempting to parse an unsupported color function "'+tn.name+'"');return nn(en,tn.values)}if(5===tn.type){if(3===tn.value.length){var rn=tn.value.substring(0,1),an=tn.value.substring(1,2),sn=tn.value.substring(2,3);return pack(parseInt(rn+rn,16),parseInt(an+an,16),parseInt(sn+sn,16),1)}if(4===tn.value.length){rn=tn.value.substring(0,1),an=tn.value.substring(1,2),sn=tn.value.substring(2,3);var cn=tn.value.substring(3,4);return pack(parseInt(rn+rn,16),parseInt(an+an,16),parseInt(sn+sn,16),parseInt(cn+cn,16)/255)}if(6===tn.value.length)return rn=tn.value.substring(0,2),an=tn.value.substring(2,4),sn=tn.value.substring(4,6),pack(parseInt(rn,16),parseInt(an,16),parseInt(sn,16),1);if(8===tn.value.length)return rn=tn.value.substring(0,2),an=tn.value.substring(2,4),sn=tn.value.substring(4,6),cn=tn.value.substring(6,8),pack(parseInt(rn,16),parseInt(an,16),parseInt(sn,16),parseInt(cn,16)/255)}if(20===tn.type){var An=po[tn.value.toUpperCase()];if(void 0!==An)return An}return po.TRANSPARENT},isTransparent=function(en){return 0==(255&en)},asString=function(en){var tn=255&en,nn=255&en>>8,rn=255&en>>16,an=255&en>>24;return tn<255?"rgba("+an+","+rn+","+nn+","+tn/255+")":"rgb("+an+","+rn+","+nn+")"},pack=function(en,tn,nn,rn){return(en<<24|tn<<16|nn<<8|Math.round(255*rn)<<0)>>>0},getTokenColorValue=function(en,tn){if(17===en.type)return en.number;if(16===en.type){var nn=3===tn?1:255;return 3===tn?en.number/100*nn:Math.round(en.number/100*nn)}return 0},rgb=function(en,tn){var nn=tn.filter(nonFunctionArgSeparator);if(3===nn.length){var rn=nn.map(getTokenColorValue),an=rn[0],sn=rn[1],cn=rn[2];return pack(an,sn,cn,1)}if(4===nn.length){var An=nn.map(getTokenColorValue),dn=(an=An[0],sn=An[1],cn=An[2],An[3]);return pack(an,sn,cn,dn)}return 0};function hue2rgb(en,tn,nn){return nn<0&&(nn+=1),nn>=1&&(nn-=1),nn<1/6?(tn-en)*nn*6+en:nn<.5?tn:nn<2/3?6*(tn-en)*(2/3-nn)+en:en}var hsl=function(en,tn){var nn=tn.filter(nonFunctionArgSeparator),rn=nn[0],an=nn[1],sn=nn[2],cn=nn[3],An=(17===rn.type?deg(rn.number):Di_parse(en,rn))/(2*Math.PI),dn=isLengthPercentage(an)?an.number/100:0,un=isLengthPercentage(sn)?sn.number/100:0,pn=void 0!==cn&&isLengthPercentage(cn)?getAbsoluteValue(cn,1):1;if(0===dn)return pack(255*un,255*un,255*un,1);var hn=un<=.5?un*(dn+1):un+dn-un*dn,gn=2*un-hn,_n=hue2rgb(gn,hn,An+1/3),mn=hue2rgb(gn,hn,An),fn=hue2rgb(gn,hn,An-1/3);return pack(255*_n,255*mn,255*fn,pn)},uo={hsl:hsl,hsla:hsl,rgb:rgb,rgba:rgb},parseColor=function(en,tn){return Ri_parse(en,io.create(tn).parseComponentValue())},po={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},ho={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(en,tn){return tn.map((function(en){if(isIdentToken(en))switch(en.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},go={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},parseColorStop=function(en,tn){var nn=Ri_parse(en,tn[0]),rn=tn[1];return rn&&isLengthPercentage(rn)?{color:nn,stop:rn}:{color:nn,stop:null}},processColorStops=function(en,tn){var nn=en[0],rn=en[en.length-1];null===nn.stop&&(nn.stop=ao),null===rn.stop&&(rn.stop=lo);for(var an=[],sn=0,cn=0;cn<en.length;cn++){var An=en[cn].stop;if(null!==An){var dn=getAbsoluteValue(An,tn);dn>sn?an.push(dn):an.push(sn),sn=dn}else an.push(null)}var un=null;for(cn=0;cn<an.length;cn++){var pn=an[cn];if(null===pn)null===un&&(un=cn);else if(null!==un){for(var hn=cn-un,gn=(pn-an[un-1])/(hn+1),_n=1;_n<=hn;_n++)an[un+_n-1]=gn*_n;un=null}}return en.map((function(en,nn){return{color:en.color,stop:Math.max(Math.min(1,an[nn]/tn),0)}}))},calculateGradientDirection=function(en,tn,nn){var rn="number"==typeof en?en:function(en,tn,nn){var rn=tn/2,an=nn/2,sn=getAbsoluteValue(en[0],tn)-rn,cn=an-getAbsoluteValue(en[1],nn);return(Math.atan2(cn,sn)+2*Math.PI)%(2*Math.PI)}(en,tn,nn),an=Math.abs(tn*Math.sin(rn))+Math.abs(nn*Math.cos(rn)),sn=tn/2,cn=nn/2,An=an/2,dn=Math.sin(rn-Math.PI/2)*An,un=Math.cos(rn-Math.PI/2)*An;return[an,sn-un,sn+un,cn-dn,cn+dn]},distance=function(en,tn){return Math.sqrt(en*en+tn*tn)},findCorner=function(en,tn,nn,rn,an){return[[0,0],[0,tn],[en,0],[en,tn]].reduce((function(en,tn){var sn=tn[0],cn=tn[1],An=distance(nn-sn,rn-cn);return(an?An<en.optimumDistance:An>en.optimumDistance)?{optimumCorner:tn,optimumDistance:An}:en}),{optimumDistance:an?1/0:-1/0,optimumCorner:null}).optimumCorner},prefixLinearGradient=function(en,tn){var nn=deg(180),rn=[];return parseFunctionArgs(tn).forEach((function(tn,an){if(0===an){var sn=tn[0];if(20===sn.type&&-1!==["top","left","right","bottom"].indexOf(sn.value))return void(nn=parseNamedSide(tn));if(isAngle(sn))return void(nn=(Di_parse(en,sn)+deg(270))%deg(360))}var cn=parseColorStop(en,tn);rn.push(cn)})),{angle:nn,stops:rn,type:1}},_o="closest-side",mo="farthest-side",fo="closest-corner",yo="farthest-corner",bo="circle",vo="ellipse",wo="cover",xo="contain",prefixRadialGradient=function(en,tn){var nn=0,rn=3,an=[],sn=[];return parseFunctionArgs(tn).forEach((function(tn,cn){var An=!0;if(0===cn?An=tn.reduce((function(en,tn){if(isIdentToken(tn))switch(tn.value){case"center":return sn.push(so),!1;case"top":case"left":return sn.push(ao),!1;case"right":case"bottom":return sn.push(lo),!1}else if(isLengthPercentage(tn)||isLength(tn))return sn.push(tn),!1;return en}),An):1===cn&&(An=tn.reduce((function(en,tn){if(isIdentToken(tn))switch(tn.value){case bo:return nn=0,!1;case vo:return nn=1,!1;case xo:case _o:return rn=0,!1;case mo:return rn=1,!1;case fo:return rn=2,!1;case wo:case yo:return rn=3,!1}else if(isLength(tn)||isLengthPercentage(tn))return Array.isArray(rn)||(rn=[]),rn.push(tn),!1;return en}),An)),An){var dn=parseColorStop(en,tn);an.push(dn)}})),{size:rn,shape:nn,stops:an,position:sn,type:2}},ts_parse=function(en,tn){if(22===tn.type){var nn={url:tn.value,type:0};return en.cache.addImage(tn.value),nn}if(18===tn.type){var rn=Co[tn.name];if(void 0===rn)throw new Error('Attempting to parse an unsupported image function "'+tn.name+'"');return rn(en,tn.values)}throw new Error("Unsupported image type "+tn.type)};var ko,Co={"linear-gradient":function(en,tn){var nn=deg(180),rn=[];return parseFunctionArgs(tn).forEach((function(tn,an){if(0===an){var sn=tn[0];if(20===sn.type&&"to"===sn.value)return void(nn=parseNamedSide(tn));if(isAngle(sn))return void(nn=Di_parse(en,sn))}var cn=parseColorStop(en,tn);rn.push(cn)})),{angle:nn,stops:rn,type:1}},"-moz-linear-gradient":prefixLinearGradient,"-ms-linear-gradient":prefixLinearGradient,"-o-linear-gradient":prefixLinearGradient,"-webkit-linear-gradient":prefixLinearGradient,"radial-gradient":function(en,tn){var nn=0,rn=3,an=[],sn=[];return parseFunctionArgs(tn).forEach((function(tn,cn){var An=!0;if(0===cn){var dn=!1;An=tn.reduce((function(en,tn){if(dn)if(isIdentToken(tn))switch(tn.value){case"center":return sn.push(so),en;case"top":case"left":return sn.push(ao),en;case"right":case"bottom":return sn.push(lo),en}else(isLengthPercentage(tn)||isLength(tn))&&sn.push(tn);else if(isIdentToken(tn))switch(tn.value){case bo:return nn=0,!1;case vo:return nn=1,!1;case"at":return dn=!0,!1;case _o:return rn=0,!1;case wo:case mo:return rn=1,!1;case xo:case fo:return rn=2,!1;case yo:return rn=3,!1}else if(isLength(tn)||isLengthPercentage(tn))return Array.isArray(rn)||(rn=[]),rn.push(tn),!1;return en}),An)}if(An){var un=parseColorStop(en,tn);an.push(un)}})),{size:rn,shape:nn,stops:an,position:sn,type:2}},"-moz-radial-gradient":prefixRadialGradient,"-ms-radial-gradient":prefixRadialGradient,"-o-radial-gradient":prefixRadialGradient,"-webkit-radial-gradient":prefixRadialGradient,"-webkit-gradient":function(en,tn){var nn=deg(180),rn=[],an=1;return parseFunctionArgs(tn).forEach((function(tn,nn){var sn=tn[0];if(0===nn){if(isIdentToken(sn)&&"linear"===sn.value)return void(an=1);if(isIdentToken(sn)&&"radial"===sn.value)return void(an=2)}if(18===sn.type)if("from"===sn.name){var cn=Ri_parse(en,sn.values[0]);rn.push({stop:ao,color:cn})}else if("to"===sn.name)cn=Ri_parse(en,sn.values[0]),rn.push({stop:lo,color:cn});else if("color-stop"===sn.name){var An=sn.values.filter(nonFunctionArgSeparator);if(2===An.length){cn=Ri_parse(en,An[1]);var dn=An[0];isNumberToken(dn)&&rn.push({stop:{type:16,number:100*dn.number,flags:dn.flags},color:cn})}}})),1===an?{angle:(nn+deg(180))%deg(360),stops:rn,type:an}:{size:3,shape:0,stops:rn,position:[],type:an}}},So={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(en,tn){if(0===tn.length)return[];var nn=tn[0];return 20===nn.type&&"none"===nn.value?[]:tn.filter((function(en){return nonFunctionArgSeparator(en)&&function isSupportedImage(en){return!(20===en.type&&"none"===en.value||18===en.type&&!Co[en.name])}(en)})).map((function(tn){return ts_parse(en,tn)}))}},Bo={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(en,tn){return tn.map((function(en){if(isIdentToken(en))switch(en.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Eo={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(en,tn){return parseFunctionArgs(tn).map((function(en){return en.filter(isLengthPercentage)})).map(parseLengthPercentageTuple)}},jo={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(en,tn){return parseFunctionArgs(tn).map((function(en){return en.filter(isIdentToken).map((function(en){return en.value})).join(" ")})).map(parseBackgroundRepeat)}},parseBackgroundRepeat=function(en){switch(en){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(en){en.AUTO="auto",en.CONTAIN="contain",en.COVER="cover"}(ko||(ko={}));var Lo,Po={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(en,tn){return parseFunctionArgs(tn).map((function(en){return en.filter(isBackgroundSizeInfoToken)}))}},isBackgroundSizeInfoToken=function(en){return isIdentToken(en)||isLengthPercentage(en)},borderColorForSide=function(en){return{name:"border-"+en+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},To=borderColorForSide("top"),Fo=borderColorForSide("right"),Uo=borderColorForSide("bottom"),No=borderColorForSide("left"),borderRadiusForSide=function(en){return{name:"border-radius-"+en,initialValue:"0 0",prefix:!1,type:1,parse:function(en,tn){return parseLengthPercentageTuple(tn.filter(isLengthPercentage))}}},Io=borderRadiusForSide("top-left"),Mo=borderRadiusForSide("top-right"),Ro=borderRadiusForSide("bottom-right"),Oo=borderRadiusForSide("bottom-left"),borderStyleForSide=function(en){return{name:"border-"+en+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(en,tn){switch(tn){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Qo=borderStyleForSide("top"),qo=borderStyleForSide("right"),Vo=borderStyleForSide("bottom"),Go=borderStyleForSide("left"),borderWidthForSide=function(en){return{name:"border-"+en+"-width",initialValue:"0",type:0,prefix:!1,parse:function(en,tn){return isDimensionToken(tn)?tn.number:0}}},Do=borderWidthForSide("top"),Ho=borderWidthForSide("right"),zo=borderWidthForSide("bottom"),Ko=borderWidthForSide("left"),$o={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Wo={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(en,tn){return"rtl"===tn?1:0}},Xo={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(en,tn){return tn.filter(isIdentToken).reduce((function(en,tn){return en|parseDisplayValue(tn.value)}),0)}},parseDisplayValue=function(en){switch(en){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Yo={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(en,tn){switch(tn){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Zo={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(en,tn){return 20===tn.type&&"normal"===tn.value?0:17===tn.type||15===tn.type?tn.number:0}};!function(en){en.NORMAL="normal",en.STRICT="strict"}(Lo||(Lo={}));var Jo,ei={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(en,tn){return"strict"===tn?Lo.STRICT:Lo.NORMAL}},ti={name:"line-height",initialValue:"normal",prefix:!1,type:4},computeLineHeight=function(en,tn){return isIdentToken(en)&&"normal"===en.value?1.2*tn:17===en.type?tn*en.number:isLengthPercentage(en)?getAbsoluteValue(en,tn):tn},ni={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(en,tn){return 20===tn.type&&"none"===tn.value?null:ts_parse(en,tn)}},ri={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(en,tn){return"inside"===tn?0:1}},oi={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(en,tn){switch(tn){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},marginForSide=function(en){return{name:"margin-"+en,initialValue:"0",prefix:!1,type:4}},ii=marginForSide("top"),ai=marginForSide("right"),si=marginForSide("bottom"),li=marginForSide("left"),ci={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(en,tn){return tn.filter(isIdentToken).map((function(en){switch(en.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Ai={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(en,tn){return"break-word"===tn?"break-word":"normal"}},paddingForSide=function(en){return{name:"padding-"+en,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},di=paddingForSide("top"),ui=paddingForSide("right"),pi=paddingForSide("bottom"),hi=paddingForSide("left"),gi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(en,tn){switch(tn){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},_i={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(en,tn){switch(tn){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},mi={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(en,tn){return 1===tn.length&&isIdentWithValue(tn[0],"none")?[]:parseFunctionArgs(tn).map((function(tn){for(var nn={color:po.TRANSPARENT,offsetX:ao,offsetY:ao,blur:ao},rn=0,an=0;an<tn.length;an++){var sn=tn[an];isLength(sn)?(0===rn?nn.offsetX=sn:1===rn?nn.offsetY=sn:nn.blur=sn,rn++):nn.color=Ri_parse(en,sn)}return nn}))}},fi={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(en,tn){switch(tn){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},yi={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(en,tn){if(20===tn.type&&"none"===tn.value)return null;if(18===tn.type){var nn=bi[tn.name];if(void 0===nn)throw new Error('Attempting to parse an unsupported transform function "'+tn.name+'"');return nn(tn.values)}return null}},bi={matrix:function(en){var tn=en.filter((function(en){return 17===en.type})).map((function(en){return en.number}));return 6===tn.length?tn:null},matrix3d:function(en){var tn=en.filter((function(en){return 17===en.type})).map((function(en){return en.number})),nn=tn[0],rn=tn[1];tn[2],tn[3];var an=tn[4],sn=tn[5];tn[6],tn[7],tn[8],tn[9],tn[10],tn[11];var cn=tn[12],An=tn[13];return tn[14],tn[15],16===tn.length?[nn,rn,an,sn,cn,An]:null}},vi={type:16,number:50,flags:4},wi=[vi,vi],xi={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(en,tn){var nn=tn.filter(isLengthPercentage);return 2!==nn.length?wi:[nn[0],nn[1]]}},ki={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(en,tn){switch(tn){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(en){en.NORMAL="normal",en.BREAK_ALL="break-all",en.KEEP_ALL="keep-all"}(Jo||(Jo={}));for(var Ci={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(en,tn){switch(tn){case"break-all":return Jo.BREAK_ALL;case"keep-all":return Jo.KEEP_ALL;default:return Jo.NORMAL}}},Si={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(en,tn){if(20===tn.type)return{auto:!0,order:0};if(isNumberToken(tn))return{auto:!1,order:tn.number};throw new Error("Invalid z-index number parsed")}},Bi={name:"time",parse:function(en,tn){if(15===tn.type)switch(tn.unit.toLowerCase()){case"s":return 1e3*tn.number;case"ms":return tn.number}throw new Error("Unsupported time type")}},Ei={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(en,tn){return isNumberToken(tn)?tn.number:1}},ji={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Li={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(en,tn){return tn.filter(isIdentToken).map((function(en){switch(en.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(en){return 0!==en}))}},Pi={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(en,tn){var nn=[],rn=[];return tn.forEach((function(en){switch(en.type){case 20:case 0:nn.push(en.value);break;case 17:nn.push(en.number.toString());break;case 4:rn.push(nn.join(" ")),nn.length=0}})),nn.length&&rn.push(nn.join(" ")),rn.map((function(en){return-1===en.indexOf(" ")?en:"'"+en+"'"}))}},Ti={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Fi={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(en,tn){return isNumberToken(tn)?tn.number:isIdentToken(tn)&&"bold"===tn.value?700:400}},Ui={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(en,tn){return tn.filter(isIdentToken).map((function(en){return en.value}))}},Ni={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(en,tn){switch(tn){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},contains=function(en,tn){return 0!=(en&tn)},Ii={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(en,tn){if(0===tn.length)return[];var nn=tn[0];return 20===nn.type&&"none"===nn.value?[]:tn}},Mi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(en,tn){if(0===tn.length)return null;var nn=tn[0];if(20===nn.type&&"none"===nn.value)return null;for(var rn=[],an=tn.filter(nonWhiteSpace),sn=0;sn<an.length;sn++){var cn=an[sn],An=an[sn+1];if(20===cn.type){var dn=An&&isNumberToken(An)?An.number:1;rn.push({counter:cn.value,increment:dn})}}return rn}},Ri={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(en,tn){if(0===tn.length)return[];for(var nn=[],rn=tn.filter(nonWhiteSpace),an=0;an<rn.length;an++){var sn=rn[an],cn=rn[an+1];if(isIdentToken(sn)&&"none"!==sn.value){var An=cn&&isNumberToken(cn)?cn.number:0;nn.push({counter:sn.value,reset:An})}}return nn}},Oi={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(en,tn){return tn.filter(isDimensionToken).map((function(tn){return Bi.parse(en,tn)}))}},Qi={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(en,tn){if(0===tn.length)return null;var nn=tn[0];if(20===nn.type&&"none"===nn.value)return null;var rn=[],an=tn.filter(isStringToken);if(an.length%2!=0)return null;for(var sn=0;sn<an.length;sn+=2){var cn=an[sn].value,An=an[sn+1].value;rn.push({open:cn,close:An})}return rn}},getQuote=function(en,tn,nn){if(!en)return"";var rn=en[Math.min(tn,en.length-1)];return rn?nn?rn.open:rn.close:""},qi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(en,tn){return 1===tn.length&&isIdentWithValue(tn[0],"none")?[]:parseFunctionArgs(tn).map((function(tn){for(var nn={color:255,offsetX:ao,offsetY:ao,blur:ao,spread:ao,inset:!1},rn=0,an=0;an<tn.length;an++){var sn=tn[an];isIdentWithValue(sn,"inset")?nn.inset=!0:isLength(sn)?(0===rn?nn.offsetX=sn:1===rn?nn.offsetY=sn:2===rn?nn.blur=sn:nn.spread=sn,rn++):nn.color=Ri_parse(en,sn)}return nn}))}},Vi={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(en,tn){var nn=[];return tn.filter(isIdentToken).forEach((function(en){switch(en.value){case"stroke":nn.push(1);break;case"fill":nn.push(0);break;case"markers":nn.push(2)}})),[0,1,2].forEach((function(en){-1===nn.indexOf(en)&&nn.push(en)})),nn}},Gi={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Di={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(en,tn){return isDimensionToken(tn)?tn.number:0}},Hi=function(){function CSSParsedDeclaration(en,tn){var nn,rn;this.animationDuration=parse(en,Oi,tn.animationDuration),this.backgroundClip=parse(en,ho,tn.backgroundClip),this.backgroundColor=parse(en,go,tn.backgroundColor),this.backgroundImage=parse(en,So,tn.backgroundImage),this.backgroundOrigin=parse(en,Bo,tn.backgroundOrigin),this.backgroundPosition=parse(en,Eo,tn.backgroundPosition),this.backgroundRepeat=parse(en,jo,tn.backgroundRepeat),this.backgroundSize=parse(en,Po,tn.backgroundSize),this.borderTopColor=parse(en,To,tn.borderTopColor),this.borderRightColor=parse(en,Fo,tn.borderRightColor),this.borderBottomColor=parse(en,Uo,tn.borderBottomColor),this.borderLeftColor=parse(en,No,tn.borderLeftColor),this.borderTopLeftRadius=parse(en,Io,tn.borderTopLeftRadius),this.borderTopRightRadius=parse(en,Mo,tn.borderTopRightRadius),this.borderBottomRightRadius=parse(en,Ro,tn.borderBottomRightRadius),this.borderBottomLeftRadius=parse(en,Oo,tn.borderBottomLeftRadius),this.borderTopStyle=parse(en,Qo,tn.borderTopStyle),this.borderRightStyle=parse(en,qo,tn.borderRightStyle),this.borderBottomStyle=parse(en,Vo,tn.borderBottomStyle),this.borderLeftStyle=parse(en,Go,tn.borderLeftStyle),this.borderTopWidth=parse(en,Do,tn.borderTopWidth),this.borderRightWidth=parse(en,Ho,tn.borderRightWidth),this.borderBottomWidth=parse(en,zo,tn.borderBottomWidth),this.borderLeftWidth=parse(en,Ko,tn.borderLeftWidth),this.boxShadow=parse(en,qi,tn.boxShadow),this.color=parse(en,$o,tn.color),this.direction=parse(en,Wo,tn.direction),this.display=parse(en,Xo,tn.display),this.float=parse(en,Yo,tn.cssFloat),this.fontFamily=parse(en,Pi,tn.fontFamily),this.fontSize=parse(en,Ti,tn.fontSize),this.fontStyle=parse(en,Ni,tn.fontStyle),this.fontVariant=parse(en,Ui,tn.fontVariant),this.fontWeight=parse(en,Fi,tn.fontWeight),this.letterSpacing=parse(en,Zo,tn.letterSpacing),this.lineBreak=parse(en,ei,tn.lineBreak),this.lineHeight=parse(en,ti,tn.lineHeight),this.listStyleImage=parse(en,ni,tn.listStyleImage),this.listStylePosition=parse(en,ri,tn.listStylePosition),this.listStyleType=parse(en,oi,tn.listStyleType),this.marginTop=parse(en,ii,tn.marginTop),this.marginRight=parse(en,ai,tn.marginRight),this.marginBottom=parse(en,si,tn.marginBottom),this.marginLeft=parse(en,li,tn.marginLeft),this.opacity=parse(en,Ei,tn.opacity);var an=parse(en,ci,tn.overflow);this.overflowX=an[0],this.overflowY=an[an.length>1?1:0],this.overflowWrap=parse(en,Ai,tn.overflowWrap),this.paddingTop=parse(en,di,tn.paddingTop),this.paddingRight=parse(en,ui,tn.paddingRight),this.paddingBottom=parse(en,pi,tn.paddingBottom),this.paddingLeft=parse(en,hi,tn.paddingLeft),this.paintOrder=parse(en,Vi,tn.paintOrder),this.position=parse(en,_i,tn.position),this.textAlign=parse(en,gi,tn.textAlign),this.textDecorationColor=parse(en,ji,null!==(nn=tn.textDecorationColor)&&void 0!==nn?nn:tn.color),this.textDecorationLine=parse(en,Li,null!==(rn=tn.textDecorationLine)&&void 0!==rn?rn:tn.textDecoration),this.textShadow=parse(en,mi,tn.textShadow),this.textTransform=parse(en,fi,tn.textTransform),this.transform=parse(en,yi,tn.transform),this.transformOrigin=parse(en,xi,tn.transformOrigin),this.visibility=parse(en,ki,tn.visibility),this.webkitTextStrokeColor=parse(en,Gi,tn.webkitTextStrokeColor),this.webkitTextStrokeWidth=parse(en,Di,tn.webkitTextStrokeWidth),this.wordBreak=parse(en,Ci,tn.wordBreak),this.zIndex=parse(en,Si,tn.zIndex)}return CSSParsedDeclaration.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},CSSParsedDeclaration.prototype.isTransparent=function(){return isTransparent(this.backgroundColor)},CSSParsedDeclaration.prototype.isTransformed=function(){return null!==this.transform},CSSParsedDeclaration.prototype.isPositioned=function(){return 0!==this.position},CSSParsedDeclaration.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},CSSParsedDeclaration.prototype.isFloating=function(){return 0!==this.float},CSSParsedDeclaration.prototype.isInlineLevel=function(){return contains(this.display,4)||contains(this.display,33554432)||contains(this.display,268435456)||contains(this.display,536870912)||contains(this.display,67108864)||contains(this.display,134217728)},CSSParsedDeclaration}(),zi=function CSSParsedPseudoDeclaration(en,tn){this.content=parse(en,Ii,tn.content),this.quotes=parse(en,Qi,tn.quotes)},Ki=function CSSParsedCounterDeclaration(en,tn){this.counterIncrement=parse(en,Mi,tn.counterIncrement),this.counterReset=parse(en,Ri,tn.counterReset)},parse=function(en,tn,nn){var rn=new oo,an=null!=nn?nn.toString():tn.initialValue;rn.write(an);var sn=new io(rn.read());switch(tn.type){case 2:var cn=sn.parseComponentValue();return tn.parse(en,isIdentToken(cn)?cn.value:tn.initialValue);case 0:return tn.parse(en,sn.parseComponentValue());case 1:return tn.parse(en,sn.parseComponentValues());case 4:return sn.parseComponentValue();case 3:switch(tn.format){case"angle":return Di_parse(en,sn.parseComponentValue());case"color":return Ri_parse(en,sn.parseComponentValue());case"image":return ts_parse(en,sn.parseComponentValue());case"length":var An=sn.parseComponentValue();return isLength(An)?An:ao;case"length-percentage":var dn=sn.parseComponentValue();return isLengthPercentage(dn)?dn:ao;case"time":return Bi.parse(en,sn.parseComponentValue())}}},isDebugging=function(en,tn){var nn=function(en){switch(en.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(en);return 1===nn||tn===nn},$i=function ElementContainer(en,tn){this.context=en,this.textNodes=[],this.elements=[],this.flags=0,isDebugging(tn,3),this.styles=new Hi(en,window.getComputedStyle(tn,null)),isHTMLElementNode(tn)&&(this.styles.animationDuration.some((function(en){return en>0}))&&(tn.style.animationDuration="0s"),null!==this.styles.transform&&(tn.style.transform="none")),this.bounds=parseBounds(this.context,tn),isDebugging(tn,4)&&(this.flags|=16)},Wi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xi="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Yi=0;Yi<Wi.length;Yi++)Xi[Wi.charCodeAt(Yi)]=Yi;for(var slice16=function(en,tn,nn){return en.slice?en.slice(tn,nn):new Uint16Array(Array.prototype.slice.call(en,tn,nn))},Zi=function(){function Trie(en,tn,nn,rn,an,sn){this.initialValue=en,this.errorValue=tn,this.highStart=nn,this.highValueIndex=rn,this.index=an,this.data=sn}return Trie.prototype.get=function(en){var tn;if(en>=0){if(en<55296||en>56319&&en<=65535)return tn=((tn=this.index[en>>5])<<2)+(31&en),this.data[tn];if(en<=65535)return tn=((tn=this.index[2048+(en-55296>>5)])<<2)+(31&en),this.data[tn];if(en<this.highStart)return tn=2080+(en>>11),tn=this.index[tn],tn+=en>>5&63,tn=((tn=this.index[tn])<<2)+(31&en),this.data[tn];if(en<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Trie}(),Ji="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ea="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ta=0;ta<Ji.length;ta++)ea[Ji.charCodeAt(ta)]=ta;var na,ra=8,oa=9,ia=11,aa=12,fromCodePoint=function(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];if(String.fromCodePoint)return String.fromCodePoint.apply(String,en);var nn=en.length;if(!nn)return"";for(var rn=[],an=-1,sn="";++an<nn;){var cn=en[an];cn<=65535?rn.push(cn):(cn-=65536,rn.push(55296+(cn>>10),cn%1024+56320)),(an+1===nn||rn.length>16384)&&(sn+=String.fromCharCode.apply(String,rn),rn.length=0)}return sn},sa=function(en,tn){var nn=function(en){var tn,nn,rn,an,sn,cn=.75*en.length,An=en.length,dn=0;"="===en[en.length-1]&&(cn--,"="===en[en.length-2]&&cn--);var un="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(cn):new Array(cn),pn=Array.isArray(un)?un:new Uint8Array(un);for(tn=0;tn<An;tn+=4)nn=Xi[en.charCodeAt(tn)],rn=Xi[en.charCodeAt(tn+1)],an=Xi[en.charCodeAt(tn+2)],sn=Xi[en.charCodeAt(tn+3)],pn[dn++]=nn<<2|rn>>4,pn[dn++]=(15&rn)<<4|an>>2,pn[dn++]=(3&an)<<6|63&sn;return un}(en),rn=Array.isArray(nn)?function(en){for(var tn=en.length,nn=[],rn=0;rn<tn;rn+=4)nn.push(en[rn+3]<<24|en[rn+2]<<16|en[rn+1]<<8|en[rn]);return nn}(nn):new Uint32Array(nn),an=Array.isArray(nn)?function(en){for(var tn=en.length,nn=[],rn=0;rn<tn;rn+=2)nn.push(en[rn+1]<<8|en[rn]);return nn}(nn):new Uint16Array(nn),sn=slice16(an,12,rn[4]/2),cn=2===rn[5]?slice16(an,(24+rn[4])/2):function(en,tn,nn){return en.slice?en.slice(tn,nn):new Uint32Array(Array.prototype.slice.call(en,tn,nn))}(rn,Math.ceil((24+rn[4])/4));return new Zi(rn[0],rn[1],rn[2],rn[3],sn,cn)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),la="×",codePointToClass=function(en){return sa.get(en)},_graphemeBreakAtIndex=function(en,tn,nn){var rn=nn-2,an=tn[rn],sn=tn[nn-1],cn=tn[nn];if(2===sn&&3===cn)return la;if(2===sn||3===sn||4===sn)return"÷";if(2===cn||3===cn||4===cn)return"÷";if(sn===ra&&-1!==[ra,oa,ia,aa].indexOf(cn))return la;if(!(sn!==ia&&sn!==oa||cn!==oa&&10!==cn))return la;if((sn===aa||10===sn)&&10===cn)return la;if(13===cn||5===cn)return la;if(7===cn)return la;if(1===sn)return la;if(13===sn&&14===cn){for(;5===an;)an=tn[--rn];if(14===an)return la}if(15===sn&&15===cn){for(var An=0;15===an;)An++,an=tn[--rn];if(An%2==0)return la}return"÷"},GraphemeBreaker=function(en){var tn=function(en){for(var tn=[],nn=0,rn=en.length;nn<rn;){var an=en.charCodeAt(nn++);if(an>=55296&&an<=56319&&nn<rn){var sn=en.charCodeAt(nn++);56320==(64512&sn)?tn.push(((1023&an)<<10)+(1023&sn)+65536):(tn.push(an),nn--)}else tn.push(an)}return tn}(en),nn=tn.length,rn=0,an=0,sn=tn.map(codePointToClass);return{next:function(){if(rn>=nn)return{done:!0,value:null};for(var en=la;rn<nn&&(en=_graphemeBreakAtIndex(0,sn,++rn))===la;);if(en!==la||rn===nn){var cn=fromCodePoint.apply(null,tn.slice(an,rn));return an=rn,{value:cn,done:!1}}return{done:!0,value:null}}}},isGreenPixel=function(en){return 0===en[0]&&255===en[1]&&0===en[2]&&255===en[3]},createForeignObjectSVG=function(en,tn,nn,rn,an){var sn="http://www.w3.org/2000/svg",cn=document.createElementNS(sn,"svg"),An=document.createElementNS(sn,"foreignObject");return cn.setAttributeNS(null,"width",en.toString()),cn.setAttributeNS(null,"height",tn.toString()),An.setAttributeNS(null,"width","100%"),An.setAttributeNS(null,"height","100%"),An.setAttributeNS(null,"x",nn.toString()),An.setAttributeNS(null,"y",rn.toString()),An.setAttributeNS(null,"externalResourcesRequired","true"),cn.appendChild(An),An.appendChild(an),cn},loadSerializedSVG$1=function(en){return new Promise((function(tn,nn){var rn=new Image;rn.onload=function(){return tn(rn)},rn.onerror=nn,rn.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(en))}))},ca={get SUPPORT_RANGE_BOUNDS(){var en=function(en){if(en.createRange){var tn=en.createRange();if(tn.getBoundingClientRect){var nn=en.createElement("boundtest");nn.style.height="123px",nn.style.display="block",en.body.appendChild(nn),tn.selectNode(nn);var rn=tn.getBoundingClientRect(),an=Math.round(rn.height);if(en.body.removeChild(nn),123===an)return!0}}return!1}(document);return Object.defineProperty(ca,"SUPPORT_RANGE_BOUNDS",{value:en}),en},get SUPPORT_WORD_BREAKING(){var en=ca.SUPPORT_RANGE_BOUNDS&&function(en){var tn=en.createElement("boundtest");tn.style.width="50px",tn.style.display="block",tn.style.fontSize="12px",tn.style.letterSpacing="0px",tn.style.wordSpacing="0px",en.body.appendChild(tn);var nn=en.createRange();tn.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var rn=tn.firstChild,an=toCodePoints$1(rn.data).map((function(en){return fromCodePoint$1(en)})),sn=0,cn={},An=an.every((function(en,tn){nn.setStart(rn,sn),nn.setEnd(rn,sn+en.length);var an=nn.getBoundingClientRect();sn+=en.length;var An=an.x>cn.x||an.y>cn.y;return cn=an,0===tn||An}));return en.body.removeChild(tn),An}(document);return Object.defineProperty(ca,"SUPPORT_WORD_BREAKING",{value:en}),en},get SUPPORT_SVG_DRAWING(){var en=function(en){var tn=new Image,nn=en.createElement("canvas"),rn=nn.getContext("2d");if(!rn)return!1;tn.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{rn.drawImage(tn,0,0),nn.toDataURL()}catch(en){return!1}return!0}(document);return Object.defineProperty(ca,"SUPPORT_SVG_DRAWING",{value:en}),en},get SUPPORT_FOREIGNOBJECT_DRAWING(){var en="function"==typeof Array.from&&"function"==typeof window.fetch?function(en){var tn=en.createElement("canvas"),nn=100;tn.width=nn,tn.height=nn;var rn=tn.getContext("2d");if(!rn)return Promise.reject(!1);rn.fillStyle="rgb(0, 255, 0)",rn.fillRect(0,0,nn,nn);var an=new Image,sn=tn.toDataURL();an.src=sn;var cn=createForeignObjectSVG(nn,nn,0,0,an);return rn.fillStyle="red",rn.fillRect(0,0,nn,nn),loadSerializedSVG$1(cn).then((function(tn){rn.drawImage(tn,0,0);var an=rn.getImageData(0,0,nn,nn).data;rn.fillStyle="red",rn.fillRect(0,0,nn,nn);var cn=en.createElement("div");return cn.style.backgroundImage="url("+sn+")",cn.style.height="100px",isGreenPixel(an)?loadSerializedSVG$1(createForeignObjectSVG(nn,nn,0,0,cn)):Promise.reject(!1)})).then((function(en){return rn.drawImage(en,0,0),isGreenPixel(rn.getImageData(0,0,nn,nn).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(ca,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:en}),en},get SUPPORT_CORS_IMAGES(){var en=void 0!==(new Image).crossOrigin;return Object.defineProperty(ca,"SUPPORT_CORS_IMAGES",{value:en}),en},get SUPPORT_RESPONSE_TYPE(){var en="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(ca,"SUPPORT_RESPONSE_TYPE",{value:en}),en},get SUPPORT_CORS_XHR(){var en="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ca,"SUPPORT_CORS_XHR",{value:en}),en},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var en=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(ca,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:en}),en}},Aa=function TextBounds(en,tn){this.text=en,this.bounds=tn},parseTextBounds=function(tn,nn,rn,an){var sn=breakText(nn,rn),cn=[],An=0;return sn.forEach((function(nn){if(rn.textDecorationLine.length||nn.trim().length>0)if(ca.SUPPORT_RANGE_BOUNDS){var sn=createRange(an,An,nn.length).getClientRects();if(sn.length>1){var dn=segmentGraphemes(nn),un=0;dn.forEach((function(nn){cn.push(new Aa(nn,en.fromDOMRectList(tn,createRange(an,un+An,nn.length).getClientRects()))),un+=nn.length}))}else cn.push(new Aa(nn,en.fromDOMRectList(tn,sn)))}else{var pn=an.splitText(nn.length);cn.push(new Aa(nn,getWrapperBounds(tn,an))),an=pn}else ca.SUPPORT_RANGE_BOUNDS||(an=an.splitText(nn.length));An+=nn.length})),cn},getWrapperBounds=function(tn,nn){var rn=nn.ownerDocument;if(rn){var an=rn.createElement("html2canvaswrapper");an.appendChild(nn.cloneNode(!0));var sn=nn.parentNode;if(sn){sn.replaceChild(an,nn);var cn=parseBounds(tn,an);return an.firstChild&&sn.replaceChild(an.firstChild,an),cn}}return en.EMPTY},createRange=function(en,tn,nn){var rn=en.ownerDocument;if(!rn)throw new Error("Node has no owner document");var an=rn.createRange();return an.setStart(en,tn),an.setEnd(en,tn+nn),an},segmentGraphemes=function(en){if(ca.SUPPORT_NATIVE_TEXT_SEGMENTATION){var tn=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(tn.segment(en)).map((function(en){return en.segment}))}return function(en){for(var tn,nn=GraphemeBreaker(en),rn=[];!(tn=nn.next()).done;)tn.value&&rn.push(tn.value.slice());return rn}(en)},breakText=function(en,tn){return 0!==tn.letterSpacing?segmentGraphemes(en):function(en,tn){if(ca.SUPPORT_NATIVE_TEXT_SEGMENTATION){var nn=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(nn.segment(en)).map((function(en){return en.segment}))}return breakWords(en,tn)}(en,tn)},da=[32,160,4961,65792,65793,4153,4241],breakWords=function(en,tn){for(var nn,rn=function(en,tn){var nn=toCodePoints$1(en),rn=cssFormattedClasses(nn,tn),an=rn[0],sn=rn[1],cn=rn[2],An=nn.length,dn=0,un=0;return{next:function(){if(un>=An)return{done:!0,value:null};for(var en=On;un<An&&(en=_lineBreakAtIndex(nn,sn,an,++un,cn))===On;);if(en!==On||un===An){var tn=new Wn(nn,en,dn,un);return dn=un,{value:tn,done:!1}}return{done:!0,value:null}}}}(en,{lineBreak:tn.lineBreak,wordBreak:"break-word"===tn.overflowWrap?"break-word":tn.wordBreak}),an=[],_loop_1=function(){if(nn.value){var en=nn.value.slice(),tn=toCodePoints$1(en),rn="";tn.forEach((function(en){-1===da.indexOf(en)?rn+=fromCodePoint$1(en):(rn.length&&an.push(rn),an.push(fromCodePoint$1(en)),rn="")})),rn.length&&an.push(rn)}};!(nn=rn.next()).done;)_loop_1();return an},ua=function TextContainer(en,tn,nn){this.text=transform(tn.data,nn.textTransform),this.textBounds=parseTextBounds(en,this.text,nn,tn)},transform=function(en,tn){switch(tn){case 1:return en.toLowerCase();case 3:return en.replace(pa,capitalize);case 2:return en.toUpperCase();default:return en}},pa=/(^|\s|:|-|\(|\))([a-z])/g,capitalize=function(en,tn,nn){return en.length>0?tn+nn.toUpperCase():en},ha=function(en){function ImageElementContainer(tn,nn){var rn=en.call(this,tn,nn)||this;return rn.src=nn.currentSrc||nn.src,rn.intrinsicWidth=nn.naturalWidth,rn.intrinsicHeight=nn.naturalHeight,rn.context.cache.addImage(rn.src),rn}return __extends(ImageElementContainer,en),ImageElementContainer}($i),ga=function(en){function CanvasElementContainer(tn,nn){var rn=en.call(this,tn,nn)||this;return rn.canvas=nn,rn.intrinsicWidth=nn.width,rn.intrinsicHeight=nn.height,rn}return __extends(CanvasElementContainer,en),CanvasElementContainer}($i),_a=function(en){function SVGElementContainer(tn,nn){var rn=en.call(this,tn,nn)||this,an=new XMLSerializer,sn=parseBounds(tn,nn);return nn.setAttribute("width",sn.width+"px"),nn.setAttribute("height",sn.height+"px"),rn.svg="data:image/svg+xml,"+encodeURIComponent(an.serializeToString(nn)),rn.intrinsicWidth=nn.width.baseVal.value,rn.intrinsicHeight=nn.height.baseVal.value,rn.context.cache.addImage(rn.svg),rn}return __extends(SVGElementContainer,en),SVGElementContainer}($i),ma=function(en){function LIElementContainer(tn,nn){var rn=en.call(this,tn,nn)||this;return rn.value=nn.value,rn}return __extends(LIElementContainer,en),LIElementContainer}($i),fa=function(en){function OLElementContainer(tn,nn){var rn=en.call(this,tn,nn)||this;return rn.start=nn.start,rn.reversed="boolean"==typeof nn.reversed&&!0===nn.reversed,rn}return __extends(OLElementContainer,en),OLElementContainer}($i),ya=[{type:15,flags:0,unit:"px",number:3}],ba=[{type:16,flags:0,number:50}],reformatInputBounds=function(tn){return tn.width>tn.height?new en(tn.left+(tn.width-tn.height)/2,tn.top,tn.height,tn.height):tn.width<tn.height?new en(tn.left,tn.top+(tn.height-tn.width)/2,tn.width,tn.width):tn},va="checkbox",wa="radio",xa="password",ka=707406591,Ca=function(en){function InputElementContainer(tn,nn){var rn=en.call(this,tn,nn)||this;switch(rn.type=nn.type.toLowerCase(),rn.checked=nn.checked,rn.value=function(en){var tn=en.type===xa?new Array(en.value.length+1).join("•"):en.value;return 0===tn.length?en.placeholder||"":tn}(nn),rn.type!==va&&rn.type!==wa||(rn.styles.backgroundColor=3739148031,rn.styles.borderTopColor=rn.styles.borderRightColor=rn.styles.borderBottomColor=rn.styles.borderLeftColor=2779096575,rn.styles.borderTopWidth=rn.styles.borderRightWidth=rn.styles.borderBottomWidth=rn.styles.borderLeftWidth=1,rn.styles.borderTopStyle=rn.styles.borderRightStyle=rn.styles.borderBottomStyle=rn.styles.borderLeftStyle=1,rn.styles.backgroundClip=[0],rn.styles.backgroundOrigin=[0],rn.bounds=reformatInputBounds(rn.bounds)),rn.type){case va:rn.styles.borderTopRightRadius=rn.styles.borderTopLeftRadius=rn.styles.borderBottomRightRadius=rn.styles.borderBottomLeftRadius=ya;break;case wa:rn.styles.borderTopRightRadius=rn.styles.borderTopLeftRadius=rn.styles.borderBottomRightRadius=rn.styles.borderBottomLeftRadius=ba}return rn}return __extends(InputElementContainer,en),InputElementContainer}($i),Sa=function(en){function SelectElementContainer(tn,nn){var rn=en.call(this,tn,nn)||this,an=nn.options[nn.selectedIndex||0];return rn.value=an&&an.text||"",rn}return __extends(SelectElementContainer,en),SelectElementContainer}($i),Ba=function(en){function TextareaElementContainer(tn,nn){var rn=en.call(this,tn,nn)||this;return rn.value=nn.value,rn}return __extends(TextareaElementContainer,en),TextareaElementContainer}($i),Ea=function(en){function IFrameElementContainer(tn,nn){var rn=en.call(this,tn,nn)||this;rn.src=nn.src,rn.width=parseInt(nn.width,10)||0,rn.height=parseInt(nn.height,10)||0,rn.backgroundColor=rn.styles.backgroundColor;try{if(nn.contentWindow&&nn.contentWindow.document&&nn.contentWindow.document.documentElement){rn.tree=parseTree(tn,nn.contentWindow.document.documentElement);var an=nn.contentWindow.document.documentElement?parseColor(tn,getComputedStyle(nn.contentWindow.document.documentElement).backgroundColor):po.TRANSPARENT,sn=nn.contentWindow.document.body?parseColor(tn,getComputedStyle(nn.contentWindow.document.body).backgroundColor):po.TRANSPARENT;rn.backgroundColor=isTransparent(an)?isTransparent(sn)?rn.styles.backgroundColor:sn:an}}catch(en){}return rn}return __extends(IFrameElementContainer,en),IFrameElementContainer}($i),ja=["OL","UL","MENU"],parseNodeTree=function(en,tn,nn,rn){for(var an=tn.firstChild,sn=void 0;an;an=sn)if(sn=an.nextSibling,isTextNode(an)&&an.data.trim().length>0)nn.textNodes.push(new ua(en,an,nn.styles));else if(isElementNode(an))if(isSlotElement(an)&&an.assignedNodes)an.assignedNodes().forEach((function(tn){return parseNodeTree(en,tn,nn,rn)}));else{var cn=createContainer(en,an);cn.styles.isVisible()&&(createsRealStackingContext(an,cn,rn)?cn.flags|=4:createsStackingContext(cn.styles)&&(cn.flags|=2),-1!==ja.indexOf(an.tagName)&&(cn.flags|=8),nn.elements.push(cn),an.slot,an.shadowRoot?parseNodeTree(en,an.shadowRoot,cn,rn):isTextareaElement(an)||isSVGElement(an)||isSelectElement(an)||parseNodeTree(en,an,cn,rn))}},createContainer=function(en,tn){return isImageElement(tn)?new ha(en,tn):isCanvasElement(tn)?new ga(en,tn):isSVGElement(tn)?new _a(en,tn):isLIElement(tn)?new ma(en,tn):isOLElement(tn)?new fa(en,tn):isInputElement(tn)?new Ca(en,tn):isSelectElement(tn)?new Sa(en,tn):isTextareaElement(tn)?new Ba(en,tn):isIFrameElement(tn)?new Ea(en,tn):new $i(en,tn)},parseTree=function(en,tn){var nn=createContainer(en,tn);return nn.flags|=4,parseNodeTree(en,tn,nn,nn),nn},createsRealStackingContext=function(en,tn,nn){return tn.styles.isPositionedWithZIndex()||tn.styles.opacity<1||tn.styles.isTransformed()||isBodyElement(en)&&nn.styles.isTransparent()},createsStackingContext=function(en){return en.isPositioned()||en.isFloating()},isTextNode=function(en){return en.nodeType===Node.TEXT_NODE},isElementNode=function(en){return en.nodeType===Node.ELEMENT_NODE},isHTMLElementNode=function(en){return isElementNode(en)&&void 0!==en.style&&!isSVGElementNode(en)},isSVGElementNode=function(en){return"object"==typeof en.className},isLIElement=function(en){return"LI"===en.tagName},isOLElement=function(en){return"OL"===en.tagName},isInputElement=function(en){return"INPUT"===en.tagName},isSVGElement=function(en){return"svg"===en.tagName},isBodyElement=function(en){return"BODY"===en.tagName},isCanvasElement=function(en){return"CANVAS"===en.tagName},isVideoElement=function(en){return"VIDEO"===en.tagName},isImageElement=function(en){return"IMG"===en.tagName},isIFrameElement=function(en){return"IFRAME"===en.tagName},isStyleElement=function(en){return"STYLE"===en.tagName},isTextareaElement=function(en){return"TEXTAREA"===en.tagName},isSelectElement=function(en){return"SELECT"===en.tagName},isSlotElement=function(en){return"SLOT"===en.tagName},isCustomElement=function(en){return en.tagName.indexOf("-")>0},La=function(){function CounterState(){this.counters={}}return CounterState.prototype.getCounterValue=function(en){var tn=this.counters[en];return tn&&tn.length?tn[tn.length-1]:1},CounterState.prototype.getCounterValues=function(en){return this.counters[en]||[]},CounterState.prototype.pop=function(en){var tn=this;en.forEach((function(en){return tn.counters[en].pop()}))},CounterState.prototype.parse=function(en){var tn=this,nn=en.counterIncrement,rn=en.counterReset,an=!0;null!==nn&&nn.forEach((function(en){var nn=tn.counters[en.counter];nn&&0!==en.increment&&(an=!1,nn.length||nn.push(1),nn[Math.max(0,nn.length-1)]+=en.increment)}));var sn=[];return an&&rn.forEach((function(en){var nn=tn.counters[en.counter];sn.push(en.counter),nn||(nn=tn.counters[en.counter]=[]),nn.push(en.reset)})),sn},CounterState}(),Pa={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ta={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Fa={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ua={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},createAdditiveCounter=function(en,tn,nn,rn,an,sn){return en<tn||en>nn?createCounterText(en,an,sn.length>0):rn.integers.reduce((function(tn,nn,an){for(;en>=nn;)en-=nn,tn+=rn.values[an];return tn}),"")+sn},createCounterStyleWithSymbolResolver=function(en,tn,nn,rn){var an="";do{nn||en--,an=rn(en)+an,en/=tn}while(en*tn>=tn);return an},createCounterStyleFromRange=function(en,tn,nn,rn,an){var sn=nn-tn+1;return(en<0?"-":"")+(createCounterStyleWithSymbolResolver(Math.abs(en),sn,rn,(function(en){return fromCodePoint$1(Math.floor(en%sn)+tn)}))+an)},createCounterStyleFromSymbols=function(en,tn,nn){void 0===nn&&(nn=". ");var rn=tn.length;return createCounterStyleWithSymbolResolver(Math.abs(en),rn,!1,(function(en){return tn[Math.floor(en%rn)]}))+nn},createCJKCounter=function(en,tn,nn,rn,an,sn){if(en<-9999||en>9999)return createCounterText(en,4,an.length>0);var cn=Math.abs(en),An=an;if(0===cn)return tn[0]+An;for(var dn=0;cn>0&&dn<=4;dn++){var un=cn%10;0===un&&contains(sn,1)&&""!==An?An=tn[un]+An:un>1||1===un&&0===dn||1===un&&1===dn&&contains(sn,2)||1===un&&1===dn&&contains(sn,4)&&en>100||1===un&&dn>1&&contains(sn,8)?An=tn[un]+(dn>0?nn[dn-1]:"")+An:1===un&&dn>0&&(An=nn[dn-1]+An),cn=Math.floor(cn/10)}return(en<0?rn:"")+An},Na="十百千萬",Ia="拾佰仟萬",Ma="マイナス",Ra="마이너스",createCounterText=function(en,tn,nn){var rn=nn?". ":"",an=nn?"、":"",sn=nn?", ":"",cn=nn?" ":"";switch(tn){case 0:return"•"+cn;case 1:return"◦"+cn;case 2:return"◾"+cn;case 5:var An=createCounterStyleFromRange(en,48,57,!0,rn);return An.length<4?"0"+An:An;case 4:return createCounterStyleFromSymbols(en,"〇一二三四五六七八九",an);case 6:return createAdditiveCounter(en,1,3999,Pa,3,rn).toLowerCase();case 7:return createAdditiveCounter(en,1,3999,Pa,3,rn);case 8:return createCounterStyleFromRange(en,945,969,!1,rn);case 9:return createCounterStyleFromRange(en,97,122,!1,rn);case 10:return createCounterStyleFromRange(en,65,90,!1,rn);case 11:return createCounterStyleFromRange(en,1632,1641,!0,rn);case 12:case 49:return createAdditiveCounter(en,1,9999,Ta,3,rn);case 35:return createAdditiveCounter(en,1,9999,Ta,3,rn).toLowerCase();case 13:return createCounterStyleFromRange(en,2534,2543,!0,rn);case 14:case 30:return createCounterStyleFromRange(en,6112,6121,!0,rn);case 15:return createCounterStyleFromSymbols(en,"子丑寅卯辰巳午未申酉戌亥",an);case 16:return createCounterStyleFromSymbols(en,"甲乙丙丁戊己庚辛壬癸",an);case 17:case 48:return createCJKCounter(en,"零一二三四五六七八九",Na,"負",an,14);case 47:return createCJKCounter(en,"零壹貳參肆伍陸柒捌玖",Ia,"負",an,15);case 42:return createCJKCounter(en,"零一二三四五六七八九",Na,"负",an,14);case 41:return createCJKCounter(en,"零壹贰叁肆伍陆柒捌玖",Ia,"负",an,15);case 26:return createCJKCounter(en,"〇一二三四五六七八九","十百千万",Ma,an,0);case 25:return createCJKCounter(en,"零壱弐参四伍六七八九","拾百千万",Ma,an,7);case 31:return createCJKCounter(en,"영일이삼사오육칠팔구","십백천만",Ra,sn,7);case 33:return createCJKCounter(en,"零一二三四五六七八九","十百千萬",Ra,sn,0);case 32:return createCJKCounter(en,"零壹貳參四五六七八九","拾百千",Ra,sn,7);case 18:return createCounterStyleFromRange(en,2406,2415,!0,rn);case 20:return createAdditiveCounter(en,1,19999,Ua,3,rn);case 21:return createCounterStyleFromRange(en,2790,2799,!0,rn);case 22:return createCounterStyleFromRange(en,2662,2671,!0,rn);case 22:return createAdditiveCounter(en,1,10999,Fa,3,rn);case 23:return createCounterStyleFromSymbols(en,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return createCounterStyleFromSymbols(en,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return createCounterStyleFromRange(en,3302,3311,!0,rn);case 28:return createCounterStyleFromSymbols(en,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",an);case 29:return createCounterStyleFromSymbols(en,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",an);case 34:return createCounterStyleFromRange(en,3792,3801,!0,rn);case 37:return createCounterStyleFromRange(en,6160,6169,!0,rn);case 38:return createCounterStyleFromRange(en,4160,4169,!0,rn);case 39:return createCounterStyleFromRange(en,2918,2927,!0,rn);case 40:return createCounterStyleFromRange(en,1776,1785,!0,rn);case 43:return createCounterStyleFromRange(en,3046,3055,!0,rn);case 44:return createCounterStyleFromRange(en,3174,3183,!0,rn);case 45:return createCounterStyleFromRange(en,3664,3673,!0,rn);case 46:return createCounterStyleFromRange(en,3872,3881,!0,rn);default:return createCounterStyleFromRange(en,48,57,!0,rn)}},Oa="data-html2canvas-ignore",Qa=function(){function DocumentCloner(en,tn,nn){if(this.context=en,this.options=nn,this.scrolledElements=[],this.referenceElement=tn,this.counters=new La,this.quoteDepth=0,!tn.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(tn.ownerDocument.documentElement,!1)}return DocumentCloner.prototype.toIFrame=function(en,tn){var nn=this,rn=createIFrameContainer(en,tn);if(!rn.contentWindow)return Promise.reject("Unable to find iframe window");var an=en.defaultView.pageXOffset,sn=en.defaultView.pageYOffset,cn=rn.contentWindow,An=cn.document,dn=iframeLoader(rn).then((function(){return __awaiter(nn,void 0,void 0,(function(){var en,nn;return __generator(this,(function(an){switch(an.label){case 0:return this.scrolledElements.forEach(restoreNodeScroll),cn&&(cn.scrollTo(tn.left,tn.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||cn.scrollY===tn.top&&cn.scrollX===tn.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(cn.scrollX-tn.left,cn.scrollY-tn.top,0,0))),en=this.options.onclone,void 0===(nn=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:An.fonts&&An.fonts.ready?[4,An.fonts.ready]:[3,2];case 1:an.sent(),an.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,imagesReady(An)]:[3,4];case 3:an.sent(),an.label=4;case 4:return"function"==typeof en?[2,Promise.resolve().then((function(){return en(An,nn)})).then((function(){return rn}))]:[2,rn]}}))}))}));return An.open(),An.write(serializeDoctype(document.doctype)+"<html></html>"),restoreOwnerScroll(this.referenceElement.ownerDocument,an,sn),An.replaceChild(An.adoptNode(this.documentElement),An.documentElement),An.close(),dn},DocumentCloner.prototype.createElementClone=function(en){if(isDebugging(en,2),isCanvasElement(en))return this.createCanvasClone(en);if(isVideoElement(en))return this.createVideoClone(en);if(isStyleElement(en))return this.createStyleClone(en);var tn=en.cloneNode(!1);return isImageElement(tn)&&(isImageElement(en)&&en.currentSrc&&en.currentSrc!==en.src&&(tn.src=en.currentSrc,tn.srcset=""),"lazy"===tn.loading&&(tn.loading="eager")),isCustomElement(tn)?this.createCustomElementClone(tn):tn},DocumentCloner.prototype.createCustomElementClone=function(en){var tn=document.createElement("html2canvascustomelement");return copyCSSStyles(en.style,tn),tn},DocumentCloner.prototype.createStyleClone=function(en){try{var tn=en.sheet;if(tn&&tn.cssRules){var nn=[].slice.call(tn.cssRules,0).reduce((function(en,tn){return tn&&"string"==typeof tn.cssText?en+tn.cssText:en}),""),rn=en.cloneNode(!1);return rn.textContent=nn,rn}}catch(en){if(this.context.logger.error("Unable to access cssRules property",en),"SecurityError"!==en.name)throw en}return en.cloneNode(!1)},DocumentCloner.prototype.createCanvasClone=function(en){var tn;if(this.options.inlineImages&&en.ownerDocument){var nn=en.ownerDocument.createElement("img");try{return nn.src=en.toDataURL(),nn}catch(tn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",en)}}var rn=en.cloneNode(!1);try{rn.width=en.width,rn.height=en.height;var an=en.getContext("2d"),sn=rn.getContext("2d");if(sn)if(!this.options.allowTaint&&an)sn.putImageData(an.getImageData(0,0,en.width,en.height),0,0);else{var cn=null!==(tn=en.getContext("webgl2"))&&void 0!==tn?tn:en.getContext("webgl");if(cn){var An=cn.getContextAttributes();!1===(null==An?void 0:An.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",en)}sn.drawImage(en,0,0)}return rn}catch(tn){this.context.logger.info("Unable to clone canvas as it is tainted",en)}return rn},DocumentCloner.prototype.createVideoClone=function(en){var tn=en.ownerDocument.createElement("canvas");tn.width=en.offsetWidth,tn.height=en.offsetHeight;var nn=tn.getContext("2d");try{return nn&&(nn.drawImage(en,0,0,tn.width,tn.height),this.options.allowTaint||nn.getImageData(0,0,tn.width,tn.height)),tn}catch(tn){this.context.logger.info("Unable to clone video as it is tainted",en)}var rn=en.ownerDocument.createElement("canvas");return rn.width=en.offsetWidth,rn.height=en.offsetHeight,rn},DocumentCloner.prototype.appendChildNode=function(en,tn,nn){isElementNode(tn)&&(function(en){return"SCRIPT"===en.tagName}(tn)||tn.hasAttribute(Oa)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(tn))||this.options.copyStyles&&isElementNode(tn)&&isStyleElement(tn)||en.appendChild(this.cloneNode(tn,nn))},DocumentCloner.prototype.cloneChildNodes=function(en,tn,nn){for(var rn=this,an=en.shadowRoot?en.shadowRoot.firstChild:en.firstChild;an;an=an.nextSibling)if(isElementNode(an)&&isSlotElement(an)&&"function"==typeof an.assignedNodes){var sn=an.assignedNodes();sn.length&&sn.forEach((function(en){return rn.appendChildNode(tn,en,nn)}))}else this.appendChildNode(tn,an,nn)},DocumentCloner.prototype.cloneNode=function(en,tn){if(isTextNode(en))return document.createTextNode(en.data);if(!en.ownerDocument)return en.cloneNode(!1);var nn=en.ownerDocument.defaultView;if(nn&&isElementNode(en)&&(isHTMLElementNode(en)||isSVGElementNode(en))){var rn=this.createElementClone(en);rn.style.transitionProperty="none";var an=nn.getComputedStyle(en),sn=nn.getComputedStyle(en,":before"),cn=nn.getComputedStyle(en,":after");this.referenceElement===en&&isHTMLElementNode(rn)&&(this.clonedReferenceElement=rn),isBodyElement(rn)&&createPseudoHideStyles(rn);var An=this.counters.parse(new Ki(this.context,an)),dn=this.resolvePseudoContent(en,rn,sn,na.BEFORE);isCustomElement(en)&&(tn=!0),isVideoElement(en)||this.cloneChildNodes(en,rn,tn),dn&&rn.insertBefore(dn,rn.firstChild);var un=this.resolvePseudoContent(en,rn,cn,na.AFTER);return un&&rn.appendChild(un),this.counters.pop(An),(an&&(this.options.copyStyles||isSVGElementNode(en))&&!isIFrameElement(en)||tn)&&copyCSSStyles(an,rn),0===en.scrollTop&&0===en.scrollLeft||this.scrolledElements.push([rn,en.scrollLeft,en.scrollTop]),(isTextareaElement(en)||isSelectElement(en))&&(isTextareaElement(rn)||isSelectElement(rn))&&(rn.value=en.value),rn}return en.cloneNode(!1)},DocumentCloner.prototype.resolvePseudoContent=function(en,tn,nn,rn){var an=this;if(nn){var sn=nn.content,cn=tn.ownerDocument;if(cn&&sn&&"none"!==sn&&"-moz-alt-content"!==sn&&"none"!==nn.display){this.counters.parse(new Ki(this.context,nn));var An=new zi(this.context,nn),dn=cn.createElement("html2canvaspseudoelement");copyCSSStyles(nn,dn),An.content.forEach((function(tn){if(0===tn.type)dn.appendChild(cn.createTextNode(tn.value));else if(22===tn.type){var nn=cn.createElement("img");nn.src=tn.value,nn.style.opacity="1",dn.appendChild(nn)}else if(18===tn.type){if("attr"===tn.name){var rn=tn.values.filter(isIdentToken);rn.length&&dn.appendChild(cn.createTextNode(en.getAttribute(rn[0].value)||""))}else if("counter"===tn.name){var sn=tn.values.filter(nonFunctionArgSeparator),un=sn[0],pn=sn[1];if(un&&isIdentToken(un)){var hn=an.counters.getCounterValue(un.value),gn=pn&&isIdentToken(pn)?oi.parse(an.context,pn.value):3;dn.appendChild(cn.createTextNode(createCounterText(hn,gn,!1)))}}else if("counters"===tn.name){var _n=tn.values.filter(nonFunctionArgSeparator),mn=(un=_n[0],_n[1]);if(pn=_n[2],un&&isIdentToken(un)){var fn=an.counters.getCounterValues(un.value),yn=pn&&isIdentToken(pn)?oi.parse(an.context,pn.value):3,bn=mn&&0===mn.type?mn.value:"",vn=fn.map((function(en){return createCounterText(en,yn,!1)})).join(bn);dn.appendChild(cn.createTextNode(vn))}}}else if(20===tn.type)switch(tn.value){case"open-quote":dn.appendChild(cn.createTextNode(getQuote(An.quotes,an.quoteDepth++,!0)));break;case"close-quote":dn.appendChild(cn.createTextNode(getQuote(An.quotes,--an.quoteDepth,!1)));break;default:dn.appendChild(cn.createTextNode(tn.value))}})),dn.className=Ga+" "+Da;var un=rn===na.BEFORE?" "+Ga:" "+Da;return isSVGElementNode(tn)?tn.className.baseValue+=un:tn.className+=un,dn}}},DocumentCloner.destroy=function(en){return!!en.parentNode&&(en.parentNode.removeChild(en),!0)},DocumentCloner}();!function(en){en[en.BEFORE=0]="BEFORE",en[en.AFTER=1]="AFTER"}(na||(na={}));var qa,createIFrameContainer=function(en,tn){var nn=en.createElement("iframe");return nn.className="html2canvas-container",nn.style.visibility="hidden",nn.style.position="fixed",nn.style.left="-10000px",nn.style.top="0px",nn.style.border="0",nn.width=tn.width.toString(),nn.height=tn.height.toString(),nn.scrolling="no",nn.setAttribute(Oa,"true"),en.body.appendChild(nn),nn},imageReady=function(en){return new Promise((function(tn){en.complete?tn():en.src?(en.onload=tn,en.onerror=tn):tn()}))},imagesReady=function(en){return Promise.all([].slice.call(en.images,0).map(imageReady))},iframeLoader=function(en){return new Promise((function(tn,nn){var rn=en.contentWindow;if(!rn)return nn("No window assigned for iframe");var an=rn.document;rn.onload=en.onload=function(){rn.onload=en.onload=null;var nn=setInterval((function(){an.body.childNodes.length>0&&"complete"===an.readyState&&(clearInterval(nn),tn(en))}),50)}}))},Va=["all","d","content"],copyCSSStyles=function(en,tn){for(var nn=en.length-1;nn>=0;nn--){var rn=en.item(nn);-1===Va.indexOf(rn)&&tn.style.setProperty(rn,en.getPropertyValue(rn))}return tn},serializeDoctype=function(en){var tn="";return en&&(tn+="<!DOCTYPE ",en.name&&(tn+=en.name),en.internalSubset&&(tn+=en.internalSubset),en.publicId&&(tn+='"'+en.publicId+'"'),en.systemId&&(tn+='"'+en.systemId+'"'),tn+=">"),tn},restoreOwnerScroll=function(en,tn,nn){en&&en.defaultView&&(tn!==en.defaultView.pageXOffset||nn!==en.defaultView.pageYOffset)&&en.defaultView.scrollTo(tn,nn)},restoreNodeScroll=function(en){var tn=en[0],nn=en[1],rn=en[2];tn.scrollLeft=nn,tn.scrollTop=rn},Ga="___html2canvas___pseudoelement_before",Da="___html2canvas___pseudoelement_after",Ha='{\n content: "" !important;\n display: none !important;\n}',createPseudoHideStyles=function(en){createStyles(en,"."+Ga+":before"+Ha+"\n ."+Da+":after"+Ha)},createStyles=function(en,tn){var nn=en.ownerDocument;if(nn){var rn=nn.createElement("style");rn.textContent=tn,en.appendChild(rn)}},za=function(){function CacheStorage(){}return CacheStorage.getOrigin=function(en){var tn=CacheStorage._link;return tn?(tn.href=en,tn.href=tn.href,tn.protocol+tn.hostname+tn.port):"about:blank"},CacheStorage.isSameOrigin=function(en){return CacheStorage.getOrigin(en)===CacheStorage._origin},CacheStorage.setContext=function(en){CacheStorage._link=en.document.createElement("a"),CacheStorage._origin=CacheStorage.getOrigin(en.location.href)},CacheStorage._origin="about:blank",CacheStorage}(),Ka=function(){function Cache(en,tn){this.context=en,this._options=tn,this._cache={}}return Cache.prototype.addImage=function(en){var tn=Promise.resolve();return this.has(en)?tn:isBlobImage(en)||isRenderable(en)?((this._cache[en]=this.loadImage(en)).catch((function(){})),tn):tn},Cache.prototype.match=function(en){return this._cache[en]},Cache.prototype.loadImage=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn=this;return __generator(this,(function(cn){switch(cn.label){case 0:return tn=za.isSameOrigin(en),nn=!isInlineImage(en)&&!0===this._options.useCORS&&ca.SUPPORT_CORS_IMAGES&&!tn,rn=!isInlineImage(en)&&!tn&&!isBlobImage(en)&&"string"==typeof this._options.proxy&&ca.SUPPORT_CORS_XHR&&!nn,tn||!1!==this._options.allowTaint||isInlineImage(en)||isBlobImage(en)||rn||nn?(an=en,rn?[4,this.proxy(an)]:[3,2]):[2];case 1:an=cn.sent(),cn.label=2;case 2:return this.context.logger.debug("Added image "+en.substring(0,256)),[4,new Promise((function(en,tn){var rn=new Image;rn.onload=function(){return en(rn)},rn.onerror=tn,(isInlineBase64Image(an)||nn)&&(rn.crossOrigin="anonymous"),rn.src=an,!0===rn.complete&&setTimeout((function(){return en(rn)}),500),sn._options.imageTimeout>0&&setTimeout((function(){return tn("Timed out ("+sn._options.imageTimeout+"ms) loading image")}),sn._options.imageTimeout)}))];case 3:return[2,cn.sent()]}}))}))},Cache.prototype.has=function(en){return void 0!==this._cache[en]},Cache.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Cache.prototype.proxy=function(en){var tn=this,nn=this._options.proxy;if(!nn)throw new Error("No proxy defined");var rn=en.substring(0,256);return new Promise((function(an,sn){var cn=ca.SUPPORT_RESPONSE_TYPE?"blob":"text",An=new XMLHttpRequest;An.onload=function(){if(200===An.status)if("text"===cn)an(An.response);else{var en=new FileReader;en.addEventListener("load",(function(){return an(en.result)}),!1),en.addEventListener("error",(function(en){return sn(en)}),!1),en.readAsDataURL(An.response)}else sn("Failed to proxy resource "+rn+" with status code "+An.status)},An.onerror=sn;var dn=nn.indexOf("?")>-1?"&":"?";if(An.open("GET",""+nn+dn+"url="+encodeURIComponent(en)+"&responseType="+cn),"text"!==cn&&An instanceof XMLHttpRequest&&(An.responseType=cn),tn._options.imageTimeout){var un=tn._options.imageTimeout;An.timeout=un,An.ontimeout=function(){return sn("Timed out ("+un+"ms) proxying "+rn)}}An.send()}))},Cache}(),$a=/^data:image\/svg\+xml/i,Wa=/^data:image\/.*;base64,/i,Xa=/^data:image\/.*/i,isRenderable=function(en){return ca.SUPPORT_SVG_DRAWING||!isSVG(en)},isInlineImage=function(en){return Xa.test(en)},isInlineBase64Image=function(en){return Wa.test(en)},isBlobImage=function(en){return"blob"===en.substr(0,4)},isSVG=function(en){return"svg"===en.substr(-3).toLowerCase()||$a.test(en)},Ya=function(){function Vector(en,tn){this.type=0,this.x=en,this.y=tn}return Vector.prototype.add=function(en,tn){return new Vector(this.x+en,this.y+tn)},Vector}(),lerp=function(en,tn,nn){return new Ya(en.x+(tn.x-en.x)*nn,en.y+(tn.y-en.y)*nn)},Za=function(){function BezierCurve(en,tn,nn,rn){this.type=1,this.start=en,this.startControl=tn,this.endControl=nn,this.end=rn}return BezierCurve.prototype.subdivide=function(en,tn){var nn=lerp(this.start,this.startControl,en),rn=lerp(this.startControl,this.endControl,en),an=lerp(this.endControl,this.end,en),sn=lerp(nn,rn,en),cn=lerp(rn,an,en),An=lerp(sn,cn,en);return tn?new BezierCurve(this.start,nn,sn,An):new BezierCurve(An,cn,an,this.end)},BezierCurve.prototype.add=function(en,tn){return new BezierCurve(this.start.add(en,tn),this.startControl.add(en,tn),this.endControl.add(en,tn),this.end.add(en,tn))},BezierCurve.prototype.reverse=function(){return new BezierCurve(this.end,this.endControl,this.startControl,this.start)},BezierCurve}(),isBezierCurve=function(en){return 1===en.type},Ja=function BoundCurves(en){var tn=en.styles,nn=en.bounds,rn=getAbsoluteValueForTuple(tn.borderTopLeftRadius,nn.width,nn.height),an=rn[0],sn=rn[1],cn=getAbsoluteValueForTuple(tn.borderTopRightRadius,nn.width,nn.height),An=cn[0],dn=cn[1],un=getAbsoluteValueForTuple(tn.borderBottomRightRadius,nn.width,nn.height),pn=un[0],hn=un[1],gn=getAbsoluteValueForTuple(tn.borderBottomLeftRadius,nn.width,nn.height),_n=gn[0],mn=gn[1],fn=[];fn.push((an+An)/nn.width),fn.push((_n+pn)/nn.width),fn.push((sn+mn)/nn.height),fn.push((dn+hn)/nn.height);var yn=Math.max.apply(Math,fn);yn>1&&(an/=yn,sn/=yn,An/=yn,dn/=yn,pn/=yn,hn/=yn,_n/=yn,mn/=yn);var bn=nn.width-An,vn=nn.height-hn,wn=nn.width-pn,xn=nn.height-mn,kn=tn.borderTopWidth,Cn=tn.borderRightWidth,Sn=tn.borderBottomWidth,Bn=tn.borderLeftWidth,En=getAbsoluteValue(tn.paddingTop,en.bounds.width),jn=getAbsoluteValue(tn.paddingRight,en.bounds.width),Ln=getAbsoluteValue(tn.paddingBottom,en.bounds.width),Pn=getAbsoluteValue(tn.paddingLeft,en.bounds.width);this.topLeftBorderDoubleOuterBox=an>0||sn>0?getCurvePoints(nn.left+Bn/3,nn.top+kn/3,an-Bn/3,sn-kn/3,qa.TOP_LEFT):new Ya(nn.left+Bn/3,nn.top+kn/3),this.topRightBorderDoubleOuterBox=an>0||sn>0?getCurvePoints(nn.left+bn,nn.top+kn/3,An-Cn/3,dn-kn/3,qa.TOP_RIGHT):new Ya(nn.left+nn.width-Cn/3,nn.top+kn/3),this.bottomRightBorderDoubleOuterBox=pn>0||hn>0?getCurvePoints(nn.left+wn,nn.top+vn,pn-Cn/3,hn-Sn/3,qa.BOTTOM_RIGHT):new Ya(nn.left+nn.width-Cn/3,nn.top+nn.height-Sn/3),this.bottomLeftBorderDoubleOuterBox=_n>0||mn>0?getCurvePoints(nn.left+Bn/3,nn.top+xn,_n-Bn/3,mn-Sn/3,qa.BOTTOM_LEFT):new Ya(nn.left+Bn/3,nn.top+nn.height-Sn/3),this.topLeftBorderDoubleInnerBox=an>0||sn>0?getCurvePoints(nn.left+2*Bn/3,nn.top+2*kn/3,an-2*Bn/3,sn-2*kn/3,qa.TOP_LEFT):new Ya(nn.left+2*Bn/3,nn.top+2*kn/3),this.topRightBorderDoubleInnerBox=an>0||sn>0?getCurvePoints(nn.left+bn,nn.top+2*kn/3,An-2*Cn/3,dn-2*kn/3,qa.TOP_RIGHT):new Ya(nn.left+nn.width-2*Cn/3,nn.top+2*kn/3),this.bottomRightBorderDoubleInnerBox=pn>0||hn>0?getCurvePoints(nn.left+wn,nn.top+vn,pn-2*Cn/3,hn-2*Sn/3,qa.BOTTOM_RIGHT):new Ya(nn.left+nn.width-2*Cn/3,nn.top+nn.height-2*Sn/3),this.bottomLeftBorderDoubleInnerBox=_n>0||mn>0?getCurvePoints(nn.left+2*Bn/3,nn.top+xn,_n-2*Bn/3,mn-2*Sn/3,qa.BOTTOM_LEFT):new Ya(nn.left+2*Bn/3,nn.top+nn.height-2*Sn/3),this.topLeftBorderStroke=an>0||sn>0?getCurvePoints(nn.left+Bn/2,nn.top+kn/2,an-Bn/2,sn-kn/2,qa.TOP_LEFT):new Ya(nn.left+Bn/2,nn.top+kn/2),this.topRightBorderStroke=an>0||sn>0?getCurvePoints(nn.left+bn,nn.top+kn/2,An-Cn/2,dn-kn/2,qa.TOP_RIGHT):new Ya(nn.left+nn.width-Cn/2,nn.top+kn/2),this.bottomRightBorderStroke=pn>0||hn>0?getCurvePoints(nn.left+wn,nn.top+vn,pn-Cn/2,hn-Sn/2,qa.BOTTOM_RIGHT):new Ya(nn.left+nn.width-Cn/2,nn.top+nn.height-Sn/2),this.bottomLeftBorderStroke=_n>0||mn>0?getCurvePoints(nn.left+Bn/2,nn.top+xn,_n-Bn/2,mn-Sn/2,qa.BOTTOM_LEFT):new Ya(nn.left+Bn/2,nn.top+nn.height-Sn/2),this.topLeftBorderBox=an>0||sn>0?getCurvePoints(nn.left,nn.top,an,sn,qa.TOP_LEFT):new Ya(nn.left,nn.top),this.topRightBorderBox=An>0||dn>0?getCurvePoints(nn.left+bn,nn.top,An,dn,qa.TOP_RIGHT):new Ya(nn.left+nn.width,nn.top),this.bottomRightBorderBox=pn>0||hn>0?getCurvePoints(nn.left+wn,nn.top+vn,pn,hn,qa.BOTTOM_RIGHT):new Ya(nn.left+nn.width,nn.top+nn.height),this.bottomLeftBorderBox=_n>0||mn>0?getCurvePoints(nn.left,nn.top+xn,_n,mn,qa.BOTTOM_LEFT):new Ya(nn.left,nn.top+nn.height),this.topLeftPaddingBox=an>0||sn>0?getCurvePoints(nn.left+Bn,nn.top+kn,Math.max(0,an-Bn),Math.max(0,sn-kn),qa.TOP_LEFT):new Ya(nn.left+Bn,nn.top+kn),this.topRightPaddingBox=An>0||dn>0?getCurvePoints(nn.left+Math.min(bn,nn.width-Cn),nn.top+kn,bn>nn.width+Cn?0:Math.max(0,An-Cn),Math.max(0,dn-kn),qa.TOP_RIGHT):new Ya(nn.left+nn.width-Cn,nn.top+kn),this.bottomRightPaddingBox=pn>0||hn>0?getCurvePoints(nn.left+Math.min(wn,nn.width-Bn),nn.top+Math.min(vn,nn.height-Sn),Math.max(0,pn-Cn),Math.max(0,hn-Sn),qa.BOTTOM_RIGHT):new Ya(nn.left+nn.width-Cn,nn.top+nn.height-Sn),this.bottomLeftPaddingBox=_n>0||mn>0?getCurvePoints(nn.left+Bn,nn.top+Math.min(xn,nn.height-Sn),Math.max(0,_n-Bn),Math.max(0,mn-Sn),qa.BOTTOM_LEFT):new Ya(nn.left+Bn,nn.top+nn.height-Sn),this.topLeftContentBox=an>0||sn>0?getCurvePoints(nn.left+Bn+Pn,nn.top+kn+En,Math.max(0,an-(Bn+Pn)),Math.max(0,sn-(kn+En)),qa.TOP_LEFT):new Ya(nn.left+Bn+Pn,nn.top+kn+En),this.topRightContentBox=An>0||dn>0?getCurvePoints(nn.left+Math.min(bn,nn.width+Bn+Pn),nn.top+kn+En,bn>nn.width+Bn+Pn?0:An-Bn+Pn,dn-(kn+En),qa.TOP_RIGHT):new Ya(nn.left+nn.width-(Cn+jn),nn.top+kn+En),this.bottomRightContentBox=pn>0||hn>0?getCurvePoints(nn.left+Math.min(wn,nn.width-(Bn+Pn)),nn.top+Math.min(vn,nn.height+kn+En),Math.max(0,pn-(Cn+jn)),hn-(Sn+Ln),qa.BOTTOM_RIGHT):new Ya(nn.left+nn.width-(Cn+jn),nn.top+nn.height-(Sn+Ln)),this.bottomLeftContentBox=_n>0||mn>0?getCurvePoints(nn.left+Bn+Pn,nn.top+xn,Math.max(0,_n-(Bn+Pn)),mn-(Sn+Ln),qa.BOTTOM_LEFT):new Ya(nn.left+Bn+Pn,nn.top+nn.height-(Sn+Ln))};!function(en){en[en.TOP_LEFT=0]="TOP_LEFT",en[en.TOP_RIGHT=1]="TOP_RIGHT",en[en.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",en[en.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(qa||(qa={}));var getCurvePoints=function(en,tn,nn,rn,an){var sn=(Math.sqrt(2)-1)/3*4,cn=nn*sn,An=rn*sn,dn=en+nn,un=tn+rn;switch(an){case qa.TOP_LEFT:return new Za(new Ya(en,un),new Ya(en,un-An),new Ya(dn-cn,tn),new Ya(dn,tn));case qa.TOP_RIGHT:return new Za(new Ya(en,tn),new Ya(en+cn,tn),new Ya(dn,un-An),new Ya(dn,un));case qa.BOTTOM_RIGHT:return new Za(new Ya(dn,tn),new Ya(dn,tn+An),new Ya(en+cn,un),new Ya(en,un));case qa.BOTTOM_LEFT:default:return new Za(new Ya(dn,un),new Ya(dn-cn,un),new Ya(en,tn+An),new Ya(en,tn))}},calculateBorderBoxPath=function(en){return[en.topLeftBorderBox,en.topRightBorderBox,en.bottomRightBorderBox,en.bottomLeftBorderBox]},calculatePaddingBoxPath=function(en){return[en.topLeftPaddingBox,en.topRightPaddingBox,en.bottomRightPaddingBox,en.bottomLeftPaddingBox]},es=function TransformEffect(en,tn,nn){this.offsetX=en,this.offsetY=tn,this.matrix=nn,this.type=0,this.target=6},ts=function ClipEffect(en,tn){this.path=en,this.target=tn,this.type=1},ns=function OpacityEffect(en){this.opacity=en,this.type=2,this.target=6},isClipEffect=function(en){return 1===en.type},equalPath=function(en,tn){return en.length===tn.length&&en.some((function(en,nn){return en===tn[nn]}))},rs=function StackingContext(en){this.element=en,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},os=function(){function ElementPaint(en,tn){if(this.container=en,this.parent=tn,this.effects=[],this.curves=new Ja(this.container),this.container.styles.opacity<1&&this.effects.push(new ns(this.container.styles.opacity)),null!==this.container.styles.transform){var nn=this.container.bounds.left+this.container.styles.transformOrigin[0].number,rn=this.container.bounds.top+this.container.styles.transformOrigin[1].number,an=this.container.styles.transform;this.effects.push(new es(nn,rn,an))}if(0!==this.container.styles.overflowX){var sn=calculateBorderBoxPath(this.curves),cn=calculatePaddingBoxPath(this.curves);equalPath(sn,cn)?this.effects.push(new ts(sn,6)):(this.effects.push(new ts(sn,2)),this.effects.push(new ts(cn,4)))}}return ElementPaint.prototype.getEffects=function(en){for(var tn=-1===[2,3].indexOf(this.container.styles.position),nn=this.parent,rn=this.effects.slice(0);nn;){var an=nn.effects.filter((function(en){return!isClipEffect(en)}));if(tn||0!==nn.container.styles.position||!nn.parent){if(rn.unshift.apply(rn,an),tn=-1===[2,3].indexOf(nn.container.styles.position),0!==nn.container.styles.overflowX){var sn=calculateBorderBoxPath(nn.curves),cn=calculatePaddingBoxPath(nn.curves);equalPath(sn,cn)||rn.unshift(new ts(cn,6))}}else rn.unshift.apply(rn,an);nn=nn.parent}return rn.filter((function(tn){return contains(tn.target,en)}))},ElementPaint}(),parseStackTree=function(en,tn,nn,rn){en.container.elements.forEach((function(an){var sn=contains(an.flags,4),cn=contains(an.flags,2),An=new os(an,en);contains(an.styles.display,2048)&&rn.push(An);var dn=contains(an.flags,8)?[]:rn;if(sn||cn){var un=sn||an.styles.isPositioned()?nn:tn,pn=new rs(An);if(an.styles.isPositioned()||an.styles.opacity<1||an.styles.isTransformed()){var hn=an.styles.zIndex.order;if(hn<0){var gn=0;un.negativeZIndex.some((function(en,tn){return hn>en.element.container.styles.zIndex.order?(gn=tn,!1):gn>0})),un.negativeZIndex.splice(gn,0,pn)}else if(hn>0){var _n=0;un.positiveZIndex.some((function(en,tn){return hn>=en.element.container.styles.zIndex.order?(_n=tn+1,!1):_n>0})),un.positiveZIndex.splice(_n,0,pn)}else un.zeroOrAutoZIndexOrTransformedOrOpacity.push(pn)}else an.styles.isFloating()?un.nonPositionedFloats.push(pn):un.nonPositionedInlineLevel.push(pn);parseStackTree(An,pn,sn?pn:nn,dn)}else an.styles.isInlineLevel()?tn.inlineLevel.push(An):tn.nonInlineLevel.push(An),parseStackTree(An,tn,nn,dn);contains(an.flags,8)&&processListItems(an,dn)}))},processListItems=function(en,tn){for(var nn=en instanceof fa?en.start:1,rn=en instanceof fa&&en.reversed,an=0;an<tn.length;an++){var sn=tn[an];sn.container instanceof ma&&"number"==typeof sn.container.value&&0!==sn.container.value&&(nn=sn.container.value),sn.listValue=createCounterText(nn,sn.container.styles.listStyleType,!0),nn+=rn?-1:1}},parsePathForBorder=function(en,tn){switch(tn){case 0:return createPathFromCurves(en.topLeftBorderBox,en.topLeftPaddingBox,en.topRightBorderBox,en.topRightPaddingBox);case 1:return createPathFromCurves(en.topRightBorderBox,en.topRightPaddingBox,en.bottomRightBorderBox,en.bottomRightPaddingBox);case 2:return createPathFromCurves(en.bottomRightBorderBox,en.bottomRightPaddingBox,en.bottomLeftBorderBox,en.bottomLeftPaddingBox);default:return createPathFromCurves(en.bottomLeftBorderBox,en.bottomLeftPaddingBox,en.topLeftBorderBox,en.topLeftPaddingBox)}},createStrokePathFromCurves=function(en,tn){var nn=[];return isBezierCurve(en)?nn.push(en.subdivide(.5,!1)):nn.push(en),isBezierCurve(tn)?nn.push(tn.subdivide(.5,!0)):nn.push(tn),nn},createPathFromCurves=function(en,tn,nn,rn){var an=[];return isBezierCurve(en)?an.push(en.subdivide(.5,!1)):an.push(en),isBezierCurve(nn)?an.push(nn.subdivide(.5,!0)):an.push(nn),isBezierCurve(rn)?an.push(rn.subdivide(.5,!0).reverse()):an.push(rn),isBezierCurve(tn)?an.push(tn.subdivide(.5,!1).reverse()):an.push(tn),an},paddingBox=function(en){var tn=en.bounds,nn=en.styles;return tn.add(nn.borderLeftWidth,nn.borderTopWidth,-(nn.borderRightWidth+nn.borderLeftWidth),-(nn.borderTopWidth+nn.borderBottomWidth))},contentBox=function(en){var tn=en.styles,nn=en.bounds,rn=getAbsoluteValue(tn.paddingLeft,nn.width),an=getAbsoluteValue(tn.paddingRight,nn.width),sn=getAbsoluteValue(tn.paddingTop,nn.width),cn=getAbsoluteValue(tn.paddingBottom,nn.width);return nn.add(rn+tn.borderLeftWidth,sn+tn.borderTopWidth,-(tn.borderRightWidth+tn.borderLeftWidth+rn+an),-(tn.borderTopWidth+tn.borderBottomWidth+sn+cn))},calculateBackgroundRendering=function(en,tn,nn){var rn=function(en,tn){return 0===en?tn.bounds:2===en?contentBox(tn):paddingBox(tn)}(getBackgroundValueForIndex(en.styles.backgroundOrigin,tn),en),an=function(en,tn){return 0===en?tn.bounds:2===en?contentBox(tn):paddingBox(tn)}(getBackgroundValueForIndex(en.styles.backgroundClip,tn),en),sn=calculateBackgroundSize(getBackgroundValueForIndex(en.styles.backgroundSize,tn),nn,rn),cn=sn[0],An=sn[1],dn=getAbsoluteValueForTuple(getBackgroundValueForIndex(en.styles.backgroundPosition,tn),rn.width-cn,rn.height-An);return[calculateBackgroundRepeatPath(getBackgroundValueForIndex(en.styles.backgroundRepeat,tn),dn,sn,rn,an),Math.round(rn.left+dn[0]),Math.round(rn.top+dn[1]),cn,An]},isAuto=function(en){return isIdentToken(en)&&en.value===ko.AUTO},hasIntrinsicValue=function(en){return"number"==typeof en},calculateBackgroundSize=function(en,tn,nn){var rn=tn[0],an=tn[1],sn=tn[2],cn=en[0],An=en[1];if(!cn)return[0,0];if(isLengthPercentage(cn)&&An&&isLengthPercentage(An))return[getAbsoluteValue(cn,nn.width),getAbsoluteValue(An,nn.height)];var dn=hasIntrinsicValue(sn);if(isIdentToken(cn)&&(cn.value===ko.CONTAIN||cn.value===ko.COVER))return hasIntrinsicValue(sn)?nn.width/nn.height<sn!=(cn.value===ko.COVER)?[nn.width,nn.width/sn]:[nn.height*sn,nn.height]:[nn.width,nn.height];var un=hasIntrinsicValue(rn),pn=hasIntrinsicValue(an),hn=un||pn;if(isAuto(cn)&&(!An||isAuto(An)))return un&&pn?[rn,an]:dn||hn?hn&&dn?[un?rn:an*sn,pn?an:rn/sn]:[un?rn:nn.width,pn?an:nn.height]:[nn.width,nn.height];if(dn){var gn=0,_n=0;return isLengthPercentage(cn)?gn=getAbsoluteValue(cn,nn.width):isLengthPercentage(An)&&(_n=getAbsoluteValue(An,nn.height)),isAuto(cn)?gn=_n*sn:An&&!isAuto(An)||(_n=gn/sn),[gn,_n]}var mn=null,fn=null;if(isLengthPercentage(cn)?mn=getAbsoluteValue(cn,nn.width):An&&isLengthPercentage(An)&&(fn=getAbsoluteValue(An,nn.height)),null===mn||An&&!isAuto(An)||(fn=un&&pn?mn/rn*an:nn.height),null!==fn&&isAuto(cn)&&(mn=un&&pn?fn/an*rn:nn.width),null!==mn&&null!==fn)return[mn,fn];throw new Error("Unable to calculate background-size for element")},getBackgroundValueForIndex=function(en,tn){var nn=en[tn];return void 0===nn?en[0]:nn},calculateBackgroundRepeatPath=function(en,tn,nn,rn,an){var sn=tn[0],cn=tn[1],An=nn[0],dn=nn[1];switch(en){case 2:return[new Ya(Math.round(rn.left),Math.round(rn.top+cn)),new Ya(Math.round(rn.left+rn.width),Math.round(rn.top+cn)),new Ya(Math.round(rn.left+rn.width),Math.round(dn+rn.top+cn)),new Ya(Math.round(rn.left),Math.round(dn+rn.top+cn))];case 3:return[new Ya(Math.round(rn.left+sn),Math.round(rn.top)),new Ya(Math.round(rn.left+sn+An),Math.round(rn.top)),new Ya(Math.round(rn.left+sn+An),Math.round(rn.height+rn.top)),new Ya(Math.round(rn.left+sn),Math.round(rn.height+rn.top))];case 1:return[new Ya(Math.round(rn.left+sn),Math.round(rn.top+cn)),new Ya(Math.round(rn.left+sn+An),Math.round(rn.top+cn)),new Ya(Math.round(rn.left+sn+An),Math.round(rn.top+cn+dn)),new Ya(Math.round(rn.left+sn),Math.round(rn.top+cn+dn))];default:return[new Ya(Math.round(an.left),Math.round(an.top)),new Ya(Math.round(an.left+an.width),Math.round(an.top)),new Ya(Math.round(an.left+an.width),Math.round(an.height+an.top)),new Ya(Math.round(an.left),Math.round(an.height+an.top))]}},is="Hidden Text",as=function(){function FontMetrics(en){this._data={},this._document=en}return FontMetrics.prototype.parseMetrics=function(en,tn){var nn=this._document.createElement("div"),rn=this._document.createElement("img"),an=this._document.createElement("span"),sn=this._document.body;nn.style.visibility="hidden",nn.style.fontFamily=en,nn.style.fontSize=tn,nn.style.margin="0",nn.style.padding="0",nn.style.whiteSpace="nowrap",sn.appendChild(nn),rn.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",rn.width=1,rn.height=1,rn.style.margin="0",rn.style.padding="0",rn.style.verticalAlign="baseline",an.style.fontFamily=en,an.style.fontSize=tn,an.style.margin="0",an.style.padding="0",an.appendChild(this._document.createTextNode(is)),nn.appendChild(an),nn.appendChild(rn);var cn=rn.offsetTop-an.offsetTop+2;nn.removeChild(an),nn.appendChild(this._document.createTextNode(is)),nn.style.lineHeight="normal",rn.style.verticalAlign="super";var An=rn.offsetTop-nn.offsetTop+2;return sn.removeChild(nn),{baseline:cn,middle:An}},FontMetrics.prototype.getMetrics=function(en,tn){var nn=en+" "+tn;return void 0===this._data[nn]&&(this._data[nn]=this.parseMetrics(en,tn)),this._data[nn]},FontMetrics}(),ss=function Renderer(en,tn){this.context=en,this.options=tn},ls=function(tn){function CanvasRenderer(en,nn){var rn=tn.call(this,en,nn)||this;return rn._activeEffects=[],rn.canvas=nn.canvas?nn.canvas:document.createElement("canvas"),rn.ctx=rn.canvas.getContext("2d"),nn.canvas||(rn.canvas.width=Math.floor(nn.width*nn.scale),rn.canvas.height=Math.floor(nn.height*nn.scale),rn.canvas.style.width=nn.width+"px",rn.canvas.style.height=nn.height+"px"),rn.fontMetrics=new as(document),rn.ctx.scale(rn.options.scale,rn.options.scale),rn.ctx.translate(-nn.x,-nn.y),rn.ctx.textBaseline="bottom",rn._activeEffects=[],rn.context.logger.debug("Canvas renderer initialized ("+nn.width+"x"+nn.height+") with scale "+nn.scale),rn}return __extends(CanvasRenderer,tn),CanvasRenderer.prototype.applyEffects=function(en){for(var tn=this;this._activeEffects.length;)this.popEffect();en.forEach((function(en){return tn.applyEffect(en)}))},CanvasRenderer.prototype.applyEffect=function(en){this.ctx.save(),function(en){return 2===en.type}(en)&&(this.ctx.globalAlpha=en.opacity),function(en){return 0===en.type}(en)&&(this.ctx.translate(en.offsetX,en.offsetY),this.ctx.transform(en.matrix[0],en.matrix[1],en.matrix[2],en.matrix[3],en.matrix[4],en.matrix[5]),this.ctx.translate(-en.offsetX,-en.offsetY)),isClipEffect(en)&&(this.path(en.path),this.ctx.clip()),this._activeEffects.push(en)},CanvasRenderer.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},CanvasRenderer.prototype.renderStack=function(en){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(tn){switch(tn.label){case 0:return en.element.container.styles.isVisible()?[4,this.renderStackContent(en)]:[3,2];case 1:tn.sent(),tn.label=2;case 2:return[2]}}))}))},CanvasRenderer.prototype.renderNode=function(en){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(tn){switch(tn.label){case 0:return contains(en.container.flags,16),en.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(en)]:[3,3];case 1:return tn.sent(),[4,this.renderNodeContent(en)];case 2:tn.sent(),tn.label=3;case 3:return[2]}}))}))},CanvasRenderer.prototype.renderTextWithLetterSpacing=function(en,tn,nn){var rn=this;0===tn?this.ctx.fillText(en.text,en.bounds.left,en.bounds.top+nn):segmentGraphemes(en.text).reduce((function(tn,an){return rn.ctx.fillText(an,tn,en.bounds.top+nn),tn+rn.ctx.measureText(an).width}),en.bounds.left)},CanvasRenderer.prototype.createFontStyle=function(en){var tn=en.fontVariant.filter((function(en){return"normal"===en||"small-caps"===en})).join(""),nn=fixIOSSystemFonts(en.fontFamily).join(", "),rn=isDimensionToken(en.fontSize)?""+en.fontSize.number+en.fontSize.unit:en.fontSize.number+"px";return[[en.fontStyle,tn,en.fontWeight,rn,nn].join(" "),nn,rn]},CanvasRenderer.prototype.renderTextNode=function(en,tn){return __awaiter(this,void 0,void 0,(function(){var nn,rn,an,sn,cn,An,dn,un,pn=this;return __generator(this,(function(hn){return nn=this.createFontStyle(tn),rn=nn[0],an=nn[1],sn=nn[2],this.ctx.font=rn,this.ctx.direction=1===tn.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",cn=this.fontMetrics.getMetrics(an,sn),An=cn.baseline,dn=cn.middle,un=tn.paintOrder,en.textBounds.forEach((function(en){un.forEach((function(nn){switch(nn){case 0:pn.ctx.fillStyle=asString(tn.color),pn.renderTextWithLetterSpacing(en,tn.letterSpacing,An);var rn=tn.textShadow;rn.length&&en.text.trim().length&&(rn.slice(0).reverse().forEach((function(nn){pn.ctx.shadowColor=asString(nn.color),pn.ctx.shadowOffsetX=nn.offsetX.number*pn.options.scale,pn.ctx.shadowOffsetY=nn.offsetY.number*pn.options.scale,pn.ctx.shadowBlur=nn.blur.number,pn.renderTextWithLetterSpacing(en,tn.letterSpacing,An)})),pn.ctx.shadowColor="",pn.ctx.shadowOffsetX=0,pn.ctx.shadowOffsetY=0,pn.ctx.shadowBlur=0),tn.textDecorationLine.length&&(pn.ctx.fillStyle=asString(tn.textDecorationColor||tn.color),tn.textDecorationLine.forEach((function(tn){switch(tn){case 1:pn.ctx.fillRect(en.bounds.left,Math.round(en.bounds.top+An),en.bounds.width,1);break;case 2:pn.ctx.fillRect(en.bounds.left,Math.round(en.bounds.top),en.bounds.width,1);break;case 3:pn.ctx.fillRect(en.bounds.left,Math.ceil(en.bounds.top+dn),en.bounds.width,1)}})));break;case 1:tn.webkitTextStrokeWidth&&en.text.trim().length&&(pn.ctx.strokeStyle=asString(tn.webkitTextStrokeColor),pn.ctx.lineWidth=tn.webkitTextStrokeWidth,pn.ctx.lineJoin=window.chrome?"miter":"round",pn.ctx.strokeText(en.text,en.bounds.left,en.bounds.top+An)),pn.ctx.strokeStyle="",pn.ctx.lineWidth=0,pn.ctx.lineJoin="miter"}}))})),[2]}))}))},CanvasRenderer.prototype.renderReplacedElement=function(en,tn,nn){if(nn&&en.intrinsicWidth>0&&en.intrinsicHeight>0){var rn=contentBox(en),an=calculatePaddingBoxPath(tn);this.path(an),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(nn,0,0,en.intrinsicWidth,en.intrinsicHeight,rn.left,rn.top,rn.width,rn.height),this.ctx.restore()}},CanvasRenderer.prototype.renderNodeContent=function(tn){return __awaiter(this,void 0,void 0,(function(){var nn,rn,an,sn,cn,An,dn,un,pn,hn,gn,_n,mn,fn,yn,bn,vn,wn;return __generator(this,(function(xn){switch(xn.label){case 0:this.applyEffects(tn.getEffects(4)),nn=tn.container,rn=tn.curves,an=nn.styles,sn=0,cn=nn.textNodes,xn.label=1;case 1:return sn<cn.length?(An=cn[sn],[4,this.renderTextNode(An,an)]):[3,4];case 2:xn.sent(),xn.label=3;case 3:return sn++,[3,1];case 4:if(!(nn instanceof ha))return[3,8];xn.label=5;case 5:return xn.trys.push([5,7,,8]),[4,this.context.cache.match(nn.src)];case 6:return yn=xn.sent(),this.renderReplacedElement(nn,rn,yn),[3,8];case 7:return xn.sent(),this.context.logger.error("Error loading image "+nn.src),[3,8];case 8:if(nn instanceof ga&&this.renderReplacedElement(nn,rn,nn.canvas),!(nn instanceof _a))return[3,12];xn.label=9;case 9:return xn.trys.push([9,11,,12]),[4,this.context.cache.match(nn.svg)];case 10:return yn=xn.sent(),this.renderReplacedElement(nn,rn,yn),[3,12];case 11:return xn.sent(),this.context.logger.error("Error loading svg "+nn.svg.substring(0,255)),[3,12];case 12:return nn instanceof Ea&&nn.tree?[4,new CanvasRenderer(this.context,{scale:this.options.scale,backgroundColor:nn.backgroundColor,x:0,y:0,width:nn.width,height:nn.height}).render(nn.tree)]:[3,14];case 13:dn=xn.sent(),nn.width&&nn.height&&this.ctx.drawImage(dn,0,0,nn.width,nn.height,nn.bounds.left,nn.bounds.top,nn.bounds.width,nn.bounds.height),xn.label=14;case 14:if(nn instanceof Ca&&(un=Math.min(nn.bounds.width,nn.bounds.height),nn.type===va?nn.checked&&(this.ctx.save(),this.path([new Ya(nn.bounds.left+.39363*un,nn.bounds.top+.79*un),new Ya(nn.bounds.left+.16*un,nn.bounds.top+.5549*un),new Ya(nn.bounds.left+.27347*un,nn.bounds.top+.44071*un),new Ya(nn.bounds.left+.39694*un,nn.bounds.top+.5649*un),new Ya(nn.bounds.left+.72983*un,nn.bounds.top+.23*un),new Ya(nn.bounds.left+.84*un,nn.bounds.top+.34085*un),new Ya(nn.bounds.left+.39363*un,nn.bounds.top+.79*un)]),this.ctx.fillStyle=asString(ka),this.ctx.fill(),this.ctx.restore()):nn.type===wa&&nn.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(nn.bounds.left+un/2,nn.bounds.top+un/2,un/4,0,2*Math.PI,!0),this.ctx.fillStyle=asString(ka),this.ctx.fill(),this.ctx.restore())),isTextInputElement(nn)&&nn.value.length){switch(pn=this.createFontStyle(an),vn=pn[0],hn=pn[1],gn=this.fontMetrics.getMetrics(vn,hn).baseline,this.ctx.font=vn,this.ctx.fillStyle=asString(an.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=canvasTextAlign(nn.styles.textAlign),wn=contentBox(nn),_n=0,nn.styles.textAlign){case 1:_n+=wn.width/2;break;case 2:_n+=wn.width}mn=wn.add(_n,0,0,-wn.height/2+1),this.ctx.save(),this.path([new Ya(wn.left,wn.top),new Ya(wn.left+wn.width,wn.top),new Ya(wn.left+wn.width,wn.top+wn.height),new Ya(wn.left,wn.top+wn.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Aa(nn.value,mn),an.letterSpacing,gn),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!contains(nn.styles.display,2048))return[3,20];if(null===nn.styles.listStyleImage)return[3,19];if(0!==(fn=nn.styles.listStyleImage).type)return[3,18];yn=void 0,bn=fn.url,xn.label=15;case 15:return xn.trys.push([15,17,,18]),[4,this.context.cache.match(bn)];case 16:return yn=xn.sent(),this.ctx.drawImage(yn,nn.bounds.left-(yn.width+10),nn.bounds.top),[3,18];case 17:return xn.sent(),this.context.logger.error("Error loading list-style-image "+bn),[3,18];case 18:return[3,20];case 19:tn.listValue&&-1!==nn.styles.listStyleType&&(vn=this.createFontStyle(an)[0],this.ctx.font=vn,this.ctx.fillStyle=asString(an.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",wn=new en(nn.bounds.left,nn.bounds.top+getAbsoluteValue(nn.styles.paddingTop,nn.bounds.width),nn.bounds.width,computeLineHeight(an.lineHeight,an.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Aa(tn.listValue,wn),an.letterSpacing,computeLineHeight(an.lineHeight,an.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),xn.label=20;case 20:return[2]}}))}))},CanvasRenderer.prototype.renderStackContent=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,An,dn,un,pn,hn,gn,_n,mn,fn;return __generator(this,(function(yn){switch(yn.label){case 0:return contains(en.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(en.element)];case 1:yn.sent(),tn=0,nn=en.negativeZIndex,yn.label=2;case 2:return tn<nn.length?(fn=nn[tn],[4,this.renderStack(fn)]):[3,5];case 3:yn.sent(),yn.label=4;case 4:return tn++,[3,2];case 5:return[4,this.renderNodeContent(en.element)];case 6:yn.sent(),rn=0,an=en.nonInlineLevel,yn.label=7;case 7:return rn<an.length?(fn=an[rn],[4,this.renderNode(fn)]):[3,10];case 8:yn.sent(),yn.label=9;case 9:return rn++,[3,7];case 10:sn=0,cn=en.nonPositionedFloats,yn.label=11;case 11:return sn<cn.length?(fn=cn[sn],[4,this.renderStack(fn)]):[3,14];case 12:yn.sent(),yn.label=13;case 13:return sn++,[3,11];case 14:An=0,dn=en.nonPositionedInlineLevel,yn.label=15;case 15:return An<dn.length?(fn=dn[An],[4,this.renderStack(fn)]):[3,18];case 16:yn.sent(),yn.label=17;case 17:return An++,[3,15];case 18:un=0,pn=en.inlineLevel,yn.label=19;case 19:return un<pn.length?(fn=pn[un],[4,this.renderNode(fn)]):[3,22];case 20:yn.sent(),yn.label=21;case 21:return un++,[3,19];case 22:hn=0,gn=en.zeroOrAutoZIndexOrTransformedOrOpacity,yn.label=23;case 23:return hn<gn.length?(fn=gn[hn],[4,this.renderStack(fn)]):[3,26];case 24:yn.sent(),yn.label=25;case 25:return hn++,[3,23];case 26:_n=0,mn=en.positiveZIndex,yn.label=27;case 27:return _n<mn.length?(fn=mn[_n],[4,this.renderStack(fn)]):[3,30];case 28:yn.sent(),yn.label=29;case 29:return _n++,[3,27];case 30:return[2]}}))}))},CanvasRenderer.prototype.mask=function(en){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(en.slice(0).reverse()),this.ctx.closePath()},CanvasRenderer.prototype.path=function(en){this.ctx.beginPath(),this.formatPath(en),this.ctx.closePath()},CanvasRenderer.prototype.formatPath=function(en){var tn=this;en.forEach((function(en,nn){var rn=isBezierCurve(en)?en.start:en;0===nn?tn.ctx.moveTo(rn.x,rn.y):tn.ctx.lineTo(rn.x,rn.y),isBezierCurve(en)&&tn.ctx.bezierCurveTo(en.startControl.x,en.startControl.y,en.endControl.x,en.endControl.y,en.end.x,en.end.y)}))},CanvasRenderer.prototype.renderRepeat=function(en,tn,nn,rn){this.path(en),this.ctx.fillStyle=tn,this.ctx.translate(nn,rn),this.ctx.fill(),this.ctx.translate(-nn,-rn)},CanvasRenderer.prototype.resizeImage=function(en,tn,nn){var rn;if(en.width===tn&&en.height===nn)return en;var an=(null!==(rn=this.canvas.ownerDocument)&&void 0!==rn?rn:document).createElement("canvas");return an.width=Math.max(1,tn),an.height=Math.max(1,nn),an.getContext("2d").drawImage(en,0,0,en.width,en.height,0,0,tn,nn),an},CanvasRenderer.prototype.renderBackgroundImage=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn;return __generator(this,(function(An){switch(An.label){case 0:tn=en.styles.backgroundImage.length-1,nn=function(nn){var an,sn,cn,An,dn,un,pn,hn,gn,_n,mn,fn,yn,bn,vn,wn,xn,kn,Cn,Sn,Bn,En,jn,Ln,Pn,Tn,Fn,Un,Nn,In,Mn;return __generator(this,(function(Rn){switch(Rn.label){case 0:if(0!==nn.type)return[3,5];an=void 0,sn=nn.url,Rn.label=1;case 1:return Rn.trys.push([1,3,,4]),[4,rn.context.cache.match(sn)];case 2:return an=Rn.sent(),[3,4];case 3:return Rn.sent(),rn.context.logger.error("Error loading background-image "+sn),[3,4];case 4:return an&&(cn=calculateBackgroundRendering(en,tn,[an.width,an.height,an.width/an.height]),wn=cn[0],En=cn[1],jn=cn[2],Cn=cn[3],Sn=cn[4],bn=rn.ctx.createPattern(rn.resizeImage(an,Cn,Sn),"repeat"),rn.renderRepeat(wn,bn,En,jn)),[3,6];case 5:!function(en){return 1===en.type}(nn)?function(en){return 2===en.type}(nn)&&(vn=calculateBackgroundRendering(en,tn,[null,null,null]),wn=vn[0],xn=vn[1],kn=vn[2],Cn=vn[3],Sn=vn[4],Bn=0===nn.position.length?[so]:nn.position,En=getAbsoluteValue(Bn[0],Cn),jn=getAbsoluteValue(Bn[Bn.length-1],Sn),Ln=function(en,tn,nn,rn,an){var sn=0,cn=0;switch(en.size){case 0:0===en.shape?sn=cn=Math.min(Math.abs(tn),Math.abs(tn-rn),Math.abs(nn),Math.abs(nn-an)):1===en.shape&&(sn=Math.min(Math.abs(tn),Math.abs(tn-rn)),cn=Math.min(Math.abs(nn),Math.abs(nn-an)));break;case 2:if(0===en.shape)sn=cn=Math.min(distance(tn,nn),distance(tn,nn-an),distance(tn-rn,nn),distance(tn-rn,nn-an));else if(1===en.shape){var An=Math.min(Math.abs(nn),Math.abs(nn-an))/Math.min(Math.abs(tn),Math.abs(tn-rn)),dn=findCorner(rn,an,tn,nn,!0),un=dn[0],pn=dn[1];cn=An*(sn=distance(un-tn,(pn-nn)/An))}break;case 1:0===en.shape?sn=cn=Math.max(Math.abs(tn),Math.abs(tn-rn),Math.abs(nn),Math.abs(nn-an)):1===en.shape&&(sn=Math.max(Math.abs(tn),Math.abs(tn-rn)),cn=Math.max(Math.abs(nn),Math.abs(nn-an)));break;case 3:if(0===en.shape)sn=cn=Math.max(distance(tn,nn),distance(tn,nn-an),distance(tn-rn,nn),distance(tn-rn,nn-an));else if(1===en.shape){An=Math.max(Math.abs(nn),Math.abs(nn-an))/Math.max(Math.abs(tn),Math.abs(tn-rn));var hn=findCorner(rn,an,tn,nn,!1);un=hn[0],pn=hn[1],cn=An*(sn=distance(un-tn,(pn-nn)/An))}}return Array.isArray(en.size)&&(sn=getAbsoluteValue(en.size[0],rn),cn=2===en.size.length?getAbsoluteValue(en.size[1],an):sn),[sn,cn]}(nn,En,jn,Cn,Sn),Pn=Ln[0],Tn=Ln[1],Pn>0&&Tn>0&&(Fn=rn.ctx.createRadialGradient(xn+En,kn+jn,0,xn+En,kn+jn,Pn),processColorStops(nn.stops,2*Pn).forEach((function(en){return Fn.addColorStop(en.stop,asString(en.color))})),rn.path(wn),rn.ctx.fillStyle=Fn,Pn!==Tn?(Un=en.bounds.left+.5*en.bounds.width,Nn=en.bounds.top+.5*en.bounds.height,Mn=1/(In=Tn/Pn),rn.ctx.save(),rn.ctx.translate(Un,Nn),rn.ctx.transform(1,0,0,In,0,0),rn.ctx.translate(-Un,-Nn),rn.ctx.fillRect(xn,Mn*(kn-Nn)+Nn,Cn,Sn*Mn),rn.ctx.restore()):rn.ctx.fill())):(An=calculateBackgroundRendering(en,tn,[null,null,null]),wn=An[0],En=An[1],jn=An[2],Cn=An[3],Sn=An[4],dn=calculateGradientDirection(nn.angle,Cn,Sn),un=dn[0],pn=dn[1],hn=dn[2],gn=dn[3],_n=dn[4],(mn=document.createElement("canvas")).width=Cn,mn.height=Sn,fn=mn.getContext("2d"),yn=fn.createLinearGradient(pn,gn,hn,_n),processColorStops(nn.stops,un).forEach((function(en){return yn.addColorStop(en.stop,asString(en.color))})),fn.fillStyle=yn,fn.fillRect(0,0,Cn,Sn),Cn>0&&Sn>0&&(bn=rn.ctx.createPattern(mn,"repeat"),rn.renderRepeat(wn,bn,En,jn))),Rn.label=6;case 6:return tn--,[2]}}))},rn=this,an=0,sn=en.styles.backgroundImage.slice(0).reverse(),An.label=1;case 1:return an<sn.length?(cn=sn[an],[5,nn(cn)]):[3,4];case 2:An.sent(),An.label=3;case 3:return an++,[3,1];case 4:return[2]}}))}))},CanvasRenderer.prototype.renderSolidBorder=function(en,tn,nn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(rn){return this.path(parsePathForBorder(nn,tn)),this.ctx.fillStyle=asString(en),this.ctx.fill(),[2]}))}))},CanvasRenderer.prototype.renderDoubleBorder=function(en,tn,nn,rn){return __awaiter(this,void 0,void 0,(function(){var an,sn;return __generator(this,(function(cn){switch(cn.label){case 0:return tn<3?[4,this.renderSolidBorder(en,nn,rn)]:[3,2];case 1:return cn.sent(),[2];case 2:return an=function(en,tn){switch(tn){case 0:return createPathFromCurves(en.topLeftBorderBox,en.topLeftBorderDoubleOuterBox,en.topRightBorderBox,en.topRightBorderDoubleOuterBox);case 1:return createPathFromCurves(en.topRightBorderBox,en.topRightBorderDoubleOuterBox,en.bottomRightBorderBox,en.bottomRightBorderDoubleOuterBox);case 2:return createPathFromCurves(en.bottomRightBorderBox,en.bottomRightBorderDoubleOuterBox,en.bottomLeftBorderBox,en.bottomLeftBorderDoubleOuterBox);default:return createPathFromCurves(en.bottomLeftBorderBox,en.bottomLeftBorderDoubleOuterBox,en.topLeftBorderBox,en.topLeftBorderDoubleOuterBox)}}(rn,nn),this.path(an),this.ctx.fillStyle=asString(en),this.ctx.fill(),sn=function(en,tn){switch(tn){case 0:return createPathFromCurves(en.topLeftBorderDoubleInnerBox,en.topLeftPaddingBox,en.topRightBorderDoubleInnerBox,en.topRightPaddingBox);case 1:return createPathFromCurves(en.topRightBorderDoubleInnerBox,en.topRightPaddingBox,en.bottomRightBorderDoubleInnerBox,en.bottomRightPaddingBox);case 2:return createPathFromCurves(en.bottomRightBorderDoubleInnerBox,en.bottomRightPaddingBox,en.bottomLeftBorderDoubleInnerBox,en.bottomLeftPaddingBox);default:return createPathFromCurves(en.bottomLeftBorderDoubleInnerBox,en.bottomLeftPaddingBox,en.topLeftBorderDoubleInnerBox,en.topLeftPaddingBox)}}(rn,nn),this.path(sn),this.ctx.fill(),[2]}}))}))},CanvasRenderer.prototype.renderNodeBackgroundAndBorders=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,An,dn,un=this;return __generator(this,(function(pn){switch(pn.label){case 0:return this.applyEffects(en.getEffects(2)),tn=en.container.styles,nn=!isTransparent(tn.backgroundColor)||tn.backgroundImage.length,rn=[{style:tn.borderTopStyle,color:tn.borderTopColor,width:tn.borderTopWidth},{style:tn.borderRightStyle,color:tn.borderRightColor,width:tn.borderRightWidth},{style:tn.borderBottomStyle,color:tn.borderBottomColor,width:tn.borderBottomWidth},{style:tn.borderLeftStyle,color:tn.borderLeftColor,width:tn.borderLeftWidth}],an=calculateBackgroundCurvedPaintingArea(getBackgroundValueForIndex(tn.backgroundClip,0),en.curves),nn||tn.boxShadow.length?(this.ctx.save(),this.path(an),this.ctx.clip(),isTransparent(tn.backgroundColor)||(this.ctx.fillStyle=asString(tn.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(en.container)]):[3,2];case 1:pn.sent(),this.ctx.restore(),tn.boxShadow.slice(0).reverse().forEach((function(tn){un.ctx.save();var nn=calculateBorderBoxPath(en.curves),rn=tn.inset?0:1e4,an=function(en,tn,nn,rn,an){return en.map((function(en,sn){switch(sn){case 0:return en.add(tn,nn);case 1:return en.add(tn+rn,nn);case 2:return en.add(tn+rn,nn+an);case 3:return en.add(tn,nn+an)}return en}))}(nn,-rn+(tn.inset?1:-1)*tn.spread.number,(tn.inset?1:-1)*tn.spread.number,tn.spread.number*(tn.inset?-2:2),tn.spread.number*(tn.inset?-2:2));tn.inset?(un.path(nn),un.ctx.clip(),un.mask(an)):(un.mask(nn),un.ctx.clip(),un.path(an)),un.ctx.shadowOffsetX=tn.offsetX.number+rn,un.ctx.shadowOffsetY=tn.offsetY.number,un.ctx.shadowColor=asString(tn.color),un.ctx.shadowBlur=tn.blur.number,un.ctx.fillStyle=tn.inset?asString(tn.color):"rgba(0,0,0,1)",un.ctx.fill(),un.ctx.restore()})),pn.label=2;case 2:sn=0,cn=0,An=rn,pn.label=3;case 3:return cn<An.length?0!==(dn=An[cn]).style&&!isTransparent(dn.color)&&dn.width>0?2!==dn.style?[3,5]:[4,this.renderDashedDottedBorder(dn.color,dn.width,sn,en.curves,2)]:[3,11]:[3,13];case 4:return pn.sent(),[3,11];case 5:return 3!==dn.style?[3,7]:[4,this.renderDashedDottedBorder(dn.color,dn.width,sn,en.curves,3)];case 6:return pn.sent(),[3,11];case 7:return 4!==dn.style?[3,9]:[4,this.renderDoubleBorder(dn.color,dn.width,sn,en.curves)];case 8:return pn.sent(),[3,11];case 9:return[4,this.renderSolidBorder(dn.color,sn,en.curves)];case 10:pn.sent(),pn.label=11;case 11:sn++,pn.label=12;case 12:return cn++,[3,3];case 13:return[2]}}))}))},CanvasRenderer.prototype.renderDashedDottedBorder=function(en,tn,nn,rn,an){return __awaiter(this,void 0,void 0,(function(){var sn,cn,An,dn,un,pn,hn,gn,_n,mn,fn,yn,bn,vn,wn,xn;return __generator(this,(function(kn){return this.ctx.save(),sn=function(en,tn){switch(tn){case 0:return createStrokePathFromCurves(en.topLeftBorderStroke,en.topRightBorderStroke);case 1:return createStrokePathFromCurves(en.topRightBorderStroke,en.bottomRightBorderStroke);case 2:return createStrokePathFromCurves(en.bottomRightBorderStroke,en.bottomLeftBorderStroke);default:return createStrokePathFromCurves(en.bottomLeftBorderStroke,en.topLeftBorderStroke)}}(rn,nn),cn=parsePathForBorder(rn,nn),2===an&&(this.path(cn),this.ctx.clip()),isBezierCurve(cn[0])?(An=cn[0].start.x,dn=cn[0].start.y):(An=cn[0].x,dn=cn[0].y),isBezierCurve(cn[1])?(un=cn[1].end.x,pn=cn[1].end.y):(un=cn[1].x,pn=cn[1].y),hn=0===nn||2===nn?Math.abs(An-un):Math.abs(dn-pn),this.ctx.beginPath(),3===an?this.formatPath(sn):this.formatPath(cn.slice(0,2)),gn=tn<3?3*tn:2*tn,_n=tn<3?2*tn:tn,3===an&&(gn=tn,_n=tn),mn=!0,hn<=2*gn?mn=!1:hn<=2*gn+_n?(gn*=fn=hn/(2*gn+_n),_n*=fn):(yn=Math.floor((hn+_n)/(gn+_n)),bn=(hn-yn*gn)/(yn-1),_n=(vn=(hn-(yn+1)*gn)/yn)<=0||Math.abs(_n-bn)<Math.abs(_n-vn)?bn:vn),mn&&(3===an?this.ctx.setLineDash([0,gn+_n]):this.ctx.setLineDash([gn,_n])),3===an?(this.ctx.lineCap="round",this.ctx.lineWidth=tn):this.ctx.lineWidth=2*tn+1.1,this.ctx.strokeStyle=asString(en),this.ctx.stroke(),this.ctx.setLineDash([]),2===an&&(isBezierCurve(cn[0])&&(wn=cn[3],xn=cn[0],this.ctx.beginPath(),this.formatPath([new Ya(wn.end.x,wn.end.y),new Ya(xn.start.x,xn.start.y)]),this.ctx.stroke()),isBezierCurve(cn[1])&&(wn=cn[1],xn=cn[2],this.ctx.beginPath(),this.formatPath([new Ya(wn.end.x,wn.end.y),new Ya(xn.start.x,xn.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},CanvasRenderer.prototype.render=function(en){return __awaiter(this,void 0,void 0,(function(){var tn;return __generator(this,(function(nn){switch(nn.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=asString(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),tn=function(en){var tn=new os(en,null),nn=new rs(tn),rn=[];return parseStackTree(tn,nn,nn,rn),processListItems(tn.container,rn),nn}(en),[4,this.renderStack(tn)];case 1:return nn.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},CanvasRenderer}(ss),isTextInputElement=function(en){return en instanceof Ba||en instanceof Sa||en instanceof Ca&&en.type!==wa&&en.type!==va},calculateBackgroundCurvedPaintingArea=function(en,tn){switch(en){case 0:return calculateBorderBoxPath(tn);case 2:return function(en){return[en.topLeftContentBox,en.topRightContentBox,en.bottomRightContentBox,en.bottomLeftContentBox]}(tn);default:return calculatePaddingBoxPath(tn)}},canvasTextAlign=function(en){switch(en){case 1:return"center";case 2:return"right";default:return"left"}},cs=["-apple-system","system-ui"],fixIOSSystemFonts=function(en){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?en.filter((function(en){return-1===cs.indexOf(en)})):en},As=function(en){function ForeignObjectRenderer(tn,nn){var rn=en.call(this,tn,nn)||this;return rn.canvas=nn.canvas?nn.canvas:document.createElement("canvas"),rn.ctx=rn.canvas.getContext("2d"),rn.options=nn,rn.canvas.width=Math.floor(nn.width*nn.scale),rn.canvas.height=Math.floor(nn.height*nn.scale),rn.canvas.style.width=nn.width+"px",rn.canvas.style.height=nn.height+"px",rn.ctx.scale(rn.options.scale,rn.options.scale),rn.ctx.translate(-nn.x,-nn.y),rn.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+nn.width+"x"+nn.height+" at "+nn.x+","+nn.y+") with scale "+nn.scale),rn}return __extends(ForeignObjectRenderer,en),ForeignObjectRenderer.prototype.render=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn;return __generator(this,(function(rn){switch(rn.label){case 0:return tn=createForeignObjectSVG(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,en),[4,loadSerializedSVG(tn)];case 1:return nn=rn.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=asString(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(nn,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},ForeignObjectRenderer}(ss),loadSerializedSVG=function(en){return new Promise((function(tn,nn){var rn=new Image;rn.onload=function(){tn(rn)},rn.onerror=nn,rn.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(en))}))},ds=function(){function Logger(en){var tn=en.id,nn=en.enabled;this.id=tn,this.enabled=nn,this.start=Date.now()}return Logger.prototype.debug=function(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,__spreadArray([this.id,this.getTime()+"ms"],en)):this.info.apply(this,en))},Logger.prototype.getTime=function(){return Date.now()-this.start},Logger.prototype.info=function(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,__spreadArray([this.id,this.getTime()+"ms"],en))},Logger.prototype.warn=function(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,__spreadArray([this.id,this.getTime()+"ms"],en)):this.info.apply(this,en))},Logger.prototype.error=function(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,__spreadArray([this.id,this.getTime()+"ms"],en)):this.info.apply(this,en))},Logger.instances={},Logger}(),us=function(){function Context(en,tn){var nn;this.windowBounds=tn,this.instanceName="#"+Context.instanceCount++,this.logger=new ds({id:this.instanceName,enabled:en.logging}),this.cache=null!==(nn=en.cache)&&void 0!==nn?nn:new Ka(this,en)}return Context.instanceCount=1,Context}();"undefined"!=typeof window&&za.setContext(window);var renderElement=function(tn,nn){return __awaiter(void 0,void 0,void 0,(function(){var rn,an,sn,cn,An,dn,un,pn,hn,gn,_n,mn,fn,yn,bn,vn,wn,xn,kn,Cn,Sn,Bn,En,jn,Ln,Pn,Tn,Fn,Un,Nn,In,Mn,Rn,On,Qn,qn,Vn,Gn;return __generator(this,(function(Dn){switch(Dn.label){case 0:if(!tn||"object"!=typeof tn)return[2,Promise.reject("Invalid element provided as first argument")];if(!(rn=tn.ownerDocument))throw new Error("Element is not attached to a Document");if(!(an=rn.defaultView))throw new Error("Document is not attached to a Window");return sn={allowTaint:null!==(Bn=nn.allowTaint)&&void 0!==Bn&&Bn,imageTimeout:null!==(En=nn.imageTimeout)&&void 0!==En?En:15e3,proxy:nn.proxy,useCORS:null!==(jn=nn.useCORS)&&void 0!==jn&&jn},cn=__assign({logging:null===(Ln=nn.logging)||void 0===Ln||Ln,cache:nn.cache},sn),An={windowWidth:null!==(Pn=nn.windowWidth)&&void 0!==Pn?Pn:an.innerWidth,windowHeight:null!==(Tn=nn.windowHeight)&&void 0!==Tn?Tn:an.innerHeight,scrollX:null!==(Fn=nn.scrollX)&&void 0!==Fn?Fn:an.pageXOffset,scrollY:null!==(Un=nn.scrollY)&&void 0!==Un?Un:an.pageYOffset},dn=new en(An.scrollX,An.scrollY,An.windowWidth,An.windowHeight),un=new us(cn,dn),pn=null!==(Nn=nn.foreignObjectRendering)&&void 0!==Nn&&Nn,hn={allowTaint:null!==(In=nn.allowTaint)&&void 0!==In&&In,onclone:nn.onclone,ignoreElements:nn.ignoreElements,inlineImages:pn,copyStyles:pn},un.logger.debug("Starting document clone with size "+dn.width+"x"+dn.height+" scrolled to "+-dn.left+","+-dn.top),gn=new Qa(un,tn,hn),(_n=gn.clonedReferenceElement)?[4,gn.toIFrame(rn,dn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return mn=Dn.sent(),fn=isBodyElement(_n)||function(en){return"HTML"===en.tagName}(_n)?function(tn){var nn=tn.body,rn=tn.documentElement;if(!nn||!rn)throw new Error("Unable to get document size");var an=Math.max(Math.max(nn.scrollWidth,rn.scrollWidth),Math.max(nn.offsetWidth,rn.offsetWidth),Math.max(nn.clientWidth,rn.clientWidth)),sn=Math.max(Math.max(nn.scrollHeight,rn.scrollHeight),Math.max(nn.offsetHeight,rn.offsetHeight),Math.max(nn.clientHeight,rn.clientHeight));return new en(0,0,an,sn)}(_n.ownerDocument):parseBounds(un,_n),yn=fn.width,bn=fn.height,vn=fn.left,wn=fn.top,xn=parseBackgroundColor(un,_n,nn.backgroundColor),kn={canvas:nn.canvas,backgroundColor:xn,scale:null!==(Rn=null!==(Mn=nn.scale)&&void 0!==Mn?Mn:an.devicePixelRatio)&&void 0!==Rn?Rn:1,x:(null!==(On=nn.x)&&void 0!==On?On:0)+vn,y:(null!==(Qn=nn.y)&&void 0!==Qn?Qn:0)+wn,width:null!==(qn=nn.width)&&void 0!==qn?qn:Math.ceil(yn),height:null!==(Vn=nn.height)&&void 0!==Vn?Vn:Math.ceil(bn)},pn?(un.logger.debug("Document cloned, using foreign object rendering"),[4,new As(un,kn).render(_n)]):[3,3];case 2:return Cn=Dn.sent(),[3,5];case 3:return un.logger.debug("Document cloned, element located at "+vn+","+wn+" with size "+yn+"x"+bn+" using computed rendering"),un.logger.debug("Starting DOM parsing"),Sn=parseTree(un,_n),xn===Sn.styles.backgroundColor&&(Sn.styles.backgroundColor=po.TRANSPARENT),un.logger.debug("Starting renderer for element at "+kn.x+","+kn.y+" with size "+kn.width+"x"+kn.height),[4,new ls(un,kn).render(Sn)];case 4:Cn=Dn.sent(),Dn.label=5;case 5:return(null===(Gn=nn.removeContainer)||void 0===Gn||Gn)&&(Qa.destroy(mn)||un.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),un.logger.debug("Finished rendering"),[2,Cn]}}))}))},parseBackgroundColor=function(en,tn,nn){var rn=tn.ownerDocument,an=rn.documentElement?parseColor(en,getComputedStyle(rn.documentElement).backgroundColor):po.TRANSPARENT,sn=rn.body?parseColor(en,getComputedStyle(rn.body).backgroundColor):po.TRANSPARENT,cn="string"==typeof nn?parseColor(en,nn):null===nn?po.TRANSPARENT:4294967295;return tn===rn.documentElement?isTransparent(an)?isTransparent(sn)?cn:sn:an:cn};return function(en,tn){return void 0===tn&&(tn={}),renderElement(en,tn)}}(),$A=_mergeNamespaces({__proto__:null,default:KA},[zA.exports]);
/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/
/**
* Tools for svg.
* @module svg
* @license MIT
* @copyright 2011 Jeff Schiller
*/const{InsertElementCommand:WA,RemoveElementCommand:XA,ChangeElementCommand:YA,BatchCommand:ZA}=La;let JA=null;const svgCanvasToString=()=>{for(;JA.removeUnusedDefElems()>0;);JA.pathActions.clear(!0),JA.getSvgContent().childNodes.forEach(((en,tn)=>{tn&&8===en.nodeType&&en.data.includes("Created with")&&JA.getSvgContent().firstChild.before(en)})),JA.getCurrentGroup()&&(leaveContext(),JA.selectOnly([JA.getCurrentGroup()]));const en=[],tn=JA.getSvgContent().querySelectorAll("g[data-gsvg]");Array.prototype.forEach.call(tn,(tn=>{const nn=tn.attributes;let rn=nn.length;for(let en=0;en<rn;en++)"id"!==nn[en].nodeName&&"style"!==nn[en].nodeName||rn--;if(rn<=0){const nn=tn.firstChild;en.push(nn),tn.replaceWith(nn)}}));const nn=JA.svgToString(JA.getSvgContent(),0);return en.length&&Array.prototype.forEach.call(en,(en=>{JA.groupSvgElem(en)})),nn},svgToString=(en,tn)=>{const nn=JA.getCurConfig(),rn=JA.getNsMap(),an=[],sn=nn.baseUnit,cn=new RegExp("^-?[\\d\\.]+"+sn+"$");if(en){cleanupElement(en);const An=[...en.attributes],dn=en.childNodes;An.sort(((en,tn)=>en.name>tn.name?-1:1));for(let en=0;en<tn;en++)an.push(" ");if(an.push("<"),an.push(en.nodeName),"svgcontent"===en.id){const tn=JA.getResolution();let cn="";nn.dynamicOutput?(cn=en.getAttribute("viewBox"),an.push(' viewBox="'+cn+'" xmlns="'+xa.SVG+'"')):("px"!==sn&&(tn.w=convertUnit$3(tn.w,sn)+sn,tn.h=convertUnit$3(tn.h,sn)+sn),an.push(' width="'+tn.w+'" height="'+tn.h+'" xmlns="'+xa.SVG+'"'));const dn={},un=en.querySelectorAll("*"),pn=Array.prototype.slice.call(un);pn.push(en),Array.prototype.forEach.call(pn,(en=>{const tn=en.namespaceURI;if(tn&&!dn[tn]&&rn[tn]&&"xmlns"!==rn[tn]&&"xml"!==rn[tn]&&(dn[tn]=!0,an.push(" xmlns:"+rn[tn]+'="'+tn+'"')),en.attributes.length>0)for(const[,tn]of Object.entries(en.attributes)){const en=tn.namespaceURI;en&&!dn[en]&&"xmlns"!==rn[en]&&"xml"!==rn[en]&&(dn[en]=!0,an.push(" xmlns:"+rn[en]+'="'+en+'"'))}}));let hn=An.length;const gn=["width","height","xmlns","x","y","viewBox","id","overflow"];for(;hn--;){const en=An[hn],tn=toXml(en.value);en.nodeName.startsWith("xmlns:")||""===tn||gn.includes(en.localName)||en.namespaceURI&&!rn[en.namespaceURI]||(an.push(" "),an.push(en.nodeName),an.push('="'),an.push(tn),an.push('"'))}}else{if("defs"===en.nodeName&&!en.firstChild)return"";const tn=["-moz-math-font-style","_moz-math-font-style"];for(let nn=An.length-1;nn>=0;nn--){const dn=An[nn];let un=toXml(dn.value);if(!tn.includes(dn.localName)){if("null"===un){const tn=dn.localName.replace(/-[a-z]/g,(en=>en[1].toUpperCase()));if(Object.prototype.hasOwnProperty.call(en.style,tn))continue}if(""!==un){if(un.startsWith("pointer-events"))continue;if("class"===dn.localName&&un.startsWith("se_"))continue;if(an.push(" "),"d"===dn.localName&&(un=JA.pathActions.convertPath(en,!0)),isNaN(un)?cn.test(un)&&(un=shortFloat(un)+sn):un=shortFloat(un),JA.getSvgOptionApply()&&"image"===en.nodeName&&"href"===dn.localName&&JA.getSvgOptionImages()&&"embed"===JA.getSvgOptionImages()){const en=JA.getEncodableImages(un);en&&(un=en)}dn.namespaceURI&&dn.namespaceURI!==xa.SVG&&!rn[dn.namespaceURI]||(an.push(dn.nodeName),an.push('="'),an.push(un),an.push('"'))}}}}if(en.hasChildNodes()){an.push(">"),tn++;let nn=!1;for(let en=0;en<dn.length;en++){const rn=dn.item(en);switch(rn.nodeType){case 1:an.push("\n"),an.push(JA.svgToString(rn,tn));break;case 3:{const en=rn.nodeValue.replace(/^\s+|\s+$/g,"");""!==en&&(nn=!0,an.push(String(toXml(en))));break}case 4:an.push("\n"),an.push(new Array(tn+1).join(" ")),an.push("<![CDATA["),an.push(rn.nodeValue),an.push("]]>");break;case 8:an.push("\n"),an.push(new Array(tn+1).join(" ")),an.push("\x3c!--"),an.push(rn.data),an.push("--\x3e")}}if(tn--,!nn){an.push("\n");for(let en=0;en<tn;en++)an.push(" ")}an.push("</"),an.push(en.nodeName),an.push(">")}else an.push("/>")}return an.join("")},setSvgString=(en,tn)=>{const nn=JA.getCurConfig(),rn=JA.getDataStorage();try{const an=text2xml(en);if(an.firstElementChild&&an.firstElementChild.namespaceURI!==xa.SVG)return!1;JA.prepareSvg(an);const sn=new ZA("Change Source"),{nextSibling:cn}=JA.getSvgContent();JA.getSvgContent().remove();const An=JA.getSvgContent();sn.addSubCommand(new XA(An,cn,JA.getSvgRoot())),JA.getDOMDocument().adoptNode?JA.setSvgContent(JA.getDOMDocument().adoptNode(an.documentElement)):JA.setSvgContent(JA.getDOMDocument().importNode(an.documentElement,!0)),JA.getSvgRoot().append(JA.getSvgContent());const dn=JA.getSvgContent();JA.current_drawing_=new Drawing(JA.getSvgContent(),JA.getIdPrefix());const un=JA.getCurrentDrawing().getNonce();un?JA.call("setnonce",un):JA.call("unsetnonce");const pn=dn.querySelectorAll("image");Array.prototype.forEach.call(pn,(en=>{preventClickDefault(en);const tn=JA.getHref(en);if(tn){if(tn.startsWith("data:")){const nn=tn.match(/svgedit_url=(.*?);/);if(nn){const tn=decodeURIComponent(nn[1]),rn=new Image;rn.addEventListener("load",(()=>{en.setAttributeNS(xa.XLINK,"xlink:href",tn)})),rn.src=tn}}JA.embedImage(tn)}}));const hn=dn.querySelectorAll("[id]"),gn={},_n=hn.length;for(let en=0;en<_n;en++){const tn=hn[en].id?hn[en].id:"undefined";isNaN(gn[tn])&&(gn[tn]=0),gn[tn]++}Object.entries(gn).forEach((en=>{let[tn,nn]=en;if(nn>1){const en=dn.querySelectorAll('[id="'+tn+'"]');for(let tn=1;tn<en.length;tn++)en[tn].setAttribute("id",JA.getNextId())}}));const mn=dn.querySelectorAll("svg");if(Array.prototype.forEach.call(mn,(en=>{if(getClosest(en.parentNode,"defs"))return;JA.uniquifyElems(en);const tn=en.parentNode;1===tn.childNodes.length&&"g"===tn.nodeName?(rn.put(tn,"gsvg",en),tn.id=tn.id||JA.getNextId()):JA.groupSvgElem(en)})),isGecko$1()){const en=findDefs(),tn=dn.querySelectorAll("linearGradient, radialGradient, pattern");Array.prototype.forEach.call(tn,(tn=>{en.appendChild(tn)}))}JA.setUseData(dn),JA.convertGradients(dn);const fn={id:"svgcontent",overflow:nn.show_outside_canvas?"visible":"hidden"};let yn=!1;if(dn.getAttribute("viewBox")){const en=dn.getAttribute("viewBox").split(" ");fn.width=en[2],fn.height=en[3]}else["width","height"].forEach((en=>{const tn=dn.getAttribute(en)||"100%";"%"===String(tn).substr(-1)?yn=!0:fn[en]=convertToNum(en,tn)}));identifyLayers();const bn=dn.children;if(Array.prototype.forEach.call(bn,(en=>{const tn=en.querySelectorAll(JA.getVisElems());Array.prototype.forEach.call(tn,(en=>{en.id||(en.id=JA.getNextId())}))})),yn){const en=getStrokedBBoxDefaultVisible();fn.width=en.width+en.x,fn.height=en.height+en.y}fn.width<=0&&(fn.width=100),fn.height<=0&&(fn.height=100);for(const[en,tn]of Object.entries(fn))dn.setAttribute(en,tn);JA.contentW=fn.width,JA.contentH=fn.height,sn.addSubCommand(new WA(JA.getSvgContent()));const vn={width:dn.getAttribute("width"),height:dn.getAttribute("height")};sn.addSubCommand(new YA(JA.getSvgRoot(),vn)),JA.setZoom(1),JA.clearSelection(),clearData(),JA.getSvgRoot().append(JA.selectorManager.selectorParentGroup),tn||JA.addCommandToHistory(sn),JA.call("sourcechanged",[JA.getSvgContent()])}catch(en){return console.error(en),!1}return!0},importSvgString=en=>{const tn=JA.getDataStorage();let nn,rn,an;try{const cn=function hashCode(en){let tn,nn=0;if(0===en.length)return nn;for(let rn=0;rn<en.length;rn++)tn=en.charCodeAt(rn),nn=(nn<<5)-nn+tn,nn|=0;return nn}(en);let An=!1;var sn;if(JA.getImportIds(cn)&&JA.getImportIds(cn).symbol)(null===(sn=getParents(JA.getImportIds(cn).symbol,"#svgroot"))||void 0===sn?void 0:sn.length)&&(An=!0);const dn=new ZA("Import Image");let un;if(An)un=JA.getImportIds(cn).symbol,rn=JA.getImportIds(cn).xform;else{const tn=text2xml(en);JA.prepareSvg(tn);const an=JA.getDOMDocument().adoptNode?JA.getDOMDocument().adoptNode(tn.documentElement):JA.getDOMDocument().importNode(tn.documentElement,!0);JA.uniquifyElems(an);const sn=convertToNum("width",an.getAttribute("width")),An=convertToNum("height",an.getAttribute("height")),pn=an.getAttribute("viewBox"),hn=pn?pn.split(" "):[0,0,sn,An];for(nn=0;nn<4;++nn)hn[nn]=Number(hn[nn]);const gn=Number(JA.getSvgContent().getAttribute("height"));rn=An>sn?"scale("+gn/3/hn[3]+")":"scale("+gn/3/hn[2]+")",rn="translate(0) "+rn+" translate(0)",un=JA.getDOMDocument().createElementNS(xa.SVG,"symbol");const _n=findDefs();if(isGecko$1()){const en=an.querySelectorAll("linearGradient, radialGradient, pattern");Array.prototype.forEach.call(en,(en=>{_n.appendChild(en)}))}for(;an.firstChild;){const en=an.firstChild;un.append(en)}const mn=an.attributes;for(const en of mn)un.setAttribute(en.nodeName,en.value);un.id=JA.getNextId(),JA.setImportIds(cn,{symbol:un,xform:rn}),findDefs().append(un),dn.addSubCommand(new WA(un))}an=JA.getDOMDocument().createElementNS(xa.SVG,"use"),an.id=JA.getNextId(),JA.setHref(an,"#"+un.id),(JA.getCurrentGroup()||JA.getCurrentDrawing().getCurrentLayer()).append(an),dn.addSubCommand(new WA(an)),JA.clearSelection(),an.setAttribute("transform",rn),recalculateDimensions(an),tn.put(an,"symbol",un),tn.put(an,"ref",un),JA.addToSelection([an]),JA.addCommandToHistory(dn),JA.call("changed",[JA.getSvgContent()])}catch(en){return console.error(en),null}return an},embedImage=en=>new Promise(((tn,nn)=>{const rn=new Image;rn.addEventListener("load",(nn=>{const rn=document.createElement("canvas");rn.width=nn.currentTarget.width,rn.height=nn.currentTarget.height,rn.getContext("2d").drawImage(nn.currentTarget,0,0);try{let tn=";svgedit_url="+encodeURIComponent(en);tn=rn.toDataURL().replace(";base64",tn+";base64"),JA.setEncodableImages(en,tn)}catch(nn){JA.setEncodableImages(en,!1)}JA.setGoodImage(en),tn(JA.getEncodableImages(en))})),rn.addEventListener("error",(en=>{nn(new Error("error loading image: ".concat(en.currentTarget.attributes.src.value)))})),rn.setAttribute("src",en)})),getIssues=()=>{const en=JA.getUIStrings();JA.clearSelection();const tn=[],nn=[],rn={feGaussianBlur:en.NoBlur,foreignObject:en.NoforeignObject,"[stroke-dasharray]":en.NoDashArray},an=JA.getSvgContent();"font"in document.querySelector("CANVAS").getContext("2d")||(rn.text=en.NoText);for(const[en,sn]of Object.entries(rn))an.querySelectorAll(en).length&&(nn.push(en),tn.push(sn));return{issues:tn,issueCodes:nn}},rasterExport=async function(en,tn,nn){let rn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const an="ICO"===en?"BMP":en||"PNG",sn="image/"+an.toLowerCase(),{issues:cn,issueCodes:An}=getIssues(),dn=JA.svgCanvasToString(),un=document.createElement("iframe");un.onload=()=>{const pn=un.contentDocument||un.contentWindow.document,hn=JA.getSvgContent().cloneNode(!0);pn.body.appendChild(hn),setTimeout((()=>{KA(pn.body,{useCORS:!0,allowTaint:!0}).then((pn=>new Promise((hn=>{const gn=an.toLowerCase(),_n=tn?pn.toDataURL("image/"+gn,tn):pn.toDataURL("image/"+gn);let mn;un.parentNode.removeChild(un);const done=()=>{const an={datauri:_n,bloburl:mn,svg:dn,issues:cn,issueCodes:An,type:en,mimeType:sn,quality:tn,WindowName:nn};rn.avoidEvent||JA.call("ed",an),hn(an)};pn.toBlob?pn.toBlob((en=>{mn=createObjectURL(en),done()}),sn,tn):(mn=(en=>{if("undefined"==typeof Uint8Array||"undefined"==typeof Blob||"undefined"==typeof URL||!URL.createObjectURL)return"";const tn=en.split(","),nn=tn[0].match(/:(.*?);/)[1],rn=atob(tn[1]);let an=rn.length;const sn=new Uint8Array(an);for(;an--;)sn[an]=rn.charCodeAt(an);const cn=new Blob([sn],{type:nn});return URL.createObjectURL(cn)})(_n),done())}))))}),1e3)},document.body.appendChild(un)},exportPDF=async function(en){let tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fs?"save":void 0;const nn=JA.getResolution(),rn=nn.w>nn.h?"landscape":"portrait",an=document.createElement("iframe");an.onload=()=>{const sn=an.contentDocument||an.contentWindow.document,cn=JA.getSvgContent().cloneNode(!0);sn.body.appendChild(cn),setTimeout((()=>{KA(sn.body,{useCORS:!0,allowTaint:!0}).then((sn=>{const cn=sn.toDataURL("image/png"),An=new E({orientation:rn,unit:"pt",format:[nn.w,nn.h]}),dn=JA.getDocumentTitle();An.setProperties({title:dn}),An.addImage(cn,"PNG",0,0,nn.w,nn.h),an.parentNode.removeChild(an);const{issues:un,issueCodes:pn}=getIssues(),hn={issues:un,issueCodes:pn,WindowName:en,outputType:tn=tn||"dataurlstring"};return hn.output=An.output(tn,"save"===tn?en||"svg.pdf":void 0),JA.call("edPDF",hn),hn}))}),1e3)},document.body.appendChild(an)},uniquifyElemsMethod=en=>{const tn={},nn=["filter","linearGradient","pattern","radialGradient","symbol","textPath","use"];walkTree(en,(en=>{if(1===en.nodeType){en.id&&(en.id in tn||(tn[en.id]={elem:null,attrs:[],hrefs:[]}),tn[en.id].elem=en),JA.getrefAttrs().forEach((nn=>{const rn=en.getAttributeNode(nn);if(rn){const en=JA.getUrlFromAttr(rn.value),nn=en?en.substr(1):null;nn&&(nn in tn||(tn[nn]={elem:null,attrs:[],hrefs:[]}),tn[nn].attrs.push(rn))}}));const rn=JA.getHref(en);if(rn&&nn.includes(en.nodeName)){const nn=rn.substr(1);nn&&(nn in tn||(tn[nn]={elem:null,attrs:[],hrefs:[]}),tn[nn].hrefs.push(en))}}}));for(const en in tn){if(!en)continue;const{elem:nn}=tn[en];if(nn){const rn=JA.getNextId();nn.id=rn;const{attrs:an}=tn[en];let sn=an.length;for(;sn--;){const en=an[sn];en.ownerElement.setAttribute(en.name,"url(#"+rn+")")}const cn=tn[en].hrefs;let An=cn.length;for(;An--;){const en=cn[An];JA.setHref(en,"#"+rn)}}}},setUseDataMethod=en=>{let tn=en;"use"!==en.tagName&&(tn=tn.querySelectorAll("use")),Array.prototype.forEach.call(tn,((en,tn)=>{const nn=JA.getDataStorage(),rn=JA.getHref(en).substr(1),an=JA.getElement(rn);an&&(nn.put(en,"ref",an),"symbol"!==an.tagName&&"svg"!==an.tagName||(nn.put(en,"symbol",an),nn.put(en,"ref",an)))}))},removeUnusedDefElemsMethod=()=>{const en=JA.getSvgContent().getElementsByTagNameNS(xa.SVG,"defs");if(!en||!en.length)return 0;const tn=[];let nn=0;const rn=["fill","stroke","filter","marker-start","marker-mid","marker-end"],an=rn.length,sn=JA.getSvgContent().getElementsByTagNameNS(xa.SVG,"*"),cn=sn.length;let An,dn;for(An=0;An<cn;An++){const en=sn[An];for(dn=0;dn<an;dn++){const nn=JA.getUrlFromAttr(en.getAttribute(rn[dn]));nn&&tn.push(nn.substr(1))}const nn=getHref(en);nn&&nn.startsWith("#")&&tn.push(nn.substr(1))}return Array.prototype.forEach.call(en,((en,rn)=>{const an=en.querySelectorAll("linearGradient, radialGradient, filter, marker, svg, symbol");for(rn=an.length;rn--;){const en=an[rn],{id:sn}=en;tn.includes(sn)||(JA.setRemovedElements(sn,en),en.remove(),nn++)}})),nn},convertGradientsMethod=en=>{let tn=en.querySelectorAll("linearGradient, radialGradient");!tn.length&&isWebkit()&&(tn=Array.prototype.filter.call(en.querySelectorAll("*"),(en=>en.tagName.includes("Gradient")))),Array.prototype.forEach.call(tn,(en=>{if("userSpaceOnUse"===en.getAttribute("gradientUnits")){const tn=JA.getSvgContent();let nn=tn.querySelectorAll('[fill="url(#'+en.id+')"],[stroke="url(#'+en.id+')"]');if(!nn.length){const rn=tn.querySelectorAll('[*|href="#'+en.id+'"]');if(!rn.length)return;if("linearGradient"!==rn[0].tagName&&"radialGradient"!==rn[0].tagName||"userSpaceOnUse"!==rn[0].getAttribute("gradientUnits"))return;nn=tn.querySelectorAll('[fill="url(#'+rn[0].id+')"],[stroke="url(#'+rn[0].id+')"]')}const rn=getBBox(nn[0]);if(!rn)return;if("linearGradient"===en.tagName){const tn={x1:en.getAttribute("x1"),y1:en.getAttribute("y1"),x2:en.getAttribute("x2"),y2:en.getAttribute("y2")},nn=en.gradientTransform.baseVal;if((null==nn?void 0:nn.numberOfItems)>0){const rn=transformListToTransform(nn).matrix,an=transformPoint(tn.x1,tn.y1,rn),sn=transformPoint(tn.x2,tn.y2,rn);tn.x1=an.x,tn.y1=an.y,tn.x2=sn.x,tn.y2=sn.y,en.removeAttribute("gradientTransform")}en.setAttribute("x1",(tn.x1-rn.x)/rn.width),en.setAttribute("y1",(tn.y1-rn.y)/rn.height),en.setAttribute("x2",(tn.x2-rn.x)/rn.width),en.setAttribute("y2",(tn.y2-rn.y)/rn.height),en.removeAttribute("gradientUnits")}}}))};
/**
* DOM element selection box tools.
* @module select
* @license MIT
*
* @copyright 2010 Alexis Deveria, 2010 Jeff Schiller
*/let ed,td;const nd=window.ontouchstart?10:4;class Selector{constructor(en,tn,nn){this.id=en,this.selectedElement=tn,this.locked=!0,this.selectorGroup=ed.createSVGElement({element:"g",attr:{id:"selectorGroup"+this.id}}),this.selectorRect=ed.createSVGElement({element:"path",attr:{id:"selectedBox"+this.id,fill:"none",stroke:"#22C","stroke-width":"1","stroke-dasharray":"5,5",style:"pointer-events:none"}}),this.selectorGroup.append(this.selectorRect),this.gripCoords={nw:null,n:null,ne:null,e:null,se:null,s:null,sw:null,w:null},this.reset(this.selectedElement,nn)}reset(en,tn){this.locked=!0,this.selectedElement=en,this.resize(tn),this.selectorGroup.setAttribute("display","inline")}showGrips(en){const tn=en?"inline":"none";td.selectorGripsGroup.setAttribute("display",tn);const nn=this.selectedElement;this.hasGrips=en,nn&&en&&(this.selectorGroup.append(td.selectorGripsGroup),Selector.updateGripCursors(getRotationAngle(nn)))}resize(en){const tn=ed.getDataStorage(),nn=this.selectorRect,rn=td,an=rn.selectorGrips,sn=this.selectedElement,cn=ed.getZoom();let An=1/cn;const dn=sn.getAttribute("stroke-width");"none"===sn.getAttribute("stroke")||isNaN(dn)||(An+=dn/2);const{tagName:un}=sn;"text"===un&&(An+=2/cn);const pn=sn.transform.baseVal,hn=transformListToTransform(pn).matrix;if(hn.e*=cn,hn.f*=cn,en||(en=getBBox(sn)),"g"===un&&!tn.has(sn,"gsvg")){const tn=getStrokedBBox([sn.childNodes]);tn&&(en=tn)}const gn=en.x,_n=en.y,mn=en.width,fn=en.height;An*=cn;const yn=transformBox(gn*cn,_n*cn,mn*cn,fn*cn,hn),{aabox:bn}=yn;let vn=bn.x-An,wn=bn.y-An,xn=bn.width+2*An,kn=bn.height+2*An;const Cn=vn+xn/2,Sn=wn+kn/2,Bn=getRotationAngle(sn);if(Bn){const en=ed.getSvgRoot().createSVGTransform();en.setRotate(-Bn,Cn,Sn);const tn=en.matrix;yn.tl=transformPoint(yn.tl.x,yn.tl.y,tn),yn.tr=transformPoint(yn.tr.x,yn.tr.y,tn),yn.bl=transformPoint(yn.bl.x,yn.bl.y,tn),yn.br=transformPoint(yn.br.x,yn.br.y,tn);const{tl:nn}=yn;let rn=nn.x,an=nn.y,sn=nn.x,cn=nn.y;const{min:dn,max:un}=Math;rn=dn(rn,dn(yn.tr.x,dn(yn.bl.x,yn.br.x)))-An,an=dn(an,dn(yn.tr.y,dn(yn.bl.y,yn.br.y)))-An,sn=un(sn,un(yn.tr.x,un(yn.bl.x,yn.br.x)))+An,cn=un(cn,un(yn.tr.y,un(yn.bl.y,yn.br.y)))+An,vn=rn,wn=an,xn=sn-rn,kn=cn-an}const En="M"+vn+","+wn+" L"+(vn+xn)+","+wn+" "+(vn+xn)+","+(wn+kn)+" "+vn+","+(wn+kn)+"z",jn=Bn?"rotate("+[Bn,Cn,Sn].join(",")+")":"";this.gripCoords={nw:[vn,wn],ne:[vn+xn,wn],sw:[vn,wn+kn],se:[vn+xn,wn+kn],n:[vn+xn/2,wn],w:[vn,wn+kn/2],e:[vn+xn,wn+kn/2],s:[vn+xn/2,wn+kn]},nn.setAttribute("d",En),this.selectorGroup.setAttribute("transform",jn),Object.entries(this.gripCoords).forEach((en=>{let[tn,nn]=en;an[tn].setAttribute("cx",nn[0]),an[tn].setAttribute("cy",nn[1])})),rn.rotateGripConnector.setAttribute("x1",vn+xn/2),rn.rotateGripConnector.setAttribute("y1",wn),rn.rotateGripConnector.setAttribute("x2",vn+xn/2),rn.rotateGripConnector.setAttribute("y2",wn-5*nd),rn.rotateGrip.setAttribute("cx",vn+xn/2),rn.rotateGrip.setAttribute("cy",wn-5*nd)}static updateGripCursors(en){const tn=Object.keys(td.selectorGrips);let nn=Math.round(en/45);for(nn<0&&(nn+=8);nn>0;)tn.push(tn.shift()),nn--;Object.values(td.selectorGrips).forEach(((en,nn)=>{en.setAttribute("style","cursor:"+tn[nn]+"-resize")}))}}class SelectorManager{constructor(){this.selectorParentGroup=null,this.rubberBandBox=null,this.selectors=[],this.selectorMap={},this.selectorGrips={nw:null,n:null,ne:null,e:null,se:null,s:null,sw:null,w:null},this.selectorGripsGroup=null,this.rotateGripConnector=null,this.rotateGrip=null,this.initGroup()}initGroup(){var en;const tn=ed.getDataStorage();if(null!==(en=this.selectorParentGroup)&&void 0!==en&&en.parentNode&&this.selectorParentGroup.remove(),this.selectorParentGroup=ed.createSVGElement({element:"g",attr:{id:"selectorParentGroup"}}),this.selectorGripsGroup=ed.createSVGElement({element:"g",attr:{display:"none"}}),this.selectorParentGroup.append(this.selectorGripsGroup),ed.getSvgRoot().append(this.selectorParentGroup),this.selectorMap={},this.selectors=[],this.rubberBandBox=null,Object.keys(this.selectorGrips).forEach((en=>{const nn=ed.createSVGElement({element:"circle",attr:{id:"selectorGrip_resize_"+en,fill:"#22C",r:nd,style:"cursor:"+en+"-resize","stroke-width":2,"pointer-events":"all"}});tn.put(nn,"dir",en),tn.put(nn,"type","resize"),this.selectorGrips[en]=nn,this.selectorGripsGroup.append(nn)})),this.rotateGripConnector=ed.createSVGElement({element:"line",attr:{id:"selectorGrip_rotateconnector",stroke:"#22C","stroke-width":"1"}}),this.selectorGripsGroup.append(this.rotateGripConnector),this.rotateGrip=ed.createSVGElement({element:"circle",attr:{id:"selectorGrip_rotate",fill:"lime",r:nd,stroke:"#22C","stroke-width":2,style:"cursor:url(".concat(ed.curConfig.imgPath,"/rotate.svg) 12 12, auto;")}}),this.selectorGripsGroup.append(this.rotateGrip),tn.put(this.rotateGrip,"type","rotate"),document.getElementById("canvasBackground"))return;const[nn,rn]=ed.curConfig.dimensions,an=ed.createSVGElement({element:"svg",attr:{id:"canvasBackground",width:nn,height:rn,x:0,y:0,overflow:isWebkit()?"none":"visible",style:"pointer-events:none"}}),sn=ed.createSVGElement({element:"rect",attr:{width:"100%",height:"100%",x:0,y:0,"stroke-width":1,stroke:"#000",fill:"#FFF",style:"pointer-events:none"}});an.append(sn),ed.getSvgRoot().insertBefore(an,ed.getSvgContent())}requestSelector(en,tn){if(!en)return null;const nn=this.selectors.length;if("object"==typeof this.selectorMap[en.id])return this.selectorMap[en.id].locked=!0,this.selectorMap[en.id];for(let an=0;an<nn;++an){var rn;if(null===(rn=this.selectors[an])||void 0===rn||!rn.locked)return this.selectors[an].locked=!0,this.selectors[an].reset(en,tn),this.selectorMap[en.id]=this.selectors[an],this.selectors[an]}return this.selectors[nn]=new Selector(nn,en,tn),this.selectorParentGroup.append(this.selectors[nn].selectorGroup),this.selectorMap[en.id]=this.selectors[nn],this.selectors[nn]}releaseSelector(en){if(!en)return;const tn=this.selectors.length,nn=this.selectorMap[en.id];(null==nn?void 0:nn.locked)||console.warn("WARNING! selector was released but was already unlocked");for(let rn=0;rn<tn;++rn)if(this.selectors[rn]&&this.selectors[rn]===nn){delete this.selectorMap[en.id],nn.locked=!1,nn.selectedElement=null,nn.showGrips(!1);try{nn.selectorGroup.setAttribute("display","none")}catch(en){}break}}getRubberBandBox(){return this.rubberBandBox||(this.rubberBandBox=ed.createSVGElement({element:"rect",attr:{id:"selectorRubberBand",fill:"#22C","fill-opacity":.15,stroke:"#22C","stroke-width":.5,display:"none",style:"pointer-events:none"}}),this.selectorParentGroup.append(this.rubberBandBox)),this.rubberBandBox}}
/**
* Tools for clear.
* @module clear
* @license MIT
* @copyright 2011 Jeff Schiller
*/let rd=null;const clearSvgContentElementInit=()=>{const en=rd.getCurConfig(),{dimensions:tn}=en,nn=rd.getSvgContent();for(;nn.firstChild;)nn.removeChild(nn.firstChild);const rn=rd.getSvgRoot();nn.setAttribute("id","svgcontent"),nn.setAttribute("width",tn[0]),nn.setAttribute("height",tn[1]),nn.setAttribute("x",tn[0]),nn.setAttribute("y",tn[1]),nn.setAttribute("overflow",en.show_outside_canvas?"visible":"hidden"),nn.setAttribute("xmlns",xa.SVG),nn.setAttribute("xmlns:se",xa.SE),nn.setAttribute("xmlns:xlink",xa.XLINK),rn.appendChild(nn);const an=rd.getDOMDocument().createComment(" Created with SVG-edit - https://github.com/SVG-Edit/svgedit");rd.getSvgContent().append(an)},od={_storage:new WeakMap,put:function(en,tn,nn){this._storage.has(en)||this._storage.set(en,new Map),this._storage.get(en).set(tn,nn)},get:function(en,tn){var nn;return null===(nn=this._storage.get(en))||void 0===nn?void 0:nn.get(tn)},has:function(en,tn){return this._storage.has(en)&&this._storage.get(en).has(tn)},remove:function(en,tn){const nn=this._storage.get(en).delete(tn);return 0===this._storage.get(en).size&&this._storage.delete(en),nn}},id=["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"],ad="svgedit_clipboard";class SvgCanvas{constructor(en,tn){var nn,rn,an;this.initializeSvgCanvasMethods(),function(en){va=en;const tn=document.createElementNS(ma,"svg");document.body.append(tn);const nn=document.createElementNS(ma,"rect");nn.setAttribute("width","1em"),nn.setAttribute("height","1ex"),nn.setAttribute("x","1in"),tn.append(nn);const rn=nn.getBBox();tn.remove();const an=rn.x;wa={em:rn.width,ex:rn.height,in:an,cm:an/2.54,mm:an/25.4,pt:an/72,pc:an/6,px:1,"%":0}}(this);const{pathActions:sn}=as;this.saveOptions={round_digits:2},this.importIds={},this.extensions={},this.removedElements={},this.started=!1,this.startTransform=null,this.currentMode="select",this.currentResizeMode="none",this.justSelected=null,this.rubberBox=null,this.curBBoxes=[],this.lastClickPoint=null,this.events={},this.rootSctm=null,this.drawnPath=null,this.freehand={minx:null,miny:null,maxx:null,maxy:null},this.dAttr=null,this.startX=null,this.startY=null,this.rStartX=null,this.rStartY=null,this.initBbox={},this.sumDistance=0,this.controllPoint2={x:0,y:0},this.controllPoint1={x:0,y:0},this.start={x:0,y:0},this.end={x:0,y:0},this.bSpline={x:0,y:0},this.nextPos={x:0,y:0},this.idprefix="svg_",this.encodableImages={},this.curConfig={show_outside_canvas:!0,selectNew:!0,dimensions:[640,480]},tn&&(this.curConfig=SvgCanvas.mergeDeep(this.curConfig,tn)),this.lastGoodImgUrl="".concat(this.curConfig.imgPath,"/logo.svg");const{dimensions:cn}=this.curConfig;this.svgdoc=window.document,this.container=en,this.svgroot=function(en,tn){return en.importNode(text2xml('<svg id="svgroot" xmlns="'.concat(xa.SVG,'" xlinkns="').concat(xa.XLINK,'" width="').concat(tn[0],'" \n height="').concat(tn[1],'" x="').concat(tn[0],'" y="').concat(tn[1],'" overflow="visible">\n <defs>\n <filter id="canvashadow" filterUnits="objectBoundingBox">\n <feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"/>\n <feOffset in="blur" dx="5" dy="5" result="offsetBlur"/>\n <feMerge>\n <feMergeNode in="offsetBlur"/>\n <feMergeNode in="SourceGraphic"/>\n </feMerge>\n </filter>\n </defs>\n </svg>')).documentElement,!0)}(this.svgdoc,cn),en.append(this.svgroot),this.svgContent=this.svgdoc.createElementNS(xa.SVG,"svg"),(en=>{en.svgroot.addEventListener("touchstart",touchHandler),en.svgroot.addEventListener("touchmove",touchHandler),en.svgroot.addEventListener("touchend",touchHandler),en.svgroot.addEventListener("touchcancel",touchHandler)})(this),rd=this,this.clearSvgContentElement(),this.current_drawing_=new Drawing(this.svgContent,this.idprefix),this.zoom=1,this.currentGroup=null;const An={shape:{fill:("none"===this.curConfig.initFill.color?"":"#")+this.curConfig.initFill.color,fill_paint:null,fill_opacity:this.curConfig.initFill.opacity,stroke:"#"+this.curConfig.initStroke.color,stroke_paint:null,stroke_opacity:this.curConfig.initStroke.opacity,stroke_width:this.curConfig.initStroke.width,stroke_dasharray:"none",stroke_linejoin:"miter",stroke_linecap:"butt",opacity:this.curConfig.initOpacity}};An.text=SvgCanvas.mergeDeep({},An.shape),An.text=SvgCanvas.mergeDeep(An.text,{fill:"#000000",stroke_width:null===(nn=this.curConfig.text)||void 0===nn?void 0:nn.stroke_width,font_size:null===(rn=this.curConfig.text)||void 0===rn?void 0:rn.font_size,font_family:null===(an=this.curConfig.text)||void 0===an?void 0:an.font_family}),this.curText=An.text,this.curShape=An.shape,this.curProperties=this.curShape,this.selectedElements=[],(en=>{Ts=en,Ns=en.getDOMDocument()})(this),(en=>{Sa=en,Ba=en.getSvgRoot()})(this),(en=>{Rs=this})(),(en=>{Os=this})(),(en=>{ed=this,td=new SelectorManager})(),(en=>{ws=en,en.undoMgr=new bs({handleHistoryEvent(en,tn){const nn=vs;if(en===nn.BEFORE_UNAPPLY||en===nn.BEFORE_APPLY)ws.clearSelection();else if(en===nn.AFTER_APPLY||en===nn.AFTER_UNAPPLY){var rn;const an=tn.elements();ws.pathActions.clear(),ws.call("changed",an);const sn=tn.type(),cn=en===nn.AFTER_APPLY;if("MoveElementCommand"===sn)(cn?tn.newParent:tn.oldParent)===ws.getSvgContent()&&identifyLayers();else if("InsertElementCommand"===sn||"RemoveElementCommand"===sn)tn.parent===ws.getSvgContent()&&identifyLayers(),"InsertElementCommand"===sn?cn&&ws.restoreRefElements(tn.elem):cn||ws.restoreRefElements(tn.elem),"use"===(null===(rn=tn.elem)||void 0===rn?void 0:rn.tagName)&&ws.setUseData(tn.elem);else if("ChangeElementCommand"===sn){"title"===tn.elem.tagName&&tn.elem.parentNode.parentNode===ws.getSvgContent()&&identifyLayers();const rn=cn?tn.newValues:tn.oldValues;if(rn.stdDeviation&&ws.setBlurOffsets(tn.elem.parentNode,rn.stdDeviation),"text"===tn.elem.tagName){const[rn,an]=[tn.newValues.x-tn.oldValues.x,tn.newValues.y-tn.oldValues.y],sn=tn.elem.children;for(let tn=0;tn<sn.length;tn++){let cn=Number(sn[tn].getAttribute("x")),An=Number(sn[tn].getAttribute("y"));const dn=en===nn.AFTER_UNAPPLY;cn=dn?cn-rn:cn+rn,An=dn?An-an:An+an,sn[tn].setAttribute("x",cn),sn[tn].setAttribute("y",An)}}}}}})})(this),(en=>{Cs=this,Cs.getMouseTarget=getMouseTargetMethod,Cs.clearSelection=clearSelectionMethod,Cs.addToSelection=addToSelectionMethod,Cs.getIntersectionList=getIntersectionListMethod,Cs.runExtensions=runExtensionsMethod,Cs.groupSvgElem=groupSvgElem,Cs.prepareSvg=prepareSvg,Cs.recalculateAllSelectedDimensions=recalculateAllSelectedDimensions,Cs.setRotationAngle=setRotationAngle})(),this.nsMap=getReverseNS(),this.selectorManager=td,this.pathActions=sn,init$g(this),this.uiStrings={},this.opacAni=document.createElementNS(xa.SVG,"animate"),this.opacAni.setAttribute("attributeName","opacity"),this.opacAni.setAttribute("begin","indefinite"),this.opacAni.setAttribute("dur",1),this.opacAni.setAttribute("fill","freeze"),this.svgroot.appendChild(this.opacAni),(en=>{Ps=this,Ps.mouseDownEvent=mouseDownEvent,Ps.mouseMoveEvent=mouseMoveEvent,Ps.dblClickEvent=dblClickEvent,Ps.mouseUpEvent=mouseUpEvent,Ps.mouseOutEvent=mouseOutEvent,Ps.DOMMouseScrollEvent=DOMMouseScrollEvent})(),(en=>{Bs=this})(),(en=>{JA=this,JA.setSvgString=setSvgString,JA.importSvgString=importSvgString,JA.uniquifyElems=uniquifyElemsMethod,JA.setUseData=setUseDataMethod,JA.convertGradients=convertGradientsMethod,JA.removeUnusedDefElems=removeUnusedDefElemsMethod,JA.svgCanvasToString=svgCanvasToString,JA.svgToString=svgToString,JA.embedImage=embedImage,JA.rasterExport=rasterExport,JA.exportPDF=exportPDF})(),(en=>{As=this})(),(en=>{Is=this,Is.getBold=getBoldMethod,Is.setBold=setBoldMethod,Is.getItalic=getItalicMethod,Is.setItalic=setItalicMethod,Is.hasTextDecoration=hasTextDecorationMethod,Is.addTextDecoration=addTextDecorationMethod,Is.removeTextDecoration=removeTextDecorationMethod,Is.setTextAnchor=setTextAnchorMethod,Is.setLetterSpacing=setLetterSpacingMethod,Is.setWordSpacing=setWordSpacingMethod,Is.setTextLength=setTextLengthMethod,Is.setLengthAdjust=setLengthAdjustMethod,Is.getFontFamily=getFontFamilyMethod,Is.setFontFamily=setFontFamilyMethod,Is.setFontColor=setFontColorMethod,Is.getFontColor=getFontColorMethod,Is.getFontSize=getFontSizeMethod,Is.setFontSize=setFontSizeMethod,Is.getText=getTextMethod,Is.setTextContent=setTextContentMethod,Is.setImageURL=setImageURLMethod,Is.setLinkURL=setLinkURLMethod,Is.setRectRadius=setRectRadiusMethod,Is.makeHyperlink=makeHyperlinkMethod,Is.removeHyperlink=removeHyperlinkMethod,Is.setSegType=setSegTypeMethod,Is.setStrokeWidth=setStrokeWidthMethod,Is.getResolution=getResolutionMethod,Is.getTitle=getTitleMethod,Is.setGroupTitle=setGroupTitleMethod,Is.setStrokeAttr=setStrokeAttrMethod,Is.setBackground=setBackgroundMethod,Is.setDocumentTitle=setDocumentTitleMethod,Is.getEditorNS=getEditorNSMethod,Is.setResolution=setResolutionMethod,Is.setBBoxZoom=setBBoxZoomMethod,Is.setCurrentZoom=setZoomMethod,Is.setColor=setColorMethod,Is.setGradient=setGradientMethod,Is.setPaint=setPaintMethod})(),en.addEventListener("mousedown",this.mouseDownEvent),en.addEventListener("mousemove",this.mouseMoveEvent),$click$6(en,(en=>(en.preventDefault(),!1))),en.addEventListener("dblclick",this.dblClickEvent),en.addEventListener("mouseup",this.mouseUpEvent),en.addEventListener("mouseleave",this.mouseOutEvent),en.addEventListener("mousewheel",this.DOMMouseScrollEvent),en.addEventListener("DOMMouseScroll",this.DOMMouseScrollEvent),this.linkControlPoints=sn.linkControlPoints,this.curCommand=null,this.filter=null,this.filterHidden=!1,(en=>{Ks=this})(),(en=>{zs=this,zs.copySelectedElements=copySelectedElements,zs.groupSelectedElements=groupSelectedElements,zs.pushGroupProperties=pushGroupProperty,zs.ungroupSelectedElement=ungroupSelectedElement,zs.moveToTopSelectedElement=moveToTopSelectedElem,zs.moveToBottomSelectedElement=moveToBottomSelectedElem,zs.moveUpDownSelected=moveUpDownSelected,zs.moveSelectedElements=moveSelectedElements,zs.cloneSelectedElements=cloneSelectedElements,zs.alignSelectedElements=alignSelectedElements,zs.updateCanvas=updateCanvas,zs.cycleElement=cycleElement,zs.deleteSelectedElements=deleteSelectedElements})(),window.addEventListener("storage",(en=>{en.newValue&&(en.key===ad+"_startup"?(localStorage.removeItem(ad+"_startup"),this.flashStorage()):en.key===ad&&sessionStorage.setItem(ad,en.newValue))}),!1),localStorage.setItem(ad+"_startup",Math.random()),(en=>{ps=this})(),this.contentW=this.getResolution().w,this.contentH=this.getResolution().h,this.clear()}getSvgOption(){return this.saveOptions}setSvgOption(en,tn){this.saveOptions[en]=tn}getSelectedElements(){return this.selectedElements}setSelectedElements(en,tn){this.selectedElements[en]=tn}setEmptySelectedElements(){this.selectedElements=[]}getSvgRoot(){return this.svgroot}getDOMDocument(){return this.svgdoc}getDOMContainer(){return this.container}getCurConfig(){return this.curConfig}setIdPrefix(en){this.idprefix=en}getCurrentDrawing(){return this.current_drawing_}getCurShape(){return this.curShape}getCurrentGroup(){return this.currentGroup}getBaseUnit(){return this.curConfig.baseUnit}getHeight(){return this.svgContent.getAttribute("height")/this.zoom}getWidth(){return this.svgContent.getAttribute("width")/this.zoom}getRoundDigits(){return this.saveOptions.round_digits}getSnappingStep(){return this.curConfig.snappingStep}getGridSnapping(){return this.curConfig.gridSnapping}getStartTransform(){return this.startTransform}setStartTransform(en){this.startTransform=en}getZoom(){return this.zoom}round(en){return Number.parseInt(en*this.zoom)/this.zoom}createSVGElement(en){return this.addSVGElementsFromJson(en)}getContainer(){return this.container}setStarted(en){this.started=en}getRubberBox(){return this.rubberBox}setRubberBox(en){return this.rubberBox=en,this.rubberBox}addPtsToSelection(en){let{closedSubpath:tn,grips:nn}=en;this.pathActions.canDeleteNodes=!0,this.pathActions.closed_subpath=tn,this.call("pointsAdded",{closedSubpath:tn,grips:nn}),this.call("selected",nn)}endChanges(en){let{cmd:tn,elem:nn}=en;this.addCommandToHistory(tn),this.call("changed",[nn])}getCurrentMode(){return this.currentMode}setCurrentMode(en){return this.currentMode=en,this.currentMode}getDrawnPath(){return this.drawnPath}setDrawnPath(en){return this.drawnPath=en,this.drawnPath}setCurrentGroup(en){this.currentGroup=en}changeSvgContent(){this.call("changed",[this.svgContent])}getStarted(){return this.started}getCanvas(){return this}getrootSctm(){return this.rootSctm}getStartX(){return this.startX}setStartX(en){this.startX=en}getStartY(){return this.startY}setStartY(en){this.startY=en}getRStartX(){return this.rStartX}getRStartY(){return this.rStartY}getInitBbox(){return this.initBbox}getCurrentResizeMode(){return this.currentResizeMode}getJustSelected(){return this.justSelected}getOpacAni(){return this.opacAni}getParameter(){return this.parameter}getNextParameter(){return this.nextParameter}getStepCount(){return 10}getThreSholdDist(){return.8}getSumDistance(){return this.sumDistance}getStart(en){return this.start[en]}getEnd(en){return this.end[en]}getbSpline(en){return this.bSpline[en]}getNextPos(en){return this.nextPos[en]}getControllPoint1(en){return this.controllPoint1[en]}getControllPoint2(en){return this.controllPoint2[en]}getFreehand(en){return this.freehand[en]}getDrawing(){return this.getCurrentDrawing()}getDAttr(){return this.dAttr}getLastGoodImgUrl(){return this.lastGoodImgUrl}getCurText(en){return this.curText[en]}setDAttr(en){this.dAttr=en}setEnd(en,tn){this.end[en]=tn}setControllPoint1(en,tn){this.controllPoint1[en]=tn}setControllPoint2(en,tn){this.controllPoint2[en]=tn}setJustSelected(en){this.justSelected=en}setParameter(en){this.parameter=en}setStart(en){this.start=en}setRStartX(en){this.rStartX=en}setRStartY(en){this.rStartY=en}setSumDistance(en){this.sumDistance=en}setbSpline(en){this.bSpline=en}setNextPos(en){this.nextPos=en}setNextParameter(en){this.nextParameter=en}setCurText(en,tn){this.curText[en]=tn}setFreehand(en,tn){this.freehand[en]=tn}setCurBBoxes(en){this.curBBoxes=en}getCurBBoxes(){return this.curBBoxes}setInitBbox(en){this.initBbox=en}setRootSctm(en){this.rootSctm=en}setCurrentResizeMode(en){this.currentResizeMode=en}getLastClickPoint(en){return this.lastClickPoint[en]}setLastClickPoint(en){this.lastClickPoint=en}getId(){return this.getCurrentDrawing().getId()}getUIStrings(){return this.uiStrings}getNsMap(){return this.nsMap}getSvgOptionApply(){return this.saveOptions.apply}getSvgOptionImages(){return this.saveOptions.images}getEncodableImages(en){return this.encodableImages[en]}setEncodableImages(en,tn){this.encodableImages[en]=tn}getVisElems(){return"a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use"}getIdPrefix(){return this.idprefix}getDataStorage(){return od}setZoom(en){this.zoom=en}getImportIds(en){return this.importIds[en]}setImportIds(en,tn){this.importIds[en]=tn}setRemovedElements(en,tn){this.removedElements[en]=tn}setSvgContent(en){this.svgContent=en}getrefAttrs(){return id}setCanvas(en,tn){this[en]=tn}setCurProperties(en,tn){this.curProperties[en]=tn}getCurProperties(en){return this.curProperties[en]}setCurShape(en,tn){this.curShape[en]=tn}gettingSelectorManager(){return this.selectorManager}getContentW(){return this.contentW}getContentH(){return this.contentH}getClipboardID(){return ad}getSvgContent(){return this.svgContent}getExtensions(){return this.extensions}getSelector(){return Selector}getMode(){return this.currentMode}getNextId(){return this.getCurrentDrawing().getNextId()}getCurCommand(){return this.curCommand}setCurCommand(en){this.curCommand=en}getFilter(){return this.filter}setFilter(en){this.filter=en}getFilterHidden(){return this.filterHidden}setFilterHidden(en){this.filterHidden=en}setMode(en){var tn;this.pathActions.clear(!0),this.textActions.clear(),this.curProperties="text"===(null===(tn=this.selectedElements[0])||void 0===tn?void 0:tn.nodeName)?this.curText:this.curShape,this.currentMode=en}clear(){this.call("beforeClear"),this.pathActions.clear(),this.clearSelection(),this.clearSvgContentElement(),this.current_drawing_=new Drawing(this.svgContent),this.createLayer("Layer 1"),this.undoMgr.resetUndoStack(),this.selectorManager.initGroup(),this.rubberBox=this.selectorManager.getRubberBandBox(),this.call("afterClear")}async addExtension(en,tn,nn){let{importLocale:rn}=nn;if("function"!=typeof tn)throw new TypeError("Function argument expected for `svgcanvas.addExtension`");if(en in this.extensions)throw new Error('Cannot add extension "'+en+'", an extension by that name already exists.');const an={importLocale:rn,svgroot:this.svgroot,svgContent:this.svgContent,nonce:this.getCurrentDrawing().getNonce(),selectorManager:this.selectorManager},sn=await tn(an);return sn&&(sn.name=en),this.extensions[en]=sn,this.call("extension_added",sn)}addCommandToHistory(en){this.undoMgr.addCommandToHistory(en)}restoreRefElements(en){const tn={};id.forEach(((nn,rn)=>{tn[nn]=en.getAttribute(nn)})),Object.values(tn).forEach((en=>{if(null!=en&&en.startsWith("url(")){const tn=getUrlFromAttr(en).substr(1);getElement(tn)||(findDefs().append(this.removedElements[tn]),delete this.removedElements[tn])}}));const nn=en.getElementsByTagName("*");if(nn.length)for(let en=0,tn=nn.length;en<tn;en++)this.restoreRefElements(nn[en])}call(en,tn){if(this.events[en])return this.events[en](window,tn)}bind(en,tn){const nn=this.events[en];return this.events[en]=tn,nn}flashStorage(){const en=sessionStorage.getItem(ad);localStorage.setItem(ad,en),setTimeout((()=>{localStorage.removeItem(ad)}),1)}selectOnly(en,tn){this.clearSelection(!0),this.addToSelection(en,tn)}removeFromSelection(en){if(!this.selectedElements[0])return;if(!en.length)return;const tn=[],nn=this.selectedElements.length;for(let rn=0;rn<nn;++rn){const nn=this.selectedElements[rn];nn&&(en.includes(nn)?this.selectorManager.releaseSelector(nn):tn.push(nn))}this.selectedElements=tn}selectAllInCurrentLayer(){const en=this.getCurrentDrawing().getCurrentLayer();en&&(this.currentMode="select",this.currentGroup?this.selectOnly(this.currentGroup.children):this.selectOnly(en.children))}getOpacity(){return this.curShape.opacity}getSnapToGrid(){return this.curConfig.gridSnapping}getVersion(){return"svgcanvas.js ($Rev$)"}setUiStrings(en){Object.assign(this.uiStrings,en.notification),setUiStrings(en)}setConfig(en){Object.assign(this.curConfig,en)}getDocumentTitle(){return this.getTitle(this.svgContent)}getOffset(){return{x:Number(this.svgContent.getAttribute("x")),y:Number(this.svgContent.getAttribute("y"))}}getColor(en){return this.curProperties[en]}setStrokePaint(en){this.setPaint("stroke",en)}setFillPaint(en){this.setPaint("fill",en)}getStrokeWidth(){return this.curProperties.stroke_width}getStyle(){return this.curShape}setOpacity(en){this.curShape.opacity=en,this.changeSelectedAttribute("opacity",en)}getFillOpacity(){return this.curShape.fill_opacity}getStrokeOpacity(){return this.curShape.stroke_opacity}setPaintOpacity(en,tn,nn){this.curShape[en+"_opacity"]=tn,nn?this.changeSelectedAttributeNoUndo(en+"-opacity",tn):this.changeSelectedAttribute(en+"-opacity",tn)}getPaintOpacity(en){return"fill"===en?this.getFillOpacity():this.getStrokeOpacity()}getBlur(en){let tn=0;if(en){const nn=en.getAttribute("filter");if(nn){const rn=getElement(en.id+"_blur");if(rn)tn=rn.firstChild.getAttribute("stdDeviation");else{const en=getRefElem(nn),rn=getFeGaussianBlur(en);null!==rn&&(tn=rn.getAttribute("stdDeviation"))}}}return tn}setGoodImage(en){this.lastGoodImgUrl=en}getSvgString(){return this.saveOptions.apply=!1,this.svgCanvasToString()}randomizeIds(en){!function(en,tn){ls=!1===en?2:1,1!==ls||tn.getNonce()?2===ls&&tn.getNonce()&&tn.clearNonce():tn.setNonce(Math.floor(100001*Math.random()))}(!(arguments.length>0&&!1===en),this.getCurrentDrawing())}convertToPath(en,tn){if(en)return tn?getBBoxOfElementAsPath(en,this.addSVGElementsFromJson,this.pathActions):((en,tn,nn)=>{const rn=new nn.history.BatchCommand("Convert element to Path");tn=mergeDeep$1(tn,getExtraAttributesForConvertToPath(en));const an=nn.addSVGElementsFromJson({element:"path",attr:tn}),sn=en.getAttribute("transform");sn&&an.setAttribute("transform",sn);const{id:cn}=en,{parentNode:An}=en;en.nextSibling?en.before(an):An.append(an);const dn=getPathDFromElement(en);if(dn){if(an.setAttribute("d",dn),sn){const en=an.transform.baseVal;hasMatrixTransform(en)&&nn.pathActions.resetOrientation(an)}const{nextSibling:tn}=en;return rn.addSubCommand(new nn.history.RemoveElementCommand(en,tn,en.parentNode)),nn.clearSelection(),en.remove(),rn.addSubCommand(new nn.history.InsertElementCommand(an)),an.setAttribute("id",cn),an.removeAttribute("visibility"),nn.addToSelection([an],!0),nn.addCommandToHistory(rn),an}return an.remove(),null})(en,{fill:this.curShape.fill,"fill-opacity":this.curShape.fill_opacity,stroke:this.curShape.stroke,"stroke-width":this.curShape.stroke_width,"stroke-dasharray":this.curShape.stroke_dasharray,"stroke-linejoin":this.curShape.stroke_linejoin,"stroke-linecap":this.curShape.stroke_linecap,"stroke-opacity":this.curShape.stroke_opacity,opacity:this.curShape.opacity,visibility:"hidden"},this);this.selectedElements.forEach((en=>{en&&this.convertToPath(en)}))}cutSelectedElements(){this.copySelectedElements(),this.deleteSelectedElements()}initializeSvgCanvasMethods(){this.getJsonFromSvgElements=getJsonFromSvgElements,this.addSVGElementsFromJson=addSVGElementsFromJson,this.clearSvgContentElement=clearSvgContentElementInit,this.textActions=js,this.getStrokedBBox=getStrokedBBoxDefaultVisible,this.getVisibleElements=getVisibleElements,this.stringToHTML=stringToHTML,this.insertChildAtIndex=insertChildAtIndex,this.getClosest=getClosest,this.getParents=getParents,this.isLayer=Layer.isLayer,this.matrixMultiply=matrixMultiply,this.hasMatrixTransform=hasMatrixTransform,this.transformListToTransform=transformListToTransform,this.convertToNum=convertToNum,this.findDefs=findDefs,this.getUrlFromAttr=getUrlFromAttr,this.getHref=getHref,this.setHref=setHref,this.getBBox=getBBox,this.getRotationAngle=getRotationAngle,this.getElement=getElement,this.getRefElem=getRefElem,this.assignAttributes=assignAttributes,this.cleanupElement=cleanupElement,this.remapElement=remapElement,this.recalculateDimensions=recalculateDimensions,this.sanitizeSvg=sanitizeSvg,this.pasteElements=pasteElementsMethod,this.identifyLayers=identifyLayers,this.createLayer=createLayer,this.cloneLayer=cloneLayer,this.deleteCurrentLayer=deleteCurrentLayer,this.setCurrentLayer=setCurrentLayer,this.renameCurrentLayer=renameCurrentLayer,this.setCurrentLayerPosition=setCurrentLayerPosition,this.indexCurrentLayer=indexCurrentLayer,this.setLayerVisibility=setLayerVisibility,this.moveSelectedToLayer=moveSelectedToLayer,this.mergeLayer=mergeLayer,this.mergeAllLayers=mergeAllLayers,this.leaveContext=leaveContext,this.setContext=setContext,this.changeSelectedAttributeNoUndo=changeSelectedAttributeNoUndoMethod,this.changeSelectedAttribute=changeSelectedAttributeMethod,this.setBlurNoUndo=setBlurNoUndo,this.setBlurOffsets=setBlurOffsets,this.setBlur=setBlur,this.smoothControlPoints=smoothControlPoints,this.getTypeMap=getTypeMap$2,this.history=La,this.NS=xa,this.$id=$id$8,this.$qq=$qq$1,this.$qa=$qa$2,this.$click=$click$6,this.encode64=encode64,this.decode64=decode64$1,this.mergeDeep=mergeDeep$1}}SvgCanvas.$id=$id$8,SvgCanvas.$qq=$qq$1,SvgCanvas.$qa=$qa$2,SvgCanvas.$click=$click$6,SvgCanvas.encode64=encode64,SvgCanvas.decode64=decode64$1,SvgCanvas.mergeDeep=mergeDeep$1,SvgCanvas.getClosest=getClosest,SvgCanvas.getParents=getParents,SvgCanvas.blankPageObjectURL=Ea,SvgCanvas.Paint=Paint,SvgCanvas.getTypeMap=getTypeMap$2,SvgCanvas.convertToNum=convertToNum,SvgCanvas.isValidUnit=(en,tn,nn)=>{if(ba.includes(en))return!isNaN(tn)||(tn=tn.toLowerCase(),Object.keys(wa).some((en=>new RegExp("^-?[\\d\\.]+"+en+"$").test(tn))));if("id"===en){let rn=!1;try{const en=va.getElement(tn);rn=!en||en===nn}catch(en){console.error(en)}return rn}return!0},SvgCanvas.convertUnit=convertUnit$3;var sd={exports:{}},ld=_mergeNamespaces({__proto__:null,default:sd.exports=function(){var en=Object.hasOwnProperty,tn=Object.setPrototypeOf,nn=Object.isFrozen,rn=Object.getPrototypeOf,an=Object.getOwnPropertyDescriptor,sn=Object.freeze,cn=Object.seal,An=Object.create,dn="undefined"!=typeof Reflect&&Reflect,un=dn.apply,pn=dn.construct;un||(un=function apply(en,tn,nn){return en.apply(tn,nn)}),sn||(sn=function freeze(en){return en}),cn||(cn=function seal(en){return en}),pn||(pn=function construct(en,tn){return new(Function.prototype.bind.apply(en,[null].concat(function _toConsumableArray(en){if(Array.isArray(en)){for(var tn=0,nn=Array(en.length);tn<en.length;tn++)nn[tn]=en[tn];return nn}return Array.from(en)}(tn))))});var hn=unapply(Array.prototype.forEach),gn=unapply(Array.prototype.pop),_n=unapply(Array.prototype.push),mn=unapply(String.prototype.toLowerCase),fn=unapply(String.prototype.match),yn=unapply(String.prototype.replace),bn=unapply(String.prototype.indexOf),vn=unapply(String.prototype.trim),wn=unapply(RegExp.prototype.test),xn=function unconstruct(en){return function(){for(var tn=arguments.length,nn=Array(tn),rn=0;rn<tn;rn++)nn[rn]=arguments[rn];return pn(en,nn)}}(TypeError);function unapply(en){return function(tn){for(var nn=arguments.length,rn=Array(nn>1?nn-1:0),an=1;an<nn;an++)rn[an-1]=arguments[an];return un(en,tn,rn)}}function addToSet(en,rn){tn&&tn(en,null);for(var an=rn.length;an--;){var sn=rn[an];if("string"==typeof sn){var cn=mn(sn);cn!==sn&&(nn(rn)||(rn[an]=cn),sn=cn)}en[sn]=!0}return en}function clone(tn){var nn=An(null),rn=void 0;for(rn in tn)un(en,tn,[rn])&&(nn[rn]=tn[rn]);return nn}function lookupGetter(en,tn){for(;null!==en;){var nn=an(en,tn);if(nn){if(nn.get)return unapply(nn.get);if("function"==typeof nn.value)return unapply(nn.value)}en=rn(en)}return null}var kn=sn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Cn=sn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Sn=sn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Bn=sn(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),En=sn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),jn=sn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ln=sn(["#text"]),Pn=sn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),Tn=sn(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Fn=sn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Un=sn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Nn=cn(/\{\{[\s\S]*|[\s\S]*\}\}/gm),In=cn(/<%[\s\S]*|[\s\S]*%>/gm),Mn=cn(/^data-[\-\w.\u00B7-\uFFFF]/),Rn=cn(/^aria-[\-\w]+$/),On=cn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Qn=cn(/^(?:\w+script|data):/i),qn=cn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(en){return typeof en}:function(en){return en&&"function"==typeof Symbol&&en.constructor===Symbol&&en!==Symbol.prototype?"symbol":typeof en};function _toConsumableArray$1(en){if(Array.isArray(en)){for(var tn=0,nn=Array(en.length);tn<en.length;tn++)nn[tn]=en[tn];return nn}return Array.from(en)}var Gn=function getGlobal(){return"undefined"==typeof window?null:window},Dn=function _createTrustedTypesPolicy(en,tn){if("object"!==(void 0===en?"undefined":Vn(en))||"function"!=typeof en.createPolicy)return null;var nn=null,rn="data-tt-policy-suffix";tn.currentScript&&tn.currentScript.hasAttribute(rn)&&(nn=tn.currentScript.getAttribute(rn));var an="dompurify"+(nn?"#"+nn:"");try{return en.createPolicy(an,{createHTML:function createHTML(en){return en}})}catch(en){return console.warn("TrustedTypes policy "+an+" could not be created."),null}};return function createDOMPurify(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gn(),tn=function DOMPurify(en){return createDOMPurify(en)};if(tn.version="2.2.6",tn.removed=[],!en||!en.document||9!==en.document.nodeType)return tn.isSupported=!1,tn;var nn=en.document,rn=en.document,an=en.DocumentFragment,cn=en.HTMLTemplateElement,An=en.Node,dn=en.Element,un=en.NodeFilter,pn=en.NamedNodeMap,Hn=void 0===pn?en.NamedNodeMap||en.MozNamedAttrMap:pn,zn=en.Text,Kn=en.Comment,$n=en.DOMParser,Wn=en.trustedTypes,Xn=dn.prototype,Yn=lookupGetter(Xn,"cloneNode"),Zn=lookupGetter(Xn,"nextSibling"),Jn=lookupGetter(Xn,"childNodes"),Tr=lookupGetter(Xn,"parentNode");if("function"==typeof cn){var Ur=rn.createElement("template");Ur.content&&Ur.content.ownerDocument&&(rn=Ur.content.ownerDocument)}var Rr=Dn(Wn,nn),Qr=Rr&&bo?Rr.createHTML(""):"",Vr=rn,Gr=Vr.implementation,Dr=Vr.createNodeIterator,Hr=Vr.getElementsByTagName,zr=Vr.createDocumentFragment,Kr=nn.importNode,$r={};try{$r=clone(rn).documentMode?rn.documentMode:{}}catch(en){}var Wr={};tn.isSupported=Gr&&void 0!==Gr.createHTMLDocument&&9!==$r;var Xr=Nn,Yr=In,Zr=Mn,Jr=Rn,eo=Qn,to=qn,no=On,ro=null,oo=addToSet({},[].concat(_toConsumableArray$1(kn),_toConsumableArray$1(Cn),_toConsumableArray$1(Sn),_toConsumableArray$1(En),_toConsumableArray$1(Ln))),io=null,ao=addToSet({},[].concat(_toConsumableArray$1(Pn),_toConsumableArray$1(Tn),_toConsumableArray$1(Fn),_toConsumableArray$1(Un))),so=null,lo=null,co=!0,Ao=!0,uo=!1,po=!1,ho=!1,go=!1,_o=!1,mo=!1,fo=!1,yo=!0,bo=!1,vo=!0,wo=!0,xo=!1,ko={},Co=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),So=null,Bo=addToSet({},["audio","video","img","source","image","track"]),Eo=null,jo=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Lo=null,Po=rn.createElement("form"),To=function _parseConfig(en){Lo&&Lo===en||(en&&"object"===(void 0===en?"undefined":Vn(en))||(en={}),en=clone(en),ro="ALLOWED_TAGS"in en?addToSet({},en.ALLOWED_TAGS):oo,io="ALLOWED_ATTR"in en?addToSet({},en.ALLOWED_ATTR):ao,Eo="ADD_URI_SAFE_ATTR"in en?addToSet(clone(jo),en.ADD_URI_SAFE_ATTR):jo,So="ADD_DATA_URI_TAGS"in en?addToSet(clone(Bo),en.ADD_DATA_URI_TAGS):Bo,so="FORBID_TAGS"in en?addToSet({},en.FORBID_TAGS):{},lo="FORBID_ATTR"in en?addToSet({},en.FORBID_ATTR):{},ko="USE_PROFILES"in en&&en.USE_PROFILES,co=!1!==en.ALLOW_ARIA_ATTR,Ao=!1!==en.ALLOW_DATA_ATTR,uo=en.ALLOW_UNKNOWN_PROTOCOLS||!1,po=en.SAFE_FOR_TEMPLATES||!1,ho=en.WHOLE_DOCUMENT||!1,mo=en.RETURN_DOM||!1,fo=en.RETURN_DOM_FRAGMENT||!1,yo=!1!==en.RETURN_DOM_IMPORT,bo=en.RETURN_TRUSTED_TYPE||!1,_o=en.FORCE_BODY||!1,vo=!1!==en.SANITIZE_DOM,wo=!1!==en.KEEP_CONTENT,xo=en.IN_PLACE||!1,no=en.ALLOWED_URI_REGEXP||no,po&&(Ao=!1),fo&&(mo=!0),ko&&(ro=addToSet({},[].concat(_toConsumableArray$1(Ln))),io=[],!0===ko.html&&(addToSet(ro,kn),addToSet(io,Pn)),!0===ko.svg&&(addToSet(ro,Cn),addToSet(io,Tn),addToSet(io,Un)),!0===ko.svgFilters&&(addToSet(ro,Sn),addToSet(io,Tn),addToSet(io,Un)),!0===ko.mathMl&&(addToSet(ro,En),addToSet(io,Fn),addToSet(io,Un))),en.ADD_TAGS&&(ro===oo&&(ro=clone(ro)),addToSet(ro,en.ADD_TAGS)),en.ADD_ATTR&&(io===ao&&(io=clone(io)),addToSet(io,en.ADD_ATTR)),en.ADD_URI_SAFE_ATTR&&addToSet(Eo,en.ADD_URI_SAFE_ATTR),wo&&(ro["#text"]=!0),ho&&addToSet(ro,["html","head","body"]),ro.table&&(addToSet(ro,["tbody"]),delete so.tbody),sn&&sn(en),Lo=en)},Fo=addToSet({},["mi","mo","mn","ms","mtext"]),Uo=addToSet({},["foreignobject","desc","title","annotation-xml"]),No=addToSet({},Cn);addToSet(No,Sn),addToSet(No,Bn);var Io=addToSet({},En);addToSet(Io,jn);var Mo="http://www.w3.org/1998/Math/MathML",Ro="http://www.w3.org/2000/svg",Oo="http://www.w3.org/1999/xhtml",Qo=function _checkValidNamespace(en){var tn=Tr(en);tn&&tn.tagName||(tn={namespaceURI:Oo,tagName:"template"});var nn=mn(en.tagName),rn=mn(tn.tagName);if(en.namespaceURI===Ro)return tn.namespaceURI===Oo?"svg"===nn:tn.namespaceURI===Mo?"svg"===nn&&("annotation-xml"===rn||Fo[rn]):Boolean(No[nn]);if(en.namespaceURI===Mo)return tn.namespaceURI===Oo?"math"===nn:tn.namespaceURI===Ro?"math"===nn&&Uo[rn]:Boolean(Io[nn]);if(en.namespaceURI===Oo){if(tn.namespaceURI===Ro&&!Uo[rn])return!1;if(tn.namespaceURI===Mo&&!Fo[rn])return!1;var an=addToSet({},["title","style","font","a","script"]);return!Io[nn]&&(an[nn]||!No[nn])}return!1},qo=function _forceRemove(en){_n(tn.removed,{element:en});try{en.parentNode.removeChild(en)}catch(tn){try{en.outerHTML=Qr}catch(tn){en.remove()}}},Vo=function _removeAttribute(en,nn){try{_n(tn.removed,{attribute:nn.getAttributeNode(en),from:nn})}catch(en){_n(tn.removed,{attribute:null,from:nn})}nn.removeAttribute(en)},Go=function _initDocument(en){var tn=void 0,nn=void 0;if(_o)en="<remove></remove>"+en;else{var an=fn(en,/^[\r\n\t ]+/);nn=an&&an[0]}var sn=Rr?Rr.createHTML(en):en;try{tn=(new $n).parseFromString(sn,"text/html")}catch(en){}if(!tn||!tn.documentElement){var cn=(tn=Gr.createHTMLDocument("")).body;cn.parentNode.removeChild(cn.parentNode.firstElementChild),cn.outerHTML=sn}return en&&nn&&tn.body.insertBefore(rn.createTextNode(nn),tn.body.childNodes[0]||null),Hr.call(tn,ho?"html":"body")[0]},Do=function _createIterator(en){return Dr.call(en.ownerDocument||en,en,un.SHOW_ELEMENT|un.SHOW_COMMENT|un.SHOW_TEXT,(function(){return un.FILTER_ACCEPT}),!1)},Ho=function _isClobbered(en){return!(en instanceof zn||en instanceof Kn||"string"==typeof en.nodeName&&"string"==typeof en.textContent&&"function"==typeof en.removeChild&&en.attributes instanceof Hn&&"function"==typeof en.removeAttribute&&"function"==typeof en.setAttribute&&"string"==typeof en.namespaceURI&&"function"==typeof en.insertBefore)},zo=function _isNode(en){return"object"===(void 0===An?"undefined":Vn(An))?en instanceof An:en&&"object"===(void 0===en?"undefined":Vn(en))&&"number"==typeof en.nodeType&&"string"==typeof en.nodeName},Ko=function _executeHook(en,nn,rn){Wr[en]&&hn(Wr[en],(function(en){en.call(tn,nn,rn,Lo)}))},$o=function _sanitizeElements(en){var nn=void 0;if(Ko("beforeSanitizeElements",en,null),Ho(en))return qo(en),!0;if(fn(en.nodeName,/[\u0080-\uFFFF]/))return qo(en),!0;var rn=mn(en.nodeName);if(Ko("uponSanitizeElement",en,{tagName:rn,allowedTags:ro}),!zo(en.firstElementChild)&&(!zo(en.content)||!zo(en.content.firstElementChild))&&wn(/<[/\w]/g,en.innerHTML)&&wn(/<[/\w]/g,en.textContent))return qo(en),!0;if(!ro[rn]||so[rn]){if(wo&&!Co[rn])for(var an=Tr(en),sn=Jn(en),cn=sn.length-1;cn>=0;--cn)an.insertBefore(Yn(sn[cn],!0),Zn(en));return qo(en),!0}return en instanceof dn&&!Qo(en)?(qo(en),!0):"noscript"!==rn&&"noembed"!==rn||!wn(/<\/no(script|embed)/i,en.innerHTML)?(po&&3===en.nodeType&&(nn=en.textContent,nn=yn(nn,Xr," "),nn=yn(nn,Yr," "),en.textContent!==nn&&(_n(tn.removed,{element:en.cloneNode()}),en.textContent=nn)),Ko("afterSanitizeElements",en,null),!1):(qo(en),!0)},Wo=function _isValidAttribute(en,tn,nn){if(vo&&("id"===tn||"name"===tn)&&(nn in rn||nn in Po))return!1;if(Ao&&wn(Zr,tn));else if(co&&wn(Jr,tn));else{if(!io[tn]||lo[tn])return!1;if(Eo[tn]);else if(wn(no,yn(nn,to,"")));else if("src"!==tn&&"xlink:href"!==tn&&"href"!==tn||"script"===en||0!==bn(nn,"data:")||!So[en])if(uo&&!wn(eo,yn(nn,to,"")));else if(nn)return!1}return!0},Xo=function _sanitizeAttributes(en){var nn=void 0,rn=void 0,an=void 0,sn=void 0;Ko("beforeSanitizeAttributes",en,null);var cn=en.attributes;if(cn){var An={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:io};for(sn=cn.length;sn--;){var dn=nn=cn[sn],un=dn.name,pn=dn.namespaceURI;if(rn=vn(nn.value),an=mn(un),An.attrName=an,An.attrValue=rn,An.keepAttr=!0,An.forceKeepAttr=void 0,Ko("uponSanitizeAttribute",en,An),rn=An.attrValue,!An.forceKeepAttr&&(Vo(un,en),An.keepAttr))if(wn(/\/>/i,rn))Vo(un,en);else{po&&(rn=yn(rn,Xr," "),rn=yn(rn,Yr," "));var hn=en.nodeName.toLowerCase();if(Wo(hn,an,rn))try{pn?en.setAttributeNS(pn,un,rn):en.setAttribute(un,rn),gn(tn.removed)}catch(en){}}}Ko("afterSanitizeAttributes",en,null)}},Yo=function _sanitizeShadowDOM(en){var tn=void 0,nn=Do(en);for(Ko("beforeSanitizeShadowDOM",en,null);tn=nn.nextNode();)Ko("uponSanitizeShadowNode",tn,null),$o(tn)||(tn.content instanceof an&&_sanitizeShadowDOM(tn.content),Xo(tn));Ko("afterSanitizeShadowDOM",en,null)};return tn.sanitize=function(rn,sn){var cn=void 0,dn=void 0,un=void 0,pn=void 0,hn=void 0;if(rn||(rn="\x3c!--\x3e"),"string"!=typeof rn&&!zo(rn)){if("function"!=typeof rn.toString)throw xn("toString is not a function");if("string"!=typeof(rn=rn.toString()))throw xn("dirty is not a string, aborting")}if(!tn.isSupported){if("object"===Vn(en.toStaticHTML)||"function"==typeof en.toStaticHTML){if("string"==typeof rn)return en.toStaticHTML(rn);if(zo(rn))return en.toStaticHTML(rn.outerHTML)}return rn}if(go||To(sn),tn.removed=[],"string"==typeof rn&&(xo=!1),xo);else if(rn instanceof An)1===(dn=(cn=Go("\x3c!----\x3e")).ownerDocument.importNode(rn,!0)).nodeType&&"BODY"===dn.nodeName||"HTML"===dn.nodeName?cn=dn:cn.appendChild(dn);else{if(!mo&&!po&&!ho&&-1===rn.indexOf("<"))return Rr&&bo?Rr.createHTML(rn):rn;if(!(cn=Go(rn)))return mo?null:Qr}cn&&_o&&qo(cn.firstChild);for(var gn=Do(xo?rn:cn);un=gn.nextNode();)3===un.nodeType&&un===pn||$o(un)||(un.content instanceof an&&Yo(un.content),Xo(un),pn=un);if(pn=null,xo)return rn;if(mo){if(fo)for(hn=zr.call(cn.ownerDocument);cn.firstChild;)hn.appendChild(cn.firstChild);else hn=cn;return yo&&(hn=Kr.call(nn,hn,!0)),hn}var _n=ho?cn.outerHTML:cn.innerHTML;return po&&(_n=yn(_n,Xr," "),_n=yn(_n,Yr," ")),Rr&&bo?Rr.createHTML(_n):_n},tn.setConfig=function(en){To(en),go=!0},tn.clearConfig=function(){Lo=null,go=!1},tn.isValidAttribute=function(en,tn,nn){Lo||To({});var rn=mn(en),an=mn(tn);return Wo(rn,an,nn)},tn.addHook=function(en,tn){"function"==typeof tn&&(Wr[en]=Wr[en]||[],_n(Wr[en],tn))},tn.removeHook=function(en){Wr[en]&&gn(Wr[en])},tn.removeHooks=function(en){Wr[en]&&(Wr[en]=[])},tn.removeAllHooks=function(){Wr={}},tn}()}()},[sd.exports]),check=function(en){return en&&en.Math==Math&&en},cd=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof Sc&&Sc)||function(){return this}()||Function("return this")(),Ad={},fails$l=function(en){try{return!!en()}catch(en){return!0}},dd=!fails$l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ud=!fails$l((function(){var en=function(){}.bind();return"function"!=typeof en||en.hasOwnProperty("prototype")})),pd=ud,hd=Function.prototype.call,gd=pd?hd.bind(hd):function(){return hd.apply(hd,arguments)},_d={},md={}.propertyIsEnumerable,fd=Object.getOwnPropertyDescriptor,yd=fd&&!md.call({1:2},1);/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */_d.f=yd?function propertyIsEnumerable(en){var tn=fd(this,en);return!!tn&&tn.enumerable}:md;var bd,vd,createPropertyDescriptor$4=function(en,tn){return{enumerable:!(1&en),configurable:!(2&en),writable:!(4&en),value:tn}},wd=ud,xd=Function.prototype,kd=xd.bind,Cd=xd.call,Sd=wd&&kd.bind(Cd,Cd),Bd=wd?function(en){return en&&Sd(en)}:function(en){return en&&function(){return Cd.apply(en,arguments)}},Ed=Bd,jd=Ed({}.toString),Ld=Ed("".slice),classofRaw$1=function(en){return Ld(jd(en),8,-1)},Pd=fails$l,Td=classofRaw$1,Fd=Object,Ud=Bd("".split),Nd=Pd((function(){return!Fd("z").propertyIsEnumerable(0)}))?function(en){return"String"==Td(en)?Ud(en,""):Fd(en)}:Fd,Id=TypeError,requireObjectCoercible$a=function(en){if(null==en)throw Id("Can't call method on "+en);return en},Md=Nd,Rd=requireObjectCoercible$a,toIndexedObject$5=function(en){return Md(Rd(en))},isCallable$m=function(en){return"function"==typeof en},Od=isCallable$m,isObject$8=function(en){return"object"==typeof en?null!==en:Od(en)},Qd=cd,qd=isCallable$m,aFunction=function(en){return qd(en)?en:void 0},getBuiltIn$8=function(en,tn){return arguments.length<2?aFunction(Qd[en]):Qd[en]&&Qd[en][tn]},Vd=Bd({}.isPrototypeOf),Gd=getBuiltIn$8("navigator","userAgent")||"",Dd=cd,Hd=Gd,zd=Dd.process,Kd=Dd.Deno,$d=zd&&zd.versions||Kd&&Kd.version,Wd=$d&&$d.v8;Wd&&(vd=(bd=Wd.split("."))[0]>0&&bd[0]<4?1:+(bd[0]+bd[1])),!vd&&Hd&&(!(bd=Hd.match(/Edge\/(\d+)/))||bd[1]>=74)&&(bd=Hd.match(/Chrome\/(\d+)/))&&(vd=+bd[1]);var Xd=vd,Yd=Xd,Zd=fails$l,Jd=!!Object.getOwnPropertySymbols&&!Zd((function(){var en=Symbol();return!String(en)||!(Object(en)instanceof Symbol)||!Symbol.sham&&Yd&&Yd<41})),eu=Jd&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tu=getBuiltIn$8,nu=isCallable$m,ru=Vd,ou=Object,iu=eu?function(en){return"symbol"==typeof en}:function(en){var tn=tu("Symbol");return nu(tn)&&ru(tn.prototype,ou(en))},au=String,tryToString$4=function(en){try{return au(en)}catch(en){return"Object"}},su=isCallable$m,lu=tryToString$4,cu=TypeError,aCallable$8=function(en){if(su(en))return en;throw cu(lu(en)+" is not a function")},Au=aCallable$8,getMethod$6=function(en,tn){var nn=en[tn];return null==nn?void 0:Au(nn)},du=gd,uu=isCallable$m,pu=isObject$8,hu=TypeError,gu={exports:{}},_u=cd,mu=Object.defineProperty,defineGlobalProperty$3=function(en,tn){try{mu(_u,en,{value:tn,configurable:!0,writable:!0})}catch(nn){_u[en]=tn}return tn},fu=defineGlobalProperty$3,yu=cd["__core-js_shared__"]||fu("__core-js_shared__",{}),bu=yu;(gu.exports=function(en,tn){return bu[en]||(bu[en]=void 0!==tn?tn:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var vu=requireObjectCoercible$a,wu=Object,toObject$4=function(en){return wu(vu(en))},xu=toObject$4,ku=Bd({}.hasOwnProperty),Cu=Object.hasOwn||function hasOwn(en,tn){return ku(xu(en),tn)},Su=Bd,Bu=0,Eu=Math.random(),ju=Su(1..toString),uid$2=function(en){return"Symbol("+(void 0===en?"":en)+")_"+ju(++Bu+Eu,36)},Lu=cd,Pu=gu.exports,Tu=Cu,Fu=uid$2,Uu=Jd,Nu=eu,Iu=Pu("wks"),Mu=Lu.Symbol,Ru=Mu&&Mu.for,Ou=Nu?Mu:Mu&&Mu.withoutSetter||Fu,wellKnownSymbol$i=function(en){if(!Tu(Iu,en)||!Uu&&"string"!=typeof Iu[en]){var tn="Symbol."+en;Uu&&Tu(Mu,en)?Iu[en]=Mu[en]:Iu[en]=Nu&&Ru?Ru(tn):Ou(tn)}return Iu[en]},Qu=gd,qu=isObject$8,Vu=iu,Gu=getMethod$6,Du=TypeError,Hu=wellKnownSymbol$i("toPrimitive"),toPrimitive=function(en,tn){if(!qu(en)||Vu(en))return en;var nn,rn=Gu(en,Hu);if(rn){if(void 0===tn&&(tn="default"),nn=Qu(rn,en,tn),!qu(nn)||Vu(nn))return nn;throw Du("Can't convert object to primitive value")}return void 0===tn&&(tn="number"),function(en,tn){var nn,rn;if("string"===tn&&uu(nn=en.toString)&&!pu(rn=du(nn,en)))return rn;if(uu(nn=en.valueOf)&&!pu(rn=du(nn,en)))return rn;if("string"!==tn&&uu(nn=en.toString)&&!pu(rn=du(nn,en)))return rn;throw hu("Can't convert object to primitive value")}(en,tn)},zu=iu,toPropertyKey$3=function(en){var tn=toPrimitive(en,"string");return zu(tn)?tn:tn+""},Ku=isObject$8,$u=cd.document,Wu=Ku($u)&&Ku($u.createElement),documentCreateElement$2=function(en){return Wu?$u.createElement(en):{}},Xu=documentCreateElement$2,Yu=!dd&&!fails$l((function(){return 7!=Object.defineProperty(Xu("div"),"a",{get:function(){return 7}}).a})),Zu=dd,Ju=gd,ep=_d,tp=createPropertyDescriptor$4,np=toIndexedObject$5,rp=toPropertyKey$3,op=Cu,ip=Yu,ap=Object.getOwnPropertyDescriptor;Ad.f=Zu?ap:function getOwnPropertyDescriptor(en,tn){if(en=np(en),tn=rp(tn),ip)try{return ap(en,tn)}catch(en){}if(op(en,tn))return tp(!Ju(ep.f,en,tn),en[tn])};var sp={},lp=dd&&fails$l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),cp=isObject$8,Ap=String,dp=TypeError,anObject$g=function(en){if(cp(en))return en;throw dp(Ap(en)+" is not an object")},up=dd,pp=Yu,hp=lp,gp=anObject$g,_p=toPropertyKey$3,mp=TypeError,fp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor;sp.f=up?hp?function defineProperty(en,tn,nn){if(gp(en),tn=_p(tn),gp(nn),"function"==typeof en&&"prototype"===tn&&"value"in nn&&"writable"in nn&&!nn.writable){var rn=yp(en,tn);rn&&rn.writable&&(en[tn]=nn.value,nn={configurable:"configurable"in nn?nn.configurable:rn.configurable,enumerable:"enumerable"in nn?nn.enumerable:rn.enumerable,writable:!1})}return fp(en,tn,nn)}:fp:function defineProperty(en,tn,nn){if(gp(en),tn=_p(tn),gp(nn),pp)try{return fp(en,tn,nn)}catch(en){}if("get"in nn||"set"in nn)throw mp("Accessors not supported");return"value"in nn&&(en[tn]=nn.value),en};var bp=sp,vp=createPropertyDescriptor$4,wp=dd?function(en,tn,nn){return bp.f(en,tn,vp(1,nn))}:function(en,tn,nn){return en[tn]=nn,en},xp={exports:{}},kp=dd,Cp=Cu,Sp=Function.prototype,Bp=kp&&Object.getOwnPropertyDescriptor,Ep=Cp(Sp,"name"),jp={EXISTS:Ep,PROPER:Ep&&"something"===function something(){}.name,CONFIGURABLE:Ep&&(!kp||kp&&Bp(Sp,"name").configurable)},Lp=isCallable$m,Pp=yu,Tp=Bd(Function.toString);Lp(Pp.inspectSource)||(Pp.inspectSource=function(en){return Tp(en)});var Fp,Up,Np,Ip=Pp.inspectSource,Mp=isCallable$m,Rp=Ip,Op=cd.WeakMap,Qp=Mp(Op)&&/native code/.test(Rp(Op)),qp=gu.exports,Vp=uid$2,Gp=qp("keys"),sharedKey$3=function(en){return Gp[en]||(Gp[en]=Vp(en))},Dp={},Hp=Qp,zp=cd,Kp=Bd,$p=isObject$8,Wp=wp,Xp=Cu,Yp=yu,Zp=sharedKey$3,Jp=Dp,eh=zp.TypeError,th=zp.WeakMap;if(Hp||Yp.state){var nh=Yp.state||(Yp.state=new th),rh=Kp(nh.get),oh=Kp(nh.has),ih=Kp(nh.set);Fp=function(en,tn){if(oh(nh,en))throw new eh("Object already initialized");return tn.facade=en,ih(nh,en,tn),tn},Up=function(en){return rh(nh,en)||{}},Np=function(en){return oh(nh,en)}}else{var ah=Zp("state");Jp[ah]=!0,Fp=function(en,tn){if(Xp(en,ah))throw new eh("Object already initialized");return tn.facade=en,Wp(en,ah,tn),tn},Up=function(en){return Xp(en,ah)?en[ah]:{}},Np=function(en){return Xp(en,ah)}}var sh={set:Fp,get:Up,has:Np,enforce:function(en){return Np(en)?Up(en):Fp(en,{})},getterFor:function(en){return function(tn){var nn;if(!$p(tn)||(nn=Up(tn)).type!==en)throw eh("Incompatible receiver, "+en+" required");return nn}}},lh=fails$l,ch=isCallable$m,Ah=Cu,dh=dd,uh=jp.CONFIGURABLE,ph=Ip,hh=sh.enforce,gh=sh.get,_h=Object.defineProperty,mh=dh&&!lh((function(){return 8!==_h((function(){}),"length",{value:8}).length})),fh=String(String).split("String"),yh=xp.exports=function(en,tn,nn){"Symbol("===String(tn).slice(0,7)&&(tn="["+String(tn).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),nn&&nn.getter&&(tn="get "+tn),nn&&nn.setter&&(tn="set "+tn),(!Ah(en,"name")||uh&&en.name!==tn)&&(dh?_h(en,"name",{value:tn,configurable:!0}):en.name=tn),mh&&nn&&Ah(nn,"arity")&&en.length!==nn.arity&&_h(en,"length",{value:nn.arity});try{nn&&Ah(nn,"constructor")&&nn.constructor?dh&&_h(en,"prototype",{writable:!1}):en.prototype&&(en.prototype=void 0)}catch(en){}var rn=hh(en);return Ah(rn,"source")||(rn.source=fh.join("string"==typeof tn?tn:"")),en};Function.prototype.toString=yh((function toString(){return ch(this)&&gh(this).source||ph(this)}),"toString");var bh=isCallable$m,vh=sp,wh=xp.exports,xh=defineGlobalProperty$3,defineBuiltIn$7=function(en,tn,nn,rn){rn||(rn={});var an=rn.enumerable,sn=void 0!==rn.name?rn.name:tn;if(bh(nn)&&wh(nn,sn,rn),rn.global)an?en[tn]=nn:xh(tn,nn);else{try{rn.unsafe?en[tn]&&(an=!0):delete en[tn]}catch(en){}an?en[tn]=nn:vh.f(en,tn,{value:nn,enumerable:!1,configurable:!rn.nonConfigurable,writable:!rn.nonWritable})}return en},kh={},Ch=Math.ceil,Sh=Math.floor,Bh=Math.trunc||function trunc(en){var tn=+en;return(tn>0?Sh:Ch)(tn)},Eh=Bh,toIntegerOrInfinity$4=function(en){var tn=+en;return tn!=tn||0===tn?0:Eh(tn)},jh=toIntegerOrInfinity$4,Lh=Math.max,Ph=Math.min,toAbsoluteIndex$2=function(en,tn){var nn=jh(en);return nn<0?Lh(nn+tn,0):Ph(nn,tn)},Th=toIntegerOrInfinity$4,Fh=Math.min,toLength$6=function(en){return en>0?Fh(Th(en),9007199254740991):0},Uh=toLength$6,lengthOfArrayLike$4=function(en){return Uh(en.length)},Nh=toIndexedObject$5,Ih=toAbsoluteIndex$2,Mh=lengthOfArrayLike$4,createMethod$3=function(en){return function(tn,nn,rn){var an,sn=Nh(tn),cn=Mh(sn),An=Ih(rn,cn);if(en&&nn!=nn){for(;cn>An;)if((an=sn[An++])!=an)return!0}else for(;cn>An;An++)if((en||An in sn)&&sn[An]===nn)return en||An||0;return!en&&-1}},Rh={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},Oh=Cu,Qh=toIndexedObject$5,qh=Rh.indexOf,Vh=Dp,Gh=Bd([].push),objectKeysInternal=function(en,tn){var nn,rn=Qh(en),an=0,sn=[];for(nn in rn)!Oh(Vh,nn)&&Oh(rn,nn)&&Gh(sn,nn);for(;tn.length>an;)Oh(rn,nn=tn[an++])&&(~qh(sn,nn)||Gh(sn,nn));return sn},Dh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hh=objectKeysInternal,zh=Dh.concat("length","prototype");kh.f=Object.getOwnPropertyNames||function getOwnPropertyNames(en){return Hh(en,zh)};var Kh={};Kh.f=Object.getOwnPropertySymbols;var $h=getBuiltIn$8,Wh=kh,Xh=Kh,Yh=anObject$g,Zh=Bd([].concat),Jh=$h("Reflect","ownKeys")||function ownKeys(en){var tn=Wh.f(Yh(en)),nn=Xh.f;return nn?Zh(tn,nn(en)):tn},eg=Cu,tg=Jh,ng=Ad,rg=sp,og=fails$l,ig=isCallable$m,ag=/#|\.prototype\./,isForced$2=function(en,tn){var nn=lg[sg(en)];return nn==Ag||nn!=cg&&(ig(tn)?og(tn):!!tn)},sg=isForced$2.normalize=function(en){return String(en).replace(ag,".").toLowerCase()},lg=isForced$2.data={},cg=isForced$2.NATIVE="N",Ag=isForced$2.POLYFILL="P",dg=isForced$2,ug=cd,pg=Ad.f,hg=wp,gg=defineBuiltIn$7,_g=defineGlobalProperty$3,copyConstructorProperties=function(en,tn,nn){for(var rn=tg(tn),an=rg.f,sn=ng.f,cn=0;cn<rn.length;cn++){var An=rn[cn];eg(en,An)||nn&&eg(nn,An)||an(en,An,sn(tn,An))}},mg=dg,_export=function(en,tn){var nn,rn,an,sn,cn,An=en.target,dn=en.global,un=en.stat;if(nn=dn?ug:un?ug[An]||_g(An,{}):(ug[An]||{}).prototype)for(rn in tn){if(sn=tn[rn],an=en.dontCallGetSet?(cn=pg(nn,rn))&&cn.value:nn[rn],!mg(dn?rn:An+(un?".":"#")+rn,en.forced)&&void 0!==an){if(typeof sn==typeof an)continue;copyConstructorProperties(sn,an)}(en.sham||an&&an.sham)&&hg(sn,"sham",!0),gg(nn,rn,sn,en)}},fg="process"==classofRaw$1(cd.process),yg=isCallable$m,bg=String,vg=TypeError,wg=Bd,xg=anObject$g,kg=Object.setPrototypeOf||("__proto__"in{}?function(){var en,tn=!1,nn={};try{(en=wg(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(nn,[]),tn=nn instanceof Array}catch(en){}return function setPrototypeOf(nn,rn){return xg(nn),function(en){if("object"==typeof en||yg(en))return en;throw vg("Can't set "+bg(en)+" as a prototype")}(rn),tn?en(nn,rn):nn.__proto__=rn,nn}}():void 0),Cg=sp.f,Sg=Cu,Bg=wellKnownSymbol$i("toStringTag"),setToStringTag$3=function(en,tn,nn){en&&!nn&&(en=en.prototype),en&&!Sg(en,Bg)&&Cg(en,Bg,{configurable:!0,value:tn})},Eg=getBuiltIn$8,jg=sp,Lg=dd,Pg=wellKnownSymbol$i("species"),Tg=Vd,Fg=TypeError,Ug={};Ug[wellKnownSymbol$i("toStringTag")]="z";var Ng="[object z]"===String(Ug),Ig=isCallable$m,Mg=classofRaw$1,Rg=wellKnownSymbol$i("toStringTag"),Og=Object,Qg="Arguments"==Mg(function(){return arguments}()),qg=Ng?Mg:function(en){var tn,nn,rn;return void 0===en?"Undefined":null===en?"Null":"string"==typeof(nn=function(en,tn){try{return en[tn]}catch(en){}}(tn=Og(en),Rg))?nn:Qg?Mg(tn):"Object"==(rn=Mg(tn))&&Ig(tn.callee)?"Arguments":rn},Vg=Bd,Gg=fails$l,Dg=isCallable$m,Hg=qg,zg=Ip,noop$1=function(){},Kg=[],$g=getBuiltIn$8("Reflect","construct"),Wg=/^\s*(?:class|function)\b/,Xg=Vg(Wg.exec),Yg=!Wg.exec(noop$1),Zg=function isConstructor(en){if(!Dg(en))return!1;try{return $g(noop$1,Kg,en),!0}catch(en){return!1}},Jg=function isConstructor(en){if(!Dg(en))return!1;switch(Hg(en)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Yg||!!Xg(Wg,zg(en))}catch(en){return!0}};Jg.sham=!0;var e_,t_,n_,r_,o_=!$g||Gg((function(){var en;return Zg(Zg.call)||!Zg(Object)||!Zg((function(){en=!0}))||en}))?Jg:Zg,i_=o_,a_=tryToString$4,s_=TypeError,l_=anObject$g,c_=wellKnownSymbol$i("species"),speciesConstructor$2=function(en,tn){var nn,rn=l_(en).constructor;return void 0===rn||null==(nn=l_(rn)[c_])?tn:function(en){if(i_(en))return en;throw s_(a_(en)+" is not a constructor")}(nn)},A_=ud,d_=Function.prototype,u_=d_.apply,p_=d_.call,h_="object"==typeof Reflect&&Reflect.apply||(A_?p_.bind(u_):function(){return p_.apply(u_,arguments)}),g_=aCallable$8,m_=ud,f_=Bd(Bd.bind),functionBindContext=function(en,tn){return g_(en),void 0===tn?en:m_?f_(en,tn):function(){return en.apply(tn,arguments)}},y_=getBuiltIn$8("document","documentElement"),b_=Bd([].slice),v_=TypeError,w_=/(?:ipad|iphone|ipod).*applewebkit/i.test(Gd),x_=cd,k_=h_,C_=functionBindContext,S_=isCallable$m,B_=Cu,E_=fails$l,j_=y_,L_=b_,P_=documentCreateElement$2,validateArgumentsLength=function(en,tn){if(en<tn)throw v_("Not enough arguments");return en},T_=w_,F_=fg,U_=x_.setImmediate,N_=x_.clearImmediate,I_=x_.process,M_=x_.Dispatch,R_=x_.Function,O_=x_.MessageChannel,Q_=x_.String,q_=0,V_={};try{e_=x_.location}catch(ma){}var run=function(en){if(B_(V_,en)){var tn=V_[en];delete V_[en],tn()}},runner=function(en){return function(){run(en)}},listener=function(en){run(en.data)},post=function(en){x_.postMessage(Q_(en),e_.protocol+"//"+e_.host)};U_&&N_||(U_=function setImmediate(en){validateArgumentsLength(arguments.length,1);var tn=S_(en)?en:R_(en),nn=L_(arguments,1);return V_[++q_]=function(){k_(tn,void 0,nn)},t_(q_),q_},N_=function clearImmediate(en){delete V_[en]},F_?t_=function(en){I_.nextTick(runner(en))}:M_&&M_.now?t_=function(en){M_.now(runner(en))}:O_&&!T_?(r_=(n_=new O_).port2,n_.port1.onmessage=listener,t_=C_(r_.postMessage,r_)):x_.addEventListener&&S_(x_.postMessage)&&!x_.importScripts&&e_&&"file:"!==e_.protocol&&!E_(post)?(t_=post,x_.addEventListener("message",listener,!1)):t_="onreadystatechange"in P_("script")?function(en){j_.appendChild(P_("script")).onreadystatechange=function(){j_.removeChild(this),run(en)}}:function(en){setTimeout(runner(en),0)});var G_,D_,H_,z_,K_,$_,W_,X_,Y_={set:U_,clear:N_},Z_=cd,J_=/ipad|iphone|ipod/i.test(Gd)&&void 0!==Z_.Pebble,em=/web0s(?!.*chrome)/i.test(Gd),tm=cd,nm=functionBindContext,rm=Ad.f,om=Y_.set,im=w_,am=J_,sm=em,lm=fg,cm=tm.MutationObserver||tm.WebKitMutationObserver,Am=tm.document,dm=tm.process,um=tm.Promise,pm=rm(tm,"queueMicrotask"),hm=pm&&pm.value;hm||(G_=function(){var en,tn;for(lm&&(en=dm.domain)&&en.exit();D_;){tn=D_.fn,D_=D_.next;try{tn()}catch(en){throw D_?z_():H_=void 0,en}}H_=void 0,en&&en.enter()},im||lm||sm||!cm||!Am?!am&&um&&um.resolve?((W_=um.resolve(void 0)).constructor=um,X_=nm(W_.then,W_),z_=function(){X_(G_)}):lm?z_=function(){dm.nextTick(G_)}:(om=nm(om,tm),z_=function(){om(G_)}):(K_=!0,$_=Am.createTextNode(""),new cm(G_).observe($_,{characterData:!0}),z_=function(){$_.data=K_=!K_}));var gm=hm||function(en){var tn={fn:en,next:void 0};H_&&(H_.next=tn),D_||(D_=tn,z_()),H_=tn},_m=cd,perform$3=function(en){try{return{error:!1,value:en()}}catch(en){return{error:!0,value:en}}},Queue$1=function(){this.head=null,this.tail=null};Queue$1.prototype={add:function(en){var tn={item:en,next:null};this.head?this.tail.next=tn:this.head=tn,this.tail=tn},get:function(){var en=this.head;if(en)return this.head=en.next,this.tail===en&&(this.tail=null),en.item}};var mm=Queue$1,fm=cd.Promise,ym="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,bm=!ym&&!fg&&"object"==typeof window&&"object"==typeof document,vm=cd,wm=fm,xm=isCallable$m,km=dg,Cm=Ip,Sm=wellKnownSymbol$i,Bm=bm,Em=ym,jm=Xd;wm&&wm.prototype;var Lm=Sm("species"),Pm=!1,Tm=xm(vm.PromiseRejectionEvent),Fm=km("Promise",(function(){var en=Cm(wm),tn=en!==String(wm);if(!tn&&66===jm)return!0;if(!jm||jm<51||!/native code/.test(en)){var nn=new wm((function(en){en(1)})),FakePromise=function(en){en((function(){}),(function(){}))};if((nn.constructor={})[Lm]=FakePromise,!(Pm=nn.then((function(){}))instanceof FakePromise))return!0}return!tn&&(Bm||Em)&&!Tm})),Um={CONSTRUCTOR:Fm,REJECTION_EVENT:Tm,SUBCLASSING:Pm},Nm={},Im=aCallable$8,PromiseCapability=function(en){var tn,nn;this.promise=new en((function(en,rn){if(void 0!==tn||void 0!==nn)throw TypeError("Bad Promise constructor");tn=en,nn=rn})),this.resolve=Im(tn),this.reject=Im(nn)};Nm.f=function(en){return new PromiseCapability(en)};var Mm,Rm,Om,Qm=_export,qm=fg,Vm=cd,Gm=gd,Dm=defineBuiltIn$7,Hm=kg,zm=setToStringTag$3,Km=aCallable$8,$m=isCallable$m,Wm=isObject$8,Xm=speciesConstructor$2,Ym=Y_.set,Zm=gm,Jm=perform$3,ef=mm,tf=sh,nf=fm,rf=Nm,of=Um.CONSTRUCTOR,af=Um.REJECTION_EVENT,sf=Um.SUBCLASSING,lf=tf.getterFor("Promise"),cf=tf.set,Af=nf&&nf.prototype,df=nf,uf=Af,pf=Vm.TypeError,hf=Vm.document,gf=Vm.process,_f=rf.f,mf=_f,ff=!!(hf&&hf.createEvent&&Vm.dispatchEvent),isThenable=function(en){var tn;return!(!Wm(en)||!$m(tn=en.then))&&tn},callReaction=function(en,tn){var nn,rn,an,sn=tn.value,cn=1==tn.state,An=cn?en.ok:en.fail,dn=en.resolve,un=en.reject,pn=en.domain;try{An?(cn||(2===tn.rejection&&onHandleUnhandled(tn),tn.rejection=1),!0===An?nn=sn:(pn&&pn.enter(),nn=An(sn),pn&&(pn.exit(),an=!0)),nn===en.promise?un(pf("Promise-chain cycle")):(rn=isThenable(nn))?Gm(rn,nn,dn,un):dn(nn)):un(sn)}catch(en){pn&&!an&&pn.exit(),un(en)}},notify=function(en,tn){en.notified||(en.notified=!0,Zm((function(){for(var nn,rn=en.reactions;nn=rn.get();)callReaction(nn,en);en.notified=!1,tn&&!en.rejection&&onUnhandled(en)})))},dispatchEvent=function(en,tn,nn){var rn,an;ff?((rn=hf.createEvent("Event")).promise=tn,rn.reason=nn,rn.initEvent(en,!1,!0),Vm.dispatchEvent(rn)):rn={promise:tn,reason:nn},!af&&(an=Vm["on"+en])?an(rn):"unhandledrejection"===en&&function(en,tn){var nn=_m.console;nn&&nn.error&&(1==arguments.length?nn.error(en):nn.error(en,tn))}("Unhandled promise rejection",nn)},onUnhandled=function(en){Gm(Ym,Vm,(function(){var tn,nn=en.facade,rn=en.value;if(isUnhandled(en)&&(tn=Jm((function(){qm?gf.emit("unhandledRejection",rn,nn):dispatchEvent("unhandledrejection",nn,rn)})),en.rejection=qm||isUnhandled(en)?2:1,tn.error))throw tn.value}))},isUnhandled=function(en){return 1!==en.rejection&&!en.parent},onHandleUnhandled=function(en){Gm(Ym,Vm,(function(){var tn=en.facade;qm?gf.emit("rejectionHandled",tn):dispatchEvent("rejectionhandled",tn,en.value)}))},bind$1=function(en,tn,nn){return function(rn){en(tn,rn,nn)}},internalReject=function(en,tn,nn){en.done||(en.done=!0,nn&&(en=nn),en.value=tn,en.state=2,notify(en,!0))},internalResolve=function(en,tn,nn){if(!en.done){en.done=!0,nn&&(en=nn);try{if(en.facade===tn)throw pf("Promise can't be resolved itself");var rn=isThenable(tn);rn?Zm((function(){var nn={done:!1};try{Gm(rn,tn,bind$1(internalResolve,nn,en),bind$1(internalReject,nn,en))}catch(tn){internalReject(nn,tn,en)}})):(en.value=tn,en.state=1,notify(en,!1))}catch(tn){internalReject({done:!1},tn,en)}}};if(of&&(uf=(df=function Promise(en){(function(en,tn){if(Tg(tn,en))return en;throw Fg("Incorrect invocation")})(this,uf),Km(en),Gm(Mm,this);var tn=lf(this);try{en(bind$1(internalResolve,tn),bind$1(internalReject,tn))}catch(en){internalReject(tn,en)}}).prototype,(Mm=function Promise(en){cf(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new ef,rejection:!1,state:0,value:void 0})}).prototype=Dm(uf,"then",(function then(en,tn){var nn=lf(this),rn=_f(Xm(this,df));return nn.parent=!0,rn.ok=!$m(en)||en,rn.fail=$m(tn)&&tn,rn.domain=qm?gf.domain:void 0,0==nn.state?nn.reactions.add(rn):Zm((function(){callReaction(rn,nn)})),rn.promise})),Rm=function(){var en=new Mm,tn=lf(en);this.promise=en,this.resolve=bind$1(internalResolve,tn),this.reject=bind$1(internalReject,tn)},rf.f=_f=function(en){return en===df||void 0===en?new Rm(en):mf(en)},$m(nf)&&Af!==Object.prototype)){Om=Af.then,sf||Dm(Af,"then",(function then(en,tn){var nn=this;return new df((function(en,tn){Gm(Om,nn,en,tn)})).then(en,tn)}),{unsafe:!0});try{delete Af.constructor}catch(ma){}Hm&&Hm(Af,uf)}Qm({global:!0,constructor:!0,wrap:!0,forced:of},{Promise:df}),zm(df,"Promise",!1),function(en){var tn=Eg(en),nn=jg.f;Lg&&tn&&!tn[Pg]&&nn(tn,Pg,{configurable:!0,get:function(){return this}})}("Promise");var yf={},bf=yf,vf=wellKnownSymbol$i("iterator"),wf=Array.prototype,xf=qg,kf=getMethod$6,Cf=yf,Sf=wellKnownSymbol$i("iterator"),getIteratorMethod$2=function(en){if(null!=en)return kf(en,Sf)||kf(en,"@@iterator")||Cf[xf(en)]},Bf=gd,Ef=aCallable$8,jf=anObject$g,Lf=tryToString$4,Pf=getIteratorMethod$2,Tf=TypeError,Ff=gd,Uf=anObject$g,Nf=getMethod$6,If=functionBindContext,Mf=gd,Rf=anObject$g,Of=tryToString$4,Qf=lengthOfArrayLike$4,qf=Vd,Vf=getIteratorMethod$2,iteratorClose=function(en,tn,nn){var rn,an;Uf(en);try{if(!(rn=Nf(en,"return"))){if("throw"===tn)throw nn;return nn}rn=Ff(rn,en)}catch(en){an=!0,rn=en}if("throw"===tn)throw nn;if(an)throw rn;return Uf(rn),nn},Gf=TypeError,Result=function(en,tn){this.stopped=en,this.result=tn},Df=Result.prototype,iterate$2=function(en,tn,nn){var rn,an,sn,cn,An,dn,un,pn=nn&&nn.that,hn=!(!nn||!nn.AS_ENTRIES),gn=!(!nn||!nn.IS_RECORD),_n=!(!nn||!nn.IS_ITERATOR),mn=!(!nn||!nn.INTERRUPTED),fn=If(tn,pn),stop=function(en){return rn&&iteratorClose(rn,"normal",en),new Result(!0,en)},callFn=function(en){return hn?(Rf(en),mn?fn(en[0],en[1],stop):fn(en[0],en[1])):mn?fn(en,stop):fn(en)};if(gn)rn=en.iterator;else if(_n)rn=en;else{if(!(an=Vf(en)))throw Gf(Of(en)+" is not iterable");if(function(en){return void 0!==en&&(bf.Array===en||wf[vf]===en)}(an)){for(sn=0,cn=Qf(en);cn>sn;sn++)if((An=callFn(en[sn]))&&qf(Df,An))return An;return new Result(!1)}rn=function(en,tn){var nn=arguments.length<2?Pf(en):tn;if(Ef(nn))return jf(Bf(nn,en));throw Tf(Lf(en)+" is not iterable")}(en,an)}for(dn=gn?en.next:rn.next;!(un=Mf(dn,rn)).done;){try{An=callFn(un.value)}catch(en){iteratorClose(rn,"throw",en)}if("object"==typeof An&&An&&qf(Df,An))return An}return new Result(!1)},Hf=wellKnownSymbol$i("iterator"),zf=!1;try{var Kf=0,$f={next:function(){return{done:!!Kf++}},return:function(){zf=!0}};$f[Hf]=function(){return this},Array.from($f,(function(){throw 2}))}catch(ma){}var Wf=fm,Xf=Um.CONSTRUCTOR||!function(en,tn){if(!tn&&!zf)return!1;var nn=!1;try{var rn={};rn[Hf]=function(){return{next:function(){return{done:nn=!0}}}},en(rn)}catch(en){}return nn}((function(en){Wf.all(en).then(void 0,(function(){}))})),Yf=gd,Zf=aCallable$8,Jf=Nm,ey=perform$3,ty=iterate$2;_export({target:"Promise",stat:!0,forced:Xf},{all:function all(en){var tn=this,nn=Jf.f(tn),rn=nn.resolve,an=nn.reject,sn=ey((function(){var nn=Zf(tn.resolve),sn=[],cn=0,An=1;ty(en,(function(en){var dn=cn++,un=!1;An++,Yf(nn,tn,en).then((function(en){un||(un=!0,sn[dn]=en,--An||rn(sn))}),an)})),--An||rn(sn)}));return sn.error&&an(sn.value),nn.promise}});var ny=_export,ry=Um.CONSTRUCTOR,oy=fm,iy=getBuiltIn$8,ay=isCallable$m,sy=defineBuiltIn$7,ly=oy&&oy.prototype;if(ny({target:"Promise",proto:!0,forced:ry,real:!0},{catch:function(en){return this.then(void 0,en)}}),ay(oy)){var cy=iy("Promise").prototype.catch;ly.catch!==cy&&sy(ly,"catch",cy,{unsafe:!0})}var Ay=gd,dy=aCallable$8,uy=Nm,py=perform$3,hy=iterate$2;_export({target:"Promise",stat:!0,forced:Xf},{race:function race(en){var tn=this,nn=uy.f(tn),rn=nn.reject,an=py((function(){var an=dy(tn.resolve);hy(en,(function(en){Ay(an,tn,en).then(nn.resolve,rn)}))}));return an.error&&rn(an.value),nn.promise}});var gy=gd,_y=Nm;_export({target:"Promise",stat:!0,forced:Um.CONSTRUCTOR},{reject:function reject(en){var tn=_y.f(this);return gy(tn.reject,void 0,en),tn.promise}});var my=anObject$g,fy=isObject$8,yy=Nm,by=_export,vy=Um.CONSTRUCTOR;function asyncGeneratorStep(en,tn,nn,rn,an,sn,cn){try{var An=en[sn](cn),dn=An.value}catch(en){return void nn(en)}An.done?tn(dn):Promise.resolve(dn).then(rn,an)}function _asyncToGenerator(en){return function(){var tn=this,nn=arguments;return new Promise((function(rn,an){var sn=en.apply(tn,nn);function _next(en){asyncGeneratorStep(sn,rn,an,_next,_throw,"next",en)}function _throw(en){asyncGeneratorStep(sn,rn,an,_next,_throw,"throw",en)}_next(void 0)}))}}getBuiltIn$8("Promise"),by({target:"Promise",stat:!0,forced:vy},{resolve:function resolve(en){return function(en,tn){if(my(en),fy(tn)&&tn.constructor===en)return tn;var nn=yy.f(en);return(0,nn.resolve)(tn),nn.promise}(this,en)}});var wy=qg,xy=String,toString$9=function(en){if("Symbol"===wy(en))throw TypeError("Cannot convert a Symbol value to a string");return xy(en)},ky=anObject$g,regexpFlags$1=function(){var en=ky(this),tn="";return en.hasIndices&&(tn+="d"),en.global&&(tn+="g"),en.ignoreCase&&(tn+="i"),en.multiline&&(tn+="m"),en.dotAll&&(tn+="s"),en.unicode&&(tn+="u"),en.unicodeSets&&(tn+="v"),en.sticky&&(tn+="y"),tn},Cy=fails$l,Sy=cd.RegExp,By=Cy((function(){var en=Sy("a","y");return en.lastIndex=2,null!=en.exec("abcd")})),Ey=By||Cy((function(){return!Sy("a","y").sticky})),jy=By||Cy((function(){var en=Sy("^r","gy");return en.lastIndex=2,null!=en.exec("str")})),Ly={BROKEN_CARET:jy,MISSED_STICKY:Ey,UNSUPPORTED_Y:By},Py={},Ty=objectKeysInternal,Fy=Dh,Uy=Object.keys||function keys(en){return Ty(en,Fy)},Ny=dd,Iy=lp,My=sp,Ry=anObject$g,Oy=toIndexedObject$5,Qy=Uy;Py.f=Ny&&!Iy?Object.defineProperties:function defineProperties(en,tn){Ry(en);for(var nn,rn=Oy(tn),an=Qy(tn),sn=an.length,cn=0;sn>cn;)My.f(en,nn=an[cn++],rn[nn]);return en};var qy,Vy=anObject$g,Gy=Py,Dy=Dh,Hy=Dp,zy=y_,Ky=documentCreateElement$2,$y=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(en){return"<script>"+en+"<\/script>"},NullProtoObjectViaActiveX=function(en){en.write(scriptTag("")),en.close();var tn=en.parentWindow.Object;return en=null,tn},NullProtoObject=function(){try{qy=new ActiveXObject("htmlfile")}catch(en){}var en,tn;NullProtoObject="undefined"!=typeof document?document.domain&&qy?NullProtoObjectViaActiveX(qy):((tn=Ky("iframe")).style.display="none",zy.appendChild(tn),tn.src=String("javascript:"),(en=tn.contentWindow.document).open(),en.write(scriptTag("document.F=Object")),en.close(),en.F):NullProtoObjectViaActiveX(qy);for(var nn=Dy.length;nn--;)delete NullProtoObject.prototype[Dy[nn]];return NullProtoObject()};Hy[$y]=!0;var Wy,Xy,Yy=Object.create||function create(en,tn){var nn;return null!==en?(EmptyConstructor.prototype=Vy(en),nn=new EmptyConstructor,EmptyConstructor.prototype=null,nn[$y]=en):nn=NullProtoObject(),void 0===tn?nn:Gy.f(nn,tn)},Zy=fails$l,Jy=cd.RegExp,eb=Zy((function(){var en=Jy(".","s");return!(en.dotAll&&en.exec("\n")&&"s"===en.flags)})),tb=fails$l,nb=cd.RegExp,rb=tb((function(){var en=nb("(?<a>b)","g");return"b"!==en.exec("b").groups.a||"bc"!=="b".replace(en,"$<a>c")})),ob=gd,ib=Bd,ab=toString$9,sb=regexpFlags$1,lb=Ly,cb=gu.exports,Ab=Yy,db=sh.get,ub=eb,pb=rb,hb=cb("native-string-replace",String.prototype.replace),gb=RegExp.prototype.exec,_b=gb,mb=ib("".charAt),fb=ib("".indexOf),yb=ib("".replace),bb=ib("".slice),vb=(Xy=/b*/g,ob(gb,Wy=/a/,"a"),ob(gb,Xy,"a"),0!==Wy.lastIndex||0!==Xy.lastIndex),wb=lb.BROKEN_CARET,xb=void 0!==/()??/.exec("")[1];(vb||xb||wb||ub||pb)&&(_b=function exec(en){var tn,nn,rn,an,sn,cn,An,dn=this,un=db(dn),pn=ab(en),hn=un.raw;if(hn)return hn.lastIndex=dn.lastIndex,tn=ob(_b,hn,pn),dn.lastIndex=hn.lastIndex,tn;var gn=un.groups,_n=wb&&dn.sticky,mn=ob(sb,dn),fn=dn.source,yn=0,bn=pn;if(_n&&(mn=yb(mn,"y",""),-1===fb(mn,"g")&&(mn+="g"),bn=bb(pn,dn.lastIndex),dn.lastIndex>0&&(!dn.multiline||dn.multiline&&"\n"!==mb(pn,dn.lastIndex-1))&&(fn="(?: "+fn+")",bn=" "+bn,yn++),nn=new RegExp("^(?:"+fn+")",mn)),xb&&(nn=new RegExp("^"+fn+"$(?!\\s)",mn)),vb&&(rn=dn.lastIndex),an=ob(gb,_n?nn:dn,bn),_n?an?(an.input=bb(an.input,yn),an[0]=bb(an[0],yn),an.index=dn.lastIndex,dn.lastIndex+=an[0].length):dn.lastIndex=0:vb&&an&&(dn.lastIndex=dn.global?an.index+an[0].length:rn),xb&&an&&an.length>1&&ob(hb,an[0],nn,(function(){for(sn=1;sn<arguments.length-2;sn++)void 0===arguments[sn]&&(an[sn]=void 0)})),an&&gn)for(an.groups=cn=Ab(null),sn=0;sn<gn.length;sn++)cn[(An=gn[sn])[0]]=an[An[1]];return an});var kb=_b;_export({target:"RegExp",proto:!0,forced:/./.exec!==kb},{exec:kb});var Cb=Bd,Sb=defineBuiltIn$7,Bb=kb,Eb=fails$l,jb=wellKnownSymbol$i,Lb=wp,Pb=jb("species"),Tb=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(en,tn,nn,rn){var an=jb(en),sn=!Eb((function(){var tn={};return tn[an]=function(){return 7},7!=""[en](tn)})),cn=sn&&!Eb((function(){var tn=!1,nn=/a/;return"split"===en&&((nn={}).constructor={},nn.constructor[Pb]=function(){return nn},nn.flags="",nn[an]=/./[an]),nn.exec=function(){return tn=!0,null},nn[an](""),!tn}));if(!sn||!cn||nn){var An=Cb(/./[an]),dn=tn(an,""[en],(function(en,tn,nn,rn,an){var cn=Cb(en),dn=tn.exec;return dn===Bb||dn===Tb.exec?sn&&!an?{done:!0,value:An(tn,nn,rn)}:{done:!0,value:cn(nn,tn,rn)}:{done:!1}}));Sb(String.prototype,en,dn[0]),Sb(Tb,an,dn[1])}rn&&Lb(Tb[an],"sham",!0)},Fb=Bd,Ub=toIntegerOrInfinity$4,Nb=toString$9,Ib=requireObjectCoercible$a,Mb=Fb("".charAt),Rb=Fb("".charCodeAt),Ob=Fb("".slice),createMethod$2=function(en){return function(tn,nn){var rn,an,sn=Nb(Ib(tn)),cn=Ub(nn),An=sn.length;return cn<0||cn>=An?en?"":void 0:(rn=Rb(sn,cn))<55296||rn>56319||cn+1===An||(an=Rb(sn,cn+1))<56320||an>57343?en?Mb(sn,cn):rn:en?Ob(sn,cn,cn+2):an-56320+(rn-55296<<10)+65536}},Qb=(createMethod$2(!1),createMethod$2(!0)),advanceStringIndex$3=function(en,tn,nn){return tn+(nn?Qb(en,tn).length:1)},qb=gd,Vb=anObject$g,Gb=isCallable$m,Db=classofRaw$1,Hb=kb,zb=TypeError,regexpExecAbstract=function(en,tn){var nn=en.exec;if(Gb(nn)){var rn=qb(nn,en,tn);return null!==rn&&Vb(rn),rn}if("RegExp"===Db(en))return qb(Hb,en,tn);throw zb("RegExp#exec called on incompatible receiver")},Kb=gd,$b=anObject$g,Wb=toLength$6,Xb=toString$9,Yb=requireObjectCoercible$a,Zb=getMethod$6,Jb=advanceStringIndex$3,ev=regexpExecAbstract;fixRegexpWellKnownSymbolLogic("match",(function(en,tn,nn){return[function match(tn){var nn=Yb(this),rn=null==tn?void 0:Zb(tn,en);return rn?Kb(rn,tn,nn):new RegExp(tn)[en](Xb(nn))},function(en){var rn=$b(this),an=Xb(en),sn=nn(tn,rn,an);if(sn.done)return sn.value;if(!rn.global)return ev(rn,an);var cn=rn.unicode;rn.lastIndex=0;for(var An,dn=[],un=0;null!==(An=ev(rn,an));){var pn=Xb(An[0]);dn[un]=pn,""===pn&&(rn.lastIndex=Jb(an,Wb(rn.lastIndex),cn)),un++}return 0===un?null:dn}]}));var tv=Bd,nv=toObject$4,rv=Math.floor,ov=tv("".charAt),iv=tv("".replace),av=tv("".slice),sv=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lv=/\$([$&'`]|\d{1,2})/g,cv=h_,Av=gd,dv=Bd,uv=fixRegexpWellKnownSymbolLogic,pv=fails$l,hv=anObject$g,gv=isCallable$m,_v=toIntegerOrInfinity$4,mv=toLength$6,fv=toString$9,yv=requireObjectCoercible$a,bv=advanceStringIndex$3,vv=getMethod$6,getSubstitution=function(en,tn,nn,rn,an,sn){var cn=nn+en.length,An=rn.length,dn=lv;return void 0!==an&&(an=nv(an),dn=sv),iv(sn,dn,(function(sn,dn){var un;switch(ov(dn,0)){case"$":return"$";case"&":return en;case"`":return av(tn,0,nn);case"'":return av(tn,cn);case"<":un=an[av(dn,1,-1)];break;default:var pn=+dn;if(0===pn)return sn;if(pn>An){var hn=rv(pn/10);return 0===hn?sn:hn<=An?void 0===rn[hn-1]?ov(dn,1):rn[hn-1]+ov(dn,1):sn}un=rn[pn-1]}return void 0===un?"":un}))},wv=regexpExecAbstract,xv=wellKnownSymbol$i("replace"),kv=Math.max,Cv=Math.min,Sv=dv([].concat),Bv=dv([].push),Ev=dv("".indexOf),jv=dv("".slice),maybeToString=function(en){return void 0===en?en:String(en)},Lv="$0"==="a".replace(/./,"$0"),Pv=!!/./[xv]&&""===/./[xv]("a","$0"),Tv=!pv((function(){var en=/./;return en.exec=function(){var en=[];return en.groups={a:"7"},en},"7"!=="".replace(en,"$<a>")}));uv("replace",(function(en,tn,nn){var rn=Pv?"$":"$0";return[function replace(en,nn){var rn=yv(this),an=null==en?void 0:vv(en,xv);return an?Av(an,en,rn,nn):Av(tn,fv(rn),en,nn)},function(en,an){var sn=hv(this),cn=fv(en);if("string"==typeof an&&-1===Ev(an,rn)&&-1===Ev(an,"$<")){var An=nn(tn,sn,cn,an);if(An.done)return An.value}var dn=gv(an);dn||(an=fv(an));var un=sn.global;if(un){var pn=sn.unicode;sn.lastIndex=0}for(var hn=[];;){var gn=wv(sn,cn);if(null===gn)break;if(Bv(hn,gn),!un)break;""===fv(gn[0])&&(sn.lastIndex=bv(cn,mv(sn.lastIndex),pn))}for(var _n="",mn=0,fn=0;fn<hn.length;fn++){for(var yn=fv((gn=hn[fn])[0]),bn=kv(Cv(_v(gn.index),cn.length),0),vn=[],wn=1;wn<gn.length;wn++)Bv(vn,maybeToString(gn[wn]));var xn=gn.groups;if(dn){var kn=Sv([yn],vn,bn,cn);void 0!==xn&&Bv(kn,xn);var Cn=fv(cv(an,void 0,kn))}else Cn=getSubstitution(yn,cn,bn,vn,xn,an);bn>=mn&&(_n+=jv(cn,mn,bn)+Cn,mn=bn+yn.length)}return _n+jv(cn,mn)}]}),!Tv||!Lv||Pv);var Fv,Uv=isObject$8,Nv=classofRaw$1,Iv=wellKnownSymbol$i("match"),isRegexp=function(en){var tn;return Uv(en)&&(void 0!==(tn=en[Iv])?!!tn:"RegExp"==Nv(en))},Mv=isRegexp,Rv=TypeError,notARegexp=function(en){if(Mv(en))throw Rv("The method doesn't accept regular expressions");return en},Ov=wellKnownSymbol$i("match"),correctIsRegexpLogic=function(en){var tn=/./;try{"/./"[en](tn)}catch(nn){try{return tn[Ov]=!1,"/./"[en](tn)}catch(en){}}return!1},Qv=_export,qv=Bd,Vv=Ad.f,Gv=toLength$6,Dv=toString$9,Hv=notARegexp,zv=requireObjectCoercible$a,Kv=correctIsRegexpLogic,$v=qv("".startsWith),Wv=qv("".slice),Xv=Math.min,Yv=Kv("startsWith");Qv({target:"String",proto:!0,forced:!(!Yv&&(Fv=Vv(String.prototype,"startsWith"),Fv&&!Fv.writable)||Yv)},{startsWith:function startsWith(en){var tn=Dv(zv(this));Hv(en);var nn=Gv(Xv(arguments.length>1?arguments[1]:void 0,tn.length)),rn=Dv(en);return $v?$v(tn,rn,nn):Wv(tn,nn,nn+rn.length)===rn}});var Zv=wellKnownSymbol$i,Jv=Yy,ew=sp.f,tw=Zv("unscopables"),nw=Array.prototype;null==nw[tw]&&ew(nw,tw,{configurable:!0,value:Jv(null)});var rw,ow,iw,aw=!fails$l((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),sw=Cu,lw=isCallable$m,cw=toObject$4,Aw=aw,dw=sharedKey$3("IE_PROTO"),uw=Object,pw=uw.prototype,hw=Aw?uw.getPrototypeOf:function(en){var tn=cw(en);if(sw(tn,dw))return tn[dw];var nn=tn.constructor;return lw(nn)&&tn instanceof nn?nn.prototype:tn instanceof uw?pw:null},gw=fails$l,_w=isCallable$m,mw=hw,fw=defineBuiltIn$7,yw=wellKnownSymbol$i("iterator"),bw=!1;[].keys&&("next"in(iw=[].keys())?(ow=mw(mw(iw)))!==Object.prototype&&(rw=ow):bw=!0);var vw=null==rw||gw((function(){var en={};return rw[yw].call(en)!==en}));vw&&(rw={}),_w(rw[yw])||fw(rw,yw,(function(){return this}));var ww={IteratorPrototype:rw,BUGGY_SAFARI_ITERATORS:bw},xw=ww.IteratorPrototype,kw=Yy,Cw=createPropertyDescriptor$4,Sw=setToStringTag$3,Bw=yf,returnThis$1=function(){return this},Ew=_export,jw=gd,Lw=isCallable$m,Pw=hw,Tw=kg,Fw=setToStringTag$3,Uw=wp,Nw=defineBuiltIn$7,Iw=yf,Mw=jp.PROPER,Rw=jp.CONFIGURABLE,Ow=ww.IteratorPrototype,Qw=ww.BUGGY_SAFARI_ITERATORS,qw=wellKnownSymbol$i("iterator"),returnThis=function(){return this},Vw=toIndexedObject$5,addToUnscopables=function(en){nw[tw][en]=!0},Gw=yf,Dw=sh,Hw=sp.f,zw=dd,Kw=Dw.set,$w=Dw.getterFor("Array Iterator"),Ww=function(en,tn,nn,rn,an,sn,cn){!function(en,tn,nn,rn){var an=tn+" Iterator";en.prototype=kw(xw,{next:Cw(+!rn,nn)}),Sw(en,an,!1),Bw[an]=returnThis$1}(nn,tn,rn);var An,dn,un,getIterationMethod=function(en){if(en===an&&mn)return mn;if(!Qw&&en in gn)return gn[en];switch(en){case"keys":return function keys(){return new nn(this,en)};case"values":return function values(){return new nn(this,en)};case"entries":return function entries(){return new nn(this,en)}}return function(){return new nn(this)}},pn=tn+" Iterator",hn=!1,gn=en.prototype,_n=gn[qw]||gn["@@iterator"]||an&&gn[an],mn=!Qw&&_n||getIterationMethod(an),fn="Array"==tn&&gn.entries||_n;if(fn&&(An=Pw(fn.call(new en)))!==Object.prototype&&An.next&&(Pw(An)!==Ow&&(Tw?Tw(An,Ow):Lw(An[qw])||Nw(An,qw,returnThis)),Fw(An,pn,!0)),Mw&&"values"==an&&_n&&"values"!==_n.name&&(Rw?Uw(gn,"name","values"):(hn=!0,mn=function values(){return jw(_n,this)})),an)if(dn={values:getIterationMethod("values"),keys:sn?mn:getIterationMethod("keys"),entries:getIterationMethod("entries")},cn)for(un in dn)(Qw||hn||!(un in gn))&&Nw(gn,un,dn[un]);else Ew({target:tn,proto:!0,forced:Qw||hn},dn);return gn[qw]!==mn&&Nw(gn,qw,mn,{name:an}),Iw[tn]=mn,dn}(Array,"Array",(function(en,tn){Kw(this,{type:"Array Iterator",target:Vw(en),index:0,kind:tn})}),(function(){var en=$w(this),tn=en.target,nn=en.kind,rn=en.index++;return!tn||rn>=tn.length?(en.target=void 0,{value:void 0,done:!0}):"keys"==nn?{value:rn,done:!1}:"values"==nn?{value:tn[rn],done:!1}:{value:[rn,tn[rn]],done:!1}}),"values"),Xw=Gw.Arguments=Gw.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),zw&&"values"!==Xw.name)try{Hw(Xw,"name",{value:"values"})}catch(ma){}var Yw=documentCreateElement$2("span").classList,Zw=Yw&&Yw.constructor&&Yw.constructor.prototype,Jw=Zw===Object.prototype?void 0:Zw,ex=cd,tx={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},nx=Jw,rx=Ww,ox=wp,ix=wellKnownSymbol$i,ax=ix("iterator"),sx=ix("toStringTag"),lx=rx.values,handlePrototype=function(en,tn){if(en){if(en[ax]!==lx)try{ox(en,ax,lx)}catch(tn){en[ax]=lx}if(en[sx]||ox(en,sx,tn),tx[tn])for(var nn in rx)if(en[nn]!==rx[nn])try{ox(en,nn,rx[nn])}catch(tn){en[nn]=rx[nn]}}};for(var cx in tx)handlePrototype(ex[cx]&&ex[cx].prototype,cx);function _defineProperty(en,tn,nn){return tn in en?Object.defineProperty(en,tn,{value:nn,enumerable:!0,configurable:!0,writable:!0}):en[tn]=nn,en}handlePrototype(nx,"DOMTokenList");var Ax=aCallable$8,dx=toObject$4,ux=Nd,px=lengthOfArrayLike$4,hx=TypeError,createMethod$1=function(en){return function(tn,nn,rn,an){Ax(nn);var sn=dx(tn),cn=ux(sn),An=px(sn),dn=en?An-1:0,un=en?-1:1;if(rn<2)for(;;){if(dn in cn){an=cn[dn],dn+=un;break}if(dn+=un,en?dn<0:An<=dn)throw hx("Reduce of empty array with no initial value")}for(;en?dn>=0:An>dn;dn+=un)dn in cn&&(an=nn(an,cn[dn],dn,sn));return an}},gx={left:createMethod$1(!1),right:createMethod$1(!0)},_x=fails$l,arrayMethodIsStrict$2=function(en,tn){var nn=[][en];return!!nn&&_x((function(){nn.call(null,tn||function(){return 1},1)}))},mx=gx.left,fx=Xd,yx=fg;_export({target:"Array",proto:!0,forced:!arrayMethodIsStrict$2("reduce")||!yx&&fx>79&&fx<83},{reduce:function reduce(en){var tn=arguments.length;return mx(this,en,tn,tn>1?arguments[1]:void 0)}});var bx=_export,vx=Bd,wx=Ad.f,xx=toLength$6,kx=toString$9,Cx=notARegexp,Sx=requireObjectCoercible$a,Bx=correctIsRegexpLogic,Ex=vx("".endsWith),jx=vx("".slice),Lx=Math.min,Px=Bx("endsWith"),Tx=!Px&&!!function(){var en=wx(String.prototype,"endsWith");return en&&!en.writable}();bx({target:"String",proto:!0,forced:!Tx&&!Px},{endsWith:function endsWith(en){var tn=kx(Sx(this));Cx(en);var nn=arguments.length>1?arguments[1]:void 0,rn=tn.length,an=void 0===nn?rn:Lx(xx(nn),rn),sn=kx(en);return Ex?Ex(tn,sn,an):jx(tn,an-sn.length,an)===sn}});var Fx=toPropertyKey$3,Ux=sp,Nx=createPropertyDescriptor$4,Ix=toAbsoluteIndex$2,Mx=lengthOfArrayLike$4,createProperty=function(en,tn,nn){var rn=Fx(tn);rn in en?Ux.f(en,rn,Nx(0,nn)):en[rn]=nn},Rx=Array,Ox=Math.max,Qx=h_,qx=gd,Vx=Bd,Gx=fixRegexpWellKnownSymbolLogic,Dx=isRegexp,Hx=anObject$g,zx=requireObjectCoercible$a,Kx=speciesConstructor$2,$x=advanceStringIndex$3,Wx=toLength$6,Xx=toString$9,Yx=getMethod$6,arraySlice=function(en,tn,nn){for(var rn=Mx(en),an=Ix(tn,rn),sn=Ix(void 0===nn?rn:nn,rn),cn=Rx(Ox(sn-an,0)),An=0;an<sn;an++,An++)createProperty(cn,An,en[an]);return cn.length=An,cn},Zx=regexpExecAbstract,Jx=kb,ek=fails$l,tk=Ly.UNSUPPORTED_Y,nk=Math.min,rk=[].push,ok=Vx(/./.exec),ik=Vx(rk),ak=Vx("".slice),sk=!ek((function(){var en=/(?:)/,tn=en.exec;en.exec=function(){return tn.apply(this,arguments)};var nn="ab".split(en);return 2!==nn.length||"a"!==nn[0]||"b"!==nn[1]}));Gx("split",(function(en,tn,nn){var rn;return rn="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(en,nn){var rn=Xx(zx(this)),an=void 0===nn?4294967295:nn>>>0;if(0===an)return[];if(void 0===en)return[rn];if(!Dx(en))return qx(tn,rn,en,an);for(var sn,cn,An,dn=[],un=(en.ignoreCase?"i":"")+(en.multiline?"m":"")+(en.unicode?"u":"")+(en.sticky?"y":""),pn=0,hn=new RegExp(en.source,un+"g");(sn=qx(Jx,hn,rn))&&!((cn=hn.lastIndex)>pn&&(ik(dn,ak(rn,pn,sn.index)),sn.length>1&&sn.index<rn.length&&Qx(rk,dn,arraySlice(sn,1)),An=sn[0].length,pn=cn,dn.length>=an));)hn.lastIndex===sn.index&&hn.lastIndex++;return pn===rn.length?!An&&ok(hn,"")||ik(dn,""):ik(dn,ak(rn,pn)),dn.length>an?arraySlice(dn,0,an):dn}:"0".split(void 0,0).length?function(en,nn){return void 0===en&&0===nn?[]:qx(tn,this,en,nn)}:tn,[function split(tn,nn){var an=zx(this),sn=null==tn?void 0:Yx(tn,en);return sn?qx(sn,tn,an,nn):qx(rn,Xx(an),tn,nn)},function(en,an){var sn=Hx(this),cn=Xx(en),An=nn(rn,sn,cn,an,rn!==tn);if(An.done)return An.value;var dn=Kx(sn,RegExp),un=sn.unicode,pn=(sn.ignoreCase?"i":"")+(sn.multiline?"m":"")+(sn.unicode?"u":"")+(tk?"g":"y"),hn=new dn(tk?"^(?:"+sn.source+")":sn,pn),gn=void 0===an?4294967295:an>>>0;if(0===gn)return[];if(0===cn.length)return null===Zx(hn,cn)?[cn]:[];for(var _n=0,mn=0,fn=[];mn<cn.length;){hn.lastIndex=tk?0:mn;var yn,bn=Zx(hn,tk?ak(cn,mn):cn);if(null===bn||(yn=nk(Wx(hn.lastIndex+(tk?mn:0)),cn.length))===_n)mn=$x(cn,mn,un);else{if(ik(fn,ak(cn,_n,mn)),fn.length===gn)return fn;for(var vn=1;vn<=bn.length-1;vn++)if(ik(fn,bn[vn]),fn.length===gn)return fn;mn=_n=yn}}return ik(fn,ak(cn,_n)),fn}]}),!sk,tk);var lk={exports:{}},ck={exports:{}};(function(){var en,tn,nn,rn,an,sn;"undefined"!=typeof performance&&null!==performance&&performance.now?ck.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(ck.exports=function(){return(en()-an)/1e6},tn=process.hrtime,rn=(en=function(){var en;return 1e9*(en=tn())[0]+en[1]})(),sn=1e9*process.uptime(),an=rn-sn):Date.now?(ck.exports=function(){return Date.now()-nn},nn=Date.now()):(ck.exports=function(){return(new Date).getTime()-nn},nn=(new Date).getTime())}).call(Sc);for(var Ak=ck.exports,dk="undefined"==typeof window?Sc:window,uk=["moz","webkit"],pk="AnimationFrame",hk=dk["request"+pk],gk=dk["cancel"+pk]||dk["cancelRequest"+pk],_k=0;!hk&&_k<uk.length;_k++)hk=dk[uk[_k]+"Request"+pk],gk=dk[uk[_k]+"Cancel"+pk]||dk[uk[_k]+"CancelRequest"+pk];if(!hk||!gk){var mk=0,fk=0,yk=[];hk=function(en){if(0===yk.length){var tn=Ak(),nn=Math.max(0,16.666666666666668-(tn-mk));mk=nn+tn,setTimeout((function(){var en=yk.slice(0);yk.length=0;for(var tn=0;tn<en.length;tn++)if(!en[tn].cancelled)try{en[tn].callback(mk)}catch(en){setTimeout((function(){throw en}),0)}}),Math.round(nn))}return yk.push({handle:++fk,callback:en,cancelled:!1}),fk},gk=function(en){for(var tn=0;tn<yk.length;tn++)yk[tn].handle===en&&(yk[tn].cancelled=!0)}}lk.exports=function(en){return hk.call(dk,en)},lk.exports.cancel=function(){gk.apply(dk,arguments)},lk.exports.polyfill=function(en){en||(en=dk),en.requestAnimationFrame=hk,en.cancelAnimationFrame=gk};var bk=lk.exports,vk=requireObjectCoercible$a,wk=toString$9,xk=Bd("".replace),kk="[\t\n\v\f\r    \u2028\u2029\ufeff]",Ck=RegExp("^"+kk+kk+"*"),Sk=RegExp(kk+kk+"*$"),createMethod=function(en){return function(tn){var nn=wk(vk(tn));return 1&en&&(nn=xk(nn,Ck,"")),2&en&&(nn=xk(nn,Sk,"")),nn}},Bk={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},Ek=jp.PROPER,jk=fails$l,Lk="\t\n\v\f\r    \u2028\u2029\ufeff",Pk=Bk.trim;_export({target:"String",proto:!0,forced:function(en){return jk((function(){return!!Lk[en]()||"…"!=="…"[en]()||Ek&&Lk[en].name!==en}))}("trim")},{trim:function trim(){return Pk(this)}});var rgbcolor=function(en){this.ok=!1,this.alpha=1,"#"==en.charAt(0)&&(en=en.substr(1,6)),en=(en=en.replace(/ /g,"")).toLowerCase();var tn={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};en=tn[en]||en;for(var nn=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(en){return[parseInt(en[1]),parseInt(en[2]),parseInt(en[3]),parseFloat(en[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(en){return[parseInt(en[1]),parseInt(en[2]),parseInt(en[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(en){return[parseInt(en[1],16),parseInt(en[2],16),parseInt(en[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(en){return[parseInt(en[1]+en[1],16),parseInt(en[2]+en[2],16),parseInt(en[3]+en[3],16)]}}],rn=0;rn<nn.length;rn++){var an=nn[rn].re,sn=nn[rn].process,cn=an.exec(en);if(cn){var An=sn(cn);this.r=An[0],this.g=An[1],this.b=An[2],An.length>3&&(this.alpha=An[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 en=this.r.toString(16),tn=this.g.toString(16),nn=this.b.toString(16);return 1==en.length&&(en="0"+en),1==tn.length&&(tn="0"+tn),1==nn.length&&(nn="0"+nn),"#"+en+tn+nn},this.getHelpXML=function(){for(var en=new Array,rn=0;rn<nn.length;rn++)for(var an=nn[rn].example,sn=0;sn<an.length;sn++)en[en.length]=an[sn];for(var cn in tn)en[en.length]=cn;var An=document.createElement("ul");for(An.setAttribute("id","rgbcolor-examples"),rn=0;rn<en.length;rn++)try{var dn=document.createElement("li"),un=new RGBColor(en[rn]),pn=document.createElement("div");pn.style.cssText="margin: 3px; border: 1px solid black; background:"+un.toHex()+"; color:"+un.toHex(),pn.appendChild(document.createTextNode("test"));var hn=document.createTextNode(" "+en[rn]+" -> "+un.toRGB()+" -> "+un.toHex());dn.appendChild(pn),dn.appendChild(hn),An.appendChild(dn)}catch(en){}return An}},Tk=_export,Fk=Rh.indexOf,Uk=arrayMethodIsStrict$2,Nk=Bd([].indexOf),Ik=!!Nk&&1/Nk([1],1,-0)<0,Mk=Uk("indexOf");Tk({target:"Array",proto:!0,forced:Ik||!Mk},{indexOf:function indexOf(en){var tn=arguments.length>1?arguments[1]:void 0;return Ik?Nk(this,en,tn)||0:Fk(this,en,tn)}});var Rk=_export,Ok=notARegexp,Qk=requireObjectCoercible$a,qk=toString$9,Vk=correctIsRegexpLogic,Gk=Bd("".indexOf);Rk({target:"String",proto:!0,forced:!Vk("includes")},{includes:function includes(en){return!!~Gk(qk(Qk(this)),qk(Ok(en)),arguments.length>1?arguments[1]:void 0)}});var Dk=classofRaw$1,Hk=_export,zk=Array.isArray||function isArray(en){return"Array"==Dk(en)},Kk=Bd([].reverse),$k=[1,2];Hk({target:"Array",proto:!0,forced:String($k)===String($k.reverse())},{reverse:function reverse(){return zk(this)&&(this.length=this.length),Kk(this)}});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var t=function(en,tn){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(en,tn){en.__proto__=tn}||function(en,tn){for(var nn in tn)Object.prototype.hasOwnProperty.call(tn,nn)&&(en[nn]=tn[nn])})(en,tn)};function r(en,tn){if("function"!=typeof tn&&null!==tn)throw new TypeError("Class extends value "+String(tn)+" is not a constructor or null");function i(){this.constructor=en}t(en,tn),en.prototype=null===tn?Object.create(tn):(i.prototype=tn.prototype,new i)}function i(en,tn){var nn=en[0],rn=en[1];return[nn*Math.cos(tn)-rn*Math.sin(tn),nn*Math.sin(tn)+rn*Math.cos(tn)]}function a(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];for(var nn=0;nn<en.length;nn++)if("number"!=typeof en[nn])throw new Error("assertNumbers arguments["+nn+"] is not a number. "+typeof en[nn]+" == typeof "+en[nn]);return!0}var Wk=Math.PI;function o(en,tn,nn){en.lArcFlag=0===en.lArcFlag?0:1,en.sweepFlag=0===en.sweepFlag?0:1;var rn=en.rX,an=en.rY,sn=en.x,cn=en.y;rn=Math.abs(en.rX),an=Math.abs(en.rY);var An=i([(tn-sn)/2,(nn-cn)/2],-en.xRot/180*Wk),dn=An[0],un=An[1],pn=Math.pow(dn,2)/Math.pow(rn,2)+Math.pow(un,2)/Math.pow(an,2);1<pn&&(rn*=Math.sqrt(pn),an*=Math.sqrt(pn)),en.rX=rn,en.rY=an;var hn=Math.pow(rn,2)*Math.pow(un,2)+Math.pow(an,2)*Math.pow(dn,2),gn=(en.lArcFlag!==en.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(rn,2)*Math.pow(an,2)-hn)/hn)),_n=rn*un/an*gn,mn=-an*dn/rn*gn,fn=i([_n,mn],en.xRot/180*Wk);en.cX=fn[0]+(tn+sn)/2,en.cY=fn[1]+(nn+cn)/2,en.phi1=Math.atan2((un-mn)/an,(dn-_n)/rn),en.phi2=Math.atan2((-un-mn)/an,(-dn-_n)/rn),0===en.sweepFlag&&en.phi2>en.phi1&&(en.phi2-=2*Wk),1===en.sweepFlag&&en.phi2<en.phi1&&(en.phi2+=2*Wk),en.phi1*=180/Wk,en.phi2*=180/Wk}function s(en,tn,nn){a(en,tn,nn);var rn=en*en+tn*tn-nn*nn;if(0>rn)return[];if(0===rn)return[[en*nn/(en*en+tn*tn),tn*nn/(en*en+tn*tn)]];var an=Math.sqrt(rn);return[[(en*nn+tn*an)/(en*en+tn*tn),(tn*nn-en*an)/(en*en+tn*tn)],[(en*nn-tn*an)/(en*en+tn*tn),(tn*nn+en*an)/(en*en+tn*tn)]]}var Xk,Yk=Math.PI/180;function c$1(en,tn,nn){return(1-nn)*en+nn*tn}function y(en,tn,nn,rn){return en+Math.cos(rn/180*Wk)*tn+Math.sin(rn/180*Wk)*nn}function p(en,tn,nn,rn){var an=1e-6,sn=tn-en,cn=nn-tn,An=3*sn+3*(rn-nn)-6*cn,dn=6*(cn-sn),un=3*sn;return Math.abs(An)<an?[-un/dn]:function(en,tn,nn){void 0===nn&&(nn=1e-6);var rn=en*en/4-tn;if(rn<-nn)return[];if(rn<=nn)return[-en/2];var an=Math.sqrt(rn);return[-en/2-an,-en/2+an]}(dn/An,un/An,an)}function m$1(en,tn,nn,rn,an){var sn=1-an;return en*(sn*sn*sn)+tn*(3*sn*sn*an)+nn*(3*sn*an*an)+rn*(an*an*an)}!function(en){function r(){return u((function(en,tn,nn){return en.relative&&(void 0!==en.x1&&(en.x1+=tn),void 0!==en.y1&&(en.y1+=nn),void 0!==en.x2&&(en.x2+=tn),void 0!==en.y2&&(en.y2+=nn),void 0!==en.x&&(en.x+=tn),void 0!==en.y&&(en.y+=nn),en.relative=!1),en}))}function e(){var en=NaN,tn=NaN,nn=NaN,rn=NaN;return u((function(an,sn,cn){return an.type&tC.SMOOTH_CURVE_TO&&(an.type=tC.CURVE_TO,en=isNaN(en)?sn:en,tn=isNaN(tn)?cn:tn,an.x1=an.relative?sn-en:2*sn-en,an.y1=an.relative?cn-tn:2*cn-tn),an.type&tC.CURVE_TO?(en=an.relative?sn+an.x2:an.x2,tn=an.relative?cn+an.y2:an.y2):(en=NaN,tn=NaN),an.type&tC.SMOOTH_QUAD_TO&&(an.type=tC.QUAD_TO,nn=isNaN(nn)?sn:nn,rn=isNaN(rn)?cn:rn,an.x1=an.relative?sn-nn:2*sn-nn,an.y1=an.relative?cn-rn:2*cn-rn),an.type&tC.QUAD_TO?(nn=an.relative?sn+an.x1:an.x1,rn=an.relative?cn+an.y1:an.y1):(nn=NaN,rn=NaN),an}))}function n(){var en=NaN,tn=NaN;return u((function(nn,rn,an){if(nn.type&tC.SMOOTH_QUAD_TO&&(nn.type=tC.QUAD_TO,en=isNaN(en)?rn:en,tn=isNaN(tn)?an:tn,nn.x1=nn.relative?rn-en:2*rn-en,nn.y1=nn.relative?an-tn:2*an-tn),nn.type&tC.QUAD_TO){en=nn.relative?rn+nn.x1:nn.x1,tn=nn.relative?an+nn.y1:nn.y1;var sn=nn.x1,cn=nn.y1;nn.type=tC.CURVE_TO,nn.x1=((nn.relative?0:rn)+2*sn)/3,nn.y1=((nn.relative?0:an)+2*cn)/3,nn.x2=(nn.x+2*sn)/3,nn.y2=(nn.y+2*cn)/3}else en=NaN,tn=NaN;return nn}))}function u(en){var tn=0,nn=0,rn=NaN,an=NaN;return function(sn){if(isNaN(rn)&&!(sn.type&tC.MOVE_TO))throw new Error("path must start with moveto");var cn=en(sn,tn,nn,rn,an);return sn.type&tC.CLOSE_PATH&&(tn=rn,nn=an),void 0!==sn.x&&(tn=sn.relative?tn+sn.x:sn.x),void 0!==sn.y&&(nn=sn.relative?nn+sn.y:sn.y),sn.type&tC.MOVE_TO&&(rn=tn,an=nn),cn}}function O(en,tn,nn,rn,an,sn){return a(en,tn,nn,rn,an,sn),u((function(cn,An,dn,un){var pn=cn.x1,hn=cn.x2,gn=cn.relative&&!isNaN(un),_n=void 0!==cn.x?cn.x:gn?0:An,mn=void 0!==cn.y?cn.y:gn?0:dn;function l(en){return en*en}cn.type&tC.HORIZ_LINE_TO&&0!==tn&&(cn.type=tC.LINE_TO,cn.y=cn.relative?0:dn),cn.type&tC.VERT_LINE_TO&&0!==nn&&(cn.type=tC.LINE_TO,cn.x=cn.relative?0:An),void 0!==cn.x&&(cn.x=cn.x*en+mn*nn+(gn?0:an)),void 0!==cn.y&&(cn.y=_n*tn+cn.y*rn+(gn?0:sn)),void 0!==cn.x1&&(cn.x1=cn.x1*en+cn.y1*nn+(gn?0:an)),void 0!==cn.y1&&(cn.y1=pn*tn+cn.y1*rn+(gn?0:sn)),void 0!==cn.x2&&(cn.x2=cn.x2*en+cn.y2*nn+(gn?0:an)),void 0!==cn.y2&&(cn.y2=hn*tn+cn.y2*rn+(gn?0:sn));var fn=en*rn-tn*nn;if(void 0!==cn.xRot&&(1!==en||0!==tn||0!==nn||1!==rn))if(0===fn)delete cn.rX,delete cn.rY,delete cn.xRot,delete cn.lArcFlag,delete cn.sweepFlag,cn.type=tC.LINE_TO;else{var yn=cn.xRot*Math.PI/180,bn=Math.sin(yn),vn=Math.cos(yn),wn=1/l(cn.rX),xn=1/l(cn.rY),kn=l(vn)*wn+l(bn)*xn,Cn=2*bn*vn*(wn-xn),Sn=l(bn)*wn+l(vn)*xn,Bn=kn*rn*rn-Cn*tn*rn+Sn*tn*tn,En=Cn*(en*rn+tn*nn)-2*(kn*nn*rn+Sn*en*tn),jn=kn*nn*nn-Cn*en*nn+Sn*en*en,Ln=(Math.atan2(En,Bn-jn)+Math.PI)%Math.PI/2,Pn=Math.sin(Ln),Tn=Math.cos(Ln);cn.rX=Math.abs(fn)/Math.sqrt(Bn*l(Tn)+En*Pn*Tn+jn*l(Pn)),cn.rY=Math.abs(fn)/Math.sqrt(Bn*l(Pn)-En*Pn*Tn+jn*l(Tn)),cn.xRot=180*Ln/Math.PI}return void 0!==cn.sweepFlag&&0>fn&&(cn.sweepFlag=+!cn.sweepFlag),cn}))}en.ROUND=function(en){function r(tn){return Math.round(tn*en)/en}return void 0===en&&(en=1e13),a(en),function(en){return void 0!==en.x1&&(en.x1=r(en.x1)),void 0!==en.y1&&(en.y1=r(en.y1)),void 0!==en.x2&&(en.x2=r(en.x2)),void 0!==en.y2&&(en.y2=r(en.y2)),void 0!==en.x&&(en.x=r(en.x)),void 0!==en.y&&(en.y=r(en.y)),void 0!==en.rX&&(en.rX=r(en.rX)),void 0!==en.rY&&(en.rY=r(en.rY)),en}},en.TO_ABS=r,en.TO_REL=function(){return u((function(en,tn,nn){return en.relative||(void 0!==en.x1&&(en.x1-=tn),void 0!==en.y1&&(en.y1-=nn),void 0!==en.x2&&(en.x2-=tn),void 0!==en.y2&&(en.y2-=nn),void 0!==en.x&&(en.x-=tn),void 0!==en.y&&(en.y-=nn),en.relative=!0),en}))},en.NORMALIZE_HVZ=function(en,tn,nn){return void 0===en&&(en=!0),void 0===tn&&(tn=!0),void 0===nn&&(nn=!0),u((function(rn,an,sn,cn,An){if(isNaN(cn)&&!(rn.type&tC.MOVE_TO))throw new Error("path must start with moveto");return tn&&rn.type&tC.HORIZ_LINE_TO&&(rn.type=tC.LINE_TO,rn.y=rn.relative?0:sn),nn&&rn.type&tC.VERT_LINE_TO&&(rn.type=tC.LINE_TO,rn.x=rn.relative?0:an),en&&rn.type&tC.CLOSE_PATH&&(rn.type=tC.LINE_TO,rn.x=rn.relative?cn-an:cn,rn.y=rn.relative?An-sn:An),rn.type&tC.ARC&&(0===rn.rX||0===rn.rY)&&(rn.type=tC.LINE_TO,delete rn.rX,delete rn.rY,delete rn.xRot,delete rn.lArcFlag,delete rn.sweepFlag),rn}))},en.NORMALIZE_ST=e,en.QT_TO_C=n,en.INFO=u,en.SANITIZE=function(en){void 0===en&&(en=0),a(en);var tn=NaN,nn=NaN,rn=NaN,an=NaN;return u((function(sn,cn,An,dn,un){var pn=Math.abs,hn=!1,gn=0,_n=0;if(sn.type&tC.SMOOTH_CURVE_TO&&(gn=isNaN(tn)?0:cn-tn,_n=isNaN(nn)?0:An-nn),sn.type&(tC.CURVE_TO|tC.SMOOTH_CURVE_TO)?(tn=sn.relative?cn+sn.x2:sn.x2,nn=sn.relative?An+sn.y2:sn.y2):(tn=NaN,nn=NaN),sn.type&tC.SMOOTH_QUAD_TO?(rn=isNaN(rn)?cn:2*cn-rn,an=isNaN(an)?An:2*An-an):sn.type&tC.QUAD_TO?(rn=sn.relative?cn+sn.x1:sn.x1,an=sn.relative?An+sn.y1:sn.y2):(rn=NaN,an=NaN),sn.type&tC.LINE_COMMANDS||sn.type&tC.ARC&&(0===sn.rX||0===sn.rY||!sn.lArcFlag)||sn.type&tC.CURVE_TO||sn.type&tC.SMOOTH_CURVE_TO||sn.type&tC.QUAD_TO||sn.type&tC.SMOOTH_QUAD_TO){var mn=void 0===sn.x?0:sn.relative?sn.x:sn.x-cn,fn=void 0===sn.y?0:sn.relative?sn.y:sn.y-An;gn=isNaN(rn)?void 0===sn.x1?gn:sn.relative?sn.x:sn.x1-cn:rn-cn,_n=isNaN(an)?void 0===sn.y1?_n:sn.relative?sn.y:sn.y1-An:an-An;var yn=void 0===sn.x2?0:sn.relative?sn.x:sn.x2-cn,bn=void 0===sn.y2?0:sn.relative?sn.y:sn.y2-An;pn(mn)<=en&&pn(fn)<=en&&pn(gn)<=en&&pn(_n)<=en&&pn(yn)<=en&&pn(bn)<=en&&(hn=!0)}return sn.type&tC.CLOSE_PATH&&pn(cn-dn)<=en&&pn(An-un)<=en&&(hn=!0),hn?[]:sn}))},en.MATRIX=O,en.ROTATE=function(en,tn,nn){void 0===tn&&(tn=0),void 0===nn&&(nn=0),a(en,tn,nn);var rn=Math.sin(en),an=Math.cos(en);return O(an,rn,-rn,an,tn-tn*an+nn*rn,nn-tn*rn-nn*an)},en.TRANSLATE=function(en,tn){return void 0===tn&&(tn=0),a(en,tn),O(1,0,0,1,en,tn)},en.SCALE=function(en,tn){return void 0===tn&&(tn=en),a(en,tn),O(en,0,0,tn,0,0)},en.SKEW_X=function(en){return a(en),O(1,0,Math.atan(en),1,0,0)},en.SKEW_Y=function(en){return a(en),O(1,Math.atan(en),0,1,0,0)},en.X_AXIS_SYMMETRY=function(en){return void 0===en&&(en=0),a(en),O(-1,0,0,1,en,0)},en.Y_AXIS_SYMMETRY=function(en){return void 0===en&&(en=0),a(en),O(1,0,0,-1,0,en)},en.A_TO_C=function(){return u((function(en,tn,nn){return tC.ARC===en.type?function(en,tn,nn){var rn,an,sn,cn;en.cX||o(en,tn,nn);for(var An=Math.min(en.phi1,en.phi2),dn=Math.max(en.phi1,en.phi2)-An,un=Math.ceil(dn/90),pn=new Array(un),hn=tn,gn=nn,_n=0;_n<un;_n++){var mn=c$1(en.phi1,en.phi2,_n/un),fn=c$1(en.phi1,en.phi2,(_n+1)/un),yn=fn-mn,bn=4/3*Math.tan(yn*Yk/4),vn=[Math.cos(mn*Yk)-bn*Math.sin(mn*Yk),Math.sin(mn*Yk)+bn*Math.cos(mn*Yk)],wn=vn[0],xn=vn[1],kn=[Math.cos(fn*Yk),Math.sin(fn*Yk)],Cn=kn[0],Sn=kn[1],Bn=[Cn+bn*Math.sin(fn*Yk),Sn-bn*Math.cos(fn*Yk)],En=Bn[0],jn=Bn[1];pn[_n]={relative:en.relative,type:tC.CURVE_TO};var H=function(tn,nn){var rn=i([tn*en.rX,nn*en.rY],en.xRot),an=rn[0],sn=rn[1];return[en.cX+an,en.cY+sn]};rn=H(wn,xn),pn[_n].x1=rn[0],pn[_n].y1=rn[1],an=H(En,jn),pn[_n].x2=an[0],pn[_n].y2=an[1],sn=H(Cn,Sn),pn[_n].x=sn[0],pn[_n].y=sn[1],en.relative&&(pn[_n].x1-=hn,pn[_n].y1-=gn,pn[_n].x2-=hn,pn[_n].y2-=gn,pn[_n].x-=hn,pn[_n].y-=gn),hn=(cn=[pn[_n].x,pn[_n].y])[0],gn=cn[1]}return pn}(en,en.relative?0:tn,en.relative?0:nn):en}))},en.ANNOTATE_ARCS=function(){return u((function(en,tn,nn){return en.relative&&(tn=0,nn=0),tC.ARC===en.type&&o(en,tn,nn),en}))},en.CLONE=function l(){return function(en){var tn={};for(var nn in en)tn[nn]=en[nn];return tn}},en.CALCULATE_BOUNDS=function(){var en=r(),tn=n(),nn=e(),rn=u((function(an,sn,cn){var An=nn(tn(en(function(en){var tn={};for(var nn in en)tn[nn]=en[nn];return tn}(an))));function O(en){en>rn.maxX&&(rn.maxX=en),en<rn.minX&&(rn.minX=en)}function l(en){en>rn.maxY&&(rn.maxY=en),en<rn.minY&&(rn.minY=en)}if(An.type&tC.DRAWING_COMMANDS&&(O(sn),l(cn)),An.type&tC.HORIZ_LINE_TO&&O(An.x),An.type&tC.VERT_LINE_TO&&l(An.y),An.type&tC.LINE_TO&&(O(An.x),l(An.y)),An.type&tC.CURVE_TO){O(An.x),l(An.y);for(var dn=0,un=p(sn,An.x1,An.x2,An.x);dn<un.length;dn++)0<(Bn=un[dn])&&1>Bn&&O(m$1(sn,An.x1,An.x2,An.x,Bn));for(var pn=0,hn=p(cn,An.y1,An.y2,An.y);pn<hn.length;pn++)0<(Bn=hn[pn])&&1>Bn&&l(m$1(cn,An.y1,An.y2,An.y,Bn))}if(An.type&tC.ARC){O(An.x),l(An.y),o(An,sn,cn);for(var gn=An.xRot/180*Math.PI,_n=Math.cos(gn)*An.rX,mn=Math.sin(gn)*An.rX,fn=-Math.sin(gn)*An.rY,yn=Math.cos(gn)*An.rY,bn=An.phi1<An.phi2?[An.phi1,An.phi2]:-180>An.phi2?[An.phi2+360,An.phi1+360]:[An.phi2,An.phi1],vn=bn[0],wn=bn[1],I=function(en){var tn=en[0],nn=en[1],rn=180*Math.atan2(nn,tn)/Math.PI;return rn<vn?rn+360:rn},xn=0,kn=s(fn,-_n,0).map(I);xn<kn.length;xn++)(Bn=kn[xn])>vn&&Bn<wn&&O(y(An.cX,_n,fn,Bn));for(var Cn=0,Sn=s(yn,-mn,0).map(I);Cn<Sn.length;Cn++){var Bn;(Bn=Sn[Cn])>vn&&Bn<wn&&l(y(An.cY,mn,yn,Bn))}}return an}));return rn.minX=1/0,rn.maxX=-1/0,rn.minY=1/0,rn.maxY=-1/0,rn}}(Xk||(Xk={}));var Zk,Jk=function(){function t(){}return t.prototype.round=function(en){return this.transform(Xk.ROUND(en))},t.prototype.toAbs=function(){return this.transform(Xk.TO_ABS())},t.prototype.toRel=function(){return this.transform(Xk.TO_REL())},t.prototype.normalizeHVZ=function(en,tn,nn){return this.transform(Xk.NORMALIZE_HVZ(en,tn,nn))},t.prototype.normalizeST=function(){return this.transform(Xk.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Xk.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Xk.A_TO_C())},t.prototype.sanitize=function(en){return this.transform(Xk.SANITIZE(en))},t.prototype.translate=function(en,tn){return this.transform(Xk.TRANSLATE(en,tn))},t.prototype.scale=function(en,tn){return this.transform(Xk.SCALE(en,tn))},t.prototype.rotate=function(en,tn,nn){return this.transform(Xk.ROTATE(en,tn,nn))},t.prototype.matrix=function(en,tn,nn,rn,an,sn){return this.transform(Xk.MATRIX(en,tn,nn,rn,an,sn))},t.prototype.skewX=function(en){return this.transform(Xk.SKEW_X(en))},t.prototype.skewY=function(en){return this.transform(Xk.SKEW_Y(en))},t.prototype.xSymmetry=function(en){return this.transform(Xk.X_AXIS_SYMMETRY(en))},t.prototype.ySymmetry=function(en){return this.transform(Xk.Y_AXIS_SYMMETRY(en))},t.prototype.annotateArcs=function(){return this.transform(Xk.ANNOTATE_ARCS())},t}(),T=function(en){return" "===en||"\t"===en||"\r"===en||"\n"===en},v=function(en){return"0".charCodeAt(0)<=en.charCodeAt(0)&&en.charCodeAt(0)<="9".charCodeAt(0)},eC=function(en){function e(){var tn=en.call(this)||this;return tn.curNumber="",tn.curCommandType=-1,tn.curCommandRelative=!1,tn.canParseCommandOrComma=!0,tn.curNumberHasExp=!1,tn.curNumberHasExpDigits=!1,tn.curNumberHasDecimal=!1,tn.curArgs=[],tn}return r(e,en),e.prototype.finish=function(en){if(void 0===en&&(en=[]),this.parse(" ",en),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return en},e.prototype.parse=function(en,tn){var nn=this;void 0===tn&&(tn=[]);for(var i=function(en){tn.push(en),nn.curArgs.length=0,nn.canParseCommandOrComma=!0},rn=0;rn<en.length;rn++){var an=en[rn],sn=!(this.curCommandType!==tC.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),cn=v(an)&&("0"===this.curNumber&&"0"===an||sn);if(!v(an)||cn)if("e"!==an&&"E"!==an)if("-"!==an&&"+"!==an||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==an||this.curNumberHasExp||this.curNumberHasDecimal||sn){if(this.curNumber&&-1!==this.curCommandType){var An=Number(this.curNumber);if(isNaN(An))throw new SyntaxError("Invalid number ending at "+rn);if(this.curCommandType===tC.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>An)throw new SyntaxError('Expected positive number, got "'+An+'" at index "'+rn+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+rn+'"');this.curArgs.push(An),this.curArgs.length===nC[this.curCommandType]&&(tC.HORIZ_LINE_TO===this.curCommandType?i({type:tC.HORIZ_LINE_TO,relative:this.curCommandRelative,x:An}):tC.VERT_LINE_TO===this.curCommandType?i({type:tC.VERT_LINE_TO,relative:this.curCommandRelative,y:An}):this.curCommandType===tC.MOVE_TO||this.curCommandType===tC.LINE_TO||this.curCommandType===tC.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),tC.MOVE_TO===this.curCommandType&&(this.curCommandType=tC.LINE_TO)):this.curCommandType===tC.CURVE_TO?i({type:tC.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===tC.SMOOTH_CURVE_TO?i({type:tC.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===tC.QUAD_TO?i({type:tC.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===tC.ARC&&i({type:tC.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!T(an))if(","===an&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==an&&"-"!==an&&"."!==an)if(cn)this.curNumber=an,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+rn+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+an+'" at index '+rn+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==an&&"Z"!==an)if("h"===an||"H"===an)this.curCommandType=tC.HORIZ_LINE_TO,this.curCommandRelative="h"===an;else if("v"===an||"V"===an)this.curCommandType=tC.VERT_LINE_TO,this.curCommandRelative="v"===an;else if("m"===an||"M"===an)this.curCommandType=tC.MOVE_TO,this.curCommandRelative="m"===an;else if("l"===an||"L"===an)this.curCommandType=tC.LINE_TO,this.curCommandRelative="l"===an;else if("c"===an||"C"===an)this.curCommandType=tC.CURVE_TO,this.curCommandRelative="c"===an;else if("s"===an||"S"===an)this.curCommandType=tC.SMOOTH_CURVE_TO,this.curCommandRelative="s"===an;else if("q"===an||"Q"===an)this.curCommandType=tC.QUAD_TO,this.curCommandRelative="q"===an;else if("t"===an||"T"===an)this.curCommandType=tC.SMOOTH_QUAD_TO,this.curCommandRelative="t"===an;else{if("a"!==an&&"A"!==an)throw new SyntaxError('Unexpected character "'+an+'" at index '+rn+".");this.curCommandType=tC.ARC,this.curCommandRelative="a"===an}else tn.push({type:tC.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=an,this.curNumberHasDecimal="."===an}else this.curNumber+=an,this.curNumberHasDecimal=!0;else this.curNumber+=an;else this.curNumber+=an,this.curNumberHasExp=!0;else this.curNumber+=an,this.curNumberHasExpDigits=this.curNumberHasExp}return tn},e.prototype.transform=function(en){return Object.create(this,{parse:{value:function(tn,nn){void 0===nn&&(nn=[]);for(var rn=0,an=Object.getPrototypeOf(this).parse.call(this,tn);rn<an.length;rn++){var sn=an[rn],cn=en(sn);Array.isArray(cn)?nn.push.apply(nn,cn):nn.push(cn)}return nn}}})},e}(Jk),tC=function(en){function i(tn){var nn=en.call(this)||this;return nn.commands="string"==typeof tn?i.parse(tn):tn,nn}return r(i,en),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var en=Xk.CALCULATE_BOUNDS();return this.transform(en),en},i.prototype.transform=function(en){for(var tn=[],nn=0,rn=this.commands;nn<rn.length;nn++){var an=en(rn[nn]);Array.isArray(an)?tn.push.apply(tn,an):tn.push(an)}return this.commands=tn,this},i.encode=function(en){return function e(en){var tn="";Array.isArray(en)||(en=[en]);for(var nn=0;nn<en.length;nn++){var rn=en[nn];if(rn.type===tC.CLOSE_PATH)tn+="z";else if(rn.type===tC.HORIZ_LINE_TO)tn+=(rn.relative?"h":"H")+rn.x;else if(rn.type===tC.VERT_LINE_TO)tn+=(rn.relative?"v":"V")+rn.y;else if(rn.type===tC.MOVE_TO)tn+=(rn.relative?"m":"M")+rn.x+" "+rn.y;else if(rn.type===tC.LINE_TO)tn+=(rn.relative?"l":"L")+rn.x+" "+rn.y;else if(rn.type===tC.CURVE_TO)tn+=(rn.relative?"c":"C")+rn.x1+" "+rn.y1+" "+rn.x2+" "+rn.y2+" "+rn.x+" "+rn.y;else if(rn.type===tC.SMOOTH_CURVE_TO)tn+=(rn.relative?"s":"S")+rn.x2+" "+rn.y2+" "+rn.x+" "+rn.y;else if(rn.type===tC.QUAD_TO)tn+=(rn.relative?"q":"Q")+rn.x1+" "+rn.y1+" "+rn.x+" "+rn.y;else if(rn.type===tC.SMOOTH_QUAD_TO)tn+=(rn.relative?"t":"T")+rn.x+" "+rn.y;else{if(rn.type!==tC.ARC)throw new Error('Unexpected command type "'+rn.type+'" at index '+nn+".");tn+=(rn.relative?"a":"A")+rn.rX+" "+rn.rY+" "+rn.xRot+" "+ +rn.lArcFlag+" "+ +rn.sweepFlag+" "+rn.x+" "+rn.y}}return tn}(en)},i.parse=function(en){var tn=new eC,nn=[];return tn.parse(en,nn),tn.finish(nn),nn},i.CLOSE_PATH=1,i.MOVE_TO=2,i.HORIZ_LINE_TO=4,i.VERT_LINE_TO=8,i.LINE_TO=16,i.CURVE_TO=32,i.SMOOTH_CURVE_TO=64,i.QUAD_TO=128,i.SMOOTH_QUAD_TO=256,i.ARC=512,i.LINE_COMMANDS=i.LINE_TO|i.HORIZ_LINE_TO|i.VERT_LINE_TO,i.DRAWING_COMMANDS=i.HORIZ_LINE_TO|i.VERT_LINE_TO|i.LINE_TO|i.CURVE_TO|i.SMOOTH_CURVE_TO|i.QUAD_TO|i.SMOOTH_QUAD_TO|i.ARC,i}(Jk),nC=((Zk={})[tC.MOVE_TO]=2,Zk[tC.LINE_TO]=2,Zk[tC.HORIZ_LINE_TO]=1,Zk[tC.VERT_LINE_TO]=1,Zk[tC.CLOSE_PATH]=0,Zk[tC.QUAD_TO]=4,Zk[tC.SMOOTH_QUAD_TO]=2,Zk[tC.CURVE_TO]=6,Zk[tC.SMOOTH_CURVE_TO]=4,Zk[tC.ARC]=7,Zk),rC=gd,oC=Cu,iC=Vd,aC=regexpFlags$1,sC=RegExp.prototype,lC=jp.PROPER,cC=defineBuiltIn$7,AC=anObject$g,dC=toString$9,uC=fails$l,pC=RegExp.prototype.toString,hC=uC((function(){return"/a/b"!=pC.call({source:"a",flags:"b"})})),gC=lC&&"toString"!=pC.name;function _typeof(en){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(en){return typeof en}:function(en){return en&&"function"==typeof Symbol&&en.constructor===Symbol&&en!==Symbol.prototype?"symbol":typeof en},_typeof(en)}(hC||gC)&&cC(RegExp.prototype,"toString",(function toString(){var en=AC(this);return"/"+dC(en.source)+"/"+dC(function(en){var tn=en.flags;return void 0!==tn||"flags"in sC||oC(en,"flags")||!iC(sC,en)?tn:rC(aC,en)}(en))}),{unsafe:!0});
/**
* StackBlur - a fast almost Gaussian Blur For Canvas
*
* In case you find this class useful - especially in commercial projects -
* I am not totally unhappy for a small donation to my PayPal account
* mario@quasimondo.de
*
* Or support me on flattr:
* {@link https://flattr.com/thing/72791/StackBlur-a-fast-almost-Gaussian-Blur-Effect-for-CanvasJavascript}.
*
* @module StackBlur
* @author Mario Klingemann
* Contact: mario@quasimondo.com
* Website: {@link http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html}
* Twitter: @quasimondo
*
* @copyright (c) 2010 Mario Klingemann
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
var _C=[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],mC=[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];var fC=function BlurStack(){!function _classCallCheck(en,tn){if(!(en instanceof tn))throw new TypeError("Cannot call a class as a function")}(this,BlurStack),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null},yC=Object.freeze({__proto__:null,offscreen:function offscreen(){var{DOMParser:en}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tn={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:en,createCanvas:(en,tn)=>new OffscreenCanvas(en,tn),createImage:en=>_asyncToGenerator((function*(){var tn=yield fetch(en),nn=yield tn.blob();return yield createImageBitmap(nn)}))()};return"undefined"==typeof DOMParser&&void 0!==en||Reflect.deleteProperty(tn,"DOMParser"),tn},node:function node(en){var{DOMParser:tn,canvas:nn,fetch:rn}=en;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:tn,fetch:rn,createCanvas:nn.createCanvas,createImage:nn.loadImage}}});function compressSpaces(en){return en.replace(/(?!\u3000)\s+/gm," ")}function trimLeft(en){return en.replace(/^[\n \t]+/,"")}function trimRight(en){return en.replace(/[\n \t]+$/,"")}function toNumbers(en){return((en||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var bC=/^[A-Z-]+$/;function normalizeAttributeName(en){return bC.test(en)?en.toLowerCase():en}function parseExternalUrl(en){var tn=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(en)||[];return tn[2]||tn[3]||tn[4]}function normalizeColor(en){if(!en.startsWith("rgb"))return en;var tn=3;return en.replace(/\d+(\.\d+)?/g,((en,nn)=>tn--&&nn?String(Math.round(parseFloat(en))):en))}var vC=/(\[[^\]]+\])/g,wC=/(#[^\s+>~.[:]+)/g,xC=/(\.[^\s+>~.[:]+)/g,kC=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,CC=/(:[\w-]+\([^)]*\))/gi,SC=/(:[^\s+>~.[:]+)/g,BC=/([^\s+>~.[:]+)/g;function findSelectorMatch(en,tn){var nn=tn.exec(en);return nn?[en.replace(tn," "),nn.length]:[en,0]}function getSelectorSpecificity(en){var tn=[0,0,0],nn=en.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),rn=0;return[nn,rn]=findSelectorMatch(nn,vC),tn[1]+=rn,[nn,rn]=findSelectorMatch(nn,wC),tn[0]+=rn,[nn,rn]=findSelectorMatch(nn,xC),tn[1]+=rn,[nn,rn]=findSelectorMatch(nn,kC),tn[2]+=rn,[nn,rn]=findSelectorMatch(nn,CC),tn[1]+=rn,[nn,rn]=findSelectorMatch(nn,SC),tn[1]+=rn,nn=nn.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[nn,rn]=findSelectorMatch(nn,BC),tn[2]+=rn,tn.join("")}function vectorMagnitude(en){return Math.sqrt(Math.pow(en[0],2)+Math.pow(en[1],2))}function vectorsRatio(en,tn){return(en[0]*tn[0]+en[1]*tn[1])/(vectorMagnitude(en)*vectorMagnitude(tn))}function vectorsAngle(en,tn){return(en[0]*tn[1]<en[1]*tn[0]?-1:1)*Math.acos(vectorsRatio(en,tn))}function CB1(en){return en*en*en}function CB2(en){return 3*en*en*(1-en)}function CB3(en){return 3*en*(1-en)*(1-en)}function CB4(en){return(1-en)*(1-en)*(1-en)}function QB1(en){return en*en}function QB2(en){return 2*en*(1-en)}function QB3(en){return(1-en)*(1-en)}class Property{constructor(en,tn,nn){this.document=en,this.name=tn,this.value=nn,this.isNormalizedColor=!1}static empty(en){return new Property(en,"EMPTY","")}split(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:tn,name:nn}=this;return compressSpaces(this.getString()).trim().split(en).map((en=>new Property(tn,nn,en)))}hasValue(en){var{value:tn}=this;return null!==tn&&""!==tn&&(en||0!==tn)&&void 0!==tn}isString(en){var{value:tn}=this,nn="string"==typeof tn;return nn&&en?en.test(tn):nn}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var en=this.getString();switch(!0){case en.endsWith("px"):case/^[0-9]+$/.test(en):return!0;default:return!1}}setValue(en){return this.value=en,this}getValue(en){return void 0===en||this.hasValue()?this.value:en}getNumber(en){if(!this.hasValue())return void 0===en?0:parseFloat(en);var{value:tn}=this,nn=parseFloat(tn);return this.isString(/%$/)&&(nn/=100),nn}getString(en){return void 0===en||this.hasValue()?void 0===this.value?"":String(this.value):String(en)}getColor(en){var tn=this.getString(en);return this.isNormalizedColor||(this.isNormalizedColor=!0,tn=normalizeColor(tn),this.value=tn),tn}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(en){var tn=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[nn,rn]="boolean"==typeof en?[void 0,en]:[en],{viewPort:an}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(an.computeSize("x"),an.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(an.computeSize("x"),an.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*an.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*an.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(/%$/)&&rn:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*an.computeSize(nn);default:var sn=this.getNumber();return tn&&sn<1?sn*an.computeSize(nn):sn}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}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)}}getDefinition(){var en=this.getString(),tn=/#([^)'"]+)/.exec(en);return tn&&(tn=tn[1]),tn||(tn=en),this.document.definitions[tn]}getFillStyleDefinition(en,tn){var nn=this.getDefinition();if(!nn)return null;if("function"==typeof nn.createGradient)return nn.createGradient(this.document.ctx,en,tn);if("function"==typeof nn.createPattern){if(nn.getHrefAttribute().hasValue()){var rn=nn.getAttribute("patternTransform");nn=nn.getHrefAttribute().getDefinition(),rn.hasValue()&&nn.getAttribute("patternTransform",!0).setValue(rn.value)}return nn.createPattern(this.document.ctx,en,tn)}return null}getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}addOpacity(en){for(var tn=this.getColor(),nn=tn.length,rn=0,an=0;an<nn&&(","===tn[an]&&rn++,3!==rn);an++);if(en.hasValue()&&this.isString()&&3!==rn){var sn=new rgbcolor(tn);sn.ok&&(sn.alpha=en.getNumber(),tn=sn.toRGBA())}return new Property(this.document,this.name,tn)}}Property.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class ViewPort{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(en,tn){this.viewPorts.push({width:en,height:tn})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:en}=this;return en[en.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(en){return"number"==typeof en?en:"x"===en?this.width:"y"===en?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Point{constructor(en,tn){this.x=en,this.y=tn}static parse(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[nn=tn,rn=tn]=toNumbers(en);return new Point(nn,rn)}static parseScale(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[nn=tn,rn=nn]=toNumbers(en);return new Point(nn,rn)}static parsePath(en){for(var tn=toNumbers(en),nn=tn.length,rn=[],an=0;an<nn;an+=2)rn.push(new Point(tn[an],tn[an+1]));return rn}angleTo(en){return Math.atan2(en.y-this.y,en.x-this.x)}applyTransform(en){var{x:tn,y:nn}=this,rn=tn*en[0]+nn*en[2]+en[4],an=tn*en[1]+nn*en[3]+en[5];this.x=rn,this.y=an}}class Mouse{constructor(en){this.screen=en,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:en,onClick:tn,onMouseMove:nn}=this,rn=en.ctx.canvas;rn.onclick=tn,rn.onmousemove=nn,this.working=!0}}stop(){if(this.working){var en=this.screen.ctx.canvas;this.working=!1,en.onclick=null,en.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:en,events:tn,eventElements:nn}=this,{style:rn}=en.ctx.canvas;rn&&(rn.cursor=""),tn.forEach(((en,tn)=>{for(var{run:rn}=en,an=nn[tn];an;)rn(an),an=an.parent})),this.events=[],this.eventElements=[]}}checkPath(en,tn){if(this.working&&tn){var{events:nn,eventElements:rn}=this;nn.forEach(((nn,an)=>{var{x:sn,y:cn}=nn;!rn[an]&&tn.isPointInPath&&tn.isPointInPath(sn,cn)&&(rn[an]=en)}))}}checkBoundingBox(en,tn){if(this.working&&tn){var{events:nn,eventElements:rn}=this;nn.forEach(((nn,an)=>{var{x:sn,y:cn}=nn;!rn[an]&&tn.isPointInBox(sn,cn)&&(rn[an]=en)}))}}mapXY(en,tn){for(var{window:nn,ctx:rn}=this.screen,an=new Point(en,tn),sn=rn.canvas;sn;)an.x-=sn.offsetLeft,an.y-=sn.offsetTop,sn=sn.offsetParent;return nn.scrollX&&(an.x+=nn.scrollX),nn.scrollY&&(an.y+=nn.scrollY),an}onClick(en){var{x:tn,y:nn}=this.mapXY(en.clientX,en.clientY);this.events.push({type:"onclick",x:tn,y:nn,run(en){en.onClick&&en.onClick()}})}onMouseMove(en){var{x:tn,y:nn}=this.mapXY(en.clientX,en.clientY);this.events.push({type:"onmousemove",x:tn,y:nn,run(en){en.onMouseMove&&en.onMouseMove()}})}}var EC="undefined"!=typeof window?window:null,jC="undefined"!=typeof fetch?fetch.bind(void 0):null;class Screen{constructor(en){var{fetch:tn=jC,window:nn=EC}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=en,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new ViewPort,this.mouse=new Mouse(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=nn,this.fetch=tn}wait(en){this.waits.push(en)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var en=this.waits.every((en=>en()));return en&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=en,en}setDefaults(en){en.strokeStyle="rgba(0,0,0,0)",en.lineCap="butt",en.lineJoin="miter",en.miterLimit=4}setViewBox(en){var{document:tn,ctx:nn,aspectRatio:rn,width:an,desiredWidth:sn,height:cn,desiredHeight:An,minX:dn=0,minY:un=0,refX:pn,refY:hn,clip:gn=!1,clipX:_n=0,clipY:mn=0}=en,fn=compressSpaces(rn).replace(/^defer\s/,""),[yn,bn]=fn.split(" "),vn=yn||"xMidYMid",wn=bn||"meet",xn=an/sn,kn=cn/An,Cn=Math.min(xn,kn),Sn=Math.max(xn,kn),Bn=sn,En=An;"meet"===wn&&(Bn*=Cn,En*=Cn),"slice"===wn&&(Bn*=Sn,En*=Sn);var jn=new Property(tn,"refX",pn),Ln=new Property(tn,"refY",hn),Pn=jn.hasValue()&&Ln.hasValue();if(Pn&&nn.translate(-Cn*jn.getPixels("x"),-Cn*Ln.getPixels("y")),gn){var Tn=Cn*_n,Fn=Cn*mn;nn.beginPath(),nn.moveTo(Tn,Fn),nn.lineTo(an,Fn),nn.lineTo(an,cn),nn.lineTo(Tn,cn),nn.closePath(),nn.clip()}if(!Pn){var Un="meet"===wn&&Cn===kn,Nn="slice"===wn&&Sn===kn,In="meet"===wn&&Cn===xn,Mn="slice"===wn&&Sn===xn;vn.startsWith("xMid")&&(Un||Nn)&&nn.translate(an/2-Bn/2,0),vn.endsWith("YMid")&&(In||Mn)&&nn.translate(0,cn/2-En/2),vn.startsWith("xMax")&&(Un||Nn)&&nn.translate(an-Bn,0),vn.endsWith("YMax")&&(In||Mn)&&nn.translate(0,cn-En)}switch(!0){case"none"===vn:nn.scale(xn,kn);break;case"meet"===wn:nn.scale(Cn,Cn);break;case"slice"===wn:nn.scale(Sn,Sn)}nn.translate(-dn,-un)}start(en){var{enableRedraw:tn=!1,ignoreMouse:nn=!1,ignoreAnimation:rn=!1,ignoreDimensions:an=!1,ignoreClear:sn=!1,forceRedraw:cn,scaleWidth:An,scaleHeight:dn,offsetX:un,offsetY:pn}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:hn,mouse:gn}=this,_n=1e3/hn;if(this.frameDuration=_n,this.readyPromise=new Promise((en=>{this.resolveReady=en})),this.isReady()&&this.render(en,an,sn,An,dn,un,pn),tn){var mn=Date.now(),fn=mn,yn=0,tick=()=>{mn=Date.now(),(yn=mn-fn)>=_n&&(fn=mn-yn%_n,this.shouldUpdate(rn,cn)&&(this.render(en,an,sn,An,dn,un,pn),gn.runEvents())),this.intervalId=bk(tick)};nn||gn.start(),this.intervalId=bk(tick)}}stop(){this.intervalId&&(bk.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(en,tn){if(!en){var{frameDuration:nn}=this;if(this.animations.reduce(((en,tn)=>tn.update(nn)||en),!1))return!0}return!("function"!=typeof tn||!tn())||!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents()}render(en,tn,nn,rn,an,sn,cn){var{CLIENT_WIDTH:An,CLIENT_HEIGHT:dn,viewPort:un,ctx:pn,isFirstRender:hn}=this,gn=pn.canvas;un.clear(),gn.width&&gn.height?un.setCurrent(gn.width,gn.height):un.setCurrent(An,dn);var _n=en.getStyle("width"),mn=en.getStyle("height");!tn&&(hn||"number"!=typeof rn&&"number"!=typeof an)&&(_n.hasValue()&&(gn.width=_n.getPixels("x"),gn.style&&(gn.style.width="".concat(gn.width,"px"))),mn.hasValue()&&(gn.height=mn.getPixels("y"),gn.style&&(gn.style.height="".concat(gn.height,"px"))));var fn=gn.clientWidth||gn.width,yn=gn.clientHeight||gn.height;if(tn&&_n.hasValue()&&mn.hasValue()&&(fn=_n.getPixels("x"),yn=mn.getPixels("y")),un.setCurrent(fn,yn),"number"==typeof sn&&en.getAttribute("x",!0).setValue(sn),"number"==typeof cn&&en.getAttribute("y",!0).setValue(cn),"number"==typeof rn||"number"==typeof an){var bn=toNumbers(en.getAttribute("viewBox").getString()),vn=0,wn=0;if("number"==typeof rn){var xn=en.getStyle("width");xn.hasValue()?vn=xn.getPixels("x")/rn:isNaN(bn[2])||(vn=bn[2]/rn)}if("number"==typeof an){var kn=en.getStyle("height");kn.hasValue()?wn=kn.getPixels("y")/an:isNaN(bn[3])||(wn=bn[3]/an)}vn||(vn=wn),wn||(wn=vn),en.getAttribute("width",!0).setValue(rn),en.getAttribute("height",!0).setValue(an);var Cn=en.getStyle("transform",!0,!0);Cn.setValue("".concat(Cn.getString()," scale(").concat(1/vn,", ").concat(1/wn,")"))}nn||pn.clearRect(0,0,fn,yn),en.render(pn),hn&&(this.isFirstRender=!1)}}Screen.defaultWindow=EC,Screen.defaultFetch=jC;var{defaultFetch:LC}=Screen,PC="undefined"!=typeof DOMParser?DOMParser:null;class Parser{constructor(){var{fetch:en=LC,DOMParser:tn=PC}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=en,this.DOMParser=tn}parse(en){var tn=this;return _asyncToGenerator((function*(){return en.startsWith("<")?tn.parseFromString(en):tn.load(en)}))()}parseFromString(en){var tn=new this.DOMParser;try{return this.checkDocument(tn.parseFromString(en,"image/svg+xml"))}catch(nn){return this.checkDocument(tn.parseFromString(en,"text/xml"))}}checkDocument(en){var tn=en.getElementsByTagName("parsererror")[0];if(tn)throw new Error(tn.textContent);return en}load(en){var tn=this;return _asyncToGenerator((function*(){var nn=yield tn.fetch(en),rn=yield nn.text();return tn.parseFromString(rn)}))()}}class Translate{constructor(en,tn){this.type="translate",this.point=null,this.point=Point.parse(tn)}apply(en){var{x:tn,y:nn}=this.point;en.translate(tn||0,nn||0)}unapply(en){var{x:tn,y:nn}=this.point;en.translate(-1*tn||0,-1*nn||0)}applyToPoint(en){var{x:tn,y:nn}=this.point;en.applyTransform([1,0,0,1,tn||0,nn||0])}}class Rotate{constructor(en,tn,nn){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var rn=toNumbers(tn);this.angle=new Property(en,"angle",rn[0]),this.originX=nn[0],this.originY=nn[1],this.cx=rn[1]||0,this.cy=rn[2]||0}apply(en){var{cx:tn,cy:nn,originX:rn,originY:an,angle:sn}=this,cn=tn+rn.getPixels("x"),An=nn+an.getPixels("y");en.translate(cn,An),en.rotate(sn.getRadians()),en.translate(-cn,-An)}unapply(en){var{cx:tn,cy:nn,originX:rn,originY:an,angle:sn}=this,cn=tn+rn.getPixels("x"),An=nn+an.getPixels("y");en.translate(cn,An),en.rotate(-1*sn.getRadians()),en.translate(-cn,-An)}applyToPoint(en){var{cx:tn,cy:nn,angle:rn}=this,an=rn.getRadians();en.applyTransform([1,0,0,1,tn||0,nn||0]),en.applyTransform([Math.cos(an),Math.sin(an),-Math.sin(an),Math.cos(an),0,0]),en.applyTransform([1,0,0,1,-tn||0,-nn||0])}}class Scale{constructor(en,tn,nn){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var rn=Point.parseScale(tn);0!==rn.x&&0!==rn.y||(rn.x=1e-8,rn.y=1e-8),this.scale=rn,this.originX=nn[0],this.originY=nn[1]}apply(en){var{scale:{x:tn,y:nn},originX:rn,originY:an}=this,sn=rn.getPixels("x"),cn=an.getPixels("y");en.translate(sn,cn),en.scale(tn,nn||tn),en.translate(-sn,-cn)}unapply(en){var{scale:{x:tn,y:nn},originX:rn,originY:an}=this,sn=rn.getPixels("x"),cn=an.getPixels("y");en.translate(sn,cn),en.scale(1/tn,1/nn||tn),en.translate(-sn,-cn)}applyToPoint(en){var{x:tn,y:nn}=this.scale;en.applyTransform([tn||0,0,0,nn||0,0,0])}}class Matrix{constructor(en,tn,nn){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=toNumbers(tn),this.originX=nn[0],this.originY=nn[1]}apply(en){var{originX:tn,originY:nn,matrix:rn}=this,an=tn.getPixels("x"),sn=nn.getPixels("y");en.translate(an,sn),en.transform(rn[0],rn[1],rn[2],rn[3],rn[4],rn[5]),en.translate(-an,-sn)}unapply(en){var{originX:tn,originY:nn,matrix:rn}=this,an=rn[0],sn=rn[2],cn=rn[4],An=rn[1],dn=rn[3],un=rn[5],pn=1/(an*(1*dn-0*un)-sn*(1*An-0*un)+cn*(0*An-0*dn)),hn=tn.getPixels("x"),gn=nn.getPixels("y");en.translate(hn,gn),en.transform(pn*(1*dn-0*un),pn*(0*un-1*An),pn*(0*cn-1*sn),pn*(1*an-0*cn),pn*(sn*un-cn*dn),pn*(cn*An-an*un)),en.translate(-hn,-gn)}applyToPoint(en){en.applyTransform(this.matrix)}}class Skew extends Matrix{constructor(en,tn,nn){super(en,tn,nn),this.type="skew",this.angle=null,this.angle=new Property(en,"angle",tn)}}class SkewX extends Skew{constructor(en,tn,nn){super(en,tn,nn),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class SkewY extends Skew{constructor(en,tn,nn){super(en,tn,nn),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class Transform{constructor(en,tn,nn){this.document=en,this.transforms=[];var rn=function parseTransforms(en){return compressSpaces(en).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(tn);rn.forEach((en=>{if("none"!==en){var[tn,rn]=function parseTransform(en){var[tn,nn]=en.split("(");return[tn.trim(),nn.trim().replace(")","")]}(en),an=Transform.transformTypes[tn];void 0!==an&&this.transforms.push(new an(this.document,rn,nn))}}))}static fromElement(en,tn){var nn=tn.getStyle("transform",!1,!0),[rn,an=rn]=tn.getStyle("transform-origin",!1,!0).split(),sn=[rn,an];return nn.hasValue()?new Transform(en,nn.getString(),sn):null}apply(en){for(var{transforms:tn}=this,nn=tn.length,rn=0;rn<nn;rn++)tn[rn].apply(en)}unapply(en){for(var{transforms:tn}=this,nn=tn.length-1;nn>=0;nn--)tn[nn].unapply(en)}applyToPoint(en){for(var{transforms:tn}=this,nn=tn.length,rn=0;rn<nn;rn++)tn[rn].applyToPoint(en)}}Transform.transformTypes={translate:Translate,rotate:Rotate,scale:Scale,matrix:Matrix,skewX:SkewX,skewY:SkewY};class Element$1{constructor(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=en,this.node=tn,this.captureTextNodes=nn,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],tn&&1===tn.nodeType){if(Array.from(tn.attributes).forEach((tn=>{var nn=normalizeAttributeName(tn.nodeName);this.attributes[nn]=new Property(en,nn,tn.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var rn=this.getAttribute("style").getString().split(";").map((en=>en.trim()));rn.forEach((tn=>{if(tn){var[nn,rn]=tn.split(":").map((en=>en.trim()));this.styles[nn]=new Property(en,nn,rn)}}))}var{definitions:an}=en,sn=this.getAttribute("id");sn.hasValue()&&(an[sn.getString()]||(an[sn.getString()]=this)),Array.from(tn.childNodes).forEach((tn=>{if(1===tn.nodeType)this.addChild(tn);else if(nn&&(3===tn.nodeType||4===tn.nodeType)){var rn=en.createTextNode(tn);rn.getText().length>0&&this.addChild(rn)}}))}}getAttribute(en){var tn=arguments.length>1&&void 0!==arguments[1]&&arguments[1],nn=this.attributes[en];if(!nn&&tn){var rn=new Property(this.document,en,"");return this.attributes[en]=rn,rn}return nn||Property.empty(this.document)}getHrefAttribute(){for(var en in this.attributes)if("href"===en||en.endsWith(":href"))return this.attributes[en];return Property.empty(this.document)}getStyle(en){var tn=arguments.length>1&&void 0!==arguments[1]&&arguments[1],nn=arguments.length>2&&void 0!==arguments[2]&&arguments[2],rn=this.styles[en];if(rn)return rn;var an=this.getAttribute(en);if(null!=an&&an.hasValue())return this.styles[en]=an,an;if(!nn){var{parent:sn}=this;if(sn){var cn=sn.getStyle(en);if(null!=cn&&cn.hasValue())return cn}}if(tn){var An=new Property(this.document,en,"");return this.styles[en]=An,An}return rn||Property.empty(this.document)}render(en){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(en.save(),this.getStyle("mask").hasValue()){var tn=this.getStyle("mask").getDefinition();tn&&(this.applyEffects(en),tn.apply(en,this))}else if("none"!==this.getStyle("filter").getValue("none")){var nn=this.getStyle("filter").getDefinition();nn&&(this.applyEffects(en),nn.apply(en,this))}else this.setContext(en),this.renderChildren(en),this.clearContext(en);en.restore()}}setContext(en){}applyEffects(en){var tn=Transform.fromElement(this.document,this);tn&&tn.apply(en);var nn=this.getStyle("clip-path",!1,!0);if(nn.hasValue()){var rn=nn.getDefinition();rn&&rn.apply(en)}}clearContext(en){}renderChildren(en){this.children.forEach((tn=>{tn.render(en)}))}addChild(en){var tn=en instanceof Element$1?en:this.document.createElement(en);tn.parent=this,Element$1.ignoreChildTypes.includes(tn.type)||this.children.push(tn)}matchesSelector(en){var tn,{node:nn}=this;if("function"==typeof nn.matches)return nn.matches(en);var rn=null===(tn=nn.getAttribute)||void 0===tn?void 0:tn.call(nn,"class");return!(!rn||""===rn)&&rn.split(" ").some((tn=>".".concat(tn)===en))}addStylesFromStyleDefinition(){var{styles:en,stylesSpecificity:tn}=this.document;for(var nn in en)if(!nn.startsWith("@")&&this.matchesSelector(nn)){var rn=en[nn],an=tn[nn];if(rn)for(var sn in rn){var cn=this.stylesSpecificity[sn];void 0===cn&&(cn="000"),an>=cn&&(this.styles[sn]=rn[sn],this.stylesSpecificity[sn]=an)}}}removeStyles(en,tn){return tn.reduce(((tn,nn)=>{var rn=en.getStyle(nn);if(!rn.hasValue())return tn;var an=rn.getString();return rn.setValue(""),[...tn,[nn,an]]}),[])}restoreStyles(en,tn){tn.forEach((tn=>{var[nn,rn]=tn;en.getStyle(nn,!0).setValue(rn)}))}isFirstChild(){var en;return 0===(null===(en=this.parent)||void 0===en?void 0:en.children.indexOf(this))}}Element$1.ignoreChildTypes=["title"];class UnknownElement extends Element$1{constructor(en,tn,nn){super(en,tn,nn)}}function wrapFontFamily(en){var tn=en.trim();return/^('|")/.test(tn)?tn:'"'.concat(tn,'"')}function prepareFontStyle(en){if(!en)return"";var tn=en.trim().toLowerCase();switch(tn){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return tn;default:return/^oblique\s+(-|)\d+deg$/.test(tn)?tn:""}}function prepareFontWeight(en){if(!en)return"";var tn=en.trim().toLowerCase();switch(tn){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return tn;default:return/^[\d.]+$/.test(tn)?tn:""}}class Font{constructor(en,tn,nn,rn,an,sn){var cn=sn?"string"==typeof sn?Font.parse(sn):sn:{};this.fontFamily=an||cn.fontFamily,this.fontSize=rn||cn.fontSize,this.fontStyle=en||cn.fontStyle,this.fontWeight=nn||cn.fontWeight,this.fontVariant=tn||cn.fontVariant}static parse(){var en=arguments.length>1?arguments[1]:void 0,tn="",nn="",rn="",an="",sn="",cn=compressSpaces(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),An={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return cn.forEach((en=>{switch(!0){case!An.fontStyle&&Font.styles.includes(en):"inherit"!==en&&(tn=en),An.fontStyle=!0;break;case!An.fontVariant&&Font.variants.includes(en):"inherit"!==en&&(nn=en),An.fontStyle=!0,An.fontVariant=!0;break;case!An.fontWeight&&Font.weights.includes(en):"inherit"!==en&&(rn=en),An.fontStyle=!0,An.fontVariant=!0,An.fontWeight=!0;break;case!An.fontSize:"inherit"!==en&&([an]=en.split("/")),An.fontStyle=!0,An.fontVariant=!0,An.fontWeight=!0,An.fontSize=!0;break;default:"inherit"!==en&&(sn+=en)}})),new Font(tn,nn,rn,an,sn,en)}toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(en=this.fontFamily,"undefined"==typeof process?en:en.trim().split(",").map(wrapFontFamily).join(","))].join(" ").trim();var en}}Font.styles="normal|italic|oblique|inherit",Font.variants="normal|small-caps|inherit",Font.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class BoundingBox{constructor(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,rn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=en,this.y1=tn,this.x2=nn,this.y2=rn,this.addPoint(en,tn),this.addPoint(nn,rn)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(en,tn){void 0!==en&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=en,this.x2=en),en<this.x1&&(this.x1=en),en>this.x2&&(this.x2=en)),void 0!==tn&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=tn,this.y2=tn),tn<this.y1&&(this.y1=tn),tn>this.y2&&(this.y2=tn))}addX(en){this.addPoint(en,null)}addY(en){this.addPoint(null,en)}addBoundingBox(en){if(en){var{x1:tn,y1:nn,x2:rn,y2:an}=en;this.addPoint(tn,nn),this.addPoint(rn,an)}}sumCubic(en,tn,nn,rn,an){return Math.pow(1-en,3)*tn+3*Math.pow(1-en,2)*en*nn+3*(1-en)*Math.pow(en,2)*rn+Math.pow(en,3)*an}bezierCurveAdd(en,tn,nn,rn,an){var sn=6*tn-12*nn+6*rn,cn=-3*tn+9*nn-9*rn+3*an,An=3*nn-3*tn;if(0!==cn){var dn=Math.pow(sn,2)-4*An*cn;if(!(dn<0)){var un=(-sn+Math.sqrt(dn))/(2*cn);0<un&&un<1&&(en?this.addX(this.sumCubic(un,tn,nn,rn,an)):this.addY(this.sumCubic(un,tn,nn,rn,an)));var pn=(-sn-Math.sqrt(dn))/(2*cn);0<pn&&pn<1&&(en?this.addX(this.sumCubic(pn,tn,nn,rn,an)):this.addY(this.sumCubic(pn,tn,nn,rn,an)))}}else{if(0===sn)return;var hn=-An/sn;0<hn&&hn<1&&(en?this.addX(this.sumCubic(hn,tn,nn,rn,an)):this.addY(this.sumCubic(hn,tn,nn,rn,an)))}}addBezierCurve(en,tn,nn,rn,an,sn,cn,An){this.addPoint(en,tn),this.addPoint(cn,An),this.bezierCurveAdd(!0,en,nn,an,cn),this.bezierCurveAdd(!1,tn,rn,sn,An)}addQuadraticCurve(en,tn,nn,rn,an,sn){var cn=en+2/3*(nn-en),An=tn+2/3*(rn-tn),dn=cn+1/3*(an-en),un=An+1/3*(sn-tn);this.addBezierCurve(en,tn,cn,dn,An,un,an,sn)}isPointInBox(en,tn){var{x1:nn,y1:rn,x2:an,y2:sn}=this;return nn<=en&&en<=an&&rn<=tn&&tn<=sn}}class PathParser extends tC{constructor(en){super(en.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Point(0,0),this.control=new Point(0,0),this.current=new Point(0,0),this.points=[],this.angles=[]}isEnd(){var{i:en,commands:tn}=this;return en>=tn.length-1}next(){var en=this.commands[++this.i];return this.previousCommand=this.command,this.command=en,en}getPoint(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",nn=new Point(this.command[en],this.command[tn]);return this.makeAbsolute(nn)}getAsControlPoint(en,tn){var nn=this.getPoint(en,tn);return this.control=nn,nn}getAsCurrentPoint(en,tn){var nn=this.getPoint(en,tn);return this.current=nn,nn}getReflectedControlPoint(){var en=this.previousCommand.type;if(en!==tC.CURVE_TO&&en!==tC.SMOOTH_CURVE_TO&&en!==tC.QUAD_TO&&en!==tC.SMOOTH_QUAD_TO)return this.current;var{current:{x:tn,y:nn},control:{x:rn,y:an}}=this;return new Point(2*tn-rn,2*nn-an)}makeAbsolute(en){if(this.command.relative){var{x:tn,y:nn}=this.current;en.x+=tn,en.y+=nn}return en}addMarker(en,tn,nn){var{points:rn,angles:an}=this;nn&&an.length>0&&!an[an.length-1]&&(an[an.length-1]=rn[rn.length-1].angleTo(nn)),this.addMarkerAngle(en,tn?tn.angleTo(en):null)}addMarkerAngle(en,tn){this.points.push(en),this.angles.push(tn)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:en}=this,tn=en.length,nn=0;nn<tn;nn++)if(!en[nn])for(var rn=nn+1;rn<tn;rn++)if(en[rn]){en[nn]=en[rn];break}return en}}class RenderedElement extends Element$1{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var en=1,tn=this;tn;){var nn=tn.getStyle("opacity",!1,!0);nn.hasValue(!0)&&(en*=nn.getNumber()),tn=tn.parent}return en}setContext(en){var tn=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!tn){var nn=this.getStyle("fill"),rn=this.getStyle("fill-opacity"),an=this.getStyle("stroke"),sn=this.getStyle("stroke-opacity");if(nn.isUrlDefinition()){var cn=nn.getFillStyleDefinition(this,rn);cn&&(en.fillStyle=cn)}else if(nn.hasValue()){"currentColor"===nn.getString()&&nn.setValue(this.getStyle("color").getColor());var An=nn.getColor();"inherit"!==An&&(en.fillStyle="none"===An?"rgba(0,0,0,0)":An)}if(rn.hasValue()){var dn=new Property(this.document,"fill",en.fillStyle).addOpacity(rn).getColor();en.fillStyle=dn}if(an.isUrlDefinition()){var un=an.getFillStyleDefinition(this,sn);un&&(en.strokeStyle=un)}else if(an.hasValue()){"currentColor"===an.getString()&&an.setValue(this.getStyle("color").getColor());var pn=an.getString();"inherit"!==pn&&(en.strokeStyle="none"===pn?"rgba(0,0,0,0)":pn)}if(sn.hasValue()){var hn=new Property(this.document,"stroke",en.strokeStyle).addOpacity(sn).getString();en.strokeStyle=hn}var gn=this.getStyle("stroke-width");if(gn.hasValue()){var _n=gn.getPixels();en.lineWidth=_n||1e-8}var mn=this.getStyle("stroke-linecap"),fn=this.getStyle("stroke-linejoin"),yn=this.getStyle("stroke-miterlimit"),bn=this.getStyle("stroke-dasharray"),vn=this.getStyle("stroke-dashoffset");if(mn.hasValue()&&(en.lineCap=mn.getString()),fn.hasValue()&&(en.lineJoin=fn.getString()),yn.hasValue()&&(en.miterLimit=yn.getNumber()),bn.hasValue()&&"none"!==bn.getString()){var wn=toNumbers(bn.getString());void 0!==en.setLineDash?en.setLineDash(wn):void 0!==en.webkitLineDash?en.webkitLineDash=wn:void 0===en.mozDash||1===wn.length&&0===wn[0]||(en.mozDash=wn);var xn=vn.getPixels();void 0!==en.lineDashOffset?en.lineDashOffset=xn:void 0!==en.webkitLineDashOffset?en.webkitLineDashOffset=xn:void 0!==en.mozDashOffset&&(en.mozDashOffset=xn)}}if(this.modifiedEmSizeStack=!1,void 0!==en.font){var kn=this.getStyle("font"),Cn=this.getStyle("font-style"),Sn=this.getStyle("font-variant"),Bn=this.getStyle("font-weight"),En=this.getStyle("font-size"),jn=this.getStyle("font-family"),Ln=new Font(Cn.getString(),Sn.getString(),Bn.getString(),En.hasValue()?"".concat(En.getPixels(!0),"px"):"",jn.getString(),Font.parse(kn.getString(),en.font));Cn.setValue(Ln.fontStyle),Sn.setValue(Ln.fontVariant),Bn.setValue(Ln.fontWeight),En.setValue(Ln.fontSize),jn.setValue(Ln.fontFamily),en.font=Ln.toString(),En.isPixels()&&(this.document.emSize=En.getPixels(),this.modifiedEmSizeStack=!0)}tn||(this.applyEffects(en),en.globalAlpha=this.calculateOpacity())}clearContext(en){super.clearContext(en),this.modifiedEmSizeStack&&this.document.popEmSize()}}class PathElement extends RenderedElement{constructor(en,tn,nn){super(en,tn,nn),this.type="path",this.pathParser=null,this.pathParser=new PathParser(this.getAttribute("d").getString())}path(en){var{pathParser:tn}=this,nn=new BoundingBox;for(tn.reset(),en&&en.beginPath();!tn.isEnd();)switch(tn.next().type){case PathParser.MOVE_TO:this.pathM(en,nn);break;case PathParser.LINE_TO:this.pathL(en,nn);break;case PathParser.HORIZ_LINE_TO:this.pathH(en,nn);break;case PathParser.VERT_LINE_TO:this.pathV(en,nn);break;case PathParser.CURVE_TO:this.pathC(en,nn);break;case PathParser.SMOOTH_CURVE_TO:this.pathS(en,nn);break;case PathParser.QUAD_TO:this.pathQ(en,nn);break;case PathParser.SMOOTH_QUAD_TO:this.pathT(en,nn);break;case PathParser.ARC:this.pathA(en,nn);break;case PathParser.CLOSE_PATH:this.pathZ(en,nn)}return nn}getBoundingBox(en){return this.path()}getMarkers(){var{pathParser:en}=this,tn=en.getMarkerPoints(),nn=en.getMarkerAngles(),rn=tn.map(((en,tn)=>[en,nn[tn]]));return rn}renderChildren(en){this.path(en),this.document.screen.mouse.checkPath(this,en);var tn=this.getStyle("fill-rule");""!==en.fillStyle&&("inherit"!==tn.getString("inherit")?en.fill(tn.getString()):en.fill()),""!==en.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(en.save(),en.setTransform(1,0,0,1,0,0),en.stroke(),en.restore()):en.stroke());var nn=this.getMarkers();if(nn){var rn=nn.length-1,an=this.getStyle("marker-start"),sn=this.getStyle("marker-mid"),cn=this.getStyle("marker-end");if(an.isUrlDefinition()){var An=an.getDefinition(),[dn,un]=nn[0];An.render(en,dn,un)}if(sn.isUrlDefinition())for(var pn=sn.getDefinition(),hn=1;hn<rn;hn++){var[gn,_n]=nn[hn];pn.render(en,gn,_n)}if(cn.isUrlDefinition()){var mn=cn.getDefinition(),[fn,yn]=nn[rn];mn.render(en,fn,yn)}}}static pathM(en){var tn=en.getAsCurrentPoint();return en.start=en.current,{point:tn}}pathM(en,tn){var{pathParser:nn}=this,{point:rn}=PathElement.pathM(nn),{x:an,y:sn}=rn;nn.addMarker(rn),tn.addPoint(an,sn),en&&en.moveTo(an,sn)}static pathL(en){var{current:tn}=en;return{current:tn,point:en.getAsCurrentPoint()}}pathL(en,tn){var{pathParser:nn}=this,{current:rn,point:an}=PathElement.pathL(nn),{x:sn,y:cn}=an;nn.addMarker(an,rn),tn.addPoint(sn,cn),en&&en.lineTo(sn,cn)}static pathH(en){var{current:tn,command:nn}=en,rn=new Point((nn.relative?tn.x:0)+nn.x,tn.y);return en.current=rn,{current:tn,point:rn}}pathH(en,tn){var{pathParser:nn}=this,{current:rn,point:an}=PathElement.pathH(nn),{x:sn,y:cn}=an;nn.addMarker(an,rn),tn.addPoint(sn,cn),en&&en.lineTo(sn,cn)}static pathV(en){var{current:tn,command:nn}=en,rn=new Point(tn.x,(nn.relative?tn.y:0)+nn.y);return en.current=rn,{current:tn,point:rn}}pathV(en,tn){var{pathParser:nn}=this,{current:rn,point:an}=PathElement.pathV(nn),{x:sn,y:cn}=an;nn.addMarker(an,rn),tn.addPoint(sn,cn),en&&en.lineTo(sn,cn)}static pathC(en){var{current:tn}=en;return{current:tn,point:en.getPoint("x1","y1"),controlPoint:en.getAsControlPoint("x2","y2"),currentPoint:en.getAsCurrentPoint()}}pathC(en,tn){var{pathParser:nn}=this,{current:rn,point:an,controlPoint:sn,currentPoint:cn}=PathElement.pathC(nn);nn.addMarker(cn,sn,an),tn.addBezierCurve(rn.x,rn.y,an.x,an.y,sn.x,sn.y,cn.x,cn.y),en&&en.bezierCurveTo(an.x,an.y,sn.x,sn.y,cn.x,cn.y)}static pathS(en){var{current:tn}=en;return{current:tn,point:en.getReflectedControlPoint(),controlPoint:en.getAsControlPoint("x2","y2"),currentPoint:en.getAsCurrentPoint()}}pathS(en,tn){var{pathParser:nn}=this,{current:rn,point:an,controlPoint:sn,currentPoint:cn}=PathElement.pathS(nn);nn.addMarker(cn,sn,an),tn.addBezierCurve(rn.x,rn.y,an.x,an.y,sn.x,sn.y,cn.x,cn.y),en&&en.bezierCurveTo(an.x,an.y,sn.x,sn.y,cn.x,cn.y)}static pathQ(en){var{current:tn}=en;return{current:tn,controlPoint:en.getAsControlPoint("x1","y1"),currentPoint:en.getAsCurrentPoint()}}pathQ(en,tn){var{pathParser:nn}=this,{current:rn,controlPoint:an,currentPoint:sn}=PathElement.pathQ(nn);nn.addMarker(sn,an,an),tn.addQuadraticCurve(rn.x,rn.y,an.x,an.y,sn.x,sn.y),en&&en.quadraticCurveTo(an.x,an.y,sn.x,sn.y)}static pathT(en){var{current:tn}=en,nn=en.getReflectedControlPoint();return en.control=nn,{current:tn,controlPoint:nn,currentPoint:en.getAsCurrentPoint()}}pathT(en,tn){var{pathParser:nn}=this,{current:rn,controlPoint:an,currentPoint:sn}=PathElement.pathT(nn);nn.addMarker(sn,an,an),tn.addQuadraticCurve(rn.x,rn.y,an.x,an.y,sn.x,sn.y),en&&en.quadraticCurveTo(an.x,an.y,sn.x,sn.y)}static pathA(en){var{current:tn,command:nn}=en,{rX:rn,rY:an,xRot:sn,lArcFlag:cn,sweepFlag:An}=nn,dn=sn*(Math.PI/180),un=en.getAsCurrentPoint(),pn=new Point(Math.cos(dn)*(tn.x-un.x)/2+Math.sin(dn)*(tn.y-un.y)/2,-Math.sin(dn)*(tn.x-un.x)/2+Math.cos(dn)*(tn.y-un.y)/2),hn=Math.pow(pn.x,2)/Math.pow(rn,2)+Math.pow(pn.y,2)/Math.pow(an,2);hn>1&&(rn*=Math.sqrt(hn),an*=Math.sqrt(hn));var gn=(cn===An?-1:1)*Math.sqrt((Math.pow(rn,2)*Math.pow(an,2)-Math.pow(rn,2)*Math.pow(pn.y,2)-Math.pow(an,2)*Math.pow(pn.x,2))/(Math.pow(rn,2)*Math.pow(pn.y,2)+Math.pow(an,2)*Math.pow(pn.x,2)));isNaN(gn)&&(gn=0);var _n=new Point(gn*rn*pn.y/an,gn*-an*pn.x/rn),mn=new Point((tn.x+un.x)/2+Math.cos(dn)*_n.x-Math.sin(dn)*_n.y,(tn.y+un.y)/2+Math.sin(dn)*_n.x+Math.cos(dn)*_n.y),fn=vectorsAngle([1,0],[(pn.x-_n.x)/rn,(pn.y-_n.y)/an]),yn=[(pn.x-_n.x)/rn,(pn.y-_n.y)/an],bn=[(-pn.x-_n.x)/rn,(-pn.y-_n.y)/an],vn=vectorsAngle(yn,bn);return vectorsRatio(yn,bn)<=-1&&(vn=Math.PI),vectorsRatio(yn,bn)>=1&&(vn=0),{currentPoint:un,rX:rn,rY:an,sweepFlag:An,xAxisRotation:dn,centp:mn,a1:fn,ad:vn}}pathA(en,tn){var{pathParser:nn}=this,{currentPoint:rn,rX:an,rY:sn,sweepFlag:cn,xAxisRotation:An,centp:dn,a1:un,ad:pn}=PathElement.pathA(nn),hn=1-cn?1:-1,gn=un+hn*(pn/2),_n=new Point(dn.x+an*Math.cos(gn),dn.y+sn*Math.sin(gn));if(nn.addMarkerAngle(_n,gn-hn*Math.PI/2),nn.addMarkerAngle(rn,gn-hn*Math.PI),tn.addPoint(rn.x,rn.y),en&&!isNaN(un)&&!isNaN(pn)){var mn=an>sn?an:sn,fn=an>sn?1:an/sn,yn=an>sn?sn/an:1;en.translate(dn.x,dn.y),en.rotate(An),en.scale(fn,yn),en.arc(0,0,mn,un,un+pn,Boolean(1-cn)),en.scale(1/fn,1/yn),en.rotate(-An),en.translate(-dn.x,-dn.y)}}static pathZ(en){en.current=en.start}pathZ(en,tn){PathElement.pathZ(this.pathParser),en&&tn.x1!==tn.x2&&tn.y1!==tn.y2&&en.closePath()}}class GlyphElement extends PathElement{constructor(en,tn,nn){super(en,tn,nn),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class TextElement extends RenderedElement{constructor(en,tn,nn){super(en,tn,new.target===TextElement||nn),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(en){var tn=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(en,tn);var nn=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();nn&&(en.textBaseline=nn)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(en){if("text"!==this.type)return this.getTElementBoundingBox(en);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(en);var tn=null;return this.children.forEach(((nn,rn)=>{var an=this.getChildBoundingBox(en,this,this,rn);tn?tn.addBoundingBox(an):tn=an})),tn}getFontSize(){var{document:en,parent:tn}=this,nn=Font.parse(en.ctx.font).fontSize;return tn.getStyle("font-size").getNumber(nn)}getTElementBoundingBox(en){var tn=this.getFontSize();return new BoundingBox(this.x,this.y-tn,this.x+this.measureText(en),this.y)}getGlyph(en,tn,nn){var rn=tn[nn],an=null;if(en.isArabic){var sn=tn.length,cn=tn[nn-1],An=tn[nn+1],dn="isolated";if((0===nn||" "===cn)&&nn<sn-1&&" "!==An&&(dn="terminal"),nn>0&&" "!==cn&&nn<sn-1&&" "!==An&&(dn="medial"),nn>0&&" "!==cn&&(nn===sn-1||" "===An)&&(dn="initial"),void 0!==en.glyphs[rn]){var un=en.glyphs[rn];an=un instanceof GlyphElement?un:un[dn]}}else an=en.glyphs[rn];return an||(an=en.missingGlyph),an}getText(){return""}getTextFromNode(en){var tn=en||this.node,nn=Array.from(tn.parentNode.childNodes),rn=nn.indexOf(tn),an=nn.length-1,sn=compressSpaces(tn.textContent||"");return 0===rn&&(sn=trimLeft(sn)),rn===an&&(sn=trimRight(sn)),sn}renderChildren(en){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(en),this.children.forEach(((tn,nn)=>{this.renderChild(en,this,this,nn)}));var{mouse:tn}=this.document.screen;tn.isWorking()&&tn.checkBoundingBox(this,this.getBoundingBox(en))}else this.renderTElementChildren(en)}renderTElementChildren(en){var{document:tn,parent:nn}=this,rn=this.getText(),an=nn.getStyle("font-family").getDefinition();if(an)for(var{unitsPerEm:sn}=an.fontFace,cn=Font.parse(tn.ctx.font),An=nn.getStyle("font-size").getNumber(cn.fontSize),dn=nn.getStyle("font-style").getString(cn.fontStyle),un=An/sn,pn=an.isRTL?rn.split("").reverse().join(""):rn,hn=toNumbers(nn.getAttribute("dx").getString()),gn=pn.length,_n=0;_n<gn;_n++){var mn=this.getGlyph(an,pn,_n);en.translate(this.x,this.y),en.scale(un,-un);var fn=en.lineWidth;en.lineWidth=en.lineWidth*sn/An,"italic"===dn&&en.transform(1,0,.4,1,0,0),mn.render(en),"italic"===dn&&en.transform(1,0,-.4,1,0,0),en.lineWidth=fn,en.scale(1/un,-1/un),en.translate(-this.x,-this.y),this.x+=An*(mn.horizAdvX||an.horizAdvX)/sn,void 0===hn[_n]||isNaN(hn[_n])||(this.x+=hn[_n])}else{var{x:yn,y:bn}=this;en.fillStyle&&en.fillText(rn,yn,bn),en.strokeStyle&&en.strokeText(rn,yn,bn)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var en,tn=this.leafTexts[this.textChunkStart],nn=tn.getStyle("text-anchor").getString("start");en="start"===nn?tn.x-this.minX:"end"===nn?tn.x-this.maxX:tn.x-(this.minX+this.maxX)/2;for(var rn=this.textChunkStart;rn<this.leafTexts.length;rn++)this.leafTexts[rn].x+=en;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(en){this.children.forEach(((tn,nn)=>{this.adjustChildCoordinatesRecursiveCore(en,this,this,nn)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(en,tn,nn,rn){var an=nn.children[rn];an.children.length>0?an.children.forEach(((nn,rn)=>{tn.adjustChildCoordinatesRecursiveCore(en,tn,an,rn)})):this.adjustChildCoordinates(en,tn,nn,rn)}adjustChildCoordinates(en,tn,nn,rn){var an=nn.children[rn];if("function"!=typeof an.measureText)return an;en.save(),an.setContext(en,!0);var sn=an.getAttribute("x"),cn=an.getAttribute("y"),An=an.getAttribute("dx"),dn=an.getAttribute("dy"),un=an.getStyle("font-family").getDefinition(),pn=Boolean(un)&&un.isRTL;0===rn&&(sn.hasValue()||sn.setValue(an.getInheritedAttribute("x")),cn.hasValue()||cn.setValue(an.getInheritedAttribute("y")),An.hasValue()||An.setValue(an.getInheritedAttribute("dx")),dn.hasValue()||dn.setValue(an.getInheritedAttribute("dy")));var hn=an.measureText(en);return pn&&(tn.x-=hn),sn.hasValue()?(tn.applyAnchoring(),an.x=sn.getPixels("x"),An.hasValue()&&(an.x+=An.getPixels("x"))):(An.hasValue()&&(tn.x+=An.getPixels("x")),an.x=tn.x),tn.x=an.x,pn||(tn.x+=hn),cn.hasValue()?(an.y=cn.getPixels("y"),dn.hasValue()&&(an.y+=dn.getPixels("y"))):(dn.hasValue()&&(tn.y+=dn.getPixels("y")),an.y=tn.y),tn.y=an.y,tn.leafTexts.push(an),tn.minX=Math.min(tn.minX,an.x,an.x+hn),tn.maxX=Math.max(tn.maxX,an.x,an.x+hn),an.clearContext(en),en.restore(),an}getChildBoundingBox(en,tn,nn,rn){var an=nn.children[rn];if("function"!=typeof an.getBoundingBox)return null;var sn=an.getBoundingBox(en);return sn?(an.children.forEach(((nn,rn)=>{var cn=tn.getChildBoundingBox(en,tn,an,rn);sn.addBoundingBox(cn)})),sn):null}renderChild(en,tn,nn,rn){var an=nn.children[rn];an.render(en),an.children.forEach(((nn,rn)=>{tn.renderChild(en,tn,an,rn)}))}measureText(en){var{measureCache:tn}=this;if(~tn)return tn;var nn=this.getText(),rn=this.measureTargetText(en,nn);return this.measureCache=rn,rn}measureTargetText(en,tn){if(!tn.length)return 0;var{parent:nn}=this,rn=nn.getStyle("font-family").getDefinition();if(rn){for(var an=this.getFontSize(),sn=rn.isRTL?tn.split("").reverse().join(""):tn,cn=toNumbers(nn.getAttribute("dx").getString()),An=sn.length,dn=0,un=0;un<An;un++)dn+=(this.getGlyph(rn,sn,un).horizAdvX||rn.horizAdvX)*an/rn.fontFace.unitsPerEm,void 0===cn[un]||isNaN(cn[un])||(dn+=cn[un]);return dn}if(!en.measureText)return 10*tn.length;en.save(),this.setContext(en,!0);var{width:pn}=en.measureText(tn);return this.clearContext(en),en.restore(),pn}getInheritedAttribute(en){for(var tn=this;tn instanceof TextElement&&tn.isFirstChild();){var nn=tn.parent.getAttribute(en);if(nn.hasValue(!0))return nn.getValue("0");tn=tn.parent}return null}}class TSpanElement extends TextElement{constructor(en,tn,nn){super(en,tn,new.target===TSpanElement||nn),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class TextNode extends TSpanElement{constructor(){super(...arguments),this.type="textNode"}}class SVGElement$1 extends RenderedElement{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(en){var tn,{document:nn}=this,{screen:rn,window:an}=nn,sn=en.canvas;if(rn.setDefaults(en),sn.style&&void 0!==en.font&&an&&void 0!==an.getComputedStyle){en.font=an.getComputedStyle(sn).getPropertyValue("font");var cn=new Property(nn,"fontSize",Font.parse(en.font).fontSize);cn.hasValue()&&(nn.rootEmSize=cn.getPixels("y"),nn.emSize=nn.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:An,height:dn}=rn.viewPort;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 un=this.getAttribute("refX"),pn=this.getAttribute("refY"),hn=this.getAttribute("viewBox"),gn=hn.hasValue()?toNumbers(hn.getString()):null,_n=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),mn=0,fn=0,yn=0,bn=0;gn&&(mn=gn[0],fn=gn[1]),this.root||(An=this.getStyle("width").getPixels("x"),dn=this.getStyle("height").getPixels("y"),"marker"===this.type&&(yn=mn,bn=fn,mn=0,fn=0)),rn.viewPort.setCurrent(An,dn),!this.node||this.parent&&"foreignObject"!==(null===(tn=this.node.parentNode)||void 0===tn?void 0:tn.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(en),en.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),gn&&(An=gn[2],dn=gn[3]),nn.setViewBox({ctx:en,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:rn.viewPort.width,desiredWidth:An,height:rn.viewPort.height,desiredHeight:dn,minX:mn,minY:fn,refX:un.getValue(),refY:pn.getValue(),clip:_n,clipX:yn,clipY:bn}),gn&&(rn.viewPort.removeCurrent(),rn.viewPort.setCurrent(An,dn))}clearContext(en){super.clearContext(en),this.document.screen.viewPort.removeCurrent()}resize(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en,nn=arguments.length>2&&void 0!==arguments[2]&&arguments[2],rn=this.getAttribute("width",!0),an=this.getAttribute("height",!0),sn=this.getAttribute("viewBox"),cn=this.getAttribute("style"),An=rn.getNumber(0),dn=an.getNumber(0);if(nn)if("string"==typeof nn)this.getAttribute("preserveAspectRatio",!0).setValue(nn);else{var un=this.getAttribute("preserveAspectRatio");un.hasValue()&&un.setValue(un.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(rn.setValue(en),an.setValue(tn),sn.hasValue()||sn.setValue("0 0 ".concat(An||en," ").concat(dn||tn)),cn.hasValue()){var pn=this.getStyle("width"),hn=this.getStyle("height");pn.hasValue()&&pn.setValue("".concat(en,"px")),hn.hasValue()&&hn.setValue("".concat(tn,"px"))}}}class RectElement extends PathElement{constructor(){super(...arguments),this.type="rect"}path(en){var tn=this.getAttribute("x").getPixels("x"),nn=this.getAttribute("y").getPixels("y"),rn=this.getStyle("width",!1,!0).getPixels("x"),an=this.getStyle("height",!1,!0).getPixels("y"),sn=this.getAttribute("rx"),cn=this.getAttribute("ry"),An=sn.getPixels("x"),dn=cn.getPixels("y");if(sn.hasValue()&&!cn.hasValue()&&(dn=An),cn.hasValue()&&!sn.hasValue()&&(An=dn),An=Math.min(An,rn/2),dn=Math.min(dn,an/2),en){var un=(Math.sqrt(2)-1)/3*4;en.beginPath(),an>0&&rn>0&&(en.moveTo(tn+An,nn),en.lineTo(tn+rn-An,nn),en.bezierCurveTo(tn+rn-An+un*An,nn,tn+rn,nn+dn-un*dn,tn+rn,nn+dn),en.lineTo(tn+rn,nn+an-dn),en.bezierCurveTo(tn+rn,nn+an-dn+un*dn,tn+rn-An+un*An,nn+an,tn+rn-An,nn+an),en.lineTo(tn+An,nn+an),en.bezierCurveTo(tn+An-un*An,nn+an,tn,nn+an-dn+un*dn,tn,nn+an-dn),en.lineTo(tn,nn+dn),en.bezierCurveTo(tn,nn+dn-un*dn,tn+An-un*An,nn,tn+An,nn),en.closePath())}return new BoundingBox(tn,nn,tn+rn,nn+an)}getMarkers(){return null}}class CircleElement extends PathElement{constructor(){super(...arguments),this.type="circle"}path(en){var tn=this.getAttribute("cx").getPixels("x"),nn=this.getAttribute("cy").getPixels("y"),rn=this.getAttribute("r").getPixels();return en&&rn>0&&(en.beginPath(),en.arc(tn,nn,rn,0,2*Math.PI,!1),en.closePath()),new BoundingBox(tn-rn,nn-rn,tn+rn,nn+rn)}getMarkers(){return null}}class EllipseElement extends PathElement{constructor(){super(...arguments),this.type="ellipse"}path(en){var tn=(Math.sqrt(2)-1)/3*4,nn=this.getAttribute("rx").getPixels("x"),rn=this.getAttribute("ry").getPixels("y"),an=this.getAttribute("cx").getPixels("x"),sn=this.getAttribute("cy").getPixels("y");return en&&nn>0&&rn>0&&(en.beginPath(),en.moveTo(an+nn,sn),en.bezierCurveTo(an+nn,sn+tn*rn,an+tn*nn,sn+rn,an,sn+rn),en.bezierCurveTo(an-tn*nn,sn+rn,an-nn,sn+tn*rn,an-nn,sn),en.bezierCurveTo(an-nn,sn-tn*rn,an-tn*nn,sn-rn,an,sn-rn),en.bezierCurveTo(an+tn*nn,sn-rn,an+nn,sn-tn*rn,an+nn,sn),en.closePath()),new BoundingBox(an-nn,sn-rn,an+nn,sn+rn)}getMarkers(){return null}}class LineElement extends PathElement{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Point(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Point(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(en){var[{x:tn,y:nn},{x:rn,y:an}]=this.getPoints();return en&&(en.beginPath(),en.moveTo(tn,nn),en.lineTo(rn,an)),new BoundingBox(tn,nn,rn,an)}getMarkers(){var[en,tn]=this.getPoints(),nn=en.angleTo(tn);return[[en,nn],[tn,nn]]}}class PolylineElement extends PathElement{constructor(en,tn,nn){super(en,tn,nn),this.type="polyline",this.points=[],this.points=Point.parsePath(this.getAttribute("points").getString())}path(en){var{points:tn}=this,[{x:nn,y:rn}]=tn,an=new BoundingBox(nn,rn);return en&&(en.beginPath(),en.moveTo(nn,rn)),tn.forEach((tn=>{var{x:nn,y:rn}=tn;an.addPoint(nn,rn),en&&en.lineTo(nn,rn)})),an}getMarkers(){var{points:en}=this,tn=en.length-1,nn=[];return en.forEach(((rn,an)=>{an!==tn&&nn.push([rn,rn.angleTo(en[an+1])])})),nn.length>0&&nn.push([en[en.length-1],nn[nn.length-1][1]]),nn}}class PolygonElement extends PolylineElement{constructor(){super(...arguments),this.type="polygon"}path(en){var tn=super.path(en),[{x:nn,y:rn}]=this.points;return en&&(en.lineTo(nn,rn),en.closePath()),tn}}class PatternElement extends Element$1{constructor(){super(...arguments),this.type="pattern"}createPattern(en,tn,nn){var rn=this.getStyle("width").getPixels("x",!0),an=this.getStyle("height").getPixels("y",!0),sn=new SVGElement$1(this.document,null);sn.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),sn.attributes.width=new Property(this.document,"width","".concat(rn,"px")),sn.attributes.height=new Property(this.document,"height","".concat(an,"px")),sn.attributes.transform=new Property(this.document,"transform",this.getAttribute("patternTransform").getValue()),sn.children=this.children;var cn=this.document.createCanvas(rn,an),An=cn.getContext("2d"),dn=this.getAttribute("x"),un=this.getAttribute("y");dn.hasValue()&&un.hasValue()&&An.translate(dn.getPixels("x",!0),un.getPixels("y",!0)),nn.hasValue()?this.styles["fill-opacity"]=nn:Reflect.deleteProperty(this.styles,"fill-opacity");for(var pn=-1;pn<=1;pn++)for(var hn=-1;hn<=1;hn++)An.save(),sn.attributes.x=new Property(this.document,"x",pn*cn.width),sn.attributes.y=new Property(this.document,"y",hn*cn.height),sn.render(An),An.restore();return en.createPattern(cn,"repeat")}}class MarkerElement extends Element$1{constructor(){super(...arguments),this.type="marker"}render(en,tn,nn){if(tn){var{x:rn,y:an}=tn,sn=this.getAttribute("orient").getString("auto"),cn=this.getAttribute("markerUnits").getString("strokeWidth");en.translate(rn,an),"auto"===sn&&en.rotate(nn),"strokeWidth"===cn&&en.scale(en.lineWidth,en.lineWidth),en.save();var An=new SVGElement$1(this.document,null);An.type=this.type,An.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),An.attributes.refX=new Property(this.document,"refX",this.getAttribute("refX").getValue()),An.attributes.refY=new Property(this.document,"refY",this.getAttribute("refY").getValue()),An.attributes.width=new Property(this.document,"width",this.getAttribute("markerWidth").getValue()),An.attributes.height=new Property(this.document,"height",this.getAttribute("markerHeight").getValue()),An.attributes.overflow=new Property(this.document,"overflow",this.getAttribute("overflow").getValue()),An.attributes.fill=new Property(this.document,"fill",this.getAttribute("fill").getColor("black")),An.attributes.stroke=new Property(this.document,"stroke",this.getAttribute("stroke").getValue("none")),An.children=this.children,An.render(en),en.restore(),"strokeWidth"===cn&&en.scale(1/en.lineWidth,1/en.lineWidth),"auto"===sn&&en.rotate(-nn),en.translate(-rn,-an)}}}class DefsElement extends Element$1{constructor(){super(...arguments),this.type="defs"}render(){}}class GElement extends RenderedElement{constructor(){super(...arguments),this.type="g"}getBoundingBox(en){var tn=new BoundingBox;return this.children.forEach((nn=>{tn.addBoundingBox(nn.getBoundingBox(en))})),tn}}class GradientElement extends Element$1{constructor(en,tn,nn){super(en,tn,nn),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:rn,children:an}=this;an.forEach((en=>{"stop"===en.type&&rn.push(en)}))}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(en,tn,nn){var rn=this;this.getHrefAttribute().hasValue()&&(rn=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(rn));var{stops:an}=rn,sn=this.getGradient(en,tn);if(!sn)return this.addParentOpacity(nn,an[an.length-1].color);if(an.forEach((en=>{sn.addColorStop(en.offset,this.addParentOpacity(nn,en.color))})),this.getAttribute("gradientTransform").hasValue()){var{document:cn}=this,{MAX_VIRTUAL_PIXELS:An,viewPort:dn}=cn.screen,[un]=dn.viewPorts,pn=new RectElement(cn,null);pn.attributes.x=new Property(cn,"x",-An/3),pn.attributes.y=new Property(cn,"y",-An/3),pn.attributes.width=new Property(cn,"width",An),pn.attributes.height=new Property(cn,"height",An);var hn=new GElement(cn,null);hn.attributes.transform=new Property(cn,"transform",this.getAttribute("gradientTransform").getValue()),hn.children=[pn];var gn=new SVGElement$1(cn,null);gn.attributes.x=new Property(cn,"x",0),gn.attributes.y=new Property(cn,"y",0),gn.attributes.width=new Property(cn,"width",un.width),gn.attributes.height=new Property(cn,"height",un.height),gn.children=[hn];var _n=cn.createCanvas(un.width,un.height),mn=_n.getContext("2d");return mn.fillStyle=sn,gn.render(mn),mn.createPattern(_n,"no-repeat")}return sn}inheritStopContainer(en){this.attributesToInherit.forEach((tn=>{!this.getAttribute(tn).hasValue()&&en.getAttribute(tn).hasValue()&&this.getAttribute(tn,!0).setValue(en.getAttribute(tn).getValue())}))}addParentOpacity(en,tn){return en.hasValue()?new Property(this.document,"color",tn).addOpacity(en).getColor():tn}}class LinearGradientElement extends GradientElement{constructor(en,tn,nn){super(en,tn,nn),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(en,tn){var nn="objectBoundingBox"===this.getGradientUnits(),rn=nn?tn.getBoundingBox(en):null;if(nn&&!rn)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 an=nn?rn.x+rn.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),sn=nn?rn.y+rn.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),cn=nn?rn.x+rn.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),An=nn?rn.y+rn.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return an===cn&&sn===An?null:en.createLinearGradient(an,sn,cn,An)}}class RadialGradientElement extends GradientElement{constructor(en,tn,nn){super(en,tn,nn),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(en,tn){var nn="objectBoundingBox"===this.getGradientUnits(),rn=tn.getBoundingBox(en);if(nn&&!rn)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 an=nn?rn.x+rn.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),sn=nn?rn.y+rn.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),cn=an,An=sn;this.getAttribute("fx").hasValue()&&(cn=nn?rn.x+rn.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(An=nn?rn.y+rn.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var dn=nn?(rn.width+rn.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),un=this.getAttribute("fr").getPixels();return en.createRadialGradient(cn,An,un,an,sn,dn)}}class StopElement extends Element$1{constructor(en,tn,nn){super(en,tn,nn),this.type="stop";var rn=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),an=this.getStyle("stop-opacity"),sn=this.getStyle("stop-color",!0);""===sn.getString()&&sn.setValue("#000"),an.hasValue()&&(sn=sn.addOpacity(an)),this.offset=rn,this.color=sn.getColor()}}class AnimateElement extends Element$1{constructor(en,tn,nn){super(en,tn,nn),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,en.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new Property(en,"values",null);var rn=this.getAttribute("values");rn.hasValue()&&this.values.setValue(rn.getString().split(";"))}getProperty(){var en=this.getAttribute("attributeType").getString(),tn=this.getAttribute("attributeName").getString();return"CSS"===en?this.parent.getStyle(tn,!0):this.parent.getAttribute(tn,!0)}calcValue(){var{initialUnits:en}=this,{progress:tn,from:nn,to:rn}=this.getProgress(),an=nn.getNumber()+(rn.getNumber()-nn.getNumber())*tn;return"%"===en&&(an*=100),"".concat(an).concat(en)}update(en){var{parent:tn}=this,nn=this.getProperty();if(this.initialValue||(this.initialValue=nn.getString(),this.initialUnits=nn.getUnits()),this.duration>this.maxDuration){var rn=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==rn||this.frozen){if("remove"===rn&&!this.removed)return this.removed=!0,nn.setValue(tn.animationFrozen?tn.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,tn.animationFrozen=!0,tn.animationFrozenValue=nn.getString();return!1}this.duration+=en;var an=!1;if(this.begin<this.duration){var sn=this.calcValue(),cn=this.getAttribute("type");if(cn.hasValue()){var An=cn.getString();sn="".concat(An,"(").concat(sn,")")}nn.setValue(sn),an=!0}return an}getProgress(){var{document:en,values:tn}=this,nn={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(tn.hasValue()){var rn=nn.progress*(tn.getValue().length-1),an=Math.floor(rn),sn=Math.ceil(rn);nn.from=new Property(en,"from",parseFloat(tn.getValue()[an])),nn.to=new Property(en,"to",parseFloat(tn.getValue()[sn])),nn.progress=(rn-an)/(sn-an)}else nn.from=this.from,nn.to=this.to;return nn}}class AnimateColorElement extends AnimateElement{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:en,from:tn,to:nn}=this.getProgress(),rn=new rgbcolor(tn.getColor()),an=new rgbcolor(nn.getColor());if(rn.ok&&an.ok){var sn=rn.r+(an.r-rn.r)*en,cn=rn.g+(an.g-rn.g)*en,An=rn.b+(an.b-rn.b)*en;return"rgb(".concat(Math.floor(sn),", ").concat(Math.floor(cn),", ").concat(Math.floor(An),")")}return this.getAttribute("from").getColor()}}class AnimateTransformElement extends AnimateElement{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:en,from:tn,to:nn}=this.getProgress(),rn=toNumbers(tn.getString()),an=toNumbers(nn.getString()),sn=rn.map(((tn,nn)=>tn+(an[nn]-tn)*en)).join(" ");return sn}}class FontElement extends Element$1{constructor(en,tn,nn){super(en,tn,nn),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:rn}=en,{children:an}=this;for(var sn of an)switch(sn.type){case"font-face":this.fontFace=sn;var cn=sn.getStyle("font-family");cn.hasValue()&&(rn[cn.getString()]=this);break;case"missing-glyph":this.missingGlyph=sn;break;case"glyph":var An=sn;An.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[An.unicode]&&(this.glyphs[An.unicode]={}),this.glyphs[An.unicode][An.arabicForm]=An):this.glyphs[An.unicode]=An}}render(){}}class FontFaceElement extends Element$1{constructor(en,tn,nn){super(en,tn,nn),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class MissingGlyphElement extends PathElement{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class TRefElement extends TextElement{constructor(){super(...arguments),this.type="tref"}getText(){var en=this.getHrefAttribute().getDefinition();if(en){var tn=en.children[0];if(tn)return tn.getText()}return""}}class AElement extends TextElement{constructor(en,tn,nn){super(en,tn,nn),this.type="a";var{childNodes:rn}=tn,an=rn[0],sn=rn.length>0&&Array.from(rn).every((en=>3===en.nodeType));this.hasText=sn,this.text=sn?this.getTextFromNode(an):""}getText(){return this.text}renderChildren(en){if(this.hasText){super.renderChildren(en);var{document:tn,x:nn,y:rn}=this,{mouse:an}=tn.screen,sn=new Property(tn,"fontSize",Font.parse(tn.ctx.font).fontSize);an.isWorking()&&an.checkBoundingBox(this,new BoundingBox(nn,rn-sn.getPixels("y"),nn+this.measureText(en),rn))}else if(this.children.length>0){var cn=new GElement(this.document,null);cn.children=this.children,cn.parent=this,cn.render(en)}}onClick(){var{window:en}=this.document;en&&en.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function ownKeys$2(en,tn){var nn=Object.keys(en);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(en);tn&&(rn=rn.filter((function(tn){return Object.getOwnPropertyDescriptor(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread$2(en){for(var tn=1;tn<arguments.length;tn++){var nn=null!=arguments[tn]?arguments[tn]:{};tn%2?ownKeys$2(Object(nn),!0).forEach((function(tn){_defineProperty(en,tn,nn[tn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(nn)):ownKeys$2(Object(nn)).forEach((function(tn){Object.defineProperty(en,tn,Object.getOwnPropertyDescriptor(nn,tn))}))}return en}class TextPathElement extends TextElement{constructor(en,tn,nn){super(en,tn,nn),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var rn=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(rn)}getText(){return this.text}path(en){var{dataArray:tn}=this;en&&en.beginPath(),tn.forEach((tn=>{var{type:nn,points:rn}=tn;switch(nn){case PathParser.LINE_TO:en&&en.lineTo(rn[0],rn[1]);break;case PathParser.MOVE_TO:en&&en.moveTo(rn[0],rn[1]);break;case PathParser.CURVE_TO:en&&en.bezierCurveTo(rn[0],rn[1],rn[2],rn[3],rn[4],rn[5]);break;case PathParser.QUAD_TO:en&&en.quadraticCurveTo(rn[0],rn[1],rn[2],rn[3]);break;case PathParser.ARC:var[an,sn,cn,An,dn,un,pn,hn]=rn,gn=cn>An?cn:An,_n=cn>An?1:cn/An,mn=cn>An?An/cn:1;en&&(en.translate(an,sn),en.rotate(pn),en.scale(_n,mn),en.arc(0,0,gn,dn,dn+un,Boolean(1-hn)),en.scale(1/_n,1/mn),en.rotate(-pn),en.translate(-an,-sn));break;case PathParser.CLOSE_PATH:en&&en.closePath()}}))}renderChildren(en){this.setTextData(en),en.save();var tn=this.parent.getStyle("text-decoration").getString(),nn=this.getFontSize(),{glyphInfo:rn}=this,an=en.fillStyle;"underline"===tn&&en.beginPath(),rn.forEach(((rn,an)=>{var{p0:sn,p1:cn,rotation:An,text:dn}=rn;en.save(),en.translate(sn.x,sn.y),en.rotate(An),en.fillStyle&&en.fillText(dn,0,0),en.strokeStyle&&en.strokeText(dn,0,0),en.restore(),"underline"===tn&&(0===an&&en.moveTo(sn.x,sn.y+nn/8),en.lineTo(cn.x,cn.y+nn/5))})),"underline"===tn&&(en.lineWidth=nn/20,en.strokeStyle=an,en.stroke(),en.closePath()),en.restore()}getLetterSpacingAt(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[en]||0}findSegmentToFitChar(en,tn,nn,rn,an,sn,cn,An,dn){var un=sn,pn=this.measureText(en,An);" "===An&&"justify"===tn&&nn<rn&&(pn+=(rn-nn)/an),dn>-1&&(un+=this.getLetterSpacingAt(dn));var hn=this.textHeight/20,gn=this.getEquidistantPointOnPath(un,hn,0),_n=this.getEquidistantPointOnPath(un+pn,hn,0),mn={p0:gn,p1:_n},fn=gn&&_n?Math.atan2(_n.y-gn.y,_n.x-gn.x):0;if(cn){var yn=Math.cos(Math.PI/2+fn)*cn,bn=Math.cos(-fn)*cn;mn.p0=_objectSpread$2(_objectSpread$2({},gn),{},{x:gn.x+yn,y:gn.y+bn}),mn.p1=_objectSpread$2(_objectSpread$2({},_n),{},{x:_n.x+yn,y:_n.y+bn})}return{offset:un+=pn,segment:mn,rotation:fn}}measureText(en,tn){var{measuresCache:nn}=this,rn=tn||this.getText();if(nn.has(rn))return nn.get(rn);var an=this.measureTargetText(en,rn);return nn.set(rn,an),an}setTextData(en){if(!this.glyphInfo){var tn=this.getText(),nn=tn.split(""),rn=tn.split(" ").length-1,an=this.parent.getAttribute("dx").split().map((en=>en.getPixels("x"))),sn=this.parent.getAttribute("dy").getPixels("y"),cn=this.parent.getStyle("text-anchor").getString("start"),An=this.getStyle("letter-spacing"),dn=this.parent.getStyle("letter-spacing"),un=0;An.hasValue()&&"inherit"!==An.getValue()?An.hasValue()&&"initial"!==An.getValue()&&"unset"!==An.getValue()&&(un=An.getPixels()):un=dn.getPixels();var pn=[],hn=tn.length;this.letterSpacingCache=pn;for(var gn=0;gn<hn;gn++)pn.push(void 0!==an[gn]?an[gn]:un);var _n=pn.reduce(((en,tn,nn)=>0===nn?0:en+tn||0),0),mn=this.measureText(en),fn=Math.max(mn+_n,0);this.textWidth=mn,this.textHeight=this.getFontSize(),this.glyphInfo=[];var yn=this.getPathLength(),bn=this.getStyle("startOffset").getNumber(0)*yn,vn=0;"middle"!==cn&&"center"!==cn||(vn=-fn/2),"end"!==cn&&"right"!==cn||(vn=-fn),vn+=bn,nn.forEach(((tn,an)=>{var{offset:An,segment:dn,rotation:un}=this.findSegmentToFitChar(en,cn,fn,yn,rn,vn,sn,tn,an);vn=An,dn.p0&&dn.p1&&this.glyphInfo.push({text:nn[an],p0:dn.p0,p1:dn.p1,rotation:un})}))}}parsePathData(en){if(this.pathLength=-1,!en)return[];var tn=[],{pathParser:nn}=en;for(nn.reset();!nn.isEnd();){var{current:rn}=nn,an=rn?rn.x:0,sn=rn?rn.y:0,cn=nn.next(),An=cn.type,dn=[];switch(cn.type){case PathParser.MOVE_TO:this.pathM(nn,dn);break;case PathParser.LINE_TO:An=this.pathL(nn,dn);break;case PathParser.HORIZ_LINE_TO:An=this.pathH(nn,dn);break;case PathParser.VERT_LINE_TO:An=this.pathV(nn,dn);break;case PathParser.CURVE_TO:this.pathC(nn,dn);break;case PathParser.SMOOTH_CURVE_TO:An=this.pathS(nn,dn);break;case PathParser.QUAD_TO:this.pathQ(nn,dn);break;case PathParser.SMOOTH_QUAD_TO:An=this.pathT(nn,dn);break;case PathParser.ARC:dn=this.pathA(nn);break;case PathParser.CLOSE_PATH:PathElement.pathZ(nn)}cn.type!==PathParser.CLOSE_PATH?tn.push({type:An,points:dn,start:{x:an,y:sn},pathLength:this.calcLength(an,sn,An,dn)}):tn.push({type:PathParser.CLOSE_PATH,points:[],pathLength:0})}return tn}pathM(en,tn){var{x:nn,y:rn}=PathElement.pathM(en).point;tn.push(nn,rn)}pathL(en,tn){var{x:nn,y:rn}=PathElement.pathL(en).point;return tn.push(nn,rn),PathParser.LINE_TO}pathH(en,tn){var{x:nn,y:rn}=PathElement.pathH(en).point;return tn.push(nn,rn),PathParser.LINE_TO}pathV(en,tn){var{x:nn,y:rn}=PathElement.pathV(en).point;return tn.push(nn,rn),PathParser.LINE_TO}pathC(en,tn){var{point:nn,controlPoint:rn,currentPoint:an}=PathElement.pathC(en);tn.push(nn.x,nn.y,rn.x,rn.y,an.x,an.y)}pathS(en,tn){var{point:nn,controlPoint:rn,currentPoint:an}=PathElement.pathS(en);return tn.push(nn.x,nn.y,rn.x,rn.y,an.x,an.y),PathParser.CURVE_TO}pathQ(en,tn){var{controlPoint:nn,currentPoint:rn}=PathElement.pathQ(en);tn.push(nn.x,nn.y,rn.x,rn.y)}pathT(en,tn){var{controlPoint:nn,currentPoint:rn}=PathElement.pathT(en);return tn.push(nn.x,nn.y,rn.x,rn.y),PathParser.QUAD_TO}pathA(en){var{rX:tn,rY:nn,sweepFlag:rn,xAxisRotation:an,centp:sn,a1:cn,ad:An}=PathElement.pathA(en);return 0===rn&&An>0&&(An-=2*Math.PI),1===rn&&An<0&&(An+=2*Math.PI),[sn.x,sn.y,tn,nn,cn,An,an,rn]}calcLength(en,tn,nn,rn){var an=0,sn=null,cn=null,An=0;switch(nn){case PathParser.LINE_TO:return this.getLineLength(en,tn,rn[0],rn[1]);case PathParser.CURVE_TO:for(an=0,sn=this.getPointOnCubicBezier(0,en,tn,rn[0],rn[1],rn[2],rn[3],rn[4],rn[5]),An=.01;An<=1;An+=.01)cn=this.getPointOnCubicBezier(An,en,tn,rn[0],rn[1],rn[2],rn[3],rn[4],rn[5]),an+=this.getLineLength(sn.x,sn.y,cn.x,cn.y),sn=cn;return an;case PathParser.QUAD_TO:for(an=0,sn=this.getPointOnQuadraticBezier(0,en,tn,rn[0],rn[1],rn[2],rn[3]),An=.01;An<=1;An+=.01)cn=this.getPointOnQuadraticBezier(An,en,tn,rn[0],rn[1],rn[2],rn[3]),an+=this.getLineLength(sn.x,sn.y,cn.x,cn.y),sn=cn;return an;case PathParser.ARC:an=0;var dn=rn[4],un=rn[5],pn=rn[4]+un,hn=Math.PI/180;if(Math.abs(dn-pn)<hn&&(hn=Math.abs(dn-pn)),sn=this.getPointOnEllipticalArc(rn[0],rn[1],rn[2],rn[3],dn,0),un<0)for(An=dn-hn;An>pn;An-=hn)cn=this.getPointOnEllipticalArc(rn[0],rn[1],rn[2],rn[3],An,0),an+=this.getLineLength(sn.x,sn.y,cn.x,cn.y),sn=cn;else for(An=dn+hn;An<pn;An+=hn)cn=this.getPointOnEllipticalArc(rn[0],rn[1],rn[2],rn[3],An,0),an+=this.getLineLength(sn.x,sn.y,cn.x,cn.y),sn=cn;return cn=this.getPointOnEllipticalArc(rn[0],rn[1],rn[2],rn[3],pn,0),an+this.getLineLength(sn.x,sn.y,cn.x,cn.y)}return 0}getPointOnLine(en,tn,nn,rn,an){var sn=arguments.length>5&&void 0!==arguments[5]?arguments[5]:tn,cn=arguments.length>6&&void 0!==arguments[6]?arguments[6]:nn,An=(an-nn)/(rn-tn+1e-8),dn=Math.sqrt(en*en/(1+An*An));rn<tn&&(dn*=-1);var un=An*dn,pn=null;if(rn===tn)pn={x:sn,y:cn+un};else if((cn-nn)/(sn-tn+1e-8)===An)pn={x:sn+dn,y:cn+un};else{var hn,gn,_n=this.getLineLength(tn,nn,rn,an);if(_n<1e-8)return null;var mn=(sn-tn)*(rn-tn)+(cn-nn)*(an-nn);hn=tn+(mn/=_n*_n)*(rn-tn),gn=nn+mn*(an-nn);var fn=this.getLineLength(sn,cn,hn,gn),yn=Math.sqrt(en*en-fn*fn);dn=Math.sqrt(yn*yn/(1+An*An)),rn<tn&&(dn*=-1),pn={x:hn+dn,y:gn+(un=An*dn)}}return pn}getPointOnPath(en){var tn=this.getPathLength(),nn=0,rn=null;if(en<-5e-5||en-5e-5>tn)return null;var{dataArray:an}=this;for(var sn of an){if(!sn||!(sn.pathLength<5e-5||nn+sn.pathLength+5e-5<en)){var cn=en-nn,An=0;switch(sn.type){case PathParser.LINE_TO:rn=this.getPointOnLine(cn,sn.start.x,sn.start.y,sn.points[0],sn.points[1],sn.start.x,sn.start.y);break;case PathParser.ARC:var dn=sn.points[4],un=sn.points[5],pn=sn.points[4]+un;if(An=dn+cn/sn.pathLength*un,un<0&&An<pn||un>=0&&An>pn)break;rn=this.getPointOnEllipticalArc(sn.points[0],sn.points[1],sn.points[2],sn.points[3],An,sn.points[6]);break;case PathParser.CURVE_TO:(An=cn/sn.pathLength)>1&&(An=1),rn=this.getPointOnCubicBezier(An,sn.start.x,sn.start.y,sn.points[0],sn.points[1],sn.points[2],sn.points[3],sn.points[4],sn.points[5]);break;case PathParser.QUAD_TO:(An=cn/sn.pathLength)>1&&(An=1),rn=this.getPointOnQuadraticBezier(An,sn.start.x,sn.start.y,sn.points[0],sn.points[1],sn.points[2],sn.points[3])}if(rn)return rn;break}nn+=sn.pathLength}return null}getLineLength(en,tn,nn,rn){return Math.sqrt((nn-en)*(nn-en)+(rn-tn)*(rn-tn))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((en,tn)=>tn.pathLength>0?en+tn.pathLength:en),0)),this.pathLength}getPointOnCubicBezier(en,tn,nn,rn,an,sn,cn,An,dn){return{x:An*CB1(en)+sn*CB2(en)+rn*CB3(en)+tn*CB4(en),y:dn*CB1(en)+cn*CB2(en)+an*CB3(en)+nn*CB4(en)}}getPointOnQuadraticBezier(en,tn,nn,rn,an,sn,cn){return{x:sn*QB1(en)+rn*QB2(en)+tn*QB3(en),y:cn*QB1(en)+an*QB2(en)+nn*QB3(en)}}getPointOnEllipticalArc(en,tn,nn,rn,an,sn){var cn=Math.cos(sn),An=Math.sin(sn),dn=nn*Math.cos(an),un=rn*Math.sin(an);return{x:en+(dn*cn-un*An),y:tn+(dn*An+un*cn)}}buildEquidistantCache(en,tn){var nn=this.getPathLength(),rn=tn||.25,an=en||nn/100;if(!this.equidistantCache||this.equidistantCache.step!==an||this.equidistantCache.precision!==rn){this.equidistantCache={step:an,precision:rn,points:[]};for(var sn=0,cn=0;cn<=nn;cn+=rn){var An=this.getPointOnPath(cn),dn=this.getPointOnPath(cn+rn);An&&dn&&(sn+=this.getLineLength(An.x,An.y,dn.x,dn.y))>=an&&(this.equidistantCache.points.push({x:An.x,y:An.y,distance:cn}),sn-=an)}}}getEquidistantPointOnPath(en,tn,nn){if(this.buildEquidistantCache(tn,nn),en<0||en-this.getPathLength()>5e-5)return null;var rn=Math.round(en/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[rn]||null}}var TC=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class ImageElement extends RenderedElement{constructor(en,tn,nn){super(en,tn,nn),this.type="image",this.loaded=!1;var rn=this.getHrefAttribute().getString();if(rn){var an=rn.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(rn);en.images.push(this),an?this.loadSvg(rn):this.loadImage(rn),this.isSvg=an}}loadImage(en){var tn=this;return _asyncToGenerator((function*(){try{var nn=yield tn.document.createImage(en);tn.image=nn}catch(tn){console.error('Error while loading image "'.concat(en,'":'),tn)}tn.loaded=!0}))()}loadSvg(en){var tn=this;return _asyncToGenerator((function*(){var nn=TC.exec(en);if(nn){var rn=nn[5];"base64"===nn[4]?tn.image=atob(rn):tn.image=decodeURIComponent(rn)}else try{var an=yield tn.document.fetch(en),sn=yield an.text();tn.image=sn}catch(tn){console.error('Error while loading image "'.concat(en,'":'),tn)}tn.loaded=!0}))()}renderChildren(en){var{document:tn,image:nn,loaded:rn}=this,an=this.getAttribute("x").getPixels("x"),sn=this.getAttribute("y").getPixels("y"),cn=this.getStyle("width").getPixels("x"),An=this.getStyle("height").getPixels("y");if(rn&&nn&&cn&&An){if(en.save(),en.translate(an,sn),this.isSvg){var dn=tn.canvg.forkString(en,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:cn,scaleHeight:An});dn.document.documentElement.parent=this,dn.render()}else{var un=this.image;tn.setViewBox({ctx:en,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:cn,desiredWidth:un.width,height:An,desiredHeight:un.height}),this.loaded&&(void 0===un.complete||un.complete)&&en.drawImage(un,0,0)}en.restore()}}getBoundingBox(){var en=this.getAttribute("x").getPixels("x"),tn=this.getAttribute("y").getPixels("y"),nn=this.getStyle("width").getPixels("x"),rn=this.getStyle("height").getPixels("y");return new BoundingBox(en,tn,en+nn,tn+rn)}}class SymbolElement extends RenderedElement{constructor(){super(...arguments),this.type="symbol"}render(en){}}class SVGFontLoader{constructor(en){this.document=en,this.loaded=!1,en.fonts.push(this)}load(en,tn){var nn=this;return _asyncToGenerator((function*(){try{var{document:rn}=nn,an=(yield rn.canvg.parser.load(tn)).getElementsByTagName("font");Array.from(an).forEach((tn=>{var nn=rn.createElement(tn);rn.definitions[en]=nn}))}catch(en){console.error('Error while loading font "'.concat(tn,'":'),en)}nn.loaded=!0}))()}}class StyleElement extends Element$1{constructor(en,tn,nn){super(en,tn,nn),this.type="style";var rn=compressSpaces(Array.from(tn.childNodes).map((en=>en.textContent)).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,""));rn.split("}").forEach((tn=>{var nn=tn.trim();if(nn){var rn=nn.split("{"),an=rn[0].split(","),sn=rn[1].split(";");an.forEach((tn=>{var nn=tn.trim();if(nn){var rn=en.styles[nn]||{};if(sn.forEach((tn=>{var nn=tn.indexOf(":"),an=tn.substr(0,nn).trim(),sn=tn.substr(nn+1,tn.length-nn).trim();an&&sn&&(rn[an]=new Property(en,an,sn))})),en.styles[nn]=rn,en.stylesSpecificity[nn]=getSelectorSpecificity(nn),"@font-face"===nn){var an=rn["font-family"].getString().replace(/"|'/g,"");rn.src.getString().split(",").forEach((tn=>{if(tn.indexOf('format("svg")')>0){var nn=parseExternalUrl(tn);nn&&new SVGFontLoader(en).load(an,nn)}}))}}}))}}))}}StyleElement.parseExternalUrl=parseExternalUrl;class UseElement extends RenderedElement{constructor(){super(...arguments),this.type="use"}setContext(en){super.setContext(en);var tn=this.getAttribute("x"),nn=this.getAttribute("y");tn.hasValue()&&en.translate(tn.getPixels("x"),0),nn.hasValue()&&en.translate(0,nn.getPixels("y"))}path(en){var{element:tn}=this;tn&&tn.path(en)}renderChildren(en){var{document:tn,element:nn}=this;if(nn){var rn=nn;if("symbol"===nn.type&&((rn=new SVGElement$1(tn,null)).attributes.viewBox=new Property(tn,"viewBox",nn.getAttribute("viewBox").getString()),rn.attributes.preserveAspectRatio=new Property(tn,"preserveAspectRatio",nn.getAttribute("preserveAspectRatio").getString()),rn.attributes.overflow=new Property(tn,"overflow",nn.getAttribute("overflow").getString()),rn.children=nn.children,nn.styles.opacity=new Property(tn,"opacity",this.calculateOpacity())),"svg"===rn.type){var an=this.getStyle("width",!1,!0),sn=this.getStyle("height",!1,!0);an.hasValue()&&(rn.attributes.width=new Property(tn,"width",an.getString())),sn.hasValue()&&(rn.attributes.height=new Property(tn,"height",sn.getString()))}var cn=rn.parent;rn.parent=this,rn.render(en),rn.parent=cn}}getBoundingBox(en){var{element:tn}=this;return tn?tn.getBoundingBox(en):null}elementTransform(){var{document:en,element:tn}=this;return Transform.fromElement(en,tn)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function imGet(en,tn,nn,rn,an,sn){return en[nn*rn*4+4*tn+sn]}function imSet(en,tn,nn,rn,an,sn,cn){en[nn*rn*4+4*tn+sn]=cn}function m(en,tn,nn){return en[tn]*nn}function c(en,tn,nn,rn){return tn+Math.cos(en)*nn+Math.sin(en)*rn}class FeColorMatrixElement extends Element$1{constructor(en,tn,nn){super(en,tn,nn),this.type="feColorMatrix";var rn=toNumbers(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var an=rn[0];rn=[.213+.787*an,.715-.715*an,.072-.072*an,0,0,.213-.213*an,.715+.285*an,.072-.072*an,0,0,.213-.213*an,.715-.715*an,.072+.928*an,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var sn=rn[0]*Math.PI/180;rn=[c(sn,.213,.787,-.213),c(sn,.715,-.715,-.715),c(sn,.072,-.072,.928),0,0,c(sn,.213,-.213,.143),c(sn,.715,.285,.14),c(sn,.072,-.072,-.283),0,0,c(sn,.213,-.213,-.787),c(sn,.715,-.715,.715),c(sn,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":rn=[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]}this.matrix=rn,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(en,tn,nn,rn,an){for(var{includeOpacity:sn,matrix:cn}=this,An=en.getImageData(0,0,rn,an),dn=0;dn<an;dn++)for(var un=0;un<rn;un++){var pn=imGet(An.data,un,dn,rn,0,0),hn=imGet(An.data,un,dn,rn,0,1),gn=imGet(An.data,un,dn,rn,0,2),_n=imGet(An.data,un,dn,rn,0,3),mn=m(cn,0,pn)+m(cn,1,hn)+m(cn,2,gn)+m(cn,3,_n)+m(cn,4,1),fn=m(cn,5,pn)+m(cn,6,hn)+m(cn,7,gn)+m(cn,8,_n)+m(cn,9,1),yn=m(cn,10,pn)+m(cn,11,hn)+m(cn,12,gn)+m(cn,13,_n)+m(cn,14,1),bn=m(cn,15,pn)+m(cn,16,hn)+m(cn,17,gn)+m(cn,18,_n)+m(cn,19,1);sn&&(mn=0,fn=0,yn=0,bn*=_n/255),imSet(An.data,un,dn,rn,0,0,mn),imSet(An.data,un,dn,rn,0,1,fn),imSet(An.data,un,dn,rn,0,2,yn),imSet(An.data,un,dn,rn,0,3,bn)}en.clearRect(0,0,rn,an),en.putImageData(An,0,0)}}class MaskElement extends Element$1{constructor(){super(...arguments),this.type="mask"}apply(en,tn){var{document:nn}=this,rn=this.getAttribute("x").getPixels("x"),an=this.getAttribute("y").getPixels("y"),sn=this.getStyle("width").getPixels("x"),cn=this.getStyle("height").getPixels("y");if(!sn&&!cn){var An=new BoundingBox;this.children.forEach((tn=>{An.addBoundingBox(tn.getBoundingBox(en))})),rn=Math.floor(An.x1),an=Math.floor(An.y1),sn=Math.floor(An.width),cn=Math.floor(An.height)}var dn=this.removeStyles(tn,MaskElement.ignoreStyles),un=nn.createCanvas(rn+sn,an+cn),pn=un.getContext("2d");nn.screen.setDefaults(pn),this.renderChildren(pn),new FeColorMatrixElement(nn,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(pn,0,0,rn+sn,an+cn);var hn=nn.createCanvas(rn+sn,an+cn),gn=hn.getContext("2d");nn.screen.setDefaults(gn),tn.render(gn),gn.globalCompositeOperation="destination-in",gn.fillStyle=pn.createPattern(un,"no-repeat"),gn.fillRect(0,0,rn+sn,an+cn),en.fillStyle=gn.createPattern(hn,"no-repeat"),en.fillRect(0,0,rn+sn,an+cn),this.restoreStyles(tn,dn)}render(en){}}MaskElement.ignoreStyles=["mask","transform","clip-path"];var noop=()=>{};class ClipPathElement extends Element$1{constructor(){super(...arguments),this.type="clipPath"}apply(en){var{document:tn}=this,nn=Reflect.getPrototypeOf(en),{beginPath:rn,closePath:an}=en;nn&&(nn.beginPath=noop,nn.closePath=noop),Reflect.apply(rn,en,[]),this.children.forEach((rn=>{if(void 0!==rn.path){var sn=void 0!==rn.elementTransform?rn.elementTransform():null;sn||(sn=Transform.fromElement(tn,rn)),sn&&sn.apply(en),rn.path(en),nn&&(nn.closePath=an),sn&&sn.unapply(en)}})),Reflect.apply(an,en,[]),en.clip(),nn&&(nn.beginPath=rn,nn.closePath=an)}render(en){}}class FilterElement extends Element$1{constructor(){super(...arguments),this.type="filter"}apply(en,tn){var{document:nn,children:rn}=this,an=tn.getBoundingBox(en);if(an){var sn=0,cn=0;rn.forEach((en=>{var tn=en.extraFilterDistance||0;sn=Math.max(sn,tn),cn=Math.max(cn,tn)}));var An=Math.floor(an.width),dn=Math.floor(an.height),un=An+2*sn,pn=dn+2*cn;if(!(un<1||pn<1)){var hn=Math.floor(an.x),gn=Math.floor(an.y),_n=this.removeStyles(tn,FilterElement.ignoreStyles),mn=nn.createCanvas(un,pn),fn=mn.getContext("2d");nn.screen.setDefaults(fn),fn.translate(-hn+sn,-gn+cn),tn.render(fn),rn.forEach((en=>{"function"==typeof en.apply&&en.apply(fn,0,0,un,pn)})),en.drawImage(mn,0,0,un,pn,hn-sn,gn-cn,un,pn),this.restoreStyles(tn,_n)}}}render(en){}}FilterElement.ignoreStyles=["filter","transform","clip-path"];class FeDropShadowElement extends Element$1{constructor(en,tn,nn){super(en,tn,nn),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(en,tn,nn,rn,an){}}class FeMorphologyElement extends Element$1{constructor(){super(...arguments),this.type="feMorphology"}apply(en,tn,nn,rn,an){}}class FeCompositeElement extends Element$1{constructor(){super(...arguments),this.type="feComposite"}apply(en,tn,nn,rn,an){}}class FeGaussianBlurElement extends Element$1{constructor(en,tn,nn){super(en,tn,nn),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(en,tn,nn,rn,an){var{document:sn,blurRadius:cn}=this,An=sn.window?sn.window.document.body:null,dn=en.canvas;dn.id=sn.getUniqueId(),An&&(dn.style.display="none",An.appendChild(dn)),function processCanvasRGBA(en,tn,nn,rn,an,sn){if(!(isNaN(sn)||sn<1)){sn|=0;var cn=function getImageDataFromCanvas(en,tn,nn,rn,an){if("string"==typeof en&&(en=document.getElementById(en)),!en||"object"!==_typeof(en)||!("getContext"in en))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var sn=en.getContext("2d");try{return sn.getImageData(tn,nn,rn,an)}catch(en){throw new Error("unable to access image data: "+en)}}(en,tn,nn,rn,an);cn=function processImageDataRGBA(en,tn,nn,rn,an,sn){for(var cn,An=en.data,dn=2*sn+1,un=rn-1,pn=an-1,hn=sn+1,gn=hn*(hn+1)/2,_n=new fC,mn=_n,fn=1;fn<dn;fn++)mn=mn.next=new fC,fn===hn&&(cn=mn);mn.next=_n;for(var yn=null,bn=null,vn=0,wn=0,xn=_C[sn],kn=mC[sn],Cn=0;Cn<an;Cn++){mn=_n;for(var Sn=An[wn],Bn=An[wn+1],En=An[wn+2],jn=An[wn+3],Ln=0;Ln<hn;Ln++)mn.r=Sn,mn.g=Bn,mn.b=En,mn.a=jn,mn=mn.next;for(var Pn=0,Tn=0,Fn=0,Un=0,Nn=hn*Sn,In=hn*Bn,Mn=hn*En,Rn=hn*jn,On=gn*Sn,Qn=gn*Bn,qn=gn*En,Vn=gn*jn,Gn=1;Gn<hn;Gn++){var Dn=wn+((un<Gn?un:Gn)<<2),Hn=An[Dn],zn=An[Dn+1],Kn=An[Dn+2],$n=An[Dn+3],Wn=hn-Gn;On+=(mn.r=Hn)*Wn,Qn+=(mn.g=zn)*Wn,qn+=(mn.b=Kn)*Wn,Vn+=(mn.a=$n)*Wn,Pn+=Hn,Tn+=zn,Fn+=Kn,Un+=$n,mn=mn.next}yn=_n,bn=cn;for(var Xn=0;Xn<rn;Xn++){var Yn=Vn*xn>>kn;if(An[wn+3]=Yn,0!==Yn){var Zn=255/Yn;An[wn]=(On*xn>>kn)*Zn,An[wn+1]=(Qn*xn>>kn)*Zn,An[wn+2]=(qn*xn>>kn)*Zn}else An[wn]=An[wn+1]=An[wn+2]=0;On-=Nn,Qn-=In,qn-=Mn,Vn-=Rn,Nn-=yn.r,In-=yn.g,Mn-=yn.b,Rn-=yn.a;var Jn=Xn+sn+1;Jn=vn+(Jn<un?Jn:un)<<2,On+=Pn+=yn.r=An[Jn],Qn+=Tn+=yn.g=An[Jn+1],qn+=Fn+=yn.b=An[Jn+2],Vn+=Un+=yn.a=An[Jn+3],yn=yn.next;var Tr=bn,Ur=Tr.r,Rr=Tr.g,Qr=Tr.b,Vr=Tr.a;Nn+=Ur,In+=Rr,Mn+=Qr,Rn+=Vr,Pn-=Ur,Tn-=Rr,Fn-=Qr,Un-=Vr,bn=bn.next,wn+=4}vn+=rn}for(var Gr=0;Gr<rn;Gr++){var Dr=An[wn=Gr<<2],Hr=An[wn+1],zr=An[wn+2],Kr=An[wn+3],$r=hn*Dr,Wr=hn*Hr,Xr=hn*zr,Yr=hn*Kr,Zr=gn*Dr,Jr=gn*Hr,eo=gn*zr,to=gn*Kr;mn=_n;for(var no=0;no<hn;no++)mn.r=Dr,mn.g=Hr,mn.b=zr,mn.a=Kr,mn=mn.next;for(var ro=rn,oo=0,io=0,ao=0,so=0,lo=1;lo<=sn;lo++){wn=ro+Gr<<2;var co=hn-lo;Zr+=(mn.r=Dr=An[wn])*co,Jr+=(mn.g=Hr=An[wn+1])*co,eo+=(mn.b=zr=An[wn+2])*co,to+=(mn.a=Kr=An[wn+3])*co,so+=Dr,oo+=Hr,io+=zr,ao+=Kr,mn=mn.next,lo<pn&&(ro+=rn)}wn=Gr,yn=_n,bn=cn;for(var Ao=0;Ao<an;Ao++){var uo=wn<<2;An[uo+3]=Kr=to*xn>>kn,Kr>0?(Kr=255/Kr,An[uo]=(Zr*xn>>kn)*Kr,An[uo+1]=(Jr*xn>>kn)*Kr,An[uo+2]=(eo*xn>>kn)*Kr):An[uo]=An[uo+1]=An[uo+2]=0,Zr-=$r,Jr-=Wr,eo-=Xr,to-=Yr,$r-=yn.r,Wr-=yn.g,Xr-=yn.b,Yr-=yn.a,uo=Gr+((uo=Ao+hn)<pn?uo:pn)*rn<<2,Zr+=so+=yn.r=An[uo],Jr+=oo+=yn.g=An[uo+1],eo+=io+=yn.b=An[uo+2],to+=ao+=yn.a=An[uo+3],yn=yn.next,$r+=Dr=bn.r,Wr+=Hr=bn.g,Xr+=zr=bn.b,Yr+=Kr=bn.a,so-=Dr,oo-=Hr,io-=zr,ao-=Kr,bn=bn.next,wn+=rn}}return en}(cn,0,0,rn,an,sn),en.getContext("2d").putImageData(cn,tn,nn)}}(dn,tn,nn,rn,an,cn),An&&An.removeChild(dn)}}class TitleElement extends Element$1{constructor(){super(...arguments),this.type="title"}}class DescElement extends Element$1{constructor(){super(...arguments),this.type="desc"}}var FC={svg:SVGElement$1,rect:RectElement,circle:CircleElement,ellipse:EllipseElement,line:LineElement,polyline:PolylineElement,polygon:PolygonElement,path:PathElement,pattern:PatternElement,marker:MarkerElement,defs:DefsElement,linearGradient:LinearGradientElement,radialGradient:RadialGradientElement,stop:StopElement,animate:AnimateElement,animateColor:AnimateColorElement,animateTransform:AnimateTransformElement,font:FontElement,"font-face":FontFaceElement,"missing-glyph":MissingGlyphElement,glyph:GlyphElement,text:TextElement,tspan:TSpanElement,tref:TRefElement,a:AElement,textPath:TextPathElement,image:ImageElement,g:GElement,symbol:SymbolElement,style:StyleElement,use:UseElement,mask:MaskElement,clipPath:ClipPathElement,filter:FilterElement,feDropShadow:FeDropShadowElement,feMorphology:FeMorphologyElement,feComposite:FeCompositeElement,feColorMatrix:FeColorMatrixElement,feGaussianBlur:FeGaussianBlurElement,title:TitleElement,desc:DescElement};function ownKeys$1(en,tn){var nn=Object.keys(en);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(en);tn&&(rn=rn.filter((function(tn){return Object.getOwnPropertyDescriptor(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _createImage(){return _createImage=_asyncToGenerator((function*(en){var tn=arguments.length>1&&void 0!==arguments[1]&&arguments[1],nn=document.createElement("img");return tn&&(nn.crossOrigin="Anonymous"),new Promise(((tn,rn)=>{nn.onload=()=>{tn(nn)},nn.onerror=(en,tn,nn,an,sn)=>{rn(sn)},nn.src=en}))})),_createImage.apply(this,arguments)}class Document{constructor(en){var{rootEmSize:tn=12,emSize:nn=12,createCanvas:rn=Document.createCanvas,createImage:an=Document.createImage,anonymousCrossOrigin:sn}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=en,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=en.screen,this.rootEmSize=tn,this.emSize=nn,this.createCanvas=rn,this.createImage=this.bindCreateImage(an,sn),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(en,tn){return"boolean"==typeof tn?(nn,rn)=>en(nn,"boolean"==typeof rn?rn:tn):en}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:en}=this;return en[en.length-1]}set emSize(en){var{emSizeStack:tn}=this;tn.push(en)}popEmSize(){var{emSizeStack:en}=this;en.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every((en=>en.loaded))}isFontsLoaded(){return this.fonts.every((en=>en.loaded))}createDocumentElement(en){var tn=this.createElement(en.documentElement);return tn.root=!0,tn.addStylesFromStyleDefinition(),this.documentElement=tn,tn}createElement(en){var tn=en.nodeName.replace(/^[^:]+:/,""),nn=Document.elementTypes[tn];return void 0!==nn?new nn(this,en):new UnknownElement(this,en)}createTextNode(en){return new TextNode(this,en)}setViewBox(en){this.screen.setViewBox(function _objectSpread$1(en){for(var tn=1;tn<arguments.length;tn++){var nn=null!=arguments[tn]?arguments[tn]:{};tn%2?ownKeys$1(Object(nn),!0).forEach((function(tn){_defineProperty(en,tn,nn[tn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(nn)):ownKeys$1(Object(nn)).forEach((function(tn){Object.defineProperty(en,tn,Object.getOwnPropertyDescriptor(nn,tn))}))}return en}({document:this},en))}}function ownKeys(en,tn){var nn=Object.keys(en);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(en);tn&&(rn=rn.filter((function(tn){return Object.getOwnPropertyDescriptor(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread(en){for(var tn=1;tn<arguments.length;tn++){var nn=null!=arguments[tn]?arguments[tn]:{};tn%2?ownKeys(Object(nn),!0).forEach((function(tn){_defineProperty(en,tn,nn[tn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(nn)):ownKeys(Object(nn)).forEach((function(tn){Object.defineProperty(en,tn,Object.getOwnPropertyDescriptor(nn,tn))}))}return en}Document.createCanvas=function createCanvas(en,tn){var nn=document.createElement("canvas");return nn.width=en,nn.height=tn,nn},Document.createImage=function createImage(en){return _createImage.apply(this,arguments)},Document.elementTypes=FC;class Canvg{constructor(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Parser(nn),this.screen=new Screen(en,nn),this.options=nn;var rn=new Document(this,nn),an=rn.createDocumentElement(tn);this.document=rn,this.documentElement=an}static from(en,tn){var nn=arguments;return _asyncToGenerator((function*(){var rn=nn.length>2&&void 0!==nn[2]?nn[2]:{},an=new Parser(rn),sn=yield an.parse(tn);return new Canvg(en,sn,rn)}))()}static fromString(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},rn=new Parser(nn).parseFromString(tn);return new Canvg(en,rn,nn)}fork(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(en,tn,_objectSpread(_objectSpread({},this.options),nn))}forkString(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(en,tn,_objectSpread(_objectSpread({},this.options),nn))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var en=arguments,tn=this;return _asyncToGenerator((function*(){var nn=en.length>0&&void 0!==en[0]?en[0]:{};tn.start(_objectSpread({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},nn)),yield tn.ready(),tn.stop()}))()}start(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:tn,screen:nn,options:rn}=this;nn.start(tn,_objectSpread(_objectSpread({enableRedraw:!0},rn),en))}stop(){this.screen.stop()}resize(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en,nn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(en,tn,nn)}}var UC=Object.freeze({__proto__:null,AElement:AElement,AnimateColorElement:AnimateColorElement,AnimateElement:AnimateElement,AnimateTransformElement:AnimateTransformElement,BoundingBox:BoundingBox,CB1:CB1,CB2:CB2,CB3:CB3,CB4:CB4,Canvg:Canvg,CircleElement:CircleElement,ClipPathElement:ClipPathElement,DefsElement:DefsElement,DescElement:DescElement,Document:Document,Element:Element$1,EllipseElement:EllipseElement,FeColorMatrixElement:FeColorMatrixElement,FeCompositeElement:FeCompositeElement,FeDropShadowElement:FeDropShadowElement,FeGaussianBlurElement:FeGaussianBlurElement,FeMorphologyElement:FeMorphologyElement,FilterElement:FilterElement,Font:Font,FontElement:FontElement,FontFaceElement:FontFaceElement,GElement:GElement,GlyphElement:GlyphElement,GradientElement:GradientElement,ImageElement:ImageElement,LineElement:LineElement,LinearGradientElement:LinearGradientElement,MarkerElement:MarkerElement,MaskElement:MaskElement,Matrix:Matrix,MissingGlyphElement:MissingGlyphElement,Mouse:Mouse,PSEUDO_ZERO:1e-8,Parser:Parser,PathElement:PathElement,PathParser:PathParser,PatternElement:PatternElement,Point:Point,PolygonElement:PolygonElement,PolylineElement:PolylineElement,Property:Property,QB1:QB1,QB2:QB2,QB3:QB3,RadialGradientElement:RadialGradientElement,RectElement:RectElement,RenderedElement:RenderedElement,Rotate:Rotate,SVGElement:SVGElement$1,SVGFontLoader:SVGFontLoader,Scale:Scale,Screen:Screen,Skew:Skew,SkewX:SkewX,SkewY:SkewY,StopElement:StopElement,StyleElement:StyleElement,SymbolElement:SymbolElement,TRefElement:TRefElement,TSpanElement:TSpanElement,TextElement:TextElement,TextPathElement:TextPathElement,TitleElement:TitleElement,Transform:Transform,Translate:Translate,UnknownElement:UnknownElement,UseElement:UseElement,ViewPort:ViewPort,compressSpaces:compressSpaces,default:Canvg,getSelectorSpecificity:getSelectorSpecificity,normalizeAttributeName:normalizeAttributeName,normalizeColor:normalizeColor,parseExternalUrl:parseExternalUrl,presets:yC,toNumbers:toNumbers,trimLeft:trimLeft,trimRight:trimRight,vectorMagnitude:vectorMagnitude,vectorsAngle:vectorsAngle,vectorsRatio:vectorsRatio});function toFixedNumeric$1(en,tn){return void 0===tn&&(tn=0),Math.round(en*10**tn)/10**tn}class ColorValuePicker{constructor(en,tn,nn,rn){const an=this,sn=en.querySelectorAll("td.Text input");function keyDown(en){if(""!==en.target.value||en.target===_n||(!nn||en.target===nn)&&nn){if(!validateKey(en))return en;switch(en.target){case cn:switch(en.keyCode){case 38:return cn.value=setValueInRange.call(an,1+(cn.value<<0),0,255),tn.val("r",cn.value,en.target),!1;case 40:return cn.value=setValueInRange.call(an,(cn.value<<0)-1,0,255),tn.val("r",cn.value,en.target),!1}break;case An:switch(en.keyCode){case 38:return An.value=setValueInRange.call(an,1+(An.value<<0),0,255),tn.val("g",An.value,en.target),!1;case 40:return An.value=setValueInRange.call(an,(An.value<<0)-1,0,255),tn.val("g",An.value,en.target),!1}break;case dn:switch(en.keyCode){case 38:return dn.value=setValueInRange.call(an,1+(dn.value<<0),0,255),tn.val("b",dn.value,en.target),!1;case 40:return dn.value=setValueInRange.call(an,(dn.value<<0)-1,0,255),tn.val("b",dn.value,en.target),!1}break;case un:switch(en.keyCode){case 38:return un.value=setValueInRange.call(an,Number.parseFloat(un.value)+1,0,100),tn.val("a",toFixedNumeric$1(255*un.value/100,rn),en.target),!1;case 40:return un.value=setValueInRange.call(an,Number.parseFloat(un.value)-1,0,100),tn.val("a",toFixedNumeric$1(255*un.value/100,rn),en.target),!1}break;case pn:switch(en.keyCode){case 38:return pn.value=setValueInRange.call(an,1+(pn.value<<0),0,360),tn.val("h",pn.value,en.target),!1;case 40:return pn.value=setValueInRange.call(an,(pn.value<<0)-1,0,360),tn.val("h",pn.value,en.target),!1}break;case hn:switch(en.keyCode){case 38:return hn.value=setValueInRange.call(an,1+(hn.value<<0),0,100),tn.val("s",hn.value,en.target),!1;case 40:return hn.value=setValueInRange.call(an,(hn.value<<0)-1,0,100),tn.val("s",hn.value,en.target),!1}break;case gn:switch(en.keyCode){case 38:return gn.value=setValueInRange.call(an,1+(gn.value<<0),0,100),tn.val("v",gn.value,en.target),!1;case 40:return gn.value=setValueInRange.call(an,(gn.value<<0)-1,0,100),tn.val("v",gn.value,en.target),!1}}}}function keyUp(en){if(""!==en.target.value||en.target===_n||(!nn||en.target===nn)&&nn){if(!validateKey(en))return en;switch(en.target){case cn:cn.value=setValueInRange.call(an,cn.value,0,255),tn.val("r",cn.value,en.target);break;case An:An.value=setValueInRange.call(an,An.value,0,255),tn.val("g",An.value,en.target);break;case dn:dn.value=setValueInRange.call(an,dn.value,0,255),tn.val("b",dn.value,en.target);break;case un:un.value=setValueInRange.call(an,un.value,0,100),tn.val("a",toFixedNumeric$1(255*un.value/100,rn),en.target);break;case pn:pn.value=setValueInRange.call(an,pn.value,0,360),tn.val("h",pn.value,en.target);break;case hn:hn.value=setValueInRange.call(an,hn.value,0,100),tn.val("s",hn.value,en.target);break;case gn:gn.value=setValueInRange.call(an,gn.value,0,100),tn.val("v",gn.value,en.target);break;case _n:_n.value=_n.value.replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6),nn&&nn.val(_n.value),tn.val("hex",""!==_n.value?_n.value:null,en.target);break;case nn:nn.value=nn.value.replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6),_n.val(nn.value),tn.val("hex",""!==nn.value?nn.value:null,en.target);break;case mn:mn.value=mn.value.replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,2),tn.val("a",mn.value?Number.parseInt(mn.value,16):null,en.target)}}}function blur(en){if(tn.value)switch(en.target){case cn:tn.value="r",cn.value=tn.value;break;case An:tn.value="g",An.value=tn.value;break;case dn:tn.value="b",dn.value=tn.value;break;case un:tn.value="a",un.value=toFixedNumeric$1(100*tn.value/255,rn);break;case pn:tn.value="h",pn.value=tn.value;break;case hn:tn.value="s",hn.value=tn.value;break;case gn:tn.value="v",gn.value=tn.value;break;case _n:case nn:tn.value="hex",_n.value=tn.value,nn.value=tn.value;break;case mn:tn.value="ahex",mn.value=tn.value.substring(6)}}function validateKey(en){switch(en.keyCode){case 9:case 16:case 29:case 37:case 39:return!1;case"c".charCodeAt():case"v".charCodeAt():if(en.ctrlKey)return!1}return!0}function setValueInRange(en,tn,nn){return""===en||isNaN(en)?tn:en>nn?nn:en<tn?tn:en}function colorChanged(en,tn){const an=en.val("all");tn!==cn&&(cn.value=an?an.r:""),tn!==An&&(An.value=an?an.g:""),tn!==dn&&(dn.value=an?an.b:""),un&&tn!==un&&(un.value=an?toFixedNumeric$1(100*an.a/255,rn):""),tn!==pn&&(pn.value=an?an.h:""),tn!==hn&&(hn.value=an?an.s:""),tn!==gn&&(gn.value=an?an.v:""),tn!==_n&&(nn&&tn!==nn||!nn)&&(_n.value=an?an.hex:""),nn&&tn!==nn&&tn!==_n&&(nn.value=an?an.hex:""),mn&&tn!==mn&&(mn.value=an?an.ahex.substring(6):"")}let cn=sn[3],An=sn[4],dn=sn[5],un=sn.length>7?sn[6]:null,pn=sn[0],hn=sn[1],gn=sn[2],_n=sn[sn.length>7?7:6],mn=sn.length>7?sn[8]:null;Object.assign(an,{destroy:function destroy(){cn.removeEventListener("keyup",keyUp),An.removeEventListener("keyup",keyUp),dn.removeEventListener("keyup",keyUp),pn.removeEventListener("keyup",keyUp),hn.removeEventListener("keyup",keyUp),gn.removeEventListener("keyup",keyUp),_n.removeEventListener("keyup",keyUp),cn.removeEventListener("blur",blur),An.removeEventListener("blur",blur),dn.removeEventListener("blur",blur),pn.removeEventListener("blur",blur),hn.removeEventListener("blur",blur),gn.removeEventListener("blur",blur),_n.removeEventListener("blur",blur),cn.removeEventListener("keydown",keyDown),An.removeEventListener("keydown",keyDown),dn.removeEventListener("keydown",keyDown),pn.removeEventListener("keydown",keyDown),hn.removeEventListener("keydown",keyDown),gn.removeEventListener("keydown",keyDown),null!==un&&(un.removeEventListener("keyup",keyUp),un.removeEventListener("blur",blur),un.removeEventListener("keydown",keyDown)),null!==mn&&(mn.removeEventListener("keyup",keyUp),mn.removeEventListener("blur",blur)),null!==nn&&(nn.removeEventListener("keyup",keyUp),nn.removeEventListener("blur",blur)),tn.unbind(colorChanged),cn=null,An=null,dn=null,un=null,pn=null,hn=null,gn=null,_n=null,mn=null}}),cn.addEventListener("keyup",keyUp),An.addEventListener("keyup",keyUp),dn.addEventListener("keyup",keyUp),pn.addEventListener("keyup",keyUp),hn.addEventListener("keyup",keyUp),gn.addEventListener("keyup",keyUp),_n.addEventListener("keyup",keyUp),cn.addEventListener("blur",blur),An.addEventListener("blur",blur),dn.addEventListener("blur",blur),pn.addEventListener("blur",blur),hn.addEventListener("blur",blur),gn.addEventListener("blur",blur),_n.addEventListener("blur",blur),cn.addEventListener("keydown",keyDown),An.addEventListener("keydown",keyDown),dn.addEventListener("keydown",keyDown),pn.addEventListener("keydown",keyDown),hn.addEventListener("keydown",keyDown),gn.addEventListener("keydown",keyDown),null!==un&&(un.addEventListener("keyup",keyUp),un.addEventListener("blur",blur),un.addEventListener("keydown",keyDown)),null!==mn&&(mn.addEventListener("keyup",keyUp),mn.addEventListener("blur",blur)),null!==nn&&(nn.addEventListener("keyup",keyUp),nn.addEventListener("blur",blur)),tn.bind(colorChanged)}}function findPos(en){let tn=0,nn=0;if(en.offsetParent){do{tn+=en.offsetLeft,nn+=en.offsetTop}while(en=en.offsetParent);return{left:tn,top:nn}}return{left:tn,top:nn}}function isObject(en){return en&&"object"==typeof en&&!Array.isArray(en)}function mergeDeep(en,tn){const nn=Object.assign({},en);return isObject(en)&&isObject(tn)&&Object.keys(tn).forEach((rn=>{isObject(tn[rn])?rn in en?nn[rn]=mergeDeep(en[rn],tn[rn]):Object.assign(nn,{[rn]:tn[rn]}):Object.assign(nn,{[rn]:tn[rn]})})),nn}const isNullish$1=en=>null==en;class Slider{constructor(en,tn){const nn=this;function fireChangeEvents(en){mn.forEach((tn=>{tn.call(nn,nn,en)}))}function mouseDown(tn){const sn=findPos(en);rn={l:0|sn.left,t:0|sn.top},clearTimeout(an),an=setTimeout((function(){setValuesFromMousePosition.call(nn,tn)}),0),document.addEventListener("mousemove",mouseMove),document.addEventListener("mouseup",mouseUp),tn.preventDefault()}function mouseMove(en){return clearTimeout(an),an=setTimeout((function(){setValuesFromMousePosition.call(nn,en)}),0),en.stopPropagation(),en.preventDefault(),!1}function mouseUp(en){return document.removeEventListener("mousemove",mouseMove),document.removeEventListener("mouseup",mouseUp),en.stopPropagation(),en.preventDefault(),!1}function setValuesFromMousePosition(tn){const an=en.w,sn=en.h;let cn=tn.pageX-rn.l,dn=tn.pageY-rn.t;cn<0?cn=0:cn>an&&(cn=an),dn<0?dn=0:dn>sn&&(dn=sn),val.call(nn,"xy",{x:cn/an*un+An,y:dn/sn*gn+pn})}function val(en,tn,rn){if(!(void 0!==tn))switch(isNullish$1(en)&&(en="xy"),en.toLowerCase()){case"x":return sn;case"y":return cn;default:return{x:sn,y:cn}}if(!isNullish$1(rn)&&rn===nn)return;let an,un,gn=!1;switch(isNullish$1(en)&&(en="xy"),en.toLowerCase()){case"x":an=tn&&(tn.x&&0|tn.x||0|tn)||0;break;case"y":un=tn&&(tn.y&&0|tn.y||0|tn)||0;break;default:an=tn&&tn.x&&0|tn.x||0,un=tn&&tn.y&&0|tn.y||0}isNullish$1(an)||(an<An?an=An:an>dn&&(an=dn),sn!==an&&(sn=an,gn=!0)),isNullish$1(un)||(un<pn?un=pn:un>hn&&(un=hn),cn!==un&&(cn=un,gn=!0)),gn&&fireChangeEvents.call(nn,rn||nn)}function bind(en){"function"==typeof en&&mn.push(en)}let rn,an,sn=0,cn=0,An=0,dn=100,un=100,pn=0,hn=100,gn=100,_n=en.querySelector("img"),mn=[];Object.assign(nn,{val:val,range:function range(en,tn){if(!(void 0!==tn))switch(isNullish$1(en)&&(en="all"),en.toLowerCase()){case"minx":return An;case"maxx":return dn;case"rangex":return{minX:An,maxX:dn,rangeX:un};case"miny":return pn;case"maxy":return hn;case"rangey":return{minY:pn,maxY:hn,rangeY:gn};default:return{minX:An,maxX:dn,rangeX:un,minY:pn,maxY:hn,rangeY:gn}}let nn,rn,an,sn;switch(isNullish$1(en)&&(en="all"),en.toLowerCase()){case"minx":nn=tn&&(tn.minX&&0|tn.minX||0|tn)||0;break;case"maxx":rn=tn&&(tn.maxX&&0|tn.maxX||0|tn)||0;break;case"rangex":nn=tn&&tn.minX&&0|tn.minX||0,rn=tn&&tn.maxX&&0|tn.maxX||0;break;case"miny":an=tn&&(tn.minY&&0|tn.minY||0|tn)||0;break;case"maxy":sn=tn&&(tn.maxY&&0|tn.maxY||0|tn)||0;break;case"rangey":an=tn&&tn.minY&&0|tn.minY||0,sn=tn&&tn.maxY&&0|tn.maxY||0;break;default:nn=tn&&tn.minX&&0|tn.minX||0,rn=tn&&tn.maxX&&0|tn.maxX||0,an=tn&&tn.minY&&0|tn.minY||0,sn=tn&&tn.maxY&&0|tn.maxY||0}isNullish$1(nn)||An===nn||(An=nn,un=dn-An),isNullish$1(rn)||dn===rn||(dn=rn,un=dn-An),isNullish$1(an)||pn===an||(pn=an,gn=hn-pn),isNullish$1(sn)||hn===sn||(hn=sn,gn=hn-pn)},bind:bind,unbind:function unbind(en){if("function"!=typeof en)return;let tn;for(;tn=mn.includes(en);)mn.splice(tn,1)},destroy:function destroy(){document.removeEventListener("mousemove",mouseMove),document.removeEventListener("mouseup",mouseUp),en.removeEventListener("mousedown",mouseDown),en=null,_n=null,mn=null}}),_n.src=tn.arrow&&tn.arrow.image,_n.w=tn.arrow&&tn.arrow.width||parseFloat(getComputedStyle(_n,null).width.replace("px","")),_n.h=tn.arrow&&tn.arrow.height||parseFloat(getComputedStyle(_n,null).height.replace("px","")),en.w=tn.map&&tn.map.width||parseFloat(getComputedStyle(en,null).width.replace("px","")),en.h=tn.map&&tn.map.height||parseFloat(getComputedStyle(en,null).height.replace("px","")),en.addEventListener("mousedown",mouseDown),bind.call(nn,(function draw(){const tn=en.w,nn=en.h,rn=_n.w,an=_n.h;let An=0,pn=0;setTimeout((function(){un>0&&(An=sn===dn?tn:sn/un*tn|0),gn>0&&(pn=cn===hn?nn:cn/gn*nn|0),rn>=tn?An=(tn>>1)-(rn>>1):An-=rn>>1,an>=nn?pn=(nn>>1)-(an>>1):pn-=an>>1,_n.style.left=An+"px",_n.style.top=pn+"px"}))}))}}function toFixedNumeric(en,tn){return void 0===tn&&(tn=0),Math.round(en*10**tn)/10**tn}const isNullish=en=>null==en,NC={List:[],Color:function(en){const tn=this;function fireChangeEvents(en){for(let nn=0;nn<un.length;nn++)un[nn].call(tn,tn,en)}function val(en,un,pn){const hn=Boolean(un);if(hn&&""===un.ahex&&(un.ahex="00000000"),!hn){let un;if((isNullish(en)||""===en)&&(en="all"),isNullish(nn))return null;switch(en.toLowerCase()){case"ahex":return RC.rgbaToHex({r:nn,g:rn,b:an,a:sn});case"hex":return val("ahex").substring(0,6);case"all":return{r:nn,g:rn,b:an,a:sn,h:cn,s:An,v:dn,hex:val.call(tn,"hex"),ahex:val.call(tn,"ahex")};default:{un={};const tn=en.length;[...en].forEach((en=>{switch(en){case"r":1===tn?un=nn:un.r=nn;break;case"g":1===tn?un=rn:un.g=rn;break;case"b":1===tn?un=an:un.b=an;break;case"a":1===tn?un=sn:un.a=sn;break;case"h":1===tn?un=cn:un.h=cn;break;case"s":1===tn?un=An:un.s=An;break;case"v":1===tn?un=dn:un.v=dn}}))}}return"object"!=typeof un||Object.keys(un).length?un:val.call(tn,"all")}if(!isNullish(pn)&&pn===tn)return;isNullish(en)&&(en="");let gn=!1;if(isNullish(un))return isNullish(nn)||(nn=null,gn=!0),isNullish(rn)||(rn=null,gn=!0),isNullish(an)||(an=null,gn=!0),isNullish(sn)||(sn=null,gn=!0),isNullish(cn)||(cn=null,gn=!0),isNullish(An)||(An=null,gn=!0),isNullish(dn)||(dn=null,gn=!0),void(gn&&fireChangeEvents.call(tn,pn||tn));switch(en.toLowerCase()){case"ahex":case"hex":{const nn=RC.hexToRgba(un&&(un.ahex||un.hex)||un||"none");val.call(tn,"rgba",{r:nn.r,g:nn.g,b:nn.b,a:"ahex"===en?nn.a:isNullish(sn)?255:sn},pn);break}default:{if(un&&(!isNullish(un.ahex)||!isNullish(un.hex)))return void val.call(tn,"ahex",un.ahex||un.hex||"00000000",pn);const hn={};let _n=!1,mn=!1;if(void 0===un.r||en.includes("r")||(en+="r"),void 0===un.g||en.includes("g")||(en+="g"),void 0===un.b||en.includes("b")||(en+="b"),void 0===un.a||en.includes("a")||(en+="a"),void 0===un.h||en.includes("h")||(en+="h"),void 0===un.s||en.includes("s")||(en+="s"),void 0===un.v||en.includes("v")||(en+="v"),[...en].forEach((en=>{switch(en){case"r":if(mn)return;_n=!0,hn.r=un.r&&0|un.r||0|un||0,hn.r<0?hn.r=0:hn.r>255&&(hn.r=255),nn!==hn.r&&(({r:nn}=hn),gn=!0);break;case"g":if(mn)return;_n=!0,hn.g=un&&un.g&&0|un.g||un&&0|un||0,hn.g<0?hn.g=0:hn.g>255&&(hn.g=255),rn!==hn.g&&(({g:rn}=hn),gn=!0);break;case"b":if(mn)return;_n=!0,hn.b=un&&un.b&&0|un.b||un&&0|un||0,hn.b<0?hn.b=0:hn.b>255&&(hn.b=255),an!==hn.b&&(({b:an}=hn),gn=!0);break;case"a":hn.a=un&&!isNullish(un.a)?0|un.a:0|un,hn.a<0?hn.a=0:hn.a>255&&(hn.a=255),sn!==hn.a&&(({a:sn}=hn),gn=!0);break;case"h":if(_n)return;mn=!0,hn.h=un&&un.h&&0|un.h||un&&0|un||0,hn.h<0?hn.h=0:hn.h>360&&(hn.h=360),cn!==hn.h&&(({h:cn}=hn),gn=!0);break;case"s":if(_n)return;mn=!0,hn.s=isNullish(un.s)?0|un:0|un.s,hn.s<0?hn.s=0:hn.s>100&&(hn.s=100),An!==hn.s&&(({s:An}=hn),gn=!0);break;case"v":if(_n)return;mn=!0,hn.v=isNullish(un.v)?0|un:0|un.v,hn.v<0?hn.v=0:hn.v>100&&(hn.v=100),dn!==hn.v&&(({v:dn}=hn),gn=!0)}})),gn){if(_n){nn=nn||0,rn=rn||0,an=an||0;const en=RC.rgbToHsv({r:nn,g:rn,b:an});({h:cn,s:An,v:dn}=en)}else if(mn){cn=cn||0,An=isNullish(An)?100:An,dn=isNullish(dn)?100:dn;const en=RC.hsvToRgb({h:cn,s:An,v:dn});({r:nn,g:rn,b:an}=en)}sn=isNullish(sn)?255:sn,fireChangeEvents.call(tn,pn||tn)}break}}}let nn,rn,an,sn,cn,An,dn,un=[];Object.assign(tn,{val:val,bind:function bind(en){"function"==typeof en&&un.push(en)},unbind:function unbind(en){if("function"!=typeof en)return;let tn;for(;tn=un.includes(en);)un.splice(tn,1)},destroy:function destroy(){un=null}}),en&&(isNullish(en.ahex)?isNullish(en.hex)?isNullish(en.r)||isNullish(en.g)||isNullish(en.b)?isNullish(en.h)||isNullish(en.s)||isNullish(en.v)||val("hsv"+(isNullish(en.a)?"":"a"),en):val("rgb"+(isNullish(en.a)?"":"a"),en):val((isNullish(en.a)?"":"a")+"hex",isNullish(en.a)?en:{ahex:en.hex+RC.intToHex(en.a)}):val("ahex",en))},ColorMethods:{hexToRgba(en){if(""===en||"none"===en)return{r:null,g:null,b:null,a:null};let tn="00",nn="00",rn="00",an="255";return 6===(en=this.validateHex(en)).length&&(en+="ff"),en.length>6?(tn=en.substring(0,2),nn=en.substring(2,4),rn=en.substring(4,6),an=en.substring(6,en.length)):(en.length>4&&(tn=en.substring(4,en.length),en=en.substring(0,4)),en.length>2&&(nn=en.substring(2,en.length),en=en.substring(0,2)),en.length>0&&(rn=en.substring(0,en.length))),{r:this.hexToInt(tn),g:this.hexToInt(nn),b:this.hexToInt(rn),a:this.hexToInt(an)}},validateHex:en=>((en=en.toLowerCase().replace(/[^a-f\d]/g,"")).length>8&&(en=en.substring(0,8)),en),rgbaToHex(en){return this.intToHex(en.r)+this.intToHex(en.g)+this.intToHex(en.b)+this.intToHex(en.a)},intToHex(en){let tn=(0|en).toString(16);return 1===tn.length&&(tn="0"+tn),tn.toLowerCase()},hexToInt:en=>Number.parseInt(en,16),rgbToHsv(en){const tn=en.r/255,nn=en.g/255,rn=en.b/255,an={h:0,s:0,v:0};let sn,cn=0,An=0;return tn>=nn&&tn>=rn?(An=tn,cn=nn>rn?rn:nn):nn>=rn&&nn>=tn?(An=nn,cn=tn>rn?rn:tn):(An=rn,cn=nn>tn?tn:nn),an.v=An,an.s=An?(An-cn)/An:0,an.s?(sn=An-cn,an.h=tn===An?(nn-rn)/sn:nn===An?2+(rn-tn)/sn:4+(tn-nn)/sn,an.h=Number.parseInt(60*an.h),an.h<0&&(an.h+=360)):an.h=0,an.s=100*an.s|0,an.v=100*an.v|0,an},hsvToRgb(en){const tn={r:0,g:0,b:0,a:100};let{h:nn,s:rn,v:an}=en;if(0===rn)tn.r=tn.g=tn.b=0===an?0:255*an/100|0;else{360===nn&&(nn=0),nn/=60,rn/=100,an/=100;const en=0|nn,sn=nn-en,cn=an*(1-rn),An=an*(1-rn*sn),dn=an*(1-rn*(1-sn));switch(en){case 0:tn.r=an,tn.g=dn,tn.b=cn;break;case 1:tn.r=An,tn.g=an,tn.b=cn;break;case 2:tn.r=cn,tn.g=an,tn.b=dn;break;case 3:tn.r=cn,tn.g=An,tn.b=an;break;case 4:tn.r=dn,tn.g=cn,tn.b=an;break;case 5:tn.r=an,tn.g=cn,tn.b=An}tn.r=255*tn.r|0,tn.g=255*tn.g|0,tn.b=255*tn.b|0}return tn}}},{Color:IC,List:MC,ColorMethods:RC}=NC;function jPickerMethod(en,tn,nn,rn,an,sn){let cn=mergeDeep({},OC);cn=mergeDeep(cn,tn);const An=en,dn=cn;if("input"===An.nodeName.toLowerCase()&&(Object.assign(dn,{window:{bindToInput:!0,expandable:!0,input:An}}),""===An.value?(dn.color.active=new IC({hex:null}),dn.color.current=new IC({hex:null})):RC.validateHex(An.value)&&(dn.color.active=new IC({hex:An.value,a:dn.color.active.val("a")}),dn.color.current=new IC({hex:An.value,a:dn.color.active.val("a")}))),dn.window.expandable){const en=document.createElement("span");en.classList.add("jPicker"),en.innerHTML='<span class="Icon" id="jq-ae-Icon">\n <span class="Color" id="jq-ae-Color">&nbsp;</span>\n <span class="Alpha" id="jq-ae-Alpha">&nbsp;</span>\n <span class="Image" id="jq-ae-Image" title="'.concat(sn.t("config.open_color_picker"),'">&nbsp;</span>\n <span class="Container" id="Container">&nbsp;</span>\n </span>'),An.insertAdjacentElement("afterend",en)}else dn.window.liveUpdate=!1;const un=Number.parseFloat(navigator.appVersion.split("MSIE")[1])<7&&document.body.filters;function setColorMode(en){const{active:tn}=hn,nn=tn.val("hex");let rn,an;switch(dn.color.mode=en,en){case"h":if(setTimeout((function(){setBG.call(An,bn,"transparent"),setImgLoc.call(An,wn,0),setAlpha.call(An,wn,100),setImgLoc.call(An,xn,260),setAlpha.call(An,xn,100),setBG.call(An,vn,"transparent"),setImgLoc.call(An,Cn,0),setAlpha.call(An,Cn,100),setImgLoc.call(An,Sn,260),setAlpha.call(An,Sn,100),setImgLoc.call(An,Bn,260),setAlpha.call(An,Bn,100),setImgLoc.call(An,En,260),setAlpha.call(An,En,100),setImgLoc.call(An,Ln,260),setAlpha.call(An,Ln,100)}),0),Pn.range("all",{minX:0,maxX:100,minY:0,maxY:100}),Tn.range("rangeY",{minY:0,maxY:360}),isNullish(tn.val("ahex")))break;Pn.val("xy",{x:tn.val("s"),y:100-tn.val("v")},Pn),Tn.val("y",360-tn.val("h"),Tn);break;case"s":if(setTimeout((function(){setBG.call(An,bn,"transparent"),setImgLoc.call(An,wn,-260),setImgLoc.call(An,xn,-520),setImgLoc.call(An,Cn,-260),setImgLoc.call(An,Sn,-520),setImgLoc.call(An,Ln,260),setAlpha.call(An,Ln,100)}),0),Pn.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Tn.range("rangeY",{minY:0,maxY:100}),isNullish(tn.val("ahex")))break;Pn.val("xy",{x:tn.val("h"),y:100-tn.val("v")},Pn),Tn.val("y",100-tn.val("s"),Tn);break;case"v":if(setTimeout((function(){setBG.call(An,bn,"000000"),setImgLoc.call(An,wn,-780),setImgLoc.call(An,xn,260),setBG.call(An,vn,nn),setImgLoc.call(An,Cn,-520),setImgLoc.call(An,Sn,260),setAlpha.call(An,Sn,100),setImgLoc.call(An,Ln,260),setAlpha.call(An,Ln,100)}),0),Pn.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Tn.range("rangeY",{minY:0,maxY:100}),isNullish(tn.val("ahex")))break;Pn.val("xy",{x:tn.val("h"),y:100-tn.val("s")},Pn),Tn.val("y",100-tn.val("v"),Tn);break;case"r":if(rn=-1040,an=-780,Pn.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Tn.range("rangeY",{minY:0,maxY:255}),isNullish(tn.val("ahex")))break;Pn.val("xy",{x:tn.val("b"),y:255-tn.val("g")},Pn),Tn.val("y",255-tn.val("r"),Tn);break;case"g":if(rn=-1560,an=-1820,Pn.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Tn.range("rangeY",{minY:0,maxY:255}),isNullish(tn.val("ahex")))break;Pn.val("xy",{x:tn.val("b"),y:255-tn.val("r")},Pn),Tn.val("y",255-tn.val("g"),Tn);break;case"b":if(rn=-2080,an=-2860,Pn.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Tn.range("rangeY",{minY:0,maxY:255}),isNullish(tn.val("ahex")))break;Pn.val("xy",{x:tn.val("r"),y:255-tn.val("g")},Pn),Tn.val("y",255-tn.val("b"),Tn);break;case"a":if(setTimeout((function(){setBG.call(An,bn,"transparent"),setImgLoc.call(An,wn,-260),setImgLoc.call(An,xn,-520),setImgLoc.call(An,Cn,260),setImgLoc.call(An,Sn,260),setAlpha.call(An,Sn,100),setImgLoc.call(An,Ln,0),setAlpha.call(An,Ln,100)}),0),Pn.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Tn.range("rangeY",{minY:0,maxY:255}),isNullish(tn.val("ahex")))break;Pn.val("xy",{x:tn.val("h"),y:100-tn.val("v")},Pn),Tn.val("y",255-tn.val("a"),Tn);break;default:throw new Error("Invalid Mode")}switch(en){case"h":break;case"s":case"v":case"a":setTimeout((function(){setAlpha.call(An,wn,100),setAlpha.call(An,Cn,100),setImgLoc.call(An,Bn,260),setAlpha.call(An,Bn,100),setImgLoc.call(An,En,260),setAlpha.call(An,En,100)}),0);break;case"r":case"g":case"b":setTimeout((function(){setBG.call(An,bn,"transparent"),setBG.call(An,vn,"transparent"),setAlpha.call(An,Cn,100),setAlpha.call(An,wn,100),setImgLoc.call(An,wn,rn),setImgLoc.call(An,xn,rn-260),setImgLoc.call(An,Cn,an-780),setImgLoc.call(An,Sn,an-520),setImgLoc.call(An,Bn,an),setImgLoc.call(An,En,an-260),setImgLoc.call(An,Ln,260),setAlpha.call(An,Ln,100)}),0)}isNullish(tn.val("ahex"))||activeColorChanged.call(An,tn)}function activeColorChanged(en,tn){(isNullish(tn)||tn!==Tn&&tn!==Pn)&&positionMapAndBarArrows.call(An,en,tn),setTimeout((function(){updatePreview.call(An,en),updateMapVisuals.call(An,en),updateBarVisuals.call(An,en)}),0)}function mapValueChanged(en,tn){const{active:nn}=hn;if(tn!==Pn&&isNullish(nn.val()))return;const rn=en.val("all");switch(dn.color.mode){case"h":nn.val("sv",{s:rn.x,v:100-rn.y},tn);break;case"s":case"a":nn.val("hv",{h:rn.x,v:100-rn.y},tn);break;case"v":nn.val("hs",{h:rn.x,s:100-rn.y},tn);break;case"r":nn.val("gb",{g:255-rn.y,b:rn.x},tn);break;case"g":nn.val("rb",{r:255-rn.y,b:rn.x},tn);break;case"b":nn.val("rg",{r:rn.x,g:255-rn.y},tn)}}function colorBarValueChanged(en,tn){const{active:nn}=hn;if(tn===Tn||!isNullish(nn.val()))switch(dn.color.mode){case"h":nn.val("h",{h:360-en.val("y")},tn);break;case"s":nn.val("s",{s:100-en.val("y")},tn);break;case"v":nn.val("v",{v:100-en.val("y")},tn);break;case"r":nn.val("r",{r:255-en.val("y")},tn);break;case"g":nn.val("g",{g:255-en.val("y")},tn);break;case"b":nn.val("b",{b:255-en.val("y")},tn);break;case"a":nn.val("a",255-en.val("y"),tn)}}function positionMapAndBarArrows(en,tn){if(tn!==Pn)switch(dn.color.mode){case"h":{const nn=en.val("sv");Pn.val("xy",{x:isNullish(nn)?100:nn.s,y:100-(isNullish(nn)?100:nn.v)},tn);break}case"s":case"a":{const nn=en.val("hv");Pn.val("xy",{x:nn&&nn.h||0,y:100-(isNullish(nn)?100:nn.v)},tn);break}case"v":{const nn=en.val("hs");Pn.val("xy",{x:nn&&nn.h||0,y:100-(isNullish(nn)?100:nn.s)},tn);break}case"r":{const nn=en.val("bg");Pn.val("xy",{x:nn&&nn.b||0,y:255-(nn&&nn.g||0)},tn);break}case"g":{const nn=en.val("br");Pn.val("xy",{x:nn&&nn.b||0,y:255-(nn&&nn.r||0)},tn);break}case"b":{const nn=en.val("rg");Pn.val("xy",{x:nn&&nn.r||0,y:255-(nn&&nn.g||0)},tn);break}}if(tn!==Tn)switch(dn.color.mode){case"h":Tn.val("y",360-(en.val("h")||0),tn);break;case"s":{const nn=en.val("s");Tn.val("y",100-(isNullish(nn)?100:nn),tn);break}case"v":{const nn=en.val("v");Tn.val("y",100-(isNullish(nn)?100:nn),tn);break}case"r":Tn.val("y",255-(en.val("r")||0),tn);break;case"g":Tn.val("y",255-(en.val("g")||0),tn);break;case"b":Tn.val("y",255-(en.val("b")||0),tn);break;case"a":{const nn=en.val("a");Tn.val("y",255-(isNullish(nn)?255:nn),tn);break}}}function updatePreview(en){try{const tn=en.val("all");Un.style.backgroundColor=tn&&"#"+tn.hex||"transparent",setAlpha.call(An,Un,tn&&toFixedNumeric(100*tn.a/255,4)||0)}catch(en){}}function updateMapVisuals(en){switch(dn.color.mode){case"h":setBG.call(An,bn,new IC({h:en.val("h")||0,s:100,v:100}).val("hex"));break;case"s":case"a":{const tn=en.val("s");setAlpha.call(An,xn,100-(isNullish(tn)?100:tn));break}case"v":{const tn=en.val("v");setAlpha.call(An,wn,isNullish(tn)?100:tn);break}case"r":setAlpha.call(An,xn,toFixedNumeric((en.val("r")||0)/255*100,4));break;case"g":setAlpha.call(An,xn,toFixedNumeric((en.val("g")||0)/255*100,4));break;case"b":setAlpha.call(An,xn,toFixedNumeric((en.val("b")||0)/255*100))}const tn=en.val("a");setAlpha.call(An,kn,toFixedNumeric(100*(255-(tn||0))/255,4))}function updateBarVisuals(en){switch(dn.color.mode){case"h":{const tn=en.val("a");setAlpha.call(An,jn,toFixedNumeric(100*(255-(tn||0))/255,4));break}case"s":{const tn=en.val("hva"),nn=new IC({h:tn&&tn.h||0,s:100,v:isNullish(tn)?100:tn.v});setBG.call(An,vn,nn.val("hex")),setAlpha.call(An,Sn,100-(isNullish(tn)?100:tn.v)),setAlpha.call(An,jn,toFixedNumeric(100*(255-(tn&&tn.a||0))/255,4));break}case"v":{const tn=en.val("hsa"),nn=new IC({h:tn&&tn.h||0,s:isNullish(tn)?100:tn.s,v:100});setBG.call(An,vn,nn.val("hex")),setAlpha.call(An,jn,toFixedNumeric(100*(255-(tn&&tn.a||0))/255,4));break}case"r":case"g":case"b":{const tn=en.val("rgba");let nn=0,rn=0;"r"===dn.color.mode?(nn=tn&&tn.b||0,rn=tn&&tn.g||0):"g"===dn.color.mode?(nn=tn&&tn.b||0,rn=tn&&tn.r||0):"b"===dn.color.mode&&(nn=tn&&tn.r||0,rn=tn&&tn.g||0);const an=rn>nn?nn:rn;setAlpha.call(An,Sn,nn>rn?toFixedNumeric((nn-rn)/(255-rn)*100,4):0),setAlpha.call(An,Bn,rn>nn?toFixedNumeric((rn-nn)/(255-nn)*100,4):0),setAlpha.call(An,En,toFixedNumeric(an/255*100,4)),setAlpha.call(An,jn,toFixedNumeric(100*(255-(tn&&tn.a||0))/255,4));break}case"a":{const tn=en.val("a");setBG.call(An,vn,en.val("hex")||"000000"),setAlpha.call(An,jn,isNullish(tn)?100:0),setAlpha.call(An,Ln,isNullish(tn)?0:100);break}}}function setBG(en,tn){en.style.backgroundColor=tn&&6===tn.length&&"#"+tn||"transparent"}function setImg(en,tn){un&&(tn.includes("AlphaBar.png")||tn.includes("Bars.png")||tn.includes("Maps.png"))?(en.setAttribute("pngSrc",tn),en.style.backgroundImage="none",en.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+tn+"', sizingMethod='scale')"):en.style.backgroundImage="url('"+tn+"')"}function setImgLoc(en,tn){en.style.top=tn+"px"}function setAlpha(en,tn){if(en.style.visibility=tn>0?"visible":"hidden",tn>0&&tn<100)if(un){const nn=en.getAttribute("pngSrc");!isNullish(nn)&&(nn.includes("AlphaBar.png")||nn.includes("Bars.png")||nn.includes("Maps.png"))?en.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+nn+"', sizingMethod='scale') progid:DXImageTransform.Microsoft.Alpha(opacity="+tn+")":en.style.opacity=toFixedNumeric(tn/100,4)}else en.style.opacity=toFixedNumeric(tn/100,4);else if(0===tn||100===tn)if(un){const tn=en.getAttribute("pngSrc");!isNullish(tn)&&(tn.includes("AlphaBar.png")||tn.includes("Bars.png")||tn.includes("Maps.png"))?en.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+tn+"', sizingMethod='scale')":en.style.opacity=""}else en.style.opacity=""}function revertColor(){hn.active.val("ahex",hn.current.val("ahex"))}function commitColor(){hn.current.val("ahex",hn.active.val("ahex"))}function radioClicked(en){const tn=An.querySelectorAll('input[type="radio"]:checked');for(const nn of tn)nn.value!==en.target.value&&(nn.checked=!1);setColorMode.call(An,en.target.value)}function currentClicked(){revertColor.call(An)}function cancelClicked(){revertColor.call(An),dn.window.expandable&&hide.call(An),"function"==typeof an&&an.call(An,hn.active,Mn)}function okClicked(){commitColor.call(An),dn.window.expandable&&hide.call(An),"function"==typeof nn&&nn.call(An,hn.active,In)}function iconImageClicked(){show.call(An)}function currentColorChanged(en){const tn=en.val("hex");Nn.style.backgroundColor=tn&&"#"+tn||"transparent",setAlpha.call(An,Nn,toFixedNumeric(100*(en.val("a")||0)/255,4))}function expandableColorChanged(en){const tn=en.val("hex"),nn=en.val("va");On.style.backgroundColor=tn&&"#"+tn||"transparent",setAlpha.call(An,Qn,toFixedNumeric(100*(255-(nn&&nn.a||0))/255,4)),dn.window.bindToInput&&dn.window.updateInputColor&&(dn.window.input.style.backgroundColor=tn&&"#"+tn||"transparent",dn.window.input.style.color=isNullish(nn)||nn.v>75?"#000000":"#ffffff")}function moveBarMouseDown(en){gn=Number.parseInt(yn.style.left),_n=Number.parseInt(yn.style.top),mn=en.pageX,fn=en.pageY,document.addEventListener("mousemove",documentMouseMove),document.addEventListener("mouseup",documentMouseUp),en.preventDefault()}function documentMouseMove(en){if(yn.style.left=gn-(mn-en.pageX)+"px",yn.style.top=_n-(fn-en.pageY)+"px",dn.window.expandable){const en=yn.previousElementSibling;en.style.left=yn.style.left,en.style.top=yn.style.top}return en.stopPropagation(),en.preventDefault(),!1}function documentMouseUp(en){return document.removeEventListener("mousemove",documentMouseMove),document.removeEventListener("mouseup",documentMouseUp),en.stopPropagation(),en.preventDefault(),!1}function quickPickClicked(en){return en.preventDefault(),en.stopPropagation(),hn.active.val("ahex",en.target.getAttribute("title")||null,en.target),!1}function show(){hn.current.val("ahex",hn.active.val("ahex")),dn.window.expandable&&(yn.style.zIndex=20),yn.style.display="block",function attachIFrame(){if(!dn.window.expandable)return;const en=yn.querySelector("#jPicker-table");yn.insertAdjacentElement("beforebegin",document.createElement("iframe"));const tn=yn.previousElementSibling;tn.style.width=parseFloat(getComputedStyle(en,null).width.replace("px","")),tn.style.height=parseFloat(getComputedStyle(yn,null).height.replace("px","")),tn.style.opacity=0,tn.style.position="absolute",tn.style.left=getComputedStyle(yn,null).getPropertyValue("left"),tn.style.top=getComputedStyle(yn,null).getPropertyValue("top")}()}function hide(){yn.style.display="none",function removeIFrame(){dn.window.expandable&&(yn.style.zIndex=10),dn.window.expandable&&yn.prev().remove()}()}function initialize(){const en=An.nextElementSibling,tn=dn.window,nn=tn.expandable?en.querySelector("#Container"):null;yn=tn.expandable?document.createElement("div"):An,yn.classList.add("jPicker"),yn.classList.add("Container"),tn.expandable&&(yn.style.display="none"),yn.onselectstart=function(en){return"input"===en.target.nodeName.toLowerCase()};const an=hn.active.val("all");tn.alphaPrecision<0?tn.alphaPrecision=0:tn.alphaPrecision>2&&(tn.alphaPrecision=2);const cn='<table class="jPicker" id="jPicker-table" cellpadding="0" cellspacing="0">\n <tbody>\n '.concat(tn.expandable?'<tr><td class="Move" colspan="5">&nbsp;</td></tr>':"",'\n <tr>\n <td rowspan="9"><h2 class="Title">').concat(tn.title||"config.jpicker_title",'</h2><div class="Map" id="Map"><span class="Map1" id="MMap1">&nbsp;</span><span class="Map2" id="MMap2">&nbsp;</span><span class="Map3" id="MMap3">&nbsp;</span><img src="').concat(pn.clientPath+pn.colorMap.arrow.file,'" class="Arrow"/></div></td>\n <td rowspan="9"><div class="Bar" id="Bar"><span class="Map1" id="Map1">&nbsp;</span><span class="Map2" id="Map2">&nbsp;</span><span class="Map3" id="Map3">&nbsp;</span><span class="Map4" id="Map4">&nbsp;</span><span class="Map5" id="Map5">&nbsp;</span><span class="Map6" id="Map6">&nbsp;</span><img src="').concat(pn.clientPath+pn.colorBar.arrow.file,'" class="Arrow"/></div></td>\n <td colspan="2" class="Preview" id="Preview">').concat(sn.t("config.jpicker_new_color"),'<div id="preview-div"><span class="Active" id="Active" title="').concat(sn.t("config.jpicker_tooltip_colors_new_color"),'">&nbsp;</span><span class="Current" id="Current" title="').concat(sn.t("config.jpicker_tooltip_colors_current_color"),'">&nbsp;</span></div>').concat(sn.t("config.jpicker_current_color"),'</td>\n <td rowspan="9" class="Button" id="Button"><input type="button" class="Ok" id="Ok" value="').concat(sn.t("common.ok"),'" title="').concat(sn.t("config.jpicker_tooltip_buttons_ok"),'"/><input type="button" class="Cancel" id="Cancel" value="').concat(sn.t("common.cancel"),'" title="').concat(sn.t("config.jpicker_tooltip_buttons_cancel"),'"/><hr/><div class="Grid" id="Grid"></div></td>\n </tr>\n <tr class="Hue">\n <td class="Radio"><label title="').concat(sn.t("config.jpicker_tooltip_hue_radio"),'"><input type="radio" value="h"').concat("h"===dn.color.mode?' checked="checked"':"",'/>H:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(an?an.h:"",'" title="').concat(sn.t("config.jpicker_tooltip_hue_textbox"),'"/>&nbsp;&deg;</td>\n </tr>\n <tr class="Saturation">\n <td class="Radio"><label title="').concat(sn.t("config.jpicker_tooltip_saturation_radio"),'"><input type="radio" value="s"').concat("s"===dn.color.mode?' checked="checked"':"",'/>S:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(an?an.s:"",'" title="').concat(sn.t("config.jpicker_tooltip_saturation_textbox"),'"/>&nbsp;%</td>\n </tr>\n <tr class="Value">\n <td class="Radio"><label title="').concat(sn.t("config.jpicker_tooltip_value_radio"),'"><input type="radio" value="v"').concat("v"===dn.color.mode?' checked="checked"':"",'/>V:</label><br/><br/></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(an?an.v:"",'" title="').concat(sn.t("config.jpicker_tooltip_value_textbox"),'"/>&nbsp;%<br/><br/></td>\n </tr>\n <tr class="Red">\n <td class="Radio"><label title="').concat(sn.t("config.jpicker_tooltip_red_radio"),'"><input type="radio" value="r"').concat("r"===dn.color.mode?' checked="checked"':"",'/>R:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(an?an.r:"",'" title="').concat(sn.t("config.jpicker_tooltip_red_textbox"),'"/></td>\n </tr>\n <tr class="Green">\n <td class="Radio"><label title="').concat(sn.t("config.jpicker_tooltip_green_radio"),'"><input type="radio" value="g"').concat("g"===dn.color.mode?' checked="checked"':"",'/>G:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(an?an.g:"",'" title="').concat(sn.t("config.jpicker_tooltip_green_textbox"),'"/></td>\n </tr>\n <tr class="Blue">\n <td class="Radio"><label title="').concat(sn.t("config.jpicker_tooltip_blue_radio"),'"><input type="radio" value="b"').concat("b"===dn.color.mode?' checked="checked"':"",'/>B:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(an?an.b:"",'" title="').concat(sn.t("config.jpicker_tooltip_blue_textbox"),'"/></td>\n </tr>\n <tr class="Alpha">\n <td class="Radio">').concat(tn.alphaSupport?'<label title="'.concat(sn.t("config.jpicker_tooltip_alpha_radio"),'"><input type="radio" value="a"').concat("a"===dn.color.mode?' checked="checked"':"","/>A:</label>"):"&nbsp;",'</td>\n <td class="Text">').concat(tn.alphaSupport?'<input type="text" maxlength="'.concat(3+tn.alphaPrecision,'" value="').concat(an?toFixedNumeric(100*an.a/255,tn.alphaPrecision):"",'" title="').concat(sn.t("config.jpicker_tooltip_alpha_textbox"),'"/>&nbsp;%'):"&nbsp;",'</td>\n </tr>\n <tr class="Hex">\n <td colspan="2" class="Text"><label title="').concat(sn.t("config.jpicker_tooltip_hex_textbox"),'">#:<input type="text" maxlength="6" class="Hex" value="').concat(an?an.hex:"",'"/></label>').concat(tn.alphaSupport?'<input type="text" maxlength="2" class="AHex" value="'.concat(an?an.ahex.substring(6):"",'" title="').concat(sn.t("config.jpicker_tooltip_hex_alpha"),'"/></td>'):"&nbsp;","\n </tr>\n </tbody></table>");if(tn.expandable){yn.innerHTML=cn,An.querySelectorAll("div.jPicker.Container").length?An.querySelector("div.jPicker.Container:last").insertAdjacentElement("afterend",yn):document.body.insertBefore(yn,document.body.firstChild),yn.addEventListener("mousedown",(function(){yn.style.zIndex=20}));const en=findPos(nn);yn.style.position="absolute",yn.style.left="left"===tn.position.x?en.left-530-("center"===tn.position.y?25:0)+"px":"center"===tn.position.x?en.left-260+"px":"right"===tn.position.x?en.left-10+("center"===tn.position.y?25:0)+"px":"screenCenter"===tn.position.x?(document.width>>1)-260+"px":en.left+Number.parseInt(tn.position.x)+"px",yn.style.top="top"===tn.position.y?en.top-312+"px":"center"===tn.position.y?en.top-156+"px":"bottom"===tn.position.y?en.top+25+"px":en.top+Number.parseInt(tn.position.y)+"px"}else{yn=An;const en=document.createElement("div");for(en.innerHTML=cn;en.children.length>0;)yn.appendChild(en.children[0])}const un=yn.querySelector("tbody");bn=un.querySelector("#Map"),vn=un.querySelector("#Bar"),wn=bn.querySelector("#MMap1"),xn=bn.querySelector("#MMap2"),kn=bn.querySelector("#MMap3"),Cn=vn.querySelector("#Map1"),Sn=vn.querySelector("#Map2"),Bn=vn.querySelector("#Map3"),En=vn.querySelector("#Map4"),jn=vn.querySelector("#Map5"),Ln=vn.querySelector("#Map6"),Pn=new Slider(bn,{map:{width:pn.colorMap.width,height:pn.colorMap.height},arrow:{image:pn.clientPath+pn.colorMap.arrow.file,width:pn.colorMap.arrow.width,height:pn.colorMap.arrow.height}}),Pn.bind(mapValueChanged),Tn=new Slider(vn,{map:{width:pn.colorBar.width,height:pn.colorBar.height},arrow:{image:pn.clientPath+pn.colorBar.arrow.file,width:pn.colorBar.arrow.width,height:pn.colorBar.arrow.height}}),Tn.bind(colorBarValueChanged),Fn=new ColorValuePicker(un,hn.active,tn.expandable&&tn.bindToInput?tn.input:null,tn.alphaPrecision);const gn=an?an.hex:null,_n=un.querySelector("#Preview"),mn=un.querySelector("#Button");Un=_n.querySelector("#Active"),Un.style.backgroundColor=gn?"#"+gn:"transparent",Nn=_n.querySelector("#Current"),Nn.style.backgroundColor=gn?"#"+gn:"transparent",svgEditor.$click(Nn,currentClicked),setAlpha.call(An,Nn,toFixedNumeric(100*hn.current.val("a")/255,4)),In=mn.querySelector("#Ok"),svgEditor.$click(In,okClicked),Mn=mn.querySelector("#Cancel"),svgEditor.$click(Mn,cancelClicked),Rn=mn.querySelector("#Grid"),setTimeout((function(){setImg.call(An,wn,pn.clientPath+"Maps.png"),setImg.call(An,xn,pn.clientPath+"Maps.png"),setImg.call(An,kn,pn.clientPath+"map-opacity.png"),setImg.call(An,Cn,pn.clientPath+"Bars.png"),setImg.call(An,Sn,pn.clientPath+"Bars.png"),setImg.call(An,Bn,pn.clientPath+"Bars.png"),setImg.call(An,En,pn.clientPath+"Bars.png"),setImg.call(An,jn,pn.clientPath+"bar-opacity.png"),setImg.call(An,Ln,pn.clientPath+"AlphaBar.png"),setImg.call(An,_n.querySelector("#preview-div"),pn.clientPath+"preview-opacity.png")}),0);const fn=un.querySelectorAll("td.Radio input");for(const en of fn)svgEditor.$click(en,radioClicked);if(hn.quickList&&hn.quickList.length>0){let en="";for(let nn=0;nn<hn.quickList.length;nn++){"string"===(typeof hn.quickList[nn]).toString().toLowerCase()&&(hn.quickList[nn]=new IC({hex:hn.quickList[nn]}));const rn=hn.quickList[nn].val("a");let an=hn.quickList[nn].val("ahex");!tn.alphaSupport&&an&&(an=an.substring(0,6)+"ff");const sn=hn.quickList[nn].val("hex");an||(an="00000000"),en+='<span class="QuickColor" title="#'+an+'" style="background-color:'+(sn&&"#"+sn||"")+";"+(sn?"":"background-image:url("+pn.clientPath+"NoColor.png)")+(tn.alphaSupport&&rn&&rn<255?";opacity:"+toFixedNumeric(rn/255,4)+";filter:Alpha(opacity="+toFixedNumeric(rn/2.55,4)+")":"")+'">&nbsp;</span>'}setImg.call(An,Rn,pn.clientPath+"bar-opacity.png");const nn=document.createElement("div");for(nn.innerHTML=en;nn.children.length>0;)Rn.appendChild(nn.children[0]);const rn=Rn.querySelectorAll(".QuickColor");for(const en of rn)svgEditor.$click(en,quickPickClicked)}setColorMode.call(An,dn.color.mode),hn.active.bind(activeColorChanged),"function"==typeof rn&&hn.active.bind(rn),hn.current.bind(currentColorChanged),tn.expandable?(An.icon=nn.parentNode,On=An.icon.querySelector(".Color"),On.style.backgroundColor=gn&&"#"+gn||"transparent",Qn=An.icon.querySelector(".Alpha"),setImg.call(An,Qn,pn.clientPath+"bar-opacity.png"),setAlpha.call(An,Qn,toFixedNumeric(100*(255-(an?an.a:0))/255,4)),qn=An.icon.querySelector(".Image"),qn.style.backgroundImage="url('"+pn.clientPath+pn.picker.file+"')",svgEditor.$click(qn,iconImageClicked),tn.bindToInput&&tn.updateInputColor&&(tn.input.style.backgroundColor=gn&&"#"+gn||"transparent",tn.input.style.color=isNullish(an)||an.v>75?"#000000":"#ffffff"),Vn=un.querySelector(".Move"),Vn.addEventListener("mousedown",moveBarMouseDown),hn.active.bind(expandableColorChanged)):show.call(An)}const{images:pn}=dn,hn={active:"string"===(typeof dn.color.active).toString().toLowerCase()?new IC({ahex:!dn.window.alphaSupport&&dn.color.active?dn.color.active.substring(0,6)+"ff":dn.color.active}):new IC({ahex:!dn.window.alphaSupport&&dn.color.active.val("ahex")?dn.color.active.val("ahex").substring(0,6)+"ff":dn.color.active.val("ahex")}),current:"string"===(typeof dn.color.active).toString().toLowerCase()?new IC({ahex:!dn.window.alphaSupport&&dn.color.active?dn.color.active.substring(0,6)+"ff":dn.color.active}):new IC({ahex:!dn.window.alphaSupport&&dn.color.active.val("ahex")?dn.color.active.val("ahex").substring(0,6)+"ff":dn.color.active.val("ahex")}),quickList:dn.color.quickList};"function"!=typeof nn&&(nn=null),"function"!=typeof rn&&(rn=null),"function"!=typeof an&&(an=null);let gn=null,_n=null,mn=null,fn=null,yn=null,bn=null,vn=null,wn=null,xn=null,kn=null,Cn=null,Sn=null,Bn=null,En=null,jn=null,Ln=null,Pn=null,Tn=null,Fn=null,Un=null,Nn=null,In=null,Mn=null,Rn=null,On=null,Qn=null,qn=null,Vn=null;Object.assign(An,{commitCallback:nn,liveCallback:rn,cancelCallback:an,color:hn,show:show,hide:hide,destroy:function destroy(){const en=yn.querySelectorAll("td.Radio input");for(const tn of en)tn.removeEventListener("click",radioClicked);Nn.removeEventListener("click",currentClicked),Mn.removeEventListener("click",cancelClicked),In.removeEventListener("click",okClicked),dn.window.expandable&&(qn.removeEventListener("click",iconImageClicked),Vn.removeEventListener("mousedown",moveBarMouseDown),An.icon=null);const tn=yn.querySelectorAll(".QuickColor");for(const en of tn)en.removeEventListener("click",quickPickClicked);bn=null,vn=null,wn=null,xn=null,kn=null,Cn=null,Sn=null,Bn=null,En=null,jn=null,Ln=null,Pn.destroy(),Pn=null,Tn.destroy(),Tn=null,Fn.destroy(),Fn=null,Un=null,Nn=null,In=null,Mn=null,Rn=null,nn=null,an=null,rn=null,yn.html("");for(let en=0;en<MC.length;en++)MC[en]===An&&(MC.splice(en,1),en--)}}),MC.push(An),setTimeout((function(){initialize.call(An)}),0)}const OC={window:{title:null,effects:{type:"slide",speed:{show:"slow",hide:"fast"}},position:{x:"screenCenter",y:"top"},expandable:!1,liveUpdate:!0,alphaSupport:!1,alphaPrecision:0,updateInputColor:!0},color:{mode:"h",active:new IC({ahex:"#ffcc00ff"}),quickList:[new IC({h:360,s:33,v:100}),new IC({h:360,s:66,v:100}),new IC({h:360,s:100,v:100}),new IC({h:360,s:100,v:75}),new IC({h:360,s:100,v:50}),new IC({h:180,s:0,v:100}),new IC({h:30,s:33,v:100}),new IC({h:30,s:66,v:100}),new IC({h:30,s:100,v:100}),new IC({h:30,s:100,v:75}),new IC({h:30,s:100,v:50}),new IC({h:180,s:0,v:90}),new IC({h:60,s:33,v:100}),new IC({h:60,s:66,v:100}),new IC({h:60,s:100,v:100}),new IC({h:60,s:100,v:75}),new IC({h:60,s:100,v:50}),new IC({h:180,s:0,v:80}),new IC({h:90,s:33,v:100}),new IC({h:90,s:66,v:100}),new IC({h:90,s:100,v:100}),new IC({h:90,s:100,v:75}),new IC({h:90,s:100,v:50}),new IC({h:180,s:0,v:70}),new IC({h:120,s:33,v:100}),new IC({h:120,s:66,v:100}),new IC({h:120,s:100,v:100}),new IC({h:120,s:100,v:75}),new IC({h:120,s:100,v:50}),new IC({h:180,s:0,v:60}),new IC({h:150,s:33,v:100}),new IC({h:150,s:66,v:100}),new IC({h:150,s:100,v:100}),new IC({h:150,s:100,v:75}),new IC({h:150,s:100,v:50}),new IC({h:180,s:0,v:50}),new IC({h:180,s:33,v:100}),new IC({h:180,s:66,v:100}),new IC({h:180,s:100,v:100}),new IC({h:180,s:100,v:75}),new IC({h:180,s:100,v:50}),new IC({h:180,s:0,v:40}),new IC({h:210,s:33,v:100}),new IC({h:210,s:66,v:100}),new IC({h:210,s:100,v:100}),new IC({h:210,s:100,v:75}),new IC({h:210,s:100,v:50}),new IC({h:180,s:0,v:30}),new IC({h:240,s:33,v:100}),new IC({h:240,s:66,v:100}),new IC({h:240,s:100,v:100}),new IC({h:240,s:100,v:75}),new IC({h:240,s:100,v:50}),new IC({h:180,s:0,v:20}),new IC({h:270,s:33,v:100}),new IC({h:270,s:66,v:100}),new IC({h:270,s:100,v:100}),new IC({h:270,s:100,v:75}),new IC({h:270,s:100,v:50}),new IC({h:180,s:0,v:10}),new IC({h:300,s:33,v:100}),new IC({h:300,s:66,v:100}),new IC({h:300,s:100,v:100}),new IC({h:300,s:100,v:75}),new IC({h:300,s:100,v:50}),new IC({h:180,s:0,v:0}),new IC({h:330,s:33,v:100}),new IC({h:330,s:66,v:100}),new IC({h:330,s:100,v:100}),new IC({h:330,s:100,v:75}),new IC({h:330,s:100,v:50}),new IC]},images:{clientPath:"/jPicker/images/",colorMap:{width:256,height:256,arrow:{file:"mappoint.gif",width:15,height:15}},colorBar:{width:20,height:256,arrow:{file:"rangearrows.gif",width:20,height:7}},picker:{file:"picker.gif",width:25,height:24}}},QC="http://www.w3.org/2000/svg",qC="http://www.w3.org/1999/xlink";window.console||(window.console={log(){},dir(){}});const VC={Paint:SvgCanvas.Paint},GC={paint:new VC.Paint,window:{pickerTitle:"Drag markers to pick a paint"},images:{clientPath:"images/"},newstop:"inverse"},DC=navigator.userAgent.includes("Gecko/");function mkElem(en,tn,nn){const rn=document.createElementNS(QC,en);return function setAttrs(en,tn){DC?Object.entries(tn).forEach((tn=>{let[nn,rn]=tn;en.setAttribute(nn,rn)})):Object.entries(tn).forEach((tn=>{let[nn,rn]=tn;const an=en[nn];"SVGLength"===(null==an?void 0:an.constructor)?an.baseVal.value=rn:en.setAttribute(nn,rn)}))}(rn,tn),nn&&nn.append(rn),rn}function jGraduateMethod(en,tn,nn,rn,an){const sn=en,cn=Object.assign({},GC,tn||{}),An=sn.getAttribute("id"),dn="#"+sn.getAttribute("id")+" ";if(!dn)return void alert("Container element must have an id attribute to maintain unique id strings for sub-elements.");const okClicked=function(){switch(sn.paint.type){case"radialGradient":sn.paint.linearGradient=null;break;case"linearGradient":sn.paint.radialGradient=null;break;case"solidColor":sn.paint.radialGradient=sn.paint.linearGradient=null}"function"==typeof sn.okCallback&&sn.okCallback(sn.paint),sn.style.display="none"},cancelClicked=function(){"function"==typeof sn.cancelCallback&&sn.cancelCallback(),sn.style.display="none"};Object.assign(sn,{paint:new VC.Paint({copy:cn.paint}),okCallback:"function"==typeof nn?nn:null,cancelCallback:"function"==typeof rn?rn:null});let un=null;const pn=window;"none"===sn.paint.type&&(sn.paint=new VC.Paint({solidColor:"ffffff"})),sn.classList.add("jGraduate_Picker"),sn.innerHTML='<ul class="jGraduate_tabs">\n <li class="jGraduate_tab_color jGraduate_tab_current" id="jGraduate_tab_color" data-type="col">'.concat(an.t("config.jgraduate_solid_color"),'</li>\n <li class="jGraduate_tab_lingrad" id="jGraduate_tab_lingrad" data-type="lg">').concat(an.t("config.jgraduate_linear_gradient"),'</li>\n <li class="jGraduate_tab_radgrad" id="jGraduate_tab_radgrad" data-type="rg">').concat(an.t("config.jgraduate_radial_gradient"),'</li>\n </ul>\n <div class="jGraduate_colPick" id="jGraduate_colPick"></div>\n <div class="jGraduate_gradPick" id="jGraduate_gradPick"></div>\n <div class="jGraduate_LightBox" id="jGraduate_LightBox"></div>\n <div id="').concat(An,'_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>');const hn=sn.querySelector("#jGraduate_colPick"),gn=sn.querySelector("#jGraduate_gradPick"),_n='<div id="'.concat(An,'_jGraduate_Swatch" class="jGraduate_Swatch">\n <h2 class="jGraduate_Title">').concat(cn.window.pickerTitle,'</h2>\n <div id="').concat(An,'_jGraduate_GradContainer" class="jGraduate_GradContainer"></div>\n <div id="').concat(An,'_jGraduate_StopSlider" class="jGraduate_StopSlider"></div>\n </div>\n <div class="jGraduate_Form jGraduate_Points jGraduate_lg_field">\n <div class="jGraduate_StopSection">\n <label class="jGraduate_Form_Heading">').concat(an.t("config.jgraduate_begin_point"),'</label>\n <div class="jGraduate_Form_Section">\n <label>x:</label>\n <input type="text" id="').concat(An,'_jGraduate_x1" size="3" title="').concat(an.t("config.jgraduate_enter_starting_x"),'"/>\n <label>y:</label>\n <input type="text" id="').concat(An,'_jGraduate_y1" size="3" title="').concat(an.t("config.jgraduate_enter_starting_y"),'"/>\n </div>\n </div>\n <div class="jGraduate_StopSection">\n <label class="jGraduate_Form_Heading">').concat(an.t("config.jgraduate_end_point"),'</label>\n <div class="jGraduate_Form_Section">\n <label>x:</label>\n <input type="text" id="').concat(An,'_jGraduate_x2" size="3" title="').concat(an.t("config.jgraduate_enter_ending_x"),'"/>\n <label>y:</label>\n <input type="text" id="').concat(An,'_jGraduate_y2" size="3" title="').concat(an.t("config.jgraduate_enter_ending_y"),'"/>\n </div>\n </div>\n </div>\n <div class="jGraduate_Form jGraduate_Points jGraduate_rg_field">\n <div class="jGraduate_StopSection">\n <label class="jGraduate_Form_Heading">').concat(an.t("config.jgraduate_center_point"),'</label>\n <div class="jGraduate_Form_Section">\n <label>x:</label>\n <input type="text" id="').concat(An,'_jGraduate_cx" size="3" title="').concat(an.t("config.jgraduate_enter_value_x"),'"/>\n <label>y:</label>\n <input type="text" id="').concat(An,'_jGraduate_cy" size="3" title="').concat(an.t("config.jgraduate_enter_value_y"),'"/>\n </div>\n </div>\n <div class="jGraduate_StopSection">\n <label class="jGraduate_Form_Heading">').concat(an.t("config.jgraduate_focal_point"),'</label>\n <div class="jGraduate_Form_Section">\n <label>').concat(an.t("config.jgraduate_match_center"),' <input type="checkbox" checked="checked" id="').concat(An,'_jGraduate_match_ctr"/></label><br/>\n <label>x:</label>\n <input type="text" id="').concat(An,'_jGraduate_fx" size="3" title="').concat(an.t("config.jgraduate_enter_focal_x"),'"/>\n <label>y:</label>\n <input type="text" id="').concat(An,'_jGraduate_fy" size="3" title="').concat(an.t("config.jgraduate_enter_focal_y"),'"/>\n </div>\n </div>\n </div>\n <div class="jGraduate_StopSection jGraduate_SpreadMethod">\n <label class="jGraduate_Form_Heading">').concat(an.t("config.jgraduate_spread_method"),'</label>\n <div class="jGraduate_Form_Section">\n <select class="jGraduate_spreadMethod" id="jGraduate_spreadMethod">\n <option value=pad selected>').concat(an.t("properties.jgraduate_pad"),"</option>\n <option value=reflect>").concat(an.t("properties.jgraduate_reflect"),"</option>\n <option value=repeat>").concat(an.t("properties.jgraduate_repeat"),'</option>\n </select>\n </div>\n </div>\n <div class="jGraduate_Form">\n <div class="jGraduate_Slider jGraduate_RadiusField jGraduate_rg_field">\n <label class="prelabel">').concat(an.t("config.jgraduate_radius"),'</label>\n <div id="').concat(An,'_jGraduate_Radius" class="jGraduate_SliderBar jGraduate_Radius" title="').concat(an.t("config.jgraduate_set_radius"),'">\n <img id="').concat(An,'_jGraduate_RadiusArrows" class="jGraduate_RadiusArrows" src="').concat(cn.images.clientPath,'rangearrows2.gif">\n </div>\n <label><input type="text" id="').concat(An,'_jGraduate_RadiusInput" size="3" value="100"/>%</label>\n </div>\n <div class="jGraduate_Slider jGraduate_EllipField jGraduate_rg_field">\n <label class="prelabel">').concat(an.t("config.jgraduate_ellip"),'</label>\n <div id="').concat(An,'_jGraduate_Ellip" class="jGraduate_SliderBar jGraduate_Ellip" title="').concat(an.t("config.jgraduate_set_ellip"),'">\n <img id="').concat(An,'_jGraduate_EllipArrows" class="jGraduate_EllipArrows" src="').concat(cn.images.clientPath,'rangearrows2.gif">\n </div>\n <label><input type="text" id="').concat(An,'_jGraduate_EllipInput" size="3" value="0"/>%</label>\n </div>\n <div class="jGraduate_Slider jGraduate_AngleField jGraduate_rg_field">\n <label class="prelabel">').concat(an.t("config.jgraduate_angle"),'</label>\n <div id="').concat(An,'_jGraduate_Angle" class="jGraduate_SliderBar jGraduate_Angle" title="').concat(an.t("config.jgraduate_set_angle"),'">\n <img id="').concat(An,'_jGraduate_AngleArrows" class="jGraduate_AngleArrows" src="').concat(cn.images.clientPath,'rangearrows2.gif">\n </div>\n <label><input type="text" id="').concat(An,'_jGraduate_AngleInput" size="3" value="0"/>').concat(an.t("config.jgraduate_deg"),'</label>\n </div>\n <div class="jGraduate_Slider jGraduate_OpacField">\n <label class="prelabel">').concat(an.t("config.jgraduate_opac"),'</label>\n <div id="').concat(An,'_jGraduate_Opac" class="jGraduate_SliderBar jGraduate_Opac" title="').concat(an.t("config.jgraduate_set_opac"),'">\n <img id="').concat(An,'_jGraduate_OpacArrows" class="jGraduate_OpacArrows" src="').concat(cn.images.clientPath,'rangearrows2.gif">\n </div>\n <label><input type="text" id="').concat(An,'_jGraduate_OpacInput" size="3" value="100"/>%</label>\n </div>\n </div>\n <div class="jGraduate_OkCancel">\n <input type="button" id="').concat(An,'_jGraduate_Ok" class="jGraduate_Ok" value="').concat(an.t("common.ok"),'"/>\n <input type="button" id="').concat(An,'_jGraduate_Cancel" class="jGraduate_Cancel" value="').concat(an.t("common.cancel"),'"/>\n </div>'),mn=document.createElement("div");for(mn.innerHTML=_n;mn.children.length>0;)gn.appendChild(mn.children[0]);const fn=256,yn={},bn=145,vn=sn.querySelectorAll(".jGraduate_SliderBar");for(const en of vn)en.style.width="145px";const wn=sn.querySelector("#"+An+"_jGraduate_GradContainer"),xn=mkElem("svg",{id:An+"_jgraduate_svg",width:fn,height:fn,xmlns:QC},wn);let kn=sn.paint.type,Cn=sn.paint[kn],Sn=Cn;const Bn=sn.paint.alpha,En="solidColor"===kn;switch(kn){case"solidColor":case"linearGradient":if(En||(Sn.id=An+"_lg_jgraduate_grad",Cn=Sn=xn.appendChild(Sn)),mkElem("radialGradient",{id:An+"_rg_jgraduate_grad"},xn),"linearGradient"===kn)break;case"radialGradient":En||(Sn.id=An+"_rg_jgraduate_grad",Cn=Sn=xn.appendChild(Sn)),mkElem("linearGradient",{id:An+"_lg_jgraduate_grad"},xn)}let jn;if(En){Cn=Sn=sn.querySelector("#"+An+"_lg_jgraduate_grad"),un=sn.paint[kn],mkStop(0,"#"+un,1);const en=typeof cn.newstop;if("string"===en)switch(cn.newstop){case"same":mkStop(1,"#"+un,1);break;case"inverse":{let en="";for(let tn=0;tn<6;tn+=2){let nn=(255-Number.parseInt(un.substr(tn,2),16)).toString(16);nn.length<2&&(nn=0+nn),en+=nn}mkStop(1,"#"+en,1);break}case"white":mkStop(1,"#ffffff",1);break;case"black":mkStop(1,"#000000",1)}else if("object"===en){const en="opac"in cn.newstop?cn.newstop.opac:1;mkStop(1,cn.newstop.color||"#"+un,en)}}const Ln=Number.parseFloat(Cn.getAttribute("x1")||0),Pn=Number.parseFloat(Cn.getAttribute("y1")||0),Tn=Number.parseFloat(Cn.getAttribute("x2")||1),Fn=Number.parseFloat(Cn.getAttribute("y2")||0),Un=Number.parseFloat(Cn.getAttribute("cx")||.5),Nn=Number.parseFloat(Cn.getAttribute("cy")||.5),In=Number.parseFloat(Cn.getAttribute("fx")||Un),Mn=Number.parseFloat(Cn.getAttribute("fy")||Nn),Rn=mkElem("rect",{id:An+"_jgraduate_rect",x:0,y:0,width:256,height:256,fill:"url(#"+An+"_jgraduate_grad)","fill-opacity":Bn/100},xn),On=document.createElement("div");On.setAttribute("class","grad_coord jGraduate_lg_field"),On.setAttribute("title","Begin Stop"),On.textContent=1,On.style.top=Pn*fn,On.style.left=Ln*fn,On.dataset.coord="start",wn.appendChild(On);const Qn=document.createElement("div");Qn.setAttribute("class","grad_coord jGraduate_lg_field"),Qn.setAttribute("title","End stop"),Qn.textContent=2,Qn.style.top=Fn*fn,Qn.style.left=Tn*fn,Qn.dataset.coord="end",wn.appendChild(Qn);const qn=document.createElement("div");qn.setAttribute("class","grad_coord jGraduate_rg_field"),qn.setAttribute("title","Center stop"),qn.textContent="C",qn.style.top=Nn*fn,qn.style.left=Un*fn,qn.dataset.coord="center",wn.appendChild(qn);const Vn=document.createElement("div");let Gn;Vn.setAttribute("class","grad_coord jGraduate_rg_field"),Vn.setAttribute("title","Focus point"),Vn.textContent="F",Vn.style.top=Mn*fn,Vn.style.left=In*fn,Vn.style.display="none",Vn.dataset.coord="focus",Vn.setAttribute("id",An+"_jGraduate_focusCoord"),wn.appendChild(Vn);const onAttrChangeHandler=(en,tn,nn)=>{isNaN(Number.parseFloat(en.target.value))||en.target.value<0?en.target.value=0:en.target.value>1&&(en.target.value=1),("f"!==tn[0]||Gn)&&(nn&&"radialGradient"===kn||!nn&&"linearGradient"===kn)&&Sn.setAttribute(tn,en.target.value);const rn=nn?"c"===tn[0]?qn:Vn:"1"===tn[1]?On:Qn;"left"===tn.includes("x")?rn.style.left=en.target.value*fn:"top"===tn.includes("x")&&(rn.style.top=en.target.value*fn)};for(const[,en]of["x1","y1","x2","y2","cx","cy","fx","fy"].entries()){const tn=isNaN(en[1]);let nn=Sn.getAttribute(en);nn||(nn=tn?"0.5":"x2"===en?"1.0":"0.0"),yn[en]=sn.querySelector("#"+An+"_jGraduate_"+en),yn[en].value=nn,yn[en].addEventListener("change",(nn=>onAttrChangeHandler(nn,en,tn))),yn[en].dispatchEvent(new Event("change"))}function mkStop(en,tn,nn,rn,dn){const un=dn||mkElem("stop",{id:"jq_stop_"+Math.floor(1e4*Math.random()+1),"stop-color":tn,"stop-opacity":nn,offset:en},Sn);dn?(tn=dn.getAttribute("stop-color"),nn=dn.getAttribute("stop-opacity"),en=dn.getAttribute("offset")):Sn.appendChild(un),null===nn&&(nn=1);const hn="M-6.2,0.9c3.6-4,6.7-4.3,6.7-12.4c-0.2,7.9,3.1,8.8,6.5,12.4c3.5,3.8,2.9,9.6,0,12.3c-3.1,2.8-10.4,2.7-13.2,0C-9.6,9.9-9.4,4.4-6.2,0.9z",gn=mkElem("path",{id:"jq_pathbg_"+Math.floor(1e4*Math.random()+1),d:hn,fill:"url(#jGraduate_trans)",transform:"translate("+(10+en*fn)+", 26)"},jn),_n=mkElem("path",{d:hn,fill:tn,"fill-opacity":nn,transform:"translate("+(10+en*fn)+", 26)",stroke:"#000","stroke-width":1.5},jn);_n.addEventListener("mousedown",(function(en){return selectStop(this),Kn=zn,pn.addEventListener("mousemove",dragColor),pn.addEventListener("mouseup",remDrags),Wn=findPos(Dn),en.preventDefault(),!1})),_n.dataset.stop=un.getAttribute("id"),_n.dataset.bg=gn.getAttribute("id"),_n.addEventListener("dblclick",(function(){sn.querySelector("#jGraduate_LightBox").style.display="block";const en=this;let nn=Number(un.getAttribute("stop-opacity"))||1,rn=un.getAttribute("stop-color")||1,dn=(255*Number.parseFloat(nn)).toString(16);for(;dn.length<2;)dn="0"+dn;tn=rn.substr(1)+dn;const pn=sn.querySelector("#"+An+"_jGraduate_stopPicker");pn.style.left="100px",pn.style.bottom="15px",jPickerMethod(pn,{window:{title:"Pick the start color and opacity for the gradient"},images:{clientPath:cn.images.clientPath},color:{active:tn,alphaSupport:!0}},(function(tn){rn=tn.val("hex")?"#"+tn.val("hex"):"none",nn=null!==tn.val("a")?tn.val("a")/256:1,en.setAttribute("fill",rn),en.setAttribute("fill-opacity",nn),un.setAttribute("stop-color",rn),un.setAttribute("stop-opacity",nn),sn.querySelector("#jGraduate_LightBox").style.display="none",sn.querySelector("#"+An+"_jGraduate_stopPicker").style.display="none"}),null,(function(){sn.querySelector("#jGraduate_LightBox").style.display="none",sn.querySelector("#"+An+"_jGraduate_stopPicker").style.display="none"}),an)}));const mn=Sn.querySelectorAll("stop");for(const nn of mn){const rn=nn;if(Number(nn.getAttribute("offset"))>en){if(!tn){const en=nn.getAttribute("stop-color"),tn=nn.getAttribute("stop-opacity");un.setAttribute("stop-color",en),_n.setAttribute("fill",en),un.setAttribute("stop-opacity",null===tn?1:tn),_n.setAttribute("fill-opacity",null===tn?1:tn)}rn.insertAdjacentElement("beforebegin",un)}}return rn&&selectStop(_n),un}const Dn=sn.querySelector("#"+An+"_jGraduate_StopSlider");let Hn,zn,Kn;const $n=mkElem("path",{d:"m9.75,-6l-19.5,19.5m0,-19.5l19.5,19.5",fill:"none",stroke:"#D00","stroke-width":5,display:"none"},void 0);function selectStop(en){zn&&zn.setAttribute("stroke","#000"),en.setAttribute("stroke","blue"),zn=en}let Wn;function remDrags(){pn.removeEventListener("mousemove",dragColor),"none"!==$n.getAttribute("display")&&function remStop(){$n.setAttribute("display","none");const en=zn;delete en.dataset.stop,delete en.dataset.bg,zn.parentNode.removeChild(zn)}(),Kn=null}let Xn=1,Yn=1,Zn=0,Jn=Un,Tr=Nn;function xform(){const en=Zn?"rotate("+Zn+","+Jn+","+Tr+") ":"";if(1===Xn&&1===Yn)Sn.removeAttribute("gradientTransform");else{const tn=-Jn*(Xn-1),nn=-Tr*(Yn-1);Sn.setAttribute("gradientTransform",en+"translate("+tn+","+nn+") scale("+Xn+","+Yn+")")}}function dragColor(en){let tn=en.pageX-Wn.left;const nn=en.pageY-Wn.top;tn=tn<10?10:tn>266?266:tn;const rn="translate("+tn+", 26)";nn<-60||nn>130?($n.setAttribute("display","block"),$n.setAttribute("transform",rn)):$n.setAttribute("display","none"),Kn.setAttribute("transform",rn);sn.querySelector("#"+Kn.dataset.bg).setAttribute("transform",rn);const an=sn.querySelector("#"+Kn.dataset.stop),cn=(tn-10)/fn;an.setAttribute("offset",cn);let An=0;const dn=Sn.querySelectorAll("stop");[].forEach.call(dn,(function(en){const tn=en.getAttribute("offset"),nn=en;tn<An&&(nn.previousElementSibling.insertAdjacentElement("beforebegin",nn),Hn=Sn.querySelectorAll("stop")),An=tn}))}const Ur=mkElem("svg",{width:"100%",height:45},Dn),Rr=mkElem("pattern",{width:16,height:16,patternUnits:"userSpaceOnUse",id:"jGraduate_trans"},Ur),Qr=mkElem("image",{width:16,height:16},Rr),Vr=cn.images.clientPath+"map-opacity.png";Qr.setAttributeNS(qC,"xlink:href",Vr),svgEditor.$click(Ur,(function(en){Wn=findPos(Dn);const{target:tn}=en;if("path"===tn.tagName)return;let nn=en.pageX-Wn.left-8;nn=nn<10?10:nn>266?266:nn,mkStop(nn/fn,0,0,!0),en.stopPropagation()})),Ur.addEventListener("mouseover",(function(){Ur.append($n)})),jn=mkElem("g",{},Ur),mkElem("line",{x1:10,y1:15,x2:266,y2:15,"stroke-width":2,stroke:"#000"},Ur);const Gr=gn.querySelector("#jGraduate_spreadMethod");Gr.addEventListener("change",(function(){Sn.setAttribute("spreadMethod",this.value)}));let Dr=null;const onCoordDrag=function(en){let tn=en.pageX-Hr.left,nn=en.pageY-Hr.top;tn=tn<0?0:tn>fn?fn:tn,nn=nn<0?0:nn>fn?fn:nn,Dr.style.left=tn+"px",Dr.style.top=nn+"px";const rn=tn/256,an=nn/256,sn=Dr.dataset.coord,cn=Sn;switch(sn){case"start":yn.x1.value=rn,yn.y1.value=an,cn.setAttribute("x1",rn),cn.setAttribute("y1",an);break;case"end":yn.x2.value=rn,yn.y2.value=an,cn.setAttribute("x2",rn),cn.setAttribute("y2",an);break;case"center":yn.cx.value=rn,yn.cy.value=an,cn.setAttribute("cx",rn),cn.setAttribute("cy",an),Jn=rn,Tr=an,xform();break;case"focus":yn.fx.value=rn,yn.fy.value=an,cn.setAttribute("fx",rn),cn.setAttribute("fy",an),xform()}en.preventDefault()},onCoordUp=function(){Dr=null,pn.removeEventListener("mousemove",onCoordDrag),pn.removeEventListener("mouseup",onCoordUp)};Hn=Sn.getElementsByTagNameNS(QC,"stop");let Hr,zr=Hn.length;if(zr<2){for(;zr<2;)Sn.append(document.createElementNS(QC,"stop")),++zr;Hn=Sn.getElementsByTagNameNS(QC,"stop")}for(let en=0;en<zr;en++)mkStop(0,0,0,0,Hn[en]);Gr.setAttribute("value",Sn.getAttribute("spreadMethod")||"pad"),Gn=!1,Rn.setAttribute("fill-opacity",Bn/100);const Kr=sn.querySelectorAll("#"+An+" div.grad_coord"),onMouseDownGradCoords=en=>{en.preventDefault(),Dr=en.target,Hr=findPos(Dr.parentNode),pn.addEventListener("mousemove",onCoordDrag),pn.addEventListener("mouseup",onCoordUp)};for(const en of Kr)en.addEventListener("mousedown",onMouseDownGradCoords);let $r,Wr;svgEditor.$click(sn.querySelector("#"+An+"_jGraduate_Ok"),(function(){sn.paint.type=kn,sn.paint[kn]=Sn.cloneNode(!0),sn.paint.solidColor=null,okClicked()})),svgEditor.$click(sn.querySelector("#"+An+"_jGraduate_Cancel"),cancelClicked),"radialGradient"===kn&&(Gn?Vn.style.display="block":(Vn.style.display="none",yn.fx.value="",yn.fy.value="")),sn.querySelector("#"+An+"_jGraduate_match_ctr").checked=!Gn;if(sn.querySelector("#"+An+"_jGraduate_match_ctr").addEventListener("change",(en=>{Gn=!en.target.checked,Vn.style.display=Gn?"block":"none",yn.fx.value="",yn.fy.value="";const tn=Sn;if(Gn){const en=$r||.5,nn=Wr||.5;tn.setAttribute("fx",en),tn.setAttribute("fy",nn),yn.fx.value=en,yn.fy.value=nn}else $r=tn.getAttribute("fx"),Wr=tn.getAttribute("fy"),tn.removeAttribute("fx"),tn.removeAttribute("fy")})),Hn=Sn.getElementsByTagNameNS(QC,"stop"),zr=Hn.length,zr<2){for(;zr<2;)Sn.append(document.createElementNS(QC,"stop")),++zr;Hn=Sn.getElementsByTagNameNS(QC,"stop")}let Xr;let Yr=0,Zr=0;if("radialGradient"===kn){const en=Sn.gradientTransform.baseVal;if(2===en.numberOfItems){const tn=en.getItem(0),nn=en.getItem(1);if(2===tn.type&&3===nn.type){const en=nn.matrix;1!==en.a?Yr=Math.round(100*-(1-en.a)):1!==en.d&&(Yr=Math.round(100*(1-en.d)))}}else if(3===en.numberOfItems){const tn=en.getItem(0),nn=en.getItem(1),rn=en.getItem(2);if(4===tn.type&&2===nn.type&&3===rn.type){Zr=Math.round(tn.angle);const en=rn.matrix;1!==en.a?Yr=Math.round(100*-(1-en.a)):1!==en.d&&(Yr=Math.round(100*(1-en.d)))}}}const Jr={radius:{handle:"#"+An+"_jGraduate_RadiusArrows",input:"#"+An+"_jGraduate_RadiusInput",val:100*(Sn.getAttribute("r")||.5)},opacity:{handle:"#"+An+"_jGraduate_OpacArrows",input:"#"+An+"_jGraduate_OpacInput",val:sn.paint.alpha||100},ellip:{handle:"#"+An+"_jGraduate_EllipArrows",input:"#"+An+"_jGraduate_EllipInput",val:Yr},angle:{handle:"#"+An+"_jGraduate_AngleArrows",input:"#"+An+"_jGraduate_AngleInput",val:Zr}};for(const[,[en,tn]]of Object.entries(Object.entries(Jr))){const nn=sn.querySelector(tn.handle),rn=sn.querySelector(tn.input);nn.addEventListener("mousedown",(function(tn){const an=nn.parentNode;Xr={type:en,elem:nn,input:rn,parent:an,offset:findPos(an)},pn.addEventListener("mousemove",dragSlider),pn.addEventListener("mouseup",stopSlider),tn.preventDefault()})),rn.value=tn.val,rn.addEventListener("change",(function(){const tn="radialGradient"===kn;let rn=Number(this.value),an=0;switch(en){case"radius":tn&&Sn.setAttribute("r",rn/100),an=(rn/100)**.4/2*bn;break;case"opacity":sn.paint.alpha=rn,Rn.setAttribute("fill-opacity",rn/100),an=1.45*rn;break;case"ellip":if(Xn=Yn=1,0===rn){an=72.5;break}rn>99.5&&(rn=99.5),rn>0?Yn=1-rn/100:Xn=-rn/100-1,an=bn*((rn+100)/2)/100,tn&&xform();break;case"angle":Zn=rn,an=Zn/180,an+=.5,an*=bn,tn&&xform()}an>bn?an=bn:an<0&&(an=0),nn.style.marginLeft=an-5+"px"})),rn.dispatchEvent(new Event("change"))}const dragSlider=function(en){!function(en){const{offset:{left:tn}}=Xr,nn=Xr.parent;let rn=en.pageX-tn-Number.parseInt(getComputedStyle(nn,null).getPropertyValue("border-left-width"));rn>bn&&(rn=bn),rn<=0&&(rn=0);const an=rn-5;switch(rn/=bn,Xr.type){case"radius":rn=(2*rn)**2.5,rn>.98&&rn<1.02&&(rn=1),rn<=.01&&(rn=.01),Sn.setAttribute("r",rn);break;case"opacity":sn.paint.alpha=Number.parseInt(100*rn),Rn.setAttribute("fill-opacity",rn);break;case"ellip":Xn=1,Yn=1,rn<.5?(rn/=.5,Xn=rn<=0?.01:rn):rn>.5&&(rn/=.5,rn=2-rn,Yn=rn<=0?.01:rn),xform(),rn-=1,Yn===rn+1&&(rn=Math.abs(rn));break;case"angle":rn-=.5,Zn=rn*=180,xform(),rn/=100}Xr.elem.style.marginLeft=an+"px",rn=Math.round(100*rn),Xr.input.value=rn}(en),en.preventDefault()},stopSlider=function(){pn.removeEventListener("mousemove",dragSlider),pn.removeEventListener("mouseup",stopSlider),Xr=null};let eo=(255*sn.paint.alpha/100).toString(16);for(;eo.length<2;)eo="0"+eo;eo=eo.split(".")[0],un="none"===sn.paint.solidColor?"":sn.paint.solidColor+eo,En||(un=Hn[0].getAttribute("stop-color")),Object.assign(OC.window,{alphaSupport:!0,effects:{type:"show",speed:0}}),jPickerMethod(hn,{window:{title:cn.window.pickerTitle},images:{clientPath:cn.images.clientPath},color:{active:un,alphaSupport:!0}},(function(en){sn.paint.type="solidColor",sn.paint.alpha=en.val("ahex")?Math.round(en.val("a")/255*100):100,sn.paint.solidColor=en.val("hex")?en.val("hex"):"none",sn.paint.radialGradient=null,okClicked()}),null,(function(){cancelClicked()}),an);const to=sn.querySelectorAll(".jGraduate_tabs li"),onTabsClickHandler=en=>{for(const en of to)en.classList.remove("jGraduate_tab_current");en.target.classList.add("jGraduate_tab_current");const tn=sn.querySelectorAll(dn+" > div");[].forEach.call(tn,(function(en){en.style.display="none"}));const nn=en.target.dataset.type;if(gn.style.display="block","rg"===nn||"lg"===nn){const en=sn.querySelectorAll(".jGraduate_"+nn+"_field");[].forEach.call(en,(function(en){en.style.display="block"}));const tn=sn.querySelectorAll(".jGraduate_"+("lg"===nn?"rg":"lg")+"_field");[].forEach.call(tn,(function(en){en.style.display="none"})),sn.querySelectorAll("#"+An+"_jgraduate_rect")[0].setAttribute("fill","url(#"+An+"_"+nn+"_jgraduate_grad)"),kn="lg"===nn?"linearGradient":"radialGradient";const rn=sn.querySelector("#"+An+"_jGraduate_OpacInput");rn.value=sn.paint.alpha,rn.dispatchEvent(new Event("change"));const an=sn.querySelectorAll("#"+An+"_"+nn+"_jgraduate_grad")[0];if(Sn!==an){const en=Sn.querySelectorAll("stop");for(;an.firstChild;)an.removeChild(an.firstChild);[].forEach.call(en,(function(en){an.appendChild(en)})),Sn=an;const tn=Gr.getAttribute("value");Sn.setAttribute("spreadMethod",tn)}Gn="rg"===nn&&null!==Sn.getAttribute("fx")&&!(Un===In&&Nn===Mn);const cn=sn.querySelectorAll("#"+An+"_jGraduate_focusCoord");"none"===cn[0].style.display?cn[0].style.display="block":cn[0].style.display="none",Gn&&(sn.querySelectorAll("#"+An+"_jGraduate_match_ctr")[0].checked=!1)}else gn.style.display="none",hn.style.display="block"};for(const en of to)svgEditor.$click(en,onTabsClickHandler);const no=sn.querySelectorAll(dn+" > div");[].forEach.call(no,(function(en){en.style.display="none"}));for(const en of to)en.classList.remove("jGraduate_tab_current");let ro;switch(sn.paint.type){case"linearGradient":ro=sn.querySelector(dn+" .jGraduate_tab_lingrad");break;case"radialGradient":ro=sn.querySelector(dn+" .jGraduate_tab_radgrad");break;default:ro=sn.querySelector(dn+" .jGraduate_tab_color")}sn.style.display="block",setTimeout((()=>{ro.classList.add("jGraduate_tab_current"),ro.dispatchEvent(new Event("click"))}),10)}class PaintBox{constructor(en,tn){let nn=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14">\n <rect\n fill="#000000" opacity="1" width="14" height="14"/>\n <defs><linearGradient id="gradbox_'.concat(PaintBox.ctr++,'"/></defs>\n </svg>'),"text/xml").documentElement;nn=document.importNode(nn,!0),en.appendChild(nn),this.rect=nn.firstElementChild,this.defs=nn.getElementsByTagName("defs")[0],this.grad=this.defs.firstElementChild,this.type=tn}setPaint(en){this.paint=en;const tn=en.type,nn=en.alpha/100;let rn="none";switch(tn){case"solidColor":rn="none"!==en[tn]?"#"+en[tn]:en[tn];break;case"linearGradient":case"radialGradient":this.grad.remove(),this.grad=en[tn],this.defs.appendChild(this.grad);rn="url(#"+(this.grad.id="gradbox_"+this.type)+")";break}this.rect.setAttribute("fill",rn),this.rect.setAttribute("opacity",nn)}static getPaint(en,tn,nn,rn){const an={alpha:nn};if(tn.startsWith("url(#")){let nn=en.getRefElem(tn);nn=nn?nn.cloneNode(!0):document.querySelectorAll("#"+rn+"_color defs *")[0],nn?an[nn.tagName]=nn:(console.error("the color ".concat(tn," is referenced by an url that can't be identified - using 'none'")),an.solidColor="none")}else tn.startsWith("#")&&(an.solidColor=tn.substr(1));return new VC.Paint(an)}update(en,tn){if(!tn)return null;const{type:nn}=this;switch(tn.tagName){case"use":case"image":case"foreignObject":return null;case"g":case"a":{const en=tn.getElementsByTagName("*");let rn=null;for(let tn=0,an=en.length;tn<an;tn++){const an=en[tn].getAttribute(nn);if(0===tn)rn=an;else if(rn!==an){rn=null;break}}if(null===rn)return this._paintColor=null,null;this._paintColor=rn,this._paintOpacity=1;break}default:{this._paintOpacity=Number.parseFloat(tn.getAttribute(nn+"-opacity")),Number.isNaN(this._paintOpacity)&&(this._paintOpacity=1);const en="fill"===nn?"black":"none";this._paintColor=tn.getAttribute(nn)||en}}this._paintOpacity*=100;const rn=PaintBox.getPaint(en,this._paintColor,this._paintOpacity,nn);return this.setPaint(rn),rn}}PaintBox.ctr=0;const HC=document.createElement("template");HC.innerHTML='\n <style>\n .jPicker .Icon {\n display: inline-block;\n height: 24px;\n position: relative;\n text-align: left;\n width: 25px\n}\n\n.jPicker .Icon span.Color, .jPicker .Icon span.Alpha {\n background-position: 2px 2px;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%\n}\n\n.jPicker .Icon span.Image {\n background-repeat: no-repeat;\n cursor: pointer;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%\n}\n\n.jPicker.Container {\n z-index: 10\n}\n\ntable.jPicker {\n background-color: #efefef;\n border: 1px outset #666;\n font-family: Arial, Helvetica, Sans-Serif;\n font-size: 12px!important;\n margin: 0;\n padding: 5px;\n width: 545px;\n z-index: 20\n}\n\n.jPicker .Move {\n background-color: #ddd;\n border-color: #fff #666 #666 #fff;\n border-style: solid;\n border-width: 1px;\n cursor: move;\n height: 12px;\n padding: 0\n}\n\n.jPicker .Title {\n font-size: 11px!important;\n font-weight: bold;\n margin: -2px 0 0 0;\n padding: 0;\n text-align: center;\n width: 100%\n}\n\n.jPicker div.Map {\n border-bottom: 2px solid #fff;\n border-left: 2px solid #9a9a9a;\n border-right: 2px solid #fff;\n border-top: 2px solid #9a9a9a;\n cursor: crosshair;\n height: 260px;\n margin: 0 5px 0 5px;\n overflow: hidden;\n padding: 0;\n position: relative;\n width: 260px\n}\n\n.jPicker div[class="Map"] {\n height: 256px;\n width: 256px\n}\n\n.jPicker div.Bar {\n border-bottom: 2px solid #fff;\n border-left: 2px solid #9a9a9a;\n border-right: 2px solid #fff;\n border-top: 2px solid #9a9a9a;\n cursor: n-resize;\n height: 260px;\n margin: 12px 10px 0 5px;\n overflow: hidden;\n padding: 0;\n position: relative;\n width: 24px\n}\n\n.jPicker div[class="Bar"] {\n height: 256px;\n width: 20px\n}\n\n.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Map .Map3, .jPicker .Bar .Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar .Map4, .jPicker .Bar .Map5, .jPicker .Bar .Map6 {\n background-color: transparent;\n background-image: none;\n display: block;\n left: 0;\n position: absolute;\n top: 0\n}\n\n.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Map .Map3 {\n height: 2596px;\n width: 256px\n}\n\n.jPicker .Bar .Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar .Map4 {\n height: 3896px;\n width: 20px\n}\n\n.jPicker .Bar .Map5, .jPicker .Bar .Map6 {\n height: 256px;\n width: 20px\n}\n\n.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Bar .Map6 {\n background-repeat: no-repeat\n}\n\n.jPicker .Map .Map3, .jPicker .Bar .Map5 {\n background-repeat: repeat\n}\n\n.jPicker .Bar .Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar .Map4 {\n background-repeat: repeat-x\n}\n\n.jPicker .Map .Arrow {\n display: block;\n position: absolute\n}\n\n.jPicker .Bar .Arrow {\n display: block;\n left: 0;\n position: absolute\n}\n\n.jPicker .Preview {\n font-size: 9px;\n text-align: center\n}\n\n.jPicker .Preview div {\n border: 2px inset #eee;\n height: 62px;\n margin: 0 auto;\n padding: 0;\n width: 62px\n}\n\n.jPicker .Preview div span {\n border: 1px solid #000;\n display: block;\n height: 30px;\n margin: 0 auto;\n padding: 0;\n width: 60px\n}\n\n.jPicker .Preview .Active {\n border-bottom-width: 0\n}\n\n.jPicker .Preview .Current {\n border-top-width: 0;\n cursor: pointer\n}\n\n.jPicker .Button {\n text-align: center;\n width: 115px\n}\n\n.jPicker .Button input {\n width: 100px\n}\n\n.jPicker .Button .Ok {\n margin: 12px 0 5px 0\n}\n\n.jPicker td.Radio {\n margin: 0;\n padding: 0;\n width: 31px\n}\n\n.jPicker td.Radio input {\n margin: 0 5px 0 0;\n padding: 0\n}\n\n.jPicker td.Text {\n font-size: 12px!important;\n height: 22px;\n margin: 0;\n padding: 0;\n text-align: left;\n width: 70px\n}\n\n.jPicker tr.Hex td.Text {\n width: 100px\n}\n\n.jPicker td.Text input {\n background-color: #fff;\n border: 1px inset #aaa;\n height: 19px;\n margin: 0 0 0 5px;\n text-align: left;\n width: 30px\n}\n\n.jPicker td[class="Text"] input {\n height: 15px\n}\n\n.jPicker tr.Hex td.Text input.Hex {\n width: 50px\n}\n\n.jPicker tr.Hex td.Text input.AHex {\n width: 20px\n}\n\n.jPicker .Grid {\n text-align: center;\n width: 114px\n}\n\n.jPicker .Grid span.QuickColor {\n border: 1px inset #aaa;\n cursor: pointer;\n display: inline-block;\n height: 15px;\n line-height: 15px;\n margin: 0;\n padding: 0;\n width: 19px\n}\n\n.jPicker .Grid span[class="QuickColor"] {\n width: 17px\n}\n /*\n * jGraduate Default CSS\n *\n * Copyright (c) 2010 Jeff Schiller\n * http://blog.codedread.com/\n *\n * Copyright (c) 2010 Alexis Deveria\n * http://a.deveria.com/\n *\n * Licensed under the MIT License\n */\n\nh2.jGraduate_Title {\n font-family: Arial, Helvetica, Sans-Serif;\n font-size: 11px !important;\n font-weight: bold;\n margin: -13px 0px 0px 0px;\n padding: 0px;\n text-align: center;\n}\n\n.jGraduate_Picker {\n font-family: Arial, Helvetica, Sans-Serif;\n font-size: 12px;\n border-style: solid;\n border-color: lightgrey black black lightgrey;\n border-width: 1px;\n background-color: #EFEFEF;\n position: absolute;\n padding: 10px;\n}\n\n.jGraduate_tabs li {\n background-color: #ccc;\n display: inline;\n border: solid 1px grey;\n padding: 3px;\n margin: 2px;\n cursor: pointer;\n}\n\nli.jGraduate_tab_current {\n background-color: #EFEFEF;\n display: inline;\n padding: 3px;\n margin: 2px;\n border: solid 1px black;\n cursor: pointer;\n}\n\n.jGraduate_colPick {\n display: none;\n}\n\n.jGraduate_gradPick {\n display: none;\n border: outset 1px #666;\n padding: 10px 7px 5px 5px;\n overflow: auto;\n}\n\n.jGraduate_gradPick {\n display: none;\n border: outset 1px #666;\n padding: 10px 7px 5px 5px;\n overflow: auto;\n/* position: relative;*/\n}\n\n.jGraduate_tabs {\n position: relative;\n background-color: #EFEFEF;\n padding: 0px;\n margin: 0px;\n margin-bottom: 5px;\n}\n\ndiv.jGraduate_Swatch {\n float: left;\n margin: 8px;\n}\ndiv.jGraduate_GradContainer {\n border: 2px inset #EEE;\n background-image: url(./components/jgraduate/images/map-opacity.png);\n background-position: 0px 0px;\n height: 256px;\n width: 256px;\n position: relative;\n}\n\ndiv.jGraduate_GradContainer div.grad_coord {\n background: #000;\n border: 1px solid #fff;\n border-radius: 5px;\n -moz-border-radius: 5px;\n width: 10px;\n height: 10px;\n position: absolute;\n margin: -5px -5px;\n top: 0;\n left: 0;\n text-align: center;\n font-size: xx-small;\n line-height: 10px;\n color: #fff;\n text-decoration: none;\n cursor: pointer;\n -moz-user-select: none;\n -webkit-user-select: none;\n}\n\n.jGraduate_AlphaArrows {\n position: absolute;\n margin-top: -10px;\n margin-left: 250.5px;\n}\n\ndiv.jGraduate_Opacity {\n border: 2px inset #eee;\n margin-top: 14px;\n background-color: black;\n background-image: url(../images/Maps.png);\n background-position: 0px -2816px;\n height: 20px;\n cursor: ew-resize;\n}\n\ndiv.jGraduate_StopSlider {\n/* border: 2px inset #eee;*/\n margin: 0 0 0 -10px;\n width: 276px;\n overflow: visible;\n background: #efefef;\n height: 45px;\n cursor: pointer;\n}\n\ndiv.jGraduate_StopSection {\n width: 120px;\n text-align: center;\n}\n\ninput.jGraduate_Ok, input.jGraduate_Cancel {\n display: block;\n width: 100px;\n margin-left: -4px;\n margin-right: -4px;\n}\ninput.jGraduate_Ok {\n margin: 9px -4px 5px -4px;\n}\n\n.colorBox {\n float: left;\n height: 16px;\n width: 16px;\n border: 1px solid var(--border-color);\n cursor: pointer;\n margin: 4px 4px 4px 30px;\n}\n\n.colorBox + label {\n float: left;\n margin-top: 7px;\n}\n\nlabel.jGraduate_Form_Heading {\n position: relative;\n top: 10px;\n background-color: #EFEFEF;\n padding: 2px;\n font-weight: bold;\n font-size: 13px;\n}\n\ndiv.jGraduate_Form_Section {\n border-style: solid;\n border-width: 1px;\n border-color: grey;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n padding: 15px 5px 5px 5px;\n margin: 5px 2px;\n width: 110px;\n text-align: center;\n overflow: auto;\n}\n\ndiv.jGraduate_Form_Section label {\n padding: 0 2px;\n}\n\ndiv.jGraduate_StopSection input[type=text],\ndiv.jGraduate_Slider input[type=text] {\n width: 33px;\n}\n\ndiv.jGraduate_LightBox {\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n background-color: #000;\n opacity: 0.5;\n display: none;\n}\n\ndiv.jGraduate_stopPicker {\n position: absolute;\n display: none;\n background: #E8E8E8;\n}\n\n\n.jGraduate_gradPick {\n width: 535px;\n}\n\n.jGraduate_gradPick div.jGraduate_OpacField {\n\n position: absolute;\n left: 0;\n bottom: 5px;\n/*\n width: 270px;\n\n left: 284px;\n width: 266px;\n height: 200px;\n top: 167px;\n margin: -3px 3px 0px 4px;\n*/\n}\n\n.jGraduate_gradPick .jGraduate_Form {\n float: left;\n width: 270px;\n position: absolute;\n left: 284px;\n width: 266px;\n height: 200px;\n top: 167px;\n margin: -3px 3px 0px 10px;\n}\n\n.jGraduate_gradPick .jGraduate_Points {\n position: static;\n width: 150px;\n margin-left: 0;\n}\n\n.jGraduate_SpreadMethod {\n position: absolute;\n right: 8px;\n top: 100px;\n}\n\n.jGraduate_Colorblocks {\n display: table;\n border-spacing: 0 5px;\n}\n\n.jGraduate_colorblock {\n display: table-row;\n}\n\n.jGraduate_Colorblocks .jGraduate_colorblock > * {\n display: table-cell;\n vertical-align: middle;\n margin: 0;\n float: none;\n}\n\n.jGraduate_gradPick div.jGraduate_StopSection {\n float: left;\n width: 133px;\n margin-top: -8px;\n}\n\n\n.jGraduate_gradPick .jGraduate_Form_Section {\n padding-top: 9px;\n}\n\n\n.jGraduate_Slider {\n text-align: center;\n float: left;\n width: 100%;\n}\n\n.jGraduate_Slider .jGraduate_Form_Section {\n border: none;\n width: 250px;\n padding: 0 2px;\n overflow: visible;\n}\n\n.jGraduate_Slider label {\n display: inline-block;\n float: left;\n line-height: 50px;\n padding: 0;\n}\n\n.jGraduate_Slider label.prelabel {\n width: 40px;\n text-align: left;\n}\n\n.jGraduate_SliderBar {\n width: 140px;\n float: left;\n margin-right: 5px;\n border:1px solid #BBB;\n height:20px;\n margin-top:14px;\n margin-left:5px;\n position: relative;\n}\n\ndiv.jGraduate_Slider input {\n margin-top: 5px;\n}\n\ndiv.jGraduate_Slider img {\n top: 0;\n left: 0;\n position: absolute;\n margin-top: -10px;\n cursor:ew-resize;\n}\n\n\n.jGraduate_gradPick .jGraduate_OkCancel {\n position: absolute;\n top: 39px;\n right: 10px;\n width: 113px;\n\n}\n\n.jGraduate_OpacField {\n position: absolute;\n right: -10px;\n bottom: 0;\n}\n #logo {\n height: 18px;\n width: 18px;\n }\n #block {\n height: 17px;\n width: 14px;\n float: right;\n background-color: darkgrey;\n }\n #picker {\n background: var(--input-color);\n height: 23px;\n line-height: 23px;\n border-radius: 3px;\n width: 52px;\n display: flex;\n align-items: center;\n margin-right: 4px;\n margin-top: 1px;\n justify-content: space-evenly;\n }\n #color_picker {\n z-index: 1000;\n top: 60%;\n }\n </style>\n <div id="picker">\n <img src="logo.svg" alt="icon" id="logo">\n <label for="color" title="" id="label"></label>\n <div id="block">\n </div>\n </div>\n \x3c!-- hidden div --\x3e\n <div id="color_picker"></div>\n';class SeColorPicker extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(HC.content.cloneNode(!0)),this.$logo=this._shadowRoot.getElementById("logo"),this.$label=this._shadowRoot.getElementById("label"),this.$block=this._shadowRoot.getElementById("block"),this.paintBox=null,this.i18next=null,this.$picker=this._shadowRoot.getElementById("picker"),this.$color_picker=this._shadowRoot.getElementById("color_picker"),this.imgPath=svgEditor.configObj.curConfig.imgPath}init(en){this.i18next=en,this.setAttribute("config-change_xxx_color",t$1("config.change_xxx_color"))}static get observedAttributes(){return["label","src","type","config-change_xxx_color"]}attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"src":this.$logo.setAttribute("src",this.imgPath+"/"+nn);break;case"label":this.setAttribute("title",t$1(nn));break;case"type":this.$label.setAttribute("title","config.pick_paint_opavity");break;case"config-change_xxx_color":this.$label.setAttribute("title",nn);break;default:console.error("unknown attribute: ".concat(en))}}get label(){return this.$label.getAttribute("title")}set label(en){this.setAttribute("label",en)}get type(){return this.getAttribute("type")}set type(en){this.setAttribute("type",en)}get src(){return this.getAttribute("src")}set src(en){this.setAttribute("src",en)}update(en,tn,nn){const rn=this.paintBox.update(en,tn);if(rn&&nn){const en=new CustomEvent("change",{detail:{paint:rn}});this.dispatchEvent(en)}}setPaint(en){this.paintBox.setPaint(en)}connectedCallback(){this.paintBox=new PaintBox(this.$block,this.type),svgEditor.$click(this.$picker,(()=>{let{paint:en}=this.paintBox;jGraduateMethod(this.$color_picker,{images:{clientPath:"./components/jgraduate/images/"},paint:en,window:{pickerTitle:this.label},newstop:"inverse"},(tn=>{en=new VC.Paint(tn),this.setPaint(en);const nn=new CustomEvent("change",{detail:{paint:en}});this.dispatchEvent(nn),this.$color_picker.style.display="none"}),(()=>{this.$color_picker.style.display="none"}),this.i18next)}))}}customElements.define("se-colorpicker",SeColorPicker);const zC=document.createElement("template");zC.innerHTML="\n<style>\nselect {\n margin-top: 8px;\n background-color: var(--input-color);\n appearance: none;\n outline: none;\n padding: 3px;\n}\nlabel {\n margin-left: 2px;\n}\n::slotted(*) {\n padding:0;\n width:100%;\n}\n</style>\n <label></label>\n <select>\n </select>\n\n";class SeSelect extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(zC.content.cloneNode(!0)),this.$select=this._shadowRoot.querySelector("select"),this.$label=this._shadowRoot.querySelector("label")}static get observedAttributes(){return["label","width","height","options","values","title","disabled"]}attributeChangedCallback(en,tn,nn){let rn;if(tn!==nn)switch(en){case"label":this.$label.textContent=t$1(nn);break;case"title":this.$select.setAttribute("title",t$1(nn));break;case"disabled":null===nn?this.$select.removeAttribute("disabled"):this.$select.setAttribute("disabled",nn);break;case"height":this.$select.style.height=nn;break;case"width":this.$select.style.width=nn;break;case"options":if(""===nn)for(;this.$select.firstChild;)this.$select.removeChild(this.$select.firstChild);else rn=nn.split(","),rn.forEach((en=>{const tn=document.createElement("OPTION"),nn=document.createTextNode(t$1(en));tn.appendChild(nn),this.$select.appendChild(tn)}));break;case"values":if(""===nn)for(;this.$select.firstChild;)this.$select.removeChild(this.$select.firstChild);else rn=nn.split("::"),rn.forEach(((en,tn)=>{this.$select.children[tn].setAttribute("value",en)}));break;default:console.error("unknown attribute: ".concat(en))}}get label(){return this.getAttribute("label")}set label(en){this.setAttribute("label",en)}get width(){return this.getAttribute("width")}set width(en){this.setAttribute("width",en)}get height(){return this.getAttribute("height")}set height(en){this.setAttribute("height",en)}get value(){return this.$select.value}set value(en){this.$select.value=en}get disabled(){return this.$select.getAttribute("disabled")}set disabled(en){this.$select.setAttribute("disabled",en)}connectedCallback(){const en=this;this.$select.addEventListener("change",(()=>{const tn=this.$select.value,nn=new CustomEvent("change",{detail:{value:tn}});en.dispatchEvent(nn),en.value=tn}))}}customElements.define("se-select",SeSelect);const KC=document.createElement("template");KC.innerHTML="\n <style>\n #layersLabel {\n font-size: 13px;\n line-height: normal;\n font-weight: 700;\n }\n </style>\n <div></div>\n";class SeText extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(KC.content.cloneNode(!0)),this.$div=this._shadowRoot.querySelector("div")}static get observedAttributes(){return["text","value","style","title","id"]}attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"text":this.$div.textContent=t$1(nn);break;case"title":this.$div.setAttribute("title",t$1(nn));break;case"style":this.$div.style=nn;break;case"id":this.$div.id=nn;break;case"value":this.$div.value=nn;break;default:console.error("unknown attribute: ".concat(en))}}get text(){return this.$div.textContent}set text(en){this.$div.setAttribute("title",t$1(en))}get value(){return this.value}set value(en){this.value=en}get title(){return this.getAttribute("title")}set title(en){this.setAttribute("title",en)}connectedCallback(){}}customElements.define("se-text",SeText);var $C=Object.freeze({__proto__:null});const WC=Symbol("previousBodyStyleOverflow"),XC=Symbol("previousDocumentMarginRight");var YC;const ZC=Symbol("wrap"),JC=Symbol("wrappingFocus");function FocusCaptureMixin(en){return class FocusCapture extends en{[ho](en){const tn=firstFocusableElement(this[So]);if(tn){const nn=document.activeElement&&(document.activeElement===tn||document.activeElement.contains(tn)),rn=this[So].activeElement,an=rn&&(rn===tn||deepContains(rn,tn));(nn||an)&&"Tab"===en.key&&en.shiftKey&&(this[JC]=!0,this[Ao].focusCatcher.focus(),this[JC]=!1)}return super[ho]&&super[ho](en)||!1}[yo](en){super[yo]&&super[yo](en),this[Wr]&&this[Ao].focusCatcher.addEventListener("focus",(()=>{if(!this[JC]){const en=firstFocusableElement(this[So]);en&&en.focus()}}))}[ZC](en){const tn=Bn.html(YC||(YC=_taggedTemplateLiteral(['\n <style>\n #focusCapture {\n display: flex;\n height: 100%;\n overflow: hidden;\n width: 100%;\n }\n\n #focusCaptureContainer {\n align-items: center;\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n position: relative;\n }\n </style>\n <div id="focusCapture">\n <div id="focusCaptureContainer"></div>\n <div id="focusCatcher" tabindex="0"></div>\n </div>\n ']))),nn=tn.getElementById("focusCaptureContainer");nn&&(en.replaceWith(tn),nn.append(en))}}}FocusCaptureMixin.wrap=ZC;class ModalBackdrop extends Backdrop{constructor(){super(),"PointerEvent"in window||this.addEventListener("touchmove",(en=>{1===en.touches.length&&en.preventDefault()}))}}var eS;const tS=function DialogModalityMixin(en){return class DialogModality extends en{get[Hr](){return Object.assign(super[Hr]||{},{role:"dialog"})}[ho](en){let tn=!1;if("Escape"===en.key)this.close({canceled:"Escape"}),tn=!0;return tn||super[ho]&&super[ho](en)||!1}[yo](en){if(super[yo]&&super[yo](en),en.opened)if(this[jo].opened&&document.documentElement){const en=document.documentElement.clientWidth,tn=window.innerWidth-en;this[WC]=document.body.style.overflow,this[XC]=tn>0?document.documentElement.style.marginRight:null,document.body.style.overflow="hidden",tn>0&&(document.documentElement.style.marginRight="".concat(tn,"px"))}else null!=this[WC]&&(document.body.style.overflow=this[WC],this[WC]=null),null!=this[XC]&&(document.documentElement.style.marginRight=this[XC],this[XC]=null);if(en.role){const{role:en}=this[jo];this.setAttribute("role",en)}}get role(){return super.role}set role(en){super.role=en,this[xo]||this[Co]({role:en})}}}(FocusCaptureMixin(KeyboardMixin(Overlay)));class Dialog extends tS{get[Hr](){return Object.assign(super[Hr],{backdropPartType:ModalBackdrop,tabIndex:-1})}get[Vo](){const en=super[Vo],tn=en.content.querySelector("#frame");return this[FocusCaptureMixin.wrap](tn),en.content.append(Bn.html(eS||(eS=_taggedTemplateLiteral(["\n <style>\n :host {\n display: inline-flex;\n flex-direction: column;\n height: 100%;\n left: 0;\n pointer-events: initial;\n top: 0;\n width: 100%;\n }\n </style>\n "])))),en}}var nS;class PlainModalBackdrop extends ModalBackdrop{get[Vo](){const en=super[Vo];return en.content.append(Bn.html(nS||(nS=_taggedTemplateLiteral(["\n <style>\n :host {\n background: rgba(0, 0, 0, 0.2);\n }\n </style>\n "])))),en}}function PlainModalOverlayMixin(en){return class PlainModalOverlay extends en{get[Hr](){return Object.assign(super[Hr]||{},{backdropPartType:PlainModalBackdrop,framePartType:PlainOverlayFrame})}}}class PlainDialog extends(PlainModalOverlayMixin(Dialog)){}customElements.define("elix-dialog",class ElixDialog extends PlainDialog{});const{isValidUnit:rS}=SvgCanvas,oS=document.createElement("template");oS.innerHTML='<style>\n :not(:defined) {\n display: none;\n }\n\n /* Force the scroll bar to appear so we see it hide when overlay opens. */\n body::-webkit-scrollbar {\n background: lightgray;\n }\n\n body::-webkit-scrollbar-thumb {\n background: darkgray;\n }\n\n #svg_docprops #svg_docprops_container {\n padding: 10px;\n background-color: #5a6162;\n color: #c5c5c5;\n border: 1px outset #777;\n opacity: 1.0;\n font-family: Verdana, Helvetica, sans-serif;\n font-size: .8em;\n z-index: 20001;\n }\n\n #svg_docprops .error {\n border: 1px solid red;\n padding: 3px;\n }\n\n #svg_docprops #resolution {\n max-width: 14em;\n }\n\n #tool_docprops_back {\n margin-left: 1em;\n overflow: auto;\n }\n\n #svg_docprops_container #svg_docprops_docprops {\n float: left;\n width: 221px;\n margin: 5px .7em;\n overflow: hidden;\n }\n\n #svg_docprops legend {\n max-width: 195px;\n }\n\n #svg_docprops_docprops>legend {\n font-weight: bold;\n font-size: 1.1em;\n }\n\n #svg_docprops_container fieldset {\n padding: 5px;\n margin: 5px;\n border: 1px solid #DDD;\n }\n\n #svg_docprops_container label {\n display: block;\n margin: .5em;\n }\n</style>\n<elix-dialog id="svg_docprops" aria-label="Sample dialog" closed>\n <div id="svg_docprops_container">\n <div id="tool_docprops_back" class="toolbar_button">\n <button id="tool_docprops_save"></button>\n <button id="tool_docprops_cancel"></button>\n </div>\n <fieldset id="svg_docprops_docprops">\n <legend id="svginfo_image_props"></legend>\n <label>\n <span id="svginfo_title"></span>\n <input type="text" id="canvas_title">\n </label>\n <fieldset id="change_resolution">\n <legend id="svginfo_dim"></legend>\n <label>\n <span id="svginfo_width"></span>\n <input type="text" id="canvas_width" size="6">\n </label>\n <label>\n <span id="svginfo_height"></span>\n <input type="text" id="canvas_height" size="6">\n </label>\n <label>\n <select id="resolution">\n <option id="selectedPredefined" selected="selected"></option>\n <option>640x480</option>\n <option>800x600</option>\n <option>1024x768</option>\n <option>1280x960</option>\n <option>1600x1200</option>\n <option id="fitToContent" value="content"></option>\n </select>\n </label>\n </fieldset>\n <fieldset id="image_save_opts">\n <legend id="includedImages"></legend>\n <label>\n <input type="radio" id="image_embed" name="image_opt" value="embed" checked="checked">\n <span id="image_opt_embed"></span>\n </label>\n <label>\n <input type="radio" id="image_ref" name="image_opt" value="ref">\n <span id="image_opt_ref"></span>\n </label>\n </fieldset>\n </fieldset>\n </div>\n</elix-dialog>';class SeImgPropDialog extends HTMLElement{constructor(){super(),this.eventlisten=!1,this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(oS.content.cloneNode(!0)),this.$saveBtn=this._shadowRoot.querySelector("#tool_docprops_save"),this.$cancelBtn=this._shadowRoot.querySelector("#tool_docprops_cancel"),this.$resolution=this._shadowRoot.querySelector("#resolution"),this.$canvasTitle=this._shadowRoot.querySelector("#canvas_title"),this.$canvasWidth=this._shadowRoot.querySelector("#canvas_width"),this.$canvasHeight=this._shadowRoot.querySelector("#canvas_height"),this.$imageOptEmbed=this._shadowRoot.querySelector("#image_embed"),this.$imageOptRef=this._shadowRoot.querySelector("#image_ref"),this.$dialog=this._shadowRoot.querySelector("#svg_docprops")}init(en){this.setAttribute("common-ok",en.t("common.ok")),this.setAttribute("common-cancel",en.t("common.cancel")),this.setAttribute("config-image_props",en.t("config.image_props")),this.setAttribute("config-doc_title",en.t("config.doc_title")),this.setAttribute("config-doc_dims",en.t("config.doc_dims")),this.setAttribute("common-width",en.t("common.width")),this.setAttribute("common-height",en.t("common.height")),this.setAttribute("config-select_predefined",en.t("config.select_predefined")),this.setAttribute("tools-fit-to-content",en.t("tools.fitToContent")),this.setAttribute("config-included_images",en.t("config.included_images")),this.setAttribute("config-image_opt_embed",en.t("config.image_opt_embed")),this.setAttribute("config-image_opt_ref",en.t("config.image_opt_ref"))}static get observedAttributes(){return["title","width","height","save","dialog","embed","common-ok","common-cancel","config-image_props","config-doc_title","config-doc_dims","common-width","common-height","config-select_predefined","tools-fit-to-content","config-included_images","config-image_opt_embed","config-image_opt_ref"]}attributeChangedCallback(en,tn,nn){if(tn===nn)return;let rn;switch(en){case"title":this.$canvasTitle.value=nn;break;case"width":"fit"===nn?(this.$canvasWidth.removeAttribute("disabled"),this.$canvasWidth.value=100,this.$canvasHeight.removeAttribute("disabled"),this.$canvasHeight.value=100):this.$canvasWidth.value=nn;break;case"height":"fit"===nn?(this.$canvasWidth.removeAttribute("disabled"),this.$canvasWidth.value=100,this.$canvasHeight.removeAttribute("disabled"),this.$canvasHeight.value=100):this.$canvasHeight.value=nn;break;case"dialog":this.eventlisten&&("open"===nn?this.$dialog.open():this.$dialog.close());break;case"save":"ref"===nn?(this.$imageOptEmbed.setAttribute("checked",!1),this.$imageOptRef.setAttribute("checked",!0)):(this.$imageOptEmbed.setAttribute("checked",!0),this.$imageOptRef.setAttribute("checked",!1));break;case"embed":if(nn.includes("one")){const en=nn.split("|");en.length>1&&(this._shadowRoot.querySelector("#image_opt_embed").setAttribute("title",en[1]),this._shadowRoot.querySelector("#image_opt_embed").setAttribute("disabled","disabled"),this._shadowRoot.querySelector("#image_opt_embed").style.color="#666")}break;case"common-ok":this.$saveBtn.textContent=nn;break;case"common-cancel":this.$cancelBtn.textContent=nn;break;case"config-image_props":rn=this._shadowRoot.querySelector("#svginfo_image_props"),rn.textContent=nn;break;case"config-doc_title":rn=this._shadowRoot.querySelector("#svginfo_title"),rn.textContent=nn;break;case"config-doc_dims":rn=this._shadowRoot.querySelector("#svginfo_dim"),rn.textContent=nn;break;case"common-width":rn=this._shadowRoot.querySelector("#svginfo_width"),rn.textContent=nn;break;case"common-height":rn=this._shadowRoot.querySelector("#svginfo_height"),rn.textContent=nn;break;case"config-select_predefined":rn=this._shadowRoot.querySelector("#selectedPredefined"),rn.textContent=nn;break;case"tools-fit-to-content":rn=this._shadowRoot.querySelector("#fitToContent"),rn.textContent=nn;break;case"config-included_images":rn=this._shadowRoot.querySelector("#includedImages"),rn.textContent=nn;break;case"config-image_opt_embed":rn=this._shadowRoot.querySelector("#image_opt_embed"),rn.textContent=nn;break;case"config-image_opt_ref":rn=this._shadowRoot.querySelector("#image_opt_ref"),rn.textContent=nn;break;default:super.attributeChangedCallback(en,tn,nn)}}get title(){return this.getAttribute("title")}set title(en){this.setAttribute("title",en)}get width(){return this.getAttribute("width")}set width(en){this.setAttribute("width",en)}get height(){return this.getAttribute("height")}set height(en){this.setAttribute("height",en)}get save(){return this.getAttribute("save")}set save(en){this.setAttribute("save",en)}get dialog(){return this.getAttribute("dialog")}set dialog(en){this.setAttribute("dialog",en)}get embed(){return this.getAttribute("embed")}set embed(en){this.setAttribute("embed",en)}connectedCallback(){const onCancelHandler=()=>{const en=new CustomEvent("change",{detail:{dialog:"closed"}});this.$canvasWidth.removeAttribute("disabled"),this.$canvasHeight.removeAttribute("disabled"),this.$resolution.selectedIndex=0,this.dispatchEvent(en)};this.$resolution.addEventListener("change",(en=>{if(en.target.selectedIndex)if("content"===en.target.value)this.$canvasWidth.setAttribute("disabled","disabled"),this.$canvasWidth.value="fit",this.$canvasHeight.setAttribute("disabled","disabled"),this.$canvasHeight.value="fit";else{const tn=en.target.value.split("x");this.$canvasWidth.value=tn[0],this.$canvasWidth.removeAttribute("disabled"),this.$canvasHeight.value=tn[1],this.$canvasHeight.removeAttribute("disabled")}else"fit"===this.$canvasWidth.getAttribute("value")&&(this.$canvasWidth.removeAttribute("disabled"),this.$canvasWidth.value=100,this.$canvasHeight.removeAttribute("disabled"),this.$canvasHeight.value=100)})),svgEditor.$click(this.$saveBtn,(()=>{let en="";const tn=this.$canvasWidth.value,nn=this.$canvasHeight.value;"fit"===tn||rS("width",tn)?this.$canvasWidth.parentElement.classList.remove("error"):this.$canvasWidth.parentElement.classList.add("error"),"fit"===nn||rS("height",tn)?this.$canvasHeight.parentElement.classList.remove("error"):this.$canvasHeight.parentElement.classList.add("error"),"true"===this.$imageOptEmbed.getAttribute("checked")&&(en="embed"),"true"===this.$imageOptRef.getAttribute("checked")&&(en="ref");const rn=new CustomEvent("change",{detail:{title:this.$canvasTitle.value,w:this.$canvasWidth.value,h:this.$canvasHeight.value,save:en,dialog:"close"}});this.$canvasWidth.removeAttribute("disabled"),this.$canvasHeight.removeAttribute("disabled"),this.$resolution.selectedIndex=0,this.dispatchEvent(rn)})),svgEditor.$click(this.$cancelBtn,onCancelHandler),this.$dialog.addEventListener("close",onCancelHandler),this.eventlisten=!0}}customElements.define("se-img-prop-dialog",SeImgPropDialog);const iS=document.createElement("template");iS.innerHTML='<style>\n :not(:defined) {\n display: none;\n }\n\n /* Force the scroll bar to appear so we see it hide when overlay opens. */\n body::-webkit-scrollbar {\n background: lightgray;\n }\n\n body::-webkit-scrollbar-thumb {\n background: darkgray;\n }\n\n .toolbar_button button {\n border: 1px solid #dedede;\n line-height: 130%;\n float: left;\n background: #E8E8E8 none;\n padding: 5px 10px 5px 7px;\n /* Firefox */\n line-height: 17px;\n /* Safari */\n margin: 5px 20px 0 0;\n border: 1px var(--border-color) solid;\n border-top-color: #FFF;\n border-left-color: #FFF;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n cursor: pointer;\n }\n\n .toolbar_button button:hover {\n border: 1px #e0a874 solid;\n border-top-color: #fcd9ba;\n border-left-color: #fcd9ba;\n background-color: #FFC;\n }\n\n .toolbar_button button:active {\n background-color: #F4E284;\n border-left: 1px solid #663300;\n border-top: 1px solid #663300;\n }\n\n .toolbar_button button .svg_icon {\n margin: 0 3px -3px 0 !important;\n padding: 0;\n border: none;\n width: 16px;\n height: 16px;\n }\n\n .color_block {\n top: 0;\n left: 0;\n }\n\n .color_block svg {\n display: block;\n }\n\n #bg_blocks {\n overflow: auto;\n margin-left: 30px;\n }\n\n #bg_blocks .color_block {\n position: static;\n }\n\n #svginfo_bg_note {\n font-size: .9em;\n font-style: italic;\n color: #444;\n }\n\n #svg_prefs #svg_prefs_container {\n padding: 10px;\n background-color: #5a6162;\n color: #c5c5c5;\n border: 1px outset #777;\n opacity: 1.0;\n font-family: Verdana, Helvetica, sans-serif;\n font-size: .8em;\n z-index: 20001;\n }\n\n #tool_prefs_back {\n margin-left: 1em;\n overflow: auto;\n }\n\n #tool_prefs_save {\n width: 30%;\n background-color: #c79605;\n margin-left: 20%;\n }\n\n #tool_prefs_cancel {\n width: 30%;\n background-color: #c8c8c8;\n }\n\n #svg_prefs #svg_docprops_prefs {\n float: left;\n width: 221px;\n margin: 5px .7em;\n overflow: hidden;\n }\n\n #svg_prefs_container fieldset+fieldset {\n float: right;\n }\n\n #svg_prefs legend {\n max-width: 195px;\n }\n\n #svg_prefs_container>fieldset>legend {\n font-weight: bold;\n font-size: 1.1em;\n }\n\n #svg_prefs fieldset {\n padding: 5px;\n margin: 5px;\n border: 1px solid #DDD;\n }\n\n #svg_prefs_container label {\n display: block;\n margin: .5em;\n }\n\n #svg_prefs_container div.color_block {\n float: left;\n margin: 2px;\n padding: 20px;\n border: 1px solid #6f6f6f;\n }\n\n #change_background div.cur_background {\n border: 2px solid blue;\n padding: 19px;\n }\n\n #canvas_bg_url {\n display: block;\n width: 96%;\n }\n\n #svg_prefs button {\n margin-top: 0;\n margin-bottom: 5px;\n }\n</style>\n<elix-dialog id="svg_prefs" aria-label="Editor Preferences" closed>\n <div id="svg_prefs_container">\n <div id="tool_prefs_back" class="toolbar_button">\n <button id="tool_prefs_save"></button>\n <button id="tool_prefs_cancel"></button>\n </div>\n <fieldset>\n <legend id="svginfo_editor_prefs"></legend>\n <label>\n <span id="svginfo_lang"></span>\n \x3c!-- Source: https://en.wikipedia.org/wiki/Language_names --\x3e\n <select id="lang_select">\n <option id="lang_ar" value="ar">العربية</option>\n <option id="lang_cs" value="cs">Čeština</option>\n <option id="lang_de" value="de">Deutsch</option>\n <option id="lang_en" value="en" selected="selected">English</option>\n <option id="lang_es" value="es">Español</option>\n <option id="lang_fa" value="fa">فارسی</option>\n <option id="lang_fr" value="fr">Français</option>\n <option id="lang_fy" value="fy">Frysk</option>\n <option id="lang_hi" value="hi">हिन्दी, हिंदी</option>\n <option id="lang_it" value="it">Italiano</option>\n <option id="lang_ja" value="ja">日本語</option>\n <option id="lang_nl" value="nl">Nederlands</option>\n <option id="lang_pl" value="pl">Polski</option>\n <option id="lang_pt-BR" value="pt-BR">Português (BR)</option>\n <option id="lang_ro" value="ro">Română</option>\n <option id="lang_ru" value="ru">Русский</option>\n <option id="lang_sk" value="sk">Slovenčina</option>\n <option id="lang_sl" value="sl">Slovenščina</option>\n <option id="lang_tr" value="tr">Türkçe</option>\n <option id="lang_zh-CN" value="zh-CN">简体中文</option>\n <option id="lang_zh-TW" value="zh-TW">繁體中文</option>\n </select>\n </label>\n <fieldset id="change_background">\n <legend id="svginfo_change_background"></legend>\n <div id="bg_blocks"></div>\n <label>\n <span id="svginfo_bg_url"></span>\n <input type="text" id="canvas_bg_url">\n </label>\n <p id="svginfo_bg_note"></p>\n </fieldset>\n <fieldset id="change_grid">\n <legend id="svginfo_grid_settings"></legend>\n <label for="svginfo_snap_onoff">\n <span id="svginfo_snap_onoff"></span>\n <input type="checkbox" value="snapping_on" id="grid_snapping_on">\n </label>\n <label for="grid_snapping_step">\n <span id="svginfo_snap_step"></span>\n <input type="text" id="grid_snapping_step" size="3" value="10">\n </label>\n <label>\n <span id="svginfo_grid_color"></span>\n <input type="text" id="grid_color" size="3" value="#000">\n </label>\n </fieldset>\n <fieldset id="units_rulers">\n <legend id="svginfo_units_rulers"></legend>\n <label>\n <span id="svginfo_rulers_onoff"></span>\n <input id="show_rulers" type="checkbox" value="show_rulers" checked="checked">\n </label>\n <label>\n <span id="svginfo_unit"></span>\n <select id="base_unit">\n <option value="px">Pixels</option>\n <option value="cm">Centimeters</option>\n <option value="mm">Millimeters</option>\n <option value="in">Inches</option>\n <option value="pt">Points</option>\n <option value="pc">Picas</option>\n <option value="em">Ems</option>\n <option value="ex">Exs</option>\n </select>\n </label>\n </fieldset>\n </fieldset>\n </div>\n</elix-dialog>\n';class SeEditPrefsDialog extends HTMLElement{constructor(){super(),this.colorBlocks=["#FFF","#888","#000","chessboard"],this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(iS.content.cloneNode(!0)),this.$dialog=this._shadowRoot.querySelector("#svg_prefs"),this.$saveBtn=this._shadowRoot.querySelector("#tool_prefs_save"),this.$cancelBtn=this._shadowRoot.querySelector("#tool_prefs_cancel"),this.$langSelect=this._shadowRoot.querySelector("#lang_select"),this.$bgBlocks=this._shadowRoot.querySelector("#bg_blocks"),this.$bgURL=this._shadowRoot.querySelector("#canvas_bg_url"),this.$gridSnappingOn=this._shadowRoot.querySelector("#grid_snapping_on"),this.$gridSnappingStep=this._shadowRoot.querySelector("#grid_snapping_step"),this.$gridColor=this._shadowRoot.querySelector("#grid_color"),this.$showRulers=this._shadowRoot.querySelector("#show_rulers"),this.$baseUnit=this._shadowRoot.querySelector("#base_unit")}init(en){this.setAttribute("common-ok",en.t("common.ok")),this.setAttribute("common-cancel",en.t("common.cancel")),this.setAttribute("config-editor_prefs",en.t("config.editor_prefs")),this.setAttribute("config-language",en.t("config.language")),this.setAttribute("config-background",en.t("config.background")),this.setAttribute("common-url",en.t("common.url")),this.setAttribute("config-editor_bg_note",en.t("config.editor_bg_note")),this.setAttribute("config-grid",en.t("config.grid")),this.setAttribute("config-snapping_onoff",en.t("config.snapping_onoff")),this.setAttribute("config-snapping_stepsize",en.t("config.snapping_stepsize")),this.setAttribute("config-grid_color",en.t("config.grid_color")),this.setAttribute("config-units_and_rulers",en.t("config.units_and_rulers")),this.setAttribute("config-show_rulers",en.t("config.show_rulers")),this.setAttribute("config-base_unit",en.t("config.base_unit"))}static get observedAttributes(){return["dialog","lang","canvasbg","bgurl","gridsnappingon","gridsnappingstep","gridcolor","showrulers","baseunit","common-ok","common-cancel","config-editor_prefs","config-language","config-background","common-url","config-editor_bg_note","config-grid","config-snapping_onoff","config-snapping_stepsize","config-grid_color","config-units_and_rulers","config-show_rulers","config-base_unit"]}attributeChangedCallback(en,tn,nn){if(tn===nn)return;const rn=this.$bgBlocks.querySelectorAll("div"),an="cur_background";let sn;switch(en){case"dialog":"open"===nn?this.$dialog.open():this.$dialog.close();break;case"lang":this.$langSelect.value=nn;break;case"canvasbg":nn?rn.forEach((function(en){en.dataset.bgColor===nn?en.classList.add(an):en.classList.remove(an)})):rn.length>0&&rn[0].classList.add(an);break;case"bgurl":this.$bgURL.value=nn;break;case"gridsnappingon":"true"===nn?this.$gridSnappingOn.checked=!0:"false"===nn&&(this.$gridSnappingOn.checked=!1);break;case"gridsnappingstep":this.$gridSnappingStep.value=nn;break;case"gridcolor":this.$gridColor.value=nn;break;case"showrulers":"true"===nn?this.$showRulers.checked=!0:"false"===nn&&(this.$showRulers.checked=!1);break;case"baseunit":this.$baseUnit.value=nn;break;case"common-ok":this.$saveBtn.textContent=nn;break;case"common-cancel":this.$cancelBtn.textContent=nn;break;case"config-editor_prefs":sn=this._shadowRoot.querySelector("#svginfo_editor_prefs"),sn.textContent=nn;break;case"config-language":sn=this._shadowRoot.querySelector("#svginfo_lang"),sn.textContent=nn;break;case"config-background":sn=this._shadowRoot.querySelector("#svginfo_change_background"),sn.textContent=nn;break;case"common-url":sn=this._shadowRoot.querySelector("#svginfo_bg_url"),sn.textContent=nn;break;case"config-editor_bg_note":sn=this._shadowRoot.querySelector("#svginfo_bg_note"),sn.textContent=nn;break;case"config-grid":sn=this._shadowRoot.querySelector("#svginfo_grid_settings"),sn.textContent=nn;break;case"config-snapping_onoff":sn=this._shadowRoot.querySelector("#svginfo_snap_onoff"),sn.textContent=nn;break;case"config-snapping_stepsize":sn=this._shadowRoot.querySelector("#svginfo_snap_step"),sn.textContent=nn;break;case"config-grid_color":sn=this._shadowRoot.querySelector("#svginfo_grid_color"),sn.textContent=nn;break;case"config-units_and_rulers":sn=this._shadowRoot.querySelector("#svginfo_units_rulers"),sn.textContent=nn;break;case"config-show_rulers":sn=this._shadowRoot.querySelector("#svginfo_rulers_onoff"),sn.textContent=nn;break;case"config-base_unit":sn=this._shadowRoot.querySelector("#svginfo_unit"),sn.textContent=nn;break;default:super.attributeChangedCallback(en,tn,nn)}}get lang(){return this.getAttribute("lang")}set lang(en){this.setAttribute("lang",en)}get canvasbg(){return this.getAttribute("canvasbg")}set canvasbg(en){this.setAttribute("canvasbg",en)}get bgurl(){return this.getAttribute("bgurl")}set bgurl(en){this.setAttribute("bgurl",en)}get dialog(){return this.getAttribute("dialog")}set dialog(en){this.setAttribute("dialog",en)}get gridsnappingon(){return this.getAttribute("gridsnappingon")}set gridsnappingon(en){this.setAttribute("gridsnappingon",en)}get gridsnappingstep(){return this.getAttribute("gridsnappingstep")}set gridsnappingstep(en){this.setAttribute("gridsnappingstep",en)}get gridcolor(){return this.getAttribute("gridcolor")}set gridcolor(en){this.setAttribute("gridcolor",en)}get showrulers(){return this.getAttribute("showrulers")}set showrulers(en){this.setAttribute("showrulers",en)}get baseunit(){return this.getAttribute("baseunit")}set baseunit(en){this.setAttribute("baseunit",en)}connectedCallback(){const onCancelHandler=()=>{const en=new CustomEvent("change",{detail:{dialog:"closed"}});this.dispatchEvent(en)},en=this;this.colorBlocks.forEach((function(tn){const nn=document.createElement("div");"chessboard"===tn?(nn.dataset.bgColor=tn,nn.style.backgroundImage="url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7)",nn.classList.add("color_block")):(nn.dataset.bgColor=tn,nn.style.backgroundColor=tn,nn.classList.add("color_block")),en.$bgBlocks.append(nn)}));const tn=this.$bgBlocks.querySelectorAll("div"),nn="cur_background";tn.forEach((function(en){svgEditor.$click(en,(function(){tn.forEach((en=>en.classList.remove(nn))),en.classList.add(nn)}))})),svgEditor.$click(this.$saveBtn,(()=>{const en=this.$bgBlocks.querySelector(".cur_background").dataset.bgColor||"#FFF",tn=new CustomEvent("change",{detail:{lang:this.$langSelect.value,dialog:"close",bgcolor:en,bgurl:this.$bgURL.value,gridsnappingon:this.$gridSnappingOn.checked,gridsnappingstep:this.$gridSnappingStep.value,showrulers:this.$showRulers.checked,baseunit:this.$baseUnit.value}});this.dispatchEvent(tn)})),svgEditor.$click(this.$cancelBtn,onCancelHandler),this.$dialog.addEventListener("close",onCancelHandler)}}customElements.define("se-edit-prefs-dialog",SeEditPrefsDialog);const aS=document.createElement("template");aS.innerHTML='<style>\n :not(:defined) {\n display: none;\n }\n\n /* Force the scroll bar to appear so we see it hide when overlay opens. */\n body::-webkit-scrollbar {\n background: lightgray;\n }\n\n body::-webkit-scrollbar-thumb {\n background: darkgray;\n }\n\n #svg_source_editor #svg_source_container {\n background-color: #5a6162;\n color: #c5c5c5;\n opacity: 1.0;\n text-align: center;\n border: 1px outset #777;\n z-index: 6;\n }\n\n #save_output_btns {\n display: none;\n text-align: left;\n }\n\n #save_output_btns p {\n margin: .5em 1.5em;\n display: inline-block;\n }\n\n #svg_source_editor form {\n width: 100%;\n }\n\n #svg_source_editor #svg_source_textarea {\n padding: 5px;\n font-size: 12px;\n min-height: 200px;\n width: 95%;\n height: 95%;\n }\n\n #svg_source_editor #tool_source_back {\n text-align: left;\n height: 30px;\n }\n\n #tool_source_save {\n width: 20%;\n background-color: #c79605;\n margin-left: 30%;\n margin-top: 5px;\n }\n \n #tool_source_dynamic {\n cursor: pointer;\n }\n \n .tool_label {\n cursor: pointer;\n margin: 5px 0;\n display: inline-block;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n #tool_source_cancel {\n width: 20%;\n background-color: #c8c8c8;\n }\n</style>\n<elix-dialog id="svg_source_editor" aria-label="SVG Source Editor" closed>\n <div id="svg_source_container">\n <div id="tool_source_back" class="toolbar_button">\n <button id="tool_source_save"></button>\n <button id="tool_source_cancel"></button>\n </div>\n <div id="save_output_btns">\n <p id="copy_save_note"></p>\n <button id="copy_save_done"></button>\n </div>\n <form>\n <textarea id="svg_source_textarea" spellcheck="false" rows="5" cols="80"></textarea>\n </form>\n <label class="tool_label" for="tool_source_dynamic">\n <input type="checkbox" id="tool_source_dynamic" checked="checked">Toggle dynamic size\n </label>\n </div>\n</elix-dialog>';class SeSvgSourceEditorDialog extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(aS.content.cloneNode(!0)),this.$dialog=this._shadowRoot.querySelector("#svg_source_editor"),this.$copyBtn=this._shadowRoot.querySelector("#copy_save_done"),this.$saveBtn=this._shadowRoot.querySelector("#tool_source_save"),this.$cancelBtn=this._shadowRoot.querySelector("#tool_source_cancel"),this.$sourceTxt=this._shadowRoot.querySelector("#svg_source_textarea"),this.$copySec=this._shadowRoot.querySelector("#save_output_btns"),this.$applySec=this._shadowRoot.querySelector("#tool_source_back"),this.$toggleDynamic=this._shadowRoot.querySelector("#tool_source_dynamic"),this.$toggleDynamic.checked=svgEditor.configObj.curConfig.dynamicOutput}init(en){this.setAttribute("tools-source_save",en.t("tools.source_save")),this.setAttribute("common-cancel",en.t("common.cancel")),this.setAttribute("notification-source_dialog_note",en.t("notification.source_dialog_note")),this.setAttribute("config-done",en.t("config.done"))}static get observedAttributes(){return["dialog","value","applysec","copysec","tools-source_save","common-cancel","notification-source_dialog_note","config-done"]}attributeChangedCallback(en,tn,nn){if(tn===nn)return;let rn;switch(en){case"dialog":"open"===nn?(this.$sourceTxt.focus(),this.$dialog.open()):(this.$dialog.close(),this.$sourceTxt.blur());break;case"applysec":this.$applySec.style.display="false"===nn?"none":"block";break;case"copysec":this.$copySec.style.display="false"===nn?"none":"block";break;case"value":this.$sourceTxt.value=nn;break;case"tools-source_save":this.$saveBtn.textContent=nn;break;case"common-cancel":this.$cancelBtn.textContent=nn;break;case"notification-source_dialog_note":rn=this._shadowRoot.querySelector("#copy_save_note"),rn.textContent=nn;break;case"config-done":this.$copyBtn.textContent=nn;break;default:super.attributeChangedCallback(en,tn,nn)}}get dialog(){return this.getAttribute("dialog")}set dialog(en){this.setAttribute("dialog",en)}get value(){return this.getAttribute("value")}set value(en){this.setAttribute("value",en)}get applysec(){return this.getAttribute("applysec")}set applysec(en){this.setAttribute("applysec",en)}get copysec(){return this.getAttribute("copysec")}set copysec(en){this.setAttribute("copysec",en)}connectedCallback(){const onCancelHandler=()=>{const en=new CustomEvent("change",{detail:{dialog:"closed"}});this.dispatchEvent(en)};svgEditor.$click(this.$copyBtn,(()=>{const en=new CustomEvent("change",{detail:{copy:"click",value:this.$sourceTxt.value}});this.dispatchEvent(en)})),svgEditor.$click(this.$saveBtn,(()=>{const en=new CustomEvent("change",{detail:{value:this.$sourceTxt.value,dialog:"close"}});this.dispatchEvent(en)})),svgEditor.$click(this.$cancelBtn,onCancelHandler),svgEditor.$click(this.$toggleDynamic,(()=>{const en=new CustomEvent("change",{detail:{dynamic:this.$toggleDynamic.checked,dialog:"dynamic"}});this.dispatchEvent(en)})),this.$dialog.addEventListener("close",onCancelHandler)}}customElements.define("se-svg-source-editor-dialog",SeSvgSourceEditorDialog);const sS=document.createElement("template");sS.innerHTML='<style>\n .contextMenu {\n position: absolute;\n z-index: 99999;\n border: solid 1px rgba(0, 0, 0, .33);\n background: rgba(255, 255, 255, .95);\n padding: 5px 0;\n margin: 0px;\n display: none;\n font: 12px/15px Lucida Sans, Helvetica, Verdana, sans-serif;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -moz-box-shadow: 2px 5px 10px rgba(0, 0, 0, .3);\n -webkit-box-shadow: 2px 5px 10px rgba(0, 0, 0, .3);\n box-shadow: 2px 5px 10px rgba(0, 0, 0, .3);\n }\n\n .contextMenu li {\n list-style: none;\n padding: 0px;\n margin: 0px;\n }\n\n .contextMenu .shortcut {\n width: 115px;\n text-align: right;\n float: right;\n }\n\n .contextMenu a {\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n color: #222;\n text-decoration: none;\n display: block;\n line-height: 20px;\n height: 20px;\n background-position: 6px center;\n background-repeat: no-repeat;\n outline: none;\n padding: 0px 15px 1px 20px;\n }\n\n .contextMenu li.hover a {\n background-color: #2e5dea;\n color: white;\n cursor: default;\n }\n\n .contextMenu li.disabled a {\n color: #999;\n pointer-events: none;\n }\n\n .contextMenu li.hover.disabled a {\n background-color: transparent;\n }\n\n .contextMenu li.separator {\n border-top: solid 1px #E3E3E3;\n padding-top: 5px;\n margin-top: 5px;\n }\n</style>\n<ul id="cmenu_canvas" class="contextMenu">\n <li>\n <a href="#cut" id="se-cut">\n <span class="shortcut">META+X</span>\n </a>\n </li>\n <li>\n <a href="#copy" id="se-copy">\n <span class="shortcut">META+C</span>\n </a>\n </li>\n <li>\n <a href="#paste" id="se-paste"></a>\n </li>\n <li>\n <a href="#paste_in_place" id="se-paste-in-place"></a>\n </li>\n <li class="separator">\n <a href="#delete" id="se-delete">\n <span class="shortcut">BACKSPACE</span>\n </a>\n </li>\n <li class="separator">\n <a href="#group" id="se-group">\n <span class="shortcut">G</span>\n </a>\n </li>\n <li>\n <a href="#ungroup" id="se-ungroup">\n <span class="shortcut">G</span>\n </a>\n </li>\n <li class="separator">\n <a href="#move_front" id="se-move-front">\n <span class="shortcut">CTRL+SHFT+]</span>\n </a>\n </li>\n <li>\n <a href="#move_up" id="se-move-up">\n <span class="shortcut">CTRL+]</span>\n </a>\n </li>\n <li>\n <a href="#move_down" id="se-move-down">\n <span class="shortcut">CTRL+[</span>\n </a>\n </li>\n <li>\n <a href="#move_back" id="se-move-back">\n <span class="shortcut">CTRL+SHFT+[</span>\n </a>\n </li>\n</ul>';class SeCMenuDialog extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(sS.content.cloneNode(!0)),this._workarea=document.getElementById("workarea"),this.$dialog=this._shadowRoot.querySelector("#cmenu_canvas"),this.$copyLink=this._shadowRoot.querySelector("#se-copy"),this.$cutLink=this._shadowRoot.querySelector("#se-cut"),this.$pasteLink=this._shadowRoot.querySelector("#se-paste"),this.$pasteInPlaceLink=this._shadowRoot.querySelector("#se-paste-in-place"),this.$deleteLink=this._shadowRoot.querySelector("#se-delete"),this.$groupLink=this._shadowRoot.querySelector("#se-group"),this.$ungroupLink=this._shadowRoot.querySelector("#se-ungroup"),this.$moveFrontLink=this._shadowRoot.querySelector("#se-move-front"),this.$moveUpLink=this._shadowRoot.querySelector("#se-move-up"),this.$moveDownLink=this._shadowRoot.querySelector("#se-move-down"),this.$moveBackLink=this._shadowRoot.querySelector("#se-move-back")}init(en){this.setAttribute("tools-cut",en.t("tools.cut")),this.setAttribute("tools-copy",en.t("tools.copy")),this.setAttribute("tools-paste",en.t("tools.paste")),this.setAttribute("tools-paste_in_place",en.t("tools.paste_in_place")),this.setAttribute("tools-delete",en.t("tools.delete")),this.setAttribute("tools-group",en.t("tools.group")),this.setAttribute("tools-ungroup",en.t("tools.ungroup")),this.setAttribute("tools-move_front",en.t("tools.move_front")),this.setAttribute("tools-move_up",en.t("tools.move_up")),this.setAttribute("tools-move_down",en.t("tools.move_down")),this.setAttribute("tools-move_back",en.t("tools.move_back"))}static get observedAttributes(){return["disableallmenu","enablemenuitems","disablemenuitems","tools-cut","tools-copy","tools-paste","tools-paste_in_place","tools-delete","tools-group","tools-ungroup","tools-move_front","tools-move_up","tools-move_down","tools-move_back"]}attributeChangedCallback(en,tn,nn){let rn,an=[];const sn=this._shadowRoot;switch(en){case"disableallmenu":if("true"===nn){sn.querySelectorAll("li").forEach((function(en){en.classList.add("disabled")}))}break;case"enablemenuitems":an=nn.split(","),an.forEach((function(en){sn.querySelector('a[href*="'+en+'"]').parentElement.classList.remove("disabled")}));break;case"disablemenuitems":an=nn.split(","),an.forEach((function(en){sn.querySelector('a[href*="'+en+'"]').parentElement.classList.add("disabled")}));break;case"tools-cut":rn=document.createTextNode(nn),this.$cutLink.prepend(rn);break;case"tools-copy":rn=document.createTextNode(nn),this.$copyLink.prepend(rn);break;case"tools-paste":this.$pasteLink.textContent=nn;break;case"tools-paste_in_place":this.$pasteInPlaceLink.textContent=nn;break;case"tools-delete":rn=document.createTextNode(nn),this.$deleteLink.prepend(rn);break;case"tools-group":rn=document.createTextNode(nn),this.$groupLink.prepend(rn);break;case"tools-ungroup":rn=document.createTextNode(nn),this.$ungroupLink.prepend(rn);break;case"tools-move_front":rn=document.createTextNode(nn),this.$moveFrontLink.prepend(rn);break;case"tools-move_up":rn=document.createTextNode(nn),this.$moveUpLink.prepend(rn);break;case"tools-move_down":rn=document.createTextNode(nn),this.$moveDownLink.prepend(rn);break;case"tools-move_back":rn=document.createTextNode(nn),this.$moveBackLink.prepend(rn)}}get disableallmenu(){return this.getAttribute("disableallmenu")}set disableallmenu(en){this.setAttribute("disableallmenu",en)}get enablemenuitems(){return this.getAttribute("enablemenuitems")}set enablemenuitems(en){this.setAttribute("enablemenuitems",en)}get disablemenuitems(){return this.getAttribute("disablemenuitems")}set disablemenuitems(en){this.setAttribute("disablemenuitems",en)}connectedCallback(){const en=this,onMenuClickHandler=(en,tn)=>{const nn=new CustomEvent("change",{detail:{trigger:tn}});this.dispatchEvent(nn)};this._workarea.addEventListener("contextmenu",(tn=>{tn.preventDefault();let nn=tn.pageX,rn=tn.pageY;const an=screen.width-250,sn=screen.height-426;nn>an&&(nn=an),rn>sn&&(rn=sn),en.$dialog.style.top=rn+"px",en.$dialog.style.left=nn+"px",en.$dialog.style.display="block"})),this._workarea.addEventListener("mousedown",(tn=>{2!==tn.button&&(en.$dialog.style.display="none")})),svgEditor.$click(this.$cutLink,(en=>onMenuClickHandler(0,"cut"))),svgEditor.$click(this.$copyLink,(en=>onMenuClickHandler(0,"copy"))),svgEditor.$click(this.$pasteLink,(en=>onMenuClickHandler(0,"paste"))),svgEditor.$click(this.$pasteInPlaceLink,(en=>onMenuClickHandler(0,"paste_in_place"))),svgEditor.$click(this.$deleteLink,(en=>onMenuClickHandler(0,"delete"))),svgEditor.$click(this.$groupLink,(en=>onMenuClickHandler(0,"group"))),svgEditor.$click(this.$ungroupLink,(en=>onMenuClickHandler(0,"ungroup"))),svgEditor.$click(this.$moveFrontLink,(en=>onMenuClickHandler(0,"move_front"))),svgEditor.$click(this.$moveUpLink,(en=>onMenuClickHandler(0,"move_up"))),svgEditor.$click(this.$moveDownLink,(en=>onMenuClickHandler(0,"move_down"))),svgEditor.$click(this.$moveBackLink,(en=>onMenuClickHandler(0,"move_back")))}}customElements.define("se-cmenu_canvas-dialog",SeCMenuDialog);const lS=document.createElement("template");lS.innerHTML='<style>\n .contextMenu {\n position: absolute;\n z-index: 99999;\n border: solid 1px rgba(0, 0, 0, .33);\n background: rgba(255, 255, 255, .95);\n padding: 5px 0;\n margin: 0px;\n display: none;\n font: 12px/15px Lucida Sans, Helvetica, Verdana, sans-serif;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -moz-box-shadow: 2px 5px 10px rgba(0, 0, 0, .3);\n -webkit-box-shadow: 2px 5px 10px rgba(0, 0, 0, .3);\n box-shadow: 2px 5px 10px rgba(0, 0, 0, .3);\n }\n\n .contextMenu li {\n list-style: none;\n padding: 0px;\n margin: 0px;\n }\n\n .contextMenu .shortcut {\n width: 115px;\n text-align: right;\n float: right;\n }\n\n .contextMenu a {\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n color: #222;\n text-decoration: none;\n display: block;\n line-height: 20px;\n height: 20px;\n background-position: 6px center;\n background-repeat: no-repeat;\n outline: none;\n padding: 0px 15px 1px 20px;\n }\n\n .contextMenu li.hover a {\n background-color: #2e5dea;\n color: white;\n cursor: default;\n }\n\n .contextMenu li.disabled a {\n color: #999;\n pointer-events: none;\n }\n\n .contextMenu li.hover.disabled a {\n background-color: transparent;\n }\n\n .contextMenu li.separator {\n border-top: solid 1px #E3E3E3;\n padding-top: 5px;\n margin-top: 5px;\n }\n</style>\n<ul id="cmenu_layers" class="contextMenu">\n <li><a href="#dupe" id="se-dupe">#{svgEditor.i18next.t(\'layers.dupe\')}</a></li>\n <li><a href="#delete" id="se-layer-delete">#{svgEditor.i18next.t(\'layers.del\')}</a></li>\n <li><a href="#merge_down" id="se-merge-down">#{svgEditor.i18next.t(\'layers.merge_down\')}</a></li>\n <li><a href="#merge_all" id="se-merge-all">#{svgEditor.i18next.t(\'layers.merge_all\')}</a></li>\n</ul>';class SeCMenuLayerDialog extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(lS.content.cloneNode(!0)),this.source="",this._workarea=void 0,this.$sidePanels=document.getElementById("sidepanels"),this.$dialog=this._shadowRoot.querySelector("#cmenu_layers"),this.$duplicateLink=this._shadowRoot.querySelector("#se-dupe"),this.$deleteLink=this._shadowRoot.querySelector("#se-layer-delete"),this.$mergeDownLink=this._shadowRoot.querySelector("#se-merge-down"),this.$mergeAllLink=this._shadowRoot.querySelector("#se-merge-all")}init(en){this.setAttribute("layers-dupe",en.t("layers.dupe")),this.setAttribute("layers-del",en.t("layers.del")),this.setAttribute("layers-merge_down",en.t("layers.merge_down")),this.setAttribute("layers-merge_all",en.t("layers.merge_all"))}static get observedAttributes(){return["value","leftclick","layers-dupe","layers-del","layers-merge_down","layers-merge_all"]}attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"value":this.source=nn,""!==nn&&void 0!==nn&&(this._workarea=document.getElementById(this.source));break;case"layers-dupe":this.$duplicateLink.textContent=nn;break;case"layers-del":this.$deleteLink.textContent=nn;break;case"layers-merge_down":this.$mergeDownLink.textContent=nn;break;case"layers-merge_all":this.$mergeAllLink.textContent=nn}}get value(){return this.getAttribute("value")}set value(en){this.setAttribute("value",en)}get leftclick(){return this.getAttribute("leftclick")}set leftclick(en){this.setAttribute("leftclick",en)}connectedCallback(){const en=this,onMenuOpenHandler=tn=>{tn.preventDefault(),en.$dialog.style.top=tn.pageY+"px",en.$dialog.style.left=tn.pageX-126+"px",en.$dialog.style.display="block"},onMenuCloseHandler=tn=>{2!==tn.button&&(en.$dialog.style.display="none")},onMenuClickHandler=(tn,nn,rn)=>{const an=new CustomEvent("change",{detail:{trigger:nn,source:rn}});this.dispatchEvent(an),en.$dialog.style.display="none"};void 0!==this._workarea&&(this._workarea.addEventListener("contextmenu",onMenuOpenHandler),"true"===this.getAttribute("leftclick")&&svgEditor.$click(this._workarea,onMenuOpenHandler),this._workarea.addEventListener("mousedown",onMenuCloseHandler),this.$sidePanels.addEventListener("mousedown",onMenuCloseHandler)),svgEditor.$click(this.$duplicateLink,(en=>onMenuClickHandler(0,"dupe",this.source))),svgEditor.$click(this.$deleteLink,(en=>onMenuClickHandler(0,"delete",this.source))),svgEditor.$click(this.$mergeDownLink,(en=>onMenuClickHandler(0,"merge_down",this.source))),svgEditor.$click(this.$mergeAllLink,(en=>onMenuClickHandler(0,"merge_all",this.source)))}}var cS,AS,dS,uS;customElements.define("se-cmenu-layers",SeCMenuLayerDialog);class AlertDialog extends Dialog{get choiceButtons(){return this[jo].choiceButtons}get choiceButtonPartType(){return this[jo].choiceButtonPartType}set choiceButtonPartType(en){this[Co]({choiceButtonPartType:en})}get choices(){return this[jo].choices}set choices(en){this[Co]({choices:en})}get[Hr](){return Object.assign(super[Hr],{choiceButtonPartType:"button",choiceButtons:[],choices:["OK"]})}[ho](en){let tn=!1;const nn=1===en.key.length&&en.key.toLowerCase();if(nn){const en=this.choices.find((en=>en[0].toLowerCase()===nn));en&&(this.close({choice:en}),tn=!0)}return tn||super[ho]&&super[ho](en)||!1}[yo](en){super[yo](en),this[Wr]&&this[Ao].choiceButtonContainer.addEventListener("click",(async en=>{const tn=en.target;if(tn instanceof HTMLElement){const en=tn.textContent;this[fo]=!0,await this.close({choice:en}),this[fo]=!1}})),en.choiceButtons&&function updateChildNodes(en,tn){const nn=[...tn],rn=en.childNodes.length,an=nn.length,sn=Math.max(rn,an);for(let tn=0;tn<sn;tn++){const sn=en.childNodes[tn],cn=nn[tn];tn>=rn?en.append(cn):tn>=an?en.removeChild(en.childNodes[an]):sn!==cn&&(nn.indexOf(sn,tn)>=tn?en.insertBefore(cn,sn):en.replaceChild(cn,sn))}}(this[Ao].choiceButtonContainer,this[jo].choiceButtons)}[Lo](en,tn){const nn=super[Lo](en,tn);if(tn.choiceButtonPartType||tn.choices){const tn=en.choices.map((tn=>{const nn=createElement(en.choiceButtonPartType);return"part"in nn&&(nn.part="choice-button"),nn.textContent=tn,nn}));Object.freeze(tn),Object.assign(nn,{choiceButtons:tn})}return nn}get[Vo](){const en=super[Vo],tn=en.content.querySelector("slot:not([name])");return tn&&tn.replaceWith(Bn.html(cS||(cS=_taggedTemplateLiteral(['\n <div id="alertDialogContent">\n <slot></slot>\n <div id="choiceButtonContainer" part="choice-button-container"></div>\n </div>\n '])))),en}}class PlainAlertDialog extends(PlainModalOverlayMixin(AlertDialog)){get[Hr](){return Object.assign(super[Hr],{choiceButtonPartType:PlainBorderButton})}get[Vo](){const en=super[Vo];return en.content.append(Bn.html(AS||(AS=_taggedTemplateLiteral(['\n <style>\n [part~="frame"] {\n padding: 1em;\n }\n\n [part~="choice-button-container"] {\n margin-top: 1em;\n }\n\n [part~="choice-button"]:not(:first-child) {\n margin-left: 0.5em;\n }\n </style>\n '])))),en}}class SePlainAlertDialog extends PlainAlertDialog{get[Vo](){const en=super[Vo],tn=en.content.querySelector("#frameContent");return tn&&tn.replaceWith(Bn.html(dS||(dS=_taggedTemplateLiteral(['\n <div id="alertDialogContent">\n <div id="se-content-alert">\n <slot></slot>\n </div>\n <div id="choiceButtonContainer" part="choice-button-container"></div>\n </div>\n '])))),en.content.append(Bn.html(uS||(uS=_taggedTemplateLiteral(['\n <style>\n [part~="frame"] {\n padding: 1em;\n background: #CCC;\n width: 300px;\n border: 1px outset #777;\n font-size: 0.8em;\n font-family: Verdana,Helvetica,sans-serif;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n }\n\n [part~="choice-button-container"] {\n margin-top: 1em;\n text-align: center;\n }\n\n [part~="choice-button"]:not(:first-child) {\n margin-left: 0.5em;\n }\n #se-content-alert{\n height: 95px;\n background: #DDD;\n overflow: auto;\n text-align: left;\n border: 1px solid #5a6162;\n padding: 1em;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n }\n </style>\n '])))),en}}customElements.define("se-elix-alert-dialog",SePlainAlertDialog);window.seSelect=async(en,tn)=>{const nn=new SePlainAlertDialog;nn.textContent=en,nn.choices=tn,nn.open();return(await nn.whenClosed()).choice};window.seConfirm=async(en,tn)=>{const nn=new SePlainAlertDialog;nn.textContent=en,nn.choices=void 0===tn?["Ok","Cancel"]:tn,nn.open();return(await nn.whenClosed()).choice};class SePromptDialog extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this.dialog=new SePlainAlertDialog}static get observedAttributes(){return["title","close"]}attributeChangedCallback(en,tn,nn){switch(en){case"title":this.dialog.opened&&this.dialog.close(),this.dialog.textContent=nn,this.dialog.choices=["Cancel"],this.dialog.open();break;case"close":this.dialog.opened?this.dialog.close():this.dialog.open();break;default:console.error("unknown attr for:",en,"newValue =",nn)}}get title(){return this.getAttribute("title")}set title(en){this.setAttribute("title",en)}get close(){return this.getAttribute("close")}set close(en){en?this.setAttribute("close","true"):this.removeAttribute("close")}}customElements.define("se-prompt-dialog",SePromptDialog);window.seAlert=en=>{const tn=new SePlainAlertDialog;tn.textContent=en,tn.choices=["Ok"],tn.open()};const pS=document.createElement("template");pS.innerHTML='<style>\n #dialog_content {\n margin: 10px 10px 5px 10px;\n background: #5a6162;\n overflow: auto;\n text-align: left;\n border: 1px solid #c8c8c8;\n }\n\n #dialog_content p,\n #dialog_content select,\n #dialog_content label {\n margin: 10px;\n line-height: 0.3em;\n }\n\n #dialog_container {\n font-family: Verdana;\n text-align: center;\n left: 50%;\n top: 50%;\n max-width: 400px;\n z-index: 50001;\n background: #5a6162;\n border: 1px outset #777;\n font-family: Verdana, Helvetica, sans-serif;\n font-size: 0.8em;\n }\n\n #dialog_container,\n #dialog_content {\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n }\n\n #dialog_buttons input[type=text] {\n width: 90%;\n display: block;\n margin: 0 0 5px 11px;\n }\n\n #dialog_buttons input[type=button] {\n margin: 0 1em;\n }\n\n .se-select {\n text-align: center;\n }\n\n elix-number-spin-box {\n margin-left: 15px;\n }\n</style>\n<elix-dialog id="export_box" aria-label="export svg" closed>\n <div class="overlay"></div>\n <div id="dialog_container">\n <div id="dialog_content">\n <p class="se-select" id="export_select"></p>\n <p class="se-select">\n <select id="se-storage-pref">\n <option value="PNG">PNG</option>\n <option value="JPEG">JPEG</option>\n <option value="BMP">BMP</option>\n <option value="WEBP">WEBP</option>\n <option value="PDF">PDF</option>\n </select>\n </p>\n <p id="se-quality">\n <elix-number-spin-box min="-1" max="101" step="5" value="100"></elix-number-spin-box>\n </p>\n </div>\n <div id="dialog_buttons">\n <button id="export_ok"></button>\n <button id="export_cancel"></button>\n </div>\n </div>\n</elix-dialog>';class SeExportDialog extends HTMLElement{constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this._shadowRoot.append(pS.content.cloneNode(!0)),this.$dialog=this._shadowRoot.querySelector("#export_box"),this.$okBtn=this._shadowRoot.querySelector("#export_ok"),this.$cancelBtn=this._shadowRoot.querySelector("#export_cancel"),this.$exportOption=this._shadowRoot.querySelector("#se-storage-pref"),this.$qualityCont=this._shadowRoot.querySelector("#se-quality"),this.$input=this._shadowRoot.querySelector("elix-number-spin-box"),this.value=1}init(en){this.setAttribute("common-ok",en.t("common.ok")),this.setAttribute("common-cancel",en.t("common.cancel")),this.setAttribute("ui-quality",en.t("ui.quality")),this.setAttribute("ui-export_type_label",en.t("ui.export_type_label"))}static get observedAttributes(){return["dialog","common-ok","common-cancel","ui-quality","ui-export_type_label"]}attributeChangedCallback(en,tn,nn){let rn;switch(en){case"dialog":"open"===nn?this.$dialog.open():this.$dialog.close();break;case"common-ok":this.$okBtn.textContent=nn;break;case"common-cancel":this.$cancelBtn.textContent=nn;break;case"ui-quality":rn=this._shadowRoot.querySelector("#se-quality"),rn.prepend(nn);break;case"ui-export_type_label":rn=this._shadowRoot.querySelector("#export_select"),rn.textContent=nn}}get dialog(){return this.getAttribute("dialog")}set dialog(en){this.setAttribute("dialog",en)}connectedCallback(){this.$input.addEventListener("change",(en=>{en.preventDefault(),this.value=en.target.value})),svgEditor.$click(this.$input,(en=>{en.preventDefault(),this.value=en.target.value}));const onSubmitHandler=(en,tn)=>{if("cancel"===tn)document.getElementById("se-export-dialog").setAttribute("dialog","close");else{const en=new CustomEvent("change",{detail:{trigger:tn,imgType:this.$exportOption.value,quality:this.value}});this.dispatchEvent(en),document.getElementById("se-export-dialog").setAttribute("dialog","close")}},onChangeHandler=en=>{"PDF"===en.target.value?this.$qualityCont.style.display="none":this.$qualityCont.style.display="block"};svgEditor.$click(this.$okBtn,(en=>onSubmitHandler(0,"ok"))),svgEditor.$click(this.$cancelBtn,(en=>onSubmitHandler(0,"cancel"))),this.$exportOption.addEventListener("change",(en=>onChangeHandler(en)))}}customElements.define("se-export-dialog",SeExportDialog);var hS=Object.freeze({__proto__:null});
/**
* Browser detection.
* @module browser
* @license MIT
*
* @copyright 2010 Jeff Schiller, 2010 Alexis Deveria
*/const gS="http://www.w3.org/2000/svg",{userAgent:_S}=navigator;_S.includes("AppleWebKit"),_S.includes("Gecko/");const mS=_S.includes("Chrome/"),fS=_S.includes("Macintosh");!function(){const en=document.createElementNS(gS,"svg"),tn=document.createElementNS(gS,"svg");document.documentElement.append(en),tn.setAttribute("x",5),en.append(tn);const nn=document.createElementNS(gS,"text");nn.textContent="a",tn.append(nn);try{nn.getStartPositionOfChar(0).x}catch(en){return!1}finally{en.remove()}}();class ConfigObj{constructor(en){this.defaultPrefs={lang:"en",bkgd_color:"#FFF",bkgd_url:"",img_save:"embed",save_notice_done:!1,export_notice_done:!1},this.defaultConfig={canvasName:"default",canvas_expansion:3,initFill:{color:"FF0000",opacity:1},initStroke:{width:5,color:"000000",opacity:1},text:{stroke_width:0,font_size:24,font_family:"Serif"},initOpacity:1,initTool:"select",exportWindowType:"new",wireframe:!1,showlayers:!1,no_save_warning:!1,imgPath:"./images",extPath:"./extensions",dimensions:[640,480],gridSnapping:!1,gridColor:"#000",baseUnit:"px",snappingStep:10,showRulers:!0,dynamicOutput:!1,preventAllURLConfig:!1,preventURLContentLoading:!1,lockExtensions:!1,noDefaultExtensions:!1,showGrid:!1,noStorageOnLoad:!1,forceStorage:!1,emptyStorageOnDecline:!1,avoidClientSide:!1,avoidClientSideDownload:!1,avoidClientSideOpen:!1},this.curPrefs={},this.urldata={},this.defaultExtensions=["ext-eyedropper","ext-grid","ext-markers","ext-panning","ext-shapes","ext-polystar","ext-storage","ext-opensave"],this.curConfig={extensions:[],userExtensions:[],allowedOrigins:[]},this.editor=en}setupCurPrefs(){const en={...this.defaultPrefs,...this.curPrefs};this.curPrefs=en}setupCurConfig(){const en={...this.defaultConfig,...this.curConfig};en.noDefaultExtensions||(en.extensions=[...this.defaultExtensions]),this.curConfig=en}loadFromURL(){const en=this,{search:tn,searchParams:nn}=new URL(location);if(tn){this.urldata={};const tn=nn.entries();for(const en of tn)this.urldata[en[0]]=en[1];if(["initStroke","initFill"].forEach((en=>{nn.has("".concat(en,"[color]"))&&(void 0===this.urldata[en]&&(this.urldata[en]={}),this.urldata[en].color=nn.get("".concat(en,"[color]")))})),nn.has("bkgd_color")&&(this.urldata.bkgd_color="#"+nn.get("bkgd_color")),this.urldata.dimensions&&(this.urldata.dimensions=this.urldata.dimensions.split(",")),this.urldata.extensions&&(this.urldata.extensions=/[:/\\]/.test(this.urldata.extensions)?"":this.urldata.extensions.split(",")),["userExtensions","imgPath"].forEach((function(tn){en.urldata[tn]&&delete en.urldata[tn]})),this.setConfig(this.urldata,{overwrite:!1}),this.setupCurConfig(),!this.curConfig.preventURLContentLoading){let{source:en}=this.urldata;if(!en){const tn=nn.get("source");null!=tn&&tn.startsWith("data:")&&(en=tn)}if(en)return void(en.startsWith("data:")?this.editor.loadFromDataURI(en):this.editor.loadFromString(en));if(this.urldata.url)return void this.editor.loadFromURL(this.urldata.url)}this.urldata.noStorageOnLoad&&!this.curConfig.forceStorage||this.loadContentAndPrefs()}else this.setupCurConfig(),this.loadContentAndPrefs()}loadContentAndPrefs(){(this.curConfig.forceStorage||!this.curConfig.noStorageOnLoad&&/(?:^|;\s*)svgeditstore=(?:prefsAndContent|prefsOnly)/.test(document.cookie))&&Object.keys(this.defaultPrefs).forEach((en=>{const tn="svg-edit-"+en;if(this.editor.storage){const nn=this.editor.storage.getItem(tn);nn&&(this.defaultPrefs[en]=String(nn))}else if(window.widget)this.defaultPrefs[en]=window.widget.preferenceForKey(tn);else{const rn=document.cookie.match(new RegExp("(?:^|;\\s*)"+(nn=encodeURIComponent(tn),String(nn).replace(/[.\\+*?[^\]$(){}=!<>|:-]/g,"\\$&")+"=([^;]+)")));this.defaultPrefs[en]=rn?decodeURIComponent(rn[1]):""}var nn}))}setConfig(en){let tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const extendOrAdd=(en,tn,nn)=>{en[tn]&&"object"==typeof en[tn]&&!Array.isArray(en[tn])?en[tn]=mergeDeep(en[tn],nn):en[tn]=nn};Object.entries(en).forEach((en=>{let[nn,rn]=en;if(this.defaultPrefs[nn]){if(!1===tn.overwrite&&(this.curConfig.preventAllURLConfig||this.curPrefs[nn]))return;!0===tn.allowInitialUserOverride?this.defaultPrefs[nn]=rn:this.pref(nn,rn)}else if(["extensions","userExtensions","allowedOrigins"].includes(nn)){if(!1===tn.overwrite&&(this.curConfig.preventAllURLConfig||["allowedOrigins"].includes(nn)||"extensions"===nn&&this.curConfig.lockExtensions))return;this.curConfig[nn]=this.curConfig[nn].concat(rn)}else if({}.hasOwnProperty.call(this.defaultConfig,nn)){if(!1===tn.overwrite&&(this.curConfig.preventAllURLConfig||{}.hasOwnProperty.call(this.curConfig,nn)))return;if({}.hasOwnProperty.call(this.curConfig,nn)){if(!1===tn.overwrite)return;extendOrAdd(this.curConfig,nn,rn)}else!0===tn.allowInitialUserOverride?extendOrAdd(this.defaultConfig,nn,rn):this.defaultConfig[nn]&&"object"==typeof this.defaultConfig[nn]?(this.curConfig[nn]=Array.isArray(this.defaultConfig[nn])?[]:{},this.curConfig[nn]=mergeDeep(this.curConfig[nn],rn)):this.curConfig[nn]=rn}}))}pref(en,tn,nn){if(!nn&&!tn)return en in this.curPrefs?this.curPrefs[en]:this.defaultPrefs[en];this.curPrefs[en]=tn}load(){this.loadFromURL(this.editor),this.setupCurPrefs(this.editor)}}
/**
* Adds context menu functionality.
* @module contextmenu
* @license Apache-2.0
* @author Adam Bender
*/let yS={};const injectExtendedContextMenuItemsIntoDom=function(){Object.values(yS).forEach((en=>{!function(en){Object.keys(yS).length||document.getElementById("cmenu_canvas").appendChild("<li class='separator'>");const tn=en.shortcut||"";document.getElementById("cmenu_canvas").appendChild("\n <li class='disabled'><a href='#".concat(en.id,"'>").concat(en.label,"<span class='shortcut'>").concat(tn,"</span></a></li>"))}(en)}))};const{$id:bS,getTypeMap:vS}=SvgCanvas;class Rulers{constructor(en){this.rulerIntervals=[];for(let en=.1;en<1e5;en*=10)this.rulerIntervals.push(en),this.rulerIntervals.push(2*en),this.rulerIntervals.push(5*en);this.svgCanvas=en.svgCanvas,this.editor=en;const tn=document.createElement("template");tn.innerHTML='<style>\n /* Rulers\n——————————————————————————————————————*/\n\n #ruler_corner {\n background: var(--ruler-color);\n grid-area: corner;\n width: 15px;\n height: 15px;\n overflow: hidden;\n }\n\n #ruler_x {\n background: var(--ruler-color);\n grid-area: rulerX;\n height: 15px;\n border-bottom: 1px solid;\n border-left: 1px solid #777;\n overflow: hidden;\n }\n\n #ruler_y {\n background: var(--ruler-color);\n grid-area: rulerY;\n width: 15px;\n border-right: 1px solid;\n border-top: 1px solid #777;\n overflow: hidden;\n }\n\n #ruler_x canvas {\n float: left;\n }\n</style>\n<div id="ruler_corner"></div>\n<div id="ruler_x">\n <div>\n <canvas height="15"></canvas>\n </div>\n</div>\n<div id="ruler_y">\n <div>\n <canvas width="15"></canvas>\n </div>\n</div>',this.editor.$svgEditor.append(tn.content.cloneNode(!0));const{$id:nn}=SvgCanvas;this.rulerX=nn("ruler_x"),this.rulerY=nn("ruler_y"),this.rulerCorner=nn("ruler_corner")}display(en){en?(this.rulerX.style.removeProperty("display"),this.rulerY.style.removeProperty("display"),this.rulerCorner.style.removeProperty("display")):(this.rulerX.style.display="none",this.rulerY.style.display="none",this.rulerCorner.style.display="none")}manageScroll(){this.rulerX&&(this.rulerX.scrollLeft=this.editor.workarea.scrollLeft),this.rulerY&&(this.rulerY.scrollTop=this.editor.workarea.scrollTop)}updateRulers(en,tn){let nn,rn;tn||(tn=this.svgCanvas.getZoom()),en||(en=document.getElementById("svgcanvas"));const an=3e4,sn=this.svgCanvas.getSvgContent(),cn=vS()[this.editor.configObj.curConfig.baseUnit];for(nn=0;nn<2;nn++){const An=0===nn,dn=An?"x":"y",un=An?"width":"height",pn=Number(sn.getAttribute(dn)),hn=bS("ruler_"+dn).querySelector("canvas"),gn=hn.cloneNode(!0);hn.replaceWith(gn);const _n=gn;let mn;"width"===un?mn=parseFloat(getComputedStyle(en,null).width.replace("px","")):"height"===un&&(mn=parseFloat(getComputedStyle(en,null).height.replace("px","")));const fn=mn;_n.parentNode.style[un]=fn+"px";let yn,bn,vn,wn=_n.getContext("2d");wn.fillStyle="rgb(200,0,0)",wn.fillRect(0,0,_n.width,_n.height);const xn=Array.prototype.filter.call(gn.parentNode.children,(function(en){return en!==gn}));if(Array.from(xn).forEach((function(en){en.remove()})),mn>=an){let en;for(vn=Number.parseInt(mn/an)+1,yn=[],yn[0]=wn,rn=1;rn<vn;rn++)_n[un]=an,en=_n.cloneNode(!0),_n.parentNode.append(en),yn[rn]=en.getContext("2d");en[un]=mn%an,mn=an}_n[un]=mn;const kn=cn*tn,Cn=50/kn;let Sn=1;for(rn=0;rn<this.rulerIntervals.length&&(bn=this.rulerIntervals[rn],Sn=bn,!(Cn<=bn));rn++);const Bn=Sn*kn;wn.font="9px sans-serif";let En=pn/kn%Sn*kn,jn=En-Bn,Ln=0;for(;En<fn;){jn+=Bn;const en=Math.round(En)+.5;let tn;if(An?(wn.moveTo(en,15),wn.lineTo(en,0)):(wn.moveTo(15,en),wn.lineTo(0,en)),bn=(jn-pn)/kn,Sn>=1)tn=Math.round(bn);else{const en=String(Sn).split(".")[1].length;tn=bn.toFixed(en)}if(0!==tn&&1e3!==tn&&tn%1e3==0&&(tn=tn/1e3+"K"),An)wn.fillText(tn,En+2,8);else{const en=String(tn).split("");for(rn=0;rn<en.length;rn++)wn.fillText(en[rn],1,En+9+9*rn)}const nn=Bn/10;for(rn=1;rn<10;rn++){let en=Math.round(En+nn*rn)+.5;if(yn&&en>mn){if(Ln++,wn.stroke(),Ln>=vn){rn=10,En=fn;continue}wn=yn[Ln],En-=an,en=Math.round(En+nn*rn)+.5}const tn=rn%2?12:10;An?(wn.moveTo(en,15),wn.lineTo(en,tn)):(wn.moveTo(15,en),wn.lineTo(tn,en))}En+=Bn}wn.strokeStyle="#000",wn.stroke()}}}const{$id:wS,$qq:xS,$click:kS,convertUnit:CS}=SvgCanvas;const{$id:SS,$qa:BS,$click:ES}=SvgCanvas;class LeftPanel{constructor(en){this.editor=en}updateLeftPanel(en){return!en.disabled&&(BS("#tools_left *[pressed]").forEach((en=>{en.pressed=!1})),SS(en).pressed=!0,!0)}clickSelect(){this.updateLeftPanel("tool_select")&&(this.editor.workarea.style.cursor="auto",this.editor.svgCanvas.setMode("select"))}clickFHPath(){this.updateLeftPanel("tool_fhpath")&&this.editor.svgCanvas.setMode("fhpath")}clickLine(){this.updateLeftPanel("tool_line")&&this.editor.svgCanvas.setMode("line")}clickSquare(){this.updateLeftPanel("tool_square")&&this.editor.svgCanvas.setMode("square")}clickRect(){this.updateLeftPanel("tool_rect")&&this.editor.svgCanvas.setMode("rect")}clickFHRect(){this.updateLeftPanel("tool_fhrect")&&this.editor.svgCanvas.setMode("fhrect")}clickCircle(){this.updateLeftPanel("tool_circle")&&this.editor.svgCanvas.setMode("circle")}clickEllipse(){this.updateLeftPanel("tool_ellipse")&&this.editor.svgCanvas.setMode("ellipse")}clickFHEllipse(){this.updateLeftPanel("tool_fhellipse")&&this.editor.svgCanvas.setMode("fhellipse")}clickImage(){this.updateLeftPanel("tool_image")&&this.editor.svgCanvas.setMode("image")}clickZoom(){this.updateLeftPanel("tool_zoom")&&(this.editor.svgCanvas.setMode("zoom"),this.editor.workarea.style.cursor=this.editor.zoomInIcon)}dblclickZoom(){this.updateLeftPanel("tool_zoom")&&(this.editor.zoomImage(),this.clickSelect())}clickText(){this.updateLeftPanel("tool_text")&&this.editor.svgCanvas.setMode("text")}clickPath(){this.updateLeftPanel("tool_path")&&this.editor.svgCanvas.setMode("path")}add(en,tn){ES(SS(en),(()=>{this.updateLeftPanel(en)&&tn()}))}init(){const en=document.createElement("template");en.innerHTML='<div id="tools_left">\n <se-button id="tool_select" title="tools.mode_select" src="select.svg"></se-button>\n <se-button id="tool_zoom" title="tools.mode_zoom" src="zoom.svg" shortcut="Z"></se-button>\n <se-button id="tool_fhpath" title="tools.mode_fhpath" src="pencil.svg" shortcut="Q"></se-button>\n <se-button id="tool_line" title="tools.mode_line" src="pen.svg" shortcut="L"></se-button>\n <se-button id="tool_path" title="tools.mode_path" src="path.svg" shortcut="P"></se-button>\n <se-flyingbutton id="tools_rect" title="tools.square_rect_tool">\n <se-button id="tool_rect" title="tools.mode_rect" src="rect.svg" shortcut="R"></se-button>\n <se-button id="tool_square" title="tools.mode_square" src="square.svg"></se-button>\n <se-button id="tool_fhrect" title="tools.mode_fhrect" src="fh_rect.svg"></se-button>\n </se-flyingbutton>\n <se-flyingbutton id="tools_ellipse" title="tools.ellipse_circle_tool">\n <se-button id="tool_ellipse" title="tools.mode_ellipse" src="ellipse.svg" shortcut="E"></se-button>\n <se-button id="tool_circle" title="tools.mode_circle" src="circle.svg"></se-button>\n <se-button id="tool_fhellipse" title="tools.mode_fhellipse" src="fh_ellipse.svg"></se-button>\n </se-flyingbutton>\n <se-button id="tool_text" title="tools.mode_text" src="text.svg" shortcut="T"></se-button>\n <se-button id="tool_image" title="tools.mode_image" src="image.svg"></se-button>\n</div>',this.editor.$svgEditor.append(en.content.cloneNode(!0)),ES(SS("tool_select"),this.clickSelect.bind(this)),ES(SS("tool_fhpath"),this.clickFHPath.bind(this)),ES(SS("tool_text"),this.clickText.bind(this)),ES(SS("tool_image"),this.clickImage.bind(this)),ES(SS("tool_zoom"),this.clickZoom.bind(this)),SS("tool_zoom").addEventListener("dblclick",this.dblclickZoom.bind(this)),ES(SS("tool_path"),this.clickPath.bind(this)),ES(SS("tool_line"),this.clickLine.bind(this)),ES(SS("tool_rect"),this.clickRect.bind(this)),ES(SS("tool_square"),this.clickSquare.bind(this)),ES(SS("tool_fhrect"),this.clickFHRect.bind(this)),ES(SS("tool_ellipse"),this.clickEllipse.bind(this)),ES(SS("tool_circle"),this.clickCircle.bind(this)),ES(SS("tool_fhellipse"),this.clickFHEllipse.bind(this))}}const{$qa:jS,$id:LS,$click:PS,isValidUnit:TS,getTypeMap:FS,convertUnit:US}=SvgCanvas;class TopPanel{constructor(en){this.editor=en}displayTool(en){jS(".".concat(en)).map((en=>en.style.removeProperty("display")))}hideTool(en){jS(".".concat(en)).forEach((en=>{en.style.display="none"}))}get selectedElement(){return this.editor.selectedElement}get multiselected(){return this.editor.multiselected}get path(){return this.editor.svgCanvas.pathActions}setStrokeOpt(en,tn){const{id:nn}=en,rn=nn.split("_"),[an,sn]=rn;tn&&this.svgCanvas.setStrokeAttr("stroke-"+an,sn),en.classList.add("current");const cn=Array.prototype.filter.call(en.parentNode.children,(function(tn){return tn!==en}));Array.from(cn).forEach((function(en){en.classList.remove("current")}))}update(){let en,tn;if(jS("#title_panel > p")[0].textContent=this.editor.title,this.selectedElement)switch(this.selectedElement.tagName){case"use":case"image":case"foreignObject":break;case"g":case"a":{const nn=this.selectedElement.getElementsByTagName("*");let rn=null;for(en=0,tn=nn.length;en<tn;en++){const tn=nn[en].getAttribute("stroke-width");0===en?rn=tn:rn!==tn&&(rn=null)}LS("stroke_width").value=null===rn?"":rn,this.editor.bottomPanel.updateColorpickers(!1);break}default:{this.editor.bottomPanel.updateColorpickers(!1),LS("stroke_width").value=this.selectedElement.getAttribute("stroke-width")||1,LS("stroke_style").value=this.selectedElement.getAttribute("stroke-dasharray")||"none",LS("stroke_style").setAttribute("value",LS("stroke_style").value);let en=this.selectedElement.getAttribute("stroke-linejoin")||"miter";LS("linejoin_"+en)&&(this.setStrokeOpt(LS("linejoin_"+en)),LS("stroke_linejoin").setAttribute("value",en)),en=this.selectedElement.getAttribute("stroke-linecap")||"butt",LS("linecap_"+en)&&(this.setStrokeOpt(LS("linecap_"+en)),LS("stroke_linecap").setAttribute("value",en))}}if(this.selectedElement){var nn;const en=100*(this.selectedElement.getAttribute("opacity")||1);LS("opacity").value=en,LS("elem_id").value=this.selectedElement.id,LS("elem_class").value=null!==(nn=this.selectedElement.getAttribute("class"))&&void 0!==nn?nn:""}this.editor.bottomPanel.updateToolButtonState()}promptImgURL(){let{cancelDeletes:en=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tn=this.editor.svgCanvas.getHref(this.editor.selectedElement);tn=tn.startsWith("data:")?"":tn;const nn=prompt(this.editor.i18next.t("notification.enterNewImgURL"),tn);nn?this.setImageURL(nn):en&&this.editor.svgCanvas.deleteSelectedElements()}updateContextPanel(){var en;let tn=this.editor.selectedElement;null!==(en=tn)&&void 0!==en&&en.parentNode||(tn=null);const nn=this.editor.svgCanvas.getCurrentDrawing().getCurrentLayerName(),rn=this.editor.svgCanvas.getMode(),an="px"!==this.editor.configObj.curConfig.baseUnit?this.editor.configObj.curConfig.baseUnit:null,sn="pathedit"===rn,cn=document.getElementById("se-cmenu_canvas");if(this.hideTool("selected_panel"),this.hideTool("multiselected_panel"),this.hideTool("g_panel"),this.hideTool("rect_panel"),this.hideTool("circle_panel"),this.hideTool("ellipse_panel"),this.hideTool("line_panel"),this.hideTool("text_panel"),this.hideTool("image_panel"),this.hideTool("container_panel"),this.hideTool("use_panel"),this.hideTool("a_panel"),this.hideTool("xy_panel"),tn){const en=tn.nodeName,nn=this.editor.svgCanvas.getRotationAngle(tn);LS("angle").value=nn;const hn=10*this.editor.svgCanvas.getBlur(tn);if(LS("blur").value=hn,this.editor.svgCanvas.addedNew&&"image"===en&&"image"===this.editor.svgCanvas.getMode()&&!this.editor.svgCanvas.getHref(tn).startsWith("data:")&&this.promptImgURL({cancelDeletes:!0}),sn||"pathedit"===rn){const en=this.path.getNodePoint();if(LS("tool_add_subpath").pressed=!1,this.path.canDeleteNodes?LS("tool_node_delete").classList.remove("disabled"):LS("tool_node_delete").classList.add("disabled"),en){const tn=LS("seg_type");an&&(en.x=US(en.x),en.y=US(en.y)),LS("path_node_x").value=en.x,LS("path_node_y").value=en.y,en.type?(tn.value=en.type,tn.removeAttribute("disabled")):(tn.value=4,tn.setAttribute("disabled","disabled"))}return}if(this.displayTool("selected_panel"),["line","circle","ellipse"].includes(en))this.hideTool("xy_panel");else{let nn,rn;if(["g","polyline","path"].includes(en)){const en=this.editor.svgCanvas.getStrokedBBox([tn]);en&&({x:nn,y:rn}=en)}else nn=tn.getAttribute("x"),rn=tn.getAttribute("y");an&&(nn=US(nn),rn=US(rn)),LS("selected_x").value=nn||0,LS("selected_y").value=rn||0,this.displayTool("xy_panel")}["image","text","path","g","use"].includes(en)?this.hideTool("tool_topath"):this.displayTool("tool_topath"),"path"===en?this.displayTool("tool_reorient"):this.hideTool("tool_reorient"),LS("tool_reorient").disabled=0===nn;const gn={g:[],a:[],rect:["rx","width","height"],image:["width","height"],circle:["cx","cy","r"],ellipse:["cx","cy","rx","ry"],line:["x1","y1","x2","y2"],text:[],use:[]},{tagName:_n}=tn;let mn=null;if("a"===_n&&(mn=this.editor.svgCanvas.getHref(tn),this.displayTool("g_panel")),tn.parentNode){const en=Array.prototype.filter.call(tn.parentNode.children,(function(en){return en!==tn}));"a"!==tn.parentNode.tagName||en.length||(this.displayTool("a_panel"),mn=this.editor.svgCanvas.getHref(tn.parentNode))}if(mn?(this.displayTool("tool_make_link"),this.displayTool("tool_make_link_multi"),LS("link_url").value=mn):(this.hideTool("tool_make_link"),this.hideTool("tool_make_link_multi")),gn[_n]){const en=gn[_n];var An,dn,un,pn;if(this.displayTool(_n+"_panel"),en.forEach((en=>{let nn=tn.getAttribute(en);if("px"!==this.editor.configObj.curConfig.baseUnit&&tn[en]){const rn=tn[en].baseVal.value;nn=US(rn)}LS("".concat(_n,"_").concat(en)).value=nn||0})),"text"===_n)this.displayTool("text_panel"),LS("tool_italic").pressed=this.editor.svgCanvas.getItalic(),LS("tool_bold").pressed=this.editor.svgCanvas.getBold(),LS("tool_text_decoration_underline").pressed=this.editor.svgCanvas.hasTextDecoration("underline"),LS("tool_text_decoration_linethrough").pressed=this.editor.svgCanvas.hasTextDecoration("line-through"),LS("tool_text_decoration_overline").pressed=this.editor.svgCanvas.hasTextDecoration("overline"),LS("tool_font_family").setAttribute("value",tn.getAttribute("font-family")),LS("tool_text_anchor").setAttribute("value",tn.getAttribute("text-anchor")),LS("font_size").value=tn.getAttribute("font-size"),LS("tool_letter_spacing").value=null!==(An=tn.getAttribute("letter-spacing"))&&void 0!==An?An:0,LS("tool_word_spacing").value=null!==(dn=tn.getAttribute("word-spacing"))&&void 0!==dn?dn:0,LS("tool_text_length").value=null!==(un=tn.getAttribute("textLength"))&&void 0!==un?un:0,LS("tool_length_adjust").value=null!==(pn=tn.getAttribute("lengthAdjust"))&&void 0!==pn?pn:0,LS("text").value=tn.textContent,this.editor.svgCanvas.addedNew&&setTimeout((()=>{LS("text").focus(),LS("text").select()}),100);else if("image"===_n&&"image"===this.editor.svgCanvas.getMode())this.editor.svgCanvas.setImageURL(this.editor.svgCanvas.getHref(tn));else if("g"===_n||"use"===_n){this.displayTool("container_panel");const en=this.editor.svgCanvas.getTitle();LS("g_title").value=en,LS("g_title").disabled="use"===_n}}cn.setAttribute(("g"===_n?"en":"dis")+"ablemenuitems","#ungroup"),cn.setAttribute(("g"!==_n&&this.multiselected?"en":"dis")+"ablemenuitems","#group")}else if(this.multiselected){this.editor.svgCanvas.getSelectedElements().every((en=>"text"===en.tagName))&&this.displayTool("text_panel"),this.displayTool("multiselected_panel"),cn.setAttribute("enablemenuitems","#group"),cn.setAttribute("disablemenuitems","#ungroup")}else cn.setAttribute("disablemenuitems","#delete,#cut,#copy,#group,#ungroup,#move_front,#move_up,#move_down,#move_back");if(LS("tool_undo").disabled=0===this.editor.svgCanvas.undoMgr.getUndoStackSize(),LS("tool_redo").disabled=0===this.editor.svgCanvas.undoMgr.getRedoStackSize(),this.editor.svgCanvas.addedNew=!1,tn&&!sn||this.multiselected){LS("selLayerNames").removeAttribute("disabled"),LS("selLayerNames").value=nn,LS("selLayerNames").setAttribute("value",nn);document.getElementById("se-cmenu_canvas").setAttribute("enablemenuitems","#delete,#cut,#copy,#move_front,#move_up,#move_down,#move_back")}else LS("selLayerNames").setAttribute("disabled","disabled")}showSourceEditor(en,tn){const nn=document.getElementById("se-svg-editor-dialog");if("open"===nn.getAttribute("dialog"))return;const rn=this.editor.svgCanvas.getSvgString();nn.setAttribute("dialog","open"),nn.setAttribute("value",rn),nn.setAttribute("copysec",Boolean(tn)),nn.setAttribute("applysec",!tn)}clickWireframe(){LS("tool_wireframe").pressed=!LS("tool_wireframe").pressed,this.editor.workarea.classList.toggle("wireframe");const en=LS("wireframe_rules");if(en)for(;en.firstChild;)en.removeChild(en.firstChild);else{const en=document.createElement("style");en.setAttribute("id","wireframe_rules"),document.getElementsByTagName("head")[0].appendChild(en)}this.editor.updateWireFrame()}clickUndo(){const{undoMgr:en,textActions:tn}=this.editor.svgCanvas;en.getUndoStackSize()>0&&(en.undo(),this.editor.layersPanel.populateLayers(),"textedit"===this.editor.svgCanvas.getMode()&&tn.clear())}clickRedo(){const{undoMgr:en}=this.editor.svgCanvas;en.getRedoStackSize()>0&&(en.redo(),this.editor.layersPanel.populateLayers())}changeRectRadius(en){this.editor.svgCanvas.setRectRadius(en.target.value)}changeFontSize(en){this.editor.svgCanvas.setFontSize(en.target.value)}changeRotationAngle(en){this.editor.svgCanvas.setRotationAngle(en.target.value),0===Number.parseInt(en.target.value)?LS("tool_reorient").classList.add("disabled"):LS("tool_reorient").classList.remove("disabled")}changeBlur(en){this.editor.svgCanvas.setBlur(en.target.value/10,!0)}clickGroup(){this.editor.multiselected?this.editor.svgCanvas.groupSelectedElements():this.editor.selectedElement&&this.editor.svgCanvas.ungroupSelectedElement()}clickClone(){this.editor.svgCanvas.cloneSelectedElements(20,20)}clickAlignEle(en){this.editor.svgCanvas.alignSelectedElements(en.detail.value,"page")}clickAlign(en){let tn=LS("tool_align_relative").value;""===tn&&(tn="selected"),this.editor.svgCanvas.alignSelectedElements(en,tn)}attrChanger(en){const tn=en.target.getAttribute("data-attr");let nn=en.target.value;if(!TS(tn,nn,this.selectedElement))return en.target.value=this.selectedElement.getAttribute(tn),alert(this.editor.i18next.t("notification.invalidAttrValGiven")),!1;if("id"!==tn&&"class"!==tn)if(isNaN(nn))nn=this.editor.svgCanvas.convertToNum(tn,nn);else if("px"!==this.editor.configObj.curConfig.baseUnit){const en=FS();(this.editor.selectedElement[tn]||"pathedit"===this.editor.svgCanvas.getMode()||"x"===tn||"y"===tn)&&(nn*=en[this.editor.configObj.curConfig.baseUnit])}return this.editor.svgCanvas.changeSelectedAttribute(tn,nn),!0}convertToPath(){this.editor.selectedElement&&this.editor.svgCanvas.convertToPath()}reorientPath(){this.editor.selectedElement&&this.path.reorient()}makeHyperlink(){if(this.editor.selectedElement||this.multiselected){const en=prompt(this.editor.i18next.t("notification.enterNewLinkURL"),"http://");en&&this.editor.svgCanvas.makeHyperlink(en)}}linkControlPoints(){LS("tool_node_link").pressed=!LS("tool_node_link").pressed;const en=!!LS("tool_node_link").pressed;this.path.linkControlPoints(en)}clonePathNode(){this.path.getNodePoint()&&this.path.clonePathNode()}deletePathNode(){this.path.getNodePoint()&&this.path.deletePathNode()}addSubPath(){const en=LS("tool_add_subpath"),tn=!en.classList.contains("pressed");en.pressed=tn,this.path.addSubPath(tn)}opencloseSubPath(){this.path.opencloseSubPath()}deleteSelected(){(this.editor.selectedElement||this.editor.multiselected)&&this.editor.svgCanvas.deleteSelectedElements()}moveToTopSelected(){this.editor.selectedElement&&this.editor.svgCanvas.moveToTopSelectedElement()}moveToBottomSelected(){this.editor.selectedElement&&this.editor.svgCanvas.moveToBottomSelectedElement()}clickBold(){return this.editor.svgCanvas.setBold(!this.editor.svgCanvas.getBold()),this.updateContextPanel(),!1}clickItalic(){return this.editor.svgCanvas.setItalic(!this.editor.svgCanvas.getItalic()),this.updateContextPanel(),!1}clickTextDecoration(en){return this.editor.svgCanvas.hasTextDecoration(en)?this.editor.svgCanvas.removeTextDecoration(en):this.editor.svgCanvas.addTextDecoration(en),this.updateContextPanel(),!1}clickTextAnchor(en){return this.editor.svgCanvas.setTextAnchor(en.detail.value),!1}changeLetterSpacing(en){this.editor.svgCanvas.setLetterSpacing(en.target.value)}changeWordSpacing(en){this.editor.svgCanvas.setWordSpacing(en.target.value)}changeTextLength(en){this.editor.svgCanvas.setTextLength(en.target.value)}changeLengthAdjust(en){this.editor.svgCanvas.setLengthAdjust(en.detail.value)}setImageURL(en){const{editor:tn}=this;if(en||(en=tn.defaultImageURL),tn.svgCanvas.setImageURL(en),LS("image_url").value=en,en.startsWith("data:"))this.hideTool("image_url");else{tn.svgCanvas.embedImage(en).then((()=>{tn.svgCanvas.setMode("select"),tn.svgCanvas.selectOnly(tn.svgCanvas.getSelectedElements(),!0)}),(en=>{console.error("error =",en),seAlert(tn.i18next.t("tools.no_embed")),tn.svgCanvas.deleteSelectedElements()})),this.displayTool("image_url")}}updateTitle(en){en&&(this.editor.title=en);const tn=jS("#title_panel > p")[0];tn&&(tn.textContent=this.editor.title)}togglePathEditMode(en,tn){en?this.displayTool("path_node_panel"):this.hideTool("path_node_panel"),en?(LS("tool_path").pressed=!1,LS("tool_select").pressed=!0,LS("tool_select").setAttribute("src","select_node.svg"),this.editor.multiselected=!1,tn.length&&(this.editor.selectedElement=tn[0])):setTimeout((()=>{LS("tool_select").setAttribute("src","select.svg")}),1e3)}init(){const en=document.createElement("template"),{i18next:tn}=this.editor;en.innerHTML='<div id="tools_top">\n <div id="title_panel">\n <p>untitled.svg</p>\n </div> \x3c!-- title panel --\x3e\n <div id="editor_panel">\n <div class="tool_sep"></div>\n <se-button id="tool_source" title="tools.tool_source" shortcut="U" src="source.svg"></se-button>\n <se-button id="tool_wireframe" title="tools.wireframe_mode" shortcut="F" src="wireframe.svg"></se-button>\n </div> \x3c!-- editor_panel --\x3e\n <div id="history_panel">\n <div class="tool_sep"></div>\n <se-button id="tool_undo" title="tools.undo" shortcut="Z" src="undo.svg" disabled="disabled"></se-button>\n <se-button id="tool_redo" title="tools.redo" shortcut="Y" src="redo.svg" disabled="disabled"></se-button>\n </div> \x3c!-- history_panel --\x3e\n \x3c!-- Buttons when a single element is selected --\x3e\n <div class="selected_panel">\n <div class="tool_sep"></div>\n <se-button id="tool_clone" title="tools.clone" shortcut="D" src="clone.svg"></se-button>\n <se-button id="tool_delete" title="tools.del" shortcut="Delete/Backspace" src="delete.svg"></se-button>\n </div>\n <div class="selected_panel">\n <div class="tool_sep"></div>\n <se-button id="tool_move_top" title="tools.move_top" shortcut="Ctrl+Shift+]" src="move_top.svg"></se-button>\n <se-button id="tool_move_bottom" title="tools.move_bottom" shortcut="Ctrl+Shift+[" src="move_bottom.svg">\n </se-button>\n </div>\n <div class="selected_panel">\n <se-button id="tool_topath" title="tools.to_path" src="to_path.svg"></se-button>\n <se-button id="tool_reorient" title="tools.reorient_path" src="reorient.svg"></se-button>\n <se-button id="tool_make_link" title="tools.make_link" src="globe_link.svg"></se-button>\n </div>\n <div class="selected_panel">\n <div class="tool_sep"></div>\n <se-input id="elem_id" data-attr="id" size="10" label="properties.id_label" title="properties.id"></se-input>\n </div>\n <div class="selected_panel">\n <se-input id="elem_class" data-attr="class" size="10" label="properties.class_label" title="properties.class">\n </se-input>\n <se-spin-input size="3" id="angle" min="-180" max="180" step="5" src="angle.svg" title="properties.angle">\n </se-spin-input>\n <se-spin-input size="2" id="blur" min="0" max="100" step="5" src="blur.svg" title="properties.blur"></se-spin-input>\n <se-list id="tool_position" title="tools.align_to_page" label="" width="22px" height="22px">\n <se-list-item id="tool_posleft" value="l" title="tools.align_left" src="align_left.svg" img-height="22px">\n </se-list-item>\n <se-list-item id="tool_poscenter" value="c" title="tools.align_center" src="align_center.svg" img-height="22px"></se-list-item>\n <se-list-item id="tool_posright" value="r" title="tools.align_right" src="align_right.svg" img-height="22px"></se-list-item>\n <se-list-item id="tool_postop" value="t" title="tools.align_top" src="align_top.svg" img-height="22px">\n </se-list-item>\n <se-list-item id="tool_posmiddle" value="m" title="tools.align_middle" src="align_middle.svg" img-height="22px"></se-list-item>\n <se-list-item id="tool_posbottom" value="b" src="align_bottom.svg" title="tools.align_bottom" img-height="22px"></se-list-item>\n <se-list-item id="tool_poshoriz" value="dh" src="align_distrib_horiz.svg" title="tools.align_distrib_horiz" img-height="22px"></se-list-item>\n <se-list-item id="tool_posverti" value="dv" src="align_distrib_verti.svg" title="tools.align_distrib_verti" img-height="22px"></se-list-item>\n </se-list>\n </div>\n <div class="xy_panel">\n <se-spin-input id="selected_x" data-attr="x" size="4" type="text" label="properties.x_label" title="properties.pos_x">\n </se-spin-input>\n <se-spin-input id="selected_y" data-attr="y" size="4" type="text" label="properties.y_label" title="properties.pos_y">\n </se-spin-input>\n </div>\n \x3c!-- Buttons when multiple elements are selected --\x3e\n <div class="multiselected_panel">\n <div class="tool_sep"></div>\n <se-button id="tool_clone_multi" title="tools.clone" shortcut="C" src="clone.svg"></se-button>\n <se-button id="tool_delete_multi" title="tools.del" shortcut="Delete/Backspace" src="delete.svg"></se-button>\n </div>\n <div class="multiselected_panel">\n <div class="tool_sep"></div>\n <se-button id="tool_group_elements" title="tools.group_elements" shortcut="G" src="group_elements.svg">\n </se-button>\n <se-button id="tool_make_link_multi" title="tools.make_link" src="globe_link.svg"></se-button>\n <se-button id="tool_align_left" title="tools.align_left" src="align_left.svg"></se-button>\n <se-button id="tool_align_center" title="tools.align_center" src="align_center.svg"></se-button>\n <se-button id="tool_align_right" title="tools.align_right" src="align_right.svg"></se-button>\n <se-button id="tool_align_top" title="tools.align_top" src="align_top.svg"></se-button>\n <se-button id="tool_align_middle" title="tools.align_middle" src="align_middle.svg"></se-button>\n <se-button id="tool_align_bottom" title="tools.align_bottom" src="align_bottom.svg"></se-button>\n <se-button id="tool_align_distrib_horiz" title="tools.align_distrib_horiz" src="align_distrib_horiz.svg"></se-button>\n <se-button id="tool_align_distrib_verti" title="tools.align_distrib_verti" src="align_distrib_verti.svg"></se-button>\n <se-select id="tool_align_relative" label="tools.relativeTo" options="tools.selected_objects,tools.largest_object,tools.smallest_object,tools.page" values="selected::largest::smallest::page">\n \n </se-select>\n </div> \x3c!-- multiselected_panel --\x3e\n <div class="rect_panel">\n <se-spin-input id="rect_width" data-attr="width" size="4" label="properties.w_label" title="properties.rect_width"></se-spin-input>\n <se-spin-input id="rect_height" data-attr="height" size="4" label="properties.h_label" title="properties.rect_height"></se-spin-input>\n <se-spin-input id="rect_rx" min="0" max="1000" step="1" size="3" title="properties.corner_radius" data-attr="Corner Radius" src="c_radius.svg"></se-spin-input>\n </div> \x3c!-- rect_panel --\x3e\n <div class="image_panel">\n <se-spin-input id="image_width" data-attr="width" size="4" type="text" label="properties.w_label" title="properties.image_width"></se-spin-input>\n <se-spin-input id="image_height" data-attr="height" size="4" type="text" label="properties.h_label" title="properties.image_height"></se-spin-input>\n </div>\n <div class="image_panel">\n <se-input id="image_url" data-attr="image_url" size="15" label="properties.image_url"></se-input>\n </div>\n <div class="circle_panel">\n <se-spin-input id="circle_cx" data-attr="cx" size="4" label="properties.cx_label"></se-spin-input>\n <se-spin-input id="circle_cy" data-attr="cy" size="4" label="properties.cy_label"></se-spin-input>\n </div>\n <div class="circle_panel">\n <se-spin-input id="circle_r" data-attr="r" size="4" label="properties.r_label"></se-spin-input>\n </div>\n <div class="ellipse_panel">\n <se-spin-input id="ellipse_cx" data-attr="cx" size="4" title="properties.ellipse_cx" label="properties.cx_label"></se-spin-input>\n <se-spin-input id="ellipse_cy" data-attr="cy" size="4" title="properties.ellipse_cy" label="properties.cy_label"></se-spin-input>\n </div>\n <div class="ellipse_panel">\n <se-spin-input id="ellipse_rx" data-attr="rx" size="4" title="properties.ellipse_rx" label="properties.rx_label"></se-spin-input>\n <se-spin-input id="ellipse_ry" data-attr="ry" size="4" title="properties.ellipse_ry" label="properties.ry_label"></se-spin-input>\n </div>\n <div class="line_panel">\n <se-spin-input id="line_x1" data-attr="x1" size="4" title="properties.line_x1" label="properties.x1_label">\n </se-spin-input>\n <se-spin-input id="line_y1" data-attr="y1" size="4" title="properties.line_y1" label="properties.y1_label">\n </se-spin-input>\n <se-spin-input id="line_x2" data-attr="x2" size="4" title="properties.line_x2" label="properties.x2_label">\n </se-spin-input>\n <se-spin-input id="line_y2" data-attr="y2" size="4" title="properties.line_y2" label="properties.y2_label">\n </se-spin-input>\n </div>\n <div class="text_panel">\n \x3c!-- Text styles --\x3e\n <se-button id="tool_bold" title="properties.bold" src="bold.svg" shortcut="B"></se-button>\n <se-button id="tool_italic" title="properties.italic" src="italic.svg" shortcut="I"></se-button>\n <se-button id="tool_text_decoration_underline" title="properties.text_decoration_underline" src="text_decoration_underline.svg"></se-button>\n <se-button id="tool_text_decoration_linethrough" title="properties.text_decoration_linethrough" src="text_decoration_linethrough.svg"></se-button>\n <se-button id="tool_text_decoration_overline" title="properties.text_decoration_overline" src="text_decoration_overline.svg"></se-button>\n\n \x3c!-- Font Size--\x3e\n <se-select id="tool_font_family" label="properties.font_family_label" options="properties.serif,properties.sans_serif,properties.cursive,properties.fantasy,properties.monospace,properties.courier,properties.helvetica,properties.times" values="Serif::Sans-serif::Cursive::Fantasy::Monospace::Courier::Helvetica::Times"></se-select>\n <se-spin-input size="2" id="font_size" min="1" max="1000" step="1" title="properties.font_size" src="fontsize.svg"></se-spin-input>\n\n \x3c!-- Text Anchor --\x3e\n <se-list id="tool_text_anchor" label="" width="22px" height="22px">\n <se-list-item id="tool_text_anchor_start" value="start" title="properties.text_anchor_start" src="anchor_start.svg" img-height="25px"></se-list-item>\n <se-list-item id="tool_text_anchor_middle" value="middle" title="properties.text_anchor_middle" src="anchor_middle.svg" img-height="25px"></se-list-item>\n <se-list-item id="tool_text_anchor_end" value="end" title="properties.text_anchor_end" src="anchor_end.svg" img-height="25px"></se-list-item>\n </se-list>\n\n \x3c!-- Letter Spacing --\x3e\n <se-spin-input size="2" id="tool_letter_spacing" min="0" max="100" step="1" title="properties.text_letter_spacing" src="letter_spacing.svg"></se-spin-input>\n\n \x3c!-- Word Spacing --\x3e\n <se-spin-input size="2" id="tool_word_spacing" min="0" max="1000" step="1" title="properties.text_word_spacing" src="word_spacing.svg"></se-spin-input>\n\n \x3c!-- Text Length --\x3e\n <se-spin-input size="2" id="tool_text_length" min="0" max="1000" step="1" title="properties.text_length" src="text_length.svg"></se-spin-input>\n\n \x3c!-- Length Adjust --\x3e\n <se-select id="tool_length_adjust" label="properties.text_length_adjust" options="properties.text_length_adjust_spacing,properties.text_length_adjust_spacing_and_glyphs" values="spacing::spacingAndGlyphs"></se-select>\n </div>\n \x3c!-- Not visible, but still used --\x3e\n <input id="text" type="text" size="35">\n <div class="container_panel">\n <div class="tool_sep"></div>\n <se-input id="g_title" data-attr="title" size="8" label="properties.label"></se-input>\n </div> \x3c!-- container_panel --\x3e\n <div class="use_panel">\n <se-button id="tool_unlink_use" title="tools.tool_unlink_use" src="unlink_use.svg"></se-button>\n </div> \x3c!-- use_panel --\x3e\n <div class="g_panel">\n <se-button id="tool_ungroup" title="tools.ungroup" src="ungroup.svg"></se-button>\n </div> \x3c!-- g_panel --\x3e\n \x3c!-- For anchor elements --\x3e\n <div class="a_panel">\n <label id="tool_link_url">\n <span id="linkLabel" class="icon_label"></span>\n <input id="link_url" type="text" size="35">\n </label>\n </div> \x3c!-- a_panel --\x3e\n <div class="path_node_panel">\n <div class="tool_sep"></div>\n <se-button id="tool_node_link" title="tools.node_link" src="tool_node_link.svg" pressed></se-button>\n <div class="tool_sep"></div>\n <se-spin-input id="path_node_x" data-attr="x" size="4" title="properties.node_x" label="properties.x_label">\n </se-spin-input>\n <se-spin-input id="path_node_y" data-attr="y" size="4" title="properties.node_y" label="properties.y_label">\n </se-spin-input>\n <se-select id="seg_type" title="properties.seg_type" label="" options="properties.straight_segments,properties.curve_segments" values="4::6"></se-select>\n <se-button id="tool_node_clone" title="tools.node_clone" src="tool_node_clone.svg"></se-button>\n <se-button id="tool_node_delete" title="tools.node_delete" src="tool_node_delete.svg"></se-button>\n <se-button id="tool_openclose_path" title="tools.openclose_path" src="tool_openclose_path.svg"></se-button>\n <se-button id="tool_add_subpath" title="tools.add_subpath" src="tool_add_subpath.svg"></se-button>\n </div> \x3c!-- path_node_panel --\x3e\n <div id="cur_context_panel"></div>\n</div>\n',this.editor.$svgEditor.append(en.content.cloneNode(!0));const nn=document.createElement("se-svg-source-editor-dialog");nn.setAttribute("id","se-svg-editor-dialog"),this.editor.$container.append(nn),this.updateTitle(),nn.init(tn),LS("tool_link_url").setAttribute("title",tn.t("tools.set_link_url")),PS(LS("tool_source"),this.showSourceEditor.bind(this)),PS(LS("tool_wireframe"),this.clickWireframe.bind(this)),PS(LS("tool_undo"),this.clickUndo.bind(this)),PS(LS("tool_redo"),this.clickRedo.bind(this)),PS(LS("tool_clone"),this.clickClone.bind(this)),PS(LS("tool_clone_multi"),this.clickClone.bind(this)),PS(LS("tool_delete"),this.deleteSelected.bind(this)),PS(LS("tool_delete_multi"),this.deleteSelected.bind(this)),PS(LS("tool_move_top"),this.moveToTopSelected.bind(this)),PS(LS("tool_move_bottom"),this.moveToBottomSelected.bind(this)),PS(LS("tool_topath"),this.convertToPath.bind(this)),PS(LS("tool_make_link"),this.makeHyperlink.bind(this)),PS(LS("tool_make_link_multi"),this.makeHyperlink.bind(this)),PS(LS("tool_reorient"),this.reorientPath.bind(this)),PS(LS("tool_group_elements"),this.clickGroup.bind(this)),LS("tool_position").addEventListener("change",(en=>this.clickAlignEle.bind(this)(en))),PS(LS("tool_align_left"),(()=>this.clickAlign.bind(this)("left"))),PS(LS("tool_align_right"),(()=>this.clickAlign.bind(this)("right"))),PS(LS("tool_align_center"),(()=>this.clickAlign.bind(this)("center"))),PS(LS("tool_align_top"),(()=>this.clickAlign.bind(this)("top"))),PS(LS("tool_align_bottom"),(()=>this.clickAlign.bind(this)("bottom"))),PS(LS("tool_align_middle"),(()=>this.clickAlign.bind(this)("middle"))),PS(LS("tool_align_distrib_horiz"),(()=>this.clickAlign.bind(this)("distrib_horiz"))),PS(LS("tool_align_distrib_verti"),(()=>this.clickAlign.bind(this)("distrib_verti"))),PS(LS("tool_node_clone"),this.clonePathNode.bind(this)),PS(LS("tool_node_delete"),this.deletePathNode.bind(this)),PS(LS("tool_openclose_path"),this.opencloseSubPath.bind(this)),PS(LS("tool_add_subpath"),this.addSubPath.bind(this)),PS(LS("tool_node_link"),this.linkControlPoints.bind(this)),LS("angle").addEventListener("change",this.changeRotationAngle.bind(this)),LS("blur").addEventListener("change",this.changeBlur.bind(this)),LS("rect_rx").addEventListener("change",this.changeRectRadius.bind(this)),LS("font_size").addEventListener("change",this.changeFontSize.bind(this)),PS(LS("tool_ungroup"),this.clickGroup.bind(this)),PS(LS("tool_bold"),this.clickBold.bind(this)),PS(LS("tool_italic"),this.clickItalic.bind(this)),PS(LS("tool_text_decoration_underline"),(()=>this.clickTextDecoration.bind(this)("underline"))),PS(LS("tool_text_decoration_linethrough"),(()=>this.clickTextDecoration.bind(this)("line-through"))),PS(LS("tool_text_decoration_overline"),(()=>this.clickTextDecoration.bind(this)("overline"))),LS("tool_text_anchor").addEventListener("change",(en=>this.clickTextAnchor.bind(this)(en))),LS("tool_letter_spacing").addEventListener("change",this.changeLetterSpacing.bind(this)),LS("tool_word_spacing").addEventListener("change",this.changeWordSpacing.bind(this)),LS("tool_text_length").addEventListener("change",this.changeTextLength.bind(this)),LS("tool_length_adjust").addEventListener("change",(en=>this.changeLengthAdjust.bind(this)(en))),PS(LS("tool_unlink_use"),this.clickGroup.bind(this)),LS("image_url").addEventListener("change",(en=>{this.setImageURL(en.currentTarget.value)})),["elem_id","elem_class","circle_cx","circle_cy","circle_r","ellipse_cx","ellipse_cy","ellipse_rx","ellipse_ry","selected_x","selected_y","rect_width","rect_height","line_x1","line_x2","line_y1","line_y2","image_width","image_height","path_node_x","path_node_y"].forEach((en=>LS(en).addEventListener("change",this.attrChanger.bind(this))))}}const{$id:NS}=SvgCanvas;class BottomPanel{constructor(en){this.editor=en}get selectedElement(){return this.editor.selectedElement}get multiselected(){return this.editor.multiselected}changeStrokeWidth(en){let tn=en.target.value;0===tn&&this.editor.selectedElement&&["line","polyline"].includes(this.editor.selectedElement.nodeName)&&(tn=1),this.editor.svgCanvas.setStrokeWidth(tn)}changeZoom(en){switch(en){case"canvas":case"selection":case"layer":case"content":this.editor.zoomChanged(window,en);break;default:{const tn=Number(en)>.1?.01*Number(en):.1,nn=this.editor.svgCanvas.getZoom(),{workarea:rn}=this.editor;this.editor.zoomChanged(window,{width:0,height:0,x:(rn.scrollLeft+parseFloat(getComputedStyle(rn,null).width.replace("px",""))/2)/nn,y:(rn.scrollTop+parseFloat(getComputedStyle(rn,null).height.replace("px",""))/2)/nn,zoom:tn},!0)}}}updateToolButtonState(){const en="none"===this.editor.svgCanvas.getColor("fill"),tn="none"===this.editor.svgCanvas.getColor("stroke"),nn=["tool_fhpath","tool_line"],rn=["tools_rect","tools_ellipse","tool_text","tool_path"];tn?nn.forEach((en=>{NS(en).pressed&&this.editor.leftPanel.clickSelect(),NS(en).disabled=!0})):nn.forEach((en=>{NS(en).disabled=!1})),tn&&en?rn.forEach((en=>{NS(en).pressed&&this.editor.leftPanel.clickSelect(),NS(en).disabled=!0})):rn.forEach((en=>{NS(en).disabled=!1})),this.editor.svgCanvas.runExtensions("toolButtonStateUpdate",{nofill:en,nostroke:tn})}handleColorPicker(en,tn){const{paint:nn}=tn.detail;this.editor.svgCanvas.setPaint(en,nn),this.updateToolButtonState()}handleStrokeAttr(en,tn){this.editor.svgCanvas.setStrokeAttr(en,tn.detail.value)}handleOpacity(en){const tn=Number.parseInt(en.currentTarget.value.split("%")[0]);this.editor.svgCanvas.setOpacity(tn/100)}handlePalette(en){en.preventDefault();const{picker:tn,color:nn}=en.detail,rn="none"===nn?new VC.Paint:new VC.Paint({alpha:100,solidColor:nn.substr(1)});"fill"===tn?NS("fill_color").setPaint(rn):NS("stroke_color").setPaint(rn),this.editor.svgCanvas.setColor(tn,nn),"none"!==nn&&1!==this.editor.svgCanvas.getPaintOpacity(tn)&&this.editor.svgCanvas.setPaintOpacity(tn,1),this.updateToolButtonState()}init(){const en=document.createElement("template"),{i18next:tn}=this.editor;en.innerHTML='<div id="tools_bottom">\n \x3c!-- Zoom buttons --\x3e\n <se-zoom id="zoom" src="zoom.svg" title="Change zoom level" inputsize="40px">\n <se-text value="1000" text="1000%"></se-text>\n <se-text value="400" text="400%"></se-text>\n <se-text value="200" text="200%"></se-text>\n <se-text value="100" text="100%"></se-text>\n <se-text value="50" text="50%"></se-text>\n <se-text value="25" text="25%"></se-text>\n <se-text value="canvas" text="tools.fit_to_canvas"></se-text>\n <se-text value="selection" text="tools.fit_to_sel"></se-text>\n <se-text value="layer" text="tools.fit_to_layer_content"></se-text>\n <se-text value="content" text="tools.fit_to_all"></se-text>\n </se-zoom>\n <se-colorpicker id="fill_color" src="fill.svg" label="properties.fill_color" type="fill"></se-colorpicker>\n <se-colorpicker id="stroke_color" src="stroke.svg" label="properties.stroke_color" type="stroke"></se-colorpicker>\n <se-spin-input id="stroke_width" min="0" max="99" step="1" title="properties.stroke_width" label=""></se-spin-input>\n <se-select id="stroke_style" title="properties.stroke_style" label="" width="22px" height="22px" options="&#8212;,...,- -,- .,- .." values="none::2,2::5,5::5,2,2,2::5,2,2,2,2,2"> \n </se-select>\n <se-list id="stroke_linejoin" title="properties.linejoin_miter" label="" width="22px" height="22px">\n <se-list-item id="linejoin_miter" value="miter" src="linejoin_miter.svg" title="properties.linejoin_miter" img-height="22px"></se-list-item>\n <se-list-item id="linejoin_round" value="round" src="linejoin_round.svg" title="properties.linejoin_round" img-height="22px"></se-list-item>\n <se-list-item id="linejoin_bevel" value="bevel" src="linejoin_bevel.svg" title="properties.linejoin_bevel" img-height="22px"></se-list-item>\n </se-list>\n <se-list id="stroke_linecap" title="properties.linecap_butt" label="" width="22px" height="22px">\n <se-list-item id="linecap_butt" value="butt" src="linecap_butt.svg" title="properties.linecap_butt" img-height="22px"></se-list-item>\n <se-list-item id="linecap_square" value="square" src="linecap_square.svg" title="properties.linecap_square" img-height="22px"></se-list-item>\n <se-list-item id="linecap_round" value="round" src="linecap_round.svg" title="properties.linecap_round" img-height="22px"></se-list-item>\n </se-list>\n <se-spin-input size="3" id="opacity" min="0" max="100" step="5" title="properties.opacity" src="opacity.svg"></se-spin-input>\n <se-palette id="palette"></se-palette>\n </div>',this.editor.$svgEditor.append(en.content.cloneNode(!0)),NS("palette").addEventListener("change",this.handlePalette.bind(this)),NS("palette").init(tn);const{curConfig:nn}=this.editor.configObj;NS("fill_color").setPaint(new VC.Paint({alpha:100,solidColor:nn.initFill.color})),NS("stroke_color").setPaint(new VC.Paint({alpha:100,solidColor:nn.initStroke.color})),NS("zoom").addEventListener("change",(en=>this.changeZoom.bind(this)(en.detail.value))),NS("stroke_color").addEventListener("change",(en=>this.handleColorPicker.bind(this)("stroke",en))),NS("fill_color").addEventListener("change",(en=>this.handleColorPicker.bind(this)("fill",en))),NS("stroke_width").addEventListener("change",this.changeStrokeWidth.bind(this)),NS("stroke_style").addEventListener("change",(en=>this.handleStrokeAttr.bind(this)("stroke-dasharray",en))),NS("stroke_linejoin").addEventListener("change",(en=>this.handleStrokeAttr.bind(this)("stroke-linejoin",en))),NS("stroke_linecap").addEventListener("change",(en=>this.handleStrokeAttr.bind(this)("stroke-linecap",en))),NS("opacity").addEventListener("change",this.handleOpacity.bind(this)),NS("fill_color").init(tn),NS("stroke_color").init(tn)}updateColorpickers(en){NS("fill_color").update(this.editor.svgCanvas,this.editor.selectedElement,en),NS("stroke_color").update(this.editor.svgCanvas,this.editor.selectedElement,en)}}const{$id:IS,$click:MS}=SvgCanvas;class LayersPanel{constructor(en){this.updateContextPanel=en.topPanel.updateContextPanel.bind(en.topPanel),this.editor=en}lmenuFunc(en){var tn;switch(null==en||null===(tn=en.detail)||void 0===tn?void 0:tn.trigger){case"dupe":this.cloneLayer();break;case"delete":this.deleteLayer();break;case"merge_down":this.mergeLayer();break;case"merge_all":this.editor.svgCanvas.mergeAllLayers(),this.updateContextPanel(),this.populateLayers()}}init(){const en=document.createElement("template"),{i18next:tn}=this.editor;en.innerHTML='<div id="sidepanels">\n <se-text id="sidepanel_handle" title="ui.panel_action" text="ui.panel"></se-text>\n <div id="sidepanel_content">\n <div id="layerpanel">\n <se-text id="layersLabel" text="layers.layers"></se-text>\n <fieldset id="layerbuttons">\n <se-button id="layer_new" title="layers.new" size="small" src="new.svg"></se-button>\n <se-button id="layer_delete" title="layers.del" size="small" src="delete.svg"></se-button>\n <se-button id="layer_rename" title="layers.rename" size="small" src="text.svg"></se-button>\n <se-button id="layer_up" title="layers.move_up" size="small" src="go_up.svg"></se-button>\n <se-button id="layer_down" title="layers.move_down" size="small" src="go_down.svg"></se-button>\n <se-button id="layer_moreopts" title="common.more_opts" size="small" src="context_menu.svg">\n </se-button>\n </fieldset>\n <table id="layerlist">\n <tr class="layer">\n <td class="layervis"></td>\n <td class="layername">Layer 1</td>\n </tr>\n </table>\n <se-select id="selLayerNames" title="layers.move_selected" label="layers.move_elems_to" options="Layer 1" values="layer1" value="layer1" disabled="disabled">\n </se-select>\n </div>\n </div>\n</div>',this.editor.$svgEditor.append(en.content.cloneNode(!0));const nn=document.createElement("se-cmenu-layers");nn.setAttribute("id","se-cmenu-layers-more"),nn.value="layer_moreopts",nn.setAttribute("leftclick",!0),this.editor.$container.append(nn),nn.init(tn);const rn=document.createElement("se-cmenu-layers");rn.setAttribute("id","se-cmenu-layers-list"),rn.value="layerlist",rn.setAttribute("leftclick",!1),this.editor.$container.append(rn),rn.init(tn),MS(IS("layer_new"),this.newLayer.bind(this)),MS(IS("layer_delete"),this.deleteLayer.bind(this)),MS(IS("layer_up"),(()=>this.moveLayer.bind(this)(-1))),MS(IS("layer_down"),(()=>this.moveLayer.bind(this)(1))),MS(IS("layer_rename"),this.layerRename.bind(this)),IS("se-cmenu-layers-more").addEventListener("change",this.lmenuFunc.bind(this)),IS("se-cmenu-layers-list").addEventListener("change",(en=>{this.lmenuFunc(en)})),MS(IS("sidepanel_handle"),(()=>this.toggleSidePanel())),this.toggleSidePanel(this.editor.configObj.curConfig.showlayers)}toggleSidePanel(en){void 0===en?this.editor.$svgEditor.classList.toggle("open"):en?this.editor.$svgEditor.classList.add("open"):this.editor.$svgEditor.classList.remove("open")}newLayer(){let en,tn=this.editor.svgCanvas.getCurrentDrawing().getNumLayers();do{en=this.editor.i18next.t("layers.layer")+" "+ ++tn}while(this.editor.svgCanvas.getCurrentDrawing().hasLayer(en));const nn=prompt(this.editor.i18next.t("notification.enterUniqueLayerName"),en);nn&&(this.editor.svgCanvas.getCurrentDrawing().hasLayer(nn)?alert(this.editor.i18next.t("notification.dupeLayerName")):(this.editor.svgCanvas.createLayer(nn),this.updateContextPanel(),this.populateLayers()))}deleteLayer(){if(this.editor.svgCanvas.deleteCurrentLayer()){this.updateContextPanel(),this.populateLayers();const en=document.querySelectorAll("#layerlist tr.layer");Array.prototype.forEach.call(en,(function(en){en.classList.remove("layersel")})),document.querySelector("#layerlist tr.layer").classList.add("layersel")}}cloneLayer(){const en=this.editor.svgCanvas.getCurrentDrawing().getCurrentLayerName()+" copy",tn=prompt(this.editor.i18next.t("notification.enterUniqueLayerName"),en);tn&&(this.editor.svgCanvas.getCurrentDrawing().hasLayer(tn)?alert(this.editor.i18next.t("notification.dupeLayerName")):(this.editor.svgCanvas.cloneLayer(tn),this.updateContextPanel(),this.populateLayers()))}index(en){return en?Array.from(document.querySelector("#layerlist tbody").children).indexOf(en):-1}mergeLayer(){this.index(document.querySelector("#layerlist tr.layersel"))-1!=this.editor.svgCanvas.getCurrentDrawing().getNumLayers()-1&&(this.editor.svgCanvas.mergeLayer(),this.updateContextPanel(),this.populateLayers())}moveLayer(en){const tn=this.editor.svgCanvas.indexCurrentLayer();-1!==tn&&(this.editor.svgCanvas.setCurrentLayerPosition(tn-en),this.populateLayers())}layerRename(){const en=document.querySelector("#layerlist tr.layersel td.layername"),tn=en?en.textContent:"",nn=prompt(this.editor.i18next.t("notification.enterNewLayerName"),"");nn&&(tn===nn||this.editor.svgCanvas.getCurrentDrawing().hasLayer(nn)?alert(this.editor.i18next.t("notification.layerHasThatName")):(this.editor.svgCanvas.renameCurrentLayer(nn),this.populateLayers()))}toggleHighlightLayer(en){let tn;const nn=[],rn=this.editor.svgCanvas.getCurrentDrawing().getNumLayers();for(tn=0;tn<rn;tn++)nn[tn]=this.editor.svgCanvas.getCurrentDrawing().getLayerName(tn);en?nn.forEach((tn=>{tn!==en&&this.editor.svgCanvas.getCurrentDrawing().setLayerOpacity(tn,.5)})):nn.forEach((en=>{this.editor.svgCanvas.getCurrentDrawing().setLayerOpacity(en,1)}))}populateLayers(){this.editor.svgCanvas.clearSelection();const en=this,tn=IS("layerlist").querySelector("tbody");for(;tn.firstChild;)tn.removeChild(tn.firstChild);IS("selLayerNames").setAttribute("options","");const nn=this.editor.svgCanvas.getCurrentDrawing(),rn=nn.getCurrentLayerName();let an=this.editor.svgCanvas.getCurrentDrawing().getNumLayers(),sn="",cn="";for(;an--;){const en=nn.getLayerName(an),An=document.createElement("tr");An.className=en===rn?"layer layersel":"layer";const dn=document.createElement("td");dn.className=nn.getLayerVisibility(en)?"layervis":"layerinvis layervis";const un=document.createElement("td");un.className="layername",un.textContent=en,An.appendChild(dn),An.appendChild(un),tn.appendChild(An),sn=sn?sn+"::"+en:en,cn=cn?cn+","+en:en}IS("selLayerNames").setAttribute("options",cn),IS("selLayerNames").setAttribute("values",sn);const An=IS("layerlist").querySelectorAll("td.layername");Array.from(An).forEach((function(tn){tn.addEventListener("mouseup",(function(tn){const nn=IS("layerlist").querySelectorAll("tr.layer");Array.from(nn).forEach((function(en){en.classList.remove("layersel")})),tn.currentTarget.parentNode.classList.add("layersel"),en.editor.svgCanvas.setCurrentLayer(tn.currentTarget.textContent),tn.preventDefault()})),tn.addEventListener("mouseup",(tn=>{en.toggleHighlightLayer(tn.currentTarget.textContent)})),tn.addEventListener("mouseout",(tn=>{en.toggleHighlightLayer()}))}));const dn=IS("layerlist").querySelectorAll("td.layervis");Array.from(dn).forEach((function(tn){MS(tn,(function(tn){const nn=tn.currentTarget.parentNode.querySelector("td.layername"),rn=nn?nn.textContent:"",an=tn.currentTarget.classList.contains("layerinvis");en.editor.svgCanvas.setLayerVisibility(rn,an),tn.currentTarget.classList.toggle("layerinvis")}))}));let un=5-IS("layerlist").querySelectorAll("tr.layer").length;for(;un-- >0;){const en=document.createElement("tr");en.innerHTML='<td style="color:white">_</td><td/>',tn.append(en)}}}const{$id:RS,$click:OS,convertUnit:QS,isValidUnit:qS}=SvgCanvas;class MainMenu{constructor(en){this.editor=en,this.exportWindowCt=0}hideDocProperties(){const en=RS("se-img-prop");en.setAttribute("dialog","close"),en.setAttribute("save",this.editor.configObj.pref("img_save")),this.editor.docprops=!1}hidePreferences(){RS("se-edit-prefs").setAttribute("dialog","close"),this.editor.configObj.preferences=!1}saveDocProperties(en){const{title:tn,w:nn,h:rn,save:an}=en.detail;return this.editor.svgCanvas.setDocumentTitle(tn),("fit"===nn||qS("width",nn))&&("fit"===rn||qS("height",rn))?this.editor.svgCanvas.setResolution(nn,rn)?(this.editor.configObj.pref("img_save",an),this.editor.updateCanvas(),this.hideDocProperties(),!0):(seAlert(this.editor.i18next.t("notification.noContentToFitTo")),!1):(seAlert(this.editor.i18next.t("notification.invalidAttrValGiven")),!1)}async savePreferences(en){const{lang:tn,bgcolor:nn,bgurl:rn,gridsnappingon:an,gridsnappingstep:sn,gridcolor:cn,showrulers:An,baseunit:dn}=en.detail;this.editor.setBackground(nn,rn),tn&&tn!==this.editor.configObj.pref("lang")&&(this.editor.configObj.pref("lang",tn),seAlert("Changing the language needs reload")),this.editor.configObj.curConfig.gridSnapping=an,this.editor.configObj.curConfig.snappingStep=sn,this.editor.configObj.curConfig.gridColor=cn,this.editor.configObj.curConfig.showRulers=An,this.editor.configObj.curConfig.showRulers&&this.editor.rulers.updateRulers(),this.editor.configObj.curConfig.baseUnit=dn,this.editor.svgCanvas.setConfig(this.editor.configObj.curConfig),this.editor.updateCanvas(),this.hidePreferences()}async clickExport(en){var tn,nn,rn,an,sn;if("ok"!==(null==en||null===(tn=en.detail)||void 0===tn?void 0:tn.trigger)||void 0===(null==en||null===(nn=en.detail)||void 0===nn?void 0:nn.imgType))return;const cn=null==en||null===(rn=en.detail)||void 0===rn?void 0:rn.imgType,An=null!=en&&null!==(an=en.detail)&&void 0!==an&&an.quality?(null==en||null===(sn=en.detail)||void 0===sn?void 0:sn.quality)/100:1;const openExportWindow=()=>{const en=this.editor.i18next.t("notification.loadingImage");let tn,nn;if("new"===this.editor.configObj.curConfig.exportWindowType&&this.editor.exportWindowCt++,this.editor.exportWindowName=this.editor.configObj.curConfig.canvasName+this.editor.exportWindowCt,this.editor.loadingURL)nn=this.editor.loadingURL;else{var rn;if(tn='<!DOCTYPE html><html>\n <head>\n <meta charset="utf-8">\n <title>'.concat(en,"</title>\n </head>\n <body><h1>").concat(en,"</h1></body>\n <html>"),null!==(rn=URL)&&void 0!==rn&&rn.createObjectURL){const en=new Blob([tn],{type:"text/html"});nn=URL.createObjectURL(en)}else nn="data:text/html;base64;charset=utf-8,"+tn;this.editor.loadingURL=nn}this.editor.exportWindow=window.open(nn,this.editor.exportWindowName)},dn=mS;"PDF"===cn?(this.editor.customExportPDF||dn||openExportWindow(),this.editor.svgCanvas.exportPDF(undefined)):(this.editor.customExportImage||openExportWindow(),await this.editor.svgCanvas.rasterExport(cn,An,this.editor.exportWindowName))}showDocProperties(){if(this.editor.docprops)return;this.editor.docprops=!0;const en=RS("se-img-prop"),tn=this.editor.svgCanvas.getResolution();"px"!==this.editor.configObj.curConfig.baseUnit&&(tn.w=QS(tn.w)+this.editor.configObj.curConfig.baseUnit,tn.h=QS(tn.h)+this.editor.configObj.curConfig.baseUnit),en.setAttribute("save",this.editor.configObj.pref("img_save")),en.setAttribute("width",tn.w),en.setAttribute("height",tn.h),en.setAttribute("title",this.editor.svgCanvas.getDocumentTitle()),en.setAttribute("dialog","open")}showPreferences(){if(this.editor.configObj.preferences)return;this.editor.configObj.preferences=!0;const en=RS("se-edit-prefs"),tn=this.editor.configObj.curPrefs.bkgd_color,nn=this.editor.configObj.pref("bkgd_url");nn&&en.setAttribute("bgurl",nn),en.setAttribute("gridsnappingon",this.editor.configObj.curConfig.gridSnapping),en.setAttribute("gridsnappingstep",this.editor.configObj.curConfig.snappingStep),en.setAttribute("gridcolor",this.editor.configObj.curConfig.gridColor),en.setAttribute("canvasbg",tn),en.setAttribute("dialog","open")}openHomePage(){window.open("https://github.com/SVG-Edit/svgedit","_blank")}init(){const en=document.createElement("template");en.innerHTML='\n <se-menu id="main_button" label="SVG-Edit" src="logo.svg" alt="logo">\n <se-menu-item id="tool_export" label="tools.export_img" src="export.svg"></se-menu-item>\n <se-menu-item id="tool_docprops" label="tools.docprops" shortcut="D" src="docprop.svg"></se-menu-item>\n <se-menu-item id="tool_editor_prefs" label="config.editor_prefs" src="editPref.svg"></se-menu-item>\n <se-menu-item id="tool_editor_homepage" label="tools.editor_homepage" src="logo.svg"></se-menu-item>\n </se-menu>',this.editor.$svgEditor.append(en.content.cloneNode(!0)),OS(RS("tool_export"),(function(){document.getElementById("se-export-dialog").setAttribute("dialog","open")})),RS("se-export-dialog").addEventListener("change",this.clickExport.bind(this)),RS("tool_docprops").addEventListener("click",this.showDocProperties.bind(this)),RS("tool_editor_prefs").addEventListener("click",this.showPreferences.bind(this)),RS("tool_editor_homepage").addEventListener("click",this.openHomePage.bind(this)),RS("se-img-prop").addEventListener("change",function(en){"closed"===en.detail.dialog?this.hideDocProperties():this.saveDocProperties(en)}.bind(this)),RS("se-edit-prefs").addEventListener("change",function(en){"closed"===en.detail.dialog?this.hidePreferences():this.savePreferences(en)}.bind(this))}}const{$id:VS,$click:GS,decode64:DS,blankPageObjectURL:HS}=SvgCanvas;class Editor extends class EditorStartup{constructor(en){this.extensionsAdded=!1,this.messageQueue=[],this.$container=null!=en?en:wS("svg_editor")}async init(){"localStorage"in window&&(this.storage=window.localStorage),this.configObj.load();const{i18next:en}=await putLocale(this.configObj.pref("lang"),this.goodLangs);this.i18next=en,await Promise.resolve().then((function(){return $C})),await Promise.resolve().then((function(){return hS}));try{const en=document.createElement("template");en.innerHTML='<div class="svg_editor">\n <div id="workarea">\n <div id="svgcanvas"></div>\n </div>\n</div>',this.$container.append(en.content.cloneNode(!0)),this.$svgEditor=xS(".svg_editor"),this.$svgEditor.style.visibility="hidden",this.workarea=wS("workarea");const tn=document.createElement("se-img-prop-dialog");tn.setAttribute("id","se-img-prop"),this.$container.append(tn),tn.init(this.i18next);const nn=document.createElement("se-edit-prefs-dialog");nn.setAttribute("id","se-edit-prefs"),this.$container.append(nn),nn.init(this.i18next);const rn=document.createElement("se-cmenu_canvas-dialog");rn.setAttribute("id","se-cmenu_canvas"),this.$container.append(rn),rn.init(this.i18next);const an=document.createElement("se-alert-dialog");an.setAttribute("id","se-alert-dialog"),this.$container.append(an);const sn=document.createElement("se-prompt-dialog");sn.setAttribute("id","se-prompt-dialog"),this.$container.append(sn);const cn=document.createElement("se-export-dialog");cn.setAttribute("id","se-export-dialog"),this.$container.append(cn),cn.init(this.i18next)}catch(en){console.error(en)}this.svgCanvas=new SvgCanvas(wS("svgcanvas"),this.configObj.curConfig),this.leftPanel.init(),this.bottomPanel.init(),this.topPanel.init(),this.layersPanel.init(),this.mainMenu.init();const{undoMgr:tn}=this.svgCanvas;this.canvMenu=wS("se-cmenu_canvas"),this.exportWindow=null,this.defaultImageURL="".concat(this.configObj.curConfig.imgPath,"/logo.svg");this.uiContext="toolbars",(()=>{const en=window.opener||window.parent;if(en)try{const tn=new en.CustomEvent("svgEditorReady",{bubbles:!0,cancelable:!0});en.document.documentElement.dispatchEvent(tn)}catch(en){}})(),this.rulers=new Rulers(this),this.layersPanel.populateLayers(),this.selectedElement=null,this.multiselected=!1;const nn=wS("cur_context_panel");kS(nn,(en=>{const tn=en.target;return tn.hasAttribute("data-root")?this.svgCanvas.leaveContext():this.svgCanvas.setContext(tn.textContent),this.svgCanvas.clearSelection(),!1})),this.svgCanvas.bind("selected",this.selectedChanged.bind(this)),this.svgCanvas.bind("transition",this.elementTransition.bind(this)),this.svgCanvas.bind("changed",this.elementChanged.bind(this)),this.svgCanvas.bind("exported",this.exportHandler.bind(this)),this.svgCanvas.bind("exportedPDF",function(en,tn){if(!tn.output)return;const{exportWindowName:nn}=tn;nn&&(this.exportWindow=window.open("",this.exportWindowName)),this.exportWindow&&!this.exportWindow.closed?this.exportWindow.location.href=tn.output:seAlert(this.i18next.t("notification.popupWindowBlocked"))}.bind(this)),this.svgCanvas.bind("zoomed",this.zoomChanged.bind(this)),this.svgCanvas.bind("zoomDone",this.zoomDone.bind(this)),this.svgCanvas.bind("updateCanvas",function(en,tn){let{center:nn,newCtr:rn}=tn;this.updateCanvas(nn,rn)}.bind(this)),this.svgCanvas.bind("contextset",this.contextChanged.bind(this)),this.svgCanvas.bind("extension_added",this.extAdded.bind(this)),this.svgCanvas.bind("elementRenamed",this.elementRenamed.bind(this)),this.svgCanvas.bind("beforeClear",this.beforeClear.bind(this)),this.svgCanvas.bind("afterClear",this.afterClear.bind(this)),this.svgCanvas.textActions.setInputElem(wS("text")),this.setBackground(this.configObj.pref("bkgd_color"),this.configObj.pref("bkgd_url"));const rn=this.svgCanvas.getResolution();"px"!==this.configObj.curConfig.baseUnit&&(rn.w=CS(rn.w)+this.configObj.curConfig.baseUnit,rn.h=CS(rn.h)+this.configObj.curConfig.baseUnit),wS("se-img-prop").setAttribute("dialog","close"),wS("se-img-prop").setAttribute("title",this.svgCanvas.getDocumentTitle()),wS("se-img-prop").setAttribute("width",rn.w),wS("se-img-prop").setAttribute("height",rn.h),wS("se-img-prop").setAttribute("save",this.configObj.pref("img_save"));const an=document.querySelectorAll("select");Array.from(an).forEach((function(en){en.addEventListener("change",(function(en){en.currentTarget.blur()}))}));let sn=!1;wS("selLayerNames").addEventListener("change",(en=>{const tn=en.detail.value,nn=this.i18next.t("notification.QmoveElemsToLayer").replace("%s",tn),moveToLayer=en=>{en&&(sn=!0,this.svgCanvas.moveSelectedToLayer(tn),this.svgCanvas.clearSelection(),this.layersPanel.populateLayers())};if(tn)if(sn)moveToLayer(!0);else{if(!seConfirm(nn))return;moveToLayer(!0)}})),wS("tool_font_family").addEventListener("change",(en=>{this.svgCanvas.setFontFamily(en.detail.value)})),wS("seg_type").addEventListener("change",(en=>{this.svgCanvas.setSegType(en.detail.value)}));const addListenerMulti=(en,tn,nn)=>{tn.split(" ").forEach((tn=>en.addEventListener(tn,nn,!1)))};addListenerMulti(wS("text"),"keyup input",(en=>{this.svgCanvas.setTextContent(en.currentTarget.value)})),wS("link_url").addEventListener("change",(en=>{en.currentTarget.value.length?this.svgCanvas.setLinkURL(en.currentTarget.value):this.svgCanvas.removeHyperlink()})),wS("g_title").addEventListener("change",(en=>{this.svgCanvas.setGroupTitle(en.currentTarget.value)}));let cn,An=null,dn=null,un=!1,pn=!1;wS("svgcanvas").addEventListener("mouseup",(en=>!1===un||(this.workarea.scrollLeft-=en.clientX-An,this.workarea.scrollTop-=en.clientY-dn,An=en.clientX,dn=en.clientY,"mouseup"===en.type&&(un=!1),!1))),wS("svgcanvas").addEventListener("mousemove",(en=>!1===un||(this.workarea.scrollLeft-=en.clientX-An,this.workarea.scrollTop-=en.clientY-dn,An=en.clientX,dn=en.clientY,"mouseup"===en.type&&(un=!1),!1))),wS("svgcanvas").addEventListener("mousedown",(en=>1!==en.button&&!0!==pn||(un=!0,An=en.clientX,dn=en.clientY,!1))),window.addEventListener("mouseup",(()=>{un=!1})),document.addEventListener("keydown",(en=>{"BODY"===en.target.nodeName&&("space"===en.code.toLowerCase()?(this.svgCanvas.spaceKey=pn=!0,en.preventDefault()):"shift"===en.key.toLowerCase()&&"zoom"===this.svgCanvas.getMode()&&(this.workarea.style.cursor="crosshair",en.preventDefault()))})),document.addEventListener("keyup",(en=>{"BODY"===en.target.nodeName&&("space"===en.code.toLowerCase()?(this.svgCanvas.spaceKey=pn=!1,en.preventDefault()):"shift"===en.key.toLowerCase()&&"zoom"===this.svgCanvas.getMode()&&(this.workarea.style.cursor="crosshair",en.preventDefault()))})),this.setPanning=en=>{this.svgCanvas.spaceKey=pn=en};const unfocus=()=>{cn.blur()},hn=this.$svgEditor.querySelectorAll("button, select, input:not(#text)"),gn=this;Array.prototype.forEach.call(hn,(function(en){en.addEventListener("focus",(en=>{cn=en.currentTarget,gn.uiContext="toolbars",gn.workarea.addEventListener("mousedown",unfocus)})),en.addEventListener("blur",(()=>{gn.uiContext="canvas",gn.workarea.removeEventListener("mousedown",unfocus),"textedit"===gn.svgCanvas.getMode()&&wS("text").focus()}))}));const _n={width:function getWidth(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.documentElement.clientWidth)}(),height:function getHeight(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight)}()};window.addEventListener("resize",(()=>{Object.entries(_n).forEach((en=>{let[tn,nn]=en;const rn="width"===tn?window.innerWidth-15:window.innerHeight;this.workarea["scroll"+("width"===tn?"Left":"Top")]-=(rn-nn)/2,_n[tn]=rn}))})),this.workarea.addEventListener("scroll",(()=>{this.rulers.manageScroll()})),wS("stroke_width").value=this.configObj.curConfig.initStroke.width,wS("opacity").value=100*this.configObj.curConfig.initOpacity;const mn=document.getElementsByClassName("push_button");Array.from(mn).forEach((function(en){en.addEventListener("mousedown",(function(en){en.currentTarget.classList.contains("disabled")||(en.currentTarget.classList.add("push_button_pressed"),en.currentTarget.classList.remove("push_button"))})),en.addEventListener("mouseout",(function(en){en.currentTarget.classList.add("push_button"),en.currentTarget.classList.remove("push_button_pressed")})),en.addEventListener("mouseup",(function(en){en.currentTarget.classList.add("push_button"),en.currentTarget.classList.remove("push_button_pressed")}))})),this.layersPanel.populateLayers();addListenerMulti(window,"load resize",(()=>{this.workarea.style.lineHeight=this.workarea.style.height}));const fn=document.querySelectorAll("input");Array.from(fn).forEach((function(en){en.setAttribute("autocomplete","off")}));const yn=document.querySelectorAll("select");Array.from(yn).forEach((function(en){en.setAttribute("autocomplete","off")})),wS("se-svg-editor-dialog").addEventListener("change",function(en){var tn,nn,rn;"click"===(null==en||null===(tn=en.detail)||void 0===tn?void 0:tn.copy)?this.cancelOverlays(en):"dynamic"===(null==en||null===(nn=en.detail)||void 0===nn?void 0:nn.dialog)?this.toggleDynamicOutput(en):"closed"===(null==en||null===(rn=en.detail)||void 0===rn?void 0:rn.dialog)?this.hideSourceEditor():this.saveSourceEditor(en)}.bind(this)),wS("se-cmenu_canvas").addEventListener("change",function(en){var tn;const nn=null==en||null===(tn=en.detail)||void 0===tn?void 0:tn.trigger;switch(nn){case"delete":this.svgCanvas.deleteSelectedElements();break;case"cut":this.cutSelected();break;case"copy":this.copySelected();break;case"paste":this.svgCanvas.pasteElements();break;case"paste_in_place":this.svgCanvas.pasteElements("in_place");break;case"group":case"group_elements":this.svgCanvas.groupSelectedElements();break;case"ungroup":this.svgCanvas.ungroupSelectedElement();break;case"move_front":this.svgCanvas.moveToTopSelectedElement();break;case"move_up":this.moveUpDownSelected("Up");break;case"move_down":this.moveUpDownSelected("Down");break;case"move_back":this.svgCanvas.moveToBottomSelectedElement();break;default:Boolean(yS[nn])&&function(en){return yS[en].action}(nn).call()}}.bind(this)),this.ready(function(){const en=wS("tool_".concat(this.configObj.curConfig.initTool)),tn=wS(this.configObj.curConfig.initTool),nn=wS("tool_select"),rn=wS("se-edit-prefs");en?en.click():tn?tn.click():nn.click(),this.configObj.curConfig.wireframe&&wS("tool_wireframe").click(),this.configObj.curConfig.showRulers?this.rulers.display(!0):this.rulers.display(!1),this.configObj.curConfig.showRulers&&rn.setAttribute("showrulers",!0),this.configObj.curConfig.baseUnit&&rn.setAttribute("baseunit",this.configObj.curConfig.baseUnit),this.configObj.curConfig.gridSnapping&&rn.setAttribute("gridsnappingon",!0),this.configObj.curConfig.snappingStep&&rn.setAttribute("gridsnappingstep",this.configObj.curConfig.snappingStep),this.configObj.curConfig.gridColor&&rn.setAttribute("gridcolor",this.configObj.curConfig.gridColor),this.configObj.curConfig.dynamicOutput&&rn.setAttribute("dynamicoutput",!0)}.bind(this)),wS("zoom").value=(100*this.svgCanvas.getZoom()).toFixed(1),this.canvMenu.setAttribute("disableallmenu",!0),this.canvMenu.setAttribute("enablemenuitems","#delete,#cut,#copy"),this.enableOrDisableClipboard(),window.addEventListener("storage",function(en){"svgedit_clipboard"===en.key&&this.enableOrDisableClipboard()}.bind(this)),window.addEventListener("beforeunload",function(en){return 0===tn.getUndoStackSize()&&(this.showSaveWarning=!1),!(!this.configObj.curConfig.no_save_warning&&this.showSaveWarning)||(en.returnValue=this.i18next.t("notification.unsavedChanges"),this.i18next.t("notification.unsavedChanges"))}.bind(this)),this.workarea.addEventListener("dragenter",this.onDragEnter),this.workarea.addEventListener("dragover",this.onDragOver),this.workarea.addEventListener("dragleave",this.onDragLeave),this.updateCanvas(!0),this.extAndLocaleFunc(),this.ready((()=>{injectExtendedContextMenuItemsIntoDom()})),await this.runCallbacks()}async extAndLocaleFunc(){this.$svgEditor.style.visibility="visible";try{await Promise.all(this.configObj.curConfig.extensions.map((async en=>{try{const tn=this.configObj.curConfig.extPath,nn=await import("".concat(tn,"/").concat(encodeURIComponent(en),"/").concat(encodeURIComponent(en),".js")),{name:rn=en,init:an}=nn.default;return this.addExtension(rn,an&&an.bind(this),{langParam:"en"})}catch(tn){return void console.error("Extension failed to load: "+en+"; ",tn)}}))),await Promise.all(this.configObj.curConfig.userExtensions.map((async en=>{let{pathName:tn,config:nn}=en;try{const en=await import(encodeURI(tn)),{name:rn,init:an}=en.default;return this.addExtension(rn,an&&an.bind(this,nn),{})}catch(en){return void console.error("Extension failed to load: "+tn+"; ",en)}}))),this.svgCanvas.bind("extensions_added",((en,tn)=>{this.extensionsAdded=!0,this.setAll(),"ignore"===this.storagePromptState&&this.updateCanvas(!0),this.messageQueue.forEach((en=>{this.svgCanvas.call("message",en)}))})),this.svgCanvas.call("extensions_added")}catch(en){console.error(en)}}}{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null),this.langChanged=!1,this.showSaveWarning=!1,this.storagePromptState="ignore",this.title="untitled.svg",this.svgCanvas=null,this.$click=GS,this.isReady=!1,this.customExportImage=!1,this.customExportPDF=!1,this.configObj=new ConfigObj(this),this.configObj.pref=this.configObj.pref.bind(this.configObj),this.setConfig=this.configObj.setConfig.bind(this.configObj),this.callbacks=[],this.curContext=null,this.exportWindowName=null,this.docprops=!1,this.configObj.preferences=!1,this.canvMenu=null,this.goodLangs=["ar","cs","de","en","es","fa","fr","fy","hi","it","ja","nl","pl","pt-BR","ro","ru","sk","sl","tr","zh-CN","zh-TW"];const en=fS?"meta+":"ctrl+";this.shortcuts=[{key:"ctrl+arrowleft",fn:()=>{this.rotateSelected(0,1)}},{key:"ctrl+arrowright",fn:()=>{this.rotateSelected(1,1)}},{key:"ctrl+shift+arrowleft",fn:()=>{this.rotateSelected(0,5)}},{key:"ctrl+shift+arrowright",fn:()=>{this.rotateSelected(1,5)}},{key:"shift+o",fn:()=>{this.svgCanvas.cycleElement(0)}},{key:"shift+p",fn:()=>{this.svgCanvas.cycleElement(1)}},{key:"tab",fn:()=>{this.svgCanvas.cycleElement(0)}},{key:"shift+tab",fn:()=>{this.svgCanvas.cycleElement(1)}},{key:[en+"arrowup",!0],fn:()=>{this.zoomImage(2)}},{key:[en+"arrowdown",!0],fn:()=>{this.zoomImage(.5)}},{key:[en+"]",!0],fn:()=>{this.moveUpDownSelected("Up")}},{key:[en+"[",!0],fn:()=>{this.moveUpDownSelected("Down")}},{key:["arrowup",!0],fn:()=>{this.moveSelected(0,-1)}},{key:["arrowdown",!0],fn:()=>{this.moveSelected(0,1)}},{key:["arrowleft",!0],fn:()=>{this.moveSelected(-1,0)}},{key:["arrowright",!0],fn:()=>{this.moveSelected(1,0)}},{key:"shift+arrowup",fn:()=>{this.moveSelected(0,-10)}},{key:"shift+arrowdown",fn:()=>{this.moveSelected(0,10)}},{key:"shift+arrowleft",fn:()=>{this.moveSelected(-10,0)}},{key:"shift+arrowright",fn:()=>{this.moveSelected(10,0)}},{key:["alt+arrowup",!0],fn:()=>{this.svgCanvas.cloneSelectedElements(0,-1)}},{key:["alt+arrowdown",!0],fn:()=>{this.svgCanvas.cloneSelectedElements(0,1)}},{key:["alt+arrowleft",!0],fn:()=>{this.svgCanvas.cloneSelectedElements(-1,0)}},{key:["alt+arrowright",!0],fn:()=>{this.svgCanvas.cloneSelectedElements(1,0)}},{key:["alt+shift+arrowup",!0],fn:()=>{this.svgCanvas.cloneSelectedElements(0,-10)}},{key:["alt+shift+arrowdown",!0],fn:()=>{this.svgCanvas.cloneSelectedElements(0,10)}},{key:["alt+shift+arrowleft",!0],fn:()=>{this.svgCanvas.cloneSelectedElements(-10,0)}},{key:["alt+shift+arrowright",!0],fn:()=>{this.svgCanvas.cloneSelectedElements(10,0)}},{key:["delete/backspace",!0],fn:()=>{(this.selectedElement||this.multiselected)&&this.svgCanvas.deleteSelectedElements()}},{key:"a",fn:()=>{this.svgCanvas.selectAllInCurrentLayer()}},{key:en+"a",fn:()=>{this.svgCanvas.selectAllInCurrentLayer()}},{key:en+"x",fn:()=>{this.cutSelected()}},{key:en+"c",fn:()=>{this.copySelected()}},{key:en+"v",fn:()=>{this.pasteInCenter()}}],this.leftPanel=new LeftPanel(this),this.bottomPanel=new BottomPanel(this),this.topPanel=new TopPanel(this),this.layersPanel=new LayersPanel(this),this.mainMenu=new MainMenu(this),window.svgEditor=this}loadSvgString(en){let{noAlert:tn}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!1===this.svgCanvas.setSvgString(en))throw tn||seAlert(this.i18next.t("notification.errorLoadingSVG")),new Error("Error loading SVG");this.updateCanvas()}randomizeIds(en){this.svgCanvas.randomizeIds(en)}setAll(){const en={};this.shortcuts.forEach((tn=>{if(tn.key){let nn=tn.key,rn=!1;Array.isArray(tn.key)&&(nn=tn.key[0],tn.key.length>1&&(rn=tn.key[1])),nn=String(nn);const{fn:an}=tn;nn.split("/").forEach((tn=>{en[tn]={fn:an,pd:rn}}))}return!0})),document.addEventListener("keydown",(tn=>{if("BODY"!==tn.target.nodeName)return;const nn="".concat(tn.altKey?"alt+":"").concat(tn.shiftKey?"shift+":"").concat(tn.metaKey?"meta+":"").concat(tn.ctrlKey?"ctrl+":"").concat(tn.key.toLowerCase());en[nn]&&(en[nn].fn(),en[nn].pd&&tn.preventDefault())}));const tn=document.getElementsByClassName("attr_changer");Array.from(tn).forEach((function(en){en.addEventListener("keydown",(function(en){en.currentTarget.dispatchEvent(new Event("change")),en.preventDefault()}))})),VS("image_url").addEventListener("keydown",(function(en){en.currentTarget.dispatchEvent(new Event("change")),en.preventDefault()}))}getParents(en,tn){void 0===tn&&(tn=document);const nn=[];let rn=en.parentNode;for(;rn!==tn;){const en=rn;nn.push(en),rn=en.parentNode}return nn.push(tn),nn}getButtonData(en){return Object.values(this.shortcuts).find((tn=>tn.sel===en))}exportHandler(en,tn){const{issues:nn,exportWindowName:rn}=tn;if(this.exportWindow=window.open(HS||"",rn),!this.exportWindow||this.exportWindow.closed)return void seAlert(this.i18next.t("notification.popupWindowBlocked"));this.exportWindow.location.href=tn.bloburl||tn.datauri;if("all"!==this.configObj.pref("export_notice_done")){let en=this.i18next.t("notification.saveFromBrowser",{type:tn.type});if(nn.length){const tn="\n • ";en+="\n\n"+this.i18next.t("notification..noteTheseIssues")+tn+nn.join(tn)}this.configObj.pref("export_notice_done","all"),seAlert(en)}}setBackground(en,tn){this.configObj.pref("bkgd_color",en),this.configObj.pref("bkgd_url",tn,!0),this.svgCanvas.setBackground(en,tn)}updateCanvas(en,tn){const nn=this.svgCanvas.getZoom(),{workarea:rn}=this,an=VS("svgcanvas");let sn=parseFloat(getComputedStyle(rn,null).width.replace("px","")),cn=parseFloat(getComputedStyle(rn,null).height.replace("px",""));const An=sn,dn=cn,un=rn.scrollLeft+An/2,pn=rn.scrollTop+dn/2,hn=this.configObj.curConfig.canvas_expansion;sn=Math.max(An,this.svgCanvas.contentW*nn*hn),cn=Math.max(dn,this.svgCanvas.contentH*nn*hn),rn.style.overflow=sn===An&&cn===dn?"hidden":"scroll";const gn=parseFloat(getComputedStyle(an,null).height.replace("px",""))/2,_n=parseFloat(getComputedStyle(an,null).width.replace("px",""))/2;an.style.width=sn+"px",an.style.height=cn+"px";const mn=cn/2,fn=sn/2,yn=this.svgCanvas.updateCanvas(sn,cn),bn=fn/_n,vn=sn/2-An/2,wn=cn/2-dn/2;if(tn)tn.x+=yn.x,tn.y+=yn.y;else{tn={x:fn+(un-_n)*bn,y:mn+(pn-gn)*bn}}en?this.svgCanvas.contentW>parseFloat(getComputedStyle(rn,null).width.replace("px",""))?(rn.scrollLeft=yn.x-10,rn.scrollTop=yn.y-10):(rn.scrollLeft=vn,rn.scrollTop=wn):(rn.scrollLeft=tn.x-An/2,rn.scrollTop=tn.y-dn/2),this.configObj.curConfig.showRulers&&(this.rulers.updateRulers(an,nn),rn.scroll()),!0!==this.configObj.urldata.storagePrompt&&"ignore"===this.storagePromptState&&null!=VS("dialog_box")&&(VS("dialog_box").style.display="none")}updateWireFrame(){const en="\n #workarea.wireframe #svgcontent * {\n stroke-width: ".concat(1/this.svgCanvas.getZoom(),"px;\n }\n ");document.querySelectorAll("#wireframe_rules").length>0&&(document.querySelector("#wireframe_rules").textContent=this.workarea.classList.contains("wireframe")?en:"")}selectedChanged(en,tn){const nn=this.svgCanvas.getMode();"select"===nn&&this.leftPanel.clickSelect();const rn="pathedit"===nn;this.selectedElement=1!==tn.length&&tn[1]?null:tn[0],this.multiselected=tn.length>=2&&tn[1],this.selectedElement&&!rn&&this.topPanel.update(),this.topPanel.togglePathEditMode(rn,tn),this.topPanel.updateContextPanel(),this.svgCanvas.runExtensions("selectedChanged",{elems:tn,selectedElement:this.selectedElement,multiselected:this.multiselected})}elementTransition(en,tn){const nn=this.svgCanvas.getMode(),rn=tn[0];if(rn){if(this.multiselected=tn.length>=2&&tn[1],!this.multiselected)switch(nn){case"rotate":{const en=this.svgCanvas.getRotationAngle(rn);VS("angle").value=en,0===en?VS("tool_reorient").classList.add("disabled"):VS("tool_reorient").classList.remove("disabled");break}}this.svgCanvas.runExtensions("elementTransition",{elems:tn})}}elementChanged(en,tn){const nn=this.svgCanvas.getMode();"select"===nn&&this.leftPanel.clickSelect(),tn.forEach((en=>{var tn;const nn="svg"===(null==en?void 0:en.tagName);nn||this.svgCanvas.isLayer(en)?(this.layersPanel.populateLayers(),nn&&this.updateCanvas()):!en||null!==(tn=this.selectedElement)&&void 0!==tn&&tn.parentNode||(this.selectedElement=en)})),this.showSaveWarning=!0,this.topPanel.updateContextPanel(),this.selectedElement&&"select"===nn&&this.bottomPanel.updateColorpickers(),this.svgCanvas.runExtensions("elementChanged",{elems:tn})}elementRenamed(en,tn){this.svgCanvas.runExtensions("elementRenamed",{renameObj:tn})}afterClear(en){this.svgCanvas.runExtensions("afterClear")}beforeClear(en){this.svgCanvas.runExtensions("beforeClear")}zoomDone(){for(const en of this.svgCanvas.selectedElements)this.svgCanvas.selectorManager.requestSelector(en).resize();this.updateWireFrame()}zoomChanged(en,tn,nn){const rn=this.svgCanvas.setBBoxZoom(tn,parseFloat(getComputedStyle(this.workarea,null).width.replace("px",""))-15,parseFloat(getComputedStyle(this.workarea,null).height.replace("px",""))-15);if(!rn)return;const an=rn.zoom,sn=rn.bbox;an<.001?this.changeZoom(.1):(VS("zoom").value=(100*this.svgCanvas.getZoom()).toFixed(1),nn?this.updateCanvas():this.updateCanvas(!1,{x:sn.x*an+sn.width*an/2,y:sn.y*an+sn.height*an/2}),"zoom"===this.svgCanvas.getMode()&&sn.width&&this.leftPanel.clickSelect(),this.zoomDone())}contextChanged(en,tn){let nn="";if(tn){let en="";nn='<a href="#" data-root="y">'+this.svgCanvas.getCurrentDrawing().getCurrentLayerName()+"</a>";(function getParentsUntil(en,tn,nn){const rn=[],an=null==tn?void 0:tn.charAt(0),sn=null==nn?void 0:nn.selector.charAt(0);for(;en&&en!==document;en=en.parentNode){if(tn){if("."===an&&en.classList.contains(tn.substr(1)))break;if("#"===an&&en.id===tn.substr(1))break;if("["===an&&en.hasAttribute(tn.substr(1,tn.length-1)))break;if(en.tagName.toLowerCase()===tn)break}nn?("."===sn&&en.classList.contains(nn.substr(1))&&rn.push(en),"#"===sn&&en.id===nn.substr(1)&&rn.push(en),"["===sn&&en.hasAttribute(nn.substr(1,nn.length-1))&&rn.push(en),en.tagName.toLowerCase()===nn&&rn.push(en)):rn.push(en)}return rn.length?rn:null})(tn,"#svgcontent").forEach((function(rn){rn.id&&(en+=" > "+rn.id,nn+=rn!==tn?' > <a href="#">'.concat(rn.id,"</a>"):" > ".concat(rn.id))})),this.curContext=en}else this.curContext=null;VS("cur_context_panel").style.display=tn?"block":"none",VS("cur_context_panel").innerHTML=nn}setIcon(en,tn){const nn=document.createElement("img");nn.src=this.configObj.curConfig.imgPath+tn;const rn="string"==typeof tn?nn:tn.cloneNode(!0);if(rn){for(;VS(en).firstChild;)VS(en).removeChild(VS(en).firstChild);VS(en).appendChild(rn)}else console.warn("NOTE: Icon image missing: "+tn)}async extAdded(en,tn){if(!tn)return;let nn=!1;return tn.events&&this.leftPanel.add(tn.events.id,tn.events.click),(()=>{tn.callback&&!nn&&(nn=!0,tn.callback.call(this))})()}zoomImage(en){const tn=this.svgCanvas.getResolution();en=en?tn.zoom*en:1,VS("zoom").value=(100*en).toFixed(1),this.svgCanvas.setCurrentZoom(en),this.zoomDone(),this.updateCanvas(!0)}cutSelected(){(this.selectedElement||this.multiselected)&&this.svgCanvas.cutSelectedElements()}copySelected(){(this.selectedElement||this.multiselected)&&this.svgCanvas.copySelectedElements()}pasteInCenter(){const{workarea:en}=this,tn=this.svgCanvas.getZoom(),nn=(en.scrollLeft+parseFloat(getComputedStyle(en,null).width.replace("px",""))/2)/tn-this.svgCanvas.contentW,rn=(en.scrollTop+parseFloat(getComputedStyle(en,null).height.replace("px",""))/2)/tn-this.svgCanvas.contentH;this.svgCanvas.pasteElements("point",nn,rn)}moveUpDownSelected(en){this.selectedElement&&this.svgCanvas.moveUpDownSelected(en)}moveSelected(en,tn){if(this.selectedElement||this.multiselected){if(this.configObj.curConfig.gridSnapping){const nn=this.svgCanvas.getZoom()*this.configObj.curConfig.snappingStep;en*=nn,tn*=nn}this.svgCanvas.moveSelectedElements(en,tn)}}selectNext(){this.svgCanvas.cycleElement(1)}selectPrev(){this.svgCanvas.cycleElement(0)}rotateSelected(en,tn){if(!this.selectedElement||this.multiselected)return;en||(tn*=-1);const nn=Number.parseFloat(VS("angle").value)+tn;this.svgCanvas.setRotationAngle(nn),this.topPanel.updateContextPanel()}hideSourceEditor(){VS("se-svg-editor-dialog").setAttribute("dialog","closed")}async saveSourceEditor(en){if("open"!==VS("se-svg-editor-dialog").getAttribute("dialog"))return;const saveChanges=()=>{this.svgCanvas.clearSelection(),this.hideSourceEditor(),this.zoomImage(),this.layersPanel.populateLayers()};if(this.svgCanvas.setSvgString(en.detail.value))saveChanges(),this.leftPanel.clickSelect();else{const en=await seConfirm(this.i18next.t("notification.QerrorsRevertToSource"));if(!1===en||"Cancel"===en)return;saveChanges()}}cancelOverlays(en){null!=VS("dialog_box")&&(VS("dialog_box").style.display="none");const tn="open"===VS("se-svg-editor-dialog").getAttribute("dialog");if(tn||this.docprops||this.configObj.preferences){if(tn){if(this.svgCanvas.getSvgString()!==en.detail.value){seConfirm(this.i18next.t("notification.QignoreSourceChanges"))&&this.hideSourceEditor()}else this.hideSourceEditor()}}else this.curContext&&this.svgCanvas.leaveContext()}toggleDynamicOutput(en){this.configObj.curConfig.dynamicOutput=en.detail.dynamic,this.svgCanvas.setConfig(this.configObj.curConfig);const tn=document.getElementById("se-svg-editor-dialog"),nn=this.svgCanvas.getSvgString();tn.setAttribute("dialog","open"),tn.setAttribute("value",nn)}enableOrDisableClipboard(){let en;try{en=this.localStorage.getItem("svgedit_clipboard")}catch(en){}this.canvMenu.setAttribute((en?"en":"dis")+"ablemenuitems","#paste,#paste_in_place")}async openPrep(){return 0===this.svgCanvas.undoMgr.getUndoStackSize()||await seConfirm(this.i18next.t("notification.QwantToOpen"))}onDragEnter(en){en.stopPropagation(),en.preventDefault()}onDragOver(en){en.stopPropagation(),en.preventDefault()}onDragLeave(en){en.stopPropagation(),en.preventDefault()}setLang(en){this.langChanged=!0,this.configObj.pref("lang",en);VS("se-edit-prefs").setAttribute("lang",en);const tn=(VS("#layerlist")?VS("#layerlist").querySelector("tr.layersel td.layername").textContent:"")===this.i18next.t("notification.common.layer")+" 1";this.setTitles(),tn&&(this.svgCanvas.renameCurrentLayer(this.i18next.t("notification.common.layer")+" 1"),this.layersPanel.populateLayers()),this.svgCanvas.runExtensions("langChanged",en)}ready(en){return new Promise(((tn,nn)=>{this.isReady?tn(en()):this.callbacks.push([en,tn,nn])}))}async runCallbacks(){try{await Promise.all(this.callbacks.map((en=>{let[tn]=en;return tn()})))}catch(en){throw this.callbacks.forEach((en=>{let[,,tn]=en;tn()})),en}this.callbacks.forEach((en=>{let[,tn]=en;tn()})),this.isReady=!0}loadFromString(en){let{noAlert:tn}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ready((async()=>{try{await this.loadSvgString(en,{noAlert:tn})}catch(en){if(tn)throw en}}))}loadFromURL(en){let{cache:tn,noAlert:nn}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ready((()=>new Promise(((rn,an)=>{fetch(en,{cache:tn?"force-cache":"no-cache"}).then((en=>{if(!en.ok){if(nn)return void an(new Error("URLLoadFail"));seAlert(this.i18next.t("notification.URLLoadFail")),rn()}return en.text()})).then((en=>(this.loadSvgString(en,{noAlert:nn}),en))).catch((en=>{nn?an(new Error("URLLoadFail")):(seAlert(this.i18next.t("notification.URLLoadFail")+": \n"+en),rn())}))}))))}loadFromDataURI(en){let{noAlert:tn}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ready((()=>{let nn=!1,rn=en.match(/^data:image\/svg\+xml;base64,/);rn?nn=!0:rn=en.match(/^data:image\/svg\+xml(?:;|;utf8)?,/),rn&&(rn=rn[0]);const an=en.slice(rn.length);return this.loadSvgString(nn?DS(an):decodeURIComponent(an),{noAlert:tn})}))}addExtension(en,tn,nn){if(!this.svgCanvas)throw new Error("Extension added too early");return this.svgCanvas.addExtension(en,tn,nn)}}var zS=Object.freeze({__proto__:null,default:{lang:"af",dir:"ltr",common:{ok:"Spaar",cancel:"Annuleer",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik om te verander vul kleur, verskuiwing klik om &#39;n beroerte kleur verander",zoom_level:"Change zoom vlak",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Verandering vul kleur",stroke_color:"Verandering beroerte kleur",stroke_style:"Verandering beroerte dash styl",stroke_width:"Verandering beroerte breedte",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Verandering rotasie-hoek",blur:"Change gaussian blur value",opacity:"Verander geselekteerde item opaciteit",circle_cx:"Verandering sirkel se cx koördineer",circle_cy:"Verandering sirkel se cy koördineer",circle_r:"Verandering sirkel se radius",ellipse_cx:"Verandering ellips se cx koördineer",ellipse_cy:"Verander ellips se cy koördineer",ellipse_rx:"Verandering ellips se x radius",ellipse_ry:"Verander ellips se j radius",line_x1:"Verandering lyn se vertrek x koördinaat",line_x2:"Verandering lyn se eindig x koördinaat",line_y1:"Verandering lyn se vertrek y koördinaat",line_y2:"Verandering lyn se eindig y koördinaat",rect_height:"Verandering reghoek hoogte",rect_width:"Verandering reghoek breedte",corner_radius:"Verandering Rechthoek Corner Radius",image_width:"Verander prent breedte",image_height:"Verandering prent hoogte",image_url:"URL verander",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Verander teks inhoud",font_family_label:"Font:",font_family:"Lettertipe verander Familie",font_size:"Verandering Lettertipe Grootte",bold:"Vetgedrukte teks",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Verander agtergrondkleur / opaciteit",connector_no_arrow:"No arrow",fitToContent:"Pas na inhoud",fit_to_all:"Passing tot al inhoud",fit_to_canvas:"Passing tot doek",fit_to_layer_content:"Passing tot laag inhoud",fit_to_sel:"Passing tot seleksie",align_relative_to:"Align in verhouding tot ...",relativeTo:"relatief tot:",page:"bladsy",largest_object:"grootste voorwerp",selected_objects:"verkose voorwerpe",smallest_object:"kleinste voorwerp",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Rig Middel",align_left:"Links Regterkant",align_middle:"Align Midde",align_right:"Lijn regs uit",align_top:"Align Top",mode_select:"Select Gereedschap",mode_fhpath:"Potlood tool",mode_line:"Lyn Gereedskap",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-hand Rectangle",mode_ellipse:"Ellips",mode_circle:"Sirkel",mode_fhellipse:"Gratis-Hand Ellips",mode_path:"Poli Gereedskap",mode_text:"Text Gereedskap",mode_image:"Image Gereedskap",mode_zoom:"Klik op die Gereedskap",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Boontoe",redo:"Oordoen",tool_source:"Wysig Bron",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Groep Elemente",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elemente",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Skuif na Bottom",move_top:"Skuif na bo",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Spaar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Verwyder Laag",move_down:"Beweeg afbreek Down",new:"Nuwe Layer",rename:"Rename Layer",move_up:"Beweeg afbreek Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Doek Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Kies gedefinieerde:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),KS=Object.freeze({__proto__:null,default:{lang:"ar",dir:"rtl",common:{ok:"حفظ",cancel:"إلغاء",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"انقر لتغيير لون التعبئة ، تحولا مزدوجا فوق لتغيير لون السكتة الدماغية",zoom_level:"تغيير مستوى التكبير",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"تغير لون التعبئة",stroke_color:"تغير لون السكتة الدماغية",stroke_style:"تغيير نمط السكتة الدماغية اندفاعة",stroke_width:"تغيير عرض السكتة الدماغية",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"تغيير زاوية الدوران",blur:"Change gaussian blur value",opacity:"تغيير مختارة غموض البند",circle_cx:"دائرة التغيير لتنسيق cx",circle_cy:"Change circle's cy coordinate",circle_r:"التغيير في دائرة نصف قطرها",ellipse_cx:"تغيير شكل البيضاوي cx تنسيق",ellipse_cy:"تغيير شكل البيضاوي قبرصي تنسيق",ellipse_rx:"تغيير شكل البيضاوي خ نصف قطرها",ellipse_ry:"تغيير القطع الناقص في دائرة نصف قطرها ذ",line_x1:"تغيير الخط لبدء تنسيق خ",line_x2:"تغيير الخط لانهاء خ تنسيق",line_y1:"تغيير الخط لبدء تنسيق ذ",line_y2:"تغيير الخط لإنهاء تنسيق ذ",rect_height:"تغيير المستطيل الارتفاع",rect_width:"تغيير عرض المستطيل",corner_radius:"تغيير مستطيل ركن الشعاع",image_width:"تغيير صورة العرض",image_height:"تغيير ارتفاع الصورة",image_url:"تغيير العنوان",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"تغيير محتويات النص",font_family_label:"Font:",font_family:"تغيير الخط الأسرة",font_size:"تغيير حجم الخط",bold:"نص جريء",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"مائل نص",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"تغير لون الخلفية / غموض",connector_no_arrow:"No arrow",fitToContent:"لائقا للمحتوى",fit_to_all:"يصلح لجميع المحتويات",fit_to_canvas:"يصلح لوحة زيتية على قماش",fit_to_layer_content:"يصلح لطبقة المحتوى",fit_to_sel:"يصلح لاختيار",align_relative_to:"محاذاة النسبي ل ...",relativeTo:"بالنسبة إلى:",page:"الصفحة",largest_object:"أكبر كائن",selected_objects:"انتخب الأجسام",smallest_object:"أصغر كائن",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"محاذاة القاع",align_center:"مركز محاذاة",align_left:"محاذاة إلى اليسار",align_middle:"محاذاة الأوسط",align_right:"محاذاة إلى اليمين",align_top:"محاذاة الأعلى",mode_select:"اختر أداة",mode_fhpath:"أداة قلم رصاص",mode_line:"خط أداة",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"القطع الناقص",mode_circle:"دائرة",mode_fhellipse:"اليد الحرة البيضوي",mode_path:"بولي أداة",mode_text:"النص أداة",mode_image:"الصورة أداة",mode_zoom:"أداة تكبير",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"التراجع",redo:"إعادته",tool_source:"عدل المصدر",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"مجموعة عناصر",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"فك تجميع عناصر",docprops:"خصائص المستند",editor_homepage:"SVG-Edit Home Page",move_bottom:"الانتقال إلى أسفل",move_top:"الانتقال إلى أعلى",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"حفظ",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"حذف طبقة",move_down:"تحرك لأسفل طبقة",new:"طبقة جديدة",rename:"تسمية الطبقة",move_up:"تحرك لأعلى طبقة",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"حدد سلفا:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),$S=Object.freeze({__proto__:null,default:{lang:"az",dir:"ltr",common:{ok:"OK",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family_label:"Font:",font_family:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"selected objects",smallest_object:"smallest object",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Apply Changes",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),WS=Object.freeze({__proto__:null,default:{lang:"be",dir:"ltr",common:{ok:"Захаваць",cancel:"Адмена",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Націсніце для змены колеру залівання, Shift-Click змяніць обводка",zoom_level:"Змяненне маштабу",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Змяненне колеру залівання",stroke_color:"Змяненне колеру інсульт",stroke_style:"Змяненне стылю інсульт працяжнік",stroke_width:"Змены шырыня штрых",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Змены вугла павароту",blur:"Change gaussian blur value",opacity:"Старонка абранага пункта непразрыстасці",circle_cx:"CX змене круга каардынаты",circle_cy:"Змены гуртка CY каардынаты",circle_r:"Старонка круга&#39;s радыус",ellipse_cx:"Змены эліпса CX каардынаты",ellipse_cy:"Змены эліпса CY каардынаты",ellipse_rx:"Х змяненні эліпса радыюсам",ellipse_ry:"Змены у эліпса радыюсам",line_x1:"Змены лінія пачынае каардынаты х",line_x2:"Змяненне за перыяд, скончыўся лінія каардынаты х",line_y1:"Змены лінія пачынае Y каардынаты",line_y2:"Змяненне за перыяд, скончыўся лінія Y каардынаты",rect_height:"Змены прастакутнік вышынёй",rect_width:"Змяненне шырыні прамавугольніка",corner_radius:"Змены прастакутнік Corner Radius",image_width:"Змены шырыня выявы",image_height:"Змена вышыні выявы",image_url:"Змяніць URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Змяненне зместу тэксту",font_family_label:"Font:",font_family:"Змены Сямейства шрыфтоў",font_size:"Змяніць памер шрыфта",bold:"Тоўсты тэкст",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Нахілены тэкст",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Змяненне колеру фону / непразрыстасць",connector_no_arrow:"No arrow",fitToContent:"Па памеры ўтрымання",fit_to_all:"Па памеру ўсе змесціва",fit_to_canvas:"Памер палатна",fit_to_layer_content:"По размеру слой ўтрымання",fit_to_sel:"Выбар памеру",align_relative_to:"Выраўнаваць па дачыненні да ...",relativeTo:"па параўнанні з:",page:"старонка",largest_object:"найбуйнейшы аб&#39;ект",selected_objects:"выбранымі аб&#39;ектамі",smallest_object:"маленькі аб&#39;ект",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Лінаваць па ніжнім краю",align_center:"Лінаваць па цэнтру",align_left:"Па левым краю",align_middle:"Выраўнаваць Блізкага",align_right:"Па правым краю",align_top:"Лінаваць па верхнім краю",mode_select:"Выберыце інструмент",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Свабоднай рукі Прастакутнік",mode_ellipse:"Эліпс",mode_circle:"Круг",mode_fhellipse:"Свабоднай рукі Эліпс",mode_path:"Poly Tool",mode_text:"Тэкст Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Адмяніць",redo:"Паўтор",tool_source:"Змяніць зыходны",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група элементаў",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Элементы Разгруппировать",docprops:"Уласцівасці дакумента",editor_homepage:"SVG-Edit Home Page",move_bottom:"Перамясціць уніз",move_top:"Перамясціць угару",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Захаваць",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Выдаліць слой",move_down:"Перамясціць слой на",new:"Новы слой",rename:"Перайменаваць Слой",move_up:"Перамяшчэнне слоя да",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Выберыце прадвызначэньні:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),XS=Object.freeze({__proto__:null,default:{lang:"bg",dir:"ltr",common:{ok:"Спасявам",cancel:"Отказ",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Кликнете, за да промени попълнете цвят, на смени, кликнете да променят цвета си удар",zoom_level:"Промяна на ниво на мащабиране",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Промяна попълнете цвят",stroke_color:"Промяна на инсулт цвят",stroke_style:"Промяна на стила удар тире",stroke_width:"Промяна на ширината инсулт",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Промяна ъгъл на завъртане",blur:"Change gaussian blur value",opacity:"Промяна на избрания елемент непрозрачност",circle_cx:"CX Промяна кръг на координатната",circle_cy:"Промяна кръг&#39;s CY координира",circle_r:"Промяна кръг радиус",ellipse_cx:"Промяна на елипса&#39;s CX координира",ellipse_cy:"Промяна на елипса&#39;s CY координира",ellipse_rx:"Промяна на елипса&#39;s X радиус",ellipse_ry:"Промяна на елипса&#39;s Y радиус",line_x1:"Промяна на линия, започваща х координира",line_x2:"Промяна на линията приключва х координира",line_y1:"Промяна линия, започваща Y координира",line_y2:"Промяна на линията приключва Y координира",rect_height:"Промяна на правоъгълник височина",rect_width:"Промяна на правоъгълник ширина",corner_radius:"Промяна на правоъгълник Corner Radius",image_width:"Промяна на изображението ширина",image_height:"Промяна на изображението височина",image_url:"Промяна на URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Промяна на текст съдържание",font_family_label:"Font:",font_family:"Промяна на шрифта Семейство",font_size:"Промени размера на буквите",bold:"Получер текст",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Курсив текст",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Промяна на цвета на фона / непрозрачност",connector_no_arrow:"No arrow",fitToContent:"Fit към съдържание",fit_to_all:"Побери цялото съдържание",fit_to_canvas:"Fit на платно",fit_to_layer_content:"Fit да слой съдържание",fit_to_sel:"Fit за подбор",align_relative_to:"Привеждане в сравнение с ...",relativeTo:"в сравнение с:",page:"страница",largest_object:"най-големият обект",selected_objects:"избраните обекти",smallest_object:"най-малката обект",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Привеждане Отдолу",align_center:"Подравняване в средата",align_left:"Подравняване вляво",align_middle:"Привеждане в Близкия",align_right:"Подравняване надясно",align_top:"Привеждане Топ",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Свободен Употребявани правоъгълник",mode_ellipse:"Елипса",mode_circle:"Кръгът",mode_fhellipse:"Свободен Употребявани Елипса",mode_path:"Поли Tool",mode_text:"Текст Оръдие",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Отмени",redo:"Възстановяване",tool_source:"Редактиране Източник",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група Елементи",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Разгрупирай Елементи",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Премести надолу",move_top:"Премести в началото",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Спасявам",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Изтриване на слой",move_down:"Move слой надолу",new:"Нов слой",rename:"Преименуване Layer",move_up:"Move Up Layer",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Изберете предварително:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),YS=Object.freeze({__proto__:null,default:{lang:"ca",dir:"ltr",common:{ok:"Salvar",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Feu clic per canviar el color de farciment, shift-clic per canviar el color del traç",zoom_level:"Canviar el nivell de zoom",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Canviar el color de farciment",stroke_color:"Canviar el color del traç",stroke_style:"Canviar estil de traç guió",stroke_width:"Canviar l&#39;amplada del traç",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Canviar l&#39;angle de rotació",blur:"Change gaussian blur value",opacity:"Canviar la opacitat tema seleccionat",circle_cx:"CX cercle Canvi de coordenades",circle_cy:"Cercle Canvi CY coordinar",circle_r:"Ràdio de cercle Canvi",ellipse_cx:"Canviar lipse CX coordinar",ellipse_cy:"Lipse Canvi CY coordinar",ellipse_rx:"Ràdio x lipse Canvi",ellipse_ry:"Ràdio i lipse Canvi",line_x1:"Canviar la línia de partida de la coordenada x",line_x2:"Canviar la línia d&#39;hores de coordenada x",line_y1:"Canviar la línia de partida i de coordinar",line_y2:"Canviar la línia d&#39;hores de coordenada",rect_height:"Rectangle d&#39;alçada Canvi",rect_width:"Ample rectangle Canvi",corner_radius:"Canviar Rectangle Corner Radius",image_width:"Amplada de la imatge Canvi",image_height:"Canviar l&#39;altura de la imatge",image_url:"Canviar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Contingut del text",font_family_label:"Font:",font_family:"Canviar la font Família",font_size:"Change Font Size",bold:"Text en negreta",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Text en cursiva",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Color de fons / opacitat",connector_no_arrow:"No arrow",fitToContent:"Ajustar al contingut",fit_to_all:"Ajustar a tot el contingut",fit_to_canvas:"Ajustar a la lona",fit_to_layer_content:"Ajustar al contingut de la capa d&#39;",fit_to_sel:"Ajustar a la selecció",align_relative_to:"Alinear pel que fa a ...",relativeTo:"en relació amb:",page:"Pàgina",largest_object:"objecte més gran",selected_objects:"objectes escollits",smallest_object:"objecte més petit",new_doc:"Nova imatge",open_doc:"Obrir imatge",export_img:"Export",save_doc:"Guardar imatge",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Alinear baix",align_center:"Alinear al centre",align_left:"Alinear a l&#39;esquerra",align_middle:"Alinear Medi",align_right:"Alinear a la dreta",align_top:"Alinear a dalt",mode_select:"Eina de selecció",mode_fhpath:"Eina Llapis",mode_line:"L&#39;eina",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Lipse",mode_circle:"Cercle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Eina de text",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Desfés",redo:"Refer",tool_source:"Font Edita",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elements de Grup de",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Desagrupar elements",docprops:"Propietats del document",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mou al final",move_top:"Mou al principi",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Salvar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Eliminar capa",move_down:"Mou la capa de Down",new:"Nova capa",rename:"Canvieu el nom de la capa",move_up:"Mou la capa Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Seleccioneu predefinides:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),ZS=Object.freeze({__proto__:null,default:{lang:"cs",dir:"ltr",common:{ok:"Uložit",cancel:"Storno",key_backspace:"backspace",key_del:"delete",key_down:"šipka dolů",key_up:"šipka nahoru",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Běží na"},ui:{toggle_stroke_tools:"Zobrazit/schovat více možností",palette_info:"Kliknutím změníte barvu výplně, kliknutím současně s klávesou shift změníte barvu čáry",zoom_level:"Změna přiblížení",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Změnit ID elementu",fill_color:"Změnit barvu výplně",stroke_color:"Změnit barvu čáry",stroke_style:"Změnit styl čáry",stroke_width:"Změnit šířku čáry",pos_x:"Změnit souřadnici X",pos_y:"Změnit souřadnici Y",linecap_butt:"Konec úsečky: přesný",linecap_round:"Konec úsečky: zaoblený",linecap_square:"Konec úsečky: s čtvercovým přesahem",linejoin_bevel:"Styl napojení úseček: zkosené",linejoin_miter:"Styl napojení úseček: ostré",linejoin_round:"Styl napojení úseček: oblé",angle:"Změnit úhel natočení",blur:"Změnit rozostření",opacity:"Změnit průhlednost objektů",circle_cx:"Změnit souřadnici X středu kružnice",circle_cy:"Změnit souřadnici Y středu kružnice",circle_r:"Změnit poloměr kružnice",ellipse_cx:"Změnit souřadnici X středu elipsy",ellipse_cy:"Změnit souřadnici Y středu elipsy",ellipse_rx:"Změnit poloměr X elipsy",ellipse_ry:"Změnit poloměr Y elipsy",line_x1:"Změnit počáteční souřadnici X úsečky",line_x2:"Změnit koncovou souřadnici X úsečky",line_y1:"Změnit počáteční souřadnici Y úsečky",line_y2:"Změnit koncovou souřadnici X úsečky",rect_height:"Změnit výšku obdélníku",rect_width:"Změnit šířku obdélníku",corner_radius:"Změnit zaoblení obdélníku",image_width:"Změnit šířku dokumentu",image_height:"Změnit výšku dokumentu",image_url:"Změnit adresu URL",node_x:"Změnit souřadnici X uzlu",node_y:"Změnit souřadnici Y uzlu",seg_type:"Změnit typ segmentu",straight_segments:"úsečka",curve_segments:"křivka",text_contents:"Změnit text",font_family_label:"Font:",font_family:"Změnit font",font_size:"Změnit velikost písma",bold:"Tučně",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Kurzíva",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Hlavní menu",bkgnd_color_opac:"Změnit barvu a průhlednost pozadí",connector_no_arrow:"Bez šipky",fitToContent:"přizpůsobit obsahu",fit_to_all:"Přizpůsobit veškerému obsahu",fit_to_canvas:"Přizpůsobit stránce",fit_to_layer_content:"Přizpůsobit obsahu vrstvy",fit_to_sel:"Přizpůsobit výběru",align_relative_to:"Zarovnat relativně",relativeTo:"relatativně k:",page:"stránce",largest_object:"největšímu objektu",selected_objects:"zvoleným objektům",smallest_object:"nejmenšímu objektu",new_doc:"Nový dokument",open_doc:"Otevřít dokument",export_img:"Export",save_doc:"Uložit dokument",import_doc:"Importovat SVG",align_to_page:"Zarovnat element na stránku",align_bottom:"Zarovnat dolů",align_center:"Zarovnat nastřed",align_left:"Zarovnat doleva",align_middle:"Zarovnat nastřed",align_right:"Zarovnat doprava",align_top:"Zarovnat nahoru",mode_select:"Výběr a transformace objektů",mode_fhpath:"Kresba od ruky",mode_line:"Úsečka",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Obdélník volnou rukou",mode_ellipse:"Elipsa",mode_circle:"Kružnice",mode_fhellipse:"Elipsa volnou rukou",mode_path:"Křivka",mode_text:"Text",mode_image:"Obrázek",mode_zoom:"Přiblížení",no_embed:"POZOR: Obrázek nelze uložit s dokumentem. Bude zobrazován z adresáře, kde se nyní nachází.",undo:"Zpět",redo:"Znovu",tool_source:"Upravovat SVG kód",wireframe_mode:"Zobrazit jen kostru",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Seskupit objekty",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Objekt na křivku",reorient_path:"Změna orientace křivky",ungroup:"Zrušit seskupení",docprops:"Vlastnosti dokumentu",editor_homepage:"SVG-Edit Home Page",move_bottom:"Vrstvu úplně dospodu",move_top:"Vrstvu úplně nahoru",node_clone:"Vložit nový uzel",node_delete:"Ostranit uzel",node_link:"Provázat ovládací body uzlu",add_subpath:"Přidat další součást křivky",openclose_path:"Otevřít/zavřít součást křivky",source_save:"Uložit",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Vrstva",layers:"Layers",del:"Odstranit vrstvu",move_down:"Přesunout vrstvu níž",new:"Přidat vrstvu",rename:"Přejmenovat vrstvu",move_up:"Přesunout vrstvu výš",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Přesunout objekty do:",move_selected:"Přesunout objekty do jiné vrstvy"},config:{image_props:"Vlastnosti dokumentu",doc_title:"Název",doc_dims:"Vlastní velikost",included_images:"Vložené obrázky",image_opt_embed:"Vkládat do dokumentu",image_opt_ref:"Jen odkazem",editor_prefs:"Nastavení editoru",language:"Jazyk",background:"Obrázek v pozadí editoru",editor_img_url:"Image URL",editor_bg_note:"Pozor: obrázek v pozadí nebude uložen jako součást dokumentu.",select_predefined:"vybrat předdefinovaný:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Nevhodná hodnota",noContentToFitTo:"Vyberte oblast pro přizpůsobení",dupeLayerName:"Taková vrstva už bohužel existuje",enterUniqueLayerName:"Zadejte prosím jedinečné jméno pro vrstvu",enterNewLayerName:"Zadejte prosím jméno pro novou vrstvu",layerHasThatName:"Vrstva už se tak jmenuje",QmoveElemsToLayer:"Opravdu chcete přesunout vybrané objekty do vrstvy '%s'?",QwantToClear:"Opravdu chcete smazat současný dokument?\nHistorie změn bude také smazána.",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Chyba v parsování zdrojového kódu SVG.\nChcete se vrátit k původnímu?",QignoreSourceChanges:"Opravdu chcete stornovat změny provedené v SVG kódu?",featNotSupported:"Tato vlastnost ještě není k dispozici",enterNewImgURL:"Vložte adresu URL, na které se nachází vkládaný obrázek",defsFailOnSave:"POZOR: Kvůli nedokonalosti Vašeho prohlížeče se mohou některé části dokumentu špatně vykreslovat (mohou chybět barevné přechody nebo některé objekty). Po uložení dokumentu by se ale vše mělo zobrazovat správně.",loadingImage:"Nahrávám obrázek ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Mohou se vyskytnout následující problémy: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),JS=Object.freeze({__proto__:null,default:{lang:"cy",dir:"ltr",common:{ok:"Cadw",cancel:"Canslo",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Cliciwch yma i lenwi newid lliw, sifft-cliciwch i newid lliw strôc",zoom_level:"Newid lefel chwyddo",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Newid lliw llenwi",stroke_color:"Newid lliw strôc",stroke_style:"Newid arddull strôc diferyn",stroke_width:"Lled strôc Newid",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Ongl cylchdro Newid",blur:"Change gaussian blur value",opacity:"Newid dewis Didreiddiad eitem",circle_cx:"CX Newid cylch yn cydlynu",circle_cy:"Newid cylch&#39;s cy gydgysylltu",circle_r:"Newid radiws cylch yn",ellipse_cx:"Newid Ellipse yn CX gydgysylltu",ellipse_cy:"Newid Ellipse yn cydlynu cy",ellipse_rx:"Radiws Newid Ellipse&#39;s x",ellipse_ry:"Radiws Newid Ellipse yn y",line_x1:"Newid llinell yn cychwyn x gydgysylltu",line_x2:"Newid llinell yn diweddu x gydgysylltu",line_y1:"Newid llinell ar y cychwyn yn cydlynu",line_y2:"Newid llinell yn dod i ben y gydgysylltu",rect_height:"Uchder petryal Newid",rect_width:"Lled petryal Newid",corner_radius:"Newid Hirsgwâr Corner Radiws",image_width:"Lled delwedd Newid",image_height:"Uchder delwedd Newid",image_url:"Newid URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Cynnwys testun Newid",font_family_label:"Font:",font_family:"Newid Font Teulu",font_size:"Newid Maint Ffont",bold:"Testun Bras",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italig Testun",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Newid lliw cefndir / Didreiddiad",connector_no_arrow:"No arrow",fitToContent:"Ffit i Cynnwys",fit_to_all:"Yn addas i bawb content",fit_to_canvas:"Ffit i ofyn",fit_to_layer_content:"Ffit cynnwys haen i",fit_to_sel:"Yn addas at ddewis",align_relative_to:"Alinio perthynas i ...",relativeTo:"cymharol i:",page:"tudalen",largest_object:"gwrthrych mwyaf",selected_objects:"gwrthrychau etholedig",smallest_object:"lleiaf gwrthrych",new_doc:"Newydd Delwedd",open_doc:"Delwedd Agored",export_img:"Export",save_doc:"Cadw Delwedd",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Alinio Gwaelod",align_center:"Alinio Center",align_left:"Alinio Chwith",align_middle:"Alinio Canol",align_right:"Alinio Hawl",align_top:"Alinio Top",mode_select:"Dewiswch Offer",mode_fhpath:"Teclyn pensil",mode_line:"Llinell Offer",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Hand rhad ac am ddim Hirsgwâr",mode_ellipse:"Ellipse",mode_circle:"Cylch",mode_fhellipse:"Rhad ac am ddim Hand Ellipse",mode_path:"Offer poly",mode_text:"Testun Offer",mode_image:"Offer Delwedd",mode_zoom:"Offer Chwyddo",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Dadwneud",redo:"Ail-wneud",tool_source:"Golygu Ffynhonnell",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elfennau Grŵp",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elfennau Ungroup",docprops:"Document Eiddo",editor_homepage:"SVG-Edit Home Page",move_bottom:"Symud i&#39;r Gwaelod",move_top:"Symud i&#39;r Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Cadw",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Dileu Haen",move_down:"Symud Haen i Lawr",new:"Haen Newydd",rename:"Ail-enwi Haen",move_up:"Symud Haen Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Rhagosodol Dewis:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),eB=Object.freeze({__proto__:null,default:{lang:"da",dir:"ltr",common:{ok:"Gemme",cancel:"Annuller",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik for at ændre fyldfarve, shift-klik for at ændre stregfarve",zoom_level:"Skift zoomniveau",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Skift fyldfarve",stroke_color:"Skift stregfarve",stroke_style:"Skift slagtilfælde Dash stil",stroke_width:"Skift slagtilfælde bredde",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Skift rotationsvinkel",blur:"Change gaussian blur value",opacity:"Skift valgte element opacitet",circle_cx:"Skift cirklens cx koordinere",circle_cy:"Skift cirklens cy koordinere",circle_r:"Skift cirklens radius",ellipse_cx:"Skift ellipse&#39;s cx koordinere",ellipse_cy:"Skift ellipse&#39;s cy koordinere",ellipse_rx:"Skift ellipse&#39;s x radius",ellipse_ry:"Skift ellipse&#39;s y radius",line_x1:"Skift linie&#39;s start x-koordinat",line_x2:"Skift Line&#39;s slutter x-koordinat",line_y1:"Skift linjens start y-koordinat",line_y2:"Skift Line&#39;s slutter y-koordinat",rect_height:"Skift rektangel højde",rect_width:"Skift rektanglets bredde",corner_radius:"Skift Rektangel Corner Radius",image_width:"Skift billede bredde",image_height:"Skift billede højde",image_url:"Skift webadresse",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Skift tekst indhold",font_family:"Skift Font Family",font_size:"Skift skriftstørrelse",bold:"Fed tekst",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Skift baggrundsfarve / uigennemsigtighed",connector_no_arrow:"No arrow",fitToContent:"Tilpas til indhold",fit_to_all:"Passer til alt indhold",fit_to_canvas:"Tilpas til lærred",fit_to_layer_content:"Tilpas til lag indhold",fit_to_sel:"Tilpas til udvælgelse",align_relative_to:"Juster i forhold til ...",relativeTo:"i forhold til:",page:"side",largest_object:"største objekt",selected_objects:"valgte objekter",smallest_object:"mindste objekt",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Juster Bottom",align_center:"Centrer",align_left:"Venstrejusteret",align_middle:"Juster Mellemøsten",align_right:"Højrejusteret",align_top:"Juster Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rektangel",mode_ellipse:"Ellipse",mode_circle:"Cirkel",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Tekstværktøj",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Fortryd",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Gruppe Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Opdel Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Flyt til bund",move_top:"Flyt til toppen",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Gemme",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Slet Layer",move_down:"Flyt lag ned",new:"New Layer",rename:"Omdøb Layer",move_up:"Flyt Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Vælg foruddefinerede:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),tB=Object.freeze({__proto__:null,default:{lang:"de",dir:"ltr",common:{ok:"OK",cancel:"Abbrechen",key_backspace:"Rücktaste",key_del:"Löschen",key_down:"nach unten",key_up:"nach oben",more_opts:"Mehr Optionen",url:"URL",width:"Breite",height:"Höhe"},misc:{powered_by:"powered by"},ui:{toggle_stroke_tools:"Zeige/Verberge weitere Linien-Werkzeuge",palette_info:"Klick zum Ändern der Füllfarbe, Shift-Klick zum Ändern der Linienfarbe",zoom_level:"vergrößern",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Element identifizieren",fill_color:"Füllfarbe ändern",stroke_color:"Linienfarbe ändern",stroke_style:"Linienstil ändern",stroke_width:"Linienbreite ändern",pos_x:"Ändere die X-Koordinate",pos_y:"Ändere die Y-Koordinate",linecap_butt:"Form der Linienendung: Stumpf",linecap_round:"Form der Linienendung: Rund",linecap_square:"Form der Linienendung: Rechteckig",linejoin_bevel:"Zusammentreffen von zwei Linien: abgeschrägte Kante",linejoin_miter:"Zusammentreffen von zwei Linien: Gehrung",linejoin_round:"Zusammentreffen von zwei Linien: Rund",angle:"Drehwinkel ändern",blur:"Ändere Wert des Gaußschen Weichzeichners",opacity:"Opazität des ausgewählten Objekts ändern",circle_cx:"Kreiszentrum (cx) ändern",circle_cy:"Kreiszentrum (cy) ändern",circle_r:"Kreisradius (r) ändern",ellipse_cx:"Ellipsenzentrum (cx) ändern",ellipse_cy:"Ellipsenzentrum (cy) ändern",ellipse_rx:"Ellipsenradius (x) ändern",ellipse_ry:"Ellipsenradius (y) ändern",line_x1:"X-Koordinate des Linienanfangs ändern",line_x2:"X-Koordinate des Linienendes ändern",line_y1:"Y-Koordinate des Linienanfangs ändern",line_y2:"Y-Koordinate des Linienendes ändern",rect_height:"Höhe des Rechtecks ändern",rect_width:"Breite des Rechtecks ändern",corner_radius:"Eckenradius des Rechtecks ändern",image_width:"Bildbreite ändern",image_height:"Bildhöhe ändern",image_url:"URL ändern",node_x:"Ändere die X-Koordinate des Knoten",node_y:"Ändere die Y-Koordinate des Knoten",seg_type:"Ändere den Typ des Segments",straight_segments:"Gerade",curve_segments:"Kurve",text_contents:"Textinhalt erstellen und bearbeiten",font_family_label:"Font:",font_family:"Schriftart wählen",font_size:"Schriftgröße einstellen",bold:"Fetter Text",text_decoration_underline:"Unterstrichen",text_decoration_linethrough:"Durchgestrichen",text_decoration_overline:"Überstrichen",italic:"Kursiver Text",text_anchor_start:"Den Text linksbündig ausrichten",text_anchor_middle:"Den Text zentriert ausrichten",text_anchor_end:"Den Text rechtsbündig ausrichten",text_letter_spacing:"Den Abstand zwischen den Buchstaben anpassen",text_word_spacing:"Den Abstand zwischen den Wörtern anpassen",text_length:"Die Breite, in dem der Text gezeichnet wird",text_length_adjust:"Länge anpassen",text_length_adjust_spacing:"Leerzeichen",text_length_adjust_spacing_and_glyphs:"Leerzeichen & Buchstaben",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Hauptmenü",bkgnd_color_opac:"Hintergrundfarbe ändern / Opazität",connector_no_arrow:"Kein Pfeil",fitToContent:"An den Inhalt anpassen",fit_to_all:"An gesamten Inhalt anpassen",fit_to_canvas:"An die Zeichenfläche anpassen",fit_to_layer_content:"An Inhalt der Ebene anpassen",fit_to_sel:"An die Auswahl anpassen",align_relative_to:"Relativ zu einem anderem Objekt ausrichten …",relativeTo:"im Vergleich zu:",page:"Seite",largest_object:"größtes Objekt",selected_objects:"gewählte Objekte",smallest_object:"kleinstes Objekt",new_doc:"Neues Bild",open_doc:"Bild öffnen",export_img:"Export",save_doc:"Bild speichern",import_doc:"Importiere SVG",align_to_page:"Element an Seite ausrichten",align_bottom:"Unten ausrichten",align_center:"Zentriert ausrichten",align_left:"Linksbündig ausrichten",align_middle:"In der Mitte ausrichten",align_right:"Rechtsbündig ausrichten",align_top:"Oben ausrichten",mode_select:"Objekte auswählen und verändern",mode_fhpath:"Freihandlinien zeichnen",mode_line:"Linien zeichnen",mode_rect:"Rechteck-Werkzeug",mode_square:"Quadrat-Werkzeug",mode_fhrect:"Freihand-Rechteck",mode_ellipse:"Ellipse",mode_circle:"Kreis",mode_fhellipse:"Freihand-Ellipse",mode_path:"Pfad zeichnen",mode_text:"Text erstellen und bearbeiten",mode_image:"Bild einfügen",mode_zoom:"Zoomfaktor vergrößern oder verringern",no_embed:"Hinweis: Dieses Bild kann nicht eingebettet werden. Eine Anzeige hängt von diesem Pfad ab.",undo:"Rückgängig",redo:"Wiederherstellen",tool_source:"Quellcode bearbeiten",wireframe_mode:"Drahtmodell-Modus",clone:"Element(e) klonen",del:"Element(e) löschen",group_elements:"Element(e) gruppieren",make_link:"Link erstellen",set_link_url:"Link setzen (leer lassen zum Entfernen)",to_path:"Gewähltes Objekt in einen Pfad konvertieren",reorient_path:"Neuausrichtung des Pfades",ungroup:"Gruppierung aufheben",docprops:"Dokument-Eigenschaften",editor_homepage:"SVG-Edit Home Page",move_bottom:"Die gewählten Objekte nach ganz unten verschieben",move_top:"Die gewählten Objekte nach ganz oben verschieben",node_clone:"Klone den Knoten",node_delete:"Lösche den Knoten",node_link:"Gekoppelte oder separate Kontrollpunkte für die Bearbeitung des Pfades",add_subpath:"Teilpfad hinzufügen",openclose_path:"Öffne/Verbinde Unterpfad",source_save:"Änderungen akzeptieren",cut:"Ausschneiden",copy:"Kopieren",paste:"Einfügen",paste_in_place:"Bei Originalposition einfügen",delete:"Löschen",group:"Gruppieren",move_front:"Nach ganz oben verschieben",move_up:"Hochschieben",move_down:"Herunterschieben",move_back:"Nach ganz unten verschieben",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Ebene",layers:"Ebenen",del:"Ebene löschen",move_down:"Ebene nach unten verschieben",new:"Neue Ebene",rename:"Ebene umbenennen",move_up:"Ebene nach oben verschieben",dupe:"Ebene duplizieren",merge_down:"Nach unten zusammenführen",merge_all:"Alle zusammenführen",move_elems_to:"Verschiebe ausgewählte Objekte:",move_selected:"Verschiebe ausgewählte Objekte auf eine andere Ebene"},config:{image_props:"Bildeigenschaften",doc_title:"Titel",doc_dims:"Dimension der Zeichenfläche",included_images:"Eingefügte Bilder",image_opt_embed:"Daten einbetten (lokale Dateien)",image_opt_ref:"Benutze die Dateireferenz",editor_prefs:"Editor-Einstellungen",language:"Sprache",background:"Editor-Hintergrund",editor_img_url:"Bild-URL",editor_bg_note:"Anmerkung: Der Hintergrund wird mit dem Bild nicht gespeichert.",select_predefined:"Auswahl einer vordefinierten:",units_and_rulers:"Einheiten und Lineale",show_rulers:"Zeige Lineale",base_unit:"Basiseinheit:",grid:"Gitternetz",snapping_onoff:"Einrasten an/aus",snapping_stepsize:"Einrastabstand:",grid_color:"Gitterfarbe",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Fehlerhafter Wert",noContentToFitTo:"Kein Inhalt anzupassen",dupeLayerName:"Eine Ebene hat bereits diesen Namen",enterUniqueLayerName:"Verwenden Sie einen eindeutigen Namen für die Ebene",enterNewLayerName:"Geben Sie bitte einen neuen Namen für die Ebene ein",layerHasThatName:"Eine Ebene hat bereits diesen Namen",QmoveElemsToLayer:"Verschiebe ausgewählte Objekte in die Ebene '%s'?",QwantToClear:"Möchten Sie die Zeichnung löschen?\nDadurch wird auch die Rückgängig-Funktion zurückgesetzt!",QwantToOpen:"Möchten Sie eine neue Datei öffnen?\nDadurch wird auch die Rückgängig-Funktion zurückgesetzt!",QerrorsRevertToSource:"Es gibt Parser-Fehler in der SVG-Quelle.\nDie Original-SVG wiederherstellen?",QignoreSourceChanges:"Sollen die Änderungen an der SVG-Quelle ignoriert werden?",featNotSupported:"Diese Eigenschaft wird nicht unterstützt",enterNewImgURL:"Geben Sie die URL für das neue Bild an",defsFailOnSave:"Hinweis: Aufgrund eines Fehlers in Ihrem Browser kann dieses Bild falsch angezeigt werden (fehlende Gradienten oder Elemente). Es wird jedoch richtig angezeigt, sobald es gespeichert wird.",loadingImage:"Bild wird geladen, bitte warten ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Beachten Sie außerdem die folgenden Probleme: ",unsavedChanges:"Es sind nicht-gespeicherte Änderungen vorhanden.",enterNewLinkURL:"Geben Sie die neue URL ein",errorLoadingSVG:"Fehler: Kann SVG-Daten nicht laden",URLLoadFail:"Kann von dieser URL nicht laden",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),nB=Object.freeze({__proto__:null,default:{lang:"el",dir:"ltr",common:{ok:"Αποθηκεύω",cancel:"Άκυρο",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Κάντε κλικ για να συμπληρώσετε την αλλαγή χρώματος, στροφή κλικ για να αλλάξετε το χρώμα εγκεφαλικό",zoom_level:"Αλλαγή επίπεδο μεγέθυνσης",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Αλλαγή συμπληρώστε χρώμα",stroke_color:"Αλλαγή χρώματος εγκεφαλικό",stroke_style:"Αλλαγή στυλ παύλα εγκεφαλικό",stroke_width:"Αλλαγή πλάτος γραμμής",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Αλλαγή γωνία περιστροφής",blur:"Change gaussian blur value",opacity:"Αλλαγή αδιαφάνεια επιλεγμένο σημείο",circle_cx:"Cx Αλλαγή κύκλου συντονίζουν",circle_cy:"Αλλαγή κύκλου cy συντονίζουν",circle_r:"Αλλαγή ακτίνα κύκλου",ellipse_cx:"Αλλαγή ellipse του CX συντονίζουν",ellipse_cy:"Αλλαγή ellipse του cy συντονίζουν",ellipse_rx:"X ακτίνα Αλλαγή ellipse του",ellipse_ry:"Y ακτίνα Αλλαγή ellipse του",line_x1:"Αλλαγή γραμμής εκκίνησης x συντονίζουν",line_x2:"Αλλαγή γραμμής λήγει x συντονίζουν",line_y1:"Αλλαγή γραμμής εκκίνησης y συντονίζουν",line_y2:"Αλλαγή γραμμής λήγει y συντονίζουν",rect_height:"Αλλαγή ύψος ορθογωνίου",rect_width:"Αλλαγή πλάτους ορθογώνιο",corner_radius:"Αλλαγή ορθογώνιο Corner Radius",image_width:"Αλλαγή πλάτος εικόνας",image_height:"Αλλαγή ύψος εικόνας",image_url:"Αλλαγή URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Αλλαγή περιεχόμενο κειμένου",font_family_label:"Font:",font_family:"Αλλαγή γραμματοσειράς Οικογένεια",font_size:"Αλλαγή μεγέθους γραμματοσειράς",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Πλάγιους",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Αλλαγή χρώματος φόντου / αδιαφάνεια",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Ταιριάζει σε όλο το περιεχόμενο",fit_to_canvas:"Προσαρμογή στο μουσαμά",fit_to_layer_content:"Προσαρμογή στο περιεχόμενο στρώμα",fit_to_sel:"Fit to επιλογή",align_relative_to:"Στοίχιση σε σχέση με ...",relativeTo:"σε σχέση με:",page:"σελίδα",largest_object:"μεγαλύτερο αντικείμενο",selected_objects:"εκλέγεται αντικείμενα",smallest_object:"μικρότερο αντικείμενο",new_doc:"Νέα εικόνα",open_doc:"Άνοιγμα εικόνας",export_img:"Export",save_doc:"Αποθήκευση εικόνας",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Στοίχισηκάτω",align_center:"Στοίχισηστοκέντρο",align_left:"Στοίχισηαριστερά",align_middle:"Ευθυγράμμιση Μέση",align_right:"Στοίχισηδεξιά",align_top:"Στοίχισηπάνω",mode_select:"Select Tool",mode_fhpath:"Εργαλείομολυβιού",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Δωρεάν-Hand ορθογώνιο",mode_ellipse:"Ellipse",mode_circle:"Κύκλος",mode_fhellipse:"Δωρεάν-Hand Ellipse",mode_path:"Path Tool",mode_text:"Κείμενο Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Αναίρεση",redo:"Redo",tool_source:"Επεξεργασία Πηγή",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Ομάδα Στοιχεία",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Κατάργηση ομαδοποίησης Στοιχεία",docprops:"Ιδιότητες εγγράφου",editor_homepage:"SVG-Edit Home Page",move_bottom:"Μετακίνηση προς τα κάτω",move_top:"Μετακίνηση στην αρχή",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Αποθηκεύω",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Διαγραφήστρώματος",move_down:"Μετακίνηση Layer Down",new:"Νέο Layer",rename:"Μετονομασία Layer",move_up:"Μετακίνηση Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Επιλογή προκαθορισμένων:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),rB=Object.freeze({__proto__:null,default:{lang:"en",dir:"ltr",common:{ok:"OK",cancel:"Cancel",key_backspace:"Backspace",key_del:"Del",key_down:"Down",key_up:"Up",more_opts:"More options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel:"Panel",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width by 1, shift-click to change by 0.1",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family_label:"Font:",font_family:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",r_label:"r",x_label:"x",y_label:"y",x1_label:"x1",y1_label:"y1",x2_label:"x2",y2_label:"y2",rx_label:"rx",ry_label:"ry",cx_label:"cx",cy_label:"cy",w_label:"w",h_label:"h",id_label:"id",class_label:"class",label:"label",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"selected objects",smallest_object:"smallest object",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Duplicate Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Send to Back",move_top:"Bring to Front",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Apply Changes",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer...",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title:",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language:",background:"Editor Background",editor_img_url:"Image URL:",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color:",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),oB=Object.freeze({__proto__:null,default:{lang:"es",dir:"ltr",common:{ok:"OK",cancel:"Cancelar",key_backspace:"retroceso",key_del:"suprimir",key_down:"abajo",key_up:"arriba",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Mostrar/ocultar herramientas de trazo adicionales",palette_info:"Haga clic para cambiar el color de relleno. Pulse Mayús y haga clic para cambiar el color del contorno.",zoom_level:"Cambiar el nivel de zoom",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Cambiar el color de relleno",stroke_color:"Cambiar el color del contorno",stroke_style:"Cambiar el estilo del trazo del contorno",stroke_width:"Cambiar el grosor del contorno",pos_x:"Cambiar la posición horizontal X",pos_y:"Cambiar la posición vertical Y",linecap_butt:"Final de la línea: en el nodo",linecap_round:"Final de la línea: redondeada",linecap_square:"Final de la línea: cuadrada",linejoin_bevel:"Unión: biselada",linejoin_miter:"Unión: recta",linejoin_round:"Unión: redondeada",angle:"Cambiar ángulo de rotación",blur:"Ajustar desenfoque gausiano",opacity:"Cambiar la opacidad del objeto seleccionado",circle_cx:"Cambiar la posición horizonral CX del círculo",circle_cy:"Cambiar la posición vertical CY del círculo",circle_r:"Cambiar el radio del círculo",ellipse_cx:"Cambiar la posición horizontal CX de la elipse",ellipse_cy:"Cambiar la posición vertical CY de la elipse",ellipse_rx:"Cambiar el radio horizontal X de la elipse",ellipse_ry:"Cambiar el radio vertical Y de la elipse",line_x1:"Cambiar la posición horizontal X del comienzo de la línea",line_x2:"Cambiar la posición horizontal X del final de la línea",line_y1:"Cambiar la posición vertical Y del comienzo de la línea",line_y2:"Cambiar la posición vertical Y del final de la línea",rect_height:"Cambiar la altura del rectángulo",rect_width:"Cambiar el ancho rectángulo",corner_radius:"Cambiar el radio de las esquinas del rectángulo",image_width:"Cambiar el ancho de la imagen",image_height:"Cambiar la altura de la imagen",image_url:"Modificar URL",node_x:"Cambiar la posición horizontal X del nodo",node_y:"Cambiar la posición vertical Y del nodo",seg_type:"Cambiar el tipo de segmento",straight_segments:"Recta",curve_segments:"Curva",text_contents:"Modificar el texto",font_family_label:"Font:",font_family:"Tipo de fuente",font_size:"Tamaño de la fuente",bold:"Texto en negrita",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Texto en cursiva",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Menú principal",bkgnd_color_opac:"Cambiar color de fondo / opacidad",connector_no_arrow:"Sin flecha",fitToContent:"Ajustar al contenido",fit_to_all:"Ajustar a todo el contenido",fit_to_canvas:"Ajustar al lienzo",fit_to_layer_content:"Ajustar al contenido de la capa",fit_to_sel:"Ajustar a la selección",align_relative_to:"Alinear con respecto a ...",relativeTo:"en relación con:",page:"Página",largest_object:"El objeto más grande",selected_objects:"Objetos seleccionados",smallest_object:"El objeto más pequeño",new_doc:"Nueva imagen",open_doc:"Abrir imagen",export_img:"Export",save_doc:"Guardar imagen",import_doc:"Importar un archivo SVG",align_to_page:"Align Element to Page",align_bottom:"Alinear parte inferior",align_center:"Centrar verticalmente",align_left:"Alinear lado izquierdo",align_middle:"Centrar horizontalmente",align_right:"Alinear lado derecho",align_top:"Alinear parte superior",mode_select:"Herramienta de selección",mode_fhpath:"Herramienta de lápiz",mode_line:"Trazado de líneas",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Rectángulo a mano alzada",mode_ellipse:"Elipse",mode_circle:"Círculo",mode_fhellipse:"Elipse a mano alzada",mode_path:"Herramienta de trazado",mode_text:"Insertar texto",mode_image:"Insertar imagen",mode_zoom:"Zoom",no_embed:"NOTA: La imagen no puede ser integrada. El contenido mostrado dependerá de la imagen ubicada en esta ruta. ",undo:"Deshacer",redo:"Rehacer",tool_source:"Editar código fuente",wireframe_mode:"Modo marco de alambre",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Agrupar objetos",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convertir a trazado",reorient_path:"Reorientar el trazado",ungroup:"Desagrupar objetos",docprops:"Propiedades del documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mover abajo",move_top:"Mover arriba",node_clone:"Clonar nodo",node_delete:"Suprimir nodo",node_link:"Enlazar puntos de control",add_subpath:"Añadir subtrazado",openclose_path:"Open/close sub-path",source_save:"Aplicar cambios",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Capa",layers:"Layers",del:"Suprimir capa",move_down:"Mover la capa hacia abajo",new:"Nueva capa",rename:"Renombrar capa",move_up:"Mover la capa hacia arriba",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Desplazar objetos a:",move_selected:"Mover los objetos seleccionados a otra capa"},config:{image_props:"Propiedades de la Imagen",doc_title:"Título",doc_dims:"Tamaño del lienzo",included_images:"Imágenes integradas",image_opt_embed:"Integrar imágenes en forma de datos (archivos locales)",image_opt_ref:"Usar la referencia del archivo",editor_prefs:"Preferencias del Editor",language:"Idioma",background:"Fondo del editor",editor_img_url:"Image URL",editor_bg_note:"Nota: El fondo no se guardará junto con la imagen.",select_predefined:"Seleccionar predefinido:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Valor no válido",noContentToFitTo:"No existe un contenido al que ajustarse.",dupeLayerName:"¡Ya existe una capa con este nombre!",enterUniqueLayerName:"Introduzca otro nombre distinto para la capa.",enterNewLayerName:"Introduzca el nuevo nombre de la capa.",layerHasThatName:"El nombre introducido es el nombre actual de la capa.",QmoveElemsToLayer:"¿Desplazar los elementos seleccionados a la capa '%s'?",QwantToClear:"¿Desea borrar el dibujo?\n¡El historial de acciones también se borrará!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Existen errores sintácticos en su código fuente SVG.\n¿Desea volver al código fuente SVG original?",QignoreSourceChanges:"¿Desea ignorar los cambios realizados sobre el código fuente SVG?",featNotSupported:"Función no compatible.",enterNewImgURL:"Introduzca la nueva URL de la imagen.",defsFailOnSave:"NOTA: Debido a un fallo de su navegador, es posible que la imagen aparezca de forma incorrecta (ciertas gradaciones o elementos podría perderse). La imagen aparecerá en su forma correcta una vez guardada.",loadingImage:"Cargando imagen. Espere, por favor.",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Existen además los problemas siguientes:",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),iB=Object.freeze({__proto__:null,default:{lang:"et",dir:"ltr",common:{ok:"Salvestama",cancel:"Tühista",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click muuta täitke värvi, Shift-nuppu, et muuta insult värvi",zoom_level:"Muuda suumi taset",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Muuda täitke värvi",stroke_color:"Muuda insult värvi",stroke_style:"Muuda insult kriips stiil",stroke_width:"Muuda insult laius",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Muuda Pöördenurk",blur:"Change gaussian blur value",opacity:"Muuda valitud elemendi läbipaistmatus",circle_cx:"Muuda ringi&#39;s cx kooskõlastada",circle_cy:"Muuda ringi&#39;s cy kooskõlastada",circle_r:"Muuda ring on raadiusega",ellipse_cx:"Muuda ellips&#39;s cx kooskõlastada",ellipse_cy:"Muuda ellips&#39;s cy kooskõlastada",ellipse_rx:"Muuda ellips&#39;s x raadius",ellipse_ry:"Muuda ellips&#39;s y raadius",line_x1:"Muuda rööbastee algab x-koordinaadi",line_x2:"Muuda Line lõpeb x-koordinaadi",line_y1:"Muuda rööbastee algab y-koordinaadi",line_y2:"Muuda Line lõppenud y-koordinaadi",rect_height:"Muuda ristküliku kõrgus",rect_width:"Muuda ristküliku laius",corner_radius:"Muuda ristkülik Nurgakabe Raadius",image_width:"Muuda pilt laius",image_height:"Muuda pilt kõrgus",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Muuda teksti sisu",font_family_label:"Font:",font_family:"Muutke Kirjasinperhe",font_size:"Change font size",bold:"Rasvane kiri",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Kursiiv",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Muuda tausta värvi / läbipaistmatus",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Sobita kogu sisu",fit_to_canvas:"Sobita lõuend",fit_to_layer_content:"Sobita kiht sisu",fit_to_sel:"Fit valiku",align_relative_to:"Viia võrreldes ...",relativeTo:"võrreldes:",page:"lehekülg",largest_object:"suurim objekt",selected_objects:"valitud objektide",smallest_object:"väikseim objekt",new_doc:"Uus pilt",open_doc:"Pildi avamine",export_img:"Export",save_doc:"Salvesta pilt",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Viia Bottom",align_center:"Keskele joondamine",align_left:"Vasakjoondus",align_middle:"Viia Lähis -",align_right:"Paremjoondus",align_top:"Viia Üles",mode_select:"Vali Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Online-Hand Ristkülik",mode_ellipse:"Ellips",mode_circle:"Circle",mode_fhellipse:"Online-Hand Ellips",mode_path:"Path Tool",mode_text:"Tekst Tool",mode_image:"Pilt Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Muuda Allikas",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Rühma elemendid",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Lõhu Elements",docprops:"Dokumendi omadused",editor_homepage:"SVG-Edit Home Page",move_bottom:"Liiguta alla",move_top:"Liiguta üles",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Salvestama",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Kustuta Kiht",move_down:"Liiguta kiht alla",new:"Uus kiht",rename:"Nimeta kiht",move_up:"Liiguta kiht üles",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Valige eelmääratletud:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),aB=Object.freeze({__proto__:null,default:{lang:"fa",dir:"rtl",common:{ok:"‫تأیید‬",cancel:"‫لغو‬",key_backspace:"‫پس بر ",key_del:"‫حذف ",key_down:"‫پایین ",key_up:"‫بالا ",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"‫برای تغییر رنگ، کلیک کنید. برای تغییر رنگ لبه، کلید تبدیل (shift) را فشرده و کلیک کنید‬",zoom_level:"‫تغییر بزرگ نمایی‬",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"‫تغییر رنگ‬",stroke_color:"‫تغییر رنگ لبه‬",stroke_style:"‫تغییر نقطه چین لبه‬",stroke_width:"‫تغییر عرض لبه‬",pos_x:"‫تغییر مختصات X",pos_y:"‫تغییر مختصات Y",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"‫تغییر زاویه چرخش‬",blur:"Change gaussian blur value",opacity:"‫تغییر تاری عنصر انتخاب شده‬",circle_cx:"‫تغییر مختصات cx دایره‬",circle_cy:"‫تغییر مختصات cy دایره‬",circle_r:"‫تغییر شعاع دایره‬",ellipse_cx:"‫تغییر مختصات cx بیضی‬",ellipse_cy:"‫تغییر مختصات cy بیضی‬",ellipse_rx:"‫تغییر شعاع rx بیضی‬",ellipse_ry:"‫تغییر شعاع ry بیضی‬",line_x1:"‫تغییر مختصات x آغاز خط‬",line_x2:"‫تغییر مختصات x پایان خط‬",line_y1:"‫تغییر مختصات y آغاز خط‬",line_y2:"‫تغییر مختصات y پایان خط‬",rect_height:"‫تغییر ارتفاع مستطیل‬",rect_width:"‫تغییر عرض مستطیل‬",corner_radius:"‫شعاع گوشه:",image_width:"‫تغییر عرض تصویر‬",image_height:"‫تغییر ارتفاع تصویر‬",image_url:"‫تغییر نشانی وب (url)",node_x:"‫تغییر مختصات x نقطه‬",node_y:"‫تغییر مختصات y نقطه‬",seg_type:"‫تغییر نوع قطعه (segment)",straight_segments:"‫مستقیم‬",curve_segments:"‫منحنی‬",text_contents:"‫تغییر محتویات متن‬",font_family_label:"Font:",font_family:"‫تغییر خانواده قلم‬",font_size:"‫تغییر اندازه قلم‬",bold:"‫متن توپر ",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"‫متن کج ",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"‫تغییر رنگ پس زمینه / تاری‬",connector_no_arrow:"No arrow",fitToContent:"‫هم اندازه شدن با محتوا‬",fit_to_all:"‫هم اندازه شدن با همه محتویات‬",fit_to_canvas:"‫هم اندازه شدن با صفحه مجازی (بوم)",fit_to_layer_content:"‫هم اندازه شدن با محتوای لایه‬",fit_to_sel:"‫هم اندازه شدن با اشیاء انتخاب شده‬",align_relative_to:"‫تراز نسبت به ...",relativeTo:"‫نسبت به:",page:"‫صفحه‬",largest_object:"‫بزرگترین شئ‬",selected_objects:"‫اشیاء انتخاب شده‬",smallest_object:"‫کوچکترین شئ‬",new_doc:"‫تصویر جدید ",open_doc:"‫باز کردن تصویر ",export_img:"Export",save_doc:"‫ذخیره تصویر ",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"‫تراز پایین‬",align_center:"‫وسط چین‬",align_left:"‫چپ چین‬",align_middle:"‫تراز میانه‬",align_right:"‫راست چین‬",align_top:"‫تراز بالا‬",mode_select:"‫ابزار انتخاب ",mode_fhpath:"‫ابزار مداد ",mode_line:"‫ابزار خط ",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"‫مستطیل با قابلیت تغییر پویا‬",mode_ellipse:"‫بیضی‬",mode_circle:"‫دایره‬",mode_fhellipse:"‫بیضی با قابلیت تغییر پویا‬",mode_path:"‫ابزار مسیر ",mode_text:"‫ابزار متن ",mode_image:"‫ابزار تصویر ",mode_zoom:"‫ابزار بزرگ نمایی ",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"‫واگرد ",redo:"‫ازنو ",tool_source:"‫ویرایش منبع ",wireframe_mode:"‫حالت نمایش لبه ها ",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"‫قرار دادن عناصر در گروه ",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"‫تبدیل به مسیر‬",reorient_path:"‫جهت دهی مجدد مسیر‬",ungroup:"‫خارج کردن عناصر از گروه ",docprops:"‫مشخصات سند ",editor_homepage:"SVG-Edit Home Page",move_bottom:"‫انتقال به پایین ترین ",move_top:"‫انتقال به بالاترین ",node_clone:"‫ایجاد کپی از نقطه‬",node_delete:"‫حذف نقطه‬",node_link:"‫پیوند دادن نقاط کنترل‬",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"‫اعمال تغییرات‬",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"حذف",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"‫لایه‬",layers:"Layers",del:"‫حذف لایه‬",move_down:"‫انتقال لایه به پایین‬",new:"‫لایه جدید‬",rename:"‫تغییر نام لایه‬",move_up:"‫انتقال لایه به بالا‬",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"‫انتقال عناصر به:",move_selected:"‫انتقال عناصر انتخاب شده به یک لایه متفاوت‬"},config:{image_props:"‫مشخصات تصویر‬",doc_title:"‫عنوان‬",doc_dims:"‫ابعاد صفحه مجازی (بوم)",included_images:"‫تصاویر گنجانده شده‬",image_opt_embed:"‫داده های جای داده شده (پرونده های محلی)",image_opt_ref:"‫استفاده از ارجاع به پرونده‬",editor_prefs:"‫تنظیمات ویراستار‬",language:"‫زبان‬",background:"‫پس زمینه ویراستار‬",editor_img_url:"Image URL",editor_bg_note:"‫توجه: پس زمینه همراه تصویر ذخیره نخواهد شد.",select_predefined:"‫از پیش تعریف شده را انتخاب کنید:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"‫مقدار داده شده نامعتبر است‬",noContentToFitTo:"‫محتوایی برای هم اندازه شدن وجود ندارد‬",dupeLayerName:"‫لایه ای با آن نام وجود دارد!",enterUniqueLayerName:"‫لطفا یک نام لایه یکتا انتخاب کنید‬",enterNewLayerName:"‫لطفا نام لایه جدید را وارد کنید‬",layerHasThatName:"‫لایه از قبل آن نام را دارد‬",QmoveElemsToLayer:"‫عناصر انتخاب شده به لایه '%s' منتقل شوند؟‬",QwantToClear:"‫آیا مطمئن هستید که می خواهید نقاشی را پاک کنید؟\nاین عمل باعث حذف تاریخچه واگرد شما خواهد شد!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"‫در منبع SVG شما خطاهای تجزیه (parse) وجود داشت.\nبه منبع SVG اصلی بازگردانده شود؟‬",QignoreSourceChanges:"‫تغییرات اعمال شده در منبع SVG نادیده گرفته شوند؟‬",featNotSupported:"‫این ویژگی پشتیبانی نشده است‬",enterNewImgURL:"‫نشانی وب (url) تصویر جدید را وارد کنید‬",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),sB=Object.freeze({__proto__:null,default:{lang:"fi",dir:"ltr",common:{ok:"Tallentaa",cancel:"Peruuta",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klikkaa muuttaa täyttöväri, Shift-click vaihtaa aivohalvauksen väriä",zoom_level:"Muuta suurennustaso",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Muuta täyttöväri",stroke_color:"Muuta aivohalvaus väri",stroke_style:"Muuta aivohalvaus Dash tyyli",stroke_width:"Muuta aivohalvaus leveys",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Muuta kiertokulma",blur:"Change gaussian blur value",opacity:"Muuta valitun kohteen läpinäkyvyys",circle_cx:"Muuta Circlen CX koordinoida",circle_cy:"Muuta Circlen CY koordinoida",circle_r:"Muuta ympyrän säde",ellipse_cx:"Muuta ellipsi&#39;s CX koordinoida",ellipse_cy:"Muuta ellipsi&#39;s CY koordinoida",ellipse_rx:"Muuta ellipsi&#39;s x säde",ellipse_ry:"Muuta ellipsi n y säde",line_x1:"Muuta Linen alkaa x-koordinaatti",line_x2:"Muuta Linen päättyy x koordinoida",line_y1:"Muuta Linen alkaa y-koordinaatti",line_y2:"Muuta Linen päättyy y koordinoida",rect_height:"Muuta suorakaiteen korkeus",rect_width:"Muuta suorakaiteen leveys",corner_radius:"Muuta suorakaide Corner Säde",image_width:"Muuta kuvan leveys",image_height:"Muuta kuvan korkeus",image_url:"Muuta URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Muuta tekstin sisältö",font_family_label:"Font:",font_family:"Muuta Font Family",font_size:"Muuta fontin kokoa",bold:"Lihavoitu teksti",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Kursivoitu",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Vaihda taustaväri / sameuden",connector_no_arrow:"No arrow",fitToContent:"Sovita Content",fit_to_all:"Sovita kaikki content",fit_to_canvas:"Sovita kangas",fit_to_layer_content:"Sovita kerros sisältöön",fit_to_sel:"Sovita valinta",align_relative_to:"Kohdista suhteessa ...",relativeTo:"suhteessa:",page:"sivulta",largest_object:"Suurin kohde",selected_objects:"valittujen objektien",smallest_object:"pienin kohde",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Keskitä",align_left:"Tasaa vasemmalle",align_middle:"Kohdista Lähi",align_right:"Tasaa oikealle",align_top:"Kohdista Top",mode_select:"Valitse työkalu",mode_fhpath:"Kynätyökalu",mode_line:"Viivatyökalulla",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand suorakaide",mode_ellipse:"Soikion",mode_circle:"Ympyrään",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Työkalua",mode_image:"Image Tool",mode_zoom:"Suurennustyökalu",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Kumoa",redo:"Tulppaamalla ilmakanavan",tool_source:"Muokkaa lähdekoodipaketti",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Tuoteryhmään Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Asiakirjan ominaisuudet",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Tallentaa",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Poista Layer",move_down:"Siirrä Layer alas",new:"New Layer",rename:"Nimeä Layer",move_up:"Siirrä Layer",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Valitse ennalta:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),lB=Object.freeze({__proto__:null,default:{lang:"fr",dir:"ltr",common:{ok:"OK",cancel:"Annuler",key_backspace:"Retour en Arrière",key_del:"Suppr.",key_down:"Bas",key_up:"Haut",more_opts:"Plus d'options",url:"URL",width:"Largeur",height:"Hauteur"},misc:{powered_by:"Propulsé par"},ui:{toggle_stroke_tools:"Montrer/cacher plus d'outils de contour",palette_info:"Cliquer pour changer la couleur de remplissage, Maj+clic pour changer la couleur de contour",zoom_level:"Changer le niveau de zoom",panel_action:"Cliquer pour ouvrir le panel de côté",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identifier l'élément",fill_color:"Changer la couleur de remplissage",stroke_color:"Changer la couleur du contour",stroke_style:"Changer le style du contour",stroke_width:"Changer la largeur du contour de 1, Maj+clic pour changer la largeur de 0,1",pos_x:"Changer l'abscisse (coordonnée X)",pos_y:"Changer l'ordonnée (coordonnée Y)",linecap_butt:"Terminaison : Sur le nœud",linecap_round:"Terminaison : Arrondie",linecap_square:"Terminaison : Carrée",linejoin_bevel:"Raccord : Biseauté",linejoin_miter:"Raccord : Droit",linejoin_round:"Raccord : Arrondi",angle:"Changer l'angle de rotation",blur:"Changer la valeur du flou gaussien",opacity:"Changer l'opacité de l'élément sélectionné",circle_cx:"Changer la position horizontale cx du cercle",circle_cy:"Changer la position verticale cy du cercle",circle_r:"Changer le rayon du cercle",ellipse_cx:"Changer la position horizontale cx de l'ellipse",ellipse_cy:"Changer la position verticale cy de l'ellipse",ellipse_rx:"Changer le rayon horizontal x de l'ellipse",ellipse_ry:"Changer le rayon vertical y de l'ellipse",line_x1:"Changer la position horizontale x de début de la ligne",line_x2:"Changer la position horizontale x de fin de la ligne",line_y1:"Changer la position verticale y de début de la ligne",line_y2:"Changer la position verticale y de fin de la ligne",rect_height:"Changer la hauteur du rectangle",rect_width:"Changer la largeur du rectangle",corner_radius:"Changer le rayon des coins du rectangle",image_width:"Changer la largeur de l'image",image_height:"Changer la hauteur de l'image",image_url:"Modifier l'URL",node_x:"Changer la positon horizontale x du nœud",node_y:"Changer la position verticale y du nœud",seg_type:"Changer le type du segment",straight_segments:"Droit",curve_segments:"Courbe",text_contents:"Changer le contenu du texte",font_family_label:"Font:",font_family:"Changer la famille de police",font_size:"Changer la taille de la police",bold:"Texte en gras",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Texte en italique",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Menu principal",bkgnd_color_opac:"Changer la couleur d'arrière-plan/l'opacité",connector_no_arrow:"Sans flèches",fitToContent:"Ajuster au contenu",fit_to_all:"Ajuster à l'ensemble du contenu",fit_to_canvas:"Ajuster au canevas",fit_to_layer_content:"Ajuster au contenu du calque",fit_to_sel:"Ajuster à la sélection",align_relative_to:"Aligner par rapport à…",relativeTo:"par rapport à :",page:"page",largest_object:"objet le plus gros",selected_objects:"objets sélectionnés",smallest_object:"objet le plus petit",new_doc:"Nouvelle image",open_doc:"Ouvrir une image SVG",export_img:"Exporter",save_doc:"Enregistrer l'image",import_doc:"Importer une image",align_to_page:"Aligner l'élément à la page",align_bottom:"Aligner en bas",align_center:"Centrer verticalement",align_left:"Aligner à gauche",align_middle:"Centrer horizontalement",align_right:"Aligner à droite",align_top:"Aligner en haut",mode_select:"Outil de sélection",mode_fhpath:"Crayon à main levée",mode_line:"Tracer des lignes",mode_rect:"Outil rectangle",mode_square:"Outil carré",mode_fhrect:"Rectangle à main levée",mode_ellipse:"Ellipse",mode_circle:"Cercle",mode_fhellipse:"Ellipse à main levée",mode_path:"Outil chemin",mode_text:"Outil texte",mode_image:"Outil image",mode_zoom:"Zoom",no_embed:"NOTE : Cette image ne peut pas être incorporée. Elle sera chargée à cette adresse",undo:"Annuler",redo:"Restaurer",tool_source:"Modifier la source",wireframe_mode:"Mode Fil de fer",clone:"Cloner élément(s)",del:"Supprimer élément(s)",group_elements:"Grouper les éléments",make_link:"Créer un hyperlien",set_link_url:"Définir l'URL du lien (laisser vide pour supprimer)",to_path:"Convertir en chemin",reorient_path:"Réorienter le chemin",ungroup:"Dégrouper les éléments",docprops:"Propriétés du document",editor_homepage:"Page d'accueil de SVG-Edit",move_bottom:"Déplacer vers le bas",move_top:"Déplacer vers le haut",node_clone:"Cloner le nœud",node_delete:"Supprimer le nœud",node_link:"Rendre les points de contrôle solidaires",add_subpath:"Ajouter un tracé secondaire",openclose_path:"Ouvrir/fermer le sous-chemin",source_save:"Appliquer les modifications",cut:"Couper",copy:"Copier",paste:"Coller",paste_in_place:"Coller sur place",delete:"Supprimer",group:"Grouper",move_front:"Placer au premier plan",move_up:"Avancer d'un plan",move_down:"Reculer d'un plan",move_back:"Placer au fond",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Outil Ellipse/Cercle",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Se souvenir de ce choix ?",remember_this_choice_title:"Si vous choisissez de désactiver le stockage tout en mémorisant ce choix, l'URL changera afin d'éviter de vous le demander à nouveau."},layers:{layer:"Calque",layers:"Calques",del:"Supprimer le calque",move_down:"Descendre le calque",new:"Nouveau calque",rename:"Renommer le calque",move_up:"Monter le calque",dupe:"Dupliquer le calque",merge_down:"Fusionner vers le bas",merge_all:"Tout fusionner",move_elems_to:"Déplacer les éléments vers :",move_selected:"Déplacer les éléments sélectionnés vers un autre calque"},config:{image_props:"Propriétés de l'image",doc_title:"Titre",doc_dims:"Dimensions du canevas",included_images:"Images insérées",image_opt_embed:"Incorporer les données des images (fichiers locaux)",image_opt_ref:"Utiliser l'adresse des fichiers",editor_prefs:"Préférences de l'éditeur",language:"Langue",background:"Toile de fond de l'éditeur",editor_img_url:"Image URL",editor_bg_note:"Note : La toile de fond ne sera pas sauvegardée avec l'image.",select_predefined:"Sélectionner prédéfinis :",units_and_rulers:"Unités et règles",show_rulers:"Afficher les règles",base_unit:"Unité de mesure :",grid:"Grille",snapping_onoff:"Ancrer oui/non",snapping_stepsize:"Pas d'ancrage :",grid_color:"Couleur de la grille",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"Nouvelle couleur - Appuyez sur &ldquo;OK&rdquo; pour valider",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Dégradé linéaire",jgraduate_radial_gradient:"Dégradé radial",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Cliquez pour définir l'angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Valeur fournie invalide",noContentToFitTo:"Il n'y a pas de contenu auquel ajuster",dupeLayerName:"Un autre calque porte déjà ce nom !",enterUniqueLayerName:"Veuillez entrer un nom (unique) pour le calque",enterNewLayerName:"Veuillez entrer le nouveau nom du calque",layerHasThatName:"Le calque porte déjà ce nom",QmoveElemsToLayer:"Déplacer les éléments sélectionnés vers le calque « %s » ?",QwantToClear:"Voulez-vous effacer le dessin ?\nL'historique de vos actions sera également effacé !",QwantToOpen:"Voulez-vous ouvrir un nouveau document ?\nVous perdrez l'historique de vos modifications !",QerrorsRevertToSource:"Il y a des erreurs de syntaxe dans votre code source SVG.\nRestaurer le code source SVG antérieur aux modifications ?",QignoreSourceChanges:"Ignorer les modifications faites à la source SVG ?",featNotSupported:"Fonction non supportée",enterNewImgURL:"Entrer la nouvelle URL de l'image",defsFailOnSave:"NOTE : En raison d'un bogue dans votre navigateur, il se peut que cette image ne soit pas correctement affichée (dégradés ou éléments manquants). Le souci sera néanmoins réglé à la sauvegarde.",loadingImage:"Chargement de l'image, veuillez patienter…",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Notez également les problèmes suivants : ",unsavedChanges:"Il y a des changements non sauvegardés.",enterNewLinkURL:"Entrez la nouvelle URL de l'hyperlien",errorLoadingSVG:"Erreur : Impossible de charger les données SVG",URLLoadFail:"Impossible de charger l'URL",retrieving:"Récupération de « %s »…",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),cB=Object.freeze({__proto__:null,default:{lang:"fy",dir:"ltr",common:{ok:"Ok",cancel:"Ôfbrekke",key_backspace:"backspace",key_del:"delete",key_down:"omleech",key_up:"omheech",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik om de folkleur te feroarjen, shift-klik om de linekleur te feroarjen.",zoom_level:"Yn-/útzoome",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Folkleur oanpasse",stroke_color:"Linekleur oanpasse",stroke_style:"Linestijl oanpasse",stroke_width:"Linebreedte oanpasse",pos_x:"X-koördinaat oanpasse",pos_y:"Y-koördinaat oanpasse",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Draaie",blur:"Change gaussian blur value",opacity:"Trochsichtigens oanpasse",circle_cx:"Feroarje it X-koördinaat fan it middelpunt fan'e sirkel.",circle_cy:"Feroarje it Y-koördinaat fan it middelpunt fan'e sirkel.",circle_r:"Feroarje sirkelradius",ellipse_cx:"Feroarje it X-koördinaat fan it middelpunt fan'e ellips.",ellipse_cy:"Feroarje it Y-koördinaat fan it middelpunt fan'e ellips.",ellipse_rx:"Feroarje ellips X radius",ellipse_ry:"Feroarje ellips Y radius",line_x1:"Feroarje start X koördinaat fan'e line",line_x2:"Feroarje ein X koördinaat fan'e line",line_y1:"Feroarje start Y koördinaat fan'e line",line_y2:"Feroarje ein Y koördinaat fan'e line",rect_height:"Hichte rjochthoeke oanpasse",rect_width:"Breedte rjochthoeke oanpasse",corner_radius:"Hoekeradius oanpasse",image_width:"Breedte ôfbielding oanpasse",image_height:"Hichte ôfbielding oanpasse",image_url:"URL oanpasse",node_x:"X-koördinaat knooppunt oanpasse",node_y:"Y-koördinaat knooppunt oanpasse",seg_type:"Segmenttype oanpasse",straight_segments:"Rjocht",curve_segments:"Bûcht",text_contents:"Tekst oanpasse",font_family_label:"Font:",font_family:"Lettertype oanpasse",font_size:"Lettergrutte oanpasse",bold:"Fet",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Skean",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Eftergrûnkleur/trochsichtigens oanpasse",connector_no_arrow:"No arrow",fitToContent:"Passe op ynhâld",fit_to_all:"Op alle ynhâld passe",fit_to_canvas:"Op kanvas passe",fit_to_layer_content:"Op laachynhâld passe",fit_to_sel:"Op seleksje passe",align_relative_to:"Útlijne relatyf oan...",relativeTo:"Relatief tsjinoer:",page:"Side",largest_object:"Grutste ûnderdiel",selected_objects:"Selektearre ûnderdielen",smallest_object:"Lytste ûnderdiel",new_doc:"Nije ôfbielding",open_doc:"Ôfbielding iepenje",export_img:"Export",save_doc:"Ôfbielding bewarje",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Ûnder útlijne",align_center:"Midden útlijne",align_left:"Lofts útlijne",align_middle:"Midden útlijne",align_right:"Rjochts útlijne",align_top:"Boppe útlijne",mode_select:"Selektearje",mode_fhpath:"Potlead",mode_line:"Line",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Frije rjochthoeke",mode_ellipse:"Ellips",mode_circle:"Sirkel",mode_fhellipse:"Frije ellips",mode_path:"Paad",mode_text:"Tekst",mode_image:"Ôfbielding",mode_zoom:"Zoom",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Ungedien meitjse",redo:"Op 'e nij",tool_source:"Boarne oanpasse",wireframe_mode:"Triemodel",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Ûnderdielen groepearje",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Omsette nei paad",reorient_path:"Paad opnij orientearje",ungroup:"Groepering opheffe",docprops:"Dokuminteigenskippen",editor_homepage:"SVG-Edit Home Page",move_bottom:"Nei eftergrûn",move_top:"Nei foargrûn",node_clone:"Knooppunt duplisearje",node_delete:"Knooppunt fuortsmite",node_link:"Knooppunten keppelje",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Feroarings tapasse",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Laach",layers:"Layers",del:"Laach fuortsmite",move_down:"Laach omleech bringe",new:"Nije laach",rename:"Laach omneame",move_up:"Laach omheech bringe",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Ûnderdielen ferplaate nei:",move_selected:"Selektearre ûnderdielen ferplaatse nei in oare laach"},config:{image_props:"Ôfbieldingseigenskippen",doc_title:"Titel",doc_dims:"Kanvasgrutte",included_images:"Ynslúten ôfbieldingen",image_opt_embed:"Ynformaasje tafoege (lokale triemen)",image_opt_ref:"Triemreferensje brûke",editor_prefs:"Eigenskippen bewurker",language:"Taal",background:"Eftergrûn bewurker",editor_img_url:"Image URL",editor_bg_note:"Let op: de eftergrûn wurd net mei de ôfbielding bewarre.",select_predefined:"Selektearje:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Ferkearde waarde jûn",noContentToFitTo:"Gjin ynhâld om te passen",dupeLayerName:"Der is al in laach mei dy namme!",enterUniqueLayerName:"Type in unyke laachnamme",enterNewLayerName:"Type in nije laachnamme",layerHasThatName:"Laach hat dy namme al",QmoveElemsToLayer:"Selektearre ûnderdielen ferplaatse nei '%s'?",QwantToClear:"Ôfbielding leechmeitsje? Dit sil ek de skiednis fuortsmite!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Der wiene flaters yn de SVG-boarne.\nWeromgean nei foarige SVG-boarne?",QignoreSourceChanges:"Feroarings yn SVG-boarne negeare?",featNotSupported:"Funksje wurdt net ûndersteund",enterNewImgURL:"Jou de nije URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s'...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),AB=Object.freeze({__proto__:null,default:{lang:"ga",dir:"ltr",common:{ok:"Sábháil",cancel:"Cealaigh",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Cliceáil chun athrú a líonadh dath, aistriú-cliceáil chun dath a athrú stróc",zoom_level:"Athraigh súmáil leibhéal",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Athraigh an dath a líonadh",stroke_color:"Dath stróc Athrú",stroke_style:"Athraigh an stíl Fleasc stróc",stroke_width:"Leithead stróc Athrú",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Uillinn rothlaithe Athrú",blur:"Change gaussian blur value",opacity:"Athraigh roghnaithe teimhneacht mír",circle_cx:"Athraigh an ciorcal a chomhordú CX",circle_cy:"Athraigh an ciorcal a chomhordú ga",circle_r:"Athraigh an ciorcal&#39;s ga",ellipse_cx:"Athraigh Éilips&#39;s CX a chomhordú",ellipse_cy:"Athraigh an Éilips a chomhordú ga",ellipse_rx:"Éilips Athraigh an gha x",ellipse_ry:"Éilips Athraigh an gha y",line_x1:"Athraigh an líne tosaigh a chomhordú x",line_x2:"Athraigh an líne deireadh x chomhordú",line_y1:"Athraigh an líne tosaigh a chomhordú y",line_y2:"Athrú ar líne deireadh y chomhordú",rect_height:"Airde dronuilleog Athrú",rect_width:"Leithead dronuilleog Athrú",corner_radius:"Athraigh Dronuilleog Cúinne na Ga",image_width:"Leithead íomhá Athrú",image_height:"Airde íomhá Athrú",image_url:"Athraigh an URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Inneachar Athraigh téacs",font_family_label:"Font:",font_family:"Athraigh an Cló Teaghlaigh",font_size:"Athraigh Clómhéid",bold:"Trom Téacs",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Iodálach Téacs",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Dath cúlra Athraigh / teimhneacht",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Laghdaigh do gach ábhar",fit_to_canvas:"Laghdaigh ar chanbhás",fit_to_layer_content:"Laghdaigh shraith ábhar a",fit_to_sel:"Laghdaigh a roghnú",align_relative_to:"Ailínigh i gcomparáid leis ...",relativeTo:"i gcomparáid leis:",page:"leathanach",largest_object:"réad is mó",selected_objects:"réada tofa",smallest_object:"lú réad",new_doc:"Íomhá Nua",open_doc:"Íomhá Oscailte",export_img:"Export",save_doc:"Sábháil Íomhá",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Cineál Bun",align_center:"Ailínigh sa Lár",align_left:"Ailínigh ar Chlé",align_middle:"Cineál Middle",align_right:"Ailínigh ar Dheis",align_top:"Cineál Barr",mode_select:"Roghnaigh Uirlis",mode_fhpath:"Phionsail Uirlis",mode_line:"Uirlis Líne",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Saor Hand Dronuilleog",mode_ellipse:"Éilips",mode_circle:"Ciorcal",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Téacs Uirlis",mode_image:"Íomhá Uirlis",mode_zoom:"Zúmáil Uirlis",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Cealaigh",redo:"Athdhéan",tool_source:"Cuir Foinse",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Eilimintí Grúpa",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Eilimintí Díghrúpáil",docprops:"Doiciméad Airíonna",editor_homepage:"SVG-Edit Home Page",move_bottom:"Téigh go Bun",move_top:"Téigh go Barr",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Sábháil",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Scrios Sraith",move_down:"Bog Sraith Síos",new:"Sraith Nua",rename:"Athainmnigh Sraith",move_up:"Bog Sraith Suas",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Roghnaigh réamhshainithe:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),dB=Object.freeze({__proto__:null,default:{lang:"gl",dir:"ltr",common:{ok:"Gardar",cancel:"Cancelar",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Preme aquí para cambiar a cor de recheo, Shift-clic para cambiar a cor do curso",zoom_level:"Cambiar o nivel de zoom",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Cambia-la cor de recheo",stroke_color:"Cambiar a cor do curso",stroke_style:"Modifica o estilo do trazo do curso",stroke_width:"Cambiar o ancho do curso",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Cambiar o ángulo de xiro",blur:"Change gaussian blur value",opacity:"Cambia a opacidade elemento seleccionado",circle_cx:"Cx Cambiar círculo de coordenadas",circle_cy:"Círculo Cambio cy coordinar",circle_r:"Cambiar círculo de raio",ellipse_cx:"Cambiar elipse cx coordinar",ellipse_cy:"Elipse Cambio cy coordinar",ellipse_rx:"Raios X Change elipse",ellipse_ry:"Radio y Change elipse",line_x1:"Cambie a liña de partida coordenada x",line_x2:"Cambie a liña acaba coordenada x",line_y1:"Cambio na liña do recurso coordinada y",line_y2:"Salto de liña acaba coordinada y",rect_height:"Cambiar altura do rectángulo",rect_width:"Cambiar a largo rectángulo",corner_radius:"Cambiar Corner Rectangle Radius",image_width:"Cambiar o ancho da imaxe",image_height:"Cambiar altura da imaxe",image_url:"Cambiar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Cambiar o contido de texto",font_family_label:"Font:",font_family:"Cambiar fonte Familia",font_size:"Mudar tamaño de letra",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Texto en cursiva",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mudar a cor de fondo / Opacidade",connector_no_arrow:"No arrow",fitToContent:"Axustar ó contido",fit_to_all:"Axustar a todo o contido",fit_to_canvas:"Axustar a pantalla",fit_to_layer_content:"Axustar o contido da capa de",fit_to_sel:"Axustar a selección",align_relative_to:"Aliñar en relación a ...",relativeTo:"en relación ao:",page:"Portada",largest_object:"maior obxecto",selected_objects:"obxectos elixidos",smallest_object:"menor obxecto",new_doc:"Nova Imaxe",open_doc:"Abrir Imaxe",export_img:"Export",save_doc:"Gardar Imaxe",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align bottom",align_center:"Centrar",align_left:"Aliñar á Esquerda",align_middle:"Aliñar Medio",align_right:"Aliñar á Dereita",align_top:"Align Top",mode_select:"Seleccionar a ferramenta",mode_fhpath:"Ferramenta Lapis",mode_line:"Ferramenta Liña",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Ferramenta de Texto",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Desfacer",redo:"Volver",tool_source:"Fonte Editar",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementos do grupo",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elementos Desagrupadas",docprops:"Propriedades do Documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move a Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Gardar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move capa inferior",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Seleccione por defecto:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),uB=Object.freeze({__proto__:null,default:{lang:"he",dir:"rtl",common:{ok:"לשמור",cancel:"ביטול",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"לחץ כדי לשנות צבע מילוי, לחץ על Shift-לשנות צבע שבץ",zoom_level:"שינוי גודל תצוגה",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"שינוי צבע מילוי",stroke_color:"שינוי צבע שבץ",stroke_style:"דש שבץ שינוי סגנון",stroke_width:"שינוי רוחב שבץ",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"שינוי זווית הסיבוב",blur:"Change gaussian blur value",opacity:"שינוי הפריט הנבחר אטימות",circle_cx:"CX מעגל של שנה לתאם",circle_cy:"מעגל שנה של cy לתאם",circle_r:"מעגל שנה של רדיוס",ellipse_cx:"שינוי של אליפסה CX לתאם",ellipse_cy:"אליפסה שינוי של cy לתאם",ellipse_rx:"אליפסה שינוי של רדיוס x",ellipse_ry:"אליפסה שינוי של Y רדיוס",line_x1:"שינוי קו ההתחלה של x לתאם",line_x2:"שינוי קו הסיום של x לתאם",line_y1:"שינוי קו ההתחלה של Y לתאם",line_y2:"שינוי קו הסיום של Y לתאם",rect_height:"שינוי גובה המלבן",rect_width:"שינוי רוחב המלבן",corner_radius:"לשנות מלבן פינת רדיוס",image_width:"שינוי רוחב התמונה",image_height:"שינוי גובה התמונה",image_url:"שינוי כתובת",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"שינוי תוכן טקסט",font_family_label:"Font:",font_family:"שינוי גופן משפחה",font_size:"שנה גודל גופן",bold:"טקסט מודגש",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"טקסט נטוי",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"שנה את צבע הרקע / אטימות",connector_no_arrow:"No arrow",fitToContent:"התאם תוכן",fit_to_all:"התאם התכנים",fit_to_canvas:"התאם בד",fit_to_layer_content:"מתאים לתוכן שכבת",fit_to_sel:"התאם הבחירה",align_relative_to:"יישור ביחס ...",relativeTo:"יחסית:",page:"דף",largest_object:"האובייקט הגדול",selected_objects:"elected objects",smallest_object:"הקטן אובייקט",new_doc:"תמונה חדשה",open_doc:"פתח תמונה",export_img:"Export",save_doc:"שמור תמונה",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"יישור תחתון",align_center:"ישור לאמצע",align_left:"יישור לשמאל",align_middle:"יישור התיכון",align_right:"יישור לימין",align_top:"יישור למעלה",mode_select:"Select Tool",mode_fhpath:"כלי העיפרון",mode_line:"כלי הקו",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand מלבן",mode_ellipse:"אליפסה",mode_circle:"Circle",mode_fhellipse:"Free-Hand אליפסה",mode_path:"Path Tool",mode_text:"כלי טקסט",mode_image:"כלי תמונה",mode_zoom:"זום כלי",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"בטל",redo:"בצע שוב",tool_source:"מקור ערוך",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"אלמנטים הקבוצה",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"אלמנטים פרק קבוצה",docprops:"מאפייני מסמך",editor_homepage:"SVG-Edit Home Page",move_bottom:"הזז למטה",move_top:"עבור לראש הדף",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"לשמור",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"מחיקת שכבה",move_down:"הזז למטה שכבה",new:"שכבהחדשה",rename:"שינוי שם שכבה",move_up:"העבר שכבה Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"בחר מוגדרים מראש:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),pB=Object.freeze({__proto__:null,default:{lang:"hi",dir:"ltr",common:{ok:"बचाना",cancel:"रद्द करें",key_backspace:"बैकस्पेस",key_del:"हटायें",key_down:"नीचे",key_up:"ऊपर",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"रंग बदलने पर क्लिक करें, बदलाव भरने के क्लिक करने के लिए स्ट्रोक का रंग बदलने के लिए",zoom_level:"बदलें स्तर ज़ूम",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"बदलें का रंग भरना",stroke_color:"बदलें स्ट्रोक रंग",stroke_style:"बदलें स्ट्रोक डेश शैली",stroke_width:"बदलें स्ट्रोक चौड़ाई",pos_x:"X समकक्ष बदलें ",pos_y:"Y समकक्ष बदलें",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"बदलें रोटेशन कोण",blur:"Change gaussian blur value",opacity:"पारदर्शिता बदलें",circle_cx:"बदल रहा है चक्र cx समन्वय",circle_cy:"परिवर्तन चक्र cy समन्वय है",circle_r:"बदल रहा है चक्र त्रिज्या",ellipse_cx:"बदलें दीर्घवृत्त है cx समन्वय",ellipse_cy:"बदलें दीर्घवृत्त cy समन्वय है",ellipse_rx:"बदल रहा है दीर्घवृत्त x त्रिज्या",ellipse_ry:"बदल रहा है दीर्घवृत्त y त्रिज्या",line_x1:"बदल रहा है लाइन x समन्वय शुरू",line_x2:"बदल रहा है लाइन x समन्वय समाप्त",line_y1:"बदलें रेखा y शुरू हो रहा है समन्वय",line_y2:"बदलें रेखा y अंत है समन्वय",rect_height:"बदलें आयत ऊंचाई",rect_width:"बदलें आयत चौड़ाई",corner_radius:"बदलें आयत कॉर्नर त्रिज्या",image_width:"बदलें छवि चौड़ाई",image_height:"बदलें छवि ऊँचाई",image_url:"बदलें यूआरएल",node_x:"नोड का x समकक्ष बदलें",node_y:"नोड का y समकक्ष बदलें",seg_type:"वर्ग प्रकार बदलें",straight_segments:"सीधे वर्ग",curve_segments:"घुमाव",text_contents:"बदलें पाठ सामग्री",font_family_label:"Font:",font_family:"बदलें फ़ॉन्ट परिवार",font_size:"फ़ॉन्ट का आकार बदलें",bold:"मोटा पाठ",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"इटैलिक पाठ",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"पृष्ठभूमि का रंग बदल / अस्पष्टता",connector_no_arrow:"No arrow",fitToContent:"सामग्री के लिए फिट",fit_to_all:"सभी सामग्री के लिए फिट",fit_to_canvas:"फिट कैनवास को",fit_to_layer_content:"फिट परत सामग्री के लिए",fit_to_sel:"चयन के लिए फिट",align_relative_to:"संरेखित करें रिश्तेदार को ...",relativeTo:"रिश्तेदार को:",page:"पृष्ठ",largest_object:"सबसे बड़ी वस्तु",selected_objects:"निर्वाचित वस्तुओं",smallest_object:"छोटी से छोटी वस्तु",new_doc:"नई छवि",open_doc:"छवि खोलें",export_img:"Export",save_doc:"सहेजें छवि",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"तलमेंपंक्तिबद्धकरें",align_center:"मध्य में समंजित करें",align_left:" पंक्तिबद्ध करें",align_middle:"मध्य संरेखित करें",align_right:"दायाँपंक्तिबद्धकरें",align_top:"शीर्षमेंपंक्तिबद्धकरें",mode_select:"उपकरण चुनें",mode_fhpath:"पेंसिल उपकरण",mode_line:"लाइन उपकरण",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"नि: शुल्क हाथ आयत",mode_ellipse:"दीर्घवृत्त",mode_circle:"वृत्त",mode_fhellipse:"नि: शुल्क हाथ दीर्घवृत्त",mode_path:"Path Tool",mode_text:"पाठ उपकरण",mode_image:"छवि उपकरण",mode_zoom:"ज़ूम उपकरण",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"पूर्ववत करें",redo:"फिर से करें",tool_source:"स्रोत में बदलाव करें",wireframe_mode:"रूपरेखा मोड",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"समूह तत्वों",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"पथ में बदलें",reorient_path:"पथ को नई दिशा दें",ungroup:"अंश को समूह से अलग करें",docprops:"दस्तावेज़ गुण",editor_homepage:"SVG-Edit Home Page",move_bottom:"नीचे ले जाएँ",move_top:"ऊपर ले जाएँ",node_clone:"नोड क्लोन",node_delete:"नोड हटायें",node_link:"कड़ी नियंत्रण बिंदु",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"बचाना",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"परत",layers:"Layers",del:"परत हटाएँ",move_down:"परत नीचे ले जाएँ",new:"नई परत",rename:"परत का नाम बदलें",move_up:"परत ऊपर ले जाएँ",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"अंश को ले जाएँ:",move_selected:"चयनित अंश को दूसरी परत पर ले जाएँ"},config:{image_props:"छवि के गुण",doc_title:"शीर्षक",doc_dims:"कैनवास आयाम",included_images:"शामिल छवियाँ",image_opt_embed:"एम्बेड डेटा (स्थानीय फ़ाइलें)",image_opt_ref:"फाइल के संदर्भ का प्रयोग",editor_prefs:"संपादक वरीयताएँ",language:"भाषा",background:"संपादक पृष्ठभूमि",editor_img_url:"Image URL",editor_bg_note:"नोट: पृष्ठभूमि छवि के साथ नहीं बचायी जाएगी",select_predefined:"चुनें पूर्वनिर्धारित:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"अमान्य मूल्य",noContentToFitTo:"कोई सामग्री फिट करने के लिए उपलब्ध नहीं",dupeLayerName:"इस नाम कि परत पहले से मौजूद है !",enterUniqueLayerName:"कृपया परत का एक अद्वितीय नाम डालें",enterNewLayerName:"कृपया परत का एक नया नाम डालें",layerHasThatName:"परत का पहले से ही यही नाम है",QmoveElemsToLayer:"चयनित अंश को परत '%s' पर ले जाएँ ?",QwantToClear:"क्या आप छवि साफ़ करना चाहते हैं?\nयह आपके उन्डू इतिहास को भी मिटा देगा!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"आपके एस.वी.जी. स्रोत में त्रुटियों थी.\nक्या आप मूल एस.वी.जी स्रोत पर वापिस जाना चाहते हैं?",QignoreSourceChanges:"एसवीजी स्रोत से लाये बदलावों को ध्यान न दें?",featNotSupported:"सुविधा असमर्थित है",enterNewImgURL:"नई छवि URL दर्ज करें",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),hB=Object.freeze({__proto__:null,default:{lang:"hr",dir:"ltr",common:{ok:"Spremiti",cancel:"Odustani",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Kliknite promijeniti boju ispune, shift-click to promijeniti boju moždanog udara",zoom_level:"Promjena razine zumiranja",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Promjena boje ispune",stroke_color:"Promjena boje moždani udar",stroke_style:"Promijeni stroke crtica stil",stroke_width:"Promjena širine moždani udar",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Promijeni rotation angle",blur:"Change gaussian blur value",opacity:"Promjena odabrane stavke neprozirnost",circle_cx:"Promjena krug&#39;s CX koordinirati",circle_cy:"Cy Promijeni krug je koordinirati",circle_r:"Promjena krug je radijusa",ellipse_cx:"Promjena elipsa&#39;s CX koordinirati",ellipse_cy:"Cy Promijeni elipsa je koordinirati",ellipse_rx:"Promijeniti elipsa&#39;s x polumjer",ellipse_ry:"Promjena elipsa&#39;s y polumjer",line_x1:"Promijeni linija je početak x koordinatu",line_x2:"Promjena linije završetak x koordinatu",line_y1:"Promijeni linija je početak y koordinatu",line_y2:"Promjena linije završetak y koordinatu",rect_height:"Promijeni pravokutnik visine",rect_width:"Promijeni pravokutnik širine",corner_radius:"Promijeni Pravokutnik Corner Radius",image_width:"Promijeni sliku širine",image_height:"Promijeni sliku visina",image_url:"Promijeni URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Promjena sadržaja teksta",font_family:"Promjena fontova",font_size:"Change font size",bold:"Podebljani tekst",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Promijeni boju pozadine / neprozirnost",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Prilagodi na sve sadržaje",fit_to_canvas:"Prilagodi na platnu",fit_to_layer_content:"Prilagodi sloj sadržaj",fit_to_sel:"Prilagodi odabir",align_relative_to:"Poravnaj u odnosu na ...",relativeTo:"u odnosu na:",page:"stranica",largest_object:"najveći objekt",selected_objects:"izabrani objekti",smallest_object:"najmanji objekt",new_doc:"Nove slike",open_doc:"Otvori sliku",export_img:"Export",save_doc:"Spremanje slike",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Poravnaj dolje",align_center:"Centriraj",align_left:"Poravnaj lijevo",align_middle:"Poravnaj Srednji",align_right:"Poravnaj desno",align_top:"Poravnaj Top",mode_select:"Odaberite alat",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Pravokutnik",mode_ellipse:"Elipsa",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Tekst Alat",mode_image:"Image Tool",mode_zoom:"Alat za zumiranje",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Poništi",redo:"Redo",tool_source:"Uredi Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grupa Elementi",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Razgrupiranje Elementi",docprops:"Svojstva dokumenta",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Pomakni na vrh",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Spremiti",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Brisanje sloja",move_down:"Move Layer Down",new:"New Layer",rename:"Preimenuj Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Select predefinirane:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),gB=Object.freeze({__proto__:null,default:{lang:"hu",dir:"ltr",common:{ok:"Ment",cancel:"Szakítani",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Kattints ide a változások töltse szín, shift-click változtatni stroke color",zoom_level:"Change nagyítási",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Change töltse color",stroke_color:"Change stroke color",stroke_style:"Change stroke kötőjel style",stroke_width:"Change stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Váltás forgás szög",blur:"Change gaussian blur value",opacity:"A kijelölt elem opacity",circle_cx:"Change kör CX koordináta",circle_cy:"Change kör cy koordináta",circle_r:"Change kör sugara",ellipse_cx:"Change ellipszis&#39;s CX koordináta",ellipse_cy:"Change ellipszis&#39;s cy koordináta",ellipse_rx:"Change ellipszis&#39;s x sugarú",ellipse_ry:"Change ellipszis&#39;s y sugara",line_x1:"A sor kezd x koordináta",line_x2:"A sor vége az x koordináta",line_y1:"A sor kezd y koordináta",line_y2:"A sor vége az y koordináta",rect_height:"Change téglalap magassága",rect_width:"Change téglalap szélessége",corner_radius:"Change téglalap sarok sugara",image_width:"Change kép szélessége",image_height:"Kép módosítása height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"A szöveg tartalma",font_family_label:"Font:",font_family:"Change Betűcsalád",font_size:"Change font size",bold:"Félkövér szöveg",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Dőlt szöveg",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color / homályosság",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Illeszkednek az összes tartalom",fit_to_canvas:"Igazítás a vászonra",fit_to_layer_content:"Igazítás a réteg tartalma",fit_to_sel:"Igazítás a kiválasztási",align_relative_to:"Képest Igazítás ...",relativeTo:"relatív hogy:",page:"Page",largest_object:"legnagyobb objektum",selected_objects:"választott tárgyak",smallest_object:"legkisebb objektum",new_doc:"Új kép",open_doc:"Kép megnyitása",export_img:"Export",save_doc:"Kép mentése más",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Alulra igazítás",align_center:"Középre igazítás",align_left:"Balra igazítás",align_middle:"Közép-align",align_right:"Jobbra igazítás",align_top:"Align Top",mode_select:"Válassza ki az eszközt",mode_fhpath:"Ceruza eszköz",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand téglalap",mode_ellipse:"Ellipszisszelet",mode_circle:"Körbe",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Szöveg eszköz",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Visszavon",redo:"Megismétléséhez",tool_source:"Szerkesztés Forrás",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Csoport elemei",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Szétbont elemei",docprops:"Dokumentum tulajdonságai",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mozgatás lefelé",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Ment",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Réteg törlése",move_down:"Mozgatása lefelé",new:"Új réteg",rename:"Réteg átnevezése",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Válassza ki előre definiált:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),_B=Object.freeze({__proto__:null,default:{lang:"hy",dir:"ltr",common:{ok:"Save",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family:"Change Font Family",font_family_label:"Font:",font_size:"Change Font Size",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"elected objects",smallest_object:"smallest object",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),mB=Object.freeze({__proto__:null,default:{lang:"id",dir:"ltr",common:{ok:"Simpan",cancel:"Batal",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik untuk mengubah warna mengisi, shift-klik untuk mengubah warna stroke",zoom_level:"Mengubah tingkat pembesaran",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Ubah warna mengisi",stroke_color:"Ubah warna stroke",stroke_style:"Ubah gaya dash stroke",stroke_width:"Ubah stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Ubah sudut rotasi",blur:"Change gaussian blur value",opacity:"Mengubah item yang dipilih keburaman",circle_cx:"Mengubah koordinat lingkaran cx",circle_cy:"Mengubah koordinat cy lingkaran",circle_r:"Ubah jari-jari lingkaran",ellipse_cx:"Ubah elips&#39;s cx koordinat",ellipse_cy:"Ubah elips&#39;s cy koordinat",ellipse_rx:"Ubah elips&#39;s x jari-jari",ellipse_ry:"Ubah elips&#39;s y jari-jari",line_x1:"Ubah baris mulai x koordinat",line_x2:"Ubah baris&#39;s Berakhir x koordinat",line_y1:"Ubah baris mulai y koordinat",line_y2:"Ubah baris di tiap akhir y koordinat",rect_height:"Perubahan tinggi persegi panjang",rect_width:"Ubah persegi panjang lebar",corner_radius:"Ubah Corner Rectangle Radius",image_width:"Ubah Lebar gambar",image_height:"Tinggi gambar Perubahan",image_url:"Ubah URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Ubah isi teks",font_family:"Ubah Font Keluarga",font_family_label:"Font:",font_size:"Ubah Ukuran Font",bold:"Bold Teks",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Teks",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mengubah warna latar belakang / keburaman",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Cocok untuk semua konten",fit_to_canvas:"Muat kanvas",fit_to_layer_content:"Muat konten lapisan",fit_to_sel:"Fit seleksi",align_relative_to:"Rata relatif ...",relativeTo:"relatif:",page:"Halaman",largest_object:"objek terbesar",selected_objects:"objek terpilih",smallest_object:"objek terkecil",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Rata Bottom",align_center:"Rata Tengah",align_left:"Rata Kiri",align_middle:"Rata Tengah",align_right:"Rata Kanan",align_top:"Rata Top",mode_select:"Pilih Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Persegi Panjang",mode_ellipse:"Ellipse",mode_circle:"Lingkaran",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Teks Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Kelompok Elemen",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elemen",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Pindah ke Bawah",move_top:"Pindahkan ke Atas",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Simpan",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Hapus Layer",move_down:"Pindahkan Layer Bawah",new:"New Layer",rename:"Rename Layer",move_up:"Pindahkan Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Pilih standar:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),fB=Object.freeze({__proto__:null,default:{lang:"is",dir:"ltr",common:{ok:"Vista",cancel:"Hætta",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Smelltu hér til að breyta fylla lit, Shift-smelltu til að breyta högg lit",zoom_level:"Breyta Stækkunarstig",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Breyta fylla color",stroke_color:"Breyta heilablķđfall color",stroke_style:"Breyta heilablķđfall þjóta stíl",stroke_width:"Breyta heilablķđfall width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Breyting snúningur horn",blur:"Change gaussian blur value",opacity:"Breyta valin atriði opacity",circle_cx:"Cx Breyta hring er að samræma",circle_cy:"Breyta hring&#39;s cy samræma",circle_r:"Radíus Breyta hringsins er",ellipse_cx:"Breyta sporbaug&#39;s cx samræma",ellipse_cy:"Breyta sporbaug&#39;s cy samræma",ellipse_rx:"X radíus Breyta sporbaug&#39;s",ellipse_ry:"Y radíus Breyta sporbaug&#39;s",line_x1:"Breyta lína í byrjun x samræma",line_x2:"Breyta lína&#39;s Ending x samræma",line_y1:"Breyta lína í byrjun y samræma",line_y2:"Breyta lína er endir y samræma",rect_height:"Breyta rétthyrningur hæð",rect_width:"Skipta rétthyrningur width",corner_radius:"Breyta rétthyrningur Corner Radíus",image_width:"Breyta mynd width",image_height:"Breyta mynd hæð",image_url:"Breyta URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Breyta texta innihald",font_family_label:"Font:",font_family:"Change Leturfjölskylda",font_size:"Breyta leturstærð",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Breyta bakgrunnslit / opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Laga til efni",fit_to_canvas:"Fit á striga",fit_to_layer_content:"Laga til lag efni",fit_to_sel:"Fit til val",align_relative_to:"Jafna miðað við ...",relativeTo:"hlutfallslegt til:",page:"síðu",largest_object:"stærsti hlutinn",selected_objects:"kjörinn hlutir",smallest_object:"lítill hluti",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Jafna Bottom",align_center:"Jafna Center",align_left:"Vinstri jöfnun",align_middle:"Jafna Mið",align_right:"Hægri jöfnun",align_top:"Jöfnun Top",mode_select:"Veldu Tól",mode_fhpath:"Blýantur Tól",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand rétthyrningur",mode_ellipse:"Sporbaugur",mode_circle:"Circle",mode_fhellipse:"Free-Hand Sporbaugur",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Mynd Tól",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Hætta",redo:"Endurtaka",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Færa Bottom",move_top:"Fara efst á síðu",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Vista",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Eyða Lag",move_down:"Færa Layer Down",new:"Lag",rename:"Endurnefna Lag",move_up:"Færa Lag Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Veldu predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),yB=Object.freeze({__proto__:null,default:{lang:"it",dir:"ltr",common:{ok:"Salva",cancel:"Annulla",key_backspace:"backspace",key_del:"Canc",key_down:"giù",key_up:"su",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Mostra/nascondi strumenti per il tratto",palette_info:"Fare clic per cambiare il colore di riempimento, shift-click per cambiare colore del tratto",zoom_level:"Cambia il livello di zoom",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identifica l'elemento",fill_color:"Cambia il colore di riempimento",stroke_color:"Cambia il colore del tratto",stroke_style:"Cambia lo stile del tratto",stroke_width:"Cambia la larghezza del tratto",pos_x:"Modifica la coordinata x",pos_y:"Modifica la coordinata y",linecap_butt:"Inizio linea: Punto",linecap_round:"Inizio linea: Tondo",linecap_square:"Inizio linea: Quadrato",linejoin_bevel:"Giunzione: smussata",linejoin_miter:"Giunzione: spezzata",linejoin_round:"Giunzione: arrotondata",angle:"Cambia l'angolo di rotazione",blur:"Cambia l'intensità della sfocatura",opacity:"Cambia l'opacità dell'oggetto selezionato",circle_cx:"Cambia la coordinata Cx del cerchio",circle_cy:"Cambia la coordinata Cy del cerchio",circle_r:"Cambia il raggio del cerchio",ellipse_cx:"Cambia la coordinata Cx dell'ellisse",ellipse_cy:"Cambia la coordinata Cy dell'ellisse",ellipse_rx:"Cambia l'asse x dell'ellisse",ellipse_ry:"Cambia l'asse y dell'ellisse",line_x1:"Modifica la coordinata iniziale x della linea",line_x2:"Modifica la coordinata finale x della linea",line_y1:"Modifica la coordinata iniziale y della linea",line_y2:"Modifica la coordinata finale y della linea",rect_height:"Cambia l'altezza rettangolo",rect_width:"Cambia la larghezza rettangolo",corner_radius:"Cambia il raggio dell'angolo",image_width:"Cambia la larghezza dell'immagine",image_height:"Cambia l'altezza dell'immagine",image_url:"Cambia URL",node_x:"Modifica la coordinata x del nodo",node_y:"Modifica la coordinata y del nodo",seg_type:"Cambia il tipo di segmento",straight_segments:"Linea retta",curve_segments:"Curva",text_contents:"Cambia il contenuto del testo",font_family_label:"Font:",font_family:"Cambia il tipo di Font",font_size:"Modifica dimensione carattere",bold:"Grassetto",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Corsivo",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Menù principale",bkgnd_color_opac:"Cambia colore/opacità dello sfondo",connector_no_arrow:"No freccia",fitToContent:"Adatta al contenuto",fit_to_all:"Adatta a tutti i contenuti",fit_to_canvas:"Adatta all'area di disegno",fit_to_layer_content:"Adatta al contenuto del livello",fit_to_sel:"Adatta alla selezione",align_relative_to:"Allineati a ...",relativeTo:"Rispetto a:",page:"Pagina",largest_object:"Oggetto più grande",selected_objects:"Oggetti selezionati",smallest_object:"Oggetto più piccolo",new_doc:"Nuova immagine",open_doc:"Apri immagine",export_img:"Export",save_doc:"Salva",import_doc:"Importa SVG",align_to_page:"Allinea elementi alla pagina",align_bottom:"Allinea in basso",align_center:"Allinea al centro",align_left:"Allinea a sinistra",align_middle:"Allinea al centro",align_right:"Allinea a destra",align_top:"Allinea in alto",mode_select:"Seleziona",mode_fhpath:"Matita",mode_line:"Linea",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Rettangolo a mano libera",mode_ellipse:"Ellisse",mode_circle:"Cerchio",mode_fhellipse:"Ellisse a mano libera",mode_path:"Spezzata",mode_text:"Testo",mode_image:"Immagine",mode_zoom:"Zoom",no_embed:"NOTA: L'immagine non può essere incorporata: dipenderà dal percorso assoluto per essere vista",undo:"Annulla",redo:"Rifai",tool_source:"Modifica sorgente",wireframe_mode:"Contorno",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Raggruppa elementi",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Converti in tracciato",reorient_path:"Riallinea",ungroup:"Separa gli elementi",docprops:"Proprietà del documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Sposta in fondo",move_top:"Sposta in cima",node_clone:"Clona nodo",node_delete:"Elimina nodo",node_link:"Collegamento tra punti di controllo",add_subpath:"Aggiungi sotto-percorso",openclose_path:"Apri/chiudi spezzata",source_save:"Salva",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Livello",layers:"Layers",del:"Elimina il livello",move_down:"Sposta indietro il livello",new:"Nuovo livello",rename:"Rinomina il livello",move_up:"Sposta avanti il livello",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Sposta verso:",move_selected:"Sposta gli elementi in un diverso livello"},config:{image_props:"Proprietà Immagine",doc_title:"Titolo",doc_dims:"Dimensioni dell'area di disegno",included_images:"Immagini incluse",image_opt_embed:"Incorpora dati (file locali)",image_opt_ref:"Usa l'identificativo di riferimento",editor_prefs:"Preferenze",language:"Lingua",background:"Sfondo dell'editor",editor_img_url:"Image URL",editor_bg_note:"Nota: Lo sfondo non verrà salvato con l'immagine.",select_predefined:"Selezioni predefinite:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Valore assegnato non valido",noContentToFitTo:"Non c'è contenuto cui adeguarsi",dupeLayerName:"C'è già un livello con questo nome!",enterUniqueLayerName:"Assegna un diverso nome a ciascun livello, grazie!",enterNewLayerName:"Assegna un nome al livello",layerHasThatName:"Un livello ha già questo nome",QmoveElemsToLayer:"Sposta gli elementi selezionali al livello '%s'?",QwantToClear:"Vuoi cancellare il disegno?\nVerrà eliminato anche lo storico delle modifiche!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Ci sono errori nel codice sorgente SVG.\nRitorno al codice originale?",QignoreSourceChanges:"Ignoro i cambiamenti nel sorgente SVG?",featNotSupported:"Caratteristica non supportata",enterNewImgURL:"Scrivi un nuovo URL per l'immagine",defsFailOnSave:"NOTA: A causa dlle caratteristiche del tuo browser, l'immagine potrà apparire errata (senza elementi o gradazioni) finché non sarà salvata.",loadingImage:"Sto caricando l'immagine. attendere prego...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Nota le seguenti particolarità: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),bB=Object.freeze({__proto__:null,default:{lang:"ja",dir:"ltr",common:{ok:"OK",cancel:"キャンセル",key_backspace:"backspace",key_del:"削除",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"クリックで塗りの色を選択、Shift+クリックで線の色を選択",zoom_level:"ズーム倍率の変更",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"塗りの色を変更",stroke_color:"線の色を変更",stroke_style:"線種の変更",stroke_width:"線幅の変更",pos_x:"X座標を変更",pos_y:"Y座標を変更",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"回転角の変更",blur:"Change gaussian blur value",opacity:"不透明度",circle_cx:"円の中心を変更X座標",circle_cy:"円の中心を変更Y座標",circle_r:"変更円の半径",ellipse_cx:"楕円の中心を変更X座標",ellipse_cy:"楕円の中心を変更Y座標",ellipse_rx:"楕円の半径を変更X座標",ellipse_ry:"楕円の半径を変更Y座標",line_x1:"開始X座標",line_x2:"終了X座標",line_y1:"開始Y座標",line_y2:"終了Y座標",rect_height:"長方形の高さを変更",rect_width:"長方形の幅を変更",corner_radius:"長方形の角の半径を変更",image_width:"画像の幅を変更",image_height:"画像の高さを変更",image_url:"URLを変更",node_x:"ードのX座標を変更",node_y:"ードのY座標を変更",seg_type:"線分の種類を変更",straight_segments:"直線",curve_segments:"カーブ",text_contents:"テキストの内容の変更",font_family_label:"Font:",font_family:"フォントファミリーの変更",font_size:"文字サイズの変更",bold:"太字",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"イタリック体",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"背景色/不透明度の変更",connector_no_arrow:"No arrow",fitToContent:"コンテンツに合わせる",fit_to_all:"すべてのコンテンツに合わせる",fit_to_canvas:"キャンバスに合わせる",fit_to_layer_content:"レイヤー上のコンテンツに合わせる",fit_to_sel:"選択対象に合わせる",align_relative_to:"揃える",relativeTo:"相対:",page:"ページ",largest_object:"最大のオブジェクト",selected_objects:"選択オブジェクト",smallest_object:"最小のオブジェクト",new_doc:"新規イメージ",open_doc:"イメージを開く",export_img:"Export",save_doc:"画像を保存",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"下揃え",align_center:"中央揃え",align_left:"左揃え",align_middle:"中央揃え",align_right:"右揃え",align_top:"上揃え",mode_select:"選択ツール",mode_fhpath:"鉛筆ツール",mode_line:"直線ツール",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"フリーハンド長方形",mode_ellipse:"楕円",mode_circle:"円",mode_fhellipse:"フリーハンド楕円",mode_path:"パスツール",mode_text:"テキストツール",mode_image:"イメージツール",mode_zoom:"ズームツール",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"元に戻す",redo:"やり直し",tool_source:"ソースの編集",wireframe_mode:"ワイヤーフレームで表示 [F]",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"グループ化",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"パスに変換",reorient_path:"現在の角度を0度とする",ungroup:"グループ化を解除",docprops:"文書のプロパティ",editor_homepage:"SVG-Edit Home Page",move_bottom:"奥に移動",move_top:"手前に移動",node_clone:"ノードを複製",node_delete:"ノードを削除",node_link:"制御点の接続",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"適用",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"レイヤ",layers:"Layers",del:"レイヤの削除",move_down:"レイヤを下へ移動",new:"新規レイヤ",rename:"レイヤの名前を変更",move_up:"レイヤを上へ移動",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"移動先レイヤ:",move_selected:"選択対象を別のレイヤに移動"},config:{image_props:"イメージの設定",doc_title:"タイトル",doc_dims:"キャンバスの大きさ",included_images:"挿入された画像の扱い",image_opt_embed:"SVGファイルに埋め込む",image_opt_ref:"画像を参照する",editor_prefs:"エディタの設定",language:"言語",background:"エディタの背景色",editor_img_url:"Image URL",editor_bg_note:"※背景色はファイルに保存されません。",select_predefined:"デフォルト",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"無効な値が指定されています。",noContentToFitTo:"合わせる対象のコンテンツがありません。",dupeLayerName:"同名のレイヤーが既に存在します。",enterUniqueLayerName:"新規レイヤの一意な名前を入力してください。",enterNewLayerName:"レイヤの新しい名前を入力してください。",layerHasThatName:"既に同名が付いています。",QmoveElemsToLayer:"選択した要素をレイヤー '%s' に移動しますか?",QwantToClear:"キャンバスをクリアしますか?\nアンドゥ履歴も消去されます。",QwantToOpen:"新しいファイルを開きますか?\nアンドゥ履歴も消去されます。",QerrorsRevertToSource:"ソースにエラーがあります。\n元のソースに戻しますか",QignoreSourceChanges:"ソースの変更を無視しますか?",featNotSupported:"機能はサポートされていません。",enterNewImgURL:"画像のURLを入力してください。",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),vB=Object.freeze({__proto__:null,default:{lang:"ko",dir:"ltr",common:{ok:"저장",cancel:"취소",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"색상을 클릭, 근무 시간 채우기 스트로크 색상을 변경하려면 변경하려면",zoom_level:"변경 수준으로 확대",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"채우기 색상 변경",stroke_color:"뇌졸중으로 색상 변경",stroke_style:"뇌졸중 변경 대시 스타일",stroke_width:"뇌졸중 너비 변경",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"회전 각도를 변경",blur:"Change gaussian blur value",opacity:"변경 항목을 선택 불투명도",circle_cx:"변경 동그라미 CX는 좌표",circle_cy:"동그라미 싸이 변경 조정할 수있어",circle_r:"변경 원의 반지름",ellipse_cx:"CX는 타원의 좌표 변경",ellipse_cy:"싸이 타원 변경 조정할 수있어",ellipse_rx:"변경 타원의 x 반지름",ellipse_ry:"변경 타원의 y를 반경",line_x1:"변경 라인의 X 좌표 시작",line_x2:"변경 라인의 X 좌표 결말",line_y1:"라인 변경 y를 시작 좌표",line_y2:"라인 변경 y를 결말의 좌표",rect_height:"사각형의 높이를 변경",rect_width:"사각형의 너비 변경",corner_radius:"변경 직사각형 코너 반경",image_width:"이미지 변경 폭",image_height:"이미지 높이 변경",image_url:"URL 변경",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"텍스트 변경 내용",font_family_label:"Font:",font_family:"글꼴 변경 패밀리",font_size:"글꼴 크기 변경",bold:"굵은 텍스트",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"기울임꼴 텍스트",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"배경 색상 변경 / 투명도",connector_no_arrow:"No arrow",fitToContent:"맞춤 콘텐츠",fit_to_all:"맞춤 모든 콘텐츠에",fit_to_canvas:"맞춤 캔버스",fit_to_layer_content:"레이어에 맞게 콘텐츠",fit_to_sel:"맞춤 선택",align_relative_to:"정렬 상대적으로 ...",relativeTo:"상대:",page:"페이지",largest_object:"큰 개체",selected_objects:"당선 개체",smallest_object:"작은 개체",new_doc:"새 이미지",open_doc:"오픈 이미지",export_img:"Export",save_doc:"이미지 저장",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"히프 정렬",align_center:"정렬 센터",align_left:"왼쪽 정렬",align_middle:"중간 정렬",align_right:"오른쪽 맞춤",align_top:"정렬 탑",mode_select:"선택 도구",mode_fhpath:"연필 도구",mode_line:"선 도구",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"자유 핸드 직사각형",mode_ellipse:"타원",mode_circle:"동그라미",mode_fhellipse:"자유 핸드 타원",mode_path:"Path Tool",mode_text:"텍스트 도구",mode_image:"이미지 도구",mode_zoom:"줌 도구",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"취소",redo:"재실행",tool_source:"수정 소스",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"그룹 요소",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"그룹 해제 요소",docprops:"문서 속성",editor_homepage:"SVG-Edit Home Page",move_bottom:"아래로 이동",move_top:"상단으로 이동",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"저장",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"레이어 삭제",move_down:"레이어 아래로 이동",new:"새 레이어",rename:"레이어 이름 바꾸기",move_up:"레이어 위로 이동",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"미리 정의된 선택:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),wB=Object.freeze({__proto__:null,default:{lang:"lt",dir:"ltr",common:{ok:"Saugoti",cancel:"Atšaukti",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Spustelėkite norėdami keisti užpildo spalvą, perėjimo spustelėkite pakeisti insultas spalva",zoom_level:"Keisti mastelį",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Keisti užpildyti spalvos",stroke_color:"Keisti insultas spalva",stroke_style:"Keisti insultas brūkšnys stilius",stroke_width:"Keisti insultas plotis",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Keisti sukimosi kampas",blur:"Change gaussian blur value",opacity:"Pakeisti pasirinkto elemento neskaidrumo",circle_cx:"Keisti ratas&#39;s CX koordinuoti",circle_cy:"Keisti ratas&#39;s CY koordinuoti",circle_r:"Keisti savo apskritimo spindulys",ellipse_cx:"Keisti elipse&#39;s CX koordinuoti",ellipse_cy:"Keisti elipse&#39;s CY koordinuoti",ellipse_rx:"Keisti elipsė &quot;X spindulys",ellipse_ry:"Keisti elipse Y spindulys",line_x1:"Keisti linijos nuo koordinačių x",line_x2:"Keisti linijos baigėsi x koordinuoti",line_y1:"Keisti linijos pradžios y koordinačių",line_y2:"Keisti linijos baigėsi y koordinačių",rect_height:"Keisti stačiakampio aukščio",rect_width:"Pakeisti stačiakampio plotis",corner_radius:"Keisti stačiakampis skyrelį Spindulys",image_width:"Keisti paveikslėlio plotis",image_height:"Keisti vaizdo aukštis",image_url:"Pakeisti URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Keisti teksto turinys",font_family_label:"Font:",font_family:"Pakeistišriftą Šeima",font_size:"Change font size",bold:"Pusjuodis",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Kursyvas",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Pakeisti fono spalvą / drumstumas",connector_no_arrow:"No arrow",fitToContent:"Talpinti turinys",fit_to_all:"Talpinti All content",fit_to_canvas:"Talpinti drobė",fit_to_layer_content:"Talpinti sluoksnis turinio",fit_to_sel:"Talpinti atrankos",align_relative_to:"Derinti palyginti ...",relativeTo:"palyginti:",page:"puslapis",largest_object:"didžiausias objektas",selected_objects:"išrinktas objektai",smallest_object:"mažiausias objektą",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Lygiuoti apačioje",align_center:"Lygiuoti",align_left:"Lygiuoti kairėje",align_middle:"Suderinti Vidurio",align_right:"Lygiuoti dešinėje",align_top:"Lygiuoti viršų",mode_select:"Įrankis",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free Hand stačiakampis",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free Hand Elipsė",mode_path:"Path Tool",mode_text:"Tekstas Tool",mode_image:"Image Tool",mode_zoom:"Zoom Įrankį",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Atšaukti",redo:"Atstatyti",tool_source:"Taisyti Šaltinis",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementų grupės",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Išgrupuoti elementai",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Perkelti į apačią",move_top:"Perkelti į viršų",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Saugoti",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Ištrinti Layer",move_down:"Perkelti sluoksnį Žemyn",new:"New Layer",rename:"Pervadinti sluoksnį",move_up:"Perkelti sluoksnį Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Pasirinkite iš anksto:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),xB=Object.freeze({__proto__:null,default:{lang:"lv",dir:"ltr",common:{ok:"Glābt",cancel:"Atcelt",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Noklikšķiniet, lai mainītu aizpildījuma krāsu, shift-click to mainīt stroke krāsa",zoom_level:"Pārmaiņu mērogu",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Change aizpildījuma krāsu",stroke_color:"Change stroke krāsa",stroke_style:"Maina stroke domuzīme stils",stroke_width:"Change stroke platums",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Mainīt griešanās leņķis",blur:"Change gaussian blur value",opacity:"Mainīt izvēlēto objektu necaurredzamība",circle_cx:"Maina aplis&#39;s CX koordinēt",circle_cy:"Pārmaiņu loks ir cy koordinēt",circle_r:"Pārmaiņu loks ir rādiuss",ellipse_cx:"Mainīt elipses&#39;s CX koordinēt",ellipse_cy:"Mainīt elipses&#39;s cy koordinēt",ellipse_rx:"Mainīt elipses&#39;s x rādiuss",ellipse_ry:"Mainīt elipses&#39;s y rādiuss",line_x1:"Mainīt līnijas sākas x koordinēt",line_x2:"Mainīt līnijas beigu x koordinēt",line_y1:"Mainīt līnijas sākas y koordinātu",line_y2:"Mainīt līnijas beigu y koordinātu",rect_height:"Change Taisnstūra augstums",rect_width:"Change taisnstūra platums",corner_radius:"Maina Taisnstūris Corner Rādiuss",image_width:"Mainīt attēla platumu",image_height:"Mainīt attēla augstums",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Mainītu teksta saturs",font_family_label:"Font:",font_family:"Mainīt fonta Family",font_size:"Mainīt fonta izmēru",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Kursīvs",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color / necaurredzamība",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit uz visu saturu",fit_to_canvas:"Ievietot audekls",fit_to_layer_content:"Ievietot slānis saturs",fit_to_sel:"Fit atlases",align_relative_to:"Līdzināt, salīdzinot ar ...",relativeTo:"salīdzinājumā ar:",page:"lapa",largest_object:"lielākais objekts",selected_objects:"ievēlēts objekti",smallest_object:"mazākais objekts",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Līdzināt Bottom",align_center:"Līdzināt uz centru",align_left:"Līdzināt pa kreisi",align_middle:"Līdzināt Middle",align_right:"Līdzināt pa labi",align_top:"Līdzināt Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Taisnstūris",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Atpogāt",redo:"Redo",tool_source:"Rediģēt Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grupa Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Atgrupēt Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Pārvietot uz leju",move_top:"Pārvietot uz augšu",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Glābt",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Dzēst Layer",move_down:"Pārvietot slāni uz leju",new:"New Layer",rename:"Pārdēvēt Layer",move_up:"Pārvietot slāni uz augšu",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Izvēlieties iepriekš:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),kB=Object.freeze({__proto__:null,default:{lang:"mk",dir:"ltr",common:{ok:"Зачувува",cancel:"Откажи",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Кликни за да внесете промени бојата, промена клик да се промени бојата удар",zoom_level:"Промена зум ниво",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Измени пополнете боја",stroke_color:"Промена боја на мозочен удар",stroke_style:"Промена удар цртичка стил",stroke_width:"Промена удар Ширина",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change ротација агол",blur:"Change gaussian blur value",opacity:"Промена избрани ставка непроѕирноста",circle_cx:"Промена круг на cx координира",circle_cy:"Промена круг&#39;s cy координираат",circle_r:"Промена на круг со радиус",ellipse_cx:"Промена елипса&#39;s cx координираат",ellipse_cy:"Промена на елипса cy координира",ellipse_rx:"Промена на елипса x радиус",ellipse_ry:"Промена на елипса у радиус",line_x1:"Промена линија почетна x координира",line_x2:"Промена линија завршува x координира",line_y1:"Промена линија координираат почетна y",line_y2:"Промена линија завршува y координира",rect_height:"Промена правоаголник височина",rect_width:"Промена правоаголник Ширина",corner_radius:"Промена правоаголник Corner Radius",image_width:"Промена Ширина на сликата",image_height:"Промена на слика височина",image_url:"Промена URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Промена текст содржина",font_family_label:"Font:",font_family:"Смени фонт Фамилија",font_size:"Изменифонт Големина",bold:"Задебелен текст",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic текст",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Смени позадина / непроѕирноста",connector_no_arrow:"No arrow",fitToContent:"Способен да Содржина",fit_to_all:"Способен да сите содржина",fit_to_canvas:"Побиране да платно",fit_to_layer_content:"Способен да слој содржина",fit_to_sel:"Способен да селекција",align_relative_to:"Порамни во поглед на ...",relativeTo:"во поглед на:",page:"страница",largest_object:"најголемиот објект",selected_objects:"избран објекти",smallest_object:"најмалата објект",new_doc:"Нови слики",open_doc:"Отвори слика",export_img:"Export",save_doc:"Зачувај слика",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Центрирано",align_left:"Порамни лево Порамни",align_middle:"Израмни Среден",align_right:"Порамни десно",align_top:"Израмни почетокот",mode_select:"Изберете ја алатката",mode_fhpath:"Алатка за молив",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Правоаголник слободна рака",mode_ellipse:"Елипса",mode_circle:"Круг",mode_fhellipse:"Free-Hand Елипса",mode_path:"Path Tool",mode_text:"Алатка за текст",mode_image:"Алатка за сликата",mode_zoom:"Алатка за зумирање",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Врати",redo:"Повтори",tool_source:"Уреди Извор",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група на елементи",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Елементи",docprops:"Својства на документот",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to bottom",move_top:"Поместување на почетокот",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Зачувува",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Избриши Слој",move_down:"Премести слој долу",new:"Нов слој",rename:"Преименувај слој",move_up:"Премести слој горе",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Изберете предефинирани:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),CB=Object.freeze({__proto__:null,default:{lang:"ms",dir:"ltr",common:{ok:"Simpan",cancel:"Batal",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik untuk menukar warna mengisi, shift-klik untuk menukar warna stroke",zoom_level:"Mengubah peringkat pembesaran",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Tukar Warna mengisi",stroke_color:"Tukar Warna stroke",stroke_style:"Tukar gaya dash stroke",stroke_width:"Tukar stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Namakan sudut putaran",blur:"Change gaussian blur value",opacity:"Mengubah item yang dipilih keburaman",circle_cx:"Mengubah koordinat bulatan cx",circle_cy:"Mengubah koordinat cy bulatan",circle_r:"Tukar jari-jari lingkaran",ellipse_cx:"Tukar elips&#39;s cx koordinat",ellipse_cy:"Tukar elips&#39;s cy koordinat",ellipse_rx:"Tukar elips&#39;s x jari-jari",ellipse_ry:"Tukar elips&#39;s y jari-jari",line_x1:"Ubah baris mulai x koordinat",line_x2:"Ubah baris&#39;s Berakhir x koordinat",line_y1:"Ubah baris mulai y koordinat",line_y2:"Ubah baris di tiap akhir y koordinat",rect_height:"Perubahan quality persegi panjang",rect_width:"Tukar persegi panjang lebar",corner_radius:"Tukar Corner Rectangle Radius",image_width:"Tukar Lebar imej",image_height:"Tinggi gambar Kaca",image_url:"Tukar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Tukar isi teks",font_family_label:"Font:",font_family:"Tukar Font Keluarga",font_size:"Ubah Saiz Font",bold:"Bold Teks",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Teks",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mengubah warna latar belakang / keburaman",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Cocok untuk semua kandungan",fit_to_canvas:"Muat kanvas",fit_to_layer_content:"Muat kandungan lapisan",fit_to_sel:"Fit seleksi",align_relative_to:"Rata relatif ...",relativeTo:"relatif:",page:"Laman",largest_object:"objek terbesar",selected_objects:"objek terpilih",smallest_object:"objek terkecil",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Rata Bottom",align_center:"Rata Tengah",align_left:"Rata Kiri",align_middle:"Rata Tengah",align_right:"Rata Kanan",align_top:"Rata Popular",mode_select:"Pilih Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Persegi Panjang",mode_ellipse:"Ellipse",mode_circle:"Lingkaran",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Teks Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Kelompok Elemen",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elemen",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Pindah ke Bawah",move_top:"Pindah ke Atas",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Simpan",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Padam Layer",move_down:"Pindah Layer Bawah",new:"New Layer",rename:"Rename Layer",move_up:"Pindah Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Pilih standard:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),SB=Object.freeze({__proto__:null,default:{lang:"mt",dir:"ltr",common:{ok:"Save",cancel:"Ikkanċella",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Ikklikkja biex timla l-bidla fil-kulur, ikklikkja-bidla għall-bidla color stroke",zoom_level:"Bidla zoom livell",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Bidla imla color",stroke_color:"Color stroke Bidla",stroke_style:"Bidla stroke dash stil",stroke_width:"Wisa &#39;puplesija Bidla",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Angolu ta &#39;rotazzjoni Bidla",blur:"Change gaussian blur value",opacity:"Bidla magħżula opaċità partita",circle_cx:"CX ċirku Tibdil jikkoordinaw",circle_cy:"Ċirku Tibdil cy jikkoordinaw",circle_r:"Raġġ ta &#39;ċirku tal-Bidla",ellipse_cx:"Bidla ellissi&#39;s CX jikkoordinaw",ellipse_cy:"Ellissi Tibdil cy jikkoordinaw",ellipse_rx:"Raġġ x ellissi Tibdil",ellipse_ry:"Raġġ y ellissi Tibdil",line_x1:"Bidla fil-linja tal-bidu tikkoordina x",line_x2:"Linja tal-Bidla li jispiċċa x jikkoordinaw",line_y1:"Bidla fil-linja tal-bidu y jikkoordinaw",line_y2:"Linja Tibdil jispiċċa y jikkoordinaw",rect_height:"Għoli rettangolu Bidla",rect_width:"Wisa &#39;rettangolu Bidla",corner_radius:"Bidla Rectangle Corner Radius",image_width:"Wisa image Bidla",image_height:"Għoli image Bidla",image_url:"Bidla URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Test kontenut Bidla",font_family_label:"Font:",font_family:"Bidla Font Familja",font_size:"Change font size",bold:"Bold Test",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Test korsiv",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Bidla fil-kulur fl-isfond / opaċità",connector_no_arrow:"No arrow",fitToContent:"Fit għall-kontenut",fit_to_all:"Tajbin għall-kontenut",fit_to_canvas:"Xieraq li kanvas",fit_to_layer_content:"Fit-kontenut ta &#39;saff għal",fit_to_sel:"Fit-għażla",align_relative_to:"Jallinjaw relattiv għall - ...",relativeTo:"relattiv għall -:",page:"paġna",largest_object:"akbar oġġett",selected_objects:"oġġetti elett",smallest_object:"iżgħar oġġett",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Tallinja Bottom",align_center:"Tallinja Center",align_left:"Tallinja Left",align_middle:"Tallinja Nofsani",align_right:"Tallinja Dritt",align_top:"Tallinja Top",mode_select:"Select Tool",mode_fhpath:"Lapes Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free Hand-Rectangle",mode_ellipse:"Ellissi",mode_circle:"Circle",mode_fhellipse:"Free Hand-ellissi",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Jneħħu",redo:"Jerġa &#39;jagħmel",tool_source:"Source Edit",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grupp Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Dokument Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Ħassar Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Semmi mill-ġdid Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Select predefiniti:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),BB=Object.freeze({__proto__:null,default:{lang:"nl",dir:"ltr",common:{ok:"Ok",cancel:"Annuleren",key_backspace:"backspace",key_del:"delete",key_down:"omlaag",key_up:"omhoog",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Mogelijk gemaakt door"},ui:{toggle_stroke_tools:"Toon/verberg meer lijn gereedschap",palette_info:"Klik om de vul kleur te veranderen, shift-klik om de lijn kleur te veranderen",zoom_level:"In-/uitzoomen",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identificeer het element",fill_color:"Verander vul kleur",stroke_color:"Verander lijn kleur",stroke_style:"Verander lijn stijl",stroke_width:"Verander lijn breedte",pos_x:"Verander X coordinaat",pos_y:"Verander Y coordinaat",linecap_butt:"Lijneinde: Geen",linecap_round:"Lijneinde: Rond",linecap_square:"Lijneinde: Vierkant",linejoin_bevel:"Lijnverbinding: Afgestompt",linejoin_miter:"Lijnverbinding: Hoek",linejoin_round:"Lijnverbinding: Rond",angle:"Draai",blur:"Verander Gaussische vervaging waarde",opacity:"Verander opaciteit geselecteerde item",circle_cx:"Verander het X coordinaat van het cirkel middelpunt",circle_cy:"Verander het Y coordinaat van het cirkel middelpunt",circle_r:"Verander de cirkel radius",ellipse_cx:"Verander het X coordinaat van het ellips middelpunt",ellipse_cy:"Verander het Y coordinaat van het ellips middelpunt",ellipse_rx:"Verander ellips X radius",ellipse_ry:"Verander ellips Y radius",line_x1:"Verander start X coordinaat van de lijn",line_x2:"Verander eind X coordinaat van de lijn",line_y1:"Verander start Y coordinaat van de lijn",line_y2:"Verander eind Y coordinaat van de lijn",rect_height:"Verander hoogte rechthoek",rect_width:"Verander breedte rechthoek",corner_radius:"Verander hoekradius rechthoek",image_width:"Verander breedte afbeelding",image_height:"Verander hoogte afbeelding",image_url:"Verander URL",node_x:"Verander X coordinaat knooppunt",node_y:"Verander Y coordinaat knooppunt",seg_type:"Verander segment type",straight_segments:"Recht",curve_segments:"Gebogen",text_contents:"Wijzig tekst",font_family_label:"Font:",font_family:"Verander lettertype",font_size:"Verander lettertype grootte",bold:"Vet",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Cursief",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Hoofdmenu",bkgnd_color_opac:"Verander achtergrond kleur/doorzichtigheid",connector_no_arrow:"Geen pijl",fitToContent:"Pas om inhoud",fit_to_all:"Pas om alle inhoud",fit_to_canvas:"Pas om canvas",fit_to_layer_content:"Pas om laag inhoud",fit_to_sel:"Pas om selectie",align_relative_to:"Uitlijnen relatief ten opzichte van ...",relativeTo:"Relatief ten opzichte van:",page:"Pagina",largest_object:"Grootste object",selected_objects:"Geselecteerde objecten",smallest_object:"Kleinste object",new_doc:"Nieuwe afbeelding",open_doc:"Open afbeelding",export_img:"Export",save_doc:"Afbeelding opslaan",import_doc:"Importeer SVG",align_to_page:"Lijn element uit relatief ten opzichte van de pagina",align_bottom:"Onder uitlijnen",align_center:"Centreren",align_left:"Links uitlijnen",align_middle:"Midden uitlijnen",align_right:"Rechts uitlijnen",align_top:"Boven uitlijnen",mode_select:"Selecteer",mode_fhpath:"Potlood",mode_line:"Lijn",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Vrije stijl rechthoek",mode_ellipse:"Ellips",mode_circle:"Cirkel",mode_fhellipse:"Vrije stijl ellips",mode_path:"Pad",mode_text:"Tekst",mode_image:"Afbeelding",mode_zoom:"Zoom",no_embed:"Let op: Dit plaatje kan niet worden geintegreerd (embeded). Het hangt af van dit pad om te worden afgebeeld.",undo:"Ongedaan maken",redo:"Opnieuw doen",tool_source:"Bewerk bron",wireframe_mode:"Draadmodel",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Groepeer elementen",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Zet om naar pad",reorient_path:"Herorienteer pad",ungroup:"Groepering opheffen",docprops:"Documenteigenschappen",editor_homepage:"SVG-Edit Home Page",move_bottom:"Naar achtergrond",move_top:"Naar voorgrond",node_clone:"Kloon knooppunt",node_delete:"Delete knooppunt",node_link:"Koppel controle punten",add_subpath:"Subpad toevoegen",openclose_path:"Open/sluit subpad",source_save:"Veranderingen toepassen",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Laag",layers:"Layers",del:"Delete laag",move_down:"Beweeg laag omlaag",new:"Nieuwe laag",rename:"Hernoem laag",move_up:"Beweeg laag omhoog",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Verplaats elementen naar:",move_selected:"Verplaats geselecteerde elementen naar andere laag"},config:{image_props:"Afbeeldingeigenschappen",doc_title:"Titel",doc_dims:"Canvas afmetingen",included_images:"Ingesloten afbeeldingen",image_opt_embed:"Toevoegen data (lokale bestanden)",image_opt_ref:"Gebruik bestand referentie",editor_prefs:"Editor eigenschappen",language:"Taal",background:"Editor achtergrond",editor_img_url:"Image URL",editor_bg_note:"Let op: De achtergrond wordt niet opgeslagen met de afbeelding.",select_predefined:"Kies voorgedefinieerd:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Verkeerde waarde gegeven",noContentToFitTo:"Geen inhoud om omheen te passen",dupeLayerName:"Er is al een laag met die naam!",enterUniqueLayerName:"Geef een unieke laag naam",enterNewLayerName:"Geef een nieuwe laag naam",layerHasThatName:"Laag heeft al die naam",QmoveElemsToLayer:"Verplaats geselecteerde elementen naar laag '%s'?",QwantToClear:"Wil je de afbeelding leeg maken?\nDit zal ook de ongedaan maak geschiedenis wissen!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Er waren analyse fouten in je SVG bron.\nTeruggaan naar de originele SVG bron?",QignoreSourceChanges:"Veranderingen in de SVG bron negeren?",featNotSupported:"Functie wordt niet ondersteund",enterNewImgURL:"Geef de nieuwe afbeelding URL",defsFailOnSave:"Let op: Vanwege een fout in je browser, kan dit plaatje verkeerd verschijnen (missende hoeken en/of elementen). Het zal goed verschijnen zodra het plaatje echt wordt opgeslagen.",loadingImage:"Laden van het plaatje, even geduld aub...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Let op de volgende problemen: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),EB=Object.freeze({__proto__:null,default:{lang:"no",dir:"ltr",common:{ok:"Lagre",cancel:"Avbryt",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click å endre fyllfarge, shift-klikke for å endre slag farge",zoom_level:"Endre zoomnivå",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Endre fyllfarge",stroke_color:"Endre stroke color",stroke_style:"Endre stroke dash stil",stroke_width:"Endre stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Endre rotasjonsvinkelen",blur:"Change gaussian blur value",opacity:"Endre valgte elementet opasitet",circle_cx:"Endre sirkelens CX koordinatsystem",circle_cy:"Endre sirkelens koordinere cy",circle_r:"Endre sirkelens radius",ellipse_cx:"Endre ellipse&#39;s CX koordinatsystem",ellipse_cy:"Endre ellipse&#39;s koordinere cy",ellipse_rx:"Endre ellipse&#39;s x radius",ellipse_ry:"Endre ellipse&#39;s y radius",line_x1:"Endre linje begynner x koordinat",line_x2:"Endre linje&#39;s ending x koordinat",line_y1:"Endre linje begynner y koordinat",line_y2:"Endre linje&#39;s ending y koordinat",rect_height:"Endre rektangel høyde",rect_width:"Endre rektangel bredde",corner_radius:"Endre rektangel Corner Radius",image_width:"Endre bilde bredde",image_height:"Endre bilde høyde",image_url:"Endre URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Endre tekst innholdet",font_family_label:"Font:",font_family:"Change Font Family",font_size:"Endre skriftstørrelse",bold:"Fet tekst",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Kursiv tekst",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Endre bakgrunnsfarge / opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Passer til alt innhold",fit_to_canvas:"Tilpass til lerret",fit_to_layer_content:"Fit to lag innhold",fit_to_sel:"Tilpass til valg",align_relative_to:"Juster i forhold til ...",relativeTo:"i forhold til:",page:"side",largest_object:"største objekt",selected_objects:"velges objekter",smallest_object:"minste objekt",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Midtstill",align_left:"Venstrejuster",align_middle:"Rett Middle",align_right:"Høyrejuster",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Linjeverktøy",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand rektangel",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Angre",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Gruppe Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Dele opp Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Flytt til toppen",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Lagre",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Slett laget",move_down:"Flytt laget ned",new:"Nytt lag",rename:"Rename Layer",move_up:"Flytt Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Velg forhåndsdefinerte:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),jB=Object.freeze({__proto__:null,default:{lang:"pl",dir:"ltr",author:"Aleksander Lurie",common:{ok:"OK",cancel:"Anuluj",key_backspace:"usuń",key_del:"usuń",key_down:"w dół",key_up:"w górę",more_opts:"więcej opcji",url:"adres url",width:"Szerokość",height:"Wysokość"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Pokaż/ukryj więcej opcji obramowania",palette_info:"Kliknij aby zmienić kolor wypełnienia, przytrzymaj shift aby zmienić kolor obramowania",zoom_level:"Zmiana powiększenia",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identyfikator elementu",fill_color:"Zmień kolor wypełnienia",stroke_color:"Zmień kolor obramowania",stroke_style:"Zmień styl obramowania",stroke_width:"Zmień szerokość obramowania o 1, przytrzymaj shift aby zmienić szerokość o 0.1",pos_x:"Zmień współrzędną X",pos_y:"Zmień współrzędną Y",linecap_butt:"Zakończenie linii: grzbiet",linecap_round:"Zakończenie linii: zaokrąglone",linecap_square:"Zakończenie linii: kwadrat",linejoin_bevel:"Łączenie linii: ścięte",linejoin_miter:"Łączenie linii: ostre",linejoin_round:"Łączenie linii: zaokrąglone",angle:"Zmień kąt obrotu",blur:"Zmień wartość rozmycia gaussa",opacity:"Zmień przezroczystość zaznaczonego elementu",circle_cx:"Zmień współrzędną cx okręgu",circle_cy:"Zmień współrzędną cy okręgu",circle_r:"zmień promień okręgu",ellipse_cx:"Zmień współrzędną cx elipsy",ellipse_cy:"Zmień współrzędną cy elipsy",ellipse_rx:"Zmień promień x elipsy",ellipse_ry:"Zmień promień y elipsy",line_x1:"Zmień współrzędna x początku linii",line_x2:"Zmień współrzędną x końca linii",line_y1:"Zmień współrzędną y początku linii",line_y2:"Zmień współrzędną y końca linii",rect_height:"Zmień wysokość prostokąta",rect_width:"Zmień szerokość prostokąta",corner_radius:"Zmień promień zaokrąglenia narożników prostokąta",image_width:"Zmień wysokość obrazu",image_height:"Zmień szerokość obrazu",image_url:"Zmień adres URL",node_x:"Zmień współrzędną x węzła",node_y:"Zmień współrzędną y węzła",seg_type:"Zmień typ segmentu",straight_segments:"Prosty",curve_segments:"Zaokrąglony",text_contents:"Zmień text",font_family_label:"Font:",font_family:"Zmień krój czcionki",font_size:"Zmień rozmiar czcionki",bold:"Pogrubienie textu",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Kursywa",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Menu główne",bkgnd_color_opac:"Zmiana koloru/przezroczystości tła",connector_no_arrow:"Brak strzałek",fitToContent:"Dopasuj do zawartości",fit_to_all:"Dopasuj do całej zawartości",fit_to_canvas:"Dopasuj do widoku",fit_to_layer_content:"Dopasuj do zawartości warstwy",fit_to_sel:"Dopasuj do zaznaczenia",align_relative_to:"Wyrównaj relatywnie do ...",relativeTo:"relatywnie do:",page:"strona",largest_object:"największy obiekt",selected_objects:"zaznaczone obiekty",smallest_object:"najmniejszy obiekt",new_doc:"Nowy obraz",open_doc:"Otwórz obraz",export_img:"Eksportuj",save_doc:"Zapisz obraz",import_doc:"Importuj SVG",align_to_page:"Wyrównaj element do strony",align_bottom:"Wyrównaj do dołu",align_center:"Wyśrodkuj w poziomie",align_left:"Wyrównaj do lewej",align_middle:"Wyśrodkuj w pionie",align_right:"Wyrównaj do prawej",align_top:"Wyrównaj do góry",mode_select:"Zaznaczenie",mode_fhpath:"Ołówek",mode_line:"Linia",mode_rect:"Prostokąt",mode_square:"Kwadrat",mode_fhrect:"Dowolny prostokąt",mode_ellipse:"Elipsa",mode_circle:"Okrąg",mode_fhellipse:"Dowolna elipsa",mode_path:"Ścieżka",mode_text:"Tekst",mode_image:"Obraz",mode_zoom:"Powiększenie",no_embed:"Uwaga: Ten obraz nie może być osadzony. Być może podany adres na to nie pozwala",undo:"Wstecz",redo:"Dalej",tool_source:"Edytuj źródło",wireframe_mode:"Tryb szkieletowy",clone:"Klonuj element(y)",del:"Usuń warstwę",group_elements:"Grupuj elementy",make_link:"Utwórz łącze",set_link_url:"Ustal adres URL (pozostaw puste aby usunąć)",to_path:"Konwertuj do ścieżki",reorient_path:"Zresetuj obwiednię",ungroup:"Rozgrupuj elementy",docprops:"Właściwości dokumentu",editor_homepage:"SVG-Edit Home Page",move_bottom:"Przenieś pod spód",move_top:"Przenieś na wierzch",node_clone:"Klonuj węzeł",node_delete:"Usuń węzeł",node_link:"Podłącz punkty kontrolne",add_subpath:"Dodaj ścieżkę podrzędną",openclose_path:"Otwórz/zamknij ścieżkę podrzędną",source_save:"Zachowaj zmiany",cut:"Wytnij",copy:"Kopiuj",paste:"Wklej",paste_in_place:"Wklej w miejscu",delete:"Usuń",group:"Grupuj",move_front:"Przenieś do przodu",move_up:"Przenieś warstwę w górę",move_down:"Przenieś warstwę w dół",move_back:"Przenieś do tyłu",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Warstwa",layers:"Warstwy",del:"Usuń warstwę",move_down:"Przenieś warstwę w dół",new:"Nowa warstwa",rename:"Zmień nazwę warstwy",move_up:"Przenieś warstwę w górę",dupe:"Duplikuj warstwę",merge_down:"Scal w dół",merge_all:"Scal wszystko",move_elems_to:"Przenieś elementy do:",move_selected:"Przenieś zaznaczone elementy do innej warstwy"},config:{image_props:"Własciwości obrazu",doc_title:"Tytuł",doc_dims:"Wymiary pola roboczego",included_images:"Dołączone obrazy",image_opt_embed:"Dane osadzone (pliki lokalne)",image_opt_ref:"Użyj referencji do pliku",editor_prefs:"Ustawienia edytora",language:"Język",background:"Tło edytora",editor_img_url:"Adres URL obrazu",editor_bg_note:"Uwaga: Tło nie zostało zapisane z obrazem.",select_predefined:"Wybierz predefiniowany:",units_and_rulers:"Jednostki/Linijki",show_rulers:"Pokaż linijki",base_unit:"Podstawowa jednostka:",grid:"Siatka",snapping_onoff:"Włącz/wyłącz przyciąganie",snapping_stepsize:"Przyciągaj co:",grid_color:"Kolor siatki",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Podano nieprawidłową wartość",noContentToFitTo:"Brak zawartości do dopasowania",dupeLayerName:"Istnieje już warstwa o takiej nazwie!",enterUniqueLayerName:"Podaj unikalną nazwę warstwy",enterNewLayerName:"Podaj nazwe nowej warstwy",layerHasThatName:"Warstwa już tak się nazywa",QmoveElemsToLayer:"Przenies zaznaczone elementy do warstwy '%s'?",QwantToClear:"Jesteś pewien, że chcesz wyczyścić pole robocze?\nHistoria projektu również zostanie skasowana",QwantToOpen:"Jesteś pewien, że chcesz otworzyć nowy plik?\nHistoria projektu również zostanie skasowana",QerrorsRevertToSource:"Błąd parsowania źródła Twojego pliku SVG.\nPrzywrócić orginalne źródło pliku SVG?",QignoreSourceChanges:"Zignorowac zmiany w źródle pliku SVG?",featNotSupported:"Funkcjonalność niedostępna",enterNewImgURL:"Podaj adres URL nowego obrazu",defsFailOnSave:"Uwaga: Ze względu na błąd w przeglądarce, ten obraz może się źle wyswietlać (brak gradientów lub elementów). Będzie jednak wyświetlał się poprawnie skoro został zapisany.",loadingImage:"Ładowanie obrazu, proszę czekać...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Zwróć uwagę na nastepujące kwestie: ",unsavedChanges:"Wykryto niezapisane zmiany.",enterNewLinkURL:"Wpisz nowy adres URL hiperłącza",errorLoadingSVG:"Błąd: Nie można załadować danych SVG",URLLoadFail:"Nie można załadować z adresu URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),LB=Object.freeze({__proto__:null,default:{lang:"pt-BR",dir:"ltr",common:{ok:"OK",cancel:"Cancelar",key_backspace:"Tecla backspace",key_del:"Tecla delete",key_down:"Seta para baixo",key_up:"Seta para cima",more_opts:"Mais opções",url:"URL",width:"Largura",height:"Altura"},misc:{powered_by:"Tecnologia"},ui:{toggle_stroke_tools:"Mais opções de traço",palette_info:"Click para mudar a cor de preenchimento, shift-click para mudar a cor do traço",zoom_level:"Mudar zoom",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identifica o elemento",fill_color:"Mudar a cor de preenchimento",stroke_color:"Mudar a cor do traço",stroke_style:"Mudar o estilo do traço",stroke_width:"Mudar a espessura do traço em 1, shift-click para mudar 0.1",pos_x:"Mudar a coordenada X",pos_y:"Mudar a coordenada Y",linecap_butt:"Estilo do fim do traço: Topo",linecap_round:"Estilo do fim do traço: Redondo",linecap_square:"Estilo do fim do traço: Quadrado",linejoin_bevel:"Estilo da Aresta: Chanfro",linejoin_miter:"Estilo da Aresta: Reto",linejoin_round:"Estilo da Aresta: Redondo",angle:"Mudar ângulo de rotação",blur:"Mudar valor de desfoque",opacity:"Mudar opacidade do item selecionado",circle_cx:"Mudar a coordenada cx do círculo",circle_cy:"Mudar a coordenada cy do círculo",circle_r:"Mudar o raio do círculo",ellipse_cx:"Mudar a coordenada cx da elípse",ellipse_cy:"Mudar a coordenada cy da elípse",ellipse_rx:"Mudar o raio x da elípse",ellipse_ry:"Mudar o raio y da elípse",line_x1:"Mudar a coordenada x do início da linha",line_x2:"Mudar a coordenada x do fim da linha",line_y1:"Mudar a coordenada y do início da linha",line_y2:"Mudar a coordenada y do fim da linha",rect_height:"Mudar a altura do retângulo",rect_width:"Mudar a largura do retângulo",corner_radius:"Mudar o raio da aresta do retângulo",image_width:"Mudar a largura da imagem",image_height:"Mudar a altura da imagem",image_url:"Mudar URL",node_x:"Mudar a coordenada x da aresta",node_y:"Mudar a coordenada y da aresta",seg_type:"Mudar o tipo de segmento",straight_segments:"Reto",curve_segments:"Curvo",text_contents:"Mudar conteúdo do texto",font_family_label:"Font:",font_family:"Mudar o estilo da fonte",font_size:"Mudar o tamanho da fonte",bold:"Negrito",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italico",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Menu Principal",bkgnd_color_opac:"Mudar cor/opacidade do fundo",connector_no_arrow:"Sem flecha",fitToContent:"Ajustar ao conteúdo",fit_to_all:"Ajustar a todo conteúdo",fit_to_canvas:"Ajustar à tela",fit_to_layer_content:"Ajustar ao conteúdo da camada",fit_to_sel:"Ajustar à seleção",align_relative_to:"Alinhar em relação à ...",relativeTo:"Referência:",page:"página",largest_object:"maior objeto",selected_objects:"objetos selecionados",smallest_object:"menor objeto",new_doc:"Nova imagem",open_doc:"Abrir imagem",export_img:"Export",save_doc:"Salvar imagem",import_doc:"Importar SVG",align_to_page:"Alinhar elemento na página",align_bottom:"Alinhar no fundo",align_center:"Alinhar no centro",align_left:"Alinhar na esquerda",align_middle:"Alinhar no meio",align_right:"Alinhar na direita",align_top:"Alinhar no topo",mode_select:"Selecão",mode_fhpath:"Lápis",mode_line:"Linha",mode_rect:"Retângulo",mode_square:"Quadrado",mode_fhrect:"Retângulo a mão-livre",mode_ellipse:"Elípse",mode_circle:"Círculo",mode_fhellipse:"Elípse a mão-livre",mode_path:"Contorno",mode_text:"Texto",mode_image:"Imagem",mode_zoom:"Zoom",no_embed:"Atenção: Esta imagem não pode ser incorporada e dependerá de seu caminho para ser exibida",undo:"Desfazer",redo:"Refazer",tool_source:"Editar o código",wireframe_mode:"Modo linhas",clone:"Clonar Elemento(s)",del:"Deletar Elemento(s)",group_elements:"Agrupar Elementos",make_link:"Criar (hyper)link",set_link_url:"Alterar URL (em branco para remover)",to_path:"Converter para Contorno",reorient_path:"Reorientar contorno",ungroup:"Desagrupar Elementos",docprops:"Propriedades",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mover para o fundo",move_top:"Mover para o topo",node_clone:"Clonar Aresta",node_delete:"Deletar Aresta",node_link:"Alinhar pontos de controle",add_subpath:"Adicionar contorno",openclose_path:"Abrir/Fechar contorno",source_save:"Salvar",cut:"Recortar",copy:"Copiar",paste:"Colar",paste_in_place:"Colar no mesmo local",delete:"Deletar",group:"Agrupar",move_front:"Trazer para Frente",move_up:"Avançar",move_down:"Recuar",move_back:"Enviar para Trás",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Camada",layers:"Camadas",del:"Deletar Camada",move_down:"Enviar Camada para Trás",new:"Nova Camada",rename:"Renomear Camada",move_up:"Trazer Camada para Frente",dupe:"Duplicar Camada",merge_down:"Achatar para baixo",merge_all:"Achatar todas",move_elems_to:"Mover elementos para:",move_selected:"Mover elementos selecionados para outra camada"},config:{image_props:"Propriedades",doc_title:"Título",doc_dims:"Dimensões",included_images:"Imagens",image_opt_embed:"Incorporadas (arquivos locais)",image_opt_ref:"Usar referência",editor_prefs:"Preferências",language:"Idioma",background:"Fundo da página",editor_img_url:"URL da Imagem",editor_bg_note:"Atenção: Fundo da página não será salvo.",select_predefined:"Modelos:",units_and_rulers:"Unidade & Réguas",show_rulers:"Mostrar réguas",base_unit:"Unidade base:",grid:"Grade",snapping_onoff:"Snap on/off",snapping_stepsize:"Intensidade do Snap:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Valor inválido",noContentToFitTo:"Não há conteúdo",dupeLayerName:"Nome duplicado",enterUniqueLayerName:"Insira um nome único",enterNewLayerName:"Insira um novo nome",layerHasThatName:"A camada já pussui este nome",QmoveElemsToLayer:"Mover elementos selecionados para a camada: '%s'?",QwantToClear:"Deseja criar um novo arquivo?\nO histórico também será apagado!",QwantToOpen:"Deseja abrir um novo arquivo?\nO histórico também será apagado!",QerrorsRevertToSource:"Foram encontrados erros ná análise do código SVG.\nReverter para o código SVG original?",QignoreSourceChanges:"Ignorar as mudanças no código SVG?",featNotSupported:"Recurso não suportado",enterNewImgURL:"Insira nova URL da imagem",defsFailOnSave:"Atenção: Devido a um bug em seu navegador, esta imagem pode apresentar erros, porém será salva corretamente.",loadingImage:"Carregando imagem, por favor aguarde...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Atenção para as seguintes questões: ",unsavedChanges:"Existem alterações não salvas.",enterNewLinkURL:"Insira novo URL do hyperlink",errorLoadingSVG:"Erro: Impossível carregar dados SVG",URLLoadFail:"Impossível carregar deste URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),PB=Object.freeze({__proto__:null,default:{lang:"pt-PT",dir:"ltr",common:{ok:"Salvar",cancel:"Cancelar",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Clique para mudar a cor de preenchimento, shift-clique para mudar a cor do curso",zoom_level:"Alterar o nível de zoom",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Alterar a cor de preenchimento",stroke_color:"Mudar a cor do curso",stroke_style:"Alterar o estilo do traço do curso",stroke_width:"Alterar a largura do curso",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Alterar o ângulo de rotação",blur:"Change gaussian blur value",opacity:"Mude a opacidade item selecionado",circle_cx:"Cx Mudar círculo de coordenadas",circle_cy:"Círculo Mudança cy coordenar",circle_r:"Alterar círculo de raio",ellipse_cx:"Alterar elipse cx coordenar",ellipse_cy:"Elipse Mudança cy coordenar",ellipse_rx:"Raio X Change elipse",ellipse_ry:"Raio y Change elipse",line_x1:"Altere a linha de partida coordenada x",line_x2:"Altere a linha está terminando coordenada x",line_y1:"Mudança na linha de partida coordenada y",line_y2:"Mudança de linha está terminando coordenada y",rect_height:"Alterar altura do retângulo",rect_width:"Alterar a largura retângulo",corner_radius:"Alterar Corner Rectangle Radius",image_width:"Alterar a largura da imagem",image_height:"Alterar altura da imagem",image_url:"Alterar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Alterar o conteúdo de texto",font_family_label:"Font:",font_family:"Alterar fonte Família",font_size:"Alterar tamanho de letra",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Texto em itálico",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mudar a cor de fundo / opacidade",connector_no_arrow:"No arrow",fitToContent:"Ajustar ao conteúdo",fit_to_all:"Ajustar a todo o conteúdo",fit_to_canvas:"Ajustar à tela",fit_to_layer_content:"Ajustar o conteúdo da camada de",fit_to_sel:"Ajustar à selecção",align_relative_to:"Alinhar em relação a ...",relativeTo:"em relação ao:",page:"Página",largest_object:"maior objeto",selected_objects:"objetos eleitos",smallest_object:"menor objeto",new_doc:"Nova Imagem",open_doc:"Abrir Imagem",export_img:"Export",save_doc:"Salvar Imagem",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Alinhar ao centro",align_left:"Alinhar à Esquerda",align_middle:"Alinhar Médio",align_right:"Alinhar à Direita",align_top:"Align Top",mode_select:"Selecione a ferramenta",mode_fhpath:"Ferramenta Lápis",mode_line:"Ferramenta Linha",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Ferramenta de Texto",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Desfazer",redo:"Refazer",tool_source:"Fonte Editar",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementos do Grupo",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elementos Desagrupar",docprops:"Propriedades do Documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Salvar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move camada para baixo",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Selecione predefinidos:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),TB=Object.freeze({__proto__:null,default:{lang:"ro",dir:"ltr",common:{ok:"Ok",cancel:"Anulaţi",key_backspace:"backspace",key_del:"ştergere",key_down:"jos",key_up:"sus",more_opts:"Mai multe opţiuni",url:"URL",width:"Lăţime",height:"Înălţime"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Arătaţi/ascundeţi mai multe unelte de contur",palette_info:"Faceţi clic pentru a schimba culoarea de umplere, Shift-clic pentru a schimba culoarea de contur",zoom_level:"Schimbarea nivelului de zoom",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identificare element",fill_color:"Schimbarea culorii de umplere",stroke_color:"Schimbarea culorii de contur",stroke_style:"Schimbarea stilului de contur",stroke_width:"Schimbarea lăţimii conturului",pos_x:"Schimbă coordonata X",pos_y:"Schimbă coordonata Y",linecap_butt:"Capăt de linie: Butuc",linecap_round:"Capăt de linie: Rotund",linecap_square:"Capăt de linie: Pătrat",linejoin_bevel:"Articulaţia liniei: Teşită",linejoin_miter:"Articulaţia liniei: Unghi ascuţit",linejoin_round:"Articulaţia liniei: Rotundă",angle:"Schimbarea unghiul de rotaţie",blur:"Schimbarea valorii estomparii gaussiene",opacity:"Schimbarea gradului de opacitate",circle_cx:"Schimbarea coordonatei CX a cercului",circle_cy:"Schimbarea coordonatei CY a cercului",circle_r:"Schimbarea razei cercului",ellipse_cx:"Schimbarea coordonatei CX a elipsei",ellipse_cy:"Schimbarea coordonatei CY a elipsei",ellipse_rx:"Schimbarea razei elipsei X",ellipse_ry:"Schimbarea razei elipsei Y",line_x1:"Schimbarea coordonatei x a punctului de start",line_x2:"Schimbarea coordonatei x a punctului final",line_y1:"Schimbarea coordonatei y a punctului de start",line_y2:"Schimbare coordonatei y a punctului final",rect_height:"Schimbarea înălţimii dreptunghiului",rect_width:"Schimbarea lăţimii dreptunghiului",corner_radius:"Schimbarea razei colţului dreptunghiului",image_width:"Schimbarea lăţimii imaginii",image_height:"Schimbarea înălţimii imaginii",image_url:"Schimbaţi URL-ul",node_x:"Schimbă coordonata x a punctului",node_y:"Schimbă coordonata x a punctului",seg_type:"Schimbă tipul de segment",straight_segments:"Drept",curve_segments:"Curb",text_contents:"Schimbarea conţinutului textului",font_family_label:"Font:",font_family:"Modificare familie de fonturi",font_size:"Schimbă dimensiunea fontului",bold:"Text Îngroşat",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Text Înclinat",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Menu Principal",bkgnd_color_opac:"Schimbare culoare de fundal / opacitate",connector_no_arrow:"Fără săgeată",fitToContent:"Dimensionare la conţinut",fit_to_all:"Potrivire la tot conţinutul",fit_to_canvas:"Potrivire la Şevalet",fit_to_layer_content:"Potrivire la conţinutul stratului",fit_to_sel:"Potrivire la selecţie",align_relative_to:"Aliniere în raport cu ...",relativeTo:"în raport cu:",page:"pagină",largest_object:"cel mai mare obiect",selected_objects:"obiectele alese",smallest_object:"cel mai mic obiect",new_doc:"Imagine nouă",open_doc:"Imagine deschisă",export_img:"Export",save_doc:"Salvare imagine",import_doc:"Importare SVG",align_to_page:"Aliniere la pagină",align_bottom:"Aliniere jos",align_center:"Aliniere la centru",align_left:"Aliniere la stânga",align_middle:"Aliniere la mijloc",align_right:"Aliniere la dreapta",align_top:"Aliniere sus",mode_select:"Unealtă de Selectare",mode_fhpath:"Unealtă de Traiectorie",mode_line:"Unealtă de Linie",mode_rect:"Unealtă de Dreptunghi",mode_square:"Unealtă de Pătrat",mode_fhrect:"Dreptunghi cu mana liberă",mode_ellipse:"Elipsă",mode_circle:"Cerc",mode_fhellipse:"Elipsă cu mana liberă",mode_path:"Unealtă de Traiectorie",mode_text:"Unealtă de Text",mode_image:"Unealtă de Imagine",mode_zoom:"Unealtă de Zoom",no_embed:"NOTE: Aceasta imagine nu poate fi inglobată. Va depinde de aceasta traiectorie pentru a fi prezentată.",undo:"Anulare",redo:"Refacere",tool_source:"Editare Cod Sursă",wireframe_mode:"Mod Schelet",clone:"Clonează Elementul/ele",del:"Şterge Elementul/ele",group_elements:"Grupare Elemente",make_link:"Crează (hyper)link",set_link_url:"Setează link URL (lăsaţi liber pentru eliminare)",to_path:"Converteşte in Traiectorie",reorient_path:"Reorientează Traiectoria",ungroup:"Anulare Grupare Elemente",docprops:"Proprietăţile Documentului",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mutare în jos",move_top:"Mutare în sus",node_clone:"Clonează Punct",node_delete:"Şterge Punct",node_link:"Uneşte Punctele de Control",add_subpath:"Adăugaţi sub-traiectorie",openclose_path:"Deschide/inchide sub-traiectorie",source_save:"Folosiţi Schimbările",cut:"Tăiere",copy:"Copiere",paste:"Reproducere",paste_in_place:"Reproducere pe loc",delete:"Ştergere",group:"Group",move_front:"Pune in faţa",move_up:"Pune in spate",move_down:"Trimite in faţa",move_back:"Trimite in spate",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Strat",layers:"Straturi",del:"Ştergeţi Strat",move_down:"Mutare Strat în Jos",new:"Strat Nou",rename:"Redenumiţi Stratul",move_up:"Mutare Strat în Sus",dupe:"Duplicaţi Stratul",merge_down:"Fuzionare in jos",merge_all:"Fuzionarea tuturor",move_elems_to:"Mută elemente la:",move_selected:"Mută elementele selectate pe un alt strat"},config:{image_props:"Proprietăţile Imaginii",doc_title:"Titlul",doc_dims:"Dimensiunile Şevaletului",included_images:"Imaginile Incluse",image_opt_embed:"Includeţi Datele (fişiere locale)",image_opt_ref:"Foloseşte referinţe la fişiere",editor_prefs:"Preferinţele Editorului",language:"Limba",background:"Fondul Editorului",editor_img_url:"URL-ul Imaginii",editor_bg_note:"Notă: Fondul nu va fi salvat cu imaginea.",select_predefined:"Selecţii predefinite:",units_and_rulers:"Unitati si Rigle",show_rulers:"Arată Riglele",base_unit:"Unitate de baza:",grid:"Caroiaj",snapping_onoff:"Fixare on/off",snapping_stepsize:"Dimensiunea pasului de fixare:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Valoarea data nu este validă",noContentToFitTo:"Fara conţinut de referinţă",dupeLayerName:"Deja exista un strat numit asa!",enterUniqueLayerName:"Rog introduceţi un nume unic",enterNewLayerName:"Rog introduceţi un nume pentru strat",layerHasThatName:"Statul deja are acest nume",QmoveElemsToLayer:"Mutaţi elementele selectate pe stratul '%s'?",QwantToClear:"Doriti să ştergeţi desenul?\nAceasta va sterge si posibilitatea de anulare!",QwantToOpen:"Doriti sa deschideţi un nou fişier?\nAceasta va şterge istoricul!",QerrorsRevertToSource:"Sunt erori de parsing in sursa SVG.\nRevenire la sursa SVG orginală?",QignoreSourceChanges:"Ignoraţi schimbarile la sursa SVG?",featNotSupported:"Funcţie neimplementată",enterNewImgURL:"Introduceţi noul URL pentru Imagine",defsFailOnSave:"NOTE: Din cauza unei erori in browserul dv., aceasta imagine poate apare gresit (fara gradiente sau elemente). Însă va apare corect dupa salvare.",loadingImage:"Imaginea se incarcă, va rugam asteptaţi...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"De asemenea remarcati urmatoarele probleme: ",unsavedChanges:"Sunt schimbări nesalvate.",enterNewLinkURL:"IntroduAliniere în raport cu ...sceţi noul URL",errorLoadingSVG:"Eroare: Nu se pot încărca datele SVG",URLLoadFail:"Nu se poate încărca de la URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),FB=Object.freeze({__proto__:null,default:{lang:"ru",dir:"ltr",common:{ok:"Сохранить",cancel:"Отменить",key_backspace:"Backspace",key_del:"Delete",key_down:"Вниз",key_up:"Вверх",more_opts:"Доп. Настройки",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Показать/скрыть инструменты обводки",palette_info:"Нажмите для изменения цвета заливки, Shift-Click изменить цвета обводки",zoom_level:"Изменить масштаб",panel_action:"Click to open side panel",quality:"Качество:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Идентификатор элемента",fill_color:"Изменить цвет заливки",stroke_color:"Изменить цвет обводки",stroke_style:"Изменить стиль обводки",stroke_width:"Изменить толщину обводки",pos_x:"Изменить горизонтальный координат",pos_y:"Изменить вертикальный координат",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Изменить угол поворота",blur:"Изменяет значение размытия",opacity:"Изменить непрозрачность элемента",circle_cx:"Изменить горизонтальный координат (CX) окружности",circle_cy:"Изменить вертикальный координат (CY) окружности",circle_r:"Изменить радиус окружности",ellipse_cx:"Изменить горизонтальный координат (CX) эллипса",ellipse_cy:"Изменить вертикальный координат (CY) эллипса",ellipse_rx:"Изменить горизонтальный радиус эллипса",ellipse_ry:"Изменить вертикальный радиус эллипса",line_x1:"Изменить горизонтальный координат X начальной точки линии",line_x2:"Изменить горизонтальный координат X конечной точки линии",line_y1:"Изменить вертикальный координат Y начальной точки линии",line_y2:"Изменить вертикальный координат Y конечной точки линии",rect_height:"Изменениe высоту прямоугольника",rect_width:"Измененить ширину прямоугольника",corner_radius:"Радиус закругленности угла",image_width:"Изменить ширину изображения",image_height:"Изменить высоту изображения",image_url:"Изменить URL",node_x:"Изменить горизонтальную координату узла",node_y:"Изменить вертикальную координату узла",seg_type:"Изменить вид",straight_segments:"Отрезок",curve_segments:"Сплайн",text_contents:"Изменить содержание текста",font_family_label:"Font:",font_family:"Изменить семейство шрифтов",font_size:"Изменить размер шрифта",bold:"Жирный",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Курсив",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Главное меню",bkgnd_color_opac:"Изменить цвет фона или прозрачность",connector_no_arrow:"Нет стрелки",fitToContent:"Под размер содержимого",fit_to_all:"Под размер всех слоев",fit_to_canvas:"Под размер холста",fit_to_layer_content:"Под размер содержания слоя",fit_to_sel:"Под размер выделенного",align_relative_to:"Выровнять по отношению к ...",relativeTo:"По отношению к ",page:"страница",largest_object:"Наибольший объект",selected_objects:"Выделенные объекты",smallest_object:"Самый маленький объект",new_doc:"Создать изображение",open_doc:"Открыть изображение",export_img:"Экспорт",save_doc:"Сохранить изображение",import_doc:"Импорт изображения",align_to_page:"Align Element to Page",align_bottom:"Выровнять по нижнему краю",align_center:"Центрировать по вертикальной оси",align_left:"По левому краю",align_middle:"Центрировать по горизонтальной оси",align_right:"По правому краю",align_top:"Выровнять по верхнему краю",mode_select:"Выделить",mode_fhpath:"Карандаш",mode_line:"Линия",mode_rect:"Прямоугольник",mode_square:"Квадрат",mode_fhrect:"Прямоугольник от руки",mode_ellipse:"Эллипс",mode_circle:"Окружность",mode_fhellipse:"Эллипс от руки",mode_path:"Контуры",mode_text:"Текст",mode_image:"Изображение",mode_zoom:"Лупа",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Отменить",redo:"Вернуть",tool_source:"Редактировать исходный код",wireframe_mode:"Каркас",clone:"Клонировать элемент(ы)",del:"Удалить элемент(ы)",group_elements:"Создать группу элементов",make_link:"Сделать ссылкой",set_link_url:"Ссылка(оставьте пустым для удаления)",to_path:"В контур",reorient_path:"Изменить ориентацию контура",ungroup:"Разгруппировать элементы",docprops:"Свойства документа",editor_homepage:"SVG-Edit Home Page",move_bottom:"Опустить",move_top:"Поднять",node_clone:"Создать копию узла",node_delete:"Удалить узел",node_link:"Связать узлы",add_subpath:"Добавить линию",openclose_path:"Разомкнуть/Замкнуть линию",source_save:"Сохранить",cut:"Вырезать",copy:"Копировать",paste:"Вставить",paste_in_place:"Вставить сюда",Delete:"Удалить",group:"Группировка",move_front:"На передний план",move_up:"Передвинуть вперед",move_down:"Передвинуть назад",move_back:"На задний план",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Слой",layers:"Слои",del:"Удалить слой",move_down:"Опустить слой",new:"Создать слой",rename:"Переименовать Слой",move_up:"Поднять слой",dupe:"Копировать слой",merge_down:"Объединить с нижним",merge_all:"Объединить все",move_elems_to:"Переместить выделенные элементы:",move_selected:"Переместить выделенные элементы на другой слой"},config:{image_props:"Свойства изображения",doc_title:"Название",doc_dims:"Размеры холста",included_images:"Встроенные изображения",image_opt_embed:"Локальные файлы",image_opt_ref:"По ссылкам",editor_prefs:"Параметры",language:"Язык",background:"Фон",editor_img_url:"Изображение URL",editor_bg_note:"(Фон не сохранится вместе с изображением.)",select_predefined:"Выбирать предопределенный размер",units_and_rulers:"Единицы & Линейки",show_rulers:"Показывать линейки",base_unit:"Единицы:",grid:"Сетка",snapping_onoff:"Привязка вкл/выкл",snapping_stepsize:"Шаг привязки:",grid_color:"Цвет сетки",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Некорректное значение аргумента",noContentToFitTo:"Нет содержания, по которому выровнять.",dupeLayerName:"Слой с этим именем уже существует.",enterUniqueLayerName:"Пожалуйста, введите имя для слоя.",enterNewLayerName:"Пожалуйста, введите новое имя.",layerHasThatName:"Слой уже называется этим именем.",QmoveElemsToLayer:"Переместить выделенные элементы на слой '%s'?",QwantToClear:"Вы хотите очистить?\nИстория действий будет забыта!",QwantToOpen:"Открыть новый файл?\nИстория действий будет забыта!",QerrorsRevertToSource:"Была проблема при парсинге вашего SVG исходного кода.\nЗаменить его предыдущим SVG кодом?",QignoreSourceChanges:"Забыть без сохранения?",featNotSupported:"Возможность не реализована",enterNewImgURL:"Введите новый URL изображения",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Загрузка изоражения, придется подождать...",saveFromBrowser:"Выберите 'Сохранить как...' в вашем браузере (возможно через меню файл или в контекстном меню) чтобы сохранить как файл %s.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"Есть несохраненные изменения.",enterNewLinkURL:"Введите новую ссылку URL",errorLoadingSVG:"Ошибка: Не удалось загрузить SVG данные",URLLoadFail:"Не удалось загрузить по ссылке URL",retrieving:"Получение '%s' ...",popupWindowBlocked:"Всплывающее окно могло заблокироваться браузером",exportNoBlur:"Размытые элементы отображены как неразмытые",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Текст может показываться не так как должен",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),UB=Object.freeze({__proto__:null,default:{lang:"sk",dir:"ltr",common:{ok:"Uložiť",cancel:"Zrušiť",key_backspace:"Backspace",key_del:"Delete",key_down:"šípka dole",key_up:"šípka hore",more_opts:"Viac možností",url:"URL",width:"Šírka",height:"Výška"},misc:{powered_by:"Beží na"},ui:{toggle_stroke_tools:"Skryť/ukázať viac nástrojov pre krivku",palette_info:"Kliknutím zmeníte farbu výplne, so Shiftom zmeníte farbu obrysu",zoom_level:"Zmena priblíženia",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Zmeniť ID elementu",fill_color:"Zmeniť farbu výplne",stroke_color:"Zmeniť farbu obrysu",stroke_style:"Zmeniť štýl obrysu",stroke_width:"Zmeniť hrúbku obrysu",pos_x:"Zmeniť súradnicu X",pos_y:"Zmeniť súradnicu Y",linecap_butt:"Koniec čiary: presný",linecap_round:"Koniec čiary: zaoblený",linecap_square:"Koniec čiary: so štvorcovým presahom",linejoin_bevel:"Napojenie čiar: skosené",linejoin_miter:"Napojenie čiar: ostré",linejoin_round:"Napojenie čiar: oblé",angle:"Zmeniť uhol natočenia",blur:"Zmeniť intenzitu rozmazania",opacity:"Zmeniť prehľadnosť vybraných položiek",circle_cx:"Zmeniť súradnicu X stredu kružnice",circle_cy:"Zmeniť súradnicu Y stredu kružnice",circle_r:"Zmeniť polomer kružnice",ellipse_cx:"Zmeniť súradnicu X stredu elipsy",ellipse_cy:"Zmeniť súradnicu Y stredu elipsy",ellipse_rx:"Zmeniť polomer X elipsy",ellipse_ry:"Zmeniť polomer Y elipsy",line_x1:"Zmeniť počiatočnú súradnicu X čiary",line_x2:"Zmeniť koncovú súradnicu X čiary",line_y1:"Zmeniť počiatočnú súradnicu Y čiary",line_y2:"Zmeniť koncovú súradnicu Y čiary",rect_height:"Zmena výšku obdĺžnika",rect_width:"Zmeniť šírku obdĺžnika",corner_radius:"Zmeniť zaoblenie rohov obdĺžnika",image_width:"Zmeniť šírku obrázka",image_height:"Zmeniť výšku obrázka",image_url:"Zmeniť URL",node_x:"Zmeniť uzlu súradnicu X",node_y:"Zmeniť uzlu súradnicu Y",seg_type:"Zmeniť typ segmentu",straight_segments:"Rovný",curve_segments:"Krivka",text_contents:"Zmeniť text",font_family_label:"Font:",font_family:"Zmeniť font",font_size:"Zmeniť veľkosť písma",bold:"Tučné",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Kurzíva",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Hlavné menu",bkgnd_color_opac:"Zmeniť farbu a priehľadnosť pozadia",connector_no_arrow:"Spojnica bez šípok",fitToContent:"Prispôsobiť obsahu",fit_to_all:"Prisposobiť celému obsahu",fit_to_canvas:"Prispôsobiť stránke",fit_to_layer_content:"Prispôsobiť obsahu vrstvy",fit_to_sel:"Prispôsobiť výberu",align_relative_to:"Zarovnať relatívne k ...",relativeTo:"vzhľadom k:",page:"stránke",largest_object:"najväčšiemu objektu",selected_objects:"zvoleným objektom",smallest_object:"najmenšiemu objektu",new_doc:"Nový obrázok",open_doc:"Otvoriť obrázok",export_img:"Export",save_doc:"Uložiť obrázok",import_doc:"Import SVG",align_to_page:"Zarovnať element na stránku",align_bottom:"Zarovnať dole",align_center:"Zarovnať na stred",align_left:"Zarovnať doľava",align_middle:"Zarovnať na stred",align_right:"Zarovnať doprava",align_top:"Zarovnať hore",mode_select:"Výber",mode_fhpath:"Ceruzka",mode_line:"Čiara",mode_rect:"Obdĺžnik",mode_square:"Štvorec",mode_fhrect:"Obdĺžnik voľnou rukou",mode_ellipse:"Elipsa",mode_circle:"Kružnica",mode_fhellipse:"Elipsa voľnou rukou",mode_path:"Krivka",mode_text:"Text",mode_image:"Obrázok",mode_zoom:"Priblíženie",no_embed:"POZNÁMKA: Tento obrázok nemôže byť vložený. Jeho zobrazenie bude závisieť na jeho ceste",undo:"Späť",redo:"Opakovať",tool_source:"Upraviť SVG kód",wireframe_mode:"Drôtový model",clone:"Klonuj element(y)",del:"Zmaž element(y)",group_elements:"Zoskupiť elementy",make_link:"Naviaž odkaz (hyper)link",set_link_url:"Nastav odkaz URL (ak prázdny, odstráni sa)",to_path:"Previesť na krivku",reorient_path:"Zmeniť orientáciu krivky",ungroup:"Zrušiť skupinu",docprops:"Vlastnosti dokumentu",editor_homepage:"SVG-Edit Home Page",move_bottom:"Presunúť spodok",move_top:"Presunúť na vrch",node_clone:"Klonovať uzol",node_delete:"Zmazať uzol",node_link:"Prepojiť kontrolné body",add_subpath:"Pridať ďalšiu súčasť krivky",openclose_path:"Otvoriť/uzatvoriť súčasť krivky",source_save:"Uložiť",cut:"Vystrihnutie",copy:"Kópia",paste:"Vloženie",paste_in_place:"Vloženie na pôvodnom mieste",delete:"Zmazanie",group:"Group",move_front:"Vysuň navrch",move_up:"Vysuň vpred",move_down:"Zasuň na spodok",move_back:"Zasuň dozadu",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Vrstva",layers:"Vrstvy",del:"Odstrániť vrstvu",move_down:"Presunúť vrstvu dole",new:"Nová vrstva",rename:"Premenovať vrstvu",move_up:"Presunúť vrstvu hore",dupe:"Zduplikovať vrstvu",merge_down:"Zlúčiť s vrstvou dole",merge_all:"Zlúčiť všetko",move_elems_to:"Presunúť elementy do:",move_selected:"Presunúť vybrané elementy do inej vrstvy"},config:{image_props:"Vlastnosti obrázka",doc_title:"Titulok",doc_dims:"Rozmery plátna",included_images:"Vložené obrázky",image_opt_embed:"Vložiť data (lokálne súbory)",image_opt_ref:"Použiť referenciu na súbor",editor_prefs:"Vlastnosti editora",language:"Jazyk",background:"Zmeniť pozadie",editor_img_url:"Image URL",editor_bg_note:"Poznámka: Pozadie nebude uložené spolu s obrázkom.",select_predefined:"Vybrať preddefinovaný:",units_and_rulers:"Jednotky & Pravítka",show_rulers:"Ukáž pravítka",base_unit:"Základné jednotky:",grid:"Mriežka",snapping_onoff:"Priväzovanie (do mriežky) zap/vyp",snapping_stepsize:"Priväzovanie (do mriežky) veľkosť kroku:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Neplatná hodnota",noContentToFitTo:"Vyberte oblasť na prispôsobenie",dupeLayerName:"Vrstva s daným názvom už existuje!",enterUniqueLayerName:"Zadajte jedinečný názov vrstvy",enterNewLayerName:"Zadajte názov vrstvy",layerHasThatName:"Vrstva už má zadaný tento názov",QmoveElemsToLayer:"Presunúť elementy do vrstvy '%s'?",QwantToClear:"Naozaj chcete vymazať kresbu?\n(História bude taktiež vymazaná!)!",QwantToOpen:"Chcete otvoriť nový súbor?\nTo však tiež vymaže Vašu UNDO knižnicu!",QerrorsRevertToSource:"Chyba pri načítaní SVG dokumentu.\nVrátiť povodný SVG dokument?",QignoreSourceChanges:"Ignorovať zmeny v SVG dokumente?",featNotSupported:"Vlastnosť nie je podporovaná",enterNewImgURL:"Zadajte nové URL obrázka",defsFailOnSave:"POZNÁMKA: Kvôli chybe v prehliadači sa tento obrázok môže zobraziť nesprávne (napr. chýbajúce prechody či elementy). Po uložení sa zobrazí správne.",loadingImage:"Nahrávam obrázok, prosím čakajte ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Môžu sa vyskytnúť nasledujúce problémy: ",unsavedChanges:"Sú tu neuložené zmeny.",enterNewLinkURL:"Zadajte nové URL odkazu (hyperlink)",errorLoadingSVG:"Chyba: Nedajú sa načítať SVG data",URLLoadFail:"Nemožno čítať z URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),NB=Object.freeze({__proto__:null,default:{lang:"sl",dir:"ltr",common:{ok:"V redu",cancel:"Prekliči",key_backspace:"backspace",key_del:"delete",key_down:"dol",key_up:"gor",more_opts:"Več možnosti",url:"URL",width:"širina",height:"višina"},misc:{powered_by:"Izdelano z"},ui:{toggle_stroke_tools:"Pokaži/skrij več orodij za oris",palette_info:"Kliknite, če želite spremeniti barvo polnila, kliknite+Shift, če želite spremeniti barvo orisa",zoom_level:"Povečava",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"ID elementa",fill_color:"Spremeni barvo polnila",stroke_color:"Spremeni barvo orisa",stroke_style:"Spremeni slog orisa",stroke_width:"Spreminjanje širino orisa",pos_x:"Spremeni X koordinato",pos_y:"Spremeni Y koordinato",linecap_butt:"Začetek črte: odsekan",linecap_round:"Začetek črte: zaobljen",linecap_square:"Začetek črte: kvadraten",linejoin_bevel:"Ovinek črte: Odsekan",linejoin_miter:"Linejoin: V kot",linejoin_round:"Linejoin: Zaobljen",angle:"Spremeni kot zasuka",blur:"Spremeni zameglitev roba",opacity:"Spremeni prosojnost",circle_cx:"Spremeni CX koordinato",circle_cy:"Spremeni CY koordinato",circle_r:"Spremeni polmer kroga",ellipse_cx:"Spremeni CX koordinato",ellipse_cy:"Spremeni CY koordinato",ellipse_rx:"Spremeni X polmer",ellipse_ry:"Spremeni Y polmer",line_x1:"Spremeni začetno X koordinato",line_x2:"Spremeni končno X koordinato",line_y1:"Spremeni začetno Y koordinato",line_y2:"Spremeni končno Y koordinato",rect_height:"Spremeni višino pravokotnika",rect_width:"Spremeni širino pravokotnika",corner_radius:"Spremeni Pravokotnik Corner Radius",image_width:"Spremeni širino slike",image_height:"Spremeni višino slike",image_url:"Spremeni URL",node_x:"Spremeni X koordinato oglišča",node_y:"Spremeni Y koordinato oglišča",seg_type:"Spremeni vrsto odseka",straight_segments:"Raven odsek",curve_segments:"Ukrivljen odsek",text_contents:"Spremeni besedilo",font_family_label:"Font:",font_family:"Spremeni tip pisave",font_size:"Spremeni velikost pisave",bold:"Krepko",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Poševno",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Glavni meni",bkgnd_color_opac:"Spremeni barvo / prosojnost",connector_no_arrow:"Brez puščice",fitToContent:"Prilagodi vsebini",fit_to_all:"Prilagodi vsemu",fit_to_canvas:"Prilagodi sliki",fit_to_layer_content:"Prilagodi sloju",fit_to_sel:"Prilagodi izboru",align_relative_to:"Poravnaj glede na ...",relativeTo:"glede na:",page:"page",largest_object:"največji objekt",selected_objects:"izbrani objekt",smallest_object:"najmanjši objekt",new_doc:"Nova slika",open_doc:"Odpri sliko",export_img:"Izvozi v PNG",save_doc:"Shrani sliko",import_doc:"Uvozi SVG",align_to_page:"Poravnaj na stran",align_bottom:"Poravnaj na dno",align_center:"Poravnaj na sredino",align_left:"Poravnaj levo",align_middle:"Poravnaj na sredino",align_right:"Poravnaj desno",align_top:"Poravnaj na vrh",mode_select:"Izberi",mode_fhpath:"Svinčnik",mode_line:"Crta",mode_rect:"Pravokotnik",mode_square:"Kvadrat",mode_fhrect:"Prostoročni pravokotnik",mode_ellipse:"Elipsa",mode_circle:"Krog",mode_fhellipse:"Prostoročna elipsa",mode_path:"Pot",mode_text:"Besedilo",mode_image:"Slika",mode_zoom:"Povečava",no_embed:"OPOMBA: Ta slika ne more biti vključena. It will depend on this path to be displayed",undo:"Razveljavi",redo:"Uveljavi",tool_source:"Uredi vir",wireframe_mode:"Wireframe način",clone:"Kloniraj element(e)",del:"Izbriši element(e)",group_elements:"Združi element(e)",make_link:"Vstavi (hiper)povezavo",set_link_url:"Set link URL (leave empty to remove)",to_path:"Pretvori v pot",reorient_path:"Reorient pot",ungroup:"Razdruži elemente",docprops:"Lastnosti dokumenta",editor_homepage:"SVG-Edit Home Page",move_bottom:"Premakni na dno",move_top:"Premakni na vrh",node_clone:"Kloniraj oglišče",node_delete:"Izbriši oglišče",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Shrani",cut:"Izreži",copy:"Kopiraj",paste:"Prilepi",paste_in_place:"Prilepi na mesto",delete:"Izbriši",group:"Združi",move_front:"Postavi v ospredje",move_up:"Pomakni naporej",move_down:"Pomakni nazaj",move_back:"Postavi v ozadje",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Sloj",layers:"Sloji",del:"Izbriši sloj",move_down:"Premakni navzdol",new:"Nov sloj",rename:"Preimenuj sloj",move_up:"Premakni navzgor",dupe:"Podvoji sloj",merge_down:"Združi s spodnjimi",merge_all:"Združi vse",move_elems_to:"Premakni elemente v:",move_selected:"Premakne elemente v drug sloj"},config:{image_props:"Lastnosti slike",doc_title:"Naslov",doc_dims:"Dimenzije slike",included_images:"Vključene slike",image_opt_embed:"Vključene (local files)",image_opt_ref:"Povezane (Use file reference)",editor_prefs:"Lastnosti urejevalnika",language:"Jezik",background:"Ozadje urejevalnika",editor_img_url:"URL slike",editor_bg_note:"OPOMBA: Ozdaje ne bo shranjeno s sliko.",select_predefined:"Izberi prednastavljeno:",units_and_rulers:"Enote & ravnilo",show_rulers:"Pokaži ravnilo",base_unit:"Osnovne enote",grid:"Mreža",snapping_onoff:"Pripni na mrežo DA/NE",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Napačna vrednost!",noContentToFitTo:"Ni vsebine za prilagajanje",dupeLayerName:"Sloj s tem imenom že obstajal!",enterUniqueLayerName:"Vnesite edinstveno ime sloja",enterNewLayerName:"Vnesite ime novega sloja",layerHasThatName:"Sloje že ima to ime",QmoveElemsToLayer:"Premaknem izbrane elemente v sloj '%s'?",QwantToClear:"Ali želite počistiti risbo?\nTo bo izbrisalo tudi zgodovino korakov (ni mogoče razveljaviti)!",QwantToOpen:"Ali želite odpreti novo datoteko?\nTo bo izbrisalo tudi zgodovino korakov (ni mogoče razveljaviti)!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignoriram spremembe, narejene v SVG kodi?",featNotSupported:"Ni podprto",enterNewImgURL:"Vnesite nov URL slike",defsFailOnSave:"OPOMBA: Zaradi napake vašega brskalnika obstaja možnost, da ta slika ni prikazan pravilno (manjkajo določeni elementi ali gradient). Vseeno bo prikaz pravilen, ko bo slika enkrat shranjena.",loadingImage:"Nalagam sliko, prosimo, počakajte ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"Obstajajo neshranjene spremembe.",enterNewLinkURL:"Vnesite novo URL povezavo",errorLoadingSVG:"Napaka: Ne morem naložiti SVG podatkov",URLLoadFail:"Ne morem naložiti z URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),IB=Object.freeze({__proto__:null,default:{lang:"sq",dir:"ltr",common:{ok:"Ruaj",cancel:"Anulo",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klikoni për të ndryshuar mbushur me ngjyra, shift-klikoni për të ndryshuar ngjyrën pash",zoom_level:"Ndryshimi zoom nivel",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Ndryshimi mbush color",stroke_color:"Change color pash",stroke_style:"Ndryshimi dash goditje stil",stroke_width:"Ndryshimi goditje width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Kënd Ndryshimi rrotullim",blur:"Change gaussian blur value",opacity:"Ndryshimi zgjedhur errësirë item",circle_cx:"Cx rrethi Ndryshimi i bashkërenduar",circle_cy:"Ndryshimi i rrethit cy koordinuar",circle_r:"Rreze rreth Ndryshimi i",ellipse_cx:"Ndryshimi elips e cx koordinuar",ellipse_cy:"Elips cy Ndryshimi i bashkërenduar",ellipse_rx:"Rreze x elips Ndryshimi i",ellipse_ry:"Radiusi y elips ndërroj",line_x1:"Shkarko Ndryshimi që fillon x koordinuar",line_x2:"Linjë Ndryshimi i fund x koordinuar",line_y1:"Shkarko Ndryshimi që fillon y koordinuar",line_y2:"Shkarko Ndryshimi i dhënë fund y koordinuar",rect_height:"Height Ndryshimi drejtkëndësh",rect_width:"Width Ndryshimi drejtkëndësh",corner_radius:"Ndryshimi Rectangle Corner Radius",image_width:"Ndryshimi image width",image_height:"Height të ndryshuar imazhin",image_url:"Ndrysho URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Text contents Ndryshimi",font_family_label:"Font:",font_family:"Ndryshimi Font Family",font_size:"Ndryshimi Font Size",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change color background / patejdukshmëri",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit për të gjithë përmbajtjen",fit_to_canvas:"Fit në kanavacë",fit_to_layer_content:"Shtresë Fit to content",fit_to_sel:"Fit to Selection",align_relative_to:"Vendose në lidhje me ...",relativeTo:"lidhje me:",page:"faqe",largest_object:"madh objekt",selected_objects:"objektet e zgjedhur",smallest_object:"objektit më të vogël",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Mesme",align_right:"Align Right",align_top:"Align Top",mode_select:"Zgjidhni Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Lëndë Hand Rectangle",mode_ellipse:"Elips",mode_circle:"Rrethi",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Burimi Edit",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementet e Grupit",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elemente Ungroup",docprops:"Dokumenti Prona",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Ruaj",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Down Layer",new:"Re Shtresa",rename:"Rename Layer",move_up:"Move Up Layer",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Zgjidhni paracaktuara:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),MB=Object.freeze({__proto__:null,default:{lang:"sr",dir:"ltr",common:{ok:"Сачувати",cancel:"Откажи",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Кликните да бисте променили боју попуне, Схифт-кликните да промените боју удар",zoom_level:"Промените ниво зумирања",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Промена боје попуне",stroke_color:"Промена боје удар",stroke_style:"Промена ход Дасх стил",stroke_width:"Промена удара ширина",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Промени ротације Угао",blur:"Change gaussian blur value",opacity:"Промена изабране ставке непрозирност",circle_cx:"Промена круг&#39;с ЦКС координатни",circle_cy:"Промена круг&#39;с ср координатни",circle_r:"Промена круга је полупречник",ellipse_cx:"Промена елипса ЦКС&#39;с координатни",ellipse_cy:"Промена елипса&#39;с ср координатни",ellipse_rx:"Промена елипса&#39;с Кс радијуса",ellipse_ry:"Промена елипса је радијус Ы",line_x1:"Промена линија Стартни кс координата",line_x2:"Промена линија је завршетак кс координата",line_y1:"Промена линија у координатни почетак Ы",line_y2:"Промена линија је Ы координата се завршава",rect_height:"Промени правоугаоник висина",rect_width:"Промени правоугаоник ширине",corner_radius:"Промена правоугаоник Кутак радијуса",image_width:"Промени слику ширине",image_height:"Промени слику висине",image_url:"Промените УРЛ адресу",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Промена садржаја текстуалне",font_family_label:"Font:",font_family:"Цханге фонт породицу",font_size:"Цханге фонт сизе",bold:"Подебљан текст",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Италиц текст",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Промена боје позадине / непрозирност",connector_no_arrow:"No arrow",fitToContent:"Стане на садржај",fit_to_all:"Уклопи у сав садржај",fit_to_canvas:"Стане на платну",fit_to_layer_content:"Уклопи у слоју садржај",fit_to_sel:"Уклопи у избор",align_relative_to:"Алигн у односу на ...",relativeTo:"у односу на:",page:"страна",largest_object:"Највећи објекат",selected_objects:"изабраних објеката",smallest_object:"Најмањи објекат",new_doc:"Нова слика",open_doc:"Отвори слике",export_img:"Export",save_doc:"Сачувај слика",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Поравнај доле",align_center:"Поравнај по центру",align_left:"Поравнај лево",align_middle:"Алигн Средњи",align_right:"Поравнај десно",align_top:"Поравнајте врх",mode_select:"Изаберите алатку",mode_fhpath:"Алатка оловка",mode_line:"Линија Алат",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Фрее-Ручни правоугаоник",mode_ellipse:"Елипса",mode_circle:"Круг",mode_fhellipse:"Фрее-Ручни Елипса",mode_path:"Path Tool",mode_text:"Текст Алат",mode_image:"Алатка за слике",mode_zoom:"Алатка за зумирање",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Поништи",redo:"Редо",tool_source:"Уреди Извор",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група Елементи",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Разгрупирање Елементи",docprops:"Особине документа",editor_homepage:"SVG-Edit Home Page",move_bottom:"Премести на доле",move_top:"Премести на врх",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Сачувати",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Избриши слој",move_down:"Помери слој доле",new:"Нови слој",rename:"Преименуј слој",move_up:"Помери слој Горе",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Изаберите унапред дефинисани:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),RB=Object.freeze({__proto__:null,default:{lang:"sv",dir:"ltr",common:{ok:"Spara",cancel:"Avbryt",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klicka för att ändra fyllningsfärg, shift-klicka för att ändra färgar",zoom_level:"Ändra zoomnivå",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Ändra fyllningsfärg",stroke_color:"Ändra färgar",stroke_style:"Ändra stroke Dash stil",stroke_width:"Ändra stroke bredd",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Ändra rotationsvinkel",blur:"Change gaussian blur value",opacity:"Ändra markerat objekt opacitet",circle_cx:"Ändra cirkeln cx samordna",circle_cy:"Ändra cirkeln samordna cy",circle_r:"Ändra cirkelns radie",ellipse_cx:"Ändra ellips&#39;s cx samordna",ellipse_cy:"Ändra ellips&#39;s samordna cy",ellipse_rx:"Ändra ellips&#39;s x radie",ellipse_ry:"Ändra ellips&#39;s y radie",line_x1:"Ändra Lines startar x samordna",line_x2:"Ändra Lines slutar x samordna",line_y1:"Ändra Lines startar Y-koordinat",line_y2:"Ändra Lines slutar Y-koordinat",rect_height:"Ändra rektangel höjd",rect_width:"Ändra rektangel bredd",corner_radius:"Ändra rektangel hörnradie",image_width:"Ändra bild bredd",image_height:"Ändra bildhöjd",image_url:"Ändra URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Ändra textinnehållet",font_family_label:"Font:",font_family:"Ändra Typsnitt",font_size:"Ändra textstorlek",bold:"Fet text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Kursiv text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Ändra bakgrundsfärg / opacitet",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Passar till allt innehåll",fit_to_canvas:"Anpassa till duk",fit_to_layer_content:"Anpassa till lager innehåll",fit_to_sel:"Anpassa till val",align_relative_to:"Justera förhållande till ...",relativeTo:"jämfört:",page:"sida",largest_object:"största objekt",selected_objects:"valda objekt",smallest_object:"minsta objektet",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Centrera",align_left:"Vänsterjustera",align_middle:"Justera Middle",align_right:"Högerjustera",align_top:"Justera Top",mode_select:"Markeringsverktyget",mode_fhpath:"Pennverktyget",mode_line:"Linjeverktyg",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Fri hand rektangel",mode_ellipse:"Ellips",mode_circle:"Circle",mode_fhellipse:"Fri hand Ellipse",mode_path:"Path Tool",mode_text:"Textverktyg",mode_image:"Bildverktyg",mode_zoom:"Zoomverktyget",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Ångra",redo:"Redo",tool_source:"Redigera källa",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Dela Elements",docprops:"Dokumentegenskaper",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Flytta till början",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Spara",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Radera Layer",move_down:"Flytta Layer Down",new:"New Layer",rename:"Byt namn på Layer",move_up:"Flytta Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Välj fördefinierad:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),OB=Object.freeze({__proto__:null,default:{lang:"sw",dir:"ltr",common:{ok:"Okoa",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click kubadili kujaza color, skiftarbete-click kubadili kiharusi color",zoom_level:"Change zoom ngazi",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Change kujaza Michezo",stroke_color:"Change kiharusi Michezo",stroke_style:"Change kiharusi dash style",stroke_width:"Change kiharusi width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change mzunguko vinkel",blur:"Change gaussian blur value",opacity:"Change selected opacity punkt",circle_cx:"Change mduara&#39;s CX kuratibu",circle_cy:"Change mduara&#39;s cy kuratibu",circle_r:"Change mduara&#39;s Radius",ellipse_cx:"Change ellipse s CX kuratibu",ellipse_cy:"Change ellipse s cy kuratibu",ellipse_rx:"Change ellipse s x Radius",ellipse_ry:"Change ellipse&#39;s y Radius",line_x1:"Change Mpya&#39;s mapya x kuratibu",line_x2:"Change Mpya&#39;s kuishia x kuratibu",line_y1:"Change Mpya&#39;s mapya y kuratibu",line_y2:"Change Mpya&#39;s kuishia y kuratibu",rect_height:"Change Mstatili height",rect_width:"Change Mstatili width",corner_radius:"Change Mstatili Corner Radius",image_width:"Change image width",image_height:"Change image urefu",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change Nakala contents",font_family_label:"Font:",font_family:"Change font Family",font_size:"Change font Size",bold:"Bold Nakala",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italiki Nakala",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color / opacity",connector_no_arrow:"No arrow",fitToContent:"Waliopo Content",fit_to_all:"Waliopo all content",fit_to_canvas:"Wanaofaa Canvas",fit_to_layer_content:"Waliopo safu content",fit_to_sel:"Waliopo uteuzi",align_relative_to:"Align jamaa na ...",relativeTo:"relativa att:",page:"Page",largest_object:"ukubwa object",selected_objects:"waliochaguliwa vitu",smallest_object:"minsta object",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Kati align",align_right:"Align Right",align_top:"Align Juu",mode_select:"Select Tool",mode_fhpath:"Penseli Tool",mode_line:"Mpya Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Nakala Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Tengua",redo:"Redo",tool_source:"Edit Lugha",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Kikundi Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Kuhama Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"Mpya Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),QB=Object.freeze({__proto__:null,default:{lang:"test",dir:"ltr",common:{ok:"OK",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width by 1, shift-click to change by 0.1",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family_label:"Font:",font_family:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"selected objects",smallest_object:"smallest object",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Apply Changes",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Move Layer Up",move_down:"Move Layer Down",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),qB=Object.freeze({__proto__:null,default:{lang:"th",dir:"ltr",common:{ok:"บันทึก",cancel:"ยกเลิก",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"คลิกเพื่อเปลี่ยนใส่สีกะคลิกเปลี่ยนสีจังหวะ",zoom_level:"เปลี่ยนระดับการซูม",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"เปลี่ยนใส่สี",stroke_color:"สีจังหวะเปลี่ยน",stroke_style:"รีบเปลี่ยนสไตล์จังหวะ",stroke_width:"ความกว้างจังหวะเปลี่ยน",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"มุมหมุนเปลี่ยน",blur:"Change gaussian blur value",opacity:"เปลี่ยนความทึบเลือกรายการ",circle_cx:"Cx วงกลมเปลี่ยนของพิกัด",circle_cy:"วงกลมเปลี่ยนเป็น cy ประสานงาน",circle_r:"รัศมีวงกลมเปลี่ยนเป็น",ellipse_cx:"เปลี่ยน ellipse ของ cx ประสานงาน",ellipse_cy:"Ellipse เปลี่ยนของ cy ประสานงาน",ellipse_rx:"Ellipse เปลี่ยนของรัศมี x",ellipse_ry:"Ellipse เปลี่ยนของรัศมี y",line_x1:"สายเปลี่ยนเป็นเริ่มต้น x พิกัด",line_x2:"สายเปลี่ยนเป็นสิ้นสุด x พิกัด",line_y1:"สายเปลี่ยนเป็นเริ่มต้น y พิกัด",line_y2:"สายเปลี่ยนเป็นสิ้นสุด y พิกัด",rect_height:"ความสูงสี่เหลี่ยมผืนผ้าเปลี่ยน",rect_width:"ความกว้างสี่เหลี่ยมผืนผ้าเปลี่ยน",corner_radius:"รัศมีเปลี่ยนสี่เหลี่ยมผืนผ้า Corner",image_width:"ความกว้างเปลี่ยนรูปภาพ",image_height:"ความสูงเปลี่ยนรูปภาพ",image_url:"URL เปลี่ยน",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"เปลี่ยนเนื้อหาข้อความ",font_family_label:"Font:",font_family:"ครอบครัว Change Font",font_size:"เปลี่ยนขนาดตัวอักษร",bold:"ข้อความตัวหนา",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"ข้อความตัวเอียง",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"สีพื้นหลังเปลี่ยน / ความทึบ",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"พอดีกับเนื้อหาทั้งหมด",fit_to_canvas:"เหมาะสมในการผ้าใบ",fit_to_layer_content:"พอดีเนื้อหาชั้นที่",fit_to_sel:"เหมาะสมในการเลือก",align_relative_to:"จัดชิดเทียบกับ ...",relativeTo:"เทียบกับ:",page:"หน้า",largest_object:"ที่ใหญ่ที่สุดในวัตถุ",selected_objects:"วัตถุเลือกตั้ง",smallest_object:"วัตถุที่เล็กที่สุด",new_doc:"รูปภาพใหม่",open_doc:"ภาพเปิด",export_img:"Export",save_doc:"บันทึกรูปภาพ",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"ด้านล่างชิด",align_center:"จัดแนวกึ่งกลาง",align_left:"จัดชิดซ้าย",align_middle:"กลางชิด",align_right:"จัดชิดขวา",align_top:"ด้านบนชิด",mode_select:"เครื่องมือเลือก",mode_fhpath:"เครื่องมือดินสอ",mode_line:"เครื่องมือ Line",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"สี่เหลี่ยมผืนผ้า Free-Hand",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Ellipse Free-Hand",mode_path:"Path Tool",mode_text:"เครื่องมือ Text",mode_image:"เครื่องมือ Image",mode_zoom:"เครื่องมือซูม",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"เลิก",redo:"ทำซ้ำ",tool_source:"แหล่งที่มาแก้ไข",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"องค์ประกอบของกลุ่ม",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"องค์ประกอบ Ungroup",docprops:"คุณสมบัติของเอกสาร",editor_homepage:"SVG-Edit Home Page",move_bottom:"ย้ายไปด้านล่าง",move_top:"ย้ายไปด้านบน",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"บันทึก",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"ย้าย Layer ลง",new:"Layer ใหม่",rename:"Layer เปลี่ยนชื่อ",move_up:"ย้าย Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"เลือกที่กำหนดไว้ล่วงหน้า:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),VB=Object.freeze({__proto__:null,default:{lang:"tl",dir:"ltr",common:{ok:"I-save",cancel:"I-cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"I-click upang baguhin ang punan ang kulay, paglilipat-click upang baguhin ang paghampas ng kulay",zoom_level:"Baguhin ang antas ng zoom",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Baguhin ang punuin ng kulay",stroke_color:"Baguhin ang kulay ng paghampas",stroke_style:"Baguhin ang stroke pagsugod estilo",stroke_width:"Baguhin ang stroke lapad",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Baguhin ang pag-ikot anggulo",blur:"Change gaussian blur value",opacity:"Palitan ang mga napiling bagay kalabuan",circle_cx:"Cx Baguhin ang bilog&#39;s coordinate",circle_cy:"Baguhin ang bilog&#39;s cy coordinate",circle_r:"Baguhin ang radius ng bilog",ellipse_cx:"Baguhin ang tambilugan&#39;s cx-ugma",ellipse_cy:"Baguhin ang tambilugan&#39;s cy coordinate",ellipse_rx:"X radius Baguhin ang tambilugan&#39;s",ellipse_ry:"Y radius Baguhin ang tambilugan&#39;s",line_x1:"Baguhin ang linya ng simula x coordinate",line_x2:"Baguhin ang linya ay nagtatapos x coordinate",line_y1:"Baguhin ang linya ng simula y coordinate",line_y2:"Baguhin ang linya ay nagtatapos y coordinate",rect_height:"Baguhin ang rektanggulo taas",rect_width:"Baguhin ang rektanggulo lapad",corner_radius:"Baguhin ang Parihaba Corner Radius",image_width:"Baguhin ang lapad ng imahe",image_height:"Baguhin ang taas ng imahe",image_url:"Baguhin ang URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Baguhin ang mga nilalaman ng teksto",font_family_label:"Font:",font_family:"Baguhin ang Pamilya ng Font",font_size:"Baguhin ang Laki ng Font",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Baguhin ang kulay ng background / kalabuan",connector_no_arrow:"No arrow",fitToContent:"Pagkasyahin sa Nilalaman",fit_to_all:"Pagkasyahin sa lahat ng mga nilalaman",fit_to_canvas:"Pagkasyahin sa tolda",fit_to_layer_content:"Pagkasyahin sa layer nilalaman",fit_to_sel:"Pagkasyahin sa pagpili",align_relative_to:"Pantayin sa kamag-anak sa ...",relativeTo:"kamag-anak sa:",page:"pahina",largest_object:"pinakamalaking bagay",selected_objects:"inihalal na mga bagay",smallest_object:"pinakamaliit na bagay",new_doc:"Bagong Imahe",open_doc:"Buksan ang Image",export_img:"Export",save_doc:"I-save ang Image",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Pantayin sa Ibaba",align_center:"Pantayin sa Gitna",align_left:"Pantayin ang Kaliwa",align_middle:"Pantayin sa Gitnang",align_right:"Pantayin sa Kanan",align_top:"Pantayin Top",mode_select:"Piliin ang Tool",mode_fhpath:"Kasangkapan ng lapis",mode_line:"Line Kasangkapan",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Libreng-kamay Parihaba",mode_ellipse:"Tambilugan",mode_circle:"Circle",mode_fhellipse:"Libreng-kamay tambilugan",mode_path:"Path Tool",mode_text:"Text Kasangkapan",mode_image:"Image Kasangkapan",mode_zoom:"Mag-zoom Kasangkapan",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Bawiin",redo:"Gawin muli",tool_source:"I-edit ang Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Sangkap",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Sangkap",docprops:"Document Katangian",editor_homepage:"SVG-Edit Home Page",move_bottom:"Ilipat sa Ibaba",move_top:"Ilipat sa Tuktok",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"I-save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Tanggalin Layer",move_down:"Ilipat Layer Down",new:"Bagong Layer",rename:"Palitan ang pangalan ng Layer",move_up:"Ilipat Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Piliin ang paunang-natukoy na:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),GB=Object.freeze({__proto__:null,default:{lang:"tr",dir:"ltr",common:{ok:"Tamam",cancel:"İptal",key_backspace:"Gerisilme",key_del:"Delete",key_down:"Aşağı",key_up:"Yukarı",more_opts:"Daha fazla",url:"URL",width:"En",height:"Boy"},misc:{powered_by:"Geliştiren"},ui:{toggle_stroke_tools:"Göster/Gizle çizim araçları",palette_info:"Dolgu rengini değiştirmek için tıklayın, shift-click ile çizgi rengini değiştirin",zoom_level:"Yakınlık seviyesini değiştirin",panel:"Panel",panel_action:"Yan paneli açmak için tıklayın",quality:"Kalite:",pathNodeTooltip:"Düğümü taşıyarak hareket ettirin. Düğüme tıklayarak kesit türünü değiştirin",pathCtrlPtTooltip:"denetleme noktasını sürükleyerek eğriyi değiştirin",pick_stroke_paint_opacity:"Çizgi Rengi ve Saydamlık düzeyi seçin",pick_fill_paint_opacity:"Dolgu Rengi ve Saydamlık düzeyi seçin",group_identify_label:"Grup kimlik etiketi",export_type_label:"Dışa aktarma için resim seçin:"},properties:{id:"Öge kimlik numarası",fill_color:"Dolgu rengini değiştir",stroke_color:"Çizgi rengini değiştir",stroke_style:"Çizgi stilini değiştir",stroke_width:"Çizgi kalınlığını 1 birim değiştir, shift-click ile 0.1 birim değiştir",pos_x:"X koordinatı değiştir",pos_y:"Y koordinatı değiştir",linecap_butt:"ÇizgiUcu: Butt",linecap_round:"ÇizgiUcu: Yuvarlak",linecap_square:"ÇizgiUcu: Kare",linejoin_bevel:"ÇizgiBirleşim: Kabartma",linejoin_miter:"ÇizgiBirleşim: Miter",linejoin_round:"ÇizgiBirleşim: Yuvarlak",angle:"Döndürme açısını değiştir",blur:"Gaussian bulanıklık değerini değiştir",opacity:"Seçilen ögenin saydamlığını değiştir",circle_cx:"Çemberin cx koordinatını değiştir",circle_cy:"Çemberin cy koordinatını değiştir",circle_r:"Çemberin yarıçapını değiştir",ellipse_cx:"Elipsin cx koordinatını değiştir",ellipse_cy:"Elipsin cy koordinatını değiştir",ellipse_rx:"Elipsin x yarıçapını değiştir",ellipse_ry:"Elipsin y yarıçapını değiştir",line_x1:"Çizginin başlangıç x değerini değiştir",line_x2:"Çizginin bitiş x değerini değiştir",line_y1:"Çizginin başlangıç y değerini değiştir",line_y2:"Change line's ending y coordinate",rect_height:"Üçgenin yüksekliğini değiştir",rect_width:"Üçgenin enini değiştir",corner_radius:"Üçgenin Köşe Yarıçapını değiştir",image_width:"Resmin enini değiştir",image_height:"Resmin boyunu değiştir",image_url:"URL değiştir",node_x:"Düğümün x koordinatını değiştir",node_y:"Düğümün y koordinatını değiştir",seg_type:"Kesit tipini değiştir",straight_segments:"Düzgün",curve_segments:"Eğri",text_contents:"Metin içeriğini değiştir",font_family_label:"Font:",font_family:"Font Ailesini Değiştir",font_size:"Font boyutunu değiştir",bold:"Kalın Metin",text_decoration_underline:"Altıçizili",text_decoration_linethrough:"Ortaçizili",text_decoration_overline:"Üstçizili",italic:"Italic Metin",text_anchor_start:"Metni başa hizala",text_anchor_middle:"Metni ortaya hizala",text_anchor_end:"Metni sona hizala",text_letter_spacing:"Harf boşluklarını değiştir",text_word_spacing:"Kelime arası boşlukları değiştir",text_length:"Metnin içerisine çizileceği boşluğun miktarını belirmeye yarar",text_length_adjust:"Uzunluk Ayarla",text_length_adjust_spacing:"Boşluk",text_length_adjust_spacing_and_glyphs:"Boşluk & Glyphs",r_label:"r",x_label:"x",y_label:"y",x1_label:"x1",y1_label:"y1",x2_label:"x2",y2_label:"y2",rx_label:"rx",ry_label:"ry",cx_label:"cx",cy_label:"cy",w_label:"w",h_label:"h",id_label:"id",class_label:"class",label:"etiket",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Seçenekleri ve SVG içeriğini yerel olarak sakla",prefs_only:"Sadece seçenekleri yerel olarak sakla",no_prefs_or_content:"SVG içeriğini ya da seçenekleri yerel olarak saklama!",jgraduate_pad:"Dolgula",jgraduate_reflect:"Yansıt",jgraduate_repeat:"Tekrarla"},tools:{main_menu:"Ana Menu",bkgnd_color_opac:"Arka plan rengini/saydamlığını ayarla",connector_no_arrow:"Düz bağlantı",fitToContent:"İçeriğe sığdır",fit_to_all:"Tüm içeriğe sığdır",fit_to_canvas:"canvas'a sığdır",fit_to_layer_content:"Kayman içeriğine sığdır",fit_to_sel:"Seçime sığdır",align_relative_to:"Şuna göre hizala...",relativeTo:"şuna göre:",page:"sayfa",largest_object:"enbüyük nesne",selected_objects:"seçili nesneler",smallest_object:"enküçük nesne",export_img:"Dışa aktar",import_doc:"SVG içe aktar",align_to_page:"Ögeyi Sayfaya Hizala",align_bottom:"Alta Hizala",align_center:"Merkeze Hizala",align_left:"Sola Hizala",align_middle:"Ortaya Hizala",align_right:"Sağa Hizala",align_top:"Üste Hizala",mode_select:"Seçim Aracı",mode_fhpath:"Kalem Aracı",mode_line:"Çizgi Aracı",mode_rect:"Dörtgen Aracı",mode_square:"Kare Aracı",mode_fhrect:"Serbest Dörtgen Aracı",mode_ellipse:"Elips",mode_circle:"Çember",mode_fhellipse:"Serbest Elips",mode_path:"Path Aracı",mode_text:"Metin Aracı",mode_image:"Resim Aracı",mode_zoom:"Yakınlaştırma Aracı",no_embed:"NOT: Bu resim içe gömülemiyor. Bu Path e bağlı olarak görüntülenecek",undo:"Gerial",redo:"Yinele",tool_source:"Kaynağı Düzenle",wireframe_mode:"Çizgi Mod",clone:"Öge(ler)i Çoğalt",del:"Öge(ler)i Sil",group_elements:"Ögeleri Grupla",make_link:"(hiper) Link Oluştur",set_link_url:"Bağlantı URL si ata(boş bırak ya da kaldır)",to_path:"Path'e dönüştür",reorient_path:"Path yeniden yönlendir",ungroup:"Ögelerin Grubunu çöz",docprops:"Belge Seçenekleri",editor_homepage:"SVG-Edit Ana Sayfası",move_bottom:"Alta gönder",move_top:"Öne gönder",node_clone:"Düğüm Klonla",node_delete:"Düğüm Klonla",node_link:"Denetim Noktalarını Bağla",add_subpath:"Alt Path ekle",openclose_path:"Aç/Kapa Alt Path",source_save:"Değişiklikleri Kaydet",cut:"Kes",copy:"Kopyala",paste:"Yapıştır",paste_in_place:"Yerine Yapıştır",delete:"Sil",group:"Grupla",move_front:"En Öne Getir",move_up:"Bir Öne Getir",move_down:"Bir Arkaya Gönder",move_back:"En Arkaya Gönder",tool_unlink_use:"Ana nesneye bağını kopar (bağımsız yap)",ellipse_circle_tool:"Elips/Çember Aracı",square_rect_tool:"Kare/Dörtgen Aracı",remember_this_choice:"Bu seçenek hatırlansın mı?",remember_this_choice_title:"Bu seçenek seçilirse, seçiminiz hatırlanacak biçimde URL değiştirilecek."},layers:{layer:"Katman",layers:"Katmanlar",del:"Katmanı Sil",move_down:"Katmanı Aşağı Taşı",new:"Yeni Katman",rename:"Katmanı Yeniden Adlandır",move_up:"Katmanı Üste Taşı",dupe:"Katmanı Çoğalt...",merge_down:"Aşağı Birleştir",merge_all:"Tümünü Birleştir",move_elems_to:"Ögeleri şuraya taşı:",move_selected:"Seçilen ögeleri farklı katmana taşı"},config:{image_props:"Resim Özellikleri",doc_title:"Başlık:",doc_dims:"Canvas Boyutları",included_images:"Dahili Resimler",image_opt_embed:"Veriyi Göm(local files)",image_opt_ref:"Use file reference",editor_prefs:"Editör Seçenekleri",language:"Dil:",background:"Editör Arkaplanı",editor_img_url:"Resim URL:",editor_bg_note:"Not: Arkaplan resimle kaydedilmeyecek!",select_predefined:"Select predefined:",units_and_rulers:"Birimler & Cetveller",show_rulers:"Cetvelleri Göster",base_unit:"Temel Birim:",grid:"Izgara",snapping_onoff:"Hizalama Yardımı Aç/Kapa",snapping_stepsize:"Hizalama Yardım Adımı:",grid_color:"Izgara Rengi:",done:"Kaydedildi",change_xxx_color:"xxx rengini değiştir",pick_paint_opavity:"Renk ve saydamlık için yeni bir değer{{newValue}}",open_color_picker:"Renk Seçiciyi Açmak için Tıklayın",jpicker_title:"Renk Seçmek için işaretçileri Sürükleyin",jpicker_new_color:"yeni",jpicker_current_color:"mevcut",jpicker_tooltip_colors_new_color:"Yeni Renk - &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Asıl renge dönmek için tıklayın",jpicker_tooltip_buttons_ok:"Renk seçitine ekle",jpicker_tooltip_buttons_cancel:"Vazgeç asıl renge dön",jpicker_tooltip_hue_radio:"&ldquo;Hue&rdquo; Renk Modu Ayarla",jpicker_tooltip_hue_textbox:"&ldquo;Hue&rdquo; değeri (0-360&deg;)",jpicker_tooltip_saturation_radio:"&ldquo;Doygunluk&rdquo; Renk Modu Ayarla",jpicker_tooltip_saturation_textbox:"&ldquo;Doygunluk&rdquo; Değeri(0-100%)",jpicker_tooltip_value_radio:"&ldquo;Beyazlık&rdquo; Renk Modu Ayarla",jpicker_tooltip_value_textbox:"&ldquo;Beyazlık&rdquo; Değeri (0-100%)",jpicker_tooltip_red_radio:"&ldquo;Kırmızı&rdquo; Renk Modu Ayarla",jpicker_tooltip_red_textbox:"&ldquo;Kırmızı&rdquo; Değeri (0-255)",jpicker_tooltip_green_radio:"&ldquo;Yeşil&rdquo; Renk Modu Ayarla",jpicker_tooltip_green_textbox:"&ldquo;Yeşil&rdquo; Değeri (0-255)",jpicker_tooltip_blue_radio:"&ldquo;Mavi&rdquo; Renk Modu",jpicker_tooltip_blue_textbox:"&ldquo;Mavi&rdquo; Değeri (0-255)",jpicker_tooltip_alpha_radio:"&ldquo;Saydamlık&rdquo; Renk Modu Ayarla",jpicker_tooltip_alpha_textbox:"&ldquo;Saydamlık&rdquo; Değeri (0-100)",jpicker_tooltip_hex_textbox:"&ldquo;Hex&rdquo; Renk Modu Ayarla (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"&ldquo;Hex&rdquo; Değeri (#00-#ff)",jgraduate_solid_color:"Tek Renk",jgraduate_linear_gradient:"Doğrusal Gradyan",jgraduate_radial_gradient:"Döngüsel Gradyan",jgraduate_begin_point:"Başlangıç Noktası",jgraduate_enter_starting_x:"x için 0.0 ve 1.0 arasında başlangıç değeri girin",jgraduate_enter_starting_y:"y için 0.0 ve 1.0 arasında başlangıç değeri girin",jgraduate_end_point:"Bitiş Noktası",jgraduate_enter_ending_x:"x için 0.0 ve 1.0 arasında bitiş değeri girin",jgraduate_enter_ending_y:"y için 0.0 ve 1.0 arasında bitiş değeri girin",jgraduate_center_point:"Merkez Noktası",jgraduate_enter_value_x:"x için 0.0 ve 1.0 arasında değer girin",jgraduate_enter_value_y:"y için 0.0 ve 1.0 arasında değer girin",jgraduate_focal_point:"Odak Noktası",jgraduate_match_center:"Merkezle eşleştir:",jgraduate_enter_focal_x:"x için 0.0 ve 1.0 arasında değer girin",jgraduate_enter_focal_y:"y için 0.0 ve 1.0 arasında değer girin",jgraduate_spread_method:"Yayılım Metodu",jgraduate_radius:"Yarıçap:",jgraduate_set_radius:"Yarıçapı ayarlamak için tıklayın",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Ellip ayarlamak için tıklayın",jgraduate_angle:"Açı:",jgraduate_set_angle:"Açıyı ayarlamak için tıklayın",jgraduate_deg:"derece:",jgraduate_opac:"Şeffflık:",jgraduate_set_opac:"Şeffaflığı ayarlamak için tıklayın"},notification:{invalidAttrValGiven:"Verilen değer geçersiz",noContentToFitTo:"Kendisine sığılacak içerik yok",dupeLayerName:"O isimde bir katman zaten var!",enterUniqueLayerName:"Benzersiz bir katman ismi girin",enterNewLayerName:"Yeni katman ismi verin",layerHasThatName:"Katmanın ismi aynı",QmoveElemsToLayer:"Seçilen nesneleri '%s' katmanına taşıyın?",QwantToClear:"Çizimi sıfırlamak istediğinizden emin misiniz?\nBu aynı zamanda gerial geçmişini de silecek!",QwantToOpen:"Yeni bir belge açmak istediğinize emin misiniz?\nBu aynı zamanda gerial geçmişini de silecek!",QerrorsRevertToSource:"SVG dosyasını tararken sorunlar oluştu.\nOrjinal SVG dosyasına dönüş yapılsın mı?",QignoreSourceChanges:"SVG kayndağındaki değişiklikleri gözmezden gelelim mi?",featNotSupported:"Bu özellik desteklenmiyor",enterNewImgURL:"Yeni bir resim bağlantısı(URL) girin",defsFailOnSave:"NOTE: internet gezgininizdeki hata nedeni ile, bu resim yanlış görüntülenebilir (gradyan ya da element eksikliği). Ama kaydedildikten sonra düzgün görünecektir.",loadingImage:"Resim yükleniyor, Lütfen bekleyiniz...",saveFromBrowser:"'Farklı Kaydet...' seçeneğini seçin (sağ tık menüsünden ya da Dosya menüsünden olabilir) eğer bu resmi {{type}} tipinde kaydetmek istiyorsanız.",noteTheseIssues:"Ayrıca şu sorunları not edin: ",unsavedChanges:"Kaydedilmemiş değişiklikler mevcut.",enterNewLinkURL:"Yeni bir bağlantı URL'si girin",errorLoadingSVG:"Hata: SVG verisi yüklenemiyor",URLLoadFail:"URL'den yükleme gerçekleştirilemiyor",retrieving:"Alınıyor '%s' ...",popupWindowBlocked:"Açılı pencere internet gezgini tarafından engelleniyor olabilir",exportNoBlur:"Bulanık ögeler bulanık değil gibi görüntülenecek",exportNoforeignObject:"foreignObject ögeleri görüntülenmeyecek",exportNoDashArray:"Çizgiler 'sürekli' görüntülenecek",exportNoText:"Metin beklenildiği şekilde görüntülenmeyebilir",editorPreferencesMsg:"Varsayılan olarak ve destekleniyorsa, SVG-Edit seçimlerinizi ve SVG dosyayı bilgisayarınızda yerel olarak kaydedebilir dolayısıyla SVG-Edit'i her açtığınızda tekrar yüklemek zorunda değilsiniz. Eğer gizlilik gereği bu özelliği kapatmak isterseniz aşağıdaki seçeneklerden yapabilrisiniz.",source_dialog_note:"Bu kutu içeriğini metin düzenleyiciye kopyalayın, sonra dosyayı .svg eklentisi ile kaydedin."}}}),DB=Object.freeze({__proto__:null,default:{lang:"uk",dir:"ltr",common:{ok:"Зберегти",cancel:"Скасування",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Натисніть для зміни кольору заливки, Shift-Click змінити обвід",zoom_level:"Зміна масштабу",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Зміна кольору заливки",stroke_color:"Зміна кольору інсульт",stroke_style:"Зміна стилю інсульт тире",stroke_width:"Зміни ширина штриха",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Зміна кута повороту",blur:"Change gaussian blur value",opacity:"Зміна вибраного пункту непрозорості",circle_cx:"CX зміну кола координата",circle_cy:"Зміни гуртка CY координати",circle_r:"Зміна кола&#39;s радіус",ellipse_cx:"Зміни еліпса CX координати",ellipse_cy:"Зміни еліпса CY координати",ellipse_rx:"Х Зміни еліпса радіусом",ellipse_ry:"Зміни у еліпса радіусом",line_x1:"Зміни починає координати лінія х",line_x2:"Зміни за період, що закінчився лінія координати х",line_y1:"Зміни лінія починає Y координата",line_y2:"Зміна за період, що закінчився лінія Y координата",rect_height:"Зміни прямокутник висотою",rect_width:"Зміна ширини прямокутника",corner_radius:"Зміни прямокутник Corner Radius",image_width:"Зміни ширина зображення",image_height:"Зміна висоти зображення",image_url:"Змінити URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Зміна змісту тексту",font_family_label:"Font:",font_family:"Зміни Сімейство шрифтів",font_size:"Змінити розмір шрифту",bold:"Товстий текст",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Похилий текст",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Зміна кольору тла / непрозорість",connector_no_arrow:"No arrow",fitToContent:"За розміром змісту",fit_to_all:"За розміром весь вміст",fit_to_canvas:"Розмір полотна",fit_to_layer_content:"За розміром шар змісту",fit_to_sel:"Вибір розміру",align_relative_to:"Вирівняти по відношенню до ...",relativeTo:"в порівнянні з:",page:"сторінка",largest_object:"найбільший об&#39;єкт",selected_objects:"обраними об&#39;єктами",smallest_object:"маленький об&#39;єкт",new_doc:"Нове зображення",open_doc:"Відкрити зображення",export_img:"Export",save_doc:"Зберегти малюнок",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Вирівняти по нижньому краю",align_center:"Вирівняти по центру",align_left:"По лівому краю",align_middle:"Вирівняти Близького",align_right:"По правому краю",align_top:"Вирівняти по верхньому краю",mode_select:"Виберіть інструмент",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Вільної руки Прямокутник",mode_ellipse:"Еліпс",mode_circle:"Коло",mode_fhellipse:"Вільної руки Еліпс",mode_path:"Path Tool",mode_text:"Текст Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Скасувати",redo:"Повтор",tool_source:"Змінити вихідний",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група елементів",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Елементи розгрупувати",docprops:"Властивості документа",editor_homepage:"SVG-Edit Home Page",move_bottom:"Перемістити вниз",move_top:"Перемістити догори",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Зберегти",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Видалити шар",move_down:"Перемістити шар на",new:"Новий шар",rename:"Перейменувати Шар",move_up:"Переміщення шару до",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Виберіть зумовлений:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),HB=Object.freeze({__proto__:null,default:{lang:"vi",dir:"ltr",common:{ok:"Lưu",cancel:"Hủy",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Nhấn vào đây để thay đổi đầy màu sắc, thay đổi nhấp chuột để thay đổi màu sắc đột quỵ",zoom_level:"Thay đổi mức độ phóng",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"Thay đổi đầy màu sắc",stroke_color:"Thay đổi màu sắc đột quỵ",stroke_style:"Thay đổi phong cách đột quỵ dash",stroke_width:"Thay đổi chiều rộng đột quỵ",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Thay đổi góc xoay",blur:"Change gaussian blur value",opacity:"Thay đổi lựa chọn opacity mục",circle_cx:"Thay đổi hình tròn của cx phối hợp",circle_cy:"Thay đổi hình tròn của vi phối hợp",circle_r:"Thay đổi bán kính của hình tròn",ellipse_cx:"Thay đổi hình elip của cx phối hợp",ellipse_cy:"Thay đổi hình elip của vi phối hợp",ellipse_rx:"Thay đổi hình elip của x bán kính",ellipse_ry:"Y Thay đổi bán kính của hình ellipse",line_x1:"Thay đổi dòng của bắt đầu từ x phối hợp",line_x2:"Thay đổi dòng của x kết thúc sớm nhất phối hợp",line_y1:"Thay đổi dòng của bắt đầu từ y phối hợp",line_y2:"Thay đổi dòng của kết thúc y phối hợp",rect_height:"Thay đổi hình chữ nhật chiều cao",rect_width:"Thay đổi hình chữ nhật chiều rộng",corner_radius:"Thay đổi chữ nhật Corner Radius",image_width:"Thay đổi hình ảnh rộng",image_height:"Thay đổi hình ảnh chiều cao",image_url:"Thay đổi URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Thay đổi nội dung văn bản",font_family_label:"Font:",font_family:"Thay đổi Font Gia đình",font_size:"Thay đổi cỡ chữ",bold:"Bold Text",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Thay đổi màu nền / opacity",connector_no_arrow:"No arrow",fitToContent:"Phù hợp với nội dung",fit_to_all:"Phù hợp với tất cả nội dung",fit_to_canvas:"Phù hợp với vải",fit_to_layer_content:"Vào lớp phù hợp với nội dung",fit_to_sel:"Phù hợp để lựa chọn",align_relative_to:"Căn liên quan đến ...",relativeTo:"liên quan đến:",page:"Page",largest_object:"lớn nhất đối tượng",selected_objects:"bầu các đối tượng",smallest_object:"nhỏ đối tượng",export_img:"Export",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Căn giữa",align_left:"Căn còn lại",align_middle:"Căn Trung",align_right:"Căn phải",align_top:"Căn Top",mode_select:"Chọn Công cụ",mode_fhpath:"Bút chì Công cụ",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Việt-Hand Hình chữ nhật",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Việt-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Hình Công cụ",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Hoàn tác",redo:"Làm lại",tool_source:"Sửa Nguồn",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Nhóm Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Chuyển đến đáy",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Lưu",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"Xoá Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Đổi tên Layer",move_up:"Di chuyển Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"Chọn định sẵn:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),zB=Object.freeze({__proto__:null,default:{lang:"yi",dir:"ltr",common:{ok:"היט",cancel:"באָטל מאַכן",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"גיט צו ענדערן אָנעסן קאָליר, יבעררוק-גיט צו טוישן מאַך קאָליר",zoom_level:"ענדערן פארגרעסער הייך",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"ענדערן אָנעסן קאָליר",stroke_color:"טוישן מאַך קאָליר",stroke_style:"טוישן מאַך לאָך מאָדע",stroke_width:"טוישן מאַך ברייט",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"ענדערן ראָוטיישאַן ווינקל",blur:"Change gaussian blur value",opacity:"ענדערן סעלעקטעד נומער אָופּאַסאַטי",circle_cx:"ענדערן קרייז ס קקס קאָואָרדאַנאַט",circle_cy:"ענדערן קרייז ס סי קאָואָרדאַנאַט",circle_r:"ענדערן קרייז ס ראַדיוס",ellipse_cx:"ענדערן יליפּס ס קקס קאָואָרדאַנאַט",ellipse_cy:"ענדערן יליפּס ס סי קאָואָרדאַנאַט",ellipse_rx:"ענדערן יליפּס ס &#39;קס ראַדיוס",ellipse_ry:"ענדערן יליפּס ס &#39;י ראַדיוס",line_x1:"טוישן ליניע ס &#39;סטאַרטינג קס קאָואָרדאַנאַט",line_x2:"טוישן ליניע ס &#39;סאָף קס קאָואָרדאַנאַט",line_y1:"טוישן ליניע ס &#39;סטאַרטינג י קאָואָרדאַנאַט",line_y2:"טוישן ליניע ס &#39;סאָף י קאָואָרדאַנאַט",rect_height:"ענדערן גראָדעק הייך",rect_width:"ענדערן גראָדעק ברייט",corner_radius:"ענדערן רעקטאַנגלע קאָרנער ראַדיוס",image_width:"טוישן בילד ברייט",image_height:"טוישן בילד הייך",image_url:"ענדערן URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"ענדערן טעקסט אינהאַלט",font_family_label:"Font:",font_family:"ענדערן פאָנט פאַמילי",font_size:"בייטן פאָנט גרייס",bold:"דרייסט טעקסט",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"יטאַליק טעקסט",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"ענדערן הינטערגרונט פאַרב / אָופּאַסאַטי",connector_no_arrow:"No arrow",fitToContent:"פּאַסיק צו אינהאַלט",fit_to_all:"פּאַסיק צו אַלע אינהאַלט",fit_to_canvas:"פּאַסיק צו לייוונט",fit_to_layer_content:"פּאַסיק צו שיכטע אינהאַלט",fit_to_sel:"פּאַסיק צו אָפּקלייב",align_relative_to:"יינרייען קאָרעוו צו ...",relativeTo:"קאָרעוו צו:",page:"בלאַט",largest_object:"לאַרדזשאַסט קעגן",selected_objects:"עלעקטעד אַבדזשעקץ",smallest_object:"סמאָלאַסט קעגן",new_doc:"ניו בילד",open_doc:"Open בילד",export_img:"Export",save_doc:"היט בילד",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"יינרייען באָטטאָם",align_center:"יינרייען צענטער",align_left:"יינרייען לעפט",align_middle:"יינרייען מיטל",align_right:"יינרייען רעכט",align_top:"יינרייען Top",mode_select:"סעלעקטירן טול",mode_fhpath:"בלייער טול",mode_line:"שורה טול",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-הענט רעקטאַנגלע",mode_ellipse:"עלליפּסע",mode_circle:"קאַראַהאָד",mode_fhellipse:"Free-הענט עלליפּסע",mode_path:"Path Tool",mode_text:"טעקסט טול",mode_image:"בילד טול",mode_zoom:"פארגרעסער טול",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"ופמאַכן",redo:"רעדאָ",tool_source:"רעדאַקטירן סאָרס",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"גרופּע עלעמענץ",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"ונגראָופּ עלעמענץ",docprops:"דאָקומענט פּראָפּערטיעס",editor_homepage:"SVG-Edit Home Page",move_bottom:"מאַך צו באָטטאָם",move_top:"באַוועגן צו Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"היט",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"ויסמעקן לייַער",move_down:"קער לייַער דאָוון",new:"ניו לייַער",rename:"רענאַמע לייַער",move_up:"באַוועגן לייַער אַרויף",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"סעלעקטירן פּרעדעפינעד:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),KB=Object.freeze({__proto__:null,default:{lang:"zh-CN",dir:"ltr",common:{ok:"确定",cancel:"取消",key_backspace:"退格",key_del:"删除",key_down:"下",key_up:"上",more_opts:"更多选项",url:"URL",width:"宽度",height:"高度"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"显示/隐藏更式边线工具",palette_info:"点击更改填充颜色按住Shift键单击更改线条颜色",zoom_level:"更改缩放级别",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"元素ID",fill_color:"更改填充颜色",stroke_color:"线条的颜色变化",stroke_style:"更改线条样式",stroke_width:"更改线条宽度",pos_x:"更改X坐标",pos_y:"更改Y坐标",linecap_butt:"顶端样式: 齐平",linecap_round:"顶端样式: 圆滑",linecap_square:"顶端样式: 方块",linejoin_bevel:"连接处: 削平",linejoin_miter:"连接处: 直角",linejoin_round:"连接处: 圆角",angle:"更改旋转角度",blur:"更改高斯模糊值",opacity:"更改所选条目的不透明度",circle_cx:"改变圆的中心X坐标",circle_cy:"改变圆的中心Y坐标",circle_r:"改变圆的半径",ellipse_cx:"改变椭圆的中心X坐标",ellipse_cy:"改变椭圆的中心Y坐标",ellipse_rx:"改变椭圆的x半径",ellipse_ry:"改变椭圆的y半径",line_x1:"更改直线起点的x坐标",line_x2:"更改直线终点的x坐标",line_y1:"更改直线起点的y坐标",line_y2:"更改直线终点的y坐标",rect_height:"更改矩形的高度",rect_width:"更改矩形的宽度",corner_radius:"角半径:",image_width:"更改图像的宽度",image_height:"更改图像的高度",image_url:"更改网址",node_x:"更改节点的X坐标",node_y:"更改节点的Y坐标",seg_type:"修改线段类型",straight_segments:"直线",curve_segments:"曲线",text_contents:"更改文本内容",font_family_label:"Font:",font_family:"更改字体样式",font_size:"更改字体大小",bold:"粗体",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"斜体",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"主菜单",bkgnd_color_opac:"更改背景颜色/不透明",connector_no_arrow:"无箭头",fitToContent:"适应内容",fit_to_all:"适应于所有的内容",fit_to_canvas:"适应画布",fit_to_layer_content:"适应层内容",fit_to_sel:"适应选中内容",align_relative_to:"相对对齐 ...",relativeTo:"相对于:",page:"网页",largest_object:"最大对象",selected_objects:"选中的对象",smallest_object:"最小的对象",new_doc:"新文档",open_doc:"打开文档",export_img:"导出",save_doc:"保存图像",import_doc:"导入SVG",align_to_page:"对齐元素到页面",align_bottom:"底部对齐",align_center:"居中对齐",align_left:"左对齐",align_middle:"水平居中对齐",align_right:"右对齐",align_top:"顶端对齐",mode_select:"选择工具",mode_fhpath:"铅笔工具",mode_line:"线工具",mode_rect:"矩形",mode_square:"正方形",mode_fhrect:"自由矩形",mode_ellipse:"椭圆",mode_circle:"圆形",mode_fhellipse:"自由椭圆",mode_path:"路径",mode_text:"文字工具",mode_image:"图像工具",mode_zoom:"缩放工具",no_embed:"注意: 根据SVG图像的存储位置内嵌的位图可能无法显示!",undo:"撤消",redo:"重做",tool_source:"编辑源",wireframe_mode:"线条模式",clone:"克隆元素",del:"删除元素",group_elements:"组合元素",make_link:"创建超链接",set_link_url:"设置链接URL (设置为空以删除)",to_path:"转换为路径",reorient_path:"调整路径",ungroup:"取消组合元素",docprops:"文档属性",editor_homepage:"SVG-Edit 主页",move_bottom:"移至底部",move_top:"移至顶部",node_clone:"复制节点",node_delete:"删除节点",node_link:"连接控制点",add_subpath:"添加子路径",openclose_path:"打开/关闭 子路径",source_save:"保存",cut:"剪切",copy:"复制",paste:"粘贴",paste_in_place:"粘贴到原位置",delete:"删除",group:"组合",move_front:"移至顶部",move_up:"向上移动",move_down:"向下移动",move_back:"移至底部",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"图层",layers:"图层",del:"删除图层",move_down:"向下移动图层",new:"新建图层",rename:"重命名图层",move_up:"向上移动图层",dupe:"复制图层",merge_down:"向下合并",merge_all:"全部合并",move_elems_to:"移动元素至:",move_selected:"移动元素至另一个图层"},config:{image_props:"图像属性",doc_title:"标题",doc_dims:"画布大小",included_images:"包含图像",image_opt_embed:"嵌入数据 (本地文件)",image_opt_ref:"使用文件引用",editor_prefs:"编辑器首选项",language:"语言",background:"编辑器背景",editor_img_url:"图像 URL",editor_bg_note:"注意: 背景不会保存在图像中.",select_predefined:"选择预定义:",units_and_rulers:"单位 & 标尺",show_rulers:"显示标尺",base_unit:"基本单位:",grid:"网格",snapping_onoff:"吸附开/关",snapping_stepsize:"吸附步长:",grid_color:"网格颜色",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"无效的参数",noContentToFitTo:"无可适应的内容",dupeLayerName:"已存在同名的图层!",enterUniqueLayerName:"请输入一个唯一的图层名称",enterNewLayerName:"请输入新的图层名称",layerHasThatName:"图层已经采用了该名称",QmoveElemsToLayer:"您确定移动所选元素到图层'%s'吗?",QwantToClear:"您希望清除当前绘制的所有图形吗?\n该操作将无法撤消!",QwantToOpen:"您希望打开一个新文档吗?\n该操作将无法撤消!",QerrorsRevertToSource:"SVG文件解析错误.\n是否还原到最初的SVG文件?",QignoreSourceChanges:"忽略对SVG文件所作的更改么?",featNotSupported:"不支持该功能",enterNewImgURL:"请输入新图像的URLL",defsFailOnSave:"注意: 由于您所使用的浏览器存在缺陷, 该图像无法正确显示 (不支持渐变或相关元素). 修复该缺陷后可正确显示.",loadingImage:"正在加载图像, 请稍候...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"同时注意以下几点: ",unsavedChanges:"存在未保存的修改.",enterNewLinkURL:"输入新建链接的URL地址",errorLoadingSVG:"错误: 无法加载SVG数据",URLLoadFail:"无法从URL中加载",retrieving:"检索 '%s'...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),$B=Object.freeze({__proto__:null,default:{lang:"zh-HK",dir:"ltr",common:{ok:"确定",cancel:"取消",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"点击更改填充颜色按住Shift键单击更改颜色中风",zoom_level:"更改缩放级别",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"更改填充颜色",stroke_color:"中风的颜色变化",stroke_style:"更改行程冲刺风格",stroke_width:"笔划宽度的变化",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"旋转角度的变化",blur:"Change gaussian blur value",opacity:"更改所选项目不透明",circle_cx:"改变循环的CX坐标",circle_cy:"改变循环的赛扬坐标",circle_r:"改变圆的半径",ellipse_cx:"改变椭圆的CX坐标",ellipse_cy:"改变椭圆的赛扬坐标",ellipse_rx:"改变椭圆的x半径",ellipse_ry:"改变椭圆的y半径",line_x1:"更改行的起点的x坐标",line_x2:"更改行的结束x坐标",line_y1:"更改行的起点的y坐标",line_y2:"更改行的结束y坐标",rect_height:"更改矩形的高度",rect_width:"更改矩形的宽度",corner_radius:"角半径:",image_width:"更改图像的宽度",image_height:"更改图像高度",image_url:"更改网址",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"更改文字内容",font_family_label:"Font:",font_family:"更改字体家族",font_size:"更改字体大小",bold:"粗体",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"斜体文本",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"更改背景颜色/不透明",connector_no_arrow:"No arrow",fitToContent:"适合内容",fit_to_all:"适合于所有的内容",fit_to_canvas:"适合画布",fit_to_layer_content:"适合层内容",fit_to_sel:"适合选择",align_relative_to:"相对对齐 ...",relativeTo:"相对于:",page:"网页",largest_object:"最大对象",selected_objects:"选对象",smallest_object:"最小的对象",new_doc:"新形象",open_doc:"打开图像",export_img:"Export",save_doc:"保存图像",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"底部对齐",align_center:"居中对齐",align_left:"左对齐",align_middle:"中间对齐",align_right:"右对齐",align_top:"顶端对齐",mode_select:"选择工具",mode_fhpath:"铅笔工具",mode_line:"线工具",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"免费手矩形",mode_ellipse:"椭圆",mode_circle:"圈",mode_fhellipse:"免费手椭圆",mode_path:"Path Tool",mode_text:"文字工具",mode_image:"图像工具",mode_zoom:"缩放工具",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"撤消",redo:"重做",tool_source:"编辑源",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"族元素",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"文档属性",editor_homepage:"SVG-Edit 主页",move_bottom:"移至底部",move_top:"移动到顶部",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"保存",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"Layer",layers:"Layers",del:"删除层",move_down:"层向下移动",new:"新层",rename:"重命名层",move_up:"移动层最多",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",select_predefined:"选择预定义:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}}),WB=Object.freeze({__proto__:null,default:{lang:"zh-TW",dir:"ltr",common:{ok:"确定",cancel:"取消",key_backspace:"空白",key_del:"刪除",key_down:"下",key_up:"上",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"點擊更改填充顏色按住Shift鍵單擊更改線條顏色",zoom_level:"更改縮放級別",panel_action:"Click to open side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity",group_identify_label:"Group identification label",export_type_label:"Select an image type for export:"},properties:{id:"Identify the element",fill_color:"更改填充顏色",stroke_color:"線條顏色",stroke_style:"更改線條(虛線)風格",stroke_width:"線條寬度",pos_x:"調整 X 軸",pos_y:"調整 Y 軸",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"旋轉角度",blur:"Change gaussian blur value",opacity:"更改所選項目不透明度",circle_cx:"改變圓的CX坐標",circle_cy:"改變圓的CY坐標",circle_r:"改變圓的半徑",ellipse_cx:"改變橢圓的圓心x軸座標",ellipse_cy:"改變橢圓的圓心y軸座標",ellipse_rx:"改變橢圓的x軸長",ellipse_ry:"改變橢圓的y軸長",line_x1:"更改行的起點的x坐標",line_x2:"更改行的終點x坐標",line_y1:"更改行的起點的y坐標",line_y2:"更改行的終點y坐標",rect_height:"更改矩形的高度",rect_width:"更改矩形的寬度",corner_radius:"角半徑:",image_width:"更改圖像的寬度",image_height:"更改圖像高度",image_url:"更改網址",node_x:"改變節點的x軸座標",node_y:"改變節點的y軸座標",seg_type:"Change Segment type",straight_segments:"直線",curve_segments:"曲線",text_contents:"更改文字內容",font_family_label:"Font:",font_family:"更改字體",font_size:"更改字體大小",bold:"粗體",text_decoration_underline:"Underline",text_decoration_linethrough:"Line-Through",text_decoration_overline:"Overline",italic:"斜體",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end",text_letter_spacing:"Change the letter spacing",text_word_spacing:"Change the word spacing",text_length:"Lets you specify the width of the space into which the text will draw",text_length_adjust:"Length adjust",text_length_adjust_spacing:"Spacing",text_length_adjust_spacing_and_glyphs:"Spacing & Glyphs",class:"Element class",serif:"Serif",sans_serif:"Sans-serif",cursive:"Cursive",fantasy:"Fantasy",monospace:"Monospace",courier:"Courier",helvetica:"Helvetica",times:"times",prefs_and_content:"Store preferences and SVG content locally",prefs_only:"Only store preferences locally",no_prefs_or_content:"Do not store my preferences or SVG content locally",jgraduate_pad:"Pad",jgraduate_reflect:"Reflect",jgraduate_repeat:"Repeat"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"更改背景顏色/不透明",connector_no_arrow:"No arrow",fitToContent:"適合內容",fit_to_all:"適合所有的內容",fit_to_canvas:"適合畫布",fit_to_layer_content:"適合圖層內容",fit_to_sel:"適合選取的物件",align_relative_to:"相對對齊 ...",relativeTo:"相對於:",page:"網頁",largest_object:"最大的物件",selected_objects:"選取物件",smallest_object:"最小的物件",new_doc:"清空圖像",open_doc:"打開圖像",export_img:"Export",save_doc:"保存圖像",import_doc:"Import SVG",align_to_page:"Align Element to Page",align_bottom:"底部對齊",align_center:"居中對齊",align_left:"向左對齊",align_middle:"中間對齊",align_right:"向右對齊",align_top:"頂端對齊",mode_select:"選擇工具",mode_fhpath:"鉛筆工具",mode_line:"線工具",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"徒手畫矩形",mode_ellipse:"橢圓",mode_circle:"圓",mode_fhellipse:"徒手畫橢圓",mode_path:"路徑工具",mode_text:"文字工具",mode_image:"圖像工具",mode_zoom:"縮放工具",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"取消復原",redo:"復原",tool_source:"編輯SVG原始碼",wireframe_mode:"框線模式(只瀏覽線條)",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"群組",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"轉換成路徑",reorient_path:"調整路徑",ungroup:"取消群組",docprops:"文件屬性",editor_homepage:"SVG-Edit 主頁",move_bottom:"移至底部",move_top:"移動到頂部",node_clone:"增加節點",node_delete:"刪除節點",node_link:"將控制點連起來",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"保存",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back",tool_unlink_use:"Break link to reference element (make unique)",ellipse_circle_tool:"Ellipse/Circle Tool",square_rect_tool:"Square/Rect Tool",remember_this_choice:"Remember this choice?",remember_this_choice_title:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."},layers:{layer:"圖層",layers:"Layers",del:"刪除圖層",move_down:"向下移動圖層",new:"新增圖層",rename:"重新命名圖層",move_up:"向上移動圖層",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"移動物件到:",move_selected:"移動被點選的物件其他圖層"},config:{image_props:"圖片屬性",doc_title:"標題",doc_dims:"畫布大小",included_images:"包含圖像",image_opt_embed:"內嵌資料 (本地端檔案)",image_opt_ref:"使用檔案參照",editor_prefs:"編輯器屬性",language:"語言",background:"編輯器背景",editor_img_url:"Image URL",editor_bg_note:"注意: 編輯器背景不會和圖像一起儲存",select_predefined:"使用預設值:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color",done:"Done",change_xxx_color:"Change xxx color",pick_paint_opavity:"Pick a {{newValue}} Paint and Opacity",open_color_picker:"Click To Open Color Picker",jpicker_title:"Drag Markers To Pick A Color",jpicker_new_color:"new",jpicker_current_color:"current",jpicker_tooltip_colors_new_color:"New Color - Press &ldquo;OK&rdquo; To Commit",jpicker_tooltip_colors_current_color:"Click To Revert To Original Color",jpicker_tooltip_buttons_ok:"Commit To This Color Selection",jpicker_tooltip_buttons_cancel:"Cancel And Revert To Original Color",jpicker_tooltip_hue_radio:"Set To &ldquo;Hue&rdquo; Color Mode",jpicker_tooltip_hue_textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)",jpicker_tooltip_saturation_radio:"Set To &ldquo;Saturation&rdquo; Color Mode",jpicker_tooltip_saturation_textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)",jpicker_tooltip_value_radio:"Set To &ldquo;Value&rdquo; Color Mode",jpicker_tooltip_value_textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)",jpicker_tooltip_red_radio:"Set To &ldquo;Red&rdquo; Color Mode",jpicker_tooltip_red_textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)",jpicker_tooltip_green_radio:"Set To &ldquo;Green&rdquo; Color Mode",jpicker_tooltip_green_textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)",jpicker_tooltip_blue_radio:"Set To &ldquo;Blue&rdquo; Color Mode",jpicker_tooltip_blue_textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)",jpicker_tooltip_alpha_radio:"Set To &ldquo;Alpha&rdquo; Color Mode",jpicker_tooltip_alpha_textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)",jpicker_tooltip_hex_textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",jpicker_tooltip_hex_alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)",jgraduate_solid_color:"Solid Color",jgraduate_linear_gradient:"Linear Gradient",jgraduate_radial_gradient:"Radial Gradient",jgraduate_begin_point:"Begin Point",jgraduate_enter_starting_x:"Enter starting x value between 0.0 and 1.0",jgraduate_enter_starting_y:"Enter starting y value between 0.0 and 1.0",jgraduate_end_point:"End Point",jgraduate_enter_ending_x:"Enter ending x value between 0.0 and 1.0",jgraduate_enter_ending_y:"Enter ending y value between 0.0 and 1.0",jgraduate_center_point:"Center Point",jgraduate_enter_value_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_value_y:"Enter y value between 0.0 and 1.0",jgraduate_focal_point:"Focal Point",jgraduate_match_center:"Match center:",jgraduate_enter_focal_x:"Enter x value between 0.0 and 1.0",jgraduate_enter_focal_y:"Enter y value between 0.0 and 1.0",jgraduate_spread_method:"Spread method",jgraduate_radius:"Radius:",jgraduate_set_radius:"Click to set radius",jgraduate_ellip:"Ellip:",jgraduate_set_ellip:"Click to set Ellip",jgraduate_angle:"Angle:",jgraduate_set_angle:"Click to set Angle",jgraduate_deg:"deg:",jgraduate_opac:"Opac:",jgraduate_set_opac:"Click to set Opac"},notification:{invalidAttrValGiven:"數值給定錯誤",noContentToFitTo:"找不到符合的內容",dupeLayerName:"喔不!已經有另一個同樣名稱的圖層了!",enterUniqueLayerName:"請輸入一個名稱不重複的",enterNewLayerName:"請輸入新圖層的名稱",layerHasThatName:"圖層本來就是這個名稱(抱怨)",QmoveElemsToLayer:"要搬移所選取的物件到'%s'層嗎?",QwantToClear:"要清空圖像嗎?\n這會順便清空你的回復紀錄",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"SVG原始碼解析錯誤\n要回復到原本的SVG原始碼嗎",QignoreSourceChanges:"要忽略對SVG原始碼的更動嗎",featNotSupported:"未提供此功能",enterNewImgURL:"輸入新的圖片網址",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a {{type}} file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected",editorPreferencesMsg:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",source_dialog_note:"Copy the contents of this box into a text editor, then save the file with a .svg extension."}}});export{Editor as default};
//# sourceMappingURL=xdomain-Editor.js.map