(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"009a":function(t,e,n){var r=n("b3ad")("unscopables"),i=Array.prototype;void 0==i[r]&&n("1690")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"00b4":function(t,e,n){"use strict";n("ac1f");var r=n("23e7"),i=n("c65b"),o=n("1626"),a=n("825a"),s=n("577e"),u=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),c=/./.test;r({target:"RegExp",proto:!0,forced:!u},{test:function(t){var e=a(this),n=s(t),r=e.exec;if(!o(r))return i(c,e,n);var u=i(r,e,n);return null!==u&&(a(u),!0)}})},"00ce":function(t,e,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(O){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(e){return c}}}():c,h=n("5156")(),d=Object.getPrototypeOf||function(t){return t.__proto__},f={},p="undefined"===typeof Uint8Array?r:d(Uint8Array),A={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":h?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?d(d([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&h?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&h?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?d(""[Symbol.iterator]()):r,"%Symbol%":h?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};try{null.error}catch(O){var g=d(d(O));A["%Error.prototype%"]=g}var m=function t(e){var n;if("%AsyncFunction%"===e)n=s("async function () {}");else if("%GeneratorFunction%"===e)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=s("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(n=d(i.prototype))}return A[e]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n("0f7c"),b=n("a0d3"),_=y.call(Function.call,Array.prototype.concat),w=y.call(Function.apply,Array.prototype.splice),x=y.call(Function.call,String.prototype.replace),T=y.call(Function.call,String.prototype.slice),C=y.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,B=function(t){var e=T(t,0,1),n=T(t,-1);if("%"===e&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return x(t,S,(function(t,e,n,i){r[r.length]=n?x(i,E,"$1"):e||t})),r},k=function(t,e){var n,r=t;if(b(v,r)&&(n=v[r],r="%"+n[0]+"%"),b(A,r)){var o=A[r];if(o===f&&(o=m(r)),"undefined"===typeof o&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=B(t),r=n.length>0?n[0]:"",o=k("%"+r+"%",e),s=o.name,c=o.value,l=!1,h=o.alias;h&&(r=h[0],w(n,_([0,1],h)));for(var d=1,f=!0;d=n.length){var v=u(c,p);f=!!v,c=f&&"get"in v&&!("originalValue"in v.get)?v.get:c[p]}else f=b(c,p),c=c[p];f&&!l&&(A[s]=c)}}return c}},"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0156":function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n("6d8b"),i=n("e0d3");function o(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,a={},s=o.getAxesOnZeroOf()[0],u=o.position,c=s?"onZero":u,l=o.dim,h=i.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,A="x"===l?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(s){var g=s.toGlobalCoord(s.dataToCoord(0));A[f.onZero]=Math.max(Math.min(g,A[1]),A[0])}a.position=["y"===l?A[f[c]]:d[0],"x"===l?A[f[c]]:d[3]],a.rotation=Math.PI/2*("x"===l?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[u],a.labelOffset=s?A[f[u]]-A[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),r["retrieve"](n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===c?-v:v,a.z2=1,a}function a(t){return"cartesian2d"===t.get("coordinateSystem")}function s(t){var e={xAxisModel:null,yAxisModel:null};return r["each"](e,(function(n,r){var o=r.replace(/Model$/,""),a=t.getReferringComponents(o,i["a"]).models[0];e[r]=a})),e}},"01a0":function(t,e){videojs.addLanguage("zh-CN",{Play:"播放",Pause:"暂停","Current Time":"当前时间",Duration:"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型",LIVE:"直播",Loaded:"加载完成",Progress:"进度",Fullscreen:"全屏","Non-Fullscreen":"退出全屏","Picture-in-Picture":"画中画","Exit Picture-in-Picture":"退出画中画",Mute:"静音",Unmute:"取消静音","Playback Rate":"播放速度",Subtitles:"字幕","subtitles off":"关闭字幕",Captions:"内嵌字幕","captions off":"关闭内嵌字幕",Chapters:"节目段落","Close Modal Dialog":"关闭弹窗",Descriptions:"描述","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源。","The media is encrypted and we do not have the keys to decrypt it.":"视频已加密,无法解密。","Play Video":"播放视频",Close:"关闭","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器",Replay:"重新播放","Progress Bar":"进度条","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定",Text:"文字",White:"白",Black:"黑",Red:"红",Green:"绿",Blue:"蓝",Yellow:"黄",Magenta:"紫红",Cyan:"青",Background:"背景",Window:"窗口",Transparent:"透明","Semi-Transparent":"半透明",Opaque:"不透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式",None:"无",Raised:"浮雕",Depressed:"压低",Uniform:"均匀",Dropshadow:"下阴影","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体",Casual:"舒适",Script:"手写体","Small Caps":"小型大写字体",Reset:"重置","restore all settings to the default values":"恢复全部设定至预设值",Done:"完成","Caption Settings Dialog":"字幕设定窗口","Beginning of dialog window. Escape will cancel and close the window.":"打开对话窗口。Escape键将取消并关闭对话窗口","End of dialog window.":"结束对话窗口","Seek to live, currently behind live":"尝试直播,当前为延时播放","Seek to live, currently playing live":"尝试直播,当前为实时播放","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"正在加载 {1}。","No content":"无内容"})},"0209":function(t,e,n){var r=n("6185"),i=n("4650"),o=n("db8f"),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},"022d":function(t,e,n){var r=n("6692"),i=n("6339");t.exports=Object.keys||function(t){return r(t,i)}},"0280":function(t,e){t.exports={}},"0366":function(t,e,n){var r=n("4625"),i=n("59ed"),o=n("40d5"),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},"0367":function(t,e,n){"use strict";var r=n("9c2c"),i=n("9bbc"),o=n("f078"),a=n("cc58"),s=n("f317"),u=n("9ef1"),c=n("d981");r({target:"Promise",stat:!0,forced:c},{all:function(t){var e=this,n=a.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=o(e.resolve),a=[],s=0,l=1;u(t,(function(t){var o=s++,u=!1;l++,i(n,e,t).then((function(t){u||(u=!0,a[o]=t,--l||r(a))}),c)})),--l||r(a)}));return l.error&&c(l.value),n.promise}})},"0368":function(t,e,n){var r=n("a714");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"03d6":function(t,e,n){var r=n("9c0e"),i=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},"04d1":function(t,e,n){var r=n("342f"),i=r.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},"04f6":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=32,i=7;function o(t){var e=0;while(t>=r)e|=1&t,t>>=1;return t+e}function a(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i=0)i++;return i-e}function s(t,e,n){n--;while(e>>1,i(a,t[o])<0?u=o:s=o+1;var c=r-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(c>0)t[s+c]=t[s+c-1],c--}t[s]=a}}function c(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])>0){s=r-i;while(u0)a=u,u=1+(u<<1),u<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}else{s=i+1;while(us&&(u=s);var c=a;a=i-u,u=i-c}a++;while(a>>1);o(t,e[n+l])>0?a=l+1:u=l}return u}function l(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])<0){s=i+1;while(us&&(u=s);var c=a;a=i-u,u=i-c}else{s=r-i;while(u=0)a=u,u=1+(u<<1),u<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}a++;while(a>>1);o(t,e[n+l])<0?u=l:a=l+1}return u}function h(t,e){var n,r,o=i,a=0,s=0;a=t.length;var u=[];function h(t,e){n[s]=t,r[s]=e,s+=1}function d(){while(s>1){var t=s-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;p(t)}}function f(){while(s>1){var t=s-2;t>0&&r[t-1]=i||g>=i);if(m)break;v<0&&(v=0),v+=2}if(o=v,o<1&&(o=1),1===r){for(h=0;h=0;h--)t[g+h]=t[A+h];if(0===r){b=!0;break}}if(t[p--]=u[f--],1===--s){b=!0;break}if(y=s-c(t[d],u,0,s,s-1,e),0!==y){for(p-=y,f-=y,s-=y,g=p+1,A=f+1,h=0;h=i||y>=i);if(b)break;m<0&&(m=0),m+=2}if(o=m,o<1&&(o=1),1===s){for(p-=r,d-=r,g=p+1,A=d+1,h=r-1;h>=0;h--)t[g+h]=t[A+h];t[p]=u[f]}else{if(0===s)throw new Error;for(A=p-(s-1),h=0;h=0;h--)t[g+h]=t[A+h];t[p]=u[f]}else for(A=p-(s-1),h=0;hd&&(f=d),u(t,n,n+f,n+c,e),c=f}l.pushRun(n,c),l.mergeRuns(),s-=c,n+=c}while(0!==s);l.forceMergeRuns()}}},"04f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return m})),n.d(e,"a",(function(){return v}));var r=n("07fd"),i=n("e0d3"),o=n("6d8b"),a=n("2b17"),s=n("b7d9"),u=n("edae"),c=n("ec6f"),l=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Object(s["b"])(t,e)},t}();function h(t,e){var n=new l,i=t.data,s=n.sourceFormat=t.sourceFormat,c=t.startIndex,h="";t.seriesLayoutBy!==r["a"]&&Object(u["c"])(h);var g=[],m={},v=t.dimensionsDefine;if(v)Object(o["each"])(v,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(g.push(r),null!=n){var i="";Object(o["hasOwn"])(m,n)&&Object(u["c"])(i),m[n]=r}}));else for(var y=0;y=1?1:Object(a["f"])(0,r,u,1,t,l)&&Object(a["a"])(0,i,c,1,l[0])}}}var c=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||o["noop"],this.ondestroy=t.ondestroy||o["noop"],this.onrestart=t.onrestart||o["noop"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(o["isFunction"])(t)?t:i[t]||u(t)},t}(),l=c,h=n("41ef"),d=n("7a29"),f=Array.prototype.slice;function p(t,e,n){return(e-t)*n+t}function A(t,e,n,r){for(var i=e.length,o=0;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var u=o;u=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,a=r.length,s=!1,c=O,l=e;if(Object(o["isArrayLike"])(e)){var f=x(e);c=f,(1===f&&!Object(o["isNumber"])(e[0])||2===f&&!Object(o["isNumber"])(e[0][0]))&&(s=!0)}else if(Object(o["isNumber"])(e)&&!Object(o["eqNaN"])(e))c=T;else if(Object(o["isString"])(e))if(isNaN(+e)){var p=h["parse"](e);p&&(l=p,c=E)}else c=T;else if(Object(o["isGradientObject"])(e)){var A=Object(o["extend"])({},l);A.colorStops=Object(o["map"])(e.colorStops,(function(t){return{offset:t.offset,color:h["parse"](t.color)}})),Object(d["a"])(e)?c=B:Object(d["b"])(e)&&(c=k),l=A}0===a?this.valType=c:c===this.valType&&c!==O||(s=!0),this.discrete=this.discrete||s;var g={time:t,value:l,rawValue:e,percent:0};return n&&(g.easing=n,g.easingFunc=Object(o["isFunction"])(n)?n:i[n]||u(n)),r.push(g),g},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=L(r),u=I(r),c=0;c=0;n--)if(c[n].percent<=e)break;n=m(n,l-2)}else{for(n=f;ne)break;n=m(n-1,l-2)}i=c[n+1],r=c[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var y=i.percent-r.percent,b=0===y?1:m((e-r.percent)/y,1);i.easingFunc&&(b=i.easingFunc(b));var _=a?this._additiveValue:d?P:t[h];if(!L(u)&&!d||_||(_=this._additiveValue=[]),this.discrete)t[h]=b<1?r.rawValue:i.rawValue;else if(L(u))u===C?A(_,r[s],i[s],b):g(_,r[s],i[s],b);else if(I(u)){var x=r[s],T=i[s],S=u===B;t[h]={type:S?"linear":"radial",x:p(x.x,T.x,b),y:p(x.y,T.y,b),colorStops:Object(o["map"])(x.colorStops,(function(t,e){var n=T.colorStops[e];return{offset:p(t.offset,n.offset,b),color:w(A([],t.color,n.color,b))}})),global:T.global},S?(t[h].x2=p(x.x2,T.x2,b),t[h].y2=p(x.y2,T.y2,b)):t[h].r=p(x.r,T.r,b)}else if(d)A(_,r[s],i[s],b),a||(t[h]=w(_));else{var k=p(r[s],i[s],b);a?this._additiveValue=k:t[h]=k}a&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===T?t[n]=t[n]+r:e===E?(h["parse"](t[n],P),m(P,P,r,1),t[n]=w(P)):e===C?m(t[n],t[n],r,1):e===S&&v(t[n],t[n],r,1)},t}(),D=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(o["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(o["keys"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,_(u),r),this._trackKeys.push(a)}s.addKeyframe(t,_(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var s=a.pop();i.addKeyframe(s.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();e["b"]=D},"06c5":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3"),n("ac1f"),n("00b4");var r=n("6b75");function i(t,e){if(t){if("string"===typeof t)return Object(r["a"])(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(t,e):void 0}}},"06cf":function(t,e,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),u=n("a04b"),c=n("1a2d"),l=n("0cfb"),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=s(t),e=u(e),l)try{return h(t,e)}catch(n){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},"072d":function(t,e,n){"use strict";var r=n("0bad"),i=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),u=n("9fbb"),c=Object.assign;t.exports=!c||n("4b8b")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){var n=s(t),c=arguments.length,l=1,h=o.f,d=a.f;while(c>l){var f,p=u(arguments[l++]),A=h?i(p).concat(h(p)):i(p),g=A.length,m=0;while(g>m)f=A[m++],r&&!d.call(p,f)||(n[f]=p[f])}return n}:c},"0761":function(t,e,n){var r=n("4dd8"),i=n("2505"),o=n("d0c8"),a=n("dcbd"),s=n("caad1"),u=n("b139"),c=n("c0c7"),l=n("91c5"),h=n("c35a"),d=n("8181"),f=TypeError,p=function(t,e){this.stopped=t,this.result=e},A=p.prototype;t.exports=function(t,e,n){var g,m,v,y,b,_,w,x=n&&n.that,T=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),S=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),B=r(e,x),k=function(t){return g&&d(g,"normal",t),new p(!0,t)},O=function(t){return T?(o(t),E?B(t[0],t[1],k):B(t[0],t[1])):E?B(t,k):B(t)};if(C)g=t.iterator;else if(S)g=t;else{if(m=h(t),!m)throw f(a(t)+" is not iterable");if(s(m)){for(v=0,y=u(t);y>v;v++)if(b=O(t[v]),b&&c(A,b))return b;return new p(!1)}g=l(t,m)}_=C?t.next:g.next;while(!(w=i(_,g)).done){try{b=O(w.value)}catch(I){d(g,"throw",I)}if("object"==typeof b&&b&&c(A,b))return b}return new p(!1)}},"07ac":function(t,e,n){var r=n("23e7"),i=n("6f53").values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},"07df":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n0?i(r(t),9007199254740991):0}},"09e4":function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},"0a06":function(t,e,n){"use strict";var r=n("2444"),i=n("c532"),o=n("f6b4"),a=n("5270");function s(t){this.defaults=t,this.interceptors={request:new o,response:new o}}s.prototype.request=function(t){"string"===typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),t=i.merge(r,{method:"get"},this.defaults,t),t.method=t.method.toLowerCase();var e=[a,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}})),i.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=s},"0a96":function(t,e,n){var r=n("e68a").getUint64,i=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;0===n.version?(n.earliestPresentationTime=e.getUint32(i),n.firstOffset=e.getUint32(i+4),i+=8):(n.earliestPresentationTime=r(t.subarray(i)),n.firstOffset=r(t.subarray(i+8)),i+=16),i+=2;var o=e.getUint16(i);for(i+=2;o>0;i+=12,o--)n.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&e.getUint32(i),subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&e.getUint32(i+8)});return n};t.exports=i},"0ae2":function(t,e,n){var r=n("9876"),i=n("fed5"),o=n("1917");t.exports=function(t){var e=r(t),n=i.f;if(n){var a,s=n(t),u=o.f,c=0;while(s.length>c)u.call(t,a=s[c++])&&e.push(a)}return e}},"0b42":function(t,e,n){var r=n("e8b5"),i=n("68ee"),o=n("861d"),a=n("b622"),s=a("species"),u=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,i(e)&&(e===u||r(e.prototype))?e=void 0:o(e)&&(e=e[s],null===e&&(e=void 0))),void 0===e?u:e}},"0b43":function(t,e,n){var r=n("04f8");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"0b99":function(t,e,n){"use strict";var r=n("19fa")(!0);n("393a")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},"0bad":function(t,e,n){t.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0c1c":function(t,e,n){"use strict";t.exports=function(t){return t.subarray(0,t.byteLength-t[t.byteLength-1])}},"0c47":function(t,e,n){var r=n("da84"),i=n("d44e");i(r.JSON,"JSON",!0)},"0cb2":function(t,e,n){var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,h,d){var f=n+t.length,p=r.length,A=l;return void 0!==h&&(h=i(h),A=c),s(d,A,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,f);case"<":c=h[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var d=o(l/10);return 0===d?i:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},"0ccb":function(t,e,n){var r=n("e330"),i=n("50c4"),o=n("577e"),a=n("1148"),s=n("1d80"),u=r(a),c=r("".slice),l=Math.ceil,h=function(t){return function(e,n,r){var a,h,d=o(s(e)),f=i(n),p=d.length,A=void 0===r?" ":o(r);return f<=p||""==A?d:(a=f-p,h=u(A,l(a/A.length)),h.length>a&&(h=c(h,0,a)),t?d+h:h+d)}};t.exports={start:h(!1),end:h(!0)}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){var r=n("e330"),i=Error,o=r("".replace),a=function(t){return String(i(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);t.exports=function(t,e){if(u&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,s,"");return t}},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"0d73":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"AElement",(function(){return Wt})),n.d(e,"AnimateColorElement",(function(){return Ht})),n.d(e,"AnimateElement",(function(){return Rt})),n.d(e,"AnimateTransformElement",(function(){return Qt})),n.d(e,"BoundingBox",(function(){return mt})),n.d(e,"CB1",(function(){return j})),n.d(e,"CB2",(function(){return N})),n.d(e,"CB3",(function(){return U})),n.d(e,"CB4",(function(){return R})),n.d(e,"Canvg",(function(){return Ee})),n.d(e,"CircleElement",(function(){return Et})),n.d(e,"ClipPathElement",(function(){return le})),n.d(e,"DefsElement",(function(){return Mt})),n.d(e,"DescElement",(function(){return me})),n.d(e,"Document",(function(){return Te})),n.d(e,"Element",(function(){return lt})),n.d(e,"EllipseElement",(function(){return Bt})),n.d(e,"FeColorMatrixElement",(function(){return se})),n.d(e,"FeCompositeElement",(function(){return pe})),n.d(e,"FeDropShadowElement",(function(){return de})),n.d(e,"FeGaussianBlurElement",(function(){return Ae})),n.d(e,"FeMorphologyElement",(function(){return fe})),n.d(e,"FilterElement",(function(){return he})),n.d(e,"Font",(function(){return gt})),n.d(e,"FontElement",(function(){return Vt})),n.d(e,"FontFaceElement",(function(){return zt})),n.d(e,"GElement",(function(){return Dt})),n.d(e,"GlyphElement",(function(){return _t})),n.d(e,"GradientElement",(function(){return Ft})),n.d(e,"ImageElement",(function(){return Jt})),n.d(e,"LineElement",(function(){return kt})),n.d(e,"LinearGradientElement",(function(){return jt})),n.d(e,"MarkerElement",(function(){return Pt})),n.d(e,"MaskElement",(function(){return ue})),n.d(e,"Matrix",(function(){return rt})),n.d(e,"MissingGlyphElement",(function(){return qt})),n.d(e,"Mouse",(function(){return W})),n.d(e,"PSEUDO_ZERO",(function(){return P})),n.d(e,"Parser",(function(){return Z})),n.d(e,"PathElement",(function(){return bt})),n.d(e,"PathParser",(function(){return vt})),n.d(e,"PatternElement",(function(){return Lt})),n.d(e,"Point",(function(){return G})),n.d(e,"PolygonElement",(function(){return It})),n.d(e,"PolylineElement",(function(){return Ot})),n.d(e,"Property",(function(){return z})),n.d(e,"QB1",(function(){return H})),n.d(e,"QB2",(function(){return Q})),n.d(e,"QB3",(function(){return V})),n.d(e,"RadialGradientElement",(function(){return Nt})),n.d(e,"RectElement",(function(){return St})),n.d(e,"RenderedElement",(function(){return yt})),n.d(e,"Rotate",(function(){return et})),n.d(e,"SVGElement",(function(){return Ct})),n.d(e,"SVGFontLoader",(function(){return te})),n.d(e,"Scale",(function(){return nt})),n.d(e,"Screen",(function(){return $})),n.d(e,"Skew",(function(){return it})),n.d(e,"SkewX",(function(){return ot})),n.d(e,"SkewY",(function(){return at})),n.d(e,"StopElement",(function(){return Ut})),n.d(e,"StyleElement",(function(){return ee})),n.d(e,"SymbolElement",(function(){return Zt})),n.d(e,"TRefElement",(function(){return Gt})),n.d(e,"TSpanElement",(function(){return xt})),n.d(e,"TextElement",(function(){return wt})),n.d(e,"TextPathElement",(function(){return $t})),n.d(e,"TitleElement",(function(){return ge})),n.d(e,"Transform",(function(){return ct})),n.d(e,"Translate",(function(){return tt})),n.d(e,"UnknownElement",(function(){return ht})),n.d(e,"UseElement",(function(){return ne})),n.d(e,"ViewPort",(function(){return q})),n.d(e,"compressSpaces",(function(){return g})),n.d(e,"default",(function(){return Ee})),n.d(e,"getSelectorSpecificity",(function(){return L})),n.d(e,"normalizeAttributeName",(function(){return _})),n.d(e,"normalizeColor",(function(){return x})),n.d(e,"parseExternalUrl",(function(){return w})),n.d(e,"presets",(function(){return A})),n.d(e,"toNumbers",(function(){return y})),n.d(e,"trimLeft",(function(){return m})),n.d(e,"trimRight",(function(){return v})),n.d(e,"vectorMagnitude",(function(){return M})),n.d(e,"vectorsAngle",(function(){return F})),n.d(e,"vectorsRatio",(function(){return D}));n("beb2");var r=n("c973"),i=n.n(r),o=(n("28a7"),n("c7cc"),n("28b3"),n("2e5b"),n("a89b"),n("9523")),a=n.n(o),s=(n("99dc"),n("1959"),n("3429"),n("c449")),u=n.n(s),c=(n("c0e0"),n("58e1")),l=n.n(c),h=(n("83d8"),n("30d2"),n("8964"),n("d01f")),d=(n("c83f"),n("5e9e"));function f(){var{DOMParser:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas(t,e){return new OffscreenCanvas(t,e)},createImage(t){return i()((function*(){var e=yield fetch(t),n=yield e.blob(),r=yield createImageBitmap(n);return r}))()}};return"undefined"===typeof DOMParser&&"undefined"!==typeof t||Reflect.deleteProperty(e,"DOMParser"),e}function p(t){var{DOMParser:e,canvas:n,fetch:r}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:r,createCanvas:n.createCanvas,createImage:n.loadImage}}var A=Object.freeze({__proto__:null,offscreen:f,node:p});function g(t){return t.replace(/(?!\u3000)\s+/gm," ")}function m(t){return t.replace(/^[\n \t]+/,"")}function v(t){return t.replace(/[\n \t]+$/,"")}function y(t){var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var b=/^[A-Z-]+$/;function _(t){return b.test(t)?t.toLowerCase():t}function w(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function x(t){if(!t.startsWith("rgb"))return t;var e=3,n=t.replace(/\d+(\.\d+)?/g,(t,n)=>e--&&n?String(Math.round(parseFloat(t))):t);return n}var T=/(\[[^\]]+\])/g,C=/(#[^\s+>~.[:]+)/g,S=/(\.[^\s+>~.[:]+)/g,E=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,B=/(:[\w-]+\([^)]*\))/gi,k=/(:[^\s+>~.[:]+)/g,O=/([^\s+>~.[:]+)/g;function I(t,e){var n=e.exec(t);return n?[t.replace(e," "),n.length]:[t,0]}function L(t){var e=[0,0,0],n=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[n,r]=I(n,T),e[1]+=r,[n,r]=I(n,C),e[0]+=r,[n,r]=I(n,S),e[1]+=r,[n,r]=I(n,E),e[2]+=r,[n,r]=I(n,B),e[1]+=r,[n,r]=I(n,k),e[1]+=r,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[n,r]=I(n,O),e[2]+=r,e.join("")}var P=1e-8;function M(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function D(t,e){return(t[0]*e[0]+t[1]*e[1])/(M(t)*M(e))}function F(t,e){return(t[0]*e[1]0&&void 0!==arguments[0]?arguments[0]:" ",{document:e,name:n}=this;return g(this.getString()).trim().split(t).map(t=>new z(e,n,t))}hasValue(t){var{value:e}=this;return null!==e&&""!==e&&(t||0!==e)&&"undefined"!==typeof e}isString(t){var{value:e}=this,n="string"===typeof e;return n&&t?t.test(e):n}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return"undefined"===typeof t||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return"undefined"===typeof t?0:parseFloat(t);var{value:e}=this,n=parseFloat(e);return this.isString(/%$/)&&(n/=100),n}getString(t){return"undefined"===typeof t||this.hasValue()?"undefined"===typeof this.value?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=x(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[n,r]="boolean"===typeof t?[void 0,t]:[t],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.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(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(n);default:var o=this.getNumber();return e&&o<1?o*i.computeSize(n):o}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var n=this.getDefinition();if(!n)return null;if("function"===typeof n.createGradient)return n.createGradient(this.document.ctx,t,e);if("function"===typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var r=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute("patternTransform",!0).setValue(r.value)}return n.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?z.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),n=e.length,r=0,i=0;i1&&void 0!==arguments[1]?arguments[1]:0,[n=e,r=e]=y(t);return new G(n,r)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[n=e,r=n]=y(t);return new G(n,r)}static parsePath(t){for(var e=y(t),n=e.length,r=[],i=0;i0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:n}=this,{style:r}=t.ctx.canvas;r&&(r.cursor=""),e.forEach((t,e)=>{var{run:r}=t,i=n[e];while(i)r(i),i=i.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:o,y:a}=n;!r[i]&&e.isPointInPath&&e.isPointInPath(o,a)&&(r[i]=t)})}}checkBoundingBox(t,e){if(this.working&&e){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:o,y:a}=n;!r[i]&&e.isPointInBox(o,a)&&(r[i]=t)})}}mapXY(t,e){var{window:n,ctx:r}=this.screen,i=new G(t,e),o=r.canvas;while(o)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(i.x+=n.scrollX),n.scrollY&&(i.y+=n.scrollY),i}onClick(t){var{x:e,y:n}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:n,run(t){t.onClick&&t.onClick()}})}onMouseMove(t){var{x:e,y:n}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:n,run(t){t.onMouseMove&&t.onMouseMove()}})}}var K="undefined"!==typeof window?window:null,X="undefined"!==typeof fetch?fetch.bind(void 0):null;class ${constructor(t){var{fetch:e=X,window:n=K}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new q,this.mouse=new W(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every(t=>t());return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:n,aspectRatio:r,width:i,desiredWidth:o,height:a,desiredHeight:s,minX:u=0,minY:c=0,refX:l,refY:h,clip:d=!1,clipX:f=0,clipY:p=0}=t,A=g(r).replace(/^defer\s/,""),[m,v]=A.split(" "),y=m||"xMidYMid",b=v||"meet",_=i/o,w=a/s,x=Math.min(_,w),T=Math.max(_,w),C=o,S=s;"meet"===b&&(C*=x,S*=x),"slice"===b&&(C*=T,S*=T);var E=new z(e,"refX",l),B=new z(e,"refY",h),k=E.hasValue()&&B.hasValue();if(k&&n.translate(-x*E.getPixels("x"),-x*B.getPixels("y")),d){var O=x*f,I=x*p;n.beginPath(),n.moveTo(O,I),n.lineTo(i,I),n.lineTo(i,a),n.lineTo(O,a),n.closePath(),n.clip()}if(!k){var L="meet"===b&&x===w,P="slice"===b&&T===w,M="meet"===b&&x===_,D="slice"===b&&T===_;y.startsWith("xMid")&&(L||P)&&n.translate(i/2-C/2,0),y.endsWith("YMid")&&(M||D)&&n.translate(0,a/2-S/2),y.startsWith("xMax")&&(L||P)&&n.translate(i-C,0),y.endsWith("YMax")&&(M||D)&&n.translate(0,a-S)}switch(!0){case"none"===y:n.scale(_,w);break;case"meet"===b:n.scale(x,x);break;case"slice"===b:n.scale(T,T);break}n.translate(-u,-c)}start(t){var{enableRedraw:e=!1,ignoreMouse:n=!1,ignoreAnimation:r=!1,ignoreDimensions:i=!1,ignoreClear:o=!1,forceRedraw:a,scaleWidth:s,scaleHeight:c,offsetX:l,offsetY:h}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:d,mouse:f}=this,p=1e3/d;if(this.frameDuration=p,this.readyPromise=new Promise(t=>{this.resolveReady=t}),this.isReady()&&this.render(t,i,o,s,c,l,h),e){var A=Date.now(),g=A,m=0,v=()=>{A=Date.now(),m=A-g,m>=p&&(g=A-m%p,this.shouldUpdate(r,a)&&(this.render(t,i,o,s,c,l,h),f.runEvents())),this.intervalId=u()(v)};n||f.start(),this.intervalId=u()(v)}}stop(){this.intervalId&&(u.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:n}=this,r=this.animations.reduce((t,e)=>e.update(n)||t,!1);if(r)return!0}return!("function"!==typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(t,e,n,r,i,o,a){var{CLIENT_WIDTH:s,CLIENT_HEIGHT:u,viewPort:c,ctx:l,isFirstRender:h}=this,d=l.canvas;c.clear(),d.width&&d.height?c.setCurrent(d.width,d.height):c.setCurrent(s,u);var f=t.getStyle("width"),p=t.getStyle("height");!e&&(h||"number"!==typeof r&&"number"!==typeof i)&&(f.hasValue()&&(d.width=f.getPixels("x"),d.style&&(d.style.width="".concat(d.width,"px"))),p.hasValue()&&(d.height=p.getPixels("y"),d.style&&(d.style.height="".concat(d.height,"px"))));var A=d.clientWidth||d.width,g=d.clientHeight||d.height;if(e&&f.hasValue()&&p.hasValue()&&(A=f.getPixels("x"),g=p.getPixels("y")),c.setCurrent(A,g),"number"===typeof o&&t.getAttribute("x",!0).setValue(o),"number"===typeof a&&t.getAttribute("y",!0).setValue(a),"number"===typeof r||"number"===typeof i){var m=y(t.getAttribute("viewBox").getString()),v=0,b=0;if("number"===typeof r){var _=t.getStyle("width");_.hasValue()?v=_.getPixels("x")/r:isNaN(m[2])||(v=m[2]/r)}if("number"===typeof i){var w=t.getStyle("height");w.hasValue()?b=w.getPixels("y")/i:isNaN(m[3])||(b=m[3]/i)}v||(v=b),b||(b=v),t.getAttribute("width",!0).setValue(r),t.getAttribute("height",!0).setValue(i);var x=t.getStyle("transform",!0,!0);x.setValue("".concat(x.getString()," scale(").concat(1/v,", ").concat(1/b,")"))}n||l.clearRect(0,0,A,g),t.render(l),h&&(this.isFirstRender=!1)}}$.defaultWindow=K,$.defaultFetch=X;var{defaultFetch:Y}=$,J="undefined"!==typeof DOMParser?DOMParser:null;class Z{constructor(){var{fetch:t=Y,DOMParser:e=J}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return i()((function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)}))()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(n){return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return i()((function*(){var n=yield e.fetch(t),r=yield n.text();return e.parseFromString(r)}))()}}class tt{constructor(t,e){this.type="translate",this.point=null,this.point=G.parse(e)}apply(t){var{x:e,y:n}=this.point;t.translate(e||0,n||0)}unapply(t){var{x:e,y:n}=this.point;t.translate(-1*e||0,-1*n||0)}applyToPoint(t){var{x:e,y:n}=this.point;t.applyTransform([1,0,0,1,e||0,n||0])}}class et{constructor(t,e,n){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var r=y(e);this.angle=new z(t,"angle",r[0]),this.originX=n[0],this.originY=n[1],this.cx=r[1]||0,this.cy=r[2]||0}apply(t){var{cx:e,cy:n,originX:r,originY:i,angle:o}=this,a=e+r.getPixels("x"),s=n+i.getPixels("y");t.translate(a,s),t.rotate(o.getRadians()),t.translate(-a,-s)}unapply(t){var{cx:e,cy:n,originX:r,originY:i,angle:o}=this,a=e+r.getPixels("x"),s=n+i.getPixels("y");t.translate(a,s),t.rotate(-1*o.getRadians()),t.translate(-a,-s)}applyToPoint(t){var{cx:e,cy:n,angle:r}=this,i=r.getRadians();t.applyTransform([1,0,0,1,e||0,n||0]),t.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),t.applyTransform([1,0,0,1,-e||0,-n||0])}}class nt{constructor(t,e,n){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var r=G.parseScale(e);0!==r.x&&0!==r.y||(r.x=P,r.y=P),this.scale=r,this.originX=n[0],this.originY=n[1]}apply(t){var{scale:{x:e,y:n},originX:r,originY:i}=this,o=r.getPixels("x"),a=i.getPixels("y");t.translate(o,a),t.scale(e,n||e),t.translate(-o,-a)}unapply(t){var{scale:{x:e,y:n},originX:r,originY:i}=this,o=r.getPixels("x"),a=i.getPixels("y");t.translate(o,a),t.scale(1/e,1/n||e),t.translate(-o,-a)}applyToPoint(t){var{x:e,y:n}=this.scale;t.applyTransform([e||0,0,0,n||0,0,0])}}class rt{constructor(t,e,n){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=y(e),this.originX=n[0],this.originY=n[1]}apply(t){var{originX:e,originY:n,matrix:r}=this,i=e.getPixels("x"),o=n.getPixels("y");t.translate(i,o),t.transform(r[0],r[1],r[2],r[3],r[4],r[5]),t.translate(-i,-o)}unapply(t){var{originX:e,originY:n,matrix:r}=this,i=r[0],o=r[2],a=r[4],s=r[1],u=r[3],c=r[5],l=0,h=0,d=1,f=1/(i*(u*d-c*h)-o*(s*d-c*l)+a*(s*h-u*l)),p=e.getPixels("x"),A=n.getPixels("y");t.translate(p,A),t.transform(f*(u*d-c*h),f*(c*l-s*d),f*(a*h-o*d),f*(i*d-a*l),f*(o*c-a*u),f*(a*s-i*c)),t.translate(-p,-A)}applyToPoint(t){t.applyTransform(this.matrix)}}class it extends rt{constructor(t,e,n){super(t,e,n),this.type="skew",this.angle=null,this.angle=new z(t,"angle",e)}}class ot extends it{constructor(t,e,n){super(t,e,n),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class at extends it{constructor(t,e,n){super(t,e,n),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function st(t){return g(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function ut(t){var[e,n]=t.split("(");return[e.trim(),n.trim().replace(")","")]}class ct{constructor(t,e,n){this.document=t,this.transforms=[];var r=st(e);r.forEach(t=>{if("none"!==t){var[e,r]=ut(t),i=ct.transformTypes[e];"undefined"!==typeof i&&this.transforms.push(new i(this.document,r,n))}})}static fromElement(t,e){var n=e.getStyle("transform",!1,!0),[r,i=r]=e.getStyle("transform-origin",!1,!0).split(),o=[r,i];return n.hasValue()?new ct(t,n.getString(),o):null}apply(t){for(var{transforms:e}=this,n=e.length,r=0;r=0;r--)e[r].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,n=e.length,r=0;r2&&void 0!==arguments[2]&&arguments[2];if(this.document=t,this.node=e,this.captureTextNodes=n,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],e&&1===e.nodeType){if(Array.from(e.attributes).forEach(e=>{var n=_(e.nodeName);this.attributes[n]=new z(t,n,e.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var r=this.getAttribute("style").getString().split(";").map(t=>t.trim());r.forEach(e=>{if(e){var[n,r]=e.split(":").map(t=>t.trim());this.styles[n]=new z(t,n,r)}})}var{definitions:i}=t,o=this.getAttribute("id");o.hasValue()&&(i[o.getString()]||(i[o.getString()]=this)),Array.from(e.childNodes).forEach(e=>{if(1===e.nodeType)this.addChild(e);else if(n&&(3===e.nodeType||4===e.nodeType)){var r=t.createTextNode(e);r.getText().length>0&&this.addChild(r)}})}}getAttribute(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.attributes[t];if(!n&&e){var r=new z(this.document,t,"");return this.attributes[t]=r,r}return n||z.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return z.empty(this.document)}getStyle(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.styles[t];if(r)return r;var i=this.getAttribute(t);if(null!==i&&void 0!==i&&i.hasValue())return this.styles[t]=i,i;if(!n){var{parent:o}=this;if(o){var a=o.getStyle(t);if(null!==a&&void 0!==a&&a.hasValue())return a}}if(e){var s=new z(this.document,t,"");return this.styles[t]=s,s}return r||z.empty(this.document)}render(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(t),n.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=ct.fromElement(this.document,this);e&&e.apply(t);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var r=n.getDefinition();r&&r.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach(e=>{e.render(t)})}addChild(t){var e=t instanceof lt?t:this.document.createElement(t);e.parent=this,lt.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var e,{node:n}=this;if("function"===typeof n.matches)return n.matches(t);var r=null===(e=n.getAttribute)||void 0===e?void 0:e.call(n,"class");return!(!r||""===r)&&r.split(" ").some(e=>".".concat(e)===t)}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var n in t)if(!n.startsWith("@")&&this.matchesSelector(n)){var r=t[n],i=e[n];if(r)for(var o in r){var a=this.stylesSpecificity[o];"undefined"===typeof a&&(a="000"),i>=a&&(this.styles[o]=r[o],this.stylesSpecificity[o]=i)}}}removeStyles(t,e){var n=e.reduce((e,n)=>{var r=t.getStyle(n);if(!r.hasValue())return e;var i=r.getString();return r.setValue(""),[...e,[n,i]]},[]);return n}restoreStyles(t,e){e.forEach(e=>{var[n,r]=e;t.getStyle(n,!0).setValue(r)})}isFirstChild(){var t;return 0===(null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this))}}lt.ignoreChildTypes=["title"];class ht extends lt{constructor(t,e,n){super(t,e,n)}}function dt(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function ft(e){return"undefined"===typeof t?e:e.trim().split(",").map(dt).join(",")}function pt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function At(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class gt{constructor(t,e,n,r,i,o){var a=o?"string"===typeof o?gt.parse(o):o:{};this.fontFamily=i||a.fontFamily,this.fontSize=r||a.fontSize,this.fontStyle=t||a.fontStyle,this.fontWeight=n||a.fontWeight,this.fontVariant=e||a.fontVariant}static parse(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,n="",r="",i="",o="",a="",s=g(t).trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return s.forEach(t=>{switch(!0){case!u.fontStyle&>.styles.includes(t):"inherit"!==t&&(n=t),u.fontStyle=!0;break;case!u.fontVariant&>.variants.includes(t):"inherit"!==t&&(r=t),u.fontStyle=!0,u.fontVariant=!0;break;case!u.fontWeight&>.weights.includes(t):"inherit"!==t&&(i=t),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:"inherit"!==t&&([o]=t.split("/")),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:"inherit"!==t&&(a+=t)}}),new gt(n,r,i,o,a,e)}toString(){return[pt(this.fontStyle),this.fontVariant,At(this.fontWeight),this.fontSize,ft(this.fontFamily)].join(" ").trim()}}gt.styles="normal|italic|oblique|inherit",gt.variants="normal|small-caps|inherit",gt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class mt{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=n,this.y2=r,this.addPoint(t,e),this.addPoint(n,r)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){"undefined"!==typeof t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),tthis.x2&&(this.x2=t)),"undefined"!==typeof e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),ethis.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:n,x2:r,y2:i}=t;this.addPoint(e,n),this.addPoint(r,i)}}sumCubic(t,e,n,r,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*n+3*(1-t)*Math.pow(t,2)*r+Math.pow(t,3)*i}bezierCurveAdd(t,e,n,r,i){var o=6*e-12*n+6*r,a=-3*e+9*n-9*r+3*i,s=3*n-3*e;if(0!==a){var u=Math.pow(o,2)-4*s*a;if(!(u<0)){var c=(-o+Math.sqrt(u))/(2*a);0=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",n=new G(this.command[t],this.command[e]);return this.makeAbsolute(n)}getAsControlPoint(t,e){var n=this.getPoint(t,e);return this.control=n,n}getAsCurrentPoint(t,e){var n=this.getPoint(t,e);return this.current=n,n}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==h["a"].CURVE_TO&&t!==h["a"].SMOOTH_CURVE_TO&&t!==h["a"].QUAD_TO&&t!==h["a"].SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:n},control:{x:r,y:i}}=this,o=new G(2*e-r,2*n-i);return o}makeAbsolute(t){if(this.command.relative){var{x:e,y:n}=this.current;t.x+=e,t.y+=n}return t}addMarker(t,e,n){var{points:r,angles:i}=this;n&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=r[r.length-1].angleTo(n)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,n=0;n1&&void 0!==arguments[1]&&arguments[1];if(!e){var n=this.getStyle("fill"),r=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var a=n.getFillStyleDefinition(this,r);a&&(t.fillStyle=a)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var s=n.getColor();"inherit"!==s&&(t.fillStyle="none"===s?"rgba(0,0,0,0)":s)}if(r.hasValue()){var u=new z(this.document,"fill",t.fillStyle).addOpacity(r).getColor();t.fillStyle=u}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,o);c&&(t.strokeStyle=c)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var l=i.getString();"inherit"!==l&&(t.strokeStyle="none"===l?"rgba(0,0,0,0)":l)}if(o.hasValue()){var h=new z(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=h}var d=this.getStyle("stroke-width");if(d.hasValue()){var f=d.getPixels();t.lineWidth=f||P}var p=this.getStyle("stroke-linecap"),A=this.getStyle("stroke-linejoin"),g=this.getStyle("stroke-miterlimit"),m=this.getStyle("stroke-dasharray"),v=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(t.lineCap=p.getString()),A.hasValue()&&(t.lineJoin=A.getString()),g.hasValue()&&(t.miterLimit=g.getNumber()),m.hasValue()&&"none"!==m.getString()){var b=y(m.getString());"undefined"!==typeof t.setLineDash?t.setLineDash(b):"undefined"!==typeof t.webkitLineDash?t.webkitLineDash=b:"undefined"===typeof t.mozDash||1===b.length&&0===b[0]||(t.mozDash=b);var _=v.getPixels();"undefined"!==typeof t.lineDashOffset?t.lineDashOffset=_:"undefined"!==typeof t.webkitLineDashOffset?t.webkitLineDashOffset=_:"undefined"!==typeof t.mozDashOffset&&(t.mozDashOffset=_)}}if(this.modifiedEmSizeStack=!1,"undefined"!==typeof t.font){var w=this.getStyle("font"),x=this.getStyle("font-style"),T=this.getStyle("font-variant"),C=this.getStyle("font-weight"),S=this.getStyle("font-size"),E=this.getStyle("font-family"),B=new gt(x.getString(),T.getString(),C.getString(),S.hasValue()?"".concat(S.getPixels(!0),"px"):"",E.getString(),gt.parse(w.getString(),t.font));x.setValue(B.fontStyle),T.setValue(B.fontVariant),C.setValue(B.fontWeight),S.setValue(B.fontSize),E.setValue(B.fontFamily),t.font=B.toString(),S.isPixels()&&(this.document.emSize=S.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class bt extends yt{constructor(t,e,n){super(t,e,n),this.type="path",this.pathParser=null,this.pathParser=new vt(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,n=new mt;e.reset(),t&&t.beginPath();while(!e.isEnd())switch(e.next().type){case vt.MOVE_TO:this.pathM(t,n);break;case vt.LINE_TO:this.pathL(t,n);break;case vt.HORIZ_LINE_TO:this.pathH(t,n);break;case vt.VERT_LINE_TO:this.pathV(t,n);break;case vt.CURVE_TO:this.pathC(t,n);break;case vt.SMOOTH_CURVE_TO:this.pathS(t,n);break;case vt.QUAD_TO:this.pathQ(t,n);break;case vt.SMOOTH_QUAD_TO:this.pathT(t,n);break;case vt.ARC:this.pathA(t,n);break;case vt.CLOSE_PATH:this.pathZ(t,n);break}return n}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),n=t.getMarkerAngles(),r=e.map((t,e)=>[t,n[e]]);return r}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var n=this.getMarkers();if(n){var r=n.length-1,i=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(i.isUrlDefinition()){var s=i.getDefinition(),[u,c]=n[0];s.render(t,u,c)}if(o.isUrlDefinition())for(var l=o.getDefinition(),h=1;h1&&(r*=Math.sqrt(h),i*=Math.sqrt(h));var d=(a===s?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(i,2)-Math.pow(r,2)*Math.pow(l.y,2)-Math.pow(i,2)*Math.pow(l.x,2))/(Math.pow(r,2)*Math.pow(l.y,2)+Math.pow(i,2)*Math.pow(l.x,2)));isNaN(d)&&(d=0);var f=new G(d*r*l.y/i,d*-i*l.x/r),p=new G((e.x+c.x)/2+Math.cos(u)*f.x-Math.sin(u)*f.y,(e.y+c.y)/2+Math.sin(u)*f.x+Math.cos(u)*f.y),A=F([1,0],[(l.x-f.x)/r,(l.y-f.y)/i]),g=[(l.x-f.x)/r,(l.y-f.y)/i],m=[(-l.x-f.x)/r,(-l.y-f.y)/i],v=F(g,m);return D(g,m)<=-1&&(v=Math.PI),D(g,m)>=1&&(v=0),{currentPoint:c,rX:r,rY:i,sweepFlag:s,xAxisRotation:u,centp:p,a1:A,ad:v}}pathA(t,e){var{pathParser:n}=this,{currentPoint:r,rX:i,rY:o,sweepFlag:a,xAxisRotation:s,centp:u,a1:c,ad:l}=bt.pathA(n),h=1-a?1:-1,d=c+h*(l/2),f=new G(u.x+i*Math.cos(d),u.y+o*Math.sin(d));if(n.addMarkerAngle(f,d-h*Math.PI/2),n.addMarkerAngle(r,d-h*Math.PI),e.addPoint(r.x,r.y),t&&!isNaN(c)&&!isNaN(l)){var p=i>o?i:o,A=i>o?1:i/o,g=i>o?o/i:1;t.translate(u.x,u.y),t.rotate(s),t.scale(A,g),t.arc(0,0,p,c,c+l,Boolean(1-a)),t.scale(1/A,1/g),t.rotate(-s),t.translate(-u.x,-u.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){bt.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class _t extends bt{constructor(t,e,n){super(t,e,n),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class wt extends yt{constructor(t,e,n){super(t,e,new.target===wt||n),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(t,e);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(t.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach((n,r)=>{var i=this.getChildBoundingBox(t,this,this,r);e?e.addBoundingBox(i):e=i}),e}getFontSize(){var{document:t,parent:e}=this,n=gt.parse(t.ctx.font).fontSize,r=e.getStyle("font-size").getNumber(n);return r}getTElementBoundingBox(t){var e=this.getFontSize();return new mt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,n){var r=e[n],i=null;if(t.isArabic){var o=e.length,a=e[n-1],s=e[n+1],u="isolated";if((0===n||" "===a)&&n0&&" "!==a&&n0&&" "!==a&&(n===o-1||" "===s)&&(u="initial"),"undefined"!==typeof t.glyphs[r]){var c=t.glyphs[r];i=c instanceof _t?c:c[u]}}else i=t.glyphs[r];return i||(i=t.missingGlyph),i}getText(){return""}getTextFromNode(t){var e=t||this.node,n=Array.from(e.parentNode.childNodes),r=n.indexOf(e),i=n.length-1,o=g(e.textContent||"");return 0===r&&(o=m(o)),r===i&&(o=v(o)),o}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((e,n)=>{this.renderChild(t,this,this,n)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:n}=this,r=this.getText(),i=n.getStyle("font-family").getDefinition();if(i)for(var{unitsPerEm:o}=i.fontFace,a=gt.parse(e.ctx.font),s=n.getStyle("font-size").getNumber(a.fontSize),u=n.getStyle("font-style").getString(a.fontStyle),c=s/o,l=i.isRTL?r.split("").reverse().join(""):r,h=y(n.getAttribute("dx").getString()),d=l.length,f=0;f=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),n=!1,r=0;r="start"===e&&!n||"end"===e&&n?t.x-this.minX:"end"===e&&!n||"start"===e&&n?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i{this.adjustChildCoordinatesRecursiveCore(t,this,this,n)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,n,r){var i=n.children[r];i.children.length>0?i.children.forEach((n,r)=>{e.adjustChildCoordinatesRecursiveCore(t,e,i,r)}):this.adjustChildCoordinates(t,e,n,r)}adjustChildCoordinates(t,e,n,r){var i=n.children[r];if("function"!==typeof i.measureText)return i;t.save(),i.setContext(t,!0);var o=i.getAttribute("x"),a=i.getAttribute("y"),s=i.getAttribute("dx"),u=i.getAttribute("dy"),c=i.getStyle("font-family").getDefinition(),l=Boolean(c)&&c.isRTL;0===r&&(o.hasValue()||o.setValue(i.getInheritedAttribute("x")),a.hasValue()||a.setValue(i.getInheritedAttribute("y")),s.hasValue()||s.setValue(i.getInheritedAttribute("dx")),u.hasValue()||u.setValue(i.getInheritedAttribute("dy")));var h=i.measureText(t);return l&&(e.x-=h),o.hasValue()?(e.applyAnchoring(),i.x=o.getPixels("x"),s.hasValue()&&(i.x+=s.getPixels("x"))):(s.hasValue()&&(e.x+=s.getPixels("x")),i.x=e.x),e.x=i.x,l||(e.x+=h),a.hasValue()?(i.y=a.getPixels("y"),u.hasValue()&&(i.y+=u.getPixels("y"))):(u.hasValue()&&(e.y+=u.getPixels("y")),i.y=e.y),e.y=i.y,e.leafTexts.push(i),e.minX=Math.min(e.minX,i.x,i.x+h),e.maxX=Math.max(e.maxX,i.x,i.x+h),i.clearContext(t),t.restore(),i}getChildBoundingBox(t,e,n,r){var i=n.children[r];if("function"!==typeof i.getBoundingBox)return null;var o=i.getBoundingBox(t);return o?(i.children.forEach((n,r)=>{var a=e.getChildBoundingBox(t,e,i,r);o.addBoundingBox(a)}),o):null}renderChild(t,e,n,r){var i=n.children[r];i.render(t),i.children.forEach((n,r)=>{e.renderChild(t,e,i,r)})}measureText(t){var{measureCache:e}=this;if(~e)return e;var n=this.getText(),r=this.measureTargetText(t,n);return this.measureCache=r,r}measureTargetText(t,e){if(!e.length)return 0;var{parent:n}=this,r=n.getStyle("font-family").getDefinition();if(r){for(var i=this.getFontSize(),o=r.isRTL?e.split("").reverse().join(""):e,a=y(n.getAttribute("dx").getString()),s=o.length,u=0,c=0;c0?"":this.getTextFromNode()}getText(){return this.text}}class Tt extends xt{constructor(){super(...arguments),this.type="textNode"}}class Ct extends yt{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:n}=this,{screen:r,window:i}=n,o=t.canvas;if(r.setDefaults(t),o.style&&"undefined"!==typeof t.font&&i&&"undefined"!==typeof i.getComputedStyle){t.font=i.getComputedStyle(o).getPropertyValue("font");var a=new z(n,"fontSize",gt.parse(t.font).fontSize);a.hasValue()&&(n.rootEmSize=a.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:s,height:u}=r.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var c=this.getAttribute("refX"),l=this.getAttribute("refY"),h=this.getAttribute("viewBox"),d=h.hasValue()?y(h.getString()):null,f=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),p=0,A=0,g=0,m=0;d&&(p=d[0],A=d[1]),this.root||(s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),"marker"===this.type&&(g=p,m=A,p=0,A=0)),r.viewPort.setCurrent(s,u),!this.node||this.parent&&"foreignObject"!==(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),d&&(s=d[2],u=d[3]),n.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:s,height:r.viewPort.height,desiredHeight:u,minX:p,minY:A,refX:c.getValue(),refY:l.getValue(),clip:f,clipX:g,clipY:m}),d&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(s,u))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),a=this.getAttribute("style"),s=r.getNumber(0),u=i.getNumber(0);if(n)if("string"===typeof n)this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(r.setValue(t),i.setValue(e),o.hasValue()||o.setValue("0 0 ".concat(s||t," ").concat(u||e)),a.hasValue()){var l=this.getStyle("width"),h=this.getStyle("height");l.hasValue()&&l.setValue("".concat(t,"px")),h.hasValue()&&h.setValue("".concat(e,"px"))}}}class St extends bt{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),r=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),a=this.getAttribute("ry"),s=o.getPixels("x"),u=a.getPixels("y");if(o.hasValue()&&!a.hasValue()&&(u=s),a.hasValue()&&!o.hasValue()&&(s=u),s=Math.min(s,r/2),u=Math.min(u,i/2),t){var c=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&r>0&&(t.moveTo(e+s,n),t.lineTo(e+r-s,n),t.bezierCurveTo(e+r-s+c*s,n,e+r,n+u-c*u,e+r,n+u),t.lineTo(e+r,n+i-u),t.bezierCurveTo(e+r,n+i-u+c*u,e+r-s+c*s,n+i,e+r-s,n+i),t.lineTo(e+s,n+i),t.bezierCurveTo(e+s-c*s,n+i,e,n+i-u+c*u,e,n+i-u),t.lineTo(e,n+u),t.bezierCurveTo(e,n+u-c*u,e+s-c*s,n,e+s,n),t.closePath())}return new mt(e,n,e+r,n+i)}getMarkers(){return null}}class Et extends bt{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),r=this.getAttribute("r").getPixels();return t&&r>0&&(t.beginPath(),t.arc(e,n,r,0,2*Math.PI,!1),t.closePath()),new mt(e-r,n-r,e+r,n+r)}getMarkers(){return null}}class Bt extends bt{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,n=this.getAttribute("rx").getPixels("x"),r=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&n>0&&r>0&&(t.beginPath(),t.moveTo(i+n,o),t.bezierCurveTo(i+n,o+e*r,i+e*n,o+r,i,o+r),t.bezierCurveTo(i-e*n,o+r,i-n,o+e*r,i-n,o),t.bezierCurveTo(i-n,o-e*r,i-e*n,o-r,i,o-r),t.bezierCurveTo(i+e*n,o-r,i+n,o-e*r,i+n,o),t.closePath()),new mt(i-n,o-r,i+n,o+r)}getMarkers(){return null}}class kt extends bt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new G(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new G(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:n},{x:r,y:i}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,n),t.lineTo(r,i)),new mt(e,n,r,i)}getMarkers(){var[t,e]=this.getPoints(),n=t.angleTo(e);return[[t,n],[e,n]]}}class Ot extends bt{constructor(t,e,n){super(t,e,n),this.type="polyline",this.points=[],this.points=G.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:n,y:r}]=e,i=new mt(n,r);return t&&(t.beginPath(),t.moveTo(n,r)),e.forEach(e=>{var{x:n,y:r}=e;i.addPoint(n,r),t&&t.lineTo(n,r)}),i}getMarkers(){var{points:t}=this,e=t.length-1,n=[];return t.forEach((r,i)=>{i!==e&&n.push([r,r.angleTo(t[i+1])])}),n.length>0&&n.push([t[t.length-1],n[n.length-1][1]]),n}}class It extends Ot{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:n,y:r}]=this.points;return t&&(t.lineTo(n,r),t.closePath()),e}}class Lt extends lt{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,n){var r=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new Ct(this.document,null);o.attributes.viewBox=new z(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new z(this.document,"width","".concat(r,"px")),o.attributes.height=new z(this.document,"height","".concat(i,"px")),o.attributes.transform=new z(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(r,i),s=a.getContext("2d"),u=this.getAttribute("x"),c=this.getAttribute("y");u.hasValue()&&c.hasValue()&&s.translate(u.getPixels("x",!0),c.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var l=-1;l<=1;l++)for(var h=-1;h<=1;h++)s.save(),o.attributes.x=new z(this.document,"x",l*a.width),o.attributes.y=new z(this.document,"y",h*a.height),o.render(s),s.restore();var d=t.createPattern(a,"repeat");return d}}class Pt extends lt{constructor(){super(...arguments),this.type="marker"}render(t,e,n){if(e){var{x:r,y:i}=e,o=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(r,i),"auto"===o&&t.rotate(n),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save();var s=new Ct(this.document,null);s.type=this.type,s.attributes.viewBox=new z(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.refX=new z(this.document,"refX",this.getAttribute("refX").getValue()),s.attributes.refY=new z(this.document,"refY",this.getAttribute("refY").getValue()),s.attributes.width=new z(this.document,"width",this.getAttribute("markerWidth").getValue()),s.attributes.height=new z(this.document,"height",this.getAttribute("markerHeight").getValue()),s.attributes.overflow=new z(this.document,"overflow",this.getAttribute("overflow").getValue()),s.attributes.fill=new z(this.document,"fill",this.getAttribute("fill").getColor("black")),s.attributes.stroke=new z(this.document,"stroke",this.getAttribute("stroke").getValue("none")),s.children=this.children,s.render(t),t.restore(),"strokeWidth"===a&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-n),t.translate(-r,-i)}}}class Mt extends lt{constructor(){super(...arguments),this.type="defs"}render(){}}class Dt extends yt{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new mt;return this.children.forEach(n=>{e.addBoundingBox(n.getBoundingBox(t))}),e}}class Ft extends lt{constructor(t,e,n){super(t,e,n),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:r,children:i}=this;i.forEach(t=>{"stop"===t.type&&r.push(t)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,n){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var{stops:i}=r,o=this.getGradient(t,e);if(!o)return this.addParentOpacity(n,i[i.length-1].color);if(i.forEach(t=>{o.addColorStop(t.offset,this.addParentOpacity(n,t.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:a}=this,{MAX_VIRTUAL_PIXELS:s,viewPort:u}=a.screen,[c]=u.viewPorts,l=new St(a,null);l.attributes.x=new z(a,"x",-s/3),l.attributes.y=new z(a,"y",-s/3),l.attributes.width=new z(a,"width",s),l.attributes.height=new z(a,"height",s);var h=new Dt(a,null);h.attributes.transform=new z(a,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[l];var d=new Ct(a,null);d.attributes.x=new z(a,"x",0),d.attributes.y=new z(a,"y",0),d.attributes.width=new z(a,"width",c.width),d.attributes.height=new z(a,"height",c.height),d.children=[h];var f=a.createCanvas(c.width,c.height),p=f.getContext("2d");return p.fillStyle=o,d.render(p),p.createPattern(f,"no-repeat")}return o}inheritStopContainer(t){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}addParentOpacity(t,e){if(t.hasValue()){var n=new z(this.document,"color",e);return n.addOpacity(t).getColor()}return e}}class jt extends Ft{constructor(t,e,n){super(t,e,n),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var n="objectBoundingBox"===this.getGradientUnits(),r=n?e.getBoundingBox(t):null;if(n&&!r)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 i=n?r.x+r.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=n?r.y+r.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=n?r.x+r.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),s=n?r.y+r.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===a&&o===s?null:t.createLinearGradient(i,o,a,s)}}class Nt extends Ft{constructor(t,e,n){super(t,e,n),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var n="objectBoundingBox"===this.getGradientUnits(),r=e.getBoundingBox(t);if(n&&!r)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 i=n?r.x+r.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=n?r.y+r.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,s=o;this.getAttribute("fx").hasValue()&&(a=n?r.x+r.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(s=n?r.y+r.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=n?(r.width+r.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,s,c,i,o,u)}}class Ut extends lt{constructor(t,e,n){super(t,e,n),this.type="stop";var r=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);""===o.getString()&&o.setValue("#000"),i.hasValue()&&(o=o.addOpacity(i)),this.offset=r,this.color=o.getColor()}}class Rt extends lt{constructor(t,e,n){super(t,e,n),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new z(t,"values",null);var r=this.getAttribute("values");r.hasValue()&&this.values.setValue(r.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:n,to:r}=this.getProgress(),i=n.getNumber()+(r.getNumber()-n.getNumber())*e;return"%"===t&&(i*=100),"".concat(i).concat(t)}update(t){var{parent:e}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==r||this.frozen){if("remove"===r&&!this.removed)return this.removed=!0,n.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=n.getString();return!1}this.duration+=t;var i=!1;if(this.begin{var r=i[n];return e+(r-e)*t}).join(" ");return o}}class Vt extends lt{constructor(t,e,n){super(t,e,n),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:r}=t,{children:i}=this;for(var o of i)switch(o.type){case"font-face":this.fontFace=o;var a=o.getStyle("font-family");a.hasValue()&&(r[a.getString()]=this);break;case"missing-glyph":this.missingGlyph=o;break;case"glyph":var s=o;s.arabicForm?(this.isRTL=!0,this.isArabic=!0,"undefined"===typeof this.glyphs[s.unicode]&&(this.glyphs[s.unicode]={}),this.glyphs[s.unicode][s.arabicForm]=s):this.glyphs[s.unicode]=s;break}}render(){}}class zt extends lt{constructor(t,e,n){super(t,e,n),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class qt extends bt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class Gt extends wt{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class Wt extends wt{constructor(t,e,n){super(t,e,n),this.type="a";var{childNodes:r}=e,i=r[0],o=r.length>0&&Array.from(r).every(t=>3===t.nodeType);this.hasText=o,this.text=o?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:n,y:r}=this,{mouse:i}=e.screen,o=new z(e,"fontSize",gt.parse(e.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new mt(n,r-o.getPixels("y"),n+this.measureText(t),r))}else if(this.children.length>0){var a=new Dt(this.document,null);a.children=this.children,a.parent=this,a.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){var t=this.document.ctx;t.canvas.style.cursor="pointer"}}function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xt(t){for(var e=1;e{var{type:n,points:r}=e;switch(n){case vt.LINE_TO:t&&t.lineTo(r[0],r[1]);break;case vt.MOVE_TO:t&&t.moveTo(r[0],r[1]);break;case vt.CURVE_TO:t&&t.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case vt.QUAD_TO:t&&t.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case vt.ARC:var[i,o,a,s,u,c,l,h]=r,d=a>s?a:s,f=a>s?1:a/s,p=a>s?s/a:1;t&&(t.translate(i,o),t.rotate(l),t.scale(f,p),t.arc(0,0,d,u,u+c,Boolean(1-h)),t.scale(1/f,1/p),t.rotate(-l),t.translate(-i,-o));break;case vt.CLOSE_PATH:t&&t.closePath();break}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),{glyphInfo:r}=this,i=t.fillStyle;"underline"===e&&t.beginPath(),r.forEach((r,i)=>{var{p0:o,p1:a,rotation:s,text:u}=r;t.save(),t.translate(o.x,o.y),t.rotate(s),t.fillStyle&&t.fillText(u,0,0),t.strokeStyle&&t.strokeText(u,0,0),t.restore(),"underline"===e&&(0===i&&t.moveTo(o.x,o.y+n/8),t.lineTo(a.x,a.y+n/5))}),"underline"===e&&(t.lineWidth=n/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,n,r,i,o,a,s,u){var c=o,l=this.measureText(t,s);" "===s&&"justify"===e&&n-1&&(c+=this.getLetterSpacingAt(u));var h=this.textHeight/20,d=this.getEquidistantPointOnPath(c,h,0),f=this.getEquidistantPointOnPath(c+l,h,0),p={p0:d,p1:f},A=d&&f?Math.atan2(f.y-d.y,f.x-d.x):0;if(a){var g=Math.cos(Math.PI/2+A)*a,m=Math.cos(-A)*a;p.p0=Xt(Xt({},d),{},{x:d.x+g,y:d.y+m}),p.p1=Xt(Xt({},f),{},{x:f.x+g,y:f.y+m})}return c+=l,{offset:c,segment:p,rotation:A}}measureText(t,e){var{measuresCache:n}=this,r=e||this.getText();if(n.has(r))return n.get(r);var i=this.measureTargetText(t,r);return n.set(r,i),i}setTextData(t){if(!this.glyphInfo){var e=this.getText(),n=e.split(""),r=e.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(t=>t.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),a=this.parent.getStyle("text-anchor").getString("start"),s=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),c=0;s.hasValue()&&"inherit"!==s.getValue()?s.hasValue()&&"initial"!==s.getValue()&&"unset"!==s.getValue()&&(c=s.getPixels()):c=u.getPixels();var l=[],h=e.length;this.letterSpacingCache=l;for(var d=0;d0===n?0:t+e||0,0),p=this.measureText(t),A=Math.max(p+f,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),m=this.getStyle("startOffset").getNumber(0)*g,v=0;"middle"!==a&&"center"!==a||(v=-A/2),"end"!==a&&"right"!==a||(v=-A),v+=m,n.forEach((e,i)=>{var{offset:s,segment:u,rotation:c}=this.findSegmentToFitChar(t,a,A,g,r,v,o,e,i);v=s,u.p0&&u.p1&&this.glyphInfo.push({text:n[i],p0:u.p0,p1:u.p1,rotation:c})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:n}=t;n.reset();while(!n.isEnd()){var{current:r}=n,i=r?r.x:0,o=r?r.y:0,a=n.next(),s=a.type,u=[];switch(a.type){case vt.MOVE_TO:this.pathM(n,u);break;case vt.LINE_TO:s=this.pathL(n,u);break;case vt.HORIZ_LINE_TO:s=this.pathH(n,u);break;case vt.VERT_LINE_TO:s=this.pathV(n,u);break;case vt.CURVE_TO:this.pathC(n,u);break;case vt.SMOOTH_CURVE_TO:s=this.pathS(n,u);break;case vt.QUAD_TO:this.pathQ(n,u);break;case vt.SMOOTH_QUAD_TO:s=this.pathT(n,u);break;case vt.ARC:u=this.pathA(n);break;case vt.CLOSE_PATH:bt.pathZ(n);break}a.type!==vt.CLOSE_PATH?e.push({type:s,points:u,start:{x:i,y:o},pathLength:this.calcLength(i,o,s,u)}):e.push({type:vt.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:n,y:r}=bt.pathM(t).point;e.push(n,r)}pathL(t,e){var{x:n,y:r}=bt.pathL(t).point;return e.push(n,r),vt.LINE_TO}pathH(t,e){var{x:n,y:r}=bt.pathH(t).point;return e.push(n,r),vt.LINE_TO}pathV(t,e){var{x:n,y:r}=bt.pathV(t).point;return e.push(n,r),vt.LINE_TO}pathC(t,e){var{point:n,controlPoint:r,currentPoint:i}=bt.pathC(t);e.push(n.x,n.y,r.x,r.y,i.x,i.y)}pathS(t,e){var{point:n,controlPoint:r,currentPoint:i}=bt.pathS(t);return e.push(n.x,n.y,r.x,r.y,i.x,i.y),vt.CURVE_TO}pathQ(t,e){var{controlPoint:n,currentPoint:r}=bt.pathQ(t);e.push(n.x,n.y,r.x,r.y)}pathT(t,e){var{controlPoint:n,currentPoint:r}=bt.pathT(t);return e.push(n.x,n.y,r.x,r.y),vt.QUAD_TO}pathA(t){var{rX:e,rY:n,sweepFlag:r,xAxisRotation:i,centp:o,a1:a,ad:s}=bt.pathA(t);return 0===r&&s>0&&(s-=2*Math.PI),1===r&&s<0&&(s+=2*Math.PI),[o.x,o.y,e,n,a,s,i,r]}calcLength(t,e,n,r){var i=0,o=null,a=null,s=0;switch(n){case vt.LINE_TO:return this.getLineLength(t,e,r[0],r[1]);case vt.CURVE_TO:for(i=0,o=this.getPointOnCubicBezier(0,t,e,r[0],r[1],r[2],r[3],r[4],r[5]),s=.01;s<=1;s+=.01)a=this.getPointOnCubicBezier(s,t,e,r[0],r[1],r[2],r[3],r[4],r[5]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case vt.QUAD_TO:for(i=0,o=this.getPointOnQuadraticBezier(0,t,e,r[0],r[1],r[2],r[3]),s=.01;s<=1;s+=.01)a=this.getPointOnQuadraticBezier(s,t,e,r[0],r[1],r[2],r[3]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case vt.ARC:i=0;var u=r[4],c=r[5],l=r[4]+c,h=Math.PI/180;if(Math.abs(u-l)l;s-=h)a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(s=u+h;s5&&void 0!==arguments[5]?arguments[5]:e,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:n,s=(i-n)/(r-e+P),u=Math.sqrt(t*t/(1+s*s));re)return null;var{dataArray:i}=this;for(var o of i){if(!o||!(o.pathLength<5e-5||n+o.pathLength+5e-5=0&&s>l)break;r=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],s,o.points[6]);break;case vt.CURVE_TO:s=a/o.pathLength,s>1&&(s=1),r=this.getPointOnCubicBezier(s,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case vt.QUAD_TO:s=a/o.pathLength,s>1&&(s=1),r=this.getPointOnQuadraticBezier(s,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(r)return r;break}n+=o.pathLength}return null}getLineLength(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,n,r,i,o,a,s,u){var c=s*j(t)+o*N(t)+r*U(t)+e*R(t),l=u*j(t)+a*N(t)+i*U(t)+n*R(t);return{x:c,y:l}}getPointOnQuadraticBezier(t,e,n,r,i,o,a){var s=o*H(t)+r*Q(t)+e*V(t),u=a*H(t)+i*Q(t)+n*V(t);return{x:s,y:u}}getPointOnEllipticalArc(t,e,n,r,i,o){var a=Math.cos(o),s=Math.sin(o),u={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:t+(u.x*a-u.y*s),y:e+(u.x*s+u.y*a)}}buildEquidistantCache(t,e){var n=this.getPathLength(),r=e||.25,i=t||n/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==r){this.equidistantCache={step:i,precision:r,points:[]};for(var o=0,a=0;a<=n;a+=r){var s=this.getPointOnPath(a),u=this.getPointOnPath(a+r);s&&u&&(o+=this.getLineLength(s.x,s.y,u.x,u.y),o>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:a}),o-=i))}}}getEquidistantPointOnPath(t,e,n){if(this.buildEquidistantCache(e,n),t<0||t-this.getPathLength()>5e-5)return null;var r=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}}var Yt=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Jt extends yt{constructor(t,e,n){super(t,e,n),this.type="image",this.loaded=!1;var r=this.getHrefAttribute().getString();if(r){var i=r.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(r);t.images.push(this),i?this.loadSvg(r):this.loadImage(r),this.isSvg=i}}loadImage(t){var e=this;return i()((function*(){try{var n=yield e.document.createImage(t);e.image=n}catch(r){console.error('Error while loading image "'.concat(t,'":'),r)}e.loaded=!0}))()}loadSvg(t){var e=this;return i()((function*(){var n=Yt.exec(t);if(n){var r=n[5];"base64"===n[4]?e.image=atob(r):e.image=decodeURIComponent(r)}else try{var i=yield e.document.fetch(t),o=yield i.text();e.image=o}catch(a){console.error('Error while loading image "'.concat(t,'":'),a)}e.loaded=!0}))()}renderChildren(t){var{document:e,image:n,loaded:r}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(r&&n&&a&&s){if(t.save(),t.translate(i,o),this.isSvg){var u=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:s});u.document.documentElement.parent=this,u.render()}else{var c=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:c.width,height:s,desiredHeight:c.height}),this.loaded&&("undefined"===typeof c.complete||c.complete)&&t.drawImage(c,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),r=this.getStyle("height").getPixels("y");return new mt(t,e,t+n,e+r)}}class Zt extends yt{constructor(){super(...arguments),this.type="symbol"}render(t){}}class te{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var n=this;return i()((function*(){try{var{document:r}=n,i=yield r.canvg.parser.load(e),o=i.getElementsByTagName("font");Array.from(o).forEach(e=>{var n=r.createElement(e);r.definitions[t]=n})}catch(a){console.error('Error while loading font "'.concat(e,'":'),a)}n.loaded=!0}))()}}class ee extends lt{constructor(t,e,n){super(t,e,n),this.type="style";var r=g(Array.from(e.childNodes).map(t=>t.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=r.split("}");i.forEach(e=>{var n=e.trim();if(n){var r=n.split("{"),i=r[0].split(","),o=r[1].split(";");i.forEach(e=>{var n=e.trim();if(n){var r=t.styles[n]||{};if(o.forEach(e=>{var n=e.indexOf(":"),i=e.substr(0,n).trim(),o=e.substr(n+1,e.length-n).trim();i&&o&&(r[i]=new z(t,i,o))}),t.styles[n]=r,t.stylesSpecificity[n]=L(n),"@font-face"===n){var i=r["font-family"].getString().replace(/"|'/g,""),a=r.src.getString().split(",");a.forEach(e=>{if(e.indexOf('format("svg")')>0){var n=w(e);n&&new te(t).load(i,n)}})}}})}})}}ee.parseExternalUrl=w;class ne extends yt{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),n=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),n.hasValue()&&t.translate(0,n.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:n}=this;if(n){var r=n;if("symbol"===n.type&&(r=new Ct(e,null),r.attributes.viewBox=new z(e,"viewBox",n.getAttribute("viewBox").getString()),r.attributes.preserveAspectRatio=new z(e,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),r.attributes.overflow=new z(e,"overflow",n.getAttribute("overflow").getString()),r.children=n.children,n.styles.opacity=new z(e,"opacity",this.calculateOpacity())),"svg"===r.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(r.attributes.width=new z(e,"width",i.getString())),o.hasValue()&&(r.attributes.height=new z(e,"height",o.getString()))}var a=r.parent;r.parent=this,r.render(t),r.parent=a}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return ct.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function re(t,e,n,r,i,o){return t[n*r*4+4*e+o]}function ie(t,e,n,r,i,o,a){t[n*r*4+4*e+o]=a}function oe(t,e,n){var r=t[e];return r*n}function ae(t,e,n,r){return e+Math.cos(t)*n+Math.sin(t)*r}class se extends lt{constructor(t,e,n){super(t,e,n),this.type="feColorMatrix";var r=y(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var i=r[0];r=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=r[0]*Math.PI/180;r=[ae(o,.213,.787,-.213),ae(o,.715,-.715,-.715),ae(o,.072,-.072,.928),0,0,ae(o,.213,-.213,.143),ae(o,.715,.285,.14),ae(o,.072,-.072,-.283),0,0,ae(o,.213,-.213,-.787),ae(o,.715,-.715,.715),ae(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":r=[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];break}this.matrix=r,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,n,r,i){for(var{includeOpacity:o,matrix:a}=this,s=t.getImageData(0,0,r,i),u=0;u{s.addBoundingBox(e.getBoundingBox(t))}),r=Math.floor(s.x1),i=Math.floor(s.y1),o=Math.floor(s.width),a=Math.floor(s.height)}var u=this.removeStyles(e,ue.ignoreStyles),c=n.createCanvas(r+o,i+a),l=c.getContext("2d");n.screen.setDefaults(l),this.renderChildren(l),new se(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,r+o,i+a);var h=n.createCanvas(r+o,i+a),d=h.getContext("2d");n.screen.setDefaults(d),e.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=l.createPattern(c,"no-repeat"),d.fillRect(0,0,r+o,i+a),t.fillStyle=d.createPattern(h,"no-repeat"),t.fillRect(0,0,r+o,i+a),this.restoreStyles(e,u)}render(t){}}ue.ignoreStyles=["mask","transform","clip-path"];var ce=()=>{};class le extends lt{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,n=Reflect.getPrototypeOf(t),{beginPath:r,closePath:i}=t;n&&(n.beginPath=ce,n.closePath=ce),Reflect.apply(r,t,[]),this.children.forEach(r=>{if("undefined"!==typeof r.path){var o="undefined"!==typeof r.elementTransform?r.elementTransform():null;o||(o=ct.fromElement(e,r)),o&&o.apply(t),r.path(t),n&&(n.closePath=i),o&&o.unapply(t)}}),Reflect.apply(i,t,[]),t.clip(),n&&(n.beginPath=r,n.closePath=i)}render(t){}}class he extends lt{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:n,children:r}=this,i=e.getBoundingBox(t);if(i){var o=0,a=0;r.forEach(t=>{var e=t.extraFilterDistance||0;o=Math.max(o,e),a=Math.max(a,e)});var s=Math.floor(i.width),u=Math.floor(i.height),c=s+2*o,l=u+2*a;if(!(c<1||l<1)){var h=Math.floor(i.x),d=Math.floor(i.y),f=this.removeStyles(e,he.ignoreStyles),p=n.createCanvas(c,l),A=p.getContext("2d");n.screen.setDefaults(A),A.translate(-h+o,-d+a),e.render(A),r.forEach(t=>{"function"===typeof t.apply&&t.apply(A,0,0,c,l)}),t.drawImage(p,0,0,c,l,h-o,d-a,c,l),this.restoreStyles(e,f)}}}render(t){}}he.ignoreStyles=["filter","transform","clip-path"];class de extends lt{constructor(t,e,n){super(t,e,n),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,n,r,i){}}class fe extends lt{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,n,r,i){}}class pe extends lt{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,n,r,i){}}class Ae extends lt{constructor(t,e,n){super(t,e,n),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,n,r,i){var{document:o,blurRadius:a}=this,s=o.window?o.window.document.body:null,u=t.canvas;u.id=o.getUniqueId(),s&&(u.style.display="none",s.appendChild(u)),Object(d["a"])(u,e,n,r,i,a),s&&s.removeChild(u)}}class ge extends lt{constructor(){super(...arguments),this.type="title"}}class me extends lt{constructor(){super(...arguments),this.type="desc"}}var ve={svg:Ct,rect:St,circle:Et,ellipse:Bt,line:kt,polyline:Ot,polygon:It,path:bt,pattern:Lt,marker:Pt,defs:Mt,linearGradient:jt,radialGradient:Nt,stop:Ut,animate:Rt,animateColor:Ht,animateTransform:Qt,font:Vt,"font-face":zt,"missing-glyph":qt,glyph:_t,text:wt,tspan:xt,tref:Gt,a:Wt,textPath:$t,image:Jt,g:Dt,symbol:Zt,style:ee,use:ne,mask:ue,clipPath:le,filter:he,feDropShadow:de,feMorphology:fe,feComposite:pe,feColorMatrix:se,feGaussianBlur:Ae,title:ge,desc:me};function ye(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function be(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("img");return e&&(n.crossOrigin="Anonymous"),new Promise((e,r)=>{n.onload=()=>{e(n)},n.onerror=(t,e,n,i,o)=>{r(o)},n.src=t})})),xe.apply(this,arguments)}class Te{constructor(t){var{rootEmSize:e=12,emSize:n=12,createCanvas:r=Te.createCanvas,createImage:i=Te.createImage,anonymousCrossOrigin:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=n,this.createCanvas=r,this.createImage=this.bindCreateImage(i,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return"boolean"===typeof e?(n,r)=>t(n,"boolean"===typeof r?r:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(t=>t.loaded)}isFontsLoaded(){return this.fonts.every(t=>t.loaded)}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),n=Te.elementTypes[e];return"undefined"!==typeof n?new n(this,t):new ht(this,t)}createTextNode(t){return new Tt(this,t)}setViewBox(t){this.screen.setViewBox(be({document:this},t))}}function Ce(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Se(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Z(n),this.screen=new $(t,n),this.options=n;var r=new Te(this,n),i=r.createDocumentElement(e);this.document=r,this.documentElement=i}static from(t,e){var n=arguments;return i()((function*(){var r=n.length>2&&void 0!==n[2]?n[2]:{},i=new Z(r),o=yield i.parse(e);return new Ee(t,o,r)}))()}static fromString(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Z(n),i=r.parseFromString(e);return new Ee(t,i,n)}fork(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ee.from(t,e,Se(Se({},this.options),n))}forkString(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ee.fromString(t,e,Se(Se({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return i()((function*(){var n=t.length>0&&void 0!==t[0]?t[0]:{};e.start(Se({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield e.ready(),e.stop()}))()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:n,options:r}=this;n.start(e,Se(Se({enableRedraw:!0},r),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,n)}}}.call(this,n("4362"))},"0da8":function(t,e,n){"use strict";var r=n("21a10"),i=n("19eb"),o=n("9850"),a=n("6d8b"),s=Object(a["defaults"])({x:0,y:0},i["b"]),u={style:Object(a["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i["a"].style)};function c(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["a"])(e,t),e.prototype.createStyle=function(t){return Object(a["createObject"])(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=c(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return u},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o["a"](t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(i["c"]);l.prototype.type="image",e["a"]=l},"0db0":function(t,e,n){var r=n("6185"),i=n("a714"),o=n("4650"),a=n("7820"),s=n("0ee6"),u=n("0209"),c=function(){},l=[],h=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),p=!d.exec(c),A=function(t){if(!o(t))return!1;try{return h(c,l,t),!0}catch(e){return!1}},g=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,u(t))}catch(e){return!0}};g.sham=!0,t.exports=!h||i((function(){var t;return A(A.call)||!A(Object)||!A((function(){t=!0}))||t}))?g:A},"0de0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return/mp4a\.\d+.\d+/i.test(t)},i=function(t){return/avc1\.[\da-f]+/i.test(t)},o=function(t){var e={type:"",parameters:{}},n=t.trim().split(";");return e.type=n.shift().trim(),n.forEach((function(t){var n=t.trim().split("=");if(n.length>1){var r=n[0].replace(/"/g,"").trim(),i=n[1].replace(/"/g,"").trim();e.parameters[r]=i}})),e},a=function(t){return t.map((function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,n){var r=("00"+Number(e).toString(16)).slice(-2),i=("00"+Number(n).toString(16)).slice(-2);return"avc1."+r+"00"+i}))}))};e["default"]={isAudioCodec:r,parseContentType:o,isVideoCodec:i,translateLegacyCodecs:a},t.exports=e["default"]},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0e15":function(t,e,n){var r=n("597f");t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},"0e17":function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},"0e4d":function(t,e,n){var r=n("e186"),i=n("20bf"),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a constructor")}},"0ea2":function(t,e,n){"use strict";var r,i,o,a=n("4329"),s=n("4e69"),u=n("ae75"),c=n("256f").TimestampRolloverStream,l=n("ae75"),h=188,d=71;r=function(){var t=new Uint8Array(h),e=0;r.prototype.init.call(this),this.push=function(n){var r,i=0,o=h;e?(r=new Uint8Array(n.byteLength+e),r.set(t.subarray(0,e)),r.set(n,e),e=0):r=n;while(o>>4>1&&(r+=e[r]+1),0===n.pid)n.type="pat",t(e.subarray(r),n),this.trigger("data",n);else if(n.pid===this.pmtPid){n.type="pmt",t(e.subarray(r),n),this.trigger("data",n);while(this.packetsWaitingForPmt.length)this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,r,n]):this.processPes_(e,r,n)},this.processPes_=function(t,e,n){n.pid===this.programMapTable.video?n.streamType=u.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=u.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=t.subarray(e),this.trigger("data",n)}},i.prototype=new a,i.STREAM_TYPES={h264:27,adts:15},o=function(){var t=this,e={data:[],size:0},n={data:[],size:0},r={data:[],size:0},i=function(t,e){var n;e.packetLength=6+(t[4]<<8|t[5]),e.dataAlignmentIndicator=0!==(4&t[6]),n=t[7],192&n&&(e.pts=(14&t[9])<<27|(255&t[10])<<20|(254&t[11])<<12|(255&t[12])<<5|(254&t[13])>>>3,e.pts*=4,e.pts+=(6&t[13])>>>1,e.dts=e.pts,64&n&&(e.dts=(14&t[14])<<27|(255&t[15])<<20|(254&t[16])<<12|(255&t[17])<<5|(254&t[18])>>>3,e.dts*=4,e.dts+=(6&t[18])>>>1)),e.data=t.subarray(9+t[8])},a=function(e,n,r){var o,a=new Uint8Array(e.size),s={type:n},u=0,c=0,l=!1;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,u=0;ub)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},1098:function(t,e,n){"use strict";e.__esModule=!0;var r=n("17ed"),i=u(r),o=n("f893"),a=u(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(t){return typeof t}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};function u(t){return t&&t.__esModule?t:{default:t}}e.default="function"===typeof a.default&&"symbol"===s(i.default)?function(t){return"undefined"===typeof t?"undefined":s(t)}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"===typeof t?"undefined":s(t)}},"10d8":function(t,e){t.exports={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}},"10db":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1125:function(t,e,n){"use strict";var r=n("9c2c"),i=n("9bbc"),o=n("cc58"),a=n("1b14").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:a},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},1148:function(t,e,n){"use strict";var r=n("5926"),i=n("577e"),o=n("1d80"),a=RangeError;t.exports=function(t){var e=i(o(this)),n="",s=r(t);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},1157:function(t,e,n){var r,i; /*! * jQuery JavaScript Library v3.6.3 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2022-12-20T21:28Z */(function(e,n){"use strict";"object"===typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)})("undefined"!==typeof window?window:this,(function(n,o){"use strict";var a=[],s=Object.getPrototypeOf,u=a.slice,c=a.flat?function(t){return a.flat.call(t)}:function(t){return a.concat.apply([],t)},l=a.push,h=a.indexOf,d={},f=d.toString,p=d.hasOwnProperty,A=p.toString,g=A.call(Object),m={},v=function(t){return"function"===typeof t&&"number"!==typeof t.nodeType&&"function"!==typeof t.item},y=function(t){return null!=t&&t===t.window},b=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){n=n||b;var r,i,o=n.createElement("script");if(o.text=t,e)for(r in _)i=e[r]||e.getAttribute&&e.getAttribute(r),i&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(t){return null==t?t+"":"object"===typeof t||"function"===typeof t?d[f.call(t)]||"object":typeof t}var T="3.6.3",C=function(t,e){return new C.fn.init(t,e)};function S(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"===typeof e&&e>0&&e-1 in t)}C.fn=C.prototype={jquery:T,constructor:C,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=C.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return C.each(this,t)},map:function(t){return this.pushStack(C.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(C.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+j+")"+j+"*"),q=new RegExp(j+"|>"),G=new RegExp(R),W=new RegExp("^"+N+"$"),K={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,$=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){d()},at=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(O=M.call(_.childNodes),_.childNodes),O[_.childNodes.length].nodeType}catch(Et){P={apply:O.length?function(t,e){L.apply(t,M.call(e))}:function(t,e){var n=t.length,r=0;while(t[n++]=e[r++]);t.length=n-1}}}function st(t,e,r,i){var o,s,c,l,h,p,m,v=e&&e.ownerDocument,_=e?e.nodeType:9;if(r=r||[],"string"!==typeof t||!t||1!==_&&9!==_&&11!==_)return r;if(!i&&(d(e),e=e||f,A)){if(11!==_&&(h=Z.exec(t)))if(o=h[1]){if(9===_){if(!(c=e.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(v&&(c=v.getElementById(o))&&y(e,c)&&c.id===o)return r.push(c),r}else{if(h[2])return P.apply(r,e.getElementsByTagName(t)),r;if((o=h[3])&&n.getElementsByClassName&&e.getElementsByClassName)return P.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!E[t+" "]&&(!g||!g.test(t))&&(1!==_||"object"!==e.nodeName.toLowerCase())){if(m=t,v=e,1===_&&(q.test(t)||z.test(t))){v=tt.test(t)&&mt(e.parentNode)||e,v===e&&n.scope||((l=e.getAttribute("id"))?l=l.replace(rt,it):e.setAttribute("id",l=b)),p=a(t),s=p.length;while(s--)p[s]=(l?"#"+l:":scope")+" "+yt(p[s]);m=p.join(",")}try{if(n.cssSupportsSelector&&!CSS.supports("selector(:is("+m+"))"))throw new Error;return P.apply(r,v.querySelectorAll(m)),r}catch(w){E(t,!0)}finally{l===b&&e.removeAttribute("id")}}}return u(t.replace(Q,"$1"),e,r,i)}function ut(){var t=[];function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}return e}function ct(t){return t[b]=!0,t}function lt(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(Et){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){var n=t.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=e}function dt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===e)return-1;return t?1:-1}function ft(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function At(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return ct((function(e){return e=+e,ct((function(n,r){var i,o=t([],n.length,e),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function mt(t){return t&&"undefined"!==typeof t.getElementsByTagName&&t}for(e in n=st.support={},o=st.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!X.test(e||n&&n.nodeName||"HTML")},d=st.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:_;return a!=f&&9===a.nodeType&&a.documentElement?(f=a,p=f.documentElement,A=!o(f),_!=f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=lt((function(t){return p.appendChild(t).appendChild(f.createElement("div")),"undefined"!==typeof t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.cssSupportsSelector=lt((function(){return CSS.supports("selector(*)")&&f.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")})),n.attributes=lt((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=lt((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=lt((function(t){return p.appendChild(t).id=b,!f.getElementsByName||!f.getElementsByName(b).length})),n.getById?(r.filter["ID"]=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find["ID"]=function(t,e){if("undefined"!==typeof e.getElementById&&A){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter["ID"]=function(t){var e=t.replace(et,nt);return function(t){var n="undefined"!==typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find["ID"]=function(t,e){if("undefined"!==typeof e.getElementById&&A){var n,r,i,o=e.getElementById(t);if(o){if(n=o.getAttributeNode("id"),n&&n.value===t)return[o];i=e.getElementsByName(t),r=0;while(o=i[r++])if(n=o.getAttributeNode("id"),n&&n.value===t)return[o]}return[]}}),r.find["TAG"]=n.getElementsByTagName?function(t,e){return"undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},r.find["CLASS"]=n.getElementsByClassName&&function(t,e){if("undefined"!==typeof e.getElementsByClassName&&A)return e.getElementsByClassName(t)},m=[],g=[],(n.qsa=J.test(f.querySelectorAll))&&(lt((function(t){var e;p.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+j+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+j+"*(?:value|"+F+")"),t.querySelectorAll("[id~="+b+"-]").length||g.push("~="),e=f.createElement("input"),e.setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||g.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]"),t.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),lt((function(t){t.innerHTML="";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+j+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(v=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&<((function(t){n.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),m.push("!=",R)})),n.cssSupportsSelector||g.push(":has"),g=g.length&&new RegExp(g.join("|")),m=m.length&&new RegExp(m.join("|")),e=J.test(p.compareDocumentPosition),y=e||J.test(p.contains)?function(t,e){var n=9===t.nodeType&&t.documentElement||t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)while(e=e.parentNode)if(e===t)return!0;return!1},B=e?function(t,e){if(t===e)return h=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&r||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==f||t.ownerDocument==_&&y(_,t)?-1:e==f||e.ownerDocument==_&&y(_,e)?1:l?D(l,t)-D(l,e):0:4&r?-1:1)}:function(t,e){if(t===e)return h=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t==f?-1:e==f?1:i?-1:o?1:l?D(l,t)-D(l,e):0;if(i===o)return dt(t,e);n=t;while(n=n.parentNode)a.unshift(n);n=e;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?dt(a[r],s[r]):a[r]==_?-1:s[r]==_?1:0},f):f},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(d(t),n.matchesSelector&&A&&!E[e+" "]&&(!m||!m.test(e))&&(!g||!g.test(e)))try{var r=v.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(Et){E(e,!0)}return st(e,f,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=f&&d(t),y(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=f&&d(t);var i=r.attrHandle[e.toLowerCase()],o=i&&k.call(r.attrHandle,e.toLowerCase())?i(t,e,!A):void 0;return void 0!==o?o:n.attributes||!A?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(rt,it)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,r=[],i=0,o=0;if(h=!n.detectDuplicates,l=!n.sortStable&&t.slice(0),t.sort(B),h){while(e=t[o++])e===t[o]&&(i=r.push(o));while(i--)t.splice(r[i],1)}return l=null,t},i=st.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else while(e=t[r++])n+=i(e);return n},r=st.selectors={cacheLength:50,createPseudo:ct,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return K["CHILD"].test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&G.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=T[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&T(t,(function(t){return e.test("string"===typeof t.className&&t.className||"undefined"!==typeof t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=st.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var c,l,h,d,f,p,A=o!==a?"nextSibling":"previousSibling",g=e.parentNode,m=s&&e.nodeName.toLowerCase(),v=!u&&!s,y=!1;if(g){if(o){while(A){d=e;while(d=d[A])if(s?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;p=A="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&v){d=g,h=d[b]||(d[b]={}),l=h[d.uniqueID]||(h[d.uniqueID]={}),c=l[t]||[],f=c[0]===w&&c[1],y=f&&c[2],d=f&&g.childNodes[f];while(d=++f&&d&&d[A]||(y=f=0)||p.pop())if(1===d.nodeType&&++y&&d===e){l[t]=[w,f,y];break}}else if(v&&(d=e,h=d[b]||(d[b]={}),l=h[d.uniqueID]||(h[d.uniqueID]={}),c=l[t]||[],f=c[0]===w&&c[1],y=f),!1===y)while(d=++f&&d&&d[A]||(y=f=0)||p.pop())if((s?d.nodeName.toLowerCase()===m:1===d.nodeType)&&++y&&(v&&(h=d[b]||(d[b]={}),l=h[d.uniqueID]||(h[d.uniqueID]={}),l[t]=[w,y]),d===e))break;return y-=i,y===r||y%r===0&&y/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return i[b]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){var r,o=i(t,e),a=o.length;while(a--)r=D(t,o[a]),t[r]=!(n[r]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:ct((function(t){var e=[],n=[],r=s(t.replace(Q,"$1"));return r[b]?ct((function(t,e,n,i){var o,a=r(t,null,i,[]),s=t.length;while(s--)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return st(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:ct((function(t){return W.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=A?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:At(!1),disabled:At(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos["empty"](t)},header:function(t){return Y.test(t.nodeName)},input:function(t){return $.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt((function(){return[0]})),last:gt((function(t,e){return[e-1]})),eq:gt((function(t,e,n){return[n<0?n+e:n]})),even:gt((function(t,e){for(var n=0;ne?e:n;--r>=0;)t.push(r);return t})),gt:gt((function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){var i=t.length;while(i--)if(!t[i](e,n,r))return!1;return!0}:t[0]}function wt(t,e,n){for(var r=0,i=e.length;r-1&&(o[c]=!(a[c]=h))}}else m=xt(m===a?m.splice(p,m.length):m),i?i(null,a,m,u):P.apply(a,m)}))}function Ct(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],u=a?1:0,l=bt((function(t){return t===e}),s,!0),h=bt((function(t){return D(e,t)>-1}),s,!0),d=[function(t,n,r){var i=!a&&(r||n!==c)||((e=n).nodeType?l(t,n,r):h(t,n,r));return e=null,i}];u1&&_t(d),u>1&&yt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(Q,"$1"),n,u0,i=t.length>0,o=function(o,a,s,u,l){var h,p,g,m=0,v="0",y=o&&[],b=[],_=c,x=o||i&&r.find["TAG"]("*",l),T=w+=null==_?1:Math.random()||.1,C=x.length;for(l&&(c=a==f||a||l);v!==C&&null!=(h=x[v]);v++){if(i&&h){p=0,a||h.ownerDocument==f||(d(h),s=!A);while(g=t[p++])if(g(h,a||f,s)){u.push(h);break}l&&(w=T)}n&&((h=!g&&h)&&m--,o&&y.push(h))}if(m+=v,n&&v!==m){p=0;while(g=e[p++])g(y,b,a,s);if(o){if(m>0)while(v--)y[v]||b[v]||(b[v]=I.call(u));b=xt(b)}P.apply(u,b),l&&!o&&b.length>0&&m+e.length>1&&st.uniqueSort(u)}return l&&(w=T,c=_),y};return n?ct(o):o}return vt.prototype=r.filters=r.pseudos,r.setFilters=new vt,a=st.tokenize=function(t,e){var n,i,o,a,s,u,c,l=C[t+" "];if(l)return e?0:l.slice(0);s=t,u=[],c=r.preFilter;while(s){for(a in n&&!(i=V.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(Q," ")}),s=s.slice(n.length)),r.filter)!(i=K[a].exec(s))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):C(t,u).slice(0)},s=st.compile=function(t,e){var n,r=[],i=[],o=S[t+" "];if(!o){e||(e=a(t)),n=e.length;while(n--)o=Ct(e[n]),o[b]?r.push(o):i.push(o);o=S(t,St(i,r)),o.selector=t}return o},u=st.select=function(t,e,n,i){var o,u,c,l,h,d="function"===typeof t&&t,f=!i&&a(t=d.selector||t);if(n=n||[],1===f.length){if(u=f[0]=f[0].slice(0),u.length>2&&"ID"===(c=u[0]).type&&9===e.nodeType&&A&&r.relative[u[1].type]){if(e=(r.find["ID"](c.matches[0].replace(et,nt),e)||[])[0],!e)return n;d&&(e=e.parentNode),t=t.slice(u.shift().value.length)}o=K["needsContext"].test(t)?0:u.length;while(o--){if(c=u[o],r.relative[l=c.type])break;if((h=r.find[l])&&(i=h(c.matches[0].replace(et,nt),tt.test(u[0].type)&&mt(e.parentNode)||e))){if(u.splice(o,1),t=i.length&&yt(u),!t)return P.apply(n,i),n;break}}}return(d||s(t,f))(i,e,!A,n,!e||tt.test(t)&&mt(e.parentNode)||e),n},n.sortStable=b.split("").sort(B).join("")===b,n.detectDuplicates=!!h,d(),n.sortDetached=lt((function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))})),lt((function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")}))||ht("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&<((function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ht("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),lt((function(t){return null==t.getAttribute("disabled")}))||ht(F,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),st}(n);C.find=E,C.expr=E.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=E.uniqueSort,C.text=E.getText,C.isXMLDoc=E.isXML,C.contains=E.contains,C.escapeSelector=E.escape;var B=function(t,e,n){var r=[],i=void 0!==n;while((t=t[e])&&9!==t.nodeType)if(1===t.nodeType){if(i&&C(t).is(n))break;r.push(t)}return r},k=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},O=C.expr.match.needsContext;function I(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(t,e,n){return v(e)?C.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?C.grep(t,(function(t){return t===e!==n})):"string"!==typeof e?C.grep(t,(function(t){return h.call(e,t)>-1!==n})):C.filter(e,t,n)}C.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?C.find.matchesSelector(r,t)?[r]:[]:C.find.matches(t,C.grep(e,(function(t){return 1===t.nodeType})))},C.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!==typeof t)return this.pushStack(C(t).filter((function(){for(e=0;e1?C.uniqueSort(n):n},filter:function(t){return this.pushStack(P(this,t||[],!1))},not:function(t){return this.pushStack(P(this,t||[],!0))},is:function(t){return!!P(this,"string"===typeof t&&O.test(t)?C(t):t||[],!1).length}});var M,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,F=C.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||M,"string"===typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:D.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),L.test(r[1])&&C.isPlainObject(e))for(r in e)v(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=b.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(C):C.makeArray(t,this)};F.prototype=C.fn,M=C(b);var j=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function U(t,e){while((t=t[e])&&1!==t.nodeType);return t}C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&C.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?C.uniqueSort(o):o)},index:function(t){return t?"string"===typeof t?h.call(C(t),this[0]):h.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return B(t,"parentNode")},parentsUntil:function(t,e,n){return B(t,"parentNode",n)},next:function(t){return U(t,"nextSibling")},prev:function(t){return U(t,"previousSibling")},nextAll:function(t){return B(t,"nextSibling")},prevAll:function(t){return B(t,"previousSibling")},nextUntil:function(t,e,n){return B(t,"nextSibling",n)},prevUntil:function(t,e,n){return B(t,"previousSibling",n)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(I(t,"template")&&(t=t.content||t),C.merge([],t.childNodes))}},(function(t,e){C.fn[t]=function(n,r){var i=C.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=C.filter(r,i)),this.length>1&&(N[t]||C.uniqueSort(i),j.test(t)&&i.reverse()),this.pushStack(i)}}));var R=/[^\x20\t\r\n\f]+/g;function H(t){var e={};return C.each(t.match(R)||[],(function(t,n){e[n]=!0})),e}function Q(t){return t}function V(t){throw t}function z(t,e,n,r){var i;try{t&&v(i=t.promise)?i.call(t).done(e).fail(n):t&&v(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}C.Callbacks=function(t){t="string"===typeof t?H(t):C.extend({},t);var e,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||t.once,r=e=!0;a.length;s=-1){n=a.shift();while(++s-1)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?C.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},C.extend({Deferred:function(t){var e=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return C.Deferred((function(n){C.each(e,(function(e,r){var i=v(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,r,i){var o=0;function a(t,e,r,i){return function(){var s=this,u=arguments,c=function(){var n,c;if(!(t=o&&(r!==V&&(s=void 0,u=[n]),e.rejectWith(s,u))}};t?l():(C.Deferred.getStackHook&&(l.stackTrace=C.Deferred.getStackHook()),n.setTimeout(l))}}return C.Deferred((function(n){e[0][3].add(a(0,n,v(i)?i:Q,n.notifyWith)),e[1][3].add(a(0,n,v(t)?t:Q)),e[2][3].add(a(0,n,v(r)?r:V))})).promise()},promise:function(t){return null!=t?C.extend(t,i):i}},o={};return C.each(e,(function(t,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=u.call(arguments),o=C.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?u.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(z(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();while(n--)z(i[n],a(n),o.reject);return o.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&q.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},C.readyException=function(t){n.setTimeout((function(){throw t}))};var G=C.Deferred();function W(){b.removeEventListener("DOMContentLoaded",W),n.removeEventListener("load",W),C.ready()}C.fn.ready=function(t){return G.then(t).catch((function(t){C.readyException(t)})),this},C.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==t&&--C.readyWait>0||G.resolveWith(b,[C]))}}),C.ready.then=G.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(C.ready):(b.addEventListener("DOMContentLoaded",W),n.addEventListener("load",W));var K=function(t,e,n,r,i,o,a){var s=0,u=t.length,c=null==n;if("object"===x(n))for(s in i=!0,n)K(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(C(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each((function(){nt.remove(this,t)}))}}),C.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=et.get(t,e),n&&(!r||Array.isArray(n)?r=et.access(t,e,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=C.queue(t,e),r=n.length,i=n.shift(),o=C._queueHooks(t,e),a=function(){C.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return et.get(t,n)||et.access(t,n,{empty:C.Callbacks("once memory").add((function(){et.remove(t,[e+"queue",n])}))})}}),C.fn.extend({queue:function(t,e){var n=2;return"string"!==typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,bt=/^$|^module$|\/(?:java|ecma)script/i;(function(){var t=b.createDocumentFragment(),e=t.appendChild(b.createElement("div")),n=b.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),m.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",m.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="",m.option=!!e.lastChild})();var _t={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function wt(t,e){var n;return n="undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!==typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&I(t,e)?C.merge([t],n):n}function xt(t,e){for(var n=0,r=t.length;n",""]);var Tt=/<|&#?\w+;/;function Ct(t,e,n,r,i){for(var o,a,s,u,c,l,h=e.createDocumentFragment(),d=[],f=0,p=t.length;f-1)i&&i.push(o);else if(c=ht(o),a=wt(h.appendChild(o),"script"),c&&xt(a),n){l=0;while(o=a[l++])bt.test(o.type||"")&&n.push(o)}return h}var St=/^([^.]*)(?:\.(.+)|)/;function Et(){return!0}function Bt(){return!1}function kt(t,e){return t===Ot()===("focus"===e)}function Ot(){try{return b.activeElement}catch(t){}}function It(t,e,n,r,i,o){var a,s;if("object"===typeof e){for(s in"string"!==typeof n&&(r=r||n,n=void 0),e)It(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Bt;else if(!i)return t;return 1===o&&(a=i,i=function(t){return C().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=C.guid++)),t.each((function(){C.event.add(this,e,i,r,n)}))}function Lt(t,e,n){n?(et.set(t,e,!1),C.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=et.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(C.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=u.call(arguments),et.set(this,e,o),r=n(this,e),this[e](),i=et.get(this,e),o!==i||r?et.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else o.length&&(et.set(this,e,{value:C.event.trigger(C.extend(o[0],C.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===et.get(t,e)&&C.event.add(t,e,Et)}C.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,c,l,h,d,f,p,A,g=et.get(t);if(Z(t)){n.handler&&(o=n,n=o.handler,i=o.selector),i&&C.find.matchesSelector(lt,i),n.guid||(n.guid=C.guid++),(u=g.events)||(u=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return"undefined"!==typeof C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(R)||[""],c=e.length;while(c--)s=St.exec(e[c])||[],f=A=s[1],p=(s[2]||"").split(".").sort(),f&&(h=C.event.special[f]||{},f=(i?h.delegateType:h.bindType)||f,h=C.event.special[f]||{},l=C.extend({type:f,origType:A,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=u[f])||(d=u[f]=[],d.delegateCount=0,h.setup&&!1!==h.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(f,a)),h.add&&(h.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),C.event.global[f]=!0)}},remove:function(t,e,n,r,i){var o,a,s,u,c,l,h,d,f,p,A,g=et.hasData(t)&&et.get(t);if(g&&(u=g.events)){e=(e||"").match(R)||[""],c=e.length;while(c--)if(s=St.exec(e[c])||[],f=A=s[1],p=(s[2]||"").split(".").sort(),f){h=C.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,d=u[f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;while(o--)l=d[o],!i&&A!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,h.remove&&h.remove.call(t,l));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,p,g.handle)||C.removeEvent(t,f,g.handle),delete u[f])}else for(f in u)C.event.remove(t,f+e[c],n,r,!0);C.isEmptyObject(u)&&et.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=new Array(arguments.length),u=C.event.fix(t),c=(et.get(this,"events")||Object.create(null))[u.type]||[],l=C.event.special[u.type]||{};for(s[0]=u,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n-1:C.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,u\s*$/g;function Ft(t,e){return I(t,"table")&&I(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function jt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Nt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ut(t,e){var n,r,i,o,a,s,u;if(1===e.nodeType){if(et.hasData(t)&&(o=et.get(t),u=o.events,u))for(i in et.remove(e,"handle events"),u)for(n=0,r=u[i].length;n1&&"string"===typeof p&&!m.checkClone&&Mt.test(p))return t.each((function(i){var o=t.eq(i);A&&(e[0]=p.call(this,i,o.html())),Ht(o,e,n,r)}));if(d&&(i=Ct(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=C.map(wt(i,"script"),jt),s=a.length;h0&&xt(a,!u&&wt(t,"script")),s},cleanData:function(t){for(var e,n,r,i=C.event.special,o=0;void 0!==(n=t[o]);o++)if(Z(n)){if(e=n[et.expando]){if(e.events)for(r in e.events)i[r]?C.event.remove(n,r):C.removeEvent(n,r,e.handle);n[et.expando]=void 0}n[nt.expando]&&(n[nt.expando]=void 0)}}}),C.fn.extend({detach:function(t){return Qt(this,t,!0)},remove:function(t){return Qt(this,t)},text:function(t){return K(this,(function(t){return void 0===t?C.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ht(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.appendChild(t)}}))},prepend:function(){return Ht(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ht(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ht(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(wt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return C.clone(this,t,e)}))},html:function(t){return K(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"===typeof t&&!Pt.test(t)&&!_t[(yt.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;n=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-s-.5))||0),u}function ue(t,e,n){var r=qt(t),i=!m.boxSizingReliable()||n,o=i&&"border-box"===C.css(t,"boxSizing",!1,r),a=o,s=$t(t,e,r),u="offset"+e[0].toUpperCase()+e.slice(1);if(Vt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&o||!m.reliableTrDimensions()&&I(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===C.css(t,"display",!1,r))&&t.getClientRects().length&&(o="border-box"===C.css(t,"boxSizing",!1,r),a=u in t,a&&(s=t[u])),s=parseFloat(s)||0,s+se(t,e,n||(o?"border":"content"),a,r,s)+"px"}function ce(t,e,n,r,i){return new ce.prototype.init(t,e,n,r,i)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$t(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=J(e),u=zt.test(e),c=t.style;if(u||(e=ne(s)),a=C.cssHooks[e]||C.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:c[e];o=typeof n,"string"===o&&(i=ut.exec(n))&&i[1]&&(n=pt(t,e,i),o="number"),null!=n&&n===n&&("number"!==o||u||(n+=i&&i[3]||(C.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var i,o,a,s=J(e),u=zt.test(e);return u||(e=ne(s)),a=C.cssHooks[e]||C.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=$t(t,e,r)),"normal"===i&&e in oe&&(i=oe[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),C.each(["height","width"],(function(t,e){C.cssHooks[e]={get:function(t,n,r){if(n)return!re.test(C.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,r):Gt(t,ie,(function(){return ue(t,e,r)}))},set:function(t,n,r){var i,o=qt(t),a=!m.scrollboxSize()&&"absolute"===o.position,s=a||r,u=s&&"border-box"===C.css(t,"boxSizing",!1,o),c=r?se(t,e,r,u,o):0;return u&&a&&(c-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-se(t,e,"border",!1,o)-.5)),c&&(i=ut.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=C.css(t,e)),ae(t,n,c)}}})),C.cssHooks.marginLeft=Yt(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat($t(t,"marginLeft"))||t.getBoundingClientRect().left-Gt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(t,e){C.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"===typeof n?n.split(" "):[n];r<4;r++)i[t+ct[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(C.cssHooks[t+e].set=ae)})),C.fn.extend({css:function(t,e){return K(this,(function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=qt(t),i=e.length;a1)}}),C.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(C.cssNumber[n]?"":"px")},cur:function(){var t=ce.propHooks[this.prop];return t&&t.get?t.get(this):ce.propHooks._default.get(this)},run:function(t){var e,n=ce.propHooks[this.prop];return this.options.duration?this.pos=e=C.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ce.propHooks._default.set(this),this}},ce.prototype.init.prototype=ce.prototype,ce.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=C.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||!C.cssHooks[t.prop]&&null==t.elem.style[ne(t.prop)]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}},ce.propHooks.scrollTop=ce.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=ce.prototype.init,C.fx.step={};var le,he,de=/^(?:toggle|show|hide)$/,fe=/queueHooks$/;function pe(){he&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(pe):n.setTimeout(pe,C.fx.interval),C.fx.tick())}function Ae(){return n.setTimeout((function(){le=void 0})),le=Date.now()}function ge(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)n=ct[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function me(t,e,n){for(var r,i=(be.tweeners[e]||[]).concat(be.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(t){return this.each((function(){C.removeAttr(this,t)}))}}),C.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof t.getAttribute?C.prop(t,e,n):(1===o&&C.isXMLDoc(t)||(i=C.attrHooks[e.toLowerCase()]||(C.expr.match.bool.test(e)?_e:void 0)),void 0!==n?null===n?void C.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=C.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&I(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(R);if(i&&1===t.nodeType)while(n=i[r++])t.removeAttribute(n)}}),_e={set:function(t,e,n){return!1===e?C.removeAttr(t,n):t.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=we[e]||C.find.attr;we[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=we[a],we[a]=i,i=null!=n(t,e,r)?a:null,we[a]=o),i}}));var xe=/^(?:input|select|textarea|button)$/i,Te=/^(?:a|area)$/i;function Ce(t){var e=t.match(R)||[];return e.join(" ")}function Se(t){return t.getAttribute&&t.getAttribute("class")||""}function Ee(t){return Array.isArray(t)?t:"string"===typeof t&&t.match(R)||[]}C.fn.extend({prop:function(t,e){return K(this,C.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[C.propFix[t]||t]}))}}),C.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(t)||(e=C.propFix[e]||e,i=C.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):xe.test(t.nodeName)||Te.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(C.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each((function(e){C(this).addClass(t.call(this,e,Se(this)))})):(e=Ee(t),e.length?this.each((function(){if(r=Se(this),n=1===this.nodeType&&" "+Ce(r)+" ",n){for(o=0;o-1)n=n.replace(" "+i+" "," ")}a=Ce(n),r!==a&&this.setAttribute("class",a)}})):this):this.attr("class","")},toggleClass:function(t,e){var n,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each((function(n){C(this).toggleClass(t.call(this,n,Se(this),e),e)})):"boolean"===typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=Ee(t),this.each((function(){if(s)for(o=C(this),i=0;i-1)return!0;return!1}});var Be=/\r/g;C.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=v(t),this.each((function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,C(this).val()):t,null==i?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=C.map(i,(function(t){return null==t?"":t+""}))),e=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"===typeof n?n.replace(Be,""):null==n?"":n)):void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:Ce(C.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=C.inArray(C(t).val(),e)>-1}},m.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),m.focusin="onfocusin"in n;var ke=/^(?:focusinfocus|focusoutblur)$/,Oe=function(t){t.stopPropagation()};C.extend(C.event,{trigger:function(t,e,r,i){var o,a,s,u,c,l,h,d,f=[r||b],A=p.call(t,"type")?t.type:t,g=p.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!ke.test(A+C.event.triggered)&&(A.indexOf(".")>-1&&(g=A.split("."),A=g.shift(),g.sort()),c=A.indexOf(":")<0&&"on"+A,t=t[C.expando]?t:new C.Event(A,"object"===typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:C.makeArray(e,[t]),h=C.event.special[A]||{},i||!h.trigger||!1!==h.trigger.apply(r,e))){if(!i&&!h.noBubble&&!y(r)){for(u=h.delegateType||A,ke.test(u+A)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(r.ownerDocument||b)&&f.push(s.defaultView||s.parentWindow||n)}o=0;while((a=f[o++])&&!t.isPropagationStopped())d=a,t.type=o>1?u:h.bindType||A,l=(et.get(a,"events")||Object.create(null))[t.type]&&et.get(a,"handle"),l&&l.apply(a,e),l=c&&a[c],l&&l.apply&&Z(a)&&(t.result=l.apply(a,e),!1===t.result&&t.preventDefault());return t.type=A,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),e)||!Z(r)||c&&v(r[A])&&!y(r)&&(s=r[c],s&&(r[c]=null),C.event.triggered=A,t.isPropagationStopped()&&d.addEventListener(A,Oe),r[A](),t.isPropagationStopped()&&d.removeEventListener(A,Oe),C.event.triggered=void 0,s&&(r[c]=s)),t.result}},simulate:function(t,e,n){var r=C.extend(new C.Event,n,{type:t,isSimulated:!0});C.event.trigger(r,null,e)}}),C.fn.extend({trigger:function(t,e){return this.each((function(){C.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return C.event.trigger(t,e,n,!0)}}),m.focusin||C.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){C.event.simulate(e,t.target,C.event.fix(t))};C.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=et.access(r,e);i||r.addEventListener(t,n,!0),et.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=et.access(r,e)-1;i?et.access(r,e,i):(r.removeEventListener(t,n,!0),et.remove(r,e))}}}));var Ie=n.location,Le={guid:Date.now()},Pe=/\?/;C.parseXML=function(t){var e,r;if(!t||"string"!==typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(i){}return r=e&&e.getElementsByTagName("parsererror")[0],e&&!r||C.error("Invalid XML: "+(r?C.map(r.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Me=/\[\]$/,De=/\r?\n/g,Fe=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;function Ne(t,e,n,r){var i;if(Array.isArray(e))C.each(e,(function(e,i){n||Me.test(t)?r(t,i):Ne(t+"["+("object"===typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==x(e))r(t,e);else for(i in e)Ne(t+"["+i+"]",e[i],n,r)}C.param=function(t,e){var n,r=[],i=function(t,e){var n=v(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,(function(){i(this.name,this.value)}));else for(n in t)Ne(n,t[n],e,i);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&je.test(this.nodeName)&&!Fe.test(t)&&(this.checked||!vt.test(t))})).map((function(t,e){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(t){return{name:e.name,value:t.replace(De,"\r\n")}})):{name:e.name,value:n.replace(De,"\r\n")}})).get()}});var Ue=/%20/g,Re=/#.*$/,He=/([?&])_=[^&]*/,Qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ve=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ze=/^(?:GET|HEAD)$/,qe=/^\/\//,Ge={},We={},Ke="*/".concat("*"),Xe=b.createElement("a");function $e(t){return function(e,n){"string"!==typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(R)||[];if(v(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Ye(t,e,n,r){var i={},o=t===We;function a(s){var u;return i[s]=!0,C.each(t[s]||[],(function(t,s){var c=s(e,n,r);return"string"!==typeof c||o||i[c]?o?!(u=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),u}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Je(t,e){var n,r,i=C.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&C.extend(!0,t,r),t}function Ze(t,e,n){var r,i,o,a,s=t.contents,u=t.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function tn(t,e,n,r){var i,o,a,s,u,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];o=l.shift();while(o)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift(),o)if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=c[u+" "+o]||c["* "+o],!a)for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]],a)){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(h){return{state:"parsererror",error:a?h:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}Xe.href=Ie.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ie.href,type:"GET",isLocal:Ve.test(Ie.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ke,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,C.ajaxSettings),e):Je(C.ajaxSettings,t)},ajaxPrefilter:$e(Ge),ajaxTransport:$e(We),ajax:function(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,u,c,l,h,d,f=C.ajaxSetup({},e),p=f.context||f,A=f.context&&(p.nodeType||p.jquery)?C(p):C.event,g=C.Deferred(),m=C.Callbacks("once memory"),v=f.statusCode||{},y={},_={},w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a){a={};while(e=Qe.exec(o))a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2])}e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,y[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)x.always(t[x.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||w;return r&&r.abort(e),T(0,e),this}};if(g.promise(x),f.url=((t||f.url||Ie.href)+"").replace(qe,Ie.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(R)||[""],null==f.crossDomain){u=b.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Xe.protocol+"//"+Xe.host!==u.protocol+"//"+u.host}catch(S){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!==typeof f.data&&(f.data=C.param(f.data,f.traditional)),Ye(Ge,f,e,x),c)return x;for(h in l=C.event&&f.global,l&&0===C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ze.test(f.type),i=f.url.replace(Re,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ue,"+")):(d=f.url.slice(i.length),f.data&&(f.processData||"string"===typeof f.data)&&(i+=(Pe.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(He,"$1"),d=(Pe.test(i)?"&":"?")+"_="+Le.guid+++d),f.url=i+d),f.ifModified&&(C.lastModified[i]&&x.setRequestHeader("If-Modified-Since",C.lastModified[i]),C.etag[i]&&x.setRequestHeader("If-None-Match",C.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ke+"; q=0.01":""):f.accepts["*"]),f.headers)x.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(p,x,f)||c))return x.abort();if(w="abort",m.add(f.complete),x.done(f.success),x.fail(f.error),r=Ye(We,f,e,x),r){if(x.readyState=1,l&&A.trigger("ajaxSend",[x,f]),c)return x;f.async&&f.timeout>0&&(s=n.setTimeout((function(){x.abort("timeout")}),f.timeout));try{c=!1,r.send(y,T)}catch(S){if(c)throw S;T(-1,S)}}else T(-1,"No Transport");function T(t,e,a,u){var h,d,y,b,_,w=e;c||(c=!0,s&&n.clearTimeout(s),r=void 0,o=u||"",x.readyState=t>0?4:0,h=t>=200&&t<300||304===t,a&&(b=Ze(f,x,a)),!h&&C.inArray("script",f.dataTypes)>-1&&C.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),b=tn(f,b,x,h),h?(f.ifModified&&(_=x.getResponseHeader("Last-Modified"),_&&(C.lastModified[i]=_),_=x.getResponseHeader("etag"),_&&(C.etag[i]=_)),204===t||"HEAD"===f.type?w="nocontent":304===t?w="notmodified":(w=b.state,d=b.data,y=b.error,h=!y)):(y=w,!t&&w||(w="error",t<0&&(t=0))),x.status=t,x.statusText=(e||w)+"",h?g.resolveWith(p,[d,w,x]):g.rejectWith(p,[x,w,y]),x.statusCode(v),v=void 0,l&&A.trigger(h?"ajaxSuccess":"ajaxError",[x,f,h?d:y]),m.fireWith(p,[x,w]),l&&(A.trigger("ajaxComplete",[x,f]),--C.active||C.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return C.get(t,e,n,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],(function(t,e){C[e]=function(t,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),C.ajax(C.extend({url:t,type:e,dataType:i,data:n,success:r},C.isPlainObject(t)&&t))}})),C.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),C._evalUrl=function(t,e,n){return C.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){C.globalEval(t,e,n)}})},C.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=C(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){var t=this;while(t.firstElementChild)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){C(this).wrapInner(t.call(this,e))})):this.each((function(){var e=C(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){C(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(t){return!C.expr.pseudos.visible(t)},C.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var en={0:200,1223:204},nn=C.ajaxSettings.xhr();m.cors=!!nn&&"withCredentials"in nn,m.ajax=nn=!!nn,C.ajaxTransport((function(t){var e,r;if(m.cors||nn&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!==typeof s.status?o(0,"error"):o(s.status,s.statusText):o(en[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){e&&r()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(e)throw u}},abort:function(){e&&e()}}})),C.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return C.globalEval(t),t}}}),C.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),C.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=C("