582 lines
1.9 MiB
582 lines
1.9 MiB
var Tn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(Tn,Un,Qn){return Tn(Qn={path:Un,exports:{},require:function(Tn,Un){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==Un&&Qn.path)}},Qn.exports),Qn.exports}var check=function(Tn){return Tn&&Tn.Math==Math&&Tn},Un=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof Tn&&Tn)||Function("return this")(),fails=function(Tn){try{return!!Tn()}catch(Tn){return!0}},Qn=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Dn={}.propertyIsEnumerable,Hn=Object.getOwnPropertyDescriptor,Gn={f:Hn&&!Dn.call({1:2},1)?function propertyIsEnumerable(Tn){var Un=Hn(this,Tn);return!!Un&&Un.enumerable}:Dn},createPropertyDescriptor=function(Tn,Un){return{enumerable:!(1&Tn),configurable:!(2&Tn),writable:!(4&Tn),value:Un}},zn={}.toString,classofRaw=function(Tn){return zn.call(Tn).slice(8,-1)},Vn="".split,Kn=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(Tn){return"String"==classofRaw(Tn)?Vn.call(Tn,""):Object(Tn)}:Object,requireObjectCoercible=function(Tn){if(null==Tn)throw TypeError("Can't call method on "+Tn);return Tn},toIndexedObject=function(Tn){return Kn(requireObjectCoercible(Tn))},isObject=function(Tn){return"object"==typeof Tn?null!==Tn:"function"==typeof Tn},toPrimitive=function(Tn,Un){if(!isObject(Tn))return Tn;var Qn,Dn;if(Un&&"function"==typeof(Qn=Tn.toString)&&!isObject(Dn=Qn.call(Tn)))return Dn;if("function"==typeof(Qn=Tn.valueOf)&&!isObject(Dn=Qn.call(Tn)))return Dn;if(!Un&&"function"==typeof(Qn=Tn.toString)&&!isObject(Dn=Qn.call(Tn)))return Dn;throw TypeError("Can't convert object to primitive value")},Wn={}.hasOwnProperty,has=function(Tn,Un){return Wn.call(Tn,Un)},Xn=Un.document,Yn=isObject(Xn)&&isObject(Xn.createElement),documentCreateElement=function(Tn){return Yn?Xn.createElement(Tn):{}},Jn=!Qn&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),$n=Object.getOwnPropertyDescriptor,Zn={f:Qn?$n:function getOwnPropertyDescriptor(Tn,Un){if(Tn=toIndexedObject(Tn),Un=toPrimitive(Un,!0),Jn)try{return $n(Tn,Un)}catch(Tn){}if(has(Tn,Un))return createPropertyDescriptor(!Gn.f.call(Tn,Un),Tn[Un])}},anObject=function(Tn){if(!isObject(Tn))throw TypeError(String(Tn)+" is not an object");return Tn},er=Object.defineProperty,tr={f:Qn?er:function defineProperty(Tn,Un,Qn){if(anObject(Tn),Un=toPrimitive(Un,!0),anObject(Qn),Jn)try{return er(Tn,Un,Qn)}catch(Tn){}if("get"in Qn||"set"in Qn)throw TypeError("Accessors not supported");return"value"in Qn&&(Tn[Un]=Qn.value),Tn}},nr=Qn?function(Tn,Un,Qn){return tr.f(Tn,Un,createPropertyDescriptor(1,Qn))}:function(Tn,Un,Qn){return Tn[Un]=Qn,Tn},setGlobal=function(Tn,Qn){try{nr(Un,Tn,Qn)}catch(Dn){Un[Tn]=Qn}return Qn},rr=Un["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),ir=Function.toString;"function"!=typeof rr.inspectSource&&(rr.inspectSource=function(Tn){return ir.call(Tn)});var ar,or,sr,lr=rr.inspectSource,cr=Un.WeakMap,ur="function"==typeof cr&&/native code/.test(lr(cr)),dr=createCommonjsModule((function(Tn){(Tn.exports=function(Tn,Un){return rr[Tn]||(rr[Tn]=void 0!==Un?Un:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),hr=0,pr=Math.random(),uid=function(Tn){return"Symbol("+String(void 0===Tn?"":Tn)+")_"+(++hr+pr).toString(36)},Ar=dr("keys"),sharedKey=function(Tn){return Ar[Tn]||(Ar[Tn]=uid(Tn))},fr={},gr=Un.WeakMap;if(ur){var mr=new gr,_r=mr.get,vr=mr.has,yr=mr.set;ar=function(Tn,Un){return yr.call(mr,Tn,Un),Un},or=function(Tn){return _r.call(mr,Tn)||{}},sr=function(Tn){return vr.call(mr,Tn)}}else{var br=sharedKey("state");fr[br]=!0,ar=function(Tn,Un){return nr(Tn,br,Un),Un},or=function(Tn){return has(Tn,br)?Tn[br]:{}},sr=function(Tn){return has(Tn,br)}}var wr,xr,kr={set:ar,get:or,has:sr,enforce:function(Tn){return sr(Tn)?or(Tn):ar(Tn,{})},getterFor:function(Tn){return function(Un){var Qn;if(!isObject(Un)||(Qn=or(Un)).type!==Tn)throw TypeError("Incompatible receiver, "+Tn+" required");return Qn}}},Sr=createCommonjsModule((function(Tn){var Qn=kr.get,Dn=kr.enforce,Hn=String(String).split("String");(Tn.exports=function(Tn,Qn,Gn,zn){var Vn=!!zn&&!!zn.unsafe,Kn=!!zn&&!!zn.enumerable,Wn=!!zn&&!!zn.noTargetGet;"function"==typeof Gn&&("string"!=typeof Qn||has(Gn,"name")||nr(Gn,"name",Qn),Dn(Gn).source=Hn.join("string"==typeof Qn?Qn:"")),Tn!==Un?(Vn?!Wn&&Tn[Qn]&&(Kn=!0):delete Tn[Qn],Kn?Tn[Qn]=Gn:nr(Tn,Qn,Gn)):Kn?Tn[Qn]=Gn:setGlobal(Qn,Gn)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&Qn(this).source||lr(this)}))})),Cr=Un,aFunction=function(Tn){return"function"==typeof Tn?Tn:void 0},getBuiltIn=function(Tn,Qn){return arguments.length<2?aFunction(Cr[Tn])||aFunction(Un[Tn]):Cr[Tn]&&Cr[Tn][Qn]||Un[Tn]&&Un[Tn][Qn]},Br=Math.ceil,Er=Math.floor,toInteger=function(Tn){return isNaN(Tn=+Tn)?0:(Tn>0?Er:Br)(Tn)},Nr=Math.min,toLength=function(Tn){return Tn>0?Nr(toInteger(Tn),9007199254740991):0},Lr=Math.max,Tr=Math.min,toAbsoluteIndex=function(Tn,Un){var Qn=toInteger(Tn);return Qn<0?Lr(Qn+Un,0):Tr(Qn,Un)},createMethod=function(Tn){return function(Un,Qn,Dn){var Hn,Gn=toIndexedObject(Un),zn=toLength(Gn.length),Vn=toAbsoluteIndex(Dn,zn);if(Tn&&Qn!=Qn){for(;zn>Vn;)if((Hn=Gn[Vn++])!=Hn)return!0}else for(;zn>Vn;Vn++)if((Tn||Vn in Gn)&&Gn[Vn]===Qn)return Tn||Vn||0;return!Tn&&-1}},Pr={includes:createMethod(!0),indexOf:createMethod(!1)},Fr=Pr.indexOf,objectKeysInternal=function(Tn,Un){var Qn,Dn=toIndexedObject(Tn),Hn=0,Gn=[];for(Qn in Dn)!has(fr,Qn)&&has(Dn,Qn)&&Gn.push(Qn);for(;Un.length>Hn;)has(Dn,Qn=Un[Hn++])&&(~Fr(Gn,Qn)||Gn.push(Qn));return Gn},Ur=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ir=Ur.concat("length","prototype"),Rr={f:Object.getOwnPropertyNames||function getOwnPropertyNames(Tn){return objectKeysInternal(Tn,Ir)}},Mr={f:Object.getOwnPropertySymbols},Qr=getBuiltIn("Reflect","ownKeys")||function ownKeys(Tn){var Un=Rr.f(anObject(Tn)),Qn=Mr.f;return Qn?Un.concat(Qn(Tn)):Un},copyConstructorProperties=function(Tn,Un){for(var Qn=Qr(Un),Dn=tr.f,Hn=Zn.f,Gn=0;Gn<Qn.length;Gn++){var zn=Qn[Gn];has(Tn,zn)||Dn(Tn,zn,Hn(Un,zn))}},Or=/#|\.prototype\./,isForced=function(Tn,Un){var Qn=jr[Dr(Tn)];return Qn==Gr||Qn!=Hr&&("function"==typeof Un?fails(Un):!!Un)},Dr=isForced.normalize=function(Tn){return String(Tn).replace(Or,".").toLowerCase()},jr=isForced.data={},Hr=isForced.NATIVE="N",Gr=isForced.POLYFILL="P",zr=isForced,Vr=Zn.f,_export=function(Tn,Qn){var Dn,Hn,Gn,zn,Vn,Kn=Tn.target,Wn=Tn.global,Xn=Tn.stat;if(Dn=Wn?Un:Xn?Un[Kn]||setGlobal(Kn,{}):(Un[Kn]||{}).prototype)for(Hn in Qn){if(zn=Qn[Hn],Gn=Tn.noTargetGet?(Vn=Vr(Dn,Hn))&&Vn.value:Dn[Hn],!zr(Wn?Hn:Kn+(Xn?".":"#")+Hn,Tn.forced)&&void 0!==Gn){if(typeof zn==typeof Gn)continue;copyConstructorProperties(zn,Gn)}(Tn.sham||Gn&&Gn.sham)&&nr(zn,"sham",!0),Sr(Dn,Hn,zn,Tn)}},Kr=Array.isArray||function isArray(Tn){return"Array"==classofRaw(Tn)},toObject=function(Tn){return Object(requireObjectCoercible(Tn))},createProperty=function(Tn,Un,Qn){var Dn=toPrimitive(Un);Dn in Tn?tr.f(Tn,Dn,createPropertyDescriptor(0,Qn)):Tn[Dn]=Qn},qr=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),Wr=qr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xr=dr("wks"),Yr=Un.Symbol,Jr=Wr?Yr:Yr&&Yr.withoutSetter||uid,wellKnownSymbol=function(Tn){return has(Xr,Tn)||(qr&&has(Yr,Tn)?Xr[Tn]=Yr[Tn]:Xr[Tn]=Jr("Symbol."+Tn)),Xr[Tn]},$r=wellKnownSymbol("species"),arraySpeciesCreate=function(Tn,Un){var Qn;return Kr(Tn)&&("function"!=typeof(Qn=Tn.constructor)||Qn!==Array&&!Kr(Qn.prototype)?isObject(Qn)&&null===(Qn=Qn[$r])&&(Qn=void 0):Qn=void 0),new(void 0===Qn?Array:Qn)(0===Un?0:Un)},Zr=getBuiltIn("navigator","userAgent")||"",ei=Un.process,ti=ei&&ei.versions,ni=ti&&ti.v8;ni?xr=(wr=ni.split("."))[0]+wr[1]:Zr&&(!(wr=Zr.match(/Edge\/(\d+)/))||wr[1]>=74)&&(wr=Zr.match(/Chrome\/(\d+)/))&&(xr=wr[1]);var ri=xr&&+xr,ii=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(Tn){return ri>=51||!fails((function(){var Un=[];return(Un.constructor={})[ii]=function(){return{foo:1}},1!==Un[Tn](Boolean).foo}))},ai=wellKnownSymbol("isConcatSpreadable"),oi=ri>=51||!fails((function(){var Tn=[];return Tn[ai]=!1,Tn.concat()[0]!==Tn})),si=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(Tn){if(!isObject(Tn))return!1;var Un=Tn[ai];return void 0!==Un?!!Un:Kr(Tn)};_export({target:"Array",proto:!0,forced:!oi||!si},{concat:function concat(Tn){var Un,Qn,Dn,Hn,Gn,zn=toObject(this),Vn=arraySpeciesCreate(zn,0),Kn=0;for(Un=-1,Dn=arguments.length;Un<Dn;Un++)if(isConcatSpreadable(Gn=-1===Un?zn:arguments[Un])){if(Kn+(Hn=toLength(Gn.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(Qn=0;Qn<Hn;Qn++,Kn++)Qn in Gn&&createProperty(Vn,Kn,Gn[Qn])}else{if(Kn>=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(Vn,Kn++,Gn)}return Vn.length=Kn,Vn}});var aFunction$1=function(Tn){if("function"!=typeof Tn)throw TypeError(String(Tn)+" is not a function");return Tn},functionBindContext=function(Tn,Un,Qn){if(aFunction$1(Tn),void 0===Un)return Tn;switch(Qn){case 0:return function(){return Tn.call(Un)};case 1:return function(Qn){return Tn.call(Un,Qn)};case 2:return function(Qn,Dn){return Tn.call(Un,Qn,Dn)};case 3:return function(Qn,Dn,Hn){return Tn.call(Un,Qn,Dn,Hn)}}return function(){return Tn.apply(Un,arguments)}},li=[].push,createMethod$1=function(Tn){var Un=1==Tn,Qn=2==Tn,Dn=3==Tn,Hn=4==Tn,Gn=6==Tn,zn=5==Tn||Gn;return function(Vn,Wn,Xn,Yn){for(var Jn,$n,Zn=toObject(Vn),er=Kn(Zn),tr=functionBindContext(Wn,Xn,3),nr=toLength(er.length),rr=0,ir=Yn||arraySpeciesCreate,ar=Un?ir(Vn,nr):Qn?ir(Vn,0):void 0;nr>rr;rr++)if((zn||rr in er)&&($n=tr(Jn=er[rr],rr,Zn),Tn))if(Un)ar[rr]=$n;else if($n)switch(Tn){case 3:return!0;case 5:return Jn;case 6:return rr;case 2:li.call(ar,Jn)}else if(Hn)return!1;return Gn?-1:Dn||Hn?Hn:ar}},ui={forEach:createMethod$1(0),map:createMethod$1(1),filter:createMethod$1(2),some:createMethod$1(3),every:createMethod$1(4),find:createMethod$1(5),findIndex:createMethod$1(6)},di=Object.defineProperty,hi={},thrower=function(Tn){throw Tn},arrayMethodUsesToLength=function(Tn,Un){if(has(hi,Tn))return hi[Tn];Un||(Un={});var Dn=[][Tn],Hn=!!has(Un,"ACCESSORS")&&Un.ACCESSORS,Gn=has(Un,0)?Un[0]:thrower,zn=has(Un,1)?Un[1]:void 0;return hi[Tn]=!!Dn&&!fails((function(){if(Hn&&!Qn)return!0;var Tn={length:-1};Hn?di(Tn,1,{enumerable:!0,get:thrower}):Tn[1]=1,Dn.call(Tn,Gn,zn)}))},pi=ui.filter,Ai=arrayMethodHasSpeciesSupport("filter"),fi=arrayMethodUsesToLength("filter");_export({target:"Array",proto:!0,forced:!Ai||!fi},{filter:function filter(Tn){return pi(this,Tn,arguments.length>1?arguments[1]:void 0)}});var gi,mi=Object.keys||function keys(Tn){return objectKeysInternal(Tn,Ur)},_i=Qn?Object.defineProperties:function defineProperties(Tn,Un){anObject(Tn);for(var Qn,Dn=mi(Un),Hn=Dn.length,Gn=0;Hn>Gn;)tr.f(Tn,Qn=Dn[Gn++],Un[Qn]);return Tn},vi=getBuiltIn("document","documentElement"),yi=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(Tn){return"<script>"+Tn+"<\/script>"},NullProtoObject=function(){try{gi=document.domain&&new ActiveXObject("htmlfile")}catch(Tn){}var Tn,Un;NullProtoObject=gi?function(Tn){Tn.write(scriptTag("")),Tn.close();var Un=Tn.parentWindow.Object;return Tn=null,Un}(gi):((Un=documentCreateElement("iframe")).style.display="none",vi.appendChild(Un),Un.src=String("javascript:"),(Tn=Un.contentWindow.document).open(),Tn.write(scriptTag("document.F=Object")),Tn.close(),Tn.F);for(var Qn=Ur.length;Qn--;)delete NullProtoObject.prototype[Ur[Qn]];return NullProtoObject()};fr[yi]=!0;var wi=Object.create||function create(Tn,Un){var Qn;return null!==Tn?(EmptyConstructor.prototype=anObject(Tn),Qn=new EmptyConstructor,EmptyConstructor.prototype=null,Qn[yi]=Tn):Qn=NullProtoObject(),void 0===Un?Qn:_i(Qn,Un)},xi=wellKnownSymbol("unscopables"),ki=Array.prototype;null==ki[xi]&&tr.f(ki,xi,{configurable:!0,value:wi(null)});var addToUnscopables=function(Tn){ki[xi][Tn]=!0},Si=ui.find,Ci=!0,Bi=arrayMethodUsesToLength("find");"find"in[]&&Array(1).find((function(){Ci=!1})),_export({target:"Array",proto:!0,forced:Ci||!Bi},{find:function find(Tn){return Si(this,Tn,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("find");var arrayMethodIsStrict=function(Tn,Un){var Qn=[][Tn];return!!Qn&&fails((function(){Qn.call(null,Un||function(){throw 1},1)}))},Ei=Pr.indexOf,Ni=[].indexOf,Li=!!Ni&&1/[1].indexOf(1,-0)<0,Ti=arrayMethodIsStrict("indexOf"),Pi=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:Li||!Ti||!Pi},{indexOf:function indexOf(Tn){return Li?Ni.apply(this,arguments)||0:Ei(this,Tn,arguments.length>1?arguments[1]:void 0)}}),_export({target:"Array",stat:!0},{isArray:Kr});var Fi=[].join,Ui=Kn!=Object,Ii=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:Ui||!Ii},{join:function join(Tn){return Fi.call(toIndexedObject(this),void 0===Tn?",":Tn)}});var Ri=ui.map,Mi=arrayMethodHasSpeciesSupport("map"),Qi=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!Mi||!Qi},{map:function map(Tn){return Ri(this,Tn,arguments.length>1?arguments[1]:void 0)}});var Oi=[].reverse,Di=[1,2];_export({target:"Array",proto:!0,forced:String(Di)===String(Di.reverse())},{reverse:function reverse(){return Kr(this)&&(this.length=this.length),Oi.call(this)}});var ji=arrayMethodHasSpeciesSupport("slice"),Hi=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),Gi=wellKnownSymbol("species"),zi=[].slice,Vi=Math.max;_export({target:"Array",proto:!0,forced:!ji||!Hi},{slice:function slice(Tn,Un){var Qn,Dn,Hn,Gn=toIndexedObject(this),zn=toLength(Gn.length),Vn=toAbsoluteIndex(Tn,zn),Kn=toAbsoluteIndex(void 0===Un?zn:Un,zn);if(Kr(Gn)&&("function"!=typeof(Qn=Gn.constructor)||Qn!==Array&&!Kr(Qn.prototype)?isObject(Qn)&&null===(Qn=Qn[Gi])&&(Qn=void 0):Qn=void 0,Qn===Array||void 0===Qn))return zi.call(Gn,Vn,Kn);for(Dn=new(void 0===Qn?Array:Qn)(Vi(Kn-Vn,0)),Hn=0;Vn<Kn;Vn++,Hn++)Vn in Gn&&createProperty(Dn,Hn,Gn[Vn]);return Dn.length=Hn,Dn}});var Ki=[],qi=Ki.sort,Wi=fails((function(){Ki.sort(void 0)})),Xi=fails((function(){Ki.sort(null)})),Yi=arrayMethodIsStrict("sort");_export({target:"Array",proto:!0,forced:Wi||!Xi||!Yi},{sort:function sort(Tn){return void 0===Tn?qi.call(toObject(this)):qi.call(toObject(this),aFunction$1(Tn))}});var Ji=arrayMethodHasSpeciesSupport("splice"),$i=arrayMethodUsesToLength("splice",{ACCESSORS:!0,0:0,1:2}),Zi=Math.max,ea=Math.min;_export({target:"Array",proto:!0,forced:!Ji||!$i},{splice:function splice(Tn,Un){var Qn,Dn,Hn,Gn,zn,Vn,Kn=toObject(this),Wn=toLength(Kn.length),Xn=toAbsoluteIndex(Tn,Wn),Yn=arguments.length;if(0===Yn?Qn=Dn=0:1===Yn?(Qn=0,Dn=Wn-Xn):(Qn=Yn-2,Dn=ea(Zi(toInteger(Un),0),Wn-Xn)),Wn+Qn-Dn>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(Hn=arraySpeciesCreate(Kn,Dn),Gn=0;Gn<Dn;Gn++)(zn=Xn+Gn)in Kn&&createProperty(Hn,Gn,Kn[zn]);if(Hn.length=Dn,Qn<Dn){for(Gn=Xn;Gn<Wn-Dn;Gn++)Vn=Gn+Qn,(zn=Gn+Dn)in Kn?Kn[Vn]=Kn[zn]:delete Kn[Vn];for(Gn=Wn;Gn>Wn-Dn+Qn;Gn--)delete Kn[Gn-1]}else if(Qn>Dn)for(Gn=Wn-Dn;Gn>Xn;Gn--)Vn=Gn+Qn-1,(zn=Gn+Dn-1)in Kn?Kn[Vn]=Kn[zn]:delete Kn[Vn];for(Gn=0;Gn<Qn;Gn++)Kn[Gn+Xn]=arguments[Gn+2];return Kn.length=Wn-Dn+Qn,Hn}});var ta=fails((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));_export({target:"Date",proto:!0,forced:ta},{toJSON:function toJSON(Tn){var Un=toObject(this),Qn=toPrimitive(Un);return"number"!=typeof Qn||isFinite(Qn)?Un.toISOString():null}});var na=Date.prototype,ra=na.toString,ia=na.getTime;new Date(NaN)+""!="Invalid Date"&&Sr(na,"toString",(function toString(){var Tn=ia.call(this);return Tn==Tn?ra.call(this):"Invalid Date"}));var aa=tr.f,oa=Function.prototype,sa=oa.toString,la=/^\s*function ([^ (]*)/;Qn&&!("name"in oa)&&aa(oa,"name",{configurable:!0,get:function(){try{return sa.call(this).match(la)[1]}catch(Tn){return""}}});var ua={};ua[wellKnownSymbol("toStringTag")]="z";var da="[object z]"===String(ua),ha=wellKnownSymbol("toStringTag"),pa="Arguments"==classofRaw(function(){return arguments}()),Aa=da?classofRaw:function(Tn){var Un,Qn,Dn;return void 0===Tn?"Undefined":null===Tn?"Null":"string"==typeof(Qn=function(Tn,Un){try{return Tn[Un]}catch(Tn){}}(Un=Object(Tn),ha))?Qn:pa?classofRaw(Un):"Object"==(Dn=classofRaw(Un))&&"function"==typeof Un.callee?"Arguments":Dn},fa=da?{}.toString:function toString(){return"[object "+Aa(this)+"]"};da||Sr(Object.prototype,"toString",fa,{unsafe:!0});var ga="\t\n\v\f\r \u2028\u2029\ufeff",ma="["+ga+"]",_a=RegExp("^"+ma+ma+"*"),va=RegExp(ma+ma+"*$"),createMethod$2=function(Tn){return function(Un){var Qn=String(requireObjectCoercible(Un));return 1&Tn&&(Qn=Qn.replace(_a,"")),2&Tn&&(Qn=Qn.replace(va,"")),Qn}},ya={start:createMethod$2(1),end:createMethod$2(2),trim:createMethod$2(3)},ba=ya.trim,wa=Un.parseFloat,xa=1/wa(ga+"-0")!=-1/0?function parseFloat(Tn){var Un=ba(String(Tn)),Qn=wa(Un);return 0===Qn&&"-"==Un.charAt(0)?-0:Qn}:wa;_export({global:!0,forced:parseFloat!=xa},{parseFloat:xa});var ka=ya.trim,Sa=Un.parseInt,Ca=/^[+-]?0[Xx]/,Ba=8!==Sa(ga+"08")||22!==Sa(ga+"0x16")?function parseInt(Tn,Un){var Qn=ka(String(Tn));return Sa(Qn,Un>>>0||(Ca.test(Qn)?16:10))}:Sa;_export({global:!0,forced:parseInt!=Ba},{parseInt:Ba});var Ea=Object.setPrototypeOf||("__proto__"in{}?function(){var Tn,Un=!1,Qn={};try{(Tn=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(Qn,[]),Un=Qn instanceof Array}catch(Tn){}return function setPrototypeOf(Qn,Dn){return anObject(Qn),function(Tn){if(!isObject(Tn)&&null!==Tn)throw TypeError("Can't set "+String(Tn)+" as a prototype")}(Dn),Un?Tn.call(Qn,Dn):Qn.__proto__=Dn,Qn}}():void 0),inheritIfRequired=function(Tn,Un,Qn){var Dn,Hn;return Ea&&"function"==typeof(Dn=Un.constructor)&&Dn!==Qn&&isObject(Hn=Dn.prototype)&&Hn!==Qn.prototype&&Ea(Tn,Hn),Tn},Na=wellKnownSymbol("match"),isRegexp=function(Tn){var Un;return isObject(Tn)&&(void 0!==(Un=Tn[Na])?!!Un:"RegExp"==classofRaw(Tn))},regexpFlags=function(){var Tn=anObject(this),Un="";return Tn.global&&(Un+="g"),Tn.ignoreCase&&(Un+="i"),Tn.multiline&&(Un+="m"),Tn.dotAll&&(Un+="s"),Tn.unicode&&(Un+="u"),Tn.sticky&&(Un+="y"),Un};function RE(Tn,Un){return RegExp(Tn,Un)}var La={UNSUPPORTED_Y:fails((function(){var Tn=RE("a","y");return Tn.lastIndex=2,null!=Tn.exec("abcd")})),BROKEN_CARET:fails((function(){var Tn=RE("^r","gy");return Tn.lastIndex=2,null!=Tn.exec("str")}))},Ta=wellKnownSymbol("species"),setSpecies=function(Tn){var Un=getBuiltIn(Tn),Dn=tr.f;Qn&&Un&&!Un[Ta]&&Dn(Un,Ta,{configurable:!0,get:function(){return this}})},Pa=tr.f,Fa=Rr.f,Ua=kr.set,Ia=wellKnownSymbol("match"),Ra=Un.RegExp,Ma=Ra.prototype,Qa=/a/g,Oa=/a/g,Da=new Ra(Qa)!==Qa,ja=La.UNSUPPORTED_Y;if(Qn&&zr("RegExp",!Da||ja||fails((function(){return Oa[Ia]=!1,Ra(Qa)!=Qa||Ra(Oa)==Oa||"/a/i"!=Ra(Qa,"i")})))){for(var Ha=function RegExp(Tn,Un){var Qn,Dn=this instanceof Ha,Hn=isRegexp(Tn),Gn=void 0===Un;if(!Dn&&Hn&&Tn.constructor===Ha&&Gn)return Tn;Da?Hn&&!Gn&&(Tn=Tn.source):Tn instanceof Ha&&(Gn&&(Un=regexpFlags.call(Tn)),Tn=Tn.source),ja&&(Qn=!!Un&&Un.indexOf("y")>-1)&&(Un=Un.replace(/y/g,""));var zn=inheritIfRequired(Da?new Ra(Tn,Un):Ra(Tn,Un),Dn?this:Ma,Ha);return ja&&Qn&&Ua(zn,{sticky:Qn}),zn},proxy=function(Tn){Tn in Ha||Pa(Ha,Tn,{configurable:!0,get:function(){return Ra[Tn]},set:function(Un){Ra[Tn]=Un}})},Ga=Fa(Ra),za=0;Ga.length>za;)proxy(Ga[za++]);Ma.constructor=Ha,Ha.prototype=Ma,Sr(Un,"RegExp",Ha)}setSpecies("RegExp");var Va=RegExp.prototype.exec,Ka=String.prototype.replace,qa=Va,Wa=function(){var Tn=/a/,Un=/b*/g;return Va.call(Tn,"a"),Va.call(Un,"a"),0!==Tn.lastIndex||0!==Un.lastIndex}(),Xa=La.UNSUPPORTED_Y||La.BROKEN_CARET,Ya=void 0!==/()??/.exec("")[1];(Wa||Ya||Xa)&&(qa=function exec(Tn){var Un,Qn,Dn,Hn,Gn=this,zn=Xa&&Gn.sticky,Vn=regexpFlags.call(Gn),Kn=Gn.source,Wn=0,Xn=Tn;return zn&&(-1===(Vn=Vn.replace("y","")).indexOf("g")&&(Vn+="g"),Xn=String(Tn).slice(Gn.lastIndex),Gn.lastIndex>0&&(!Gn.multiline||Gn.multiline&&"\n"!==Tn[Gn.lastIndex-1])&&(Kn="(?: "+Kn+")",Xn=" "+Xn,Wn++),Qn=new RegExp("^(?:"+Kn+")",Vn)),Ya&&(Qn=new RegExp("^"+Kn+"$(?!\\s)",Vn)),Wa&&(Un=Gn.lastIndex),Dn=Va.call(zn?Qn:Gn,Xn),zn?Dn?(Dn.input=Dn.input.slice(Wn),Dn[0]=Dn[0].slice(Wn),Dn.index=Gn.lastIndex,Gn.lastIndex+=Dn[0].length):Gn.lastIndex=0:Wa&&Dn&&(Gn.lastIndex=Gn.global?Dn.index+Dn[0].length:Un),Ya&&Dn&&Dn.length>1&&Ka.call(Dn[0],Qn,(function(){for(Hn=1;Hn<arguments.length-2;Hn++)void 0===arguments[Hn]&&(Dn[Hn]=void 0)})),Dn});var Ja=qa;_export({target:"RegExp",proto:!0,forced:/./.exec!==Ja},{exec:Ja});var $a=RegExp.prototype,Za=$a.toString,eo=fails((function(){return"/a/b"!=Za.call({source:"a",flags:"b"})})),to="toString"!=Za.name;(eo||to)&&Sr(RegExp.prototype,"toString",(function toString(){var Tn=anObject(this),Un=String(Tn.source),Qn=Tn.flags;return"/"+Un+"/"+String(void 0===Qn&&Tn instanceof RegExp&&!("flags"in $a)?regexpFlags.call(Tn):Qn)}),{unsafe:!0});var no=wellKnownSymbol("species"),ro=!fails((function(){var Tn=/./;return Tn.exec=function(){var Tn=[];return Tn.groups={a:"7"},Tn},"7"!=="".replace(Tn,"$<a>")})),io="$0"==="a".replace(/./,"$0"),ao=wellKnownSymbol("replace"),oo=!!/./[ao]&&""===/./[ao]("a","$0"),so=!fails((function(){var Tn=/(?:)/,Un=Tn.exec;Tn.exec=function(){return Un.apply(this,arguments)};var Qn="ab".split(Tn);return 2!==Qn.length||"a"!==Qn[0]||"b"!==Qn[1]})),fixRegexpWellKnownSymbolLogic=function(Tn,Un,Qn,Dn){var Hn=wellKnownSymbol(Tn),Gn=!fails((function(){var Un={};return Un[Hn]=function(){return 7},7!=""[Tn](Un)})),zn=Gn&&!fails((function(){var Un=!1,Qn=/a/;return"split"===Tn&&((Qn={}).constructor={},Qn.constructor[no]=function(){return Qn},Qn.flags="",Qn[Hn]=/./[Hn]),Qn.exec=function(){return Un=!0,null},Qn[Hn](""),!Un}));if(!Gn||!zn||"replace"===Tn&&(!ro||!io||oo)||"split"===Tn&&!so){var Vn=/./[Hn],Kn=Qn(Hn,""[Tn],(function(Tn,Un,Qn,Dn,Hn){return Un.exec===Ja?Gn&&!Hn?{done:!0,value:Vn.call(Un,Qn,Dn)}:{done:!0,value:Tn.call(Qn,Un,Dn)}:{done:!1}}),{REPLACE_KEEPS_$0:io,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:oo}),Wn=Kn[0],Xn=Kn[1];Sr(String.prototype,Tn,Wn),Sr(RegExp.prototype,Hn,2==Un?function(Tn,Un){return Xn.call(Tn,this,Un)}:function(Tn){return Xn.call(Tn,this)})}Dn&&nr(RegExp.prototype[Hn],"sham",!0)},createMethod$3=function(Tn){return function(Un,Qn){var Dn,Hn,Gn=String(requireObjectCoercible(Un)),zn=toInteger(Qn),Vn=Gn.length;return zn<0||zn>=Vn?Tn?"":void 0:(Dn=Gn.charCodeAt(zn))<55296||Dn>56319||zn+1===Vn||(Hn=Gn.charCodeAt(zn+1))<56320||Hn>57343?Tn?Gn.charAt(zn):Dn:Tn?Gn.slice(zn,zn+2):Hn-56320+(Dn-55296<<10)+65536}},lo={codeAt:createMethod$3(!1),charAt:createMethod$3(!0)},co=lo.charAt,advanceStringIndex=function(Tn,Un,Qn){return Un+(Qn?co(Tn,Un).length:1)},regexpExecAbstract=function(Tn,Un){var Qn=Tn.exec;if("function"==typeof Qn){var Dn=Qn.call(Tn,Un);if("object"!=typeof Dn)throw TypeError("RegExp exec method returned something other than an Object or null");return Dn}if("RegExp"!==classofRaw(Tn))throw TypeError("RegExp#exec called on incompatible receiver");return Ja.call(Tn,Un)};fixRegexpWellKnownSymbolLogic("match",1,(function(Tn,Un,Qn){return[function match(Un){var Qn=requireObjectCoercible(this),Dn=null==Un?void 0:Un[Tn];return void 0!==Dn?Dn.call(Un,Qn):new RegExp(Un)[Tn](String(Qn))},function(Tn){var Dn=Qn(Un,Tn,this);if(Dn.done)return Dn.value;var Hn=anObject(Tn),Gn=String(this);if(!Hn.global)return regexpExecAbstract(Hn,Gn);var zn=Hn.unicode;Hn.lastIndex=0;for(var Vn,Kn=[],Wn=0;null!==(Vn=regexpExecAbstract(Hn,Gn));){var Xn=String(Vn[0]);Kn[Wn]=Xn,""===Xn&&(Hn.lastIndex=advanceStringIndex(Gn,toLength(Hn.lastIndex),zn)),Wn++}return 0===Wn?null:Kn}]}));var uo=Math.max,ho=Math.min,po=Math.floor,Ao=/\$([$&'`]|\d\d?|<[^>]*>)/g,fo=/\$([$&'`]|\d\d?)/g,maybeToString=function(Tn){return void 0===Tn?Tn:String(Tn)};fixRegexpWellKnownSymbolLogic("replace",2,(function(Tn,Un,Qn,Dn){var Hn=Dn.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Gn=Dn.REPLACE_KEEPS_$0,zn=Hn?"$":"$0";return[function replace(Qn,Dn){var Hn=requireObjectCoercible(this),Gn=null==Qn?void 0:Qn[Tn];return void 0!==Gn?Gn.call(Qn,Hn,Dn):Un.call(String(Hn),Qn,Dn)},function(Tn,Dn){if(!Hn&&Gn||"string"==typeof Dn&&-1===Dn.indexOf(zn)){var Vn=Qn(Un,Tn,this,Dn);if(Vn.done)return Vn.value}var Kn=anObject(Tn),Wn=String(this),Xn="function"==typeof Dn;Xn||(Dn=String(Dn));var Yn=Kn.global;if(Yn){var Jn=Kn.unicode;Kn.lastIndex=0}for(var $n=[];;){var Zn=regexpExecAbstract(Kn,Wn);if(null===Zn)break;if($n.push(Zn),!Yn)break;""===String(Zn[0])&&(Kn.lastIndex=advanceStringIndex(Wn,toLength(Kn.lastIndex),Jn))}for(var er="",tr=0,nr=0;nr<$n.length;nr++){Zn=$n[nr];for(var rr=String(Zn[0]),ir=uo(ho(toInteger(Zn.index),Wn.length),0),ar=[],or=1;or<Zn.length;or++)ar.push(maybeToString(Zn[or]));var sr=Zn.groups;if(Xn){var lr=[rr].concat(ar,ir,Wn);void 0!==sr&&lr.push(sr);var cr=String(Dn.apply(void 0,lr))}else cr=getSubstitution(rr,Wn,ir,ar,sr,Dn);ir>=tr&&(er+=Wn.slice(tr,ir)+cr,tr=ir+rr.length)}return er+Wn.slice(tr)}];function getSubstitution(Tn,Qn,Dn,Hn,Gn,zn){var Vn=Dn+Tn.length,Kn=Hn.length,Wn=fo;return void 0!==Gn&&(Gn=toObject(Gn),Wn=Ao),Un.call(zn,Wn,(function(Un,zn){var Wn;switch(zn.charAt(0)){case"$":return"$";case"&":return Tn;case"`":return Qn.slice(0,Dn);case"'":return Qn.slice(Vn);case"<":Wn=Gn[zn.slice(1,-1)];break;default:var Xn=+zn;if(0===Xn)return Un;if(Xn>Kn){var Yn=po(Xn/10);return 0===Yn?Un:Yn<=Kn?void 0===Hn[Yn-1]?zn.charAt(1):Hn[Yn-1]+zn.charAt(1):Un}Wn=Hn[Xn-1]}return void 0===Wn?"":Wn}))}}));var go=wellKnownSymbol("species"),speciesConstructor=function(Tn,Un){var Qn,Dn=anObject(Tn).constructor;return void 0===Dn||null==(Qn=anObject(Dn)[go])?Un:aFunction$1(Qn)},mo=[].push,_o=Math.min,vo=!fails((function(){return!RegExp(4294967295,"y")}));fixRegexpWellKnownSymbolLogic("split",2,(function(Tn,Un,Qn){var Dn;return Dn="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(Tn,Qn){var Dn=String(requireObjectCoercible(this)),Hn=void 0===Qn?4294967295:Qn>>>0;if(0===Hn)return[];if(void 0===Tn)return[Dn];if(!isRegexp(Tn))return Un.call(Dn,Tn,Hn);for(var Gn,zn,Vn,Kn=[],Wn=(Tn.ignoreCase?"i":"")+(Tn.multiline?"m":"")+(Tn.unicode?"u":"")+(Tn.sticky?"y":""),Xn=0,Yn=new RegExp(Tn.source,Wn+"g");(Gn=Ja.call(Yn,Dn))&&!((zn=Yn.lastIndex)>Xn&&(Kn.push(Dn.slice(Xn,Gn.index)),Gn.length>1&&Gn.index<Dn.length&&mo.apply(Kn,Gn.slice(1)),Vn=Gn[0].length,Xn=zn,Kn.length>=Hn));)Yn.lastIndex===Gn.index&&Yn.lastIndex++;return Xn===Dn.length?!Vn&&Yn.test("")||Kn.push(""):Kn.push(Dn.slice(Xn)),Kn.length>Hn?Kn.slice(0,Hn):Kn}:"0".split(void 0,0).length?function(Tn,Qn){return void 0===Tn&&0===Qn?[]:Un.call(this,Tn,Qn)}:Un,[function split(Un,Qn){var Hn=requireObjectCoercible(this),Gn=null==Un?void 0:Un[Tn];return void 0!==Gn?Gn.call(Un,Hn,Qn):Dn.call(String(Hn),Un,Qn)},function(Tn,Hn){var Gn=Qn(Dn,Tn,this,Hn,Dn!==Un);if(Gn.done)return Gn.value;var zn=anObject(Tn),Vn=String(this),Kn=speciesConstructor(zn,RegExp),Wn=zn.unicode,Xn=(zn.ignoreCase?"i":"")+(zn.multiline?"m":"")+(zn.unicode?"u":"")+(vo?"y":"g"),Yn=new Kn(vo?zn:"^(?:"+zn.source+")",Xn),Jn=void 0===Hn?4294967295:Hn>>>0;if(0===Jn)return[];if(0===Vn.length)return null===regexpExecAbstract(Yn,Vn)?[Vn]:[];for(var $n=0,Zn=0,er=[];Zn<Vn.length;){Yn.lastIndex=vo?Zn:0;var tr,nr=regexpExecAbstract(Yn,vo?Vn:Vn.slice(Zn));if(null===nr||(tr=_o(toLength(Yn.lastIndex+(vo?0:Zn)),Vn.length))===$n)Zn=advanceStringIndex(Vn,Zn,Wn);else{if(er.push(Vn.slice($n,Zn)),er.length===Jn)return er;for(var rr=1;rr<=nr.length-1;rr++)if(er.push(nr[rr]),er.length===Jn)return er;Zn=$n=tr}}return er.push(Vn.slice($n)),er}]}),!vo);var yo=ya.trim;_export({target:"String",proto:!0,forced:function(Tn){return fails((function(){return!!ga[Tn]()||"
"!="
"[Tn]()||ga[Tn].name!==Tn}))}("trim")},{trim:function trim(){return yo(this)}});var wo=/"/g,createHtml=function(Tn,Un,Qn,Dn){var Hn=String(requireObjectCoercible(Tn)),Gn="<"+Un;return""!==Qn&&(Gn+=" "+Qn+'="'+String(Dn).replace(wo,""")+'"'),Gn+">"+Hn+"</"+Un+">"},stringHtmlForced=function(Tn){return fails((function(){var Un=""[Tn]('"');return Un!==Un.toLowerCase()||Un.split('"').length>3}))};function _typeof(Tn){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Tn){return typeof Tn}:function(Tn){return Tn&&"function"==typeof Symbol&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":typeof Tn})(Tn)}function asyncGeneratorStep(Tn,Un,Qn,Dn,Hn,Gn,zn){try{var Vn=Tn[Gn](zn),Kn=Vn.value}catch(Tn){return void Qn(Tn)}Vn.done?Un(Kn):Promise.resolve(Kn).then(Dn,Hn)}function _asyncToGenerator(Tn){return function(){var Un=this,Qn=arguments;return new Promise((function(Dn,Hn){var Gn=Tn.apply(Un,Qn);function _next(Tn){asyncGeneratorStep(Gn,Dn,Hn,_next,_throw,"next",Tn)}function _throw(Tn){asyncGeneratorStep(Gn,Dn,Hn,_next,_throw,"throw",Tn)}_next(void 0)}))}}function _classCallCheck(Tn,Un){if(!(Tn instanceof Un))throw new TypeError("Cannot call a class as a function")}function _defineProperties(Tn,Un){for(var Qn=0;Qn<Un.length;Qn++){var Dn=Un[Qn];Dn.enumerable=Dn.enumerable||!1,Dn.configurable=!0,"value"in Dn&&(Dn.writable=!0),Object.defineProperty(Tn,Dn.key,Dn)}}function _createClass(Tn,Un,Qn){return Un&&_defineProperties(Tn.prototype,Un),Qn&&_defineProperties(Tn,Qn),Tn}function _inherits(Tn,Un){if("function"!=typeof Un&&null!==Un)throw new TypeError("Super expression must either be null or a function");Tn.prototype=Object.create(Un&&Un.prototype,{constructor:{value:Tn,writable:!0,configurable:!0}}),Un&&_setPrototypeOf(Tn,Un)}function _getPrototypeOf(Tn){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(Tn){return Tn.__proto__||Object.getPrototypeOf(Tn)})(Tn)}function _setPrototypeOf(Tn,Un){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(Tn,Un){return Tn.__proto__=Un,Tn})(Tn,Un)}function _possibleConstructorReturn(Tn,Un){return!Un||"object"!=typeof Un&&"function"!=typeof Un?function _assertThisInitialized(Tn){if(void 0===Tn)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Tn}(Tn):Un}function _createSuper(Tn){var Un=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Qn,Dn=_getPrototypeOf(Tn);if(Un){var Hn=_getPrototypeOf(this).constructor;Qn=Reflect.construct(Dn,arguments,Hn)}else Qn=Dn.apply(this,arguments);return _possibleConstructorReturn(this,Qn)}}function _get(Tn,Un,Qn){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(Tn,Un,Qn){var Dn=function _superPropBase(Tn,Un){for(;!Object.prototype.hasOwnProperty.call(Tn,Un)&&null!==(Tn=_getPrototypeOf(Tn)););return Tn}(Tn,Un);if(Dn){var Hn=Object.getOwnPropertyDescriptor(Dn,Un);return Hn.get?Hn.get.call(Qn):Hn.value}})(Tn,Un,Qn||Tn)}function _slicedToArray(Tn,Un){return function _arrayWithHoles(Tn){if(Array.isArray(Tn))return Tn}(Tn)||function _iterableToArrayLimit(Tn,Un){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(Tn)))return;var Qn=[],Dn=!0,Hn=!1,Gn=void 0;try{for(var zn,Vn=Tn[Symbol.iterator]();!(Dn=(zn=Vn.next()).done)&&(Qn.push(zn.value),!Un||Qn.length!==Un);Dn=!0);}catch(Tn){Hn=!0,Gn=Tn}finally{try{Dn||null==Vn.return||Vn.return()}finally{if(Hn)throw Gn}}return Qn}(Tn,Un)||_unsupportedIterableToArray(Tn,Un)||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 _toConsumableArray(Tn){return function _arrayWithoutHoles(Tn){if(Array.isArray(Tn))return _arrayLikeToArray(Tn)}(Tn)||function _iterableToArray(Tn){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(Tn))return Array.from(Tn)}(Tn)||_unsupportedIterableToArray(Tn)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(Tn,Un){if(Tn){if("string"==typeof Tn)return _arrayLikeToArray(Tn,Un);var Qn=Object.prototype.toString.call(Tn).slice(8,-1);return"Object"===Qn&&Tn.constructor&&(Qn=Tn.constructor.name),"Map"===Qn||"Set"===Qn?Array.from(Tn):"Arguments"===Qn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qn)?_arrayLikeToArray(Tn,Un):void 0}}function _arrayLikeToArray(Tn,Un){(null==Un||Un>Tn.length)&&(Un=Tn.length);for(var Qn=0,Dn=new Array(Un);Qn<Un;Qn++)Dn[Qn]=Tn[Qn];return Dn}function _createForOfIteratorHelper(Tn,Un){var Qn;if("undefined"==typeof Symbol||null==Tn[Symbol.iterator]){if(Array.isArray(Tn)||(Qn=_unsupportedIterableToArray(Tn))||Un&&Tn&&"number"==typeof Tn.length){Qn&&(Tn=Qn);var Dn=0,F=function(){};return{s:F,n:function(){return Dn>=Tn.length?{done:!0}:{done:!1,value:Tn[Dn++]}},e:function(Tn){throw Tn},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Hn,Gn=!0,zn=!1;return{s:function(){Qn=Tn[Symbol.iterator]()},n:function(){var Tn=Qn.next();return Gn=Tn.done,Tn},e:function(Tn){zn=!0,Hn=Tn},f:function(){try{Gn||null==Qn.return||Qn.return()}finally{if(zn)throw Hn}}}}
|
||
/*! jQuery v1.7.1 jquery.com | jquery.org/license */_export({target:"String",proto:!0,forced:stringHtmlForced("sub")},{sub:function sub(){return createHtml(this,"sub","","")}}),_export({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return URL.prototype.toString.call(this)}}),function(Tn,Un){function cy(Tn){return Gn.isWindow(Tn)?Tn:9===Tn.nodeType&&(Tn.defaultView||Tn.parentWindow)}function cv(Tn){if(!Bi[Tn]){var Un=Qn.body,Dn=Gn("<"+Tn+">").appendTo(Un),Hn=Dn.css("display");Dn.remove(),"none"!==Hn&&""!==Hn||(xi||((xi=Qn.createElement("iframe")).frameBorder=xi.width=xi.height=0),Un.appendChild(xi),ki&&xi.createElement||((ki=(xi.contentWindow||xi.contentDocument).document).write(("CSS1Compat"===Qn.compatMode?"<!doctype html>":"")+"<html><body>"),ki.close()),Dn=ki.createElement(Tn),ki.body.appendChild(Dn),Hn=Gn.css(Dn,"display"),Un.removeChild(xi)),Bi[Tn]=Hn}return Bi[Tn]}function cu(Tn,Un){var Qn={};return Gn.each(Li.concat.apply([],Li.slice(0,Un)),(function(){Qn[this]=Tn})),Qn}function ct(){Ci=Un}function cs(){return setTimeout(ct,0),Ci=Gn.now()}function ci(){try{return new Tn.XMLHttpRequest}catch(Tn){}}function ca(Tn,Un,Qn,Dn){if(Gn.isArray(Un))Gn.each(Un,(function(Un,Hn){Qn||Zr.test(Tn)?Dn(Tn,Hn):ca(Tn+"["+("object"==_typeof(Hn)||Gn.isArray(Hn)?Un:"")+"]",Hn,Qn,Dn)}));else if(Qn||null==Un||"object"!=_typeof(Un))Dn(Tn,Un);else for(var Hn in Un)ca(Tn+"["+Hn+"]",Un[Hn],Qn,Dn)}function b_(Tn,Qn){var Dn,Hn,zn=Gn.ajaxSettings.flatOptions||{};for(Dn in Qn)Qn[Dn]!==Un&&((zn[Dn]?Tn:Hn||(Hn={}))[Dn]=Qn[Dn]);Hn&&Gn.extend(!0,Tn,Hn)}function b$(Tn,Qn,Dn,Hn,Gn,zn){(zn=zn||{})[Gn=Gn||Qn.dataTypes[0]]=!0;for(var Vn,Kn=Tn[Gn],Wn=0,Xn=Kn?Kn.length:0,Yn=Tn===Ai;Wn<Xn&&(Yn||!Vn);Wn++)"string"==typeof(Vn=Kn[Wn](Qn,Dn,Hn))&&(!Yn||zn[Vn]?Vn=Un:(Qn.dataTypes.unshift(Vn),Vn=b$(Tn,Qn,Dn,Hn,Vn,zn)));return(Yn||!Vn)&&!zn["*"]&&(Vn=b$(Tn,Qn,Dn,Hn,"*",zn)),Vn}function bZ(Tn){return function(Un,Qn){if("string"!=typeof Un&&(Qn=Un,Un="*"),Gn.isFunction(Qn))for(var Dn,Hn,zn=Un.toLowerCase().split(ui),Vn=0,Kn=zn.length;Vn<Kn;Vn++)Dn=zn[Vn],(Hn=/^\+/.test(Dn))&&(Dn=Dn.substr(1)||"*"),(Tn[Dn]=Tn[Dn]||[])[Hn?"unshift":"push"](Qn)}}function bC(Tn,Un,Qn){var Dn="width"===Un?Tn.offsetWidth:Tn.offsetHeight,Hn="width"===Un?Wr:Xr,zn=0,Vn=Hn.length;if(Dn>0){if("border"!==Qn)for(;zn<Vn;zn++)Qn||(Dn-=parseFloat(Gn.css(Tn,"padding"+Hn[zn]))||0),"margin"===Qn?Dn+=parseFloat(Gn.css(Tn,Qn+Hn[zn]))||0:Dn-=parseFloat(Gn.css(Tn,"border"+Hn[zn]+"Width"))||0;return Dn+"px"}if(((Dn=Qr(Tn,Un,Un))<0||null==Dn)&&(Dn=Tn.style[Un]||0),Dn=parseFloat(Dn)||0,Qn)for(;zn<Vn;zn++)Dn+=parseFloat(Gn.css(Tn,"padding"+Hn[zn]))||0,"padding"!==Qn&&(Dn+=parseFloat(Gn.css(Tn,"border"+Hn[zn]+"Width"))||0),"margin"===Qn&&(Dn+=parseFloat(Gn.css(Tn,Qn+Hn[zn]))||0);return Dn+"px"}function bp(Tn,Un){Un.src?Gn.ajax({url:Un.src,async:!1,dataType:"script"}):Gn.globalEval((Un.text||Un.textContent||Un.innerHTML||"").replace(Ir,"/*$0*/")),Un.parentNode&&Un.parentNode.removeChild(Un)}function bo(Tn){var Un=Qn.createElement("div");return Mr.appendChild(Un),Un.innerHTML=Tn.outerHTML,Un.firstChild}function bn(Tn){var Un=(Tn.nodeName||"").toLowerCase();"input"===Un?bm(Tn):"script"!==Un&&void 0!==Tn.getElementsByTagName&&Gn.grep(Tn.getElementsByTagName("input"),bm)}function bm(Tn){"checkbox"!==Tn.type&&"radio"!==Tn.type||(Tn.defaultChecked=Tn.checked)}function bl(Tn){return void 0!==Tn.getElementsByTagName?Tn.getElementsByTagName("*"):void 0!==Tn.querySelectorAll?Tn.querySelectorAll("*"):[]}function bk(Tn,Un){var Qn;1===Un.nodeType&&(Un.clearAttributes&&Un.clearAttributes(),Un.mergeAttributes&&Un.mergeAttributes(Tn),"object"===(Qn=Un.nodeName.toLowerCase())?Un.outerHTML=Tn.outerHTML:"input"!==Qn||"checkbox"!==Tn.type&&"radio"!==Tn.type?"option"===Qn?Un.selected=Tn.defaultSelected:"input"!==Qn&&"textarea"!==Qn||(Un.defaultValue=Tn.defaultValue):(Tn.checked&&(Un.defaultChecked=Un.checked=Tn.checked),Un.value!==Tn.value&&(Un.value=Tn.value)),Un.removeAttribute(Gn.expando))}function bj(Tn,Un){if(1===Un.nodeType&&Gn.hasData(Tn)){var Qn,Dn,Hn,zn=Gn._data(Tn),Vn=Gn._data(Un,zn),Kn=zn.events;if(Kn)for(Qn in delete Vn.handle,Vn.events={},Kn)for(Dn=0,Hn=Kn[Qn].length;Dn<Hn;Dn++)Gn.event.add(Un,Qn+(Kn[Qn][Dn].namespace?".":"")+Kn[Qn][Dn].namespace,Kn[Qn][Dn],Kn[Qn][Dn].data);Vn.data&&(Vn.data=Gn.extend({},Vn.data))}}function bi(Tn,Un){return Gn.nodeName(Tn,"table")?Tn.getElementsByTagName("tbody")[0]||Tn.appendChild(Tn.ownerDocument.createElement("tbody")):Tn}function U(Tn){var Un=xr.split("|"),Qn=Tn.createDocumentFragment();if(Qn.createElement)for(;Un.length;)Qn.createElement(Un.pop());return Qn}function T(Tn,Un,Qn){if(Un=Un||0,Gn.isFunction(Un))return Gn.grep(Tn,(function(Tn,Dn){return!!Un.call(Tn,Dn,Tn)===Qn}));if(Un.nodeType)return Gn.grep(Tn,(function(Tn,Dn){return Tn===Un===Qn}));if("string"==typeof Un){var Dn=Gn.grep(Tn,(function(Tn){return 1===Tn.nodeType}));if(vr.test(Un))return Gn.filter(Un,Dn,!Qn);Un=Gn.filter(Un,Dn)}return Gn.grep(Tn,(function(Tn,Dn){return Gn.inArray(Tn,Un)>=0===Qn}))}function S(Tn){return!Tn||!Tn.parentNode||11===Tn.parentNode.nodeType}function K(){return!0}function J(){return!1}function n(Tn,Un,Qn){var Dn=Un+"defer",Hn=Un+"queue",zn=Un+"mark",Vn=Gn._data(Tn,Dn);Vn&&("queue"===Qn||!Gn._data(Tn,Hn))&&("mark"===Qn||!Gn._data(Tn,zn))&&setTimeout((function(){!Gn._data(Tn,Hn)&&!Gn._data(Tn,zn)&&(Gn.removeData(Tn,Dn,!0),Vn.fire())}),0)}function m(Tn){for(var Un in Tn)if(("data"!==Un||!Gn.isEmptyObject(Tn[Un]))&&"toJSON"!==Un)return!1;return!0}function l(Tn,Qn,Dn){if(Dn===Un&&1===Tn.nodeType){var Hn="data-"+Qn.replace(Wn,"-$1").toLowerCase();if("string"==typeof(Dn=Tn.getAttribute(Hn))){try{Dn="true"===Dn||"false"!==Dn&&("null"===Dn?null:Gn.isNumeric(Dn)?parseFloat(Dn):Kn.test(Dn)?Gn.parseJSON(Dn):Dn)}catch(Tn){}Gn.data(Tn,Qn,Dn)}else Dn=Un}return Dn}var Qn=Tn.document,Dn=Tn.navigator,Hn=Tn.location,Gn=function(){function J(){if(!Kn.isReady){try{Qn.documentElement.doScroll("left")}catch(Tn){return void setTimeout(J,1)}Kn.ready()}}var Hn,Gn,zn,Vn,Kn=function e(Tn,Un){return new e.fn.init(Tn,Un,Hn)},Wn=Tn.jQuery,Xn=Tn.$,Yn=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Jn=/\S/,$n=/^\s+/,Zn=/\s+$/,er=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,tr=/^[\],:{}\s]*$/,nr=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rr=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ir=/(?:^|:|,)(?:\s*\[)+/g,ar=/(webkit)[ \/]([\w.]+)/,or=/(opera)(?:.*version)?[ \/]([\w.]+)/,sr=/(msie) ([\w.]+)/,lr=/(mozilla)(?:.*? rv:([\w.]+))?/,cr=/-([a-z]|[0-9])/gi,ur=/^-ms-/,dr=function x(Tn,Un){return(Un+"").toUpperCase()},hr=Dn.userAgent,pr=Object.prototype.toString,Ar=Object.prototype.hasOwnProperty,fr=Array.prototype.push,gr=Array.prototype.slice,mr=String.prototype.trim,_r=Array.prototype.indexOf,vr={};return Kn.fn=Kn.prototype={constructor:Kn,init:function init(Tn,Dn,Hn){var Gn,zn,Vn,Wn;if(!Tn)return this;if(Tn.nodeType)return this.context=this[0]=Tn,this.length=1,this;if("body"===Tn&&!Dn&&Qn.body)return this.context=Qn,this[0]=Qn.body,this.selector=Tn,this.length=1,this;if("string"==typeof Tn){if((Gn="<"!==Tn.charAt(0)||">"!==Tn.charAt(Tn.length-1)||Tn.length<3?Yn.exec(Tn):[null,Tn,null])&&(Gn[1]||!Dn)){if(Gn[1])return Wn=(Dn=Dn instanceof Kn?Dn[0]:Dn)?Dn.ownerDocument||Dn:Qn,(Vn=er.exec(Tn))?Kn.isPlainObject(Dn)?(Tn=[Qn.createElement(Vn[1])],Kn.fn.attr.call(Tn,Dn,!0)):Tn=[Wn.createElement(Vn[1])]:Tn=((Vn=Kn.buildFragment([Gn[1]],[Wn])).cacheable?Kn.clone(Vn.fragment):Vn.fragment).childNodes,Kn.merge(this,Tn);if((zn=Qn.getElementById(Gn[2]))&&zn.parentNode){if(zn.id!==Gn[2])return Hn.find(Tn);this.length=1,this[0]=zn}return this.context=Qn,this.selector=Tn,this}return!Dn||Dn.jquery?(Dn||Hn).find(Tn):this.constructor(Dn).find(Tn)}return Kn.isFunction(Tn)?Hn.ready(Tn):(Tn.selector!==Un&&(this.selector=Tn.selector,this.context=Tn.context),Kn.makeArray(Tn,this))},selector:"",jquery:"1.7.1",length:0,size:function size(){return this.length},toArray:function toArray(){return gr.call(this,0)},get:function get(Tn){return null==Tn?this.toArray():Tn<0?this[this.length+Tn]:this[Tn]},pushStack:function pushStack(Tn,Un,Qn){var Dn=this.constructor();return Kn.isArray(Tn)?fr.apply(Dn,Tn):Kn.merge(Dn,Tn),Dn.prevObject=this,Dn.context=this.context,"find"===Un?Dn.selector=this.selector+(this.selector?" ":"")+Qn:Un&&(Dn.selector=this.selector+"."+Un+"("+Qn+")"),Dn},each:function each(Tn,Un){return Kn.each(this,Tn,Un)},ready:function ready(Tn){return Kn.bindReady(),zn.add(Tn),this},eq:function eq(Tn){return-1===(Tn=+Tn)?this.slice(Tn):this.slice(Tn,Tn+1)},first:function first(){return this.eq(0)},last:function last(){return this.eq(-1)},slice:function slice(){return this.pushStack(gr.apply(this,arguments),"slice",gr.call(arguments).join(","))},map:function map(Tn){return this.pushStack(Kn.map(this,(function(Un,Qn){return Tn.call(Un,Qn,Un)})))},end:function end(){return this.prevObject||this.constructor(null)},push:fr,sort:[].sort,splice:[].splice},Kn.fn.init.prototype=Kn.fn,Kn.extend=Kn.fn.extend=function(){var Tn,Qn,Dn,Hn,Gn,zn,Vn=arguments[0]||{},Wn=1,Xn=arguments.length,Yn=!1;for("boolean"==typeof Vn&&(Yn=Vn,Vn=arguments[1]||{},Wn=2),"object"!=_typeof(Vn)&&!Kn.isFunction(Vn)&&(Vn={}),Xn===Wn&&(Vn=this,--Wn);Wn<Xn;Wn++)if(null!=(Tn=arguments[Wn]))for(Qn in Tn)Dn=Vn[Qn],Vn!==(Hn=Tn[Qn])&&(Yn&&Hn&&(Kn.isPlainObject(Hn)||(Gn=Kn.isArray(Hn)))?(Gn?(Gn=!1,zn=Dn&&Kn.isArray(Dn)?Dn:[]):zn=Dn&&Kn.isPlainObject(Dn)?Dn:{},Vn[Qn]=Kn.extend(Yn,zn,Hn)):Hn!==Un&&(Vn[Qn]=Hn));return Vn},Kn.extend({noConflict:function noConflict(Un){return Tn.$===Kn&&(Tn.$=Xn),Un&&Tn.jQuery===Kn&&(Tn.jQuery=Wn),Kn},isReady:!1,readyWait:1,holdReady:function holdReady(Tn){Tn?Kn.readyWait++:Kn.ready(!0)},ready:function ready(Tn){if(!0===Tn&&!--Kn.readyWait||!0!==Tn&&!Kn.isReady){if(!Qn.body)return setTimeout(Kn.ready,1);if(Kn.isReady=!0,!0!==Tn&&--Kn.readyWait>0)return;zn.fireWith(Qn,[Kn]),Kn.fn.trigger&&Kn(Qn).trigger("ready").off("ready")}},bindReady:function bindReady(){if(!zn){if(zn=Kn.Callbacks("once memory"),"complete"===Qn.readyState)return setTimeout(Kn.ready,1);if(Qn.addEventListener)Qn.addEventListener("DOMContentLoaded",Vn,!1),Tn.addEventListener("load",Kn.ready,!1);else if(Qn.attachEvent){Qn.attachEvent("onreadystatechange",Vn),Tn.attachEvent("onload",Kn.ready);var Un=!1;try{Un=null==Tn.frameElement}catch(Tn){}Qn.documentElement.doScroll&&Un&&J()}}},isFunction:function isFunction(Tn){return"function"===Kn.type(Tn)},isArray:Array.isArray||function(Tn){return"array"===Kn.type(Tn)},isWindow:function isWindow(Tn){return Tn&&"object"==_typeof(Tn)&&"setInterval"in Tn},isNumeric:function isNumeric(Tn){return!isNaN(parseFloat(Tn))&&isFinite(Tn)},type:function type(Tn){return null==Tn?String(Tn):vr[pr.call(Tn)]||"object"},isPlainObject:function isPlainObject(Tn){if(!Tn||"object"!==Kn.type(Tn)||Tn.nodeType||Kn.isWindow(Tn))return!1;try{if(Tn.constructor&&!Ar.call(Tn,"constructor")&&!Ar.call(Tn.constructor.prototype,"isPrototypeOf"))return!1}catch(Tn){return!1}var Qn;for(Qn in Tn);return Qn===Un||Ar.call(Tn,Qn)},isEmptyObject:function isEmptyObject(Tn){for(var Un in Tn)return!1;return!0},error:function error(Tn){throw new Error(Tn)},parseJSON:function parseJSON(Un){return"string"==typeof Un&&Un?(Un=Kn.trim(Un),Tn.JSON&&Tn.JSON.parse?Tn.JSON.parse(Un):tr.test(Un.replace(nr,"@").replace(rr,"]").replace(ir,""))?new Function("return "+Un)():void Kn.error("Invalid JSON: "+Un)):null},parseXML:function parseXML(Qn){var Dn;try{Tn.DOMParser?Dn=(new DOMParser).parseFromString(Qn,"text/xml"):((Dn=new ActiveXObject("Microsoft.XMLDOM")).async="false",Dn.loadXML(Qn))}catch(Tn){Dn=Un}return(!Dn||!Dn.documentElement||Dn.getElementsByTagName("parsererror").length)&&Kn.error("Invalid XML: "+Qn),Dn},noop:function noop(){},globalEval:function globalEval(Un){Un&&Jn.test(Un)&&(Tn.execScript||function(Un){Tn.eval.call(Tn,Un)})(Un)},camelCase:function camelCase(Tn){return Tn.replace(ur,"ms-").replace(cr,dr)},nodeName:function nodeName(Tn,Un){return Tn.nodeName&&Tn.nodeName.toUpperCase()===Un.toUpperCase()},each:function each(Tn,Qn,Dn){var Hn,Gn=0,zn=Tn.length,Vn=zn===Un||Kn.isFunction(Tn);if(Dn)if(Vn){for(Hn in Tn)if(!1===Qn.apply(Tn[Hn],Dn))break}else for(;Gn<zn&&!1!==Qn.apply(Tn[Gn++],Dn););else if(Vn){for(Hn in Tn)if(!1===Qn.call(Tn[Hn],Hn,Tn[Hn]))break}else for(;Gn<zn&&!1!==Qn.call(Tn[Gn],Gn,Tn[Gn++]););return Tn},trim:mr?function(Tn){return null==Tn?"":mr.call(Tn)}:function(Tn){return null==Tn?"":(Tn+"").replace($n,"").replace(Zn,"")},makeArray:function makeArray(Tn,Un){var Qn=Un||[];if(null!=Tn){var Dn=Kn.type(Tn);null==Tn.length||"string"===Dn||"function"===Dn||"regexp"===Dn||Kn.isWindow(Tn)?fr.call(Qn,Tn):Kn.merge(Qn,Tn)}return Qn},inArray:function inArray(Tn,Un,Qn){var Dn;if(Un){if(_r)return _r.call(Un,Tn,Qn);for(Dn=Un.length,Qn=Qn?Qn<0?Math.max(0,Dn+Qn):Qn:0;Qn<Dn;Qn++)if(Qn in Un&&Un[Qn]===Tn)return Qn}return-1},merge:function merge(Tn,Qn){var Dn=Tn.length,Hn=0;if("number"==typeof Qn.length)for(var Gn=Qn.length;Hn<Gn;Hn++)Tn[Dn++]=Qn[Hn];else for(;Qn[Hn]!==Un;)Tn[Dn++]=Qn[Hn++];return Tn.length=Dn,Tn},grep:function grep(Tn,Un,Qn){var Dn=[];Qn=!!Qn;for(var Hn=0,Gn=Tn.length;Hn<Gn;Hn++)Qn!==!!Un(Tn[Hn],Hn)&&Dn.push(Tn[Hn]);return Dn},map:function map(Tn,Qn,Dn){var Hn,Gn,zn=[],Vn=0,Wn=Tn.length;if(Tn instanceof Kn||Wn!==Un&&"number"==typeof Wn&&(Wn>0&&Tn[0]&&Tn[Wn-1]||0===Wn||Kn.isArray(Tn)))for(;Vn<Wn;Vn++)null!=(Hn=Qn(Tn[Vn],Vn,Dn))&&(zn[zn.length]=Hn);else for(Gn in Tn)null!=(Hn=Qn(Tn[Gn],Gn,Dn))&&(zn[zn.length]=Hn);return zn.concat.apply([],zn)},guid:1,proxy:function proxy(Tn,Qn){if("string"==typeof Qn){var Dn=Tn[Qn];Qn=Tn,Tn=Dn}if(!Kn.isFunction(Tn))return Un;var Hn=gr.call(arguments,2),Gn=function g(){return Tn.apply(Qn,Hn.concat(gr.call(arguments)))};return Gn.guid=Tn.guid=Tn.guid||Gn.guid||Kn.guid++,Gn},access:function access(Tn,Qn,Dn,Hn,Gn,zn){var Vn=Tn.length;if("object"==_typeof(Qn)){for(var Wn in Qn)Kn.access(Tn,Wn,Qn[Wn],Hn,Gn,Dn);return Tn}if(Dn!==Un){Hn=!zn&&Hn&&Kn.isFunction(Dn);for(var Xn=0;Xn<Vn;Xn++)Gn(Tn[Xn],Qn,Hn?Dn.call(Tn[Xn],Xn,Gn(Tn[Xn],Qn)):Dn,zn);return Tn}return Vn?Gn(Tn[0],Qn):Un},now:function now(){return(new Date).getTime()},uaMatch:function uaMatch(Tn){Tn=Tn.toLowerCase();var Un=ar.exec(Tn)||or.exec(Tn)||sr.exec(Tn)||Tn.indexOf("compatible")<0&&lr.exec(Tn)||[];return{browser:Un[1]||"",version:Un[2]||"0"}},sub:function sub(){function a(Tn,Un){return new a.fn.init(Tn,Un)}Kn.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(Un,Qn){return Qn&&Qn instanceof Kn&&!(Qn instanceof a)&&(Qn=a(Qn)),Kn.fn.init.call(this,Un,Qn,Tn)},a.fn.init.prototype=a.fn;var Tn=a(Qn);return a},browser:{}}),Kn.each("Boolean Number String Function Array Date RegExp Object".split(" "),(function(Tn,Un){vr["[object "+Un+"]"]=Un.toLowerCase()})),(Gn=Kn.uaMatch(hr)).browser&&(Kn.browser[Gn.browser]=!0,Kn.browser.version=Gn.version),Kn.browser.webkit&&(Kn.browser.safari=!0),Jn.test(" ")&&($n=/^[\s\xA0]+/,Zn=/[\s\xA0]+$/),Hn=Kn(Qn),Qn.addEventListener?Vn=function B(){Qn.removeEventListener("DOMContentLoaded",Vn,!1),Kn.ready()}:Qn.attachEvent&&(Vn=function _B(){"complete"===Qn.readyState&&(Qn.detachEvent("onreadystatechange",Vn),Kn.ready())}),Kn}(),zn={};Gn.Callbacks=function(Tn){Tn=Tn?zn[Tn]||function h(Tn){var Un,Qn,Dn=zn[Tn]={};for(Un=0,Qn=(Tn=Tn.split(/\s+/)).length;Un<Qn;Un++)Dn[Tn[Un]]=!0;return Dn}(Tn):{};var Qn,Dn,Hn,Vn,Kn,Wn=[],Xn=[],Yn=function m(Un){var Qn,Dn,Hn,zn;for(Qn=0,Dn=Un.length;Qn<Dn;Qn++)Hn=Un[Qn],"array"===(zn=Gn.type(Hn))?m(Hn):"function"===zn&&(!Tn.unique||!$n.has(Hn))&&Wn.push(Hn)},Jn=function n(Un,Gn){for(Gn=Gn||[],Qn=!Tn.memory||[Un,Gn],Dn=!0,Kn=Hn||0,Hn=0,Vn=Wn.length;Wn&&Kn<Vn;Kn++)if(!1===Wn[Kn].apply(Un,Gn)&&Tn.stopOnFalse){Qn=!0;break}Dn=!1,Wn&&(Tn.once?!0===Qn?$n.disable():Wn=[]:Xn&&Xn.length&&(Qn=Xn.shift(),$n.fireWith(Qn[0],Qn[1])))},$n={add:function add(){if(Wn){var Tn=Wn.length;Yn(arguments),Dn?Vn=Wn.length:Qn&&!0!==Qn&&(Hn=Tn,Jn(Qn[0],Qn[1]))}return this},remove:function remove(){if(Wn)for(var Un=arguments,Qn=0,Hn=Un.length;Qn<Hn;Qn++)for(var Gn=0;Gn<Wn.length&&(Un[Qn]!==Wn[Gn]||(Dn&&Gn<=Vn&&(Vn--,Gn<=Kn&&Kn--),Wn.splice(Gn--,1),!Tn.unique));Gn++);return this},has:function has(Tn){if(Wn)for(var Un=0,Qn=Wn.length;Un<Qn;Un++)if(Tn===Wn[Un])return!0;return!1},empty:function empty(){return Wn=[],this},disable:function disable(){return Wn=Xn=Qn=Un,this},disabled:function disabled(){return!Wn},lock:function lock(){return Xn=Un,(!Qn||!0===Qn)&&$n.disable(),this},locked:function locked(){return!Xn},fireWith:function fireWith(Un,Hn){return Xn&&(Dn?Tn.once||Xn.push([Un,Hn]):(!Tn.once||!Qn)&&Jn(Un,Hn)),this},fire:function fire(){return $n.fireWith(this,arguments),this},fired:function fired(){return!!Qn}};return $n};var Vn=[].slice;Gn.extend({Deferred:function Deferred(Tn){var Un,Qn=Gn.Callbacks("once memory"),Dn=Gn.Callbacks("once memory"),Hn=Gn.Callbacks("memory"),zn="pending",Vn={resolve:Qn,reject:Dn,notify:Hn},Kn={done:Qn.add,fail:Dn.add,progress:Hn.add,state:function state(){return zn},isResolved:Qn.fired,isRejected:Dn.fired,then:function then(Tn,Un,Qn){return Wn.done(Tn).fail(Un).progress(Qn),this},always:function always(){return Wn.done.apply(Wn,arguments).fail.apply(Wn,arguments),this},pipe:function pipe(Tn,Un,Qn){return Gn.Deferred((function(Dn){Gn.each({done:[Tn,"resolve"],fail:[Un,"reject"],progress:[Qn,"notify"]},(function(Tn,Un){var Qn,Hn=Un[0],zn=Un[1];Gn.isFunction(Hn)?Wn[Tn]((function(){(Qn=Hn.apply(this,arguments))&&Gn.isFunction(Qn.promise)?Qn.promise().then(Dn.resolve,Dn.reject,Dn.notify):Dn[zn+"With"](this===Wn?Dn:this,[Qn])})):Wn[Tn](Dn[zn])}))})).promise()},promise:function promise(Tn){if(null==Tn)Tn=Kn;else for(var Un in Kn)Tn[Un]=Kn[Un];return Tn}},Wn=Kn.promise({});for(Un in Vn)Wn[Un]=Vn[Un].fire,Wn[Un+"With"]=Vn[Un].fireWith;return Wn.done((function(){zn="resolved"}),Dn.disable,Hn.lock).fail((function(){zn="rejected"}),Qn.disable,Hn.lock),Tn&&Tn.call(Wn,Wn),Wn},when:function when(Tn){function m(Tn){return function(Un){Hn[Tn]=arguments.length>1?Vn.call(arguments,0):Un,Kn.notifyWith(Wn,Hn)}}function l(Tn){return function(Qn){Un[Tn]=arguments.length>1?Vn.call(arguments,0):Qn,--zn||Kn.resolveWith(Kn,Un)}}var Un=Vn.call(arguments,0),Qn=0,Dn=Un.length,Hn=Array(Dn),zn=Dn,Kn=Dn<=1&&Tn&&Gn.isFunction(Tn.promise)?Tn:Gn.Deferred(),Wn=Kn.promise();if(Dn>1){for(;Qn<Dn;Qn++)Un[Qn]&&Un[Qn].promise&&Gn.isFunction(Un[Qn].promise)?Un[Qn].promise().then(l(Qn),Kn.reject,m(Qn)):--zn;zn||Kn.resolveWith(Kn,Un)}else Kn!==Tn&&Kn.resolveWith(Kn,Dn?[Tn]:[]);return Wn}}),Gn.support=function(){var Un,Dn,Hn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er=Qn.createElement("div");Qn.documentElement;if(er.setAttribute("className","t"),er.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",Dn=er.getElementsByTagName("*"),Hn=er.getElementsByTagName("a")[0],!Dn||!Dn.length||!Hn)return{};Vn=(zn=Qn.createElement("select")).appendChild(Qn.createElement("option")),Kn=er.getElementsByTagName("input")[0],Un={leadingWhitespace:3===er.firstChild.nodeType,tbody:!er.getElementsByTagName("tbody").length,htmlSerialize:!!er.getElementsByTagName("link").length,style:/top/.test(Hn.getAttribute("style")),hrefNormalized:"/a"===Hn.getAttribute("href"),opacity:/^0.55/.test(Hn.style.opacity),cssFloat:!!Hn.style.cssFloat,checkOn:"on"===Kn.value,optSelected:Vn.selected,getSetAttribute:"t"!==er.className,enctype:!!Qn.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==Qn.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},Kn.checked=!0,Un.noCloneChecked=Kn.cloneNode(!0).checked,zn.disabled=!0,Un.optDisabled=!Vn.disabled;try{delete er.test}catch(Tn){Un.deleteExpando=!1}if(!er.addEventListener&&er.attachEvent&&er.fireEvent&&(er.attachEvent("onclick",(function(){Un.noCloneEvent=!1})),er.cloneNode(!0).fireEvent("onclick")),(Kn=Qn.createElement("input")).value="t",Kn.setAttribute("type","radio"),Un.radioValue="t"===Kn.value,Kn.setAttribute("checked","checked"),er.appendChild(Kn),(Xn=Qn.createDocumentFragment()).appendChild(er.lastChild),Un.checkClone=Xn.cloneNode(!0).cloneNode(!0).lastChild.checked,Un.appendChecked=Kn.checked,Xn.removeChild(Kn),Xn.appendChild(er),er.innerHTML="",Tn.getComputedStyle&&((Wn=Qn.createElement("div")).style.width="0",Wn.style.marginRight="0",er.style.width="2px",er.appendChild(Wn),Un.reliableMarginRight=0===(parseInt((Tn.getComputedStyle(Wn,null)||{marginRight:0}).marginRight,10)||0)),er.attachEvent)for($n in{submit:1,change:1,focusin:1})(Zn=(Jn="on"+$n)in er)||(er.setAttribute(Jn,"return;"),Zn="function"==typeof er[Jn]),Un[$n+"Bubbles"]=Zn;return Xn.removeChild(er),Xn=zn=Vn=Wn=er=Kn=null,Gn((function(){var Tn,Dn,Hn,zn,Vn,Kn,Wn,Xn,Jn=Qn.getElementsByTagName("body")[0];!Jn||(1,Wn="visibility:hidden;border:0;","<div "+(Xn="style='"+(Kn="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;")+"border:5px solid #000;padding:0;'")+"><div></div></div><table "+Xn+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",(Tn=Qn.createElement("div")).style.cssText=Wn+"width:0;height:0;position:static;top:0;margin-top:1px",Jn.insertBefore(Tn,Jn.firstChild),er=Qn.createElement("div"),Tn.appendChild(er),er.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",Yn=er.getElementsByTagName("td"),Zn=0===Yn[0].offsetHeight,Yn[0].style.display="",Yn[1].style.display="none",Un.reliableHiddenOffsets=Zn&&0===Yn[0].offsetHeight,er.innerHTML="",er.style.width=er.style.paddingLeft="1px",Gn.boxModel=Un.boxModel=2===er.offsetWidth,void 0!==er.style.zoom&&(er.style.display="inline",er.style.zoom=1,Un.inlineBlockNeedsLayout=2===er.offsetWidth,er.style.display="",er.innerHTML="<div style='width:4px;'></div>",Un.shrinkWrapBlocks=2!==er.offsetWidth),er.style.cssText=Kn+Wn,er.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",Hn=(Dn=er.firstChild).firstChild,zn=Dn.nextSibling.firstChild.firstChild,Vn={doesNotAddBorder:5!==Hn.offsetTop,doesAddBorderForTableAndCells:5===zn.offsetTop},Hn.style.position="fixed",Hn.style.top="20px",Vn.fixedPosition=20===Hn.offsetTop||15===Hn.offsetTop,Hn.style.position=Hn.style.top="",Dn.style.overflow="hidden",Dn.style.position="relative",Vn.subtractsBorderForOverflowNotVisible=-5===Hn.offsetTop,Vn.doesNotIncludeMarginInBodyOffset=1!==Jn.offsetTop,Jn.removeChild(Tn),er=Tn=null,Gn.extend(Un,Vn))})),Un}();var Kn=/^(?:\{.*\}|\[.*\])$/,Wn=/([A-Z])/g;Gn.extend({cache:{},uuid:0,expando:"jQuery"+(Gn.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function hasData(Tn){return!!(Tn=Tn.nodeType?Gn.cache[Tn[Gn.expando]]:Tn[Gn.expando])&&!m(Tn)},data:function data(Tn,Qn,Dn,Hn){if(Gn.acceptData(Tn)){var zn,Vn,Kn,Wn=Gn.expando,Xn="string"==typeof Qn,Yn=Tn.nodeType,Jn=Yn?Gn.cache:Tn,$n=Yn?Tn[Wn]:Tn[Wn]&&Wn,Zn="events"===Qn;if((!$n||!Jn[$n]||!Zn&&!Hn&&!Jn[$n].data)&&Xn&&Dn===Un)return;return $n||(Yn?Tn[Wn]=$n=++Gn.uuid:$n=Wn),Jn[$n]||(Jn[$n]={},Yn||(Jn[$n].toJSON=Gn.noop)),"object"!=_typeof(Qn)&&"function"!=typeof Qn||(Hn?Jn[$n]=Gn.extend(Jn[$n],Qn):Jn[$n].data=Gn.extend(Jn[$n].data,Qn)),zn=Vn=Jn[$n],Hn||(Vn.data||(Vn.data={}),Vn=Vn.data),Dn!==Un&&(Vn[Gn.camelCase(Qn)]=Dn),Zn&&!Vn[Qn]?zn.events:(Xn?null==(Kn=Vn[Qn])&&(Kn=Vn[Gn.camelCase(Qn)]):Kn=Vn,Kn)}},removeData:function removeData(Tn,Un,Qn){if(Gn.acceptData(Tn)){var Dn,Hn,zn,Vn=Gn.expando,Kn=Tn.nodeType,Wn=Kn?Gn.cache:Tn,Xn=Kn?Tn[Vn]:Vn;if(!Wn[Xn])return;if(Un&&(Dn=Qn?Wn[Xn]:Wn[Xn].data)){Gn.isArray(Un)||(Un in Dn?Un=[Un]:Un=(Un=Gn.camelCase(Un))in Dn?[Un]:Un.split(" "));for(Hn=0,zn=Un.length;Hn<zn;Hn++)delete Dn[Un[Hn]];if(!(Qn?m:Gn.isEmptyObject)(Dn))return}if(!Qn&&(delete Wn[Xn].data,!m(Wn[Xn])))return;Gn.support.deleteExpando||!Wn.setInterval?delete Wn[Xn]:Wn[Xn]=null,Kn&&(Gn.support.deleteExpando?delete Tn[Vn]:Tn.removeAttribute?Tn.removeAttribute(Vn):Tn[Vn]=null)}},_data:function _data(Tn,Un,Qn){return Gn.data(Tn,Un,Qn,!0)},acceptData:function acceptData(Tn){if(Tn.nodeName){var Un=Gn.noData[Tn.nodeName.toLowerCase()];if(Un)return!0!==Un&&Tn.getAttribute("classid")===Un}return!0}}),Gn.fn.extend({data:function data(Tn,Qn){var Dn,Hn,zn,Vn=null;if(void 0===Tn){if(this.length&&(Vn=Gn.data(this[0]),1===this[0].nodeType&&!Gn._data(this[0],"parsedAttrs"))){for(var Kn=0,Wn=(Hn=this[0].attributes).length;Kn<Wn;Kn++)0===(zn=Hn[Kn].name).indexOf("data-")&&(zn=Gn.camelCase(zn.substring(5)),l(this[0],zn,Vn[zn]));Gn._data(this[0],"parsedAttrs",!0)}return Vn}return"object"==_typeof(Tn)?this.each((function(){Gn.data(this,Tn)})):((Dn=Tn.split("."))[1]=Dn[1]?"."+Dn[1]:"",Qn===Un?((Vn=this.triggerHandler("getData"+Dn[1]+"!",[Dn[0]]))===Un&&this.length&&(Vn=Gn.data(this[0],Tn),Vn=l(this[0],Tn,Vn)),Vn===Un&&Dn[1]?this.data(Dn[0]):Vn):this.each((function(){var Un=Gn(this),Hn=[Dn[0],Qn];Un.triggerHandler("setData"+Dn[1]+"!",Hn),Gn.data(this,Tn,Qn),Un.triggerHandler("changeData"+Dn[1]+"!",Hn)})))},removeData:function removeData(Tn){return this.each((function(){Gn.removeData(this,Tn)}))}}),Gn.extend({_mark:function _mark(Tn,Un){Tn&&(Un=(Un||"fx")+"mark",Gn._data(Tn,Un,(Gn._data(Tn,Un)||0)+1))},_unmark:function _unmark(Tn,Un,Qn){if(!0!==Tn&&(Qn=Un,Un=Tn,Tn=!1),Un){var Dn=(Qn=Qn||"fx")+"mark",Hn=Tn?0:(Gn._data(Un,Dn)||1)-1;Hn?Gn._data(Un,Dn,Hn):(Gn.removeData(Un,Dn,!0),n(Un,Qn,"mark"))}},queue:function queue(Tn,Un,Qn){var Dn;if(Tn)return Un=(Un||"fx")+"queue",Dn=Gn._data(Tn,Un),Qn&&(!Dn||Gn.isArray(Qn)?Dn=Gn._data(Tn,Un,Gn.makeArray(Qn)):Dn.push(Qn)),Dn||[]},dequeue:function dequeue(Tn,Un){Un=Un||"fx";var Qn=Gn.queue(Tn,Un),Dn=Qn.shift(),Hn={};"inprogress"===Dn&&(Dn=Qn.shift()),Dn&&("fx"===Un&&Qn.unshift("inprogress"),Gn._data(Tn,Un+".run",Hn),Dn.call(Tn,(function(){Gn.dequeue(Tn,Un)}),Hn)),Qn.length||(Gn.removeData(Tn,Un+"queue "+Un+".run",!0),n(Tn,Un,"queue"))}}),Gn.fn.extend({queue:function queue(Tn,Qn){return"string"!=typeof Tn&&(Qn=Tn,Tn="fx"),Qn===Un?Gn.queue(this[0],Tn):this.each((function(){var Un=Gn.queue(this,Tn,Qn);"fx"===Tn&&"inprogress"!==Un[0]&&Gn.dequeue(this,Tn)}))},dequeue:function dequeue(Tn){return this.each((function(){Gn.dequeue(this,Tn)}))},delay:function delay(Tn,Un){return Tn=Gn.fx&&Gn.fx.speeds[Tn]||Tn,Un=Un||"fx",this.queue(Un,(function(Un,Qn){var Dn=setTimeout(Un,Tn);Qn.stop=function(){clearTimeout(Dn)}}))},clearQueue:function clearQueue(Tn){return this.queue(Tn||"fx",[])},promise:function promise(Tn,Qn){function m(){--Kn||Hn.resolveWith(zn,[zn])}"string"!=typeof Tn&&(Tn=Un),Tn=Tn||"fx";for(var Dn,Hn=Gn.Deferred(),zn=this,Vn=zn.length,Kn=1,Wn=Tn+"defer",Xn=Tn+"queue",Yn=Tn+"mark";Vn--;)(Dn=Gn.data(zn[Vn],Wn,Un,!0)||(Gn.data(zn[Vn],Xn,Un,!0)||Gn.data(zn[Vn],Yn,Un,!0))&&Gn.data(zn[Vn],Wn,Gn.Callbacks("once memory"),!0))&&(Kn++,Dn.add(m));return m(),Hn.promise()}});var Xn,Yn,Jn,$n=/[\n\t\r]/g,Zn=/\s+/,er=/\r/g,tr=/^(?:button|input)$/i,nr=/^(?:button|input|object|select|textarea)$/i,rr=/^a(?:rea)?$/i,ir=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ar=Gn.support.getSetAttribute;Gn.fn.extend({attr:function attr(Tn,Un){return Gn.access(this,Tn,Un,!0,Gn.attr)},removeAttr:function removeAttr(Tn){return this.each((function(){Gn.removeAttr(this,Tn)}))},prop:function prop(Tn,Un){return Gn.access(this,Tn,Un,!0,Gn.prop)},removeProp:function removeProp(Tn){return Tn=Gn.propFix[Tn]||Tn,this.each((function(){try{this[Tn]=Un,delete this[Tn]}catch(Tn){}}))},addClass:function addClass(Tn){var Un,Qn,Dn,Hn,zn,Vn,Kn;if(Gn.isFunction(Tn))return this.each((function(Un){Gn(this).addClass(Tn.call(this,Un,this.className))}));if(Tn&&"string"==typeof Tn)for(Un=Tn.split(Zn),Qn=0,Dn=this.length;Qn<Dn;Qn++)if(1===(Hn=this[Qn]).nodeType)if(Hn.className||1!==Un.length){for(zn=" "+Hn.className+" ",Vn=0,Kn=Un.length;Vn<Kn;Vn++)~zn.indexOf(" "+Un[Vn]+" ")||(zn+=Un[Vn]+" ");Hn.className=Gn.trim(zn)}else Hn.className=Tn;return this},removeClass:function removeClass(Tn){var Qn,Dn,Hn,zn,Vn,Kn,Wn;if(Gn.isFunction(Tn))return this.each((function(Un){Gn(this).removeClass(Tn.call(this,Un,this.className))}));if(Tn&&"string"==typeof Tn||Tn===Un)for(Qn=(Tn||"").split(Zn),Dn=0,Hn=this.length;Dn<Hn;Dn++)if(1===(zn=this[Dn]).nodeType&&zn.className)if(Tn){for(Vn=(" "+zn.className+" ").replace($n," "),Kn=0,Wn=Qn.length;Kn<Wn;Kn++)Vn=Vn.replace(" "+Qn[Kn]+" "," ");zn.className=Gn.trim(Vn)}else zn.className="";return this},toggleClass:function toggleClass(Tn,Un){var Qn=_typeof(Tn),Dn="boolean"==typeof Un;return Gn.isFunction(Tn)?this.each((function(Qn){Gn(this).toggleClass(Tn.call(this,Qn,this.className,Un),Un)})):this.each((function(){if("string"===Qn)for(var Hn,zn=0,Vn=Gn(this),Kn=Un,Wn=Tn.split(Zn);Hn=Wn[zn++];)Kn=Dn?Kn:!Vn.hasClass(Hn),Vn[Kn?"addClass":"removeClass"](Hn);else"undefined"!==Qn&&"boolean"!==Qn||(this.className&&Gn._data(this,"__className__",this.className),this.className=this.className||!1===Tn?"":Gn._data(this,"__className__")||"")}))},hasClass:function hasClass(Tn){for(var Un=" "+Tn+" ",Qn=0,Dn=this.length;Qn<Dn;Qn++)if(1===this[Qn].nodeType&&(" "+this[Qn].className+" ").replace($n," ").indexOf(Un)>-1)return!0;return!1},val:function val(Tn){var Qn,Dn,Hn,zn=this[0];return arguments.length?(Hn=Gn.isFunction(Tn),this.each((function(Dn){var zn,Vn=Gn(this);1===this.nodeType&&(null==(zn=Hn?Tn.call(this,Dn,Vn.val()):Tn)?zn="":"number"==typeof zn?zn+="":Gn.isArray(zn)&&(zn=Gn.map(zn,(function(Tn){return null==Tn?"":Tn+""}))),(Qn=Gn.valHooks[this.nodeName.toLowerCase()]||Gn.valHooks[this.type])&&"set"in Qn&&Qn.set(this,zn,"value")!==Un||(this.value=zn))}))):zn?(Qn=Gn.valHooks[zn.nodeName.toLowerCase()]||Gn.valHooks[zn.type])&&"get"in Qn&&(Dn=Qn.get(zn,"value"))!==Un?Dn:"string"==typeof(Dn=zn.value)?Dn.replace(er,""):null==Dn?"":Dn:void 0}}),Gn.extend({valHooks:{option:{get:function get(Tn){var Un=Tn.attributes.value;return!Un||Un.specified?Tn.value:Tn.text}},select:{get:function get(Tn){var Un,Qn,Dn,Hn,zn=Tn.selectedIndex,Vn=[],Kn=Tn.options,Wn="select-one"===Tn.type;if(zn<0)return null;for(Qn=Wn?zn:0,Dn=Wn?zn+1:Kn.length;Qn<Dn;Qn++)if((Hn=Kn[Qn]).selected&&(Gn.support.optDisabled?!Hn.disabled:null===Hn.getAttribute("disabled"))&&(!Hn.parentNode.disabled||!Gn.nodeName(Hn.parentNode,"optgroup"))){if(Un=Gn(Hn).val(),Wn)return Un;Vn.push(Un)}return Wn&&!Vn.length&&Kn.length?Gn(Kn[zn]).val():Vn},set:function set(Tn,Un){var Qn=Gn.makeArray(Un);return Gn(Tn).find("option").each((function(){this.selected=Gn.inArray(Gn(this).val(),Qn)>=0})),Qn.length||(Tn.selectedIndex=-1),Qn}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function attr(Tn,Qn,Dn,Hn){var zn,Vn,Kn,Wn=Tn.nodeType;if(Tn&&3!==Wn&&8!==Wn&&2!==Wn)return Hn&&Qn in Gn.attrFn?Gn(Tn)[Qn](Dn):void 0===Tn.getAttribute?Gn.prop(Tn,Qn,Dn):((Kn=1!==Wn||!Gn.isXMLDoc(Tn))&&(Qn=Qn.toLowerCase(),Vn=Gn.attrHooks[Qn]||(ir.test(Qn)?Yn:Xn)),Dn!==Un?null===Dn?void Gn.removeAttr(Tn,Qn):Vn&&"set"in Vn&&Kn&&(zn=Vn.set(Tn,Dn,Qn))!==Un?zn:(Tn.setAttribute(Qn,""+Dn),Dn):Vn&&"get"in Vn&&Kn&&null!==(zn=Vn.get(Tn,Qn))?zn:null===(zn=Tn.getAttribute(Qn))?Un:zn)},removeAttr:function removeAttr(Tn,Un){var Qn,Dn,Hn,zn,Vn=0;if(Un&&1===Tn.nodeType)for(zn=(Dn=Un.toLowerCase().split(Zn)).length;Vn<zn;Vn++)(Hn=Dn[Vn])&&(Qn=Gn.propFix[Hn]||Hn,Gn.attr(Tn,Hn,""),Tn.removeAttribute(ar?Hn:Qn),ir.test(Hn)&&Qn in Tn&&(Tn[Qn]=!1))},attrHooks:{type:{set:function set(Tn,Un){if(tr.test(Tn.nodeName)&&Tn.parentNode)Gn.error("type property can't be changed");else if(!Gn.support.radioValue&&"radio"===Un&&Gn.nodeName(Tn,"input")){var Qn=Tn.value;return Tn.setAttribute("type",Un),Qn&&(Tn.value=Qn),Un}}},value:{get:function get(Tn,Un){return Xn&&Gn.nodeName(Tn,"button")?Xn.get(Tn,Un):Un in Tn?Tn.value:null},set:function set(Tn,Un,Qn){if(Xn&&Gn.nodeName(Tn,"button"))return Xn.set(Tn,Un,Qn);Tn.value=Un}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function prop(Tn,Qn,Dn){var Hn,zn,Vn=Tn.nodeType;if(Tn&&3!==Vn&&8!==Vn&&2!==Vn)return(1!==Vn||!Gn.isXMLDoc(Tn))&&(Qn=Gn.propFix[Qn]||Qn,zn=Gn.propHooks[Qn]),Dn!==Un?zn&&"set"in zn&&(Hn=zn.set(Tn,Dn,Qn))!==Un?Hn:Tn[Qn]=Dn:zn&&"get"in zn&&null!==(Hn=zn.get(Tn,Qn))?Hn:Tn[Qn]},propHooks:{tabIndex:{get:function get(Tn){var Qn=Tn.getAttributeNode("tabindex");return Qn&&Qn.specified?parseInt(Qn.value,10):nr.test(Tn.nodeName)||rr.test(Tn.nodeName)&&Tn.href?0:Un}}}}),Gn.attrHooks.tabindex=Gn.propHooks.tabIndex,Yn={get:function get(Tn,Qn){var Dn,Hn=Gn.prop(Tn,Qn);return!0===Hn||"boolean"!=typeof Hn&&(Dn=Tn.getAttributeNode(Qn))&&!1!==Dn.nodeValue?Qn.toLowerCase():Un},set:function set(Tn,Un,Qn){var Dn;return!1===Un?Gn.removeAttr(Tn,Qn):((Dn=Gn.propFix[Qn]||Qn)in Tn&&(Tn[Dn]=!0),Tn.setAttribute(Qn,Qn.toLowerCase())),Qn}},ar||(Jn={name:!0,id:!0},Xn=Gn.valHooks.button={get:function get(Tn,Qn){var Dn;return(Dn=Tn.getAttributeNode(Qn))&&(Jn[Qn]?""!==Dn.nodeValue:Dn.specified)?Dn.nodeValue:Un},set:function set(Tn,Un,Dn){var Hn=Tn.getAttributeNode(Dn);return Hn||(Hn=Qn.createAttribute(Dn),Tn.setAttributeNode(Hn)),Hn.nodeValue=Un+""}},Gn.attrHooks.tabindex.set=Xn.set,Gn.each(["width","height"],(function(Tn,Un){Gn.attrHooks[Un]=Gn.extend(Gn.attrHooks[Un],{set:function set(Tn,Qn){if(""===Qn)return Tn.setAttribute(Un,"auto"),Qn}})})),Gn.attrHooks.contenteditable={get:Xn.get,set:function set(Tn,Un,Qn){""===Un&&(Un="false"),Xn.set(Tn,Un,Qn)}}),Gn.support.hrefNormalized||Gn.each(["href","src","width","height"],(function(Tn,Qn){Gn.attrHooks[Qn]=Gn.extend(Gn.attrHooks[Qn],{get:function get(Tn){var Dn=Tn.getAttribute(Qn,2);return null===Dn?Un:Dn}})})),Gn.support.style||(Gn.attrHooks.style={get:function get(Tn){return Tn.style.cssText.toLowerCase()||Un},set:function set(Tn,Un){return Tn.style.cssText=""+Un}}),Gn.support.optSelected||(Gn.propHooks.selected=Gn.extend(Gn.propHooks.selected,{get:function get(Tn){var Un=Tn.parentNode;return Un&&(Un.selectedIndex,Un.parentNode&&Un.parentNode.selectedIndex),null}})),Gn.support.enctype||(Gn.propFix.enctype="encoding"),Gn.support.checkOn||Gn.each(["radio","checkbox"],(function(){Gn.valHooks[this]={get:function get(Tn){return null===Tn.getAttribute("value")?"on":Tn.value}}})),Gn.each(["radio","checkbox"],(function(){Gn.valHooks[this]=Gn.extend(Gn.valHooks[this],{set:function set(Tn,Un){if(Gn.isArray(Un))return Tn.checked=Gn.inArray(Gn(Tn).val(),Un)>=0}})}));var or=/^(?:textarea|input|select)$/i,sr=/^([^\.]*)?(?:\.(.+))?$/,lr=/\bhover(\.\S+)?\b/,cr=/^key/,ur=/^(?:mouse|contextmenu)|click/,dr=/^(?:focusinfocus|focusoutblur)$/,hr=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,pr=function G(Tn){var Un=hr.exec(Tn);return Un&&(Un[1]=(Un[1]||"").toLowerCase(),Un[3]=Un[3]&&new RegExp("(?:^|\\s)"+Un[3]+"(?:\\s|$)")),Un},Ar=function H(Tn,Un){var Qn=Tn.attributes||{};return(!Un[1]||Tn.nodeName.toLowerCase()===Un[1])&&(!Un[2]||(Qn.id||{}).value===Un[2])&&(!Un[3]||Un[3].test((Qn.class||{}).value))},fr=function I(Tn){return Gn.event.special.hover?Tn:Tn.replace(lr,"mouseenter$1 mouseleave$1")};Gn.event={add:function add(Tn,Qn,Dn,Hn,zn){var Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr;if(3!==Tn.nodeType&&8!==Tn.nodeType&&Qn&&Dn&&(Vn=Gn._data(Tn))){for(Dn.handler&&(Dn=(er=Dn).handler),Dn.guid||(Dn.guid=Gn.guid++),(Wn=Vn.events)||(Vn.events=Wn={}),(Kn=Vn.handle)||(Vn.handle=Kn=function i(Tn){return void 0===Gn||Tn&&Gn.event.triggered===Tn.type?Un:Gn.event.dispatch.apply(Kn.elem,arguments)},Kn.elem=Tn),Qn=Gn.trim(fr(Qn)).split(" "),Xn=0;Xn<Qn.length;Xn++)Jn=(Yn=sr.exec(Qn[Xn])||[])[1],$n=(Yn[2]||"").split(".").sort(),nr=Gn.event.special[Jn]||{},Jn=(zn?nr.delegateType:nr.bindType)||Jn,nr=Gn.event.special[Jn]||{},Zn=Gn.extend({type:Jn,origType:Yn[1],data:Hn,handler:Dn,guid:Dn.guid,selector:zn,quick:pr(zn),namespace:$n.join(".")},er),(tr=Wn[Jn])||((tr=Wn[Jn]=[]).delegateCount=0,nr.setup&&!1!==nr.setup.call(Tn,Hn,$n,Kn)||(Tn.addEventListener?Tn.addEventListener(Jn,Kn,!1):Tn.attachEvent&&Tn.attachEvent("on"+Jn,Kn))),nr.add&&(nr.add.call(Tn,Zn),Zn.handler.guid||(Zn.handler.guid=Dn.guid)),zn?tr.splice(tr.delegateCount++,0,Zn):tr.push(Zn),Gn.event.global[Jn]=!0;Tn=null}},global:{},remove:function remove(Tn,Un,Qn,Dn,Hn){var zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr,rr=Gn.hasData(Tn)&&Gn._data(Tn);if(rr&&($n=rr.events)){for(Un=Gn.trim(fr(Un||"")).split(" "),zn=0;zn<Un.length;zn++)if(Kn=Wn=(Vn=sr.exec(Un[zn])||[])[1],Xn=Vn[2],Kn){for(Zn=Gn.event.special[Kn]||{},Yn=(tr=$n[Kn=(Dn?Zn.delegateType:Zn.bindType)||Kn]||[]).length,Xn=Xn?new RegExp("(^|\\.)"+Xn.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,Jn=0;Jn<tr.length;Jn++)nr=tr[Jn],(Hn||Wn===nr.origType)&&(!Qn||Qn.guid===nr.guid)&&(!Xn||Xn.test(nr.namespace))&&(!Dn||Dn===nr.selector||"**"===Dn&&nr.selector)&&(tr.splice(Jn--,1),nr.selector&&tr.delegateCount--,Zn.remove&&Zn.remove.call(Tn,nr));0===tr.length&&Yn!==tr.length&&((!Zn.teardown||!1===Zn.teardown.call(Tn,Xn))&&Gn.removeEvent(Tn,Kn,rr.handle),delete $n[Kn])}else for(Kn in $n)Gn.event.remove(Tn,Kn+Un[zn],Qn,Dn,!0);Gn.isEmptyObject($n)&&((er=rr.handle)&&(er.elem=null),Gn.removeData(Tn,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function trigger(Qn,Dn,Hn,zn){if(!Hn||3!==Hn.nodeType&&8!==Hn.nodeType){var Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr=Qn.type||Qn,rr=[];if(dr.test(nr+Gn.event.triggered))return;if(nr.indexOf("!")>=0&&(nr=nr.slice(0,-1),Kn=!0),nr.indexOf(".")>=0&&(rr=nr.split("."),nr=rr.shift(),rr.sort()),(!Hn||Gn.event.customEvent[nr])&&!Gn.event.global[nr])return;if((Qn="object"==_typeof(Qn)?Qn[Gn.expando]?Qn:new Gn.Event(nr,Qn):new Gn.Event(nr)).type=nr,Qn.isTrigger=!0,Qn.exclusive=Kn,Qn.namespace=rr.join("."),Qn.namespace_re=Qn.namespace?new RegExp("(^|\\.)"+rr.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,Jn=nr.indexOf(":")<0?"on"+nr:"",!Hn){for(Wn in Vn=Gn.cache)Vn[Wn].events&&Vn[Wn].events[nr]&&Gn.event.trigger(Qn,Dn,Vn[Wn].handle.elem,!0);return}if(Qn.result=Un,Qn.target||(Qn.target=Hn),(Dn=null!=Dn?Gn.makeArray(Dn):[]).unshift(Qn),($n=Gn.event.special[nr]||{}).trigger&&!1===$n.trigger.apply(Hn,Dn))return;if(er=[[Hn,$n.bindType||nr]],!zn&&!$n.noBubble&&!Gn.isWindow(Hn)){for(tr=$n.delegateType||nr,Xn=dr.test(tr+nr)?Hn:Hn.parentNode,Yn=null;Xn;Xn=Xn.parentNode)er.push([Xn,tr]),Yn=Xn;Yn&&Yn===Hn.ownerDocument&&er.push([Yn.defaultView||Yn.parentWindow||Tn,tr])}for(Wn=0;Wn<er.length&&!Qn.isPropagationStopped();Wn++)Xn=er[Wn][0],Qn.type=er[Wn][1],(Zn=(Gn._data(Xn,"events")||{})[Qn.type]&&Gn._data(Xn,"handle"))&&Zn.apply(Xn,Dn),(Zn=Jn&&Xn[Jn])&&Gn.acceptData(Xn)&&!1===Zn.apply(Xn,Dn)&&Qn.preventDefault();return Qn.type=nr,!zn&&!Qn.isDefaultPrevented()&&(!$n._default||!1===$n._default.apply(Hn.ownerDocument,Dn))&&("click"!==nr||!Gn.nodeName(Hn,"a"))&&Gn.acceptData(Hn)&&Jn&&Hn[nr]&&("focus"!==nr&&"blur"!==nr||0!==Qn.target.offsetWidth)&&!Gn.isWindow(Hn)&&((Yn=Hn[Jn])&&(Hn[Jn]=null),Gn.event.triggered=nr,Hn[nr](),Gn.event.triggered=Un,Yn&&(Hn[Jn]=Yn)),Qn.result}},dispatch:function dispatch(Qn){Qn=Gn.event.fix(Qn||Tn.event);var Dn,Hn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn=(Gn._data(this,"events")||{})[Qn.type]||[],er=Zn.delegateCount,tr=[].slice.call(arguments,0),nr=!Qn.exclusive&&!Qn.namespace,rr=[];if(tr[0]=Qn,Qn.delegateTarget=this,er&&!Qn.target.disabled&&(!Qn.button||"click"!==Qn.type))for((Vn=Gn(this)).context=this.ownerDocument||this,zn=Qn.target;zn!=this;zn=zn.parentNode||this){for(Wn={},Yn=[],Vn[0]=zn,Dn=0;Dn<er;Dn++)Wn[$n=(Jn=Zn[Dn]).selector]===Un&&(Wn[$n]=Jn.quick?Ar(zn,Jn.quick):Vn.is($n)),Wn[$n]&&Yn.push(Jn);Yn.length&&rr.push({elem:zn,matches:Yn})}for(Zn.length>er&&rr.push({elem:this,matches:Zn.slice(er)}),Dn=0;Dn<rr.length&&!Qn.isPropagationStopped();Dn++)for(Xn=rr[Dn],Qn.currentTarget=Xn.elem,Hn=0;Hn<Xn.matches.length&&!Qn.isImmediatePropagationStopped();Hn++)Jn=Xn.matches[Hn],(nr||!Qn.namespace&&!Jn.namespace||Qn.namespace_re&&Qn.namespace_re.test(Jn.namespace))&&(Qn.data=Jn.data,Qn.handleObj=Jn,(Kn=((Gn.event.special[Jn.origType]||{}).handle||Jn.handler).apply(Xn.elem,tr))!==Un&&(Qn.result=Kn,!1===Kn&&(Qn.preventDefault(),Qn.stopPropagation())));return Qn.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function filter(Tn,Un){return null==Tn.which&&(Tn.which=null!=Un.charCode?Un.charCode:Un.keyCode),Tn}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function filter(Tn,Dn){var Hn,Gn,zn,Vn=Dn.button,Kn=Dn.fromElement;return null==Tn.pageX&&null!=Dn.clientX&&(Gn=(Hn=Tn.target.ownerDocument||Qn).documentElement,zn=Hn.body,Tn.pageX=Dn.clientX+(Gn&&Gn.scrollLeft||zn&&zn.scrollLeft||0)-(Gn&&Gn.clientLeft||zn&&zn.clientLeft||0),Tn.pageY=Dn.clientY+(Gn&&Gn.scrollTop||zn&&zn.scrollTop||0)-(Gn&&Gn.clientTop||zn&&zn.clientTop||0)),!Tn.relatedTarget&&Kn&&(Tn.relatedTarget=Kn===Tn.target?Dn.toElement:Kn),!Tn.which&&Vn!==Un&&(Tn.which=1&Vn?1:2&Vn?3:4&Vn?2:0),Tn}},fix:function fix(Tn){if(Tn[Gn.expando])return Tn;var Dn,Hn,zn=Tn,Vn=Gn.event.fixHooks[Tn.type]||{},Kn=Vn.props?this.props.concat(Vn.props):this.props;for(Tn=Gn.Event(zn),Dn=Kn.length;Dn;)Tn[Hn=Kn[--Dn]]=zn[Hn];return Tn.target||(Tn.target=zn.srcElement||Qn),3===Tn.target.nodeType&&(Tn.target=Tn.target.parentNode),Tn.metaKey===Un&&(Tn.metaKey=Tn.ctrlKey),Vn.filter?Vn.filter(Tn,zn):Tn},special:{ready:{setup:Gn.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function setup(Tn,Un,Qn){Gn.isWindow(this)&&(this.onbeforeunload=Qn)},teardown:function teardown(Tn,Un){this.onbeforeunload===Un&&(this.onbeforeunload=null)}}},simulate:function simulate(Tn,Un,Qn,Dn){var Hn=Gn.extend(new Gn.Event,Qn,{type:Tn,isSimulated:!0,originalEvent:{}});Dn?Gn.event.trigger(Hn,null,Un):Gn.event.dispatch.call(Un,Hn),Hn.isDefaultPrevented()&&Qn.preventDefault()}},Gn.event.handle=Gn.event.dispatch,Gn.removeEvent=Qn.removeEventListener?function(Tn,Un,Qn){Tn.removeEventListener&&Tn.removeEventListener(Un,Qn,!1)}:function(Tn,Un,Qn){Tn.detachEvent&&Tn.detachEvent("on"+Un,Qn)},Gn.Event=function(Tn,Un){if(!(this instanceof Gn.Event))return new Gn.Event(Tn,Un);Tn&&Tn.type?(this.originalEvent=Tn,this.type=Tn.type,this.isDefaultPrevented=Tn.defaultPrevented||!1===Tn.returnValue||Tn.getPreventDefault&&Tn.getPreventDefault()?K:J):this.type=Tn,Un&&Gn.extend(this,Un),this.timeStamp=Tn&&Tn.timeStamp||Gn.now(),this[Gn.expando]=!0},Gn.Event.prototype={preventDefault:function preventDefault(){this.isDefaultPrevented=K;var Tn=this.originalEvent;!Tn||(Tn.preventDefault?Tn.preventDefault():Tn.returnValue=!1)},stopPropagation:function stopPropagation(){this.isPropagationStopped=K;var Tn=this.originalEvent;!Tn||(Tn.stopPropagation&&Tn.stopPropagation(),Tn.cancelBubble=!0)},stopImmediatePropagation:function stopImmediatePropagation(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},Gn.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(Tn,Un){Gn.event.special[Tn]={delegateType:Un,bindType:Un,handle:function handle(Tn){var Qn,Dn=this,Hn=Tn.relatedTarget,zn=Tn.handleObj;zn.selector;return Hn&&(Hn===Dn||Gn.contains(Dn,Hn))||(Tn.type=zn.origType,Qn=zn.handler.apply(this,arguments),Tn.type=Un),Qn}}})),Gn.support.submitBubbles||(Gn.event.special.submit={setup:function setup(){if(Gn.nodeName(this,"form"))return!1;Gn.event.add(this,"click._submit keypress._submit",(function(Tn){var Qn=Tn.target,Dn=Gn.nodeName(Qn,"input")||Gn.nodeName(Qn,"button")?Qn.form:Un;Dn&&!Dn._submit_attached&&(Gn.event.add(Dn,"submit._submit",(function(Tn){this.parentNode&&!Tn.isTrigger&&Gn.event.simulate("submit",this.parentNode,Tn,!0)})),Dn._submit_attached=!0)}))},teardown:function teardown(){if(Gn.nodeName(this,"form"))return!1;Gn.event.remove(this,"._submit")}}),Gn.support.changeBubbles||(Gn.event.special.change={setup:function setup(){if(or.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(Gn.event.add(this,"propertychange._change",(function(Tn){"checked"===Tn.originalEvent.propertyName&&(this._just_changed=!0)})),Gn.event.add(this,"click._change",(function(Tn){this._just_changed&&!Tn.isTrigger&&(this._just_changed=!1,Gn.event.simulate("change",this,Tn,!0))}))),!1;Gn.event.add(this,"beforeactivate._change",(function(Tn){var Un=Tn.target;or.test(Un.nodeName)&&!Un._change_attached&&(Gn.event.add(Un,"change._change",(function(Tn){this.parentNode&&!Tn.isSimulated&&!Tn.isTrigger&&Gn.event.simulate("change",this.parentNode,Tn,!0)})),Un._change_attached=!0)}))},handle:function handle(Tn){var Un=Tn.target;if(this!==Un||Tn.isSimulated||Tn.isTrigger||"radio"!==Un.type&&"checkbox"!==Un.type)return Tn.handleObj.handler.apply(this,arguments)},teardown:function teardown(){return Gn.event.remove(this,"._change"),or.test(this.nodeName)}}),Gn.support.focusinBubbles||Gn.each({focus:"focusin",blur:"focusout"},(function(Tn,Un){var Dn=0,Hn=function e(Tn){Gn.event.simulate(Un,Tn.target,Gn.event.fix(Tn),!0)};Gn.event.special[Un]={setup:function setup(){0==Dn++&&Qn.addEventListener(Tn,Hn,!0)},teardown:function teardown(){0==--Dn&&Qn.removeEventListener(Tn,Hn,!0)}}})),Gn.fn.extend({on:function on(Tn,Qn,Dn,Hn,zn){var Vn,Kn;if("object"==_typeof(Tn)){for(Kn in"string"!=typeof Qn&&(Dn=Qn,Qn=Un),Tn)this.on(Kn,Qn,Dn,Tn[Kn],zn);return this}if(null==Dn&&null==Hn?(Hn=Qn,Dn=Qn=Un):null==Hn&&("string"==typeof Qn?(Hn=Dn,Dn=Un):(Hn=Dn,Dn=Qn,Qn=Un)),!1===Hn)Hn=J;else if(!Hn)return this;return 1===zn&&(Vn=Hn,(Hn=function e(Tn){return Gn().off(Tn),Vn.apply(this,arguments)}).guid=Vn.guid||(Vn.guid=Gn.guid++)),this.each((function(){Gn.event.add(this,Tn,Hn,Dn,Qn)}))},one:function one(Tn,Un,Qn,Dn){return this.on.call(this,Tn,Un,Qn,Dn,1)},off:function off(Tn,Qn,Dn){if(Tn&&Tn.preventDefault&&Tn.handleObj){var Hn=Tn.handleObj;return Gn(Tn.delegateTarget).off(Hn.namespace?Hn.type+"."+Hn.namespace:Hn.type,Hn.selector,Hn.handler),this}if("object"==_typeof(Tn)){for(var zn in Tn)this.off(zn,Qn,Tn[zn]);return this}return!1!==Qn&&"function"!=typeof Qn||(Dn=Qn,Qn=Un),!1===Dn&&(Dn=J),this.each((function(){Gn.event.remove(this,Tn,Dn,Qn)}))},bind:function bind(Tn,Un,Qn){return this.on(Tn,null,Un,Qn)},unbind:function unbind(Tn,Un){return this.off(Tn,null,Un)},live:function live(Tn,Un,Qn){return Gn(this.context).on(Tn,this.selector,Un,Qn),this},die:function die(Tn,Un){return Gn(this.context).off(Tn,this.selector||"**",Un),this},delegate:function delegate(Tn,Un,Qn,Dn){return this.on(Un,Tn,Qn,Dn)},undelegate:function undelegate(Tn,Un,Qn){return 1==arguments.length?this.off(Tn,"**"):this.off(Un,Tn,Qn)},trigger:function trigger(Tn,Un){return this.each((function(){Gn.event.trigger(Tn,Un,this)}))},triggerHandler:function triggerHandler(Tn,Un){if(this[0])return Gn.event.trigger(Tn,Un,this[0],!0)},toggle:function toggle(Tn){var Un=arguments,Qn=Tn.guid||Gn.guid++,Dn=0,Hn=function e(Qn){var e=(Gn._data(this,"lastToggle"+Tn.guid)||0)%Dn;return Gn._data(this,"lastToggle"+Tn.guid,e+1),Qn.preventDefault(),Un[e].apply(this,arguments)||!1};for(Hn.guid=Qn;Dn<Un.length;)Un[Dn++].guid=Qn;return this.click(Hn)},hover:function hover(Tn,Un){return this.mouseenter(Tn).mouseleave(Un||Tn)}}),Gn.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(Tn,Un){Gn.fn[Un]=function(Tn,Qn){return null==Qn&&(Qn=Tn,Tn=null),arguments.length>0?this.on(Un,null,Tn,Qn):this.trigger(Un)},Gn.attrFn&&(Gn.attrFn[Un]=!0),cr.test(Un)&&(Gn.event.fixHooks[Un]=Gn.event.keyHooks),ur.test(Un)&&(Gn.event.fixHooks[Un]=Gn.event.mouseHooks)})),function(){function x(Tn,Un,Qn,Hn,Gn,zn){for(var Vn=0,Kn=Hn.length;Vn<Kn;Vn++){var Wn=Hn[Vn];if(Wn){var Xn=!1;for(Wn=Wn[Tn];Wn;){if(Wn[Dn]===Qn){Xn=Hn[Wn.sizset];break}if(1===Wn.nodeType)if(zn||(Wn[Dn]=Qn,Wn.sizset=Vn),"string"!=typeof Un){if(Wn===Un){Xn=!0;break}}else if(Jn.filter(Un,[Wn]).length>0){Xn=Wn;break}Wn=Wn[Tn]}Hn[Vn]=Xn}}}function w(Tn,Un,Qn,Hn,Gn,zn){for(var Vn=0,Kn=Hn.length;Vn<Kn;Vn++){var Wn=Hn[Vn];if(Wn){var Xn=!1;for(Wn=Wn[Tn];Wn;){if(Wn[Dn]===Qn){Xn=Hn[Wn.sizset];break}if(1===Wn.nodeType&&!zn&&(Wn[Dn]=Qn,Wn.sizset=Vn),Wn.nodeName.toLowerCase()===Un){Xn=Wn;break}Wn=Wn[Tn]}Hn[Vn]=Xn}}}var Tn=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Dn="sizcache"+(Math.random()+"").replace(".",""),Hn=0,zn=Object.prototype.toString,Vn=!1,Kn=!0,Wn=/\\/g,Xn=/\r\n/g,Yn=/\W/;[0,0].sort((function(){return Kn=!1,0}));var Jn=function m(Un,Dn,Hn,Gn){Hn=Hn||[];var Vn=Dn=Dn||Qn;if(1!==Dn.nodeType&&9!==Dn.nodeType)return[];if(!Un||"string"!=typeof Un)return Hn;var Kn,Wn,Xn,Yn,$n,tr,nr,rr,ir=!0,sr=Jn.isXML(Dn),lr=[],cr=Un;do{if(Tn.exec(""),(Kn=Tn.exec(cr))&&(cr=Kn[3],lr.push(Kn[1]),Kn[2])){Yn=Kn[3];break}}while(Kn);if(lr.length>1&&er.exec(Un))if(2===lr.length&&Zn.relative[lr[0]])Wn=or(lr[0]+lr[1],Dn,Gn);else for(Wn=Zn.relative[lr[0]]?[Dn]:Jn(lr.shift(),Dn);lr.length;)Un=lr.shift(),Zn.relative[Un]&&(Un+=lr.shift()),Wn=or(Un,Wn,Gn);else if(!Gn&&lr.length>1&&9===Dn.nodeType&&!sr&&Zn.match.ID.test(lr[0])&&!Zn.match.ID.test(lr[lr.length-1])&&(Dn=($n=Jn.find(lr.shift(),Dn,sr)).expr?Jn.filter($n.expr,$n.set)[0]:$n.set[0]),Dn)for(Wn=($n=Gn?{expr:lr.pop(),set:ar(Gn)}:Jn.find(lr.pop(),1!==lr.length||"~"!==lr[0]&&"+"!==lr[0]||!Dn.parentNode?Dn:Dn.parentNode,sr)).expr?Jn.filter($n.expr,$n.set):$n.set,lr.length>0?Xn=ar(Wn):ir=!1;lr.length;)nr=tr=lr.pop(),Zn.relative[tr]?nr=lr.pop():tr="",null==nr&&(nr=Dn),Zn.relative[tr](Xn,nr,sr);else Xn=lr=[];if(Xn||(Xn=Wn),Xn||Jn.error(tr||Un),"[object Array]"===zn.call(Xn))if(ir)if(Dn&&1===Dn.nodeType)for(rr=0;null!=Xn[rr];rr++)Xn[rr]&&(!0===Xn[rr]||1===Xn[rr].nodeType&&Jn.contains(Dn,Xn[rr]))&&Hn.push(Wn[rr]);else for(rr=0;null!=Xn[rr];rr++)Xn[rr]&&1===Xn[rr].nodeType&&Hn.push(Wn[rr]);else Hn.push.apply(Hn,Xn);else ar(Xn,Hn);return Yn&&(Jn(Yn,Vn,Hn,Gn),Jn.uniqueSort(Hn)),Hn};Jn.uniqueSort=function(Tn){if(rr&&(Vn=Kn,Tn.sort(rr),Vn))for(var Un=1;Un<Tn.length;Un++)Tn[Un]===Tn[Un-1]&&Tn.splice(Un--,1);return Tn},Jn.matches=function(Tn,Un){return Jn(Tn,null,null,Un)},Jn.matchesSelector=function(Tn,Un){return Jn(Un,null,null,[Tn]).length>0},Jn.find=function(Tn,Un,Qn){var Dn,Hn,Gn,zn,Vn,Kn;if(!Tn)return[];for(Hn=0,Gn=Zn.order.length;Hn<Gn;Hn++)if(Vn=Zn.order[Hn],(zn=Zn.leftMatch[Vn].exec(Tn))&&(Kn=zn[1],zn.splice(1,1),"\\"!==Kn.substr(Kn.length-1)&&(zn[1]=(zn[1]||"").replace(Wn,""),null!=(Dn=Zn.find[Vn](zn,Un,Qn))))){Tn=Tn.replace(Zn.match[Vn],"");break}return Dn||(Dn=void 0!==Un.getElementsByTagName?Un.getElementsByTagName("*"):[]),{set:Dn,expr:Tn}},Jn.filter=function(Tn,Qn,Dn,Hn){for(var Gn,zn,Vn,Kn,Wn,Xn,Yn,$n,er,tr=Tn,nr=[],rr=Qn,ir=Qn&&Qn[0]&&Jn.isXML(Qn[0]);Tn&&Qn.length;){for(Vn in Zn.filter)if(null!=(Gn=Zn.leftMatch[Vn].exec(Tn))&&Gn[2]){if(Xn=Zn.filter[Vn],Yn=Gn[1],zn=!1,Gn.splice(1,1),"\\"===Yn.substr(Yn.length-1))continue;if(rr===nr&&(nr=[]),Zn.preFilter[Vn])if(Gn=Zn.preFilter[Vn](Gn,rr,Dn,nr,Hn,ir)){if(!0===Gn)continue}else zn=Kn=!0;if(Gn)for($n=0;null!=(Wn=rr[$n]);$n++)Wn&&(er=Hn^(Kn=Xn(Wn,Gn,$n,rr)),Dn&&null!=Kn?er?zn=!0:rr[$n]=!1:er&&(nr.push(Wn),zn=!0));if(Kn!==Un){if(Dn||(rr=nr),Tn=Tn.replace(Zn.match[Vn],""),!zn)return[];break}}if(Tn===tr){if(null!=zn)break;Jn.error(Tn)}tr=Tn}return rr},Jn.error=function(Tn){throw new Error("Syntax error, unrecognized expression: "+Tn)};var $n=Jn.getText=function(Tn){var Un,Qn,Dn=Tn.nodeType,Hn="";if(Dn){if(1===Dn||9===Dn){if("string"==typeof Tn.textContent)return Tn.textContent;if("string"==typeof Tn.innerText)return Tn.innerText.replace(Xn,"");for(Tn=Tn.firstChild;Tn;Tn=Tn.nextSibling)Hn+=$n(Tn)}else if(3===Dn||4===Dn)return Tn.nodeValue}else for(Un=0;Qn=Tn[Un];Un++)8!==Qn.nodeType&&(Hn+=$n(Qn));return Hn},Zn=Jn.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function href(Tn){return Tn.getAttribute("href")},type:function type(Tn){return Tn.getAttribute("type")}},relative:{"+":function _(Tn,Un){var Qn="string"==typeof Un,Dn=Qn&&!Yn.test(Un),Hn=Qn&&!Dn;Dn&&(Un=Un.toLowerCase());for(var Gn,zn=0,Vn=Tn.length;zn<Vn;zn++)if(Gn=Tn[zn]){for(;(Gn=Gn.previousSibling)&&1!==Gn.nodeType;);Tn[zn]=Hn||Gn&&Gn.nodeName.toLowerCase()===Un?Gn||!1:Gn===Un}Hn&&Jn.filter(Un,Tn,!0)},">":function _(Tn,Un){var Qn,Dn="string"==typeof Un,Hn=0,Gn=Tn.length;if(Dn&&!Yn.test(Un)){for(Un=Un.toLowerCase();Hn<Gn;Hn++)if(Qn=Tn[Hn]){var zn=Qn.parentNode;Tn[Hn]=zn.nodeName.toLowerCase()===Un&&zn}}else{for(;Hn<Gn;Hn++)(Qn=Tn[Hn])&&(Tn[Hn]=Dn?Qn.parentNode:Qn.parentNode===Un);Dn&&Jn.filter(Un,Tn,!0)}},"":function _(Tn,Un,Qn){var Dn,Gn=Hn++,zn=x;"string"==typeof Un&&!Yn.test(Un)&&(Dn=Un=Un.toLowerCase(),zn=w),zn("parentNode",Un,Gn,Tn,Dn,Qn)},"~":function _(Tn,Un,Qn){var Dn,Gn=Hn++,zn=x;"string"==typeof Un&&!Yn.test(Un)&&(Dn=Un=Un.toLowerCase(),zn=w),zn("previousSibling",Un,Gn,Tn,Dn,Qn)}},find:{ID:function ID(Tn,Un,Qn){if(void 0!==Un.getElementById&&!Qn){var Dn=Un.getElementById(Tn[1]);return Dn&&Dn.parentNode?[Dn]:[]}},NAME:function NAME(Tn,Un){if(void 0!==Un.getElementsByName){for(var Qn=[],Dn=Un.getElementsByName(Tn[1]),Hn=0,Gn=Dn.length;Hn<Gn;Hn++)Dn[Hn].getAttribute("name")===Tn[1]&&Qn.push(Dn[Hn]);return 0===Qn.length?null:Qn}},TAG:function TAG(Tn,Un){if(void 0!==Un.getElementsByTagName)return Un.getElementsByTagName(Tn[1])}},preFilter:{CLASS:function CLASS(Tn,Un,Qn,Dn,Hn,Gn){if(Tn=" "+Tn[1].replace(Wn,"")+" ",Gn)return Tn;for(var zn,Vn=0;null!=(zn=Un[Vn]);Vn++)zn&&(Hn^(zn.className&&(" "+zn.className+" ").replace(/[\t\n\r]/g," ").indexOf(Tn)>=0)?Qn||Dn.push(zn):Qn&&(Un[Vn]=!1));return!1},ID:function ID(Tn){return Tn[1].replace(Wn,"")},TAG:function TAG(Tn,Un){return Tn[1].replace(Wn,"").toLowerCase()},CHILD:function CHILD(Tn){if("nth"===Tn[1]){Tn[2]||Jn.error(Tn[0]),Tn[2]=Tn[2].replace(/^\+|\s*/g,"");var Un=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===Tn[2]?"2n":"odd"===Tn[2]&&"2n+1")||!/\D/.test(Tn[2])&&"0n+"+Tn[2]||Tn[2]);Tn[2]=Un[1]+(Un[2]||1)-0,Tn[3]=Un[3]-0}else Tn[2]&&Jn.error(Tn[0]);return Tn[0]=Hn++,Tn},ATTR:function ATTR(Tn,Un,Qn,Dn,Hn,Gn){var zn=Tn[1]=Tn[1].replace(Wn,"");return!Gn&&Zn.attrMap[zn]&&(Tn[1]=Zn.attrMap[zn]),Tn[4]=(Tn[4]||Tn[5]||"").replace(Wn,""),"~="===Tn[2]&&(Tn[4]=" "+Tn[4]+" "),Tn},PSEUDO:function PSEUDO(Un,Qn,Dn,Hn,Gn){if("not"===Un[1]){if(!((Tn.exec(Un[3])||"").length>1||/^\w/.test(Un[3]))){var zn=Jn.filter(Un[3],Qn,Dn,!0^Gn);return Dn||Hn.push.apply(Hn,zn),!1}Un[3]=Jn(Un[3],null,null,Qn)}else if(Zn.match.POS.test(Un[0])||Zn.match.CHILD.test(Un[0]))return!0;return Un},POS:function POS(Tn){return Tn.unshift(!0),Tn}},filters:{enabled:function enabled(Tn){return!1===Tn.disabled&&"hidden"!==Tn.type},disabled:function disabled(Tn){return!0===Tn.disabled},checked:function checked(Tn){return!0===Tn.checked},selected:function selected(Tn){return Tn.parentNode&&Tn.parentNode.selectedIndex,!0===Tn.selected},parent:function parent(Tn){return!!Tn.firstChild},empty:function empty(Tn){return!Tn.firstChild},has:function has(Tn,Un,Qn){return!!Jn(Qn[3],Tn).length},header:function header(Tn){return/h\d/i.test(Tn.nodeName)},text:function text(Tn){var Un=Tn.getAttribute("type"),Qn=Tn.type;return"input"===Tn.nodeName.toLowerCase()&&"text"===Qn&&(Un===Qn||null===Un)},radio:function radio(Tn){return"input"===Tn.nodeName.toLowerCase()&&"radio"===Tn.type},checkbox:function checkbox(Tn){return"input"===Tn.nodeName.toLowerCase()&&"checkbox"===Tn.type},file:function file(Tn){return"input"===Tn.nodeName.toLowerCase()&&"file"===Tn.type},password:function password(Tn){return"input"===Tn.nodeName.toLowerCase()&&"password"===Tn.type},submit:function submit(Tn){var Un=Tn.nodeName.toLowerCase();return("input"===Un||"button"===Un)&&"submit"===Tn.type},image:function image(Tn){return"input"===Tn.nodeName.toLowerCase()&&"image"===Tn.type},reset:function reset(Tn){var Un=Tn.nodeName.toLowerCase();return("input"===Un||"button"===Un)&&"reset"===Tn.type},button:function button(Tn){var Un=Tn.nodeName.toLowerCase();return"input"===Un&&"button"===Tn.type||"button"===Un},input:function input(Tn){return/input|select|textarea|button/i.test(Tn.nodeName)},focus:function focus(Tn){return Tn===Tn.ownerDocument.activeElement}},setFilters:{first:function first(Tn,Un){return 0===Un},last:function last(Tn,Un,Qn,Dn){return Un===Dn.length-1},even:function even(Tn,Un){return Un%2==0},odd:function odd(Tn,Un){return Un%2==1},lt:function lt(Tn,Un,Qn){return Un<Qn[3]-0},gt:function gt(Tn,Un,Qn){return Un>Qn[3]-0},nth:function nth(Tn,Un,Qn){return Qn[3]-0===Un},eq:function eq(Tn,Un,Qn){return Qn[3]-0===Un}},filter:{PSEUDO:function PSEUDO(Tn,Un,Qn,Dn){var Hn=Un[1],Gn=Zn.filters[Hn];if(Gn)return Gn(Tn,Qn,Un,Dn);if("contains"===Hn)return(Tn.textContent||Tn.innerText||$n([Tn])||"").indexOf(Un[3])>=0;if("not"===Hn){for(var zn=Un[3],Vn=0,Kn=zn.length;Vn<Kn;Vn++)if(zn[Vn]===Tn)return!1;return!0}Jn.error(Hn)},CHILD:function CHILD(Tn,Un){var Qn,Hn,Gn,zn,Vn,Kn,Wn=Un[1],Xn=Tn;switch(Wn){case"only":case"first":for(;Xn=Xn.previousSibling;)if(1===Xn.nodeType)return!1;if("first"===Wn)return!0;Xn=Tn;case"last":for(;Xn=Xn.nextSibling;)if(1===Xn.nodeType)return!1;return!0;case"nth":if(Qn=Un[2],Hn=Un[3],1===Qn&&0===Hn)return!0;if(Gn=Un[0],(zn=Tn.parentNode)&&(zn[Dn]!==Gn||!Tn.nodeIndex)){for(Vn=0,Xn=zn.firstChild;Xn;Xn=Xn.nextSibling)1===Xn.nodeType&&(Xn.nodeIndex=++Vn);zn[Dn]=Gn}return Kn=Tn.nodeIndex-Hn,0===Qn?0===Kn:Kn%Qn==0&&Kn/Qn>=0}},ID:function ID(Tn,Un){return 1===Tn.nodeType&&Tn.getAttribute("id")===Un},TAG:function TAG(Tn,Un){return"*"===Un&&1===Tn.nodeType||!!Tn.nodeName&&Tn.nodeName.toLowerCase()===Un},CLASS:function CLASS(Tn,Un){return(" "+(Tn.className||Tn.getAttribute("class"))+" ").indexOf(Un)>-1},ATTR:function ATTR(Tn,Un){var Qn=Un[1],Dn=Jn.attr?Jn.attr(Tn,Qn):Zn.attrHandle[Qn]?Zn.attrHandle[Qn](Tn):null!=Tn[Qn]?Tn[Qn]:Tn.getAttribute(Qn),Hn=Dn+"",Gn=Un[2],zn=Un[4];return null==Dn?"!="===Gn:!Gn&&Jn.attr?null!=Dn:"="===Gn?Hn===zn:"*="===Gn?Hn.indexOf(zn)>=0:"~="===Gn?(" "+Hn+" ").indexOf(zn)>=0:zn?"!="===Gn?Hn!==zn:"^="===Gn?0===Hn.indexOf(zn):"$="===Gn?Hn.substr(Hn.length-zn.length)===zn:"|="===Gn&&(Hn===zn||Hn.substr(0,zn.length+1)===zn+"-"):Hn&&!1!==Dn},POS:function POS(Tn,Un,Qn,Dn){var Hn=Un[2],Gn=Zn.setFilters[Hn];if(Gn)return Gn(Tn,Qn,Un,Dn)}}},er=Zn.match.POS,tr=function q(Tn,Un){return"\\"+(Un-0+1)};for(var nr in Zn.match)Zn.match[nr]=new RegExp(Zn.match[nr].source+/(?![^\[]*\])(?![^\(]*\))/.source),Zn.leftMatch[nr]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Zn.match[nr].source.replace(/\\(\d+)/g,tr));var rr,ir,ar=function s(Tn,Un){return Tn=Array.prototype.slice.call(Tn,0),Un?(Un.push.apply(Un,Tn),Un):Tn};try{Array.prototype.slice.call(Qn.documentElement.childNodes,0)[0].nodeType}catch(Tn){ar=function s(Tn,Un){var Qn=0,Dn=Un||[];if("[object Array]"===zn.call(Tn))Array.prototype.push.apply(Dn,Tn);else if("number"==typeof Tn.length)for(var Hn=Tn.length;Qn<Hn;Qn++)Dn.push(Tn[Qn]);else for(;Tn[Qn];Qn++)Dn.push(Tn[Qn]);return Dn}}Qn.documentElement.compareDocumentPosition?rr=function u(Tn,Un){return Tn===Un?(Vn=!0,0):Tn.compareDocumentPosition&&Un.compareDocumentPosition?4&Tn.compareDocumentPosition(Un)?-1:1:Tn.compareDocumentPosition?-1:1}:(rr=function u(Tn,Un){if(Tn===Un)return Vn=!0,0;if(Tn.sourceIndex&&Un.sourceIndex)return Tn.sourceIndex-Un.sourceIndex;var Qn,Dn,Hn=[],Gn=[],zn=Tn.parentNode,Kn=Un.parentNode,Wn=zn;if(zn===Kn)return ir(Tn,Un);if(!zn)return-1;if(!Kn)return 1;for(;Wn;)Hn.unshift(Wn),Wn=Wn.parentNode;for(Wn=Kn;Wn;)Gn.unshift(Wn),Wn=Wn.parentNode;Qn=Hn.length,Dn=Gn.length;for(var Xn=0;Xn<Qn&&Xn<Dn;Xn++)if(Hn[Xn]!==Gn[Xn])return ir(Hn[Xn],Gn[Xn]);return Xn===Qn?ir(Tn,Gn[Xn],-1):ir(Hn[Xn],Un,1)},ir=function v(Tn,Un,Qn){if(Tn===Un)return Qn;for(var Dn=Tn.nextSibling;Dn;){if(Dn===Un)return-1;Dn=Dn.nextSibling}return 1}),function(){var Tn=Qn.createElement("div"),Dn="script"+(new Date).getTime(),Hn=Qn.documentElement;Tn.innerHTML="<a name='"+Dn+"'/>",Hn.insertBefore(Tn,Hn.firstChild),Qn.getElementById(Dn)&&(Zn.find.ID=function(Tn,Qn,Dn){if(void 0!==Qn.getElementById&&!Dn){var Hn=Qn.getElementById(Tn[1]);return Hn?Hn.id===Tn[1]||void 0!==Hn.getAttributeNode&&Hn.getAttributeNode("id").nodeValue===Tn[1]?[Hn]:Un:[]}},Zn.filter.ID=function(Tn,Un){var Qn=void 0!==Tn.getAttributeNode&&Tn.getAttributeNode("id");return 1===Tn.nodeType&&Qn&&Qn.nodeValue===Un}),Hn.removeChild(Tn),Hn=Tn=null}(),function(){var Tn=Qn.createElement("div");Tn.appendChild(Qn.createComment("")),Tn.getElementsByTagName("*").length>0&&(Zn.find.TAG=function(Tn,Un){var Qn=Un.getElementsByTagName(Tn[1]);if("*"===Tn[1]){for(var Dn=[],Hn=0;Qn[Hn];Hn++)1===Qn[Hn].nodeType&&Dn.push(Qn[Hn]);Qn=Dn}return Qn}),Tn.innerHTML="<a href='#'></a>",Tn.firstChild&&void 0!==Tn.firstChild.getAttribute&&"#"!==Tn.firstChild.getAttribute("href")&&(Zn.attrHandle.href=function(Tn){return Tn.getAttribute("href",2)}),Tn=null}(),Qn.querySelectorAll&&function(){var Tn=Jn,Un=Qn.createElement("div");if(Un.innerHTML="<p class='TEST'></p>",!Un.querySelectorAll||0!==Un.querySelectorAll(".TEST").length){for(var Dn in Jn=function _m(Un,Dn,Hn,Gn){if(Dn=Dn||Qn,!Gn&&!Jn.isXML(Dn)){var zn=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(Un);if(zn&&(1===Dn.nodeType||9===Dn.nodeType)){if(zn[1])return ar(Dn.getElementsByTagName(Un),Hn);if(zn[2]&&Zn.find.CLASS&&Dn.getElementsByClassName)return ar(Dn.getElementsByClassName(zn[2]),Hn)}if(9===Dn.nodeType){if("body"===Un&&Dn.body)return ar([Dn.body],Hn);if(zn&&zn[3]){var Vn=Dn.getElementById(zn[3]);if(!Vn||!Vn.parentNode)return ar([],Hn);if(Vn.id===zn[3])return ar([Vn],Hn)}try{return ar(Dn.querySelectorAll(Un),Hn)}catch(Tn){}}else if(1===Dn.nodeType&&"object"!==Dn.nodeName.toLowerCase()){var Kn=Dn,Wn=Dn.getAttribute("id"),Xn=Wn||"__sizzle__",Yn=Dn.parentNode,$n=/^\s*[+~]/.test(Un);Wn?Xn=Xn.replace(/'/g,"\\$&"):Dn.setAttribute("id",Xn),$n&&Yn&&(Dn=Dn.parentNode);try{if(!$n||Yn)return ar(Dn.querySelectorAll("[id='"+Xn+"'] "+Un),Hn)}catch(Tn){}finally{Wn||Kn.removeAttribute("id")}}}return Tn(Un,Dn,Hn,Gn)},Tn)Jn[Dn]=Tn[Dn];Un=null}}(),function(){var Tn=Qn.documentElement,Un=Tn.matchesSelector||Tn.mozMatchesSelector||Tn.webkitMatchesSelector||Tn.msMatchesSelector;if(Un){var Dn=!Un.call(Qn.createElement("div"),"div"),Hn=!1;try{Un.call(Qn.documentElement,"[test!='']:sizzle")}catch(Tn){Hn=!0}Jn.matchesSelector=function(Tn,Qn){if(Qn=Qn.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!Jn.isXML(Tn))try{if(Hn||!Zn.match.PSEUDO.test(Qn)&&!/!=/.test(Qn)){var Gn=Un.call(Tn,Qn);if(Gn||!Dn||Tn.document&&11!==Tn.document.nodeType)return Gn}}catch(Tn){}return Jn(Qn,null,null,[Tn]).length>0}}}(),function(){var Tn=Qn.createElement("div");if(Tn.innerHTML="<div class='test e'></div><div class='test'></div>",Tn.getElementsByClassName&&0!==Tn.getElementsByClassName("e").length){if(Tn.lastChild.className="e",1===Tn.getElementsByClassName("e").length)return;Zn.order.splice(1,0,"CLASS"),Zn.find.CLASS=function(Tn,Un,Qn){if(void 0!==Un.getElementsByClassName&&!Qn)return Un.getElementsByClassName(Tn[1])},Tn=null}}(),Qn.documentElement.contains?Jn.contains=function(Tn,Un){return Tn!==Un&&(!Tn.contains||Tn.contains(Un))}:Qn.documentElement.compareDocumentPosition?Jn.contains=function(Tn,Un){return!!(16&Tn.compareDocumentPosition(Un))}:Jn.contains=function(){return!1},Jn.isXML=function(Tn){var Un=(Tn?Tn.ownerDocument||Tn:0).documentElement;return!!Un&&"HTML"!==Un.nodeName};var or=function y(Tn,Un,Qn){for(var Dn,Hn=[],Gn="",zn=Un.nodeType?[Un]:Un;Dn=Zn.match.PSEUDO.exec(Tn);)Gn+=Dn[0],Tn=Tn.replace(Zn.match.PSEUDO,"");Tn=Zn.relative[Tn]?Tn+"*":Tn;for(var Vn=0,Kn=zn.length;Vn<Kn;Vn++)Jn(Tn,zn[Vn],Hn,Qn);return Jn.filter(Gn,Hn)};Jn.attr=Gn.attr,Jn.selectors.attrMap={},Gn.find=Jn,Gn.expr=Jn.selectors,Gn.expr[":"]=Gn.expr.filters,Gn.unique=Jn.uniqueSort,Gn.text=Jn.getText,Gn.isXMLDoc=Jn.isXML,Gn.contains=Jn.contains}();var gr=/Until$/,mr=/^(?:parents|prevUntil|prevAll)/,_r=/,/,vr=/^.[^:#\[\.,]*$/,yr=Array.prototype.slice,br=Gn.expr.match.POS,wr={children:!0,contents:!0,next:!0,prev:!0};Gn.fn.extend({find:function find(Tn){var Un,Qn,Dn=this;if("string"!=typeof Tn)return Gn(Tn).filter((function(){for(Un=0,Qn=Dn.length;Un<Qn;Un++)if(Gn.contains(Dn[Un],this))return!0}));var Hn,zn,Vn,Kn=this.pushStack("","find",Tn);for(Un=0,Qn=this.length;Un<Qn;Un++)if(Hn=Kn.length,Gn.find(Tn,this[Un],Kn),Un>0)for(zn=Hn;zn<Kn.length;zn++)for(Vn=0;Vn<Hn;Vn++)if(Kn[Vn]===Kn[zn]){Kn.splice(zn--,1);break}return Kn},has:function has(Tn){var Un=Gn(Tn);return this.filter((function(){for(var Tn=0,Qn=Un.length;Tn<Qn;Tn++)if(Gn.contains(this,Un[Tn]))return!0}))},not:function not(Tn){return this.pushStack(T(this,Tn,!1),"not",Tn)},filter:function filter(Tn){return this.pushStack(T(this,Tn,!0),"filter",Tn)},is:function is(Tn){return!!Tn&&("string"==typeof Tn?br.test(Tn)?Gn(Tn,this.context).index(this[0])>=0:Gn.filter(Tn,this).length>0:this.filter(Tn).length>0)},closest:function closest(Tn,Un){var Qn,Dn,Hn=[],zn=this[0];if(Gn.isArray(Tn)){for(var Vn=1;zn&&zn.ownerDocument&&zn!==Un;){for(Qn=0;Qn<Tn.length;Qn++)Gn(zn).is(Tn[Qn])&&Hn.push({selector:Tn[Qn],elem:zn,level:Vn});zn=zn.parentNode,Vn++}return Hn}var Kn=br.test(Tn)||"string"!=typeof Tn?Gn(Tn,Un||this.context):0;for(Qn=0,Dn=this.length;Qn<Dn;Qn++)for(zn=this[Qn];zn;){if(Kn?Kn.index(zn)>-1:Gn.find.matchesSelector(zn,Tn)){Hn.push(zn);break}if(!(zn=zn.parentNode)||!zn.ownerDocument||zn===Un||11===zn.nodeType)break}return Hn=Hn.length>1?Gn.unique(Hn):Hn,this.pushStack(Hn,"closest",Tn)},index:function index(Tn){return Tn?"string"==typeof Tn?Gn.inArray(this[0],Gn(Tn)):Gn.inArray(Tn.jquery?Tn[0]:Tn,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function add(Tn,Un){var Qn="string"==typeof Tn?Gn(Tn,Un):Gn.makeArray(Tn&&Tn.nodeType?[Tn]:Tn),Dn=Gn.merge(this.get(),Qn);return this.pushStack(S(Qn[0])||S(Dn[0])?Dn:Gn.unique(Dn))},andSelf:function andSelf(){return this.add(this.prevObject)}}),Gn.each({parent:function parent(Tn){var Un=Tn.parentNode;return Un&&11!==Un.nodeType?Un:null},parents:function parents(Tn){return Gn.dir(Tn,"parentNode")},parentsUntil:function parentsUntil(Tn,Un,Qn){return Gn.dir(Tn,"parentNode",Qn)},next:function next(Tn){return Gn.nth(Tn,2,"nextSibling")},prev:function prev(Tn){return Gn.nth(Tn,2,"previousSibling")},nextAll:function nextAll(Tn){return Gn.dir(Tn,"nextSibling")},prevAll:function prevAll(Tn){return Gn.dir(Tn,"previousSibling")},nextUntil:function nextUntil(Tn,Un,Qn){return Gn.dir(Tn,"nextSibling",Qn)},prevUntil:function prevUntil(Tn,Un,Qn){return Gn.dir(Tn,"previousSibling",Qn)},siblings:function siblings(Tn){return Gn.sibling(Tn.parentNode.firstChild,Tn)},children:function children(Tn){return Gn.sibling(Tn.firstChild)},contents:function contents(Tn){return Gn.nodeName(Tn,"iframe")?Tn.contentDocument||Tn.contentWindow.document:Gn.makeArray(Tn.childNodes)}},(function(Tn,Un){Gn.fn[Tn]=function(Qn,Dn){var Hn=Gn.map(this,Un,Qn);return gr.test(Tn)||(Dn=Qn),Dn&&"string"==typeof Dn&&(Hn=Gn.filter(Dn,Hn)),Hn=this.length>1&&!wr[Tn]?Gn.unique(Hn):Hn,(this.length>1||_r.test(Dn))&&mr.test(Tn)&&(Hn=Hn.reverse()),this.pushStack(Hn,Tn,yr.call(arguments).join(","))}})),Gn.extend({filter:function filter(Tn,Un,Qn){return Qn&&(Tn=":not("+Tn+")"),1===Un.length?Gn.find.matchesSelector(Un[0],Tn)?[Un[0]]:[]:Gn.find.matches(Tn,Un)},dir:function dir(Tn,Qn,Dn){for(var Hn=[],zn=Tn[Qn];zn&&9!==zn.nodeType&&(Dn===Un||1!==zn.nodeType||!Gn(zn).is(Dn));)1===zn.nodeType&&Hn.push(zn),zn=zn[Qn];return Hn},nth:function nth(Tn,Un,Qn,Dn){Un=Un||1;for(var Hn=0;Tn&&(1!==Tn.nodeType||++Hn!==Un);Tn=Tn[Qn]);return Tn},sibling:function sibling(Tn,Un){for(var Qn=[];Tn;Tn=Tn.nextSibling)1===Tn.nodeType&&Tn!==Un&&Qn.push(Tn);return Qn}});var xr="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",kr=/ jQuery\d+="(?:\d+|null)"/g,Sr=/^\s+/,Cr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Br=/<([\w:]+)/,Er=/<tbody/i,Nr=/<|&#?\w+;/,Lr=/<(?:script|style)/i,Tr=/<(?:script|object|embed|option|style)/i,Pr=new RegExp("<(?:"+xr+")","i"),Fr=/checked\s*(?:[^=]|=\s*.checked.)/i,Ur=/\/(java|ecma)script/i,Ir=/^\s*<!(?:\[CDATA\[|\-\-)/,Rr={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Mr=U(Qn);Rr.optgroup=Rr.option,Rr.tbody=Rr.tfoot=Rr.colgroup=Rr.caption=Rr.thead,Rr.th=Rr.td,Gn.support.htmlSerialize||(Rr._default=[1,"div<div>","</div>"]),Gn.fn.extend({text:function text(Tn){return Gn.isFunction(Tn)?this.each((function(Un){var Qn=Gn(this);Qn.text(Tn.call(this,Un,Qn.text()))})):"object"!=_typeof(Tn)&&Tn!==Un?this.empty().append((this[0]&&this[0].ownerDocument||Qn).createTextNode(Tn)):Gn.text(this)},wrapAll:function wrapAll(Tn){if(Gn.isFunction(Tn))return this.each((function(Un){Gn(this).wrapAll(Tn.call(this,Un))}));if(this[0]){var Un=Gn(Tn,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&Un.insertBefore(this[0]),Un.map((function(){for(var Tn=this;Tn.firstChild&&1===Tn.firstChild.nodeType;)Tn=Tn.firstChild;return Tn})).append(this)}return this},wrapInner:function wrapInner(Tn){return Gn.isFunction(Tn)?this.each((function(Un){Gn(this).wrapInner(Tn.call(this,Un))})):this.each((function(){var Un=Gn(this),Qn=Un.contents();Qn.length?Qn.wrapAll(Tn):Un.append(Tn)}))},wrap:function wrap(Tn){var Un=Gn.isFunction(Tn);return this.each((function(Qn){Gn(this).wrapAll(Un?Tn.call(this,Qn):Tn)}))},unwrap:function unwrap(){return this.parent().each((function(){Gn.nodeName(this,"body")||Gn(this).replaceWith(this.childNodes)})).end()},append:function append(){return this.domManip(arguments,!0,(function(Tn){1===this.nodeType&&this.appendChild(Tn)}))},prepend:function prepend(){return this.domManip(arguments,!0,(function(Tn){1===this.nodeType&&this.insertBefore(Tn,this.firstChild)}))},before:function before(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(Tn){this.parentNode.insertBefore(Tn,this)}));if(arguments.length){var Tn=Gn.clean(arguments);return Tn.push.apply(Tn,this.toArray()),this.pushStack(Tn,"before",arguments)}},after:function after(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(Tn){this.parentNode.insertBefore(Tn,this.nextSibling)}));if(arguments.length){var Tn=this.pushStack(this,"after",arguments);return Tn.push.apply(Tn,Gn.clean(arguments)),Tn}},remove:function remove(Tn,Un){for(var Qn,Dn=0;null!=(Qn=this[Dn]);Dn++)Tn&&!Gn.filter(Tn,[Qn]).length||(!Un&&1===Qn.nodeType&&(Gn.cleanData(Qn.getElementsByTagName("*")),Gn.cleanData([Qn])),Qn.parentNode&&Qn.parentNode.removeChild(Qn));return this},empty:function empty(){for(var Tn,Un=0;null!=(Tn=this[Un]);Un++)for(1===Tn.nodeType&&Gn.cleanData(Tn.getElementsByTagName("*"));Tn.firstChild;)Tn.removeChild(Tn.firstChild);return this},clone:function clone(Tn,Un){return Tn=null!=Tn&&Tn,Un=null==Un?Tn:Un,this.map((function(){return Gn.clone(this,Tn,Un)}))},html:function html(Tn){if(Tn===Un)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(kr,""):null;if("string"!=typeof Tn||Lr.test(Tn)||!Gn.support.leadingWhitespace&&Sr.test(Tn)||Rr[(Br.exec(Tn)||["",""])[1].toLowerCase()])Gn.isFunction(Tn)?this.each((function(Un){var Qn=Gn(this);Qn.html(Tn.call(this,Un,Qn.html()))})):this.empty().append(Tn);else{Tn=Tn.replace(Cr,"<$1></$2>");try{for(var Qn=0,Dn=this.length;Qn<Dn;Qn++)1===this[Qn].nodeType&&(Gn.cleanData(this[Qn].getElementsByTagName("*")),this[Qn].innerHTML=Tn)}catch(Un){this.empty().append(Tn)}}return this},replaceWith:function replaceWith(Tn){return this[0]&&this[0].parentNode?Gn.isFunction(Tn)?this.each((function(Un){var Qn=Gn(this),Dn=Qn.html();Qn.replaceWith(Tn.call(this,Un,Dn))})):("string"!=typeof Tn&&(Tn=Gn(Tn).detach()),this.each((function(){var Un=this.nextSibling,Qn=this.parentNode;Gn(this).remove(),Un?Gn(Un).before(Tn):Gn(Qn).append(Tn)}))):this.length?this.pushStack(Gn(Gn.isFunction(Tn)?Tn():Tn),"replaceWith",Tn):this},detach:function detach(Tn){return this.remove(Tn,!0)},domManip:function domManip(Tn,Qn,Dn){var Hn,zn,Vn,Kn,Wn=Tn[0],Xn=[];if(!Gn.support.checkClone&&3===arguments.length&&"string"==typeof Wn&&Fr.test(Wn))return this.each((function(){Gn(this).domManip(Tn,Qn,Dn,!0)}));if(Gn.isFunction(Wn))return this.each((function(Hn){var zn=Gn(this);Tn[0]=Wn.call(this,Hn,Qn?zn.html():Un),zn.domManip(Tn,Qn,Dn)}));if(this[0]){if(Kn=Wn&&Wn.parentNode,zn=1===(Vn=(Hn=Gn.support.parentNode&&Kn&&11===Kn.nodeType&&Kn.childNodes.length===this.length?{fragment:Kn}:Gn.buildFragment(Tn,this,Xn)).fragment).childNodes.length?Vn=Vn.firstChild:Vn.firstChild){Qn=Qn&&Gn.nodeName(zn,"tr");for(var Yn=0,Jn=this.length,$n=Jn-1;Yn<Jn;Yn++)Dn.call(Qn?bi(this[Yn]):this[Yn],Hn.cacheable||Jn>1&&Yn<$n?Gn.clone(Vn,!0,!0):Vn)}Xn.length&&Gn.each(Xn,bp)}return this}}),Gn.buildFragment=function(Tn,Un,Dn){var Hn,zn,Vn,Kn,Wn=Tn[0];return Un&&Un[0]&&(Kn=Un[0].ownerDocument||Un[0]),Kn.createDocumentFragment||(Kn=Qn),1===Tn.length&&"string"==typeof Wn&&Wn.length<512&&Kn===Qn&&"<"===Wn.charAt(0)&&!Tr.test(Wn)&&(Gn.support.checkClone||!Fr.test(Wn))&&(Gn.support.html5Clone||!Pr.test(Wn))&&(zn=!0,(Vn=Gn.fragments[Wn])&&1!==Vn&&(Hn=Vn)),Hn||(Hn=Kn.createDocumentFragment(),Gn.clean(Tn,Kn,Hn,Dn)),zn&&(Gn.fragments[Wn]=Vn?Hn:1),{fragment:Hn,cacheable:zn}},Gn.fragments={},Gn.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(Tn,Un){Gn.fn[Tn]=function(Qn){var Dn=[],Hn=Gn(Qn),zn=1===this.length&&this[0].parentNode;if(zn&&11===zn.nodeType&&1===zn.childNodes.length&&1===Hn.length)return Hn[Un](this[0]),this;for(var Vn=0,Kn=Hn.length;Vn<Kn;Vn++){var Wn=(Vn>0?this.clone(!0):this).get();Gn(Hn[Vn])[Un](Wn),Dn=Dn.concat(Wn)}return this.pushStack(Dn,Tn,Hn.selector)}})),Gn.extend({clone:function clone(Tn,Un,Qn){var Dn,Hn,zn,Vn=Gn.support.html5Clone||!Pr.test("<"+Tn.nodeName)?Tn.cloneNode(!0):bo(Tn);if(!(Gn.support.noCloneEvent&&Gn.support.noCloneChecked||1!==Tn.nodeType&&11!==Tn.nodeType||Gn.isXMLDoc(Tn)))for(bk(Tn,Vn),Dn=bl(Tn),Hn=bl(Vn),zn=0;Dn[zn];++zn)Hn[zn]&&bk(Dn[zn],Hn[zn]);if(Un&&(bj(Tn,Vn),Qn))for(Dn=bl(Tn),Hn=bl(Vn),zn=0;Dn[zn];++zn)bj(Dn[zn],Hn[zn]);return Dn=Hn=null,Vn},clean:function clean(Tn,Un,Dn,Hn){var zn;void 0===(Un=Un||Qn).createElement&&(Un=Un.ownerDocument||Un[0]&&Un[0].ownerDocument||Qn);for(var Vn,Kn,Wn=[],Xn=0;null!=(Kn=Tn[Xn]);Xn++)if("number"==typeof Kn&&(Kn+=""),Kn){if("string"==typeof Kn)if(Nr.test(Kn)){Kn=Kn.replace(Cr,"<$1></$2>");var Yn=(Br.exec(Kn)||["",""])[1].toLowerCase(),Jn=Rr[Yn]||Rr._default,$n=Jn[0],Zn=Un.createElement("div");for(Un===Qn?Mr.appendChild(Zn):U(Un).appendChild(Zn),Zn.innerHTML=Jn[1]+Kn+Jn[2];$n--;)Zn=Zn.lastChild;if(!Gn.support.tbody){var er=Er.test(Kn),tr="table"!==Yn||er?"<table>"!==Jn[1]||er?[]:Zn.childNodes:Zn.firstChild&&Zn.firstChild.childNodes;for(Vn=tr.length-1;Vn>=0;--Vn)Gn.nodeName(tr[Vn],"tbody")&&!tr[Vn].childNodes.length&&tr[Vn].parentNode.removeChild(tr[Vn])}!Gn.support.leadingWhitespace&&Sr.test(Kn)&&Zn.insertBefore(Un.createTextNode(Sr.exec(Kn)[0]),Zn.firstChild),Kn=Zn.childNodes}else Kn=Un.createTextNode(Kn);var nr;if(!Gn.support.appendChecked)if(Kn[0]&&"number"==typeof(nr=Kn.length))for(Vn=0;Vn<nr;Vn++)bn(Kn[Vn]);else bn(Kn);Kn.nodeType?Wn.push(Kn):Wn=Gn.merge(Wn,Kn)}if(Dn)for(zn=function g(Tn){return!Tn.type||Ur.test(Tn.type)},Xn=0;Wn[Xn];Xn++)if(!Hn||!Gn.nodeName(Wn[Xn],"script")||Wn[Xn].type&&"text/javascript"!==Wn[Xn].type.toLowerCase()){if(1===Wn[Xn].nodeType){var rr=Gn.grep(Wn[Xn].getElementsByTagName("script"),zn);Wn.splice.apply(Wn,[Xn+1,0].concat(rr))}Dn.appendChild(Wn[Xn])}else Hn.push(Wn[Xn].parentNode?Wn[Xn].parentNode.removeChild(Wn[Xn]):Wn[Xn]);return Wn},cleanData:function cleanData(Tn){for(var Un,Qn,Dn,Hn=Gn.cache,zn=Gn.event.special,Vn=Gn.support.deleteExpando,Kn=0;null!=(Dn=Tn[Kn]);Kn++)if((!Dn.nodeName||!Gn.noData[Dn.nodeName.toLowerCase()])&&(Qn=Dn[Gn.expando])){if((Un=Hn[Qn])&&Un.events){for(var Wn in Un.events)zn[Wn]?Gn.event.remove(Dn,Wn):Gn.removeEvent(Dn,Wn,Un.handle);Un.handle&&(Un.handle.elem=null)}Vn?delete Dn[Gn.expando]:Dn.removeAttribute&&Dn.removeAttribute(Gn.expando),delete Hn[Qn]}}});var Qr,Or,Dr,jr=/alpha\([^)]*\)/i,Hr=/opacity=([^)]*)/,Gr=/([A-Z]|^ms)/g,zr=/^-?\d+(?:px)?$/i,Vr=/^-?\d/,Kr=/^([\-+])=([\-+.\de]+)/,qr={position:"absolute",visibility:"hidden",display:"block"},Wr=["Left","Right"],Xr=["Top","Bottom"];Gn.fn.css=function(Tn,Qn){return 2===arguments.length&&Qn===Un?this:Gn.access(this,Tn,Qn,!0,(function(Tn,Qn,Dn){return Dn!==Un?Gn.style(Tn,Qn,Dn):Gn.css(Tn,Qn)}))},Gn.extend({cssHooks:{opacity:{get:function get(Tn,Un){if(Un){var Qn=Qr(Tn,"opacity","opacity");return""===Qn?"1":Qn}return Tn.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:Gn.support.cssFloat?"cssFloat":"styleFloat"},style:function style(Tn,Qn,Dn,Hn){if(Tn&&3!==Tn.nodeType&&8!==Tn.nodeType&&Tn.style){var zn,Vn,Kn=Gn.camelCase(Qn),Wn=Tn.style,Xn=Gn.cssHooks[Kn];if(Qn=Gn.cssProps[Kn]||Kn,Dn===Un)return Xn&&"get"in Xn&&(zn=Xn.get(Tn,!1,Hn))!==Un?zn:Wn[Qn];if("string"===(Vn=_typeof(Dn))&&(zn=Kr.exec(Dn))&&(Dn=+(zn[1]+1)*+zn[2]+parseFloat(Gn.css(Tn,Qn)),Vn="number"),null==Dn||"number"===Vn&&isNaN(Dn))return;if("number"===Vn&&!Gn.cssNumber[Kn]&&(Dn+="px"),!Xn||!("set"in Xn)||(Dn=Xn.set(Tn,Dn))!==Un)try{Wn[Qn]=Dn}catch(Tn){}}},css:function css(Tn,Qn,Dn){var Hn,zn;return Qn=Gn.camelCase(Qn),zn=Gn.cssHooks[Qn],"cssFloat"===(Qn=Gn.cssProps[Qn]||Qn)&&(Qn="float"),zn&&"get"in zn&&(Hn=zn.get(Tn,!0,Dn))!==Un?Hn:Qr?Qr(Tn,Qn):void 0},swap:function swap(Tn,Un,Qn){var Dn={};for(var Hn in Un)Dn[Hn]=Tn.style[Hn],Tn.style[Hn]=Un[Hn];for(Hn in Qn.call(Tn),Un)Tn.style[Hn]=Dn[Hn]}}),Gn.curCSS=Gn.css,Gn.each(["height","width"],(function(Tn,Un){Gn.cssHooks[Un]={get:function get(Tn,Qn,Dn){var Hn;if(Qn)return 0!==Tn.offsetWidth?bC(Tn,Un,Dn):(Gn.swap(Tn,qr,(function(){Hn=bC(Tn,Un,Dn)})),Hn)},set:function set(Tn,Un){return zr.test(Un)?(Un=parseFloat(Un))>=0?Un+"px":void 0:Un}}})),Gn.support.opacity||(Gn.cssHooks.opacity={get:function get(Tn,Un){return Hr.test((Un&&Tn.currentStyle?Tn.currentStyle.filter:Tn.style.filter)||"")?parseFloat(RegExp.$1)/100+"":Un?"1":""},set:function set(Tn,Un){var Qn=Tn.style,Dn=Tn.currentStyle,Hn=Gn.isNumeric(Un)?"alpha(opacity="+100*Un+")":"",zn=Dn&&Dn.filter||Qn.filter||"";Qn.zoom=1,Un>=1&&""===Gn.trim(zn.replace(jr,""))&&(Qn.removeAttribute("filter"),Dn&&!Dn.filter)||(Qn.filter=jr.test(zn)?zn.replace(jr,Hn):zn+" "+Hn)}}),Gn((function(){Gn.support.reliableMarginRight||(Gn.cssHooks.marginRight={get:function get(Tn,Un){var Qn;return Gn.swap(Tn,{display:"inline-block"},(function(){Qn=Un?Qr(Tn,"margin-right","marginRight"):Tn.style.marginRight})),Qn}})})),Qn.defaultView&&Qn.defaultView.getComputedStyle&&(Or=function bA(Tn,Un){var Qn,Dn,Hn;return Un=Un.replace(Gr,"-$1").toLowerCase(),(Dn=Tn.ownerDocument.defaultView)&&(Hn=Dn.getComputedStyle(Tn,null))&&(""===(Qn=Hn.getPropertyValue(Un))&&!Gn.contains(Tn.ownerDocument.documentElement,Tn)&&(Qn=Gn.style(Tn,Un))),Qn}),Qn.documentElement.currentStyle&&(Dr=function bB(Tn,Un){var Qn,Dn,Hn,Gn=Tn.currentStyle&&Tn.currentStyle[Un],zn=Tn.style;return null===Gn&&zn&&(Hn=zn[Un])&&(Gn=Hn),!zr.test(Gn)&&Vr.test(Gn)&&(Qn=zn.left,(Dn=Tn.runtimeStyle&&Tn.runtimeStyle.left)&&(Tn.runtimeStyle.left=Tn.currentStyle.left),zn.left="fontSize"===Un?"1em":Gn||0,Gn=zn.pixelLeft+"px",zn.left=Qn,Dn&&(Tn.runtimeStyle.left=Dn)),""===Gn?"auto":Gn}),Qr=Or||Dr,Gn.expr&&Gn.expr.filters&&(Gn.expr.filters.hidden=function(Tn){var Un=Tn.offsetWidth,Qn=Tn.offsetHeight;return 0===Un&&0===Qn||!Gn.support.reliableHiddenOffsets&&"none"===(Tn.style&&Tn.style.display||Gn.css(Tn,"display"))},Gn.expr.filters.visible=function(Tn){return!Gn.expr.filters.hidden(Tn)});var Yr,Jr,$r=/%20/g,Zr=/\[\]$/,ei=/\r?\n/g,ti=/#.*$/,ni=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ri=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ii=/^(?:GET|HEAD)$/,ai=/^\/\//,oi=/\?/,si=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,li=/^(?:select|textarea)/i,ui=/\s+/,di=/([?&])_=[^&]*/,hi=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,pi=Gn.fn.load,Ai={},fi={},gi=["*/"]+["*"];try{Yr=Hn.href}catch(Tn){(Yr=Qn.createElement("a")).href="",Yr=Yr.href}Jr=hi.exec(Yr.toLowerCase())||[],Gn.fn.extend({load:function load(Tn,Qn,Dn){if("string"!=typeof Tn&&pi)return pi.apply(this,arguments);if(!this.length)return this;var Hn=Tn.indexOf(" ");if(Hn>=0){var zn=Tn.slice(Hn,Tn.length);Tn=Tn.slice(0,Hn)}var Vn="GET";Qn&&(Gn.isFunction(Qn)?(Dn=Qn,Qn=Un):"object"==_typeof(Qn)&&(Qn=Gn.param(Qn,Gn.ajaxSettings.traditional),Vn="POST"));var Kn=this;return Gn.ajax({url:Tn,type:Vn,dataType:"html",data:Qn,complete:function complete(Tn,Un,Qn){Qn=Tn.responseText,Tn.isResolved()&&(Tn.done((function(Tn){Qn=Tn})),Kn.html(zn?Gn("<div>").append(Qn.replace(si,"")).find(zn):Qn)),Dn&&Kn.each(Dn,[Qn,Un,Tn])}}),this},serialize:function serialize(){return Gn.param(this.serializeArray())},serializeArray:function serializeArray(){return this.map((function(){return this.elements?Gn.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||li.test(this.nodeName)||ri.test(this.type))})).map((function(Tn,Un){var Qn=Gn(this).val();return null==Qn?null:Gn.isArray(Qn)?Gn.map(Qn,(function(Tn,Qn){return{name:Un.name,value:Tn.replace(ei,"\r\n")}})):{name:Un.name,value:Qn.replace(ei,"\r\n")}})).get()}}),Gn.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(Tn,Un){Gn.fn[Un]=function(Tn){return this.on(Un,Tn)}})),Gn.each(["get","post"],(function(Tn,Qn){Gn[Qn]=function(Tn,Dn,Hn,zn){return Gn.isFunction(Dn)&&(zn=zn||Hn,Hn=Dn,Dn=Un),Gn.ajax({type:Qn,url:Tn,data:Dn,success:Hn,dataType:zn})}})),Gn.extend({getScript:function getScript(Tn,Qn){return Gn.get(Tn,Un,Qn,"script")},getJSON:function getJSON(Tn,Un,Qn){return Gn.get(Tn,Un,Qn,"json")},ajaxSetup:function ajaxSetup(Tn,Un){return Un?b_(Tn,Gn.ajaxSettings):(Un=Tn,Tn=Gn.ajaxSettings),b_(Tn,Un),Tn},ajaxSettings:{url:Yr,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Jr[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":gi},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":Tn.String,"text html":!0,"text json":Gn.parseJSON,"text xml":Gn.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(Ai),ajaxTransport:bZ(fi),ajax:function ajax(Tn,Qn){function w(Tn,Qn,zn,Wn){if(2!==ar){ar=2,Kn&&clearTimeout(Kn),Vn=Un,Hn=Wn||"",or.readyState=Tn>0?4:0;var Yn,rr,ir,sr,lr,cr=Qn,ur=zn?function cb(Tn,Qn,Dn){var Hn,Gn,zn,Vn,Kn=Tn.contents,Wn=Tn.dataTypes,Xn=Tn.responseFields;for(Gn in Xn)Gn in Dn&&(Qn[Xn[Gn]]=Dn[Gn]);for(;"*"===Wn[0];)Wn.shift(),Hn===Un&&(Hn=Tn.mimeType||Qn.getResponseHeader("content-type"));if(Hn)for(Gn in Kn)if(Kn[Gn]&&Kn[Gn].test(Hn)){Wn.unshift(Gn);break}if(Wn[0]in Dn)zn=Wn[0];else{for(Gn in Dn){if(!Wn[0]||Tn.converters[Gn+" "+Wn[0]]){zn=Gn;break}Vn||(Vn=Gn)}zn=zn||Vn}if(zn)return zn!==Wn[0]&&Wn.unshift(zn),Dn[zn]}(Jn,or,zn):Un;if(Tn>=200&&Tn<300||304===Tn)if(Jn.ifModified&&((sr=or.getResponseHeader("Last-Modified"))&&(Gn.lastModified[Dn]=sr),(lr=or.getResponseHeader("Etag"))&&(Gn.etag[Dn]=lr)),304===Tn)cr="notmodified",Yn=!0;else try{rr=function cc(Tn,Qn){Tn.dataFilter&&(Qn=Tn.dataFilter(Qn,Tn.dataType));var Dn,Hn,zn,Vn,Kn,Wn,Xn,Yn,Jn=Tn.dataTypes,$n={},Zn=Jn.length,er=Jn[0];for(Dn=1;Dn<Zn;Dn++){if(1===Dn)for(Hn in Tn.converters)"string"==typeof Hn&&($n[Hn.toLowerCase()]=Tn.converters[Hn]);if(Vn=er,"*"===(er=Jn[Dn]))er=Vn;else if("*"!==Vn&&Vn!==er){if(!(Wn=$n[Kn=Vn+" "+er]||$n["* "+er]))for(Xn in Yn=Un,$n)if(((zn=Xn.split(" "))[0]===Vn||"*"===zn[0])&&(Yn=$n[zn[1]+" "+er])){!0===(Xn=$n[Xn])?Wn=Yn:!0===Yn&&(Wn=Xn);break}!Wn&&!Yn&&Gn.error("No conversion from "+Kn.replace(" "," to ")),!0!==Wn&&(Qn=Wn?Wn(Qn):Yn(Xn(Qn)))}}return Qn}(Jn,ur),cr="success",Yn=!0}catch(Tn){cr="parsererror",ir=Tn}else ir=cr,cr&&!Tn||(cr="error",Tn<0&&(Tn=0));or.status=Tn,or.statusText=""+(Qn||cr),Yn?er.resolveWith($n,[rr,cr,or]):er.rejectWith($n,[or,cr,ir]),or.statusCode(nr),nr=Un,Xn&&Zn.trigger("ajax"+(Yn?"Success":"Error"),[or,Jn,Yn?rr:ir]),tr.fireWith($n,[or,cr]),Xn&&(Zn.trigger("ajaxComplete",[or,Jn]),--Gn.active||Gn.event.trigger("ajaxStop"))}}"object"==_typeof(Tn)&&(Qn=Tn,Tn=Un),Qn=Qn||{};var Dn,Hn,zn,Vn,Kn,Wn,Xn,Yn,Jn=Gn.ajaxSetup({},Qn),$n=Jn.context||Jn,Zn=$n!==Jn&&($n.nodeType||$n instanceof Gn)?Gn($n):Gn.event,er=Gn.Deferred(),tr=Gn.Callbacks("once memory"),nr=Jn.statusCode||{},rr={},ir={},ar=0,or={readyState:0,setRequestHeader:function setRequestHeader(Tn,Un){if(!ar){var Qn=Tn.toLowerCase();Tn=ir[Qn]=ir[Qn]||Tn,rr[Tn]=Un}return this},getAllResponseHeaders:function getAllResponseHeaders(){return 2===ar?Hn:null},getResponseHeader:function getResponseHeader(Tn){var Qn;if(2===ar){if(!zn)for(zn={};Qn=ni.exec(Hn);)zn[Qn[1].toLowerCase()]=Qn[2];Qn=zn[Tn.toLowerCase()]}return Qn===Un?null:Qn},overrideMimeType:function overrideMimeType(Tn){return ar||(Jn.mimeType=Tn),this},abort:function abort(Tn){return Tn=Tn||"abort",Vn&&Vn.abort(Tn),w(0,Tn),this}};if(er.promise(or),or.success=or.done,or.error=or.fail,or.complete=tr.add,or.statusCode=function(Tn){var Un;if(Tn)if(ar<2)for(Un in Tn)nr[Un]=[nr[Un],Tn[Un]];else Un=Tn[or.status],or.then(Un,Un);return this},Jn.url=((Tn||Jn.url)+"").replace(ti,"").replace(ai,Jr[1]+"//"),Jn.dataTypes=Gn.trim(Jn.dataType||"*").toLowerCase().split(ui),null==Jn.crossDomain&&(Wn=hi.exec(Jn.url.toLowerCase()),Jn.crossDomain=!(!Wn||Wn[1]==Jr[1]&&Wn[2]==Jr[2]&&(Wn[3]||("http:"===Wn[1]?80:443))==(Jr[3]||("http:"===Jr[1]?80:443)))),Jn.data&&Jn.processData&&"string"!=typeof Jn.data&&(Jn.data=Gn.param(Jn.data,Jn.traditional)),b$(Ai,Jn,Qn,or),2===ar)return!1;if(Xn=Jn.global,Jn.type=Jn.type.toUpperCase(),Jn.hasContent=!ii.test(Jn.type),Xn&&0==Gn.active++&&Gn.event.trigger("ajaxStart"),!Jn.hasContent&&(Jn.data&&(Jn.url+=(oi.test(Jn.url)?"&":"?")+Jn.data,delete Jn.data),Dn=Jn.url,!1===Jn.cache)){var sr=Gn.now(),lr=Jn.url.replace(di,"$1_="+sr);Jn.url=lr+(lr===Jn.url?(oi.test(Jn.url)?"&":"?")+"_="+sr:"")}for(Yn in(Jn.data&&Jn.hasContent&&!1!==Jn.contentType||Qn.contentType)&&or.setRequestHeader("Content-Type",Jn.contentType),Jn.ifModified&&(Dn=Dn||Jn.url,Gn.lastModified[Dn]&&or.setRequestHeader("If-Modified-Since",Gn.lastModified[Dn]),Gn.etag[Dn]&&or.setRequestHeader("If-None-Match",Gn.etag[Dn])),or.setRequestHeader("Accept",Jn.dataTypes[0]&&Jn.accepts[Jn.dataTypes[0]]?Jn.accepts[Jn.dataTypes[0]]+("*"!==Jn.dataTypes[0]?", "+gi+"; q=0.01":""):Jn.accepts["*"]),Jn.headers)or.setRequestHeader(Yn,Jn.headers[Yn]);if(Jn.beforeSend&&(!1===Jn.beforeSend.call($n,or,Jn)||2===ar))return or.abort(),!1;for(Yn in{success:1,error:1,complete:1})or[Yn](Jn[Yn]);if(Vn=b$(fi,Jn,Qn,or)){or.readyState=1,Xn&&Zn.trigger("ajaxSend",[or,Jn]),Jn.async&&Jn.timeout>0&&(Kn=setTimeout((function(){or.abort("timeout")}),Jn.timeout));try{ar=1,Vn.send(rr,w)}catch(Tn){if(!(ar<2))throw Tn;w(-1,Tn)}}else w(-1,"No Transport");return or},param:function param(Tn,Qn){var Dn=[],Hn=function e(Tn,Un){Un=Gn.isFunction(Un)?Un():Un,Dn[Dn.length]=encodeURIComponent(Tn)+"="+encodeURIComponent(Un)};if(Qn===Un&&(Qn=Gn.ajaxSettings.traditional),Gn.isArray(Tn)||Tn.jquery&&!Gn.isPlainObject(Tn))Gn.each(Tn,(function(){Hn(this.name,this.value)}));else for(var zn in Tn)ca(zn,Tn[zn],Qn,Hn);return Dn.join("&").replace($r,"+")}}),Gn.extend({active:0,lastModified:{},etag:{}});var mi=Gn.now(),_i=/(\=)\?(&|$)|\?\?/i;Gn.ajaxSetup({jsonp:"callback",jsonpCallback:function jsonpCallback(){return Gn.expando+"_"+mi++}}),Gn.ajaxPrefilter("json jsonp",(function(Un,Qn,Dn){var Hn="application/x-www-form-urlencoded"===Un.contentType&&"string"==typeof Un.data;if("jsonp"===Un.dataTypes[0]||!1!==Un.jsonp&&(_i.test(Un.url)||Hn&&_i.test(Un.data))){var zn,Vn=Un.jsonpCallback=Gn.isFunction(Un.jsonpCallback)?Un.jsonpCallback():Un.jsonpCallback,Kn=Tn[Vn],Wn=Un.url,Xn=Un.data,Yn="$1"+Vn+"$2";return!1!==Un.jsonp&&(Wn=Wn.replace(_i,Yn),Un.url===Wn&&(Hn&&(Xn=Xn.replace(_i,Yn)),Un.data===Xn&&(Wn+=(/\?/.test(Wn)?"&":"?")+Un.jsonp+"="+Vn))),Un.url=Wn,Un.data=Xn,Tn[Vn]=function(Tn){zn=[Tn]},Dn.always((function(){Tn[Vn]=Kn,zn&&Gn.isFunction(Kn)&&Tn[Vn](zn[0])})),Un.converters["script json"]=function(){return zn||Gn.error(Vn+" was not called"),zn[0]},Un.dataTypes[0]="json","script"}})),Gn.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function textScript(Tn){return Gn.globalEval(Tn),Tn}}}),Gn.ajaxPrefilter("script",(function(Tn){Tn.cache===Un&&(Tn.cache=!1),Tn.crossDomain&&(Tn.type="GET",Tn.global=!1)})),Gn.ajaxTransport("script",(function(Tn){if(Tn.crossDomain){var Dn,Hn=Qn.head||Qn.getElementsByTagName("head")[0]||Qn.documentElement;return{send:function send(Gn,zn){(Dn=Qn.createElement("script")).async="async",Tn.scriptCharset&&(Dn.charset=Tn.scriptCharset),Dn.src=Tn.url,Dn.onload=Dn.onreadystatechange=function(Tn,Qn){(Qn||!Dn.readyState||/loaded|complete/.test(Dn.readyState))&&(Dn.onload=Dn.onreadystatechange=null,Hn&&Dn.parentNode&&Hn.removeChild(Dn),Dn=Un,Qn||zn(200,"success"))},Hn.insertBefore(Dn,Hn.firstChild)},abort:function abort(){Dn&&Dn.onload(0,1)}}}}));var vi,yi=!!Tn.ActiveXObject&&function(){for(var Tn in vi)vi[Tn](0,1)},wi=0;Gn.ajaxSettings.xhr=Tn.ActiveXObject?function(){return!this.isLocal&&ci()||function cj(){try{return new Tn.ActiveXObject("Microsoft.XMLHTTP")}catch(Tn){}}()}:ci,function(Tn){Gn.extend(Gn.support,{ajax:!!Tn,cors:!!Tn&&"withCredentials"in Tn})}(Gn.ajaxSettings.xhr()),Gn.support.ajax&&Gn.ajaxTransport((function(Qn){var Dn;if(!Qn.crossDomain||Gn.support.cors)return{send:function send(Hn,zn){var Vn,Kn,Wn=Qn.xhr();if(Qn.username?Wn.open(Qn.type,Qn.url,Qn.async,Qn.username,Qn.password):Wn.open(Qn.type,Qn.url,Qn.async),Qn.xhrFields)for(Kn in Qn.xhrFields)Wn[Kn]=Qn.xhrFields[Kn];Qn.mimeType&&Wn.overrideMimeType&&Wn.overrideMimeType(Qn.mimeType),!Qn.crossDomain&&!Hn["X-Requested-With"]&&(Hn["X-Requested-With"]="XMLHttpRequest");try{for(Kn in Hn)Wn.setRequestHeader(Kn,Hn[Kn])}catch(Tn){}Wn.send(Qn.hasContent&&Qn.data||null),Dn=function d(Tn,Hn){var Kn,Xn,Yn,Jn,$n;try{if(Dn&&(Hn||4===Wn.readyState))if(Dn=Un,Vn&&(Wn.onreadystatechange=Gn.noop,yi&&delete vi[Vn]),Hn)4!==Wn.readyState&&Wn.abort();else{Kn=Wn.status,Yn=Wn.getAllResponseHeaders(),Jn={},($n=Wn.responseXML)&&$n.documentElement&&(Jn.xml=$n),Jn.text=Wn.responseText;try{Xn=Wn.statusText}catch(Tn){Xn=""}Kn||!Qn.isLocal||Qn.crossDomain?1223===Kn&&(Kn=204):Kn=Jn.text?200:404}}catch(Tn){Hn||zn(-1,Tn)}Jn&&zn(Kn,Xn,Jn,Yn)},Qn.async&&4!==Wn.readyState?(Vn=++wi,yi&&(vi||(vi={},Gn(Tn).unload(yi)),vi[Vn]=Dn),Wn.onreadystatechange=Dn):Dn()},abort:function abort(){Dn&&Dn(0,1)}}}));var xi,ki,Si,Ci,Bi={},Ei=/^(?:toggle|show|hide)$/,Ni=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Li=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];Gn.fn.extend({show:function show(Tn,Un,Qn){var Dn,Hn;if(Tn||0===Tn)return this.animate(cu("show",3),Tn,Un,Qn);for(var zn=0,Vn=this.length;zn<Vn;zn++)(Dn=this[zn]).style&&(Hn=Dn.style.display,!Gn._data(Dn,"olddisplay")&&"none"===Hn&&(Hn=Dn.style.display=""),""===Hn&&"none"===Gn.css(Dn,"display")&&Gn._data(Dn,"olddisplay",cv(Dn.nodeName)));for(zn=0;zn<Vn;zn++)(Dn=this[zn]).style&&(""!==(Hn=Dn.style.display)&&"none"!==Hn||(Dn.style.display=Gn._data(Dn,"olddisplay")||""));return this},hide:function hide(Tn,Un,Qn){if(Tn||0===Tn)return this.animate(cu("hide",3),Tn,Un,Qn);for(var Dn,Hn,zn=0,Vn=this.length;zn<Vn;zn++)(Dn=this[zn]).style&&("none"!==(Hn=Gn.css(Dn,"display"))&&!Gn._data(Dn,"olddisplay")&&Gn._data(Dn,"olddisplay",Hn));for(zn=0;zn<Vn;zn++)this[zn].style&&(this[zn].style.display="none");return this},_toggle:Gn.fn.toggle,toggle:function toggle(Tn,Un,Qn){var Dn="boolean"==typeof Tn;return Gn.isFunction(Tn)&&Gn.isFunction(Un)?this._toggle.apply(this,arguments):null==Tn||Dn?this.each((function(){var Un=Dn?Tn:Gn(this).is(":hidden");Gn(this)[Un?"show":"hide"]()})):this.animate(cu("toggle",3),Tn,Un,Qn),this},fadeTo:function fadeTo(Tn,Un,Qn,Dn){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:Un},Tn,Qn,Dn)},animate:function animate(Tn,Un,Qn,Dn){function g(){!1===Hn.queue&&Gn._mark(this);var Un,Qn,Dn,zn,Vn,Kn,Wn,Xn,Yn,Jn=Gn.extend({},Hn),$n=1===this.nodeType,Zn=$n&&Gn(this).is(":hidden");for(Dn in Jn.animatedProperties={},Tn){if(Dn!==(Un=Gn.camelCase(Dn))&&(Tn[Un]=Tn[Dn],delete Tn[Dn]),Qn=Tn[Un],Gn.isArray(Qn)?(Jn.animatedProperties[Un]=Qn[1],Qn=Tn[Un]=Qn[0]):Jn.animatedProperties[Un]=Jn.specialEasing&&Jn.specialEasing[Un]||Jn.easing||"swing","hide"===Qn&&Zn||"show"===Qn&&!Zn)return Jn.complete.call(this);$n&&("height"===Un||"width"===Un)&&(Jn.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===Gn.css(this,"display")&&"none"===Gn.css(this,"float")&&(Gn.support.inlineBlockNeedsLayout&&"inline"!==cv(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}for(Dn in null!=Jn.overflow&&(this.style.overflow="hidden"),Tn)zn=new Gn.fx(this,Jn,Dn),Qn=Tn[Dn],Ei.test(Qn)?(Yn=Gn._data(this,"toggle"+Dn)||("toggle"===Qn?Zn?"show":"hide":0))?(Gn._data(this,"toggle"+Dn,"show"===Yn?"hide":"show"),zn[Yn]()):zn[Qn]():(Vn=Ni.exec(Qn),Kn=zn.cur(),Vn?(Wn=parseFloat(Vn[2]),"px"!==(Xn=Vn[3]||(Gn.cssNumber[Dn]?"":"px"))&&(Gn.style(this,Dn,(Wn||1)+Xn),Kn=(Wn||1)/zn.cur()*Kn,Gn.style(this,Dn,Kn+Xn)),Vn[1]&&(Wn=("-="===Vn[1]?-1:1)*Wn+Kn),zn.custom(Kn,Wn,Xn)):zn.custom(Kn,Qn,""));return!0}var Hn=Gn.speed(Un,Qn,Dn);return Gn.isEmptyObject(Tn)?this.each(Hn.complete,[!1]):(Tn=Gn.extend({},Tn),!1===Hn.queue?this.each(g):this.queue(Hn.queue,g))},stop:function stop(Tn,Qn,Dn){return"string"!=typeof Tn&&(Dn=Qn,Qn=Tn,Tn=Un),Qn&&!1!==Tn&&this.queue(Tn||"fx",[]),this.each((function(){function h(Tn,Un,Qn){var Hn=Un[Qn];Gn.removeData(Tn,Qn,!0),Hn.stop(Dn)}var Un,Qn=!1,Hn=Gn.timers,zn=Gn._data(this);if(Dn||Gn._unmark(!0,this),null==Tn)for(Un in zn)zn[Un]&&zn[Un].stop&&Un.indexOf(".run")===Un.length-4&&h(this,zn,Un);else zn[Un=Tn+".run"]&&zn[Un].stop&&h(this,zn,Un);for(Un=Hn.length;Un--;)Hn[Un].elem===this&&(null==Tn||Hn[Un].queue===Tn)&&(Dn?Hn[Un](!0):Hn[Un].saveState(),Qn=!0,Hn.splice(Un,1));(!Dn||!Qn)&&Gn.dequeue(this,Tn)}))}}),Gn.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(Tn,Un){Gn.fn[Tn]=function(Tn,Qn,Dn){return this.animate(Un,Tn,Qn,Dn)}})),Gn.extend({speed:function speed(Tn,Un,Qn){var Dn=Tn&&"object"==_typeof(Tn)?Gn.extend({},Tn):{complete:Qn||!Qn&&Un||Gn.isFunction(Tn)&&Tn,duration:Tn,easing:Qn&&Un||Un&&!Gn.isFunction(Un)&&Un};return Dn.duration=Gn.fx.off?0:"number"==typeof Dn.duration?Dn.duration:Dn.duration in Gn.fx.speeds?Gn.fx.speeds[Dn.duration]:Gn.fx.speeds._default,null!=Dn.queue&&!0!==Dn.queue||(Dn.queue="fx"),Dn.old=Dn.complete,Dn.complete=function(Tn){Gn.isFunction(Dn.old)&&Dn.old.call(this),Dn.queue?Gn.dequeue(this,Dn.queue):!1!==Tn&&Gn._unmark(this)},Dn},easing:{linear:function linear(Tn,Un,Qn,Dn){return Qn+Dn*Tn},swing:function swing(Tn,Un,Qn,Dn){return(-Math.cos(Tn*Math.PI)/2+.5)*Dn+Qn}},timers:[],fx:function fx(Tn,Un,Qn){this.options=Un,this.elem=Tn,this.prop=Qn,Un.orig=Un.orig||{}}}),Gn.fx.prototype={update:function update(){this.options.step&&this.options.step.call(this.elem,this.now,this),(Gn.fx.step[this.prop]||Gn.fx.step._default)(this)},cur:function cur(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var Tn,Un=Gn.css(this.elem,this.prop);return isNaN(Tn=parseFloat(Un))?Un&&"auto"!==Un?Un:0:Tn},custom:function custom(Tn,Qn,Dn){function h(Tn){return Hn.step(Tn)}var Hn=this,zn=Gn.fx;this.startTime=Ci||cs(),this.end=Qn,this.now=this.start=Tn,this.pos=this.state=0,this.unit=Dn||this.unit||(Gn.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){Hn.options.hide&&Gn._data(Hn.elem,"fxshow"+Hn.prop)===Un&&Gn._data(Hn.elem,"fxshow"+Hn.prop,Hn.start)},h()&&Gn.timers.push(h)&&!Si&&(Si=setInterval(zn.tick,zn.interval))},show:function show(){var Tn=Gn._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=Tn||Gn.style(this.elem,this.prop),this.options.show=!0,Tn!==Un?this.custom(this.cur(),Tn):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),Gn(this.elem).show()},hide:function hide(){this.options.orig[this.prop]=Gn._data(this.elem,"fxshow"+this.prop)||Gn.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function step(Tn){var Un,Qn,Dn,Hn=Ci||cs(),zn=!0,Vn=this.elem,Kn=this.options;if(Tn||Hn>=Kn.duration+this.startTime){for(Un in this.now=this.end,this.pos=this.state=1,this.update(),Kn.animatedProperties[this.prop]=!0,Kn.animatedProperties)!0!==Kn.animatedProperties[Un]&&(zn=!1);if(zn){if(null!=Kn.overflow&&!Gn.support.shrinkWrapBlocks&&Gn.each(["","X","Y"],(function(Tn,Un){Vn.style["overflow"+Un]=Kn.overflow[Tn]})),Kn.hide&&Gn(Vn).hide(),Kn.hide||Kn.show)for(Un in Kn.animatedProperties)Gn.style(Vn,Un,Kn.orig[Un]),Gn.removeData(Vn,"fxshow"+Un,!0),Gn.removeData(Vn,"toggle"+Un,!0);(Dn=Kn.complete)&&(Kn.complete=!1,Dn.call(Vn))}return!1}return Kn.duration==1/0?this.now=Hn:(Qn=Hn-this.startTime,this.state=Qn/Kn.duration,this.pos=Gn.easing[Kn.animatedProperties[this.prop]](this.state,Qn,0,1,Kn.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},Gn.extend(Gn.fx,{tick:function tick(){for(var Tn,Un=Gn.timers,Qn=0;Qn<Un.length;Qn++)!(Tn=Un[Qn])()&&Un[Qn]===Tn&&Un.splice(Qn--,1);Un.length||Gn.fx.stop()},interval:13,stop:function stop(){clearInterval(Si),Si=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function opacity(Tn){Gn.style(Tn.elem,"opacity",Tn.now)},_default:function _default(Tn){Tn.elem.style&&null!=Tn.elem.style[Tn.prop]?Tn.elem.style[Tn.prop]=Tn.now+Tn.unit:Tn.elem[Tn.prop]=Tn.now}}}),Gn.each(["width","height"],(function(Tn,Un){Gn.fx.step[Un]=function(Tn){Gn.style(Tn.elem,Un,Math.max(0,Tn.now)+Tn.unit)}})),Gn.expr&&Gn.expr.filters&&(Gn.expr.filters.animated=function(Tn){return Gn.grep(Gn.timers,(function(Un){return Tn===Un.elem})).length});var Ti=/^t(?:able|d|h)$/i,Pi=/^(?:body|html)$/i;"getBoundingClientRect"in Qn.documentElement?Gn.fn.offset=function(Tn){var Un,Qn=this[0];if(Tn)return this.each((function(Un){Gn.offset.setOffset(this,Tn,Un)}));if(!Qn||!Qn.ownerDocument)return null;if(Qn===Qn.ownerDocument.body)return Gn.offset.bodyOffset(Qn);try{Un=Qn.getBoundingClientRect()}catch(Tn){}var Dn=Qn.ownerDocument,Hn=Dn.documentElement;if(!Un||!Gn.contains(Hn,Qn))return Un?{top:Un.top,left:Un.left}:{top:0,left:0};var zn=Dn.body,Vn=cy(Dn),Kn=Hn.clientTop||zn.clientTop||0,Wn=Hn.clientLeft||zn.clientLeft||0,Xn=Vn.pageYOffset||Gn.support.boxModel&&Hn.scrollTop||zn.scrollTop,Yn=Vn.pageXOffset||Gn.support.boxModel&&Hn.scrollLeft||zn.scrollLeft;return{top:Un.top+Xn-Kn,left:Un.left+Yn-Wn}}:Gn.fn.offset=function(Tn){var Un=this[0];if(Tn)return this.each((function(Un){Gn.offset.setOffset(this,Tn,Un)}));if(!Un||!Un.ownerDocument)return null;if(Un===Un.ownerDocument.body)return Gn.offset.bodyOffset(Un);for(var Qn,Dn=Un.offsetParent,Hn=Un.ownerDocument,zn=Hn.documentElement,Vn=Hn.body,Kn=Hn.defaultView,Wn=Kn?Kn.getComputedStyle(Un,null):Un.currentStyle,Xn=Un.offsetTop,Yn=Un.offsetLeft;(Un=Un.parentNode)&&Un!==Vn&&Un!==zn&&(!Gn.support.fixedPosition||"fixed"!==Wn.position);)Qn=Kn?Kn.getComputedStyle(Un,null):Un.currentStyle,Xn-=Un.scrollTop,Yn-=Un.scrollLeft,Un===Dn&&(Xn+=Un.offsetTop,Yn+=Un.offsetLeft,Gn.support.doesNotAddBorder&&(!Gn.support.doesAddBorderForTableAndCells||!Ti.test(Un.nodeName))&&(Xn+=parseFloat(Qn.borderTopWidth)||0,Yn+=parseFloat(Qn.borderLeftWidth)||0),Dn=Un.offsetParent),Gn.support.subtractsBorderForOverflowNotVisible&&"visible"!==Qn.overflow&&(Xn+=parseFloat(Qn.borderTopWidth)||0,Yn+=parseFloat(Qn.borderLeftWidth)||0),Wn=Qn;return"relative"!==Wn.position&&"static"!==Wn.position||(Xn+=Vn.offsetTop,Yn+=Vn.offsetLeft),Gn.support.fixedPosition&&"fixed"===Wn.position&&(Xn+=Math.max(zn.scrollTop,Vn.scrollTop),Yn+=Math.max(zn.scrollLeft,Vn.scrollLeft)),{top:Xn,left:Yn}},Gn.offset={bodyOffset:function bodyOffset(Tn){var Un=Tn.offsetTop,Qn=Tn.offsetLeft;return Gn.support.doesNotIncludeMarginInBodyOffset&&(Un+=parseFloat(Gn.css(Tn,"marginTop"))||0,Qn+=parseFloat(Gn.css(Tn,"marginLeft"))||0),{top:Un,left:Qn}},setOffset:function setOffset(Tn,Un,Qn){var Dn=Gn.css(Tn,"position");"static"===Dn&&(Tn.style.position="relative");var Hn,zn,Vn=Gn(Tn),Kn=Vn.offset(),Wn=Gn.css(Tn,"top"),Xn=Gn.css(Tn,"left"),Yn={},Jn={};("absolute"===Dn||"fixed"===Dn)&&Gn.inArray("auto",[Wn,Xn])>-1?(Hn=(Jn=Vn.position()).top,zn=Jn.left):(Hn=parseFloat(Wn)||0,zn=parseFloat(Xn)||0),Gn.isFunction(Un)&&(Un=Un.call(Tn,Qn,Kn)),null!=Un.top&&(Yn.top=Un.top-Kn.top+Hn),null!=Un.left&&(Yn.left=Un.left-Kn.left+zn),"using"in Un?Un.using.call(Tn,Yn):Vn.css(Yn)}},Gn.fn.extend({position:function position(){if(!this[0])return null;var Tn=this[0],Un=this.offsetParent(),Qn=this.offset(),Dn=Pi.test(Un[0].nodeName)?{top:0,left:0}:Un.offset();return Qn.top-=parseFloat(Gn.css(Tn,"marginTop"))||0,Qn.left-=parseFloat(Gn.css(Tn,"marginLeft"))||0,Dn.top+=parseFloat(Gn.css(Un[0],"borderTopWidth"))||0,Dn.left+=parseFloat(Gn.css(Un[0],"borderLeftWidth"))||0,{top:Qn.top-Dn.top,left:Qn.left-Dn.left}},offsetParent:function offsetParent(){return this.map((function(){for(var Tn=this.offsetParent||Qn.body;Tn&&!Pi.test(Tn.nodeName)&&"static"===Gn.css(Tn,"position");)Tn=Tn.offsetParent;return Tn}))}}),Gn.each(["Left","Top"],(function(Tn,Qn){var Dn="scroll"+Qn;Gn.fn[Dn]=function(Qn){var Hn,zn;return Qn===Un?(Hn=this[0])?(zn=cy(Hn))?"pageXOffset"in zn?zn[Tn?"pageYOffset":"pageXOffset"]:Gn.support.boxModel&&zn.document.documentElement[Dn]||zn.document.body[Dn]:Hn[Dn]:null:this.each((function(){(zn=cy(this))?zn.scrollTo(Tn?Gn(zn).scrollLeft():Qn,Tn?Qn:Gn(zn).scrollTop()):this[Dn]=Qn}))}})),Gn.each(["Height","Width"],(function(Tn,Qn){var Dn=Qn.toLowerCase();Gn.fn["inner"+Qn]=function(){var Tn=this[0];return Tn?Tn.style?parseFloat(Gn.css(Tn,Dn,"padding")):this[Dn]():null},Gn.fn["outer"+Qn]=function(Tn){var Un=this[0];return Un?Un.style?parseFloat(Gn.css(Un,Dn,Tn?"margin":"border")):this[Dn]():null},Gn.fn[Dn]=function(Tn){var Hn=this[0];if(!Hn)return null==Tn?null:this;if(Gn.isFunction(Tn))return this.each((function(Un){var Qn=Gn(this);Qn[Dn](Tn.call(this,Un,Qn[Dn]()))}));if(Gn.isWindow(Hn)){var zn=Hn.document.documentElement["client"+Qn],Vn=Hn.document.body;return"CSS1Compat"===Hn.document.compatMode&&zn||Vn&&Vn["client"+Qn]||zn}if(9===Hn.nodeType)return Math.max(Hn.documentElement["client"+Qn],Hn.body["scroll"+Qn],Hn.documentElement["scroll"+Qn],Hn.body["offset"+Qn],Hn.documentElement["offset"+Qn]);if(Tn===Un){var Kn=Gn.css(Hn,Dn),Wn=parseFloat(Kn);return Gn.isNumeric(Wn)?Wn:Kn}return this.css(Dn,"string"==typeof Tn?Tn:Tn+"px")}})),Tn.jQuery=Tn.$=Gn,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],(function(){return Gn}))}(window);var xo,ko,So,Co={},Bo=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Eo=sharedKey("IE_PROTO"),No=Object.prototype,Lo=Bo?Object.getPrototypeOf:function(Tn){return Tn=toObject(Tn),has(Tn,Eo)?Tn[Eo]:"function"==typeof Tn.constructor&&Tn instanceof Tn.constructor?Tn.constructor.prototype:Tn instanceof Object?No:null},To=wellKnownSymbol("iterator"),Po=!1;[].keys&&("next"in(So=[].keys())?(ko=Lo(Lo(So)))!==Object.prototype&&(xo=ko):Po=!0),null==xo&&(xo={}),has(xo,To)||nr(xo,To,(function(){return this}));var Fo={IteratorPrototype:xo,BUGGY_SAFARI_ITERATORS:Po},Uo=tr.f,Io=wellKnownSymbol("toStringTag"),setToStringTag=function(Tn,Un,Qn){Tn&&!has(Tn=Qn?Tn:Tn.prototype,Io)&&Uo(Tn,Io,{configurable:!0,value:Un})},Ro=Fo.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(Tn,Un,Qn){var Dn=Un+" Iterator";return Tn.prototype=wi(Ro,{next:createPropertyDescriptor(1,Qn)}),setToStringTag(Tn,Dn,!1),Co[Dn]=returnThis$1,Tn},Mo=Fo.IteratorPrototype,Qo=Fo.BUGGY_SAFARI_ITERATORS,Oo=wellKnownSymbol("iterator"),returnThis$2=function(){return this},defineIterator=function(Tn,Un,Qn,Dn,Hn,Gn,zn){createIteratorConstructor(Qn,Un,Dn);var Vn,Kn,Wn,getIterationMethod=function(Tn){if(Tn===Hn&&Zn)return Zn;if(!Qo&&Tn in Jn)return Jn[Tn];switch(Tn){case"keys":return function keys(){return new Qn(this,Tn)};case"values":return function values(){return new Qn(this,Tn)};case"entries":return function entries(){return new Qn(this,Tn)}}return function(){return new Qn(this)}},Xn=Un+" Iterator",Yn=!1,Jn=Tn.prototype,$n=Jn[Oo]||Jn["@@iterator"]||Hn&&Jn[Hn],Zn=!Qo&&$n||getIterationMethod(Hn),er="Array"==Un&&Jn.entries||$n;if(er&&(Vn=Lo(er.call(new Tn)),Mo!==Object.prototype&&Vn.next&&(Lo(Vn)!==Mo&&(Ea?Ea(Vn,Mo):"function"!=typeof Vn[Oo]&&nr(Vn,Oo,returnThis$2)),setToStringTag(Vn,Xn,!0))),"values"==Hn&&$n&&"values"!==$n.name&&(Yn=!0,Zn=function values(){return $n.call(this)}),Jn[Oo]!==Zn&&nr(Jn,Oo,Zn),Co[Un]=Zn,Hn)if(Kn={values:getIterationMethod("values"),keys:Gn?Zn:getIterationMethod("keys"),entries:getIterationMethod("entries")},zn)for(Wn in Kn)(Qo||Yn||!(Wn in Jn))&&Sr(Jn,Wn,Kn[Wn]);else _export({target:Un,proto:!0,forced:Qo||Yn},Kn);return Kn},Do=kr.set,jo=kr.getterFor("Array Iterator"),Ho=defineIterator(Array,"Array",(function(Tn,Un){Do(this,{type:"Array Iterator",target:toIndexedObject(Tn),index:0,kind:Un})}),(function(){var Tn=jo(this),Un=Tn.target,Qn=Tn.kind,Dn=Tn.index++;return!Un||Dn>=Un.length?(Tn.target=void 0,{value:void 0,done:!0}):"keys"==Qn?{value:Dn,done:!1}:"values"==Qn?{value:Un[Dn],done:!1}:{value:[Dn,Un[Dn]],done:!1}}),"values");Co.Arguments=Co.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var Go=[].slice,zo={},construct=function(Tn,Un,Qn){if(!(Un in zo)){for(var Dn=[],Hn=0;Hn<Un;Hn++)Dn[Hn]="a["+Hn+"]";zo[Un]=Function("C,a","return new C("+Dn.join(",")+")")}return zo[Un](Tn,Qn)},Vo=Function.bind||function bind(Tn){var Un=aFunction$1(this),Qn=Go.call(arguments,1),Dn=function bound(){var Hn=Qn.concat(Go.call(arguments));return this instanceof Dn?construct(Un,Hn.length,Hn):Un.apply(Tn,Hn)};return isObject(Un.prototype)&&(Dn.prototype=Un.prototype),Dn};_export({target:"Function",proto:!0},{bind:Vo});var Ko="".repeat||function repeat(Tn){var Un=String(requireObjectCoercible(this)),Qn="",Dn=toInteger(Tn);if(Dn<0||Dn==1/0)throw RangeError("Wrong number of repetitions");for(;Dn>0;(Dn>>>=1)&&(Un+=Un))1&Dn&&(Qn+=Un);return Qn},qo=1..toFixed,Wo=Math.floor,pow=function(Tn,Un,Qn){return 0===Un?Qn:Un%2==1?pow(Tn,Un-1,Qn*Tn):pow(Tn*Tn,Un/2,Qn)},Xo=qo&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!fails((function(){qo.call({})}));_export({target:"Number",proto:!0,forced:Xo},{toFixed:function toFixed(Tn){var Un,Qn,Dn,Hn,Gn=function(Tn){if("number"!=typeof Tn&&"Number"!=classofRaw(Tn))throw TypeError("Incorrect invocation");return+Tn}(this),zn=toInteger(Tn),Vn=[0,0,0,0,0,0],Kn="",Wn="0",multiply=function(Tn,Un){for(var Qn=-1,Dn=Un;++Qn<6;)Dn+=Tn*Vn[Qn],Vn[Qn]=Dn%1e7,Dn=Wo(Dn/1e7)},divide=function(Tn){for(var Un=6,Qn=0;--Un>=0;)Qn+=Vn[Un],Vn[Un]=Wo(Qn/Tn),Qn=Qn%Tn*1e7},dataToString=function(){for(var Tn=6,Un="";--Tn>=0;)if(""!==Un||0===Tn||0!==Vn[Tn]){var Qn=String(Vn[Tn]);Un=""===Un?Qn:Un+Ko.call("0",7-Qn.length)+Qn}return Un};if(zn<0||zn>20)throw RangeError("Incorrect fraction digits");if(Gn!=Gn)return"NaN";if(Gn<=-1e21||Gn>=1e21)return String(Gn);if(Gn<0&&(Kn="-",Gn=-Gn),Gn>1e-21)if(Qn=(Un=function(Tn){for(var Un=0,Qn=Tn;Qn>=4096;)Un+=12,Qn/=4096;for(;Qn>=2;)Un+=1,Qn/=2;return Un}(Gn*pow(2,69,1))-69)<0?Gn*pow(2,-Un,1):Gn/pow(2,Un,1),Qn*=4503599627370496,(Un=52-Un)>0){for(multiply(0,Qn),Dn=zn;Dn>=7;)multiply(1e7,0),Dn-=7;for(multiply(pow(10,Dn,1),0),Dn=Un-1;Dn>=23;)divide(1<<23),Dn-=23;divide(1<<Dn),multiply(1,1),divide(2),Wn=dataToString()}else multiply(0,Qn),multiply(1<<-Un,0),Wn=dataToString()+Ko.call("0",zn);return Wn=zn>0?Kn+((Hn=Wn.length)<=zn?"0."+Ko.call("0",zn-Hn)+Wn:Wn.slice(0,Hn-zn)+"."+Wn.slice(Hn-zn)):Kn+Wn}});var Yo={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},Jo=wellKnownSymbol("iterator"),$o=wellKnownSymbol("toStringTag"),Zo=Ho.values;for(var es in Yo){var ts=Un[es],ns=ts&&ts.prototype;if(ns){if(ns[Jo]!==Zo)try{nr(ns,Jo,Zo)}catch(Tn){ns[Jo]=Zo}if(ns[$o]||nr(ns,$o,es),Yo[es])for(var rs in Ho)if(ns[rs]!==Ho[rs])try{nr(ns,rs,Ho[rs])}catch(Tn){ns[rs]=Ho[rs]}}}
|
||
/*!
|
||
* jQuery UI 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI
|
||
*/!function(Tn,Un){function d(Un){return!Tn(Un).parents().andSelf().filter((function(){return"hidden"===Tn.curCSS(this,"visibility")||Tn.expr.filters.hidden(this)})).length}function c(Un,Qn){var Dn=Un.nodeName.toLowerCase();if("area"===Dn){var Hn,Gn=Un.parentNode,zn=Gn.name;return!(!Un.href||!zn||"map"!==Gn.nodeName.toLowerCase())&&(!!(Hn=Tn("img[usemap=#"+zn+"]")[0])&&d(Hn))}return(/input|select|textarea|button|object/.test(Dn)?!Un.disabled:"a"==Dn&&Un.href||Qn)&&d(Un)}Tn.ui=Tn.ui||{},Tn.ui.version||(Tn.extend(Tn.ui,{version:"1.8.17",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),Tn.fn.extend({propAttr:Tn.fn.prop||Tn.fn.attr,_focus:Tn.fn.focus,focus:function focus(Un,Qn){return"number"==typeof Un?this.each((function(){var Dn=this;setTimeout((function(){Tn(Dn).focus(),Qn&&Qn.call(Dn)}),Un)})):this._focus.apply(this,arguments)},scrollParent:function scrollParent(){var Un;return Un=Tn.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(Tn.curCSS(this,"position",1))&&/(auto|scroll)/.test(Tn.curCSS(this,"overflow",1)+Tn.curCSS(this,"overflow-y",1)+Tn.curCSS(this,"overflow-x",1))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(Tn.curCSS(this,"overflow",1)+Tn.curCSS(this,"overflow-y",1)+Tn.curCSS(this,"overflow-x",1))})).eq(0),/fixed/.test(this.css("position"))||!Un.length?Tn(document):Un},zIndex:function zIndex(Qn){if(Qn!==Un)return this.css("zIndex",Qn);if(this.length)for(var Dn,Hn,Gn=Tn(this[0]);Gn.length&&Gn[0]!==document;){if(("absolute"===(Dn=Gn.css("position"))||"relative"===Dn||"fixed"===Dn)&&(Hn=parseInt(Gn.css("zIndex"),10),!isNaN(Hn)&&0!==Hn))return Hn;Gn=Gn.parent()}return 0},disableSelection:function disableSelection(){return this.bind((Tn.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(Tn){Tn.preventDefault()}))},enableSelection:function enableSelection(){return this.unbind(".ui-disableSelection")}}),Tn.each(["Width","Height"],(function(Qn,Dn){function h(Un,Qn,Dn,Gn){return Tn.each(Hn,(function(){Qn-=parseFloat(Tn.curCSS(Un,"padding"+this,!0))||0,Dn&&(Qn-=parseFloat(Tn.curCSS(Un,"border"+this+"Width",!0))||0),Gn&&(Qn-=parseFloat(Tn.curCSS(Un,"margin"+this,!0))||0)})),Qn}var Hn="Width"===Dn?["Left","Right"]:["Top","Bottom"],Gn=Dn.toLowerCase(),zn={innerWidth:Tn.fn.innerWidth,innerHeight:Tn.fn.innerHeight,outerWidth:Tn.fn.outerWidth,outerHeight:Tn.fn.outerHeight};Tn.fn["inner"+Dn]=function(Qn){return Qn===Un?zn["inner"+Dn].call(this):this.each((function(){Tn(this).css(Gn,h(this,Qn)+"px")}))},Tn.fn["outer"+Dn]=function(Un,Qn){return"number"!=typeof Un?zn["outer"+Dn].call(this,Un):this.each((function(){Tn(this).css(Gn,h(this,Un,!0,Qn)+"px")}))}})),Tn.extend(Tn.expr[":"],{data:function data(Un,Qn,Dn){return!!Tn.data(Un,Dn[3])},focusable:function focusable(Un){return c(Un,!isNaN(Tn.attr(Un,"tabindex")))},tabbable:function tabbable(Un){var Qn=Tn.attr(Un,"tabindex"),Dn=isNaN(Qn);return(Dn||Qn>=0)&&c(Un,!Dn)}}),Tn((function(){var Un=document.body,Qn=Un.appendChild(Qn=document.createElement("div"));Tn.extend(Qn.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),Tn.support.minHeight=100===Qn.offsetHeight,Tn.support.selectstart="onselectstart"in Qn,Un.removeChild(Qn).style.display="none"})),Tn.extend(Tn.ui,{plugin:{add:function add(Un,Qn,Dn){var Hn=Tn.ui[Un].prototype;for(var Gn in Dn)Hn.plugins[Gn]=Hn.plugins[Gn]||[],Hn.plugins[Gn].push([Qn,Dn[Gn]])},call:function call(Tn,Un,Qn){var Dn=Tn.plugins[Un];if(Dn&&Tn.element[0].parentNode)for(var Hn=0;Hn<Dn.length;Hn++)Tn.options[Dn[Hn][0]]&&Dn[Hn][1].apply(Tn.element,Qn)}},contains:function contains(Tn,Un){return document.compareDocumentPosition?16&Tn.compareDocumentPosition(Un):Tn!==Un&&Tn.contains(Un)},hasScroll:function hasScroll(Un,Qn){if("hidden"===Tn(Un).css("overflow"))return!1;var Dn,Hn=Qn&&"left"===Qn?"scrollLeft":"scrollTop";return Un[Hn]>0||(Un[Hn]=1,Dn=Un[Hn]>0,Un[Hn]=0,Dn)},isOverAxis:function isOverAxis(Tn,Un,Qn){return Tn>Un&&Tn<Un+Qn},isOver:function isOver(Un,Qn,Dn,Hn,Gn,zn){return Tn.ui.isOverAxis(Un,Dn,Gn)&&Tn.ui.isOverAxis(Qn,Hn,zn)}}))}(jQuery),
|
||
/*!
|
||
* jQuery UI Widget 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI/Widget
|
||
*/
|
||
function(Tn,Un){if(Tn.cleanData){var Qn=Tn.cleanData;Tn.cleanData=function(Un){for(var Dn,Hn=0;null!=(Dn=Un[Hn]);Hn++)try{Tn(Dn).triggerHandler("remove")}catch(Tn){}Qn(Un)}}else{var Dn=Tn.fn.remove;Tn.fn.remove=function(Un,Qn){return this.each((function(){return Qn||(!Un||Tn.filter(Un,[this]).length)&&Tn("*",this).add([this]).each((function(){try{Tn(this).triggerHandler("remove")}catch(Tn){}})),Dn.call(Tn(this),Un,Qn)}))}}Tn.widget=function(Un,Qn,Dn){var Hn,Gn=Un.split(".")[0];Hn=Gn+"-"+(Un=Un.split(".")[1]),Dn||(Dn=Qn,Qn=Tn.Widget),Tn.expr[":"][Hn]=function(Qn){return!!Tn.data(Qn,Un)},Tn[Gn]=Tn[Gn]||{},Tn[Gn][Un]=function(Tn,Un){arguments.length&&this._createWidget(Tn,Un)};var zn=new Qn;zn.options=Tn.extend(!0,{},zn.options),Tn[Gn][Un].prototype=Tn.extend(!0,zn,{namespace:Gn,widgetName:Un,widgetEventPrefix:Tn[Gn][Un].prototype.widgetEventPrefix||Un,widgetBaseClass:Hn},Dn),Tn.widget.bridge(Un,Tn[Gn][Un])},Tn.widget.bridge=function(Qn,Dn){Tn.fn[Qn]=function(Hn){var Gn="string"==typeof Hn,zn=Array.prototype.slice.call(arguments,1),Vn=this;return Hn=!Gn&&zn.length?Tn.extend.apply(null,[!0,Hn].concat(zn)):Hn,Gn&&"_"===Hn.charAt(0)||(Gn?this.each((function(){var Dn=Tn.data(this,Qn),Gn=Dn&&Tn.isFunction(Dn[Hn])?Dn[Hn].apply(Dn,zn):Dn;if(Gn!==Dn&&Gn!==Un)return Vn=Gn,!1})):this.each((function(){var Un=Tn.data(this,Qn);Un?Un.option(Hn||{})._init():Tn.data(this,Qn,new Dn(Hn,this))}))),Vn}},Tn.Widget=function(Tn,Un){arguments.length&&this._createWidget(Tn,Un)},Tn.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function _createWidget(Un,Qn){Tn.data(Qn,this.widgetName,this),this.element=Tn(Qn),this.options=Tn.extend(!0,{},this.options,this._getCreateOptions(),Un);var Dn=this;this.element.bind("remove."+this.widgetName,(function(){Dn.destroy()})),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function _getCreateOptions(){return Tn.metadata&&Tn.metadata.get(this.element[0])[this.widgetName]},_create:function _create(){},_init:function _init(){},destroy:function destroy(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function widget(){return this.element},option:function option(Qn,Dn){var Hn=Qn;if(0===arguments.length)return Tn.extend({},this.options);if("string"==typeof Qn){if(Dn===Un)return this.options[Qn];(Hn={})[Qn]=Dn}return this._setOptions(Hn),this},_setOptions:function _setOptions(Un){var Qn=this;return Tn.each(Un,(function(Tn,Un){Qn._setOption(Tn,Un)})),this},_setOption:function _setOption(Tn,Un){return this.options[Tn]=Un,"disabled"===Tn&&this.widget()[Un?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",Un),this},enable:function enable(){return this._setOption("disabled",!1)},disable:function disable(){return this._setOption("disabled",!0)},_trigger:function _trigger(Un,Qn,Dn){var Hn,Gn,zn=this.options[Un];if(Dn=Dn||{},(Qn=Tn.Event(Qn)).type=(Un===this.widgetEventPrefix?Un:this.widgetEventPrefix+Un).toLowerCase(),Qn.target=this.element[0],Gn=Qn.originalEvent)for(Hn in Gn)Hn in Qn||(Qn[Hn]=Gn[Hn]);return this.element.trigger(Qn,Dn),!(Tn.isFunction(zn)&&!1===zn.call(this.element[0],Qn,Dn)||Qn.isDefaultPrevented())}}}(jQuery),
|
||
/*!
|
||
* jQuery UI Mouse 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI/Mouse
|
||
*
|
||
* Depends:
|
||
* jquery.ui.widget.js
|
||
*/
|
||
function(Tn,Un){var Qn=!1;Tn(document).mouseup((function(Tn){Qn=!1})),Tn.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function _mouseInit(){var Un=this;this.element.bind("mousedown."+this.widgetName,(function(Tn){return Un._mouseDown(Tn)})).bind("click."+this.widgetName,(function(Qn){if(!0===Tn.data(Qn.target,Un.widgetName+".preventClickEvent"))return Tn.removeData(Qn.target,Un.widgetName+".preventClickEvent"),Qn.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function _mouseDestroy(){this.element.unbind("."+this.widgetName)},_mouseDown:function _mouseDown(Un){if(!Qn){this._mouseStarted&&this._mouseUp(Un),this._mouseDownEvent=Un;var Dn=this,Hn=1==Un.which,Gn=!("string"!=typeof this.options.cancel||!Un.target.nodeName)&&Tn(Un.target).closest(this.options.cancel).length;return!(Hn&&!Gn&&this._mouseCapture(Un))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){Dn.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(Un)&&this._mouseDelayMet(Un)&&(this._mouseStarted=!1!==this._mouseStart(Un),!this._mouseStarted)?(Un.preventDefault(),!0):(!0===Tn.data(Un.target,this.widgetName+".preventClickEvent")&&Tn.removeData(Un.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(Tn){return Dn._mouseMove(Tn)},this._mouseUpDelegate=function(Tn){return Dn._mouseUp(Tn)},Tn(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),Un.preventDefault(),Qn=!0,!0))}},_mouseMove:function _mouseMove(Un){return!Tn.browser.msie||document.documentMode>=9||Un.button?this._mouseStarted?(this._mouseDrag(Un),Un.preventDefault()):(this._mouseDistanceMet(Un)&&this._mouseDelayMet(Un)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,Un),this._mouseStarted?this._mouseDrag(Un):this._mouseUp(Un)),!this._mouseStarted):this._mouseUp(Un)},_mouseUp:function _mouseUp(Un){return Tn(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,Un.target==this._mouseDownEvent.target&&Tn.data(Un.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(Un)),!1},_mouseDistanceMet:function _mouseDistanceMet(Tn){return Math.max(Math.abs(this._mouseDownEvent.pageX-Tn.pageX),Math.abs(this._mouseDownEvent.pageY-Tn.pageY))>=this.options.distance},_mouseDelayMet:function _mouseDelayMet(Tn){return this.mouseDelayMet},_mouseStart:function _mouseStart(Tn){},_mouseDrag:function _mouseDrag(Tn){},_mouseStop:function _mouseStop(Tn){},_mouseCapture:function _mouseCapture(Tn){return!0}})}(jQuery),function(Tn,Un){Tn.widget("ui.draggable",Tn.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function _create(){"original"==this.options.helper&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function destroy(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(Un){var Qn=this.options;return!(this.helper||Qn.disabled||Tn(Un.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(Un),!!this.handle&&(Qn.iframeFix&&Tn(!0===Qn.iframeFix?"iframe":Qn.iframeFix).each((function(){Tn('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(Tn(this).offset()).appendTo("body")})),!0))},_mouseStart:function _mouseStart(Un){var Qn=this.options;return this.helper=this._createHelper(Un),this._cacheHelperProportions(),Tn.ui.ddmanager&&(Tn.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},Tn.extend(this.offset,{click:{left:Un.pageX-this.offset.left,top:Un.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(Un),this.originalPageX=Un.pageX,this.originalPageY=Un.pageY,Qn.cursorAt&&this._adjustOffsetFromHelper(Qn.cursorAt),Qn.containment&&this._setContainment(),!1===this._trigger("start",Un)?(this._clear(),!1):(this._cacheHelperProportions(),Tn.ui.ddmanager&&!Qn.dropBehaviour&&Tn.ui.ddmanager.prepareOffsets(this,Un),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(Un,!0),Tn.ui.ddmanager&&Tn.ui.ddmanager.dragStart(this,Un),!0)},_mouseDrag:function _mouseDrag(Un,Qn){if(this.position=this._generatePosition(Un),this.positionAbs=this._convertPositionTo("absolute"),!Qn){var Dn=this._uiHash();if(!1===this._trigger("drag",Un,Dn))return this._mouseUp({}),!1;this.position=Dn.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),Tn.ui.ddmanager&&Tn.ui.ddmanager.drag(this,Un),!1},_mouseStop:function _mouseStop(Un){var Qn=!1;if(Tn.ui.ddmanager&&!this.options.dropBehaviour&&(Qn=Tn.ui.ddmanager.drop(this,Un)),this.dropped&&(Qn=this.dropped,this.dropped=!1),!(this.element[0]&&this.element[0].parentNode||"original"!=this.options.helper))return!1;if("invalid"==this.options.revert&&!Qn||"valid"==this.options.revert&&Qn||!0===this.options.revert||Tn.isFunction(this.options.revert)&&this.options.revert.call(this.element,Qn)){var Dn=this;Tn(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==Dn._trigger("stop",Un)&&Dn._clear()}))}else!1!==this._trigger("stop",Un)&&this._clear();return!1},_mouseUp:function _mouseUp(Un){return!0===this.options.iframeFix&&Tn("div.ui-draggable-iframeFix").each((function(){this.parentNode.removeChild(this)})),Tn.ui.ddmanager&&Tn.ui.ddmanager.dragStop(this,Un),Tn.ui.mouse.prototype._mouseUp.call(this,Un)},cancel:function cancel(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function _getHandle(Un){var Qn=!this.options.handle||!Tn(this.options.handle,this.element).length;return Tn(this.options.handle,this.element).find("*").andSelf().each((function(){this==Un.target&&(Qn=!0)})),Qn},_createHelper:function _createHelper(Un){var Qn=this.options,Dn=Tn.isFunction(Qn.helper)?Tn(Qn.helper.apply(this.element[0],[Un])):"clone"==Qn.helper?this.element.clone().removeAttr("id"):this.element;return Dn.parents("body").length||Dn.appendTo("parent"==Qn.appendTo?this.element[0].parentNode:Qn.appendTo),Dn[0]!=this.element[0]&&!/(fixed|absolute)/.test(Dn.css("position"))&&Dn.css("position","absolute"),Dn},_adjustOffsetFromHelper:function _adjustOffsetFromHelper(Un){"string"==typeof Un&&(Un=Un.split(" ")),Tn.isArray(Un)&&(Un={left:+Un[0],top:+Un[1]||0}),"left"in Un&&(this.offset.click.left=Un.left+this.margins.left),"right"in Un&&(this.offset.click.left=this.helperProportions.width-Un.right+this.margins.left),"top"in Un&&(this.offset.click.top=Un.top+this.margins.top),"bottom"in Un&&(this.offset.click.top=this.helperProportions.height-Un.bottom+this.margins.top)},_getParentOffset:function _getParentOffset(){this.offsetParent=this.helper.offsetParent();var Un=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&Tn.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(Un.left+=this.scrollParent.scrollLeft(),Un.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&Tn.browser.msie)&&(Un={top:0,left:0}),{top:Un.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:Un.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function _getRelativeOffset(){if("relative"==this.cssPosition){var Tn=this.element.position();return{top:Tn.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:Tn.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function _cacheMargins(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function _cacheHelperProportions(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function _setContainment(){var Un=this.options;if("parent"==Un.containment&&(Un.containment=this.helper[0].parentNode),"document"!=Un.containment&&"window"!=Un.containment||(this.containment=["document"==Un.containment?0:Tn(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==Un.containment?0:Tn(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==Un.containment?0:Tn(window).scrollLeft())+Tn("document"==Un.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==Un.containment?0:Tn(window).scrollTop())+(Tn("document"==Un.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(Un.containment)||Un.containment.constructor==Array)Un.containment.constructor==Array&&(this.containment=Un.containment);else{var Qn=Tn(Un.containment),Dn=Qn[0];if(!Dn)return;Qn.offset();var Hn="hidden"!=Tn(Dn).css("overflow");this.containment=[(parseInt(Tn(Dn).css("borderLeftWidth"),10)||0)+(parseInt(Tn(Dn).css("paddingLeft"),10)||0),(parseInt(Tn(Dn).css("borderTopWidth"),10)||0)+(parseInt(Tn(Dn).css("paddingTop"),10)||0),(Hn?Math.max(Dn.scrollWidth,Dn.offsetWidth):Dn.offsetWidth)-(parseInt(Tn(Dn).css("borderLeftWidth"),10)||0)-(parseInt(Tn(Dn).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(Hn?Math.max(Dn.scrollHeight,Dn.offsetHeight):Dn.offsetHeight)-(parseInt(Tn(Dn).css("borderTopWidth"),10)||0)-(parseInt(Tn(Dn).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=Qn}},_convertPositionTo:function _convertPositionTo(Un,Qn){Qn||(Qn=this.position);var Dn="absolute"==Un?1:-1,Hn=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&Tn.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),Gn=/(html|body)/i.test(Hn[0].tagName);return{top:Qn.top+this.offset.relative.top*Dn+this.offset.parent.top*Dn-(Tn.browser.safari&&Tn.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():Gn?0:Hn.scrollTop())*Dn),left:Qn.left+this.offset.relative.left*Dn+this.offset.parent.left*Dn-(Tn.browser.safari&&Tn.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():Gn?0:Hn.scrollLeft())*Dn)}},_generatePosition:function _generatePosition(Un){var Qn=this.options,Dn="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&Tn.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,Hn=/(html|body)/i.test(Dn[0].tagName),Gn=Un.pageX,zn=Un.pageY;if(this.originalPosition){var Vn;if(this.containment){if(this.relative_container){var Kn=this.relative_container.offset();Vn=[this.containment[0]+Kn.left,this.containment[1]+Kn.top,this.containment[2]+Kn.left,this.containment[3]+Kn.top]}else Vn=this.containment;Un.pageX-this.offset.click.left<Vn[0]&&(Gn=Vn[0]+this.offset.click.left),Un.pageY-this.offset.click.top<Vn[1]&&(zn=Vn[1]+this.offset.click.top),Un.pageX-this.offset.click.left>Vn[2]&&(Gn=Vn[2]+this.offset.click.left),Un.pageY-this.offset.click.top>Vn[3]&&(zn=Vn[3]+this.offset.click.top)}if(Qn.grid){var Wn=Qn.grid[1]?this.originalPageY+Math.round((zn-this.originalPageY)/Qn.grid[1])*Qn.grid[1]:this.originalPageY;zn=Vn&&(Wn-this.offset.click.top<Vn[1]||Wn-this.offset.click.top>Vn[3])?Wn-this.offset.click.top<Vn[1]?Wn+Qn.grid[1]:Wn-Qn.grid[1]:Wn;var Xn=Qn.grid[0]?this.originalPageX+Math.round((Gn-this.originalPageX)/Qn.grid[0])*Qn.grid[0]:this.originalPageX;Gn=Vn&&(Xn-this.offset.click.left<Vn[0]||Xn-this.offset.click.left>Vn[2])?Xn-this.offset.click.left<Vn[0]?Xn+Qn.grid[0]:Xn-Qn.grid[0]:Xn}}return{top:zn-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(Tn.browser.safari&&Tn.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():Hn?0:Dn.scrollTop()),left:Gn-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(Tn.browser.safari&&Tn.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():Hn?0:Dn.scrollLeft())}},_clear:function _clear(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function _trigger(Un,Qn,Dn){return Dn=Dn||this._uiHash(),Tn.ui.plugin.call(this,Un,[Qn,Dn]),"drag"==Un&&(this.positionAbs=this._convertPositionTo("absolute")),Tn.Widget.prototype._trigger.call(this,Un,Qn,Dn)},plugins:{},_uiHash:function _uiHash(Tn){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),Tn.extend(Tn.ui.draggable,{version:"1.8.17"}),Tn.ui.plugin.add("draggable","connectToSortable",{start:function start(Un,Qn){var Dn=Tn(this).data("draggable"),Hn=Dn.options,Gn=Tn.extend({},Qn,{item:Dn.element});Dn.sortables=[],Tn(Hn.connectToSortable).each((function(){var Qn=Tn.data(this,"sortable");Qn&&!Qn.options.disabled&&(Dn.sortables.push({instance:Qn,shouldRevert:Qn.options.revert}),Qn.refreshPositions(),Qn._trigger("activate",Un,Gn))}))},stop:function stop(Un,Qn){var Dn=Tn(this).data("draggable"),Hn=Tn.extend({},Qn,{item:Dn.element});Tn.each(Dn.sortables,(function(){this.instance.isOver?(this.instance.isOver=0,Dn.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(Un),this.instance.options.helper=this.instance.options._helper,"original"==Dn.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",Un,Hn))}))},drag:function drag(Un,Qn){var Dn=Tn(this).data("draggable"),Hn=this;Tn.each(Dn.sortables,(function(Gn){this.instance.positionAbs=Dn.positionAbs,this.instance.helperProportions=Dn.helperProportions,this.instance.offset.click=Dn.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=Tn(Hn).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return Qn.helper[0]},Un.target=this.instance.currentItem[0],this.instance._mouseCapture(Un,!0),this.instance._mouseStart(Un,!0,!0),this.instance.offset.click.top=Dn.offset.click.top,this.instance.offset.click.left=Dn.offset.click.left,this.instance.offset.parent.left-=Dn.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=Dn.offset.parent.top-this.instance.offset.parent.top,Dn._trigger("toSortable",Un),Dn.dropped=this.instance.element,Dn.currentItem=Dn.element,this.instance.fromOutside=Dn),this.instance.currentItem&&this.instance._mouseDrag(Un)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",Un,this.instance._uiHash(this.instance)),this.instance._mouseStop(Un,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),Dn._trigger("fromSortable",Un),Dn.dropped=!1)}))}}),Tn.ui.plugin.add("draggable","cursor",{start:function start(Un,Qn){var Dn=Tn("body"),Hn=Tn(this).data("draggable").options;Dn.css("cursor")&&(Hn._cursor=Dn.css("cursor")),Dn.css("cursor",Hn.cursor)},stop:function stop(Un,Qn){var Dn=Tn(this).data("draggable").options;Dn._cursor&&Tn("body").css("cursor",Dn._cursor)}}),Tn.ui.plugin.add("draggable","opacity",{start:function start(Un,Qn){var Dn=Tn(Qn.helper),Hn=Tn(this).data("draggable").options;Dn.css("opacity")&&(Hn._opacity=Dn.css("opacity")),Dn.css("opacity",Hn.opacity)},stop:function stop(Un,Qn){var Dn=Tn(this).data("draggable").options;Dn._opacity&&Tn(Qn.helper).css("opacity",Dn._opacity)}}),Tn.ui.plugin.add("draggable","scroll",{start:function start(Un,Qn){var Dn=Tn(this).data("draggable");Dn.scrollParent[0]!=document&&"HTML"!=Dn.scrollParent[0].tagName&&(Dn.overflowOffset=Dn.scrollParent.offset())},drag:function drag(Un,Qn){var Dn=Tn(this).data("draggable"),Hn=Dn.options,Gn=!1;Dn.scrollParent[0]!=document&&"HTML"!=Dn.scrollParent[0].tagName?(Hn.axis&&"x"==Hn.axis||(Dn.overflowOffset.top+Dn.scrollParent[0].offsetHeight-Un.pageY<Hn.scrollSensitivity?Dn.scrollParent[0].scrollTop=Gn=Dn.scrollParent[0].scrollTop+Hn.scrollSpeed:Un.pageY-Dn.overflowOffset.top<Hn.scrollSensitivity&&(Dn.scrollParent[0].scrollTop=Gn=Dn.scrollParent[0].scrollTop-Hn.scrollSpeed)),Hn.axis&&"y"==Hn.axis||(Dn.overflowOffset.left+Dn.scrollParent[0].offsetWidth-Un.pageX<Hn.scrollSensitivity?Dn.scrollParent[0].scrollLeft=Gn=Dn.scrollParent[0].scrollLeft+Hn.scrollSpeed:Un.pageX-Dn.overflowOffset.left<Hn.scrollSensitivity&&(Dn.scrollParent[0].scrollLeft=Gn=Dn.scrollParent[0].scrollLeft-Hn.scrollSpeed))):(Hn.axis&&"x"==Hn.axis||(Un.pageY-Tn(document).scrollTop()<Hn.scrollSensitivity?Gn=Tn(document).scrollTop(Tn(document).scrollTop()-Hn.scrollSpeed):Tn(window).height()-(Un.pageY-Tn(document).scrollTop())<Hn.scrollSensitivity&&(Gn=Tn(document).scrollTop(Tn(document).scrollTop()+Hn.scrollSpeed))),Hn.axis&&"y"==Hn.axis||(Un.pageX-Tn(document).scrollLeft()<Hn.scrollSensitivity?Gn=Tn(document).scrollLeft(Tn(document).scrollLeft()-Hn.scrollSpeed):Tn(window).width()-(Un.pageX-Tn(document).scrollLeft())<Hn.scrollSensitivity&&(Gn=Tn(document).scrollLeft(Tn(document).scrollLeft()+Hn.scrollSpeed)))),!1!==Gn&&Tn.ui.ddmanager&&!Hn.dropBehaviour&&Tn.ui.ddmanager.prepareOffsets(Dn,Un)}}),Tn.ui.plugin.add("draggable","snap",{start:function start(Un,Qn){var Dn=Tn(this).data("draggable"),Hn=Dn.options;Dn.snapElements=[],Tn(Hn.snap.constructor!=String?Hn.snap.items||":data(draggable)":Hn.snap).each((function(){var Un=Tn(this),Qn=Un.offset();this!=Dn.element[0]&&Dn.snapElements.push({item:this,width:Un.outerWidth(),height:Un.outerHeight(),top:Qn.top,left:Qn.left})}))},drag:function drag(Un,Qn){for(var Dn=Tn(this).data("draggable"),Hn=Dn.options,Gn=Hn.snapTolerance,zn=Qn.offset.left,Vn=zn+Dn.helperProportions.width,Kn=Qn.offset.top,Wn=Kn+Dn.helperProportions.height,Xn=Dn.snapElements.length-1;Xn>=0;Xn--){var Yn=Dn.snapElements[Xn].left,Jn=Yn+Dn.snapElements[Xn].width,$n=Dn.snapElements[Xn].top,Zn=$n+Dn.snapElements[Xn].height;if(Yn-Gn<zn&&zn<Jn+Gn&&$n-Gn<Kn&&Kn<Zn+Gn||Yn-Gn<zn&&zn<Jn+Gn&&$n-Gn<Wn&&Wn<Zn+Gn||Yn-Gn<Vn&&Vn<Jn+Gn&&$n-Gn<Kn&&Kn<Zn+Gn||Yn-Gn<Vn&&Vn<Jn+Gn&&$n-Gn<Wn&&Wn<Zn+Gn){if("inner"!=Hn.snapMode){var er=Math.abs($n-Wn)<=Gn,tr=Math.abs(Zn-Kn)<=Gn,nr=Math.abs(Yn-Vn)<=Gn,rr=Math.abs(Jn-zn)<=Gn;er&&(Qn.position.top=Dn._convertPositionTo("relative",{top:$n-Dn.helperProportions.height,left:0}).top-Dn.margins.top),tr&&(Qn.position.top=Dn._convertPositionTo("relative",{top:Zn,left:0}).top-Dn.margins.top),nr&&(Qn.position.left=Dn._convertPositionTo("relative",{top:0,left:Yn-Dn.helperProportions.width}).left-Dn.margins.left),rr&&(Qn.position.left=Dn._convertPositionTo("relative",{top:0,left:Jn}).left-Dn.margins.left)}var ir=er||tr||nr||rr;if("outer"!=Hn.snapMode){er=Math.abs($n-Kn)<=Gn,tr=Math.abs(Zn-Wn)<=Gn,nr=Math.abs(Yn-zn)<=Gn,rr=Math.abs(Jn-Vn)<=Gn;er&&(Qn.position.top=Dn._convertPositionTo("relative",{top:$n,left:0}).top-Dn.margins.top),tr&&(Qn.position.top=Dn._convertPositionTo("relative",{top:Zn-Dn.helperProportions.height,left:0}).top-Dn.margins.top),nr&&(Qn.position.left=Dn._convertPositionTo("relative",{top:0,left:Yn}).left-Dn.margins.left),rr&&(Qn.position.left=Dn._convertPositionTo("relative",{top:0,left:Jn-Dn.helperProportions.width}).left-Dn.margins.left)}!Dn.snapElements[Xn].snapping&&(er||tr||nr||rr||ir)&&Dn.options.snap.snap&&Dn.options.snap.snap.call(Dn.element,Un,Tn.extend(Dn._uiHash(),{snapItem:Dn.snapElements[Xn].item})),Dn.snapElements[Xn].snapping=er||tr||nr||rr||ir}else Dn.snapElements[Xn].snapping&&Dn.options.snap.release&&Dn.options.snap.release.call(Dn.element,Un,Tn.extend(Dn._uiHash(),{snapItem:Dn.snapElements[Xn].item})),Dn.snapElements[Xn].snapping=!1}}}),Tn.ui.plugin.add("draggable","stack",{start:function start(Un,Qn){var Dn=Tn(this).data("draggable").options,Hn=Tn.makeArray(Tn(Dn.stack)).sort((function(Un,Qn){return(parseInt(Tn(Un).css("zIndex"),10)||0)-(parseInt(Tn(Qn).css("zIndex"),10)||0)}));if(Hn.length){var Gn=parseInt(Hn[0].style.zIndex)||0;Tn(Hn).each((function(Tn){this.style.zIndex=Gn+Tn})),this[0].style.zIndex=Gn+Hn.length}}}),Tn.ui.plugin.add("draggable","zIndex",{start:function start(Un,Qn){var Dn=Tn(Qn.helper),Hn=Tn(this).data("draggable").options;Dn.css("zIndex")&&(Hn._zIndex=Dn.css("zIndex")),Dn.css("zIndex",Hn.zIndex)},stop:function stop(Un,Qn){var Dn=Tn(this).data("draggable").options;Dn._zIndex&&Tn(Qn.helper).css("zIndex",Dn._zIndex)}})}(jQuery),function(Tn,Un){Tn.widget("ui.slider",Tn.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function _create(){var Un=this,Qn=this.options,Dn=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),Hn=Qn.values&&Qn.values.length||1,Gn=[];this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(Qn.disabled?" ui-slider-disabled ui-disabled":"")),this.range=Tn([]),Qn.range&&(!0===Qn.range&&(Qn.values||(Qn.values=[this._valueMin(),this._valueMin()]),Qn.values.length&&2!==Qn.values.length&&(Qn.values=[Qn.values[0],Qn.values[0]])),this.range=Tn("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===Qn.range||"max"===Qn.range?" ui-slider-range-"+Qn.range:"")));for(var zn=Dn.length;zn<Hn;zn+=1)Gn.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");this.handles=Dn.add(Tn(Gn.join("")).appendTo(Un.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click((function(Tn){Tn.preventDefault()})).hover((function(){Qn.disabled||Tn(this).addClass("ui-state-hover")}),(function(){Tn(this).removeClass("ui-state-hover")})).focus((function(){Qn.disabled?Tn(this).blur():(Tn(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),Tn(this).addClass("ui-state-focus"))})).blur((function(){Tn(this).removeClass("ui-state-focus")})),this.handles.each((function(Un){Tn(this).data("index.ui-slider-handle",Un)})),this.handles.keydown((function(Qn){var Dn,Hn,Gn,zn=!0,Vn=Tn(this).data("index.ui-slider-handle");if(!Un.options.disabled){switch(Qn.keyCode){case Tn.ui.keyCode.HOME:case Tn.ui.keyCode.END:case Tn.ui.keyCode.PAGE_UP:case Tn.ui.keyCode.PAGE_DOWN:case Tn.ui.keyCode.UP:case Tn.ui.keyCode.RIGHT:case Tn.ui.keyCode.DOWN:case Tn.ui.keyCode.LEFT:if(zn=!1,!Un._keySliding&&(Un._keySliding=!0,Tn(this).addClass("ui-state-active"),!1===Un._start(Qn,Vn)))return}switch(Gn=Un.options.step,Dn=Hn=Un.options.values&&Un.options.values.length?Un.values(Vn):Un.value(),Qn.keyCode){case Tn.ui.keyCode.HOME:Hn=Un._valueMin();break;case Tn.ui.keyCode.END:Hn=Un._valueMax();break;case Tn.ui.keyCode.PAGE_UP:Hn=Un._trimAlignValue(Dn+(Un._valueMax()-Un._valueMin())/5);break;case Tn.ui.keyCode.PAGE_DOWN:Hn=Un._trimAlignValue(Dn-(Un._valueMax()-Un._valueMin())/5);break;case Tn.ui.keyCode.UP:case Tn.ui.keyCode.RIGHT:if(Dn===Un._valueMax())return;Hn=Un._trimAlignValue(Dn+Gn);break;case Tn.ui.keyCode.DOWN:case Tn.ui.keyCode.LEFT:if(Dn===Un._valueMin())return;Hn=Un._trimAlignValue(Dn-Gn)}return Un._slide(Qn,Vn,Hn),zn}})).keyup((function(Qn){var Dn=Tn(this).data("index.ui-slider-handle");Un._keySliding&&(Un._keySliding=!1,Un._stop(Qn,Dn),Un._change(Qn,Dn),Tn(this).removeClass("ui-state-active"))})),this._refreshValue(),this._animateOff=!1},destroy:function destroy(){return this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(Un){var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn=this.options;return!Xn.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),Qn={x:Un.pageX,y:Un.pageY},Dn=this._normValueFromMouse(Qn),Hn=this._valueMax()-this._valueMin()+1,zn=this,this.handles.each((function(Un){var Qn=Math.abs(Dn-zn.values(Un));Hn>Qn&&(Hn=Qn,Gn=Tn(this),Vn=Un)})),!0===Xn.range&&this.values(1)===Xn.min&&(Vn+=1,Gn=Tn(this.handles[Vn])),!1!==this._start(Un,Vn)&&(this._mouseSliding=!0,zn._handleIndex=Vn,Gn.addClass("ui-state-active").focus(),Kn=Gn.offset(),Wn=!Tn(Un.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=Wn?{left:0,top:0}:{left:Un.pageX-Kn.left-Gn.width()/2,top:Un.pageY-Kn.top-Gn.height()/2-(parseInt(Gn.css("borderTopWidth"),10)||0)-(parseInt(Gn.css("borderBottomWidth"),10)||0)+(parseInt(Gn.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(Un,Vn,Dn),this._animateOff=!0,!0))},_mouseStart:function _mouseStart(Tn){return!0},_mouseDrag:function _mouseDrag(Tn){var Un={x:Tn.pageX,y:Tn.pageY},Qn=this._normValueFromMouse(Un);return this._slide(Tn,this._handleIndex,Qn),!1},_mouseStop:function _mouseStop(Tn){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(Tn,this._handleIndex),this._change(Tn,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function _detectOrientation(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function _normValueFromMouse(Tn){var Un,Qn,Dn,Hn,Gn;return"horizontal"===this.orientation?(Un=this.elementSize.width,Qn=Tn.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(Un=this.elementSize.height,Qn=Tn.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(Dn=Qn/Un)>1&&(Dn=1),Dn<0&&(Dn=0),"vertical"===this.orientation&&(Dn=1-Dn),Hn=this._valueMax()-this._valueMin(),Gn=this._valueMin()+Dn*Hn,this._trimAlignValue(Gn)},_start:function _start(Tn,Un){var Qn={handle:this.handles[Un],value:this.value()};return this.options.values&&this.options.values.length&&(Qn.value=this.values(Un),Qn.values=this.values()),this._trigger("start",Tn,Qn)},_slide:function _slide(Tn,Un,Qn){var Dn,Hn,Gn;this.options.values&&this.options.values.length?(Dn=this.values(Un?0:1),2===this.options.values.length&&!0===this.options.range&&(0===Un&&Qn>Dn||1===Un&&Qn<Dn)&&(Qn=Dn),Qn!==this.values(Un)&&((Hn=this.values())[Un]=Qn,Gn=this._trigger("slide",Tn,{handle:this.handles[Un],value:Qn,values:Hn}),Dn=this.values(Un?0:1),!1!==Gn&&this.values(Un,Qn,!0))):Qn!==this.value()&&(!1!==(Gn=this._trigger("slide",Tn,{handle:this.handles[Un],value:Qn}))&&this.value(Qn))},_stop:function _stop(Tn,Un){var Qn={handle:this.handles[Un],value:this.value()};this.options.values&&this.options.values.length&&(Qn.value=this.values(Un),Qn.values=this.values()),this._trigger("stop",Tn,Qn)},_change:function _change(Tn,Un){if(!this._keySliding&&!this._mouseSliding){var Qn={handle:this.handles[Un],value:this.value()};this.options.values&&this.options.values.length&&(Qn.value=this.values(Un),Qn.values=this.values()),this._trigger("change",Tn,Qn)}},value:function value(Tn){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(Tn),this._refreshValue(),this._change(null,0)},values:function values(Un,Qn){var Dn,Hn,Gn;if(arguments.length>1)this.options.values[Un]=this._trimAlignValue(Qn),this._refreshValue(),this._change(null,Un);else{if(!arguments.length)return this._values();if(!Tn.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(Un):this.value();for(Dn=this.options.values,Hn=arguments[0],Gn=0;Gn<Dn.length;Gn+=1)Dn[Gn]=this._trimAlignValue(Hn[Gn]),this._change(null,Gn);this._refreshValue()}},_setOption:function _setOption(Un,Qn){var Dn,Hn=0;switch(Tn.isArray(this.options.values)&&(Hn=this.options.values.length),Tn.Widget.prototype._setOption.apply(this,arguments),Un){case"disabled":Qn?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),Dn=0;Dn<Hn;Dn+=1)this._change(null,Dn);this._animateOff=!1}},_value:function _value(){var Tn=this.options.value;return Tn=this._trimAlignValue(Tn)},_values:function _values(Tn){var Un,Qn,Dn;if(arguments.length)return Un=this.options.values[Tn],Un=this._trimAlignValue(Un);for(Qn=this.options.values.slice(),Dn=0;Dn<Qn.length;Dn+=1)Qn[Dn]=this._trimAlignValue(Qn[Dn]);return Qn},_trimAlignValue:function _trimAlignValue(Tn){if(Tn<=this._valueMin())return this._valueMin();if(Tn>=this._valueMax())return this._valueMax();var Un=this.options.step>0?this.options.step:1,Qn=(Tn-this._valueMin())%Un,Dn=Tn-Qn;return 2*Math.abs(Qn)>=Un&&(Dn+=Qn>0?Un:-Un),parseFloat(Dn.toFixed(5))},_valueMin:function _valueMin(){return this.options.min},_valueMax:function _valueMax(){return this.options.max},_refreshValue:function _refreshValue(){var Un,Qn,Dn,Hn,Gn,zn=this.options.range,Vn=this.options,Kn=this,Wn=!this._animateOff&&Vn.animate,Xn={};this.options.values&&this.options.values.length?this.handles.each((function(Dn,Hn){Un=(Kn.values(Dn)-Kn._valueMin())/(Kn._valueMax()-Kn._valueMin())*100,Xn["horizontal"===Kn.orientation?"left":"bottom"]=Un+"%",Tn(this).stop(1,1)[Wn?"animate":"css"](Xn,Vn.animate),!0===Kn.options.range&&("horizontal"===Kn.orientation?(0===Dn&&Kn.range.stop(1,1)[Wn?"animate":"css"]({left:Un+"%"},Vn.animate),1===Dn&&Kn.range[Wn?"animate":"css"]({width:Un-Qn+"%"},{queue:!1,duration:Vn.animate})):(0===Dn&&Kn.range.stop(1,1)[Wn?"animate":"css"]({bottom:Un+"%"},Vn.animate),1===Dn&&Kn.range[Wn?"animate":"css"]({height:Un-Qn+"%"},{queue:!1,duration:Vn.animate}))),Qn=Un})):(Dn=this.value(),Hn=this._valueMin(),Gn=this._valueMax(),Un=Gn!==Hn?(Dn-Hn)/(Gn-Hn)*100:0,Xn["horizontal"===Kn.orientation?"left":"bottom"]=Un+"%",this.handle.stop(1,1)[Wn?"animate":"css"](Xn,Vn.animate),"min"===zn&&"horizontal"===this.orientation&&this.range.stop(1,1)[Wn?"animate":"css"]({width:Un+"%"},Vn.animate),"max"===zn&&"horizontal"===this.orientation&&this.range[Wn?"animate":"css"]({width:100-Un+"%"},{queue:!1,duration:Vn.animate}),"min"===zn&&"vertical"===this.orientation&&this.range.stop(1,1)[Wn?"animate":"css"]({height:Un+"%"},Vn.animate),"max"===zn&&"vertical"===this.orientation&&this.range[Wn?"animate":"css"]({height:100-Un+"%"},{queue:!1,duration:Vn.animate}))}}),Tn.extend(Tn.ui.slider,{version:"1.8.17"})}(jQuery);var as=ui.every,os=arrayMethodIsStrict("every"),ss=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!os||!ss},{every:function every(Tn){return as(this,Tn,arguments.length>1?arguments[1]:void 0)}});var ls=ui.forEach,us=arrayMethodIsStrict("forEach"),ds=arrayMethodUsesToLength("forEach"),hs=us&&ds?[].forEach:function forEach(Tn){return ls(this,Tn,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=hs},{forEach:hs});var ps=Pr.includes,As=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!As},{includes:function includes(Tn){return ps(this,Tn,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var createMethod$4=function(Tn){return function(Un,Qn,Dn,Hn){aFunction$1(Qn);var Gn=toObject(Un),zn=Kn(Gn),Vn=toLength(Gn.length),Wn=Tn?Vn-1:0,Xn=Tn?-1:1;if(Dn<2)for(;;){if(Wn in zn){Hn=zn[Wn],Wn+=Xn;break}if(Wn+=Xn,Tn?Wn<0:Vn<=Wn)throw TypeError("Reduce of empty array with no initial value")}for(;Tn?Wn>=0:Vn>Wn;Wn+=Xn)Wn in zn&&(Hn=Qn(Hn,zn[Wn],Wn,Gn));return Hn}},fs={left:createMethod$4(!1),right:createMethod$4(!0)},gs=fs.left,ms=arrayMethodIsStrict("reduce"),_s=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!ms||!_s},{reduce:function reduce(Tn){return gs(this,Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}});var vs=ui.some,ys=arrayMethodIsStrict("some"),bs=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!ys||!bs},{some:function some(Tn){return vs(this,Tn,arguments.length>1?arguments[1]:void 0)}});var ws=Rr.f,xs=Zn.f,ks=tr.f,Ss=ya.trim,Cs=Un.Number,Bs=Cs.prototype,Es="Number"==classofRaw(wi(Bs)),toNumber=function(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn=toPrimitive(Tn,!1);if("string"==typeof Wn&&Wn.length>2)if(43===(Un=(Wn=Ss(Wn)).charCodeAt(0))||45===Un){if(88===(Qn=Wn.charCodeAt(2))||120===Qn)return NaN}else if(48===Un){switch(Wn.charCodeAt(1)){case 66:case 98:Dn=2,Hn=49;break;case 79:case 111:Dn=8,Hn=55;break;default:return+Wn}for(zn=(Gn=Wn.slice(2)).length,Vn=0;Vn<zn;Vn++)if((Kn=Gn.charCodeAt(Vn))<48||Kn>Hn)return NaN;return parseInt(Gn,Dn)}return+Wn};if(zr("Number",!Cs(" 0o1")||!Cs("0b1")||Cs("+0x1"))){for(var Ns,Ls=function Number(Tn){var Un=arguments.length<1?0:Tn,Qn=this;return Qn instanceof Ls&&(Es?fails((function(){Bs.valueOf.call(Qn)})):"Number"!=classofRaw(Qn))?inheritIfRequired(new Cs(toNumber(Un)),Qn,Ls):toNumber(Un)},Ts=Qn?ws(Cs):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Ps=0;Ts.length>Ps;Ps++)has(Cs,Ns=Ts[Ps])&&!has(Ls,Ns)&&ks(Ls,Ns,xs(Cs,Ns));Ls.prototype=Bs,Bs.constructor=Ls,Sr(Un,"Number",Ls)}_export({target:"Number",stat:!0},{isNaN:function isNaN(Tn){return Tn!=Tn}}),_export({target:"Number",stat:!0,forced:Number.parseFloat!=xa},{parseFloat:xa}),_export({target:"Number",stat:!0,forced:Number.parseInt!=Ba},{parseInt:Ba});var Fs=Gn.f,createMethod$5=function(Tn){return function(Un){for(var Dn,Hn=toIndexedObject(Un),Gn=mi(Hn),zn=Gn.length,Vn=0,Kn=[];zn>Vn;)Dn=Gn[Vn++],Qn&&!Fs.call(Hn,Dn)||Kn.push(Tn?[Dn,Hn[Dn]]:Hn[Dn]);return Kn}},Us={entries:createMethod$5(!0),values:createMethod$5(!1)},Is=Us.entries;_export({target:"Object",stat:!0},{entries:function entries(Tn){return Is(Tn)}});var Rs=fails((function(){mi(1)}));_export({target:"Object",stat:!0,forced:Rs},{keys:function keys(Tn){return mi(toObject(Tn))}});var Ms=Us.values;_export({target:"Object",stat:!0},{values:function values(Tn){return Ms(Tn)}});var Qs=Un.Promise,redefineAll=function(Tn,Un,Qn){for(var Dn in Un)Sr(Tn,Dn,Un[Dn],Qn);return Tn},anInstance=function(Tn,Un,Qn){if(!(Tn instanceof Un))throw TypeError("Incorrect "+(Qn?Qn+" ":"")+"invocation");return Tn},Os=wellKnownSymbol("iterator"),Ds=Array.prototype,isArrayIteratorMethod=function(Tn){return void 0!==Tn&&(Co.Array===Tn||Ds[Os]===Tn)},js=wellKnownSymbol("iterator"),getIteratorMethod=function(Tn){if(null!=Tn)return Tn[js]||Tn["@@iterator"]||Co[Aa(Tn)]},callWithSafeIterationClosing=function(Tn,Un,Qn,Dn){try{return Dn?Un(anObject(Qn)[0],Qn[1]):Un(Qn)}catch(Un){var Hn=Tn.return;throw void 0!==Hn&&anObject(Hn.call(Tn)),Un}},Hs=createCommonjsModule((function(Tn){var Result=function(Tn,Un){this.stopped=Tn,this.result=Un};(Tn.exports=function(Tn,Un,Qn,Dn,Hn){var Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn=functionBindContext(Un,Qn,Dn?2:1);if(Hn)Gn=Tn;else{if("function"!=typeof(zn=getIteratorMethod(Tn)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(zn)){for(Vn=0,Kn=toLength(Tn.length);Kn>Vn;Vn++)if((Wn=Dn?Jn(anObject(Yn=Tn[Vn])[0],Yn[1]):Jn(Tn[Vn]))&&Wn instanceof Result)return Wn;return new Result(!1)}Gn=zn.call(Tn)}for(Xn=Gn.next;!(Yn=Xn.call(Gn)).done;)if("object"==typeof(Wn=callWithSafeIterationClosing(Gn,Jn,Yn.value,Dn))&&Wn&&Wn instanceof Result)return Wn;return new Result(!1)}).stop=function(Tn){return new Result(!0,Tn)}})),Gs=wellKnownSymbol("iterator"),zs=!1;try{var Vs=0,Ks={next:function(){return{done:!!Vs++}},return:function(){zs=!0}};Ks[Gs]=function(){return this},Array.from(Ks,(function(){throw 2}))}catch(Tn){}var qs,Ws,Xs,checkCorrectnessOfIteration=function(Tn,Un){if(!Un&&!zs)return!1;var Qn=!1;try{var Dn={};Dn[Gs]=function(){return{next:function(){return{done:Qn=!0}}}},Tn(Dn)}catch(Tn){}return Qn},Ys=/(iphone|ipod|ipad).*applewebkit/i.test(Zr),Js=Un.location,$s=Un.setImmediate,Zs=Un.clearImmediate,el=Un.process,tl=Un.MessageChannel,nl=Un.Dispatch,rl=0,il={},run=function(Tn){if(il.hasOwnProperty(Tn)){var Un=il[Tn];delete il[Tn],Un()}},runner=function(Tn){return function(){run(Tn)}},listener=function(Tn){run(Tn.data)},post=function(Tn){Un.postMessage(Tn+"",Js.protocol+"//"+Js.host)};$s&&Zs||($s=function setImmediate(Tn){for(var Un=[],Qn=1;arguments.length>Qn;)Un.push(arguments[Qn++]);return il[++rl]=function(){("function"==typeof Tn?Tn:Function(Tn)).apply(void 0,Un)},qs(rl),rl},Zs=function clearImmediate(Tn){delete il[Tn]},"process"==classofRaw(el)?qs=function(Tn){el.nextTick(runner(Tn))}:nl&&nl.now?qs=function(Tn){nl.now(runner(Tn))}:tl&&!Ys?(Xs=(Ws=new tl).port2,Ws.port1.onmessage=listener,qs=functionBindContext(Xs.postMessage,Xs,1)):!Un.addEventListener||"function"!=typeof postMessage||Un.importScripts||fails(post)||"file:"===Js.protocol?qs="onreadystatechange"in documentCreateElement("script")?function(Tn){vi.appendChild(documentCreateElement("script")).onreadystatechange=function(){vi.removeChild(this),run(Tn)}}:function(Tn){setTimeout(runner(Tn),0)}:(qs=post,Un.addEventListener("message",listener,!1)));var al,ol,sl,ll,cl,ul,dl,hl,pl={set:$s,clear:Zs},Al=Zn.f,fl=pl.set,gl=Un.MutationObserver||Un.WebKitMutationObserver,ml=Un.process,_l=Un.Promise,vl="process"==classofRaw(ml),yl=Al(Un,"queueMicrotask"),wl=yl&&yl.value;wl||(al=function(){var Tn,Un;for(vl&&(Tn=ml.domain)&&Tn.exit();ol;){Un=ol.fn,ol=ol.next;try{Un()}catch(Tn){throw ol?ll():sl=void 0,Tn}}sl=void 0,Tn&&Tn.enter()},vl?ll=function(){ml.nextTick(al)}:gl&&!Ys?(cl=!0,ul=document.createTextNode(""),new gl(al).observe(ul,{characterData:!0}),ll=function(){ul.data=cl=!cl}):_l&&_l.resolve?(dl=_l.resolve(void 0),hl=dl.then,ll=function(){hl.call(dl,al)}):ll=function(){fl.call(Un,al)});var xl,kl,Sl,Cl,Bl=wl||function(Tn){var Un={fn:Tn,next:void 0};sl&&(sl.next=Un),ol||(ol=Un,ll()),sl=Un},PromiseCapability=function(Tn){var Un,Qn;this.promise=new Tn((function(Tn,Dn){if(void 0!==Un||void 0!==Qn)throw TypeError("Bad Promise constructor");Un=Tn,Qn=Dn})),this.resolve=aFunction$1(Un),this.reject=aFunction$1(Qn)},El={f:function(Tn){return new PromiseCapability(Tn)}},promiseResolve=function(Tn,Un){if(anObject(Tn),isObject(Un)&&Un.constructor===Tn)return Un;var Qn=El.f(Tn);return(0,Qn.resolve)(Un),Qn.promise},perform=function(Tn){try{return{error:!1,value:Tn()}}catch(Tn){return{error:!0,value:Tn}}},Nl=pl.set,Ll=wellKnownSymbol("species"),Tl="Promise",Pl=kr.get,Fl=kr.set,Ul=kr.getterFor(Tl),Il=Qs,Rl=Un.TypeError,Ml=Un.document,Ql=Un.process,Ol=getBuiltIn("fetch"),Dl=El.f,jl=Dl,Hl="process"==classofRaw(Ql),Gl=!!(Ml&&Ml.createEvent&&Un.dispatchEvent),zl=zr(Tl,(function(){if(!(lr(Il)!==String(Il))){if(66===ri)return!0;if(!Hl&&"function"!=typeof PromiseRejectionEvent)return!0}if(ri>=51&&/native code/.test(Il))return!1;var Tn=Il.resolve(1),FakePromise=function(Tn){Tn((function(){}),(function(){}))};return(Tn.constructor={})[Ll]=FakePromise,!(Tn.then((function(){}))instanceof FakePromise)})),Vl=zl||!checkCorrectnessOfIteration((function(Tn){Il.all(Tn).catch((function(){}))})),isThenable=function(Tn){var Un;return!(!isObject(Tn)||"function"!=typeof(Un=Tn.then))&&Un},notify$1=function(Tn,Un,Qn){if(!Un.notified){Un.notified=!0;var Dn=Un.reactions;Bl((function(){for(var Hn=Un.value,Gn=1==Un.state,zn=0;Dn.length>zn;){var Vn,Kn,Wn,Xn=Dn[zn++],Yn=Gn?Xn.ok:Xn.fail,Jn=Xn.resolve,$n=Xn.reject,Zn=Xn.domain;try{Yn?(Gn||(2===Un.rejection&&onHandleUnhandled(Tn,Un),Un.rejection=1),!0===Yn?Vn=Hn:(Zn&&Zn.enter(),Vn=Yn(Hn),Zn&&(Zn.exit(),Wn=!0)),Vn===Xn.promise?$n(Rl("Promise-chain cycle")):(Kn=isThenable(Vn))?Kn.call(Vn,Jn,$n):Jn(Vn)):$n(Hn)}catch(Tn){Zn&&!Wn&&Zn.exit(),$n(Tn)}}Un.reactions=[],Un.notified=!1,Qn&&!Un.rejection&&onUnhandled(Tn,Un)}))}},dispatchEvent=function(Tn,Qn,Dn){var Hn,Gn;Gl?((Hn=Ml.createEvent("Event")).promise=Qn,Hn.reason=Dn,Hn.initEvent(Tn,!1,!0),Un.dispatchEvent(Hn)):Hn={promise:Qn,reason:Dn},(Gn=Un["on"+Tn])?Gn(Hn):"unhandledrejection"===Tn&&function(Tn,Qn){var Dn=Un.console;Dn&&Dn.error&&(1===arguments.length?Dn.error(Tn):Dn.error(Tn,Qn))}("Unhandled promise rejection",Dn)},onUnhandled=function(Tn,Qn){Nl.call(Un,(function(){var Un,Dn=Qn.value;if(isUnhandled(Qn)&&(Un=perform((function(){Hl?Ql.emit("unhandledRejection",Dn,Tn):dispatchEvent("unhandledrejection",Tn,Dn)})),Qn.rejection=Hl||isUnhandled(Qn)?2:1,Un.error))throw Un.value}))},isUnhandled=function(Tn){return 1!==Tn.rejection&&!Tn.parent},onHandleUnhandled=function(Tn,Qn){Nl.call(Un,(function(){Hl?Ql.emit("rejectionHandled",Tn):dispatchEvent("rejectionhandled",Tn,Qn.value)}))},bind=function(Tn,Un,Qn,Dn){return function(Hn){Tn(Un,Qn,Hn,Dn)}},internalReject=function(Tn,Un,Qn,Dn){Un.done||(Un.done=!0,Dn&&(Un=Dn),Un.value=Qn,Un.state=2,notify$1(Tn,Un,!0))},internalResolve=function(Tn,Un,Qn,Dn){if(!Un.done){Un.done=!0,Dn&&(Un=Dn);try{if(Tn===Qn)throw Rl("Promise can't be resolved itself");var Hn=isThenable(Qn);Hn?Bl((function(){var Dn={done:!1};try{Hn.call(Qn,bind(internalResolve,Tn,Dn,Un),bind(internalReject,Tn,Dn,Un))}catch(Qn){internalReject(Tn,Dn,Qn,Un)}})):(Un.value=Qn,Un.state=1,notify$1(Tn,Un,!1))}catch(Qn){internalReject(Tn,{done:!1},Qn,Un)}}};zl&&(Il=function Promise(Tn){anInstance(this,Il,Tl),aFunction$1(Tn),xl.call(this);var Un=Pl(this);try{Tn(bind(internalResolve,this,Un),bind(internalReject,this,Un))}catch(Tn){internalReject(this,Un,Tn)}},(xl=function Promise(Tn){Fl(this,{type:Tl,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(Il.prototype,{then:function then(Tn,Un){var Qn=Ul(this),Dn=Dl(speciesConstructor(this,Il));return Dn.ok="function"!=typeof Tn||Tn,Dn.fail="function"==typeof Un&&Un,Dn.domain=Hl?Ql.domain:void 0,Qn.parent=!0,Qn.reactions.push(Dn),0!=Qn.state&¬ify$1(this,Qn,!1),Dn.promise},catch:function(Tn){return this.then(void 0,Tn)}}),kl=function(){var Tn=new xl,Un=Pl(Tn);this.promise=Tn,this.resolve=bind(internalResolve,Tn,Un),this.reject=bind(internalReject,Tn,Un)},El.f=Dl=function(Tn){return Tn===Il||Tn===Sl?new kl(Tn):jl(Tn)},"function"==typeof Qs&&(Cl=Qs.prototype.then,Sr(Qs.prototype,"then",(function then(Tn,Un){var Qn=this;return new Il((function(Tn,Un){Cl.call(Qn,Tn,Un)})).then(Tn,Un)}),{unsafe:!0}),"function"==typeof Ol&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(Tn){return promiseResolve(Il,Ol.apply(Un,arguments))}}))),_export({global:!0,wrap:!0,forced:zl},{Promise:Il}),setToStringTag(Il,Tl,!1),setSpecies(Tl),Sl=getBuiltIn(Tl),_export({target:Tl,stat:!0,forced:zl},{reject:function reject(Tn){var Un=Dl(this);return Un.reject.call(void 0,Tn),Un.promise}}),_export({target:Tl,stat:!0,forced:zl},{resolve:function resolve(Tn){return promiseResolve(this,Tn)}}),_export({target:Tl,stat:!0,forced:Vl},{all:function all(Tn){var Un=this,Qn=Dl(Un),Dn=Qn.resolve,Hn=Qn.reject,Gn=perform((function(){var Qn=aFunction$1(Un.resolve),Gn=[],zn=0,Vn=1;Hs(Tn,(function(Tn){var Kn=zn++,Wn=!1;Gn.push(void 0),Vn++,Qn.call(Un,Tn).then((function(Tn){Wn||(Wn=!0,Gn[Kn]=Tn,--Vn||Dn(Gn))}),Hn)})),--Vn||Dn(Gn)}));return Gn.error&&Hn(Gn.value),Qn.promise},race:function race(Tn){var Un=this,Qn=Dl(Un),Dn=Qn.reject,Hn=perform((function(){var Hn=aFunction$1(Un.resolve);Hs(Tn,(function(Tn){Hn.call(Un,Tn).then(Qn.resolve,Dn)}))}));return Hn.error&&Dn(Hn.value),Qn.promise}});var notARegexp=function(Tn){if(isRegexp(Tn))throw TypeError("The method doesn't accept regular expressions");return Tn},Kl=wellKnownSymbol("match"),correctIsRegexpLogic=function(Tn){var Un=/./;try{"/./"[Tn](Un)}catch(Qn){try{return Un[Kl]=!1,"/./"[Tn](Un)}catch(Tn){}}return!1};_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function includes(Tn){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(Tn),arguments.length>1?arguments[1]:void 0)}});var ql=lo.charAt,Wl=kr.set,Xl=kr.getterFor("String Iterator");defineIterator(String,"String",(function(Tn){Wl(this,{type:"String Iterator",string:String(Tn),index:0})}),(function next(){var Tn,Un=Xl(this),Qn=Un.string,Dn=Un.index;return Dn>=Qn.length?{value:void 0,done:!0}:(Tn=ql(Qn,Dn),Un.index+=Tn.length,{value:Tn,done:!1})}));var Yl=Object.is||function is(Tn,Un){return Tn===Un?0!==Tn||1/Tn==1/Un:Tn!=Tn&&Un!=Un};fixRegexpWellKnownSymbolLogic("search",1,(function(Tn,Un,Qn){return[function search(Un){var Qn=requireObjectCoercible(this),Dn=null==Un?void 0:Un[Tn];return void 0!==Dn?Dn.call(Un,Qn):new RegExp(Un)[Tn](String(Qn))},function(Tn){var Dn=Qn(Un,Tn,this);if(Dn.done)return Dn.value;var Hn=anObject(Tn),Gn=String(this),zn=Hn.lastIndex;Yl(zn,0)||(Hn.lastIndex=0);var Vn=regexpExecAbstract(Hn,Gn);return Yl(Hn.lastIndex,zn)||(Hn.lastIndex=zn),null===Vn?-1:Vn.index}]}));var Jl,$l=Zn.f,Zl="".startsWith,ec=Math.min,tc=correctIsRegexpLogic("startsWith"),nc=!(tc||(Jl=$l(String.prototype,"startsWith"),!Jl||Jl.writable));for(var rc in _export({target:"String",proto:!0,forced:!nc&&!tc},{startsWith:function startsWith(Tn){var Un=String(requireObjectCoercible(this));notARegexp(Tn);var Qn=toLength(ec(arguments.length>1?arguments[1]:void 0,Un.length)),Dn=String(Tn);return Zl?Zl.call(Un,Dn,Qn):Un.slice(Qn,Qn+Dn.length)===Dn}}),Yo){var ic=Un[rc],ac=ic&&ic.prototype;if(ac&&ac.forEach!==hs)try{nr(ac,"forEach",hs)}catch(Tn){ac.forEach=hs}}var oc=wellKnownSymbol("iterator"),sc=!fails((function(){var Tn=new URL("b?a=1&b=2&c=3","http://a"),Un=Tn.searchParams,Qn="";return Tn.pathname="c%20d",Un.forEach((function(Tn,Dn){Un.delete("b"),Qn+=Dn+Tn})),!Un.sort||"http://a/c%20d?a=1&c=3"!==Tn.href||"3"!==Un.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!Un[oc]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==Qn||"x"!==new URL("http://x",void 0).host})),lc=Object.assign,uc=Object.defineProperty,dc=!lc||fails((function(){if(Qn&&1!==lc({b:1},lc(uc({},"a",{enumerable:!0,get:function(){uc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var Tn={},Un={},Dn=Symbol(),Hn="abcdefghijklmnopqrst";return Tn[Dn]=7,Hn.split("").forEach((function(Tn){Un[Tn]=Tn})),7!=lc({},Tn)[Dn]||mi(lc({},Un)).join("")!=Hn}))?function assign(Tn,Un){for(var Dn=toObject(Tn),Hn=arguments.length,zn=1,Vn=Mr.f,Wn=Gn.f;Hn>zn;)for(var Xn,Yn=Kn(arguments[zn++]),Jn=Vn?mi(Yn).concat(Vn(Yn)):mi(Yn),$n=Jn.length,Zn=0;$n>Zn;)Xn=Jn[Zn++],Qn&&!Wn.call(Yn,Xn)||(Dn[Xn]=Yn[Xn]);return Dn}:lc,hc=function from(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn=toObject(Tn),Kn="function"==typeof this?this:Array,Wn=arguments.length,Xn=Wn>1?arguments[1]:void 0,Yn=void 0!==Xn,Jn=getIteratorMethod(Vn),$n=0;if(Yn&&(Xn=functionBindContext(Xn,Wn>2?arguments[2]:void 0,2)),null==Jn||Kn==Array&&isArrayIteratorMethod(Jn))for(Qn=new Kn(Un=toLength(Vn.length));Un>$n;$n++)zn=Yn?Xn(Vn[$n],$n):Vn[$n],createProperty(Qn,$n,zn);else for(Gn=(Hn=Jn.call(Vn)).next,Qn=new Kn;!(Dn=Gn.call(Hn)).done;$n++)zn=Yn?callWithSafeIterationClosing(Hn,Xn,[Dn.value,$n],!0):Dn.value,createProperty(Qn,$n,zn);return Qn.length=$n,Qn},pc=/[^\0-\u007E]/,Ac=/[.\u3002\uFF0E\uFF61]/g,fc="Overflow: input needs wider integers to process",gc=Math.floor,mc=String.fromCharCode,digitToBasic=function(Tn){return Tn+22+75*(Tn<26)},adapt=function(Tn,Un,Qn){var Dn=0;for(Tn=Qn?gc(Tn/700):Tn>>1,Tn+=gc(Tn/Un);Tn>455;Dn+=36)Tn=gc(Tn/35);return gc(Dn+36*Tn/(Tn+38))},encode=function(Tn){var Un,Qn,Dn=[],Hn=(Tn=function(Tn){for(var Un=[],Qn=0,Dn=Tn.length;Qn<Dn;){var Hn=Tn.charCodeAt(Qn++);if(Hn>=55296&&Hn<=56319&&Qn<Dn){var Gn=Tn.charCodeAt(Qn++);56320==(64512&Gn)?Un.push(((1023&Hn)<<10)+(1023&Gn)+65536):(Un.push(Hn),Qn--)}else Un.push(Hn)}return Un}(Tn)).length,Gn=128,zn=0,Vn=72;for(Un=0;Un<Tn.length;Un++)(Qn=Tn[Un])<128&&Dn.push(mc(Qn));var Kn=Dn.length,Wn=Kn;for(Kn&&Dn.push("-");Wn<Hn;){var Xn=2147483647;for(Un=0;Un<Tn.length;Un++)(Qn=Tn[Un])>=Gn&&Qn<Xn&&(Xn=Qn);var Yn=Wn+1;if(Xn-Gn>gc((2147483647-zn)/Yn))throw RangeError(fc);for(zn+=(Xn-Gn)*Yn,Gn=Xn,Un=0;Un<Tn.length;Un++){if((Qn=Tn[Un])<Gn&&++zn>2147483647)throw RangeError(fc);if(Qn==Gn){for(var Jn=zn,$n=36;;$n+=36){var Zn=$n<=Vn?1:$n>=Vn+26?26:$n-Vn;if(Jn<Zn)break;var er=Jn-Zn,tr=36-Zn;Dn.push(mc(digitToBasic(Zn+er%tr))),Jn=gc(er/tr)}Dn.push(mc(digitToBasic(Jn))),Vn=adapt(zn,Yn,Wn==Kn),zn=0,++Wn}}++zn,++Gn}return Dn.join("")},getIterator=function(Tn){var Un=getIteratorMethod(Tn);if("function"!=typeof Un)throw TypeError(String(Tn)+" is not iterable");return anObject(Un.call(Tn))},_c=getBuiltIn("fetch"),vc=getBuiltIn("Headers"),yc=wellKnownSymbol("iterator"),bc=kr.set,wc=kr.getterFor("URLSearchParams"),xc=kr.getterFor("URLSearchParamsIterator"),kc=/\+/g,Sc=Array(4),percentSequence=function(Tn){return Sc[Tn-1]||(Sc[Tn-1]=RegExp("((?:%[\\da-f]{2}){"+Tn+"})","gi"))},percentDecode=function(Tn){try{return decodeURIComponent(Tn)}catch(Un){return Tn}},deserialize=function(Tn){var Un=Tn.replace(kc," "),Qn=4;try{return decodeURIComponent(Un)}catch(Tn){for(;Qn;)Un=Un.replace(percentSequence(Qn--),percentDecode);return Un}},Cc=/[!'()~]|%20/g,Bc={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(Tn){return Bc[Tn]},serialize=function(Tn){return encodeURIComponent(Tn).replace(Cc,replacer)},parseSearchParams=function(Tn,Un){if(Un)for(var Qn,Dn,Hn=Un.split("&"),Gn=0;Gn<Hn.length;)(Qn=Hn[Gn++]).length&&(Dn=Qn.split("="),Tn.push({key:deserialize(Dn.shift()),value:deserialize(Dn.join("="))}))},updateSearchParams=function(Tn){this.entries.length=0,parseSearchParams(this.entries,Tn)},validateArgumentsLength=function(Tn,Un){if(Tn<Un)throw TypeError("Not enough arguments")},Ec=createIteratorConstructor((function Iterator(Tn,Un){bc(this,{type:"URLSearchParamsIterator",iterator:getIterator(wc(Tn).entries),kind:Un})}),"Iterator",(function next(){var Tn=xc(this),Un=Tn.kind,Qn=Tn.iterator.next(),Dn=Qn.value;return Qn.done||(Qn.value="keys"===Un?Dn.key:"values"===Un?Dn.value:[Dn.key,Dn.value]),Qn})),Nc=function URLSearchParams(){anInstance(this,Nc,"URLSearchParams");var Tn,Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn=arguments.length>0?arguments[0]:void 0,Xn=this,Yn=[];if(bc(Xn,{type:"URLSearchParams",entries:Yn,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==Wn)if(isObject(Wn))if("function"==typeof(Tn=getIteratorMethod(Wn)))for(Qn=(Un=Tn.call(Wn)).next;!(Dn=Qn.call(Un)).done;){if((zn=(Gn=(Hn=getIterator(anObject(Dn.value))).next).call(Hn)).done||(Vn=Gn.call(Hn)).done||!Gn.call(Hn).done)throw TypeError("Expected sequence with length 2");Yn.push({key:zn.value+"",value:Vn.value+""})}else for(Kn in Wn)has(Wn,Kn)&&Yn.push({key:Kn,value:Wn[Kn]+""});else parseSearchParams(Yn,"string"==typeof Wn?"?"===Wn.charAt(0)?Wn.slice(1):Wn:Wn+"")},Lc=Nc.prototype;redefineAll(Lc,{append:function append(Tn,Un){validateArgumentsLength(arguments.length,2);var Qn=wc(this);Qn.entries.push({key:Tn+"",value:Un+""}),Qn.updateURL()},delete:function(Tn){validateArgumentsLength(arguments.length,1);for(var Un=wc(this),Qn=Un.entries,Dn=Tn+"",Hn=0;Hn<Qn.length;)Qn[Hn].key===Dn?Qn.splice(Hn,1):Hn++;Un.updateURL()},get:function get(Tn){validateArgumentsLength(arguments.length,1);for(var Un=wc(this).entries,Qn=Tn+"",Dn=0;Dn<Un.length;Dn++)if(Un[Dn].key===Qn)return Un[Dn].value;return null},getAll:function getAll(Tn){validateArgumentsLength(arguments.length,1);for(var Un=wc(this).entries,Qn=Tn+"",Dn=[],Hn=0;Hn<Un.length;Hn++)Un[Hn].key===Qn&&Dn.push(Un[Hn].value);return Dn},has:function has(Tn){validateArgumentsLength(arguments.length,1);for(var Un=wc(this).entries,Qn=Tn+"",Dn=0;Dn<Un.length;)if(Un[Dn++].key===Qn)return!0;return!1},set:function set(Tn,Un){validateArgumentsLength(arguments.length,1);for(var Qn,Dn=wc(this),Hn=Dn.entries,Gn=!1,zn=Tn+"",Vn=Un+"",Kn=0;Kn<Hn.length;Kn++)(Qn=Hn[Kn]).key===zn&&(Gn?Hn.splice(Kn--,1):(Gn=!0,Qn.value=Vn));Gn||Hn.push({key:zn,value:Vn}),Dn.updateURL()},sort:function sort(){var Tn,Un,Qn,Dn=wc(this),Hn=Dn.entries,Gn=Hn.slice();for(Hn.length=0,Qn=0;Qn<Gn.length;Qn++){for(Tn=Gn[Qn],Un=0;Un<Qn;Un++)if(Hn[Un].key>Tn.key){Hn.splice(Un,0,Tn);break}Un===Qn&&Hn.push(Tn)}Dn.updateURL()},forEach:function forEach(Tn){for(var Un,Qn=wc(this).entries,Dn=functionBindContext(Tn,arguments.length>1?arguments[1]:void 0,3),Hn=0;Hn<Qn.length;)Dn((Un=Qn[Hn++]).value,Un.key,this)},keys:function keys(){return new Ec(this,"keys")},values:function values(){return new Ec(this,"values")},entries:function entries(){return new Ec(this,"entries")}},{enumerable:!0}),Sr(Lc,yc,Lc.entries),Sr(Lc,"toString",(function toString(){for(var Tn,Un=wc(this).entries,Qn=[],Dn=0;Dn<Un.length;)Tn=Un[Dn++],Qn.push(serialize(Tn.key)+"="+serialize(Tn.value));return Qn.join("&")}),{enumerable:!0}),setToStringTag(Nc,"URLSearchParams"),_export({global:!0,forced:!sc},{URLSearchParams:Nc}),sc||"function"!=typeof _c||"function"!=typeof vc||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(Tn){var Un,Qn,Dn,Hn=[Tn];return arguments.length>1&&(isObject(Un=arguments[1])&&(Qn=Un.body,"URLSearchParams"===Aa(Qn)&&((Dn=Un.headers?new vc(Un.headers):new vc).has("content-type")||Dn.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Un=wi(Un,{body:createPropertyDescriptor(0,String(Qn)),headers:createPropertyDescriptor(0,Dn)}))),Hn.push(Un)),_c.apply(this,Hn)}});var Tc,Pc={URLSearchParams:Nc,getState:wc},Fc=lo.codeAt,Uc=Un.URL,Ic=Pc.URLSearchParams,Rc=Pc.getState,Mc=kr.set,Qc=kr.getterFor("URL"),Oc=Math.floor,Dc=Math.pow,jc=/[A-Za-z]/,Hc=/[\d+-.A-Za-z]/,Gc=/\d/,zc=/^(0x|0X)/,Vc=/^[0-7]+$/,Kc=/^\d+$/,qc=/^[\dA-Fa-f]+$/,Wc=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Xc=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Yc=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Jc=/[\u0009\u000A\u000D]/g,parseHost=function(Tn,Un){var Qn,Dn,Hn;if("["==Un.charAt(0)){if("]"!=Un.charAt(Un.length-1))return"Invalid host";if(!(Qn=parseIPv6(Un.slice(1,-1))))return"Invalid host";Tn.host=Qn}else if(isSpecial(Tn)){if(Un=function(Tn){var Un,Qn,Dn=[],Hn=Tn.toLowerCase().replace(Ac,".").split(".");for(Un=0;Un<Hn.length;Un++)Qn=Hn[Un],Dn.push(pc.test(Qn)?"xn--"+encode(Qn):Qn);return Dn.join(".")}(Un),Wc.test(Un))return"Invalid host";if(null===(Qn=parseIPv4(Un)))return"Invalid host";Tn.host=Qn}else{if(Xc.test(Un))return"Invalid host";for(Qn="",Dn=hc(Un),Hn=0;Hn<Dn.length;Hn++)Qn+=percentEncode(Dn[Hn],$c);Tn.host=Qn}},parseIPv4=function(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn=Tn.split(".");if(Kn.length&&""==Kn[Kn.length-1]&&Kn.pop(),(Un=Kn.length)>4)return Tn;for(Qn=[],Dn=0;Dn<Un;Dn++){if(""==(Hn=Kn[Dn]))return Tn;if(Gn=10,Hn.length>1&&"0"==Hn.charAt(0)&&(Gn=zc.test(Hn)?16:8,Hn=Hn.slice(8==Gn?1:2)),""===Hn)zn=0;else{if(!(10==Gn?Kc:8==Gn?Vc:qc).test(Hn))return Tn;zn=parseInt(Hn,Gn)}Qn.push(zn)}for(Dn=0;Dn<Un;Dn++)if(zn=Qn[Dn],Dn==Un-1){if(zn>=Dc(256,5-Un))return null}else if(zn>255)return null;for(Vn=Qn.pop(),Dn=0;Dn<Qn.length;Dn++)Vn+=Qn[Dn]*Dc(256,3-Dn);return Vn},parseIPv6=function(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn=[0,0,0,0,0,0,0,0],Wn=0,Xn=null,Yn=0,char=function(){return Tn.charAt(Yn)};if(":"==char()){if(":"!=Tn.charAt(1))return;Yn+=2,Xn=++Wn}for(;char();){if(8==Wn)return;if(":"!=char()){for(Un=Qn=0;Qn<4&&qc.test(char());)Un=16*Un+parseInt(char(),16),Yn++,Qn++;if("."==char()){if(0==Qn)return;if(Yn-=Qn,Wn>6)return;for(Dn=0;char();){if(Hn=null,Dn>0){if(!("."==char()&&Dn<4))return;Yn++}if(!Gc.test(char()))return;for(;Gc.test(char());){if(Gn=parseInt(char(),10),null===Hn)Hn=Gn;else{if(0==Hn)return;Hn=10*Hn+Gn}if(Hn>255)return;Yn++}Kn[Wn]=256*Kn[Wn]+Hn,2!=++Dn&&4!=Dn||Wn++}if(4!=Dn)return;break}if(":"==char()){if(Yn++,!char())return}else if(char())return;Kn[Wn++]=Un}else{if(null!==Xn)return;Yn++,Xn=++Wn}}if(null!==Xn)for(zn=Wn-Xn,Wn=7;0!=Wn&&zn>0;)Vn=Kn[Wn],Kn[Wn--]=Kn[Xn+zn-1],Kn[Xn+--zn]=Vn;else if(8!=Wn)return;return Kn},serializeHost=function(Tn){var Un,Qn,Dn,Hn;if("number"==typeof Tn){for(Un=[],Qn=0;Qn<4;Qn++)Un.unshift(Tn%256),Tn=Oc(Tn/256);return Un.join(".")}if("object"==typeof Tn){for(Un="",Dn=function(Tn){for(var Un=null,Qn=1,Dn=null,Hn=0,Gn=0;Gn<8;Gn++)0!==Tn[Gn]?(Hn>Qn&&(Un=Dn,Qn=Hn),Dn=null,Hn=0):(null===Dn&&(Dn=Gn),++Hn);return Hn>Qn&&(Un=Dn,Qn=Hn),Un}(Tn),Qn=0;Qn<8;Qn++)Hn&&0===Tn[Qn]||(Hn&&(Hn=!1),Dn===Qn?(Un+=Qn?":":"::",Hn=!0):(Un+=Tn[Qn].toString(16),Qn<7&&(Un+=":")));return"["+Un+"]"}return Tn},$c={},Zc=dc({},$c,{" ":1,'"':1,"<":1,">":1,"`":1}),eu=dc({},Zc,{"#":1,"?":1,"{":1,"}":1}),tu=dc({},eu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(Tn,Un){var Qn=Fc(Tn,0);return Qn>32&&Qn<127&&!has(Un,Tn)?Tn:encodeURIComponent(Tn)},nu={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(Tn){return has(nu,Tn.scheme)},includesCredentials=function(Tn){return""!=Tn.username||""!=Tn.password},cannotHaveUsernamePasswordPort=function(Tn){return!Tn.host||Tn.cannotBeABaseURL||"file"==Tn.scheme},isWindowsDriveLetter=function(Tn,Un){var Qn;return 2==Tn.length&&jc.test(Tn.charAt(0))&&(":"==(Qn=Tn.charAt(1))||!Un&&"|"==Qn)},startsWithWindowsDriveLetter=function(Tn){var Un;return Tn.length>1&&isWindowsDriveLetter(Tn.slice(0,2))&&(2==Tn.length||"/"===(Un=Tn.charAt(2))||"\\"===Un||"?"===Un||"#"===Un)},shortenURLsPath=function(Tn){var Un=Tn.path,Qn=Un.length;!Qn||"file"==Tn.scheme&&1==Qn&&isWindowsDriveLetter(Un[0],!0)||Un.pop()},isSingleDot=function(Tn){return"."===Tn||"%2e"===Tn.toLowerCase()},ru={},iu={},au={},ou={},su={},lu={},uu={},du={},hu={},pu={},Au={},fu={},gu={},mu={},_u={},vu={},yu={},bu={},wu={},xu={},ku={},parseURL=function(Tn,Un,Qn,Dn){var Hn,Gn,zn,Vn,Kn,Wn=Qn||ru,Xn=0,Yn="",Jn=!1,$n=!1,Zn=!1;for(Qn||(Tn.scheme="",Tn.username="",Tn.password="",Tn.host=null,Tn.port=null,Tn.path=[],Tn.query=null,Tn.fragment=null,Tn.cannotBeABaseURL=!1,Un=Un.replace(Yc,"")),Un=Un.replace(Jc,""),Hn=hc(Un);Xn<=Hn.length;){switch(Gn=Hn[Xn],Wn){case ru:if(!Gn||!jc.test(Gn)){if(Qn)return"Invalid scheme";Wn=au;continue}Yn+=Gn.toLowerCase(),Wn=iu;break;case iu:if(Gn&&(Hc.test(Gn)||"+"==Gn||"-"==Gn||"."==Gn))Yn+=Gn.toLowerCase();else{if(":"!=Gn){if(Qn)return"Invalid scheme";Yn="",Wn=au,Xn=0;continue}if(Qn&&(isSpecial(Tn)!=has(nu,Yn)||"file"==Yn&&(includesCredentials(Tn)||null!==Tn.port)||"file"==Tn.scheme&&!Tn.host))return;if(Tn.scheme=Yn,Qn)return void(isSpecial(Tn)&&nu[Tn.scheme]==Tn.port&&(Tn.port=null));Yn="","file"==Tn.scheme?Wn=mu:isSpecial(Tn)&&Dn&&Dn.scheme==Tn.scheme?Wn=ou:isSpecial(Tn)?Wn=du:"/"==Hn[Xn+1]?(Wn=su,Xn++):(Tn.cannotBeABaseURL=!0,Tn.path.push(""),Wn=wu)}break;case au:if(!Dn||Dn.cannotBeABaseURL&&"#"!=Gn)return"Invalid scheme";if(Dn.cannotBeABaseURL&&"#"==Gn){Tn.scheme=Dn.scheme,Tn.path=Dn.path.slice(),Tn.query=Dn.query,Tn.fragment="",Tn.cannotBeABaseURL=!0,Wn=ku;break}Wn="file"==Dn.scheme?mu:lu;continue;case ou:if("/"!=Gn||"/"!=Hn[Xn+1]){Wn=lu;continue}Wn=hu,Xn++;break;case su:if("/"==Gn){Wn=pu;break}Wn=bu;continue;case lu:if(Tn.scheme=Dn.scheme,Gn==Tc)Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.query=Dn.query;else if("/"==Gn||"\\"==Gn&&isSpecial(Tn))Wn=uu;else if("?"==Gn)Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.query="",Wn=xu;else{if("#"!=Gn){Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.path.pop(),Wn=bu;continue}Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.query=Dn.query,Tn.fragment="",Wn=ku}break;case uu:if(!isSpecial(Tn)||"/"!=Gn&&"\\"!=Gn){if("/"!=Gn){Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Wn=bu;continue}Wn=pu}else Wn=hu;break;case du:if(Wn=hu,"/"!=Gn||"/"!=Yn.charAt(Xn+1))continue;Xn++;break;case hu:if("/"!=Gn&&"\\"!=Gn){Wn=pu;continue}break;case pu:if("@"==Gn){Jn&&(Yn="%40"+Yn),Jn=!0,zn=hc(Yn);for(var er=0;er<zn.length;er++){var tr=zn[er];if(":"!=tr||Zn){var nr=percentEncode(tr,tu);Zn?Tn.password+=nr:Tn.username+=nr}else Zn=!0}Yn=""}else if(Gn==Tc||"/"==Gn||"?"==Gn||"#"==Gn||"\\"==Gn&&isSpecial(Tn)){if(Jn&&""==Yn)return"Invalid authority";Xn-=hc(Yn).length+1,Yn="",Wn=Au}else Yn+=Gn;break;case Au:case fu:if(Qn&&"file"==Tn.scheme){Wn=vu;continue}if(":"!=Gn||$n){if(Gn==Tc||"/"==Gn||"?"==Gn||"#"==Gn||"\\"==Gn&&isSpecial(Tn)){if(isSpecial(Tn)&&""==Yn)return"Invalid host";if(Qn&&""==Yn&&(includesCredentials(Tn)||null!==Tn.port))return;if(Vn=parseHost(Tn,Yn))return Vn;if(Yn="",Wn=yu,Qn)return;continue}"["==Gn?$n=!0:"]"==Gn&&($n=!1),Yn+=Gn}else{if(""==Yn)return"Invalid host";if(Vn=parseHost(Tn,Yn))return Vn;if(Yn="",Wn=gu,Qn==fu)return}break;case gu:if(!Gc.test(Gn)){if(Gn==Tc||"/"==Gn||"?"==Gn||"#"==Gn||"\\"==Gn&&isSpecial(Tn)||Qn){if(""!=Yn){var rr=parseInt(Yn,10);if(rr>65535)return"Invalid port";Tn.port=isSpecial(Tn)&&rr===nu[Tn.scheme]?null:rr,Yn=""}if(Qn)return;Wn=yu;continue}return"Invalid port"}Yn+=Gn;break;case mu:if(Tn.scheme="file","/"==Gn||"\\"==Gn)Wn=_u;else{if(!Dn||"file"!=Dn.scheme){Wn=bu;continue}if(Gn==Tc)Tn.host=Dn.host,Tn.path=Dn.path.slice(),Tn.query=Dn.query;else if("?"==Gn)Tn.host=Dn.host,Tn.path=Dn.path.slice(),Tn.query="",Wn=xu;else{if("#"!=Gn){startsWithWindowsDriveLetter(Hn.slice(Xn).join(""))||(Tn.host=Dn.host,Tn.path=Dn.path.slice(),shortenURLsPath(Tn)),Wn=bu;continue}Tn.host=Dn.host,Tn.path=Dn.path.slice(),Tn.query=Dn.query,Tn.fragment="",Wn=ku}}break;case _u:if("/"==Gn||"\\"==Gn){Wn=vu;break}Dn&&"file"==Dn.scheme&&!startsWithWindowsDriveLetter(Hn.slice(Xn).join(""))&&(isWindowsDriveLetter(Dn.path[0],!0)?Tn.path.push(Dn.path[0]):Tn.host=Dn.host),Wn=bu;continue;case vu:if(Gn==Tc||"/"==Gn||"\\"==Gn||"?"==Gn||"#"==Gn){if(!Qn&&isWindowsDriveLetter(Yn))Wn=bu;else if(""==Yn){if(Tn.host="",Qn)return;Wn=yu}else{if(Vn=parseHost(Tn,Yn))return Vn;if("localhost"==Tn.host&&(Tn.host=""),Qn)return;Yn="",Wn=yu}continue}Yn+=Gn;break;case yu:if(isSpecial(Tn)){if(Wn=bu,"/"!=Gn&&"\\"!=Gn)continue}else if(Qn||"?"!=Gn)if(Qn||"#"!=Gn){if(Gn!=Tc&&(Wn=bu,"/"!=Gn))continue}else Tn.fragment="",Wn=ku;else Tn.query="",Wn=xu;break;case bu:if(Gn==Tc||"/"==Gn||"\\"==Gn&&isSpecial(Tn)||!Qn&&("?"==Gn||"#"==Gn)){if(".."===(Kn=(Kn=Yn).toLowerCase())||"%2e."===Kn||".%2e"===Kn||"%2e%2e"===Kn?(shortenURLsPath(Tn),"/"==Gn||"\\"==Gn&&isSpecial(Tn)||Tn.path.push("")):isSingleDot(Yn)?"/"==Gn||"\\"==Gn&&isSpecial(Tn)||Tn.path.push(""):("file"==Tn.scheme&&!Tn.path.length&&isWindowsDriveLetter(Yn)&&(Tn.host&&(Tn.host=""),Yn=Yn.charAt(0)+":"),Tn.path.push(Yn)),Yn="","file"==Tn.scheme&&(Gn==Tc||"?"==Gn||"#"==Gn))for(;Tn.path.length>1&&""===Tn.path[0];)Tn.path.shift();"?"==Gn?(Tn.query="",Wn=xu):"#"==Gn&&(Tn.fragment="",Wn=ku)}else Yn+=percentEncode(Gn,eu);break;case wu:"?"==Gn?(Tn.query="",Wn=xu):"#"==Gn?(Tn.fragment="",Wn=ku):Gn!=Tc&&(Tn.path[0]+=percentEncode(Gn,$c));break;case xu:Qn||"#"!=Gn?Gn!=Tc&&("'"==Gn&&isSpecial(Tn)?Tn.query+="%27":Tn.query+="#"==Gn?"%23":percentEncode(Gn,$c)):(Tn.fragment="",Wn=ku);break;case ku:Gn!=Tc&&(Tn.fragment+=percentEncode(Gn,Zc))}Xn++}},Su=function URL(Tn){var Un,Dn,Hn=anInstance(this,Su,"URL"),Gn=arguments.length>1?arguments[1]:void 0,zn=String(Tn),Vn=Mc(Hn,{type:"URL"});if(void 0!==Gn)if(Gn instanceof Su)Un=Qc(Gn);else if(Dn=parseURL(Un={},String(Gn)))throw TypeError(Dn);if(Dn=parseURL(Vn,zn,null,Un))throw TypeError(Dn);var Kn=Vn.searchParams=new Ic,Wn=Rc(Kn);Wn.updateSearchParams(Vn.query),Wn.updateURL=function(){Vn.query=String(Kn)||null},Qn||(Hn.href=serializeURL.call(Hn),Hn.origin=getOrigin.call(Hn),Hn.protocol=getProtocol.call(Hn),Hn.username=getUsername.call(Hn),Hn.password=getPassword.call(Hn),Hn.host=getHost.call(Hn),Hn.hostname=getHostname.call(Hn),Hn.port=getPort.call(Hn),Hn.pathname=getPathname.call(Hn),Hn.search=getSearch.call(Hn),Hn.searchParams=getSearchParams.call(Hn),Hn.hash=getHash.call(Hn))},Cu=Su.prototype,serializeURL=function(){var Tn=Qc(this),Un=Tn.scheme,Qn=Tn.username,Dn=Tn.password,Hn=Tn.host,Gn=Tn.port,zn=Tn.path,Vn=Tn.query,Kn=Tn.fragment,Wn=Un+":";return null!==Hn?(Wn+="//",includesCredentials(Tn)&&(Wn+=Qn+(Dn?":"+Dn:"")+"@"),Wn+=serializeHost(Hn),null!==Gn&&(Wn+=":"+Gn)):"file"==Un&&(Wn+="//"),Wn+=Tn.cannotBeABaseURL?zn[0]:zn.length?"/"+zn.join("/"):"",null!==Vn&&(Wn+="?"+Vn),null!==Kn&&(Wn+="#"+Kn),Wn},getOrigin=function(){var Tn=Qc(this),Un=Tn.scheme,Qn=Tn.port;if("blob"==Un)try{return new URL(Un.path[0]).origin}catch(Tn){return"null"}return"file"!=Un&&isSpecial(Tn)?Un+"://"+serializeHost(Tn.host)+(null!==Qn?":"+Qn:""):"null"},getProtocol=function(){return Qc(this).scheme+":"},getUsername=function(){return Qc(this).username},getPassword=function(){return Qc(this).password},getHost=function(){var Tn=Qc(this),Un=Tn.host,Qn=Tn.port;return null===Un?"":null===Qn?serializeHost(Un):serializeHost(Un)+":"+Qn},getHostname=function(){var Tn=Qc(this).host;return null===Tn?"":serializeHost(Tn)},getPort=function(){var Tn=Qc(this).port;return null===Tn?"":String(Tn)},getPathname=function(){var Tn=Qc(this),Un=Tn.path;return Tn.cannotBeABaseURL?Un[0]:Un.length?"/"+Un.join("/"):""},getSearch=function(){var Tn=Qc(this).query;return Tn?"?"+Tn:""},getSearchParams=function(){return Qc(this).searchParams},getHash=function(){var Tn=Qc(this).fragment;return Tn?"#"+Tn:""},accessorDescriptor=function(Tn,Un){return{get:Tn,set:Un,configurable:!0,enumerable:!0}};if(Qn&&_i(Cu,{href:accessorDescriptor(serializeURL,(function(Tn){var Un=Qc(this),Qn=String(Tn),Dn=parseURL(Un,Qn);if(Dn)throw TypeError(Dn);Rc(Un.searchParams).updateSearchParams(Un.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(Tn){var Un=Qc(this);parseURL(Un,String(Tn)+":",ru)})),username:accessorDescriptor(getUsername,(function(Tn){var Un=Qc(this),Qn=hc(String(Tn));if(!cannotHaveUsernamePasswordPort(Un)){Un.username="";for(var Dn=0;Dn<Qn.length;Dn++)Un.username+=percentEncode(Qn[Dn],tu)}})),password:accessorDescriptor(getPassword,(function(Tn){var Un=Qc(this),Qn=hc(String(Tn));if(!cannotHaveUsernamePasswordPort(Un)){Un.password="";for(var Dn=0;Dn<Qn.length;Dn++)Un.password+=percentEncode(Qn[Dn],tu)}})),host:accessorDescriptor(getHost,(function(Tn){var Un=Qc(this);Un.cannotBeABaseURL||parseURL(Un,String(Tn),Au)})),hostname:accessorDescriptor(getHostname,(function(Tn){var Un=Qc(this);Un.cannotBeABaseURL||parseURL(Un,String(Tn),fu)})),port:accessorDescriptor(getPort,(function(Tn){var Un=Qc(this);cannotHaveUsernamePasswordPort(Un)||(""==(Tn=String(Tn))?Un.port=null:parseURL(Un,Tn,gu))})),pathname:accessorDescriptor(getPathname,(function(Tn){var Un=Qc(this);Un.cannotBeABaseURL||(Un.path=[],parseURL(Un,Tn+"",yu))})),search:accessorDescriptor(getSearch,(function(Tn){var Un=Qc(this);""==(Tn=String(Tn))?Un.query=null:("?"==Tn.charAt(0)&&(Tn=Tn.slice(1)),Un.query="",parseURL(Un,Tn,xu)),Rc(Un.searchParams).updateSearchParams(Un.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(Tn){var Un=Qc(this);""!=(Tn=String(Tn))?("#"==Tn.charAt(0)&&(Tn=Tn.slice(1)),Un.fragment="",parseURL(Un,Tn,ku)):Un.fragment=null}))}),Sr(Cu,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),Sr(Cu,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),Uc){var Bu=Uc.createObjectURL,Eu=Uc.revokeObjectURL;Bu&&Sr(Su,"createObjectURL",(function createObjectURL(Tn){return Bu.apply(Uc,arguments)})),Eu&&Sr(Su,"revokeObjectURL",(function revokeObjectURL(Tn){return Eu.apply(Uc,arguments)}))}setToStringTag(Su,"URL"),_export({global:!0,forced:!sc,sham:!Qn},{URL:Su});var Nu=Rr.f,Lu={}.toString,Tu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Pu={f:function getOwnPropertyNames(Tn){return Tu&&"[object Window]"==Lu.call(Tn)?function(Tn){try{return Nu(Tn)}catch(Tn){return Tu.slice()}}(Tn):Nu(toIndexedObject(Tn))}},Fu={f:wellKnownSymbol},Uu=tr.f,defineWellKnownSymbol=function(Tn){var Un=Cr.Symbol||(Cr.Symbol={});has(Un,Tn)||Uu(Un,Tn,{value:Fu.f(Tn)})},Iu=ui.forEach,Ru=sharedKey("hidden"),Mu=wellKnownSymbol("toPrimitive"),Qu=kr.set,Ou=kr.getterFor("Symbol"),Du=Object.prototype,ju=Un.Symbol,Hu=getBuiltIn("JSON","stringify"),Gu=Zn.f,zu=tr.f,Vu=Pu.f,Ku=Gn.f,qu=dr("symbols"),Wu=dr("op-symbols"),Xu=dr("string-to-symbol-registry"),Yu=dr("symbol-to-string-registry"),Ju=dr("wks"),$u=Un.QObject,Zu=!$u||!$u.prototype||!$u.prototype.findChild,ed=Qn&&fails((function(){return 7!=wi(zu({},"a",{get:function(){return zu(this,"a",{value:7}).a}})).a}))?function(Tn,Un,Qn){var Dn=Gu(Du,Un);Dn&&delete Du[Un],zu(Tn,Un,Qn),Dn&&Tn!==Du&&zu(Du,Un,Dn)}:zu,wrap=function(Tn,Un){var Dn=qu[Tn]=wi(ju.prototype);return Qu(Dn,{type:"Symbol",tag:Tn,description:Un}),Qn||(Dn.description=Un),Dn},td=Wr?function(Tn){return"symbol"==typeof Tn}:function(Tn){return Object(Tn)instanceof ju},nd=function defineProperty(Tn,Un,Qn){Tn===Du&&nd(Wu,Un,Qn),anObject(Tn);var Dn=toPrimitive(Un,!0);return anObject(Qn),has(qu,Dn)?(Qn.enumerable?(has(Tn,Ru)&&Tn[Ru][Dn]&&(Tn[Ru][Dn]=!1),Qn=wi(Qn,{enumerable:createPropertyDescriptor(0,!1)})):(has(Tn,Ru)||zu(Tn,Ru,createPropertyDescriptor(1,{})),Tn[Ru][Dn]=!0),ed(Tn,Dn,Qn)):zu(Tn,Dn,Qn)},rd=function defineProperties(Tn,Un){anObject(Tn);var Dn=toIndexedObject(Un),Hn=mi(Dn).concat(sd(Dn));return Iu(Hn,(function(Un){Qn&&!id.call(Dn,Un)||nd(Tn,Un,Dn[Un])})),Tn},id=function propertyIsEnumerable(Tn){var Un=toPrimitive(Tn,!0),Qn=Ku.call(this,Un);return!(this===Du&&has(qu,Un)&&!has(Wu,Un))&&(!(Qn||!has(this,Un)||!has(qu,Un)||has(this,Ru)&&this[Ru][Un])||Qn)},ad=function getOwnPropertyDescriptor(Tn,Un){var Qn=toIndexedObject(Tn),Dn=toPrimitive(Un,!0);if(Qn!==Du||!has(qu,Dn)||has(Wu,Dn)){var Hn=Gu(Qn,Dn);return!Hn||!has(qu,Dn)||has(Qn,Ru)&&Qn[Ru][Dn]||(Hn.enumerable=!0),Hn}},od=function getOwnPropertyNames(Tn){var Un=Vu(toIndexedObject(Tn)),Qn=[];return Iu(Un,(function(Tn){has(qu,Tn)||has(fr,Tn)||Qn.push(Tn)})),Qn},sd=function getOwnPropertySymbols(Tn){var Un=Tn===Du,Qn=Vu(Un?Wu:toIndexedObject(Tn)),Dn=[];return Iu(Qn,(function(Tn){!has(qu,Tn)||Un&&!has(Du,Tn)||Dn.push(qu[Tn])})),Dn};if(qr||(Sr((ju=function Symbol(){if(this instanceof ju)throw TypeError("Symbol is not a constructor");var Tn=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,Un=uid(Tn),setter=function(Tn){this===Du&&setter.call(Wu,Tn),has(this,Ru)&&has(this[Ru],Un)&&(this[Ru][Un]=!1),ed(this,Un,createPropertyDescriptor(1,Tn))};return Qn&&Zu&&ed(Du,Un,{configurable:!0,set:setter}),wrap(Un,Tn)}).prototype,"toString",(function toString(){return Ou(this).tag})),Sr(ju,"withoutSetter",(function(Tn){return wrap(uid(Tn),Tn)})),Gn.f=id,tr.f=nd,Zn.f=ad,Rr.f=Pu.f=od,Mr.f=sd,Fu.f=function(Tn){return wrap(wellKnownSymbol(Tn),Tn)},Qn&&(zu(ju.prototype,"description",{configurable:!0,get:function description(){return Ou(this).description}}),Sr(Du,"propertyIsEnumerable",id,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!qr,sham:!qr},{Symbol:ju}),Iu(mi(Ju),(function(Tn){defineWellKnownSymbol(Tn)})),_export({target:"Symbol",stat:!0,forced:!qr},{for:function(Tn){var Un=String(Tn);if(has(Xu,Un))return Xu[Un];var Qn=ju(Un);return Xu[Un]=Qn,Yu[Qn]=Un,Qn},keyFor:function keyFor(Tn){if(!td(Tn))throw TypeError(Tn+" is not a symbol");if(has(Yu,Tn))return Yu[Tn]},useSetter:function(){Zu=!0},useSimple:function(){Zu=!1}}),_export({target:"Object",stat:!0,forced:!qr,sham:!Qn},{create:function create(Tn,Un){return void 0===Un?wi(Tn):rd(wi(Tn),Un)},defineProperty:nd,defineProperties:rd,getOwnPropertyDescriptor:ad}),_export({target:"Object",stat:!0,forced:!qr},{getOwnPropertyNames:od,getOwnPropertySymbols:sd}),_export({target:"Object",stat:!0,forced:fails((function(){Mr.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(Tn){return Mr.f(toObject(Tn))}}),Hu){var ld=!qr||fails((function(){var Tn=ju();return"[null]"!=Hu([Tn])||"{}"!=Hu({a:Tn})||"{}"!=Hu(Object(Tn))}));_export({target:"JSON",stat:!0,forced:ld},{stringify:function stringify(Tn,Un,Qn){for(var Dn,Hn=[Tn],Gn=1;arguments.length>Gn;)Hn.push(arguments[Gn++]);if(Dn=Un,(isObject(Un)||void 0!==Tn)&&!td(Tn))return Kr(Un)||(Un=function(Tn,Un){if("function"==typeof Dn&&(Un=Dn.call(this,Tn,Un)),!td(Un))return Un}),Hn[1]=Un,Hu.apply(null,Hn)}})}ju.prototype[Mu]||nr(ju.prototype,Mu,ju.prototype.valueOf),setToStringTag(ju,"Symbol"),fr[Ru]=!0;var cd=tr.f,ud=Un.Symbol;if(Qn&&"function"==typeof ud&&(!("description"in ud.prototype)||void 0!==ud().description)){var dd={},hd=function Symbol(){var Tn=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),Un=this instanceof hd?new ud(Tn):void 0===Tn?ud():ud(Tn);return""===Tn&&(dd[Un]=!0),Un};copyConstructorProperties(hd,ud);var pd=hd.prototype=ud.prototype;pd.constructor=hd;var Ad=pd.toString,fd="Symbol(test)"==String(ud("test")),gd=/^Symbol\((.*)\)[^)]+$/;cd(pd,"description",{configurable:!0,get:function description(){var Tn=isObject(this)?this.valueOf():this,Un=Ad.call(Tn);if(has(dd,Tn))return"";var Qn=fd?Un.slice(7,-1):Un.replace(gd,"$1");return""===Qn?void 0:Qn}}),_export({global:!0,forced:!0},{Symbol:hd})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag"),setToStringTag(Un.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!Qn},{create:wi}),_export({target:"Object",stat:!0,forced:!Qn,sham:!Qn},{defineProperty:tr.f});var md=fails((function(){Lo(1)}));_export({target:"Object",stat:!0,forced:md,sham:!Bo},{getPrototypeOf:function getPrototypeOf(Tn){return Lo(toObject(Tn))}}),_export({target:"Object",stat:!0},{setPrototypeOf:Ea});var _d=createCommonjsModule((function(Tn){var Un=function(Tn){var Un,Qn=Object.prototype,Dn=Qn.hasOwnProperty,Hn="function"==typeof Symbol?Symbol:{},Gn=Hn.iterator||"@@iterator",zn=Hn.asyncIterator||"@@asyncIterator",Vn=Hn.toStringTag||"@@toStringTag";function define(Tn,Un,Qn){return Object.defineProperty(Tn,Un,{value:Qn,enumerable:!0,configurable:!0,writable:!0}),Tn[Un]}try{define({},"")}catch(Tn){define=function define(Tn,Un,Qn){return Tn[Un]=Qn}}function wrap(Tn,Un,Qn,Dn){var Hn=Un&&Un.prototype instanceof Generator?Un:Generator,Gn=Object.create(Hn.prototype),zn=new Context(Dn||[]);return Gn._invoke=function makeInvokeMethod(Tn,Un,Qn){var Dn=Kn;return function invoke(Hn,Gn){if(Dn===Xn)throw new Error("Generator is already running");if(Dn===Yn){if("throw"===Hn)throw Gn;return doneResult()}for(Qn.method=Hn,Qn.arg=Gn;;){var zn=Qn.delegate;if(zn){var Vn=maybeInvokeDelegate(zn,Qn);if(Vn){if(Vn===Jn)continue;return Vn}}if("next"===Qn.method)Qn.sent=Qn._sent=Qn.arg;else if("throw"===Qn.method){if(Dn===Kn)throw Dn=Yn,Qn.arg;Qn.dispatchException(Qn.arg)}else"return"===Qn.method&&Qn.abrupt("return",Qn.arg);Dn=Xn;var $n=tryCatch(Tn,Un,Qn);if("normal"===$n.type){if(Dn=Qn.done?Yn:Wn,$n.arg===Jn)continue;return{value:$n.arg,done:Qn.done}}"throw"===$n.type&&(Dn=Yn,Qn.method="throw",Qn.arg=$n.arg)}}}(Tn,Qn,zn),Gn}function tryCatch(Tn,Un,Qn){try{return{type:"normal",arg:Tn.call(Un,Qn)}}catch(Tn){return{type:"throw",arg:Tn}}}Tn.wrap=wrap;var Kn="suspendedStart",Wn="suspendedYield",Xn="executing",Yn="completed",Jn={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var $n={};$n[Gn]=function(){return this};var Zn=Object.getPrototypeOf,er=Zn&&Zn(Zn(values([])));er&&er!==Qn&&Dn.call(er,Gn)&&($n=er);var tr=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create($n);function defineIteratorMethods(Tn){["next","throw","return"].forEach((function(Un){define(Tn,Un,(function(Tn){return this._invoke(Un,Tn)}))}))}function AsyncIterator(Tn,Un){var Qn;this._invoke=function enqueue(Hn,Gn){function callInvokeWithMethodAndArg(){return new Un((function(Qn,zn){!function invoke(Qn,Hn,Gn,zn){var Vn=tryCatch(Tn[Qn],Tn,Hn);if("throw"!==Vn.type){var Kn=Vn.arg,Wn=Kn.value;return Wn&&"object"===_typeof(Wn)&&Dn.call(Wn,"__await")?Un.resolve(Wn.__await).then((function(Tn){invoke("next",Tn,Gn,zn)}),(function(Tn){invoke("throw",Tn,Gn,zn)})):Un.resolve(Wn).then((function(Tn){Kn.value=Tn,Gn(Kn)}),(function(Tn){return invoke("throw",Tn,Gn,zn)}))}zn(Vn.arg)}(Hn,Gn,Qn,zn)}))}return Qn=Qn?Qn.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(Tn,Qn){var Dn=Tn.iterator[Qn.method];if(Dn===Un){if(Qn.delegate=null,"throw"===Qn.method){if(Tn.iterator.return&&(Qn.method="return",Qn.arg=Un,maybeInvokeDelegate(Tn,Qn),"throw"===Qn.method))return Jn;Qn.method="throw",Qn.arg=new TypeError("The iterator does not provide a 'throw' method")}return Jn}var Hn=tryCatch(Dn,Tn.iterator,Qn.arg);if("throw"===Hn.type)return Qn.method="throw",Qn.arg=Hn.arg,Qn.delegate=null,Jn;var Gn=Hn.arg;return Gn?Gn.done?(Qn[Tn.resultName]=Gn.value,Qn.next=Tn.nextLoc,"return"!==Qn.method&&(Qn.method="next",Qn.arg=Un),Qn.delegate=null,Jn):Gn:(Qn.method="throw",Qn.arg=new TypeError("iterator result is not an object"),Qn.delegate=null,Jn)}function pushTryEntry(Tn){var Un={tryLoc:Tn[0]};1 in Tn&&(Un.catchLoc=Tn[1]),2 in Tn&&(Un.finallyLoc=Tn[2],Un.afterLoc=Tn[3]),this.tryEntries.push(Un)}function resetTryEntry(Tn){var Un=Tn.completion||{};Un.type="normal",delete Un.arg,Tn.completion=Un}function Context(Tn){this.tryEntries=[{tryLoc:"root"}],Tn.forEach(pushTryEntry,this),this.reset(!0)}function values(Tn){if(Tn){var Qn=Tn[Gn];if(Qn)return Qn.call(Tn);if("function"==typeof Tn.next)return Tn;if(!isNaN(Tn.length)){var Hn=-1,zn=function next(){for(;++Hn<Tn.length;)if(Dn.call(Tn,Hn))return next.value=Tn[Hn],next.done=!1,next;return next.value=Un,next.done=!0,next};return zn.next=zn}}return{next:doneResult}}function doneResult(){return{value:Un,done:!0}}return GeneratorFunction.prototype=tr.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,Vn,"GeneratorFunction"),Tn.isGeneratorFunction=function(Tn){var Un="function"==typeof Tn&&Tn.constructor;return!!Un&&(Un===GeneratorFunction||"GeneratorFunction"===(Un.displayName||Un.name))},Tn.mark=function(Tn){return Object.setPrototypeOf?Object.setPrototypeOf(Tn,GeneratorFunctionPrototype):(Tn.__proto__=GeneratorFunctionPrototype,define(Tn,Vn,"GeneratorFunction")),Tn.prototype=Object.create(tr),Tn},Tn.awrap=function(Tn){return{__await:Tn}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[zn]=function(){return this},Tn.AsyncIterator=AsyncIterator,Tn.async=function(Un,Qn,Dn,Hn,Gn){void 0===Gn&&(Gn=Promise);var zn=new AsyncIterator(wrap(Un,Qn,Dn,Hn),Gn);return Tn.isGeneratorFunction(Qn)?zn:zn.next().then((function(Tn){return Tn.done?Tn.value:zn.next()}))},defineIteratorMethods(tr),define(tr,Vn,"Generator"),tr[Gn]=function(){return this},tr.toString=function(){return"[object Generator]"},Tn.keys=function(Tn){var Un=[];for(var Qn in Tn)Un.push(Qn);return Un.reverse(),function next(){for(;Un.length;){var Qn=Un.pop();if(Qn in Tn)return next.value=Qn,next.done=!1,next}return next.done=!0,next}},Tn.values=values,Context.prototype={constructor:Context,reset:function reset(Tn){if(this.prev=0,this.next=0,this.sent=this._sent=Un,this.done=!1,this.delegate=null,this.method="next",this.arg=Un,this.tryEntries.forEach(resetTryEntry),!Tn)for(var Qn in this)"t"===Qn.charAt(0)&&Dn.call(this,Qn)&&!isNaN(+Qn.slice(1))&&(this[Qn]=Un)},stop:function stop(){this.done=!0;var Tn=this.tryEntries[0].completion;if("throw"===Tn.type)throw Tn.arg;return this.rval},dispatchException:function dispatchException(Tn){if(this.done)throw Tn;var Qn=this;function handle(Dn,Hn){return zn.type="throw",zn.arg=Tn,Qn.next=Dn,Hn&&(Qn.method="next",Qn.arg=Un),!!Hn}for(var Hn=this.tryEntries.length-1;Hn>=0;--Hn){var Gn=this.tryEntries[Hn],zn=Gn.completion;if("root"===Gn.tryLoc)return handle("end");if(Gn.tryLoc<=this.prev){var Vn=Dn.call(Gn,"catchLoc"),Kn=Dn.call(Gn,"finallyLoc");if(Vn&&Kn){if(this.prev<Gn.catchLoc)return handle(Gn.catchLoc,!0);if(this.prev<Gn.finallyLoc)return handle(Gn.finallyLoc)}else if(Vn){if(this.prev<Gn.catchLoc)return handle(Gn.catchLoc,!0)}else{if(!Kn)throw new Error("try statement without catch or finally");if(this.prev<Gn.finallyLoc)return handle(Gn.finallyLoc)}}}},abrupt:function abrupt(Tn,Un){for(var Qn=this.tryEntries.length-1;Qn>=0;--Qn){var Hn=this.tryEntries[Qn];if(Hn.tryLoc<=this.prev&&Dn.call(Hn,"finallyLoc")&&this.prev<Hn.finallyLoc){var Gn=Hn;break}}Gn&&("break"===Tn||"continue"===Tn)&&Gn.tryLoc<=Un&&Un<=Gn.finallyLoc&&(Gn=null);var zn=Gn?Gn.completion:{};return zn.type=Tn,zn.arg=Un,Gn?(this.method="next",this.next=Gn.finallyLoc,Jn):this.complete(zn)},complete:function complete(Tn,Un){if("throw"===Tn.type)throw Tn.arg;return"break"===Tn.type||"continue"===Tn.type?this.next=Tn.arg:"return"===Tn.type?(this.rval=this.arg=Tn.arg,this.method="return",this.next="end"):"normal"===Tn.type&&Un&&(this.next=Un),Jn},finish:function finish(Tn){for(var Un=this.tryEntries.length-1;Un>=0;--Un){var Qn=this.tryEntries[Un];if(Qn.finallyLoc===Tn)return this.complete(Qn.completion,Qn.afterLoc),resetTryEntry(Qn),Jn}},catch:function _catch(Tn){for(var Un=this.tryEntries.length-1;Un>=0;--Un){var Qn=this.tryEntries[Un];if(Qn.tryLoc===Tn){var Dn=Qn.completion;if("throw"===Dn.type){var Hn=Dn.arg;resetTryEntry(Qn)}return Hn}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(Tn,Qn,Dn){return this.delegate={iterator:values(Tn),resultName:Qn,nextLoc:Dn},"next"===this.method&&(this.arg=Un),Jn}},Tn}(Tn.exports);try{regeneratorRuntime=Un}catch(Tn){Function("r","regeneratorRuntime = r")(Un)}})),vd=createCommonjsModule((function(Tn,Un){Tn.exports=function(){var Tn={true:!0,false:!1,null:null};function deparam(Un,Qn){var Dn={};return Un.replace(/\+/g," ").split("&").forEach((function(Un){var Hn=Un.split("="),Gn=decodeURIComponent(Hn[0]),zn=Gn.split("]["),Vn=zn.length-1;if(/\[/.test(zn[0])&&/\]$/.test(zn[Vn])?(zn[Vn]=zn[Vn].replace(/\]$/,""),Vn=(zn=zn.shift().split("[").concat(zn)).length-1):Vn=0,Hn.length>=2){var Kn=decodeURIComponent(Hn.slice(1).join("="));if(Qn&&(Kn=Kn&&!isNaN(Kn)?+Kn:"undefined"===Kn?void 0:void 0!==Tn[Kn]?Tn[Kn]:Kn),Vn)for(var Wn=Dn,Xn=0;Xn<=Vn;Xn++)Wn=Wn[Gn=""===zn[Xn]?Wn.length:zn[Xn]]=Xn<Vn?Wn[Gn]||(zn[Xn+1]&&isNaN(zn[Xn+1])?{}:[]):Kn;else Array.isArray(Dn[Gn])?Dn[Gn].push(Kn):void 0!==Dn[Gn]?Dn[Gn]=[Dn[Gn],Kn]:Dn[Gn]=Kn}else Gn&&(Dn[Gn]=Qn?void 0:"")})),Dn}return deparam}()}));function touchHandler(Tn){var Un=Tn.changedTouches,Qn=Un[0],Dn="";switch(Tn.type){case"touchstart":Dn="mousedown";break;case"touchmove":Dn="mousemove";break;case"touchend":Dn="mouseup";break;default:return}var Hn=Qn.screenX,Gn=Qn.screenY,zn=Qn.clientX,Vn=Qn.clientY,Kn=new MouseEvent(Dn,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:Hn,screenY:Gn,clientX:zn,clientY:Vn,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});Un.length<2&&(Qn.target.dispatchEvent(Kn),Tn.preventDefault())}document.addEventListener("touchstart",touchHandler,!0),document.addEventListener("touchmove",touchHandler,!0),document.addEventListener("touchend",touchHandler,!0),document.addEventListener("touchcancel",touchHandler,!0);
|
||
/**
|
||
* Namespaces or tools therefor.
|
||
* @module namespaces
|
||
* @license MIT
|
||
*/
|
||
var yd={HTML:"http://www.w3.org/1999/xhtml",MATH:"http://www.w3.org/1998/Math/MathML",SE:"http://svg-edit.googlecode.com",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"},bd=function getReverseNS(){var Tn={};return Object.entries(yd).forEach((function(Un){var Qn=_slicedToArray(Un,2),Dn=Qn[0],Hn=Qn[1];Tn[Hn]=Dn.toLowerCase()})),Tn};_export({target:"Object",stat:!0,forced:!Qn,sham:!Qn},{defineProperties:_i}),function(){if(!("SVGPathSeg"in window)){var Tn=function(){function _SVGPathSeg(Tn,Un,Qn){_classCallCheck(this,_SVGPathSeg),this.pathSegType=Tn,this.pathSegTypeAsLetter=Un,this._owningPathSegList=Qn}return _createClass(_SVGPathSeg,[{key:"_segmentChanged",value:function _segmentChanged(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)}}]),_SVGPathSeg}();Tn.prototype.classname="SVGPathSeg",Tn.PATHSEG_UNKNOWN=0,Tn.PATHSEG_CLOSEPATH=1,Tn.PATHSEG_MOVETO_ABS=2,Tn.PATHSEG_MOVETO_REL=3,Tn.PATHSEG_LINETO_ABS=4,Tn.PATHSEG_LINETO_REL=5,Tn.PATHSEG_CURVETO_CUBIC_ABS=6,Tn.PATHSEG_CURVETO_CUBIC_REL=7,Tn.PATHSEG_CURVETO_QUADRATIC_ABS=8,Tn.PATHSEG_CURVETO_QUADRATIC_REL=9,Tn.PATHSEG_ARC_ABS=10,Tn.PATHSEG_ARC_REL=11,Tn.PATHSEG_LINETO_HORIZONTAL_ABS=12,Tn.PATHSEG_LINETO_HORIZONTAL_REL=13,Tn.PATHSEG_LINETO_VERTICAL_ABS=14,Tn.PATHSEG_LINETO_VERTICAL_REL=15,Tn.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,Tn.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,Tn.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,Tn.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19;var Un=function(Un){_inherits(_SVGPathSegClosePath,Un);var Qn=_createSuper(_SVGPathSegClosePath);function _SVGPathSegClosePath(Un){return _classCallCheck(this,_SVGPathSegClosePath),Qn.call(this,Tn.PATHSEG_CLOSEPATH,"z",Un)}return _createClass(_SVGPathSegClosePath,[{key:"toString",value:function toString(){return"[object SVGPathSegClosePath]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter}},{key:"clone",value:function clone(){return new _SVGPathSegClosePath(void 0)}}]),_SVGPathSegClosePath}(Tn),Qn=function(Un){_inherits(_SVGPathSegMovetoAbs,Un);var Qn=_createSuper(_SVGPathSegMovetoAbs);function _SVGPathSegMovetoAbs(Un,Dn,Hn){var Gn;return _classCallCheck(this,_SVGPathSegMovetoAbs),(Gn=Qn.call(this,Tn.PATHSEG_MOVETO_ABS,"M",Un))._x=Dn,Gn._y=Hn,Gn}return _createClass(_SVGPathSegMovetoAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegMovetoAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegMovetoAbs(void 0,this._x,this._y)}}]),_SVGPathSegMovetoAbs}(Tn);Object.defineProperties(Qn.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}});var Dn=function(Un){_inherits(_SVGPathSegMovetoRel,Un);var Qn=_createSuper(_SVGPathSegMovetoRel);function _SVGPathSegMovetoRel(Un,Dn,Hn){var Gn;return _classCallCheck(this,_SVGPathSegMovetoRel),(Gn=Qn.call(this,Tn.PATHSEG_MOVETO_REL,"m",Un))._x=Dn,Gn._y=Hn,Gn}return _createClass(_SVGPathSegMovetoRel,[{key:"toString",value:function toString(){return"[object SVGPathSegMovetoRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegMovetoRel(void 0,this._x,this._y)}}]),_SVGPathSegMovetoRel}(Tn);Object.defineProperties(Dn.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}});var Hn=function(Un){_inherits(_SVGPathSegLinetoAbs,Un);var Qn=_createSuper(_SVGPathSegLinetoAbs);function _SVGPathSegLinetoAbs(Un,Dn,Hn){var Gn;return _classCallCheck(this,_SVGPathSegLinetoAbs),(Gn=Qn.call(this,Tn.PATHSEG_LINETO_ABS,"L",Un))._x=Dn,Gn._y=Hn,Gn}return _createClass(_SVGPathSegLinetoAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoAbs(void 0,this._x,this._y)}}]),_SVGPathSegLinetoAbs}(Tn);Object.defineProperties(Hn.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}});var Gn=function(Un){_inherits(_SVGPathSegLinetoRel,Un);var Qn=_createSuper(_SVGPathSegLinetoRel);function _SVGPathSegLinetoRel(Un,Dn,Hn){var Gn;return _classCallCheck(this,_SVGPathSegLinetoRel),(Gn=Qn.call(this,Tn.PATHSEG_LINETO_REL,"l",Un))._x=Dn,Gn._y=Hn,Gn}return _createClass(_SVGPathSegLinetoRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoRel(void 0,this._x,this._y)}}]),_SVGPathSegLinetoRel}(Tn);Object.defineProperties(Gn.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}});var zn=function(Un){_inherits(_SVGPathSegCurvetoCubicAbs,Un);var Qn=_createSuper(_SVGPathSegCurvetoCubicAbs);function _SVGPathSegCurvetoCubicAbs(Un,Dn,Hn,Gn,zn,Vn,Kn){var Wn;return _classCallCheck(this,_SVGPathSegCurvetoCubicAbs),(Wn=Qn.call(this,Tn.PATHSEG_CURVETO_CUBIC_ABS,"C",Un))._x=Dn,Wn._y=Hn,Wn._x1=Gn,Wn._y1=zn,Wn._x2=Vn,Wn._y2=Kn,Wn}return _createClass(_SVGPathSegCurvetoCubicAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicAbs}(Tn);Object.defineProperties(zn.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}});var Vn=function(Un){_inherits(_SVGPathSegCurvetoCubicRel,Un);var Qn=_createSuper(_SVGPathSegCurvetoCubicRel);function _SVGPathSegCurvetoCubicRel(Un,Dn,Hn,Gn,zn,Vn,Kn){var Wn;return _classCallCheck(this,_SVGPathSegCurvetoCubicRel),(Wn=Qn.call(this,Tn.PATHSEG_CURVETO_CUBIC_REL,"c",Un))._x=Dn,Wn._y=Hn,Wn._x1=Gn,Wn._y1=zn,Wn._x2=Vn,Wn._y2=Kn,Wn}return _createClass(_SVGPathSegCurvetoCubicRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicRel}(Tn);Object.defineProperties(Vn.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}});var Kn=function(Un){_inherits(_SVGPathSegCurvetoQuadraticAbs,Un);var Qn=_createSuper(_SVGPathSegCurvetoQuadraticAbs);function _SVGPathSegCurvetoQuadraticAbs(Un,Dn,Hn,Gn,zn){var Vn;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticAbs),(Vn=Qn.call(this,Tn.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",Un))._x=Dn,Vn._y=Hn,Vn._x1=Gn,Vn._y1=zn,Vn}return _createClass(_SVGPathSegCurvetoQuadraticAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)}}]),_SVGPathSegCurvetoQuadraticAbs}(Tn);Object.defineProperties(Kn.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0}});var Wn=function(Un){_inherits(_SVGPathSegCurvetoQuadraticRel,Un);var Qn=_createSuper(_SVGPathSegCurvetoQuadraticRel);function _SVGPathSegCurvetoQuadraticRel(Un,Dn,Hn,Gn,zn){var Vn;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticRel),(Vn=Qn.call(this,Tn.PATHSEG_CURVETO_QUADRATIC_REL,"q",Un))._x=Dn,Vn._y=Hn,Vn._x1=Gn,Vn._y1=zn,Vn}return _createClass(_SVGPathSegCurvetoQuadraticRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)}}]),_SVGPathSegCurvetoQuadraticRel}(Tn);Object.defineProperties(Wn.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0}});var Xn=function(Un){_inherits(_SVGPathSegArcAbs,Un);var Qn=_createSuper(_SVGPathSegArcAbs);function _SVGPathSegArcAbs(Un,Dn,Hn,Gn,zn,Vn,Kn,Wn){var Xn;return _classCallCheck(this,_SVGPathSegArcAbs),(Xn=Qn.call(this,Tn.PATHSEG_ARC_ABS,"A",Un))._x=Dn,Xn._y=Hn,Xn._r1=Gn,Xn._r2=zn,Xn._angle=Vn,Xn._largeArcFlag=Kn,Xn._sweepFlag=Wn,Xn}return _createClass(_SVGPathSegArcAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegArcAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)}}]),_SVGPathSegArcAbs}(Tn);Object.defineProperties(Xn.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0},r1:{get:function get(){return this._r1},set:function set(Tn){this._r1=Tn,this._segmentChanged()},enumerable:!0},r2:{get:function get(){return this._r2},set:function set(Tn){this._r2=Tn,this._segmentChanged()},enumerable:!0},angle:{get:function get(){return this._angle},set:function set(Tn){this._angle=Tn,this._segmentChanged()},enumerable:!0},largeArcFlag:{get:function get(){return this._largeArcFlag},set:function set(Tn){this._largeArcFlag=Tn,this._segmentChanged()},enumerable:!0},sweepFlag:{get:function get(){return this._sweepFlag},set:function set(Tn){this._sweepFlag=Tn,this._segmentChanged()},enumerable:!0}});var Yn=function(Un){_inherits(_SVGPathSegArcRel,Un);var Qn=_createSuper(_SVGPathSegArcRel);function _SVGPathSegArcRel(Un,Dn,Hn,Gn,zn,Vn,Kn,Wn){var Xn;return _classCallCheck(this,_SVGPathSegArcRel),(Xn=Qn.call(this,Tn.PATHSEG_ARC_REL,"a",Un))._x=Dn,Xn._y=Hn,Xn._r1=Gn,Xn._r2=zn,Xn._angle=Vn,Xn._largeArcFlag=Kn,Xn._sweepFlag=Wn,Xn}return _createClass(_SVGPathSegArcRel,[{key:"toString",value:function toString(){return"[object SVGPathSegArcRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)}}]),_SVGPathSegArcRel}(Tn);Object.defineProperties(Yn.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0},r1:{get:function get(){return this._r1},set:function set(Tn){this._r1=Tn,this._segmentChanged()},enumerable:!0},r2:{get:function get(){return this._r2},set:function set(Tn){this._r2=Tn,this._segmentChanged()},enumerable:!0},angle:{get:function get(){return this._angle},set:function set(Tn){this._angle=Tn,this._segmentChanged()},enumerable:!0},largeArcFlag:{get:function get(){return this._largeArcFlag},set:function set(Tn){this._largeArcFlag=Tn,this._segmentChanged()},enumerable:!0},sweepFlag:{get:function get(){return this._sweepFlag},set:function set(Tn){this._sweepFlag=Tn,this._segmentChanged()},enumerable:!0}});var Jn=function(Un){_inherits(_SVGPathSegLinetoHorizontalAbs,Un);var Qn=_createSuper(_SVGPathSegLinetoHorizontalAbs);function _SVGPathSegLinetoHorizontalAbs(Un,Dn){var Hn;return _classCallCheck(this,_SVGPathSegLinetoHorizontalAbs),(Hn=Qn.call(this,Tn.PATHSEG_LINETO_HORIZONTAL_ABS,"H",Un))._x=Dn,Hn}return _createClass(_SVGPathSegLinetoHorizontalAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoHorizontalAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoHorizontalAbs(void 0,this._x)}}]),_SVGPathSegLinetoHorizontalAbs}(Tn);Object.defineProperty(Jn.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0});var $n=function(Un){_inherits(_SVGPathSegLinetoHorizontalRel,Un);var Qn=_createSuper(_SVGPathSegLinetoHorizontalRel);function _SVGPathSegLinetoHorizontalRel(Un,Dn){var Hn;return _classCallCheck(this,_SVGPathSegLinetoHorizontalRel),(Hn=Qn.call(this,Tn.PATHSEG_LINETO_HORIZONTAL_REL,"h",Un))._x=Dn,Hn}return _createClass(_SVGPathSegLinetoHorizontalRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoHorizontalRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoHorizontalRel(void 0,this._x)}}]),_SVGPathSegLinetoHorizontalRel}(Tn);Object.defineProperty($n.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0});var Zn=function(Un){_inherits(_SVGPathSegLinetoVerticalAbs,Un);var Qn=_createSuper(_SVGPathSegLinetoVerticalAbs);function _SVGPathSegLinetoVerticalAbs(Un,Dn){var Hn;return _classCallCheck(this,_SVGPathSegLinetoVerticalAbs),(Hn=Qn.call(this,Tn.PATHSEG_LINETO_VERTICAL_ABS,"V",Un))._y=Dn,Hn}return _createClass(_SVGPathSegLinetoVerticalAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoVerticalAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoVerticalAbs(void 0,this._y)}}]),_SVGPathSegLinetoVerticalAbs}(Tn);Object.defineProperty(Zn.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0});var er=function(Un){_inherits(_SVGPathSegLinetoVerticalRel,Un);var Qn=_createSuper(_SVGPathSegLinetoVerticalRel);function _SVGPathSegLinetoVerticalRel(Un,Dn){var Hn;return _classCallCheck(this,_SVGPathSegLinetoVerticalRel),(Hn=Qn.call(this,Tn.PATHSEG_LINETO_VERTICAL_REL,"v",Un))._y=Dn,Hn}return _createClass(_SVGPathSegLinetoVerticalRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoVerticalRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoVerticalRel(void 0,this._y)}}]),_SVGPathSegLinetoVerticalRel}(Tn);Object.defineProperty(er.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0});var tr=function(Un){_inherits(_SVGPathSegCurvetoCubicSmoothAbs,Un);var Qn=_createSuper(_SVGPathSegCurvetoCubicSmoothAbs);function _SVGPathSegCurvetoCubicSmoothAbs(Un,Dn,Hn,Gn,zn){var Vn;return _classCallCheck(this,_SVGPathSegCurvetoCubicSmoothAbs),(Vn=Qn.call(this,Tn.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",Un))._x=Dn,Vn._y=Hn,Vn._x2=Gn,Vn._y2=zn,Vn}return _createClass(_SVGPathSegCurvetoCubicSmoothAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicSmoothAbs}(Tn);Object.defineProperties(tr.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}});var nr=function(Un){_inherits(_SVGPathSegCurvetoCubicSmoothRel,Un);var Qn=_createSuper(_SVGPathSegCurvetoCubicSmoothRel);function _SVGPathSegCurvetoCubicSmoothRel(Un,Dn,Hn,Gn,zn){var Vn;return _classCallCheck(this,_SVGPathSegCurvetoCubicSmoothRel),(Vn=Qn.call(this,Tn.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",Un))._x=Dn,Vn._y=Hn,Vn._x2=Gn,Vn._y2=zn,Vn}return _createClass(_SVGPathSegCurvetoCubicSmoothRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicSmoothRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicSmoothRel}(Tn);Object.defineProperties(nr.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}});var rr=function(Un){_inherits(_SVGPathSegCurvetoQuadraticSmoothAbs,Un);var Qn=_createSuper(_SVGPathSegCurvetoQuadraticSmoothAbs);function _SVGPathSegCurvetoQuadraticSmoothAbs(Un,Dn,Hn){var Gn;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticSmoothAbs),(Gn=Qn.call(this,Tn.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",Un))._x=Dn,Gn._y=Hn,Gn}return _createClass(_SVGPathSegCurvetoQuadraticSmoothAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)}}]),_SVGPathSegCurvetoQuadraticSmoothAbs}(Tn);Object.defineProperties(rr.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}});var ir=function(Un){_inherits(_SVGPathSegCurvetoQuadraticSmoothRel,Un);var Qn=_createSuper(_SVGPathSegCurvetoQuadraticSmoothRel);function _SVGPathSegCurvetoQuadraticSmoothRel(Un,Dn,Hn){var Gn;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticSmoothRel),(Gn=Qn.call(this,Tn.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",Un))._x=Dn,Gn._y=Hn,Gn}return _createClass(_SVGPathSegCurvetoQuadraticSmoothRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)}}]),_SVGPathSegCurvetoQuadraticSmoothRel}(Tn);Object.defineProperties(ir.prototype,{x:{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}}),SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new Un(void 0)},SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(Tn,Un){return new Qn(void 0,Tn,Un)},SVGPathElement.prototype.createSVGPathSegMovetoRel=function(Tn,Un){return new Dn(void 0,Tn,Un)},SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(Tn,Un){return new Hn(void 0,Tn,Un)},SVGPathElement.prototype.createSVGPathSegLinetoRel=function(Tn,Un){return new Gn(void 0,Tn,Un)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(Tn,Un,Qn,Dn,Hn,Gn){return new zn(void 0,Tn,Un,Qn,Dn,Hn,Gn)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(Tn,Un,Qn,Dn,Hn,Gn){return new Vn(void 0,Tn,Un,Qn,Dn,Hn,Gn)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(Tn,Un,Qn,Dn){return new Kn(void 0,Tn,Un,Qn,Dn)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(Tn,Un,Qn,Dn){return new Wn(void 0,Tn,Un,Qn,Dn)},SVGPathElement.prototype.createSVGPathSegArcAbs=function(Tn,Un,Qn,Dn,Hn,Gn,zn){return new Xn(void 0,Tn,Un,Qn,Dn,Hn,Gn,zn)},SVGPathElement.prototype.createSVGPathSegArcRel=function(Tn,Un,Qn,Dn,Hn,Gn,zn){return new Yn(void 0,Tn,Un,Qn,Dn,Hn,Gn,zn)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(Tn){return new Jn(void 0,Tn)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(Tn){return new $n(void 0,Tn)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(Tn){return new Zn(void 0,Tn)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(Tn){return new er(void 0,Tn)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(Tn,Un,Qn,Dn){return new tr(void 0,Tn,Un,Qn,Dn)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(Tn,Un,Qn,Dn){return new nr(void 0,Tn,Un,Qn,Dn)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(Tn,Un){return new rr(void 0,Tn,Un)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(Tn,Un){return new ir(void 0,Tn,Un)},"getPathSegAtLength"in SVGPathElement.prototype||(SVGPathElement.prototype.getPathSegAtLength=function(Tn){if(void 0===Tn||!isFinite(Tn))throw new Error("Invalid arguments.");var Un=document.createElementNS("http://www.w3.org/2000/svg","path");Un.setAttribute("d",this.getAttribute("d"));var Qn=Un.pathSegList.numberOfItems-1;if(Qn<=0)return 0;do{if(Un.pathSegList.removeItem(Qn),Tn>Un.getTotalLength())break;Qn--}while(Qn>0);return Qn}),window.SVGPathSeg=Tn,window.SVGPathSegClosePath=Un,window.SVGPathSegMovetoAbs=Qn,window.SVGPathSegMovetoRel=Dn,window.SVGPathSegLinetoAbs=Hn,window.SVGPathSegLinetoRel=Gn,window.SVGPathSegCurvetoCubicAbs=zn,window.SVGPathSegCurvetoCubicRel=Vn,window.SVGPathSegCurvetoQuadraticAbs=Kn,window.SVGPathSegCurvetoQuadraticRel=Wn,window.SVGPathSegArcAbs=Xn,window.SVGPathSegArcRel=Yn,window.SVGPathSegLinetoHorizontalAbs=Jn,window.SVGPathSegLinetoHorizontalRel=$n,window.SVGPathSegLinetoVerticalAbs=Zn,window.SVGPathSegLinetoVerticalRel=er,window.SVGPathSegCurvetoCubicSmoothAbs=tr,window.SVGPathSegCurvetoCubicSmoothRel=nr,window.SVGPathSegCurvetoQuadraticSmoothAbs=rr,window.SVGPathSegCurvetoQuadraticSmoothRel=ir}if(!("SVGPathSegList"in window)||!("appendItem"in window.SVGPathSegList.prototype)){var ar=function(){function SVGPathSegList(Tn){_classCallCheck(this,SVGPathSegList),this._pathElement=Tn,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)}return _createClass(SVGPathSegList,[{key:"_checkPathSynchronizedToList",value:function _checkPathSynchronizedToList(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())}},{key:"_updateListFromPathMutations",value:function _updateListFromPathMutations(Tn){if(this._pathElement){var Un=!1;Tn.forEach((function(Tn){"d"===Tn.attributeName&&(Un=!0)})),Un&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}}},{key:"_writeListToPath",value:function _writeListToPath(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)}},{key:"segmentChanged",value:function segmentChanged(Tn){this._writeListToPath()}},{key:"clear",value:function clear(){this._checkPathSynchronizedToList(),this._list.forEach((function(Tn){Tn._owningPathSegList=null})),this._list=[],this._writeListToPath()}},{key:"initialize",value:function initialize(Tn){return this._checkPathSynchronizedToList(),this._list=[Tn],Tn._owningPathSegList=this,this._writeListToPath(),Tn}},{key:"_checkValidIndex",value:function _checkValidIndex(Tn){if(isNaN(Tn)||Tn<0||Tn>=this.numberOfItems)throw new Error("INDEX_SIZE_ERR")}},{key:"getItem",value:function getItem(Tn){return this._checkPathSynchronizedToList(),this._checkValidIndex(Tn),this._list[Tn]}},{key:"insertItemBefore",value:function insertItemBefore(Tn,Un){return this._checkPathSynchronizedToList(),Un>this.numberOfItems&&(Un=this.numberOfItems),Tn._owningPathSegList&&(Tn=Tn.clone()),this._list.splice(Un,0,Tn),Tn._owningPathSegList=this,this._writeListToPath(),Tn}},{key:"replaceItem",value:function replaceItem(Tn,Un){return this._checkPathSynchronizedToList(),Tn._owningPathSegList&&(Tn=Tn.clone()),this._checkValidIndex(Un),this._list[Un]=Tn,Tn._owningPathSegList=this,this._writeListToPath(),Tn}},{key:"removeItem",value:function removeItem(Tn){this._checkPathSynchronizedToList(),this._checkValidIndex(Tn);var Un=this._list[Tn];return this._list.splice(Tn,1),this._writeListToPath(),Un}},{key:"appendItem",value:function appendItem(Tn){return this._checkPathSynchronizedToList(),Tn._owningPathSegList&&(Tn=Tn.clone()),this._list.push(Tn),Tn._owningPathSegList=this,this._writeListToPath(),Tn}},{key:"_parsePath",value:function _parsePath(Tn){if(!Tn||!Tn.length)return[];var Un=this,Qn=function(){function Builder(){_classCallCheck(this,Builder),this.pathSegList=[]}return _createClass(Builder,[{key:"appendSegment",value:function appendSegment(Tn){this.pathSegList.push(Tn)}}]),Builder}(),Dn=function(){function Source(Tn){_classCallCheck(this,Source),this._string=Tn,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()}return _createClass(Source,[{key:"_isCurrentSpace",value:function _isCurrentSpace(){var Tn=this._string[this._currentIndex];return Tn<=" "&&(" "===Tn||"\n"===Tn||"\t"===Tn||"\r"===Tn||"\f"===Tn)}},{key:"_skipOptionalSpaces",value:function _skipOptionalSpaces(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex}},{key:"_skipOptionalSpacesOrDelimiter",value:function _skipOptionalSpacesOrDelimiter(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!==this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","===this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)}},{key:"hasMoreData",value:function hasMoreData(){return this._currentIndex<this._endIndex}},{key:"peekSegmentType",value:function peekSegmentType(){var Tn=this._string[this._currentIndex];return this._pathSegTypeFromChar(Tn)}},{key:"_pathSegTypeFromChar",value:function _pathSegTypeFromChar(Tn){switch(Tn){case"Z":case"z":return SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return SVGPathSeg.PATHSEG_LINETO_REL;case"C":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return SVGPathSeg.PATHSEG_ARC_ABS;case"a":return SVGPathSeg.PATHSEG_ARC_REL;case"H":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return SVGPathSeg.PATHSEG_UNKNOWN}}},{key:"_nextCommandHelper",value:function _nextCommandHelper(Tn,Un){return("+"===Tn||"-"===Tn||"."===Tn||Tn>="0"&&Tn<="9")&&Un!==SVGPathSeg.PATHSEG_CLOSEPATH?Un===SVGPathSeg.PATHSEG_MOVETO_ABS?SVGPathSeg.PATHSEG_LINETO_ABS:Un===SVGPathSeg.PATHSEG_MOVETO_REL?SVGPathSeg.PATHSEG_LINETO_REL:Un:SVGPathSeg.PATHSEG_UNKNOWN}},{key:"initialCommandIsMoveTo",value:function initialCommandIsMoveTo(){if(!this.hasMoreData())return!0;var Tn=this.peekSegmentType();return Tn===SVGPathSeg.PATHSEG_MOVETO_ABS||Tn===SVGPathSeg.PATHSEG_MOVETO_REL}},{key:"_parseNumber",value:function _parseNumber(){var Tn=0,Un=0,Qn=1,Dn=0,Hn=1,Gn=1,zn=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++,Hn=-1),!(this._currentIndex===this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!==this._string.charAt(this._currentIndex))){for(var Vn=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!==Vn)for(var Kn=this._currentIndex-1,Wn=1;Kn>=Vn;)Un+=Wn*(this._string.charAt(Kn--)-"0"),Wn*=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";)Qn*=10,Dn+=(this._string.charAt(this._currentIndex)-"0")/Qn,this._currentIndex+=1}if(this._currentIndex!==zn&&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++,Gn=-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";)Tn*=10,Tn+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var Xn=Un+Dn;if(Xn*=Hn,Tn&&(Xn*=Math.pow(10,Gn*Tn)),zn!==this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),Xn}}},{key:"_parseArcFlag",value:function _parseArcFlag(){if(!(this._currentIndex>=this._endIndex)){var Tn=!1,Un=this._string.charAt(this._currentIndex++);if("0"===Un)Tn=!1;else{if("1"!==Un)return;Tn=!0}return this._skipOptionalSpacesOrDelimiter(),Tn}}},{key:"parseSegment",value:function parseSegment(){var Tn=this._string[this._currentIndex],Qn=this._pathSegTypeFromChar(Tn);if(Qn===SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand===SVGPathSeg.PATHSEG_UNKNOWN)return null;if((Qn=this._nextCommandHelper(Tn,this._previousCommand))===SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=Qn,Qn){case SVGPathSeg.PATHSEG_MOVETO_REL:return new SVGPathSegMovetoRel(Un,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_MOVETO_ABS:return new SVGPathSegMovetoAbs(Un,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_REL:return new SVGPathSegLinetoRel(Un,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_ABS:return new SVGPathSegLinetoAbs(Un,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new SVGPathSegLinetoHorizontalRel(Un,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new SVGPathSegLinetoHorizontalAbs(Un,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new SVGPathSegLinetoVerticalRel(Un,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new SVGPathSegLinetoVerticalAbs(Un,this._parseNumber());case SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new SVGPathSegClosePath(Un);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var Dn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicRel(Un,Dn.x,Dn.y,Dn.x1,Dn.y1,Dn.x2,Dn.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:var Hn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicAbs(Un,Hn.x,Hn.y,Hn.x1,Hn.y1,Hn.x2,Hn.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:var Gn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothRel(Un,Gn.x,Gn.y,Gn.x2,Gn.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:var zn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothAbs(Un,zn.x,zn.y,zn.x2,zn.y2);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:var Vn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticRel(Un,Vn.x,Vn.y,Vn.x1,Vn.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:var Kn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticAbs(Un,Kn.x,Kn.y,Kn.x1,Kn.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new SVGPathSegCurvetoQuadraticSmoothRel(Un,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new SVGPathSegCurvetoQuadraticSmoothAbs(Un,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_ARC_REL:var Wn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcRel(Un,Wn.x,Wn.y,Wn.x1,Wn.y1,Wn.arcAngle,Wn.arcLarge,Wn.arcSweep);case SVGPathSeg.PATHSEG_ARC_ABS:var Xn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcAbs(Un,Xn.x,Xn.y,Xn.x1,Xn.y1,Xn.arcAngle,Xn.arcLarge,Xn.arcSweep);default:throw new Error("Unknown path seg type.")}}}]),Source}(),Hn=new Qn,Gn=new Dn(Tn);if(!Gn.initialCommandIsMoveTo())return[];for(;Gn.hasMoreData();){var zn=Gn.parseSegment();if(!zn)return[];Hn.appendSegment(zn)}return Hn.pathSegList}}],[{key:"_pathSegArrayAsString",value:function _pathSegArrayAsString(Tn){var Un="",Qn=!0;return Tn.forEach((function(Tn){Qn?(Qn=!1,Un+=Tn._asPathString()):Un+=" "+Tn._asPathString()})),Un}}]),SVGPathSegList}();ar.prototype.classname="SVGPathSegList",Object.defineProperty(ar.prototype,"numberOfItems",{get:function get(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperties(SVGPathElement.prototype,{pathSegList:{get:function get(){return this._pathSegList||(this._pathSegList=new ar(this)),this._pathSegList},enumerable:!0},normalizedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0},animatedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0},animatedNormalizedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0}}),window.SVGPathSegList=ar}}();var wd,xd=jQuery,kd=(Boolean(document.createElementNS&&document.createElementNS(yd.SVG,"svg").createSVGRect),navigator.userAgent),Sd=document.createElementNS(yd.SVG,"svg"),Cd=Boolean(window.opera),Bd=kd.includes("AppleWebKit"),Ed=kd.includes("Gecko/"),Nd=kd.includes("MSIE"),Ld=kd.includes("Chrome/"),Td=(kd.includes("Windows"),kd.includes("Macintosh")),Pd="ontouchstart"in window,Fd=Boolean(Sd.querySelector),Ud=Boolean(document.evaluate),Id=function(){var Tn=document.createElementNS(yd.SVG,"path");Tn.setAttribute("d","M0,0 10,10");var Un=Tn.pathSegList,Qn=Tn.createSVGPathSegLinetoAbs(5,5);try{return Un.replaceItem(Qn,1),!0}catch(Tn){}return!1}(),Rd=function(){var Tn=document.createElementNS(yd.SVG,"path");Tn.setAttribute("d","M0,0 10,10");var Un=Tn.pathSegList,Qn=Tn.createSVGPathSegLinetoAbs(5,5);try{return Un.insertItemBefore(Qn,1),!0}catch(Tn){}return!1}(),Md=function(){var Tn=document.createElementNS(yd.SVG,"svg"),Un=document.createElementNS(yd.SVG,"svg");document.documentElement.append(Tn),Un.setAttribute("x",5),Tn.append(Un);var Qn=document.createElementNS(yd.SVG,"text");Qn.textContent="a",Un.append(Qn);try{return 0===Qn.getStartPositionOfChar(0).x}catch(Tn){return!1}finally{Tn.remove()}}(),Qd=function(){var Tn=document.createElementNS(yd.SVG,"svg");document.documentElement.append(Tn);var Un=document.createElementNS(yd.SVG,"path");Un.setAttribute("d","M0,0 C0,0 10,10 10,0"),Tn.append(Un);var Qn=Un.getBBox();return Tn.remove(),Qn.height>4&&Qn.height<5}(),Od=function(){var Tn=document.createElementNS(yd.SVG,"svg");document.documentElement.append(Tn);var Un=document.createElementNS(yd.SVG,"path");Un.setAttribute("d","M0,0 10,0");var Qn=document.createElementNS(yd.SVG,"path");Qn.setAttribute("d","M5,0 15,0");var Dn=document.createElementNS(yd.SVG,"g");Dn.append(Un,Qn),Tn.append(Dn);var Hn=Dn.getBBox();return Tn.remove(),15===Hn.width}(),Dd=(function(){var Tn=document.createElementNS(yd.SVG,"rect");Tn.setAttribute("x",.1);var Un=!Tn.cloneNode(!1).getAttribute("x").includes(",");Un||xd.alert('NOTE: This version of Opera is known to contain bugs in SVG-edit.\nPlease upgrade to the <a href="http://opera.com">latest version</a> in which the problems have been fixed.')}(),(wd=document.createElementNS(yd.SVG,"rect")).setAttribute("style","vector-effect:non-scaling-stroke"),"non-scaling-stroke"===wd.style.vectorEffect),jd=function(){var Tn=document.createElementNS(yd.SVG,"rect").transform.baseVal,Un=Sd.createSVGTransform();Tn.appendItem(Un);var Qn=Tn.getItem(0),Dn=function isSVGTransform(Tn){return Tn&&"object"===_typeof(Tn)&&"function"==typeof Tn.setMatrix&&"angle"in Tn};return Dn(Qn)&&Dn(Un)&&Qn.type===Un.type&&Qn.angle===Un.angle&&Qn.matrix.a===Un.matrix.a&&Qn.matrix.b===Un.matrix.b&&Qn.matrix.c===Un.matrix.c&&Qn.matrix.d===Un.matrix.d&&Qn.matrix.e===Un.matrix.e&&Qn.matrix.f===Un.matrix.f}(),Hd=function isWebkit(){return Bd},Gd=function isGecko(){return Ed},zd=function isIE(){return Nd},Vd=function isChrome(){return Ld},Kd=function isMac(){return Td},qd=function isTouch(){return Pd},Wd=function supportsGoodTextCharPos(){return Md},Xd=function supportsNonScalingStroke(){return Dd},Yd="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,toIndex=function(Tn){if(void 0===Tn)return 0;var Un=toInteger(Tn),Qn=toLength(Un);if(Un!==Qn)throw RangeError("Wrong length or index");return Qn},Jd=Math.abs,$d=Math.pow,Zd=Math.floor,eh=Math.log,th=Math.LN2,ieee754_pack=function(Tn,Un,Qn){var Dn,Hn,Gn,zn=new Array(Qn),Vn=8*Qn-Un-1,Kn=(1<<Vn)-1,Wn=Kn>>1,Xn=23===Un?$d(2,-24)-$d(2,-77):0,Yn=Tn<0||0===Tn&&1/Tn<0?1:0,Jn=0;for((Tn=Jd(Tn))!=Tn||Infinity===Tn?(Hn=Tn!=Tn?1:0,Dn=Kn):(Dn=Zd(eh(Tn)/th),Tn*(Gn=$d(2,-Dn))<1&&(Dn--,Gn*=2),(Tn+=Dn+Wn>=1?Xn/Gn:Xn*$d(2,1-Wn))*Gn>=2&&(Dn++,Gn/=2),Dn+Wn>=Kn?(Hn=0,Dn=Kn):Dn+Wn>=1?(Hn=(Tn*Gn-1)*$d(2,Un),Dn+=Wn):(Hn=Tn*$d(2,Wn-1)*$d(2,Un),Dn=0));Un>=8;zn[Jn++]=255&Hn,Hn/=256,Un-=8);for(Dn=Dn<<Un|Hn,Vn+=Un;Vn>0;zn[Jn++]=255&Dn,Dn/=256,Vn-=8);return zn[--Jn]|=128*Yn,zn},ieee754_unpack=function(Tn,Un){var Qn,Dn=Tn.length,Hn=8*Dn-Un-1,Gn=(1<<Hn)-1,zn=Gn>>1,Vn=Hn-7,Kn=Dn-1,Wn=Tn[Kn--],Xn=127&Wn;for(Wn>>=7;Vn>0;Xn=256*Xn+Tn[Kn],Kn--,Vn-=8);for(Qn=Xn&(1<<-Vn)-1,Xn>>=-Vn,Vn+=Un;Vn>0;Qn=256*Qn+Tn[Kn],Kn--,Vn-=8);if(0===Xn)Xn=1-zn;else{if(Xn===Gn)return Qn?NaN:Wn?-Infinity:Infinity;Qn+=$d(2,Un),Xn-=zn}return(Wn?-1:1)*Qn*$d(2,Xn-Un)},nh=function fill(Tn){for(var Un=toObject(this),Qn=toLength(Un.length),Dn=arguments.length,Hn=toAbsoluteIndex(Dn>1?arguments[1]:void 0,Qn),Gn=Dn>2?arguments[2]:void 0,zn=void 0===Gn?Qn:toAbsoluteIndex(Gn,Qn);zn>Hn;)Un[Hn++]=Tn;return Un},rh=Rr.f,ih=tr.f,ah=kr.get,oh=kr.set,sh=Un.ArrayBuffer,lh=sh,ch=Un.DataView,uh=ch&&ch.prototype,dh=Object.prototype,hh=Un.RangeError,ph=ieee754_pack,Ah=ieee754_unpack,packInt8=function(Tn){return[255&Tn]},packInt16=function(Tn){return[255&Tn,Tn>>8&255]},packInt32=function(Tn){return[255&Tn,Tn>>8&255,Tn>>16&255,Tn>>24&255]},unpackInt32=function(Tn){return Tn[3]<<24|Tn[2]<<16|Tn[1]<<8|Tn[0]},packFloat32=function(Tn){return ph(Tn,23,4)},packFloat64=function(Tn){return ph(Tn,52,8)},addGetter=function(Tn,Un){ih(Tn.prototype,Un,{get:function(){return ah(this)[Un]}})},get$1=function(Tn,Un,Qn,Dn){var Hn=toIndex(Qn),Gn=ah(Tn);if(Hn+Un>Gn.byteLength)throw hh("Wrong index");var zn=ah(Gn.buffer).bytes,Vn=Hn+Gn.byteOffset,Kn=zn.slice(Vn,Vn+Un);return Dn?Kn:Kn.reverse()},set$2=function(Tn,Un,Qn,Dn,Hn,Gn){var zn=toIndex(Qn),Vn=ah(Tn);if(zn+Un>Vn.byteLength)throw hh("Wrong index");for(var Kn=ah(Vn.buffer).bytes,Wn=zn+Vn.byteOffset,Xn=Dn(+Hn),Yn=0;Yn<Un;Yn++)Kn[Wn+Yn]=Xn[Gn?Yn:Un-Yn-1]};if(Yd){if(!fails((function(){sh(1)}))||!fails((function(){new sh(-1)}))||fails((function(){return new sh,new sh(1.5),new sh(NaN),"ArrayBuffer"!=sh.name}))){for(var fh,gh=(lh=function ArrayBuffer(Tn){return anInstance(this,lh),new sh(toIndex(Tn))}).prototype=sh.prototype,mh=rh(sh),_h=0;mh.length>_h;)(fh=mh[_h++])in lh||nr(lh,fh,sh[fh]);gh.constructor=lh}Ea&&Lo(uh)!==dh&&Ea(uh,dh);var vh=new ch(new lh(2)),yh=uh.setInt8;vh.setInt8(0,2147483648),vh.setInt8(1,2147483649),!vh.getInt8(0)&&vh.getInt8(1)||redefineAll(uh,{setInt8:function setInt8(Tn,Un){yh.call(this,Tn,Un<<24>>24)},setUint8:function setUint8(Tn,Un){yh.call(this,Tn,Un<<24>>24)}},{unsafe:!0})}else lh=function ArrayBuffer(Tn){anInstance(this,lh,"ArrayBuffer");var Un=toIndex(Tn);oh(this,{bytes:nh.call(new Array(Un),0),byteLength:Un}),Qn||(this.byteLength=Un)},ch=function DataView(Tn,Un,Dn){anInstance(this,ch,"DataView"),anInstance(Tn,lh,"DataView");var Hn=ah(Tn).byteLength,Gn=toInteger(Un);if(Gn<0||Gn>Hn)throw hh("Wrong offset");if(Gn+(Dn=void 0===Dn?Hn-Gn:toLength(Dn))>Hn)throw hh("Wrong length");oh(this,{buffer:Tn,byteLength:Dn,byteOffset:Gn}),Qn||(this.buffer=Tn,this.byteLength=Dn,this.byteOffset=Gn)},Qn&&(addGetter(lh,"byteLength"),addGetter(ch,"buffer"),addGetter(ch,"byteLength"),addGetter(ch,"byteOffset")),redefineAll(ch.prototype,{getInt8:function getInt8(Tn){return get$1(this,1,Tn)[0]<<24>>24},getUint8:function getUint8(Tn){return get$1(this,1,Tn)[0]},getInt16:function getInt16(Tn){var Un=get$1(this,2,Tn,arguments.length>1?arguments[1]:void 0);return(Un[1]<<8|Un[0])<<16>>16},getUint16:function getUint16(Tn){var Un=get$1(this,2,Tn,arguments.length>1?arguments[1]:void 0);return Un[1]<<8|Un[0]},getInt32:function getInt32(Tn){return unpackInt32(get$1(this,4,Tn,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(Tn){return unpackInt32(get$1(this,4,Tn,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(Tn){return Ah(get$1(this,4,Tn,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(Tn){return Ah(get$1(this,8,Tn,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(Tn,Un){set$2(this,1,Tn,packInt8,Un)},setUint8:function setUint8(Tn,Un){set$2(this,1,Tn,packInt8,Un)},setInt16:function setInt16(Tn,Un){set$2(this,2,Tn,packInt16,Un,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(Tn,Un){set$2(this,2,Tn,packInt16,Un,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(Tn,Un){set$2(this,4,Tn,packInt32,Un,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(Tn,Un){set$2(this,4,Tn,packInt32,Un,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(Tn,Un){set$2(this,4,Tn,packFloat32,Un,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(Tn,Un){set$2(this,8,Tn,packFloat64,Un,arguments.length>2?arguments[2]:void 0)}});setToStringTag(lh,"ArrayBuffer"),setToStringTag(ch,"DataView");var bh={ArrayBuffer:lh,DataView:ch},wh=bh.ArrayBuffer,xh=bh.DataView,kh=wh.prototype.slice,Sh=fails((function(){return!new wh(2).slice(1,void 0).byteLength}));_export({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Sh},{slice:function slice(Tn,Un){if(void 0!==kh&&void 0===Un)return kh.call(anObject(this),Tn);for(var Qn=anObject(this).byteLength,Dn=toAbsoluteIndex(Tn,Qn),Hn=toAbsoluteIndex(void 0===Un?Qn:Un,Qn),Gn=new(speciesConstructor(this,wh))(toLength(Hn-Dn)),zn=new xh(this),Vn=new xh(Gn),Kn=0;Dn<Hn;)Vn.setUint8(Kn++,zn.getUint8(Dn++));return Gn}});var Ch,Bh=tr.f,Eh=Un.Int8Array,Nh=Eh&&Eh.prototype,Lh=Un.Uint8ClampedArray,Th=Lh&&Lh.prototype,Ph=Eh&&Lo(Eh),Fh=Nh&&Lo(Nh),Uh=Object.prototype,Ih=Uh.isPrototypeOf,Rh=wellKnownSymbol("toStringTag"),Mh=uid("TYPED_ARRAY_TAG"),Qh=Yd&&!!Ea&&"Opera"!==Aa(Un.opera),Oh=!1,Dh={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},isTypedArray=function(Tn){return isObject(Tn)&&has(Dh,Aa(Tn))};for(Ch in Dh)Un[Ch]||(Qh=!1);if((!Qh||"function"!=typeof Ph||Ph===Function.prototype)&&(Ph=function TypedArray(){throw TypeError("Incorrect invocation")},Qh))for(Ch in Dh)Un[Ch]&&Ea(Un[Ch],Ph);if((!Qh||!Fh||Fh===Uh)&&(Fh=Ph.prototype,Qh))for(Ch in Dh)Un[Ch]&&Ea(Un[Ch].prototype,Fh);if(Qh&&Lo(Th)!==Fh&&Ea(Th,Fh),Qn&&!has(Fh,Rh))for(Ch in Oh=!0,Bh(Fh,Rh,{get:function(){return isObject(this)?this[Mh]:void 0}}),Dh)Un[Ch]&&nr(Un[Ch],Mh,Ch);var jh={NATIVE_ARRAY_BUFFER_VIEWS:Qh,TYPED_ARRAY_TAG:Oh&&Mh,aTypedArray:function(Tn){if(isTypedArray(Tn))return Tn;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(Tn){if(Ea){if(Ih.call(Ph,Tn))return Tn}else for(var Qn in Dh)if(has(Dh,Ch)){var Dn=Un[Qn];if(Dn&&(Tn===Dn||Ih.call(Dn,Tn)))return Tn}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(Tn,Dn,Hn){if(Qn){if(Hn)for(var Gn in Dh){var zn=Un[Gn];zn&&has(zn.prototype,Tn)&&delete zn.prototype[Tn]}Fh[Tn]&&!Hn||Sr(Fh,Tn,Hn?Dn:Qh&&Nh[Tn]||Dn)}},exportTypedArrayStaticMethod:function(Tn,Dn,Hn){var Gn,zn;if(Qn){if(Ea){if(Hn)for(Gn in Dh)(zn=Un[Gn])&&has(zn,Tn)&&delete zn[Tn];if(Ph[Tn]&&!Hn)return;try{return Sr(Ph,Tn,Hn?Dn:Qh&&Eh[Tn]||Dn)}catch(Tn){}}for(Gn in Dh)!(zn=Un[Gn])||zn[Tn]&&!Hn||Sr(zn,Tn,Dn)}},isView:function isView(Tn){var Un=Aa(Tn);return"DataView"===Un||has(Dh,Un)},isTypedArray:isTypedArray,TypedArray:Ph,TypedArrayPrototype:Fh},Hh=jh.NATIVE_ARRAY_BUFFER_VIEWS,Gh=Un.ArrayBuffer,zh=Un.Int8Array,Vh=!Hh||!fails((function(){zh(1)}))||!fails((function(){new zh(-1)}))||!checkCorrectnessOfIteration((function(Tn){new zh,new zh(null),new zh(1.5),new zh(Tn)}),!0)||fails((function(){return 1!==new zh(new Gh(2),1,void 0).length})),toOffset=function(Tn,Un){var Qn=function(Tn){var Un=toInteger(Tn);if(Un<0)throw RangeError("The argument can't be less than 0");return Un}(Tn);if(Qn%Un)throw RangeError("Wrong offset");return Qn},Kh=jh.aTypedArrayConstructor,qh=function from(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn=toObject(Tn),Kn=arguments.length,Wn=Kn>1?arguments[1]:void 0,Xn=void 0!==Wn,Yn=getIteratorMethod(Vn);if(null!=Yn&&!isArrayIteratorMethod(Yn))for(zn=(Gn=Yn.call(Vn)).next,Vn=[];!(Hn=zn.call(Gn)).done;)Vn.push(Hn.value);for(Xn&&Kn>2&&(Wn=functionBindContext(Wn,arguments[2],2)),Qn=toLength(Vn.length),Dn=new(Kh(this))(Qn),Un=0;Qn>Un;Un++)Dn[Un]=Xn?Wn(Vn[Un],Un):Vn[Un];return Dn},Wh=createCommonjsModule((function(Tn){var Dn=Rr.f,Hn=ui.forEach,Gn=kr.get,zn=kr.set,Vn=tr.f,Kn=Zn.f,Wn=Math.round,Xn=Un.RangeError,Yn=bh.ArrayBuffer,Jn=bh.DataView,$n=jh.NATIVE_ARRAY_BUFFER_VIEWS,er=jh.TYPED_ARRAY_TAG,rr=jh.TypedArray,ir=jh.TypedArrayPrototype,ar=jh.aTypedArrayConstructor,or=jh.isTypedArray,sr="BYTES_PER_ELEMENT",lr="Wrong length",fromList=function(Tn,Un){for(var Qn=0,Dn=Un.length,Hn=new(ar(Tn))(Dn);Dn>Qn;)Hn[Qn]=Un[Qn++];return Hn},addGetter=function(Tn,Un){Vn(Tn,Un,{get:function(){return Gn(this)[Un]}})},isArrayBuffer=function(Tn){var Un;return Tn instanceof Yn||"ArrayBuffer"==(Un=Aa(Tn))||"SharedArrayBuffer"==Un},isTypedArrayIndex=function(Tn,Un){return or(Tn)&&"symbol"!=typeof Un&&Un in Tn&&String(+Un)==String(Un)},cr=function getOwnPropertyDescriptor(Tn,Un){return isTypedArrayIndex(Tn,Un=toPrimitive(Un,!0))?createPropertyDescriptor(2,Tn[Un]):Kn(Tn,Un)},ur=function defineProperty(Tn,Un,Qn){return!(isTypedArrayIndex(Tn,Un=toPrimitive(Un,!0))&&isObject(Qn)&&has(Qn,"value"))||has(Qn,"get")||has(Qn,"set")||Qn.configurable||has(Qn,"writable")&&!Qn.writable||has(Qn,"enumerable")&&!Qn.enumerable?Vn(Tn,Un,Qn):(Tn[Un]=Qn.value,Tn)};Qn?($n||(Zn.f=cr,tr.f=ur,addGetter(ir,"buffer"),addGetter(ir,"byteOffset"),addGetter(ir,"byteLength"),addGetter(ir,"length")),_export({target:"Object",stat:!0,forced:!$n},{getOwnPropertyDescriptor:cr,defineProperty:ur}),Tn.exports=function(Tn,Qn,Kn){var Zn=Tn.match(/\d+$/)[0]/8,tr=Tn+(Kn?"Clamped":"")+"Array",ar="get"+Tn,cr="set"+Tn,ur=Un[tr],dr=ur,hr=dr&&dr.prototype,pr={},addElement=function(Tn,Un){Vn(Tn,Un,{get:function(){return function(Tn,Un){var Qn=Gn(Tn);return Qn.view[ar](Un*Zn+Qn.byteOffset,!0)}(this,Un)},set:function(Tn){return function(Tn,Un,Qn){var Dn=Gn(Tn);Kn&&(Qn=(Qn=Wn(Qn))<0?0:Qn>255?255:255&Qn),Dn.view[cr](Un*Zn+Dn.byteOffset,Qn,!0)}(this,Un,Tn)},enumerable:!0})};$n?Vh&&(dr=Qn((function(Tn,Un,Qn,Dn){return anInstance(Tn,dr,tr),inheritIfRequired(isObject(Un)?isArrayBuffer(Un)?void 0!==Dn?new ur(Un,toOffset(Qn,Zn),Dn):void 0!==Qn?new ur(Un,toOffset(Qn,Zn)):new ur(Un):or(Un)?fromList(dr,Un):qh.call(dr,Un):new ur(toIndex(Un)),Tn,dr)})),Ea&&Ea(dr,rr),Hn(Dn(ur),(function(Tn){Tn in dr||nr(dr,Tn,ur[Tn])})),dr.prototype=hr):(dr=Qn((function(Tn,Un,Qn,Dn){anInstance(Tn,dr,tr);var Hn,Gn,Vn,Kn=0,Wn=0;if(isObject(Un)){if(!isArrayBuffer(Un))return or(Un)?fromList(dr,Un):qh.call(dr,Un);Hn=Un,Wn=toOffset(Qn,Zn);var $n=Un.byteLength;if(void 0===Dn){if($n%Zn)throw Xn(lr);if((Gn=$n-Wn)<0)throw Xn(lr)}else if((Gn=toLength(Dn)*Zn)+Wn>$n)throw Xn(lr);Vn=Gn/Zn}else Vn=toIndex(Un),Hn=new Yn(Gn=Vn*Zn);for(zn(Tn,{buffer:Hn,byteOffset:Wn,byteLength:Gn,length:Vn,view:new Jn(Hn)});Kn<Vn;)addElement(Tn,Kn++)})),Ea&&Ea(dr,rr),hr=dr.prototype=wi(ir)),hr.constructor!==dr&&nr(hr,"constructor",dr),er&&nr(hr,er,tr),pr[tr]=dr,_export({global:!0,forced:dr!=ur,sham:!$n},pr),sr in dr||nr(dr,sr,Zn),sr in hr||nr(hr,sr,Zn),setSpecies(tr)}):Tn.exports=function(){}}));Wh("Uint8",(function(Tn){return function Uint8Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}}));var Xh=Math.min,Yh=[].copyWithin||function copyWithin(Tn,Un){var Qn=toObject(this),Dn=toLength(Qn.length),Hn=toAbsoluteIndex(Tn,Dn),Gn=toAbsoluteIndex(Un,Dn),zn=arguments.length>2?arguments[2]:void 0,Vn=Xh((void 0===zn?Dn:toAbsoluteIndex(zn,Dn))-Gn,Dn-Hn),Kn=1;for(Gn<Hn&&Hn<Gn+Vn&&(Kn=-1,Gn+=Vn-1,Hn+=Vn-1);Vn-- >0;)Gn in Qn?Qn[Hn]=Qn[Gn]:delete Qn[Hn],Hn+=Kn,Gn+=Kn;return Qn},Jh=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("copyWithin",(function copyWithin(Tn,Un){return Yh.call(Jh(this),Tn,Un,arguments.length>2?arguments[2]:void 0)}));var $h=ui.every,Zh=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("every",(function every(Tn){return $h(Zh(this),Tn,arguments.length>1?arguments[1]:void 0)}));var ep=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("fill",(function fill(Tn){return nh.apply(ep(this),arguments)}));var tp=ui.filter,np=jh.aTypedArray,rp=jh.aTypedArrayConstructor;(0,jh.exportTypedArrayMethod)("filter",(function filter(Tn){for(var Un=tp(np(this),Tn,arguments.length>1?arguments[1]:void 0),Qn=speciesConstructor(this,this.constructor),Dn=0,Hn=Un.length,Gn=new(rp(Qn))(Hn);Hn>Dn;)Gn[Dn]=Un[Dn++];return Gn}));var ip=ui.find,ap=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("find",(function find(Tn){return ip(ap(this),Tn,arguments.length>1?arguments[1]:void 0)}));var op=ui.findIndex,sp=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("findIndex",(function findIndex(Tn){return op(sp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var lp=ui.forEach,cp=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("forEach",(function forEach(Tn){lp(cp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var up=Pr.includes,dp=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("includes",(function includes(Tn){return up(dp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var hp=Pr.indexOf,pp=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("indexOf",(function indexOf(Tn){return hp(pp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var Ap=wellKnownSymbol("iterator"),fp=Un.Uint8Array,gp=Ho.values,mp=Ho.keys,_p=Ho.entries,vp=jh.aTypedArray,yp=jh.exportTypedArrayMethod,wp=fp&&fp.prototype[Ap],xp=!!wp&&("values"==wp.name||null==wp.name),kp=function values(){return gp.call(vp(this))};yp("entries",(function entries(){return _p.call(vp(this))})),yp("keys",(function keys(){return mp.call(vp(this))})),yp("values",kp,!xp),yp(Ap,kp,!xp);var Sp=jh.aTypedArray,Cp=[].join;(0,jh.exportTypedArrayMethod)("join",(function join(Tn){return Cp.apply(Sp(this),arguments)}));var Bp=Math.min,Ep=[].lastIndexOf,Np=!!Ep&&1/[1].lastIndexOf(1,-0)<0,Lp=arrayMethodIsStrict("lastIndexOf"),Tp=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0}),Pp=Np||!Lp||!Tp?function lastIndexOf(Tn){if(Np)return Ep.apply(this,arguments)||0;var Un=toIndexedObject(this),Qn=toLength(Un.length),Dn=Qn-1;for(arguments.length>1&&(Dn=Bp(Dn,toInteger(arguments[1]))),Dn<0&&(Dn=Qn+Dn);Dn>=0;Dn--)if(Dn in Un&&Un[Dn]===Tn)return Dn||0;return-1}:Ep,Fp=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(Tn){return Pp.apply(Fp(this),arguments)}));var Up=ui.map,Ip=jh.aTypedArray,Rp=jh.aTypedArrayConstructor;(0,jh.exportTypedArrayMethod)("map",(function map(Tn){return Up(Ip(this),Tn,arguments.length>1?arguments[1]:void 0,(function(Tn,Un){return new(Rp(speciesConstructor(Tn,Tn.constructor)))(Un)}))}));var Mp=fs.left,Qp=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("reduce",(function reduce(Tn){return Mp(Qp(this),Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Op=fs.right,Dp=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("reduceRight",(function reduceRight(Tn){return Op(Dp(this),Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}));var jp=jh.aTypedArray,Hp=jh.exportTypedArrayMethod,Gp=Math.floor;Hp("reverse",(function reverse(){for(var Tn,Un=this,Qn=jp(Un).length,Dn=Gp(Qn/2),Hn=0;Hn<Dn;)Tn=Un[Hn],Un[Hn++]=Un[--Qn],Un[Qn]=Tn;return Un}));var zp=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("set",(function set(Tn){zp(this);var Un=toOffset(arguments.length>1?arguments[1]:void 0,1),Qn=this.length,Dn=toObject(Tn),Hn=toLength(Dn.length),Gn=0;if(Hn+Un>Qn)throw RangeError("Wrong length");for(;Gn<Hn;)this[Un+Gn]=Dn[Gn++]}),fails((function(){new Int8Array(1).set({})})));var Vp=jh.aTypedArray,Kp=jh.aTypedArrayConstructor,qp=[].slice;(0,jh.exportTypedArrayMethod)("slice",(function slice(Tn,Un){for(var Qn=qp.call(Vp(this),Tn,Un),Dn=speciesConstructor(this,this.constructor),Hn=0,Gn=Qn.length,zn=new(Kp(Dn))(Gn);Gn>Hn;)zn[Hn]=Qn[Hn++];return zn}),fails((function(){new Int8Array(1).slice()})));var Wp=ui.some,Xp=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("some",(function some(Tn){return Wp(Xp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var Yp=jh.aTypedArray,Jp=[].sort;(0,jh.exportTypedArrayMethod)("sort",(function sort(Tn){return Jp.call(Yp(this),Tn)}));var $p=jh.aTypedArray;(0,jh.exportTypedArrayMethod)("subarray",(function subarray(Tn,Un){var Qn=$p(this),Dn=Qn.length,Hn=toAbsoluteIndex(Tn,Dn);return new(speciesConstructor(Qn,Qn.constructor))(Qn.buffer,Qn.byteOffset+Hn*Qn.BYTES_PER_ELEMENT,toLength((void 0===Un?Dn:toAbsoluteIndex(Un,Dn))-Hn))}));var Zp=Un.Int8Array,eA=jh.aTypedArray,tA=jh.exportTypedArrayMethod,nA=[].toLocaleString,rA=[].slice,iA=!!Zp&&fails((function(){nA.call(new Zp(1))}));tA("toLocaleString",(function toLocaleString(){return nA.apply(iA?rA.call(eA(this)):eA(this),arguments)}),fails((function(){return[1,2].toLocaleString()!=new Zp([1,2]).toLocaleString()}))||!fails((function(){Zp.prototype.toLocaleString.call([1,2])})));var aA=jh.exportTypedArrayMethod,oA=Un.Uint8Array,sA=oA&&oA.prototype||{},lA=[].toString,cA=[].join;fails((function(){lA.call({})}))&&(lA=function toString(){return cA.call(this)});var uA=sA.toString!=lA;
|
||
/**
|
||
* A jQuery module to work with SVG attributes.
|
||
* @module jQueryAttr
|
||
* @license MIT
|
||
*/
|
||
function jQueryPluginSVG(Tn){var Un=Tn.fn.attr;return Tn.fn.attr=function(Tn,Qn){var Dn=this.length;if(!Dn)return Un.call(this,Tn,Qn);for(var Hn=0;Hn<Dn;++Hn){var Gn=this[Hn];if("http://www.w3.org/2000/svg"!==Gn.namespaceURI)return Un.call(this,Tn,Qn);if(void 0!==Qn)Gn.setAttribute(Tn,Qn);else if(Array.isArray(Tn)){for(var zn={},Vn=Tn.length;Vn--;){var Kn=Tn[Vn],Wn=Gn.getAttribute(Kn);(Wn||"0"===Wn)&&(Wn=isNaN(Wn)?Wn:Wn-0),zn[Kn]=Wn}return zn}if("object"!==_typeof(Tn)){var Xn=Gn.getAttribute(Tn);return(Xn||"0"===Xn)&&(Xn=isNaN(Xn)?Xn:Xn-0),Xn}for(var Yn=0,Jn=Object.entries(Tn);Yn<Jn.length;Yn++){var $n=_slicedToArray(Jn[Yn],2),Zn=$n[0],er=$n[1];Gn.setAttribute(Zn,er)}}return this},Tn}aA("toString",lA,uA);var dA=document.createElementNS(yd.SVG,"svg");function transformToString(Tn){var Un=Tn.matrix,Qn="";switch(Tn.type){case 1:Qn="matrix("+[Un.a,Un.b,Un.c,Un.d,Un.e,Un.f].join(",")+")";break;case 2:Qn="translate("+Un.e+","+Un.f+")";break;case 3:Qn=Un.a===Un.d?"scale("+Un.a+")":"scale("+Un.a+","+Un.d+")";break;case 4:var Dn=0,Hn=0;if(0!==Tn.angle){var Gn=1-Un.a;Hn=(Gn*Un.f+Un.b*Un.e)/(Gn*Gn+Un.b*Un.b),Dn=(Un.e-Un.b*Hn)/Gn}Qn="rotate("+Tn.angle+" "+Dn+","+Hn+")"}return Qn}var hA,pA={},AA=function(){function SVGTransformList(Tn){_classCallCheck(this,SVGTransformList),this._elem=Tn||null,this._xforms=[],this._update=function(){for(var Tn="",Un=0;Un<this.numberOfItems;++Un){Tn+=transformToString(this._list.getItem(Un))+" "}this._elem.setAttribute("transform",Tn)},this._list=this,this._init=function(){var Tn=this,Un=this._elem.getAttribute("transform");if(Un)for(var Qn=/\s*((scale|matrix|rotate|translate)\s*\(.*?\))\s*,?\s*/,Dn=!0;Dn;)Dn=Un.match(Qn),Un=Un.replace(Qn,""),Dn&&Dn[1]&&function(){var Un=Dn[1].split(/\s*\(/),Qn=Un[0],Hn=Un[1].match(/\s*(.*?)\s*\)/);Hn[1]=Hn[1].replace(/(\d)-/g,"$1 -");var Gn=Hn[1].split(/[, ]+/),zn="abcdef".split(""),Vn=dA.createSVGMatrix();Object.values(Gn).forEach((function(Tn,Un){Gn[Un]=Number.parseFloat(Tn),"matrix"===Qn&&(Vn[zn[Un]]=Gn[Un])}));var Kn=dA.createSVGTransform(),Wn="set"+Qn.charAt(0).toUpperCase()+Qn.slice(1),Xn="matrix"===Qn?[Vn]:Gn;"scale"===Qn&&1===Xn.length?Xn.push(Xn[0]):"translate"===Qn&&1===Xn.length?Xn.push(0):"rotate"===Qn&&1===Xn.length&&Xn.push(0,0),Kn[Wn].apply(Kn,_toConsumableArray(Xn)),Tn._list.appendItem(Kn)}()},this._removeFromOtherLists=function(Tn){Tn&&Object.values(pA).some((function(Un){for(var Qn=0,Dn=Un._xforms.length;Qn<Dn;++Qn)if(Un._xforms[Qn]===Tn)return Un.removeItem(Qn),!0;return!1}))},this.numberOfItems=0}return _createClass(SVGTransformList,[{key:"clear",value:function clear(){this.numberOfItems=0,this._xforms=[]}},{key:"initialize",value:function initialize(Tn){this.numberOfItems=1,this._removeFromOtherLists(Tn),this._xforms=[Tn]}},{key:"getItem",value:function getItem(Tn){if(Tn<this.numberOfItems&&Tn>=0)return this._xforms[Tn];var Un=new Error("DOMException with code=INDEX_SIZE_ERR");throw Un.code=1,Un}},{key:"insertItemBefore",value:function insertItemBefore(Tn,Un){var Qn=null;if(Un>=0)if(Un<this.numberOfItems){this._removeFromOtherLists(Tn);var Dn,Hn=new Array(this.numberOfItems+1);for(Dn=0;Dn<Un;++Dn)Hn[Dn]=this._xforms[Dn];Hn[Dn]=Tn;for(var Gn=Dn+1;Dn<this.numberOfItems;++Gn,++Dn)Hn[Gn]=this._xforms[Dn];this.numberOfItems++,this._xforms=Hn,Qn=Tn,this._list._update()}else Qn=this._list.appendItem(Tn);return Qn}},{key:"replaceItem",value:function replaceItem(Tn,Un){var Qn=null;return Un<this.numberOfItems&&Un>=0&&(this._removeFromOtherLists(Tn),this._xforms[Un]=Tn,Qn=Tn,this._list._update()),Qn}},{key:"removeItem",value:function removeItem(Tn){if(Tn<this.numberOfItems&&Tn>=0){var Un,Qn=this._xforms[Tn],Dn=new Array(this.numberOfItems-1);for(Un=0;Un<Tn;++Un)Dn[Un]=this._xforms[Un];for(var Hn=Un;Hn<this.numberOfItems-1;++Hn,++Un)Dn[Hn]=this._xforms[Un+1];return this.numberOfItems--,this._xforms=Dn,this._list._update(),Qn}var Gn=new Error("DOMException with code=INDEX_SIZE_ERR");throw Gn.code=1,Gn}},{key:"appendItem",value:function appendItem(Tn){return this._removeFromOtherLists(Tn),this._xforms.push(Tn),this.numberOfItems++,this._list._update(),Tn}}]),SVGTransformList}(),fA=function removeElementFromListMap(Tn){Tn.id&&pA[Tn.id]&&delete pA[Tn.id]},gA=function getTransformList(Tn){if(!function supportsNativeTransformLists(){return jd}()){var Un=Tn.id||"temp",Qn=pA[Un];return Qn&&"temp"!==Un||(pA[Un]=new AA(Tn),pA[Un]._init(),Qn=pA[Un]),Qn}return Tn.transform?Tn.transform.baseVal:Tn.gradientTransform?Tn.gradientTransform.baseVal:Tn.patternTransform?Tn.patternTransform.baseVal:null},mA=["x","x1","cx","rx","width"],_A=["y","y1","cy","ry","height"],vA=["r","radius"].concat(mA,_A),yA={},wA=function getTypeMap(){return yA},xA=function shortFloat(Tn){var Un=hA.getRoundDigits();return isNaN(Tn)?Array.isArray(Tn)?shortFloat(Tn[0])+","+shortFloat(Tn[1]):Number.parseFloat(Tn).toFixed(Un)-0:Number(Number(Tn).toFixed(Un))},kA=function convertUnit(Tn,Un){return Un=Un||hA.getBaseUnit(),xA(Tn/yA[Un])},SA=function setUnitAttr(Tn,Un,Qn){Tn.setAttribute(Un,Qn)},CA=function convertToNum(Tn,Un){if(!isNaN(Un))return Un-0;if("%"===Un.substr(-1)){var Qn=Un.substr(0,Un.length-1)/100,Dn=hA.getWidth(),Hn=hA.getHeight();return mA.includes(Tn)?Qn*Dn:_A.includes(Tn)?Qn*Hn:Qn*Math.sqrt(Dn*Dn+Hn*Hn)/Math.sqrt(2)}var Gn=Un.substr(-2);return Un.substr(0,Un.length-2)*yA[Gn]},BA=function isValidUnit(Tn,Un,Qn){if(vA.includes(Tn))return!isNaN(Un)||(Un=Un.toLowerCase(),Object.keys(yA).some((function(Tn){return new RegExp("^-?[\\d\\.]+"+Tn+"$").test(Un)})));if("id"===Tn){var Dn=!1;try{var Hn=hA.getElement(Un);Dn=!Hn||Hn===Qn}catch(Tn){}return Dn}return!0},EA=fs.right,NA=arrayMethodIsStrict("reduceRight"),LA=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!NA||!LA},{reduceRight:function reduceRight(Tn){return EA(this,Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}});var TA=document.createElementNS(yd.SVG,"svg"),PA=function transformPoint(Tn,Un,Qn){return{x:Qn.a*Tn+Qn.c*Un+Qn.e,y:Qn.b*Tn+Qn.d*Un+Qn.f}},FA=function isIdentity(Tn){return 1===Tn.a&&0===Tn.b&&0===Tn.c&&1===Tn.d&&0===Tn.e&&0===Tn.f},UA=function matrixMultiply(){for(var Tn=arguments.length,Un=new Array(Tn),Qn=0;Qn<Tn;Qn++)Un[Qn]=arguments[Qn];var Dn=Un.reduceRight((function(Tn,Un){return Un.multiply(Tn)}));return Math.abs(Dn.a)<1e-14&&(Dn.a=0),Math.abs(Dn.b)<1e-14&&(Dn.b=0),Math.abs(Dn.c)<1e-14&&(Dn.c=0),Math.abs(Dn.d)<1e-14&&(Dn.d=0),Math.abs(Dn.e)<1e-14&&(Dn.e=0),Math.abs(Dn.f)<1e-14&&(Dn.f=0),Dn},IA=function hasMatrixTransform(Tn){if(!Tn)return!1;for(var Un=Tn.numberOfItems;Un--;){var Qn=Tn.getItem(Un);if(1===Qn.type&&!FA(Qn.matrix))return!0}return!1},RA=function transformBox(Tn,Un,Qn,Dn,Hn){var Gn=PA(Tn,Un,Hn),zn=PA(Tn+Qn,Un,Hn),Vn=PA(Tn,Un+Dn,Hn),Kn=PA(Tn+Qn,Un+Dn,Hn),Wn=Math.min(Gn.x,zn.x,Vn.x,Kn.x),Xn=Math.max(Gn.x,zn.x,Vn.x,Kn.x),Yn=Math.min(Gn.y,zn.y,Vn.y,Kn.y);return{tl:Gn,tr:zn,bl:Vn,br:Kn,aabox:{x:Wn,y:Yn,width:Xn-Wn,height:Math.max(Gn.y,zn.y,Vn.y,Kn.y)-Yn}}},MA=function transformListToTransform(Tn,Un,Qn){if(!Tn)return TA.createSVGTransformFromMatrix(TA.createSVGMatrix());if(Un=Un||0,Qn=Qn||Tn.numberOfItems-1,(Un=Number.parseInt(Un))>(Qn=Number.parseInt(Qn))){var Dn=Qn;Qn=Un,Un=Dn}for(var Hn=TA.createSVGMatrix(),Gn=Un;Gn<=Qn;++Gn){var zn=Gn>=0&&Gn<Tn.numberOfItems?Tn.getItem(Gn).matrix:TA.createSVGMatrix();Hn=UA(Hn,zn)}return TA.createSVGTransformFromMatrix(Hn)},QA=function getMatrix(Tn){var Un=gA(Tn);return MA(Un).matrix},OA=function snapToAngle(Tn,Un,Qn,Dn){var Hn=Math.PI/4,Gn=Qn-Tn,zn=Dn-Un,Vn=Math.atan2(zn,Gn),Kn=Math.sqrt(Gn*Gn+zn*zn),Wn=Math.round(Vn/Hn)*Hn;return{x:Tn+Kn*Math.cos(Wn),y:Un+Kn*Math.sin(Wn),a:Wn}},DA=function rectsIntersect(Tn,Un){return Un.x<Tn.x+Tn.width&&Un.x+Un.width>Tn.x&&Un.y<Tn.y+Tn.height&&Un.y+Un.height>Tn.y},jA=jQueryPluginSVG(jQuery),HA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",GA="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use,clipPath".split(","),zA=null,VA=null,KA=null,qA=null,WA=function dropXMLInternalSubset(Tn){return Tn.replace(/(<!DOCTYPE\s+\w*\s*\[).*(\?]>)/,"$1$2")},XA=function toXml(Tn){return Tn.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};function encode64(Tn){if(Tn=YA(Tn),window.btoa)return window.btoa(Tn);var Un=new Array(4*Math.floor((Tn.length+2)/3)),Qn=0,Dn=0;do{var Hn=Tn.charCodeAt(Qn++),Gn=Tn.charCodeAt(Qn++),zn=Tn.charCodeAt(Qn++),Vn=Hn>>2,Kn=(3&Hn)<<4|Gn>>4,Wn=(15&Gn)<<2|zn>>6,Xn=63&zn;Number.isNaN(Gn)?(Wn=64,Xn=64):Number.isNaN(zn)&&(Xn=64),Un[Dn++]=HA.charAt(Vn),Un[Dn++]=HA.charAt(Kn),Un[Dn++]=HA.charAt(Wn),Un[Dn++]=HA.charAt(Xn)}while(Qn<Tn.length);return Un.join("")}function decode64(Tn){if(window.atob)return decodeUTF8(window.atob(Tn));Tn=Tn.replace(/[^A-Za-z\d+/=]/g,"");var Un="",Qn=0;do{var Dn=HA.indexOf(Tn.charAt(Qn++)),Hn=HA.indexOf(Tn.charAt(Qn++)),Gn=HA.indexOf(Tn.charAt(Qn++)),zn=HA.indexOf(Tn.charAt(Qn++)),Vn=Dn<<2|Hn>>4,Kn=(15&Hn)<<4|Gn>>2,Wn=(3&Gn)<<6|zn;Un+=String.fromCharCode(Vn),64!==Gn&&(Un+=String.fromCharCode(Kn)),64!==zn&&(Un+=String.fromCharCode(Wn))}while(Qn<Tn.length);return decodeUTF8(Un)}function decodeUTF8(Tn){return decodeURIComponent(escape(Tn))}var YA=function encodeUTF8(Tn){return unescape(encodeURIComponent(Tn))},JA=function dataURLToObjectURL(Tn){if("undefined"==typeof Uint8Array||"undefined"==typeof Blob||"undefined"==typeof URL||!URL.createObjectURL)return"";for(var Un=Tn.split(","),Qn=Un[0].match(/:(.*?);/)[1],Dn=atob(Un[1]),Hn=Dn.length,Gn=new Uint8Array(Hn);Hn--;)Gn[Hn]=Dn.charCodeAt(Hn);var zn=new Blob([Gn],{type:Qn});return URL.createObjectURL(zn)},$A=function createObjectURL(Tn){return Tn&&"undefined"!=typeof URL&&URL.createObjectURL?URL.createObjectURL(Tn):""},ZA=function(){if("undefined"==typeof Blob)return"";var Tn=new Blob(["<html><head><title>SVG-edit</title></head><body> </body></html>"],{type:"text/html"});return $A(Tn)}(),ef=function text2xml(Tn){var Un,Qn;Tn.includes("<svg:svg")&&(Tn=Tn.replace(/<(\/?)svg:/g,"<$1").replace("xmlns:svg","xmlns"));try{(Qn=window.DOMParser?new DOMParser:new window.ActiveXObject("Microsoft.XMLDOM")).async=!1}catch(Tn){throw new Error("XML Parser could not be instantiated")}try{Un=Qn.loadXML?!!Qn.loadXML(Tn)&&Qn:Qn.parseFromString(Tn,"text/xml")}catch(Tn){throw new Error("Error parsing XML string")}return Un},tf=function walkTree(Tn,Un){if(Tn&&1===Tn.nodeType){Un(Tn);for(var Qn=Tn.childNodes.length;Qn--;)walkTree(Tn.childNodes.item(Qn),Un)}},nf=function getUrlFromAttr(Tn){if(Tn){if(Tn.startsWith('url("'))return Tn.substring(5,Tn.indexOf('"',6));if(Tn.startsWith("url('"))return Tn.substring(5,Tn.indexOf("'",6));if(Tn.startsWith("url("))return Tn.substring(4,Tn.indexOf(")"))}return null},rf=function getHref(Tn){return Tn.getAttributeNS(yd.XLINK,"href")},af=function setHref(Tn,Un){Tn.setAttributeNS(yd.XLINK,"xlink:href",Un)},of=function findDefs(){var Tn=zA.getSVGContent(),Un=Tn.getElementsByTagNameNS(yd.SVG,"defs");return Un.length>0?Un=Un[0]:(Un=Tn.ownerDocument.createElementNS(yd.SVG,"defs"),Tn.firstChild?Tn.insertBefore(Un,Tn.firstChild.nextSibling):Tn.append(Un)),Un},sf=function getPathBBox(Tn){for(var Un=Tn.pathSegList,Qn=Un.numberOfItems,Dn=[[],[]],Hn=Un.getItem(0),Gn=[Hn.x,Hn.y],zn=function getCalc(Tn,Un,Qn,Dn){return function(Hn){return 1-Math.pow(Hn,3)*Gn[Tn]+3-Math.pow(Hn,2)*Hn*Un[Tn]+3*(1-Hn)*Math.pow(Hn,2)*Qn[Tn]+Math.pow(Hn,3)*Dn[Tn]}},Vn=0;Vn<Qn;Vn++){var Kn=Un.getItem(Vn);if(void 0!==Kn.x)if(Dn[0].push(Gn[0]),Dn[1].push(Gn[1]),Kn.x1){for(var Wn=[Kn.x1,Kn.y1],Xn=[Kn.x2,Kn.y2],Yn=[Kn.x,Kn.y],Jn=0;Jn<2;Jn++){var $n=zn(Jn,Wn,Xn,Yn),Zn=6*Gn[Jn]-12*Wn[Jn]+6*Xn[Jn],er=-3*Gn[Jn]+9*Wn[Jn]-9*Xn[Jn]+3*Yn[Jn],tr=3*Wn[Jn]-3*Gn[Jn];if(0!==er){var nr=Math.pow(Zn,2)-4*tr*er;if(!(nr<0)){var rr=(-Zn+Math.sqrt(nr))/(2*er);rr>0&&rr<1&&Dn[Jn].push($n(rr));var ir=(-Zn-Math.sqrt(nr))/(2*er);ir>0&&ir<1&&Dn[Jn].push($n(ir))}}else{if(0===Zn)continue;var ar=-tr/Zn;ar>0&&ar<1&&Dn[Jn].push($n(ar))}}Gn=Yn}else Dn[0].push(Kn.x),Dn[1].push(Kn.y)}var or=Math.min.apply(null,Dn[0]),sr=Math.max.apply(null,Dn[0])-or,lr=Math.min.apply(null,Dn[1]);return{x:or,y:lr,width:sr,height:Math.max.apply(null,Dn[1])-lr}};function groupBBFix(Tn){if(function supportsHVLineContainerBBox(){return Od}())try{return Tn.getBBox()}catch(Tn){}var Un,Qn,Dn=jA.data(Tn,"ref"),Hn=null;Dn?(Qn=jA(Dn).children().clone().attr("visibility","hidden"),jA(qA).append(Qn),Hn=Qn.filter("line, path")):Hn=jA(Tn).find("line, path");var Gn=!1;if(Hn.length)if(Hn.each((function(){var Tn=this.getBBox();Tn.width&&Tn.height||(Gn=!0)})),Gn){var zn=Dn?Qn:jA(Tn).children();Un=Af(zn)}else Un=Tn.getBBox();else Un=Tn.getBBox();return Dn&&Qn.remove(),Un}var lf=function getBBox(Tn){var Un=Tn||zA.geSelectedElements()[0];if(1!==Tn.nodeType)return null;var Qn=Un.nodeName,Dn=null;switch(Qn){case"text":""===Un.textContent?(Un.textContent="a",Dn=Un.getBBox(),Un.textContent=""):Un.getBBox&&(Dn=Un.getBBox());break;case"path":!function supportsPathBBox(){return Qd}()?Dn=sf(Un):Un.getBBox&&(Dn=Un.getBBox());break;case"g":case"a":Dn=groupBBFix(Un);break;default:if("use"===Qn&&(Dn=groupBBFix(Un)),"use"===Qn||"foreignObject"===Qn&&Hd()){if(Dn||(Dn=Un.getBBox()),!Hd()){var Hn=Dn,Gn=Hn.x,zn=Hn.y;Dn={width:Hn.width,height:Hn.height,x:Gn+Number.parseFloat(Un.getAttribute("x")||0),y:zn+Number.parseFloat(Un.getAttribute("y")||0)}}}else if(GA.includes(Qn))if(Un)try{Dn=Un.getBBox()}catch(Tn){var Vn=Un.getExtentOfChar(0),Kn=Un.getComputedTextLength();Dn={x:Vn.x,y:Vn.y,width:Kn,height:Vn.height}}else{var Wn=jA(Un).closest("foreignObject");Wn.length&&Wn[0].getBBox&&(Dn=Wn[0].getBBox())}}return Dn&&(Dn=function bboxToObj(Tn){return{x:Tn.x,y:Tn.y,width:Tn.width,height:Tn.height}}(Dn)),Dn},cf=function getPathDFromSegments(Tn){var Un="";return jA.each(Tn,(function(Tn,Qn){var Dn=_slicedToArray(Qn,2),Hn=Dn[0],Gn=Dn[1];Un+=Hn;for(var zn=0;zn<Gn.length;zn+=2)Un+=Gn[zn]+","+Gn[zn+1]+" "})),Un},uf=function getPathDFromElement(Tn){var Un,Qn,Dn,Hn,Gn=1.81;switch(Tn.tagName){case"ellipse":case"circle":var zn=Qn=jA(Tn).attr(["rx","ry","cx","cy"]),Vn=zn.cx,Kn=zn.cy,Wn=Qn;Dn=Wn.rx,Hn=Wn.ry,"circle"===Tn.tagName&&(Dn=Hn=jA(Tn).attr("r")),Un=cf([["M",[Vn-Dn,Kn]],["C",[Vn-Dn,Kn-Hn/Gn,Vn-Dn/Gn,Kn-Hn,Vn,Kn-Hn]],["C",[Vn+Dn/Gn,Kn-Hn,Vn+Dn,Kn-Hn/Gn,Vn+Dn,Kn]],["C",[Vn+Dn,Kn+Hn/Gn,Vn+Dn/Gn,Kn+Hn,Vn,Kn+Hn]],["C",[Vn-Dn/Gn,Kn+Hn,Vn-Dn,Kn+Hn/Gn,Vn-Dn,Kn]],["Z",[]]]);break;case"path":Un=Tn.getAttribute("d");break;case"line":Un="M"+(Qn=jA(Tn).attr(["x1","y1","x2","y2"])).x1+","+Qn.y1+"L"+Qn.x2+","+Qn.y2;break;case"polyline":Un="M"+Tn.getAttribute("points");break;case"polygon":Un="M"+Tn.getAttribute("points")+" Z";break;case"rect":var Xn=jA(Tn).attr(["rx","ry"]);Dn=Xn.rx,Hn=Xn.ry;var Yn=Tn.getBBox(),Jn=Yn.x,$n=Yn.y,Zn=Yn.width,er=Yn.height;Gn=4-Gn,Un=cf(Dn||Hn?[["M",[Jn,$n+Hn]],["C",[Jn,$n+Hn/Gn,Jn+Dn/Gn,$n,Jn+Dn,$n]],["L",[Jn+Zn-Dn,$n]],["C",[Jn+Zn-Dn/Gn,$n,Jn+Zn,$n+Hn/Gn,Jn+Zn,$n+Hn]],["L",[Jn+Zn,$n+er-Hn]],["C",[Jn+Zn,$n+er-Hn/Gn,Jn+Zn-Dn/Gn,$n+er,Jn+Zn-Dn,$n+er]],["L",[Jn+Dn,$n+er]],["C",[Jn+Dn/Gn,$n+er,Jn,$n+er-Hn/Gn,Jn,$n+er-Hn]],["L",[Jn,$n+Hn]],["Z",[]]]:[["M",[Jn,$n]],["L",[Jn+Zn,$n]],["L",[Jn+Zn,$n+er]],["L",[Jn,$n+er]],["L",[Jn,$n]],["Z",[]]])}return Un},df=function getExtraAttributesForConvertToPath(Tn){var Un={};return jA.each(["marker-start","marker-end","marker-mid","filter","clip-path"],(function(){var Qn=Tn.getAttribute(this);Qn&&(Un[this]=Qn)})),Un},hf=function getBBoxOfElementAsPath(Tn,Un,Qn){var Dn=Un({element:"path",attr:df(Tn)}),Hn=Tn.getAttribute("transform");Hn&&Dn.setAttribute("transform",Hn);var Gn=Tn.parentNode;Tn.nextSibling?Tn.before(Dn):Gn.append(Dn);var zn=uf(Tn);zn?Dn.setAttribute("d",zn):Dn.remove(),Qn.resetOrientation(Dn);var Vn=!1;try{Vn=Dn.getBBox()}catch(Tn){}return Dn.remove(),Vn};var pf=function getBBoxWithTransform(Tn,Un,Qn){var Dn=lf(Tn);if(!Dn)return null;var Hn=gA(Tn),Gn=mf(Hn),zn=IA(Hn);if(Gn||zn){var Vn=!1;if(function bBoxCanBeOptimizedOverNativeGetBBox(Tn,Un){var Qn=Tn%90;return Un||!(Qn>-.001&&Qn<.001||Qn<-89.99||Qn>89.99)}(Gn,zn)){if(["ellipse","path","line","polyline","polygon"].includes(Tn.tagName))Dn=Vn=hf(Tn,Un,Qn);else if("rect"===Tn.tagName){var Kn=Tn.getAttribute("rx"),Wn=Tn.getAttribute("ry");(Kn||Wn)&&(Dn=Vn=hf(Tn,Un,Qn))}}if(!Vn){var Xn=MA(Hn).matrix;Dn=RA(Dn.x,Dn.y,Dn.width,Dn.height,Xn).aabox}}return Dn};function getStrokeOffsetForBBox(Tn){var Un=Tn.getAttribute("stroke-width");return isNaN(Un)||"none"===Tn.getAttribute("stroke")?0:Un/2}var Af=function getStrokedBBox(Tn,Un,Qn){if(!Tn||!Tn.length)return!1;var Dn;if(jA.each(Tn,(function(){Dn||this.parentNode&&(Dn=pf(this,Un,Qn))})),void 0===Dn)return null;var Hn=Dn.x+Dn.width,Gn=Dn.y+Dn.height,zn=Dn.x,Vn=Dn.y;if(1===Tn.length){var Kn=getStrokeOffsetForBBox(Tn[0]);zn-=Kn,Vn-=Kn,Hn+=Kn,Gn+=Kn}else jA.each(Tn,(function(Tn,Dn){var Kn=pf(Dn,Un,Qn);if(Kn){var Wn=getStrokeOffsetForBBox(Dn);zn=Math.min(zn,Kn.x-Wn),Vn=Math.min(Vn,Kn.y-Wn),1===Dn.nodeType&&(Hn=Math.max(Hn,Kn.x+Kn.width+Wn),Gn=Math.max(Gn,Kn.y+Kn.height+Wn))}}));return Dn.x=zn,Dn.y=Vn,Dn.width=Hn-zn,Dn.height=Gn-Vn,Dn},ff=function getVisibleElements(Tn){Tn||(Tn=jA(zA.getSVGContent()).children());var Un=[];return jA(Tn).children().each((function(Tn,Qn){Qn.getBBox&&Un.push(Qn)})),Un.reverse()},gf=function getStrokedBBoxDefaultVisible(Tn){return Tn||(Tn=ff()),Af(Tn,zA.addSVGElementFromJson,zA.pathActions)},mf=function getRotationAngleFromTransformList(Tn,Un){if(!Tn)return 0;for(var Qn=Tn.numberOfItems,Dn=0;Dn<Qn;++Dn){var Hn=Tn.getItem(Dn);if(4===Hn.type)return Un?Hn.angle*Math.PI/180:Hn.angle}return 0},_f=function getRotationAngle(Tn,Un){var Qn=Tn||zA.getSelectedElements()[0],Dn=gA(Qn);return mf(Dn,Un)},vf=function getRefElem(Tn){return yf(nf(Tn).substr(1))},yf=function supportsSelectors(){return Fd}()?function(Tn){return qA.querySelector("#"+Tn)}:function supportsXpath(){return Ud}()?function(Tn){return VA.evaluate('svg:svg[@id="svgroot"]//svg:*[@id="'+Tn+'"]',KA,(function(){return yd.SVG}),9,null).singleNodeValue}:function(Tn){return jA(qA).find("[id=".concat(Tn,"]"))[0]},bf=function assignAttributes(Tn,Un,Qn,Dn){for(var Hn=0,Gn=Object.entries(Un);Hn<Gn.length;Hn++){var zn=_slicedToArray(Gn[Hn],2),Vn=zn[0],Kn=zn[1],Wn="xml:"===Vn.substr(0,4)?yd.XML:"xlink:"===Vn.substr(0,6)?yd.XLINK:null;Sf(Kn)?Wn?Tn.removeAttributeNS(Wn,Vn):Tn.removeAttribute(Vn):Wn?Tn.setAttributeNS(Wn,Vn,Kn):Dn?SA(Tn,Vn,Kn):Tn.setAttribute(Vn,Kn)}},wf=function cleanupElement(Tn){var Un={"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"===Tn.nodeName&&(delete Un.rx,delete Un.ry),Object.entries(Un).forEach((function(Un){var Qn=_slicedToArray(Un,2),Dn=Qn[0],Hn=Qn[1];Tn.getAttribute(Dn)===String(Hn)&&Tn.removeAttribute(Dn)}))},xf=function snapToGrid(Tn){var Un=zA.getBaseUnit(),Qn=zA.getSnappingStep();return"px"!==Un&&(Qn*=wA()[Un]),Tn=Math.round(Tn/Qn)*Qn},kf=function preventClickDefault(Tn){jA(Tn).click((function(Tn){Tn.preventDefault()}))},Sf=function isNullish(Tn){return null==Tn},Cf=jQuery,Bf={},Ef=function injectExtendedContextMenuItemsIntoDom(){Object.values(Bf).forEach((function(Tn){!function injectExtendedContextMenuItemIntoDom(Tn){Object.keys(Bf).length||Cf("#cmenu_canvas").append("<li class='separator'>");var Un=Tn.shortcut||"";Cf("#cmenu_canvas").append("<li class='disabled'><a href='#"+Tn.id+"'>"+Tn.label+"<span class='shortcut'>"+Un+"</span></a></li>")}(Tn)}))};_export({target:"Array",proto:!0},{fill:nh}),addToUnscopables("fill"),_export({target:"Object",stat:!0,forced:Object.assign!==dc},{assign:dc});var Nf="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Lf=bh.ArrayBuffer,Tf=Un.ArrayBuffer;_export({global:!0,forced:Tf!==Lf},{ArrayBuffer:Lf}),setSpecies("ArrayBuffer"),_export({global:!0,forced:!Yd},{DataView:bh.DataView});var Pf=Math.floor;_export({target:"Number",stat:!0},{isInteger:function isInteger(Tn){return!isObject(Tn)&&isFinite(Tn)&&Pf(Tn)===Tn}}),_export({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991});var Ff=Zn.f,Uf=fails((function(){Ff(1)}));_export({target:"Object",stat:!0,forced:!Qn||Uf,sham:!Qn},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(Tn,Un){return Ff(toIndexedObject(Tn),Un)}});var If=Pu.f,Rf=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:Rf},{getOwnPropertyNames:If}),Qn&&("g"!=/./g.flags||La.UNSUPPORTED_Y)&&tr.f(RegExp.prototype,"flags",{configurable:!0,get:regexpFlags}),_export({target:"String",proto:!0,forced:stringHtmlForced("link")},{link:function link(Tn){return createHtml(this,"a","href",Tn)}}),Wh("Float32",(function(Tn){return function Float32Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Wh("Float64",(function(Tn){return function Float64Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Wh("Int8",(function(Tn){return function Int8Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Wh("Int16",(function(Tn){return function Int16Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Wh("Int32",(function(Tn){return function Int32Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Wh("Uint8",(function(Tn){return function Uint8ClampedArray(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}}),!0),Wh("Uint16",(function(Tn){return function Uint16Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Wh("Uint32",(function(Tn){return function Uint32Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}}));
|
||
/** @license
|
||
*
|
||
* jsPDF - PDF Document creation from JavaScript
|
||
* Version 2.1.1 Built on 2020-09-07T12:58:19.950Z
|
||
* CommitID 00000000
|
||
*
|
||
* Copyright (c) 2010-2020 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
||
* 2015-2020 yWorks GmbH, http://www.yworks.com
|
||
* 2015-2020 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, willow-systems.com
|
||
* 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 Mf=function(){return"undefined"!=typeof window?window:void 0!==Nf?Nf:"undefined"!=typeof self?self:this}();function e(){Mf.console&&"function"==typeof Mf.console.log&&Mf.console.log.apply(Mf.console,arguments)}var Qf={log:e,warn:function warn(Tn){Mf.console&&("function"==typeof Mf.console.warn?Mf.console.warn.apply(Mf.console,arguments):e.call(null,arguments))},error:function error(Tn){Mf.console&&("function"==typeof Mf.console.error?Mf.console.error.apply(Mf.console,arguments):e(Tn))}};
|
||
/**
|
||
* @license
|
||
* FileSaver.js
|
||
* A saveAs() FileSaver implementation.
|
||
*
|
||
* By Eli Grey, http://eligrey.com
|
||
*
|
||
* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
|
||
* source : http://purl.eligrey.com/github/FileSaver.js
|
||
*/function r(Tn,Un,Qn){var Dn=new XMLHttpRequest;Dn.open("GET",Tn),Dn.responseType="blob",Dn.onload=function(){jf(Dn.response,Un,Qn)},Dn.onerror=function(){Qf.error("could not download file")},Dn.send()}function i(Tn){var Un=new XMLHttpRequest;Un.open("HEAD",Tn,!1);try{Un.send()}catch(Tn){}return Un.status>=200&&Un.status<=299}function a(Tn){try{Tn.dispatchEvent(new MouseEvent("click"))}catch(Qn){var Un=document.createEvent("MouseEvents");Un.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Tn.dispatchEvent(Un)}}var Of,Df,jf=Mf.saveAs||("object"!=("undefined"==typeof window?"undefined":_typeof(window))||window!==Mf?function(){}:"download"in HTMLAnchorElement.prototype?function(Tn,Un,Qn){var Dn=Mf.URL||Mf.webkitURL,Hn=document.createElement("a");Un=Un||Tn.name||"download",Hn.download=Un,Hn.rel="noopener","string"==typeof Tn?(Hn.href=Tn,Hn.origin!==location.origin?i(Hn.href)?r(Tn,Un,Qn):a(Hn,Hn.target="_blank"):a(Hn)):(Hn.href=Dn.createObjectURL(Tn),setTimeout((function(){Dn.revokeObjectURL(Hn.href)}),4e4),setTimeout((function(){a(Hn)}),0))}:"msSaveOrOpenBlob"in navigator?function(Tn,Un,Qn){if(Un=Un||Tn.name||"download","string"==typeof Tn)if(i(Tn))r(Tn,Un,Qn);else{var Dn=document.createElement("a");Dn.href=Tn,Dn.target="_blank",setTimeout((function(){a(Dn)}))}else navigator.msSaveOrOpenBlob(function(Tn,Un){return void 0===Un?Un={autoBom:!1}:"object"!=_typeof(Un)&&(Qf.warn("Deprecated: Expected third argument to be a object"),Un={autoBom:!Un}),Un.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Tn.type)?new Blob([String.fromCharCode(65279),Tn],{type:Tn.type}):Tn}(Tn,Qn),Un)}:function(Tn,Un,Qn,Dn){if((Dn=Dn||open("","_blank"))&&(Dn.document.title=Dn.document.body.innerText="downloading..."),"string"==typeof Tn)return r(Tn,Un,Qn);var Hn="application/octet-stream"===Tn.type,Gn=/constructor/i.test(Mf.HTMLElement)||Mf.safari,zn=/CriOS\/[\d]+/.test(navigator.userAgent);if((zn||Hn&&Gn)&&"object"==("undefined"==typeof FileReader?"undefined":_typeof(FileReader))){var Vn=new FileReader;Vn.onloadend=function(){var Tn=Vn.result;Tn=zn?Tn:Tn.replace(/^data:[^;]*;/,"data:attachment/file;"),Dn?Dn.location.href=Tn:location=Tn,Dn=null},Vn.readAsDataURL(Tn)}else{var Kn=Mf.URL||Mf.webkitURL,Wn=Kn.createObjectURL(Tn);Dn?Dn.location=Wn:location.href=Wn,Dn=null,setTimeout((function(){Kn.revokeObjectURL(Wn)}),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 c(Tn){var Un;Tn=Tn||"",this.ok=!1,"#"==Tn.charAt(0)&&(Tn=Tn.substr(1,6)),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",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"}[Tn=(Tn=Tn.replace(/ /g,"")).toLowerCase()]||Tn;for(var Qn=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(Tn){return[parseInt(Tn[1]),parseInt(Tn[2]),parseInt(Tn[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(Tn){return[parseInt(Tn[1],16),parseInt(Tn[2],16),parseInt(Tn[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(Tn){return[parseInt(Tn[1]+Tn[1],16),parseInt(Tn[2]+Tn[2],16),parseInt(Tn[3]+Tn[3],16)]}}],Dn=0;Dn<Qn.length;Dn++){var Hn=Qn[Dn].re,Gn=Qn[Dn].process,zn=Hn.exec(Tn);zn&&(Un=Gn(zn),this.r=Un[0],this.g=Un[1],this.b=Un[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 Tn=this.r.toString(16),Un=this.g.toString(16),Qn=this.b.toString(16);return 1==Tn.length&&(Tn="0"+Tn),1==Un.length&&(Un="0"+Un),1==Qn.length&&(Qn="0"+Qn),"#"+Tn+Un+Qn}}function h(Tn){if("object"!=_typeof(Tn))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Un={};this.subscribe=function(Tn,Qn,Dn){if(Dn=Dn||!1,"string"!=typeof Tn||"function"!=typeof Qn||"boolean"!=typeof Dn)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Un.hasOwnProperty(Tn)||(Un[Tn]={});var Hn=Math.random().toString(35);return Un[Tn][Hn]=[Qn,!!Dn],Hn},this.unsubscribe=function(Tn){for(var Qn in Un)if(Un[Qn][Tn])return delete Un[Qn][Tn],0===Object.keys(Un[Qn]).length&&delete Un[Qn],!0;return!1},this.publish=function(Qn){if(Un.hasOwnProperty(Qn)){var Dn=Array.prototype.slice.call(arguments,1),Hn=[];for(var Gn in Un[Qn]){var zn=Un[Qn][Gn];try{zn[0].apply(Tn,Dn)}catch(Tn){Mf.console&&Qf.error("jsPDF PubSub Error",Tn.message,Tn)}zn[1]&&Hn.push(Gn)}Hn.length&&Hn.forEach(this.unsubscribe)}},this.getTopics=function(){return Un}}function l(Tn){if(!(this instanceof l))return new l(Tn);var Un="opacity,stroke-opacity".split(",");for(var Qn in Tn)Tn.hasOwnProperty(Qn)&&Un.indexOf(Qn)>=0&&(this[Qn]=Tn[Qn]);this.id="",this.objectNumber=-1}function f$8(Tn,Un){this.gState=Tn,this.matrix=Un,this.id="",this.objectNumber=-1}function d(Tn,Un,Qn,Dn,Hn){if(!(this instanceof d))return new d(Tn,Un,Qn,Dn,Hn);this.type="axial"===Tn?2:3,this.coords=Un,this.colors=Qn,f$8.call(this,Dn,Hn)}function p(Tn,Un,Qn,Dn,Hn){if(!(this instanceof p))return new p(Tn,Un,Qn,Dn,Hn);this.boundingBox=Tn,this.xStep=Un,this.yStep=Qn,this.stream="",this.cloneIndex=0,f$8.call(this,Dn,Hn)}function g(Tn){var Un,Qn="string"==typeof arguments[0]?arguments[0]:"p",Dn=arguments[1],Hn=arguments[2],Gn=arguments[3],zn=[],Vn=1,Kn=16,Wn="S";"object"==_typeof(Tn=Tn||{})&&(Qn=Tn.orientation,Dn=Tn.unit||Dn,Hn=Tn.format||Hn,Gn=Tn.compress||Tn.compressPdf||Gn,Vn="number"==typeof Tn.userUnit?Math.abs(Tn.userUnit):1,void 0!==Tn.precision&&(Un=Tn.precision),void 0!==Tn.floatPrecision&&(Kn=Tn.floatPrecision),Wn=Tn.defaultPathOperation||"S"),zn=Tn.filters||(!0===Gn?["FlateEncode"]:zn),Dn=Dn||"mm",Qn=(""+(Qn||"P")).toLowerCase();var Xn=Tn.putOnlyUsedFonts||!1,Yn={},Jn={internal:{},__private__:{}};Jn.__private__.PubSub=h;var $n="1.3",Zn=Jn.__private__.getPdfVersion=function(){return $n};Jn.__private__.setPdfVersion=function(Tn){$n=Tn};var er={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]};Jn.__private__.getPageFormats=function(){return er};var tr=Jn.__private__.getPageFormat=function(Tn){return er[Tn]};Hn=Hn||"a4";var nr={COMPAT:"compat",ADVANCED:"advanced"},rr=nr.COMPAT;function F(){this.saveGraphicsState(),Fr(new Ai(Wr,0,0,-Wr,0,ao()*Wr).toString()+" cm"),this.setFontSize(this.getFontSize()/Wr),Wn="n",rr=nr.ADVANCED}function I(){this.restoreGraphicsState(),Wn="S",rr=nr.COMPAT}Jn.advancedAPI=function(Tn){var Un=rr===nr.COMPAT;return Un&&F.call(this),"function"!=typeof Tn||(Tn(this),Un&&I.call(this)),this},Jn.compatAPI=function(Tn){var Un=rr===nr.ADVANCED;return Un&&I.call(this),"function"!=typeof Tn||(Tn(this),Un&&F.call(this)),this},Jn.isAdvancedAPI=function(){return rr===nr.ADVANCED};var ir,ar=function j(Tn){if(rr!==nr.ADVANCED)throw new Error(Tn+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},or=Jn.roundToPrecision=Jn.__private__.roundToPrecision=function(Tn,Qn){var Dn=Un||Qn;if(isNaN(Tn)||isNaN(Dn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Tn.toFixed(Dn).replace(/0+$/,"")};ir=Jn.hpf=Jn.__private__.hpf="number"==typeof Kn?function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.hpf");return or(Tn,Kn)}:"smart"===Kn?function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.hpf");return or(Tn,Tn>-1&&Tn<1?16:5)}:function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.hpf");return or(Tn,16)};var sr=Jn.f2=Jn.__private__.f2=function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.f2");return or(Tn,2)},lr=Jn.__private__.f3=function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.f3");return or(Tn,3)},cr=Jn.scale=Jn.__private__.scale=function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.scale");return rr===nr.COMPAT?Tn*Wr:rr===nr.ADVANCED?Tn:void 0},ur=function q(Tn){return rr===nr.COMPAT?ao()-Tn:rr===nr.ADVANCED?Tn:void 0},dr=function R(Tn){return cr(ur(Tn))};Jn.__private__.setPrecision=Jn.setPrecision=function(Tn){"number"==typeof parseInt(Tn,10)&&(Un=parseInt(Tn,10))};var hr,pr="00000000000000000000000000000000",Ar=Jn.__private__.getFileId=function(){return pr},fr=Jn.__private__.setFileId=function(Tn){return pr=void 0!==Tn&&/^[a-fA-F0-9]{32}$/.test(Tn)?Tn.toUpperCase():pr.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join("")};Jn.setFileId=function(Tn){return fr(Tn),this},Jn.getFileId=function(){return Ar()};var gr=Jn.__private__.convertDateToPDFDate=function(Tn){var Un=Tn.getTimezoneOffset(),Qn=Un<0?"+":"-",Dn=Math.floor(Math.abs(Un/60)),Hn=Math.abs(Un%60),Gn=[Qn,br(Dn),"'",br(Hn),"'"].join("");return["D:",Tn.getFullYear(),br(Tn.getMonth()+1),br(Tn.getDate()),br(Tn.getHours()),br(Tn.getMinutes()),br(Tn.getSeconds()),Gn].join("")},mr=Jn.__private__.convertPDFDateToDate=function(Tn){var Un=parseInt(Tn.substr(2,4),10),Qn=parseInt(Tn.substr(6,2),10)-1,Dn=parseInt(Tn.substr(8,2),10),Hn=parseInt(Tn.substr(10,2),10),Gn=parseInt(Tn.substr(12,2),10),zn=parseInt(Tn.substr(14,2),10);return new Date(Un,Qn,Dn,Hn,Gn,zn,0)},_r=Jn.__private__.setCreationDate=function(Tn){var Un;if(void 0===Tn&&(Tn=new Date),Tn instanceof Date)Un=gr(Tn);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(Tn))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Un=Tn}return hr=Un},vr=Jn.__private__.getCreationDate=function(Tn){var Un=hr;return"jsDate"===Tn&&(Un=mr(hr)),Un};Jn.setCreationDate=function(Tn){return _r(Tn),this},Jn.getCreationDate=function(Tn){return vr(Tn)};var yr,br=Jn.__private__.padd2=function(Tn){return("0"+parseInt(Tn)).slice(-2)},wr=Jn.__private__.padd2Hex=function(Tn){return("00"+(Tn=Tn.toString())).substr(Tn.length)},xr=0,kr=[],Sr=[],Cr=0,Br=[],Er=[],Nr=!1,Lr=Sr,Tr=function it(){xr=0,Cr=0,Sr=[],kr=[],Br=[],xi=vi(),ki=vi()};Jn.__private__.setCustomOutputDestination=function(Tn){Nr=!0,Lr=Tn};var Pr=function at(Tn){Nr||(Lr=Tn)};Jn.__private__.resetCustomOutputDestination=function(){Nr=!1,Lr=Sr};var Fr=Jn.__private__.out=function(Tn){return Tn=Tn.toString(),Cr+=Tn.length+1,Lr.push(Tn),Lr},Ur=Jn.__private__.write=function(Tn){return Fr(1===arguments.length?Tn.toString():Array.prototype.join.call(arguments," "))},Ir=Jn.__private__.getArrayBuffer=function(Tn){for(var Un=Tn.length,Qn=new ArrayBuffer(Un),Dn=new Uint8Array(Qn);Un--;)Dn[Un]=Tn.charCodeAt(Un);return Qn},Rr=[["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]];Jn.__private__.getStandardFonts=function(){return Rr};var Mr=Tn.fontSize||16;Jn.__private__.setFontSize=Jn.setFontSize=function(Tn){return Mr=rr===nr.ADVANCED?Tn/Wr:Tn,this};var Qr,Or=Jn.__private__.getFontSize=Jn.getFontSize=function(){return rr===nr.COMPAT?Mr:Mr*Wr},Dr=Tn.R2L||!1;Jn.__private__.setR2L=Jn.setR2L=function(Tn){return Dr=Tn,this},Jn.__private__.getR2L=Jn.getR2L=function(){return Dr};var jr,Hr=Jn.__private__.setZoomMode=function(Tn){if(/^\d*\.?\d*%$/.test(Tn))Qr=Tn;else if(isNaN(Tn)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(Tn))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Tn+'" is not recognized.');Qr=Tn}else Qr=parseInt(Tn,10)};Jn.__private__.getZoomMode=function(){return Qr};var Gr,zr=Jn.__private__.setPageMode=function(Tn){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Tn))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Tn+'" is not recognized.');jr=Tn};Jn.__private__.getPageMode=function(){return jr};var Vr=Jn.__private__.setLayoutMode=function(Tn){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Tn))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Tn+'" is not recognized.');Gr=Tn};Jn.__private__.getLayoutMode=function(){return Gr},Jn.__private__.setDisplayMode=Jn.setDisplayMode=function(Tn,Un,Qn){return Hr(Tn),Vr(Un),zr(Qn),this};var Kr={title:"",subject:"",author:"",keywords:"",creator:""};Jn.__private__.getDocumentProperty=function(Tn){if(-1===Object.keys(Kr).indexOf(Tn))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Kr[Tn]},Jn.__private__.getDocumentProperties=function(){return Kr},Jn.__private__.setDocumentProperties=Jn.setProperties=Jn.setDocumentProperties=function(Tn){for(var Un in Kr)Kr.hasOwnProperty(Un)&&Tn[Un]&&(Kr[Un]=Tn[Un]);return this},Jn.__private__.setDocumentProperty=function(Tn,Un){if(-1===Object.keys(Kr).indexOf(Tn))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Kr[Tn]=Un};var qr,Wr,Xr,Yr,Jr,$r={},Zr={},ei=[],ti={},ni={},ri={},ii={},ai=null,oi=0,si=[],li=new h(Jn),ui=Tn.hotfixes||[],di={},hi={},pi=[],Ai=function Dt(Tn,Un,Qn,Dn,Hn,Gn){if(!(this instanceof Dt))return new Dt(Tn,Un,Qn,Dn,Hn,Gn);isNaN(Tn)&&(Tn=1),isNaN(Un)&&(Un=0),isNaN(Qn)&&(Qn=0),isNaN(Dn)&&(Dn=1),isNaN(Hn)&&(Hn=0),isNaN(Gn)&&(Gn=0),this._matrix=[Tn,Un,Qn,Dn,Hn,Gn]};Object.defineProperty(Ai.prototype,"sx",{get:function get(){return this._matrix[0]},set:function set(Tn){this._matrix[0]=Tn}}),Object.defineProperty(Ai.prototype,"shy",{get:function get(){return this._matrix[1]},set:function set(Tn){this._matrix[1]=Tn}}),Object.defineProperty(Ai.prototype,"shx",{get:function get(){return this._matrix[2]},set:function set(Tn){this._matrix[2]=Tn}}),Object.defineProperty(Ai.prototype,"sy",{get:function get(){return this._matrix[3]},set:function set(Tn){this._matrix[3]=Tn}}),Object.defineProperty(Ai.prototype,"tx",{get:function get(){return this._matrix[4]},set:function set(Tn){this._matrix[4]=Tn}}),Object.defineProperty(Ai.prototype,"ty",{get:function get(){return this._matrix[5]},set:function set(Tn){this._matrix[5]=Tn}}),Object.defineProperty(Ai.prototype,"a",{get:function get(){return this._matrix[0]},set:function set(Tn){this._matrix[0]=Tn}}),Object.defineProperty(Ai.prototype,"b",{get:function get(){return this._matrix[1]},set:function set(Tn){this._matrix[1]=Tn}}),Object.defineProperty(Ai.prototype,"c",{get:function get(){return this._matrix[2]},set:function set(Tn){this._matrix[2]=Tn}}),Object.defineProperty(Ai.prototype,"d",{get:function get(){return this._matrix[3]},set:function set(Tn){this._matrix[3]=Tn}}),Object.defineProperty(Ai.prototype,"e",{get:function get(){return this._matrix[4]},set:function set(Tn){this._matrix[4]=Tn}}),Object.defineProperty(Ai.prototype,"f",{get:function get(){return this._matrix[5]},set:function set(Tn){this._matrix[5]=Tn}}),Object.defineProperty(Ai.prototype,"rotation",{get:function get(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ai.prototype,"scaleX",{get:function get(){return this.decompose().scale.sx}}),Object.defineProperty(Ai.prototype,"scaleY",{get:function get(){return this.decompose().scale.sy}}),Object.defineProperty(Ai.prototype,"isIdentity",{get:function get(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ai.prototype.join=function(Tn){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ir).join(Tn)},Ai.prototype.multiply=function(Tn){var Un=Tn.sx*this.sx+Tn.shy*this.shx,Qn=Tn.sx*this.shy+Tn.shy*this.sy,Dn=Tn.shx*this.sx+Tn.sy*this.shx,Hn=Tn.shx*this.shy+Tn.sy*this.sy,Gn=Tn.tx*this.sx+Tn.ty*this.shx+this.tx,zn=Tn.tx*this.shy+Tn.ty*this.sy+this.ty;return new Ai(Un,Qn,Dn,Hn,Gn,zn)},Ai.prototype.decompose=function(){var Tn=this.sx,Un=this.shy,Qn=this.shx,Dn=this.sy,Hn=this.tx,Gn=this.ty,zn=Math.sqrt(Tn*Tn+Un*Un),Vn=(Tn/=zn)*Qn+(Un/=zn)*Dn;Qn-=Tn*Vn,Dn-=Un*Vn;var Kn=Math.sqrt(Qn*Qn+Dn*Dn);return Vn/=Kn,Tn*(Dn/=Kn)<Un*(Qn/=Kn)&&(Tn=-Tn,Un=-Un,Vn=-Vn,zn=-zn),{scale:new Ai(zn,0,0,Kn,0,0),translate:new Ai(1,0,0,1,Hn,Gn),rotate:new Ai(Tn,Un,-Un,Tn,0,0),skew:new Ai(1,0,Vn,1,0,0)}},Ai.prototype.toString=function(Tn){return this.join(" ")},Ai.prototype.inversed=function(){var Tn=this.sx,Un=this.shy,Qn=this.shx,Dn=this.sy,Hn=this.tx,Gn=this.ty,zn=1/(Tn*Dn-Un*Qn),Vn=Dn*zn,Kn=-Un*zn,Wn=-Qn*zn,Xn=Tn*zn;return new Ai(Vn,Kn,Wn,Xn,-Vn*Hn-Wn*Gn,-Kn*Hn-Xn*Gn)},Ai.prototype.applyToPoint=function(Tn){var Un=Tn.x*this.sx+Tn.y*this.shx+this.tx,Qn=Tn.x*this.shy+Tn.y*this.sy+this.ty;return new Ja(Un,Qn)},Ai.prototype.applyToRectangle=function(Tn){var Un=this.applyToPoint(Tn),Qn=this.applyToPoint(new Ja(Tn.x+Tn.w,Tn.y+Tn.h));return new $a(Un.x,Un.y,Qn.x-Un.x,Qn.y-Un.y)},Ai.prototype.clone=function(){var Tn=this.sx,Un=this.shy,Qn=this.shx,Dn=this.sy,Hn=this.tx,Gn=this.ty;return new Ai(Tn,Un,Qn,Dn,Hn,Gn)},Jn.Matrix=Ai;var fi=Jn.matrixMult=function(Tn,Un){return Un.multiply(Tn)},gi=new Ai(1,0,0,1,0,0);Jn.unitMatrix=Jn.identityMatrix=gi;var mi=function Ht(Tn,Un){if(!ni[Tn]){var Qn=(Un instanceof d?"Sh":"P")+(Object.keys(ti).length+1).toString(10);Un.id=Qn,ni[Tn]=Qn,ti[Qn]=Un,li.publish("addPattern",Un)}};Jn.ShadingPattern=d,Jn.TilingPattern=p,Jn.addShadingPattern=function(Tn,Un){return ar("addShadingPattern()"),mi(Tn,Un),this},Jn.beginTilingPattern=function(Tn){ar("beginTilingPattern()"),eo(Tn.boundingBox[0],Tn.boundingBox[1],Tn.boundingBox[2]-Tn.boundingBox[0],Tn.boundingBox[3]-Tn.boundingBox[1],Tn.matrix)},Jn.endTilingPattern=function(Tn,Un){ar("endTilingPattern()"),Un.stream=Er[yr].join("\n"),mi(Tn,Un),li.publish("endTilingPattern",Un),pi.pop().restore()};var _i=Jn.__private__.newObject=function(){var Tn=vi();return yi(Tn,!0),Tn},vi=Jn.__private__.newObjectDeferred=function(){return xr++,kr[xr]=function(){return Cr},xr},yi=function Gt(Tn,Un){return Un="boolean"==typeof Un&&Un,kr[Tn]=Cr,Un&&Fr(Tn+" 0 obj"),Tn},wi=Jn.__private__.newAdditionalObject=function(){var Tn={objId:vi(),content:""};return Br.push(Tn),Tn},xi=vi(),ki=vi(),Si=Jn.__private__.decodeColorString=function(Tn){var Un=Tn.split(" ");if(2!==Un.length||"g"!==Un[1]&&"G"!==Un[1])5!==Un.length||"k"!==Un[4]&&"K"!==Un[4]||(Un=[(1-Un[0])*(1-Un[3]),(1-Un[1])*(1-Un[3]),(1-Un[2])*(1-Un[3]),"r"]);else{var Qn=parseFloat(Un[0]);Un=[Qn,Qn,Qn,"r"]}for(var Dn="#",Hn=0;Hn<3;Hn++)Dn+=("0"+Math.floor(255*parseFloat(Un[Hn])).toString(16)).slice(-2);return Dn},Ci=Jn.__private__.encodeColorString=function(Tn){var Un;"string"==typeof Tn&&(Tn={ch1:Tn});var Qn=Tn.ch1,Dn=Tn.ch2,Hn=Tn.ch3,Gn=Tn.ch4,zn="draw"===Tn.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof Qn&&"#"!==Qn.charAt(0)){var Vn=new c(Qn);if(Vn.ok)Qn=Vn.toHex();else if(!/^\d*\.?\d*$/.test(Qn))throw new Error('Invalid color "'+Qn+'" passed to jsPDF.encodeColorString.')}if("string"==typeof Qn&&/^#[0-9A-Fa-f]{3}$/.test(Qn)&&(Qn="#"+Qn[1]+Qn[1]+Qn[2]+Qn[2]+Qn[3]+Qn[3]),"string"==typeof Qn&&/^#[0-9A-Fa-f]{6}$/.test(Qn)){var Kn=parseInt(Qn.substr(1),16);Qn=Kn>>16&255,Dn=Kn>>8&255,Hn=255&Kn}if(void 0===Dn||void 0===Gn&&Qn===Dn&&Dn===Hn)if("string"==typeof Qn)Un=Qn+" "+zn[0];else switch(Tn.precision){case 2:Un=sr(Qn/255)+" "+zn[0];break;case 3:default:Un=lr(Qn/255)+" "+zn[0]}else if(void 0===Gn||"object"==_typeof(Gn)){if(Gn&&!isNaN(Gn.a)&&0===Gn.a)return["1.","1.","1.",zn[1]].join(" ");if("string"==typeof Qn)Un=[Qn,Dn,Hn,zn[1]].join(" ");else switch(Tn.precision){case 2:Un=[sr(Qn/255),sr(Dn/255),sr(Hn/255),zn[1]].join(" ");break;default:case 3:Un=[lr(Qn/255),lr(Dn/255),lr(Hn/255),zn[1]].join(" ")}}else if("string"==typeof Qn)Un=[Qn,Dn,Hn,Gn,zn[2]].join(" ");else switch(Tn.precision){case 2:Un=[sr(Qn),sr(Dn),sr(Hn),sr(Gn),zn[2]].join(" ");break;case 3:default:Un=[lr(Qn),lr(Dn),lr(Hn),lr(Gn),zn[2]].join(" ")}return Un},Bi=Jn.__private__.getFilters=function(){return zn},Ei=Jn.__private__.putStream=function(Tn){var Un=(Tn=Tn||{}).data||"",Qn=Tn.filters||Bi(),Dn=Tn.alreadyAppliedFilters||[],Hn=Tn.addLength1||!1,Gn=Un.length,zn={};!0===Qn&&(Qn=["FlateEncode"]);var Vn=Tn.additionalKeyValues||[],Kn=(zn=void 0!==g.API.processDataByFilters?g.API.processDataByFilters(Un,Qn):{data:Un,reverseChain:[]}).reverseChain+(Array.isArray(Dn)?Dn.join(" "):Dn.toString());if(0!==zn.data.length&&(Vn.push({key:"Length",value:zn.data.length}),!0===Hn&&Vn.push({key:"Length1",value:Gn})),0!=Kn.length)if(Kn.split("/").length-1==1)Vn.push({key:"Filter",value:Kn});else{Vn.push({key:"Filter",value:"["+Kn+"]"});for(var Wn=0;Wn<Vn.length;Wn+=1)if("DecodeParms"===Vn[Wn].key){for(var Xn=[],Yn=0;Yn<zn.reverseChain.split("/").length-1;Yn+=1)Xn.push("null");Xn.push(Vn[Wn].value),Vn[Wn].value="["+Xn.join(" ")+"]"}}Fr("<<");for(var Jn=0;Jn<Vn.length;Jn++)Fr("/"+Vn[Jn].key+" "+Vn[Jn].value);Fr(">>"),0!==zn.data.length&&(Fr("stream"),Fr(zn.data),Fr("endstream"))},Ni=Jn.__private__.putPage=function(Tn){var Un=Tn.number,Qn=Tn.data,Dn=Tn.objId,Hn=Tn.contentsObjId;yi(Dn,!0),Fr("<</Type /Page"),Fr("/Parent "+Tn.rootDictionaryObjId+" 0 R"),Fr("/Resources "+Tn.resourceDictionaryObjId+" 0 R"),Fr("/MediaBox ["+parseFloat(ir(Tn.mediaBox.bottomLeftX))+" "+parseFloat(ir(Tn.mediaBox.bottomLeftY))+" "+ir(Tn.mediaBox.topRightX)+" "+ir(Tn.mediaBox.topRightY)+"]"),null!==Tn.cropBox&&Fr("/CropBox ["+ir(Tn.cropBox.bottomLeftX)+" "+ir(Tn.cropBox.bottomLeftY)+" "+ir(Tn.cropBox.topRightX)+" "+ir(Tn.cropBox.topRightY)+"]"),null!==Tn.bleedBox&&Fr("/BleedBox ["+ir(Tn.bleedBox.bottomLeftX)+" "+ir(Tn.bleedBox.bottomLeftY)+" "+ir(Tn.bleedBox.topRightX)+" "+ir(Tn.bleedBox.topRightY)+"]"),null!==Tn.trimBox&&Fr("/TrimBox ["+ir(Tn.trimBox.bottomLeftX)+" "+ir(Tn.trimBox.bottomLeftY)+" "+ir(Tn.trimBox.topRightX)+" "+ir(Tn.trimBox.topRightY)+"]"),null!==Tn.artBox&&Fr("/ArtBox ["+ir(Tn.artBox.bottomLeftX)+" "+ir(Tn.artBox.bottomLeftY)+" "+ir(Tn.artBox.topRightX)+" "+ir(Tn.artBox.topRightY)+"]"),"number"==typeof Tn.userUnit&&1!==Tn.userUnit&&Fr("/UserUnit "+Tn.userUnit),li.publish("putPage",{objId:Dn,pageContext:si[Un],pageNumber:Un,page:Qn}),Fr("/Contents "+Hn+" 0 R"),Fr(">>"),Fr("endobj");var Gn=Qn.join("\n");return rr===nr.ADVANCED&&(Gn+="\nQ"),yi(Hn,!0),Ei({data:Gn,filters:Bi()}),Fr("endobj"),Dn},Li=Jn.__private__.putPages=function(){var Tn,Un,Qn=[];for(Tn=1;Tn<=oi;Tn++)si[Tn].objId=vi(),si[Tn].contentsObjId=vi();for(Tn=1;Tn<=oi;Tn++)Qn.push(Ni({number:Tn,data:Er[Tn],objId:si[Tn].objId,contentsObjId:si[Tn].contentsObjId,mediaBox:si[Tn].mediaBox,cropBox:si[Tn].cropBox,bleedBox:si[Tn].bleedBox,trimBox:si[Tn].trimBox,artBox:si[Tn].artBox,userUnit:si[Tn].userUnit,rootDictionaryObjId:xi,resourceDictionaryObjId:ki}));yi(xi,!0),Fr("<</Type /Pages");var Dn="/Kids [";for(Un=0;Un<oi;Un++)Dn+=Qn[Un]+" 0 R ";Fr(Dn+"]"),Fr("/Count "+oi),Fr(">>"),Fr("endobj"),li.publish("postPutPages")},Ti=function ne(Tn){var Un=function e(Tn,Un){return-1!==Tn.indexOf(" ")?"("+ea(Tn,Un)+")":ea(Tn,Un)};li.publish("putFont",{font:Tn,out:Fr,newObject:_i,putStream:Ei,pdfEscapeWithNeededParanthesis:Un}),!0!==Tn.isAlreadyPutted&&(Tn.objectNumber=_i(),Fr("<<"),Fr("/Type /Font"),Fr("/BaseFont /"+Un(Tn.postScriptName)),Fr("/Subtype /Type1"),"string"==typeof Tn.encoding&&Fr("/Encoding /"+Tn.encoding),Fr("/FirstChar 32"),Fr("/LastChar 255"),Fr(">>"),Fr("endobj"))},Pi=function re(){for(var Tn in $r)$r.hasOwnProperty(Tn)&&(!1===Xn||!0===Xn&&Yn.hasOwnProperty(Tn))&&Ti($r[Tn])},Fi=function ie(Tn){Tn.objectNumber=_i();var Un=[];Un.push({key:"Type",value:"/XObject"}),Un.push({key:"Subtype",value:"/Form"}),Un.push({key:"BBox",value:"["+[ir(Tn.x),ir(Tn.y),ir(Tn.x+Tn.width),ir(Tn.y+Tn.height)].join(" ")+"]"}),Un.push({key:"Matrix",value:"["+Tn.matrix.toString()+"]"});var Qn=Tn.pages[1].join("\n");Ei({data:Qn,additionalKeyValues:Un}),Fr("endobj")},Ui=function ae(){for(var Tn in di)di.hasOwnProperty(Tn)&&Fi(di[Tn])},Ii=function oe(Tn,Un){var Qn,Dn=[],Hn=1/(Un-1);for(Qn=0;Qn<1;Qn+=Hn)Dn.push(Qn);if(Dn.push(1),0!=Tn[0].offset){var Gn={offset:0,color:Tn[0].color};Tn.unshift(Gn)}if(1!=Tn[Tn.length-1].offset){var zn={offset:1,color:Tn[Tn.length-1].color};Tn.push(zn)}for(var Vn="",Kn=0,Wn=0;Wn<Dn.length;Wn++){for(Qn=Dn[Wn];Qn>Tn[Kn+1].offset;)Kn++;var Xn=Tn[Kn].offset,Yn=(Qn-Xn)/(Tn[Kn+1].offset-Xn),Jn=Tn[Kn].color,$n=Tn[Kn+1].color;Vn+=wr(Math.round((1-Yn)*Jn[0]+Yn*$n[0]).toString(16))+wr(Math.round((1-Yn)*Jn[1]+Yn*$n[1]).toString(16))+wr(Math.round((1-Yn)*Jn[2]+Yn*$n[2]).toString(16))}return Vn.trim()},Ri=function se(Tn,Un){Un||(Un=21);var Qn=_i(),Dn=Ii(Tn.colors,Un),Hn=[];Hn.push({key:"FunctionType",value:"0"}),Hn.push({key:"Domain",value:"[0.0 1.0]"}),Hn.push({key:"Size",value:"["+Un+"]"}),Hn.push({key:"BitsPerSample",value:"8"}),Hn.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Hn.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ei({data:Dn,additionalKeyValues:Hn,alreadyAppliedFilters:["/ASCIIHexDecode"]}),Fr("endobj"),Tn.objectNumber=_i(),Fr("<< /ShadingType "+Tn.type),Fr("/ColorSpace /DeviceRGB");var Gn="/Coords ["+ir(parseFloat(Tn.coords[0]))+" "+ir(parseFloat(Tn.coords[1]))+" ";2===Tn.type?Gn+=ir(parseFloat(Tn.coords[2]))+" "+ir(parseFloat(Tn.coords[3])):Gn+=ir(parseFloat(Tn.coords[2]))+" "+ir(parseFloat(Tn.coords[3]))+" "+ir(parseFloat(Tn.coords[4]))+" "+ir(parseFloat(Tn.coords[5])),Fr(Gn+="]"),Tn.matrix&&Fr("/Matrix ["+Tn.matrix.toString()+"]"),Fr("/Function "+Qn+" 0 R"),Fr("/Extend [true true]"),Fr(">>"),Fr("endobj")},Mi=function ue(Tn,Un){var Qn=vi(),Dn=_i();Un.push({resourcesOid:Qn,objectOid:Dn}),Tn.objectNumber=Dn;var Hn=[];Hn.push({key:"Type",value:"/Pattern"}),Hn.push({key:"PatternType",value:"1"}),Hn.push({key:"PaintType",value:"1"}),Hn.push({key:"TilingType",value:"1"}),Hn.push({key:"BBox",value:"["+Tn.boundingBox.map(ir).join(" ")+"]"}),Hn.push({key:"XStep",value:ir(Tn.xStep)}),Hn.push({key:"YStep",value:ir(Tn.yStep)}),Hn.push({key:"Resources",value:Qn+" 0 R"}),Tn.matrix&&Hn.push({key:"Matrix",value:"["+Tn.matrix.toString()+"]"}),Ei({data:Tn.stream,additionalKeyValues:Hn}),Fr("endobj")},Qi=function ce(Tn){var Un;for(Un in ti)ti.hasOwnProperty(Un)&&(ti[Un]instanceof d?Ri(ti[Un]):ti[Un]instanceof p&&Mi(ti[Un],Tn))},Oi=function he(Tn){for(var Un in Tn.objectNumber=_i(),Fr("<<"),Tn)switch(Un){case"opacity":Fr("/ca "+sr(Tn[Un]));break;case"stroke-opacity":Fr("/CA "+sr(Tn[Un]))}Fr(">>"),Fr("endobj")},Di=function le(){var Tn;for(Tn in ri)ri.hasOwnProperty(Tn)&&Oi(ri[Tn])},ji=function fe(){for(var Tn in Fr("/XObject <<"),di)di.hasOwnProperty(Tn)&&di[Tn].objectNumber>=0&&Fr("/"+Tn+" "+di[Tn].objectNumber+" 0 R");li.publish("putXobjectDict"),Fr(">>")},Hi=function de(){for(var Tn in Fr("/Font <<"),$r)$r.hasOwnProperty(Tn)&&(!1===Xn||!0===Xn&&Yn.hasOwnProperty(Tn))&&Fr("/"+Tn+" "+$r[Tn].objectNumber+" 0 R");Fr(">>")},Gi=function pe(){if(Object.keys(ti).length>0){for(var Tn in Fr("/Shading <<"),ti)ti.hasOwnProperty(Tn)&&ti[Tn]instanceof d&&ti[Tn].objectNumber>=0&&Fr("/"+Tn+" "+ti[Tn].objectNumber+" 0 R");li.publish("putShadingPatternDict"),Fr(">>")}},zi=function ge(Tn){if(Object.keys(ti).length>0){for(var Un in Fr("/Pattern <<"),ti)ti.hasOwnProperty(Un)&&ti[Un]instanceof Jn.TilingPattern&&ti[Un].objectNumber>=0&&ti[Un].objectNumber<Tn&&Fr("/"+Un+" "+ti[Un].objectNumber+" 0 R");li.publish("putTilingPatternDict"),Fr(">>")}},Vi=function me(){if(Object.keys(ri).length>0){var Tn;for(Tn in Fr("/ExtGState <<"),ri)ri.hasOwnProperty(Tn)&&ri[Tn].objectNumber>=0&&Fr("/"+Tn+" "+ri[Tn].objectNumber+" 0 R");li.publish("putGStateDict"),Fr(">>")}},Ki=function ve(Tn){yi(Tn.resourcesOid,!0),Fr("<<"),Fr("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Hi(),Gi(),zi(Tn.objectOid),Vi(),ji(),Fr(">>"),Fr("endobj")},qi=function be(){var Tn=[];Pi(),Di(),Ui(),Qi(Tn),li.publish("putResources"),Tn.forEach(Ki),Ki({resourcesOid:ki,objectOid:Number.MAX_SAFE_INTEGER}),li.publish("postPutResources")},Wi=function ye(){li.publish("putAdditionalObjects");for(var Tn=0;Tn<Br.length;Tn++){var Un=Br[Tn];yi(Un.objId,!0),Fr(Un.content),Fr("endobj")}li.publish("postPutAdditionalObjects")},Xi=function we(Tn){Zr[Tn.fontName]=Zr[Tn.fontName]||{},Zr[Tn.fontName][Tn.fontStyle]=Tn.id},Yi=function Ne(Tn,Un,Qn,Dn,Hn){var Gn={id:"F"+(Object.keys($r).length+1).toString(10),postScriptName:Tn,fontName:Un,fontStyle:Qn,encoding:Dn,isStandardFont:Hn||!1,metadata:{}};return li.publish("addFont",{font:Gn,instance:this}),$r[Gn.id]=Gn,Xi(Gn),Gn.id},Ji=function Le(Tn){for(var Un=0,Qn=Rr.length;Un<Qn;Un++){var Dn=Yi.call(this,Tn[Un][0],Tn[Un][1],Tn[Un][2],Rr[Un][3],!0);!1===Xn&&(Yn[Dn]=!0);var Hn=Tn[Un][0].split("-");Xi({id:Dn,fontName:Hn[0],fontStyle:Hn[1]||""})}li.publish("addFonts",{fonts:$r,dictionary:Zr})},$i=function xe(Tn){return Tn.foo=function(){try{return Tn.apply(this,arguments)}catch(Tn){var Un=Tn.stack||"";~Un.indexOf(" at ")&&(Un=Un.split(" at ")[1]);var Qn="Error in function "+Un.split("\n")[0].split("<")[0]+": "+Tn.message;if(!Mf.console)throw new Error(Qn);Mf.console.error(Qn,Tn),Mf.alert&&alert(Qn)}},Tn.foo.bar=Tn,Tn.foo},Zi=function Ae(Tn,Un){var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn;if(Hn=(Un=Un||{}).sourceEncoding||"Unicode",zn=Un.outputEncoding,(Un.autoencode||zn)&&$r[qr].metadata&&$r[qr].metadata[Hn]&&$r[qr].metadata[Hn].encoding&&(Gn=$r[qr].metadata[Hn].encoding,!zn&&$r[qr].encoding&&(zn=$r[qr].encoding),!zn&&Gn.codePages&&(zn=Gn.codePages[0]),"string"==typeof zn&&(zn=Gn[zn]),zn)){for(Kn=!1,Vn=[],Qn=0,Dn=Tn.length;Qn<Dn;Qn++)(Wn=zn[Tn.charCodeAt(Qn)])?Vn.push(String.fromCharCode(Wn)):Vn.push(Tn[Qn]),Vn[Qn].charCodeAt(0)>>8&&(Kn=!0);Tn=Vn.join("")}for(Qn=Tn.length;void 0===Kn&&0!==Qn;)Tn.charCodeAt(Qn-1)>>8&&(Kn=!0),Qn--;if(!Kn)return Tn;for(Vn=Un.noBOM?[]:[254,255],Qn=0,Dn=Tn.length;Qn<Dn;Qn++){if((Xn=(Wn=Tn.charCodeAt(Qn))>>8)>>8)throw new Error("Character at position "+Qn+" of string '"+Tn+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Vn.push(Xn),Vn.push(Wn-(Xn<<8))}return String.fromCharCode.apply(void 0,Vn)},ea=Jn.__private__.pdfEscape=Jn.pdfEscape=function(Tn,Un){return Zi(Tn,Un).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ta=Jn.__private__.beginPage=function(Tn){Er[++oi]=[],si[oi]={objId:0,contentsObjId:0,userUnit:Number(Vn),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Tn[0]),topRightY:Number(Tn[1])}},ia(oi),Pr(Er[yr])},na=function Pe(Tn,Un){var Dn,Gn,zn;switch(Qn=Un||Qn,"string"==typeof Tn&&(Dn=tr(Tn.toLowerCase()),Array.isArray(Dn)&&(Gn=Dn[0],zn=Dn[1])),Array.isArray(Tn)&&(Gn=Tn[0]*Wr,zn=Tn[1]*Wr),isNaN(Gn)&&(Gn=Hn[0],zn=Hn[1]),(Gn>14400||zn>14400)&&(Qf.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Gn=Math.min(14400,Gn),zn=Math.min(14400,zn)),Hn=[Gn,zn],Qn.substr(0,1)){case"l":zn>Gn&&(Hn=[zn,Gn]);break;case"p":Gn>zn&&(Hn=[zn,Gn])}ta(Hn),Ua(Fa),Fr(Ha),0!==Wa&&Fr(Wa+" J"),0!==Xa&&Fr(Xa+" j"),li.publish("addPage",{pageNumber:oi})},ra=function ke(Tn){Tn>0&&Tn<=oi&&(Er.splice(Tn,1),si.splice(Tn,1),oi--,yr>oi&&(yr=oi),this.setPage(yr))},ia=function Fe(Tn){Tn>0&&Tn<=oi&&(yr=Tn)},aa=Jn.__private__.getNumberOfPages=Jn.getNumberOfPages=function(){return Er.length-1},oa=function Ce(Tn,Un,Qn){var Dn,Hn=void 0;return Qn=Qn||{},Tn=void 0!==Tn?Tn:$r[qr].fontName,Un=void 0!==Un?Un:$r[qr].fontStyle,Dn=Tn.toLowerCase(),void 0!==Zr[Dn]&&void 0!==Zr[Dn][Un]?Hn=Zr[Dn][Un]:void 0!==Zr[Tn]&&void 0!==Zr[Tn][Un]?Hn=Zr[Tn][Un]:!1===Qn.disableWarning&&Qf.warn("Unable to look up font label for font '"+Tn+"', '"+Un+"'. Refer to getFontList() for available fonts."),Hn||Qn.noFallback||null==(Hn=Zr.times[Un])&&(Hn=Zr.times.normal),Hn},sa=Jn.__private__.putInfo=function(){for(var Tn in _i(),Fr("<<"),Fr("/Producer (jsPDF "+g.version+")"),Kr)Kr.hasOwnProperty(Tn)&&Kr[Tn]&&Fr("/"+Tn.substr(0,1).toUpperCase()+Tn.substr(1)+" ("+ea(Kr[Tn])+")");Fr("/CreationDate ("+hr+")"),Fr(">>"),Fr("endobj")},la=Jn.__private__.putCatalog=function(Tn){var Un=(Tn=Tn||{}).rootDictionaryObjId||xi;switch(_i(),Fr("<<"),Fr("/Type /Catalog"),Fr("/Pages "+Un+" 0 R"),Qr||(Qr="fullwidth"),Qr){case"fullwidth":Fr("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Fr("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Fr("/OpenAction [3 0 R /Fit]");break;case"original":Fr("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Qn=""+Qr;"%"===Qn.substr(Qn.length-1)&&(Qr=parseInt(Qr)/100),"number"==typeof Qr&&Fr("/OpenAction [3 0 R /XYZ null null "+sr(Qr)+"]")}switch(Gr||(Gr="continuous"),Gr){case"continuous":Fr("/PageLayout /OneColumn");break;case"single":Fr("/PageLayout /SinglePage");break;case"two":case"twoleft":Fr("/PageLayout /TwoColumnLeft");break;case"tworight":Fr("/PageLayout /TwoColumnRight")}jr&&Fr("/PageMode /"+jr),li.publish("putCatalog"),Fr(">>"),Fr("endobj")},ua=Jn.__private__.putTrailer=function(){Fr("trailer"),Fr("<<"),Fr("/Size "+(xr+1)),Fr("/Root "+xr+" 0 R"),Fr("/Info "+(xr-1)+" 0 R"),Fr("/ID [ <"+pr+"> <"+pr+"> ]"),Fr(">>")},da=Jn.__private__.putHeader=function(){Fr("%PDF-"+$n),Fr("%ºß¬à")},ha=Jn.__private__.putXRef=function(){var Tn="0000000000";Fr("xref"),Fr("0 "+(xr+1)),Fr("0000000000 65535 f ");for(var Un=1;Un<=xr;Un++)"function"==typeof kr[Un]?Fr((Tn+kr[Un]()).slice(-10)+" 00000 n "):void 0!==kr[Un]?Fr((Tn+kr[Un]).slice(-10)+" 00000 n "):Fr("0000000000 00000 n ")},pa=Jn.__private__.buildDocument=function(){Tr(),Pr(Sr),li.publish("buildDocument"),da(),Li(),Wi(),qi(),sa(),la();var Tn=Cr;return ha(),ua(),Fr("startxref"),Fr(""+Tn),Fr("%%EOF"),Pr(Er[yr]),Sr.join("\n")},Aa=Jn.__private__.getBlob=function(Tn){return new Blob([Ir(Tn)],{type:"application/pdf"})},fa=Jn.output=Jn.__private__.output=$i((function(Tn,Un){switch("string"==typeof(Un=Un||{})?Un={filename:Un}:Un.filename=Un.filename||"generated.pdf",Tn){case void 0:return pa();case"save":Jn.save(Un.filename);break;case"arraybuffer":return Ir(pa());case"blob":return Aa(pa());case"bloburi":case"bloburl":if(void 0!==Mf.URL&&"function"==typeof Mf.URL.createObjectURL)return Mf.URL&&Mf.URL.createObjectURL(Aa(pa()))||void 0;Qf.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Qn="",Dn=pa();try{Qn=Df(Dn)}catch(Tn){Qn=Df(unescape(encodeURIComponent(Dn)))}return"data:application/pdf;filename="+Un.filename+";base64,"+Qn;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Mf)){var Hn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(Un.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Un)+");<\/script></body></html>",Gn=Mf.open();return null!==Gn&&Gn.document.write(Hn),Gn}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(Mf)){var zn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Un.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Un.filename+'" width="500px" height="400px" /></body></html>',Vn=Mf.open();if(null!==Vn){Vn.document.write(zn);var Kn=this;Vn.document.documentElement.querySelector("#pdfViewer").onload=function(){Vn.document.title=Un.filename,Vn.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Kn.output("bloburl"))}}return Vn}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(Mf))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Wn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Un)+'"></iframe></body></html>',Xn=Mf.open();if(null!==Xn&&(Xn.document.write(Wn),Xn.document.title=Un.filename),Xn||"undefined"==typeof safari)return Xn;break;case"datauri":case"dataurl":return Mf.document.location.href=this.output("datauristring",Un);default:return null}})),ga=function De(Tn){return!0===Array.isArray(ui)&&ui.indexOf(Tn)>-1};switch(Dn){case"pt":Wr=1;break;case"mm":Wr=72/25.4;break;case"cm":Wr=72/2.54;break;case"in":Wr=72;break;case"px":Wr=1==ga("px_scaling")?.75:96/72;break;case"pc":case"em":Wr=12;break;case"ex":Wr=6;break;default:throw new Error("Invalid unit: "+Dn)}_r(),fr();var ma=Jn.__private__.getPageInfo=Jn.getPageInfo=function(Tn){if(isNaN(Tn)||Tn%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:si[Tn].objId,pageNumber:Tn,pageContext:si[Tn]}},_a=Jn.__private__.getPageInfoByObjId=function(Tn){if(isNaN(Tn)||Tn%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Un in si)if(si[Un].objId===Tn)break;return ma(Un)},va=Jn.__private__.getCurrentPageInfo=Jn.getCurrentPageInfo=function(){return{objId:si[yr].objId,pageNumber:yr,pageContext:si[yr]}};Jn.addPage=function(){return na.apply(this,arguments),this},Jn.setPage=function(){return ia.apply(this,arguments),Pr.call(this,Er[yr]),this},Jn.insertPage=function(Tn){return this.addPage(),this.movePage(yr,Tn),this},Jn.movePage=function(Tn,Un){var Qn,Dn;if(Tn>Un){Qn=Er[Tn],Dn=si[Tn];for(var Hn=Tn;Hn>Un;Hn--)Er[Hn]=Er[Hn-1],si[Hn]=si[Hn-1];Er[Un]=Qn,si[Un]=Dn,this.setPage(Un)}else if(Tn<Un){Qn=Er[Tn],Dn=si[Tn];for(var Gn=Tn;Gn<Un;Gn++)Er[Gn]=Er[Gn+1],si[Gn]=si[Gn+1];Er[Un]=Qn,si[Un]=Dn,this.setPage(Un)}return this},Jn.deletePage=function(){return ra.apply(this,arguments),this},Jn.__private__.text=Jn.text=function(Tn,Un,Qn,Dn,Hn){var Gn,zn,Vn,Kn,Wn,Xn,Jn,$n,Zn=(Dn=Dn||{}).scope||this;if("number"==typeof Tn&&"number"==typeof Un&&("string"==typeof Qn||Array.isArray(Qn))){var er=Qn;Qn=Un,Un=Tn,Tn=er}if(arguments[3]instanceof Ai==0?(Vn=arguments[4],Kn=arguments[5],"object"==_typeof(Jn=arguments[3])&&null!==Jn||("string"==typeof Vn&&(Kn=Vn,Vn=null),"string"==typeof Jn&&(Kn=Jn,Jn=null),"number"==typeof Jn&&(Vn=Jn,Jn=null),Dn={flags:Jn,angle:Vn,align:Kn})):(ar("The transform parameter of text() with a Matrix value"),$n=Hn),isNaN(Un)||isNaN(Qn)||null==Tn)throw new Error("Invalid arguments passed to jsPDF.text");if(0===Tn.length)return Zn;var tr="",or=!1,sr="number"==typeof Dn.lineHeightFactor?Dn.lineHeightFactor:Pa,lr=Zn.internal.scaleFactor;function y(Tn){return Tn=Tn.split("\t").join(Array(Dn.TabLen||9).join(" ")),ea(Tn,Jn)}function w(Tn){for(var Un,Qn=Tn.concat(),Dn=[],Hn=Qn.length;Hn--;)"string"==typeof(Un=Qn.shift())?Dn.push(Un):Array.isArray(Tn)&&(1===Un.length||void 0===Un[1]&&void 0===Un[2])?Dn.push(Un[0]):Dn.push([Un[0],Un[1],Un[2]]);return Dn}function L(Tn,Un){var Qn;if("string"==typeof Tn)Qn=Un(Tn)[0];else if(Array.isArray(Tn)){for(var Dn,Hn,Gn=Tn.concat(),zn=[],Vn=Gn.length;Vn--;)"string"==typeof(Dn=Gn.shift())?zn.push(Un(Dn)[0]):Array.isArray(Dn)&&"string"==typeof Dn[0]&&(Hn=Un(Dn[0],Dn[1],Dn[2]),zn.push([Hn[0],Hn[1],Hn[2]]));Qn=zn}return Qn}var ur=!1,dr=!0;if("string"==typeof Tn)ur=!0;else if(Array.isArray(Tn)){var hr=Tn.concat();zn=[];for(var pr,Ar=hr.length;Ar--;)("string"!=typeof(pr=hr.shift())||Array.isArray(pr)&&"string"!=typeof pr[0])&&(dr=!1);ur=dr}if(!1===ur)throw new Error('Type of text must be string or Array. "'+Tn+'" is not recognized.');"string"==typeof Tn&&(Tn=Tn.match(/[\r?\n]/)?Tn.split(/\r\n|\r|\n/g):[Tn]);var fr=Mr/Zn.internal.scaleFactor,gr=fr*(Pa-1);switch(Dn.baseline){case"bottom":Qn-=gr;break;case"top":Qn+=fr-gr;break;case"hanging":Qn+=fr-2*gr;break;case"middle":Qn+=fr/2-gr}if((Xn=Dn.maxWidth||0)>0&&("string"==typeof Tn?Tn=Zn.splitTextToSize(Tn,Xn):"[object Array]"===Object.prototype.toString.call(Tn)&&(Tn=Zn.splitTextToSize(Tn.join(" "),Xn))),Gn={text:Tn,x:Un,y:Qn,options:Dn,mutex:{pdfEscape:ea,activeFontKey:qr,fonts:$r,activeFontSize:Mr}},li.publish("preProcessText",Gn),Tn=Gn.text,Vn=(Dn=Gn.options).angle,$n instanceof Ai==0&&Vn&&"number"==typeof Vn){Vn*=Math.PI/180,0===Dn.rotationDirection&&(Vn=-Vn),rr===nr.ADVANCED&&(Vn=-Vn);var mr=Math.cos(Vn),_r=Math.sin(Vn);$n=new Ai(mr,_r,-_r,mr,0,0)}else Vn&&Vn instanceof Ai&&($n=Vn);rr!==nr.ADVANCED||$n||($n=gi),void 0!==(Wn=Dn.charSpace||Ka)&&(tr+=ir(cr(Wn))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),Dn.lang;var vr=-1,yr=void 0!==Dn.renderingMode?Dn.renderingMode:Dn.stroke,br=Zn.internal.getCurrentPageInfo().pageContext;switch(yr){case 0:case!1:case"fill":vr=0;break;case 1:case!0:case"stroke":vr=1;break;case 2:case"fillThenStroke":vr=2;break;case 3:case"invisible":vr=3;break;case 4:case"fillAndAddForClipping":vr=4;break;case 5:case"strokeAndAddPathForClipping":vr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":vr=6;break;case 7:case"addToPathForClipping":vr=7}var wr=void 0!==br.usedRenderingMode?br.usedRenderingMode:-1;-1!==vr?tr+=vr+" Tr\n":-1!==wr&&(tr+="0 Tr\n"),-1!==vr&&(br.usedRenderingMode=vr),Kn=Dn.align||"left";var xr,kr=Mr*sr,Sr=Zn.internal.pageSize.getWidth(),Cr=$r[qr];Wn=Dn.charSpace||Ka,Xn=Dn.maxWidth||0,Jn={};var Br=[];if("[object Array]"===Object.prototype.toString.call(Tn)){var Er;zn=w(Tn),"left"!==Kn&&(xr=zn.map((function(Tn){return Zn.getStringUnitWidth(Tn,{font:Cr,charSpace:Wn,fontSize:Mr,doKerning:!1})*Mr/lr})));var Nr,Lr=0;if("right"===Kn){Un-=xr[0],Tn=[],Ar=zn.length;for(var Tr=0;Tr<Ar;Tr++)0===Tr?(Nr=Qa(Un),Er=Oa(Qn)):(Nr=cr(Lr-xr[Tr]),Er=-kr),Tn.push([zn[Tr],Nr,Er]),Lr=xr[Tr]}else if("center"===Kn){Un-=xr[0]/2,Tn=[],Ar=zn.length;for(var Pr=0;Pr<Ar;Pr++)0===Pr?(Nr=Qa(Un),Er=Oa(Qn)):(Nr=cr((Lr-xr[Pr])/2),Er=-kr),Tn.push([zn[Pr],Nr,Er]),Lr=xr[Pr]}else if("left"===Kn){Tn=[],Ar=zn.length;for(var Ur=0;Ur<Ar;Ur++)Tn.push(zn[Ur])}else{if("justify"!==Kn)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');Tn=[],Ar=zn.length,Xn=0!==Xn?Xn:Sr;for(var Ir=0;Ir<Ar;Ir++)Er=0===Ir?Oa(Qn):-kr,Nr=0===Ir?Qa(Un):0,Ir<Ar-1&&Br.push(ir(cr((Xn-xr[Ir])/(zn[Ir].split(" ").length-1)))),Tn.push([zn[Ir],Nr,Er])}}var Rr="boolean"==typeof Dn.R2L?Dn.R2L:Dr;!0===Rr&&(Tn=L(Tn,(function(Tn,Un,Qn){return[Tn.split("").reverse().join(""),Un,Qn]}))),Gn={text:Tn,x:Un,y:Qn,options:Dn,mutex:{pdfEscape:ea,activeFontKey:qr,fonts:$r,activeFontSize:Mr}},li.publish("postProcessText",Gn),Tn=Gn.text,or=Gn.mutex.isHex||!1;var Qr=$r[qr].encoding;"WinAnsiEncoding"!==Qr&&"StandardEncoding"!==Qr||(Tn=L(Tn,(function(Tn,Un,Qn){return[y(Tn),Un,Qn]}))),zn=w(Tn),Tn=[];for(var Or,jr,Hr,Gr=0,zr=1,Vr=Array.isArray(zn[0])?zr:Gr,Kr="",Wr=function ct(Tn,Un,Qn){var Hn="";return Qn instanceof Ai?(Qn="number"==typeof Dn.angle?fi(Qn,new Ai(1,0,0,1,Tn,Un)):fi(new Ai(1,0,0,1,Tn,Un),Qn),rr===nr.ADVANCED&&(Qn=fi(new Ai(1,0,0,-1,0,0),Qn)),Hn=Qn.join(" ")+" Tm\n"):Hn=ir(Tn)+" "+ir(Un)+" Td\n",Hn},Xr=0;Xr<zn.length;Xr++){switch(Kr="",Vr){case zr:Hr=(or?"<":"(")+zn[Xr][0]+(or?">":")"),Or=parseFloat(zn[Xr][1]),jr=parseFloat(zn[Xr][2]);break;case Gr:Hr=(or?"<":"(")+zn[Xr]+(or?">":")"),Or=Qa(Un),jr=Oa(Qn)}void 0!==Br&&void 0!==Br[Xr]&&(Kr=Br[Xr]+" Tw\n"),0===Xr?Tn.push(Kr+Wr(Or,jr,$n)+Hr):Vr===Gr?Tn.push(Kr+Hr):Vr===zr&&Tn.push(Kr+Wr(Or,jr,$n)+Hr)}Tn=Vr===Gr?Tn.join(" Tj\nT* "):Tn.join(" Tj\n"),Tn+=" Tj\n";var Yr="BT\n/";return Yr+=qr+" "+Mr+" Tf\n",Yr+=ir(Mr*sr)+" TL\n",Yr+=za+"\n",Yr+=tr,Yr+=Tn,Fr(Yr+="ET"),Yn[qr]=!0,Zn};var ya=Jn.__private__.clip=Jn.clip=function(Tn){return Fr("evenodd"===Tn?"W*":"W"),this};Jn.clipEvenOdd=function(){return ya("evenodd")},Jn.__private__.discardPath=Jn.discardPath=function(){return Fr("n"),this};var ba=Jn.__private__.isValidStyle=function(Tn){var Un=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Tn)&&(Un=!0),Un};Jn.__private__.setDefaultPathOperation=Jn.setDefaultPathOperation=function(Tn){return ba(Tn)&&(Wn=Tn),this};var wa=Jn.__private__.getStyle=Jn.getStyle=function(Tn){var Un=Wn;switch(Tn){case"D":case"S":Un="S";break;case"F":Un="f";break;case"FD":case"DF":Un="B";break;case"f":case"f*":case"B":case"B*":Un=Tn}return Un},xa=Jn.close=function(){return Fr("h"),this};Jn.stroke=function(){return Fr("S"),this},Jn.fill=function(Tn){return ka("f",Tn),this},Jn.fillEvenOdd=function(Tn){return ka("f*",Tn),this},Jn.fillStroke=function(Tn){return ka("B",Tn),this},Jn.fillStrokeEvenOdd=function(Tn){return ka("B*",Tn),this};var ka=function Je(Tn,Un){"object"==_typeof(Un)?Ca(Un,Tn):Fr(Tn)},Sa=function Xe(Tn){null===Tn||rr===nr.ADVANCED&&void 0===Tn||(Tn=wa(Tn),Fr(Tn))};function Ke(Tn,Un,Qn,Dn,Hn){var Gn=new p(Un||this.boundingBox,Qn||this.xStep,Dn||this.yStep,this.gState,Hn||this.matrix);Gn.stream=this.stream;var zn=Tn+"$$"+this.cloneIndex+++"$$";return mi(zn,Gn),Gn}var Ca=function Ze(Tn,Un){var Qn=ni[Tn.key],Dn=ti[Qn];if(Dn instanceof d)Fr("q"),Fr(Ba(Un)),Dn.gState&&Jn.setGState(Dn.gState),Fr(Tn.matrix.toString()+" cm"),Fr("/"+Qn+" sh"),Fr("Q");else if(Dn instanceof p){var Hn=new Ai(1,0,0,-1,0,ao());Tn.matrix&&(Hn=Hn.multiply(Tn.matrix||gi),Qn=Ke.call(Dn,Tn.key,Tn.boundingBox,Tn.xStep,Tn.yStep,Hn).id),Fr("q"),Fr("/Pattern cs"),Fr("/"+Qn+" scn"),Dn.gState&&Jn.setGState(Dn.gState),Fr(Un),Fr("Q")}},Ba=function $e(Tn){switch(Tn){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Ea=Jn.moveTo=function(Tn,Un){return Fr(ir(cr(Tn))+" "+ir(dr(Un))+" m"),this},Na=Jn.lineTo=function(Tn,Un){return Fr(ir(cr(Tn))+" "+ir(dr(Un))+" l"),this},La=Jn.curveTo=function(Tn,Un,Qn,Dn,Hn,Gn){return Fr([ir(cr(Tn)),ir(dr(Un)),ir(cr(Qn)),ir(dr(Dn)),ir(cr(Hn)),ir(dr(Gn)),"c"].join(" ")),this};Jn.__private__.line=Jn.line=function(Tn,Un,Qn,Dn,Hn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn)||!ba(Hn))throw new Error("Invalid arguments passed to jsPDF.line");return rr===nr.COMPAT?this.lines([[Qn-Tn,Dn-Un]],Tn,Un,[1,1],Hn||"S"):this.lines([[Qn-Tn,Dn-Un]],Tn,Un,[1,1]).stroke()},Jn.__private__.lines=Jn.lines=function(Tn,Un,Qn,Dn,Hn,Gn){var zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr;if("number"==typeof Tn&&(nr=Qn,Qn=Un,Un=Tn,Tn=nr),Dn=Dn||[1,1],Gn=Gn||!1,isNaN(Un)||isNaN(Qn)||!Array.isArray(Tn)||!Array.isArray(Dn)||!ba(Hn)||"boolean"!=typeof Gn)throw new Error("Invalid arguments passed to jsPDF.lines");for(Ea(Un,Qn),zn=Dn[0],Vn=Dn[1],Wn=Tn.length,er=Un,tr=Qn,Kn=0;Kn<Wn;Kn++)2===(Xn=Tn[Kn]).length?(er=Xn[0]*zn+er,tr=Xn[1]*Vn+tr,Na(er,tr)):(Yn=Xn[0]*zn+er,Jn=Xn[1]*Vn+tr,$n=Xn[2]*zn+er,Zn=Xn[3]*Vn+tr,er=Xn[4]*zn+er,tr=Xn[5]*Vn+tr,La(Yn,Jn,$n,Zn,er,tr));return Gn&&xa(),Sa(Hn),this},Jn.path=function(Tn){for(var Un=0;Un<Tn.length;Un++){var Qn=Tn[Un],Dn=Qn.c;switch(Qn.op){case"m":Ea(Dn[0],Dn[1]);break;case"l":Na(Dn[0],Dn[1]);break;case"c":La.apply(this,Dn);break;case"h":xa()}}return this},Jn.__private__.rect=Jn.rect=function(Tn,Un,Qn,Dn,Hn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn)||!ba(Hn))throw new Error("Invalid arguments passed to jsPDF.rect");return rr===nr.COMPAT&&(Dn=-Dn),Fr([ir(cr(Tn)),ir(dr(Un)),ir(cr(Qn)),ir(cr(Dn)),"re"].join(" ")),Sa(Hn),this},Jn.__private__.triangle=Jn.triangle=function(Tn,Un,Qn,Dn,Hn,Gn,zn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn)||isNaN(Hn)||isNaN(Gn)||!ba(zn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Qn-Tn,Dn-Un],[Hn-Qn,Gn-Dn],[Tn-Hn,Un-Gn]],Tn,Un,[1,1],zn,!0),this},Jn.__private__.roundedRect=Jn.roundedRect=function(Tn,Un,Qn,Dn,Hn,Gn,zn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn)||isNaN(Hn)||isNaN(Gn)||!ba(zn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Vn=4/3*(Math.SQRT2-1);return Hn=Math.min(Hn,.5*Qn),Gn=Math.min(Gn,.5*Dn),this.lines([[Qn-2*Hn,0],[Hn*Vn,0,Hn,Gn-Gn*Vn,Hn,Gn],[0,Dn-2*Gn],[0,Gn*Vn,-Hn*Vn,Gn,-Hn,Gn],[2*Hn-Qn,0],[-Hn*Vn,0,-Hn,-Gn*Vn,-Hn,-Gn],[0,2*Gn-Dn],[0,-Gn*Vn,Hn*Vn,-Gn,Hn,-Gn]],Tn+Hn,Un,[1,1],zn,!0),this},Jn.__private__.ellipse=Jn.ellipse=function(Tn,Un,Qn,Dn,Hn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn)||!ba(Hn))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Gn=4/3*(Math.SQRT2-1)*Qn,zn=4/3*(Math.SQRT2-1)*Dn;return Ea(Tn+Qn,Un),La(Tn+Qn,Un-zn,Tn+Gn,Un-Dn,Tn,Un-Dn),La(Tn-Gn,Un-Dn,Tn-Qn,Un-zn,Tn-Qn,Un),La(Tn-Qn,Un+zn,Tn-Gn,Un+Dn,Tn,Un+Dn),La(Tn+Gn,Un+Dn,Tn+Qn,Un+zn,Tn+Qn,Un),Sa(Hn),this},Jn.__private__.circle=Jn.circle=function(Tn,Un,Qn,Dn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||!ba(Dn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Tn,Un,Qn,Qn,Dn)},Jn.setFont=function(Tn,Un){return qr=oa(Tn,Un,{disableWarning:!1}),this};var Ta=Jn.__private__.getFont=Jn.getFont=function(){return $r[oa.apply(Jn,arguments)]};Jn.__private__.getFontList=Jn.getFontList=function(){var Tn,Un,Qn={};for(Tn in Zr)if(Zr.hasOwnProperty(Tn))for(Un in Qn[Tn]=[],Zr[Tn])Zr[Tn].hasOwnProperty(Un)&&Qn[Tn].push(Un);return Qn},Jn.addFont=function(Tn,Un,Qn,Dn){return Dn=Dn||"Identity-H",Yi.call(this,Tn,Un,Qn,Dn)};var Pa,Fa=Tn.lineWidth||.200025,Ua=Jn.__private__.setLineWidth=Jn.setLineWidth=function(Tn){return Fr(ir(cr(Tn))+" w"),this};Jn.__private__.setLineDash=g.API.setLineDash=g.API.setLineDashPattern=function(Tn,Un){if(Tn=Tn||[],Un=Un||0,isNaN(Un)||!Array.isArray(Tn))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Tn=Tn.map((function(Tn){return ir(cr(Tn))})).join(" "),Un=ir(cr(Un)),Fr("["+Tn+"] "+Un+" d"),this};var Ia=Jn.__private__.getLineHeight=Jn.getLineHeight=function(){return Mr*Pa};Jn.__private__.getLineHeight=Jn.getLineHeight=function(){return Mr*Pa};var Ra=Jn.__private__.setLineHeightFactor=Jn.setLineHeightFactor=function(Tn){return"number"==typeof(Tn=Tn||1.15)&&(Pa=Tn),this},Ma=Jn.__private__.getLineHeightFactor=Jn.getLineHeightFactor=function(){return Pa};Ra(Tn.lineHeight);var Qa=Jn.__private__.getHorizontalCoordinate=function(Tn){return cr(Tn)},Oa=Jn.__private__.getVerticalCoordinate=function(Tn){return rr===nr.ADVANCED?Tn:si[yr].mediaBox.topRightY-si[yr].mediaBox.bottomLeftY-cr(Tn)},Da=Jn.__private__.getHorizontalCoordinateString=Jn.getHorizontalCoordinateString=function(Tn){return ir(Qa(Tn))},ja=Jn.__private__.getVerticalCoordinateString=Jn.getVerticalCoordinateString=function(Tn){return ir(Oa(Tn))},Ha=Tn.strokeColor||"0 G";Jn.__private__.getStrokeColor=Jn.getDrawColor=function(){return Si(Ha)},Jn.__private__.setStrokeColor=Jn.setDrawColor=function(Tn,Un,Qn,Dn){return Ha=Ci({ch1:Tn,ch2:Un,ch3:Qn,ch4:Dn,pdfColorType:"draw",precision:2}),Fr(Ha),this};var Ga=Tn.fillColor||"0 g";Jn.__private__.getFillColor=Jn.getFillColor=function(){return Si(Ga)},Jn.__private__.setFillColor=Jn.setFillColor=function(Tn,Un,Qn,Dn){return Ga=Ci({ch1:Tn,ch2:Un,ch3:Qn,ch4:Dn,pdfColorType:"fill",precision:2}),Fr(Ga),this};var za=Tn.textColor||"0 g",Va=Jn.__private__.getTextColor=Jn.getTextColor=function(){return Si(za)};Jn.__private__.setTextColor=Jn.setTextColor=function(Tn,Un,Qn,Dn){return za=Ci({ch1:Tn,ch2:Un,ch3:Qn,ch4:Dn,pdfColorType:"text",precision:3}),this};var Ka=Tn.charSpace,qa=Jn.__private__.getCharSpace=Jn.getCharSpace=function(){return parseFloat(Ka||0)};Jn.__private__.setCharSpace=Jn.setCharSpace=function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ka=Tn,this};var Wa=0;Jn.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},Jn.__private__.setLineCap=Jn.setLineCap=function(Tn){var Un=Jn.CapJoinStyles[Tn];if(void 0===Un)throw new Error("Line cap style of '"+Tn+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Wa=Un,Fr(Un+" J"),this};var Xa=0;Jn.__private__.setLineJoin=Jn.setLineJoin=function(Tn){var Un=Jn.CapJoinStyles[Tn];if(void 0===Un)throw new Error("Line join style of '"+Tn+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Xa=Un,Fr(Un+" j"),this},Jn.__private__.setLineMiterLimit=Jn.__private__.setMiterLimit=Jn.setLineMiterLimit=Jn.setMiterLimit=function(Tn){if(Tn=Tn||0,isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Fr(ir(cr(Tn))+" M"),this},Jn.GState=l,Jn.setGState=function(Tn){(Tn="string"==typeof Tn?ri[ii[Tn]]:Ya(null,Tn)).equals(ai)||(Fr("/"+Tn.id+" gs"),ai=Tn)};var Ya=function Ln(Tn,Un){if(!Tn||!ii[Tn]){var Qn=!1;for(var Dn in ri)if(ri.hasOwnProperty(Dn)&&ri[Dn].equals(Un)){Qn=!0;break}if(Qn)Un=ri[Dn];else{var Hn="GS"+(Object.keys(ri).length+1).toString(10);ri[Hn]=Un,Un.id=Hn}return Tn&&(ii[Tn]=Un.id),li.publish("addGState",Un),Un}};Jn.addGState=function(Tn,Un){return Ya(Tn,Un),this},Jn.saveGraphicsState=function(){return Fr("q"),ei.push({key:qr,size:Mr,color:za}),this},Jn.restoreGraphicsState=function(){Fr("Q");var Tn=ei.pop();return qr=Tn.key,Mr=Tn.size,za=Tn.color,ai=null,this},Jn.setCurrentTransformationMatrix=function(Tn){return Fr(Tn.toString()+" cm"),this},Jn.comment=function(Tn){return Fr("#"+Tn),this};var Ja=function xn(Tn,Un){var Qn=Tn||0;Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return Qn},set:function set(Tn){isNaN(Tn)||(Qn=parseFloat(Tn))}});var Dn=Un||0;Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return Dn},set:function set(Tn){isNaN(Tn)||(Dn=parseFloat(Tn))}});var Hn="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function get(){return Hn},set:function set(Tn){Hn=Tn.toString()}}),this},$a=function An(Tn,Un,Qn,Dn){Ja.call(this,Tn,Un),this.type="rect";var Hn=Qn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function get(){return Hn},set:function set(Tn){isNaN(Tn)||(Hn=parseFloat(Tn))}});var Gn=Dn||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function get(){return Gn},set:function set(Tn){isNaN(Tn)||(Gn=parseFloat(Tn))}}),this},Za=function _n(){this.page=oi,this.currentPage=yr,this.pages=Er.slice(0),this.pagesContext=si.slice(0),this.x=Xr,this.y=Yr,this.matrix=Jr,this.width=ro(yr),this.height=ao(yr),this.outputDestination=Lr,this.id="",this.objectNumber=-1};Za.prototype.restore=function(){oi=this.page,yr=this.currentPage,si=this.pagesContext,Er=this.pages,Xr=this.x,Yr=this.y,Jr=this.matrix,io(yr,this.width),oo(yr,this.height),Lr=this.outputDestination};var eo=function Sn(Tn,Un,Qn,Dn,Hn){pi.push(new Za),oi=yr=0,Er=[],Xr=Tn,Yr=Un,Jr=Hn,ta([Qn,Dn])},to=function Pn(Tn){if(!hi[Tn]){var Un=new Za,Qn="Xo"+(Object.keys(di).length+1).toString(10);Un.id=Qn,hi[Tn]=Qn,di[Qn]=Un,li.publish("addFormObject",Un),pi.pop().restore()}};for(var no in Jn.beginFormObject=function(Tn,Un,Qn,Dn,Hn){return eo(Tn,Un,Qn,Dn,Hn),this},Jn.endFormObject=function(Tn){return to(Tn),this},Jn.doFormObject=function(Tn,Un){var Qn=di[hi[Tn]];return Fr("q"),Fr(Un.toString()+" cm"),Fr("/"+Qn.id+" Do"),Fr("Q"),this},Jn.getFormObject=function(Tn){var Un=di[hi[Tn]];return{x:Un.x,y:Un.y,width:Un.width,height:Un.height,matrix:Un.matrix}},Jn.save=function(Tn,Un){return Tn=Tn||"generated.pdf",(Un=Un||{}).returnPromise=Un.returnPromise||!1,!1===Un.returnPromise?(jf(Aa(pa()),Tn),"function"==typeof jf.unload&&Mf.setTimeout&&setTimeout(jf.unload,911),this):new Promise((function(Un,Qn){try{var Dn=jf(Aa(pa()),Tn);"function"==typeof jf.unload&&Mf.setTimeout&&setTimeout(jf.unload,911),Un(Dn)}catch(Tn){Qn(Tn.message)}}))},g.API)g.API.hasOwnProperty(no)&&("events"===no&&g.API.events.length?function(Tn,Un){var Qn,Dn,Hn;for(Hn=Un.length-1;-1!==Hn;Hn--)Qn=Un[Hn][0],Dn=Un[Hn][1],Tn.subscribe.apply(Tn,[Qn].concat("function"==typeof Dn?[Dn]:Dn))}(li,g.API.events):Jn[no]=g.API[no]);var ro=Jn.getPageWidth=function(Tn){return(si[Tn=Tn||yr].mediaBox.topRightX-si[Tn].mediaBox.bottomLeftX)/Wr},io=Jn.setPageWidth=function(Tn,Un){si[Tn].mediaBox.topRightX=Un*Wr+si[Tn].mediaBox.bottomLeftX},ao=Jn.getPageHeight=function(Tn){return(si[Tn=Tn||yr].mediaBox.topRightY-si[Tn].mediaBox.bottomLeftY)/Wr},oo=Jn.setPageHeight=function(Tn,Un){si[Tn].mediaBox.topRightY=Un*Wr+si[Tn].mediaBox.bottomLeftY};return Jn.internal={pdfEscape:ea,getStyle:wa,getFont:Ta,getFontSize:Or,getCharSpace:qa,getTextColor:Va,getLineHeight:Ia,getLineHeightFactor:Ma,write:Ur,getHorizontalCoordinate:Qa,getVerticalCoordinate:Oa,getCoordinateString:Da,getVerticalCoordinateString:ja,collections:{},newObject:_i,newAdditionalObject:wi,newObjectDeferred:vi,newObjectDeferredBegin:yi,getFilters:Bi,putStream:Ei,events:li,scaleFactor:Wr,pageSize:{getWidth:function getWidth(){return ro(yr)},setWidth:function setWidth(Tn){io(yr,Tn)},getHeight:function getHeight(){return ao(yr)},setHeight:function setHeight(Tn){oo(yr,Tn)}},output:fa,getNumberOfPages:aa,pages:Er,out:Fr,f2:sr,f3:lr,getPageInfo:ma,getPageInfoByObjId:_a,getCurrentPageInfo:va,getPDFVersion:Zn,Point:Ja,Rectangle:$a,Matrix:Ai,hasHotfix:ga},Object.defineProperty(Jn.internal.pageSize,"width",{get:function get(){return ro(yr)},set:function set(Tn){io(yr,Tn)},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.internal.pageSize,"height",{get:function get(){return ao(yr)},set:function set(Tn){oo(yr,Tn)},enumerable:!0,configurable:!0}),Ji.call(Jn,Rr),qr="F1",na(Hn,Qn),li.publish("initialized"),Jn}Of=Mf.atob,Df=Mf.btoa,l.prototype.equals=function(Tn){var Un,Qn="id,objectNumber,equals";if(!Tn||_typeof(Tn)!=_typeof(this))return!1;var Dn=0;for(Un in this)if(!(Qn.indexOf(Un)>=0)){if(this.hasOwnProperty(Un)&&!Tn.hasOwnProperty(Un))return!1;if(this[Un]!==Tn[Un])return!1;Dn++}for(Un in Tn)Tn.hasOwnProperty(Un)&&Qn.indexOf(Un)<0&&Dn--;return 0===Dn},g.API={events:[]},g.version="2.1.1";var Hf,Gf=g.API,zf=1,Vf=function y(Tn){return Tn.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Kf=function w(Tn){return Tn.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},qf=function N(Tn){return Tn.toFixed(2)},Wf=function L(Tn){return Tn.toFixed(5)};Gf.__acroform__={};var Xf=function x(Tn,Un){Tn.prototype=Object.create(Un.prototype),Tn.prototype.constructor=Tn},Yf=function A(Tn){return Tn*zf},Jf=function _(Tn){var Un=new yg,Qn=Ug.internal.getHeight(Tn)||0,Dn=Ug.internal.getWidth(Tn)||0;return Un.BBox=[0,0,Number(qf(Dn)),Number(qf(Qn))],Un},$f=Gf.__acroform__.setBit=function(Tn,Un){if(Tn=Tn||0,Un=Un||0,isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Tn|1<<Un},Zf=Gf.__acroform__.clearBit=function(Tn,Un){if(Tn=Tn||0,Un=Un||0,isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Tn&~(1<<Un)},eg=Gf.__acroform__.getBit=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(Tn&1<<Un)?0:1},tg=Gf.__acroform__.getBitForPdf=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return eg(Tn,Un-1)},ng=Gf.__acroform__.setBitForPdf=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return $f(Tn,Un-1)},rg=Gf.__acroform__.clearBitForPdf=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Zf(Tn,Un-1)},ig=Gf.__acroform__.calculateCoordinates=function(Tn){var Un=this.internal.getHorizontalCoordinate,Qn=this.internal.getVerticalCoordinate,Dn=Tn[0],Hn=Tn[1],Gn=Tn[2],zn=Tn[3],Vn={};return Vn.lowerLeft_X=Un(Dn)||0,Vn.lowerLeft_Y=Qn(Hn+zn)||0,Vn.upperRight_X=Un(Dn+Gn)||0,Vn.upperRight_Y=Qn(Hn)||0,[Number(qf(Vn.lowerLeft_X)),Number(qf(Vn.lowerLeft_Y)),Number(qf(Vn.upperRight_X)),Number(qf(Vn.upperRight_Y))]},ag=function B(Tn){if(Tn.appearanceStreamContent)return Tn.appearanceStreamContent;if(Tn.V||Tn.DV){var Un=[],Qn=Tn.V||Tn.DV,Dn=og(Tn,Qn),Hn=Hf.internal.getFont(Tn.fontName,Tn.fontStyle).id;Un.push("/Tx BMC"),Un.push("q"),Un.push("BT"),Un.push(Hf.__private__.encodeColorString(Tn.color)),Un.push("/"+Hn+" "+qf(Dn.fontSize)+" Tf"),Un.push("1 0 0 1 0 0 Tm"),Un.push(Dn.text),Un.push("ET"),Un.push("Q"),Un.push("EMC");var Gn=new Jf(Tn);return Gn.stream=Un.join("\n"),Gn}},og=function O(Tn,Un){var Qn=0===Tn.fontSize?Tn.maxFontSize:Tn.fontSize,Dn={text:"",fontSize:""},Hn=(Un=")"==(Un="("==Un.substr(0,1)?Un.substr(1):Un).substr(Un.length-1)?Un.substr(0,Un.length-1):Un).split(" "),Gn=Qn,zn=Ug.internal.getHeight(Tn)||0;zn=zn<0?-zn:zn;var Vn=Ug.internal.getWidth(Tn)||0;Vn=Vn<0?-Vn:Vn;var Kn=function u(Un,Qn,Dn){if(Un+1<Hn.length){var Gn=Qn+" "+Hn[Un+1];return sg(Gn,Tn,Dn).width<=Vn-4}return!1};Gn++;e:for(;Gn>0;){Un="",Gn--;var Wn,Xn,Yn=sg("3",Tn,Gn).height,Jn=Tn.multiline?zn-Gn:(zn-Yn)/2,$n=Jn+=2,Zn=0,er=0;if(Gn<=0){Un="(...) Tj\n",Un+="% Width of Text: "+sg(Un,Tn,Gn=12).width+", FieldWidth:"+Vn+"\n";break}var tr="",nr=0;for(var rr in Hn)if(Hn.hasOwnProperty(rr)){tr=" "==(tr+=Hn[rr]+" ").substr(tr.length-1)?tr.substr(0,tr.length-1):tr;var ir=parseInt(rr),ar=Kn(ir,tr,Gn),or=rr>=Hn.length-1;if(ar&&!or){tr+=" ";continue}if(ar||or){if(or)er=ir;else if(Tn.multiline&&(Yn+2)*(nr+2)+2>zn)continue e}else{if(!Tn.multiline)continue e;if((Yn+2)*(nr+2)+2>zn)continue e;er=ir}for(var sr="",lr=Zn;lr<=er;lr++)sr+=Hn[lr]+" ";switch(sr=" "==sr.substr(sr.length-1)?sr.substr(0,sr.length-1):sr,Xn=sg(sr,Tn,Gn).width,Tn.textAlign){case"right":Wn=Vn-Xn-2;break;case"center":Wn=(Vn-Xn)/2;break;case"left":default:Wn=2}Un+=qf(Wn)+" "+qf($n)+" Td\n",Un+="("+Vf(sr)+") Tj\n",Un+=-qf(Wn)+" 0 Td\n",$n=-(Gn+2),Xn=0,Zn=er+1,nr++,tr=""}break}return Dn.text=Un,Dn.fontSize=Gn,Dn},sg=function M(Tn,Un,Qn){var Dn=Hf.internal.getFont(Un.fontName,Un.fontStyle),Hn=Hf.getStringUnitWidth(Tn,{font:Dn,fontSize:parseFloat(Qn),charSpace:0})*parseFloat(Qn);return{height:Hf.getStringUnitWidth("3",{font:Dn,fontSize:parseFloat(Qn),charSpace:0})*parseFloat(Qn)*1.5,width:Hn}},lg={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},cg=function q(){Hf.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Tn=Hf.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Un in Tn)if(Tn.hasOwnProperty(Un)){var Qn=Tn[Un];Qn.objId=void 0,Qn.hasAnnotation&&dg.call(Hf,Qn)}},ug=function R(Tn){Hf.internal.acroformPlugin.printedOut&&(Hf.internal.acroformPlugin.printedOut=!1,Hf.internal.acroformPlugin.acroFormDictionaryRoot=null),Hf.internal.acroformPlugin.acroFormDictionaryRoot||gg.call(Hf),Hf.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Tn)},dg=function T(Tn){var Un={type:"reference",object:Tn};void 0===Hf.internal.getPageInfo(Tn.page).pageContext.annotations.find((function(Tn){return Tn.type===Un.type&&Tn.object===Un.object}))&&Hf.internal.getPageInfo(Tn.page).pageContext.annotations.push(Un)},hg=function D(){if(void 0===Hf.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");Hf.internal.write("/AcroForm "+Hf.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},pg=function U(){Hf.internal.events.unsubscribe(Hf.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Hf.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Hf.internal.acroformPlugin.printedOut=!0},Ag=function z(Tn){var Un=!Tn;for(var Qn in Tn||(Hf.internal.newObjectDeferredBegin(Hf.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Hf.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Tn=Tn||Hf.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Tn.hasOwnProperty(Qn)){var Dn=Tn[Qn],Hn=[],Gn=Dn.Rect;if(Dn.Rect&&(Dn.Rect=ig.call(this,Dn.Rect)),Hf.internal.newObjectDeferredBegin(Dn.objId,!0),Dn.DA=Ug.createDefaultAppearanceStream(Dn),"object"==_typeof(Dn)&&"function"==typeof Dn.getKeyValueListForStream&&(Hn=Dn.getKeyValueListForStream()),Dn.Rect=Gn,Dn.hasAppearanceStream&&!Dn.appearanceStreamContent){var zn=ag.call(this,Dn);Hn.push({key:"AP",value:"<</N "+zn+">>"}),Hf.internal.acroformPlugin.xForms.push(zn)}if(Dn.appearanceStreamContent){var Vn="";for(var Kn in Dn.appearanceStreamContent)if(Dn.appearanceStreamContent.hasOwnProperty(Kn)){var Wn=Dn.appearanceStreamContent[Kn];if(Vn+="/"+Kn+" ",Vn+="<<",Object.keys(Wn).length>=1||Array.isArray(Wn)){for(var Qn in Wn)if(Wn.hasOwnProperty(Qn)){var Xn=Wn[Qn];"function"==typeof Xn&&(Xn=Xn.call(this,Dn)),Vn+="/"+Qn+" "+Xn+" ",Hf.internal.acroformPlugin.xForms.indexOf(Xn)>=0||Hf.internal.acroformPlugin.xForms.push(Xn)}}else"function"==typeof(Xn=Wn)&&(Xn=Xn.call(this,Dn)),Vn+="/"+Qn+" "+Xn,Hf.internal.acroformPlugin.xForms.indexOf(Xn)>=0||Hf.internal.acroformPlugin.xForms.push(Xn);Vn+=">>"}Hn.push({key:"AP",value:"<<\n"+Vn+">>"})}Hf.internal.putStream({additionalKeyValues:Hn}),Hf.internal.out("endobj")}Un&&fg.call(this,Hf.internal.acroformPlugin.xForms)},fg=function H(Tn){for(var Un in Tn)if(Tn.hasOwnProperty(Un)){var Qn=Un,Dn=Tn[Un];Hf.internal.newObjectDeferredBegin(Dn&&Dn.objId,!0),"object"==_typeof(Dn)&&"function"==typeof Dn.putStream&&Dn.putStream(),delete Tn[Qn]}},gg=function W(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(Hf=this,wg.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(lg)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");zf=Hf.internal.scaleFactor,Hf.internal.acroformPlugin.acroFormDictionaryRoot=new bg,Hf.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Hf.internal.events.subscribe("postPutResources",pg),Hf.internal.events.subscribe("buildDocument",cg),Hf.internal.events.subscribe("putCatalog",hg),Hf.internal.events.subscribe("postPutPages",Ag),Hf.internal.acroformPlugin.isInitialized=!0}},mg=Gf.__acroform__.arrayToPdfArray=function(Tn){if(Array.isArray(Tn)){for(var Un="[",Qn=0;Qn<Tn.length;Qn++)switch(0!==Qn&&(Un+=" "),_typeof(Tn[Qn])){case"boolean":case"number":case"object":Un+=Tn[Qn].toString();break;case"string":"/"!==Tn[Qn].substr(0,1)?Un+="("+Vf(Tn[Qn].toString())+")":Un+=Tn[Qn].toString()}return Un+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},_g=function G(Tn){return(Tn=Tn||"").toString(),"("+Vf(Tn)+")"},vg=function Y(){var Tn;Object.defineProperty(this,"objId",{configurable:!0,get:function get(){return Tn||(Tn=Hf.internal.newObjectDeferred()),Tn},set:function set(Un){Tn=Un}})};vg.prototype.toString=function(){return this.objId+" 0 R"},vg.prototype.putStream=function(){var Tn=this.getKeyValueListForStream();Hf.internal.putStream({data:this.stream,additionalKeyValues:Tn}),Hf.internal.out("endobj")},vg.prototype.getKeyValueListForStream=function(){return function(Tn){var Un=[],Qn=Object.getOwnPropertyNames(Tn).filter((function(Tn){return"content"!=Tn&&"appearanceStreamContent"!=Tn&&"_"!=Tn.substring(0,1)}));for(var Dn in Qn)if(!1===Object.getOwnPropertyDescriptor(Tn,Qn[Dn]).configurable){var Hn=Qn[Dn],Gn=Tn[Hn];Gn&&(Array.isArray(Gn)?Un.push({key:Hn,value:mg(Gn)}):Gn instanceof vg?Un.push({key:Hn,value:Gn.objId+" 0 R"}):"function"!=typeof Gn&&Un.push({key:Hn,value:Gn}))}return Un}(this)};var yg=function J(){vg.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var Tn,Un=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function get(){return Un},set:function set(Tn){Un=Tn}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function set(Un){Tn=Un.trim()},get:function get(){return Tn||null}})};Xf(yg,vg);var bg=function X(){vg.call(this);var Tn,Un=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function get(){return Un.length>0?Un:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function get(){return Un}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function get(){if(Tn)return"("+Tn+")"},set:function set(Un){Tn=Un}})};Xf(bg,vg);var wg=function K(){vg.call(this);var Tn=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function get(){return Tn},set:function set(Un){if(isNaN(Un))throw new Error('Invalid value "'+Un+'" for attribute F supplied.');Tn=Un}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(Tn,3))},set:function set(Un){!0===Boolean(Un)?this.F=ng(Tn,3):this.F=rg(Tn,3)}});var Un=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function get(){return Un},set:function set(Tn){if(isNaN(Tn))throw new Error('Invalid value "'+Tn+'" for attribute Ff supplied.');Un=Tn}});var Qn=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function get(){if(0!==Qn.length)return Qn},set:function set(Tn){Qn=void 0!==Tn?Tn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function get(){return!Qn||isNaN(Qn[0])?0:Qn[0]},set:function set(Tn){Qn[0]=Tn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function get(){return!Qn||isNaN(Qn[1])?0:Qn[1]},set:function set(Tn){Qn[1]=Tn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function get(){return!Qn||isNaN(Qn[2])?0:Qn[2]},set:function set(Tn){Qn[2]=Tn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function get(){return!Qn||isNaN(Qn[3])?0:Qn[3]},set:function set(Tn){Qn[3]=Tn}});var Dn="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function get(){return Dn},set:function set(Tn){switch(Tn){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Dn=Tn;break;default:throw new Error('Invalid value "'+Tn+'" for attribute FT supplied.')}}});var Hn=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function get(){if(!Hn||Hn.length<1){if(this instanceof Lg)return;Hn="FieldObject"+K.FieldNum++}return"("+Vf(Hn)+")"},set:function set(Tn){Hn=Tn.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function get(){return Hn},set:function set(Tn){Hn=Tn}});var Gn="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function get(){return Gn},set:function set(Tn){Gn=Tn}});var zn="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function get(){return zn},set:function set(Tn){zn=Tn}});var Vn=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function get(){return Vn},set:function set(Tn){Vn=Tn}});var Kn=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function get(){return void 0===Kn?50/zf:Kn},set:function set(Tn){Kn=Tn}});var Wn="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function get(){return Wn},set:function set(Tn){Wn=Tn}});var Xn="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function get(){if(!(!Xn||this instanceof Lg||this instanceof Pg))return _g(Xn)},set:function set(Tn){Tn=Tn.toString(),Xn=Tn}});var Yn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function get(){if(Yn)return this instanceof Bg==0?_g(Yn):Yn},set:function set(Tn){Tn=Tn.toString(),Yn=this instanceof Bg==0?"("===Tn.substr(0,1)?Kf(Tn.substr(1,Tn.length-2)):Kf(Tn):Tn}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function get(){return this instanceof Bg==1?Kf(Yn.substr(1,Yn.length-1)):Yn},set:function set(Tn){Tn=Tn.toString(),Yn=this instanceof Bg==1?"/"+Tn:Tn}});var Jn=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function get(){if(Jn)return this instanceof Bg==0?_g(Jn):Jn},set:function set(Tn){Tn=Tn.toString(),Jn=this instanceof Bg==0?"("===Tn.substr(0,1)?Kf(Tn.substr(1,Tn.length-2)):Kf(Tn):Tn}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function get(){return this instanceof Bg==1?Kf(Jn.substr(1,Jn.length-1)):Jn},set:function set(Tn){Tn=Tn.toString(),Jn=this instanceof Bg==1?"/"+Tn:Tn}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function get(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function get(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function get(){return this.hasAnnotation?"/Widget":null}});var $n,Zn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function get(){return Zn},set:function set(Tn){Tn=Boolean(Tn),Zn=Tn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function get(){if($n)return $n},set:function set(Tn){$n=Tn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,1))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,1):this.Ff=rg(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,2))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,2):this.Ff=rg(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,3))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,3):this.Ff=rg(this.Ff,3)}});var er=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function get(){if(null!==er)return er},set:function set(Tn){if(-1===[0,1,2].indexOf(Tn))throw new Error('Invalid value "'+Tn+'" for attribute Q supplied.');er=Tn}}),Object.defineProperty(this,"textAlign",{get:function get(){var Tn;switch(er){case 0:default:Tn="left";break;case 1:Tn="center";break;case 2:Tn="right"}return Tn},configurable:!0,enumerable:!0,set:function set(Tn){switch(Tn){case"right":case 2:er=2;break;case"center":case 1:er=1;break;case"left":case 0:default:er=0}}})};Xf(wg,vg);var xg=function Z(){wg.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Tn=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function get(){return Tn},set:function set(Un){Tn=Un}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function get(){return Tn},set:function set(Un){Tn=Un}});var Un=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function get(){return mg(Un)},set:function set(Tn){var Qn,Dn;Dn=[],"string"==typeof(Qn=Tn)&&(Dn=function(Tn,Un,Qn){Qn||(Qn=1);for(var Dn,Hn=[];Dn=Un.exec(Tn);)Hn.push(Dn[Qn]);return Hn}(Qn,/\((.*?)\)/g)),Un=Dn}}),this.getOptions=function(){return Un},this.setOptions=function(Tn){Un=Tn,this.sort&&Un.sort()},this.addOption=function(Tn){Tn=(Tn=Tn||"").toString(),Un.push(Tn),this.sort&&Un.sort()},this.removeOption=function(Tn,Qn){for(Qn=Qn||!1,Tn=(Tn=Tn||"").toString();-1!==Un.indexOf(Tn)&&(Un.splice(Un.indexOf(Tn),1),!1!==Qn););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,18))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,18):this.Ff=rg(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,19))},set:function set(Tn){!0===this.combo&&(!0===Boolean(Tn)?this.Ff=ng(this.Ff,19):this.Ff=rg(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,20))},set:function set(Tn){!0===Boolean(Tn)?(this.Ff=ng(this.Ff,20),Un.sort()):this.Ff=rg(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,22))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,22):this.Ff=rg(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,23))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,23):this.Ff=rg(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,27))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,27):this.Ff=rg(this.Ff,27)}}),this.hasAppearanceStream=!1};Xf(xg,wg);var kg=function $(){xg.call(this),this.fontName="helvetica",this.combo=!1};Xf(kg,xg);var Sg=function Q(){kg.call(this),this.combo=!0};Xf(Sg,kg);var Cg=function tt(){Sg.call(this),this.edit=!0};Xf(Cg,Sg);var Bg=function et(){wg.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,15))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,15):this.Ff=rg(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,16))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,16):this.Ff=rg(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,17))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,17):this.Ff=rg(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,26))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,26):this.Ff=rg(this.Ff,26)}});var Tn,Un={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function get(){if(0!==Object.keys(Un).length){var Tn,Qn=[];for(Tn in Qn.push("<<"),Un)Qn.push("/"+Tn+" ("+Un[Tn]+")");return Qn.push(">>"),Qn.join("\n")}},set:function set(Tn){"object"==_typeof(Tn)&&(Un=Tn)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function get(){return Un.CA||""},set:function set(Tn){"string"==typeof Tn&&(Un.CA=Tn)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function get(){return Tn},set:function set(Un){Tn=Un}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function get(){return Tn.substr(1,Tn.length-1)},set:function set(Un){Tn="/"+Un}})};Xf(Bg,wg);var Eg=function nt(){Bg.call(this),this.pushButton=!0};Xf(Eg,Bg);var Ng=function rt(){Bg.call(this),this.radio=!0,this.pushButton=!1;var Tn=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function get(){return Tn},set:function set(Un){Tn=void 0!==Un?Un:[]}})};Xf(Ng,Bg);var Lg=function it(){var Tn,Un;wg.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function get(){return Tn},set:function set(Un){Tn=Un}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function get(){return Un},set:function set(Tn){Un=Tn}});var Qn,Dn={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function get(){var Tn,Un=[];for(Tn in Un.push("<<"),Dn)Un.push("/"+Tn+" ("+Dn[Tn]+")");return Un.push(">>"),Un.join("\n")},set:function set(Tn){"object"==_typeof(Tn)&&(Dn=Tn)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function get(){return Dn.CA||""},set:function set(Tn){"string"==typeof Tn&&(Dn.CA=Tn)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function get(){return Qn},set:function set(Tn){Qn=Tn}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function get(){return Qn.substr(1,Qn.length-1)},set:function set(Tn){Qn="/"+Tn}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ug.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Xf(Lg,wg),Ng.prototype.setAppearance=function(Tn){if(!("createAppearanceStream"in Tn)||!("getCA"in Tn))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Un in this.Kids)if(this.Kids.hasOwnProperty(Un)){var Qn=this.Kids[Un];Qn.appearanceStreamContent=Tn.createAppearanceStream(Qn.optionName),Qn.caption=Tn.getCA()}},Ng.prototype.createOption=function(Tn){var Un=new Lg;return Un.Parent=this,Un.optionName=Tn,this.Kids.push(Un),Ig.call(this,Un),Un};var Tg=function at(){Bg.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ug.CheckBox.createAppearanceStream()};Xf(Tg,Bg);var Pg=function ot(){wg.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,13))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,13):this.Ff=rg(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,21))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,21):this.Ff=rg(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,23))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,23):this.Ff=rg(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,24))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,24):this.Ff=rg(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,25))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,25):this.Ff=rg(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,26))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,26):this.Ff=rg(this.Ff,26)}});var Tn=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function get(){return Tn},set:function set(Un){Tn=Un}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function get(){return Tn},set:function set(Un){Number.isInteger(Un)&&(Tn=Un)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function get(){return this.V||this.DV}})};Xf(Pg,wg);var Fg=function st(){Pg.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,14))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ng(this.Ff,14):this.Ff=rg(this.Ff,14)}}),this.password=!0};Xf(Fg,Pg);var Ug={CheckBox:{createAppearanceStream:function createAppearanceStream(){return{N:{On:Ug.CheckBox.YesNormal},D:{On:Ug.CheckBox.YesPushDown,Off:Ug.CheckBox.OffPushDown}}},YesPushDown:function YesPushDown(Tn){var Un=new Jf(Tn),Qn=[],Dn=Hf.internal.getFont(Tn.fontName,Tn.fontStyle).id,Hn=Hf.__private__.encodeColorString(Tn.color),Gn=og(Tn,Tn.caption);return Qn.push("0.749023 g"),Qn.push("0 0 "+qf(Ug.internal.getWidth(Tn))+" "+qf(Ug.internal.getHeight(Tn))+" re"),Qn.push("f"),Qn.push("BMC"),Qn.push("q"),Qn.push("0 0 1 rg"),Qn.push("/"+Dn+" "+qf(Gn.fontSize)+" Tf "+Hn),Qn.push("BT"),Qn.push(Gn.text),Qn.push("ET"),Qn.push("Q"),Qn.push("EMC"),Un.stream=Qn.join("\n"),Un},YesNormal:function YesNormal(Tn){var Un=new Jf(Tn),Qn=Hf.internal.getFont(Tn.fontName,Tn.fontStyle).id,Dn=Hf.__private__.encodeColorString(Tn.color),Hn=[],Gn=Ug.internal.getHeight(Tn),zn=Ug.internal.getWidth(Tn),Vn=og(Tn,Tn.caption);return Hn.push("1 g"),Hn.push("0 0 "+qf(zn)+" "+qf(Gn)+" re"),Hn.push("f"),Hn.push("q"),Hn.push("0 0 1 rg"),Hn.push("0 0 "+qf(zn-1)+" "+qf(Gn-1)+" re"),Hn.push("W"),Hn.push("n"),Hn.push("0 g"),Hn.push("BT"),Hn.push("/"+Qn+" "+qf(Vn.fontSize)+" Tf "+Dn),Hn.push(Vn.text),Hn.push("ET"),Hn.push("Q"),Un.stream=Hn.join("\n"),Un},OffPushDown:function OffPushDown(Tn){var Un=new Jf(Tn),Qn=[];return Qn.push("0.749023 g"),Qn.push("0 0 "+qf(Ug.internal.getWidth(Tn))+" "+qf(Ug.internal.getHeight(Tn))+" re"),Qn.push("f"),Un.stream=Qn.join("\n"),Un}},RadioButton:{Circle:{createAppearanceStream:function createAppearanceStream(Tn){var Un={D:{Off:Ug.RadioButton.Circle.OffPushDown},N:{}};return Un.N[Tn]=Ug.RadioButton.Circle.YesNormal,Un.D[Tn]=Ug.RadioButton.Circle.YesPushDown,Un},getCA:function getCA(){return"l"},YesNormal:function YesNormal(Tn){var Un=new Jf(Tn),Qn=[],Dn=Ug.internal.getWidth(Tn)<=Ug.internal.getHeight(Tn)?Ug.internal.getWidth(Tn)/4:Ug.internal.getHeight(Tn)/4;Dn=Number((.9*Dn).toFixed(5));var Hn=Ug.internal.Bezier_C,Gn=Number((Dn*Hn).toFixed(5));return Qn.push("q"),Qn.push("1 0 0 1 "+Wf(Ug.internal.getWidth(Tn)/2)+" "+Wf(Ug.internal.getHeight(Tn)/2)+" cm"),Qn.push(Dn+" 0 m"),Qn.push(Dn+" "+Gn+" "+Gn+" "+Dn+" 0 "+Dn+" c"),Qn.push("-"+Gn+" "+Dn+" -"+Dn+" "+Gn+" -"+Dn+" 0 c"),Qn.push("-"+Dn+" -"+Gn+" -"+Gn+" -"+Dn+" 0 -"+Dn+" c"),Qn.push(Gn+" -"+Dn+" "+Dn+" -"+Gn+" "+Dn+" 0 c"),Qn.push("f"),Qn.push("Q"),Un.stream=Qn.join("\n"),Un},YesPushDown:function YesPushDown(Tn){var Un=new Jf(Tn),Qn=[],Dn=Ug.internal.getWidth(Tn)<=Ug.internal.getHeight(Tn)?Ug.internal.getWidth(Tn)/4:Ug.internal.getHeight(Tn)/4,Hn=(Dn=Number((.9*Dn).toFixed(5)),Number((2*Dn).toFixed(5))),Gn=Number((Hn*Ug.internal.Bezier_C).toFixed(5)),zn=Number((Dn*Ug.internal.Bezier_C).toFixed(5));return Qn.push("0.749023 g"),Qn.push("q"),Qn.push("1 0 0 1 "+Wf(Ug.internal.getWidth(Tn)/2)+" "+Wf(Ug.internal.getHeight(Tn)/2)+" cm"),Qn.push(Hn+" 0 m"),Qn.push(Hn+" "+Gn+" "+Gn+" "+Hn+" 0 "+Hn+" c"),Qn.push("-"+Gn+" "+Hn+" -"+Hn+" "+Gn+" -"+Hn+" 0 c"),Qn.push("-"+Hn+" -"+Gn+" -"+Gn+" -"+Hn+" 0 -"+Hn+" c"),Qn.push(Gn+" -"+Hn+" "+Hn+" -"+Gn+" "+Hn+" 0 c"),Qn.push("f"),Qn.push("Q"),Qn.push("0 g"),Qn.push("q"),Qn.push("1 0 0 1 "+Wf(Ug.internal.getWidth(Tn)/2)+" "+Wf(Ug.internal.getHeight(Tn)/2)+" cm"),Qn.push(Dn+" 0 m"),Qn.push(Dn+" "+zn+" "+zn+" "+Dn+" 0 "+Dn+" c"),Qn.push("-"+zn+" "+Dn+" -"+Dn+" "+zn+" -"+Dn+" 0 c"),Qn.push("-"+Dn+" -"+zn+" -"+zn+" -"+Dn+" 0 -"+Dn+" c"),Qn.push(zn+" -"+Dn+" "+Dn+" -"+zn+" "+Dn+" 0 c"),Qn.push("f"),Qn.push("Q"),Un.stream=Qn.join("\n"),Un},OffPushDown:function OffPushDown(Tn){var Un=new Jf(Tn),Qn=[],Dn=Ug.internal.getWidth(Tn)<=Ug.internal.getHeight(Tn)?Ug.internal.getWidth(Tn)/4:Ug.internal.getHeight(Tn)/4;Dn=Number((.9*Dn).toFixed(5));var Hn=Number((2*Dn).toFixed(5)),Gn=Number((Hn*Ug.internal.Bezier_C).toFixed(5));return Qn.push("0.749023 g"),Qn.push("q"),Qn.push("1 0 0 1 "+Wf(Ug.internal.getWidth(Tn)/2)+" "+Wf(Ug.internal.getHeight(Tn)/2)+" cm"),Qn.push(Hn+" 0 m"),Qn.push(Hn+" "+Gn+" "+Gn+" "+Hn+" 0 "+Hn+" c"),Qn.push("-"+Gn+" "+Hn+" -"+Hn+" "+Gn+" -"+Hn+" 0 c"),Qn.push("-"+Hn+" -"+Gn+" -"+Gn+" -"+Hn+" 0 -"+Hn+" c"),Qn.push(Gn+" -"+Hn+" "+Hn+" -"+Gn+" "+Hn+" 0 c"),Qn.push("f"),Qn.push("Q"),Un.stream=Qn.join("\n"),Un}},Cross:{createAppearanceStream:function createAppearanceStream(Tn){var Un={D:{Off:Ug.RadioButton.Cross.OffPushDown},N:{}};return Un.N[Tn]=Ug.RadioButton.Cross.YesNormal,Un.D[Tn]=Ug.RadioButton.Cross.YesPushDown,Un},getCA:function getCA(){return"8"},YesNormal:function YesNormal(Tn){var Un=new Jf(Tn),Qn=[],Dn=Ug.internal.calculateCross(Tn);return Qn.push("q"),Qn.push("1 1 "+qf(Ug.internal.getWidth(Tn)-2)+" "+qf(Ug.internal.getHeight(Tn)-2)+" re"),Qn.push("W"),Qn.push("n"),Qn.push(qf(Dn.x1.x)+" "+qf(Dn.x1.y)+" m"),Qn.push(qf(Dn.x2.x)+" "+qf(Dn.x2.y)+" l"),Qn.push(qf(Dn.x4.x)+" "+qf(Dn.x4.y)+" m"),Qn.push(qf(Dn.x3.x)+" "+qf(Dn.x3.y)+" l"),Qn.push("s"),Qn.push("Q"),Un.stream=Qn.join("\n"),Un},YesPushDown:function YesPushDown(Tn){var Un=new Jf(Tn),Qn=Ug.internal.calculateCross(Tn),Dn=[];return Dn.push("0.749023 g"),Dn.push("0 0 "+qf(Ug.internal.getWidth(Tn))+" "+qf(Ug.internal.getHeight(Tn))+" re"),Dn.push("f"),Dn.push("q"),Dn.push("1 1 "+qf(Ug.internal.getWidth(Tn)-2)+" "+qf(Ug.internal.getHeight(Tn)-2)+" re"),Dn.push("W"),Dn.push("n"),Dn.push(qf(Qn.x1.x)+" "+qf(Qn.x1.y)+" m"),Dn.push(qf(Qn.x2.x)+" "+qf(Qn.x2.y)+" l"),Dn.push(qf(Qn.x4.x)+" "+qf(Qn.x4.y)+" m"),Dn.push(qf(Qn.x3.x)+" "+qf(Qn.x3.y)+" l"),Dn.push("s"),Dn.push("Q"),Un.stream=Dn.join("\n"),Un},OffPushDown:function OffPushDown(Tn){var Un=new Jf(Tn),Qn=[];return Qn.push("0.749023 g"),Qn.push("0 0 "+qf(Ug.internal.getWidth(Tn))+" "+qf(Ug.internal.getHeight(Tn))+" re"),Qn.push("f"),Un.stream=Qn.join("\n"),Un}}},createDefaultAppearanceStream:function createDefaultAppearanceStream(Tn){var Un=Hf.internal.getFont(Tn.fontName,Tn.fontStyle).id,Qn=Hf.__private__.encodeColorString(Tn.color);return"/"+Un+" "+Tn.fontSize+" Tf "+Qn}};Ug.internal={Bezier_C:.551915024494,calculateCross:function calculateCross(Tn){var Un=Ug.internal.getWidth(Tn),Qn=Ug.internal.getHeight(Tn),Dn=Math.min(Un,Qn);return{x1:{x:(Un-Dn)/2,y:(Qn-Dn)/2+Dn},x2:{x:(Un-Dn)/2+Dn,y:(Qn-Dn)/2},x3:{x:(Un-Dn)/2,y:(Qn-Dn)/2},x4:{x:(Un-Dn)/2+Dn,y:(Qn-Dn)/2+Dn}}}},Ug.internal.getWidth=function(Tn){var Un=0;return"object"==_typeof(Tn)&&(Un=Yf(Tn.Rect[2])),Un},Ug.internal.getHeight=function(Tn){var Un=0;return"object"==_typeof(Tn)&&(Un=Yf(Tn.Rect[3])),Un};var Ig=Gf.addField=function(Tn){if(gg.call(this),!(Tn instanceof wg))throw new Error("Invalid argument passed to jsPDF.addField.");return ug.call(this,Tn),Tn.page=Hf.internal.getCurrentPageInfo().pageNumber,this};Gf.AcroFormChoiceField=xg,Gf.AcroFormListBox=kg,Gf.AcroFormComboBox=Sg,Gf.AcroFormEditBox=Cg,Gf.AcroFormButton=Bg,Gf.AcroFormPushButton=Eg,Gf.AcroFormRadioButton=Ng,Gf.AcroFormCheckBox=Tg,Gf.AcroFormTextField=Pg,Gf.AcroFormPasswordField=Fg,Gf.AcroFormAppearance=Ug,Gf.AcroForm={ChoiceField:xg,ListBox:kg,ComboBox:Sg,EditBox:Cg,Button:Bg,PushButton:Eg,RadioButton:Ng,CheckBox:Tg,TextField:Pg,PasswordField:Fg,Appearance:Ug},g.AcroForm={ChoiceField:xg,ListBox:kg,ComboBox:Sg,EditBox:Cg,Button:Bg,PushButton:Eg,RadioButton:Ng,CheckBox:Tg,TextField:Pg,PasswordField:Fg,Appearance:Ug},function(Tn){Tn.__addimage__={};var Un="UNKNOWN",Qn={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]]},Dn=Tn.__addimage__.getImageFileTypeByImageData=function(Tn,Dn){var Hn,Gn;Dn=Dn||Un;var zn,Vn,Kn,Wn=Un;if(sr(Tn))for(Kn in Qn)for(zn=Qn[Kn],Hn=0;Hn<zn.length;Hn+=1){for(Vn=!0,Gn=0;Gn<zn[Hn].length;Gn+=1)if(void 0!==zn[Hn][Gn]&&zn[Hn][Gn]!==Tn[Gn]){Vn=!1;break}if(!0===Vn){Wn=Kn;break}}else for(Kn in Qn)for(zn=Qn[Kn],Hn=0;Hn<zn.length;Hn+=1){for(Vn=!0,Gn=0;Gn<zn[Hn].length;Gn+=1)if(void 0!==zn[Hn][Gn]&&zn[Hn][Gn]!==Tn.charCodeAt(Gn)){Vn=!1;break}if(!0===Vn){Wn=Kn;break}}return Wn===Un&&Dn!==Un&&(Wn=Dn),Wn},Hn=function i(Tn){for(var Un=this.internal.write,Qn=this.internal.putStream,Dn=(0,this.internal.getFilters)();-1!==Dn.indexOf("FlateEncode");)Dn.splice(Dn.indexOf("FlateEncode"),1);Tn.objectId=this.internal.newObject();var Hn=[];if(Hn.push({key:"Type",value:"/XObject"}),Hn.push({key:"Subtype",value:"/Image"}),Hn.push({key:"Width",value:Tn.width}),Hn.push({key:"Height",value:Tn.height}),Tn.colorSpace===tr.INDEXED?Hn.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Tn.palette.length/3-1)+" "+("sMask"in Tn&&void 0!==Tn.sMask?Tn.objectId+2:Tn.objectId+1)+" 0 R]"}):(Hn.push({key:"ColorSpace",value:"/"+Tn.colorSpace}),Tn.colorSpace===tr.DEVICE_CMYK&&Hn.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Hn.push({key:"BitsPerComponent",value:Tn.bitsPerComponent}),"decodeParameters"in Tn&&void 0!==Tn.decodeParameters&&Hn.push({key:"DecodeParms",value:"<<"+Tn.decodeParameters+">>"}),"transparency"in Tn&&Array.isArray(Tn.transparency)){for(var Gn="",zn=0,Vn=Tn.transparency.length;zn<Vn;zn++)Gn+=Tn.transparency[zn]+" "+Tn.transparency[zn]+" ";Hn.push({key:"Mask",value:"["+Gn+"]"})}void 0!==Tn.sMask&&Hn.push({key:"SMask",value:Tn.objectId+1+" 0 R"});var Kn=void 0!==Tn.filter?["/"+Tn.filter]:void 0;if(Qn({data:Tn.data,additionalKeyValues:Hn,alreadyAppliedFilters:Kn}),Un("endobj"),"sMask"in Tn&&void 0!==Tn.sMask){var Wn="/Predictor "+Tn.predictor+" /Colors 1 /BitsPerComponent "+Tn.bitsPerComponent+" /Columns "+Tn.width,Xn={width:Tn.width,height:Tn.height,colorSpace:"DeviceGray",bitsPerComponent:Tn.bitsPerComponent,decodeParameters:Wn,data:Tn.sMask};"filter"in Tn&&(Xn.filter=Tn.filter),i.call(this,Xn)}Tn.colorSpace===tr.INDEXED&&(this.internal.newObject(),Qn({data:cr(new Uint8Array(Tn.palette))}),Un("endobj"))},Gn=function a(){var Tn=this.internal.collections.addImage_images;for(var Un in Tn)Hn.call(this,Tn[Un])},zn=function u(){var Tn,Un=this.internal.collections.addImage_images,Qn=this.internal.write;for(var Dn in Un)Qn("/I"+(Tn=Un[Dn]).index,Tn.objectId,"0","R")},Vn=function c(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Gn),this.internal.events.subscribe("putXobjectDict",zn))},Kn=function h(){var Tn=this.internal.collections.addImage_images;return Vn.call(this),Tn},Wn=function l(){return Object.keys(this.internal.collections.addImage_images).length},Xn=function f(Un){return"function"==typeof Tn["process"+Un.toUpperCase()]},Yn=function d(Tn){return"object"==_typeof(Tn)&&1===Tn.nodeType},Jn=function p(Un,Qn){if("IMG"===Un.nodeName&&Un.hasAttribute("src")){var Dn=""+Un.getAttribute("src");if(0===Dn.indexOf("data:image/"))return Of(unescape(Dn).split("base64,").pop());var Hn=Tn.loadFile(Dn,!0);if(void 0!==Hn)return Hn}if("CANVAS"===Un.nodeName){var Gn;switch(Qn){case"PNG":Gn="image/png";break;case"WEBP":Gn="image/webp";break;case"JPEG":case"JPG":default:Gn="image/jpeg"}return Of(Un.toDataURL(Gn,1).split("base64,").pop())}},$n=function g(Tn){var Un=this.internal.collections.addImage_images;if(Un)for(var Qn in Un)if(Tn===Un[Qn].alias)return Un[Qn]},Zn=function m(Tn,Un,Qn){return Tn||Un||(Tn=-96,Un=-96),Tn<0&&(Tn=-1*Qn.width*72/Tn/this.internal.scaleFactor),Un<0&&(Un=-1*Qn.height*72/Un/this.internal.scaleFactor),0===Tn&&(Tn=Un*Qn.width/Qn.height),0===Un&&(Un=Tn*Qn.height/Qn.width),[Tn,Un]},er=function v(Tn,Un,Qn,Dn,Hn,Gn){var zn=Zn.call(this,Qn,Dn,Hn),Vn=this.internal.getCoordinateString,Wn=this.internal.getVerticalCoordinateString,Xn=Kn.call(this);if(Qn=zn[0],Dn=zn[1],Xn[Hn.index]=Hn,Gn){Gn*=Math.PI/180;var Yn=Math.cos(Gn),Jn=Math.sin(Gn),$n=function d(Tn){return Tn.toFixed(4)},er=[$n(Yn),$n(Jn),$n(-1*Jn),$n(Yn),0,0,"cm"]}this.internal.write("q"),Gn?(this.internal.write([1,"0","0",1,Vn(Tn),Wn(Un+Dn),"cm"].join(" ")),this.internal.write(er.join(" ")),this.internal.write([Vn(Qn),"0","0",Vn(Dn),"0","0","cm"].join(" "))):this.internal.write([Vn(Qn),"0","0",Vn(Dn),Vn(Tn),Wn(Un+Dn),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Hn.index+" Do"),this.internal.write("Q")},tr=Tn.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"};Tn.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 nr=Tn.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},rr=Tn.__addimage__.sHashCode=function(Tn){var Un,Qn,Dn=0;if("string"==typeof Tn)for(Qn=Tn.length,Un=0;Un<Qn;Un++)Dn=(Dn<<5)-Dn+Tn.charCodeAt(Un),Dn|=0;else if(sr(Tn))for(Qn=Tn.byteLength/2,Un=0;Un<Qn;Un++)Dn=(Dn<<5)-Dn+Tn[Un],Dn|=0;return Dn},ir=Tn.__addimage__.validateStringAsBase64=function(Tn){(Tn=Tn||"").toString().trim();var Un=!0;return 0===Tn.length&&(Un=!1),Tn.length%4!=0&&(Un=!1),!1===/^[A-Za-z0-9+/]+$/.test(Tn.substr(0,Tn.length-2))&&(Un=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Tn.substr(-2))&&(Un=!1),Un},ar=Tn.__addimage__.extractImageFromDataUrl=function(Tn){var Un=(Tn=Tn||"").split("base64,"),Qn=null;if(2===Un.length){var Dn=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(Un[0]);Array.isArray(Dn)&&(Qn={mimeType:Dn[1],charset:Dn[2],data:Un[1]})}return Qn},or=Tn.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};Tn.__addimage__.isArrayBuffer=function(Tn){return or()&&Tn instanceof ArrayBuffer};var sr=Tn.__addimage__.isArrayBufferView=function(Tn){return or()&&"undefined"!=typeof Uint32Array&&(Tn instanceof Int8Array||Tn instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&Tn instanceof Uint8ClampedArray||Tn instanceof Int16Array||Tn instanceof Uint16Array||Tn instanceof Int32Array||Tn instanceof Uint32Array||Tn instanceof Float32Array||Tn instanceof Float64Array)},lr=Tn.__addimage__.binaryStringToUint8Array=function(Tn){for(var Un=Tn.length,Qn=new Uint8Array(Un),Dn=0;Dn<Un;Dn++)Qn[Dn]=Tn.charCodeAt(Dn);return Qn},cr=Tn.__addimage__.arrayBufferToBinaryString=function(Tn){try{return Of(Df(String.fromCharCode.apply(null,Tn)))}catch(Un){if("undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.reduce)return new Uint8Array(Tn).reduce((function(Tn,Un){return Tn.push(String.fromCharCode(Un)),Tn}),[]).join("")}};Tn.addImage=function(){var Tn,Qn,Dn,Hn,Gn,zn,Kn,Wn,Xn;if("number"==typeof arguments[1]?(Qn=Un,Dn=arguments[1],Hn=arguments[2],Gn=arguments[3],zn=arguments[4],Kn=arguments[5],Wn=arguments[6],Xn=arguments[7]):(Qn=arguments[1],Dn=arguments[2],Hn=arguments[3],Gn=arguments[4],zn=arguments[5],Kn=arguments[6],Wn=arguments[7],Xn=arguments[8]),"object"==_typeof(Tn=arguments[0])&&!Yn(Tn)&&"imageData"in Tn){var Jn=Tn;Tn=Jn.imageData,Qn=Jn.format||Qn||Un,Dn=Jn.x||Dn||0,Hn=Jn.y||Hn||0,Gn=Jn.w||Jn.width||Gn,zn=Jn.h||Jn.height||zn,Kn=Jn.alias||Kn,Wn=Jn.compression||Wn,Xn=Jn.rotation||Jn.angle||Xn}var $n=this.internal.getFilters();if(void 0===Wn&&-1!==$n.indexOf("FlateEncode")&&(Wn="SLOW"),isNaN(Dn)||isNaN(Hn))throw new Error("Invalid coordinates passed to jsPDF.addImage");Vn.call(this);var Zn=ur.call(this,Tn,Qn,Kn,Wn);return er.call(this,Dn,Hn,Gn,zn,Zn,Xn),this};var ur=function P(Qn,Hn,Gn,zn){var Vn,Kn,Zn;if("string"==typeof Qn&&Dn(Qn)===Un){Qn=unescape(Qn);var er=dr(Qn,!1);(""!==er||void 0!==(er=Tn.loadFile(Qn,!0)))&&(Qn=er)}if(Yn(Qn)&&(Qn=Jn(Qn,Hn)),Hn=Dn(Qn,Hn),!Xn(Hn))throw new Error("addImage does not support files of type '"+Hn+"', please ensure that a plugin for '"+Hn+"' support is added.");if((null==(Zn=Gn)||0===Zn.length)&&(Gn=function(Tn){return"string"==typeof Tn||sr(Tn)?rr(Tn):null}(Qn)),(Vn=$n.call(this,Gn))||(or()&&(Qn instanceof Uint8Array||(Kn=Qn,Qn=lr(Qn))),Vn=this["process"+Hn.toUpperCase()](Qn,Wn.call(this),Gn,function(Un){return Un&&"string"==typeof Un&&(Un=Un.toUpperCase()),Un in Tn.image_compression?Un:nr.NONE}(zn),Kn)),!Vn)throw new Error("An unknown error occurred whilst processing the image.");return Vn},dr=Tn.__addimage__.convertBase64ToBinaryString=function(Tn,Un){var Qn;Un="boolean"!=typeof Un||Un;var Dn,Hn="";if("string"==typeof Tn){Dn=null!==(Qn=ar(Tn))?Qn.data:Tn;try{Hn=Of(Dn)}catch(Tn){if(Un)throw ir(Dn)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Tn.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Hn};Tn.getImageProperties=function(Qn){var Hn,Gn,zn="";if(Yn(Qn)&&(Qn=Jn(Qn)),"string"==typeof Qn&&Dn(Qn)===Un&&(""===(zn=dr(Qn,!1))&&(zn=Tn.loadFile(Qn)||""),Qn=zn),Gn=Dn(Qn),!Xn(Gn))throw new Error("addImage does not support files of type '"+Gn+"', please ensure that a plugin for '"+Gn+"' support is added.");if(!or()||Qn instanceof Uint8Array||(Qn=lr(Qn)),!(Hn=this["process"+Gn.toUpperCase()](Qn)))throw new Error("An unknown error occurred whilst processing the image");return Hn.fileType=Gn,Hn}}(g.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){var Un=function e(Tn){if(void 0!==Tn&&""!=Tn)return!0};g.API.events.push(["addPage",function(Tn){this.internal.getPageInfo(Tn.pageNumber).pageContext.annotations=[]}]),Tn.events.push(["putPage",function(Tn){for(var Qn,Dn,Hn,Gn=this.internal.getCoordinateString,zn=this.internal.getVerticalCoordinateString,Vn=this.internal.getPageInfoByObjId(Tn.objId),Kn=Tn.pageContext.annotations,Wn=!1,Xn=0;Xn<Kn.length&&!Wn;Xn++)switch((Qn=Kn[Xn]).type){case"link":(Un(Qn.options.url)||Un(Qn.options.pageNumber))&&(Wn=!0);break;case"reference":case"text":case"freetext":Wn=!0}if(0!=Wn){this.internal.write("/Annots [");for(var Yn=0;Yn<Kn.length;Yn++)switch((Qn=Kn[Yn]).type){case"reference":this.internal.write(" "+Qn.object.objId+" 0 R ");break;case"text":var Jn=this.internal.newAdditionalObject(),$n=this.internal.newAdditionalObject(),Zn=Qn.title||"Note";Hn="<</Type /Annot /Subtype /Text "+(Dn="/Rect ["+Gn(Qn.bounds.x)+" "+zn(Qn.bounds.y+Qn.bounds.h)+" "+Gn(Qn.bounds.x+Qn.bounds.w)+" "+zn(Qn.bounds.y)+"] ")+"/Contents ("+Qn.contents+")",Hn+=" /Popup "+$n.objId+" 0 R",Hn+=" /P "+Vn.objId+" 0 R",Hn+=" /T ("+Zn+") >>",Jn.content=Hn;var er=Jn.objId+" 0 R";Hn="<</Type /Annot /Subtype /Popup "+(Dn="/Rect ["+Gn(Qn.bounds.x+30)+" "+zn(Qn.bounds.y+Qn.bounds.h)+" "+Gn(Qn.bounds.x+Qn.bounds.w+30)+" "+zn(Qn.bounds.y)+"] ")+" /Parent "+er,Qn.open&&(Hn+=" /Open true"),Hn+=" >>",$n.content=Hn,this.internal.write(Jn.objId,"0 R",$n.objId,"0 R");break;case"freetext":Dn="/Rect ["+Gn(Qn.bounds.x)+" "+zn(Qn.bounds.y)+" "+Gn(Qn.bounds.x+Qn.bounds.w)+" "+zn(Qn.bounds.y+Qn.bounds.h)+"] ";var tr=Qn.color||"#000000";Hn="<</Type /Annot /Subtype /FreeText "+Dn+"/Contents ("+Qn.contents+")",Hn+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+tr+")",Hn+=" /Border [0 0 0]",Hn+=" >>",this.internal.write(Hn);break;case"link":if(Qn.options.name){var nr=this.annotations._nameMap[Qn.options.name];Qn.options.pageNumber=nr.page,Qn.options.top=nr.y}else Qn.options.top||(Qn.options.top=0);if(Dn="/Rect ["+Gn(Qn.x)+" "+zn(Qn.y)+" "+Gn(Qn.x+Qn.w)+" "+zn(Qn.y+Qn.h)+"] ",Hn="",Qn.options.url)Hn="<</Type /Annot /Subtype /Link "+Dn+"/Border [0 0 0] /A <</S /URI /URI ("+Qn.options.url+") >>";else if(Qn.options.pageNumber)switch(Hn="<</Type /Annot /Subtype /Link "+Dn+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Qn.options.pageNumber).objId+" 0 R",Qn.options.magFactor=Qn.options.magFactor||"XYZ",Qn.options.magFactor){case"Fit":Hn+=" /Fit]";break;case"FitH":Hn+=" /FitH "+Qn.options.top+"]";break;case"FitV":Qn.options.left=Qn.options.left||0,Hn+=" /FitV "+Qn.options.left+"]";break;case"XYZ":default:var rr=zn(Qn.options.top);Qn.options.left=Qn.options.left||0,void 0===Qn.options.zoom&&(Qn.options.zoom=0),Hn+=" /XYZ "+Qn.options.left+" "+rr+" "+Qn.options.zoom+"]"}""!=Hn&&(Hn+=" >>",this.internal.write(Hn))}this.internal.write("]")}}]),Tn.createAnnotation=function(Tn){var Un=this.internal.getCurrentPageInfo();switch(Tn.type){case"link":this.link(Tn.bounds.x,Tn.bounds.y,Tn.bounds.w,Tn.bounds.h,Tn);break;case"text":case"freetext":Un.pageContext.annotations.push(Tn)}},Tn.link=function(Tn,Un,Qn,Dn,Hn){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:Tn,y:Un,w:Qn,h:Dn,options:Hn,type:"link"})},Tn.textWithLink=function(Tn,Un,Qn,Dn){var Hn=this.getTextWidth(Tn),Gn=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(Tn,Un,Qn,Dn),Qn+=.2*Gn,this.link(Un,Qn-Gn,Hn,Gn,Dn),Hn},Tn.getTextWidth=function(Tn){var Un=this.internal.getFontSize();return this.getStringUnitWidth(Tn)*Un/this.internal.scaleFactor}}(g.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){var Un={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]},Qn={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}},Dn={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Hn=[1570,1571,1573,1575];Tn.__arabicParser__={};var Gn=Tn.__arabicParser__.isInArabicSubstitutionA=function(Tn){return void 0!==Un[Tn.charCodeAt(0)]},zn=Tn.__arabicParser__.isArabicLetter=function(Tn){return"string"==typeof Tn&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Tn)},Vn=Tn.__arabicParser__.isArabicEndLetter=function(Tn){return zn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length<=2},Kn=Tn.__arabicParser__.isArabicAlfLetter=function(Tn){return zn(Tn)&&Hn.indexOf(Tn.charCodeAt(0))>=0};Tn.__arabicParser__.arabicLetterHasIsolatedForm=function(Tn){return zn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length>=1};var Wn=Tn.__arabicParser__.arabicLetterHasFinalForm=function(Tn){return zn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length>=2};Tn.__arabicParser__.arabicLetterHasInitialForm=function(Tn){return zn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length>=3};var Xn=Tn.__arabicParser__.arabicLetterHasMedialForm=function(Tn){return zn(Tn)&&Gn(Tn)&&4==Un[Tn.charCodeAt(0)].length},Yn=Tn.__arabicParser__.resolveLigatures=function(Tn){var Un=0,Dn=Qn,Hn="",Gn=0;for(Un=0;Un<Tn.length;Un+=1)void 0!==Dn[Tn.charCodeAt(Un)]?(Gn++,"number"==typeof(Dn=Dn[Tn.charCodeAt(Un)])&&(Hn+=String.fromCharCode(Dn),Dn=Qn,Gn=0),Un===Tn.length-1&&(Dn=Qn,Hn+=Tn.charAt(Un-(Gn-1)),Un-=Gn-1,Gn=0)):(Dn=Qn,Hn+=Tn.charAt(Un-Gn),Un-=Gn,Gn=0);return Hn};Tn.__arabicParser__.isArabicDiacritic=function(Tn){return void 0!==Tn&&void 0!==Dn[Tn.charCodeAt(0)]};var Jn=Tn.__arabicParser__.getCorrectForm=function(Tn,Un,Qn){return zn(Tn)?!1===Gn(Tn)?-1:!Wn(Tn)||!zn(Un)&&!zn(Qn)||!zn(Qn)&&Vn(Un)||Vn(Tn)&&!zn(Un)||Vn(Tn)&&Kn(Un)||Vn(Tn)&&Vn(Un)?0:Xn(Tn)&&zn(Un)&&!Vn(Un)&&zn(Qn)&&Wn(Qn)?3:Vn(Tn)||!zn(Qn)?1:2:-1},$n=function d(Tn){var Qn=0,Dn=0,Hn=0,Gn="",Vn="",Kn="",Wn=(Tn=Tn||"").split("\\s+"),Xn=[];for(Qn=0;Qn<Wn.length;Qn+=1){for(Xn.push(""),Dn=0;Dn<Wn[Qn].length;Dn+=1)Gn=Wn[Qn][Dn],Vn=Wn[Qn][Dn-1],Kn=Wn[Qn][Dn+1],zn(Gn)?(Hn=Jn(Gn,Vn,Kn),Xn[Qn]+=-1!==Hn?String.fromCharCode(Un[Gn.charCodeAt(0)][Hn]):Gn):Xn[Qn]+=Gn;Xn[Qn]=Yn(Xn[Qn])}return Xn.join(" ")},Zn=Tn.__arabicParser__.processArabic=Tn.processArabic=function(){var Tn,Un="string"==typeof arguments[0]?arguments[0]:arguments[0].text,Qn=[];if(Array.isArray(Un)){var Dn=0;for(Qn=[],Dn=0;Dn<Un.length;Dn+=1)Array.isArray(Un[Dn])?Qn.push([$n(Un[Dn][0]),Un[Dn][1],Un[Dn][2]]):Qn.push([$n(Un[Dn])]);Tn=Qn}else Tn=$n(Un);return"string"==typeof arguments[0]?Tn:(arguments[0].text=Tn,arguments[0])};Tn.events.push(["preProcessText",Zn])}(g.API),g.API.autoPrint=function(Tn){var Un;switch((Tn=Tn||{}).variant=Tn.variant||"non-conform",Tn.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){Un=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 "+Un+" 0 R")}))}return this},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){var Un=function e(){var Tn=void 0;Object.defineProperty(this,"pdf",{get:function get(){return Tn},set:function set(Un){Tn=Un}});var e=150;Object.defineProperty(this,"width",{get:function get(){return e},set:function set(Tn){e=isNaN(Tn)||!1===Number.isInteger(Tn)||Tn<0?150:Tn,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var Un=300;Object.defineProperty(this,"height",{get:function get(){return Un},set:function set(Tn){Un=isNaN(Tn)||!1===Number.isInteger(Tn)||Tn<0?300:Tn,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Un+1)}});var Qn=[];Object.defineProperty(this,"childNodes",{get:function get(){return Qn},set:function set(Tn){Qn=Tn}});var Dn={};Object.defineProperty(this,"style",{get:function get(){return Dn},set:function set(Tn){Dn=Tn}}),Object.defineProperty(this,"parentNode",{})};Un.prototype.getContext=function(Tn,Un){var Qn;if("2d"!==(Tn=Tn||"2d"))return null;for(Qn in Un)this.pdf.context2d.hasOwnProperty(Qn)&&(this.pdf.context2d[Qn]=Un[Qn]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Un.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Tn.events.push(["initialized",function(){this.canvas=new Un,this.canvas.pdf=this}])}(g.API),
|
||
/**
|
||
* @license
|
||
* ====================================================================
|
||
* Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com
|
||
* 2013 Eduardo Menezes de Morais, eduardo.morais@usp.br
|
||
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
||
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
||
* 2014 James Hall, james@parall.ax
|
||
* 2014 Diego Casorran, https://github.com/diegocr
|
||
*
|
||
* 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(Tn){var Un={left:0,top:0,bottom:0,right:0},Qn=!1,Dn=function r(){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({},Un),this.internal.__cell__.margins.width=this.getPageWidth(),Hn.call(this))},Hn=function i(){this.internal.__cell__.lastCell=new Gn,this.internal.__cell__.pages=1},Gn=function a(){var Tn=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return Tn},set:function set(Un){Tn=Un}});var Un=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return Un},set:function set(Tn){Un=Tn}});var Qn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function get(){return Qn},set:function set(Tn){Qn=Tn}});var Dn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function get(){return Dn},set:function set(Tn){Dn=Tn}});var Hn=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function get(){return Hn},set:function set(Tn){Hn=Tn}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function get(){return a},set:function set(Tn){a=Tn}});var Gn=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function get(){return Gn},set:function set(Tn){Gn=Tn}}),this};Gn.prototype.clone=function(){return new Gn(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Gn.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Tn.setHeaderFunction=function(Tn){return Dn.call(this),this.internal.__cell__.headerFunction="function"==typeof Tn?Tn:void 0,this},Tn.getTextDimensions=function(Tn,Un){Dn.call(this);var Qn=(Un=Un||{}).fontSize||this.getFontSize(),Hn=Un.font||this.getFont(),Gn=Un.scaleFactor||this.internal.scaleFactor,zn=0,Vn=0,Kn=0;if(!Array.isArray(Tn)&&"string"!=typeof Tn){if("number"!=typeof Tn)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Tn=String(Tn)}var Wn=Un.maxWidth;Wn>0?"string"==typeof Tn?Tn=this.splitTextToSize(Tn,Wn):"[object Array]"===Object.prototype.toString.call(Tn)&&(Tn=this.splitTextToSize(Tn.join(" "),Wn)):Tn=Array.isArray(Tn)?Tn:[Tn];for(var Xn=0;Xn<Tn.length;Xn++)zn<(Kn=this.getStringUnitWidth(Tn[Xn],{font:Hn})*Qn)&&(zn=Kn);return 0!==zn&&(Vn=Tn.length),{w:zn/=Gn,h:Math.max((Vn*Qn*this.getLineHeightFactor()-Qn*(this.getLineHeightFactor()-1))/Gn,0)}},Tn.cellAddPage=function(){Dn.call(this),this.addPage();var Tn=this.internal.__cell__.margins||Un;return this.internal.__cell__.lastCell=new Gn(Tn.left,Tn.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var zn=Tn.cell=function(){var Tn;Tn=arguments[0]instanceof Gn?arguments[0]:new Gn(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Dn.call(this);var Hn=this.internal.__cell__.lastCell,zn=this.internal.__cell__.padding,Vn=this.internal.__cell__.margins||Un,Kn=this.internal.__cell__.tableHeaderRow,Wn=this.internal.__cell__.printHeaders;return void 0!==Hn.lineNumber&&(Hn.lineNumber===Tn.lineNumber?(Tn.x=(Hn.x||0)+(Hn.width||0),Tn.y=Hn.y||0):Hn.y+Hn.height+Tn.height+Vn.bottom>this.getPageHeight()?(this.cellAddPage(),Tn.y=Vn.top,Wn&&Kn&&(this.printHeaderRow(Tn.lineNumber,!0),Tn.y+=Kn[0].height)):Tn.y=Hn.y+Hn.height||Tn.y),void 0!==Tn.text[0]&&(this.rect(Tn.x,Tn.y,Tn.width,Tn.height,!0===Qn?"FD":void 0),"right"===Tn.align?this.text(Tn.text,Tn.x+Tn.width-zn,Tn.y+zn,{align:"right",baseline:"top"}):"center"===Tn.align?this.text(Tn.text,Tn.x+Tn.width/2,Tn.y+zn,{align:"center",baseline:"top",maxWidth:Tn.width-zn-zn}):this.text(Tn.text,Tn.x+zn,Tn.y+zn,{align:"left",baseline:"top",maxWidth:Tn.width-zn-zn})),this.internal.__cell__.lastCell=Tn,this};Tn.table=function(Tn,Qn,Kn,Wn,Xn){if(Dn.call(this),!Kn)throw new Error("No data for PDF table.");var Yn,Jn,$n,Zn,er=[],tr=[],nr=[],rr={},ir={},ar=[],or=[],sr=(Xn=Xn||{}).autoSize||!1,lr=!1!==Xn.printHeaders,cr=Xn.css&&void 0!==Xn.css["font-size"]?16*Xn.css["font-size"]:Xn.fontSize||12,ur=Xn.margins||Object.assign({width:this.getPageWidth()},Un),dr="number"==typeof Xn.padding?Xn.padding:3,hr=Xn.headerBackgroundColor||"#c8c8c8";if(Hn.call(this),this.internal.__cell__.printHeaders=lr,this.internal.__cell__.margins=ur,this.internal.__cell__.table_font_size=cr,this.internal.__cell__.padding=dr,this.internal.__cell__.headerBackgroundColor=hr,this.setFontSize(cr),null==Wn)tr=er=Object.keys(Kn[0]),nr=er.map((function(){return"left"}));else if(Array.isArray(Wn)&&"object"==_typeof(Wn[0]))for(er=Wn.map((function(Tn){return Tn.name})),tr=Wn.map((function(Tn){return Tn.prompt||Tn.name||""})),nr=er.map((function(Tn){return Tn.align||"left"})),Yn=0;Yn<Wn.length;Yn+=1)ir[Wn[Yn].name]=Wn[Yn].width*(19.049976/25.4);else Array.isArray(Wn)&&"string"==typeof Wn[0]&&(tr=er=Wn,nr=er.map((function(){return"left"})));if(sr)for(Yn=0;Yn<er.length;Yn+=1){for(rr[Zn=er[Yn]]=Kn.map((function(Tn){return Tn[Zn]})),this.setFont(void 0,"bold"),ar.push(this.getTextDimensions(tr[Yn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Jn=rr[Zn],this.setFont(void 0,"normal"),$n=0;$n<Jn.length;$n+=1)ar.push(this.getTextDimensions(Jn[$n],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ir[Zn]=Math.max.apply(null,ar)+dr+dr,ar=[]}if(lr){var pr={};for(Yn=0;Yn<er.length;Yn+=1)pr[er[Yn]]={},pr[er[Yn]].text=tr[Yn],pr[er[Yn]].align=nr[Yn];var Ar=Vn.call(this,pr,ir);or=er.map((function(Un){return new Gn(Tn,Qn,ir[Un],Ar,pr[Un].text,void 0,pr[Un].align)})),this.setTableHeaderRow(or),this.printHeaderRow(1,!1)}var fr=Wn.reduce((function(Tn,Un){return Tn[Un.name]=Un.align,Tn}),{});for(Yn=0;Yn<Kn.length;Yn+=1){var gr=Vn.call(this,Kn[Yn],ir);for($n=0;$n<er.length;$n+=1)zn.call(this,new Gn(Tn,Qn,ir[er[$n]],gr,Kn[Yn][er[$n]],Yn+2,fr[er[$n]]))}return this.internal.__cell__.table_x=Tn,this.internal.__cell__.table_y=Qn,this};var Vn=function s(Tn,Un){var Qn=this.internal.__cell__.padding,Dn=this.internal.__cell__.table_font_size,Hn=this.internal.scaleFactor;return Object.keys(Tn).map((function(Un){return[Un,Tn[Un]]})).map((function(Tn){var Un=Tn[0],Qn=Tn[1];return"object"==_typeof(Qn)?[Un,Qn.text]:[Un,Qn]})).map((function(Tn){var Dn=Tn[0],Hn=Tn[1];return this.splitTextToSize(Hn,Un[Dn]-Qn-Qn)}),this).map((function(Tn){return this.getLineHeightFactor()*Tn.length*Dn/Hn+Qn+Qn}),this).reduce((function(Tn,Un){return Math.max(Tn,Un)}),0)};Tn.setTableHeaderRow=function(Tn){Dn.call(this),this.internal.__cell__.tableHeaderRow=Tn},Tn.printHeaderRow=function(Tn,Un){if(Dn.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Hn;if(Qn=!0,"function"==typeof this.internal.__cell__.headerFunction){var Vn=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Gn(Vn[0],Vn[1],Vn[2],Vn[3],void 0,-1)}this.setFont(void 0,"bold");for(var Kn=[],Wn=0;Wn<this.internal.__cell__.tableHeaderRow.length;Wn+=1)Hn=this.internal.__cell__.tableHeaderRow[Wn].clone(),Un&&(Hn.y=this.internal.__cell__.margins.top||0,Kn.push(Hn)),Hn.lineNumber=Tn,this.setFillColor(this.internal.__cell__.headerBackgroundColor),zn.call(this,Hn);Kn.length>0&&this.setTableHeaderRow(Kn),this.setFont(void 0,"normal"),Qn=!1}}(g.API),function(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn=function f(Tn){return Tn=Tn||{},this.isStrokeTransparent=Tn.isStrokeTransparent||!1,this.strokeOpacity=Tn.strokeOpacity||1,this.strokeStyle=Tn.strokeStyle||"#000000",this.fillStyle=Tn.fillStyle||"#000000",this.isFillTransparent=Tn.isFillTransparent||!1,this.fillOpacity=Tn.fillOpacity||1,this.font=Tn.font||"10px sans-serif",this.textBaseline=Tn.textBaseline||"alphabetic",this.textAlign=Tn.textAlign||"left",this.lineWidth=Tn.lineWidth||1,this.lineJoin=Tn.lineJoin||"miter",this.lineCap=Tn.lineCap||"butt",this.path=Tn.path||[],this.transform=void 0!==Tn.transform?Tn.transform.clone():new Kn,this.globalCompositeOperation=Tn.globalCompositeOperation||"normal",this.globalAlpha=Tn.globalAlpha||1,this.clip_path=Tn.clip_path||[],this.currentPoint=Tn.currentPoint||new zn,this.miterLimit=Tn.miterLimit||10,this.lastPoint=Tn.lastPoint||new zn,this.ignoreClearRect="boolean"!=typeof Tn.ignoreClearRect||Tn.ignoreClearRect,this};Tn.events.push(["initialized",function(){this.context2d=new Yn(this),Un=this.internal.f2,Qn=this.internal.getCoordinateString,Dn=this.internal.getVerticalCoordinateString,Hn=this.internal.getHorizontalCoordinate,Gn=this.internal.getVerticalCoordinate,zn=this.internal.Point,Vn=this.internal.Rectangle,Kn=this.internal.Matrix,Wn=new Xn}]);var Yn=function d(Tn){Object.defineProperty(this,"canvas",{get:function get(){return{parentNode:!1,style:!1}}});var Un=Tn;Object.defineProperty(this,"pdf",{get:function get(){return Un}});var Qn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function get(){return Qn},set:function set(Tn){Qn=Boolean(Tn)}});var Dn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function get(){return Dn},set:function set(Tn){Dn=Boolean(Tn)}});var Hn=0;Object.defineProperty(this,"posX",{get:function get(){return Hn},set:function set(Tn){isNaN(Tn)||(Hn=Tn)}});var Gn=0;Object.defineProperty(this,"posY",{get:function get(){return Gn},set:function set(Tn){isNaN(Tn)||(Gn=Tn)}});var zn=!1;Object.defineProperty(this,"autoPaging",{get:function get(){return zn},set:function set(Tn){zn=Boolean(Tn)}});var Vn=0;Object.defineProperty(this,"lastBreak",{get:function get(){return Vn},set:function set(Tn){Vn=Tn}});var Kn=[];Object.defineProperty(this,"pageBreaks",{get:function get(){return Kn},set:function set(Tn){Kn=Tn}}),Object.defineProperty(this,"ctx",{get:function get(){return Wn},set:function set(Tn){Tn instanceof Xn&&(Wn=Tn)}}),Object.defineProperty(this,"path",{get:function get(){return Wn.path},set:function set(Tn){Wn.path=Tn}});var Yn=[];Object.defineProperty(this,"ctxStack",{get:function get(){return Yn},set:function set(Tn){Yn=Tn}}),Object.defineProperty(this,"fillStyle",{get:function get(){return this.ctx.fillStyle},set:function set(Tn){var Un;Un=Jn(Tn),this.ctx.fillStyle=Un.style,this.ctx.isFillTransparent=0===Un.a,this.ctx.fillOpacity=Un.a,this.pdf.setFillColor(Un.r,Un.g,Un.b,{a:Un.a}),this.pdf.setTextColor(Un.r,Un.g,Un.b,{a:Un.a})}}),Object.defineProperty(this,"strokeStyle",{get:function get(){return this.ctx.strokeStyle},set:function set(Tn){var Un=Jn(Tn);this.ctx.strokeStyle=Un.style,this.ctx.isStrokeTransparent=0===Un.a,this.ctx.strokeOpacity=Un.a,0===Un.a?this.pdf.setDrawColor(255,255,255):(Un.a,this.pdf.setDrawColor(Un.r,Un.g,Un.b))}}),Object.defineProperty(this,"lineCap",{get:function get(){return this.ctx.lineCap},set:function set(Tn){-1!==["butt","round","square"].indexOf(Tn)&&(this.ctx.lineCap=Tn,this.pdf.setLineCap(Tn))}}),Object.defineProperty(this,"lineWidth",{get:function get(){return this.ctx.lineWidth},set:function set(Tn){isNaN(Tn)||(this.ctx.lineWidth=Tn,this.pdf.setLineWidth(Tn))}}),Object.defineProperty(this,"lineJoin",{get:function get(){return this.ctx.lineJoin},set:function set(Tn){-1!==["bevel","round","miter"].indexOf(Tn)&&(this.ctx.lineJoin=Tn,this.pdf.setLineJoin(Tn))}}),Object.defineProperty(this,"miterLimit",{get:function get(){return this.ctx.miterLimit},set:function set(Tn){isNaN(Tn)||(this.ctx.miterLimit=Tn,this.pdf.setMiterLimit(Tn))}}),Object.defineProperty(this,"textBaseline",{get:function get(){return this.ctx.textBaseline},set:function set(Tn){this.ctx.textBaseline=Tn}}),Object.defineProperty(this,"textAlign",{get:function get(){return this.ctx.textAlign},set:function set(Tn){-1!==["right","end","center","left","start"].indexOf(Tn)&&(this.ctx.textAlign=Tn)}}),Object.defineProperty(this,"font",{get:function get(){return this.ctx.font},set:function set(Tn){var Un;if(this.ctx.font=Tn,null!==(Un=/^\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(Tn))){var Qn=Un[1],Dn=(Un[2],Un[3]),Hn=Un[4],Gn=(Un[5],Un[6]),zn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Hn)[2];Hn="px"===zn?Math.floor(parseFloat(Hn)*this.pdf.internal.scaleFactor):"em"===zn?Math.floor(parseFloat(Hn)*this.pdf.getFontSize()):Math.floor(parseFloat(Hn)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Hn);var Vn="";("bold"===Dn||parseInt(Dn,10)>=700||"bold"===Qn)&&(Vn="bold"),"italic"===Qn&&(Vn+="italic"),0===Vn.length&&(Vn="normal");for(var Kn="",Wn=Gn.replace(/"|'/g,"").split(/\s*,\s*/),Xn={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"},Yn=0;Yn<Wn.length;Yn++){if(void 0!==this.pdf.internal.getFont(Wn[Yn],Vn,{noFallback:!0,disableWarning:!0})){Kn=Wn[Yn];break}if("bolditalic"===Vn&&void 0!==this.pdf.internal.getFont(Wn[Yn],"bold",{noFallback:!0,disableWarning:!0}))Kn=Wn[Yn],Vn="bold";else if(void 0!==this.pdf.internal.getFont(Wn[Yn],"normal",{noFallback:!0,disableWarning:!0})){Kn=Wn[Yn],Vn="normal";break}}if(""===Kn)for(var Jn=0;Jn<Wn.length;Jn++)if(Xn[Wn[Jn]]){Kn=Xn[Wn[Jn]];break}Kn=""===Kn?"Times":Kn,this.pdf.setFont(Kn,Vn)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function get(){return this.ctx.globalCompositeOperation},set:function set(Tn){this.ctx.globalCompositeOperation=Tn}}),Object.defineProperty(this,"globalAlpha",{get:function get(){return this.ctx.globalAlpha},set:function set(Tn){this.ctx.globalAlpha=Tn}}),Object.defineProperty(this,"ignoreClearRect",{get:function get(){return this.ctx.ignoreClearRect},set:function set(Tn){this.ctx.ignoreClearRect=Boolean(Tn)}})};Yn.prototype.fill=function(){ir.call(this,"fill",!1)},Yn.prototype.stroke=function(){ir.call(this,"stroke",!1)},Yn.prototype.beginPath=function(){this.path=[{type:"begin"}]},Yn.prototype.moveTo=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw Qf.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Qn=this.ctx.transform.applyToPoint(new zn(Tn,Un));this.path.push({type:"mt",x:Qn.x,y:Qn.y}),this.ctx.lastPoint=new zn(Tn,Un)},Yn.prototype.closePath=function(){var Tn=new zn(0,0),Un=0;for(Un=this.path.length-1;-1!==Un;Un--)if("begin"===this.path[Un].type&&"object"==_typeof(this.path[Un+1])&&"number"==typeof this.path[Un+1].x){Tn=new zn(this.path[Un+1].x,this.path[Un+1].y),this.path.push({type:"lt",x:Tn.x,y:Tn.y});break}"object"==_typeof(this.path[Un+2])&&"number"==typeof this.path[Un+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[Un+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new zn(Tn.x,Tn.y)},Yn.prototype.lineTo=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw Qf.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Qn=this.ctx.transform.applyToPoint(new zn(Tn,Un));this.path.push({type:"lt",x:Qn.x,y:Qn.y}),this.ctx.lastPoint=new zn(Qn.x,Qn.y)},Yn.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ir.call(this,null,!0)},Yn.prototype.quadraticCurveTo=function(Tn,Un,Qn,Dn){if(isNaN(Qn)||isNaN(Dn)||isNaN(Tn)||isNaN(Un))throw Qf.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Hn=this.ctx.transform.applyToPoint(new zn(Qn,Dn)),Gn=this.ctx.transform.applyToPoint(new zn(Tn,Un));this.path.push({type:"qct",x1:Gn.x,y1:Gn.y,x:Hn.x,y:Hn.y}),this.ctx.lastPoint=new zn(Hn.x,Hn.y)},Yn.prototype.bezierCurveTo=function(Tn,Un,Qn,Dn,Hn,Gn){if(isNaN(Hn)||isNaN(Gn)||isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn))throw Qf.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Vn=this.ctx.transform.applyToPoint(new zn(Hn,Gn)),Kn=this.ctx.transform.applyToPoint(new zn(Tn,Un)),Wn=this.ctx.transform.applyToPoint(new zn(Qn,Dn));this.path.push({type:"bct",x1:Kn.x,y1:Kn.y,x2:Wn.x,y2:Wn.y,x:Vn.x,y:Vn.y}),this.ctx.lastPoint=new zn(Vn.x,Vn.y)},Yn.prototype.arc=function(Tn,Un,Qn,Dn,Hn,Gn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn)||isNaN(Hn))throw Qf.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Gn=Boolean(Gn),!this.ctx.transform.isIdentity){var Vn=this.ctx.transform.applyToPoint(new zn(Tn,Un));Tn=Vn.x,Un=Vn.y;var Kn=this.ctx.transform.applyToPoint(new zn(0,Qn)),Wn=this.ctx.transform.applyToPoint(new zn(0,0));Qn=Math.sqrt(Math.pow(Kn.x-Wn.x,2)+Math.pow(Kn.y-Wn.y,2))}Math.abs(Hn-Dn)>=2*Math.PI&&(Dn=0,Hn=2*Math.PI),this.path.push({type:"arc",x:Tn,y:Un,radius:Qn,startAngle:Dn,endAngle:Hn,counterclockwise:Gn})},Yn.prototype.arcTo=function(Tn,Un,Qn,Dn,Hn){throw new Error("arcTo not implemented.")},Yn.prototype.rect=function(Tn,Un,Qn,Dn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn))throw Qf.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Tn,Un),this.lineTo(Tn+Qn,Un),this.lineTo(Tn+Qn,Un+Dn),this.lineTo(Tn,Un+Dn),this.lineTo(Tn,Un),this.lineTo(Tn+Qn,Un),this.lineTo(Tn,Un)},Yn.prototype.fillRect=function(Tn,Un,Qn,Dn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn))throw Qf.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!$n.call(this)){var Hn={};"butt"!==this.lineCap&&(Hn.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(Hn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Tn,Un,Qn,Dn),this.fill(),Hn.hasOwnProperty("lineCap")&&(this.lineCap=Hn.lineCap),Hn.hasOwnProperty("lineJoin")&&(this.lineJoin=Hn.lineJoin)}},Yn.prototype.strokeRect=function(Tn,Un,Qn,Dn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn))throw Qf.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Zn.call(this)||(this.beginPath(),this.rect(Tn,Un,Qn,Dn),this.stroke())},Yn.prototype.clearRect=function(Tn,Un,Qn,Dn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn))throw Qf.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Tn,Un,Qn,Dn))},Yn.prototype.save=function(Tn){Tn="boolean"!=typeof Tn||Tn;for(var Un=this.pdf.internal.getCurrentPageInfo().pageNumber,Qn=0;Qn<this.pdf.internal.getNumberOfPages();Qn++)this.pdf.setPage(Qn+1),this.pdf.internal.out("q");if(this.pdf.setPage(Un),Tn){this.ctx.fontSize=this.pdf.internal.getFontSize();var Dn=new Xn(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Dn}},Yn.prototype.restore=function(Tn){Tn="boolean"!=typeof Tn||Tn;for(var Un=this.pdf.internal.getCurrentPageInfo().pageNumber,Qn=0;Qn<this.pdf.internal.getNumberOfPages();Qn++)this.pdf.setPage(Qn+1),this.pdf.internal.out("Q");this.pdf.setPage(Un),Tn&&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)},Yn.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Jn=function p(Tn){var Un,Qn,Dn,Hn;if(!0===Tn.isCanvasGradient&&(Tn=Tn.getColor()),!Tn)return{r:0,g:0,b:0,a:0,style:Tn};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Tn))Un=0,Qn=0,Dn=0,Hn=0;else{var Gn=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Tn);if(null!==Gn)Un=parseInt(Gn[1]),Qn=parseInt(Gn[2]),Dn=parseInt(Gn[3]),Hn=1;else if(null!==(Gn=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Tn)))Un=parseInt(Gn[1]),Qn=parseInt(Gn[2]),Dn=parseInt(Gn[3]),Hn=parseFloat(Gn[4]);else{if(Hn=1,"string"==typeof Tn&&"#"!==Tn.charAt(0)){var zn=new c(Tn);Tn=zn.ok?zn.toHex():"#000000"}4===Tn.length?(Un=Tn.substring(1,2),Un+=Un,Qn=Tn.substring(2,3),Qn+=Qn,Dn=Tn.substring(3,4),Dn+=Dn):(Un=Tn.substring(1,3),Qn=Tn.substring(3,5),Dn=Tn.substring(5,7)),Un=parseInt(Un,16),Qn=parseInt(Qn,16),Dn=parseInt(Dn,16)}}return{r:Un,g:Qn,b:Dn,a:Hn,style:Tn}},$n=function g(){return this.ctx.isFillTransparent||0==this.globalAlpha},Zn=function m(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};Yn.prototype.fillText=function(Tn,Un,Qn,Dn){if(isNaN(Un)||isNaN(Qn)||"string"!=typeof Tn)throw Qf.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Dn=isNaN(Dn)?void 0:Dn,!$n.call(this)){Qn=or.call(this,Qn);var Hn=mr(this.ctx.transform.rotation),Gn=this.ctx.transform.scaleX;dr.call(this,{text:Tn,x:Un,y:Qn,scale:Gn,angle:Hn,align:this.textAlign,maxWidth:Dn})}},Yn.prototype.strokeText=function(Tn,Un,Qn,Dn){if(isNaN(Un)||isNaN(Qn)||"string"!=typeof Tn)throw Qf.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Zn.call(this)){Dn=isNaN(Dn)?void 0:Dn,Qn=or.call(this,Qn);var Hn=mr(this.ctx.transform.rotation),Gn=this.ctx.transform.scaleX;dr.call(this,{text:Tn,x:Un,y:Qn,scale:Gn,renderingMode:"stroke",angle:Hn,align:this.textAlign,maxWidth:Dn})}},Yn.prototype.measureText=function(Tn){if("string"!=typeof Tn)throw Qf.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Un=this.pdf,Qn=this.pdf.internal.scaleFactor,Dn=Un.internal.getFontSize(),Hn=Un.getStringUnitWidth(Tn)*Dn/Un.internal.scaleFactor,Gn=function o(Tn){var Un=(Tn=Tn||{}).width||0;return Object.defineProperty(this,"width",{get:function get(){return Un}}),this};return new Gn({width:Hn*=Math.round(96*Qn/72*1e4)/1e4})},Yn.prototype.scale=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw Qf.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Qn=new Kn(Tn,0,0,Un,0,0);this.ctx.transform=this.ctx.transform.multiply(Qn)},Yn.prototype.rotate=function(Tn){if(isNaN(Tn))throw Qf.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Un=new Kn(Math.cos(Tn),Math.sin(Tn),-Math.sin(Tn),Math.cos(Tn),0,0);this.ctx.transform=this.ctx.transform.multiply(Un)},Yn.prototype.translate=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw Qf.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Qn=new Kn(1,0,0,1,Tn,Un);this.ctx.transform=this.ctx.transform.multiply(Qn)},Yn.prototype.transform=function(Tn,Un,Qn,Dn,Hn,Gn){if(isNaN(Tn)||isNaN(Un)||isNaN(Qn)||isNaN(Dn)||isNaN(Hn)||isNaN(Gn))throw Qf.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var zn=new Kn(Tn,Un,Qn,Dn,Hn,Gn);this.ctx.transform=this.ctx.transform.multiply(zn)},Yn.prototype.setTransform=function(Tn,Un,Qn,Dn,Hn,Gn){Tn=isNaN(Tn)?1:Tn,Un=isNaN(Un)?0:Un,Qn=isNaN(Qn)?0:Qn,Dn=isNaN(Dn)?1:Dn,Hn=isNaN(Hn)?0:Hn,Gn=isNaN(Gn)?0:Gn,this.ctx.transform=new Kn(Tn,Un,Qn,Dn,Hn,Gn)},Yn.prototype.drawImage=function(Tn,Un,Qn,Dn,Hn,Gn,zn,Wn,Xn){var Yn=this.pdf.getImageProperties(Tn),Jn=1,$n=1,Zn=1,tr=1;void 0!==Dn&&void 0!==Wn&&(Zn=Wn/Dn,tr=Xn/Hn,Jn=Yn.width/Dn*Wn/Dn,$n=Yn.height/Hn*Xn/Hn),void 0===Gn&&(Gn=Un,zn=Qn,Un=0,Qn=0),void 0!==Dn&&void 0===Wn&&(Wn=Dn,Xn=Hn),void 0===Dn&&void 0===Wn&&(Wn=Yn.width,Xn=Yn.height);for(var ir,or=this.ctx.transform.decompose(),sr=mr(or.rotate.shx),lr=new Kn,cr=(lr=(lr=(lr=lr.multiply(or.translate)).multiply(or.skew)).multiply(or.scale)).applyToRectangle(new Vn(Gn-Un*Zn,zn-Qn*tr,Dn*Jn,Hn*$n)),ur=er.call(this,cr),dr=[],hr=0;hr<ur.length;hr+=1)-1===dr.indexOf(ur[hr])&&dr.push(ur[hr]);if(rr(dr),this.autoPaging)for(var pr=dr[0],Ar=dr[dr.length-1],fr=pr;fr<Ar+1;fr++){if(this.pdf.setPage(fr),0!==this.ctx.clip_path.length){var gr=this.path;ir=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=nr(ir,this.posX,-1*this.pdf.internal.pageSize.height*(fr-1)+this.posY),ar.call(this,"fill",!0),this.path=gr}var _r=JSON.parse(JSON.stringify(cr));_r=nr([_r],this.posX,-1*this.pdf.internal.pageSize.height*(fr-1)+this.posY)[0],this.pdf.addImage(Tn,"JPEG",_r.x,_r.y,_r.w,_r.h,null,null,sr)}else this.pdf.addImage(Tn,"JPEG",cr.x,cr.y,cr.w,cr.h,null,null,sr)};var er=function v(Tn,Un,Qn){var Dn=[];switch(Un=Un||this.pdf.internal.pageSize.width,Qn=Qn||this.pdf.internal.pageSize.height,Tn.type){default:case"mt":case"lt":Dn.push(Math.floor((Tn.y+this.posY)/Qn)+1);break;case"arc":Dn.push(Math.floor((Tn.y+this.posY-Tn.radius)/Qn)+1),Dn.push(Math.floor((Tn.y+this.posY+Tn.radius)/Qn)+1);break;case"qct":var Hn=_r(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Tn.x1,Tn.y1,Tn.x,Tn.y);Dn.push(Math.floor(Hn.y/Qn)+1),Dn.push(Math.floor((Hn.y+Hn.h)/Qn)+1);break;case"bct":var Gn=vr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Tn.x1,Tn.y1,Tn.x2,Tn.y2,Tn.x,Tn.y);Dn.push(Math.floor(Gn.y/Qn)+1),Dn.push(Math.floor((Gn.y+Gn.h)/Qn)+1);break;case"rect":Dn.push(Math.floor((Tn.y+this.posY)/Qn)+1),Dn.push(Math.floor((Tn.y+Tn.h+this.posY)/Qn)+1)}for(var zn=0;zn<Dn.length;zn+=1)for(;this.pdf.internal.getNumberOfPages()<Dn[zn];)tr.call(this);return Dn},tr=function b(){var Tn=this.fillStyle,Un=this.strokeStyle,Qn=this.font,Dn=this.lineCap,Hn=this.lineWidth,Gn=this.lineJoin;this.pdf.addPage(),this.fillStyle=Tn,this.strokeStyle=Un,this.font=Qn,this.lineCap=Dn,this.lineWidth=Hn,this.lineJoin=Gn},nr=function y(Tn,Un,Qn){for(var Dn=0;Dn<Tn.length;Dn++)switch(Tn[Dn].type){case"bct":Tn[Dn].x2+=Un,Tn[Dn].y2+=Qn;case"qct":Tn[Dn].x1+=Un,Tn[Dn].y1+=Qn;case"mt":case"lt":case"arc":default:Tn[Dn].x+=Un,Tn[Dn].y+=Qn}return Tn},rr=function w(Tn){return Tn.sort((function(Tn,Un){return Tn-Un}))},ir=function N(Tn,Un){for(var Qn,Dn,Hn=this.fillStyle,Gn=this.strokeStyle,zn=this.lineCap,Vn=this.lineWidth,Kn=Vn*this.ctx.transform.scaleX,Wn=this.lineJoin,Xn=JSON.parse(JSON.stringify(this.path)),Yn=JSON.parse(JSON.stringify(this.path)),Jn=[],$n=0;$n<Yn.length;$n++)if(void 0!==Yn[$n].x)for(var Zn=er.call(this,Yn[$n]),ir=0;ir<Zn.length;ir+=1)-1===Jn.indexOf(Zn[ir])&&Jn.push(Zn[ir]);for(var or=0;or<Jn.length;or++)for(;this.pdf.internal.getNumberOfPages()<Jn[or];)tr.call(this);if(rr(Jn),this.autoPaging)for(var N=Jn[0],sr=Jn[Jn.length-1],lr=N;lr<sr+1;lr++){if(this.pdf.setPage(lr),this.fillStyle=Hn,this.strokeStyle=Gn,this.lineCap=zn,this.lineWidth=Kn,this.lineJoin=Wn,0!==this.ctx.clip_path.length){var cr=this.path;Qn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=nr(Qn,this.posX,-1*this.pdf.internal.pageSize.height*(lr-1)+this.posY),ar.call(this,Tn,!0),this.path=cr}Dn=JSON.parse(JSON.stringify(Xn)),this.path=nr(Dn,this.posX,-1*this.pdf.internal.pageSize.height*(lr-1)+this.posY),!1!==Un&&0!==lr||ar.call(this,Tn,Un),this.lineWidth=Vn}else this.lineWidth=Kn,ar.call(this,Tn,Un),this.lineWidth=Vn;this.path=Xn},ar=function L(Tn,Un){if(("stroke"!==Tn||Un||!Zn.call(this))&&("stroke"===Tn||Un||!$n.call(this))){for(var Qn,Dn,Hn=[],Gn=this.path,zn=0;zn<Gn.length;zn++){var Vn=Gn[zn];switch(Vn.type){case"begin":Hn.push({begin:!0});break;case"close":Hn.push({close:!0});break;case"mt":Hn.push({start:Vn,deltas:[],abs:[]});break;case"lt":var Kn=Hn.length;if(!isNaN(Gn[zn-1].x)&&(Qn=[Vn.x-Gn[zn-1].x,Vn.y-Gn[zn-1].y],Kn>0))for(;Kn>=0;Kn--)if(!0!==Hn[Kn-1].close&&!0!==Hn[Kn-1].begin){Hn[Kn-1].deltas.push(Qn),Hn[Kn-1].abs.push(Vn);break}break;case"bct":Qn=[Vn.x1-Gn[zn-1].x,Vn.y1-Gn[zn-1].y,Vn.x2-Gn[zn-1].x,Vn.y2-Gn[zn-1].y,Vn.x-Gn[zn-1].x,Vn.y-Gn[zn-1].y],Hn[Hn.length-1].deltas.push(Qn);break;case"qct":var Wn=Gn[zn-1].x+2/3*(Vn.x1-Gn[zn-1].x),Xn=Gn[zn-1].y+2/3*(Vn.y1-Gn[zn-1].y),Yn=Vn.x+2/3*(Vn.x1-Vn.x),Jn=Vn.y+2/3*(Vn.y1-Vn.y),er=Vn.x,tr=Vn.y;Qn=[Wn-Gn[zn-1].x,Xn-Gn[zn-1].y,Yn-Gn[zn-1].x,Jn-Gn[zn-1].y,er-Gn[zn-1].x,tr-Gn[zn-1].y],Hn[Hn.length-1].deltas.push(Qn);break;case"arc":Hn.push({deltas:[],abs:[],arc:!0}),Array.isArray(Hn[Hn.length-1].abs)&&Hn[Hn.length-1].abs.push(Vn)}}Dn=Un?null:"stroke"===Tn?"stroke":"fill";for(var nr=0;nr<Hn.length;nr++){if(Hn[nr].arc){for(var rr=Hn[nr].abs,ir=0;ir<rr.length;ir++){var ar=rr[ir];"arc"===ar.type?sr.call(this,ar.x,ar.y,ar.radius,ar.startAngle,ar.endAngle,ar.counterclockwise,void 0,Un):hr.call(this,ar.x,ar.y)}lr.call(this,Dn),this.pdf.internal.out("h")}if(!Hn[nr].arc&&!0!==Hn[nr].close&&!0!==Hn[nr].begin){var or=Hn[nr].start.x,L=Hn[nr].start.y;pr.call(this,Hn[nr].deltas,or,L)}}Dn&&lr.call(this,Dn),Un&&cr.call(this)}},or=function x(Tn){var Un=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Qn=Un*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Tn-Qn;case"top":return Tn+Un-Qn;case"hanging":return Tn+Un-2*Qn;case"middle":return Tn+Un/2-Qn;case"ideographic":return Tn;case"alphabetic":default:return Tn}};Yn.prototype.createLinearGradient=function(){var Tn=function t(){};return Tn.colorStops=[],Tn.addColorStop=function(Tn,Un){this.colorStops.push([Tn,Un])},Tn.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},Tn.isCanvasGradient=!0,Tn},Yn.prototype.createPattern=function(){return this.createLinearGradient()},Yn.prototype.createRadialGradient=function(){return this.createLinearGradient()};var sr=function A(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){for(var Kn=fr.call(this,Qn,Dn,Hn,Gn),Wn=0;Wn<Kn.length;Wn++){var Xn=Kn[Wn];0===Wn&&ur.call(this,Xn.x1+Tn,Xn.y1+Un),Ar.call(this,Tn,Un,Xn.x2,Xn.y2,Xn.x3,Xn.y3,Xn.x4,Xn.y4)}Vn?cr.call(this):lr.call(this,zn)},lr=function _(Tn){switch(Tn){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},cr=function S(){this.pdf.clip(),this.pdf.discardPath()},ur=function P(Tn,Un){this.pdf.internal.out(Qn(Tn)+" "+Dn(Un)+" m")},dr=function k(Tn){var Un;switch(Tn.align){case"right":case"end":Un="right";break;case"center":Un="center";break;case"left":case"start":default:Un="left"}var Qn=this.ctx.transform.applyToPoint(new zn(Tn.x,Tn.y)),Dn=this.ctx.transform.decompose(),Hn=new Kn;Hn=(Hn=(Hn=Hn.multiply(Dn.translate)).multiply(Dn.skew)).multiply(Dn.scale);for(var Gn,Wn,Xn,Yn=this.pdf.getTextDimensions(Tn.text),Jn=this.ctx.transform.applyToRectangle(new Vn(Tn.x,Tn.y,Yn.w,Yn.h)),$n=Hn.applyToRectangle(new Vn(Tn.x,Tn.y-Yn.h,Yn.w,Yn.h)),Zn=er.call(this,$n),tr=[],ir=0;ir<Zn.length;ir+=1)-1===tr.indexOf(Zn[ir])&&tr.push(Zn[ir]);if(rr(tr),!0===this.autoPaging)for(var or=tr[0],sr=tr[tr.length-1],lr=or;lr<sr+1;lr++){if(this.pdf.setPage(lr),0!==this.ctx.clip_path.length){var cr=this.path;Gn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=nr(Gn,this.posX,-1*this.pdf.internal.pageSize.height*(lr-1)+this.posY),ar.call(this,"fill",!0),this.path=cr}var ur=JSON.parse(JSON.stringify(Jn));ur=nr([ur],this.posX,-1*this.pdf.internal.pageSize.height*(lr-1)+this.posY)[0],Tn.scale>=.01&&(Wn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Wn*Tn.scale),Xn=this.lineWidth,this.lineWidth=Xn*Tn.scale),this.pdf.text(Tn.text,ur.x,ur.y,{angle:Tn.angle,align:Un,renderingMode:Tn.renderingMode,maxWidth:Tn.maxWidth}),Tn.scale>=.01&&(this.pdf.setFontSize(Wn),this.lineWidth=Xn)}else Tn.scale>=.01&&(Wn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Wn*Tn.scale),Xn=this.lineWidth,this.lineWidth=Xn*Tn.scale),this.pdf.text(Tn.text,Qn.x+this.posX,Qn.y+this.posY,{angle:Tn.angle,align:Un,renderingMode:Tn.renderingMode,maxWidth:Tn.maxWidth}),Tn.scale>=.01&&(this.pdf.setFontSize(Wn),this.lineWidth=Xn)},hr=function F(Tn,Un,Hn,Gn){Hn=Hn||0,Gn=Gn||0,this.pdf.internal.out(Qn(Tn+Hn)+" "+Dn(Un+Gn)+" l")},pr=function I(Tn,Un,Qn){return this.pdf.lines(Tn,Un,Qn,null,null)},Ar=function C(Tn,Qn,Dn,zn,Vn,Kn,Wn,Xn){this.pdf.internal.out([Un(Hn(Dn+Tn)),Un(Gn(zn+Qn)),Un(Hn(Vn+Tn)),Un(Gn(Kn+Qn)),Un(Hn(Wn+Tn)),Un(Gn(Xn+Qn)),"c"].join(" "))},fr=function j(Tn,Un,Qn,Dn){for(var Hn=2*Math.PI,Gn=Math.PI/2;Un>Qn;)Un-=Hn;var zn=Math.abs(Qn-Un);zn<Hn&&Dn&&(zn=Hn-zn);for(var Vn=[],Kn=Dn?-1:1,Wn=Un;zn>1e-5;){var Xn=Wn+Kn*Math.min(zn,Gn);Vn.push(gr.call(this,Tn,Wn,Xn)),zn-=Math.abs(Xn-Wn),Wn=Xn}return Vn},gr=function B(Tn,Un,Qn){var Dn=(Qn-Un)/2,Hn=Tn*Math.cos(Dn),Gn=Tn*Math.sin(Dn),zn=Hn,Vn=-Gn,Kn=zn*zn+Vn*Vn,Wn=Kn+zn*Hn+Vn*Gn,Xn=4/3*(Math.sqrt(2*Kn*Wn)-Wn)/(zn*Gn-Vn*Hn),Yn=zn-Xn*Vn,Jn=Vn+Xn*zn,$n=Yn,Zn=-Jn,er=Dn+Un,tr=Math.cos(er),nr=Math.sin(er);return{x1:Tn*Math.cos(Un),y1:Tn*Math.sin(Un),x2:Yn*tr-Jn*nr,y2:Yn*nr+Jn*tr,x3:$n*tr-Zn*nr,y3:$n*nr+Zn*tr,x4:Tn*Math.cos(Qn),y4:Tn*Math.sin(Qn)}},mr=function O(Tn){return 180*Tn/Math.PI},_r=function M(Tn,Un,Qn,Dn,Hn,Gn){var zn=Tn+.5*(Qn-Tn),Kn=Un+.5*(Dn-Un),Wn=Hn+.5*(Qn-Hn),Xn=Gn+.5*(Dn-Gn),Yn=Math.min(Tn,Hn,zn,Wn),Jn=Math.max(Tn,Hn,zn,Wn),$n=Math.min(Un,Gn,Kn,Xn),Zn=Math.max(Un,Gn,Kn,Xn);return new Vn(Yn,$n,Jn-Yn,Zn-$n)},vr=function E(Tn,Un,Qn,Dn,Hn,Gn,zn,Kn){var Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr,rr,ir,ar,or,sr,lr=Qn-Tn,cr=Dn-Un,ur=Hn-Qn,dr=Gn-Dn,hr=zn-Hn,pr=Kn-Gn;for(Xn=0;Xn<41;Xn++)nr=(er=(Yn=Tn+(Wn=Xn/40)*lr)+Wn*(($n=Qn+Wn*ur)-Yn))+Wn*($n+Wn*(Hn+Wn*hr-$n)-er),rr=(tr=(Jn=Un+Wn*cr)+Wn*((Zn=Dn+Wn*dr)-Jn))+Wn*(Zn+Wn*(Gn+Wn*pr-Zn)-tr),0==Xn?(ir=nr,ar=rr,or=nr,sr=rr):(ir=Math.min(ir,nr),ar=Math.min(ar,rr),or=Math.max(or,nr),sr=Math.max(sr,rr));return new Vn(Math.round(ir),Math.round(ar),Math.round(or-ir),Math.round(sr-ar))}}(g.API);
|
||
/**
|
||
* @license
|
||
Copyright (c) 2013 Gildas Lormeau. All rights reserved.
|
||
|
||
Redistribution and use in source and binary forms, with or without
|
||
modification, are permitted provided that the following conditions are met:
|
||
|
||
1. Redistributions of source code must retain the above copyright notice,
|
||
this list of conditions and the following disclaimer.
|
||
|
||
2. 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.
|
||
|
||
3. The names of the authors may not be used to endorse or promote products
|
||
derived from this software without specific prior written permission.
|
||
|
||
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 JCRAFT,
|
||
INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE 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.
|
||
*/
|
||
var Rg=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function ft(){var Tn=this;function e(Tn,Un){var Qn=0;do{Qn|=1&Tn,Tn>>>=1,Qn<<=1}while(--Un>0);return Qn>>>1}Tn.build_tree=function(Un){var Qn,Dn,Hn,Gn=Tn.dyn_tree,zn=Tn.stat_desc.static_tree,Vn=Tn.stat_desc.elems,Kn=-1;for(Un.heap_len=0,Un.heap_max=573,Qn=0;Qn<Vn;Qn++)0!==Gn[2*Qn]?(Un.heap[++Un.heap_len]=Kn=Qn,Un.depth[Qn]=0):Gn[2*Qn+1]=0;for(;Un.heap_len<2;)Gn[2*(Hn=Un.heap[++Un.heap_len]=Kn<2?++Kn:0)]=1,Un.depth[Hn]=0,Un.opt_len--,zn&&(Un.static_len-=zn[2*Hn+1]);for(Tn.max_code=Kn,Qn=Math.floor(Un.heap_len/2);Qn>=1;Qn--)Un.pqdownheap(Gn,Qn);Hn=Vn;do{Qn=Un.heap[1],Un.heap[1]=Un.heap[Un.heap_len--],Un.pqdownheap(Gn,1),Dn=Un.heap[1],Un.heap[--Un.heap_max]=Qn,Un.heap[--Un.heap_max]=Dn,Gn[2*Hn]=Gn[2*Qn]+Gn[2*Dn],Un.depth[Hn]=Math.max(Un.depth[Qn],Un.depth[Dn])+1,Gn[2*Qn+1]=Gn[2*Dn+1]=Hn,Un.heap[1]=Hn++,Un.pqdownheap(Gn,1)}while(Un.heap_len>=2);Un.heap[--Un.heap_max]=Un.heap[1],function(Un){var Qn,Dn,Hn,Gn,zn,Vn,Kn=Tn.dyn_tree,Wn=Tn.stat_desc.static_tree,Xn=Tn.stat_desc.extra_bits,Yn=Tn.stat_desc.extra_base,Jn=Tn.stat_desc.max_length,$n=0;for(Gn=0;Gn<=15;Gn++)Un.bl_count[Gn]=0;for(Kn[2*Un.heap[Un.heap_max]+1]=0,Qn=Un.heap_max+1;Qn<573;Qn++)(Gn=Kn[2*Kn[2*(Dn=Un.heap[Qn])+1]+1]+1)>Jn&&(Gn=Jn,$n++),Kn[2*Dn+1]=Gn,Dn>Tn.max_code||(Un.bl_count[Gn]++,zn=0,Dn>=Yn&&(zn=Xn[Dn-Yn]),Vn=Kn[2*Dn],Un.opt_len+=Vn*(Gn+zn),Wn&&(Un.static_len+=Vn*(Wn[2*Dn+1]+zn)));if(0!==$n){do{for(Gn=Jn-1;0===Un.bl_count[Gn];)Gn--;Un.bl_count[Gn]--,Un.bl_count[Gn+1]+=2,Un.bl_count[Jn]--,$n-=2}while($n>0);for(Gn=Jn;0!==Gn;Gn--)for(Dn=Un.bl_count[Gn];0!==Dn;)(Hn=Un.heap[--Qn])>Tn.max_code||(Kn[2*Hn+1]!==Gn&&(Un.opt_len+=(Gn-Kn[2*Hn+1])*Kn[2*Hn],Kn[2*Hn+1]=Gn),Dn--)}}(Un),function(Tn,Un,Qn){var Dn,Hn,Gn,zn=[],Vn=0;for(Dn=1;Dn<=15;Dn++)zn[Dn]=Vn=Vn+Qn[Dn-1]<<1;for(Hn=0;Hn<=Un;Hn++)0!==(Gn=Tn[2*Hn+1])&&(Tn[2*Hn]=e(zn[Gn]++,Gn))}(Gn,Tn.max_code,Un.bl_count)}}function dt(Tn,Un,Qn,Dn,Hn){this.static_tree=Tn,this.extra_bits=Un,this.extra_base=Qn,this.elems=Dn,this.max_length=Hn}function pt(Tn,Un,Qn,Dn,Hn){this.good_length=Tn,this.max_lazy=Un,this.nice_length=Qn,this.max_chain=Dn,this.func=Hn}ft._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,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,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,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,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],ft.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],ft.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],ft.d_code=function(Tn){return Tn<256?Rg[Tn]:Rg[256+(Tn>>>7)]},ft.extra_lbits=[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],ft.extra_dbits=[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],ft.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ft.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],dt.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],dt.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],dt.static_l_desc=new dt(dt.static_ltree,ft.extra_lbits,257,286,15),dt.static_d_desc=new dt(dt.static_dtree,ft.extra_dbits,0,30,15),dt.static_bl_desc=new dt(null,ft.extra_blbits,0,19,7);var Mg,Qg,Og,Dg=[new pt(0,0,0,0,0),new pt(4,4,8,4,1),new pt(4,5,16,8,1),new pt(4,6,32,32,1),new pt(4,4,16,16,2),new pt(8,16,32,32,2),new pt(8,16,128,128,2),new pt(8,32,128,256,2),new pt(32,128,258,1024,2),new pt(32,258,258,4096,2)],jg=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function wt(Tn,Un,Qn,Dn){var Hn=Tn[2*Un],Gn=Tn[2*Qn];return Hn<Gn||Hn===Gn&&Dn[Un]<=Dn[Qn]}function Nt(){var Tn,Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr,rr,ir,ar,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,xr,kr,Sr,Cr=this,Br=new ft,Er=new ft,Nr=new ft;function V(){var Tn;for(Tn=0;Tn<286;Tn++)fr[2*Tn]=0;for(Tn=0;Tn<30;Tn++)gr[2*Tn]=0;for(Tn=0;Tn<19;Tn++)mr[2*Tn]=0;fr[512]=1,Cr.opt_len=Cr.static_len=0,yr=wr=0}function G(Tn,Un){var Qn,Dn,Hn=-1,Gn=Tn[1],zn=0,Vn=7,Kn=4;for(0===Gn&&(Vn=138,Kn=3),Tn[2*(Un+1)+1]=65535,Qn=0;Qn<=Un;Qn++)Dn=Gn,Gn=Tn[2*(Qn+1)+1],++zn<Vn&&Dn===Gn||(zn<Kn?mr[2*Dn]+=zn:0!==Dn?(Dn!==Hn&&mr[2*Dn]++,mr[32]++):zn<=10?mr[34]++:mr[36]++,zn=0,Hn=Dn,0===Gn?(Vn=138,Kn=3):Dn===Gn?(Vn=6,Kn=3):(Vn=7,Kn=4))}function Y(Tn){Cr.pending_buf[Cr.pending++]=Tn}function J(Tn){Y(255&Tn),Y(Tn>>>8&255)}function X(Tn,Un){var Qn,Dn=Un;Sr>16-Dn?(J(kr|=(Qn=Tn)<<Sr&65535),kr=Qn>>>16-Sr,Sr+=Dn-16):(kr|=Tn<<Sr&65535,Sr+=Dn)}function K(Tn,Un){var Qn=2*Tn;X(65535&Un[Qn],65535&Un[Qn+1])}function Z(Tn,Un){var Qn,Dn,Hn=-1,Gn=Tn[1],zn=0,Vn=7,Kn=4;for(0===Gn&&(Vn=138,Kn=3),Qn=0;Qn<=Un;Qn++)if(Dn=Gn,Gn=Tn[2*(Qn+1)+1],!(++zn<Vn&&Dn===Gn)){if(zn<Kn)do{K(Dn,mr)}while(0!=--zn);else 0!==Dn?(Dn!==Hn&&(K(Dn,mr),zn--),K(16,mr),X(zn-3,2)):zn<=10?(K(17,mr),X(zn-3,3)):(K(18,mr),X(zn-11,7));zn=0,Hn=Dn,0===Gn?(Vn=138,Kn=3):Dn===Gn?(Vn=6,Kn=3):(Vn=7,Kn=4)}}function $(){16===Sr?(J(kr),kr=0,Sr=0):Sr>=8&&(Y(255&kr),kr>>>=8,Sr-=8)}function Q(Tn,Un){var Qn,Dn,Hn;if(Cr.pending_buf[br+2*yr]=Tn>>>8&255,Cr.pending_buf[br+2*yr+1]=255&Tn,Cr.pending_buf[_r+yr]=255&Un,yr++,0===Tn?fr[2*Un]++:(wr++,Tn--,fr[2*(ft._length_code[Un]+256+1)]++,gr[2*ft.d_code(Tn)]++),0==(8191&yr)&&dr>2){for(Qn=8*yr,Dn=ar-tr,Hn=0;Hn<30;Hn++)Qn+=gr[2*Hn]*(5+ft.extra_dbits[Hn]);if(Qn>>>=3,wr<Math.floor(yr/2)&&Qn<Math.floor(Dn/2))return!0}return yr===vr-1}function tt(Tn,Un){var Qn,Dn,Hn,Gn,zn=0;if(0!==yr)do{Qn=Cr.pending_buf[br+2*zn]<<8&65280|255&Cr.pending_buf[br+2*zn+1],Dn=255&Cr.pending_buf[_r+zn],zn++,0===Qn?K(Dn,Tn):(K((Hn=ft._length_code[Dn])+256+1,Tn),0!==(Gn=ft.extra_lbits[Hn])&&X(Dn-=ft.base_length[Hn],Gn),Qn--,K(Hn=ft.d_code(Qn),Un),0!==(Gn=ft.extra_dbits[Hn])&&X(Qn-=ft.base_dist[Hn],Gn))}while(zn<yr);K(256,Tn),xr=Tn[513]}function et(){Sr>8?J(kr):Sr>0&&Y(255&kr),kr=0,Sr=0}function nt(Tn,Un,Qn){X(0+(Qn?1:0),3),function(Tn,Un,Qn){et(),xr=8,J(Un),J(~Un),Cr.pending_buf.set(Vn.subarray(Tn,Tn+Un),Cr.pending),Cr.pending+=Un}(Tn,Un)}function it(Un){(function rt(Tn,Un,Qn){var Dn,Hn,Gn=0;dr>0?(Br.build_tree(Cr),Er.build_tree(Cr),Gn=function(){var Tn;for(G(fr,Br.max_code),G(gr,Er.max_code),Nr.build_tree(Cr),Tn=18;Tn>=3&&0===mr[2*ft.bl_order[Tn]+1];Tn--);return Cr.opt_len+=3*(Tn+1)+5+5+4,Tn}(),Dn=Cr.opt_len+3+7>>>3,(Hn=Cr.static_len+3+7>>>3)<=Dn&&(Dn=Hn)):Dn=Hn=Un+5,Un+4<=Dn&&-1!==Tn?nt(Tn,Un,Qn):Hn===Dn?(X(2+(Qn?1:0),3),tt(dt.static_ltree,dt.static_dtree)):(X(4+(Qn?1:0),3),function(Tn,Un,Qn){var Dn;for(X(Tn-257,5),X(Un-1,5),X(Qn-4,4),Dn=0;Dn<Qn;Dn++)X(mr[2*ft.bl_order[Dn]+1],3);Z(fr,Tn-1),Z(gr,Un-1)}(Br.max_code+1,Er.max_code+1,Gn+1),tt(fr,gr)),V(),Qn&&et()})(tr>=0?tr:-1,ar-tr,Un),tr=ar,Tn.flush_pending()}function at(){var Un,Qn,Dn,Gn;do{if(0==(Gn=Kn-sr-ar)&&0===ar&&0===sr)Gn=Hn;else if(-1===Gn)Gn--;else if(ar>=Hn+Hn-262){Vn.set(Vn.subarray(Hn,Hn+Hn),0),or-=Hn,ar-=Hn,tr-=Hn,Dn=Un=Jn;do{Qn=65535&Xn[--Dn],Xn[Dn]=Qn>=Hn?Qn-Hn:0}while(0!=--Un);Dn=Un=Hn;do{Qn=65535&Wn[--Dn],Wn[Dn]=Qn>=Hn?Qn-Hn:0}while(0!=--Un);Gn+=Hn}if(0===Tn.avail_in)return;Un=Tn.read_buf(Vn,ar+sr,Gn),(sr+=Un)>=3&&(Yn=((Yn=255&Vn[ar])<<er^255&Vn[ar+1])&Zn)}while(sr<262&&0!==Tn.avail_in)}function ot(Tn){var Un,Qn,Dn=cr,Gn=ar,Kn=lr,Xn=ar>Hn-262?ar-(Hn-262):0,Yn=Ar,Jn=zn,$n=ar+258,Zn=Vn[Gn+Kn-1],er=Vn[Gn+Kn];lr>=pr&&(Dn>>=2),Yn>sr&&(Yn=sr);do{if(Vn[(Un=Tn)+Kn]===er&&Vn[Un+Kn-1]===Zn&&Vn[Un]===Vn[Gn]&&Vn[++Un]===Vn[Gn+1]){Gn+=2,Un++;do{}while(Vn[++Gn]===Vn[++Un]&&Vn[++Gn]===Vn[++Un]&&Vn[++Gn]===Vn[++Un]&&Vn[++Gn]===Vn[++Un]&&Vn[++Gn]===Vn[++Un]&&Vn[++Gn]===Vn[++Un]&&Vn[++Gn]===Vn[++Un]&&Vn[++Gn]===Vn[++Un]&&Gn<$n);if(Qn=258-($n-Gn),Gn=$n-258,Qn>Kn){if(or=Tn,Kn=Qn,Qn>=Yn)break;Zn=Vn[Gn+Kn-1],er=Vn[Gn+Kn]}}}while((Tn=65535&Wn[Tn&Jn])>Xn&&0!=--Dn);return Kn<=sr?Kn:sr}function st(Tn){return Tn.total_in=Tn.total_out=0,Tn.msg=null,Cr.pending=0,Cr.pending_out=0,Un=113,Dn=0,Br.dyn_tree=fr,Br.stat_desc=dt.static_l_desc,Er.dyn_tree=gr,Er.stat_desc=dt.static_d_desc,Nr.dyn_tree=mr,Nr.stat_desc=dt.static_bl_desc,kr=0,Sr=0,xr=8,V(),function(){var Tn;for(Kn=2*Hn,Xn[Jn-1]=0,Tn=0;Tn<Jn-1;Tn++)Xn[Tn]=0;ur=Dg[dr].max_lazy,pr=Dg[dr].good_length,Ar=Dg[dr].nice_length,cr=Dg[dr].max_chain,ar=0,tr=0,sr=0,nr=lr=2,ir=0,Yn=0}(),0}Cr.depth=[],Cr.bl_count=[],Cr.heap=[],fr=[],gr=[],mr=[],Cr.pqdownheap=function(Tn,Un){for(var Qn=Cr.heap,Dn=Qn[Un],Hn=Un<<1;Hn<=Cr.heap_len&&(Hn<Cr.heap_len&&wt(Tn,Qn[Hn+1],Qn[Hn],Cr.depth)&&Hn++,!wt(Tn,Dn,Qn[Hn],Cr.depth));)Qn[Un]=Qn[Hn],Un=Hn,Hn<<=1;Qn[Un]=Dn},Cr.deflateInit=function(Tn,Un,Dn,Kn,Yn,tr){return Kn||(Kn=8),Yn||(Yn=8),tr||(tr=0),Tn.msg=null,-1===Un&&(Un=6),Yn<1||Yn>9||8!==Kn||Dn<9||Dn>15||Un<0||Un>9||tr<0||tr>2?-2:(Tn.dstate=Cr,zn=(Hn=1<<(Gn=Dn))-1,Zn=(Jn=1<<($n=Yn+7))-1,er=Math.floor(($n+3-1)/3),Vn=new Uint8Array(2*Hn),Wn=[],Xn=[],vr=1<<Yn+6,Cr.pending_buf=new Uint8Array(4*vr),Qn=4*vr,br=Math.floor(vr/2),_r=3*vr,dr=Un,hr=tr,st(Tn))},Cr.deflateEnd=function(){return 42!==Un&&113!==Un&&666!==Un?-2:(Cr.pending_buf=null,Xn=null,Wn=null,Vn=null,Cr.dstate=null,113===Un?-3:0)},Cr.deflateParams=function(Tn,Un,Qn){var Dn=0;return-1===Un&&(Un=6),Un<0||Un>9||Qn<0||Qn>2?-2:(Dg[dr].func!==Dg[Un].func&&0!==Tn.total_in&&(Dn=Tn.deflate(1)),dr!==Un&&(ur=Dg[dr=Un].max_lazy,pr=Dg[dr].good_length,Ar=Dg[dr].nice_length,cr=Dg[dr].max_chain),hr=Qn,Dn)},Cr.deflateSetDictionary=function(Tn,Qn,Dn){var Gn,Kn=Dn,Jn=0;if(!Qn||42!==Un)return-2;if(Kn<3)return 0;for(Kn>Hn-262&&(Jn=Dn-(Kn=Hn-262)),Vn.set(Qn.subarray(Jn,Jn+Kn),0),ar=Kn,tr=Kn,Yn=((Yn=255&Vn[0])<<er^255&Vn[1])&Zn,Gn=0;Gn<=Kn-3;Gn++)Yn=(Yn<<er^255&Vn[Gn+2])&Zn,Wn[Gn&zn]=Xn[Yn],Xn[Yn]=Gn;return 0},Cr.deflate=function(Kn,$n){var cr,pr,Ar,fr,gr,mr;if($n>4||$n<0)return-2;if(!Kn.next_out||!Kn.next_in&&0!==Kn.avail_in||666===Un&&4!==$n)return Kn.msg=jg[4],-2;if(0===Kn.avail_out)return Kn.msg=jg[7],-5;if(Tn=Kn,fr=Dn,Dn=$n,42===Un&&(pr=8+(Gn-8<<4)<<8,(Ar=(dr-1&255)>>1)>3&&(Ar=3),pr|=Ar<<6,0!==ar&&(pr|=32),Un=113,Y((mr=pr+=31-pr%31)>>8&255),Y(255&mr)),0!==Cr.pending){if(Tn.flush_pending(),0===Tn.avail_out)return Dn=-1,0}else if(0===Tn.avail_in&&$n<=fr&&4!==$n)return Tn.msg=jg[7],-5;if(666===Un&&0!==Tn.avail_in)return Kn.msg=jg[7],-5;if(0!==Tn.avail_in||0!==sr||0!==$n&&666!==Un){switch(gr=-1,Dg[dr].func){case 0:gr=function(Un){var Dn,Gn=65535;for(Gn>Qn-5&&(Gn=Qn-5);;){if(sr<=1){if(at(),0===sr&&0===Un)return 0;if(0===sr)break}if(ar+=sr,sr=0,Dn=tr+Gn,(0===ar||ar>=Dn)&&(sr=ar-Dn,ar=Dn,it(!1),0===Tn.avail_out))return 0;if(ar-tr>=Hn-262&&(it(!1),0===Tn.avail_out))return 0}return it(4===Un),0===Tn.avail_out?4===Un?2:0:4===Un?3:1}($n);break;case 1:gr=function(Un){for(var Qn,Dn=0;;){if(sr<262){if(at(),sr<262&&0===Un)return 0;if(0===sr)break}if(sr>=3&&(Yn=(Yn<<er^255&Vn[ar+2])&Zn,Dn=65535&Xn[Yn],Wn[ar&zn]=Xn[Yn],Xn[Yn]=ar),0!==Dn&&(ar-Dn&65535)<=Hn-262&&2!==hr&&(nr=ot(Dn)),nr>=3)if(Qn=Q(ar-or,nr-3),sr-=nr,nr<=ur&&sr>=3){nr--;do{ar++,Yn=(Yn<<er^255&Vn[ar+2])&Zn,Dn=65535&Xn[Yn],Wn[ar&zn]=Xn[Yn],Xn[Yn]=ar}while(0!=--nr);ar++}else ar+=nr,nr=0,Yn=((Yn=255&Vn[ar])<<er^255&Vn[ar+1])&Zn;else Qn=Q(0,255&Vn[ar]),sr--,ar++;if(Qn&&(it(!1),0===Tn.avail_out))return 0}return it(4===Un),0===Tn.avail_out?4===Un?2:0:4===Un?3:1}($n);break;case 2:gr=function(Un){for(var Qn,Dn,Gn=0;;){if(sr<262){if(at(),sr<262&&0===Un)return 0;if(0===sr)break}if(sr>=3&&(Yn=(Yn<<er^255&Vn[ar+2])&Zn,Gn=65535&Xn[Yn],Wn[ar&zn]=Xn[Yn],Xn[Yn]=ar),lr=nr,rr=or,nr=2,0!==Gn&&lr<ur&&(ar-Gn&65535)<=Hn-262&&(2!==hr&&(nr=ot(Gn)),nr<=5&&(1===hr||3===nr&&ar-or>4096)&&(nr=2)),lr>=3&&nr<=lr){Dn=ar+sr-3,Qn=Q(ar-1-rr,lr-3),sr-=lr-1,lr-=2;do{++ar<=Dn&&(Yn=(Yn<<er^255&Vn[ar+2])&Zn,Gn=65535&Xn[Yn],Wn[ar&zn]=Xn[Yn],Xn[Yn]=ar)}while(0!=--lr);if(ir=0,nr=2,ar++,Qn&&(it(!1),0===Tn.avail_out))return 0}else if(0!==ir){if((Qn=Q(0,255&Vn[ar-1]))&&it(!1),ar++,sr--,0===Tn.avail_out)return 0}else ir=1,ar++,sr--}return 0!==ir&&(Qn=Q(0,255&Vn[ar-1]),ir=0),it(4===Un),0===Tn.avail_out?4===Un?2:0:4===Un?3:1}($n)}if(2!==gr&&3!==gr||(Un=666),0===gr||2===gr)return 0===Tn.avail_out&&(Dn=-1),0;if(1===gr){if(1===$n)X(2,3),K(256,dt.static_ltree),$(),1+xr+10-Sr<9&&(X(2,3),K(256,dt.static_ltree),$()),xr=7;else if(nt(0,0,!1),3===$n)for(cr=0;cr<Jn;cr++)Xn[cr]=0;if(Tn.flush_pending(),0===Tn.avail_out)return Dn=-1,0}}return 4!==$n?0:1}}function Lt(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}function xt(Tn){var Un=new Lt,Qn=new Uint8Array(512),Dn=Tn?Tn.level:-1;void 0===Dn&&(Dn=-1),Un.deflateInit(Dn),Un.next_out=Qn,this.append=function(Tn,Dn){var Hn,Gn=[],zn=0,Vn=0,Kn=0;if(Tn.length){Un.next_in_index=0,Un.next_in=Tn,Un.avail_in=Tn.length;do{if(Un.next_out_index=0,Un.avail_out=512,0!==Un.deflate(0))throw new Error("deflating: "+Un.msg);Un.next_out_index&&(512===Un.next_out_index?Gn.push(new Uint8Array(Qn)):Gn.push(new Uint8Array(Qn.subarray(0,Un.next_out_index)))),Kn+=Un.next_out_index,Dn&&Un.next_in_index>0&&Un.next_in_index!==zn&&(Dn(Un.next_in_index),zn=Un.next_in_index)}while(Un.avail_in>0||0===Un.avail_out);return Hn=new Uint8Array(Kn),Gn.forEach((function(Tn){Hn.set(Tn,Vn),Vn+=Tn.length})),Hn}},this.flush=function(){var Tn,Dn,Hn=[],Gn=0,zn=0;do{if(Un.next_out_index=0,Un.avail_out=512,1!==(Tn=Un.deflate(4))&&0!==Tn)throw new Error("deflating: "+Un.msg);512-Un.avail_out>0&&Hn.push(new Uint8Array(Qn.subarray(0,Un.next_out_index))),zn+=Un.next_out_index}while(Un.avail_in>0||0===Un.avail_out);return Un.deflateEnd(),Dn=new Uint8Array(zn),Hn.forEach((function(Tn){Dn.set(Tn,Gn),Gn+=Tn.length})),Dn}}
|
||
/**
|
||
* @license
|
||
* jsPDF filters PlugIn
|
||
* Copyright (c) 2014 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/Lt.prototype={deflateInit:function deflateInit(Tn,Un){return this.dstate=new Nt,Un||(Un=15),this.dstate.deflateInit(this,Tn,Un)},deflate:function deflate(Tn){return this.dstate?this.dstate.deflate(this,Tn):-2},deflateEnd:function deflateEnd(){if(!this.dstate)return-2;var Tn=this.dstate.deflateEnd();return this.dstate=null,Tn},deflateParams:function deflateParams(Tn,Un){return this.dstate?this.dstate.deflateParams(this,Tn,Un):-2},deflateSetDictionary:function deflateSetDictionary(Tn,Un){return this.dstate?this.dstate.deflateSetDictionary(this,Tn,Un):-2},read_buf:function read_buf(Tn,Un,Qn){var Dn=this.avail_in;return Dn>Qn&&(Dn=Qn),0===Dn?0:(this.avail_in-=Dn,Tn.set(this.next_in.subarray(this.next_in_index,this.next_in_index+Dn),Un),this.next_in_index+=Dn,this.total_in+=Dn,Dn)},flush_pending:function flush_pending(){var Tn=this.dstate.pending;Tn>this.avail_out&&(Tn=this.avail_out),0!==Tn&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+Tn),this.next_out_index),this.next_out_index+=Tn,this.dstate.pending_out+=Tn,this.total_out+=Tn,this.avail_out-=Tn,this.dstate.pending-=Tn,0===this.dstate.pending&&(this.dstate.pending_out=0))}},function(Tn){var Un=function e(Tn){var e,Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn;for(/[^\x00-\xFF]/.test(Tn),Un=[],Qn=0,Dn=(Tn+=e="\0\0\0\0".slice(Tn.length%4||4)).length;Dn>Qn;Qn+=4)0!==(Hn=(Tn.charCodeAt(Qn)<<24)+(Tn.charCodeAt(Qn+1)<<16)+(Tn.charCodeAt(Qn+2)<<8)+Tn.charCodeAt(Qn+3))?(Gn=(Hn=((Hn=((Hn=((Hn=(Hn-(Wn=Hn%85))/85)-(Kn=Hn%85))/85)-(Vn=Hn%85))/85)-(zn=Hn%85))/85)%85,Un.push(Gn+33,zn+33,Vn+33,Kn+33,Wn+33)):Un.push(122);return function(Tn,Un){for(var Qn=Un;Qn>0;Qn--)Tn.pop()}(Un,e.length),String.fromCharCode.apply(String,Un)+"~>"},Qn=function n(Tn){var Un,n,Qn,Dn,Hn,Gn=String,zn="length",Vn=255,Kn="charCodeAt",Wn="slice",Xn="replace";for(Tn[Wn](-2),Tn=Tn[Wn](0,-2)[Xn](/\s/g,"")[Xn]("z","!!!!!"),Qn=[],Dn=0,Hn=(Tn+=Un="uuuuu"[Wn](Tn[zn]%5||5))[zn];Hn>Dn;Dn+=5)n=52200625*(Tn[Kn](Dn)-33)+614125*(Tn[Kn](Dn+1)-33)+7225*(Tn[Kn](Dn+2)-33)+85*(Tn[Kn](Dn+3)-33)+(Tn[Kn](Dn+4)-33),Qn.push(Vn&n>>24,Vn&n>>16,Vn&n>>8,Vn&n);return function(Tn,Un){for(var Qn=Un;Qn>0;Qn--)Tn.pop()}(Qn,Un[zn]),Gn.fromCharCode.apply(Gn,Qn)},Dn=function r(Tn){var Un=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(Tn=Tn.replace(/\s/g,"")).indexOf(">")&&(Tn=Tn.substr(0,Tn.indexOf(">"))),Tn.length%2&&(Tn+="0"),!1===Un.test(Tn))return"";for(var Qn="",r=0;r<Tn.length;r+=2)Qn+=String.fromCharCode("0x"+(Tn[r]+Tn[r+1]));return Qn},Hn=function i(Un){for(var Qn,Dn,i,Hn,Gn,zn=[],Vn=Un.length;Vn--;)zn[Vn]=Un.charCodeAt(Vn);return Qn=Tn.adler32cs.from(Un),i=Un=(Dn=new xt(6)).append(new Uint8Array(zn)),Hn=Dn.flush(),(Gn=new Uint8Array(i.byteLength+Hn.byteLength)).set(new Uint8Array(i),0),Gn.set(new Uint8Array(Hn),i.byteLength),Un=Gn,(zn=new Uint8Array(Un.byteLength+6)).set(new Uint8Array([120,156])),zn.set(Un,2),zn.set(new Uint8Array([255&Qn,Qn>>8&255,Qn>>16&255,Qn>>24&255]),Un.byteLength+2),zn.reduce((function(Tn,Un){return Tn+String.fromCharCode(Un)}),"")};Tn.processDataByFilters=function(Tn,Gn){var zn=0,Vn=Tn||"",Kn=[];for("string"==typeof(Gn=Gn||[])&&(Gn=[Gn]),zn=0;zn<Gn.length;zn+=1)switch(Gn[zn]){case"ASCII85Decode":case"/ASCII85Decode":Vn=Qn(Vn),Kn.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Vn=Un(Vn),Kn.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Vn=Dn(Vn),Kn.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Vn=Vn.split("").map((function(Tn){return("0"+Tn.charCodeAt().toString(16)).slice(-2)})).join("")+">",Kn.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Vn=Hn(Vn),Kn.push("/FlateDecode");break;default:throw new Error('The filter: "'+Gn[zn]+'" is not implemented')}return{data:Vn,reverseChain:Kn.reverse().join(" ")}}}(g.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(Tn){Tn.loadFile=function(Tn,Un,Qn){return function(Tn,Un,Qn){Un=!1!==Un,Qn="function"==typeof Qn?Qn:function(){};var Dn=void 0;try{Dn=function(Tn,Un,Qn){var Dn=new XMLHttpRequest,Hn=0,Gn=function a(Tn){var Un=Tn.length,Qn=[],Dn=String.fromCharCode;for(Hn=0;Hn<Un;Hn+=1)Qn.push(Dn(255&Tn.charCodeAt(Hn)));return Qn.join("")};if(Dn.open("GET",Tn,!Un),Dn.overrideMimeType("text/plain; charset=x-user-defined"),!1===Un&&(Dn.onload=function(){200===Dn.status?Qn(Gn(this.responseText)):Qn(void 0)}),Dn.send(null),Un&&200===Dn.status)return Gn(Dn.responseText)}(Tn,Un,Qn)}catch(Tn){}return Dn}(Tn,Un,Qn)},Tn.loadImageFile=Tn.loadFile}(g.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 Erik Koopmans
|
||
* Released under the MIT License.
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){function n(){return(Mf.html2canvas?Promise.resolve(Mf.html2canvas):Promise.resolve().then((function(){return dk}))).catch((function(Tn){return Promise.reject(new Error("Could not load dompurify: "+Tn))})).then((function(Tn){return Tn.default?Tn.default:Tn}))}function r(){return(Mf.DOMPurify?Promise.resolve(Mf.DOMPurify):Promise.resolve().then((function(){return _k}))).catch((function(Tn){return Promise.reject(new Error("Could not load dompurify: "+Tn))})).then((function(Tn){return Tn.default?Tn.default:Tn}))}var Un=function i(Tn){var Un=_typeof(Tn);return"undefined"===Un?"undefined":"string"===Un||Tn instanceof String?"string":"number"===Un||Tn instanceof Number?"number":"function"===Un||Tn instanceof Function?"function":Tn&&Tn.constructor===Array?"array":Tn&&1===Tn.nodeType?"element":"object"===Un?"object":"unknown"},Qn=function a(Tn,Un){var Qn=document.createElement(Tn);for(var Dn in Un.className&&(Qn.className=Un.className),Un.innerHTML&&Un.dompurify&&(Qn.innerHTML=Un.dompurify.sanitize(Un.innerHTML)),Un.style)Qn.style[Dn]=Un.style[Dn];return Qn},Dn=function t(Tn){var Un=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),Qn=t.convert(Promise.resolve(),Un);return(Qn=Qn.setProgress(1,t,1,[t])).set(Tn)};(Dn.prototype=Object.create(Promise.prototype)).constructor=Dn,Dn.convert=function(Tn,Un){return Tn.__proto__=Un||Dn.prototype,Tn},Dn.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function callback(){}},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"}},Dn.prototype.from=function(Tn,Dn){return this.then((function(){switch(Dn=Dn||function(Tn){switch(Un(Tn)){case"string":return"string";case"element":return"canvas"===Tn.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(Tn)){case"string":return this.then(r).then((function(Un){return this.set({src:Qn("div",{innerHTML:Tn,dompurify:Un})})}));case"element":return this.set({src:Tn});case"canvas":return this.set({canvas:Tn});case"img":return this.set({img:Tn});default:return this.error("Unknown source type.")}}))},Dn.prototype.to=function(Tn){switch(Tn){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.")}},Dn.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 Tn={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Un=function o(Tn,Un){for(var Qn=3===Tn.nodeType?document.createTextNode(Tn.nodeValue):Tn.cloneNode(!1),Dn=Tn.firstChild;Dn;Dn=Dn.nextSibling)!0!==Un&&1===Dn.nodeType&&"SCRIPT"===Dn.nodeName||Qn.appendChild(o(Dn,Un));return 1===Tn.nodeType&&("CANVAS"===Tn.nodeName?(Qn.width=Tn.width,Qn.height=Tn.height,Qn.getContext("2d").drawImage(Tn,0,0)):"TEXTAREA"!==Tn.nodeName&&"SELECT"!==Tn.nodeName||(Qn.value=Tn.value),Qn.addEventListener("load",(function(){Qn.scrollTop=Tn.scrollTop,Qn.scrollLeft=Tn.scrollLeft}),!0)),Qn}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===Un.tagName&&(Tn.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Qn("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Qn("div",{className:"html2pdf__container",style:Tn}),this.prop.container.appendChild(Un),this.prop.container.firstChild.appendChild(Qn("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"}))},Dn.prototype.toCanvas=function(){var Tn=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Tn).then(n).then((function(Tn){var Un=Object.assign({},this.opt.html2canvas);return delete Un.onrendered,Tn(this.prop.container,Un)})).then((function(Tn){(this.opt.html2canvas.onrendered||function(){})(Tn),this.prop.canvas=Tn,document.body.removeChild(this.prop.overlay)}))},Dn.prototype.toContext2d=function(){var Tn=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Tn).then(n).then((function(Tn){var Un=this.opt.jsPDF,Qn=Object.assign({async:!0,allowTaint:!0,scale:1,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);return delete Qn.onrendered,Un.context2d.autoPaging=!0,Un.context2d.posX=this.opt.x,Un.context2d.posY=this.opt.y,Qn.windowHeight=Qn.windowHeight||0,Qn.windowHeight=0==Qn.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Qn.windowHeight,Tn(this.prop.container,Qn)})).then((function(Tn){(this.opt.html2canvas.onrendered||function(){})(Tn),this.prop.canvas=Tn,document.body.removeChild(this.prop.overlay)}))},Dn.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var Tn=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Tn}))},Dn.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},Dn.prototype.output=function(Tn,Un,Qn){return"img"===(Qn=Qn||"pdf").toLowerCase()||"image"===Qn.toLowerCase()?this.outputImg(Tn,Un):this.outputPdf(Tn,Un)},Dn.prototype.outputPdf=function(Tn,Un){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(Tn,Un)}))},Dn.prototype.outputImg=function(Tn){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(Tn){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 "'+Tn+'" is not supported.'}}))},Dn.prototype.save=function(Tn){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Tn?{filename:Tn}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},Dn.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},Dn.prototype.set=function(Tn){if("object"!==Un(Tn))return this;var Qn=Object.keys(Tn||{}).map((function(Un){if(Un in Dn.template.prop)return function(){this.prop[Un]=Tn[Un]};switch(Un){case"margin":return this.setMargin.bind(this,Tn.margin);case"jsPDF":return function(){return this.opt.jsPDF=Tn.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Tn.pageSize);default:return function(){this.opt[Un]=Tn[Un]}}}),this);return this.then((function(){return this.thenList(Qn)}))},Dn.prototype.get=function(Tn,Un){return this.then((function(){var Qn=Tn in Dn.template.prop?this.prop[Tn]:this.opt[Tn];return Un?Un(Qn):Qn}))},Dn.prototype.setMargin=function(Tn){return this.then((function(){switch(Un(Tn)){case"number":Tn=[Tn,Tn,Tn,Tn];case"array":if(2===Tn.length&&(Tn=[Tn[0],Tn[1],Tn[0],Tn[1]]),4===Tn.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=Tn})).then(this.setPageSize)},Dn.prototype.setPageSize=function(Tn){function e(Tn,Un){return Math.floor(Tn*Un/72*96)}return this.then((function(){(Tn=Tn||g.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Tn.inner={width:Tn.width-this.opt.margin[1]-this.opt.margin[3],height:Tn.height-this.opt.margin[0]-this.opt.margin[2]},Tn.inner.px={width:e(Tn.inner.width,Tn.k),height:e(Tn.inner.height,Tn.k)},Tn.inner.ratio=Tn.inner.height/Tn.inner.width),this.prop.pageSize=Tn}))},Dn.prototype.setProgress=function(Tn,Un,Qn,Dn){return null!=Tn&&(this.progress.val=Tn),null!=Un&&(this.progress.state=Un),null!=Qn&&(this.progress.n=Qn),null!=Dn&&(this.progress.stack=Dn),this.progress.ratio=this.progress.val/this.progress.state,this},Dn.prototype.updateProgress=function(Tn,Un,Qn,Dn){return this.setProgress(Tn?this.progress.val+Tn:null,Un||null,Qn?this.progress.n+Qn:null,Dn?this.progress.stack.concat(Dn):null)},Dn.prototype.then=function(Tn,Un){var Qn=this;return this.thenCore(Tn,Un,(function(Tn,Un){return Qn.updateProgress(null,null,1,[Tn]),Promise.prototype.then.call(this,(function(Un){return Qn.updateProgress(null,Tn),Un})).then(Tn,Un).then((function(Tn){return Qn.updateProgress(1),Tn}))}))},Dn.prototype.thenCore=function(Tn,Un,Qn){Qn=Qn||Promise.prototype.then,Tn&&(Tn=Tn.bind(this)),Un&&(Un=Un.bind(this));var Hn=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:Dn.convert(Object.assign({},this),Promise.prototype),Gn=Qn.call(Hn,Tn,Un);return Dn.convert(Gn,this.__proto__)},Dn.prototype.thenExternal=function(Tn,Un){return Promise.prototype.then.call(this,Tn,Un)},Dn.prototype.thenList=function(Tn){var Un=this;return Tn.forEach((function(Tn){Un=Un.thenCore(Tn)})),Un},Dn.prototype.catch=function(Tn){Tn&&(Tn=Tn.bind(this));var Un=Promise.prototype.catch.call(this,Tn);return Dn.convert(Un,this)},Dn.prototype.catchExternal=function(Tn){return Promise.prototype.catch.call(this,Tn)},Dn.prototype.error=function(Tn){return this.then((function(){throw new Error(Tn)}))},Dn.prototype.using=Dn.prototype.set,Dn.prototype.saveAs=Dn.prototype.save,Dn.prototype.export=Dn.prototype.output,Dn.prototype.run=Dn.prototype.then,g.getPageSize=function(Tn,Un,Qn){if("object"==_typeof(Tn)){var Dn=Tn;Tn=Dn.orientation,Un=Dn.unit||Un,Qn=Dn.format||Qn}Un=Un||"mm",Qn=Qn||"a4",Tn=(""+(Tn||"P")).toLowerCase();var Hn,Gn=(""+Qn).toLowerCase(),zn={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(Un){case"pt":Hn=1;break;case"mm":Hn=72/25.4;break;case"cm":Hn=72/2.54;break;case"in":Hn=72;break;case"px":Hn=.75;break;case"pc":case"em":Hn=12;break;case"ex":Hn=6;break;default:throw"Invalid unit: "+Un}var Vn,Kn=0,Wn=0;if(zn.hasOwnProperty(Gn))Kn=zn[Gn][1]/Hn,Wn=zn[Gn][0]/Hn;else try{Kn=Qn[1],Wn=Qn[0]}catch(Tn){throw new Error("Invalid format: "+Qn)}if("p"===Tn||"portrait"===Tn)Tn="p",Wn>Kn&&(Vn=Wn,Wn=Kn,Kn=Vn);else{if("l"!==Tn&&"landscape"!==Tn)throw"Invalid orientation: "+Tn;Tn="l",Kn>Wn&&(Vn=Wn,Wn=Kn,Kn=Vn)}return{width:Wn,height:Kn,unit:Un,k:Hn,orientation:Tn}},Tn.html=function(Tn,Un){(Un=Un||{}).callback=Un.callback||function(){},Un.html2canvas=Un.html2canvas||{},Un.html2canvas.canvas=Un.html2canvas.canvas||this.canvas,Un.jsPDF=Un.jsPDF||this;var Qn=new Dn(Un);return Un.worker?Qn:Qn.from(Tn).doCallback()}}(g.API),g.API.addJS=function(Tn){return Og=Tn,this.internal.events.subscribe("postPutResources",(function(){Mg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Mg+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Qg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Og+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==Mg&&void 0!==Qg&&this.internal.out("/Names <</JavaScript "+Mg+" 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(Tn){var Un;Tn.events.push(["postPutResources",function(){var Tn=this,Qn=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Dn=Tn.outline.render().split(/\r\n/),Hn=0;Hn<Dn.length;Hn++){var Gn=Dn[Hn],zn=Qn.exec(Gn);if(null!=zn){var Vn=zn[1];Tn.internal.newObjectDeferredBegin(Vn,!1)}Tn.internal.write(Gn)}if(this.outline.createNamedDestinations){var Kn=this.internal.pages.length,Wn=[];for(Hn=0;Hn<Kn;Hn++){var Xn=Tn.internal.newObject();Wn.push(Xn);var Yn=Tn.internal.getPageInfo(Hn+1);Tn.internal.write("<< /D["+Yn.objId+" 0 R /XYZ null null null]>> endobj")}var Jn=Tn.internal.newObject();for(Tn.internal.write("<< /Names [ "),Hn=0;Hn<Wn.length;Hn++)Tn.internal.write("(page_"+(Hn+1)+")"+Wn[Hn]+" 0 R");Tn.internal.write(" ] >>","endobj"),Un=Tn.internal.newObject(),Tn.internal.write("<< /Dests "+Jn+" 0 R"),Tn.internal.write(">>","endobj")}}]),Tn.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 "+Un+" 0 R"))}]),Tn.events.push(["initialized",function(){var Tn=this;Tn.outline={createNamedDestinations:!1,root:{children:[]}},Tn.outline.add=function(Tn,Un,Qn){var Dn={title:Un,options:Qn,children:[]};return null==Tn&&(Tn=this.root),Tn.children.push(Dn),Dn},Tn.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Tn,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Tn.outline.genIds_r=function(Un){Un.id=Tn.internal.newObjectDeferred();for(var Qn=0;Qn<Un.children.length;Qn++)this.genIds_r(Un.children[Qn])},Tn.outline.renderRoot=function(Tn){this.objStart(Tn),this.line("/Type /Outlines"),Tn.children.length>0&&(this.line("/First "+this.makeRef(Tn.children[0])),this.line("/Last "+this.makeRef(Tn.children[Tn.children.length-1]))),this.line("/Count "+this.count_r({count:0},Tn)),this.objEnd()},Tn.outline.renderItems=function(Un){for(var Qn=this.ctx.pdf.internal.getVerticalCoordinateString,Dn=0;Dn<Un.children.length;Dn++){var Hn=Un.children[Dn];this.objStart(Hn),this.line("/Title "+this.makeString(Hn.title)),this.line("/Parent "+this.makeRef(Un)),Dn>0&&this.line("/Prev "+this.makeRef(Un.children[Dn-1])),Dn<Un.children.length-1&&this.line("/Next "+this.makeRef(Un.children[Dn+1])),Hn.children.length>0&&(this.line("/First "+this.makeRef(Hn.children[0])),this.line("/Last "+this.makeRef(Hn.children[Hn.children.length-1])));var Gn=this.count=this.count_r({count:0},Hn);if(Gn>0&&this.line("/Count "+Gn),Hn.options&&Hn.options.pageNumber){var zn=Tn.internal.getPageInfo(Hn.options.pageNumber);this.line("/Dest ["+zn.objId+" 0 R /XYZ 0 "+Qn(0)+" 0]")}this.objEnd()}for(var Vn=0;Vn<Un.children.length;Vn++)this.renderItems(Un.children[Vn])},Tn.outline.line=function(Tn){this.ctx.val+=Tn+"\r\n"},Tn.outline.makeRef=function(Tn){return Tn.id+" 0 R"},Tn.outline.makeString=function(Un){return"("+Tn.internal.pdfEscape(Un)+")"},Tn.outline.objStart=function(Tn){this.ctx.val+="\r\n"+Tn.id+" 0 obj\r\n<<\r\n"},Tn.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},Tn.outline.count_r=function(Tn,Un){for(var Qn=0;Qn<Un.children.length;Qn++)Tn.count++,this.count_r(Tn,Un.children[Qn]);return Tn.count}}])}(g.API),
|
||
/**
|
||
* @license
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){var Un=[192,193,194,195,196,197,198,199];Tn.processJPEG=function(Tn,Qn,Dn,Hn,Gn,zn){var Vn,Kn=this.decode.DCT_DECODE,Wn=null;if("string"==typeof Tn||this.__addimage__.isArrayBuffer(Tn)||this.__addimage__.isArrayBufferView(Tn)){switch(Tn=Gn||Tn,Tn=this.__addimage__.isArrayBuffer(Tn)?new Uint8Array(Tn):Tn,(Vn=function(Tn){for(var Qn,Dn=256*Tn.charCodeAt(4)+Tn.charCodeAt(5),Hn=Tn.length,Gn={width:0,height:0,numcomponents:1},zn=4;zn<Hn;zn+=2){if(zn+=Dn,-1!==Un.indexOf(Tn.charCodeAt(zn+1))){Qn=256*Tn.charCodeAt(zn+5)+Tn.charCodeAt(zn+6),Gn={width:256*Tn.charCodeAt(zn+7)+Tn.charCodeAt(zn+8),height:Qn,numcomponents:Tn.charCodeAt(zn+9)};break}Dn=256*Tn.charCodeAt(zn+2)+Tn.charCodeAt(zn+3)}return Gn}(Tn=this.__addimage__.isArrayBufferView(Tn)?this.__addimage__.arrayBufferToBinaryString(Tn):Tn)).numcomponents){case 1:zn=this.color_spaces.DEVICE_GRAY;break;case 4:zn=this.color_spaces.DEVICE_CMYK;break;case 3:zn=this.color_spaces.DEVICE_RGB}Wn={data:Tn,width:Vn.width,height:Vn.height,colorSpace:zn,bitsPerComponent:8,filter:Kn,index:Qn,alias:Dn}}return Wn}}(g.API);
|
||
/**
|
||
* @license
|
||
* Extracted from pdf.js
|
||
* https://github.com/andreasgal/pdf.js
|
||
*
|
||
* Copyright (c) 2011 Mozilla Foundation
|
||
*
|
||
* Contributors: Andreas Gal <gal@mozilla.com>
|
||
* Chris G Jones <cjones@mozilla.com>
|
||
* Shaon Barman <shaon.barman@gmail.com>
|
||
* Vivien Nicolas <21@vingtetun.org>
|
||
* Justin D'Arcangelo <justindarc@gmail.com>
|
||
* Yury Delendik
|
||
*
|
||
* 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 Hg,Gg,zg,Vg,Kg,qg=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function ensureBuffer(Tn){var Un=this.buffer,Qn=Un?Un.byteLength:0;if(Tn<Qn)return Un;for(var Dn=512;Dn<Tn;)Dn<<=1;for(var Hn=new Uint8Array(Dn),Gn=0;Gn<Qn;++Gn)Hn[Gn]=Un[Gn];return this.buffer=Hn},getByte:function getByte(){for(var Tn=this.pos;this.bufferLength<=Tn;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function getBytes(Tn){var Un=this.pos;if(Tn){this.ensureBuffer(Un+Tn);for(var Qn=Un+Tn;!this.eof&&this.bufferLength<Qn;)this.readBlock();var Dn=this.bufferLength;Qn>Dn&&(Qn=Dn)}else{for(;!this.eof;)this.readBlock();Qn=this.bufferLength}return this.pos=Qn,this.buffer.subarray(Un,Qn)},lookChar:function lookChar(){for(var Tn=this.pos;this.bufferLength<=Tn;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function getChar(){for(var Tn=this.pos;this.bufferLength<=Tn;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function makeSubStream(Tn,Un,Qn){for(var Dn=Tn+Un;this.bufferLength<=Dn&&!this.eof;)this.readBlock();return new Stream(this.buffer,Tn,Un,Qn)},skip:function skip(Tn){Tn||(Tn=1),this.pos+=Tn},reset:function reset(){this.pos=0}},t}(),Wg=("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==Nf&&Nf||Function('return typeof this === "object" && this.content')()||Function("return this")()).FlateStream=function(){if("undefined"!=typeof Uint32Array){var Tn=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Un=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),Qn=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),Dn=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],Hn=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return o.prototype=Object.create(qg.prototype),o.prototype.getBits=function(Tn){for(var Un,Qn=this.codeSize,Dn=this.codeBuf,Hn=this.bytes,Gn=this.bytesPos;Qn<Tn;)void 0===(Un=Hn[Gn++])&&a("Bad encoding in flate stream"),Dn|=Un<<Qn,Qn+=8;return Un=Dn&(1<<Tn)-1,this.codeBuf=Dn>>Tn,this.codeSize=Qn-=Tn,this.bytesPos=Gn,Un},o.prototype.getCode=function(Tn){for(var Un=Tn[0],Qn=Tn[1],Dn=this.codeSize,Hn=this.codeBuf,Gn=this.bytes,zn=this.bytesPos;Dn<Qn;){var Vn;void 0===(Vn=Gn[zn++])&&a("Bad encoding in flate stream"),Hn|=Vn<<Dn,Dn+=8}var Kn=Un[Hn&(1<<Qn)-1],Wn=Kn>>16,Xn=65535&Kn;return(0==Dn||Dn<Wn||0==Wn)&&a("Bad encoding in flate stream"),this.codeBuf=Hn>>Wn,this.codeSize=Dn-Wn,this.bytesPos=zn,Xn},o.prototype.generateHuffmanTable=function(Tn){for(var Un=Tn.length,Qn=0,Dn=0;Dn<Un;++Dn)Tn[Dn]>Qn&&(Qn=Tn[Dn]);for(var Hn=1<<Qn,Gn=new Uint32Array(Hn),zn=1,Vn=0,Kn=2;zn<=Qn;++zn,Vn<<=1,Kn<<=1)for(var Wn=0;Wn<Un;++Wn)if(Tn[Wn]==zn){var Xn=0,Yn=Vn;for(Dn=0;Dn<zn;++Dn)Xn=Xn<<1|1&Yn,Yn>>=1;for(Dn=Xn;Dn<Hn;Dn+=Kn)Gn[Dn]=zn<<16|Wn;++Vn}return[Gn,Qn]},o.prototype.readBlock=function(){function o(Tn,Un,Qn,Dn,Hn){for(var Gn=Tn.getBits(Qn)+Dn;Gn-- >0;)Un[Jn++]=Hn}var Gn=this.getBits(3);if(1&Gn&&(this.eof=!0),0!=(Gn>>=1)){var zn,Vn;if(1==Gn)zn=Dn,Vn=Hn;else if(2==Gn){for(var Kn=this.getBits(5)+257,Wn=this.getBits(5)+1,Xn=this.getBits(4)+4,Yn=Array(Tn.length),Jn=0;Jn<Xn;)Yn[Tn[Jn++]]=this.getBits(3);for(var $n=this.generateHuffmanTable(Yn),Zn=0,er=(Jn=0,Kn+Wn),tr=new Array(er);Jn<er;){var nr=this.getCode($n);16==nr?o(this,tr,2,3,Zn):17==nr?o(this,tr,3,3,Zn=0):18==nr?o(this,tr,7,11,Zn=0):tr[Jn++]=Zn=nr}zn=this.generateHuffmanTable(tr.slice(0,Kn)),Vn=this.generateHuffmanTable(tr.slice(Kn,er))}else a("Unknown block type in flate stream");for(var rr=(fr=this.buffer)?fr.length:0,ir=this.bufferLength;;){var ar=this.getCode(zn);if(ar<256)ir+1>=rr&&(rr=(fr=this.ensureBuffer(ir+1)).length),fr[ir++]=ar;else{if(256==ar)return void(this.bufferLength=ir);var or=(ar=Un[ar-=257])>>16;or>0&&(or=this.getBits(or)),Zn=(65535&ar)+or,ar=this.getCode(Vn),(or=(ar=Qn[ar])>>16)>0&&(or=this.getBits(or));var sr=(65535&ar)+or;ir+Zn>=rr&&(rr=(fr=this.ensureBuffer(ir+Zn)).length);for(var lr=0;lr<Zn;++lr,++ir)fr[ir]=fr[ir-sr]}}}else{var cr,ur=this.bytes,dr=this.bytesPos;void 0===(cr=ur[dr++])&&a("Bad block header in flate stream");var hr=cr;void 0===(cr=ur[dr++])&&a("Bad block header in flate stream"),hr|=cr<<8,void 0===(cr=ur[dr++])&&a("Bad block header in flate stream");var pr=cr;void 0===(cr=ur[dr++])&&a("Bad block header in flate stream"),(pr|=cr<<8)!=(65535&~hr)&&a("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var Ar=this.bufferLength,fr=this.ensureBuffer(Ar+hr),gr=Ar+hr;this.bufferLength=gr;for(var mr=Ar;mr<gr;++mr){if(void 0===(cr=ur[dr++])){this.eof=!0;break}fr[mr]=cr}this.bytesPos=dr}},o}function a(Tn){throw new Error(Tn)}function o(Tn){var Un=0,Qn=Tn[Un++],Dn=Tn[Un++];-1!=Qn&&-1!=Dn||a("Invalid header in flate stream"),8!=(15&Qn)&&a("Unknown compression method in flate stream"),((Qn<<8)+Dn)%31!=0&&a("Bad FCHECK in flate stream"),32&Dn&&a("FDICT bit set in flate stream"),this.bytes=Tn,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,qg.call(this)}}(),Xg=function(){var Tn,Un,Qn;function i(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn;for(this.data=Tn,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},zn=null;;){switch(Un=this.readUInt32(),Wn=function(){var Tn,Un;for(Un=[],Tn=0;Tn<4;++Tn)Un.push(String.fromCharCode(this.data[this.pos++]));return Un}.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(Un);break;case"fcTL":zn&&this.animation.frames.push(zn),this.pos+=4,zn={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Gn=this.readUInt16(),Hn=this.readUInt16()||100,zn.delay=1e3*Gn/Hn,zn.disposeOp=this.data[this.pos++],zn.blendOp=this.data[this.pos++],zn.data=[];break;case"IDAT":case"fdAT":for("fdAT"===Wn&&(this.pos+=4,Un-=4),Tn=(null!=zn?zn.data:void 0)||this.imgData,Jn=0;0<=Un?Jn<Un:Jn>Un;0<=Un?++Jn:--Jn)Tn.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(Dn=this.palette.length/3,this.transparency.indexed=this.read(Un),this.transparency.indexed.length>Dn)throw new Error("More transparent colors than palette size");if((Xn=Dn-this.transparency.indexed.length)>0)for($n=0;0<=Xn?$n<Xn:$n>Xn;0<=Xn?++$n:--$n)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(Un)[0];break;case 2:this.transparency.rgb=this.read(Un)}break;case"tEXt":Vn=(Yn=this.read(Un)).indexOf(0),Kn=String.fromCharCode.apply(String,Yn.slice(0,Vn)),this.text[Kn]=String.fromCharCode.apply(String,Yn.slice(Vn+1));break;case"IEND":return zn&&this.animation.frames.push(zn),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===(Zn=this.colorType)||6===Zn,Qn=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Qn,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+=Un}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(Tn){var Un,Qn;for(Qn=[],Un=0;0<=Tn?Un<Tn:Un>Tn;0<=Tn?++Un:--Un)Qn.push(this.data[this.pos++]);return Qn},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(Tn){var Un=this.pixelBitlength/8,Qn=new Uint8Array(this.width*this.height*Un),Dn=0,Hn=this;if(null==Tn&&(Tn=this.imgData),0===Tn.length)return new Uint8Array(0);function a(Gn,zn,Vn,Kn){var Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr,rr,ir,ar,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr=Math.ceil((Hn.width-Gn)/Vn),gr=Math.ceil((Hn.height-zn)/Kn),mr=Hn.width==fr&&Hn.height==gr;for(sr=Un*fr,ar=mr?Qn:new Uint8Array(sr*gr),Zn=Tn.length,or=0,Xn=0;or<gr&&Dn<Zn;){switch(Tn[Dn++]){case 0:for(Jn=ur=0;ur<sr;Jn=ur+=1)ar[Xn++]=Tn[Dn++];break;case 1:for(Jn=dr=0;dr<sr;Jn=dr+=1)Wn=Tn[Dn++],$n=Jn<Un?0:ar[Xn-Un],ar[Xn++]=(Wn+$n)%256;break;case 2:for(Jn=hr=0;hr<sr;Jn=hr+=1)Wn=Tn[Dn++],Yn=(Jn-Jn%Un)/Un,lr=or&&ar[(or-1)*sr+Yn*Un+Jn%Un],ar[Xn++]=(lr+Wn)%256;break;case 3:for(Jn=pr=0;pr<sr;Jn=pr+=1)Wn=Tn[Dn++],Yn=(Jn-Jn%Un)/Un,$n=Jn<Un?0:ar[Xn-Un],lr=or&&ar[(or-1)*sr+Yn*Un+Jn%Un],ar[Xn++]=(Wn+Math.floor(($n+lr)/2))%256;break;case 4:for(Jn=Ar=0;Ar<sr;Jn=Ar+=1)Wn=Tn[Dn++],Yn=(Jn-Jn%Un)/Un,$n=Jn<Un?0:ar[Xn-Un],0===or?lr=cr=0:(lr=ar[(or-1)*sr+Yn*Un+Jn%Un],cr=Yn&&ar[(or-1)*sr+(Yn-1)*Un+Jn%Un]),er=$n+lr-cr,tr=Math.abs(er-$n),rr=Math.abs(er-lr),ir=Math.abs(er-cr),nr=tr<=rr&&tr<=ir?$n:rr<=ir?lr:cr,ar[Xn++]=(Wn+nr)%256;break;default:throw new Error("Invalid filter algorithm: "+Tn[Dn-1])}if(!mr){var _r=((zn+or*Kn)*Hn.width+Gn)*Un,vr=or*sr;for(Jn=0;Jn<fr;Jn+=1){for(var yr=0;yr<Un;yr+=1)Qn[_r++]=ar[vr++];_r+=(Vn-1)*Un}}or++}}return Tn=(Tn=new Wg(Tn)).getBytes(),1==Hn.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),Qn},i.prototype.decodePalette=function(){var Tn,Un,Qn,Dn,Hn,Gn,zn,Vn,Kn;for(Qn=this.palette,Gn=this.transparency.indexed||[],Hn=new Uint8Array((Gn.length||0)+Qn.length),Dn=0,Tn=0,Un=zn=0,Vn=Qn.length;zn<Vn;Un=zn+=3)Hn[Dn++]=Qn[Un],Hn[Dn++]=Qn[Un+1],Hn[Dn++]=Qn[Un+2],Hn[Dn++]=null!=(Kn=Gn[Tn++])?Kn:255;return Hn},i.prototype.copyToImageData=function(Tn,Un){var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn;if(Dn=this.colors,Xn=null,Qn=this.hasAlphaChannel,this.palette.length&&(Xn=null!=(Jn=this._decodedPalette)?Jn:this._decodedPalette=this.decodePalette(),Dn=4,Qn=!0),Wn=(Hn=Tn.data||Tn).length,zn=Xn||Un,Gn=Vn=0,1===Dn)for(;Gn<Wn;)Kn=Xn?4*Un[Gn/4]:Vn,Yn=zn[Kn++],Hn[Gn++]=Yn,Hn[Gn++]=Yn,Hn[Gn++]=Yn,Hn[Gn++]=Qn?zn[Kn++]:255,Vn=Kn;else for(;Gn<Wn;)Kn=Xn?4*Un[Gn/4]:Vn,Hn[Gn++]=zn[Kn++],Hn[Gn++]=zn[Kn++],Hn[Gn++]=zn[Kn++],Hn[Gn++]=Qn?zn[Kn++]:255,Vn=Kn},i.prototype.decode=function(){var Tn;return Tn=new Uint8Array(this.width*this.height*4),this.copyToImageData(Tn,this.decodePixels()),Tn};var Dn=function a(){if("[object Window]"===Object.prototype.toString.call(Mf)){try{Un=Mf.document.createElement("canvas"),Qn=Un.getContext("2d")}catch(Tn){return!1}return!0}return!1};return Dn(),Tn=function e(Tn){var e;if(!0===Dn())return Qn.width=Tn.width,Qn.height=Tn.height,Qn.clearRect(0,0,Tn.width,Tn.height),Qn.putImageData(Tn,0,0),(e=new Image).src=Un.toDataURL(),e;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(Un){var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn;if(this.animation){for(Wn=[],Dn=zn=0,Vn=(Kn=this.animation.frames).length;zn<Vn;Dn=++zn)Qn=Kn[Dn],Hn=Un.createImageData(Qn.width,Qn.height),Gn=this.decodePixels(new Uint8Array(Qn.data)),this.copyToImageData(Hn,Gn),Qn.imageData=Hn,Wn.push(Qn.image=Tn(Hn));return Wn}},i.prototype.renderFrame=function(Tn,Un){var Qn,Dn,Hn;return Qn=(Dn=this.animation.frames)[Un],Hn=Dn[Un-1],0===Un&&Tn.clearRect(0,0,this.width,this.height),1===(null!=Hn?Hn.disposeOp:void 0)?Tn.clearRect(Hn.xOffset,Hn.yOffset,Hn.width,Hn.height):2===(null!=Hn?Hn.disposeOp:void 0)&&Tn.putImageData(Hn.imageData,Hn.xOffset,Hn.yOffset),0===Qn.blendOp&&Tn.clearRect(Qn.xOffset,Qn.yOffset,Qn.width,Qn.height),Tn.drawImage(Qn.image,Qn.xOffset,Qn.yOffset)},i.prototype.animate=function(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn=this;return Qn=0,zn=this.animation,Hn=zn.numFrames,Dn=zn.frames,Gn=zn.numPlays,(Un=function e(){var zn,Kn;if(zn=Qn++%Hn,Kn=Dn[zn],Vn.renderFrame(Tn,zn),Hn>1&&Qn/Hn<Gn)return Vn.animation._timeout=setTimeout(Un,Kn.delay)})()},i.prototype.stopAnimation=function(){var Tn;return clearTimeout(null!=(Tn=this.animation)?Tn._timeout:void 0)},i.prototype.render=function(Tn){var Un,Qn;return Tn._png&&Tn._png.stopAnimation(),Tn._png=this,Tn.width=this.width,Tn.height=this.height,Un=Tn.getContext("2d"),this.animation?(this.decodeFrames(Un),this.animate(Un)):(Qn=Un.createImageData(this.width,this.height),this.copyToImageData(Qn,this.decodePixels()),Un.putImageData(Qn,0,0))},i}();
|
||
/**
|
||
* @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 jt(Tn){var Un=0;if(71!==Tn[Un++]||73!==Tn[Un++]||70!==Tn[Un++]||56!==Tn[Un++]||56!=(Tn[Un++]+1&253)||97!==Tn[Un++])throw new Error("Invalid GIF 87a/89a header.");var Qn=Tn[Un++]|Tn[Un++]<<8,Dn=Tn[Un++]|Tn[Un++]<<8,Hn=Tn[Un++],Gn=Hn>>7,zn=1<<1+(7&Hn);Tn[Un++],Tn[Un++];var Vn=null,Kn=null;Gn&&(Vn=Un,Kn=zn,Un+=3*zn);var Wn=!0,Xn=[],Yn=0,Jn=null,$n=0,Zn=null;for(this.width=Qn,this.height=Dn;Wn&&Un<Tn.length;)switch(Tn[Un++]){case 33:switch(Tn[Un++]){case 255:if(11!==Tn[Un]||78==Tn[Un+1]&&69==Tn[Un+2]&&84==Tn[Un+3]&&83==Tn[Un+4]&&67==Tn[Un+5]&&65==Tn[Un+6]&&80==Tn[Un+7]&&69==Tn[Un+8]&&50==Tn[Un+9]&&46==Tn[Un+10]&&48==Tn[Un+11]&&3==Tn[Un+12]&&1==Tn[Un+13]&&0==Tn[Un+16])Un+=14,Zn=Tn[Un++]|Tn[Un++]<<8,Un++;else for(Un+=12;;){if(!((hr=Tn[Un++])>=0))throw Error("Invalid block size");if(0===hr)break;Un+=hr}break;case 249:if(4!==Tn[Un++]||0!==Tn[Un+4])throw new Error("Invalid graphics extension block.");var er=Tn[Un++];Yn=Tn[Un++]|Tn[Un++]<<8,Jn=Tn[Un++],0==(1&er)&&(Jn=null),$n=er>>2&7,Un++;break;case 254:for(;;){if(!((hr=Tn[Un++])>=0))throw Error("Invalid block size");if(0===hr)break;Un+=hr}break;default:throw new Error("Unknown graphic control label: 0x"+Tn[Un-1].toString(16))}break;case 44:var tr=Tn[Un++]|Tn[Un++]<<8,nr=Tn[Un++]|Tn[Un++]<<8,rr=Tn[Un++]|Tn[Un++]<<8,ir=Tn[Un++]|Tn[Un++]<<8,ar=Tn[Un++],or=ar>>6&1,sr=1<<1+(7&ar),lr=Vn,cr=Kn,ur=!1;ar>>7&&(ur=!0,lr=Un,cr=sr,Un+=3*sr);var dr=Un;for(Un++;;){var hr;if(!((hr=Tn[Un++])>=0))throw Error("Invalid block size");if(0===hr)break;Un+=hr}Xn.push({x:tr,y:nr,width:rr,height:ir,has_local_palette:ur,palette_offset:lr,palette_size:cr,data_offset:dr,data_length:Un-dr,transparent_index:Jn,interlaced:!!or,delay:Yn,disposal:$n});break;case 59:Wn=!1;break;default:throw new Error("Unknown gif block: 0x"+Tn[Un-1].toString(16))}this.numFrames=function(){return Xn.length},this.loopCount=function(){return Zn},this.frameInfo=function(Tn){if(Tn<0||Tn>=Xn.length)throw new Error("Frame index out of range.");return Xn[Tn]},this.decodeAndBlitFrameBGRA=function(Un,Dn){var Hn=this.frameInfo(Un),Gn=Hn.width*Hn.height,zn=new Uint8Array(Gn);Bt(Tn,Hn.data_offset,zn,Gn);var Vn=Hn.palette_offset,Kn=Hn.transparent_index;null===Kn&&(Kn=256);var Wn=Hn.width,Xn=Qn-Wn,Yn=Wn,Jn=4*(Hn.y*Qn+Hn.x),$n=4*((Hn.y+Hn.height)*Qn+Hn.x),Zn=Jn,er=4*Xn;!0===Hn.interlaced&&(er+=4*Qn*7);for(var tr=8,nr=0,rr=zn.length;nr<rr;++nr){var ir=zn[nr];if(0===Yn&&(Yn=Wn,(Zn+=er)>=$n&&(er=4*Xn+4*Qn*(tr-1),Zn=Jn+(Wn+Xn)*(tr<<1),tr>>=1)),ir===Kn)Zn+=4;else{var ar=Tn[Vn+3*ir],or=Tn[Vn+3*ir+1],sr=Tn[Vn+3*ir+2];Dn[Zn++]=sr,Dn[Zn++]=or,Dn[Zn++]=ar,Dn[Zn++]=255}--Yn}},this.decodeAndBlitFrameRGBA=function(Un,Dn){var Hn=this.frameInfo(Un),Gn=Hn.width*Hn.height,zn=new Uint8Array(Gn);Bt(Tn,Hn.data_offset,zn,Gn);var Vn=Hn.palette_offset,Kn=Hn.transparent_index;null===Kn&&(Kn=256);var Wn=Hn.width,Xn=Qn-Wn,Yn=Wn,Jn=4*(Hn.y*Qn+Hn.x),$n=4*((Hn.y+Hn.height)*Qn+Hn.x),Zn=Jn,er=4*Xn;!0===Hn.interlaced&&(er+=4*Qn*7);for(var tr=8,nr=0,rr=zn.length;nr<rr;++nr){var ir=zn[nr];if(0===Yn&&(Yn=Wn,(Zn+=er)>=$n&&(er=4*Xn+4*Qn*(tr-1),Zn=Jn+(Wn+Xn)*(tr<<1),tr>>=1)),ir===Kn)Zn+=4;else{var ar=Tn[Vn+3*ir],or=Tn[Vn+3*ir+1],sr=Tn[Vn+3*ir+2];Dn[Zn++]=ar,Dn[Zn++]=or,Dn[Zn++]=sr,Dn[Zn++]=255}--Yn}}}function Bt(Tn,Un,Qn,Dn){for(var Hn=Tn[Un++],Gn=1<<Hn,zn=Gn+1,Vn=zn+1,Kn=Hn+1,Wn=(1<<Kn)-1,Xn=0,Yn=0,Jn=0,$n=Tn[Un++],Zn=new Int32Array(4096),er=null;;){for(;Xn<16&&0!==$n;)Yn|=Tn[Un++]<<Xn,Xn+=8,1===$n?$n=Tn[Un++]:--$n;if(Xn<Kn)break;var tr=Yn&Wn;if(Yn>>=Kn,Xn-=Kn,tr!==Gn){if(tr===zn)break;for(var nr=tr<Vn?tr:er,rr=0,ir=nr;ir>Gn;)ir=Zn[ir]>>8,++rr;var ar=ir;if(Jn+rr+(nr!==tr?1:0)>Dn)return void Qf.log("Warning, gif stream longer than expected.");Qn[Jn++]=ar;var or=Jn+=rr;for(nr!==tr&&(Qn[Jn++]=ar),ir=nr;rr--;)ir=Zn[ir],Qn[--or]=255&ir,ir>>=8;null!==er&&Vn<4096&&(Zn[Vn++]=er<<8|ar,Vn>=Wn+1&&Kn<12&&(++Kn,Wn=Wn<<1|1)),er=tr}else Vn=zn+1,Wn=(1<<(Kn=Hn+1))-1,er=null}return Jn!==Dn&&Qf.log("Warning, gif stream shorter than expected."),Qn
|
||
/**
|
||
* @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 Ot(Tn){var Un,Qn,Dn,Hn,Gn,zn=Math.floor,Vn=new Array(64),Kn=new Array(64),Wn=new Array(64),Xn=new Array(64),Yn=new Array(65535),Jn=new Array(65535),$n=new Array(64),Zn=new Array(64),er=[],tr=0,nr=7,rr=new Array(64),ir=new Array(64),ar=new Array(64),or=new Array(256),sr=new Array(2048),lr=[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],cr=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],ur=[0,1,2,3,4,5,6,7,8,9,10,11],dr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],hr=[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],pr=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Ar=[0,1,2,3,4,5,6,7,8,9,10,11],fr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],gr=[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(Tn,Un){for(var Qn=0,Dn=0,Hn=new Array,Gn=1;Gn<=16;Gn++){for(var zn=1;zn<=Tn[Gn];zn++)Hn[Un[Dn]]=[],Hn[Un[Dn]][0]=Qn,Hn[Un[Dn]][1]=Gn,Dn++,Qn++;Qn*=2}return Hn}function B(Tn){for(var Un=Tn[0],Qn=Tn[1]-1;Qn>=0;)Un&1<<Qn&&(tr|=1<<nr),Qn--,--nr<0&&(255==tr?(O(255),O(0)):O(tr),nr=7,tr=0)}function O(Tn){er.push(Tn)}function M(Tn){O(Tn>>8&255),O(255&Tn)}function E(Tn,Un,Qn,Dn,Hn){for(var Gn,zn=Hn[0],Vn=Hn[240],Kn=function(Tn,Un){var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn=0;for(Xn=0;Xn<8;++Xn){Qn=Tn[Jn],Dn=Tn[Jn+1],Hn=Tn[Jn+2],Gn=Tn[Jn+3],zn=Tn[Jn+4],Vn=Tn[Jn+5],Kn=Tn[Jn+6];var Zn=Qn+(Wn=Tn[Jn+7]),er=Qn-Wn,tr=Dn+Kn,nr=Dn-Kn,rr=Hn+Vn,ir=Hn-Vn,ar=Gn+zn,or=Gn-zn,sr=Zn+ar,lr=Zn-ar,cr=tr+rr,ur=tr-rr;Tn[Jn]=sr+cr,Tn[Jn+4]=sr-cr;var dr=.707106781*(ur+lr);Tn[Jn+2]=lr+dr,Tn[Jn+6]=lr-dr;var hr=.382683433*((sr=or+ir)-(ur=nr+er)),pr=.5411961*sr+hr,Ar=1.306562965*ur+hr,fr=.707106781*(cr=ir+nr),gr=er+fr,mr=er-fr;Tn[Jn+5]=mr+pr,Tn[Jn+3]=mr-pr,Tn[Jn+1]=gr+Ar,Tn[Jn+7]=gr-Ar,Jn+=8}for(Jn=0,Xn=0;Xn<8;++Xn){Qn=Tn[Jn],Dn=Tn[Jn+8],Hn=Tn[Jn+16],Gn=Tn[Jn+24],zn=Tn[Jn+32],Vn=Tn[Jn+40],Kn=Tn[Jn+48];var _r=Qn+(Wn=Tn[Jn+56]),vr=Qn-Wn,yr=Dn+Kn,br=Dn-Kn,wr=Hn+Vn,xr=Hn-Vn,kr=Gn+zn,Sr=Gn-zn,Cr=_r+kr,Br=_r-kr,Er=yr+wr,Nr=yr-wr;Tn[Jn]=Cr+Er,Tn[Jn+32]=Cr-Er;var Lr=.707106781*(Nr+Br);Tn[Jn+16]=Br+Lr,Tn[Jn+48]=Br-Lr;var Tr=.382683433*((Cr=Sr+xr)-(Nr=br+vr)),Pr=.5411961*Cr+Tr,Fr=1.306562965*Nr+Tr,Ur=.707106781*(Er=xr+br),Ir=vr+Ur,Rr=vr-Ur;Tn[Jn+40]=Rr+Pr,Tn[Jn+24]=Rr-Pr,Tn[Jn+8]=Ir+Fr,Tn[Jn+56]=Ir-Fr,Jn++}for(Xn=0;Xn<64;++Xn)Yn=Tn[Xn]*Un[Xn],$n[Xn]=Yn>0?Yn+.5|0:Yn-.5|0;return $n}(Tn,Un),Wn=0;Wn<64;++Wn)Zn[lr[Wn]]=Kn[Wn];var Xn=Zn[0]-Qn;Qn=Zn[0],0==Xn?B(Dn[0]):(B(Dn[Jn[Gn=32767+Xn]]),B(Yn[Gn]));for(var er=63;er>0&&0==Zn[er];)er--;if(0==er)return B(zn),Qn;for(var tr,nr=1;nr<=er;){for(var rr=nr;0==Zn[nr]&&nr<=er;)++nr;var ir=nr-rr;if(ir>=16){tr=ir>>4;for(var ar=1;ar<=tr;++ar)B(Vn);ir&=15}Gn=32767+Zn[nr],B(Hn[(ir<<4)+Jn[Gn]]),B(Yn[Gn]),nr++}return 63!=er&&B(zn),Qn}function q(Tn){Tn=Math.min(Math.max(Tn,1),100),Gn!=Tn&&(function(Tn){for(var Un=[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],Qn=0;Qn<64;Qn++){var Dn=zn((Un[Qn]*Tn+50)/100);Dn=Math.min(Math.max(Dn,1),255),Vn[lr[Qn]]=Dn}for(var Hn=[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],Gn=0;Gn<64;Gn++){var Yn=zn((Hn[Gn]*Tn+50)/100);Yn=Math.min(Math.max(Yn,1),255),Kn[lr[Gn]]=Yn}for(var Jn=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],$n=0,Zn=0;Zn<8;Zn++)for(var er=0;er<8;er++)Wn[$n]=1/(Vn[lr[$n]]*Jn[Zn]*Jn[er]*8),Xn[$n]=1/(Kn[lr[$n]]*Jn[Zn]*Jn[er]*8),$n++}(Tn<50?Math.floor(5e3/Tn):Math.floor(200-2*Tn)),Gn=Tn)}this.encode=function(Tn,Gn){Gn&&q(Gn),er=new Array,tr=0,nr=7,M(65496),M(65504),M(16),O(74),O(70),O(73),O(70),O(0),O(1),O(1),O(0),M(1),M(1),O(0),O(0),function(){M(65499),M(132),O(0);for(var Tn=0;Tn<64;Tn++)O(Vn[Tn]);O(1);for(var Un=0;Un<64;Un++)O(Kn[Un])}(),function(Tn,Un){M(65472),M(17),O(8),M(Un),M(Tn),O(3),O(1),O(17),O(0),O(2),O(17),O(1),O(3),O(17),O(1)}(Tn.width,Tn.height),function(){M(65476),M(418),O(0);for(var Tn=0;Tn<16;Tn++)O(cr[Tn+1]);for(var Un=0;Un<=11;Un++)O(ur[Un]);O(16);for(var Qn=0;Qn<16;Qn++)O(dr[Qn+1]);for(var Dn=0;Dn<=161;Dn++)O(hr[Dn]);O(1);for(var Hn=0;Hn<16;Hn++)O(pr[Hn+1]);for(var Gn=0;Gn<=11;Gn++)O(Ar[Gn]);O(17);for(var zn=0;zn<16;zn++)O(fr[zn+1]);for(var Vn=0;Vn<=161;Vn++)O(gr[Vn])}(),M(65498),M(12),O(3),O(1),O(0),O(2),O(17),O(3),O(17),O(0),O(63),O(0);var zn=0,Yn=0,Jn=0;tr=0,nr=7,this.encode.displayName="_encode_";for(var $n,Zn,or,lr,mr,_r,vr,yr,br,wr=Tn.data,xr=Tn.width,kr=Tn.height,Sr=4*xr,Cr=0;Cr<kr;){for($n=0;$n<Sr;){for(mr=Sr*Cr+$n,vr=-1,yr=0,br=0;br<64;br++)_r=mr+(yr=br>>3)*Sr+(vr=4*(7&br)),Cr+yr>=kr&&(_r-=Sr*(Cr+1+yr-kr)),$n+vr>=Sr&&(_r-=$n+vr-Sr+4),Zn=wr[_r++],or=wr[_r++],lr=wr[_r++],rr[br]=(sr[Zn]+sr[or+256>>0]+sr[lr+512>>0]>>16)-128,ir[br]=(sr[Zn+768>>0]+sr[or+1024>>0]+sr[lr+1280>>0]>>16)-128,ar[br]=(sr[Zn+1280>>0]+sr[or+1536>>0]+sr[lr+1792>>0]>>16)-128;zn=E(rr,Wn,zn,Un,Dn),Yn=E(ir,Xn,Yn,Qn,Hn),Jn=E(ar,Xn,Jn,Qn,Hn),$n+=32}Cr+=8}if(nr>=0){var Br=[];Br[1]=nr+1,Br[0]=(1<<nr+1)-1,B(Br)}return M(65497),new Uint8Array(er)},Tn=Tn||50,function(){for(var Tn=String.fromCharCode,Un=0;Un<256;Un++)or[Un]=Tn(Un)}(),Un=j(cr,ur),Qn=j(pr,Ar),Dn=j(dr,hr),Hn=j(fr,gr),function(){for(var Tn=1,Un=2,Qn=1;Qn<=15;Qn++){for(var Dn=Tn;Dn<Un;Dn++)Jn[32767+Dn]=Qn,Yn[32767+Dn]=[],Yn[32767+Dn][1]=Qn,Yn[32767+Dn][0]=Dn;for(var Hn=-(Un-1);Hn<=-Tn;Hn++)Jn[32767+Hn]=Qn,Yn[32767+Hn]=[],Yn[32767+Hn][1]=Qn,Yn[32767+Hn][0]=Un-1+Hn;Tn<<=1,Un<<=1}}(),function(){for(var Tn=0;Tn<256;Tn++)sr[Tn]=19595*Tn,sr[Tn+256>>0]=38470*Tn,sr[Tn+512>>0]=7471*Tn+32768,sr[Tn+768>>0]=-11059*Tn,sr[Tn+1024>>0]=-21709*Tn,sr[Tn+1280>>0]=32768*Tn+8421375,sr[Tn+1536>>0]=-27439*Tn,sr[Tn+1792>>0]=-5329*Tn}(),q(Tn)}
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/function Mt(Tn,Un){if(this.pos=0,this.buffer=Tn,this.datav=new DataView(Tn.buffer),this.is_with_alpha=!!Un,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 Et(Tn){function e(Tn){if(!Tn)throw Error("assert :P")}function n(Tn,Un,Qn){for(var Dn=0;4>Dn;Dn++)if(Tn[Un+Dn]!=Qn.charCodeAt(Dn))return!0;return!1}function r(Tn,Un,Qn,Dn,Hn){for(var Gn=0;Gn<Hn;Gn++)Tn[Un+Gn]=Qn[Dn+Gn]}function i(Tn,Un,Qn,Dn){for(var Hn=0;Hn<Dn;Hn++)Tn[Un+Hn]=Qn}function a(Tn){return new Int32Array(Tn)}function o(Tn,Un){for(var Qn=[],Dn=0;Dn<Tn;Dn++)Qn.push(new Un);return Qn}function s(Tn,Un){var Qn=[];return function t(Tn,Qn,Dn){for(var Hn=Dn[Qn],Gn=0;Gn<Hn&&(Tn.push(Dn.length>Qn+1?[]:new Un),!(Dn.length<Qn+1));Gn++)t(Tn[Gn],Qn+1,Dn)}(Qn,0,Tn),Qn}function u(Tn,Un){for(var Qn="",Dn=0;Dn<4;Dn++)Qn+=String.fromCharCode(Tn[Un++]);return Qn}function c(Tn,Un){return(Tn[Un+0]<<0|Tn[Un+1]<<8|Tn[Un+2]<<16)>>>0}function h(Tn,Un){return(Tn[Un+0]<<0|Tn[Un+1]<<8|Tn[Un+2]<<16|Tn[Un+3]<<24)>>>0}new(Et=function Et(){var Tn=this;function u(Tn,Un){for(var Qn=1<<Un-1>>>0;Tn&Qn;)Qn>>>=1;return Qn?(Tn&Qn-1)+Qn:Tn}function c(Tn,Un,Qn,Dn,Hn){e(!(Dn%Qn));do{Tn[Un+(Dn-=Qn)]=Hn}while(0<Dn)}function h(Tn,Un,Qn,Dn,Hn){if(e(2328>=Hn),512>=Hn)var Gn=a(512);else if(null==(Gn=a(Hn)))return 0;return function(Tn,Un,Qn,Dn,Hn,Gn){var zn,Vn,Kn=Un,Wn=1<<Qn,Xn=a(16),Yn=a(16);for(e(0!=Hn),e(null!=Dn),e(null!=Tn),e(0<Qn),Vn=0;Vn<Hn;++Vn){if(15<Dn[Vn])return 0;++Xn[Dn[Vn]]}if(Xn[0]==Hn)return 0;for(Yn[1]=0,zn=1;15>zn;++zn){if(Xn[zn]>1<<zn)return 0;Yn[zn+1]=Yn[zn]+Xn[zn]}for(Vn=0;Vn<Hn;++Vn)zn=Dn[Vn],0<Dn[Vn]&&(Gn[Yn[zn]++]=Vn);if(1==Yn[15])return(Dn=new l).g=0,Dn.value=Gn[0],c(Tn,Kn,1,Wn,Dn),Wn;var Jn,$n=-1,Zn=Wn-1,er=0,tr=1,nr=1,rr=1<<Qn;for(Vn=0,zn=1,Hn=2;zn<=Qn;++zn,Hn<<=1){if(tr+=nr<<=1,0>(nr-=Xn[zn]))return 0;for(;0<Xn[zn];--Xn[zn])(Dn=new l).g=zn,Dn.value=Gn[Vn++],c(Tn,Kn+er,Hn,rr,Dn),er=u(er,zn)}for(zn=Qn+1,Hn=2;15>=zn;++zn,Hn<<=1){if(tr+=nr<<=1,0>(nr-=Xn[zn]))return 0;for(;0<Xn[zn];--Xn[zn]){if(Dn=new l,(er&Zn)!=$n){for(Kn+=rr,Jn=1<<($n=zn)-Qn;15>$n&&!(0>=(Jn-=Xn[$n]));)++$n,Jn<<=1;Wn+=rr=1<<(Jn=$n-Qn),Tn[Un+($n=er&Zn)].g=Jn+Qn,Tn[Un+$n].value=Kn-Un-$n}Dn.g=zn-Qn,Dn.value=Gn[Vn++],c(Tn,Kn+(er>>Qn),Hn,rr,Dn),er=u(er,zn)}}return tr!=2*Yn[15]-1?0:Wn}(Tn,Un,Qn,Dn,Hn,Gn)}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(Un,f)}function p(Tn,Un,Qn,Dn){e(null!=Tn),e(null!=Un),e(2147483648>Dn),Tn.Ca=254,Tn.I=0,Tn.b=-8,Tn.Ka=0,Tn.oa=Un,Tn.pa=Qn,Tn.Jd=Un,Tn.Yc=Qn+Dn,Tn.Zc=4<=Dn?Qn+Dn-4+1:Qn,S(Tn)}function g(Tn,Un){for(var Qn=0;0<Un--;)Qn|=k(Tn,128)<<Un;return Qn}function m(Tn,Un){var Qn=g(Tn,Un);return P(Tn)?-Qn:Qn}function v(Tn,Un,Qn,Dn){var Hn,Gn=0;for(e(null!=Tn),e(null!=Un),e(4294967288>Dn),Tn.Sb=Dn,Tn.Ra=0,Tn.u=0,Tn.h=0,4<Dn&&(Dn=4),Hn=0;Hn<Dn;++Hn)Gn+=Un[Qn+Hn]<<8*Hn;Tn.Ra=Gn,Tn.bb=Dn,Tn.oa=Un,Tn.pa=Qn}function b(Tn){for(;8<=Tn.u&&Tn.bb<Tn.Sb;)Tn.Ra>>>=8,Tn.Ra+=Tn.oa[Tn.pa+Tn.bb]<<Hn-8>>>0,++Tn.bb,Tn.u-=8;x(Tn)&&(Tn.h=1,Tn.u=0)}function y(Tn,Un){if(e(0<=Un),!Tn.h&&Un<=Dn){var Hn=L(Tn)&Qn[Un];return Tn.u+=Un,b(Tn),Hn}return Tn.h=1,Tn.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(Tn){return Tn.Ra>>>(Tn.u&Hn-1)>>>0}function x(Tn){return e(Tn.bb<=Tn.Sb),Tn.h||Tn.bb==Tn.Sb&&Tn.u>Hn}function A(Tn,Un){Tn.u=Un,Tn.h=x(Tn)}function _(Tn){Tn.u>=Gn&&(e(Tn.u>=Gn),b(Tn))}function S(Tn){e(null!=Tn&&null!=Tn.oa),Tn.pa<Tn.Zc?(Tn.I=(Tn.oa[Tn.pa++]|Tn.I<<8)>>>0,Tn.b+=8):(e(null!=Tn&&null!=Tn.oa),Tn.pa<Tn.Yc?(Tn.b+=8,Tn.I=Tn.oa[Tn.pa++]|Tn.I<<8):Tn.Ka?Tn.b=0:(Tn.I<<=8,Tn.b+=8,Tn.Ka=1))}function P(Tn){return g(Tn,1)}function k(Tn,Un){var Qn=Tn.Ca;0>Tn.b&&S(Tn);var Dn=Tn.b,Hn=Qn*Un>>>8,Gn=(Tn.I>>>Dn>Hn)+0;for(Gn?(Qn-=Hn,Tn.I-=Hn+1<<Dn>>>0):Qn=Hn+1,Dn=Qn,Hn=0;256<=Dn;)Hn+=8,Dn>>=8;return Dn=7^Hn+zn[Dn],Tn.b-=Dn,Tn.Ca=(Qn<<Dn)-1,Gn}function F(Tn,Un,Qn){Tn[Un+0]=Qn>>24&255,Tn[Un+1]=Qn>>16&255,Tn[Un+2]=Qn>>8&255,Tn[Un+3]=Qn>>0&255}function I(Tn,Un){return Tn[Un+0]<<0|Tn[Un+1]<<8}function C(Tn,Un){return I(Tn,Un)|Tn[Un+2]<<16}function j(Tn,Un){return I(Tn,Un)|I(Tn,Un+2)<<16}function B(Tn,Un){var Qn=1<<Un;return e(null!=Tn),e(0<Un),Tn.X=a(Qn),null==Tn.X?0:(Tn.Mb=32-Un,Tn.Xa=Un,1)}function O(Tn,Un){e(null!=Tn),e(null!=Un),e(Tn.Xa==Un.Xa),r(Un.X,0,Tn.X,0,1<<Un.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function E(Tn,Un,Qn,Dn){e(null!=Qn),e(null!=Dn);var Hn=Qn[0],Gn=Dn[0];return 0==Hn&&(Hn=(Tn*Gn+Un/2)/Un),0==Gn&&(Gn=(Un*Hn+Tn/2)/Tn),0>=Hn||0>=Gn?0:(Qn[0]=Hn,Dn[0]=Gn,1)}function q(Tn,Un){return Tn+(1<<Un)-1>>>Un}function R(Tn,Un){return((4278255360&Tn)+(4278255360&Un)>>>0&4278255360)+((16711935&Tn)+(16711935&Un)>>>0&16711935)>>>0}function T(Un,Qn){Tn[Qn]=function(Qn,Dn,Hn,Gn,zn,Vn,Kn){var Wn;for(Wn=0;Wn<zn;++Wn){var Xn=Tn[Un](Vn[Kn+Wn-1],Hn,Gn+Wn);Vn[Kn+Wn]=R(Qn[Dn+Wn],Xn)}}}function D(){this.ud=this.hd=this.jd=0}function U(Tn,Un){return((4278124286&(Tn^Un))>>>1)+(Tn&Un)>>>0}function z(Tn){return 0<=Tn&&256>Tn?Tn:0>Tn?0:255<Tn?255:void 0}function H(Tn,Un){return z(Tn+(Tn-Un+.5>>1))}function W(Tn,Un,Qn){return Math.abs(Un-Qn)-Math.abs(Tn-Qn)}function V(Tn,Un,Qn,Dn,Hn,Gn,zn){for(Dn=Gn[zn-1],Qn=0;Qn<Hn;++Qn)Gn[zn+Qn]=Dn=R(Tn[Un+Qn],Dn)}function G(Tn,Un,Qn,Dn,Hn){var Gn;for(Gn=0;Gn<Qn;++Gn){var zn=Tn[Un+Gn],Vn=zn>>8&255,Kn=16711935&(Kn=(Kn=16711935&zn)+((Vn<<16)+Vn));Dn[Hn+Gn]=(4278255360&zn)+Kn>>>0}}function Y(Tn,Un){Un.jd=Tn>>0&255,Un.hd=Tn>>8&255,Un.ud=Tn>>16&255}function J(Tn,Un,Qn,Dn,Hn,Gn){var zn;for(zn=0;zn<Dn;++zn){var Vn=Un[Qn+zn],Kn=Vn>>>8,Wn=Vn,Xn=255&(Xn=(Xn=Vn>>>16)+((Tn.jd<<24>>24)*(Kn<<24>>24)>>>5));Wn=255&(Wn=(Wn+=(Tn.hd<<24>>24)*(Kn<<24>>24)>>>5)+((Tn.ud<<24>>24)*(Xn<<24>>24)>>>5)),Hn[Gn+zn]=(4278255360&Vn)+(Xn<<16)+Wn}}function X(Un,Qn,Dn,Hn,Gn){Tn[Qn]=function(Tn,Un,Qn,Dn,zn,Vn,Kn,Wn,Xn){for(Dn=Kn;Dn<Wn;++Dn)for(Kn=0;Kn<Xn;++Kn)zn[Vn++]=Gn(Qn[Hn(Tn[Un++])])},Tn[Un]=function(Un,Qn,zn,Vn,Kn,Wn,Xn){var Yn=8>>Un.b,Jn=Un.Ea,$n=Un.K[0],Zn=Un.w;if(8>Yn)for(Un=(1<<Un.b)-1,Zn=(1<<Yn)-1;Qn<zn;++Qn){var er,tr=0;for(er=0;er<Jn;++er)er&Un||(tr=Hn(Vn[Kn++])),Wn[Xn++]=Gn($n[tr&Zn]),tr>>=Yn}else Tn["VP8LMapColor"+Dn](Vn,Kn,$n,Zn,Wn,Xn,Qn,zn,Jn)}}function K(Tn,Un,Qn,Dn,Hn){for(Qn=Un+Qn;Un<Qn;){var Gn=Tn[Un++];Dn[Hn++]=Gn>>16&255,Dn[Hn++]=Gn>>8&255,Dn[Hn++]=Gn>>0&255}}function Z(Tn,Un,Qn,Dn,Hn){for(Qn=Un+Qn;Un<Qn;){var Gn=Tn[Un++];Dn[Hn++]=Gn>>16&255,Dn[Hn++]=Gn>>8&255,Dn[Hn++]=Gn>>0&255,Dn[Hn++]=Gn>>24&255}}function $(Tn,Un,Qn,Dn,Hn){for(Qn=Un+Qn;Un<Qn;){var Gn=(zn=Tn[Un++])>>16&240|zn>>12&15,zn=zn>>0&240|zn>>28&15;Dn[Hn++]=Gn,Dn[Hn++]=zn}}function Q(Tn,Un,Qn,Dn,Hn){for(Qn=Un+Qn;Un<Qn;){var Gn=(zn=Tn[Un++])>>16&248|zn>>13&7,zn=zn>>5&224|zn>>3&31;Dn[Hn++]=Gn,Dn[Hn++]=zn}}function tt(Tn,Un,Qn,Dn,Hn){for(Qn=Un+Qn;Un<Qn;){var Gn=Tn[Un++];Dn[Hn++]=Gn>>0&255,Dn[Hn++]=Gn>>8&255,Dn[Hn++]=Gn>>16&255}}function et(Tn,Un,Qn,Dn,Hn,Gn){if(0==Gn)for(Qn=Un+Qn;Un<Qn;)F(Dn,((Gn=Tn[Un++])[0]>>24|Gn[1]>>8&65280|Gn[2]<<8&16711680|Gn[3]<<24)>>>0),Hn+=32;else r(Dn,Hn,Tn,Un,Qn)}function nt(Un,Qn){Tn[Qn][0]=Tn[Un+"0"],Tn[Qn][1]=Tn[Un+"1"],Tn[Qn][2]=Tn[Un+"2"],Tn[Qn][3]=Tn[Un+"3"],Tn[Qn][4]=Tn[Un+"4"],Tn[Qn][5]=Tn[Un+"5"],Tn[Qn][6]=Tn[Un+"6"],Tn[Qn][7]=Tn[Un+"7"],Tn[Qn][8]=Tn[Un+"8"],Tn[Qn][9]=Tn[Un+"9"],Tn[Qn][10]=Tn[Un+"10"],Tn[Qn][11]=Tn[Un+"11"],Tn[Qn][12]=Tn[Un+"12"],Tn[Qn][13]=Tn[Un+"13"],Tn[Qn][14]=Tn[Un+"0"],Tn[Qn][15]=Tn[Un+"0"]}function rt(Tn){return Tn==zr||Tn==Vr||Tn==Kr||Tn==qr}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 ut(){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 ct(Tn){return alert("todo:WebPSamplerProcessPlane"),Tn.T}function ht(Tn,Un){var Qn=Tn.T,Dn=Un.ba.f.RGBA,Hn=Dn.eb,Gn=Dn.fb+Tn.ka*Dn.A,zn=vi[Un.ba.S],Vn=Tn.y,Kn=Tn.O,Wn=Tn.f,Xn=Tn.N,Yn=Tn.ea,Jn=Tn.W,$n=Un.cc,Zn=Un.dc,er=Un.Mc,tr=Un.Nc,nr=Tn.ka,rr=Tn.ka+Tn.T,ir=Tn.U,ar=ir+1>>1;for(0==nr?zn(Vn,Kn,null,null,Wn,Xn,Yn,Jn,Wn,Xn,Yn,Jn,Hn,Gn,null,null,ir):(zn(Un.ec,Un.fc,Vn,Kn,$n,Zn,er,tr,Wn,Xn,Yn,Jn,Hn,Gn-Dn.A,Hn,Gn,ir),++Qn);nr+2<rr;nr+=2)$n=Wn,Zn=Xn,er=Yn,tr=Jn,Xn+=Tn.Rc,Jn+=Tn.Rc,Gn+=2*Dn.A,zn(Vn,(Kn+=2*Tn.fa)-Tn.fa,Vn,Kn,$n,Zn,er,tr,Wn,Xn,Yn,Jn,Hn,Gn-Dn.A,Hn,Gn,ir);return Kn+=Tn.fa,Tn.j+rr<Tn.o?(r(Un.ec,Un.fc,Vn,Kn,ir),r(Un.cc,Un.dc,Wn,Xn,ar),r(Un.Mc,Un.Nc,Yn,Jn,ar),Qn--):1&rr||zn(Vn,Kn,null,null,Wn,Xn,Yn,Jn,Wn,Xn,Yn,Jn,Hn,Gn+Dn.A,null,null,ir),Qn}function lt(Tn,Un,Qn){var Dn=Tn.F,Hn=[Tn.J];if(null!=Dn){var Gn=Tn.U,zn=Un.ba.S,Vn=zn==jr||zn==Kr;Un=Un.ba.f.RGBA;var Kn=[0],Wn=Tn.ka;Kn[0]=Tn.T,Tn.Kb&&(0==Wn?--Kn[0]:(--Wn,Hn[0]-=Tn.width),Tn.j+Tn.ka+Tn.T==Tn.o&&(Kn[0]=Tn.o-Tn.j-Wn));var Xn=Un.eb;Wn=Un.fb+Wn*Un.A,Tn=Cr(Dn,Hn[0],Tn.width,Gn,Kn,Xn,Wn+(Vn?0:3),Un.A),e(Qn==Kn),Tn&&rt(zn)&&kr(Xn,Wn,Vn,Gn,Kn,Un.A)}return 0}function ft(Tn){var Un=Tn.ma,Qn=Un.ba.S,Dn=11>Qn,Hn=Qn==Qr||Qn==Dr||Qn==jr||Qn==Hr||12==Qn||rt(Qn);if(Un.memory=null,Un.Ib=null,Un.Jb=null,Un.Nd=null,!En(Un.Oa,Tn,Hn?11:12))return 0;if(Hn&&rt(Qn)&&yn(),Tn.da)alert("todo:use_scaling");else{if(Dn){if(Un.Ib=ct,Tn.Kb){if(Qn=Tn.U+1>>1,Un.memory=a(Tn.U+2*Qn),null==Un.memory)return 0;Un.ec=Un.memory,Un.fc=0,Un.cc=Un.ec,Un.dc=Un.fc+Tn.U,Un.Mc=Un.cc,Un.Nc=Un.dc+Qn,Un.Ib=ht,yn()}}else alert("todo:EmitYUV");Hn&&(Un.Jb=lt,Dn&&vn())}if(Dn&&!Ui){for(Tn=0;256>Tn;++Tn)Ii[Tn]=89858*(Tn-128)+Ni>>Ei,Qi[Tn]=-22014*(Tn-128)+Ni,Mi[Tn]=-45773*(Tn-128),Ri[Tn]=113618*(Tn-128)+Ni>>Ei;for(Tn=Li;Tn<Ti;++Tn)Un=76283*(Tn-16)+Ni>>Ei,Oi[Tn-Li]=Vt(Un,255),Di[Tn-Li]=Vt(Un+8>>4,15);Ui=1}return 1}function dt(Tn){var Un=Tn.ma,Qn=Tn.U,Dn=Tn.T;return e(!(1&Tn.ka)),0>=Qn||0>=Dn?0:(Qn=Un.Ib(Tn,Un),null!=Un.Jb&&Un.Jb(Tn,Un,Qn),Un.Dc+=Qn,1)}function pt(Tn){Tn.ma.memory=null}function gt(Tn,Un,Qn,Dn){return 47!=y(Tn,8)?0:(Un[0]=y(Tn,14)+1,Qn[0]=y(Tn,14)+1,Dn[0]=y(Tn,1),0!=y(Tn,3)?0:!Tn.h)}function mt(Tn,Un){if(4>Tn)return Tn+1;var Qn=Tn-2>>1;return(2+(1&Tn)<<Qn)+y(Un,Qn)+1}function vt(Tn,Un){return 120<Un?Un-120:1<=(Qn=((Qn=Zr[Un-1])>>4)*Tn+(8-(15&Qn)))?Qn:1;var Qn}function bt(Tn,Un,Qn){var Dn=L(Qn),Hn=Tn[Un+=255&Dn].g-8;return 0<Hn&&(A(Qn,Qn.u+8),Dn=L(Qn),Un+=Tn[Un].value,Un+=Dn&(1<<Hn)-1),A(Qn,Qn.u+Tn[Un].g),Tn[Un].value}function yt(Tn,Un,Qn){return Qn.g+=Tn.g,Qn.value+=Tn.value<<Un>>>0,e(8>=Qn.g),Tn.g}function wt(Tn,Un,Qn){var Dn=Tn.xc;return e((Un=0==Dn?0:Tn.vc[Tn.md*(Qn>>Dn)+(Un>>Dn)])<Tn.Wb),Tn.Ya[Un]}function Nt(Tn,Un,Qn,Dn){var Hn=Tn.ab,Gn=Tn.c*Un,zn=Tn.C;Un=zn+Un;var Yn=Qn,Jn=Dn;for(Dn=Tn.Ta,Qn=Tn.Ua;0<Hn--;){var $n=Tn.gc[Hn],tr=zn,nr=Un,rr=Yn,ir=Jn,ar=(Jn=Dn,Yn=Qn,$n.Ea);switch(e(tr<nr),e(nr<=$n.nc),$n.hc){case 2:Wn(rr,ir,(nr-tr)*ar,Jn,Yn);break;case 0:var or=tr,sr=nr,lr=Jn,cr=Yn,ur=(fr=$n).Ea;0==or&&(Vn(rr,ir,null,null,1,lr,cr),V(rr,ir+1,0,0,ur-1,lr,cr+1),ir+=ur,cr+=ur,++or);for(var dr=1<<fr.b,hr=dr-1,pr=q(ur,fr.b),Ar=fr.K,fr=fr.w+(or>>fr.b)*pr;or<sr;){var gr=Ar,mr=fr,_r=1;for(Kn(rr,ir,lr,cr-ur,1,lr,cr);_r<ur;){var vr=(_r&~hr)+dr;vr>ur&&(vr=ur),(0,Zn[gr[mr++]>>8&15])(rr,ir+ +_r,lr,cr+_r-ur,vr-_r,lr,cr+_r),_r=vr}ir+=ur,cr+=ur,++or&hr||(fr+=pr)}nr!=$n.nc&&r(Jn,Yn-ar,Jn,Yn+(nr-tr-1)*ar,ar);break;case 1:for(ar=rr,sr=ir,ur=(rr=$n.Ea)-(cr=rr&~(lr=(ir=1<<$n.b)-1)),or=q(rr,$n.b),dr=$n.K,$n=$n.w+(tr>>$n.b)*or;tr<nr;){for(hr=dr,pr=$n,Ar=new D,fr=sr+cr,gr=sr+rr;sr<fr;)Y(hr[pr++],Ar),er(Ar,ar,sr,ir,Jn,Yn),sr+=ir,Yn+=ir;sr<gr&&(Y(hr[pr++],Ar),er(Ar,ar,sr,ur,Jn,Yn),sr+=ur,Yn+=ur),++tr&lr||($n+=or)}break;case 3:if(rr==Jn&&ir==Yn&&0<$n.b){for(sr=Jn,rr=ar=Yn+(nr-tr)*ar-(cr=(nr-tr)*q($n.Ea,$n.b)),ir=Jn,lr=Yn,or=[],cr=(ur=cr)-1;0<=cr;--cr)or[cr]=ir[lr+cr];for(cr=ur-1;0<=cr;--cr)sr[rr+cr]=or[cr];Xn($n,tr,nr,Jn,ar,Jn,Yn)}else Xn($n,tr,nr,rr,ir,Jn,Yn)}Yn=Dn,Jn=Qn}Jn!=Qn&&r(Dn,Qn,Yn,Jn,Gn)}function Lt(Tn,Un){var Qn=Tn.V,Dn=Tn.Ba+Tn.c*Tn.C,Hn=Un-Tn.C;if(e(Un<=Tn.l.o),e(16>=Hn),0<Hn){var Gn=Tn.l,zn=Tn.Ta,Vn=Tn.Ua,Kn=Gn.width;if(Nt(Tn,Hn,Qn,Dn),Hn=Vn=[Vn],e((Qn=Tn.C)<(Dn=Un)),e(Gn.v<Gn.va),Dn>Gn.o&&(Dn=Gn.o),Qn<Gn.j){var Wn=Gn.j-Qn;Qn=Gn.j,Hn[0]+=Wn*Kn}if(Qn>=Dn?Qn=0:(Hn[0]+=4*Gn.v,Gn.ka=Qn-Gn.j,Gn.U=Gn.va-Gn.v,Gn.T=Dn-Qn,Qn=1),Qn){if(Vn=Vn[0],11>(Qn=Tn.ca).S){var Xn=Qn.f.RGBA,Yn=(Dn=Qn.S,Hn=Gn.U,Gn=Gn.T,Wn=Xn.eb,Xn.A),Jn=Gn;for(Xn=Xn.fb+Tn.Ma*Xn.A;0<Jn--;){var $n=zn,Zn=Vn,er=Hn,or=Wn,sr=Xn;switch(Dn){case Mr:tr($n,Zn,er,or,sr);break;case Qr:nr($n,Zn,er,or,sr);break;case zr:nr($n,Zn,er,or,sr),kr(or,sr,0,er,1,0);break;case Or:ar($n,Zn,er,or,sr);break;case Dr:et($n,Zn,er,or,sr,1);break;case Vr:et($n,Zn,er,or,sr,1),kr(or,sr,0,er,1,0);break;case jr:et($n,Zn,er,or,sr,0);break;case Kr:et($n,Zn,er,or,sr,0),kr(or,sr,1,er,1,0);break;case Hr:rr($n,Zn,er,or,sr);break;case qr:rr($n,Zn,er,or,sr),Sr(or,sr,er,1,0);break;case Gr:ir($n,Zn,er,or,sr);break;default:e(0)}Vn+=Kn,Xn+=Yn}Tn.Ma+=Gn}else alert("todo:EmitRescaledRowsYUVA");e(Tn.Ma<=Qn.height)}}Tn.C=Un,e(Tn.C<=Tn.i)}function xt(Tn){var Un;if(0<Tn.ua)return 0;for(Un=0;Un<Tn.Wb;++Un){var Qn=Tn.Ya[Un].G,Dn=Tn.Ya[Un].H;if(0<Qn[1][Dn[1]+0].g||0<Qn[2][Dn[2]+0].g||0<Qn[3][Dn[3]+0].g)return 0}return 1}function At(Tn,Un,Qn,Dn,Hn,Gn){if(0!=Tn.Z){var zn=Tn.qd,Vn=Tn.rd;for(e(null!=_i[Tn.Z]);Un<Qn;++Un)_i[Tn.Z](zn,Vn,Dn,Hn,Dn,Hn,Gn),zn=Dn,Vn=Hn,Hn+=Gn;Tn.qd=zn,Tn.rd=Vn}}function _t(Tn,Un){var Qn=Tn.l.ma,Dn=0==Qn.Z||1==Qn.Z?Tn.l.j:Tn.C;if(Dn=Tn.C<Dn?Dn:Tn.C,e(Un<=Tn.l.o),Un>Dn){var Hn=Tn.l.width,Gn=Qn.ca,zn=Qn.tb+Hn*Dn,Vn=Tn.V,Kn=Tn.Ba+Tn.c*Dn,Wn=Tn.gc;e(1==Tn.ab),e(3==Wn[0].hc),Jn(Wn[0],Dn,Un,Vn,Kn,Gn,zn),At(Qn,Dn,Un,Gn,zn,Hn)}Tn.C=Tn.Ma=Un}function St(Tn,Qn,Dn,Hn,Gn,zn,Vn){var Kn=Tn.$/Hn,Wn=Tn.$%Hn,Xn=Tn.m,Yn=Tn.s,Jn=Dn+Tn.$,$n=Jn;Gn=Dn+Hn*Gn;var Zn=Dn+Hn*zn,er=280+Yn.ua,tr=Tn.Pb?Kn:16777216,nr=0<Yn.ua?Yn.Wa:null,rr=Yn.wc,ir=Jn<Zn?wt(Yn,Wn,Kn):null;e(Tn.C<zn),e(Zn<=Gn);var ar=!1;e:for(;;){for(;ar||Jn<Zn;){var or=0;if(Kn>=tr){var sr=Jn-Dn;e((tr=Tn).Pb),tr.wd=tr.m,tr.xd=sr,0<tr.s.ua&&O(tr.s.Wa,tr.s.vb),tr=Kn+ti}if(Wn&rr||(ir=wt(Yn,Wn,Kn)),e(null!=ir),ir.Qb&&(Qn[Jn]=ir.qb,ar=!0),!ar)if(_(Xn),ir.jc){or=Xn,sr=Qn;var lr=Jn,cr=ir.pd[L(or)&Un-1];e(ir.jc),256>cr.g?(A(or,or.u+cr.g),sr[lr]=cr.value,or=0):(A(or,or.u+cr.g-256),e(256<=cr.value),or=cr.value),0==or&&(ar=!0)}else or=bt(ir.G[0],ir.H[0],Xn);if(Xn.h)break;if(ar||256>or){if(!ar)if(ir.nd)Qn[Jn]=(ir.qb|or<<8)>>>0;else{if(_(Xn),ar=bt(ir.G[1],ir.H[1],Xn),_(Xn),sr=bt(ir.G[2],ir.H[2],Xn),lr=bt(ir.G[3],ir.H[3],Xn),Xn.h)break;Qn[Jn]=(lr<<24|ar<<16|or<<8|sr)>>>0}if(ar=!1,++Jn,++Wn>=Hn&&(Wn=0,++Kn,null!=Vn&&Kn<=zn&&!(Kn%16)&&Vn(Tn,Kn),null!=nr))for(;$n<Jn;)or=Qn[$n++],nr.X[(506832829*or&4294967295)>>>nr.Mb]=or}else if(280>or){if(or=mt(or-256,Xn),sr=bt(ir.G[4],ir.H[4],Xn),_(Xn),sr=vt(Hn,sr=mt(sr,Xn)),Xn.h)break;if(Jn-Dn<sr||Gn-Jn<or)break e;for(lr=0;lr<or;++lr)Qn[Jn+lr]=Qn[Jn+lr-sr];for(Jn+=or,Wn+=or;Wn>=Hn;)Wn-=Hn,++Kn,null!=Vn&&Kn<=zn&&!(Kn%16)&&Vn(Tn,Kn);if(e(Jn<=Gn),Wn&rr&&(ir=wt(Yn,Wn,Kn)),null!=nr)for(;$n<Jn;)or=Qn[$n++],nr.X[(506832829*or&4294967295)>>>nr.Mb]=or}else{if(!(or<er))break e;for(ar=or-280,e(null!=nr);$n<Jn;)or=Qn[$n++],nr.X[(506832829*or&4294967295)>>>nr.Mb]=or;or=Jn,e(!(ar>>>(sr=nr).Xa)),Qn[or]=sr.X[ar],ar=!0}ar||e(Xn.h==x(Xn))}if(Tn.Pb&&Xn.h&&Jn<Gn)e(Tn.m.h),Tn.a=5,Tn.m=Tn.wd,Tn.$=Tn.xd,0<Tn.s.ua&&O(Tn.s.vb,Tn.s.Wa);else{if(Xn.h)break e;null!=Vn&&Vn(Tn,Kn>zn?zn:Kn),Tn.a=0,Tn.$=Jn-Dn}return 1}return Tn.a=3,0}function Pt(Tn){e(null!=Tn),Tn.vc=null,Tn.yc=null,Tn.Ya=null;var Un=Tn.Wa;null!=Un&&(Un.X=null),Tn.vb=null,e(null!=Tn)}function kt(){var Un=new sn;return null==Un?null:(Un.a=0,Un.xb=mi,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),Wn=G,er=J,tr=K,nr=Z,rr=$,ir=Q,ar=tt,Tn.VP8LMapColor32b=Yn,Tn.VP8LMapColor8b=$n,Un)}function Ft(Tn,Qn,Dn,Hn,Gn){var zn=1,Vn=[Tn],Kn=[Qn],Wn=Hn.m,Xn=Hn.s,Yn=null,Jn=0;e:for(;;){if(Dn)for(;zn&&y(Wn,1);){var $n=Vn,Zn=Kn,er=Hn,tr=1,nr=er.m,rr=er.gc[er.ab],ir=y(nr,2);if(er.Oc&1<<ir)zn=0;else{switch(er.Oc|=1<<ir,rr.hc=ir,rr.Ea=$n[0],rr.nc=Zn[0],rr.K=[null],++er.ab,e(4>=er.ab),ir){case 0:case 1:rr.b=y(nr,3)+2,tr=Ft(q(rr.Ea,rr.b),q(rr.nc,rr.b),0,er,rr.K),rr.K=rr.K[0];break;case 3:var ar,or=y(nr,8)+1,sr=16<or?0:4<or?1:2<or?2:3;if($n[0]=q(rr.Ea,sr),rr.b=sr,ar=tr=Ft(or,1,0,er,rr.K)){var lr,cr=or,ur=rr,dr=1<<(8>>ur.b),hr=a(dr);if(null==hr)ar=0;else{var pr=ur.K[0],Ar=ur.w;for(hr[0]=ur.K[0][0],lr=1;lr<1*cr;++lr)hr[lr]=R(pr[Ar+lr],hr[lr-1]);for(;lr<4*dr;++lr)hr[lr]=0;ur.K[0]=null,ur.K[0]=hr,ar=1}}tr=ar;break;case 2:break;default:e(0)}zn=tr}}if(Vn=Vn[0],Kn=Kn[0],zn&&y(Wn,1)&&!(zn=1<=(Jn=y(Wn,4))&&11>=Jn)){Hn.a=3;break e}var fr;if(fr=zn)t:{var gr,mr,_r,vr=Hn,yr=Vn,br=Kn,wr=Jn,xr=Dn,kr=vr.m,Sr=vr.s,Cr=[null],Br=1,Er=0,Nr=ei[wr];n:for(;;){if(xr&&y(kr,1)){var Lr=y(kr,3)+2,Tr=q(yr,Lr),Pr=q(br,Lr),Fr=Tr*Pr;if(!Ft(Tr,Pr,0,vr,Cr))break n;for(Cr=Cr[0],Sr.xc=Lr,gr=0;gr<Fr;++gr){var Ur=Cr[gr]>>8&65535;Cr[gr]=Ur,Ur>=Br&&(Br=Ur+1)}}if(kr.h)break n;for(mr=0;5>mr;++mr){var Ir=Yr[mr];!mr&&0<wr&&(Ir+=1<<wr),Er<Ir&&(Er=Ir)}var Rr=o(Br*Nr,l),Mr=Br,Qr=o(Mr,d);if(null==Qr)var Or=null;else e(65536>=Mr),Or=Qr;var Dr=a(Er);if(null==Or||null==Dr||null==Rr){vr.a=1;break n}var jr=Rr;for(gr=_r=0;gr<Br;++gr){var Hr=Or[gr],Gr=Hr.G,zr=Hr.H,Vr=0,Kr=1,qr=0;for(mr=0;5>mr;++mr){Ir=Yr[mr],Gr[mr]=jr,zr[mr]=_r,!mr&&0<wr&&(Ir+=1<<wr);r:{var Zr,ti=Ir,ni=vr,ri=Dr,ii=jr,ai=_r,oi=0,si=ni.m,li=y(si,1);if(i(ri,0,0,ti),li){var ui=y(si,1)+1,di=y(si,1),hi=y(si,0==di?1:8);ri[hi]=1,2==ui&&(ri[hi=y(si,8)]=1);var pi=1}else{var Ai=a(19),fi=y(si,4)+4;if(19<fi){ni.a=3;var mi=0;break r}for(Zr=0;Zr<fi;++Zr)Ai[$r[Zr]]=y(si,3);var _i=void 0,vi=void 0,yi=ni,wi=Ai,xi=ti,ki=ri,Si=0,Ci=yi.m,Bi=8,Ei=o(128,l);i:for(;h(Ei,0,7,wi,19);){if(y(Ci,1)){var Ni=2+2*y(Ci,3);if((_i=2+y(Ci,Ni))>xi)break i}else _i=xi;for(vi=0;vi<xi&&_i--;){_(Ci);var Li=Ei[0+(127&L(Ci))];A(Ci,Ci.u+Li.g);var Ti=Li.value;if(16>Ti)ki[vi++]=Ti,0!=Ti&&(Bi=Ti);else{var Pi=16==Ti,Fi=Ti-16,Ui=Xr[Fi],Ii=y(Ci,Wr[Fi])+Ui;if(vi+Ii>xi)break i;for(var Ri=Pi?Bi:0;0<Ii--;)ki[vi++]=Ri}}Si=1;break i}Si||(yi.a=3),pi=Si}(pi=pi&&!si.h)&&(oi=h(ii,ai,8,ri,ti)),pi&&0!=oi?mi=oi:(ni.a=3,mi=0)}if(0==mi)break n;if(Kr&&1==Jr[mr]&&(Kr=0==jr[_r].g),Vr+=jr[_r].g,_r+=mi,3>=mr){var Mi,Qi=Dr[0];for(Mi=1;Mi<Ir;++Mi)Dr[Mi]>Qi&&(Qi=Dr[Mi]);qr+=Qi}}if(Hr.nd=Kr,Hr.Qb=0,Kr&&(Hr.qb=(Gr[3][zr[3]+0].value<<24|Gr[1][zr[1]+0].value<<16|Gr[2][zr[2]+0].value)>>>0,0==Vr&&256>Gr[0][zr[0]+0].value&&(Hr.Qb=1,Hr.qb+=Gr[0][zr[0]+0].value<<8)),Hr.jc=!Hr.Qb&&6>qr,Hr.jc){var Oi,Di=Hr;for(Oi=0;Oi<Un;++Oi){var ji=Oi,Hi=Di.pd[ji],Gi=Di.G[0][Di.H[0]+ji];256<=Gi.value?(Hi.g=Gi.g+256,Hi.value=Gi.value):(Hi.g=0,Hi.value=0,ji>>=yt(Gi,8,Hi),ji>>=yt(Di.G[1][Di.H[1]+ji],16,Hi),ji>>=yt(Di.G[2][Di.H[2]+ji],0,Hi),yt(Di.G[3][Di.H[3]+ji],24,Hi))}}}Sr.vc=Cr,Sr.Wb=Br,Sr.Ya=Or,Sr.yc=Rr,fr=1;break t}fr=0}if(!(zn=fr)){Hn.a=3;break e}if(0<Jn){if(Xn.ua=1<<Jn,!B(Xn.Wa,Jn)){Hn.a=1,zn=0;break e}}else Xn.ua=0;var zi=Hn,Vi=Vn,Ki=Kn,qi=zi.s,Wi=qi.xc;if(zi.c=Vi,zi.i=Ki,qi.md=q(Vi,Wi),qi.wc=0==Wi?-1:(1<<Wi)-1,Dn){Hn.xb=gi;break e}if(null==(Yn=a(Vn*Kn))){Hn.a=1,zn=0;break e}zn=(zn=St(Hn,Yn,0,Vn,Kn,Kn,null))&&!Wn.h;break e}return zn?(null!=Gn?Gn[0]=Yn:(e(null==Yn),e(Dn)),Hn.$=0,Dn||Pt(Xn)):Pt(Xn),zn}function It(Tn,Un){var Qn=Tn.c*Tn.i,Dn=Qn+Un+16*Un;return e(Tn.c<=Un),Tn.V=a(Dn),null==Tn.V?(Tn.Ta=null,Tn.Ua=0,Tn.a=1,0):(Tn.Ta=Tn.V,Tn.Ua=Tn.Ba+Qn+Un,1)}function Ct(Tn,Un){var Qn=Tn.C,Dn=Un-Qn,Hn=Tn.V,Gn=Tn.Ba+Tn.c*Qn;for(e(Un<=Tn.l.o);0<Dn;){var zn=16<Dn?16:Dn,Vn=Tn.l.ma,Kn=Tn.l.width,Wn=Kn*zn,Xn=Vn.ca,Yn=Vn.tb+Kn*Qn,Jn=Tn.Ta,$n=Tn.Ua;Nt(Tn,zn,Hn,Gn),Br(Jn,$n,Xn,Yn,Wn),At(Vn,Qn,Qn+zn,Xn,Yn,Kn),Dn-=zn,Hn+=zn*Tn.c,Qn+=zn}e(Qn==Un),Tn.C=Tn.Ma=Un}function jt(){this.ub=this.yd=this.td=this.Rb=0}function Bt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ot(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Mt(){this.Yb=function(){var Tn=[];return function t(Tn,Un,Qn){for(var Dn=Qn[Un],Hn=0;Hn<Dn&&(Tn.push(Qn.length>Un+1?[]:0),!(Qn.length<Un+1));Hn++)t(Tn[Hn],Un+1,Qn)}(Tn,0,[3,11]),Tn}()}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 Rt(){this.ld=this.La=this.dd=this.tc=0}function Tt(){this.Na=this.la=0}function Dt(){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 Rt),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 Bt,this.ed=new qt,this.Qa=new Ot,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,Dt),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 Tt),this.sb=0,this.wa=Array(new Rt),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],Rt),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(Tn,Un){return 0>Tn?0:Tn>Un?Un:Tn}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 Tn=new Wt;return null!=Tn&&(Tn.a=0,Tn.sc="OK",Tn.cb=0,Tn.Xb=0,ii||(ii=Zt)),Tn}function Jt(Tn,Un,Qn){return 0==Tn.a&&(Tn.a=Un,Tn.sc=Qn,Tn.cb=0),0}function Xt(Tn,Un,Qn){return 3<=Qn&&157==Tn[Un+0]&&1==Tn[Un+1]&&42==Tn[Un+2]}function Kt(Tn,Un){if(null==Tn)return 0;if(Tn.a=0,Tn.sc="OK",null==Un)return Jt(Tn,2,"null VP8Io passed to VP8GetHeaders()");var Qn=Un.data,Dn=Un.w,Hn=Un.ha;if(4>Hn)return Jt(Tn,7,"Truncated header.");var Gn=Qn[Dn+0]|Qn[Dn+1]<<8|Qn[Dn+2]<<16,zn=Tn.Od;if(zn.Rb=!(1&Gn),zn.td=Gn>>1&7,zn.yd=Gn>>4&1,zn.ub=Gn>>5,3<zn.td)return Jt(Tn,3,"Incorrect keyframe parameters.");if(!zn.yd)return Jt(Tn,4,"Frame not displayable.");Dn+=3,Hn-=3;var Vn=Tn.Kc;if(zn.Rb){if(7>Hn)return Jt(Tn,7,"cannot parse picture header");if(!Xt(Qn,Dn,Hn))return Jt(Tn,3,"Bad code word");Vn.c=16383&(Qn[Dn+4]<<8|Qn[Dn+3]),Vn.Td=Qn[Dn+4]>>6,Vn.i=16383&(Qn[Dn+6]<<8|Qn[Dn+5]),Vn.Ud=Qn[Dn+6]>>6,Dn+=7,Hn-=7,Tn.za=Vn.c+15>>4,Tn.Ub=Vn.i+15>>4,Un.width=Vn.c,Un.height=Vn.i,Un.Da=0,Un.j=0,Un.v=0,Un.va=Un.width,Un.o=Un.height,Un.da=0,Un.ib=Un.width,Un.hb=Un.height,Un.U=Un.width,Un.T=Un.height,i((Gn=Tn.Pa).jb,0,255,Gn.jb.length),e(null!=(Gn=Tn.Qa)),Gn.Cb=0,Gn.Bb=0,Gn.Fb=1,i(Gn.Zb,0,0,Gn.Zb.length),i(Gn.Lb,0,0,Gn.Lb)}if(zn.ub>Hn)return Jt(Tn,7,"bad partition length");p(Gn=Tn.m,Qn,Dn,zn.ub),Dn+=zn.ub,Hn-=zn.ub,zn.Rb&&(Vn.Ld=P(Gn),Vn.Kd=P(Gn)),Vn=Tn.Qa;var Kn,Wn=Tn.Pa;if(e(null!=Gn),e(null!=Vn),Vn.Cb=P(Gn),Vn.Cb){if(Vn.Bb=P(Gn),P(Gn)){for(Vn.Fb=P(Gn),Kn=0;4>Kn;++Kn)Vn.Zb[Kn]=P(Gn)?m(Gn,7):0;for(Kn=0;4>Kn;++Kn)Vn.Lb[Kn]=P(Gn)?m(Gn,6):0}if(Vn.Bb)for(Kn=0;3>Kn;++Kn)Wn.jb[Kn]=P(Gn)?g(Gn,8):255}else Vn.Bb=0;if(Gn.Ka)return Jt(Tn,3,"cannot parse segment header");if((Vn=Tn.ed).zd=P(Gn),Vn.Tb=g(Gn,6),Vn.wb=g(Gn,3),Vn.Pc=P(Gn),Vn.Pc&&P(Gn)){for(Wn=0;4>Wn;++Wn)P(Gn)&&(Vn.vd[Wn]=m(Gn,6));for(Wn=0;4>Wn;++Wn)P(Gn)&&(Vn.od[Wn]=m(Gn,6))}if(Tn.L=0==Vn.Tb?0:Vn.zd?1:2,Gn.Ka)return Jt(Tn,3,"cannot parse filter header");var Xn=Hn;if(Hn=Kn=Dn,Dn=Kn+Xn,Vn=Xn,Tn.Xb=(1<<g(Tn.m,2))-1,Xn<3*(Wn=Tn.Xb))Qn=7;else{for(Kn+=3*Wn,Vn-=3*Wn,Xn=0;Xn<Wn;++Xn){var Yn=Qn[Hn+0]|Qn[Hn+1]<<8|Qn[Hn+2]<<16;Yn>Vn&&(Yn=Vn),p(Tn.Jc[+Xn],Qn,Kn,Yn),Kn+=Yn,Vn-=Yn,Hn+=3}p(Tn.Jc[+Wn],Qn,Kn,Vn),Qn=Kn<Dn?0:5}if(0!=Qn)return Jt(Tn,Qn,"cannot parse partitions");for(Qn=g(Kn=Tn.m,7),Hn=P(Kn)?m(Kn,4):0,Dn=P(Kn)?m(Kn,4):0,Vn=P(Kn)?m(Kn,4):0,Wn=P(Kn)?m(Kn,4):0,Kn=P(Kn)?m(Kn,4):0,Xn=Tn.Qa,Yn=0;4>Yn;++Yn){if(Xn.Cb){var Jn=Xn.Zb[Yn];Xn.Fb||(Jn+=Qn)}else{if(0<Yn){Tn.pb[Yn]=Tn.pb[0];continue}Jn=Qn}var $n=Tn.pb[Yn];$n.Sc[0]=ni[Vt(Jn+Hn,127)],$n.Sc[1]=ri[Vt(Jn+0,127)],$n.Eb[0]=2*ni[Vt(Jn+Dn,127)],$n.Eb[1]=101581*ri[Vt(Jn+Vn,127)]>>16,8>$n.Eb[1]&&($n.Eb[1]=8),$n.Qc[0]=ni[Vt(Jn+Wn,117)],$n.Qc[1]=ri[Vt(Jn+Kn,127)],$n.lc=Jn+Kn}if(!zn.Rb)return Jt(Tn,4,"Not a key frame.");for(P(Gn),zn=Tn.Pa,Qn=0;4>Qn;++Qn){for(Hn=0;8>Hn;++Hn)for(Dn=0;3>Dn;++Dn)for(Vn=0;11>Vn;++Vn)Wn=k(Gn,di[Qn][Hn][Dn][Vn])?g(Gn,8):li[Qn][Hn][Dn][Vn],zn.Wc[Qn][Hn].Yb[Dn][Vn]=Wn;for(Hn=0;17>Hn;++Hn)zn.Xc[Qn][Hn]=zn.Wc[Qn][hi[Hn]]}return Tn.kc=P(Gn),Tn.kc&&(Tn.Bd=g(Gn,8)),Tn.cb=1}function Zt(Tn,Un,Qn,Dn,Hn,Gn,zn){var Vn=Un[Hn].Yb[Qn];for(Qn=0;16>Hn;++Hn){if(!k(Tn,Vn[Qn+0]))return Hn;for(;!k(Tn,Vn[Qn+1]);)if(Vn=Un[++Hn].Yb[0],Qn=0,16==Hn)return 16;var Kn=Un[Hn+1].Yb;if(k(Tn,Vn[Qn+2])){var Wn=Tn,Xn=0;if(k(Wn,(Jn=Vn)[(Yn=Qn)+3]))if(k(Wn,Jn[Yn+6])){for(Vn=0,Yn=2*(Xn=k(Wn,Jn[Yn+8]))+(Jn=k(Wn,Jn[Yn+9+Xn])),Xn=0,Jn=ai[Yn];Jn[Vn];++Vn)Xn+=Xn+k(Wn,Jn[Vn]);Xn+=3+(8<<Yn)}else k(Wn,Jn[Yn+7])?(Xn=7+2*k(Wn,165),Xn+=k(Wn,145)):Xn=5+k(Wn,159);else Xn=k(Wn,Jn[Yn+4])?3+k(Wn,Jn[Yn+5]):2;Vn=Kn[2]}else Xn=1,Vn=Kn[1];Kn=zn+oi[Hn],0>(Wn=Tn).b&&S(Wn);var Yn,Jn=Wn.b,$n=(Yn=Wn.Ca>>1)-(Wn.I>>Jn)>>31;--Wn.b,Wn.Ca+=$n,Wn.Ca|=1,Wn.I-=(Yn+1&$n)<<Jn,Gn[Kn]=((Xn^$n)-$n)*Dn[(0<Hn)+0]}return 16}function $t(Tn){var Un=Tn.rb[Tn.sb-1];Un.la=0,Un.Na=0,i(Tn.zc,0,0,Tn.zc.length),Tn.ja=0}function Qt(Tn,Un){if(null==Tn)return 0;if(null==Un)return Jt(Tn,2,"NULL VP8Io parameter in VP8Decode().");if(!Tn.cb&&!Kt(Tn,Un))return 0;if(e(Tn.cb),null==Un.ac||Un.ac(Un)){Un.ob&&(Tn.L=0);var Qn=Hi[Tn.L];if(2==Tn.L?(Tn.yb=0,Tn.zb=0):(Tn.yb=Un.v-Qn>>4,Tn.zb=Un.j-Qn>>4,0>Tn.yb&&(Tn.yb=0),0>Tn.zb&&(Tn.zb=0)),Tn.Va=Un.o+15+Qn>>4,Tn.Hb=Un.va+15+Qn>>4,Tn.Hb>Tn.za&&(Tn.Hb=Tn.za),Tn.Va>Tn.Ub&&(Tn.Va=Tn.Ub),0<Tn.L){var Dn=Tn.ed;for(Qn=0;4>Qn;++Qn){var Hn;if(Tn.Qa.Cb){var Gn=Tn.Qa.Lb[Qn];Tn.Qa.Fb||(Gn+=Dn.Tb)}else Gn=Dn.Tb;for(Hn=0;1>=Hn;++Hn){var zn=Tn.gd[Qn][Hn],Vn=Gn;if(Dn.Pc&&(Vn+=Dn.vd[0],Hn&&(Vn+=Dn.od[0])),0<(Vn=0>Vn?0:63<Vn?63:Vn)){var Kn=Vn;0<Dn.wb&&(Kn=4<Dn.wb?Kn>>2:Kn>>1)>9-Dn.wb&&(Kn=9-Dn.wb),1>Kn&&(Kn=1),zn.dd=Kn,zn.tc=2*Vn+Kn,zn.ld=40<=Vn?2:15<=Vn?1:0}else zn.tc=0;zn.La=Hn}}}Qn=0}else Jt(Tn,6,"Frame setup failed"),Qn=Tn.a;if(Qn=0==Qn){if(Qn){Tn.$c=0,0<Tn.Aa||(Tn.Ic=zi);e:{Qn=Tn.Ic,Dn=4*(Kn=Tn.za);var Wn=32*Kn,Xn=Kn+1,Yn=0<Tn.L?Kn*(0<Tn.Aa?2:1):0,Jn=(2==Tn.Aa?2:1)*Kn;if((zn=Dn+832+(Hn=3*(16*Qn+Hi[Tn.L])/2*Wn)+(Gn=null!=Tn.Fa&&0<Tn.Fa.length?Tn.Kc.c*Tn.Kc.i:0))!=zn)Qn=0;else{if(zn>Tn.Vb){if(Tn.Vb=0,Tn.Ec=a(zn),Tn.Fc=0,null==Tn.Ec){Qn=Jt(Tn,1,"no memory during frame initialization.");break e}Tn.Vb=zn}zn=Tn.Ec,Vn=Tn.Fc,Tn.Ac=zn,Tn.Bc=Vn,Vn+=Dn,Tn.Gd=o(Wn,Ht),Tn.Hd=0,Tn.rb=o(Xn+1,Tt),Tn.sb=1,Tn.wa=Yn?o(Yn,Rt):null,Tn.Y=0,Tn.D.Nb=0,Tn.D.wa=Tn.wa,Tn.D.Y=Tn.Y,0<Tn.Aa&&(Tn.D.Y+=Kn),e(!0),Tn.oc=zn,Tn.pc=Vn,Vn+=832,Tn.ya=o(Jn,Ut),Tn.aa=0,Tn.D.ya=Tn.ya,Tn.D.aa=Tn.aa,2==Tn.Aa&&(Tn.D.aa+=Kn),Tn.R=16*Kn,Tn.B=8*Kn,Kn=(Wn=Hi[Tn.L])*Tn.R,Wn=Wn/2*Tn.B,Tn.sa=zn,Tn.ta=Vn+Kn,Tn.qa=Tn.sa,Tn.ra=Tn.ta+16*Qn*Tn.R+Wn,Tn.Ha=Tn.qa,Tn.Ia=Tn.ra+8*Qn*Tn.B+Wn,Tn.$c=0,Vn+=Hn,Tn.mb=Gn?zn:null,Tn.nb=Gn?Vn:null,e(Vn+Gn<=Tn.Fc+Tn.Vb),$t(Tn),i(Tn.Ac,Tn.Bc,0,Dn),Qn=1}}if(Qn){if(Un.ka=0,Un.y=Tn.sa,Un.O=Tn.ta,Un.f=Tn.qa,Un.N=Tn.ra,Un.ea=Tn.Ha,Un.Vd=Tn.Ia,Un.fa=Tn.R,Un.Rc=Tn.B,Un.F=null,Un.J=0,!Pr){for(Qn=-255;255>=Qn;++Qn)Er[255+Qn]=0>Qn?-Qn:Qn;for(Qn=-1020;1020>=Qn;++Qn)Nr[1020+Qn]=-128>Qn?-128:127<Qn?127:Qn;for(Qn=-112;112>=Qn;++Qn)Lr[112+Qn]=-16>Qn?-16:15<Qn?15:Qn;for(Qn=-255;510>=Qn;++Qn)Tr[255+Qn]=0>Qn?0:255<Qn?255:Qn;Pr=1}or=ce,sr=ae,cr=oe,ur=se,dr=ue,lr=ie,hr=Je,pr=Xe,Ar=$e,fr=Qe,gr=Ke,mr=Ze,_r=tn,vr=en,yr=ze,br=He,wr=We,xr=Ve,Ai[0]=Ae,Ai[1]=le,Ai[2]=Le,Ai[3]=xe,Ai[4]=_e,Ai[5]=Pe,Ai[6]=Se,Ai[7]=ke,Ai[8]=Ie,Ai[9]=Fe,pi[0]=ve,pi[1]=de,pi[2]=pe,pi[3]=ge,pi[4]=be,pi[5]=ye,pi[6]=we,fi[0]=Oe,fi[1]=fe,fi[2]=Ce,fi[3]=je,fi[4]=Ee,fi[5]=Me,fi[6]=qe,Qn=1}else Qn=0}Qn&&(Qn=function(Tn,Un){for(Tn.M=0;Tn.M<Tn.Va;++Tn.M){var Qn,Dn=Tn.Jc[Tn.M&Tn.Xb],Hn=Tn.m,Gn=Tn;for(Qn=0;Qn<Gn.za;++Qn){var zn=Hn,Vn=Gn,Kn=Vn.Ac,Wn=Vn.Bc+4*Qn,Xn=Vn.zc,Yn=Vn.ya[Vn.aa+Qn];if(Vn.Qa.Bb?Yn.$b=k(zn,Vn.Pa.jb[0])?2+k(zn,Vn.Pa.jb[2]):k(zn,Vn.Pa.jb[1]):Yn.$b=0,Vn.kc&&(Yn.Ad=k(zn,Vn.Bd)),Yn.Za=!k(zn,145)+0,Yn.Za){var Jn=Yn.Ob,$n=0;for(Vn=0;4>Vn;++Vn){var Zn,er=Xn[0+Vn];for(Zn=0;4>Zn;++Zn){er=ui[Kn[Wn+Zn]][er];for(var tr=si[k(zn,er[0])];0<tr;)tr=si[2*tr+k(zn,er[tr])];er=-tr,Kn[Wn+Zn]=er}r(Jn,$n,Kn,Wn,4),$n+=4,Xn[0+Vn]=er}}else er=k(zn,156)?k(zn,128)?1:3:k(zn,163)?2:0,Yn.Ob[0]=er,i(Kn,Wn,er,4),i(Xn,0,er,4);Yn.Dd=k(zn,142)?k(zn,114)?k(zn,183)?1:3:2:0}if(Gn.m.Ka)return Jt(Tn,7,"Premature end-of-partition0 encountered.");for(;Tn.ja<Tn.za;++Tn.ja){if(Gn=Dn,zn=(Hn=Tn).rb[Hn.sb-1],Kn=Hn.rb[Hn.sb+Hn.ja],Qn=Hn.ya[Hn.aa+Hn.ja],Wn=Hn.kc?Qn.Ad:0)zn.la=Kn.la=0,Qn.Za||(zn.Na=Kn.Na=0),Qn.Hc=0,Qn.Gc=0,Qn.ia=0;else{var nr,rr;if(zn=Kn,Kn=Gn,Wn=Hn.Pa.Xc,Xn=Hn.ya[Hn.aa+Hn.ja],Yn=Hn.pb[Xn.$b],Vn=Xn.ad,Jn=0,$n=Hn.rb[Hn.sb-1],er=Zn=0,i(Vn,Jn,0,384),Xn.Za)var ir=0,ar=Wn[3];else{tr=a(16);var sr=zn.Na+$n.Na;if(sr=ii(Kn,Wn[1],sr,Yn.Eb,0,tr,0),zn.Na=$n.Na=(0<sr)+0,1<sr)or(tr,0,Vn,Jn);else{var lr=tr[0]+3>>3;for(tr=0;256>tr;tr+=16)Vn[Jn+tr]=lr}ir=1,ar=Wn[0]}var cr=15&zn.la,ur=15&$n.la;for(tr=0;4>tr;++tr){var dr=1&ur;for(lr=rr=0;4>lr;++lr)cr=cr>>1|(dr=(sr=ii(Kn,ar,sr=dr+(1&cr),Yn.Sc,ir,Vn,Jn))>ir)<<7,rr=rr<<2|(3<sr?3:1<sr?2:0!=Vn[Jn+0]),Jn+=16;cr>>=4,ur=ur>>1|dr<<7,Zn=(Zn<<8|rr)>>>0}for(ar=cr,ir=ur>>4,nr=0;4>nr;nr+=2){for(rr=0,cr=zn.la>>4+nr,ur=$n.la>>4+nr,tr=0;2>tr;++tr){for(dr=1&ur,lr=0;2>lr;++lr)sr=dr+(1&cr),cr=cr>>1|(dr=0<(sr=ii(Kn,Wn[2],sr,Yn.Qc,0,Vn,Jn)))<<3,rr=rr<<2|(3<sr?3:1<sr?2:0!=Vn[Jn+0]),Jn+=16;cr>>=2,ur=ur>>1|dr<<5}er|=rr<<4*nr,ar|=cr<<4<<nr,ir|=(240&ur)<<nr}zn.la=ar,$n.la=ir,Xn.Hc=Zn,Xn.Gc=er,Xn.ia=43690&er?0:Yn.ia,Wn=!(Zn|er)}if(0<Hn.L&&(Hn.wa[Hn.Y+Hn.ja]=Hn.gd[Qn.$b][Qn.Za],Hn.wa[Hn.Y+Hn.ja].La|=!Wn),Gn.Ka)return Jt(Tn,7,"Premature end-of-file encountered.")}if($t(Tn),Hn=Un,Gn=1,Qn=(Dn=Tn).D,zn=0<Dn.L&&Dn.M>=Dn.zb&&Dn.M<=Dn.Va,0==Dn.Aa)e:{if(Qn.M=Dn.M,Qn.uc=zn,On(Dn,Qn),Gn=1,Qn=(rr=Dn.D).Nb,zn=(er=Hi[Dn.L])*Dn.R,Kn=er/2*Dn.B,tr=16*Qn*Dn.R,lr=8*Qn*Dn.B,Wn=Dn.sa,Xn=Dn.ta-zn+tr,Yn=Dn.qa,Vn=Dn.ra-Kn+lr,Jn=Dn.Ha,$n=Dn.Ia-Kn+lr,ur=0==(cr=rr.M),Zn=cr>=Dn.Va-1,2==Dn.Aa&&On(Dn,rr),rr.uc)for(dr=(sr=Dn).D.M,e(sr.D.uc),rr=sr.yb;rr<sr.Hb;++rr){ir=rr,ar=dr;var kr=(Sr=(Ur=sr).D).Nb;nr=Ur.R;var Sr=Sr.wa[Sr.Y+ir],Cr=Ur.sa,Br=Ur.ta+16*kr*nr+16*ir,Er=Sr.dd,Nr=Sr.tc;if(0!=Nr)if(e(3<=Nr),1==Ur.L)0<ir&&br(Cr,Br,nr,Nr+4),Sr.La&&xr(Cr,Br,nr,Nr),0<ar&&yr(Cr,Br,nr,Nr+4),Sr.La&&wr(Cr,Br,nr,Nr);else{var Lr=Ur.B,Tr=Ur.qa,Pr=Ur.ra+8*kr*Lr+8*ir,Fr=Ur.Ha,Ur=Ur.Ia+8*kr*Lr+8*ir;kr=Sr.ld,0<ir&&(pr(Cr,Br,nr,Nr+4,Er,kr),fr(Tr,Pr,Fr,Ur,Lr,Nr+4,Er,kr)),Sr.La&&(mr(Cr,Br,nr,Nr,Er,kr),vr(Tr,Pr,Fr,Ur,Lr,Nr,Er,kr)),0<ar&&(hr(Cr,Br,nr,Nr+4,Er,kr),Ar(Tr,Pr,Fr,Ur,Lr,Nr+4,Er,kr)),Sr.La&&(gr(Cr,Br,nr,Nr,Er,kr),_r(Tr,Pr,Fr,Ur,Lr,Nr,Er,kr))}}if(Dn.ia&&alert("todo:DitherRow"),null!=Hn.put){if(rr=16*cr,cr=16*(cr+1),ur?(Hn.y=Dn.sa,Hn.O=Dn.ta+tr,Hn.f=Dn.qa,Hn.N=Dn.ra+lr,Hn.ea=Dn.Ha,Hn.W=Dn.Ia+lr):(rr-=er,Hn.y=Wn,Hn.O=Xn,Hn.f=Yn,Hn.N=Vn,Hn.ea=Jn,Hn.W=$n),Zn||(cr-=er),cr>Hn.o&&(cr=Hn.o),Hn.F=null,Hn.J=null,null!=Dn.Fa&&0<Dn.Fa.length&&rr<cr&&(Hn.J=fn(Dn,Hn,rr,cr-rr),Hn.F=Dn.mb,null==Hn.F&&0==Hn.F.length)){Gn=Jt(Dn,3,"Could not decode alpha data.");break e}rr<Hn.j&&(er=Hn.j-rr,rr=Hn.j,e(!(1&er)),Hn.O+=Dn.R*er,Hn.N+=Dn.B*(er>>1),Hn.W+=Dn.B*(er>>1),null!=Hn.F&&(Hn.J+=Hn.width*er)),rr<cr&&(Hn.O+=Hn.v,Hn.N+=Hn.v>>1,Hn.W+=Hn.v>>1,null!=Hn.F&&(Hn.J+=Hn.v),Hn.ka=rr-Hn.j,Hn.U=Hn.va-Hn.v,Hn.T=cr-rr,Gn=Hn.put(Hn))}Qn+1!=Dn.Ic||Zn||(r(Dn.sa,Dn.ta-zn,Wn,Xn+16*Dn.R,zn),r(Dn.qa,Dn.ra-Kn,Yn,Vn+8*Dn.B,Kn),r(Dn.Ha,Dn.Ia-Kn,Jn,$n+8*Dn.B,Kn))}if(!Gn)return Jt(Tn,6,"Output aborted.")}return 1}(Tn,Un)),null!=Un.bc&&Un.bc(Un),Qn&=1}return Qn?(Tn.cb=0,Qn):0}function te(Tn,Un,Qn,Dn,Hn){Hn=Tn[Un+Qn+32*Dn]+(Hn>>3),Tn[Un+Qn+32*Dn]=-256&Hn?0>Hn?0:255:Hn}function ee(Tn,Un,Qn,Dn,Hn,Gn){te(Tn,Un,0,Qn,Dn+Hn),te(Tn,Un,1,Qn,Dn+Gn),te(Tn,Un,2,Qn,Dn-Gn),te(Tn,Un,3,Qn,Dn-Hn)}function ne(Tn){return(20091*Tn>>16)+Tn}function re(Tn,Un,Qn,Dn){var Hn,Gn=0,zn=a(16);for(Hn=0;4>Hn;++Hn){var Vn=Tn[Un+0]+Tn[Un+8],Kn=Tn[Un+0]-Tn[Un+8],Wn=(35468*Tn[Un+4]>>16)-ne(Tn[Un+12]),Xn=ne(Tn[Un+4])+(35468*Tn[Un+12]>>16);zn[Gn+0]=Vn+Xn,zn[Gn+1]=Kn+Wn,zn[Gn+2]=Kn-Wn,zn[Gn+3]=Vn-Xn,Gn+=4,Un++}for(Hn=Gn=0;4>Hn;++Hn)Vn=(Tn=zn[Gn+0]+4)+zn[Gn+8],Kn=Tn-zn[Gn+8],Wn=(35468*zn[Gn+4]>>16)-ne(zn[Gn+12]),te(Qn,Dn,0,0,Vn+(Xn=ne(zn[Gn+4])+(35468*zn[Gn+12]>>16))),te(Qn,Dn,1,0,Kn+Wn),te(Qn,Dn,2,0,Kn-Wn),te(Qn,Dn,3,0,Vn-Xn),Gn++,Dn+=32}function ie(Tn,Un,Qn,Dn){var Hn=Tn[Un+0]+4,Gn=35468*Tn[Un+4]>>16,zn=ne(Tn[Un+4]),Vn=35468*Tn[Un+1]>>16;ee(Qn,Dn,0,Hn+zn,Tn=ne(Tn[Un+1]),Vn),ee(Qn,Dn,1,Hn+Gn,Tn,Vn),ee(Qn,Dn,2,Hn-Gn,Tn,Vn),ee(Qn,Dn,3,Hn-zn,Tn,Vn)}function ae(Tn,Un,Qn,Dn,Hn){re(Tn,Un,Qn,Dn),Hn&&re(Tn,Un+16,Qn,Dn+4)}function oe(Tn,Un,Qn,Dn){sr(Tn,Un+0,Qn,Dn,1),sr(Tn,Un+32,Qn,Dn+128,1)}function se(Tn,Un,Qn,Dn){var Hn;for(Tn=Tn[Un+0]+4,Hn=0;4>Hn;++Hn)for(Un=0;4>Un;++Un)te(Qn,Dn,Un,Hn,Tn)}function ue(Tn,Un,Qn,Dn){Tn[Un+0]&&ur(Tn,Un+0,Qn,Dn),Tn[Un+16]&&ur(Tn,Un+16,Qn,Dn+4),Tn[Un+32]&&ur(Tn,Un+32,Qn,Dn+128),Tn[Un+48]&&ur(Tn,Un+48,Qn,Dn+128+4)}function ce(Tn,Un,Qn,Dn){var Hn,Gn=a(16);for(Hn=0;4>Hn;++Hn){var zn=Tn[Un+0+Hn]+Tn[Un+12+Hn],Vn=Tn[Un+4+Hn]+Tn[Un+8+Hn],Kn=Tn[Un+4+Hn]-Tn[Un+8+Hn],Wn=Tn[Un+0+Hn]-Tn[Un+12+Hn];Gn[0+Hn]=zn+Vn,Gn[8+Hn]=zn-Vn,Gn[4+Hn]=Wn+Kn,Gn[12+Hn]=Wn-Kn}for(Hn=0;4>Hn;++Hn)zn=(Tn=Gn[0+4*Hn]+3)+Gn[3+4*Hn],Vn=Gn[1+4*Hn]+Gn[2+4*Hn],Kn=Gn[1+4*Hn]-Gn[2+4*Hn],Wn=Tn-Gn[3+4*Hn],Qn[Dn+0]=zn+Vn>>3,Qn[Dn+16]=Wn+Kn>>3,Qn[Dn+32]=zn-Vn>>3,Qn[Dn+48]=Wn-Kn>>3,Dn+=64}function he(Tn,Un,Qn){var Dn,Hn=Un-32,Gn=Ir,zn=255-Tn[Hn-1];for(Dn=0;Dn<Qn;++Dn){var Vn,Kn=Gn,Wn=zn+Tn[Un-1];for(Vn=0;Vn<Qn;++Vn)Tn[Un+Vn]=Kn[Wn+Tn[Hn+Vn]];Un+=32}}function le(Tn,Un){he(Tn,Un,4)}function fe(Tn,Un){he(Tn,Un,8)}function de(Tn,Un){he(Tn,Un,16)}function pe(Tn,Un){var Qn;for(Qn=0;16>Qn;++Qn)r(Tn,Un+32*Qn,Tn,Un-32,16)}function ge(Tn,Un){var Qn;for(Qn=16;0<Qn;--Qn)i(Tn,Un,Tn[Un-1],16),Un+=32}function me(Tn,Un,Qn){var Dn;for(Dn=0;16>Dn;++Dn)i(Un,Qn+32*Dn,Tn,16)}function ve(Tn,Un){var Qn,Dn=16;for(Qn=0;16>Qn;++Qn)Dn+=Tn[Un-1+32*Qn]+Tn[Un+Qn-32];me(Dn>>5,Tn,Un)}function be(Tn,Un){var Qn,Dn=8;for(Qn=0;16>Qn;++Qn)Dn+=Tn[Un-1+32*Qn];me(Dn>>4,Tn,Un)}function ye(Tn,Un){var Qn,Dn=8;for(Qn=0;16>Qn;++Qn)Dn+=Tn[Un+Qn-32];me(Dn>>4,Tn,Un)}function we(Tn,Un){me(128,Tn,Un)}function Ne(Tn,Un,Qn){return Tn+2*Un+Qn+2>>2}function Le(Tn,Un){var Qn,Dn=Un-32;for(Dn=new Uint8Array([Ne(Tn[Dn-1],Tn[Dn+0],Tn[Dn+1]),Ne(Tn[Dn+0],Tn[Dn+1],Tn[Dn+2]),Ne(Tn[Dn+1],Tn[Dn+2],Tn[Dn+3]),Ne(Tn[Dn+2],Tn[Dn+3],Tn[Dn+4])]),Qn=0;4>Qn;++Qn)r(Tn,Un+32*Qn,Dn,0,Dn.length)}function xe(Tn,Un){var Qn=Tn[Un-1],Dn=Tn[Un-1+32],Hn=Tn[Un-1+64],Gn=Tn[Un-1+96];F(Tn,Un+0,16843009*Ne(Tn[Un-1-32],Qn,Dn)),F(Tn,Un+32,16843009*Ne(Qn,Dn,Hn)),F(Tn,Un+64,16843009*Ne(Dn,Hn,Gn)),F(Tn,Un+96,16843009*Ne(Hn,Gn,Gn))}function Ae(Tn,Un){var Qn,Dn=4;for(Qn=0;4>Qn;++Qn)Dn+=Tn[Un+Qn-32]+Tn[Un-1+32*Qn];for(Dn>>=3,Qn=0;4>Qn;++Qn)i(Tn,Un+32*Qn,Dn,4)}function _e(Tn,Un){var Qn=Tn[Un-1+0],Dn=Tn[Un-1+32],Hn=Tn[Un-1+64],Gn=Tn[Un-1-32],zn=Tn[Un+0-32],Vn=Tn[Un+1-32],Kn=Tn[Un+2-32],Wn=Tn[Un+3-32];Tn[Un+0+96]=Ne(Dn,Hn,Tn[Un-1+96]),Tn[Un+1+96]=Tn[Un+0+64]=Ne(Qn,Dn,Hn),Tn[Un+2+96]=Tn[Un+1+64]=Tn[Un+0+32]=Ne(Gn,Qn,Dn),Tn[Un+3+96]=Tn[Un+2+64]=Tn[Un+1+32]=Tn[Un+0+0]=Ne(zn,Gn,Qn),Tn[Un+3+64]=Tn[Un+2+32]=Tn[Un+1+0]=Ne(Vn,zn,Gn),Tn[Un+3+32]=Tn[Un+2+0]=Ne(Kn,Vn,zn),Tn[Un+3+0]=Ne(Wn,Kn,Vn)}function Se(Tn,Un){var Qn=Tn[Un+1-32],Dn=Tn[Un+2-32],Hn=Tn[Un+3-32],Gn=Tn[Un+4-32],zn=Tn[Un+5-32],Vn=Tn[Un+6-32],Kn=Tn[Un+7-32];Tn[Un+0+0]=Ne(Tn[Un+0-32],Qn,Dn),Tn[Un+1+0]=Tn[Un+0+32]=Ne(Qn,Dn,Hn),Tn[Un+2+0]=Tn[Un+1+32]=Tn[Un+0+64]=Ne(Dn,Hn,Gn),Tn[Un+3+0]=Tn[Un+2+32]=Tn[Un+1+64]=Tn[Un+0+96]=Ne(Hn,Gn,zn),Tn[Un+3+32]=Tn[Un+2+64]=Tn[Un+1+96]=Ne(Gn,zn,Vn),Tn[Un+3+64]=Tn[Un+2+96]=Ne(zn,Vn,Kn),Tn[Un+3+96]=Ne(Vn,Kn,Kn)}function Pe(Tn,Un){var Qn=Tn[Un-1+0],Dn=Tn[Un-1+32],Hn=Tn[Un-1+64],Gn=Tn[Un-1-32],zn=Tn[Un+0-32],Vn=Tn[Un+1-32],Kn=Tn[Un+2-32],Wn=Tn[Un+3-32];Tn[Un+0+0]=Tn[Un+1+64]=Gn+zn+1>>1,Tn[Un+1+0]=Tn[Un+2+64]=zn+Vn+1>>1,Tn[Un+2+0]=Tn[Un+3+64]=Vn+Kn+1>>1,Tn[Un+3+0]=Kn+Wn+1>>1,Tn[Un+0+96]=Ne(Hn,Dn,Qn),Tn[Un+0+64]=Ne(Dn,Qn,Gn),Tn[Un+0+32]=Tn[Un+1+96]=Ne(Qn,Gn,zn),Tn[Un+1+32]=Tn[Un+2+96]=Ne(Gn,zn,Vn),Tn[Un+2+32]=Tn[Un+3+96]=Ne(zn,Vn,Kn),Tn[Un+3+32]=Ne(Vn,Kn,Wn)}function ke(Tn,Un){var Qn=Tn[Un+0-32],Dn=Tn[Un+1-32],Hn=Tn[Un+2-32],Gn=Tn[Un+3-32],zn=Tn[Un+4-32],Vn=Tn[Un+5-32],Kn=Tn[Un+6-32],Wn=Tn[Un+7-32];Tn[Un+0+0]=Qn+Dn+1>>1,Tn[Un+1+0]=Tn[Un+0+64]=Dn+Hn+1>>1,Tn[Un+2+0]=Tn[Un+1+64]=Hn+Gn+1>>1,Tn[Un+3+0]=Tn[Un+2+64]=Gn+zn+1>>1,Tn[Un+0+32]=Ne(Qn,Dn,Hn),Tn[Un+1+32]=Tn[Un+0+96]=Ne(Dn,Hn,Gn),Tn[Un+2+32]=Tn[Un+1+96]=Ne(Hn,Gn,zn),Tn[Un+3+32]=Tn[Un+2+96]=Ne(Gn,zn,Vn),Tn[Un+3+64]=Ne(zn,Vn,Kn),Tn[Un+3+96]=Ne(Vn,Kn,Wn)}function Fe(Tn,Un){var Qn=Tn[Un-1+0],Dn=Tn[Un-1+32],Hn=Tn[Un-1+64],Gn=Tn[Un-1+96];Tn[Un+0+0]=Qn+Dn+1>>1,Tn[Un+2+0]=Tn[Un+0+32]=Dn+Hn+1>>1,Tn[Un+2+32]=Tn[Un+0+64]=Hn+Gn+1>>1,Tn[Un+1+0]=Ne(Qn,Dn,Hn),Tn[Un+3+0]=Tn[Un+1+32]=Ne(Dn,Hn,Gn),Tn[Un+3+32]=Tn[Un+1+64]=Ne(Hn,Gn,Gn),Tn[Un+3+64]=Tn[Un+2+64]=Tn[Un+0+96]=Tn[Un+1+96]=Tn[Un+2+96]=Tn[Un+3+96]=Gn}function Ie(Tn,Un){var Qn=Tn[Un-1+0],Dn=Tn[Un-1+32],Hn=Tn[Un-1+64],Gn=Tn[Un-1+96],zn=Tn[Un-1-32],Vn=Tn[Un+0-32],Kn=Tn[Un+1-32],Wn=Tn[Un+2-32];Tn[Un+0+0]=Tn[Un+2+32]=Qn+zn+1>>1,Tn[Un+0+32]=Tn[Un+2+64]=Dn+Qn+1>>1,Tn[Un+0+64]=Tn[Un+2+96]=Hn+Dn+1>>1,Tn[Un+0+96]=Gn+Hn+1>>1,Tn[Un+3+0]=Ne(Vn,Kn,Wn),Tn[Un+2+0]=Ne(zn,Vn,Kn),Tn[Un+1+0]=Tn[Un+3+32]=Ne(Qn,zn,Vn),Tn[Un+1+32]=Tn[Un+3+64]=Ne(Dn,Qn,zn),Tn[Un+1+64]=Tn[Un+3+96]=Ne(Hn,Dn,Qn),Tn[Un+1+96]=Ne(Gn,Hn,Dn)}function Ce(Tn,Un){var Qn;for(Qn=0;8>Qn;++Qn)r(Tn,Un+32*Qn,Tn,Un-32,8)}function je(Tn,Un){var Qn;for(Qn=0;8>Qn;++Qn)i(Tn,Un,Tn[Un-1],8),Un+=32}function Be(Tn,Un,Qn){var Dn;for(Dn=0;8>Dn;++Dn)i(Un,Qn+32*Dn,Tn,8)}function Oe(Tn,Un){var Qn,Dn=8;for(Qn=0;8>Qn;++Qn)Dn+=Tn[Un+Qn-32]+Tn[Un-1+32*Qn];Be(Dn>>4,Tn,Un)}function Me(Tn,Un){var Qn,Dn=4;for(Qn=0;8>Qn;++Qn)Dn+=Tn[Un+Qn-32];Be(Dn>>3,Tn,Un)}function Ee(Tn,Un){var Qn,Dn=4;for(Qn=0;8>Qn;++Qn)Dn+=Tn[Un-1+32*Qn];Be(Dn>>3,Tn,Un)}function qe(Tn,Un){Be(128,Tn,Un)}function Re(Tn,Un,Qn){var Dn=Tn[Un-Qn],Hn=Tn[Un+0],Gn=3*(Hn-Dn)+Fr[1020+Tn[Un-2*Qn]-Tn[Un+Qn]],zn=Ur[112+(Gn+4>>3)];Tn[Un-Qn]=Ir[255+Dn+Ur[112+(Gn+3>>3)]],Tn[Un+0]=Ir[255+Hn-zn]}function Te(Tn,Un,Qn,Dn){var Hn=Tn[Un+0],Gn=Tn[Un+Qn];return Rr[255+Tn[Un-2*Qn]-Tn[Un-Qn]]>Dn||Rr[255+Gn-Hn]>Dn}function De(Tn,Un,Qn,Dn){return 4*Rr[255+Tn[Un-Qn]-Tn[Un+0]]+Rr[255+Tn[Un-2*Qn]-Tn[Un+Qn]]<=Dn}function Ue(Tn,Un,Qn,Dn,Hn){var Gn=Tn[Un-3*Qn],zn=Tn[Un-2*Qn],Vn=Tn[Un-Qn],Kn=Tn[Un+0],Wn=Tn[Un+Qn],Xn=Tn[Un+2*Qn],Yn=Tn[Un+3*Qn];return 4*Rr[255+Vn-Kn]+Rr[255+zn-Wn]>Dn?0:Rr[255+Tn[Un-4*Qn]-Gn]<=Hn&&Rr[255+Gn-zn]<=Hn&&Rr[255+zn-Vn]<=Hn&&Rr[255+Yn-Xn]<=Hn&&Rr[255+Xn-Wn]<=Hn&&Rr[255+Wn-Kn]<=Hn}function ze(Tn,Un,Qn,Dn){var Hn=2*Dn+1;for(Dn=0;16>Dn;++Dn)De(Tn,Un+Dn,Qn,Hn)&&Re(Tn,Un+Dn,Qn)}function He(Tn,Un,Qn,Dn){var Hn=2*Dn+1;for(Dn=0;16>Dn;++Dn)De(Tn,Un+Dn*Qn,1,Hn)&&Re(Tn,Un+Dn*Qn,1)}function We(Tn,Un,Qn,Dn){var Hn;for(Hn=3;0<Hn;--Hn)ze(Tn,Un+=4*Qn,Qn,Dn)}function Ve(Tn,Un,Qn,Dn){var Hn;for(Hn=3;0<Hn;--Hn)He(Tn,Un+=4,Qn,Dn)}function Ge(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){for(Gn=2*Gn+1;0<Hn--;){if(Ue(Tn,Un,Qn,Gn,zn))if(Te(Tn,Un,Qn,Vn))Re(Tn,Un,Qn);else{var Kn=Tn,Wn=Un,Xn=Qn,Yn=Kn[Wn-2*Xn],Jn=Kn[Wn-Xn],$n=Kn[Wn+0],Zn=Kn[Wn+Xn],er=Kn[Wn+2*Xn],tr=27*(rr=Fr[1020+3*($n-Jn)+Fr[1020+Yn-Zn]])+63>>7,nr=18*rr+63>>7,rr=9*rr+63>>7;Kn[Wn-3*Xn]=Ir[255+Kn[Wn-3*Xn]+rr],Kn[Wn-2*Xn]=Ir[255+Yn+nr],Kn[Wn-Xn]=Ir[255+Jn+tr],Kn[Wn+0]=Ir[255+$n-tr],Kn[Wn+Xn]=Ir[255+Zn-nr],Kn[Wn+2*Xn]=Ir[255+er-rr]}Un+=Dn}}function Ye(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){for(Gn=2*Gn+1;0<Hn--;){if(Ue(Tn,Un,Qn,Gn,zn))if(Te(Tn,Un,Qn,Vn))Re(Tn,Un,Qn);else{var Kn=Tn,Wn=Un,Xn=Qn,Yn=Kn[Wn-Xn],Jn=Kn[Wn+0],$n=Kn[Wn+Xn],Zn=Ur[112+(4+(er=3*(Jn-Yn))>>3)],er=Ur[112+(er+3>>3)],tr=Zn+1>>1;Kn[Wn-2*Xn]=Ir[255+Kn[Wn-2*Xn]+tr],Kn[Wn-Xn]=Ir[255+Yn+er],Kn[Wn+0]=Ir[255+Jn-Zn],Kn[Wn+Xn]=Ir[255+$n-tr]}Un+=Dn}}function Je(Tn,Un,Qn,Dn,Hn,Gn){Ge(Tn,Un,Qn,1,16,Dn,Hn,Gn)}function Xe(Tn,Un,Qn,Dn,Hn,Gn){Ge(Tn,Un,1,Qn,16,Dn,Hn,Gn)}function Ke(Tn,Un,Qn,Dn,Hn,Gn){var zn;for(zn=3;0<zn;--zn)Ye(Tn,Un+=4*Qn,Qn,1,16,Dn,Hn,Gn)}function Ze(Tn,Un,Qn,Dn,Hn,Gn){var zn;for(zn=3;0<zn;--zn)Ye(Tn,Un+=4,1,Qn,16,Dn,Hn,Gn)}function $e(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){Ge(Tn,Un,Hn,1,8,Gn,zn,Vn),Ge(Qn,Dn,Hn,1,8,Gn,zn,Vn)}function Qe(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){Ge(Tn,Un,1,Hn,8,Gn,zn,Vn),Ge(Qn,Dn,1,Hn,8,Gn,zn,Vn)}function tn(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){Ye(Tn,Un+4*Hn,Hn,1,8,Gn,zn,Vn),Ye(Qn,Dn+4*Hn,Hn,1,8,Gn,zn,Vn)}function en(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){Ye(Tn,Un+4,1,Hn,8,Gn,zn,Vn),Ye(Qn,Dn+4,1,Hn,8,Gn,zn,Vn)}function nn(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ut,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rn(){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 an(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function on(){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 sn(){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 on,this.ab=0,this.gc=o(4,an),this.Oc=0}function un(){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 cn(Tn,Un,Qn,Dn,Hn,Gn,zn){for(Tn=null==Tn?0:Tn[Un+0],Un=0;Un<zn;++Un)Hn[Gn+Un]=Tn+Qn[Dn+Un]&255,Tn=Hn[Gn+Un]}function hn(Tn,Un,Qn,Dn,Hn,Gn,zn){var Vn;if(null==Tn)cn(null,null,Qn,Dn,Hn,Gn,zn);else for(Vn=0;Vn<zn;++Vn)Hn[Gn+Vn]=Tn[Un+Vn]+Qn[Dn+Vn]&255}function ln(Tn,Un,Qn,Dn,Hn,Gn,zn){if(null==Tn)cn(null,null,Qn,Dn,Hn,Gn,zn);else{var Vn,Kn=Tn[Un+0],Wn=Kn,Xn=Kn;for(Vn=0;Vn<zn;++Vn)Wn=Xn+(Kn=Tn[Un+Vn])-Wn,Xn=Qn[Dn+Vn]+(-256&Wn?0>Wn?0:255:Wn)&255,Wn=Kn,Hn[Gn+Vn]=Xn}}function fn(Tn,Un,Qn,Dn){var Hn=Un.width,Gn=Un.o;if(e(null!=Tn&&null!=Un),0>Qn||0>=Dn||Qn+Dn>Gn)return null;if(!Tn.Cc){if(null==Tn.ga){var zn;if(Tn.ga=new un,(zn=null==Tn.ga)||(zn=Un.width*Un.o,e(0==Tn.Gb.length),Tn.Gb=a(zn),Tn.Uc=0,null==Tn.Gb?zn=0:(Tn.mb=Tn.Gb,Tn.nb=Tn.Uc,Tn.rc=null,zn=1),zn=!zn),!zn){zn=Tn.ga;var Vn=Tn.Fa,Kn=Tn.P,Wn=Tn.qc,Xn=Tn.mb,Yn=Tn.nb,Jn=Kn+1,$n=Wn-1,Zn=zn.l;if(e(null!=Vn&&null!=Xn&&null!=Un),_i[0]=null,_i[1]=cn,_i[2]=hn,_i[3]=ln,zn.ca=Xn,zn.tb=Yn,zn.c=Un.width,zn.i=Un.height,e(0<zn.c&&0<zn.i),1>=Wn)Un=0;else if(zn.$a=Vn[Kn+0]>>0&3,zn.Z=Vn[Kn+0]>>2&3,zn.Lc=Vn[Kn+0]>>4&3,Kn=Vn[Kn+0]>>6&3,0>zn.$a||1<zn.$a||4<=zn.Z||1<zn.Lc||Kn)Un=0;else if(Zn.put=dt,Zn.ac=ft,Zn.bc=pt,Zn.ma=zn,Zn.width=Un.width,Zn.height=Un.height,Zn.Da=Un.Da,Zn.v=Un.v,Zn.va=Un.va,Zn.j=Un.j,Zn.o=Un.o,zn.$a)e:{e(1==zn.$a),Un=kt();t:for(;;){if(null==Un){Un=0;break e}if(e(null!=zn),zn.mc=Un,Un.c=zn.c,Un.i=zn.i,Un.l=zn.l,Un.l.ma=zn,Un.l.width=zn.c,Un.l.height=zn.i,Un.a=0,v(Un.m,Vn,Jn,$n),!Ft(zn.c,zn.i,1,Un,null))break t;if(1==Un.ab&&3==Un.gc[0].hc&&xt(Un.s)?(zn.ic=1,Vn=Un.c*Un.i,Un.Ta=null,Un.Ua=0,Un.V=a(Vn),Un.Ba=0,null==Un.V?(Un.a=1,Un=0):Un=1):(zn.ic=0,Un=It(Un,zn.c)),!Un)break t;Un=1;break e}zn.mc=null,Un=0}else Un=$n>=zn.c*zn.i;zn=!Un}if(zn)return null;1!=Tn.ga.Lc?Tn.Ga=0:Dn=Gn-Qn}e(null!=Tn.ga),e(Qn+Dn<=Gn);e:{if(Un=(Vn=Tn.ga).c,Gn=Vn.l.o,0==Vn.$a){if(Jn=Tn.rc,$n=Tn.Vc,Zn=Tn.Fa,Kn=Tn.P+1+Qn*Un,Wn=Tn.mb,Xn=Tn.nb+Qn*Un,e(Kn<=Tn.P+Tn.qc),0!=Vn.Z)for(e(null!=_i[Vn.Z]),zn=0;zn<Dn;++zn)_i[Vn.Z](Jn,$n,Zn,Kn,Wn,Xn,Un),Jn=Wn,$n=Xn,Xn+=Un,Kn+=Un;else for(zn=0;zn<Dn;++zn)r(Wn,Xn,Zn,Kn,Un),Jn=Wn,$n=Xn,Xn+=Un,Kn+=Un;Tn.rc=Jn,Tn.Vc=$n}else{if(e(null!=Vn.mc),Un=Qn+Dn,e(null!=(zn=Vn.mc)),e(Un<=zn.i),zn.C>=Un)Un=1;else if(Vn.ic||vn(),Vn.ic){Vn=zn.V,Jn=zn.Ba,$n=zn.c;var er=zn.i,tr=(Zn=1,Kn=zn.$/$n,Wn=zn.$%$n,Xn=zn.m,Yn=zn.s,zn.$),nr=$n*er,rr=$n*Un,ir=Yn.wc,ar=tr<rr?wt(Yn,Wn,Kn):null;e(tr<=nr),e(Un<=er),e(xt(Yn));t:for(;;){for(;!Xn.h&&tr<rr;){if(Wn&ir||(ar=wt(Yn,Wn,Kn)),e(null!=ar),_(Xn),256>(er=bt(ar.G[0],ar.H[0],Xn)))Vn[Jn+tr]=er,++tr,++Wn>=$n&&(Wn=0,++Kn<=Un&&!(Kn%16)&&_t(zn,Kn));else{if(!(280>er)){Zn=0;break t}er=mt(er-256,Xn);var or,sr=bt(ar.G[4],ar.H[4],Xn);if(_(Xn),!(tr>=(sr=vt($n,sr=mt(sr,Xn)))&&nr-tr>=er)){Zn=0;break t}for(or=0;or<er;++or)Vn[Jn+tr+or]=Vn[Jn+tr+or-sr];for(tr+=er,Wn+=er;Wn>=$n;)Wn-=$n,++Kn<=Un&&!(Kn%16)&&_t(zn,Kn);tr<rr&&Wn&ir&&(ar=wt(Yn,Wn,Kn))}e(Xn.h==x(Xn))}_t(zn,Kn>Un?Un:Kn);break t}!Zn||Xn.h&&tr<nr?(Zn=0,zn.a=Xn.h?5:3):zn.$=tr,Un=Zn}else Un=St(zn,zn.V,zn.Ba,zn.c,zn.i,Un,Ct);if(!Un){Dn=0;break e}}Qn+Dn>=Gn&&(Tn.Cc=1),Dn=1}if(!Dn)return null;if(Tn.Cc&&(null!=(Dn=Tn.ga)&&(Dn.mc=null),Tn.ga=null,0<Tn.Ga))return alert("todo:WebPDequantizeLevels"),null}return Tn.nb+Qn*Hn}function dn(Tn,Un,Qn,Dn,Hn,Gn){for(;0<Hn--;){var zn,Vn=Tn,Kn=Un+(Qn?1:0),Wn=Tn,Xn=Un+(Qn?0:3);for(zn=0;zn<Dn;++zn){var Yn=Wn[Xn+4*zn];255!=Yn&&(Yn*=32897,Vn[Kn+4*zn+0]=Vn[Kn+4*zn+0]*Yn>>23,Vn[Kn+4*zn+1]=Vn[Kn+4*zn+1]*Yn>>23,Vn[Kn+4*zn+2]=Vn[Kn+4*zn+2]*Yn>>23)}Un+=Gn}}function pn(Tn,Un,Qn,Dn,Hn){for(;0<Dn--;){var Gn;for(Gn=0;Gn<Qn;++Gn){var zn=Tn[Un+2*Gn+0],Vn=15&(Wn=Tn[Un+2*Gn+1]),Kn=4369*Vn,Wn=(240&Wn|Wn>>4)*Kn>>16;Tn[Un+2*Gn+0]=(240&zn|zn>>4)*Kn>>16&240|(15&zn|zn<<4)*Kn>>16>>4&15,Tn[Un+2*Gn+1]=240&Wn|Vn}Un+=Hn}}function gn(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){var Kn,Wn,Xn=255;for(Wn=0;Wn<Hn;++Wn){for(Kn=0;Kn<Dn;++Kn){var Yn=Tn[Un+Kn];Gn[zn+4*Kn]=Yn,Xn&=Yn}Un+=Qn,zn+=Vn}return 255!=Xn}function mn(Tn,Un,Qn,Dn,Hn){var Gn;for(Gn=0;Gn<Hn;++Gn)Qn[Dn+Gn]=Tn[Un+Gn]>>8}function vn(){kr=dn,Sr=pn,Cr=gn,Br=mn}function bn(Un,Qn,Dn){Tn[Un]=function(Tn,Un,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr,rr){var ir,ar=rr-1>>1,or=zn[Vn+0]|Kn[Wn+0]<<16,sr=Xn[Yn+0]|Jn[$n+0]<<16;e(null!=Tn);var lr=3*or+sr+131074>>2;for(Qn(Tn[Un+0],255&lr,lr>>16,Zn,er),null!=Hn&&(lr=3*sr+or+131074>>2,Qn(Hn[Gn+0],255&lr,lr>>16,tr,nr)),ir=1;ir<=ar;++ir){var cr=zn[Vn+ir]|Kn[Wn+ir]<<16,ur=Xn[Yn+ir]|Jn[$n+ir]<<16,dr=or+cr+sr+ur+524296,hr=dr+2*(cr+sr)>>3;lr=hr+or>>1,or=(dr=dr+2*(or+ur)>>3)+cr>>1,Qn(Tn[Un+2*ir-1],255&lr,lr>>16,Zn,er+(2*ir-1)*Dn),Qn(Tn[Un+2*ir-0],255&or,or>>16,Zn,er+(2*ir-0)*Dn),null!=Hn&&(lr=dr+sr>>1,or=hr+ur>>1,Qn(Hn[Gn+2*ir-1],255&lr,lr>>16,tr,nr+(2*ir-1)*Dn),Qn(Hn[Gn+2*ir+0],255&or,or>>16,tr,nr+(2*ir+0)*Dn)),or=cr,sr=ur}1&rr||(lr=3*or+sr+131074>>2,Qn(Tn[Un+rr-1],255&lr,lr>>16,Zn,er+(rr-1)*Dn),null!=Hn&&(lr=3*sr+or+131074>>2,Qn(Hn[Gn+rr-1],255&lr,lr>>16,tr,nr+(rr-1)*Dn)))}}function yn(){vi[Mr]=yi,vi[Qr]=xi,vi[Or]=wi,vi[Dr]=ki,vi[jr]=Si,vi[Hr]=Ci,vi[Gr]=Bi,vi[zr]=xi,vi[Vr]=ki,vi[Kr]=Si,vi[qr]=Ci}function wn(Tn){return Tn&~Fi?0>Tn?0:255:Tn>>Pi}function Nn(Tn,Un){return wn((19077*Tn>>8)+(26149*Un>>8)-14234)}function Ln(Tn,Un,Qn){return wn((19077*Tn>>8)-(6419*Un>>8)-(13320*Qn>>8)+8708)}function xn(Tn,Un){return wn((19077*Tn>>8)+(33050*Un>>8)-17685)}function An(Tn,Un,Qn,Dn,Hn){Dn[Hn+0]=Nn(Tn,Qn),Dn[Hn+1]=Ln(Tn,Un,Qn),Dn[Hn+2]=xn(Tn,Un)}function _n(Tn,Un,Qn,Dn,Hn){Dn[Hn+0]=xn(Tn,Un),Dn[Hn+1]=Ln(Tn,Un,Qn),Dn[Hn+2]=Nn(Tn,Qn)}function Sn(Tn,Un,Qn,Dn,Hn){var Gn=Ln(Tn,Un,Qn);Un=Gn<<3&224|xn(Tn,Un)>>3,Dn[Hn+0]=248&Nn(Tn,Qn)|Gn>>5,Dn[Hn+1]=Un}function Pn(Tn,Un,Qn,Dn,Hn){var Gn=240&xn(Tn,Un)|15;Dn[Hn+0]=240&Nn(Tn,Qn)|Ln(Tn,Un,Qn)>>4,Dn[Hn+1]=Gn}function kn(Tn,Un,Qn,Dn,Hn){Dn[Hn+0]=255,An(Tn,Un,Qn,Dn,Hn+1)}function Fn(Tn,Un,Qn,Dn,Hn){_n(Tn,Un,Qn,Dn,Hn),Dn[Hn+3]=255}function In(Tn,Un,Qn,Dn,Hn){An(Tn,Un,Qn,Dn,Hn),Dn[Hn+3]=255}function Vt(Tn,Un){return 0>Tn?0:Tn>Un?Un:Tn}function Cn(Un,Qn,Dn){Tn[Un]=function(Tn,Un,Hn,Gn,zn,Vn,Kn,Wn,Xn){for(var Yn=Wn+(-2&Xn)*Dn;Wn!=Yn;)Qn(Tn[Un+0],Hn[Gn+0],zn[Vn+0],Kn,Wn),Qn(Tn[Un+1],Hn[Gn+0],zn[Vn+0],Kn,Wn+Dn),Un+=2,++Gn,++Vn,Wn+=2*Dn;1&Xn&&Qn(Tn[Un+0],Hn[Gn+0],zn[Vn+0],Kn,Wn)}}function jn(Tn,Un,Qn){return 0==Qn?0==Tn?0==Un?6:5:0==Un?4:0:Qn}function Bn(Tn,Un,Qn,Dn,Hn){switch(Tn>>>30){case 3:sr(Un,Qn,Dn,Hn,0);break;case 2:lr(Un,Qn,Dn,Hn);break;case 1:ur(Un,Qn,Dn,Hn)}}function On(Tn,Un){var Qn,Dn,Hn=Un.M,Gn=Un.Nb,zn=Tn.oc,Vn=Tn.pc+40,Kn=Tn.oc,Wn=Tn.pc+584,Xn=Tn.oc,Yn=Tn.pc+600;for(Qn=0;16>Qn;++Qn)zn[Vn+32*Qn-1]=129;for(Qn=0;8>Qn;++Qn)Kn[Wn+32*Qn-1]=129,Xn[Yn+32*Qn-1]=129;for(0<Hn?zn[Vn-1-32]=Kn[Wn-1-32]=Xn[Yn-1-32]=129:(i(zn,Vn-32-1,127,21),i(Kn,Wn-32-1,127,9),i(Xn,Yn-32-1,127,9)),Dn=0;Dn<Tn.za;++Dn){var Jn=Un.ya[Un.aa+Dn];if(0<Dn){for(Qn=-1;16>Qn;++Qn)r(zn,Vn+32*Qn-4,zn,Vn+32*Qn+12,4);for(Qn=-1;8>Qn;++Qn)r(Kn,Wn+32*Qn-4,Kn,Wn+32*Qn+4,4),r(Xn,Yn+32*Qn-4,Xn,Yn+32*Qn+4,4)}var $n=Tn.Gd,Zn=Tn.Hd+Dn,er=Jn.ad,tr=Jn.Hc;if(0<Hn&&(r(zn,Vn-32,$n[Zn].y,0,16),r(Kn,Wn-32,$n[Zn].f,0,8),r(Xn,Yn-32,$n[Zn].ea,0,8)),Jn.Za){var nr=zn,rr=Vn-32+16;for(0<Hn&&(Dn>=Tn.za-1?i(nr,rr,$n[Zn].y[15],4):r(nr,rr,$n[Zn+1].y,0,4)),Qn=0;4>Qn;Qn++)nr[rr+128+Qn]=nr[rr+256+Qn]=nr[rr+384+Qn]=nr[rr+0+Qn];for(Qn=0;16>Qn;++Qn,tr<<=2)nr=zn,rr=Vn+ji[Qn],Ai[Jn.Ob[Qn]](nr,rr),Bn(tr,er,16*+Qn,nr,rr)}else if(nr=jn(Dn,Hn,Jn.Ob[0]),pi[nr](zn,Vn),0!=tr)for(Qn=0;16>Qn;++Qn,tr<<=2)Bn(tr,er,16*+Qn,zn,Vn+ji[Qn]);for(Qn=Jn.Gc,nr=jn(Dn,Hn,Jn.Dd),fi[nr](Kn,Wn),fi[nr](Xn,Yn),tr=er,nr=Kn,rr=Wn,255&(Jn=Qn>>0)&&(170&Jn?cr(tr,256,nr,rr):dr(tr,256,nr,rr)),Jn=Xn,tr=Yn,255&(Qn>>=8)&&(170&Qn?cr(er,320,Jn,tr):dr(er,320,Jn,tr)),Hn<Tn.Ub-1&&(r($n[Zn].y,0,zn,Vn+480,16),r($n[Zn].f,0,Kn,Wn+224,8),r($n[Zn].ea,0,Xn,Yn+224,8)),Qn=8*Gn*Tn.B,$n=Tn.sa,Zn=Tn.ta+16*Dn+16*Gn*Tn.R,er=Tn.qa,Jn=Tn.ra+8*Dn+Qn,tr=Tn.Ha,nr=Tn.Ia+8*Dn+Qn,Qn=0;16>Qn;++Qn)r($n,Zn+Qn*Tn.R,zn,Vn+32*Qn,16);for(Qn=0;8>Qn;++Qn)r(er,Jn+Qn*Tn.B,Kn,Wn+32*Qn,8),r(tr,nr+Qn*Tn.B,Xn,Yn+32*Qn,8)}}function Mn(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn,Kn){var Wn=[0],Xn=[0],Yn=0,Jn=null!=Kn?Kn.kd:0,$n=null!=Kn?Kn:new rn;if(null==Tn||12>Qn)return 7;$n.data=Tn,$n.w=Un,$n.ha=Qn,Un=[Un],Qn=[Qn],$n.gb=[$n.gb];e:{var Zn=Un,er=Qn,tr=$n.gb;if(e(null!=Tn),e(null!=er),e(null!=tr),tr[0]=0,12<=er[0]&&!n(Tn,Zn[0],"RIFF")){if(n(Tn,Zn[0]+8,"WEBP")){tr=3;break e}var nr=j(Tn,Zn[0]+4);if(12>nr||4294967286<nr){tr=3;break e}if(Jn&&nr>er[0]-8){tr=7;break e}tr[0]=nr,Zn[0]+=12,er[0]-=12}tr=0}if(0!=tr)return tr;for(nr=0<$n.gb[0],Qn=Qn[0];;){e:{var rr=Tn;er=Un,tr=Qn;var ir=Wn,ar=Xn,or=Zn=[0];if((cr=Yn=[Yn])[0]=0,8>tr[0])tr=7;else{if(!n(rr,er[0],"VP8X")){if(10!=j(rr,er[0]+4)){tr=3;break e}if(18>tr[0]){tr=7;break e}var sr=j(rr,er[0]+8),lr=1+C(rr,er[0]+12);if(2147483648<=lr*(rr=1+C(rr,er[0]+15))){tr=3;break e}null!=or&&(or[0]=sr),null!=ir&&(ir[0]=lr),null!=ar&&(ar[0]=rr),er[0]+=18,tr[0]-=18,cr[0]=1}tr=0}}if(Yn=Yn[0],Zn=Zn[0],0!=tr)return tr;if(er=!!(2&Zn),!nr&&Yn)return 3;if(null!=Gn&&(Gn[0]=!!(16&Zn)),null!=zn&&(zn[0]=er),null!=Vn&&(Vn[0]=0),zn=Wn[0],Zn=Xn[0],Yn&&er&&null==Kn){tr=0;break}if(4>Qn){tr=7;break}if(nr&&Yn||!nr&&!Yn&&!n(Tn,Un[0],"ALPH")){Qn=[Qn],$n.na=[$n.na],$n.P=[$n.P],$n.Sa=[$n.Sa];e:{sr=Tn,tr=Un,nr=Qn;var cr=$n.gb;ir=$n.na,ar=$n.P,or=$n.Sa,lr=22,e(null!=sr),e(null!=nr),rr=tr[0];var ur=nr[0];for(e(null!=ir),e(null!=or),ir[0]=null,ar[0]=null,or[0]=0;;){if(tr[0]=rr,nr[0]=ur,8>ur){tr=7;break e}var dr=j(sr,rr+4);if(4294967286<dr){tr=3;break e}var hr=8+dr+1&-2;if(lr+=hr,0<cr&&lr>cr){tr=3;break e}if(!n(sr,rr,"VP8 ")||!n(sr,rr,"VP8L")){tr=0;break e}if(ur[0]<hr){tr=7;break e}n(sr,rr,"ALPH")||(ir[0]=sr,ar[0]=rr+8,or[0]=dr),rr+=hr,ur-=hr}}if(Qn=Qn[0],$n.na=$n.na[0],$n.P=$n.P[0],$n.Sa=$n.Sa[0],0!=tr)break}Qn=[Qn],$n.Ja=[$n.Ja],$n.xa=[$n.xa];e:if(cr=Tn,tr=Un,nr=Qn,ir=$n.gb[0],ar=$n.Ja,or=$n.xa,sr=tr[0],rr=!n(cr,sr,"VP8 "),lr=!n(cr,sr,"VP8L"),e(null!=cr),e(null!=nr),e(null!=ar),e(null!=or),8>nr[0])tr=7;else{if(rr||lr){if(cr=j(cr,sr+4),12<=ir&&cr>ir-12){tr=3;break e}if(Jn&&cr>nr[0]-8){tr=7;break e}ar[0]=cr,tr[0]+=8,nr[0]-=8,or[0]=lr}else or[0]=5<=nr[0]&&47==cr[sr+0]&&!(cr[sr+4]>>5),ar[0]=nr[0];tr=0}if(Qn=Qn[0],$n.Ja=$n.Ja[0],$n.xa=$n.xa[0],Un=Un[0],0!=tr)break;if(4294967286<$n.Ja)return 3;if(null==Vn||er||(Vn[0]=$n.xa?2:1),zn=[zn],Zn=[Zn],$n.xa){if(5>Qn){tr=7;break}Vn=zn,Jn=Zn,er=Gn,null==Tn||5>Qn?Tn=0:5<=Qn&&47==Tn[Un+0]&&!(Tn[Un+4]>>5)?(nr=[0],cr=[0],ir=[0],v(ar=new N,Tn,Un,Qn),gt(ar,nr,cr,ir)?(null!=Vn&&(Vn[0]=nr[0]),null!=Jn&&(Jn[0]=cr[0]),null!=er&&(er[0]=ir[0]),Tn=1):Tn=0):Tn=0}else{if(10>Qn){tr=7;break}Vn=Zn,null==Tn||10>Qn||!Xt(Tn,Un+3,Qn-3)?Tn=0:(Jn=Tn[Un+0]|Tn[Un+1]<<8|Tn[Un+2]<<16,er=16383&(Tn[Un+7]<<8|Tn[Un+6]),Tn=16383&(Tn[Un+9]<<8|Tn[Un+8]),1&Jn||3<(Jn>>1&7)||!(Jn>>4&1)||Jn>>5>=$n.Ja||!er||!Tn?Tn=0:(zn&&(zn[0]=er),Vn&&(Vn[0]=Tn),Tn=1))}if(!Tn)return 3;if(zn=zn[0],Zn=Zn[0],Yn&&(Wn[0]!=zn||Xn[0]!=Zn))return 3;null!=Kn&&(Kn[0]=$n,Kn.offset=Un-Kn.w,e(4294967286>Un-Kn.w),e(Kn.offset==Kn.ha-Qn));break}return 0==tr||7==tr&&Yn&&null==Kn?(null!=Gn&&(Gn[0]|=null!=$n.na&&0<$n.na.length),null!=Dn&&(Dn[0]=zn),null!=Hn&&(Hn[0]=Zn),0):tr}function En(Tn,Un,Qn){var Dn=Un.width,Hn=Un.height,Gn=0,zn=0,Vn=Dn,Kn=Hn;if(Un.Da=null!=Tn&&0<Tn.Da,Un.Da&&(Vn=Tn.cd,Kn=Tn.bd,Gn=Tn.v,zn=Tn.j,11>Qn||(Gn&=-2,zn&=-2),0>Gn||0>zn||0>=Vn||0>=Kn||Gn+Vn>Dn||zn+Kn>Hn))return 0;if(Un.v=Gn,Un.j=zn,Un.va=Gn+Vn,Un.o=zn+Kn,Un.U=Vn,Un.T=Kn,Un.da=null!=Tn&&0<Tn.da,Un.da){if(!E(Vn,Kn,Qn=[Tn.ib],Gn=[Tn.hb]))return 0;Un.ib=Qn[0],Un.hb=Gn[0]}return Un.ob=null!=Tn&&Tn.ob,Un.Kb=null==Tn||!Tn.Sd,Un.da&&(Un.ob=Un.ib<3*Dn/4&&Un.hb<3*Hn/4,Un.Kb=0),1}function qn(Tn){if(null==Tn)return 2;if(11>Tn.S){var Un=Tn.f.RGBA;Un.fb+=(Tn.height-1)*Un.A,Un.A=-Un.A}else Un=Tn.f.kb,Tn=Tn.height,Un.O+=(Tn-1)*Un.fa,Un.fa=-Un.fa,Un.N+=(Tn-1>>1)*Un.Ab,Un.Ab=-Un.Ab,Un.W+=(Tn-1>>1)*Un.Db,Un.Db=-Un.Db,null!=Un.F&&(Un.J+=(Tn-1)*Un.lb,Un.lb=-Un.lb);return 0}function Rn(Tn,Un,Qn,Dn){if(null==Dn||0>=Tn||0>=Un)return 2;if(null!=Qn){if(Qn.Da){var Hn=Qn.cd,Gn=Qn.bd,zn=-2&Qn.v,Vn=-2&Qn.j;if(0>zn||0>Vn||0>=Hn||0>=Gn||zn+Hn>Tn||Vn+Gn>Un)return 2;Tn=Hn,Un=Gn}if(Qn.da){if(!E(Tn,Un,Hn=[Qn.ib],Gn=[Qn.hb]))return 2;Tn=Hn[0],Un=Gn[0]}}Dn.width=Tn,Dn.height=Un;e:{var Kn=Dn.width,Wn=Dn.height;if(Tn=Dn.S,0>=Kn||0>=Wn||!(Tn>=Mr&&13>Tn))Tn=2;else{if(0>=Dn.Rd&&null==Dn.sd){zn=Gn=Hn=Un=0;var Xn=(Vn=Kn*Vi[Tn])*Wn;if(11>Tn||(Gn=(Wn+1)/2*(Un=(Kn+1)/2),12==Tn&&(zn=(Hn=Kn)*Wn)),null==(Wn=a(Xn+2*Gn+zn))){Tn=1;break e}Dn.sd=Wn,11>Tn?((Kn=Dn.f.RGBA).eb=Wn,Kn.fb=0,Kn.A=Vn,Kn.size=Xn):((Kn=Dn.f.kb).y=Wn,Kn.O=0,Kn.fa=Vn,Kn.Fd=Xn,Kn.f=Wn,Kn.N=0+Xn,Kn.Ab=Un,Kn.Cd=Gn,Kn.ea=Wn,Kn.W=0+Xn+Gn,Kn.Db=Un,Kn.Ed=Gn,12==Tn&&(Kn.F=Wn,Kn.J=0+Xn+2*Gn),Kn.Tc=zn,Kn.lb=Hn)}if(Un=1,Hn=Dn.S,Gn=Dn.width,zn=Dn.height,Hn>=Mr&&13>Hn)if(11>Hn)Tn=Dn.f.RGBA,Un&=(Vn=Math.abs(Tn.A))*(zn-1)+Gn<=Tn.size,Un&=Vn>=Gn*Vi[Hn],Un&=null!=Tn.eb;else{Tn=Dn.f.kb,Vn=(Gn+1)/2,Xn=(zn+1)/2,Kn=Math.abs(Tn.fa),Wn=Math.abs(Tn.Ab);var Yn=Math.abs(Tn.Db),Jn=Math.abs(Tn.lb),$n=Jn*(zn-1)+Gn;Un&=Kn*(zn-1)+Gn<=Tn.Fd,Un&=Wn*(Xn-1)+Vn<=Tn.Cd,Un=(Un&=Yn*(Xn-1)+Vn<=Tn.Ed)&Kn>=Gn&Wn>=Vn&Yn>=Vn,Un&=null!=Tn.y,Un&=null!=Tn.f,Un&=null!=Tn.ea,12==Hn&&(Un&=Jn>=Gn,Un&=$n<=Tn.Tc,Un&=null!=Tn.F)}else Un=0;Tn=Un?0:2}}return 0!=Tn||null!=Qn&&Qn.fd&&(Tn=qn(Dn)),Tn}var Un=64,Qn=[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],Dn=24,Hn=32,Gn=8,zn=[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];T("Predictor0","PredictorAdd0"),Tn.Predictor0=function(){return 4278190080},Tn.Predictor1=function(Tn){return Tn},Tn.Predictor2=function(Tn,Un,Qn){return Un[Qn+0]},Tn.Predictor3=function(Tn,Un,Qn){return Un[Qn+1]},Tn.Predictor4=function(Tn,Un,Qn){return Un[Qn-1]},Tn.Predictor5=function(Tn,Un,Qn){return U(U(Tn,Un[Qn+1]),Un[Qn+0])},Tn.Predictor6=function(Tn,Un,Qn){return U(Tn,Un[Qn-1])},Tn.Predictor7=function(Tn,Un,Qn){return U(Tn,Un[Qn+0])},Tn.Predictor8=function(Tn,Un,Qn){return U(Un[Qn-1],Un[Qn+0])},Tn.Predictor9=function(Tn,Un,Qn){return U(Un[Qn+0],Un[Qn+1])},Tn.Predictor10=function(Tn,Un,Qn){return U(U(Tn,Un[Qn-1]),U(Un[Qn+0],Un[Qn+1]))},Tn.Predictor11=function(Tn,Un,Qn){var Dn=Un[Qn+0];return 0>=W(Dn>>24&255,Tn>>24&255,(Un=Un[Qn-1])>>24&255)+W(Dn>>16&255,Tn>>16&255,Un>>16&255)+W(Dn>>8&255,Tn>>8&255,Un>>8&255)+W(255&Dn,255&Tn,255&Un)?Dn:Tn},Tn.Predictor12=function(Tn,Un,Qn){var Dn=Un[Qn+0];return(z((Tn>>24&255)+(Dn>>24&255)-((Un=Un[Qn-1])>>24&255))<<24|z((Tn>>16&255)+(Dn>>16&255)-(Un>>16&255))<<16|z((Tn>>8&255)+(Dn>>8&255)-(Un>>8&255))<<8|z((255&Tn)+(255&Dn)-(255&Un)))>>>0},Tn.Predictor13=function(Tn,Un,Qn){var Dn=Un[Qn-1];return(H((Tn=U(Tn,Un[Qn+0]))>>24&255,Dn>>24&255)<<24|H(Tn>>16&255,Dn>>16&255)<<16|H(Tn>>8&255,Dn>>8&255)<<8|H(Tn>>0&255,Dn>>0&255))>>>0};var Vn=Tn.PredictorAdd0;Tn.PredictorAdd1=V,T("Predictor2","PredictorAdd2"),T("Predictor3","PredictorAdd3"),T("Predictor4","PredictorAdd4"),T("Predictor5","PredictorAdd5"),T("Predictor6","PredictorAdd6"),T("Predictor7","PredictorAdd7"),T("Predictor8","PredictorAdd8"),T("Predictor9","PredictorAdd9"),T("Predictor10","PredictorAdd10"),T("Predictor11","PredictorAdd11"),T("Predictor12","PredictorAdd12"),T("Predictor13","PredictorAdd13");var Kn=Tn.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",(function(Tn){return Tn>>8&255}),(function(Tn){return Tn})),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(Tn){return Tn}),(function(Tn){return Tn>>8&255}));var Wn,Xn=Tn.ColorIndexInverseTransform,Yn=Tn.MapARGB,Jn=Tn.VP8LColorIndexInverseTransformAlpha,$n=Tn.MapAlpha,Zn=Tn.VP8LPredictorsAdd=[];Zn.length=16,(Tn.VP8LPredictors=[]).length=16,(Tn.VP8LPredictorsAdd_C=[]).length=16,(Tn.VP8LPredictors_C=[]).length=16;var er,tr,nr,rr,ir,ar,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,xr,kr,Sr,Cr,Br,Er=a(511),Nr=a(2041),Lr=a(225),Tr=a(767),Pr=0,Fr=Nr,Ur=Lr,Ir=Tr,Rr=Er,Mr=0,Qr=1,Or=2,Dr=3,jr=4,Hr=5,Gr=6,zr=7,Vr=8,Kr=9,qr=10,Wr=[2,3,7],Xr=[3,3,11],Yr=[280,256,256,256,40],Jr=[0,1,1,1,0],$r=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zr=[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],ei=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ni=[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],ri=[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],ii=null,ai=[[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]],oi=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],si=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],li=[[[[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]]]],ui=[[[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]]],di=[[[[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]]]],hi=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],pi=[],Ai=[],fi=[],gi=1,mi=2,_i=[],vi=[];bn("UpsampleRgbLinePair",An,3),bn("UpsampleBgrLinePair",_n,3),bn("UpsampleRgbaLinePair",In,4),bn("UpsampleBgraLinePair",Fn,4),bn("UpsampleArgbLinePair",kn,4),bn("UpsampleRgba4444LinePair",Pn,2),bn("UpsampleRgb565LinePair",Sn,2);var yi=Tn.UpsampleRgbLinePair,wi=Tn.UpsampleBgrLinePair,xi=Tn.UpsampleRgbaLinePair,ki=Tn.UpsampleBgraLinePair,Si=Tn.UpsampleArgbLinePair,Ci=Tn.UpsampleRgba4444LinePair,Bi=Tn.UpsampleRgb565LinePair,Ei=16,Ni=1<<Ei-1,Li=-227,Ti=482,Pi=6,Fi=(256<<Pi)-1,Ui=0,Ii=a(256),Ri=a(256),Mi=a(256),Qi=a(256),Oi=a(Ti-Li),Di=a(Ti-Li);Cn("YuvToRgbRow",An,3),Cn("YuvToBgrRow",_n,3),Cn("YuvToRgbaRow",In,4),Cn("YuvToBgraRow",Fn,4),Cn("YuvToArgbRow",kn,4),Cn("YuvToRgba4444Row",Pn,2),Cn("YuvToRgb565Row",Sn,2);var ji=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Hi=[0,2,8],Gi=[8,7,6,4,4,2,2,2,1,1,1,1],zi=1;this.WebPDecodeRGBA=function(Tn,Un,Qn,Dn,Hn){var Gn=Qr,zn=new nn,Vn=new ot;zn.ba=Vn,Vn.S=Gn,Vn.width=[Vn.width],Vn.height=[Vn.height];var Kn=Vn.width,Wn=Vn.height,Xn=new st;if(null==Xn||null==Tn)var Yn=2;else e(null!=Xn),Yn=Mn(Tn,Un,Qn,Xn.width,Xn.height,Xn.Pd,Xn.Qd,Xn.format,null);if(0!=Yn?Kn=0:(null!=Kn&&(Kn[0]=Xn.width[0]),null!=Wn&&(Wn[0]=Xn.height[0]),Kn=1),Kn){Vn.width=Vn.width[0],Vn.height=Vn.height[0],null!=Dn&&(Dn[0]=Vn.width),null!=Hn&&(Hn[0]=Vn.height);e:{if(Dn=new Gt,(Hn=new rn).data=Tn,Hn.w=Un,Hn.ha=Qn,Hn.kd=1,Un=[0],e(null!=Hn),(0==(Tn=Mn(Hn.data,Hn.w,Hn.ha,null,null,null,Un,null,Hn))||7==Tn)&&Un[0]&&(Tn=4),0==(Un=Tn)){if(e(null!=zn),Dn.data=Hn.data,Dn.w=Hn.w+Hn.offset,Dn.ha=Hn.ha-Hn.offset,Dn.put=dt,Dn.ac=ft,Dn.bc=pt,Dn.ma=zn,Hn.xa){if(null==(Tn=kt())){zn=1;break e}if(function(Tn,Un){var Qn=[0],Dn=[0],Hn=[0];t:for(;;){if(null==Tn)return 0;if(null==Un)return Tn.a=2,0;if(Tn.l=Un,Tn.a=0,v(Tn.m,Un.data,Un.w,Un.ha),!gt(Tn.m,Qn,Dn,Hn)){Tn.a=3;break t}if(Tn.xb=mi,Un.width=Qn[0],Un.height=Dn[0],!Ft(Qn[0],Dn[0],1,Tn,null))break t;return 1}return e(0!=Tn.a),0}(Tn,Dn)){if(Dn=0==(Un=Rn(Dn.width,Dn.height,zn.Oa,zn.ba))){t:{Dn=Tn;n:for(;;){if(null==Dn){Dn=0;break t}if(e(null!=Dn.s.yc),e(null!=Dn.s.Ya),e(0<Dn.s.Wb),e(null!=(Qn=Dn.l)),e(null!=(Hn=Qn.ma)),0!=Dn.xb){if(Dn.ca=Hn.ba,Dn.tb=Hn.tb,e(null!=Dn.ca),!En(Hn.Oa,Qn,Dr)){Dn.a=2;break n}if(!It(Dn,Qn.width))break n;if(Qn.da)break n;if((Qn.da||rt(Dn.ca.S))&&vn(),11>Dn.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=Dn.ca.f.kb.F&&vn()),Dn.Pb&&0<Dn.s.ua&&null==Dn.s.vb.X&&!B(Dn.s.vb,Dn.s.Wa.Xa)){Dn.a=1;break n}Dn.xb=0}if(!St(Dn,Dn.V,Dn.Ba,Dn.c,Dn.i,Qn.o,Lt))break n;Hn.Dc=Dn.Ma,Dn=1;break t}e(0!=Dn.a),Dn=0}Dn=!Dn}Dn&&(Un=Tn.a)}else Un=Tn.a}else{if(null==(Tn=new Yt)){zn=1;break e}if(Tn.Fa=Hn.na,Tn.P=Hn.P,Tn.qc=Hn.Sa,Kt(Tn,Dn)){if(0==(Un=Rn(Dn.width,Dn.height,zn.Oa,zn.ba))){if(Tn.Aa=0,Qn=zn.Oa,e(null!=(Hn=Tn)),null!=Qn){if(0<(Kn=0>(Kn=Qn.Md)?0:100<Kn?255:255*Kn/100)){for(Wn=Xn=0;4>Wn;++Wn)12>(Yn=Hn.pb[Wn]).lc&&(Yn.ia=Kn*Gi[0>Yn.lc?0:Yn.lc]>>3),Xn|=Yn.ia;Xn&&(alert("todo:VP8InitRandom"),Hn.ia=1)}Hn.Ga=Qn.Id,100<Hn.Ga?Hn.Ga=100:0>Hn.Ga&&(Hn.Ga=0)}Qt(Tn,Dn)||(Un=Tn.a)}}else Un=Tn.a}0==Un&&null!=zn.Oa&&zn.Oa.fd&&(Un=qn(zn.ba))}zn=Un}Gn=0!=zn?null:11>Gn?Vn.f.RGBA.eb:Vn.f.kb.y}else Gn=null;return Gn};var Vi=[3,4,3,4,4,2,2,4,4,4,2,1,1]});var Un=[0],Qn=[0],Dn=[],Hn=new Et,Gn=Tn,zn=function(Tn,Un){var Qn={},Dn=0,Hn=!1,Gn=0,zn=0;if(Qn.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(Tn,Un,Qn,Dn){for(var Hn=0;Hn<4;Hn++)if(Tn[Un+Hn]!="RIFF".charCodeAt(Hn))return!0;return!1}(Tn,Un)){var Vn,Kn;for(h(Tn,Un+=4),Un+=8;Un<Tn.length;){var Wn=u(Tn,Un),Xn=h(Tn,Un+=4);Un+=4;var Yn=Xn+(1&Xn);switch(Wn){case"VP8 ":case"VP8L":void 0===Qn.frames[Dn]&&(Qn.frames[Dn]={}),(Zn=Qn.frames[Dn]).src_off=Hn?zn:Un-8,Zn.src_size=Gn+Xn+8,Dn++,Hn&&(Hn=!1,Gn=0,zn=0);break;case"VP8X":(Zn=Qn.header={}).feature_flags=Tn[Un];var Jn=Un+4;Zn.canvas_width=1+c(Tn,Jn),Jn+=3,Zn.canvas_height=1+c(Tn,Jn),Jn+=3;break;case"ALPH":Hn=!0,Gn=Yn+8,zn=Un-8;break;case"ANIM":(Zn=Qn.header).bgcolor=h(Tn,Un),Jn=Un+4,Zn.loop_count=(Vn=Tn)[(Kn=Jn)+0]<<0|Vn[Kn+1]<<8,Jn+=2;break;case"ANMF":var $n,Zn;(Zn=Qn.frames[Dn]={}).offset_x=2*c(Tn,Un),Un+=3,Zn.offset_y=2*c(Tn,Un),Un+=3,Zn.width=1+c(Tn,Un),Un+=3,Zn.height=1+c(Tn,Un),Un+=3,Zn.duration=c(Tn,Un),Un+=3,$n=Tn[Un++],Zn.dispose=1&$n,Zn.blend=$n>>1&1}"ANMF"!=Wn&&(Un+=Yn)}return Qn}}(Gn,0);zn.response=Gn,zn.rgbaoutput=!0,zn.dataurl=!1;var Vn=zn.header?zn.header:null,Kn=zn.frames?zn.frames:null;if(Vn){Vn.loop_counter=Vn.loop_count,Un=[Vn.canvas_height],Qn=[Vn.canvas_width];for(var Wn=0;Wn<Kn.length&&0!=Kn[Wn].blend;Wn++);}var Xn=Kn[0],Yn=Hn.WebPDecodeRGBA(Gn,Xn.src_off,Xn.src_size,Qn,Un);Xn.rgba=Yn,Xn.imgwidth=Qn[0],Xn.imgheight=Un[0];for(var Jn=0;Jn<Qn[0]*Un[0]*4;Jn++)Dn[Jn]=Yn[Jn];return this.width=Qn,this.height=Un,this.data=Dn,this
|
||
/**
|
||
* @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.
|
||
* ====================================================================
|
||
*/}!function(Tn){var Un=function n(Un,Hn,Wn,Xn){var Yn=5,Jn=zn;switch(Xn){case Tn.image_compression.FAST:Yn=3,Jn=Gn;break;case Tn.image_compression.MEDIUM:Yn=6,Jn=Vn;break;case Tn.image_compression.SLOW:Yn=9,Jn=Kn}Un=Dn(Un,Hn,Wn,Jn);var $n=new Uint8Array(Qn(Yn)),Zn=g.API.adler32cs.fromBuffer(Un.buffer),er=new xt(Yn),tr=er.append(Un),nr=er.flush(),rr=$n.length+tr.length+nr.length,ir=new Uint8Array(rr+4);return ir.set($n),ir.set(tr,$n.length),ir.set(nr,$n.length+tr.length),ir[rr++]=Zn>>>24&255,ir[rr++]=Zn>>>16&255,ir[rr++]=Zn>>>8&255,ir[rr++]=255&Zn,Tn.__addimage__.arrayBufferToBinaryString(ir)},Qn=function r(Tn){var Un=30720;return Un|=Math.min(3,(Tn-1&255)>>1)<<6,Un|=0,[120,255&(Un+=31-Un%31)]},Dn=function i(Tn,Un,Qn,Dn){for(var i,Hn,Gn,zn=Tn.length/Un,Vn=new Uint8Array(Tn.length+zn),Kn=Xn(),Wn=0;Wn<zn;Wn+=1){if(Gn=Wn*Un,i=Tn.subarray(Gn,Gn+Un),Dn)Vn.set(Dn(i,Qn,Hn),Gn+Wn);else{for(var Jn,$n=Kn.length,Zn=[];Jn<$n;Jn+=1)Zn[Jn]=Kn[Jn](i,Qn,Hn);var er=Yn(Zn.concat());Vn.set(Zn[er],Gn+Wn)}Hn=i}return Vn},Hn=function a(Tn){var Un=Array.apply([],Tn);return Un.unshift(0),Un},Gn=function o(Tn,Un){var Qn,Dn=[],Hn=Tn.length;Dn[0]=1;for(var Gn=0;Gn<Hn;Gn+=1)Qn=Tn[Gn-Un]||0,Dn[Gn+1]=Tn[Gn]-Qn+256&255;return Dn},zn=function s(Tn,Un,Qn){var Dn,Hn=[],Gn=Tn.length;Hn[0]=2;for(var zn=0;zn<Gn;zn+=1)Dn=Qn&&Qn[zn]||0,Hn[zn+1]=Tn[zn]-Dn+256&255;return Hn},Vn=function u(Tn,Un,Qn){var Dn,Hn,Gn=[],zn=Tn.length;Gn[0]=3;for(var Vn=0;Vn<zn;Vn+=1)Dn=Tn[Vn-Un]||0,Hn=Qn&&Qn[Vn]||0,Gn[Vn+1]=Tn[Vn]+256-(Dn+Hn>>>1)&255;return Gn},Kn=function c(Tn,Un,Qn){var Dn,Hn,Gn,zn,Vn=[],Kn=Tn.length;Vn[0]=4;for(var c=0;c<Kn;c+=1)Dn=Tn[c-Un]||0,Hn=Qn&&Qn[c]||0,Gn=Qn&&Qn[c-Un]||0,zn=Wn(Dn,Hn,Gn),Vn[c+1]=Tn[c]-zn+256&255;return Vn},Wn=function h(Tn,Un,Qn){if(Tn===Un&&Un===Qn)return Tn;var Dn=Math.abs(Un-Qn),Hn=Math.abs(Tn-Qn),Gn=Math.abs(Tn+Un-Qn-Qn);return Dn<=Hn&&Dn<=Gn?Tn:Hn<=Gn?Un:Qn},Xn=function l(){return[Hn,Gn,zn,Vn,Kn]},Yn=function f(Tn){var Un=Tn.map((function(Tn){return Tn.reduce((function(Tn,Un){return Tn+Math.abs(Un)}),0)}));return Un.indexOf(Math.min.apply(null,Un))};Tn.processPNG=function(Qn,Dn,Hn,Gn){var zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr,rr,ir,ar,or=this.decode.FLATE_DECODE,sr="";if(this.__addimage__.isArrayBuffer(Qn)&&(Qn=new Uint8Array(Qn)),this.__addimage__.isArrayBufferView(Qn)){if(Qn=(Kn=new Xg(Qn)).imgData,Vn=Kn.bits,zn=Kn.colorSpace,Xn=Kn.colors,-1!==[4,6].indexOf(Kn.colorType)){if(8===Kn.bits){Zn=($n=32==Kn.pixelBitlength?new Uint32Array(Kn.decodePixels().buffer):16==Kn.pixelBitlength?new Uint16Array(Kn.decodePixels().buffer):new Uint8Array(Kn.decodePixels().buffer)).length,tr=new Uint8Array(Zn*Kn.colors),er=new Uint8Array(Zn);var lr,cr=Kn.pixelBitlength-Kn.bits;for(ir=0,ar=0;ir<Zn;ir++){for(rr=$n[ir],lr=0;lr<cr;)tr[ar++]=rr>>>lr&255,lr+=Kn.bits;er[ir]=rr>>>lr&255}}if(16===Kn.bits){Zn=($n=new Uint32Array(Kn.decodePixels().buffer)).length,tr=new Uint8Array(Zn*(32/Kn.pixelBitlength)*Kn.colors),er=new Uint8Array(Zn*(32/Kn.pixelBitlength)),nr=Kn.colors>1,ir=0,ar=0;for(var ur=0;ir<Zn;)rr=$n[ir++],tr[ar++]=rr>>>0&255,nr&&(tr[ar++]=rr>>>16&255,rr=$n[ir++],tr[ar++]=rr>>>0&255),er[ur++]=rr>>>16&255;Vn=8}Gn!==Tn.image_compression.NONE?(Qn=Un(tr,Kn.width*Kn.colors,Kn.colors,Gn),Jn=Un(er,Kn.width,1,Gn)):(Qn=tr,Jn=er,or=void 0)}if(3===Kn.colorType&&(zn=this.color_spaces.INDEXED,Yn=Kn.palette,Kn.transparency.indexed)){var dr=Kn.transparency.indexed,hr=0;for(ir=0,Zn=dr.length;ir<Zn;++ir)hr+=dr[ir];if((hr/=255)==Zn-1&&-1!==dr.indexOf(0))Wn=[dr.indexOf(0)];else if(hr!==Zn){for($n=Kn.decodePixels(),er=new Uint8Array($n.length),ir=0,Zn=$n.length;ir<Zn;ir++)er[ir]=dr[$n[ir]];Jn=Un(er,Kn.width,1)}}var pr=function(Un){var Qn;switch(Un){case Tn.image_compression.FAST:Qn=11;break;case Tn.image_compression.MEDIUM:Qn=13;break;case Tn.image_compression.SLOW:Qn=14;break;default:Qn=12}return Qn}(Gn);return or===this.decode.FLATE_DECODE&&(sr="/Predictor "+pr+" "),sr+="/Colors "+Xn+" /BitsPerComponent "+Vn+" /Columns "+Kn.width,(this.__addimage__.isArrayBuffer(Qn)||this.__addimage__.isArrayBufferView(Qn))&&(Qn=this.__addimage__.arrayBufferToBinaryString(Qn)),(Jn&&this.__addimage__.isArrayBuffer(Jn)||this.__addimage__.isArrayBufferView(Jn))&&(Jn=this.__addimage__.arrayBufferToBinaryString(Jn)),{alias:Hn,data:Qn,index:Dn,filter:or,decodeParameters:sr,transparency:Wn,palette:Yn,sMask:Jn,predictor:pr,width:Kn.width,height:Kn.height,bitsPerComponent:Vn,colorSpace:zn}}}}(g.API),function(Tn){Tn.processGIF89A=function(Un,Qn,Dn,Hn){var Gn=new jt(Un),zn=Gn.width,Vn=Gn.height,Kn=[];Gn.decodeAndBlitFrameRGBA(0,Kn);var Wn={data:Kn,width:zn,height:Vn},Xn=new Ot(100).encode(Wn,100);return Tn.processJPEG.call(this,Xn,Qn,Dn,Hn)},Tn.processGIF87A=Tn.processGIF89A}(g.API),Mt.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 Tn=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(Tn);for(var Un=0;Un<Tn;Un++){var Qn=this.datav.getUint8(this.pos++,!0),Dn=this.datav.getUint8(this.pos++,!0),Hn=this.datav.getUint8(this.pos++,!0),Gn=this.datav.getUint8(this.pos++,!0);this.palette[Un]={red:Hn,green:Dn,blue:Qn,quad:Gn}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Mt.prototype.parseBGR=function(){this.pos=this.offset;try{var Tn="bit"+this.bitPP,Un=this.width*this.height*4;this.data=new Uint8Array(Un),this[Tn]()}catch(Tn){Qf.log("bit decode error:"+Tn)}},Mt.prototype.bit1=function(){var Tn,Un=Math.ceil(this.width/8),Qn=Un%4;for(Tn=this.height-1;Tn>=0;Tn--){for(var Dn=this.bottom_up?Tn:this.height-1-Tn,Hn=0;Hn<Un;Hn++)for(var Gn=this.datav.getUint8(this.pos++,!0),zn=Dn*this.width*4+8*Hn*4,Vn=0;Vn<8&&8*Hn+Vn<this.width;Vn++){var Kn=this.palette[Gn>>7-Vn&1];this.data[zn+4*Vn]=Kn.blue,this.data[zn+4*Vn+1]=Kn.green,this.data[zn+4*Vn+2]=Kn.red,this.data[zn+4*Vn+3]=255}0!==Qn&&(this.pos+=4-Qn)}},Mt.prototype.bit4=function(){for(var Tn=Math.ceil(this.width/2),Un=Tn%4,Qn=this.height-1;Qn>=0;Qn--){for(var Dn=this.bottom_up?Qn:this.height-1-Qn,Hn=0;Hn<Tn;Hn++){var Gn=this.datav.getUint8(this.pos++,!0),zn=Dn*this.width*4+2*Hn*4,Vn=Gn>>4,Kn=15&Gn,Wn=this.palette[Vn];if(this.data[zn]=Wn.blue,this.data[zn+1]=Wn.green,this.data[zn+2]=Wn.red,this.data[zn+3]=255,2*Hn+1>=this.width)break;Wn=this.palette[Kn],this.data[zn+4]=Wn.blue,this.data[zn+4+1]=Wn.green,this.data[zn+4+2]=Wn.red,this.data[zn+4+3]=255}0!==Un&&(this.pos+=4-Un)}},Mt.prototype.bit8=function(){for(var Tn=this.width%4,Un=this.height-1;Un>=0;Un--){for(var Qn=this.bottom_up?Un:this.height-1-Un,Dn=0;Dn<this.width;Dn++){var Hn=this.datav.getUint8(this.pos++,!0),Gn=Qn*this.width*4+4*Dn;if(Hn<this.palette.length){var zn=this.palette[Hn];this.data[Gn]=zn.red,this.data[Gn+1]=zn.green,this.data[Gn+2]=zn.blue,this.data[Gn+3]=255}else this.data[Gn]=255,this.data[Gn+1]=255,this.data[Gn+2]=255,this.data[Gn+3]=255}0!==Tn&&(this.pos+=4-Tn)}},Mt.prototype.bit15=function(){for(var Tn=this.width%3,Un=parseInt("11111",2),Qn=this.height-1;Qn>=0;Qn--){for(var Dn=this.bottom_up?Qn:this.height-1-Qn,Hn=0;Hn<this.width;Hn++){var Gn=this.datav.getUint16(this.pos,!0);this.pos+=2;var zn=(Gn&Un)/Un*255|0,Vn=(Gn>>5&Un)/Un*255|0,Kn=(Gn>>10&Un)/Un*255|0,Wn=Gn>>15?255:0,Xn=Dn*this.width*4+4*Hn;this.data[Xn]=Kn,this.data[Xn+1]=Vn,this.data[Xn+2]=zn,this.data[Xn+3]=Wn}this.pos+=Tn}},Mt.prototype.bit16=function(){for(var Tn=this.width%3,Un=parseInt("11111",2),Qn=parseInt("111111",2),Dn=this.height-1;Dn>=0;Dn--){for(var Hn=this.bottom_up?Dn:this.height-1-Dn,Gn=0;Gn<this.width;Gn++){var zn=this.datav.getUint16(this.pos,!0);this.pos+=2;var Vn=(zn&Un)/Un*255|0,Kn=(zn>>5&Qn)/Qn*255|0,Wn=(zn>>11)/Un*255|0,Xn=Hn*this.width*4+4*Gn;this.data[Xn]=Wn,this.data[Xn+1]=Kn,this.data[Xn+2]=Vn,this.data[Xn+3]=255}this.pos+=Tn}},Mt.prototype.bit24=function(){for(var Tn=this.height-1;Tn>=0;Tn--){for(var Un=this.bottom_up?Tn:this.height-1-Tn,Qn=0;Qn<this.width;Qn++){var Dn=this.datav.getUint8(this.pos++,!0),Hn=this.datav.getUint8(this.pos++,!0),Gn=this.datav.getUint8(this.pos++,!0),zn=Un*this.width*4+4*Qn;this.data[zn]=Gn,this.data[zn+1]=Hn,this.data[zn+2]=Dn,this.data[zn+3]=255}this.pos+=this.width%4}},Mt.prototype.bit32=function(){for(var Tn=this.height-1;Tn>=0;Tn--)for(var Un=this.bottom_up?Tn:this.height-1-Tn,Qn=0;Qn<this.width;Qn++){var Dn=this.datav.getUint8(this.pos++,!0),Hn=this.datav.getUint8(this.pos++,!0),Gn=this.datav.getUint8(this.pos++,!0),zn=this.datav.getUint8(this.pos++,!0),Vn=Un*this.width*4+4*Qn;this.data[Vn]=Gn,this.data[Vn+1]=Hn,this.data[Vn+2]=Dn,this.data[Vn+3]=zn}},Mt.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){Tn.processBMP=function(Un,Qn,Dn,Hn){var Gn=new Mt(Un,!1),zn=Gn.width,Vn=Gn.height,Kn={data:Gn.getData(),width:zn,height:Vn},Wn=new Ot(100).encode(Kn,100);return Tn.processJPEG.call(this,Wn,Qn,Dn,Hn)}}(g.API),Et.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2019 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){Tn.processWEBP=function(Un,Qn,Dn,Hn){var Gn=new Et(Un,!1),zn=Gn.width,Vn=Gn.height,Kn={data:Gn.getData(),width:zn,height:Vn},Wn=new Ot(100).encode(Kn,100);return Tn.processJPEG.call(this,Wn,Qn,Dn,Hn)}}(g.API),g.API.setLanguage=function(Tn){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:"FYRO Macedonian",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"}[Tn]&&(this.internal.languageSettings.languageCode=Tn,!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},
|
||
/** @license
|
||
* MIT license.
|
||
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
|
||
* 2014 Diego Casorran, https://github.com/diegocr
|
||
*
|
||
* 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.
|
||
* ====================================================================
|
||
*/
|
||
Hg=g.API,Gg=Hg.getCharWidthsArray=function(Tn,Un){var Qn,Dn,Hn=(Un=Un||{}).font||this.internal.getFont(),Gn=Un.fontSize||this.internal.getFontSize(),zn=Un.charSpace||this.internal.getCharSpace(),Vn=Un.widths?Un.widths:Hn.metadata.Unicode.widths,Kn=Vn.fof?Vn.fof:1,Wn=Un.kerning?Un.kerning:Hn.metadata.Unicode.kerning,Xn=Wn.fof?Wn.fof:1,Yn=!1!==Un.doKerning,Jn=0,$n=Tn.length,Zn=0,er=Vn[0]||Kn,tr=[];for(Qn=0;Qn<$n;Qn++)Dn=Tn.charCodeAt(Qn),"function"==typeof Hn.metadata.widthOfString?tr.push((Hn.metadata.widthOfGlyph(Hn.metadata.characterToGlyph(Dn))+zn*(1e3/Gn)||0)/1e3):(Jn=Yn&&"object"==_typeof(Wn[Dn])&&!isNaN(parseInt(Wn[Dn][Zn],10))?Wn[Dn][Zn]/Xn:0,tr.push((Vn[Dn]||er)/Kn+Jn)),Zn=Dn;return tr},zg=Hg.getStringUnitWidth=function(Tn,Un){var Qn=(Un=Un||{}).fontSize||this.internal.getFontSize(),Dn=Un.font||this.internal.getFont(),Hn=Un.charSpace||this.internal.getCharSpace();return Hg.processArabic&&(Tn=Hg.processArabic(Tn)),"function"==typeof Dn.metadata.widthOfString?Dn.metadata.widthOfString(Tn,Qn,Hn)/Qn:Gg.apply(this,arguments).reduce((function(Tn,Un){return Tn+Un}),0)},Vg=function Pt(Tn,Un,Qn,Dn){for(var Hn=[],Gn=0,zn=Tn.length,Vn=0;Gn!==zn&&Vn+Un[Gn]<Qn;)Vn+=Un[Gn],Gn++;Hn.push(Tn.slice(0,Gn));var Kn=Gn;for(Vn=0;Gn!==zn;)Vn+Un[Gn]>Dn&&(Hn.push(Tn.slice(Kn,Gn)),Vn=0,Kn=Gn),Vn+=Un[Gn],Gn++;return Kn!==Gn&&Hn.push(Tn.slice(Kn,Gn)),Hn},Kg=function kt(Tn,Un,Qn){Qn||(Qn={});var Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn=[],Yn=[Xn],Jn=Qn.textIndent||0,$n=0,Zn=0,er=Tn.split(" "),tr=Gg.apply(this,[" ",Qn])[0];if(Kn=-1===Qn.lineIndent?er[0].length+2:Qn.lineIndent||0){var nr=Array(Kn).join(" "),rr=[];er.map((function(Tn){(Tn=Tn.split(/\s*\n/)).length>1?rr=rr.concat(Tn.map((function(Tn,Un){return(Un&&Tn.length?"\n":"")+Tn}))):rr.push(Tn[0])})),er=rr,Kn=zg.apply(this,[nr,Qn])}for(Gn=0,zn=er.length;Gn<zn;Gn++){var ir=0;if(Dn=er[Gn],Kn&&"\n"==Dn[0]&&(Dn=Dn.substr(1),ir=1),Jn+$n+(Zn=(Hn=Gg.apply(this,[Dn,Qn])).reduce((function(Tn,Un){return Tn+Un}),0))>Un||ir){if(Zn>Un){for(Vn=Vg.apply(this,[Dn,Hn,Un-(Jn+$n),Un]),Xn.push(Vn.shift()),Xn=[Vn.pop()];Vn.length;)Yn.push([Vn.shift()]);Zn=Hn.slice(Dn.length-(Xn[0]?Xn[0].length:0)).reduce((function(Tn,Un){return Tn+Un}),0)}else Xn=[Dn];Yn.push(Xn),Jn=Zn+Kn,$n=tr}else Xn.push(Dn),Jn+=$n+Zn,$n=tr}return Wn=Kn?function(Tn,Un){return(Un?nr:"")+Tn.join(" ")}:function(Tn){return Tn.join(" ")},Yn.map(Wn)},Hg.splitTextToSize=function(Tn,Un,Qn){var Dn,Hn=(Qn=Qn||{}).fontSize||this.internal.getFontSize(),Gn=function(Tn){if(Tn.widths&&Tn.kerning)return{widths:Tn.widths,kerning:Tn.kerning};var Un=this.internal.getFont(Tn.fontName,Tn.fontStyle);return Un.metadata.Unicode?{widths:Un.metadata.Unicode.widths||{0:1},kerning:Un.metadata.Unicode.kerning||{}}:{font:Un.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Qn);Dn=Array.isArray(Tn)?Tn:String(Tn).split(/\r?\n/);var zn=1*this.internal.scaleFactor*Un/Hn;Gn.textIndent=Qn.textIndent?1*Qn.textIndent*this.internal.scaleFactor/Hn:0,Gn.lineIndent=Qn.lineIndent;var Vn,Kn,Wn=[];for(Vn=0,Kn=Dn.length;Vn<Kn;Vn++)Wn=Wn.concat(Kg.apply(this,[Dn[Vn],zn,Gn]));return Wn},
|
||
/** @license
|
||
jsPDF standard_fonts_metrics plugin
|
||
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
|
||
* MIT license.
|
||
* 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(Tn){Tn.__fontmetrics__=Tn.__fontmetrics__||{};for(var Un="klmnopqrstuvwxyz",Qn={},Dn={},Hn=0;Hn<Un.length;Hn++)Qn[Un[Hn]]="0123456789abcdef"[Hn],Dn["0123456789abcdef"[Hn]]=Un[Hn];var Gn=function a(Tn){return"0x"+parseInt(Tn,10).toString(16)},zn=Tn.__fontmetrics__.compress=function(Tn){var Un,Qn,Hn,Vn,Kn=["{"];for(var Wn in Tn){if(Un=Tn[Wn],isNaN(parseInt(Wn,10))?Qn="'"+Wn+"'":(Wn=parseInt(Wn,10),Qn=(Qn=Gn(Wn).slice(2)).slice(0,-1)+Dn[Qn.slice(-1)]),"number"==typeof Un)Un<0?(Hn=Gn(Un).slice(3),Vn="-"):(Hn=Gn(Un).slice(2),Vn=""),Hn=Vn+Hn.slice(0,-1)+Dn[Hn.slice(-1)];else{if("object"!=_typeof(Un))throw new Error("Don't know what to do with value type "+_typeof(Un)+".");Hn=zn(Un)}Kn.push(Qn+Hn)}return Kn.push("}"),Kn.join("")},Vn=Tn.__fontmetrics__.uncompress=function(Tn){if("string"!=typeof Tn)throw new Error("Invalid argument passed to uncompress.");for(var Un,Dn,Hn,Gn,zn={},Vn=1,Kn=zn,Wn=[],Xn="",Yn="",Jn=Tn.length-1,$n=1;$n<Jn;$n+=1)"'"==(Gn=Tn[$n])?Un?(Hn=Un.join(""),Un=void 0):Un=[]:Un?Un.push(Gn):"{"==Gn?(Wn.push([Kn,Hn]),Kn={},Hn=void 0):"}"==Gn?((Dn=Wn.pop())[0][Dn[1]]=Kn,Hn=void 0,Kn=Dn[0]):"-"==Gn?Vn=-1:void 0===Hn?Qn.hasOwnProperty(Gn)?(Xn+=Qn[Gn],Hn=parseInt(Xn,16)*Vn,Vn=1,Xn=""):Xn+=Gn:Qn.hasOwnProperty(Gn)?(Yn+=Qn[Gn],Kn[Hn]=parseInt(Yn,16)*Vn,Vn=1,Hn=void 0,Yn=""):Yn+=Gn;return zn},Kn={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Vn("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Wn={Unicode:{Courier:Kn,"Courier-Bold":Kn,"Courier-BoldOblique":Kn,"Courier-Oblique":Kn,Helvetica:Kn,"Helvetica-Bold":Kn,"Helvetica-BoldOblique":Kn,"Helvetica-Oblique":Kn,"Times-Roman":Kn,"Times-Bold":Kn,"Times-BoldItalic":Kn,"Times-Italic":Kn}},Xn={Unicode:{"Courier-Oblique":Vn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Vn("{'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":Vn("{'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:Vn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Vn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Vn("{'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:Vn("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Vn("{'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":Vn("{'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:Vn("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Vn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Vn("{'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":Vn("{'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":Vn("{'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}}}")}};Tn.events.push(["addFont",function(Tn){var Un=Tn.font,Qn=Xn.Unicode[Un.postScriptName];Qn&&(Un.metadata.Unicode={},Un.metadata.Unicode.widths=Qn.widths,Un.metadata.Unicode.kerning=Qn.kerning);var Dn=Wn.Unicode[Un.postScriptName];Dn&&(Un.metadata.Unicode.encoding=Dn,Un.encoding=Dn.codePages[0])}])}(g.API),
|
||
/**
|
||
* @license
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){var Un=function e(Tn){for(var e=Tn.length,Un=new Uint8Array(e),Qn=0;Qn<e;Qn++)Un[Qn]=Tn.charCodeAt(Qn);return Un};Tn.API.events.push(["addFont",function(Qn){var Dn=void 0,Hn=Qn.font,Gn=Qn.instance;if(!Hn.isStandardFont){if(void 0===Gn)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Hn.postScriptName+"').");if("string"!=typeof(Dn=!1===Gn.existsFileInVFS(Hn.postScriptName)?Gn.loadFile(Hn.postScriptName):Gn.getFileFromVFS(Hn.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Hn.postScriptName+"').");!function(Qn,Dn){Dn=/^\x00\x01\x00\x00/.test(Dn)?Un(Dn):Un(Of(Dn)),Qn.metadata=Tn.API.TTFFont.open(Dn),Qn.metadata.Unicode=Qn.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Qn.metadata.glyIdsUsed=[0]}(Hn,Dn)}}])}(g),
|
||
/** @license
|
||
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
|
||
*
|
||
* 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(Tn){function r(){return(Mf.canvg?Promise.resolve(Mf.canvg):Promise.resolve().then((function(){return Rb}))).catch((function(Tn){return Promise.reject(new Error("Could not load dompurify: "+Tn))})).then((function(Tn){return Tn.default?Tn.default:Tn}))}g.API.addSvgAsImage=function(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){if(isNaN(Un)||isNaN(Qn))throw Qf.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Dn)||isNaN(Hn))throw Qf.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Kn=document.createElement("canvas");Kn.width=Dn,Kn.height=Hn;var Wn=Kn.getContext("2d");Wn.fillStyle="#fff",Wn.fillRect(0,0,Kn.width,Kn.height);var Xn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Yn=this;return r().then((function(Un){return Un.Canvg.fromString(Wn,Tn,Xn)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(Tn){return Tn.render(Xn)})).then((function(){Yn.addImage(Kn.toDataURL("image/jpeg",1),Un,Qn,Dn,Hn,zn,Vn)}))}}(),g.API.putTotalPages=function(Tn){var Un,Qn=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Un=new RegExp(Tn,"g"),Qn=this.internal.getNumberOfPages()):(Un=new RegExp(this.pdfEscape16(Tn,this.internal.getFont()),"g"),Qn=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Dn=1;Dn<=this.internal.getNumberOfPages();Dn++)for(var Hn=0;Hn<this.internal.pages[Dn].length;Hn++)this.internal.pages[Dn][Hn]=this.internal.pages[Dn][Hn].replace(Un,Qn);return this},g.API.viewerPreferences=function(Tn,Un){var Qn;Tn=Tn||{},Un=Un||!1;var Dn,Hn,Gn,zn={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}},Vn=Object.keys(zn),Kn=[],Wn=0,Xn=0,Yn=0;function f(Tn,Un){var Qn,Dn=!1;for(Qn=0;Qn<Tn.length;Qn+=1)Tn[Qn]===Un&&(Dn=!0);return Dn}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(zn)),this.internal.viewerpreferences.isSubscribed=!1),Qn=this.internal.viewerpreferences.configuration,"reset"===Tn||!0===Un){var Jn=Vn.length;for(Yn=0;Yn<Jn;Yn+=1)Qn[Vn[Yn]].value=Qn[Vn[Yn]].defaultValue,Qn[Vn[Yn]].explicitSet=!1}if("object"==_typeof(Tn))for(Hn in Tn)if(Gn=Tn[Hn],f(Vn,Hn)&&void 0!==Gn){if("boolean"===Qn[Hn].type&&"boolean"==typeof Gn)Qn[Hn].value=Gn;else if("name"===Qn[Hn].type&&f(Qn[Hn].valueSet,Gn))Qn[Hn].value=Gn;else if("integer"===Qn[Hn].type&&Number.isInteger(Gn))Qn[Hn].value=Gn;else if("array"===Qn[Hn].type){for(Wn=0;Wn<Gn.length;Wn+=1)if(Dn=!0,1===Gn[Wn].length&&"number"==typeof Gn[Wn][0])Kn.push(String(Gn[Wn]-1));else if(Gn[Wn].length>1){for(Xn=0;Xn<Gn[Wn].length;Xn+=1)"number"!=typeof Gn[Wn][Xn]&&(Dn=!1);!0===Dn&&Kn.push([Gn[Wn][0]-1,Gn[Wn][1]-1].join(" "))}Qn[Hn].value="["+Kn.join(" ")+"]"}else Qn[Hn].value=Qn[Hn].defaultValue;Qn[Hn].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var Tn,Un=[];for(Tn in Qn)!0===Qn[Tn].explicitSet&&("name"===Qn[Tn].type?Un.push("/"+Tn+" /"+Qn[Tn].value):Un.push("/"+Tn+" "+Qn[Tn].value));0!==Un.length&&this.internal.write("/ViewerPreferences\n<<\n"+Un.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Qn,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(Tn){var Un=function e(){var Tn='<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>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Un=unescape(encodeURIComponent(Tn)),Qn=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Dn=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Hn=unescape(encodeURIComponent("</x:xmpmeta>")),Gn=Un.length+Qn.length+Dn.length+e.length+Hn.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Gn+" >>"),this.internal.write("stream"),this.internal.write(e+Un+Qn+Dn+Hn),this.internal.write("endstream"),this.internal.write("endobj")},Qn=function n(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Tn.addMetadata=function(Tn,Dn){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:Tn,namespaceuri:Dn||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Qn),this.internal.events.subscribe("postPutResources",Un)),this}}(g.API),function(Tn){var Un=Tn.API,Qn=Un.pdfEscape16=function(Tn,Un){for(var Qn,Dn=Un.metadata.Unicode.widths,Hn=["","0","00","000","0000"],Gn=[""],zn=0,Vn=Tn.length;zn<Vn;++zn){if(Qn=Un.metadata.characterToGlyph(Tn.charCodeAt(zn)),Un.metadata.glyIdsUsed.push(Qn),Un.metadata.toUnicode[Qn]=Tn.charCodeAt(zn),-1==Dn.indexOf(Qn)&&(Dn.push(Qn),Dn.push([parseInt(Un.metadata.widthOfGlyph(Qn),10)])),"0"==Qn)return Gn.join("");Qn=Qn.toString(16),Gn.push(Hn[4-Qn.length],Qn)}return Gn.join("")},Dn=function r(Tn){var Un,Qn,r,Dn,Hn,Gn,zn;for(Hn="/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",r=[],Gn=0,zn=(Qn=Object.keys(Tn).sort((function(Tn,Un){return Tn-Un}))).length;Gn<zn;Gn++)Un=Qn[Gn],r.length>=100&&(Hn+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==Tn[Un]&&null!==Tn[Un]&&"function"==typeof Tn[Un].toString&&(Dn=("0000"+Tn[Un].toString(16)).slice(-4),Un=("0000"+(+Un).toString(16)).slice(-4),r.push("<"+Un+"><"+Dn+">"));return r.length&&(Hn+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),Hn+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};Un.events.push(["putFont",function(Un){!function(Un){var Qn=Un.font,Hn=Un.out,Gn=Un.newObject,zn=Un.putStream,Vn=Un.pdfEscapeWithNeededParanthesis;if(Qn.metadata instanceof Tn.API.TTFFont&&"Identity-H"===Qn.encoding){for(var Kn=Qn.metadata.Unicode.widths,Wn=Qn.metadata.subset.encode(Qn.metadata.glyIdsUsed,1),Xn="",Yn=0;Yn<Wn.length;Yn++)Xn+=String.fromCharCode(Wn[Yn]);var Jn=Gn();zn({data:Xn,addLength1:!0}),Hn("endobj");var $n=Gn();zn({data:Dn(Qn.metadata.toUnicode),addLength1:!0}),Hn("endobj");var Zn=Gn();Hn("<<"),Hn("/Type /FontDescriptor"),Hn("/FontName /"+Vn(Qn.fontName)),Hn("/FontFile2 "+Jn+" 0 R"),Hn("/FontBBox "+Tn.API.PDFObject.convert(Qn.metadata.bbox)),Hn("/Flags "+Qn.metadata.flags),Hn("/StemV "+Qn.metadata.stemV),Hn("/ItalicAngle "+Qn.metadata.italicAngle),Hn("/Ascent "+Qn.metadata.ascender),Hn("/Descent "+Qn.metadata.decender),Hn("/CapHeight "+Qn.metadata.capHeight),Hn(">>"),Hn("endobj");var er=Gn();Hn("<<"),Hn("/Type /Font"),Hn("/BaseFont /"+Vn(Qn.fontName)),Hn("/FontDescriptor "+Zn+" 0 R"),Hn("/W "+Tn.API.PDFObject.convert(Kn)),Hn("/CIDToGIDMap /Identity"),Hn("/DW 1000"),Hn("/Subtype /CIDFontType2"),Hn("/CIDSystemInfo"),Hn("<<"),Hn("/Supplement 0"),Hn("/Registry (Adobe)"),Hn("/Ordering ("+Qn.encoding+")"),Hn(">>"),Hn(">>"),Hn("endobj"),Qn.objectNumber=Gn(),Hn("<<"),Hn("/Type /Font"),Hn("/Subtype /Type0"),Hn("/ToUnicode "+$n+" 0 R"),Hn("/BaseFont /"+Vn(Qn.fontName)),Hn("/Encoding /"+Qn.encoding),Hn("/DescendantFonts ["+er+" 0 R]"),Hn(">>"),Hn("endobj"),Qn.isAlreadyPutted=!0}}(Un)}]),Un.events.push(["putFont",function(Un){!function(Un){var Qn=Un.font,Hn=Un.out,Gn=Un.newObject,zn=Un.putStream,Vn=Un.pdfEscapeWithNeededParanthesis;if(Qn.metadata instanceof Tn.API.TTFFont&&"WinAnsiEncoding"===Qn.encoding){for(var Kn=Qn.metadata.rawData,Wn="",Xn=0;Xn<Kn.length;Xn++)Wn+=String.fromCharCode(Kn[Xn]);var Yn=Gn();zn({data:Wn,addLength1:!0}),Hn("endobj");var Jn=Gn();zn({data:Dn(Qn.metadata.toUnicode),addLength1:!0}),Hn("endobj");var $n=Gn();Hn("<<"),Hn("/Descent "+Qn.metadata.decender),Hn("/CapHeight "+Qn.metadata.capHeight),Hn("/StemV "+Qn.metadata.stemV),Hn("/Type /FontDescriptor"),Hn("/FontFile2 "+Yn+" 0 R"),Hn("/Flags 96"),Hn("/FontBBox "+Tn.API.PDFObject.convert(Qn.metadata.bbox)),Hn("/FontName /"+Vn(Qn.fontName)),Hn("/ItalicAngle "+Qn.metadata.italicAngle),Hn("/Ascent "+Qn.metadata.ascender),Hn(">>"),Hn("endobj"),Qn.objectNumber=Gn();for(var Zn=0;Zn<Qn.metadata.hmtx.widths.length;Zn++)Qn.metadata.hmtx.widths[Zn]=parseInt(Qn.metadata.hmtx.widths[Zn]*(1e3/Qn.metadata.head.unitsPerEm));Hn("<</Subtype/TrueType/Type/Font/ToUnicode "+Jn+" 0 R/BaseFont/"+Qn.fontName+"/FontDescriptor "+$n+" 0 R/Encoding/"+Qn.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Tn.API.PDFObject.convert(Qn.metadata.hmtx.widths)+">>"),Hn("endobj"),Qn.isAlreadyPutted=!0}}(Un)}]);var Hn=function i(Tn){var Un,Dn=Tn.text||"",i=Tn.x,Hn=Tn.y,Gn=Tn.options||{},zn=Tn.mutex||{},Vn=zn.pdfEscape,Kn=zn.activeFontKey,Wn=zn.fonts,Xn=Kn,Yn="",Jn=0,$n="",Zn=Wn[Xn].encoding;if("Identity-H"!==Wn[Xn].encoding)return{text:Dn,x:i,y:Hn,options:Gn,mutex:zn};for($n=Dn,Xn=Kn,Array.isArray(Dn)&&($n=Dn[0]),Jn=0;Jn<$n.length;Jn+=1)Wn[Xn].metadata.hasOwnProperty("cmap")&&(Un=Wn[Xn].metadata.cmap.unicode.codeMap[$n[Jn].charCodeAt(0)]),Un||$n[Jn].charCodeAt(0)<256&&Wn[Xn].metadata.hasOwnProperty("Unicode")?Yn+=$n[Jn]:Yn+="";var er="";return parseInt(Xn.slice(1))<14||"WinAnsiEncoding"===Zn?er=Vn(Yn,Xn).split("").map((function(Tn){return Tn.charCodeAt(0).toString(16)})).join(""):"Identity-H"===Zn&&(er=Qn(Yn,Wn[Xn])),zn.isHex=!0,{text:er,x:i,y:Hn,options:Gn,mutex:zn}};Un.events.push(["postProcessText",function(Tn){var Un=Tn.text||"",Qn=[],Dn={text:Un,x:Tn.x,y:Tn.y,options:Tn.options,mutex:Tn.mutex};if(Array.isArray(Un)){var Gn=0;for(Gn=0;Gn<Un.length;Gn+=1)Array.isArray(Un[Gn])&&3===Un[Gn].length?Qn.push([Hn(Object.assign({},Dn,{text:Un[Gn][0]})).text,Un[Gn][1],Un[Gn][2]]):Qn.push(Hn(Object.assign({},Dn,{text:Un[Gn]})).text);Tn.text=Qn}else Tn.text=Hn(Object.assign({},Dn,{text:Un})).text}])}(g),
|
||
/**
|
||
* @license
|
||
* jsPDF virtual FileSystem functionality
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){var Un=function e(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};Tn.existsFileInVFS=function(Tn){return Un.call(this),void 0!==this.internal.vFS[Tn]},Tn.addFileToVFS=function(Tn,Qn){return Un.call(this),this.internal.vFS[Tn]=Qn,this},Tn.getFileFromVFS=function(Tn){return Un.call(this),void 0!==this.internal.vFS[Tn]?this.internal.vFS[Tn]:null}}(g.API),
|
||
/**
|
||
* @license
|
||
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
||
* MIT License
|
||
*/
|
||
function(Tn){Tn.__bidiEngine__=Tn.prototype.__bidiEngine__=function(Tn){var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn=Un,Xn=[[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]],Yn=[[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]],Jn={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},Zn=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],er=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)$/),tr=!1,nr=0;this.__bidiEngine__={};var rr=function b(Tn){var Un=Tn.charCodeAt(),Qn=Un>>8,Dn=$n[Qn];return void 0!==Dn?Wn[256*Dn+(255&Un)]:252===Qn||253===Qn?"AL":er.test(Qn)?"L":8===Qn?"R":"N"},ir=function y(Tn){for(var Un,Qn=0;Qn<Tn.length;Qn++){if("L"===(Un=rr(Tn.charAt(Qn))))return!1;if("R"===Un)return!0}return!1},ar=function w(Tn,Un,zn,Vn){var Kn,Wn,Xn,Yn,Jn=Un[Vn];switch(Jn){case"L":case"R":tr=!1;break;case"N":case"AN":break;case"EN":tr&&(Jn="AN");break;case"AL":tr=!0,Jn="R";break;case"WS":Jn="N";break;case"CS":Vn<1||Vn+1>=Un.length||"EN"!==(Kn=zn[Vn-1])&&"AN"!==Kn||"EN"!==(Wn=Un[Vn+1])&&"AN"!==Wn?Jn="N":tr&&(Wn="AN"),Jn=Wn===Kn?Wn:"N";break;case"ES":Jn="EN"===(Kn=Vn>0?zn[Vn-1]:"B")&&Vn+1<Un.length&&"EN"===Un[Vn+1]?"EN":"N";break;case"ET":if(Vn>0&&"EN"===zn[Vn-1]){Jn="EN";break}if(tr){Jn="N";break}for(Xn=Vn+1,Yn=Un.length;Xn<Yn&&"ET"===Un[Xn];)Xn++;Jn=Xn<Yn&&"EN"===Un[Xn]?"EN":"N";break;case"NSM":if(Hn&&!Gn){for(Yn=Un.length,Xn=Vn+1;Xn<Yn&&"NSM"===Un[Xn];)Xn++;if(Xn<Yn){var $n=Tn[Vn],Zn=$n>=1425&&$n<=2303||64286===$n;if(Kn=Un[Xn],Zn&&("R"===Kn||"AL"===Kn)){Jn="R";break}}}Jn=Vn<1||"B"===(Kn=Un[Vn-1])?"N":zn[Vn-1];break;case"B":tr=!1,Qn=!0,Jn=nr;break;case"S":Dn=!0,Jn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":tr=!1;break;case"BN":Jn="N"}return Jn},or=function N(Tn,Un,Qn){var Dn=Tn.split("");return Qn&&sr(Dn,Qn,{hiLevel:nr}),Dn.reverse(),Un&&Un.reverse(),Dn.join("")},sr=function L(Tn,Un,Hn){var Gn,zn,Vn,Kn,Wn,$n=-1,Zn=Tn.length,er=0,ir=[],or=nr?Yn:Xn,L=[];for(tr=!1,Qn=!1,Dn=!1,zn=0;zn<Zn;zn++)L[zn]=rr(Tn[zn]);for(Vn=0;Vn<Zn;Vn++){if(Wn=er,ir[Vn]=ar(Tn,L,ir,Vn),Gn=240&(er=or[Wn][Jn[ir[Vn]]]),er&=15,Un[Vn]=Kn=or[er][5],Gn>0)if(16===Gn){for(zn=$n;zn<Vn;zn++)Un[zn]=1;$n=-1}else $n=-1;if(or[er][6])-1===$n&&($n=Vn);else if($n>-1){for(zn=$n;zn<Vn;zn++)Un[zn]=Kn;$n=-1}"B"===L[Vn]&&(Un[Vn]=0),Hn.hiLevel|=Kn}Dn&&function(Tn,Un,Qn){for(var Dn=0;Dn<Qn;Dn++)if("S"===Tn[Dn]){Un[Dn]=nr;for(var Hn=Dn-1;Hn>=0&&"WS"===Tn[Hn];Hn--)Un[Hn]=nr}}(L,Un,Zn)},lr=function x(Tn,Un,Dn,Hn,Gn){if(!(Gn.hiLevel<Tn)){if(1===Tn&&1===nr&&!Qn)return Un.reverse(),void(Dn&&Dn.reverse());for(var zn,Vn,Kn,Wn,Xn=Un.length,Yn=0;Yn<Xn;){if(Hn[Yn]>=Tn){for(Kn=Yn+1;Kn<Xn&&Hn[Kn]>=Tn;)Kn++;for(Wn=Yn,Vn=Kn-1;Wn<Vn;Wn++,Vn--)zn=Un[Wn],Un[Wn]=Un[Vn],Un[Vn]=zn,Dn&&(zn=Dn[Wn],Dn[Wn]=Dn[Vn],Dn[Vn]=zn);Yn=Kn}Yn++}}},cr=function A(Tn,Un,Qn){var Dn=Tn.split(""),Hn={hiLevel:nr};return Qn||(Qn=[]),sr(Dn,Qn,Hn),function(Tn,Un,Qn){if(0!==Qn.hiLevel&&Kn)for(var Dn,Hn=0;Hn<Tn.length;Hn++)1===Un[Hn]&&(Dn=Zn.indexOf(Tn[Hn]))>=0&&(Tn[Hn]=Zn[Dn+1])}(Dn,Qn,Hn),lr(2,Dn,Un,Qn,Hn),lr(1,Dn,Un,Qn,Hn),Dn.join("")};return this.__bidiEngine__.doBidiReorder=function(Tn,Un,Qn){if(function(Tn,Un){if(Un)for(var Qn=0;Qn<Tn.length;Qn++)Un[Qn]=Qn;void 0===Gn&&(Gn=ir(Tn)),void 0===Vn&&(Vn=ir(Tn))}(Tn,Un),Hn||!zn||Vn)if(Hn&&zn&&Gn^Vn)nr=Gn?1:0,Tn=or(Tn,Un,Qn);else if(!Hn&&zn&&Vn)nr=Gn?1:0,Tn=cr(Tn,Un,Qn),Tn=or(Tn,Un);else if(!Hn||Gn||zn||Vn){if(Hn&&!zn&&Gn^Vn)Tn=or(Tn,Un),Gn?(nr=0,Tn=cr(Tn,Un,Qn)):(nr=1,Tn=cr(Tn,Un,Qn),Tn=or(Tn,Un));else if(Hn&&Gn&&!zn&&Vn)nr=1,Tn=cr(Tn,Un,Qn),Tn=or(Tn,Un);else if(!Hn&&!zn&&Gn^Vn){var Dn=Kn;Gn?(nr=1,Tn=cr(Tn,Un,Qn),nr=0,Kn=!1,Tn=cr(Tn,Un,Qn),Kn=Dn):(nr=0,Tn=cr(Tn,Un,Qn),Tn=or(Tn,Un),nr=1,Kn=!1,Tn=cr(Tn,Un,Qn),Kn=Dn,Tn=or(Tn,Un))}}else nr=0,Tn=cr(Tn,Un,Qn);else nr=Gn?1:0,Tn=cr(Tn,Un,Qn);return Tn},this.__bidiEngine__.setOptions=function(Tn){Tn&&(Hn=Tn.isInputVisual,zn=Tn.isOutputVisual,Gn=Tn.isInputRtl,Vn=Tn.isOutputRtl,Kn=Tn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Tn),this.__bidiEngine__};var Un=["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"],Qn=new Tn.__bidiEngine__({isInputVisual:!0});Tn.API.events.push(["postProcessText",function(Tn){var Un=Tn.text,Dn=(Tn.x,Tn.y,Tn.options||{}),Hn=(Tn.mutex,Dn.lang,[]);if(Dn.isInputVisual="boolean"!=typeof Dn.isInputVisual||Dn.isInputVisual,Qn.setOptions(Dn),"[object Array]"===Object.prototype.toString.call(Un)){var Gn=0;for(Hn=[],Gn=0;Gn<Un.length;Gn+=1)"[object Array]"===Object.prototype.toString.call(Un[Gn])?Hn.push([Qn.doBidiReorder(Un[Gn][0]),Un[Gn][1],Un[Gn][2]]):Hn.push([Qn.doBidiReorder(Un[Gn])]);Tn.text=Hn}else Tn.text=Qn.doBidiReorder(Un);Qn.setOptions({isInputVisual:!0})}])}(g),g.API.TTFFont=function(){function t(Tn){var Un;if(this.rawData=Tn,Un=this.contents=new Jg(Tn),this.contents.pos=4,"ttcf"===Un.readString(4))throw new Error("TTCF not supported.");Un.pos=0,this.parse(),this.subset=new gm(this),this.registerTTF()}return t.open=function(Tn){return new t(Tn)},t.prototype.parse=function(){return this.directory=new $g(this.contents),this.head=new tm(this),this.name=new lm(this),this.cmap=new rm(this),this.toUnicode={},this.hhea=new im(this),this.maxp=new cm(this),this.hmtx=new um(this),this.post=new om(this),this.os2=new am(this),this.loca=new fm(this),this.glyf=new hm(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 Tn,Un,Qn,Dn,Hn;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var Un,Qn,Dn,Hn;for(Hn=[],Un=0,Qn=(Dn=this.bbox).length;Un<Qn;Un++)Tn=Dn[Un],Hn.push(Math.round(Tn*this.scaleFactor));return Hn}.call(this),this.stemV=0,this.post.exists?(Qn=255&(Dn=this.post.italic_angle),0!=(32768&(Un=Dn>>16))&&(Un=-(1+(65535^Un))),this.italicAngle=+(Un+"."+Qn)):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===(Hn=this.familyClass)||2===Hn||3===Hn||4===Hn||5===Hn||7===Hn,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(Tn){var Un;return(null!=(Un=this.cmap.unicode)?Un.codeMap[Tn]:void 0)||0},t.prototype.widthOfGlyph=function(Tn){var Un;return Un=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Tn).advance*Un},t.prototype.widthOfString=function(Tn,Un,Qn){var Dn,Hn,Gn,zn;for(Gn=0,Hn=0,zn=(Tn=""+Tn).length;0<=zn?Hn<zn:Hn>zn;Hn=0<=zn?++Hn:--Hn)Dn=Tn.charCodeAt(Hn),Gn+=this.widthOfGlyph(this.characterToGlyph(Dn))+Qn*(1e3/Un)||0;return Gn*(Un/1e3)},t.prototype.lineHeight=function(Tn,Un){var Qn;return null==Un&&(Un=!1),Qn=Un?this.lineGap:0,(this.ascender+Qn-this.decender)/1e3*Tn},t}();var Yg,Jg=function(){function t(Tn){this.data=null!=Tn?Tn:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(Tn){return this.data[this.pos++]=Tn},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(Tn){return this.writeByte(Tn>>>24&255),this.writeByte(Tn>>16&255),this.writeByte(Tn>>8&255),this.writeByte(255&Tn)},t.prototype.readInt32=function(){var Tn;return(Tn=this.readUInt32())>=2147483648?Tn-4294967296:Tn},t.prototype.writeInt32=function(Tn){return Tn<0&&(Tn+=4294967296),this.writeUInt32(Tn)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(Tn){return this.writeByte(Tn>>8&255),this.writeByte(255&Tn)},t.prototype.readInt16=function(){var Tn;return(Tn=this.readUInt16())>=32768?Tn-65536:Tn},t.prototype.writeInt16=function(Tn){return Tn<0&&(Tn+=65536),this.writeUInt16(Tn)},t.prototype.readString=function(Tn){var Un,Qn;for(Qn=[],Un=0;0<=Tn?Un<Tn:Un>Tn;Un=0<=Tn?++Un:--Un)Qn[Un]=String.fromCharCode(this.readByte());return Qn.join("")},t.prototype.writeString=function(Tn){var Un,Qn,Dn;for(Dn=[],Un=0,Qn=Tn.length;0<=Qn?Un<Qn:Un>Qn;Un=0<=Qn?++Un:--Un)Dn.push(this.writeByte(Tn.charCodeAt(Un)));return Dn},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(Tn){return this.writeInt16(Tn)},t.prototype.readLongLong=function(){var Tn,Un,Qn,Dn,Hn,Gn,zn,Vn;return Tn=this.readByte(),Un=this.readByte(),Qn=this.readByte(),Dn=this.readByte(),Hn=this.readByte(),Gn=this.readByte(),zn=this.readByte(),Vn=this.readByte(),128&Tn?-1*(72057594037927940*(255^Tn)+281474976710656*(255^Un)+1099511627776*(255^Qn)+4294967296*(255^Dn)+16777216*(255^Hn)+65536*(255^Gn)+256*(255^zn)+(255^Vn)+1):72057594037927940*Tn+281474976710656*Un+1099511627776*Qn+4294967296*Dn+16777216*Hn+65536*Gn+256*zn+Vn},t.prototype.writeLongLong=function(Tn){var Un,Qn;return Un=Math.floor(Tn/4294967296),Qn=4294967295&Tn,this.writeByte(Un>>24&255),this.writeByte(Un>>16&255),this.writeByte(Un>>8&255),this.writeByte(255&Un),this.writeByte(Qn>>24&255),this.writeByte(Qn>>16&255),this.writeByte(Qn>>8&255),this.writeByte(255&Qn)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(Tn){return this.writeInt32(Tn)},t.prototype.read=function(Tn){var Un,Qn;for(Un=[],Qn=0;0<=Tn?Qn<Tn:Qn>Tn;Qn=0<=Tn?++Qn:--Qn)Un.push(this.readByte());return Un},t.prototype.write=function(Tn){var Un,Qn,Dn,Hn;for(Hn=[],Qn=0,Dn=Tn.length;Qn<Dn;Qn++)Un=Tn[Qn],Hn.push(this.writeByte(Un));return Hn},t}(),$g=function(){var Tn;function e(Tn){var Un,Qn,Dn;for(this.scalarType=Tn.readInt(),this.tableCount=Tn.readShort(),this.searchRange=Tn.readShort(),this.entrySelector=Tn.readShort(),this.rangeShift=Tn.readShort(),this.tables={},Qn=0,Dn=this.tableCount;0<=Dn?Qn<Dn:Qn>Dn;Qn=0<=Dn?++Qn:--Qn)Un={tag:Tn.readString(4),checksum:Tn.readInt(),offset:Tn.readInt(),length:Tn.readInt()},this.tables[Un.tag]=Un}return e.prototype.encode=function(Un){var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn;for(Zn in Jn=Object.keys(Un).length,Vn=Math.log(2),Xn=16*Math.floor(Math.log(Jn)/Vn),Gn=Math.floor(Xn/Vn),Wn=16*Jn-Xn,(Dn=new Jg).writeInt(this.scalarType),Dn.writeShort(Jn),Dn.writeShort(Xn),Dn.writeShort(Gn),Dn.writeShort(Wn),Hn=16*Jn,Kn=Dn.pos+Hn,zn=null,$n=[],Un)for(Yn=Un[Zn],Dn.writeString(Zn),Dn.writeInt(Tn(Yn)),Dn.writeInt(Kn),Dn.writeInt(Yn.length),$n=$n.concat(Yn),"head"===Zn&&(zn=Kn),Kn+=Yn.length;Kn%4;)$n.push(0),Kn++;return Dn.write($n),Qn=2981146554-Tn(Dn.data),Dn.pos=zn+8,Dn.writeUInt32(Qn),Dn.data},Tn=function t(Tn){var Un,Qn,Dn,Hn;for(Tn=dm.call(Tn);Tn.length%4;)Tn.push(0);for(Dn=new Jg(Tn),Qn=0,Un=0,Hn=Tn.length;Un<Hn;Un=Un+=4)Qn+=Dn.readUInt32();return 4294967295&Qn},e}(),Zg={}.hasOwnProperty,em=function Ut(Tn,Un){for(var Qn in Un)Zg.call(Un,Qn)&&(Tn[Qn]=Un[Qn]);function r(){this.constructor=Tn}return r.prototype=Un.prototype,Tn.prototype=new r,Tn.__super__=Un.prototype,Tn};Yg=function(){function t(Tn){var Un;this.file=Tn,Un=this.file.directory.tables[this.tag],this.exists=!!Un,Un&&(this.offset=Un.offset,this.length=Un.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 tm=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="head",e.prototype.parse=function(Tn){return Tn.pos=this.offset,this.version=Tn.readInt(),this.revision=Tn.readInt(),this.checkSumAdjustment=Tn.readInt(),this.magicNumber=Tn.readInt(),this.flags=Tn.readShort(),this.unitsPerEm=Tn.readShort(),this.created=Tn.readLongLong(),this.modified=Tn.readLongLong(),this.xMin=Tn.readShort(),this.yMin=Tn.readShort(),this.xMax=Tn.readShort(),this.yMax=Tn.readShort(),this.macStyle=Tn.readShort(),this.lowestRecPPEM=Tn.readShort(),this.fontDirectionHint=Tn.readShort(),this.indexToLocFormat=Tn.readShort(),this.glyphDataFormat=Tn.readShort()},e.prototype.encode=function(Tn){var Un;return(Un=new Jg).writeInt(this.version),Un.writeInt(this.revision),Un.writeInt(this.checkSumAdjustment),Un.writeInt(this.magicNumber),Un.writeShort(this.flags),Un.writeShort(this.unitsPerEm),Un.writeLongLong(this.created),Un.writeLongLong(this.modified),Un.writeShort(this.xMin),Un.writeShort(this.yMin),Un.writeShort(this.xMax),Un.writeShort(this.yMax),Un.writeShort(this.macStyle),Un.writeShort(this.lowestRecPPEM),Un.writeShort(this.fontDirectionHint),Un.writeShort(Tn),Un.writeShort(this.glyphDataFormat),Un.data},e}(),nm=function(){function t(Tn,Un){var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr,rr;switch(this.platformID=Tn.readUInt16(),this.encodingID=Tn.readShort(),this.offset=Un+Tn.readInt(),Xn=Tn.pos,Tn.pos=this.offset,this.format=Tn.readUInt16(),this.length=Tn.readUInt16(),this.language=Tn.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(Vn=0;Vn<256;++Vn)this.codeMap[Vn]=Tn.readByte();break;case 4:for(Jn=Tn.readUInt16(),Yn=Jn/2,Tn.pos+=6,Hn=function(){var Un,Qn;for(Qn=[],Vn=Un=0;0<=Yn?Un<Yn:Un>Yn;Vn=0<=Yn?++Un:--Un)Qn.push(Tn.readUInt16());return Qn}(),Tn.pos+=2,Zn=function(){var Un,Qn;for(Qn=[],Vn=Un=0;0<=Yn?Un<Yn:Un>Yn;Vn=0<=Yn?++Un:--Un)Qn.push(Tn.readUInt16());return Qn}(),Kn=function(){var Un,Qn;for(Qn=[],Vn=Un=0;0<=Yn?Un<Yn:Un>Yn;Vn=0<=Yn?++Un:--Un)Qn.push(Tn.readUInt16());return Qn}(),Wn=function(){var Un,Qn;for(Qn=[],Vn=Un=0;0<=Yn?Un<Yn:Un>Yn;Vn=0<=Yn?++Un:--Un)Qn.push(Tn.readUInt16());return Qn}(),Dn=(this.length-Tn.pos+this.offset)/2,zn=function(){var Un,Qn;for(Qn=[],Vn=Un=0;0<=Dn?Un<Dn:Un>Dn;Vn=0<=Dn?++Un:--Un)Qn.push(Tn.readUInt16());return Qn}(),Vn=tr=0,rr=Hn.length;tr<rr;Vn=++tr)for(er=Hn[Vn],Qn=nr=$n=Zn[Vn];$n<=er?nr<=er:nr>=er;Qn=$n<=er?++nr:--nr)0===Wn[Vn]?Gn=Qn+Kn[Vn]:0!==(Gn=zn[Wn[Vn]/2+(Qn-$n)-(Yn-Vn)]||0)&&(Gn+=Kn[Vn]),this.codeMap[Qn]=65535&Gn}Tn.pos=Xn}return t.encode=function(Tn,Un){var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr,rr,ir,ar,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,xr,kr,Sr,Cr,Br,Er,Nr,Lr,Tr,Pr;switch(Ar=new Jg,Gn=Object.keys(Tn).sort((function(Tn,Un){return Tn-Un})),Un){case"macroman":for(Zn=0,er=function(){var Tn=[];for($n=0;$n<256;++$n)Tn.push(0);return Tn}(),nr={0:0},Hn={},fr=0,vr=Gn.length;fr<vr;fr++)null==nr[Nr=Tn[Dn=Gn[fr]]]&&(nr[Nr]=++Zn),Hn[Dn]={old:Tn[Dn],new:nr[Tn[Dn]]},er[Dn]=nr[Tn[Dn]];return Ar.writeUInt16(1),Ar.writeUInt16(0),Ar.writeUInt32(12),Ar.writeUInt16(0),Ar.writeUInt16(262),Ar.writeUInt16(0),Ar.write(er),{charMap:Hn,subtable:Ar.data,maxGlyphID:Zn+1};case"unicode":for(hr=[],Xn=[],rr=0,nr={},Qn={},tr=Kn=null,gr=0,yr=Gn.length;gr<yr;gr++)null==nr[ar=Tn[Dn=Gn[gr]]]&&(nr[ar]=++rr),Qn[Dn]={old:ar,new:nr[ar]},zn=nr[ar]-Dn,null!=tr&&zn===Kn||(tr&&Xn.push(tr),hr.push(Dn),Kn=zn),tr=Dn;for(tr&&Xn.push(tr),Xn.push(65535),hr.push(65535),ur=2*(cr=hr.length),lr=2*Math.pow(Math.log(cr)/Math.LN2,2),Yn=Math.log(lr/2)/Math.LN2,sr=2*cr-lr,Vn=[],or=[],Jn=[],$n=mr=0,br=hr.length;mr<br;$n=++mr){if(dr=hr[$n],Wn=Xn[$n],65535===dr){Vn.push(0),or.push(0);break}if(dr-(pr=Qn[dr].new)>=32768)for(Vn.push(0),or.push(2*(Jn.length+cr-$n)),Dn=_r=dr;dr<=Wn?_r<=Wn:_r>=Wn;Dn=dr<=Wn?++_r:--_r)Jn.push(Qn[Dn].new);else Vn.push(pr-dr),or.push(0)}for(Ar.writeUInt16(3),Ar.writeUInt16(1),Ar.writeUInt32(12),Ar.writeUInt16(4),Ar.writeUInt16(16+8*cr+2*Jn.length),Ar.writeUInt16(0),Ar.writeUInt16(ur),Ar.writeUInt16(lr),Ar.writeUInt16(Yn),Ar.writeUInt16(sr),Br=0,wr=Xn.length;Br<wr;Br++)Dn=Xn[Br],Ar.writeUInt16(Dn);for(Ar.writeUInt16(0),Er=0,xr=hr.length;Er<xr;Er++)Dn=hr[Er],Ar.writeUInt16(Dn);for(Lr=0,kr=Vn.length;Lr<kr;Lr++)zn=Vn[Lr],Ar.writeUInt16(zn);for(Tr=0,Sr=or.length;Tr<Sr;Tr++)ir=or[Tr],Ar.writeUInt16(ir);for(Pr=0,Cr=Jn.length;Pr<Cr;Pr++)Zn=Jn[Pr],Ar.writeUInt16(Zn);return{charMap:Qn,subtable:Ar.data,maxGlyphID:rr+1}}},t}(),rm=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="cmap",e.prototype.parse=function(Tn){var Un,Qn,Dn;for(Tn.pos=this.offset,this.version=Tn.readUInt16(),Dn=Tn.readUInt16(),this.tables=[],this.unicode=null,Qn=0;0<=Dn?Qn<Dn:Qn>Dn;Qn=0<=Dn?++Qn:--Qn)Un=new nm(Tn,this.offset),this.tables.push(Un),Un.isUnicode&&null==this.unicode&&(this.unicode=Un);return!0},e.encode=function(Tn,Un){var Qn,Dn;return null==Un&&(Un="macroman"),Qn=nm.encode(Tn,Un),(Dn=new Jg).writeUInt16(0),Dn.writeUInt16(1),Qn.table=Dn.data.concat(Qn.subtable),Qn},e}(),im=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="hhea",e.prototype.parse=function(Tn){return Tn.pos=this.offset,this.version=Tn.readInt(),this.ascender=Tn.readShort(),this.decender=Tn.readShort(),this.lineGap=Tn.readShort(),this.advanceWidthMax=Tn.readShort(),this.minLeftSideBearing=Tn.readShort(),this.minRightSideBearing=Tn.readShort(),this.xMaxExtent=Tn.readShort(),this.caretSlopeRise=Tn.readShort(),this.caretSlopeRun=Tn.readShort(),this.caretOffset=Tn.readShort(),Tn.pos+=8,this.metricDataFormat=Tn.readShort(),this.numberOfMetrics=Tn.readUInt16()},e}(),am=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="OS/2",e.prototype.parse=function(Tn){if(Tn.pos=this.offset,this.version=Tn.readUInt16(),this.averageCharWidth=Tn.readShort(),this.weightClass=Tn.readUInt16(),this.widthClass=Tn.readUInt16(),this.type=Tn.readShort(),this.ySubscriptXSize=Tn.readShort(),this.ySubscriptYSize=Tn.readShort(),this.ySubscriptXOffset=Tn.readShort(),this.ySubscriptYOffset=Tn.readShort(),this.ySuperscriptXSize=Tn.readShort(),this.ySuperscriptYSize=Tn.readShort(),this.ySuperscriptXOffset=Tn.readShort(),this.ySuperscriptYOffset=Tn.readShort(),this.yStrikeoutSize=Tn.readShort(),this.yStrikeoutPosition=Tn.readShort(),this.familyClass=Tn.readShort(),this.panose=function(){var Un,Qn;for(Qn=[],Un=0;Un<10;++Un)Qn.push(Tn.readByte());return Qn}(),this.charRange=function(){var Un,Qn;for(Qn=[],Un=0;Un<4;++Un)Qn.push(Tn.readInt());return Qn}(),this.vendorID=Tn.readString(4),this.selection=Tn.readShort(),this.firstCharIndex=Tn.readShort(),this.lastCharIndex=Tn.readShort(),this.version>0&&(this.ascent=Tn.readShort(),this.descent=Tn.readShort(),this.lineGap=Tn.readShort(),this.winAscent=Tn.readShort(),this.winDescent=Tn.readShort(),this.codePageRange=function(){var Un,Qn;for(Qn=[],Un=0;Un<2;Un=++Un)Qn.push(Tn.readInt());return Qn}(),this.version>1))return this.xHeight=Tn.readShort(),this.capHeight=Tn.readShort(),this.defaultChar=Tn.readShort(),this.breakChar=Tn.readShort(),this.maxContext=Tn.readShort()},e}(),om=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="post",e.prototype.parse=function(Tn){var Un,Qn,Dn;switch(Tn.pos=this.offset,this.format=Tn.readInt(),this.italicAngle=Tn.readInt(),this.underlinePosition=Tn.readShort(),this.underlineThickness=Tn.readShort(),this.isFixedPitch=Tn.readInt(),this.minMemType42=Tn.readInt(),this.maxMemType42=Tn.readInt(),this.minMemType1=Tn.readInt(),this.maxMemType1=Tn.readInt(),this.format){case 65536:break;case 131072:var Hn;for(Qn=Tn.readUInt16(),this.glyphNameIndex=[],Hn=0;0<=Qn?Hn<Qn:Hn>Qn;Hn=0<=Qn?++Hn:--Hn)this.glyphNameIndex.push(Tn.readUInt16());for(this.names=[],Dn=[];Tn.pos<this.offset+this.length;)Un=Tn.readByte(),Dn.push(this.names.push(Tn.readString(Un)));return Dn;case 151552:return Qn=Tn.readUInt16(),this.offsets=Tn.read(Qn);case 196608:break;case 262144:return this.map=function(){var Un,Qn,Dn;for(Dn=[],Hn=Un=0,Qn=this.file.maxp.numGlyphs;0<=Qn?Un<Qn:Un>Qn;Hn=0<=Qn?++Un:--Un)Dn.push(Tn.readUInt32());return Dn}.call(this)}},e}(),sm=function Jt(Tn,Un){this.raw=Tn,this.length=Tn.length,this.platformID=Un.platformID,this.encodingID=Un.encodingID,this.languageID=Un.languageID},lm=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="name",e.prototype.parse=function(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn;for(Tn.pos=this.offset,Tn.readShort(),Un=Tn.readShort(),zn=Tn.readShort(),Qn=[],Hn=0;0<=Un?Hn<Un:Hn>Un;Hn=0<=Un?++Hn:--Hn)Qn.push({platformID:Tn.readShort(),encodingID:Tn.readShort(),languageID:Tn.readShort(),nameID:Tn.readShort(),length:Tn.readShort(),offset:this.offset+zn+Tn.readShort()});for(Vn={},Hn=Wn=0,Xn=Qn.length;Wn<Xn;Hn=++Wn)Dn=Qn[Hn],Tn.pos=Dn.offset,Kn=Tn.readString(Dn.length),Gn=new sm(Kn,Dn),null==Vn[Yn=Dn.nameID]&&(Vn[Yn]=[]),Vn[Dn.nameID].push(Gn);this.strings=Vn,this.copyright=Vn[0],this.fontFamily=Vn[1],this.fontSubfamily=Vn[2],this.uniqueSubfamily=Vn[3],this.fontName=Vn[4],this.version=Vn[5];try{this.postscriptName=Vn[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Tn){this.postscriptName=Vn[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Vn[7],this.manufacturer=Vn[8],this.designer=Vn[9],this.description=Vn[10],this.vendorUrl=Vn[11],this.designerUrl=Vn[12],this.license=Vn[13],this.licenseUrl=Vn[14],this.preferredFamily=Vn[15],this.preferredSubfamily=Vn[17],this.compatibleFull=Vn[18],this.sampleText=Vn[19]},e}(),cm=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="maxp",e.prototype.parse=function(Tn){return Tn.pos=this.offset,this.version=Tn.readInt(),this.numGlyphs=Tn.readUInt16(),this.maxPoints=Tn.readUInt16(),this.maxContours=Tn.readUInt16(),this.maxCompositePoints=Tn.readUInt16(),this.maxComponentContours=Tn.readUInt16(),this.maxZones=Tn.readUInt16(),this.maxTwilightPoints=Tn.readUInt16(),this.maxStorage=Tn.readUInt16(),this.maxFunctionDefs=Tn.readUInt16(),this.maxInstructionDefs=Tn.readUInt16(),this.maxStackElements=Tn.readUInt16(),this.maxSizeOfInstructions=Tn.readUInt16(),this.maxComponentElements=Tn.readUInt16(),this.maxComponentDepth=Tn.readUInt16()},e}(),um=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="hmtx",e.prototype.parse=function(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn;for(Tn.pos=this.offset,this.metrics=[],Un=0,zn=this.file.hhea.numberOfMetrics;0<=zn?Un<zn:Un>zn;Un=0<=zn?++Un:--Un)this.metrics.push({advance:Tn.readUInt16(),lsb:Tn.readInt16()});for(Dn=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Qn,Hn;for(Hn=[],Un=Qn=0;0<=Dn?Qn<Dn:Qn>Dn;Un=0<=Dn?++Qn:--Qn)Hn.push(Tn.readInt16());return Hn}(),this.widths=function(){var Tn,Un,Qn,Dn;for(Dn=[],Tn=0,Un=(Qn=this.metrics).length;Tn<Un;Tn++)Hn=Qn[Tn],Dn.push(Hn.advance);return Dn}.call(this),Qn=this.widths[this.widths.length-1],Vn=[],Un=Gn=0;0<=Dn?Gn<Dn:Gn>Dn;Un=0<=Dn?++Gn:--Gn)Vn.push(this.widths.push(Qn));return Vn},e.prototype.forGlyph=function(Tn){return Tn in this.metrics?this.metrics[Tn]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Tn-this.metrics.length]}},e}(),dm=[].slice,hm=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn;return Tn in this.cache?this.cache[Tn]:(Hn=this.file.loca,Un=this.file.contents,Qn=Hn.indexOf(Tn),0===(Dn=Hn.lengthOf(Tn))?this.cache[Tn]=null:(Un.pos=this.offset+Qn,Gn=(zn=new Jg(Un.read(Dn))).readShort(),Kn=zn.readShort(),Xn=zn.readShort(),Vn=zn.readShort(),Wn=zn.readShort(),this.cache[Tn]=-1===Gn?new Am(zn,Kn,Xn,Vn,Wn):new pm(zn,Gn,Kn,Xn,Vn,Wn),this.cache[Tn]))},e.prototype.encode=function(Tn,Un,Qn){var Dn,Hn,Gn,zn,Vn;for(Gn=[],Hn=[],zn=0,Vn=Un.length;zn<Vn;zn++)Dn=Tn[Un[zn]],Hn.push(Gn.length),Dn&&(Gn=Gn.concat(Dn.encode(Qn)));return Hn.push(Gn.length),{table:Gn,offsets:Hn}},e}(),pm=function(){function t(Tn,Un,Qn,Dn,Hn,Gn){this.raw=Tn,this.numberOfContours=Un,this.xMin=Qn,this.yMin=Dn,this.xMax=Hn,this.yMax=Gn,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Am=function(){function t(Tn,Un,Qn,Dn,Hn){var Gn,zn;for(this.raw=Tn,this.xMin=Un,this.yMin=Qn,this.xMax=Dn,this.yMax=Hn,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Gn=this.raw;zn=Gn.readShort(),this.glyphOffsets.push(Gn.pos),this.glyphIDs.push(Gn.readUInt16()),32&zn;)Gn.pos+=1&zn?4:2,128&zn?Gn.pos+=8:64&zn?Gn.pos+=4:8&zn&&(Gn.pos+=2)}return t.prototype.encode=function(){var Tn,Un,Qn;for(Un=new Jg(dm.call(this.raw.data)),Tn=0,Qn=this.glyphIDs.length;Tn<Qn;++Tn)Un.pos=this.glyphOffsets[Tn];return Un.data},t}(),fm=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="loca",e.prototype.parse=function(Tn){var Un,Qn;return Tn.pos=this.offset,Un=this.file.head.indexToLocFormat,this.offsets=0===Un?function(){var Un,Dn;for(Dn=[],Qn=0,Un=this.length;Qn<Un;Qn+=2)Dn.push(2*Tn.readUInt16());return Dn}.call(this):function(){var Un,Dn;for(Dn=[],Qn=0,Un=this.length;Qn<Un;Qn+=4)Dn.push(Tn.readUInt32());return Dn}.call(this)},e.prototype.indexOf=function(Tn){return this.offsets[Tn]},e.prototype.lengthOf=function(Tn){return this.offsets[Tn+1]-this.offsets[Tn]},e.prototype.encode=function(Tn,Un){for(var Qn=new Uint32Array(this.offsets.length),Dn=0,Hn=0,Gn=0;Gn<Qn.length;++Gn)if(Qn[Gn]=Dn,Hn<Un.length&&Un[Hn]==Gn){++Hn,Qn[Gn]=Dn;var zn=this.offsets[Gn],Vn=this.offsets[Gn+1]-zn;Vn>0&&(Dn+=Vn)}for(var Kn=new Array(4*Qn.length),Wn=0;Wn<Qn.length;++Wn)Kn[4*Wn+3]=255&Qn[Wn],Kn[4*Wn+2]=(65280&Qn[Wn])>>8,Kn[4*Wn+1]=(16711680&Qn[Wn])>>16,Kn[4*Wn]=(4278190080&Qn[Wn])>>24;return Kn},e}(),gm=function(){function t(Tn){this.font=Tn,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var Tn,Un,Qn,Dn,Hn;for(Un in Dn=this.font.cmap.tables[0].codeMap,Tn={},Hn=this.subset)Qn=Hn[Un],Tn[Un]=Dn[Qn];return Tn},t.prototype.glyphsFor=function(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn;for(Dn={},Gn=0,zn=Tn.length;Gn<zn;Gn++)Dn[Hn=Tn[Gn]]=this.font.glyf.glyphFor(Hn);for(Hn in Un=[],Dn)(null!=(Qn=Dn[Hn])?Qn.compound:void 0)&&Un.push.apply(Un,Qn.glyphIDs);if(Un.length>0)for(Hn in Vn=this.glyphsFor(Un))Qn=Vn[Hn],Dn[Hn]=Qn;return Dn},t.prototype.encode=function(Tn,Un){var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr;for(Dn in Qn=rm.encode(this.generateCmap(),"unicode"),Gn=this.glyphsFor(Tn),Jn={0:0},tr=Qn.charMap)Jn[(Vn=tr[Dn]).old]=Vn.new;for($n in Yn=Qn.maxGlyphID,Gn)$n in Jn||(Jn[$n]=Yn++);return Wn=function(Tn){var Un,Qn;for(Un in Qn={},Tn)Qn[Tn[Un]]=Un;return Qn}(Jn),Xn=Object.keys(Wn).sort((function(Tn,Un){return Tn-Un})),Zn=function(){var Tn,Un,Qn;for(Qn=[],Tn=0,Un=Xn.length;Tn<Un;Tn++)zn=Xn[Tn],Qn.push(Wn[zn]);return Qn}(),Hn=this.font.glyf.encode(Gn,Zn,Jn),Kn=this.font.loca.encode(Hn.offsets,Zn),er={cmap:this.font.cmap.raw(),glyf:Hn.table,loca:Kn,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(Un)},this.font.os2.exists&&(er["OS/2"]=this.font.os2.raw()),this.font.directory.encode(er)},t}();g.API.PDFObject=function(){var Tn;function e(){}return Tn=function t(Tn,Un){return(Array(Un+1).join("0")+Tn).slice(-Un)},e.convert=function(Un){var Qn,Dn,Hn,Gn;if(Array.isArray(Un))return"["+function(){var Tn,Dn,Hn;for(Hn=[],Tn=0,Dn=Un.length;Tn<Dn;Tn++)Qn=Un[Tn],Hn.push(e.convert(Qn));return Hn}().join(" ")+"]";if("string"==typeof Un)return"/"+Un;if(null!=Un?Un.isString:void 0)return"("+Un+")";if(Un instanceof Date)return"(D:"+Tn(Un.getUTCFullYear(),4)+Tn(Un.getUTCMonth(),2)+Tn(Un.getUTCDate(),2)+Tn(Un.getUTCHours(),2)+Tn(Un.getUTCMinutes(),2)+Tn(Un.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(Un)){for(Dn in Hn=["<<"],Un)Gn=Un[Dn],Hn.push("/"+Dn+" "+e.convert(Gn));return Hn.push(">>"),Hn.join("\n")}return""+Un},e}(),g.API.adler32cs=function(){var Tn,Un,Qn,Dn,Hn,Gn="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,zn=null,Vn=function(){if(!Gn)return function(){return!1};try{var Tn={};"function"==typeof Tn.Buffer&&(zn=Tn.Buffer)}catch(Tn){}return function(Tn){return Tn instanceof ArrayBuffer||null!==zn&&Tn instanceof zn}}(),Kn=null!==zn?function(Tn){return new zn(Tn,"utf8").toString("binary")}:function(Tn){return unescape(encodeURIComponent(Tn))},Wn=function i(Tn,Un){for(var Qn=65535&Tn,Dn=Tn>>>16,i=0,Hn=Un.length;i<Hn;i++)Dn=(Dn+(Qn=(Qn+(255&Un.charCodeAt(i)))%65521))%65521;return(Dn<<16|Qn)>>>0},Xn=function a(Tn,Un){for(var Qn=65535&Tn,Dn=Tn>>>16,Hn=0,a=Un.length;Hn<a;Hn++)Dn=(Dn+(Qn=(Qn+Un[Hn])%65521))%65521;return(Dn<<16|Qn)>>>0},Yn={},Jn=Yn.Adler32=((Hn=(Dn=function l(Tn){if(!(this instanceof Dn))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(Tn=null===Tn?1:+Tn))throw new Error("First arguments needs to be a finite number.");this.checksum=Tn>>>0}).prototype={}).constructor=Dn,Dn.from=((Tn=function u(Tn){if(!(this instanceof Dn))throw new TypeError("Constructor cannot called be as a function.");if(null===Tn)throw new Error("First argument needs to be a string.");this.checksum=Wn(1,Tn.toString())}).prototype=Hn,Tn),Dn.fromUtf8=((Un=function c(Tn){if(!(this instanceof Dn))throw new TypeError("Constructor cannot called be as a function.");if(null===Tn)throw new Error("First argument needs to be a string.");var Un=Kn(Tn.toString());this.checksum=Wn(1,Un)}).prototype=Hn,Un),Gn&&(Dn.fromBuffer=((Qn=function h(Tn){if(!(this instanceof Dn))throw new TypeError("Constructor cannot called be as a function.");if(!Vn(Tn))throw new Error("First argument needs to be ArrayBuffer.");var Un=new Uint8Array(Tn);return this.checksum=Xn(1,Un)}).prototype=Hn,Qn)),Hn.update=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");return Tn=Tn.toString(),this.checksum=Wn(this.checksum,Tn)},Hn.updateUtf8=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");var Un=Kn(Tn.toString());return this.checksum=Wn(this.checksum,Un)},Gn&&(Hn.updateBuffer=function(Tn){if(!Vn(Tn))throw new Error("First argument needs to be ArrayBuffer.");var Un=new Uint8Array(Tn);return this.checksum=Xn(this.checksum,Un)}),Hn.clone=function(){return new Jn(this.checksum)},Dn);return Yn.from=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");return Wn(1,Tn.toString())},Yn.fromUtf8=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");var Un=Kn(Tn.toString());return Wn(1,Un)},Gn&&(Yn.fromBuffer=function(Tn){if(!Vn(Tn))throw new Error("First argument need to be ArrayBuffer.");var Un=new Uint8Array(Tn);return Xn(1,Un)}),Yn}(),_export({target:"Array",proto:!0,forced:Pp!==[].lastIndexOf},{lastIndexOf:Pp}),_export({target:"String",proto:!0,forced:stringHtmlForced("anchor")},{anchor:function anchor(Tn){return createHtml(this,"a","name",Tn)}});
|
||
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
||
var mm={}.hasOwnProperty,vm=/[ -,\.\/:-@\[-\^`\{-~]/,ym=/[ -,\.\/:-@\[\]\^`\{-~]/,wm=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,xm=function cssesc(Tn,Un){"single"!=(Un=function merge(Tn,Un){if(!Tn)return Un;var Qn={};for(var Dn in Un)Qn[Dn]=mm.call(Tn,Dn)?Tn[Dn]:Un[Dn];return Qn}(Un,cssesc.options)).quotes&&"double"!=Un.quotes&&(Un.quotes="single");for(var Qn="double"==Un.quotes?'"':"'",Dn=Un.isIdentifier,Hn=Tn.charAt(0),Gn="",zn=0,Vn=Tn.length;zn<Vn;){var Kn=Tn.charAt(zn++),Wn=Kn.charCodeAt(),Xn=void 0;if(Wn<32||Wn>126){if(Wn>=55296&&Wn<=56319&&zn<Vn){var Yn=Tn.charCodeAt(zn++);56320==(64512&Yn)?Wn=((1023&Wn)<<10)+(1023&Yn)+65536:zn--}Xn="\\"+Wn.toString(16).toUpperCase()+" "}else Xn=Un.escapeEverything?vm.test(Kn)?"\\"+Kn:"\\"+Wn.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(Kn)?"\\"+Wn.toString(16).toUpperCase()+" ":"\\"==Kn||!Dn&&('"'==Kn&&Qn==Kn||"'"==Kn&&Qn==Kn)||Dn&&ym.test(Kn)?"\\"+Kn:Kn;Gn+=Xn}return Dn&&(/^-[-\d]/.test(Gn)?Gn="\\-"+Gn.slice(1):/\d/.test(Hn)&&(Gn="\\3"+Hn+" "+Gn.slice(1))),Gn=Gn.replace(wm,(function(Tn,Un,Qn){return Un&&Un.length%2?Tn:(Un||"")+Qn})),!Dn&&Un.wrap?Qn+Gn+Qn:Gn};xm.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},xm.version="3.0.0";var km=xm,Sm=/[a-z0-9_-]/i,Cm=/[\s\t]/,Bm=function parse(Tn){for(var Un,Qn,Dn=!0,Hn=0,Gn="",zn=0,Vn=[];;){if(Qn=Tn[zn],0===Hn){if(!Qn&&Dn)break;if(!Qn&&!Dn)throw new Error("Parse error");if('"'===Qn||"'"===Qn)Un=Qn,Hn=1,Dn=!1;else if(Cm.test(Qn));else{if(!Sm.test(Qn))throw new Error("Parse error");Hn=3,Dn=!1,zn--}}else if(1===Hn){if(!Qn)throw new Error("Parse Error");"\\"===Qn?Hn=2:Qn===Un?(Vn.push(Gn),Gn="",Hn=4):Gn+=Qn}else if(2===Hn){if(Qn!==Un&&"\\"!==Qn)throw new Error("Parse error");Gn+=Qn,Hn=1}else if(3===Hn){if(!Qn){Vn.push(Gn);break}if(Sm.test(Qn))Gn+=Qn;else if(","===Qn)Vn.push(Gn),Gn="",Hn=0;else{if(!Cm.test(Qn))throw new Error("Parse error");Hn=5}}else if(5===Hn){if(!Qn){Vn.push(Gn);break}if(Sm.test(Qn))Gn+=" "+Qn,Hn=3;else if(","===Qn)Vn.push(Gn),Gn="",Hn=0;else if(!Cm.test(Qn))throw new Error("Parse error")}else if(4===Hn){if(!Qn)break;if(","===Qn)Hn=0;else if(!Cm.test(Qn))throw new Error("Parse error")}zn++}return Vn},Em={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},Nm=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isDigit(Tn){return Tn>=48&&Tn<=57}function State(Tn){this.index=0,this.path=Tn,this.max=Tn.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(Tn){for(;Tn.index<Tn.max&&(10===(Un=Tn.path.charCodeAt(Tn.index))||13===Un||8232===Un||8233===Un||32===Un||9===Un||11===Un||12===Un||160===Un||Un>=5760&&Nm.indexOf(Un)>=0);)Tn.index++;var Un}function scanFlag(Tn){var Un=Tn.path.charCodeAt(Tn.index);return 48===Un?(Tn.param=0,void Tn.index++):49===Un?(Tn.param=1,void Tn.index++):void(Tn.err="SvgPath: arc flag can be 0 or 1 only (at pos "+Tn.index+")")}function scanParam(Tn){var Un,Qn=Tn.index,Dn=Qn,Hn=Tn.max,Gn=!1,zn=!1,Vn=!1,Kn=!1;if(Dn>=Hn)Tn.err="SvgPath: missed param (at pos "+Dn+")";else if(43!==(Un=Tn.path.charCodeAt(Dn))&&45!==Un||(Un=++Dn<Hn?Tn.path.charCodeAt(Dn):0),isDigit(Un)||46===Un){if(46!==Un){if(Gn=48===Un,Un=++Dn<Hn?Tn.path.charCodeAt(Dn):0,Gn&&Dn<Hn&&Un&&isDigit(Un))return void(Tn.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+Qn+")");for(;Dn<Hn&&isDigit(Tn.path.charCodeAt(Dn));)Dn++,zn=!0;Un=Dn<Hn?Tn.path.charCodeAt(Dn):0}if(46===Un){for(Kn=!0,Dn++;isDigit(Tn.path.charCodeAt(Dn));)Dn++,Vn=!0;Un=Dn<Hn?Tn.path.charCodeAt(Dn):0}if(101===Un||69===Un){if(Kn&&!zn&&!Vn)return void(Tn.err="SvgPath: invalid float exponent (at pos "+Dn+")");if(43!==(Un=++Dn<Hn?Tn.path.charCodeAt(Dn):0)&&45!==Un||Dn++,!(Dn<Hn&&isDigit(Tn.path.charCodeAt(Dn))))return void(Tn.err="SvgPath: invalid float exponent (at pos "+Dn+")");for(;Dn<Hn&&isDigit(Tn.path.charCodeAt(Dn));)Dn++}Tn.index=Dn,Tn.param=parseFloat(Tn.path.slice(Qn,Dn))+0}else Tn.err="SvgPath: param should start with 0..9 or `.` (at pos "+Dn+")"}function finalizeSegment(Tn){var Un,Qn;Qn=(Un=Tn.path[Tn.segmentStart]).toLowerCase();var Dn=Tn.data;if("m"===Qn&&Dn.length>2&&(Tn.result.push([Un,Dn[0],Dn[1]]),Dn=Dn.slice(2),Qn="l",Un="m"===Un?"l":"L"),"r"===Qn)Tn.result.push([Un].concat(Dn));else for(;Dn.length>=Em[Qn]&&(Tn.result.push([Un].concat(Dn.splice(0,Em[Qn]))),Em[Qn]););}function scanSegment(Tn){var Un,Qn,Dn,Hn,Gn,zn=Tn.max;if(Tn.segmentStart=Tn.index,Qn=function isArc(Tn){return 97==(32|Tn)}(Un=Tn.path.charCodeAt(Tn.index)),function isCommand(Tn){switch(32|Tn){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}(Un))if(Hn=Em[Tn.path[Tn.index].toLowerCase()],Tn.index++,skipSpaces(Tn),Tn.data=[],Hn){for(Dn=!1;;){for(Gn=Hn;Gn>0;Gn--){if(!Qn||3!==Gn&&4!==Gn?scanParam(Tn):scanFlag(Tn),Tn.err.length)return;Tn.data.push(Tn.param),skipSpaces(Tn),Dn=!1,Tn.index<zn&&44===Tn.path.charCodeAt(Tn.index)&&(Tn.index++,skipSpaces(Tn),Dn=!0)}if(!Dn){if(Tn.index>=Tn.max)break;if(!((Vn=Tn.path.charCodeAt(Tn.index))>=48&&Vn<=57||43===Vn||45===Vn||46===Vn))break}}var Vn;finalizeSegment(Tn)}else finalizeSegment(Tn);else Tn.err="SvgPath: bad command "+Tn.path[Tn.index]+" (at pos "+Tn.index+")"}function Matrix(){if(!(this instanceof Matrix))return new Matrix;this.queue=[],this.cache=null}Matrix.prototype.matrix=function(Tn){return 1===Tn[0]&&0===Tn[1]&&0===Tn[2]&&1===Tn[3]&&0===Tn[4]&&0===Tn[5]||(this.cache=null,this.queue.push(Tn)),this},Matrix.prototype.translate=function(Tn,Un){return 0===Tn&&0===Un||(this.cache=null,this.queue.push([1,0,0,1,Tn,Un])),this},Matrix.prototype.scale=function(Tn,Un){return 1===Tn&&1===Un||(this.cache=null,this.queue.push([Tn,0,0,Un,0,0])),this},Matrix.prototype.rotate=function(Tn,Un,Qn){var Dn,Hn,Gn;return 0!==Tn&&(this.translate(Un,Qn),Dn=Tn*Math.PI/180,Hn=Math.cos(Dn),Gn=Math.sin(Dn),this.queue.push([Hn,Gn,-Gn,Hn,0,0]),this.cache=null,this.translate(-Un,-Qn)),this},Matrix.prototype.skewX=function(Tn){return 0!==Tn&&(this.cache=null,this.queue.push([1,0,Math.tan(Tn*Math.PI/180),1,0,0])),this},Matrix.prototype.skewY=function(Tn){return 0!==Tn&&(this.cache=null,this.queue.push([1,Math.tan(Tn*Math.PI/180),0,1,0,0])),this},Matrix.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 Tn=1;Tn<this.queue.length;Tn++)this.cache=(Un=this.cache,Qn=this.queue[Tn],[Un[0]*Qn[0]+Un[2]*Qn[1],Un[1]*Qn[0]+Un[3]*Qn[1],Un[0]*Qn[2]+Un[2]*Qn[3],Un[1]*Qn[2]+Un[3]*Qn[3],Un[0]*Qn[4]+Un[2]*Qn[5]+Un[4],Un[1]*Qn[4]+Un[3]*Qn[5]+Un[5]]);var Un,Qn;return this.cache},Matrix.prototype.calc=function(Tn,Un,Qn){var Dn;return this.queue.length?(this.cache||(this.cache=this.toArray()),[Tn*(Dn=this.cache)[0]+Un*Dn[2]+(Qn?0:Dn[4]),Tn*Dn[1]+Un*Dn[3]+(Qn?0:Dn[5])]):[Tn,Un]};var Lm=Matrix,Tm={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},Pm=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,Fm=/[\s,]+/,Um=2*Math.PI;function unit_vector_angle(Tn,Un,Qn,Dn){var Hn=Tn*Qn+Un*Dn;return Hn>1&&(Hn=1),Hn<-1&&(Hn=-1),(Tn*Dn-Un*Qn<0?-1:1)*Math.acos(Hn)}function approximate_unit_arc(Tn,Un){var Qn=4/3*Math.tan(Un/4),Dn=Math.cos(Tn),Hn=Math.sin(Tn),Gn=Math.cos(Tn+Un),zn=Math.sin(Tn+Un);return[Dn,Hn,Dn-Hn*Qn,Hn+Dn*Qn,Gn+zn*Qn,zn-Gn*Qn,Gn,zn]}var Im=function a2c(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn,Kn){var Wn=Math.sin(Kn*Um/360),Xn=Math.cos(Kn*Um/360),Yn=Xn*(Tn-Qn)/2+Wn*(Un-Dn)/2,Jn=-Wn*(Tn-Qn)/2+Xn*(Un-Dn)/2;if(0===Yn&&0===Jn)return[];if(0===zn||0===Vn)return[];zn=Math.abs(zn),Vn=Math.abs(Vn);var $n=Yn*Yn/(zn*zn)+Jn*Jn/(Vn*Vn);$n>1&&(zn*=Math.sqrt($n),Vn*=Math.sqrt($n));var Zn=function get_arc_center(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn){var Xn=Wn*(Tn-Qn)/2+Kn*(Un-Dn)/2,Yn=-Kn*(Tn-Qn)/2+Wn*(Un-Dn)/2,Jn=zn*zn,$n=Vn*Vn,Zn=Xn*Xn,er=Yn*Yn,tr=Jn*$n-Jn*er-$n*Zn;tr<0&&(tr=0),tr/=Jn*er+$n*Zn;var nr=(tr=Math.sqrt(tr)*(Hn===Gn?-1:1))*zn/Vn*Yn,rr=tr*-Vn/zn*Xn,ir=Wn*nr-Kn*rr+(Tn+Qn)/2,ar=Kn*nr+Wn*rr+(Un+Dn)/2,or=(Xn-nr)/zn,sr=(Yn-rr)/Vn,lr=(-Xn-nr)/zn,cr=(-Yn-rr)/Vn,ur=unit_vector_angle(1,0,or,sr),dr=unit_vector_angle(or,sr,lr,cr);return 0===Gn&&dr>0&&(dr-=Um),1===Gn&&dr<0&&(dr+=Um),[ir,ar,ur,dr]}(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn,Wn,Xn),er=[],tr=Zn[2],nr=Zn[3],rr=Math.max(Math.ceil(Math.abs(nr)/(Um/4)),1);nr/=rr;for(var ir=0;ir<rr;ir++)er.push(approximate_unit_arc(tr,nr)),tr+=nr;return er.map((function(Tn){for(var Un=0;Un<Tn.length;Un+=2){var Qn=Tn[Un+0],Dn=Tn[Un+1],Hn=Xn*(Qn*=zn)-Wn*(Dn*=Vn),Gn=Wn*Qn+Xn*Dn;Tn[Un+0]=Hn+Zn[0],Tn[Un+1]=Gn+Zn[1]}return Tn}))},Rm=Math.PI/180;function Ellipse(Tn,Un,Qn){if(!(this instanceof Ellipse))return new Ellipse(Tn,Un,Qn);this.rx=Tn,this.ry=Un,this.ax=Qn}Ellipse.prototype.transform=function(Tn){var Un=Math.cos(this.ax*Rm),Qn=Math.sin(this.ax*Rm),Dn=[this.rx*(Tn[0]*Un+Tn[2]*Qn),this.rx*(Tn[1]*Un+Tn[3]*Qn),this.ry*(-Tn[0]*Qn+Tn[2]*Un),this.ry*(-Tn[1]*Qn+Tn[3]*Un)],Hn=Dn[0]*Dn[0]+Dn[2]*Dn[2],Gn=Dn[1]*Dn[1]+Dn[3]*Dn[3],zn=((Dn[0]-Dn[3])*(Dn[0]-Dn[3])+(Dn[2]+Dn[1])*(Dn[2]+Dn[1]))*((Dn[0]+Dn[3])*(Dn[0]+Dn[3])+(Dn[2]-Dn[1])*(Dn[2]-Dn[1])),Vn=(Hn+Gn)/2;if(zn<1e-10*Vn)return this.rx=this.ry=Math.sqrt(Vn),this.ax=0,this;var Kn=Dn[0]*Dn[1]+Dn[2]*Dn[3],Wn=Vn+(zn=Math.sqrt(zn))/2,Xn=Vn-zn/2;return this.ax=Math.abs(Kn)<1e-10&&Math.abs(Wn-Gn)<1e-10?90:180*Math.atan(Math.abs(Kn)>Math.abs(Wn-Gn)?(Wn-Hn)/Kn:Kn/(Wn-Gn))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(Wn),this.ry=Math.sqrt(Xn)):(this.ax+=90,this.rx=Math.sqrt(Xn),this.ry=Math.sqrt(Wn)),this},Ellipse.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx};var Mm=Ellipse;function SvgPath(Tn){if(!(this instanceof SvgPath))return new SvgPath(Tn);var Un=function pathParse(Tn){var Un=new State(Tn),Qn=Un.max;for(skipSpaces(Un);Un.index<Qn&&!Un.err.length;)scanSegment(Un);return Un.err.length?Un.result=[]:Un.result.length&&("mM".indexOf(Un.result[0][0])<0?(Un.err="SvgPath: string should start with `M` or `m`",Un.result=[]):Un.result[0][0]="M"),{err:Un.err,segments:Un.result}}(Tn);this.segments=Un.segments,this.err=Un.err,this.__stack=[]}SvgPath.from=function(Tn){if("string"==typeof Tn)return new SvgPath(Tn);if(Tn instanceof SvgPath){var Un=new SvgPath("");return Un.err=Tn.err,Un.segments=Tn.segments.map((function(Tn){return Tn.slice()})),Un.__stack=Tn.__stack.map((function(Tn){return Lm().matrix(Tn.toArray())})),Un}throw new Error("SvgPath.from: invalid param type "+Tn)},SvgPath.prototype.__matrix=function(Tn){var Un,Qn=this;Tn.queue.length&&this.iterate((function(Dn,Hn,Gn,zn){var Vn,Kn,Wn,Xn;switch(Dn[0]){case"v":Kn=0===(Vn=Tn.calc(0,Dn[1],!0))[0]?["v",Vn[1]]:["l",Vn[0],Vn[1]];break;case"V":Kn=(Vn=Tn.calc(Gn,Dn[1],!1))[0]===Tn.calc(Gn,zn,!1)[0]?["V",Vn[1]]:["L",Vn[0],Vn[1]];break;case"h":Kn=0===(Vn=Tn.calc(Dn[1],0,!0))[1]?["h",Vn[0]]:["l",Vn[0],Vn[1]];break;case"H":Kn=(Vn=Tn.calc(Dn[1],zn,!1))[1]===Tn.calc(Gn,zn,!1)[1]?["H",Vn[0]]:["L",Vn[0],Vn[1]];break;case"a":case"A":var Yn=Tn.toArray(),Jn=Mm(Dn[1],Dn[2],Dn[3]).transform(Yn);if(Yn[0]*Yn[3]-Yn[1]*Yn[2]<0&&(Dn[5]=Dn[5]?"0":"1"),Vn=Tn.calc(Dn[6],Dn[7],"a"===Dn[0]),"A"===Dn[0]&&Dn[6]===Gn&&Dn[7]===zn||"a"===Dn[0]&&0===Dn[6]&&0===Dn[7]){Kn=["a"===Dn[0]?"l":"L",Vn[0],Vn[1]];break}Kn=Jn.isDegenerate()?["a"===Dn[0]?"l":"L",Vn[0],Vn[1]]:[Dn[0],Jn.rx,Jn.ry,Jn.ax,Dn[4],Dn[5],Vn[0],Vn[1]];break;case"m":Xn=Hn>0,Kn=["m",(Vn=Tn.calc(Dn[1],Dn[2],Xn))[0],Vn[1]];break;default:for(Kn=[Wn=Dn[0]],Xn=Wn.toLowerCase()===Wn,Un=1;Un<Dn.length;Un+=2)Vn=Tn.calc(Dn[Un],Dn[Un+1],Xn),Kn.push(Vn[0],Vn[1])}Qn.segments[Hn]=Kn}),!0)},SvgPath.prototype.__evaluateStack=function(){var Tn,Un;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(Tn=Lm(),Un=this.__stack.length;--Un>=0;)Tn.matrix(this.__stack[Un].toArray());this.__matrix(Tn),this.__stack=[]}},SvgPath.prototype.toString=function(){var Tn,Un,Qn=[];this.__evaluateStack();for(var Dn=0;Dn<this.segments.length;Dn++)Un=this.segments[Dn][0],Tn=Dn>0&&"m"!==Un&&"M"!==Un&&Un===this.segments[Dn-1][0],Qn=Qn.concat(Tn?this.segments[Dn].slice(1):this.segments[Dn]);return Qn.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},SvgPath.prototype.translate=function(Tn,Un){return this.__stack.push(Lm().translate(Tn,Un||0)),this},SvgPath.prototype.scale=function(Tn,Un){return this.__stack.push(Lm().scale(Tn,Un||0===Un?Un:Tn)),this},SvgPath.prototype.rotate=function(Tn,Un,Qn){return this.__stack.push(Lm().rotate(Tn,Un||0,Qn||0)),this},SvgPath.prototype.skewX=function(Tn){return this.__stack.push(Lm().skewX(Tn)),this},SvgPath.prototype.skewY=function(Tn){return this.__stack.push(Lm().skewY(Tn)),this},SvgPath.prototype.matrix=function(Tn){return this.__stack.push(Lm().matrix(Tn)),this},SvgPath.prototype.transform=function(Tn){return Tn.trim()?(this.__stack.push(function transformParse(Tn){var Un,Qn,Dn=new Lm;return Tn.split(Pm).forEach((function(Tn){if(Tn.length)if(void 0===Tm[Tn])switch(Qn=Tn.split(Fm).map((function(Tn){return+Tn||0})),Un){case"matrix":return void(6===Qn.length&&Dn.matrix(Qn));case"scale":return void(1===Qn.length?Dn.scale(Qn[0],Qn[0]):2===Qn.length&&Dn.scale(Qn[0],Qn[1]));case"rotate":return void(1===Qn.length?Dn.rotate(Qn[0],0,0):3===Qn.length&&Dn.rotate(Qn[0],Qn[1],Qn[2]));case"translate":return void(1===Qn.length?Dn.translate(Qn[0],0):2===Qn.length&&Dn.translate(Qn[0],Qn[1]));case"skewX":return void(1===Qn.length&&Dn.skewX(Qn[0]));case"skewY":return void(1===Qn.length&&Dn.skewY(Qn[0]))}else Un=Tn})),Dn}(Tn)),this):this},SvgPath.prototype.round=function(Tn){var Un,Qn=0,Dn=0,Hn=0,Gn=0;return Tn=Tn||0,this.__evaluateStack(),this.segments.forEach((function(zn){var Vn=zn[0].toLowerCase()===zn[0];switch(zn[0]){case"H":case"h":return Vn&&(zn[1]+=Hn),Hn=zn[1]-zn[1].toFixed(Tn),void(zn[1]=+zn[1].toFixed(Tn));case"V":case"v":return Vn&&(zn[1]+=Gn),Gn=zn[1]-zn[1].toFixed(Tn),void(zn[1]=+zn[1].toFixed(Tn));case"Z":case"z":return Hn=Qn,void(Gn=Dn);case"M":case"m":return Vn&&(zn[1]+=Hn,zn[2]+=Gn),Hn=zn[1]-zn[1].toFixed(Tn),Gn=zn[2]-zn[2].toFixed(Tn),Qn=Hn,Dn=Gn,zn[1]=+zn[1].toFixed(Tn),void(zn[2]=+zn[2].toFixed(Tn));case"A":case"a":return Vn&&(zn[6]+=Hn,zn[7]+=Gn),Hn=zn[6]-zn[6].toFixed(Tn),Gn=zn[7]-zn[7].toFixed(Tn),zn[1]=+zn[1].toFixed(Tn),zn[2]=+zn[2].toFixed(Tn),zn[3]=+zn[3].toFixed(Tn+2),zn[6]=+zn[6].toFixed(Tn),void(zn[7]=+zn[7].toFixed(Tn));default:return Un=zn.length,Vn&&(zn[Un-2]+=Hn,zn[Un-1]+=Gn),Hn=zn[Un-2]-zn[Un-2].toFixed(Tn),Gn=zn[Un-1]-zn[Un-1].toFixed(Tn),void zn.forEach((function(Un,Qn){Qn&&(zn[Qn]=+zn[Qn].toFixed(Tn))}))}})),this},SvgPath.prototype.iterate=function(Tn,Un){var Qn,Dn,Hn,Gn=this.segments,zn={},Vn=!1,Kn=0,Wn=0,Xn=0,Yn=0;if(Un||this.__evaluateStack(),Gn.forEach((function(Un,Qn){var Dn=Tn(Un,Qn,Kn,Wn);Array.isArray(Dn)&&(zn[Qn]=Dn,Vn=!0);var Hn=Un[0]===Un[0].toLowerCase();switch(Un[0]){case"m":case"M":return Kn=Un[1]+(Hn?Kn:0),Wn=Un[2]+(Hn?Wn:0),Xn=Kn,void(Yn=Wn);case"h":case"H":return void(Kn=Un[1]+(Hn?Kn:0));case"v":case"V":return void(Wn=Un[1]+(Hn?Wn:0));case"z":case"Z":return Kn=Xn,void(Wn=Yn);default:Kn=Un[Un.length-2]+(Hn?Kn:0),Wn=Un[Un.length-1]+(Hn?Wn:0)}})),!Vn)return this;for(Hn=[],Qn=0;Qn<Gn.length;Qn++)if(void 0!==zn[Qn])for(Dn=0;Dn<zn[Qn].length;Dn++)Hn.push(zn[Qn][Dn]);else Hn.push(Gn[Qn]);return this.segments=Hn,this},SvgPath.prototype.abs=function(){return this.iterate((function(Tn,Un,Qn,Dn){var Hn,Gn=Tn[0],zn=Gn.toUpperCase();if(Gn!==zn)switch(Tn[0]=zn,Gn){case"v":return void(Tn[1]+=Dn);case"a":return Tn[6]+=Qn,void(Tn[7]+=Dn);default:for(Hn=1;Hn<Tn.length;Hn++)Tn[Hn]+=Hn%2?Qn:Dn}}),!0),this},SvgPath.prototype.rel=function(){return this.iterate((function(Tn,Un,Qn,Dn){var Hn,Gn=Tn[0],zn=Gn.toLowerCase();if(Gn!==zn&&(0!==Un||"M"!==Gn))switch(Tn[0]=zn,Gn){case"V":return void(Tn[1]-=Dn);case"A":return Tn[6]-=Qn,void(Tn[7]-=Dn);default:for(Hn=1;Hn<Tn.length;Hn++)Tn[Hn]-=Hn%2?Qn:Dn}}),!0),this},SvgPath.prototype.unarc=function(){return this.iterate((function(Tn,Un,Qn,Dn){var Hn,Gn,zn,Vn=[],Kn=Tn[0];return"A"!==Kn&&"a"!==Kn?null:("a"===Kn?(Gn=Qn+Tn[6],zn=Dn+Tn[7]):(Gn=Tn[6],zn=Tn[7]),0===(Hn=Im(Qn,Dn,Gn,zn,Tn[4],Tn[5],Tn[1],Tn[2],Tn[3])).length?[["a"===Tn[0]?"l":"L",Tn[6],Tn[7]]]:(Hn.forEach((function(Tn){Vn.push(["C",Tn[2],Tn[3],Tn[4],Tn[5],Tn[6],Tn[7]])})),Vn))})),this},SvgPath.prototype.unshort=function(){var Tn,Un,Qn,Dn,Hn,Gn=this.segments;return this.iterate((function(zn,Vn,Kn,Wn){var Xn,Yn=zn[0],Jn=Yn.toUpperCase();Vn&&("T"===Jn?(Xn="t"===Yn,"Q"===(Qn=Gn[Vn-1])[0]?(Tn=Qn[1]-Kn,Un=Qn[2]-Wn):"q"===Qn[0]?(Tn=Qn[1]-Qn[3],Un=Qn[2]-Qn[4]):(Tn=0,Un=0),Dn=-Tn,Hn=-Un,Xn||(Dn+=Kn,Hn+=Wn),Gn[Vn]=[Xn?"q":"Q",Dn,Hn,zn[1],zn[2]]):"S"===Jn&&(Xn="s"===Yn,"C"===(Qn=Gn[Vn-1])[0]?(Tn=Qn[3]-Kn,Un=Qn[4]-Wn):"c"===Qn[0]?(Tn=Qn[3]-Qn[5],Un=Qn[4]-Qn[6]):(Tn=0,Un=0),Dn=-Tn,Hn=-Un,Xn||(Dn+=Kn,Hn+=Wn),Gn[Vn]=[Xn?"c":"C",Dn,Hn,zn[1],zn[2],zn[3],zn[4]]))})),this};var Qm=SvgPath,Om=function calculateSingle(Tn){var Un,Qn,Dn=Tn,Hn={a:0,b:0,c:0},Gn=[];return Un=function findMatch(Un,Qn){var zn,Vn,Kn,Wn,Xn,Yn;if(Un.test(Dn))for(Vn=0,Kn=(zn=Dn.match(Un)).length;Vn<Kn;Vn+=1)Hn[Qn]+=1,Wn=zn[Vn],Xn=Dn.indexOf(Wn),Yn=Wn.length,Gn.push({selector:Tn.substr(Xn,Yn),type:Qn,index:Xn,length:Yn}),Dn=Dn.replace(Wn,Array(Yn+1).join(" "))},(Qn=function replaceWithPlainText(Tn){var Un,Qn,Hn,Gn;if(Tn.test(Dn))for(Qn=0,Hn=(Un=Dn.match(Tn)).length;Qn<Hn;Qn+=1)Gn=Un[Qn],Dn=Dn.replace(Gn,Array(Gn.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),Qn(/\\[0-9A-Fa-f]{1,5}\s/g),Qn(/\\./g),function(){var Tn,Un,Qn,Hn,Gn=/{[^]*/gm;if(Gn.test(Dn))for(Un=0,Qn=(Tn=Dn.match(Gn)).length;Un<Qn;Un+=1)Hn=Tn[Un],Dn=Dn.replace(Hn,Array(Hn.length+1).join(" "))}(),Un(/(\[[^\]]+\])/g,"b"),Un(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),Un(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),Un(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),Un(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),Un(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),Dn=(Dn=(Dn=(Dn=(Dn=(Dn=Dn.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),Un(/([^\s\+>~\.\[:]+)/g,"c"),Gn.sort((function(Tn,Un){return Tn.index-Un.index})),{selector:Tn,specificity:"0,"+Hn.a.toString()+","+Hn.b.toString()+","+Hn.c.toString(),specificityArray:[0,Hn.a,Hn.b,Hn.c],parts:Gn}},Dm=function extendStatics(Tn,Un){return(Dm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tn,Un){Tn.__proto__=Un}||function(Tn,Un){for(var Qn in Un)Un.hasOwnProperty(Qn)&&(Tn[Qn]=Un[Qn])})(Tn,Un)};function __extends(Tn,Un){function __(){this.constructor=Tn}Dm(Tn,Un),Tn.prototype=null===Un?Object.create(Un):(__.prototype=Un.prototype,new __)}var jm=function __assign(){return(jm=Object.assign||function __assign(Tn){for(var Un,Qn=1,Dn=arguments.length;Qn<Dn;Qn++)for(var Hn in Un=arguments[Qn])Object.prototype.hasOwnProperty.call(Un,Hn)&&(Tn[Hn]=Un[Hn]);return Tn}).apply(this,arguments)};function __awaiter(Tn,Un,Qn,Dn){return new(Qn||(Qn=Promise))((function(Hn,Gn){function fulfilled(Tn){try{step(Dn.next(Tn))}catch(Tn){Gn(Tn)}}function rejected(Tn){try{step(Dn.throw(Tn))}catch(Tn){Gn(Tn)}}function step(Tn){Tn.done?Hn(Tn.value):function adopt(Tn){return Tn instanceof Qn?Tn:new Qn((function(Un){Un(Tn)}))}(Tn.value).then(fulfilled,rejected)}step((Dn=Dn.apply(Tn,Un||[])).next())}))}function __generator(Tn,Un){var Qn,Dn,Hn,Gn,zn={label:0,sent:function sent(){if(1&Hn[0])throw Hn[1];return Hn[1]},trys:[],ops:[]};return Gn={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(Gn[Symbol.iterator]=function(){return this}),Gn;function verb(Gn){return function(Vn){return function step(Gn){if(Qn)throw new TypeError("Generator is already executing.");for(;zn;)try{if(Qn=1,Dn&&(Hn=2&Gn[0]?Dn.return:Gn[0]?Dn.throw||((Hn=Dn.return)&&Hn.call(Dn),0):Dn.next)&&!(Hn=Hn.call(Dn,Gn[1])).done)return Hn;switch(Dn=0,Hn&&(Gn=[2&Gn[0],Hn.value]),Gn[0]){case 0:case 1:Hn=Gn;break;case 4:return zn.label++,{value:Gn[1],done:!1};case 5:zn.label++,Dn=Gn[1],Gn=[0];continue;case 7:Gn=zn.ops.pop(),zn.trys.pop();continue;default:if(!(Hn=zn.trys,(Hn=Hn.length>0&&Hn[Hn.length-1])||6!==Gn[0]&&2!==Gn[0])){zn=0;continue}if(3===Gn[0]&&(!Hn||Gn[1]>Hn[0]&&Gn[1]<Hn[3])){zn.label=Gn[1];break}if(6===Gn[0]&&zn.label<Hn[1]){zn.label=Hn[1],Hn=Gn;break}if(Hn&&zn.label<Hn[2]){zn.label=Hn[2],zn.ops.push(Gn);break}Hn[2]&&zn.ops.pop(),zn.trys.pop();continue}Gn=Un.call(Tn,zn)}catch(Tn){Gn=[6,Tn],Dn=0}finally{Qn=Hn=0}if(5&Gn[0])throw Gn[1];return{value:Gn[0]?Gn[1]:void 0,done:!0}}([Gn,Vn])}}}var Hm=function(){function RGBColor(Tn){if(this.a=void 0,this.r=0,this.g=0,this.b=0,this.simpleColors={},this.colorDefs=[],this.ok=!1,Tn){for(var Un in"#"==Tn.charAt(0)&&(Tn=Tn.substr(1,6)),Tn=(Tn=Tn.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)Tn==Un&&(Tn=this.simpleColors[Un]);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 process(Tn){return[parseInt(Tn[1]),parseInt(Tn[2]),parseInt(Tn[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(Tn){return[parseInt(Tn[1],16),parseInt(Tn[2],16),parseInt(Tn[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(Tn){return[parseInt(Tn[1]+Tn[1],16),parseInt(Tn[2]+Tn[2],16),parseInt(Tn[3]+Tn[3],16)]}}];for(var Qn=0;Qn<this.colorDefs.length;Qn++){var Dn=this.colorDefs[Qn].re,Hn=this.colorDefs[Qn].process,Gn=Dn.exec(Tn);if(Gn){var zn=Hn(Gn);this.r=zn[0],this.g=zn[1],this.b=zn[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.toHex=function(){var Tn=this.r.toString(16),Un=this.g.toString(16),Qn=this.b.toString(16);return 1==Tn.length&&(Tn="0"+Tn),1==Un.length&&(Un="0"+Un),1==Qn.length&&(Qn="0"+Qn),"#"+Tn+Un+Qn},RGBColor.prototype.getHelpXML=function(){for(var Tn=[],Un=0;Un<this.colorDefs.length;Un++)for(var Qn=this.colorDefs[Un].example,Dn=0;Dn<Qn.length;Dn++)Tn[Tn.length]=Qn[Dn];for(var Hn in this.simpleColors)Tn[Tn.length]=Hn;var Gn=document.createElement("ul");Gn.setAttribute("id","rgbcolor-examples");for(Un=0;Un<Tn.length;Un++)try{var zn=document.createElement("li"),Vn=new RGBColor(Tn[Un]),Kn=document.createElement("div");Kn.style.cssText="margin: 3px; border: 1px solid black; background:"+Vn.toHex()+"; color:"+Vn.toHex(),Kn.appendChild(document.createTextNode("test"));var Wn=document.createTextNode(" "+Tn[Un]+" -> "+Vn.toRGB()+" -> "+Vn.toHex());zn.appendChild(Kn),zn.appendChild(Wn),Gn.appendChild(zn)}catch(Tn){}return Gn},RGBColor}(),Gm=function(){function ColorFill(Tn){this.color=Tn}return ColorFill.prototype.getFillData=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Tn){return[2,void 0]}))}))},ColorFill}(),zm=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=""}return AttributeState.prototype.clone=function(){var Tn=new AttributeState;return Tn.xmlSpace=this.xmlSpace,Tn.fill=this.fill,Tn.fillOpacity=this.fillOpacity,Tn.fontFamily=this.fontFamily,Tn.fontSize=this.fontSize,Tn.fontStyle=this.fontStyle,Tn.fontWeight=this.fontWeight,Tn.opacity=this.opacity,Tn.stroke=this.stroke,Tn.strokeDasharray=this.strokeDasharray,Tn.strokeDashoffset=this.strokeDashoffset,Tn.strokeLinecap=this.strokeLinecap,Tn.strokeLinejoin=this.strokeLinejoin,Tn.strokeMiterlimit=this.strokeMiterlimit,Tn.strokeOpacity=this.strokeOpacity,Tn.strokeWidth=this.strokeWidth,Tn.textAnchor=this.textAnchor,Tn.alignmentBaseline=this.alignmentBaseline,Tn.visibility=this.visibility,Tn},AttributeState.default=function(){var Tn=new AttributeState;return Tn.xmlSpace="default",Tn.fill=new Gm(new Hm("rgb(0, 0, 0)")),Tn.fillOpacity=1,Tn.fontFamily="times",Tn.fontSize=16,Tn.fontStyle="normal",Tn.fontWeight="normal",Tn.opacity=1,Tn.stroke=null,Tn.strokeDasharray=null,Tn.strokeDashoffset=0,Tn.strokeLinecap="butt",Tn.strokeLinejoin="miter",Tn.strokeMiterlimit=4,Tn.strokeOpacity=1,Tn.strokeWidth=1,Tn.alignmentBaseline="baseline",Tn.textAnchor="start",Tn.visibility="visible",Tn},AttributeState}(),Vm=/url\(["']?#([^"']+)["']?\)/,Km={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"},qm=function(){function TextMeasure(){this.measureMethods={}}return TextMeasure.prototype.getTextOffset=function(Tn,Un){var Qn=Un.textAnchor;if("start"===Qn)return 0;var Dn=this.measureTextWidth(Tn,Un),Hn=0;switch(Qn){case"end":Hn=Dn;break;case"middle":Hn=Dn/2}return Hn},TextMeasure.prototype.measureTextWidth=function(Tn,Un){if(0===Tn.length)return 0;var Qn=Un.fontFamily;return this.getMeasureFunction(Qn).call(this,Tn,Un.fontFamily,Un.fontSize+"px",Un.fontStyle,Un.fontWeight)},TextMeasure.prototype.getMeasurementTextNode=function(){if(!this.textMeasuringTextElement){this.textMeasuringTextElement=document.createElementNS("http://www.w3.org/2000/svg","text");var Tn=document.createElementNS("http://www.w3.org/2000/svg","svg");Tn.appendChild(this.textMeasuringTextElement),Tn.style.setProperty("position","absolute"),Tn.style.setProperty("visibility","hidden"),document.body.appendChild(Tn)}return this.textMeasuringTextElement},TextMeasure.prototype.canvasTextMeasure=function(Tn,Un,Qn,Dn,Hn){var Gn=document.createElement("canvas").getContext("2d");return null!=Gn?(Gn.font=[Dn,Hn,Qn,Un].join(" "),Gn.measureText(Tn).width):0},TextMeasure.prototype.svgTextMeasure=function(Tn,Un,Qn,Dn,Hn,Gn){void 0===Gn&&(Gn=this.getMeasurementTextNode());var zn=Gn;return zn.setAttribute("font-family",Un),zn.setAttribute("font-size",Qn),zn.setAttribute("font-style",Dn),zn.setAttribute("font-weight",Hn),zn.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),zn.textContent=Tn,zn.getBBox().width},TextMeasure.prototype.getMeasureFunction=function(Tn){var Un=this.measureMethods[Tn];if(!Un){var Qn="16px",Dn="normal",Hn="normal",Gn=this.canvasTextMeasure(TextMeasure.testString,Tn,Qn,Dn,Hn),zn=this.svgTextMeasure(TextMeasure.testString,Tn,Qn,Dn,Hn);Un=Math.abs(Gn-zn)<TextMeasure.epsilon?this.canvasTextMeasure:this.svgTextMeasure,this.measureMethods[Tn]=Un}return Un},TextMeasure.prototype.cleanupTextMeasuring=function(){if(this.textMeasuringTextElement){var Tn=this.textMeasuringTextElement.parentNode;Tn&&document.body.removeChild(Tn),this.textMeasuringTextElement=void 0}},TextMeasure.testString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789!\"$%&/()=?'\\+*-_.:,;^}][{#~|<>",TextMeasure.epsilon=.1,TextMeasure}(),Wm=function(){function Context(Tn,Un){var Qn,Dn,Hn,Gn,zn,Vn;this.pdf=Tn,this.svg2pdfParameters=Un.svg2pdfParameters,this.attributeState=Un.attributeState?Un.attributeState.clone():zm.default(),this.viewport=Un.viewport,this.refsHandler=null!==(Qn=Un.refsHandler)&&void 0!==Qn?Qn:null,this.styleSheets=null!==(Dn=Un.styleSheets)&&void 0!==Dn?Dn:null,this.textMeasure=null!==(Hn=Un.textMeasure)&&void 0!==Hn?Hn:new qm,this.transform=null!==(Gn=Un.transform)&&void 0!==Gn?Gn:this.pdf.unitMatrix,this.withinClipPath=null!==(zn=Un.withinClipPath)&&void 0!==zn&&zn,this.withinUse=null!==(Vn=Un.withinUse)&&void 0!==Vn&&Vn}return Context.prototype.clone=function(Tn){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn;return void 0===Tn&&(Tn={}),new Context(this.pdf,{svg2pdfParameters:null!==(Un=Tn.svg2pdfParameters)&&void 0!==Un?Un:this.svg2pdfParameters,attributeState:Tn.attributeState?Tn.attributeState.clone():this.attributeState.clone(),viewport:null!==(Qn=Tn.viewport)&&void 0!==Qn?Qn:this.viewport,refsHandler:null!==(Dn=Tn.refsHandler)&&void 0!==Dn?Dn:this.refsHandler,styleSheets:null!==(Hn=Tn.styleSheets)&&void 0!==Hn?Hn:this.styleSheets,textMeasure:null!==(Gn=Tn.textMeasure)&&void 0!==Gn?Gn:this.textMeasure,transform:null!==(zn=Tn.transform)&&void 0!==zn?zn:this.transform,withinClipPath:null!==(Vn=Tn.withinClipPath)&&void 0!==Vn?Vn:this.withinClipPath,withinUse:null!==(Kn=Tn.withinUse)&&void 0!==Kn?Kn:this.withinUse})},Context}(),Xm=function(){function ReferencesHandler(Tn){this.renderedElements={},this.idMap=Tn}return ReferencesHandler.prototype.getRendered=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){var Qn;return __generator(this,(function(Dn){switch(Dn.label){case 0:return this.renderedElements.hasOwnProperty(Tn)?[2,this.renderedElements[Tn]]:(Qn=this.get(Tn),this.renderedElements[Tn]=Qn,[4,Un(Qn)]);case 1:return Dn.sent(),[2,Qn]}}))}))},ReferencesHandler.prototype.get=function(Tn){return this.idMap[km(Tn,{isIdentifier:!0})]},ReferencesHandler}();function getAngle(Tn,Un){return Math.atan2(Un[1]-Tn[1],Un[0]-Tn[0])}var Ym=2/3;function toCubic(Tn,Un){return[Ym*(Un[0]-Tn[0])+Tn[0],Ym*(Un[1]-Tn[1])+Tn[1]]}function normalize$1(Tn){var Un=Math.sqrt(Tn[0]*Tn[0]+Tn[1]*Tn[1]);return[Tn[0]/Un,Tn[1]/Un]}function getDirectionVector(Tn,Un){return normalize$1([Un[0]-Tn[0],Un[1]-Tn[1]])}function addVectors(Tn,Un){return[Tn[0]+Un[0],Tn[1]+Un[1]]}function multVecMatrix(Tn,Un){var Qn=Tn[0],Dn=Tn[1];return[Un.a*Qn+Un.c*Dn+Un.e,Un.b*Qn+Un.d*Dn+Un.f]}var Jm=function(){function Path(){this.segments=[]}return Path.prototype.moveTo=function(Tn,Un){return this.segments.push(new $m(Tn,Un)),this},Path.prototype.lineTo=function(Tn,Un){return this.segments.push(new Zm(Tn,Un)),this},Path.prototype.curveTo=function(Tn,Un,Qn,Dn,Hn,Gn){return this.segments.push(new e_(Tn,Un,Qn,Dn,Hn,Gn)),this},Path.prototype.close=function(){return this.segments.push(new t_),this},Path.prototype.transform=function(Tn){this.segments.forEach((function(Un){if(Un instanceof $m||Un instanceof Zm||Un instanceof e_){var Qn=multVecMatrix([Un.x,Un.y],Tn);Un.x=Qn[0],Un.y=Qn[1]}if(Un instanceof e_){var Dn=multVecMatrix([Un.x1,Un.y1],Tn),Hn=multVecMatrix([Un.x2,Un.y2],Tn);Un.x1=Dn[0],Un.y1=Dn[1],Un.x2=Hn[0],Un.y2=Hn[1]}}))},Path.prototype.draw=function(Tn){var Un=Tn.pdf;this.segments.forEach((function(Tn){Tn instanceof $m?Un.moveTo(Tn.x,Tn.y):Tn instanceof Zm?Un.lineTo(Tn.x,Tn.y):Tn instanceof e_?Un.curveTo(Tn.x1,Tn.y1,Tn.x2,Tn.y2,Tn.x,Tn.y):Un.close()}))},Path}(),$m=function $m(Tn,Un){this.x=Tn,this.y=Un},Zm=function Zm(Tn,Un){this.x=Tn,this.y=Un},e_=function e_(Tn,Un,Qn,Dn,Hn,Gn){this.x1=Tn,this.y1=Un,this.x2=Qn,this.y2=Dn,this.x=Hn,this.y=Gn},t_=function t_(){};function nodeIs(Tn,Un){return Un.split(",").indexOf((Tn.nodeName||Tn.tagName).toLowerCase())>=0}function getAttribute(Tn,Un,Qn,Dn){void 0===Dn&&(Dn=Qn);var Hn=Tn.style.getPropertyValue(Dn);return Hn||(Un.getPropertyValue(Tn,Dn)?Un.getPropertyValue(Tn,Dn):Tn.hasAttribute(Qn)&&Tn.getAttribute(Qn)||void 0)}function svgNodeIsVisible(Tn,Un,Qn){if("none"===getAttribute(Tn.element,Qn.styleSheets,"display"))return!1;var Dn=Un,Hn=getAttribute(Tn.element,Qn.styleSheets,"visibility");return Hn&&(Dn="hidden"!==Hn),Dn}function svgNodeAndChildrenVisible(Tn,Un,Qn){var Dn=svgNodeIsVisible(Tn,Un,Qn);return 0!==Tn.element.childNodes.length&&(Tn.children.forEach((function(Tn){Tn.isVisible(Dn,Qn)&&(Dn=!0)})),Dn)}var n_=function(){function MarkerList(){this.markers=[]}return MarkerList.prototype.addMarker=function(Tn){this.markers.push(Tn)},MarkerList.prototype.draw=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn,zn,Vn;return __generator(this,(function(Kn){switch(Kn.label){case 0:Un=0,Kn.label=1;case 1:return Un<this.markers.length?(Qn=this.markers[Un],Dn=void 0,Hn=Qn.angle,Gn=Qn.anchor,zn=Math.cos(Hn),Vn=Math.sin(Hn),Dn=Tn.pdf.Matrix(zn,Vn,-Vn,zn,Gn[0],Gn[1]),Dn=Tn.pdf.matrixMult(Tn.pdf.Matrix(Tn.attributeState.strokeWidth,0,0,Tn.attributeState.strokeWidth,0,0),Dn),Dn=Tn.pdf.matrixMult(Dn,Tn.transform),Tn.pdf.saveGraphicsState(),Tn.pdf.setLineWidth(1),[4,Tn.refsHandler.getRendered(Qn.id,(function(Un){return Un.apply(Tn)}))]):[3,4];case 2:Kn.sent(),Tn.pdf.doFormObject(Qn.id,Dn),Tn.pdf.restoreGraphicsState(),Kn.label=3;case 3:return Un++,[3,1];case 4:return[2]}}))}))},MarkerList}(),r_=function r_(Tn,Un,Qn){this.id=Tn,this.anchor=Un,this.angle=Qn};function toPixels(Tn,Un){var Qn;return(Qn=Tn&&Tn.toString().match(/^([\-0-9.]+)em$/))?parseFloat(Qn[1])*Un:(Qn=Tn&&Tn.toString().match(/^([\-0-9.]+)(px|)$/))?parseFloat(Qn[1]):0}function mapAlignmentBaseline(Tn){return Km[Tn]||"alphabetic"}function parseFloats(Tn){for(var Un,Qn=[],Dn=/[+-]?(?:(?:\d+\.?\d*)|(?:\d*\.?\d+))(?:[eE][+-]?\d+)?/g;Un=Dn.exec(Tn);)Qn.push(parseFloat(Un[0]));return Qn}function parseColor(Tn){if("transparent"===Tn){var Un=new Hm("rgb(0,0,0)");return Un.a=0,Un}var Qn=/\s*rgba\(((?:[^,\)]*,){3}[^,\)]*)\)\s*/.exec(Tn);if(Qn){var Dn=parseFloats(Qn[1]),Hn=new Hm("rgb("+Dn.slice(0,3).join(",")+")");return Hn.a=Dn[3],Hn}return new Hm(Tn)}var i_={"sans-serif":"helvetica",verdana:"helvetica",arial:"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",serif:"times",cursive:"times",fantasy:"times"};function getBoundingBoxByChildren(Tn,Un){if("none"===getAttribute(Un.element,Tn.styleSheets,"display"))return[0,0,0,0];var Qn=[0,0,0,0];return Un.children.forEach((function(Un){var Dn=Un.getBoundingBox(Tn);Qn=[Math.min(Qn[0],Dn[0]),Math.min(Qn[1],Dn[1]),Math.max(Qn[0]+Qn[2],Dn[0]+Dn[2])-Math.min(Qn[0],Dn[0]),Math.max(Qn[1]+Qn[3],Dn[1]+Dn[3])-Math.min(Qn[1],Dn[1])]})),Qn}function defaultBoundingBox(Tn,Un){var Qn=parseFloat,Dn=Qn(Tn.getAttribute("x1"))||Qn(getAttribute(Tn,Un.styleSheets,"x"))||Qn(getAttribute(Tn,Un.styleSheets,"cx"))-Qn(getAttribute(Tn,Un.styleSheets,"r"))||0,Hn=Qn(Tn.getAttribute("x2"))||Dn+Qn(getAttribute(Tn,Un.styleSheets,"width"))||Qn(getAttribute(Tn,Un.styleSheets,"cx"))+Qn(getAttribute(Tn,Un.styleSheets,"r"))||0,Gn=Qn(Tn.getAttribute("y1"))||Qn(getAttribute(Tn,Un.styleSheets,"y"))||Qn(getAttribute(Tn,Un.styleSheets,"cy"))-Qn(getAttribute(Tn,Un.styleSheets,"r"))||0,zn=Qn(Tn.getAttribute("y2"))||Gn+Qn(getAttribute(Tn,Un.styleSheets,"height"))||Qn(getAttribute(Tn,Un.styleSheets,"cy"))+Qn(getAttribute(Tn,Un.styleSheets,"r"))||0;return[Math.min(Dn,Hn),Math.min(Gn,zn),Math.max(Dn,Hn)-Math.min(Dn,Hn),Math.max(Gn,zn)-Math.min(Gn,zn)]}function computeViewBoxTransform(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){void 0===Vn&&(Vn=!1);var Kn,Wn,Xn=Un[0],Yn=Un[1],Jn=Un[2],$n=Un[3],Zn=Hn/Jn,er=Gn/$n,tr=Tn.getAttribute("preserveAspectRatio");if(tr){var nr=tr.split(" ");"defer"===nr[0]&&(nr=nr.slice(1)),Kn=nr[0],Wn=nr[1]||"meet"}else Kn="xMidYMid",Wn="meet";if("none"!==Kn&&("meet"===Wn?Zn=er=Math.min(Zn,er):"slice"===Wn&&(Zn=er=Math.max(Zn,er))),Vn)return zn.pdf.Matrix(Zn,0,0,er,0,0);var rr=Qn-Xn*Zn,ir=Dn-Yn*er;Kn.indexOf("xMid")>=0?rr+=(Hn-Jn*Zn)/2:Kn.indexOf("xMax")>=0&&(rr+=Hn-Jn*Zn),Kn.indexOf("YMid")>=0?ir+=(Gn-$n*er)/2:Kn.indexOf("YMax")>=0&&(ir+=Gn-$n*er);var ar=zn.pdf.Matrix(1,0,0,1,rr,ir),or=zn.pdf.Matrix(Zn,0,0,er,0,0);return zn.pdf.matrixMult(or,ar)}function parseTransform(Tn,Un){if(!Tn||"none"===Tn)return Un.pdf.unitMatrix;for(var Qn,Dn,Hn=/^[\s,]*matrix\(([^\)]+)\)\s*/,Gn=/^[\s,]*translate\(([^\)]+)\)\s*/,zn=/^[\s,]*rotate\(([^\)]+)\)\s*/,Vn=/^[\s,]*scale\(([^\)]+)\)\s*/,Kn=/^[\s,]*skewX\(([^\)]+)\)\s*/,Wn=/^[\s,]*skewY\(([^\)]+)\)\s*/,Xn=Un.pdf.unitMatrix;Tn.length>0&&Tn.length!==Dn;){Dn=Tn.length;var Yn=Hn.exec(Tn);if(Yn&&(Qn=parseFloats(Yn[1]),Xn=Un.pdf.matrixMult(Un.pdf.Matrix(Qn[0],Qn[1],Qn[2],Qn[3],Qn[4],Qn[5]),Xn),Tn=Tn.substr(Yn[0].length)),Yn=zn.exec(Tn)){Qn=parseFloats(Yn[1]);var Jn=Math.PI*Qn[0]/180;if(Xn=Un.pdf.matrixMult(Un.pdf.Matrix(Math.cos(Jn),Math.sin(Jn),-Math.sin(Jn),Math.cos(Jn),0,0),Xn),Qn[1]||Qn[2]){var $n=Un.pdf.Matrix(1,0,0,1,Qn[1],Qn[2]),Zn=Un.pdf.Matrix(1,0,0,1,-Qn[1],-Qn[2]);Xn=Un.pdf.matrixMult(Zn,Un.pdf.matrixMult(Xn,$n))}Tn=Tn.substr(Yn[0].length)}(Yn=Gn.exec(Tn))&&(Qn=parseFloats(Yn[1]),Xn=Un.pdf.matrixMult(Un.pdf.Matrix(1,0,0,1,Qn[0],Qn[1]||0),Xn),Tn=Tn.substr(Yn[0].length)),(Yn=Vn.exec(Tn))&&((Qn=parseFloats(Yn[1]))[1]||(Qn[1]=Qn[0]),Xn=Un.pdf.matrixMult(Un.pdf.Matrix(Qn[0],0,0,Qn[1],0,0),Xn),Tn=Tn.substr(Yn[0].length)),(Yn=Kn.exec(Tn))&&(Qn=parseFloat(Yn[1]),Qn*=Math.PI/180,Xn=Un.pdf.matrixMult(Un.pdf.Matrix(1,0,Math.tan(Qn),1,0,0),Xn),Tn=Tn.substr(Yn[0].length)),(Yn=Wn.exec(Tn))&&(Qn=parseFloat(Yn[1]),Qn*=Math.PI/180,Xn=Un.pdf.matrixMult(Un.pdf.Matrix(1,Math.tan(Qn),0,1,0,0),Xn),Tn=Tn.substr(Yn[0].length))}return Xn}var a_=function(){function SvgNode(Tn,Un){this.element=Tn,this.children=Un}return SvgNode.prototype.getBoundingBox=function(Tn){return"none"===getAttribute(this.element,Tn.styleSheets,"display")?[0,0,0,0]:this.getBoundingBoxCore(Tn)},SvgNode.prototype.computeNodeTransform=function(Tn){var Un=this.computeNodeTransformCore(Tn),Qn=getAttribute(this.element,Tn.styleSheets,"transform");return Qn?Tn.pdf.matrixMult(Un,parseTransform(Qn,Tn)):Un},SvgNode}(),o_=function(Tn){function NonRenderedNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(NonRenderedNode,Tn),NonRenderedNode.prototype.render=function(Tn){return Promise.resolve()},NonRenderedNode.prototype.getBoundingBoxCore=function(Tn){return[]},NonRenderedNode.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},NonRenderedNode}(a_),s_=function(Tn){function Gradient(Un,Qn,Dn){var Hn=Tn.call(this,Qn,Dn)||this;return Hn.pdfGradientType=Un,Hn}return __extends(Gradient,Tn),Gradient.prototype.apply=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn,zn;return __generator(this,(function(Vn){return(Un=this.element.getAttribute("id"))?(Qn=[],Dn=0,Hn=!1,this.children.forEach((function(Un){if("stop"===Un.element.tagName.toLowerCase()){var Gn=new Hm(getAttribute(Un.element,Tn.styleSheets,"stop-color"));Qn.push({offset:Gradient.parseGradientOffset(Un.element.getAttribute("offset")||"0"),color:[Gn.r,Gn.g,Gn.b]});var zn=getAttribute(Un.element,Tn.styleSheets,"stop-opacity");zn&&"1"!==zn&&(Dn+=parseFloat(zn),Hn=!0)}})),Hn&&(Gn=new l({opacity:Dn/Qn.length})),zn=new d(this.pdfGradientType,this.getCoordinates(),Qn,Gn),Tn.pdf.addShadingPattern(Un,zn),[2]):[2]}))}))},Gradient.prototype.getBoundingBoxCore=function(Tn){return defaultBoundingBox(this.element,Tn)},Gradient.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Gradient.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},Gradient.parseGradientOffset=function(Tn){var Un=parseFloat(Tn);return!isNaN(Un)&&Tn.indexOf("%")>=0?Un/100:Un},Gradient}(o_),l_=function(Tn){function LinearGradient(Un,Qn){return Tn.call(this,"axial",Un,Qn)||this}return __extends(LinearGradient,Tn),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}(s_),c_=function(Tn){function RadialGradient(Un,Qn){return Tn.call(this,"radial",Un,Qn)||this}return __extends(RadialGradient,Tn),RadialGradient.prototype.getCoordinates=function(){var Tn=this.element.getAttribute("cx"),Un=this.element.getAttribute("cy"),Qn=this.element.getAttribute("fx"),Dn=this.element.getAttribute("fy");return[parseFloat(Qn||Tn||"0.5"),parseFloat(Dn||Un||"0.5"),0,parseFloat(Tn||"0.5"),parseFloat(Un||"0.5"),parseFloat(this.element.getAttribute("r")||"0.5")]},RadialGradient}(s_),u_=function(){function GradientFill(Tn,Un){this.key=Tn,this.gradient=Un}return GradientFill.prototype.getFillData=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){var Qn,Dn,Hn;return __generator(this,(function(Gn){switch(Gn.label){case 0:return[4,Un.refsHandler.getRendered(this.key,(function(Tn){return Tn.apply(new Wm(Un.pdf,{refsHandler:Un.refsHandler,textMeasure:Un.textMeasure,styleSheets:Un.styleSheets,viewport:Un.viewport,svg2pdfParameters:Un.svg2pdfParameters}))}))];case 1:return Gn.sent(),this.gradient.element.hasAttribute("gradientUnits")&&"objectboundingbox"!==this.gradient.element.getAttribute("gradientUnits").toLowerCase()?Qn=Un.pdf.unitMatrix:(Dn=Tn.getBoundingBox(Un),Qn=Un.pdf.Matrix(Dn[2],0,0,Dn[3],Dn[0],Dn[1])),Hn=parseTransform(getAttribute(this.gradient.element,Un.styleSheets,"gradientTransform","transform"),Un),[2,{key:this.key,matrix:Un.pdf.matrixMult(Hn,Qn)}]}}))}))},GradientFill}(),d_=function(Tn){function Pattern(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(Pattern,Tn),Pattern.prototype.apply=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn;return __generator(this,(function(zn){switch(zn.label){case 0:if(!(Un=this.element.getAttribute("id")))return[2];Qn=this.getBoundingBox(Tn),Dn=new p([Qn[0],Qn[1],Qn[0]+Qn[2],Qn[1]+Qn[3]],Qn[2],Qn[3]),Tn.pdf.beginTilingPattern(Dn),Hn=0,Gn=this.children,zn.label=1;case 1:return Hn<Gn.length?[4,Gn[Hn].render(new Wm(Tn.pdf,{attributeState:Tn.attributeState,refsHandler:Tn.refsHandler,styleSheets:Tn.styleSheets,viewport:Tn.viewport,svg2pdfParameters:Tn.svg2pdfParameters}))]:[3,4];case 2:zn.sent(),zn.label=3;case 3:return Hn++,[3,1];case 4:return Tn.pdf.endTilingPattern(Un,Dn),[2]}}))}))},Pattern.prototype.getBoundingBoxCore=function(Tn){return defaultBoundingBox(this.element,Tn)},Pattern.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Pattern.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},Pattern}(o_),h_=function(){function PatternFill(Tn,Un){this.key=Tn,this.pattern=Un}return PatternFill.prototype.getFillData=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n;return __generator(this,(function(Zn){switch(Zn.label){case 0:return[4,Un.refsHandler.getRendered(this.key,(function(Tn){return Tn.apply(new Wm(Un.pdf,{refsHandler:Un.refsHandler,textMeasure:Un.textMeasure,styleSheets:Un.styleSheets,viewport:Un.viewport,svg2pdfParameters:Un.svg2pdfParameters}))}))];case 1:return Zn.sent(),Qn={key:this.key,boundingBox:void 0,xStep:0,yStep:0,matrix:void 0},Hn=Un.pdf.unitMatrix,this.pattern.element.hasAttribute("patternUnits")&&"objectboundingbox"!==this.pattern.element.getAttribute("patternUnits").toLowerCase()||(Dn=Tn.getBoundingBox(Un),Hn=Un.pdf.Matrix(1,0,0,1,Dn[0],Dn[1]),zn=this.pattern.getBoundingBox(Un),Vn=zn[0]*Dn[0]||0,Kn=zn[1]*Dn[1]||0,Wn=zn[2]*Dn[2]||0,Xn=zn[3]*Dn[3]||0,Qn.boundingBox=[Vn,Kn,Vn+Wn,Kn+Xn],Qn.xStep=Wn,Qn.yStep=Xn),Gn=Un.pdf.unitMatrix,this.pattern.element.hasAttribute("patternContentUnits")&&"objectboundingbox"===this.pattern.element.getAttribute("patternContentUnits").toLowerCase()&&(Dn||(Dn=Tn.getBoundingBox(Un)),Gn=Un.pdf.Matrix(Dn[2],0,0,Dn[3],0,0),zn=Qn.boundingBox||this.pattern.getBoundingBox(Un),Vn=zn[0]/Dn[0]||0,Kn=zn[1]/Dn[1]||0,Wn=zn[2]/Dn[2]||0,Xn=zn[3]/Dn[3]||0,Qn.boundingBox=[Vn,Kn,Vn+Wn,Kn+Xn],Qn.xStep=Wn,Qn.yStep=Xn),Yn=Un.pdf.unitMatrix,(Jn=getAttribute(this.pattern.element,Un.styleSheets,"patternTransform","transform"))&&(Yn=parseTransform(Jn,Un)),$n=Gn,$n=Un.pdf.matrixMult($n,Hn),$n=Un.pdf.matrixMult($n,Yn),$n=Un.pdf.matrixMult($n,Un.transform),Qn.matrix=$n,[2,Qn]}}))}))},PatternFill}();function parseAttributes(Tn,Un,Qn){var Dn=Qn||Un.element,Hn=getAttribute(Dn,Tn.styleSheets,"visibility");Hn&&(Tn.attributeState.visibility=Hn);var Gn=getAttribute(Dn,Tn.styleSheets,"fill");Gn&&(Tn.attributeState.fill=function parseFill(Tn,Un){var Qn=Vm.exec(Tn);if(Qn){var Dn=Qn[1],Hn=Un.refsHandler.get(Dn);return Hn&&(Hn instanceof l_||Hn instanceof c_)?new u_(Dn,Hn):Hn&&Hn instanceof d_?new h_(Dn,Hn):new Gm(new Hm("rgb(0, 0, 0)"))}var Gn=parseColor(Tn);return Gn.ok?new Gm(Gn):null}(Gn,Tn));var zn=getAttribute(Dn,Tn.styleSheets,"fill-opacity");zn&&(Tn.attributeState.fillOpacity=parseFloat(zn));var Vn=getAttribute(Dn,Tn.styleSheets,"stroke-opacity");Vn&&(Tn.attributeState.strokeOpacity=parseFloat(Vn));var Kn=getAttribute(Dn,Tn.styleSheets,"opacity");Kn&&(Tn.attributeState.opacity=parseFloat(Kn));var Wn=getAttribute(Dn,Tn.styleSheets,"stroke-width");void 0!==Wn&&""!==Wn&&(Wn=Math.abs(parseFloat(Wn)),Tn.attributeState.strokeWidth=Wn);var Xn=getAttribute(Dn,Tn.styleSheets,"stroke");if(Xn)if("none"===Xn)Tn.attributeState.stroke=null;else{var Yn=parseColor(Xn);Yn.ok&&(Tn.attributeState.stroke=new Gm(Yn))}var Jn=getAttribute(Dn,Tn.styleSheets,"stroke-linecap");Jn&&(Tn.attributeState.strokeLinecap=Jn);var $n=getAttribute(Dn,Tn.styleSheets,"stroke-linejoin");$n&&(Tn.attributeState.strokeLinejoin=$n);var Zn=getAttribute(Dn,Tn.styleSheets,"stroke-dasharray");if(Zn){Zn=parseFloats(Zn);var er=parseInt(getAttribute(Dn,Tn.styleSheets,"stroke-dashoffset")||"0");Tn.attributeState.strokeDasharray=Zn,Tn.attributeState.strokeDashoffset=er}var tr=getAttribute(Dn,Tn.styleSheets,"stroke-miterlimit");void 0!==tr&&""!==tr&&(Tn.attributeState.strokeMiterlimit=parseFloat(tr));var nr=Dn.getAttribute("xml:space");nr&&(Tn.attributeState.xmlSpace=nr);var rr=getAttribute(Dn,Tn.styleSheets,"font-weight");rr&&(Tn.attributeState.fontWeight=rr);var ir=getAttribute(Dn,Tn.styleSheets,"font-style");ir&&(Tn.attributeState.fontStyle=ir);var ar=getAttribute(Dn,Tn.styleSheets,"font-family");if(ar){var or=Bm(ar);Tn.attributeState.fontFamily=function findFirstAvailableFontFamily(Tn,Un,Qn){var Dn="";"bold"===Tn.fontWeight&&(Dn="bold"),"italic"===Tn.fontStyle&&(Dn+="italic"),""===Dn&&(Dn="normal");var Hn=Qn.pdf.getFontList(),Gn="";return Un.some((function(Tn){var Un=Hn[Tn];return Un&&Un.indexOf(Dn)>=0?(Gn=Tn,!0):(Tn=Tn.toLowerCase(),!!i_.hasOwnProperty(Tn)&&(Gn=Tn,!0))}))||(Gn="times"),Gn}(Tn.attributeState,or,Tn)}var sr=getAttribute(Dn,Tn.styleSheets,"font-size");if(sr){var lr=Tn.pdf.getFontSize();Tn.attributeState.fontSize=toPixels(sr,lr)}var cr=getAttribute(Dn,Tn.styleSheets,"vertical-align")||getAttribute(Dn,Tn.styleSheets,"alignment-baseline");if(cr){var ur=cr.match(/(baseline|text-bottom|alphabetic|ideographic|middle|central|mathematical|text-top|bottom|center|top|hanging)/);ur&&(Tn.attributeState.alignmentBaseline=ur[0])}var dr=getAttribute(Dn,Tn.styleSheets,"text-anchor");dr&&(Tn.attributeState.textAnchor=dr)}function applyAttributes(Tn,Un,Qn){var Dn=1,Hn=1;Dn*=Tn.attributeState.fillOpacity,Dn*=Tn.attributeState.opacity,Tn.attributeState.fill instanceof Gm&&void 0!==Tn.attributeState.fill.color.a&&(Dn*=Tn.attributeState.fill.color.a),Hn*=Tn.attributeState.strokeOpacity,Hn*=Tn.attributeState.opacity,Tn.attributeState.stroke instanceof Gm&&void 0!==Tn.attributeState.stroke.color.a&&(Hn*=Tn.attributeState.stroke.color.a);var Gn,zn,Vn=Dn<1,Kn=Hn<1;if(nodeIs(Qn,"use")?(Vn=!0,Kn=!0,Dn*=Tn.attributeState.fill?1:0,Hn*=Tn.attributeState.stroke?1:0):Tn.withinUse&&(Tn.attributeState.fill!==Un.attributeState.fill?(Vn=!0,Dn*=Tn.attributeState.fill?1:0):Vn&&!Tn.attributeState.fill&&(Dn=0),Tn.attributeState.stroke!==Un.attributeState.stroke?(Kn=!0,Hn*=Tn.attributeState.stroke?1:0):Kn&&!Tn.attributeState.stroke&&(Hn=0)),Vn||Kn){var Wn={};Vn&&(Wn.opacity=Dn),Kn&&(Wn["stroke-opacity"]=Hn),Tn.pdf.setGState(new l(Wn))}if(Tn.attributeState.fill&&Tn.attributeState.fill!==Un.attributeState.fill&&Tn.attributeState.fill instanceof Gm&&Tn.attributeState.fill.color.ok&&!nodeIs(Qn,"text")&&Tn.pdf.setFillColor(Tn.attributeState.fill.color.r,Tn.attributeState.fill.color.g,Tn.attributeState.fill.color.b),Tn.attributeState.strokeWidth!==Un.attributeState.strokeWidth&&Tn.pdf.setLineWidth(Tn.attributeState.strokeWidth),Tn.attributeState.stroke!==Un.attributeState.stroke&&Tn.attributeState.stroke instanceof Gm&&Tn.pdf.setDrawColor(Tn.attributeState.stroke.color.r,Tn.attributeState.stroke.color.g,Tn.attributeState.stroke.color.b),Tn.attributeState.strokeLinecap!==Un.attributeState.strokeLinecap&&Tn.pdf.setLineCap(Tn.attributeState.strokeLinecap),Tn.attributeState.strokeLinejoin!==Un.attributeState.strokeLinejoin&&Tn.pdf.setLineJoin(Tn.attributeState.strokeLinejoin),Tn.attributeState.strokeDasharray===Un.attributeState.strokeDasharray&&Tn.attributeState.strokeDashoffset===Un.attributeState.strokeDashoffset||!Tn.attributeState.strokeDasharray||Tn.pdf.setLineDashPattern(Tn.attributeState.strokeDasharray,Tn.attributeState.strokeDashoffset),Tn.attributeState.strokeMiterlimit!==Un.attributeState.strokeMiterlimit&&Tn.pdf.setLineMiterLimit(Tn.attributeState.strokeMiterlimit),Tn.attributeState.fontFamily!==Un.attributeState.fontFamily&&(Gn=i_.hasOwnProperty(Tn.attributeState.fontFamily)?i_[Tn.attributeState.fontFamily]:Tn.attributeState.fontFamily),Tn.attributeState.fill&&Tn.attributeState.fill!==Un.attributeState.fill&&Tn.attributeState.fill instanceof Gm&&Tn.attributeState.fill.color.ok){var Xn=Tn.attributeState.fill.color;Tn.pdf.setTextColor(Xn.r,Xn.g,Xn.b)}Tn.attributeState.fontWeight===Un.attributeState.fontWeight&&Tn.attributeState.fontStyle===Un.attributeState.fontStyle||(zn="","bold"===Tn.attributeState.fontWeight&&(zn="bold"),"italic"===Tn.attributeState.fontStyle&&(zn+="italic"),""===zn&&(zn="normal")),void 0===Gn&&void 0===zn||(void 0===Gn&&(Gn=i_.hasOwnProperty(Tn.attributeState.fontFamily)?i_[Tn.attributeState.fontFamily]:Tn.attributeState.fontFamily),Tn.pdf.setFont(Gn,zn)),Tn.attributeState.fontSize!==Un.attributeState.fontSize&&Tn.pdf.setFontSize(Tn.attributeState.fontSize*Tn.pdf.internal.scaleFactor)}function getClipPathNode(Tn,Un){var Qn=getAttribute(Tn.element,Un.styleSheets,"clip-path");if(Qn){var Dn=Vm.exec(Qn);if(Dn){var Hn=Dn[1];return Un.refsHandler.get(Hn)||void 0}}}function applyClipPath(Tn,Un,Qn){return __awaiter(this,void 0,void 0,(function(){var Dn,Hn;return __generator(this,(function(Gn){switch(Gn.label){case 0:return Dn=Qn.clone(),Un.element.hasAttribute("clipPathUnits")&&"objectboundingbox"===Un.element.getAttribute("clipPathUnits").toLowerCase()&&(Hn=Tn.getBoundingBox(Qn),Dn.transform=Qn.pdf.matrixMult(Qn.pdf.Matrix(Hn[2],0,0,Hn[3],Hn[0],Hn[1]),Qn.transform)),[4,Un.apply(Dn)];case 1:return Gn.sent(),[2]}}))}))}var p_=function(Tn){function RenderedNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(RenderedNode,Tn),RenderedNode.prototype.render=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn;return __generator(this,(function(Hn){switch(Hn.label){case 0:return this.isVisible("hidden"!==Tn.attributeState.visibility,Tn)?((Un=Tn.clone()).transform=Un.pdf.matrixMult(this.computeNodeTransform(Un),Tn.transform),parseAttributes(Un,this),(Qn=this.element.hasAttribute("clip-path")&&"none"!==getAttribute(this.element,Un.styleSheets,"clip-path"))?(Dn=getClipPathNode(this,Un))&&Dn.isVisible(!0,Un)?(Un.pdf.saveGraphicsState(),[4,applyClipPath(this,Dn,Un)]):[3,2]:[3,3]):[2];case 1:return Hn.sent(),[3,3];case 2:return[2];case 3:return Un.withinClipPath||Un.pdf.saveGraphicsState(),applyAttributes(Un,Tn,this.element),[4,this.renderCore(Un)];case 4:return Hn.sent(),Un.withinClipPath||Un.pdf.restoreGraphicsState(),Qn&&Un.pdf.restoreGraphicsState(),[2]}}))}))},RenderedNode}(a_),A_=function(Tn){function GraphicsNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(GraphicsNode,Tn),GraphicsNode}(p_),f_=function(Tn){function GeometryNode(Un,Qn,Dn){var Hn=Tn.call(this,Qn,Dn)||this;return Hn.cachedPath=null,Hn.hasMarkers=Un,Hn}return __extends(GeometryNode,Tn),GeometryNode.prototype.renderCore=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un;return __generator(this,(function(Qn){switch(Qn.label){case 0:return null===(Un=this.getCachedPath(Tn))||0===Un.segments.length?[2]:(Tn.withinClipPath?Un.transform(Tn.transform):Tn.pdf.setCurrentTransformationMatrix(Tn.transform),Un.draw(Tn),[4,this.fillOrStroke(Tn)]);case 1:return Qn.sent(),this.hasMarkers?[4,this.drawMarkers(Tn,Un)]:[3,3];case 2:Qn.sent(),Qn.label=3;case 3:return[2]}}))}))},GeometryNode.prototype.getCachedPath=function(Tn){return this.cachedPath||(this.cachedPath=this.getPath(Tn))},GeometryNode.prototype.drawMarkers=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Qn){switch(Qn.label){case 0:return[4,this.getMarkers(Un,Tn).draw(Tn.clone({transform:Tn.pdf.unitMatrix}))];case 1:return Qn.sent(),[2]}}))}))},GeometryNode.prototype.fillOrStroke=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn;return __generator(this,(function(zn){switch(zn.label){case 0:return Tn.withinClipPath?[2]:(Un=Tn.attributeState.fill,Qn=Tn.attributeState.stroke&&0!==Tn.attributeState.strokeWidth,Un?[4,Un.getFillData(this,Tn)]:[3,2]);case 1:return Hn=zn.sent(),[3,3];case 2:Hn=void 0,zn.label=3;case 3:return Dn=Hn,Gn="evenodd"===getAttribute(this.element,Tn.styleSheets,"fill-rule"),Un&&Qn||Tn.withinUse?Gn?Tn.pdf.fillStrokeEvenOdd(Dn):Tn.pdf.fillStroke(Dn):Un?Gn?Tn.pdf.fillEvenOdd(Dn):Tn.pdf.fill(Dn):Qn?Tn.pdf.stroke():Tn.pdf.discardPath(),[2]}}))}))},GeometryNode.prototype.getBoundingBoxCore=function(Tn){var Un=this.getCachedPath(Tn);if(!Un)return[0,0,0,0];for(var Qn=Number.POSITIVE_INFINITY,Dn=Number.POSITIVE_INFINITY,Hn=Number.NEGATIVE_INFINITY,Gn=Number.NEGATIVE_INFINITY,zn=0,Vn=0,Kn=0;Kn<Un.segments.length;Kn++){var Wn=Un.segments[Kn];(Wn instanceof $m||Wn instanceof Zm||Wn instanceof e_)&&(zn=Wn.x,Vn=Wn.y),Wn instanceof e_?(Qn=Math.min(Qn,zn,Wn.x1,Wn.x2,Wn.x),Hn=Math.max(Hn,zn,Wn.x1,Wn.x2,Wn.x),Dn=Math.min(Dn,Vn,Wn.y1,Wn.y2,Wn.y),Gn=Math.max(Gn,Vn,Wn.y1,Wn.y2,Wn.y)):(Qn=Math.min(Qn,zn),Hn=Math.max(Hn,zn),Dn=Math.min(Dn,Vn),Gn=Math.max(Gn,Vn))}return[Qn,Dn,Hn-Qn,Gn-Dn]},GeometryNode.prototype.getMarkers=function(Tn,Un){var Qn=getAttribute(this.element,Un.styleSheets,"marker-start"),Dn=getAttribute(this.element,Un.styleSheets,"marker-mid"),Hn=getAttribute(this.element,Un.styleSheets,"marker-end"),Gn=new n_;if(Qn||Dn||Hn){Hn&&(Hn=iri(Hn)),Qn&&(Qn=iri(Qn)),Dn&&(Dn=iri(Dn));for(var zn=Tn.segments,Vn=[1,0],Kn=void 0,Wn=!1,Xn=[1,0],Yn=!1,Jn=function _loop_1(Tn){var Un=zn[Tn],Jn=Qn&&(1===Tn||!(zn[Tn]instanceof $m)&&zn[Tn-1]instanceof $m);Jn&&zn.forEach((function(Un,Qn){if(!Yn&&Un instanceof t_&&Qn>Tn){var Dn=zn[Qn-1];Yn=(Dn instanceof $m||Dn instanceof Zm||Dn instanceof e_)&&Dn}}));var $n=Hn&&(Tn===zn.length-1||!(zn[Tn]instanceof $m)&&zn[Tn+1]instanceof $m),Zn=Dn&&Tn>0&&!(1===Tn&&zn[Tn-1]instanceof $m),er=zn[Tn-1]||null;if(er instanceof $m||er instanceof Zm||er instanceof e_){if(Un instanceof e_)Jn&&Gn.addMarker(new r_(Qn,[er.x,er.y],getAngle(Yn?[Yn.x,Yn.y]:[er.x,er.y],[Un.x1,Un.y1]))),$n&&Gn.addMarker(new r_(Hn,[Un.x,Un.y],getAngle([Un.x2,Un.y2],[Un.x,Un.y]))),Zn&&(Kn=getDirectionVector([er.x,er.y],[Un.x1,Un.y1]),Kn=er instanceof $m?Kn:normalize$1(addVectors(Vn,Kn)),Gn.addMarker(new r_(Dn,[er.x,er.y],Math.atan2(Kn[1],Kn[0])))),Vn=getDirectionVector([Un.x2,Un.y2],[Un.x,Un.y]);else if(Un instanceof $m||Un instanceof Zm){if(Kn=getDirectionVector([er.x,er.y],[Un.x,Un.y]),Jn){var tr=Yn?getDirectionVector([Yn.x,Yn.y],[Un.x,Un.y]):Kn;Gn.addMarker(new r_(Qn,[er.x,er.y],Math.atan2(tr[1],tr[0])))}if($n&&Gn.addMarker(new r_(Hn,[Un.x,Un.y],Math.atan2(Kn[1],Kn[0]))),Zn){tr=Un instanceof $m?Vn:er instanceof $m?Kn:normalize$1(addVectors(Vn,Kn));Gn.addMarker(new r_(Dn,[er.x,er.y],Math.atan2(tr[1],tr[0])))}Vn=Kn}else if(Un instanceof t_){if(Kn=getDirectionVector([er.x,er.y],[Wn.x,Wn.y]),Zn){tr=er instanceof $m?Kn:normalize$1(addVectors(Vn,Kn));Gn.addMarker(new r_(Dn,[er.x,er.y],Math.atan2(tr[1],tr[0])))}if($n){tr=normalize$1(addVectors(Kn,Xn));Gn.addMarker(new r_(Hn,[Wn.x,Wn.y],Math.atan2(tr[1],tr[0])))}Vn=Kn}}else{Wn=Un instanceof $m&&Un;var nr=zn[Tn+1];(nr instanceof $m||nr instanceof Zm||nr instanceof e_)&&(Xn=getDirectionVector([Wn.x,Wn.y],[nr.x,nr.y]))}},$n=0;$n<zn.length;$n++)Jn($n)}return Gn},GeometryNode}(A_);function iri(Tn){var Un=Vm.exec(Tn);return Un&&Un[1]||void 0}var g_=function(Tn){function Line(Un,Qn){return Tn.call(this,!0,Un,Qn)||this}return __extends(Line,Tn),Line.prototype.getPath=function(Tn){if(Tn.withinClipPath||null===Tn.attributeState.stroke)return null;var Un=parseFloat(this.element.getAttribute("x1")||"0"),Qn=parseFloat(this.element.getAttribute("y1")||"0"),Dn=parseFloat(this.element.getAttribute("x2")||"0"),Hn=parseFloat(this.element.getAttribute("y2")||"0");return Un||Dn||Qn||Hn?(new Jm).moveTo(Un,Qn).lineTo(Dn,Hn):null},Line.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Line.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},Line.prototype.fillOrStroke=function(Un){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Qn){switch(Qn.label){case 0:return Un.attributeState.fill=null,[4,Tn.prototype.fillOrStroke.call(this,Un)];case 1:return Qn.sent(),[2]}}))}))},Line}(f_),m_=function(Tn){function _Symbol(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(_Symbol,Tn),_Symbol.prototype.apply=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn;return __generator(this,(function(Gn){switch(Gn.label){case 0:return this.isVisible("hidden"!==Tn.attributeState.visibility,Tn)?((Un=Tn.clone()).transform=Un.pdf.unitMatrix,parseAttributes(Un,this),this.element.hasAttribute("clip-path")&&"none"!==getAttribute(this.element,Un.styleSheets,"clip-path")?(Qn=getClipPathNode(this,Un))&&Qn.isVisible(!0,Un)?[4,applyClipPath(this,Qn,Un)]:[3,2]:[3,3]):[2];case 1:return Gn.sent(),[3,3];case 2:return[2];case 3:applyAttributes(Un,Tn,this.element),Dn=0,Hn=this.children,Gn.label=4;case 4:return Dn<Hn.length?[4,Hn[Dn].render(Un)]:[3,7];case 5:Gn.sent(),Gn.label=6;case 6:return Dn++,[3,4];case 7:return[2]}}))}))},_Symbol.prototype.getBoundingBoxCore=function(Tn){return getBoundingBoxByChildren(Tn,this)},_Symbol.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},_Symbol.prototype.computeNodeTransformCore=function(Tn){var Un=parseFloat(getAttribute(this.element,Tn.styleSheets,"x")||"0"),Qn=parseFloat(getAttribute(this.element,Tn.styleSheets,"y")||"0"),Dn=this.element.getAttribute("viewBox");if(Dn){var Hn=parseFloats(Dn),Gn=parseFloat(getAttribute(this.element,Tn.styleSheets,"width")||getAttribute(this.element.ownerSVGElement,Tn.styleSheets,"width")||Dn[2]),zn=parseFloat(getAttribute(this.element,Tn.styleSheets,"height")||getAttribute(this.element.ownerSVGElement,Tn.styleSheets,"height")||Dn[3]);return computeViewBoxTransform(this.element,Hn,Un,Qn,Gn,zn,Tn)}return Tn.pdf.Matrix(1,0,0,1,Un,Qn)},_Symbol}(o_),v_=function v_(Tn,Un){this.width=Tn,this.height=Un},y_=function(Tn){function Use(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(Use,Tn),Use.prototype.renderCore=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn;return __generator(this,(function($n){switch($n.label){case 0:return Un=parseFloat,(Qn=this.element.getAttribute("href")||this.element.getAttribute("xlink:href"))?(Dn=Qn.substring(1),Hn=Tn.refsHandler.get(Dn),Gn=nodeIs(Hn.element,"symbol,svg")&&Hn.element.hasAttribute("viewBox"),zn=Un(getAttribute(this.element,Tn.styleSheets,"x")||"0"),Vn=Un(getAttribute(this.element,Tn.styleSheets,"y")||"0"),Kn=void 0,Wn=void 0,Gn?(Kn=Un(getAttribute(this.element,Tn.styleSheets,"width")||getAttribute(Hn.element,Tn.styleSheets,"width")||"0"),Wn=Un(getAttribute(this.element,Tn.styleSheets,"height")||getAttribute(Hn.element,Tn.styleSheets,"height")||"0"),zn+=Un(getAttribute(Hn.element,Tn.styleSheets,"x")||"0"),Vn+=Un(getAttribute(Hn.element,Tn.styleSheets,"y")||"0"),Yn=parseFloats(Hn.element.getAttribute("viewBox")),Xn=computeViewBoxTransform(Hn.element,Yn,zn,Vn,Kn,Wn,Tn)):Xn=Tn.pdf.Matrix(1,0,0,1,zn,Vn),Jn=new Wm(Tn.pdf,{refsHandler:Tn.refsHandler,styleSheets:Tn.styleSheets,withinUse:!0,viewport:Gn?new v_(Kn,Wn):Tn.viewport,svg2pdfParameters:Tn.svg2pdfParameters}),[4,Tn.refsHandler.getRendered(Dn,(function(Tn){return Use.renderReferencedNode(Tn,Jn)}))]):[2];case 1:return $n.sent(),Tn.pdf.saveGraphicsState(),Tn.pdf.setCurrentTransformationMatrix(Tn.transform),Gn&&"visible"!==getAttribute(Hn.element,Tn.styleSheets,"overflow")&&(Tn.pdf.rect(zn,Vn,Kn,Wn),Tn.pdf.clip().discardPath()),Tn.pdf.doFormObject(Dn,Xn),Tn.pdf.restoreGraphicsState(),[2]}}))}))},Use.renderReferencedNode=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){var Qn;return __generator(this,(function(Dn){switch(Dn.label){case 0:return Qn=[(Qn=Tn.getBoundingBox(Un))[0]-.5*Qn[2],Qn[1]-.5*Qn[3],2*Qn[2],2*Qn[3]],Un.pdf.beginFormObject(Qn[0],Qn[1],Qn[2],Qn[3],Un.pdf.unitMatrix),Tn instanceof m_?[4,Tn.apply(Un)]:[3,2];case 1:return Dn.sent(),[3,4];case 2:return[4,Tn.render(Un)];case 3:Dn.sent(),Dn.label=4;case 4:return Un.pdf.endFormObject(Tn.element.getAttribute("id")),[2]}}))}))},Use.prototype.getBoundingBoxCore=function(Tn){return defaultBoundingBox(this.element,Tn)},Use.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},Use.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Use}(A_),w_=function(Tn){function Rect(Un,Qn){return Tn.call(this,!1,Un,Qn)||this}return __extends(Rect,Tn),Rect.prototype.getPath=function(Tn){var Un=parseFloat(getAttribute(this.element,Tn.styleSheets,"width")||"0"),Qn=parseFloat(getAttribute(this.element,Tn.styleSheets,"height")||"0");if(!isFinite(Un)||Un<=0||!isFinite(Qn)||Qn<=0)return null;var Dn=getAttribute(this.element,Tn.styleSheets,"rx"),Hn=getAttribute(this.element,Tn.styleSheets,"ry"),Gn=Math.min(parseFloat(Dn||Hn||"0"),.5*Un),zn=Math.min(parseFloat(Hn||Dn||"0"),.5*Qn),Vn=parseFloat(getAttribute(this.element,Tn.styleSheets,"x")||"0"),Kn=parseFloat(getAttribute(this.element,Tn.styleSheets,"y")||"0"),Wn=4/3*(Math.SQRT2-1);return 0===Gn&&0===zn?(new Jm).moveTo(Vn,Kn).lineTo(Vn+Un,Kn).lineTo(Vn+Un,Kn+Qn).lineTo(Vn,Kn+Qn).close():(new Jm).moveTo(Vn+=Gn,Kn).lineTo(Vn+=Un-2*Gn,Kn).curveTo(Vn+Gn*Wn,Kn,Vn+Gn,Kn+(zn-zn*Wn),Vn+=Gn,Kn+=zn).lineTo(Vn,Kn+=Qn-2*zn).curveTo(Vn,Kn+zn*Wn,Vn-Gn*Wn,Kn+zn,Vn-=Gn,Kn+=zn).lineTo(Vn+=2*Gn-Un,Kn).curveTo(Vn-Gn*Wn,Kn,Vn-Gn,Kn-zn*Wn,Vn-=Gn,Kn-=zn).lineTo(Vn,Kn+=2*zn-Qn).curveTo(Vn,Kn-zn*Wn,Vn+Gn*Wn,Kn-zn,Vn+=Gn,Kn-=zn).close()},Rect.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Rect.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},Rect}(f_),x_=function(Tn){function EllipseBase(Un,Qn){return Tn.call(this,!1,Un,Qn)||this}return __extends(EllipseBase,Tn),EllipseBase.prototype.getPath=function(Tn){var Un=this.getRx(Tn),Qn=this.getRy(Tn);if(!isFinite(Un)||Qn<=0||!isFinite(Qn)||Qn<=0)return null;var Dn=parseFloat(getAttribute(this.element,Tn.styleSheets,"cx")||"0"),Hn=parseFloat(getAttribute(this.element,Tn.styleSheets,"cy")||"0"),Gn=4/3*(Math.SQRT2-1)*Un,zn=4/3*(Math.SQRT2-1)*Qn;return(new Jm).moveTo(Dn+Un,Hn).curveTo(Dn+Un,Hn-zn,Dn+Gn,Hn-Qn,Dn,Hn-Qn).curveTo(Dn-Gn,Hn-Qn,Dn-Un,Hn-zn,Dn-Un,Hn).curveTo(Dn-Un,Hn+zn,Dn-Gn,Hn+Qn,Dn,Hn+Qn).curveTo(Dn+Gn,Hn+Qn,Dn+Un,Hn+zn,Dn+Un,Hn)},EllipseBase.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},EllipseBase.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},EllipseBase}(f_),k_=function(Tn){function Ellipse(Un,Qn){return Tn.call(this,Un,Qn)||this}return __extends(Ellipse,Tn),Ellipse.prototype.getRx=function(Tn){return parseFloat(getAttribute(this.element,Tn.styleSheets,"rx")||"0")},Ellipse.prototype.getRy=function(Tn){return parseFloat(getAttribute(this.element,Tn.styleSheets,"ry")||"0")},Ellipse}(x_);function getTextRenderingMode(Tn){var Un="invisible";return Tn.fill&&Tn.stroke?Un="fillThenStroke":Tn.fill?Un="fill":Tn.stroke&&(Un="stroke"),Un}function removeNewlines(Tn){return Tn.replace(/[\n\r]/g,"")}function replaceTabsBySpace(Tn){return Tn.replace(/[\t]/g," ")}function consolidateSpaces(Tn){return Tn.replace(/ +/g," ")}function transformText(Tn,Un,Qn){switch(getAttribute(Tn,Qn.styleSheets,"text-transform")){case"uppercase":return Un.toUpperCase();case"lowercase":return Un.toLowerCase();default:return Un}}function trimRight(Tn){return Tn.replace(/\s+$/,"")}var S_=function(){function TextChunk(Tn,Un,Qn,Dn){this.textNode=Tn,this.texts=[],this.textNodes=[],this.textAnchor=Un,this.originX=Qn,this.originY=Dn}return TextChunk.prototype.add=function(Tn,Un){this.texts.push(Un),this.textNodes.push(Tn)},TextChunk.prototype.put=function(Tn){var Un,Qn,Dn,Hn=[],Gn=[],zn=[],Vn=this.originX,Kn=this.originY,Wn=Vn,Xn=Vn;for(Un=0;Un<this.textNodes.length;Un++){var Yn=Vn,Jn=Kn,$n=void 0;if("#text"===(Qn=this.textNodes[Un]).nodeName)$n=Tn;else{parseAttributes($n=Tn.clone(),this.textNode,Qn);var Zn=getAttribute(Qn,Tn.styleSheets,"stroke");Zn&&(Dn=new Hm(Zn)).ok&&($n.attributeState.stroke=new Gm(Dn));var er=getAttribute(Qn,Tn.styleSheets,"stroke-width");void 0!==er&&($n.attributeState.strokeWidth=parseFloat(er));var tr=Qn.getAttribute("dx");null!==tr&&(Yn+=toPixels(tr,$n.attributeState.fontSize));var nr=Qn.getAttribute("dy");null!==nr&&(Jn+=toPixels(nr,$n.attributeState.fontSize))}zn[Un]=$n,Hn[Un]=Yn,Gn[Un]=Jn,Vn=Yn+Tn.textMeasure.measureTextWidth(this.texts[Un],$n.attributeState),Kn=Jn,Wn=Math.min(Wn,Yn),Xn=Math.max(Xn,Vn)}var rr=0;switch(this.textAnchor){case"start":rr=0;break;case"middle":rr=(Xn-Wn)/2;break;case"end":rr=Xn-Wn}for(Un=0;Un<this.textNodes.length;Un++){if("#text"!==(Qn=this.textNodes[Un]).nodeName)if("hidden"===(getAttribute(Qn,Tn.styleSheets,"visibility")||Tn.attributeState.visibility))continue;Tn.pdf.saveGraphicsState(),applyAttributes(zn[Un],Tn,Qn);var ir=zn[Un].attributeState.alignmentBaseline,ar=getTextRenderingMode(zn[Un].attributeState);Tn.pdf.text(this.texts[Un],Hn[Un]-rr,Gn[Un],{baseline:mapAlignmentBaseline(ir),angle:Tn.transform,renderingMode:"fill"===ar?void 0:ar}),Tn.pdf.restoreGraphicsState()}return[Vn,Kn]},TextChunk}(),C_=function(Tn){function TextNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(TextNode,Tn),TextNode.prototype.renderCore=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr,rr,ir,ar,or,sr,lr,cr,ur;return __generator(this,(function(dr){if(Tn.pdf.saveGraphicsState(),Un=0,Qn=Tn.pdf.getFontSize(),Dn=toPixels(this.element.getAttribute("x"),Qn),Hn=toPixels(this.element.getAttribute("y"),Qn),Gn=toPixels(this.element.getAttribute("dx"),Qn),zn=toPixels(this.element.getAttribute("dy"),Qn),Vn=Tn.attributeState.visibility,0===(Kn=this.element.childElementCount))cr=function transformXmlSpace(Tn,Un){return Tn=replaceTabsBySpace(Tn=removeNewlines(Tn)),"default"===Un.xmlSpace&&(Tn=consolidateSpaces(Tn=Tn.trim())),Tn}(this.element.textContent||"",Tn.attributeState),ur=transformText(this.element,cr,Tn),Un=Tn.textMeasure.getTextOffset(ur,Tn.attributeState),"visible"===Vn&&(Wn=Tn.attributeState.alignmentBaseline,Xn=getTextRenderingMode(Tn.attributeState),Tn.pdf.text(ur,Dn+Gn-Un,Hn+zn,{baseline:mapAlignmentBaseline(Wn),angle:Tn.transform,renderingMode:"fill"===Xn?void 0:Xn}));else{for(Yn=new S_(this,Tn.attributeState.textAnchor,Dn+Gn,Hn+zn),Jn=0;Jn<this.element.childNodes.length;Jn++)if(($n=this.element.childNodes[Jn]).textContent){if(Zn=Tn.attributeState.xmlSpace,er=$n.textContent,"#text"===$n.nodeName);else{if(nodeIs($n,"title"))continue;if(nodeIs($n,"tspan")){if((tr=$n).childElementCount>0)for(er="",nr=0;nr<tr.childNodes.length;nr++)"#text"===tr.childNodes[nr].nodeName&&(er+=tr.childNodes[nr].textContent);rr=void 0,null!==(ir=tr.getAttribute("x"))&&(ar=toPixels(ir,Qn),rr=Yn.put(Tn),Yn=new S_(this,getAttribute(tr,Tn.styleSheets,"text-anchor")||Tn.attributeState.textAnchor,ar,rr[1])),null!==(or=tr.getAttribute("y"))&&(sr=toPixels(or,Qn),rr=Yn.put(Tn),Yn=new S_(this,getAttribute(tr,Tn.styleSheets,"text-anchor")||Tn.attributeState.textAnchor,rr[0],sr)),(lr=tr.getAttribute("xml:space"))&&(Zn=lr)}}cr=replaceTabsBySpace(cr=removeNewlines(er)),"default"===Zn&&(0===Jn&&(cr=cr.replace(/^\s+/,"")),Jn===Kn-1&&(cr=trimRight(cr)),cr=consolidateSpaces(cr)),ur=transformText(this.element,cr,Tn),Yn.add($n,ur)}Yn.put(Tn)}return Tn.pdf.restoreGraphicsState(),[2]}))}))},TextNode.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},TextNode.prototype.getBoundingBoxCore=function(Tn){return defaultBoundingBox(this.element,Tn)},TextNode.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},TextNode}(A_),B_=function(Tn){function PathNode(Un,Qn){return Tn.call(this,!0,Un,Qn)||this}return __extends(PathNode,Tn),PathNode.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},PathNode.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},PathNode.prototype.getPath=function(Tn){var Un,Qn,Dn=new Qm(getAttribute(this.element,Tn.styleSheets,"d")||"").unshort().unarc().abs(),Hn=new Jm;return Dn.iterate((function(Tn,Dn){var Gn=Tn[0];switch(Gn){case"M":Hn.moveTo(Tn[1],Tn[2]);break;case"L":Hn.lineTo(Tn[1],Tn[2]);break;case"H":Hn.lineTo(Tn[1],Qn);break;case"V":Hn.lineTo(Un,Tn[1]);break;case"C":Hn.curveTo(Tn[1],Tn[2],Tn[3],Tn[4],Tn[5],Tn[6]);break;case"Q":var zn=toCubic([Un,Qn],[Tn[1],Tn[2]]),Vn=toCubic([Tn[3],Tn[4]],[Tn[1],Tn[2]]);Hn.curveTo(zn[0],zn[1],Vn[0],Vn[1],Tn[3],Tn[4]);break;case"Z":Hn.close()}switch(Gn){case"M":case"L":Un=Tn[1],Qn=Tn[2];break;case"H":Un=Tn[1];break;case"V":Qn=Tn[1];break;case"C":Un=Tn[5],Qn=Tn[6];break;case"Q":Un=Tn[3],Qn=Tn[4]}})),Hn},PathNode}(f_),E_=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*\s*)$/i,N_=function(Tn){function ImageNode(Un,Qn){var Dn=Tn.call(this,Un,Qn)||this;return Dn.imageLoadingPromise=null,Dn.imageUrl=Dn.element.getAttribute("xlink:href")||Dn.element.getAttribute("href"),Dn.imageUrl&&(Dn.imageLoadingPromise=ImageNode.fetchImageData(Dn.imageUrl)),Dn}return __extends(ImageNode,Tn),ImageNode.prototype.renderCore=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn;return __generator(this,(function($n){switch($n.label){case 0:return this.imageLoadingPromise?(Tn.pdf.setCurrentTransformationMatrix(Tn.transform),Un=parseFloat(getAttribute(this.element,Tn.styleSheets,"width")||"0"),Qn=parseFloat(getAttribute(this.element,Tn.styleSheets,"height")||"0"),Dn=parseFloat(getAttribute(this.element,Tn.styleSheets,"x")||"0"),Hn=parseFloat(getAttribute(this.element,Tn.styleSheets,"y")||"0"),!isFinite(Un)||Un<=0||!isFinite(Qn)||Qn<=0?[2]:[4,this.imageLoadingPromise]):[2];case 1:return Gn=$n.sent(),zn=Gn.data,0!==(Vn=Gn.format).indexOf("svg")?[3,3]:(Kn=new DOMParser,Wn=Kn.parseFromString(zn,"image/svg+xml").firstElementChild,(!(Xn=this.element.getAttribute("preserveAspectRatio"))||Xn.indexOf("defer")<0||!Wn.getAttribute("preserveAspectRatio"))&&Wn.setAttribute("preserveAspectRatio",Xn||""),Wn.setAttribute("x",String(Dn)),Wn.setAttribute("y",String(Hn)),Wn.setAttribute("width",String(Un)),Wn.setAttribute("height",String(Qn)),[4,parse$1(Wn,Yn={}).render(new Wm(Tn.pdf,{refsHandler:new Xm(Yn),styleSheets:Tn.styleSheets,viewport:new v_(Un,Qn),svg2pdfParameters:Tn.svg2pdfParameters}))]);case 2:return $n.sent(),[2];case 3:Jn="data:image/"+Vn+";base64,"+btoa(zn);try{Tn.pdf.addImage(Jn,"",Dn,Hn,Un,Qn)}catch(Tn){"object"===("undefined"==typeof console?"undefined":_typeof(console))&&console.warn&&console.warn("Could not load image "+this.imageUrl+".\n"+Tn)}$n.label=4;case 4:return[2]}}))}))},ImageNode.prototype.getBoundingBoxCore=function(Tn){return defaultBoundingBox(this.element,Tn)},ImageNode.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},ImageNode.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},ImageNode.fetchImageData=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn;return __generator(this,(function(zn){switch(zn.label){case 0:if(!(Dn=Tn.match(E_)))return[3,1];if(Hn=Dn[2],"image"!==(Gn=Hn.split("/"))[0])throw new Error("Unsupported image URL: "+Tn);return Qn=Gn[1],Un=Dn[5],Un="base64"===Dn[4]?atob(Un):decodeURIComponent(Un),[3,3];case 1:return[4,ImageNode.fetchImage(Tn)];case 2:Un=zn.sent(),Qn=Tn.substring(Tn.lastIndexOf(".")+1),zn.label=3;case 3:return[2,{data:Un,format:Qn}]}}))}))},ImageNode.fetchImage=function(Tn){return new Promise((function(Un,Qn){var Dn=new XMLHttpRequest;Dn.open("GET",Tn,!0),Dn.responseType="arraybuffer",Dn.onload=function(){if(200!==Dn.status)throw new Error("Error "+Dn.status+": Failed to load image '"+Tn+"'");for(var Qn=new Uint8Array(Dn.response),Hn="",Gn=0;Gn<Qn.length;Gn++)Hn+=String.fromCharCode(Qn[Gn]);Un(Hn)},Dn.onerror=Qn,Dn.onabort=Qn,Dn.send(null)}))},ImageNode.getMimeType=function(Tn){switch(Tn=Tn.toLowerCase()){case"jpg":case"jpeg":return"image/jpeg";default:return"image/"+Tn}},ImageNode}(A_),L_=function(Tn){function Traverse(Un,Qn,Dn){var Hn=Tn.call(this,!0,Qn,Dn)||this;return Hn.closed=Un,Hn}return __extends(Traverse,Tn),Traverse.prototype.getPath=function(Tn){if(!this.element.hasAttribute("points")||""===this.element.getAttribute("points"))return null;var Un=Traverse.parsePointsString(this.element.getAttribute("points")),Qn=new Jm;if(Un.length<1)return Qn;Qn.moveTo(Un[0][0],Un[0][1]);for(var Dn=1;Dn<Un.length;Dn++)Qn.lineTo(Un[Dn][0],Un[Dn][1]);return this.closed&&Qn.close(),Qn},Traverse.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},Traverse.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Traverse.parsePointsString=function(Tn){for(var Un=parseFloats(Tn),Qn=[],Dn=0;Dn<Un.length-1;Dn+=2){var Hn=Un[Dn],Gn=Un[Dn+1];Qn.push([Hn,Gn])}return Qn},Traverse}(f_),T_=function(Tn){function Polygon(Un,Qn){return Tn.call(this,!0,Un,Qn)||this}return __extends(Polygon,Tn),Polygon}(L_),P_=function(Tn){function VoidNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(VoidNode,Tn),VoidNode.prototype.render=function(Tn){return Promise.resolve()},VoidNode.prototype.getBoundingBoxCore=function(Tn){return[0,0,0,0]},VoidNode.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},VoidNode.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},VoidNode}(a_),F_=function(Tn){function MarkerNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(MarkerNode,Tn),MarkerNode.prototype.apply=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn;return __generator(this,(function(Gn){switch(Gn.label){case 0:Un=this.computeNodeTransform(Tn),Qn=this.getBoundingBox(Tn),Tn.pdf.beginFormObject(Qn[0],Qn[1],Qn[2],Qn[3],Un),Dn=0,Hn=this.children,Gn.label=1;case 1:return Dn<Hn.length?[4,Hn[Dn].render(new Wm(Tn.pdf,{refsHandler:Tn.refsHandler,styleSheets:Tn.styleSheets,viewport:Tn.viewport,svg2pdfParameters:Tn.svg2pdfParameters}))]:[3,4];case 2:Gn.sent(),Gn.label=3;case 3:return Dn++,[3,1];case 4:return Tn.pdf.endFormObject(this.element.getAttribute("id")),[2]}}))}))},MarkerNode.prototype.getBoundingBoxCore=function(Tn){var Un,Qn=this.element.getAttribute("viewBox");return Qn&&(Un=parseFloats(Qn)),[Un&&Un[0]||0,Un&&Un[1]||0,Un&&Un[2]||parseFloat(this.element.getAttribute("marker-width")||"0"),Un&&Un[3]||parseFloat(this.element.getAttribute("marker-height")||"0")]},MarkerNode.prototype.computeNodeTransformCore=function(Tn){var Un,Qn=parseFloat(this.element.getAttribute("refX")||"0"),Dn=parseFloat(this.element.getAttribute("refY")||"0"),Hn=this.element.getAttribute("viewBox");if(Hn){var Gn=parseFloats(Hn);Un=computeViewBoxTransform(this.element,Gn,0,0,parseFloat(this.element.getAttribute("markerWidth")||"3"),parseFloat(this.element.getAttribute("markerHeight")||"3"),Tn,!0),Un=Tn.pdf.matrixMult(Tn.pdf.Matrix(1,0,0,1,-Qn,-Dn),Un)}else Un=Tn.pdf.Matrix(1,0,0,1,-Qn,-Dn);return Un},MarkerNode.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},MarkerNode}(o_),U_=function(Tn){function Circle(Un,Qn){return Tn.call(this,Un,Qn)||this}return __extends(Circle,Tn),Circle.prototype.getR=function(Tn){var Un;return null!==(Un=this.r)&&void 0!==Un?Un:this.r=parseFloat(getAttribute(this.element,Tn.styleSheets,"r")||"0")},Circle.prototype.getRx=function(Tn){return this.getR(Tn)},Circle.prototype.getRy=function(Tn){return this.getR(Tn)},Circle}(x_),I_=function(Tn){function Polyline(Un,Qn){return Tn.call(this,!1,Un,Qn)||this}return __extends(Polyline,Tn),Polyline}(L_),R_=function(Tn){function ContainerNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(ContainerNode,Tn),ContainerNode.prototype.renderCore=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn;return __generator(this,(function(Dn){switch(Dn.label){case 0:Un=0,Qn=this.children,Dn.label=1;case 1:return Un<Qn.length?[4,Qn[Un].render(Tn)]:[3,4];case 2:Dn.sent(),Dn.label=3;case 3:return Un++,[3,1];case 4:return[2]}}))}))},ContainerNode.prototype.getBoundingBoxCore=function(Tn){return getBoundingBoxByChildren(Tn,this)},ContainerNode}(p_),M_=function(Tn){function Svg(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(Svg,Tn),Svg.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},Svg.prototype.render=function(Un){return __awaiter(this,void 0,void 0,(function(){var Qn,Dn,Hn,Gn,zn;return __generator(this,(function(Vn){switch(Vn.label){case 0:return this.isVisible("hidden"!==Un.attributeState.visibility,Un)?(Qn=this.getX(Un),Dn=this.getY(Un),Hn=this.getWidth(Un),Gn=this.getHeight(Un),Un.pdf.saveGraphicsState(),zn=Un.transform,this.element.hasAttribute("transform")&&(zn=Un.pdf.matrixMult(parseTransform(this.element.getAttribute("transform"),Un),zn)),Un.pdf.setCurrentTransformationMatrix(zn),Un.withinUse||"visible"===getAttribute(this.element,Un.styleSheets,"overflow")||Un.pdf.rect(Qn,Dn,Hn,Gn).clip().discardPath(),[4,Tn.prototype.render.call(this,Un.clone({transform:Un.pdf.unitMatrix,viewport:Un.withinUse?Un.viewport:new v_(Hn,Gn)}))]):[2];case 1:return Vn.sent(),Un.pdf.restoreGraphicsState(),[2]}}))}))},Svg.prototype.computeNodeTransform=function(Tn){return this.computeNodeTransformCore(Tn)},Svg.prototype.computeNodeTransformCore=function(Tn){if(Tn.withinUse)return Tn.pdf.unitMatrix;var Un,Qn=this.getX(Tn),Dn=this.getY(Tn),Hn=this.getViewBox();if(Hn){var Gn=this.getWidth(Tn),zn=this.getHeight(Tn);Un=computeViewBoxTransform(this.element,Hn,Qn,Dn,Gn,zn,Tn)}else Un=Tn.pdf.Matrix(1,0,0,1,Qn,Dn);return Un},Svg.prototype.getWidth=function(Tn){if(void 0!==this.width)return this.width;var Un,Qn,Dn=Tn.svg2pdfParameters;if(this.isOutermostSvg(Tn))if(null!=Dn.width)Un=Dn.width;else if(Qn=getAttribute(this.element,Tn.styleSheets,"width"))Un=parseFloat(Qn);else{var Hn=this.getViewBox();if(Hn&&(null!=Dn.height||getAttribute(this.element,Tn.styleSheets,"height"))){var Gn=Hn[2]/Hn[3];Un=this.getHeight(Tn)*Gn}else Un=Math.min(300,Tn.viewport.width,2*Tn.viewport.height)}else Un=(Qn=getAttribute(this.element,Tn.styleSheets,"width"))?parseFloat(Qn):Tn.viewport.width;return this.width=Un},Svg.prototype.getHeight=function(Tn){if(void 0!==this.height)return this.height;var Un,Qn,Dn=Tn.svg2pdfParameters;if(this.isOutermostSvg(Tn))if(null!=Dn.height)Un=Dn.height;else if(Qn=getAttribute(this.element,Tn.styleSheets,"height"))Un=parseFloat(Qn);else{var Hn=this.getViewBox();if(Hn){var Gn=Hn[2]/Hn[3];Un=this.getWidth(Tn)/Gn}else Un=Math.min(150,Tn.viewport.width/2,Tn.viewport.height)}else Un=(Qn=getAttribute(this.element,Tn.styleSheets,"height"))?parseFloat(Qn):Tn.viewport.height;return this.height=Un},Svg.prototype.getX=function(Tn){if(void 0!==this.x)return this.x;if(this.isOutermostSvg(Tn))return this.x=0;var Un=getAttribute(this.element,Tn.styleSheets,"x");return this.x=Un?parseFloat(Un):0},Svg.prototype.getY=function(Tn){if(void 0!==this.y)return this.y;if(this.isOutermostSvg(Tn))return this.y=0;var Un=getAttribute(this.element,Tn.styleSheets,"y");return this.y=Un?parseFloat(Un):0},Svg.prototype.getViewBox=function(){if(void 0!==this.viewBox)return this.viewBox;var Tn=this.element.getAttribute("viewBox");return this.viewBox=Tn?parseFloats(Tn):void 0},Svg.prototype.isOutermostSvg=function(Tn){return Tn.svg2pdfParameters.element===this.element},Svg}(R_),Q_=function(Tn){function Group(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(Group,Tn),Group.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},Group.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Group}(R_),O_=function(Tn){function ClipPath(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(ClipPath,Tn),ClipPath.prototype.apply=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn;return __generator(this,(function(Hn){switch(Hn.label){case 0:if(!this.isVisible(!0,Tn))return[2];Un=Tn.pdf.matrixMult(this.computeNodeTransform(Tn),Tn.transform),Tn.pdf.setCurrentTransformationMatrix(Un),Qn=0,Dn=this.children,Hn.label=1;case 1:return Qn<Dn.length?[4,Dn[Qn].render(new Wm(Tn.pdf,{refsHandler:Tn.refsHandler,styleSheets:Tn.styleSheets,viewport:Tn.viewport,withinClipPath:!0,svg2pdfParameters:Tn.svg2pdfParameters}))]:[3,4];case 2:Hn.sent(),Hn.label=3;case 3:return Qn++,[3,1];case 4:return Tn.pdf.clip().discardPath(),Tn.pdf.setCurrentTransformationMatrix(Un.inversed()),[2]}}))}))},ClipPath.prototype.getBoundingBoxCore=function(Tn){return getBoundingBoxByChildren(Tn,this)},ClipPath.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},ClipPath}(o_);function parse$1(Tn,Un){var Qn,Dn=[];switch(function forEachChild(Tn,Un){for(var Qn=[],Dn=0;Dn<Tn.childNodes.length;Dn++){var Hn=Tn.childNodes[Dn];"#"!==Hn.nodeName.charAt(0)&&Qn.push(Hn)}for(Dn=0;Dn<Qn.length;Dn++)Un(Dn,Qn[Dn])}(Tn,(function(Tn,Qn){return Dn.push(parse$1(Qn,Un))})),Tn.tagName.toLowerCase()){case"a":case"g":Qn=new Q_(Tn,Dn);break;case"circle":Qn=new U_(Tn,Dn);break;case"clippath":Qn=new O_(Tn,Dn);break;case"ellipse":Qn=new k_(Tn,Dn);break;case"lineargradient":Qn=new l_(Tn,Dn);break;case"image":Qn=new N_(Tn,Dn);break;case"line":Qn=new g_(Tn,Dn);break;case"marker":Qn=new F_(Tn,Dn);break;case"path":Qn=new B_(Tn,Dn);break;case"pattern":Qn=new d_(Tn,Dn);break;case"polygon":Qn=new T_(Tn,Dn);break;case"polyline":Qn=new I_(Tn,Dn);break;case"radialgradient":Qn=new c_(Tn,Dn);break;case"rect":Qn=new w_(Tn,Dn);break;case"svg":Qn=new M_(Tn,Dn);break;case"symbol":Qn=new m_(Tn,Dn);break;case"text":Qn=new C_(Tn,Dn);break;case"use":Qn=new y_(Tn,Dn);break;default:Qn=new P_(Tn,Dn)}if(null!=Un&&Qn.element.hasAttribute("id")){var Hn=km(Qn.element.id,{isIdentifier:!0});Un[Hn]=Un[Hn]||Qn}return Qn}var D_=function(){function StyleSheets(Tn,Un){this.rootSvg=Tn,this.loadExternalSheets=Un,this.styleSheets=[]}return StyleSheets.prototype.load=function(){return __awaiter(this,void 0,void 0,(function(){var Tn;return __generator(this,(function(Un){switch(Un.label){case 0:return[4,this.collectStyleSheetTexts()];case 1:return Tn=Un.sent(),this.parseCssSheets(Tn),[2]}}))}))},StyleSheets.prototype.collectStyleSheetTexts=function(){return __awaiter(this,void 0,void 0,(function(){var Tn,Un,Qn,Dn,Hn;return __generator(this,(function(Gn){switch(Gn.label){case 0:if(Tn=[],this.loadExternalSheets&&this.rootSvg.ownerDocument)for(Dn=0;Dn<this.rootSvg.ownerDocument.childNodes.length;Dn++)"xml-stylesheet"===(Un=this.rootSvg.ownerDocument.childNodes[Dn]).nodeName&&"string"==typeof Un.data&&Tn.push(StyleSheets.loadSheet(Un.data.match(/href=["'].*?["']/)[0].split("=")[1].slice(1,-1)));for(Qn=this.rootSvg.querySelectorAll("style,link"),Dn=0;Dn<Qn.length;Dn++)nodeIs(Hn=Qn[Dn],"style")?Tn.push(Hn.textContent):this.loadExternalSheets&&nodeIs(Hn,"link")&&"stylesheet"===Hn.getAttribute("rel")&&Hn.hasAttribute("href")&&Tn.push(StyleSheets.loadSheet(Hn.getAttribute("href")));return[4,Promise.all(Tn)];case 1:return[2,Gn.sent().filter((function(Tn){return null!==Tn}))]}}))}))},StyleSheets.prototype.parseCssSheets=function(Tn){for(var Un=document.implementation.createHTMLDocument(""),Qn=0,Dn=Tn;Qn<Dn.length;Qn++){var Hn=Dn[Qn],Gn=Un.createElement("style");Gn.textContent=Hn,Un.body.appendChild(Gn);var zn=Gn.sheet;if(zn instanceof CSSStyleSheet){for(var Vn=zn.cssRules.length-1;Vn>=0;Vn--){var Kn=zn.cssRules[Vn];Kn instanceof CSSStyleRule||zn.deleteRule(Vn);var Wn=Kn;if(Wn.selectorText.indexOf(",")>=0){zn.deleteRule(Vn);for(var Xn=Wn.cssText.substring(Wn.selectorText.length),Yn=StyleSheets.splitSelectorAtCommas(Wn.selectorText),Jn=0;Jn<Yn.length;Jn++)zn.insertRule(Yn[Jn]+Xn,Vn+Jn)}}this.styleSheets.push(zn)}}},StyleSheets.splitSelectorAtCommas=function(Tn){for(var Un,Qn=/,|["']/g,Dn=/[^\\]["]/g,Hn=/[^\\][']/g,Gn=[],zn="initial",Vn=-1,Kn=Dn,Wn=0;Wn<Tn.length;)switch(zn){case"initial":Qn.lastIndex=Wn,(Un=Qn.exec(Tn))?(","===Un[0]?(Gn.push(Tn.substring(Vn+1,Qn.lastIndex-1).trim()),Vn=Qn.lastIndex-1):(zn="withinQuotes",Kn='"'===Un[0]?Dn:Hn),Wn=Qn.lastIndex):(Gn.push(Tn.substring(Vn+1).trim()),Wn=Tn.length);break;case"withinQuotes":Kn.lastIndex=Wn,(Un=Kn.exec(Tn))&&(Wn=Kn.lastIndex,zn="initial")}return Gn},StyleSheets.loadSheet=function(Tn){return new Promise((function(Un,Qn){var Dn=new XMLHttpRequest;Dn.open("GET",Tn,!0),Dn.responseType="text",Dn.onload=function(){200!==Dn.status&&Qn(new Error("Error "+Dn.status+": Failed to load '"+Tn+"'")),Un(Dn.responseText)},Dn.onerror=Qn,Dn.onabort=Qn,Dn.send(null)})).catch((function(){return null}))},StyleSheets.prototype.getPropertyValue=function(Tn,Un){for(var Qn=[],Dn=0,Hn=this.styleSheets;Dn<Hn.length;Dn++)for(var Gn=Hn[Dn],zn=0;zn<Gn.cssRules.length;zn++){var Vn=Gn.cssRules[zn];Vn.style.getPropertyValue(Un)&&Tn.matches(Vn.selectorText)&&Qn.push(Vn)}if(0!==Qn.length){var Kn=function compare$1(Tn,Qn){var Dn=Tn.style.getPropertyPriority(Un);return Dn!==Qn.style.getPropertyPriority(Un)?"important"===Dn?1:-1:function compare(Tn,Un){var Qn,Dn,Hn;if("string"==typeof Tn){if(-1!==Tn.indexOf(","))throw"Invalid CSS selector";Qn=Om(Tn).specificityArray}else{if(!Array.isArray(Tn))throw"Invalid CSS selector or specificity array";if(4!==Tn.filter((function(Tn){return"number"==typeof Tn})).length)throw"Invalid specificity array";Qn=Tn}if("string"==typeof Un){if(-1!==Un.indexOf(","))throw"Invalid CSS selector";Dn=Om(Un).specificityArray}else{if(!Array.isArray(Un))throw"Invalid CSS selector or specificity array";if(4!==Un.filter((function(Tn){return"number"==typeof Tn})).length)throw"Invalid specificity array";Dn=Un}for(Hn=0;Hn<4;Hn+=1){if(Qn[Hn]<Dn[Hn])return-1;if(Qn[Hn]>Dn[Hn])return 1}return 0}(Tn.selectorText,Qn.selectorText)};return Qn.reduce((function(Tn,Un){return 1===Kn(Tn,Un)?Tn:Un})).style.getPropertyValue(Un)||void 0}},StyleSheets}();function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}g.API.svg=function(Tn,Un){return void 0===Un&&(Un={}),function svg2pdf(Tn,Un,Qn){var Dn,Hn,Gn;return void 0===Qn&&(Qn={}),__awaiter(this,void 0,void 0,(function(){var zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er;return __generator(this,(function(tr){switch(tr.label){case 0:return zn=null!==(Dn=Qn.x)&&void 0!==Dn?Dn:0,Vn=null!==(Hn=Qn.y)&&void 0!==Hn?Hn:0,Kn=null!==(Gn=Qn.loadExternalStyleSheets)&&void 0!==Gn&&Gn,Xn=new Xm(Wn={}),[4,(Yn=new D_(Tn,Kn)).load()];case 1:return tr.sent(),Jn=new v_(Un.internal.pageSize.getWidth(),Un.internal.pageSize.getHeight()),$n=jm(jm({},Qn),{element:Tn}),Zn=new Wm(Un,{refsHandler:Xn,styleSheets:Yn,viewport:Jn,svg2pdfParameters:$n}),Un.advancedAPI(),Un.saveGraphicsState(),Un.setCurrentTransformationMatrix(Un.Matrix(1,0,0,1,zn,Vn)),Un.setLineWidth(Zn.attributeState.strokeWidth),er=Zn.attributeState.fill.color,Un.setFillColor(er.r,er.g,er.b),Un.setFont(Zn.attributeState.fontFamily),Un.setFontSize(Zn.attributeState.fontSize*Un.internal.scaleFactor),[4,parse$1(Tn,Wn).render(Zn)];case 2:return tr.sent(),Un.restoreGraphicsState(),Un.compatAPI(),Zn.textMeasure.cleanupTextMeasuring(),[2,Un]}}))}))}(Tn,this,Un)};var j_=defaultSetTimout,H_=defaultClearTimeout;function runTimeout(Tn){if(j_===setTimeout)return setTimeout(Tn,0);if((j_===defaultSetTimout||!j_)&&setTimeout)return j_=setTimeout,setTimeout(Tn,0);try{return j_(Tn,0)}catch(Un){try{return j_.call(null,Tn,0)}catch(Un){return j_.call(this,Tn,0)}}}"function"==typeof Nf.setTimeout&&(j_=setTimeout),"function"==typeof Nf.clearTimeout&&(H_=clearTimeout);var G_,z_=[],V_=!1,K_=-1;function cleanUpNextTick(){V_&&G_&&(V_=!1,G_.length?z_=G_.concat(z_):K_=-1,z_.length&&drainQueue())}function drainQueue(){if(!V_){var Tn=runTimeout(cleanUpNextTick);V_=!0;for(var Un=z_.length;Un;){for(G_=z_,z_=[];++K_<Un;)G_&&G_[K_].run();K_=-1,Un=z_.length}G_=null,V_=!1,function runClearTimeout(Tn){if(H_===clearTimeout)return clearTimeout(Tn);if((H_===defaultClearTimeout||!H_)&&clearTimeout)return H_=clearTimeout,clearTimeout(Tn);try{return H_(Tn)}catch(Un){try{return H_.call(null,Tn)}catch(Un){return H_.call(this,Tn)}}}(Tn)}}function Item(Tn,Un){this.fun=Tn,this.array=Un}Item.prototype.run=function(){this.fun.apply(null,this.array)};function noop(){}var q_=noop,W_=noop,X_=noop,Y_=noop,J_=noop,$_=noop,Z_=noop;var ev=Nf.performance||{},tv=ev.now||ev.mozNow||ev.msNow||ev.oNow||ev.webkitNow||function(){return(new Date).getTime()};var nv=new Date;var rv={nextTick:function nextTick(Tn){var Un=new Array(arguments.length-1);if(arguments.length>1)for(var Qn=1;Qn<arguments.length;Qn++)Un[Qn-1]=arguments[Qn];z_.push(new Item(Tn,Un)),1!==z_.length||V_||runTimeout(drainQueue)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:q_,addListener:W_,once:X_,off:Y_,removeListener:J_,removeAllListeners:$_,emit:Z_,binding:function binding(Tn){throw new Error("process.binding is not supported")},cwd:function cwd(){return"/"},chdir:function chdir(Tn){throw new Error("process.chdir is not supported")},umask:function umask(){return 0},hrtime:function hrtime(Tn){var Un=.001*tv.call(ev),Qn=Math.floor(Un),Dn=Math.floor(Un%1*1e9);return Tn&&(Qn-=Tn[0],(Dn-=Tn[1])<0&&(Qn--,Dn+=1e9)),[Qn,Dn]},platform:"browser",release:{},config:{},uptime:function uptime(){return(new Date-nv)/1e3}},iv=!checkCorrectnessOfIteration((function(Tn){Array.from(Tn)}));_export({target:"Array",stat:!0,forced:iv},{from:hc}),_export({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var av=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),ov=createCommonjsModule((function(Tn){var Un=tr.f,Qn=uid("meta"),Dn=0,Hn=Object.isExtensible||function(){return!0},setMetadata=function(Tn){Un(Tn,Qn,{value:{objectID:"O"+ ++Dn,weakData:{}}})},Gn=Tn.exports={REQUIRED:!1,fastKey:function(Tn,Un){if(!isObject(Tn))return"symbol"==typeof Tn?Tn:("string"==typeof Tn?"S":"P")+Tn;if(!has(Tn,Qn)){if(!Hn(Tn))return"F";if(!Un)return"E";setMetadata(Tn)}return Tn[Qn].objectID},getWeakData:function(Tn,Un){if(!has(Tn,Qn)){if(!Hn(Tn))return!0;if(!Un)return!1;setMetadata(Tn)}return Tn[Qn].weakData},onFreeze:function(Tn){return av&&Gn.REQUIRED&&Hn(Tn)&&!has(Tn,Qn)&&setMetadata(Tn),Tn}};fr[Qn]=!0})),sv=tr.f,lv=ov.fastKey,uv=kr.set,dv=kr.getterFor,hv=(function(Tn,Qn,Dn){var Hn=-1!==Tn.indexOf("Map"),Gn=-1!==Tn.indexOf("Weak"),zn=Hn?"set":"add",Vn=Un[Tn],Kn=Vn&&Vn.prototype,Wn=Vn,Xn={},fixMethod=function(Tn){var Un=Kn[Tn];Sr(Kn,Tn,"add"==Tn?function add(Tn){return Un.call(this,0===Tn?0:Tn),this}:"delete"==Tn?function(Tn){return!(Gn&&!isObject(Tn))&&Un.call(this,0===Tn?0:Tn)}:"get"==Tn?function get(Tn){return Gn&&!isObject(Tn)?void 0:Un.call(this,0===Tn?0:Tn)}:"has"==Tn?function has(Tn){return!(Gn&&!isObject(Tn))&&Un.call(this,0===Tn?0:Tn)}:function set(Tn,Qn){return Un.call(this,0===Tn?0:Tn,Qn),this})};if(zr(Tn,"function"!=typeof Vn||!(Gn||Kn.forEach&&!fails((function(){(new Vn).entries().next()})))))Wn=Dn.getConstructor(Qn,Tn,Hn,zn),ov.REQUIRED=!0;else if(zr(Tn,!0)){var Yn=new Wn,Jn=Yn[zn](Gn?{}:-0,1)!=Yn,$n=fails((function(){Yn.has(1)})),Zn=checkCorrectnessOfIteration((function(Tn){new Vn(Tn)})),er=!Gn&&fails((function(){for(var Tn=new Vn,Un=5;Un--;)Tn[zn](Un,Un);return!Tn.has(-0)}));Zn||((Wn=Qn((function(Un,Qn){anInstance(Un,Wn,Tn);var Dn=inheritIfRequired(new Vn,Un,Wn);return null!=Qn&&Hs(Qn,Dn[zn],Dn,Hn),Dn}))).prototype=Kn,Kn.constructor=Wn),($n||er)&&(fixMethod("delete"),fixMethod("has"),Hn&&fixMethod("get")),(er||Jn)&&fixMethod(zn),Gn&&Kn.clear&&delete Kn.clear}Xn[Tn]=Wn,_export({global:!0,forced:Wn!=Vn},Xn),setToStringTag(Wn,Tn),Gn||Dn.setStrong(Wn,Tn,Hn)}("Map",(function(Tn){return function Map(){return Tn(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(Tn,Un,Dn,Hn){var Gn=Tn((function(Tn,zn){anInstance(Tn,Gn,Un),uv(Tn,{type:Un,index:wi(null),first:void 0,last:void 0,size:0}),Qn||(Tn.size=0),null!=zn&&Hs(zn,Tn[Hn],Tn,Dn)})),zn=dv(Un),define=function(Tn,Un,Dn){var Hn,Gn,Vn=zn(Tn),Kn=getEntry(Tn,Un);return Kn?Kn.value=Dn:(Vn.last=Kn={index:Gn=lv(Un,!0),key:Un,value:Dn,previous:Hn=Vn.last,next:void 0,removed:!1},Vn.first||(Vn.first=Kn),Hn&&(Hn.next=Kn),Qn?Vn.size++:Tn.size++,"F"!==Gn&&(Vn.index[Gn]=Kn)),Tn},getEntry=function(Tn,Un){var Qn,Dn=zn(Tn),Hn=lv(Un);if("F"!==Hn)return Dn.index[Hn];for(Qn=Dn.first;Qn;Qn=Qn.next)if(Qn.key==Un)return Qn};return redefineAll(Gn.prototype,{clear:function clear(){for(var Tn=zn(this),Un=Tn.index,Dn=Tn.first;Dn;)Dn.removed=!0,Dn.previous&&(Dn.previous=Dn.previous.next=void 0),delete Un[Dn.index],Dn=Dn.next;Tn.first=Tn.last=void 0,Qn?Tn.size=0:this.size=0},delete:function(Tn){var Un=this,Dn=zn(Un),Hn=getEntry(Un,Tn);if(Hn){var Gn=Hn.next,Vn=Hn.previous;delete Dn.index[Hn.index],Hn.removed=!0,Vn&&(Vn.next=Gn),Gn&&(Gn.previous=Vn),Dn.first==Hn&&(Dn.first=Gn),Dn.last==Hn&&(Dn.last=Vn),Qn?Dn.size--:Un.size--}return!!Hn},forEach:function forEach(Tn){for(var Un,Qn=zn(this),Dn=functionBindContext(Tn,arguments.length>1?arguments[1]:void 0,3);Un=Un?Un.next:Qn.first;)for(Dn(Un.value,Un.key,this);Un&&Un.removed;)Un=Un.previous},has:function has(Tn){return!!getEntry(this,Tn)}}),redefineAll(Gn.prototype,Dn?{get:function get(Tn){var Un=getEntry(this,Tn);return Un&&Un.value},set:function set(Tn,Un){return define(this,0===Tn?0:Tn,Un)}}:{add:function add(Tn){return define(this,Tn=0===Tn?0:Tn,Tn)}}),Qn&&sv(Gn.prototype,"size",{get:function(){return zn(this).size}}),Gn},setStrong:function(Tn,Un,Qn){var Dn=Un+" Iterator",Hn=dv(Un),Gn=dv(Dn);defineIterator(Tn,Un,(function(Tn,Un){uv(this,{type:Dn,target:Tn,state:Hn(Tn),kind:Un,last:void 0})}),(function(){for(var Tn=Gn(this),Un=Tn.kind,Qn=Tn.last;Qn&&Qn.removed;)Qn=Qn.previous;return Tn.target&&(Tn.last=Qn=Qn?Qn.next:Tn.state.first)?"keys"==Un?{value:Qn.key,done:!1}:"values"==Un?{value:Qn.value,done:!1}:{value:[Qn.key,Qn.value],done:!1}:(Tn.target=void 0,{value:void 0,done:!0})}),Qn?"entries":"values",!Qn,!0),setSpecies(Un)}}),ov.onFreeze),pv=Object.freeze,Av=fails((function(){pv(1)}));_export({target:"Object",stat:!0,forced:Av,sham:!av},{freeze:function freeze(Tn){return pv&&isObject(Tn)?pv(hv(Tn)):Tn}}),_export({target:"Object",stat:!0,sham:!Qn},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(Tn){for(var Un,Qn,Dn=toIndexedObject(Tn),Hn=Zn.f,Gn=Qr(Dn),zn={},Vn=0;Gn.length>Vn;)void 0!==(Qn=Hn(Dn,Un=Gn[Vn++]))&&createProperty(zn,Un,Qn);return zn}});var fv=getBuiltIn("Reflect","apply"),gv=Function.apply,mv=!fails((function(){fv((function(){}))}));_export({target:"Reflect",stat:!0,forced:mv},{apply:function apply(Tn,Un,Qn){return aFunction$1(Tn),anObject(Qn),fv?fv(Tn,Un,Qn):gv.call(Tn,Un,Qn)}});var _v=getBuiltIn("Reflect","construct"),vv=fails((function(){function F(){}return!(_v((function(){}),[],F)instanceof F)})),yv=!fails((function(){_v((function(){}))})),bv=vv||yv;_export({target:"Reflect",stat:!0,forced:bv,sham:bv},{construct:function construct(Tn,Un){aFunction$1(Tn),anObject(Un);var Qn=arguments.length<3?Tn:aFunction$1(arguments[2]);if(yv&&!vv)return _v(Tn,Un,Qn);if(Tn==Qn){switch(Un.length){case 0:return new Tn;case 1:return new Tn(Un[0]);case 2:return new Tn(Un[0],Un[1]);case 3:return new Tn(Un[0],Un[1],Un[2]);case 4:return new Tn(Un[0],Un[1],Un[2],Un[3])}var Dn=[null];return Dn.push.apply(Dn,Un),new(Vo.apply(Tn,Dn))}var Hn=Qn.prototype,Gn=wi(isObject(Hn)?Hn:Object.prototype),zn=Function.apply.call(Tn,Gn,Un);return isObject(zn)?zn:Gn}});var wv=Zn.f;_export({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(Tn,Un){var Qn=wv(anObject(Tn),Un);return!(Qn&&!Qn.configurable)&&delete Tn[Un]}}),_export({target:"Reflect",stat:!0,sham:!Bo},{getPrototypeOf:function getPrototypeOf(Tn){return Lo(anObject(Tn))}});var xv=function _arrayWithHoles$1(Tn){if(Array.isArray(Tn))return Tn};var kv=function _iterableToArrayLimit$1(Tn,Un){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(Tn)){var Qn=[],Dn=!0,Hn=!1,Gn=void 0;try{for(var zn,Vn=Tn[Symbol.iterator]();!(Dn=(zn=Vn.next()).done)&&(Qn.push(zn.value),!Un||Qn.length!==Un);Dn=!0);}catch(Tn){Hn=!0,Gn=Tn}finally{try{Dn||null==Vn.return||Vn.return()}finally{if(Hn)throw Gn}}return Qn}};var Sv=function _arrayLikeToArray$1(Tn,Un){(null==Un||Un>Tn.length)&&(Un=Tn.length);for(var Qn=0,Dn=new Array(Un);Qn<Un;Qn++)Dn[Qn]=Tn[Qn];return Dn};var Cv=function _unsupportedIterableToArray$1(Tn,Un){if(Tn){if("string"==typeof Tn)return Sv(Tn,Un);var Qn=Object.prototype.toString.call(Tn).slice(8,-1);return"Object"===Qn&&Tn.constructor&&(Qn=Tn.constructor.name),"Map"===Qn||"Set"===Qn?Array.from(Tn):"Arguments"===Qn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qn)?Sv(Tn,Un):void 0}};var Bv=function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Ev=function _slicedToArray$1(Tn,Un){return xv(Tn)||kv(Tn,Un)||Cv(Tn,Un)||Bv()},Nv=_d;function asyncGeneratorStep$1(Tn,Un,Qn,Dn,Hn,Gn,zn){try{var Vn=Tn[Gn](zn),Kn=Vn.value}catch(Tn){return void Qn(Tn)}Vn.done?Un(Kn):Promise.resolve(Kn).then(Dn,Hn)}var Lv=function _asyncToGenerator$1(Tn){return function(){var Un=this,Qn=arguments;return new Promise((function(Dn,Hn){var Gn=Tn.apply(Un,Qn);function _next(Tn){asyncGeneratorStep$1(Gn,Dn,Hn,_next,_throw,"next",Tn)}function _throw(Tn){asyncGeneratorStep$1(Gn,Dn,Hn,_next,_throw,"throw",Tn)}_next(void 0)}))}};var Tv=function _defineProperty(Tn,Un,Qn){return Un in Tn?Object.defineProperty(Tn,Un,{value:Qn,enumerable:!0,configurable:!0,writable:!0}):Tn[Un]=Qn,Tn};var Pv=function _classCallCheck$1(Tn,Un){if(!(Tn instanceof Un))throw new TypeError("Cannot call a class as a function")};function _defineProperties$1(Tn,Un){for(var Qn=0;Qn<Un.length;Qn++){var Dn=Un[Qn];Dn.enumerable=Dn.enumerable||!1,Dn.configurable=!0,"value"in Dn&&(Dn.writable=!0),Object.defineProperty(Tn,Dn.key,Dn)}}for(var Fv=function _createClass$1(Tn,Un,Qn){return Un&&_defineProperties$1(Tn.prototype,Un),Qn&&_defineProperties$1(Tn,Qn),Tn},Uv=createCommonjsModule((function(Un){(function(){var Tn,Qn,Dn,Hn,Gn,zn;"undefined"!=typeof performance&&null!==performance&&performance.now?Un.exports=function(){return performance.now()}:null!=rv&&rv.hrtime?(Un.exports=function(){return(Tn()-Gn)/1e6},Qn=rv.hrtime,Hn=(Tn=function getNanoSeconds(){var Tn;return 1e9*(Tn=Qn())[0]+Tn[1]})(),zn=1e9*rv.uptime(),Gn=Hn-zn):Date.now?(Un.exports=function(){return Date.now()-Dn},Dn=Date.now()):(Un.exports=function(){return(new Date).getTime()-Dn},Dn=(new Date).getTime())}).call(Tn)})),Iv="undefined"==typeof window?Tn:window,Rv=["moz","webkit"],Mv="AnimationFrame",Qv=Iv["request"+Mv],Ov=Iv["cancel"+Mv]||Iv["cancelRequest"+Mv],Dv=0;!Qv&&Dv<Rv.length;Dv++)Qv=Iv[Rv[Dv]+"Request"+Mv],Ov=Iv[Rv[Dv]+"Cancel"+Mv]||Iv[Rv[Dv]+"CancelRequest"+Mv];if(!Qv||!Ov){var jv=0,Hv=0,Gv=[];Qv=function raf(Tn){if(0===Gv.length){var Un=Uv(),Qn=Math.max(0,16.666666666666668-(Un-jv));jv=Qn+Un,setTimeout((function(){var Tn=Gv.slice(0);Gv.length=0;for(var Un=0;Un<Tn.length;Un++)if(!Tn[Un].cancelled)try{Tn[Un].callback(jv)}catch(Tn){setTimeout((function(){throw Tn}),0)}}),Math.round(Qn))}return Gv.push({handle:++Hv,callback:Tn,cancelled:!1}),Hv},Ov=function caf(Tn){for(var Un=0;Un<Gv.length;Un++)Gv[Un].handle===Tn&&(Gv[Un].cancelled=!0)}}var zv=function raf_1(Tn){return Qv.call(Iv,Tn)};zv.cancel=function cancel(){Ov.apply(Iv,arguments)},zv.polyfill=function polyfill(Tn){Tn||(Tn=Iv),Tn.requestAnimationFrame=Qv,Tn.cancelAnimationFrame=Ov};var Vv=function rgbcolor(Tn){this.ok=!1,this.alpha=1,"#"==Tn.charAt(0)&&(Tn=Tn.substr(1,6)),Tn=(Tn=Tn.replace(/ /g,"")).toLowerCase();var Un={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"};Tn=Un[Tn]||Tn;for(var Qn=[{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 process(Tn){return[parseInt(Tn[1]),parseInt(Tn[2]),parseInt(Tn[3]),parseFloat(Tn[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 process(Tn){return[parseInt(Tn[1]),parseInt(Tn[2]),parseInt(Tn[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function process(Tn){return[parseInt(Tn[1],16),parseInt(Tn[2],16),parseInt(Tn[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function process(Tn){return[parseInt(Tn[1]+Tn[1],16),parseInt(Tn[2]+Tn[2],16),parseInt(Tn[3]+Tn[3],16)]}}],Dn=0;Dn<Qn.length;Dn++){var Hn=Qn[Dn].re,Gn=Qn[Dn].process,zn=Hn.exec(Tn);if(zn){var Vn=Gn(zn);this.r=Vn[0],this.g=Vn[1],this.b=Vn[2],Vn.length>3&&(this.alpha=Vn[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var Tn=this.r.toString(16),Un=this.g.toString(16),Qn=this.b.toString(16);return 1==Tn.length&&(Tn="0"+Tn),1==Un.length&&(Un="0"+Un),1==Qn.length&&(Qn="0"+Qn),"#"+Tn+Un+Qn},this.getHelpXML=function(){for(var Tn=new Array,Dn=0;Dn<Qn.length;Dn++)for(var Hn=Qn[Dn].example,Gn=0;Gn<Hn.length;Gn++)Tn[Tn.length]=Hn[Gn];for(var zn in Un)Tn[Tn.length]=zn;var Vn=document.createElement("ul");Vn.setAttribute("id","rgbcolor-examples");for(Dn=0;Dn<Tn.length;Dn++)try{var Kn=document.createElement("li"),Wn=new RGBColor(Tn[Dn]),Xn=document.createElement("div");Xn.style.cssText="margin: 3px; border: 1px solid black; background:"+Wn.toHex()+"; color:"+Wn.toHex(),Xn.appendChild(document.createTextNode("test"));var Yn=document.createTextNode(" "+Tn[Dn]+" -> "+Wn.toRGB()+" -> "+Wn.toHex());Kn.appendChild(Xn),Kn.appendChild(Yn),Vn.appendChild(Kn)}catch(Tn){}return Vn}},Kv=createCommonjsModule((function(Tn){function _typeof(Un){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Tn.exports=_typeof=function _typeof(Tn){return typeof Tn}:Tn.exports=_typeof=function _typeof(Tn){return Tn&&"function"==typeof Symbol&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":typeof Tn},_typeof(Un)}Tn.exports=_typeof}));var qv=function _assertThisInitialized$1(Tn){if(void 0===Tn)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Tn};var Wv=function _possibleConstructorReturn$1(Tn,Un){return!Un||"object"!==Kv(Un)&&"function"!=typeof Un?qv(Tn):Un},Xv=createCommonjsModule((function(Tn){function _getPrototypeOf(Un){return Tn.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(Tn){return Tn.__proto__||Object.getPrototypeOf(Tn)},_getPrototypeOf(Un)}Tn.exports=_getPrototypeOf})),Yv=createCommonjsModule((function(Tn){function _setPrototypeOf(Un,Qn){return Tn.exports=_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(Tn,Un){return Tn.__proto__=Un,Tn},_setPrototypeOf(Un,Qn)}Tn.exports=_setPrototypeOf}));var Jv=function _inherits$1(Tn,Un){if("function"!=typeof Un&&null!==Un)throw new TypeError("Super expression must either be null or a function");Tn.prototype=Object.create(Un&&Un.prototype,{constructor:{value:Tn,writable:!0,configurable:!0}}),Un&&Yv(Tn,Un)};var $v=function _arrayWithoutHoles$1(Tn){if(Array.isArray(Tn))return Sv(Tn)};var Zv=function _iterableToArray$1(Tn){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(Tn))return Array.from(Tn)};var ey=function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var ty=function _toConsumableArray$1(Tn){return $v(Tn)||Zv(Tn)||Cv(Tn)||ey()};_export({target:"Reflect",stat:!0},{get:function get$2(Tn,Un){var Qn,Dn,Hn=arguments.length<3?Tn:arguments[2];return anObject(Tn)===Hn?Tn[Un]:(Qn=Zn.f(Tn,Un))?has(Qn,"value")?Qn.value:void 0===Qn.get?void 0:Qn.get.call(Hn):isObject(Dn=Lo(Tn))?get$2(Dn,Un,Hn):void 0}});var ny=function _superPropBase$1(Tn,Un){for(;!Object.prototype.hasOwnProperty.call(Tn,Un)&&null!==(Tn=Xv(Tn)););return Tn},ry=createCommonjsModule((function(Tn){function _get(Un,Qn,Dn){return"undefined"!=typeof Reflect&&Reflect.get?Tn.exports=_get=Reflect.get:Tn.exports=_get=function _get(Tn,Un,Qn){var Dn=ny(Tn,Un);if(Dn){var Hn=Object.getOwnPropertyDescriptor(Dn,Un);return Hn.get?Hn.get.call(Qn):Hn.value}},_get(Un,Qn,Dn||Un)}Tn.exports=_get}));function _typeof$1(Tn){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(Tn){return typeof Tn}:function _typeof(Tn){return Tn&&"function"==typeof Symbol&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":typeof Tn})(Tn)}var iy=[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],ay=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function processCanvasRGBA(Tn,Un,Qn,Dn,Hn,Gn){if(!(isNaN(Gn)||Gn<1)){Gn|=0;var zn=function getImageDataFromCanvas(Tn,Un,Qn,Dn,Hn){if("string"==typeof Tn&&(Tn=document.getElementById(Tn)),!Tn||"object"!==_typeof$1(Tn)||!("getContext"in Tn))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var Gn=Tn.getContext("2d");try{return Gn.getImageData(Un,Qn,Dn,Hn)}catch(Tn){throw new Error("unable to access image data: "+Tn)}}(Tn,Un,Qn,Dn,Hn);zn=function processImageDataRGBA(Tn,Un,Qn,Dn,Hn,Gn){for(var zn,Vn=Tn.data,Kn=2*Gn+1,Wn=Dn-1,Xn=Hn-1,Yn=Gn+1,Jn=Yn*(Yn+1)/2,$n=new oy,Zn=$n,er=1;er<Kn;er++)Zn=Zn.next=new oy,er===Yn&&(zn=Zn);Zn.next=$n;for(var tr=null,nr=null,rr=0,ir=0,ar=iy[Gn],or=ay[Gn],sr=0;sr<Hn;sr++){Zn=$n;for(var lr=Vn[ir],cr=Vn[ir+1],ur=Vn[ir+2],dr=Vn[ir+3],hr=0;hr<Yn;hr++)Zn.r=lr,Zn.g=cr,Zn.b=ur,Zn.a=dr,Zn=Zn.next;for(var pr=0,Ar=0,fr=0,gr=0,mr=Yn*lr,_r=Yn*cr,vr=Yn*ur,yr=Yn*dr,br=Jn*lr,wr=Jn*cr,xr=Jn*ur,kr=Jn*dr,Sr=1;Sr<Yn;Sr++){var Cr=ir+((Wn<Sr?Wn:Sr)<<2),Br=Vn[Cr],Er=Vn[Cr+1],Nr=Vn[Cr+2],Lr=Vn[Cr+3],Tr=Yn-Sr;br+=(Zn.r=Br)*Tr,wr+=(Zn.g=Er)*Tr,xr+=(Zn.b=Nr)*Tr,kr+=(Zn.a=Lr)*Tr,pr+=Br,Ar+=Er,fr+=Nr,gr+=Lr,Zn=Zn.next}tr=$n,nr=zn;for(var Pr=0;Pr<Dn;Pr++){var Fr=kr*ar>>or;if(Vn[ir+3]=Fr,0!==Fr){var Ur=255/Fr;Vn[ir]=(br*ar>>or)*Ur,Vn[ir+1]=(wr*ar>>or)*Ur,Vn[ir+2]=(xr*ar>>or)*Ur}else Vn[ir]=Vn[ir+1]=Vn[ir+2]=0;br-=mr,wr-=_r,xr-=vr,kr-=yr,mr-=tr.r,_r-=tr.g,vr-=tr.b,yr-=tr.a;var Ir=Pr+Gn+1;Ir=rr+(Ir<Wn?Ir:Wn)<<2,br+=pr+=tr.r=Vn[Ir],wr+=Ar+=tr.g=Vn[Ir+1],xr+=fr+=tr.b=Vn[Ir+2],kr+=gr+=tr.a=Vn[Ir+3],tr=tr.next;var Rr=nr,Mr=Rr.r,Qr=Rr.g,Or=Rr.b,Dr=Rr.a;mr+=Mr,_r+=Qr,vr+=Or,yr+=Dr,pr-=Mr,Ar-=Qr,fr-=Or,gr-=Dr,nr=nr.next,ir+=4}rr+=Dn}for(var jr=0;jr<Dn;jr++){var Hr=Vn[ir=jr<<2],Gr=Vn[ir+1],zr=Vn[ir+2],Vr=Vn[ir+3],Kr=Yn*Hr,qr=Yn*Gr,Wr=Yn*zr,Xr=Yn*Vr,Yr=Jn*Hr,Jr=Jn*Gr,$r=Jn*zr,Zr=Jn*Vr;Zn=$n;for(var ei=0;ei<Yn;ei++)Zn.r=Hr,Zn.g=Gr,Zn.b=zr,Zn.a=Vr,Zn=Zn.next;for(var ti=Dn,ni=0,ri=0,ii=0,ai=0,oi=1;oi<=Gn;oi++){ir=ti+jr<<2;var si=Yn-oi;Yr+=(Zn.r=Hr=Vn[ir])*si,Jr+=(Zn.g=Gr=Vn[ir+1])*si,$r+=(Zn.b=zr=Vn[ir+2])*si,Zr+=(Zn.a=Vr=Vn[ir+3])*si,ai+=Hr,ni+=Gr,ri+=zr,ii+=Vr,Zn=Zn.next,oi<Xn&&(ti+=Dn)}ir=jr,tr=$n,nr=zn;for(var li=0;li<Hn;li++){var ui=ir<<2;Vn[ui+3]=Vr=Zr*ar>>or,Vr>0?(Vr=255/Vr,Vn[ui]=(Yr*ar>>or)*Vr,Vn[ui+1]=(Jr*ar>>or)*Vr,Vn[ui+2]=($r*ar>>or)*Vr):Vn[ui]=Vn[ui+1]=Vn[ui+2]=0,Yr-=Kr,Jr-=qr,$r-=Wr,Zr-=Xr,Kr-=tr.r,qr-=tr.g,Wr-=tr.b,Xr-=tr.a,ui=jr+((ui=li+Yn)<Xn?ui:Xn)*Dn<<2,Yr+=ai+=tr.r=Vn[ui],Jr+=ni+=tr.g=Vn[ui+1],$r+=ri+=tr.b=Vn[ui+2],Zr+=ii+=tr.a=Vn[ui+3],tr=tr.next,Kr+=Hr=nr.r,qr+=Gr=nr.g,Wr+=zr=nr.b,Xr+=Vr=nr.a,ai-=Hr,ni-=Gr,ri-=zr,ii-=Vr,nr=nr.next,ir+=Dn}}return Tn}(zn,0,0,Dn,Hn,Gn),Tn.getContext("2d").putImageData(zn,Un,Qn)}}var oy=function BlurStack(){!function _classCallCheck$2(Tn,Un){if(!(Tn instanceof Un))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};function compressSpaces(Tn){return Tn.replace(/(?!\u3000)\s+/gm," ")}function trimLeft$1(Tn){return Tn.replace(/^[\n \t]+/,"")}function trimRight$1(Tn){return Tn.replace(/[\n \t]+$/,"")}function toNumbers(Tn){return((Tn||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var sy=/^[A-Z-]+$/;function normalizeAttributeName(Tn){return sy.test(Tn)?Tn.toLowerCase():Tn}function parseExternalUrl(Tn){var Un=Tn.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return Un[2]||Un[3]||Un[4]}function normalizeColor(Tn){if(!Tn.startsWith("rgb"))return Tn;var Un=3;return Tn.replace(/\d+(\.\d+)?/g,(function(Tn,Qn){return Un--&&Qn?String(Math.round(parseFloat(Tn))):Tn}))}var ly=/(\[[^\]]+\])/g,uy=/(#[^\s\+>~\.\[:]+)/g,dy=/(\.[^\s\+>~\.\[:]+)/g,hy=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,py=/(:[\w-]+\([^\)]*\))/gi,Ay=/(:[^\s\+>~\.\[:]+)/g,fy=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(Tn,Un){var Qn=Tn.match(Un);return Qn?[Tn.replace(Un," "),Qn.length]:[Tn,0]}function getSelectorSpecificity(Tn){var Un=[0,0,0],Qn=Tn.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),Dn=0,Hn=findSelectorMatch(Qn,ly),Gn=Ev(Hn,2);Qn=Gn[0],Dn=Gn[1],Un[1]+=Dn;var zn=findSelectorMatch(Qn,uy),Vn=Ev(zn,2);Qn=Vn[0],Dn=Vn[1],Un[0]+=Dn;var Kn=findSelectorMatch(Qn,dy),Wn=Ev(Kn,2);Qn=Wn[0],Dn=Wn[1],Un[1]+=Dn;var Xn=findSelectorMatch(Qn,hy),Yn=Ev(Xn,2);Qn=Yn[0],Dn=Yn[1],Un[2]+=Dn;var Jn=findSelectorMatch(Qn,py),$n=Ev(Jn,2);Qn=$n[0],Dn=$n[1],Un[1]+=Dn;var Zn=findSelectorMatch(Qn,Ay),er=Ev(Zn,2);Qn=er[0],Dn=er[1],Un[1]+=Dn;var tr=findSelectorMatch(Qn=Qn.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),fy),nr=Ev(tr,2);return Qn=nr[0],Dn=nr[1],Un[2]+=Dn,Un.join("")}function vectorMagnitude(Tn){return Math.sqrt(Math.pow(Tn[0],2)+Math.pow(Tn[1],2))}function vectorsRatio(Tn,Un){return(Tn[0]*Un[0]+Tn[1]*Un[1])/(vectorMagnitude(Tn)*vectorMagnitude(Un))}function vectorsAngle(Tn,Un){return(Tn[0]*Un[1]<Tn[1]*Un[0]?-1:1)*Math.acos(vectorsRatio(Tn,Un))}function CB1(Tn){return Tn*Tn*Tn}function CB2(Tn){return 3*Tn*Tn*(1-Tn)}function CB3(Tn){return 3*Tn*(1-Tn)*(1-Tn)}function CB4(Tn){return(1-Tn)*(1-Tn)*(1-Tn)}function QB1(Tn){return Tn*Tn}function QB2(Tn){return 2*Tn*(1-Tn)}function QB3(Tn){return(1-Tn)*(1-Tn)}(function createCommonjsModule$1(Tn,Un){return Tn(Un={exports:{}},Un.exports),Un.exports})((function(Tn){var Un=function(Tn){var Un,Qn=Object.prototype,Dn=Qn.hasOwnProperty,Hn="function"==typeof Symbol?Symbol:{},Gn=Hn.iterator||"@@iterator",zn=Hn.asyncIterator||"@@asyncIterator",Vn=Hn.toStringTag||"@@toStringTag";function wrap(Tn,Un,Qn,Dn){var Hn=Un&&Un.prototype instanceof Generator?Un:Generator,Gn=Object.create(Hn.prototype),zn=new Context(Dn||[]);return Gn._invoke=function makeInvokeMethod(Tn,Un,Qn){var Dn=Kn;return function invoke(Hn,Gn){if(Dn===Xn)throw new Error("Generator is already running");if(Dn===Yn){if("throw"===Hn)throw Gn;return doneResult()}for(Qn.method=Hn,Qn.arg=Gn;;){var zn=Qn.delegate;if(zn){var Vn=maybeInvokeDelegate(zn,Qn);if(Vn){if(Vn===Jn)continue;return Vn}}if("next"===Qn.method)Qn.sent=Qn._sent=Qn.arg;else if("throw"===Qn.method){if(Dn===Kn)throw Dn=Yn,Qn.arg;Qn.dispatchException(Qn.arg)}else"return"===Qn.method&&Qn.abrupt("return",Qn.arg);Dn=Xn;var $n=tryCatch(Tn,Un,Qn);if("normal"===$n.type){if(Dn=Qn.done?Yn:Wn,$n.arg===Jn)continue;return{value:$n.arg,done:Qn.done}}"throw"===$n.type&&(Dn=Yn,Qn.method="throw",Qn.arg=$n.arg)}}}(Tn,Qn,zn),Gn}function tryCatch(Tn,Un,Qn){try{return{type:"normal",arg:Tn.call(Un,Qn)}}catch(Tn){return{type:"throw",arg:Tn}}}Tn.wrap=wrap;var Kn="suspendedStart",Wn="suspendedYield",Xn="executing",Yn="completed",Jn={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var $n={};$n[Gn]=function(){return this};var Zn=Object.getPrototypeOf,er=Zn&&Zn(Zn(values([])));er&&er!==Qn&&Dn.call(er,Gn)&&($n=er);var tr=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create($n);function defineIteratorMethods(Tn){["next","throw","return"].forEach((function(Un){Tn[Un]=function(Tn){return this._invoke(Un,Tn)}}))}function AsyncIterator(Tn,Un){var Qn;this._invoke=function enqueue(Hn,Gn){function callInvokeWithMethodAndArg(){return new Un((function(Qn,zn){!function invoke(Qn,Hn,Gn,zn){var Vn=tryCatch(Tn[Qn],Tn,Hn);if("throw"!==Vn.type){var Kn=Vn.arg,Wn=Kn.value;return Wn&&"object"===_typeof(Wn)&&Dn.call(Wn,"__await")?Un.resolve(Wn.__await).then((function(Tn){invoke("next",Tn,Gn,zn)}),(function(Tn){invoke("throw",Tn,Gn,zn)})):Un.resolve(Wn).then((function(Tn){Kn.value=Tn,Gn(Kn)}),(function(Tn){return invoke("throw",Tn,Gn,zn)}))}zn(Vn.arg)}(Hn,Gn,Qn,zn)}))}return Qn=Qn?Qn.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(Tn,Qn){var Dn=Tn.iterator[Qn.method];if(Dn===Un){if(Qn.delegate=null,"throw"===Qn.method){if(Tn.iterator.return&&(Qn.method="return",Qn.arg=Un,maybeInvokeDelegate(Tn,Qn),"throw"===Qn.method))return Jn;Qn.method="throw",Qn.arg=new TypeError("The iterator does not provide a 'throw' method")}return Jn}var Hn=tryCatch(Dn,Tn.iterator,Qn.arg);if("throw"===Hn.type)return Qn.method="throw",Qn.arg=Hn.arg,Qn.delegate=null,Jn;var Gn=Hn.arg;return Gn?Gn.done?(Qn[Tn.resultName]=Gn.value,Qn.next=Tn.nextLoc,"return"!==Qn.method&&(Qn.method="next",Qn.arg=Un),Qn.delegate=null,Jn):Gn:(Qn.method="throw",Qn.arg=new TypeError("iterator result is not an object"),Qn.delegate=null,Jn)}function pushTryEntry(Tn){var Un={tryLoc:Tn[0]};1 in Tn&&(Un.catchLoc=Tn[1]),2 in Tn&&(Un.finallyLoc=Tn[2],Un.afterLoc=Tn[3]),this.tryEntries.push(Un)}function resetTryEntry(Tn){var Un=Tn.completion||{};Un.type="normal",delete Un.arg,Tn.completion=Un}function Context(Tn){this.tryEntries=[{tryLoc:"root"}],Tn.forEach(pushTryEntry,this),this.reset(!0)}function values(Tn){if(Tn){var Qn=Tn[Gn];if(Qn)return Qn.call(Tn);if("function"==typeof Tn.next)return Tn;if(!isNaN(Tn.length)){var Hn=-1,zn=function next(){for(;++Hn<Tn.length;)if(Dn.call(Tn,Hn))return next.value=Tn[Hn],next.done=!1,next;return next.value=Un,next.done=!0,next};return zn.next=zn}}return{next:doneResult}}function doneResult(){return{value:Un,done:!0}}return GeneratorFunction.prototype=tr.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunctionPrototype[Vn]=GeneratorFunction.displayName="GeneratorFunction",Tn.isGeneratorFunction=function(Tn){var Un="function"==typeof Tn&&Tn.constructor;return!!Un&&(Un===GeneratorFunction||"GeneratorFunction"===(Un.displayName||Un.name))},Tn.mark=function(Tn){return Object.setPrototypeOf?Object.setPrototypeOf(Tn,GeneratorFunctionPrototype):(Tn.__proto__=GeneratorFunctionPrototype,Vn in Tn||(Tn[Vn]="GeneratorFunction")),Tn.prototype=Object.create(tr),Tn},Tn.awrap=function(Tn){return{__await:Tn}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[zn]=function(){return this},Tn.AsyncIterator=AsyncIterator,Tn.async=function(Un,Qn,Dn,Hn,Gn){void 0===Gn&&(Gn=Promise);var zn=new AsyncIterator(wrap(Un,Qn,Dn,Hn),Gn);return Tn.isGeneratorFunction(Qn)?zn:zn.next().then((function(Tn){return Tn.done?Tn.value:zn.next()}))},defineIteratorMethods(tr),tr[Vn]="Generator",tr[Gn]=function(){return this},tr.toString=function(){return"[object Generator]"},Tn.keys=function(Tn){var Un=[];for(var Qn in Tn)Un.push(Qn);return Un.reverse(),function next(){for(;Un.length;){var Qn=Un.pop();if(Qn in Tn)return next.value=Qn,next.done=!1,next}return next.done=!0,next}},Tn.values=values,Context.prototype={constructor:Context,reset:function reset(Tn){if(this.prev=0,this.next=0,this.sent=this._sent=Un,this.done=!1,this.delegate=null,this.method="next",this.arg=Un,this.tryEntries.forEach(resetTryEntry),!Tn)for(var Qn in this)"t"===Qn.charAt(0)&&Dn.call(this,Qn)&&!isNaN(+Qn.slice(1))&&(this[Qn]=Un)},stop:function stop(){this.done=!0;var Tn=this.tryEntries[0].completion;if("throw"===Tn.type)throw Tn.arg;return this.rval},dispatchException:function dispatchException(Tn){if(this.done)throw Tn;var Qn=this;function handle(Dn,Hn){return zn.type="throw",zn.arg=Tn,Qn.next=Dn,Hn&&(Qn.method="next",Qn.arg=Un),!!Hn}for(var Hn=this.tryEntries.length-1;Hn>=0;--Hn){var Gn=this.tryEntries[Hn],zn=Gn.completion;if("root"===Gn.tryLoc)return handle("end");if(Gn.tryLoc<=this.prev){var Vn=Dn.call(Gn,"catchLoc"),Kn=Dn.call(Gn,"finallyLoc");if(Vn&&Kn){if(this.prev<Gn.catchLoc)return handle(Gn.catchLoc,!0);if(this.prev<Gn.finallyLoc)return handle(Gn.finallyLoc)}else if(Vn){if(this.prev<Gn.catchLoc)return handle(Gn.catchLoc,!0)}else{if(!Kn)throw new Error("try statement without catch or finally");if(this.prev<Gn.finallyLoc)return handle(Gn.finallyLoc)}}}},abrupt:function abrupt(Tn,Un){for(var Qn=this.tryEntries.length-1;Qn>=0;--Qn){var Hn=this.tryEntries[Qn];if(Hn.tryLoc<=this.prev&&Dn.call(Hn,"finallyLoc")&&this.prev<Hn.finallyLoc){var Gn=Hn;break}}Gn&&("break"===Tn||"continue"===Tn)&&Gn.tryLoc<=Un&&Un<=Gn.finallyLoc&&(Gn=null);var zn=Gn?Gn.completion:{};return zn.type=Tn,zn.arg=Un,Gn?(this.method="next",this.next=Gn.finallyLoc,Jn):this.complete(zn)},complete:function complete(Tn,Un){if("throw"===Tn.type)throw Tn.arg;return"break"===Tn.type||"continue"===Tn.type?this.next=Tn.arg:"return"===Tn.type?(this.rval=this.arg=Tn.arg,this.method="return",this.next="end"):"normal"===Tn.type&&Un&&(this.next=Un),Jn},finish:function finish(Tn){for(var Un=this.tryEntries.length-1;Un>=0;--Un){var Qn=this.tryEntries[Un];if(Qn.finallyLoc===Tn)return this.complete(Qn.completion,Qn.afterLoc),resetTryEntry(Qn),Jn}},catch:function _catch(Tn){for(var Un=this.tryEntries.length-1;Un>=0;--Un){var Qn=this.tryEntries[Un];if(Qn.tryLoc===Tn){var Dn=Qn.completion;if("throw"===Dn.type){var Hn=Dn.arg;resetTryEntry(Qn)}return Hn}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(Tn,Qn,Dn){return this.delegate={iterator:values(Tn),resultName:Qn,nextLoc:Dn},"next"===this.method&&(this.arg=Un),Jn}},Tn}(Tn.exports);try{regeneratorRuntime=Un}catch(Tn){Function("r","regeneratorRuntime = r")(Un)}}));var gy=function(){function Property(Tn,Un,Qn){Pv(this,Property),this.document=Tn,this.name=Un,this.value=Qn,this.isNormalizedColor=!1}return Fv(Property,[{key:"hasValue",value:function hasValue(){var Tn=this.value;return null!==Tn&&""!==Tn&&0!==Tn&&void 0!==Tn}},{key:"isString",value:function isString(Tn){var Un=this.value,Qn="string"==typeof Un;return Qn&&Tn?Tn.test(Un):Qn}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.isString(/^url\(/)}},{key:"isPixels",value:function isPixels(){if(!this.hasValue())return!1;var Tn=this.getString();switch(!0){case/px$/.test(Tn):case/^[0-9]+$/.test(Tn):return!0;default:return!1}}},{key:"setValue",value:function setValue(Tn){return this.value=Tn,this}},{key:"getValue",value:function getValue(Tn){return void 0===Tn||this.hasValue()?this.value:Tn}},{key:"getNumber",value:function getNumber(Tn){if(!this.hasValue())return void 0===Tn?0:parseFloat(Tn);var Un=this.value,Qn=parseFloat(Un);return this.isString(/%$/)&&(Qn/=100),Qn}},{key:"getString",value:function getString(Tn){return void 0===Tn||this.hasValue()?void 0===this.value?"":String(this.value):String(Tn)}},{key:"getColor",value:function getColor(Tn){var Un=this.getString(Tn);return this.isNormalizedColor||(this.isNormalizedColor=!0,Un=normalizeColor(Un),this.value=Un),Un}},{key:"getDpi",value:function getDpi(){return 96}},{key:"getRem",value:function getRem(){return this.document.rootEmSize}},{key:"getEm",value:function getEm(){return this.document.emSize}},{key:"getUnits",value:function getUnits(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function getPixels(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var Qn="boolean"==typeof Tn?[void 0,Tn]:[Tn],Dn=Ev(Qn,2),Hn=Dn[0],Gn=Dn[1],zn=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(zn.computeSize("x"),zn.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(zn.computeSize("x"),zn.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*zn.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*zn.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&Gn:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*zn.computeSize(Hn);default:var Vn=this.getNumber();return Un&&Vn<1?Vn*zn.computeSize(Hn):Vn}}},{key:"getMilliseconds",value:function getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function getDefinition(){var Tn=this.getString(),Un=Tn.match(/#([^\)'"]+)/);return Un&&(Un=Un[1]),Un||(Un=Tn),this.document.definitions[Un]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(Tn,Un){var Qn=this.getDefinition();if(!Qn)return null;if("function"==typeof Qn.createGradient)return Qn.createGradient(this.document.ctx,Tn,Un);if("function"==typeof Qn.createPattern){if(Qn.getHrefAttribute().hasValue()){var Dn=Qn.getAttribute("patternTransform");Qn=Qn.getHrefAttribute().getDefinition(),Dn.hasValue()&&Qn.getAttribute("patternTransform",!0).setValue(Dn.value)}return Qn.createPattern(this.document.ctx,Tn,Un)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(Tn){for(var Un=this.getColor(),Qn=Un.length,Dn=0,Hn=0;Hn<Qn&&(","===Un[Hn]&&Dn++,3!==Dn);Hn++);if(Tn.hasValue()&&this.isString()&&3!==Dn){var Gn=new Vv(Un);Gn.ok&&(Gn.alpha=Tn.getNumber(),Un=Gn.toRGBA())}return new Property(this.document,this.name,Un)}}],[{key:"empty",value:function empty(Tn){return new Property(Tn,"EMPTY","")}}]),Property}();gy.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"};var my=function(){function ViewPort(){Pv(this,ViewPort),this.viewPorts=[]}return Fv(ViewPort,[{key:"clear",value:function clear(){this.viewPorts=[]}},{key:"setCurrent",value:function setCurrent(Tn,Un){this.viewPorts.push({width:Tn,height:Un})}},{key:"removeCurrent",value:function removeCurrent(){this.viewPorts.pop()}},{key:"getCurrent",value:function getCurrent(){var Tn=this.viewPorts;return Tn[Tn.length-1]}},{key:"computeSize",value:function computeSize(Tn){return"number"==typeof Tn?Tn:"x"===Tn?this.width:"y"===Tn?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function get(){return this.getCurrent().width}},{key:"height",get:function get(){return this.getCurrent().height}}]),ViewPort}(),_y=function(){function Point(Tn,Un){Pv(this,Point),this.x=Tn,this.y=Un}return Fv(Point,[{key:"angleTo",value:function angleTo(Tn){return Math.atan2(Tn.y-this.y,Tn.x-this.x)}},{key:"applyTransform",value:function applyTransform(Tn){var Un=this.x,Qn=this.y,Dn=Un*Tn[0]+Qn*Tn[2]+Tn[4],Hn=Un*Tn[1]+Qn*Tn[3]+Tn[5];this.x=Dn,this.y=Hn}}],[{key:"parse",value:function parse(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Qn=toNumbers(Tn),Dn=Ev(Qn,2),Hn=Dn[0],Gn=void 0===Hn?Un:Hn,zn=Dn[1],Vn=void 0===zn?Un:zn;return new Point(Gn,Vn)}},{key:"parseScale",value:function parseScale(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,Qn=toNumbers(Tn),Dn=Ev(Qn,2),Hn=Dn[0],Gn=void 0===Hn?Un:Hn,zn=Dn[1],Vn=void 0===zn?Gn:zn;return new Point(Gn,Vn)}},{key:"parsePath",value:function parsePath(Tn){for(var Un=toNumbers(Tn),Qn=Un.length,Dn=[],Hn=0;Hn<Qn;Hn+=2)Dn.push(new Point(Un[Hn],Un[Hn+1]));return Dn}}]),Point}(),vy=function(){function Mouse(Tn){Pv(this,Mouse),this.screen=Tn,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return Fv(Mouse,[{key:"isWorking",value:function isWorking(){return this.working}},{key:"start",value:function start(){if(!this.working){var Tn=this.screen,Un=this.onClick,Qn=this.onMouseMove,Dn=Tn.ctx.canvas;Dn.onclick=Un,Dn.onmousemove=Qn,this.working=!0}}},{key:"stop",value:function stop(){if(this.working){var Tn=this.screen.ctx.canvas;this.working=!1,Tn.onclick=null,Tn.onmousemove=null}}},{key:"hasEvents",value:function hasEvents(){return this.working&&this.events.length>0}},{key:"runEvents",value:function runEvents(){if(this.working){var Tn=this.screen,Un=this.events,Qn=this.eventElements,Dn=Tn.ctx.canvas.style;Dn&&(Dn.cursor=""),Un.forEach((function(Tn,Un){for(var Dn=Tn.run,Hn=Qn[Un];Hn;)Dn(Hn),Hn=Hn.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(Tn,Un){if(this.working&&Un){var Qn=this.events,Dn=this.eventElements;Qn.forEach((function(Qn,Hn){var Gn=Qn.x,zn=Qn.y;!Dn[Hn]&&Un.isPointInPath&&Un.isPointInPath(Gn,zn)&&(Dn[Hn]=Tn)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(Tn,Un){if(this.working&&Un){var Qn=this.events,Dn=this.eventElements;Qn.forEach((function(Qn,Hn){var Gn=Qn.x,zn=Qn.y;!Dn[Hn]&&Un.isPointInBox(Gn,zn)&&(Dn[Hn]=Tn)}))}}},{key:"mapXY",value:function mapXY(Tn,Un){for(var Qn=this.screen,Dn=Qn.window,Hn=Qn.ctx,Gn=new _y(Tn,Un),zn=Hn.canvas;zn;)Gn.x-=zn.offsetLeft,Gn.y-=zn.offsetTop,zn=zn.offsetParent;return Dn.scrollX&&(Gn.x+=Dn.scrollX),Dn.scrollY&&(Gn.y+=Dn.scrollY),Gn}},{key:"onClick",value:function onClick(Tn){var Un=this.mapXY((Tn||event).clientX,(Tn||event).clientY),Qn=Un.x,Dn=Un.y;this.events.push({type:"onclick",x:Qn,y:Dn,run:function run(Tn){Tn.onClick&&Tn.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(Tn){var Un=this.mapXY((Tn||event).clientX,(Tn||event).clientY),Qn=Un.x,Dn=Un.y;this.events.push({type:"onmousemove",x:Qn,y:Dn,run:function run(Tn){Tn.onMouseMove&&Tn.onMouseMove()}})}}]),Mouse}(),yy="undefined"!=typeof window?window:null,by="undefined"!=typeof fetch?fetch.bind(void 0):null,wy=function(){function Screen(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Un.fetch,Dn=void 0===Qn?by:Qn,Hn=Un.window,Gn=void 0===Hn?yy:Hn;Pv(this,Screen),this.ctx=Tn,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new my,this.mouse=new vy(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=Gn,this.fetch=Dn}return Fv(Screen,[{key:"wait",value:function wait(Tn){this.waits.push(Tn)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function isReady(){if(this.isReadyLock)return!0;var Tn=this.waits.every((function(Tn){return Tn()}));return Tn&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=Tn,Tn}},{key:"setDefaults",value:function setDefaults(Tn){Tn.strokeStyle="rgba(0,0,0,0)",Tn.lineCap="butt",Tn.lineJoin="miter",Tn.miterLimit=4}},{key:"setViewBox",value:function setViewBox(Tn){var Un=Tn.document,Qn=Tn.ctx,Dn=Tn.aspectRatio,Hn=Tn.width,Gn=Tn.desiredWidth,zn=Tn.height,Vn=Tn.desiredHeight,Kn=Tn.minX,Wn=void 0===Kn?0:Kn,Xn=Tn.minY,Yn=void 0===Xn?0:Xn,Jn=Tn.refX,$n=Tn.refY,Zn=Tn.clip,er=void 0!==Zn&&Zn,tr=Tn.clipX,nr=void 0===tr?0:tr,rr=Tn.clipY,ir=void 0===rr?0:rr,ar=compressSpaces(Dn).replace(/^defer\s/,"").split(" "),or=Ev(ar,2),sr=or[0]||"xMidYMid",lr=or[1]||"meet",cr=Hn/Gn,ur=zn/Vn,dr=Math.min(cr,ur),hr=Math.max(cr,ur),pr=Gn,Ar=Vn;"meet"===lr&&(pr*=dr,Ar*=dr),"slice"===lr&&(pr*=hr,Ar*=hr);var fr=new gy(Un,"refX",Jn),gr=new gy(Un,"refY",$n),mr=fr.hasValue()&&gr.hasValue();if(mr&&Qn.translate(-dr*fr.getPixels("x"),-dr*gr.getPixels("y")),er){var _r=dr*nr,vr=dr*ir;Qn.beginPath(),Qn.moveTo(_r,vr),Qn.lineTo(Hn,vr),Qn.lineTo(Hn,zn),Qn.lineTo(_r,zn),Qn.closePath(),Qn.clip()}if(!mr){var yr="meet"===lr&&dr===ur,br="slice"===lr&&hr===ur,wr="meet"===lr&&dr===cr,xr="slice"===lr&&hr===cr;/^xMid/.test(sr)&&(yr||br)&&Qn.translate(Hn/2-pr/2,0),/YMid$/.test(sr)&&(wr||xr)&&Qn.translate(0,zn/2-Ar/2),/^xMax/.test(sr)&&(yr||br)&&Qn.translate(Hn-pr,0),/YMax$/.test(sr)&&(wr||xr)&&Qn.translate(0,zn-Ar)}switch(!0){case"none"===sr:Qn.scale(cr,ur);break;case"meet"===lr:Qn.scale(dr,dr);break;case"slice"===lr:Qn.scale(hr,hr)}Qn.translate(-Wn,-Yn)}},{key:"start",value:function start(Tn){var Un=this,Qn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Dn=Qn.enableRedraw,Hn=void 0!==Dn&&Dn,Gn=Qn.ignoreMouse,zn=void 0!==Gn&&Gn,Vn=Qn.ignoreAnimation,Kn=void 0!==Vn&&Vn,Wn=Qn.ignoreDimensions,Xn=void 0!==Wn&&Wn,Yn=Qn.ignoreClear,Jn=void 0!==Yn&&Yn,$n=Qn.forceRedraw,Zn=Qn.scaleWidth,er=Qn.scaleHeight,tr=Qn.offsetX,nr=Qn.offsetY,rr=this.FRAMERATE,ir=this.mouse,ar=1e3/rr;if(this.frameDuration=ar,this.readyPromise=new Promise((function(Tn){Un.resolveReady=Tn})),this.isReady()&&this.render(Tn,Xn,Jn,Zn,er,tr,nr),Hn){var or=Date.now(),sr=or,lr=0,cr=function tick(){or=Date.now(),(lr=or-sr)>=ar&&(sr=or-lr%ar,Un.shouldUpdate(Kn,$n)&&(Un.render(Tn,Xn,Jn,Zn,er,tr,nr),ir.runEvents())),Un.intervalId=zv(tick)};zn||ir.start(),this.intervalId=zv(cr)}}},{key:"stop",value:function stop(){this.intervalId&&(zv.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(Tn,Un){if(!Tn){var Qn=this.frameDuration,shouldUpdate=this.animations.reduce((function(Tn,Un){return Un.update(Qn)||Tn}),!1);if(shouldUpdate)return!0}return!("function"!=typeof Un||!Un())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(Tn,Un,Qn,Dn,Hn,Gn,zn){var Vn=this.CLIENT_WIDTH,Kn=this.CLIENT_HEIGHT,Wn=this.viewPort,Xn=this.ctx,Yn=this.isFirstRender,Jn=Xn.canvas;Wn.clear(),Jn.width&&Jn.height?Wn.setCurrent(Jn.width,Jn.height):Wn.setCurrent(Vn,Kn);var $n=Tn.getStyle("width"),Zn=Tn.getStyle("height");!Un&&(Yn||"number"!=typeof Dn&&"number"!=typeof Hn)&&($n.hasValue()&&(Jn.width=$n.getPixels("x"),Jn.style&&(Jn.style.width="".concat(Jn.width,"px"))),Zn.hasValue()&&(Jn.height=Zn.getPixels("y"),Jn.style&&(Jn.style.height="".concat(Jn.height,"px"))));var er=Jn.clientWidth||Jn.width,tr=Jn.clientHeight||Jn.height;if(Un&&$n.hasValue()&&Zn.hasValue()&&(er=$n.getPixels("x"),tr=Zn.getPixels("y")),Wn.setCurrent(er,tr),"number"==typeof Gn&&Tn.getAttribute("x",!0).setValue(Gn),"number"==typeof zn&&Tn.getAttribute("y",!0).setValue(zn),"number"==typeof Dn||"number"==typeof Hn){var nr=toNumbers(Tn.getAttribute("viewBox").getString()),rr=0,ir=0;if("number"==typeof Dn){var ar=Tn.getStyle("width");ar.hasValue()?rr=ar.getPixels("x")/Dn:isNaN(nr[2])||(rr=nr[2]/Dn)}if("number"==typeof Hn){var or=Tn.getStyle("height");or.hasValue()?ir=or.getPixels("y")/Hn:isNaN(nr[3])||(ir=nr[3]/Hn)}rr||(rr=ir),ir||(ir=rr),Tn.getAttribute("width",!0).setValue(Dn),Tn.getAttribute("height",!0).setValue(Hn);var sr=Tn.getStyle("transform",!0,!0);sr.setValue("".concat(sr.getString()," scale(").concat(1/rr,", ").concat(1/ir,")"))}Qn||Xn.clearRect(0,0,er,tr),Tn.render(Xn),Yn&&(this.isFirstRender=!1)}}]),Screen}();wy.defaultWindow=yy,wy.defaultFetch=by;var xy=wy.defaultFetch,ky="undefined"!=typeof DOMParser?DOMParser:null,Sy=function(){function Parser(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Un=Tn.fetch,Qn=void 0===Un?xy:Un,Dn=Tn.DOMParser,Hn=void 0===Dn?ky:Dn;Pv(this,Parser),this.fetch=Qn,this.DOMParser=Hn}var Tn,Un;return Fv(Parser,[{key:"parse",value:(Un=Lv(Nv.mark((function _callee(Tn){return Nv.wrap((function _callee$(Un){for(;;)switch(Un.prev=Un.next){case 0:if(!/^</.test(Tn)){Un.next=2;break}return Un.abrupt("return",this.parseFromString(Tn));case 2:return Un.abrupt("return",this.load(Tn));case 3:case"end":return Un.stop()}}),_callee,this)}))),function parse(Tn){return Un.apply(this,arguments)})},{key:"parseFromString",value:function parseFromString(Tn){var Un=new this.DOMParser;try{return this.checkDocument(Un.parseFromString(Tn,"image/svg+xml"))}catch(Qn){return this.checkDocument(Un.parseFromString(Tn,"text/xml"))}}},{key:"checkDocument",value:function checkDocument(Tn){var Un=Tn.getElementsByTagName("parsererror")[0];if(Un)throw new Error(Un.textContent);return Tn}},{key:"load",value:(Tn=Lv(Nv.mark((function _callee2(Tn){var Un,Qn;return Nv.wrap((function _callee2$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.next=2,this.fetch(Tn);case 2:return Un=Dn.sent,Dn.next=5,Un.text();case 5:return Qn=Dn.sent,Dn.abrupt("return",this.parseFromString(Qn));case 7:case"end":return Dn.stop()}}),_callee2,this)}))),function load(Un){return Tn.apply(this,arguments)})}]),Parser}(),Cy=function(){function Translate(Tn,Un){Pv(this,Translate),this.type="translate",this.point=null,this.point=_y.parse(Un)}return Fv(Translate,[{key:"apply",value:function apply(Tn){var Un=this.point,Qn=Un.x,Dn=Un.y;Tn.translate(Qn||0,Dn||0)}},{key:"unapply",value:function unapply(Tn){var Un=this.point,Qn=Un.x,Dn=Un.y;Tn.translate(-1*Qn||0,-1*Dn||0)}},{key:"applyToPoint",value:function applyToPoint(Tn){var Un=this.point,Qn=Un.x,Dn=Un.y;Tn.applyTransform([1,0,0,1,Qn||0,Dn||0])}}]),Translate}(),By=function(){function Rotate(Tn,Un){var Qn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];Pv(this,Rotate),this.type="rotate",this.angle=null,this.cx=0,this.cy=0;var Dn=toNumbers(Un);this.angle=new gy(Tn,"angle",Dn[0]),this.cx=(Dn[1]||0)+(Qn[0]||0),this.cy=(Dn[2]||0)+(Qn[1]||0)}return Fv(Rotate,[{key:"apply",value:function apply(Tn){var Un=this.cx,Qn=this.cy,Dn=this.angle;Tn.translate(Un,Qn),Tn.rotate(Dn.getRadians()),Tn.translate(-Un,-Qn)}},{key:"unapply",value:function unapply(Tn){var Un=this.cx,Qn=this.cy,Dn=this.angle;Tn.translate(Un,Qn),Tn.rotate(-1*Dn.getRadians()),Tn.translate(-Un,-Qn)}},{key:"applyToPoint",value:function applyToPoint(Tn){var Un=this.cx,Qn=this.cy,Dn=this.angle.getRadians();Tn.applyTransform([1,0,0,1,Un||0,Qn||0]),Tn.applyTransform([Math.cos(Dn),Math.sin(Dn),-Math.sin(Dn),Math.cos(Dn),0,0]),Tn.applyTransform([1,0,0,1,-Un||0,-Qn||0])}}]),Rotate}(),Ey=function(){function Scale(Tn,Un){Pv(this,Scale),this.type="scale",this.scale=null;var Qn=_y.parseScale(Un);0!==Qn.x&&0!==Qn.y||(Qn.x=1e-8,Qn.y=1e-8),this.scale=Qn}return Fv(Scale,[{key:"apply",value:function apply(Tn){var Un=this.scale,Qn=Un.x,Dn=Un.y;Tn.scale(Qn,Dn||Qn)}},{key:"unapply",value:function unapply(Tn){var Un=this.scale,Qn=Un.x,Dn=Un.y;Tn.scale(1/Qn,1/Dn||Qn)}},{key:"applyToPoint",value:function applyToPoint(Tn){var Un=this.scale,Qn=Un.x,Dn=Un.y;Tn.applyTransform([Qn||0,0,0,Dn||0,0,0])}}]),Scale}(),Ny=function(){function Matrix(Tn,Un){Pv(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(Un)}return Fv(Matrix,[{key:"apply",value:function apply(Tn){var Un=this.matrix;Tn.transform(Un[0],Un[1],Un[2],Un[3],Un[4],Un[5])}},{key:"unapply",value:function unapply(Tn){var Un=this.matrix,Qn=Un[0],Dn=Un[2],Hn=Un[4],Gn=Un[1],zn=Un[3],Vn=Un[5],Kn=1/(Qn*(1*zn-0*Vn)-Dn*(1*Gn-0*Vn)+Hn*(0*Gn-0*zn));Tn.transform(Kn*(1*zn-0*Vn),Kn*(0*Vn-1*Gn),Kn*(0*Hn-1*Dn),Kn*(1*Qn-0*Hn),Kn*(Dn*Vn-Hn*zn),Kn*(Hn*Gn-Qn*Vn))}},{key:"applyToPoint",value:function applyToPoint(Tn){Tn.applyTransform(this.matrix)}}]),Matrix}();function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Ly=function(Tn){Jv(Skew,Ny);var Un=function _createSuper$1(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$1()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(Skew);function Skew(Tn,Qn){var Dn;return Pv(this,Skew),(Dn=Un.call(this,Tn,Qn)).type="skew",Dn.angle=null,Dn.angle=new gy(Tn,"angle",Qn),Dn}return Skew}();function _isNativeReflectConstruct$1$1(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Ty=function(Tn){Jv(SkewX,Ly);var Un=function _createSuper$1$1(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$1$1()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(SkewX);function SkewX(Tn,Qn){var Dn;return Pv(this,SkewX),(Dn=Un.call(this,Tn,Qn)).type="skewX",Dn.matrix=[1,0,Math.tan(Dn.angle.getRadians()),1,0,0],Dn}return SkewX}();function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Py=function(Tn){Jv(SkewY,Ly);var Un=function _createSuper$2(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$2()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(SkewY);function SkewY(Tn,Qn){var Dn;return Pv(this,SkewY),(Dn=Un.call(this,Tn,Qn)).type="skewY",Dn.matrix=[1,Math.tan(Dn.angle.getRadians()),0,1,0,0],Dn}return SkewY}();var Fy=function(){function Transform(Tn,Un,Qn){var Dn=this;Pv(this,Transform),this.document=Tn,this.transforms=[];var Hn=function parseTransforms(Tn){return compressSpaces(Tn).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(Un),Gn=Qn?toNumbers(Qn):[];Hn.forEach((function(Tn){if("none"!==Tn){var Un=function parseTransform$1(Tn){var Un=Tn.split("("),Qn=Ev(Un,2),Dn=Qn[0],Hn=Qn[1];return[Dn.trim(),Hn.trim().replace(")","")]}(Tn),Qn=Ev(Un,2),Hn=Qn[0],zn=Qn[1],Vn=Transform.transformTypes[Hn];void 0!==Vn&&Dn.transforms.push(new Vn(Dn.document,zn,Gn))}}))}return Fv(Transform,[{key:"apply",value:function apply(Tn){for(var Un=this.transforms,Qn=Un.length,Dn=0;Dn<Qn;Dn++)Un[Dn].apply(Tn)}},{key:"unapply",value:function unapply(Tn){for(var Un=this.transforms,Qn=Un.length-1;Qn>=0;Qn--)Un[Qn].unapply(Tn)}},{key:"applyToPoint",value:function applyToPoint(Tn){for(var Un=this.transforms,Qn=Un.length,Dn=0;Dn<Qn;Dn++)Un[Dn].applyToPoint(Tn)}}],[{key:"fromElement",value:function fromElement(Tn,Un){var Qn=Un.getStyle("transform",!1,!0),Dn=Un.getStyle("transform-origin",!1,!0);return Qn.hasValue()?new Transform(Tn,Qn.getString(),Dn.getString()):null}}]),Transform}();Fy.transformTypes={translate:Cy,rotate:By,scale:Ey,matrix:Ny,skewX:Ty,skewY:Py};var Uy=function(){function Element(Tn,Un){var Qn=this,Dn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Pv(this,Element),this.document=Tn,this.node=Un,this.captureTextNodes=Dn,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],Un&&1===Un.nodeType){if(Array.from(Un.attributes).forEach((function(Un){var Dn=normalizeAttributeName(Un.nodeName);Qn.attributes[Dn]=new gy(Tn,Dn,Un.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var Hn=this.getAttribute("style").getString().split(";").map((function(Tn){return Tn.trim()}));Hn.forEach((function(Un){if(Un){var Dn=Un.split(":").map((function(Tn){return Tn.trim()})),Hn=Ev(Dn,2),Gn=Hn[0],zn=Hn[1];Qn.styles[Gn]=new gy(Tn,Gn,zn)}}))}var Gn=Tn.definitions,zn=this.getAttribute("id");zn.hasValue()&&(Gn[zn.getValue()]||(Gn[zn.getValue()]=this)),Array.from(Un.childNodes).forEach((function(Un){if(1===Un.nodeType)Qn.addChild(Un);else if(Dn&&(3===Un.nodeType||4===Un.nodeType)){var Hn=Tn.createTextNode(Un);Hn.getText().length>0&&Qn.addChild(Hn)}}))}}return Fv(Element,[{key:"getAttribute",value:function getAttribute(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Qn=this.attributes[Tn];if(!Qn&&Un){var Dn=new gy(this.document,Tn,"");return this.attributes[Tn]=Dn,Dn}return Qn||gy.empty(this.document)}},{key:"getHrefAttribute",value:function getHrefAttribute(){for(var Tn in this.attributes)if("href"===Tn||/:href$/.test(Tn))return this.attributes[Tn];return gy.empty(this.document)}},{key:"getStyle",value:function getStyle(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Qn=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Dn=this.styles[Tn];if(Dn)return Dn;var Hn=this.getAttribute(Tn);if(Hn&&Hn.hasValue())return this.styles[Tn]=Hn,Hn;if(!Qn){var Gn=this.parent;if(Gn){var zn=Gn.getStyle(Tn);if(zn&&zn.hasValue())return zn}}if(Un){var Vn=new gy(this.document,Tn,"");return this.styles[Tn]=Vn,Vn}return Dn||gy.empty(this.document)}},{key:"render",value:function render(Tn){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(Tn.save(),this.getStyle("mask").hasValue()){var Un=this.getStyle("mask").getDefinition();Un&&(this.applyEffects(Tn),Un.apply(Tn,this))}else if("none"!==this.getStyle("filter").getValue("none")){var Qn=this.getStyle("filter").getDefinition();Qn&&(this.applyEffects(Tn),Qn.apply(Tn,this))}else this.setContext(Tn),this.renderChildren(Tn),this.clearContext(Tn);Tn.restore()}}},{key:"setContext",value:function setContext(Tn){}},{key:"applyEffects",value:function applyEffects(Tn){var Un=Fy.fromElement(this.document,this);Un&&Un.apply(Tn);var Qn=this.getStyle("clip-path",!1,!0);if(Qn.hasValue()){var Dn=Qn.getDefinition();Dn&&Dn.apply(Tn)}}},{key:"clearContext",value:function clearContext(Tn){}},{key:"renderChildren",value:function renderChildren(Tn){this.children.forEach((function(Un){Un.render(Tn)}))}},{key:"addChild",value:function addChild(Tn){var Un=Tn instanceof Element?Tn:this.document.createElement(Tn);Un.parent=this,Element.ignoreChildTypes.includes(Un.type)||this.children.push(Un)}},{key:"matchesSelector",value:function matchesSelector(Tn){var Un=this.node;if("function"==typeof Un.matches)return Un.matches(Tn);var Qn=Un.getAttribute("class");return!(!Qn||""===Qn)&&Qn.split(" ").some((function(Un){if(".".concat(Un)===Tn)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var Tn=this.document,Un=Tn.styles,Qn=Tn.stylesSpecificity;for(var Dn in Un)if("@"!==Dn[0]&&this.matchesSelector(Dn)){var Hn=Un[Dn],Gn=Qn[Dn];if(Hn)for(var zn in Hn){var Vn=this.stylesSpecificity[zn];void 0===Vn&&(Vn="000"),Gn>=Vn&&(this.styles[zn]=Hn[zn],this.stylesSpecificity[zn]=Gn)}}}},{key:"removeStyles",value:function removeStyles(Tn,Un){return Un.reduce((function(Un,Qn){var Dn=Tn.getStyle(Qn);if(!Dn.hasValue())return Un;var Hn=Dn.getString();return Dn.setValue(""),[].concat(ty(Un),[[Qn,Hn]])}),[])}},{key:"restoreStyles",value:function restoreStyles(Tn,Un){Un.forEach((function(Un){var Qn=Ev(Un,2),Dn=Qn[0],Hn=Qn[1];Tn.getStyle(Dn,!0).setValue(Hn)}))}}]),Element}();function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}Uy.ignoreChildTypes=["title"];var Iy=function(Tn){Jv(UnknownElement,Uy);var Un=function _createSuper$3(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$3()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(UnknownElement);function UnknownElement(Tn,Qn,Dn){return Pv(this,UnknownElement),Un.call(this,Tn,Qn,Dn)}return UnknownElement}();function wrapFontFamily(Tn){var Un=Tn.trim();return/^('|")/.test(Un)?Un:'"'.concat(Un,'"')}function prepareFontStyle(Tn){if(!Tn)return"";var Un=Tn.trim().toLowerCase();switch(Un){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return Un;default:return/^oblique\s+(-|)\d+deg$/.test(Un)?Un:""}}function prepareFontWeight(Tn){if(!Tn)return"";var Un=Tn.trim().toLowerCase();switch(Un){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return Un;default:return/^[\d.]+$/.test(Un)?Un:""}}var Ry=function(){function Font(Tn,Un,Qn,Dn,Hn,Gn){Pv(this,Font);var zn=Gn?"string"==typeof Gn?Font.parse(Gn):Gn:{};this.fontFamily=Hn||zn.fontFamily,this.fontSize=Dn||zn.fontSize,this.fontStyle=Tn||zn.fontStyle,this.fontWeight=Qn||zn.fontWeight,this.fontVariant=Un||zn.fontVariant}return Fv(Font,[{key:"toString",value:function toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(Tn=this.fontFamily,void 0===rv?Tn:Tn.trim().split(",").map(wrapFontFamily).join(","))].join(" ").trim();var Tn}}],[{key:"parse",value:function parse(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",Un=arguments.length>1?arguments[1]:void 0,Qn="",Dn="",Hn="",Gn="",zn="",Vn=compressSpaces(Tn).trim().split(" "),Kn={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return Vn.forEach((function(Tn){switch(!0){case!Kn.fontStyle&&Font.styles.includes(Tn):"inherit"!==Tn&&(Qn=Tn),Kn.fontStyle=!0;break;case!Kn.fontVariant&&Font.variants.includes(Tn):"inherit"!==Tn&&(Dn=Tn),Kn.fontStyle=!0,Kn.fontVariant=!0;break;case!Kn.fontWeight&&Font.weights.includes(Tn):"inherit"!==Tn&&(Hn=Tn),Kn.fontStyle=!0,Kn.fontVariant=!0,Kn.fontWeight=!0;break;case!Kn.fontSize:if("inherit"!==Tn){var Un=Tn.split("/"),Vn=Ev(Un,1);Gn=Vn[0]}Kn.fontStyle=!0,Kn.fontVariant=!0,Kn.fontWeight=!0,Kn.fontSize=!0;break;default:"inherit"!==Tn&&(zn+=Tn)}})),new Font(Qn,Dn,Hn,Gn,zn,Un)}}]),Font}();Ry.styles="normal|italic|oblique|inherit",Ry.variants="normal|small-caps|inherit",Ry.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var My=function(){function BoundingBox(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,Qn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,Dn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;Pv(this,BoundingBox),this.x1=Tn,this.y1=Un,this.x2=Qn,this.y2=Dn,this.addPoint(Tn,Un),this.addPoint(Qn,Dn)}return Fv(BoundingBox,[{key:"addPoint",value:function addPoint(Tn,Un){void 0!==Tn&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=Tn,this.x2=Tn),Tn<this.x1&&(this.x1=Tn),Tn>this.x2&&(this.x2=Tn)),void 0!==Un&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=Un,this.y2=Un),Un<this.y1&&(this.y1=Un),Un>this.y2&&(this.y2=Un))}},{key:"addX",value:function addX(Tn){this.addPoint(Tn,null)}},{key:"addY",value:function addY(Tn){this.addPoint(null,Tn)}},{key:"addBoundingBox",value:function addBoundingBox(Tn){if(Tn){var Un=Tn.x1,Qn=Tn.y1,Dn=Tn.x2,Hn=Tn.y2;this.addPoint(Un,Qn),this.addPoint(Dn,Hn)}}},{key:"sumCubic",value:function sumCubic(Tn,Un,Qn,Dn,Hn){return Math.pow(1-Tn,3)*Un+3*Math.pow(1-Tn,2)*Tn*Qn+3*(1-Tn)*Math.pow(Tn,2)*Dn+Math.pow(Tn,3)*Hn}},{key:"bezierCurveAdd",value:function bezierCurveAdd(Tn,Un,Qn,Dn,Hn){var Gn=6*Un-12*Qn+6*Dn,zn=-3*Un+9*Qn-9*Dn+3*Hn,Vn=3*Qn-3*Un;if(0!==zn){var Kn=Math.pow(Gn,2)-4*Vn*zn;if(!(Kn<0)){var Wn=(-Gn+Math.sqrt(Kn))/(2*zn);0<Wn&&Wn<1&&(Tn?this.addX(this.sumCubic(Wn,Un,Qn,Dn,Hn)):this.addY(this.sumCubic(Wn,Un,Qn,Dn,Hn)));var Xn=(-Gn-Math.sqrt(Kn))/(2*zn);0<Xn&&Xn<1&&(Tn?this.addX(this.sumCubic(Xn,Un,Qn,Dn,Hn)):this.addY(this.sumCubic(Xn,Un,Qn,Dn,Hn)))}}else{if(0===Gn)return;var Yn=-Vn/Gn;0<Yn&&Yn<1&&(Tn?this.addX(this.sumCubic(Yn,Un,Qn,Dn,Hn)):this.addY(this.sumCubic(Yn,Un,Qn,Dn,Hn)))}}},{key:"addBezierCurve",value:function addBezierCurve(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){this.addPoint(Tn,Un),this.addPoint(zn,Vn),this.bezierCurveAdd(!0,Tn,Qn,Hn,zn),this.bezierCurveAdd(!1,Un,Dn,Gn,Vn)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(Tn,Un,Qn,Dn,Hn,Gn){var zn=Tn+2/3*(Qn-Tn),Vn=Un+2/3*(Dn-Un),Kn=zn+1/3*(Hn-Tn),Wn=Vn+1/3*(Gn-Un);this.addBezierCurve(Tn,Un,zn,Kn,Vn,Wn,Hn,Gn)}},{key:"isPointInBox",value:function isPointInBox(Tn,Un){var Qn=this.x1,Dn=this.y1,Hn=this.x2,Gn=this.y2;return Qn<=Tn&&Tn<=Hn&&Dn<=Un&&Un<=Gn}},{key:"x",get:function get(){return this.x1}},{key:"y",get:function get(){return this.y1}},{key:"width",get:function get(){return this.x2-this.x1}},{key:"height",get:function get(){return this.y2-this.y1}}]),BoundingBox}();function _isNativeReflectConstruct$4(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Qy=function(Tn){Jv(RenderedElement,Uy);var Un=function _createSuper$4(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$4()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(RenderedElement);function RenderedElement(){var Tn;return Pv(this,RenderedElement),(Tn=Un.apply(this,arguments)).modifiedEmSizeStack=!1,Tn}return Fv(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var Tn=1,Un=this;Un;){var Qn=Un.getStyle("opacity",!1,!0);Qn.hasValue()&&(Tn*=Qn.getNumber()),Un=Un.parent}return Tn}},{key:"setContext",value:function setContext(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Un){var Qn=this.getStyle("fill"),Dn=this.getStyle("fill-opacity"),Hn=this.getStyle("stroke"),Gn=this.getStyle("stroke-opacity");if(Qn.isUrlDefinition()){var zn=Qn.getFillStyleDefinition(this,Dn);zn&&(Tn.fillStyle=zn)}else if(Qn.hasValue()){"currentColor"===Qn.getString()&&Qn.setValue(this.getStyle("color").getColor());var Vn=Qn.getColor();"inherit"!==Vn&&(Tn.fillStyle="none"===Vn?"rgba(0,0,0,0)":Vn)}if(Dn.hasValue()){var Kn=new gy(this.document,"fill",Tn.fillStyle).addOpacity(Dn).getColor();Tn.fillStyle=Kn}if(Hn.isUrlDefinition()){var Wn=Hn.getFillStyleDefinition(this,Gn);Wn&&(Tn.strokeStyle=Wn)}else if(Hn.hasValue()){"currentColor"===Hn.getString()&&Hn.setValue(this.getStyle("color").getColor());var Xn=Hn.getString();"inherit"!==Xn&&(Tn.strokeStyle="none"===Xn?"rgba(0,0,0,0)":Xn)}if(Gn.hasValue()){var Yn=new gy(this.document,"stroke",Tn.strokeStyle).addOpacity(Gn).getString();Tn.strokeStyle=Yn}var Jn=this.getStyle("stroke-width");if(Jn.hasValue()){var $n=Jn.getPixels();Tn.lineWidth=$n||1e-8}var Zn=this.getStyle("stroke-linecap"),er=this.getStyle("stroke-linejoin"),tr=this.getStyle("stroke-miterlimit"),nr=this.getStyle("paint-order"),rr=this.getStyle("stroke-dasharray"),ir=this.getStyle("stroke-dashoffset");if(Zn.hasValue()&&(Tn.lineCap=Zn.getString()),er.hasValue()&&(Tn.lineJoin=er.getString()),tr.hasValue()&&(Tn.miterLimit=tr.getNumber()),nr.hasValue()&&(Tn.paintOrder=nr.getValue()),rr.hasValue()&&"none"!==rr.getString()){var ar=toNumbers(rr.getString());void 0!==Tn.setLineDash?Tn.setLineDash(ar):void 0!==Tn.webkitLineDash?Tn.webkitLineDash=ar:void 0===Tn.mozDash||1===ar.length&&0===ar[0]||(Tn.mozDash=ar);var or=ir.getPixels();void 0!==Tn.lineDashOffset?Tn.lineDashOffset=or:void 0!==Tn.webkitLineDashOffset?Tn.webkitLineDashOffset=or:void 0!==Tn.mozDashOffset&&(Tn.mozDashOffset=or)}}if(this.modifiedEmSizeStack=!1,void 0!==Tn.font){var sr=this.getStyle("font"),lr=this.getStyle("font-style"),cr=this.getStyle("font-variant"),ur=this.getStyle("font-weight"),dr=this.getStyle("font-size"),hr=this.getStyle("font-family"),pr=new Ry(lr.getString(),cr.getString(),ur.getString(),dr.hasValue()?"".concat(dr.getPixels(!0),"px"):"",hr.getString(),Ry.parse(sr.getString(),Tn.font));lr.setValue(pr.fontStyle),cr.setValue(pr.fontVariant),ur.setValue(pr.fontWeight),dr.setValue(pr.fontSize),hr.setValue(pr.fontFamily),Tn.font=pr.toString(),dr.isPixels()&&(this.document.emSize=dr.getPixels(),this.modifiedEmSizeStack=!0)}Un||(this.applyEffects(Tn),Tn.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(Tn){ry(Xv(RenderedElement.prototype),"clearContext",this).call(this,Tn),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}();function _isNativeReflectConstruct$5(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Oy=function(Tn){Jv(TextElement,Qy);var Un=function _createSuper$5(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$5()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(TextElement);function TextElement(Tn,Qn,Dn){var Hn;return Pv(this,TextElement),(Hn=Un.call(this,Tn,Qn,(this instanceof TextElement?this.constructor:void 0)===TextElement||Dn)).type="text",Hn.x=0,Hn.y=0,Hn.measureCache=-1,Hn}return Fv(TextElement,[{key:"setContext",value:function setContext(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ry(Xv(TextElement.prototype),"setContext",this).call(this,Tn,Un);var Qn=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();Qn&&(Tn.textBaseline=Qn)}},{key:"initializeCoordinates",value:function initializeCoordinates(Tn){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var Un=this.getAttribute("dx"),Qn=this.getAttribute("dy");Un.hasValue()&&(this.x+=Un.getPixels("x")),Qn.hasValue()&&(this.y+=Qn.getPixels("y")),this.x+=this.getAnchorDelta(Tn,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(Tn){var Un=this;if("text"!==this.type)return this.getTElementBoundingBox(Tn);this.initializeCoordinates(Tn);var Qn=null;return this.children.forEach((function(Dn,Hn){var Gn=Un.getChildBoundingBox(Tn,Un,Un,Hn);Qn?Qn.addBoundingBox(Gn):Qn=Gn})),Qn}},{key:"getFontSize",value:function getFontSize(){var Tn=this.document,Un=this.parent,Qn=Ry.parse(Tn.ctx.font).fontSize;return Un.getStyle("font-size").getNumber(Qn)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(Tn){var Un=this.getFontSize();return new My(this.x,this.y-Un,this.x+this.measureText(Tn),this.y)}},{key:"getGlyph",value:function getGlyph(Tn,Un,Qn){var Dn=Un[Qn],Hn=null;if(Tn.isArabic){var Gn=Un.length,zn=Un[Qn-1],Vn=Un[Qn+1],Kn="isolated";(0===Qn||" "===zn)&&Qn<Gn-2&&" "!==Vn&&(Kn="terminal"),Qn>0&&" "!==zn&&Qn<Gn-2&&" "!==Vn&&(Kn="medial"),Qn>0&&" "!==zn&&(Qn===Gn-1||" "===Vn)&&(Kn="initial"),void 0!==Tn.glyphs[Dn]&&((Hn=Tn.glyphs[Dn][Kn])||"glyph"!==Tn.glyphs[Dn].type||(Hn=Tn.glyphs[Dn]))}else Hn=Tn.glyphs[Dn];return Hn||(Hn=Tn.missingGlyph),Hn}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(Tn){var Un=Tn||this.node,Qn=Array.from(Un.parentNode.childNodes),Dn=Qn.indexOf(Un),Hn=Qn.length-1,Gn=compressSpaces(Un.value||Un.text||Un.textContent||"");return 0===Dn&&(Gn=trimLeft$1(Gn)),Dn===Hn&&(Gn=trimRight$1(Gn)),Gn}},{key:"renderChildren",value:function renderChildren(Tn){var Un=this;if("text"===this.type){this.initializeCoordinates(Tn),this.children.forEach((function(Qn,Dn){Un.renderChild(Tn,Un,Un,Dn)}));var Qn=this.document.screen.mouse;Qn.isWorking()&&Qn.checkBoundingBox(this,this.getBoundingBox(Tn))}else this.renderTElementChildren(Tn)}},{key:"renderTElementChildren",value:function renderTElementChildren(Tn){var Un=this.document,Qn=this.parent,Dn=this.getText(),Hn=Qn.getStyle("font-family").getDefinition();if(Hn)for(var Gn=Hn.fontFace.unitsPerEm,zn=Ry.parse(Un.ctx.font),Vn=Qn.getStyle("font-size").getNumber(zn.fontSize),Kn=Qn.getStyle("font-style").getString(zn.fontStyle),Wn=Vn/Gn,Xn=Hn.isRTL?Dn.split("").reverse().join(""):Dn,Yn=toNumbers(Qn.getAttribute("dx").getString()),Jn=Xn.length,$n=0;$n<Jn;$n++){var Zn=this.getGlyph(Hn,Xn,$n);Tn.translate(this.x,this.y),Tn.scale(Wn,-Wn);var er=Tn.lineWidth;Tn.lineWidth=Tn.lineWidth*Gn/Vn,"italic"===Kn&&Tn.transform(1,0,.4,1,0,0),Zn.render(Tn),"italic"===Kn&&Tn.transform(1,0,-.4,1,0,0),Tn.lineWidth=er,Tn.scale(1/Wn,-1/Wn),Tn.translate(-this.x,-this.y),this.x+=Vn*(Zn.horizAdvX||Hn.horizAdvX)/Gn,void 0===Yn[$n]||isNaN(Yn[$n])||(this.x+=Yn[$n])}else{var tr=this.x,nr=this.y;"stroke"===Tn.paintOrder?(Tn.strokeStyle&&Tn.strokeText(Dn,tr,nr),Tn.fillStyle&&Tn.fillText(Dn,tr,nr)):(Tn.fillStyle&&Tn.fillText(Dn,tr,nr),Tn.strokeStyle&&Tn.strokeText(Dn,tr,nr))}}},{key:"getAnchorDelta",value:function getAnchorDelta(Tn,Un,Qn){var Dn=this.getStyle("text-anchor").getString("start");if("start"!==Dn){for(var Hn=Un.children,Gn=Hn.length,zn=null,Vn=0,Kn=Qn;Kn<Gn&&(zn=Hn[Kn],!(Kn>Qn&&zn.getAttribute("x").hasValue()||zn.getAttribute("text-anchor").hasValue()));Kn++)Vn+=zn.measureTextRecursive(Tn);return-1*("end"===Dn?Vn:Vn/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(Tn,Un,Qn,Dn){var Hn=Qn.children[Dn];if("function"!=typeof Hn.measureText)return Hn;Tn.save(),Hn.setContext(Tn,!0);var Gn=Hn.getAttribute("x"),zn=Hn.getAttribute("y"),Vn=Hn.getAttribute("dx"),Kn=Hn.getAttribute("dy"),Wn=Hn.getAttribute("text-anchor").getString("start");if(0===Dn&&"textNode"!==Hn.type&&(Gn.hasValue()||Gn.setValue(Un.getAttribute("x").getValue("0")),zn.hasValue()||zn.setValue(Un.getAttribute("y").getValue("0")),Vn.hasValue()||Vn.setValue(Un.getAttribute("dx").getValue("0")),Kn.hasValue()||Kn.setValue(Un.getAttribute("dy").getValue("0"))),Gn.hasValue()){if(Hn.x=Gn.getPixels("x")+Un.getAnchorDelta(Tn,Qn,Dn),"start"!==Wn){var Xn=Hn.measureTextRecursive(Tn);Hn.x+=-1*("end"===Wn?Xn:Xn/2)}Vn.hasValue()&&(Hn.x+=Vn.getPixels("x"))}else{if("start"!==Wn){var Yn=Hn.measureTextRecursive(Tn);Un.x+=-1*("end"===Wn?Yn:Yn/2)}Vn.hasValue()&&(Un.x+=Vn.getPixels("x")),Hn.x=Un.x}return Un.x=Hn.x+Hn.measureText(Tn),zn.hasValue()?(Hn.y=zn.getPixels("y"),Kn.hasValue()&&(Hn.y+=Kn.getPixels("y"))):(Kn.hasValue()&&(Un.y+=Kn.getPixels("y")),Hn.y=Un.y),Un.y=Hn.y,Hn.clearContext(Tn),Tn.restore(),Hn}},{key:"getChildBoundingBox",value:function getChildBoundingBox(Tn,Un,Qn,Dn){var Hn=this.adjustChildCoordinates(Tn,Un,Qn,Dn),Gn=Hn.getBoundingBox(Tn);return Gn?(Hn.children.forEach((function(Qn,Dn){var zn=Un.getChildBoundingBox(Tn,Un,Hn,Dn);Gn.addBoundingBox(zn)})),Gn):null}},{key:"renderChild",value:function renderChild(Tn,Un,Qn,Dn){var Hn=this.adjustChildCoordinates(Tn,Un,Qn,Dn);Hn.render(Tn),Hn.children.forEach((function(Qn,Dn){Un.renderChild(Tn,Un,Hn,Dn)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(Tn){return this.children.reduce((function(Un,Qn){return Un+Qn.measureTextRecursive(Tn)}),this.measureText(Tn))}},{key:"measureText",value:function measureText(Tn){var Un=this.measureCache;if(~Un)return Un;var Qn=this.getText(),Dn=this.measureTargetText(Tn,Qn);return this.measureCache=Dn,Dn}},{key:"measureTargetText",value:function measureTargetText(Tn,Un){if(!Un.length)return 0;var Qn=this.parent,Dn=Qn.getStyle("font-family").getDefinition();if(Dn){for(var Hn=this.getFontSize(),Gn=Dn.isRTL?Un.split("").reverse().join(""):Un,zn=toNumbers(Qn.getAttribute("dx").getString()),Vn=Gn.length,Kn=0,Wn=0;Wn<Vn;Wn++){Kn+=(this.getGlyph(Dn,Gn,Wn).horizAdvX||Dn.horizAdvX)*Hn/Dn.fontFace.unitsPerEm,void 0===zn[Wn]||isNaN(zn[Wn])||(Kn+=zn[Wn])}return Kn}if(!Tn.measureText)return 10*Un.length;Tn.save(),this.setContext(Tn,!0);var Xn=Tn.measureText(Un).width;return this.clearContext(Tn),Tn.restore(),Xn}}]),TextElement}();function _isNativeReflectConstruct$6(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Dy=function(Tn){Jv(TSpanElement,Oy);var Un=function _createSuper$6(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$6()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(TSpanElement);function TSpanElement(Tn,Qn,Dn){var Hn;return Pv(this,TSpanElement),(Hn=Un.call(this,Tn,Qn,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||Dn)).type="tspan",Hn.text=Hn.children.length>0?"":Hn.getTextFromNode(),Hn}return Fv(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}();function _isNativeReflectConstruct$7(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var jy=function(Tn){Jv(TextNode,Dy);var Un=function _createSuper$7(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$7()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(TextNode);function TextNode(){var Tn;return Pv(this,TextNode),(Tn=Un.apply(this,arguments)).type="textNode",Tn}return TextNode}();var Hy=function(){function PathParser(Tn){Pv(this,PathParser),this.control=null,this.start=null,this.current=null,this.command="",this.tokens=[],this.i=-1,this.previousCommand="",this.points=[],this.angles=[],this.tokens=function preparePath(Tn){return compressSpaces(Tn.replace(/,/gm," ").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/([0-9])([+\-])/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/([Aa](?:\s+(?:[0-9]*\.)?[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $2 $3 ")).trim()}(Tn).split(" ")}return Fv(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command="",this.previousCommand="",this.start=new _y(0,0),this.control=new _y(0,0),this.current=new _y(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function isEnd(){return this.i>=this.tokens.length-1}},{key:"isCommandOrEnd",value:function isCommandOrEnd(){if(this.isEnd())return!0;var Tn=this.i,Un=this.tokens;return/^[A-Za-z]$/.test(Un[Tn+1])}},{key:"isRelativeCommand",value:function isRelativeCommand(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0;default:return!1}}},{key:"getToken",value:function getToken(){return this.i++,this.tokens[this.i]}},{key:"getScalar",value:function getScalar(){return parseFloat(this.getToken())}},{key:"nextCommand",value:function nextCommand(){this.previousCommand=this.command,this.command=this.getToken()}},{key:"getPoint",value:function getPoint(){var Tn=new _y(this.getScalar(),this.getScalar());return this.makeAbsolute(Tn)}},{key:"getAsControlPoint",value:function getAsControlPoint(){var Tn=this.getPoint();return this.control=Tn,Tn}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(){var Tn=this.getPoint();return this.current=Tn,Tn}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var Tn=this.previousCommand.toLowerCase();if("c"!==Tn&&"s"!==Tn&&"q"!==Tn&&"t"!==Tn)return this.current;var Un=this.current,Qn=Un.x,Dn=Un.y,Hn=this.control,Gn=Hn.x,zn=Hn.y;return new _y(2*Qn-Gn,2*Dn-zn)}},{key:"makeAbsolute",value:function makeAbsolute(Tn){if(this.isRelativeCommand()){var Un=this.current,Qn=Un.x,Dn=Un.y;Tn.x+=Qn,Tn.y+=Dn}return Tn}},{key:"addMarker",value:function addMarker(Tn,Un,Qn){var Dn=this.points,Hn=this.angles;Qn&&Hn.length>0&&!Hn[Hn.length-1]&&(Hn[Hn.length-1]=Dn[Dn.length-1].angleTo(Qn)),this.addMarkerAngle(Tn,Un?Un.angleTo(Tn):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(Tn,Un){this.points.push(Tn),this.angles.push(Un)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var Tn=this.angles,Un=Tn.length,Qn=0;Qn<Un;Qn++)if(!Tn[Qn])for(var Dn=Qn+1;Dn<Un;Dn++)if(Tn[Dn]){Tn[Qn]=Tn[Dn];break}return Tn}}]),PathParser}();function _isNativeReflectConstruct$8(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Gy=function(Tn){Jv(PathElement,Qy);var Un=function _createSuper$8(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$8()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(PathElement);function PathElement(Tn,Qn,Dn){var Hn;return Pv(this,PathElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="path",Hn.pathParser=null,Hn.pathParser=new Hy(Hn.getAttribute("d").getString()),Hn}return Fv(PathElement,[{key:"path",value:function path(Tn){var Un=this.pathParser,Qn=new My;for(Un.reset(),Tn&&Tn.beginPath();!Un.isEnd();)switch(Un.nextCommand(),Un.command){case"M":case"m":this.pathM(Tn,Qn);break;case"L":case"l":this.pathL(Tn,Qn);break;case"H":case"h":this.pathH(Tn,Qn);break;case"V":case"v":this.pathV(Tn,Qn);break;case"C":case"c":this.pathC(Tn,Qn);break;case"S":case"s":this.pathS(Tn,Qn);break;case"Q":case"q":this.pathQ(Tn,Qn);break;case"T":case"t":this.pathT(Tn,Qn);break;case"A":case"a":this.pathA(Tn,Qn);break;case"Z":case"z":this.pathZ(Tn,Qn)}return Qn}},{key:"getBoundingBox",value:function getBoundingBox(Tn){return this.path()}},{key:"getMarkers",value:function getMarkers(){var Tn=this.pathParser,Un=Tn.getMarkerPoints(),Qn=Tn.getMarkerAngles();return Un.map((function(Tn,Un){return[Tn,Qn[Un]]}))}},{key:"renderChildren",value:function renderChildren(Tn){this.path(Tn),this.document.screen.mouse.checkPath(this,Tn);var Un=this.getStyle("fill-rule");""!==Tn.fillStyle&&("inherit"!==Un.getString("inherit")?Tn.fill(Un.getString()):Tn.fill()),""!==Tn.strokeStyle&&Tn.stroke();var Qn=this.getMarkers();if(Qn){var Dn=Qn.length-1,Hn=this.getStyle("marker-start"),Gn=this.getStyle("marker-mid"),zn=this.getStyle("marker-end");if(Hn.isUrlDefinition()){var Vn=Hn.getDefinition(),Kn=Ev(Qn[0],2),Wn=Kn[0],Xn=Kn[1];Vn.render(Tn,Wn,Xn)}if(Gn.isUrlDefinition())for(var Yn=Gn.getDefinition(),Jn=1;Jn<Dn;Jn++){var $n=Ev(Qn[Jn],2),Zn=$n[0],er=$n[1];Yn.render(Tn,Zn,er)}if(zn.isUrlDefinition()){var tr=zn.getDefinition(),nr=Ev(Qn[Dn],2),rr=nr[0],ir=nr[1];tr.render(Tn,rr,ir)}}}},{key:"pathM",value:function pathM(Tn,Un){var Qn=this.pathParser,Dn=Qn.getAsCurrentPoint(),Hn=Dn.x,Gn=Dn.y;for(Qn.addMarker(Dn),Un.addPoint(Hn,Gn),Tn&&Tn.moveTo(Hn,Gn),Qn.start=Qn.current;!Qn.isCommandOrEnd();){var zn=Qn.getAsCurrentPoint(),Vn=zn.x,Kn=zn.y;Qn.addMarker(zn,Qn.start),Un.addPoint(Vn,Kn),Tn&&Tn.lineTo(Vn,Kn)}}},{key:"pathL",value:function pathL(Tn,Un){for(var Qn=this.pathParser;!Qn.isCommandOrEnd();){var Dn=Qn.current,Hn=Qn.getAsCurrentPoint(),Gn=Hn.x,zn=Hn.y;Qn.addMarker(Hn,Dn),Un.addPoint(Gn,zn),Tn&&Tn.lineTo(Gn,zn)}}},{key:"pathH",value:function pathH(Tn,Un){for(var Qn=this.pathParser;!Qn.isCommandOrEnd();){var Dn=Qn.current,Hn=new _y((Qn.isRelativeCommand()?Dn.x:0)+Qn.getScalar(),Dn.y);Qn.addMarker(Hn,Dn),Qn.current=Hn,Un.addPoint(Hn.x,Hn.y),Tn&&Tn.lineTo(Hn.x,Hn.y)}}},{key:"pathV",value:function pathV(Tn,Un){for(var Qn=this.pathParser;!Qn.isCommandOrEnd();){var Dn=Qn.current,Hn=new _y(Dn.x,(Qn.isRelativeCommand()?Dn.y:0)+Qn.getScalar());Qn.addMarker(Hn,Dn),Qn.current=Hn,Un.addPoint(Hn.x,Hn.y),Tn&&Tn.lineTo(Hn.x,Hn.y)}}},{key:"pathC",value:function pathC(Tn,Un){for(var Qn=this.pathParser;!Qn.isCommandOrEnd();){var Dn=Qn.current,Hn=Qn.getPoint(),Gn=Qn.getAsControlPoint(),zn=Qn.getAsCurrentPoint();Qn.addMarker(zn,Gn,Hn),Un.addBezierCurve(Dn.x,Dn.y,Hn.x,Hn.y,Gn.x,Gn.y,zn.x,zn.y),Tn&&Tn.bezierCurveTo(Hn.x,Hn.y,Gn.x,Gn.y,zn.x,zn.y)}}},{key:"pathS",value:function pathS(Tn,Un){for(var Qn=this.pathParser;!Qn.isCommandOrEnd();){var Dn=Qn.current,Hn=Qn.getReflectedControlPoint(),Gn=Qn.getAsControlPoint(),zn=Qn.getAsCurrentPoint();Qn.addMarker(zn,Gn,Hn),Un.addBezierCurve(Dn.x,Dn.y,Hn.x,Hn.y,Gn.x,Gn.y,zn.x,zn.y),Tn&&Tn.bezierCurveTo(Hn.x,Hn.y,Gn.x,Gn.y,zn.x,zn.y)}}},{key:"pathQ",value:function pathQ(Tn,Un){for(var Qn=this.pathParser;!Qn.isCommandOrEnd();){var Dn=Qn.current,Hn=Qn.getAsControlPoint(),Gn=Qn.getAsCurrentPoint();Qn.addMarker(Gn,Hn,Hn),Un.addQuadraticCurve(Dn.x,Dn.y,Hn.x,Hn.y,Gn.x,Gn.y),Tn&&Tn.quadraticCurveTo(Hn.x,Hn.y,Gn.x,Gn.y)}}},{key:"pathT",value:function pathT(Tn,Un){for(var Qn=this.pathParser;!Qn.isCommandOrEnd();){var Dn=Qn.current,Hn=Qn.getReflectedControlPoint();Qn.control=Hn;var Gn=Qn.getAsCurrentPoint();Qn.addMarker(Gn,Hn,Hn),Un.addQuadraticCurve(Dn.x,Dn.y,Hn.x,Hn.y,Gn.x,Gn.y),Tn&&Tn.quadraticCurveTo(Hn.x,Hn.y,Gn.x,Gn.y)}}},{key:"pathA",value:function pathA(Tn,Un){for(var Qn=this.pathParser;!Qn.isCommandOrEnd();){var Dn=Qn.current,Hn=Qn.getScalar(),Gn=Qn.getScalar(),zn=Qn.getScalar()*(Math.PI/180),Vn=Qn.getScalar(),Kn=Qn.getScalar(),Wn=Qn.getAsCurrentPoint(),Xn=new _y(Math.cos(zn)*(Dn.x-Wn.x)/2+Math.sin(zn)*(Dn.y-Wn.y)/2,-Math.sin(zn)*(Dn.x-Wn.x)/2+Math.cos(zn)*(Dn.y-Wn.y)/2),Yn=Math.pow(Xn.x,2)/Math.pow(Hn,2)+Math.pow(Xn.y,2)/Math.pow(Gn,2);Yn>1&&(Hn*=Math.sqrt(Yn),Gn*=Math.sqrt(Yn));var Jn=(Vn===Kn?-1:1)*Math.sqrt((Math.pow(Hn,2)*Math.pow(Gn,2)-Math.pow(Hn,2)*Math.pow(Xn.y,2)-Math.pow(Gn,2)*Math.pow(Xn.x,2))/(Math.pow(Hn,2)*Math.pow(Xn.y,2)+Math.pow(Gn,2)*Math.pow(Xn.x,2)));isNaN(Jn)&&(Jn=0);var $n=new _y(Jn*Hn*Xn.y/Gn,Jn*-Gn*Xn.x/Hn),Zn=new _y((Dn.x+Wn.x)/2+Math.cos(zn)*$n.x-Math.sin(zn)*$n.y,(Dn.y+Wn.y)/2+Math.sin(zn)*$n.x+Math.cos(zn)*$n.y),er=vectorsAngle([1,0],[(Xn.x-$n.x)/Hn,(Xn.y-$n.y)/Gn]),tr=[(Xn.x-$n.x)/Hn,(Xn.y-$n.y)/Gn],nr=[(-Xn.x-$n.x)/Hn,(-Xn.y-$n.y)/Gn],rr=vectorsAngle(tr,nr);vectorsRatio(tr,nr)<=-1&&(rr=Math.PI),vectorsRatio(tr,nr)>=1&&(rr=0);var ir=1-Kn?1:-1,ar=er+ir*(rr/2),or=new _y(Zn.x+Hn*Math.cos(ar),Zn.y+Gn*Math.sin(ar));if(Qn.addMarkerAngle(or,ar-ir*Math.PI/2),Qn.addMarkerAngle(Wn,ar-ir*Math.PI),Un.addPoint(Wn.x,Wn.y),Tn&&!isNaN(er)&&!isNaN(rr)){var sr=Hn>Gn?Hn:Gn,lr=Hn>Gn?1:Hn/Gn,cr=Hn>Gn?Gn/Hn:1;Tn.translate(Zn.x,Zn.y),Tn.rotate(zn),Tn.scale(lr,cr),Tn.arc(0,0,sr,er,er+rr,Boolean(1-Kn)),Tn.scale(1/lr,1/cr),Tn.rotate(-zn),Tn.translate(-Zn.x,-Zn.y)}}}},{key:"pathZ",value:function pathZ(Tn,Un){var Qn=this.pathParser;Tn&&Un.x1!==Un.x2&&Un.y1!==Un.y2&&Tn.closePath(),Qn.current=Qn.start}}]),PathElement}();function _isNativeReflectConstruct$9(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var zy=function(Tn){Jv(SVGElement,Qy);var Un=function _createSuper$9(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$9()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(SVGElement);function SVGElement(){var Tn;return Pv(this,SVGElement),(Tn=Un.apply(this,arguments)).type="svg",Tn.root=!1,Tn}return Fv(SVGElement,[{key:"clearContext",value:function clearContext(Tn){ry(Xv(SVGElement.prototype),"clearContext",this).call(this,Tn),this.document.screen.viewPort.removeCurrent()}},{key:"setContext",value:function setContext(Tn){var Un=this.document,Qn=Un.screen,Dn=Un.window,Hn=Tn.canvas;if(Qn.setDefaults(Tn),Hn.style&&void 0!==Tn.font&&Dn&&void 0!==Dn.getComputedStyle){Tn.font=Dn.getComputedStyle(Hn).getPropertyValue("font");var Gn=new gy(Un,"fontSize",Ry.parse(Tn.font).fontSize);Gn.hasValue()&&(Un.rootEmSize=Gn.getPixels("y"),Un.emSize=Un.rootEmSize)}ry(Xv(SVGElement.prototype),"setContext",this).call(this,Tn),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0),Tn.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y"));var zn=Qn.viewPort,Vn=zn.width,Kn=zn.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var Wn=this.getAttribute("refX"),Xn=this.getAttribute("refY"),Yn=this.getAttribute("viewBox"),Jn=Yn.hasValue()?toNumbers(Yn.getString()):null,$n=!this.root&&"visible"!==this.getAttribute("overflow").getValue("hidden"),Zn=0,er=0,tr=0,nr=0;Jn&&(Zn=Jn[0],er=Jn[1]),this.root||(Vn=this.getStyle("width").getPixels("x"),Kn=this.getStyle("height").getPixels("y"),"marker"===this.type&&(tr=Zn,nr=er,Zn=0,er=0)),Qn.viewPort.setCurrent(Vn,Kn),Jn&&(Vn=Jn[2],Kn=Jn[3]),Un.setViewBox({ctx:Tn,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:Qn.viewPort.width,desiredWidth:Vn,height:Qn.viewPort.height,desiredHeight:Kn,minX:Zn,minY:er,refX:Wn.getValue(),refY:Xn.getValue(),clip:$n,clipX:tr,clipY:nr}),Jn&&(Qn.viewPort.removeCurrent(),Qn.viewPort.setCurrent(Vn,Kn))}},{key:"resize",value:function resize(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn,Qn=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Dn=this.getAttribute("width",!0),Hn=this.getAttribute("height",!0),Gn=this.getAttribute("viewBox"),zn=this.getAttribute("style"),Vn=Dn.getNumber(0),Kn=Hn.getNumber(0);if(Qn)if("string"==typeof Qn)this.getAttribute("preserveAspectRatio",!0).setValue(Qn);else{var Wn=this.getAttribute("preserveAspectRatio");Wn.hasValue()&&Wn.setValue(Wn.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(Dn.setValue(Tn),Hn.setValue(Un),Gn.hasValue()||Gn.setValue("0 0 ".concat(Vn||Tn," ").concat(Kn||Un)),zn.hasValue()){var Xn=this.getStyle("width"),Yn=this.getStyle("height");Xn.hasValue()&&Xn.setValue("".concat(Tn,"px")),Yn.hasValue()&&Yn.setValue("".concat(Un,"px"))}}}]),SVGElement}();function _isNativeReflectConstruct$a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Vy=function(Tn){Jv(RectElement,Gy);var Un=function _createSuper$a(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$a()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(RectElement);function RectElement(){var Tn;return Pv(this,RectElement),(Tn=Un.apply(this,arguments)).type="rect",Tn}return Fv(RectElement,[{key:"path",value:function path(Tn){var Un=this.getAttribute("x").getPixels("x"),Qn=this.getAttribute("y").getPixels("y"),Dn=this.getStyle("width").getPixels("x"),Hn=this.getStyle("height").getPixels("y"),Gn=this.getAttribute("rx"),zn=this.getAttribute("ry"),Vn=Gn.getPixels("x"),Kn=zn.getPixels("y");if(Gn.hasValue()&&!zn.hasValue()&&(Kn=Vn),zn.hasValue()&&!Gn.hasValue()&&(Vn=Kn),Vn=Math.min(Vn,Dn/2),Kn=Math.min(Kn,Hn/2),Tn){var Wn=(Math.sqrt(2)-1)/3*4;Tn.beginPath(),Hn>0&&Dn>0&&(Tn.moveTo(Un+Vn,Qn),Tn.lineTo(Un+Dn-Vn,Qn),Tn.bezierCurveTo(Un+Dn-Vn+Wn*Vn,Qn,Un+Dn,Qn+Kn-Wn*Kn,Un+Dn,Qn+Kn),Tn.lineTo(Un+Dn,Qn+Hn-Kn),Tn.bezierCurveTo(Un+Dn,Qn+Hn-Kn+Wn*Kn,Un+Dn-Vn+Wn*Vn,Qn+Hn,Un+Dn-Vn,Qn+Hn),Tn.lineTo(Un+Vn,Qn+Hn),Tn.bezierCurveTo(Un+Vn-Wn*Vn,Qn+Hn,Un,Qn+Hn-Kn+Wn*Kn,Un,Qn+Hn-Kn),Tn.lineTo(Un,Qn+Kn),Tn.bezierCurveTo(Un,Qn+Kn-Wn*Kn,Un+Vn-Wn*Vn,Qn,Un+Vn,Qn),Tn.closePath())}return new My(Un,Qn,Un+Dn,Qn+Hn)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}();function _isNativeReflectConstruct$b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Ky=function(Tn){Jv(CircleElement,Gy);var Un=function _createSuper$b(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$b()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(CircleElement);function CircleElement(){var Tn;return Pv(this,CircleElement),(Tn=Un.apply(this,arguments)).type="circle",Tn}return Fv(CircleElement,[{key:"path",value:function path(Tn){var Un=this.getAttribute("cx").getPixels("x"),Qn=this.getAttribute("cy").getPixels("y"),Dn=this.getAttribute("r").getPixels();return Tn&&Dn>0&&(Tn.beginPath(),Tn.arc(Un,Qn,Dn,0,2*Math.PI,!1),Tn.closePath()),new My(Un-Dn,Qn-Dn,Un+Dn,Qn+Dn)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}();function _isNativeReflectConstruct$c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var qy=function(Tn){Jv(EllipseElement,Gy);var Un=function _createSuper$c(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$c()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(EllipseElement);function EllipseElement(){var Tn;return Pv(this,EllipseElement),(Tn=Un.apply(this,arguments)).type="ellipse",Tn}return Fv(EllipseElement,[{key:"path",value:function path(Tn){var Un=(Math.sqrt(2)-1)/3*4,Qn=this.getAttribute("rx").getPixels("x"),Dn=this.getAttribute("ry").getPixels("y"),Hn=this.getAttribute("cx").getPixels("x"),Gn=this.getAttribute("cy").getPixels("y");return Tn&&Qn>0&&Dn>0&&(Tn.beginPath(),Tn.moveTo(Hn+Qn,Gn),Tn.bezierCurveTo(Hn+Qn,Gn+Un*Dn,Hn+Un*Qn,Gn+Dn,Hn,Gn+Dn),Tn.bezierCurveTo(Hn-Un*Qn,Gn+Dn,Hn-Qn,Gn+Un*Dn,Hn-Qn,Gn),Tn.bezierCurveTo(Hn-Qn,Gn-Un*Dn,Hn-Un*Qn,Gn-Dn,Hn,Gn-Dn),Tn.bezierCurveTo(Hn+Un*Qn,Gn-Dn,Hn+Qn,Gn-Un*Dn,Hn+Qn,Gn),Tn.closePath()),new My(Hn-Qn,Gn-Dn,Hn+Qn,Gn+Dn)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}();function _isNativeReflectConstruct$d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Wy=function(Tn){Jv(LineElement,Gy);var Un=function _createSuper$d(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$d()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(LineElement);function LineElement(){var Tn;return Pv(this,LineElement),(Tn=Un.apply(this,arguments)).type="line",Tn}return Fv(LineElement,[{key:"getPoints",value:function getPoints(){return[new _y(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new _y(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(Tn){var Un=this.getPoints(),Qn=Ev(Un,2),Dn=Qn[0],Hn=Dn.x,Gn=Dn.y,zn=Qn[1],Vn=zn.x,Kn=zn.y;return Tn&&(Tn.beginPath(),Tn.moveTo(Hn,Gn),Tn.lineTo(Vn,Kn)),new My(Hn,Gn,Vn,Kn)}},{key:"getMarkers",value:function getMarkers(){var Tn=this.getPoints(),Un=Ev(Tn,2),Qn=Un[0],Dn=Un[1],Hn=Qn.angleTo(Dn);return[[Qn,Hn],[Dn,Hn]]}}]),LineElement}();function _isNativeReflectConstruct$e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Xy=function(Tn){Jv(PolylineElement,Gy);var Un=function _createSuper$e(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$e()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(PolylineElement);function PolylineElement(Tn,Qn,Dn){var Hn;return Pv(this,PolylineElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="polyline",Hn.points=[],Hn.points=_y.parsePath(Hn.getAttribute("points").getString()),Hn}return Fv(PolylineElement,[{key:"path",value:function path(Tn){var Un=this.points,Qn=Ev(Un,1)[0],Dn=Qn.x,Hn=Qn.y,Gn=new My(Dn,Hn);return Tn&&(Tn.beginPath(),Tn.moveTo(Dn,Hn)),Un.forEach((function(Un){var Qn=Un.x,Dn=Un.y;Gn.addPoint(Qn,Dn),Tn&&Tn.lineTo(Qn,Dn)})),Gn}},{key:"getMarkers",value:function getMarkers(){var Tn=this.points,Un=Tn.length-1,Qn=[];return Tn.forEach((function(Dn,Hn){Hn!==Un&&Qn.push([Dn,Dn.angleTo(Tn[Hn+1])])})),Qn.length>0&&Qn.push([Tn[Tn.length-1],Qn[Qn.length-1][1]]),Qn}}]),PolylineElement}();function _isNativeReflectConstruct$f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Yy=function(Tn){Jv(PolygonElement,Xy);var Un=function _createSuper$f(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$f()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(PolygonElement);function PolygonElement(){var Tn;return Pv(this,PolygonElement),(Tn=Un.apply(this,arguments)).type="polygon",Tn}return Fv(PolygonElement,[{key:"path",value:function path(Tn){var Un=ry(Xv(PolygonElement.prototype),"path",this).call(this,Tn),Qn=Ev(this.points,1)[0],Dn=Qn.x,Hn=Qn.y;return Tn&&(Tn.lineTo(Dn,Hn),Tn.closePath()),Un}}]),PolygonElement}();function _isNativeReflectConstruct$g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Jy=function(Tn){Jv(PatternElement,Uy);var Un=function _createSuper$g(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$g()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(PatternElement);function PatternElement(){var Tn;return Pv(this,PatternElement),(Tn=Un.apply(this,arguments)).type="pattern",Tn}return Fv(PatternElement,[{key:"createPattern",value:function createPattern(Tn,Un,Qn){var Dn=this.getStyle("width").getPixels("x",!0),Hn=this.getStyle("height").getPixels("y",!0),Gn=new zy(this.document,null);Gn.attributes.viewBox=new gy(this.document,"viewBox",this.getAttribute("viewBox").getValue()),Gn.attributes.width=new gy(this.document,"width","".concat(Dn,"px")),Gn.attributes.height=new gy(this.document,"height","".concat(Hn,"px")),Gn.attributes.transform=new gy(this.document,"transform",this.getAttribute("patternTransform").getValue()),Gn.children=this.children;var zn=this.document.createCanvas(Dn,Hn),Vn=zn.getContext("2d"),Kn=this.getAttribute("x"),Wn=this.getAttribute("y");Kn.hasValue()&&Wn.hasValue()&&Vn.translate(Kn.getPixels("x",!0),Wn.getPixels("y",!0)),Qn.hasValue()?this.styles["fill-opacity"]=Qn:Reflect.deleteProperty(this.styles,"fill-opacity");for(var Xn=-1;Xn<=1;Xn++)for(var Yn=-1;Yn<=1;Yn++)Vn.save(),Gn.attributes.x=new gy(this.document,"x",Xn*zn.width),Gn.attributes.y=new gy(this.document,"y",Yn*zn.height),Gn.render(Vn),Vn.restore();return Tn.createPattern(zn,"repeat")}}]),PatternElement}();function _isNativeReflectConstruct$h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var $y=function(Tn){Jv(MarkerElement,Uy);var Un=function _createSuper$h(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$h()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(MarkerElement);function MarkerElement(){var Tn;return Pv(this,MarkerElement),(Tn=Un.apply(this,arguments)).type="marker",Tn}return Fv(MarkerElement,[{key:"render",value:function render(Tn,Un,Qn){if(Un){var Dn=Un.x,Hn=Un.y,Gn=this.getAttribute("orient").getValue("auto"),zn=this.getAttribute("markerUnits").getValue("strokeWidth");Tn.translate(Dn,Hn),"auto"===Gn&&Tn.rotate(Qn),"strokeWidth"===zn&&Tn.scale(Tn.lineWidth,Tn.lineWidth),Tn.save();var Vn=new zy(this.document,null);Vn.type=this.type,Vn.attributes.viewBox=new gy(this.document,"viewBox",this.getAttribute("viewBox").getValue()),Vn.attributes.refX=new gy(this.document,"refX",this.getAttribute("refX").getValue()),Vn.attributes.refY=new gy(this.document,"refY",this.getAttribute("refY").getValue()),Vn.attributes.width=new gy(this.document,"width",this.getAttribute("markerWidth").getValue()),Vn.attributes.height=new gy(this.document,"height",this.getAttribute("markerHeight").getValue()),Vn.attributes.overflow=new gy(this.document,"overflow",this.getAttribute("overflow").getValue()),Vn.attributes.fill=new gy(this.document,"fill",this.getAttribute("fill").getColor("black")),Vn.attributes.stroke=new gy(this.document,"stroke",this.getAttribute("stroke").getValue("none")),Vn.children=this.children,Vn.render(Tn),Tn.restore(),"strokeWidth"===zn&&Tn.scale(1/Tn.lineWidth,1/Tn.lineWidth),"auto"===Gn&&Tn.rotate(-Qn),Tn.translate(-Dn,-Hn)}}}]),MarkerElement}();function _isNativeReflectConstruct$i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Zy=function(Tn){Jv(DefsElement,Uy);var Un=function _createSuper$i(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$i()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(DefsElement);function DefsElement(){var Tn;return Pv(this,DefsElement),(Tn=Un.apply(this,arguments)).type="defs",Tn}return Fv(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}();function _isNativeReflectConstruct$j(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var eb=function(Tn){Jv(GElement,Qy);var Un=function _createSuper$j(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$j()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(GElement);function GElement(){var Tn;return Pv(this,GElement),(Tn=Un.apply(this,arguments)).type="g",Tn}return Fv(GElement,[{key:"getBoundingBox",value:function getBoundingBox(Tn){var Un=new My;return this.children.forEach((function(Qn){Un.addBoundingBox(Qn.getBoundingBox(Tn))})),Un}}]),GElement}();function _isNativeReflectConstruct$k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var tb=function(Tn){Jv(GradientElement,Uy);var Un=function _createSuper$k(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$k()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(GradientElement);function GradientElement(Tn,Qn,Dn){var Hn;Pv(this,GradientElement),(Hn=Un.call(this,Tn,Qn,Dn)).attributesToInherit=["gradientUnits"],Hn.stops=[];var Gn=qv(Hn),zn=Gn.stops;return Gn.children.forEach((function(Tn){"stop"===Tn.type&&zn.push(Tn)})),Hn}return Fv(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(Tn,Un,Qn){var Dn=this,Hn=this;this.getHrefAttribute().hasValue()&&(Hn=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(Hn));var Gn=Hn.stops,zn=this.getGradient(Tn,Un);if(!zn)return this.addParentOpacity(Qn,Gn[Gn.length-1].color);if(Gn.forEach((function(Tn){zn.addColorStop(Tn.offset,Dn.addParentOpacity(Qn,Tn.color))})),this.getAttribute("gradientTransform").hasValue()){var Vn=this.document,Kn=Vn.screen,Wn=Kn.MAX_VIRTUAL_PIXELS,Xn=Kn.viewPort,Yn=Ev(Xn.viewPorts,1)[0],Jn=new Vy(Vn,null);Jn.attributes.x=new gy(Vn,"x",-Wn/3),Jn.attributes.y=new gy(Vn,"y",-Wn/3),Jn.attributes.width=new gy(Vn,"width",Wn),Jn.attributes.height=new gy(Vn,"height",Wn);var $n=new eb(Vn,null);$n.attributes.transform=new gy(Vn,"transform",this.getAttribute("gradientTransform").getValue()),$n.children=[Jn];var Zn=new zy(Vn,null);Zn.attributes.x=new gy(Vn,"x",0),Zn.attributes.y=new gy(Vn,"y",0),Zn.attributes.width=new gy(Vn,"width",Yn.width),Zn.attributes.height=new gy(Vn,"height",Yn.height),Zn.children=[$n];var er=Vn.createCanvas(Yn.width,Yn.height),tr=er.getContext("2d");return tr.fillStyle=zn,Zn.render(tr),tr.createPattern(er,"no-repeat")}return zn}},{key:"inheritStopContainer",value:function inheritStopContainer(Tn){var Un=this;this.attributesToInherit.forEach((function(Qn){!Un.getAttribute(Qn).hasValue()&&Tn.getAttribute(Qn).hasValue()&&Un.getAttribute(Qn,!0).setValue(Tn.getAttribute(Qn).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(Tn,Un){return Tn.hasValue()?new gy(this.document,"color",Un).addOpacity(Tn).getColor():Un}}]),GradientElement}();function _isNativeReflectConstruct$l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var nb=function(Tn){Jv(LinearGradientElement,tb);var Un=function _createSuper$l(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$l()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(LinearGradientElement);function LinearGradientElement(Tn,Qn,Dn){var Hn;return Pv(this,LinearGradientElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="linearGradient",Hn.attributesToInherit.push("x1","y1","x2","y2"),Hn}return Fv(LinearGradientElement,[{key:"getGradient",value:function getGradient(Tn,Un){var Qn="objectBoundingBox"===this.getGradientUnits(),Dn=Qn?Un.getBoundingBox(Tn):null;if(Qn&&!Dn)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var Hn=Qn?Dn.x+Dn.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),Gn=Qn?Dn.y+Dn.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),zn=Qn?Dn.x+Dn.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),Vn=Qn?Dn.y+Dn.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return Hn===zn&&Gn===Vn?null:Tn.createLinearGradient(Hn,Gn,zn,Vn)}}]),LinearGradientElement}();function _isNativeReflectConstruct$m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var rb=function(Tn){Jv(RadialGradientElement,tb);var Un=function _createSuper$m(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$m()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(RadialGradientElement);function RadialGradientElement(Tn,Qn,Dn){var Hn;return Pv(this,RadialGradientElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="radialGradient",Hn.attributesToInherit.push("cx","cy","r","fx","fy","fr"),Hn}return Fv(RadialGradientElement,[{key:"getGradient",value:function getGradient(Tn,Un){var Qn="objectBoundingBox"===this.getGradientUnits(),Dn=Un.getBoundingBox(Tn);if(Qn&&!Dn)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var Hn=Qn?Dn.x+Dn.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),Gn=Qn?Dn.y+Dn.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),zn=Hn,Vn=Gn;this.getAttribute("fx").hasValue()&&(zn=Qn?Dn.x+Dn.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(Vn=Qn?Dn.y+Dn.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var Kn=Qn?(Dn.width+Dn.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),Wn=this.getAttribute("fr").getPixels();return Tn.createRadialGradient(zn,Vn,Wn,Hn,Gn,Kn)}}]),RadialGradientElement}();function _isNativeReflectConstruct$n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var ib=function(Tn){Jv(StopElement,Uy);var Un=function _createSuper$n(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$n()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(StopElement);function StopElement(Tn,Qn,Dn){var Hn;Pv(this,StopElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="stop";var Gn=Math.max(0,Math.min(1,Hn.getAttribute("offset").getNumber())),zn=Hn.getStyle("stop-opacity"),Vn=Hn.getStyle("stop-color",!0);return""===Vn.getString()&&Vn.setValue("#000"),zn.hasValue()&&(Vn=Vn.addOpacity(zn)),Hn.offset=Gn,Hn.color=Vn.getColor(),Hn}return StopElement}();function _isNativeReflectConstruct$o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var ab=function(Tn){Jv(AnimateElement,Uy);var Un=function _createSuper$o(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$o()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(AnimateElement);function AnimateElement(Tn,Qn,Dn){var Hn;return Pv(this,AnimateElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="animate",Hn.duration=0,Hn.initialValue=null,Hn.initialUnits="",Hn.removed=!1,Hn.frozen=!1,Tn.screen.animations.push(qv(Hn)),Hn.begin=Hn.getAttribute("begin").getMilliseconds(),Hn.maxDuration=Hn.begin+Hn.getAttribute("dur").getMilliseconds(),Hn.from=Hn.getAttribute("from"),Hn.to=Hn.getAttribute("to"),Hn.values=Hn.getAttribute("values"),Hn.values.hasValue()&&Hn.values.setValue(Hn.values.getString().split(";")),Hn}return Fv(AnimateElement,[{key:"getProperty",value:function getProperty(){var Tn=this.getAttribute("attributeType").getString(),Un=this.getAttribute("attributeName").getString();return"CSS"===Tn?this.parent.getStyle(Un,!0):this.parent.getAttribute(Un,!0)}},{key:"calcValue",value:function calcValue(){var Tn=this.initialUnits,Un=this.getProgress(),Qn=Un.progress,Dn=Un.from,Hn=Un.to,Gn=Dn.getNumber()+(Hn.getNumber()-Dn.getNumber())*Qn;return"%"===Tn&&(Gn*=100),"".concat(Gn).concat(Tn)}},{key:"update",value:function update(Tn){var Un=this.parent,Qn=this.getProperty();if(this.initialValue||(this.initialValue=Qn.getString(),this.initialUnits=Qn.getUnits()),this.duration>this.maxDuration){var Dn=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==Dn||this.frozen){if("remove"===Dn&&!this.removed)return this.removed=!0,Qn.setValue(Un.animationFrozen?Un.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,Un.animationFrozen=!0,Un.animationFrozenValue=Qn.getString();return!1}this.duration+=Tn;var Hn=!1;if(this.begin<this.duration){var Gn=this.calcValue(),zn=this.getAttribute("type");if(zn.hasValue()){var Vn=zn.getString();Gn="".concat(Vn,"(").concat(Gn,")")}Qn.setValue(Gn),Hn=!0}return Hn}},{key:"getProgress",value:function getProgress(){var Tn=this.document,Un=this.values,Qn={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(Un.hasValue()){var Dn=Qn.progress*(Un.getValue().length-1),Hn=Math.floor(Dn),Gn=Math.ceil(Dn);Qn.from=new gy(Tn,"from",parseFloat(Un.getValue()[Hn])),Qn.to=new gy(Tn,"to",parseFloat(Un.getValue()[Gn])),Qn.progress=(Dn-Hn)/(Gn-Hn)}else Qn.from=this.from,Qn.to=this.to;return Qn}}]),AnimateElement}();function _isNativeReflectConstruct$p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var ob=function(Tn){Jv(AnimateColorElement,ab);var Un=function _createSuper$p(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$p()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(AnimateColorElement);function AnimateColorElement(){var Tn;return Pv(this,AnimateColorElement),(Tn=Un.apply(this,arguments)).type="animateColor",Tn}return Fv(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var Tn=this.getProgress(),Un=Tn.progress,Qn=Tn.from,Dn=Tn.to,Hn=new Vv(Qn.getColor()),Gn=new Vv(Dn.getColor());if(Hn.ok&&Gn.ok){var zn=Hn.r+(Gn.r-Hn.r)*Un,Vn=Hn.g+(Gn.g-Hn.g)*Un,Kn=Hn.b+(Gn.b-Hn.b)*Un;return"rgb(".concat(parseInt(zn,10),", ").concat(parseInt(Vn,10),", ").concat(parseInt(Kn,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}();function _isNativeReflectConstruct$q(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var sb=function(Tn){Jv(AnimateTransformElement,ab);var Un=function _createSuper$q(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$q()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(AnimateTransformElement);function AnimateTransformElement(){var Tn;return Pv(this,AnimateTransformElement),(Tn=Un.apply(this,arguments)).type="animateTransform",Tn}return Fv(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var Tn=this.getProgress(),Un=Tn.progress,Qn=Tn.from,Dn=Tn.to,Hn=toNumbers(Qn.getString()),Gn=toNumbers(Dn.getString());return Hn.map((function(Tn,Qn){return Tn+(Gn[Qn]-Tn)*Un})).join(" ")}}]),AnimateTransformElement}();function _createForOfIteratorHelper$1(Tn){if("undefined"==typeof Symbol||null==Tn[Symbol.iterator]){if(Array.isArray(Tn)||(Tn=function _unsupportedIterableToArray$2(Tn,Un){if(!Tn)return;if("string"==typeof Tn)return _arrayLikeToArray$2(Tn,Un);var Qn=Object.prototype.toString.call(Tn).slice(8,-1);"Object"===Qn&&Tn.constructor&&(Qn=Tn.constructor.name);if("Map"===Qn||"Set"===Qn)return Array.from(Qn);if("Arguments"===Qn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qn))return _arrayLikeToArray$2(Tn,Un)}(Tn))){var Un=0,Qn=function F(){};return{s:Qn,n:function n(){return Un>=Tn.length?{done:!0}:{done:!1,value:Tn[Un++]}},e:function e(Tn){throw Tn},f:Qn}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Dn,Hn,Gn=!0,zn=!1;return{s:function s(){Dn=Tn[Symbol.iterator]()},n:function n(){var Tn=Dn.next();return Gn=Tn.done,Tn},e:function e(Tn){zn=!0,Hn=Tn},f:function f(){try{Gn||null==Dn.return||Dn.return()}finally{if(zn)throw Hn}}}}function _arrayLikeToArray$2(Tn,Un){(null==Un||Un>Tn.length)&&(Un=Tn.length);for(var Qn=0,Dn=new Array(Un);Qn<Un;Qn++)Dn[Qn]=Tn[Qn];return Dn}function _isNativeReflectConstruct$r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var lb=function(Tn){Jv(FontElement,Uy);var Un=function _createSuper$r(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$r()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(FontElement);function FontElement(Tn,Qn,Dn){var Hn;Pv(this,FontElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="font",Hn.glyphs={},Hn.horizAdvX=Hn.getAttribute("horiz-adv-x").getNumber();var Gn,zn=Tn.definitions,Vn=_createForOfIteratorHelper$1(qv(Hn).children);try{for(Vn.s();!(Gn=Vn.n()).done;){var Kn=Gn.value;switch(Kn.type){case"font-face":Hn.fontFace=Kn;var Wn=Kn.getStyle("font-family");Wn.hasValue()&&(zn[Wn.getString()]=qv(Hn));break;case"missing-glyph":Hn.missingGlyph=Kn;break;case"glyph":var Xn=Kn;Xn.arabicForm?(Hn.isRTL=!0,Hn.isArabic=!0,void 0===Hn.glyphs[Xn.unicode]&&(Hn.glyphs[Xn.unicode]={}),Hn.glyphs[Xn.unicode][Xn.arabicForm]=Xn):Hn.glyphs[Xn.unicode]=Xn}}}catch(Tn){Vn.e(Tn)}finally{Vn.f()}return Hn}return Fv(FontElement,[{key:"render",value:function render(){}}]),FontElement}();function _isNativeReflectConstruct$s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var ub=function(Tn){Jv(FontFaceElement,Uy);var Un=function _createSuper$s(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$s()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(FontFaceElement);function FontFaceElement(Tn,Qn,Dn){var Hn;return Pv(this,FontFaceElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="font-face",Hn.ascent=Hn.getAttribute("ascent").getNumber(),Hn.descent=Hn.getAttribute("descent").getNumber(),Hn.unitsPerEm=Hn.getAttribute("units-per-em").getNumber(),Hn}return FontFaceElement}();function _isNativeReflectConstruct$t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var db=function(Tn){Jv(MissingGlyphElement,Gy);var Un=function _createSuper$t(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$t()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(MissingGlyphElement);function MissingGlyphElement(){var Tn;return Pv(this,MissingGlyphElement),(Tn=Un.apply(this,arguments)).type="missing-glyph",Tn.horizAdvX=0,Tn}return MissingGlyphElement}();function _isNativeReflectConstruct$u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var hb=function(Tn){Jv(GlyphElement,Gy);var Un=function _createSuper$u(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$u()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(GlyphElement);function GlyphElement(Tn,Qn,Dn){var Hn;return Pv(this,GlyphElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="glyph",Hn.horizAdvX=Hn.getAttribute("horiz-adv-x").getNumber(),Hn.unicode=Hn.getAttribute("unicode").getString(),Hn.arabicForm=Hn.getAttribute("arabic-form").getString(),Hn}return GlyphElement}();function _isNativeReflectConstruct$v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var pb=function(Tn){Jv(TRefElement,Oy);var Un=function _createSuper$v(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$v()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(TRefElement);function TRefElement(){var Tn;return Pv(this,TRefElement),(Tn=Un.apply(this,arguments)).type="tref",Tn}return Fv(TRefElement,[{key:"getText",value:function getText(){var Tn=this.getHrefAttribute().getDefinition();if(Tn){var Un=Tn.children[0];if(Un)return Un.getText()}return""}}]),TRefElement}();function _isNativeReflectConstruct$w(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Ab=function(Tn){Jv(AElement,Oy);var Un=function _createSuper$w(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$w()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(AElement);function AElement(Tn,Qn,Dn){var Hn;Pv(this,AElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="a";var Gn=Qn.childNodes,zn=Gn[0],Vn=Gn.length>0&&Array.from(Gn).every((function(Tn){return 3===Tn.nodeType}));return Hn.hasText=Vn,Hn.text=Vn?Hn.getTextFromNode(zn):"",Hn}return Fv(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(Tn){if(this.hasText){ry(Xv(AElement.prototype),"renderChildren",this).call(this,Tn);var Un=this.document,Qn=this.x,Dn=this.y,Hn=Un.screen.mouse,Gn=new gy(Un,"fontSize",Ry.parse(Un.ctx.font).fontSize);Hn.isWorking()&&Hn.checkBoundingBox(this,new My(Qn,Dn-Gn.getPixels("y"),Qn+this.measureText(Tn),Dn))}else if(this.children.length>0){var zn=new eb(this.document,null);zn.children=this.children,zn.parent=this,zn.render(Tn)}}},{key:"onClick",value:function onClick(){var Tn=this.document.window;Tn&&Tn.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}]),AElement}();function _createForOfIteratorHelper$1$1(Tn){if("undefined"==typeof Symbol||null==Tn[Symbol.iterator]){if(Array.isArray(Tn)||(Tn=function _unsupportedIterableToArray$1$1(Tn,Un){if(!Tn)return;if("string"==typeof Tn)return _arrayLikeToArray$1$1(Tn,Un);var Qn=Object.prototype.toString.call(Tn).slice(8,-1);"Object"===Qn&&Tn.constructor&&(Qn=Tn.constructor.name);if("Map"===Qn||"Set"===Qn)return Array.from(Qn);if("Arguments"===Qn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qn))return _arrayLikeToArray$1$1(Tn,Un)}(Tn))){var Un=0,Qn=function F(){};return{s:Qn,n:function n(){return Un>=Tn.length?{done:!0}:{done:!1,value:Tn[Un++]}},e:function e(Tn){throw Tn},f:Qn}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Dn,Hn,Gn=!0,zn=!1;return{s:function s(){Dn=Tn[Symbol.iterator]()},n:function n(){var Tn=Dn.next();return Gn=Tn.done,Tn},e:function e(Tn){zn=!0,Hn=Tn},f:function f(){try{Gn||null==Dn.return||Dn.return()}finally{if(zn)throw Hn}}}}function _arrayLikeToArray$1$1(Tn,Un){(null==Un||Un>Tn.length)&&(Un=Tn.length);for(var Qn=0,Dn=new Array(Un);Qn<Un;Qn++)Dn[Qn]=Tn[Qn];return Dn}function _isNativeReflectConstruct$x(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var fb=function(Tn){Jv(TextPathElement,Oy);var Un=function _createSuper$x(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$x()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(TextPathElement);function TextPathElement(Tn,Qn,Dn){var Hn;Pv(this,TextPathElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="textPath",Hn.textWidth=0,Hn.textHeight=0,Hn.pathLength=-1,Hn.glyphInfo=null,Hn.letterSpacingCache=[],Hn.measuresCache=new Map([["",0]]);var Gn=Hn.getHrefAttribute().getDefinition();return Hn.text=Hn.getTextFromNode(),Hn.dataArray=Hn.parsePathData(Gn),Hn}return Fv(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(Tn){var Un=this.dataArray;Tn&&Tn.beginPath(),Un.forEach((function(Un){var Qn=Un.command,Dn=Un.points;switch(Qn){case"L":Tn&&Tn.lineTo(Dn[0],Dn[1]);break;case"M":Tn&&Tn.moveTo(Dn[0],Dn[1]);break;case"C":Tn&&Tn.bezierCurveTo(Dn[0],Dn[1],Dn[2],Dn[3],Dn[4],Dn[5]);break;case"Q":Tn&&Tn.quadraticCurveTo(Dn[0],Dn[1],Dn[2],Dn[3]);break;case"A":var Hn=Dn[0],Gn=Dn[1],zn=Dn[2],Vn=Dn[3],Kn=Dn[4],Wn=Dn[5],Xn=Dn[6],Yn=Dn[7],Jn=zn>Vn?zn:Vn,$n=zn>Vn?1:zn/Vn,Zn=zn>Vn?Vn/zn:1;Tn&&(Tn.translate(Hn,Gn),Tn.rotate(Xn),Tn.scale($n,Zn),Tn.arc(0,0,Jn,Kn,Kn+Wn,Boolean(1-Yn)),Tn.scale(1/$n,1/Zn),Tn.rotate(-Xn),Tn.translate(-Hn,-Gn));break;case"z":Tn&&Tn.closePath()}}))}},{key:"renderChildren",value:function renderChildren(Tn){this.setTextData(Tn),Tn.save();var Un=this.parent.getStyle("text-decoration").getString(),Qn=this.getFontSize(),Dn=this.glyphInfo,Hn=Tn.fillStyle;"underline"===Un&&Tn.beginPath(),Dn.forEach((function(Hn,Gn){var zn=Hn.p0,Vn=Hn.p1,Kn=Hn.text;Tn.save(),Tn.translate(zn.x,zn.y),Tn.rotate(Dn[Gn].rotation),Tn.fillStyle&&Tn.fillText(Kn,0,0),Tn.strokeStyle&&Tn.strokeText(Kn,0,0),Tn.restore(),"underline"===Un&&(0===Gn&&Tn.moveTo(zn.x,zn.y+Qn/8),Tn.lineTo(Vn.x,Vn.y+Qn/5))})),"underline"===Un&&(Tn.lineWidth=Qn/20,Tn.strokeStyle=Hn,Tn.stroke(),Tn.closePath()),Tn.restore()}},{key:"getLetterSpacingAt",value:function getLetterSpacingAt(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[Tn]||0}},{key:"findSegmentToFitChar",value:function findSegmentToFitChar(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){var Kn=Gn,Wn=this.measureText(Tn,zn);" "===zn&&"justify"===Un&&Qn<Dn&&(Wn+=(Dn-Qn)/Hn),Vn>-1&&(Kn+=this.getLetterSpacingAt(Vn));var Xn=this.textHeight/20,Yn={p0:this.getEquidistantPointOnPath(Kn,Xn),p1:this.getEquidistantPointOnPath(Kn+Wn,Xn)};return{offset:Kn+=Wn,segment:Yn}}},{key:"measureText",value:function measureText(Tn,Un){var Qn=this.measuresCache,Dn=Un||this.getText();if(Qn.has(Dn))return Qn.get(Dn);var Hn=this.measureTargetText(Tn,Dn);return Qn.set(Dn,Hn),Hn}},{key:"setTextData",value:function setTextData(Tn){var Un=this;if(!this.glyphInfo){var Qn=this.getText(),Dn=Qn.split(""),Hn=Qn.split(" ").length-1,Gn=toNumbers(this.parent.getAttribute("dx").getString("0")),zn=this.parent.getStyle("text-anchor").getString("start"),Vn=this.getStyle("letter-spacing"),Kn=this.parent.getStyle("letter-spacing"),Wn=0;Vn.hasValue()&&"inherit"!==Vn.getValue()?Vn.hasValue()&&"initial"!==Vn.getValue()&&"unset"!==Vn.getValue()&&(Wn=Vn.getPixels()):Wn=Kn.getPixels();var Xn=[],Yn=Qn.length;this.letterSpacingCache=Xn;for(var Jn=0;Jn<Yn;Jn++)Xn.push(void 0!==Gn[Jn]?Gn[Jn]:Wn);var $n=Xn.reduce((function(Tn,Un){return Tn+Un||0}),0);this.textWidth=this.measureText(Tn),this.textHeight=this.getFontSize();var Zn=Math.max(this.textWidth+$n,0);this.glyphInfo=[];var er=this.getPathLength(),tr=this.getStyle("startOffset").getNumber(0)*er,nr=0;"middle"!==zn&&"center"!==zn||(nr=-Zn/2),"end"!==zn&&"right"!==zn||(nr=-Zn),nr+=tr,Dn.forEach((function(Qn,Gn){var Vn=Un.findSegmentToFitChar(Tn,zn,Zn,er,Hn,nr,Qn,Gn),Kn=Vn.offset,Wn=Vn.segment;if(nr=Kn,Wn.p0&&Wn.p1){var Xn=Un.getLineLength(Wn.p0.x,Wn.p0.y,Wn.p1.x,Wn.p1.y),Yn=Un.getPointOnLine(0+Xn/2,Wn.p0.x,Wn.p0.y,Wn.p1.x,Wn.p1.y),Jn=Math.atan2(Wn.p1.y-Wn.p0.y,Wn.p1.x-Wn.p0.x);Un.glyphInfo.push({transposeX:Yn.x,transposeY:Yn.y,text:Dn[Gn],p0:Wn.p0,p1:Wn.p1,rotation:Jn})}}))}}},{key:"parsePathData",value:function parsePathData(Tn){if(this.pathLength=-1,!Tn)return[];var Un=[],Qn=Tn.pathParser;for(Qn.reset();!Qn.isEnd();){var Dn=Qn.current,Hn=Dn?Dn.x:0,Gn=Dn?Dn.y:0,zn="",Vn=[];Qn.nextCommand();var Kn=Qn.command.toUpperCase();switch(Qn.command){case"M":case"m":zn=this.pathM(Qn,Vn);break;case"L":case"l":zn=this.pathL(Qn,Vn);break;case"H":case"h":zn=this.pathH(Qn,Vn);break;case"V":case"v":zn=this.pathV(Qn,Vn);break;case"C":case"c":this.pathC(Qn,Vn);break;case"S":case"s":zn=this.pathS(Qn,Vn);break;case"Q":case"q":this.pathQ(Qn,Vn);break;case"T":case"t":zn=this.pathT(Qn,Vn);break;case"A":case"a":Vn=this.pathA(Qn);break;case"Z":case"z":Qn.current=Qn.start}"Z"!==Kn?Un.push({command:zn||Kn,points:Vn,start:{x:Hn,y:Gn},pathLength:this.calcLength(Hn,Gn,zn||Kn,Vn)}):Un.push({command:"z",points:[],pathLength:0})}return Un}},{key:"pathM",value:function pathM(Tn,Un){var Qn=Tn.getAsCurrentPoint();for(Un.push(Qn.x,Qn.y),Tn.start=Tn.current;!Tn.isCommandOrEnd();){var Dn=Tn.getAsCurrentPoint();return Un.push(Dn.x,Dn.y),"L"}}},{key:"pathL",value:function pathL(Tn,Un){for(;!Tn.isCommandOrEnd();){var Qn=Tn.getAsCurrentPoint();Un.push(Qn.x,Qn.y)}return"L"}},{key:"pathH",value:function pathH(Tn,Un){for(;!Tn.isCommandOrEnd();){var Qn=Tn.current,Dn=new _y((Tn.isRelativeCommand()?Qn.x:0)+Tn.getScalar(),Qn.y);Un.push(Dn.x,Dn.y),Tn.current=Dn}return"L"}},{key:"pathV",value:function pathV(Tn,Un){for(;!Tn.isCommandOrEnd();){var Qn=Tn.current,Dn=new _y(Qn.x,(Tn.isRelativeCommand()?Qn.y:0)+Tn.getScalar());Un.push(Dn.x,Dn.y),Tn.current=Dn}return"L"}},{key:"pathC",value:function pathC(Tn,Un){for(;!Tn.isCommandOrEnd();){var Qn=Tn.getPoint(),Dn=Tn.getAsControlPoint(),Hn=Tn.getAsCurrentPoint();Un.push(Qn.x,Qn.y,Dn.x,Dn.y,Hn.x,Hn.y)}}},{key:"pathS",value:function pathS(Tn,Un){for(;!Tn.isCommandOrEnd();){var Qn=Tn.getReflectedControlPoint(),Dn=Tn.getAsControlPoint(),Hn=Tn.getAsCurrentPoint();Un.push(Qn.x,Qn.y,Dn.x,Dn.y,Hn.x,Hn.y)}return"C"}},{key:"pathQ",value:function pathQ(Tn,Un){for(;!Tn.isCommandOrEnd();){var Qn=Tn.getAsControlPoint(),Dn=Tn.getAsCurrentPoint();Un.push(Qn.x,Qn.y,Dn.x,Dn.y)}}},{key:"pathT",value:function pathT(Tn,Un){for(;!Tn.isCommandOrEnd();){var Qn=Tn.getReflectedControlPoint();Tn.control=Qn;var Dn=Tn.getAsCurrentPoint();Un.push(Qn.x,Qn.y,Dn.x,Dn.y)}return"Q"}},{key:"pathA",value:function pathA(Tn){for(;!Tn.isCommandOrEnd();){var Un=Tn.current,Qn=Tn.getScalar(),Dn=Tn.getScalar(),Hn=Tn.getScalar()*(Math.PI/180),Gn=Tn.getScalar(),zn=Tn.getScalar(),Vn=Tn.getAsCurrentPoint(),Kn=new _y(Math.cos(Hn)*(Un.x-Vn.x)/2+Math.sin(Hn)*(Un.y-Vn.y)/2,-Math.sin(Hn)*(Un.x-Vn.x)/2+Math.cos(Hn)*(Un.y-Vn.y)/2),Wn=Math.pow(Kn.x,2)/Math.pow(Qn,2)+Math.pow(Kn.y,2)/Math.pow(Dn,2);Wn>1&&(Qn*=Math.sqrt(Wn),Dn*=Math.sqrt(Wn));var Xn=(Gn===zn?-1:1)*Math.sqrt((Math.pow(Qn,2)*Math.pow(Dn,2)-Math.pow(Qn,2)*Math.pow(Kn.y,2)-Math.pow(Dn,2)*Math.pow(Kn.x,2))/(Math.pow(Qn,2)*Math.pow(Kn.y,2)+Math.pow(Dn,2)*Math.pow(Kn.x,2)));isNaN(Xn)&&(Xn=0);var Yn=new _y(Xn*Qn*Kn.y/Dn,Xn*-Dn*Kn.x/Qn),Jn=new _y((Un.x+Vn.x)/2+Math.cos(Hn)*Yn.x-Math.sin(Hn)*Yn.y,(Un.y+Vn.y)/2+Math.sin(Hn)*Yn.x+Math.cos(Hn)*Yn.y),$n=vectorsAngle([1,0],[(Kn.x-Yn.x)/Qn,(Kn.y-Yn.y)/Dn]),Zn=[(Kn.x-Yn.x)/Qn,(Kn.y-Yn.y)/Dn],er=[(-Kn.x-Yn.x)/Qn,(-Kn.y-Yn.y)/Dn],tr=vectorsAngle(Zn,er);return vectorsRatio(Zn,er)<=-1&&(tr=Math.PI),vectorsRatio(Zn,er)>=1&&(tr=0),0===zn&&tr>0&&(tr-=2*Math.PI),1===zn&&tr<0&&(tr+=2*Math.PI),[Jn.x,Jn.y,Qn,Dn,$n,tr,Hn,zn]}}},{key:"calcLength",value:function calcLength(Tn,Un,Qn,Dn){var Hn=0,Gn=null,zn=null,Vn=0;switch(Qn){case"L":return this.getLineLength(Tn,Un,Dn[0],Dn[1]);case"C":for(Hn=0,Gn=this.getPointOnCubicBezier(0,Tn,Un,Dn[0],Dn[1],Dn[2],Dn[3],Dn[4],Dn[5]),Vn=.01;Vn<=1;Vn+=.01)zn=this.getPointOnCubicBezier(Vn,Tn,Un,Dn[0],Dn[1],Dn[2],Dn[3],Dn[4],Dn[5]),Hn+=this.getLineLength(Gn.x,Gn.y,zn.x,zn.y),Gn=zn;return Hn;case"Q":for(Hn=0,Gn=this.getPointOnQuadraticBezier(0,Tn,Un,Dn[0],Dn[1],Dn[2],Dn[3]),Vn=.01;Vn<=1;Vn+=.01)zn=this.getPointOnQuadraticBezier(Vn,Tn,Un,Dn[0],Dn[1],Dn[2],Dn[3]),Hn+=this.getLineLength(Gn.x,Gn.y,zn.x,zn.y),Gn=zn;return Hn;case"A":Hn=0;var Kn=Dn[4],Wn=Dn[5],Xn=Dn[4]+Wn,Yn=Math.PI/180;if(Math.abs(Kn-Xn)<Yn&&(Yn=Math.abs(Kn-Xn)),Gn=this.getPointOnEllipticalArc(Dn[0],Dn[1],Dn[2],Dn[3],Kn,0),Wn<0)for(Vn=Kn-Yn;Vn>Xn;Vn-=Yn)zn=this.getPointOnEllipticalArc(Dn[0],Dn[1],Dn[2],Dn[3],Vn,0),Hn+=this.getLineLength(Gn.x,Gn.y,zn.x,zn.y),Gn=zn;else for(Vn=Kn+Yn;Vn<Xn;Vn+=Yn)zn=this.getPointOnEllipticalArc(Dn[0],Dn[1],Dn[2],Dn[3],Vn,0),Hn+=this.getLineLength(Gn.x,Gn.y,zn.x,zn.y),Gn=zn;return zn=this.getPointOnEllipticalArc(Dn[0],Dn[1],Dn[2],Dn[3],Xn,0),Hn+=this.getLineLength(Gn.x,Gn.y,zn.x,zn.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(Tn,Un,Qn,Dn,Hn){var Gn=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Un,zn=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Qn,Vn=(Hn-Qn)/(Dn-Un+1e-8),Kn=Math.sqrt(Tn*Tn/(1+Vn*Vn));Dn<Un&&(Kn*=-1);var Wn=Vn*Kn,Xn=null;if(Dn===Un)Xn={x:Gn,y:zn+Wn};else if((zn-Qn)/(Gn-Un+1e-8)===Vn)Xn={x:Gn+Kn,y:zn+Wn};else{var Yn=0,Jn=0,$n=this.getLineLength(Un,Qn,Dn,Hn);if($n<1e-8)return null;var Zn=(Gn-Un)*(Dn-Un)+(zn-Qn)*(Hn-Qn);Yn=Un+(Zn/=$n*$n)*(Dn-Un),Jn=Qn+Zn*(Hn-Qn);var er=this.getLineLength(Gn,zn,Yn,Jn),tr=Math.sqrt(Tn*Tn-er*er);Kn=Math.sqrt(tr*tr/(1+Vn*Vn)),Dn<Un&&(Kn*=-1),Xn={x:Yn+Kn,y:Jn+(Wn=Vn*Kn)}}return Xn}},{key:"getPointOnPath",value:function getPointOnPath(Tn){var Un=this.getPathLength(),Qn=0,Dn=null;if(Tn<-5e-5||Tn-5e-5>Un)return null;var Hn,Gn=_createForOfIteratorHelper$1$1(this.dataArray);try{for(Gn.s();!(Hn=Gn.n()).done;){var zn=Hn.value;if(!zn||!(zn.pathLength<5e-5||Qn+zn.pathLength+5e-5<Tn)){var Vn=Tn-Qn,Kn=0;switch(zn.command){case"L":Dn=this.getPointOnLine(Vn,zn.start.x,zn.start.y,zn.points[0],zn.points[1],zn.start.x,zn.start.y);break;case"A":var Wn=zn.points[4],Xn=zn.points[5],Yn=zn.points[4]+Xn;if(Kn=Wn+Vn/zn.pathLength*Xn,Xn<0&&Kn<Yn||Xn>=0&&Kn>Yn)break;Dn=this.getPointOnEllipticalArc(zn.points[0],zn.points[1],zn.points[2],zn.points[3],Kn,zn.points[6]);break;case"C":(Kn=Vn/zn.pathLength)>1&&(Kn=1),Dn=this.getPointOnCubicBezier(Kn,zn.start.x,zn.start.y,zn.points[0],zn.points[1],zn.points[2],zn.points[3],zn.points[4],zn.points[5]);break;case"Q":(Kn=Vn/zn.pathLength)>1&&(Kn=1),Dn=this.getPointOnQuadraticBezier(Kn,zn.start.x,zn.start.y,zn.points[0],zn.points[1],zn.points[2],zn.points[3])}if(Dn)return Dn;break}Qn+=zn.pathLength}}catch(Tn){Gn.e(Tn)}finally{Gn.f()}return null}},{key:"getLineLength",value:function getLineLength(Tn,Un,Qn,Dn){return Math.sqrt((Qn-Tn)*(Qn-Tn)+(Dn-Un)*(Dn-Un))}},{key:"getPathLength",value:function getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((function(Tn,Un){return Un.pathLength>0?Tn+Un.pathLength:Tn}),0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn,Kn){return{x:Vn*CB1(Tn)+Gn*CB2(Tn)+Dn*CB3(Tn)+Un*CB4(Tn),y:Kn*CB1(Tn)+zn*CB2(Tn)+Hn*CB3(Tn)+Qn*CB4(Tn)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(Tn,Un,Qn,Dn,Hn,Gn,zn){return{x:Gn*QB1(Tn)+Dn*QB2(Tn)+Un*QB3(Tn),y:zn*QB1(Tn)+Hn*QB2(Tn)+Qn*QB3(Tn)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(Tn,Un,Qn,Dn,Hn,Gn){var zn=Math.cos(Gn),Vn=Math.sin(Gn),Kn=Qn*Math.cos(Hn),Wn=Dn*Math.sin(Hn);return{x:Tn+(Kn*zn-Wn*Vn),y:Un+(Kn*Vn+Wn*zn)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(Tn,Un){var Qn=this.getPathLength(),Dn=Un||.25,Hn=Tn||Qn/100;if(!this.equidistantCache||this.equidistantCache.step!==Hn||this.equidistantCache.precision!==Dn){this.equidistantCache={step:Hn,precision:Dn,points:[]};for(var Gn=0,zn=0;zn<=Qn;zn+=Dn){var Vn=this.getPointOnPath(zn),Kn=this.getPointOnPath(zn+Dn);Vn&&Kn&&((Gn+=this.getLineLength(Vn.x,Vn.y,Kn.x,Kn.y))>=Hn&&(this.equidistantCache.points.push({x:Vn.x,y:Vn.y,distance:zn}),Gn-=Hn))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(Tn,Un,Qn){if(this.buildEquidistantCache(Un,Qn),Tn<0||Tn-this.getPathLength()>5e-5)return null;var Dn=Math.round(Tn/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[Dn]||null}}]),TextPathElement}();function _isNativeReflectConstruct$y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var gb=function(Tn){Jv(ImageElement,Qy);var Un,Qn,Dn=function _createSuper$y(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$y()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(ImageElement);function ImageElement(Tn,Un,Qn){var Hn;Pv(this,ImageElement),(Hn=Dn.call(this,Tn,Un,Qn)).type="image",Hn.loaded=!1;var Gn=Hn.getHrefAttribute().getString();if(!Gn)return Wv(Hn);var zn=/\.svg$/.test(Gn);return Tn.images.push(qv(Hn)),zn?Hn.loadSvg(Gn):Hn.loadImage(Gn),Hn.isSvg=zn,Hn}return Fv(ImageElement,[{key:"loadImage",value:(Qn=Lv(Nv.mark((function _callee(Tn){var Un;return Nv.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Qn.prev=0,Qn.next=3,this.document.createImage(Tn);case 3:Un=Qn.sent,this.image=Un,Qn.next=10;break;case 7:Qn.prev=7,Qn.t0=Qn.catch(0),console.error('Error while loading image "'.concat(Tn,'":'),Qn.t0);case 10:this.loaded=!0;case 11:case"end":return Qn.stop()}}),_callee,this,[[0,7]])}))),function loadImage(Tn){return Qn.apply(this,arguments)})},{key:"loadSvg",value:(Un=Lv(Nv.mark((function _callee2(Tn){var Un,Qn;return Nv.wrap((function _callee2$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.prev=0,Dn.next=3,this.document.fetch(Tn);case 3:return Un=Dn.sent,Dn.next=6,Un.text();case 6:Qn=Dn.sent,this.image=Qn,Dn.next=13;break;case 10:Dn.prev=10,Dn.t0=Dn.catch(0),console.error('Error while loading image "'.concat(Tn,'":'),Dn.t0);case 13:this.loaded=!0;case 14:case"end":return Dn.stop()}}),_callee2,this,[[0,10]])}))),function loadSvg(Tn){return Un.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(Tn){var Un=this.document,Qn=this.image,Dn=this.loaded,Hn=this.getAttribute("x").getPixels("x"),Gn=this.getAttribute("y").getPixels("y"),zn=this.getStyle("width").getPixels("x"),Vn=this.getStyle("height").getPixels("y");if(Dn&&Qn&&zn&&Vn){if(Tn.save(),this.isSvg)Un.canvg.forkString(Tn,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:Hn,offsetY:Gn,scaleWidth:zn,scaleHeight:Vn}).render();else{var Kn=this.image;Tn.translate(Hn,Gn),Un.setViewBox({ctx:Tn,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:zn,desiredWidth:Kn.width,height:Vn,desiredHeight:Kn.height}),this.loaded&&(void 0===Kn.complete||Kn.complete)&&Tn.drawImage(Kn,0,0)}Tn.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var Tn=this.getAttribute("x").getPixels("x"),Un=this.getAttribute("y").getPixels("y"),Qn=this.getStyle("width").getPixels("x"),Dn=this.getStyle("height").getPixels("y");return new My(Tn,Un,Tn+Qn,Un+Dn)}}]),ImageElement}();function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var mb=function(Tn){Jv(SymbolElement,Qy);var Un=function _createSuper$z(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$z()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(SymbolElement);function SymbolElement(){var Tn;return Pv(this,SymbolElement),(Tn=Un.apply(this,arguments)).type="symbol",Tn}return Fv(SymbolElement,[{key:"render",value:function render(Tn){}}]),SymbolElement}(),_b=function(){function SVGFontLoader(Tn){Pv(this,SVGFontLoader),this.document=Tn,this.loaded=!1,Tn.fonts.push(this)}var Tn;return Fv(SVGFontLoader,[{key:"load",value:(Tn=Lv(Nv.mark((function _callee(Tn,Un){var Qn,Dn,Hn;return Nv.wrap((function _callee$(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return Gn.prev=0,Qn=this.document,Gn.next=4,Qn.canvg.parser.load(Un);case 4:Dn=Gn.sent,Hn=Dn.getElementsByTagName("font"),Array.from(Hn).forEach((function(Un){var Dn=Qn.createElement(Un);Qn.definitions[Tn]=Dn})),Gn.next=12;break;case 9:Gn.prev=9,Gn.t0=Gn.catch(0),console.error('Error while loading font "'.concat(Un,'":'),Gn.t0);case 12:this.loaded=!0;case 13:case"end":return Gn.stop()}}),_callee,this,[[0,9]])}))),function load(Un,Qn){return Tn.apply(this,arguments)})}]),SVGFontLoader}();function _isNativeReflectConstruct$A(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var vb=function(Tn){Jv(StyleElement,Uy);var Un=function _createSuper$A(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$A()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(StyleElement);function StyleElement(Tn,Qn,Dn){var Hn;return Pv(this,StyleElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="style",compressSpaces(Array.from(Qn.childNodes).map((function(Tn){return Tn.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach((function(Un){var Qn=Un.trim();if(Qn){var Dn=Qn.split("{"),Hn=Dn[0].split(","),Gn=Dn[1].split(";");Hn.forEach((function(Un){var Qn=Un.trim();if(Qn){var Dn=Tn.styles[Qn]||{};if(Gn.forEach((function(Un){var Qn=Un.indexOf(":"),Hn=Un.substr(0,Qn).trim(),Gn=Un.substr(Qn+1,Un.length-Qn).trim();Hn&&Gn&&(Dn[Hn]=new gy(Tn,Hn,Gn))})),Tn.styles[Qn]=Dn,Tn.stylesSpecificity[Qn]=getSelectorSpecificity(Qn),"@font-face"===Qn){var Hn=Dn["font-family"].getString().replace(/"|'/g,"");Dn.src.getString().split(",").forEach((function(Un){if(Un.indexOf('format("svg")')>0){var Qn=parseExternalUrl(Un);Qn&&new _b(Tn).load(Hn,Qn)}}))}}}))}})),Hn}return StyleElement}();function _isNativeReflectConstruct$B(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}vb.parseExternalUrl=parseExternalUrl;var yb=function(Tn){Jv(UseElement,Qy);var Un=function _createSuper$B(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$B()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(UseElement);function UseElement(){var Tn;return Pv(this,UseElement),(Tn=Un.apply(this,arguments)).type="use",Tn}return Fv(UseElement,[{key:"setContext",value:function setContext(Tn){ry(Xv(UseElement.prototype),"setContext",this).call(this,Tn);var Un=this.getAttribute("x"),Qn=this.getAttribute("y");Un.hasValue()&&Tn.translate(Un.getPixels("x"),0),Qn.hasValue()&&Tn.translate(0,Qn.getPixels("y"))}},{key:"path",value:function path(Tn){var Un=this.element;Un&&Un.path(Tn)}},{key:"renderChildren",value:function renderChildren(Tn){var Un=this.document,Qn=this.element;if(Qn){var Dn=Qn;if("symbol"===Qn.type&&((Dn=new zy(Un,null)).attributes.viewBox=new gy(Un,"viewBox",Qn.getAttribute("viewBox").getString()),Dn.attributes.preserveAspectRatio=new gy(Un,"preserveAspectRatio",Qn.getAttribute("preserveAspectRatio").getString()),Dn.attributes.overflow=new gy(Un,"overflow",Qn.getAttribute("overflow").getString()),Dn.children=Qn.children),"svg"===Dn.type){var Hn=this.getStyle("width",!1,!0),Gn=this.getStyle("height",!1,!0);Hn.hasValue()&&(Dn.attributes.width=new gy(Un,"width",Hn.getString())),Gn.hasValue()&&(Dn.attributes.height=new gy(Un,"height",Gn.getString()))}var zn=Dn.parent;Dn.parent=this,Dn.render(Tn),Dn.parent=zn}}},{key:"getBoundingBox",value:function getBoundingBox(Tn){var Un=this.element;return Un?Un.getBoundingBox(Tn):null}},{key:"elementTransform",value:function elementTransform(){var Tn=this.document,Un=this.element;return Fy.fromElement(Tn,Un)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}();function _isNativeReflectConstruct$C(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}function imGet(Tn,Un,Qn,Dn,Hn,Gn){return Tn[Qn*Dn*4+4*Un+Gn]}function imSet(Tn,Un,Qn,Dn,Hn,Gn,zn){Tn[Qn*Dn*4+4*Un+Gn]=zn}function m$1(Tn,Un,Qn){var Dn=Tn[Un];return Dn*(Dn<0?Qn-255:Qn)}function c$1(Tn,Un,Qn,Dn){return Un+Math.cos(Tn)*Qn+Math.sin(Tn)*Dn}var bb=function(Tn){Jv(FeColorMatrixElement,Uy);var Un=function _createSuper$C(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$C()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(FeColorMatrixElement);function FeColorMatrixElement(Tn,Qn,Dn){var Hn;Pv(this,FeColorMatrixElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="feColorMatrix";var Gn=toNumbers(Hn.getAttribute("values").getString());switch(Hn.getAttribute("type").getString("matrix")){case"saturate":var zn=Gn[0];Gn=[.213+.787*zn,.715-.715*zn,.072-.072*zn,0,0,.213-.213*zn,.715+.285*zn,.072-.072*zn,0,0,.213-.213*zn,.715-.715*zn,.072+.928*zn,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var Vn=Gn[0]*Math.PI/180;Gn=[c$1(Vn,.213,.787,-.213),c$1(Vn,.715,-.715,-.715),c$1(Vn,.072,-.072,.928),0,0,c$1(Vn,.213,-.213,.143),c$1(Vn,.715,.285,.14),c$1(Vn,.072,-.072,-.283),0,0,c$1(Vn,.213,-.213,-.787),c$1(Vn,.715,-.715,.715),c$1(Vn,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":Gn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return Hn.matrix=Gn,Hn.includeOpacity=Hn.getAttribute("includeOpacity").hasValue(),Hn}return Fv(FeColorMatrixElement,[{key:"apply",value:function apply(Tn,Un,Qn,Dn,Hn){for(var Gn=this.includeOpacity,zn=this.matrix,Vn=Tn.getImageData(0,0,Dn,Hn),Kn=0;Kn<Hn;Kn++)for(var Wn=0;Wn<Dn;Wn++){var Xn=imGet(Vn.data,Wn,Kn,Dn,0,0),Yn=imGet(Vn.data,Wn,Kn,Dn,0,1),Jn=imGet(Vn.data,Wn,Kn,Dn,0,2),$n=imGet(Vn.data,Wn,Kn,Dn,0,3),Zn=m$1(zn,0,Xn)+m$1(zn,1,Yn)+m$1(zn,2,Jn)+m$1(zn,3,$n)+m$1(zn,4,1),er=m$1(zn,5,Xn)+m$1(zn,6,Yn)+m$1(zn,7,Jn)+m$1(zn,8,$n)+m$1(zn,9,1),tr=m$1(zn,10,Xn)+m$1(zn,11,Yn)+m$1(zn,12,Jn)+m$1(zn,13,$n)+m$1(zn,14,1),nr=m$1(zn,15,Xn)+m$1(zn,16,Yn)+m$1(zn,17,Jn)+m$1(zn,18,$n)+m$1(zn,19,1);Gn&&(Zn=er=tr=0,nr*=$n/255),imSet(Vn.data,Wn,Kn,Dn,0,0,Zn),imSet(Vn.data,Wn,Kn,Dn,0,1,er),imSet(Vn.data,Wn,Kn,Dn,0,2,tr),imSet(Vn.data,Wn,Kn,Dn,0,3,nr)}Tn.clearRect(0,0,Dn,Hn),Tn.putImageData(Vn,0,0)}}]),FeColorMatrixElement}();function _isNativeReflectConstruct$D(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var wb=function(Tn){Jv(MaskElement,Uy);var Un=function _createSuper$D(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$D()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(MaskElement);function MaskElement(){var Tn;return Pv(this,MaskElement),(Tn=Un.apply(this,arguments)).type="mask",Tn}return Fv(MaskElement,[{key:"apply",value:function apply(Tn,Un){var Qn=this.document,Dn=this.getAttribute("x").getPixels("x"),Hn=this.getAttribute("y").getPixels("y"),Gn=this.getStyle("width").getPixels("x"),zn=this.getStyle("height").getPixels("y");if(!Gn&&!zn){var Vn=new My;this.children.forEach((function(Un){Vn.addBoundingBox(Un.getBoundingBox(Tn))})),Dn=Math.floor(Vn.x1),Hn=Math.floor(Vn.y1),Gn=Math.floor(Vn.width),zn=Math.floor(Vn.height)}var Kn=this.removeStyles(Un,MaskElement.ignoreStyles),Wn=Qn.createCanvas(Dn+Gn,Hn+zn),Xn=Wn.getContext("2d");Qn.screen.setDefaults(Xn),this.renderChildren(Xn),new bb(Qn,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(Xn,0,0,Dn+Gn,Hn+zn);var Yn=Qn.createCanvas(Dn+Gn,Hn+zn),Jn=Yn.getContext("2d");Qn.screen.setDefaults(Jn),Un.render(Jn),Jn.globalCompositeOperation="destination-in",Jn.fillStyle=Xn.createPattern(Wn,"no-repeat"),Jn.fillRect(0,0,Dn+Gn,Hn+zn),Tn.fillStyle=Jn.createPattern(Yn,"no-repeat"),Tn.fillRect(0,0,Dn+Gn,Hn+zn),this.restoreStyles(Un,Kn)}},{key:"render",value:function render(Tn){}}]),MaskElement}();function _isNativeReflectConstruct$E(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}wb.ignoreStyles=["mask","transform","clip-path"];var xb=function noop(){},kb=function(Tn){Jv(ClipPathElement,Uy);var Un=function _createSuper$E(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$E()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(ClipPathElement);function ClipPathElement(){var Tn;return Pv(this,ClipPathElement),(Tn=Un.apply(this,arguments)).type="clipPath",Tn}return Fv(ClipPathElement,[{key:"apply",value:function apply(Tn){var Un=this.document,Qn=Reflect.getPrototypeOf(Tn),Dn=Tn.beginPath,Hn=Tn.closePath;Qn&&(Qn.beginPath=xb,Qn.closePath=xb),Reflect.apply(Dn,Tn,[]),this.children.forEach((function(Dn){if(void 0!==Dn.path){var Gn=void 0!==Dn.elementTransform?Dn.elementTransform():null;Gn||(Gn=Fy.fromElement(Un,Dn)),Gn&&Gn.apply(Tn),Dn.path(Tn),Qn&&(Qn.closePath=Hn),Gn&&Gn.unapply(Tn)}})),Reflect.apply(Hn,Tn,[]),Tn.clip(),Qn&&(Qn.beginPath=Dn,Qn.closePath=Hn)}},{key:"render",value:function render(Tn){}}]),ClipPathElement}();function _isNativeReflectConstruct$F(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Sb=function(Tn){Jv(FilterElement,Uy);var Un=function _createSuper$F(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$F()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(FilterElement);function FilterElement(){var Tn;return Pv(this,FilterElement),(Tn=Un.apply(this,arguments)).type="filter",Tn}return Fv(FilterElement,[{key:"apply",value:function apply(Tn,Un){var Qn=this.document,Dn=this.children,Hn=Un.getBoundingBox(Tn);if(Hn){var Gn=0,zn=0;Dn.forEach((function(Tn){var Un=Tn.extraFilterDistance||0;Gn=Math.max(Gn,Un),zn=Math.max(zn,Un)}));var Vn=Math.floor(Hn.width),Kn=Math.floor(Hn.height),Wn=Vn+2*Gn,Xn=Kn+2*zn;if(!(Wn<1||Xn<1)){var Yn=Math.floor(Hn.x),Jn=Math.floor(Hn.y),$n=this.removeStyles(Un,FilterElement.ignoreStyles),Zn=Qn.createCanvas(Wn,Xn),er=Zn.getContext("2d");Qn.screen.setDefaults(er),er.translate(-Yn+Gn,-Jn+zn),Un.render(er),Dn.forEach((function(Tn){"function"==typeof Tn.apply&&Tn.apply(er,0,0,Wn,Xn)})),Tn.drawImage(Zn,0,0,Wn,Xn,Yn-Gn,Jn-zn,Wn,Xn),this.restoreStyles(Un,$n)}}}},{key:"render",value:function render(Tn){}}]),FilterElement}();function _isNativeReflectConstruct$G(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}Sb.ignoreStyles=["filter","transform","clip-path"];var Cb=function(Tn){Jv(FeDropShadowElement,Uy);var Un=function _createSuper$G(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$G()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(FeDropShadowElement);function FeDropShadowElement(Tn,Qn,Dn){var Hn;return Pv(this,FeDropShadowElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="feDropShadow",Hn.addStylesFromStyleDefinition(),Hn}return Fv(FeDropShadowElement,[{key:"apply",value:function apply(Tn,Un,Qn,Dn,Hn){}}]),FeDropShadowElement}();function _isNativeReflectConstruct$H(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Bb=function(Tn){Jv(FeMorphologyElement,Uy);var Un=function _createSuper$H(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$H()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(FeMorphologyElement);function FeMorphologyElement(){var Tn;return Pv(this,FeMorphologyElement),(Tn=Un.apply(this,arguments)).type="feMorphology",Tn}return Fv(FeMorphologyElement,[{key:"apply",value:function apply(Tn,Un,Qn,Dn,Hn){}}]),FeMorphologyElement}();function _isNativeReflectConstruct$I(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Eb=function(Tn){Jv(FeCompositeElement,Uy);var Un=function _createSuper$I(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$I()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(FeCompositeElement);function FeCompositeElement(){var Tn;return Pv(this,FeCompositeElement),(Tn=Un.apply(this,arguments)).type="feComposite",Tn}return Fv(FeCompositeElement,[{key:"apply",value:function apply(Tn,Un,Qn,Dn,Hn){}}]),FeCompositeElement}();function _isNativeReflectConstruct$J(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Nb=function(Tn){Jv(FeGaussianBlurElement,Uy);var Un=function _createSuper$J(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$J()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(FeGaussianBlurElement);function FeGaussianBlurElement(Tn,Qn,Dn){var Hn;return Pv(this,FeGaussianBlurElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="feGaussianBlur",Hn.blurRadius=Math.floor(Hn.getAttribute("stdDeviation").getNumber()),Hn.extraFilterDistance=Hn.blurRadius,Hn}return Fv(FeGaussianBlurElement,[{key:"apply",value:function apply(Tn,Un,Qn,Dn,Hn){var Gn=this.document,zn=this.blurRadius,Vn=Gn.window?Gn.window.document.body:null,Kn=Tn.canvas;Kn.id=Gn.getUniqueId(),Vn&&(Kn.style.display="none",Vn.appendChild(Kn)),processCanvasRGBA(Kn,Un,Qn,Dn,Hn,zn),Vn&&Vn.removeChild(Kn)}}]),FeGaussianBlurElement}();function _isNativeReflectConstruct$K(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Lb=function(Tn){Jv(TitleElement,Uy);var Un=function _createSuper$K(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$K()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(TitleElement);function TitleElement(){var Tn;return Pv(this,TitleElement),(Tn=Un.apply(this,arguments)).type="title",Tn}return TitleElement}();function _isNativeReflectConstruct$L(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(Tn){return!1}}var Tb=function(Tn){Jv(DescElement,Uy);var Un=function _createSuper$L(Tn){return function(){var Un,Qn=Xv(Tn);if(_isNativeReflectConstruct$L()){var Dn=Xv(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Wv(this,Un)}}(DescElement);function DescElement(){var Tn;return Pv(this,DescElement),(Tn=Un.apply(this,arguments)).type="desc",Tn}return DescElement}(),Pb={svg:zy,rect:Vy,circle:Ky,ellipse:qy,line:Wy,polyline:Xy,polygon:Yy,path:Gy,pattern:Jy,marker:$y,defs:Zy,linearGradient:nb,radialGradient:rb,stop:ib,animate:ab,animateColor:ob,animateTransform:sb,font:lb,"font-face":ub,"missing-glyph":db,glyph:hb,text:Oy,tspan:Dy,tref:pb,a:Ab,textPath:fb,image:gb,g:eb,symbol:mb,style:vb,use:yb,mask:wb,clipPath:kb,filter:Sb,feDropShadow:Cb,feMorphology:Bb,feComposite:Eb,feColorMatrix:bb,feGaussianBlur:Nb,title:Lb,desc:Tb};function ownKeys$1(Tn,Un){var Qn=Object.keys(Tn);if(Object.getOwnPropertySymbols){var Dn=Object.getOwnPropertySymbols(Tn);Un&&(Dn=Dn.filter((function(Un){return Object.getOwnPropertyDescriptor(Tn,Un).enumerable}))),Qn.push.apply(Qn,Dn)}return Qn}function _createImage(){return(_createImage=Lv(Nv.mark((function _callee(Tn){var Un,Qn,Dn=arguments;return Nv.wrap((function _callee$(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Un=Dn.length>1&&void 0!==Dn[1]&&Dn[1],Qn=document.createElement("img"),Un&&(Qn.crossOrigin="Anonymous"),Hn.abrupt("return",new Promise((function(Un,Dn){Qn.onload=function(){Un(Qn)},Qn.onerror=function(){Dn()},Qn.src=Tn})));case 4:case"end":return Hn.stop()}}),_callee)})))).apply(this,arguments)}var Fb=function(){function Document(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Un.rootEmSize,Dn=void 0===Qn?12:Qn,Hn=Un.emSize,Gn=void 0===Hn?12:Hn,zn=Un.createCanvas,Vn=void 0===zn?Document.createCanvas:zn,Kn=Un.createImage,Wn=void 0===Kn?Document.createImage:Kn,Xn=Un.anonymousCrossOrigin;Pv(this,Document),this.canvg=Tn,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=Tn.screen,this.rootEmSize=Dn,this.emSize=Gn,this.createCanvas=Vn,this.createImage=this.bindCreateImage(Wn,Xn),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Fv(Document,[{key:"bindCreateImage",value:function bindCreateImage(Tn,Un){return"boolean"==typeof Un?function(Qn,Dn){return Tn(Qn,"boolean"==typeof Dn?Dn:Un)}:Tn}},{key:"popEmSize",value:function popEmSize(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function getUniqueId(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function isImagesLoaded(){return this.images.every((function(Tn){return Tn.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){return this.fonts.every((function(Tn){return Tn.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(Tn){var Un=this.createElement(Tn.documentElement);return Un.root=!0,Un.addStylesFromStyleDefinition(),this.documentElement=Un,Un}},{key:"createElement",value:function createElement(Tn){var Un=Tn.nodeName.replace(/^[^:]+:/,""),Qn=Document.elementTypes[Un];return void 0!==Qn?new Qn(this,Tn):new Iy(this,Tn)}},{key:"createTextNode",value:function createTextNode(Tn){return new jy(this,Tn)}},{key:"setViewBox",value:function setViewBox(Tn){this.screen.setViewBox(function _objectSpread(Tn){for(var Un=1;Un<arguments.length;Un++){var Qn=null!=arguments[Un]?arguments[Un]:{};Un%2?ownKeys$1(Object(Qn),!0).forEach((function(Un){Tv(Tn,Un,Qn[Un])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Tn,Object.getOwnPropertyDescriptors(Qn)):ownKeys$1(Object(Qn)).forEach((function(Un){Object.defineProperty(Tn,Un,Object.getOwnPropertyDescriptor(Qn,Un))}))}return Tn}({document:this},Tn))}},{key:"window",get:function get(){return this.screen.window}},{key:"fetch",get:function get(){return this.screen.fetch}},{key:"ctx",get:function get(){return this.screen.ctx}},{key:"emSize",get:function get(){var Tn=this.emSizeStack;return Tn[Tn.length-1]},set:function set(Tn){this.emSizeStack.push(Tn)}}]),Document}();function ownKeys$1$1(Tn,Un){var Qn=Object.keys(Tn);if(Object.getOwnPropertySymbols){var Dn=Object.getOwnPropertySymbols(Tn);Un&&(Dn=Dn.filter((function(Un){return Object.getOwnPropertyDescriptor(Tn,Un).enumerable}))),Qn.push.apply(Qn,Dn)}return Qn}function _objectSpread$1(Tn){for(var Un=1;Un<arguments.length;Un++){var Qn=null!=arguments[Un]?arguments[Un]:{};Un%2?ownKeys$1$1(Object(Qn),!0).forEach((function(Un){Tv(Tn,Un,Qn[Un])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Tn,Object.getOwnPropertyDescriptors(Qn)):ownKeys$1$1(Object(Qn)).forEach((function(Un){Object.defineProperty(Tn,Un,Object.getOwnPropertyDescriptor(Qn,Un))}))}return Tn}Fb.createCanvas=function createCanvas(Tn,Un){var Qn=document.createElement("canvas");return Qn.width=Tn,Qn.height=Un,Qn},Fb.createImage=function createImage(Tn){return _createImage.apply(this,arguments)},Fb.elementTypes=Pb;var Ub=function(){function Canvg(Tn,Un){var Qn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pv(this,Canvg),this.parser=new Sy(Qn),this.screen=new wy(Tn,Qn),this.options=Qn;var Dn=new Fb(this,Qn),Hn=Dn.createDocumentElement(Un);this.document=Dn,this.documentElement=Hn}var Tn,Un;return Fv(Canvg,[{key:"fork",value:function fork(Tn,Un){var Qn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(Tn,Un,_objectSpread$1({},this.options,{},Qn))}},{key:"forkString",value:function forkString(Tn,Un){var Qn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(Tn,Un,_objectSpread$1({},this.options,{},Qn))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(Un=Lv(Nv.mark((function _callee(){var Tn,Un=arguments;return Nv.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Tn=Un.length>0&&void 0!==Un[0]?Un[0]:{},this.start(_objectSpread$1({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},Tn)),Qn.next=4,this.ready();case 4:this.stop();case 5:case"end":return Qn.stop()}}),_callee,this)}))),function render(){return Un.apply(this,arguments)})},{key:"start",value:function start(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Un=this.documentElement,Qn=this.screen,Dn=this.options;Qn.start(Un,_objectSpread$1({enableRedraw:!0},Dn,{},Tn))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn,Qn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(Tn,Un,Qn)}}],[{key:"from",value:(Tn=Lv(Nv.mark((function _callee2(Tn,Un){var Qn,Dn,Hn,Gn=arguments;return Nv.wrap((function _callee2$(zn){for(;;)switch(zn.prev=zn.next){case 0:return Qn=Gn.length>2&&void 0!==Gn[2]?Gn[2]:{},Dn=new Sy(Qn),zn.next=4,Dn.parse(Un);case 4:return Hn=zn.sent,zn.abrupt("return",new Canvg(Tn,Hn,Qn));case 6:case"end":return zn.stop()}}),_callee2)}))),function from(Un,Qn){return Tn.apply(this,arguments)})},{key:"fromString",value:function fromString(Tn,Un){var Qn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Dn=new Sy(Qn),Hn=Dn.parseFromString(Un);return new Canvg(Tn,Hn,Qn)}}]),Canvg}();var Ib=Object.freeze({__proto__:null,offscreen:function offscreen(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Un=Tn.DOMParser,Qn={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:Un,createCanvas:function createCanvas(Tn,Un){return new OffscreenCanvas(Tn,Un)},createImage:function createImage(Tn){return Lv(Nv.mark((function _callee(){var Un,Qn,Dn;return Nv.wrap((function _callee$(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,fetch(Tn);case 2:return Un=Hn.sent,Hn.next=5,Un.blob();case 5:return Qn=Hn.sent,Hn.next=8,createImageBitmap(Qn);case 8:return Dn=Hn.sent,Hn.abrupt("return",Dn);case 10:case"end":return Hn.stop()}}),_callee)})))()}};return"undefined"==typeof DOMParser&&void 0!==Un||Reflect.deleteProperty(Qn,"DOMParser"),Qn},node:function node$1(Tn){var Un=Tn.DOMParser,Qn=Tn.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:Un,fetch:Tn.fetch,createCanvas:Qn.createCanvas,createImage:Qn.loadImage}}}),Rb=Object.freeze({__proto__:null,default:Ub,AElement:Ab,AnimateColorElement:ob,AnimateElement:ab,AnimateTransformElement:sb,BoundingBox:My,CB1:CB1,CB2:CB2,CB3:CB3,CB4:CB4,Canvg:Ub,CircleElement:Ky,ClipPathElement:kb,DefsElement:Zy,DescElement:Tb,Document:Fb,Element:Uy,EllipseElement:qy,FeColorMatrixElement:bb,FeCompositeElement:Eb,FeDropShadowElement:Cb,FeGaussianBlurElement:Nb,FeMorphologyElement:Bb,FilterElement:Sb,Font:Ry,FontElement:lb,FontFaceElement:ub,GElement:eb,GlyphElement:hb,GradientElement:tb,ImageElement:gb,LineElement:Wy,LinearGradientElement:nb,MarkerElement:$y,MaskElement:wb,Matrix:Ny,MissingGlyphElement:db,Mouse:vy,PSEUDO_ZERO:1e-8,Parser:Sy,PathElement:Gy,PathParser:Hy,PatternElement:Jy,Point:_y,PolygonElement:Yy,PolylineElement:Xy,Property:gy,QB1:QB1,QB2:QB2,QB3:QB3,RadialGradientElement:rb,RectElement:Vy,RenderedElement:Qy,Rotate:By,SVGElement:zy,SVGFontLoader:_b,Scale:Ey,Screen:wy,Skew:Ly,SkewX:Ty,SkewY:Py,StopElement:ib,StyleElement:vb,SymbolElement:mb,TRefElement:pb,TSpanElement:Dy,TextElement:Oy,TextPathElement:fb,TitleElement:Lb,Transform:Fy,Translate:Cy,UnknownElement:Iy,UseElement:yb,ViewPort:my,compressSpaces:compressSpaces,getSelectorSpecificity:getSelectorSpecificity,normalizeAttributeName:normalizeAttributeName,normalizeColor:normalizeColor,parseExternalUrl:parseExternalUrl,presets:Ib,toNumbers:toNumbers,trimLeft:trimLeft$1,trimRight:trimRight$1,vectorMagnitude:vectorMagnitude,vectorsAngle:vectorsAngle,vectorsRatio:vectorsRatio});function jQueryPluginDBox(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Un.ok,Dn=void 0===Qn?"Ok":Qn,Hn=Un.cancel,Gn=void 0===Hn?"Cancel":Hn;Tn("#dialog_container").draggable({cancel:"#dialog_content, #dialog_buttons *",containment:"window"}).css("position","absolute");var zn=Tn("#dialog_box"),Vn=Tn("#dialog_buttons"),Kn=Tn("#dialog_content");function dbox(Un,Qn,Hn,Wn,Xn,Yn){Kn.html("<p>"+Qn.replace(/\n/g,"</p><p>")+"</p>").toggleClass("prompt","prompt"===Un),Vn.empty();var Jn=Tn('<input type="button" data-ok="" value="'+Dn+'">').appendTo(Vn);return new Promise((function(Dn,$n){var Zn,er;if("alert"!==Un&&Tn('<input type="button" value="'+Gn+'">').appendTo(Vn).click((function(){zn.hide(),Dn(!1)})),"prompt"===Un)(Zn=Tn('<input type="text">').prependTo(Vn)).val(Hn||""),Zn.bind("keydown","return",(function(){Jn.click()}));else if("select"===Un){var tr=Tn('<div style="text-align:center;">');if(Zn=Tn('<select aria-label="'.concat(Qn,'">')).appendTo(tr),Yn){var nr=Tn("<label>").text(Yn.label);(er=Tn('<input type="checkbox">').appendTo(nr)).val(Yn.value),Yn.tooltip&&nr.attr("title",Yn.tooltip),er.prop("checked",Boolean(Yn.checked)),tr.append(Tn("<div>").append(nr))}Tn.each(Wn||[],(function(Un,Qn){"object"===_typeof(Qn)?Zn.append(Tn("<option>").val(Qn.value).html(Qn.text)):Zn.append(Tn("<option>").html(Qn))})),Kn.append(tr),Hn&&Zn.val(Hn),Xn&&Zn.bind("change","return",Xn),Zn.bind("keydown","return",(function(){Jn.click()}))}else"process"===Un&&Jn.hide();zn.show(),Jn.click((function(){zn.hide();var Tn="prompt"!==Un&&"select"!==Un||Zn.val();Dn(er?{response:Tn,checked:er.prop("checked")}:Tn)})).focus(),"prompt"!==Un&&"select"!==Un||Zn.focus()}))}return Tn.alert=function(Tn){return dbox("alert",Tn)},Tn.confirm=function(Tn){return dbox("confirm",Tn)},Tn.process_cancel=function(Tn){return dbox("process",Tn)},Tn.prompt=function(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return dbox("prompt",Tn,Un)},Tn.select=function(Tn,Un,Qn,Dn,Hn){return dbox("select",Tn,Dn,Un,Qn,Hn)},Tn}var Mb,Qb,Ob,Db,jb,Hb={BEFORE_APPLY:"before_apply",AFTER_APPLY:"after_apply",BEFORE_UNAPPLY:"before_unapply",AFTER_UNAPPLY:"after_unapply"},Gb=function(){function Command(){_classCallCheck(this,Command)}return _createClass(Command,[{key:"getText",value:function getText(){return this.text}},{key:"apply",value:function apply(Tn,Un){Tn&&Tn.handleHistoryEvent(Hb.BEFORE_APPLY,this),Un(Tn),Tn&&Tn.handleHistoryEvent(Hb.AFTER_APPLY,this)}},{key:"unapply",value:function unapply(Tn,Un){Tn&&Tn.handleHistoryEvent(Hb.BEFORE_UNAPPLY,this),Un(),Tn&&Tn.handleHistoryEvent(Hb.AFTER_UNAPPLY,this)}},{key:"elements",value:function elements(){return[this.elem]}},{key:"type",value:function type(){return this.constructor.name}}]),Command}(),zb=function(Tn){_inherits(MoveElementCommand,Gb);var Un=_createSuper(MoveElementCommand);function MoveElementCommand(Tn,Qn,Dn,Hn){var Gn;return _classCallCheck(this,MoveElementCommand),(Gn=Un.call(this)).elem=Tn,Gn.text=Hn?"Move "+Tn.tagName+" to "+Hn:"Move "+Tn.tagName,Gn.oldNextSibling=Qn,Gn.oldParent=Dn,Gn.newNextSibling=Tn.nextSibling,Gn.newParent=Tn.parentNode,Gn}return _createClass(MoveElementCommand,[{key:"apply",value:function apply(Tn){var Un=this;_get(_getPrototypeOf(MoveElementCommand.prototype),"apply",this).call(this,Tn,(function(){Un.elem=Un.newParent.insertBefore(Un.elem,Un.newNextSibling)}))}},{key:"unapply",value:function unapply(Tn){var Un=this;_get(_getPrototypeOf(MoveElementCommand.prototype),"unapply",this).call(this,Tn,(function(){Un.elem=Un.oldParent.insertBefore(Un.elem,Un.oldNextSibling)}))}}]),MoveElementCommand}(),Vb=function(Tn){_inherits(InsertElementCommand,Gb);var Un=_createSuper(InsertElementCommand);function InsertElementCommand(Tn,Qn){var Dn;return _classCallCheck(this,InsertElementCommand),(Dn=Un.call(this)).elem=Tn,Dn.text=Qn||"Create "+Tn.tagName,Dn.parent=Tn.parentNode,Dn.nextSibling=Dn.elem.nextSibling,Dn}return _createClass(InsertElementCommand,[{key:"apply",value:function apply(Tn){var Un=this;_get(_getPrototypeOf(InsertElementCommand.prototype),"apply",this).call(this,Tn,(function(){Un.elem=Un.parent.insertBefore(Un.elem,Un.nextSibling)}))}},{key:"unapply",value:function unapply(Tn){var Un=this;_get(_getPrototypeOf(InsertElementCommand.prototype),"unapply",this).call(this,Tn,(function(){Un.parent=Un.elem.parentNode,Un.elem.remove()}))}}]),InsertElementCommand}(),Kb=function(Tn){_inherits(RemoveElementCommand,Gb);var Un=_createSuper(RemoveElementCommand);function RemoveElementCommand(Tn,Qn,Dn,Hn){var Gn;return _classCallCheck(this,RemoveElementCommand),(Gn=Un.call(this)).elem=Tn,Gn.text=Hn||"Delete "+Tn.tagName,Gn.nextSibling=Qn,Gn.parent=Dn,fA(Tn),Gn}return _createClass(RemoveElementCommand,[{key:"apply",value:function apply(Tn){var Un=this;_get(_getPrototypeOf(RemoveElementCommand.prototype),"apply",this).call(this,Tn,(function(){fA(Un.elem),Un.parent=Un.elem.parentNode,Un.elem.remove()}))}},{key:"unapply",value:function unapply(Tn){var Un=this;_get(_getPrototypeOf(RemoveElementCommand.prototype),"unapply",this).call(this,Tn,(function(){fA(Un.elem),Sf(Un.nextSibling)&&window.console&&console.error("Reference element was lost"),Un.parent.insertBefore(Un.elem,Un.nextSibling)}))}}]),RemoveElementCommand}(),qb=function(Tn){_inherits(ChangeElementCommand,Gb);var Un=_createSuper(ChangeElementCommand);function ChangeElementCommand(Tn,Qn,Dn){var Hn;for(var Gn in _classCallCheck(this,ChangeElementCommand),(Hn=Un.call(this)).elem=Tn,Hn.text=Dn?"Change "+Tn.tagName+" "+Dn:"Change "+Tn.tagName,Hn.newValues={},Hn.oldValues=Qn,Qn)Hn.newValues[Gn]="#text"===Gn?Tn.textContent:"#href"===Gn?rf(Tn):Tn.getAttribute(Gn);return Hn}return _createClass(ChangeElementCommand,[{key:"apply",value:function apply(Tn){var Un=this;_get(_getPrototypeOf(ChangeElementCommand.prototype),"apply",this).call(this,Tn,(function(){var Tn=!1;if(Object.entries(Un.newValues).forEach((function(Qn){var Dn=_slicedToArray(Qn,2),Hn=Dn[0],Gn=Dn[1];Gn?"#text"===Hn?Un.elem.textContent=Gn:"#href"===Hn?af(Un.elem,Gn):Un.elem.setAttribute(Hn,Gn):"#text"===Hn?Un.elem.textContent="":(Un.elem.setAttribute(Hn,""),Un.elem.removeAttribute(Hn)),"transform"===Hn&&(Tn=!0)})),!Tn){var Qn=_f(Un.elem);if(Qn){var Dn=Un.elem.getBBox(),Hn=["rotate(",Qn," ",Dn.x+Dn.width/2,",",Dn.y+Dn.height/2,")"].join("");Hn!==Un.elem.getAttribute("transform")&&Un.elem.setAttribute("transform",Hn)}}}))}},{key:"unapply",value:function unapply(Tn){var Un=this;_get(_getPrototypeOf(ChangeElementCommand.prototype),"unapply",this).call(this,Tn,(function(){var Tn=!1;if(Object.entries(Un.oldValues).forEach((function(Qn){var Dn=_slicedToArray(Qn,2),Hn=Dn[0],Gn=Dn[1];Gn?"#text"===Hn?Un.elem.textContent=Gn:"#href"===Hn?af(Un.elem,Gn):Un.elem.setAttribute(Hn,Gn):"#text"===Hn?Un.elem.textContent="":Un.elem.removeAttribute(Hn),"transform"===Hn&&(Tn=!0)})),!Tn){var Qn=_f(Un.elem);if(Qn){var Dn=Un.elem.getBBox(),Hn=["rotate(",Qn," ",Dn.x+Dn.width/2,",",Dn.y+Dn.height/2,")"].join("");Hn!==Un.elem.getAttribute("transform")&&Un.elem.setAttribute("transform",Hn)}}fA(Un.elem)}))}}]),ChangeElementCommand}(),Wb=function(Tn){_inherits(BatchCommand,Gb);var Un=_createSuper(BatchCommand);function BatchCommand(Tn){var Qn;return _classCallCheck(this,BatchCommand),(Qn=Un.call(this)).text=Tn||"Batch Command",Qn.stack=[],Qn}return _createClass(BatchCommand,[{key:"apply",value:function apply(Tn){var Un=this;_get(_getPrototypeOf(BatchCommand.prototype),"apply",this).call(this,Tn,(function(){Un.stack.forEach((function(Un){console.assert(Un,"stack item should not be null"),Un&&Un.apply(Tn)}))}))}},{key:"unapply",value:function unapply(Tn){var Un=this;_get(_getPrototypeOf(BatchCommand.prototype),"unapply",this).call(this,Tn,(function(){Un.stack.reverse().forEach((function(Un){console.assert(Un,"stack item should not be null"),Un&&Un.unapply(Tn)}))}))}},{key:"elements",value:function elements(){for(var Tn=[],Un=this.stack.length;Un--;)if(this.stack[Un])for(var Qn=this.stack[Un].elements(),Dn=Qn.length;Dn--;)Tn.includes(Qn[Dn])||Tn.push(Qn[Dn]);return Tn}},{key:"addSubCommand",value:function addSubCommand(Tn){console.assert(null!==Tn,"cmd should not be null"),this.stack.push(Tn)}},{key:"isEmpty",value:function isEmpty(){return!this.stack.length}}]),BatchCommand}(),Xb=function(){function UndoManager(Tn){_classCallCheck(this,UndoManager),this.handler_=Tn||null,this.undoStackPointer=0,this.undoStack=[],this.undoChangeStackPointer=-1,this.undoableChangeStack=[]}return _createClass(UndoManager,[{key:"resetUndoStack",value:function resetUndoStack(){this.undoStack=[],this.undoStackPointer=0}},{key:"getUndoStackSize",value:function getUndoStackSize(){return this.undoStackPointer}},{key:"getRedoStackSize",value:function getRedoStackSize(){return this.undoStack.length-this.undoStackPointer}},{key:"getNextUndoCommandText",value:function getNextUndoCommandText(){return this.undoStackPointer>0?this.undoStack[this.undoStackPointer-1].getText():""}},{key:"getNextRedoCommandText",value:function getNextRedoCommandText(){return this.undoStackPointer<this.undoStack.length?this.undoStack[this.undoStackPointer].getText():""}},{key:"undo",value:function undo(){this.undoStackPointer>0&&this.undoStack[--this.undoStackPointer].unapply(this.handler_)}},{key:"redo",value:function redo(){this.undoStackPointer<this.undoStack.length&&this.undoStack.length>0&&this.undoStack[this.undoStackPointer++].apply(this.handler_)}},{key:"addCommandToHistory",value:function addCommandToHistory(Tn){this.undoStackPointer<this.undoStack.length&&this.undoStack.length>0&&(this.undoStack=this.undoStack.splice(0,this.undoStackPointer)),this.undoStack.push(Tn),this.undoStackPointer=this.undoStack.length}},{key:"beginUndoableChange",value:function beginUndoableChange(Tn,Un){for(var Qn=++this.undoChangeStackPointer,Dn=Un.length,Hn=new Array(Dn),Gn=new Array(Dn);Dn--;){var zn=Un[Dn];Sf(zn)||(Gn[Dn]=zn,Hn[Dn]=zn.getAttribute(Tn))}this.undoableChangeStack[Qn]={attrName:Tn,oldValues:Hn,elements:Gn}}},{key:"finishUndoableChange",value:function finishUndoableChange(){for(var Tn=this.undoChangeStackPointer--,Un=this.undoableChangeStack[Tn],Qn=Un.attrName,Dn=new Wb("Change "+Qn),Hn=Un.elements.length;Hn--;){var Gn=Un.elements[Hn];if(!Sf(Gn)){var zn={};zn[Qn]=Un.oldValues[Hn],zn[Qn]!==Gn.getAttribute(Qn)&&Dn.addSubCommand(new qb(Gn,zn,Qn))}}return this.undoableChangeStack[Tn]=null,Dn}}]),UndoManager}(),Yb=Object.freeze({__proto__:null,HistoryEventTypes:Hb,Command:Gb,MoveElementCommand:zb,InsertElementCommand:Vb,RemoveElementCommand:Kb,ChangeElementCommand:qb,BatchCommand:Wb,UndoManager:Xb}),Jb=jQuery,$b={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"]},Zb={},ew=function setUiStrings(Tn){Object.assign(Zb,Tn.ui)},tw=[],nw=!0,rw={},iw=null,aw=null,ow=function init(Tn){aw=Tn,tw=[0,"ClosePath"];Jb.each(["Moveto","Lineto","CurvetoCubic","CurvetoQuadratic","Arc","LinetoHorizontal","LinetoVertical","CurvetoCubicSmooth","CurvetoQuadraticSmooth"],(function(Tn,Un){tw.push(Un+"Abs"),tw.push(Un+"Rel")}))},sw=function insertItemBefore(Tn,Un,Qn){var Dn=Tn.pathSegList;if(function supportsPathInsertItemBefore(){return Rd}())Dn.insertItemBefore(Un,Qn);else{for(var Hn=Dn.numberOfItems,Gn=[],zn=0;zn<Hn;zn++){var Vn=Dn.getItem(zn);Gn.push(Vn)}Dn.clear();for(var Kn=0;Kn<Hn;Kn++)Kn===Qn&&Dn.appendItem(Un),Dn.appendItem(Gn[Kn])}},lw=function ptObjToArr(Tn,Un){return $b[Tn].map((function(Tn){return Un[Tn]}))},cw=function getGripPt(Tn,Un){var Qn=Tn.path,Dn={x:Un?Un.x:Tn.item.x,y:Un?Un.y:Tn.item.y};Qn.matrix&&(Dn=PA(Dn.x,Dn.y,Qn.matrix));var Hn=aw.getCurrentZoom();return Dn.x*=Hn,Dn.y*=Hn,Dn},uw=function getPointFromGrip(Tn,Un){var Qn={x:Tn.x,y:Tn.y};Un.matrix&&(Tn=PA(Qn.x,Qn.y,Un.imatrix),Qn.x=Tn.x,Qn.y=Tn.y);var Dn=aw.getCurrentZoom();return Qn.x/=Dn,Qn.y/=Dn,Qn},dw=function addPointGrip(Tn,Un,Qn){var Dn=hw(),Hn=yf("pathpointgrip_"+Tn);if(!Hn){Hn=document.createElementNS(yd.SVG,"circle");var Gn={id:"pathpointgrip_"+Tn,display:"none",r:4,fill:"#0FF",stroke:"#00F","stroke-width":2,cursor:"move",style:"pointer-events:all"};"pathNodeTooltip"in Zb&&(Gn["xlink:title"]=Zb.pathNodeTooltip),bf(Hn,Gn),Hn=Dn.appendChild(Hn),Jb("#pathpointgrip_"+Tn).dblclick((function(){iw&&iw.setSegType()}))}return Un&&Qn&&bf(Hn,{cx:Un,cy:Qn,display:"inline"}),Hn},hw=function getGripContainer(){var Tn=yf("pathpointgrip_container");Tn||((Tn=yf("selectorParentGroup").appendChild(document.createElementNS(yd.SVG,"g"))).id="pathpointgrip_container");return Tn},pw=function addCtrlGrip(Tn){var Un=yf("ctrlpointgrip_"+Tn);if(Un)return Un;Un=document.createElementNS(yd.SVG,"circle");var Qn={id:"ctrlpointgrip_"+Tn,display:"none",r:4,fill:"#0FF",stroke:"#55F","stroke-width":1,cursor:"move",style:"pointer-events:all"};return"pathCtrlPtTooltip"in Zb&&(Qn["xlink:title"]=Zb.pathCtrlPtTooltip),bf(Un,Qn),hw().append(Un),Un},Aw=function getCtrlLine(Tn){var Un=yf("ctrlLine_"+Tn);return Un||(Un=document.createElementNS(yd.SVG,"line"),bf(Un,{id:"ctrlLine_"+Tn,stroke:"#555","stroke-width":1,style:"pointer-events:none"}),hw().append(Un),Un)},fw=function getControlPoints(Tn){var Un=Tn.item,Qn=Tn.index;if(!("x1"in Un)||!("x2"in Un))return null;var Dn={};hw();for(var Hn=[iw.segs[Qn-1].item,Un],Gn=1;Gn<3;Gn++){var zn=Qn+"c"+Gn,Vn=Dn["c"+Gn+"_line"]=Aw(zn),Kn=cw(Tn,{x:Un["x"+Gn],y:Un["y"+Gn]}),Wn=cw(Tn,{x:Hn[Gn-1].x,y:Hn[Gn-1].y});bf(Vn,{x1:Kn.x,y1:Kn.y,x2:Wn.x,y2:Wn.y,display:"inline"}),Dn["c"+Gn+"_line"]=Vn;var Xn=Dn["c"+Gn]=pw(zn);bf(Xn,{cx:Kn.x,cy:Kn.y,display:"inline"}),Dn["c"+Gn]=Xn}return Dn},gw=function replacePathSeg(Tn,Un,Qn,Dn){var Hn=Dn||iw.elem,Gn=Hn["createSVGPathSeg"+tw[Tn]].apply(Hn,_toConsumableArray(Qn));if(function supportsPathReplaceItem(){return Id}())Hn.pathSegList.replaceItem(Gn,Un);else{for(var zn=Hn.pathSegList,Vn=zn.numberOfItems,Kn=[],Wn=0;Wn<Vn;Wn++){var Xn=zn.getItem(Wn);Kn.push(Xn)}zn.clear();for(var Yn=0;Yn<Vn;Yn++)Yn===Un?zn.appendItem(Gn):zn.appendItem(Kn[Yn])}},mw=function getSegSelector(Tn,Un){var Qn=Tn.index,Dn=yf("segline_"+Qn);if(!Dn){var Hn=hw();Dn=document.createElementNS(yd.SVG,"path"),bf(Dn,{id:"segline_"+Qn,display:"none",fill:"none",stroke:"#0FF","stroke-width":2,style:"pointer-events:none",d:"M0,0 0,0"}),Hn.append(Dn)}if(Un){var Gn=Tn.prev;if(!Gn)return Dn.setAttribute("display","none"),Dn;var zn=cw(Gn);gw(2,0,[zn.x,zn.y],Dn);for(var Vn=lw(Tn.type,Tn.item),Kn=0;Kn<Vn.length;Kn+=2){var Wn=cw(Tn,{x:Vn[Kn],y:Vn[Kn+1]});Vn[Kn]=Wn.x,Vn[Kn+1]=Wn.y}gw(Tn.type,1,Vn,Dn)}return Dn},_w=function smoothControlPoints(Tn,Un,Qn){var Dn=Tn.x-Qn.x,Hn=Tn.y-Qn.y,Gn=Un.x-Qn.x,zn=Un.y-Qn.y;if(!(0===Dn&&0===Hn||0===Gn&&0===zn)){var Vn=Math.sqrt(Dn*Dn+Hn*Hn),Kn=Math.sqrt(Gn*Gn+zn*zn),Wn=aw.getSVGRoot().createSVGPoint(),Xn=aw.getSVGRoot().createSVGPoint(),Yn=Math.atan2(Hn,Dn),Jn=Math.atan2(zn,Gn);Yn<0&&(Yn+=2*Math.PI),Jn<0&&(Jn+=2*Math.PI);var $n,Zn,er=Math.abs(Yn-Jn),tr=Math.abs(Math.PI-er)/2;return Yn-Jn>0?($n=er<Math.PI?Yn+tr:Yn-tr,Zn=er<Math.PI?Jn-tr:Jn+tr):($n=er<Math.PI?Yn-tr:Yn+tr,Zn=er<Math.PI?Jn+tr:Jn-tr),Wn.x=Vn*Math.cos($n)+Qn.x,Wn.y=Vn*Math.sin($n)+Qn.y,Xn.x=Kn*Math.cos(Zn)+Qn.x,Xn.y=Kn*Math.sin(Zn)+Qn.y,[Wn,Xn]}},vw=function(){function Segment(Tn,Un){_classCallCheck(this,Segment),this.selected=!1,this.index=Tn,this.item=Un,this.type=Un.pathSegType,this.ctrlpts=[],this.ptgrip=null,this.segsel=null}return _createClass(Segment,[{key:"showCtrlPts",value:function showCtrlPts(Tn){for(var Un in this.ctrlpts)({}).hasOwnProperty.call(this.ctrlpts,Un)&&this.ctrlpts[Un].setAttribute("display",Tn?"inline":"none")}},{key:"selectCtrls",value:function selectCtrls(Tn){Jb("#ctrlpointgrip_"+this.index+"c1, #ctrlpointgrip_"+this.index+"c2").attr("fill",Tn?"#0FF":"#EEE")}},{key:"show",value:function show(Tn){this.ptgrip&&(this.ptgrip.setAttribute("display",Tn?"inline":"none"),this.segsel.setAttribute("display",Tn?"inline":"none"),this.showCtrlPts(Tn))}},{key:"select",value:function select(Tn){this.ptgrip&&(this.ptgrip.setAttribute("stroke",Tn?"#0FF":"#00F"),this.segsel.setAttribute("display",Tn?"inline":"none"),this.ctrlpts&&this.selectCtrls(Tn),this.selected=Tn)}},{key:"addGrip",value:function addGrip(){this.ptgrip=function getPointGrip(Tn,Un){var Qn=Tn.index,Dn=dw(Qn);if(Un){var Hn=cw(Tn);bf(Dn,{cx:Hn.x,cy:Hn.y,display:"inline"})}return Dn}(this,!0),this.ctrlpts=fw(this),this.segsel=mw(this,!0)}},{key:"update",value:function update(Tn){if(this.ptgrip){var Un=cw(this);bf(this.ptgrip,{cx:Un.x,cy:Un.y}),mw(this,!0),this.ctrlpts&&(Tn&&(this.item=iw.elem.pathSegList.getItem(this.index),this.type=this.item.pathSegType),fw(this))}}},{key:"move",value:function move(Tn,Un){var Qn=this.item,Dn=this.ctrlpts?[Qn.x+=Tn,Qn.y+=Un,Qn.x1,Qn.y1,Qn.x2+=Tn,Qn.y2+=Un]:[Qn.x+=Tn,Qn.y+=Un];if(gw(this.type,this.index,10===this.type?lw(this.type,Qn):Dn),this.next&&this.next.ctrlpts){var Hn=this.next.item,Gn=[Hn.x,Hn.y,Hn.x1+=Tn,Hn.y1+=Un,Hn.x2,Hn.y2];gw(this.next.type,this.next.index,Gn)}if(this.mate){var zn=this.mate.item,Vn=[zn.x+=Tn,zn.y+=Un];gw(this.mate.type,this.mate.index,Vn)}this.update(!0),this.next&&this.next.update(!0)}},{key:"setLinked",value:function setLinked(Tn){var Un,Qn,Dn;if(2===Tn){if(Qn=1,!(Un=this.next))return;Dn=this.item}else{if(Qn=2,!(Un=this.prev))return;Dn=Un.item}var Hn=Un.item;Hn["x"+Qn]=Dn.x+(Dn.x-this.item["x"+Tn]),Hn["y"+Qn]=Dn.y+(Dn.y-this.item["y"+Tn]);var Gn=[Hn.x,Hn.y,Hn.x1,Hn.y1,Hn.x2,Hn.y2];gw(Un.type,Un.index,Gn),Un.update(!0)}},{key:"moveCtrl",value:function moveCtrl(Tn,Un,Qn){var Dn=this.item;Dn["x"+Tn]+=Un,Dn["y"+Tn]+=Qn;var Hn=[Dn.x,Dn.y,Dn.x1,Dn.y1,Dn.x2,Dn.y2];gw(this.type,this.index,Hn),this.update(!0)}},{key:"setType",value:function setType(Tn,Un){gw(Tn,this.index,Un),this.type=Tn,this.item=iw.elem.pathSegList.getItem(this.index),this.showCtrlPts(6===Tn),this.ctrlpts=fw(this),this.update(!0)}}]),Segment}(),yw=function(){function Path(Tn){if(_classCallCheck(this,Path),!Tn||"path"!==Tn.tagName)throw new Error("svgedit.path.Path constructed without a <path> element");this.elem=Tn,this.segs=[],this.selected_pts=[],iw=this,this.init()}return _createClass(Path,[{key:"init",value:function init(){Jb(hw()).find("*").each((function(){Jb(this).attr("display","none")}));var Tn=this.elem.pathSegList,Un=Tn.numberOfItems;this.segs=[],this.selected_pts=[],this.first_seg=null;for(var Qn=0;Qn<Un;Qn++){var Dn=Tn.getItem(Qn),Hn=new vw(Qn,Dn);Hn.path=this,this.segs.push(Hn)}for(var Gn=this.segs,zn=null,Vn=0;Vn<Un;Vn++){var Kn=Gn[Vn],Wn=Vn+1>=Un?null:Gn[Vn+1],Xn=Vn-1<0?null:Gn[Vn-1];if(2===Kn.type){if(Xn&&1!==Xn.type){var Yn=Gn[zn];Yn.next=Gn[zn+1],Yn.next.prev=Yn,Yn.addGrip()}zn=Vn}else if(Wn&&1===Wn.type)Kn.next=Gn[zn+1],Kn.next.prev=Kn,Kn.mate=Gn[zn],Kn.addGrip(),Sf(this.first_seg)&&(this.first_seg=Kn);else if(Wn)1!==Kn.type&&(Kn.addGrip(),Wn&&2!==Wn.type&&(Kn.next=Wn,Kn.next.prev=Kn));else if(1!==Kn.type){var Jn=Gn[zn];Jn.next=Gn[zn+1],Jn.next.prev=Jn,Jn.addGrip(),Kn.addGrip(),this.first_seg||(this.first_seg=Gn[zn])}}return this}},{key:"eachSeg",value:function eachSeg(Tn){for(var Un=this.segs.length,Qn=0;Qn<Un;Qn++){if(!1===Tn.call(this.segs[Qn],Qn))break}}},{key:"addSeg",value:function addSeg(Tn){var Un=this.segs[Tn];if(Un.prev){var Qn,Dn,Hn,Gn=Un.prev;switch(Un.item.pathSegType){case 4:Dn=(Un.item.x+Gn.item.x)/2,Hn=(Un.item.y+Gn.item.y)/2,Qn=this.elem.createSVGPathSegLinetoAbs(Dn,Hn);break;case 6:var zn=(Gn.item.x+Un.item.x1)/2,Vn=(Un.item.x1+Un.item.x2)/2,Kn=(Un.item.x2+Un.item.x)/2,Wn=(zn+Vn)/2,Xn=(Vn+Kn)/2;Dn=(Wn+Xn)/2;var Yn=(Gn.item.y+Un.item.y1)/2,Jn=(Un.item.y1+Un.item.y2)/2,$n=(Un.item.y2+Un.item.y)/2,Zn=(Yn+Jn)/2,er=(Jn+$n)/2;Hn=(Zn+er)/2,Qn=this.elem.createSVGPathSegCurvetoCubicAbs(Dn,Hn,zn,Yn,Wn,Zn);var tr=[Un.item.x,Un.item.y,Xn,er,Kn,$n];gw(Un.type,Tn,tr)}sw(this.elem,Qn,Tn)}}},{key:"deleteSeg",value:function deleteSeg(Tn){var Un=this.segs[Tn],Qn=this.elem.pathSegList;Un.show(!1);var Dn=Un.next;if(Un.mate){var Hn=[Dn.item.x,Dn.item.y];gw(2,Dn.index,Hn),gw(4,Un.index,Hn),Qn.removeItem(Un.mate.index)}else if(Un.prev)Qn.removeItem(Tn);else{var Gn=[Dn.item.x,Dn.item.y];gw(2,Un.next.index,Gn),Qn.removeItem(Tn)}}},{key:"removePtFromSelection",value:function removePtFromSelection(Tn){var Un=this.selected_pts.indexOf(Tn);-1!==Un&&(this.segs[Tn].select(!1),this.selected_pts.splice(Un,1))}},{key:"clearSelection",value:function clearSelection(){this.eachSeg((function(){this.select(!1)})),this.selected_pts=[]}},{key:"storeD",value:function storeD(){this.last_d=this.elem.getAttribute("d")}},{key:"show",value:function show(Tn){return this.eachSeg((function(){this.show(Tn)})),Tn&&this.selectPt(this.first_seg.index),this}},{key:"movePts",value:function movePts(Tn,Un){for(var Qn=this.selected_pts.length;Qn--;){this.segs[this.selected_pts[Qn]].move(Tn,Un)}}},{key:"moveCtrl",value:function moveCtrl(Tn,Un){var Qn=this.segs[this.selected_pts[0]];Qn.moveCtrl(this.dragctrl,Tn,Un),nw&&Qn.setLinked(this.dragctrl)}},{key:"setSegType",value:function setSegType(Tn){this.storeD();for(var Un,Qn=this.selected_pts.length;Qn--;){var Dn=this.selected_pts[Qn],Hn=this.segs[Dn],Gn=Hn.prev;if(Gn){if(!Tn)Un="Toggle Path Segment Type",Tn=6===Hn.type?4:6;Tn=Number(Tn);var zn=Hn.item.x,Vn=Hn.item.y,Kn=Gn.item.x,Wn=Gn.item.y,Xn=void 0;switch(Tn){case 6:if(Hn.olditem){var Yn=Hn.olditem;Xn=[zn,Vn,Yn.x1,Yn.y1,Yn.x2,Yn.y2]}else{var Jn=zn-Kn,$n=Vn-Wn;Xn=[zn,Vn,Kn+Jn/3,Wn+$n/3,zn-Jn/3,Vn-$n/3]}break;case 4:Xn=[zn,Vn],Hn.olditem=Hn.item}Hn.setType(Tn,Xn)}}iw.endChanges(Un)}},{key:"selectPt",value:function selectPt(Tn,Un){this.clearSelection(),Sf(Tn)&&this.eachSeg((function(Un){this.prev&&(Tn=Un)})),this.addPtsToSelection(Tn),Un&&(this.dragctrl=Un,nw&&this.segs[Tn].setLinked(Un))}},{key:"update",value:function update(){var Tn=this.elem;return _f(Tn)?(this.matrix=QA(Tn),this.imatrix=this.matrix.inverse()):(this.matrix=null,this.imatrix=null),this.eachSeg((function(Un){this.item=Tn.pathSegList.getItem(Un),this.update()})),this}},{key:"endChanges",value:function endChanges(Tn){Hd()&&aw.resetD(this.elem);var Un=new qb(this.elem,{d:this.last_d},Tn);aw.endChanges({cmd:Un,elem:this.elem})}},{key:"addPtsToSelection",value:function addPtsToSelection(Tn){var Un=this;Array.isArray(Tn)||(Tn=[Tn]),Tn.forEach((function(Tn){Un.segs[Tn].ptgrip&&!Un.selected_pts.includes(Tn)&&Tn>=0&&Un.selected_pts.push(Tn)})),this.selected_pts.sort();var Qn=this.selected_pts.length,Dn=[];for(Dn.length=Qn;Qn--;){var Hn=this.selected_pts[Qn],Gn=this.segs[Hn];Gn.select(!0),Dn[Qn]=Gn.ptgrip}var zn=Path.subpathIsClosed(this.selected_pts[0]);aw.addPtsToSelection({grips:Dn,closedSubpath:zn})}}],[{key:"subpathIsClosed",value:function subpathIsClosed(Tn){var Un=!1;return iw.eachSeg((function(Qn){return Qn<=Tn||2!==this.type&&(1!==this.type||(Un=!0,!1))})),Un}}]),Path}(),bw=function getPath_(Tn){var Un=rw[Tn.id];return Un||(Un=rw[Tn.id]=new yw(Tn)),Un},ww=function removePath_(Tn){Tn in rw&&delete rw[Tn]},xw=function getRotVals(Tn,Un){var Qn=Tn-Ob,Dn=Un-Db,Hn=Math.sqrt(Qn*Qn+Dn*Dn),Gn=Math.atan2(Dn,Qn)+jb;return Qn=Hn*Math.cos(Gn)+Ob,Dn=Hn*Math.sin(Gn)+Db,Qn-=Mb,Dn-=Qb,Hn=Math.sqrt(Qn*Qn+Dn*Dn),Gn=Math.atan2(Dn,Qn)-jb,{x:Hn*Math.cos(Gn)+Mb,y:Hn*Math.sin(Gn)+Qb}},kw=function recalcRotatedPath(){var Tn=iw.elem;if(jb=_f(Tn,!0)){var Un=iw.oldbbox;Ob=Un.x+Un.width/2,Db=Un.y+Un.height/2;var Qn=lf(Tn);Mb=Qn.x+Qn.width/2,Qb=Qn.y+Qn.height/2;var Dn=Mb-Ob,Hn=Qb-Db,Gn=Math.sqrt(Dn*Dn+Hn*Hn),zn=Math.atan2(Hn,Dn)+jb;Mb=Gn*Math.cos(zn)+Ob,Qb=Gn*Math.sin(zn)+Db;for(var Vn=Tn.pathSegList,Kn=Vn.numberOfItems;Kn;){Kn-=1;var Wn=Vn.getItem(Kn),Xn=Wn.pathSegType;if(1!==Xn){var Yn=xw(Wn.x,Wn.y),Jn=[Yn.x,Yn.y];if(!Sf(Wn.x1)&&!Sf(Wn.x2)){var $n=xw(Wn.x1,Wn.y1),Zn=xw(Wn.x2,Wn.y2);Jn.splice(Jn.length,0,$n.x,$n.y,Zn.x,Zn.y)}gw(Xn,Kn,Jn)}}lf(Tn);var er=aw.getSVGRoot().createSVGTransform(),tr=gA(Tn);er.setRotate(180*jb/Math.PI,Mb,Qb),tr.replaceItem(er,0)}},Sw=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"],Cw=function convertPath(Tn,Un){for(var Qn=Tn.pathSegList,Dn=Qn.numberOfItems,Hn=0,Gn=0,zn="",Vn=null,Kn=0;Kn<Dn;++Kn){var Wn=Qn.getItem(Kn),Xn=Wn.x||0,Yn=Wn.y||0,Jn=Wn.x1||0,$n=Wn.y1||0,Zn=Wn.x2||0,er=Wn.y2||0,tr=Wn.pathSegType,nr=Sw[tr][Un?"toLowerCase":"toUpperCase"]();switch(tr){case 1:zn+="z",Vn&&!Un&&(Hn=Vn[0],Gn=Vn[1]);break;case 12:Xn-=Hn;case 13:Un?(Yn=0,Hn+=Xn,nr="l"):(Yn=Gn,Hn=Xn+=Hn,nr="L"),zn+=pathDSegment(nr,[[Xn,Yn]]);break;case 14:Yn-=Gn;case 15:Un?(Xn=0,Gn+=Yn,nr="l"):(Xn=Hn,Gn=Yn+=Gn,nr="L"),zn+=pathDSegment(nr,[[Xn,Yn]]);break;case 2:case 4:case 18:Xn-=Hn,Yn-=Gn;case 5:case 3:case 19:Un?(Hn+=Xn,Gn+=Yn):(Hn=Xn+=Hn,Gn=Yn+=Gn),2!==tr&&3!==tr||(Vn=[Hn,Gn]),zn+=pathDSegment(nr,[[Xn,Yn]]);break;case 6:Xn-=Hn,Jn-=Hn,Zn-=Hn,Yn-=Gn,$n-=Gn,er-=Gn;case 7:Un?(Hn+=Xn,Gn+=Yn):(Jn+=Hn,Zn+=Hn,$n+=Gn,er+=Gn,Hn=Xn+=Hn,Gn=Yn+=Gn),zn+=pathDSegment(nr,[[Jn,$n],[Zn,er],[Xn,Yn]]);break;case 8:Xn-=Hn,Jn-=Hn,Yn-=Gn,$n-=Gn;case 9:Un?(Hn+=Xn,Gn+=Yn):(Jn+=Hn,$n+=Gn,Hn=Xn+=Hn,Gn=Yn+=Gn),zn+=pathDSegment(nr,[[Jn,$n],[Xn,Yn]]);break;case 10:Xn-=Hn,Yn-=Gn;case 11:Un?(Hn+=Xn,Gn+=Yn):(Hn=Xn+=Hn,Gn=Yn+=Gn),zn+=pathDSegment(nr,[[Wn.r1,Wn.r2]],[Wn.angle,Wn.largeArcFlag?1:0,Wn.sweepFlag?1:0],[Xn,Yn]);break;case 16:Xn-=Hn,Zn-=Hn,Yn-=Gn,er-=Gn;case 17:Un?(Hn+=Xn,Gn+=Yn):(Zn+=Hn,er+=Gn,Hn=Xn+=Hn,Gn=Yn+=Gn),zn+=pathDSegment(nr,[[Zn,er],[Xn,Yn]])}}return zn};function pathDSegment(Tn,Un,Qn,Dn){Jb.each(Un,(function(Tn,Qn){Un[Tn]=xA(Qn)}));var Hn=Tn+Un.join(" ");return Qn&&(Hn+=" "+Qn.join(" ")),Dn&&(Hn+=" "+xA(Dn)),Hn}var Bw,Ew,Nw,Lw,Tw,Pw=(Nw=!1,Lw=null,Tw=!1,{mouseDown:function mouseDown(Tn,Un,Qn,Dn){var Hn;if("path"!==aw.getCurrentMode()){if(iw){var Gn;if(iw.storeD(),"pathpointgrip_"===(Hn=Tn.target.id).substr(0,14)){Gn=iw.cur_pt=Number.parseInt(Hn.substr(14)),iw.dragging=[Qn,Dn];var zn=iw.segs[Gn];Tn.shiftKey?zn.selected?iw.removePtFromSelection(Gn):iw.addPtsToSelection(Gn):((iw.selected_pts.length<=1||!zn.selected)&&iw.clearSelection(),iw.addPtsToSelection(Gn))}else if(Hn.startsWith("ctrlpointgrip_")){iw.dragging=[Qn,Dn];var Vn=Hn.split("_")[1].split("c");Gn=Number(Vn[0]);var Kn=Number(Vn[1]);iw.selectPt(Gn,Kn)}if(!iw.dragging){var Wn=aw.getRubberBox();Sf(Wn)&&(Wn=aw.setRubberBox(aw.selectorManager.getRubberBandBox())),Xn=aw.getCurrentZoom(),bf(Wn,{x:Qn*Xn,y:Dn*Xn,width:0,height:0,display:"inline"})}}}else{var Xn,Yn=Qn,Jn=Dn,$n=Yn/(Xn=aw.getCurrentZoom()),Zn=Jn/Xn,er=yf("path_stretch_line");Bw=[$n,Zn],aw.getGridSnapping()&&($n=xf($n),Zn=xf(Zn),Yn=xf(Yn),Jn=xf(Jn)),er||(er=document.createElementNS(yd.SVG,"path"),bf(er,{id:"path_stretch_line",stroke:"#22C","stroke-width":"0.5",fill:"none"}),er=yf("selectorParentGroup").appendChild(er)),er.setAttribute("display","inline");var tr,nr=aw.getDrawnPath();if(nr){for(var rr=nr.pathSegList,ir=rr.numberOfItems,ar=6/Xn,or=!1;ir;){ir--;var sr=rr.getItem(ir),lr=sr.x,cr=sr.y;if($n>=lr-ar&&$n<=lr+ar&&Zn>=cr-ar&&Zn<=cr+ar){or=!0;break}}Hn=aw.getId(),ww(Hn);var ur,dr,hr=yf(Hn),pr=rr.numberOfItems;if(or){if(ir<=1&&pr>=2){var Ar=rr.getItem(0).x,fr=rr.getItem(0).y;ur=4===(dr=er.pathSegList.getItem(1)).pathSegType?nr.createSVGPathSegLinetoAbs(Ar,fr):nr.createSVGPathSegCurvetoCubicAbs(Ar,fr,dr.x1/Xn,dr.y1/Xn,Ar,fr);var gr=nr.createSVGPathSegClosePath();rr.appendItem(ur),rr.appendItem(gr)}else if(pr<3)return!1;if(Jb(er).remove(),aw.setDrawnPath(null),aw.setStarted(!1),Nw){iw.matrix&&aw.remapElement(hr,{},iw.matrix.inverse());var mr=hr.getAttribute("d"),_r=Jb(iw.elem).attr("d");return Jb(iw.elem).attr("d",_r+mr),Jb(hr).remove(),iw.matrix&&kw(),ow(),Pw.toEditMode(iw.elem),iw.selectPt(),!1}}else{if(!Jb.contains(aw.getContainer(),aw.getMouseTarget(Tn)))return!1;var vr=nr.pathSegList.numberOfItems,yr=nr.pathSegList.getItem(vr-1),br=yr.x,wr=yr.y;if(Tn.shiftKey){var xr=OA(br,wr,$n,Zn);$n=xr.x,Zn=xr.y}ur=4===(dr=er.pathSegList.getItem(1)).pathSegType?nr.createSVGPathSegLinetoAbs(aw.round($n),aw.round(Zn)):nr.createSVGPathSegCurvetoCubicAbs(aw.round($n),aw.round(Zn),dr.x1/Xn,dr.y1/Xn,dr.x2/Xn,dr.y2/Xn),nr.pathSegList.appendItem(ur),$n*=Xn,Zn*=Xn,er.setAttribute("d",["M",$n,Zn,$n,Zn].join(" ")),tr=vr,Nw&&(tr+=iw.segs.length),dw(tr,$n,Zn)}}else{var kr="M"+$n+","+Zn+" ";aw.setDrawnPath(aw.addSVGElementFromJson({element:"path",curStyles:!0,attr:{d:kr,id:aw.getNextId(),opacity:aw.getOpacity()/2}})),er.setAttribute("d",["M",Yn,Jn,Yn,Jn].join(" ")),tr=Nw?iw.segs.length:0,dw(tr,Yn,Jn)}}},mouseMove:function mouseMove(Tn,Un){var Qn=aw.getCurrentZoom();Tw=!0;var Dn=aw.getDrawnPath();if("path"!==aw.getCurrentMode())if(iw.dragging){var Hn=uw({x:iw.dragging[0],y:iw.dragging[1]},iw),Gn=uw({x:Tn,y:Un},iw),zn=Gn.x-Hn.x,Vn=Gn.y-Hn.y;iw.dragging=[Tn,Un],iw.dragctrl?iw.moveCtrl(zn,Vn):iw.movePts(zn,Vn)}else iw.selected_pts=[],iw.eachSeg((function(Tn){var Un=this;if(Un.next||Un.prev){var Qn=aw.getRubberBox().getBBox(),Dn=cw(Un),Hn={x:Dn.x,y:Dn.y,width:0,height:0},Gn=DA(Qn,Hn);this.select(Gn),Gn&&iw.selected_pts.push(Un.index)}}));else{if(!Dn)return;var Kn=Dn.pathSegList,Wn=Kn.numberOfItems-1;if(Bw){var Xn=pw("1c1"),Yn=pw("0c2");Xn.setAttribute("cx",Tn),Xn.setAttribute("cy",Un),Xn.setAttribute("display","inline");var Jn=Bw[0],$n=Bw[1],Zn=Jn+(Jn-Tn/Qn),er=$n+($n-Un/Qn);Yn.setAttribute("cx",Zn*Qn),Yn.setAttribute("cy",er*Qn),Yn.setAttribute("display","inline");var tr=Aw(1);if(bf(tr,{x1:Tn,y1:Un,x2:Zn*Qn,y2:er*Qn,display:"inline"}),0===Wn)Ew=[Tn,Un];else{var nr=Kn.getItem(Wn-1),rr=nr.x,ir=nr.y;6===nr.pathSegType?(rr+=rr-nr.x2,ir+=ir-nr.y2):Ew&&(rr=Ew[0]/Qn,ir=Ew[1]/Qn),gw(6,Wn,[Jn,$n,rr,ir,Zn,er],Dn)}}else{var ar=yf("path_stretch_line");if(ar){var or=Kn.getItem(Wn);if(6===or.pathSegType){var sr=or.x+(or.x-or.x2),lr=or.y+(or.y-or.y2);gw(6,1,[Tn,Un,sr*Qn,lr*Qn,Tn,Un],ar)}else Ew?gw(6,1,[Tn,Un,Ew[0],Ew[1],Tn,Un],ar):gw(4,1,[Tn,Un],ar)}}}},mouseUp:function mouseUp(Tn,Un,Qn,Dn){var Hn=aw.getDrawnPath();if("path"===aw.getCurrentMode())return Bw=null,Hn||(Un=yf(aw.getId()),aw.setStarted(!1),Ew=null),{keep:!0,element:Un};var Gn=aw.getRubberBox();if(iw.dragging){var zn=iw.cur_pt;iw.dragging=!1,iw.dragctrl=!1,iw.update(),Tw&&iw.endChanges("Move path point(s)"),Tn.shiftKey||Tw||iw.selectPt(zn)}else Gn&&"none"!==Gn.getAttribute("display")?(Gn.setAttribute("display","none"),Gn.getAttribute("width")<=2&&Gn.getAttribute("height")<=2&&Pw.toSelectMode(Tn.target)):Pw.toSelectMode(Tn.target);Tw=!1},toEditMode:function toEditMode(Tn){iw=bw(Tn),aw.setCurrentMode("pathedit"),aw.clearSelection(),iw.show(!0).update(),iw.oldbbox=lf(iw.elem),Nw=!1},toSelectMode:function toSelectMode(Tn){var Un=Tn===iw.elem;aw.setCurrentMode("select"),iw.show(!1),Lw=!1,aw.clearSelection(),iw.matrix&&kw(),Un&&(aw.call("selected",[Tn]),aw.addToSelection([Tn],!0))},addSubPath:function addSubPath(Tn){Tn?(aw.setCurrentMode("path"),Nw=!0):(Pw.clear(!0),Pw.toEditMode(iw.elem))},select:function select(Tn){Lw===Tn?(Pw.toEditMode(Tn),aw.setCurrentMode("pathedit")):Lw=Tn},reorient:function reorient(){var Tn=aw.getSelectedElements()[0];if(Tn&&0!==_f(Tn)){var Un=new Wb("Reorient path"),Qn={d:Tn.getAttribute("d"),transform:Tn.getAttribute("transform")};Un.addSubCommand(new qb(Tn,Qn)),aw.clearSelection(),this.resetOrientation(Tn),aw.addCommandToHistory(Un),bw(Tn).show(!1).matrix=null,this.clear(),aw.addToSelection([Tn],!0),aw.call("changed",aw.getSelectedElements())}},clear:function clear(Tn){var Un=aw.getDrawnPath();if(Lw=null,Un){var Qn=yf(aw.getId());Jb(yf("path_stretch_line")).remove(),Jb(Qn).remove(),Jb(yf("pathpointgrip_container")).find("*").attr("display","none"),Ew=null,aw.setDrawnPath(null),aw.setStarted(!1)}else"pathedit"===aw.getCurrentMode()&&this.toSelectMode();iw&&iw.init().show(!1)},resetOrientation:function resetOrientation(Tn){if(Sf(Tn)||"path"!==Tn.nodeName)return!1;var Un=gA(Tn),Qn=MA(Un).matrix;Un.clear(),Tn.removeAttribute("transform");for(var Dn=Tn.pathSegList,Hn=Dn.numberOfItems,Gn=function _loop(Un){var Hn=Dn.getItem(Un),Gn=Hn.pathSegType;if(1===Gn)return"continue";var zn=[];Jb.each(["",1,2],(function(Tn,Un){var Dn=Hn["x"+Un],Gn=Hn["y"+Un];if(void 0!==Dn&&void 0!==Gn){var Vn=PA(Dn,Gn,Qn);zn.splice(zn.length,0,Vn.x,Vn.y)}})),gw(Gn,Un,zn,Tn)},zn=0;zn<Hn;++zn)Gn(zn);!function reorientGrads(Tn,Un){for(var Qn=lf(Tn),Dn=0;Dn<2;Dn++){var Hn=0===Dn?"fill":"stroke",Gn=Tn.getAttribute(Hn);if(Gn&&Gn.startsWith("url(")){var zn=vf(Gn);if("linearGradient"===zn.tagName){var Vn=zn.getAttribute("x1")||0,Kn=zn.getAttribute("y1")||0,Wn=zn.getAttribute("x2")||1,Xn=zn.getAttribute("y2")||0;Vn=Qn.width*Vn+Qn.x,Kn=Qn.height*Kn+Qn.y,Wn=Qn.width*Wn+Qn.x,Xn=Qn.height*Xn+Qn.y;var Yn=PA(Vn,Kn,Un),Jn=PA(Wn,Xn,Un),$n={x1:(Yn.x-Qn.x)/Qn.width,y1:(Yn.y-Qn.y)/Qn.height,x2:(Jn.x-Qn.x)/Qn.width,y2:(Jn.y-Qn.y)/Qn.height},Zn=zn.cloneNode(!0);Jb(Zn).attr($n),Zn.id=aw.getNextId(),of().append(Zn),Tn.setAttribute(Hn,"url(#"+Zn.id+")")}}}}(Tn,Qn)},zoomChange:function zoomChange(){"pathedit"===aw.getCurrentMode()&&iw.update()},getNodePoint:function getNodePoint(){var Tn=iw.selected_pts.length?iw.selected_pts[0]:1,Un=iw.segs[Tn];return{x:Un.item.x,y:Un.item.y,type:Un.type}},linkControlPoints:function linkControlPoints(Tn){!function setLinkControlPoints(Tn){nw=Tn}(Tn)},clonePathNode:function clonePathNode(){iw.storeD();for(var Tn=iw.selected_pts,Un=Tn.length,Qn=[];Un--;){var Dn=Tn[Un];iw.addSeg(Dn),Qn.push(Dn+Un),Qn.push(Dn+Un+1)}iw.init().addPtsToSelection(Qn),iw.endChanges("Clone path node(s)")},opencloseSubPath:function opencloseSubPath(){var Tn=iw.selected_pts;if(1===Tn.length){var Un,Qn,Dn=iw.elem,Hn=Dn.pathSegList,Gn=Tn[0],zn=null,Vn=null;if(iw.eachSeg((function(Tn){return 2===this.type&&Tn<=Gn&&(Vn=this.item),Tn<=Gn||(2===this.type?(zn=Tn,!1):1!==this.type||(zn=!1,!1))})),Sf(zn)&&(zn=iw.segs.length-1),!1!==zn){var Kn=Dn.createSVGPathSegLinetoAbs(Vn.x,Vn.y),Wn=Dn.createSVGPathSegClosePath();return zn===iw.segs.length-1?(Hn.appendItem(Kn),Hn.appendItem(Wn)):(sw(Dn,Wn,zn),sw(Dn,Kn,zn)),void iw.init().selectPt(zn+1)}if(iw.segs[Gn].mate)return Hn.removeItem(Gn),Hn.removeItem(Gn),void iw.init().selectPt(Gn-1);for(var Xn=0;Xn<Hn.numberOfItems;Xn++){var Yn=Hn.getItem(Xn);if(2===Yn.pathSegType)Un=Xn;else if(Xn===Gn)Hn.removeItem(Un);else if(1===Yn.pathSegType&&Gn<Xn){Qn=Xn-1,Hn.removeItem(Xn);break}}for(var Jn=Gn-Un-1;Jn--;)sw(Dn,Hn.getItem(Un),Qn);var $n=Hn.getItem(Un);gw(2,Un,[$n.x,$n.y]),iw.init().selectPt(0)}},deletePathNode:function deletePathNode(){if(Pw.canDeleteNodes){iw.storeD();for(var Tn=iw.selected_pts,Un=Tn.length;Un--;){var Qn=Tn[Un];iw.deleteSeg(Qn)}if(function cleanup(){var Tn=iw.elem.pathSegList,Un=Tn.numberOfItems,Qn=function remItems(Un,Qn){for(;Qn--;)Tn.removeItem(Un)};if(Un<=1)return!0;for(;Un--;){var Dn=Tn.getItem(Un);if(1===Dn.pathSegType){var Hn=Tn.getItem(Un-1),Gn=Tn.getItem(Un-2);if(2===Hn.pathSegType){Qn(Un-1,2),cleanup();break}if(2===Gn.pathSegType){Qn(Un-2,3),cleanup();break}}else if(2===Dn.pathSegType&&Un>0){var zn=Tn.getItem(Un-1).pathSegType;if(2===zn){Qn(Un-1,1),cleanup();break}if(1===zn&&Tn.numberOfItems-1===Un){Qn(Un,1),cleanup();break}}}return!1}(),iw.elem.pathSegList.numberOfItems<=1)return Pw.toSelectMode(iw.elem),void aw.canvas.deleteSelectedElements();if(iw.init(),iw.clearSelection(),window.opera){var Dn=Jb(iw.elem);Dn.attr("d",Dn.attr("d"))}iw.endChanges("Delete path node(s)")}},smoothPolylineIntoPath:function smoothPolylineIntoPath(Tn){var Un,Qn=Tn.points,Dn=Qn.numberOfItems;if(Dn>=4){var Hn=Qn.getItem(0),Gn=null,zn=[];for(zn.push(["M",Hn.x,",",Hn.y," C"].join("")),Un=1;Un<=Dn-4;Un+=3){var Vn=Qn.getItem(Un),Kn=Qn.getItem(Un+1),Wn=Qn.getItem(Un+2);if(Gn){var Xn=_w(Gn,Vn,Hn);if(Xn&&2===Xn.length){var Yn=zn[zn.length-1].split(",");Yn[2]=Xn[0].x,Yn[3]=Xn[0].y,zn[zn.length-1]=Yn.join(","),Vn=Xn[1]}}zn.push([Vn.x,Vn.y,Kn.x,Kn.y,Wn.x,Wn.y].join(",")),Hn=Wn,Gn=Kn}for(zn.push("L");Un<Dn;){var Jn=Qn.getItem(Un);zn.push([Jn.x,Jn.y].join(",")),Un++}zn=zn.join(" "),Tn=aw.addSVGElementFromJson({element:"path",curStyles:!0,attr:{id:aw.getId(),d:zn,fill:"none"}})}return Tn},setSegType:function setSegType(Tn){iw.setSegType(Tn)},moveNode:function moveNode(Tn,Un){var Qn=iw.selected_pts;if(Qn.length){iw.storeD();var Dn=iw.segs[Qn[0]],Hn={x:0,y:0};Hn[Tn]=Un-Dn.item[Tn],Dn.move(Hn.x,Hn.y),iw.endChanges("Move path point")}},fixEnd:function fixEnd(Tn){for(var Un,Qn=Tn.pathSegList,Dn=Qn.numberOfItems,Hn=0;Hn<Dn;++Hn){var Gn=Qn.getItem(Hn);if(2===Gn.pathSegType&&(Un=Gn),1===Gn.pathSegType){var zn=Qn.getItem(Hn-1);if(zn.x!==Un.x||zn.y!==Un.y){var Vn=Tn.createSVGPathSegLinetoAbs(Un.x,Un.y);sw(Tn,Vn,Hn),Pw.fixEnd(Tn);break}}}Hd()&&aw.resetD(Tn)},convertPath:Cw}),Fw=jQuery,Uw=function(){function Layer(Tn,Un,Qn){if(_classCallCheck(this,Layer),this.name_=Tn,this.group_=Qn?null:Un,Qn){var Dn=Qn.ownerDocument;this.group_=Dn.createElementNS(yd.SVG,"g");var Hn=Dn.createElementNS(yd.SVG,"title");Hn.textContent=Tn,this.group_.append(Hn),Un?Fw(Un).after(this.group_):Qn.append(this.group_)}addLayerClass(this.group_),tf(this.group_,(function(Tn){Tn.setAttribute("style","pointer-events:inherit")})),this.group_.setAttribute("style",Qn?"pointer-events:all":"pointer-events:none")}return _createClass(Layer,[{key:"getName",value:function getName(){return this.name_}},{key:"getGroup",value:function getGroup(){return this.group_}},{key:"activate",value:function activate(){this.group_.setAttribute("style","pointer-events:all")}},{key:"deactivate",value:function deactivate(){this.group_.setAttribute("style","pointer-events:none")}},{key:"setVisible",value:function setVisible(Tn){var Un=void 0===Tn||Tn?"inline":"none";this.group_.getAttribute("display")!==Un&&this.group_.setAttribute("display",Un)}},{key:"isVisible",value:function isVisible(){return"none"!==this.group_.getAttribute("display")}},{key:"getOpacity",value:function getOpacity(){var Tn=this.group_.getAttribute("opacity");return Sf(Tn)?1:Number.parseFloat(Tn)}},{key:"setOpacity",value:function setOpacity(Tn){"number"==typeof Tn&&Tn>=0&&Tn<=1&&this.group_.setAttribute("opacity",Tn)}},{key:"appendChildren",value:function appendChildren(Tn){var Un,Qn=_createForOfIteratorHelper(Tn);try{for(Qn.s();!(Un=Qn.n()).done;){var Dn=Un.value;this.group_.append(Dn)}}catch(Tn){Qn.e(Tn)}finally{Qn.f()}}},{key:"getTitleElement",value:function getTitleElement(){for(var Tn=this.group_.childNodes.length,Un=0;Un<Tn;++Un){var Qn=this.group_.childNodes.item(Un);if(Qn&&"title"===Qn.tagName)return Qn}return null}},{key:"setName",value:function setName(Tn,Un){var Qn=this.name_;Tn=XA(Tn);var Dn=this.getTitleElement();return Dn?(Fw(Dn).empty(),Dn.textContent=Tn,this.name_=Tn,Un&&Un.changeElement(Dn,{"#text":Qn}),this.name_):null}},{key:"removeGroup",value:function removeGroup(){var Tn=this.group_;return this.group_.remove(),this.group_=void 0,Tn}}]),Layer}();function addLayerClass(Tn){var Un=Tn.getAttribute("class");Sf(Un)||!Un.length?Tn.setAttribute("class",Uw.CLASS_NAME):Uw.CLASS_REGEX.test(Un)||Tn.setAttribute("class",Un+" "+Uw.CLASS_NAME)}Uw.CLASS_NAME="layer",Uw.CLASS_REGEX=new RegExp("(\\s|^)"+Uw.CLASS_NAME+"(\\s|$)");var Iw=function(){function HistoryRecordingService(Tn){_classCallCheck(this,HistoryRecordingService),this.undoManager_=Tn,this.currentBatchCommand_=null,this.batchCommandStack_=[]}return _createClass(HistoryRecordingService,[{key:"startBatchCommand",value:function startBatchCommand(Tn){return this.undoManager_?(this.currentBatchCommand_=new Wb(Tn),this.batchCommandStack_.push(this.currentBatchCommand_),this):this}},{key:"endBatchCommand",value:function endBatchCommand(){if(!this.undoManager_)return this;if(this.currentBatchCommand_){var Tn=this.currentBatchCommand_;this.batchCommandStack_.pop();var Un=this.batchCommandStack_.length;this.currentBatchCommand_=Un?this.batchCommandStack_[Un-1]:null,this.addCommand_(Tn)}return this}},{key:"moveElement",value:function moveElement(Tn,Un,Qn,Dn){return this.undoManager_?(this.addCommand_(new zb(Tn,Un,Qn,Dn)),this):this}},{key:"insertElement",value:function insertElement(Tn,Un){return this.undoManager_?(this.addCommand_(new Vb(Tn,Un)),this):this}},{key:"removeElement",value:function removeElement(Tn,Un,Qn,Dn){return this.undoManager_?(this.addCommand_(new Kb(Tn,Un,Qn,Dn)),this):this}},{key:"changeElement",value:function changeElement(Tn,Un,Qn){return this.undoManager_?(this.addCommand_(new qb(Tn,Un,Qn)),this):this}},{key:"addCommand_",value:function addCommand_(Tn){if(!this.undoManager_)return this;this.currentBatchCommand_?this.currentBatchCommand_.addSubCommand(Tn):this.undoManager_.addCommandToHistory(Tn)}}]),HistoryRecordingService}();Iw.NO_HISTORY=new Iw;var Rw=jQueryPluginSVG(jQuery),Mw=jQuery,Qw="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use".split(","),Ow=1,Dw=2,jw=0,Hw=[];function historyRecordingService(Tn){return Tn||new Iw(Gw.undoMgr)}function findLayerNameInGroup(Tn){return Mw("title",Tn).text()||(function isOpera(){return Cd}()&&Tn.querySelectorAll?Mw(Tn.querySelectorAll("title")).text():"")}function getNewLayerName(Tn){for(var Un=1;Tn.includes("Layer "+Un);)Un++;return"Layer "+Un}var Gw,zw=function(){function Drawing(Tn,Un){if(_classCallCheck(this,Drawing),!Tn||!Tn.tagName||!Tn.namespaceURI||"svg"!==Tn.tagName||Tn.namespaceURI!==yd.SVG)throw new Error("Error: svgedit.draw.Drawing instance initialized without a <svg> element");this.svgElem_=Tn,this.obj_num=0,this.idPrefix=Un||"svg_",this.releasedNums=[],this.all_layers=[],this.layer_map={},this.current_layer=null,this.nonce_="";var Qn=this.svgElem_.getAttributeNS(yd.SE,"nonce");Qn&&jw!==Dw?this.nonce_=Qn:jw===Ow&&this.setNonce(Math.floor(100001*Math.random()))}return _createClass(Drawing,[{key:"getElem_",value:function getElem_(Tn){return this.svgElem_.querySelector?this.svgElem_.querySelector("#"+Tn):Mw(this.svgElem_).find("[id="+Tn+"]")[0]}},{key:"getSvgElem",value:function getSvgElem(){return this.svgElem_}},{key:"getNonce",value:function getNonce(){return this.nonce_}},{key:"setNonce",value:function setNonce(Tn){this.svgElem_.setAttributeNS(yd.XMLNS,"xmlns:se",yd.SE),this.svgElem_.setAttributeNS(yd.SE,"se:nonce",Tn),this.nonce_=Tn}},{key:"clearNonce",value:function clearNonce(){this.nonce_=""}},{key:"getId",value:function getId(){return this.nonce_?this.idPrefix+this.nonce_+"_"+this.obj_num:this.idPrefix+this.obj_num}},{key:"getNextId",value:function getNextId(){var Tn=this.obj_num,Un=!1;this.releasedNums.length>0?(this.obj_num=this.releasedNums.pop(),Un=!0):this.obj_num++;for(var Qn=this.getId();this.getElem_(Qn);)Un&&(this.obj_num=Tn,Un=!1),this.obj_num++,Qn=this.getId();return Un&&(this.obj_num=Tn),Qn}},{key:"releaseId",value:function releaseId(Tn){var Un=this.idPrefix+(this.nonce_?this.nonce_+"_":"");if("string"!=typeof Tn||!Tn.startsWith(Un))return!1;var Qn=Number.parseInt(Tn.substr(Un.length));return!("number"!=typeof Qn||Qn<=0||this.releasedNums.includes(Qn))&&(this.releasedNums.push(Qn),!0)}},{key:"getNumLayers",value:function getNumLayers(){return this.all_layers.length}},{key:"hasLayer",value:function hasLayer(Tn){return void 0!==this.layer_map[Tn]}},{key:"getLayerName",value:function getLayerName(Tn){return Tn>=0&&Tn<this.getNumLayers()?this.all_layers[Tn].getName():""}},{key:"getCurrentLayer",value:function getCurrentLayer(){return this.current_layer?this.current_layer.getGroup():null}},{key:"getLayerByName",value:function getLayerByName(Tn){var Un=this.layer_map[Tn];return Un?Un.getGroup():null}},{key:"getCurrentLayerName",value:function getCurrentLayerName(){return this.current_layer?this.current_layer.getName():""}},{key:"setCurrentLayerName",value:function setCurrentLayerName(Tn,Un){var Qn=null;if(this.current_layer){var Dn=this.current_layer.getName();(Qn=this.current_layer.setName(Tn,Un))&&(delete this.layer_map[Dn],this.layer_map[Qn]=this.current_layer)}return Qn}},{key:"setCurrentLayerPosition",value:function setCurrentLayerPosition(Tn){var Un,Qn=this.getNumLayers();if(!this.current_layer||Tn<0||Tn>=Qn)return null;for(Un=0;Un<Qn&&this.all_layers[Un]!==this.current_layer;++Un);if(Un===Qn)return null;if(Un!==Tn){var Dn=this.current_layer.getGroup(),Hn=Dn.nextSibling,Gn=null;return Tn>Un?Tn<Qn-1&&(Gn=this.all_layers[Tn+1].getGroup()):Gn=this.all_layers[Tn].getGroup(),this.svgElem_.insertBefore(Dn,Gn),this.identifyLayers(),this.setCurrentLayer(this.getLayerName(Tn)),{currentGroup:Dn,oldNextSibling:Hn}}return null}},{key:"mergeLayer",value:function mergeLayer(Tn){var Un=this.current_layer.getGroup(),Qn=Mw(Un).prev()[0];if(Qn){Tn.startBatchCommand("Merge Layer");var Dn=Un.nextSibling;for(Tn.removeElement(Un,Dn,this.svgElem_);Un.firstChild;){var Hn=Un.firstChild;if("title"!==Hn.localName){var Gn=Hn.nextSibling;Qn.append(Hn),Tn.moveElement(Hn,Gn,Un)}else Tn.removeElement(Hn,Hn.nextSibling,Un),Hn.remove()}this.current_layer.removeGroup();var zn=this.all_layers.indexOf(this.current_layer);if(zn>0){var Vn=this.current_layer.getName();this.current_layer=this.all_layers[zn-1],this.all_layers.splice(zn,1),delete this.layer_map[Vn]}Tn.endBatchCommand()}}},{key:"mergeAllLayers",value:function mergeAllLayers(Tn){for(this.current_layer=this.all_layers[this.all_layers.length-1],Tn.startBatchCommand("Merge all Layers");this.all_layers.length>1;)this.mergeLayer(Tn);Tn.endBatchCommand()}},{key:"setCurrentLayer",value:function setCurrentLayer(Tn){var Un=this.layer_map[Tn];return!!Un&&(this.current_layer&&this.current_layer.deactivate(),this.current_layer=Un,this.current_layer.activate(),!0)}},{key:"deleteCurrentLayer",value:function deleteCurrentLayer(){if(this.current_layer&&this.getNumLayers()>1){var Tn=this.current_layer.removeGroup();return this.identifyLayers(),Tn}return null}},{key:"identifyLayers",value:function identifyLayers(){this.all_layers=[],this.layer_map={};for(var Tn=this.svgElem_.childNodes.length,Un=[],Qn=[],Dn=null,Hn=!1,Gn=0;Gn<Tn;++Gn){var zn=this.svgElem_.childNodes.item(Gn);if(zn&&1===zn.nodeType)if("g"===zn.tagName){Hn=!0;var Vn=findLayerNameInGroup(zn);Vn?(Qn.push(Vn),Dn=new Uw(Vn,zn),this.all_layers.push(Dn),this.layer_map[Vn]=Dn):Un.push(zn)}else Qw.includes(zn.nodeName)&&Un.push(zn)}Un.length>0||!Hn?((Dn=new Uw(getNewLayerName(Qn),null,this.svgElem_)).appendChildren(Un),this.all_layers.push(Dn),this.layer_map[name]=Dn):Dn.activate(),this.current_layer=Dn}},{key:"createLayer",value:function createLayer(Tn,Un){this.current_layer&&this.current_layer.deactivate(),(null==Tn||""===Tn||this.layer_map[Tn])&&(Tn=getNewLayerName(Object.keys(this.layer_map)));var Qn=new Uw(Tn,null,this.svgElem_);return Un&&(Un.startBatchCommand("Create Layer"),Un.insertElement(Qn.getGroup()),Un.endBatchCommand()),this.all_layers.push(Qn),this.layer_map[Tn]=Qn,this.current_layer=Qn,Qn.getGroup()}},{key:"cloneLayer",value:function cloneLayer(Tn,Un){var Qn=this;if(!this.current_layer)return null;this.current_layer.deactivate(),(null==Tn||""===Tn||this.layer_map[Tn])&&(Tn=getNewLayerName(Object.keys(this.layer_map)));var Dn=this.current_layer.getGroup(),Hn=new Uw(Tn,Dn,this.svgElem_),Gn=Hn.getGroup();_toConsumableArray(Dn.childNodes).forEach((function(Tn){"title"!==Tn.localName&&Gn.append(Qn.copyElem(Tn))})),Un&&(Un.startBatchCommand("Duplicate Layer"),Un.insertElement(Gn),Un.endBatchCommand());var zn=this.all_layers.indexOf(this.current_layer);return zn>=0?this.all_layers.splice(zn+1,0,Hn):this.all_layers.push(Hn),this.layer_map[Tn]=Hn,this.current_layer=Hn,Gn}},{key:"getLayerVisibility",value:function getLayerVisibility(Tn){var Un=this.layer_map[Tn];return!!Un&&Un.isVisible()}},{key:"setLayerVisibility",value:function setLayerVisibility(Tn,Un){if("boolean"!=typeof Un)return null;var Qn=this.layer_map[Tn];return Qn?(Qn.setVisible(Un),Qn.getGroup()):null}},{key:"getLayerOpacity",value:function getLayerOpacity(Tn){var Un=this.layer_map[Tn];return Un?Un.getOpacity():null}},{key:"setLayerOpacity",value:function setLayerOpacity(Tn,Un){if(!("number"!=typeof Un||Un<0||Un>1)){var Qn=this.layer_map[Tn];Qn&&Qn.setOpacity(Un)}}},{key:"copyElem",value:function copyElem$1(Tn){var Un=this;return function copyElem(Tn,Un){var Qn=document.createElementNS(Tn.namespaceURI,Tn.nodeName);if(Rw.each(Tn.attributes,(function(Tn,Un){"-moz-math-font-style"!==Un.localName&&Qn.setAttributeNS(Un.namespaceURI,Un.nodeName,Un.value)})),Qn.removeAttribute("id"),Qn.id=Un(),Hd()&&"path"===Tn.nodeName){var Dn=Cw(Tn);Qn.setAttribute("d",Dn)}if(Rw.each(Tn.childNodes,(function(Tn,Dn){switch(Dn.nodeType){case 1:Qn.append(copyElem(Dn,Un));break;case 3:Qn.textContent=Dn.nodeValue}})),Rw(Tn).data("gsvg"))Rw(Qn).data("gsvg",Qn.firstChild);else if(Rw(Tn).data("symbol")){var Hn=Rw(Tn).data("symbol");Rw(Qn).data("ref",Hn).data("symbol",Hn)}else"image"===Qn.tagName&&kf(Qn);return Qn}(Tn,(function getNextIdClosure(){return Un.getNextId()}))}}]),Drawing}(),Vw=function randomizeIds(Tn,Un){(jw=!1===Tn?Dw:Ow)!==Ow||Un.getNonce()?jw===Dw&&Un.getNonce()&&Un.clearNonce():Un.setNonce(Math.floor(100001*Math.random()))},Kw=function identifyLayers(){rx(),Gw.getCurrentDrawing().identifyLayers()},qw=function createLayer(Tn,Un){var Qn=Gw.getCurrentDrawing().createLayer(Tn,historyRecordingService(Un));Gw.clearSelection(),Gw.call("changed",[Qn])},Ww=function cloneLayer(Tn,Un){var Qn=Gw.getCurrentDrawing().cloneLayer(Tn,historyRecordingService(Un));Gw.clearSelection(),rx(),Gw.call("changed",[Qn])},Xw=function deleteCurrentLayer(){var Tn=Gw.getCurrentDrawing().getCurrentLayer(),Un=Tn.nextSibling,Qn=Tn.parentNode;if(Tn=Gw.getCurrentDrawing().deleteCurrentLayer()){var Dn=new Wb("Delete Layer");return Dn.addSubCommand(new Kb(Tn,Un,Qn)),Gw.addCommandToHistory(Dn),Gw.clearSelection(),Gw.call("changed",[Qn]),!0}return!1},Yw=function setCurrentLayer(Tn){var Un=Gw.getCurrentDrawing().setCurrentLayer(XA(Tn));return Un&&Gw.clearSelection(),Un},Jw=function renameCurrentLayer(Tn){var Un=Gw.getCurrentDrawing(),Qn=Un.getCurrentLayer();if(Qn&&Un.setCurrentLayerName(Tn,historyRecordingService()))return Gw.call("changed",[Qn]),!0;return!1},$w=function setCurrentLayerPosition(Tn){var Un=Gw.getCurrentDrawing().setCurrentLayerPosition(Tn);return!!Un&&(Gw.addCommandToHistory(new zb(Un.currentGroup,Un.oldNextSibling,Gw.getSVGContent())),!0)},Zw=function setLayerVisibility(Tn,Un){var Qn=Gw.getCurrentDrawing(),Dn=Qn.getLayerVisibility(Tn),Hn=Qn.setLayerVisibility(Tn,Un);if(!Hn)return!1;var Gn=Dn?"inline":"none";return Gw.addCommandToHistory(new qb(Hn,{display:Gn},"Layer Visibility")),Hn===Qn.getCurrentLayer()&&(Gw.clearSelection(),Gw.pathActions.clear()),!0},ex=function moveSelectedToLayer(Tn){var Un=Gw.getCurrentDrawing().getLayerByName(Tn);if(!Un)return!1;for(var Qn=new Wb("Move Elements to Layer"),Dn=Gw.getSelectedElements(),Hn=Dn.length;Hn--;){var Gn=Dn[Hn];if(Gn){var zn=Gn.nextSibling,Vn=Gn.parentNode;Un.append(Gn),Qn.addSubCommand(new zb(Gn,zn,Vn))}}return Gw.addCommandToHistory(Qn),!0},tx=function mergeLayer(Tn){Gw.getCurrentDrawing().mergeLayer(historyRecordingService(Tn)),Gw.clearSelection(),rx(),Gw.changeSVGContent()},nx=function mergeAllLayers(Tn){Gw.getCurrentDrawing().mergeAllLayers(historyRecordingService(Tn)),Gw.clearSelection(),rx(),Gw.changeSVGContent()},rx=function leaveContext(){var Tn=Hw.length;if(Tn){for(var Un=0;Un<Tn;Un++){var Qn=Hw[Un],Dn=Gw.elData(Qn,"orig_opac");1!==Dn?Qn.setAttribute("opacity",Dn):Qn.removeAttribute("opacity"),Qn.setAttribute("style","pointer-events: inherit")}Hw=[],Gw.clearSelection(!0),Gw.call("contextset",null)}Gw.setCurrentGroup(null)},ix=function setContext(Tn){rx(),"string"==typeof Tn&&(Tn=yf(Tn)),Gw.setCurrentGroup(Tn),Mw(Tn).parentsUntil("#svgcontent").andSelf().siblings().each((function(){var Tn=this.getAttribute("opacity")||1;Gw.elData(this,"orig_opac",Tn),this.setAttribute("opacity",.33*Tn),this.setAttribute("style","pointer-events: none"),Hw.push(this)})),Gw.clearSelection(),Gw.call("contextset",Gw.getCurrentGroup())},ax=bd(),ox={a:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","id","mask","opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","xlink:href","xlink:title"],circle:["class","clip-path","clip-rule","cx","cy","fill","fill-opacity","fill-rule","filter","id","mask","opacity","r","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],clipPath:["class","clipPathUnits","id"],defs:[],style:["type"],desc:[],ellipse:["class","clip-path","clip-rule","cx","cy","fill","fill-opacity","fill-rule","filter","id","mask","opacity","requiredFeatures","rx","ry","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],feGaussianBlur:["class","color-interpolation-filters","id","requiredFeatures","stdDeviation"],feMorphology:["class","in","operator","radius"],filter:["class","color-interpolation-filters","filterRes","filterUnits","height","id","primitiveUnits","requiredFeatures","width","x","xlink:href","y"],foreignObject:["class","font-size","height","id","opacity","requiredFeatures","style","transform","width","x","y"],g:["class","clip-path","clip-rule","id","display","fill","fill-opacity","fill-rule","filter","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","font-family","font-size","font-style","font-weight","text-anchor"],image:["class","clip-path","clip-rule","filter","height","id","mask","opacity","requiredFeatures","style","systemLanguage","transform","width","x","xlink:href","xlink:title","y"],line:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","id","marker-end","marker-mid","marker-start","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","x1","x2","y1","y2"],linearGradient:["class","id","gradientTransform","gradientUnits","requiredFeatures","spreadMethod","systemLanguage","x1","x2","xlink:href","y1","y2"],marker:["id","class","markerHeight","markerUnits","markerWidth","orient","preserveAspectRatio","refX","refY","systemLanguage","viewBox"],mask:["class","height","id","maskContentUnits","maskUnits","width","x","y"],metadata:["class","id"],path:["class","clip-path","clip-rule","d","fill","fill-opacity","fill-rule","filter","id","marker-end","marker-mid","marker-start","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],pattern:["class","height","id","patternContentUnits","patternTransform","patternUnits","requiredFeatures","style","systemLanguage","viewBox","width","x","xlink:href","y"],polygon:["class","clip-path","clip-rule","id","fill","fill-opacity","fill-rule","filter","id","class","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","style","systemLanguage","transform"],polyline:["class","clip-path","clip-rule","id","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","style","systemLanguage","transform"],radialGradient:["class","cx","cy","fx","fy","gradientTransform","gradientUnits","id","r","requiredFeatures","spreadMethod","systemLanguage","xlink:href"],rect:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","height","id","mask","opacity","requiredFeatures","rx","ry","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","width","x","y"],stop:["class","id","offset","requiredFeatures","stop-color","stop-opacity","style","systemLanguage"],svg:["class","clip-path","clip-rule","filter","id","height","mask","preserveAspectRatio","requiredFeatures","style","systemLanguage","viewBox","width","x","xmlns","xmlns:se","xmlns:xlink","y"],switch:["class","id","requiredFeatures","systemLanguage"],symbol:["class","fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","id","opacity","preserveAspectRatio","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","viewBox"],text:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","id","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","text-anchor","transform","x","xml:space","y"],textPath:["class","id","method","requiredFeatures","spacing","startOffset","style","systemLanguage","transform","xlink:href"],title:[],tspan:["class","clip-path","clip-rule","dx","dy","fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","id","mask","opacity","requiredFeatures","rotate","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","text-anchor","textLength","transform","x","xml:space","y"],use:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","height","id","mask","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","transform","width","x","xlink:href","y"],annotation:["encoding"],"annotation-xml":["encoding"],maction:["actiontype","other","selection"],math:["class","id","display","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:[]},sx={};Object.entries(ox).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Qn=Un[0],Dn=Un[1],Hn={};Object.entries(Dn).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Qn=(Un[0],Un[1]);if(Qn.includes(":")){var Dn=Qn.split(":");Hn[Dn[1]]=yd[Dn[0].toUpperCase()]}else Hn[Qn]="xmlns"===Qn?yd.XMLNS:null})),sx[Qn]=Hn}));var lx,cx,ux,dx,hx=function sanitizeSvg(Tn){if(3===Tn.nodeType&&(Tn.nodeValue=Tn.nodeValue.replace(/^\s+|\s+$/g,""),Tn.nodeValue.length||Tn.remove()),1===Tn.nodeType){var Un=Tn.ownerDocument,Qn=Tn.parentNode;if(Un&&Qn){var Dn=ox[Tn.nodeName],Hn=sx[Tn.nodeName];if(void 0!==Dn){for(var Gn=[],zn=Tn.attributes.length;zn--;){var Vn=Tn.attributes.item(zn),Kn=Vn.nodeName,Wn=Vn.localName,Xn=Vn.namespaceURI;if({}.hasOwnProperty.call(Hn,Wn)&&Xn===Hn[Wn]&&Xn!==yd.XMLNS||Xn===yd.XMLNS&&ax[Vn.value]||((Kn.startsWith("se:")||Kn.startsWith("data-"))&&Gn.push([Kn,Vn.value]),Tn.removeAttributeNS(Xn,Wn)),Gd())switch(Kn){case"transform":case"gradientTransform":case"patternTransform":var Yn=Vn.value.replace(/(\d)-/g,"$1 -");Tn.setAttribute(Kn,Yn)}if("style"===Kn){for(var Jn=Vn.value.split(";"),$n=Jn.length;$n--;){var Zn=_slicedToArray(Jn[$n].split(":"),2),er=Zn[0],tr=Zn[1],nr=(er||"").trim(),rr=(tr||"").trim();Dn.includes(nr)&&Tn.setAttribute(nr,rr)}Tn.removeAttribute("style")}}Object.values(Gn).forEach((function(Un){var Qn=_slicedToArray(Un,2),Dn=Qn[0],Hn=Qn[1];Tn.setAttributeNS(yd.SE,Dn,Hn)}));var ir=rf(Tn);if(ir&&["filter","linearGradient","pattern","radialGradient","textPath","use"].includes(Tn.nodeName)&&"#"!==ir[0]&&(af(Tn,""),Tn.removeAttributeNS(yd.XLINK,"href")),"use"===Tn.nodeName&&!rf(Tn))return void Tn.remove();for(Object.values(["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"],(function(Un){var Qn=Tn.getAttribute(Un);Qn&&(Qn=nf(Qn))&&"#"!==Qn[0]&&(Tn.setAttribute(Un,""),Tn.removeAttribute(Un))})),zn=Tn.childNodes.length;zn--;)sanitizeSvg(Tn.childNodes.item(zn))}else{for(var ar=[];Tn.hasChildNodes();)ar.push(Qn.insertBefore(Tn.firstChild,Tn));Tn.remove();for(var or=ar.length;or--;)sanitizeSvg(ar[or])}}}},px=jQuery,Ax=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"],gx=null,mx=function remapElement(Tn,Un,Qn){for(var Dn=function remap(Tn,Un){return PA(Tn,Un,Qn)},Hn=function scalew(Tn){return Qn.a*Tn},Gn=function scaleh(Tn){return Qn.d*Tn},zn=gx.getGridSnapping()&&"svg"===Tn.parentNode.parentNode.localName,Vn=function finishUp(){zn&&Object.entries(Un).forEach((function(Tn){var Qn=_slicedToArray(Tn,2),Dn=Qn[0],Hn=Qn[1];Un[Dn]=xf(Hn)})),bf(Tn,Un,0,!0)},Kn=lf(Tn),Wn=0;Wn<2;Wn++){var Xn=0===Wn?"fill":"stroke",Yn=Tn.getAttribute(Xn);if(Yn&&Yn.startsWith("url(")&&(Qn.a<0||Qn.d<0)){var Jn=vf(Yn).cloneNode(!0);if(Qn.a<0){var $n=Jn.getAttribute("x1"),Zn=Jn.getAttribute("x2");Jn.setAttribute("x1",-($n-1)),Jn.setAttribute("x2",-(Zn-1))}if(Qn.d<0){var er=Jn.getAttribute("y1"),tr=Jn.getAttribute("y2");Jn.setAttribute("y1",-(er-1)),Jn.setAttribute("y2",-(tr-1))}Jn.id=gx.getDrawing().getNextId(),of().append(Jn),Tn.setAttribute(Xn,"url(#"+Jn.id+")")}}var nr=Tn.tagName;if("g"===nr||"text"===nr||"tspan"===nr||"use"===nr)if(1!==Qn.a||0!==Qn.b||0!==Qn.c||1!==Qn.d||0===Qn.e&&0===Qn.f){var rr=gA(Tn),ir=gx.getSVGRoot().createSVGTransform();ir.setMatrix(UA(MA(rr).matrix,Qn)),rr.clear(),rr.appendItem(ir)}else{var ar=MA(Tn).matrix,or=UA(ar.inverse(),Qn,ar);Un.x=Number.parseFloat(Un.x)+or.e,Un.y=Number.parseFloat(Un.y)+or.f}switch(nr){case"foreignObject":case"rect":case"image":if("image"===nr&&(Qn.a<0||Qn.d<0)){var sr=gA(Tn),lr=gx.getSVGRoot().createSVGTransform();lr.setMatrix(UA(MA(sr).matrix,Qn)),sr.clear(),sr.appendItem(lr)}else{var cr=Dn(Un.x,Un.y);Un.width=Hn(Un.width),Un.height=Gn(Un.height),Un.x=cr.x+Math.min(0,Un.width),Un.y=cr.y+Math.min(0,Un.height),Un.width=Math.abs(Un.width),Un.height=Math.abs(Un.height)}Vn();break;case"ellipse":var ur=Dn(Un.cx,Un.cy);Un.cx=ur.x,Un.cy=ur.y,Un.rx=Hn(Un.rx),Un.ry=Gn(Un.ry),Un.rx=Math.abs(Un.rx),Un.ry=Math.abs(Un.ry),Vn();break;case"circle":var dr=Dn(Un.cx,Un.cy);Un.cx=dr.x,Un.cy=dr.y;var hr=RA(Kn.x,Kn.y,Kn.width,Kn.height,Qn),pr=hr.tr.x-hr.tl.x,Ar=hr.bl.y-hr.tl.y;Un.r=Math.min(pr/2,Ar/2),Un.r&&(Un.r=Math.abs(Un.r)),Vn();break;case"line":var fr=Dn(Un.x1,Un.y1),gr=Dn(Un.x2,Un.y2);Un.x1=fr.x,Un.y1=fr.y,Un.x2=gr.x,Un.y2=gr.y;case"text":case"tspan":case"use":Vn();break;case"g":var mr=px(Tn).data("gsvg");mr&&bf(mr,Un,0,!0);break;case"polyline":case"polygon":for(var _r=Un.points.length,vr=0;vr<_r;++vr){var yr=Un.points[vr],br=Dn(yr.x,yr.y),wr=br.x,xr=br.y;Un.points[vr].x=wr,Un.points[vr].y=xr}for(var kr="",Sr=0;Sr<_r;++Sr){var Cr=Un.points[Sr];kr+=Cr.x+","+Cr.y+" "}Tn.setAttribute("points",kr);break;case"path":var Br=Tn.pathSegList,Er=Br.numberOfItems;Un.d=[];for(var Nr=0;Nr<Er;++Nr){var Lr=Br.getItem(Nr);Un.d[Nr]={type:Lr.pathSegType,x:Lr.x,y:Lr.y,x1:Lr.x1,y1:Lr.y1,x2:Lr.x2,y2:Lr.y2,r1:Lr.r1,r2:Lr.r2,angle:Lr.angle,largeArcFlag:Lr.largeArcFlag,sweepFlag:Lr.sweepFlag}}Er=Un.d.length;var Tr=Un.d[0],Pr=Dn(Tr.x,Tr.y);Un.d[0].x=Pr.x,Un.d[0].y=Pr.y;for(var Fr=1;Fr<Er;++Fr){var Ur=Un.d[Fr];if(Ur.type%2==0){var Ir=Dn(void 0!==Ur.x?Ur.x:Pr.x,void 0!==Ur.y?Ur.y:Pr.y),Rr=Dn(Ur.x1,Ur.y1),Mr=Dn(Ur.x2,Ur.y2);Ur.x=Ir.x,Ur.y=Ir.y,Ur.x1=Rr.x,Ur.y1=Rr.y,Ur.x2=Mr.x,Ur.y2=Mr.y,Ur.r1=Hn(Ur.r1),Ur.r2=Gn(Ur.r2)}else Ur.x=Hn(Ur.x),Ur.y=Gn(Ur.y),Ur.x1=Hn(Ur.x1),Ur.y1=Gn(Ur.y1),Ur.x2=Hn(Ur.x2),Ur.y2=Gn(Ur.y2),Ur.r1=Hn(Ur.r1),Ur.r2=Gn(Ur.r2)}var Qr="";Er=Un.d.length;for(var Or=0;Or<Er;++Or){var Dr=Un.d[Or],jr=Dr.type;switch(Qr+=Ax[jr],jr){case 13:case 12:Qr+=Dr.x+" ";break;case 15:case 14:Qr+=Dr.y+" ";break;case 3:case 5:case 19:case 2:case 4:case 18:Qr+=Dr.x+","+Dr.y+" ";break;case 7:case 6:Qr+=Dr.x1+","+Dr.y1+" "+Dr.x2+","+Dr.y2+" "+Dr.x+","+Dr.y+" ";break;case 9:case 8:Qr+=Dr.x1+","+Dr.y1+" "+Dr.x+","+Dr.y+" ";break;case 11:case 10:Qr+=Dr.r1+","+Dr.r2+" "+Dr.angle+" "+Number(Dr.largeArcFlag)+" "+Number(Dr.sweepFlag)+" "+Dr.x+","+Dr.y+" ";break;case 17:case 16:Qr+=Dr.x2+","+Dr.y2+" "+Dr.x+","+Dr.y+" "}}Tn.setAttribute("d",Qr)}},_x=jQueryPluginSVG(jQuery),vx=function updateClipPath(Tn,Un,Qn){var Dn=vf(Tn).firstChild,Hn=gA(Dn),Gn=lx.getSVGRoot().createSVGTransform();Gn.setTranslate(Un,Qn),Hn.appendItem(Gn),yx(Dn)},yx=function recalculateDimensions(Tn){if(Sf(Tn))return null;if("svg"===Tn.nodeName&&navigator.userAgent.includes("Firefox/20"))return null;var Un=lx.getSVGRoot(),Qn=gA(Tn);if(Qn&&Qn.numberOfItems>0){for(var Dn=Qn.numberOfItems,Hn=Dn;Dn--;){var Gn=Qn.getItem(Dn);if(0===Gn.type)Qn.removeItem(Dn);else if(1===Gn.type){if(FA(Gn.matrix)){if(1===Hn)return Tn.removeAttribute("transform"),null;Qn.removeItem(Dn)}}else 4===Gn.type&&0===Gn.angle&&Qn.removeItem(Dn)}if(1===Qn.numberOfItems&&_f(Tn))return null}if(!Qn||0===Qn.numberOfItems)return Tn.setAttribute("transform",""),Tn.removeAttribute("transform"),null;if(Qn){for(var zn=[],Vn=Qn.numberOfItems;Vn--;){var Kn=Qn.getItem(Vn);1===Kn.type?zn.push([Kn.matrix,Vn]):zn.length&&(zn=[])}if(2===zn.length){var Wn=Un.createSVGTransformFromMatrix(UA(zn[1][0],zn[0][0]));Qn.removeItem(zn[0][1]),Qn.removeItem(zn[1][1]),Qn.insertItemBefore(Wn,zn[1][1])}if((Vn=Qn.numberOfItems)>=2&&1===Qn.getItem(Vn-2).type&&2===Qn.getItem(Vn-1).type){var Xn=Un.createSVGTransform(),Yn=UA(Qn.getItem(Vn-2).matrix,Qn.getItem(Vn-1).matrix);Xn.setMatrix(Yn),Qn.removeItem(Vn-2),Qn.removeItem(Vn-2),Qn.appendItem(Xn)}}switch(Tn.tagName){case"line":case"polyline":case"polygon":case"path":break;default:if(1===Qn.numberOfItems&&1===Qn.getItem(0).type||2===Qn.numberOfItems&&1===Qn.getItem(0).type&&4===Qn.getItem(0).type)return null}var Jn,$n,Zn=_x(Tn).data("gsvg"),er=new Wb("Transform"),tr={},nr=null,rr=[];switch(Tn.tagName){case"line":rr=["x1","y1","x2","y2"];break;case"circle":rr=["cx","cy","r"];break;case"ellipse":rr=["cx","cy","rx","ry"];break;case"foreignObject":case"rect":case"image":rr=["width","height","x","y"];break;case"use":case"text":case"tspan":rr=["x","y"];break;case"polygon":case"polyline":(nr={}).points=Tn.getAttribute("points");var ir=Tn.points,ar=ir.numberOfItems;tr.points=new Array(ar);for(var or=0;or<ar;++or){var sr=ir.getItem(or);tr.points[or]={x:sr.x,y:sr.y}}break;case"path":(nr={}).d=Tn.getAttribute("d"),tr.d=Tn.getAttribute("d")}if(rr.length?(tr=_x(Tn).attr(rr),_x.each(tr,(function(Tn,Un){tr[Tn]=CA(Tn,Un)}))):Zn&&(tr={x:_x(Zn).attr("x")||0,y:_x(Zn).attr("y")||0}),Sf(nr)&&(nr=_x.extend(!0,{},tr),_x.each(nr,(function(Tn,Un){nr[Tn]=CA(Tn,Un)}))),nr.transform=lx.getStartTransform()||"","g"===Tn.tagName&&!Zn||"a"===Tn.tagName){var lr=lf(Tn);Jn={x:lr.x+lr.width/2,y:lr.y+lr.height/2},$n=PA(lr.x+lr.width/2,lr.y+lr.height/2,MA(Qn).matrix);var cr=_f(Tn);if(cr){var ur,dr=cr*Math.PI/180;ur=Math.abs(dr)>1e-10?Math.sin(dr)/(1-Math.cos(dr)):2/dr;for(var hr=0;hr<Qn.numberOfItems;++hr){var pr=Qn.getItem(hr);if(4===pr.type){var Ar=pr.matrix;Jn.y=(ur*Ar.e+Ar.f)/2,Jn.x=(Ar.e-ur*Ar.f)/2,Qn.removeItem(hr);break}}}var fr,gr,mr=Qn.numberOfItems,_r=0,vr=0,yr=0;if(mr&&(fr=Qn.getItem(0).matrix),mr>=3&&3===Qn.getItem(mr-2).type&&2===Qn.getItem(mr-3).type&&2===Qn.getItem(mr-1).type){yr=3;for(var br=Qn.getItem(mr-3).matrix,wr=Qn.getItem(mr-2).matrix,xr=Qn.getItem(mr-1).matrix,kr=Tn.childNodes,Sr=kr.length;Sr--;){var Cr=kr.item(Sr);if(_r=0,vr=0,1===Cr.nodeType){var Br=gA(Cr);if(!Br)continue;var Er=MA(Br).matrix,Nr=_f(Cr);if(gr=lx.getStartTransform(),lx.setStartTransform(Cr.getAttribute("transform")),Nr||IA(Br)){var Lr=Un.createSVGTransform();Lr.setMatrix(UA(br,wr,xr,Er)),Br.clear(),Br.appendItem(Lr)}else{var Tr=UA(Er.inverse(),xr,Er),Pr=Un.createSVGMatrix();Pr.e=-Tr.e,Pr.f=-Tr.f;var Fr=UA(Pr.inverse(),Er.inverse(),br,wr,xr,Er,Tr.inverse()),Ur=Un.createSVGTransform(),Ir=Un.createSVGTransform(),Rr=Un.createSVGTransform();Ur.setTranslate(Tr.e,Tr.f),Ir.setScale(Fr.a,Fr.d),Rr.setTranslate(Pr.e,Pr.f),Br.appendItem(Rr),Br.appendItem(Ir),Br.appendItem(Ur)}er.addSubCommand(recalculateDimensions(Cr)),lx.setStartTransform(gr)}}Qn.removeItem(mr-1),Qn.removeItem(mr-2),Qn.removeItem(mr-3)}else if(mr>=3&&1===Qn.getItem(mr-1).type){yr=3;var Mr=MA(Qn).matrix,Qr=Un.createSVGTransform();Qr.setMatrix(Mr),Qn.clear(),Qn.appendItem(Qr)}else if((1===mr||mr>1&&3!==Qn.getItem(1).type)&&2===Qn.getItem(0).type){yr=2;var Or=MA(Qn).matrix;Qn.removeItem(0);var Dr=MA(Qn).matrix.inverse(),jr=UA(Dr,Or);if(_r=jr.e,vr=jr.f,0!==_r||0!==vr){for(var Hr=Tn.childNodes,Gr=Hr.length,zr=[];Gr--;){var Vr=Hr.item(Gr);if(1===Vr.nodeType){if(Vr.getAttribute("clip-path")){var Kr=Vr.getAttribute("clip-path");zr.includes(Kr)||(vx(Kr,_r,vr),zr.push(Kr))}gr=lx.getStartTransform(),lx.setStartTransform(Vr.getAttribute("transform"));var qr=gA(Vr);if(qr){var Wr=Un.createSVGTransform();Wr.setTranslate(_r,vr),qr.numberOfItems?qr.insertItemBefore(Wr,0):qr.appendItem(Wr),er.addSubCommand(recalculateDimensions(Vr));for(var Xr=Tn.getElementsByTagNameNS(yd.SVG,"use"),Yr="#"+Vr.id,Jr=Xr.length;Jr--;){var $r=Xr.item(Jr);if(Yr===rf($r)){var Zr=Un.createSVGTransform();Zr.setTranslate(-_r,-vr),gA($r).insertItemBefore(Zr,0),er.addSubCommand(recalculateDimensions($r))}}lx.setStartTransform(gr)}}}lx.setStartTransform(gr)}}else{if(1!==mr||1!==Qn.getItem(0).type||cr){if(cr){var ei=Un.createSVGTransform();ei.setRotate(cr,$n.x,$n.y),Qn.numberOfItems?Qn.insertItemBefore(ei,0):Qn.appendItem(ei)}return 0===Qn.numberOfItems&&Tn.removeAttribute("transform"),null}yr=1;for(var ti=Qn.getItem(0).matrix,ni=Tn.childNodes,ri=ni.length;ri--;){var ii=ni.item(ri);if(1===ii.nodeType){gr=lx.getStartTransform(),lx.setStartTransform(ii.getAttribute("transform"));var ai=gA(ii);if(!ai)continue;var oi=UA(ti,MA(ai).matrix),si=Un.createSVGTransform();si.setMatrix(oi),ai.clear(),ai.appendItem(si,0),er.addSubCommand(recalculateDimensions(ii)),lx.setStartTransform(gr);var li=ii.getAttribute("stroke-width");if("none"!==ii.getAttribute("stroke")&&!isNaN(li)){var ui=(Math.abs(oi.a)+Math.abs(oi.d))/2;ii.setAttribute("stroke-width",li*ui)}}}Qn.clear()}if(2===yr){if(cr){$n={x:Jn.x+fr.e,y:Jn.y+fr.f};var di=Un.createSVGTransform();di.setRotate(cr,$n.x,$n.y),Qn.numberOfItems?Qn.insertItemBefore(di,0):Qn.appendItem(di)}}else if(3===yr){var hi=MA(Qn).matrix,pi=Un.createSVGTransform();pi.setRotate(cr,Jn.x,Jn.y);var Ai=pi.matrix,fi=Un.createSVGTransform();fi.setRotate(cr,$n.x,$n.y);var gi=fi.matrix.inverse(),mi=hi.inverse(),_i=UA(mi,gi,Ai,hi);if(_r=_i.e,vr=_i.f,0!==_r||0!==vr)for(var vi=Tn.childNodes,yi=vi.length;yi--;){var wi=vi.item(yi);if(1===wi.nodeType){gr=lx.getStartTransform(),lx.setStartTransform(wi.getAttribute("transform"));var xi=gA(wi),ki=Un.createSVGTransform();ki.setTranslate(_r,vr),xi.numberOfItems?xi.insertItemBefore(ki,0):xi.appendItem(ki),er.addSubCommand(recalculateDimensions(wi)),lx.setStartTransform(gr)}}cr&&(Qn.numberOfItems?Qn.insertItemBefore(fi,0):Qn.appendItem(fi))}}else{var Si,Ci=lf(Tn);if(!Ci&&"path"!==Tn.tagName)return null;var Bi=_f(Tn);if(Bi){Jn={x:Ci.x+Ci.width/2,y:Ci.y+Ci.height/2},$n=PA(Ci.x+Ci.width/2,Ci.y+Ci.height/2,MA(Qn).matrix);for(var Ei=Bi*Math.PI/180,Ni=Math.abs(Ei)>1e-10?Math.sin(Ei)/(1-Math.cos(Ei)):2/Ei,Li=0;Li<Qn.numberOfItems;++Li){var Ti=Qn.getItem(Li);if(4===Ti.type){var Pi=Ti.matrix;Jn.y=(Ni*Pi.e+Pi.f)/2,Jn.x=(Pi.e-Ni*Pi.f)/2,Qn.removeItem(Li);break}}}var Fi=0,Ui=Qn.numberOfItems;if(!Hd()){var Ii=Tn.getAttribute("fill");if(Ii&&Ii.startsWith("url(")){var Ri=vf(Ii),Mi="pattern";if(Ri.tagName!==Mi&&(Mi="gradient"),"userSpaceOnUse"===Ri.getAttribute(Mi+"Units")){Si=MA(Qn).matrix;var Qi=gA(Ri),Oi=MA(Qi).matrix,Di="matrix("+[(Si=UA(Si,Oi)).a,Si.b,Si.c,Si.d,Si.e,Si.f].join(",")+")";Ri.setAttribute(Mi+"Transform",Di)}}}if(Ui>=3&&3===Qn.getItem(Ui-2).type&&2===Qn.getItem(Ui-3).type&&2===Qn.getItem(Ui-1).type)Fi=3,Si=MA(Qn,Ui-3,Ui-1).matrix,Qn.removeItem(Ui-1),Qn.removeItem(Ui-2),Qn.removeItem(Ui-3);else if(4===Ui&&1===Qn.getItem(Ui-1).type){Fi=3,Si=MA(Qn).matrix;var ji=Un.createSVGTransform();ji.setMatrix(Si),Qn.clear(),Qn.appendItem(ji),Si=Un.createSVGMatrix()}else if((1===Ui||Ui>1&&3!==Qn.getItem(1).type)&&2===Qn.getItem(0).type){Fi=2;var Hi=Qn.getItem(0).matrix,Gi=MA(Qn,1).matrix,zi=Gi.inverse();Si=UA(zi,Hi,Gi),Qn.removeItem(0)}else{if(1!==Ui||1!==Qn.getItem(0).type||Bi){if(Bi){var Vi=Un.createSVGTransform();Vi.setRotate(Bi,$n.x,$n.y),Qn.numberOfItems?Qn.insertItemBefore(Vi,0):Qn.appendItem(Vi)}return 0===Qn.numberOfItems&&Tn.removeAttribute("transform"),null}switch(Si=MA(Qn).matrix,Tn.tagName){case"line":tr=_x(Tn).attr(["x1","y1","x2","y2"]);case"polyline":case"polygon":if(tr.points=Tn.getAttribute("points"),tr.points){var Ki=Tn.points,qi=Ki.numberOfItems;tr.points=new Array(qi);for(var Wi=0;Wi<qi;++Wi){var Xi=Ki.getItem(Wi);tr.points[Wi]={x:Xi.x,y:Xi.y}}}case"path":tr.d=Tn.getAttribute("d"),Fi=1,Qn.clear()}}if(1!==Fi&&2!==Fi&&3!==Fi||mx(Tn,tr,Si),2===Fi){if(Bi){IA(Qn)||($n={x:Jn.x+Si.e,y:Jn.y+Si.f});var Yi=Un.createSVGTransform();Yi.setRotate(Bi,$n.x,$n.y),Qn.numberOfItems?Qn.insertItemBefore(Yi,0):Qn.appendItem(Yi)}if("text"===Tn.tagName)for(var Ji=Tn.childNodes,$i=Ji.length;$i--;){var Zi=Ji.item($i);if("tspan"===Zi.tagName){var ea={x:_x(Zi).attr("x")||0,y:_x(Zi).attr("y")||0};mx(Zi,ea,Si)}}}else if(3===Fi&&Bi){var ta=MA(Qn).matrix,na=Un.createSVGTransform();na.setRotate(Bi,Jn.x,Jn.y);var ra=na.matrix,ia=Un.createSVGTransform();ia.setRotate(Bi,$n.x,$n.y);var aa=ia.matrix.inverse(),oa=ta.inverse(),sa=UA(oa,aa,ra,ta);mx(Tn,tr,sa),Bi&&(Qn.numberOfItems?Qn.insertItemBefore(ia,0):Qn.appendItem(ia))}}return 0===Qn.numberOfItems&&Tn.removeAttribute("transform"),er.addSubCommand(new qb(Tn,nr)),er},bx=jQuery,wx=qd()?10:4,xx=function(){function Selector(Tn,Un,Qn){_classCallCheck(this,Selector),this.id=Tn,this.selectedElement=Un,this.locked=!0,this.selectorGroup=cx.createSVGElement({element:"g",attr:{id:"selectorGroup"+this.id}}),this.selectorRect=this.selectorGroup.appendChild(cx.createSVGElement({element:"path",attr:{id:"selectedBox"+this.id,fill:"none",stroke:"#22C","stroke-width":"1","stroke-dasharray":"5,5",style:"pointer-events:none"}})),this.gripCoords={nw:null,n:null,ne:null,e:null,se:null,s:null,sw:null,w:null},this.reset(this.selectedElement,Qn)}return _createClass(Selector,[{key:"reset",value:function reset(Tn,Un){this.locked=!0,this.selectedElement=Tn,this.resize(Un),this.selectorGroup.setAttribute("display","inline")}},{key:"showGrips",value:function showGrips(Tn){var Un=Tn?"inline":"none";dx.selectorGripsGroup.setAttribute("display",Un);var Qn=this.selectedElement;this.hasGrips=Tn,Qn&&Tn&&(this.selectorGroup.append(dx.selectorGripsGroup),Selector.updateGripCursors(_f(Qn)))}},{key:"resize",value:function resize(Tn){var Un=this.selectorRect,Qn=dx,Dn=Qn.selectorGrips,Hn=this.selectedElement,Gn=Hn.getAttribute("stroke-width"),zn=cx.getCurrentZoom(),Vn=1/zn;"none"===Hn.getAttribute("stroke")||isNaN(Gn)||(Vn+=Gn/2);var Kn=Hn.tagName;"text"===Kn&&(Vn+=2/zn);var Wn=gA(Hn),Xn=MA(Wn).matrix;if(Xn.e*=zn,Xn.f*=zn,Tn||(Tn=lf(Hn)),"g"===Kn&&!bx.data(Hn,"gsvg")){var Yn=Af([Hn.childNodes]);Yn&&(Tn=Yn)}var Jn=Tn.x,$n=Tn.y,Zn=Tn.width,er=Tn.height;Vn*=zn;var tr=RA(Jn*zn,$n*zn,Zn*zn,er*zn,Xn),nr=tr.aabox,rr=nr.x-Vn,ir=nr.y-Vn,ar=nr.width+2*Vn,or=nr.height+2*Vn,sr=rr+ar/2,lr=ir+or/2,cr=_f(Hn);if(cr){var ur=cx.svgRoot().createSVGTransform();ur.setRotate(-cr,sr,lr);var dr=ur.matrix;tr.tl=PA(tr.tl.x,tr.tl.y,dr),tr.tr=PA(tr.tr.x,tr.tr.y,dr),tr.bl=PA(tr.bl.x,tr.bl.y,dr),tr.br=PA(tr.br.x,tr.br.y,dr);var hr=tr.tl,pr=hr.x,Ar=hr.y,fr=hr.x,gr=hr.y,mr=Math.min,_r=Math.max;rr=pr=mr(pr,mr(tr.tr.x,mr(tr.bl.x,tr.br.x)))-Vn,ir=Ar=mr(Ar,mr(tr.tr.y,mr(tr.bl.y,tr.br.y)))-Vn,ar=(fr=_r(fr,_r(tr.tr.x,_r(tr.bl.x,tr.br.x)))+Vn)-pr,or=(gr=_r(gr,_r(tr.tr.y,_r(tr.bl.y,tr.br.y)))+Vn)-Ar}var vr="M"+rr+","+ir+" L"+(rr+ar)+","+ir+" "+(rr+ar)+","+(ir+or)+" "+rr+","+(ir+or)+"z";Un.setAttribute("d",vr);var yr=cr?"rotate("+[cr,sr,lr].join(",")+")":"";this.selectorGroup.setAttribute("transform",yr),this.gripCoords={nw:[rr,ir],ne:[rr+ar,ir],sw:[rr,ir+or],se:[rr+ar,ir+or],n:[rr+ar/2,ir],w:[rr,ir+or/2],e:[rr+ar,ir+or/2],s:[rr+ar/2,ir+or]},Object.entries(this.gripCoords).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Qn=Un[0],Hn=Un[1];Dn[Qn].setAttribute("cx",Hn[0]),Dn[Qn].setAttribute("cy",Hn[1])})),Qn.rotateGripConnector.setAttribute("x1",rr+ar/2),Qn.rotateGripConnector.setAttribute("y1",ir),Qn.rotateGripConnector.setAttribute("x2",rr+ar/2),Qn.rotateGripConnector.setAttribute("y2",ir-5*wx),Qn.rotateGrip.setAttribute("cx",rr+ar/2),Qn.rotateGrip.setAttribute("cy",ir-5*wx)}}],[{key:"updateGripCursors",value:function updateGripCursors(Tn){var Un=Object.keys(dx.selectorGrips),Qn=Math.round(Tn/45);for(Qn<0&&(Qn+=8);Qn>0;)Un.push(Un.shift()),Qn--;Object.values(dx.selectorGrips).forEach((function(Tn,Qn){Tn.setAttribute("style","cursor:"+Un[Qn]+"-resize")}))}}]),Selector}(),kx=function(){function SelectorManager(){_classCallCheck(this,SelectorManager),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()}return _createClass(SelectorManager,[{key:"initGroup",value:function initGroup(){var Tn=this;if(this.selectorParentGroup&&this.selectorParentGroup.parentNode&&this.selectorParentGroup.remove(),this.selectorParentGroup=cx.createSVGElement({element:"g",attr:{id:"selectorParentGroup"}}),this.selectorGripsGroup=cx.createSVGElement({element:"g",attr:{display:"none"}}),this.selectorParentGroup.append(this.selectorGripsGroup),cx.svgRoot().append(this.selectorParentGroup),this.selectorMap={},this.selectors=[],this.rubberBandBox=null,Object.keys(this.selectorGrips).forEach((function(Un){var Qn=cx.createSVGElement({element:"circle",attr:{id:"selectorGrip_resize_"+Un,fill:"#22C",r:wx,style:"cursor:"+Un+"-resize","stroke-width":2,"pointer-events":"all"}});bx.data(Qn,"dir",Un),bx.data(Qn,"type","resize"),Tn.selectorGrips[Un]=Tn.selectorGripsGroup.appendChild(Qn)})),this.rotateGripConnector=this.selectorGripsGroup.appendChild(cx.createSVGElement({element:"line",attr:{id:"selectorGrip_rotateconnector",stroke:"#22C","stroke-width":"1"}})),this.rotateGrip=this.selectorGripsGroup.appendChild(cx.createSVGElement({element:"circle",attr:{id:"selectorGrip_rotate",fill:"lime",r:wx,stroke:"#22C","stroke-width":2,style:"cursor:url("+ux.imgPath+"rotate.png) 12 12, auto;"}})),bx.data(this.rotateGrip,"type","rotate"),!bx("#canvasBackground").length){var Un=_slicedToArray(ux.dimensions,2),Qn=Un[0],Dn=Un[1],Hn=cx.createSVGElement({element:"svg",attr:{id:"canvasBackground",width:Qn,height:Dn,x:0,y:0,overflow:Hd()?"none":"visible",style:"pointer-events:none"}}),Gn=cx.createSVGElement({element:"rect",attr:{width:"100%",height:"100%",x:0,y:0,"stroke-width":1,stroke:"#000",fill:"#FFF",style:"pointer-events:none"}});Hn.append(Gn),cx.svgRoot().insertBefore(Hn,cx.svgContent())}}},{key:"requestSelector",value:function requestSelector(Tn,Un){if(Sf(Tn))return null;var Qn=this.selectors.length;if("object"===_typeof(this.selectorMap[Tn.id]))return this.selectorMap[Tn.id].locked=!0,this.selectorMap[Tn.id];for(var Dn=0;Dn<Qn;++Dn)if(this.selectors[Dn]&&!this.selectors[Dn].locked)return this.selectors[Dn].locked=!0,this.selectors[Dn].reset(Tn,Un),this.selectorMap[Tn.id]=this.selectors[Dn],this.selectors[Dn];return this.selectors[Qn]=new xx(Qn,Tn,Un),this.selectorParentGroup.append(this.selectors[Qn].selectorGroup),this.selectorMap[Tn.id]=this.selectors[Qn],this.selectors[Qn]}},{key:"releaseSelector",value:function releaseSelector(Tn){if(!Sf(Tn)){var Un=this.selectors.length,Qn=this.selectorMap[Tn.id];Qn.locked||console.log("WARNING! selector was released but was already unlocked");for(var Dn=0;Dn<Un;++Dn)if(this.selectors[Dn]&&this.selectors[Dn]===Qn){delete this.selectorMap[Tn.id],Qn.locked=!1,Qn.selectedElement=null,Qn.showGrips(!1);try{Qn.selectorGroup.setAttribute("display","none")}catch(Tn){}break}}}},{key:"getRubberBandBox",value:function getRubberBandBox(){return this.rubberBandBox||(this.rubberBandBox=this.selectorParentGroup.appendChild(cx.createSVGElement({element:"rect",attr:{id:"selectorRubberBand",fill:"#22C","fill-opacity":.15,stroke:"#22C","stroke-width":.5,display:"none",style:"pointer-events:none"}}))),this.rubberBandBox}}]),SelectorManager}(),Sx=jQueryPluginSVG(jQuery),Cx=zb,Bx=Vb,Ex=Kb,Nx=qb,Lx=Wb,Tx=Xb,Px=Hb;window.console||(window.console={},window.console.log=function(Tn){},window.console.dir=function(Tn){}),window.opera&&(window.console.log=function(Tn){window.opera.postError(Tn)},window.console.dir=function(Tn){});var Fx=function SvgCanvas(Tn,Un){_classCallCheck(this,SvgCanvas);var Qn={show_outside_canvas:!0,selectNew:!0,dimensions:[640,480]};Un&&Sx.extend(Qn,Un);var Dn=Qn.dimensions,Hn=this,Gn=window.document,zn=Gn.importNode(ef('<svg id="svgroot" xmlns="'+yd.SVG+'" xlinkns="'+yd.XLINK+'" width="'+Dn[0]+'" height="'+Dn[1]+'" x="'+Dn[0]+'" y="'+Dn[1]+'" overflow="visible"><defs><filter id="canvashadow" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"/><feOffset in="blur" dx="5" dy="5" result="offsetBlur"/><feMerge><feMergeNode in="offsetBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs></svg>').documentElement,!0);Tn.append(zn);var Vn=Gn.createElementNS(yd.SVG,"svg");(Hn.clearSvgContentElement=function(){Sx(Vn).empty(),Sx(Vn).attr({id:"svgcontent",width:Dn[0],height:Dn[1],x:Dn[0],y:Dn[1],overflow:Qn.show_outside_canvas?"visible":"hidden",xmlns:yd.SVG,"xmlns:se":yd.SE,"xmlns:xlink":yd.XLINK}).appendTo(zn);var Tn=Gn.createComment(" Created with SVG-edit - https://github.com/SVG-Edit/svgedit");Vn.append(Tn)})();var Kn="svg_";Hn.setIdPrefix=function(Tn){Kn=Tn},Hn.current_drawing_=new zw(Vn,Kn);var Wn=Hn.getCurrentDrawing=function(){return Hn.current_drawing_},Xn=1,Yn=null,Jn={shape:{fill:("none"===Qn.initFill.color?"":"#")+Qn.initFill.color,fill_paint:null,fill_opacity:Qn.initFill.opacity,stroke:"#"+Qn.initStroke.color,stroke_paint:null,stroke_opacity:Qn.initStroke.opacity,stroke_width:Qn.initStroke.width,stroke_dasharray:"none",stroke_linejoin:"miter",stroke_linecap:"butt",opacity:Qn.initOpacity}};Jn.text=Sx.extend(!0,{},Jn.shape),Sx.extend(Jn.text,{fill:"#000000",stroke_width:Qn.text&&Qn.text.stroke_width,font_size:Qn.text&&Qn.text.font_size,font_family:Qn.text&&Qn.text.font_family});var $n=Jn.shape,Zn=[],er=this.getJsonFromSvgElement=function(Tn){if(3===Tn.nodeType)return Tn.nodeValue;for(var Un,Qn={element:Tn.tagName,attr:{},children:[]},Dn=0;Un=Tn.attributes[Dn];Dn++)Qn.attr[Un.name]=Un.value;for(var Hn,Gn=0;Hn=Tn.childNodes[Gn];Gn++)Qn.children[Gn]=er(Hn);return Qn},tr=this.addSVGElementFromJson=function(Tn){if("string"==typeof Tn)return Gn.createTextNode(Tn);var Un=yf(Tn.attr.id),Qn=Wn().getCurrentLayer();if(Un&&Tn.element!==Un.tagName&&(Un.remove(),Un=null),!Un){var Dn=Tn.namespace||yd.SVG;Un=Gn.createElementNS(Dn,Tn.element),Qn&&(Yn||Qn).append(Un)}return Tn.curStyles&&bf(Un,{fill:$n.fill,stroke:$n.stroke,"stroke-width":$n.stroke_width,"stroke-dasharray":$n.stroke_dasharray,"stroke-linejoin":$n.stroke_linejoin,"stroke-linecap":$n.stroke_linecap,"stroke-opacity":$n.stroke_opacity,"fill-opacity":$n.fill_opacity,opacity:$n.opacity/2,style:"pointer-events:inherit"}),bf(Un,Tn.attr),wf(Un),Tn.children&&Tn.children.forEach((function(Tn){Un.append(tr(Tn))})),Un};Hn.getTransformList=gA,Hn.matrixMultiply=UA,Hn.hasMatrixTransform=IA,Hn.transformListToTransform=MA;var nr=function getBaseUnit(){return Qn.baseUnit};!function init(Tn){hA=Tn;var Un=document.createElementNS(yd.SVG,"svg");document.body.append(Un);var Qn=document.createElementNS(yd.SVG,"rect");Qn.setAttribute("width","1em"),Qn.setAttribute("height","1ex"),Qn.setAttribute("x","1in"),Un.append(Qn);var Dn=Qn.getBBox();Un.remove();var Hn=Dn.x;yA={em:Dn.width,ex:Dn.height,in:Hn,cm:Hn/2.54,mm:Hn/25.4,pt:Hn/72,pc:Hn/6,px:1,"%":0}}({getBaseUnit:nr,getElement:yf,getHeight:function getHeight(){return Vn.getAttribute("height")/Xn},getWidth:function getWidth(){return Vn.getAttribute("width")/Xn},getRoundDigits:function getRoundDigits(){return Er.round_digits}}),Hn.convertToNum=CA;var rr=function getSVGContent(){return Vn},ir=this.getSelectedElems=function(){return Zn},ar=Pw,or=function getSVGRoot(){return zn};!function init(Tn){zA=Tn,VA=Tn.getDOMDocument(),KA=Tn.getDOMContainer(),qA=Tn.getSVGRoot()}({pathActions:ar,getSVGContent:rr,addSVGElementFromJson:tr,getSelectedElements:ir,getDOMDocument:function getDOMDocument(){return Gn},getDOMContainer:function getDOMContainer(){return Tn},getSVGRoot:or,getBaseUnit:nr,getSnappingStep:function getSnappingStep(){return Qn.snappingStep}}),Hn.findDefs=of,Hn.getUrlFromAttr=nf,Hn.getHref=rf,Hn.setHref=af,Hn.getBBox=lf,Hn.getRotationAngle=_f,Hn.getElem=yf,Hn.getRefElem=vf,Hn.assignAttributes=bf,this.cleanupElement=wf;var sr=function getGridSnapping(){return Qn.gridSnapping};!function init(Tn){gx=Tn}({getDrawing:function getDrawing(){return Wn()},getSVGRoot:or,getGridSnapping:sr}),this.remapElement=mx,function init(Tn){lx=Tn}({getSVGRoot:or,getStartTransform:function getStartTransform(){return Ir},setStartTransform:function setStartTransform(Tn){Ir=Tn}}),this.recalculateDimensions=yx;var lr=bd();Hn.sanitizeSvg=hx;var cr=Hn.undoMgr=new Tx({handleHistoryEvent:function handleHistoryEvent(Tn,Un){var Qn=Px;if(Tn===Qn.BEFORE_UNAPPLY||Tn===Qn.BEFORE_APPLY)Hn.clearSelection();else if(Tn===Qn.AFTER_APPLY||Tn===Qn.AFTER_UNAPPLY){var Dn=Un.elements();Hn.pathActions.clear(),gr("changed",Dn);var Gn=Un.type(),zn=Tn===Qn.AFTER_APPLY;if("MoveElementCommand"===Gn)(zn?Un.newParent:Un.oldParent)===Vn&&Kw();else if("InsertElementCommand"===Gn||"RemoveElementCommand"===Gn)Un.parent===Vn&&Kw(),"InsertElementCommand"===Gn?zn&&Cr(Un.elem):zn||Cr(Un.elem),Un.elem&&"use"===Un.elem.tagName&&vi(Un.elem);else if("ChangeElementCommand"===Gn){"title"===Un.elem.tagName&&Un.elem.parentNode.parentNode===Vn&&Kw();var Kn=zn?Un.newValues:Un.oldValues;Kn.stdDeviation&&Hn.setBlurOffsets(Un.elem.parentNode,Kn.stdDeviation)}}}}),ur=function addCommandToHistory(Tn){Hn.undoMgr.addCommandToHistory(Tn)},dr=this.getZoom=function(){return Xn},hr=this.round=function(Tn){return Number.parseInt(Tn*Xn)/Xn};!function init(Tn,Un){ux=Tn,cx=Un,dx=new kx}(Qn,{createSVGElement:function createSVGElement(Tn){return Hn.addSVGElementFromJson(Tn)},svgRoot:function svgRoot(){return zn},svgContent:function svgContent(){return Vn},getCurrentZoom:dr});var pr=this.selectorManager=function getSelectorManager(){return dx}(),Ar=Hn.getNextId=function(){return Wn().getNextId()},fr=Hn.getId=function(){return Wn().getId()},gr=function call(Tn,Un){if(qr[Tn])return qr[Tn](window,Un)},mr=this.clearSelection=function(Tn){Zn.forEach((function(Tn){Sf(Tn)||pr.releaseSelector(Tn)})),Zn=[],Tn||gr("selected",Zn)},_r=this.addToSelection=function(Tn,Un){if(Tn.length){for(var Qn=0;Qn<Zn.length&&!Sf(Zn[Qn]);)++Qn;for(var Dn=Tn.length;Dn--;){var Hn=Tn[Dn];if(Hn){var Gn=lf(Hn);if(Gn&&("a"===Hn.tagName&&1===Hn.childNodes.length&&(Hn=Hn.firstChild),!Zn.includes(Hn))){Zn[Qn]=Hn,Qn++;var zn=pr.requestSelector(Hn,Gn);Zn.length>1&&zn.showGrips(!1)}}}if(Zn.length)for(gr("selected",Zn),1===Zn.length&&pr.requestSelector(Zn[0]).showGrips(Un),Zn.sort((function(Tn,Un){return Tn&&Un&&Tn.compareDocumentPosition?3-(6&Un.compareDocumentPosition(Tn)):Sf(Tn)?1:0}));Sf(Zn[0]);)Zn.shift(0)}},vr=function getOpacity(){return $n.opacity},yr=this.getMouseTarget=function(Un){if(Sf(Un))return null;var Qn=Un.target;if(Qn.correspondingUseElement&&(Qn=Qn.correspondingUseElement),[yd.MATH,yd.HTML].includes(Qn.namespaceURI)&&"svgcanvas"!==Qn.id)for(;"foreignObject"!==Qn.nodeName;)if(!(Qn=Qn.parentNode))return zn;var Dn=Wn().getCurrentLayer();if([zn,Tn,Vn,Dn].includes(Qn))return zn;if(Sx(Qn).closest("#selectorParentGroup").length)return pr.selectorParentGroup;for(;Qn.parentNode!==(Yn||Dn);)Qn=Qn.parentNode;return Qn};Hn.pathActions=ar,ow({selectorManager:pr,canvas:Hn,call:gr,resetD:function resetD(Tn){Tn.setAttribute("d",ar.convertPath(Tn))},round:hr,clearSelection:mr,addToSelection:_r,addCommandToHistory:ur,remapElement:mx,addSVGElementFromJson:tr,getGridSnapping:sr,getOpacity:vr,getSelectedElements:ir,getContainer:function getContainer(){return Tn},setStarted:function setStarted(Tn){Ur=Tn},getRubberBox:function getRubberBox(){return Dr},setRubberBox:function setRubberBox(Tn){return Dr=Tn},addPtsToSelection:function addPtsToSelection(Tn){var Un=Tn.closedSubpath,Qn=Tn.grips;ar.canDeleteNodes=!0,ar.closed_subpath=Un,gr("pointsAdded",{closedSubpath:Un,grips:Qn}),gr("selected",Qn)},endChanges:function endChanges(Tn){var Un=Tn.cmd,Qn=Tn.elem;ur(Un),gr("changed",[Qn])},getCurrentZoom:dr,getId:fr,getNextId:Ar,getMouseTarget:yr,getCurrentMode:function getCurrentMode(){return Rr},setCurrentMode:function setCurrentMode(Tn){return Rr=Tn},getDrawnPath:function getDrawnPath(){return fi},setDrawnPath:function setDrawnPath(Tn){return fi=Tn},getSVGRoot:or});var br={},wr="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use",xr=["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"],kr=Sx.data,Sr=document.createElementNS(yd.SVG,"animate");Sx(Sr).attr({attributeName:"opacity",begin:"indefinite",dur:1,fill:"freeze"}).appendTo(zn);var Cr=function restoreRefElems(Tn){var Un=Sx(Tn).attr(xr);Object.values(Un).forEach((function(Tn){if(Tn&&Tn.startsWith("url(")){var Un=nf(Tn).substr(1);yf(Un)||(of().append(Pr[Un]),delete Pr[Un])}}));var Qn=Tn.getElementsByTagName("*");if(Qn.length)for(var Dn=0,Hn=Qn.length;Dn<Hn;Dn++)restoreRefElems(Qn[Dn])},Br={},Er={round_digits:5},Nr={},Lr=Jn.text,Tr={},Pr={},Fr=Qn.imgPath+"logo.png",Ur=!1,Ir=null,Rr="select",Mr="none",Qr=$n,Or=null,Dr=null,jr=[],Hr=null;this.runExtension=function(Tn,Un,Qn){return this.runExtensions(Un,Qn,!1,(function(Un){return Un===Tn}))};var Gr=this.runExtensions=function(Tn,Un,Qn,Dn){var Hn=!!Qn&&[];return Sx.each(Tr,(function(Gn,zn){Dn&&!Dn(Gn)||zn&&Tn in zn&&("function"==typeof Un&&(Un=Un(Gn)),Qn?Hn.push(zn[Tn](Un)):Hn=zn[Tn](Un))})),Hn};this.addExtension=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn,Un,Qn){var Dn,Gn,Kn,Xn;return regeneratorRuntime.wrap((function _callee$(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:if(Dn=Qn.$,Gn=Qn.importLocale,"function"==typeof Un){Yn.next=3;break}throw new TypeError("Function argument expected for `svgcanvas.addExtension`");case 3:if(!(Tn in Tr)){Yn.next=5;break}throw new Error('Cannot add extension "'+Tn+'", an extension by that name already exists.');case 5:return Kn=Sx.extend(Hn.getPrivateMethods(),{$:Dn,importLocale:Gn,svgroot:zn,svgcontent:Vn,nonce:Wn().getNonce(),selectorManager:pr}),Yn.next=8,Un(Kn);case 8:return(Xn=Yn.sent)&&(Xn.name=Tn),Tr[Tn]=Xn,Yn.abrupt("return",gr("extension_added",Xn));case 12:case"end":return Yn.stop()}}),_callee)})));return function(Un,Qn,Dn){return Tn.apply(this,arguments)}}();var zr=this.getIntersectionList=function(Tn){if(Sf(Dr))return null;var Un,Qn=Yn||Wn().getCurrentLayer();if(Tn)(Un=Vn.createSVGRect()).x=Tn.x,Un.y=Tn.y,Un.width=Tn.width,Un.height=Tn.height;else{Un=Dr.getBBox();var Dn=Vn.createSVGRect();["x","y","width","height","top","right","bottom","left"].forEach((function(Tn){Dn[Tn]=Un[Tn]/Xn})),Un=Dn}var Hn=null;if(zd()||"function"==typeof zn.getIntersectionList&&(Un.x+=Number.parseInt(Vn.getAttribute("x")),Un.y+=Number.parseInt(Vn.getAttribute("y")),Hn=zn.getIntersectionList(Un,Qn)),Sf(Hn)||"function"!=typeof Hn.item){Hn=[],jr.length||(jr=Vr(Qn));for(var Gn=jr.length;Gn--;)Un.width&&DA(Un,jr[Gn].bbox)&&Hn.push(jr[Gn].elem)}return Hn};this.getStrokedBBox=gf,this.getVisibleElements=ff;var Vr=this.getVisibleElementsAndBBoxes=function(Tn){Tn||(Tn=Sx(Vn).children());var Un=[];return Sx(Tn).children().each((function(Tn,Qn){Qn.getBBox&&Un.push({elem:Qn,bbox:gf([Qn])})})),Un.reverse()},Kr=this.groupSvgElem=function(Tn){var Un=document.createElementNS(yd.SVG,"g");Tn.replaceWith(Un),Sx(Un).append(Tn).data("gsvg",Tn)[0].id=Ar()},qr={};Hn.call=gr,Hn.bind=function(Tn,Un){var Qn=qr[Tn];return qr[Tn]=Un,Qn},this.prepareSvg=function(Tn){this.sanitizeSvg(Tn.documentElement),_toConsumableArray(Tn.getElementsByTagNameNS(yd.SVG,"path")).forEach((function(Tn){Tn.setAttribute("d",ar.convertPath(Tn)),ar.fixEnd(Tn)}))};var Wr=function ffClone(Tn){if(!Gd())return Tn;var Un=Tn.cloneNode(!0);return Tn.before(Un),Tn.remove(),pr.releaseSelector(Tn),Zn[0]=Un,pr.requestSelector(Un).showGrips(!0),Un};this.setRotationAngle=function(Tn,Un){Tn=Number.parseFloat(Tn);var Qn=Zn[0],Dn=Qn.getAttribute("transform"),Hn=lf(Qn),Gn=Hn.x+Hn.width/2,Vn=Hn.y+Hn.height/2,Kn=gA(Qn);Kn.numberOfItems>0&&(4===Kn.getItem(0).type&&Kn.removeItem(0));if(0!==Tn){var Wn=PA(Gn,Vn,MA(Kn).matrix),Xn=zn.createSVGTransform();Xn.setRotate(Tn,Wn.x,Wn.y),Kn.numberOfItems?Kn.insertItemBefore(Xn,0):Kn.appendItem(Xn)}else 0===Kn.numberOfItems&&Qn.removeAttribute("transform");if(!Un){var Yn=Qn.getAttribute("transform");Qn.setAttribute("transform",Dn),Ni("transform",Yn,Zn),gr("changed",Zn)}pr.requestSelector(Zn[0]).resize(),xx.updateGripCursors(Tn)};var Xr=this.recalculateAllSelectedDimensions=function(){for(var Tn=new Lx("none"===Mr?"position":"size"),Un=Zn.length;Un--;){var Qn=Zn[Un],Dn=yx(Qn);Dn&&Tn.addSubCommand(Dn)}Tn.isEmpty()||(ur(Tn),gr("changed",Zn))},Yr=function logMatrix(Tn){console.log([Tn.a,Tn.b,Tn.c,Tn.d,Tn.e,Tn.f])},Jr=null,$r=this.selectOnly=function(Tn,Un){mr(!0),_r(Tn,Un)};this.removeFromSelection=function(Tn){if(!Sf(Zn[0])&&Tn.length){for(var Un=[],Qn=Zn.length,Dn=0;Dn<Qn;++Dn){var Hn=Zn[Dn];Hn&&(Tn.includes(Hn)?pr.releaseSelector(Hn):Un.push(Hn))}Zn=Un}},this.selectAllInCurrentLayer=function(){var Tn=Wn().getCurrentLayer();Tn&&(Rr="select",$r(Sx(Yn||Tn).children()))};var Zr,ei,ti,ni,ri,ii,ai,oi,si,li,ui,di,hi,pi,Ai,fi=null;ei={minx:null,miny:null,maxx:null,maxy:null},ti=null,ni=null,ri=null,ii=null,ai={},oi=0,si={x:0,y:0},li={x:0,y:0},ui={x:0,y:0},di={x:0,y:0},hi={x:0,y:0},pi={x:0,y:0},Ai=function getBsplinePoint(Tn){var Un={x:0,y:0},Qn=si,Dn=li,Hn=ui,Gn=di,zn=1/6,Vn=Tn*Tn,Kn=Vn*Tn,Wn=[[-1,3,-3,1],[3,-6,3,0],[-3,0,3,0],[1,4,1,0]];return Un.x=zn*((Qn.x*Wn[0][0]+Dn.x*Wn[0][1]+Hn.x*Wn[0][2]+Gn.x*Wn[0][3])*Kn+(Qn.x*Wn[1][0]+Dn.x*Wn[1][1]+Hn.x*Wn[1][2]+Gn.x*Wn[1][3])*Vn+(Qn.x*Wn[2][0]+Dn.x*Wn[2][1]+Hn.x*Wn[2][2]+Gn.x*Wn[2][3])*Tn+(Qn.x*Wn[3][0]+Dn.x*Wn[3][1]+Hn.x*Wn[3][2]+Gn.x*Wn[3][3])),Un.y=zn*((Qn.y*Wn[0][0]+Dn.y*Wn[0][1]+Hn.y*Wn[0][2]+Gn.y*Wn[0][3])*Kn+(Qn.y*Wn[1][0]+Dn.y*Wn[1][1]+Hn.y*Wn[1][2]+Gn.y*Wn[1][3])*Vn+(Qn.y*Wn[2][0]+Dn.y*Wn[2][1]+Hn.y*Wn[2][2]+Gn.y*Wn[2][3])*Tn+(Qn.y*Wn[3][0]+Dn.y*Wn[3][1]+Hn.y*Wn[3][2]+Gn.y*Wn[3][3])),{x:Un.x,y:Un.y}},Sx(Tn).mousedown((function mouseDown(Tn){if(!Hn.spaceKey&&1!==Tn.button){var Un=2===Tn.button;Tn.altKey&&Hn.cloneSelectedElements(0,0),Jr=Sx("#svgcontent g")[0].getScreenCTM().inverse();var Dn=PA(Tn.pageX,Tn.pageY,Jr),Gn=Dn.x*Xn,Vn=Dn.y*Xn;Tn.preventDefault(),Un&&(Rr="select",Hr=Dn);var Kn=Gn/Xn,Wn=Vn/Xn,Yn=yr(Tn);"a"===Yn.tagName&&1===Yn.childNodes.length&&(Yn=Yn.firstChild);var Jn=Kn;ri=ti=Kn;var er=Wn;if(ii=ni=Wn,Qn.gridSnapping&&(Kn=xf(Kn),Wn=xf(Wn),ti=xf(ti),ni=xf(ni)),Yn===pr.selectorParentGroup&&!Sf(Zn[0])){var nr=Tn.target,rr=kr(nr,"type");"rotate"===rr?Rr="rotate":"resize"===rr&&(Rr="resize",Mr=kr(nr,"dir")),Yn=Zn[0]}Ir=Yn.getAttribute("transform");var ir=gA(Yn);switch(Rr){case"select":if(Ur=!0,Mr="none",Un&&(Ur=!1),Yn!==zn){if(Zn.includes(Yn)||(Tn.shiftKey||mr(!0),_r([Yn]),Or=Yn,ar.clear()),!Un){var or,sr=_createForOfIteratorHelper(Zn);try{for(sr.s();!(or=sr.n()).done;){var lr=or.value;if(!Sf(lr)){var cr=gA(lr);cr.numberOfItems?cr.insertItemBefore(zn.createSVGTransform(),0):cr.appendItem(zn.createSVGTransform())}}}catch(Tn){sr.e(Tn)}finally{sr.f()}}}else Un||(mr(),Rr="multiselect",Sf(Dr)&&(Dr=pr.getRubberBandBox()),bf(Dr,{x:ri*=Xn,y:ii*=Xn,width:0,height:0,display:"inline"}));break;case"zoom":Ur=!0,Sf(Dr)&&(Dr=pr.getRubberBandBox()),bf(Dr,{x:Jn*Xn,y:Jn*Xn,width:0,height:0,display:"inline"});break;case"resize":Ur=!0,ti=Kn,ni=Wn,ai=lf(Sx("#selectedBox0")[0]);var ur={};Sx.each(ai,(function(Tn,Un){ur[Tn]=Un/Xn})),ai=ur;var dr=_f(Yn)?1:0;if(IA(ir))ir.insertItemBefore(zn.createSVGTransform(),dr),ir.insertItemBefore(zn.createSVGTransform(),dr),ir.insertItemBefore(zn.createSVGTransform(),dr);else if(ir.appendItem(zn.createSVGTransform()),ir.appendItem(zn.createSVGTransform()),ir.appendItem(zn.createSVGTransform()),Xd()){var hr,fr=Hd();fr&&(hr=function delayedStroke(Tn){var Un=Tn.getAttribute("stroke");Tn.removeAttribute("stroke"),null!==Un&&setTimeout((function(){Tn.setAttribute("stroke",Un)}),0)}),Yn.style.vectorEffect="non-scaling-stroke",fr&&hr(Yn);for(var gr=Yn.getElementsByTagName("*"),vr=gr.length,br=0;br<vr;br++)gr[br].style&&(gr[br].style.vectorEffect="non-scaling-stroke",fr&&hr(gr[br]))}break;case"fhellipse":case"fhrect":case"fhpath":ui.x=Jn,ui.y=er,li={x:0,y:0},si={x:0,y:0},Ur=!0,tr({element:"polyline",curStyles:!0,attr:{points:Jn+","+er+" ",id:Ar(),fill:"none",opacity:$n.opacity/2,"stroke-linecap":"round",style:"pointer-events:none"}}),ei.minx=Jn,ei.maxx=Jn,ei.miny=er,ei.maxy=er;break;case"image":Ur=!0;var wr=tr({element:"image",attr:{x:Kn,y:Wn,width:0,height:0,id:Ar(),opacity:$n.opacity/2,style:"pointer-events:inherit"}});af(wr,Fr),kf(wr);break;case"square":case"rect":Ur=!0,ti=Kn,ni=Wn,tr({element:"rect",curStyles:!0,attr:{x:Kn,y:Wn,width:0,height:0,id:Ar(),opacity:$n.opacity/2}});break;case"line":Ur=!0;var xr=0===Number($n.stroke_width)?1:$n.stroke_width;tr({element:"line",curStyles:!0,attr:{x1:Kn,y1:Wn,x2:Kn,y2:Wn,id:Ar(),stroke:$n.stroke,"stroke-width":xr,"stroke-dasharray":$n.stroke_dasharray,"stroke-linejoin":$n.stroke_linejoin,"stroke-linecap":$n.stroke_linecap,"stroke-opacity":$n.stroke_opacity,fill:"none",opacity:$n.opacity/2,style:"pointer-events:none"}});break;case"circle":Ur=!0,tr({element:"circle",curStyles:!0,attr:{cx:Kn,cy:Wn,r:0,id:Ar(),opacity:$n.opacity/2}});break;case"ellipse":Ur=!0,tr({element:"ellipse",curStyles:!0,attr:{cx:Kn,cy:Wn,rx:0,ry:0,id:Ar(),opacity:$n.opacity/2}});break;case"text":Ur=!0,tr({element:"text",curStyles:!0,attr:{x:Kn,y:Wn,id:Ar(),fill:Lr.fill,"stroke-width":Lr.stroke_width,"font-size":Lr.font_size,"font-family":Lr.font_family,"text-anchor":"middle","xml:space":"preserve",opacity:$n.opacity}});break;case"path":case"pathedit":ti*=Xn,ni*=Xn,ar.mouseDown(Tn,Yn,ti,ni),Ur=!0;break;case"textedit":ti*=Xn,ni*=Xn,gi.mouseDown(Tn,Yn,ti,ni),Ur=!0;break;case"rotate":Ur=!0,Hn.undoMgr.beginUndoableChange("transform",Zn)}var Sr=Gr("mouseDown",{event:Tn,start_x:ti,start_y:ni,selectedElements:Zn},!0);Sx.each(Sr,(function(Tn,Un){Un&&Un.started&&(Ur=!0)}))}})).mousemove((function mouseMove(Tn){if(Ur&&1!==Tn.button&&!Hn.spaceKey){var Un,Dn,Gn,Kn,Wn,Yn,Jn,$n,er,tr,nr=Zn[0],rr=PA(Tn.pageX,Tn.pageY,Jr),ir=rr.x*Xn,or=rr.y*Xn,sr=yf(fr()),lr=ir/Xn,cr=lr,ur=or/Xn,dr=ur;switch(Qn.gridSnapping&&(cr=xf(cr),dr=xf(dr)),Tn.preventDefault(),Rr){case"select":if(null!==Zn[0]&&(Wn=cr-ti,Yn=dr-ni,Qn.gridSnapping&&(Wn=xf(Wn),Yn=xf(Yn)),0!==Wn||0!==Yn)){for(Jn=Zn.length,Un=0;Un<Jn&&(nr=Zn[Un],!Sf(nr));++Un){var hr=zn.createSVGTransform();tr=gA(nr),hr.setTranslate(Wn,Yn),tr.numberOfItems?tr.replaceItem(hr,0):tr.appendItem(hr),pr.requestSelector(nr).resize()}gr("transition",Zn)}break;case"multiselect":lr*=Xn,ur*=Xn,bf(Dr,{x:Math.min(ri,lr),y:Math.min(ii,ur),width:Math.abs(lr-ri),height:Math.abs(ur-ii)});var Ar=Zn.slice(),mr=[],_r=zr();for(Jn=_r.length,Un=0;Un<Jn;++Un){var vr=_r[Un];Zn.includes(vr)||mr.push(vr);var yr=Ar.indexOf(vr);-1!==yr&&Ar.splice(yr,1)}Ar.length>0&&Hn.removeFromSelection(Ar),mr.length>0&&Hn.addToSelection(mr);break;case"resize":tr=gA(nr);var br=IA(tr),wr=(er=br?ai:lf(nr)).x,xr=er.y,kr=er,Sr=kr.width,Cr=kr.height;if(Wn=cr-ti,Yn=dr-ni,Qn.gridSnapping&&(Wn=xf(Wn),Yn=xf(Yn),Cr=xf(Cr),Sr=xf(Sr)),$n=_f(nr)){var Br=Math.sqrt(Wn*Wn+Yn*Yn),Er=Math.atan2(Yn,Wn)-$n*Math.PI/180;Wn=Br*Math.cos(Er),Yn=Br*Math.sin(Er)}Mr.includes("n")||Mr.includes("s")||(Yn=0),Mr.includes("e")||Mr.includes("w")||(Wn=0);var Nr=0,Lr=0,Tr=Cr?(Cr+Yn)/Cr:1,Pr=Sr?(Sr+Wn)/Sr:1;Mr.includes("n")&&(Tr=Cr?(Cr-Yn)/Cr:1,Lr=Cr),Mr.includes("w")&&(Pr=Sr?(Sr-Wn)/Sr:1,Nr=Sr);var Fr=zn.createSVGTransform(),Ir=zn.createSVGTransform(),Qr=zn.createSVGTransform();if(Qn.gridSnapping&&(wr=xf(wr),Nr=xf(Nr),xr=xf(xr),Lr=xf(Lr)),Fr.setTranslate(-(wr+Nr),-(xr+Lr)),Tn.shiftKey&&(1===Pr?Pr=Tr:Tr=Pr),Ir.setScale(Pr,Tr),Qr.setTranslate(wr+Nr,xr+Lr),br){var Or=$n?1:0;tr.replaceItem(Fr,2+Or),tr.replaceItem(Ir,1+Or),tr.replaceItem(Qr,Number(Or))}else{var jr=tr.numberOfItems;tr.replaceItem(Qr,jr-3),tr.replaceItem(Ir,jr-2),tr.replaceItem(Fr,jr-1)}pr.requestSelector(nr).resize(),gr("transition",Zn);break;case"zoom":lr*=Xn,ur*=Xn,bf(Dr,{x:Math.min(ri*Xn,lr),y:Math.min(ii*Xn,ur),width:Math.abs(lr-ri*Xn),height:Math.abs(ur-ii*Xn)});break;case"text":bf(sr,{x:cr,y:dr});break;case"line":Qn.gridSnapping&&(cr=xf(cr),dr=xf(dr));var Hr=cr,Vr=dr;Tn.shiftKey&&(Hr=(Dn=OA(ti,ni,Hr,Vr)).x,Vr=Dn.y),sr.setAttribute("x2",Hr),sr.setAttribute("y2",Vr);break;case"foreignObject":case"square":case"rect":case"image":var Kr,qr,Wr="square"===Rr||Tn.shiftKey,Xr=Math.abs(cr-ti),Yr=Math.abs(dr-ni);Wr?(Xr=Yr=Math.max(Xr,Yr),Kr=ti<cr?ti:ti-Xr,qr=ni<dr?ni:ni-Yr):(Kr=Math.min(ti,cr),qr=Math.min(ni,dr)),Qn.gridSnapping&&(Xr=xf(Xr),Yr=xf(Yr),Kr=xf(Kr),qr=xf(qr)),bf(sr,{width:Xr,height:Yr,x:Kr,y:qr});break;case"circle":var $r=Sx(sr).attr(["cx","cy"]);Gn=$r.cx,Kn=$r.cy;var fi=Math.sqrt((cr-Gn)*(cr-Gn)+(dr-Kn)*(dr-Kn));Qn.gridSnapping&&(fi=xf(fi)),sr.setAttribute("r",fi);break;case"ellipse":var mi=Sx(sr).attr(["cx","cy"]);Gn=mi.cx,Kn=mi.cy,Qn.gridSnapping&&(cr=xf(cr),Gn=xf(Gn),dr=xf(dr),Kn=xf(Kn)),sr.setAttribute("rx",Math.abs(cr-Gn));var _i=Math.abs(Tn.shiftKey?cr-Gn:dr-Kn);sr.setAttribute("ry",_i);break;case"fhellipse":case"fhrect":ei.minx=Math.min(lr,ei.minx),ei.maxx=Math.max(lr,ei.maxx),ei.miny=Math.min(ur,ei.miny),ei.maxy=Math.max(ur,ei.maxy);case"fhpath":if(di.x=lr,di.y=ur,si.x&&si.y)for(Un=0;Un<9;Un++)if(Zr=Un/10,hi=Ai((Un+1)/10),pi=hi,hi=Ai(Zr),(oi+=Math.sqrt((pi.x-hi.x)*(pi.x-hi.x)+(pi.y-hi.y)*(pi.y-hi.y)))>.8){oi-=.8;var vi=Vn.createSVGPoint();vi.x=hi.x,vi.y=hi.y,sr.points.appendItem(vi)}si={x:li.x,y:li.y},li={x:ui.x,y:ui.y},ui={x:di.x,y:di.y};break;case"path":case"pathedit":if(cr*=Xn,dr*=Xn,Qn.gridSnapping&&(cr=xf(cr),dr=xf(dr),ti=xf(ti),ni=xf(ni)),Tn.shiftKey){var yi,wi,xi=iw;xi?(yi=xi.dragging?xi.dragging[0]:ti,wi=xi.dragging?xi.dragging[1]:ni):(yi=ti,wi=ni);var ki=Dn=OA(yi,wi,cr,dr);cr=ki.x,dr=ki.y}Dr&&"none"!==Dr.getAttribute("display")&&(lr*=Xn,ur*=Xn,bf(Dr,{x:Math.min(ri*Xn,lr),y:Math.min(ii*Xn,ur),width:Math.abs(lr-ri*Xn),height:Math.abs(ur-ii*Xn)})),ar.mouseMove(cr,dr);break;case"textedit":cr*=Xn,dr*=Xn,gi.mouseMove(ir,or);break;case"rotate":Gn=(er=lf(nr)).x+er.width/2,Kn=er.y+er.height/2;var Si=QA(nr),Ci=PA(Gn,Kn,Si);Gn=Ci.x,Kn=Ci.y,$n=(Math.atan2(Kn-dr,Gn-cr)*(180/Math.PI)-90)%360,Qn.gridSnapping&&($n=xf($n)),Tn.shiftKey&&($n=45*Math.round($n/45)),Hn.setRotationAngle($n<-180?360+$n:$n,!0),gr("transition",Zn)}Gr("mouseMove",{event:Tn,mouse_x:ir,mouse_y:or,selected:nr})}})).click((function handleLinkInCanvas(Tn){return Tn.preventDefault(),!1})).dblclick((function dblClick(Tn){var Un=Tn.target.parentNode,Qn=yr(Tn),Dn=Qn.tagName;if("text"===Dn&&"textedit"!==Rr){var Hn=PA(Tn.pageX,Tn.pageY,Jr);gi.select(Qn,Hn.x,Hn.y)}Un!==Yn&&("g"!==Dn&&"a"!==Dn||!_f(Qn)||(Ti(Qn),Qn=Zn[0],mr(!0)),Yn&&rx(),"g"!==Un.tagName&&"a"!==Un.tagName||Un===Wn().getCurrentLayer()||Qn===pr.selectorParentGroup||ix(Qn))})).mouseup((function mouseUp(Tn){if(2!==Tn.button){var Un=Or;if(Or=null,Ur){var Dn,Gn,zn=PA(Tn.pageX,Tn.pageY,Jr),Vn=zn.x*Xn,Kn=zn.y*Xn,Yn=Vn/Xn,Jn=Kn/Xn,er=yf(fr()),nr=!1,rr=Yn,ir=Jn;switch(Ur=!1,Rr){case"resize":case"multiselect":Sf(Dr)||(Dr.setAttribute("display","none"),jr=[]),Rr="select";case"select":if(!Sf(Zn[0])){if(Sf(Zn[1])){var or=Zn[0];switch(or.tagName){case"g":case"use":case"image":case"foreignObject":break;default:Qr.fill=or.getAttribute("fill"),Qr.fill_opacity=or.getAttribute("fill-opacity"),Qr.stroke=or.getAttribute("stroke"),Qr.stroke_opacity=or.getAttribute("stroke-opacity"),Qr.stroke_width=or.getAttribute("stroke-width"),Qr.stroke_dasharray=or.getAttribute("stroke-dasharray"),Qr.stroke_linejoin=or.getAttribute("stroke-linejoin"),Qr.stroke_linecap=or.getAttribute("stroke-linecap")}"text"===or.tagName&&(Lr.font_size=or.getAttribute("font-size"),Lr.font_family=or.getAttribute("font-family")),pr.requestSelector(or).showGrips(!0)}if(Xr(),rr!==ri||ir!==ii)for(var sr=Zn.length,lr=0;lr<sr&&!Sf(Zn[lr]);++lr)Zn[lr].firstChild||pr.requestSelector(Zn[lr]).resize();else Gn=Tn.target,"path"===Zn[0].nodeName&&Sf(Zn[1])?ar.select(Zn[0]):Tn.shiftKey&&Un!==Gn&&Hn.removeFromSelection([Gn]);if(Xd()){var cr=Zn[0];cr&&(cr.removeAttribute("style"),tf(cr,(function(Tn){Tn.removeAttribute("style")})))}}return;case"zoom":Sf(Dr)||Dr.setAttribute("display","none");var dr=Tn.shiftKey?.5:2;return void gr("zoomed",{x:Math.min(ri,rr),y:Math.min(ii,ir),width:Math.abs(rr-ri),height:Math.abs(ir-ii),factor:dr});case"fhpath":oi=0,si={x:0,y:0},li={x:0,y:0},ui={x:0,y:0},di={x:0,y:0};var hr=er.getAttribute("points"),Ar=hr.indexOf(",");(nr=Ar>=0?hr.includes(",",Ar+1):hr.includes(" ",hr.indexOf(" ")+1))&&(er=ar.smoothPolylineIntoPath(er));break;case"line":Dn=Sx(er).attr(["x1","x2","y1","y2"]),nr=Dn.x1!==Dn.x2||Dn.y1!==Dn.y2;break;case"foreignObject":case"square":case"rect":case"image":Dn=Sx(er).attr(["width","height"]),nr=Dn.width||Dn.height||"image"===Rr;break;case"circle":nr="0"!==er.getAttribute("r");break;case"ellipse":Dn=Sx(er).attr(["rx","ry"]),nr=Dn.rx||Dn.ry;break;case"fhellipse":ei.maxx-ei.minx>0&&ei.maxy-ei.miny>0&&(er=tr({element:"ellipse",curStyles:!0,attr:{cx:(ei.minx+ei.maxx)/2,cy:(ei.miny+ei.maxy)/2,rx:(ei.maxx-ei.minx)/2,ry:(ei.maxy-ei.miny)/2,id:fr()}}),gr("changed",[er]),nr=!0);break;case"fhrect":ei.maxx-ei.minx>0&&ei.maxy-ei.miny>0&&(er=tr({element:"rect",curStyles:!0,attr:{x:ei.minx,y:ei.miny,width:ei.maxx-ei.minx,height:ei.maxy-ei.miny,id:fr()}}),gr("changed",[er]),nr=!0);break;case"text":nr=!0,$r([er]),gi.start(er);break;case"path":er=null,Ur=!0;var mr=ar.mouseUp(Tn,er,Vn,Kn);er=mr.element,nr=mr.keep;break;case"pathedit":nr=!0,er=null,ar.mouseUp(Tn);break;case"textedit":nr=!1,er=null,gi.mouseUp(Tn,Vn,Kn);break;case"rotate":nr=!0,er=null,Rr="select";var _r=Hn.undoMgr.finishUndoableChange();_r.isEmpty()||ur(_r),Xr(),gr("changed",Zn)}var vr=Gr("mouseUp",{event:Tn,mouse_x:Vn,mouse_y:Kn},!0);if(Sx.each(vr,(function(Tn,Un){Un&&(nr=Un.keep||nr,er=Un.element,Ur=Un.started||Ur)})),nr||Sf(er)){if(!Sf(er)){Hn.addedNew=!0;var yr,br=.2;if(Sr.beginElement&&Number.parseFloat(er.getAttribute("opacity"))!==$n.opacity){yr=Sx(Sr).clone().attr({to:$n.opacity,dur:br}).appendTo(er);try{yr[0].beginElement()}catch(Tn){}}else br=0;setTimeout((function(){yr&&yr.remove(),er.setAttribute("opacity",$n.opacity),er.setAttribute("style","pointer-events:inherit"),wf(er),"path"===Rr?ar.toEditMode(er):Qn.selectNew&&$r([er],!0),ur(new Bx(er)),gr("changed",[er])}),1e3*br)}}else{for(Wn().releaseId(fr()),er.remove(),er=null,Gn=Tn.target;Gn&&Gn.parentNode&&Gn.parentNode.parentNode&&"g"===Gn.parentNode.parentNode.tagName;)Gn=Gn.parentNode;"path"===Rr&&fi||!Gn||!Gn.parentNode||"selectorParentGroup"===Gn.parentNode.id||"svgcanvas"===Gn.id||"svgroot"===Gn.id||(Hn.setMode("select"),$r([Gn],!0))}Ir=null}}})),Sx(Tn).bind("mousewheel DOMMouseScroll",(function(Tn){if(Tn.shiftKey){Tn.preventDefault();var Un=Tn.originalEvent;Jr=Sx("#svgcontent g")[0].getScreenCTM().inverse();var Dn=Sx("#workarea"),Gn=Qn.showRulers?16:0,zn=PA(Un.pageX,Un.pageY,Jr),Vn=Dn.width(),Kn=Dn.height(),Wn=Vn-15-Gn,Yn=Kn-15-Gn,Jn=Wn*Jr.a,$n=Yn*Jr.d,Zn=Dn.offset(),er=Zn.left+Gn,tr=Zn.top+Gn,nr=Un.wheelDelta?Un.wheelDelta:Un.detail?-Un.detail:0;if(nr){var rr,ir,ar=Math.max(3/4,Math.min(4/3,nr));ar>1?(rr=Math.ceil(Wn/Jn*ar*100)/100,ir=Math.ceil(Yn/$n*ar*100)/100):(rr=Math.floor(Wn/Jn*ar*100)/100,ir=Math.floor(Yn/$n*ar*100)/100);var or=Math.min(rr,ir);if((or=Math.min(10,Math.max(.01,or)))!==Xn){ar=or/Xn;var sr=PA(er,tr,Jr),lr={x:(zn.x-(zn.x-sr.x)/ar)*or-Gn+Vn/2,y:(zn.y-(zn.y-sr.y)/ar)*or-Gn+Kn/2};Hn.setZoom(or),Sx("#zoom").val((100*or).toFixed(1)),gr("updateCanvas",{center:!1,newCtr:lr}),gr("zoomDone")}}}}));var gi=Hn.textActions=function(){var Tn,Un,Qn,Dn,Gn,Vn,Kn,Wn,Yn,Jn,$n=[];function setCursor(Tn){var Hn=""===Un.value;if(Sx(Un).focus(),!arguments.length)if(Hn)Tn=0;else{if(Un.selectionEnd!==Un.selectionStart)return;Tn=Un.selectionEnd}var zn=$n[Tn];Hn||Un.setSelectionRange(Tn,Tn),(Qn=yf("text_cursor"))||(Qn=document.createElementNS(yd.SVG,"line"),bf(Qn,{id:"text_cursor",stroke:"#333","stroke-width":1}),Qn=yf("selectorParentGroup").appendChild(Qn)),Gn||(Gn=setInterval((function(){var Tn="none"===Qn.getAttribute("display");Qn.setAttribute("display",Tn?"inline":"none")}),600));var Kn=ptToScreen(zn.x,Vn.y),Wn=ptToScreen(zn.x,Vn.y+Vn.height);bf(Qn,{x1:Kn.x,y1:Kn.y,x2:Wn.x,y2:Wn.y,visibility:"visible",display:"inline"}),Dn&&Dn.setAttribute("d","")}function setSelection(Tn,Hn,Gn){if(Tn!==Hn){Gn||Un.setSelectionRange(Tn,Hn),(Dn=yf("text_selectblock"))||(Dn=document.createElementNS(yd.SVG,"path"),bf(Dn,{id:"text_selectblock",fill:"green",opacity:.5,style:"pointer-events:none"}),yf("selectorParentGroup").append(Dn));var zn=$n[Tn],Kn=$n[Hn];Qn.setAttribute("visibility","hidden");var Wn=ptToScreen(zn.x,Vn.y),Xn=ptToScreen(zn.x+(Kn.x-zn.x),Vn.y),Yn=ptToScreen(zn.x,Vn.y+Vn.height),Jn=ptToScreen(zn.x+(Kn.x-zn.x),Vn.y+Vn.height),Zn="M"+Wn.x+","+Wn.y+" L"+Xn.x+","+Xn.y+" "+Jn.x+","+Jn.y+" "+Yn.x+","+Yn.y+"z";bf(Dn,{d:Zn,display:"inline"})}else setCursor(Hn)}function getIndexFromPoint(Un,Qn){var Dn=zn.createSVGPoint();if(Dn.x=Un,Dn.y=Qn,1===$n.length)return 0;var Hn=Tn.getCharNumAtPosition(Dn);Hn<0?(Hn=$n.length-2,Un<=$n[0].x&&(Hn=0)):Hn>=$n.length-2&&(Hn=$n.length-2);var Gn=$n[Hn];return Un>Gn.x+Gn.width/2&&Hn++,Hn}function setCursorFromPoint(Tn,Un){setCursor(getIndexFromPoint(Tn,Un))}function setEndSelectionFromPoint(Tn,Qn,Dn){var Hn=Un.selectionStart,Gn=getIndexFromPoint(Tn,Qn);setSelection(Math.min(Hn,Gn),Math.max(Hn,Gn),!Dn)}function screenToPt(Tn,Un){var Qn={x:Tn,y:Un};if(Qn.x/=Xn,Qn.y/=Xn,Kn){var Dn=PA(Qn.x,Qn.y,Kn.inverse());Qn.x=Dn.x,Qn.y=Dn.y}return Qn}function ptToScreen(Tn,Un){var Qn={x:Tn,y:Un};if(Kn){var Dn=PA(Qn.x,Qn.y,Kn);Qn.x=Dn.x,Qn.y=Dn.y}return Qn.x*=Xn,Qn.y*=Xn,Qn}function selectAll(Un){setSelection(0,Tn.textContent.length),Sx(this).unbind(Un)}function selectWord(Un){if(Jn&&Tn){var Qn=PA(Un.pageX,Un.pageY,Jr),Dn=screenToPt(Qn.x*Xn,Qn.y*Xn),Hn=getIndexFromPoint(Dn.x,Dn.y),Gn=Tn.textContent,zn=Gn.substr(0,Hn).replace(/[a-z\d]+$/i,"").length,Vn=Gn.substr(Hn).match(/^[a-z\d]+/i);setSelection(zn,(Vn?Vn[0].length:0)+Hn),Sx(Un.target).click(selectAll),setTimeout((function(){Sx(Un.target).unbind("click",selectAll)}),300)}}return{select:function select(Un,Qn,Dn){Tn=Un,gi.toEditMode(Qn,Dn)},start:function start(Un){Tn=Un,gi.toEditMode()},mouseDown:function mouseDown(Tn,Qn,Dn,Hn){var Gn=screenToPt(Dn,Hn);Un.focus(),setCursorFromPoint(Gn.x,Gn.y),Wn=Dn,Yn=Hn},mouseMove:function mouseMove(Tn,Un){var Qn=screenToPt(Tn,Un);setEndSelectionFromPoint(Qn.x,Qn.y)},mouseUp:function mouseUp(Un,Qn,Dn){var Hn=screenToPt(Qn,Dn);setEndSelectionFromPoint(Hn.x,Hn.y,!0),Un.target!==Tn&&Qn<Wn+2&&Qn>Wn-2&&Dn<Yn+2&&Dn>Yn-2&&gi.toSelectMode(!0)},setCursor:setCursor,toEditMode:function toEditMode(Un,Qn){if(Jn=!1,Rr="textedit",pr.requestSelector(Tn).showGrips(!1),pr.requestSelector(Tn),gi.init(),Sx(Tn).css("cursor","text"),arguments.length){var Dn=screenToPt(Un,Qn);setCursorFromPoint(Dn.x,Dn.y)}else setCursor();setTimeout((function(){Jn=!0}),300)},toSelectMode:function toSelectMode(zn){Rr="select",clearInterval(Gn),Gn=null,Dn&&Sx(Dn).attr("display","none"),Qn&&Sx(Qn).attr("visibility","hidden"),Sx(Tn).css("cursor","move"),zn&&(mr(),Sx(Tn).css("cursor","move"),gr("selected",[Tn]),_r([Tn],!0)),Tn&&!Tn.textContent.length&&Hn.deleteSelectedElements(),Sx(Un).blur(),Tn=!1},setInputElem:function setInputElem(Tn){Un=Tn},clear:function clear(){"textedit"===Rr&&gi.toSelectMode()},init:function init(Qn){if(Tn){var Dn,Gn;Tn.parentNode||(Tn=Zn[0],pr.requestSelector(Tn).showGrips(!1));var zn=Tn.textContent.length,Wn=Tn.getAttribute("transform");for(Vn=lf(Tn),Kn=Wn?QA(Tn):null,($n=[]).length=zn,Un.focus(),Sx(Tn).unbind("dblclick",selectWord).dblclick(selectWord),zn||(Gn={x:Vn.x+Vn.width/2,width:0}),Dn=0;Dn<zn;Dn++){var Yn=Tn.getStartPositionOfChar(Dn);if(Gn=Tn.getEndPositionOfChar(Dn),!Wd()){var Jn=Hn.contentW*Xn;Yn.x-=Jn,Gn.x-=Jn,Yn.x/=Xn,Gn.x/=Xn}$n[Dn]={x:Yn.x,y:Vn.y,width:Gn.x-Yn.x,height:Vn.height}}$n.push({x:Gn.x,width:0}),setSelection(Un.selectionStart,Un.selectionEnd,!0)}}}}(),mi=this.removeUnusedDefElems=function(){var Tn=Vn.getElementsByTagNameNS(yd.SVG,"defs");if(!Tn||!Tn.length)return 0;var Un,Qn,Dn=[],Hn=0,Gn=["fill","stroke","filter","marker-start","marker-mid","marker-end"],zn=Gn.length,Kn=Vn.getElementsByTagNameNS(yd.SVG,"*"),Wn=Kn.length;for(Un=0;Un<Wn;Un++){var Xn=Kn[Un];for(Qn=0;Qn<zn;Qn++){var Yn=nf(Xn.getAttribute(Gn[Qn]));Yn&&Dn.push(Yn.substr(1))}var Jn=rf(Xn);Jn&&Jn.startsWith("#")&&Dn.push(Jn.substr(1))}var $n=Sx(Tn).find("linearGradient, radialGradient, filter, marker, svg, symbol");for(Un=$n.length;Un--;){var Zn=$n[Un],er=Zn.id;Dn.includes(er)||(Pr[er]=Zn,Zn.remove(),Hn++)}return Hn};function getIssues(){mr();var Tn=[],Un=[],Qn={feGaussianBlur:br.exportNoBlur,foreignObject:br.exportNoforeignObject,"[stroke-dasharray]":br.exportNoDashArray},Dn=Sx(Vn);return"font"in Sx("<canvas>")[0].getContext("2d")||(Qn.text=br.exportNoText),Sx.each(Qn,(function(Qn,Hn){Dn.find(Qn).length&&(Un.push(Qn),Tn.push(Hn))})),{issues:Tn,issueCodes:Un}}this.svgCanvasToString=function(){for(;mi()>0;);ar.clear(!0),Sx.each(Vn.childNodes,(function(Tn,Un){Tn&&8===Un.nodeType&&Un.data.includes("Created with")&&Vn.firstChild.before(Un)})),Yn&&(rx(),$r([Yn]));var Tn=[];Sx(Vn).find("g:data(gsvg)").each((function(){for(var Un=this.attributes,Qn=Un.length,Dn=0;Dn<Qn;Dn++)"id"!==Un[Dn].nodeName&&"style"!==Un[Dn].nodeName||Qn--;if(Qn<=0){var Hn=this.firstChild;Tn.push(Hn),Sx(this).replaceWith(Hn)}}));var Un=this.svgToString(Vn,0);return Tn.length&&Sx(Tn).each((function(){Kr(this)})),Un},this.svgToString=function(Tn,Un){var Dn=[],Hn=Qn.baseUnit,Gn=new RegExp("^-?[\\d\\.]+"+Hn+"$");if(Tn){wf(Tn);var zn=_toConsumableArray(Tn.attributes),Vn=Tn.childNodes;zn.sort((function(Tn,Un){return Tn.name>Un.name?-1:1}));for(var Kn=0;Kn<Un;Kn++)Dn.push(" ");if(Dn.push("<"),Dn.push(Tn.nodeName),"svgcontent"===Tn.id){var Wn=ki();"px"!==Hn&&(Wn.w=kA(Wn.w,Hn)+Hn,Wn.h=kA(Wn.h,Hn)+Hn),Dn.push(' width="'+Wn.w+'" height="'+Wn.h+'" xmlns="'+yd.SVG+'"');var Xn={};Sx(Tn).find("*").andSelf().each((function(){var Tn=this.namespaceURI;Tn&&!Xn[Tn]&&lr[Tn]&&"xmlns"!==lr[Tn]&&"xml"!==lr[Tn]&&(Xn[Tn]=!0,Dn.push(" xmlns:"+lr[Tn]+'="'+Tn+'"')),Sx.each(this.attributes,(function(Tn,Un){var Qn=Un.namespaceURI;Qn&&!Xn[Qn]&&"xmlns"!==lr[Qn]&&"xml"!==lr[Qn]&&(Xn[Qn]=!0,Dn.push(" xmlns:"+lr[Qn]+'="'+Qn+'"'))}))}));for(var Yn=zn.length,Jn=["width","height","xmlns","x","y","viewBox","id","overflow"];Yn--;){var $n=zn[Yn],Zn=XA($n.value);$n.nodeName.startsWith("xmlns:")||(""===Zn||Jn.includes($n.localName)||$n.namespaceURI&&!lr[$n.namespaceURI]||(Dn.push(" "),Dn.push($n.nodeName),Dn.push('="'),Dn.push(Zn),Dn.push('"')))}}else{if("defs"===Tn.nodeName&&!Tn.firstChild)return"";for(var er=["-moz-math-font-style","_moz-math-font-style"],tr=zn.length-1;tr>=0;tr--){var nr=zn[tr],rr=XA(nr.value);if(!er.includes(nr.localName)){if("null"===rr){var ir=nr.localName.replace(/-[a-z]/g,(function(Tn){return Tn[1].toUpperCase()}));if(Object.prototype.hasOwnProperty.call(Tn.style,ir))continue}if(""!==rr){if(rr.startsWith("pointer-events"))continue;if("class"===nr.localName&&rr.startsWith("se_"))continue;if(Dn.push(" "),"d"===nr.localName&&(rr=ar.convertPath(Tn,!0)),isNaN(rr)?Gn.test(rr)&&(rr=xA(rr)+Hn):rr=xA(rr),Er.apply&&"image"===Tn.nodeName&&"href"===nr.localName&&Er.images&&"embed"===Er.images){var or=Br[rr];or&&(rr=or)}nr.namespaceURI&&nr.namespaceURI!==yd.SVG&&!lr[nr.namespaceURI]||(Dn.push(nr.nodeName),Dn.push('="'),Dn.push(rr),Dn.push('"'))}}}}if(Tn.hasChildNodes()){Dn.push(">"),Un++;for(var sr=!1,cr=0;cr<Vn.length;cr++){var ur=Vn.item(cr);switch(ur.nodeType){case 1:Dn.push("\n"),Dn.push(this.svgToString(ur,Un));break;case 3:var dr=ur.nodeValue.replace(/^\s+|\s+$/g,"");""!==dr&&(sr=!0,Dn.push(String(XA(dr))));break;case 4:Dn.push("\n"),Dn.push(new Array(Un+1).join(" ")),Dn.push("<![CDATA["),Dn.push(ur.nodeValue),Dn.push("]]>");break;case 8:Dn.push("\n"),Dn.push(new Array(Un+1).join(" ")),Dn.push("\x3c!--"),Dn.push(ur.data),Dn.push("--\x3e")}}if(Un--,!sr){Dn.push("\n");for(var hr=0;hr<Un;hr++)Dn.push(" ")}Dn.push("</"),Dn.push(Tn.nodeName),Dn.push(">")}else Dn.push("/>")}return Dn.join("")},this.embedImage=function(Tn){return new Promise((function(Un,Qn){Sx(new Image).load((function(Dn,Hn,Gn){if("error"!==Hn){var zn=document.createElement("canvas");zn.width=this.width,zn.height=this.height,zn.getContext("2d").drawImage(this,0,0);try{var Vn=";svgedit_url="+encodeURIComponent(Tn);Vn=zn.toDataURL().replace(";base64",Vn+";base64"),Br[Tn]=Vn}catch(Un){Br[Tn]=!1}Fr=Tn,Un(Br[Tn])}else Qn(new Error("Error loading image: "+Gn.status+" "+Gn.statusText))})).attr("src",Tn)}))},this.setGoodImage=function(Tn){Fr=Tn},this.open=function(){},this.save=function(Tn){mr(),Tn&&Sx.extend(Er,Tn),Er.apply=!0;var Un=this.svgCanvasToString();gr("saved",Un)},this.rasterExport=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(Tn,Un,Qn){var Dn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn=arguments;return regeneratorRuntime.wrap((function _callee2$($n){for(;;)switch($n.prev=$n.next){case 0:return Dn=Jn.length>3&&void 0!==Jn[3]?Jn[3]:{},zn="image/"+(Gn="ICO"===Tn?"BMP":Tn||"PNG").toLowerCase(),Vn=getIssues(),Kn=Vn.issues,Wn=Vn.issueCodes,Xn=this.svgCanvasToString(),Sx("#export_canvas").length||Sx("<canvas>",{id:"export_canvas"}).hide().appendTo("body"),(Yn=Sx("#export_canvas")[0]).width=Hn.contentW,Yn.height=Hn.contentH,$n.next=11,Ub(Yn,Xn);case 11:return $n.abrupt("return",new Promise((function(Hn,Vn){var Jn,$n=Gn.toLowerCase(),Zn=Un?Yn.toDataURL("image/"+$n,Un):Yn.toDataURL("image/"+$n);function done(){var Gn={datauri:Zn,bloburl:Jn,svg:Xn,issues:Kn,issueCodes:Wn,type:Tn,mimeType:zn,quality:Un,exportWindowName:Qn};Dn.avoidEvent||gr("exported",Gn),Hn(Gn)}Yn.toBlob?Yn.toBlob((function(Tn){Jn=$A(Tn),done()}),zn,Un):(Jn=JA(Zn),done())})));case 12:case"end":return $n.stop()}}),_callee2,this)})));return function(Un,Qn,Dn){return Tn.apply(this,arguments)}}(),this.exportPDF=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(Tn){var Un,Qn,Dn,Hn,Gn,zn,Kn,Wn,Xn,Yn=arguments;return regeneratorRuntime.wrap((function _callee3$(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:return Un=Yn.length>1&&void 0!==Yn[1]?Yn[1]:Vd()?"save":void 0,Qn=ki(),Dn=Qn.w>Qn.h?"landscape":"portrait",Hn=g({orientation:Dn,unit:"pt",format:[Qn.w,Qn.h]}),Gn=Si(),Hn.setProperties({title:Gn}),zn=getIssues(),Kn=zn.issues,Wn=zn.issueCodes,Jn.next=10,Hn.svg(Vn,{x:0,y:0,width:Qn.w,height:Qn.h});case 10:return(Xn={issues:Kn,issueCodes:Wn,exportWindowName:Tn,outputType:Un=Un||"dataurlstring"}).output=Hn.output(Un,"save"===Un?Tn||"svg.pdf":void 0),gr("exportedPDF",Xn),Jn.abrupt("return",Xn);case 15:case"end":return Jn.stop()}}),_callee3)})));return function(Un){return Tn.apply(this,arguments)}}(),this.getSvgString=function(){return Er.apply=!1,this.svgCanvasToString()},this.randomizeIds=function(Tn){Vw(!(arguments.length>0&&!1===Tn),Wn())};var _i=this.uniquifyElems=function(Tn){var Un={},Qn=["filter","linearGradient","pattern","radialGradient","symbol","textPath","use"];for(var Dn in tf(Tn,(function(Tn){if(1===Tn.nodeType){Tn.id&&(Tn.id in Un||(Un[Tn.id]={elem:null,attrs:[],hrefs:[]}),Un[Tn.id].elem=Tn),Sx.each(xr,(function(Qn,Dn){var Hn=Tn.getAttributeNode(Dn);if(Hn){var Gn=nf(Hn.value),zn=Gn?Gn.substr(1):null;zn&&(zn in Un||(Un[zn]={elem:null,attrs:[],hrefs:[]}),Un[zn].attrs.push(Hn))}}));var Dn=rf(Tn);if(Dn&&Qn.includes(Tn.nodeName)){var Hn=Dn.substr(1);Hn&&(Hn in Un||(Un[Hn]={elem:null,attrs:[],hrefs:[]}),Un[Hn].hrefs.push(Tn))}}})),Un)if(Dn){var Hn=Un[Dn].elem;if(Hn){var Gn=Ar();Hn.id=Gn;for(var zn=Un[Dn].attrs,Vn=zn.length;Vn--;){var Kn=zn[Vn];Kn.ownerElement.setAttribute(Kn.name,"url(#"+Gn+")")}for(var Wn=Un[Dn].hrefs,Xn=Wn.length;Xn--;){var Yn=Wn[Xn];af(Yn,"#"+Gn)}}}},vi=this.setUseData=function(Tn){var Un=Sx(Tn);"use"!==Tn.tagName&&(Un=Un.find("use")),Un.each((function(){var Tn=rf(this).substr(1),Un=yf(Tn);Un&&(Sx(this).data("ref",Un),"symbol"!==Un.tagName&&"svg"!==Un.tagName||Sx(this).data("symbol",Un).data("ref",Un))}))},yi=this.convertGradients=function(Tn){var Un=Sx(Tn).find("linearGradient, radialGradient");!Un.length&&Hd()&&(Un=Sx(Tn).find("*").filter((function(){return this.tagName.includes("Gradient")}))),Un.each((function(){var Tn=this;if("userSpaceOnUse"===Sx(Tn).attr("gradientUnits")){var Un=Sx(Vn).find('[fill="url(#'+Tn.id+')"],[stroke="url(#'+Tn.id+')"]');if(!Un.length)return;var Qn=lf(Un[0]);if(!Qn)return;if("linearGradient"===Tn.tagName){var Dn=Sx(Tn).attr(["x1","y1","x2","y2"]),Hn=Tn.gradientTransform.baseVal;if(Hn&&Hn.numberOfItems>0){var Gn=MA(Hn).matrix,zn=PA(Dn.x1,Dn.y1,Gn),Kn=PA(Dn.x2,Dn.y2,Gn);Dn.x1=zn.x,Dn.y1=zn.y,Dn.x2=Kn.x,Dn.y2=Kn.y,Tn.removeAttribute("gradientTransform")}Sx(Tn).attr({x1:(Dn.x1-Qn.x)/Qn.width,y1:(Dn.y1-Qn.y)/Qn.height,x2:(Dn.x2-Qn.x)/Qn.width,y2:(Dn.y2-Qn.y)/Qn.height}),Tn.removeAttribute("gradientUnits")}}}))},wi=this.convertToGroup=function(Tn){Tn||(Tn=Zn[0]);var Un,Qn=Sx(Tn),Dn=new Lx;if(Qn.data("gsvg")){var Hn=Tn.firstChild,Kn=Sx(Hn).attr(["x","y"]);Sx(Tn.firstChild.firstChild).unwrap(),Sx(Tn).removeData("gsvg");var Wn=gA(Tn),Xn=zn.createSVGTransform();Xn.setTranslate(Kn.x,Kn.y),Wn.appendItem(Xn),yx(Tn),gr("selected",[Tn])}else if(Qn.data("symbol")){Tn=Qn.data("symbol"),Un=Qn.attr("transform");var Yn=Qn.attr(["x","y"]),Jn=Tn.getAttribute("viewBox");if(Jn){var $n=Jn.split(" ");Yn.x-=Number($n[0]),Yn.y-=Number($n[1])}Un+=" translate("+(Yn.x||0)+","+(Yn.y||0)+")";var er=Qn.prev();Dn.addSubCommand(new Ex(Qn[0],Qn[0].nextSibling,Qn[0].parentNode)),Qn.remove();var tr,nr=Sx(Vn).find("use:data(symbol)").length,rr=Gn.createElementNS(yd.SVG,"g"),ir=Tn.childNodes;for(tr=0;tr<ir.length;tr++)rr.append(ir[tr].cloneNode(!0));if(Gd()){var ar=Sx(of()).children("linearGradient,radialGradient,pattern").clone();Sx(rr).append(ar)}Un&&rr.setAttribute("transform",Un);var or=Tn.parentNode;if(_i(rr),Gd()&&Sx(of()).append(Sx(rr).find("linearGradient,radialGradient,pattern")),rr.id=Ar(),er.after(rr),or){if(!nr){var sr=Tn.nextSibling;Tn.remove(),Dn.addSubCommand(new Ex(Tn,sr,or))}Dn.addSubCommand(new Bx(rr))}vi(rr),Gd()?yi(of()):yi(rr),function walkTreePost(Tn,Un){if(Tn&&1===Tn.nodeType){for(var Qn=Tn.childNodes.length;Qn--;)tf(Tn.childNodes.item(Qn),Un);Un(Tn)}}(rr,(function(Tn){try{yx(Tn)}catch(Tn){console.log(Tn)}})),Sx(rr).find(wr).each((function(){this.id||(this.id=Ar())})),$r([rr]);var lr=Ti(rr,!0);lr&&Dn.addSubCommand(lr),ur(Dn)}else console.log("Unexpected element to ungroup:",Tn)};this.setSvgString=function(Tn,Un){try{var Dn=ef(Tn);if(Dn.firstElementChild&&Dn.firstElementChild.namespaceURI!==yd.SVG)return!1;this.prepareSvg(Dn);var Yn=new Lx("Change Source"),Jn=Vn.nextSibling;Vn.remove();var $n=Vn;Yn.addSubCommand(new Ex($n,Jn,zn)),Vn=Gn.adoptNode?Gn.adoptNode(Dn.documentElement):Gn.importNode(Dn.documentElement,!0),zn.append(Vn);var Zn=Sx(Vn);Hn.current_drawing_=new zw(Vn,Kn);var er=Wn().getNonce();er?gr("setnonce",er):gr("unsetnonce"),Zn.find("image").each((function(){var Tn=this;kf(Tn);var Un=rf(this);if(Un){if(Un.startsWith("data:")){var Qn=Un.match(/svgedit_url=(.*?);/);if(Qn){var Dn=decodeURIComponent(Qn[1]);Sx(new Image).load((function(){Tn.setAttributeNS(yd.XLINK,"xlink:href",Dn)})).attr("src",Dn)}}Hn.embedImage(Un)}})),Zn.find("svg").each((function(){if(!Sx(this).closest("defs").length){_i(this);var Tn=this.parentNode;1===Tn.childNodes.length&&"g"===Tn.nodeName?(Sx(Tn).data("gsvg",this),Tn.id=Tn.id||Ar()):Kr(this)}})),Gd()&&Zn.find("linearGradient, radialGradient, pattern").appendTo(of()),vi(Zn),yi(Zn[0]);var tr={id:"svgcontent",overflow:Qn.show_outside_canvas?"visible":"hidden"},nr=!1;if(Zn.attr("viewBox")){var rr=Zn.attr("viewBox").split(" ");tr.width=rr[2],tr.height=rr[3]}else Sx.each(["width","height"],(function(Tn,Un){var Qn=Zn.attr(Un)||"100%";"%"===String(Qn).substr(-1)?nr=!0:tr[Un]=CA(Un,Qn)}));if(Kw(),Zn.children().find(wr).each((function(){this.id||(this.id=Ar())})),nr){var ir=gf();tr.width=ir.width+ir.x,tr.height=ir.height+ir.y}tr.width<=0&&(tr.width=100),tr.height<=0&&(tr.height=100),Zn.attr(tr),this.contentW=tr.width,this.contentH=tr.height,Yn.addSubCommand(new Bx(Vn));var ar=Zn.attr(["width","height"]);Yn.addSubCommand(new Nx(zn,ar)),Xn=1,function resetListMap(){pA={}}(),mr(),function clearData(){rw={}}(),zn.append(pr.selectorParentGroup),Un||ur(Yn),gr("changed",[Vn])}catch(Tn){return console.log(Tn),!1}return!0},this.importSvgString=function(Tn){var Un,Qn,Dn;try{var Hn=encode64(Tn.length+Tn).substr(0,32),zn=!1;Nr[Hn]&&Sx(Nr[Hn].symbol).parents("#svgroot").length&&(zn=!0);var Kn,Xn=new Lx("Import Image");if(zn)Kn=Nr[Hn].symbol,Qn=Nr[Hn].xform;else{var Jn,$n=ef(Tn);this.prepareSvg($n),Jn=Gn.adoptNode?Gn.adoptNode($n.documentElement):Gn.importNode($n.documentElement,!0),_i(Jn);var Zn=CA("width",Jn.getAttribute("width")),er=CA("height",Jn.getAttribute("height")),tr=Jn.getAttribute("viewBox"),nr=tr?tr.split(" "):[0,0,Zn,er];for(Un=0;Un<4;++Un)nr[Un]=Number(nr[Un]);var rr=Number(Vn.getAttribute("height"));Qn="translate(0) "+(Qn=er>Zn?"scale("+rr/3/nr[3]+")":"scale("+rr/3/nr[2]+")")+" translate(0)",Kn=Gn.createElementNS(yd.SVG,"symbol");var ir=of();for(Gd()&&Sx(Jn).find("linearGradient, radialGradient, pattern").appendTo(ir);Jn.firstChild;){var ar=Jn.firstChild;Kn.append(ar)}var or,sr=_createForOfIteratorHelper(Jn.attributes);try{for(sr.s();!(or=sr.n()).done;){var lr=or.value;Kn.setAttribute(lr.nodeName,lr.value)}}catch(Tn){sr.e(Tn)}finally{sr.f()}Kn.id=Ar(),Nr[Hn]={symbol:Kn,xform:Qn},of().append(Kn),Xn.addSubCommand(new Bx(Kn))}(Dn=Gn.createElementNS(yd.SVG,"use")).id=Ar(),af(Dn,"#"+Kn.id),(Yn||Wn().getCurrentLayer()).append(Dn),Xn.addSubCommand(new Bx(Dn)),mr(),Dn.setAttribute("transform",Qn),yx(Dn),Sx(Dn).data("symbol",Kn).data("ref",Kn),_r([Dn]),ur(Xn),gr("changed",[Vn])}catch(Tn){return console.log(Tn),null}return Dn};var xi={identifyLayers:Kw,createLayer:qw,cloneLayer:Ww,deleteCurrentLayer:Xw,setCurrentLayer:Yw,renameCurrentLayer:Jw,setCurrentLayerPosition:$w,setLayerVisibility:Zw,moveSelectedToLayer:ex,mergeLayer:tx,mergeAllLayers:nx,leaveContext:rx,setContext:ix};Object.entries(xi).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Qn=Un[0],Dn=Un[1];Hn[Qn]=Dn})),function init(Tn){Gw=Tn}({pathActions:ar,getCurrentGroup:function getCurrentGroup(){return Yn},setCurrentGroup:function setCurrentGroup(Tn){Yn=Tn},getSelectedElements:ir,getSVGContent:rr,undoMgr:cr,elData:kr,getCurrentDrawing:Wn,clearSelection:mr,call:gr,addCommandToHistory:ur,changeSVGContent:function changeSVGContent(){gr("changed",[Vn])}}),this.clear=function(){ar.clear(),mr(),Hn.clearSvgContentElement(),Hn.current_drawing_=new zw(Vn),Hn.createLayer("Layer 1"),Hn.undoMgr.resetUndoStack(),pr.initGroup(),Dr=pr.getRubberBandBox(),gr("cleared")},this.linkControlPoints=ar.linkControlPoints,this.getContentElem=function(){return Vn},this.getRootElem=function(){return zn};var ki=this.getResolution=function(){return{w:Vn.getAttribute("width")/Xn,h:Vn.getAttribute("height")/Xn,zoom:Xn}};this.getSnapToGrid=function(){return Qn.gridSnapping},this.getVersion=function(){return"svgcanvas.js ($Rev$)"},this.setUiStrings=function(Tn){Object.assign(br,Tn.notification),Sx=jQueryPluginDBox(Sx,Tn.common),ew(Tn)},this.setConfig=function(Tn){Object.assign(Qn,Tn)},this.getTitle=function(Tn){if(Tn=Tn||Zn[0]){var Un,Qn=_createForOfIteratorHelper((Tn=Sx(Tn).data("gsvg")||Sx(Tn).data("symbol")||Tn).childNodes);try{for(Qn.s();!(Un=Qn.n()).done;){var Dn=Un.value;if("title"===Dn.nodeName)return Dn.textContent}}catch(Tn){Qn.e(Tn)}finally{Qn.f()}return""}},this.setGroupTitle=function(Tn){var Un=Zn[0];Un=Sx(Un).data("gsvg")||Un;var Qn,Dn=Sx(Un).children("title"),Hn=new Lx("Set Label");if(Tn.length)Dn.length?(Qn=Dn[0],Hn.addSubCommand(new Nx(Qn,{"#text":Qn.textContent})),Qn.textContent=Tn):((Qn=Gn.createElementNS(yd.SVG,"title")).textContent=Tn,Sx(Un).prepend(Qn),Hn.addSubCommand(new Bx(Qn)));else{var zn=Dn.nextSibling;Hn.addSubCommand(new Ex(Dn[0],zn,Un)),Dn.remove()}ur(Hn)};var Si=this.getDocumentTitle=function(){return Hn.getTitle(Vn)};this.setDocumentTitle=function(Tn){var Un,Qn=Vn.childNodes,Dn=!1,Hn="",zn=new Lx("Change Image Title"),Kn=_createForOfIteratorHelper(Qn);try{for(Kn.s();!(Un=Kn.n()).done;){var Wn=Un.value;if("title"===Wn.nodeName){Hn=(Dn=Wn).textContent;break}}}catch(Tn){Kn.e(Tn)}finally{Kn.f()}Dn||(Dn=Gn.createElementNS(yd.SVG,"title"),Vn.insertBefore(Dn,Vn.firstChild)),Tn.length?Dn.textContent=Tn:Dn.remove(),zn.addSubCommand(new Nx(Dn,{"#text":Hn})),ur(zn)},this.getEditorNS=function(Tn){return Tn&&Vn.setAttribute("xmlns:se",yd.SE),yd.SE},this.setResolution=function(Tn,Un){var Qn,Dn=ki(),Gn=Dn.w,zn=Dn.h;if("fit"===Tn){var Kn=gf();if(!Kn)return!1;Qn=new Lx("Fit Canvas to Content");var Wn=ff();_r(Wn);var Yn=[],Jn=[];Sx.each(Wn,(function(Tn,Un){Yn.push(-1*Kn.x),Jn.push(-1*Kn.y)}));var $n=Hn.moveSelectedElements(Yn,Jn,!0);Qn.addSubCommand($n),mr(),Tn=Math.round(Kn.width),Un=Math.round(Kn.height)}return Tn===Gn&&Un===zn||(Qn||(Qn=new Lx("Change Image Dimensions")),Tn=CA("width",Tn),Un=CA("height",Un),Vn.setAttribute("width",Tn),Vn.setAttribute("height",Un),this.contentW=Tn,this.contentH=Un,Qn.addSubCommand(new Nx(Vn,{width:Gn,height:zn})),Vn.setAttribute("viewBox",[0,0,Tn/Xn,Un/Xn].join(" ")),Qn.addSubCommand(new Nx(Vn,{viewBox:["0 0",Gn,zn].join(" ")})),ur(Qn),gr("changed",[Vn])),!0},this.getOffset=function(){return Sx(Vn).attr(["x","y"])},this.setBBoxZoom=function(Tn,Un,Qn){var Dn,Gn=.85,zn=function calcZoom(Tn){if(!Tn)return!1;var Dn=Math.round(Un/Tn.width*100*Gn)/100,zn=Math.round(Qn/Tn.height*100*Gn)/100,Vn=Math.min(Dn,zn);return Hn.setZoom(Vn),{zoom:Vn,bbox:Tn}};if("object"===_typeof(Tn)){if(0===(Dn=Tn).width||0===Dn.height){var Vn=Dn.zoom?Dn.zoom:Xn*Dn.factor;return Hn.setZoom(Vn),{zoom:Xn,bbox:Dn}}return zn(Dn)}switch(Tn){case"selection":if(!Zn[0])return;var Kn=Sx.map(Zn,(function(Tn){if(Tn)return Tn}));Dn=gf(Kn);break;case"canvas":var Yn=ki();Gn=.95,Dn={width:Yn.w,height:Yn.h,x:0,y:0};break;case"content":Dn=gf();break;case"layer":Dn=gf(ff(Wn().getCurrentLayer()));break;default:return}return zn(Dn)},this.setZoom=function(Tn){var Un=ki();Vn.setAttribute("viewBox","0 0 "+Un.w/Tn+" "+Un.h/Tn),Xn=Tn,Sx.each(Zn,(function(Tn,Un){Un&&pr.requestSelector(Un).resize()})),ar.zoomChange(),Gr("zoomChanged",Tn)},this.getMode=function(){return Rr},this.setMode=function(Tn){ar.clear(!0),gi.clear(),Qr=Zn[0]&&"text"===Zn[0].nodeName?Lr:$n,Rr=Tn},this.getColor=function(Tn){return Qr[Tn]},this.setColor=function(Tn,Un,Qn){$n[Tn]=Un,Qr[Tn+"_paint"]={type:"solidColor"};var Dn=[];function addNonG(Tn){"g"!==Tn.nodeName&&Dn.push(Tn)}for(var Hn=Zn.length;Hn--;){var Gn=Zn[Hn];Gn&&("g"===Gn.tagName?tf(Gn,addNonG):"fill"===Tn?"polyline"!==Gn.tagName&&"line"!==Gn.tagName&&Dn.push(Gn):Dn.push(Gn))}Dn.length>0&&(Qn?Ei(Tn,Un,Dn):(Ni(Tn,Un,Dn),gr("changed",Dn)))};var Ci=this.setGradient=function(Tn){if(Qr[Tn+"_paint"]&&"solidColor"!==Qr[Tn+"_paint"].type){var Un=Hn[Tn+"Grad"],Qn=Bi(Un),Dn=of();Qn?Un=Qn:(Un=Dn.appendChild(Gn.importNode(Un,!0))).id=Ar(),Hn.setColor(Tn,"url(#"+Un.id+")")}},Bi=function findDuplicateGradient(Tn){for(var Un=of(),Qn=Sx(Un).find("linearGradient, radialGradient"),Dn=Qn.length,Hn=["r","cx","cy","fx","fy"];Dn--;){var Gn=Qn[Dn];if("linearGradient"===Tn.tagName){if(Tn.getAttribute("x1")!==Gn.getAttribute("x1")||Tn.getAttribute("y1")!==Gn.getAttribute("y1")||Tn.getAttribute("x2")!==Gn.getAttribute("x2")||Tn.getAttribute("y2")!==Gn.getAttribute("y2"))continue}else if("continue"===function(){var Un=Sx(Tn).attr(Hn),Qn=Sx(Gn).attr(Hn),Dn=!1;if(Sx.each(Hn,(function(Tn,Hn){Un[Hn]!==Qn[Hn]&&(Dn=!0)})),Dn)return"continue"}())continue;var zn=Tn.getElementsByTagNameNS(yd.SVG,"stop"),Vn=Gn.getElementsByTagNameNS(yd.SVG,"stop");if(zn.length===Vn.length){for(var Kn=zn.length;Kn--;){var Wn=zn[Kn],Xn=Vn[Kn];if(Wn.getAttribute("offset")!==Xn.getAttribute("offset")||Wn.getAttribute("stop-opacity")!==Xn.getAttribute("stop-opacity")||Wn.getAttribute("stop-color")!==Xn.getAttribute("stop-color"))break}if(-1===Kn)return Gn}}return null};this.setPaint=function(Tn,Un){var Qn=new Sx.jGraduate.Paint(Un);switch(this.setPaintOpacity(Tn,Qn.alpha/100,!0),Qr[Tn+"_paint"]=Qn,Qn.type){case"solidColor":this.setColor(Tn,"none"!==Qn.solidColor?"#"+Qn.solidColor:"none");break;case"linearGradient":case"radialGradient":Hn[Tn+"Grad"]=Qn[Qn.type],Ci(Tn)}},this.setStrokePaint=function(Tn){this.setPaint("stroke",Tn)},this.setFillPaint=function(Tn){this.setPaint("fill",Tn)},this.getStrokeWidth=function(){return Qr.stroke_width},this.setStrokeWidth=function(Tn){if(0===Tn&&["line","path"].includes(Rr))Hn.setStrokeWidth(1);else{Qr.stroke_width=Tn;for(var Un=[],Qn=Zn.length;Qn--;){var Dn=Zn[Qn];Dn&&("g"===Dn.tagName?tf(Dn,addNonG):Un.push(Dn))}Un.length>0&&(Ni("stroke-width",Tn,Un),gr("changed",Zn))}function addNonG(Tn){"g"!==Tn.nodeName&&Un.push(Tn)}},this.setStrokeAttr=function(Tn,Un){$n[Tn.replace("-","_")]=Un;for(var Qn=[],Dn=Zn.length;Dn--;){var Hn=Zn[Dn];Hn&&("g"===Hn.tagName?tf(Hn,(function(Tn){"g"!==Tn.nodeName&&Qn.push(Tn)})):Qn.push(Hn))}Qn.length>0&&(Ni(Tn,Un,Qn),gr("changed",Zn))},this.getStyle=function(){return $n},this.getOpacity=vr,this.setOpacity=function(Tn){$n.opacity=Tn,Ni("opacity",Tn)},this.getFillOpacity=function(){return $n.fill_opacity},this.getStrokeOpacity=function(){return $n.stroke_opacity},this.setPaintOpacity=function(Tn,Un,Qn){$n[Tn+"_opacity"]=Un,Qn?Ei(Tn+"-opacity",Un):Ni(Tn+"-opacity",Un)},this.getPaintOpacity=function(Tn){return"fill"===Tn?this.getFillOpacity():this.getStrokeOpacity()},this.getBlur=function(Tn){var Un=0;if(Tn&&Tn.getAttribute("filter")){var Qn=yf(Tn.id+"_blur");Qn&&(Un=Qn.firstChild.getAttribute("stdDeviation"))}return Un},function(){var Tn=null,Un=null,Qn=!1;function finishChange(){var Qn=Hn.undoMgr.finishUndoableChange();Tn.addSubCommand(Qn),ur(Tn),Tn=null,Un=null}Hn.setBlurNoUndo=function(Tn){if(Un)if(0===Tn)Ei("filter",""),Qn=!0;else{var Dn=Zn[0];Qn&&Ei("filter","url(#"+Dn.id+"_blur)"),Hd()&&(Dn.removeAttribute("filter"),Dn.setAttribute("filter","url(#"+Dn.id+"_blur)")),Ei("stdDeviation",Tn,[Un.firstChild]),Hn.setBlurOffsets(Un,Tn)}else Hn.setBlur(Tn)},Hn.setBlurOffsets=function(Tn,Un){Un>3?bf(Tn,{x:"-50%",y:"-50%",width:"200%",height:"200%"}):Hd()||(Tn.removeAttribute("x"),Tn.removeAttribute("y"),Tn.removeAttribute("width"),Tn.removeAttribute("height"))},Hn.setBlur=function(Qn,Dn){if(Tn)finishChange();else{var Gn=Zn[0],zn=Gn.id;Un=yf(zn+"_blur"),Qn-=0;var Vn=new Lx;if(Un)0===Qn&&(Un=null);else{var Kn=tr({element:"feGaussianBlur",attr:{in:"SourceGraphic",stdDeviation:Qn}});(Un=tr({element:"filter",attr:{id:zn+"_blur"}})).append(Kn),of().append(Un),Vn.addSubCommand(new Bx(Un))}var Wn={filter:Gn.getAttribute("filter")};if(0===Qn)return Gn.removeAttribute("filter"),void Vn.addSubCommand(new Nx(Gn,Wn));Ni("filter","url(#"+zn+"_blur)"),Vn.addSubCommand(new Nx(Gn,Wn)),Hn.setBlurOffsets(Un,Qn),Tn=Vn,Hn.undoMgr.beginUndoableChange("stdDeviation",[Un?Un.firstChild:null]),Dn&&(Hn.setBlurNoUndo(Qn),finishChange())}}}(),this.getBold=function(){var Tn=Zn[0];return!(Sf(Tn)||"text"!==Tn.tagName||!Sf(Zn[1]))&&"bold"===Tn.getAttribute("font-weight")},this.setBold=function(Tn){var Un=Zn[0];!Sf(Un)&&"text"===Un.tagName&&Sf(Zn[1])&&Ni("font-weight",Tn?"bold":"normal"),Zn[0].textContent||gi.setCursor()},this.getItalic=function(){var Tn=Zn[0];return!(Sf(Tn)||"text"!==Tn.tagName||!Sf(Zn[1]))&&"italic"===Tn.getAttribute("font-style")},this.setItalic=function(Tn){var Un=Zn[0];!Sf(Un)&&"text"===Un.tagName&&Sf(Zn[1])&&Ni("font-style",Tn?"italic":"normal"),Zn[0].textContent||gi.setCursor()},this.getFontFamily=function(){return Lr.font_family},this.setFontFamily=function(Tn){Lr.font_family=Tn,Ni("font-family",Tn),Zn[0]&&!Zn[0].textContent&&gi.setCursor()},this.setFontColor=function(Tn){Lr.fill=Tn,Ni("fill",Tn)},this.getFontColor=function(){return Lr.fill},this.getFontSize=function(){return Lr.font_size},this.setFontSize=function(Tn){Lr.font_size=Tn,Ni("font-size",Tn),Zn[0].textContent||gi.setCursor()},this.getText=function(){var Tn=Zn[0];return Sf(Tn)?"":Tn.textContent},this.setTextContent=function(Tn){Ni("#text",Tn),gi.init(Tn),gi.setCursor()},this.setImageURL=function(Tn){var Un=Zn[0];if(Un){var Qn=Sx(Un).attr(["width","height"]),Dn=!Qn.width||!Qn.height,Hn=rf(Un);if(Hn!==Tn||Dn){var Gn=new Lx("Change Image URL");af(Un,Tn),Gn.addSubCommand(new Nx(Un,{"#href":Hn})),Sx(new Image).load((function(){var Tn=Sx(Un).attr(["width","height"]);Sx(Un).attr({width:this.width,height:this.height}),pr.requestSelector(Un).resize(),Gn.addSubCommand(new Nx(Un,Tn)),ur(Gn),gr("changed",[Un])})).attr("src",Tn)}}},this.setLinkURL=function(Tn){var Un=Zn[0];if(Un){if("a"!==Un.tagName){var Qn=Sx(Un).parents("a");if(!Qn.length)return;Un=Qn[0]}var Dn=rf(Un);if(Dn!==Tn){var Hn=new Lx("Change Link URL");af(Un,Tn),Hn.addSubCommand(new Nx(Un,{"#href":Dn})),ur(Hn)}}},this.setRectRadius=function(Tn){var Un=Zn[0];if(!Sf(Un)&&"rect"===Un.tagName){var Qn=Un.getAttribute("rx");Qn!==String(Tn)&&(Un.setAttribute("rx",Tn),Un.setAttribute("ry",Tn),ur(new Nx(Un,{rx:Qn,ry:Qn},"Radius")),gr("changed",[Un]))}},this.makeHyperlink=function(Tn){Hn.groupSelectedElements("a",Tn)},this.removeHyperlink=function(){Hn.ungroupSelectedElement()},this.setSegType=function(Tn){ar.setSegType(Tn)},this.convertToPath=function(Tn,Un){if(!Sf(Tn))return Un?hf(Tn,tr,ar):function convertToPath(Tn,Un,Qn,Dn,Hn,Gn,zn,Vn){var Kn=new zn.BatchCommand("Convert element to Path"),Wn=Qn({element:"path",attr:Un=jA.extend({},Un,df(Tn))}),Xn=Tn.getAttribute("transform");Xn&&Wn.setAttribute("transform",Xn);var Yn=Tn.id,Jn=Tn.parentNode;Tn.nextSibling?Tn.before(Wn):Jn.append(Wn);var $n=uf(Tn);if($n){if(Wn.setAttribute("d",$n),Xn){var Zn=gA(Wn);IA(Zn)&&Dn.resetOrientation(Wn)}var er=Tn.nextSibling;return Kn.addSubCommand(new zn.RemoveElementCommand(Tn,er,parent)),Kn.addSubCommand(new zn.InsertElementCommand(Wn)),Hn(),Tn.remove(),Wn.setAttribute("id",Yn),Wn.removeAttribute("visibility"),Gn([Wn],!0),Vn(Kn),Wn}return Wn.remove(),null}(Tn,{fill:$n.fill,"fill-opacity":$n.fill_opacity,stroke:$n.stroke,"stroke-width":$n.stroke_width,"stroke-dasharray":$n.stroke_dasharray,"stroke-linejoin":$n.stroke_linejoin,"stroke-linecap":$n.stroke_linecap,"stroke-opacity":$n.stroke_opacity,opacity:$n.opacity,visibility:"hidden"},tr,ar,mr,_r,Yb,ur);var Qn=Zn;Sx.each(Qn,(function(Tn,Un){Un&&Hn.convertToPath(Un)}))};var Ei=function changeSelectedAttributeNoUndo(Tn,Un,Qn){"pathedit"===Rr&&ar.moveNode(Tn,Un);for(var Dn=(Qn=Qn||Zn).length,Gn=["g","polyline","path"],Vn=function _loop(){var Vn=Qn[Dn];if(Sf(Vn))return"continue";if(("x"===Tn||"y"===Tn)&&Gn.includes(Vn.tagName)){var Kn=gf([Vn]),Wn="x"===Tn?Un-Kn.x:0,Yn="y"===Tn?Un-Kn.y:0;return Hn.moveSelectedElements(Wn*Xn,Yn*Xn,!0),"continue"}var Jn="#text"===Tn?Vn.textContent:Vn.getAttribute(Tn);if(Sf(Jn)&&(Jn=""),Jn!==String(Un)){"#text"===Tn?(Vn.textContent=Un,/rotate/.test(Vn.getAttribute("transform"))&&(Vn=Wr(Vn))):"#href"===Tn?af(Vn,Un):Vn.setAttribute(Tn,Un),"textedit"===Rr&&"#text"!==Tn&&Vn.textContent.length&&gi.toSelectMode(Vn),Gd()&&"text"===Vn.nodeName&&/rotate/.test(Vn.getAttribute("transform"))&&(String(Un).startsWith("url")||["font-size","font-family","x","y"].includes(Tn)&&Vn.textContent)&&(Vn=Wr(Vn)),Zn.includes(Vn)&&setTimeout((function(){Vn.parentNode&&pr.requestSelector(Vn).resize()}),0);var $n=_f(Vn);if(0!==$n&&"transform"!==Tn)for(var er=gA(Vn),tr=er.numberOfItems;tr--;){if(4===er.getItem(tr).type){er.removeItem(tr);var nr=lf(Vn),rr=PA(nr.x+nr.width/2,nr.y+nr.height/2,MA(er).matrix),ir=rr.x,ar=rr.y,or=zn.createSVGTransform();or.setRotate($n,ir,ar),er.insertItemBefore(or,tr);break}}}};Dn--;)Vn()},Ni=this.changeSelectedAttribute=function(Tn,Un,Qn){Qn=Qn||Zn,Hn.undoMgr.beginUndoableChange(Tn,Qn),Ei(Tn,Un,Qn);var Dn=Hn.undoMgr.finishUndoableChange();Dn.isEmpty()||ur(Dn)};this.deleteSelectedElements=function(){for(var Tn=new Lx("Delete Elements"),Un=Zn.length,Qn=[],Dn=0;Dn<Un;++Dn){var Hn=Zn[Dn];if(Sf(Hn))break;var Gn=Hn.parentNode,zn=Hn;pr.releaseSelector(zn),ww(zn.id),"a"===Gn.tagName&&1===Gn.childNodes.length&&(zn=Gn,Gn=Gn.parentNode);var Vn=zn.nextSibling;zn.remove();var Kn=zn;Qn.push(Hn),Tn.addSubCommand(new Ex(Kn,Vn,Gn))}Zn=[],Tn.isEmpty()||ur(Tn),gr("changed",Qn),mr()},this.cutSelectedElements=function(){Hn.copySelectedElements(),Hn.deleteSelectedElements()};var Li="svgedit_clipboard";function flashStorage(){var Tn=sessionStorage.getItem(Li);localStorage.setItem(Li,Tn),setTimeout((function(){localStorage.removeItem(Li)}),1)}window.addEventListener("storage",(function storageChange(Tn){Tn.newValue&&(Tn.key===Li+"_startup"?(localStorage.removeItem(Li+"_startup"),flashStorage()):Tn.key===Li&&sessionStorage.setItem(Li,Tn.newValue))}),!1),localStorage.setItem(Li+"_startup",Math.random()),this.copySelectedElements=function(){var Tn=JSON.stringify(Zn.map((function(Tn){return er(Tn)})));sessionStorage.setItem(Li,Tn),flashStorage();var Un=Sx("#cmenu_canvas");Un.enableContextMenuItems&&Un.enableContextMenuItems("#paste,#paste_in_place")},this.pasteElements=function(Tn,Un,Qn){var Dn=JSON.parse(sessionStorage.getItem(Li));if(Dn){var Gn=Dn.length;if(Gn){var zn=[],Vn=new Lx("Paste elements"),Kn={};for(Dn.forEach((function(Tn){return function checkIDs(Tn){Tn.attr&&Tn.attr.id&&(Kn[Tn.attr.id]=Ar(),Tn.attr.id=Kn[Tn.attr.id]),Tn.children&&Tn.children.forEach((function(Tn){return checkIDs(Tn)}))}(Tn)})),Gr("IDsUpdated",{elems:Dn,changes:Kn},!0).forEach((function(Tn){Tn&&"remove"in Tn&&Tn.remove.forEach((function(Tn){Dn=Dn.filter((function(Un){return Un.attr.id!==Tn}))}))}));Gn--;){var Wn=Dn[Gn];if(Wn){var Xn=tr(Wn);zn.push(Xn),Vn.addSubCommand(new Bx(Xn)),Cr(Xn)}}if($r(zn),"in_place"!==Tn){var Yn,Jn;Tn?"point"===Tn&&(Yn=Un,Jn=Qn):(Yn=Hr.x,Jn=Hr.y);var $n=gf(zn),Zn=Yn-($n.x+$n.width/2),er=Jn-($n.y+$n.height/2),nr=[],rr=[];Sx.each(zn,(function(Tn,Un){nr.push(Zn),rr.push(er)}));var ir=Hn.moveSelectedElements(nr,rr,!1);ir&&Vn.addSubCommand(ir)}ur(Vn),gr("changed",zn)}}},this.groupSelectedElements=function(Tn,Un){Tn||(Tn="g");var Qn,Dn="";switch(Tn){case"a":Dn="Make hyperlink",Qn=Un||"";break;default:Tn="g",Dn="Group Elements"}var Hn=new Lx(Dn),Gn=tr({element:Tn,attr:{id:Ar()}});"a"===Tn&&af(Gn,Qn),Hn.addSubCommand(new Bx(Gn));for(var zn=Zn.length;zn--;){var Vn=Zn[zn];if(!Sf(Vn)){"a"===Vn.parentNode.tagName&&1===Vn.parentNode.childNodes.length&&(Vn=Vn.parentNode);var Kn=Vn.nextSibling,Wn=Vn.parentNode;Gn.append(Vn),Hn.addSubCommand(new Cx(Vn,Kn,Wn))}}Hn.isEmpty()||ur(Hn),$r([Gn],!0)};var Ti=this.pushGroupProperties=function(Tn,Un){for(var Qn,Dn,Gn,Vn=Tn.childNodes,Kn=Vn.length,Xn=Tn.getAttribute("transform"),Yn=gA(Tn),Jn=MA(Yn).matrix,$n=new Lx("Push group properties"),Zn=_f(Tn),er=Sx(Tn).attr(["filter","opacity"]),tr=Wn(),nr=0;nr<Kn;nr++){var rr=Vn[nr];if(1===rr.nodeType){if(null!==er.opacity&&1!==er.opacity){var ir=Math.round((rr.getAttribute("opacity")||1)*er.opacity*100)/100;Ni("opacity",ir,[rr])}if(er.filter){var ar=this.getBlur(rr),or=ar;Dn||(Dn=this.getBlur(Tn)),ar?ar=Number(Dn)+Number(ar):0===ar&&(ar=Dn),or?Qn=vf(rr.getAttribute("filter")):Qn?(Qn=tr.copyElem(Qn),of().append(Qn)):Qn=vf(er.filter);var sr="feGaussianBlur"===Qn.firstChild.tagName?"blur":"filter";Qn.id=rr.id+"_"+sr,Ni("filter","url(#"+Qn.id+")",[rr]),ar&&(Ni("stdDeviation",ar,[Qn.firstChild]),Hn.setBlurOffsets(Qn,ar))}var lr=gA(rr);if(rr.tagName.includes("Gradient")&&(lr=null),lr&&"defs"!==rr.tagName&&Yn.numberOfItems){if(Zn&&1===Yn.numberOfItems){var cr=Yn.getItem(0).matrix,ur=zn.createSVGMatrix(),dr=_f(rr);dr&&(ur=lr.getItem(0).matrix);var hr=lf(rr),pr=MA(lr).matrix,Ar=PA(hr.x+hr.width/2,hr.y+hr.height/2,pr),fr=Zn+dr,gr=zn.createSVGTransform();gr.setRotate(fr,Ar.x,Ar.y);var mr=UA(cr,ur,gr.matrix.inverse());if(dr&&lr.removeItem(0),fr&&(lr.numberOfItems?lr.insertItemBefore(gr,0):lr.appendItem(gr)),mr.e||mr.f){var _r=zn.createSVGTransform();_r.setTranslate(mr.e,mr.f),lr.numberOfItems?lr.insertItemBefore(_r,0):lr.appendItem(_r)}}else{var vr=rr.getAttribute("transform");(Gn={}).transform=vr||"";var yr=zn.createSVGTransform(),br=MA(lr).matrix,wr=br.inverse(),xr=UA(wr,Jn,br);yr.setMatrix(xr),lr.appendItem(yr)}var kr=yx(rr);kr&&$n.addSubCommand(kr)}}}if(Xn&&((Gn={}).transform=Xn,Tn.setAttribute("transform",""),Tn.removeAttribute("transform"),$n.addSubCommand(new Nx(Tn,Gn))),Un&&!$n.isEmpty())return $n};this.ungroupSelectedElement=function(){var Tn=Zn[0];if(Tn)if(Sx(Tn).data("gsvg")||Sx(Tn).data("symbol"))wi(Tn);else{if("use"===Tn.tagName){var Un=yf(rf(Tn).substr(1));return Sx(Tn).data("symbol",Un).data("ref",Un),void wi(Tn)}var Qn=Sx(Tn).parents("a");if(Qn.length&&(Tn=Qn[0]),"g"===Tn.tagName||"a"===Tn.tagName){var Dn=new Lx("Ungroup Elements"),Hn=Ti(Tn,!0);Hn&&Dn.addSubCommand(Hn);for(var Gn=Tn.parentNode,zn=Tn.nextSibling,Vn=new Array(Tn.childNodes.length),Kn=0;Tn.firstChild;){var Wn=Tn.firstChild,Xn=Wn.nextSibling,Yn=Wn.parentNode;if("title"!==Wn.tagName)zn?zn.before(Wn):Tn.after(Wn),Vn[Kn++]=Wn,Dn.addSubCommand(new Cx(Wn,Xn,Yn));else{var Jn=Wn.nextSibling;Dn.addSubCommand(new Ex(Wn,Jn,Yn)),Wn.remove()}}mr();var $n=Tn.nextSibling;Tn.remove(),Dn.addSubCommand(new Ex(Tn,$n,Gn)),Dn.isEmpty()||ur(Dn),_r(Vn)}}},this.moveToTopSelectedElement=function(){var Tn=_slicedToArray(Zn,1)[0];if(!Sf(Tn)){var Un=Tn,Qn=Un.parentNode,Dn=Un.nextSibling;Dn!==(Un=Un.parentNode.appendChild(Un)).nextSibling&&(ur(new Cx(Un,Dn,Qn,"top")),gr("changed",[Un]))}},this.moveToBottomSelectedElement=function(){var Tn=_slicedToArray(Zn,1)[0];if(!Sf(Tn)){var Un=Tn,Qn=Un.parentNode,Dn=Un.nextSibling,Hn=Un.parentNode.firstChild;"title"===Hn.tagName&&(Hn=Hn.nextSibling),"defs"===Hn.tagName&&(Hn=Hn.nextSibling),Dn!==(Un=Un.parentNode.insertBefore(Un,Hn)).nextSibling&&(ur(new Cx(Un,Dn,Qn,"bottom")),gr("changed",[Un]))}},this.moveUpDownSelected=function(Tn){var Un=Zn[0];if(Un){var Qn,Dn;jr=[];var Hn=Sx(zr(gf([Un]))).toArray();if("Down"===Tn&&Hn.reverse(),Sx.each(Hn,(function(){return Dn?(Qn=this,!1):(this===Un&&(Dn=!0),!0)})),Qn){var Gn=Un,zn=Gn.parentNode,Vn=Gn.nextSibling;Sx(Qn)["Down"===Tn?"before":"after"](Gn),Vn!==Gn.nextSibling&&(ur(new Cx(Gn,Vn,zn,"Move "+Tn)),gr("changed",[Gn]))}}},this.moveSelectedElements=function(Tn,Un,Qn){Tn.constructor!==Array&&(Tn/=Xn,Un/=Xn),Qn=Qn||!0;for(var Dn=new Lx("position"),Hn=Zn.length;Hn--;){var Gn=Zn[Hn];if(!Sf(Gn)){var Vn=zn.createSVGTransform(),Kn=gA(Gn);Tn.constructor===Array?Vn.setTranslate(Tn[Hn],Un[Hn]):Vn.setTranslate(Tn,Un),Kn.numberOfItems?Kn.insertItemBefore(Vn,0):Kn.appendItem(Vn);var Wn=yx(Gn);Wn&&Dn.addSubCommand(Wn),pr.requestSelector(Gn).resize()}}if(!Dn.isEmpty())return Qn&&ur(Dn),gr("changed",Zn),Dn},this.cloneSelectedElements=function(Tn,Un){var Qn,Dn,Hn=new Lx("Clone Elements"),Gn=Zn.length;for(Zn.sort((function sortfunction(Tn,Un){return Sx(Un).index()-Sx(Tn).index()})),Qn=0;Qn<Gn&&(Dn=Zn[Qn],!Sf(Dn));++Qn);var zn=Zn.slice(0,Qn);this.clearSelection(!0);var Vn=Wn();for(Qn=zn.length;Qn--;)Dn=zn[Qn]=Vn.copyElem(zn[Qn]),(Yn||Vn.getCurrentLayer()).append(Dn),Hn.addSubCommand(new Bx(Dn));Hn.isEmpty()||(_r(zn.reverse()),this.moveSelectedElements(Tn,Un,!1),ur(Hn))},this.alignSelectedElements=function(Tn,Un){var Qn=[],Dn=Zn.length;if(Dn){for(var Gn=Number.MAX_VALUE,zn=Number.MIN_VALUE,Vn=Number.MAX_VALUE,Kn=Number.MIN_VALUE,Wn=Number.MIN_VALUE,Xn=Number.MIN_VALUE,Yn=0;Yn<Dn&&!Sf(Zn[Yn]);++Yn){var Jn=Zn[Yn];switch(Qn[Yn]=gf([Jn]),Un){case"smallest":(("l"===Tn||"c"===Tn||"r"===Tn)&&(Wn===Number.MIN_VALUE||Wn>Qn[Yn].width)||("t"===Tn||"m"===Tn||"b"===Tn)&&(Xn===Number.MIN_VALUE||Xn>Qn[Yn].height))&&(Gn=Qn[Yn].x,Vn=Qn[Yn].y,zn=Qn[Yn].x+Qn[Yn].width,Kn=Qn[Yn].y+Qn[Yn].height,Wn=Qn[Yn].width,Xn=Qn[Yn].height);break;case"largest":(("l"===Tn||"c"===Tn||"r"===Tn)&&(Wn===Number.MIN_VALUE||Wn<Qn[Yn].width)||("t"===Tn||"m"===Tn||"b"===Tn)&&(Xn===Number.MIN_VALUE||Xn<Qn[Yn].height))&&(Gn=Qn[Yn].x,Vn=Qn[Yn].y,zn=Qn[Yn].x+Qn[Yn].width,Kn=Qn[Yn].y+Qn[Yn].height,Wn=Qn[Yn].width,Xn=Qn[Yn].height);break;default:Qn[Yn].x<Gn&&(Gn=Qn[Yn].x),Qn[Yn].y<Vn&&(Vn=Qn[Yn].y),Qn[Yn].x+Qn[Yn].width>zn&&(zn=Qn[Yn].x+Qn[Yn].width),Qn[Yn].y+Qn[Yn].height>Kn&&(Kn=Qn[Yn].y+Qn[Yn].height)}}"page"===Un&&(Gn=0,Vn=0,zn=Hn.contentW,Kn=Hn.contentH);for(var $n=new Array(Dn),er=new Array(Dn),tr=0;tr<Dn&&!Sf(Zn[tr]);++tr){var nr=Qn[tr];switch($n[tr]=0,er[tr]=0,Tn){case"l":$n[tr]=Gn-nr.x;break;case"c":$n[tr]=(Gn+zn)/2-(nr.x+nr.width/2);break;case"r":$n[tr]=zn-(nr.x+nr.width);break;case"t":er[tr]=Vn-nr.y;break;case"m":er[tr]=(Vn+Kn)/2-(nr.y+nr.height/2);break;case"b":er[tr]=Kn-(nr.y+nr.height)}}this.moveSelectedElements($n,er)}},this.contentW=ki().w,this.contentH=ki().h,this.updateCanvas=function(Tn,Un){zn.setAttribute("width",Tn),zn.setAttribute("height",Un);var Qn=Sx("#canvasBackground")[0],Dn=Vn.getAttribute("x"),Hn=Vn.getAttribute("y"),Gn=(Tn-this.contentW*Xn)/2,Kn=(Un-this.contentH*Xn)/2;bf(Vn,{width:this.contentW*Xn,height:this.contentH*Xn,x:Gn,y:Kn,viewBox:"0 0 "+this.contentW+" "+this.contentH}),bf(Qn,{width:Vn.getAttribute("width"),height:Vn.getAttribute("height"),x:Gn,y:Kn});var Wn=yf("background_image");return Wn&&bf(Wn,{width:"100%",height:"100%"}),pr.selectorParentGroup.setAttribute("transform","translate("+Gn+","+Kn+")"),Gr("canvasUpdated",{new_x:Gn,new_y:Kn,old_x:Dn,old_y:Hn,d_x:Gn-Dn,d_y:Kn-Hn}),{x:Gn,y:Kn,old_x:Dn,old_y:Hn,d_x:Gn-Dn,d_y:Kn-Hn}},this.setBackground=function(Tn,Un){var Qn=yf("canvasBackground"),Dn=Sx(Qn).find("rect")[0],Hn=yf("background_image"),zn=yf("background_pattern");if(Dn.setAttribute("fill","chessboard"===Tn?"#fff":Tn),"chessboard"===Tn){if(!zn){zn=Gn.createElementNS(yd.SVG,"foreignObject"),bf(zn,{id:"background_pattern",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"});var Vn=document.createElement("div");bf(Vn,{style:"pointer-events:none;width:100%;height:100%;background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"}),zn.appendChild(Vn),Qn.append(zn)}}else zn&&zn.remove();Un?(Hn||(Hn=Gn.createElementNS(yd.SVG,"image"),bf(Hn,{id:"background_image",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"})),af(Hn,Un),Qn.append(Hn)):Hn&&Hn.remove()},this.cycleElement=function(Tn){var Un,Qn=Zn[0],Dn=!1,Hn=ff(Yn||Wn().getCurrentLayer());if(Hn.length){if(Sf(Qn))Dn=Hn[Un=Tn?Hn.length-1:0];else for(var Gn=Hn.length;Gn--;)if(Hn[Gn]===Qn){(Un=Tn?Gn-1:Gn+1)>=Hn.length?Un=0:Un<0&&(Un=Hn.length-1),Dn=Hn[Un];break}$r([Dn],!0),gr("selected",Zn)}},this.clear(),this.getPrivateMethods=function(){return{addCommandToHistory:ur,BatchCommand:Lx,ChangeElementCommand:Nx,decode64:decode64,dropXMLInternalSubset:WA,encode64:encode64,ffClone:Wr,findDefs:of,findDuplicateGradient:Bi,getElem:yf,getPathBBox:sf,getTypeMap:wA,getUrlFromAttr:nf,identifyLayers:Kw,InsertElementCommand:Bx,isChrome:Vd,isIdentity:FA,isIE:zd,logMatrix:Yr,MoveElementCommand:Cx,NS:yd,preventClickDefault:kf,RemoveElementCommand:Ex,SVGEditTransformList:AA,text2xml:ef,transformBox:RA,transformPoint:PA,walkTree:tf}}};var Ux=Boolean(window.opera),Ix=function fixIDs(Tn,Un,Qn){var Dn,Hn=Tn.find("defs");if(!Hn.length)return Tn;Dn=Ux?Hn.find("*").filter((function(){return Boolean(this.id)})):Hn.find("[id]");var Gn=Tn[0].getElementsByTagName("*"),zn=Gn.length;return Dn.each((function(Tn){var Qn=this.id,Dn="x"+Qn+Un+Tn;this.id=Dn;var Hn="url(#"+Qn+")",Vn="url(#"+Dn+")";for(Tn=0;Tn<zn;Tn++){var Kn=Gn[Tn];Kn.getAttribute("fill")===Hn&&Kn.setAttribute("fill",Vn),Kn.getAttribute("stroke")===Hn&&Kn.setAttribute("stroke",Vn),Kn.getAttribute("filter")===Hn&&Kn.setAttribute("filter",Vn)}})),Tn};
|
||
/**
|
||
* @file jGraduate 0.4
|
||
*
|
||
* jQuery Plugin for a gradient picker
|
||
*
|
||
* @module jGraduate
|
||
* @copyright 2010 Jeff Schiller {@link http://blog.codedread.com/}, 2010 Alexis Deveria {@link http://a.deveria.com/}
|
||
*
|
||
* @license Apache-2.0
|
||
* @example
|
||
* // The Paint object is described below.
|
||
* $.jGraduate.Paint(); // constructs a 'none' color
|
||
* @example $.jGraduate.Paint({copy: o}); // creates a copy of the paint o
|
||
* @example $.jGraduate.Paint({hex: '#rrggbb'}); // creates a solid color paint with hex = "#rrggbb"
|
||
* @example $.jGraduate.Paint({linearGradient: o, a: 50}); // creates a linear gradient paint with opacity=0.5
|
||
* @example $.jGraduate.Paint({radialGradient: o, a: 7}); // creates a radial gradient paint with opacity=0.07
|
||
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
|
||
*/
|
||
var Rx="http://www.w3.org/2000/svg",Mx="http://www.w3.org/1999/xlink";
|
||
/**
|
||
* @file jPicker (Adapted from version 1.1.6)
|
||
*
|
||
* jQuery Plugin for Photoshop style color picker
|
||
*
|
||
* @module jPicker
|
||
* @copyright (c) 2010 Christopher T. Tillman
|
||
* Digital Magic Productions, Inc. ({@link http://www.digitalmagicpro.com/})
|
||
* FREE to use, alter, copy, sell, and especially ENHANCE
|
||
* @license MIT
|
||
*
|
||
* Painstakingly ported from John Dyers' excellent work on his own color picker based on the Prototype framework.
|
||
*
|
||
* John Dyers' website: {@link http://johndyer.name}
|
||
* Color Picker page: {@link http://johndyer.name/photoshop-like-javascript-color-picker/}
|
||
*/
|
||
function toFixedNumeric(Tn,Un){return void 0===Un&&(Un=0),Math.round(Tn*Math.pow(10,Un))/Math.pow(10,Un)}window.console||(window.console={log:function log(Tn){},dir:function dir(Tn){}});var Qx=function isNullish(Tn){return null==Tn};function __variableDynamicImportRuntime0__(Tn){switch(Tn){case"./locale/lang.af.js":return Promise.resolve().then((function(){return vk}));case"./locale/lang.ar.js":return Promise.resolve().then((function(){return yk}));case"./locale/lang.az.js":return Promise.resolve().then((function(){return wk}));case"./locale/lang.be.js":return Promise.resolve().then((function(){return xk}));case"./locale/lang.bg.js":return Promise.resolve().then((function(){return kk}));case"./locale/lang.ca.js":return Promise.resolve().then((function(){return Sk}));case"./locale/lang.cs.js":return Promise.resolve().then((function(){return Ck}));case"./locale/lang.cy.js":return Promise.resolve().then((function(){return Bk}));case"./locale/lang.da.js":return Promise.resolve().then((function(){return Ek}));case"./locale/lang.de.js":return Promise.resolve().then((function(){return Nk}));case"./locale/lang.el.js":return Promise.resolve().then((function(){return Lk}));case"./locale/lang.en.js":return Promise.resolve().then((function(){return Tk}));case"./locale/lang.es.js":return Promise.resolve().then((function(){return Pk}));case"./locale/lang.et.js":return Promise.resolve().then((function(){return Fk}));case"./locale/lang.fa.js":return Promise.resolve().then((function(){return Uk}));case"./locale/lang.fi.js":return Promise.resolve().then((function(){return Ik}));case"./locale/lang.fr.js":return Promise.resolve().then((function(){return Rk}));case"./locale/lang.fy.js":return Promise.resolve().then((function(){return Mk}));case"./locale/lang.ga.js":return Promise.resolve().then((function(){return Qk}));case"./locale/lang.gl.js":return Promise.resolve().then((function(){return Ok}));case"./locale/lang.he.js":return Promise.resolve().then((function(){return Dk}));case"./locale/lang.hi.js":return Promise.resolve().then((function(){return jk}));case"./locale/lang.hr.js":return Promise.resolve().then((function(){return Hk}));case"./locale/lang.hu.js":return Promise.resolve().then((function(){return Gk}));case"./locale/lang.hy.js":return Promise.resolve().then((function(){return zk}));case"./locale/lang.id.js":return Promise.resolve().then((function(){return Vk}));case"./locale/lang.is.js":return Promise.resolve().then((function(){return Kk}));case"./locale/lang.it.js":return Promise.resolve().then((function(){return qk}));case"./locale/lang.ja.js":return Promise.resolve().then((function(){return Wk}));case"./locale/lang.ko.js":return Promise.resolve().then((function(){return Xk}));case"./locale/lang.lt.js":return Promise.resolve().then((function(){return Yk}));case"./locale/lang.lv.js":return Promise.resolve().then((function(){return Jk}));case"./locale/lang.mk.js":return Promise.resolve().then((function(){return $k}));case"./locale/lang.ms.js":return Promise.resolve().then((function(){return Zk}));case"./locale/lang.mt.js":return Promise.resolve().then((function(){return eS}));case"./locale/lang.nl.js":return Promise.resolve().then((function(){return tS}));case"./locale/lang.no.js":return Promise.resolve().then((function(){return nS}));case"./locale/lang.pl.js":return Promise.resolve().then((function(){return rS}));case"./locale/lang.pt-BR.js":return Promise.resolve().then((function(){return iS}));case"./locale/lang.pt-PT.js":return Promise.resolve().then((function(){return aS}));case"./locale/lang.ro.js":return Promise.resolve().then((function(){return oS}));case"./locale/lang.ru.js":return Promise.resolve().then((function(){return sS}));case"./locale/lang.sk.js":return Promise.resolve().then((function(){return lS}));case"./locale/lang.sl.js":return Promise.resolve().then((function(){return cS}));case"./locale/lang.sq.js":return Promise.resolve().then((function(){return uS}));case"./locale/lang.sr.js":return Promise.resolve().then((function(){return dS}));case"./locale/lang.sv.js":return Promise.resolve().then((function(){return hS}));case"./locale/lang.sw.js":return Promise.resolve().then((function(){return pS}));case"./locale/lang.test.js":return Promise.resolve().then((function(){return AS}));case"./locale/lang.th.js":return Promise.resolve().then((function(){return fS}));case"./locale/lang.tl.js":return Promise.resolve().then((function(){return gS}));case"./locale/lang.tr.js":return Promise.resolve().then((function(){return mS}));case"./locale/lang.uk.js":return Promise.resolve().then((function(){return _S}));case"./locale/lang.vi.js":return Promise.resolve().then((function(){return vS}));case"./locale/lang.yi.js":return Promise.resolve().then((function(){return yS}));case"./locale/lang.zh-CN.js":return Promise.resolve().then((function(){return bS}));case"./locale/lang.zh-HK.js":return Promise.resolve().then((function(){return wS}));case"./locale/lang.zh-TW.js":return Promise.resolve().then((function(){return xS}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+Tn))}}
|
||
/**
|
||
* Localizing script for SVG-edit UI.
|
||
* @module locale
|
||
* @license MIT
|
||
*
|
||
* @copyright 2010 Narendra Sisodya
|
||
* @copyright 2010 Alexis Deveria
|
||
*
|
||
*/_export({target:"String",proto:!0,forced:stringHtmlForced("bold")},{bold:function bold(){return createHtml(this,"b","","")}});var Ox,Dx=jQuery,jx=function setStrings(Tn,Un,Qn){var Dn=Dx("#svg_editor").parent();Object.entries(Un).forEach((function(Un){var Hn=_slicedToArray(Un,2),Gn=Hn[0],zn=Hn[1];if(zn){Qn&&(Gn="#"+Gn);var Vn=Dn.find(Gn);if(Vn.length){var Kn=Vn[0];switch(Tn){case"aria-label":Kn.setAttribute("aria-label",zn);break;case"content":_toConsumableArray(Kn.childNodes).some((function(Tn){return!(3!==Tn.nodeType||!Tn.textContent.trim())&&(Tn.textContent=zn,!0)}));break;case"title":Kn.title=zn}}else console.log("Missing element for localization: "+Gn)}else console.log(Gn)}))},Hx=function readLang(Tn){var Un=Tn.tools,Qn=Tn.properties,Dn=Tn.config,Hn=Tn.layers,Gn=Tn.common,zn=Tn.ui;jx("content",{curve_segments:Qn.curve_segments,fitToContent:Un.fitToContent,fit_to_all:Un.fit_to_all,fit_to_canvas:Un.fit_to_canvas,fit_to_layer_content:Un.fit_to_layer_content,fit_to_sel:Un.fit_to_sel,icon_large:Dn.icon_large,icon_medium:Dn.icon_medium,icon_small:Dn.icon_small,icon_xlarge:Dn.icon_xlarge,image_opt_embed:Dn.image_opt_embed,image_opt_ref:Dn.image_opt_ref,includedImages:Dn.included_images,largest_object:Un.largest_object,layersLabel:Hn.layers,page:Un.page,relativeToLabel:Un.relativeTo,selLayerLabel:Hn.move_elems_to,selectedPredefined:Dn.select_predefined,selected_objects:Un.selected_objects,smallest_object:Un.smallest_object,straight_segments:Qn.straight_segments,svginfo_bg_url:Dn.editor_img_url+":",svginfo_bg_note:Dn.editor_bg_note,svginfo_change_background:Dn.background,svginfo_dim:Dn.doc_dims,svginfo_editor_prefs:Dn.editor_prefs,svginfo_height:Gn.height,svginfo_icons:Dn.icon_size,svginfo_image_props:Dn.image_props,svginfo_lang:Dn.language,svginfo_title:Dn.doc_title,svginfo_width:Gn.width,tool_docprops_cancel:Gn.cancel,tool_docprops_save:Gn.ok,tool_source_cancel:Gn.cancel,tool_source_save:Gn.ok,tool_prefs_cancel:Gn.cancel,tool_prefs_save:Gn.ok,sidepanel_handle:Hn.layers.split("").join(" "),tool_clear:Un.new_doc,tool_docprops:Un.docprops,tool_export:Un.export_img,tool_import:Un.import_doc,tool_open:Un.open_doc,tool_save:Un.save_doc,tool_editor_prefs:Dn.editor_prefs,tool_editor_homepage:Un.editor_homepage,svginfo_units_rulers:Dn.units_and_rulers,svginfo_rulers_onoff:Dn.show_rulers,svginfo_unit:Dn.base_unit,svginfo_grid_settings:Dn.grid,svginfo_snap_onoff:Dn.snapping_onoff,svginfo_snap_step:Dn.snapping_stepsize,svginfo_grid_color:Dn.grid_color},!0);var Vn={};["cut","copy","paste","paste_in_place","delete","group","ungroup","move_front","move_up","move_down","move_back"].forEach((function(Tn){Vn['#cmenu_canvas a[href="#'+Tn+'"]']=Un[Tn]})),["dupe","merge_down","merge_all"].forEach((function(Tn){Vn['#cmenu_layers a[href="#'+Tn+'"]']=Hn[Tn]})),Vn['#cmenu_layers a[href="#delete"]']=Hn.del,jx("content",Vn);var Kn={};return Object.entries({tool_blur:Qn.blur,tool_position:Un.align_to_page,tool_font_family:Qn.font_family,zoom_panel:zn.zoom_level,stroke_linejoin:Qn.linejoin_miter,stroke_linecap:Qn.linecap_butt,tool_opacity:Qn.opacity}).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Qn=Un[0],Dn=Un[1];Kn["#"+Qn+" button"]=Dn})),Object.entries({group_opacity:Qn.opacity,zoom:zn.zoom_level}).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Qn=Un[0],Dn=Un[1];Kn["#"+Qn]=Dn})),jx("aria-label",Kn),jx("title",{align_relative_to:Un.align_relative_to,circle_cx:Qn.circle_cx,circle_cy:Qn.circle_cy,circle_r:Qn.circle_r,cornerRadiusLabel:Qn.corner_radius,ellipse_cx:Qn.ellipse_cx,ellipse_cy:Qn.ellipse_cy,ellipse_rx:Qn.ellipse_rx,ellipse_ry:Qn.ellipse_ry,fill_color:Qn.fill_color,font_family:Qn.font_family,idLabel:Qn.id,image_height:Qn.image_height,image_url:Qn.image_url,image_width:Qn.image_width,layer_delete:Hn.del,layer_down:Hn.move_down,layer_new:Hn.new,layer_rename:Hn.rename,layer_moreopts:Gn.more_opts,layer_up:Hn.move_up,line_x1:Qn.line_x1,line_x2:Qn.line_x2,line_y1:Qn.line_y1,line_y2:Qn.line_y2,linecap_butt:Qn.linecap_butt,linecap_round:Qn.linecap_round,linecap_square:Qn.linecap_square,linejoin_bevel:Qn.linejoin_bevel,linejoin_miter:Qn.linejoin_miter,linejoin_round:Qn.linejoin_round,main_icon:Un.main_menu,palette:zn.palette_info,zoom_panel:zn.zoom_level,path_node_x:Qn.node_x,path_node_y:Qn.node_y,rect_height_tool:Qn.rect_height,rect_width_tool:Qn.rect_width,seg_type:Qn.seg_type,selLayerNames:Hn.move_selected,selected_x:Qn.pos_x,selected_y:Qn.pos_y,stroke_color:Qn.stroke_color,stroke_style:Qn.stroke_style,stroke_width:Qn.stroke_width,svginfo_title:Dn.doc_title,text:Qn.text_contents,toggle_stroke_tools:zn.toggle_stroke_tools,tool_add_subpath:Un.add_subpath,tool_alignbottom:Un.align_bottom,tool_aligncenter:Un.align_center,tool_alignleft:Un.align_left,tool_alignmiddle:Un.align_middle,tool_alignright:Un.align_right,tool_aligntop:Un.align_top,tool_angle:Qn.angle,tool_blur:Qn.blur,tool_bold:Qn.bold,tool_circle:Un.mode_circle,tool_clone:Un.clone,tool_clone_multi:Un.clone,tool_delete:Un.del,tool_delete_multi:Un.del,tool_ellipse:Un.mode_ellipse,tool_fhellipse:Un.mode_fhellipse,tool_fhpath:Un.mode_fhpath,tool_fhrect:Un.mode_fhrect,tool_font_size:Qn.font_size,tool_group_elements:Un.group_elements,tool_make_link:Un.make_link,tool_link_url:Un.set_link_url,tool_image:Un.mode_image,tool_italic:Qn.italic,tool_line:Un.mode_line,tool_move_bottom:Un.move_bottom,tool_move_top:Un.move_top,tool_node_clone:Un.node_clone,tool_node_delete:Un.node_delete,tool_node_link:Un.node_link,tool_opacity:Qn.opacity,tool_openclose_path:Un.openclose_path,tool_path:Un.mode_path,tool_position:Un.align_to_page,tool_rect:Un.mode_rect,tool_redo:Un.redo,tool_reorient:Un.reorient_path,tool_select:Un.mode_select,tool_source:Un.source_save,tool_square:Un.mode_square,tool_text:Un.mode_text,tool_topath:Un.to_path,tool_undo:Un.undo,tool_ungroup:Un.ungroup,tool_wireframe:Un.wireframe_mode,tool_zoom:Un.mode_zoom,url_notice:Un.no_embed},!0),{langParam:Ox,langData:Tn}},Gx=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn,Un){var Qn;return regeneratorRuntime.wrap((function _callee$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Tn?Ox=Tn:navigator.userLanguage?Ox=navigator.userLanguage:navigator.language&&(Ox=navigator.language),console.log("Lang: "+Ox),Un.includes(Ox)||"test"===Ox||(Ox="en"),Dn.next=5,__variableDynamicImportRuntime0__("./locale/lang.".concat(Ox,".js"));case 5:return Qn=Dn.sent,Dn.abrupt("return",Hx(Qn.default));case 7:case"end":return Dn.stop()}}),_callee)})));return function putLocale(Un,Qn){return Tn.apply(this,arguments)}}(),zx=function $q(Tn){return document.querySelector(Tn)},Vx={},Kx=[function jQueryPluginJSHotkeys(Tn){function a(Un){if("string"==typeof Un.data){var Qn=Un.handler,Dn=Un.data.toLowerCase().split(" ");Un.handler=function(Un){if(this===Un.target||27===Un.which||!/textarea|select/i.test(Un.target.nodeName)&&"text"!==Un.target.type){var Hn="keypress"!==Un.type&&Tn.hotkeys.specialKeys[Un.which],Gn=String.fromCharCode(Un.which).toLowerCase(),zn="",Vn={};Un.altKey&&"alt"!==Hn&&(zn+="alt+"),Un.ctrlKey&&"ctrl"!==Hn&&(zn+="ctrl+"),Un.metaKey&&!Un.ctrlKey&&"meta"!==Hn&&(zn+="meta+"),Un.shiftKey&&"shift"!==Hn&&(zn+="shift+"),Hn?Vn[zn+Hn]=!0:(Vn[zn+Gn]=!0,Vn[zn+Tn.hotkeys.shiftNums[Gn]]=!0,"shift+"===zn&&(Vn[Tn.hotkeys.shiftNums[Gn]]=!0));for(var Kn=0,Wn=Dn.length;Kn<Wn;Kn++)if(Vn[Dn[Kn]])return Qn.apply(this,arguments)}}}}return Tn.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta",219:"[",221:"]"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}},Tn.each(["keydown","keyup","keypress"],(function(){Tn.event.special[this]={add:a}})),Tn},function jQueryPluginSVGIcons(Tn){var Un={};return Tn.svgIcons=function(Qn){var Dn,Hn,Gn,zn,Vn,Kn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Wn="http://www.w3.org/2000/svg",Xn="http://www.w3.org/1999/xlink",Yn=Kn.w||24,Jn=Kn.h||24,$n=!1,Zn=!1,er=0,tr="data:image/svg+xml;charset=utf-8;base64,";if(Kn.svgz){zn=Tn('<object data="'+Qn+'" type=image/svg+xml>').appendTo("body").hide();try{Hn=zn[0].contentDocument,zn.load(getIcons),getIcons(0,!0)}catch(Tn){useFallback()}}else{var nr=new DOMParser;Tn.ajax({url:Qn,dataType:"string",success:function success(Un){Un?(Hn=nr.parseFromString(Un,"text/xml"),Tn((function(){getIcons("ajax")}))):Tn(useFallback)},error:function error(Un){window.opera?Tn((function(){useFallback()})):Un.responseText?((Hn=nr.parseFromString(Un.responseText,"text/xml")).childNodes.length||Tn(useFallback),Tn((function(){getIcons("ajax")}))):Tn(useFallback)}})}function getIcons(Un,Qn){if("ajax"!==Un){if(Zn)return;var Vn=(Hn=zn[0].contentDocument)&&Hn.getElementById("svg_eof");if(!(Vn||Qn&&Vn))return void(++er<50?setTimeout(getIcons,20):(useFallback(),Zn=!0));Zn=!0}if(Dn=Tn(Hn.firstChild).children(),Kn.no_img)setTimeout((function(){$n||makeIcons()}),500);else{var Wn=tr+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNzUiIGhlaWdodD0iMjc1Ij48L3N2Zz4%3D";Gn=Tn(new Image).attr({src:Wn,width:0,height:0,alt:Kn.testIconAlt||"icon"}).appendTo("body").load((function(){makeIcons(!0)})).error((function(){makeIcons()}))}}function setIcon(Tn,Un,Qn,Dn){if(Ux&&Un.css("visibility","hidden"),Kn.replace){Dn&&Un.attr("id",Qn);var Hn=Tn.attr("class");if(Hn&&Un.attr("class","svg_icon "+Hn),!Tn.alt){var Gn="icon";Kn.alts&&(Gn=Kn.alts[Qn]||Gn),Un.attr("alt",Gn)}Tn.replaceWith(Un)}else Tn.append(Un);Ux&&setTimeout((function(){Un.removeAttr("style")}),1)}function addIcon(Tn,Qn){void 0!==Kn.id_match&&!1===Kn.id_match||setIcon(Vn,Tn,Qn,!0),Un[Qn]=Tn}function makeIcons(){var Qn=arguments.length>0&&void 0!==arguments[0]&&arguments[0],Hn=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!$n){var Zn;if(Kn.no_img&&(Qn=!1),Qn&&(Zn=Tn(document.createElement("div"))).hide().appendTo("body"),Hn){var er=Kn.fallback_path||"";Tn.each(Hn,(function(Un,Qn){Vn=Tn("#"+Un);var Dn="icon";Kn.alts&&(Dn=Kn.alts[Un]||Dn),addIcon(Tn(new Image).attr({class:"svg_icon",src:er+Qn,width:Yn,height:Jn,alt:Dn}),Un)}))}else for(var nr=Dn.length,rr=0;rr<nr;rr++){var ir=Dn[rr],ar=ir.id;if("svg_eof"===ar)break;Vn=Tn("#"+ar);var or=document.createElementNS(Wn,"svg");or.setAttribute("viewBox",[0,0,Yn,Jn].join(" "));var sr=ir.getElementsByTagNameNS(Wn,"svg")[0],lr=sr.getAttribute("width"),cr=sr.getAttribute("height");sr.removeAttribute("width"),sr.removeAttribute("height");var ur=sr.getAttribute("viewBox");ur||sr.setAttribute("viewBox",[0,0,lr,cr].join(" ")),or.setAttribute("xmlns",Wn),or.setAttribute("width",Yn),or.setAttribute("height",Jn),or.setAttribute("xmlns:xlink",Xn),or.setAttribute("class","svg_icon"),Ux||(sr=sr.cloneNode(!0)),or.append(sr);var dr=void 0;if(Qn){Zn.empty().append(or);var hr=tr+encode64(unescape(encodeURIComponent((new XMLSerializer).serializeToString(or)))),pr="icon";Kn.alts&&(pr=Kn.alts[ar]||pr),dr=Tn(new Image).attr({class:"svg_icon",src:hr,alt:pr})}else dr=Ix(Tn(or),rr);addIcon(dr,ar)}Kn.placement&&Tn.each(Kn.placement,(function(Dn,Hn){Un[Hn]&&Tn(Dn).each((function(Dn){var Gn=Un[Hn].clone();Dn>0&&!Qn&&(Gn=Ix(Gn,Dn)),setIcon(Tn(this),Gn,Hn)}))})),Hn||(Qn&&Zn.remove(),zn&&zn.remove(),Gn&&Gn.remove()),Kn.resize&&Tn.resizeSvgIcons(Kn.resize),$n=!0,Kn.callback&&Kn.callback(Un)}}function useFallback(){if(Qn.includes(".svgz")){var Un=Qn.replace(".svgz",".svg");window.console&&console.log(".svgz failed, trying with .svg"),Tn.svgIcons(Un,Kn)}else Kn.fallback&&makeIcons(!1,Kn.fallback)}},Tn.getSvgIcon=function(Tn,Qn){var Dn=Un[Tn];return Qn&&Dn&&(Dn=Ix(Dn,0).clone(!0)),Dn},Tn.resizeSvgIcons=function(Un){var Qn=!Tn(".svg_icon:first").length;Tn.each(Un,(function(Un,Dn){var Hn=Array.isArray(Dn),Gn=Hn?Dn[0]:Dn,zn=Hn?Dn[1]:Dn;Qn&&(Un=Un.replace(/\.svg_icon/g,"svg")),Tn(Un).each((function(){this.setAttribute("width",Gn),this.setAttribute("height",zn),window.opera&&window.widget&&(this.parentNode.style.width=Gn+"px",this.parentNode.style.height=zn+"px")}))}))},Tn},function jQueryPluginJGraduate(Tn){Tn.jGraduate={Paint:function Paint(Tn){_classCallCheck(this,Paint);var Un=Tn||{};if(this.alpha=isNaN(Un.alpha)?100:Un.alpha,Un.copy)switch(this.type=Un.copy.type,this.alpha=Un.copy.alpha,this.solidColor=null,this.linearGradient=null,this.radialGradient=null,this.type){case"none":break;case"solidColor":this.solidColor=Un.copy.solidColor;break;case"linearGradient":this.linearGradient=Un.copy.linearGradient.cloneNode(!0);break;case"radialGradient":this.radialGradient=Un.copy.radialGradient.cloneNode(!0)}else Un.linearGradient?(this.type="linearGradient",this.solidColor=null,this.radialGradient=null,this.linearGradient=Un.linearGradient.cloneNode(!0)):Un.radialGradient?(this.type="radialGradient",this.solidColor=null,this.linearGradient=null,this.radialGradient=Un.radialGradient.cloneNode(!0)):Un.solidColor?(this.type="solidColor",this.solidColor=Un.solidColor):(this.type="none",this.solidColor=null,this.linearGradient=null,this.radialGradient=null)}},Tn.fn.jGraduateDefaults={paint:new Tn.jGraduate.Paint,window:{pickerTitle:"Drag markers to pick a paint"},images:{clientPath:"images/"},newstop:"inverse"};var Un=navigator.userAgent.includes("Gecko/");function mkElem(Tn,Qn,Dn){var Hn=document.createElementNS(Rx,Tn);return function setAttrs(Tn,Qn){Un?Object.entries(Qn).forEach((function(Un){var Qn=_slicedToArray(Un,2),Dn=Qn[0],Hn=Qn[1];Tn.setAttribute(Dn,Hn)})):Object.entries(Qn).forEach((function(Un){var Qn=_slicedToArray(Un,2),Dn=Qn[0],Hn=Qn[1],Gn=Tn[Dn];Gn&&"SVGLength"===Gn.constructor?Gn.baseVal.value=Hn:Tn.setAttribute(Dn,Hn)}))}(Hn,Qn),Dn&&Dn.append(Hn),Hn}return Tn.fn.jGraduate=function(Un,Qn,Dn){return this.each((function(){var Hn=Tn(this),Gn=Tn.extend(!0,{},Tn.fn.jGraduateDefaults,Un||{}),zn=Hn.attr("id"),Vn="#"+Hn.attr("id")+" ";if(Vn){var Kn=function okClicked(){switch(Hn.paint.type){case"radialGradient":Hn.paint.linearGradient=null;break;case"linearGradient":Hn.paint.radialGradient=null;break;case"solidColor":Hn.paint.radialGradient=Hn.paint.linearGradient=null}"function"==typeof Hn.okCallback&&Hn.okCallback(Hn.paint),Hn.hide()},Wn=function cancelClicked(){"function"==typeof Hn.cancelCallback&&Hn.cancelCallback(),Hn.hide()};Tn.extend(!0,Hn,{paint:new Tn.jGraduate.Paint({copy:Gn.paint}),okCallback:"function"==typeof Qn?Qn:null,cancelCallback:"function"==typeof Dn?Dn:null});var Xn=null,Yn=Tn(window);"none"===Hn.paint.type&&(Hn.paint=new Tn.jGraduate.Paint({solidColor:"ffffff"})),Hn.addClass("jGraduate_Picker"),Hn.html('<ul class="jGraduate_tabs"><li class="jGraduate_tab_color jGraduate_tab_current" data-type="col">Solid Color</li><li class="jGraduate_tab_lingrad" data-type="lg">Linear Gradient</li><li class="jGraduate_tab_radgrad" data-type="rg">Radial Gradient</li></ul><div class="jGraduate_colPick"></div><div class="jGraduate_gradPick"></div><div class="jGraduate_LightBox"></div><div id="'+zn+'_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>');var Jn=Tn(Vn+"> .jGraduate_colPick"),$n=Tn(Vn+"> .jGraduate_gradPick");$n.html('<div id="'+zn+'_jGraduate_Swatch" class="jGraduate_Swatch"><h2 class="jGraduate_Title">'+Gn.window.pickerTitle+'</h2><div id="'+zn+'_jGraduate_GradContainer" class="jGraduate_GradContainer"></div><div id="'+zn+'_jGraduate_StopSlider" class="jGraduate_StopSlider"></div></div><div class="jGraduate_Form jGraduate_Points jGraduate_lg_field"><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Begin Point</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="'+zn+'_jGraduate_x1" size="3" title="Enter starting x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+zn+'_jGraduate_y1" size="3" title="Enter starting y value between 0.0 and 1.0"/></div></div><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">End Point</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="'+zn+'_jGraduate_x2" size="3" title="Enter ending x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+zn+'_jGraduate_y2" size="3" title="Enter ending y value between 0.0 and 1.0"/></div></div></div><div class="jGraduate_Form jGraduate_Points jGraduate_rg_field"><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Center Point</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="'+zn+'_jGraduate_cx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+zn+'_jGraduate_cy" size="3" title="Enter y value between 0.0 and 1.0"/></div></div><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Focal Point</label><div class="jGraduate_Form_Section"><label>Match center: <input type="checkbox" checked="checked" id="'+zn+'_jGraduate_match_ctr"/></label><br/><label>x:</label><input type="text" id="'+zn+'_jGraduate_fx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+zn+'_jGraduate_fy" size="3" title="Enter y value between 0.0 and 1.0"/></div></div></div><div class="jGraduate_StopSection jGraduate_SpreadMethod"><label class="jGraduate_Form_Heading">Spread method</label><div class="jGraduate_Form_Section"><select class="jGraduate_spreadMethod"><option value=pad selected>Pad</option><option value=reflect>Reflect</option><option value=repeat>Repeat</option></select></div></div><div class="jGraduate_Form"><div class="jGraduate_Slider jGraduate_RadiusField jGraduate_rg_field"><label class="prelabel">Radius:</label><div id="'+zn+'_jGraduate_Radius" class="jGraduate_SliderBar jGraduate_Radius" title="Click to set radius"><img id="'+zn+'_jGraduate_RadiusArrows" class="jGraduate_RadiusArrows" src="'+Gn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+zn+'_jGraduate_RadiusInput" size="3" value="100"/>%</label></div><div class="jGraduate_Slider jGraduate_EllipField jGraduate_rg_field"><label class="prelabel">Ellip:</label><div id="'+zn+'_jGraduate_Ellip" class="jGraduate_SliderBar jGraduate_Ellip" title="Click to set Ellip"><img id="'+zn+'_jGraduate_EllipArrows" class="jGraduate_EllipArrows" src="'+Gn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+zn+'_jGraduate_EllipInput" size="3" value="0"/>%</label></div><div class="jGraduate_Slider jGraduate_AngleField jGraduate_rg_field"><label class="prelabel">Angle:</label><div id="'+zn+'_jGraduate_Angle" class="jGraduate_SliderBar jGraduate_Angle" title="Click to set Angle"><img id="'+zn+'_jGraduate_AngleArrows" class="jGraduate_AngleArrows" src="'+Gn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+zn+'_jGraduate_AngleInput" size="3" value="0"/>deg</label></div><div class="jGraduate_Slider jGraduate_OpacField"><label class="prelabel">Opac:</label><div id="'+zn+'_jGraduate_Opac" class="jGraduate_SliderBar jGraduate_Opac" title="Click to set Opac"><img id="'+zn+'_jGraduate_OpacArrows" class="jGraduate_OpacArrows" src="'+Gn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+zn+'_jGraduate_OpacInput" size="3" value="100"/>%</label></div></div><div class="jGraduate_OkCancel"><input type="button" id="'+zn+'_jGraduate_Ok" class="jGraduate_Ok" value="OK"/><input type="button" id="'+zn+'_jGraduate_Cancel" class="jGraduate_Cancel" value="Cancel"/></div>');var Zn=256,er={},tr=145;Tn(".jGraduate_SliderBar").width(tr);var nr,rr=Tn("#"+zn+"_jGraduate_GradContainer")[0],ir=mkElem("svg",{id:zn+"_jgraduate_svg",width:Zn,height:Zn,xmlns:Rx},rr),ar=Hn.paint.type,or=Hn.paint[ar],sr=or,lr=Hn.paint.alpha,cr="solidColor"===ar;switch(ar){case"solidColor":case"linearGradient":if(cr||(sr.id=zn+"_lg_jgraduate_grad",or=sr=ir.appendChild(sr)),mkElem("radialGradient",{id:zn+"_rg_jgraduate_grad"},ir),"linearGradient"===ar)break;case"radialGradient":cr||(sr.id=zn+"_rg_jgraduate_grad",or=sr=ir.appendChild(sr)),mkElem("linearGradient",{id:zn+"_lg_jgraduate_grad"},ir)}if(cr){or=sr=Tn("#"+zn+"_lg_jgraduate_grad")[0],mkStop(0,"#"+(Xn=Hn.paint[ar]),1);var ur=_typeof(Gn.newstop);if("string"===ur)switch(Gn.newstop){case"same":mkStop(1,"#"+Xn,1);break;case"inverse":for(var dr="",hr=0;hr<6;hr+=2){var pr=(255-Number.parseInt(Xn.substr(hr,2),16)).toString(16);pr.length<2&&(pr=0+pr),dr+=pr}mkStop(1,"#"+dr,1);break;case"white":mkStop(1,"#ffffff",1);break;case"black":mkStop(1,"#000000",1)}else if("object"===ur){var Ar="opac"in Gn.newstop?Gn.newstop.opac:1;mkStop(1,Gn.newstop.color||"#"+Xn,Ar)}}var fr,gr=Number.parseFloat(or.getAttribute("x1")||0),mr=Number.parseFloat(or.getAttribute("y1")||0),_r=Number.parseFloat(or.getAttribute("x2")||1),vr=Number.parseFloat(or.getAttribute("y2")||0),yr=Number.parseFloat(or.getAttribute("cx")||.5),br=Number.parseFloat(or.getAttribute("cy")||.5),wr=Number.parseFloat(or.getAttribute("fx")||yr),xr=Number.parseFloat(or.getAttribute("fy")||br),kr=mkElem("rect",{id:zn+"_jgraduate_rect",x:0,y:0,width:256,height:256,fill:"url(#"+zn+"_jgraduate_grad)","fill-opacity":lr/100},ir),Sr=Tn("<div/>").attr({class:"grad_coord jGraduate_lg_field",title:"Begin Stop"}).text(1).css({top:mr*Zn,left:gr*Zn}).data("coord","start").appendTo(rr),Cr=Sr.clone().text(2).css({top:vr*Zn,left:_r*Zn}).attr("title","End stop").data("coord","end").appendTo(rr),Br=Tn("<div/>").attr({class:"grad_coord jGraduate_rg_field",title:"Center stop"}).text("C").css({top:br*Zn,left:yr*Zn}).data("coord","center").appendTo(rr),Er=Br.clone().text("F").css({top:xr*Zn,left:wr*Zn,display:"none"}).attr("title","Focus point").data("coord","focus").appendTo(rr);Er[0].id=zn+"_jGraduate_focusCoord",Tn.each(["x1","y1","x2","y2","cx","cy","fx","fy"],(function(Un,Qn){var Dn=isNaN(Qn[1]),Hn=sr.getAttribute(Qn);Hn||(Hn=Dn?"0.5":"x2"===Qn?"1.0":"0.0"),er[Qn]=Tn("#"+zn+"_jGraduate_"+Qn).val(Hn).change((function(){isNaN(Number.parseFloat(this.value))||this.value<0?this.value=0:this.value>1&&(this.value=1),("f"!==Qn[0]||fr)&&(Dn&&"radialGradient"===ar||!Dn&&"linearGradient"===ar)&&sr.setAttribute(Qn,this.value);var Tn=Dn?"c"===Qn[0]?Br:Er:"1"===Qn[1]?Sr:Cr,Un=Qn.includes("x")?"left":"top";Tn.css(Un,this.value*Zn)})).change()}));var Nr,Lr,Tr,Pr,Fr=Tn("#"+zn+"_jGraduate_StopSlider"),Ur=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),Ir=1,Rr=1,Mr=0,Qr=yr,Or=br,Dr=mkElem("svg",{width:"100%",height:45},Fr[0]),jr=mkElem("pattern",{width:16,height:16,patternUnits:"userSpaceOnUse",id:"jGraduate_trans"},Dr),Hr=mkElem("image",{width:16,height:16},jr),Gr=Gn.images.clientPath+"map-opacity.png";Hr.setAttributeNS(Mx,"xlink:href",Gr),Tn(Dr).click((function(Tn){if(Pr=Fr.offset(),"path"!==Tn.target.tagName){var Un=Tn.pageX-Pr.left-8;mkStop((Un=Un<10?10:Un>266?266:Un)/Zn,0,0,!0),Tn.stopPropagation()}})),Tn(Dr).mouseover((function(){Dr.append(Ur)})),nr=mkElem("g",{},Dr),mkElem("line",{x1:10,y1:15,x2:266,y2:15,"stroke-width":2,stroke:"#000"},Dr);var zr,Vr,Kr,qr,Wr=$n.find(".jGraduate_spreadMethod").change((function(){sr.setAttribute("spreadMethod",Tn(this).val())})),Xr=null,Yr=function onCoordDrag(Tn){var Un=Tn.pageX-zr.left,Qn=Tn.pageY-zr.top;Un=Un<0?0:Un>Zn?Zn:Un,Qn=Qn<0?0:Qn>Zn?Zn:Qn,Xr.css("left",Un).css("top",Qn);var Dn=Un/256,Hn=Qn/256,Gn=Xr.data("coord"),zn=sr;switch(Gn){case"start":er.x1.val(Dn),er.y1.val(Hn),zn.setAttribute("x1",Dn),zn.setAttribute("y1",Hn);break;case"end":er.x2.val(Dn),er.y2.val(Hn),zn.setAttribute("x2",Dn),zn.setAttribute("y2",Hn);break;case"center":er.cx.val(Dn),er.cy.val(Hn),zn.setAttribute("cx",Dn),zn.setAttribute("cy",Hn),Qr=Dn,Or=Hn,xform();break;case"focus":er.fx.val(Dn),er.fy.val(Hn),zn.setAttribute("fx",Dn),zn.setAttribute("fy",Hn),xform()}Tn.preventDefault()},Jr=function onCoordUp(){Xr=null,Yn.unbind("mousemove",Yr).unbind("mouseup",onCoordUp)},$r=(Nr=sr.getElementsByTagNameNS(Rx,"stop")).length;if($r<2){for(;$r<2;)sr.append(document.createElementNS(Rx,"stop")),++$r;Nr=sr.getElementsByTagNameNS(Rx,"stop")}for(var Zr=0;Zr<$r;Zr++)mkStop(0,0,0,0,Nr[Zr]);if(Wr.val(sr.getAttribute("spreadMethod")||"pad"),fr=!1,kr.setAttribute("fill-opacity",lr/100),Tn("#"+zn+" div.grad_coord").mousedown((function(Un){Un.preventDefault(),Xr=Tn(this),zr=Xr.parent().offset(),Yn.mousemove(Yr).mouseup(Jr)})),Tn("#"+zn+"_jGraduate_Ok").bind("click",(function(){Hn.paint.type=ar,Hn.paint[ar]=sr.cloneNode(!0),Hn.paint.solidColor=null,Kn()})),Tn("#"+zn+"_jGraduate_Cancel").bind("click",(function(Tn){Wn()})),"radialGradient"===ar&&(fr?Er.show():(Er.hide(),er.fx.val(""),er.fy.val(""))),Tn("#"+zn+"_jGraduate_match_ctr")[0].checked=!fr,Tn("#"+zn+"_jGraduate_match_ctr").change((function(){fr=!this.checked,Er.toggle(fr),er.fx.val(""),er.fy.val("");var Tn=sr;if(fr){var Un=Vr||.5,Qn=Kr||.5;Tn.setAttribute("fx",Un),Tn.setAttribute("fy",Qn),er.fx.val(Un),er.fy.val(Qn)}else Vr=Tn.getAttribute("fx"),Kr=Tn.getAttribute("fy"),Tn.removeAttribute("fx"),Tn.removeAttribute("fy")})),($r=(Nr=sr.getElementsByTagNameNS(Rx,"stop")).length)<2){for(;$r<2;)sr.append(document.createElementNS(Rx,"stop")),++$r;Nr=sr.getElementsByTagNameNS(Rx,"stop")}var ei=0,ti=0;if("radialGradient"===ar){var ni=sr.gradientTransform.baseVal;if(2===ni.numberOfItems){var ri=ni.getItem(0),ii=ni.getItem(1);if(2===ri.type&&3===ii.type){var ai=ii.matrix;1!==ai.a?ei=Math.round(100*-(1-ai.a)):1!==ai.d&&(ei=Math.round(100*(1-ai.d)))}}else if(3===ni.numberOfItems){var oi=ni.getItem(0),si=ni.getItem(1),li=ni.getItem(2);if(4===oi.type&&2===si.type&&3===li.type){ti=Math.round(oi.angle);var ui=li.matrix;1!==ui.a?ei=Math.round(100*-(1-ui.a)):1!==ui.d&&(ei=Math.round(100*(1-ui.d)))}}}var di={radius:{handle:"#"+zn+"_jGraduate_RadiusArrows",input:"#"+zn+"_jGraduate_RadiusInput",val:100*(sr.getAttribute("r")||.5)},opacity:{handle:"#"+zn+"_jGraduate_OpacArrows",input:"#"+zn+"_jGraduate_OpacInput",val:Hn.paint.alpha||100},ellip:{handle:"#"+zn+"_jGraduate_EllipArrows",input:"#"+zn+"_jGraduate_EllipInput",val:ei},angle:{handle:"#"+zn+"_jGraduate_AngleArrows",input:"#"+zn+"_jGraduate_AngleInput",val:ti}};Tn.each(di,(function(Un,Qn){var Dn=Tn(Qn.handle);Dn.mousedown((function(Hn){var Gn=Dn.parent();qr={type:Un,elem:Dn,input:Tn(Qn.input),parent:Gn,offset:Gn.offset()},Yn.mousemove(hi).mouseup(pi),Hn.preventDefault()})),Tn(Qn.input).val(Qn.val).change((function(){var Tn="radialGradient"===ar,Qn=Number(this.value),Gn=0;switch(Un){case"radius":Tn&&sr.setAttribute("r",Qn/100),Gn=Math.pow(Qn/100,.4)/2*tr;break;case"opacity":Hn.paint.alpha=Qn,kr.setAttribute("fill-opacity",Qn/100),Gn=1.45*Qn;break;case"ellip":if(Ir=Rr=1,0===Qn){Gn=72.5;break}Qn>99.5&&(Qn=99.5),Qn>0?Rr=1-Qn/100:Ir=-Qn/100-1,Gn=tr*((Qn+100)/2)/100,Tn&&xform();break;case"angle":Gn=(Mr=Qn)/180,Gn+=.5,Gn*=tr,Tn&&xform()}Gn>tr?Gn=tr:Gn<0&&(Gn=0),Dn.css({"margin-left":Gn-5})})).change()}));for(var hi=function dragSlider(Tn){!function setSlider(Tn){var Un=qr.offset.left,Qn=qr.parent,Dn=Tn.pageX-Un-Number.parseInt(Qn.css("border-left-width"));Dn>tr&&(Dn=tr),Dn<=0&&(Dn=0);var Gn=Dn-5;switch(Dn/=tr,qr.type){case"radius":(Dn=Math.pow(2*Dn,2.5))>.98&&Dn<1.02&&(Dn=1),Dn<=.01&&(Dn=.01),sr.setAttribute("r",Dn);break;case"opacity":Hn.paint.alpha=Number.parseInt(100*Dn),kr.setAttribute("fill-opacity",Dn);break;case"ellip":Ir=1,Rr=1,Dn<.5?Ir=(Dn/=.5)<=0?.01:Dn:Dn>.5&&(Rr=(Dn=2-(Dn/=.5))<=0?.01:Dn),xform(),Rr===1+(Dn-=1)&&(Dn=Math.abs(Dn));break;case"angle":Dn-=.5,Mr=Dn*=180,xform(),Dn/=100}qr.elem.css({"margin-left":Gn}),Dn=Math.round(100*Dn),qr.input.val(Dn)}(Tn),Tn.preventDefault()},pi=function stopSlider(Tn){Yn.unbind("mousemove",hi).unbind("mouseup",stopSlider),qr=null},Ai=(255*Hn.paint.alpha/100).toString(16);Ai.length<2;)Ai="0"+Ai;Ai=Ai.split(".")[0],Xn="none"===Hn.paint.solidColor?"":Hn.paint.solidColor+Ai,cr||(Xn=Nr[0].getAttribute("stop-color")),Tn.extend(Tn.fn.jPicker.defaults.window,{alphaSupport:!0,effects:{type:"show",speed:0}}),Jn.jPicker({window:{title:Gn.window.pickerTitle},images:{clientPath:Gn.images.clientPath},color:{active:Xn,alphaSupport:!0}},(function(Tn){Hn.paint.type="solidColor",Hn.paint.alpha=Tn.val("ahex")?Math.round(Tn.val("a")/255*100):100,Hn.paint.solidColor=Tn.val("hex")?Tn.val("hex"):"none",Hn.paint.radialGradient=null,Kn()}),null,(function(){Wn()}));var fi,gi=Tn(Vn+" .jGraduate_tabs li");switch(gi.click((function(){gi.removeClass("jGraduate_tab_current"),Tn(this).addClass("jGraduate_tab_current"),Tn(Vn+" > div").hide();var Un=Tn(this).attr("data-type");if(Tn(Vn+" .jGraduate_gradPick").show(),"rg"===Un||"lg"===Un){Tn(".jGraduate_"+Un+"_field").show(),Tn(".jGraduate_"+("lg"===Un?"rg":"lg")+"_field").hide(),Tn("#"+zn+"_jgraduate_rect")[0].setAttribute("fill","url(#"+zn+"_"+Un+"_jgraduate_grad)"),ar="lg"===Un?"linearGradient":"radialGradient",Tn("#"+zn+"_jGraduate_OpacInput").val(Hn.paint.alpha).change();var Qn=Tn("#"+zn+"_"+Un+"_jgraduate_grad")[0];if(sr!==Qn){var Dn=Tn(sr).find("stop");Tn(Qn).empty().append(Dn),sr=Qn;var Gn=Wr.val();sr.setAttribute("spreadMethod",Gn)}fr="rg"===Un&&null!==sr.getAttribute("fx")&&!(yr===wr&&br===xr),Tn("#"+zn+"_jGraduate_focusCoord").toggle(fr),fr&&(Tn("#"+zn+"_jGraduate_match_ctr")[0].checked=!1)}else Tn(Vn+" .jGraduate_gradPick").hide(),Tn(Vn+" .jGraduate_colPick").show()})),Tn(Vn+" > div").hide(),gi.removeClass("jGraduate_tab_current"),Hn.paint.type){case"linearGradient":fi=Tn(Vn+" .jGraduate_tab_lingrad");break;case"radialGradient":fi=Tn(Vn+" .jGraduate_tab_radgrad");break;default:fi=Tn(Vn+" .jGraduate_tab_color")}Hn.show(),setTimeout((function(){fi.addClass("jGraduate_tab_current").click()}),10)}else Tn.alert("Container element must have an id attribute to maintain unique id strings for sub-elements.");function mkStop(Un,Qn,Dn,Hn,Vn){var Kn=Vn||mkElem("stop",{"stop-color":Qn,"stop-opacity":Dn,offset:Un},sr);Vn?(Qn=Vn.getAttribute("stop-color"),Dn=Vn.getAttribute("stop-opacity"),Un=Vn.getAttribute("offset")):sr.append(Kn),null===Dn&&(Dn=1);var Wn="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",Xn=mkElem("path",{d:Wn,fill:"url(#jGraduate_trans)",transform:"translate("+(10+Un*Zn)+", 26)"},nr),Jn=mkElem("path",{d:Wn,fill:Qn,"fill-opacity":Dn,transform:"translate("+(10+Un*Zn)+", 26)",stroke:"#000","stroke-width":1.5},nr);return Tn(Jn).mousedown((function(Tn){return selectStop(this),Tr=Lr,Yn.mousemove(dragColor).mouseup(remDrags),Pr=Fr.offset(),Tn.preventDefault(),!1})).data("stop",Kn).data("bg",Xn).dblclick((function(){Tn("div.jGraduate_LightBox").show();for(var Un=this,Dn=Number(Kn.getAttribute("stop-opacity"))||1,Hn=Kn.getAttribute("stop-color")||1,Vn=(255*Number.parseFloat(Dn)).toString(16);Vn.length<2;)Vn="0"+Vn;Qn=Hn.substr(1)+Vn,Tn("#"+zn+"_jGraduate_stopPicker").css({left:100,bottom:15}).jPicker({window:{title:"Pick the start color and opacity for the gradient"},images:{clientPath:Gn.images.clientPath},color:{active:Qn,alphaSupport:!0}},(function(Qn,Gn){Hn=Qn.val("hex")?"#"+Qn.val("hex"):"none",Dn=null!==Qn.val("a")?Qn.val("a")/256:1,Un.setAttribute("fill",Hn),Un.setAttribute("fill-opacity",Dn),Kn.setAttribute("stop-color",Hn),Kn.setAttribute("stop-opacity",Dn),Tn("div.jGraduate_LightBox").hide(),Tn("#"+zn+"_jGraduate_stopPicker").hide()}),null,(function(){Tn("div.jGraduate_LightBox").hide(),Tn("#"+zn+"_jGraduate_stopPicker").hide()}))})),Tn(sr).find("stop").each((function(){var Dn=Tn(this);if(Number(this.getAttribute("offset"))>Un){if(!Qn){var Hn=this.getAttribute("stop-color"),Gn=this.getAttribute("stop-opacity");Kn.setAttribute("stop-color",Hn),Jn.setAttribute("fill",Hn),Kn.setAttribute("stop-opacity",null===Gn?1:Gn),Jn.setAttribute("fill-opacity",null===Gn?1:Gn)}return Dn.before(Kn),!1}return!0})),Hn&&selectStop(Jn),Kn}function selectStop(Tn){Lr&&Lr.setAttribute("stroke","#000"),Tn.setAttribute("stroke","blue"),Lr=Tn}function remDrags(){Yn.unbind("mousemove",dragColor),"none"!==Ur.getAttribute("display")&&function remStop(){Ur.setAttribute("display","none");var Un=Tn(Lr),Qn=Un.data("stop"),Dn=Un.data("bg");Tn([Lr,Qn,Dn]).remove()}(),Tr=null}function xform(){var Tn=Mr?"rotate("+Mr+","+Qr+","+Or+") ":"";if(1===Ir&&1===Rr)sr.removeAttribute("gradientTransform");else{var Un=-Qr*(Ir-1),Qn=-Or*(Rr-1);sr.setAttribute("gradientTransform",Tn+"translate("+Un+","+Qn+") scale("+Ir+","+Rr+")")}}function dragColor(Un){var Qn=Un.pageX-Pr.left,Dn=Un.pageY-Pr.top,Hn="translate("+(Qn=Qn<10?10:Qn>266?266:Qn)+", 26)";Dn<-60||Dn>130?(Ur.setAttribute("display","block"),Ur.setAttribute("transform",Hn)):Ur.setAttribute("display","none"),Tr.setAttribute("transform",Hn),Tn.data(Tr,"bg").setAttribute("transform",Hn);var Gn=Tn.data(Tr,"stop"),zn=(Qn-10)/Zn;Gn.setAttribute("offset",zn);var Vn=0;Tn(sr).find("stop").each((function(Un){var Qn=this.getAttribute("offset"),Dn=Tn(this);Qn<Vn&&(Dn.prev().before(Dn),Nr=Tn(sr).find("stop")),Vn=Qn}))}}))},Tn},function jQueryPluginSpinButton(Tn){return Tn.fn.SpinButton=function(Un){function coord(Un,Qn){for(var Dn=document.body,Hn=Un[Qn];(Un=Un.offsetParent)&&Un!==Dn;)Tn.browser.msie&&"relative"===Un.currentStyle.position||(Hn+=Un[Qn]);return Hn}return Un=Un||{},this.each((function(){this.repeating=!1,this.spinCfg={min:isNaN(Number.parseFloat(Un.min))?null:Number(Un.min),max:isNaN(Number.parseFloat(Un.max))?null:Number(Un.max),step:Un.step?Number(Un.step):1,stepfunc:Un.stepfunc||!1,page:Un.page?Number(Un.page):10,upClass:Un.upClass||"up",downClass:Un.downClass||"down",reset:Un.reset||this.value,delay:Un.delay?Number(Un.delay):500,interval:Un.interval?Number(Un.interval):100,_btn_width:20,_direction:null,_delay:null,_repeat:null,callback:Un.callback||null},this.spinCfg.smallStep=Un.smallStep||this.spinCfg.step/2,this.adjustValue=function(Tn){var Un;Un=isNaN(this.value)?this.spinCfg.reset:"function"==typeof this.spinCfg.stepfunc?this.spinCfg.stepfunc(this,Tn):Number((Number(this.value)+Number(Tn)).toFixed(5)),null!==this.spinCfg.min&&(Un=Math.max(Un,this.spinCfg.min)),null!==this.spinCfg.max&&(Un=Math.min(Un,this.spinCfg.max)),this.value=Un,"function"==typeof this.spinCfg.callback&&this.spinCfg.callback(this)},Tn(this).addClass(Un.spinClass||"spin-button").mousemove((function(Qn){var Dn=Qn.pageX||Qn.x,Hn=Qn.pageY||Qn.y,Gn=Qn.target,zn=Un.stateObj.tool_scale||1,Vn=Tn(Gn).height()/2,Kn=Dn>coord(Gn,"offsetLeft")+Gn.offsetWidth*zn-this.spinCfg._btn_width?Hn<coord(Gn,"offsetTop")+Vn*zn?1:-1:0;if(Kn!==this.spinCfg._direction){switch(Kn){case 1:Tn(this).removeClass(this.spinCfg.downClass).addClass(this.spinCfg.upClass);break;case-1:Tn(this).removeClass(this.spinCfg.upClass).addClass(this.spinCfg.downClass);break;default:Tn(this).removeClass(this.spinCfg.upClass).removeClass(this.spinCfg.downClass)}this.spinCfg._direction=Kn}})).mouseout((function(){Tn(this).removeClass(this.spinCfg.upClass).removeClass(this.spinCfg.downClass),this.spinCfg._direction=null,window.clearInterval(this.spinCfg._repeat),window.clearTimeout(this.spinCfg._delay)})).mousedown((function(Tn){var Un=this;if(0===Tn.button&&0!==this.spinCfg._direction){var Qn=Tn.shiftKey?this.spinCfg.smallStep:this.spinCfg.step,Dn=function adjust(){Un.adjustValue(Un.spinCfg._direction*Qn)};Dn(),this.spinCfg._delay=window.setTimeout((function(){Dn(),Un.spinCfg._repeat=window.setInterval(Dn,Un.spinCfg.interval)}),this.spinCfg.delay)}})).mouseup((function(Tn){window.clearInterval(this.spinCfg._repeat),window.clearTimeout(this.spinCfg._delay)})).dblclick((function(Un){Tn.browser.msie&&this.adjustValue(this.spinCfg._direction*this.spinCfg.step)})).keydown((function(Tn){switch(Tn.keyCode){case 38:this.adjustValue(this.spinCfg.step);break;case 40:this.adjustValue(-this.spinCfg.step);break;case 33:this.adjustValue(this.spinCfg.page);break;case 34:this.adjustValue(-this.spinCfg.page)}})).keypress((function(Tn){if(this.repeating)switch(Tn.keyCode){case 38:this.adjustValue(this.spinCfg.step);break;case 40:this.adjustValue(-this.spinCfg.step);break;case 33:this.adjustValue(this.spinCfg.page);break;case 34:this.adjustValue(-this.spinCfg.page)}else this.repeating=!0})).keyup((function(Tn){switch(this.repeating=!1,Tn.keyCode){case 38:case 40:case 33:case 34:case 13:this.adjustValue(0)}})).bind("mousewheel",(function(Tn){Tn.wheelDelta>=120?this.adjustValue(this.spinCfg.step):Tn.wheelDelta<=-120&&this.adjustValue(-this.spinCfg.step),Tn.preventDefault()})).change((function(Tn){this.adjustValue(0)})),this.addEventListener&&this.addEventListener("DOMMouseScroll",(function(Tn){Tn.detail>0?this.adjustValue(-this.spinCfg.step):Tn.detail<0&&this.adjustValue(this.spinCfg.step),Tn.preventDefault()}))}))},Tn},jQueryPluginSVG,function jQueryContextMenu(Tn){var Un=Tn(window),Qn=Tn(document);return Tn.extend(Tn.fn,{contextMenu:function contextMenu(Dn,Hn){return void 0!==Dn.menu&&(void 0===Dn.inSpeed&&(Dn.inSpeed=150),void 0===Dn.outSpeed&&(Dn.outSpeed=75),0===Dn.inSpeed&&(Dn.inSpeed=-1),0===Dn.outSpeed&&(Dn.outSpeed=-1),Tn(this).each((function(){var Gn=Tn(this),zn=Tn(Gn).offset(),Vn=Tn("#"+Dn.menu);Vn.addClass("contextMenu"),Tn(this).bind("mousedown",(function(Kn){Tn(this).mouseup((function(Wn){var Xn=Tn(this);if(Xn.unbind("mouseup"),2===Kn.button||Dn.allowLeft||Kn.ctrlKey&&Kd()){if(Wn.stopPropagation(),Tn(".contextMenu").hide(),Gn.hasClass("disabled"))return!1;var Yn=Wn.pageX,Jn=Wn.pageY,$n=Un.width()-Vn.width(),Zn=Un.height()-Vn.height();Yn>$n-15&&(Yn=$n-15),Jn>Zn-30&&(Jn=Zn-30),Qn.unbind("click"),Vn.css({top:Jn,left:Yn}).fadeIn(Dn.inSpeed),Vn.find("A").mouseover((function(){Vn.find("LI.hover").removeClass("hover"),Tn(this).parent().addClass("hover")})).mouseout((function(){Vn.find("LI.hover").removeClass("hover")})),Qn.keypress((function(Tn){switch(Tn.keyCode){case 38:Vn.find("LI.hover").length?(Vn.find("LI.hover").removeClass("hover").prevAll("LI:not(.disabled)").eq(0).addClass("hover"),Vn.find("LI.hover").length||Vn.find("LI:last").addClass("hover")):Vn.find("LI:last").addClass("hover");break;case 40:Vn.find("LI.hover").length?(Vn.find("LI.hover").removeClass("hover").nextAll("LI:not(.disabled)").eq(0).addClass("hover"),Vn.find("LI.hover").length||Vn.find("LI:first").addClass("hover")):Vn.find("LI:first").addClass("hover");break;case 13:Vn.find("LI.hover A").trigger("click");break;case 27:Qn.trigger("click")}})),Vn.find("A").unbind("mouseup"),Vn.find("LI:not(.disabled) A").mouseup((function(){return Qn.unbind("click").unbind("keypress"),Tn(".contextMenu").hide(),Hn&&Hn(Tn(this).attr("href").substr(1),Tn(Xn),{x:Yn-zn.left,y:Jn-zn.top,docX:Yn,docY:Jn}),!1})),setTimeout((function(){Qn.click((function(){return Qn.unbind("click").unbind("keypress"),Vn.fadeOut(Dn.outSpeed),!1}))}),0)}}))})),Tn.browser.mozilla?Tn("#"+Dn.menu).each((function(){Tn(this).css({MozUserSelect:"none"})})):Tn.browser.msie?Tn("#"+Dn.menu).each((function(){Tn(this).bind("selectstart.disableTextSelect",(function(){return!1}))})):Tn("#"+Dn.menu).each((function(){Tn(this).bind("mousedown.disableTextSelect",(function(){return!1}))})),Tn(Gn).add(Tn("UL.contextMenu")).bind("contextmenu",(function(){return!1}))})),Tn(this))},disableContextMenuItems:function disableContextMenuItems(Un){return void 0===Un?(Tn(this).find("LI").addClass("disabled"),Tn(this)):(Tn(this).each((function(){if(void 0!==Un){var Qn,Dn=_createForOfIteratorHelper(Un.split(","));try{for(Dn.s();!(Qn=Dn.n()).done;){var Hn=Qn.value;Tn(this).find('A[href="'+Hn+'"]').parent().addClass("disabled")}}catch(Tn){Dn.e(Tn)}finally{Dn.f()}}})),Tn(this))},enableContextMenuItems:function enableContextMenuItems(Un){return void 0===Un?(Tn(this).find("LI.disabled").removeClass("disabled"),Tn(this)):(Tn(this).each((function(){if(void 0!==Un){var Qn,Dn=_createForOfIteratorHelper(Un.split(","));try{for(Dn.s();!(Qn=Dn.n()).done;){var Hn=Qn.value;Tn(this).find('A[href="'+Hn+'"]').parent().removeClass("disabled")}}catch(Tn){Dn.e(Tn)}finally{Dn.f()}}})),Tn(this))},disableContextMenu:function disableContextMenu(){return Tn(this).each((function(){Tn(this).addClass("disabled")})),Tn(this)},enableContextMenu:function enableContextMenu(){return Tn(this).each((function(){Tn(this).removeClass("disabled")})),Tn(this)},destroyContextMenu:function destroyContextMenu(){return Tn(this).each((function(){Tn(this).unbind("mousedown").unbind("mouseup")})),Tn(this)}}),Tn},function jPicker(Tn){var Un=function Slider(Un,Qn){_classCallCheck(this,Slider);var Dn=this;function fireChangeEvents(Tn){er.forEach((function(Un){Un.call(Dn,Dn,Tn)}))}function mouseDown(Qn){var zn=Un.offset();Hn={l:0|zn.left,t:0|zn.top},clearTimeout(Gn),Gn=setTimeout((function(){setValuesFromMousePosition.call(Dn,Qn)}),0),Tn(document).bind("mousemove",mouseMove).bind("mouseup",mouseUp),Qn.preventDefault()}function mouseMove(Tn){return clearTimeout(Gn),Gn=setTimeout((function(){setValuesFromMousePosition.call(Dn,Tn)}),0),Tn.stopPropagation(),Tn.preventDefault(),!1}function mouseUp(Un){return Tn(document).unbind("mouseup",mouseUp).unbind("mousemove",mouseMove),Un.stopPropagation(),Un.preventDefault(),!1}function setValuesFromMousePosition(Tn){var Qn=Un.w,Gn=Un.h,zn=Tn.pageX-Hn.l,Vn=Tn.pageY-Hn.t;zn<0?zn=0:zn>Qn&&(zn=Qn),Vn<0?Vn=0:Vn>Gn&&(Vn=Gn),val.call(Dn,"xy",{x:zn/Qn*Xn+Kn,y:Vn/Gn*$n+Yn})}function val(Tn,Un,Qn){if(!(void 0!==Un))switch(Qx(Tn)&&(Tn="xy"),Tn.toLowerCase()){case"x":return zn;case"y":return Vn;case"xy":default:return{x:zn,y:Vn}}if(Qx(Qn)||Qn!==Dn){var Hn,Gn,Xn=!1;switch(Qx(Tn)&&(Tn="xy"),Tn.toLowerCase()){case"x":Hn=Un&&(Un.x&&0|Un.x||0|Un)||0;break;case"y":Gn=Un&&(Un.y&&0|Un.y||0|Un)||0;break;case"xy":default:Hn=Un&&Un.x&&0|Un.x||0,Gn=Un&&Un.y&&0|Un.y||0}Qx(Hn)||(Hn<Kn?Hn=Kn:Hn>Wn&&(Hn=Wn),zn!==Hn&&(zn=Hn,Xn=!0)),Qx(Gn)||(Gn<Yn?Gn=Yn:Gn>Jn&&(Gn=Jn),Vn!==Gn&&(Vn=Gn,Xn=!0)),Xn&&fireChangeEvents.call(Dn,Qn||Dn)}}function bind(Tn){"function"==typeof Tn&&er.push(Tn)}var Hn,Gn,zn=0,Vn=0,Kn=0,Wn=100,Xn=100,Yn=0,Jn=100,$n=100,Zn=Un.find("img:first"),er=[];Tn.extend(!0,Dn,{val:val,range:function range(Tn,Un){var Qn,Dn,Hn,Gn;if(!(void 0!==Un))switch(Qx(Tn)&&(Tn="all"),Tn.toLowerCase()){case"minx":return Kn;case"maxx":return Wn;case"rangex":return{minX:Kn,maxX:Wn,rangeX:Xn};case"miny":return Yn;case"maxy":return Jn;case"rangey":return{minY:Yn,maxY:Jn,rangeY:$n};case"all":default:return{minX:Kn,maxX:Wn,rangeX:Xn,minY:Yn,maxY:Jn,rangeY:$n}}switch(Qx(Tn)&&(Tn="all"),Tn.toLowerCase()){case"minx":Qn=Un&&(Un.minX&&0|Un.minX||0|Un)||0;break;case"maxx":Dn=Un&&(Un.maxX&&0|Un.maxX||0|Un)||0;break;case"rangex":Qn=Un&&Un.minX&&0|Un.minX||0,Dn=Un&&Un.maxX&&0|Un.maxX||0;break;case"miny":Hn=Un&&(Un.minY&&0|Un.minY||0|Un)||0;break;case"maxy":Gn=Un&&(Un.maxY&&0|Un.maxY||0|Un)||0;break;case"rangey":Hn=Un&&Un.minY&&0|Un.minY||0,Gn=Un&&Un.maxY&&0|Un.maxY||0;break;case"all":default:Qn=Un&&Un.minX&&0|Un.minX||0,Dn=Un&&Un.maxX&&0|Un.maxX||0,Hn=Un&&Un.minY&&0|Un.minY||0,Gn=Un&&Un.maxY&&0|Un.maxY||0}Qx(Qn)||Kn===Qn||(Xn=Wn-(Kn=Qn)),Qx(Dn)||Wn===Dn||(Xn=(Wn=Dn)-Kn),Qx(Hn)||Yn===Hn||($n=Jn-(Yn=Hn)),Qx(Gn)||Jn===Gn||($n=(Jn=Gn)-Yn)},bind:bind,unbind:function unbind(Tn){if("function"==typeof Tn)for(var Un;Un=er.includes(Tn);)er.splice(Un,1)},destroy:function destroy(){Tn(document).unbind("mouseup",mouseUp).unbind("mousemove",mouseMove),Un.unbind("mousedown",mouseDown),Un=null,Zn=null,er=null}}),Zn.src=Qn.arrow&&Qn.arrow.image,Zn.w=Qn.arrow&&Qn.arrow.width||Zn.width(),Zn.h=Qn.arrow&&Qn.arrow.height||Zn.height(),Un.w=Qn.map&&Qn.map.width||Un.width(),Un.h=Qn.map&&Qn.map.height||Un.height(),Un.bind("mousedown",mouseDown),bind.call(Dn,(function draw(){var Tn=Un.w,Qn=Un.h,Dn=Zn.w,Hn=Zn.h,Gn=0,Kn=0;setTimeout((function(){Xn>0&&(Gn=zn===Wn?Tn:zn/Xn*Tn|0),$n>0&&(Kn=Vn===Jn?Qn:Vn/$n*Qn|0),Dn>=Tn?Gn=(Tn>>1)-(Dn>>1):Gn-=Dn>>1,Hn>=Qn?Kn=(Qn>>1)-(Hn>>1):Kn-=Hn>>1,Zn.css({left:Gn+"px",top:Kn+"px"})}))}))},Qn=function ColorValuePicker(Un,Qn,Dn,Hn){_classCallCheck(this,ColorValuePicker);var Gn=this,zn=Un.find("td.Text input");function keyDown(Tn){if(""!==Tn.target.value||Tn.target===Zn.get(0)||(Qx(Dn)||Tn.target===Dn.get(0))&&!Qx(Dn)){if(!validateKey(Tn))return Tn;switch(Tn.target){case Vn.get(0):switch(Tn.keyCode){case 38:return Vn.val(setValueInRange.call(Gn,1+(Vn.val()<<0),0,255)),Qn.val("r",Vn.val(),Tn.target),!1;case 40:return Vn.val(setValueInRange.call(Gn,(Vn.val()<<0)-1,0,255)),Qn.val("r",Vn.val(),Tn.target),!1}break;case Kn.get(0):switch(Tn.keyCode){case 38:return Kn.val(setValueInRange.call(Gn,1+(Kn.val()<<0),0,255)),Qn.val("g",Kn.val(),Tn.target),!1;case 40:return Kn.val(setValueInRange.call(Gn,(Kn.val()<<0)-1,0,255)),Qn.val("g",Kn.val(),Tn.target),!1}break;case Wn.get(0):switch(Tn.keyCode){case 38:return Wn.val(setValueInRange.call(Gn,1+(Wn.val()<<0),0,255)),Qn.val("b",Wn.val(),Tn.target),!1;case 40:return Wn.val(setValueInRange.call(Gn,(Wn.val()<<0)-1,0,255)),Qn.val("b",Wn.val(),Tn.target),!1}break;case Xn&&Xn.get(0):switch(Tn.keyCode){case 38:return Xn.val(setValueInRange.call(Gn,Number.parseFloat(Xn.val())+1,0,100)),Qn.val("a",toFixedNumeric(255*Xn.val()/100,Hn),Tn.target),!1;case 40:return Xn.val(setValueInRange.call(Gn,Number.parseFloat(Xn.val())-1,0,100)),Qn.val("a",toFixedNumeric(255*Xn.val()/100,Hn),Tn.target),!1}break;case Yn.get(0):switch(Tn.keyCode){case 38:return Yn.val(setValueInRange.call(Gn,1+(Yn.val()<<0),0,360)),Qn.val("h",Yn.val(),Tn.target),!1;case 40:return Yn.val(setValueInRange.call(Gn,(Yn.val()<<0)-1,0,360)),Qn.val("h",Yn.val(),Tn.target),!1}break;case Jn.get(0):switch(Tn.keyCode){case 38:return Jn.val(setValueInRange.call(Gn,1+(Jn.val()<<0),0,100)),Qn.val("s",Jn.val(),Tn.target),!1;case 40:return Jn.val(setValueInRange.call(Gn,(Jn.val()<<0)-1,0,100)),Qn.val("s",Jn.val(),Tn.target),!1}break;case $n.get(0):switch(Tn.keyCode){case 38:return $n.val(setValueInRange.call(Gn,1+($n.val()<<0),0,100)),Qn.val("v",$n.val(),Tn.target),!1;case 40:return $n.val(setValueInRange.call(Gn,($n.val()<<0)-1,0,100)),Qn.val("v",$n.val(),Tn.target),!1}}}}function keyUp(Tn){if(""!==Tn.target.value||Tn.target===Zn.get(0)||(Qx(Dn)||Tn.target===Dn.get(0))&&!Qx(Dn)){if(!validateKey(Tn))return Tn;switch(Tn.target){case Vn.get(0):Vn.val(setValueInRange.call(Gn,Vn.val(),0,255)),Qn.val("r",Vn.val(),Tn.target);break;case Kn.get(0):Kn.val(setValueInRange.call(Gn,Kn.val(),0,255)),Qn.val("g",Kn.val(),Tn.target);break;case Wn.get(0):Wn.val(setValueInRange.call(Gn,Wn.val(),0,255)),Qn.val("b",Wn.val(),Tn.target);break;case Xn&&Xn.get(0):Xn.val(setValueInRange.call(Gn,Xn.val(),0,100)),Qn.val("a",toFixedNumeric(255*Xn.val()/100,Hn),Tn.target);break;case Yn.get(0):Yn.val(setValueInRange.call(Gn,Yn.val(),0,360)),Qn.val("h",Yn.val(),Tn.target);break;case Jn.get(0):Jn.val(setValueInRange.call(Gn,Jn.val(),0,100)),Qn.val("s",Jn.val(),Tn.target);break;case $n.get(0):$n.val(setValueInRange.call(Gn,$n.val(),0,100)),Qn.val("v",$n.val(),Tn.target);break;case Zn.get(0):Zn.val(Zn.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6)),Dn&&Dn.val(Zn.val()),Qn.val("hex",""!==Zn.val()?Zn.val():null,Tn.target);break;case Dn&&Dn.get(0):Dn.val(Dn.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6)),Zn.val(Dn.val()),Qn.val("hex",""!==Dn.val()?Dn.val():null,Tn.target);break;case er&&er.get(0):er.val(er.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,2)),Qn.val("a",Qx(er.val())?null:Number.parseInt(er.val(),16),Tn.target)}}}function blur(Tn){if(!Qx(Qn.val()))switch(Tn.target){case Vn.get(0):Vn.val(Qn.val("r"));break;case Kn.get(0):Kn.val(Qn.val("g"));break;case Wn.get(0):Wn.val(Qn.val("b"));break;case Xn&&Xn.get(0):Xn.val(toFixedNumeric(100*Qn.val("a")/255,Hn));break;case Yn.get(0):Yn.val(Qn.val("h"));break;case Jn.get(0):Jn.val(Qn.val("s"));break;case $n.get(0):$n.val(Qn.val("v"));break;case Zn.get(0):case Dn&&Dn.get(0):Zn.val(Qn.val("hex")),Dn&&Dn.val(Qn.val("hex"));break;case er&&er.get(0):er.val(Qn.val("ahex").substring(6))}}function validateKey(Tn){switch(Tn.keyCode){case 9:case 16:case 29:case 37:case 39:return!1;case"c".charCodeAt():case"v".charCodeAt():if(Tn.ctrlKey)return!1}return!0}function setValueInRange(Tn,Un,Qn){return""===Tn||isNaN(Tn)?Un:Tn>Qn?Qn:Tn<Un?Un:Tn}function colorChanged(Tn,Un){var Qn=Tn.val("all");Un!==Vn.get(0)&&Vn.val(Qx(Qn)?"":Qn.r),Un!==Kn.get(0)&&Kn.val(Qx(Qn)?"":Qn.g),Un!==Wn.get(0)&&Wn.val(Qx(Qn)?"":Qn.b),Xn&&Un!==Xn.get(0)&&Xn.val(Qx(Qn)?"":toFixedNumeric(100*Qn.a/255,Hn)),Un!==Yn.get(0)&&Yn.val(Qx(Qn)?"":Qn.h),Un!==Jn.get(0)&&Jn.val(Qx(Qn)?"":Qn.s),Un!==$n.get(0)&&$n.val(Qx(Qn)?"":Qn.v),Un!==Zn.get(0)&&(Dn&&Un!==Dn.get(0)||!Dn)&&Zn.val(Qx(Qn)?"":Qn.hex),Dn&&Un!==Dn.get(0)&&Un!==Zn.get(0)&&Dn.val(Qx(Qn)?"":Qn.hex),er&&Un!==er.get(0)&&er.val(Qx(Qn)?"":Qn.ahex.substring(6))}var Vn=zn.eq(3),Kn=zn.eq(4),Wn=zn.eq(5),Xn=zn.length>7?zn.eq(6):null,Yn=zn.eq(0),Jn=zn.eq(1),$n=zn.eq(2),Zn=zn.eq(zn.length>7?7:6),er=zn.length>7?zn.eq(8):null;Tn.extend(!0,Gn,{destroy:function destroy(){Vn.add(Kn).add(Wn).add(Xn).add(Yn).add(Jn).add($n).add(Zn).add(Dn).add(er).unbind("keyup",keyUp).unbind("blur",blur),Vn.add(Kn).add(Wn).add(Xn).add(Yn).add(Jn).add($n).unbind("keydown",keyDown),Qn.unbind(colorChanged),Vn=null,Kn=null,Wn=null,Xn=null,Yn=null,Jn=null,$n=null,Zn=null,er=null}}),Vn.add(Kn).add(Wn).add(Xn).add(Yn).add(Jn).add($n).add(Zn).add(Dn).add(er).bind("keyup",keyUp).bind("blur",blur),Vn.add(Kn).add(Wn).add(Xn).add(Yn).add(Jn).add($n).bind("keydown",keyDown),Qn.bind(colorChanged)};Tn.jPicker={List:[],Color:function Color(Un){var Qn=this;function fireChangeEvents(Tn){for(var Un=0;Un<Yn.length;Un++)Yn[Un].call(Qn,Qn,Tn)}function val(Tn,Un,Yn){var Jn=Boolean(Un);if(Jn&&""===Un.ahex&&(Un.ahex="00000000"),!Jn){var $n;if((Qx(Tn)||""===Tn)&&(Tn="all"),Qx(Dn))return null;switch(Tn.toLowerCase()){case"ahex":return zn.rgbaToHex({r:Dn,g:Hn,b:Gn,a:Vn});case"hex":return val("ahex").substring(0,6);case"all":return{r:Dn,g:Hn,b:Gn,a:Vn,h:Kn,s:Wn,v:Xn,hex:val.call(Qn,"hex"),ahex:val.call(Qn,"ahex")};default:$n={};var Zn=Tn.length;_toConsumableArray(Tn).forEach((function(Tn){switch(Tn){case"r":1===Zn?$n=Dn:$n.r=Dn;break;case"g":1===Zn?$n=Hn:$n.g=Hn;break;case"b":1===Zn?$n=Gn:$n.b=Gn;break;case"a":1===Zn?$n=Vn:$n.a=Vn;break;case"h":1===Zn?$n=Kn:$n.h=Kn;break;case"s":1===Zn?$n=Wn:$n.s=Wn;break;case"v":1===Zn?$n=Xn:$n.v=Xn}}))}return"object"!==_typeof($n)||Object.keys($n).length?$n:val.call(Qn,"all")}if(Qx(Yn)||Yn!==Qn){Qx(Tn)&&(Tn="");var er=!1;if(Qx(Un))return Qx(Dn)||(Dn=null,er=!0),Qx(Hn)||(Hn=null,er=!0),Qx(Gn)||(Gn=null,er=!0),Qx(Vn)||(Vn=null,er=!0),Qx(Kn)||(Kn=null,er=!0),Qx(Wn)||(Wn=null,er=!0),Qx(Xn)||(Xn=null,er=!0),void(er&&fireChangeEvents.call(Qn,Yn||Qn));switch(Tn.toLowerCase()){case"ahex":case"hex":var tr=zn.hexToRgba(Un&&(Un.ahex||Un.hex)||Un||"none");val.call(Qn,"rgba",{r:tr.r,g:tr.g,b:tr.b,a:"ahex"===Tn?tr.a:Qx(Vn)?255:Vn},Yn);break;default:if(Un&&(!Qx(Un.ahex)||!Qx(Un.hex)))return void val.call(Qn,"ahex",Un.ahex||Un.hex||"00000000",Yn);var nr={},rr=!1,ir=!1;if(void 0===Un.r||Tn.includes("r")||(Tn+="r"),void 0===Un.g||Tn.includes("g")||(Tn+="g"),void 0===Un.b||Tn.includes("b")||(Tn+="b"),void 0===Un.a||Tn.includes("a")||(Tn+="a"),void 0===Un.h||Tn.includes("h")||(Tn+="h"),void 0===Un.s||Tn.includes("s")||(Tn+="s"),void 0===Un.v||Tn.includes("v")||(Tn+="v"),_toConsumableArray(Tn).forEach((function(Tn){switch(Tn){case"r":if(ir)return;rr=!0,nr.r=Un.r&&0|Un.r||0|Un||0,nr.r<0?nr.r=0:nr.r>255&&(nr.r=255),Dn!==nr.r&&(Dn=nr.r,er=!0);break;case"g":if(ir)return;rr=!0,nr.g=Un&&Un.g&&0|Un.g||Un&&0|Un||0,nr.g<0?nr.g=0:nr.g>255&&(nr.g=255),Hn!==nr.g&&(Hn=nr.g,er=!0);break;case"b":if(ir)return;rr=!0,nr.b=Un&&Un.b&&0|Un.b||Un&&0|Un||0,nr.b<0?nr.b=0:nr.b>255&&(nr.b=255),Gn!==nr.b&&(Gn=nr.b,er=!0);break;case"a":nr.a=Un&&!Qx(Un.a)?0|Un.a:0|Un,nr.a<0?nr.a=0:nr.a>255&&(nr.a=255),Vn!==nr.a&&(Vn=nr.a,er=!0);break;case"h":if(rr)return;ir=!0,nr.h=Un&&Un.h&&0|Un.h||Un&&0|Un||0,nr.h<0?nr.h=0:nr.h>360&&(nr.h=360),Kn!==nr.h&&(Kn=nr.h,er=!0);break;case"s":if(rr)return;ir=!0,nr.s=Qx(Un.s)?0|Un:0|Un.s,nr.s<0?nr.s=0:nr.s>100&&(nr.s=100),Wn!==nr.s&&(Wn=nr.s,er=!0);break;case"v":if(rr)return;ir=!0,nr.v=Qx(Un.v)?0|Un:0|Un.v,nr.v<0?nr.v=0:nr.v>100&&(nr.v=100),Xn!==nr.v&&(Xn=nr.v,er=!0)}})),er){if(rr){Dn=Dn||0,Hn=Hn||0,Gn=Gn||0;var ar=zn.rgbToHsv({r:Dn,g:Hn,b:Gn});Kn=ar.h,Wn=ar.s,Xn=ar.v}else if(ir){Kn=Kn||0,Wn=Qx(Wn)?100:Wn,Xn=Qx(Xn)?100:Xn;var or=zn.hsvToRgb({h:Kn,s:Wn,v:Xn});Dn=or.r,Hn=or.g,Gn=or.b}Vn=Qx(Vn)?255:Vn,fireChangeEvents.call(Qn,Yn||Qn)}}}}var Dn,Hn,Gn,Vn,Kn,Wn,Xn,Yn=[];Tn.extend(!0,Qn,{val:val,bind:function bind(Tn){"function"==typeof Tn&&Yn.push(Tn)},unbind:function unbind(Tn){if("function"==typeof Tn)for(var Un;Un=Yn.includes(Tn);)Yn.splice(Un,1)},destroy:function destroy(){Yn=null}}),Un&&(Qx(Un.ahex)?Qx(Un.hex)?Qx(Un.r)||Qx(Un.g)||Qx(Un.b)?Qx(Un.h)||Qx(Un.s)||Qx(Un.v)||val("hsv"+(Qx(Un.a)?"":"a"),Un):val("rgb"+(Qx(Un.a)?"":"a"),Un):val((Qx(Un.a)?"":"a")+"hex",Qx(Un.a)?Un:{ahex:Un.hex+zn.intToHex(Un.a)}):val("ahex",Un))},ColorMethods:{hexToRgba:function hexToRgba(Tn){if(""===Tn||"none"===Tn)return{r:null,g:null,b:null,a:null};var Un="00",Qn="00",Dn="00",Hn="255";return 6===(Tn=this.validateHex(Tn)).length&&(Tn+="ff"),Tn.length>6?(Un=Tn.substring(0,2),Qn=Tn.substring(2,4),Dn=Tn.substring(4,6),Hn=Tn.substring(6,Tn.length)):(Tn.length>4&&(Un=Tn.substring(4,Tn.length),Tn=Tn.substring(0,4)),Tn.length>2&&(Qn=Tn.substring(2,Tn.length),Tn=Tn.substring(0,2)),Tn.length>0&&(Dn=Tn.substring(0,Tn.length))),{r:this.hexToInt(Un),g:this.hexToInt(Qn),b:this.hexToInt(Dn),a:this.hexToInt(Hn)}},validateHex:function validateHex(Tn){return(Tn=Tn.toLowerCase().replace(/[^a-f\d]/g,"")).length>8&&(Tn=Tn.substring(0,8)),Tn},rgbaToHex:function rgbaToHex(Tn){return this.intToHex(Tn.r)+this.intToHex(Tn.g)+this.intToHex(Tn.b)+this.intToHex(Tn.a)},intToHex:function intToHex(Tn){var Un=(0|Tn).toString(16);return 1===Un.length&&(Un="0"+Un),Un.toLowerCase()},hexToInt:function hexToInt(Tn){return Number.parseInt(Tn,16)},rgbToHsv:function rgbToHsv(Tn){var Un,Qn=Tn.r/255,Dn=Tn.g/255,Hn=Tn.b/255,Gn={h:0,s:0,v:0},zn=0,Vn=0;return Qn>=Dn&&Qn>=Hn?(Vn=Qn,zn=Dn>Hn?Hn:Dn):Dn>=Hn&&Dn>=Qn?(Vn=Dn,zn=Qn>Hn?Hn:Qn):(Vn=Hn,zn=Dn>Qn?Qn:Dn),Gn.v=Vn,Gn.s=Vn?(Vn-zn)/Vn:0,Gn.s?(Un=Vn-zn,Gn.h=Qn===Vn?(Dn-Hn)/Un:Dn===Vn?2+(Hn-Qn)/Un:4+(Qn-Dn)/Un,Gn.h=Number.parseInt(60*Gn.h),Gn.h<0&&(Gn.h+=360)):Gn.h=0,Gn.s=100*Gn.s|0,Gn.v=100*Gn.v|0,Gn},hsvToRgb:function hsvToRgb(Tn){var Un={r:0,g:0,b:0,a:100},Qn=Tn.h,Dn=Tn.s,Hn=Tn.v;if(0===Dn)Un.r=Un.g=Un.b=0===Hn?0:255*Hn/100|0;else{360===Qn&&(Qn=0);var Gn=0|(Qn/=60),zn=Qn-Gn,Vn=(Hn/=100)*(1-(Dn/=100)),Kn=Hn*(1-Dn*zn),Wn=Hn*(1-Dn*(1-zn));switch(Gn){case 0:Un.r=Hn,Un.g=Wn,Un.b=Vn;break;case 1:Un.r=Kn,Un.g=Hn,Un.b=Vn;break;case 2:Un.r=Vn,Un.g=Hn,Un.b=Wn;break;case 3:Un.r=Vn,Un.g=Kn,Un.b=Hn;break;case 4:Un.r=Wn,Un.g=Vn,Un.b=Hn;break;case 5:Un.r=Hn,Un.g=Vn,Un.b=Kn}Un.r=255*Un.r|0,Un.g=255*Un.g|0,Un.b=255*Un.b|0}return Un}}};var Dn=Tn.jPicker,Hn=Dn.Color,Gn=Dn.List,zn=Dn.ColorMethods;return Tn.fn.jPicker=function(Dn,Vn,Kn,Wn){return this.each((function(){var Xn=this,Yn=Tn.extend(!0,{},Tn.fn.jPicker.defaults,Dn);"input"===Tn(Xn).get(0).nodeName.toLowerCase()&&(Tn.extend(!0,Yn,{window:{bindToInput:!0,expandable:!0,input:Tn(Xn)}}),""===Tn(Xn).val()?(Yn.color.active=new Hn({hex:null}),Yn.color.current=new Hn({hex:null})):zn.validateHex(Tn(Xn).val())&&(Yn.color.active=new Hn({hex:Tn(Xn).val(),a:Yn.color.active.val("a")}),Yn.color.current=new Hn({hex:Tn(Xn).val(),a:Yn.color.active.val("a")}))),Yn.window.expandable?Tn(Xn).after('<span class="jPicker"><span class="Icon"><span class="Color"> </span><span class="Alpha"> </span><span class="Image" title="Click To Open Color Picker"> </span><span class="Container"> </span></span></span>'):Yn.window.liveUpdate=!1;var Jn=Number.parseFloat(navigator.appVersion.split("MSIE")[1])<7&&document.body.filters;function setColorMode(Tn){var Un,Qn,Dn=er.active,Hn=Dn.val("hex");switch(Yn.color.mode=Tn,Tn){case"h":if(setTimeout((function(){setBG.call(Xn,or,"transparent"),setImgLoc.call(Xn,lr,0),setAlpha.call(Xn,lr,100),setImgLoc.call(Xn,cr,260),setAlpha.call(Xn,cr,100),setBG.call(Xn,sr,"transparent"),setImgLoc.call(Xn,dr,0),setAlpha.call(Xn,dr,100),setImgLoc.call(Xn,hr,260),setAlpha.call(Xn,hr,100),setImgLoc.call(Xn,pr,260),setAlpha.call(Xn,pr,100),setImgLoc.call(Xn,Ar,260),setAlpha.call(Xn,Ar,100),setImgLoc.call(Xn,gr,260),setAlpha.call(Xn,gr,100)}),0),mr.range("all",{minX:0,maxX:100,minY:0,maxY:100}),_r.range("rangeY",{minY:0,maxY:360}),Qx(Dn.val("ahex")))break;mr.val("xy",{x:Dn.val("s"),y:100-Dn.val("v")},mr),_r.val("y",360-Dn.val("h"),_r);break;case"s":if(setTimeout((function(){setBG.call(Xn,or,"transparent"),setImgLoc.call(Xn,lr,-260),setImgLoc.call(Xn,cr,-520),setImgLoc.call(Xn,dr,-260),setImgLoc.call(Xn,hr,-520),setImgLoc.call(Xn,gr,260),setAlpha.call(Xn,gr,100)}),0),mr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),_r.range("rangeY",{minY:0,maxY:100}),Qx(Dn.val("ahex")))break;mr.val("xy",{x:Dn.val("h"),y:100-Dn.val("v")},mr),_r.val("y",100-Dn.val("s"),_r);break;case"v":if(setTimeout((function(){setBG.call(Xn,or,"000000"),setImgLoc.call(Xn,lr,-780),setImgLoc.call(Xn,cr,260),setBG.call(Xn,sr,Hn),setImgLoc.call(Xn,dr,-520),setImgLoc.call(Xn,hr,260),setAlpha.call(Xn,hr,100),setImgLoc.call(Xn,gr,260),setAlpha.call(Xn,gr,100)}),0),mr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),_r.range("rangeY",{minY:0,maxY:100}),Qx(Dn.val("ahex")))break;mr.val("xy",{x:Dn.val("h"),y:100-Dn.val("s")},mr),_r.val("y",100-Dn.val("v"),_r);break;case"r":if(Un=-1040,Qn=-780,mr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),_r.range("rangeY",{minY:0,maxY:255}),Qx(Dn.val("ahex")))break;mr.val("xy",{x:Dn.val("b"),y:255-Dn.val("g")},mr),_r.val("y",255-Dn.val("r"),_r);break;case"g":if(Un=-1560,Qn=-1820,mr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),_r.range("rangeY",{minY:0,maxY:255}),Qx(Dn.val("ahex")))break;mr.val("xy",{x:Dn.val("b"),y:255-Dn.val("r")},mr),_r.val("y",255-Dn.val("g"),_r);break;case"b":if(Un=-2080,Qn=-2860,mr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),_r.range("rangeY",{minY:0,maxY:255}),Qx(Dn.val("ahex")))break;mr.val("xy",{x:Dn.val("r"),y:255-Dn.val("g")},mr),_r.val("y",255-Dn.val("b"),_r);break;case"a":if(setTimeout((function(){setBG.call(Xn,or,"transparent"),setImgLoc.call(Xn,lr,-260),setImgLoc.call(Xn,cr,-520),setImgLoc.call(Xn,dr,260),setImgLoc.call(Xn,hr,260),setAlpha.call(Xn,hr,100),setImgLoc.call(Xn,gr,0),setAlpha.call(Xn,gr,100)}),0),mr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),_r.range("rangeY",{minY:0,maxY:255}),Qx(Dn.val("ahex")))break;mr.val("xy",{x:Dn.val("h"),y:100-Dn.val("v")},mr),_r.val("y",255-Dn.val("a"),_r);break;default:throw new Error("Invalid Mode")}switch(Tn){case"h":break;case"s":case"v":case"a":setTimeout((function(){setAlpha.call(Xn,lr,100),setAlpha.call(Xn,dr,100),setImgLoc.call(Xn,pr,260),setAlpha.call(Xn,pr,100),setImgLoc.call(Xn,Ar,260),setAlpha.call(Xn,Ar,100)}),0);break;case"r":case"g":case"b":setTimeout((function(){setBG.call(Xn,or,"transparent"),setBG.call(Xn,sr,"transparent"),setAlpha.call(Xn,dr,100),setAlpha.call(Xn,lr,100),setImgLoc.call(Xn,lr,Un),setImgLoc.call(Xn,cr,Un-260),setImgLoc.call(Xn,dr,Qn-780),setImgLoc.call(Xn,hr,Qn-520),setImgLoc.call(Xn,pr,Qn),setImgLoc.call(Xn,Ar,Qn-260),setImgLoc.call(Xn,gr,260),setAlpha.call(Xn,gr,100)}),0)}Qx(Dn.val("ahex"))||activeColorChanged.call(Xn,Dn)}function activeColorChanged(Tn,Un){(Qx(Un)||Un!==_r&&Un!==mr)&&positionMapAndBarArrows.call(Xn,Tn,Un),setTimeout((function(){updatePreview.call(Xn,Tn),updateMapVisuals.call(Xn,Tn),updateBarVisuals.call(Xn,Tn)}),0)}function mapValueChanged(Tn,Un){var Qn=er.active;if(Un===mr||!Qx(Qn.val())){var Dn=Tn.val("all");switch(Yn.color.mode){case"h":Qn.val("sv",{s:Dn.x,v:100-Dn.y},Un);break;case"s":case"a":Qn.val("hv",{h:Dn.x,v:100-Dn.y},Un);break;case"v":Qn.val("hs",{h:Dn.x,s:100-Dn.y},Un);break;case"r":Qn.val("gb",{g:255-Dn.y,b:Dn.x},Un);break;case"g":Qn.val("rb",{r:255-Dn.y,b:Dn.x},Un);break;case"b":Qn.val("rg",{r:Dn.x,g:255-Dn.y},Un)}}}function colorBarValueChanged(Tn,Un){var Qn=er.active;if(Un===_r||!Qx(Qn.val()))switch(Yn.color.mode){case"h":Qn.val("h",{h:360-Tn.val("y")},Un);break;case"s":Qn.val("s",{s:100-Tn.val("y")},Un);break;case"v":Qn.val("v",{v:100-Tn.val("y")},Un);break;case"r":Qn.val("r",{r:255-Tn.val("y")},Un);break;case"g":Qn.val("g",{g:255-Tn.val("y")},Un);break;case"b":Qn.val("b",{b:255-Tn.val("y")},Un);break;case"a":Qn.val("a",255-Tn.val("y"),Un)}}function positionMapAndBarArrows(Tn,Un){if(Un!==mr)switch(Yn.color.mode){case"h":var Qn=Tn.val("sv");mr.val("xy",{x:Qx(Qn)?100:Qn.s,y:100-(Qx(Qn)?100:Qn.v)},Un);break;case"s":case"a":var Dn=Tn.val("hv");mr.val("xy",{x:Dn&&Dn.h||0,y:100-(Qx(Dn)?100:Dn.v)},Un);break;case"v":var Hn=Tn.val("hs");mr.val("xy",{x:Hn&&Hn.h||0,y:100-(Qx(Hn)?100:Hn.s)},Un);break;case"r":var Gn=Tn.val("bg");mr.val("xy",{x:Gn&&Gn.b||0,y:255-(Gn&&Gn.g||0)},Un);break;case"g":var zn=Tn.val("br");mr.val("xy",{x:zn&&zn.b||0,y:255-(zn&&zn.r||0)},Un);break;case"b":var Vn=Tn.val("rg");mr.val("xy",{x:Vn&&Vn.r||0,y:255-(Vn&&Vn.g||0)},Un)}if(Un!==_r)switch(Yn.color.mode){case"h":_r.val("y",360-(Tn.val("h")||0),Un);break;case"s":var Kn=Tn.val("s");_r.val("y",100-(Qx(Kn)?100:Kn),Un);break;case"v":var Wn=Tn.val("v");_r.val("y",100-(Qx(Wn)?100:Wn),Un);break;case"r":_r.val("y",255-(Tn.val("r")||0),Un);break;case"g":_r.val("y",255-(Tn.val("g")||0),Un);break;case"b":_r.val("y",255-(Tn.val("b")||0),Un);break;case"a":var Xn=Tn.val("a");_r.val("y",255-(Qx(Xn)?255:Xn),Un)}}function updatePreview(Tn){try{var Un=Tn.val("all");yr.css({backgroundColor:Un&&"#"+Un.hex||"transparent"}),setAlpha.call(Xn,yr,Un&&toFixedNumeric(100*Un.a/255,4)||0)}catch(Tn){}}function updateMapVisuals(Tn){switch(Yn.color.mode){case"h":setBG.call(Xn,or,new Hn({h:Tn.val("h")||0,s:100,v:100}).val("hex"));break;case"s":case"a":var Un=Tn.val("s");setAlpha.call(Xn,cr,100-(Qx(Un)?100:Un));break;case"v":var Qn=Tn.val("v");setAlpha.call(Xn,lr,Qx(Qn)?100:Qn);break;case"r":setAlpha.call(Xn,cr,toFixedNumeric((Tn.val("r")||0)/255*100,4));break;case"g":setAlpha.call(Xn,cr,toFixedNumeric((Tn.val("g")||0)/255*100,4));break;case"b":setAlpha.call(Xn,cr,toFixedNumeric((Tn.val("b")||0)/255*100))}var Dn=Tn.val("a");setAlpha.call(Xn,ur,toFixedNumeric(100*(255-(Dn||0))/255,4))}function updateBarVisuals(Tn){switch(Yn.color.mode){case"h":var Un=Tn.val("a");setAlpha.call(Xn,fr,toFixedNumeric(100*(255-(Un||0))/255,4));break;case"s":var Qn=Tn.val("hva"),Dn=new Hn({h:Qn&&Qn.h||0,s:100,v:Qx(Qn)?100:Qn.v});setBG.call(Xn,sr,Dn.val("hex")),setAlpha.call(Xn,hr,100-(Qx(Qn)?100:Qn.v)),setAlpha.call(Xn,fr,toFixedNumeric(100*(255-(Qn&&Qn.a||0))/255,4));break;case"v":var Gn=Tn.val("hsa"),zn=new Hn({h:Gn&&Gn.h||0,s:Qx(Gn)?100:Gn.s,v:100});setBG.call(Xn,sr,zn.val("hex")),setAlpha.call(Xn,fr,toFixedNumeric(100*(255-(Gn&&Gn.a||0))/255,4));break;case"r":case"g":case"b":var Vn=Tn.val("rgba"),Kn=0,Wn=0;"r"===Yn.color.mode?(Kn=Vn&&Vn.b||0,Wn=Vn&&Vn.g||0):"g"===Yn.color.mode?(Kn=Vn&&Vn.b||0,Wn=Vn&&Vn.r||0):"b"===Yn.color.mode&&(Kn=Vn&&Vn.r||0,Wn=Vn&&Vn.g||0);var Jn=Wn>Kn?Kn:Wn;setAlpha.call(Xn,hr,Kn>Wn?toFixedNumeric((Kn-Wn)/(255-Wn)*100,4):0),setAlpha.call(Xn,pr,Wn>Kn?toFixedNumeric((Wn-Kn)/(255-Kn)*100,4):0),setAlpha.call(Xn,Ar,toFixedNumeric(Jn/255*100,4)),setAlpha.call(Xn,fr,toFixedNumeric(100*(255-(Vn&&Vn.a||0))/255,4));break;case"a":var $n=Tn.val("a");setBG.call(Xn,sr,Tn.val("hex")||"000000"),setAlpha.call(Xn,fr,Qx($n)?100:0),setAlpha.call(Xn,gr,Qx($n)?0:100)}}function setBG(Tn,Un){Tn.css({backgroundColor:Un&&6===Un.length&&"#"+Un||"transparent"})}function setImg(Tn,Un){Jn&&(Un.includes("AlphaBar.png")||Un.includes("Bars.png")||Un.includes("Maps.png"))?(Tn.attr("pngSrc",Un),Tn.css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+Un+"', sizingMethod='scale')"})):Tn.css({backgroundImage:"url('"+Un+"')"})}function setImgLoc(Tn,Un){Tn.css({top:Un+"px"})}function setAlpha(Tn,Un){if(Tn.css({visibility:Un>0?"visible":"hidden"}),Un>0&&Un<100)if(Jn){var Qn=Tn.attr("pngSrc");!Qx(Qn)&&(Qn.includes("AlphaBar.png")||Qn.includes("Bars.png")||Qn.includes("Maps.png"))?Tn.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+Qn+"', sizingMethod='scale') progid:DXImageTransform.Microsoft.Alpha(opacity="+Un+")"}):Tn.css({opacity:toFixedNumeric(Un/100,4)})}else Tn.css({opacity:toFixedNumeric(Un/100,4)});else if(0===Un||100===Un)if(Jn){var Dn=Tn.attr("pngSrc");!Qx(Dn)&&(Dn.includes("AlphaBar.png")||Dn.includes("Bars.png")||Dn.includes("Maps.png"))?Tn.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+Dn+"', sizingMethod='scale')"}):Tn.css({opacity:""})}else Tn.css({opacity:""})}function revertColor(){er.active.val("ahex",er.current.val("ahex"))}function commitColor(){er.current.val("ahex",er.active.val("ahex"))}function radioClicked(Un){Tn(this).parents("tbody:first").find('input:radio[value!="'+Un.target.value+'"]').removeAttr("checked"),setColorMode.call(Xn,Un.target.value)}function currentClicked(){revertColor.call(Xn)}function cancelClicked(){revertColor.call(Xn),Yn.window.expandable&&hide.call(Xn),"function"==typeof Wn&&Wn.call(Xn,er.active,xr)}function okClicked(){commitColor.call(Xn),Yn.window.expandable&&hide.call(Xn),"function"==typeof Vn&&Vn.call(Xn,er.active,wr)}function iconImageClicked(){show.call(Xn)}function currentColorChanged(Tn){var Un=Tn.val("hex");br.css({backgroundColor:Un&&"#"+Un||"transparent"}),setAlpha.call(Xn,br,toFixedNumeric(100*(Tn.val("a")||0)/255,4))}function expandableColorChanged(Tn){var Un=Tn.val("hex"),Qn=Tn.val("va");Sr.css({backgroundColor:Un&&"#"+Un||"transparent"}),setAlpha.call(Xn,Cr,toFixedNumeric(100*(255-(Qn&&Qn.a||0))/255,4)),Yn.window.bindToInput&&Yn.window.updateInputColor&&Yn.window.input.css({backgroundColor:Un&&"#"+Un||"transparent",color:Qx(Qn)||Qn.v>75?"#000000":"#ffffff"})}function moveBarMouseDown(Un){tr=Number.parseInt(ar.css("left")),nr=Number.parseInt(ar.css("top")),rr=Un.pageX,ir=Un.pageY,Tn(document).bind("mousemove",documentMouseMove).bind("mouseup",documentMouseUp),Un.preventDefault()}function documentMouseMove(Un){return ar.css({left:tr-(rr-Un.pageX)+"px",top:nr-(ir-Un.pageY)+"px"}),Yn.window.expandable&&!Tn.support.boxModel&&ar.prev().css({left:ar.css("left"),top:ar.css("top")}),Un.stopPropagation(),Un.preventDefault(),!1}function documentMouseUp(Un){return Tn(document).unbind("mousemove",documentMouseMove).unbind("mouseup",documentMouseUp),Un.stopPropagation(),Un.preventDefault(),!1}function quickPickClicked(Un){return Un.preventDefault(),Un.stopPropagation(),er.active.val("ahex",Tn(this).attr("title")||null,Un.target),!1}function show(){function attachIFrame(){if(Yn.window.expandable&&!Tn.support.boxModel){var Un=ar.find("table:first");ar.before("<iframe/>"),ar.prev().css({width:Un.width(),height:ar.height(),opacity:0,position:"absolute",left:ar.css("left"),top:ar.css("top")})}}switch(er.current.val("ahex",er.active.val("ahex")),Yn.window.expandable&&(Tn(document.body).children("div.jPicker.Container").css({zIndex:10}),ar.css({zIndex:20})),Yn.window.effects.type){case"fade":ar.fadeIn(Yn.window.effects.speed.show,attachIFrame);break;case"slide":ar.slideDown(Yn.window.effects.speed.show,attachIFrame);break;case"show":default:ar.show(Yn.window.effects.speed.show,attachIFrame)}}function hide(){function removeIFrame(){Yn.window.expandable&&ar.css({zIndex:10}),Yn.window.expandable&&!Tn.support.boxModel&&ar.prev().remove()}switch(Yn.window.effects.type){case"fade":ar.fadeOut(Yn.window.effects.speed.hide,removeIFrame);break;case"slide":ar.slideUp(Yn.window.effects.speed.hide,removeIFrame);break;case"show":default:ar.hide(Yn.window.effects.speed.hide,removeIFrame)}}function initialize(){var Dn=Yn.window,Gn=Dn.expandable?Tn(Xn).next().find(".Container:first"):null;(ar=Dn.expandable?Tn("<div/>"):Tn(Xn)).addClass("jPicker Container"),Dn.expandable&&ar.hide(),ar.get(0).onselectstart=function(Tn){return"input"===Tn.target.nodeName.toLowerCase()};var zn=er.active.val("all");Dn.alphaPrecision<0?Dn.alphaPrecision=0:Dn.alphaPrecision>2&&(Dn.alphaPrecision=2);var Vn='<table class="jPicker" cellpadding="0" cellspacing="0">\n <tbody>\n '.concat(Dn.expandable?'<tr><td class="Move" colspan="5"> </td></tr>':"",'\n <tr>\n <td rowspan="9"><h2 class="Title">').concat(Dn.title||Zn.text.title,'</h2><div class="Map"><span class="Map1"> </span><span class="Map2"> </span><span class="Map3"> </span><img src="').concat($n.clientPath+$n.colorMap.arrow.file,'" class="Arrow"/></div></td>\n <td rowspan="9"><div class="Bar"><span class="Map1"> </span><span class="Map2"> </span><span class="Map3"> </span><span class="Map4"> </span><span class="Map5"> </span><span class="Map6"> </span><img src="').concat($n.clientPath+$n.colorBar.arrow.file,'" class="Arrow"/></div></td>\n <td colspan="2" class="Preview">').concat(Zn.text.newColor,'<div><span class="Active" title="').concat(Zn.tooltips.colors.newColor,'"> </span><span class="Current" title="').concat(Zn.tooltips.colors.currentColor,'"> </span></div>').concat(Zn.text.currentColor,'</td>\n <td rowspan="9" class="Button"><input type="button" class="Ok" value="').concat(Zn.text.ok,'" title="').concat(Zn.tooltips.buttons.ok,'"/><input type="button" class="Cancel" value="').concat(Zn.text.cancel,'" title="').concat(Zn.tooltips.buttons.cancel,'"/><hr/><div class="Grid"> </div></td>\n </tr>\n <tr class="Hue">\n <td class="Radio"><label title="').concat(Zn.tooltips.hue.radio,'"><input type="radio" value="h"').concat("h"===Yn.color.mode?' checked="checked"':"",'/>H:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Qx(zn)?"":zn.h,'" title="').concat(Zn.tooltips.hue.textbox,'"/> °</td>\n </tr>\n <tr class="Saturation">\n <td class="Radio"><label title="').concat(Zn.tooltips.saturation.radio,'"><input type="radio" value="s"').concat("s"===Yn.color.mode?' checked="checked"':"",'/>S:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Qx(zn)?"":zn.s,'" title="').concat(Zn.tooltips.saturation.textbox,'"/> %</td>\n </tr>\n <tr class="Value">\n <td class="Radio"><label title="').concat(Zn.tooltips.value.radio,'"><input type="radio" value="v"').concat("v"===Yn.color.mode?' checked="checked"':"",'/>V:</label><br/><br/></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Qx(zn)?"":zn.v,'" title="').concat(Zn.tooltips.value.textbox,'"/> %<br/><br/></td>\n </tr>\n <tr class="Red">\n <td class="Radio"><label title="').concat(Zn.tooltips.red.radio,'"><input type="radio" value="r"').concat("r"===Yn.color.mode?' checked="checked"':"",'/>R:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Qx(zn)?"":zn.r,'" title="').concat(Zn.tooltips.red.textbox,'"/></td>\n </tr>\n <tr class="Green">\n <td class="Radio"><label title="').concat(Zn.tooltips.green.radio,'"><input type="radio" value="g"').concat("g"===Yn.color.mode?' checked="checked"':"",'/>G:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Qx(zn)?"":zn.g,'" title="').concat(Zn.tooltips.green.textbox,'"/></td>\n </tr>\n <tr class="Blue">\n <td class="Radio"><label title="').concat(Zn.tooltips.blue.radio,'"><input type="radio" value="b"').concat("b"===Yn.color.mode?' checked="checked"':"",'/>B:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Qx(zn)?"":zn.b,'" title="').concat(Zn.tooltips.blue.textbox,'"/></td>\n </tr>\n <tr class="Alpha">\n <td class="Radio">').concat(Dn.alphaSupport?'<label title="'.concat(Zn.tooltips.alpha.radio,'"><input type="radio" value="a"').concat("a"===Yn.color.mode?' checked="checked"':"","/>A:</label>"):" ",'</td>\n <td class="Text">').concat(Dn.alphaSupport?'<input type="text" maxlength="'.concat(3+Dn.alphaPrecision,'" value="').concat(Qx(zn)?"":toFixedNumeric(100*zn.a/255,Dn.alphaPrecision),'" title="').concat(Zn.tooltips.alpha.textbox,'"/> %'):" ",'</td>\n </tr>\n <tr class="Hex">\n <td colspan="2" class="Text"><label title="').concat(Zn.tooltips.hex.textbox,'">#:<input type="text" maxlength="6" class="Hex" value="').concat(Qx(zn)?"":zn.hex,'"/></label>').concat(Dn.alphaSupport?'<input type="text" maxlength="2" class="AHex" value="'.concat(Qx(zn)?"":zn.ahex.substring(6),'" title="').concat(Zn.tooltips.hex.alpha,'"/></td>'):" ","\n </tr>\n </tbody></table>");Dn.expandable?(ar.html(Vn),Tn(document.body).children("div.jPicker.Container").length?Tn(document.body).children("div.jPicker.Container:last").after(ar):Tn(document.body).prepend(ar),ar.mousedown((function(){Tn(document.body).children("div.jPicker.Container").css({zIndex:10}),ar.css({zIndex:20})})),ar.css({left:"left"===Dn.position.x?Gn.offset().left-530-("center"===Dn.position.y?25:0)+"px":"center"===Dn.position.x?Gn.offset().left-260+"px":"right"===Dn.position.x?Gn.offset().left-10+("center"===Dn.position.y?25:0)+"px":"screenCenter"===Dn.position.x?(Tn(document).width()>>1)-260+"px":Gn.offset().left+Number.parseInt(Dn.position.x)+"px",position:"absolute",top:"top"===Dn.position.y?Gn.offset().top-312+"px":"center"===Dn.position.y?Gn.offset().top-156+"px":"bottom"===Dn.position.y?Gn.offset().top+25+"px":Gn.offset().top+Number.parseInt(Dn.position.y)+"px"})):(ar=Tn(Xn)).html(Vn);var Wn=ar.find("tbody:first");or=Wn.find("div.Map:first"),sr=Wn.find("div.Bar:first");var Jn=or.find("span"),tr=sr.find("span");lr=Jn.filter(".Map1:first"),cr=Jn.filter(".Map2:first"),ur=Jn.filter(".Map3:first"),dr=tr.filter(".Map1:first"),hr=tr.filter(".Map2:first"),pr=tr.filter(".Map3:first"),Ar=tr.filter(".Map4:first"),fr=tr.filter(".Map5:first"),gr=tr.filter(".Map6:first"),(mr=new Un(or,{map:{width:$n.colorMap.width,height:$n.colorMap.height},arrow:{image:$n.clientPath+$n.colorMap.arrow.file,width:$n.colorMap.arrow.width,height:$n.colorMap.arrow.height}})).bind(mapValueChanged),(_r=new Un(sr,{map:{width:$n.colorBar.width,height:$n.colorBar.height},arrow:{image:$n.clientPath+$n.colorBar.arrow.file,width:$n.colorBar.arrow.width,height:$n.colorBar.arrow.height}})).bind(colorBarValueChanged),vr=new Qn(Wn,er.active,Dn.expandable&&Dn.bindToInput?Dn.input:null,Dn.alphaPrecision);var nr=Qx(zn)?null:zn.hex,rr=Wn.find(".Preview"),ir=Wn.find(".Button");if(yr=rr.find(".Active:first").css({backgroundColor:nr&&"#"+nr||"transparent"}),br=rr.find(".Current:first").css({backgroundColor:nr&&"#"+nr||"transparent"}).bind("click",currentClicked),setAlpha.call(Xn,br,toFixedNumeric(100*er.current.val("a")/255,4)),wr=ir.find(".Ok:first").bind("click",okClicked),xr=ir.find(".Cancel:first").bind("click",cancelClicked),kr=ir.find(".Grid:first"),setTimeout((function(){setImg.call(Xn,lr,$n.clientPath+"Maps.png"),setImg.call(Xn,cr,$n.clientPath+"Maps.png"),setImg.call(Xn,ur,$n.clientPath+"map-opacity.png"),setImg.call(Xn,dr,$n.clientPath+"Bars.png"),setImg.call(Xn,hr,$n.clientPath+"Bars.png"),setImg.call(Xn,pr,$n.clientPath+"Bars.png"),setImg.call(Xn,Ar,$n.clientPath+"Bars.png"),setImg.call(Xn,fr,$n.clientPath+"bar-opacity.png"),setImg.call(Xn,gr,$n.clientPath+"AlphaBar.png"),setImg.call(Xn,rr.find("div:first"),$n.clientPath+"preview-opacity.png")}),0),Wn.find("td.Radio input").bind("click",radioClicked),er.quickList&&er.quickList.length>0){for(var Nr="",Lr=0;Lr<er.quickList.length;Lr++){"string"===_typeof(er.quickList[Lr]).toString().toLowerCase()&&(er.quickList[Lr]=new Hn({hex:er.quickList[Lr]}));var Tr=er.quickList[Lr].val("a"),Pr=er.quickList[Lr].val("ahex");!Dn.alphaSupport&&Pr&&(Pr=Pr.substring(0,6)+"ff");var Fr=er.quickList[Lr].val("hex");Pr||(Pr="00000000"),Nr+='<span class="QuickColor" title="#'+Pr+'" style="background-color:'+(Fr&&"#"+Fr||"")+";"+(Fr?"":"background-image:url("+$n.clientPath+"NoColor.png)")+(Dn.alphaSupport&&Tr&&Tr<255?";opacity:"+toFixedNumeric(Tr/255,4)+";filter:Alpha(opacity="+toFixedNumeric(Tr/2.55,4)+")":"")+'"> </span>'}setImg.call(Xn,kr,$n.clientPath+"bar-opacity.png"),kr.html(Nr),kr.find(".QuickColor").click(quickPickClicked)}setColorMode.call(Xn,Yn.color.mode),er.active.bind(activeColorChanged),"function"==typeof Kn&&er.active.bind(Kn),er.current.bind(currentColorChanged),Dn.expandable?(Xn.icon=Gn.parents(".Icon:first"),Sr=Xn.icon.find(".Color:first").css({backgroundColor:nr&&"#"+nr||"transparent"}),Cr=Xn.icon.find(".Alpha:first"),setImg.call(Xn,Cr,$n.clientPath+"bar-opacity.png"),setAlpha.call(Xn,Cr,toFixedNumeric(100*(255-(Qx(zn)?0:zn.a))/255,4)),Br=Xn.icon.find(".Image:first").css({backgroundImage:"url('"+$n.clientPath+$n.picker.file+"')"}).bind("click",iconImageClicked),Dn.bindToInput&&Dn.updateInputColor&&Dn.input.css({backgroundColor:nr&&"#"+nr||"transparent",color:Qx(zn)||zn.v>75?"#000000":"#ffffff"}),Er=Wn.find(".Move:first").bind("mousedown",moveBarMouseDown),er.active.bind(expandableColorChanged)):show.call(Xn)}var $n=Yn.images,Zn=Yn.localization,er={active:"string"===_typeof(Yn.color.active).toString().toLowerCase()?new Hn({ahex:!Yn.window.alphaSupport&&Yn.color.active?Yn.color.active.substring(0,6)+"ff":Yn.color.active}):new Hn({ahex:!Yn.window.alphaSupport&&Yn.color.active.val("ahex")?Yn.color.active.val("ahex").substring(0,6)+"ff":Yn.color.active.val("ahex")}),current:"string"===_typeof(Yn.color.active).toString().toLowerCase()?new Hn({ahex:!Yn.window.alphaSupport&&Yn.color.active?Yn.color.active.substring(0,6)+"ff":Yn.color.active}):new Hn({ahex:!Yn.window.alphaSupport&&Yn.color.active.val("ahex")?Yn.color.active.val("ahex").substring(0,6)+"ff":Yn.color.active.val("ahex")}),quickList:Yn.color.quickList};"function"!=typeof Vn&&(Vn=null),"function"!=typeof Kn&&(Kn=null),"function"!=typeof Wn&&(Wn=null);var tr=null,nr=null,rr=null,ir=null,ar=null,or=null,sr=null,lr=null,cr=null,ur=null,dr=null,hr=null,pr=null,Ar=null,fr=null,gr=null,mr=null,_r=null,vr=null,yr=null,br=null,wr=null,xr=null,kr=null,Sr=null,Cr=null,Br=null,Er=null;Tn.extend(!0,Xn,{commitCallback:Vn,liveCallback:Kn,cancelCallback:Wn,color:er,show:show,hide:hide,destroy:function destroy(){ar.find("td.Radio input").unbind("click",radioClicked),br.unbind("click",currentClicked),xr.unbind("click",cancelClicked),wr.unbind("click",okClicked),Yn.window.expandable&&(Br.unbind("click",iconImageClicked),Er.unbind("mousedown",moveBarMouseDown),Xn.icon=null),ar.find(".QuickColor").unbind("click",quickPickClicked),or=null,sr=null,lr=null,cr=null,ur=null,dr=null,hr=null,pr=null,Ar=null,fr=null,gr=null,mr.destroy(),mr=null,_r.destroy(),_r=null,vr.destroy(),vr=null,yr=null,br=null,wr=null,xr=null,kr=null,Vn=null,Wn=null,Kn=null,ar.html("");for(var Tn=0;Tn<Gn.length;Tn++)Gn[Tn]===Xn&&(Gn.splice(Tn,1),Tn--)}}),Gn.push(Xn),setTimeout((function(){initialize.call(Xn)}),0)}))},Tn.fn.jPicker.defaults={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 Hn({ahex:"#ffcc00ff"}),quickList:[new Hn({h:360,s:33,v:100}),new Hn({h:360,s:66,v:100}),new Hn({h:360,s:100,v:100}),new Hn({h:360,s:100,v:75}),new Hn({h:360,s:100,v:50}),new Hn({h:180,s:0,v:100}),new Hn({h:30,s:33,v:100}),new Hn({h:30,s:66,v:100}),new Hn({h:30,s:100,v:100}),new Hn({h:30,s:100,v:75}),new Hn({h:30,s:100,v:50}),new Hn({h:180,s:0,v:90}),new Hn({h:60,s:33,v:100}),new Hn({h:60,s:66,v:100}),new Hn({h:60,s:100,v:100}),new Hn({h:60,s:100,v:75}),new Hn({h:60,s:100,v:50}),new Hn({h:180,s:0,v:80}),new Hn({h:90,s:33,v:100}),new Hn({h:90,s:66,v:100}),new Hn({h:90,s:100,v:100}),new Hn({h:90,s:100,v:75}),new Hn({h:90,s:100,v:50}),new Hn({h:180,s:0,v:70}),new Hn({h:120,s:33,v:100}),new Hn({h:120,s:66,v:100}),new Hn({h:120,s:100,v:100}),new Hn({h:120,s:100,v:75}),new Hn({h:120,s:100,v:50}),new Hn({h:180,s:0,v:60}),new Hn({h:150,s:33,v:100}),new Hn({h:150,s:66,v:100}),new Hn({h:150,s:100,v:100}),new Hn({h:150,s:100,v:75}),new Hn({h:150,s:100,v:50}),new Hn({h:180,s:0,v:50}),new Hn({h:180,s:33,v:100}),new Hn({h:180,s:66,v:100}),new Hn({h:180,s:100,v:100}),new Hn({h:180,s:100,v:75}),new Hn({h:180,s:100,v:50}),new Hn({h:180,s:0,v:40}),new Hn({h:210,s:33,v:100}),new Hn({h:210,s:66,v:100}),new Hn({h:210,s:100,v:100}),new Hn({h:210,s:100,v:75}),new Hn({h:210,s:100,v:50}),new Hn({h:180,s:0,v:30}),new Hn({h:240,s:33,v:100}),new Hn({h:240,s:66,v:100}),new Hn({h:240,s:100,v:100}),new Hn({h:240,s:100,v:75}),new Hn({h:240,s:100,v:50}),new Hn({h:180,s:0,v:20}),new Hn({h:270,s:33,v:100}),new Hn({h:270,s:66,v:100}),new Hn({h:270,s:100,v:100}),new Hn({h:270,s:100,v:75}),new Hn({h:270,s:100,v:50}),new Hn({h:180,s:0,v:10}),new Hn({h:300,s:33,v:100}),new Hn({h:300,s:66,v:100}),new Hn({h:300,s:100,v:100}),new Hn({h:300,s:100,v:75}),new Hn({h:300,s:100,v:50}),new Hn({h:180,s:0,v:0}),new Hn({h:330,s:33,v:100}),new Hn({h:330,s:66,v:100}),new Hn({h:330,s:100,v:100}),new Hn({h:330,s:100,v:75}),new Hn({h:330,s:100,v:50}),new Hn]},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}},localization:{text:{title:"Drag Markers To Pick A Color",newColor:"new",currentColor:"current",ok:"OK",cancel:"Cancel"},tooltips:{colors:{newColor:"New Color - Press “OK” To Commit",currentColor:"Click To Revert To Original Color"},buttons:{ok:"Commit To This Color Selection",cancel:"Cancel And Revert To Original Color"},hue:{radio:"Set To “Hue” Color Mode",textbox:"Enter A “Hue” Value (0-360°)"},saturation:{radio:"Set To “Saturation” Color Mode",textbox:"Enter A “Saturation” Value (0-100%)"},value:{radio:"Set To “Value” Color Mode",textbox:"Enter A “Value” Value (0-100%)"},red:{radio:"Set To “Red” Color Mode",textbox:"Enter A “Red” Value (0-255)"},green:{radio:"Set To “Green” Color Mode",textbox:"Enter A “Green” Value (0-255)"},blue:{radio:"Set To “Blue” Color Mode",textbox:"Enter A “Blue” Value (0-255)"},alpha:{radio:"Set To “Alpha” Color Mode",textbox:"Enter A “Alpha” Value (0-100)"},hex:{textbox:"Enter A “Hex” Color Value (#000000-#ffffff)",alpha:"Enter A “Alpha” Value (#00-#ff)"}}}},Tn}].reduce((function(Tn,Un){return Un(Tn)}),jQuery);Vx.tool_scale=1,Vx.exportWindowCt=0,Vx.langChanged=!1,Vx.showSaveWarning=!1,Vx.storagePromptState="ignore";var qx,Wx=[],Xx={lang:"",iconsize:"",bkgd_color:"#FFF",bkgd_url:"",img_save:"embed",save_notice_done:!1,export_notice_done:!1},Yx=["ext-connector","ext-eyedropper","ext-grid","ext-imagelib","ext-markers","ext-overview_window","ext-panning","ext-polygon","ext-shapes","ext-star","ext-storage"],Jx={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,colorPickerCSS:null,initTool:"select",exportWindowType:"new",wireframe:!1,showlayers:!1,no_save_warning:!1,extPath:"./extensions/",imgPath:"./images/",dimensions:[640,480],gridSnapping:!1,gridColor:"#000",baseUnit:"px",snappingStep:10,showRulers:!0,preventAllURLConfig:!1,preventURLContentLoading:!1,lockExtensions:!1,noDefaultExtensions:!1,showGrid:!1,noStorageOnLoad:!1,forceStorage:!1,emptyStorageOnDecline:!1,avoidClientSide:!1,avoidClientSideDownload:!1,avoidClientSideOpen:!1},$x=Vx.uiStrings={},Zx={},ek=!1,tk=!1,nk=!1,rk={},ik={extensions:[],allowedOrigins:[]};function loadSvgString(Tn){return _loadSvgString.apply(this,arguments)}function _loadSvgString(){return(_loadSvgString=_asyncToGenerator(regeneratorRuntime.mark((function _callee21(Tn){var Un,Qn,Dn=arguments;return regeneratorRuntime.wrap((function _callee21$(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:if(Un=Dn.length>1&&void 0!==Dn[1]?Dn[1]:{},Qn=Un.noAlert,!(!1!==qx.setSvgString(Tn))){Hn.next=4;break}return Hn.abrupt("return");case 4:if(Qn){Hn.next=8;break}return Hn.next=7,Kx.alert($x.notification.errorLoadingSVG);case 7:return Hn.abrupt("return");case 8:throw new Error("Error loading SVG");case 9:case"end":return Hn.stop()}}),_callee21)})))).apply(this,arguments)}Vx.pref=function(Tn,Un,Qn){return Qn||Un?(rk[Tn]=Un,void(Vx.curPrefs=rk)):Tn in rk?rk[Tn]:Xx[Tn]},Vx.putLocale=Gx,Vx.readLang=Hx,Vx.setStrings=jx,Vx.loadContentAndPrefs=function(){if(ik.forceStorage||!ik.noStorageOnLoad&&document.cookie.match(/(?:^|;\s*)svgeditstore=(?:prefsAndContent|prefsOnly)/)){if(Vx.storage&&(ik.forceStorage||!ik.noStorageOnLoad&&document.cookie.match(/(?:^|;\s*)svgeditstore=prefsAndContent/))){var Tn="svgedit-"+ik.canvasName,Un=Vx.storage.getItem(Tn);Un&&Vx.loadFromString(Un)}Object.keys(Xx).forEach((function(Tn){var Un="svg-edit-"+Tn;if(Vx.storage){var Qn=Vx.storage.getItem(Un);Qn&&(Xx[Tn]=String(Qn))}else if(window.widget)Xx[Tn]=window.widget.preferenceForKey(Un);else{var Dn=document.cookie.match(new RegExp("(?:^|;\\s*)"+function regexEscape(Tn){return String(Tn).replace(/[.\\+*?[^\]$(){}=!<>|:-]/g,"\\$&")}(encodeURIComponent(Un))+"=([^;]+)"));Xx[Tn]=Dn?decodeURIComponent(Dn[1]):""}}))}},Vx.setConfig=function(Tn,Un){function extendOrAdd(Tn,Un,Qn){Tn[Un]&&"object"===_typeof(Tn[Un])?Kx.extend(!0,Tn[Un],Qn):Tn[Un]=Qn}Un=Un||{},Object.entries(Tn).forEach((function(Tn){var Qn=_slicedToArray(Tn,2),Dn=Qn[0],Hn=Qn[1];if({}.hasOwnProperty.call(Xx,Dn)){if(!1===Un.overwrite&&(ik.preventAllURLConfig||{}.hasOwnProperty.call(rk,Dn)))return;!0===Un.allowInitialUserOverride?Xx[Dn]=Hn:Vx.pref(Dn,Hn)}else if(["extensions","allowedOrigins"].includes(Dn)){if(!1===Un.overwrite&&(ik.preventAllURLConfig||["allowedOrigins"].includes(Dn)||"extensions"===Dn&&ik.lockExtensions))return;ik[Dn]=ik[Dn].concat(Hn)}else if({}.hasOwnProperty.call(Jx,Dn)){if(!1===Un.overwrite&&(ik.preventAllURLConfig||{}.hasOwnProperty.call(ik,Dn)))return;if({}.hasOwnProperty.call(ik,Dn)){if(!1===Un.overwrite)return;extendOrAdd(ik,Dn,Hn)}else!0===Un.allowInitialUserOverride?extendOrAdd(Jx,Dn,Hn):Jx[Dn]&&"object"===_typeof(Jx[Dn])?(ik[Dn]=Array.isArray(Jx[Dn])?[]:{},Kx.extend(!0,ik[Dn],Hn)):ik[Dn]=Hn}})),Vx.curConfig=ik},Vx.setCustomHandlers=function(Tn){return Vx.ready((function(){Tn.open&&(Kx('#tool_open > input[type="file"]').remove(),Kx("#tool_open").show(),qx.open=Tn.open),Tn.save&&(Vx.showSaveWarning=!1,qx.bind("saved",Tn.save)),Tn.exportImage&&(tk=Tn.exportImage,qx.bind("exported",tk)),Tn.exportPDF&&(nk=Tn.exportPDF,qx.bind("exportedPDF",nk))}))},Vx.randomizeIds=function(Tn){qx.randomizeIds(Tn)},Vx.init=function(){try{"localStorage"in window&&(Vx.storage=localStorage)}catch(Tn){}var Tn=[];function setupCurConfig(){(ik=Kx.extend(!0,{},Jx,ik)).noDefaultExtensions||(ik.extensions=ik.extensions.concat(Yx)),["extensions","allowedOrigins"].forEach((function(Tn){ik[Tn]=Kx.grep(ik[Tn],(function(Un,Qn){return Qn===ik[Tn].indexOf(Un)}))})),Vx.curConfig=ik}Kx("#lang_select option").each((function(){Tn.push(this.value)})),function(){var Tn=new URL(location),Un=Tn.search,Qn=Tn.searchParams;if(Un){if(Zx=vd(Qn.toString(),!0),["initStroke","initFill"].forEach((function(Tn){Qn.has("".concat(Tn,"[color]"))&&(Zx[Tn].color=Qn.get("".concat(Tn,"[color]")))})),Qn.has("bkgd_color")&&(Zx.bkgd_color="#"+Qn.get("bkgd_color")),Zx.dimensions&&(Zx.dimensions=Zx.dimensions.split(",")),Zx.extensions&&(Zx.extensions=Zx.extensions.match(/[:/\\]/)?"":Zx.extensions.split(",")),["extPath","imgPath"].forEach((function(Tn){Zx[Tn]&&delete Zx[Tn]})),Vx.setConfig(Zx,{overwrite:!1}),setupCurConfig(),!ik.preventURLContentLoading){var Dn=Zx.source;if(!Dn){var Hn=Qn.get("source");Hn&&Hn.startsWith("data:")&&(Dn=Hn)}if(Dn)return void(Dn.startsWith("data:")?Vx.loadFromDataURI(Dn):Vx.loadFromString(Dn));if(Zx.url)return void Vx.loadFromURL(Zx.url)}Zx.noStorageOnLoad&&!ik.forceStorage||Vx.loadContentAndPrefs()}else setupCurConfig(),Vx.loadContentAndPrefs()}(),function setupCurPrefs(){rk=Kx.extend(!0,{},Xx,rk),Vx.curPrefs=rk}();var Un=Vx.setIcon=function(Tn,Un,Qn){var Dn="string"==typeof Un?Kx.getSvgIcon(Un,!0):Un.clone();Dn?Kx(Tn).empty().append(Dn):console.log("NOTE: Icon image missing: "+Un)},Qn=function(){var Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var Un,Qn,Dn,Hn,Gn,zn;return regeneratorRuntime.wrap((function _callee2$(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return Vn.next=2,Vx.putLocale(Vx.pref("lang"),Tn);case 2:return Un=Vn.sent,Qn=Un.langParam,Dn=Un.langData,Vn.next=7,Ua(Qn,Dn);case 7:return Hn=$x.common,Gn=Hn.ok,zn=Hn.cancel,jQueryPluginDBox(Kx,{ok:Gn,cancel:zn}),Kx.svgIcons(ik.imgPath+"svg_edit_icons.svg",{w:24,h:24,id_match:!1,no_img:!Hd(),fallback_path:ik.imgPath,fallback:{logo:"logo.png",select:"select.png",select_node:"select_node.png",square:"square.png",rect:"rect.png",fh_rect:"freehand-square.png",circle:"circle.png",ellipse:"ellipse.png",fh_ellipse:"freehand-circle.png",pencil:"fhpath.png",pen:"line.png",text:"text.png",path:"path.png",add_subpath:"add_subpath.png",close_path:"closepath.png",open_path:"openpath.png",image:"image.png",zoom:"zoom.png",arrow_right:"flyouth.png",arrow_right_big:"arrow_right_big.png",arrow_down:"dropdown.gif",fill:"fill.png",stroke:"stroke.png",opacity:"opacity.png",new_image:"clear.png",save:"save.png",export:"export.png",open:"open.png",import:"import.png",docprops:"document-properties.png",source:"source.png",wireframe:"wireframe.png",undo:"undo.png",redo:"redo.png",clone:"clone.png",delete:"delete.png",go_up:"go-up.png",go_down:"go-down.png",context_menu:"context_menu.png",move_bottom:"move_bottom.png",move_top:"move_top.png",to_path:"to_path.png",link_controls:"link_controls.png",reorient:"reorient.png",group_elements:"shape_group_elements.png",ungroup:"shape_ungroup.png",unlink_use:"unlink_use.png",width:"width.png",height:"height.png",c_radius:"c_radius.png",angle:"angle.png",blur:"blur.png",fontsize:"fontsize.png",align:"align.png",align_left:"align-left.png",align_center:"align-center.png",align_right:"align-right.png",align_top:"align-top.png",align_middle:"align-middle.png",align_bottom:"align-bottom.png",linecap_butt:"linecap_butt.png",linecap_square:"linecap_square.png",linecap_round:"linecap_round.png",linejoin_miter:"linejoin_miter.png",linejoin_bevel:"linejoin_bevel.png",linejoin_round:"linejoin_round.png",eye:"eye.png",no_color:"no_color.png",ok:"save.png",cancel:"cancel.png",warning:"warning.png",node_delete:"node_delete.png",node_clone:"node_clone.png",globe_link:"globe_link.png",config:"config.png"},placement:{"#logo":"logo","#tool_clear div,#layer_new":"new_image","#tool_save div":"save","#tool_export div":"export","#tool_open div":"open","#tool_import div":"import","#tool_source":"source","#tool_docprops > div":"docprops","#tool_editor_prefs > div":"config","#tool_editor_homepage > div":"globe_link","#tool_wireframe":"wireframe","#tool_undo":"undo","#tool_redo":"redo","#tool_select":"select","#tool_fhpath":"pencil","#tool_line":"pen","#tool_rect,#tools_rect_show":"rect","#tool_square":"square","#tool_fhrect":"fh_rect","#tool_ellipse,#tools_ellipse_show":"ellipse","#tool_circle":"circle","#tool_fhellipse":"fh_ellipse","#tool_path":"path","#tool_text,#layer_rename":"text","#tool_image":"image","#tool_zoom":"zoom","#tool_clone,#tool_clone_multi":"clone","#tool_node_clone":"node_clone","#layer_delete,#tool_delete,#tool_delete_multi":"delete","#tool_node_delete":"node_delete","#tool_add_subpath":"add_subpath","#tool_openclose_path":"open_path","#tool_move_top":"move_top","#tool_move_bottom":"move_bottom","#tool_topath":"to_path","#tool_node_link":"link_controls","#tool_reorient":"reorient","#tool_group_elements":"group_elements","#tool_ungroup":"ungroup","#tool_unlink_use":"unlink_use","#tool_alignleft, #tool_posleft":"align_left","#tool_aligncenter, #tool_poscenter":"align_center","#tool_alignright, #tool_posright":"align_right","#tool_aligntop, #tool_postop":"align_top","#tool_alignmiddle, #tool_posmiddle":"align_middle","#tool_alignbottom, #tool_posbottom":"align_bottom","#cur_position":"align","#linecap_butt,#cur_linecap":"linecap_butt","#linecap_round":"linecap_round","#linecap_square":"linecap_square","#linejoin_miter,#cur_linejoin":"linejoin_miter","#linejoin_round":"linejoin_round","#linejoin_bevel":"linejoin_bevel","#url_notice":"warning","#layer_up":"go_up","#layer_down":"go_down","#layer_moreopts":"context_menu","#layerlist td.layervis":"eye","#tool_source_save,#tool_docprops_save,#tool_prefs_save":"ok","#tool_source_cancel,#tool_docprops_cancel,#tool_prefs_cancel":"cancel","#rwidthLabel, #iwidthLabel":"width","#rheightLabel, #iheightLabel":"height","#cornerRadiusLabel span":"c_radius","#angleLabel":"angle","#linkLabel,#tool_make_link,#tool_make_link_multi":"globe_link","#zoomLabel":"zoom","#tool_fill label":"fill","#tool_stroke .icon_label":"stroke","#group_opacityLabel":"opacity","#blurLabel":"blur","#font_sizeLabel":"fontsize",".flyout_arrow_horiz":"arrow_right",".dropdown button, #main_button .dropdown":"arrow_down","#palette .palette_item:first, #fill_bg, #stroke_bg":"no_color"},resize:{"#logo .svg_icon":28,".flyout_arrow_horiz .svg_icon":5,".layer_button .svg_icon, #layerlist td.layervis .svg_icon":14,".dropdown button .svg_icon":7,"#main_button .dropdown .svg_icon":9,".palette_item:first .svg_icon":15,"#fill_bg .svg_icon, #stroke_bg .svg_icon":16,".toolbar_button button .svg_icon":16,".stroke_tool div div .svg_icon":20,"#tools_bottom label .svg_icon":18},callback:function callback(Tn){return _asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var Tn,Un,Qn;return regeneratorRuntime.wrap((function _callee3$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Kx(".toolbar_button button > svg, .toolbar_button button > img").each((function(){Kx(this).parent().prepend(this)})),(Tn=Kx("#tools_left")).length&&(Un=Tn.offset().top+Tn.outerHeight()),Qn=Vx.pref("iconsize"),Vx.setIconSize(Qn||(Kx(window).height()<Un?"s":"m")),Kx(".tools_flyout").each((function(){var Tn=Kx("#"+this.id+"_show"),Un=Tn.attr("data-curopt");if(!Tn.children("svg, img").length){var Qn=Kx(Un).children().clone();Qn.length&&(Qn[0].removeAttribute("style"),Tn.append(Qn))}})),Kx("#svg_container")[0].style.visibility="visible",Dn.next=9,Vx.runCallbacks();case 9:case"end":return Dn.stop()}}),_callee3)})))()}}),Vn.prev=10,Vn.next=13,Promise.all(ik.extensions.map(function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn){var Un,Dn,Hn,Gn,zn,Vn;return regeneratorRuntime.wrap((function _callee$(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:return Kn.prev=0,Un="".concat(ik.extPath).concat(Tn,"/").concat(Tn,".js"),Kn.next=4,import(Un);case 4:return Dn=Kn.sent,Hn=Dn.default,Gn=Hn.name,zn=void 0===Gn?Tn:Gn,Vn=Hn.init,Kn.abrupt("return",Vx.addExtension(zn,Vn&&Vn.bind(Vx),{$:Kx,langParam:Qn}));case 9:return Kn.prev=9,Kn.t0=Kn.catch(0),console.error("Extension failed to load: "+Tn+"; ",Kn.t0),Kn.abrupt("return",void 0);case 13:case"end":return Kn.stop()}}),_callee,null,[[0,9]])})));return function(Un){return Tn.apply(this,arguments)}}()));case 13:qx.bind("extensions_added",(function(Tn,Un){ak=!0,Na.setAll(),Kx(".flyout_arrow_horiz:empty").each((function(){Kx(this).append(Kx.getSvgIcon("arrow_right",!0).width(5).height(5))})),"ignore"===Vx.storagePromptState&&yr(!0),ok.forEach((function(Tn){qx.call("message",Tn)}))})),qx.call("extensions_added"),Vn.next=20;break;case 17:Vn.prev=17,Vn.t0=Vn.catch(10),console.log(Vn.t0);case 20:case"end":return Vn.stop()}}),_callee2,null,[[10,17]])})));return function extAndLocaleFunc(){return Un.apply(this,arguments)}}(),Dn={tool_scale:Vx.tool_scale},Hn=function setFlyoutPositions(){Kx(".tools_flyout").each((function(){var Tn=Kx("#"+this.id+"_show"),Un=Tn.offset(),Qn=Un.left,Dn=Un.top,Hn=Tn.outerWidth();Kx(this).css({left:(Qn+Hn)*Vx.tool_scale,top:Dn})}))},Gn=function(){var Tn=/^(?:Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,Un=document.getElementsByTagName("script")[0];for(var Qn in Un.style)if(Tn.test(Qn))return Qn.match(Tn)[0];return"WebkitOpacity"in Un.style?"Webkit":"KhtmlOpacity"in Un.style?"Khtml":""}(),zn=Vx.setIconSize=function(Tn){var Un="#tools_top .toolset, #editor_panel > *, #history_panel > *, #main_button, #tools_left > *, #path_node_panel > *, #multiselected_panel > *, #g_panel > *, #tool_font_size > *, .tools_flyout",Qn=Kx(Un),zn=1;if("number"==typeof Tn)zn=Tn;else{zn={s:.75,m:1,l:1.25,xl:1.5}[Tn]}Dn.tool_scale=Vx.tool_scale=zn,Hn();var Vn=Qn.parents(":hidden");Vn.css("visibility","hidden").show(),function scaleElements(Tn,Un){var Qn=["top","left","bottom","right"];Tn.each((function(){for(var Tn=Kx(this),Dn=Tn.outerWidth()*(Un-1),Hn=Tn.outerHeight()*(Un-1),Gn=0;Gn<4;Gn++){var zn=Qn[Gn],Vn=Tn.data("orig_margin-"+zn);Sf(Vn)&&(Vn=Number.parseInt(Tn.css("margin-"+zn)),Tn.data("orig_margin-"+zn,Vn));var Kn=Vn*Un;"right"===zn?Kn+=Dn:"bottom"===zn&&(Kn+=Hn),Tn.css("margin-"+zn,Kn)}}))}(Qn,zn),Vn.css("visibility","visible").hide(),Vx.pref("iconsize",Tn),Kx("#iconsize").val(Tn);var Kn={"#tools_top":{left:50+Kx("#main_button").width(),height:72},"#tools_left":{width:31,top:74},"div#workarea":{left:38,top:74}},Wn=Kx("#tool_size_rules");if(Wn.length?Wn.empty():Wn=Kx('<style id="tool_size_rules"></style>').appendTo("head"),"m"!==Tn){var Xn="";Kx.each(Kn,(function(Un,Qn){Un="#svg_editor "+Un.replace(/,/g,", #svg_editor"),Xn+=Un+"{",Kx.each(Qn,(function(Un,Qn){var Dn;"number"==typeof Qn?Dn=Qn*zn+"px":(Qn[Tn]||Qn.all)&&(Dn=Qn[Tn]||Qn.all),Xn+=Un+":"+Dn+";"})),Xn+="}"}));var Yn="-"+Gn.toLowerCase()+"-";Xn+=Un+"{"+Yn+"transform: scale("+zn+");} #svg_editor div.toolset .toolset {"+Yn+"transform: scale(1); margin: 1px !important;} #svg_editor .ui-slider {"+Yn+"transform: scale("+1/zn+");}",Wn.text(Xn)}Hn()};Vx.canvas=qx=new Fx(document.getElementById("svgcanvas"),ik);var Vn,Kn,Wn=Kd()?"meta+":"ctrl+",Xn=qx.pathActions,Yn=qx.undoMgr,Jn=Kx("#workarea"),$n=Kx("#cmenu_canvas"),Zn={fill:null,stroke:null},er=null,tr=ik.imgPath+"logo.png",nr="crosshair",rr="crosshair",ir="toolbars";!function(){var Tn=window.opener||window.parent;if(Tn)try{var Un=new Tn.CustomEvent("svgEditorReady",{bubbles:!0,cancelable:!0});Tn.document.documentElement.dispatchEvent(Un)}catch(Tn){}}();for(var ar=function setSelectMode(){var Tn=Kx(".tool_button_current");Tn.length&&"tool_select"!==Tn[0].id&&(Tn.removeClass("tool_button_current").addClass("tool_button"),Kx("#tool_select").addClass("tool_button_current").removeClass("tool_button"),Kx("#styleoverrides").text("\n #svgcanvas svg * {\n cursor: move;\n pointer-events: all;\n }\n #svgcanvas svg {\n cursor: default;\n }\n ")),qx.setMode("select"),Jn.css("cursor","auto")},or=Kx("title:first").text(),sr=[],lr=.1;lr<1e5;lr*=10)sr.push(lr),sr.push(2*lr),sr.push(5*lr);var cr=function toggleHighlightLayer(Tn){var Un,Qn=[],Dn=qx.getCurrentDrawing().getNumLayers();for(Un=0;Un<Dn;Un++)Qn[Un]=qx.getCurrentDrawing().getLayerName(Un);Tn?Qn.forEach((function(Un){Un!==Tn&&qx.getCurrentDrawing().setLayerOpacity(Un,.5)})):Qn.forEach((function(Tn){qx.getCurrentDrawing().setLayerOpacity(Tn,1)}))},ur=function populateLayers(){qx.clearSelection();for(var Tn=Kx("#layerlist tbody").empty(),Un=Kx("#selLayerNames").empty(),Qn=qx.getCurrentDrawing(),Dn=Qn.getCurrentLayerName(),Hn=Kx.getSvgIcon("eye"),Gn=qx.getCurrentDrawing().getNumLayers();Gn--;){var zn=Qn.getLayerName(Gn),Vn=Kx('<tr class="layer">').toggleClass("layersel",zn===Dn),Kn=Kx('<td class="layervis">').toggleClass("layerinvis",!Qn.getLayerVisibility(zn)),Wn=Kx('<td class="layername">'+zn+"</td>");Tn.append(Vn.append(Kn,Wn)),Un.append('<option value="'+zn+'">'+zn+"</option>")}if(void 0!==Hn){var Xn=Hn.clone();Kx("td.layervis",Tn).append(Xn),Kx.resizeSvgIcons({"td.layervis .svg_icon":14})}Kx("#layerlist td.layername").mouseup((function(Tn){Kx("#layerlist tr.layer").removeClass("layersel"),Kx(this.parentNode).addClass("layersel"),qx.setCurrentLayer(this.textContent),Tn.preventDefault()})).mouseover((function(){cr(this.textContent)})).mouseout((function(){cr()})),Kx("#layerlist td.layervis").click((function(){var Tn=Kx(this.parentNode).prevAll().length,Un=Kx("#layerlist tr.layer:eq("+Tn+") td.layername").text(),Qn=Kx(this).hasClass("layerinvis");qx.setLayerVisibility(Un,Qn),Kx(this).toggleClass("layerinvis")}));for(var Yn=5-Kx("#layerlist tr.layer").size();Yn-- >0;)Tn.append('<tr><td style="color:white">_</td><td/></tr>')},dr=!1,hr="",pr=function showSourceEditor(Tn,Un){dr||(dr=!0,hr=qx.getSvgString(),Kx("#save_output_btns").toggle(Boolean(Un)),Kx("#tool_source_back").toggle(!Un),Kx("#svg_source_textarea").val(hr),Kx("#svg_source_editor").fadeIn(),Kx("#svg_source_textarea").focus())},Ar=null,fr=!1,gr=function operaRepaint(){window.opera&&Kx("<p/>").hide().appendTo("body").remove()};function setStrokeOpt(Tn,Qn){var Dn=Tn.id,Hn=_slicedToArray(Dn.split("_"),2),Gn=Hn[0],zn=Hn[1];Qn&&qx.setStrokeAttr("stroke-"+Gn,zn),gr(),Un("#cur_"+Gn,Dn,20),Kx(Tn).addClass("current").siblings().removeClass("current")}var mr=Vx.toolButtonClick=function(Tn,Un){if(Kx(Tn).hasClass("disabled"))return!1;if(Kx(Tn).parent().hasClass("tools_flyout"))return!0;return Un||Kx(".tools_flyout").fadeOut("normal"),Kx("#styleoverrides").text(""),Jn.css("cursor","auto"),Kx(".tool_button_current").removeClass("tool_button_current").addClass("tool_button"),Kx(Tn).addClass("tool_button_current").removeClass("tool_button"),!0},_r=Vx.clickSelect=function(){mr("#tool_select")&&(qx.setMode("select"),Kx("#styleoverrides").text("\n #svgcanvas svg * {\n cursor: move;\n pointer-events: all;\n }\n #svgcanvas svg {\n cursor: default;\n }\n "))},vr=Vx.setImageURL=function(Tn){Tn||(Tn=tr),qx.setImageURL(Tn),Kx("#image_url").val(Tn),Tn.startsWith("data:")?(Kx("#image_url").hide(),Kx("#change_image_url").show()):(qx.embedImage(Tn,(function(Un){Kx("#url_notice").toggle(!Un),tr=Tn})),Kx("#image_url").show(),Kx("#change_image_url").hide())};function setBackground(Tn,Un){Vx.pref("bkgd_color",Tn),Vx.pref("bkgd_url",Un,!0),qx.setBackground(Tn,Un)}function promptImgURL(){return _promptImgURL.apply(this,arguments)}function _promptImgURL(){return(_promptImgURL=_asyncToGenerator(regeneratorRuntime.mark((function _callee16(){var Tn,Un,Qn,Dn,Hn,Gn=arguments;return regeneratorRuntime.wrap((function _callee16$(zn){for(;;)switch(zn.prev=zn.next){case 0:return Tn=Gn.length>0&&void 0!==Gn[0]?Gn[0]:{},Un=Tn.cancelDeletes,Qn=void 0!==Un&&Un,Dn=(Dn=qx.getHref(Ar)).startsWith("data:")?"":Dn,zn.next=5,Kx.prompt($x.notification.enterNewImgURL,Dn);case 5:(Hn=zn.sent)?vr(Hn):Qn&&qx.deleteSelectedElements();case 7:case"end":return zn.stop()}}),_callee16)})))).apply(this,arguments)}function updateRulers(Tn,Un){var Qn,Dn;Un||(Un=qx.getZoom()),Tn||(Tn=Kx("#svgcanvas"));var Hn=3e4,Gn=qx.getContentElem(),zn=wA()[ik.baseUnit];for(Qn=0;Qn<2;Qn++){var Vn=0===Qn,Kn=Vn?"x":"y",Wn=Vn?"width":"height",Xn=Number(Gn.getAttribute(Kn)),Yn=Kx("#ruler_"+Kn+" canvas:first"),Jn=Yn.clone();Yn.replaceWith(Jn);var $n=Jn[0],Zn=Tn[Wn](),er=Zn;$n.parentNode.style[Wn]=er+"px";var tr=$n.getContext("2d"),nr=void 0,rr=void 0,ir=void 0;if(tr.fillStyle="rgb(200,0,0)",tr.fillRect(0,0,$n.width,$n.height),Jn.siblings().remove(),Zn>=Hn){ir=Number.parseInt(Zn/Hn)+1,(nr=[])[0]=tr;var ar=void 0;for(Dn=1;Dn<ir;Dn++)$n[Wn]=Hn,ar=$n.cloneNode(!0),$n.parentNode.append(ar),nr[Dn]=ar.getContext("2d");ar[Wn]=Zn%Hn,Zn=Hn}$n[Wn]=Zn;var or=zn*Un,lr=50/or,cr=1;for(Dn=0;Dn<sr.length&&(cr=rr=sr[Dn],!(lr<=rr));Dn++);var ur=cr*or;tr.font="9px sans-serif";for(var dr=Xn/or%cr*or,hr=dr-ur,pr=0;dr<er;){hr+=ur;var Ar=Math.round(dr)+.5;Vn?(tr.moveTo(Ar,15),tr.lineTo(Ar,0)):(tr.moveTo(15,Ar),tr.lineTo(0,Ar)),rr=(hr-Xn)/or;var fr=void 0;if(cr>=1)fr=Math.round(rr);else{var gr=String(cr).split(".")[1].length;fr=rr.toFixed(gr)}if(0!==fr&&1e3!==fr&&fr%1e3==0&&(fr=fr/1e3+"K"),Vn)tr.fillText(fr,dr+2,8);else{var mr=String(fr).split("");for(Dn=0;Dn<mr.length;Dn++)tr.fillText(mr[Dn],1,dr+9+9*Dn)}var _r=ur/10;for(Dn=1;Dn<10;Dn++){var vr=Math.round(dr+_r*Dn)+.5;if(nr&&vr>Zn){if(pr++,tr.stroke(),pr>=ir){Dn=10,dr=er;continue}tr=nr[pr],dr-=Hn,vr=Math.round(dr+_r*Dn)+.5}var yr=Dn%2?12:10;Vn?(tr.moveTo(vr,15),tr.lineTo(vr,yr)):(tr.moveTo(15,vr),tr.lineTo(yr,vr))}dr+=ur}tr.strokeStyle="#000",tr.stroke()}}var yr=Vx.updateCanvas=function(Tn,Un){var Qn=qx.getZoom(),Dn=Jn,Hn=Kx("#svgcanvas"),Gn=Jn.width(),zn=Jn.height(),Vn=Gn,Kn=zn,Wn=Dn[0].scrollLeft+Vn/2,Xn=Dn[0].scrollTop+Kn/2,Yn=ik.canvas_expansion;Gn=Math.max(Vn,qx.contentW*Qn*Yn),zn=Math.max(Kn,qx.contentH*Qn*Yn),Gn===Vn&&zn===Kn?Jn.css("overflow","hidden"):Jn.css("overflow","scroll");var $n=Hn.height()/2,Zn=Hn.width()/2;Hn.width(Gn).height(zn);var er=zn/2,tr=Gn/2,nr=qx.updateCanvas(Gn,zn),rr=tr/Zn,ir=Gn/2-Vn/2,ar=zn/2-Kn/2;Un?(Un.x+=nr.x,Un.y+=nr.y):Un={x:tr+(Wn-Zn)*rr,y:er+(Xn-$n)*rr};Tn?qx.contentW>Dn.width()?(Jn[0].scrollLeft=nr.x-10,Jn[0].scrollTop=nr.y-10):(Dn[0].scrollLeft=ir,Dn[0].scrollTop=ar):(Dn[0].scrollLeft=Un.x-Vn/2,Dn[0].scrollTop=Un.y-Kn/2),ik.showRulers&&(updateRulers(Hn,Qn),Jn.scroll()),!0!==Zx.storagePrompt&&"ignore"===Vx.storagePromptState&&Kx("#dialog_box").hide()},br=function updateToolButtonState(){var Tn="none"===qx.getColor("fill"),Un="none"===qx.getColor("stroke"),Qn=["#tool_fhpath","#tool_line"],Dn=["#tools_rect .tool_button","#tools_ellipse .tool_button","#tool_text","#tool_path"];Un?Qn.forEach((function(Tn){Kx(Tn).hasClass("tool_button_current")&&_r(),Kx(Tn).addClass("disabled")})):Qn.forEach((function(Tn){Kx(Tn).removeClass("disabled")})),Un&&Tn?Dn.forEach((function(Tn){Kx(Tn).hasClass("tool_button_current")&&_r(),Kx(Tn).addClass("disabled")})):Dn.forEach((function(Tn){Kx(Tn).removeClass("disabled")})),qx.runExtensions("toolButtonStateUpdate",{nofill:Tn,nostroke:Un}),Kx(".tools_flyout").each((function(){var Tn=Kx("#"+this.id+"_show"),Un=!1;Kx(this).children().each((function(){Kx(this).hasClass("disabled")||(Un=!0)})),Tn.toggleClass("disabled",!Un)})),gr()},wr=function updateContextPanel(){var Tn=Ar;Sf(Tn)||Tn.parentNode||(Tn=null);var Qn=qx.getCurrentDrawing().getCurrentLayerName(),Dn=qx.getMode(),Hn="px"!==ik.baseUnit?ik.baseUnit:null,Gn="pathedit"===Dn,zn=Kx("#cmenu_canvas li");if(Kx("#selected_panel, #multiselected_panel, #g_panel, #rect_panel, #circle_panel,#ellipse_panel, #line_panel, #text_panel, #image_panel, #container_panel, #use_panel, #a_panel").hide(),Sf(Tn))fr?(Kx("#multiselected_panel").show(),zn.enableContextMenuItems("#group").disableContextMenuItems("#ungroup")):zn.disableContextMenuItems("#delete,#cut,#copy,#group,#ungroup,#move_front,#move_up,#move_down,#move_back");else{var Vn=Tn.nodeName,Kn=qx.getRotationAngle(Tn);Kx("#angle").val(Kn);var Wn=qx.getBlur(Tn);if(Kx("#blur").val(Wn),Kx("#blur_slider").slider("option","value",Wn),qx.addedNew&&"image"===Vn&&"image"===qx.getMode()&&(qx.getHref(Tn).startsWith("data:")||promptImgURL({cancelDeletes:!0})),Gn||"pathedit"===Dn){var Jn=Xn.getNodePoint();if(Kx("#tool_add_subpath").removeClass("push_button_pressed").addClass("tool_button"),Kx("#tool_node_delete").toggleClass("disabled",!Xn.canDeleteNodes),Un("#tool_openclose_path",Xn.closed_subpath?"open_path":"close_path"),Jn){var Zn=Kx("#seg_type");Hn&&(Jn.x=kA(Jn.x),Jn.y=kA(Jn.y)),Kx("#path_node_x").val(Jn.x),Kx("#path_node_y").val(Jn.y),Jn.type?Zn.val(Jn.type).removeAttr("disabled"):Zn.val(4).attr("disabled","disabled")}return}if(Kx("#selected_panel").show(),["line","circle","ellipse"].includes(Vn))Kx("#xy_panel").hide();else{var er,tr;if(["g","polyline","path"].includes(Vn)){var nr=qx.getStrokedBBox([Tn]);nr&&(er=nr.x,tr=nr.y)}else er=Tn.getAttribute("x"),tr=Tn.getAttribute("y");Hn&&(er=kA(er),tr=kA(tr)),Kx("#selected_x").val(er||0),Kx("#selected_y").val(tr||0),Kx("#xy_panel").show()}var rr=!["image","text","path","g","use"].includes(Vn);Kx("#tool_topath").toggle(rr),Kx("#tool_reorient").toggle("path"===Vn),Kx("#tool_reorient").toggleClass("disabled",0===Kn);var ir={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:[]},ar=Tn.tagName,or=null;if("a"===ar&&(or=qx.getHref(Tn),Kx("#g_panel").show()),"a"===Tn.parentNode.tagName&&(Kx(Tn).siblings().length||(Kx("#a_panel").show(),or=qx.getHref(Tn.parentNode))),Kx("#tool_make_link, #tool_make_link").toggle(!or),or&&Kx("#link_url").val(or),ir[ar]){var sr=ir[ar];if(Kx("#"+ar+"_panel").show(),Kx.each(sr,(function(Un,Qn){var Dn=Tn.getAttribute(Qn);if("px"!==ik.baseUnit&&Tn[Qn]){var Hn=Tn[Qn].baseVal.value;Dn=kA(Hn)}Kx("#"+ar+"_"+Qn).val(Dn||0)})),"text"===ar)Kx("#text_panel").css("display","inline"),Kx("#tool_font_size").css("display","inline"),qx.getItalic()?Kx("#tool_italic").addClass("push_button_pressed").removeClass("tool_button"):Kx("#tool_italic").removeClass("push_button_pressed").addClass("tool_button"),qx.getBold()?Kx("#tool_bold").addClass("push_button_pressed").removeClass("tool_button"):Kx("#tool_bold").removeClass("push_button_pressed").addClass("tool_button"),Kx("#font_family").val(Tn.getAttribute("font-family")),Kx("#font_size").val(Tn.getAttribute("font-size")),Kx("#text").val(Tn.textContent),qx.addedNew&&setTimeout((function(){Kx("#text").focus().select()}),100);else if("image"===ar&&"image"===qx.getMode())vr(qx.getHref(Tn));else if("g"===ar||"use"===ar){Kx("#container_panel").show();var lr=qx.getTitle(),cr=Kx("#g_title")[0];cr.value=lr,function setInputWidth(Tn){var Un=Math.min(Math.max(12+6*Tn.value.length,50),300);Kx(Tn).width(Un)}(cr),Kx("#g_title").prop("disabled","use"===ar)}}zn[("g"===ar?"en":"dis")+"ableContextMenuItems"]("#ungroup"),zn[("g"!==ar&&fr?"en":"dis")+"ableContextMenuItems"]("#group")}Kx("#tool_undo").toggleClass("disabled",0===Yn.getUndoStackSize()),Kx("#tool_redo").toggleClass("disabled",0===Yn.getRedoStackSize()),qx.addedNew=!1,Tn&&!Gn||fr?(Kx("#selLayerNames").removeAttr("disabled").val(Qn),$n.enableContextMenuItems("#delete,#cut,#copy,#move_front,#move_up,#move_down,#move_back")):Kx("#selLayerNames").attr("disabled","disabled")},xr=function updateWireFrame(){if(!ga){var Tn="\n #workarea.wireframe #svgcontent * {\n stroke-width: ".concat(1/qx.getZoom(),"px;\n }\n ");Kx("#wireframe_rules").text(Jn.hasClass("wireframe")?Tn:"")}},kr="",Sr=function updateTitle(Tn){Tn=Tn||qx.getDocumentTitle();var Un=or+(Tn?": "+Tn:"");Kx("title:first").text(Un)};var Cr=function zoomDone(){xr()},Br=qx.zoomChanged=function(Tn,Un,Qn){var Dn=Jn,Hn=qx.setBBoxZoom(Un,Dn.width()-15,Dn.height()-15);if(Hn){var Gn=Hn.zoom,zn=Hn.bbox;Gn<.001?Er({value:.1}):(Kx("#zoom").val((100*Gn).toFixed(1)),Qn?yr():yr(!1,{x:zn.x*Gn+zn.width*Gn/2,y:zn.y*Gn+zn.height*Gn/2}),"zoom"===qx.getMode()&&zn.width&&ar(),Cr())}},Er=function changeZoom(Tn){var Un=Tn.value/100;if(Un<.001)Tn.value=.1;else{var Qn=qx.getZoom(),Dn=Jn;Br(window,{width:0,height:0,x:(Dn[0].scrollLeft+Dn.width()/2)/Qn,y:(Dn[0].scrollTop+Dn.height()/2)/Qn,zoom:Un},!0)}};Kx("#cur_context_panel").delegate("a","click",(function(){var Tn=Kx(this);return Tn.attr("data-root")?qx.leaveContext():qx.setContext(Tn.text()),qx.clearSelection(),!1}));var Nr=function prepPaints(){Zn.fill.prep(),Zn.stroke.prep()},Lr={},Tr=function setFlyoutTitles(){Kx(".tools_flyout").each((function(){var Tn=Kx("#"+this.id+"_show");if(!Tn.data("isLibrary")){var Un=Kx(this).children().map((function(){return this.title})).get();Tn[0].title=Un.join(" / ")}}))},Pr={},Fr=function setupFlyouts(Tn){Kx.each(Tn,(function(Un,Qn){var Dn;Pr[Un]||(Pr[Un]=[]),(Dn=Pr[Un]).push.apply(Dn,_toConsumableArray(Qn));var Hn,Gn=Kx(Un).children().not(".tool_button_evt_handled"),zn=Un+"_show",Vn=Kx(zn),Kn=!1;Gn.addClass("tool_button tool_button_evt_handled").unbind("click mousedown mouseup").each((function(){var Un="#"+this.getAttribute("id"),Dn=Object.entries(Qn).find((function(Tn){var Qn=_slicedToArray(Tn,2);Qn[0];return Qn[1].sel===Un})),Hn=_slicedToArray(Dn,2),Gn=Hn[0],Wn=Hn[1];Lr[Wn.sel]=Wn.fn,Wn.isDefault&&(Kn=Gn);var Xn=function flyoutAction(Un){var Qn,Dn=Wn;if("keydown"===Un.type){var Hn=Kx(Dn.parent+"_show").hasClass("tool_button_current"),Gn=Kx(Dn.parent+"_show").attr("data-curopt");Object.entries(Tn[Wn.parent]).some((function(Qn){var zn=_slicedToArray(Qn,2),Vn=zn[0],Kn=zn[1];return Kn.sel===Gn&&(Un.shiftKey&&Hn?(Vn=Number.parseInt(Vn),Dn=Pr[Wn.parent][Vn+1]||Tn[Wn.parent][0]):Dn=Kn,!0)}))}return!Kx(this).hasClass("disabled")&&(mr(zn)&&Dn.fn(),(Qn=Dn.icon?Kx.getSvgIcon(Dn.icon,!0):Kx(Dn.sel).children().eq(0).clone())[0].setAttribute("width",Vn.width()),Qn[0].setAttribute("height",Vn.height()),Vn.children(":not(.flyout_arrow_horiz)").remove(),Vn.append(Qn).attr("data-curopt",Dn.sel),!0)};return Kx(this).mouseup(Xn),Wn.key&&Kx(document).bind("keydown",Wn.key[0]+" shift+"+Wn.key[0],Xn),!0})),Kn?Vn.attr("data-curopt",Qn[Kn].sel):Vn.attr("data-curopt")||Vn.attr("data-curopt",Qn[0].sel),Vn.mousedown((function(Tn){if(Vn.hasClass("disabled"))return!1;var Qn=Kx(Un),Dn=Kx(zn).position().left+34,Gn=-1*Qn.width(),Kn=Qn.data("shown_popop")?200:0;return Hn=setTimeout((function(){Vn.data("isLibrary")?Qn.css("left",Dn).show():Qn.css("left",Gn).show().animate({left:Dn},150),Qn.data("shown_popop",!0)}),Kn),Tn.preventDefault(),!0})).mouseup((function(Tn){clearTimeout(Hn);var Un=Kx(this).attr("data-curopt");Vn.data("isLibrary")&&Kx(zn.replace("_show","")).is(":visible")?mr(zn,!0):mr(zn)&&Lr[Un]&&Lr[Un]()}))})),Tr(),Hn()},Ur=function makeFlyoutHolder(Tn,Un){return Kx("<div>",{class:"tools_flyout",id:Tn}).appendTo("#svg_editor").append(Un)},Ir=function addAltDropDown(Tn,Qn,Dn,Hn){var Gn=Kx(Tn),zn=Hn.dropUp,Vn=Kx(Qn);zn&&Kx(Tn).addClass("dropup"),Vn.find("li").bind("mouseup",(function(){Hn.seticon&&(Un("#cur_"+Gn[0].id,Kx(this).children()),Kx(this).addClass("current").siblings().removeClass("current"));for(var Tn=arguments.length,Qn=new Array(Tn),zn=0;zn<Tn;zn++)Qn[zn]=arguments[zn];Dn.apply.apply(Dn,[this].concat(Qn))}));var Kn=!1;Kx(window).mouseup((function(Tn){Kn||(Gn.removeClass("down"),Vn.hide(),Vn.css({top:0,left:0})),Kn=!1})),Gn.bind("mousedown",(function(){var Tn=Gn.offset();zn?(Tn.top-=Vn.height(),Tn.left+=8):Tn.top+=Gn.height(),Vn.offset(Tn),Gn.hasClass("down")?(Vn.hide(),Vn.css({top:0,left:0})):(Vn.show(),Kn=!0),Gn.toggleClass("down")})).hover((function(){Kn=!0})).mouseout((function(){Kn=!1})),Hn.multiclick&&Vn.mousedown((function(){Kn=!0}))},Rr=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee4(Tn,Un){var Qn,Dn,Hn,Gn,Kn,Wn,Xn,Yn,Jn,$n,Zn;return regeneratorRuntime.wrap((function _callee4$(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:if(Gn=function _prepResize(){Vn&&(clearTimeout(Vn),Vn=null),Dn||(Vn=setTimeout((function(){Dn=!0,zn(Vx.pref("iconsize"))}),50))},Un){Tn.next=3;break}return Tn.abrupt("return",void 0);case 3:if(Qn=!1,Dn=!1,!Un.langReady){Tn.next=10;break}if(!Vx.langChanged){Tn.next=10;break}return Hn=Vx.pref("lang"),Tn.next=10,Un.langReady({lang:Hn});case 10:if(Kn=function runCallback(){Un.callback&&!Qn&&(Qn=!0,Un.callback.call(Vx))},Wn=[],Un.context_tools&&Kx.each(Un.context_tools,(function(Tn,Un){var Qn,Dn=Un.container_id?' id="'+Un.container_id+'"':"",Hn=Kx("#"+Un.panel);switch(Hn.length||(Hn=Kx("<div>",{id:Un.panel}).appendTo("#tools_top")),Un.type){case"tool_button":Qn='<div class="tool_button">'+Un.id+"</div>";var Gn=Kx(Qn).appendTo(Hn);Un.events&&Kx.each(Un.events,(function(Tn,Un){Kx(Gn).bind(Tn,Un)}));break;case"select":Qn="<label"+Dn+'><select id="'+Un.id+'">',Kx.each(Un.options,(function(Tn,Dn){var Hn=Tn===Un.defval?" selected":"";Qn+='<option value="'+Tn+'"'+Hn+">"+Dn+"</option>"}));var zn=Kx(Qn+="</select></label>").appendTo(Hn).find("select");Kx.each(Un.events,(function(Tn,Un){Kx(zn).bind(Tn,Un)}));break;case"button-select":Qn='<div id="'+Un.id+'" class="dropdown toolset" title="'+Un.title+'"><div id="cur_'+Un.id+'" class="icon_label"></div><button></button></div>';var Vn=Kx('<ul id="'+Un.id+'_opts"></ul>').appendTo("#option_lists");Un.colnum&&Vn.addClass("optcols"+Un.colnum),Kx(Qn).appendTo(Hn).children(),Wn.push({elem:"#"+Un.id,list:"#"+Un.id+"_opts",title:Un.title,callback:Un.events.change,cur:"#cur_"+Un.id});break;case"input":Qn="<label"+Dn+'><span id="'+Un.id+'_label">'+Un.label+':</span><input id="'+Un.id+'" title="'+Un.title+'" size="'+(Un.size||"4")+'" value="'+(Un.defval||"")+'" type="text"/></label>';var Kn=Kx(Qn).appendTo(Hn).find("input");Un.spindata&&Kn.SpinButton(Un.spindata),Un.events&&Kx.each(Un.events,(function(Tn,Un){Kn.bind(Tn,Un)}))}})),Xn=Un.svgicons,!Un.buttons){Tn.next=20;break}if(Yn={},Jn={},$n={},Zn={},Kx.each(Un.buttons,(function(Tn,Un){for(var Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn=Un.id,er=Tn;Kx("#"+Wn).length;)Wn=Un.id+"_"+ ++er;if(Xn){Yn[Wn]=Un.icon,Jn[Wn]=Un.title;var tr=Un.svgicon||Un.id;"app_menu"===Un.type?$n["#"+Wn+" > div"]=tr:$n["#"+Wn]=tr}else Qn=Kx('<img src="'+Un.icon+(Un.title?'" alt="'+Un.title:"")+'">');switch(Un.type){case"mode_flyout":case"mode":Dn="tool_button",Hn="#tools_left";break;case"context":Dn="tool_button",Hn="#"+Un.panel,Kx(Hn).length||Kx("<div>",{id:Un.panel}).appendTo("#tools_top");break;case"app_menu":Dn="",Hn="#main_menu ul"}var nr,rr=Kx(Un.list||"app_menu"===Un.type?"<li/>":"<div/>").attr("id",Wn).attr("title",Un.title).addClass(Dn);if(Un.includeWith||Un.list){if(Un.list){if(rr.addClass("push_button"),Kx("#"+Un.list+"_opts").append(rr),Un.isDefault){Kx("#cur_"+Un.list).append(rr.children().clone());var ir=Un.svgicon||Un.id;$n["#cur_"+Un.list]=ir}}else if(Un.includeWith){var ar,or=Un.includeWith;Gn=(Kn=Kx(or.button)).parent(),Kn.parent().hasClass("tools_flyout")||(ar=Kn[0].id.replace("tool_","tools_"),zn=Kn.clone().attr("id",ar+"_show").append(Kx("<div>",{class:"flyout_arrow_horiz"})),Kn.before(zn),Gn=Ur(ar,Kn)),Vn=Na.getButtonData(or.button),or.isDefault&&($n["#"+ar+"_show"]=Un.id);var sr=Zn["#"+Gn[0].id]=[{sel:"#"+Wn,fn:Un.events.click,icon:Un.id,key:Un.key,isDefault:Boolean(Un.includeWith&&Un.includeWith.isDefault)},Vn],lr="position"in or?or.position:"last",cr=Gn.children().length;!isNaN(lr)&&lr>=0&&lr<cr?Gn.children().eq(lr).before(rr):(Gn.append(rr),sr.reverse())}}else"position"in Un?Kx(Hn).children().eq(Un.position).length?Kx(Hn).children().eq(Un.position).before(rr):Kx(Hn).children().last().after(rr):rr.appendTo(Hn),"mode_flyout"===Un.type?(Gn=(Kn=Kx(rr)).parent(),Kn.parent().hasClass("tools_flyout")||(nr=Kn[0].id.replace("tool_","tools_"),zn=Kn.clone().attr("id",nr+"_show").append(Kx("<div>",{class:"flyout_arrow_horiz"})),Kn.before(zn),(Gn=Ur(nr,Kn)).data("isLibrary",!0),zn.data("isLibrary",!0)),$n["#"+nr+"_show"]=Un.id,Zn["#"+Gn[0].id]=[{sel:"#"+Wn,fn:Un.events.click,icon:Un.id,isDefault:!0}]):"app_menu"===Un.type&&rr.append("<div>").append(Un.title);Xn||rr.append(Qn),Un.list||Kx.each(Un.events,(function(Tn,Qn){"click"===Tn&&"mode"===Un.type?(qd()&&"click"===Tn&&(Tn="mousedown"),Un.includeWith?rr.bind(Tn,Qn):rr.bind(Tn,(function(){mr(rr)&&Qn()})),Un.key&&(Kx(document).bind("keydown",Un.key,Qn),Un.title&&rr.attr("title",Un.title+" ["+Un.key+"]"))):rr.bind(Tn,Qn)})),Fr(Zn)})),Kx.each(Wn,(function(){Ir(this.elem,this.list,this.callback,{seticon:!0})})),!Xn){Tn.next=20;break}return Tn.abrupt("return",new Promise((function(Tn,Un){Kx.svgIcons("".concat(ik.imgPath).concat(Xn),{w:24,h:24,id_match:!1,no_img:!Hd(),fallback:Yn,placement:$n,callback:function callback(Un){"m"!==Vx.pref("iconsize")&&Gn(),Kn(),Tn()}})})));case 20:return Tn.abrupt("return",Kn());case 21:case"end":return Tn.stop()}}),_callee4)})));return function extAdded(Un,Qn){return Tn.apply(this,arguments)}}();qx.bind("selected",(function selectedChanged(Tn,Qn){var Dn=qx.getMode();"select"===Dn&&ar();var Hn="pathedit"===Dn;Ar=1===Qn.length||Sf(Qn[1])?Qn[0]:null,fr=Qn.length>=2&&!Sf(Qn[1]),Sf(Ar)||Hn||function updateToolbar(){var Tn,Un;if(!Sf(Ar))switch(Ar.tagName){case"use":case"image":case"foreignObject":break;case"g":case"a":var Qn=Ar.getElementsByTagName("*"),Dn=null;for(Tn=0,Un=Qn.length;Tn<Un;Tn++){var Hn=Qn[Tn].getAttribute("stroke-width");0===Tn?Dn=Hn:Dn!==Hn&&(Dn=null)}Kx("#stroke_width").val(null===Dn?"":Dn),Zn.fill.update(!0),Zn.stroke.update(!0);break;default:Zn.fill.update(!0),Zn.stroke.update(!0),Kx("#stroke_width").val(Ar.getAttribute("stroke-width")||1),Kx("#stroke_style").val(Ar.getAttribute("stroke-dasharray")||"none");var Gn=Ar.getAttribute("stroke-linejoin")||"miter";Kx("#linejoin_"+Gn).length&&setStrokeOpt(Kx("#linejoin_"+Gn)[0]),Gn=Ar.getAttribute("stroke-linecap")||"butt",Kx("#linecap_"+Gn).length&&setStrokeOpt(Kx("#linecap_"+Gn)[0])}if(!Sf(Ar)){var zn=100*(Ar.getAttribute("opacity")||1);Kx("#group_opacity").val(zn),Kx("#opac_slider").slider("option","value",zn),Kx("#elem_id").val(Ar.id),Kx("#elem_class").val(Ar.getAttribute("class"))}br()}(),function togglePathEditMode(Tn,Qn){Kx("#path_node_panel").toggle(Tn),Kx("#tools_bottom_2,#tools_bottom_3").toggle(!Tn),Tn?(Kx(".tool_button_current").removeClass("tool_button_current").addClass("tool_button"),Kx("#tool_select").addClass("tool_button_current").removeClass("tool_button"),Un("#tool_select","select_node"),fr=!1,Qn.length&&(Ar=Qn[0])):setTimeout((function(){Un("#tool_select","select")}),1e3)}(Hn,Qn),wr(),qx.runExtensions("selectedChanged",{elems:Qn,selectedElement:Ar,multiselected:fr})})),qx.bind("transition",(function elementTransition(Tn,Un){var Qn=qx.getMode(),Dn=Un[0];if(Dn){if(!(fr=Un.length>=2&&!Sf(Un[1])))switch(Qn){case"rotate":var Hn=qx.getRotationAngle(Dn);Kx("#angle").val(Hn),Kx("#tool_reorient").toggleClass("disabled",0===Hn)}qx.runExtensions("elementTransition",{elems:Un})}})),qx.bind("changed",(function elementChanged(Tn,Un){var Qn=qx.getMode();"select"===Qn&&ar(),Un.forEach((function(Tn){var Un=Tn&&"svg"===Tn.tagName;Un||function isLayer(Tn){return Tn&&"g"===Tn.tagName&&Uw.CLASS_REGEX.test(Tn.getAttribute("class"))}(Tn)?(ur(),Un&&yr()):Tn&&Ar&&Sf(Ar.parentNode)&&(Ar=Tn)})),Vx.showSaveWarning=!0,wr(),Ar&&"select"===Qn&&(Zn.fill.update(),Zn.stroke.update()),qx.runExtensions("elementChanged",{elems:Un})})),qx.bind("saved",(function saveHandler(Tn,Un){if(Vx.showSaveWarning=!1,Un='<?xml version="1.0"?>\n'+Un,zd())pr(0,!0);else{var Qn=document.createElement("a");Qn.href="data:image/svg+xml;base64,"+encode64(Un),Qn.download="icon.svg",Qn.style.display="none",document.body.append(Qn),Qn.click();var Dn=Vx.pref("save_notice_done");if("all"!==Dn){var Hn=$x.notification.saveFromBrowser.replace("%s","SVG");Gd()?Un.includes("<defs")?(Hn+="\n\n"+$x.notification.defsFailOnSave,Vx.pref("save_notice_done","all"),Dn="all"):Vx.pref("save_notice_done","part"):Vx.pref("save_notice_done","all"),"part"!==Dn&&Kx.alert(Hn)}}})),qx.bind("exported",(function exportHandler(Tn,Un){var Qn=Un.issues,Dn=Un.exportWindowName;if((er=window.open(ZA||"",Dn))&&!er.closed){if(er.location.href=Un.bloburl||Un.datauri,"all"!==Vx.pref("export_notice_done")){var Hn=$x.notification.saveFromBrowser.replace("%s",Un.type);if(Qn.length){var Gn="\n • ";Hn+="\n\n"+$x.notification.noteTheseIssues+Gn+Qn.join(Gn)}Vx.pref("export_notice_done","all"),er.alert(Hn)}}else Kx.alert($x.notification.popupWindowBlocked)})),qx.bind("exportedPDF",(function(Tn,Un){if(Un.output){var Qn=Un.exportWindowName;Qn&&(er=window.open("",Qn)),er&&!er.closed?er.location.href=Un.output:Kx.alert($x.notification.popupWindowBlocked)}})),qx.bind("zoomed",Br),qx.bind("zoomDone",Cr),qx.bind("updateCanvas",(function(Tn,Un){var Qn=Un.center,Dn=Un.newCtr;yr(Qn,Dn)})),qx.bind("contextset",(function contextChanged(Tn,Un){var Qn="";if(Un){var Dn="";Qn='<a href="#" data-root="y">'+qx.getCurrentDrawing().getCurrentLayerName()+"</a>",Kx(Un).parentsUntil("#svgcontent > g").andSelf().each((function(){this.id&&(Dn+=" > "+this.id,Qn+=this!==Un?' > <a href="#">'+this.id+"</a>":" > "+this.id)})),kr=Dn}else kr=null;Kx("#cur_context_panel").toggle(Boolean(Un)).html(Qn),Sr()})),qx.bind("extension_added",Rr),qx.textActions.setInputElem(Kx("#text")[0]);var Mr='<div class="palette_item" data-rgb="none"></div>';Kx.each(["#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"],(function(Tn,Un){Mr+='<div class="palette_item" style="background-color: '+Un+';" data-rgb="'+Un+'"></div>'})),Kx("#palette").append(Mr);Mr="",Kx.each(["#FFF","#888","#000","chessboard"],(function(Tn,Un){Mr+="chessboard"===Un?'<div class="color_block" data-bgcolor="'+Un+'" style="background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"></div>':'<div class="color_block" data-bgcolor="'+Un+'" style="background-color:'+Un+';"></div>'})),Kx("#bg_blocks").append(Mr);var Qr=Kx("#bg_blocks div"),Or="cur_background";Qr.each((function(){Kx(this).click((function(){Qr.removeClass(Or),Kx(this).addClass(Or)}))})),setBackground(Vx.pref("bkgd_color"),Vx.pref("bkgd_url")),Kx("#image_save_opts input").val([Vx.pref("img_save")]);var Dr=function changeOpacity(Tn,Un){Sf(Un)&&(Un=Tn.value),Kx("#group_opacity").val(Un),Tn&&Tn.handle||Kx("#opac_slider").slider("option","value",Un),qx.setOpacity(Un/100)},jr=function changeBlur(Tn,Un,Qn){Sf(Un)&&(Un=Tn.value),Kx("#blur").val(Un);var Dn=!1;Tn&&Tn.handle||(Kx("#blur_slider").slider("option","value",Un),Dn=!0),Qn?qx.setBlurNoUndo(Un):qx.setBlur(Un,Dn)};Kx("#stroke_style").change((function(){qx.setStrokeAttr("stroke-dasharray",Kx(this).val()),gr()})),Kx("#stroke_linejoin").change((function(){qx.setStrokeAttr("stroke-linejoin",Kx(this).val()),gr()})),Kx("select").change((function(){Kx(this).blur()}));var Hr,Gr,zr,Vr,Kr,qr=!1;Kx("#selLayerNames").change(_asyncToGenerator(regeneratorRuntime.mark((function _callee5(){var Tn,Un,Qn;return regeneratorRuntime.wrap((function _callee5$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(Tn=this.options[this.selectedIndex].value,Un=$x.notification.QmoveElemsToLayer.replace("%s",Tn),Qn=function moveToLayer(Un){Un&&(qr=!0,qx.moveSelectedToLayer(Tn),qx.clearSelection(),ur())},!Tn){Dn.next=14;break}if(!qr){Dn.next=8;break}Qn(!0),Dn.next=14;break;case 8:return Dn.next=10,Kx.confirm(Un);case 10:if(Dn.sent){Dn.next=13;break}return Dn.abrupt("return");case 13:Qn(!0);case 14:case"end":return Dn.stop()}}),_callee5,this)})))),Kx("#font_family").change((function(){qx.setFontFamily(this.value)})),Kx("#seg_type").change((function(){qx.setSegType(Kx(this).val())})),Kx("#text").bind("keyup input",(function(){qx.setTextContent(this.value)})),Kx("#image_url").change((function(){vr(this.value)})),Kx("#link_url").change((function(){this.value.length?qx.setLinkURL(this.value):qx.removeHyperlink()})),Kx("#g_title").change((function(){qx.setGroupTitle(this.value)})),Kx(".attr_changer").change((function(){var Tn=this.getAttribute("data-attr"),Un=this.value;if(!BA(Tn,Un,Ar))return this.value=Ar.getAttribute(Tn),Kx.alert($x.notification.invalidAttrValGiven),!1;if("id"!==Tn&&"class"!==Tn)if(isNaN(Un))Un=qx.convertToNum(Tn,Un);else if("px"!==ik.baseUnit){var Qn=wA();(Ar[Tn]||"pathedit"===qx.getMode()||"x"===Tn||"y"===Tn)&&(Un*=Qn[ik.baseUnit])}if("id"===Tn){var Dn=Ar;qx.clearSelection(),Dn.id=Un,qx.addToSelection([Dn],!0)}else qx.changeSelectedAttribute(Tn,Un);return this.blur(),!0})),Kx("#palette").mouseover((function(){var Tn=Kx('<input type="hidden">');Kx(this).append(Tn),Tn.focus().remove()})),Kx(".palette_item").mousedown((function(Tn){var Un,Qn=Tn.shiftKey||2===Tn.button?"stroke":"fill",Dn=Kx(this).data("rgb");"none"===Dn||"transparent"===Dn||"initial"===Dn?(Dn="none",Un=new Kx.jGraduate.Paint):Un=new Kx.jGraduate.Paint({alpha:100,solidColor:Dn.substr(1)}),Zn[Qn].setPaint(Un),qx.setColor(Qn,Dn),"none"!==Dn&&1!==qx.getPaintOpacity(Qn)&&qx.setPaintOpacity(Qn,1),br()})).bind("contextmenu",(function(Tn){Tn.preventDefault()})),Kx("#toggle_stroke_tools").on("click",(function(){Kx("#tools_bottom").toggleClass("expanded")})),Hr=Jn[0],Gr=null,zr=null,Vr=!1,Kr=!1,Kx("#svgcanvas").bind("mousemove mouseup",(function(Tn){return!1===Vr||(Hr.scrollLeft-=Tn.clientX-Gr,Hr.scrollTop-=Tn.clientY-zr,Gr=Tn.clientX,zr=Tn.clientY,"mouseup"===Tn.type&&(Vr=!1),!1)})).mousedown((function(Tn){return 1!==Tn.button&&!0!==Kr||(Vr=!0,Gr=Tn.clientX,zr=Tn.clientY,!1)})),Kx(window).mouseup((function(){Vr=!1})),Kx(document).bind("keydown","space",(function(Tn){qx.spaceKey=Kr=!0,Tn.preventDefault()})).bind("keyup","space",(function(Tn){Tn.preventDefault(),qx.spaceKey=Kr=!1})).bind("keydown","shift",(function(Tn){"zoom"===qx.getMode()&&Jn.css("cursor",rr)})).bind("keyup","shift",(function(Tn){"zoom"===qx.getMode()&&Jn.css("cursor",nr)})),Vx.setPanning=function(Tn){qx.spaceKey=Kr=Tn},function(){var Tn=Kx("#main_icon"),Un=Kx("#main_icon span"),Qn=Kx("#main_menu"),Dn=!1,Hn=0,Gn=!0,zn=!1;Kx(window).mouseup((function(Un){Dn||(Tn.removeClass("buttondown"),"INPUT"!==Un.target.tagName?Qn.fadeOut(200):zn||(zn=!0,Kx(Un.target).click((function(){Qn.css("margin-left","-9999px").show()})))),Dn=!1})).mousedown((function(Tn){Kx(Tn.target).closest("div.tools_flyout, .contextMenu").length||Kx(".tools_flyout:visible,.contextMenu").fadeOut(250)})),Un.bind("mousedown",(function(){Tn.hasClass("buttondown")?Qn.fadeOut(200):(Qn.css("margin-left",0).show(),Hn||(Hn=Qn.height()),Qn.css("height",0).animate({height:Hn},200),Dn=!0),Tn.toggleClass("buttondown buttonup")})).hover((function(){Dn=!0})).mouseout((function(){Dn=!1}));var Vn=Kx("#main_menu li");Vn.mouseover((function(){Gn="rgba(0, 0, 0, 0)"===Kx(this).css("background-color"),Vn.unbind("mouseover"),Gn&&Vn.mouseover((function(){this.style.backgroundColor="#FFC"})).mouseout((function(){return this.style.backgroundColor="transparent",!0}))}))}(),Vx.addDropDown=function(Tn,Un,Qn){if(Kx(Tn).length){var Dn=Kx(Tn).find("button"),Hn=Kx(Tn).find("ul").attr("id",Kx(Tn)[0].id+"-list");Qn?Kx(Tn).addClass("dropup"):Kx("#option_lists").append(Hn),Hn.find("li").bind("mouseup",Un);var Gn=!1;Kx(window).mouseup((function(Tn){Gn||(Dn.removeClass("down"),Hn.hide()),Gn=!1})),Dn.bind("mousedown",(function(){if(Dn.hasClass("down"))Hn.hide();else{if(!Qn){var Un=Kx(Tn).position();Hn.css({top:Un.top+24,left:Un.left-10})}Hn.show(),Gn=!0}Dn.toggleClass("down")})).hover((function(){Gn=!0})).mouseout((function(){Gn=!1}))}},Vx.addDropDown("#font_family_dropdown",(function(){Kx("#font_family").val(Kx(this).text()).change()})),Vx.addDropDown("#opacity_dropdown",(function(){if(!Kx(this).find("div").length){var Tn=Number.parseInt(Kx(this).text().split("%")[0]);Dr(!1,Tn)}}),!0),Kx("#opac_slider").slider({start:function start(){Kx("#opacity_dropdown li:not(.special)").hide()},stop:function stop(){Kx("#opacity_dropdown li").show(),Kx(window).mouseup()},slide:function slide(Tn,Un){Dr(Un)}}),Vx.addDropDown("#blur_dropdown",Kx.noop);var Wr,Xr,Yr=!1;Kx("#blur_slider").slider({max:10,step:.1,stop:function stop(Tn,Un){Yr=!1,jr(Un),Kx("#blur_dropdown li").show(),Kx(window).mouseup()},start:function start(){Yr=!0},slide:function slide(Tn,Un){jr(Un,null,Yr)}}),Vx.addDropDown("#zoom_dropdown",(function(){var Tn=Kx(this),Un=Tn.data("val");Un?Br(window,Un):Er({value:Number.parseFloat(Tn.text())})}),!0),Ir("#stroke_linecap","#linecap_opts",(function(){setStrokeOpt(this,!0)}),{dropUp:!0}),Ir("#stroke_linejoin","#linejoin_opts",(function(){setStrokeOpt(this,!0)}),{dropUp:!0}),Ir("#tool_position","#position_opts",(function(){var Tn=this.id.replace("tool_pos","").charAt(0);qx.alignSelectedElements(Tn,"page")}),{multiclick:!0}),Xr=function unfocus(){Kx(Wr).blur()},Kx("#svg_editor").find("button, select, input:not(#text)").focus((function(){Wr=this,ir="toolbars",Jn.mousedown(Xr)})).blur((function(){ir="canvas",Jn.unbind("mousedown",Xr),"textedit"===qx.getMode()&&Kx("#text").focus()}));var Jr,$r=function clickFHPath(){mr("#tool_fhpath")&&qx.setMode("fhpath")},Zr=function clickLine(){mr("#tool_line")&&qx.setMode("line")},ei=function clickSquare(){mr("#tool_square")&&qx.setMode("square")},ti=function clickRect(){mr("#tool_rect")&&qx.setMode("rect")},ni=function clickFHRect(){mr("#tool_fhrect")&&qx.setMode("fhrect")},ri=function clickCircle(){mr("#tool_circle")&&qx.setMode("circle")},ii=function clickEllipse(){mr("#tool_ellipse")&&qx.setMode("ellipse")},ai=function clickFHEllipse(){mr("#tool_fhellipse")&&qx.setMode("fhellipse")},oi=function clickImage(){mr("#tool_image")&&qx.setMode("image")},si=function clickZoom(){mr("#tool_zoom")&&(qx.setMode("zoom"),Jn.css("cursor",nr))},li=function zoomImage(Tn){var Un=qx.getResolution();Tn=Tn?Un.zoom*Tn:1,Kx("#zoom").val(100*Tn),qx.setZoom(Tn),Cr(),yr(!0)},ui=function dblclickZoom(){mr("#tool_zoom")&&(li(),ar())},di=function clickText(){mr("#tool_text")&&qx.setMode("text")},hi=function clickPath(){mr("#tool_path")&&qx.setMode("path")},pi=function deleteSelected(){Sf(Ar)&&!fr||qx.deleteSelectedElements()},Ai=function cutSelected(){Sf(Ar)&&!fr||qx.cutSelectedElements()},fi=function copySelected(){Sf(Ar)&&!fr||qx.copySelectedElements()},gi=function pasteInCenter(){var Tn=qx.getZoom(),Un=(Jn[0].scrollLeft+Jn.width()/2)/Tn-qx.contentW,Qn=(Jn[0].scrollTop+Jn.height()/2)/Tn-qx.contentH;qx.pasteElements("point",Un,Qn)},mi=function moveToTopSelected(){Sf(Ar)||qx.moveToTopSelectedElement()},_i=function moveToBottomSelected(){Sf(Ar)||qx.moveToBottomSelectedElement()},vi=function moveUpDownSelected(Tn){Sf(Ar)||qx.moveUpDownSelected(Tn)},yi=function convertToPath(){Sf(Ar)||qx.convertToPath()},wi=function reorientPath(){Sf(Ar)||Xn.reorient()},xi=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee6(){var Tn;return regeneratorRuntime.wrap((function _callee6$(Un){for(;;)switch(Un.prev=Un.next){case 0:if(Sf(Ar)&&!fr){Un.next=5;break}return Un.next=3,Kx.prompt($x.notification.enterNewLinkURL,"http://");case 3:(Tn=Un.sent)&&qx.makeHyperlink(Tn);case 5:case"end":return Un.stop()}}),_callee6)})));return function makeHyperlink(){return Tn.apply(this,arguments)}}(),ki=function moveSelected(Tn,Un){if(!Sf(Ar)||fr){if(ik.gridSnapping){var Qn=qx.getZoom()*ik.snappingStep;Tn*=Qn,Un*=Qn}qx.moveSelectedElements(Tn,Un)}},Si=function linkControlPoints(){Kx("#tool_node_link").toggleClass("push_button_pressed tool_button");var Tn=Kx("#tool_node_link").hasClass("push_button_pressed");Xn.linkControlPoints(Tn)},Ci=function clonePathNode(){Xn.getNodePoint()&&Xn.clonePathNode()},Bi=function deletePathNode(){Xn.getNodePoint()&&Xn.deletePathNode()},Ei=function addSubPath(){var Tn=Kx("#tool_add_subpath"),Un=!Tn.hasClass("push_button_pressed");Tn.toggleClass("push_button_pressed tool_button"),Xn.addSubPath(Un)},Ni=function opencloseSubPath(){Xn.opencloseSubPath()},Li=function selectNext(){qx.cycleElement(1)},Ti=function selectPrev(){qx.cycleElement(0)},Pi=function rotateSelected(Tn,Un){if(!Sf(Ar)&&!fr){Tn||(Un*=-1);var Qn=Number.parseFloat(Kx("#angle").val())+Un;qx.setRotationAngle(Qn),wr()}},Fi=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee7(){var Tn,Un,Qn;return regeneratorRuntime.wrap((function _callee7$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Tn=_slicedToArray(ik.dimensions,2),Un=Tn[0],Qn=Tn[1],Dn.next=3,Kx.confirm($x.notification.QwantToClear);case 3:if(Dn.sent){Dn.next=6;break}return Dn.abrupt("return");case 6:ar(),qx.clear(),qx.setResolution(Un,Qn),yr(!0),li(),ur(),wr(),Nr(),qx.runExtensions("onNewDocument");case 15:case"end":return Dn.stop()}}),_callee7)})));return function clickClear(){return Tn.apply(this,arguments)}}(),Ui=function clickBold(){return qx.setBold(!qx.getBold()),wr(),!1},Ii=function clickItalic(){return qx.setItalic(!qx.getItalic()),wr(),!1},Ri=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee8(){var Tn,Un,Qn,Dn,Hn;return regeneratorRuntime.wrap((function _callee8$(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return Qn=function _openExportWindow(){var Tn,Qn,Dn=$x.notification.loadingImage;if("new"===ik.exportWindowType&&Vx.exportWindowCt++,Un=ik.canvasName+Vx.exportWindowCt,Jr)Qn=Jr;else{if(Tn='<!DOCTYPE html><html>\n <head>\n <meta charset="utf-8">\n <title>'.concat(Dn,"</title>\n </head>\n <body><h1>").concat(Dn,"</h1></body>\n <html>"),"undefined"!=typeof URL&&URL.createObjectURL){var Hn=new Blob([Tn],{type:"text/html"});Qn=URL.createObjectURL(Hn)}else Qn="data:text/html;base64;charset=utf-8,"+encode64(Tn);Jr=Qn}er=window.open(Qn,Un)},Gn.next=3,Kx.select("Select an image type for export: ",["PNG","JPEG","BMP","WEBP","PDF"],(function(){var Tn=Kx(this);"JPEG"===Tn.val()||"WEBP"===Tn.val()?Kx("#image-slider").length||Kx("<div><label>".concat($x.ui.quality,'\n <input id="image-slider"\n type="range" min="1" max="100" value="92" />\n </label></div>')).appendTo(Tn.parent()):Kx("#image-slider").parent().remove()}));case 3:if(Tn=Gn.sent){Gn.next=6;break}return Gn.abrupt("return");case 6:if(Dn=Vd(),"PDF"!==Tn){Gn.next=12;break}nk||Dn||Qn(),qx.exportPDF(Un),Gn.next=16;break;case 12:return tk||Qn(),Hn=Number.parseInt(Kx("#image-slider").val())/100,Gn.next=16,qx.rasterExport(Tn,Hn,Un);case 16:case"end":return Gn.stop()}}),_callee8)})));return function clickExport(){return Tn.apply(this,arguments)}}(),Mi=function clickOpen(){qx.open()},Qi=function clickImport(){},Oi=function clickUndo(){Yn.getUndoStackSize()>0&&(Yn.undo(),ur())},Di=function clickRedo(){Yn.getRedoStackSize()>0&&(Yn.redo(),ur())},ji=function clickGroup(){fr?qx.groupSelectedElements():Ar&&qx.ungroupSelectedElement()},Hi=function clickClone(){qx.cloneSelectedElements(20,20)},Gi=function clickAlign(){var Tn=this.id.replace("tool_align","").charAt(0);qx.alignSelectedElements(Tn,Kx("#align_relative_to").val())},zi=function clickWireframe(){if(Kx("#tool_wireframe").toggleClass("push_button_pressed tool_button"),Jn.toggleClass("wireframe"),!ga){var Tn=Kx("#wireframe_rules");Tn.length?Tn.empty():Kx('<style id="wireframe_rules"></style>').appendTo("head"),xr()}};Kx("#svg_docprops_container, #svg_prefs_container").draggable({cancel:"button,fieldset",containment:"window"}).css("position","absolute");var Vi,Ki,qi=!1,Wi=!1,Xi=function showDocProperties(){if(!qi){qi=!0,Kx("#image_save_opts input").val([Vx.pref("img_save")]);var Tn=qx.getResolution();"px"!==ik.baseUnit&&(Tn.w=kA(Tn.w)+ik.baseUnit,Tn.h=kA(Tn.h)+ik.baseUnit),Kx("#canvas_width").val(Tn.w),Kx("#canvas_height").val(Tn.h),Kx("#canvas_title").val(qx.getDocumentTitle()),Kx("#svg_docprops").show()}},Yi=function showPreferences(){if(!Wi){Wi=!0,Kx("#main_menu").hide();var Tn=rk.bkgd_color,Un=Vx.pref("bkgd_url");Qr.each((function(){var Un=Kx(this),Qn=Un.data("bgcolor")===Tn;Un.toggleClass(Or,Qn)})),Tn||Qr.eq(0).addClass(Or),Un&&Kx("#canvas_bg_url").val(Un),Kx("#grid_snapping_on").prop("checked",ik.gridSnapping),Kx("#grid_snapping_step").attr("value",ik.snappingStep),Kx("#grid_color").attr("value",ik.gridColor),Kx("#svg_prefs").show()}},Ji=function openHomePage(){window.open("https://github.com/SVG-Edit/svgedit","_blank")},$i=function hideSourceEditor(){Kx("#svg_source_editor").hide(),dr=!1,Kx("#svg_source_textarea").blur()},Zi=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee9(){var Tn;return regeneratorRuntime.wrap((function _callee9$(Un){for(;;)switch(Un.prev=Un.next){case 0:if(dr){Un.next=2;break}return Un.abrupt("return");case 2:if(Tn=function saveChanges(){qx.clearSelection(),$i(),li(),ur(),Sr(),Nr()},qx.setSvgString(Kx("#svg_source_textarea").val())){Un.next=11;break}return Un.next=6,Kx.confirm($x.notification.QerrorsRevertToSource);case 6:if(Un.sent){Un.next=9;break}return Un.abrupt("return");case 9:return Tn(),Un.abrupt("return");case 11:Tn(),ar();case 13:case"end":return Un.stop()}}),_callee9)})));return function saveSourceEditor(){return Tn.apply(this,arguments)}}(),ea=function hideDocProperties(){Kx("#svg_docprops").hide(),Kx("#canvas_width,#canvas_height").removeAttr("disabled"),Kx("#resolution")[0].selectedIndex=0,Kx("#image_save_opts input").val([Vx.pref("img_save")]),qi=!1},ta=function hidePreferences(){Kx("#svg_prefs").hide(),Wi=!1},na=function saveDocProperties(){var Tn=Kx("#canvas_title").val();Sr(Tn),qx.setDocumentTitle(Tn);var Un=Kx("#canvas_width"),Qn=Un.val(),Dn=Kx("#canvas_height"),Hn=Dn.val();return"fit"===Qn||BA("width",Qn)?(Un.parent().removeClass("error"),"fit"===Hn||BA("height",Hn)?(Dn.parent().removeClass("error"),qx.setResolution(Qn,Hn)?(Vx.pref("img_save",Kx("#image_save_opts :checked").val()),yr(),ea(),!0):(Kx.alert($x.notification.noContentToFitTo),!1)):(Dn.parent().addClass("error"),Kx.alert($x.notification.invalidAttrValGiven),!1)):(Un.parent().addClass("error"),Kx.alert($x.notification.invalidAttrValGiven),!1)},ra=Vx.savePreferences=_asyncToGenerator(regeneratorRuntime.mark((function _callee10(){var Un,Qn,Dn,Hn;return regeneratorRuntime.wrap((function _callee10$(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:if(setBackground(Kx("#bg_blocks div.cur_background").data("bgcolor")||"#FFF",Kx("#canvas_bg_url").val()),!(Un=Kx("#lang_select").val())||Un===Vx.pref("lang")){Gn.next=11;break}return Gn.next=6,Vx.putLocale(Un,Tn);case 6:return Qn=Gn.sent,Dn=Qn.langParam,Hn=Qn.langData,Gn.next=11,Ua(Dn,Hn);case 11:zn(Kx("#iconsize").val()),ik.gridSnapping=Kx("#grid_snapping_on")[0].checked,ik.snappingStep=Kx("#grid_snapping_step").val(),ik.gridColor=Kx("#grid_color").val(),ik.showRulers=Kx("#show_rulers")[0].checked,Kx("#rulers").toggle(ik.showRulers),ik.showRulers&&updateRulers(),ik.baseUnit=Kx("#base_unit").val(),qx.setConfig(ik),yr(),ta();case 22:case"end":return Gn.stop()}}),_callee10)}))),ia=Kx.noop,aa=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee11(){return regeneratorRuntime.wrap((function _callee11$(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:if(Kx("#dialog_box").hide(),dr||qi||Wi){Tn.next=4;break}return kr&&qx.leaveContext(),Tn.abrupt("return");case 4:if(!dr){Tn.next=15;break}if(hr===Kx("#svg_source_textarea").val()){Tn.next=12;break}return Tn.next=8,Kx.confirm($x.notification.QignoreSourceChanges);case 8:Tn.sent&&$i(),Tn.next=13;break;case 12:$i();case 13:Tn.next=16;break;case 15:qi?ea():Wi&&ta();case 16:ia();case 17:case"end":return Tn.stop()}}),_callee11)})));return function cancelOverlays(){return Tn.apply(this,arguments)}}(),oa={width:Kx(window).width(),height:Kx(window).height()};if(zd()&&(ia=function resetScrollPos(){0===Jn[0].scrollLeft&&0===Jn[0].scrollTop&&(Jn[0].scrollLeft=Kn.left,Jn[0].scrollTop=Kn.top)},Kn={left:Jn[0].scrollLeft,top:Jn[0].scrollTop},Kx(window).resize(ia),Vx.ready((function(){return new Promise((function(Tn,Un){setTimeout((function(){ia(),Tn()}),500)}))})),Jn.scroll((function(){Kn={left:Jn[0].scrollLeft,top:Jn[0].scrollTop}}))),Kx(window).resize((function(Tn){Kx.each(oa,(function(Tn,Un){var Qn=Kx(window)[Tn]();Jn[0]["scroll"+("width"===Tn?"Left":"Top")]-=(Qn-Un)/2,oa[Tn]=Qn})),Hn()})),Jn.scroll((function(){Kx("#ruler_x").length&&(Kx("#ruler_x")[0].scrollLeft=Jn[0].scrollLeft),Kx("#ruler_y").length&&(Kx("#ruler_y")[0].scrollTop=Jn[0].scrollTop)})),Kx("#url_notice").click((function(){Kx.alert(this.title)})),Kx("#change_image_url").click(promptImgURL),Vi="tool_button_current",Ki="",Kx.each(["clear","open","save","source","delete","delete_multi","paste","clone","clone_multi","move_top","move_bottom"],(function(Tn,Un){Ki+=(Tn?",":"")+"#tool_"+Un})),Kx(Ki).mousedown((function(){Kx(this).addClass(Vi)})).bind("mousedown mouseout",(function(){Kx(this).removeClass(Vi)})),Kx("#tool_undo, #tool_redo").mousedown((function(){Kx(this).hasClass("disabled")||Kx(this).addClass(Vi)})).bind("mousedown mouseout",(function(){Kx(this).removeClass(Vi)})),Kd()&&!window.opera)for(var sa=["tool_clear","tool_save","tool_source","tool_undo","tool_redo","tool_clone"],la=sa.length;la--;){var ua=document.getElementById(sa[la]);if(ua){var da=ua.title,ha=da.indexOf("Ctrl+");ua.title=[da.substr(0,ha),"Cmd+",da.substr(ha+5)].join("")}}var pa=function colorPicker(Tn){var Un="stroke_color"===Tn.attr("id")?"stroke":"fill",Qn="stroke"===Un?$x.ui.pick_stroke_paint_opacity:$x.ui.pick_fill_paint_opacity,Dn=Tn.offset(),Hn=Zn[Un].paint;Kx("#color_picker").draggable({cancel:".jGraduate_tabs, .jGraduate_colPick, .jGraduate_gradPick, .jPicker",containment:"window"}).css(ik.colorPickerCSS||{left:Dn.left-140,bottom:40}).jGraduate({images:{clientPath:"./jgraduate/images/"},paint:Hn,window:{pickerTitle:Qn},newstop:"inverse"},(function(Tn){Hn=new Kx.jGraduate.Paint(Tn),Zn[Un].setPaint(Hn),qx.setPaint(Un,Hn),Kx("#color_picker").hide()}),(function(){Kx("#color_picker").hide()}))},Aa=function(){function PaintBox(Tn,Un){_classCallCheck(this,PaintBox);var Qn=ik["fill"===Un?"initFill":"initStroke"],Dn=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n <rect width="16.5" height="16.5"\n fill="#'.concat(Qn.color,'" opacity="').concat(Qn.opacity,'"/>\n <defs><linearGradient id="gradbox_').concat(PaintBox.ctr++,'"/></defs>\n </svg>'),"text/xml").documentElement;(Dn=Kx(Tn)[0].appendChild(document.importNode(Dn,!0))).setAttribute("width",16.5),this.rect=Dn.firstElementChild,this.defs=Dn.getElementsByTagName("defs")[0],this.grad=this.defs.firstElementChild,this.paint=new Kx.jGraduate.Paint({solidColor:Qn.color}),this.type=Un}return _createClass(PaintBox,[{key:"setPaint",value:function setPaint(Tn,Un){this.paint=Tn;var Qn=Tn.type,Dn=Tn.alpha/100,Hn="none";switch(Qn){case"solidColor":Hn="none"!==Tn[Qn]?"#"+Tn[Qn]:Tn[Qn];break;case"linearGradient":case"radialGradient":this.grad.remove(),this.grad=this.defs.appendChild(Tn[Qn]),Hn="url(#"+(this.grad.id="gradbox_"+this.type)+")"}this.rect.setAttribute("fill",Hn),this.rect.setAttribute("opacity",Dn),Un&&(qx.setColor(this.type,this._paintColor,!0),qx.setPaintOpacity(this.type,this._paintOpacity,!0))}},{key:"update",value:function update(Tn){if(Ar){var Un=this.type;switch(Ar.tagName){case"use":case"image":case"foreignObject":return;case"g":case"a":for(var Qn=Ar.getElementsByTagName("*"),Dn=null,Hn=0,Gn=Qn.length;Hn<Gn;Hn++){var zn=Qn[Hn].getAttribute(Un);if(0===Hn)Dn=zn;else if(Dn!==zn){Dn=null;break}}if(null===Dn)return void(this._paintColor=null);this._paintColor=Dn,this._paintOpacity=1;break;default:this._paintOpacity=Number.parseFloat(Ar.getAttribute(Un+"-opacity")),Number.isNaN(this._paintOpacity)&&(this._paintOpacity=1);var Vn="fill"===Un?"black":"none";this._paintColor=Ar.getAttribute(Un)||Vn}Tn&&(qx.setColor(Un,this._paintColor,!0),qx.setPaintOpacity(Un,this._paintOpacity,!0)),this._paintOpacity*=100;var Kn=function getPaint(Tn,Un,Qn){var Dn={alpha:Un};if(Tn.startsWith("url(#")){var Hn=qx.getRefElem(Tn);Dn[(Hn=Hn?Hn.cloneNode(!0):Kx("#"+Qn+"_color defs *")[0]).tagName]=Hn}else Tn.startsWith("#")?Dn.solidColor=Tn.substr(1):Dn.solidColor="none";return new Kx.jGraduate.Paint(Dn)}(this._paintColor,this._paintOpacity,Un);this.setPaint(Kn)}}},{key:"prep",value:function prep(){switch(this.paint.type){case"linearGradient":case"radialGradient":var Tn=new Kx.jGraduate.Paint({copy:this.paint});qx.setPaint(this.type,Tn)}}}]),PaintBox}();Aa.ctr=0,Zn.fill=new Aa("#fill_color","fill"),Zn.stroke=new Aa("#stroke_color","stroke"),Kx("#stroke_width").val(ik.initStroke.width),Kx("#group_opacity").val(100*ik.initOpacity);var fa=Zn.fill.rect.cloneNode(!1);fa.setAttribute("style","vector-effect:non-scaling-stroke");var ga="non-scaling-stroke"===fa.style.vectorEffect;fa.removeAttribute("style");var ma,_a,va=Zn.fill.rect.ownerDocument.createElementNS(yd.SVG,"feGaussianBlur");function deleteLayer(){qx.deleteCurrentLayer()&&(wr(),ur(),Kx("#layerlist tr.layer").removeClass("layersel"),Kx("#layerlist tr.layer:first").addClass("layersel"))}function _cloneLayer(){return(_cloneLayer=_asyncToGenerator(regeneratorRuntime.mark((function _callee17(){var Tn,Un;return regeneratorRuntime.wrap((function _callee17$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Tn=qx.getCurrentDrawing().getCurrentLayerName()+" copy",Qn.next=3,Kx.prompt($x.notification.enterUniqueLayerName,Tn);case 3:if(Un=Qn.sent){Qn.next=6;break}return Qn.abrupt("return");case 6:if(!qx.getCurrentDrawing().hasLayer(Un)){Qn.next=9;break}return Kx.alert($x.notification.dupeLayerName),Qn.abrupt("return");case 9:qx.cloneLayer(Un),wr(),ur();case 12:case"end":return Qn.stop()}}),_callee17)})))).apply(this,arguments)}function moveLayer(Tn){var Un=qx.getCurrentDrawing().getNumLayers(),Qn=Kx("#layerlist tr.layersel").index();(Qn>0||Qn<Un-1)&&(Qn+=Tn,qx.setCurrentLayerPosition(Un-Qn-1),ur())}void 0===va.stdDeviationX&&Kx("#tool_blur").hide(),Kx(va).remove(),ma="-"+Gn.toLowerCase()+"-zoom-",_a=ma+"in",Jn.css("cursor",_a),Jn.css("cursor")===_a&&(nr=_a,rr=ma+"out"),Jn.css("cursor","auto"),setTimeout((function(){qx.embedImage("images/logo.png",(function(Tn){Tn||(Kx("#image_save_opts [value=embed]").attr("disabled","disabled"),Kx("#image_save_opts input").val(["ref"]),Vx.pref("img_save","ref"),Kx("#image_opt_embed").css("color","#666").attr("title",$x.notification.featNotSupported))}))}),1e3),Kx("#fill_color, #tool_fill .icon_label").click((function(){pa(Kx("#fill_color")),br()})),Kx("#stroke_color, #tool_stroke .icon_label").click((function(){pa(Kx("#stroke_color")),br()})),Kx("#group_opacityLabel").click((function(){Kx("#opacity_dropdown button").mousedown(),Kx(window).mouseup()})),Kx("#zoomLabel").click((function(){Kx("#zoom_dropdown button").mousedown(),Kx(window).mouseup()})),Kx("#tool_move_top").mousedown((function(Tn){Kx("#tools_stacking").show(),Tn.preventDefault()})),Kx(".layer_button").mousedown((function(){Kx(this).addClass("layer_buttonpressed")})).mouseout((function(){Kx(this).removeClass("layer_buttonpressed")})).mouseup((function(){Kx(this).removeClass("layer_buttonpressed")})),Kx(".push_button").mousedown((function(){Kx(this).hasClass("disabled")||Kx(this).addClass("push_button_pressed").removeClass("push_button")})).mouseout((function(){Kx(this).removeClass("push_button_pressed").addClass("push_button")})).mouseup((function(){Kx(this).removeClass("push_button_pressed").addClass("push_button")})),Kx("#layer_new").click(_asyncToGenerator(regeneratorRuntime.mark((function _callee12(){var Tn,Un,Qn;return regeneratorRuntime.wrap((function _callee12$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:Un=qx.getCurrentDrawing().getNumLayers();do{Tn=$x.layers.layer+" "+ ++Un}while(qx.getCurrentDrawing().hasLayer(Tn));return Dn.next=4,Kx.prompt($x.notification.enterUniqueLayerName,Tn);case 4:if(Qn=Dn.sent){Dn.next=7;break}return Dn.abrupt("return");case 7:if(!qx.getCurrentDrawing().hasLayer(Qn)){Dn.next=10;break}return Kx.alert($x.notification.dupeLayerName),Dn.abrupt("return");case 10:qx.createLayer(Qn),wr(),ur();case 13:case"end":return Dn.stop()}}),_callee12)})))),Kx("#layer_delete").click(deleteLayer),Kx("#layer_up").click((function(){moveLayer(-1)})),Kx("#layer_down").click((function(){moveLayer(1)})),Kx("#layer_rename").click(_asyncToGenerator(regeneratorRuntime.mark((function _callee13(){var Tn,Un;return regeneratorRuntime.wrap((function _callee13$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Tn=Kx("#layerlist tr.layersel td.layername").text(),Qn.next=3,Kx.prompt($x.notification.enterNewLayerName,"");case 3:if(Un=Qn.sent){Qn.next=6;break}return Qn.abrupt("return");case 6:if(Tn!==Un&&!qx.getCurrentDrawing().hasLayer(Un)){Qn.next=9;break}return Kx.alert($x.notification.layerHasThatName),Qn.abrupt("return");case 9:qx.renameCurrentLayer(Un),ur();case 11:case"end":return Qn.stop()}}),_callee13)}))));var ya=-1,ba=!1,wa=!1,xa=function changeSidePanelWidth(Tn){var Un=Kx("#ruler_x");Kx("#sidepanels").width("+="+Tn),Kx("#layerpanel").width("+="+Tn),Un.css("right",Number.parseInt(Un.css("right"))+Tn),Jn.css("right",Number.parseInt(Jn.css("right"))+Tn),qx.runExtensions("workareaResized")},ka=function resizeSidePanel(Tn){if(wa&&-1!==ya){ba=!0;var Un=ya-Tn.pageX,Qn=Kx("#sidepanels").width();Qn+Un>300?Un=300-Qn:Qn+Un<2&&(Un=2-Qn),0!==Un&&(ya-=Un,xa(Un))}},Sa=function toggleSidePanel(Tn){var Un=window.devicePixelRatio||1,Qn=Kx("#sidepanels").width();xa(((Un<1?Qn:Qn/Un)>2||Tn?0:150*(Un<1?1:Un))-Qn)};Kx("#sidepanel_handle").mousedown((function(Tn){ya=Tn.pageX,Kx(window).mousemove(ka),wa=!1,setTimeout((function(){wa=!0}),20)})).mouseup((function(Tn){ba||Sa(),ya=-1,ba=!1})),Kx(window).mouseup((function(){ya=-1,ba=!1,Kx("#svg_editor").unbind("mousemove",ka)})),ur();Kx(window).bind("load resize",(function centerCanvas(){Jn.css("line-height",Jn.height()+"px")})),Kx("#resolution").change((function(){var Tn=Kx("#canvas_width,#canvas_height");if(this.selectedIndex)if("content"===this.value)Tn.val("fit").attr("disabled","disabled");else{var Un=this.value.split("x");Kx("#canvas_width").val(Un[0]),Kx("#canvas_height").val(Un[1]),Tn.removeAttr("disabled")}else"fit"===Kx("#canvas_width").val()&&Tn.removeAttr("disabled").val(100)})),Kx("input,select").attr("autocomplete","off");var Ca,Ba,Ea=["#tool_source_cancel","#tool_docprops_cancel","#tool_prefs_cancel",".overlay"],Na=(Ca=[{sel:"#tool_select",fn:_r,evt:"click",key:["V",!0]},{sel:"#tool_fhpath",fn:$r,evt:"click",key:["Q",!0]},{sel:"#tool_line",fn:Zr,evt:"click",key:["L",!0],parent:"#tools_line",prepend:!0},{sel:"#tool_rect",fn:ti,evt:"mouseup",key:["R",!0],parent:"#tools_rect",icon:"rect"},{sel:"#tool_square",fn:ei,evt:"mouseup",parent:"#tools_rect",icon:"square"},{sel:"#tool_fhrect",fn:ni,evt:"mouseup",parent:"#tools_rect",icon:"fh_rect"},{sel:"#tool_ellipse",fn:ii,evt:"mouseup",key:["E",!0],parent:"#tools_ellipse",icon:"ellipse"},{sel:"#tool_circle",fn:ri,evt:"mouseup",parent:"#tools_ellipse",icon:"circle"},{sel:"#tool_fhellipse",fn:ai,evt:"mouseup",parent:"#tools_ellipse",icon:"fh_ellipse"},{sel:"#tool_path",fn:hi,evt:"click",key:["P",!0]},{sel:"#tool_text",fn:di,evt:"click",key:["T",!0]},{sel:"#tool_image",fn:oi,evt:"mouseup"},{sel:"#tool_zoom",fn:si,evt:"mouseup",key:["Z",!0]},{sel:"#tool_clear",fn:Fi,evt:"mouseup",key:["N",!0]},{sel:"#tool_save",fn:function fn(){dr?Zi():function clickSave(){var Tn={images:Vx.pref("img_save"),round_digits:6};qx.save(Tn)}()},evt:"mouseup",key:["S",!0]},{sel:"#tool_export",fn:Ri,evt:"mouseup"},{sel:"#tool_open",fn:Mi,evt:"mouseup",key:["O",!0]},{sel:"#tool_import",fn:Qi,evt:"mouseup"},{sel:"#tool_source",fn:pr,evt:"click",key:["U",!0]},{sel:"#tool_wireframe",fn:zi,evt:"click",key:["F",!0]},{key:["esc",!1,!1],fn:function fn(){Ea.every((function(Tn){return Kx(Tn+":hidden").length}))&&qx.clearSelection()},hidekey:!0},{sel:Ea.join(","),fn:aa,evt:"click",key:["esc",!1,!1],hidekey:!0},{sel:"#tool_source_save",fn:Zi,evt:"click"},{sel:"#tool_docprops_save",fn:na,evt:"click"},{sel:"#tool_docprops",fn:Xi,evt:"click"},{sel:"#tool_prefs_save",fn:ra,evt:"click"},{sel:"#tool_editor_prefs",fn:Yi,evt:"click"},{sel:"#tool_editor_homepage",fn:Ji,evt:"click"},{sel:"#tool_open",fn:function fn(){window.dispatchEvent(new CustomEvent("openImage"))},evt:"click"},{sel:"#tool_import",fn:function fn(){window.dispatchEvent(new CustomEvent("importImage"))},evt:"click"},{sel:"#tool_delete,#tool_delete_multi",fn:pi,evt:"click",key:["del/backspace",!0]},{sel:"#tool_reorient",fn:wi,evt:"click"},{sel:"#tool_node_link",fn:Si,evt:"click"},{sel:"#tool_node_clone",fn:Ci,evt:"click"},{sel:"#tool_node_delete",fn:Bi,evt:"click"},{sel:"#tool_openclose_path",fn:Ni,evt:"click"},{sel:"#tool_add_subpath",fn:Ei,evt:"click"},{sel:"#tool_move_top",fn:mi,evt:"click",key:"ctrl+shift+]"},{sel:"#tool_move_bottom",fn:_i,evt:"click",key:"ctrl+shift+["},{sel:"#tool_topath",fn:yi,evt:"click"},{sel:"#tool_make_link,#tool_make_link_multi",fn:xi,evt:"click"},{sel:"#tool_undo",fn:Oi,evt:"click"},{sel:"#tool_redo",fn:Di,evt:"click"},{sel:"#tool_clone,#tool_clone_multi",fn:Hi,evt:"click",key:["D",!0]},{sel:"#tool_group_elements",fn:ji,evt:"click",key:["G",!0]},{sel:"#tool_ungroup",fn:ji,evt:"click"},{sel:"#tool_unlink_use",fn:ji,evt:"click"},{sel:"[id^=tool_align]",fn:Gi,evt:"click"},{sel:"#tool_bold",fn:Ui,evt:"mousedown"},{sel:"#tool_italic",fn:Ii,evt:"mousedown"},{sel:"#sidepanel_handle",fn:Sa,key:["X"]},{sel:"#copy_save_done",fn:aa,evt:"click"},{key:"ctrl+left",fn:function fn(){Pi(0,1)}},{key:"ctrl+right",fn:function fn(){Pi(1,1)}},{key:"ctrl+shift+left",fn:function fn(){Pi(0,5)}},{key:"ctrl+shift+right",fn:function fn(){Pi(1,5)}},{key:"shift+O",fn:Ti},{key:"shift+P",fn:Li},{key:[Wn+"up",!0],fn:function fn(){li(2)}},{key:[Wn+"down",!0],fn:function fn(){li(.5)}},{key:[Wn+"]",!0],fn:function fn(){vi("Up")}},{key:[Wn+"[",!0],fn:function fn(){vi("Down")}},{key:["up",!0],fn:function fn(){ki(0,-1)}},{key:["down",!0],fn:function fn(){ki(0,1)}},{key:["left",!0],fn:function fn(){ki(-1,0)}},{key:["right",!0],fn:function fn(){ki(1,0)}},{key:"shift+up",fn:function fn(){ki(0,-10)}},{key:"shift+down",fn:function fn(){ki(0,10)}},{key:"shift+left",fn:function fn(){ki(-10,0)}},{key:"shift+right",fn:function fn(){ki(10,0)}},{key:["alt+up",!0],fn:function fn(){qx.cloneSelectedElements(0,-1)}},{key:["alt+down",!0],fn:function fn(){qx.cloneSelectedElements(0,1)}},{key:["alt+left",!0],fn:function fn(){qx.cloneSelectedElements(-1,0)}},{key:["alt+right",!0],fn:function fn(){qx.cloneSelectedElements(1,0)}},{key:["alt+shift+up",!0],fn:function fn(){qx.cloneSelectedElements(0,-10)}},{key:["alt+shift+down",!0],fn:function fn(){qx.cloneSelectedElements(0,10)}},{key:["alt+shift+left",!0],fn:function fn(){qx.cloneSelectedElements(-10,0)}},{key:["alt+shift+right",!0],fn:function fn(){qx.cloneSelectedElements(10,0)}},{key:"a",fn:function fn(){qx.selectAllInCurrentLayer()}},{key:Wn+"a",fn:function fn(){qx.selectAllInCurrentLayer()}},{key:Wn+"z",fn:Oi},{key:Wn+"shift+z",fn:Di},{key:Wn+"y",fn:Di},{key:Wn+"x",fn:Ai},{key:Wn+"c",fn:fi},{key:Wn+"v",fn:gi}],Ba={"4/Shift+4":"#tools_rect_show","5/Shift+5":"#tools_ellipse_show"},{setAll:function setAll(){var Tn={},Un={};Ca.forEach((function(Qn){var Dn;if(Qn.sel){if(null===(Dn=zx(Qn.sel)))return!0;if(Qn.evt&&(qd()&&"click"===Qn.evt&&(Qn.evt="mousedown"),Dn.addEventListener(Qn.evt,Qn.fn)),Qn.parent&&Kx(Qn.parent+"_show").length){var Hn=Kx(Qn.parent);Hn.length||(Hn=Ur(Qn.parent.substr(1))),Qn.prepend&&(Dn.style.margin="initial"),Hn[Qn.prepend?"prepend":"append"](Dn),Array.isArray(Tn[Qn.parent])||(Tn[Qn.parent]=[]),Tn[Qn.parent].push(Qn)}}if(Qn.key){var Gn=Qn.key,zn=!1;Array.isArray(Qn.key)&&(Gn=Qn.key[0],Qn.key.length>1&&(zn=Qn.key[1])),Gn=String(Gn);var Vn=Qn.fn;if(Gn.split("/").forEach((function(Tn){Un[Tn]={fn:Vn,pd:zn}})),Qn.sel&&!Qn.hidekey&&Dn.title){var Kn="".concat(Dn.title.split("[")[0]," (").concat(Gn,")");Ba[Gn]=Qn.sel,null===Dn.closest("#main_menu")&&(Dn.title=Kn)}}return!0})),document.addEventListener("keydown",(function(Tn){if("BODY"===Tn.target.nodeName){var Qn="".concat(Tn.metaKey?"meta+":"").concat(Tn.ctrlKey?"ctrl+":"").concat(Tn.key.toLowerCase());Un[Qn]&&(Un[Qn].fn(),Un[Qn].pd&&Tn.preventDefault())}})),Fr(Tn),Kx(".attr_changer, #image_url").bind("keydown","return",(function(Tn){Kx(this).change(),Tn.preventDefault()})),Kx(window).bind("keydown","tab",(function(Tn){"canvas"===ir&&(Tn.preventDefault(),Li())})).bind("keydown","shift+tab",(function(Tn){"canvas"===ir&&(Tn.preventDefault(),Ti())})),Kx("#tool_zoom").dblclick(ui)},setTitles:function setTitles(){Kx.each(Ba,(function(Tn,Un){var Qn=Kx(Un).parents("#main_menu").length;Kx(Un).each((function(){var Un;Un=Qn?Kx(this).text().split(" [")[0]:this.title.split(" [")[0];var Dn="";Kx.each(Tn.split("/"),(function(Tn,Un){var Qn=Un.split("+"),Hn="";Qn.length>1&&(Hn=Qn[0]+"+",Un=Qn[1]),Dn+=(Tn?"/":"")+Hn+($x["key_"+Un]||Un)})),Qn?this.lastChild.textContent=Un+" ["+Dn+"]":this.title=Un+" ["+Dn+"]"}))}))},getButtonData:function getButtonData(Tn){return Object.values(Ca).find((function(Un){return Un.sel===Tn}))}});Vx.ready((function(){var Tn=ik.initTool,Un=Kx("#tools_left, #svg_editor .tools_flyout"),Qn=Un.find("#tool_"+Tn),Dn=Un.find("#"+Tn);(Qn.length?Qn:Dn.length?Dn:Kx("#tool_select")).click().mouseup(),ik.wireframe&&Kx("#tool_wireframe").click(),ik.showlayers&&Sa(),Kx("#rulers").toggle(Boolean(ik.showRulers)),ik.showRulers&&(Kx("#show_rulers")[0].checked=!0),ik.baseUnit&&Kx("#base_unit").val(ik.baseUnit),ik.gridSnapping&&(Kx("#grid_snapping_on")[0].checked=!0),ik.snappingStep&&Kx("#grid_snapping_step").val(ik.snappingStep),ik.gridColor&&Kx("#grid_color").val(ik.gridColor)})),Kx("#rect_rx").SpinButton({min:0,max:1e3,stateObj:Dn,callback:function changeRectRadius(Tn){qx.setRectRadius(Tn.value)}}),Kx("#stroke_width").SpinButton({min:0,max:99,smallStep:.1,stateObj:Dn,callback:function changeStrokeWidth(Tn){var Un=Tn.value;0===Un&&Ar&&["line","polyline"].includes(Ar.nodeName)&&(Un=Tn.value=1),qx.setStrokeWidth(Un)}}),Kx("#angle").SpinButton({min:-180,max:180,step:5,stateObj:Dn,callback:function changeRotationAngle(Tn){qx.setRotationAngle(Tn.value),Kx("#tool_reorient").toggleClass("disabled",0===Number.parseInt(Tn.value))}}),Kx("#font_size").SpinButton({min:.001,stepfunc:function stepFontSize(Tn,Un){var Qn=Number(Tn.value),Dn=Qn+Un,Hn=Dn>=Qn;return 0===Un?Qn:Qn>=24?Hn?Math.round(1.1*Qn):Math.round(Qn/1.1):Qn<=1?Hn?2*Qn:Qn/2:Dn},stateObj:Dn,callback:function changeFontSize(Tn){qx.setFontSize(Tn.value)}}),Kx("#group_opacity").SpinButton({min:0,max:100,step:5,stateObj:Dn,callback:Dr}),Kx("#blur").SpinButton({min:0,max:10,step:.1,stateObj:Dn,callback:jr}),Kx("#zoom").SpinButton({min:.001,max:1e4,step:50,stepfunc:function stepZoom(Tn,Un){var Qn=Number(Tn.value);if(0===Qn)return 100;var Dn=Qn+Un;return 0===Un?Qn:Qn>=100?Dn:Dn>=Qn?2*Qn:Qn/2},stateObj:Dn,callback:Er}).val(100*qx.getZoom()),Kx("#workarea").contextMenu({menu:"cmenu_canvas",inSpeed:0},(function(Tn,Un,Qn){switch(Tn){case"delete":pi();break;case"cut":Ai();break;case"copy":fi();break;case"paste":qx.pasteElements();break;case"paste_in_place":qx.pasteElements("in_place");break;case"group":case"group_elements":qx.groupSelectedElements();break;case"ungroup":qx.ungroupSelectedElement();break;case"move_front":mi();break;case"move_up":vi("Up");break;case"move_down":vi("Down");break;case"move_back":_i();break;default:(function hasCustomHandler(Tn){return Boolean(Bf[Tn])})(Tn)&&function getCustomHandler(Tn){return Bf[Tn].action}(Tn).call()}}));var La=function lmenuFunc(Tn,Un,Qn){switch(Tn){case"dupe":!function cloneLayer(){return _cloneLayer.apply(this,arguments)}();break;case"delete":deleteLayer();break;case"merge_down":!function mergeLayer(){Kx("#layerlist tr.layersel").index()!==qx.getCurrentDrawing().getNumLayers()-1&&(qx.mergeLayer(),wr(),ur())}();break;case"merge_all":qx.mergeAllLayers(),wr(),ur()}};function enableOrDisableClipboard(){var Tn;try{Tn=localStorage.getItem("svgedit_clipboard")}catch(Tn){}$n[(Tn?"en":"dis")+"ableContextMenuItems"]("#paste,#paste_in_place")}if(Kx("#layerlist").contextMenu({menu:"cmenu_layers",inSpeed:0},La),Kx("#layer_moreopts").contextMenu({menu:"cmenu_layers",inSpeed:0,allowLeft:!0},La),Kx(".contextMenu li").mousedown((function(Tn){Tn.preventDefault()})),Kx("#cmenu_canvas li").disableContextMenu(),$n.enableContextMenuItems("#delete,#cut,#copy"),enableOrDisableClipboard(),window.addEventListener("storage",(function(Tn){"svgedit_clipboard"===Tn.key&&enableOrDisableClipboard()})),window.addEventListener("beforeunload",(function(Tn){return 0===Yn.getUndoStackSize()&&(Vx.showSaveWarning=!1),!(!ik.no_save_warning&&Vx.showSaveWarning)||(Tn.returnValue=$x.notification.unsavedChanges,$x.notification.unsavedChanges)})),Vx.canvas.getUIStrings=function(){return $x},Vx.openPrep=function(){return Kx("#main_menu").hide(),0===Yn.getUndoStackSize()||Kx.confirm($x.notification.QwantToOpen)},window.FileReader){var Ta=function importImage(Tn){Kx.process_cancel($x.notification.loadingImage),Tn.stopPropagation(),Tn.preventDefault(),Kx("#main_menu").hide();var Un,Qn="drop"===Tn.type?Tn.dataTransfer.files[0]:this.files[0];Qn?Qn.type.includes("image")&&(Qn.type.includes("svg")?((Un=new FileReader).onloadend=function(Tn){var Un=qx.importSvgString(Tn.target.result,!0);qx.ungroupSelectedElement(),qx.ungroupSelectedElement(),qx.groupSelectedElements(),qx.alignSelectedElements("m","page"),qx.alignSelectedElements("c","page"),qx.selectOnly([Un]),Kx("#dialog_box").hide()},Un.readAsText(Qn)):((Un=new FileReader).onloadend=function(Tn){var Un=Tn.target.result,Qn=100,Dn=100,Hn=new Image;Hn.style.opacity=0,Hn.addEventListener("load",(function(){Qn=Hn.offsetWidth||Hn.naturalWidth||Hn.width,Dn=Hn.offsetHeight||Hn.naturalHeight||Hn.height,function insertNewImage(Tn,Qn){var Dn=qx.addSVGElementFromJson({element:"image",attr:{x:0,y:0,width:Tn,height:Qn,id:qx.getNextId(),style:"pointer-events:inherit"}});qx.setHref(Dn,Un),qx.selectOnly([Dn]),qx.alignSelectedElements("m","page"),qx.alignSelectedElements("c","page"),wr(),Kx("#dialog_box").hide()}(Qn,Dn)})),Hn.src=Un},Un.readAsDataURL(Qn))):Kx("#dialog_box").hide()};Jn[0].addEventListener("dragenter",(function onDragEnter(Tn){Tn.stopPropagation(),Tn.preventDefault()})),Jn[0].addEventListener("dragover",(function onDragOver(Tn){Tn.stopPropagation(),Tn.preventDefault()})),Jn[0].addEventListener("dragleave",(function onDragLeave(Tn){Tn.stopPropagation(),Tn.preventDefault()})),Jn[0].addEventListener("drop",Ta);var Pa=Kx('<input type="file">').change(function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee15(Tn){var Un;return regeneratorRuntime.wrap((function _callee15$(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.next=2,Vx.openPrep();case 2:if(Tn.sent){Tn.next=5;break}return Tn.abrupt("return");case 5:qx.clear(),1===this.files.length&&(Kx.process_cancel($x.notification.loadingImage),(Un=new FileReader).onloadend=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee14(Tn){var Un;return regeneratorRuntime.wrap((function _callee14$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Un=Tn.target,Qn.next=3,loadSvgString(Un.result);case 3:yr();case 4:case"end":return Qn.stop()}}),_callee14)})));return function(Un){return Tn.apply(this,arguments)}}(),Un.readAsText(this.files[0]));case 7:case"end":return Tn.stop()}}),_callee15,this)})));return function(Un){return Tn.apply(this,arguments)}}());Kx("#tool_open").show(),Kx(window).on("openImage",(function(){return Pa.click()}));var Fa=Kx('<input type="file">').change(Ta);Kx("#tool_import").show(),Kx(window).on("importImage",(function(){return Fa.click()}))}yr(!0);var Ua=Vx.setLang=function(Tn,Un){if(Vx.langChanged=!0,Vx.pref("lang",Tn),Kx("#lang_select").val(Tn),Un){document.documentElement.lang=Un.lang,Kx.extend($x,Un);var Qn=Kx("#layerlist tr.layersel td.layername").text()===$x.common.layer+" 1";qx.setUiStrings(Un),Na.setTitles(),Qn&&(qx.renameCurrentLayer($x.common.layer+" 1"),ur()),qx.runExtensions("langChanged",Tn),Tr();Kx.each({"#stroke_color":"#tool_stroke .icon_label, #tool_stroke .color_block","#fill_color":"#tool_fill label, #tool_fill .color_block","#linejoin_miter":"#cur_linejoin","#linecap_butt":"#cur_linecap"},(function(Tn,Un){Kx(Un).attr("title",Kx(Tn)[0].title)})),Kx("#multiselected_panel div[id^=tool_align]").each((function(){Kx("#tool_pos"+this.id.substr(10))[0].title=this.title}))}};Qn()},Vx.ready=function(Tn){return new Promise((function(Un,Qn){ek?Un(Tn()):Wx.push([Tn,Un,Qn])}))},Vx.runCallbacks=_asyncToGenerator(regeneratorRuntime.mark((function _callee18(){return regeneratorRuntime.wrap((function _callee18$(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.prev=0,Tn.next=3,Promise.all(Wx.map((function(Tn){return(0,_slicedToArray(Tn,1)[0])()})));case 3:Tn.next=9;break;case 5:throw Tn.prev=5,Tn.t0=Tn.catch(0),Wx.forEach((function(Tn){(0,_slicedToArray(Tn,3)[2])()})),Tn.t0;case 9:Wx.forEach((function(Tn){(0,_slicedToArray(Tn,2)[1])()})),ek=!0;case 11:case"end":return Tn.stop()}}),_callee18,null,[[0,5]])}))),Vx.loadFromString=function(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Un.noAlert;return Vx.ready(_asyncToGenerator(regeneratorRuntime.mark((function _callee19(){return regeneratorRuntime.wrap((function _callee19$(Un){for(;;)switch(Un.prev=Un.next){case 0:return Un.prev=0,Un.next=3,loadSvgString(Tn,{noAlert:Qn});case 3:Un.next=9;break;case 5:if(Un.prev=5,Un.t0=Un.catch(0),!Qn){Un.next=9;break}throw Un.t0;case 9:case"end":return Un.stop()}}),_callee19,null,[[0,5]])}))))},Vx.disableUI=function(Tn){},Vx.loadFromURL=function(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Un.cache,Dn=Un.noAlert;return Vx.ready((function(){return new Promise((function(Un,Hn){Kx.ajax({url:Tn,dataType:"text",cache:Boolean(Qn),beforeSend:function beforeSend(){Kx.process_cancel($x.notification.loadingImage)},success:function success(Tn){Un(loadSvgString(Tn,{noAlert:Dn}))},error:function error(Tn,Qn,Gn){404!==Tn.status&&Tn.responseText?Un(loadSvgString(Tn.responseText,{noAlert:Dn})):Dn?Hn(new Error("URLLoadFail")):(Kx.alert($x.notification.URLLoadFail+": \n"+Gn),Un())},complete:function complete(){Kx("#dialog_box").hide()}})}))}))},Vx.loadFromDataURI=function(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Un.noAlert;return Vx.ready((function(){var Un=!1,Dn=Tn.match(/^data:image\/svg\+xml;base64,/);Dn?Un=!0:Dn=Tn.match(/^data:image\/svg\+xml(?:;|;utf8)?,/),Dn&&(Dn=Dn[0]);var Hn=Tn.slice(Dn.length);return loadSvgString(Un?decode64(Hn):decodeURIComponent(Hn),{noAlert:Qn})}))},Vx.addExtension=function(Tn,Un,Qn){if(!qx)throw new Error("Extension added too early");return qx.addExtension.call(this,Tn,Un,Qn)},Vx.ready((function(){Ef()}));var ak=!1,ok=[];window.addEventListener("message",(function messageListener(Tn){var Un={data:Tn.data,origin:Tn.origin};ak?qx.call("message",Un):ok.push(Un)})),_asyncToGenerator(regeneratorRuntime.mark((function _callee20(){return regeneratorRuntime.wrap((function _callee20$(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.prev=0,Tn.next=3,Promise.resolve();case 3:Vx.init(),Tn.next=9;break;case 6:Tn.prev=6,Tn.t0=Tn.catch(0),console.error(Tn.t0);case 9:case"end":return Tn.stop()}}),_callee20,null,[[0,6]])})))(),Vx.setConfig({}),Vx.setConfig({},{allowInitialUserOverride:!0}),Vx.setConfig({extensions:[],noDefaultExtensions:!1}),Vx.setConfig({}),Vx.setConfig({});try{XDOMAIN&&(Vx.setConfig({canvasName:"xdomain",allowedOrigins:["*"]}),console.info("xdomain config activated"))}catch(Tn){}var sk=String.fromCharCode,lk=String.fromCodePoint,ck=!!lk&&1!=lk.length;_export({target:"String",stat:!0,forced:ck},{fromCodePoint:function fromCodePoint(Tn){for(var Un,Qn=[],Dn=arguments.length,Hn=0;Dn>Hn;){if(Un=+arguments[Hn++],toAbsoluteIndex(Un,1114111)!==Un)throw RangeError(Un+" is not a valid code point");Qn.push(Un<65536?sk(Un):sk(55296+((Un-=65536)>>10),Un%1024+56320))}return Qn.join("")}});var uk=createCommonjsModule((function(Tn,Un){
|
||
/*!
|
||
* html2canvas 1.0.0-rc.7 <https://html2canvas.hertzen.com>
|
||
* Copyright (c) 2020 Niklas von Hertzen <https://hertzen.com>
|
||
* Released under MIT License
|
||
*/
|
||
Tn.exports=function(){
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
this file except in compliance with the License. You may obtain a copy of the
|
||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
See the Apache Version 2.0 License for specific language governing permissions
|
||
and limitations under the License.
|
||
***************************************************************************** */
|
||
var Tn=function extendStatics(Un,Qn){return(Tn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tn,Un){Tn.__proto__=Un}||function(Tn,Un){for(var Qn in Un)Un.hasOwnProperty(Qn)&&(Tn[Qn]=Un[Qn])})(Un,Qn)};function __extends(Un,Qn){function __(){this.constructor=Un}Tn(Un,Qn),Un.prototype=null===Qn?Object.create(Qn):(__.prototype=Qn.prototype,new __)}var Un=function __assign(){return(Un=Object.assign||function __assign(Tn){for(var Un,Qn=1,Dn=arguments.length;Qn<Dn;Qn++)for(var Hn in Un=arguments[Qn])Object.prototype.hasOwnProperty.call(Un,Hn)&&(Tn[Hn]=Un[Hn]);return Tn}).apply(this,arguments)};function __awaiter(Tn,Un,Qn,Dn){return new(Qn||(Qn=Promise))((function(Hn,Gn){function fulfilled(Tn){try{step(Dn.next(Tn))}catch(Tn){Gn(Tn)}}function rejected(Tn){try{step(Dn.throw(Tn))}catch(Tn){Gn(Tn)}}function step(Tn){Tn.done?Hn(Tn.value):new Qn((function(Un){Un(Tn.value)})).then(fulfilled,rejected)}step((Dn=Dn.apply(Tn,Un||[])).next())}))}function __generator(Tn,Un){var Qn,Dn,Hn,Gn,zn={label:0,sent:function sent(){if(1&Hn[0])throw Hn[1];return Hn[1]},trys:[],ops:[]};return Gn={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(Gn[Symbol.iterator]=function(){return this}),Gn;function verb(Tn){return function(Un){return step([Tn,Un])}}function step(Gn){if(Qn)throw new TypeError("Generator is already executing.");for(;zn;)try{if(Qn=1,Dn&&(Hn=2&Gn[0]?Dn.return:Gn[0]?Dn.throw||((Hn=Dn.return)&&Hn.call(Dn),0):Dn.next)&&!(Hn=Hn.call(Dn,Gn[1])).done)return Hn;switch(Dn=0,Hn&&(Gn=[2&Gn[0],Hn.value]),Gn[0]){case 0:case 1:Hn=Gn;break;case 4:return zn.label++,{value:Gn[1],done:!1};case 5:zn.label++,Dn=Gn[1],Gn=[0];continue;case 7:Gn=zn.ops.pop(),zn.trys.pop();continue;default:if(!((Hn=(Hn=zn.trys).length>0&&Hn[Hn.length-1])||6!==Gn[0]&&2!==Gn[0])){zn=0;continue}if(3===Gn[0]&&(!Hn||Gn[1]>Hn[0]&&Gn[1]<Hn[3])){zn.label=Gn[1];break}if(6===Gn[0]&&zn.label<Hn[1]){zn.label=Hn[1],Hn=Gn;break}if(Hn&&zn.label<Hn[2]){zn.label=Hn[2],zn.ops.push(Gn);break}Hn[2]&&zn.ops.pop(),zn.trys.pop();continue}Gn=Un.call(Tn,zn)}catch(Tn){Gn=[6,Tn],Dn=0}finally{Qn=Hn=0}if(5&Gn[0])throw Gn[1];return{value:Gn[0]?Gn[1]:void 0,done:!0}}}for(var Qn=function(){function Bounds(Tn,Un,Qn,Dn){this.left=Tn,this.top=Un,this.width=Qn,this.height=Dn}return Bounds.prototype.add=function(Tn,Un,Qn,Dn){return new Bounds(this.left+Tn,this.top+Un,this.width+Qn,this.height+Dn)},Bounds.fromClientRect=function(Tn){return new Bounds(Tn.left,Tn.top,Tn.width,Tn.height)},Bounds}(),Dn=function parseBounds(Tn){return Qn.fromClientRect(Tn.getBoundingClientRect())},Hn=function parseDocumentSize(Tn){var Un=Tn.body,Dn=Tn.documentElement;if(!Un||!Dn)throw new Error("Unable to get document size");var Hn=Math.max(Math.max(Un.scrollWidth,Dn.scrollWidth),Math.max(Un.offsetWidth,Dn.offsetWidth),Math.max(Un.clientWidth,Dn.clientWidth)),Gn=Math.max(Math.max(Un.scrollHeight,Dn.scrollHeight),Math.max(Un.offsetHeight,Dn.offsetHeight),Math.max(Un.clientHeight,Dn.clientHeight));return new Qn(0,0,Hn,Gn)},Gn=function toCodePoints(Tn){for(var Un=[],Qn=0,Dn=Tn.length;Qn<Dn;){var Hn=Tn.charCodeAt(Qn++);if(Hn>=55296&&Hn<=56319&&Qn<Dn){var Gn=Tn.charCodeAt(Qn++);56320==(64512&Gn)?Un.push(((1023&Hn)<<10)+(1023&Gn)+65536):(Un.push(Hn),Qn--)}else Un.push(Hn)}return Un},zn=function fromCodePoint(){for(var Tn=[],Un=0;Un<arguments.length;Un++)Tn[Un]=arguments[Un];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Tn);var Qn=Tn.length;if(!Qn)return"";for(var Dn=[],Hn=-1,Gn="";++Hn<Qn;){var zn=Tn[Hn];zn<=65535?Dn.push(zn):(zn-=65536,Dn.push(55296+(zn>>10),zn%1024+56320)),(Hn+1===Qn||Dn.length>16384)&&(Gn+=String.fromCharCode.apply(String,Dn),Dn.length=0)}return Gn},Vn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Wn=0;Wn<Vn.length;Wn++)Kn[Vn.charCodeAt(Wn)]=Wn;var Xn,Yn=function decode(Tn){var Un,Qn,Dn,Hn,Gn,zn=.75*Tn.length,Vn=Tn.length,Wn=0;"="===Tn[Tn.length-1]&&(zn--,"="===Tn[Tn.length-2]&&zn--);var Xn="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(zn):new Array(zn),Yn=Array.isArray(Xn)?Xn:new Uint8Array(Xn);for(Un=0;Un<Vn;Un+=4)Qn=Kn[Tn.charCodeAt(Un)],Dn=Kn[Tn.charCodeAt(Un+1)],Hn=Kn[Tn.charCodeAt(Un+2)],Gn=Kn[Tn.charCodeAt(Un+3)],Yn[Wn++]=Qn<<2|Dn>>4,Yn[Wn++]=(15&Dn)<<4|Hn>>2,Yn[Wn++]=(3&Hn)<<6|63&Gn;return Xn},Jn=function polyUint16Array(Tn){for(var Un=Tn.length,Qn=[],Dn=0;Dn<Un;Dn+=2)Qn.push(Tn[Dn+1]<<8|Tn[Dn]);return Qn},$n=function polyUint32Array(Tn){for(var Un=Tn.length,Qn=[],Dn=0;Dn<Un;Dn+=4)Qn.push(Tn[Dn+3]<<24|Tn[Dn+2]<<16|Tn[Dn+1]<<8|Tn[Dn]);return Qn},Zn=5,er=11,tr=2,nr=65536>>Zn,rr=(1<<Zn)-1,ir=nr+(1024>>Zn)+32,ar=65536>>er,or=(1<<er-Zn)-1,sr=function slice16(Tn,Un,Qn){return Tn.slice?Tn.slice(Un,Qn):new Uint16Array(Array.prototype.slice.call(Tn,Un,Qn))},lr=function slice32(Tn,Un,Qn){return Tn.slice?Tn.slice(Un,Qn):new Uint32Array(Array.prototype.slice.call(Tn,Un,Qn))},cr=function createTrieFromBase64(Tn){var Un=Yn(Tn),Qn=Array.isArray(Un)?$n(Un):new Uint32Array(Un),Dn=Array.isArray(Un)?Jn(Un):new Uint16Array(Un),Hn=24,Gn=sr(Dn,Hn/2,Qn[4]/2),zn=2===Qn[5]?sr(Dn,(Hn+Qn[4])/2):lr(Qn,Math.ceil((Hn+Qn[4])/4));return new ur(Qn[0],Qn[1],Qn[2],Qn[3],Gn,zn)},ur=function(){function Trie(Tn,Un,Qn,Dn,Hn,Gn){this.initialValue=Tn,this.errorValue=Un,this.highStart=Qn,this.highValueIndex=Dn,this.index=Hn,this.data=Gn}return Trie.prototype.get=function(Tn){var Un;if(Tn>=0){if(Tn<55296||Tn>56319&&Tn<=65535)return Un=((Un=this.index[Tn>>Zn])<<tr)+(Tn&rr),this.data[Un];if(Tn<=65535)return Un=((Un=this.index[nr+(Tn-55296>>Zn)])<<tr)+(Tn&rr),this.data[Un];if(Tn<this.highStart)return Un=ir-ar+(Tn>>er),Un=this.index[Un],Un+=Tn>>Zn&or,Un=((Un=this.index[Un])<<tr)+(Tn&rr),this.data[Un];if(Tn<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Trie}(),dr=50,hr=1,pr=2,Ar=3,fr=4,gr=5,mr=7,_r=8,vr=9,yr=10,br=11,wr=12,xr=13,kr=14,Sr=15,Cr=16,Br=17,Er=18,Nr=19,Lr=20,Tr=21,Pr=22,Fr=23,Ur=24,Ir=25,Rr=26,Mr=27,Qr=28,Or=29,Dr=30,jr=31,Hr=32,Gr=33,zr=34,Vr=35,Kr=36,qr=37,Wr=38,Xr=39,Yr=40,Jr=41,$r=42,Zr=43,ei="!",ti="×",ni="÷",ri=cr("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),ii=[Dr,Kr],ai=[hr,pr,Ar,gr],oi=[yr,_r],si=[Mr,Rr],li=ai.concat(oi),ui=[Wr,Xr,Yr,zr,Vr],di=[Sr,xr],hi=function codePointsToCharacterClasses(Tn,Un){void 0===Un&&(Un="strict");var Qn=[],Dn=[],Hn=[];return Tn.forEach((function(Tn,Gn){var zn=ri.get(Tn);if(zn>dr?(Hn.push(!0),zn-=dr):Hn.push(!1),-1!==["normal","auto","loose"].indexOf(Un)&&-1!==[8208,8211,12316,12448].indexOf(Tn))return Dn.push(Gn),Qn.push(Cr);if(zn===fr||zn===br){if(0===Gn)return Dn.push(Gn),Qn.push(Dr);var Vn=Qn[Gn-1];return-1===li.indexOf(Vn)?(Dn.push(Dn[Gn-1]),Qn.push(Vn)):(Dn.push(Gn),Qn.push(Dr))}return Dn.push(Gn),zn===jr?Qn.push("strict"===Un?Tr:qr):zn===$r||zn===Or?Qn.push(Dr):zn===Zr?Tn>=131072&&Tn<=196605||Tn>=196608&&Tn<=262141?Qn.push(qr):Qn.push(Dr):void Qn.push(zn)})),[Dn,Qn,Hn]},pi=function isAdjacentWithSpaceIgnored(Tn,Un,Qn,Dn){var Hn=Dn[Qn];if(Array.isArray(Tn)?-1!==Tn.indexOf(Hn):Tn===Hn)for(var Gn=Qn;Gn<=Dn.length;){if((Kn=Dn[++Gn])===Un)return!0;if(Kn!==yr)break}if(Hn===yr)for(Gn=Qn;Gn>0;){var zn=Dn[--Gn];if(Array.isArray(Tn)?-1!==Tn.indexOf(zn):Tn===zn)for(var Vn=Qn;Vn<=Dn.length;){var Kn;if((Kn=Dn[++Vn])===Un)return!0;if(Kn!==yr)break}if(zn!==yr)break}return!1},Ai=function previousNonSpaceClassType(Tn,Un){for(var Qn=Tn;Qn>=0;){var Dn=Un[Qn];if(Dn!==yr)return Dn;Qn--}return 0},fi=function _lineBreakAtIndex(Tn,Un,Qn,Dn,Hn){if(0===Qn[Dn])return ti;var Gn=Dn-1;if(Array.isArray(Hn)&&!0===Hn[Gn])return ti;var zn=Gn-1,Vn=Gn+1,Kn=Un[Gn],Wn=zn>=0?Un[zn]:0,Xn=Un[Vn];if(Kn===pr&&Xn===Ar)return ti;if(-1!==ai.indexOf(Kn))return ei;if(-1!==ai.indexOf(Xn))return ti;if(-1!==oi.indexOf(Xn))return ti;if(Ai(Gn,Un)===_r)return ni;if(ri.get(Tn[Gn])===br&&(Xn===qr||Xn===Hr||Xn===Gr))return ti;if(Kn===mr||Xn===mr)return ti;if(Kn===vr)return ti;if(-1===[yr,xr,Sr].indexOf(Kn)&&Xn===vr)return ti;if(-1!==[Br,Er,Nr,Ur,Qr].indexOf(Xn))return ti;if(Ai(Gn,Un)===Pr)return ti;if(pi(Fr,Pr,Gn,Un))return ti;if(pi([Br,Er],Tr,Gn,Un))return ti;if(pi(wr,wr,Gn,Un))return ti;if(Kn===yr)return ni;if(Kn===Fr||Xn===Fr)return ti;if(Xn===Cr||Kn===Cr)return ni;if(-1!==[xr,Sr,Tr].indexOf(Xn)||Kn===kr)return ti;if(Wn===Kr&&-1!==di.indexOf(Kn))return ti;if(Kn===Qr&&Xn===Kr)return ti;if(Xn===Lr&&-1!==ii.concat(Lr,Nr,Ir,qr,Hr,Gr).indexOf(Kn))return ti;if(-1!==ii.indexOf(Xn)&&Kn===Ir||-1!==ii.indexOf(Kn)&&Xn===Ir)return ti;if(Kn===Mr&&-1!==[qr,Hr,Gr].indexOf(Xn)||-1!==[qr,Hr,Gr].indexOf(Kn)&&Xn===Rr)return ti;if(-1!==ii.indexOf(Kn)&&-1!==si.indexOf(Xn)||-1!==si.indexOf(Kn)&&-1!==ii.indexOf(Xn))return ti;if(-1!==[Mr,Rr].indexOf(Kn)&&(Xn===Ir||-1!==[Pr,Sr].indexOf(Xn)&&Un[Vn+1]===Ir)||-1!==[Pr,Sr].indexOf(Kn)&&Xn===Ir||Kn===Ir&&-1!==[Ir,Qr,Ur].indexOf(Xn))return ti;if(-1!==[Ir,Qr,Ur,Br,Er].indexOf(Xn))for(var Yn=Gn;Yn>=0;){if((Jn=Un[Yn])===Ir)return ti;if(-1===[Qr,Ur].indexOf(Jn))break;Yn--}if(-1!==[Mr,Rr].indexOf(Xn))for(Yn=-1!==[Br,Er].indexOf(Kn)?zn:Gn;Yn>=0;){var Jn;if((Jn=Un[Yn])===Ir)return ti;if(-1===[Qr,Ur].indexOf(Jn))break;Yn--}if(Wr===Kn&&-1!==[Wr,Xr,zr,Vr].indexOf(Xn)||-1!==[Xr,zr].indexOf(Kn)&&-1!==[Xr,Yr].indexOf(Xn)||-1!==[Yr,Vr].indexOf(Kn)&&Xn===Yr)return ti;if(-1!==ui.indexOf(Kn)&&-1!==[Lr,Rr].indexOf(Xn)||-1!==ui.indexOf(Xn)&&Kn===Mr)return ti;if(-1!==ii.indexOf(Kn)&&-1!==ii.indexOf(Xn))return ti;if(Kn===Ur&&-1!==ii.indexOf(Xn))return ti;if(-1!==ii.concat(Ir).indexOf(Kn)&&Xn===Pr||-1!==ii.concat(Ir).indexOf(Xn)&&Kn===Er)return ti;if(Kn===Jr&&Xn===Jr){for(var $n=Qn[Gn],Zn=1;$n>0&&Un[--$n]===Jr;)Zn++;if(Zn%2!=0)return ti}return Kn===Hr&&Xn===Gr?ti:ni},gi=function cssFormattedClasses(Tn,Un){Un||(Un={lineBreak:"normal",wordBreak:"normal"});var Qn=hi(Tn,Un.lineBreak),Dn=Qn[0],Hn=Qn[1],Gn=Qn[2];return"break-all"!==Un.wordBreak&&"break-word"!==Un.wordBreak||(Hn=Hn.map((function(Tn){return-1!==[Ir,Dr,$r].indexOf(Tn)?qr:Tn}))),[Dn,Hn,"keep-all"===Un.wordBreak?Gn.map((function(Un,Qn){return Un&&Tn[Qn]>=19968&&Tn[Qn]<=40959})):void 0]},mi=function(){function Break(Tn,Un,Qn,Dn){this.codePoints=Tn,this.required=Un===ei,this.start=Qn,this.end=Dn}return Break.prototype.slice=function(){return zn.apply(void 0,this.codePoints.slice(this.start,this.end))},Break}(),_i=function LineBreaker(Tn,Un){var Qn=Gn(Tn),Dn=gi(Qn,Un),Hn=Dn[0],zn=Dn[1],Vn=Dn[2],Kn=Qn.length,Wn=0,Xn=0;return{next:function next(){if(Xn>=Kn)return{done:!0,value:null};for(var Tn=ti;Xn<Kn&&(Tn=fi(Qn,zn,Hn,++Xn,Vn))===ti;);if(Tn!==ti||Xn===Kn){var Un=new mi(Qn,Tn,Wn,Xn);return Wn=Xn,{value:Un,done:!1}}return{done:!0,value:null}}}};!function(Tn){Tn[Tn.STRING_TOKEN=0]="STRING_TOKEN",Tn[Tn.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",Tn[Tn.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",Tn[Tn.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",Tn[Tn.COMMA_TOKEN=4]="COMMA_TOKEN",Tn[Tn.HASH_TOKEN=5]="HASH_TOKEN",Tn[Tn.DELIM_TOKEN=6]="DELIM_TOKEN",Tn[Tn.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",Tn[Tn.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",Tn[Tn.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",Tn[Tn.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",Tn[Tn.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",Tn[Tn.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",Tn[Tn.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",Tn[Tn.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",Tn[Tn.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",Tn[Tn.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",Tn[Tn.NUMBER_TOKEN=17]="NUMBER_TOKEN",Tn[Tn.FUNCTION=18]="FUNCTION",Tn[Tn.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",Tn[Tn.IDENT_TOKEN=20]="IDENT_TOKEN",Tn[Tn.COLUMN_TOKEN=21]="COLUMN_TOKEN",Tn[Tn.URL_TOKEN=22]="URL_TOKEN",Tn[Tn.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",Tn[Tn.CDC_TOKEN=24]="CDC_TOKEN",Tn[Tn.CDO_TOKEN=25]="CDO_TOKEN",Tn[Tn.COLON_TOKEN=26]="COLON_TOKEN",Tn[Tn.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",Tn[Tn.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",Tn[Tn.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",Tn[Tn.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",Tn[Tn.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",Tn[Tn.EOF_TOKEN=32]="EOF_TOKEN"}(Xn||(Xn={}));var vi=1,yi=2,wi=4,xi=8,ki=10,Si=47,Ci=92,Bi=9,Ei=32,Ni=34,Li=61,Ti=35,Pi=36,Fi=37,Ui=39,Ii=40,Ri=41,Mi=95,Qi=45,Oi=33,Di=60,ji=62,Hi=64,Gi=91,zi=93,Vi=61,Ki=123,qi=63,Wi=125,Xi=124,Yi=126,Ji=128,$i=65533,Zi=42,ea=43,ta=44,na=58,ra=59,ia=46,aa=0,oa=8,sa=11,la=14,ua=31,da=127,ha=-1,pa=48,Aa=97,fa=101,ga=102,ma=117,_a=122,va=65,ya=69,ba=70,wa=85,xa=90,ka=function isDigit(Tn){return Tn>=pa&&Tn<=57},Sa=function isSurrogateCodePoint(Tn){return Tn>=55296&&Tn<=57343},Ca=function isHex(Tn){return ka(Tn)||Tn>=va&&Tn<=ba||Tn>=Aa&&Tn<=ga},Ba=function isLowerCaseLetter(Tn){return Tn>=Aa&&Tn<=_a},Ea=function isUpperCaseLetter(Tn){return Tn>=va&&Tn<=xa},Na=function isLetter(Tn){return Ba(Tn)||Ea(Tn)},La=function isNonASCIICodePoint(Tn){return Tn>=Ji},Ta=function isWhiteSpace(Tn){return Tn===ki||Tn===Bi||Tn===Ei},Pa=function isNameStartCodePoint(Tn){return Na(Tn)||La(Tn)||Tn===Mi},Fa=function isNameCodePoint(Tn){return Pa(Tn)||ka(Tn)||Tn===Qi},Ua=function isNonPrintableCodePoint(Tn){return Tn>=aa&&Tn<=oa||Tn===sa||Tn>=la&&Tn<=ua||Tn===da},Ia=function isValidEscape(Tn,Un){return Tn===Ci&&Un!==ki},Ra=function isIdentifierStart(Tn,Un,Qn){return Tn===Qi?Pa(Un)||Ia(Un,Qn):!!Pa(Tn)||!(Tn!==Ci||!Ia(Tn,Un))},Ma=function isNumberStart(Tn,Un,Qn){return Tn===ea||Tn===Qi?!!ka(Un)||Un===ia&&ka(Qn):ka(Tn===ia?Un:Tn)},Qa=function stringToNumber(Tn){var Un=0,Qn=1;Tn[Un]!==ea&&Tn[Un]!==Qi||(Tn[Un]===Qi&&(Qn=-1),Un++);for(var Dn=[];ka(Tn[Un]);)Dn.push(Tn[Un++]);var Hn=Dn.length?parseInt(zn.apply(void 0,Dn),10):0;Tn[Un]===ia&&Un++;for(var Gn=[];ka(Tn[Un]);)Gn.push(Tn[Un++]);var Vn=Gn.length,Kn=Vn?parseInt(zn.apply(void 0,Gn),10):0;Tn[Un]!==ya&&Tn[Un]!==fa||Un++;var Wn=1;Tn[Un]!==ea&&Tn[Un]!==Qi||(Tn[Un]===Qi&&(Wn=-1),Un++);for(var Xn=[];ka(Tn[Un]);)Xn.push(Tn[Un++]);var Yn=Xn.length?parseInt(zn.apply(void 0,Xn),10):0;return Qn*(Hn+Kn*Math.pow(10,-Vn))*Math.pow(10,Wn*Yn)},Oa={type:Xn.LEFT_PARENTHESIS_TOKEN},Da={type:Xn.RIGHT_PARENTHESIS_TOKEN},ja={type:Xn.COMMA_TOKEN},Ha={type:Xn.SUFFIX_MATCH_TOKEN},Ga={type:Xn.PREFIX_MATCH_TOKEN},za={type:Xn.COLUMN_TOKEN},Va={type:Xn.DASH_MATCH_TOKEN},Ka={type:Xn.INCLUDE_MATCH_TOKEN},qa={type:Xn.LEFT_CURLY_BRACKET_TOKEN},Wa={type:Xn.RIGHT_CURLY_BRACKET_TOKEN},Xa={type:Xn.SUBSTRING_MATCH_TOKEN},Ya={type:Xn.BAD_URL_TOKEN},Ja={type:Xn.BAD_STRING_TOKEN},$a={type:Xn.CDO_TOKEN},Za={type:Xn.CDC_TOKEN},eo={type:Xn.COLON_TOKEN},to={type:Xn.SEMICOLON_TOKEN},no={type:Xn.LEFT_SQUARE_BRACKET_TOKEN},ro={type:Xn.RIGHT_SQUARE_BRACKET_TOKEN},io={type:Xn.WHITESPACE_TOKEN},ao={type:Xn.EOF_TOKEN},oo=function(){function Tokenizer(){this._value=[]}return Tokenizer.prototype.write=function(Tn){this._value=this._value.concat(Gn(Tn))},Tokenizer.prototype.read=function(){for(var Tn=[],Un=this.consumeToken();Un!==ao;)Tn.push(Un),Un=this.consumeToken();return Tn},Tokenizer.prototype.consumeToken=function(){var Tn=this.consumeCodePoint();switch(Tn){case Ni:return this.consumeStringToken(Ni);case Ti:var Un=this.peekCodePoint(0),Qn=this.peekCodePoint(1),Dn=this.peekCodePoint(2);if(Fa(Un)||Ia(Qn,Dn)){var Hn=Ra(Un,Qn,Dn)?yi:vi,Gn=this.consumeName();return{type:Xn.HASH_TOKEN,value:Gn,flags:Hn}}break;case Pi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Ha;break;case Ui:return this.consumeStringToken(Ui);case Ii:return Oa;case Ri:return Da;case Zi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Xa;break;case ea:if(Ma(Tn,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Tn),this.consumeNumericToken();break;case ta:return ja;case Qi:var Vn=Tn,Kn=this.peekCodePoint(0),Wn=this.peekCodePoint(1);if(Ma(Vn,Kn,Wn))return this.reconsumeCodePoint(Tn),this.consumeNumericToken();if(Ra(Vn,Kn,Wn))return this.reconsumeCodePoint(Tn),this.consumeIdentLikeToken();if(Kn===Qi&&Wn===ji)return this.consumeCodePoint(),this.consumeCodePoint(),Za;break;case ia:if(Ma(Tn,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Tn),this.consumeNumericToken();break;case Si:if(this.peekCodePoint(0)===Zi)for(this.consumeCodePoint();;){var Yn=this.consumeCodePoint();if(Yn===Zi&&(Yn=this.consumeCodePoint())===Si)return this.consumeToken();if(Yn===ha)return this.consumeToken()}break;case na:return eo;case ra:return to;case Di:if(this.peekCodePoint(0)===Oi&&this.peekCodePoint(1)===Qi&&this.peekCodePoint(2)===Qi)return this.consumeCodePoint(),this.consumeCodePoint(),$a;break;case Hi:var Jn=this.peekCodePoint(0),$n=this.peekCodePoint(1),Zn=this.peekCodePoint(2);if(Ra(Jn,$n,Zn))return Gn=this.consumeName(),{type:Xn.AT_KEYWORD_TOKEN,value:Gn};break;case Gi:return no;case Ci:if(Ia(Tn,this.peekCodePoint(0)))return this.reconsumeCodePoint(Tn),this.consumeIdentLikeToken();break;case zi:return ro;case Vi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Ga;break;case Ki:return qa;case Wi:return Wa;case ma:case wa:var er=this.peekCodePoint(0),tr=this.peekCodePoint(1);return er!==ea||!Ca(tr)&&tr!==qi||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(Tn),this.consumeIdentLikeToken();case Xi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Va;if(this.peekCodePoint(0)===Xi)return this.consumeCodePoint(),za;break;case Yi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Ka;break;case ha:return ao}return Ta(Tn)?(this.consumeWhiteSpace(),io):ka(Tn)?(this.reconsumeCodePoint(Tn),this.consumeNumericToken()):Pa(Tn)?(this.reconsumeCodePoint(Tn),this.consumeIdentLikeToken()):{type:Xn.DELIM_TOKEN,value:zn(Tn)}},Tokenizer.prototype.consumeCodePoint=function(){var Tn=this._value.shift();return void 0===Tn?-1:Tn},Tokenizer.prototype.reconsumeCodePoint=function(Tn){this._value.unshift(Tn)},Tokenizer.prototype.peekCodePoint=function(Tn){return Tn>=this._value.length?-1:this._value[Tn]},Tokenizer.prototype.consumeUnicodeRangeToken=function(){for(var Tn=[],Un=this.consumeCodePoint();Ca(Un)&&Tn.length<6;)Tn.push(Un),Un=this.consumeCodePoint();for(var Qn=!1;Un===qi&&Tn.length<6;)Tn.push(Un),Un=this.consumeCodePoint(),Qn=!0;if(Qn){var Dn=parseInt(zn.apply(void 0,Tn.map((function(Tn){return Tn===qi?pa:Tn}))),16),Hn=parseInt(zn.apply(void 0,Tn.map((function(Tn){return Tn===qi?ba:Tn}))),16);return{type:Xn.UNICODE_RANGE_TOKEN,start:Dn,end:Hn}}var Gn=parseInt(zn.apply(void 0,Tn),16);if(this.peekCodePoint(0)===Qi&&Ca(this.peekCodePoint(1))){this.consumeCodePoint(),Un=this.consumeCodePoint();for(var Vn=[];Ca(Un)&&Vn.length<6;)Vn.push(Un),Un=this.consumeCodePoint();return Hn=parseInt(zn.apply(void 0,Vn),16),{type:Xn.UNICODE_RANGE_TOKEN,start:Gn,end:Hn}}return{type:Xn.UNICODE_RANGE_TOKEN,start:Gn,end:Gn}},Tokenizer.prototype.consumeIdentLikeToken=function(){var Tn=this.consumeName();return"url"===Tn.toLowerCase()&&this.peekCodePoint(0)===Ii?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ii?(this.consumeCodePoint(),{type:Xn.FUNCTION_TOKEN,value:Tn}):{type:Xn.IDENT_TOKEN,value:Tn}},Tokenizer.prototype.consumeUrlToken=function(){var Tn=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ha)return{type:Xn.URL_TOKEN,value:""};var Un=this.peekCodePoint(0);if(Un===Ui||Un===Ni){var Qn=this.consumeStringToken(this.consumeCodePoint());return Qn.type===Xn.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ha||this.peekCodePoint(0)===Ri)?(this.consumeCodePoint(),{type:Xn.URL_TOKEN,value:Qn.value}):(this.consumeBadUrlRemnants(),Ya)}for(;;){var Dn=this.consumeCodePoint();if(Dn===ha||Dn===Ri)return{type:Xn.URL_TOKEN,value:zn.apply(void 0,Tn)};if(Ta(Dn))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ha||this.peekCodePoint(0)===Ri?(this.consumeCodePoint(),{type:Xn.URL_TOKEN,value:zn.apply(void 0,Tn)}):(this.consumeBadUrlRemnants(),Ya);if(Dn===Ni||Dn===Ui||Dn===Ii||Ua(Dn))return this.consumeBadUrlRemnants(),Ya;if(Dn===Ci){if(!Ia(Dn,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Ya;Tn.push(this.consumeEscapedCodePoint())}else Tn.push(Dn)}},Tokenizer.prototype.consumeWhiteSpace=function(){for(;Ta(this.peekCodePoint(0));)this.consumeCodePoint()},Tokenizer.prototype.consumeBadUrlRemnants=function(){for(;;){var Tn=this.consumeCodePoint();if(Tn===Ri||Tn===ha)return;Ia(Tn,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Tokenizer.prototype.consumeStringSlice=function(Tn){for(var Un=6e4,Qn="";Tn>0;){var Dn=Math.min(Un,Tn);Qn+=zn.apply(void 0,this._value.splice(0,Dn)),Tn-=Dn}return this._value.shift(),Qn},Tokenizer.prototype.consumeStringToken=function(Tn){for(var Un="",Qn=0;;){var Dn=this._value[Qn];if(Dn===ha||void 0===Dn||Dn===Tn)return Un+=this.consumeStringSlice(Qn),{type:Xn.STRING_TOKEN,value:Un};if(Dn===ki)return this._value.splice(0,Qn),Ja;if(Dn===Ci){var Hn=this._value[Qn+1];Hn!==ha&&void 0!==Hn&&(Hn===ki?(Un+=this.consumeStringSlice(Qn),Qn=-1,this._value.shift()):Ia(Dn,Hn)&&(Un+=this.consumeStringSlice(Qn),Un+=zn(this.consumeEscapedCodePoint()),Qn=-1))}Qn++}},Tokenizer.prototype.consumeNumber=function(){var Tn=[],Un=wi,Qn=this.peekCodePoint(0);for(Qn!==ea&&Qn!==Qi||Tn.push(this.consumeCodePoint());ka(this.peekCodePoint(0));)Tn.push(this.consumeCodePoint());Qn=this.peekCodePoint(0);var Dn=this.peekCodePoint(1);if(Qn===ia&&ka(Dn))for(Tn.push(this.consumeCodePoint(),this.consumeCodePoint()),Un=xi;ka(this.peekCodePoint(0));)Tn.push(this.consumeCodePoint());Qn=this.peekCodePoint(0),Dn=this.peekCodePoint(1);var Hn=this.peekCodePoint(2);if((Qn===ya||Qn===fa)&&((Dn===ea||Dn===Qi)&&ka(Hn)||ka(Dn)))for(Tn.push(this.consumeCodePoint(),this.consumeCodePoint()),Un=xi;ka(this.peekCodePoint(0));)Tn.push(this.consumeCodePoint());return[Qa(Tn),Un]},Tokenizer.prototype.consumeNumericToken=function(){var Tn=this.consumeNumber(),Un=Tn[0],Qn=Tn[1],Dn=this.peekCodePoint(0),Hn=this.peekCodePoint(1),Gn=this.peekCodePoint(2);if(Ra(Dn,Hn,Gn)){var zn=this.consumeName();return{type:Xn.DIMENSION_TOKEN,number:Un,flags:Qn,unit:zn}}return Dn===Fi?(this.consumeCodePoint(),{type:Xn.PERCENTAGE_TOKEN,number:Un,flags:Qn}):{type:Xn.NUMBER_TOKEN,number:Un,flags:Qn}},Tokenizer.prototype.consumeEscapedCodePoint=function(){var Tn=this.consumeCodePoint();if(Ca(Tn)){for(var Un=zn(Tn);Ca(this.peekCodePoint(0))&&Un.length<6;)Un+=zn(this.consumeCodePoint());Ta(this.peekCodePoint(0))&&this.consumeCodePoint();var Qn=parseInt(Un,16);return 0===Qn||Sa(Qn)||Qn>1114111?$i:Qn}return Tn===ha?$i:Tn},Tokenizer.prototype.consumeName=function(){for(var Tn="";;){var Un=this.consumeCodePoint();if(Fa(Un))Tn+=zn(Un);else{if(!Ia(Un,this.peekCodePoint(0)))return this.reconsumeCodePoint(Un),Tn;Tn+=zn(this.consumeEscapedCodePoint())}}},Tokenizer}(),so=function(){function Parser(Tn){this._tokens=Tn}return Parser.create=function(Tn){var Un=new oo;return Un.write(Tn),new Parser(Un.read())},Parser.parseValue=function(Tn){return Parser.create(Tn).parseComponentValue()},Parser.parseValues=function(Tn){return Parser.create(Tn).parseComponentValues()},Parser.prototype.parseComponentValue=function(){for(var Tn=this.consumeToken();Tn.type===Xn.WHITESPACE_TOKEN;)Tn=this.consumeToken();if(Tn.type===Xn.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(Tn);var Un=this.consumeComponentValue();do{Tn=this.consumeToken()}while(Tn.type===Xn.WHITESPACE_TOKEN);if(Tn.type===Xn.EOF_TOKEN)return Un;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Parser.prototype.parseComponentValues=function(){for(var Tn=[];;){var Un=this.consumeComponentValue();if(Un.type===Xn.EOF_TOKEN)return Tn;Tn.push(Un),Tn.push()}},Parser.prototype.consumeComponentValue=function(){var Tn=this.consumeToken();switch(Tn.type){case Xn.LEFT_CURLY_BRACKET_TOKEN:case Xn.LEFT_SQUARE_BRACKET_TOKEN:case Xn.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(Tn.type);case Xn.FUNCTION_TOKEN:return this.consumeFunction(Tn)}return Tn},Parser.prototype.consumeSimpleBlock=function(Tn){for(var Un={type:Tn,values:[]},Qn=this.consumeToken();;){if(Qn.type===Xn.EOF_TOKEN||mo(Qn,Tn))return Un;this.reconsumeToken(Qn),Un.values.push(this.consumeComponentValue()),Qn=this.consumeToken()}},Parser.prototype.consumeFunction=function(Tn){for(var Un={name:Tn.value,values:[],type:Xn.FUNCTION};;){var Qn=this.consumeToken();if(Qn.type===Xn.EOF_TOKEN||Qn.type===Xn.RIGHT_PARENTHESIS_TOKEN)return Un;this.reconsumeToken(Qn),Un.values.push(this.consumeComponentValue())}},Parser.prototype.consumeToken=function(){var Tn=this._tokens.shift();return void 0===Tn?ao:Tn},Parser.prototype.reconsumeToken=function(Tn){this._tokens.unshift(Tn)},Parser}(),lo=function isDimensionToken(Tn){return Tn.type===Xn.DIMENSION_TOKEN},co=function isNumberToken(Tn){return Tn.type===Xn.NUMBER_TOKEN},uo=function isIdentToken(Tn){return Tn.type===Xn.IDENT_TOKEN},ho=function isStringToken(Tn){return Tn.type===Xn.STRING_TOKEN},po=function isIdentWithValue(Tn,Un){return uo(Tn)&&Tn.value===Un},Ao=function nonWhiteSpace(Tn){return Tn.type!==Xn.WHITESPACE_TOKEN},fo=function nonFunctionArgSeparator(Tn){return Tn.type!==Xn.WHITESPACE_TOKEN&&Tn.type!==Xn.COMMA_TOKEN},go=function parseFunctionArgs(Tn){var Un=[],Qn=[];return Tn.forEach((function(Tn){if(Tn.type===Xn.COMMA_TOKEN){if(0===Qn.length)throw new Error("Error parsing function args, zero tokens for arg");return Un.push(Qn),void(Qn=[])}Tn.type!==Xn.WHITESPACE_TOKEN&&Qn.push(Tn)})),Qn.length&&Un.push(Qn),Un},mo=function isEndingTokenFor(Tn,Un){return Un===Xn.LEFT_CURLY_BRACKET_TOKEN&&Tn.type===Xn.RIGHT_CURLY_BRACKET_TOKEN||Un===Xn.LEFT_SQUARE_BRACKET_TOKEN&&Tn.type===Xn.RIGHT_SQUARE_BRACKET_TOKEN||Un===Xn.LEFT_PARENTHESIS_TOKEN&&Tn.type===Xn.RIGHT_PARENTHESIS_TOKEN},_o=function isLength(Tn){return Tn.type===Xn.NUMBER_TOKEN||Tn.type===Xn.DIMENSION_TOKEN},vo=function isLengthPercentage(Tn){return Tn.type===Xn.PERCENTAGE_TOKEN||_o(Tn)},yo=function parseLengthPercentageTuple(Tn){return Tn.length>1?[Tn[0],Tn[1]]:[Tn[0]]},wo={type:Xn.NUMBER_TOKEN,number:0,flags:wi},xo={type:Xn.PERCENTAGE_TOKEN,number:50,flags:wi},ko={type:Xn.PERCENTAGE_TOKEN,number:100,flags:wi},So=function getAbsoluteValueForTuple(Tn,Un,Qn){var Dn=Tn[0],Hn=Tn[1];return[Co(Dn,Un),Co(void 0!==Hn?Hn:Dn,Qn)]},Co=function getAbsoluteValue(Tn,Un){if(Tn.type===Xn.PERCENTAGE_TOKEN)return Tn.number/100*Un;if(lo(Tn))switch(Tn.unit){case"rem":case"em":return 16*Tn.number;case"px":default:return Tn.number}return Tn.number},Bo="deg",Eo="grad",No="rad",Lo="turn",To={name:"angle",parse:function parse(Tn){if(Tn.type===Xn.DIMENSION_TOKEN)switch(Tn.unit){case Bo:return Math.PI*Tn.number/180;case Eo:return Math.PI/200*Tn.number;case No:return Tn.number;case Lo:return 2*Math.PI*Tn.number}throw new Error("Unsupported angle type")}},Po=function isAngle(Tn){return Tn.type===Xn.DIMENSION_TOKEN&&(Tn.unit===Bo||Tn.unit===Eo||Tn.unit===No||Tn.unit===Lo)},Fo=function parseNamedSide(Tn){switch(Tn.filter(uo).map((function(Tn){return Tn.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[wo,wo];case"to top":case"bottom":return Uo(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[wo,ko];case"to right":case"left":return Uo(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ko,ko];case"to bottom":case"top":return Uo(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ko,wo];case"to left":case"right":return Uo(270)}return 0},Uo=function deg(Tn){return Math.PI*Tn/180},Io={name:"color",parse:function parse(Tn){if(Tn.type===Xn.FUNCTION){var Un=zo[Tn.name];if(void 0===Un)throw new Error('Attempting to parse an unsupported color function "'+Tn.name+'"');return Un(Tn.values)}if(Tn.type===Xn.HASH_TOKEN){if(3===Tn.value.length){var Qn=Tn.value.substring(0,1),Dn=Tn.value.substring(1,2),Hn=Tn.value.substring(2,3);return Qo(parseInt(Qn+Qn,16),parseInt(Dn+Dn,16),parseInt(Hn+Hn,16),1)}if(4===Tn.value.length){Qn=Tn.value.substring(0,1),Dn=Tn.value.substring(1,2),Hn=Tn.value.substring(2,3);var Gn=Tn.value.substring(3,4);return Qo(parseInt(Qn+Qn,16),parseInt(Dn+Dn,16),parseInt(Hn+Hn,16),parseInt(Gn+Gn,16)/255)}if(6===Tn.value.length)return Qn=Tn.value.substring(0,2),Dn=Tn.value.substring(2,4),Hn=Tn.value.substring(4,6),Qo(parseInt(Qn,16),parseInt(Dn,16),parseInt(Hn,16),1);if(8===Tn.value.length)return Qn=Tn.value.substring(0,2),Dn=Tn.value.substring(2,4),Hn=Tn.value.substring(4,6),Gn=Tn.value.substring(6,8),Qo(parseInt(Qn,16),parseInt(Dn,16),parseInt(Hn,16),parseInt(Gn,16)/255)}if(Tn.type===Xn.IDENT_TOKEN){var zn=Vo[Tn.value.toUpperCase()];if(void 0!==zn)return zn}return Vo.TRANSPARENT}},Ro=function isTransparent(Tn){return 0==(255&Tn)},Mo=function asString(Tn){var Un=255&Tn,Qn=255&Tn>>8,Dn=255&Tn>>16,Hn=255&Tn>>24;return Un<255?"rgba("+Hn+","+Dn+","+Qn+","+Un/255+")":"rgb("+Hn+","+Dn+","+Qn+")"},Qo=function pack(Tn,Un,Qn,Dn){return(Tn<<24|Un<<16|Qn<<8|Math.round(255*Dn)<<0)>>>0},Oo=function getTokenColorValue(Tn,Un){if(Tn.type===Xn.NUMBER_TOKEN)return Tn.number;if(Tn.type===Xn.PERCENTAGE_TOKEN){var Qn=3===Un?1:255;return 3===Un?Tn.number/100*Qn:Math.round(Tn.number/100*Qn)}return 0},Do=function rgb(Tn){var Un=Tn.filter(fo);if(3===Un.length){var Qn=Un.map(Oo),Dn=Qn[0],Hn=Qn[1],Gn=Qn[2];return Qo(Dn,Hn,Gn,1)}if(4===Un.length){var zn=Un.map(Oo),Vn=(Dn=zn[0],Hn=zn[1],Gn=zn[2],zn[3]);return Qo(Dn,Hn,Gn,Vn)}return 0};function hue2rgb(Tn,Un,Qn){return Qn<0&&(Qn+=1),Qn>=1&&(Qn-=1),Qn<1/6?(Un-Tn)*Qn*6+Tn:Qn<.5?Un:Qn<2/3?6*(Un-Tn)*(2/3-Qn)+Tn:Tn}var jo,Ho,Go=function hsl(Tn){var Un=Tn.filter(fo),Qn=Un[0],Dn=Un[1],Hn=Un[2],Gn=Un[3],zn=(Qn.type===Xn.NUMBER_TOKEN?Uo(Qn.number):To.parse(Qn))/(2*Math.PI),Vn=vo(Dn)?Dn.number/100:0,Kn=vo(Hn)?Hn.number/100:0,Wn=void 0!==Gn&&vo(Gn)?Co(Gn,1):1;if(0===Vn)return Qo(255*Kn,255*Kn,255*Kn,1);var Yn=Kn<=.5?Kn*(Vn+1):Kn+Vn-Kn*Vn,Jn=2*Kn-Yn,$n=hue2rgb(Jn,Yn,zn+1/3),Zn=hue2rgb(Jn,Yn,zn),er=hue2rgb(Jn,Yn,zn-1/3);return Qo(255*$n,255*Zn,255*er,Wn)},zo={hsl:Go,hsla:Go,rgb:Do,rgba:Do},Vo={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};(function(Tn){Tn[Tn.VALUE=0]="VALUE",Tn[Tn.LIST=1]="LIST",Tn[Tn.IDENT_VALUE=2]="IDENT_VALUE",Tn[Tn.TYPE_VALUE=3]="TYPE_VALUE",Tn[Tn.TOKEN_VALUE=4]="TOKEN_VALUE"})(jo||(jo={})),function(Tn){Tn[Tn.BORDER_BOX=0]="BORDER_BOX",Tn[Tn.PADDING_BOX=1]="PADDING_BOX",Tn[Tn.CONTENT_BOX=2]="CONTENT_BOX"}(Ho||(Ho={}));var Ko,qo={name:"background-clip",initialValue:"border-box",prefix:!1,type:jo.LIST,parse:function parse(Tn){return Tn.map((function(Tn){if(uo(Tn))switch(Tn.value){case"padding-box":return Ho.PADDING_BOX;case"content-box":return Ho.CONTENT_BOX}return Ho.BORDER_BOX}))}},Wo={name:"background-color",initialValue:"transparent",prefix:!1,type:jo.TYPE_VALUE,format:"color"},Xo=function parseColorStop(Tn){var Un=Io.parse(Tn[0]),Qn=Tn[1];return Qn&&vo(Qn)?{color:Un,stop:Qn}:{color:Un,stop:null}},Yo=function processColorStops(Tn,Un){var Qn=Tn[0],Dn=Tn[Tn.length-1];null===Qn.stop&&(Qn.stop=wo),null===Dn.stop&&(Dn.stop=ko);for(var Hn=[],Gn=0,zn=0;zn<Tn.length;zn++){var Vn=Tn[zn].stop;if(null!==Vn){var Kn=Co(Vn,Un);Kn>Gn?Hn.push(Kn):Hn.push(Gn),Gn=Kn}else Hn.push(null)}var Wn=null;for(zn=0;zn<Hn.length;zn++){var Xn=Hn[zn];if(null===Xn)null===Wn&&(Wn=zn);else if(null!==Wn){for(var Yn=zn-Wn,Jn=(Xn-Hn[Wn-1])/(Yn+1),$n=1;$n<=Yn;$n++)Hn[Wn+$n-1]=Jn*$n;Wn=null}}return Tn.map((function(Tn,Qn){return{color:Tn.color,stop:Math.max(Math.min(1,Hn[Qn]/Un),0)}}))},Jo=function getAngleFromCorner(Tn,Un,Qn){var Dn=Un/2,Hn=Qn/2,Gn=Co(Tn[0],Un)-Dn,zn=Hn-Co(Tn[1],Qn);return(Math.atan2(zn,Gn)+2*Math.PI)%(2*Math.PI)},$o=function calculateGradientDirection(Tn,Un,Qn){var Dn="number"==typeof Tn?Tn:Jo(Tn,Un,Qn),Hn=Math.abs(Un*Math.sin(Dn))+Math.abs(Qn*Math.cos(Dn)),Gn=Un/2,zn=Qn/2,Vn=Hn/2,Kn=Math.sin(Dn-Math.PI/2)*Vn,Wn=Math.cos(Dn-Math.PI/2)*Vn;return[Hn,Gn-Wn,Gn+Wn,zn-Kn,zn+Kn]},Zo=function distance(Tn,Un){return Math.sqrt(Tn*Tn+Un*Un)},es=function findCorner(Tn,Un,Qn,Dn,Hn){return[[0,0],[0,Un],[Tn,0],[Tn,Un]].reduce((function(Tn,Un){var Gn=Un[0],zn=Un[1],Vn=Zo(Qn-Gn,Dn-zn);return(Hn?Vn<Tn.optimumDistance:Vn>Tn.optimumDistance)?{optimumCorner:Un,optimumDistance:Vn}:Tn}),{optimumDistance:Hn?1/0:-1/0,optimumCorner:null}).optimumCorner},ts=function calculateRadius(Tn,Un,Qn,Dn,Hn){var Gn=0,zn=0;switch(Tn.size){case Qs.CLOSEST_SIDE:Tn.shape===Ms.CIRCLE?Gn=zn=Math.min(Math.abs(Un),Math.abs(Un-Dn),Math.abs(Qn),Math.abs(Qn-Hn)):Tn.shape===Ms.ELLIPSE&&(Gn=Math.min(Math.abs(Un),Math.abs(Un-Dn)),zn=Math.min(Math.abs(Qn),Math.abs(Qn-Hn)));break;case Qs.CLOSEST_CORNER:if(Tn.shape===Ms.CIRCLE)Gn=zn=Math.min(Zo(Un,Qn),Zo(Un,Qn-Hn),Zo(Un-Dn,Qn),Zo(Un-Dn,Qn-Hn));else if(Tn.shape===Ms.ELLIPSE){var Vn=Math.min(Math.abs(Qn),Math.abs(Qn-Hn))/Math.min(Math.abs(Un),Math.abs(Un-Dn)),Kn=es(Dn,Hn,Un,Qn,!0),Wn=Kn[0],Xn=Kn[1];zn=Vn*(Gn=Zo(Wn-Un,(Xn-Qn)/Vn))}break;case Qs.FARTHEST_SIDE:Tn.shape===Ms.CIRCLE?Gn=zn=Math.max(Math.abs(Un),Math.abs(Un-Dn),Math.abs(Qn),Math.abs(Qn-Hn)):Tn.shape===Ms.ELLIPSE&&(Gn=Math.max(Math.abs(Un),Math.abs(Un-Dn)),zn=Math.max(Math.abs(Qn),Math.abs(Qn-Hn)));break;case Qs.FARTHEST_CORNER:if(Tn.shape===Ms.CIRCLE)Gn=zn=Math.max(Zo(Un,Qn),Zo(Un,Qn-Hn),Zo(Un-Dn,Qn),Zo(Un-Dn,Qn-Hn));else if(Tn.shape===Ms.ELLIPSE){Vn=Math.max(Math.abs(Qn),Math.abs(Qn-Hn))/Math.max(Math.abs(Un),Math.abs(Un-Dn));var Yn=es(Dn,Hn,Un,Qn,!1);Wn=Yn[0],Xn=Yn[1],zn=Vn*(Gn=Zo(Wn-Un,(Xn-Qn)/Vn))}}return Array.isArray(Tn.size)&&(Gn=Co(Tn.size[0],Dn),zn=2===Tn.size.length?Co(Tn.size[1],Hn):Gn),[Gn,zn]},ns=function linearGradient(Tn){var Un=Uo(180),Qn=[];return go(Tn).forEach((function(Tn,Dn){if(0===Dn){var Hn=Tn[0];if(Hn.type===Xn.IDENT_TOKEN&&"to"===Hn.value)return void(Un=Fo(Tn));if(Po(Hn))return void(Un=To.parse(Hn))}var Gn=Xo(Tn);Qn.push(Gn)})),{angle:Un,stops:Qn,type:Ko.LINEAR_GRADIENT}},rs=function prefixLinearGradient(Tn){var Un=Uo(180),Qn=[];return go(Tn).forEach((function(Tn,Dn){if(0===Dn){var Hn=Tn[0];if(Hn.type===Xn.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(Hn.value))return void(Un=Fo(Tn));if(Po(Hn))return void(Un=(To.parse(Hn)+Uo(270))%Uo(360))}var Gn=Xo(Tn);Qn.push(Gn)})),{angle:Un,stops:Qn,type:Ko.LINEAR_GRADIENT}},as=function testRangeBounds(Tn){var Un=123;if(Tn.createRange){var Qn=Tn.createRange();if(Qn.getBoundingClientRect){var Dn=Tn.createElement("boundtest");Dn.style.height=Un+"px",Dn.style.display="block",Tn.body.appendChild(Dn),Qn.selectNode(Dn);var Hn=Qn.getBoundingClientRect(),Gn=Math.round(Hn.height);if(Tn.body.removeChild(Dn),Gn===Un)return!0}}return!1},os=function testCORS(){return void 0!==(new Image).crossOrigin},ss=function testResponseType(){return"string"==typeof(new XMLHttpRequest).responseType},ls=function testSVG(Tn){var Un=new Image,Qn=Tn.createElement("canvas"),Dn=Qn.getContext("2d");if(!Dn)return!1;Un.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Dn.drawImage(Un,0,0),Qn.toDataURL()}catch(Tn){return!1}return!0},us=function isGreenPixel(Tn){return 0===Tn[0]&&255===Tn[1]&&0===Tn[2]&&255===Tn[3]},ds=function testForeignObject(Tn){var Un=Tn.createElement("canvas"),Qn=100;Un.width=Qn,Un.height=Qn;var Dn=Un.getContext("2d");if(!Dn)return Promise.reject(!1);Dn.fillStyle="rgb(0, 255, 0)",Dn.fillRect(0,0,Qn,Qn);var Hn=new Image,Gn=Un.toDataURL();Hn.src=Gn;var zn=hs(Qn,Qn,0,0,Hn);return Dn.fillStyle="red",Dn.fillRect(0,0,Qn,Qn),ps(zn).then((function(Un){Dn.drawImage(Un,0,0);var Hn=Dn.getImageData(0,0,Qn,Qn).data;Dn.fillStyle="red",Dn.fillRect(0,0,Qn,Qn);var zn=Tn.createElement("div");return zn.style.backgroundImage="url("+Gn+")",zn.style.height=Qn+"px",us(Hn)?ps(hs(Qn,Qn,0,0,zn)):Promise.reject(!1)})).then((function(Tn){return Dn.drawImage(Tn,0,0),us(Dn.getImageData(0,0,Qn,Qn).data)})).catch((function(){return!1}))},hs=function createForeignObjectSVG(Tn,Un,Qn,Dn,Hn){var Gn="http://www.w3.org/2000/svg",zn=document.createElementNS(Gn,"svg"),Vn=document.createElementNS(Gn,"foreignObject");return zn.setAttributeNS(null,"width",Tn.toString()),zn.setAttributeNS(null,"height",Un.toString()),Vn.setAttributeNS(null,"width","100%"),Vn.setAttributeNS(null,"height","100%"),Vn.setAttributeNS(null,"x",Qn.toString()),Vn.setAttributeNS(null,"y",Dn.toString()),Vn.setAttributeNS(null,"externalResourcesRequired","true"),zn.appendChild(Vn),Vn.appendChild(Hn),zn},ps=function loadSerializedSVG(Tn){return new Promise((function(Un,Qn){var Dn=new Image;Dn.onload=function(){return Un(Dn)},Dn.onerror=Qn,Dn.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(Tn))}))},As={get SUPPORT_RANGE_BOUNDS(){var Tn=as(document);return Object.defineProperty(As,"SUPPORT_RANGE_BOUNDS",{value:Tn}),Tn},get SUPPORT_SVG_DRAWING(){var Tn=ls(document);return Object.defineProperty(As,"SUPPORT_SVG_DRAWING",{value:Tn}),Tn},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Tn="function"==typeof Array.from&&"function"==typeof window.fetch?ds(document):Promise.resolve(!1);return Object.defineProperty(As,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Tn}),Tn},get SUPPORT_CORS_IMAGES(){var Tn=os();return Object.defineProperty(As,"SUPPORT_CORS_IMAGES",{value:Tn}),Tn},get SUPPORT_RESPONSE_TYPE(){var Tn=ss();return Object.defineProperty(As,"SUPPORT_RESPONSE_TYPE",{value:Tn}),Tn},get SUPPORT_CORS_XHR(){var Tn="withCredentials"in new XMLHttpRequest;return Object.defineProperty(As,"SUPPORT_CORS_XHR",{value:Tn}),Tn}},fs=function(){function Logger(Tn){var Un=Tn.id,Qn=Tn.enabled;this.id=Un,this.enabled=Qn,this.start=Date.now()}return Logger.prototype.debug=function(){for(var Tn=[],Un=0;Un<arguments.length;Un++)Tn[Un]=arguments[Un];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(Tn)):this.info.apply(this,Tn))},Logger.prototype.getTime=function(){return Date.now()-this.start},Logger.create=function(Tn){Logger.instances[Tn.id]=new Logger(Tn)},Logger.destroy=function(Tn){delete Logger.instances[Tn]},Logger.getInstance=function(Tn){var Un=Logger.instances[Tn];if(void 0===Un)throw new Error("No logger instance found with id "+Tn);return Un},Logger.prototype.info=function(){for(var Tn=[],Un=0;Un<arguments.length;Un++)Tn[Un]=arguments[Un];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(Tn))},Logger.prototype.error=function(){for(var Tn=[],Un=0;Un<arguments.length;Un++)Tn[Un]=arguments[Un];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(Tn)):this.info.apply(this,Tn))},Logger.instances={},Logger}(),gs=function(){function CacheStorage(){}return CacheStorage.create=function(Tn,Un){return CacheStorage._caches[Tn]=new ms(Tn,Un)},CacheStorage.destroy=function(Tn){delete CacheStorage._caches[Tn]},CacheStorage.open=function(Tn){var Un=CacheStorage._caches[Tn];if(void 0!==Un)return Un;throw new Error('Cache with key "'+Tn+'" not found')},CacheStorage.getOrigin=function(Tn){var Un=CacheStorage._link;return Un?(Un.href=Tn,Un.href=Un.href,Un.protocol+Un.hostname+Un.port):"about:blank"},CacheStorage.isSameOrigin=function(Tn){return CacheStorage.getOrigin(Tn)===CacheStorage._origin},CacheStorage.setContext=function(Tn){CacheStorage._link=Tn.document.createElement("a"),CacheStorage._origin=CacheStorage.getOrigin(Tn.location.href)},CacheStorage.getInstance=function(){var Tn=CacheStorage._current;if(null===Tn)throw new Error("No cache instance attached");return Tn},CacheStorage.attachInstance=function(Tn){CacheStorage._current=Tn},CacheStorage.detachInstance=function(){CacheStorage._current=null},CacheStorage._caches={},CacheStorage._origin="about:blank",CacheStorage._current=null,CacheStorage}(),ms=function(){function Cache(Tn,Un){this.id=Tn,this._options=Un,this._cache={}}return Cache.prototype.addImage=function(Tn){var Un=Promise.resolve();return this.has(Tn)?Un:ks(Tn)||bs(Tn)?(this._cache[Tn]=this.loadImage(Tn),Un):Un},Cache.prototype.match=function(Tn){return this._cache[Tn]},Cache.prototype.loadImage=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn=this;return __generator(this,(function(zn){switch(zn.label){case 0:return Un=gs.isSameOrigin(Tn),Qn=!ws(Tn)&&!0===this._options.useCORS&&As.SUPPORT_CORS_IMAGES&&!Un,Dn=!ws(Tn)&&!Un&&"string"==typeof this._options.proxy&&As.SUPPORT_CORS_XHR&&!Qn,Un||!1!==this._options.allowTaint||ws(Tn)||Dn||Qn?(Hn=Tn,Dn?[4,this.proxy(Hn)]:[3,2]):[2];case 1:Hn=zn.sent(),zn.label=2;case 2:return fs.getInstance(this.id).debug("Added image "+Tn.substring(0,256)),[4,new Promise((function(Tn,Un){var Dn=new Image;Dn.onload=function(){return Tn(Dn)},Dn.onerror=Un,(xs(Hn)||Qn)&&(Dn.crossOrigin="anonymous"),Dn.src=Hn,!0===Dn.complete&&setTimeout((function(){return Tn(Dn)}),500),Gn._options.imageTimeout>0&&setTimeout((function(){return Un("Timed out ("+Gn._options.imageTimeout+"ms) loading image")}),Gn._options.imageTimeout)}))];case 3:return[2,zn.sent()]}}))}))},Cache.prototype.has=function(Tn){return void 0!==this._cache[Tn]},Cache.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Cache.prototype.proxy=function(Tn){var Un=this,Qn=this._options.proxy;if(!Qn)throw new Error("No proxy defined");var Dn=Tn.substring(0,256);return new Promise((function(Hn,Gn){var zn=As.SUPPORT_RESPONSE_TYPE?"blob":"text",Vn=new XMLHttpRequest;if(Vn.onload=function(){if(200===Vn.status)if("text"===zn)Hn(Vn.response);else{var Tn=new FileReader;Tn.addEventListener("load",(function(){return Hn(Tn.result)}),!1),Tn.addEventListener("error",(function(Tn){return Gn(Tn)}),!1),Tn.readAsDataURL(Vn.response)}else Gn("Failed to proxy resource "+Dn+" with status code "+Vn.status)},Vn.onerror=Gn,Vn.open("GET",Qn+"?url="+encodeURIComponent(Tn)+"&responseType="+zn),"text"!==zn&&Vn instanceof XMLHttpRequest&&(Vn.responseType=zn),Un._options.imageTimeout){var Kn=Un._options.imageTimeout;Vn.timeout=Kn,Vn.ontimeout=function(){return Gn("Timed out ("+Kn+"ms) proxying "+Dn)}}Vn.send()}))},Cache}(),_s=/^data:image\/svg\+xml/i,vs=/^data:image\/.*;base64,/i,ys=/^data:image\/.*/i,bs=function isRenderable(Tn){return As.SUPPORT_SVG_DRAWING||!Ss(Tn)},ws=function isInlineImage(Tn){return ys.test(Tn)},xs=function isInlineBase64Image(Tn){return vs.test(Tn)},ks=function isBlobImage(Tn){return"blob"===Tn.substr(0,4)},Ss=function isSVG(Tn){return"svg"===Tn.substr(-3).toLowerCase()||_s.test(Tn)},Cs=function webkitGradient(Tn){var Un=Uo(180),Qn=[],Dn=Ko.LINEAR_GRADIENT,Hn=Ms.CIRCLE,Gn=Qs.FARTHEST_CORNER,zn=[];return go(Tn).forEach((function(Tn,Un){var Hn=Tn[0];if(0===Un){if(uo(Hn)&&"linear"===Hn.value)return void(Dn=Ko.LINEAR_GRADIENT);if(uo(Hn)&&"radial"===Hn.value)return void(Dn=Ko.RADIAL_GRADIENT)}if(Hn.type===Xn.FUNCTION)if("from"===Hn.name){var Gn=Io.parse(Hn.values[0]);Qn.push({stop:wo,color:Gn})}else if("to"===Hn.name)Gn=Io.parse(Hn.values[0]),Qn.push({stop:ko,color:Gn});else if("color-stop"===Hn.name){var zn=Hn.values.filter(fo);if(2===zn.length){Gn=Io.parse(zn[1]);var Vn=zn[0];co(Vn)&&Qn.push({stop:{type:Xn.PERCENTAGE_TOKEN,number:100*Vn.number,flags:Vn.flags},color:Gn})}}})),Dn===Ko.LINEAR_GRADIENT?{angle:(Un+Uo(180))%Uo(360),stops:Qn,type:Dn}:{size:Gn,shape:Hn,stops:Qn,position:zn,type:Dn}},Bs="closest-side",Es="farthest-side",Ns="closest-corner",Ls="farthest-corner",Ts="circle",Ps="ellipse",Fs="cover",Us="contain",Is=function radialGradient(Tn){var Un=Ms.CIRCLE,Qn=Qs.FARTHEST_CORNER,Dn=[],Hn=[];return go(Tn).forEach((function(Tn,Gn){var zn=!0;if(0===Gn){var Vn=!1;zn=Tn.reduce((function(Tn,Dn){if(Vn)if(uo(Dn))switch(Dn.value){case"center":return Hn.push(xo),Tn;case"top":case"left":return Hn.push(wo),Tn;case"right":case"bottom":return Hn.push(ko),Tn}else(vo(Dn)||_o(Dn))&&Hn.push(Dn);else if(uo(Dn))switch(Dn.value){case Ts:return Un=Ms.CIRCLE,!1;case Ps:return Un=Ms.ELLIPSE,!1;case"at":return Vn=!0,!1;case Bs:return Qn=Qs.CLOSEST_SIDE,!1;case Fs:case Es:return Qn=Qs.FARTHEST_SIDE,!1;case Us:case Ns:return Qn=Qs.CLOSEST_CORNER,!1;case Ls:return Qn=Qs.FARTHEST_CORNER,!1}else if(_o(Dn)||vo(Dn))return Array.isArray(Qn)||(Qn=[]),Qn.push(Dn),!1;return Tn}),zn)}if(zn){var Kn=Xo(Tn);Dn.push(Kn)}})),{size:Qn,shape:Un,stops:Dn,position:Hn,type:Ko.RADIAL_GRADIENT}},Rs=function prefixRadialGradient(Tn){var Un=Ms.CIRCLE,Qn=Qs.FARTHEST_CORNER,Dn=[],Hn=[];return go(Tn).forEach((function(Tn,Gn){var zn=!0;if(0===Gn?zn=Tn.reduce((function(Tn,Un){if(uo(Un))switch(Un.value){case"center":return Hn.push(xo),!1;case"top":case"left":return Hn.push(wo),!1;case"right":case"bottom":return Hn.push(ko),!1}else if(vo(Un)||_o(Un))return Hn.push(Un),!1;return Tn}),zn):1===Gn&&(zn=Tn.reduce((function(Tn,Dn){if(uo(Dn))switch(Dn.value){case Ts:return Un=Ms.CIRCLE,!1;case Ps:return Un=Ms.ELLIPSE,!1;case Us:case Bs:return Qn=Qs.CLOSEST_SIDE,!1;case Es:return Qn=Qs.FARTHEST_SIDE,!1;case Ns:return Qn=Qs.CLOSEST_CORNER,!1;case Fs:case Ls:return Qn=Qs.FARTHEST_CORNER,!1}else if(_o(Dn)||vo(Dn))return Array.isArray(Qn)||(Qn=[]),Qn.push(Dn),!1;return Tn}),zn)),zn){var Vn=Xo(Tn);Dn.push(Vn)}})),{size:Qn,shape:Un,stops:Dn,position:Hn,type:Ko.RADIAL_GRADIENT}};!function(Tn){Tn[Tn.URL=0]="URL",Tn[Tn.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",Tn[Tn.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(Ko||(Ko={}));var Ms,Qs,Os=function isLinearGradient(Tn){return Tn.type===Ko.LINEAR_GRADIENT},Ds=function isRadialGradient(Tn){return Tn.type===Ko.RADIAL_GRADIENT};(function(Tn){Tn[Tn.CIRCLE=0]="CIRCLE",Tn[Tn.ELLIPSE=1]="ELLIPSE"})(Ms||(Ms={})),function(Tn){Tn[Tn.CLOSEST_SIDE=0]="CLOSEST_SIDE",Tn[Tn.FARTHEST_SIDE=1]="FARTHEST_SIDE",Tn[Tn.CLOSEST_CORNER=2]="CLOSEST_CORNER",Tn[Tn.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(Qs||(Qs={}));var js={name:"image",parse:function parse(Tn){if(Tn.type===Xn.URL_TOKEN){var Un={url:Tn.value,type:Ko.URL};return gs.getInstance().addImage(Tn.value),Un}if(Tn.type===Xn.FUNCTION){var Qn=Gs[Tn.name];if(void 0===Qn)throw new Error('Attempting to parse an unsupported image function "'+Tn.name+'"');return Qn(Tn.values)}throw new Error("Unsupported image type")}};function isSupportedImage(Tn){return Tn.type!==Xn.FUNCTION||Gs[Tn.name]}var Hs,Gs={"linear-gradient":ns,"-moz-linear-gradient":rs,"-ms-linear-gradient":rs,"-o-linear-gradient":rs,"-webkit-linear-gradient":rs,"radial-gradient":Is,"-moz-radial-gradient":Rs,"-ms-radial-gradient":Rs,"-o-radial-gradient":Rs,"-webkit-radial-gradient":Rs,"-webkit-gradient":Cs},zs={name:"background-image",initialValue:"none",type:jo.LIST,prefix:!1,parse:function parse(Tn){if(0===Tn.length)return[];var Un=Tn[0];return Un.type===Xn.IDENT_TOKEN&&"none"===Un.value?[]:Tn.filter((function(Tn){return fo(Tn)&&isSupportedImage(Tn)})).map(js.parse)}},Vs={name:"background-origin",initialValue:"border-box",prefix:!1,type:jo.LIST,parse:function parse(Tn){return Tn.map((function(Tn){if(uo(Tn))switch(Tn.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ks={name:"background-position",initialValue:"0% 0%",type:jo.LIST,prefix:!1,parse:function parse(Tn){return go(Tn).map((function(Tn){return Tn.filter(vo)})).map(yo)}};!function(Tn){Tn[Tn.REPEAT=0]="REPEAT",Tn[Tn.NO_REPEAT=1]="NO_REPEAT",Tn[Tn.REPEAT_X=2]="REPEAT_X",Tn[Tn.REPEAT_Y=3]="REPEAT_Y"}(Hs||(Hs={}));var qs,Ws={name:"background-repeat",initialValue:"repeat",prefix:!1,type:jo.LIST,parse:function parse(Tn){return go(Tn).map((function(Tn){return Tn.filter(uo).map((function(Tn){return Tn.value})).join(" ")})).map(Xs)}},Xs=function parseBackgroundRepeat(Tn){switch(Tn){case"no-repeat":return Hs.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Hs.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Hs.REPEAT_Y;case"repeat":default:return Hs.REPEAT}};!function(Tn){Tn.AUTO="auto",Tn.CONTAIN="contain",Tn.COVER="cover"}(qs||(qs={}));var Ys,Js={name:"background-size",initialValue:"0",prefix:!1,type:jo.LIST,parse:function parse(Tn){return go(Tn).map((function(Tn){return Tn.filter($s)}))}},$s=function isBackgroundSizeInfoToken(Tn){return uo(Tn)||vo(Tn)},Zs=function borderColorForSide(Tn){return{name:"border-"+Tn+"-color",initialValue:"transparent",prefix:!1,type:jo.TYPE_VALUE,format:"color"}},el=Zs("top"),tl=Zs("right"),nl=Zs("bottom"),rl=Zs("left"),il=function borderRadiusForSide(Tn){return{name:"border-radius-"+Tn,initialValue:"0 0",prefix:!1,type:jo.LIST,parse:function parse(Tn){return yo(Tn.filter(vo))}}},al=il("top-left"),ol=il("top-right"),sl=il("bottom-right"),ll=il("bottom-left");!function(Tn){Tn[Tn.NONE=0]="NONE",Tn[Tn.SOLID=1]="SOLID"}(Ys||(Ys={}));var cl,ul=function borderStyleForSide(Tn){return{name:"border-"+Tn+"-style",initialValue:"solid",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"none":return Ys.NONE}return Ys.SOLID}}},dl=ul("top"),hl=ul("right"),pl=ul("bottom"),Al=ul("left"),fl=function borderWidthForSide(Tn){return{name:"border-"+Tn+"-width",initialValue:"0",type:jo.VALUE,prefix:!1,parse:function parse(Tn){return lo(Tn)?Tn.number:0}}},gl=fl("top"),ml=fl("right"),_l=fl("bottom"),vl=fl("left"),yl={name:"color",initialValue:"transparent",prefix:!1,type:jo.TYPE_VALUE,format:"color"},wl={name:"display",initialValue:"inline-block",prefix:!1,type:jo.LIST,parse:function parse(Tn){return Tn.filter(uo).reduce((function(Tn,Un){return Tn|xl(Un.value)}),0)}},xl=function parseDisplayValue(Tn){switch(Tn){case"block":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};!function(Tn){Tn[Tn.NONE=0]="NONE",Tn[Tn.LEFT=1]="LEFT",Tn[Tn.RIGHT=2]="RIGHT",Tn[Tn.INLINE_START=3]="INLINE_START",Tn[Tn.INLINE_END=4]="INLINE_END"}(cl||(cl={}));var kl,Sl={name:"float",initialValue:"none",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"left":return cl.LEFT;case"right":return cl.RIGHT;case"inline-start":return cl.INLINE_START;case"inline-end":return cl.INLINE_END}return cl.NONE}},Cl={name:"letter-spacing",initialValue:"0",prefix:!1,type:jo.VALUE,parse:function parse(Tn){return Tn.type===Xn.IDENT_TOKEN&&"normal"===Tn.value?0:Tn.type===Xn.NUMBER_TOKEN||Tn.type===Xn.DIMENSION_TOKEN?Tn.number:0}};!function(Tn){Tn.NORMAL="normal",Tn.STRICT="strict"}(kl||(kl={}));var Bl,El={name:"line-break",initialValue:"normal",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"strict":return kl.STRICT;case"normal":default:return kl.NORMAL}}},Nl={name:"line-height",initialValue:"normal",prefix:!1,type:jo.TOKEN_VALUE},Ll=function computeLineHeight(Tn,Un){return uo(Tn)&&"normal"===Tn.value?1.2*Un:Tn.type===Xn.NUMBER_TOKEN?Un*Tn.number:vo(Tn)?Co(Tn,Un):Un},Tl={name:"list-style-image",initialValue:"none",type:jo.VALUE,prefix:!1,parse:function parse(Tn){return Tn.type===Xn.IDENT_TOKEN&&"none"===Tn.value?null:js.parse(Tn)}};!function(Tn){Tn[Tn.INSIDE=0]="INSIDE",Tn[Tn.OUTSIDE=1]="OUTSIDE"}(Bl||(Bl={}));var Pl,Fl={name:"list-style-position",initialValue:"outside",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"inside":return Bl.INSIDE;case"outside":default:return Bl.OUTSIDE}}};!function(Tn){Tn[Tn.NONE=-1]="NONE",Tn[Tn.DISC=0]="DISC",Tn[Tn.CIRCLE=1]="CIRCLE",Tn[Tn.SQUARE=2]="SQUARE",Tn[Tn.DECIMAL=3]="DECIMAL",Tn[Tn.CJK_DECIMAL=4]="CJK_DECIMAL",Tn[Tn.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",Tn[Tn.LOWER_ROMAN=6]="LOWER_ROMAN",Tn[Tn.UPPER_ROMAN=7]="UPPER_ROMAN",Tn[Tn.LOWER_GREEK=8]="LOWER_GREEK",Tn[Tn.LOWER_ALPHA=9]="LOWER_ALPHA",Tn[Tn.UPPER_ALPHA=10]="UPPER_ALPHA",Tn[Tn.ARABIC_INDIC=11]="ARABIC_INDIC",Tn[Tn.ARMENIAN=12]="ARMENIAN",Tn[Tn.BENGALI=13]="BENGALI",Tn[Tn.CAMBODIAN=14]="CAMBODIAN",Tn[Tn.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",Tn[Tn.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",Tn[Tn.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",Tn[Tn.DEVANAGARI=18]="DEVANAGARI",Tn[Tn.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",Tn[Tn.GEORGIAN=20]="GEORGIAN",Tn[Tn.GUJARATI=21]="GUJARATI",Tn[Tn.GURMUKHI=22]="GURMUKHI",Tn[Tn.HEBREW=22]="HEBREW",Tn[Tn.HIRAGANA=23]="HIRAGANA",Tn[Tn.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",Tn[Tn.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",Tn[Tn.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",Tn[Tn.KANNADA=27]="KANNADA",Tn[Tn.KATAKANA=28]="KATAKANA",Tn[Tn.KATAKANA_IROHA=29]="KATAKANA_IROHA",Tn[Tn.KHMER=30]="KHMER",Tn[Tn.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",Tn[Tn.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",Tn[Tn.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",Tn[Tn.LAO=34]="LAO",Tn[Tn.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",Tn[Tn.MALAYALAM=36]="MALAYALAM",Tn[Tn.MONGOLIAN=37]="MONGOLIAN",Tn[Tn.MYANMAR=38]="MYANMAR",Tn[Tn.ORIYA=39]="ORIYA",Tn[Tn.PERSIAN=40]="PERSIAN",Tn[Tn.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",Tn[Tn.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",Tn[Tn.TAMIL=43]="TAMIL",Tn[Tn.TELUGU=44]="TELUGU",Tn[Tn.THAI=45]="THAI",Tn[Tn.TIBETAN=46]="TIBETAN",Tn[Tn.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",Tn[Tn.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",Tn[Tn.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",Tn[Tn.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",Tn[Tn.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Pl||(Pl={}));var Ul,Il={name:"list-style-type",initialValue:"none",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"disc":return Pl.DISC;case"circle":return Pl.CIRCLE;case"square":return Pl.SQUARE;case"decimal":return Pl.DECIMAL;case"cjk-decimal":return Pl.CJK_DECIMAL;case"decimal-leading-zero":return Pl.DECIMAL_LEADING_ZERO;case"lower-roman":return Pl.LOWER_ROMAN;case"upper-roman":return Pl.UPPER_ROMAN;case"lower-greek":return Pl.LOWER_GREEK;case"lower-alpha":return Pl.LOWER_ALPHA;case"upper-alpha":return Pl.UPPER_ALPHA;case"arabic-indic":return Pl.ARABIC_INDIC;case"armenian":return Pl.ARMENIAN;case"bengali":return Pl.BENGALI;case"cambodian":return Pl.CAMBODIAN;case"cjk-earthly-branch":return Pl.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Pl.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Pl.CJK_IDEOGRAPHIC;case"devanagari":return Pl.DEVANAGARI;case"ethiopic-numeric":return Pl.ETHIOPIC_NUMERIC;case"georgian":return Pl.GEORGIAN;case"gujarati":return Pl.GUJARATI;case"gurmukhi":return Pl.GURMUKHI;case"hebrew":return Pl.HEBREW;case"hiragana":return Pl.HIRAGANA;case"hiragana-iroha":return Pl.HIRAGANA_IROHA;case"japanese-formal":return Pl.JAPANESE_FORMAL;case"japanese-informal":return Pl.JAPANESE_INFORMAL;case"kannada":return Pl.KANNADA;case"katakana":return Pl.KATAKANA;case"katakana-iroha":return Pl.KATAKANA_IROHA;case"khmer":return Pl.KHMER;case"korean-hangul-formal":return Pl.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Pl.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Pl.KOREAN_HANJA_INFORMAL;case"lao":return Pl.LAO;case"lower-armenian":return Pl.LOWER_ARMENIAN;case"malayalam":return Pl.MALAYALAM;case"mongolian":return Pl.MONGOLIAN;case"myanmar":return Pl.MYANMAR;case"oriya":return Pl.ORIYA;case"persian":return Pl.PERSIAN;case"simp-chinese-formal":return Pl.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Pl.SIMP_CHINESE_INFORMAL;case"tamil":return Pl.TAMIL;case"telugu":return Pl.TELUGU;case"thai":return Pl.THAI;case"tibetan":return Pl.TIBETAN;case"trad-chinese-formal":return Pl.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Pl.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Pl.UPPER_ARMENIAN;case"disclosure-open":return Pl.DISCLOSURE_OPEN;case"disclosure-closed":return Pl.DISCLOSURE_CLOSED;case"none":default:return Pl.NONE}}},Rl=function marginForSide(Tn){return{name:"margin-"+Tn,initialValue:"0",prefix:!1,type:jo.TOKEN_VALUE}},Ml=Rl("top"),Ql=Rl("right"),Ol=Rl("bottom"),Dl=Rl("left");!function(Tn){Tn[Tn.VISIBLE=0]="VISIBLE",Tn[Tn.HIDDEN=1]="HIDDEN",Tn[Tn.SCROLL=2]="SCROLL",Tn[Tn.AUTO=3]="AUTO"}(Ul||(Ul={}));var jl,Hl={name:"overflow",initialValue:"visible",prefix:!1,type:jo.LIST,parse:function parse(Tn){return Tn.filter(uo).map((function(Tn){switch(Tn.value){case"hidden":return Ul.HIDDEN;case"scroll":return Ul.SCROLL;case"auto":return Ul.AUTO;case"visible":default:return Ul.VISIBLE}}))}};!function(Tn){Tn.NORMAL="normal",Tn.BREAK_WORD="break-word"}(jl||(jl={}));var Gl,zl={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"break-word":return jl.BREAK_WORD;case"normal":default:return jl.NORMAL}}},Vl=function paddingForSide(Tn){return{name:"padding-"+Tn,initialValue:"0",prefix:!1,type:jo.TYPE_VALUE,format:"length-percentage"}},Kl=Vl("top"),ql=Vl("right"),Wl=Vl("bottom"),Xl=Vl("left");!function(Tn){Tn[Tn.LEFT=0]="LEFT",Tn[Tn.CENTER=1]="CENTER",Tn[Tn.RIGHT=2]="RIGHT"}(Gl||(Gl={}));var Yl,Jl={name:"text-align",initialValue:"left",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"right":return Gl.RIGHT;case"center":case"justify":return Gl.CENTER;case"left":default:return Gl.LEFT}}};!function(Tn){Tn[Tn.STATIC=0]="STATIC",Tn[Tn.RELATIVE=1]="RELATIVE",Tn[Tn.ABSOLUTE=2]="ABSOLUTE",Tn[Tn.FIXED=3]="FIXED",Tn[Tn.STICKY=4]="STICKY"}(Yl||(Yl={}));var $l,Zl={name:"position",initialValue:"static",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"relative":return Yl.RELATIVE;case"absolute":return Yl.ABSOLUTE;case"fixed":return Yl.FIXED;case"sticky":return Yl.STICKY}return Yl.STATIC}},ec={name:"text-shadow",initialValue:"none",type:jo.LIST,prefix:!1,parse:function parse(Tn){return 1===Tn.length&&po(Tn[0],"none")?[]:go(Tn).map((function(Tn){for(var Un={color:Vo.TRANSPARENT,offsetX:wo,offsetY:wo,blur:wo},Qn=0,Dn=0;Dn<Tn.length;Dn++){var Hn=Tn[Dn];_o(Hn)?(0===Qn?Un.offsetX=Hn:1===Qn?Un.offsetY=Hn:Un.blur=Hn,Qn++):Un.color=Io.parse(Hn)}return Un}))}};!function(Tn){Tn[Tn.NONE=0]="NONE",Tn[Tn.LOWERCASE=1]="LOWERCASE",Tn[Tn.UPPERCASE=2]="UPPERCASE",Tn[Tn.CAPITALIZE=3]="CAPITALIZE"}($l||($l={}));var tc,nc={name:"text-transform",initialValue:"none",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"uppercase":return $l.UPPERCASE;case"lowercase":return $l.LOWERCASE;case"capitalize":return $l.CAPITALIZE}return $l.NONE}},rc={name:"transform",initialValue:"none",prefix:!0,type:jo.VALUE,parse:function parse(Tn){if(Tn.type===Xn.IDENT_TOKEN&&"none"===Tn.value)return null;if(Tn.type===Xn.FUNCTION){var Un=ic[Tn.name];if(void 0===Un)throw new Error('Attempting to parse an unsupported transform function "'+Tn.name+'"');return Un(Tn.values)}return null}},ic={matrix:function matrix(Tn){var Un=Tn.filter((function(Tn){return Tn.type===Xn.NUMBER_TOKEN})).map((function(Tn){return Tn.number}));return 6===Un.length?Un:null},matrix3d:function matrix3d(Tn){var Un=Tn.filter((function(Tn){return Tn.type===Xn.NUMBER_TOKEN})).map((function(Tn){return Tn.number})),Qn=Un[0],Dn=Un[1],Hn=(Un[2],Un[3],Un[4]),Gn=Un[5],zn=(Un[6],Un[7],Un[8],Un[9],Un[10],Un[11],Un[12]),Vn=Un[13];return Un[14],Un[15],16===Un.length?[Qn,Dn,Hn,Gn,zn,Vn]:null}},ac={type:Xn.PERCENTAGE_TOKEN,number:50,flags:wi},oc=[ac,ac],sc={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:jo.LIST,parse:function parse(Tn){var Un=Tn.filter(vo);return 2!==Un.length?oc:[Un[0],Un[1]]}};!function(Tn){Tn[Tn.VISIBLE=0]="VISIBLE",Tn[Tn.HIDDEN=1]="HIDDEN",Tn[Tn.COLLAPSE=2]="COLLAPSE"}(tc||(tc={}));var lc,uc={name:"visible",initialValue:"none",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"hidden":return tc.HIDDEN;case"collapse":return tc.COLLAPSE;case"visible":default:return tc.VISIBLE}}};!function(Tn){Tn.NORMAL="normal",Tn.BREAK_ALL="break-all",Tn.KEEP_ALL="keep-all"}(lc||(lc={}));var dc,hc={name:"word-break",initialValue:"normal",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"break-all":return lc.BREAK_ALL;case"keep-all":return lc.KEEP_ALL;case"normal":default:return lc.NORMAL}}},pc={name:"z-index",initialValue:"auto",prefix:!1,type:jo.VALUE,parse:function parse(Tn){if(Tn.type===Xn.IDENT_TOKEN)return{auto:!0,order:0};if(co(Tn))return{auto:!1,order:Tn.number};throw new Error("Invalid z-index number parsed")}},Ac={name:"opacity",initialValue:"1",type:jo.VALUE,prefix:!1,parse:function parse(Tn){return co(Tn)?Tn.number:1}},fc={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:jo.TYPE_VALUE,format:"color"},gc={name:"text-decoration-line",initialValue:"none",prefix:!1,type:jo.LIST,parse:function parse(Tn){return Tn.filter(uo).map((function(Tn){switch(Tn.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(Tn){return 0!==Tn}))}},mc={name:"font-family",initialValue:"",prefix:!1,type:jo.LIST,parse:function parse(Tn){var Un=[],Qn=[];return Tn.forEach((function(Tn){switch(Tn.type){case Xn.IDENT_TOKEN:case Xn.STRING_TOKEN:Un.push(Tn.value);break;case Xn.NUMBER_TOKEN:Un.push(Tn.number.toString());break;case Xn.COMMA_TOKEN:Qn.push(Un.join(" ")),Un.length=0}})),Un.length&&Qn.push(Un.join(" ")),Qn.map((function(Tn){return-1===Tn.indexOf(" ")?Tn:"'"+Tn+"'"}))}},_c={name:"font-size",initialValue:"0",prefix:!1,type:jo.TYPE_VALUE,format:"length"},vc={name:"font-weight",initialValue:"normal",type:jo.VALUE,prefix:!1,parse:function parse(Tn){if(co(Tn))return Tn.number;if(uo(Tn))switch(Tn.value){case"bold":return 700;case"normal":default:return 400}return 400}},yc={name:"font-variant",initialValue:"none",type:jo.LIST,prefix:!1,parse:function parse(Tn){return Tn.filter(uo).map((function(Tn){return Tn.value}))}};!function(Tn){Tn.NORMAL="normal",Tn.ITALIC="italic",Tn.OBLIQUE="oblique"}(dc||(dc={}));var bc,wc={name:"font-style",initialValue:"normal",prefix:!1,type:jo.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"oblique":return dc.OBLIQUE;case"italic":return dc.ITALIC;case"normal":default:return dc.NORMAL}}},xc=function contains(Tn,Un){return 0!=(Tn&Un)},kc={name:"content",initialValue:"none",type:jo.LIST,prefix:!1,parse:function parse(Tn){if(0===Tn.length)return[];var Un=Tn[0];return Un.type===Xn.IDENT_TOKEN&&"none"===Un.value?[]:Tn}},Sc={name:"counter-increment",initialValue:"none",prefix:!0,type:jo.LIST,parse:function parse(Tn){if(0===Tn.length)return null;var Un=Tn[0];if(Un.type===Xn.IDENT_TOKEN&&"none"===Un.value)return null;for(var Qn=[],Dn=Tn.filter(Ao),Hn=0;Hn<Dn.length;Hn++){var Gn=Dn[Hn],zn=Dn[Hn+1];if(Gn.type===Xn.IDENT_TOKEN){var Vn=zn&&co(zn)?zn.number:1;Qn.push({counter:Gn.value,increment:Vn})}}return Qn}},Cc={name:"counter-reset",initialValue:"none",prefix:!0,type:jo.LIST,parse:function parse(Tn){if(0===Tn.length)return[];for(var Un=[],Qn=Tn.filter(Ao),Dn=0;Dn<Qn.length;Dn++){var Hn=Qn[Dn],Gn=Qn[Dn+1];if(uo(Hn)&&"none"!==Hn.value){var zn=Gn&&co(Gn)?Gn.number:0;Un.push({counter:Hn.value,reset:zn})}}return Un}},Bc={name:"quotes",initialValue:"none",prefix:!0,type:jo.LIST,parse:function parse(Tn){if(0===Tn.length)return null;var Un=Tn[0];if(Un.type===Xn.IDENT_TOKEN&&"none"===Un.value)return null;var Qn=[],Dn=Tn.filter(ho);if(Dn.length%2!=0)return null;for(var Hn=0;Hn<Dn.length;Hn+=2){var Gn=Dn[Hn].value,zn=Dn[Hn+1].value;Qn.push({open:Gn,close:zn})}return Qn}},Ec=function getQuote(Tn,Un,Qn){if(!Tn)return"";var Dn=Tn[Math.min(Un,Tn.length-1)];return Dn?Qn?Dn.open:Dn.close:""},Nc={name:"box-shadow",initialValue:"none",type:jo.LIST,prefix:!1,parse:function parse(Tn){return 1===Tn.length&&po(Tn[0],"none")?[]:go(Tn).map((function(Tn){for(var Un={color:255,offsetX:wo,offsetY:wo,blur:wo,spread:wo,inset:!1},Qn=0,Dn=0;Dn<Tn.length;Dn++){var Hn=Tn[Dn];po(Hn,"inset")?Un.inset=!0:_o(Hn)?(0===Qn?Un.offsetX=Hn:1===Qn?Un.offsetY=Hn:2===Qn?Un.blur=Hn:Un.spread=Hn,Qn++):Un.color=Io.parse(Hn)}return Un}))}},Lc=function(){function CSSParsedDeclaration(Tn){this.backgroundClip=Fc(qo,Tn.backgroundClip),this.backgroundColor=Fc(Wo,Tn.backgroundColor),this.backgroundImage=Fc(zs,Tn.backgroundImage),this.backgroundOrigin=Fc(Vs,Tn.backgroundOrigin),this.backgroundPosition=Fc(Ks,Tn.backgroundPosition),this.backgroundRepeat=Fc(Ws,Tn.backgroundRepeat),this.backgroundSize=Fc(Js,Tn.backgroundSize),this.borderTopColor=Fc(el,Tn.borderTopColor),this.borderRightColor=Fc(tl,Tn.borderRightColor),this.borderBottomColor=Fc(nl,Tn.borderBottomColor),this.borderLeftColor=Fc(rl,Tn.borderLeftColor),this.borderTopLeftRadius=Fc(al,Tn.borderTopLeftRadius),this.borderTopRightRadius=Fc(ol,Tn.borderTopRightRadius),this.borderBottomRightRadius=Fc(sl,Tn.borderBottomRightRadius),this.borderBottomLeftRadius=Fc(ll,Tn.borderBottomLeftRadius),this.borderTopStyle=Fc(dl,Tn.borderTopStyle),this.borderRightStyle=Fc(hl,Tn.borderRightStyle),this.borderBottomStyle=Fc(pl,Tn.borderBottomStyle),this.borderLeftStyle=Fc(Al,Tn.borderLeftStyle),this.borderTopWidth=Fc(gl,Tn.borderTopWidth),this.borderRightWidth=Fc(ml,Tn.borderRightWidth),this.borderBottomWidth=Fc(_l,Tn.borderBottomWidth),this.borderLeftWidth=Fc(vl,Tn.borderLeftWidth),this.boxShadow=Fc(Nc,Tn.boxShadow),this.color=Fc(yl,Tn.color),this.display=Fc(wl,Tn.display),this.float=Fc(Sl,Tn.cssFloat),this.fontFamily=Fc(mc,Tn.fontFamily),this.fontSize=Fc(_c,Tn.fontSize),this.fontStyle=Fc(wc,Tn.fontStyle),this.fontVariant=Fc(yc,Tn.fontVariant),this.fontWeight=Fc(vc,Tn.fontWeight),this.letterSpacing=Fc(Cl,Tn.letterSpacing),this.lineBreak=Fc(El,Tn.lineBreak),this.lineHeight=Fc(Nl,Tn.lineHeight),this.listStyleImage=Fc(Tl,Tn.listStyleImage),this.listStylePosition=Fc(Fl,Tn.listStylePosition),this.listStyleType=Fc(Il,Tn.listStyleType),this.marginTop=Fc(Ml,Tn.marginTop),this.marginRight=Fc(Ql,Tn.marginRight),this.marginBottom=Fc(Ol,Tn.marginBottom),this.marginLeft=Fc(Dl,Tn.marginLeft),this.opacity=Fc(Ac,Tn.opacity);var Un=Fc(Hl,Tn.overflow);this.overflowX=Un[0],this.overflowY=Un[Un.length>1?1:0],this.overflowWrap=Fc(zl,Tn.overflowWrap),this.paddingTop=Fc(Kl,Tn.paddingTop),this.paddingRight=Fc(ql,Tn.paddingRight),this.paddingBottom=Fc(Wl,Tn.paddingBottom),this.paddingLeft=Fc(Xl,Tn.paddingLeft),this.position=Fc(Zl,Tn.position),this.textAlign=Fc(Jl,Tn.textAlign),this.textDecorationColor=Fc(fc,Tn.textDecorationColor||Tn.color),this.textDecorationLine=Fc(gc,Tn.textDecorationLine),this.textShadow=Fc(ec,Tn.textShadow),this.textTransform=Fc(nc,Tn.textTransform),this.transform=Fc(rc,Tn.transform),this.transformOrigin=Fc(sc,Tn.transformOrigin),this.visibility=Fc(uc,Tn.visibility),this.wordBreak=Fc(hc,Tn.wordBreak),this.zIndex=Fc(pc,Tn.zIndex)}return CSSParsedDeclaration.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===tc.VISIBLE},CSSParsedDeclaration.prototype.isTransparent=function(){return Ro(this.backgroundColor)},CSSParsedDeclaration.prototype.isTransformed=function(){return null!==this.transform},CSSParsedDeclaration.prototype.isPositioned=function(){return this.position!==Yl.STATIC},CSSParsedDeclaration.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},CSSParsedDeclaration.prototype.isFloating=function(){return this.float!==cl.NONE},CSSParsedDeclaration.prototype.isInlineLevel=function(){return xc(this.display,4)||xc(this.display,33554432)||xc(this.display,268435456)||xc(this.display,536870912)||xc(this.display,67108864)||xc(this.display,134217728)},CSSParsedDeclaration}(),Tc=function(){function CSSParsedPseudoDeclaration(Tn){this.content=Fc(kc,Tn.content),this.quotes=Fc(Bc,Tn.quotes)}return CSSParsedPseudoDeclaration}(),Pc=function(){function CSSParsedCounterDeclaration(Tn){this.counterIncrement=Fc(Sc,Tn.counterIncrement),this.counterReset=Fc(Cc,Tn.counterReset)}return CSSParsedCounterDeclaration}(),Fc=function parse(Tn,Un){var Qn=new oo,Dn=null!=Un?Un.toString():Tn.initialValue;Qn.write(Dn);var Hn=new so(Qn.read());switch(Tn.type){case jo.IDENT_VALUE:var Gn=Hn.parseComponentValue();return Tn.parse(uo(Gn)?Gn.value:Tn.initialValue);case jo.VALUE:return Tn.parse(Hn.parseComponentValue());case jo.LIST:return Tn.parse(Hn.parseComponentValues());case jo.TOKEN_VALUE:return Hn.parseComponentValue();case jo.TYPE_VALUE:switch(Tn.format){case"angle":return To.parse(Hn.parseComponentValue());case"color":return Io.parse(Hn.parseComponentValue());case"image":return js.parse(Hn.parseComponentValue());case"length":var zn=Hn.parseComponentValue();return _o(zn)?zn:wo;case"length-percentage":var Vn=Hn.parseComponentValue();return vo(Vn)?Vn:wo}}throw new Error("Attempting to parse unsupported css format type "+Tn.format)},Uc=function(){function ElementContainer(Tn){this.styles=new Lc(window.getComputedStyle(Tn,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&_u(Tn)&&(Tn.style.transform="none"),this.bounds=Dn(Tn),this.flags=0}return ElementContainer}(),Ic=function(){function TextBounds(Tn,Un){this.text=Tn,this.bounds=Un}return TextBounds}(),Rc=function parseTextBounds(Tn,Un,Qn){var Dn=Oc(Tn,Un),Hn=[],Gn=0;return Dn.forEach((function(Tn){if(Un.textDecorationLine.length||Tn.trim().length>0)if(As.SUPPORT_RANGE_BOUNDS)Hn.push(new Ic(Tn,Qc(Qn,Gn,Tn.length)));else{var Dn=Qn.splitText(Tn.length);Hn.push(new Ic(Tn,Mc(Qn))),Qn=Dn}else As.SUPPORT_RANGE_BOUNDS||(Qn=Qn.splitText(Tn.length));Gn+=Tn.length})),Hn},Mc=function getWrapperBounds(Tn){var Un=Tn.ownerDocument;if(Un){var Hn=Un.createElement("html2canvaswrapper");Hn.appendChild(Tn.cloneNode(!0));var Gn=Tn.parentNode;if(Gn){Gn.replaceChild(Hn,Tn);var zn=Dn(Hn);return Hn.firstChild&&Gn.replaceChild(Hn.firstChild,Hn),zn}}return new Qn(0,0,0,0)},Qc=function getRangeBounds(Tn,Un,Dn){var Hn=Tn.ownerDocument;if(!Hn)throw new Error("Node has no owner document");var Gn=Hn.createRange();return Gn.setStart(Tn,Un),Gn.setEnd(Tn,Un+Dn),Qn.fromClientRect(Gn.getBoundingClientRect())},Oc=function breakText(Tn,Un){return 0!==Un.letterSpacing?Gn(Tn).map((function(Tn){return zn(Tn)})):Dc(Tn,Un)},Dc=function breakWords(Tn,Un){for(var Qn,Dn=_i(Tn,{lineBreak:Un.lineBreak,wordBreak:Un.overflowWrap===jl.BREAK_WORD?"break-word":Un.wordBreak}),Hn=[];!(Qn=Dn.next()).done;)Qn.value&&Hn.push(Qn.value.slice());return Hn},jc=function(){function TextContainer(Tn,Un){this.text=Hc(Tn.data,Un.textTransform),this.textBounds=Rc(this.text,Un,Tn)}return TextContainer}(),Hc=function transform$1(Tn,Un){switch(Un){case $l.LOWERCASE:return Tn.toLowerCase();case $l.CAPITALIZE:return Tn.replace(Gc,zc);case $l.UPPERCASE:return Tn.toUpperCase();default:return Tn}},Gc=/(^|\s|:|-|\(|\))([a-z])/g,zc=function capitalize(Tn,Un,Qn){return Tn.length>0?Un+Qn.toUpperCase():Tn},Vc=function(Tn){function ImageElementContainer(Un){var Qn=Tn.call(this,Un)||this;return Qn.src=Un.currentSrc||Un.src,Qn.intrinsicWidth=Un.naturalWidth,Qn.intrinsicHeight=Un.naturalHeight,gs.getInstance().addImage(Qn.src),Qn}return __extends(ImageElementContainer,Tn),ImageElementContainer}(Uc),Kc=function(Tn){function CanvasElementContainer(Un){var Qn=Tn.call(this,Un)||this;return Qn.canvas=Un,Qn.intrinsicWidth=Un.width,Qn.intrinsicHeight=Un.height,Qn}return __extends(CanvasElementContainer,Tn),CanvasElementContainer}(Uc),qc=function(Tn){function SVGElementContainer(Un){var Qn=Tn.call(this,Un)||this,Dn=new XMLSerializer;return Qn.svg="data:image/svg+xml,"+encodeURIComponent(Dn.serializeToString(Un)),Qn.intrinsicWidth=Un.width.baseVal.value,Qn.intrinsicHeight=Un.height.baseVal.value,gs.getInstance().addImage(Qn.svg),Qn}return __extends(SVGElementContainer,Tn),SVGElementContainer}(Uc),Wc=function(Tn){function LIElementContainer(Un){var Qn=Tn.call(this,Un)||this;return Qn.value=Un.value,Qn}return __extends(LIElementContainer,Tn),LIElementContainer}(Uc),Xc=function(Tn){function OLElementContainer(Un){var Qn=Tn.call(this,Un)||this;return Qn.start=Un.start,Qn.reversed="boolean"==typeof Un.reversed&&!0===Un.reversed,Qn}return __extends(OLElementContainer,Tn),OLElementContainer}(Uc),Yc=[{type:Xn.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Jc=[{type:Xn.PERCENTAGE_TOKEN,flags:0,number:50}],$c=function reformatInputBounds(Tn){return Tn.width>Tn.height?new Qn(Tn.left+(Tn.width-Tn.height)/2,Tn.top,Tn.height,Tn.height):Tn.width<Tn.height?new Qn(Tn.left,Tn.top+(Tn.height-Tn.width)/2,Tn.width,Tn.width):Tn},Zc=function getInputValue(Tn){var Un=Tn.type===nu?new Array(Tn.value.length+1).join("•"):Tn.value;return 0===Un.length?Tn.placeholder||"":Un},eu="checkbox",tu="radio",nu="password",ru=707406591,iu=function(Tn){function InputElementContainer(Un){var Qn=Tn.call(this,Un)||this;switch(Qn.type=Un.type.toLowerCase(),Qn.checked=Un.checked,Qn.value=Zc(Un),Qn.type!==eu&&Qn.type!==tu||(Qn.styles.backgroundColor=3739148031,Qn.styles.borderTopColor=Qn.styles.borderRightColor=Qn.styles.borderBottomColor=Qn.styles.borderLeftColor=2779096575,Qn.styles.borderTopWidth=Qn.styles.borderRightWidth=Qn.styles.borderBottomWidth=Qn.styles.borderLeftWidth=1,Qn.styles.borderTopStyle=Qn.styles.borderRightStyle=Qn.styles.borderBottomStyle=Qn.styles.borderLeftStyle=Ys.SOLID,Qn.styles.backgroundClip=[Ho.BORDER_BOX],Qn.styles.backgroundOrigin=[0],Qn.bounds=$c(Qn.bounds)),Qn.type){case eu:Qn.styles.borderTopRightRadius=Qn.styles.borderTopLeftRadius=Qn.styles.borderBottomRightRadius=Qn.styles.borderBottomLeftRadius=Yc;break;case tu:Qn.styles.borderTopRightRadius=Qn.styles.borderTopLeftRadius=Qn.styles.borderBottomRightRadius=Qn.styles.borderBottomLeftRadius=Jc}return Qn}return __extends(InputElementContainer,Tn),InputElementContainer}(Uc),au=function(Tn){function SelectElementContainer(Un){var Qn=Tn.call(this,Un)||this,Dn=Un.options[Un.selectedIndex||0];return Qn.value=Dn&&Dn.text||"",Qn}return __extends(SelectElementContainer,Tn),SelectElementContainer}(Uc),ou=function(Tn){function TextareaElementContainer(Un){var Qn=Tn.call(this,Un)||this;return Qn.value=Un.value,Qn}return __extends(TextareaElementContainer,Tn),TextareaElementContainer}(Uc),su=function parseColor(Tn){return Io.parse(so.create(Tn).parseComponentValue())},lu=function(Tn){function IFrameElementContainer(Un){var Qn=Tn.call(this,Un)||this;Qn.src=Un.src,Qn.width=parseInt(Un.width,10)||0,Qn.height=parseInt(Un.height,10)||0,Qn.backgroundColor=Qn.styles.backgroundColor;try{if(Un.contentWindow&&Un.contentWindow.document&&Un.contentWindow.document.documentElement){Qn.tree=pu(Un.contentWindow.document.documentElement);var Dn=Un.contentWindow.document.documentElement?su(getComputedStyle(Un.contentWindow.document.documentElement).backgroundColor):Vo.TRANSPARENT,Hn=Un.contentWindow.document.body?su(getComputedStyle(Un.contentWindow.document.body).backgroundColor):Vo.TRANSPARENT;Qn.backgroundColor=Ro(Dn)?Ro(Hn)?Qn.styles.backgroundColor:Hn:Dn}}catch(Tn){}return Qn}return __extends(IFrameElementContainer,Tn),IFrameElementContainer}(Uc),uu=["OL","UL","MENU"],du=function parseNodeTree(Tn,Un,Qn){for(var Dn=Tn.firstChild,Hn=void 0;Dn;Dn=Hn)if(Hn=Dn.nextSibling,gu(Dn)&&Dn.data.trim().length>0)Un.textNodes.push(new jc(Dn,Un.styles));else if(mu(Dn)){var Gn=hu(Dn);Gn.styles.isVisible()&&(Au(Dn,Gn,Qn)?Gn.flags|=4:fu(Gn.styles)&&(Gn.flags|=2),-1!==uu.indexOf(Dn.tagName)&&(Gn.flags|=8),Un.elements.push(Gn),Tu(Dn)||ku(Dn)||Pu(Dn)||parseNodeTree(Dn,Gn,Qn))}},hu=function createContainer(Tn){return Bu(Tn)?new Vc(Tn):Cu(Tn)?new Kc(Tn):ku(Tn)?new qc(Tn):yu(Tn)?new Wc(Tn):bu(Tn)?new Xc(Tn):wu(Tn)?new iu(Tn):Pu(Tn)?new au(Tn):Tu(Tn)?new ou(Tn):Eu(Tn)?new lu(Tn):new Uc(Tn)},pu=function parseTree(Tn){var Un=hu(Tn);return Un.flags|=4,du(Tn,Un,Un),Un},Au=function createsRealStackingContext(Tn,Un,Qn){return Un.styles.isPositionedWithZIndex()||Un.styles.opacity<1||Un.styles.isTransformed()||Su(Tn)&&Qn.styles.isTransparent()},fu=function createsStackingContext(Tn){return Tn.isPositioned()||Tn.isFloating()},gu=function isTextNode(Tn){return Tn.nodeType===Node.TEXT_NODE},mu=function isElementNode(Tn){return Tn.nodeType===Node.ELEMENT_NODE},_u=function isHTMLElementNode(Tn){return mu(Tn)&&void 0!==Tn.style&&!vu(Tn)},vu=function isSVGElementNode(Tn){return"object"===_typeof(Tn.className)},yu=function isLIElement(Tn){return"LI"===Tn.tagName},bu=function isOLElement(Tn){return"OL"===Tn.tagName},wu=function isInputElement(Tn){return"INPUT"===Tn.tagName},xu=function isHTMLElement(Tn){return"HTML"===Tn.tagName},ku=function isSVGElement(Tn){return"svg"===Tn.tagName},Su=function isBodyElement(Tn){return"BODY"===Tn.tagName},Cu=function isCanvasElement(Tn){return"CANVAS"===Tn.tagName},Bu=function isImageElement(Tn){return"IMG"===Tn.tagName},Eu=function isIFrameElement(Tn){return"IFRAME"===Tn.tagName},Nu=function isStyleElement(Tn){return"STYLE"===Tn.tagName},Lu=function isScriptElement(Tn){return"SCRIPT"===Tn.tagName},Tu=function isTextareaElement(Tn){return"TEXTAREA"===Tn.tagName},Pu=function isSelectElement(Tn){return"SELECT"===Tn.tagName},Fu=function(){function CounterState(){this.counters={}}return CounterState.prototype.getCounterValue=function(Tn){var Un=this.counters[Tn];return Un&&Un.length?Un[Un.length-1]:1},CounterState.prototype.getCounterValues=function(Tn){var Un=this.counters[Tn];return Un||[]},CounterState.prototype.pop=function(Tn){var Un=this;Tn.forEach((function(Tn){return Un.counters[Tn].pop()}))},CounterState.prototype.parse=function(Tn){var Un=this,Qn=Tn.counterIncrement,Dn=Tn.counterReset,Hn=!0;null!==Qn&&Qn.forEach((function(Tn){var Qn=Un.counters[Tn.counter];Qn&&0!==Tn.increment&&(Hn=!1,Qn[Math.max(0,Qn.length-1)]+=Tn.increment)}));var Gn=[];return Hn&&Dn.forEach((function(Tn){var Qn=Un.counters[Tn.counter];Gn.push(Tn.counter),Qn||(Qn=Un.counters[Tn.counter]=[]),Qn.push(Tn.reset)})),Gn},CounterState}(),Uu={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"]},Iu={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ru={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Mu={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Qu=function createAdditiveCounter(Tn,Un,Qn,Dn,Hn,Gn){return Tn<Un||Tn>Qn?Ju(Tn,Hn,Gn.length>0):Dn.integers.reduce((function(Un,Qn,Hn){for(;Tn>=Qn;)Tn-=Qn,Un+=Dn.values[Hn];return Un}),"")+Gn},Ou=function createCounterStyleWithSymbolResolver(Tn,Un,Qn,Dn){var Hn="";do{Qn||Tn--,Hn=Dn(Tn)+Hn,Tn/=Un}while(Tn*Un>=Un);return Hn},Du=function createCounterStyleFromRange(Tn,Un,Qn,Dn,Hn){var Gn=Qn-Un+1;return(Tn<0?"-":"")+(Ou(Math.abs(Tn),Gn,Dn,(function(Tn){return zn(Math.floor(Tn%Gn)+Un)}))+Hn)},ju=function createCounterStyleFromSymbols(Tn,Un,Qn){void 0===Qn&&(Qn=". ");var Dn=Un.length;return Ou(Math.abs(Tn),Dn,!1,(function(Tn){return Un[Math.floor(Tn%Dn)]}))+Qn},Hu=1,Gu=2,zu=4,Vu=8,Ku=function createCJKCounter(Tn,Un,Qn,Dn,Hn,Gn){if(Tn<-9999||Tn>9999)return Ju(Tn,Pl.CJK_DECIMAL,Hn.length>0);var zn=Math.abs(Tn),Vn=Hn;if(0===zn)return Un[0]+Vn;for(var Kn=0;zn>0&&Kn<=4;Kn++){var Wn=zn%10;0===Wn&&xc(Gn,Hu)&&""!==Vn?Vn=Un[Wn]+Vn:Wn>1||1===Wn&&0===Kn||1===Wn&&1===Kn&&xc(Gn,Gu)||1===Wn&&1===Kn&&xc(Gn,zu)&&Tn>100||1===Wn&&Kn>1&&xc(Gn,Vu)?Vn=Un[Wn]+(Kn>0?Qn[Kn-1]:"")+Vn:1===Wn&&Kn>0&&(Vn=Qn[Kn-1]+Vn),zn=Math.floor(zn/10)}return(Tn<0?Dn:"")+Vn},qu="十百千萬",Wu="拾佰仟萬",Xu="マイナス",Yu="마이너스",Ju=function createCounterText(Tn,Un,Qn){var Dn=Qn?". ":"",Hn=Qn?"、":"",Gn=Qn?", ":"",zn=Qn?" ":"";switch(Un){case Pl.DISC:return"•"+zn;case Pl.CIRCLE:return"◦"+zn;case Pl.SQUARE:return"◾"+zn;case Pl.DECIMAL_LEADING_ZERO:var Vn=Du(Tn,48,57,!0,Dn);return Vn.length<4?"0"+Vn:Vn;case Pl.CJK_DECIMAL:return ju(Tn,"〇一二三四五六七八九",Hn);case Pl.LOWER_ROMAN:return Qu(Tn,1,3999,Uu,Pl.DECIMAL,Dn).toLowerCase();case Pl.UPPER_ROMAN:return Qu(Tn,1,3999,Uu,Pl.DECIMAL,Dn);case Pl.LOWER_GREEK:return Du(Tn,945,969,!1,Dn);case Pl.LOWER_ALPHA:return Du(Tn,97,122,!1,Dn);case Pl.UPPER_ALPHA:return Du(Tn,65,90,!1,Dn);case Pl.ARABIC_INDIC:return Du(Tn,1632,1641,!0,Dn);case Pl.ARMENIAN:case Pl.UPPER_ARMENIAN:return Qu(Tn,1,9999,Iu,Pl.DECIMAL,Dn);case Pl.LOWER_ARMENIAN:return Qu(Tn,1,9999,Iu,Pl.DECIMAL,Dn).toLowerCase();case Pl.BENGALI:return Du(Tn,2534,2543,!0,Dn);case Pl.CAMBODIAN:case Pl.KHMER:return Du(Tn,6112,6121,!0,Dn);case Pl.CJK_EARTHLY_BRANCH:return ju(Tn,"子丑寅卯辰巳午未申酉戌亥",Hn);case Pl.CJK_HEAVENLY_STEM:return ju(Tn,"甲乙丙丁戊己庚辛壬癸",Hn);case Pl.CJK_IDEOGRAPHIC:case Pl.TRAD_CHINESE_INFORMAL:return Ku(Tn,"零一二三四五六七八九",qu,"負",Hn,Gu|zu|Vu);case Pl.TRAD_CHINESE_FORMAL:return Ku(Tn,"零壹貳參肆伍陸柒捌玖",Wu,"負",Hn,Hu|Gu|zu|Vu);case Pl.SIMP_CHINESE_INFORMAL:return Ku(Tn,"零一二三四五六七八九",qu,"负",Hn,Gu|zu|Vu);case Pl.SIMP_CHINESE_FORMAL:return Ku(Tn,"零壹贰叁肆伍陆柒捌玖",Wu,"负",Hn,Hu|Gu|zu|Vu);case Pl.JAPANESE_INFORMAL:return Ku(Tn,"〇一二三四五六七八九","十百千万",Xu,Hn,0);case Pl.JAPANESE_FORMAL:return Ku(Tn,"零壱弐参四伍六七八九","拾百千万",Xu,Hn,Hu|Gu|zu);case Pl.KOREAN_HANGUL_FORMAL:return Ku(Tn,"영일이삼사오육칠팔구","십백천만",Yu,Gn,Hu|Gu|zu);case Pl.KOREAN_HANJA_INFORMAL:return Ku(Tn,"零一二三四五六七八九","十百千萬",Yu,Gn,0);case Pl.KOREAN_HANJA_FORMAL:return Ku(Tn,"零壹貳參四五六七八九","拾百千",Yu,Gn,Hu|Gu|zu);case Pl.DEVANAGARI:return Du(Tn,2406,2415,!0,Dn);case Pl.GEORGIAN:return Qu(Tn,1,19999,Mu,Pl.DECIMAL,Dn);case Pl.GUJARATI:return Du(Tn,2790,2799,!0,Dn);case Pl.GURMUKHI:return Du(Tn,2662,2671,!0,Dn);case Pl.HEBREW:return Qu(Tn,1,10999,Ru,Pl.DECIMAL,Dn);case Pl.HIRAGANA:return ju(Tn,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Pl.HIRAGANA_IROHA:return ju(Tn,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Pl.KANNADA:return Du(Tn,3302,3311,!0,Dn);case Pl.KATAKANA:return ju(Tn,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",Hn);case Pl.KATAKANA_IROHA:return ju(Tn,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",Hn);case Pl.LAO:return Du(Tn,3792,3801,!0,Dn);case Pl.MONGOLIAN:return Du(Tn,6160,6169,!0,Dn);case Pl.MYANMAR:return Du(Tn,4160,4169,!0,Dn);case Pl.ORIYA:return Du(Tn,2918,2927,!0,Dn);case Pl.PERSIAN:return Du(Tn,1776,1785,!0,Dn);case Pl.TAMIL:return Du(Tn,3046,3055,!0,Dn);case Pl.TELUGU:return Du(Tn,3174,3183,!0,Dn);case Pl.THAI:return Du(Tn,3664,3673,!0,Dn);case Pl.TIBETAN:return Du(Tn,3872,3881,!0,Dn);case Pl.DECIMAL:default:return Du(Tn,48,57,!0,Dn)}},$u="data-html2canvas-ignore",Zu=function(){function DocumentCloner(Tn,Un){if(this.options=Un,this.scrolledElements=[],this.referenceElement=Tn,this.counters=new Fu,this.quoteDepth=0,!Tn.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Tn.ownerDocument.documentElement)}return DocumentCloner.prototype.toIFrame=function(Tn,Un){var Qn=this,Dn=td(Tn,Un);if(!Dn.contentWindow)return Promise.reject("Unable to find iframe window");var Hn=Tn.defaultView.pageXOffset,Gn=Tn.defaultView.pageYOffset,zn=Dn.contentWindow,Vn=zn.document,Kn=nd(Dn).then((function(){return __awaiter(Qn,void 0,void 0,(function(){var Tn;return __generator(this,(function(Qn){switch(Qn.label){case 0:return this.scrolledElements.forEach(od),zn&&(zn.scrollTo(Un.left,Un.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||zn.scrollY===Un.top&&zn.scrollX===Un.left||(Vn.documentElement.style.top=-Un.top+"px",Vn.documentElement.style.left=-Un.left+"px",Vn.documentElement.style.position="absolute")),Tn=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Vn.fonts&&Vn.fonts.ready?[4,Vn.fonts.ready]:[3,2];case 1:Qn.sent(),Qn.label=2;case 2:return"function"==typeof Tn?[2,Promise.resolve().then((function(){return Tn(Vn)})).then((function(){return Dn}))]:[2,Dn]}}))}))}));return Vn.open(),Vn.write(id(document.doctype)+"<html></html>"),ad(this.referenceElement.ownerDocument,Hn,Gn),Vn.replaceChild(Vn.adoptNode(this.documentElement),Vn.documentElement),Vn.close(),Kn},DocumentCloner.prototype.createElementClone=function(Tn){if(Cu(Tn))return this.createCanvasClone(Tn);if(Nu(Tn))return this.createStyleClone(Tn);var Un=Tn.cloneNode(!1);return Bu(Un)&&"lazy"===Un.loading&&(Un.loading="eager"),Un},DocumentCloner.prototype.createStyleClone=function(Tn){try{var Un=Tn.sheet;if(Un&&Un.cssRules){var Qn=[].slice.call(Un.cssRules,0).reduce((function(Tn,Un){return Un&&"string"==typeof Un.cssText?Tn+Un.cssText:Tn}),""),Dn=Tn.cloneNode(!1);return Dn.textContent=Qn,Dn}}catch(Tn){if(fs.getInstance(this.options.id).error("Unable to access cssRules property",Tn),"SecurityError"!==Tn.name)throw Tn}return Tn.cloneNode(!1)},DocumentCloner.prototype.createCanvasClone=function(Tn){if(this.options.inlineImages&&Tn.ownerDocument){var Un=Tn.ownerDocument.createElement("img");try{return Un.src=Tn.toDataURL(),Un}catch(Tn){fs.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var Qn=Tn.cloneNode(!1);try{Qn.width=Tn.width,Qn.height=Tn.height;var Dn=Tn.getContext("2d"),Hn=Qn.getContext("2d");return Hn&&(Dn?Hn.putImageData(Dn.getImageData(0,0,Tn.width,Tn.height),0,0):Hn.drawImage(Tn,0,0)),Qn}catch(Tn){}return Qn},DocumentCloner.prototype.cloneNode=function(Tn){if(gu(Tn))return document.createTextNode(Tn.data);if(!Tn.ownerDocument)return Tn.cloneNode(!1);var Un=Tn.ownerDocument.defaultView;if(Un&&mu(Tn)&&(_u(Tn)||vu(Tn))){var Qn=this.createElementClone(Tn),Dn=Un.getComputedStyle(Tn),Hn=Un.getComputedStyle(Tn,":before"),Gn=Un.getComputedStyle(Tn,":after");this.referenceElement===Tn&&_u(Qn)&&(this.clonedReferenceElement=Qn),Su(Qn)&&hd(Qn);for(var zn=this.counters.parse(new Pc(Dn)),Vn=this.resolvePseudoContent(Tn,Qn,Hn,bc.BEFORE),Kn=Tn.firstChild;Kn;Kn=Kn.nextSibling)mu(Kn)&&(Lu(Kn)||Kn.hasAttribute($u)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(Kn))||this.options.copyStyles&&mu(Kn)&&Nu(Kn)||Qn.appendChild(this.cloneNode(Kn));Vn&&Qn.insertBefore(Vn,Qn.firstChild);var Wn=this.resolvePseudoContent(Tn,Qn,Gn,bc.AFTER);return Wn&&Qn.appendChild(Wn),this.counters.pop(zn),Dn&&(this.options.copyStyles||vu(Tn))&&!Eu(Tn)&&rd(Dn,Qn),0===Tn.scrollTop&&0===Tn.scrollLeft||this.scrolledElements.push([Qn,Tn.scrollLeft,Tn.scrollTop]),(Tu(Tn)||Pu(Tn))&&(Tu(Qn)||Pu(Qn))&&(Qn.value=Tn.value),Qn}return Tn.cloneNode(!1)},DocumentCloner.prototype.resolvePseudoContent=function(Tn,Un,Qn,Dn){var Hn=this;if(Qn){var Gn=Qn.content,zn=Un.ownerDocument;if(zn&&Gn&&"none"!==Gn&&"-moz-alt-content"!==Gn&&"none"!==Qn.display){this.counters.parse(new Pc(Qn));var Vn=new Tc(Qn),Kn=zn.createElement("html2canvaspseudoelement");rd(Qn,Kn),Vn.content.forEach((function(Un){if(Un.type===Xn.STRING_TOKEN)Kn.appendChild(zn.createTextNode(Un.value));else if(Un.type===Xn.URL_TOKEN){var Qn=zn.createElement("img");Qn.src=Un.value,Qn.style.opacity="1",Kn.appendChild(Qn)}else if(Un.type===Xn.FUNCTION){if("attr"===Un.name){var Dn=Un.values.filter(uo);Dn.length&&Kn.appendChild(zn.createTextNode(Tn.getAttribute(Dn[0].value)||""))}else if("counter"===Un.name){var Gn=Un.values.filter(fo),Wn=Gn[0],Yn=Gn[1];if(Wn&&uo(Wn)){var Jn=Hn.counters.getCounterValue(Wn.value),$n=Yn&&uo(Yn)?Il.parse(Yn.value):Pl.DECIMAL;Kn.appendChild(zn.createTextNode(Ju(Jn,$n,!1)))}}else if("counters"===Un.name){var Zn=Un.values.filter(fo),er=(Wn=Zn[0],Zn[1]);if(Yn=Zn[2],Wn&&uo(Wn)){var tr=Hn.counters.getCounterValues(Wn.value),nr=Yn&&uo(Yn)?Il.parse(Yn.value):Pl.DECIMAL,rr=er&&er.type===Xn.STRING_TOKEN?er.value:"",ir=tr.map((function(Tn){return Ju(Tn,nr,!1)})).join(rr);Kn.appendChild(zn.createTextNode(ir))}}}else if(Un.type===Xn.IDENT_TOKEN)switch(Un.value){case"open-quote":Kn.appendChild(zn.createTextNode(Ec(Vn.quotes,Hn.quoteDepth++,!0)));break;case"close-quote":Kn.appendChild(zn.createTextNode(Ec(Vn.quotes,--Hn.quoteDepth,!1)));break;default:Kn.appendChild(zn.createTextNode(Un.value))}})),Kn.className=cd+" "+ud;var Wn=Dn===bc.BEFORE?" "+cd:" "+ud;return vu(Un)?Un.className.baseValue+=Wn:Un.className+=Wn,Kn}}},DocumentCloner.destroy=function(Tn){return!!Tn.parentNode&&(Tn.parentNode.removeChild(Tn),!0)},DocumentCloner}();!function(Tn){Tn[Tn.BEFORE=0]="BEFORE",Tn[Tn.AFTER=1]="AFTER"}(bc||(bc={}));var ed,td=function createIFrameContainer(Tn,Un){var Qn=Tn.createElement("iframe");return Qn.className="html2canvas-container",Qn.style.visibility="hidden",Qn.style.position="fixed",Qn.style.left="-10000px",Qn.style.top="0px",Qn.style.border="0",Qn.width=Un.width.toString(),Qn.height=Un.height.toString(),Qn.scrolling="no",Qn.setAttribute($u,"true"),Tn.body.appendChild(Qn),Qn},nd=function iframeLoader(Tn){return new Promise((function(Un,Qn){var Dn=Tn.contentWindow;if(!Dn)return Qn("No window assigned for iframe");var Hn=Dn.document;Dn.onload=Tn.onload=Hn.onreadystatechange=function(){Dn.onload=Tn.onload=Hn.onreadystatechange=null;var Qn=setInterval((function(){Hn.body.childNodes.length>0&&"complete"===Hn.readyState&&(clearInterval(Qn),Un(Tn))}),50)}}))},rd=function copyCSSStyles(Tn,Un){for(var Qn=Tn.length-1;Qn>=0;Qn--){var Dn=Tn.item(Qn);"content"!==Dn&&Un.style.setProperty(Dn,Tn.getPropertyValue(Dn))}return Un},id=function serializeDoctype(Tn){var Un="";return Tn&&(Un+="<!DOCTYPE ",Tn.name&&(Un+=Tn.name),Tn.internalSubset&&(Un+=Tn.internalSubset),Tn.publicId&&(Un+='"'+Tn.publicId+'"'),Tn.systemId&&(Un+='"'+Tn.systemId+'"'),Un+=">"),Un},ad=function restoreOwnerScroll(Tn,Un,Qn){Tn&&Tn.defaultView&&(Un!==Tn.defaultView.pageXOffset||Qn!==Tn.defaultView.pageYOffset)&&Tn.defaultView.scrollTo(Un,Qn)},od=function restoreNodeScroll(Tn){var Un=Tn[0],Qn=Tn[1],Dn=Tn[2];Un.scrollLeft=Qn,Un.scrollTop=Dn},sd=":before",ld=":after",cd="___html2canvas___pseudoelement_before",ud="___html2canvas___pseudoelement_after",dd='{\n content: "" !important;\n display: none !important;\n}',hd=function createPseudoHideStyles(Tn){pd(Tn,"."+cd+sd+dd+"\n ."+ud+ld+dd)},pd=function createStyles(Tn,Un){var Qn=Tn.ownerDocument;if(Qn){var Dn=Qn.createElement("style");Dn.textContent=Un,Tn.appendChild(Dn)}};!function(Tn){Tn[Tn.VECTOR=0]="VECTOR",Tn[Tn.BEZIER_CURVE=1]="BEZIER_CURVE"}(ed||(ed={}));var Ad,fd=function equalPath(Tn,Un){return Tn.length===Un.length&&Tn.some((function(Tn,Qn){return Tn===Un[Qn]}))},gd=function transformPath(Tn,Un,Qn,Dn,Hn){return Tn.map((function(Tn,Gn){switch(Gn){case 0:return Tn.add(Un,Qn);case 1:return Tn.add(Un+Dn,Qn);case 2:return Tn.add(Un+Dn,Qn+Hn);case 3:return Tn.add(Un,Qn+Hn)}return Tn}))},md=function(){function Vector(Tn,Un){this.type=ed.VECTOR,this.x=Tn,this.y=Un}return Vector.prototype.add=function(Tn,Un){return new Vector(this.x+Tn,this.y+Un)},Vector}(),_d=function lerp(Tn,Un,Qn){return new md(Tn.x+(Un.x-Tn.x)*Qn,Tn.y+(Un.y-Tn.y)*Qn)},vd=function(){function BezierCurve(Tn,Un,Qn,Dn){this.type=ed.BEZIER_CURVE,this.start=Tn,this.startControl=Un,this.endControl=Qn,this.end=Dn}return BezierCurve.prototype.subdivide=function(Tn,Un){var Qn=_d(this.start,this.startControl,Tn),Dn=_d(this.startControl,this.endControl,Tn),Hn=_d(this.endControl,this.end,Tn),Gn=_d(Qn,Dn,Tn),zn=_d(Dn,Hn,Tn),Vn=_d(Gn,zn,Tn);return Un?new BezierCurve(this.start,Qn,Gn,Vn):new BezierCurve(Vn,zn,Hn,this.end)},BezierCurve.prototype.add=function(Tn,Un){return new BezierCurve(this.start.add(Tn,Un),this.startControl.add(Tn,Un),this.endControl.add(Tn,Un),this.end.add(Tn,Un))},BezierCurve.prototype.reverse=function(){return new BezierCurve(this.end,this.endControl,this.startControl,this.start)},BezierCurve}(),yd=function isBezierCurve(Tn){return Tn.type===ed.BEZIER_CURVE},bd=function(){function BoundCurves(Tn){var Un=Tn.styles,Qn=Tn.bounds,Dn=So(Un.borderTopLeftRadius,Qn.width,Qn.height),Hn=Dn[0],Gn=Dn[1],zn=So(Un.borderTopRightRadius,Qn.width,Qn.height),Vn=zn[0],Kn=zn[1],Wn=So(Un.borderBottomRightRadius,Qn.width,Qn.height),Xn=Wn[0],Yn=Wn[1],Jn=So(Un.borderBottomLeftRadius,Qn.width,Qn.height),$n=Jn[0],Zn=Jn[1],er=[];er.push((Hn+Vn)/Qn.width),er.push(($n+Xn)/Qn.width),er.push((Gn+Zn)/Qn.height),er.push((Kn+Yn)/Qn.height);var tr=Math.max.apply(Math,er);tr>1&&(Hn/=tr,Gn/=tr,Vn/=tr,Kn/=tr,Xn/=tr,Yn/=tr,$n/=tr,Zn/=tr);var nr=Qn.width-Vn,rr=Qn.height-Yn,ir=Qn.width-Xn,ar=Qn.height-Zn,or=Un.borderTopWidth,sr=Un.borderRightWidth,lr=Un.borderBottomWidth,cr=Un.borderLeftWidth,ur=Co(Un.paddingTop,Tn.bounds.width),dr=Co(Un.paddingRight,Tn.bounds.width),hr=Co(Un.paddingBottom,Tn.bounds.width),pr=Co(Un.paddingLeft,Tn.bounds.width);this.topLeftBorderBox=Hn>0||Gn>0?wd(Qn.left,Qn.top,Hn,Gn,Ad.TOP_LEFT):new md(Qn.left,Qn.top),this.topRightBorderBox=Vn>0||Kn>0?wd(Qn.left+nr,Qn.top,Vn,Kn,Ad.TOP_RIGHT):new md(Qn.left+Qn.width,Qn.top),this.bottomRightBorderBox=Xn>0||Yn>0?wd(Qn.left+ir,Qn.top+rr,Xn,Yn,Ad.BOTTOM_RIGHT):new md(Qn.left+Qn.width,Qn.top+Qn.height),this.bottomLeftBorderBox=$n>0||Zn>0?wd(Qn.left,Qn.top+ar,$n,Zn,Ad.BOTTOM_LEFT):new md(Qn.left,Qn.top+Qn.height),this.topLeftPaddingBox=Hn>0||Gn>0?wd(Qn.left+cr,Qn.top+or,Math.max(0,Hn-cr),Math.max(0,Gn-or),Ad.TOP_LEFT):new md(Qn.left+cr,Qn.top+or),this.topRightPaddingBox=Vn>0||Kn>0?wd(Qn.left+Math.min(nr,Qn.width+cr),Qn.top+or,nr>Qn.width+cr?0:Vn-cr,Kn-or,Ad.TOP_RIGHT):new md(Qn.left+Qn.width-sr,Qn.top+or),this.bottomRightPaddingBox=Xn>0||Yn>0?wd(Qn.left+Math.min(ir,Qn.width-cr),Qn.top+Math.min(rr,Qn.height+or),Math.max(0,Xn-sr),Yn-lr,Ad.BOTTOM_RIGHT):new md(Qn.left+Qn.width-sr,Qn.top+Qn.height-lr),this.bottomLeftPaddingBox=$n>0||Zn>0?wd(Qn.left+cr,Qn.top+ar,Math.max(0,$n-cr),Zn-lr,Ad.BOTTOM_LEFT):new md(Qn.left+cr,Qn.top+Qn.height-lr),this.topLeftContentBox=Hn>0||Gn>0?wd(Qn.left+cr+pr,Qn.top+or+ur,Math.max(0,Hn-(cr+pr)),Math.max(0,Gn-(or+ur)),Ad.TOP_LEFT):new md(Qn.left+cr+pr,Qn.top+or+ur),this.topRightContentBox=Vn>0||Kn>0?wd(Qn.left+Math.min(nr,Qn.width+cr+pr),Qn.top+or+ur,nr>Qn.width+cr+pr?0:Vn-cr+pr,Kn-(or+ur),Ad.TOP_RIGHT):new md(Qn.left+Qn.width-(sr+dr),Qn.top+or+ur),this.bottomRightContentBox=Xn>0||Yn>0?wd(Qn.left+Math.min(ir,Qn.width-(cr+pr)),Qn.top+Math.min(rr,Qn.height+or+ur),Math.max(0,Xn-(sr+dr)),Yn-(lr+hr),Ad.BOTTOM_RIGHT):new md(Qn.left+Qn.width-(sr+dr),Qn.top+Qn.height-(lr+hr)),this.bottomLeftContentBox=$n>0||Zn>0?wd(Qn.left+cr+pr,Qn.top+ar,Math.max(0,$n-(cr+pr)),Zn-(lr+hr),Ad.BOTTOM_LEFT):new md(Qn.left+cr+pr,Qn.top+Qn.height-(lr+hr))}return BoundCurves}();!function(Tn){Tn[Tn.TOP_LEFT=0]="TOP_LEFT",Tn[Tn.TOP_RIGHT=1]="TOP_RIGHT",Tn[Tn.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Tn[Tn.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Ad||(Ad={}));var wd=function getCurvePoints(Tn,Un,Qn,Dn,Hn){var Gn=(Math.sqrt(2)-1)/3*4,zn=Qn*Gn,Vn=Dn*Gn,Kn=Tn+Qn,Wn=Un+Dn;switch(Hn){case Ad.TOP_LEFT:return new vd(new md(Tn,Wn),new md(Tn,Wn-Vn),new md(Kn-zn,Un),new md(Kn,Un));case Ad.TOP_RIGHT:return new vd(new md(Tn,Un),new md(Tn+zn,Un),new md(Kn,Wn-Vn),new md(Kn,Wn));case Ad.BOTTOM_RIGHT:return new vd(new md(Kn,Un),new md(Kn,Un+Vn),new md(Tn+zn,Wn),new md(Tn,Wn));case Ad.BOTTOM_LEFT:default:return new vd(new md(Kn,Wn),new md(Kn-zn,Wn),new md(Tn,Un+Vn),new md(Tn,Un))}},xd=function calculateBorderBoxPath(Tn){return[Tn.topLeftBorderBox,Tn.topRightBorderBox,Tn.bottomRightBorderBox,Tn.bottomLeftBorderBox]},kd=function calculateContentBoxPath(Tn){return[Tn.topLeftContentBox,Tn.topRightContentBox,Tn.bottomRightContentBox,Tn.bottomLeftContentBox]},Sd=function calculatePaddingBoxPath(Tn){return[Tn.topLeftPaddingBox,Tn.topRightPaddingBox,Tn.bottomRightPaddingBox,Tn.bottomLeftPaddingBox]},Cd=function(){function TransformEffect(Tn,Un,Qn){this.type=0,this.offsetX=Tn,this.offsetY=Un,this.matrix=Qn,this.target=6}return TransformEffect}(),Bd=function(){function ClipEffect(Tn,Un){this.type=1,this.target=Un,this.path=Tn}return ClipEffect}(),Ed=function isTransformEffect(Tn){return 0===Tn.type},Nd=function isClipEffect(Tn){return 1===Tn.type},Ld=function(){function StackingContext(Tn){this.element=Tn,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return StackingContext}(),Td=function(){function ElementPaint(Tn,Un){if(this.container=Tn,this.effects=Un.slice(0),this.curves=new bd(Tn),null!==Tn.styles.transform){var Qn=Tn.bounds.left+Tn.styles.transformOrigin[0].number,Dn=Tn.bounds.top+Tn.styles.transformOrigin[1].number,Hn=Tn.styles.transform;this.effects.push(new Cd(Qn,Dn,Hn))}if(Tn.styles.overflowX!==Ul.VISIBLE){var Gn=xd(this.curves),zn=Sd(this.curves);fd(Gn,zn)?this.effects.push(new Bd(Gn,6)):(this.effects.push(new Bd(Gn,2)),this.effects.push(new Bd(zn,4)))}}return ElementPaint.prototype.getParentEffects=function(){var Tn=this.effects.slice(0);if(this.container.styles.overflowX!==Ul.VISIBLE){var Un=xd(this.curves),Qn=Sd(this.curves);fd(Un,Qn)||Tn.push(new Bd(Qn,6))}return Tn},ElementPaint}(),Pd=function parseStackTree(Tn,Un,Qn,Dn){Tn.container.elements.forEach((function(Hn){var Gn=xc(Hn.flags,4),zn=xc(Hn.flags,2),Vn=new Td(Hn,Tn.getParentEffects());xc(Hn.styles.display,2048)&&Dn.push(Vn);var Kn=xc(Hn.flags,8)?[]:Dn;if(Gn||zn){var Wn=Gn||Hn.styles.isPositioned()?Qn:Un,Xn=new Ld(Vn);if(Hn.styles.isPositioned()||Hn.styles.opacity<1||Hn.styles.isTransformed()){var Yn=Hn.styles.zIndex.order;if(Yn<0){var Jn=0;Wn.negativeZIndex.some((function(Tn,Un){return Yn>Tn.element.container.styles.zIndex.order?(Jn=Un,!1):Jn>0})),Wn.negativeZIndex.splice(Jn,0,Xn)}else if(Yn>0){var $n=0;Wn.positiveZIndex.some((function(Tn,Un){return Yn>=Tn.element.container.styles.zIndex.order?($n=Un+1,!1):$n>0})),Wn.positiveZIndex.splice($n,0,Xn)}else Wn.zeroOrAutoZIndexOrTransformedOrOpacity.push(Xn)}else Hn.styles.isFloating()?Wn.nonPositionedFloats.push(Xn):Wn.nonPositionedInlineLevel.push(Xn);parseStackTree(Vn,Xn,Gn?Xn:Qn,Kn)}else Hn.styles.isInlineLevel()?Un.inlineLevel.push(Vn):Un.nonInlineLevel.push(Vn),parseStackTree(Vn,Un,Qn,Kn);xc(Hn.flags,8)&&Fd(Hn,Kn)}))},Fd=function processListItems(Tn,Un){for(var Qn=Tn instanceof Xc?Tn.start:1,Dn=Tn instanceof Xc&&Tn.reversed,Hn=0;Hn<Un.length;Hn++){var Gn=Un[Hn];Gn.container instanceof Wc&&"number"==typeof Gn.container.value&&0!==Gn.container.value&&(Qn=Gn.container.value),Gn.listValue=Ju(Qn,Gn.container.styles.listStyleType,!0),Qn+=Dn?-1:1}},Ud=function parseStackingContexts(Tn){var Un=new Td(Tn,[]),Qn=new Ld(Un),Dn=[];return Pd(Un,Qn,Qn,Dn),Fd(Un.container,Dn),Qn},Id=function parsePathForBorder(Tn,Un){switch(Un){case 0:return Rd(Tn.topLeftBorderBox,Tn.topLeftPaddingBox,Tn.topRightBorderBox,Tn.topRightPaddingBox);case 1:return Rd(Tn.topRightBorderBox,Tn.topRightPaddingBox,Tn.bottomRightBorderBox,Tn.bottomRightPaddingBox);case 2:return Rd(Tn.bottomRightBorderBox,Tn.bottomRightPaddingBox,Tn.bottomLeftBorderBox,Tn.bottomLeftPaddingBox);case 3:default:return Rd(Tn.bottomLeftBorderBox,Tn.bottomLeftPaddingBox,Tn.topLeftBorderBox,Tn.topLeftPaddingBox)}},Rd=function createPathFromCurves(Tn,Un,Qn,Dn){var Hn=[];return yd(Tn)?Hn.push(Tn.subdivide(.5,!1)):Hn.push(Tn),yd(Qn)?Hn.push(Qn.subdivide(.5,!0)):Hn.push(Qn),yd(Dn)?Hn.push(Dn.subdivide(.5,!0).reverse()):Hn.push(Dn),yd(Un)?Hn.push(Un.subdivide(.5,!1).reverse()):Hn.push(Un),Hn},Md=function paddingBox(Tn){var Un=Tn.bounds,Qn=Tn.styles;return Un.add(Qn.borderLeftWidth,Qn.borderTopWidth,-(Qn.borderRightWidth+Qn.borderLeftWidth),-(Qn.borderTopWidth+Qn.borderBottomWidth))},Qd=function contentBox(Tn){var Un=Tn.styles,Qn=Tn.bounds,Dn=Co(Un.paddingLeft,Qn.width),Hn=Co(Un.paddingRight,Qn.width),Gn=Co(Un.paddingTop,Qn.width),zn=Co(Un.paddingBottom,Qn.width);return Qn.add(Dn+Un.borderLeftWidth,Gn+Un.borderTopWidth,-(Un.borderRightWidth+Un.borderLeftWidth+Dn+Hn),-(Un.borderTopWidth+Un.borderBottomWidth+Gn+zn))},Od=function calculateBackgroundPositioningArea(Tn,Un){return 0===Tn?Un.bounds:2===Tn?Qd(Un):Md(Un)},Dd=function calculateBackgroundPaintingArea(Tn,Un){return Tn===Ho.BORDER_BOX?Un.bounds:Tn===Ho.CONTENT_BOX?Qd(Un):Md(Un)},jd=function calculateBackgroundRendering(Tn,Un,Qn){var Dn=Od(Vd(Tn.styles.backgroundOrigin,Un),Tn),Hn=Dd(Vd(Tn.styles.backgroundClip,Un),Tn),Gn=zd(Vd(Tn.styles.backgroundSize,Un),Qn,Dn),zn=Gn[0],Vn=Gn[1],Kn=So(Vd(Tn.styles.backgroundPosition,Un),Dn.width-zn,Dn.height-Vn);return[Kd(Vd(Tn.styles.backgroundRepeat,Un),Kn,Gn,Dn,Hn),Math.round(Dn.left+Kn[0]),Math.round(Dn.top+Kn[1]),zn,Vn]},Hd=function isAuto(Tn){return uo(Tn)&&Tn.value===qs.AUTO},Gd=function hasIntrinsicValue(Tn){return"number"==typeof Tn},zd=function calculateBackgroundSize(Tn,Un,Qn){var Dn=Un[0],Hn=Un[1],Gn=Un[2],zn=Tn[0],Vn=Tn[1];if(vo(zn)&&Vn&&vo(Vn))return[Co(zn,Qn.width),Co(Vn,Qn.height)];var Kn=Gd(Gn);if(uo(zn)&&(zn.value===qs.CONTAIN||zn.value===qs.COVER))return Gd(Gn)?Qn.width/Qn.height<Gn!=(zn.value===qs.COVER)?[Qn.width,Qn.width/Gn]:[Qn.height*Gn,Qn.height]:[Qn.width,Qn.height];var Wn=Gd(Dn),Xn=Gd(Hn),Yn=Wn||Xn;if(Hd(zn)&&(!Vn||Hd(Vn)))return Wn&&Xn?[Dn,Hn]:Kn||Yn?Yn&&Kn?[Wn?Dn:Hn*Gn,Xn?Hn:Dn/Gn]:[Wn?Dn:Qn.width,Xn?Hn:Qn.height]:[Qn.width,Qn.height];if(Kn){var Jn=0,$n=0;return vo(zn)?Jn=Co(zn,Qn.width):vo(Vn)&&($n=Co(Vn,Qn.height)),Hd(zn)?Jn=$n*Gn:Vn&&!Hd(Vn)||($n=Jn/Gn),[Jn,$n]}var Zn=null,er=null;if(vo(zn)?Zn=Co(zn,Qn.width):Vn&&vo(Vn)&&(er=Co(Vn,Qn.height)),null===Zn||Vn&&!Hd(Vn)||(er=Wn&&Xn?Zn/Dn*Hn:Qn.height),null!==er&&Hd(zn)&&(Zn=Wn&&Xn?er/Hn*Dn:Qn.width),null!==Zn&&null!==er)return[Zn,er];throw new Error("Unable to calculate background-size for element")},Vd=function getBackgroundValueForIndex(Tn,Un){var Qn=Tn[Un];return void 0===Qn?Tn[0]:Qn},Kd=function calculateBackgroundRepeatPath(Tn,Un,Qn,Dn,Hn){var Gn=Un[0],zn=Un[1],Vn=Qn[0],Kn=Qn[1];switch(Tn){case Hs.REPEAT_X:return[new md(Math.round(Dn.left),Math.round(Dn.top+zn)),new md(Math.round(Dn.left+Dn.width),Math.round(Dn.top+zn)),new md(Math.round(Dn.left+Dn.width),Math.round(Kn+Dn.top+zn)),new md(Math.round(Dn.left),Math.round(Kn+Dn.top+zn))];case Hs.REPEAT_Y:return[new md(Math.round(Dn.left+Gn),Math.round(Dn.top)),new md(Math.round(Dn.left+Gn+Vn),Math.round(Dn.top)),new md(Math.round(Dn.left+Gn+Vn),Math.round(Dn.height+Dn.top)),new md(Math.round(Dn.left+Gn),Math.round(Dn.height+Dn.top))];case Hs.NO_REPEAT:return[new md(Math.round(Dn.left+Gn),Math.round(Dn.top+zn)),new md(Math.round(Dn.left+Gn+Vn),Math.round(Dn.top+zn)),new md(Math.round(Dn.left+Gn+Vn),Math.round(Dn.top+zn+Kn)),new md(Math.round(Dn.left+Gn),Math.round(Dn.top+zn+Kn))];default:return[new md(Math.round(Hn.left),Math.round(Hn.top)),new md(Math.round(Hn.left+Hn.width),Math.round(Hn.top)),new md(Math.round(Hn.left+Hn.width),Math.round(Hn.height+Hn.top)),new md(Math.round(Hn.left),Math.round(Hn.height+Hn.top))]}},qd="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Wd="Hidden Text",Xd=function(){function FontMetrics(Tn){this._data={},this._document=Tn}return FontMetrics.prototype.parseMetrics=function(Tn,Un){var Qn=this._document.createElement("div"),Dn=this._document.createElement("img"),Hn=this._document.createElement("span"),Gn=this._document.body;Qn.style.visibility="hidden",Qn.style.fontFamily=Tn,Qn.style.fontSize=Un,Qn.style.margin="0",Qn.style.padding="0",Gn.appendChild(Qn),Dn.src=qd,Dn.width=1,Dn.height=1,Dn.style.margin="0",Dn.style.padding="0",Dn.style.verticalAlign="baseline",Hn.style.fontFamily=Tn,Hn.style.fontSize=Un,Hn.style.margin="0",Hn.style.padding="0",Hn.appendChild(this._document.createTextNode(Wd)),Qn.appendChild(Hn),Qn.appendChild(Dn);var zn=Dn.offsetTop-Hn.offsetTop+2;Qn.removeChild(Hn),Qn.appendChild(this._document.createTextNode(Wd)),Qn.style.lineHeight="normal",Dn.style.verticalAlign="super";var Vn=Dn.offsetTop-Qn.offsetTop+2;return Gn.removeChild(Qn),{baseline:zn,middle:Vn}},FontMetrics.prototype.getMetrics=function(Tn,Un){var Qn=Tn+" "+Un;return void 0===this._data[Qn]&&(this._data[Qn]=this.parseMetrics(Tn,Un)),this._data[Qn]},FontMetrics}(),Yd=1e4,Jd=function(){function CanvasRenderer(Tn){this._activeEffects=[],this.canvas=Tn.canvas?Tn.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=Tn,Tn.canvas||(this.canvas.width=Math.floor(Tn.width*Tn.scale),this.canvas.height=Math.floor(Tn.height*Tn.scale),this.canvas.style.width=Tn.width+"px",this.canvas.style.height=Tn.height+"px"),this.fontMetrics=new Xd(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-Tn.x+Tn.scrollX,-Tn.y+Tn.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],fs.getInstance(Tn.id).debug("Canvas renderer initialized ("+Tn.width+"x"+Tn.height+" at "+Tn.x+","+Tn.y+") with scale "+Tn.scale)}return CanvasRenderer.prototype.applyEffects=function(Tn,Un){for(var Qn=this;this._activeEffects.length;)this.popEffect();Tn.filter((function(Tn){return xc(Tn.target,Un)})).forEach((function(Tn){return Qn.applyEffect(Tn)}))},CanvasRenderer.prototype.applyEffect=function(Tn){this.ctx.save(),Ed(Tn)&&(this.ctx.translate(Tn.offsetX,Tn.offsetY),this.ctx.transform(Tn.matrix[0],Tn.matrix[1],Tn.matrix[2],Tn.matrix[3],Tn.matrix[4],Tn.matrix[5]),this.ctx.translate(-Tn.offsetX,-Tn.offsetY)),Nd(Tn)&&(this.path(Tn.path),this.ctx.clip()),this._activeEffects.push(Tn)},CanvasRenderer.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},CanvasRenderer.prototype.renderStack=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un;return __generator(this,(function(Qn){switch(Qn.label){case 0:return(Un=Tn.element.container.styles).isVisible()?(this.ctx.globalAlpha=Un.opacity,[4,this.renderStackContent(Tn)]):[3,2];case 1:Qn.sent(),Qn.label=2;case 2:return[2]}}))}))},CanvasRenderer.prototype.renderNode=function(Tn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Un){switch(Un.label){case 0:return Tn.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Tn)]:[3,3];case 1:return Un.sent(),[4,this.renderNodeContent(Tn)];case 2:Un.sent(),Un.label=3;case 3:return[2]}}))}))},CanvasRenderer.prototype.renderTextWithLetterSpacing=function(Tn,Un){var Qn=this;0===Un?this.ctx.fillText(Tn.text,Tn.bounds.left,Tn.bounds.top+Tn.bounds.height):Gn(Tn.text).map((function(Tn){return zn(Tn)})).reduce((function(Un,Dn){return Qn.ctx.fillText(Dn,Un,Tn.bounds.top+Tn.bounds.height),Un+Qn.ctx.measureText(Dn).width}),Tn.bounds.left)},CanvasRenderer.prototype.createFontStyle=function(Tn){var Un=Tn.fontVariant.filter((function(Tn){return"normal"===Tn||"small-caps"===Tn})).join(""),Qn=Tn.fontFamily.join(", "),Dn=lo(Tn.fontSize)?""+Tn.fontSize.number+Tn.fontSize.unit:Tn.fontSize.number+"px";return[[Tn.fontStyle,Un,Tn.fontWeight,Dn,Qn].join(" "),Qn,Dn]},CanvasRenderer.prototype.renderTextNode=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){var Qn,Dn,Hn,Gn,zn=this;return __generator(this,(function(Vn){return Qn=this.createFontStyle(Un),Dn=Qn[0],Hn=Qn[1],Gn=Qn[2],this.ctx.font=Dn,Tn.textBounds.forEach((function(Tn){zn.ctx.fillStyle=Mo(Un.color),zn.renderTextWithLetterSpacing(Tn,Un.letterSpacing);var Qn=Un.textShadow;Qn.length&&Tn.text.trim().length&&(Qn.slice(0).reverse().forEach((function(Un){zn.ctx.shadowColor=Mo(Un.color),zn.ctx.shadowOffsetX=Un.offsetX.number*zn.options.scale,zn.ctx.shadowOffsetY=Un.offsetY.number*zn.options.scale,zn.ctx.shadowBlur=Un.blur.number,zn.ctx.fillText(Tn.text,Tn.bounds.left,Tn.bounds.top+Tn.bounds.height)})),zn.ctx.shadowColor="",zn.ctx.shadowOffsetX=0,zn.ctx.shadowOffsetY=0,zn.ctx.shadowBlur=0),Un.textDecorationLine.length&&(zn.ctx.fillStyle=Mo(Un.textDecorationColor||Un.color),Un.textDecorationLine.forEach((function(Un){switch(Un){case 1:var Qn=zn.fontMetrics.getMetrics(Hn,Gn).baseline;zn.ctx.fillRect(Tn.bounds.left,Math.round(Tn.bounds.top+Qn),Tn.bounds.width,1);break;case 2:zn.ctx.fillRect(Tn.bounds.left,Math.round(Tn.bounds.top),Tn.bounds.width,1);break;case 3:var Dn=zn.fontMetrics.getMetrics(Hn,Gn).middle;zn.ctx.fillRect(Tn.bounds.left,Math.ceil(Tn.bounds.top+Dn),Tn.bounds.width,1)}})))})),[2]}))}))},CanvasRenderer.prototype.renderReplacedElement=function(Tn,Un,Qn){if(Qn&&Tn.intrinsicWidth>0&&Tn.intrinsicHeight>0){var Dn=Qd(Tn),Hn=Sd(Un);this.path(Hn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Qn,0,0,Tn.intrinsicWidth,Tn.intrinsicHeight,Dn.left,Dn.top,Dn.width,Dn.height),this.ctx.restore()}},CanvasRenderer.prototype.renderNodeContent=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er;return __generator(this,(function(tr){switch(tr.label){case 0:this.applyEffects(Tn.effects,4),Un=Tn.container,Dn=Tn.curves,Hn=Un.styles,Gn=0,zn=Un.textNodes,tr.label=1;case 1:return Gn<zn.length?(Vn=zn[Gn],[4,this.renderTextNode(Vn,Hn)]):[3,4];case 2:tr.sent(),tr.label=3;case 3:return Gn++,[3,1];case 4:if(!(Un instanceof Vc))return[3,8];tr.label=5;case 5:return tr.trys.push([5,7,,8]),[4,this.options.cache.match(Un.src)];case 6:return $n=tr.sent(),this.renderReplacedElement(Un,Dn,$n),[3,8];case 7:return tr.sent(),fs.getInstance(this.options.id).error("Error loading image "+Un.src),[3,8];case 8:if(Un instanceof Kc&&this.renderReplacedElement(Un,Dn,Un.canvas),!(Un instanceof qc))return[3,12];tr.label=9;case 9:return tr.trys.push([9,11,,12]),[4,this.options.cache.match(Un.svg)];case 10:return $n=tr.sent(),this.renderReplacedElement(Un,Dn,$n),[3,12];case 11:return tr.sent(),fs.getInstance(this.options.id).error("Error loading svg "+Un.svg.substring(0,255)),[3,12];case 12:return Un instanceof lu&&Un.tree?[4,new CanvasRenderer({id:this.options.id,scale:this.options.scale,backgroundColor:Un.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:Un.width,height:Un.height,cache:this.options.cache,windowWidth:Un.width,windowHeight:Un.height}).render(Un.tree)]:[3,14];case 13:Kn=tr.sent(),Un.width&&Un.height&&this.ctx.drawImage(Kn,0,0,Un.width,Un.height,Un.bounds.left,Un.bounds.top,Un.bounds.width,Un.bounds.height),tr.label=14;case 14:if(Un instanceof iu&&(Wn=Math.min(Un.bounds.width,Un.bounds.height),Un.type===eu?Un.checked&&(this.ctx.save(),this.path([new md(Un.bounds.left+.39363*Wn,Un.bounds.top+.79*Wn),new md(Un.bounds.left+.16*Wn,Un.bounds.top+.5549*Wn),new md(Un.bounds.left+.27347*Wn,Un.bounds.top+.44071*Wn),new md(Un.bounds.left+.39694*Wn,Un.bounds.top+.5649*Wn),new md(Un.bounds.left+.72983*Wn,Un.bounds.top+.23*Wn),new md(Un.bounds.left+.84*Wn,Un.bounds.top+.34085*Wn),new md(Un.bounds.left+.39363*Wn,Un.bounds.top+.79*Wn)]),this.ctx.fillStyle=Mo(ru),this.ctx.fill(),this.ctx.restore()):Un.type===tu&&Un.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Un.bounds.left+Wn/2,Un.bounds.top+Wn/2,Wn/4,0,2*Math.PI,!0),this.ctx.fillStyle=Mo(ru),this.ctx.fill(),this.ctx.restore())),$d(Un)&&Un.value.length){switch(this.ctx.font=this.createFontStyle(Hn)[0],this.ctx.fillStyle=Mo(Hn.color),this.ctx.textBaseline="middle",this.ctx.textAlign=eh(Un.styles.textAlign),er=Qd(Un),Xn=0,Un.styles.textAlign){case Gl.CENTER:Xn+=er.width/2;break;case Gl.RIGHT:Xn+=er.width}Yn=er.add(Xn,0,0,-er.height/2+1),this.ctx.save(),this.path([new md(er.left,er.top),new md(er.left+er.width,er.top),new md(er.left+er.width,er.top+er.height),new md(er.left,er.top+er.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ic(Un.value,Yn),Hn.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!xc(Un.styles.display,2048))return[3,20];if(null===Un.styles.listStyleImage)return[3,19];if((Jn=Un.styles.listStyleImage).type!==Ko.URL)return[3,18];$n=void 0,Zn=Jn.url,tr.label=15;case 15:return tr.trys.push([15,17,,18]),[4,this.options.cache.match(Zn)];case 16:return $n=tr.sent(),this.ctx.drawImage($n,Un.bounds.left-($n.width+10),Un.bounds.top),[3,18];case 17:return tr.sent(),fs.getInstance(this.options.id).error("Error loading list-style-image "+Zn),[3,18];case 18:return[3,20];case 19:Tn.listValue&&Un.styles.listStyleType!==Pl.NONE&&(this.ctx.font=this.createFontStyle(Hn)[0],this.ctx.fillStyle=Mo(Hn.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",er=new Qn(Un.bounds.left,Un.bounds.top+Co(Un.styles.paddingTop,Un.bounds.width),Un.bounds.width,Ll(Hn.lineHeight,Hn.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ic(Tn.listValue,er),Hn.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),tr.label=20;case 20:return[2]}}))}))},CanvasRenderer.prototype.renderStackContent=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er;return __generator(this,(function(tr){switch(tr.label){case 0:return[4,this.renderNodeBackgroundAndBorders(Tn.element)];case 1:tr.sent(),Un=0,Qn=Tn.negativeZIndex,tr.label=2;case 2:return Un<Qn.length?(er=Qn[Un],[4,this.renderStack(er)]):[3,5];case 3:tr.sent(),tr.label=4;case 4:return Un++,[3,2];case 5:return[4,this.renderNodeContent(Tn.element)];case 6:tr.sent(),Dn=0,Hn=Tn.nonInlineLevel,tr.label=7;case 7:return Dn<Hn.length?(er=Hn[Dn],[4,this.renderNode(er)]):[3,10];case 8:tr.sent(),tr.label=9;case 9:return Dn++,[3,7];case 10:Gn=0,zn=Tn.nonPositionedFloats,tr.label=11;case 11:return Gn<zn.length?(er=zn[Gn],[4,this.renderStack(er)]):[3,14];case 12:tr.sent(),tr.label=13;case 13:return Gn++,[3,11];case 14:Vn=0,Kn=Tn.nonPositionedInlineLevel,tr.label=15;case 15:return Vn<Kn.length?(er=Kn[Vn],[4,this.renderStack(er)]):[3,18];case 16:tr.sent(),tr.label=17;case 17:return Vn++,[3,15];case 18:Wn=0,Xn=Tn.inlineLevel,tr.label=19;case 19:return Wn<Xn.length?(er=Xn[Wn],[4,this.renderNode(er)]):[3,22];case 20:tr.sent(),tr.label=21;case 21:return Wn++,[3,19];case 22:Yn=0,Jn=Tn.zeroOrAutoZIndexOrTransformedOrOpacity,tr.label=23;case 23:return Yn<Jn.length?(er=Jn[Yn],[4,this.renderStack(er)]):[3,26];case 24:tr.sent(),tr.label=25;case 25:return Yn++,[3,23];case 26:$n=0,Zn=Tn.positiveZIndex,tr.label=27;case 27:return $n<Zn.length?(er=Zn[$n],[4,this.renderStack(er)]):[3,30];case 28:tr.sent(),tr.label=29;case 29:return $n++,[3,27];case 30:return[2]}}))}))},CanvasRenderer.prototype.mask=function(Tn){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(Tn.slice(0).reverse()),this.ctx.closePath()},CanvasRenderer.prototype.path=function(Tn){this.ctx.beginPath(),this.formatPath(Tn),this.ctx.closePath()},CanvasRenderer.prototype.formatPath=function(Tn){var Un=this;Tn.forEach((function(Tn,Qn){var Dn=yd(Tn)?Tn.start:Tn;0===Qn?Un.ctx.moveTo(Dn.x,Dn.y):Un.ctx.lineTo(Dn.x,Dn.y),yd(Tn)&&Un.ctx.bezierCurveTo(Tn.startControl.x,Tn.startControl.y,Tn.endControl.x,Tn.endControl.y,Tn.end.x,Tn.end.y)}))},CanvasRenderer.prototype.renderRepeat=function(Tn,Un,Qn,Dn){this.path(Tn),this.ctx.fillStyle=Un,this.ctx.translate(Qn,Dn),this.ctx.fill(),this.ctx.translate(-Qn,-Dn)},CanvasRenderer.prototype.resizeImage=function(Tn,Un,Qn){if(Tn.width===Un&&Tn.height===Qn)return Tn;var Dn=this.canvas.ownerDocument.createElement("canvas");return Dn.width=Un,Dn.height=Qn,Dn.getContext("2d").drawImage(Tn,0,0,Tn.width,Tn.height,0,0,Un,Qn),Dn},CanvasRenderer.prototype.renderBackgroundImage=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn,zn;return __generator(this,(function(Vn){switch(Vn.label){case 0:Un=Tn.styles.backgroundImage.length-1,Qn=function _loop_1(Qn){var Hn,Gn,zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr,rr,ir,ar,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr;return __generator(this,(function(yr){switch(yr.label){case 0:if(Qn.type!==Ko.URL)return[3,5];Hn=void 0,Gn=Qn.url,yr.label=1;case 1:return yr.trys.push([1,3,,4]),[4,Dn.options.cache.match(Gn)];case 2:return Hn=yr.sent(),[3,4];case 3:return yr.sent(),fs.getInstance(Dn.options.id).error("Error loading background-image "+Gn),[3,4];case 4:return Hn&&(zn=jd(Tn,Un,[Hn.width,Hn.height,Hn.width/Hn.height]),ir=zn[0],ur=zn[1],dr=zn[2],sr=zn[3],lr=zn[4],nr=Dn.ctx.createPattern(Dn.resizeImage(Hn,sr,lr),"repeat"),Dn.renderRepeat(ir,nr,ur,dr)),[3,6];case 5:Os(Qn)?(Vn=jd(Tn,Un,[null,null,null]),ir=Vn[0],ur=Vn[1],dr=Vn[2],sr=Vn[3],lr=Vn[4],Kn=$o(Qn.angle,sr,lr),Wn=Kn[0],Xn=Kn[1],Yn=Kn[2],Jn=Kn[3],$n=Kn[4],(Zn=document.createElement("canvas")).width=sr,Zn.height=lr,er=Zn.getContext("2d"),tr=er.createLinearGradient(Xn,Jn,Yn,$n),Yo(Qn.stops,Wn).forEach((function(Tn){return tr.addColorStop(Tn.stop,Mo(Tn.color))})),er.fillStyle=tr,er.fillRect(0,0,sr,lr),sr>0&&lr>0&&(nr=Dn.ctx.createPattern(Zn,"repeat"),Dn.renderRepeat(ir,nr,ur,dr))):Ds(Qn)&&(rr=jd(Tn,Un,[null,null,null]),ir=rr[0],ar=rr[1],or=rr[2],sr=rr[3],lr=rr[4],cr=0===Qn.position.length?[xo]:Qn.position,ur=Co(cr[0],sr),dr=Co(cr[cr.length-1],lr),hr=ts(Qn,ur,dr,sr,lr),pr=hr[0],Ar=hr[1],pr>0&&pr>0&&(fr=Dn.ctx.createRadialGradient(ar+ur,or+dr,0,ar+ur,or+dr,pr),Yo(Qn.stops,2*pr).forEach((function(Tn){return fr.addColorStop(Tn.stop,Mo(Tn.color))})),Dn.path(ir),Dn.ctx.fillStyle=fr,pr!==Ar?(gr=Tn.bounds.left+.5*Tn.bounds.width,mr=Tn.bounds.top+.5*Tn.bounds.height,vr=1/(_r=Ar/pr),Dn.ctx.save(),Dn.ctx.translate(gr,mr),Dn.ctx.transform(1,0,0,_r,0,0),Dn.ctx.translate(-gr,-mr),Dn.ctx.fillRect(ar,vr*(or-mr)+mr,sr,lr*vr),Dn.ctx.restore()):Dn.ctx.fill())),yr.label=6;case 6:return Un--,[2]}}))},Dn=this,Hn=0,Gn=Tn.styles.backgroundImage.slice(0).reverse(),Vn.label=1;case 1:return Hn<Gn.length?(zn=Gn[Hn],[5,Qn(zn)]):[3,4];case 2:Vn.sent(),Vn.label=3;case 3:return Hn++,[3,1];case 4:return[2]}}))}))},CanvasRenderer.prototype.renderBorder=function(Tn,Un,Qn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Dn){return this.path(Id(Qn,Un)),this.ctx.fillStyle=Mo(Tn),this.ctx.fill(),[2]}))}))},CanvasRenderer.prototype.renderNodeBackgroundAndBorders=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Dn,Hn,Gn,zn,Vn,Kn,Wn=this;return __generator(this,(function(Xn){switch(Xn.label){case 0:return this.applyEffects(Tn.effects,2),Un=Tn.container.styles,Qn=!Ro(Un.backgroundColor)||Un.backgroundImage.length,Dn=[{style:Un.borderTopStyle,color:Un.borderTopColor},{style:Un.borderRightStyle,color:Un.borderRightColor},{style:Un.borderBottomStyle,color:Un.borderBottomColor},{style:Un.borderLeftStyle,color:Un.borderLeftColor}],Hn=Zd(Vd(Un.backgroundClip,0),Tn.curves),Qn||Un.boxShadow.length?(this.ctx.save(),this.path(Hn),this.ctx.clip(),Ro(Un.backgroundColor)||(this.ctx.fillStyle=Mo(Un.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Tn.container)]):[3,2];case 1:Xn.sent(),this.ctx.restore(),Un.boxShadow.slice(0).reverse().forEach((function(Un){Wn.ctx.save();var Qn=xd(Tn.curves),Dn=Un.inset?0:Yd,Hn=gd(Qn,-Dn+(Un.inset?1:-1)*Un.spread.number,(Un.inset?1:-1)*Un.spread.number,Un.spread.number*(Un.inset?-2:2),Un.spread.number*(Un.inset?-2:2));Un.inset?(Wn.path(Qn),Wn.ctx.clip(),Wn.mask(Hn)):(Wn.mask(Qn),Wn.ctx.clip(),Wn.path(Hn)),Wn.ctx.shadowOffsetX=Un.offsetX.number+Dn,Wn.ctx.shadowOffsetY=Un.offsetY.number,Wn.ctx.shadowColor=Mo(Un.color),Wn.ctx.shadowBlur=Un.blur.number,Wn.ctx.fillStyle=Un.inset?Mo(Un.color):"rgba(0,0,0,1)",Wn.ctx.fill(),Wn.ctx.restore()})),Xn.label=2;case 2:Gn=0,zn=0,Vn=Dn,Xn.label=3;case 3:return zn<Vn.length?(Kn=Vn[zn]).style===Ys.NONE||Ro(Kn.color)?[3,5]:[4,this.renderBorder(Kn.color,Gn,Tn.curves)]:[3,7];case 4:Xn.sent(),Xn.label=5;case 5:Gn++,Xn.label=6;case 6:return zn++,[3,3];case 7:return[2]}}))}))},CanvasRenderer.prototype.render=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un;return __generator(this,(function(Qn){switch(Qn.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Mo(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),Un=Ud(Tn),[4,this.renderStack(Un)];case 1:return Qn.sent(),this.applyEffects([],2),[2,this.canvas]}}))}))},CanvasRenderer}(),$d=function isTextInputElement(Tn){return Tn instanceof ou||Tn instanceof au||Tn instanceof iu&&Tn.type!==tu&&Tn.type!==eu},Zd=function calculateBackgroundCurvedPaintingArea(Tn,Un){switch(Tn){case Ho.BORDER_BOX:return xd(Un);case Ho.CONTENT_BOX:return kd(Un);case Ho.PADDING_BOX:default:return Sd(Un)}},eh=function canvasTextAlign(Tn){switch(Tn){case Gl.CENTER:return"center";case Gl.RIGHT:return"right";case Gl.LEFT:default:return"left"}},th=function(){function ForeignObjectRenderer(Tn){this.canvas=Tn.canvas?Tn.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=Tn,this.canvas.width=Math.floor(Tn.width*Tn.scale),this.canvas.height=Math.floor(Tn.height*Tn.scale),this.canvas.style.width=Tn.width+"px",this.canvas.style.height=Tn.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-Tn.x+Tn.scrollX,-Tn.y+Tn.scrollY),fs.getInstance(Tn.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+Tn.width+"x"+Tn.height+" at "+Tn.x+","+Tn.y+") with scale "+Tn.scale)}return ForeignObjectRenderer.prototype.render=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn;return __generator(this,(function(Dn){switch(Dn.label){case 0:return Un=hs(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,Tn),[4,nh(Un)];case 1:return Qn=Dn.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Mo(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Qn,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},ForeignObjectRenderer}(),nh=function loadSerializedSVG$1(Tn){return new Promise((function(Un,Qn){var Dn=new Image;Dn.onload=function(){Un(Dn)},Dn.onerror=Qn,Dn.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(Tn))}))},rh=void 0,ih=function parseColor$1(Tn){return Io.parse(so.create(Tn).parseComponentValue())},ah=function html2canvas(Tn,Un){return void 0===Un&&(Un={}),oh(Tn,Un)};"undefined"!=typeof window&&gs.setContext(window);var oh=function renderElement(Tn,Gn){return __awaiter(rh,void 0,void 0,(function(){var zn,Vn,Kn,Wn,Xn,Yn,Jn,$n,Zn,er,tr,nr,rr,ir,ar,or,sr,lr,cr,ur,dr,hr,pr;return __generator(this,(function(Ar){switch(Ar.label){case 0:if(!(zn=Tn.ownerDocument))throw new Error("Element is not attached to a Document");if(!(Vn=zn.defaultView))throw new Error("Document is not attached to a Window");return Kn=(Math.round(1e3*Math.random())+Date.now()).toString(16),Wn=Su(Tn)||xu(Tn)?Hn(zn):Dn(Tn),Xn=Wn.width,Yn=Wn.height,Jn=Wn.left,$n=Wn.top,Zn=Un({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},Gn),er={backgroundColor:"#ffffff",cache:Gn.cache?Gn.cache:gs.create(Kn,Zn),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:Vn.devicePixelRatio||1,windowWidth:Vn.innerWidth,windowHeight:Vn.innerHeight,scrollX:Vn.pageXOffset,scrollY:Vn.pageYOffset,x:Jn,y:$n,width:Math.ceil(Xn),height:Math.ceil(Yn),id:Kn},tr=Un({},er,Zn,Gn),nr=new Qn(tr.scrollX,tr.scrollY,tr.windowWidth,tr.windowHeight),fs.create({id:Kn,enabled:tr.logging}),fs.getInstance(Kn).debug("Starting document clone"),rr=new Zu(Tn,{id:Kn,onclone:tr.onclone,ignoreElements:tr.ignoreElements,inlineImages:tr.foreignObjectRendering,copyStyles:tr.foreignObjectRendering}),(ir=rr.clonedReferenceElement)?[4,rr.toIFrame(zn,nr)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return ar=Ar.sent(),or=zn.documentElement?ih(getComputedStyle(zn.documentElement).backgroundColor):Vo.TRANSPARENT,sr=zn.body?ih(getComputedStyle(zn.body).backgroundColor):Vo.TRANSPARENT,lr=Gn.backgroundColor,cr="string"==typeof lr?ih(lr):null===lr?Vo.TRANSPARENT:4294967295,ur=Tn===zn.documentElement?Ro(or)?Ro(sr)?cr:sr:or:cr,dr={id:Kn,cache:tr.cache,canvas:tr.canvas,backgroundColor:ur,scale:tr.scale,x:tr.x,y:tr.y,scrollX:tr.scrollX,scrollY:tr.scrollY,width:tr.width,height:tr.height,windowWidth:tr.windowWidth,windowHeight:tr.windowHeight},tr.foreignObjectRendering?(fs.getInstance(Kn).debug("Document cloned, using foreign object rendering"),[4,new th(dr).render(ir)]):[3,3];case 2:return hr=Ar.sent(),[3,5];case 3:return fs.getInstance(Kn).debug("Document cloned, using computed rendering"),gs.attachInstance(tr.cache),fs.getInstance(Kn).debug("Starting DOM parsing"),pr=pu(ir),gs.detachInstance(),ur===pr.styles.backgroundColor&&(pr.styles.backgroundColor=Vo.TRANSPARENT),fs.getInstance(Kn).debug("Starting renderer"),[4,new Jd(dr).render(pr)];case 4:hr=Ar.sent(),Ar.label=5;case 5:return!0===tr.removeContainer&&(Zu.destroy(ar)||fs.getInstance(Kn).error("Cannot detach cloned iframe as it is not in the DOM anymore")),fs.getInstance(Kn).debug("Finished rendering"),fs.destroy(Kn),gs.destroy(Kn),[2,hr]}}))}))};return ah}()})),dk=Object.freeze(Object.assign(Object.create(null),uk,{default:uk})),hk=Object.isFrozen,pk=fails((function(){hk(1)}));_export({target:"Object",stat:!0,forced:pk},{isFrozen:function isFrozen(Tn){return!isObject(Tn)||!!hk&&hk(Tn)}});var Ak=ov.onFreeze,fk=Object.seal,gk=fails((function(){fk(1)}));_export({target:"Object",stat:!0,forced:gk,sham:!av},{seal:function seal(Tn){return fk&&isObject(Tn)?fk(Ak(Tn)):Tn}});var mk=createCommonjsModule((function(Tn,Un){
|
||
/*! @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.0.8/LICENSE */
|
||
Tn.exports=function(){function _toConsumableArray(Tn){if(Array.isArray(Tn)){for(var Un=0,Qn=Array(Tn.length);Un<Tn.length;Un++)Qn[Un]=Tn[Un];return Qn}return Array.from(Tn)}var Tn=Object.hasOwnProperty,Un=Object.setPrototypeOf,Qn=Object.isFrozen,Dn=Object.keys,Hn=Object.freeze,Gn=Object.seal,zn="undefined"!=typeof Reflect&&Reflect,Vn=zn.apply,Kn=zn.construct;Vn||(Vn=function apply(Tn,Un,Qn){return Tn.apply(Un,Qn)}),Hn||(Hn=function freeze(Tn){return Tn}),Gn||(Gn=function seal(Tn){return Tn}),Kn||(Kn=function construct(Tn,Un){return new(Function.prototype.bind.apply(Tn,[null].concat(_toConsumableArray(Un))))});var Wn=unapply(Array.prototype.forEach),Xn=unapply(Array.prototype.indexOf),Yn=unapply(Array.prototype.join),Jn=unapply(Array.prototype.pop),$n=unapply(Array.prototype.push),Zn=unapply(Array.prototype.slice),er=unapply(String.prototype.toLowerCase),tr=unapply(String.prototype.match),nr=unapply(String.prototype.replace),rr=unapply(String.prototype.indexOf),ir=unapply(String.prototype.trim),ar=unapply(RegExp.prototype.test),or=unconstruct(RegExp),sr=unconstruct(TypeError);function unapply(Tn){return function(Un){for(var Qn=arguments.length,Dn=Array(Qn>1?Qn-1:0),Hn=1;Hn<Qn;Hn++)Dn[Hn-1]=arguments[Hn];return Vn(Tn,Un,Dn)}}function unconstruct(Tn){return function(){for(var Un=arguments.length,Qn=Array(Un),Dn=0;Dn<Un;Dn++)Qn[Dn]=arguments[Dn];return Kn(Tn,Qn)}}function addToSet(Tn,Dn){Un&&Un(Tn,null);for(var Hn=Dn.length;Hn--;){var Gn=Dn[Hn];if("string"==typeof Gn){var zn=er(Gn);zn!==Gn&&(Qn(Dn)||(Dn[Hn]=zn),Gn=zn)}Tn[Gn]=!0}return Tn}function clone(Un){var Qn={},Dn=void 0;for(Dn in Un)Vn(Tn,Un,[Dn])&&(Qn[Dn]=Un[Dn]);return Qn}var lr=Hn(["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","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"]),cr=Hn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","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","video","view","vkern"]),ur=Hn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),dr=Hn(["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"]),hr=Hn(["#text"]),pr=Hn(["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"]),Ar=Hn(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","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","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"]),fr=Hn(["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"]),gr=Hn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mr=Gn(/\{\{[\s\S]*|[\s\S]*\}\}/gm),_r=Gn(/<%[\s\S]*|[\s\S]*%>/gm),vr=Gn(/^data-[\-\w.\u00B7-\uFFFF]/),yr=Gn(/^aria-[\-\w]+$/),br=Gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wr=Gn(/^(?:\w+script|data):/i),xr=Gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),kr="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?function(Tn){return _typeof(Tn)}:function(Tn){return Tn&&"function"==typeof Symbol&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":_typeof(Tn)};function _toConsumableArray$1(Tn){if(Array.isArray(Tn)){for(var Un=0,Qn=Array(Tn.length);Un<Tn.length;Un++)Qn[Un]=Tn[Un];return Qn}return Array.from(Tn)}var Sr=function getGlobal(){return"undefined"==typeof window?null:window},Cr=function _createTrustedTypesPolicy(Tn,Un){if("object"!==(void 0===Tn?"undefined":kr(Tn))||"function"!=typeof Tn.createPolicy)return null;var Qn=null,Dn="data-tt-policy-suffix";Un.currentScript&&Un.currentScript.hasAttribute(Dn)&&(Qn=Un.currentScript.getAttribute(Dn));var Hn="dompurify"+(Qn?"#"+Qn:"");try{return Tn.createPolicy(Hn,{createHTML:function createHTML(Tn){return Tn}})}catch(Tn){return console.warn("TrustedTypes policy "+Hn+" could not be created."),null}};function createDOMPurify(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sr(),Un=function DOMPurify(Tn){return createDOMPurify(Tn)};if(Un.version="2.0.12",Un.removed=[],!Tn||!Tn.document||9!==Tn.document.nodeType)return Un.isSupported=!1,Un;var Qn=Tn.document,Gn=!1,zn=Tn.document,Vn=Tn.DocumentFragment,Kn=Tn.HTMLTemplateElement,Br=Tn.Node,Er=Tn.NodeFilter,Nr=Tn.NamedNodeMap,Lr=void 0===Nr?Tn.NamedNodeMap||Tn.MozNamedAttrMap:Nr,Tr=Tn.Text,Pr=Tn.Comment,Fr=Tn.DOMParser,Ur=Tn.trustedTypes;if("function"==typeof Kn){var Ir=zn.createElement("template");Ir.content&&Ir.content.ownerDocument&&(zn=Ir.content.ownerDocument)}var Rr=Cr(Ur,Qn),Mr=Rr&&gi?Rr.createHTML(""):"",Qr=zn,Or=Qr.implementation,Dr=Qr.createNodeIterator,jr=Qr.getElementsByTagName,Hr=Qr.createDocumentFragment,Gr=Qn.importNode,zr={};Un.isSupported=Or&&void 0!==Or.createHTMLDocument&&9!==zn.documentMode;var Vr=mr,Kr=_r,qr=vr,Wr=yr,Xr=wr,Yr=xr,Jr=br,$r=null,Zr=addToSet({},[].concat(_toConsumableArray$1(lr),_toConsumableArray$1(cr),_toConsumableArray$1(ur),_toConsumableArray$1(dr),_toConsumableArray$1(hr))),ei=null,ti=addToSet({},[].concat(_toConsumableArray$1(pr),_toConsumableArray$1(Ar),_toConsumableArray$1(fr),_toConsumableArray$1(gr))),ni=null,ri=null,ii=!0,ai=!0,oi=!1,si=!1,li=!1,ui=!1,di=!1,hi=!1,pi=!1,Ai=!1,fi=!1,gi=!1,mi=!0,_i=!0,vi=!1,yi={},wi=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),xi=null,ki=addToSet({},["audio","video","img","source","image","track"]),Si=null,Ci=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Bi=null,Ei=zn.createElement("form"),Ni=function _parseConfig(Tn){Bi&&Bi===Tn||(Tn&&"object"===(void 0===Tn?"undefined":kr(Tn))||(Tn={}),$r="ALLOWED_TAGS"in Tn?addToSet({},Tn.ALLOWED_TAGS):Zr,ei="ALLOWED_ATTR"in Tn?addToSet({},Tn.ALLOWED_ATTR):ti,Si="ADD_URI_SAFE_ATTR"in Tn?addToSet(clone(Ci),Tn.ADD_URI_SAFE_ATTR):Ci,xi="ADD_DATA_URI_TAGS"in Tn?addToSet(clone(ki),Tn.ADD_DATA_URI_TAGS):ki,ni="FORBID_TAGS"in Tn?addToSet({},Tn.FORBID_TAGS):{},ri="FORBID_ATTR"in Tn?addToSet({},Tn.FORBID_ATTR):{},yi="USE_PROFILES"in Tn&&Tn.USE_PROFILES,ii=!1!==Tn.ALLOW_ARIA_ATTR,ai=!1!==Tn.ALLOW_DATA_ATTR,oi=Tn.ALLOW_UNKNOWN_PROTOCOLS||!1,si=Tn.SAFE_FOR_JQUERY||!1,li=Tn.SAFE_FOR_TEMPLATES||!1,ui=Tn.WHOLE_DOCUMENT||!1,pi=Tn.RETURN_DOM||!1,Ai=Tn.RETURN_DOM_FRAGMENT||!1,fi=Tn.RETURN_DOM_IMPORT||!1,gi=Tn.RETURN_TRUSTED_TYPE||!1,hi=Tn.FORCE_BODY||!1,mi=!1!==Tn.SANITIZE_DOM,_i=!1!==Tn.KEEP_CONTENT,vi=Tn.IN_PLACE||!1,Jr=Tn.ALLOWED_URI_REGEXP||Jr,li&&(ai=!1),Ai&&(pi=!0),yi&&($r=addToSet({},[].concat(_toConsumableArray$1(hr))),ei=[],!0===yi.html&&(addToSet($r,lr),addToSet(ei,pr)),!0===yi.svg&&(addToSet($r,cr),addToSet(ei,Ar),addToSet(ei,gr)),!0===yi.svgFilters&&(addToSet($r,ur),addToSet(ei,Ar),addToSet(ei,gr)),!0===yi.mathMl&&(addToSet($r,dr),addToSet(ei,fr),addToSet(ei,gr))),Tn.ADD_TAGS&&($r===Zr&&($r=clone($r)),addToSet($r,Tn.ADD_TAGS)),Tn.ADD_ATTR&&(ei===ti&&(ei=clone(ei)),addToSet(ei,Tn.ADD_ATTR)),Tn.ADD_URI_SAFE_ATTR&&addToSet(Si,Tn.ADD_URI_SAFE_ATTR),_i&&($r["#text"]=!0),ui&&addToSet($r,["html","head","body"]),$r.table&&(addToSet($r,["tbody"]),delete ni.tbody),Hn&&Hn(Tn),Bi=Tn)},Li=function _forceRemove(Tn){$n(Un.removed,{element:Tn});try{Tn.parentNode.removeChild(Tn)}catch(Un){Tn.outerHTML=Mr}},Ti=function _removeAttribute(Tn,Qn){try{$n(Un.removed,{attribute:Qn.getAttributeNode(Tn),from:Qn})}catch(Tn){$n(Un.removed,{attribute:null,from:Qn})}Qn.removeAttribute(Tn)},Pi=function _initDocument(Tn){var Un=void 0,Qn=void 0;if(hi)Tn="<remove></remove>"+Tn;else{var Dn=tr(Tn,/^[\r\n\t ]+/);Qn=Dn&&Dn[0]}var Hn=Rr?Rr.createHTML(Tn):Tn;try{Un=(new Fr).parseFromString(Hn,"text/html")}catch(Tn){}if(Gn&&addToSet(ni,["title"]),!Un||!Un.documentElement){var Vn=(Un=Or.createHTMLDocument("")).body;Vn.parentNode.removeChild(Vn.parentNode.firstElementChild),Vn.outerHTML=Hn}return Tn&&Qn&&Un.body.insertBefore(zn.createTextNode(Qn),Un.body.childNodes[0]||null),jr.call(Un,ui?"html":"body")[0]};Un.isSupported&&function(){try{var Tn=Pi("<x/><title></title><img>");ar(/<\/title/,Tn.querySelector("title").innerHTML)&&(Gn=!0)}catch(Tn){}}();var Fi=function _createIterator(Tn){return Dr.call(Tn.ownerDocument||Tn,Tn,Er.SHOW_ELEMENT|Er.SHOW_COMMENT|Er.SHOW_TEXT,(function(){return Er.FILTER_ACCEPT}),!1)},Ui=function _isClobbered(Tn){return!(Tn instanceof Tr||Tn instanceof Pr||"string"==typeof Tn.nodeName&&"string"==typeof Tn.textContent&&"function"==typeof Tn.removeChild&&Tn.attributes instanceof Lr&&"function"==typeof Tn.removeAttribute&&"function"==typeof Tn.setAttribute&&"string"==typeof Tn.namespaceURI)},Ii=function _isNode(Tn){return"object"===(void 0===Br?"undefined":kr(Br))?Tn instanceof Br:Tn&&"object"===(void 0===Tn?"undefined":kr(Tn))&&"number"==typeof Tn.nodeType&&"string"==typeof Tn.nodeName},Ri=function _executeHook(Tn,Qn,Dn){zr[Tn]&&Wn(zr[Tn],(function(Tn){Tn.call(Un,Qn,Dn,Bi)}))},Mi=function _sanitizeElements(Tn){var Qn=void 0;if(Ri("beforeSanitizeElements",Tn,null),Ui(Tn))return Li(Tn),!0;var Dn=er(Tn.nodeName);if(Ri("uponSanitizeElement",Tn,{tagName:Dn,allowedTags:$r}),("svg"===Dn||"math"===Dn)&&0!==Tn.querySelectorAll("p, br").length)return Li(Tn),!0;if(!$r[Dn]||ni[Dn]){if(_i&&!wi[Dn]&&"function"==typeof Tn.insertAdjacentHTML)try{var Hn=Tn.innerHTML;Tn.insertAdjacentHTML("AfterEnd",Rr?Rr.createHTML(Hn):Hn)}catch(Tn){}return Li(Tn),!0}return"noscript"===Dn&&ar(/<\/noscript/i,Tn.innerHTML)||"noembed"===Dn&&ar(/<\/noembed/i,Tn.innerHTML)?(Li(Tn),!0):(!si||Tn.firstElementChild||Tn.content&&Tn.content.firstElementChild||!ar(/</g,Tn.textContent)||($n(Un.removed,{element:Tn.cloneNode()}),Tn.innerHTML?Tn.innerHTML=nr(Tn.innerHTML,/</g,"<"):Tn.innerHTML=nr(Tn.textContent,/</g,"<")),li&&3===Tn.nodeType&&(Qn=Tn.textContent,Qn=nr(Qn,Vr," "),Qn=nr(Qn,Kr," "),Tn.textContent!==Qn&&($n(Un.removed,{element:Tn.cloneNode()}),Tn.textContent=Qn)),Ri("afterSanitizeElements",Tn,null),!1)},Qi=function _isValidAttribute(Tn,Un,Qn){if(mi&&("id"===Un||"name"===Un)&&(Qn in zn||Qn in Ei))return!1;if(ai&&ar(qr,Un));else if(ii&&ar(Wr,Un));else{if(!ei[Un]||ri[Un])return!1;if(Si[Un]);else if(ar(Jr,nr(Qn,Yr,"")));else if("src"!==Un&&"xlink:href"!==Un&&"href"!==Un||"script"===Tn||0!==rr(Qn,"data:")||!xi[Tn])if(oi&&!ar(Xr,nr(Qn,Yr,"")));else if(Qn)return!1}return!0},Oi=function _sanitizeAttributes(Tn){var Qn=void 0,Hn=void 0,Gn=void 0,zn=void 0,Vn=void 0;Ri("beforeSanitizeAttributes",Tn,null);var Kn=Tn.attributes;if(Kn){var Wn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ei};for(Vn=Kn.length;Vn--;){var $n=Qn=Kn[Vn],tr=$n.name,rr=$n.namespaceURI;if(Hn=ir(Qn.value),Gn=er(tr),Wn.attrName=Gn,Wn.attrValue=Hn,Wn.keepAttr=!0,Wn.forceKeepAttr=void 0,Ri("uponSanitizeAttribute",Tn,Wn),Hn=Wn.attrValue,!Wn.forceKeepAttr){if("name"===Gn&&"IMG"===Tn.nodeName&&Kn.id)zn=Kn.id,Kn=Zn(Kn,[]),Ti("id",Tn),Ti(tr,Tn),Xn(Kn,zn)>Vn&&Tn.setAttribute("id",zn.value);else{if("INPUT"===Tn.nodeName&&"type"===Gn&&"file"===Hn&&Wn.keepAttr&&(ei[Gn]||!ri[Gn]))continue;"id"===tr&&Tn.setAttribute(tr,""),Ti(tr,Tn)}if(Wn.keepAttr)if(si&&ar(/\/>/i,Hn))Ti(tr,Tn);else if(ar(/svg|math/i,Tn.namespaceURI)&&ar(or("</("+Yn(Dn(wi),"|")+")","i"),Hn))Ti(tr,Tn);else{li&&(Hn=nr(Hn,Vr," "),Hn=nr(Hn,Kr," "));var sr=Tn.nodeName.toLowerCase();if(Qi(sr,Gn,Hn))try{rr?Tn.setAttributeNS(rr,tr,Hn):Tn.setAttribute(tr,Hn),Jn(Un.removed)}catch(Tn){}}}}Ri("afterSanitizeAttributes",Tn,null)}},Di=function _sanitizeShadowDOM(Tn){var Un=void 0,Qn=Fi(Tn);for(Ri("beforeSanitizeShadowDOM",Tn,null);Un=Qn.nextNode();)Ri("uponSanitizeShadowNode",Un,null),Mi(Un)||(Un.content instanceof Vn&&_sanitizeShadowDOM(Un.content),Oi(Un));Ri("afterSanitizeShadowDOM",Tn,null)};return Un.sanitize=function(Dn,Hn){var Gn=void 0,zn=void 0,Kn=void 0,Wn=void 0,Xn=void 0;if(Dn||(Dn="\x3c!--\x3e"),"string"!=typeof Dn&&!Ii(Dn)){if("function"!=typeof Dn.toString)throw sr("toString is not a function");if("string"!=typeof(Dn=Dn.toString()))throw sr("dirty is not a string, aborting")}if(!Un.isSupported){if("object"===kr(Tn.toStaticHTML)||"function"==typeof Tn.toStaticHTML){if("string"==typeof Dn)return Tn.toStaticHTML(Dn);if(Ii(Dn))return Tn.toStaticHTML(Dn.outerHTML)}return Dn}if(di||Ni(Hn),Un.removed=[],"string"==typeof Dn&&(vi=!1),vi);else if(Dn instanceof Br)1===(zn=(Gn=Pi("\x3c!--\x3e")).ownerDocument.importNode(Dn,!0)).nodeType&&"BODY"===zn.nodeName||"HTML"===zn.nodeName?Gn=zn:Gn.appendChild(zn);else{if(!pi&&!li&&!ui&&-1===Dn.indexOf("<"))return Rr&&gi?Rr.createHTML(Dn):Dn;if(!(Gn=Pi(Dn)))return pi?null:Mr}Gn&&hi&&Li(Gn.firstChild);for(var Yn=Fi(vi?Dn:Gn);Kn=Yn.nextNode();)3===Kn.nodeType&&Kn===Wn||Mi(Kn)||(Kn.content instanceof Vn&&Di(Kn.content),Oi(Kn),Wn=Kn);if(Wn=null,vi)return Dn;if(pi){if(Ai)for(Xn=Hr.call(Gn.ownerDocument);Gn.firstChild;)Xn.appendChild(Gn.firstChild);else Xn=Gn;return fi&&(Xn=Gr.call(Qn,Xn,!0)),Xn}var Jn=ui?Gn.outerHTML:Gn.innerHTML;return li&&(Jn=nr(Jn,Vr," "),Jn=nr(Jn,Kr," ")),Rr&&gi?Rr.createHTML(Jn):Jn},Un.setConfig=function(Tn){Ni(Tn),di=!0},Un.clearConfig=function(){Bi=null,di=!1},Un.isValidAttribute=function(Tn,Un,Qn){Bi||Ni({});var Dn=er(Tn),Hn=er(Un);return Qi(Dn,Hn,Qn)},Un.addHook=function(Tn,Un){"function"==typeof Un&&(zr[Tn]=zr[Tn]||[],$n(zr[Tn],Un))},Un.removeHook=function(Tn){zr[Tn]&&Jn(zr[Tn])},Un.removeHooks=function(Tn){zr[Tn]&&(zr[Tn]=[])},Un.removeAllHooks=function(){zr={}},Un}return createDOMPurify()}()})),_k=Object.freeze(Object.assign(Object.create(null),mk,{default:mk})),vk=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 'n beroerte kleur verander",zoom_level:"Change zoom vlak",panel_drag:"Drag left/right to resize 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"},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:"Lettertipe verander Familie",font_size:"Verandering Lettertipe Grootte",bold:"Vetgedrukte teks",italic:"Italic Text"},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",new_doc:"Nuwe Beeld",open_doc:"Open Beeld",export_img:"Export",save_doc:"Slaan Beeld",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),yk=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_drag:"Drag left/right to resize 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"},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:"تغيير الخط الأسرة",font_size:"تغيير حجم الخط",bold:"نص جريء",italic:"مائل نص"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),wk=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_drag:"Drag left/right to resize 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"},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_size:"Change Font Size",bold:"Bold Text",italic:"Italic Text"},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",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),xk=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_drag:"Drag left/right to resize 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"},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:"Старонка круга'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:"Змены Сямейства шрыфтоў",font_size:"Змяніць памер шрыфта",bold:"Тоўсты тэкст",italic:"Нахілены тэкст"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),kk=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_drag:"Drag left/right to resize 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"},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:"Промяна кръг's CY координира",circle_r:"Промяна кръг радиус",ellipse_cx:"Промяна на елипса's CX координира",ellipse_cy:"Промяна на елипса's CY координира",ellipse_rx:"Промяна на елипса's X радиус",ellipse_ry:"Промяна на елипса'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:"Промяна на шрифта Семейство",font_size:"Промени размера на буквите",bold:"Получер текст",italic:"Курсив текст"},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:"най-малката обект",new_doc:"Ню Имидж",open_doc:"Отворете изображението",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Sk=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_drag:"Drag left/right to resize 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"},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'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'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'hores de coordenada x",line_y1:"Canviar la línia de partida i de coordinar",line_y2:"Canviar la línia d'hores de coordenada",rect_height:"Rectangle d'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'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:"Canviar la font Família",font_size:"Change Font Size",bold:"Text en negreta",italic:"Text en cursiva"},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'",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 Image",align_to_page:"Align Element to Page",align_bottom:"Alinear baix",align_center:"Alinear al centre",align_left:"Alinear a l'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'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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Ck=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_drag:"Drag left/right to resize 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"},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:"Změnit font",font_size:"Změnit velikost písma",bold:"Tučně",italic:"Kurzíva"},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"},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",icon_size:"Velikost ikon",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.",icon_large:"velké",icon_medium:"střední",icon_small:"malé",icon_xlarge:"největší",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"},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 %s 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"}}}),Bk=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_drag:"Drag left/right to resize 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"},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'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'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:"Newid Font Teulu",font_size:"Newid Maint Ffont",bold:"Testun Bras",italic:"Italig Testun"},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 Image",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'r Gwaelod",move_top:"Symud i'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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Ek=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_drag:"Drag left/right to resize 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"},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's cx koordinere",ellipse_cy:"Skift ellipse's cy koordinere",ellipse_rx:"Skift ellipse's x radius",ellipse_ry:"Skift ellipse's y radius",line_x1:"Skift linie's start x-koordinat",line_x2:"Skift Line's slutter x-koordinat",line_y1:"Skift linjens start y-koordinat",line_y2:"Skift Line'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",italic:"Italic Text"},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",new_doc:"Nyt billede",open_doc:"Open SVG",export_img:"Export",save_doc:"Gem billede",import_doc:"Import Image",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"},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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Nk=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_drag:"Nach links/rechts ziehen, um die Größe vom Seitenpanel zu ändern",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"},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:"Schriftart wählen",font_size:"Schriftgröße einstellen",bold:"Fetter Text",italic:"Kursiver Text"},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"},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",icon_size:"Symbol-Abmessungen",language:"Sprache",background:"Editor-Hintergrund",editor_img_url:"Bild-URL",editor_bg_note:"Anmerkung: Der Hintergrund wird mit dem Bild nicht gespeichert.",icon_large:"Groß",icon_medium:"Mittel",icon_small:"Klein",icon_xlarge:"Sehr Groß",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"},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 %s 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"}}}),Lk=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_drag:"Drag left/right to resize 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"},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:"Αλλαγή γραμματοσειράς Οικογένεια",font_size:"Αλλαγή μεγέθους γραμματοσειράς",bold:"Bold Text",italic:"Πλάγιους"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Tk=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_drag:"Drag left/right to resize 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"},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:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text [B]",italic:"Italic Text [I]"},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",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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 [Ctrl+Up/Down]",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo [Z]",redo:"Redo [Y]",tool_source:"Edit Source [U]",wireframe_mode:"Wireframe Mode [F]",clone:"Duplicate Element(s) [D]",del:"Delete Element(s) [Delete/Backspace]",group_elements:"Group Elements [G]",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 [D]",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"},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",icon_size:"Icon size:",language:"Language:",background:"Editor Background",editor_img_url:"Image URL:",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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:"},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 %s 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"}}}),Pk=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_drag:"Drag left/right to resize 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"},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:"Tipo de fuente",font_size:"Tamaño de la fuente",bold:"Texto en negrita",italic:"Texto en cursiva"},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"},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",icon_size:"Tamaño de los iconos",language:"Idioma",background:"Fondo del editor",editor_img_url:"Image URL",editor_bg_note:"Nota: El fondo no se guardará junto con la imagen.",icon_large:"Grande",icon_medium:"Mediano",icon_small:"Pequeño",icon_xlarge:"Muy grande",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"},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 %s 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"}}}),Fk=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_drag:"Drag left/right to resize 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"},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's cx kooskõlastada",circle_cy:"Muuda ringi's cy kooskõlastada",circle_r:"Muuda ring on raadiusega",ellipse_cx:"Muuda ellips's cx kooskõlastada",ellipse_cy:"Muuda ellips's cy kooskõlastada",ellipse_rx:"Muuda ellips's x raadius",ellipse_ry:"Muuda ellips'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:"Muutke Kirjasinperhe",font_size:"Change font size",bold:"Rasvane kiri",italic:"Kursiiv"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Uk=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_drag:"Drag left/right to resize 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"},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:"تغییر خانواده قلم",font_size:"تغییر اندازه قلم",bold:"متن توپر ",italic:"متن کج "},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 Image",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"},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:"تنظیمات ویراستار",icon_size:"اندازه شمایل",language:"زبان",background:"پس زمینه ویراستار",editor_img_url:"Image URL",editor_bg_note:"توجه: پس زمینه همراه تصویر ذخیره نخواهد شد.",icon_large:"بزرگ",icon_medium:"متوسط",icon_small:"کوچک",icon_xlarge:"خیلی بزرگ",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"},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 %s 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"}}}),Ik=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_drag:"Drag left/right to resize 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"},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's CX koordinoida",ellipse_cy:"Muuta ellipsi's CY koordinoida",ellipse_rx:"Muuta ellipsi'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:"Muuta Font Family",font_size:"Muuta fontin kokoa",bold:"Lihavoitu teksti",italic:"Kursivoitu"},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",new_doc:"Uusi kuva",open_doc:"Avaa kuva",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Rk=Object.freeze({__proto__:null,default:{lang:"fr",dir:"ltr",common:{ok:"OK",cancel:"Annuler",key_backspace:"Retour Arr.",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_drag:"Tirer vers la gauche/droite pour redimensionner le panneau",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"},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:"Changer la famille de police",font_size:"Changer la taille de la police",bold:"Texte en gras",italic:"Texte en italique"},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:"SVG-Edit Home Page",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"},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",icon_size:"Taille des icônes",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.",icon_large:"Grande",icon_medium:"Moyenne",icon_small:"Petite",icon_xlarge:"Super grande",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"},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 %s 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"}}}),Mk=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_drag:"Drag left/right to resize 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"},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:"Lettertype oanpasse",font_size:"Lettergrutte oanpasse",bold:"Fet",italic:"Skean"},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 Image",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"},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",icon_size:"Ikoangrutte",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.",icon_large:"Grut",icon_medium:"Middel",icon_small:"Lyts",icon_xlarge:"Ekstra grut",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"},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 %s 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"}}}),Qk=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_drag:"Drag left/right to resize 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"},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's ga",ellipse_cx:"Athraigh Éilips'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:"Athraigh an Cló Teaghlaigh",font_size:"Athraigh Clómhéid",bold:"Trom Téacs",italic:"Iodálach Téacs"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Ok=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_drag:"Drag left/right to resize 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"},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:"Cambiar fonte Familia",font_size:"Mudar tamaño de letra",bold:"Bold Text",italic:"Texto en cursiva"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Dk=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_drag:"Drag left/right to resize 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"},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:"שינוי גופן משפחה",font_size:"שנה גודל גופן",bold:"טקסט מודגש",italic:"טקסט נטוי"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),jk=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_drag:"Drag left/right to resize 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"},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:"बदलें फ़ॉन्ट परिवार",font_size:"फ़ॉन्ट का आकार बदलें",bold:"मोटा पाठ",italic:"इटैलिक पाठ"},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 Image",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"},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:"संपादक वरीयताएँ",icon_size:"चिह्न का आकार",language:"भाषा",background:"संपादक पृष्ठभूमि",editor_img_url:"Image URL",editor_bg_note:"नोट: पृष्ठभूमि छवि के साथ नहीं बचायी जाएगी",icon_large:"बड़ा",icon_medium:"मध्यम",icon_small:"छोटा",icon_xlarge:"बहुत बड़ा",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"},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 %s 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"}}}),Hk=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_drag:"Drag left/right to resize 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"},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's CX koordinirati",circle_cy:"Cy Promijeni krug je koordinirati",circle_r:"Promjena krug je radijusa",ellipse_cx:"Promjena elipsa's CX koordinirati",ellipse_cy:"Cy Promijeni elipsa je koordinirati",ellipse_rx:"Promijeniti elipsa's x polumjer",ellipse_ry:"Promjena elipsa'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",italic:"Italic Text"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Gk=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_drag:"Drag left/right to resize 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"},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's CX koordináta",ellipse_cy:"Change ellipszis's cy koordináta",ellipse_rx:"Change ellipszis's x sugarú",ellipse_ry:"Change ellipszis'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:"Change Betűcsalád",font_size:"Change font size",bold:"Félkövér szöveg",italic:"Dőlt szöveg"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),zk=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_drag:"Drag left/right to resize 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"},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_size:"Change Font Size",bold:"Bold Text",italic:"Italic Text"},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",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Vk=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_drag:"Drag left/right to resize 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"},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's cx koordinat",ellipse_cy:"Ubah elips's cy koordinat",ellipse_rx:"Ubah elips's x jari-jari",ellipse_ry:"Ubah elips's y jari-jari",line_x1:"Ubah baris mulai x koordinat",line_x2:"Ubah baris'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_size:"Ubah Ukuran Font",bold:"Bold Teks",italic:"Italic Teks"},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",new_doc:"Gambar Baru",open_doc:"Membuka Image",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Kk=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_drag:"Drag left/right to resize 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"},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's cy samræma",circle_r:"Radíus Breyta hringsins er",ellipse_cx:"Breyta sporbaug's cx samræma",ellipse_cy:"Breyta sporbaug's cy samræma",ellipse_rx:"X radíus Breyta sporbaug's",ellipse_ry:"Y radíus Breyta sporbaug's",line_x1:"Breyta lína í byrjun x samræma",line_x2:"Breyta lína'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:"Change Leturfjölskylda",font_size:"Breyta leturstærð",bold:"Bold Text",italic:"Italic Text"},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",new_doc:"New Image",open_doc:"Opna mynd",export_img:"Export",save_doc:"Spara Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),qk=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_drag:"Drag left/right to resize 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"},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:"Cambia il tipo di Font",font_size:"Modifica dimensione carattere",bold:"Grassetto",italic:"Corsivo"},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"},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",icon_size:"Dimensione Icona",language:"Lingua",background:"Sfondo dell'editor",editor_img_url:"Image URL",editor_bg_note:"Nota: Lo sfondo non verrà salvato con l'immagine.",icon_large:"Grande",icon_medium:"Medio",icon_small:"Piccolo",icon_xlarge:"Molto grande",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"},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 %s 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"}}}),Wk=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_drag:"Drag left/right to resize 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"},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:"フォントファミリーの変更",font_size:"文字サイズの変更",bold:"太字",italic:"イタリック体"},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 Image",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"},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:"エディタの設定",icon_size:"アイコンの大きさ",language:"言語",background:"エディタの背景色",editor_img_url:"Image URL",editor_bg_note:"※背景色はファイルに保存されません。",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Xk=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_drag:"Drag left/right to resize 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"},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:"글꼴 변경 패밀리",font_size:"글꼴 크기 변경",bold:"굵은 텍스트",italic:"기울임꼴 텍스트"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Yk=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_drag:"Drag left/right to resize 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"},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's CX koordinuoti",circle_cy:"Keisti ratas's CY koordinuoti",circle_r:"Keisti savo apskritimo spindulys",ellipse_cx:"Keisti elipse's CX koordinuoti",ellipse_cy:"Keisti elipse's CY koordinuoti",ellipse_rx:"Keisti elipsė "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:"Pakeistišriftą Šeima",font_size:"Change font size",bold:"Pusjuodis",italic:"Kursyvas"},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ą",new_doc:"New Image",open_doc:"Atidaryti atvaizdą",export_img:"Export",save_doc:"Išsaugoti nuotrauką",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Jk=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_drag:"Drag left/right to resize 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"},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'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's CX koordinēt",ellipse_cy:"Mainīt elipses's cy koordinēt",ellipse_rx:"Mainīt elipses's x rādiuss",ellipse_ry:"Mainīt elipses'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:"Mainīt fonta Family",font_size:"Mainīt fonta izmēru",bold:"Bold Text",italic:"Kursīvs"},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",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),$k=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_drag:"Drag left/right to resize 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"},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:"Промена круг's cy координираат",circle_r:"Промена на круг со радиус",ellipse_cx:"Промена елипса'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:"Смени фонт Фамилија",font_size:"Изменифонт Големина",bold:"Задебелен текст",italic:"Italic текст"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),Zk=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_drag:"Drag left/right to resize 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"},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's cx koordinat",ellipse_cy:"Tukar elips's cy koordinat",ellipse_rx:"Tukar elips's x jari-jari",ellipse_ry:"Tukar elips's y jari-jari",line_x1:"Ubah baris mulai x koordinat",line_x2:"Ubah baris'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:"Tukar Font Keluarga",font_size:"Ubah Saiz Font",bold:"Bold Teks",italic:"Italic Teks"},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",new_doc:"Imej Baru",open_doc:"Membuka Image",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),eS=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_drag:"Drag left/right to resize 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"},properties:{id:"Identify the element",fill_color:"Bidla imla color",stroke_color:"Color stroke Bidla",stroke_style:"Bidla stroke dash stil",stroke_width:"Wisa '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 '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 'ċirku tal-Bidla",ellipse_cx:"Bidla ellissi'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 '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:"Bidla Font Familja",font_size:"Change font size",bold:"Bold Test",italic:"Test korsiv"},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 '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",new_doc:"Image New",open_doc:"Open SVG",export_img:"Export",save_doc:"Image Save",import_doc:"Import Image",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 '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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),tS=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_drag:"Drag left/right to resize 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"},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:"Verander lettertype",font_size:"Verander lettertype grootte",bold:"Vet",italic:"Cursief"},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"},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",icon_size:"Icoon grootte",language:"Taal",background:"Editor achtergrond",editor_img_url:"Image URL",editor_bg_note:"Let op: De achtergrond wordt niet opgeslagen met de afbeelding.",icon_large:"Groot",icon_medium:"Gemiddeld",icon_small:"Klein",icon_xlarge:"Extra groot",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"},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 %s 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"}}}),nS=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_drag:"Drag left/right to resize 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"},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's CX koordinatsystem",ellipse_cy:"Endre ellipse's koordinere cy",ellipse_rx:"Endre ellipse's x radius",ellipse_ry:"Endre ellipse's y radius",line_x1:"Endre linje begynner x koordinat",line_x2:"Endre linje's ending x koordinat",line_y1:"Endre linje begynner y koordinat",line_y2:"Endre linje'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:"Change Font Family",font_size:"Endre skriftstørrelse",bold:"Fet tekst",italic:"Kursiv tekst"},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",new_doc:"New Image",open_doc:"Åpne Image",export_img:"Export",save_doc:"Lagre bilde",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),rS=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_drag:"Przeciągnij w lewo/prawo aby zmienić szerokość panelu",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"},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:"Zmień krój czcionki",font_size:"Zmień rozmiar czcionki",bold:"Pogrubienie textu",italic:"Kursywa"},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"},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",icon_size:"Rozmiar ikon",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.",icon_large:"Duże",icon_medium:"Średnie",icon_small:"Małe",icon_xlarge:"Bardzo duże",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"},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 %s 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"}}}),iS=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_drag:"Arraste para redimensionar o painel",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"},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:"Mudar o estilo da fonte",font_size:"Mudar o tamanho da fonte",bold:"Negrito",italic:"Italico"},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"},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",icon_size:"Tamanho dos ícones",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.",icon_large:"Grande",icon_medium:"Médio",icon_small:"Pequeno",icon_xlarge:"Extra Grande",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:"},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 %s 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"}}}),aS=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_drag:"Drag left/right to resize 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"},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:"Alterar fonte Família",font_size:"Alterar tamanho de letra",bold:"Bold Text",italic:"Texto em itálico"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),oS=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_drag:"Trageţi la stanga/dreapta pentru redimensionare panou lateral",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"},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:"Modificare familie de fonturi",font_size:"Schimbă dimensiunea fontului",bold:"Text Îngroşat",italic:"Text Înclinat"},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"},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",icon_size:"Dimensiunile Butoanelor",language:"Limba",background:"Fondul Editorului",editor_img_url:"URL-ul Imaginii",editor_bg_note:"Notă: Fondul nu va fi salvat cu imaginea.",icon_large:"Mari",icon_medium:"Medii",icon_small:"Mici",icon_xlarge:"Foarte Mari",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:"},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 %s 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"}}}),sS=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_drag:"Drag left/right to resize 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"},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:"Изменить семейство шрифтов",font_size:"Изменить размер шрифта",bold:"Жирный",italic:"Курсив"},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:"На задний план"},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:"Параметры",icon_size:"Размер значков",language:"Язык",background:"Фон",editor_img_url:"Изображение URL",editor_bg_note:"(Фон не сохранится вместе с изображением.)",icon_large:"Большие",icon_medium:"Средние",icon_small:"Малые",icon_xlarge:"Огромные",select_predefined:"Выбирать предопределенный размер",units_and_rulers:"Единицы & Линейки",show_rulers:"Показывать линейки",base_unit:"Единицы:",grid:"Сетка",snapping_onoff:"Привязка вкл/выкл",snapping_stepsize:"Шаг привязки:",grid_color:"Цвет сетки"},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:"Текст может показываться не так как должен"}}}),lS=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_drag:"Potiahnutie vľavo/vpravo na zmenu veľkosti bočného panela",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"},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:"Zmeniť font",font_size:"Zmeniť veľkosť písma",bold:"Tučné",italic:"Kurzíva"},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 Image",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"},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",icon_size:"Veľkosť ikon",language:"Jazyk",background:"Zmeniť pozadie",editor_img_url:"Image URL",editor_bg_note:"Poznámka: Pozadie nebude uložené spolu s obrázkom.",icon_large:"Veľká",icon_medium:"Stredná",icon_small:"Malá",icon_xlarge:"Extra veľká",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"},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 %s 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"}}}),cS=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_drag:"Povlecite levo/desno za ogled stranske vrstice",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"},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:"Spremeni tip pisave",font_size:"Spremeni velikost pisave",bold:"Krepko",italic:"Poševno"},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"},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",icon_size:"Velikost ikon",language:"Jezik",background:"Ozadje urejevalnika",editor_img_url:"URL slike",editor_bg_note:"OPOMBA: Ozdaje ne bo shranjeno s sliko.",icon_large:"velike",icon_medium:"srednje",icon_small:"majhne",icon_xlarge:"zelo velike",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:"},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 %s 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"}}}),uS=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_drag:"Drag left/right to resize 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"},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:"Ndryshimi Font Family",font_size:"Ndryshimi Font Size",bold:"Bold Text",italic:"Italic Text"},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",new_doc:"New Image",open_doc:"Image Hapur",export_img:"Export",save_doc:"Image Ruaj",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),dS=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_drag:"Drag left/right to resize 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"},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:"Промена елипса'с Кс радијуса",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:"Цханге фонт породицу",font_size:"Цханге фонт сизе",bold:"Подебљан текст",italic:"Италиц текст"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),hS=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_drag:"Drag left/right to resize 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"},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's cx samordna",ellipse_cy:"Ändra ellips's samordna cy",ellipse_rx:"Ändra ellips's x radie",ellipse_ry:"Ändra ellips'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:"Ändra Typsnitt",font_size:"Ändra textstorlek",bold:"Fet text",italic:"Kursiv text"},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",new_doc:"New Image",open_doc:"Öppna bild",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),pS=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_drag:"Drag left/right to resize 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"},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's CX kuratibu",circle_cy:"Change mduara's cy kuratibu",circle_r:"Change mduara'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's y Radius",line_x1:"Change Mpya's mapya x kuratibu",line_x2:"Change Mpya's kuishia x kuratibu",line_y1:"Change Mpya's mapya y kuratibu",line_y2:"Change Mpya'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:"Change font Family",font_size:"Change font Size",bold:"Bold Nakala",italic:"Italiki Nakala"},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",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),AS=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_drag:"Drag left/right to resize 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"},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:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text",italic:"Italic Text"},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",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),fS=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_drag:"Drag left/right to resize 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"},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:"ครอบครัว Change Font",font_size:"เปลี่ยนขนาดตัวอักษร",bold:"ข้อความตัวหนา",italic:"ข้อความตัวเอียง"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),gS=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_drag:"Drag left/right to resize 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"},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's coordinate",circle_cy:"Baguhin ang bilog's cy coordinate",circle_r:"Baguhin ang radius ng bilog",ellipse_cx:"Baguhin ang tambilugan's cx-ugma",ellipse_cy:"Baguhin ang tambilugan's cy coordinate",ellipse_rx:"X radius Baguhin ang tambilugan's",ellipse_ry:"Y radius Baguhin ang tambilugan'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:"Baguhin ang Pamilya ng Font",font_size:"Baguhin ang Laki ng Font",bold:"Bold Text",italic:"Italic Text"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),mS=Object.freeze({__proto__:null,default:{lang:"tr",dir:"ltr",common:{ok:"Kaydetmek",cancel:"Iptal",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:"Tıklatın renk, vardiya dolgu zamanlı rengini değiştirmek için tıklayın değiştirmek için",zoom_level:"Yakınlaştırma düzeyini değiştirebilirsiniz",panel_drag:"Drag left/right to resize 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"},properties:{id:"Identify the element",fill_color:"Renk değiştirmek doldurmak",stroke_color:"Değiştirmek inme renk",stroke_style:"Değiştirmek inme çizgi stili",stroke_width:"Değiştirmek vuruş genişliği",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:"Değiştirmek dönme açısı",blur:"Change gaussian blur value",opacity:"Değiştirmek öğe opacity seçilmiş",circle_cx:"Değiştirmek daire's cx koordine",circle_cy:"Değiştirmek daire cy koordine's",circle_r:"Değiştirmek daire yarıçapı",ellipse_cx:"'s Koordine cx elips Girişi",ellipse_cy:"Değiştirmek elips cy koordine's",ellipse_rx:"Değiştirmek elips's x yarıçapı",ellipse_ry:"Değiştirmek elips Y yarıçapı",line_x1:"Değiştirmek hattı's koordine x başlangıç",line_x2:"Değiştirmek hattı's koordine x biten",line_y1:"Değiştirmek hattı y başlangıç's koordine",line_y2:"Değiştirmek hattı y biten's koordine",rect_height:"Değiştirmek dikdörtgen yüksekliği",rect_width:"Değiştirmek dikdörtgen genişliği",corner_radius:"Değiştirmek Dikdörtgen Köşe Yarıçap",image_width:"Değiştirmek görüntü genişliği",image_height:"Değiştirmek görüntü yüksekliği",image_url:"Değiştirmek 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:"Değiştirmek metin içeriği",font_family:"Font değiştir Aile",font_size:"Change font size",bold:"Kalın Yazı",italic:"Italik yazı"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Arka plan rengini değiştirmek / opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit tüm içerik için",fit_to_canvas:"Fit tuvaline",fit_to_layer_content:"Sığacak şekilde katman içerik",fit_to_sel:"Fit seçimine",align_relative_to:"Align göre ...",relativeTo:"göreli:",page:"sayfa",largest_object:"en büyük nesne",selected_objects:"seçilen nesneleri",smallest_object:"küçük nesne",new_doc:"Yeni Resim",open_doc:"Aç Resim",export_img:"Export",save_doc:"Görüntüyü Kaydet",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Ortala",align_left:"Sola",align_middle:"Align Orta",align_right:"Sağa Hizala",align_top:"Align Top",mode_select:"Seçim aracı",mode_fhpath:"Kalem Aracı",mode_line:"Line Aracı",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-El Dikdörtgen",mode_ellipse:"Elips",mode_circle:"Daire",mode_fhellipse:"Free-El Elips",mode_path:"Path Tool",mode_text:"Metin Aracı",mode_image:"Resim Aracı",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Geri",redo:"Redo",tool_source:"Değiştir Kaynak",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grup Elemanları",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:"Çöz Elemanları",docprops:"Belge Özellikleri",editor_homepage:"SVG-Edit Home Page",move_bottom:"Altına gider",move_top:"Üste taşı",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:"Kaydetmek",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"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Katman Aşağı Taşı",new:"Yeni Katman",rename:"Rename Katman",move_up:"Up Katman Taşı",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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Seçin önceden tanımlanmış:",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"},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 %s 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"}}}),_S=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_drag:"Drag left/right to resize 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"},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:"Зміна кола'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:"Зміни Сімейство шрифтів",font_size:"Змінити розмір шрифту",bold:"Товстий текст",italic:"Похилий текст"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),vS=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_drag:"Drag left/right to resize 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"},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:"Thay đổi Font Gia đình",font_size:"Thay đổi cỡ chữ",bold:"Bold Text",italic:"Italic Text"},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",new_doc:"Hình mới",open_doc:"Mở Image",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),yS=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_drag:"Drag left/right to resize 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"},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:"ענדערן יליפּס ס 'קס ראַדיוס",ellipse_ry:"ענדערן יליפּס ס 'י ראַדיוס",line_x1:"טוישן ליניע ס 'סטאַרטינג קס קאָואָרדאַנאַט",line_x2:"טוישן ליניע ס 'סאָף קס קאָואָרדאַנאַט",line_y1:"טוישן ליניע ס 'סטאַרטינג י קאָואָרדאַנאַט",line_y2:"טוישן ליניע ס 'סאָף י קאָואָרדאַנאַט",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:"ענדערן פאָנט פאַמילי",font_size:"בייטן פאָנט גרייס",bold:"דרייסט טעקסט",italic:"יטאַליק טעקסט"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),bS=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_drag:"左右拖拽调整面板大小",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"},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:"更改字体样式",font_size:"更改字体大小",bold:"粗体",italic:"斜体"},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:"移至底部"},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:"编辑器首选项",icon_size:"图标大小",language:"语言",background:"编辑器背景",editor_img_url:"图像 URL",editor_bg_note:"注意: 背景不会保存在图像中.",icon_large:"大",icon_medium:"中",icon_small:"小",icon_xlarge:"特大",select_predefined:"选择预定义:",units_and_rulers:"单位 & 标尺",show_rulers:"显示标尺",base_unit:"基本单位:",grid:"网格",snapping_onoff:"吸附开/关",snapping_stepsize:"吸附步长:",grid_color:"网格颜色"},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 %s 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"}}}),wS=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_drag:"Drag left/right to resize 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"},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:"更改字体家族",font_size:"更改字体大小",bold:"粗体",italic:"斜体文本"},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 Image",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"},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",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",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"},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 %s 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"}}}),xS=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_drag:"Drag left/right to resize 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"},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:"更改字體",font_size:"更改字體大小",bold:"粗體",italic:"斜體"},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 Image",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"},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:"編輯器屬性",icon_size:"圖示大小",language:"語言",background:"編輯器背景",editor_img_url:"Image URL",editor_bg_note:"注意: 編輯器背景不會和圖像一起儲存",icon_large:"大",icon_medium:"中",icon_small:"小",icon_xlarge:"特大",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"},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 %s 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"}}});
|
||
//# sourceMappingURL=index.js.map
|