vue-kityminder-ggg
Version:
百度脑图
554 lines • 871 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.kityminder=e():t.kityminder=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e=window.webpackJsonpkityminder;window.webpackJsonpkityminder=function(n,i,o){for(var a,s,c=0,u=[];c<n.length;c++)s=n[c],r[s]&&u.push(r[s][0]),r[s]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a]);for(e&&e(n,i,o);u.length;)u.shift()()};var n={},r={3:0};function i(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.e=function(t){var e=r[t];if(0===e)return new Promise(function(t){t()});if(e)return e[2];var n=new Promise(function(n,i){e=r[t]=[n,i]});e[2]=n;var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,i.nc&&a.setAttribute("nonce",i.nc),a.src=i.p+""+t+".kityminder.min.js";var s=setTimeout(c,12e4);function c(){a.onerror=a.onload=null,clearTimeout(s);var e=r[t];0!==e&&(e&&e[1](new Error("Loading chunk "+t+" failed.")),r[t]=void 0)}return a.onerror=a.onload=c,o.appendChild(a),n},i.m=t,i.c=n,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i.oe=function(t){throw console.error(t),t},i(i.s=67)}([function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(31)("wks"),i=n(20),o=n(3).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e,n){t.exports=n.p+"static/img/icons.39ef978.png"},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(12),i=n(47),o=n(25),a=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(3),i=n(0),o=n(11),a=n(7),s=n(10),c=function(t,e,n){var u,l,h,f=t&c.F,d=t&c.G,p=t&c.S,g=t&c.P,m=t&c.B,v=t&c.W,b=d?i:i[e]||(i[e]={}),y=b.prototype,w=d?r:p?r[e]:(r[e]||{}).prototype;for(u in d&&(n=e),n)(l=!f&&w&&void 0!==w[u])&&s(b,u)||(h=l?w[u]:n[u],b[u]=d&&"function"!=typeof w[u]?n[u]:m&&l?o(h,r):v&&w[u]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((b.virtual||(b.virtual={}))[u]=h,t&c.R&&y&&!y[u]&&a(y,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(4),i=n(15);t.exports=n(5)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(46);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(8);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(26),i=n(28);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(28);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(49),i=n(32);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){t.exports={}},function(t,e,n){var r=n(29),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){t.exports={default:n(74),__esModule:!0}},function(t,e,n){var r=n(4).f,i=n(10),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(11),i=n(61),o=n(62),a=n(12),s=n(18),c=n(63),u={},l={};(e=t.exports=function(t,e,n,h,f){var d,p,g,m,v=f?function(){return t}:c(t),b=r(n,h,e?2:1),y=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(d=s(t.length);d>y;y++)if((m=e?b(a(p=t[y])[0],p[1]):b(t[y]))===u||m===l)return m}else for(g=v.call(t);!(p=g.next()).done;)if((m=i(g,b,p.value,e))===u||m===l)return m}).BREAK=u,e.RETURN=l},function(t,e,n){var r=n(8);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(27);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(31)("keys"),i=n(20);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(0),i=n(3),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(19)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i=n(81),o={},a=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},h=null,f="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(m(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function m(t){var e,n,r=document.querySelector("style["+f+'~="'+t.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(d){var i=c++;r=s||(s=g()),e=y.bind(null,r,i,!1),n=y.bind(null,r,i,!0)}else r=g(),e=function(t,e){var n=e.css,r=e.media,i=e.sourceMap;r&&t.setAttribute("media",r);h.ssrId&&t.setAttribute(f,e.id);i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}t.exports=function(t,e,n,r){u=n,h=r||{};var a=i(t,e);return p(a),function(e){for(var n=[],r=0;r<a.length;r++){var s=a[r];(c=o[s.id]).refs--,n.push(c)}e?p(a=i(t,e)):a=[];for(r=0;r<n.length;r++){var c;if(0===(c=n[r]).refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}};var v,b=(v=[],function(t,e){return v[t]=e,v.filter(Boolean).join("\n")});function y(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}},function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(87);function o(){}return r.exports=function(t){if(this.flaged=-1!=window.location.search.indexOf(t)){var e=function(t){for(var e=0,n=0;n<t.length;n++)e+=t.charCodeAt(n);return e}(t)%360;i("background: hsl({0}, 50%, 80%); color: hsl({0}, 100%, 30%); padding: 2px 3px; margin: 1px 3px 0 0;border-radius: 2px;",e),this.log=function(){i.apply(null,arguments)}}else this.log=o}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";e.__esModule=!0;var r=a(n(88)),i=a(n(97)),o="function"==typeof i.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof i.default&&"symbol"===o(r.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":o(t)}},function(t,e,n){"use strict";var r=n(90)(!0);n(39)(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})})},function(t,e,n){"use strict";var r=n(19),i=n(6),o=n(51),a=n(7),s=n(17),c=n(91),u=n(23),l=n(94),h=n(1)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,p,g,m,v){c(n,e,p);var b,y,w,x=function(t){if(!f&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",A="values"==g,S=!1,k=t.prototype,N=k[h]||k["@@iterator"]||g&&k[g],C=N||x(g),L=g?A?x("entries"):C:void 0,P="Array"==e&&k.entries||N;if(P&&(w=l(P.call(new t)))!==Object.prototype&&w.next&&(u(w,_,!0),r||"function"==typeof w[h]||a(w,h,d)),A&&N&&"values"!==N.name&&(S=!0,C=function(){return N.call(this)}),r&&!v||!f&&!S&&k[h]||a(k,h,C),s[e]=C,s[_]=d,g)if(b={values:A?C:x("values"),keys:m?C:x("keys"),entries:L},v)for(y in b)y in k||o(k,y,b[y]);else i(i.P+i.F*(f||S),e,b);return b}},function(t,e,n){var r=n(12),i=n(92),o=n(32),a=n(30)("IE_PROTO"),s=function(){},c=function(){var t,e=n(48)("iframe"),r=o.length;for(e.style.display="none",n(93).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){e.f=n(1)},function(t,e,n){var r=n(20)("meta"),i=n(8),o=n(10),a=n(4).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(9)(function(){return c(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!c(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return u&&h.NEED&&c(t)&&!o(t,r)&&l(t),t}}},function(t,e,n){var r=n(3),i=n(0),o=n(19),a=n(41),s=n(4).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r;void 0===(r=function(t,e,r){return window.HotBox=n(111),r.exports=window.HotBox}.call(e,n,e,t))||(t.exports=r)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports=!n(5)&&!n(9)(function(){return 7!=Object.defineProperty(n(48)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(8),i=n(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(10),i=n(13),o=n(72)(!1),a=n(30)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~o(u,n)||u.push(n));return u}},function(t,e,n){"use strict";var r=n(22),i=n.n(r),o=n(83),a=n(126),s=(n.n(a),n(132)),c=(n.n(s),n(134)),u=(n(156),n(157)),l=n(158),h=n(84);console.log("Editor",h),o.a.use(l.a);var f=new l.a({locale:"zh-CN",messages:{"zh-CN":n(159),"en-US":n(160)}});console.log("i18ni18n",f),e.a={i18n:f,name:"mind-editor",props:{importData:{type:Object,default:function(){return{}}},AccessKey:{type:String,default:""},SecretKey:{type:String,default:""},Domain:{type:String,default:""},scope:{type:String,default:""},isImageUpload:{type:Boolean,default:!0},template:{type:String,default:"right"},theme:{type:String,default:"fresh-blue"},saveShow:{type:Boolean,default:!0},id:{type:String,default:Object(c.a)(12)},Language:{type:String,default:"zh-CN"},themeList:{type:Object,default:function(){return{classic:this.$t("m.脑图经典"),"classic-compact":this.$t("m.紧凑经典"),"snow-compact":this.$t("m.紧凑冷光"),"fresh-red-compat":this.$t("m.紧凑红"),"fresh-blue-compat":this.$t("m.紧凑蓝")}}}},components:{},data:function(){return{minder:null,navIndex:0,flag:!0,lock:!1,rootData:{root:{children:[],data:{text:"默认节点",id:Object(c.a)(12)}},template:"structure",theme:"fresh-blue-compat"}}},mounted:function(){},created:function(){this.$i18n.locale=this.Language,console.log("templateList",this.templateList),this.templateList={default:this.$t("m.思维导图"),structure:this.$t("m.组织结构图"),filetree:this.$t("m.目录组织图"),right:this.$t("m.逻辑结构图"),"fish-bone":this.$t("m.鱼骨头图")},this.themeList={classic:this.$t("m.脑图经典"),"classic-compact":this.$t("m.紧凑经典"),"snow-compact":this.$t("m.紧凑冷光"),"fresh-red-compat":this.$t("m.紧凑红"),"fresh-blue-compat":this.$t("m.紧凑蓝")}},methods:{savebtn:function(){var t=this;this.minder.exportData("png").then(function(e){var n=t.minder.exportJson();console.log("this.minder",n,e),t.$emit("saveData",n,e)})},exportHandle:function(t){var e=this;console.log("导出");var n=this;0===t?n.minder.exportData("png").then(function(t){console.log("contentcontent",t);var e=document.createElement("a");e.setAttribute("href",t);var r=n.rootData.root.data.text||"无标题";e.setAttribute("download",r),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)}):1===t&&this.minder.exportData("png").then(function(t){var n=new u.a;n.addImage(t,"PNG",0,0,0,0),n.save((e.rootData.root.data.text||"无标题")+".pdf")})},getThemeList:function(){},renddata:function(){var t=this;t.$nextTick(function(){var e=document.getElementById(t.id);setTimeout(function(){null==t.minder&&(t.minder=window.editor=new h(e).minder),t.$set(t.rootData,"root",t.rootData.root),t.minder.importJson(t.rootData),t.$emit("minderHandle",t.minder),t.minder.on("contentchange",function(e){var n=t.minder.exportJson();console.log("exportData",n),t.$emit("exportData",n)}),t.minder.on("selectionchange",function(e){console.log("selectionchangee",e),t.minder=e.minder;var n=e.minder.getSelectedNode();console.log("node",n),t.currentNode=n,n&&n.parent&&setTimeout(function(){console.log("进入"),n.parent.layout()},0),t.lock,t.lock=!0}),t.minder.on("beforeExecCommand",function(t){console.log("33333"),/arrange/i.test(t.commandName)||/append/i.test(t.commandName)||/remove/i.test(t.commandName)}),t.minder.on("AfterExecCommand",function(t){console.log("4444"),/append/i.test(t.commandName)||/remove/i.test(t.commandName)})},300)})},removerEditor:function(){var t=document.getElementById(this.id);t.parentElement.removeChild(t)}},watch:{importData:{handler:function(t,e){""!=this.importData&&null!=this.importData&&(this.rootData.root=this.importData),null!=this.theme&&""!=this.theme&&(this.rootData.theme=this.theme),null!=this.template&&""!=this.template&&(this.rootData.template=this.template),0==i()(this.rootData.root).length&&(this.rootData.root={data:{text:"默认节点",id:Object(c.a)(12)},children:[]}),this.renddata()},deep:!0,immediate:!0},rootData:function(){console.log("rootData",this.rootData)}}}},function(t,e,n){t.exports=n(7)},function(t,e,n){n(95);for(var r=n(3),i=n(7),o=n(17),a=n(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=r[u],h=l&&l.prototype;h&&!h[a]&&i(h,a,u),o[u]=o.Array}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(27);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(49),i=n(32).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e){},function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(112),o=4096,a=8192,s=16384;function c(t){return"string"==typeof t?(e=0,t.toLowerCase().split(/\s*\+\s*/).forEach(function(t){switch(t){case"ctrl":case"cmd":e|=o;break;case"alt":e|=a;break;case"shift":e|=s;break;default:e|=i[t]}}),e):function(t){var e=0;(t.ctrlKey||t.metaKey)&&(e|=o);t.altKey&&(e|=a);t.shiftKey&&(e|=s);-1==[16,17,18,91].indexOf(t.keyCode)&&(e|=t.keyCode);return e}(t);var e}e.hash=c,e.is=function(t,e){return t&&e&&c(t)==c(e)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){t.exports={default:n(122),__esModule:!0}},function(t,e,n){var r=n(7);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(12);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(17),i=n(1)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(64),i=n(1)("iterator"),o=n(17);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(27),i=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(8);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,u=[],l=!1,h=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):h=-1,u.length&&d())}function d(){if(!l){var t=s(f);l=!0;for(var e=u.length;e;){for(c=u,u=[];++h<e;)c&&c[h].run();h=-1,e=u.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),1!==u.length||l||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(68),i=n.n(r),o=n(22),a=n.n(o),s=n(77),c=(n.n(s),n(78)),u=(n.n(c),n(79)),l=n(162),h=(n.n(l),{Minder:u.a}),f=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];a()(h).forEach(function(e){t.component(e,h[e])})};"undefined"!=typeof window&&window.Vue&&f(window.Vue),e.default=i()(h,{install:f})},function(t,e,n){t.exports={default:n(69),__esModule:!0}},function(t,e,n){n(70),t.exports=n(0).Object.assign},function(t,e,n){var r=n(6);r(r.S+r.F,"Object",{assign:n(71)})},function(t,e,n){"use strict";var r=n(5),i=n(16),o=n(33),a=n(21),s=n(14),c=n(26),u=Object.assign;t.exports=!u||n(9)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,l=1,h=o.f,f=a.f;u>l;)for(var d,p=c(arguments[l++]),g=h?i(p).concat(h(p)):i(p),m=g.length,v=0;m>v;)d=g[v++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:u},function(t,e,n){var r=n(13),i=n(18),o=n(73);t.exports=function(t){return function(e,n,a){var s,c=r(e),u=i(c.length),l=o(a,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(29),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){n(75),t.exports=n(0).Object.keys},function(t,e,n){var r=n(14),i=n(16);n(76)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(6),i=n(0),o=n(9);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(module,exports){
/*!
* ====================================================
* kity - v2.0.4 - 2016-08-22
* https://github.com/fex-team/kity
* GitHub: https://github.com/fex-team/kity.git
* Copyright (c) 2016 Baidu FEX; Licensed BSD
* ====================================================
*/
!function(){var _p={r:function(t){if(_p[t].inited)return _p[t].value;if("function"!=typeof _p[t].value)return _p[t].inited=!0,_p[t].value;var e={exports:{}},n=_p[t].value(null,e.exports,e);if(_p[t].inited=!0,_p[t].value=n,void 0!==n)return n;for(var r in e.exports)if(e.exports.hasOwnProperty(r))return _p[t].inited=!0,_p[t].value=e.exports,e.exports}};_p[0]={value:function(t){function e(t){var e=parseFloat(t,10);return/ms/.test(t)?e:/s/.test(t)?1e3*e:/min/.test(t)?60*e*1e3:e}var n=_p.r(8),r=_p.r(1),i=_p.r(11).createClass("Animator",{constructor:function(t,e,n){if(1==arguments.length){var r=arguments[0];this.beginValue=r.beginValue,this.finishValue=r.finishValue,this.setter=r.setter}else this.beginValue=t,this.finishValue=e,this.setter=n},start:function(t,n,r,i,o){2===arguments.length&&"object"==typeof n&&(r=n.easing,i=n.delay,o=n.callback,n=n.duration),4===arguments.length&&"function"==typeof i&&(o=i,i=0);var a=this.create(t,n,r,o);return(i=e(i))>0?setTimeout(function(){a.play()},i):a.play(),a},create:function(t,o,a,s){var c;return o=o&&e(o)||i.DEFAULT_DURATION,"string"==typeof(a=a||i.DEFAULT_EASING)&&(a=r[a]),c=new n(this,t,o,a),"function"==typeof s&&c.on("finish",s),c},reverse:function(){return new i(this.finishValue,this.beginValue,this.setter)}});i.DEFAULT_DURATION=300,i.DEFAULT_EASING="linear";var o=_p.r(61);return _p.r(11).extendClass(o,{animate:function(t,e,n,r,i){var o=this._KityAnimateQueue=this._KityAnimateQueue||[],a=t.create(this,e,n,i);return a.on("finish",function(){o.shift(),o.length&&setTimeout(o[0].t.play.bind(o[0].t),o[0].d)}),o.push({t:a,d:r}),1==o.length&&setTimeout(a.play.bind(a),r),this},timeline:function(){return this._KityAnimateQueue[0].t},stop:function(){var t=this._KityAnimateQueue;if(t)for(;t.length;)t.shift().t.stop();return this}}),i}},_p[1]={value:function(t,e,n){var r={linear:function(t,e,n,r){return n*(t/r)+e},swing:function(t,e,n,i){return r.easeOutQuad(t,e,n,i)},ease:function(t,e,n,i){return r.easeInOutCubic(t,e,n,i)},easeInQuad:function(t,e,n,r){return n*(t/=r)*t+e},easeOutQuad:function(t,e,n,r){return-n*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,n,r){return n*(t/=r)*t*t+e},easeOutCubic:function(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,n,r){return n*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,n,r){return-n*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,n,r){return n*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,n,r){return n*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,n,r){return-n*Math.cos(t/r*(Math.PI/2))+n+e},easeOutSine:function(t,e,n,r){return n*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,n,r){return-n/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,n,r){return 0===t?e:n*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,n,r){return t==r?e+n:n*(1-Math.pow(2,-10*t/r))+e},easeInOutExpo:function(t,e,n,r){return 0===t?e:t==r?e+n:(t/=r/2)<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,n,r){return-n*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,n,r){return n*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,n,r){return(t/=r/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,n,r){var i=1.70158,o=0,a=n;return 0===t?e:1==(t/=r)?e+n:(o||(o=.3*r),a<Math.abs(n)?(a=n,i=o/4):i=o/(2*Math.PI)*Math.asin(n/a),-a*Math.pow(2,10*(t-=1))*Math.sin((t*r-i)*(2*Math.PI)/o)+e)},easeOutElastic:function(t,e,n,r){var i=1.70158,o=0,a=n;return 0===t?e:1==(t/=r)?e+n:(o||(o=.3*r),a<Math.abs(n)?(a=n,i=o/4):i=o/(2*Math.PI)*Math.asin(n/a),a*Math.pow(2,-10*t)*Math.sin((t*r-i)*(2*Math.PI)/o)+n+e)},easeInOutElastic:function(t,e,n,r){var i=1.70158,o=0,a=n;if(0===t)return e;if(2==(t/=r/2))return e+n;if(o||(o=r*(.3*1.5)),a<Math.abs(n)){a=n;i=o/4}else i=o/(2*Math.PI)*Math.asin(n/a);return t<1?a*Math.pow(2,10*(t-=1))*Math.sin((t*r-i)*(2*Math.PI)/o)*-.5+e:a*Math.pow(2,-10*(t-=1))*Math.sin((t*r-i)*(2*Math.PI)/o)*.5+n+e},easeInBack:function(t,e,n,r,i){return void 0==i&&(i=1.70158),n*(t/=r)*t*((i+1)*t-i)+e},easeOutBack:function(t,e,n,r,i){return void 0==i&&(i=1.70158),n*((t=t/r-1)*t*((i+1)*t+i)+1)+e},easeInOutBack:function(t,e,n,r,i){return void 0==i&&(i=1.70158),(t/=r/2)<1?n/2*(t*t*((1+(i*=1.525))*t-i))+e:n/2*((t-=2)*t*((1+(i*=1.525))*t+i)+2)+e},easeInBounce:function(t,e,n,i){return n-r.easeOutBounce(i-t,0,n,i)+e},easeOutBounce:function(t,e,n,r){return(t/=r)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},easeInOutBounce:function(t,e,n,i){return t<i/2?.5*r.easeInBounce(2*t,0,n,i)+e:.5*r.easeOutBounce(2*t-i,0,n,i)+.5*n+e}};return r}},_p[2]={value:function(t,e){var n,r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,1e3/60)},i=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.clearTimeout,o=[];function a(t){1===o.push(t)&&(n=r(s))}function s(){var t=o;for(o=[];t.length;)c(t.pop());n=0}function c(t){var e=+new Date,n=e-t.time;n>200&&(n=1e3/60),t.dur=n,t.elapsed+=n,t.time=e,t.action.call(null,t),t.index++}e.requestFrame=function(t){var e=function(t){var e={index:0,time:+new Date,elapsed:0,action:t,next:function(){a(e)}};return e}(t);return a(e),e},e.releaseFrame=function(t){var e=o.indexOf(t);~e&&o.splice(e,1),0===o.length&&i(n)}}},_p[3]={value:function(t){var e=_p.r(0),n=_p.r(35),r=_p.r(47),i=_p.r(61),o=_p.r(11).createClass("MotionAnimator",{base:e,constructor:function(t,e){var i=this;this.callBase({beginValue:0,finishValue:1,setter:function(t,e){var o=i.motionPath instanceof r?i.motionPath.getPathData():i.motionPath,a=n.pointAtPath(o,e);t.setTranslate(a.x,a.y),this.doRotate&&t.setRotate(a.tan.getAngle())}}),this.doRotate=e,this.motionPath=t}});return _p.r(11).extendClass(i,{motion:function(t,e,n,r,i){return this.animate(new o(t),e,n,r,i)}}),o}},_p[4]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("OpacityAnimator",{base:e,constructor:function(t){this.callBase({beginValue:function(t){return t.getOpacity()},finishValue:t,setter:function(t,e){t.setOpacity(e)}})}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxOpacity:function(t,e,r,i,o){return this.animate(new n(t),e,r,i,o)},fadeTo:function(){return this.fxOpacity.apply(this,arguments)},fadeIn:function(){return this.fxOpacity.apply(this,[1].concat([].slice.call(arguments)))},fadeOut:function(){return this.fxOpacity.apply(this,[0].concat([].slice.call(arguments)))}}),n}},_p[5]={value:function(t){var e=_p.r(0),n=_p.r(35),r=_p.r(11).createClass("OpacityAnimator",{base:e,constructor:function(t){this.callBase({beginValue:function(t){return this.beginPath=t.getPathData(),0},finishValue:1,setter:function(e,r){e.setPathData(n.pathTween(this.beginPath,t,r))}})}}),i=_p.r(47);return _p.r(11).extendClass(i,{fxPath:function(t,e,n,i,o){return this.animate(new r(t),e,n,i,o)}}),r}},_p[6]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("RotateAnimator",{base:e,constructor:function(t){this.callBase({beginValue:0,finishValue:t,setter:function(t,e,n){var r=n.getDelta();t.rotate(r)}})}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxRotate:function(t,e,r,i,o){return this.animate(new n(t),e,r,i,o)}}),n}},_p[7]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("ScaleAnimator",{base:e,constructor:function(t,e){this.callBase({beginValue:0,finishValue:1,setter:function(n,r,i){var o=i.getDelta(),a=Math.pow(t,o),s=Math.pow(e,o);n.scale(s,a)}})}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxScale:function(t,e,r,i,o,a){return this.animate(new n(t,e),r,i,o,a)}}),n}},_p[8]={value:function(t){var e=_p.r(34),n=_p.r(12),r=_p.r(2);function i(t,e,n){for(var r in this.timeline=t,this.target=t.target,this.type=e,n)n.hasOwnProperty(r)&&(this[r]=n[r])}var o=_p.r(11).createClass("Timeline",{mixins:[e],constructor:function(t,e,n,r){this.callMixin(),this.target=e,this.time=0,this.duration=n,this.easing=r,this.animator=t,this.beginValue=t.beginValue,this.finishValue=t.finishValue,this.setter=t.setter,this.status="ready"},nextFrame:function(t){"playing"==this.status&&(this.time+=t.dur,this.setValue(this.getValue()),this.time>=this.duration&&this.timeUp(),t.next())},getPlayTime:function(){return this.rollbacking?this.duration-this.time:this.time},getTimeProportion:function(){return this.getPlayTime()/this.duration},getValueProportion:function(){return this.easing(this.getPlayTime(),0,1,this.duration)},getValue:function(){return function(t,e,r){return n.paralle(t,e,function(t,e){return t+(e-t)*r})}(this.beginValue,this.finishValue,this.getValueProportion())},setValue:function(t){this.lastValue=this.currentValue,this.currentValue=t,this.setter.call(this.target,this.target,t,this)},getDelta:function(){return this.lastValue=void 0===this.lastValue?this.beginValue:this.lastValue,t=this.lastValue,e=this.currentValue,n.paralle(t,e,function(t,e){return e-t});var t,e},play:function(){var t=this.status;switch(this.status="playing",t){case"ready":n.isFunction(this.beginValue)&&(this.beginValue=this.beginValue.call(this.target,this.target)),n.isFunction(this.finishValue)&&(this.finishValue=this.finishValue.call(this.target,this.target)),this.time=0,this.setValue(this.beginValue),this.frame=r.requestFrame(this.nextFrame.bind(this));break;case"finished":case"stoped":this.time=0,this.frame=r.requestFrame(this.nextFrame.bind(this));break;case"paused":this.frame.next()}return this.fire("play",new i(this,"play",{lastStatus:t})),this},pause:function(){return this.status="paused",this.fire("pause",new i(this,"pause")),r.releaseFrame(this.frame),this},stop:function(){return this.status="stoped",this.setValue(this.finishValue),this.rollbacking=!1,this.fire("stop",new i(this,"stop")),r.releaseFrame(this.frame),this},timeUp:function(){this.repeatOption?(this.time=0,this.rollback?this.rollbacking?(this.decreaseRepeat(),this.rollbacking=!1):(this.rollbacking=!0,this.fire("rollback",new i(this,"rollback"))):this.decreaseRepeat(),this.repeatOption?this.fire("repeat",new i(this,"repeat")):this.finish()):this.finish()},finish:function(){this.setValue(this.finishValue),this.status="finished",this.fire("finish",new i(this,"finish")),r.releaseFrame(this.frame)},decreaseRepeat:function(){!0!==this.repeatOption&&this.repeatOption--},repeat:function(t,e){return this.repeatOption=t,this.rollback=e,this}});return o.requestFrame=r.requestFrame,o.releaseFrame=r.releaseFrame,o}},_p[9]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("TranslateAnimator",{base:e,constructor:function(t,e){this.callBase({x:0,y:0},{x:t,y:e},function(t,e,n){var r=n.getDelta();t.translate(r.x,r.y)})}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxTranslate:function(t,e,r,i,o,a){return this.animate(new n(t,e),r,i,o,a)}}),n}},_p[10]={value:function(){return function(){var t,e=navigator.userAgent.toLowerCase(),n=window.opera;(t={platform:function(t){return{win32:"Win",macintel:"Mac"}[t.platform.toLowerCase()]||"Lux"}(navigator),lb:function(t){return!!~t.indexOf("lbbrowser")&&(~t.indexOf("msie")?"ie":"chrome")}(e),sg:/se[\s\S]+metasr/.test(e),bd:!!~e.indexOf("bidubrowser"),edge:!!~e.indexOf("edge"),chrome:!1,opera:!!n&&n.version,webkit:e.indexOf(" applewebkit/")>-1,mac:e.indexOf("macintosh")>-1}).ie=!t.lb&&/(msie\s|trident.*rv:)([\w.]+)/.test(e),t.gecko="Gecko"==navigator.product&&!t.webkit&&!t.opera&&!t.ie;var r=0;if(t.ie&&(r=1*(e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2]||0),t.ie11Compat=11==document.documentMode,t.ie9Compat=9==document.documentMode),t.gecko){var i=e.match(/rv:([\d\.]+)/);i&&(r=1e4*(i=i[1].split("."))[0]+100*(i[1]||0)+1*(i[2]||0))}return!/chrome\/(\d+\.\d)/i.test(e)||t.bd||t.opera||t.lb||t.sg||t.edge||(t.chrome=+RegExp.$1),/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(e)&&!/chrome/i.test(e)&&(t.safari=+(RegExp.$1||RegExp.$2)),t.opera&&(r=parseFloat(n.version())),t.webkit&&(r=parseFloat(e.match(/ applewebkit\/(\d+)/)[1])),t.bd&&(r=parseFloat(e.match(/bidubrowser\/(\d+)/)[1])),t.opera&&(r=parseFloat(e.match(/opr\/(\d+)/)[1])),t.edge&&(r=parseFloat(e.match(/edge\/(\d+)/)[1])),t.version=r,t.isCompatible=!t.mobile&&(t.ie&&r>=6||t.gecko&&r>=10801||t.opera&&r>=9.5||t.air&&r>=1||t.webkit&&r>=522||!1),t}()}},_p[11]={value:function(require,exports){function Class(){}function checkBaseConstructorCall(t,e){var n=t.toString();if(!/this\.callBase/.test(n))throw new Error(e+" : 类构造函数没有调用父类的构造函数!为了安全,请调用父类的构造函数")}exports.Class=Class,Class.__KityClassName="Class",Class.prototype.base=function(t){return this.base.caller.__KityMethodClass.__KityBaseClass.prototype[t].apply(this,Array.prototype.slice.call(arguments,1))},Class.prototype.callBase=function(){var t=this.callBase.caller;return t.__KityMethodClass.__KityBaseClass.prototype[t.__KityMethodName].apply(this,arguments)},Class.prototype.mixin=function(t){var e=this.mixin.caller.__KityMethodClass.__KityMixins;return e?e[t].apply(this,Array.prototype.slice.call(arguments,1)):this},Class.prototype.callMixin=function(){var t=this.callMixin.caller,e=t.__KityMethodName,n=t.__KityMethodClass.__KityMixins;if(!n)return this;var r=n[e];if("constructor"==e){for(var i=0,o=r.length;i<o;i++)r[i].call(this);return this}return r.apply(this,arguments)},Class.prototype.pipe=function(t){return"function"==typeof t&&t.call(this,this),this},Class.prototype.getType=function(){return this.__KityClassName},Class.prototype.getClass=function(){return this.constructor};var KITY_INHERIT_FLAG="__KITY_INHERIT_FLAG_"+ +new Date;function inherit(constructor,BaseClass,classname){var KityClass=eval("(function "+classname+"( __inherit__flag ) {if( __inherit__flag != KITY_INHERIT_FLAG ) {KityClass.__KityConstructor.apply(this, arguments);}this.__KityClassName = KityClass.__KityClassName;})");for(var methodName in KityClass.__KityConstructor=constructor,KityClass.prototype=new BaseClass(KITY_INHERIT_FLAG),BaseClass.prototype)BaseClass.prototype.hasOwnProperty(methodName)&&0!==methodName.indexOf("__Kity")&&(KityClass.prototype[methodName]=BaseClass.prototype[methodName]);return KityClass.prototype.constructor=KityClass,KityClass}function mixin(t,e){if(!1==e instanceof Array)return t;var n,r,i,o=e.length;for(t.__KityMixins={constructor:[]},n=0;n<o;n++)for(i in r=e[n].prototype)!1!==r.hasOwnProperty(i)&&0!==i.indexOf("__Kity")&&("constructor"===i?t.__KityMixins.constructor.push(r[i]):t.prototype[i]=t.__KityMixins[i]=r[i]);return t}function extend(t,e){for(var n in e.__KityClassName&&(e=e.prototype),e)if(e.hasOwnProperty(n)&&n.indexOf("__Kity")&&"constructor"!=n){var r=t.prototype[n]=e[n];r.__KityMethodClass=t,r.__KityMethodName=n}return t}exports.createClass=function(t,e){var n,r,i;return 1===arguments.length&&(e=arguments[0],t="AnonymousClass"),i=e.base||Class,e.hasOwnProperty("constructor")?(n=e.constructor,i!=Class&&checkBaseConstructorCall(n,t)):n=function(){this.callBase.apply(this,arguments),this.callMixin.apply(this,arguments)},(r=mixin(r=inherit(n,i,t),e.mixins)).__KityClassName=n.__KityClassName=t,r.__KityBaseClass=n.__KityBaseClass=i,r.__KityMethodName=n.__KityMethodName="constructor",r.__KityMethodClass=n.__KityMethodClass=r,delete e.mixins,delete e.constructor,delete e.base,r=extend(r,e)},exports.extendClass=extend}},_p[12]={value:function(){var t={each:function(t,e,n){if(null!==t)if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(!1===e.call(n,t[r],r,t))return!1}else for(var o in t)if(t.hasOwnProperty(o)&&!1===e.call(n,t[o],o,t))return!1},extend:function(t){for(var e=arguments,n=!!this.isBoolean(e[e.length-1])&&e[e.length-1],r=this.isBoolean(e[e.length-1])?e.length-1:e.length,i=1;i<r;i++){var o=e[i];for(var a in o)n&&t.hasOwnProperty(a)||(t[a]=o[a])}return t},deepExtend:function(t,e){for(var n=arguments,r=!!this.isBoolean(n[n.length-1])&&n[n.length-1],i=this.isBoolean(n[n.length-1])?n.length-1:n.length,o=1;o<i;o++){var a=n[o];for(var s in a)r&&t.hasOwnProperty(s)||(this.isObject(t[s])&&this.isObject(a[s])?this.deepExtend(t[s],a[s],r):t[s]=a[s])}return t},clone:function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},copy:function(t){return"object"!=typeof t?t:"function"==typeof t?null:JSON.parse(JSON.stringify(t))},queryPath:function(t,e){for(var n=t.split("."),r=0,i=e,o=n.length;r<o;){if(!(n[r]in i))return;if(i=i[n[r]],++r>=o||void 0===i)return i}},getValue:function(t,e){return void 0!==t?t:e},flatten:function(e){var n,r=[],i=e.length;for(n=0;n<i;n++)e[n]instanceof Array?r=r.concat(t.flatten(e[n])):r.push(e[n]);return r},paralle:function(e,n,r){var i,o,a,s;if(e instanceof Array){for(s=[],o=0;o<e.length;o++)s.push(t.paralle(e[o],n[o],r));return s}if(e instanceof Object){if((i=e.getClass&&e.getClass())&&i.parse)e=e.valueOf(),n=n.valueOf(),s=t.paralle(e,n,r),s=i.parse(s);else for(a in s={},e)e.hasOwnProperty(a)&&n.hasOwnProperty(a)&&(s[a]=t.paralle(e[a],n[a],r));return s}return!1===isNaN(parseFloat(e))?r(e,n):s},parallelize:function(e){return function(n,r){return t.paralle(n,r,e)}}};return t.each(["String","Function","Array","Number","RegExp","Object","Boolean"],function(e){t["is"+e]=function(t){return Object.prototype.toString.apply(t)=="[object "+e+"]"}}),t}},_p[13]={value:function(t,e,n){n.exports=window.kity=_p.r(77)}},_p[14]={value:function(t,e,n){var r=_p.r(17),i=_p.r(12),o=_p.r(11).createClass("ColorMatrixEffect",{base:r,constructor:function(t,e){this.callBase(r.NAME_COLOR_MATRIX),this.set("type",i.getValue(t,o.TYPE_MATRIX)),this.set("in",i.getValue(e,r.INPUT_SOURCE_GRAPHIC))}});return i.extend(o,{TYPE_MATRIX:"matrix",TYPE_SATURATE:"saturate",TYPE_HUE_ROTATE:"hueRotate",TYPE_LUMINANCE_TO_ALPHA:"luminanceToAlpha",MATRIX_ORIGINAL:"10000010000010000010".split("").join(" "),MATRIX_EMPTY:"00000000000000000000".split("").join(" ")}),o}},_p[15]={value:function(t,e,n){var r=_p.r(17),i=_p.r(12),o=_p.r(11).createClass("CompositeEffect",{base:r,constructor:function(t,e,n){this.callBase(r.NAME_COMPOSITE),this.set("operator",i.getValue(t,o.OPERATOR_OVER)),e&&this.set("in",e),n&&this.set("in2",n)}});return i.extend(o,{OPERATOR_OVER:"over",OPERATOR_IN:"in",OPERATOR_OUT:"out",OPERATOR_ATOP:"atop",OPERATOR_XOR:"xor",OPERATOR_ARITHMETIC:"arithmetic"}),o}},_p[16]={value:function(t,e,n){var r=_p.r(17),i=_p.r(12),o=_p.r(11).createClass("ConvolveMatrixEffect",{base:r,constructor:function(t,e){this.callBase(r.NAME_CONVOLVE_MATRIX),this.set("edgeMode",i.getValue(t,o.MODE_DUPLICATE)),this.set("in",i.getValue(e,r.INPUT_SOURCE_GRAPHIC))}});return i.extend(o,{MODE_DUPLICATE:"duplicate",MODE_WRAP:"wrap",MODE_NONE:"none"}),o}},_p[17]={value:function(t,e,n){var r=_p.r(68),i=_p.r(11).createClass("Effect",{constructor:function(t){this.node=r.createNode(t)},getId:function(){return this.node.id},setId:function(t){return this.node.id=t,this},set:function(t,e){return this.node.setAttribute(t,e),this},get:function(t){return this.node.getAttribute(t)},getNode:function(){return this.node},toString:function(){return this.node.getAttribute("result")||""}});return _p.r(12).extend(i,{NAME_GAUSSIAN_BLUR:"feGaussianBlur",NAME_OFFSET:"feOffset",NAME_COMPOSITE:"feComposite",NAME_COLOR_MATRIX:"feColorMatrix",NAME_CONVOLVE_MATRIX:"feConvolveMatrix",INPUT_SOURCE_GRAPHIC:"SourceGraphic",INPUT_SOURCE_ALPHA:"SourceAlpha",INPUT_BACKGROUND_IMAGE:"BackgroundImage",INPUT_BACKGROUND_ALPHA:"BackgroundAlpha",INPUT_FILL_PAINT:"FillPaint",INPUT_STROKE_PAINT:"StrokePaint"}),i}},_p[18]={value:function(t,e,n){var r=_p.r(17),i=_p.r(12);return _p.r(11).createClass("GaussianblurEffect",{base:r,constructor:function(t,e){this.callBase(r.NAME_GAUSSIAN_BLUR),this.set("stdDeviation",i.getValue(t,1)),this.set("in",i.getValue(e,r.INPUT_SOURCE_GRAPHIC))}})}},_p[19]={value:function(t,e,n){var r=_p.r(17),i=_p.r(12);return _p.r(11).createClass("OffsetEffect",{base:r,constructor:function(t,e,n){this.callBase(r.NAME_OFFSET),this.set("dx",i.getValue(t,0)),this.set("dy",i.getValue(e,0)),this.set("in",i.getValue(n,r.INPUT_SOURCE_GRAPHIC))}})}},_p[20]={value:function(t){return _p.r(11).createClass("EffectContainer",{base:_p.r(30),addEffect:function(t,e){return this.addItem.apply(this,arguments)},prependEffect:function(){return this.prependItem.apply(this,arguments)},appendEffect:function(){return this.appendItem.apply(this,arguments)},removeEffect:function(t){return this.removeItem.apply(this,arguments)},addEffects:function(){return this.addItems.apply(this,arguments)},setEffects:function(){return this.setItems.apply(this,arguments)},getEffect:function(){return this.getItem.apply(this,arguments)},getEffects:function(){return this.getItems.apply(this,arguments)},getFirstEffect:function(){return this.getFirstItem.apply(this,arguments)},getLastEffect:function(){return this.getLastItem.apply(this,arguments)},handleAdd:function(t,e){var n=this.getEffects().length,r=this.getItem(e+1);n!==e+1?this.node.insertBefore(t.getNode(),r.getNode()):this.node.appendChild(t.getNode())}})}},_p[21]={value:function(t,e,n){var r=_p.r(68),i=_p.r(11),o=i.createClass("Filter",{mixins:[_p.r(20)],constructor:function(t,e,n,i){this.node=r.createNode("filter"),void 0!==t&&this.set("x",t),void 0!==e&&this.set("y",e),void 0!==n&&this.set("width",n),void 0!==i&&this.set("height",i)},getId:function(){return this.id},setId:function(t){return this.node.id=t,this},set:function(t,e){return this.node.setAttribute(t,e),this},get:function(t){return this.node.getAttribute(t)},getNode:function(){return this.node}}),a=_p.r(61);return i.extendClass(a,{applyFilter:function(t){var e=t.get("id");return e&&this.node.setAttribute("filter","url(#"+e+")"),this}}),o}},_p[22]={value:function(t,e,n){var r=_p.r(18);return _p.r(11).createClass("GaussianblurFilter",{base:_p.r(21),constructor:function(t){this.callBase(),this.addEffect(new r(t))}})}},_p[23]={value:function(t,e,n){var r=_p.r(18),i=_p.r(17),o=_p.r(14),a=_p.r(29),s=_p.r(12),c=_p.r(15),u=_p.r(19);return _p.r(11).createClass("ProjectionFilter",{base:_p.r(21),constructor:function(t,e,n){this.callBase(),this.gaussianblurEffect=new r(t,i.INPUT_SOURCE_ALPHA),this.gaussianblurEffect.set("result","gaussianblur"),this.addEffect(this.gaussianblurEffect),this.offsetEffect=new u(e,n,this.gaussianblurEffect),this.offsetEffect.set("result","offsetBlur"),this.addEffect(this.offsetEffect),this.colorMatrixEffect=new o(o.TYPE_MATRIX,this.offsetEffect),this.colorMatrixEffect.set("values",o.MATRIX_ORIGINAL),this.colorMatrixEffect.set("result","colorOffsetBlur"),this.addEffect(this.colorMatrixEffect),this.compositeEffect=new c(c.OPERATOR_OVER,i.INPUT_SOURCE_GRAPHIC,this.colorMatrixEffect),this.addEffect(this.compositeEffect)},setColor:function(t){var e=null,n=[];if(s.isString(t)&&(t=a.parse(t)),!t)return this;e=o.MATRIX_EMPTY.split(" "),n.push(t.get("r")),n.push(t.get("g")),n.push(t.get("b"));for(var r=0,i=n.length;r<i;r++)e[5*r+3]=n[r]/255;return e[18]=t.get("a"),this.colorMatrixEffect.set("values",e.join(" ")),this},setOpacity:function(t){var e=this.colorMatrixEffect.get("values").split(" ");return e[18]=t,this.colorMatrixEffect.set("values",e.join(" ")),this},setOffset:function(t,e){this.setOffsetX(t),this.setOffsetY(e)},setOffsetX:function(t){this.offsetEffect.set("dx",t)},setOffsetY:function(t){this.offsetEffect.set("dy",t)},setDeviation:function(t){this.gaussianblurEffect.set("stdDeviation",t)}})}},_p[24]={value:function(t,e,n){return _p.r(11).createClass("Bezier",{mixins:[_p.r(52)],base:_p.r(47),constructor:function(t){this.callBase(),t=t||[],this.changeable=!0,this.setBezierPoints(t)},getBezierPoints:function(){return this.getPoints()},setBezierPoints:function(t){return this.setPoints(t)},onContainerChanged:function(){this.changeable&&this.update()},update:function(){var t=null,e=this.getBezierPoints();if(!(e.length<2)){(t=this.getDrawer()).clear();var n=e[0].getVertex(),r=null,i=null;t.moveTo(n.x,n.y);for(var o=1,a=e.length;o<a;o++)n=e[o].getVertex(),i=e[o].getBackward(),r=e[o-1].getForward(),t.bezierTo(r.x,r.y,i.x,i.y,n.x,n.y);return this}}})}},_p[25]={value:function(t,e,n){var r=_p.r(64),i=_p.r(74),o=_p.r(11).createClass("BezierPoint",{constructor:function(t,e,n){this.vertex=new r(t,e),this.forward=new r(t,e),this.backward=new r(t,e),this.setSmooth(void 0===n||n),this.setSymReflaction(!0)},clone:function(){var t=new o,e=null;return e=this.getVertex(),t.setVertex(e.x,e.y),e=this.getForward(),t.setForward(e.x,e.y),e=this.getBackward(),t.setBackward(e.x,e.y),t.setSymReflaction(this.isSymReflaction),t.setSmooth(this.isSmooth()),t},setVertex:function(t,e){return this.vertex.setPoint(t,e),this.update(),this},moveTo:function(t,e){var n=this.forward.getPoint(),r=this.backward.getPoint(),i=this.vertex.getPoint(),o=t-i.x,a=e-i.y;this.forward.setPoint(n.x+o,n.y+a),this.backward.setPoint(r.x+o,r.y+a),this.vertex.setPoint(t,e),this.update()},setForward:function(t,e){return this.forward.setPoint(t,e),this.smooth&&this.updateAnother(this.forward,this.backward),this.update(),this.lastControlPointSet=this.forward,this},setBackward:function(t,e){return this.backward.setPoint(t,e),this.smooth&&this.updateAnother(this.backward,this.forward),this.update(),this.lastControlPointSet=this.backward,this},setSymReflaction:function(t){return this.symReflaction=t,this.smooth&&this.setSmooth(!0),this},isSymReflaction:function(){return this.symReflaction},updateAnother:function(t,e){var n=this.getVertex(),r=i.fromPoints(t.getPoint(),n),o=i.fromPoints(n,e.getPoint());return o=r.normalize(this.isSymReflaction()?r.length():o.length()),e.setPoint(n.x+o.x,n.y+o.y),this},setSmooth:function(t){var e;return this.smooth=!!t,this.smooth&&(e=this.lastControlPointSet)&&this.updateAnother(e,e==this.forward?this.backward:this.forward),this},isSmooth:function(){return this.smooth},getVertex:function(){return this.vertex.getPoint()},getForward:function(){return this.forward.getPoint()},getBackward:function(){return this.backward.getPoint()},update:function(){if(!this.container)return this;this.container.update&&this.container.update(this)}});return o}},_p[26]={value:function(t,e,n){var r=_p.r(11).createClass("Box",{constructor:function(t,e,n,r){var i=arguments[0];i&&"object"==typeof i&&(t=i.x,e=i.y,n=i.width,r=i.height),n<0&&(t-=n=-n),r<0&&(e-=r=-r),this.x=t||0,this.y=e||0,this.width=n||0,this.height=r||0,this.left=this.x,this.right=this.x+this.width,this.top=this.y,this.bottom=this.y+this.height,this.cx=this.x+this.width/2,this.cy=this.y+this.height/2},getRangeX:function(){return[this.left,this.right]},getRangeY:function(){return[this.top,this.bottom]},merge:function(t){if(this.isEmpty())return new r(t.x,t.y,t.width,t.height);var e=Math.min(this.left,t.left),n=Math.max(this.right,t.right),i=Math.min(this.top,t.top),o=Math.max(this.bottom,t.bottom);return new r(e,i,n-e,o-i)},intersect:function(t){!t instanceof r&&(t=new r(t));var e=Math.max(this.left,t.left),n=Math.min(this.right,t.right),i=Math.max(this.top,t.top),o=Math.min(this.bottom,t.bottom);return e>n||i>o?new r:new r(e,i,n-e,o-i)},expand:function(t,e,n,i){if(arguments.length<1)return new r(this);arguments.length<2&&(e=t),arguments.length<3&&(n=t),arguments.length<4&&(i=e);var o=this.left-i,a=this.top-t,s=this.width+e+i,c=this.height+t+n;return new r(o,a,s,c)},valueOf:function(){return[this.x,this.y,this.width,this.height]},toString:function(){return this.valueOf().join(" ")},isEmpty:function(){return!this.width||!this.height}});return r.parse=function(t){return"string"==typeof t?r.parse(t.split(/[\s,]+/).map(parseFloat)):t instanceof Array?new r(t[0],t[1],t[2],t[3]):"x"in t?new r(t):null},r}},_p[27]={value:function(t,e,n){return _p.r(11).createClass("Circle",{base:_p.r(33),constructor:function(t,e,n){this.callBase(t,t,e,n)},getRadius:function(){return this.getRadiusX()},setRadius:function(t){return this.callBase(t,t)}})}},_p[28]={value:function(t,e,n){var r=_p.r(11),i=_p.r(61),o=r.createClass("Clip",{base:i,mixins:[_p.r(62)],constructor:function(t){this.callBase("clipPath",t)},clip:function(t){return t.getNode().setAttribute("clip-path",this),this}});return r.extendClass(i,{clipWith:function(t){return t instanceof i&&(t=new o(t.getPaper()).addShape(t)),t.clip(this),this}}),o}},_p[29]={value:function(t,e,n){var r=_p.r(12),i=_p.r(65),o={},a=_p.r(11).createClass("Color",{constructor:function(){var t=null;"string"==typeof arguments[0]?null===(t=o.parseToValue(arguments[0]))&&(t={r:0,g:0,b:0,h:0,s:0,l:0,a:1}):(t={r:0|arguments[0],g:0|arguments[1],b:0|arguments[2],a:void 0===arguments[3]?1:parseFloat(arguments[3])},t=o.overflowFormat(t),t=r.extend(t,o.rgbValueToHslValue(t))),this._color=t},set:function(t,e){if(!a._MAX_VALUE[t])throw new Error("Color set(): Illegal parameter");return"a"!==t&&(e=Math.floor(e)),"h"==t&&(e=(e+360)%360),this._color[t]=Math.max(a._MIN_VALUE[t],Math.min(a._MAX_VALUE[t],e)),-1!=="rgb".indexOf(t)?this._color=r.extend(this._color,o.rgbValueToHslValue(this._color)):-1!=="hsl".indexOf(t)&&(this._color=r.extend(this._color,o.hslValueToRGBValue(this._color))),this},inc:function(t,e){return e=this.get(t)+e,"h"==t?e=(e+360)%360:(e=Math.min(a._MAX_VALUE[t],e),e=Math.max(a._MIN_VALUE[t],e)),this.clone().set(t,e)},dec:function(t,e){return this.inc(t,-e)},clone:function(){return new a(this.toRGBA())},get:function(t){return a._MAX_VALUE[t]?this._color[t]:null},getValues:function(){return r.clone(this._color)},valueOf:function(){return this.getValues()},toRGB:function(){return o.toString(this._color,"rgb")},toRGBA:function(){return o.toString(this._color,"rgba")},toHEX:function(){return o.toString(this._color,"hex")},toHSL:function(){return o.toString(this._color,"hsl")},toHSLA:function(){return o.toString(this._color,"hsla")},toString:function(){return 1===this._color.a?this.toRGB():this.toRGBA()}});return r.extend(a,{_MAX_VALUE:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},_MIN_VALUE:{r:0,g:0,b:0,h:0,s:0,l:0,a:0},R:"r",G:"g",B:"b",H:"h",S:"s",L:"l",A:"a",parse:function(t){var e;return r.isString(t)&&(e=o.parseToValue(t)),r.isObject(t)&&"r"in t&&(e=t),null===e?new a:new a(e.r,e.g,e.b,e.a)},createHSL:function(t,e,n){return a.createHSLA(t,e,n,1)},createHSLA:function(t,e,n,r){var i=null;return i=["hsla("+t,e+="%",n+="%",r+")"],a.parse(i.join(", "))},createRGB:function(t,e,n){return a.createRGBA(t,e,n,1)},createRGBA:function(t,e,n,r){return new a(t,e,n,r)}}),r.extend(o,{parseToValue:function(t){var e={};if(t=i.EXTEND_STANDARD[t]||i.COLOR_STANDARD[t]||t,/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t))e=o.hexToValue(t);else if(/^(rgba?)/i.test(t))e=o.rgbaToValue(t);else{if(!/^(hsla?)/i.test(t))return null;e=o.hslaToValue(t)}return o.overflowFormat(e)},hexToValue:function(t){var e={};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t)?(t=RegExp.$1.split(""),r.each(["r","g","b"],function(n,r){3===t.length?e[n]=o.toNumber(t[r]+t[r]):e[n]=o.toNumber(t[2*r]+t[2*r+1])}),(e=r.extend(e,o.rgbValueToHslValue(e))).a=1,e):null},rgbaToValue:function(t){var e={},n=!1;return/^(rgba?)/i.test(t)?(n=4===RegExp.$1.length,t=t.replace(/^rgba?/i,"").replace(/\s+/g,"").replace(/[^0-9,.]/g,"").split(","),r.each(["r","g","b"],function(n,r){e[n]=0|t[r]}),(e=r.extend(e,o.rgbValueToHslValue(e))).a=n?parseFloat(t[3]):1,e):null},hslaToValue:function(t){var e={},n=!1;return/^(hsla?)/i.test(t)?(n=4===RegExp.$1.length,t=t.replace(/^hsla?/i,"").replace(/\s+/g,"").replace(/[^0-9,.]/g,"").split(","),e.h=0|t[0],e.s=0|t[1],e.l=0|t[2],e=r.extend(e,o.hslValueToRGBValue(e)),(e=o.hslValueToRGBValue(e)).a=n?parseFloat(t[3]):1,e):null},hslValueToRGBValue:function(t){function e(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+6*(e-t)*n:2*n<1?e:3*n<2?t+6*(2/3-n)*(e-t):t}var n=null,i=null,o={};return(t=r.extend({},t)).h=t.h/360,t.s=t.s/100,t.l=t.l/100,0===t.s?o.r=o.g=o.b=t.l:(n=t.l<.5?t.l*(1+t.s):t.l+t.s-t.l*t.s,i=2*t.l-n,o.r=e(i,n,t.h+1/3),o.g=e(i,n,t.h),o.b=e(i,n,t.h-1/3)),o.r=Math.min(Math.round(255*o.r),255),o.g=Math.min(Math.round(255*o.g),255),o.b=Math.min(Math.round(255*o.b),255),o},rgbValueToHslValue:function(t){var e,n,i={};return(t=r.extend({},t)).r=t.r/255,t.g=t.g/255,t.b=t.b/255,(e=Math.max(t.r,t.g,t.b))===(n=Math.min(t.r,t.g,t.b))?i.h=0:e===t.r?t.g>=t.b?i.h=60*(t.g-t.b)/(e-n):i.h=60*(t.g-t.b)/(e-n)+360:e===t.g?i.h=60*(t.b-t.r)/(e-n)+120:e===t.b&&(i.h=60*(t.r-t.g)/(e-n)+240),i.l=(e+n)/2,0===i.l||e===n?i.s=0:i.l>0&&i.l<=.5?i.s=(e-n)/(e+n):i.s=(e-n)/(2-e-n),i.h=Math.round(i.h),i.s=Math.round(100*i.s),i.l=Math.round(100*i.l),i},toString:function(t,e){var n=[];return t=r.extend({},t),-1!==e.indexOf("hsl")&&(t.s+="%",t.l+="%"),"hex"!==e?(r.each(e.split(""),function(e){n.push(t[e])}),(e+"("+n.join(", ")+")").toLowerCase()):(n.push(o.toHexValue(+t.r)),n.push(o.toHexValue(+t.g)),n.push(o.toHexValue(+t.b)),("#"+n.join("")).toLowerCase())},toNumber:function(t){return 0|Number("0x"+t)},toHexValue:function(t){var e=t.toString(16);return 1===e.length?"0"+e:e},overflowFormat:function(t){var e=r.extend({},t);return r.each("rgba".split(""),function(t){e.hasOwnProperty(t)&&(e[t]=Math.min(a._MAX_VALUE[t],e[t]),e[t]=Math.max(a._MIN_VALUE[t],e[t]))}),e}}),a}},_p[30]={value:function(t,e,n){function r(){return this.container.removeItem(this),this}return _p.r(11).createClass("Container",{getItems:function(){return this.items||(this.items=[])},getItem:function(t){return this.getItems()[t]},getFirstItem:function(){return this.getItem(0)},getLastItem:function(){return this.getItem(this.getItems().length-1)},indexOf:function(t){return this.getItems().indexOf(t)},eachItem:function(t){var e,n=this.getItems(),r=n.length;for(e=0;e<r;e++)t.call(this,e,n[e]);return this},addItem:function(t,e,n){var i=this.getItems(),o=i.length;return~i.indexOf(t)?this:(e>=0&&e<o||(e=o),i.splice(e,0,t),"object"==typeof t&&(t.container=this,t.remove=r),this.handleAdd(t,e),n||this.onContainerChanged("add",[t]),this)},addItems:function(t){for(var e=0,n=t.length;e<n;e++)this.addItem(t[e],-1,!0);return this.onContainerChanged("add",t),this},setItems:function(t){return this.clear().addItems(t)},appendItem:function(t){return this.addItem(t)},prependItem:function(t){return this.addItem(t,0)},removeItem:function(t,e){if("number"!=typeof t)return this.removeItem(this.indexOf(t));var n=this.getItems(),r=(n.length,n[t]);return void 0===r?this:(n.splice(t,1),r.container&&delete r.container,r.remove&&delete r.remove,this.handleRemove(r,t),e||this.onContainerChanged("remove",[r]),this)},clear:function(){for(var t,e=[];t=this.getFirstItem();)e.push(t),this.removeItem(0,!0);return this.onContainerChanged("remove",e),this},onContainerChanged:function(t,e){},handleAdd:function(t,e){},handleRemove:function(t,e){}})}},_p[31]={value:function(t,e,n){var r=_p.r(12),i={getCurvePanLines:function(t,e){var n=i.getCenterPoints(t),r=i.getPanLine(t.length,n);return i.getMovedPanLines(t,r,e)},getCenterPoints:function(t){for(var e={},n=0,r=0,i=t.length;n<i;n++)e[n+","+(r=n===i-1?0:n+1)]={x:(t[n].x+t[r].y)/2,y:(t[n].x+t[r].y)/2};return e},getPanLine:function(t,e){for(var n,r={},i=null,o=0;o<t;o++){var a,s;i=n=(o+1)%t,a=e[o+","+n],s=e[(o=n)+","+(n=(o+1)%t)],r[i]={points:[{x:a.x,y:a.y},{x:s.x,y:s.y}],center:{x:(a.x+s.x)/2,y:(a.y+s.y)/2}},o=(i+t-1)%t}return r},getMovedPanLines:function(t,e,n){var i={};return r.each(t,function(t,o){var a=e[o],s=a.center,c=s.x-t.x,u=s.y-t.y,l=i[o]={points:[],center:{x:t.x,y:t.y}};r.each(a.points,function(t,e){var r={x:t.x-c,y:t.y-u},i=l.center,o=r.x-i.x,a=r.y-i.y;r.x=i.x+n*o,r.y=i.y+n*a,l.points.push(r)})}),i}};return _p.r(11).createClass("Curve",{base:_p.r(47),mixins:[_p.r(52)],constructor:function(t,e){this.callBase(),this.setPoints(t||[]),this.closeState=!!e,this.changeable=!0,this.smoothFactor=1,this.update()},onContainerChanged:function(){this.changeable&&this.update()},setSmoothFactor:function(t){return this.smoothFactor=t<0?0:t,this.update(),this},getSmoothFactor:function(){return this.smoothFactor},update:function(){var t,e=this.getPoints(),n=this.getDrawer(),r=null,o=null,a=null;if(n.clear(),0===e.length)return this;if(n.moveTo(e[0]),1===e.length)return this;if(2===e.length)return n.lineTo(e[1]),this;t=i.getCurvePanLines(e,this.getSmoothFactor());for(var s=1,c=e.length;s<c;s++)r=t[s].center,o=this.closeState||s!=c-1?t[s].points[0]:t[s].center,a=this.closeState||1!=s?t[s-1].points[1]:t[s-1].center,n.bezierTo(a.x,a.y,o.x,o.y,r.x,r.y);return this.closeState&&(r=t[0].center,o=t[0].points[0],a=t[e.length-1].points[1],n.bezierTo(a.x,a.y,o.x,o.y,r.x,r.y)),this},close:function(){return this.closeState=!0,this.update()},open:function(){return this.closeState=!1,this.update()},isClose:function(){return!!this.closeState}})}},_p[32]={value:function(t,e,n){return _p.r(11).createClass("Data",{constructor:function(){this._data={}},setData:function(t,e){return this._data[t]=e,this},getData:function(t){return this._data[t]},removeData:function(t){return delete this._data[t],this}})}},_p[33]={value:function(t,e,n){_p.r(12);var r=_p.r(51);return _p.r(11).createClass("Ellipse",{base:_p.r(47),constructor:function(t,e,n,r){this.callBase(),this.rx=t||0,this.ry=e||0,this.cx=n||0,this.cy=r||0,this.update()},update:function(){var t=this.rx,e=this.ry,n=this.cx+t,r=this.cx-t,i=this.cy,o=this.getDrawer();return o.clear(),o.moveTo(n,i),o.arcTo(t,e,0,1,1,r,i),o.arcTo(t,e,0,1,1,n,i),this},getRadius:function(){return{x:this.rx,y:this.ry}},getRadiusX:function(){return this.rx},getRadiusY:function(){return this.ry},getCenter:function(){return new r(this.cx,this.cy)},getCenterX:function(){return this.cx},getCenterY:function(){return this.cy},setRadius:function(t,e){return this.rx=t,this.ry=e,this.update()},setRadiusX:function(t){return this.rx=t,this.update()},setRadiusY:function(t){return this.ry=t,this.update()},setCenter:function(t,e){if(1==arguments.length){var n=r.parse(arguments[0]);t=n.x,e=n.y}return this.cx=t,this.cy=e,this.update()},setCenterX:function(t){return this.cx=t,this.update()},setCenterY:function(t){return this.cy=t,this.update()}})}},_p[34]={value:function(t,e,n){!function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}();var r=_p.r(12),i=_p.r(63),o={},a={},s=0;function c(t,e,n){return n=!!n,r.isString(t)&&(t=t.match(/\S+/g)),r.each(t,function(t){(function(t,e,n,s){var c=this._EVNET_UID,u=this;o[c]||(o[c]={});o[c][e]||(o[c][e]=function(t){t=new i(t||window.event),r.each(a[c][e],function(n){var r;return n&&(r=n.call(u,t),s&&u.off(e,n)),r},u)});a[c]||(a[c]={});a[c][e]?a[c][e].push(n):(a[c][e]=[n],t&&"on"+e in t&&function(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}(t,e,o[c][e]))}).call(this,this.node,t,e,n)},this),this}return _p.r(11).createClass("EventHandler",{constructor:function(){this._EVNET_UID=++s},addEventListener:function(t,e){return c.call(this,t,e,!1)},addOnceEventListener:function(t,e){return c.call(this,t,e,!0)},removeEventListener:function(t,e){return function(t,e){var n=null,i=this._EVNET_UID,s=void 0===e;return n=a[i][t],s||(s=!0,r.each(n,function(t,r){t===e?delete n[r]:s=!1})),s&&(function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent(e,n)}(this.node,t,o[i][t]),delete a[i][t],delete o[i][t]),this}.call(this,t,e)},on:function(t,e){return this.addEventListener.apply(this,arguments)},once:function(t,e){return this.addOnceEventListener.apply(this,arguments)},off:function(){return this.removeEventListener.apply(this,arguments)},fire:function(t,e){return this.trigger.apply(this,arguments)},trigger:function(t,e){return function(t,e,n){var i,a=null,s=o[t._EVNET_UID];s&&(a=s[e])&&(i=r.extend({type:e,target:t},n||{}),a.call(t,i))}(this,t,e),this}})}},_p[35]={value:function(t){var e=_p.r(12),n=_p.r(51),r=_p.r(74),i=_p.r(44),o={},a=/([achlmrqstvz])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?\s*)+)/gi,s=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/gi,c={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0};function u(t){var e,n,r,i,o;for(e=[],n=0;n<t.length;n++)for(i=t[n],e.push(o=[]),r=0;r<i.length;r++)o.push(i[r]);return t.isUniform&&(e.isUniform=!0),t.isAbsolute&&(e.isAbsolute=!0),t.isCurve&&(e.isCurve=!0),e}function l(t,e,n){return function r(){var i=Array.prototype.slice.call(arguments,0),o=i.join("␀"),a=r.cache=r.cache||{},s=r.count=r.count||[];return a.hasOwnProperty(o)?(function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}(s,o),n?n(a[o]):a[o]):(s.length>=1e3&&delete a[s.shift()],s.push(o),a[o]=t.apply(e,i),n?n(a[o]):a[o])}}function h(t,e,n,r,i,o,a,s,c,u){var l,f,d,p,g,m,v,b,y,w,x,_,A,S,k,N,C,L,P,M,I,T,E,O,D,R,j,F,B,z=Math,q=z.PI,U=Math.abs,V=120*q/180,H=q/180*(+i||0),G=[],W=function(t,e,n){return{x:t*z.cos(n)-e*z.sin(n),y:t*z.sin(n)+e*z.cos(n)}};if(u?(w=u[0],x=u[1],b=u[2],y=u[3]):(t=(l=W(t,e,-H)).x,e=l.y,s=(l=W(s,c,-H)).x,c=l.y,z.cos(q/180*i),z.sin(q/180*i),(f=(d=(t-s)/2)*d/(n*n)+(p=(e-c)/2)*p/(r*r))>1&&(n*=f=z.sqrt(f),r*=f),g=n*n,m=r*r,b=(v=(o==a?-1:1)*z.sqrt(U((g*m-g*p*p-m*d*d)/(g*p*p+m*d*d))))*n*p/r+(t+s)/2,y=v*-r*d/n+(e+c)/2,w=z.asin(((e-y)/r).toFixed(9)),x=z.asin(((c-y)/r).toFixed(9)),w=t<b?q-w:w,x=s<b?q-x:x,w<0&&(w=2*q+w),x<0&&(x=2*q+x),a&&w>x&&(w-=2*q),!a&&x>w&&(x-=2*q)),U(_=x-w)>V&&(A=x,S=s,k=c,x=w+V*(a&&x>w?1:-1),G=h(s=b+n*z.cos(x),c=y+r*z.sin(x),n,r,i,0,a,S,k,[x,A,b,y])),_=x-w,N=z.cos(w),C=z.sin(w),L=z.cos(x),P=z.sin(x),D=[s+(I=4/3*n*(M=z.tan(_/4)))*P,c-(T=4/3*r*M)*L],R=[s,c],(O=[t+I*C,e-T*N])[0]=2*(E=[t,e])[0]-O[0],O[1]=2*E[1]-O[1],u)return[O,D,R].concat(G);for(j=[],F=0,B=(G=[O,D,R].concat(G).join().split(",")).length;F<B;F++)j[F]=F%2?W(G[F-1],G[F],H).y:W(G[F],G[F+1],H).x;return j}function f(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]}function d(t,e){var n=function(t){return function(e,n){return e+t*(n-e)}}(e||.5),r=t,i=r[0],o=r[1],a=r[2],s=r[3],c=r[4],u=r[5],l=r[6],h=r[7],f=n(i,a),d=n(o,s),p=n(a,c),g=n(s,u),m=n(c,l),v=n(u,h),b=n(f,p),y=n(d,g),w=n(p,m),x=n(g,v),_=n(b,w),A=n(y,x);return[[i,o,f,d,b,y,_,A],[_,A,w,x,m,v,l,h]]}o.pathToString=function(t){return"string"==typeof(t=t||this)?t:t instanceof Array?(t=e.flatten(t)).join(",").replace(/,?([achlmqrstvxz]),?/gi,"$1"):void 0},o.parsePathString=l(function(t){var e=[];return t.replace(a,function(t,n,r){var i=[],o=n.toLowerCase();if(r.replace(s,function(t,e){e&&i.push(+e)}),"m"==o&&i.length>2&&(e.push([n].concat(i.splice(0,2))),o="l",n="m"==n?"l":"L"),"r"==o)e.push([n].concat(i));else for(;i.length>=c[o]&&(e.push([n].concat(i.splice(0,c[o]))),c[o]););}),e.isUniform=!0,e.toString=o.pathToString,e}),o.pathToAbsolute=l(function(t){var e,n,r,i,a,s,c,u,l=t.isUniform?t:o.parsePathString(o.pathToString(t)),h=[],f=0,d=0,p=0,g=0,m=0;for("M"==l[0][0]&&(p=f=+l[0][1],g=d=+l[0][2],m++,h[0]=["M",f,d]),r=m,s=l.length;r<s;r++){if(h.push(e=[]),(n=l[r])[0]!=n[0].toUpperCase())switch(e[0]=n[0].toUpperCase(),e[0]){case"A":e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=+(n[6]+f),e[7]=+(n[7]+d);break;case"V":e[1]=+n[1]+d;break;case"H":e[1]=+n[1]+f;break;case"M":p=+n[1]+f,g=+n[2]+d;break;default:for(i=1,c=n.length;i<c;i++)e[i]=+n[i]+(i%2?f:d)}else for(a=0,u=n.length;a<u;a++)e[a]=n[a];switch(e[0]){case"Z":f=p,d=g;break;case"H":f=e[1];break;case"V":d=e[1];break;case"M":p=e[e.length-2],g=e[e.length-1];break;default:f=e[e.length-2],d=e[e.length-1]}}return h.isUniform=!0,h.isAbsolute=!0,h.toString=o.pathToString,h}),o.pathToCurve=l(function(t){var e,n,r,i,a,s,c,u,l,d,p,g,m=[];for(t.isAbsolute||(t=o.pathToAbsolute(t)),e=0;e<t.length;e++)if(r=t[e][0],i=t[e].slice(1),"M"!=r){switch("Z"==r&&(u=!0,r="L",i=a),c=i.slice(i.length-2),"H"==r&&(c=[i[0],s[1]],r="L"),"V"==r&&(c=[s[0],i[0]],r="L"),"S"!=r&&"T"!=r||(d=[s[0]+(s[0]-l[0]),s[1]+(s[1]-l[1])]),r){case"L":p=s,g=c;break;case"C":p=i.slice(0,2),g=i.slice(2,4);break;case"S":p=d.slice(),g=i.slice(0,2);break;case"Q":l=i.slice(0,2),p=(i=f.apply(null,s.concat(i))).slice(0,2),g=i.slice(2,4);break;case"T":p=(i=f.apply(null,s.concat(d).concat(i))).slice(0,2),g=i.slice(2,4);break;case"A":for(i=h.apply(null,s.concat(i)),n=0;n in i;)p=i.slice(n,n+2),g=i.slice(n+2,n+4),c=i.slice(n+4,n+6),m.push(["C"].concat(p).concat(g).concat(c)),n+=6}"A"!=r&&m.push(["C"].concat(p).concat(g).concat(c)),s=c,"Q"!=r&&(l=g),u&&(m.push(["Z"]),u=!1)}else a=l=s=i,m.push(t[e]);return m.isUniform=!0,m.isAbsolute=!0,m.isCurve=!0,m.toString=o.pathToString,m}),o.cutBezier=l(d),o.subBezier=function(t,e,n){var r=d(t,e)[0];return n?d(r,n/e)[1]:r},o.pointAtBezier=function(t,e){var i=d(t,e)[0],a=n.parse(i.slice(6)),s=n.parse(i.slice(4,2)),c=r.fromPoints(s,a);return a.tan=0===e?o.pointAtBezier(t,.01).tan:c.normalize(),a},o.bezierLength=l(function(t){function e(t){var e=c*Math.pow(t,4)+u*Math.pow(t,3)+l*Math.pow(t,2)+h*t+f;return e<0&&(e=0),Math.pow(e,.5)}var n,r,i,o,a,s,c,u,l,h,f,d=t;return n=-3*d[0]+9*d[2]-9*d[4]+3*d[6],r=6*d[0]-12*d[2]+6*d[4],i=-3*d[0]+3*d[2],o=-3*d[1]+9*d[3]-9*d[5]+3*d[7],a=6*d[1]-12*d[3]+6*d[5],s=-3*d[1]+3*d[3],c=Math.pow(n,2)+Math.pow(o,2),u=2*(n*r+o*a),l=2*(n*i+o*s)+Math.pow(r,2)+Math.pow(a,2),h=2*(r*i+a*s),f=Math.pow(i,2)+Math.pow(s,2),(e(0)+e(1)+4*(e(.125)+e(.375)+e(.625)+e(.875))+2*(e(.25)+e(.5)+e(.75)))/24});var p=l(function(t){var e,n,r,i,a,s,c;for(s=[],c=0,e=0,n=t.length;e<n;e++)"M"!=(r=t[e])[0]?"Z"!=r[0]?(a=o.bezierLength(i.concat(r.slice(1))),s.push([c,c+a]),c+=a,i=r.slice(4)):s.push(null):(i=r.slice(1),s.push(null));return s.totalLength=c,s});o.subPath=function(t,e,n){var r;if(r=e-(n=n||0),(e=(n-=0|n)+(r-=0|r))>1)return o.subPath(t,1,n).concat(o.subPath(t,e-1));t.isCurve||(t=o.pathToCurve(t));var i,a,s,c,u,l,h,f,d,g=p(t),m=g.totalLength,v=m*e,b=m*(n||0),y=[];for(i=0,a=t.length;i<a;i++)if("M"!=t[i][0]){if("Z"!=t[i][0])if(s=g[i][0],u=(c=g[i][1])-s,h=l.concat(t[i].slice(1)),b>c)l=h.slice(h.length-2);else{if(b>=s)d=!0,l=(f=o.subBezier(h,Math.min((v-s)/u,1),(b-s)/u)).slice(0,2),y.push(["M"].concat(f.slice(0,2))),y.push(["C"].concat(f.slice(2)));else if(v>=c)y.push(t[i].slice());else{if(!(v>=s))break;f=o.subBezier(h,(v-s)/u),y.push(["C"].concat(f.slice(2))),d=!1}l=h.slice(h.length-2)}}else l=t[i].slice(1),d&&y.push(t[i].slice());return y.isAbsolute=!0,y.isCurve=!0,y.isUniform=!0,y.toString=o.pathToString,y},o.pointAtPath=function(t,e){t.isCurve||(t=o.pathToCurve(t));var i=o.subPath(t,e),a="Z"==i[i.length-1][0]?i[i.length-2]:i[i.length-1];a=a.slice(1);var s=n.parse(a.slice(4)),c=n.parse(a.slice(2,4));return s.tan=r.fromPoints(c,s).normalize(),s},o.pathLength=l(function(t){return t.isCurve||(t=o.pathToCurve(t)),p(t).totalLength}),o.pathKeyPoints=l(function(t){var e,n,r;for(t.isCurve||(t=o.pathToCurve(t)),r=[],e=0,n=t.length;e<n;e++)"z"!=t[e][0]&&r.push(t[e].slice(t[e].length-2));return r});var g=l(function(t,e){t.isCurve||(t=o.pathToCurve(t)),e.isCurve||(e=o.pathToCurve(e));var n=u(t),r=u(e);function i(t,e){return t[e||t.i]&&t[e||t.i][0]}function a(t,e){var n=function(t,e){return t[e||t.i]&&t[e||t.i].slice(1)}(t,e);return n&&n.slice(-2)}function s(t){return"Z"==i(t)&&(t.splice(t.i,1),!0)}function c(t){return"M"==i(t)&&(t.o.splice(t.o.i,0,["M"].concat(a(t.o,t.o.i-1))),t.i++,t.o.i++,!0)}function l(t){for(var e,n=1;!e;)e=a(t,t.length-n++);for(t.o.i=t.i;t.length<t.o.length;)s(t.o)||c(t.o)||(t.push(["C"].concat(e).concat(e).concat(e)),t.i++,t.o.i++)}for(n.i=0,r.i=0,n.o=r,r.o=n;n.i<n.length&&r.i<r.length;)s(n)||s(r)||i(n)!=i(r)&&(c(n)||c(r))||(n.i++,r.i++);return n.i==n.length&&l(n),r.i==r.length&&l(r),delete n.i,delete n.o,delete r.i,delete r.o,[n,r]});return o.alignCurve=g,o.pathTween=function(t,e,n){if(0===n)return t;if(1===n)return e;var r,i,o,a=g(t,e),s=[];for(t=a[0],e=a[1],i=0;i<t.length;i++)for(s.push(r=[]),r.push(t[i][0]),o=1;o<t[i].length;o++)r.push(t[i][o]+n*(e[i][o]-t[i][o]));return s.isUniform=s.isCurve=s.isAbsolute=!0,s},o.transformPath=l(function(t,e){var r,i,a,s,c;for(t.isCurve||(t=o.pathToCurve(t)),s=[],r=0,i=t.length;r<i;r++)for(s.push([t[r][0]]),a=1;a<t[r].length;a+=2)c=t[r].slice(a,a+2),c=e.transformPoint(n.parse(c)),s.push(c);return s}),_p.r(11).extendClass(i,{transformPath:function(t){return o.transformPath(t,this)}}),o}},_p[36]={value:function(t,e,n){var r=_p.r(68),i=_p.r(59),o=_p.r(29);return _p.r(11).createClass("GradientBrush",{base:i,constructor:function(t,e){this.callBase(t,e),this.stops=[]},addStop:function(t,e,n){var i=r.createNode("stop");return e instanceof o||(e=o.parse(e)),void 0===n&&(n=e.get("a")),i.setAttribute("offset",t),i.setAttribute("stop-color",e.toRGB()),n<1&&i.setAttribute("stop-opacity",n),this.node.appendChild(i),this}})}},_p[37]={value:function(t,e,n){var r=_p.r(62);return _p.r(11).createClass("Group",{mixins:[r],base:_p.r(61),constructor:function(){this.callBase("g")}})}},_p[38]={value:function(t,e,n){var r=_p.r(62);return _p.r(11).createClass("HyperLink",{mixins:[r],base:_p.r(61),constructor:function(t){this.callBase("a"),this.setHref(t)},setHref:function(t){return this.node.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t),this},getHref:function(){return this.node.getAttributeNS("xlink:href")},setTarget:function(t){return this.node.setAttribute("target",t),this},getTarget:function(){return this.node.getAttribute("target")}})}},_p[39]={value:function(t,e,n){return _p.r(11).createClass("Image",{base:_p.r(61),constructor:function(t,e,n,r,i){this.callBase("image"),this.url=t,this.width=e||0,this.height=n||0,this.x=r||0,this.y=i||0,this.update()},update:function(){return this.node.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",this.url),this.node.setAttribute("x",this.x),this.node.setAttribute("y",this.y),this.node.setAttribute("width",this.width),this.node.setAttribute("height",this.height),this},setUrl:function(t){return this.url=""===t?null:t,this.update()},getUrl:function(){return this.url},setWidth:function(t){return this.width=t,this.update()},getWidth:function(){return this.width},setHeight:function(t){return this.height=t,this.update()},getHeight:function(){return this.height},setX:function(t){return this.x=t,this.update()},getX:function(){return this.x},setY:function(t){return this.y=t,this.update()},getY:function(){return this.y}})}},_p[40]={value:function(t,e,n){return _p.r(11).createClass("Line",{base:_p.r(47),constructor:function(t,e,n,r){this.callBase(),this.point1={x:t||0,y:e||0},this.point2={x:n||0,y:r||0},this.update()},setPoint1:function(t,e){return this.point1.x=t,this.point1.y=e,this.update()},setPoint2:function(t,e){return this.point2.x=t,this.point2.y=e,this.update()},getPoint1:function(){return{x:this.point1.x,y:this.point1.y}},getPoint2:function(){return{x:this.point2.x,y:this.point2.y}},update:function(){var t=this.getDrawer();return t.clear(),t.moveTo(this.point1.x,this.point1.y),t.lineTo(this.point2.x,this.point2.y),this}})}},_p[41]={value:function(t,e,n){_p.r(68);var r=_p.r(36);return _p.r(11).createClass("LinearGradientBrush",{base:r,constructor:function(t){this.callBase("linearGradient",t),this.setStartPosition(0,0),this.setEndPosition(1,0)},setStartPosition:function(t,e){return this.node.setAttribute("x1",t),this.node.setAttribute("y1",e),this},setEndPosition:function(t,e){return this.node.setAttribute("x2",t),this.node.setAttribute("y2",e),this},getStartPosition:function(){return{x:+this.node.getAttribute("x1"),y:+this.node.getAttribute("y1")}},getEndPosition:function(){return{x:+this.node.getAttribute("x2"),y:+this.node.getAttribute("y2")}}})}},_p[42]={value:function(t,e,n){var r=_p.r(51),i=_p.r(11).createClass("Marker",{base:_p.r(59),mixins:[_p.r(62),_p.r(76)],constructor:function(){this.callBase("marker"),this.setOrient("auto")},setRef:function(t,e){return 1===arguments.length&&(e=t.y,t=t.x),this.node.setAttribute("refX",t),this.node.setAttribute("refY",e),this},getRef:function(){return new r(+this.node.getAttribute("refX"),+this.node.getAttribute("refY"))},setWidth:function(t){return this.node.setAttribute("markerWidth",this.width=t),this},setOrient:function(t){return this.node.setAttribute("orient",this.orient=t),this},getOrient:function(){return this.orient},getWidth:function(){return+this.width},setHeight:function(t){return this.node.setAttribute("markerHeight",this.height=t),this},getHeight:function(){return+this.height}}),o=_p.r(47);return _p.r(11).extendClass(o,{setMarker:function(t,e){return e=e||"end",t?this.node.setAttribute("marker-"+e,t.toString()):this.node.removeAttribute("marker-"+e),this}}),i}},_p[43]={value:function(t,e,n){var r=_p.r(11),i=_p.r(61),o=r.createClass("Mask",{base:i,mixins:[_p.r(62)],constructor:function(){this.callBase("mask")},mask:function(t){return t.getNode().setAttribute("mask","url(#"+this.getId()+")"),this}});return r.extendClass(i,{maskWith:function(t){return t.mask(this),this}}),o}},_p[44]={value:function(t,e,n){var r=_p.r(12),i=_p.r(26),o=/matrix\s*\((.+)\)/i,a=_p.r(51);function s(t,e){return{a:e.a*t.a+e.c*t.b,b:e.b*t.a+e.d*t.b,c:e.a*t.c+e.c*t.d,d:e.b*t.c+e.d*t.d,e:e.a*t.e+e.c*t.f+e.e,f:e.b*t.e+e.d*t.f+e.f}}function c(t){return t*Math.PI/180}var u=_p.r(11).createClass("Matrix",{constructor:function(){arguments.length?this.setMatrix.apply(this,arguments):this.setMatrix(1,0,0,1,0,0)},translate:function(t,e){return this.m=s(this.m,{a:1,c:0,e:t,b:0,d:1,f:e}),this},rotate:function(t){var e=c(t),n=Math.sin(e),r=Math.cos(e);return this.m=s(this.m,{a:r,c:-n,e:0,b:n,d:r,f:0}),this},scale:function(t,e){return void 0===e&&(e=t),this.m=s(this.m,{a:t,c:0,e:0,b:0,d:e,f:0}),this},skew:function(t,e){void 0===e&&(e=t);var n=Math.tan(c(t)),r=Math.tan(c(e));return this.m=s(this.m,{a:1,c:n,e:0,b:r,d:1,f:0}),this},inverse:function(){var t,e=this.m,n=e.a,r=e.b,i=e.c,o=e.d,a=e.e,s=e.f;return new u(o/(t=n*o-r*i),-r/t,-i/t,n/t,(i*s-a*o)/t,(r*a-n*s)/t)},setMatrix:function(t,e,n,i,o,a){return 1===arguments.length?this.m=r.clone(arguments[0]):this.m={a:t,b:e,c:n,d:i,e:o,f:a},this},getMatrix:function(){return r.clone(this.m)},getTranslate:function(){var t=this.m;return{x:t.e/t.a,y:t.f/t.d}},mergeMatrix:function(t){return new u(s(this.m,t.m))},merge:function(t){return this.mergeMatrix(t)},toString:function(){return this.valueOf().join(" ")},valueOf:function(){var t=this.m;return[t.a,t.b,t.c,t.d,t.e,t.f]},equals:function(t){var e=this.m,n=t.m;return e.a==n.a&&e.b==n.b&&e.c==n.c&&e.d==n.d&&e.e==n.e&&e.f==n.f},transformPoint:function(){return u.transformPoint.apply(null,[].slice.call(arguments).concat([this.m]))},transformBox:function(t){return u.transformBox(t,this.m)},clone:function(){return new u(this.m)}});return u.parse=function(t){var e,n=parseFloat;if(t instanceof Array)return new u({a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]});if(e=o.exec(t)){var r=e[1].split(",");return 6!=r.length&&(r=e[1].split(" ")),new u({a:n(r[0]),b:n(r[1]),c:n(r[2]),d:n(r[3]),e:n(r[4]),f:n(r[5])})}return new u},u.transformPoint=function(t,e,n){return 2===arguments.length&&(n=e,e=t.y,t=t.x),new a(n.a*t+n.c*e+n.e,n.b*t+n.d*e+n.f)},u.transformBox=function(t,e){for(var n,o,a=Number.MAX_VALUE,s=-Number.MAX_VALUE,c=Number.MAX_VALUE,l=-Number.MAX_VALUE,h=[[t.x,t.y],[t.x+t.width,t.y],[t.x,t.y+t.height],[t.x+t.width,t.y+t.height]],f=[];n=h.pop();)o=u.transformPoint(n[0],n[1],e),f.push(o),a=Math.min(a,o.x),s=Math.max(s,o.x),c=Math.min(c,o.y),l=Math.max(l,o.y);return t=new i({x:a,y:c,width:s-a,height:l-c}),r.extend(t,{closurePoints:f}),t},u.getCTM=function(t,e){var n={a:1,b:0,c:0,d:1,e:0,f:0},r=t.shapeNode||t.node;function i(t,e){var n;try{n=e.getScreenCTM().inverse()}catch(t){throw new Error("Can not inverse source element' ctm.")}return n.multiply(t.getScreenCTM())}switch(e=e||"parent"){case"screen":n=r.getScreenCTM();break;case"doc":case"paper":n=r.getCTM();break;case"view":case"top":t.getPaper()&&(n=void 0!==r.getTransformToElement?r.getTransformToElement(t.getPaper().shapeNode):i(r,t.getPaper().shapeNode));break;case"parent":t.node.parentNode&&(n=void 0!==r.getTransformToElement?r.getTransformToElement(t.node.parentNode):i(r,t.node.parentNode));break;default:e.node&&(n=void 0!==r.getTransformToElement?r.getTransformToElement(e.shapeNode||e.node):i(r,e.shapeNode||e.node))}return n?new u(n.a,n.b,n.c,n.d,n.e,n.f):new u},u}},_p[45]={value:function(t,e,n){var r=_p.r(65),i=_p.r(29),o=_p.r(12),a=_p.r(11).createClass("Palette",{constructor:function(){this.color={}},get:function(t){var e=this.color[t]||r.EXTEND_STANDARD[t]||r.COLOR_STANDARD[t]||"";return e?new i(e):null},getColorValue:function(t){return this.color[t]||r.EXTEND_STANDARD[t]||r.COLOR_STANDARD[t]||""},add:function(t,e){return this.color[t]="string"==typeof e?new i(e).toRGBA():e.toRGBA(),e},remove:function(t){return!!this.color.hasOwnProperty(t)&&(delete this.color[t],!0)}});return o.extend(a,{getColor:function(t){var e=r.EXTEND_STANDARD[t]||r.COLOR_STANDARD[t];return e?new i(e):null},getColorValue:function(t){return r.EXTEND_STANDARD[t]||r.COLOR_STANDARD[t]||""},addColor:function(t,e){return r.EXTEND_STANDARD[t]="string"==typeof e?new i(e).toRGBA():e.toRGBA(),e},removeColor:function(t){return!!r.EXTEND_STANDARD.hasOwnProperty(t)&&(delete r.EXTEND_STANDARD[t],!0)}}),a}},_p[46]={value:function(t,e,n){var r=_p.r(11),i=_p.r(12),o=_p.r(68),a=_p.r(30),s=_p.r(62),c=_p.r(76),u=_p.r(34),l=_p.r(67),h=_p.r(44),f=r.createClass("Paper",{mixins:[s,u,l,c],constructor:function(t){this.callBase(),this.node=this.createSVGNode(),this.node.paper=this,this.node.appendChild(this.resourceNode=o.createNode("defs")),this.node.appendChild(this.shapeNode=o.createNode("g")),this.resources=new a,this.setWidth("100%").setHeight("100%"),t&&this.renderTo(t),this.callMixin()},renderTo:function(t){i.isString(t)&&(t=document.getElementById(t)),this.container=t,t.appendChild(this.node)},createSVGNode:function(){var t=o.createNode("svg");return t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),t.setAttribute("version","1.1"),t},getNode:function(){return this.node},getContainer:function(){return this.container},getWidth:function(){return this.node.clientWidth},setWidth:function(t){return this.node.setAttribute("width",t),this},getHeight:function(){return this.node.clientHeight},setHeight:function(t){return this.node.setAttribute("height",t),this},setViewPort:function(t,e,n){var r,i;1==arguments.length&&(t=(r=arguments[0]).center.x,e=r.center.y,n=r.zoom),n=n||1,i=this.getViewBox();var o=new h,a=i.x+i.width/2-t,s=i.y+i.height/2-e;return o.translate(-t,-e),o.scale(n),o.translate(t,e),o.translate(a,s),this.shapeNode.setAttribute("transform","matrix("+o+")"),this.viewport={center:{x:t,y:e},offset:{x:a,y:s},zoom:n},this},getViewPort:function(){if(!this.viewport){var t=this.getViewBox();return{zoom:1,center:{x:t.x+t.width/2,y:t.y+t.height/2},offset:{x:0,y:0}}}return this.viewport},getViewPortMatrix:function(){return h.parse(this.shapeNode.getAttribute("transform"))},getViewPortTransform:function(){var t=this.shapeNode.getCTM();return new h(t.a,t.b,t.c,t.d,t.e,t.f)},getTransform:function(){return this.getViewPortTransform().reverse()},addResource:function(t){return this.resources.appendItem(t),t.node&&this.resourceNode.appendChild(t.node),this},removeResource:function(t){return t.remove&&t.remove(),t.node&&this.resourceNode.removeChild(t.node),this},getPaper:function(){return this}}),d=_p.r(61);return r.extendClass(d,{getPaper:function(){for(var t=this.container;t&&t instanceof f==!1;)t=t.container;return t},isAttached:function(){return!!this.getPaper()},whenPaperReady:function(t){var e=this;function n(){var n=e.getPaper();return n&&t&&t.call(e,n),n}return n()||this.on("add treeadd",function t(){n()&&(e.off("add",t),e.off("treeadd",t))}),this}}),f}},_p[47]={value:function(t,e,n){var r=_p.r(12),i=_p.r(11).createClass,o=_p.r(61),a=_p.r(68),s=_p.r(35),c=Array.prototype.slice,u=(r.flatten,i("PathDrawer",{constructor:function(t){this.segment=[],this.path=t,this.__clear=!1},getPath:function(){return this.path},redraw:function(){return this._transation=this._transation||[],this.clear()},done:function(){var t=this._transation;return this._transation=null,this.push(t),this},clear:function(){return this._transation?this._transation=[]:this.path.setPathData("M 0 0"),this._clear=!0,this},push:function(){var t,e=c.call(arguments);return this._transation?(this._transation.push(e),this):(this._clear?(t="",this._clear=!1):t=this.path.getPathData(),t=t||"",this.path.setPathData(t+s.pathToString(e)),this)},moveTo:function(t,e){return this.push("M",c.call(arguments))},moveBy:function(t,e){return this.push("m",c.call(arguments))},lineTo:function(t,e){return this.push("L",c.call(arguments))},lineBy:function(t,e){return this.push("l",c.call(arguments))},arcTo:function(t,e,n,r,i,o,a){return this.push("A",c.call(arguments))},arcBy:function(t,e,n,r,i,o,a){return this.push("a",arguments)},carcTo:function(t,e,n,r,i){return this.push("A",[t,t,0].concat(c.call(arguments,1)))},carcBy:function(t,e,n,r,i){return this.push("a",[t,t,0].concat(c.call(arguments,1)))},bezierTo:function(t,e,n,r,i,o){return this.push("C",c.call(arguments))},bezierBy:function(t,e,n,r,i,o){return this.push("c",c.call(arguments))},close:function(){return this.push("z")}}));return i("Path",{base:o,constructor:function(t){this.callBase("path"),t&&this.setPathData(t),this.node.setAttribute("fill",a.defaults.fill),this.node.setAttribute("stroke",a.defaults.stroke)},setPathData:function(t){return t=t||"M0,0",this.pathdata=s.pathToString(t),this.node.setAttribute("d",this.pathdata),this.trigger("shapeupdate",{type:"pathdata"}),this},getPathData:function(){return this.pathdata||""},getDrawer:function(){return new u(this)},isClosed:function(){var t=this.getPathData();return!!~t.indexOf("z")||!!~t.indexOf("Z")}})}},_p[48]={value:function(t,e,n){var r=_p.r(59),i=_p.r(62);_p.r(68);return _p.r(11).createClass("PatternBrush",{base:r,mixins:[i],constructor:function(t){this.callBase("pattern",t),this.node.setAttribute("patternUnits","userSpaceOnUse")},setX:function(t){return this.x=t,this.node.setAttribute("x",t),this},setY:function(t){return this.y=t,this.node.setAttribute("y",t),this},setWidth:function(t){return this.width=t,this.node.setAttribute("width",t),this},setHeight:function(t){return this.height=t,this.node.setAttribute("height",t),this},getWidth:function(){return this.width},getHeight:function(){return this.height}})}},_p[49]={value:function(t,e,n){var r=_p.r(29);return _p.r(11).createClass("Pen",{constructor:function(t,e){this.brush=t,this.width=e||1,this.linecap=null,this.linejoin=null,this.dashArray=null,this.opacity=1},getBrush:function(){return this.brush},setBrush:function(t){return this.brush=t,this},setColor:function(t){return this.setBrush(t)},getColor:function(){return this.brush instanceof r?this.brush:null},getWidth:function(){return this.width},setWidth:function(t){return this.width=t,this},getOpacity:function(){return this.opacity},setOpacity:function(t){this.opacity=t},getLineCap:function(){return this.linecap},setLineCap:function(t){return this.linecap=t,this},getLineJoin:function(){return this.linejoin},setLineJoin:function(t){return this.linejoin=t,this},getDashArray:function(){return this.dashArray},setDashArray:function(t){return this.dashArray=t,this},stroke:function(t){var e=t.node;e.setAttribute("stroke",this.brush.toString()),e.setAttribute("stroke-width",this.getWidth()),this.getOpacity()<1&&e.setAttribute("stroke-opacity",this.getOpacity()),this.getLineCap()&&e.setAttribute("stroke-linecap",this.getLineCap()),this.getLineJoin()&&e.setAttribute("stroke-linejoin",this.getLineJoin()),this.getDashArray()&&e.setAttribute("stroke-dasharray",this.getDashArray())}})}},_p[50]={value:function(t,e,n){return _p.r(11).createClass({base:_p.r(69),constructor:function(t,e,n){this.callBase([0,t],e,n)},getRadius:function(){return this.getSectionArray()[1]},setRadius:function(t){this.setSectionArray([0,t])}})}},_p[51]={value:function(t,e,n){var r=_p.r(11).createClass("Point",{constructor:function(t,e){this.x=t||0,this.y=e||0},offset:function(t,e){return 1==arguments.length&&(e=t.y,t=t.x),new r(this.x+t,this.y+e)},valueOf:function(){return[this.x,this.y]},toString:function(){return this.valueOf().join(" ")},spof:function(){return new r(.5+(0|this.x),.5+(0|this.y))},round:function(){return new r(0|this.x,0|this.y)},isOrigin:function(){return 0===this.x&&0===this.y}});return r.fromPolar=function(t,e,n){return"rad"!=n&&(e=e/180*Math.PI),new r(t*Math.cos(e),t*Math.sin(e))},r.parse=function(t){return t?t instanceof r?t:"string"==typeof t?r.parse(t.split(/\s*[\s,]\s*/)):"0"in t&&"1"in t?new r(t[0],t[1]):void 0:new r},r}},_p[52]={value:function(t,e,n){return _p.r(11).createClass("PointContainer",{base:_p.r(30),constructor:function(){this.callBase()},addPoint:function(t,e){return this.addItem.apply(this,arguments)},prependPoint:function(){return this.prependItem.apply(this,arguments)},appendPoint:function(){return this.appendItem.apply(this,arguments)},removePoint:function(t){return this.removeItem.apply(this,arguments)},addPoints:function(){return this.addItems.apply(this,arguments)},setPoints:function(){return this.setItems.apply(this,arguments)},getPoint:function(){return this.getItem.apply(this,arguments)},getPoints:function(){return this.getItems.apply(this,arguments)},getFirstPoint:function(){return this.getFirstItem.apply(this,arguments)},getLastPoint:function(){return this.getLastItem.apply(this,arguments)}})}},_p[53]={value:function(t,e,n){_p.r(12);return _p.r(11).createClass("Poly",{base:_p.r(47),mixins:[_p.r(52)],constructor:function(t,e){this.callBase(),this.closeable=!!e,this.setPoints(t||[]),this.changeable=!0,this.update()},onContainerChanged:function(){this.changeable&&this.update()},update:function(){var t=this.getDrawer(),e=this.getPoints();if(t.clear(),!e.length)return this;t.moveTo(e[0]);for(var n,r=1,i=e.length;r<i;r++)n=e[r],t.lineTo(n);return this.closeable&&e.length>2&&t.close(),this}})}},_p[54]={value:function(t,e,n){return _p.r(11).createClass("Polygon",{base:_p.r(53),constructor:function(t){this.callBase(t,!0)}})}},_p[55]={value:function(t,e,n){return _p.r(11).createClass("Polyline",{base:_p.r(53),constructor:function(t){this.callBase(t)}})}},_p[56]={value:function(t,e,n){var r=_p.r(36);return _p.r(11).createClass("RadialGradientBrush",{base:r,constructor:function(t){this.callBase("radialGradient",t),this.setCenter(.5,.5),this.setFocal(.5,.5),this.setRadius(.5)},setCenter:function(t,e){return this.node.setAttribute("cx",t),this.node.setAttribute("cy",e),this},getCenter:function(){return{x:+this.node.getAttribute("cx"),y:+this.node.getAttribute("cy")}},setFocal:function(t,e){return this.node.setAttribute("fx",t),this.node.setAttribute("fy",e),this},getFocal:function(){return{x:+this.node.getAttribute("fx"),y:+this.node.getAttribute("fy")}},setRadius:function(t){return this.node.setAttribute("r",t),this},getRadius:function(){return+this.node.getAttribute("r")}})}},_p[57]={value:function(t,e,n){var r={},i=_p.r(12),o=_p.r(51),a=_p.r(26);return i.extend(r,{formatRadius:function(t,e,n){var r=Math.floor(Math.min(t/2,e/2));return Math.min(r,n)}}),_p.r(11).createClass("Rect",{base:_p.r(47),constructor:function(t,e,n,i,o){this.callBase(),this.x=n||0,this.y=i||0,this.width=t||0,this.height=e||0,this.radius=r.formatRadius(this.width,this.height,o||0),this.update()},update:function(){var t=this.x,e=this.y,n=this.width,r=this.height,i=this.radius,o=this.getDrawer().redraw();return i?(n-=2*i,r-=2*i,o.push("M",t+i,e),o.push("h",n),o.push("a",i,i,0,0,1,i,i),o.push("v",r),o.push("a",i,i,0,0,1,-i,i),o.push("h",-n),o.push("a",i,i,0,0,1,-i,-i),o.push("v",-r),o.push("a",i,i,0,0,1,i,-i),o.push("z")):(o.push("M",t,e),o.push("h",n),o.push("v",r),o.push("h",-n),o.push("z")),o.done(),this},setWidth:function(t){return this.width=t,this.update()},setHeight:function(t){return this.height=t,this.update()},setSize:function(t,e){return this.width=t,this.height=e,this.update()},setBox:function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this.update()},getBox:function(){return new a(this.x,this.y,this.width,this.height)},getRadius:function(){return this.radius},setRadius:function(t){return this.radius=r.formatRadius(this.width,this.height,t||0),this.update()},getPosition:function(){return new o(this.x,this.y)},setPosition:function(t,e){if(1==arguments.length){var n=o.parse(arguments[0]);e=n.y,t=n.x}return this.x=t,this.y=e,this.update()},getWidth:function(){return this.width},getHeight:function(){return this.height},getPositionX:function(){return this.x},getPositionY:function(){return this.y},setPositionX:function(t){return this.x=t,this.update()},setPositionY:function(t){return this.y=t,this.update()}})}},_p[58]={value:function(t,e,n){var r=_p.r(51);return _p.r(11).createClass("RegularPolygon",{base:_p.r(47),constructor:function(t,e,n,i){this.callBase(),this.radius=e||0,this.side=Math.max(t||3,3),arguments.length>2&&3==arguments.length&&(i=n.y,n=n.x),this.center=new r(n,i),this.draw()},getSide:function(){return this.side},setSide:function(t){return this.side=t,this.draw()},getRadius:function(){return this.radius},setRadius:function(t){return this.radius=t,this.draw()},draw:function(){var t,e=this.radius,n=this.side,i=2*Math.PI/n,o=this.getDrawer();for(o.clear(),o.moveTo(r.fromPolar(e,Math.PI/2,"rad").offset(this.center)),t=0;t<=n;t++)o.lineTo(r.fromPolar(e,i*t+Math.PI/2,"rad").offset(this.center));return o.close(),this}})}},_p[59]={value:function(t,e,n){var r=_p.r(68);return _p.r(11).createClass("Resource",{constructor:function(t,e){this.callBase(),this.node=r.createNode(t),e&&e.addResource(this)},toString:function(){return"url(#"+this.node.id+")"}})}},_p[60]={value:function(t,e,n){return _p.r(11).createClass({base:_p.r(69),constructor:function(t,e){this.callBase([t,e],360,0)},getInnerRadius:function(){return this.getSectionArray()[0]},getOuterRadius:function(){return this.getSectionArray()[1]},setInnerRadius:function(t){this.setSectionArray([t,this.getOuterRadius()])},setOuterRadius:function(t){this.setSectionArray([this.getInnerRadius(),t])}})}},_p[61]={value:function(t,e,n){var r=_p.r(68),i=_p.r(12),o=_p.r(34),a=_p.r(67),s=_p.r(32),c=_p.r(44),u=(_p.r(49),Array.prototype.slice),l=_p.r(26);return _p.r(11).createClass("Shape",{mixins:[o,a,s],constructor:function(t){this.node=r.createNode(t),this.node.shape=this,this.transform={translate:null,rotate:null,scale:null,matrix:null},this.callMixin()},getId:function(){return this.node.id},setId:function(t){return this.node.id=t,this},getNode:function(){return this.node},getBoundaryBox:function(){var t;try{t=this.node.getBBox()}catch(e){t={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}return new l(t)},getRenderBox:function(t){var e=this.getBoundaryBox();return this.getTransform(t).transformBox(e)},getWidth:function(){return this.getRenderBox().width},getHeight:function(){return this.getRenderBox().height},getSize:function(){var t=this.getRenderBox();return delete t.x,delete t.y,t},setOpacity:function(t){return this.node.setAttribute("opacity",t),this},getOpacity:function(){var t=this.node.getAttribute("opacity");return t?+t:1},setVisible:function(t){return t?this.node.removeAttribute("display"):this.node.setAttribute("display","none"),this},getVisible:function(){this.node.getAttribute("display")},hasAncestor:function(t){for(var e=this.container;e;){if(e===t)return!0;e=e.container}return!1},getTransform:function(t){return c.getCTM(this,t)},clearTransform:function(){return this.node.removeAttribute("transform"),this.transform={translate:null,rotate:null,scale:null,matrix:null},this.trigger("shapeupdate",{type:"transform"}),this},_applyTransform:function(){var t=this.transform,e=[];return t.translate&&e.push(["translate(",t.translate,")"]),t.rotate&&e.push(["rotate(",t.rotate,")"]),t.scale&&e.push(["scale(",t.scale,")"]),t.matrix&&e.push(["matrix(",t.matrix,")"]),this.node.setAttribute("transform",i.flatten(e).join(" ")),this},setMatrix:function(t){return this.transform.matrix=t,this._applyTransform()},setTranslate:function(t){return this.transform.translate=null!==t&&u.call(arguments)||null,this._applyTransform()},setRotate:function(t){return this.transform.rotate=null!==t&&u.call(arguments)||null,this._applyTransform()},setScale:function(t){return this.transform.scale=null!==t&&u.call(arguments)||null,this._applyTransform()},translate:function(t,e){var n=this.transform.matrix||new c;return void 0===e&&(e=0),this.transform.matrix=n.translate(t,e),this._applyTransform()},rotate:function(t){var e=this.transform.matrix||new c;return this.transform.matrix=e.rotate(t),this._applyTransform()},scale:function(t,e){var n=this.transform.matrix||new c;return void 0===e&&(e=t),this.transform.matrix=n.scale(t,e),this._applyTransform()},skew:function(t,e){var n=this.transform.matrix||new c;return void 0===e&&(e=t),this.transform.matrix=n.skew(t,e),this._applyTransform()},stroke:function(t,e){return t&&t.stroke?t.stroke(this):t?(this.node.setAttribute("stroke",t.toString()),e&&this.node.setAttribute("stroke-width",e)):null===t&&this.node.removeAttribute("stroe"),this},fill:function(t){return t&&this.node.setAttribute("fill",t.toString()),null===t&&this.node.removeAttribute("fill"),this},setAttr:function(t,e){var n=this;return i.isObject(t)&&i.each(t,function(t,e){n.setAttr(e,t)}),void 0===e||null===e||""===e?this.node.removeAttribute(t):this.node.setAttribute(t,e),this},getAttr:function(t){return this.node.getAttribute(t)}})}},_p[62]={value:function(t,e,n){var r=_p.r(30),i=_p.r(12),o=_p.r(11).createClass("ShapeContainer",{base:r,isShapeContainer:!0,handleAdd:function(t,e){var n=this.getShapeNode();n.insertBefore(t.node,n.childNodes[e]||null),t.trigger("add",{container:this}),t.notifyTreeModification&&t.notifyTreeModification("treeadd",this)},handleRemove:function(t,e){this.getShapeNode().removeChild(t.node),t.trigger("remove",{container:this}),t.notifyTreeModification&&t.notifyTreeModification("treeremove",this)},notifyTreeModification:function(t,e){this.eachItem(function(n,r){r.notifyTreeModification&&r.notifyTreeModification(t,e),r.trigger(t,{container:e})})},getShape:function(t){return this.getItem(t)},addShape:function(t,e){return this.addItem(t,e)},put:function(t){return this.addShape(t),t},appendShape:function(t){return this.addShape(t)},prependShape:function(t){return this.addShape(t,0)},replaceShape:function(t,e){var n=this.indexOf(e);if(-1!==n)return this.removeShape(n),this.addShape(t,n),this},addShapeBefore:function(t,e){var n=this.indexOf(e);return this.addShape(t,n)},addShapeAfter:function(t,e){var n=this.indexOf(e);return this.addShape(t,-1===n?void 0:n+1)},addShapes:function(t){return this.addItems(t)},removeShape:function(t){return this.removeItem(t)},getShapes:function(){return this.getItems()},getShapesByType:function(t){var e=[];return function n(r){t.toLowerCase()==r.getType().toLowerCase()&&e.push(r),r.isShapeContainer&&i.each(r.getShapes(),function(t){n(t)})}(this),e},getShapeById:function(t){return this.getShapeNode().getElementById(t).shape},arrangeShape:function(t,e){return this.removeShape(t).addShape(t,e)},getShapeNode:function(){return this.shapeNode||this.node}}),a=_p.r(61);return _p.r(11).extendClass(a,{bringTo:function(t){return this.container.arrangeShape(this,t),this},bringFront:function(){return this.bringTo(this.container.indexOf(this)+1)},bringBack:function(){return this.bringTo(this.container.indexOf(this)-1)},bringTop:function(){return this.container.removeShape(this).addShape(this),this},bringRear:function(){return this.bringTo(0)},bringRefer:function(t,e){return t.container&&(this.remove&&this.remove(),t.container.addShape(this,t.container.indexOf(t)+(e||0))),this},bringAbove:function(t){return this.bringRefer(t)},bringBelow:function(t){return this.bringRefer(t,1)},replaceBy:function(t){return this.container&&(t.bringAbove(this),this.remove()),this}}),o}},_p[63]={value:function(t,e,n){var r=_p.r(44),i=_p.r(12),o=_p.r(51);return _p.r(11).createClass("ShapeEvent",{constructor:function(t){var e=null;i.isObject(t.target)?i.extend(this,t):(this.type=t.type,(e=t.target).correspondingUseElement&&(e=e.correspondingUseElement),this.originEvent=t,this.targetShape=e.shape||e.paper||t.currentTarget&&(t.currentTarget.shape||t.currentTarget.paper),t._kityParam&&i.extend(this,t._kityParam))},preventDefault:function(){var t=this.originEvent;return!t||(t.preventDefault?(t.preventDefault(),t.cancelable):(t.returnValue=!1,!0))},getPosition:function(t,e){if(!this.originEvent)return null;var n=this.originEvent.touches?this.originEvent.touches[e||0]:this.originEvent,i=this.targetShape,a=i.shapeNode||i.node,s=new o(n&&n.clientX||0,n&&n.clientY||0),c=r.transformPoint(s,a.getScreenCTM().inverse());return r.getCTM(i,t||"view").transformPoint(c)},stopPropagation:function(){var t=this.originEvent;if(!t)return!0;t.stopPropagation?t.stopPropagation():t.cancelBubble=!1}})}},_p[64]={value:function(t,e,n){return _p.r(11).createClass("ShapePoint",{base:_p.r(51),constructor:function(t,e){this.callBase(t,e)},setX:function(t){return this.setPoint(t,this.y)},setY:function(t){return this.setPoint(this.x,t)},setPoint:function(t,e){return this.x=t,this.y=e,this.update(),this},getPoint:function(){return this},update:function(){return this.container&&this.container.update&&this.container.update(),this}})}},_p[65]={value:{COLOR_STANDARD:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00"},EXTEND_STANDARD:{}}},_p[66]={value:function(t,e,n){var r={3:.2,5:.38196601125,6:.57735026919,8:.541196100146,10:.726542528005,12:.707106781187},i=_p.r(51);return _p.r(11).createClass("Star",{base:_p.r(47),constructor:function(t,e,n,r,o){this.callBase(),this.vertex=t||3,this.radius=e||0,this.shrink=n,this.offset=r||new i(0,0),this.angleOffset=o||0,this.draw()},getVertex:function(){return this.vertex},setVertex:function(t){return this.vertex=t,this.draw()},getRadius:function(){return this.radius},setRadius:function(t){return this.radius=t,this.draw()},getShrink:function(){return this.shrink},setShrink:function(t){return this.shrink=t,this.draw()},getOffset:function(){return this.offset},setOffset:function(t){return this.offset=t,this.draw()},getAngleOffset:function(){return this.angleOffset},setAngleOffset:function(t){return this.angleOffset=t,this.draw()},draw:function(){var t,e,n=this.radius,o=this.radius*(this.shrink||r[this.vertex]||.5),a=this.vertex,s=this.offset,c=180/a,u=this.angleOffset,l=this.getDrawer();for(l.clear(),l.moveTo(i.fromPolar(o,90)),t=1;t<=2*a;t++)e=90+c*t,t%2?l.lineTo(i.fromPolar(n,e+u).offset(s)):l.lineTo(i.fromPolar(o,e));l.close()}})}},_p[67]={value:function(t,e,n){var r=_p.r(11).createClass("ClassList",{constructor:function(t){this._node=t,this._list=t.className.toString().split(" ")},_update:function(){this._node.className=this._list.join(" ")},add:function(t){this._list.push(t),this._update()},remove:function(t){var e=this._list.indexOf(t);~e&&this._list.splice(e,1),this._update()},contains:function(t){return!!~this._list.indexOf(t)}});function i(t){return t.classList||(t.classList=new r(t)),t.classList}return _p.r(11).createClass("Styled",{addClass:function(t){return i(this.node).add(t),this},removeClass:function(t){return i(this.node).remove(t),this},hasClass:function(t){return i(this.node).contains(t)},setStyle:function(t){if(2==arguments.length)return this.node.style[arguments[0]]=arguments[1],this;for(var e in t)t.hasOwnProperty(e)&&(this.node.style[e]=t[e]);return this}})}},_p[68]={value:function(t,e,n){var r=document,i=0,o={createNode:function(t){var e=r.createElementNS(o.ns,t);return e.id="kity_"+t+"_"+i++,e},defaults:{stroke:"none",fill:"none"},xlink:"http://www.w3.org/1999/xlink",ns:"http://www.w3.org/2000/svg"};return o}},_p[69]={value:function(t,e,n){var r=_p.r(51);return _p.r(11).createClass("Sweep",{base:_p.r(47),constructor:function(t,e,n){this.callBase(),this.sectionArray=t||[],this.angle=e||0,this.angleOffset=n||0,this.draw()},getSectionArray:function(){return this.sectionArray},setSectionArray:function(t){return this.sectionArray=t,this.draw()},getAngle:function(){return this.angle},setAngle:function(t){return this.angle=t,this.draw()},getAngleOffset:function(){return this.angleOffset},setAngleOffset:function(t){return this.angleOffset=t,this.draw()},draw:function(){var t,e=this.sectionArray;for(t=0;t<e.length;t+=2)this.drawSection(e[t],e[t+1]);return this},drawSection:function(t,e){var n=this.angle&&(this.angle%360?this.angle%360:360),i=this.angleOffset,o=i+n/2,a=i+n,s=n<0?0:1,c=this.getDrawer();c.redraw(),0!==n?(c.moveTo(r.fromPolar(t,i)),c.lineTo(r.fromPolar(e,i)),e&&(c.carcTo(e,0,s,r.fromPolar(e,o)),c.carcTo(e,0,s,r.fromPolar(e,a))),c.lineTo(r.fromPolar(t,a)),t&&(c.carcTo(t,0,s,r.fromPolar(t,o)),c.carcTo(t,0,s,r.fromPolar(t,i))),c.close(),c.done()):c.done()}})}},_p[70]={value:function(t,e,n){var r=_p.r(71),i=_p.r(62),o=_p.r(68),a=_p.r(12),s={};function c(t){var e=t._cachedFontHash;if(s[e])return s[e];var n=t.getContent();t.setContent("百度Fex");var r=t.getBoundaryBox(),i=t.getY();if(!r.height)return{top:0,bottom:0,middle:0};var o=i-r.y+ +t.node.getAttribute("dy"),a=o-r.height;return t.setContent(n),s[e]={top:o,bottom:a,middle:(o+a)/2}}return _p.r(11).createClass("Text",{base:r,mixins:[i],constructor:function(t){this.callBase("text"),void 0!==t&&this.setContent(t),this._buildFontHash()},fixPosition:function(){this.__fixedPosition||this.setVerticalAlign(this.getVerticalAlign())},_buildFontHash:function(){var t=window.getComputedStyle(this.node);this._cachedFontHash=[t.fontFamily,t.fontSize,t.fontStretch,t.fontStyle,t.fontVariant,t.fontWeight].join("-")},_fontChanged:function(t){var e=this._lastFont,n=a.extend({},e,t);if(!e)return this._lastFont=t,!0;var r=e.family!=n.family||e.size!=n.size||e.style!=n.style||e.weight!=n.weight;return this._lastFont=n,r},setX:function(t){return this.node.setAttribute("x",t),this},setPosition:function(t,e){return this.setX(t).setY(e)},setY:function(t){return this.node.setAttribute("y",t),this},getX:function(){return+this.node.getAttribute("x")||0},getY:function(){return+this.node.getAttribute("y")||0},setFont:function(t){return this.callBase(t),this._fontChanged(t)&&(this._buildFontHash(),this.setVerticalAlign(this.getVerticalAlign())),this},setTextAnchor:function(t){return this.node.setAttribute("text-anchor",t),this},getTextAnchor:function(){return this.node.getAttribute("text-anchor")||"start"},setVerticalAlign:function(t){return this.whenPaperReady(function(){var e;switch(t){case"top":e=c(this).top;break;case"bottom":e=c(this).bottom;break;case"middle":e=c(this).middle;break;default:e=0}e&&(this.__fixedPosition=!0),this.node.setAttribute("dy",e)}),this.verticalAlign=t,this},getVerticalAlign:function(){return this.verticalAlign||"baseline"},setStartOffset:function(t){this.shapeNode!=this.node&&this.shapeNode.setAttribute("startOffset",100*t+"%")},addSpan:function(t){return this.addShape(t),this},setPath:function(t){var e=this.shapeNode;if(this.shapeNode==this.node){for(e=this.shapeNode=o.createNode("textPath");this.node.firstChild;)this.shapeNode.appendChild(this.node.firstChild);this.node.appendChild(e)}return e.setAttributeNS(o.xlink,"xlink:href","#"+t.node.id),this.setTextAnchor(this.getTextAnchor()),this}})}},_p[71]={value:function(t,e,n){var r=_p.r(61);return _p.r(11).createClass("TextContent",{base:r,constructor:function(t){this.callBase(t),this.shapeNode=this.shapeNode||this.node,this.shapeNode.setAttribute("text-rendering","geometricPrecision")},clearContent:function(){for(;this.shapeNode.firstChild;)this.shapeNode.removeChild(this.shapeNode.firstChild);return this},setContent:function(t){return this.shapeNode.textContent=t,this},getContent:function(){return this.shapeNode.textContent},appendContent:function(t){return this.shapeNode.textContent+=t,this},setSize:function(t){return this.setFontSize(t)},setFontSize:function(t){return this.setFont({size:t})},setFontFamily:function(t){return this.setFont({family:t})},setFontBold:function(t){return this.setFont({weight:t?"bold":"normal"})},setFontItalic:function(t){return this.setFont({style:t?"italic":"normal"})},setFont:function(t){var e=this.node;return["family","size","weight","style"].forEach(function(n){null===t[n]?e.removeAttribute("font-"+n):t[n]&&e.setAttribute("font-"+n,t[n])}),this},getExtentOfChar:function(t){return this.node.getExtentOfChar(t)},getRotationOfChar:function(t){return this.node.getRotationOfChar(t)},getCharNumAtPosition:function(t,e){return this.node.getCharNumAtPosition(this.node.viewportElement.createSVGPoint(t,e))}})}},_p[72]={value:function(t,e,n){var r=_p.r(71),i=_p.r(67);return _p.r(11).createClass("TextSpan",{base:r,mixins:[i],constructor:function(t){this.callBase("tspan"),this.setContent(t)}})}},_p[73]={value:function(t,e,n){var r=_p.r(68),i=_p.r(11),o=i.createClass("Use",{base:_p.r(61),constructor:function(t){this.callBase("use"),this.ref(t)},ref:function(t){if(!t)return this.node.removeAttributeNS(r.xlink,"xlink:href"),this;var e=t.getId();return e&&this.node.setAttributeNS(r.xlink,"xlink:href","#"+e),"none"===t.node.getAttribute("fill")&&t.node.removeAttribute("fill"),"none"===t.node.getAttribute("stroke")&&t.node.removeAttribute("stroke"),this}}),a=_p.r(61);return i.extendClass(a,{use:function(){return new o(this)}}),o}},_p[74]={value:function(t,e,n){var r=_p.r(51),i=_p.r(44),o=_p.r(11).createClass("Vector",{base:r,constructor:function(t,e){this.callBase(t,e)},square:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.square())},add:function(t){return new o(this.x+t.x,this.y+t.y)},minus:function(t){return new o(this.x-t.x,this.y-t.y)},dot:function(t){return this.x*t.x+this.y*t.y},project:function(t){return t.multipy(this.dot(t)/t.square())},normalize:function(t){return void 0===t&&(t=1),this.multipy(t/this.length())},multipy:function(t){return new o(this.x*t,this.y*t)},rotate:function(t,e){"rad"==e&&(t=t/Math.PI*180);var n=(new i).rotate(t).transformPoint(this);return new o(n.x,n.y)},vertical:function(){return new o(this.y,-this.x)},reverse:function(){return this.multipy(-1)},getAngle:function(){var t=this.length();if(0===t)return 0;var e=Math.acos(this.x/t);return 180*(this.y>0?1:-1)*e/Math.PI}});return o.fromPoints=function(t,e){return new o(e.x-t.x,e.y-t.y)},o.fromPolar=function(){var t=r.fromPolar.apply(r,arguments);return new o(t.x,t.y)},_p.r(11).extendClass(r,{asVector:function(){return new o(this.x,this.y)}}),o}},_p[75]={value:function(t,e,n){var r=_p.r(62),i=_p.r(76);return _p.r(11).createClass("View",{mixins:[r,i],base:_p.r(75),constructor:function(){this.callBase("view")}})}},_p[76]={value:function(t,e,n){return _p.r(11).createClass("ViewBox",{getViewBox:function(){var t=this.node.getAttribute("viewBox");return null===t?{x:0,y:0,width:this.node.clientWidth||this.node.parentNode.clientWidth,height:this.node.clientHeight||this.node.parentNode.clientHeight}:{x:+(t=t.split(" "))[0],y:+t[1],width:+t[2],height:+t[3]}},setViewBox:function(t,e,n,r){return this.node.setAttribute("viewBox",[t,e,n,r].join(" ")),this}})}},_p[77]={value:function(t,e,n){var r={},i=_p.r(12);r.version="2.0.0",i.extend(r,{createClass:_p.r(11).createClass,extendClass:_p.r(11).extendClass,Utils:i,Browser:_p.r(10),Box:_p.r(26),Bezier:_p.r(24),BezierPoint:_p.r(25),Circle:_p.r(27),Clip:_p.r(28),Color:_p.r(29),Container:_p.r(30),Curve:_p.r(31),Ellipse:_p.r(33),Group:_p.r(37),Gradient:_p.r(36),HyperLink:_p.r(38),Image:_p.r(39),Line:_p.r(40),LinearGradient:_p.r(41),Mask:_p.r(43),Matrix:_p.r(44),Marker:_p.r(42),Palette:_p.r(45),Paper:_p.r(46),Path:_p.r(47),Pattern:_p.r(48),Pen:_p.r(49),Point:_p.r(51),PointContainer:_p.r(52),Polygon:_p.r(54),Polyline:_p.r(55),Pie:_p.r(50),RadialGradient:_p.r(56),Resource:_p.r(59),Rect:_p.r(57),RegularPolygon:_p.r(58),Ring:_p.r(60),Shape:_p.r(61),ShapePoint:_p.r(64),ShapeContainer:_p.r(62),Sweep:_p.r(69),Star:_p.r(66),Text:_p.r(70),TextSpan:_p.r(72),Use:_p.r(73),Vector:_p.r(74),g:_p.r(35),Animator:_p.r(0),Easing:_p.r(1),OpacityAnimator:_p.r(4),RotateAnimator:_p.r(6),ScaleAnimator:_p.r(7),Timeline:_p.r(8),TranslateAnimator:_p.r(9),PathAnimator:_p.r(5),MotionAnimator:_p.r(3),requestFrame:_p.r(2).requestFrame,releaseFrame:_p.r(2).releaseFrame,Filter:_p.r(21),GaussianblurFilter:_p.r(22),ProjectionFilter:_p.r(23),ColorMatrixEffect:_p.r(14),CompositeEffect:_p.r(15),ConvolveMatrixEffect:_p.r(16),Effect:_p.r(17),GaussianblurEffect:_p.r(18),OffsetEffect:_p.r(19)}),n.exports=r}};var moduleMapping={"expose-kity":13};function use(t){_p.r([moduleMapping[t]])}use("expose-kity")}()},function(t,e,n){(function(t){
/*!
* ====================================================
* Kity Minder Core - v1.4.50 - 2018-09-17
* https://github.com/fex-team/kityminder-core
* GitHub: https://github.com/fex-team/kityminder-core.git
* Copyright (c) 2018 Baidu FEX; Licensed BSD-3-Clause
* ====================================================
*/
!function(){var e={r:function(t){if(e[t].inited)return e[t].value;if("function"!=typeof e[t].value)return e[t].inited=!0,e[t].value;var n={exports:{}},r=e[t].value(null,n.exports,n);if(e[t].inited=!0,e[t].value=r,void 0!==r)return r;for(var i in n.exports)if(n.exports.hasOwnProperty(i))return e[t].inited=!0,e[t].value=n.exports,n.exports}};e[0]={value:function(t,n,r){var i=e.r(17),o=e.r(11),a=(new i.Marker).pipe(function(){var t=new i.Circle(6);this.addShape(t),this.setRef(6,0).setViewBox(-7,-7,14,14).setWidth(7).setHeight(7),this.dot=t,this.node.setAttribute("markerUnits","userSpaceOnUse")});o.register("arc",function(t,e,n,r,o){var s,c,u,l=t.getLayoutBox(),h=e.getLayoutBox(),f=Math.abs,d=[],p=l.x>h.x?"right":"left";t.getMinder().getPaper().addResource(a),s=new i.Point(h.cx,h.cy),c="left"==p?new i.Point(l.right+2,l.cy):new i.Point(l.left-2,l.cy),u=i.Vector.fromPoints(s,c),d.push("M",s),d.push("A",f(u.x),f(u.y),0,0,u.x*u.y>0?0:1,c),n.setMarker(a),a.dot.fill(o),n.setPathData(d)})}},e[1]={value:function(t,n,r){var i=e.r(17),o=e.r(11),a=(new i.Marker).pipe(function(){var t=new i.Circle(6);this.addShape(t),this.setRef(6,0).setViewBox(-7,-7,14,14).setWidth(7).setHeight(7),this.dot=t,this.node.setAttribute("markerUnits","userSpaceOnUse")});o.register("arc_tp",function(t,e,n,r,o){var s=t.getLayoutBox(),c=e.getLayoutBox(),u=t.getIndex(),l=e.getChildren()[u+1];t.getIndex()>0&&(c=e.getChildren()[u-1].getLayoutBox());var h,f,d=(Math.abs,[]);s.x,c.x,t.getMinder().getPaper().addResource(a),h=new i.Point(c.cx,c.cy),f=new i.Point(s.cx,s.cy);var p=Math.sqrt(Math.pow(h.x-f.x,2)+Math.pow(h.y-f.y,2));if(p=0==t.getIndex()?.4*p:p,i.Vector.fromPoints(h,f),d.push("M",h),d.push("A",p,p,0,0,1,f),n.setMarker(a),a.dot.fill(o),n.setPathData(d),l&&l.getConnection()){var g=l.getConnection(),m=l.getLayoutBox(),v=new i.Point(m.cx,m.cy),b=Math.sqrt(Math.pow(f.x-v.x,2)+Math.pow(f.y-v.y,2));(d=[]).push("M",f),d.push("A",b,b,0,0,1,v),g.setMarker(a),a.dot.fill(o),g.setPathData(d)}})}},e[2]={value:function(t,n,r){e.r(17),e.r(11).register("bezier",function(t,e,n){var r=e.getLayoutVertexOut(),i=t.getLayoutVertexIn(),o=e.getLayoutVectorOut().normalize(),a=Math.round,s=Math.abs,c=[];if(c.push("M",a(r.x),a(r.y)),s(o.x)>s(o.y)){var u=(i.x+r.x)/2;c.push("C",u,r.y,u,i.y,i.x,i.y)}else{var l=(i.y+r.y)/2;c.push("C",r.x,l,i.x,l,i.x,i.y)}n.setMarker(null),n.setPathData(c)})}},e[3]={value:function(t,n,r){e.r(17),e.r(11).register("fish-bone-master",function(t,e,n){var r=e.getLayoutVertexOut(),i=t.getLayoutVertexIn(),o=Math.abs,a=o(r.y-i.y),s=o(r.x-i.x),c=[];c.push("M",r.x,r.y),c.push("h",s-a),c.push("L",i.x,i.y),n.setMarker(null),n.setPathData(c)})}},e[4]={value:function(t,n,r){e.r(17),e.r(11).register("l",function(t,e,n){var r=e.getLayoutVertexOut(),i=t.getLayoutVertexIn(),o=e.getLayoutVectorOut(),a=[],s=Math.round,c=Math.abs;a.push("M",r.round()),c(o.x)>c(o.y)?a.push("H",s(i.x)):a.push("V",i.y),a.push("L",i),n.setPathData(a)})}},e[5]={value:function(t,n,r){e.r(17),e.r(11).register("poly",function(t,e,n,r){var i=e.getLayoutVertexOut(),o=t.getLayoutVertexIn(),a=e.getLayoutVectorOut().normalize(),s=Math.round,c=Math.abs,u=[];switch(u.push("M",s(i.x),s(i.y)),!0){case c(a.x)>c(a.y)&&a.x<0:u.push("h",-e.getStyle("margin-left")),u.push("v",o.y-i.y),u.push("H",o.x);break;case c(a.x)>c(a.y)&&a.x>=0:u.push("h",e.getStyle("margin-right")),u.push("v",o.y-i.y),u.push("H",o.x);break;case c(a.x)<=c(a.y)&&a.y<0:u.push("v",-e.getStyle("margin-top")),u.push("h",o.x-i.x),u.push("V",o.y);break;case c(a.x)<=c(a.y)&&a.y>=0:u.push("v",e.getStyle("margin-bottom")),u.push("h",o.x-i.x),u.push("V",o.y)}n.setMarker(null),n.setPathData(u)})}},e[6]={value:function(t,n,r){var i=e.r(17);e.r(11).register("under",function(t,e,n,r,o){var a,s,c,u,l=t.getLayoutBox(),h=e.getLayoutBox(),f=(Math.abs,[]),d=l.x>h.x?"right":"left",p=(t.getStyle("connect-radius"),l.bottom+3),g="sub"==e.getType()?h.bottom+3:h.cy;"right"==d?(a=new i.Point(h.right,g),s=new i.Point(l.left-10,p),c=new i.Point(l.right,p)):(a=new i.Point(h.left,g),s=new i.Point(l.right+10,p),c=new i.Point(l.left,p)),u=(a.x+s.x)/2,f.push("M",a),f.push("C",u,a.y,u,s.y,s),f.push("L",c),n.setMarker(null),n.setPathData(f)})}},e[7]={value:function(t,n,r){var i,o=e.r(17),a=e.r(19);-1!=location.href.indexOf("boxv")&&(Object.defineProperty(o.Box.prototype,"visualization",{get:function(){return i?i.setBox(this):null}}),a.registerInitHook(function(){this.on("paperrender",function(){(i=new o.Rect).fill("rgba(200, 200, 200, .5)"),i.stroke("orange"),this.getRenderContainer().addShape(i)})}))}},e[8]={value:function(t,n,r){var i=e.r(19),o={enableAnimation:!0,layoutAnimationDuration:300,viewAnimationDuration:100,zoomAnimationDuration:300},a={};i.registerInitHook(function(){this.setDefaultOptions(o),this.getOption("enableAnimation")||this.disableAnimation()}),i.prototype.enableAnimation=function(){for(var t in o)o.hasOwnProperty(t)&&this.setOption(a[t])},i.prototype.disableAnimation=function(){for(var t in o)o.hasOwnProperty(t)&&(a[t]=this.getOption(t),this.setOption(t,0))}}},e[9]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19)),a=(e.r(21),e.r(13)),s=i.createClass("Command",{constructor:function(){this._isContentChange=!0,this._isSelectionChange=!1},execute:function(t,e){throw new Error("Not Implement: Command.execute()")},setContentChanged:function(t){this._isContentChange=!!t},isContentChanged:function(){return this._isContentChange},setSelectionChanged:function(t){this._isSelectionChange=!!t},isSelectionChanged:function(){return this._isContentChange},queryState:function(t){return 0},queryValue:function(t){return 0},isNeedUndo:function(){return!0}});s.STATE_NORMAL=0,s.STATE_ACTIVE=1,s.STATE_DISABLED=-1,i.extendClass(o,{_getCommand:function(t){return this._commands[t.toLowerCase()]},_queryCommand:function(t,e,n){var r=this._getCommand(t);if(r){var i=r["query"+e];if(i)return i.apply(r,[this].concat(n))}return 0},queryCommandState:function(t){return this._queryCommand(t,"State",[].slice.call(arguments,1))},queryCommandValue:function(t){return this._queryCommand(t,"Value",[].slice.call(arguments,1))},execCommand:function(t){if(!t)return null;t=t.toLowerCase();var e,n,r,i=[].slice.call(arguments,1),o=this;return r={command:e=this._getCommand(t),commandName:t.toLowerCase(),commandArgs:i},!(!e||!~this.queryCommandState(t))&&(this._hasEnterExecCommand?(n=e.execute.apply(e,[o].concat(i)),this._hasEnterExecCommand||this._interactChange()):(this._hasEnterExecCommand=!0,this._fire(new a("beforeExecCommand",r,!0))||(this._fire(new a("preExecCommand",r,!1)),n=e.execute.apply(e,[o].concat(i)),this._fire(new a("execCommand",r,!1)),e.isContentChanged()&&this._firePharse(new a("contentchange")),this._interactChange()),this._hasEnterExecCommand=!1),void 0===n?null:n)}}),r.exports=s}},e[10]={value:function(t,n,r){function i(t,e){e(t),t.children&&t.children.forEach(function(t){i(t,e)})}return e.r(33),function(t){switch(t.version||(t.root?"1.4.0":"1.1.3")){case"1.1.3":!function(t){var e=t.data.currentstyle;delete t.data.currentstyle,"bottom"==e?(t.template="structure",t.theme="snow"):"default"==e&&(t.template="default",t.theme="classic"),i(t,function(t){var e=t.data;"PriorityIcon"in e&&(e.priority=e.PriorityIcon,delete e.PriorityIcon),"ProgressIcon"in e&&(e.progress=1+(e.ProgressIcon-1<<1),delete e.ProgressIcon),delete e.point,delete e.layout})}(t);case"1.2.0":case"1.2.1":!function(t){i(t,function(t){var e=t.data;delete e.layout_bottom_offset,delete e.layout_default_offset,delete e.layout_filetree_offset})}(t);case"1.3.0":case"1.3.1":case"1.3.2":case"1.3.3":case"1.3.4":case"1.3.5":!function(t){t.root={data:t.data,children:t.children},delete t.data,delete t.children}(t)}return t}}},e[11]={value:function(t,n,r){function i(t,e){l[t]=e}var o=e.r(17),a=e.r(33),s=e.r(20),c=e.r(19),u=e.r(21),l={};i("default",function(t,e,n){n.setPathData(["M",e.getLayoutVertexOut(),"L",t.getLayoutVertexIn()])}),o.extendClass(u,{getConnect:function(){return this.data.connect||"default"},getConnectProvider:function(){return l[this.getConnect()]||l.default},getConnection:function(){return this._connection||null}}),o.extendClass(c,{getConnectContainer:function(){return this._connectContainer},createConnect:function(t){if(!t.isRoot()){var e=new o.Path;t._connection=e,this._connectContainer.addShape(e),this.updateConnect(t)}},removeConnect:function(t){var e=this;t.traverse(function(t){e._connectContainer.removeShape(t._connection),t._connection=null})},updateConnect:function(t){var e=t._connection,n=t.parent;if(n&&e){if(n.isCollapsed())return void e.setVisible(!1);e.setVisible(!0);var r=t.getConnectProvider(),i=t.getStyle("connect-color")||"white",o=t.getStyle("connect-width")||2;e.stroke(i,o),r(t,n,e,o,i),o%2==0?e.setTranslate(.5,.5):e.setTranslate(0,0)}}}),s.register("Connect",{init:function(){this._connectContainer=(new o.Group).setId(a.uuid("minder_connect_group")),this.getRenderContainer().prependShape(this._connectContainer)},events:{nodeattach:function(t){this.createConnect(t.node)},nodedetach:function(t){this.removeConnect(t.node)},"layoutapply layoutfinish noderender":function(t){this.updateConnect(t.node)}}}),n.register=i}},e[12]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19)),a=(e.r(21),e.r(13)),s=e.r(10),c=e.r(25),u={};n.registerProtocol=function(t,e){for(var n in u[t]=e,u)u.hasOwnProperty(n)&&(u[n]=u[n],u[n].name=n)},n.getRegisterProtocol=function(t){return void 0===t?u:u[t]||null},i.extendClass(o,{setup:function(t){if("string"==typeof t&&(t=document.querySelector(t)),t){var e=t.getAttribute("minder-data-type");if(e in u){var n=t.textContent;t.textContent=null,this.renderTo(t),this.importData(e,n)}return this}},exportJson:function(){var t={root:function t(e){var n={};n.data=e.getData();var r=e.getChildren();n.children=[];for(var i=0;i<r.length;i++)n.children.push(t(r[i]));return n}(this.getRoot())};return t.template=this.getTemplate(),t.theme=this.getTheme(),t.version=o.version,JSON.parse(JSON.stringify(t))},Text2Children:function(t,e){function n(t){return""===t&&!/\S/.test(t)}function r(t){return{data:{text:t.replace(/^(\t|\x20{4})+/,"").replace(/(\t|\x20{4})+$/,"")},children:[]}}function i(t){for(var e=0;l.test(t);)t=t.replace(l,""),e++;return e}function o(t,e){t.children.push(e)}if(t instanceof kityminder.Node){for(var a,s=[],c={},u=0,l=/^(\t|\x20{4})/,h=e.split(/\r|\n|\r\n/),f="",d=0,p=this;void 0!==(f=h[d++]);)if(!n(f=f.replace(/ /g,"")))if(u=i(f),a=r(f),0===u)c={},s.push(a),c[0]=s[s.length-1];else{if(!c[u-1])throw new Error("Invalid local format");o(c[u-1],a),c[u]=a}(function t(e,n){for(var r=0,i=n.length;r<i;r++){var o=p.createNode(null,e);o.setData("text",n[r].data.text||""),t(o,n[r].children)}})(t,s),p.refresh()}},exportNode:function(t){var e={};e.data=t.getData();var n=t.getChildren();e.children=[];for(var r=0;r<n.length;r++)e.children.push(this.exportNode(n[r]));return e},importNode:function(t,e){var n=e.data;for(var r in t.data={},n)t.setData(r,n[r]);for(var i=e.children||[],o=0;o<i.length;o++){var a=this.createNode(null,t);this.importNode(a,i[o])}return t},importJson:function(t){if(t){for(this._fire(new a("preimport",null,!1));this._root.getChildren().length;)this.removeNode(this._root.getChildren()[0]);return t=s(t),this.importNode(this._root,t.root),this.setTemplate(t.template||"default"),this.setTheme(t.theme||null),this.refresh(),this.fire("import"),this._firePharse({type:"contentchange"}),this._interactChange(),this}},exportData:function(t,e){var n,r;return n=this.exportJson(),!t||(r=u[t])&&r.encode?(this._fire(new a("beforeexport",{json:n,protocolName:t,protocol:r})),c.resolve(r.encode(n,this,e))):c.reject(new Error("Not supported protocol:"+t))},importData:function(t,e,n){var r,i=this;if(t&&(!(r=u[t])||!r.decode))return c.reject(new Error("Not supported protocol:"+t));var o={local:e,protocolName:t,protocol:r};return this._fire(new a("beforeimport",o)),c.resolve(r.decode(e,this,n)).then(function(t){return i.importJson(t),t})},decodeData:function(t,e,n){var r;if(t&&(!(r=u[t])||!r.decode))return c.reject(new Error("Not supported protocol:"+t));var i={local:e,protocolName:t,protocol:r};return this._fire(new a("beforeimport",i)),c.resolve(r.decode(e,this,n))}})}},e[13]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19)),a=i.createClass("MindEvent",{constructor:function(t,e,n){(e=e||{}).getType&&"ShapeEvent"==e.getType()?(this.kityEvent=e,this.originEvent=e.originEvent):e.target&&e.preventDefault?this.originEvent=e:i.Utils.extend(this,e),this.type=t,this._canstop=n||!1},getPosition:function(t){if(this.kityEvent)return t&&"minder"!=t?this.kityEvent.getPosition.call(this.kityEvent,t):this.kityEvent.getPosition(this.minder.getRenderContainer())},getTargetNode:function(){var t=this.kityEvent&&this.kityEvent.targetShape;if(!t)return null;for(;!t.minderNode&&t.container;)t=t.container;var e=t.minderNode;return e&&t.getOpacity()<1?null:e||null},stopPropagation:function(){this._stoped=!0},stopPropagationImmediately:function(){this._immediatelyStoped=!0,this._stoped=!0},shouldStopPropagation:function(){return this._canstop&&this._stoped},shouldStopPropagationImmediately:function(){return this._canstop&&this._immediatelyStoped},preventDefault:function(){this.originEvent.preventDefault()},isRightMB:function(){var t=!1;return!!this.originEvent&&("which"in this.originEvent?t=3==this.originEvent.which:"button"in this.originEvent&&(t=2==this.originEvent.button),t)},getKeyCode:function(){var t=this.originEvent;return t.keyCode||t.which}});o.registerInitHook(function(t){this._initEvents()}),i.extendClass(o,{_initEvents:function(){this._eventCallbacks={}},_resetEvents:function(){this._initEvents(),this._bindEvents()},_bindEvents:function(){this._paper.on("click dblclick mousedown contextmenu mouseup mousemove mouseover mousewheel DOMMouseScroll touchstart touchmove touchend dragenter dragleave drop",this._firePharse.bind(this)),window&&window.addEventListener("resize",this._firePharse.bind(this))},dispatchKeyEvent:function(t){this._firePharse(t)},_firePharse:function(t){var e,n,r;"DOMMouseScroll"==t.type&&(t.type="mousewheel",t.wheelDelta=t.originEvent.wheelDelta=-10*t.originEvent.detail,t.wheelDeltaX=t.originEvent.mozMovementX,t.wheelDeltaY=t.originEvent.mozMovementY),e=new a("before"+t.type,t,!0),this._fire(e)||(n=new a("pre"+t.type,t,!0),r=new a(t.type,t,!0),(this._fire(n)||this._fire(r))&&this._fire(new a("after"+t.type,t,!1)))},_interactChange:function(t){var e=this;e._interactScheduled||(setTimeout(function(){e._fire(new a("interactchange")),e._interactScheduled=!1},100),e._interactScheduled=!0)},_listen:function(t,e){(this._eventCallbacks[t]||(this._eventCallbacks[t]=[])).push(e)},_fire:function(t){t.minder=this;var e=this.getStatus(),n=this._eventCallbacks[t.type.toLowerCase()]||[];if(e&&(n=n.concat(this._eventCallbacks[e+"."+t.type.toLowerCase()]||[])),0!==n.length){for(var r=(this.getStatus(),0);r<n.length&&(n[r].call(this,t),!t.shouldStopPropagationImmediately());r++);return t.shouldStopPropagation()}},on:function(t,e){var n=this;return t.split(/\s+/).forEach(function(t){n._listen(t.toLowerCase(),e)}),this},off:function(t,e){var n,r,i,o,a=t.split(/\s+/);for(n=0;n<a.length;n++)if(i=this._eventCallbacks[a[n].toLowerCase()]){for(o=null,r=0;r<i.length;r++)i[r]==e&&(o=r);null!==o&&i.splice(o,1)}},fire:function(t,e){var n=new a(t,e);return this._fire(n),this}}),r.exports=a}},e[14]={value:function(t,n,r){var i=e.r(17),o=e.r(19);o.registerInitHook(function(){this.on("beforemousedown",function(t){this.focus(),t.preventDefault()}),this.on("paperrender",function(){this.focus()})}),i.extendClass(o,{focus:function(){return this.isFocused()||(this._renderTarget.classList.add("focus"),this.renderNodeBatch(this.getSelectedNodes())),this.fire("focus"),this},blur:function(){return this.isFocused()&&(this._renderTarget.classList.remove("focus"),this.renderNodeBatch(this.getSelectedNodes())),this.fire("blur"),this},isFocused:function(){var t=this._renderTarget;return t&&t.classList.contains("focus")}})}},e[15]={value:function(t,e,n){var r={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,CapsLock:20,Esc:27,Spacebar:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,direction:{37:1,38:1,39:1,40:1},Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190,controlKeys:{16:1,17:1,18:1,20:1,91:1,224:1},notContentChange:{13:1,9:1,33:1,34:1,35:1,36:1,16:1,17:1,18:1,20:1,91:1,37:1,38:1,39:1,40:1,113:1,114:1,115:1,144:1,27:1},isSelectedNodeKey:{37:1,38:1,39:1,40:1,13:1,9:1}};for(var i in r)r.hasOwnProperty(i)&&(r[i.toLowerCase()]=r[i]);var o="a".charCodeAt(0);"abcdefghijklmnopqrstuvwxyz".split("").forEach(function(t){r[t]=t.charCodeAt(0)-o+65});var a=9;do{r[a.toString()]=a+48}while(--a);n.exports=r}},e[16]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19));o.registerInitHook(function(t){this.setDefaultOptions({enableKeyReceiver:!0}),this.getOption("enableKeyReceiver")&&this.on("paperrender",function(){this._initKeyReceiver()})}),i.extendClass(o,{_initKeyReceiver:function(){if(!this._keyReceiver){var t=this._keyReceiver=document.createElement("input");t.classList.add("km-receiver"),this._renderTarget.appendChild(t);var e=this;(function(t,e,n){e.split(" ").forEach(function(e){t.addEventListener(e,n,!1)})})(t,"keydown keyup keypress copy paste blur focus input",function(n){switch(n.type){case"blur":e.blur();break;case"focus":e.focus();break;case"input":t.value=null}e._firePharse(n),n.preventDefault()}),this.on("focus",function(){t.select(),t.focus()}),this.on("blur",function(){t.blur()}),this.isFocused()&&(t.select(),t.focus())}}})}},e[17]={value:function(t,e,n){n.exports=window.kity}},e[18]={value:function(t,n,r){var i,o=e.r(17),a=e.r(33),s=e.r(19),c=e.r(21),u=(e.r(13),e.r(9),{}),l=o.createClass("Layout",{doLayout:function(t,e){throw new Error("Not Implement: Layout.doLayout()")},align:function(t,e,n){var r=this;n=n||0,t.forEach(function(t){var i=r.getTreeBox([t]),o=t.getLayoutTransform();switch(e){case"left":return o.translate(n-i.left,0);case"right":return o.translate(n-i.right,0);case"top":return o.translate(0,n-i.top);case"bottom":return o.translate(0,n-i.bottom)}})},stack:function(t,e,n){var r=this,i=0;return n=n||function(t,e,n){return t.getStyle({x:"margin-right",y:"margin-bottom"}[n])+e.getStyle({x:"margin-left",y:"margin-top"}[n])},t.forEach(function(t,o,a){var s=r.getTreeBox([t]),c={x:s.width,y:s.height}[e],u={x:s.left,y:s.top}[e],l=t.getLayoutTransform();"x"==e?l.translate(i-u,0):l.translate(0,i-u),i+=c,a[o+1]&&(i+=n(t,a[o+1],e))}),i},move:function(t,e,n){t.forEach(function(t){t.getLayoutTransform().translate(e,n)})},getBranchBox:function(t){var e,n,r,i,a=new o.Box;for(e=0;e<t.length;e++)r=(n=t[e]).getLayoutTransform(),i=n.getContentBox(),a=a.merge(r.transformBox(i));return a},getTreeBox:function(t){var e,n,r,i,a=new o.Box;for(t instanceof Array||(t=[t]),e=0;e<t.length;e++)r=(n=t[e]).getLayoutTransform(),i=n.getContentBox(),n.isExpanded()&&n.children.length&&(i=i.merge(this.getTreeBox(n.children))),a=a.merge(r.transformBox(i));return a},getOrderHint:function(t){return[]}});l.register=function(t,e){u[t]=e,i=i||t},s.registerInitHook(function(t){this.refresh()}),a.extend(s,{getLayoutList:function(){return u},getLayoutInstance:function(t){var e=u[t];if(!e)throw new Error("Missing Layout: "+t);return new e}}),o.extendClass(c,{getLayout:function(){var t=this.getData("layout");return t||(this.isRoot()?i:this.parent.getLayout())},setLayout:function(t){return t&&("inherit"==t?this.setData("layout"):this.setData("layout",t)),this},layout:function(t){return this.setLayout(t).getMinder().layout(),this},getLayoutInstance:function(){return s.getLayoutInstance(this.getLayout())},getOrderHint:function(t){return this.parent.getLayoutInstance().getOrderHint(this)},getLayoutTransform:function(){return this._layoutTransform||new o.Matrix},getGlobalLayoutTransformPreview:function(){var t=this.parent?this.parent.getLayoutTransform():new o.Matrix,e=this.getLayoutTransform(),n=this.getLayoutOffset();return n&&(e=e.clone().translate(n.x,n.y)),t.merge(e)},getLayoutPointPreview:function(){return this.getGlobalLayoutTransformPreview().transformPoint(new o.Point)},getGlobalLayoutTransform:function(){return this._globalLayoutTransform?this._globalLayoutTransform:this.parent?this.parent.getGlobalLayoutTransform():new o.Matrix},setLayoutTransform:function(t){return this._layoutTransform=t,this},setGlobalLayoutTransform:function(t){return this.getRenderContainer().setMatrix(this._globalLayoutTransform=t),this},setVertexIn:function(t){this._vertexIn=t},setVertexOut:function(t){this._vertexOut=t},getVertexIn:function(){return this._vertexIn||new o.Point},getVertexOut:function(){return this._vertexOut||new o.Point},getLayoutVertexIn:function(){return this.getGlobalLayoutTransform().transformPoint(this.getVertexIn())},getLayoutVertexOut:function(){return this.getGlobalLayoutTransform().transformPoint(this.getVertexOut())},setLayoutVectorIn:function(t){return this._layoutVectorIn=t,this},setLayoutVectorOut:function(t){return this._layoutVectorOut=t,this},getLayoutVectorIn:function(){return this._layoutVectorIn||new o.Vector},getLayoutVectorOut:function(){return this._layoutVectorOut||new o.Vector},getLayoutBox:function(){return this.getGlobalLayoutTransform().transformBox(this.getContentBox())},getLayoutPoint:function(){return this.getGlobalLayoutTransform().transformPoint(new o.Point)},getLayoutOffset:function(){if(!this.parent)return new o.Point;var t=this.getData("layout_"+this.parent.getLayout()+"_offset");return t?new o.Point(t.x,t.y):new o.Point},setLayoutOffset:function(t){return this.parent?(this.setData("layout_"+this.parent.getLayout()+"_offset",t?{x:t.x,y:t.y}:void 0),this):this},hasLayoutOffset:function(){return!!this.getData("layout_"+this.parent.getLayout()+"_offset")},resetLayoutOffset:function(){return this.setLayoutOffset(null)},getLayoutRoot:function(){return this.isLayoutRoot()?this:this.parent.getLayoutRoot()},isLayoutRoot:function(){return this.getData("layout")||this.isRoot()}}),o.extendClass(s,{layout:function(){function t(e,n){e.isExpanded(),e.children.forEach(function(e){t(e,n)}),e.getLayoutInstance().doLayout(e,e.getChildren(),n)}var e=this.getOption("layoutAnimationDuration");this.getRoot().traverse(function(t){t.setLayoutTransform(null)}),t(this.getRoot(),1),t(this.getRoot(),2);var n=this;return this.applyLayoutResult(this.getRoot(),e,function(){setTimeout(function(){n.fire("layoutallfinish")},0)}),this.fire("layout")},refresh:function(){return this.getRoot().renderTree(),this.layout().fire("contentchange")._interactChange(),this},applyLayoutResult:function(t,e,n){function r(){--s||n&&n()}function i(t,e){t.setGlobalLayoutTransform(e),a.fire("layoutapply",{node:t,matrix:e})}var a=this,s=(t=t||this.getRoot()).getComplex();return s>200&&(e=0),function t(n,s){var c=n.getLayoutTransform().merge(s.clone()),u=n.getGlobalLayoutTransform()||new o.Matrix,l=n.getLayoutOffset();c.translate(l.x,l.y),c.m.e=Math.round(c.m.e),c.m.f=Math.round(c.m.f),n._layoutTimeline&&(n._layoutTimeline.stop(),n._layoutTimeline=null),e?n._layoutTimeline=new o.Animator(u,c,i).start(n,e,"ease").on("finish",function(){setTimeout(function(){i(n,c),a.fire("layoutfinish",{node:n,matrix:c}),r()},150)}):(i(n,c),a.fire("layoutfinish",{node:n,matrix:c}),r());for(var h=0;h<n.children.length;h++)t(n.children[h],c)}(t,t.parent?t.parent.getGlobalLayoutTransform():new o.Matrix),this}}),r.exports=l}},e[19]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=[],s=i.createClass("Minder",{constructor:function(t){this._options=o.extend({},t);for(var e,n=a.slice();n.length;)"function"==typeof(e=n.shift())&&e.call(this,this._options);this.fire("finishInitHook")}});s.version="1.4.43",s.registerInitHook=function(t){a.push(t)},r.exports=s}},e[20]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=e.r(19),s={};n.register=function(t,e){s[t]=e},a.registerInitHook(function(){this._initModules()}),i.extendClass(a,{_initModules:function(){var t=s,e=this._options.modules||o.keys(t);this._commands={},this._query={},this._modules={},this._rendererClasses={};var n,r,i,a,c,u,l,h=this;for(n=0;n<e.length;n++)if(t[r=e[n]]&&(a="function"==typeof t[r]?t[r].call(h):t[r],this._modules[r]=a,a)){for(r in a.defaultOptions&&h.setDefaultOptions(a.defaultOptions),a.init&&a.init.call(h,this._options),c=a.commands)this._commands[r.toLowerCase()]=new c[r];if(u=a.events)for(i in u)h.on(i,u[i]);if(l=a.renderers)for(i in l)this._rendererClasses[i]=this._rendererClasses[i]||[],o.isArray(l[i])?this._rendererClasses[i]=this._rendererClasses[i].concat(l[i]):this._rendererClasses[i].push(l[i]);a.commandShortcutKeys&&this.addCommandShortcutKeys(a.commandShortcutKeys)}},_garbage:function(){for(this.clearSelect();this._root.getChildren().length;)this._root.removeChild(0)},destroy:function(){var t=this._modules;for(var e in this._resetEvents(),this._garbage(),t)t[e].destroy&&t[e].destroy.call(this)},reset:function(){var t=this._modules;for(var e in this._garbage(),t)t[e].reset&&t[e].reset.call(this)}})}},e[21]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=e.r(19),s=i.createClass("MinderNode",{constructor:function(t){this.parent=null,this.root=this,this.children=[],this.data={id:o.guid(),created:+new Date},this.initContainers(),o.isString(t)?this.setText(t):o.isObject(t)&&o.extend(this.data,t)},initContainers:function(){this.rc=(new i.Group).setId(o.uuid("minder_node")),this.rc.minderNode=this},isRoot:function(){return this.root===this},isLeaf:function(){return 0===this.children.length},getRoot:function(){return this.root||this},getParent:function(){return this.parent},getSiblings:function(){var t=[],e=this;return this.parent.children.forEach(function(n){n!=e&&t.push(n)}),t},getLevel:function(){for(var t=0,e=this.parent;e;)t++,e=e.parent;return t},getComplex:function(){var t=0;return this.traverse(function(){t++}),t},getType:function(t){return this.type=["root","main","sub"][Math.min(this.getLevel(),2)],this.type},isAncestorOf:function(t){for(var e=t.parent;e;){if(e==this)return!0;e=e.parent}return!1},getData:function(t){return t?this.data[t]:this.data},setData:function(t,e){if("object"==typeof t){var n=t;for(t in n)n.hasOwnProperty(t)&&(this.data[t]=n[t])}else this.data[t]=e;return this},setText:function(t){return this.data.text=t},getText:function(){return this.data.text||null},preTraverse:function(t,e){var n=this.getChildren();e||t(this);for(var r=0;r<n.length;r++)n[r].preTraverse(t)},postTraverse:function(t,e){for(var n=this.getChildren(),r=0;r<n.length;r++)n[r].postTraverse(t);e||t(this)},traverse:function(t,e){return this.postTraverse(t,e)},getChildren:function(){return this.children},getIndex:function(){return this.parent?this.parent.children.indexOf(this):-1},insertChild:function(t,e){void 0===e&&(e=this.children.length),t.parent&&t.parent.removeChild(t),t.parent=this,t.root=this.root,this.children.splice(e,0,t)},appendChild:function(t){return this.insertChild(t)},prependChild:function(t){return this.insertChild(t,0)},removeChild:function(t){var e,n=t;t instanceof s&&(n=this.children.indexOf(t)),n>=0&&((e=this.children.splice(n,1)[0]).parent=null,e.root=e)},clearChildren:function(){this.children=[]},getChild:function(t){return this.children[t]},getRenderContainer:function(){return this.rc},getCommonAncestor:function(t){return s.getCommonAncestor(this,t)},contains:function(t){return this==t||this.isAncestorOf(t)},clone:function(){var t=new s;return t.data=o.clone(this.data),this.children.forEach(function(e){t.appendChild(e.clone())}),t},compareTo:function(t){if(!o.comparePlainObject(this.data,t.data))return!1;if(!o.comparePlainObject(this.temp,t.temp))return!1;if(this.children.length!=t.children.length)return!1;for(var e=0;this.children[e];){if(!this.children[e].compareTo(t.children[e]))return!1;e++}return!0},getMinder:function(){return this.getRoot().minder}});s.getCommonAncestor=function(t,e){if(t instanceof Array)return s.getCommonAncestor.apply(this,t);switch(arguments.length){case 1:return t.parent||t;case 2:if(t.isAncestorOf(e))return t;if(e.isAncestorOf(t))return e;for(var n=t.parent;n&&!n.isAncestorOf(e);)n=n.parent;return n;default:return Array.prototype.reduce.call(arguments,function(t,e){return s.getCommonAncestor(t,e)},t)}},i.extendClass(a,{getRoot:function(){return this._root},setRoot:function(t){this._root=t,t.minder=this},getAllNode:function(){var t=[];return this.getRoot().traverse(function(e){t.push(e)}),t},getNodeById:function(t){return this.getNodesById([t])[0]},getNodesById:function(t){var e=[];return this.getAllNode().forEach(function(n){-1!=t.indexOf(n.getData("id"))&&e.push(n)}),e},createNode:function(t,e,n){var r=new s(t);return this.fire("nodecreate",{node:r,parent:e,index:n}),this.appendNode(r,e,n),r},appendNode:function(t,e,n){return e&&e.insertChild(t,n),this.attachNode(t),this},removeNode:function(t){t.parent&&(t.parent.removeChild(t),this.detachNode(t),this.fire("noderemove",{node:t}))},attachNode:function(t){var e=this.getRenderContainer();t.traverse(function(t){t.attached=!0,e.addShape(t.getRenderContainer())}),e.addShape(t.getRenderContainer()),this.fire("nodeattach",{node:t})},detachNode:function(t){var e=this.getRenderContainer();t.traverse(function(t){t.attached=!1,e.removeShape(t.getRenderContainer())}),this.fire("nodedetach",{node:t})},getMinderTitle:function(){return this.getRoot().getText()}}),r.exports=s}},e[22]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=e.r(19);a.registerInitHook(function(t){this._defaultOptions={}}),i.extendClass(a,{setDefaultOptions:function(t){return o.extend(this._defaultOptions,t),this},getOption:function(t){return t?t in this._options?this._options[t]:this._defaultOptions[t]:o.extend({},this._defaultOptions,this._options)},setOption:function(t,e){this._options[t]=e}})}},e[23]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=e.r(19);a.registerInitHook(function(){this._initPaper()}),i.extendClass(a,{_initPaper:function(){this._paper=new i.Paper,this._paper._minder=this,this._paper.getNode().ondragstart=function(t){t.preventDefault()},this._paper.shapeNode.setAttribute("transform","translate(0.5, 0.5)"),this._addRenderContainer(),this.setRoot(this.createNode()),this._options.renderTo&&this.renderTo(this._options.renderTo)},_addRenderContainer:function(){this._rc=(new i.Group).setId(o.uuid("minder")),this._paper.addShape(this._rc)},renderTo:function(t){if("string"==typeof t&&(t=document.querySelector(t)),t){if("script"==t.tagName.toLowerCase()){var e=document.createElement("div");e.id=t.id,e.class=t.class,t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t),t=e}t.classList.add("km-view"),this._paper.renderTo(this._renderTarget=t),this._bindEvents(),this.fire("paperrender")}return this},getRenderContainer:function(){return this._rc},getPaper:function(){return this._paper},getRenderTarget:function(){return this._renderTarget}})}},e[24]={value:function(t,n,r){function i(t,e){var n=e.path.split("/");n.shift();var r,i=n.shift();if("root"==i){var o,a,s=n.indexOf("data");if(s>-1){i="data";var c=n.splice(s+1);e.dataPath=c}else i="node";for(r=t.getRoot();o=n.shift();)"children"!=o&&(void 0!==a&&(r=r.getChild(a)),a=+o);e.index=a,e.node=r}switch(e.express=[i,e.op].join(".")){case"theme.replace":t.useTheme(e.value);break;case"template.replace":t.useTemplate(e.value);break;case"node.add":(function t(e,n,r,i){return r=e.createNode(n.data,r,i),n.children.forEach(function(n,i){t(e,n,r,i)}),r})(t,e.value,e.node,e.index).renderTree(),t.layout();break;case"node.remove":t.removeNode(e.node.getChild(e.index)),t.layout();break;case"data.add":case"data.replace":case"data.remove":var u,l=e.node.data;for(n=e.dataPath.slice();l&&n.length>1;)(u=n.shift())in l?l=l[u]:"remove"!=e.op&&(l=l[u]={});l&&(l[u=n.shift()]=e.value),"expandState"==u?r.renderTree():r.render(),t.layout()}t.fire("patch",{patch:e})}var o=e.r(17),a=e.r(19);o.extendClass(a,{applyPatches:function(t){for(var e=0;e<t.length;e++)i(this,t[e]);return this.fire("contentchange"),this}})}},e[25]={value:function(e,n,r){var i=function(t){if(!(this instanceof i))return new i(t);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],"function"==typeof t&&t.call(this,this.fulfill.bind(this),this.reject.bind(this))};i.prototype={fulfill:function(t){return o(this,1,"fulfillValue",t)},reject:function(t){return o(this,2,"rejectReason",t)},then:function(t,e){var n=this,r=new i;return n.onFulfilled.push(c(t,r,"fulfill")),n.onRejected.push(c(e,r,"reject")),a(n),r}},i.all=function(t){return new i(function(e,n){var r=t.length,i=0,o=0,a=[];for(0===r&&e(a);i<r;)t[i].then(function(t){a.push(t),++o===r&&e(a)},function(t){n(t)}),i++})};var o=function(t,e,n,r){return 0===t.state&&(t.state=e,t[n]=r,a(t)),t},a=function(t){1===t.state?s(t,"onFulfilled",t.fulfillValue):2===t.state&&s(t,"onRejected",t.rejectReason)},s=function(e,n,r){if(0!==e[n].length){var i=e[n];e[n]=[];var o=function(){for(var t=0;t<i.length;t++)i[t](r)};"object"==typeof t&&"function"==typeof t.nextTick?t.nextTick(o):"function"==typeof setImmediate?setImmediate(o):setTimeout(o,0)}},c=function(t,e,n){return function(r){if("function"!=typeof t)e[n].call(e,r);else{var o;try{o=r instanceof i?r.then(t):t(r)}catch(t){return void e.reject(t)}u(e,o)}}},u=function(t,e){if(t!==e){var n;if("object"==typeof e&&null!==e||"function"==typeof e)try{n=e.then}catch(e){return void t.reject(e)}if("function"!=typeof n)t.fulfill(e);else{var r=!1;try{n.call(e,function(n){r||(r=!0,n===e?t.reject(new TypeError("circular thenable chain")):u(t,n))},function(e){r||(r=!0,t.reject(e))})}catch(e){r||t.reject(e)}}}else t.reject(new TypeError("cannot resolve promise with itself"))};i.resolve=function(t){return new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},r.exports=i}},e[26]={value:function(t,n,r){var i=e.r(17),o=e.r(19);e.r(13),o.registerInitHook(function(t){t.readOnly&&this.setDisabled()}),i.extendClass(o,{disable:function(){var t=this;t.bkqueryCommandState=t.queryCommandState,t.bkqueryCommandValue=t.queryCommandValue,t.queryCommandState=function(e){var n=this._getCommand(e);return n&&n.enableReadOnly?t.bkqueryCommandState.apply(t,arguments):-1},t.queryCommandValue=function(e){var n=this._getCommand(e);return n&&n.enableReadOnly?t.bkqueryCommandValue.apply(t,arguments):null},this.setStatus("readonly"),t._interactChange()},enable:function(){var t=this;t.bkqueryCommandState&&(t.queryCommandState=t.bkqueryCommandState,delete t.bkqueryCommandState),t.bkqueryCommandValue&&(t.queryCommandValue=t.bkqueryCommandValue,delete t.bkqueryCommandValue),this.setStatus("normal"),t._interactChange()}})}},e[27]={value:function(t,n,r){var i=e.r(17),o=e.r(19),a=e.r(21),s=i.createClass("Renderer",{constructor:function(t){this.node=t},create:function(t){throw new Error("Not implement: Renderer.create()")},shouldRender:function(t){return!0},watchChange:function(t){void 0===this.watchingData||this.watchingData,this.watchingData=t},shouldDraw:function(t){return!0},update:function(t,e,n){return this.shouldDraw()&&this.draw(t,e),this.place(t,e,n)},draw:function(t,e){throw new Error("Not implement: Renderer.draw()")},place:function(t,e,n){throw new Error("Not implement: Renderer.place()")},getRenderShape:function(){return this._renderShape||null},setRenderShape:function(t){this._renderShape=t}});i.extendClass(o,function(){function t(t,e){var n=[];["center","left","right","top","bottom","outline","outside"].forEach(function(t){var r="before"+t,i="after"+t;e[r]&&(n=n.concat(e[r])),e[t]&&(n=n.concat(e[t])),e[i]&&(n=n.concat(e[i]))}),t._renderers=n.map(function(e){return new e(t)})}return{renderNodeBatch:function(e){var n,r,o,a,s=this._rendererClasses,c=[],u=0;if(e.length){for(r=0;r<e.length;r++)(a=e[r])._renderers||t(a,s),a._contentBox=new i.Box,this.fire("beforerender",{node:a});for(u=e[0]._renderers.length,n=0;n<u;n++){for(r=0;r<e.length;r++)"function"==typeof c[r]&&(c[r]=c[r]()),c[r]instanceof i.Box||(c[r]=new i.Box(c[r]));for(r=0;r<e.length;r++)o=(a=e[r])._renderers[n],c[r]&&(a._contentBox=a._contentBox.merge(c[r]),o.contentBox=c[r]),o.shouldRender(a)?(o.getRenderShape()||(o.setRenderShape(o.create(a)),o.bringToBack?a.getRenderContainer().prependShape(o.getRenderShape()):a.getRenderContainer().appendShape(o.getRenderShape())),o.getRenderShape().setVisible(!0),c[r]=o.update(o.getRenderShape(),a,a._contentBox)):o.getRenderShape()&&(o.getRenderShape().setVisible(!1),c[r]=null)}for(r=0;r<e.length;r++)this.fire("noderender",{node:e[r]})}},renderNode:function(e){var n,r=this._rendererClasses;e._renderers||t(e,r),this.fire("beforerender",{node:e}),e._contentBox=new i.Box,e._renderers.forEach(function(t){t.shouldRender(e)?(t.getRenderShape()||(t.setRenderShape(t.create(e)),t.bringToBack?e.getRenderContainer().prependShape(t.getRenderShape()):e.getRenderContainer().appendShape(t.getRenderShape())),t.getRenderShape().setVisible(!0),"function"==typeof(n=t.update(t.getRenderShape(),e,e._contentBox))&&(n=n()),n&&(e._contentBox=e._contentBox.merge(n),t.contentBox=n)):t.getRenderShape()&&t.getRenderShape().setVisible(!1)}),this.fire("noderender",{node:e})}}}()),i.extendClass(a,{render:function(){if(this.attached)return this.getMinder().renderNode(this),this},renderTree:function(){if(this.attached){var t=[];return this.traverse(function(e){t.push(e)}),this.getMinder().renderNodeBatch(t),this}},getRenderer:function(t){var e=this._renderers;if(!e)return null;for(var n=0;n<e.length;n++)if(e[n].getType()==t)return e[n];return null},getContentBox:function(){return this.parent&&this.parent.isCollapsed()?new i.Box:this._contentBox||new i.Box},getRenderBox:function(t,e){var n=t&&this.getRenderer(t),r=n?n.contentBox:this.getContentBox();return i.Matrix.getCTM(this.getRenderContainer(),e||"paper").transformBox(r)}}),r.exports=s}},e[28]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=e.r(19),s=e.r(21);a.registerInitHook(function(){this._initSelection()}),i.extendClass(a,{_initSelection:function(){this._selectedNodes=[]},renderChangedSelection:function(t){var e=this.getSelectedNodes(),n=[];for(e.forEach(function(e){-1==t.indexOf(e)&&n.push(e)}),t.forEach(function(t){-1==e.indexOf(t)&&n.push(t)}),n.length&&(this._interactChange(),this.fire("selectionchange"));n.length;)n.shift().render()},getSelectedNodes:function(){return this._selectedNodes},getSelectedNode:function(){return this.getSelectedNodes()[0]||null},removeAllSelectedNodes:function(){var t=this._selectedNodes.splice(0);return this._selectedNodes=[],this.renderChangedSelection(t),this.fire("selectionclear")},removeSelectedNodes:function(t){var e=this,n=this._selectedNodes.slice(0);return(t=o.isArray(t)?t:[t]).forEach(function(t){var n;-1!==(n=e._selectedNodes.indexOf(t))&&e._selectedNodes.splice(n,1)}),this.renderChangedSelection(n),this},select:function(t,e){var n=this.getSelectedNodes().slice(0);e&&(this._selectedNodes=[]);var r=this;return(t=o.isArray(t)?t:[t]).forEach(function(t){-1===r._selectedNodes.indexOf(t)&&r._selectedNodes.unshift(t)}),this.renderChangedSelection(n),this},selectById:function(t,e){t=o.isArray(t)?t:[t];var n=this.getNodesById(t);return this.select(n,e)},toggleSelect:function(t){return o.isArray(t)?t.forEach(this.toggleSelect.bind(this)):t.isSelected()?this.removeSelectedNodes(t):this.select(t),this},isSingleSelect:function(){return 1==this._selectedNodes.length},getSelectedAncestors:function(t){function e(t,e){for(var n=t.length-1;n>=0;--n)if(t[n].isAncestorOf(e))return!0;return!1}var n,r=this.getSelectedNodes().slice(0),i=[],o=r.indexOf(this.getRoot());for(~o&&!t&&r.splice(o,1),r.sort(function(t,e){return t.getLevel()-e.getLevel()});n=r.pop();)e(r,n)||i.push(n);return i}}),i.extendClass(s,{isSelected:function(){var t=this.getMinder();return t&&-1!=t.getSelectedNodes().indexOf(this)}})}},e[29]={value:function(t,n,r){function i(t){var e=0;return"string"==typeof t?t.toLowerCase().split(/\+\s*/).forEach(function(t){switch(t){case"ctrl":case"cmd":e|=4096;break;case"alt":e|=8192;break;case"shift":e|=16384;break;default:e|=s[t]}}):((t.ctrlKey||t.metaKey)&&(e|=4096),t.altKey&&(e|=8192),t.shiftKey&&(e|=16384),e|=t.keyCode),e}var o=e.r(17),a=e.r(33),s=e.r(15),c=e.r(19),u=e.r(13);o.extendClass(u,{isShortcutKey:function(t){var e=this.originEvent;return!!e&&i(t)==i(e)}}),c.registerInitHook(function(){this._initShortcutKey()}),o.extendClass(c,{_initShortcutKey:function(){this._bindShortcutKeys()},_bindShortcutKeys:function(){var t=this._shortcutKeys={};this.on("keydown",function(e){for(var n in t)if(t.hasOwnProperty(n)&&e.isShortcutKey(n)){var r=t[n];if(r.__statusCondition&&r.__statusCondition!=this.getStatus())return;r(),e.preventDefault()}})},addShortcut:function(t,e){var n=this._shortcutKeys;t.split(/\|\s*/).forEach(function(t){var r,i=t.split("::");i.length>1&&(t=i[1],r=i[0],e.__statusCondition=r),n[t]=e})},addCommandShortcutKeys:function(t,e){var n=this._commandShortcutKeys||(this._commandShortcutKeys={}),r={};e?r[t]=e:r=t;var i=this;a.each(r,function(t,e){n[e]=t,i.addShortcut(t,function(){-1!==i.queryCommandState(e)&&i.execCommand(e)})})},getCommandShortcutKey:function(t){var e=this._commandShortcutKeys;return e&&e[t]||null},supportClipboardEvent:!!window.ClipboardEvent})}},e[30]={value:function(t,n,r){var i=e.r(17),o=e.r(19),a=~window.location.href.indexOf("status"),s=~window.location.href.indexOf("trace");o.registerInitHook(function(){this._initStatus()}),i.extendClass(o,{_initStatus:function(){this._status="normal",this._rollbackStatus="normal"},setStatus:function(t,e){return"readonly"!=this._status||e?(t!=this._status&&(this._rollbackStatus=this._status,this._status=t,this.fire("statuschange",{lastStatus:this._rollbackStatus,currentStatus:this._status}),a&&(console.log(window.event.type,this._rollbackStatus,"->",this._status),s&&console.trace())),this):this},rollbackStatus:function(){this.setStatus(this._rollbackStatus)},getRollbackStatus:function(){return this._rollbackStatus},getStatus:function(){return this._status}})}},e[31]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=e.r(19),s=e.r(9),c=e.r(21),u=e.r(20),l={};n.register=function(t,e){l[t]=e},o.extend(a,{getTemplateList:function(){return l}}),i.extendClass(a,function(){var t=a.prototype.getTheme;return{useTemplate:function(t,e){this.setTemplate(t),this.refresh(e||800)},getTemplate:function(){return this._template||"default"},setTemplate:function(t){this._template=t||null},getTemplateSupport:function(t){var e=l[this.getTemplate()];return e&&e[t]},getTheme:function(e){return(this.getTemplateSupport("getTheme")||t).call(this,e)}}}()),i.extendClass(c,function(){var t=c.prototype.getLayout,e=c.prototype.getConnect;return{getLayout:function(){return(this.getMinder().getTemplateSupport("getLayout")||t).call(this,this)},getConnect:function(){return(this.getMinder().getTemplateSupport("getConnect")||e).call(this,this)}}}()),u.register("TemplateModule",{commands:{template:i.createClass("TemplateCommand",{base:s,execute:function(t,e){t.useTemplate(e),t.execCommand("camera")},queryValue:function(t){return t.getTemplate()||"default"}})}})}},e[32]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=e.r(19),s=e.r(21),c=e.r(20),u=e.r(9),l={left:function(t){return 3 in t&&t[3]||1 in t&&t[1]||t[0]},right:function(t){return 1 in t&&t[1]||t[0]},top:function(t){return t[0]},bottom:function(t){return 2 in t&&t[2]||t[0]}},h={};n.register=function(t,e){h[t]=e},o.extend(a,{getThemeList:function(){return h}}),i.extendClass(a,{useTheme:function(t){return this.setTheme(t),this.refresh(800),!0},setTheme:function(t){if(t&&!h[t])throw new Error("Theme "+t+" not exists!");var e=this._theme;this._theme=t||null;var n=this.getRenderTarget();return n&&(n.classList.remove("km-theme-"+e),t&&n.classList.add("km-theme-"+t),n.style.background=this.getStyle("background")),this.fire("themechange",{theme:t}),this},getTheme:function(t){return this._theme||this.getOption("defaultTheme")||"fresh-blue"},getThemeItems:function(t){return this.getTheme(t),h[this.getTheme(t)]},getStyle:function(t,e){var n,r,i,a,s=this.getThemeItems(e);if(t in s)return s[t];if((n=t.split("-")).length<2)return null;if(r=n.pop(),(t=n.join("-"))in s){if(i=s[t],o.isArray(i)&&(a=l[r]))return a(i);if(!isNaN(i))return i}return null},getNodeStyle:function(t,e){var n=this.getStyle(t.getType()+"-"+e,t);return null!==n?n:this.getStyle(e,t)}}),i.extendClass(s,{getStyle:function(t){return this.getMinder().getNodeStyle(this,t)}}),c.register("Theme",{defaultOptions:{defaultTheme:"fresh-blue"},commands:{theme:i.createClass("ThemeCommand",{base:u,execute:function(t,e){return t.useTheme(e)},queryValue:function(t){return t.getTheme()||"default"}})}}),a.registerInitHook(function(){this.setTheme()})}},e[33]={value:function(t,n){var r=e.r(17),i={};n.extend=r.Utils.extend.bind(r.Utils),n.each=r.Utils.each.bind(r.Utils),n.uuid=function(t){return i[t]=i[t]?i[t]+1:1,t+i[t]},n.guid=function(){return(1e6*+new Date+Math.floor(1e6*Math.random())).toString(36)},n.trim=function(t){return t.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g,"")},n.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},n.clone=function(t){return JSON.parse(JSON.stringify(t))},n.comparePlainObject=function(t,e){return JSON.stringify(t)==JSON.stringify(e)},n.encodeHtml=function(t,e){return t?t.replace(e||/[&<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g,function(t,e){return e?t:{"<":"<","&":"&",'"':""",">":">","'":"'"}[t]}):""},n.clearWhiteSpace=function(t){return t.replace(/[\u200b\t\r\n]/g,"")},n.each(["String","Function","Array","Number","RegExp","Object"],function(t){var e=Object.prototype.toString;n["is"+t]=function(n){return e.apply(n)=="[object "+t+"]"}})}},e[34]={value:function(t,n,r){r.exports=window.kityminder=e.r(35)}},e[35]={value:function(t,n,r){var i={version:e.r(19).version};e.r(33),i.Minder=e.r(19),i.Command=e.r(9),i.Node=e.r(21),e.r(22),e.r(8),i.Event=e.r(13),i.data=e.r(12),e.r(10),i.KeyMap=e.r(15),e.r(29),e.r(30),e.r(23),e.r(28),e.r(14),e.r(16),i.Module=e.r(20),e.r(26),i.Render=e.r(27),i.Connect=e.r(11),i.Layout=e.r(18),i.Theme=e.r(32),i.Template=e.r(31),i.Promise=e.r(25),e.r(7),e.r(24),e.r(42),e.r(43),e.r(44),e.r(45),e.r(46),e.r(47),e.r(48),e.r(50),e.r(49),e.r(51),e.r(52),e.r(53),e.r(54),e.r(55),e.r(56),e.r(57),e.r(58),e.r(59),e.r(60),e.r(61),e.r(62),e.r(63),e.r(64),e.r(68),e.r(65),e.r(67),e.r(66),e.r(40),e.r(36),e.r(37),e.r(38),e.r(39),e.r(41),e.r(75),e.r(78),e.r(77),e.r(76),e.r(78),e.r(80),e.r(79),e.r(0),e.r(1),e.r(2),e.r(3),e.r(4),e.r(5),e.r(6),e.r(69),e.r(73),e.r(70),e.r(72),e.r(71),e.r(74),r.exports=i}},e[36]={value:function(t,n,r){var i=e.r(17),o=e.r(18);["left","right","top","bottom"].forEach(function(t){var e="left"==t||"right"==t?"x":"y",n="left"==t||"top"==t?-1:1,r={left:"right",right:"left",top:"bottom",bottom:"top",x:"y",y:"x"};o.register(t,i.createClass({base:o,doLayout:function(o,a){var s=o.getContentBox();if("x"==e?(o.setVertexOut(new i.Point(s[t],s.cy)),o.setLayoutVectorOut(new i.Vector(n,0))):(o.setVertexOut(new i.Point(s.cx,s[t])),o.setLayoutVectorOut(new i.Vector(0,n))),!a.length)return!1;a.forEach(function(o){var a=o.getContentBox();o.setLayoutTransform(new i.Matrix),"x"==e?(o.setVertexIn(new i.Point(a[r[t]],a.cy)),o.setLayoutVectorIn(new i.Vector(n,0))):(o.setVertexIn(new i.Point(a.cx,a[r[t]])),o.setLayoutVectorIn(new i.Vector(0,n)))}),this.align(a,r[t]),this.stack(a,r[e]);var c=this.getBranchBox(a),u=0,l=0;"x"==e?(u=s[t],u+=n*o.getStyle("margin-"+t),u+=n*a[0].getStyle("margin-"+r[t]),l=s.bottom,l-=s.height/2,l-=c.height/2,l-=c.y):(u=s.right,u-=s.width/2,u-=c.width/2,u-=c.x,l=s[t],l+=n*o.getStyle("margin-"+t),l+=n*a[0].getStyle("margin-"+r[t])),this.move(a,u,l)},getOrderHint:function(t){var n=[],r=t.getLayoutBox();return"x"==e?(n.push({type:"up",node:t,area:new i.Box({x:r.x,y:r.top-t.getStyle("margin-top")-5,width:r.width,height:t.getStyle("margin-top")}),path:["M",r.x,r.top-5,"L",r.right,r.top-5]}),n.push({type:"down",node:t,area:new i.Box({x:r.x,y:r.bottom+5,width:r.width,height:t.getStyle("margin-bottom")}),path:["M",r.x,r.bottom+5,"L",r.right,r.bottom+5]})):(n.push({type:"up",node:t,area:new i.Box({x:r.left-t.getStyle("margin-left")-5,y:r.top,width:t.getStyle("margin-left"),height:r.height}),path:["M",r.left-5,r.top,"L",r.left-5,r.bottom]}),n.push({type:"down",node:t,area:new i.Box({x:r.right+5,y:r.top,width:t.getStyle("margin-right"),height:r.height}),path:["M",r.right+5,r.top,"L",r.right+5,r.bottom]})),n}}))})}},e[37]={value:function(t,n,r){var i=e.r(17),o=e.r(18);[-1,1].forEach(function(t){var e="filetree-"+(t>0?"down":"up");o.register(e,i.createClass({base:o,doLayout:function(e,n,r){var o=e.getContentBox();if(e.setVertexOut(new i.Point(o.left+20,t>0?o.bottom:o.top)),e.setLayoutVectorOut(new i.Vector(0,t)),n.length){n.forEach(function(t){var e=t.getContentBox();t.setLayoutTransform(new i.Matrix),t.setVertexIn(new i.Point(e.left,e.cy)),t.setLayoutVectorIn(new i.Vector(1,0))}),this.align(n,"left"),this.stack(n,"y");var a=0;a+=o.left,a+=20,a+=n[0].getStyle("margin-left");var s=0;t>0?(s+=o.bottom,s+=e.getStyle("margin-bottom"),s+=n[0].getStyle("margin-top")):(s-=this.getTreeBox(n).bottom,s+=o.top,s-=e.getStyle("margin-top"),s-=n[0].getStyle("margin-bottom")),this.move(n,a,s)}},getOrderHint:function(t){var e=[],n=t.getLayoutBox(),r=t.getLevel()>1?3:5;return e.push({type:"up",node:t,area:new i.Box({x:n.x,y:n.top-t.getStyle("margin-top")-r,width:n.width,height:t.getStyle("margin-top")}),path:["M",n.x,n.top-r,"L",n.right,n.top-r]}),e.push({type:"down",node:t,area:new i.Box({x:n.x,y:n.bottom+r,width:n.width,height:t.getStyle("margin-bottom")}),path:["M",n.x,n.bottom+r,"L",n.right,n.bottom+r]}),e}}))})}},e[38]={value:function(t,n,r){var i=e.r(17),o=e.r(18);o.register("fish-bone-master",i.createClass("FishBoneMasterLayout",{base:o,doLayout:function(t,e,n){var r=[],o=[],a=e[0],s=t.getContentBox();if(t.setVertexOut(new i.Point(s.right,s.cy)),t.setLayoutVectorOut(new i.Vector(1,0)),a){var c=(a.getContentBox(),t.getStyle("margin-right")),u=a.getStyle("margin-left"),l=a.getStyle("margin-top"),h=a.getStyle("margin-bottom");e.forEach(function(t,e){t.setLayoutTransform(new i.Matrix);var n=t.getContentBox();e%2?(o.push(t),t.setVertexIn(new i.Point(n.left,n.top)),t.setLayoutVectorIn(new i.Vector(1,1))):(r.push(t),t.setVertexIn(new i.Point(n.left,n.bottom)),t.setLayoutVectorIn(new i.Vector(1,-1)))}),this.stack(r,"x"),this.stack(o,"x"),this.align(r,"bottom"),this.align(o,"top");var f=s.right+c+u,d=s.cy-h-t.getStyle("margin-top"),p=s.cy+l+t.getStyle("margin-bottom");this.move(r,f,d),this.move(o,f+u,p)}}}))}},e[39]={value:function(t,n,r){var i=e.r(17),o=e.r(18);o.register("fish-bone-slave",i.createClass("FishBoneSlaveLayout",{base:o,doLayout:function(t,e,n){var r=this,o=Math.abs,a=t.getContentBox(),s=t.getLayoutVectorIn();t.setLayoutVectorOut(s);var c=a.left+.382*a.width,u=new i.Point(c,s.y>0?a.bottom:a.top);t.setVertexOut(u);var l=e[0];if(l){var h=l.getContentBox();e.forEach(function(t,e){t.setLayoutTransform(new i.Matrix),t.setLayoutVectorIn(new i.Vector(1,0)),t.setVertexIn(new i.Point(h.left,h.cy))}),this.stack(e,"y"),this.align(e,"left");var f=0,d=0;f+=u.x,t.getLayoutVectorOut().y<0?(d-=this.getTreeBox(e).bottom,d+=t.getContentBox().top,d-=t.getStyle("margin-top"),d-=l.getStyle("margin-bottom")):(d+=t.getContentBox().bottom,d+=t.getStyle("margin-bottom"),d+=l.getStyle("margin-top")),this.move(e,f,d),2==n&&e.forEach(function(t){var e=t.getLayoutTransform(),n=t.getContentBox(),a=e.transformPoint(new i.Point(n.left,0));r.move([t],o(a.y-u.y),0)})}}}))}},e[40]={value:function(t,n,r){var i=e.r(17),o=e.r(18),a=e.r(19);o.register("mind",i.createClass({base:o,doLayout:function(t,e){var n=Math.ceil(t.children.length/2),r=[],o=[];e.forEach(function(t){t.getIndex()<n?r.push(t):o.push(t)});var s=a.getLayoutInstance("left"),c=a.getLayoutInstance("right");s.doLayout(t,o),c.doLayout(t,r);var u=t.getContentBox();t.setVertexOut(new i.Point(u.cx,u.cy)),t.setLayoutVectorOut(new i.Vector(0,0))},getOrderHint:function(t){var e=[],n=t.getLayoutBox();return e.push({type:"up",node:t,area:new i.Box({x:n.x,y:n.top-t.getStyle("margin-top")-5,width:n.width,height:t.getStyle("margin-top")}),path:["M",n.x,n.top-5,"L",n.right,n.top-5]}),e.push({type:"down",node:t,area:new i.Box({x:n.x,y:n.bottom+5,width:n.width,height:t.getStyle("margin-bottom")}),path:["M",n.x,n.bottom+5,"L",n.right,n.bottom+5]}),e}}))}},e[41]={value:function(t,n,r){var i=e.r(17),o=e.r(18);e.r(19),o.register("tianpan",i.createClass({base:o,doLayout:function(t,e){if(0!=e.length){var n,r,o,a=this,s=t.getContentBox(),c=5,u=Math.max(s.width,50);e.forEach(function(t,e){t.setLayoutTransform(new i.Matrix),o=a.getTreeBox(t),u=Math.max(Math.max(o.width,o.height),u)}),u=u/1.5/Math.PI,e.forEach(function(t,e){n=u*(Math.cos(c)+Math.sin(c)*c),r=u*(Math.sin(c)-Math.cos(c)*c),c+=.9-.02*e,t.setLayoutVectorIn(new i.Vector(1,0)),t.setVertexIn(new i.Point(s.cx,s.cy)),t.setLayoutTransform(new i.Matrix),a.move([t],n,r)})}},getOrderHint:function(t){var e=[],n=t.getLayoutBox();return e.push({type:"up",node:t,area:{x:n.x,y:n.top-t.getStyle("margin-top")-5,width:n.width,height:t.getStyle("margin-top")},path:["M",n.x,n.top-5,"L",n.right,n.top-5]}),e.push({type:"down",node:t,area:{x:n.x,y:n.bottom+5,width:n.width,height:t.getStyle("margin-bottom")},path:["M",n.x,n.bottom+5,"L",n.right,n.bottom+5]}),e}}))}},e[42]={value:function(t,n,r){function i(t,e){return t.getIndex()-e.getIndex()}function o(t,e){return-i(t,e)}var a=e.r(17),s=e.r(21),c=e.r(9),u=e.r(20);a.extendClass(s,{arrange:function(t){var e=this.parent;if(e){var n=e.children;if(!(t<0||t>=n.length))return n.splice(this.getIndex(),1),n.splice(t,0,this),this}}});var l=a.createClass("ArrangeUpCommand",{base:c,execute:function(t){var e=t.getSelectedNodes();e.sort(i);var n=e.map(function(t){return t.getIndex()});e.forEach(function(t,e){t.arrange(n[e]-1)}),t.layout(300)},queryState:function(t){return t.getSelectedNode()?0:-1}}),h=a.createClass("ArrangeUpCommand",{base:c,execute:function(t){var e=t.getSelectedNodes();e.sort(o);var n=e.map(function(t){return t.getIndex()});e.forEach(function(t,e){t.arrange(n[e]+1)}),t.layout(300)},queryState:function(t){return t.getSelectedNode()?0:-1}}),f=a.createClass("ArrangeCommand",{base:c,execute:function(t,e){var n=t.getSelectedNodes().slice();if(n.length&&s.getCommonAncestor(n)==n[0].parent){var r=n.map(function(t){return{index:t.getIndex(),node:t}}),i=Math.min.apply(Math,r.map(function(t){return t.index}))>=e;r.sort(function(t,e){return i?e.index-t.index:t.index-e.index}),r.forEach(function(t){t.node.arrange(e)}),t.layout(300)}},queryState:function(t){return t.getSelectedNode()?0:-1}});u.register("ArrangeModule",{commands:{arrangeup:l,arrangedown:h,arrange:f},contextmenu:[{command:"arrangeup"},{command:"arrangedown"},{divider:!0}],commandShortcutKeys:{arrangeup:"normal::alt+Up",arrangedown:"normal::alt+Down"}})}},e[43]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19),e.r(21),e.r(9)),a=e.r(20),s=e.r(61);a.register("basestylemodule",function(){function t(t,e){return t.getData(e)||t.getStyle(e)}var e=this;return s.registerStyleHook(function(e,n){var r=t(e,"font-weight"),i=t(e,"font-style");[r,i].join("/"),n.eachItem(function(t,e){e.setFont({weight:r,style:i})})}),{commands:{bold:i.createClass("boldCommand",{base:o,execute:function(t){var e=t.getSelectedNodes();1==this.queryState("bold")?e.forEach(function(t){t.setData("font-weight").render()}):e.forEach(function(t){t.setData("font-weight","bold").render()}),t.layout()},queryState:function(){var t=e.getSelectedNodes(),n=0;return 0===t.length?-1:(t.forEach(function(t){if(t&&t.getData("font-weight"))return n=1,!1}),n)}}),italic:i.createClass("italicCommand",{base:o,execute:function(t){var e=t.getSelectedNodes();1==this.queryState("italic")?e.forEach(function(t){t.setData("font-style").render()}):e.forEach(function(t){t.setData("font-style","italic").render()}),t.layout()},queryState:function(){var t=e.getSelectedNodes(),n=0;return 0===t.length?-1:(t.forEach(function(t){if(t&&t.getData("font-style"))return n=1,!1}),n)}})},commandShortcutKeys:{bold:"ctrl+b",italic:"ctrl+i"}}})}},e[44]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(21)),a=e.r(9);e.r(20).register("ClipboardModule",function(){function t(e,r){s.push(r),n.appendNode(r,e),r.render(),r.setLayoutOffset(null);var i=r.children.map(function(t){return t.clone()});r.clearChildren();for(var o,a=0;o=i[a];a++)t(r,o)}function e(t){t.length&&(t.sort(function(t,e){return t.getIndex()-e.getIndex()}),r=t.map(function(t){return t.clone()}))}var n=this,r=[],s=[],c=i.createClass("CopyCommand",{base:a,execute:function(t){e(t.getSelectedAncestors(!0)),this.setContentChanged(!1)}}),u=i.createClass("CutCommand",{base:a,execute:function(t){var n=t.getSelectedAncestors();0!==n.length&&(e(n),t.select(o.getCommonAncestor(n),!0),n.slice().forEach(function(e){t.removeNode(e)}),t.layout(300))}}),l=i.createClass("PasteCommand",{base:a,execute:function(e){if(r.length){var n=e.getSelectedNodes();if(!n.length)return;for(var i,o=0;i=r[o];o++)for(var a,c=0;a=n[c];c++)t(a,i.clone());e.select(s,!0),s=[],e.layout(300)}},queryState:function(t){return t.getSelectedNode()?0:-1}});if(n.supportClipboardEvent&&!i.Browser.gecko){return{commands:{copy:c,cut:u,paste:l},clipBoardEvents:{copy:function(t){this.fire("beforeCopy",t)}.bind(n),cut:function(t){this.fire("beforeCut",t)}.bind(n),paste:function(t){this.fire("beforePaste",t)}.bind(n)},sendToClipboard:e}}return{commands:{copy:c,cut:u,paste:l},commandShortcutKeys:{copy:"normal::ctrl+c|",cut:"normal::ctrl+x",paste:"normal::ctrl+v"},sendToClipboard:e}})}},e[45]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(21)),a=e.r(9),s=e.r(20),c=i.createClass("MoveToParentCommand",{base:a,execute:function(t,e,n){for(var r,i=0;i<e.length;i++)(r=e[i]).parent&&(r.parent.removeChild(r),n.appendChild(r),r.render());n.expand(),t.select(e,!0)}}),u=i.createClass("DropHinter",{base:i.Group,constructor:function(){this.callBase(),this.rect=new i.Rect,this.addShape(this.rect)},render:function(t){this.setVisible(!!t),t&&(this.rect.setBox(t.getLayoutBox()).setRadius(t.getStyle("radius")||0).stroke(t.getStyle("drop-hint-color")||"yellow",t.getStyle("drop-hint-width")||2),this.bringTop())}}),l=i.createClass("OrderHinter",{base:i.Group,constructor:function(){this.callBase(),this.area=new i.Rect,this.path=new i.Path,this.addShapes([this.area,this.path])},render:function(t){this.setVisible(!!t),t&&(this.area.setBox(t.area),this.area.fill(t.node.getStyle("order-hint-area-color")||"rgba(0, 255, 0, .5)"),this.path.setPathData(t.path),this.path.stroke(t.node.getStyle("order-hint-path-color")||"#0f0",t.node.getStyle("order-hint-path-width")||1))}}),h=i.createClass("TreeDragger",{constructor:function(t){this._minder=t,this._dropHinter=new u,this._orderHinter=new l,t.getRenderContainer().addShapes([this._dropHinter,this._orderHinter])},dragStart:function(t){this._startPosition=t},dragMove:function(t){if(this._startPosition){var e=i.Vector.fromPoints(this._dragPosition||this._startPosition,t),n=this._minder;if(this._dragPosition=t,!this._dragMode){if(i.Vector.fromPoints(this._dragPosition,this._startPosition).length()<10)return;if(!this._enterDragMode())return}for(var r=0;r<this._dragSources.length;r++)this._dragSources[r].setLayoutOffset(this._dragSources[r].getLayoutOffset().offset(e)),n.applyLayoutResult(this._dragSources[r]);this._dropTest()?this._renderOrderHint(this._orderSucceedHint=null):this._orderTest()}},dragEnd:function(){if(this._startPosition=null,this._dragPosition=null,this._dragMode){if(this._fadeDragSources(1),this._dropSucceedTarget)this._dragSources.forEach(function(t){t.setLayoutOffset(null)}),this._minder.layout(-1),this._minder.execCommand("movetoparent",this._dragSources,this._dropSucceedTarget);else if(this._orderSucceedHint){var t=this._orderSucceedHint,e=t.node.getIndex(),n=this._dragSources.map(function(t){return t.setLayoutOffset(null),t.getIndex()}),r=Math.max.apply(Math,n);e<Math.min.apply(Math,n)&&"down"==t.type&&e++,e>r&&"up"==t.type&&e--,t.node.setLayoutOffset(null),this._minder.execCommand("arrange",e),this._renderOrderHint(null)}else this._minder.fire("savescene");this._minder.layout(300),this._leaveDragMode(),this._minder.fire("contentchange")}},_enterDragMode:function(){return this._calcDragSources(),this._dragSources.length?(this._fadeDragSources(.5),this._calcDropTargets(),this._calcOrderHints(),this._dragMode=!0,this._minder.setStatus("dragtree"),!0):(this._startPosition=null,!1)},_calcDragSources:function(){this._dragSources=this._minder.getSelectedAncestors()},_fadeDragSources:function(t){var e=this._minder;this._dragSources.forEach(function(n){n.getRenderContainer().setOpacity(t,200),n.traverse(function(n){t<1?e.detachNode(n):e.attachNode(n)},!0)})},_calcDropTargets:function(){this._dropTargets=function t(e,n){var r,i=[];return i.push(n),n.getChildren().forEach(function(n){for(r=0;r<e.length;r++)if(e[r]==n)return;i=i.concat(t(e,n))}),i}(this._dragSources,this._minder.getRoot()),this._dropTargetBoxes=this._dropTargets.map(function(t){return t.getLayoutBox()})},_calcOrderHints:function(){var t=this._dragSources,e=o.getCommonAncestor(t);if(e==t[0]&&(e=t[0].parent),0!==t.length&&e==t[0].parent){var n=e.children;this._orderHints=n.reduce(function(e,n){return-1==t.indexOf(n)&&(e=e.concat(n.getOrderHint())),e},[])}else this._orderHints=[]},_leaveDragMode:function(){this._dragMode=!1,this._dropSucceedTarget=null,this._orderSucceedHint=null,this._renderDropHint(null),this._renderOrderHint(null),this._minder.rollbackStatus()},_drawForDragMode:function(){this._text.setContent(this._dragSources.length+" items"),this._text.setPosition(this._startPosition.x,this._startPosition.y+5),this._minder.getRenderContainer().addShape(this)},_boxTest:function(t,e,n){var r,i,o,a,s,c=this._dragSources.map(function(t){return t.getLayoutBox()});for(n=n||function(t,e,n){return t&&!t.isEmpty()},r=0;r<t.length;r++)for(o=t[r],s=e.call(this,o,r),i=0;i<c.length;i++){if(n((a=c[i]).intersect(s),a,s))return o}return null},_dropTest:function(){return this._dropSucceedTarget=this._boxTest(this._dropTargets,function(t,e){return this._dropTargetBoxes[e]},function(t,e,n){function r(t){return t.width*t.height}return!!t&&!!r(t)&&(r(t)>.5*Math.min(r(e),r(n))||t.width+1>=Math.min(e.width,n.width)||t.height+1>=Math.min(e.height,n.height))}),this._renderDropHint(this._dropSucceedTarget),!!this._dropSucceedTarget},_orderTest:function(){return this._orderSucceedHint=this._boxTest(this._orderHints,function(t){return t.area}),this._renderOrderHint(this._orderSucceedHint),!!this._orderSucceedHint},_renderDropHint:function(t){this._dropHinter.render(t)},_renderOrderHint:function(t){this._orderHinter.render(t)},preventDragMove:function(){this._startPosition=null}});s.register("DragTree",function(){var t;return{init:function(){t=new h(this),window.addEventListener("mouseup",function(){t.dragEnd()})},events:{"normal.mousedown inputready.mousedown":function(e){e.originEvent.button||e.getTargetNode()&&e.getTargetNode()!=this.getRoot()&&t.dragStart(e.getPosition())},"normal.mousemove dragtree.mousemove":function(e){t.dragMove(e.getPosition())},"normal.mouseup dragtree.beforemouseup":function(e){t.dragEnd(),e.preventDefault()},statuschange:function(e){"textedit"==e.lastStatus&&"normal"==e.currentStatus&&t.preventDragMove()}},commands:{movetoparent:c}}})}},e[46]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=e.r(15),s=e.r(21),c=e.r(9),u=e.r(20),l=e.r(27);u.register("Expand",function(){var t=this,e="expandState",n="collapse";i.extendClass(s,{expand:function(){return this.setData(e,"expand"),this},collapse:function(){return this.setData(e,n),this},isExpanded:function(){return this.getData(e)!==n&&(this.isRoot()||this.parent.isExpanded())},isCollapsed:function(){return!this.isExpanded()}});var r=i.createClass("ExpandCommand",{base:c,execute:function(t,e){var n=t.getSelectedNode();if(n){for(e&&(n=n.parent);n.parent;)n.expand(),n=n.parent;n.renderTree(),t.layout(100)}},queryState:function(t){var e=t.getSelectedNode();return!e||e.isRoot()||e.isExpanded()?-1:0}}),u=i.createClass("ExpandToLevelCommand",{base:c,execute:function(t,e){t.getRoot().traverse(function(t){t.getLevel()<e&&t.expand(),t.getLevel()!=e||t.isLeaf()||t.collapse()}),t.refresh(100)},enableReadOnly:!0}),h=i.createClass("CollapseCommand",{base:c,execute:function(t){var e=t.getSelectedNode();e&&(e.collapse(),e.renderTree(),t.layout())},queryState:function(t){var e=t.getSelectedNode();return e&&!e.isRoot()&&e.isExpanded()?0:-1}}),f=i.createClass("Expander",{base:i.Group,constructor:function(t){this.callBase(),this.radius=6,this.outline=new i.Circle(this.radius).stroke("gray").fill("white"),this.sign=(new i.Path).stroke("gray"),this.addShapes([this.outline,this.sign]),this.initEvent(t),this.setId(o.uuid("node_expander")),this.setStyle("cursor","pointer")},initEvent:function(e){this.on("mousedown",function(n){t.select([e],!0),e.isExpanded()?e.collapse():e.expand(),e.renderTree().getMinder().layout(100),e.getMinder().fire("contentchange"),n.stopPropagation(),n.preventDefault()}),this.on("dblclick click mouseup",function(t){t.stopPropagation(),t.preventDefault()})},setState:function(t){if("hide"!=t){this.setVisible(!0);var e=["M",1.5-this.radius,0,"L",this.radius-1.5,0];t==n&&e.push(["M",0,1.5-this.radius,"L",0,this.radius-1.5]),this.sign.setPathData(e)}else this.setVisible(!1)}});return{commands:{expand:r,expandtolevel:u,collapse:h},events:{layoutapply:function(t){var e=t.node.getRenderer("ExpanderRenderer");e.getRenderShape()&&e.update(e.getRenderShape(),t.node)},beforerender:function(t){var e=t.node,n=!e.parent||e.parent.isExpanded();e.getRenderContainer().setVisible(n),n||t.stopPropagation()},"normal.keydown":function(t){if("textedit"!=this.getStatus()){if(t.originEvent.keyCode==a["/"]){var e=this.getSelectedNode();if(!e||e==this.getRoot())return;var n=e.isExpanded();this.getSelectedNodes().forEach(function(t){n?t.collapse():t.expand(),t.renderTree()}),this.layout(100),this.fire("contentchange"),t.preventDefault(),t.stopPropagationImmediately()}t.isShortcutKey("Alt+`")&&this.execCommand("expandtolevel",9999);for(var r=1;r<6;r++)t.isShortcutKey("Alt+"+r)&&this.execCommand("expandtolevel",r)}}},renderers:{outside:i.createClass("ExpanderRenderer",{base:l,create:function(t){if(!t.isRoot())return this.expander=new f(t),t.getRenderContainer().prependShape(this.expander),t.expanderRenderer=this,this.node=t,this.expander},shouldRender:function(t){return!t.isRoot()},update:function(t,n,r){if(n.parent){var i=n.parent.isExpanded();t.setState(i&&n.children.length?n.getData(e):"hide");var o=n.getLayoutVectorIn().normalize(t.radius+n.getStyle("stroke-width")),a=n.getVertexIn().offset(o.reverse());this.expander.setTranslate(a)}}})},contextmenu:[{command:"expandtoleaf",query:function(){return!t.getSelectedNode()},fn:function(t){t.execCommand("expandtolevel",9999)}},{command:"expandtolevel1",query:function(){return!t.getSelectedNode()},fn:function(t){t.execCommand("expandtolevel",1)}},{command:"expandtolevel2",query:function(){return!t.getSelectedNode()},fn:function(t){t.execCommand("expandtolevel",2)}},{command:"expandtolevel3",query:function(){return!t.getSelectedNode()},fn:function(t){t.execCommand("expandtolevel",3)}},{divider:!0}]}})}},e[47]={value:function(t,n,r){function i(t,e){return t.getData(e)||t.getStyle(e)}var o=e.r(17),a=(e.r(33),e.r(19),e.r(21),e.r(9)),s=e.r(20);e.r(61).registerStyleHook(function(t,e){var n=t.getData("color"),r=t.getStyle("selected-color"),o=t.getStyle("color"),a=n||(t.isSelected()&&r?r:o),s=i(t,"font-family"),c=i(t,"font-size");e.fill(a),e.eachItem(function(t,e){e.setFont({family:s,size:c})})}),s.register("fontmodule",{commands:{forecolor:o.createClass("fontcolorCommand",{base:a,execute:function(t,e){t.getSelectedNodes().forEach(function(t){t.setData("color",e),t.render()})},queryState:function(t){return 0===t.getSelectedNodes().length?-1:0},queryValue:function(t){return 1==t.getSelectedNodes().length?t.getSelectedNodes()[0].getData("color"):"mixed"}}),background:o.createClass("backgroudCommand",{base:a,execute:function(t,e){t.getSelectedNodes().forEach(function(t){t.setData("background",e),t.render()})},queryState:function(t){return 0===t.getSelectedNodes().length?-1:0},queryValue:function(t){return 1==t.getSelectedNodes().length?t.getSelectedNodes()[0].getData("background"):"mixed"}}),fontfamily:o.createClass("fontfamilyCommand",{base:a,execute:function(t,e){t.getSelectedNodes().forEach(function(n){n.setData("font-family",e),n.render(),t.layout()})},queryState:function(t){return 0===t.getSelectedNodes().length?-1:0},queryValue:function(t){var e=t.getSelectedNode();return e?e.getData("font-family"):null}}),fontsize:o.createClass("fontsizeCommand",{base:a,execute:function(t,e){t.getSelectedNodes().forEach(function(n){n.setData("font-size",e),n.render(),t.layout(300)})},queryState:function(t){return 0===t.getSelectedNodes().length?-1:0},queryValue:function(t){var e=t.getSelectedNode();return e?e.getData("font-size"):null}})}})}},e[48]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19),e.r(21),e.r(9)),a=e.r(20),s=e.r(27);a.register("hyperlink",{commands:{hyperlink:i.createClass("hyperlink",{base:o,execute:function(t,e,n){t.getSelectedNodes().forEach(function(t){t.setData("hyperlink",e),t.setData("hyperlinkTitle",e&&n),t.render()}),t.layout()},queryState:function(t){var e=t.getSelectedNodes(),n=0;return 0===e.length?-1:(e.forEach(function(t){if(t&&t.getData("hyperlink"))return n=0,!1}),n)},queryValue:function(t){var e=t.getSelectedNode();return{url:e.getData("hyperlink"),title:e.getData("hyperlinkTitle")}}})},renderers:{right:i.createClass("hyperlinkrender",{base:s,create:function(){var t=new i.HyperLink,e=new i.Path,n=new i.Rect(24,22,-2,-6,4).fill("rgba(255, 255, 255, 0)");return e.setPathData("M16.614,10.224h-1.278c-1.668,0-3.07-1.07-3.599-2.556h4.877c0.707,0,1.278-0.571,1.278-1.278V3.834 c0-0.707-0.571-1.278-1.278-1.278h-4.877C12.266,1.071,13.668,0,15.336,0h1.278c2.116,0,3.834,1.716,3.834,3.834V6.39 C20.448,8.508,18.73,10.224,16.614,10.224z M5.112,5.112c0-0.707,0.573-1.278,1.278-1.278h7.668c0.707,0,1.278,0.571,1.278,1.278 S14.765,6.39,14.058,6.39H6.39C5.685,6.39,5.112,5.819,5.112,5.112z M2.556,3.834V6.39c0,0.707,0.573,1.278,1.278,1.278h4.877 c-0.528,1.486-1.932,2.556-3.599,2.556H3.834C1.716,10.224,0,8.508,0,6.39V3.834C0,1.716,1.716,0,3.834,0h1.278 c1.667,0,3.071,1.071,3.599,2.556H3.834C3.129,2.556,2.556,3.127,2.556,3.834z").fill("#666"),t.addShape(n),t.addShape(e),t.setTarget("_blank"),t.setStyle("cursor","pointer"),t.on("mouseover",function(){n.fill("rgba(255, 255, 200, .8)")}).on("mouseout",function(){n.fill("rgba(255, 255, 255, 0)")}),t},shouldRender:function(t){return t.getData("hyperlink")},update:function(t,e,n){var r=e.getData("hyperlink");t.setHref("#");for(var o=["^http:","^https:","^ftp:","^mailto:"],a=0;a<o.length;a++)if(new RegExp(o[a]).test(r)){t.setHref(r);break}var s=e.getData("hyperlinkTitle");s=s?[s,"(",r,")"].join(""):r,t.node.setAttributeNS("http://www.w3.org/1999/xlink","title",s);var c=e.getStyle("space-right");return t.setTranslate(n.right+c+2,-5),new i.Box({x:n.right+c,y:-11,width:24,height:22})}})}})}},e[49]={value:function(t,n,r){var i=e.r(17),o=e.r(15),a=e.r(20);e.r(9),a.register("ImageViewer",function(){function t(t,e,r){var i=document.createElement(t);return n(i,e),r&&r.length&&r.forEach(function(t){i.appendChild(t)}),i}function e(t,e,n){t.addEventListener(e,n)}function n(t,e){e&&e.split(" ").forEach(function(e){t.classList.add(e)})}var r=i.createClass("ImageViewer",{constructor:function(){var n=t("button","km-image-viewer-btn km-image-viewer-close"),r=t("button","km-image-viewer-btn km-image-viewer-source"),i=this.image=t("img"),o=this.toolbar=t("div","km-image-viewer-toolbar",[r,n]),a=t("div","km-image-viewer-container",[i]),s=this.viewer=t("div","km-image-viewer",[o,a]);this.hotkeyHandler=this.hotkeyHandler.bind(this),e(n,"click",this.close.bind(this)),e(r,"click",this.viewSource.bind(this)),e(i,"click",this.zoomImage.bind(this)),e(s,"contextmenu",this.toggleToolbar.bind(this)),e(document,"keydown",this.hotkeyHandler)},dispose:function(){this.close(),document.removeEventListener("remove",this.hotkeyHandler)},hotkeyHandler:function(t){this.actived&&t.keyCode===o.esc&&this.close()},toggleToolbar:function(t){t&&t.preventDefault(),this.toolbar.classList.toggle("hidden")},zoomImage:function(t){var e=this.image;"boolean"==typeof t?t&&n(e,"limited"):e.classList.toggle("limited")},viewSource:function(t){window.open(this.image.src)},open:function(t){var e=document.querySelector("input");e&&(e.focus(),e.blur()),this.image.src=t,this.zoomImage(!0),document.body.appendChild(this.viewer),this.actived=!0},close:function(){this.image.src="",document.body.removeChild(this.viewer),this.actived=!1}});return{init:function(){this.viewer=new r},events:{"normal.dblclick":function(t){var e=t.kityEvent.targetShape;"Image"===e.__KityClassName&&e.url&&this.viewer.open(e.url)}}}})}},e[50]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19),e.r(21),e.r(9)),a=e.r(20),s=e.r(27);a.register("image",function(){return{defaultOptions:{maxImageWidth:200,maxImageHeight:200},commands:{image:i.createClass("ImageCommand",{base:o,execute:function(t,e,n){var r=t.getSelectedNodes();!function(t,e){var n=document.createElement("img");n.onload=function(){e(n.width,n.height)},n.onerror=function(){e(null)},n.src=t}(e,function(i,o){r.forEach(function(r){var a=function(t,e,n,r){var i=t/e;return t>n&&i>n/r?e=(t=n)/i:e>r&&(t=(e=r)*i),{width:0|t,height:0|e}}(i,o,t.getOption("maxImageWidth"),t.getOption("maxImageHeight"));r.setData("image",e),r.setData("imageTitle",e&&n),r.setData("imageSize",e&&a),r.render()}),t.fire("saveScene"),t.layout(300)})},queryState:function(t){var e=t.getSelectedNodes(),n=0;return 0===e.length?-1:(e.forEach(function(t){if(t&&t.getData("image"))return n=0,!1}),n)},queryValue:function(t){var e=t.getSelectedNode();return{url:e.getData("image"),title:e.getData("imageTitle")}}})},renderers:{top:i.createClass("ImageRenderer",{base:s,create:function(t){return new i.Image(t.getData("image"))},shouldRender:function(t){return t.getData("image")},update:function(t,e,n){var r=e.getData("image"),o=e.getData("imageTitle"),a=e.getData("imageSize"),s=e.getStyle("space-top");if(a){o&&t.node.setAttributeNS("http://www.w3.org/1999/xlink","title",o);var c=n.cx-a.width/2,u=n.y-a.height-s;return t.setUrl(r).setX(0|c).setY(0|u).setWidth(0|a.width).setHeight(0|a.height),new i.Box(0|c,0|u,0|a.width,0|a.height)}}})}}})}},e[51]={value:function(t,n,r){var i=(e.r(17),e.r(33),e.r(15),e.r(19),e.r(21),e.r(9),e.r(20));e.r(27),i.register("KeyboardModule",function(){function t(t){var e,r=[];t.traverse(function(t){(e=t.getLayoutBox()).width&&e.height&&r.push({left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height,width:e.width,height:e.height,node:t})});for(var i=0;i<r.length;i++)n(r,i)}function e(t,e){var n,r,s,c,u,l,h;n=i(t.left,e.left),r=o(t.right,e.right),s=i(t.top,e.top),c=o(t.bottom,e.bottom),u=r-n-t.width-e.width,l=c-s-t.height-e.height,h=u<0?l:l<0?u:a(u*u+l*l);var f=t.node,d=e.node;return f.parent==d.parent&&(h/=10),d.parent==f&&(h/=5),h}function n(t,n){for(var r,i,o=t[n],a={},s=0;s<t.length;s++)s!=n&&(i=e(r=t[s],o),r.right<o.left&&(!a.left||i<a.left.dist)&&(a.left={dist:i,node:r.node}),r.left>o.right&&(!a.right||i<a.right.dist)&&(a.right={dist:i,node:r.node}),r.bottom<o.top&&(!a.top||i<a.top.dist)&&(a.top={dist:i,node:r.node}),r.top>o.bottom&&(!a.down||i<a.down.dist)&&(a.down={dist:i,node:r.node}));o.node._nearestNodes={right:a.right&&a.right.node||null,top:a.top&&a.top.node||null,left:a.left&&a.left.node||null,down:a.down&&a.down.node||null}}function r(e,n){var r=e.getSelectedNode();if(!r)return e.select(e.getRoot()),void t(e.getRoot());r._nearestNodes||t(e.getRoot());var i=r._nearestNodes[n];i&&e.select(i,!0)}var i=Math.min,o=Math.max,a=(Math.abs,Math.sqrt);return Math.exp,{events:{layoutallfinish:function(){t(this.getRoot())},"normal.keydown readonly.keydown":function(t){var e=this;["left","right","up","down"].forEach(function(n){t.isShortcutKey(n)&&(r(e,"up"==n?"top":n),t.preventDefault())})}}}})}},e[52]={value:function(t,n,r){var i=e.r(17),o=e.r(9),a=e.r(20),s=i.createClass("LayoutCommand",{base:o,execute:function(t,e){t.getSelectedNodes().forEach(function(t){t.layout(e)})},queryValue:function(t){var e=t.getSelectedNode();if(e)return e.getData("layout")},queryState:function(t){return t.getSelectedNode()?0:-1}}),c=i.createClass("ResetLayoutCommand",{base:o,execute:function(t){var e=t.getSelectedNodes();e.length||(e=[t.getRoot()]),e.forEach(function(t){t.traverse(function(t){t.resetLayoutOffset(),t.isRoot()||t.setData("layout",null)})}),t.layout(300)},enableReadOnly:!0});a.register("LayoutModule",{commands:{layout:s,resetlayout:c},contextmenu:[{command:"resetlayout"},{divider:!0}],commandShortcutKeys:{resetlayout:"Ctrl+Shift+L"}})}},e[53]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19),e.r(21)),a=e.r(9),s=e.r(20),c=(e.r(27),i.createClass("AppendChildCommand",{base:a,execute:function(t,e){var n=t.getSelectedNode();if(!n)return null;var r=t.createNode(e,n);t.select(r,!0),n.isExpanded()?r.render():(n.expand(),n.renderTree()),t.layout(600)},queryState:function(t){return t.getSelectedNode()?0:-1}})),u=i.createClass("AppendSiblingCommand",{base:a,execute:function(t,e){var n=t.getSelectedNode(),r=n.parent;if(!r)return t.execCommand("AppendChildNode",e);var i=t.createNode(e,r,n.getIndex()+1);i.setGlobalLayoutTransform(n.getGlobalLayoutTransform()),t.select(i,!0),i.render(),t.layout(600)},queryState:function(t){return t.getSelectedNode()?0:-1}}),l=i.createClass("RemoverNodeCommand",{base:a,execute:function(t){var e=t.getSelectedNodes(),n=o.getCommonAncestor.apply(null,e),r=e[0].getIndex();if(e.forEach(function(e){e.isRoot()||t.removeNode(e)}),1==e.length){var i=n.children[r-1]||n.children[r];t.select(i||n||t.getRoot(),!0)}else t.select(n||t.getRoot(),!0);t.layout(600)},queryState:function(t){var e=t.getSelectedNode();return e&&!e.isRoot()?0:-1}}),h=i.createClass("AppendParentCommand",{base:a,execute:function(t,e){var n=t.getSelectedNodes();n.sort(function(t,e){return t.getIndex()-e.getIndex()});var r=n[0].parent,i=t.createNode(e,r,n[0].getIndex());n.forEach(function(t){i.appendChild(t)}),i.setGlobalLayoutTransform(n[n.length>>1].getGlobalLayoutTransform()),t.select(i,!0),t.layout(600)},queryState:function(t){var e=t.getSelectedNodes();if(!e.length)return-1;var n=e[0].parent;if(!n)return-1;for(var r=1;r<e.length;r++)if(e[r].parent!=n)return-1;return 0}});s.register("NodeModule",function(){return{commands:{AppendChildNode:c,AppendSiblingNode:u,RemoveNode:l,AppendParentNode:h},commandShortcutKeys:{appendsiblingnode:"normal::Enter",appendchildnode:"normal::Insert|Tab",appendparentnode:"normal::Shift+Tab|normal::Shift+Insert",removenode:"normal::Del|Backspace"}}})}},e[54]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19),e.r(21),e.r(9)),a=e.r(20),s=e.r(27);a.register("NoteModule",function(){var t=i.createClass("NoteCommand",{base:o,execute:function(t,e){var n=t.getSelectedNode();n.setData("note",e),n.render(),n.getMinder().layout(300)},queryState:function(t){return 1===t.getSelectedNodes().length?0:-1},queryValue:function(t){var e=t.getSelectedNode();return e&&e.getData("note")}}),e=i.createClass("NoteIcon",{base:i.Group,constructor:function(){this.callBase(),this.width=16,this.height=17,this.rect=new i.Rect(16,17,.5,-8.5,2).fill("transparent"),this.path=(new i.Path).setPathData("M9,9H3V8h6L9,9L9,9z M9,7H3V6h6V7z M9,5H3V4h6V5z M8.5,11H2V2h8v7.5 M9,12l2-2V1H1v11").setTranslate(2.5,-6.5),this.addShapes([this.rect,this.path]),this.on("mouseover",function(){this.rect.fill("rgba(255, 255, 200, .8)")}).on("mouseout",function(){this.rect.fill("transparent")}),this.setStyle("cursor","pointer")}});return{renderers:{right:i.createClass("NoteIconRenderer",{base:s,create:function(t){var n=new e;return n.on("mousedown",function(e){e.preventDefault(),t.getMinder().fire("editnoterequest")}),n.on("mouseover",function(){t.getMinder().fire("shownoterequest",{node:t,icon:n})}),n.on("mouseout",function(){t.getMinder().fire("hidenoterequest",{node:t,icon:n})}),n},shouldRender:function(t){return t.getData("note")},update:function(t,e,n){var r=n.right+e.getStyle("space-left"),o=n.cy;return t.path.fill(e.getStyle("color")),t.setTranslate(r,o),new i.Box(r,Math.round(o-t.height/2),t.width,t.height)}})},commands:{note:t}}})}},e[55]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=(e.r(19),e.r(21),e.r(9),e.r(20)),s=e.r(27),c=i.createClass("OutlineRenderer",{base:s,create:function(t){var e=(new i.Rect).setId(o.uuid("node_outline"));return this.bringToBack=!0,e},update:function(t,e,n){var r=e.getStyle("shape"),o=e.getStyle("padding-left"),a=e.getStyle("padding-right"),s=e.getStyle("padding-top"),c=e.getStyle("padding-bottom"),u={x:n.x-o,y:n.y-s,width:n.width+o+a,height:n.height+s+c},l=e.getStyle("radius");if(r&&"circle"==r){var h=Math.pow;l=(0,Math.round)(Math.sqrt(h(u.width,2)+h(u.height,2))/2),u.x=n.cx-l,u.y=n.cy-l,u.width=2*l,u.height=2*l}var f=e.isSelected()?e.getMinder().isFocused()?"selected-":"blur-selected-":"";return t.setPosition(u.x,u.y).setSize(u.width,u.height).setRadius(l).fill(e.getData("background")||e.getStyle(f+"background")||e.getStyle("background")).stroke(e.getStyle(f+"stroke"||e.getStyle("stroke")),e.getStyle(f+"stroke-width")),new i.Box(u)}}),u=i.createClass("ShadowRenderer",{base:s,create:function(t){return this.bringToBack=!0,new i.Rect},shouldRender:function(t){return t.getStyle("shadow")},update:function(t,e,n){t.setPosition(n.x+4,n.y+5).fill(e.getStyle("shadow"));var r=e.getStyle("shape");if(r){if("circle"==r){var i=Math.max(n.width,n.height);t.setSize(i,i),t.setRadius(i/2)}}else t.setSize(n.width,n.height),t.setRadius(e.getStyle("radius"))}}),l=new i.Marker;l.setWidth(10),l.setHeight(12),l.setRef(0,0),l.setViewBox(-6,-4,8,10),l.addShape((new i.Path).setPathData("M-5-3l5,3,-5,3").stroke("#33ffff"));var h=/wire/.test(window.location.href),f=i.createClass("WireframeRenderer",{base:s,create:function(){var t=new i.Group,e=this.oxy=(new i.Path).stroke("#f6f").setPathData("M0,-50L0,50M-50,0L50,0"),n=this.wireframe=(new i.Rect).stroke("lightgreen"),r=this.vectorIn=(new i.Path).stroke("#66ffff"),o=this.vectorOut=(new i.Path).stroke("#66ffff");return r.setMarker(l,"end"),o.setMarker(l,"end"),t.addShapes([e,n,r,o])},shouldRender:function(){return h},update:function(t,e,n){this.wireframe.setPosition(n.x,n.y).setSize(n.width,n.height);var r=e.getVertexIn(),i=e.getVertexOut(),o=e.getLayoutVectorIn().normalize(30),a=e.getLayoutVectorOut().normalize(30);this.vectorIn.setPathData(["M",r.offset(o.reverse()),"L",r]),this.vectorOut.setPathData(["M",i,"l",a])}});a.register("OutlineModule",function(){return{events:h?{ready:function(){this.getPaper().addResource(l)},layoutallfinish:function(){this.getRoot().traverse(function(t){t.getRenderer("WireframeRenderer").update(null,t,t.getContentBox())})}}:null,renderers:{outline:c,outside:[u,f]}}})}},e[56]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=(e.r(19),e.r(21),e.r(9)),s=e.r(20),c=e.r(27);s.register("PriorityModule",function(){var t=[null,["#FF1200","#840023"],["#0074FF","#01467F"],["#00AF00","#006300"],["#FF962E","#B25000"],["#A464FF","#4720C4"],["#A3A3A3","#515151"],["#A3A3A3","#515151"],["#A3A3A3","#515151"],["#A3A3A3","#515151"]],e="M20,10c0,3.866-3.134,7-7,7H7c-3.866,0-7-3.134-7-7V7c0-3.866,3.134-7,7-7h6c3.866,0,7,3.134,7,7V10z",n="priority",r=i.createClass("PriorityIcon",{base:i.Group,constructor:function(){this.callBase(),this.setSize(20),this.create(),this.setId(o.uuid("node_priority"))},setSize:function(t){this.width=this.height=t},create:function(){var t,n,r;(new i.Path).setPathData(e).fill("white"),t=(new i.Path).setPathData("M0,13c0,3.866,3.134,7,7,7h6c3.866,0,7-3.134,7-7V7H0V13z").setTranslate(.5,.5),n=(new i.Path).setPathData(e).setOpacity(.8).setTranslate(.5,.5),r=(new i.Text).setX(this.width/2-.5).setY(this.height/2).setTextAnchor("middle").setVerticalAlign("middle").setFontItalic(!0).setFontSize(12).fill("white"),this.addShapes([t,n,r]),this.mask=n,this.back=t,this.number=r},setValue:function(e){var n=this.back,r=this.mask,i=this.number,o=t[e];o&&(n.fill(o[1]),r.fill(o[0])),i.setContent(e)}});return{commands:{priority:i.createClass("SetPriorityCommand",{base:a,execute:function(t,e){for(var r=t.getSelectedNodes(),i=0;i<r.length;i++)r[i].setData(n,e||null).render();t.layout()},queryValue:function(t){for(var e,r=t.getSelectedNodes(),i=0;i<r.length&&!(e=r[i].getData(n));i++);return e||null},queryState:function(t){return t.getSelectedNodes().length?0:-1}})},renderers:{left:i.createClass("PriorityRenderer",{base:c,create:function(t){return new r},shouldRender:function(t){return t.getData(n)},update:function(t,e,r){var o,a,s=e.getData(n),c=e.getStyle("space-left");return t.setValue(s),o=r.left-t.width-c,a=-t.height/2,t.setTranslate(o,a),new i.Box({x:o,y:a,width:t.width,height:t.height})}})}}})}},e[57]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=(e.r(19),e.r(21),e.r(9)),s=e.r(20),c=e.r(27);s.register("ProgressModule",function(){var t="progress",e=(new i.LinearGradient).pipe(function(t){t.setStartPosition(0,0),t.setEndPosition(0,1),t.addStop(0,"#fff"),t.addStop(1,"#ccc")});this.getPaper().addResource(e);var n=i.createClass("ProgressIcon",{base:i.Group,constructor:function(t){this.callBase(),this.setSize(20),this.create(),this.setValue(t),this.setId(o.uuid("node_progress")),this.translate(.5,.5)},setSize:function(t){this.width=this.height=t},create:function(){var t,n,r,o,a;t=new i.Circle(9).fill("#FFED83"),n=new i.Pie(9,0).fill("#43BC00"),r=(new i.Path).setPathData("M10,3c4.418,0,8,3.582,8,8h1c0-5.523-3.477-10-9-10S1,5.477,1,11h1C2,6.582,5.582,3,10,3z").setTranslate(-10,-10).fill("#8E8E8E"),o=(new i.Path).setTranslate(-10,-10).setPathData("M10,0C4.477,0,0,4.477,0,10c0,5.523,4.477,10,10,10s10-4.477,10-10C20,4.477,15.523,0,10,0zM10,18c-4.418,0-8-3.582-8-8s3.582-8,8-8s8,3.582,8,8S14.418,18,10,18z").fill(e),a=(new i.Path).setTranslate(-10,-10).setPathData("M15.812,7.896l-6.75,6.75l-4.5-4.5L6.25,8.459l2.812,2.803l5.062-5.053L15.812,7.896z").fill("#EEE"),this.addShapes([t,n,r,a,o]),this.pie=n,this.check=a},setValue:function(t){this.pie.setAngle(-360*(t-1)/8),this.check.setVisible(9==t)}});return{commands:{progress:i.createClass("ProgressCommand",{base:a,execute:function(e,n){for(var r=e.getSelectedNodes(),i=0;i<r.length;i++)r[i].setData(t,n||null).render();e.layout()},queryValue:function(e){for(var n,r=e.getSelectedNodes(),i=0;i<r.length&&!(n=r[i].getData(t));i++);return n||null},queryState:function(t){return t.getSelectedNodes().length?0:-1}})},renderers:{left:i.createClass("ProgressRenderer",{base:c,create:function(t){return new n},shouldRender:function(e){return e.getData(t)},update:function(e,n,r){var o,a,s=n.getData(t),c=n.getStyle("space-left");return e.setValue(s),o=r.left-e.width-c,a=-e.height/2,e.setTranslate(o+e.width/2,a+e.height/2),new i.Box(o,a,e.width,e.height)}})}}})}},e[58]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19)),a=(e.r(21),e.r(9)),s=e.r(20),c=e.r(27);s.register("Resource",function(){var t=function(){var t,e,n,r,i,o,a,s,c,u,l;return l=4*(1<<30),t=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479],u=function(t){return t<0&&(t+=l),("00000000"+t.toString(16)).slice(-8)},o=[[16,50,84,118,152,186,220,254],[174,132,249,109,193,32,123,53],[139,12,37,223,234,99,23,73],[151,19,205,235,98,165,4,143],[9,117,66,250,30,203,134,211],[194,166,176,56,212,87,239,145],[92,241,222,164,112,54,41,184],[189,231,28,147,5,79,104,162],[246,158,59,128,44,125,65,90],[42,72,103,81,191,233,195,13]],a=function(t,e,n){var r=s[t]^s[e];s[t]=r>>>n|r<<32-n},e=function(t,e,u,l,h){var f=r+o[n][t]%16,d=r+(o[n][t]>>4);u=4+u%4,l=8+l%4,h=12+h%4,s[e%=4]+=s[u]+(c[f]^i[d%16]),a(h,e,16),s[l]+=s[h],a(u,l,12),s[e]+=s[u]+(c[d]^i[f%16]),a(h,e,8),s[l]+=s[h],a(u,l,7)},function(o,a){var l,h,f,d,p,g,m,v;for(a instanceof Array&&4===a.length||(a=[0,0,0,0]),h=t.slice(0),l=i.slice(0,8),n=0;n<4;n+=1)l[n]^=a[n];if(p=(f=16*o.length)%512>446||f%512==0?0:f,f%512==432)o+="老";else{for(o+="耀";o.length%32!=27;)o+="\0";o+=""}for(c=[],v=0;v<o.length;v+=2)c.push(65536*o.charCodeAt(v)+o.charCodeAt(v+1));for(c.push(0),c.push(f),g=c.length-16,m=0,r=0;r<c.length;r+=16){for(m+=512,d=r===g?p:Math.min(f,m),(s=h.concat(l))[12]^=d,s[13]^=d,n=0;n<10;n+=1)for(v=0;v<8;v+=1)v<4?e(v,v,v,v,v):e(v,v,v+1,v+2,v+3);for(v=0;v<8;v+=1)h[v]^=a[v%4]^s[v]^s[v+8]}return h.map(u).join("")}}(),e=[51,303,75,200,157,0,26,254].map(function(t){return i.Color.createHSL(t,100,85)});i.extendClass(o,{getHashCode:function(e){var n,r=1315423911;for(n=(e=t(e)).length-1;n>=0;n--)r^=(r<<5)+e.charCodeAt(n)+(r>>2);return 2147483647&r},getResourceColor:function(t){var n,r=this._getResourceColorIndexMapping();return Object.prototype.hasOwnProperty.call(r,t)||(n=this._getNextResourceColorIndex(),r[t]=n),e[r[t]]||i.Color.createHSL(Math.floor(this.getHashCode(t)/2147483647*359),100,85)},getUsedResource:function(){var t,e=this._getResourceColorIndexMapping(),n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n},_getNextResourceColorIndex:function(){var t,n,r,i=this._getResourceColorIndexMapping();for(t in n=[],i)Object.prototype.hasOwnProperty.call(i,t)&&n.push(i[t]);for(r=0;r<e.length;r++)if(!~n.indexOf(r))return r;return-1},_getResourceColorIndexMapping:function(){return this._resourceColorMapping||(this._resourceColorMapping={})}});var n=i.createClass("ResourceCommand",{base:a,execute:function(t,e){var n=t.getSelectedNodes();"string"==typeof e&&(e=[e]),n.forEach(function(t){t.setData("resource",e).render()}),t.layout(200)},queryValue:function(t){var e=[];return t.getSelectedNodes().forEach(function(t){var n=t.getData("resource");n&&n.forEach(function(t){~e.indexOf(t)||e.push(t)})}),e},queryState:function(t){return t.getSelectedNode()?0:-1}}),r=i.createClass("ResourceOverlay",{base:i.Group,constructor:function(){var t,e;this.callBase(),e=this.rect=(new i.Rect).setRadius(4),t=this.text=(new i.Text).setFontSize(12).setVerticalAlign("middle"),this.addShapes([e,t])},setValue:function(t,e){var n,r,i;n=this.text,t==this.lastResourceName?r=this.lastBox:(n.setContent(t),r=n.getBoundaryBox(),this.lastResourceName=t,this.lastBox=r),n.setX(8).fill(e.dec("l",70)),(i=this.rect).setPosition(0,r.y-4),this.width=Math.round(r.width+16),this.height=Math.round(r.height+8),i.setSize(this.width,this.height),i.fill(e)}});return{commands:{resource:n},renderers:{right:i.createClass("ResourceRenderer",{base:c,create:function(t){return this.overlays=[],new i.Group},shouldRender:function(t){return t.getData("resource")&&t.getData("resource").length},update:function(t,e,n){var o=e.getStyle("space-right"),a=this.overlays,s=e.getData("resource").filter(function(t){return null!==t});if(0!==s.length){var c,u,l,h=e.getMinder();for(l=0,c=0;c<s.length;c++)l+=o,(u=a[c])||(u=new r,a.push(u),t.addShape(u)),u.setVisible(!0),u.setValue(s[c],h.getResourceColor(s[c])),u.setTranslate(l,-1),l+=u.width;for(;u=a[c++];)u.setVisible(!1);return t.setTranslate(n.right,0),new i.Box({x:n.right,y:Math.round(-a[0].height/2),width:l,height:a[0].height})}}})}}})}},e[59]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19),e.r(21),e.r(9),e.r(20));e.r(27),o.register("Select",function(){var t=this,e=t.getRenderContainer(),n=function(){var n=null,r=new i.Path,o=!1;return{selectStart:function(t){if(!t.originEvent.button&&!t.originEvent.altKey)return n?this.selectEnd():void(n=t.getPosition(e).round())},selectMove:function(a){if("textedit"!=t.getStatus()&&n){var s=n,c=a.getPosition(e);if(!o){if(i.Vector.fromPoints(s,c).length()<10)return;o=!0,e.addShape(r),r.fill(t.getStyle("marquee-background")).stroke(t.getStyle("marquee-stroke")).setOpacity(.8).getDrawer().clear()}var u=new i.Box(s.x,s.y,c.x-s.x,c.y-s.y),l=[];u.left=Math.round(u.left),u.top=Math.round(u.top),u.right=Math.round(u.right),u.bottom=Math.round(u.bottom),r.getDrawer().pipe(function(){this.clear(),this.moveTo(u.left,u.top),this.lineTo(u.right,u.top),this.lineTo(u.right,u.bottom),this.lineTo(u.left,u.bottom),this.close()}),t.getRoot().traverse(function(t){t.getLayoutBox().intersect(u).isEmpty()||l.push(t)}),t.select(l,!0),window.getSelection().removeAllRanges()}},selectEnd:function(t){n&&(n=null),o&&(r.fadeOut(200,"ease",0,function(){r.remove&&r.remove()}),o=!1)}}}(),r=null,o=null;return{init:function(){window.addEventListener("mouseup",function(){n.selectEnd()})},events:{mousedown:function(t){var e=t.getTargetNode();e?t.isShortcutKey("Ctrl")?this.toggleSelect(e):e.isSelected()?this.isSingleSelect()||(r=e,o=t.getPosition()):this.select(e,!0):(this.removeAllSelectedNodes(),n.selectStart(t),this.setStatus("normal"))},mousemove:n.selectMove,mouseup:function(t){var e=t.getTargetNode();if(e&&e==r){var a=t.getPosition();i.Vector.fromPoints(o,a).length()<1&&this.select(r,!0),r=null}n.selectEnd(t)},"normal.keydown":function(t){if(t.isShortcutKey("ctrl+a")){var e=[];this.getRoot().traverse(function(t){e.push(t)}),this.select(e,!0),t.preventDefault()}}}}})}},e[60]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19),e.r(21),e.r(9)),a=e.r(20);e.r(27),a.register("StyleModule",function(){function t(t){for(var n=t.getData(),r=0;r<e.length;r++)if(e[r]in n)return!0}var e=["font-size","font-family","font-weight","font-style","background","color"],n=null;return{commands:{copystyle:i.createClass("CopyStyleCommand",{base:o,execute:function(t){var r=t.getSelectedNode().getData();return n={},e.forEach(function(t){t in r?n[t]=r[t]:(n[t]=null,delete n[t])}),n},queryState:function(e){var n=e.getSelectedNodes();return 1!==n.length?-1:t(n[0])?0:-1}}),pastestyle:i.createClass("PastStyleCommand",{base:o,execute:function(t){return t.getSelectedNodes().forEach(function(t){for(var e in n)n.hasOwnProperty(e)&&t.setData(e,n[e])}),t.renderNodeBatch(t.getSelectedNodes()),t.layout(300),n},queryState:function(t){return n&&t.getSelectedNodes().length?0:-1}}),clearstyle:i.createClass("ClearStyleCommand",{base:o,execute:function(t){return t.getSelectedNodes().forEach(function(t){e.forEach(function(e){t.setData(e)})}),t.renderNodeBatch(t.getSelectedNodes()),t.layout(300),n},queryState:function(e){var n=e.getSelectedNodes();if(!n.length)return-1;for(var r=0;r<n.length;r++)if(t(n[r]))return 0;return-1}})}}})}},e[61]={value:function(t,n,r){var i=e.r(17),o=e.r(33),a=(e.r(19),e.r(21)),s=e.r(9),c=e.r(20),u=e.r(27),l={safari:{"微软雅黑,Microsoft YaHei":-.17,"楷体,楷体_GB2312,SimKai":-.1,"隶书, SimLi":-.1,"comic sans ms":-.23,"impact,chicago":-.15,"times new roman":-.1,"arial black,avant garde":-.17,default:0},ie:{10:{"微软雅黑,Microsoft YaHei":-.17,"comic sans ms":-.17,"impact,chicago":-.08,"times new roman":.04,"arial black,avant garde":-.17,default:-.15},11:{"微软雅黑,Microsoft YaHei":-.17,"arial,helvetica,sans-serif":-.17,"comic sans ms":-.17,"impact,chicago":-.08,"times new roman":.04,"sans-serif":-.16,"arial black,avant garde":-.17,default:-.15}},edge:{"微软雅黑,Microsoft YaHei":-.15,"arial,helvetica,sans-serif":-.17,"comic sans ms":-.17,"impact,chicago":-.08,"sans-serif":-.16,"arial black,avant garde":-.17,default:-.15},sg:{"微软雅黑,Microsoft YaHei":-.15,"arial,helvetica,sans-serif":-.05,"comic sans ms":-.22,"impact,chicago":-.16,"times new roman":-.03,"arial black,avant garde":-.22,default:-.15},chrome:{Mac:{"andale mono":-.05,"comic sans ms":-.3,"impact,chicago":-.13,"times new roman":-.1,"arial black,avant garde":-.17,default:0},Win:{"微软雅黑,Microsoft YaHei":-.15,"arial,helvetica,sans-serif":-.02,"arial black,avant garde":-.2,"comic sans ms":-.2,"impact,chicago":-.12,"times new roman":-.02,default:-.15},Lux:{"andale mono":-.05,"comic sans ms":-.3,"impact,chicago":-.13,"times new roman":-.1,"arial black,avant garde":-.17,default:0}},firefox:{Mac:{"微软雅黑,Microsoft YaHei":-.2,"宋体,SimSun":.05,"comic sans ms":-.2,"impact,chicago":-.15,"arial black,avant garde":-.17,"times new roman":-.1,default:.05},Win:{"微软雅黑,Microsoft YaHei":-.16,"andale mono":-.17,"arial,helvetica,sans-serif":-.17,"comic sans ms":-.22,"impact,chicago":-.23,"times new roman":-.22,"sans-serif":-.22,"arial black,avant garde":-.17,default:-.16},Lux:{"宋体,SimSun":-.2,"微软雅黑,Microsoft YaHei":-.2,"黑体, SimHei":-.2,"隶书, SimLi":-.2,"楷体,楷体_GB2312,SimKai":-.2,"andale mono":-.2,"arial,helvetica,sans-serif":-.2,"comic sans ms":-.2,"impact,chicago":-.2,"times new roman":-.2,"sans-serif":-.2,"arial black,avant garde":-.2,default:-.16}}},h=i.createClass("TextRenderer",{base:u,create:function(){return(new i.Group).setId(o.uuid("node_text"))},update:function(t,e){function n(t){return e.getData(t)||e.getStyle(t)}var r,o=e.getText(),a=o?o.split("\n"):[" "],s=e.getStyle("line-height"),c=n("font-size"),u=n("font-family")||"default",h=-(s*c*a.length-(s-1)*c)/2,f=i.Browser;f.chrome||f.opera||f.bd||"chrome"===f.lb?r=l.chrome[f.platform][u]:f.gecko?r=l.firefox[f.platform][u]:f.sg?r=l.sg[u]:f.safari?r=l.safari[u]:f.ie?r=l.ie[f.version][u]:f.edge?r=l.edge[u]:f.lb&&(r=.9),t.setTranslate(0,(r||0)*c);var d=new i.Box,p=Math.round;this.setTextStyle(e,t);var g,m,v,b=a.length,y=t.getItems().length;if(b<y)for(g=b;t.getItem(g);)t.removeItem(g);else if(b>y)for(var w=b-y;w--;)m=(new i.Text).setAttr("text-rendering","inherit"),i.Browser.ie||i.Browser.edge?m.setVerticalAlign("top"):m.setAttr("dominant-baseline","text-before-edge"),t.addItem(m);for(g=0;v=a[g],m=t.getItem(g);g++)m.setContent(v),(i.Browser.ie||i.Browser.edge)&&m.fixPosition();this.setTextStyle(e,t);var x=e.getText()+["font-size","font-name","font-weight","font-style"].map(n).join("/");return e._currentTextHash==x&&e._currentTextGroupBox?e._currentTextGroupBox:(e._currentTextHash=x,function(){t.eachItem(function(t,e){var n=h+t*c*s;e.setY(n);var r=e.getBoundaryBox();d=d.merge(new i.Box(0,n,r.height&&r.width||1,c))});var n=new i.Box(p(d.x),p(d.y),p(d.width),p(d.height));return e._currentTextGroupBox=n,n})},setTextStyle:function(t,e){h._styleHooks.forEach(function(n){n(t,e)})}}),f=i.createClass({base:s,execute:function(t,e){var n=t.getSelectedNode();n&&(n.setText(e),n.render(),t.layout())},queryState:function(t){return 1==t.getSelectedNodes().length?0:-1},queryValue:function(t){var e=t.getSelectedNode();return e?e.getText():null}});o.extend(h,{_styleHooks:[],registerStyleHook:function(t){h._styleHooks.push(t)}}),i.extendClass(a,{getTextGroup:function(){return this.getRenderer("TextRenderer").getRenderShape()}}),c.register("text",{commands:{text:f},renderers:{center:h}}),r.exports=h}},e[62]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19),e.r(21),e.r(9)),a=e.r(20),s=(e.r(27),i.createClass("ViewDragger",{constructor:function(t){this._minder=t,this._enabled=!1,this._bind();var e=this;this._minder.getViewDragger=function(){return e},this.setEnabled(!1)},isEnabled:function(){return this._enabled},setEnabled:function(t){var e=this._minder.getPaper();e.setStyle("cursor",t?"pointer":"default"),e.setStyle("cursor",t?"-webkit-grab":"default"),this._enabled=t},timeline:function(){return this._moveTimeline},move:function(t,e){var n=(this._minder,this.getMovement().offset(t));this.moveTo(n,e)},moveTo:function(t,e){if(e){var n=this;return this._moveTimeline&&this._moveTimeline.stop(),this._moveTimeline=this._minder.getRenderContainer().animate(new i.Animator(this.getMovement(),t,function(t,e){n.moveTo(e)}),e,"easeOutCubic").timeline(),this._moveTimeline.on("finish",function(){n._moveTimeline=null}),this}this._minder.getRenderContainer().setTranslate(t.round()),this._minder.fire("viewchange")},getMovement:function(){var t=this._minder.getRenderContainer().transform.translate;return t?t[0]:new i.Point},getView:function(){var t=this._minder,e=t._lastClientSize||{width:t.getRenderTarget().clientWidth,height:t.getRenderTarget().clientHeight},n=this.getMovement(),r=new i.Box(0,0,e.width,e.height);return t.getPaper().getViewPortMatrix().inverse().translate(-n.x,-n.y).transformBox(r)},_bind:function(){function t(t){r&&(r=null,t.stopPropagation(),n&&(e.setEnabled(!1),n=!1,"hand"==e._minder.getStatus()&&e._minder.rollbackStatus()),e._minder.getPaper().setStyle("cursor","hand"==e._minder.getStatus()?"-webkit-grab":"default"),e._minder.fire("viewchanged"))}var e=this,n=!1,r=null,o=null;this._minder.on("normal.mousedown normal.touchstart inputready.mousedown inputready.touchstart readonly.mousedown readonly.touchstart",function(t){2==t.originEvent.button&&t.originEvent.preventDefault(),(t.getTargetNode()==this.getRoot()||2==t.originEvent.button||t.originEvent.altKey)&&(r=t.getPosition("view"),n=!0)}).on("normal.mousemove normal.touchmove readonly.mousemove readonly.touchmove inputready.mousemove inputready.touchmove",function(t){"touchmove"==t.type&&t.preventDefault(),n&&i.Vector.fromPoints(r,t.getPosition("view")).length()>10&&(this.setStatus("hand",!0),e._minder.getPaper().setStyle("cursor","-webkit-grabbing"))}).on("hand.beforemousedown hand.beforetouchstart",function(t){e.isEnabled()&&(r=t.getPosition("view"),t.stopPropagation(),e._minder.getPaper().setStyle("cursor","-webkit-grabbing"))}).on("hand.beforemousemove hand.beforetouchmove",function(t){if(r){o=t.getPosition("view");var n=i.Vector.fromPoints(r,o);e.move(n),t.stopPropagation(),t.preventDefault(),t.originEvent.preventDefault(),r=o}}).on("mouseup touchend",t),window.addEventListener("mouseup",t),this._minder.on("contextmenu",function(t){t.preventDefault()})}}));a.register("View",function(){return{init:function(){this._viewDragger=new s(this)},commands:{hand:i.createClass("ToggleHandCommand",{base:o,execute:function(t){"hand"!=t.getStatus()?t.setStatus("hand",!0):t.rollbackStatus(),this.setContentChanged(!1)},queryState:function(t){return"hand"==t.getStatus()?1:0},enableReadOnly:!0}),camera:i.createClass("CameraCommand",{base:o,execute:function(t,e){e=e||t.getRoot();var n=t.getPaper().getViewPort(),r=e.getRenderContainer().getRenderBox("view"),o=n.center.x-r.x-r.width/2,a=n.center.y-r.y,s=t._viewDragger,c=t.getOption("viewAnimationDuration");s.move(new i.Point(o,a),c),this.setContentChanged(!1)},enableReadOnly:!0}),move:i.createClass("MoveCommand",{base:o,execute:function(t,e){var n=t._viewDragger,r=t._lastClientSize,o=t.getOption("viewAnimationDuration");switch(e){case"up":n.move(new i.Point(0,r.height/2),o);break;case"down":n.move(new i.Point(0,-r.height/2),o);break;case"left":n.move(new i.Point(r.width/2,0),o);break;case"right":n.move(new i.Point(-r.width/2,0),o)}},enableReadOnly:!0})},events:{statuschange:function(t){this._viewDragger.setEnabled("hand"==t.currentStatus)},mousewheel:function(t){var e,n;if(!(t=t.originEvent).ctrlKey&&!t.shiftKey){"wheelDeltaX"in t?(e=t.wheelDeltaX||0,n=t.wheelDeltaY||0):(e=0,n=t.wheelDelta),this._viewDragger.move({x:e/2.5,y:n/2.5});var r=this;clearTimeout(this._mousewheeltimer),this._mousewheeltimer=setTimeout(function(){r.fire("viewchanged")},100),t.preventDefault()}},"normal.dblclick readonly.dblclick":function(t){t.kityEvent.targetShape instanceof i.Paper&&this.execCommand("camera",this.getRoot(),800)},"paperrender finishInitHook":function(){this.getRenderTarget()&&(this.execCommand("camera",null,0),this._lastClientSize={width:this.getRenderTarget().clientWidth,height:this.getRenderTarget().clientHeight})},resize:function(t){var e={width:this.getRenderTarget().clientWidth,height:this.getRenderTarget().clientHeight},n=this._lastClientSize;this._viewDragger.move(new i.Point((e.width-n.width)/2|0,(e.height-n.height)/2|0)),this._lastClientSize=e},"selectionchange layoutallfinish":function(t){var e=this.getSelectedNode(),n=this;if(i.Browser.edge&&this.fire("paperrender"),e){var r=this._viewDragger,o=r.timeline();if(o)return void o.on("finish",function(){n.fire("selectionchange")});var a=r.getView(),s=e.getLayoutBox(),c=0,u=0;s.right>a.right?c+=a.right-s.right-50:s.left<a.left&&(c+=a.left-s.left+50),s.bottom>a.bottom&&(u+=a.bottom-s.bottom-50),s.top<a.top&&(u+=a.top-s.top+50),(c||u)&&r.move(new i.Point(c,u),100)}}}}})}},e[63]={value:function(t,n,r){var i=e.r(17),o=(e.r(33),e.r(19)),a=(e.r(21),e.r(9)),s=e.r(20);e.r(27),s.register("Zoom",function(){function t(){var t=r._zoomValue>=100?"optimize-speed":"geometricPrecision";r.getRenderContainer().setAttr("text-rendering",t)}function e(e,r){if(e.getPaper().getViewPort(),r){t();var o=e.getOption("zoomAnimationDuration");if(e.getRoot().getComplex()>200||!o)e._zoomValue=r,e.zoom(r),e.fire("viewchange");else{var a=new i.Animator({beginValue:e._zoomValue,finishValue:r,setter:function(t,e){t.zoom(e)}});e._zoomValue=r,n&&n.pause(),(n=a.start(e,o,"easeInOutSine")).on("finish",function(){e.fire("viewchange")})}e.fire("zoom",{zoom:r})}}var n,r=this;i.extendClass(o,{zoom:function(t){var e=this.getPaper(),n=e.getViewPort();n.zoom=t/100,n.center={x:n.center.x,y:n.center.y},e.setViewPort(n),100==t&&function(t){var e=t.shapeNode,n=e.getCTM(),r=new i.Matrix(n.a,n.b,n.c,n.d,.5+(0|n.e),.5+(0|n.f));e.setAttribute("transform","matrix("+r.toString()+")")}(e)},getZoomValue:function(){return this._zoomValue}});var s=i.createClass("Zoom",{base:a,execute:e,queryValue:function(t){return t._zoomValue}});return{init:function(){this._zoomValue=100,this.setDefaultOptions({zoom:[10,20,50,100,200]}),t()},commands:{zoomin:i.createClass("ZoomInCommand",{base:a,execute:function(t){e(t,this.nextValue(t))},queryState:function(t){return+!this.nextValue(t)},nextValue:function(t){var e,n=t.getOption("zoom");for(e=0;e<n.length;e++)if(n[e]>t._zoomValue)return n[e];return 0},enableReadOnly:!0}),zoomout:i.createClass("ZoomOutCommand",{base:a,execute:function(t){e(t,this.nextValue(t))},queryState:function(t){return+!this.nextValue(t)},nextValue:function(t){var e,n=t.getOption("zoom");for(e=n.length-1;e>=0;e--)if(n[e]<t._zoomValue)return n[e];return 0},enableReadOnly:!0}),zoom:s},events:{"normal.mousewheel readonly.mousewheel":function(t){if(t.originEvent.ctrlKey||t.originEvent.metaKey){var e=t.originEvent.wheelDelta,n=this;Math.abs(e)>100&&(clearTimeout(this._wheelZoomTimeout),this._wheelZoomTimeout=setTimeout(function(){n.getPaper()._zoom,e>0?n.execCommand("zoomin"):e<0&&n.execCommand("zoomout")},100),t.originEvent.preventDefault())}}},commandShortcutKeys:{zoomin:"ctrl+=",zoomout:"ctrl+-"}}})}},e[64]={value:function(t,n,r){e.r(12).registerProtocol("json",r.exports={fileDescription:"KityMinder 格式",fileExtension:".km",dataType:"text",mineType:"application/json",encode:function(t){return JSON.stringify(t)},decode:function(t){return JSON.parse(t)}})}},e[65]={value:function(t,n,r){function i(t){return function t(e,n){var r=[];n=n||1;var i=function(t){for(var e="";t--;)e+="#";return e}(n);r.push(i+" "+e.data.text),r.push(l);var o=e.data.note;if(o){var a=/^#/.test(o);a&&(r.push(h),o=o.replace(/^#+/gm,function(t){return i+t})),r.push(o),a&&r.push(f),r.push(l)}return e.children&&e.children.forEach(function(e){r=r.concat(t(e,n+1))}),r}(t,1).join("\n")}function o(t,e){var n={data:{text:t,note:""}};return e&&(e.children?e.children.push(n):e.children=[n]),n}function a(t,e){t.data.note+=e+"\n"}function s(t){var e=/^(#+)?\s*(.*)$/.exec(t);return{level:e[1]&&e[1].length||null,content:e[2],noteStart:t==h,noteClose:t==f,codeBlock:/^\s*```/.test(t)}}function c(t){if(/\S/.test(t.data.note)){for(var e=t.data.note.split("\n");e.length&&!/\S/.test(e[0]);)e.shift();for(;e.length&&!/\S/.test(e[e.length-1]);)e.pop();t.data.note=e.join("\n")}else t.data.note=null,delete t.data.note;t.children&&t.children.forEach(c)}var u=/\r\n|\r|\n/,l="",h="\x3c!--Note--\x3e",f="\x3c!--/Note--\x3e";e.r(12).registerProtocol("markdown",r.exports={fileDescription:"Markdown/GFM 格式",fileExtension:".md",mineType:"text/markdown",dataType:"text",encode:function(t){return i(t.root)},decode:function(t){return function(t){var e,n,r,i,l,h,f,d={};e=(t=t.replace(/^(.+)\n={3,}/,function(t,e){return"# "+e})).split(u);for(var p=0;p<e.length;p++)(r=s(n=e[p])).noteClose?h=!1:r.noteStart?h=!0:(f=r.codeBlock?!f:f,h||f||!r.level||r.level>i+1?l&&a(l,n):(i=r.level,l=o(r.content,d[i-1]),d[i]=l));return c(d[1]),d[1]}(t)}})}},e[66]={value:function(t,n,r){function i(t,e){return new s(function(e,n){var r=document.createElement("img");r.onload=function(){e({element:this,x:t.x,y:t.y,width:t.width,height:t.height})},r.onerror=function(t){n(t)},r.crossOrigin="anonymous",r.src=t.url})}var o=e.r(17),a=e.r(12),s=e.r(25),c=window.URL||window.webkitURL||window;a.registerProtocol("png",r.exports={fileDescription:"PNG 图片",fileExtension:".png",mineType:"image/png",dataType:"base64",encode:function(t,e,n){function r(t,e){t.save(),t.fillStyle=e,t.fillRect(0,0,f.width,f.height),t.restore()}function a(t,e,n,r,i,o){i&&o?t.drawImage(e,n+S,r+S,i,o):t.drawImage(e,n+S,r+S)}function u(t){return t.toDataURL("image/png")}function l(t){var e=t.map(function(t){return function(t,e){return s(function(e,n){var r=new XMLHttpRequest;r.open("GET",t.url+"?_="+Date.now(),!0),r.responseType="blob",r.onreadystatechange=function(){if(4===r.readyState&&200===r.status){var n=r.response,i=document.createElement("img");i.src=c.createObjectURL(n),i.onload=function(){c.revokeObjectURL(i.src),e({element:i,x:t.x,y:t.y,width:t.width,height:t.height})}}},r.send()})}(t)});return s.all(e)}function h(){return i({url:_}).then(function(t){return a(d,t.element,w,x,t.width,t.height),l(A)}).then(function(t){for(var e=0;e<t.length;e++)a(d,t[e].element,t[e].x+w,t[e].y+x,t[e].width,t[e].height);c.revokeObjectURL(_),document.body.appendChild(f);var n=u(f);return document.body.removeChild(f),n},function(t){alert("脑图的节点中包含跨域图片,导出的 png 中节点图片不显示,你可以替换掉这些跨域的图片并重试。"),c.revokeObjectURL(_),document.body.appendChild(f);var e=u(f);return document.body.removeChild(f),e})}var f=document.createElement("canvas"),d=f.getContext("2d"),p=e.getStyle("background").toString(),g=/url\(\"(.+)\"\)/.exec(p),m=o.Color.parse(p),v=function(t){var e,n,r,i,o,a,s=t.getPaper(),u=(s.container,t.getRenderContainer()),l=u.getRenderBox(),h=l.width+1,f=l.height+1;e=s.shapeNode.getAttribute("transform"),s.shapeNode.setAttribute("transform","translate(0.5, 0.5)"),u.translate(-l.x,-l.y),n=s.container.innerHTML,u.translate(l.x,l.y),s.shapeNode.setAttribute("transform",e),(r=document.createElement("div")).innerHTML=n,(i=r.querySelector("svg")).setAttribute("width",l.width+1),i.setAttribute("height",l.height+1),i.setAttribute("style",'font-family: Arial, "Microsoft Yahei","Heiti SC";'),(r=document.createElement("div")).appendChild(i),n=(n=(n=(n=r.innerHTML).replace(' xmlns="http://www.w3.org/2000/svg" xmlns:NS1="" NS1:ns1:xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:NS2="" NS2:xmlns:ns1=""',"")).replace(/ |[\x00-\x1F\x7F-\x9F]/g,"")).replace(/NS\d+:title/gi,"xlink:title"),o=new Blob([n],{type:"image/svg+xml"}),a=c.createObjectURL(o);var d=[];return function e(n){if((r=n.data).image){t.renderNode(n);var r,i=(r=n.data).image,o=r.imageSize,a=n.getRenderBox("ImageRenderer",t.getRenderContainer()),s={url:i,width:o.width,height:o.height,x:-u.getBoundaryBox().x+a.x,y:-u.getBoundaryBox().y+a.y};d.push(s)}if("collapse"!==r.expandState)for(var c=n.getChildren(),l=0;l<c.length;l++)e(c[l])}(t.getRoot()),{width:h,height:f,dataUrl:a,xml:n,imagesInfo:d}}(e),b=n&&n.width&&n.width>v.width?n.width:v.width,y=n&&n.height&&n.height>v.height?n.height:v.height,w=n&&n.width&&n.width>v.width?(n.width-v.width)/2:0,x=n&&n.height&&n.height>v.height?(n.height-v.height)/2:0,_=v.dataUrl,A=v.imagesInfo,S=20;return f.width=b+2*S,f.height=y+2*S,g?i({url:g[1]}).then(function(t){return r(d,d.createPattern(t.element,"repeat")),h()}):(r(d,m.toString()),h())}})}},e[67]={value:function(t,n,r){function i(t,e,n){t.style.visibility="hidden",function t(e,n,r){if(e&&"defs"!==e.tagName){if("transparent"===e.getAttribute("fill")&&e.setAttribute("fill","none"),e.getAttribute("marker-end")&&e.removeAttribute("marker-end"),n=n||0,r=r||0,e.getAttribute("transform")){var i=function(t,e){var n;try{n=e.getScreenCTM().inverse()}catch(t){throw new Error("Can not inverse source element' ctm.")}return n.multiply(t.getScreenCTM())}(e,e.parentElement);n-=i.e,r-=i.f,e.removeAttribute("transform")}switch(e.tagName.toLowerCase()){case"g":break;case"path":var o=e.getAttribute("d");return void(o&&(o=function(t,e){e instanceof Function||(e=function(){});for(var n=[],r=[],i=[],o=0,a=t.length;o<a;o++)switch(t[o]){case"M":case"L":case"T":case"S":case"A":case"C":case"H":case"V":case"Q":i.length&&(r.push(i.join("")),i=[]),","===r[r.length-1]&&r.pop(),r.length&&(e(r),n.push(r.join("")),r=[]),r.push(t[o]);break;case"Z":case"z":r.push(i.join(""),t[o]),e(r),n.push(r.join("")),i=[],r=[];break;case".":case"e":i.push(t[o]);break;case"-":"e"!==t[o-1]&&(i.length&&r.push(i.join(""),","),i=[]),i.push("-");break;case" ":case",":i.length&&(r.push(i.join(""),","),i=[]);break;default:/\d/.test(t[o])?i.push(t[o]):i.length?(r.push(i.join(""),t[o]),i=[]):(","===r[r.length-1]&&r.pop(),r.push(t[o])),o+1===a&&(i.length&&r.push(i.join("")),e(r),n.push(r.join("")),i=null,r=null)}return n.join("")}(o,function(t){switch(t[0]){case"V":t[1]=+t[1]-r;break;case"H":t[1]=+t[1]-n;break;case"M":case"L":case"T":t[1]=+t[1]-n,t[3]=+t[3]-r;break;case"Q":case"S":t[1]=+t[1]-n,t[3]=+t[3]-r,t[5]=+t[5]-n,t[7]=+t[7]-r;break;case"A":t[11]=+t[11]-n,t[13]=+t[13]-r;break;case"C":t[1]=+t[1]-n,t[3]=+t[3]-r,t[5]=+t[5]-n,t[7]=+t[7]-r,t[9]=+t[9]-n,t[11]=+t[11]-r}}),e.setAttribute("d",o),e.removeAttribute("transform")));case"image":case"text":if(n&&r){var a=+e.getAttribute("x")||0,s=+e.getAttribute("y")||0;e.setAttribute("x",a-n),e.setAttribute("y",s-r)}return e.getAttribute("dominant-baseline")&&(e.removeAttribute("dominant-baseline"),e.setAttribute("dy",".8em")),void e.removeAttribute("transform")}if(e.children)for(var c=0,u=e.children.length;c<u;c++)t(e.children[c],n,r)}}(t,e||0,n||0),t.style.visibility="visible"}e.r(12).registerProtocol("svg",r.exports={fileDescription:"SVG 矢量图",fileExtension:".svg",mineType:"image/svg+xml",dataType:"text",encode:function(t,e){var n,r,o,a=e.getPaper(),s=a.shapeNode.getAttribute("transform"),c=e.getRenderContainer(),u=c.getRenderBox(),l=(c.getTransform(),u.width),h=u.height,f=20;return a.shapeNode.setAttribute("transform","translate(0.5, 0.5)"),n=a.container.innerHTML,a.shapeNode.setAttribute("transform",s),r=document.createElement("div"),document.body.appendChild(r),r.innerHTML=n,(o=r.querySelector("svg")).setAttribute("width",l+40|0),o.setAttribute("height",h+40|0),o.setAttribute("style","background: "+e.getStyle("background")),o.setAttribute("viewBox",[0,0,l+40|0,h+40|0].join(" ")),tempSvgContainer=document.createElement("div"),i(o,u.x-f|0,u.y-f|0),document.body.removeChild(r),tempSvgContainer.appendChild(o),(n=tempSvgContainer.innerHTML).replace(/ /g," ")}})}},e[68]={value:function(t,n,r){function i(t,e){var n="";return n+=function(t,e){for(var n="";e--;)n+=t;return n}("\t",e=e||0),n+=function(t){if(!t)return"";for(var e=[],n=["\\","n"],r=0,i=0,o=t.length;r<o;r++)if("\n"!==t[r]&&"\r"!==t[r])if(t[r]!==n[i]){switch(i){case 0:e.push(t[r]);break;case 1:e.push(t[r-1],t[r])}i=0}else 2==++i&&(i=0,e.push("\\\\n"));else e.push("\\n"),i=0;return e.join("")}(t.data.text)+u,t.children&&t.children.forEach(function(t){n+=i(t,e+1)}),n}function o(t){return!/\S/.test(t)}function a(t){for(var e=0;h.REGEXP.test(t);)t=t.replace(h.REGEXP,""),e++;return e}function s(t){return{data:{text:function(t){if(!t)return"";for(var e=[],n=["\\","\\","n"],r=0,i=0,o=t.length;r<o;r++)if(t[r]!==n[i])switch(i){case 0:e.push(t[r]),i=0;break;case 1:"n"===t[r]?e.push("\n"):e.push(t[r-1],t[r]),i=0;break;case 2:e.push(t[r-2]),"\\"!==t[r]&&(i=0,e.push(t[r-1],t[r]))}else 3==++i&&(i=0,e.push("\\n"));return e.join("")}(t.replace(h.DELETE,""))}}}var c=e.r(12),u="\r",l=/\r\n|\r|\n/,h=function(t){return t.gecko?{REGEXP:new RegExp("^(\t|"+String.fromCharCode(160,160,32,160)+")"),DELETE:new RegExp("^(\t|"+String.fromCharCode(160,160,32,160)+")+")}:t.ie||t.edge?{REGEXP:new RegExp("^("+String.fromCharCode(32)+"|"+String.fromCharCode(160)+")"),DELETE:new RegExp("^("+String.fromCharCode(32)+"|"+String.fromCharCode(160)+")+")}:{REGEXP:/^(\t|\x20{4})/,DELETE:/^(\t|\x20{4})+/}}(e.r(17).Browser);c.registerProtocol("text",r.exports={fileDescription:"大纲文本",fileExtension:".txt",dataType:"text",mineType:"text/plain",encode:function(t){return i(t.root,0)},decode:function(t){return function(t){function e(t,e){(t.children||(t.children=[])).push(e)}for(var n,r,i,c,u={},h=t.split(l),f=0;f<h.length;f++)if(!o(r=h[f])){if(i=a(r),c=s(r),0===i){if(n)throw new Error("Invalid local format");n=c}else{if(!u[i-1])throw new Error("Invalid local format");e(u[i-1],c)}u[i]=c}return n}(t)},Node2Text:function(t){return function(t){if(t)return/^\s*$/.test(t.data.text)&&(t.data.text="分支主题"),i(function t(e){var n={};n.data=e.getData();var r=e.getChildren();n.children=[];for(var i=0;i<r.length;i++)n.children.push(t(r[i]));return n}(t))}(t)}})}},e[69]={value:function(t,n,r){e.r(31).register("default",{getLayout:function(t){if(t.getData("layout"))return t.getData("layout");var e=t.getLevel();return 0===e?"mind":1===e?t.getLayoutPointPreview().x>0?"right":"left":t.parent.getLayout()},getConnect:function(t){return 1==t.getLevel()?"arc":"under"}})}},e[70]={value:function(t,n,r){e.r(31).register("filetree",{getLayout:function(t){return t.getData("layout")?t.getData("layout"):t.isRoot()?"bottom":"filetree-down"},getConnect:function(t){return 1==t.getLevel()?"poly":"l"}})}},e[71]={value:function(t,n,r){e.r(31).register("fish-bone",{getLayout:function(t){if(t.getData("layout"))return t.getData("layout");var e=t.getLevel();return 0===e?"fish-bone-master":1===e?"fish-bone-slave":t.getLayoutPointPreview().y>0?"filetree-up":"filetree-down"},getConnect:function(t){switch(t.getLevel()){case 1:return"fish-bone-master";case 2:return"line";default:return"l"}}})}},e[72]={value:function(t,n,r){e.r(31).register("right",{getLayout:function(t){return t.getData("layout")||"right"},getConnect:function(t){return 1==t.getLevel()?"arc":"bezier"}})}},e[73]={value:function(t,n,r){e.r(31).register("structure",{getLayout:function(t){return t.getData("layout")||"bottom"},getConnect:function(t){return"poly"}})}},e[74]={value:function(t,n,r){e.r(31).register("tianpan",{getLayout:function(t){return t.getData("layout")?t.getData("layout"):0===t.getLevel()?"tianpan":t.parent.getLayout()},getConnect:function(t){return"arc_tp"}})}},e[75]={value:function(t,n,r){var i=e.r(32);["classic","classic-compact"].forEach(function(t){var e="classic-compact"==t;i.register(t,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":e?[10,25]:[15,25],"root-margin":e?[15,25]:[30,100],"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":e?[5,15]:[6,20],"main-margin":e?[5,10]:20,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"white","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":e?[5,10]:[15,20],"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})})}},e[76]={value:function(t,n,r){e.r(32).register("fish",{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":[35,35],"root-margin":30,"root-radius":100,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":[6,20],"main-margin":[20,20],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[10],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":3,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}},e[77]={value:function(t,n,r){function i(t,e,n){return s.Color.createHSL(t,e,n)}function o(t,e){return{background:"#fbfbfb","root-color":"white","root-background":i(t,37,60),"root-stroke":i(t,37,60),"root-font-size":16,"root-padding":e?[6,12]:[12,24],"root-margin":e?10:[30,100],"root-radius":5,"root-space":10,"main-color":"black","main-background":i(t,33,95),"main-stroke":i(t,37,60),"main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":e?8:20,"main-radius":3,"main-space":5,"sub-color":"black","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":e?[3,5]:[5,10],"sub-margin":e?[4,8]:[15,20],"sub-radius":5,"sub-space":5,"connect-color":i(t,37,60),"connect-width":1,"connect-radius":5,"selected-stroke":i(t,26,30),"selected-stroke-width":"3","blur-selected-stroke":i(t,10,60),"marquee-background":i(t,100,80).set("a",.1),"marquee-stroke":i(t,37,60),"drop-hint-color":i(t,26,35),"drop-hint-width":5,"order-hint-area-color":i(t,100,30).set("a",.5),"order-hint-path-color":i(t,100,25),"order-hint-path-width":1,"text-selection-color":i(t,100,20),"line-height":1.5}}var a,s=e.r(17),c=e.r(32),u={red:0,soil:25,green:122,blue:204,purple:246,pink:334};for(a in u)c.register("fresh-"+a,o(u[a])),c.register("fresh-"+a+"-compat",o(u[a],!0))}},e[78]={value:function(t,n,r){var i=e.r(32);["snow","snow-compact"].forEach(function(t){var e="snow-compact"==t;i.register(t,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":e?[5,10]:[15,25],"root-margin":e?15:30,"root-radius":5,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":e?[4,10]:[6,20],"main-margin":e?[5,10]:[20,40],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":e?[5,10]:[10,20],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})})}},e[79]={value:function(t,n,r){var i=e.r(32);["tianpan","tianpan-compact"].forEach(function(t){var e="tianpan-compact"==t;i.register(t,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":25,"root-padding":e?15:20,"root-margin":e?[15,25]:100,"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","root-shape":"circle","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":15,"main-padding":e?10:12,"main-margin":e?10:12,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","main-shape":"circle","sub-color":"#333","sub-background":"#99ca6a","sub-stroke":"#a4c5c0","sub-font-size":13,"sub-padding":5,"sub-margin":e?6:10,"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"sub-shadow":"rgba(0, 0, 0, .25)","sub-shape":"circle","connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.4})})}},e[80]={value:function(t,n,r){e.r(32).register("wire",{background:"black",color:"#999",stroke:"none",padding:10,margin:20,"font-size":14,"connect-color":"#999","connect-width":1,"selected-background":"#999","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}};var n={"expose-kityminder":34};!function(t){e.r([n[t]])}("expose-kityminder")}()}).call(e,n(66))},function(t,e,n){"use strict";var r=n(50),i=n(161);var o=function(t){n(80)},a=n(82)(r.a,i.a,!1,o,"data-v-35df9c59",null);e.a=a.exports},function(t,e){},function(t,e){t.exports=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],s={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}},function(t,e){t.exports=function(t,e,n,r,i,o){var a,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,s=t.default);var u,l="function"==typeof s?s.options:s;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=u):r&&(u=r),u){var h=l.functional,f=h?l.render:l.beforeCreate;h?(l._injectStyles=u,l.render=function(t,e){return u.call(e),f(t,e)}):l.beforeCreate=f?[].concat(f,u):[u]}return{esModule:a,exports:s,options:l}}},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return Kn});
/*!
* Vue.js v2.7.16
* (c) 2014-2023 Evan You
* Released under the MIT License.
*/
var r=Object.freeze({}),i=Array.isArray;function o(t){return void 0===t||null===t}function a(t){return void 0!==t&&null!==t}function s(t){return!0===t}function c(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function u(t){return"function"==typeof t}function l(t){return null!==t&&"object"==typeof t}var h=Object.prototype.toString;function f(t){return"[object Object]"===h.call(t)}function d(t){return"[object RegExp]"===h.call(t)}function p(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function g(t){return a(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function m(t){return null==t?"":Array.isArray(t)||f(t)&&t.toString===h?JSON.stringify(t,v,2):String(t)}function v(t,e){return e&&e.__v_isRef?e.value:e}function b(t){var e=parseFloat(t);return isNaN(e)?t:e}function y(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var w=y("slot,component",!0),x=y("key,ref,slot,slot-scope,is");function _(t,e){var n=t.length;if(n){if(e===t[n-1])return void(t.length=n-1);var r=t.indexOf(e);if(r>-1)return t.splice(r,1)}}var A=Object.prototype.hasOwnProperty;function S(t,e){return A.call(t,e)}function k(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var N=/-(\w)/g,C=k(function(t){return t.replace(N,function(t,e){return e?e.toUpperCase():""})}),L=k(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),P=/\B([A-Z])/g,M=k(function(t){return t.replace(P,"-$1").toLowerCase()});var I=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function T(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function E(t,e){for(var n in e)t[n]=e[n];return t}function O(t){for(var e={},n=0;n<t.length;n++)t[n]&&E(e,t[n]);return e}function D(t,e,n){}var R=function(t,e,n){return!1},j=function(t){return t};function F(t,e){if(t===e)return!0;var n=l(t),r=l(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every(function(t,n){return F(t,e[n])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every(function(n){return F(t[n],e[n])})}catch(t){return!1}}function B(t,e){for(var n=0;n<t.length;n++)if(F(t[n],e))return n;return-1}function z(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function q(t,e){return t===e?0===t&&1/t!=1/e:t==t||e==e}var U="data-server-rendered",V=["component","directive","filter"],H=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],G={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:R,isReservedAttr:R,isUnknownElement:R,getTagNamespace:D,parsePlatformTagName:j,mustUseProp:R,async:!0,_lifecycleHooks:H},W=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function Y(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function Z(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var J=new RegExp("[^".concat(W.source,".$_\\d]"));var Q="__proto__"in{},X="undefined"!=typeof window,K=X&&window.navigator.userAgent.toLowerCase(),$=K&&/msie|trident/.test(K),tt=K&&K.indexOf("msie 9.0")>0,et=K&&K.indexOf("edge/")>0;K&&K.indexOf("android");var nt=K&&/iphone|ipad|ipod|ios/.test(K);K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K);var rt,it=K&&K.match(/firefox\/(\d+)/),ot={}.watch,at=!1;if(X)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(t){}var ct=function(){return void 0===rt&&(rt=!X&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),rt},ut=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"==typeof t&&/native code/.test(t.toString())}var ht,ft="undefined"!=typeof Symbol&<(Symbol)&&"undefined"!=typeof Reflect&<(Reflect.ownKeys);ht="undefined"!=typeof Set&<(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=null;function pt(t){void 0===t&&(t=null),t||dt&&dt._scope.off(),dt=t,t&&t._scope.on()}var gt=function(){function t(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),mt=function(t){void 0===t&&(t="");var e=new gt;return e.text=t,e.isComment=!0,e};function vt(t){return new gt(void 0,void 0,void 0,String(t))}function bt(t){var e=new gt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}"function"==typeof SuppressedError&&SuppressedError;var yt=0,wt=[],xt=function(){for(var t=0;t<wt.length;t++){var e=wt[t];e.subs=e.subs.filter(function(t){return t}),e._pending=!1}wt.length=0},_t=function(){function t(){this._pending=!1,this.id=yt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,wt.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter(function(t){return t});for(var n=0,r=e.length;n<r;n++){var i=e[n];0,i.update()}},t}();_t.target=null;var At=[];function St(t){At.push(t),_t.target=t}function kt(){At.pop(),_t.target=At[At.length-1]}var Nt=Array.prototype,Ct=Object.create(Nt);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Nt[t];Z(Ct,t,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o})});var Lt=Object.getOwnPropertyNames(Ct),Pt={},Mt=!0;function It(t){Mt=t}var Tt={notify:D,depend:D,addSub:D,removeSub:D},Et=function(){function t(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),this.value=t,this.shallow=e,this.mock=n,this.dep=n?Tt:new _t,this.vmCount=0,Z(t,"__ob__",this),i(t)){if(!n)if(Q)t.__proto__=Ct;else for(var r=0,o=Lt.length;r<o;r++){Z(t,s=Lt[r],Ct[s])}e||this.observeArray(t)}else{var a=Object.keys(t);for(r=0;r<a.length;r++){var s;Dt(t,s=a[r],Pt,void 0,e,n)}}}return t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Ot(t[e],!1,this.mock)},t}();function Ot(t,e,n){return t&&S(t,"__ob__")&&t.__ob__ instanceof Et?t.__ob__:!Mt||!n&&ct()||!i(t)&&!f(t)||!Object.isExtensible(t)||t.__v_skip||qt(t)||t instanceof gt?void 0:new Et(t,e,n)}function Dt(t,e,n,r,o,a,s){void 0===s&&(s=!1);var c=new _t,u=Object.getOwnPropertyDescriptor(t,e);if(!u||!1!==u.configurable){var l=u&&u.get,h=u&&u.set;l&&!h||n!==Pt&&2!==arguments.length||(n=t[e]);var f=o?n&&n.__ob__:Ot(n,!1,a);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=l?l.call(t):n;return _t.target&&(c.depend(),f&&(f.dep.depend(),i(e)&&function t(e){for(var n=void 0,r=0,o=e.length;r<o;r++)(n=e[r])&&n.__ob__&&n.__ob__.dep.depend(),i(n)&&t(n)}(e))),qt(e)&&!o?e.value:e},set:function(e){var r=l?l.call(t):n;if(q(r,e)){if(h)h.call(t,e);else{if(l)return;if(!o&&qt(r)&&!qt(e))return void(r.value=e);n=e}f=o?e&&e.__ob__:Ot(e,!1,a),c.notify()}}}),c}}function Rt(t,e,n){if(!zt(t)){var r=t.__ob__;return i(t)&&p(e)?(t.length=Math.max(t.length,e),t.splice(e,1,n),r&&!r.shallow&&r.mock&&Ot(n,!1,!0),n):e in t&&!(e in Object.prototype)?(t[e]=n,n):t._isVue||r&&r.vmCount?n:r?(Dt(r.value,e,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(t[e]=n,n)}}function jt(t,e){if(i(t)&&p(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||zt(t)||S(t,e)&&(delete t[e],n&&n.dep.notify())}}function Ft(t){return Bt(t,!0),Z(t,"__v_isShallow",!0),t}function Bt(t,e){if(!zt(t)){Ot(t,e,ct());0}}function zt(t){return!(!t||!t.__v_isReadonly)}function qt(t){return!(!t||!0!==t.__v_isRef)}function Ut(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];if(qt(t))return t.value;var r=t&&t.__ob__;return r&&r.dep.depend(),t},set:function(t){var r=e[n];qt(r)&&!qt(t)?r.value=t:e[n]=t}})}var Vt=k(function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}});function Ht(t,e){function n(){var t=n.fns;if(!i(t))return tn(t,null,arguments,e,"v-on handler");for(var r=t.slice(),o=0;o<r.length;o++)tn(r[o],null,arguments,e,"v-on handler")}return n.fns=t,n}function Gt(t,e,n,r,i,a){var c,u,l,h;for(c in t)u=t[c],l=e[c],h=Vt(c),o(u)||(o(l)?(o(u.fns)&&(u=t[c]=Ht(u,a)),s(h.once)&&(u=t[c]=i(h.name,u,h.capture)),n(h.name,u,h.capture,h.passive,h.params)):u!==l&&(l.fns=u,t[c]=l));for(c in e)o(t[c])&&r((h=Vt(c)).name,e[c],h.capture)}function Wt(t,e,n){var r;t instanceof gt&&(t=t.data.hook||(t.data.hook={}));var i=t[e];function c(){n.apply(this,arguments),_(r.fns,c)}o(i)?r=Ht([c]):a(i.fns)&&s(i.merged)?(r=i).fns.push(c):r=Ht([i,c]),r.merged=!0,t[e]=r}function Yt(t,e,n,r,i){if(a(e)){if(S(e,n))return t[n]=e[n],i||delete e[n],!0;if(S(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function Zt(t){return c(t)?[vt(t)]:i(t)?function t(e,n){var r=[];var u,l,h,f;for(u=0;u<e.length;u++)o(l=e[u])||"boolean"==typeof l||(h=r.length-1,f=r[h],i(l)?l.length>0&&(Jt((l=t(l,"".concat(n||"","_").concat(u)))[0])&&Jt(f)&&(r[h]=vt(f.text+l[0].text),l.shift()),r.push.apply(r,l)):c(l)?Jt(f)?r[h]=vt(f.text+l):""!==l&&r.push(vt(l)):Jt(l)&&Jt(f)?r[h]=vt(f.text+l.text):(s(e._isVList)&&a(l.tag)&&o(l.key)&&a(n)&&(l.key="__vlist".concat(n,"_").concat(u,"__")),r.push(l)));return r}(t):void 0}function Jt(t){return a(t)&&a(t.text)&&!1===t.isComment}var Qt=1,Xt=2;function Kt(t,e,n,r,h,f){return(i(n)||c(n))&&(h=r,r=n,n=void 0),s(f)&&(h=Xt),function(t,e,n,r,c){if(a(n)&&a(n.__ob__))return mt();a(n)&&a(n.is)&&(e=n.is);if(!e)return mt();0;i(r)&&u(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);c===Xt?r=Zt(r):c===Qt&&(r=function(t){for(var e=0;e<t.length;e++)if(i(t[e]))return Array.prototype.concat.apply([],t);return t}(r));var h,f;if("string"==typeof e){var d=void 0;f=t.$vnode&&t.$vnode.ns||G.getTagNamespace(e),h=G.isReservedTag(e)?new gt(G.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!a(d=Wn(t.$options,"components",e))?new gt(e,n,r,void 0,void 0,t):Rn(d,n,t,r,e)}else h=Rn(e,n,t,r);return i(h)?h:a(h)?(a(f)&&function t(e,n,r){e.ns=n;"foreignObject"===e.tag&&(n=void 0,r=!0);if(a(e.children))for(var i=0,c=e.children.length;i<c;i++){var u=e.children[i];a(u.tag)&&(o(u.ns)||s(r)&&"svg"!==u.tag)&&t(u,n,r)}}(h,f),a(n)&&function(t){l(t.style)&&mn(t.style);l(t.class)&&mn(t.class)}(n),h):mt()}(t,e,n,r,h)}function $t(t,e){var n,r,o,s,c=null;if(i(t)||"string"==typeof t)for(c=new Array(t.length),n=0,r=t.length;n<r;n++)c[n]=e(t[n],n);else if("number"==typeof t)for(c=new Array(t),n=0;n<t;n++)c[n]=e(n+1,n);else if(l(t))if(ft&&t[Symbol.iterator]){c=[];for(var u=t[Symbol.iterator](),h=u.next();!h.done;)c.push(e(h.value,c.length)),h=u.next()}else for(o=Object.keys(t),c=new Array(o.length),n=0,r=o.length;n<r;n++)s=o[n],c[n]=e(t[s],s,n);return a(c)||(c=[]),c._isVList=!0,c}function te(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=E(E({},r),n)),i=o(n)||(u(e)?e():e)):i=this.$slots[t]||(u(e)?e():e);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function ee(t){return Wn(this.$options,"filters",t,!0)||j}function ne(t,e){return i(t)?-1===t.indexOf(e):t!==e}function re(t,e,n,r,i){var o=G.keyCodes[e]||n;return i&&r&&!G.keyCodes[e]?ne(i,r):o?ne(o,t):r?M(r)!==e:void 0===t}function ie(t,e,n,r,o){if(n)if(l(n)){i(n)&&(n=O(n));var a=void 0,s=function(i){if("class"===i||"style"===i||x(i))a=t;else{var s=t.attrs&&t.attrs.type;a=r||G.mustUseProp(e,s,i)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=C(i),u=M(i);c in a||u in a||(a[i]=n[i],o&&((t.on||(t.on={}))["update:".concat(i)]=function(t){n[i]=t}))};for(var c in n)s(c)}else;return t}function oe(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e?r:(se(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),"__static__".concat(t),!1),r)}function ae(t,e,n){return se(t,"__once__".concat(e).concat(n?"_".concat(n):""),!0),t}function se(t,e,n){if(i(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&ce(t[r],"".concat(e,"_").concat(r),n);else ce(t,e,n)}function ce(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function ue(t,e){if(e)if(f(e)){var n=t.on=t.on?E({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function le(t,e,n,r){e=e||{$stable:!n};for(var o=0;o<t.length;o++){var a=t[o];i(a)?le(a,e,n):a&&(a.proxy&&(a.fn.proxy=!0),e[a.key]=a.fn)}return r&&(e.$key=r),e}function he(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function fe(t,e){return"string"==typeof t?e+t:t}function de(t){t._o=ae,t._n=b,t._s=m,t._l=$t,t._t=te,t._q=F,t._i=B,t._m=oe,t._f=ee,t._k=re,t._b=ie,t._v=vt,t._e=mt,t._u=le,t._g=ue,t._d=he,t._p=fe}function pe(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(ge)&&delete n[u];return n}function ge(t){return t.isComment&&!t.asyncFactory||" "===t.text}function me(t){return t.isComment&&t.asyncFactory}function ve(t,e,n,i){var o,a=Object.keys(n).length>0,s=e?!!e.$stable:!a,c=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&i&&i!==r&&c===i.$key&&!a&&!i.$hasNormal)return i;for(var u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=be(t,n,u,e[u]))}else o={};for(var l in n)l in o||(o[l]=ye(n,l));return e&&Object.isExtensible(e)&&(e._normalized=o),Z(o,"$stable",s),Z(o,"$key",c),Z(o,"$hasNormal",a),o}function be(t,e,n,r){var o=function(){var e=dt;pt(t);var n=arguments.length?r.apply(null,arguments):r({}),o=(n=n&&"object"==typeof n&&!i(n)?[n]:Zt(n))&&n[0];return pt(e),n&&(!o||1===n.length&&o.isComment&&!me(o))?void 0:n};return r.proxy&&Object.defineProperty(e,n,{get:o,enumerable:!0,configurable:!0}),o}function ye(t,e){return function(){return t[e]}}function we(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};Z(e,"_v_attr_proxy",!0),xe(e,t.$attrs,r,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||xe(t._listenersProxy={},t.$listeners,r,t,"$listeners");return t._listenersProxy},get slots(){return function(t){t._slotsProxy||Ae(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(t)},emit:I(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach(function(n){return Ut(t,e,n)})}}}function xe(t,e,n,r,i){var o=!1;for(var a in e)a in t?e[a]!==n[a]&&(o=!0):(o=!0,_e(t,a,r,i));for(var a in t)a in e||(o=!0,delete t[a]);return o}function _e(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function Ae(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}var Se,ke,Ne=null;function Ce(t,e){return(t.__esModule||ft&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function Le(t){if(i(t))for(var e=0;e<t.length;e++){var n=t[e];if(a(n)&&(a(n.componentOptions)||me(n)))return n}}function Pe(t,e){Se.$on(t,e)}function Me(t,e){Se.$off(t,e)}function Ie(t,e){var n=Se;return function r(){null!==e.apply(null,arguments)&&n.$off(t,r)}}function Te(t,e,n){Se=t,Gt(e,n||{},Pe,Me,Ie,t),Se=void 0}var Ee=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=ke,!t&&ke&&(this.index=(ke.scopes||(ke.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=ke;try{return ke=this,t()}finally{ke=e}}else 0},t.prototype.on=function(){ke=this},t.prototype.off=function(){ke=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,n=void 0;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].teardown();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},t}();var Oe=null;function De(t){var e=Oe;return Oe=t,function(){Oe=e}}function Re(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function je(t,e){if(e){if(t._directInactive=!1,Re(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)je(t.$children[n]);Fe(t,"activated")}}function Fe(t,e,n,r){void 0===r&&(r=!0),St();var i=dt,o=ke;r&&pt(t);var a=t.$options[e],s="".concat(e," hook");if(a)for(var c=0,u=a.length;c<u;c++)tn(a[c],t,n||null,t,s);t._hasHookEvent&&t.$emit("hook:"+e),r&&(pt(i),o&&o.on()),kt()}var Be=[],ze=[],qe={},Ue=!1,Ve=!1,He=0;var Ge=0,We=Date.now;if(X&&!$){var Ye=window.performance;Ye&&"function"==typeof Ye.now&&We()>document.createEvent("Event").timeStamp&&(We=function(){return Ye.now()})}var Ze=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function Je(){var t,e;for(Ge=We(),Ve=!0,Be.sort(Ze),He=0;He<Be.length;He++)(t=Be[He]).before&&t.before(),e=t.id,qe[e]=null,t.run();var n=ze.slice(),r=Be.slice();He=Be.length=ze.length=0,qe={},Ue=Ve=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,je(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&Fe(r,"updated")}}(r),xt(),ut&&G.devtools&&ut.emit("flush")}function Qe(t){var e=t.id;if(null==qe[e]&&(t!==_t.target||!t.noRecurse)){if(qe[e]=!0,Ve){for(var n=Be.length-1;n>He&&Be[n].id>t.id;)n--;Be.splice(n+1,0,t)}else Be.push(t);Ue||(Ue=!0,dn(Je))}}var Xe="watcher";"".concat(Xe," callback"),"".concat(Xe," getter"),"".concat(Xe," cleanup");function Ke(t){var e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}function $e(t,e,n){St();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,t,e,n))return}catch(t){en(t,r,"errorCaptured hook")}}en(t,e,n)}finally{kt()}}function tn(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&g(o)&&!o._handled&&(o.catch(function(t){return $e(t,r,i+" (Promise/async)")}),o._handled=!0)}catch(t){$e(t,r,i)}return o}function en(t,e,n){if(G.errorHandler)try{return G.errorHandler.call(null,t,e,n)}catch(e){e!==t&&nn(e,null,"config.errorHandler")}nn(t,e,n)}function nn(t,e,n){if(!X||"undefined"==typeof console)throw t;console.error(t)}var rn,on=!1,an=[],sn=!1;function cn(){sn=!1;var t=an.slice(0);an.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&<(Promise)){var un=Promise.resolve();rn=function(){un.then(cn),nt&&setTimeout(D)},on=!0}else if($||"undefined"==typeof MutationObserver||!lt(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())rn="undefined"!=typeof setImmediate&<(setImmediate)?function(){setImmediate(cn)}:function(){setTimeout(cn,0)};else{var ln=1,hn=new MutationObserver(cn),fn=document.createTextNode(String(ln));hn.observe(fn,{characterData:!0}),rn=function(){ln=(ln+1)%2,fn.data=String(ln)},on=!0}function dn(t,e){var n;if(an.push(function(){if(t)try{t.call(e)}catch(t){$e(t,e,"nextTick")}else n&&n(e)}),sn||(sn=!0,rn()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){n=t})}function pn(t){return function(e,n){if(void 0===n&&(n=dt),n)return function(t,e,n){var r=t.$options;r[e]=Un(r[e],n)}(n,t,e)}}pn("beforeMount"),pn("mounted"),pn("beforeUpdate"),pn("updated"),pn("beforeDestroy"),pn("destroyed"),pn("activated"),pn("deactivated"),pn("serverPrefetch"),pn("renderTracked"),pn("renderTriggered"),pn("errorCaptured");var gn=new ht;function mn(t){return function t(e,n){var r,o;var a=i(e);if(!a&&!l(e)||e.__v_skip||Object.isFrozen(e)||e instanceof gt)return;if(e.__ob__){var s=e.__ob__.dep.id;if(n.has(s))return;n.add(s)}if(a)for(r=e.length;r--;)t(e[r],n);else if(qt(e))t(e.value,n);else for(o=Object.keys(e),r=o.length;r--;)t(e[o[r]],n)}(t,gn),gn.clear(),t}var vn=0,bn=function(){function t(t,e,n,r,i){var o,a;o=this,void 0===(a=ke&&!ke._vm?ke:t?t._scope:void 0)&&(a=ke),a&&a.active&&a.effects.push(o),(this.vm=t)&&i&&(t._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++vn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="",u(e)?this.getter=e:(this.getter=function(t){if(!J.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){var t;St(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;$e(t,e,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&mn(t),kt(),this.cleanupDeps()}return t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Qe(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'.concat(this.expression,'"');tn(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&_(this.vm._scope.effects,this),this.active){for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}(),yn={enumerable:!0,configurable:!0,get:D,set:D};function wn(t,e,n){yn.get=function(){return this[e][n]},yn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,yn)}function xn(t){var e=t.$options;if(e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props=Ft({}),i=t.$options._propKeys=[],o=!t.$parent;o||It(!1);var a=function(o){i.push(o);var a=Yn(o,e,n,t);Dt(r,o,a,void 0,!0),o in t||wn(t,"_props",o)};for(var s in e)a(s);It(!0)}(t,e.props),function(t){var e=t.$options,n=e.setup;if(n){var r=t._setupContext=we(t);pt(t),St();var i=tn(n,null,[t._props||Ft({}),r],t,"setup");if(kt(),pt(),u(i))e.render=i;else if(l(i))if(t._setupState=i,i.__sfc){var o=t._setupProxy={};for(var a in i)"__sfc"!==a&&Ut(o,i,a)}else for(var a in i)Y(a)||Ut(t,i,a)}}(t),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?D:I(e[n],t)}(t,e.methods),e.data)!function(t){var e=t.$options.data;f(e=t._data=u(e)?function(t,e){St();try{return t.call(e,e)}catch(t){return $e(t,e,"data()"),{}}finally{kt()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&S(r,o)||Y(o)||wn(t,"_data",o)}var a=Ot(e);a&&a.vmCount++}(t);else{var n=Ot(t._data={});n&&n.vmCount++}e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=ct();for(var i in e){var o=e[i],a=u(o)?o:o.get;0,r||(n[i]=new bn(t,a||D,D,_n)),i in t||An(t,i,o)}}(t,e.computed),e.watch&&e.watch!==ot&&function(t,e){for(var n in e){var r=e[n];if(i(r))for(var o=0;o<r.length;o++)Nn(t,n,r[o]);else Nn(t,n,r)}}(t,e.watch)}var _n={lazy:!0};function An(t,e,n){var r=!ct();u(n)?(yn.get=r?Sn(e):kn(n),yn.set=D):(yn.get=n.get?r&&!1!==n.cache?Sn(e):kn(n.get):D,yn.set=n.set||D),Object.defineProperty(t,e,yn)}function Sn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),_t.target&&e.depend(),e.value}}function kn(t){return function(){return t.call(this,this)}}function Nn(t,e,n,r){return f(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function Cn(t,e){if(t){for(var n=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from;if(a in e._provided)n[o]=e._provided[a];else if("default"in t[o]){var s=t[o].default;n[o]=u(s)?s.call(e):s}else 0}}return n}}var Ln=0;function Pn(t){var e=t.options;if(t.super){var n=Pn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&E(t.extendOptions,r),(e=t.options=Gn(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Mn(t,e,n,o,a){var c,u=this,l=a.options;S(o,"_uid")?(c=Object.create(o))._original=o:(c=o,o=o._original);var h=s(l._compiled),f=!h;this.data=t,this.props=e,this.children=n,this.parent=o,this.listeners=t.on||r,this.injections=Cn(l.inject,o),this.slots=function(){return u.$slots||ve(o,t.scopedSlots,u.$slots=pe(n,o)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ve(o,t.scopedSlots,this.slots())}}),h&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=ve(o,t.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,e,n,r){var a=Kt(c,t,e,n,r,f);return a&&!i(a)&&(a.fnScopeId=l._scopeId,a.fnContext=o),a}:this._c=function(t,e,n,r){return Kt(c,t,e,n,r,f)}}function In(t,e,n,r,i){var o=bt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Tn(t,e){for(var n in e)t[C(n)]=e[n]}function En(t){return t.name||t.__name||t._componentTag}de(Mn.prototype);var On={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;On.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,Oe)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,c=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key||!a&&t.$scopedSlots.$key),u=!!(o||t.$options._renderChildren||c),l=t.$vnode;t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o;var h=i.data.attrs||r;t._attrsProxy&&xe(t._attrsProxy,h,l.data&&l.data.attrs||r,t,"$attrs")&&(u=!0),t.$attrs=h,n=n||r;var f=t.$options._parentListeners;if(t._listenersProxy&&xe(t._listenersProxy,n,f||r,t,"$listeners"),t.$listeners=t.$options._parentListeners=n,Te(t,n,f),e&&t.$options.props){It(!1);for(var d=t._props,p=t.$options._propKeys||[],g=0;g<p.length;g++){var m=p[g],v=t.$options.props;d[m]=Yn(m,v,e,t)}It(!0),t.$options.propsData=e}u&&(t.$slots=pe(o,i.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,Fe(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,ze.push(e)):je(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(!(n&&(e._directInactive=!0,Re(e))||e._inactive)){e._inactive=!0;for(var r=0;r<e.$children.length;r++)t(e.$children[r]);Fe(e,"deactivated")}}(e,!0):e.$destroy())}},Dn=Object.keys(On);function Rn(t,e,n,c,u){if(!o(t)){var h=n.$options._base;if(l(t)&&(t=h.extend(t)),"function"==typeof t){var f;if(o(t.cid)&&void 0===(t=function(t,e){if(s(t.error)&&a(t.errorComp))return t.errorComp;if(a(t.resolved))return t.resolved;var n=Ne;if(n&&a(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),s(t.loading)&&a(t.loadingComp))return t.loadingComp;if(n&&!a(t.owners)){var r=t.owners=[n],i=!0,c=null,u=null;n.$on("hook:destroyed",function(){return _(r,n)});var h=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},f=z(function(n){t.resolved=Ce(n,e),i?r.length=0:h(!0)}),d=z(function(e){a(t.errorComp)&&(t.error=!0,h(!0))}),p=t(f,d);return l(p)&&(g(p)?o(t.resolved)&&p.then(f,d):g(p.component)&&(p.component.then(f,d),a(p.error)&&(t.errorComp=Ce(p.error,e)),a(p.loading)&&(t.loadingComp=Ce(p.loading,e),0===p.delay?t.loading=!0:c=setTimeout(function(){c=null,o(t.resolved)&&o(t.error)&&(t.loading=!0,h(!1))},p.delay||200)),a(p.timeout)&&(u=setTimeout(function(){u=null,o(t.resolved)&&d(null)},p.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(f=t,h)))return function(t,e,n,r,i){var o=mt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(f,e,n,c,u);e=e||{},Pn(t),a(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),s=o[r],c=e.model.callback;a(s)?(i(s)?-1===s.indexOf(c):s!==c)&&(o[r]=[c].concat(s)):o[r]=c}(t.options,e);var d=function(t,e,n){var r=e.options.props;if(!o(r)){var i={},s=t.attrs,c=t.props;if(a(s)||a(c))for(var u in r){var l=M(u);Yt(i,c,u,l,!0)||Yt(i,s,u,l,!1)}return i}}(e,t);if(s(t.options.functional))return function(t,e,n,o,s){var c=t.options,u={},l=c.props;if(a(l))for(var h in l)u[h]=Yn(h,l,e||r);else a(n.attrs)&&Tn(u,n.attrs),a(n.props)&&Tn(u,n.props);var f=new Mn(n,u,s,o,t),d=c.render.call(null,f._c,f);if(d instanceof gt)return In(d,n,f.parent,c);if(i(d)){for(var p=Zt(d)||[],g=new Array(p.length),m=0;m<p.length;m++)g[m]=In(p[m],n,f.parent,c);return g}}(t,d,e,n,c);var p=e.on;if(e.on=e.nativeOn,s(t.options.abstract)){var m=e.slot;e={},m&&(e.slot=m)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<Dn.length;n++){var r=Dn[n],i=e[r],o=On[r];i===o||i&&i._merged||(e[r]=i?jn(o,i):o)}}(e);var v=En(t.options)||u;return new gt("vue-component-".concat(t.cid).concat(v?"-".concat(v):""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:d,listeners:p,tag:u,children:c},f)}}}function jn(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}var Fn=D,Bn=G.optionMergeStrategies;function zn(t,e,n){if(void 0===n&&(n=!0),!e)return t;for(var r,i,o,a=ft?Reflect.ownKeys(e):Object.keys(e),s=0;s<a.length;s++)"__ob__"!==(r=a[s])&&(i=t[r],o=e[r],n&&S(t,r)?i!==o&&f(i)&&f(o)&&zn(i,o):Rt(t,r,o));return t}function qn(t,e,n){return n?function(){var r=u(e)?e.call(n,n):e,i=u(t)?t.call(n,n):t;return r?zn(r,i):i}:e?t?function(){return zn(u(e)?e.call(this,this):e,u(t)?t.call(this,this):t)}:e:t}function Un(t,e){var n=e?t?t.concat(e):i(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Vn(t,e,n,r){var i=Object.create(t||null);return e?E(i,e):i}Bn.data=function(t,e,n){return n?qn(t,e,n):e&&"function"!=typeof e?t:qn(t,e)},H.forEach(function(t){Bn[t]=Un}),V.forEach(function(t){Bn[t+"s"]=Vn}),Bn.watch=function(t,e,n,r){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var o={};for(var a in E(o,t),e){var s=o[a],c=e[a];s&&!i(s)&&(s=[s]),o[a]=s?s.concat(c):i(c)?c:[c]}return o},Bn.props=Bn.methods=Bn.inject=Bn.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return E(i,t),e&&E(i,e),i},Bn.provide=function(t,e){return t?function(){var n=Object.create(null);return zn(n,u(t)?t.call(this):t),e&&zn(n,u(e)?e.call(this):e,!1),n}:e};var Hn=function(t,e){return void 0===e?t:e};function Gn(t,e,n){if(u(e)&&(e=e.options),function(t,e){var n=t.props;if(n){var r,o,a={};if(i(n))for(r=n.length;r--;)"string"==typeof(o=n[r])&&(a[C(o)]={type:null});else if(f(n))for(var s in n)o=n[s],a[C(s)]=f(o)?o:{type:o};t.props=a}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(i(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(f(n))for(var a in n){var s=n[a];r[a]=f(s)?E({from:a},s):{from:s}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];u(r)&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Gn(t,e.extends,n)),e.mixins))for(var r=0,o=e.mixins.length;r<o;r++)t=Gn(t,e.mixins[r],n);var a,s={};for(a in t)c(a);for(a in e)S(t,a)||c(a);function c(r){var i=Bn[r]||Hn;s[r]=i(t[r],e[r],n,r)}return s}function Wn(t,e,n,r){if("string"==typeof n){var i=t[e];if(S(i,n))return i[n];var o=C(n);if(S(i,o))return i[o];var a=L(o);return S(i,a)?i[a]:i[n]||i[o]||i[a]}}function Yn(t,e,n,r){var i=e[t],o=!S(n,t),a=n[t],s=Xn(Boolean,i.type);if(s>-1)if(o&&!S(i,"default"))a=!1;else if(""===a||a===M(t)){var c=Xn(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(!S(e,"default"))return;var r=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return u(r)&&"Function"!==Jn(e.type)?r.call(t):r}(r,i,t);var l=Mt;It(!0),Ot(a),It(l)}return a}var Zn=/^\s*function (\w+)/;function Jn(t){var e=t&&t.toString().match(Zn);return e?e[1]:""}function Qn(t,e){return Jn(t)===Jn(e)}function Xn(t,e){if(!i(e))return Qn(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Qn(e[n],t))return n;return-1}function Kn(t){this._init(t)}function $n(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=En(t)||En(n.options);var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Gn(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)wn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)An(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,V.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=E({},a.options),i[r]=a,a}}function tr(t){return t&&(En(t.Ctor.options)||t.tag)}function er(t,e){return i(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function nr(t,e){var n=t.cache,r=t.keys,i=t._vnode,o=t.$vnode;for(var a in n){var s=n[a];if(s){var c=s.name;c&&!e(c)&&rr(n,a,r,i)}}o.componentOptions.children=void 0}function rr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,_(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Ln++,e._isVue=!0,e.__v_skip=!0,e._scope=new Ee(!0),e._scope.parent=void 0,e._scope._vm=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Gn(Pn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Te(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=pe(e._renderChildren,i),t.$scopedSlots=n?ve(t.$parent,n.data.scopedSlots,t.$slots):r,t._c=function(e,n,r,i){return Kt(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Kt(t,e,n,r,i,!0)};var o=n&&n.data;Dt(t,"$attrs",o&&o.attrs||r,null,!0),Dt(t,"$listeners",e._parentListeners||r,null,!0)}(e),Fe(e,"beforeCreate",void 0,!1),function(t){var e=Cn(t.$options.inject,t);e&&(It(!1),Object.keys(e).forEach(function(n){Dt(t,n,e[n])}),It(!0))}(e),xn(e),function(t){var e=t.$options.provide;if(e){var n=u(e)?e.call(t):e;if(!l(n))return;for(var r=Ke(t),i=ft?Reflect.ownKeys(n):Object.keys(n),o=0;o<i.length;o++){var a=i[o];Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))}}}(e),Fe(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Kn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Rt,t.prototype.$delete=jt,t.prototype.$watch=function(t,e,n){if(f(e))return Nn(this,t,e,n);(n=n||{}).user=!0;var r=new bn(this,t,e,n);if(n.immediate){var i='callback for immediate watcher "'.concat(r.expression,'"');St(),tn(e,this,[r.value],this,i),kt()}return function(){r.teardown()}}}(Kn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(i(t))for(var o=0,a=t.length;o<a;o++)r.$on(t[o],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(i(t)){for(var r=0,o=t.length;r<o;r++)n.$off(t[r],e);return n}var a,s=n._events[t];if(!s)return n;if(!e)return n._events[t]=null,n;for(var c=s.length;c--;)if((a=s[c])===e||a.fn===e){s.splice(c,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?T(n):n;for(var r=T(arguments,1),i='event handler for "'.concat(t,'"'),o=0,a=n.length;o<a;o++)tn(n[o],e,r,e,i)}return e}}(Kn),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=De(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var a=n;a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode;)a.$parent.$el=a.$el,a=a.$parent},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Fe(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||_(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Fe(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(Kn),function(t){de(t.prototype),t.prototype.$nextTick=function(t){return dn(t,this)},t.prototype._render=function(){var t=this,e=t.$options,n=e.render,r=e._parentVnode;r&&t._isMounted&&(t.$scopedSlots=ve(t.$parent,r.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&Ae(t._slotsProxy,t.$scopedSlots)),t.$vnode=r;var o,a=dt,s=Ne;try{pt(t),Ne=t,o=n.call(t._renderProxy,t.$createElement)}catch(e){$e(e,t,"render"),o=t._vnode}finally{Ne=s,pt(a)}return i(o)&&1===o.length&&(o=o[0]),o instanceof gt||(o=mt()),o.parent=r,o}}(Kn);var ir=[String,RegExp,Array],or={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:ir,exclude:ir,max:[String,Number]},methods:{cacheVNode:function(){var t=this.cache,e=this.keys,n=this.vnodeToCache,r=this.keyToCache;if(n){var i=n.tag,o=n.componentInstance,a=n.componentOptions;t[r]={name:tr(a),tag:i,componentInstance:o},e.push(r),this.max&&e.length>parseInt(this.max)&&rr(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)rr(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",function(e){nr(t,function(t){return er(e,t)})}),this.$watch("exclude",function(e){nr(t,function(t){return!er(e,t)})})},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Le(t),n=e&&e.componentOptions;if(n){var r=tr(n),i=this.include,o=this.exclude;if(i&&(!r||!er(i,r))||o&&r&&er(o,r))return e;var a=this.cache,s=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,_(s,c),s.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return G}};Object.defineProperty(t,"config",e),t.util={warn:Fn,extend:E,mergeOptions:Gn,defineReactive:Dt},t.set=Rt,t.delete=jt,t.nextTick=dn,t.observable=function(t){return Ot(t),t},t.options=Object.create(null),V.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,E(t.options.components,or),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=T(arguments,1);return n.unshift(this),u(t.install)?t.install.apply(t,n):u(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Gn(this.options,t),this}}(t),$n(t),function(t){V.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&f(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&u(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(Kn),Object.defineProperty(Kn.prototype,"$isServer",{get:ct}),Object.defineProperty(Kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Kn,"FunctionalRenderContext",{value:Mn}),Kn.version="2.7.16";var ar=y("style,class"),sr=y("input,textarea,option,select,progress"),cr=function(t,e,n){return"value"===n&&sr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},ur=y("contenteditable,draggable,spellcheck"),lr=y("events,caret,typing,plaintext-only"),hr=function(t,e){return mr(e)||"false"===e?"false":"contenteditable"===t&&lr(e)?e:"true"},fr=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),dr="http://www.w3.org/1999/xlink",pr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},gr=function(t){return pr(t)?t.slice(6,t.length):""},mr=function(t){return null==t||!1===t};function vr(t){for(var e=t.data,n=t,r=t;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=br(r.data,e));for(;a(n=n.parent);)n&&n.data&&(e=br(e,n.data));return function(t,e){if(a(t)||a(e))return yr(t,wr(e));return""}(e.staticClass,e.class)}function br(t,e){return{staticClass:yr(t.staticClass,e.staticClass),class:a(t.class)?[t.class,e.class]:e.class}}function yr(t,e){return t?e?t+" "+e:t:e||""}function wr(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r<i;r++)a(e=wr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):l(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var xr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},_r=y("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Ar=y("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Sr=function(t){return _r(t)||Ar(t)};function kr(t){return Ar(t)?"svg":"math"===t?"math":void 0}var Nr=Object.create(null);var Cr=y("text,number,password,search,email,tel,url");function Lr(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}var Pr=Object.freeze({__proto__:null,createElement:function(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(t,e){return document.createElementNS(xr[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Mr={create:function(t,e){Ir(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ir(t,!0),Ir(e))},destroy:function(t){Ir(t,!0)}};function Ir(t,e){var n=t.data.ref;if(a(n)){var r=t.context,o=t.componentInstance||t.elm,s=e?null:o,c=e?void 0:o;if(u(n))tn(n,r,[s],r,"template ref function");else{var l=t.data.refInFor,h="string"==typeof n||"number"==typeof n,f=qt(n),d=r.$refs;if(h||f)if(l){var p=h?d[n]:n.value;e?i(p)&&_(p,o):i(p)?p.includes(o)||p.push(o):h?(d[n]=[o],Tr(r,n,d[n])):n.value=[o]}else if(h){if(e&&d[n]!==o)return;d[n]=c,Tr(r,n,s)}else if(f){if(e&&n.value!==o)return;n.value=s}else 0}}}function Tr(t,e,n){var r=t._setupState;r&&S(r,e)&&(qt(r[e])?r[e].value=n:r[e]=n)}var Er=new gt("",{},[]),Or=["create","activate","update","remove","destroy"];function Dr(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&a(t.data)===a(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=a(n=t.data)&&a(n=n.attrs)&&n.type,i=a(n=e.data)&&a(n=n.attrs)&&n.type;return r===i||Cr(r)&&Cr(i)}(t,e)||s(t.isAsyncPlaceholder)&&o(e.asyncFactory.error))}function Rr(t,e,n){var r,i,o={};for(r=e;r<=n;++r)a(i=t[r].key)&&(o[i]=r);return o}var jr={create:Fr,update:Fr,destroy:function(t){Fr(t,Er)}};function Fr(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===Er,a=e===Er,s=zr(t.data.directives,t.context),c=zr(e.data.directives,e.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Ur(i,"update",e,t),i.def&&i.def.componentUpdated&&l.push(i)):(Ur(i,"bind",e,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var h=function(){for(var n=0;n<u.length;n++)Ur(u[n],"inserted",e,t)};o?Wt(e,"insert",h):h()}l.length&&Wt(e,"postpatch",function(){for(var n=0;n<l.length;n++)Ur(l[n],"componentUpdated",e,t)});if(!o)for(n in s)c[n]||Ur(s[n],"unbind",t,t,a)}(t,e)}var Br=Object.create(null);function zr(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++){if((r=t[n]).modifiers||(r.modifiers=Br),i[qr(r)]=r,e._setupState&&e._setupState.__sfc){var o=r.def||Wn(e,"_setupState","v-"+r.name);r.def="function"==typeof o?{bind:o,update:o}:o}r.def=r.def||Wn(e.$options,"directives",r.name)}return i}function qr(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function Ur(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){$e(r,n.context,"directive ".concat(t.name," ").concat(e," hook"))}}var Vr=[Mr,jr];function Hr(t,e){var n=e.componentOptions;if(!(a(n)&&!1===n.Ctor.options.inheritAttrs||o(t.data.attrs)&&o(e.data.attrs))){var r,i,c=e.elm,u=t.data.attrs||{},l=e.data.attrs||{};for(r in(a(l.__ob__)||s(l._v_attr_proxy))&&(l=e.data.attrs=E({},l)),l)i=l[r],u[r]!==i&&Gr(c,r,i,e.data.pre);for(r in($||et)&&l.value!==u.value&&Gr(c,"value",l.value),u)o(l[r])&&(pr(r)?c.removeAttributeNS(dr,gr(r)):ur(r)||c.removeAttribute(r))}}function Gr(t,e,n,r){r||t.tagName.indexOf("-")>-1?Wr(t,e,n):fr(e)?mr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):ur(e)?t.setAttribute(e,hr(e,n)):pr(e)?mr(n)?t.removeAttributeNS(dr,gr(e)):t.setAttributeNS(dr,e,n):Wr(t,e,n)}function Wr(t,e,n){if(mr(n))t.removeAttribute(e);else{if($&&!tt&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Yr={create:Hr,update:Hr};function Zr(t,e){var n=e.elm,r=e.data,i=t.data;if(!(o(r.staticClass)&&o(r.class)&&(o(i)||o(i.staticClass)&&o(i.class)))){var s=vr(e),c=n._transitionClasses;a(c)&&(s=yr(s,wr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Jr,Qr,Xr,Kr,$r,ti,ei={create:Zr,update:Zr},ni=/[\w).+\-_$\]]/;function ri(t){var e,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,h=0,f=0,d=0;for(r=0;r<t.length;r++)if(n=e,e=t.charCodeAt(r),a)39===e&&92!==n&&(a=!1);else if(s)34===e&&92!==n&&(s=!1);else if(c)96===e&&92!==n&&(c=!1);else if(u)47===e&&92!==n&&(u=!1);else if(124!==e||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||l||h||f){switch(e){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:f++;break;case 41:f--;break;case 91:h++;break;case 93:h--;break;case 123:l++;break;case 125:l--}if(47===e){for(var p=r-1,g=void 0;p>=0&&" "===(g=t.charAt(p));p--);g&&ni.test(g)||(u=!0)}}else void 0===i?(d=r+1,i=t.slice(0,r).trim()):m();function m(){(o||(o=[])).push(t.slice(d,r).trim()),d=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==d&&m(),o)for(r=0;r<o.length;r++)i=ii(i,o[r]);return i}function ii(t,e){var n=e.indexOf("(");if(n<0)return'_f("'.concat(e,'")(').concat(t,")");var r=e.slice(0,n),i=e.slice(n+1);return'_f("'.concat(r,'")(').concat(t).concat(")"!==i?","+i:i)}function oi(t,e){console.error("[Vue compiler]: ".concat(t))}function ai(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function si(t,e,n,r,i){(t.props||(t.props=[])).push(vi({name:e,value:n,dynamic:i},r)),t.plain=!1}function ci(t,e,n,r,i){(i?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(vi({name:e,value:n,dynamic:i},r)),t.plain=!1}function ui(t,e,n,r){t.attrsMap[e]=n,t.attrsList.push(vi({name:e,value:n},r))}function li(t,e,n,r,i,o,a,s){(t.directives||(t.directives=[])).push(vi({name:e,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),t.plain=!1}function hi(t,e,n){return n?"_p(".concat(e,',"').concat(t,'")'):t+e}function fi(t,e,n,i,o,a,s,c){var u;(i=i||r).right?c?e="(".concat(e,")==='click'?'contextmenu':(").concat(e,")"):"click"===e&&(e="contextmenu",delete i.right):i.middle&&(c?e="(".concat(e,")==='click'?'mouseup':(").concat(e,")"):"click"===e&&(e="mouseup")),i.capture&&(delete i.capture,e=hi("!",e,c)),i.once&&(delete i.once,e=hi("~",e,c)),i.passive&&(delete i.passive,e=hi("&",e,c)),i.native?(delete i.native,u=t.nativeEvents||(t.nativeEvents={})):u=t.events||(t.events={});var l=vi({value:n.trim(),dynamic:c},s);i!==r&&(l.modifiers=i);var h=u[e];Array.isArray(h)?o?h.unshift(l):h.push(l):u[e]=h?o?[l,h]:[h,l]:l,t.plain=!1}function di(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}function pi(t,e,n){var r=gi(t,":"+e)||gi(t,"v-bind:"+e);if(null!=r)return ri(r);if(!1!==n){var i=gi(t,e);if(null!=i)return JSON.stringify(i)}}function gi(t,e,n){var r;if(null!=(r=t.attrsMap[e]))for(var i=t.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===e){i.splice(o,1);break}return n&&delete t.attrsMap[e],r}function mi(t,e){for(var n=t.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(e.test(o.name))return n.splice(r,1),o}}function vi(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function bi(t,e,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof ".concat("$$v"," === 'string'")+"? ".concat("$$v",".trim()")+": ".concat("$$v",")")),i&&(o="_n(".concat(o,")"));var a=yi(e,o);t.model={value:"(".concat(e,")"),expression:JSON.stringify(e),callback:"function (".concat("$$v",") {").concat(a,"}")}}function yi(t,e){var n=function(t){if(t=t.trim(),Jr=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<Jr-1)return(Kr=t.lastIndexOf("."))>-1?{exp:t.slice(0,Kr),key:'"'+t.slice(Kr+1)+'"'}:{exp:t,key:null};Qr=t,Kr=$r=ti=0;for(;!xi();)_i(Xr=wi())?Si(Xr):91===Xr&&Ai(Xr);return{exp:t.slice(0,$r),key:t.slice($r+1,ti)}}(t);return null===n.key?"".concat(t,"=").concat(e):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(e,")")}function wi(){return Qr.charCodeAt(++Kr)}function xi(){return Kr>=Jr}function _i(t){return 34===t||39===t}function Ai(t){var e=1;for($r=Kr;!xi();)if(_i(t=wi()))Si(t);else if(91===t&&e++,93===t&&e--,0===e){ti=Kr;break}}function Si(t){for(var e=t;!xi()&&(t=wi())!==e;);}var ki,Ni="__r",Ci="__c";function Li(t,e,n){var r=ki;return function i(){null!==e.apply(null,arguments)&&Ii(t,i,n,r)}}var Pi=on&&!(it&&Number(it[1])<=53);function Mi(t,e,n,r){if(Pi){var i=Ge,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}ki.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Ii(t,e,n,r){(r||ki).removeEventListener(t,e._wrapper||e,n)}function Ti(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},r=t.data.on||{};ki=e.elm||t.elm,function(t){if(a(t[Ni])){var e=$?"change":"input";t[e]=[].concat(t[Ni],t[e]||[]),delete t[Ni]}a(t[Ci])&&(t.change=[].concat(t[Ci],t.change||[]),delete t[Ci])}(n),Gt(n,r,Mi,Ii,Li,e.context),ki=void 0}}var Ei,Oi={create:Ti,update:Ti,destroy:function(t){return Ti(t,Er)}};function Di(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,r,i=e.elm,c=t.data.domProps||{},u=e.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=e.data.domProps=E({},u)),c)n in u||(i[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===c[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var l=o(r)?"":String(r);Ri(i,l)&&(i.value=l)}else if("innerHTML"===n&&Ar(i.tagName)&&o(i.innerHTML)){(Ei=Ei||document.createElement("div")).innerHTML="<svg>".concat(r,"</svg>");for(var h=Ei.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;h.firstChild;)i.appendChild(h.firstChild)}else if(r!==c[n])try{i[n]=r}catch(t){}}}}function Ri(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(a(r)){if(r.number)return b(n)!==b(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var ji={create:Di,update:Di},Fi=k(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e});function Bi(t){var e=zi(t.style);return t.staticStyle?E(t.staticStyle,e):e}function zi(t){return Array.isArray(t)?O(t):"string"==typeof t?Fi(t):t}var qi,Ui=/^--/,Vi=/\s*!important$/,Hi=function(t,e,n){if(Ui.test(e))t.style.setProperty(e,n);else if(Vi.test(n))t.style.setProperty(M(e),n.replace(Vi,""),"important");else{var r=Wi(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},Gi=["Webkit","Moz","ms"],Wi=k(function(t){if(qi=qi||document.createElement("div").style,"filter"!==(t=C(t))&&t in qi)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Gi.length;n++){var r=Gi[n]+e;if(r in qi)return r}});function Yi(t,e){var n=e.data,r=t.data;if(!(o(n.staticStyle)&&o(n.style)&&o(r.staticStyle)&&o(r.style))){var i,s,c=e.elm,u=r.staticStyle,l=r.normalizedStyle||r.style||{},h=u||l,f=zi(e.data.style)||{};e.data.normalizedStyle=a(f.__ob__)?E({},f):f;var d=function(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Bi(i.data))&&E(r,n);(n=Bi(t.data))&&E(r,n);for(var o=t;o=o.parent;)o.data&&(n=Bi(o.data))&&E(r,n);return r}(e,!0);for(s in h)o(d[s])&&Hi(c,s,"");for(s in d)i=d[s],Hi(c,s,null==i?"":i)}}var Zi={create:Yi,update:Yi},Ji=/\s+/;function Qi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Ji).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Xi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Ji).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Ki(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&E(e,$i(t.name||"v")),E(e,t),e}return"string"==typeof t?$i(t):void 0}}var $i=k(function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}}),to=X&&!tt,eo="transition",no="animation",ro="transition",io="transitionend",oo="animation",ao="animationend";to&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ro="WebkitTransition",io="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(oo="WebkitAnimation",ao="webkitAnimationEnd"));var so=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function co(t){so(function(){so(t)})}function uo(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Qi(t,e))}function lo(t,e){t._transitionClasses&&_(t._transitionClasses,e),Xi(t,e)}function ho(t,e,n){var r=po(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===eo?io:ao,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c<a&&u()},o+1),t.addEventListener(s,l)}var fo=/\b(transform|all)(,|$)/;function po(t,e){var n,r=window.getComputedStyle(t),i=(r[ro+"Delay"]||"").split(", "),o=(r[ro+"Duration"]||"").split(", "),a=go(i,o),s=(r[oo+"Delay"]||"").split(", "),c=(r[oo+"Duration"]||"").split(", "),u=go(s,c),l=0,h=0;return e===eo?a>0&&(n=eo,l=a,h=o.length):e===no?u>0&&(n=no,l=u,h=c.length):h=(n=(l=Math.max(a,u))>0?a>u?eo:no:null)?n===eo?o.length:c.length:0,{type:n,timeout:l,propCount:h,hasTransform:n===eo&&fo.test(r[ro+"Property"])}}function go(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return mo(e)+mo(t[n])}))}function mo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function vo(t,e){var n=t.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Ki(t.data.transition);if(!o(r)&&!a(n._enterCb)&&1===n.nodeType){for(var i=r.css,s=r.type,c=r.enterClass,h=r.enterToClass,f=r.enterActiveClass,d=r.appearClass,p=r.appearToClass,g=r.appearActiveClass,m=r.beforeEnter,v=r.enter,y=r.afterEnter,w=r.enterCancelled,x=r.beforeAppear,_=r.appear,A=r.afterAppear,S=r.appearCancelled,k=r.duration,N=Oe,C=Oe.$vnode;C&&C.parent;)N=C.context,C=C.parent;var L=!N._isMounted||!t.isRootInsert;if(!L||_||""===_){var P=L&&d?d:c,M=L&&g?g:f,I=L&&p?p:h,T=L&&x||m,E=L&&u(_)?_:v,O=L&&A||y,D=L&&S||w,R=b(l(k)?k.enter:k);0;var j=!1!==i&&!tt,F=wo(E),B=n._enterCb=z(function(){j&&(lo(n,I),lo(n,M)),B.cancelled?(j&&lo(n,P),D&&D(n)):O&&O(n),n._enterCb=null});t.data.show||Wt(t,"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),E&&E(n,B)}),T&&T(n),j&&(uo(n,P),uo(n,M),co(function(){lo(n,P),B.cancelled||(uo(n,I),F||(yo(R)?setTimeout(B,R):ho(n,s,B)))})),t.data.show&&(e&&e(),E&&E(n,B)),j||F||B()}}}function bo(t,e){var n=t.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Ki(t.data.transition);if(o(r)||1!==n.nodeType)return e();if(!a(n._leaveCb)){var i=r.css,s=r.type,c=r.leaveClass,u=r.leaveToClass,h=r.leaveActiveClass,f=r.beforeLeave,d=r.leave,p=r.afterLeave,g=r.leaveCancelled,m=r.delayLeave,v=r.duration,y=!1!==i&&!tt,w=wo(d),x=b(l(v)?v.leave:v);0;var _=n._leaveCb=z(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(lo(n,u),lo(n,h)),_.cancelled?(y&&lo(n,c),g&&g(n)):(e(),p&&p(n)),n._leaveCb=null});m?m(A):A()}function A(){_.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),f&&f(n),y&&(uo(n,c),uo(n,h),co(function(){lo(n,c),_.cancelled||(uo(n,u),w||(yo(x)?setTimeout(_,x):ho(n,s,_)))})),d&&d(n,_),y||w||_())}}function yo(t){return"number"==typeof t&&!isNaN(t)}function wo(t){if(o(t))return!1;var e=t.fns;return a(e)?wo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function xo(t,e){!0!==e.data.show&&vo(e)}var _o=function(t){var e,n,r={},u=t.modules,l=t.nodeOps;for(e=0;e<Or.length;++e)for(r[Or[e]]=[],n=0;n<u.length;++n)a(u[n][Or[e]])&&r[Or[e]].push(u[n][Or[e]]);function h(t){var e=l.parentNode(t);a(e)&&l.removeChild(e,t)}function f(t,e,n,i,o,c,u){if(a(t.elm)&&a(c)&&(t=c[u]=bt(t)),t.isRootInsert=!o,!function(t,e,n,i){var o=t.data;if(a(o)){var c=a(t.componentInstance)&&o.keepAlive;if(a(o=o.hook)&&a(o=o.init)&&o(t,!1),a(t.componentInstance))return d(t,e),p(n,t.elm,i),s(c)&&function(t,e,n,i){for(var o,s=t;s.componentInstance;)if(s=s.componentInstance._vnode,a(o=s.data)&&a(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](Er,s);e.push(s);break}p(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var h=t.data,f=t.children,m=t.tag;a(m)?(t.elm=t.ns?l.createElementNS(t.ns,m):l.createElement(m,t),b(t),g(t,f,e),a(h)&&v(t,e),p(n,t.elm,i)):s(t.isComment)?(t.elm=l.createComment(t.text),p(n,t.elm,i)):(t.elm=l.createTextNode(t.text),p(n,t.elm,i))}}function d(t,e){a(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,m(t)?(v(t,e),b(t)):(Ir(t),e.push(t))}function p(t,e,n){a(t)&&(a(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function g(t,e,n){if(i(e))for(var r=0;r<e.length;++r)f(e[r],n,t.elm,null,!0,e,r);else c(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function m(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return a(t.tag)}function v(t,n){for(var i=0;i<r.create.length;++i)r.create[i](Er,t);a(e=t.data.hook)&&(a(e.create)&&e.create(Er,t),a(e.insert)&&n.push(t))}function b(t){var e;if(a(e=t.fnScopeId))l.setStyleScope(t.elm,e);else for(var n=t;n;)a(e=n.context)&&a(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent;a(e=Oe)&&e!==t.context&&e!==t.fnContext&&a(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function w(t,e,n,r,i,o){for(;r<=i;++r)f(n[r],o,t,e,!1,n,r)}function x(t){var e,n,i=t.data;if(a(i))for(a(e=i.hook)&&a(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(a(e=t.children))for(n=0;n<t.children.length;++n)x(t.children[n])}function _(t,e,n){for(;e<=n;++e){var r=t[e];a(r)&&(a(r.tag)?(A(r),x(r)):h(r.elm))}}function A(t,e){if(a(e)||a(t.data)){var n,i=r.remove.length+1;for(a(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&h(t)}return n.listeners=e,n}(t.elm,i),a(n=t.componentInstance)&&a(n=n._vnode)&&a(n.data)&&A(n,e),n=0;n<r.remove.length;++n)r.remove[n](t,e);a(n=t.data.hook)&&a(n=n.remove)?n(t,e):e()}else h(t.elm)}function S(t,e,n,r){for(var i=n;i<r;i++){var o=e[i];if(a(o)&&Dr(t,o))return i}}function k(t,e,n,i,c,u){if(t!==e){a(e.elm)&&a(i)&&(e=i[c]=bt(e));var h=e.elm=t.elm;if(s(t.isAsyncPlaceholder))a(e.asyncFactory.resolved)?L(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(s(e.isStatic)&&s(t.isStatic)&&e.key===t.key&&(s(e.isCloned)||s(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,p=e.data;a(p)&&a(d=p.hook)&&a(d=d.prepatch)&&d(t,e);var g=t.children,v=e.children;if(a(p)&&m(e)){for(d=0;d<r.update.length;++d)r.update[d](t,e);a(d=p.hook)&&a(d=d.update)&&d(t,e)}o(e.text)?a(g)&&a(v)?g!==v&&function(t,e,n,r,i){for(var s,c,u,h=0,d=0,p=e.length-1,g=e[0],m=e[p],v=n.length-1,b=n[0],y=n[v],x=!i;h<=p&&d<=v;)o(g)?g=e[++h]:o(m)?m=e[--p]:Dr(g,b)?(k(g,b,r,n,d),g=e[++h],b=n[++d]):Dr(m,y)?(k(m,y,r,n,v),m=e[--p],y=n[--v]):Dr(g,y)?(k(g,y,r,n,v),x&&l.insertBefore(t,g.elm,l.nextSibling(m.elm)),g=e[++h],y=n[--v]):Dr(m,b)?(k(m,b,r,n,d),x&&l.insertBefore(t,m.elm,g.elm),m=e[--p],b=n[++d]):(o(s)&&(s=Rr(e,h,p)),o(c=a(b.key)?s[b.key]:S(b,e,h,p))?f(b,r,t,g.elm,!1,n,d):Dr(u=e[c],b)?(k(u,b,r,n,d),e[c]=void 0,x&&l.insertBefore(t,u.elm,g.elm)):f(b,r,t,g.elm,!1,n,d),b=n[++d]);h>p?w(t,o(n[v+1])?null:n[v+1].elm,n,d,v,r):d>v&&_(e,h,p)}(h,g,v,n,u):a(v)?(a(t.text)&&l.setTextContent(h,""),w(h,null,v,0,v.length-1,n)):a(g)?_(g,0,g.length-1):a(t.text)&&l.setTextContent(h,""):t.text!==e.text&&l.setTextContent(h,e.text),a(p)&&a(d=p.hook)&&a(d=d.postpatch)&&d(t,e)}}}function N(t,e,n){if(s(n)&&a(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var C=y("attrs,class,staticClass,staticStyle,key");function L(t,e,n,r){var i,o=e.tag,c=e.data,u=e.children;if(r=r||c&&c.pre,e.elm=t,s(e.isComment)&&a(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(a(c)&&(a(i=c.hook)&&a(i=i.init)&&i(e,!0),a(i=e.componentInstance)))return d(e,n),!0;if(a(o)){if(a(u))if(t.hasChildNodes())if(a(i=c)&&a(i=i.domProps)&&a(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var l=!0,h=t.firstChild,f=0;f<u.length;f++){if(!h||!L(h,u[f],n,r)){l=!1;break}h=h.nextSibling}if(!l||h)return!1}else g(e,u,n);if(a(c)){var p=!1;for(var m in c)if(!C(m)){p=!0,v(e,n);break}!p&&c.class&&mn(c.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,i){if(!o(e)){var c,u=!1,h=[];if(o(t))u=!0,f(e,h);else{var d=a(t.nodeType);if(!d&&Dr(t,e))k(t,e,h,null,null,i);else{if(d){if(1===t.nodeType&&t.hasAttribute(U)&&(t.removeAttribute(U),n=!0),s(n)&&L(t,e,h))return N(e,h,!0),t;c=t,t=new gt(l.tagName(c).toLowerCase(),{},[],void 0,c)}var p=t.elm,g=l.parentNode(p);if(f(e,h,p._leaveCb?null:g,l.nextSibling(p)),a(e.parent))for(var v=e.parent,b=m(e);v;){for(var y=0;y<r.destroy.length;++y)r.destroy[y](v);if(v.elm=e.elm,b){for(var w=0;w<r.create.length;++w)r.create[w](Er,v);var A=v.data.hook.insert;if(A.merged)for(var S=A.fns.slice(1),C=0;C<S.length;C++)S[C]()}else Ir(v);v=v.parent}a(g)?_([t],0,0):a(t.tag)&&x(t)}}return N(e,h,u),e.elm}a(t)&&x(t)}}({nodeOps:Pr,modules:[Yr,ei,Oi,ji,Zi,X?{create:xo,activate:xo,remove:function(t,e){!0!==t.data.show?bo(t,e):e()}}:{}].concat(Vr)});tt&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Mo(t,"input")});var Ao={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Wt(n,"postpatch",function(){Ao.componentUpdated(t,e,n)}):So(t,e,n.context),t._vOptions=[].map.call(t.options,Co)):("textarea"===n.tag||Cr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Lo),t.addEventListener("compositionend",Po),t.addEventListener("change",Po),tt&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){So(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,Co);if(i.some(function(t,e){return!F(t,r[e])}))(t.multiple?e.value.some(function(t){return No(t,i)}):e.value!==e.oldValue&&No(e.value,i))&&Mo(t,"change")}}};function So(t,e,n){ko(t,e,n),($||et)&&setTimeout(function(){ko(t,e,n)},0)}function ko(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],i)o=B(r,Co(a))>-1,a.selected!==o&&(a.selected=o);else if(F(Co(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function No(t,e){return e.every(function(e){return!F(e,t)})}function Co(t){return"_value"in t?t._value:t.value}function Lo(t){t.target.composing=!0}function Po(t){t.target.composing&&(t.target.composing=!1,Mo(t.target,"input"))}function Mo(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Io(t){return!t.componentInstance||t.data&&t.data.transition?t:Io(t.componentInstance._vnode)}var To={model:Ao,show:{bind:function(t,e,n){var r=e.value,i=(n=Io(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,vo(n,function(){t.style.display=o})):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Io(n)).data&&n.data.transition?(n.data.show=!0,r?vo(n,function(){t.style.display=t.__vOriginalDisplay}):bo(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},Eo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Oo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Oo(Le(e.children)):t}function Do(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var r in i)e[C(r)]=i[r];return e}function Ro(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var jo=function(t){return t.tag||me(t)},Fo=function(t){return"show"===t.name},Bo={name:"transition",props:Eo,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(jo)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=Oo(i);if(!o)return i;if(this._leaving)return Ro(t,i);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:c(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Do(this),u=this._vnode,l=Oo(u);if(o.data.directives&&o.data.directives.some(Fo)&&(o.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,l)&&!me(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var h=l.data.transition=E({},s);if("out-in"===r)return this._leaving=!0,Wt(h,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),Ro(t,i);if("in-out"===r){if(me(o))return u;var f,d=function(){f()};Wt(s,"afterEnter",d),Wt(s,"enterCancelled",d),Wt(h,"delayLeave",function(t){f=t})}}return i}}},zo=E({tag:String,moveClass:String},Eo);function qo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Uo(t){t.data.newPos=t.elm.getBoundingClientRect()}function Vo(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),o.transitionDuration="0s"}}delete zo.mode;var Ho={Transition:Bo,TransitionGroup:{props:zo,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=De(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Do(this),s=0;s<i.length;s++){if((l=i[s]).tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(r){var c=[],u=[];for(s=0;s<r.length;s++){var l;(l=r[s]).data.transition=a,l.data.pos=l.elm.getBoundingClientRect(),n[l.key]?c.push(l):u.push(l)}this.kept=t(e,null,c),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(qo),t.forEach(Uo),t.forEach(Vo),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;uo(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(io,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(io,t),n._moveCb=null,lo(n,e))})}}))},methods:{hasMove:function(t,e){if(!to)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){Xi(n,t)}),Qi(n,e),n.style.display="none",this.$el.appendChild(n);var r=po(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};Kn.config.mustUseProp=cr,Kn.config.isReservedTag=Sr,Kn.config.isReservedAttr=ar,Kn.config.getTagNamespace=kr,Kn.config.isUnknownElement=function(t){if(!X)return!0;if(Sr(t))return!1;if(t=t.toLowerCase(),null!=Nr[t])return Nr[t];var e=document.createElement(t);return t.indexOf("-")>-1?Nr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Nr[t]=/HTMLUnknownElement/.test(e.toString())},E(Kn.options.directives,To),E(Kn.options.components,Ho),Kn.prototype.__patch__=X?_o:D,Kn.prototype.$mount=function(t,e){return function(t,e,n){t.$el=e,t.$options.render||(t.$options.render=mt),Fe(t,"beforeMount");var r={before:function(){t._isMounted&&!t._isDestroyed&&Fe(t,"beforeUpdate")}};new bn(t,function(){t._update(t._render(),n)},D,r,!0),n=!1;var i=t._preWatchers;if(i)for(var o=0;o<i.length;o++)i[o].run();return null==t.$vnode&&(t._isMounted=!0,Fe(t,"mounted")),t}(this,t=t&&X?Lr(t):void 0,e)},X&&setTimeout(function(){G.devtools&&ut&&ut.emit("init",Kn)},0);var Go=/\{\{((?:.|\r?\n)+?)\}\}/g,Wo=/[-.*+?^${}()|[\]\/\\]/g,Yo=k(function(t){var e=t[0].replace(Wo,"\\$&"),n=t[1].replace(Wo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")});function Zo(t,e){var n=e?Yo(e):Go;if(n.test(t)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(t);){(i=r.index)>c&&(s.push(o=t.slice(c,i)),a.push(JSON.stringify(o)));var u=ri(r[1].trim());a.push("_s(".concat(u,")")),s.push({"@binding":u}),c=i+r[0].length}return c<t.length&&(s.push(o=t.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}var Jo={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=gi(t,"class");n&&(t.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));var r=pi(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:".concat(t.staticClass,",")),t.classBinding&&(e+="class:".concat(t.classBinding,",")),e}};var Qo,Xo={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=gi(t,"style");n&&(t.staticStyle=JSON.stringify(Fi(n)));var r=pi(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:".concat(t.staticStyle,",")),t.styleBinding&&(e+="style:(".concat(t.styleBinding,"),")),e}},Ko=function(t){return(Qo=Qo||document.createElement("div")).innerHTML=t,Qo.textContent},$o=y("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ta=y("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ea=y("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),na=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ra=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ia="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(W.source,"]*"),oa="((?:".concat(ia,"\\:)?").concat(ia,")"),aa=new RegExp("^<".concat(oa)),sa=/^\s*(\/?)>/,ca=new RegExp("^<\\/".concat(oa,"[^>]*>")),ua=/^<!DOCTYPE [^>]+>/i,la=/^<!\--/,ha=/^<!\[/,fa=y("script,style,textarea",!0),da={},pa={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},ga=/&(?:lt|gt|quot|amp|#39);/g,ma=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,va=y("pre,textarea",!0),ba=function(t,e){return t&&va(t)&&"\n"===e[0]};function ya(t,e){var n=e?ma:ga;return t.replace(n,function(t){return pa[t]})}function wa(t,e){for(var n,r,i=[],o=e.expectHTML,a=e.isUnaryTag||R,s=e.canBeLeftOpenTag||R,c=0,u=function(){if(n=t,r&&fa(r)){var u=0,f=r.toLowerCase(),d=da[f]||(da[f]=new RegExp("([\\s\\S]*?)(</"+f+"[^>]*>)","i"));_=t.replace(d,function(t,n,r){return u=r.length,fa(f)||"noscript"===f||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),ba(f,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});c+=t.length-_.length,t=_,h(f,c-u,c)}else{var p=t.indexOf("<");if(0===p){if(la.test(t)){var g=t.indexOf("--\x3e");if(g>=0)return e.shouldKeepComment&&e.comment&&e.comment(t.substring(4,g),c,c+g+3),l(g+3),"continue"}if(ha.test(t)){var m=t.indexOf("]>");if(m>=0)return l(m+2),"continue"}var v=t.match(ua);if(v)return l(v[0].length),"continue";var b=t.match(ca);if(b){var y=c;return l(b[0].length),h(b[1],y,c),"continue"}var w=function(){var e=t.match(aa);if(e){var n={tagName:e[1],attrs:[],start:c};l(e[0].length);for(var r=void 0,i=void 0;!(r=t.match(sa))&&(i=t.match(ra)||t.match(na));)i.start=c,l(i[0].length),i.end=c,n.attrs.push(i);if(r)return n.unarySlash=r[1],l(r[0].length),n.end=c,n}}();if(w)return function(t){var n=t.tagName,c=t.unarySlash;o&&("p"===r&&ea(n)&&h(r),s(n)&&r===n&&h(n));for(var u=a(n)||!!c,l=t.attrs.length,f=new Array(l),d=0;d<l;d++){var p=t.attrs[d],g=p[3]||p[4]||p[5]||"",m="a"===n&&"href"===p[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;f[d]={name:p[1],value:ya(g,m)}}u||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f,start:t.start,end:t.end}),r=n);e.start&&e.start(n,f,u,t.start,t.end)}(w),ba(w.tagName,t)&&l(1),"continue"}var x=void 0,_=void 0,A=void 0;if(p>=0){for(_=t.slice(p);!(ca.test(_)||aa.test(_)||la.test(_)||ha.test(_)||(A=_.indexOf("<",1))<0);)p+=A,_=t.slice(p);x=t.substring(0,p)}p<0&&(x=t),x&&l(x.length),e.chars&&x&&e.chars(x,c-x.length,c)}if(t===n)return e.chars&&e.chars(t),"break"};t;){if("break"===u())break}function l(e){c+=e,t=t.substring(e)}function h(t,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),t)for(s=t.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)e.end&&e.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}h()}var xa,_a,Aa,Sa,ka,Na,Ca,La,Pa=/^@|^v-on:/,Ma=/^v-|^@|^:|^#/,Ia=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ta=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ea=/^\(|\)$/g,Oa=/^\[.*\]$/,Da=/:(.*)$/,Ra=/^:|^\.|^v-bind:/,ja=/\.[^.\]]+(?=[^\]]*$)/g,Fa=/^v-slot(:|$)|^#/,Ba=/[\r\n]/,za=/[ \f\t\r\n]+/g,qa=k(Ko),Ua="_empty_";function Va(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:function(t){for(var e={},n=0,r=t.length;n<r;n++)e[t[n].name]=t[n].value;return e}(e),rawAttrsMap:{},parent:n,children:[]}}function Ha(t,e){xa=e.warn||oi,Na=e.isPreTag||R,Ca=e.mustUseProp||R,La=e.getTagNamespace||R;var n=e.isReservedTag||R;(function(t){return!(!(t.component||t.attrsMap[":is"]||t.attrsMap["v-bind:is"])&&(t.attrsMap.is?n(t.attrsMap.is):n(t.tag)))}),Aa=ai(e.modules,"transformNode"),Sa=ai(e.modules,"preTransformNode"),ka=ai(e.modules,"postTransformNode"),_a=e.delimiters;var r,i,o=[],a=!1!==e.preserveWhitespace,s=e.whitespace,c=!1,u=!1;function l(t){if(h(t),c||t.processed||(t=Ga(t,e)),o.length||t===r||r.if&&(t.elseif||t.else)&&Ya(r,{exp:t.elseif,block:t}),i&&!t.forbidden)if(t.elseif||t.else)a=t,(s=function(t){var e=t.length;for(;e--;){if(1===t[e].type)return t[e];t.pop()}}(i.children))&&s.if&&Ya(s,{exp:a.elseif,block:a});else{if(t.slotScope){var n=t.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=t}i.children.push(t),t.parent=i}var a,s;t.children=t.children.filter(function(t){return!t.slotScope}),h(t),t.pre&&(c=!1),Na(t.tag)&&(u=!1);for(var l=0;l<ka.length;l++)ka[l](t,e)}function h(t){if(!u)for(var e=void 0;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return wa(t,{warn:xa,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,n,a,s,h){var f=i&&i.ns||La(t);$&&"svg"===f&&(n=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];Qa.test(r.name)||(r.name=r.name.replace(Xa,""),e.push(r))}return e}(n));var d,p=Va(t,n,i);f&&(p.ns=f),"style"!==(d=p).tag&&("script"!==d.tag||d.attrsMap.type&&"text/javascript"!==d.attrsMap.type)||ct()||(p.forbidden=!0);for(var g=0;g<Sa.length;g++)p=Sa[g](p,e)||p;c||(!function(t){null!=gi(t,"v-pre")&&(t.pre=!0)}(p),p.pre&&(c=!0)),Na(p.tag)&&(u=!0),c?function(t){var e=t.attrsList,n=e.length;if(n)for(var r=t.attrs=new Array(n),i=0;i<n;i++)r[i]={name:e[i].name,value:JSON.stringify(e[i].value)},null!=e[i].start&&(r[i].start=e[i].start,r[i].end=e[i].end);else t.pre||(t.plain=!0)}(p):p.processed||(Wa(p),function(t){var e=gi(t,"v-if");if(e)t.if=e,Ya(t,{exp:e,block:t});else{null!=gi(t,"v-else")&&(t.else=!0);var n=gi(t,"v-else-if");n&&(t.elseif=n)}}(p),function(t){null!=gi(t,"v-once")&&(t.once=!0)}(p)),r||(r=p),a?l(p):(i=p,o.push(p))},end:function(t,e,n){var r=o[o.length-1];o.length-=1,i=o[o.length-1],l(r)},chars:function(t,e,n){if(i&&(!$||"textarea"!==i.tag||i.attrsMap.placeholder!==t)){var r,o=i.children;if(t=u||t.trim()?"script"===(r=i).tag||"style"===r.tag?t:qa(t):o.length?s?"condense"===s&&Ba.test(t)?"":" ":a?" ":"":""){u||"condense"!==s||(t=t.replace(za," "));var l=void 0,h=void 0;!c&&" "!==t&&(l=Zo(t,_a))?h={type:2,expression:l.expression,tokens:l.tokens,text:t}:" "===t&&o.length&&" "===o[o.length-1].text||(h={type:3,text:t}),h&&o.push(h)}}},comment:function(t,e,n){if(i){var r={type:3,text:t,isComment:!0};0,i.children.push(r)}}}),r}function Ga(t,e){var n,r;!function(t){var e=pi(t,"key");if(e){t.key=e}}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,(r=pi(n=t,"ref"))&&(n.ref=r,n.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(n)),function(t){var e;"template"===t.tag?(e=gi(t,"scope"),t.slotScope=e||gi(t,"slot-scope")):(e=gi(t,"slot-scope"))&&(t.slotScope=e);var n=pi(t,"slot");n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||ci(t,"slot",n,di(t,"slot")));if("template"===t.tag){var r=mi(t,Fa);if(r){0;var i=Za(r),o=i.name,a=i.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=r.value||Ua}}else{var r=mi(t,Fa);if(r){0;var s=t.scopedSlots||(t.scopedSlots={}),c=Za(r),u=c.name,a=c.dynamic,l=s[u]=Va("template",[],t);l.slotTarget=u,l.slotTargetDynamic=a,l.children=t.children.filter(function(t){if(!t.slotScope)return t.parent=l,!0}),l.slotScope=r.value||Ua,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=pi(t,"name"))}(t),function(t){var e;(e=pi(t,"is"))&&(t.component=e);null!=gi(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var i=0;i<Aa.length;i++)t=Aa[i](t,e)||t;return function(t){var e,n,r,i,o,a,s,c,u=t.attrsList;for(e=0,n=u.length;e<n;e++){if(r=i=u[e].name,o=u[e].value,Ma.test(r))if(t.hasBindings=!0,(a=Ja(r.replace(Ma,"")))&&(r=r.replace(ja,"")),Ra.test(r))r=r.replace(Ra,""),o=ri(o),(c=Oa.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=C(r))&&(r="innerHTML"),a.camel&&!c&&(r=C(r)),a.sync&&(s=yi(o,"$event"),c?fi(t,'"update:"+('.concat(r,")"),s,null,!1,0,u[e],!0):(fi(t,"update:".concat(C(r)),s,null,!1,0,u[e]),M(r)!==C(r)&&fi(t,"update:".concat(M(r)),s,null,!1,0,u[e])))),a&&a.prop||!t.component&&Ca(t.tag,t.attrsMap.type,r)?si(t,r,o,u[e],c):ci(t,r,o,u[e],c);else if(Pa.test(r))r=r.replace(Pa,""),(c=Oa.test(r))&&(r=r.slice(1,-1)),fi(t,r,o,a,!1,0,u[e],c);else{var l=(r=r.replace(Ma,"")).match(Da),h=l&&l[1];c=!1,h&&(r=r.slice(0,-(h.length+1)),Oa.test(h)&&(h=h.slice(1,-1),c=!0)),li(t,r,i,o,h,c,a,u[e])}else ci(t,r,JSON.stringify(o),u[e]),!t.component&&"muted"===r&&Ca(t.tag,t.attrsMap.type,r)&&si(t,r,"true",u[e])}}(t),t}function Wa(t){var e;if(e=gi(t,"v-for")){var n=function(t){var e=t.match(Ia);if(!e)return;var n={};n.for=e[2].trim();var r=e[1].trim().replace(Ea,""),i=r.match(Ta);i?(n.alias=r.replace(Ta,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(e);n&&E(t,n)}}function Ya(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function Za(t){var e=t.name.replace(Fa,"");return e||"#"!==t.name[0]&&(e="default"),Oa.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'.concat(e,'"'),dynamic:!1}}function Ja(t){var e=t.match(ja);if(e){var n={};return e.forEach(function(t){n[t.slice(1)]=!0}),n}}var Qa=/^xmlns:NS\d+/,Xa=/^NS\d+:/;function Ka(t){return Va(t.tag,t.attrsList.slice(),t.parent)}var $a=[Jo,Xo,{preTransformNode:function(t,e){if("input"===t.tag){var n=t.attrsMap;if(!n["v-model"])return;var r=void 0;if((n[":type"]||n["v-bind:type"])&&(r=pi(t,"type")),n.type||r||!n["v-bind"]||(r="(".concat(n["v-bind"],").type")),r){var i=gi(t,"v-if",!0),o=i?"&&(".concat(i,")"):"",a=null!=gi(t,"v-else",!0),s=gi(t,"v-else-if",!0),c=Ka(t);Wa(c),ui(c,"type","checkbox"),Ga(c,e),c.processed=!0,c.if="(".concat(r,")==='checkbox'")+o,Ya(c,{exp:c.if,block:c});var u=Ka(t);gi(u,"v-for",!0),ui(u,"type","radio"),Ga(u,e),Ya(c,{exp:"(".concat(r,")==='radio'")+o,block:u});var l=Ka(t);return gi(l,"v-for",!0),ui(l,":type",r),Ga(l,e),Ya(c,{exp:i,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}}];var ts,es,ns={expectHTML:!0,modules:$a,directives:{model:function(t,e,n){n;var r=e.value,i=e.modifiers,o=t.tag,a=t.attrsMap.type;if(t.component)return bi(t,r,i),!1;if("select"===o)!function(t,e,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(r?"_n(val)":"val","})"),o="var $$selectedVal = ".concat(i,";");o="".concat(o," ").concat(yi(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]")),fi(t,"change",o,null,!0)}(t,r,i);else if("input"===o&&"checkbox"===a)!function(t,e,n){var r=n&&n.number,i=pi(t,"value")||"null",o=pi(t,"true-value")||"true",a=pi(t,"false-value")||"false";si(t,"checked","Array.isArray(".concat(e,")")+"?_i(".concat(e,",").concat(i,")>-1")+("true"===o?":(".concat(e,")"):":_q(".concat(e,",").concat(o,")"))),fi(t,"change","var $$a=".concat(e,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(o,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+i+")":i,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(yi(e,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(yi(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(yi(e,"$$c"),"}"),null,!0)}(t,r,i);else if("input"===o&&"radio"===a)!function(t,e,n){var r=n&&n.number,i=pi(t,"value")||"null";i=r?"_n(".concat(i,")"):i,si(t,"checked","_q(".concat(e,",").concat(i,")")),fi(t,"change",yi(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Ni:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n(".concat(l,")"));var h=yi(e,l);c&&(h="if($event.target.composing)return;".concat(h)),si(t,"value","(".concat(e,")")),fi(t,u,h,null,!0),(s||a)&&fi(t,"blur","$forceUpdate()")}(t,r,i);else if(!G.isReservedTag(o))return bi(t,r,i),!1;return!0},text:function(t,e){e.value&&si(t,"textContent","_s(".concat(e.value,")"),e)},html:function(t,e){e.value&&si(t,"innerHTML","_s(".concat(e.value,")"),e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:$o,mustUseProp:cr,canBeLeftOpenTag:ta,isReservedTag:Sr,getTagNamespace:kr,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}($a)},rs=k(function(t){return y("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))});function is(t,e){t&&(ts=rs(e.staticKeys||""),es=e.isReservedTag||R,function t(e){e.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||w(t.tag)||!es(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(ts)))}(e);if(1===e.type){if(!es(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var n=0,r=e.children.length;n<r;n++){var i=e.children[n];t(i),i.static||(e.static=!1)}if(e.ifConditions)for(var n=1,r=e.ifConditions.length;n<r;n++){var o=e.ifConditions[n].block;t(o),o.static||(e.static=!1)}}}(t),function t(e,n){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=n),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var r=0,i=e.children.length;r<i;r++)t(e.children[r],n||!!e.for);if(e.ifConditions)for(var r=1,i=e.ifConditions.length;r<i;r++)t(e.ifConditions[r].block,n)}}(t,!1))}var os=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,as=/\([^)]*?\);*$/,ss=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,cs={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},us={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ls=function(t){return"if(".concat(t,")return null;")},hs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ls("$event.target !== $event.currentTarget"),ctrl:ls("!$event.ctrlKey"),shift:ls("!$event.shiftKey"),alt:ls("!$event.altKey"),meta:ls("!$event.metaKey"),left:ls("'button' in $event && $event.button !== 0"),middle:ls("'button' in $event && $event.button !== 1"),right:ls("'button' in $event && $event.button !== 2")};function fs(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var o in t){var a=ds(t[o]);t[o]&&t[o].dynamic?i+="".concat(o,",").concat(a,","):r+='"'.concat(o,'":').concat(a,",")}return r="{".concat(r.slice(0,-1),"}"),i?n+"_d(".concat(r,",[").concat(i.slice(0,-1),"])"):n+r}function ds(t){if(!t)return"function(){}";if(Array.isArray(t))return"[".concat(t.map(function(t){return ds(t)}).join(","),"]");var e=ss.test(t.value),n=os.test(t.value),r=ss.test(t.value.replace(as,""));if(t.modifiers){var i="",o="",a=[],s=function(e){if(hs[e])o+=hs[e],cs[e]&&a.push(e);else if("exact"===e){var n=t.modifiers;o+=ls(["ctrl","shift","alt","meta"].filter(function(t){return!n[t]}).map(function(t){return"$event.".concat(t,"Key")}).join("||"))}else a.push(e)};for(var c in t.modifiers)s(c);a.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+"".concat(t.map(ps).join("&&"),")return null;")}(a)),o&&(i+=o);var u=e?"return ".concat(t.value,".apply(null, arguments)"):n?"return (".concat(t.value,").apply(null, arguments)"):r?"return ".concat(t.value):t.value;return"function($event){".concat(i).concat(u,"}")}return e||n?t.value:"function($event){".concat(r?"return ".concat(t.value):t.value,"}")}function ps(t){var e=parseInt(t,10);if(e)return"$event.keyCode!==".concat(e);var n=cs[t],r=us[t];return"_k($event.keyCode,"+"".concat(JSON.stringify(t),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var gs={on:function(t,e){t.wrapListeners=function(t){return"_g(".concat(t,",").concat(e.value,")")}},bind:function(t,e){t.wrapData=function(n){return"_b(".concat(n,",'").concat(t.tag,"',").concat(e.value,",").concat(e.modifiers&&e.modifiers.prop?"true":"false").concat(e.modifiers&&e.modifiers.sync?",true":"",")")}},cloak:D},ms=function(){return function(t){this.options=t,this.warn=t.warn||oi,this.transforms=ai(t.modules,"transformCode"),this.dataGenFns=ai(t.modules,"genData"),this.directives=E(E({},gs),t.directives);var e=t.isReservedTag||R;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}}();function vs(t,e){var n=new ms(e),r=t?"script"===t.tag?"null":bs(t,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function bs(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return ys(t,e);if(t.once&&!t.onceProcessed)return ws(t,e);if(t.for&&!t.forProcessed)return _s(t,e);if(t.if&&!t.ifProcessed)return xs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=Ns(t,e),i="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),o=t.attrs||t.dynamicAttrs?Ps((t.attrs||[]).concat(t.dynamicAttrs||[]).map(function(t){return{name:C(t.name),value:t.value,dynamic:t.dynamic}})):null,a=t.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=",".concat(o));a&&(i+="".concat(o?"":",null",",").concat(a));return i+")"}(t,e);var n=void 0;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:Ns(e,n,!0);return"_c(".concat(t,",").concat(As(e,n)).concat(r?",".concat(r):"",")")}(t.component,t,e);else{var r=void 0,i=e.maybeComponent(t);(!t.plain||t.pre&&i)&&(r=As(t,e));var o=void 0,a=e.options.bindings;i&&a&&!1!==a.__isScriptSetup&&(o=function(t,e){var n=C(e),r=L(n),i=function(i){return t[e]===i?e:t[n]===i?n:t[r]===i?r:void 0},o=i("setup-const")||i("setup-reactive-const");if(o)return o;var a=i("setup-let")||i("setup-ref")||i("setup-maybe-ref");if(a)return a}(a,t.tag)),o||(o="'".concat(t.tag,"'"));var s=t.inlineTemplate?null:Ns(t,e,!0);n="_c(".concat(o).concat(r?",".concat(r):"").concat(s?",".concat(s):"",")")}for(var c=0;c<e.transforms.length;c++)n=e.transforms[c](t,n);return n}return Ns(t,e)||"void 0"}function ys(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return ".concat(bs(t,e),"}")),e.pre=n,"_m(".concat(e.staticRenderFns.length-1).concat(t.staticInFor?",true":"",")")}function ws(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return xs(t,e);if(t.staticInFor){for(var n="",r=t.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o(".concat(bs(t,e),",").concat(e.onceId++,",").concat(n,")"):bs(t,e)}return ys(t,e)}function xs(t,e,n,r){return t.ifProcessed=!0,function t(e,n,r,i){if(!e.length)return i||"_e()";var o=e.shift();return o.exp?"(".concat(o.exp,")?").concat(a(o.block),":").concat(t(e,n,r,i)):"".concat(a(o.block));function a(t){return r?r(t,n):t.once?ws(t,n):bs(t,n)}}(t.ifConditions.slice(),e,n,r)}function _s(t,e,n,r){var i=t.for,o=t.alias,a=t.iterator1?",".concat(t.iterator1):"",s=t.iterator2?",".concat(t.iterator2):"";return t.forProcessed=!0,"".concat(r||"_l","((").concat(i,"),")+"function(".concat(o).concat(a).concat(s,"){")+"return ".concat((n||bs)(t,e))+"})"}function As(t,e){var n="{",r=function(t,e){var n=t.directives;if(!n)return;var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var u=e.directives[o.name];u&&(a=!!u(t,o,e.warn)),a&&(c=!0,s+='{name:"'.concat(o.name,'",rawName:"').concat(o.rawName,'"').concat(o.value?",value:(".concat(o.value,"),expression:").concat(JSON.stringify(o.value)):"").concat(o.arg?",arg:".concat(o.isDynamicArg?o.arg:'"'.concat(o.arg,'"')):"").concat(o.modifiers?",modifiers:".concat(JSON.stringify(o.modifiers)):"","},"))}if(c)return s.slice(0,-1)+"]"}(t,e);r&&(n+=r+","),t.key&&(n+="key:".concat(t.key,",")),t.ref&&(n+="ref:".concat(t.ref,",")),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'.concat(t.tag,'",'));for(var i=0;i<e.dataGenFns.length;i++)n+=e.dataGenFns[i](t);if(t.attrs&&(n+="attrs:".concat(Ps(t.attrs),",")),t.props&&(n+="domProps:".concat(Ps(t.props),",")),t.events&&(n+="".concat(fs(t.events,!1),",")),t.nativeEvents&&(n+="".concat(fs(t.nativeEvents,!0),",")),t.slotTarget&&!t.slotScope&&(n+="slot:".concat(t.slotTarget,",")),t.scopedSlots&&(n+="".concat(function(t,e,n){var r=t.for||Object.keys(e).some(function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||Ss(n)}),i=!!t.if;if(!r)for(var o=t.parent;o;){if(o.slotScope&&o.slotScope!==Ua||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(e).map(function(t){return ks(e[t],n)}).join(",");return"scopedSlots:_u([".concat(a,"]").concat(r?",null,true":"").concat(!r&&i?",null,false,".concat(function(t){var e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(a)):"",")")}(t,t.scopedSlots,e),",")),t.model&&(n+="model:{value:".concat(t.model.value,",callback:").concat(t.model.callback,",expression:").concat(t.model.expression,"},")),t.inlineTemplate){var o=function(t,e){var n=t.children[0];0;if(n&&1===n.type){var r=vs(n,e.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map(function(t){return"function(){".concat(t,"}")}).join(","),"]}")}}(t,e);o&&(n+="".concat(o,","))}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b(".concat(n,',"').concat(t.tag,'",').concat(Ps(t.dynamicAttrs),")")),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Ss(t){return 1===t.type&&("slot"===t.tag||t.children.some(Ss))}function ks(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return xs(t,e,ks,"null");if(t.for&&!t.forProcessed)return _s(t,e,ks);var r=t.slotScope===Ua?"":String(t.slotScope),i="function(".concat(r,"){")+"return ".concat("template"===t.tag?t.if&&n?"(".concat(t.if,")?").concat(Ns(t,e)||"undefined",":undefined"):Ns(t,e)||"undefined":bs(t,e),"}"),o=r?"":",proxy:true";return"{key:".concat(t.slotTarget||'"default"',",fn:").concat(i).concat(o,"}")}function Ns(t,e,n,r,i){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return"".concat((r||bs)(a,e)).concat(s)}var c=n?function(t,e){for(var n=0,r=0;r<t.length;r++){var i=t[r];if(1===i.type){if(Cs(i)||i.ifConditions&&i.ifConditions.some(function(t){return Cs(t.block)})){n=2;break}(e(i)||i.ifConditions&&i.ifConditions.some(function(t){return e(t.block)}))&&(n=1)}}return n}(o,e.maybeComponent):0,u=i||Ls;return"[".concat(o.map(function(t){return u(t,e)}).join(","),"]").concat(c?",".concat(c):"")}}function Cs(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Ls(t,e){return 1===t.type?bs(t,e):3===t.type&&t.isComment?(r=t,"_e(".concat(JSON.stringify(r.text),")")):"_v(".concat(2===(n=t).type?n.expression:Ms(JSON.stringify(n.text)),")");var n,r}function Ps(t){for(var e="",n="",r=0;r<t.length;r++){var i=t[r],o=Ms(i.value);i.dynamic?n+="".concat(i.name,",").concat(o,","):e+='"'.concat(i.name,'":').concat(o,",")}return e="{".concat(e.slice(0,-1),"}"),n?"_d(".concat(e,",[").concat(n.slice(0,-1),"])"):e}function Ms(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function Is(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),D}}function Ts(t){var e=Object.create(null);return function(n,r,i){(r=E({},r)).warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(e[o])return e[o];var a=t(n,r);var s={},c=[];return s.render=Is(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(t){return Is(t,c)}),e[o]=s}}var Es,Os,Ds=(Es=function(t,e){var n=Ha(t.trim(),e);!1!==e.optimize&&is(n,e);var r=vs(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(t){function e(e,n){var r=Object.create(t),i=[],o=[],a=function(t,e,n){(n?o:i).push(t)};if(n)for(var s in n.modules&&(r.modules=(t.modules||[]).concat(n.modules)),n.directives&&(r.directives=E(Object.create(t.directives||null),n.directives)),n)"modules"!==s&&"directives"!==s&&(r[s]=n[s]);r.warn=a;var c=Es(e.trim(),r);return c.errors=i,c.tips=o,c}return{compile:e,compileToFunctions:Ts(e)}})(ns).compileToFunctions;function Rs(t){return(Os=Os||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',Os.innerHTML.indexOf(" ")>0}var js=!!X&&Rs(!1),Fs=!!X&&Rs(!0),Bs=k(function(t){var e=Lr(t);return e&&e.innerHTML}),zs=Kn.prototype.$mount;Kn.prototype.$mount=function(t,e){if((t=t&&Lr(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Bs(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){0;var i=Ds(r,{outputSourceRange:!1,shouldDecodeNewlines:js,shouldDecodeNewlinesForHref:Fs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return zs.call(this,t,e)},Kn.compile=Ds}).call(e,n(45))},function(t,e,n){var r;void 0===(r=function(t,e,r){var i=[];function o(t){i.push(t)}function a(t){this.selector=t;for(var e=0;e<i.length;e++)"function"==typeof i[e]&&i[e].call(this,this)}return a.assemble=o,o(n(85)),o(n(86)),o(n(105)),o(n(107)),o(n(110)),o(n(114)),o(n(116)),o(n(117)),o(n(118)),o(n(119)),o(n(120)),o(n(123)),o(n(124)),o(n(125)),r.exports=a}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,n){return n.exports=function(){var t;if(t="string"==typeof this.selector?document.querySelector(this.selector):this.selector,console.log("container",t),!t)throw new Error("Invalid selector: "+this.selector);t.classList.add("km-editor"),this.container=t}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,r){var i=new(n(36))("fsm");function o(t,e,n,r){return t.when==e&&(("*"==t.enter||t.enter==r)&&("*"==t.exit||t.exit==n||void 0))}return r.exports=function(){this.fsm=new function(t){var e=t,n=[];this.jump=function(t,r){if(!r)throw new Error("Please tell fsm the reason to jump");var a,s,c=e,u=[c,t].concat([].slice.call(arguments,1));for(a=0;a<n.length;a++)if(o((s=n[a]).condition,"before",c,t)&&s.apply(null,u))return;for(e=t,i.log("[{0}] {1} -> {2}",r,c,t),a=0;a<n.length;a++)o((s=n[a]).condition,"after",c,t)&&s.apply(null,u);return e},this.state=function(){return e},this.when=function(t,e){var r,i,o,a;if(1==arguments.length&&(e=t,t="* -> *"),2==(i=t.split(" - ")).length?r="before":2==(i=t.split(" -> ")).length&&(r="after"),!r)throw new Error("Illegal fsm condition: "+t);o=i[0],a=i[1],e.condition={when:r,exit:o,enter:a},n.push(e)}}("normal")}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(37);n.n(r);define(function(t,e,n){return n.exports=function(t,e){return"object"!=(void 0===e?"undefined":_typeof(e))&&(e=[].slice.call(arguments,1)),String(t).replace(/\{(\w+)\}/gi,function(t,n){return e[n]||n})}})},function(t,e,n){t.exports={default:n(89),__esModule:!0}},function(t,e,n){n(38),n(52),t.exports=n(41).f("iterator")},function(t,e,n){var r=n(29),i=n(28);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(40),i=n(15),o=n(23),a={};n(7)(a,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(4),i=n(12),o=n(16);t.exports=n(5)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(3).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(10),i=n(14),o=n(30)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){"use strict";var r=n(96),i=n(53),o=n(17),a=n(13);t.exports=n(39)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e,n){t.exports={default:n(98),__esModule:!0}},function(t,e,n){n(99),n(56),n(103),n(104),t.exports=n(0).Symbol},function(t,e,n){"use strict";var r=n(3),i=n(10),o=n(5),a=n(6),s=n(51),c=n(42).KEY,u=n(9),l=n(31),h=n(23),f=n(20),d=n(1),p=n(41),g=n(43),m=n(100),v=n(54),b=n(12),y=n(8),w=n(14),x=n(13),_=n(25),A=n(15),S=n(40),k=n(101),N=n(102),C=n(33),L=n(4),P=n(16),M=N.f,I=L.f,T=k.f,E=r.Symbol,O=r.JSON,D=O&&O.stringify,R=d("_hidden"),j=d("toPrimitive"),F={}.propertyIsEnumerable,B=l("symbol-registry"),z=l("symbols"),q=l("op-symbols"),U=Object.prototype,V="function"==typeof E&&!!C.f,H=r.QObject,G=!H||!H.prototype||!H.prototype.findChild,W=o&&u(function(){return 7!=S(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(U,e);r&&delete U[e],I(t,e,n),r&&t!==U&&I(U,e,r)}:I,Y=function(t){var e=z[t]=S(E.prototype);return e._k=t,e},Z=V&&"symbol"==typeof E.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof E},J=function(t,e,n){return t===U&&J(q,e,n),b(t),e=_(e,!0),b(n),i(z,e)?(n.enumerable?(i(t,R)&&t[R][e]&&(t[R][e]=!1),n=S(n,{enumerable:A(0,!1)})):(i(t,R)||I(t,R,A(1,{})),t[R][e]=!0),W(t,e,n)):I(t,e,n)},Q=function(t,e){b(t);for(var n,r=m(e=x(e)),i=0,o=r.length;o>i;)J(t,n=r[i++],e[n]);return t},X=function(t){var e=F.call(this,t=_(t,!0));return!(this===U&&i(z,t)&&!i(q,t))&&(!(e||!i(this,t)||!i(z,t)||i(this,R)&&this[R][t])||e)},K=function(t,e){if(t=x(t),e=_(e,!0),t!==U||!i(z,e)||i(q,e)){var n=M(t,e);return!n||!i(z,e)||i(t,R)&&t[R][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=T(x(t)),r=[],o=0;n.length>o;)i(z,e=n[o++])||e==R||e==c||r.push(e);return r},tt=function(t){for(var e,n=t===U,r=T(n?q:x(t)),o=[],a=0;r.length>a;)!i(z,e=r[a++])||n&&!i(U,e)||o.push(z[e]);return o};V||(s((E=function(){if(this instanceof E)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(q,n),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),W(this,t,A(1,n))};return o&&G&&W(U,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",function(){return this._k}),N.f=K,L.f=J,n(55).f=k.f=$,n(21).f=X,C.f=tt,o&&!n(19)&&s(U,"propertyIsEnumerable",X,!0),p.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!V,{Symbol:E});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var rt=P(d.store),it=0;rt.length>it;)g(rt[it++]);a(a.S+a.F*!V,"Symbol",{for:function(t){return i(B,t+="")?B[t]:B[t]=E(t)},keyFor:function(t){if(!Z(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!V,"Object",{create:function(t,e){return void 0===e?S(t):Q(S(t),e)},defineProperty:J,defineProperties:Q,getOwnPropertyDescriptor:K,getOwnPropertyNames:$,getOwnPropertySymbols:tt});var ot=u(function(){C.f(1)});a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return C.f(w(t))}}),O&&a(a.S+a.F*(!V||u(function(){var t=E();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(y(e)||void 0!==t)&&!Z(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Z(e))return e}),r[1]=e,D.apply(O,r)}}),E.prototype[j]||n(7)(E.prototype,j,E.prototype.valueOf),h(E,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(t,e,n){var r=n(16),i=n(33),o=n(21);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),c=o.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},function(t,e,n){var r=n(13),i=n(55).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},function(t,e,n){var r=n(21),i=n(15),o=n(13),a=n(25),s=n(10),c=n(47),u=Object.getOwnPropertyDescriptor;e.f=n(5)?u:function(t,e){if(t=o(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){n(43)("asyncIterator")},function(t,e,n){n(43)("observable")},function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(106);return r.exports=function(){var t=new i({enableKeyReceiver:!1,enableAnimation:!0});t.renderTo(this.selector),t.setTheme(null),t.select(t.getRoot(),!0),t.execCommand("text","中心主题"),this.minder=t,console.log("minder",this.minder)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,n){return n.exports=window.kityminder.Minder}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(108);return r.exports=function(){var t=this.fsm,e=this.minder,n=document.createElement("div");n.contentEditable=!0,n.setAttribute("tabindex",-1),n.classList.add("receiver"),n.onkeydown=n.onkeypress=n.onkeyup=a,n.addEventListener("compositionstart",a),this.container.appendChild(n);var r={element:n,selectAll:function(){n.innerHTML||(n.innerHTML=" ");var t=document.createRange(),e=window.getSelection();t.selectNodeContents(n),e.removeAllRanges(),e.addRange(t),n.focus()},enable:function(){n.setAttribute("contenteditable",!0)},disable:function(){n.setAttribute("contenteditable",!1)},fixFFCaretDisappeared:function(){n.removeAttribute("contenteditable"),n.setAttribute("contenteditable","true"),n.blur(),n.focus()},onblur:function(t){n.onblur=t}};r.selectAll(),e.on("beforemousedown",r.selectAll),e.on("receiverfocus",r.selectAll),e.on("readonly",function(){e.disable(),editor.receiver.element.parentElement.removeChild(editor.receiver.element),editor.hotbox.$container.removeChild(editor.hotbox.$element)});var o=[];function a(e){var n;e.is=function(t){for(var e=t.split("|"),n=0;n<e.length;n++)if(i.is(this,e[n]))return!0;return!1};for(var r=0;r<o.length;r++)if(("*"==(n=o[r]).notifyState||n.notifyState==t.state())&&n.call(null,e))return}r.listen=function(t,e){1==arguments.length&&(e=t,t="*"),e.notifyState=t,o.push(e)},this.receiver=r}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e){var r=n(109),i=4096,o=8192,a=16384;function s(t){return"string"==typeof t?(e=0,t.toLowerCase().split(/\s*\+\s*/).forEach(function(t){switch(t){case"ctrl":case"cmd":e|=i;break;case"alt":e|=o;break;case"shift":e|=a;break;default:e|=r[t]}}),e):function(t){var e=0;(t.ctrlKey||t.metaKey)&&(e|=i);t.altKey&&(e|=o);t.shiftKey&&(e|=a);if(-1===[16,17,18,91].indexOf(t.keyCode)){if(229===t.keyCode&&t.keyIdentifier)return e|=parseInt(t.keyIdentifier.substr(2),16);e|=t.keyCode}return e}(t);var e}e.hash=s,e.is=function(t,e){return t&&e&&s(t)==s(e)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,n){var r={Shift:16,Control:17,Alt:18,CapsLock:20,BackSpace:8,Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Direction:{37:1,38:1,39:1,40:1},Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190};for(var i in r)r.hasOwnProperty(i)&&(r[i.toLowerCase()]=r[i]);var o="a".charCodeAt(0);"abcdefghijklmnopqrstuvwxyz".split("").forEach(function(t){r[t]=t.charCodeAt(0)-o+65});var a=9;do{r[a.toString()]=a+48}while(--a);n.exports=r}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(44);return r.exports=function(){var t=this.fsm,e=this.minder,n=this.receiver,r=this.container,o=new i(r);o.setParentFSM(t),t.when("normal -> hotbox",function(t,n,r){var i,a=e.getSelectedNode();if(a){var s=a.getRenderBox();i={x:s.cx,y:s.cy}}o.active("main",i)}),t.when("normal -> normal",function(t,n,r,i){"shortcut-handle"==r&&(o.dispatch(i)?i.preventDefault():e.dispatchKeyEvent(i))}),t.when("modal -> normal",function(t,e,r,i){"import-text-finish"==r&&n.element.focus()}),this.hotbox=o}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(57),o=n(113);function a(t){return document.createElement(t)}function s(t,e){t.classList.add(e)}function c(t,e){t.classList.remove(e)}function u(t,e){t.appendChild(e)}var l=d.STATE_IDLE="idle",h="div";function f(t,e){return"object"!=typeof e&&(e=[].slice.apply(arguments,1)),String(t).replace(/\{(\w+)\}/g,function(t,n){return e[n]||t})}function d(t){if("string"==typeof t&&(t=document.querySelector(t)),!(t&&t instanceof HTMLElement))throw new Error("No container or not invalid container for hot box");var e=a(h);s(e,"hotbox"),u(t,e),this.$element=e,this.$container=t,this.isIME=!1,this.browser={sg:/se[\s\S]+metasr/.test(navigator.userAgent.toLowerCase())},this._parentFSM={},this.position={};var n,r={},d=null,p=l,g=[],m=this;function v(t,e){if(m.position=e,t==l)p!=l&&(g.shift().deactive(),g=[]),p=l;else if("back"==t)p!=l&&(p.deactive(),g.shift(),(p=g[0])?p.active():p="idle");else{p!=l&&p.deactive();var n=r[t];g.unshift(n),"function"==typeof m.position&&(e=m.position(e)),n.active(e),p=n}}this.control=function(t){if(!n)return(n=new(t=t||o)(m)).active(),e.onmousedown=function(t){t.stopPropagation(),t.preventDefault()},m;n.active()},this.state=function(t){if(!t)return p;if(t==l)throw new Error("Can not define or use the `idle` state.");return r[t]=r[t]||new function(t,e){var n="selected",r="pressed",i="active",o=a(h),d=a(h),p=a(h),g=a("div"),m=a(h),v=a(h);s(o,"state"),s(o,e),s(d,"center"),s(p,"ring"),s(g,"ring-shape"),s(m,"top"),s(v,"bottom"),u(t.$element,o),u(o,g),u(o,d),u(o,p),u(o,m),u(o,v),this.name=e;var b={center:null,ring:[],top:[],bottom:[],behind:[]},y=[],w=null,x=null,_=!1,A=!0;function S(){return!0}function k(t,e){return t('<span class="label">{label}</span><span class="key">{key}</span>',{label:e.label,key:e.key&&e.key.split("|")[0]})}function N(t){x&&x.$button&&c(x.$button,r),(x=t)&&x.$button&&s(x.$button,r)}function C(t){w&&w.$button&&w.$button&&c(w.$button,n),(w=t)&&w.$button&&s(w.$button,n)}function L(e){e&&(e.enable&&!e.enable()||(e.action&&e.action(e),t.active(e.next||l,t.position)),N(null),C(null))}this.button=function(t){var e=function(t){var e=a(h);s(e,"button");var n=t.render||k;switch(e.innerHTML=n(f,t),t.position){case"center":u(d,e);break;case"ring":u(p,e);break;case"top":u(m,e);break;case"bottom":u(v,e)}return{action:t.action,enable:t.enable||S,beforeShow:t.beforeShow,key:t.key,next:t.next,label:t.label,data:t.data||null,$button:e}}(t);"center"==t.position?b.center=e:b[t.position]&&b[t.position].push(e),y.push(e),A=!0},this.active=function(e){var n,r;(e=e||{x:t.$container.clientWidth/2,y:t.$container.clientHeight/2})&&(o.style.left=e.x+"px",o.style.top=e.y+"px"),y.forEach(function(t){var e=t.$button;e&&e.classList[t.enable()?"add":"remove"]("enabled"),t.beforeShow&&t.beforeShow()}),s(o,i),A&&(function(t){var e,n,r,i,o=b.ring,a=2*Math.PI/o.length;b.center&&(b.center.indexedPosition=[0,0]),g.style.marginLeft=g.style.marginTop=-t+"px",g.style.width=g.style.height=t+t+"px";for(var s=0;s<o.length;s++)e=o[s].$button,n=a*s-Math.PI/2,r=t*Math.cos(n),i=t*Math.sin(n),o[s].indexedPosition=[r,i],e.style.left=r+"px",e.style.top=i+"px"}(r=15*b.ring.length),function(t){var e=-m.clientWidth/2,n=2*-t-m.clientHeight/2;m.style.marginLeft=e+"px",m.style.marginTop=n+"px",b.top.forEach(function(t){var r=t.$button;t.indexedPosition=[e+r.offsetLeft+r.clientWidth/2,n]})}(r),function(t){var e=-v.clientWidth/2,n=2*t-v.clientHeight/2;v.style.marginLeft=e+"px",v.style.marginTop=n+"px",b.bottom.forEach(function(t){var r=t.$button;t.indexedPosition=[e+r.offsetLeft+r.clientWidth/2,n]})}(r),(n=y.filter(function(t){return t.indexedPosition})).forEach(function(t){var e,r,i,o,a,s,c={},u=0,l={},h=t.indexedPosition,f=Math.abs;n.forEach(function(n){if(t!=n)for(e=n.indexedPosition,a=[],r=e[0]-h[0],i=e[1]-h[1],o=Math.sqrt(r*r+i*i),f(r)>2&&(a.push(r>0?"right":"left"),a.push(o+f(i))),f(i)>2&&(a.push(i>0?"down":"up"),a.push(o+f(r)));a.length;)s=a.shift(),u=a.shift(),(!c[s]||u<l[s])&&(c[s]=n,l[s]=u)}),t.neighbor=c}),A=!1),w||C(b.center||b.ring[0]||b.top[0]||b.bottom[0]),_=!0},this.deactive=function(){c(o,i),C(null),_=!1},o.onmouseup=function(t){if(!t.button)for(var e=t.target;e&&e!=o;)e.classList.contains("button")&&y.forEach(function(t){t.$button==e&&L(t)}),e=e.parentNode},this.handleKeyEvent=function(n){var r=null;if(t.browser.sg&&n.isKey("esc"))return x?n.isKey(x.key)||N(null):t.active("back",t.position),"back";if(n.keydown||t.isIME&&n.keyup){if(y.forEach(function(i){if(i.enable()&&n.isKey(i.key)){if(_||t.hintDeactiveMainState){if(C(i),N(i),r="buttonpress",n.keyup)return L(i),r="execute"}else L(i),r="execute";n.preventDefault(),n.stopPropagation(),!_&&t.hintDeactiveMainState&&t.active(e,t.position)}}),_){if(n.isKey("esc"))return x?n.isKey(x.key)||N(null):t.active("back",t.position),"back";["up","down","left","right"].forEach(function(t){if(n.isKey(t))if(w){for(var e=w.neighbor[t];e&&!e.enable();)e=e.neighbor[t];e&&C(e),r="navigate"}else C(b.center||b.ring[0]||b.top[0]||b.bottom[0])}),n.isKey("space")&&n.keyup?(L(w),n.preventDefault(),n.stopPropagation(),r="execute"):n.isKey("space")&&w?(N(w),r="buttonpress"):x&&x!=w&&(N(null),r="selectcancel")}}else!n.keyup||!_&&t.hintDeactiveMainState||x&&(n.isKey("space")&&w==x||n.isKey(x.key))&&(L(x),n.preventDefault(),n.stopPropagation(),r="execute");return t.isIME=229==n.keyCode&&n.keydown,r}}(this,t),"main"==t&&(d=r[t]),r[t]},this.active=v,this.dispatch=function(e){var n=e.type.toLowerCase();if(e.keyHash=i.hash(e),e.isKey=function(t){if(!t)return!1;for(var n=t.split(/\s*\|\s*/);n.length;)if(e.keyHash==i.hash(n.shift()))return!0;return!1},e[n]=!0,!(e.keyup&&m.activeKey&&e.isKey(m.activeKey)&&p==l&&d)){var r=p==l?d:p;if(r){var o=r.handleKeyEvent(e);return"function"==typeof m.onkeyevent&&(e.handleResult=o,m.onkeyevent(e,o)),o}return null}v("main",{x:t.clientWidth/2,y:t.clientHeight/2})},this.setParentFSM=function(t){m._parentFSM=t},this.getParentFSM=function(){return m._parentFSM},this.activeKey="space",this.actionKey="space"}r.exports=d}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,n){var r={Shift:16,Control:17,Alt:18,CapsLock:20,BackSpace:8,Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Direction:{37:1,38:1,39:1,40:1},Delete:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190};for(var i in r)r.hasOwnProperty(i)&&(r[i.toLowerCase()]=r[i]);var o="a".charCodeAt(0);"abcdefghijklmnopqrstuvwxyz".split("").forEach(function(t){r[t]=t.charCodeAt(0)-o+65});var a=9;do{r[a.toString()]=a+48}while(a--);n.exports=r}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,r){n(57);var i="hotbox-focus",o="hotbox-key-receiver";r.exports=function(t){var e,n=!0,r=!1,a=t.$container;function s(e){n&&t.dispatch(e)}function c(){e.select(),e.focus(),n=!0,a.classList.add(i)}function u(){e.blur(),n=!1,a.classList.remove(i)}(e=document.createElement("input")).classList.add(o),a.appendChild(e),r=!0,e.onkeyup=s,e.onkeypress=s,e.onkeydown=s,e.onfocus=c,e.onblur=u,r&&(e.oninput=function(t){e.value=null}),a.onmousedown=function(t){c(),t.preventDefault()},c(),this.handle=s,this.active=c,this.deactive=u}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,r){n(115);var i=new(n(36))("input");return r.exports=function(){var t=this.fsm,e=this.minder,n=this.hotbox,r=this.receiver,o=r.element,a=window.kity.Browser.gecko;function s(){var n=e.getSelectedNode();if(n){var i=o;if(o.innerText="","bold"===n.getData("font-weight")){var s=document.createElement("b");i.appendChild(s),i=s}if("italic"===n.getData("font-style")){var c=document.createElement("i");i.appendChild(c),i=c}i.innerText=e.queryCommandValue("text"),a&&r.fixFFCaretDisappeared(),t.jump("input","input-request"),r.selectAll()}}function c(){var t=e.getSelectedNode();if(t){var n=t.getData("font-size")||t.getStyle("font-size");o.style.fontSize=n+"px",o.style.minWidth=0,o.style.minWidth=o.clientWidth+"px",o.style.fontWeight=t.getData("font-weight")||"",o.style.fontStyle=t.getData("font-style")||"",o.classList.add("input"),o.focus()}}function u(){o.classList.remove("input"),r.selectAll()}function l(){var t=l,n=e.getSelectedNode();n&&(t.timer||(t.timer=setTimeout(function(){var e=n.getRenderBox("TextRenderer");o.style.left=Math.round(e.x)+"px",o.style.top=(i.flaged?Math.round(e.bottom+30):Math.round(e.y))+"px",t.timer=0})))}i.flaged&&o.classList.add("debug"),o.onmousedown=function(t){t.stopPropagation()},e.on("layoutallfinish viewchange viewchanged selectionchange",function(e){"viewchange"==e.type&&"input"!=t.state()||l()}),l(),t.when("* -> input",c),t.when("input -> *",function(t,n,r){switch(r){case"input-cancel":return u();case"input-commit":default:return function(){var t=[].slice.call(o.childNodes);setTimeout(function(){o.innerHTML=""},0);var n=e.getSelectedNode();if(t=function(t){for(var n,r,i,o="",a=/\S/,s=new RegExp("( |"+String.fromCharCode(160)+")"),c=document.createElement("br"),l=!1,h=!1,f=0,d=t.length;f<d;f++)switch(n=t[f],Object.prototype.toString.call(n)){case"[object HTMLBRElement]":o+="\n";break;case"[object Text]":if(n=n.textContent.replace(" "," "),a.test(n))o+=n;else for(i=n.length;i--;)s.test(n[i])?o+=" ":"\t"===n[i]&&(o+="\t");break;case"[object HTMLElement]":switch(n.nodeName){case"B":l=!0;break;case"I":h=!0}[].splice.apply(t,[f,1].concat([].slice.call(n.childNodes))),d=t.length,f--;break;case"[object HTMLSpanElement]":[].splice.apply(t,[f,1].concat([].slice.call(n.childNodes))),d=t.length,f--;break;case"[object HTMLImageElement]":n.src&&/http(|s):\/\//.test(n.src)&&e.execCommand("Image",n.src,n.alt);break;case"[object HTMLDivElement]":r=[];for(var p=0,d=n.childNodes.length;p<d;p++)r.push(n.childNodes[p]);r.push(c),[].splice.apply(t,[f,1].concat(r)),d=t.length,f--;break;default:if(n&&n.childNodes.length){r=[];for(var p=0,d=n.childNodes.length;p<d;p++)r.push(n.childNodes[p]);r.push(c),[].splice.apply(t,[f,1].concat(r)),d=t.length,f--}else n&&void 0!==n.textContent?o+=n.textContent:o+=""}return o=(o=o.replace(/^\n*|\n*$/g,"")).replace(new RegExp("(\n|\r|\n\r)( |"+String.fromCharCode(160)+"){4}","g"),"$1\t"),e.getSelectedNode().setText(o),l?e.queryCommandState("bold")||e.execCommand("bold"):e.queryCommandState("bold")&&e.execCommand("bold"),h?e.queryCommandState("italic")||e.execCommand("italic"):e.queryCommandState("italic")&&e.execCommand("italic"),u(),o}(t),function(t,n){try{e.decodeData("text",n).then(function(n){!function t(e,n,r){var i=n.data;e.setText(i.text||"");for(var o=n.children||[],a=0;a<o.length;a++){var s=r.createNode(null,e);t(s,o[a],r)}return e}(t,n,e),e.fire("contentchange"),e.getRoot().renderTree(),e.layout(300)})}catch(t){if(e.fire("contentchange"),e.getRoot().renderTree(),"Error: Invalid local format"!==t.toString())throw t}}(n,t),"root"==n.type){var r=e.getRoot().getText();e.fire("initChangeRoot",{text:r})}}()}}),r.onblur(function(e){"input"==t.state()&&t.jump("normal","input-commit")}),e.on("beforemousedown",function(){"input"==t.state()&&t.jump("normal","input-commit")}),e.on("dblclick",function(){e.getSelectedNode()&&"readonly"!==e._status&&s()}),n.state("main").button({position:"center",label:"编辑",key:"F2",enable:function(){return-1!=e.queryCommandState("text")},action:s}),this.editText=s}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,n){!("innerText"in document.createElement("a"))&&"getSelection"in window&&(HTMLElement.prototype.__defineGetter__("innerText",function(){var t,e,n=window.getSelection(),r=[];for(e=0;e<n.rangeCount;e++)r[e]=n.getRangeAt(e);for(n.removeAllRanges(),n.selectAllChildren(this),t=n.toString(),n.removeAllRanges(),e=0;e<r.length;e++)n.addRange(r[e]);return t}),HTMLElement.prototype.__defineSetter__("innerText",function(t){this.innerHTML=(t||"").replace(/</g,"<").replace(/>/g,">").replace(/\n/g,"<br>")}))}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,n){function r(){var t="\ufeff",e={"application/km":""},n={"\ufeff":"SPLITOR","":"application/km"};function r(e,n){if(!this.isPureText(n)){if(!this.whichMimeType(n))throw new Error("unknow mimetype!");n=this.getPureText(n)}return!1===e?n:e+t+n}this.registMimeTypeProtocol=function(t,r){if(r&&n[r])throw new Error("sing has registed!");if(t&&e[t])throw new Error("mimetype has registed!");n[r]=t,e[t]=r},this.getMimeTypeProtocol=function(t,n){var i=e[t]||!1;return void 0===n?r.bind(this,i):r(i,n)},this.getSpitor=function(){return t},this.getMimeType=function(t){return void 0!==t?n[t]||null:e}}return r.prototype.isPureText=function(t){return!~t.indexOf(this.getSpitor())},r.prototype.getPureText=function(t){return this.isPureText(t)?t:t.split(this.getSpitor())[1]},r.prototype.whichMimeType=function(t){return this.isPureText(t)?null:this.getMimeType(t.split(this.getSpitor())[0])},n.exports=function(){this.minder.supportClipboardEvent&&!kity.Browser.gecko&&(this.MimeType=new r)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,n){return n.exports=function(){var t=this.minder,e=window.kityminder.data;if(t.supportClipboardEvent&&!kity.Browser.gecko){var n=this.fsm,r=this.receiver,i=this.MimeType,o=i.getMimeTypeProtocol("application/km"),a=e.getRegisterProtocol("json").decode,s=[];document.addEventListener("copy",function(e){if(document.activeElement==r.element){var i=e;switch(n.state()){case"input":break;case"normal":var o=[].concat(t.getSelectedNodes());if(o.length){var a;if(o.length>1&&(o.sort(function(t,e){return t.getLevel()-e.getLevel()}),(a=o[0].getLevel())!==o[o.length-1].getLevel())){var s,u=0,l=o.length,h=l-1;for(s=o[h];s.getLevel()!==a;){for(u=0;u<l&&o[u].getLevel()===a;){if(o[u].isAncestorOf(s)){o.splice(h,1);break}u++}s=o[--h]}}var f=c(o);i.clipboardData.setData("text/plain",f)}e.preventDefault()}}}),document.addEventListener("cut",function(e){if(document.activeElement==r.element){if("normal"!==t.getStatus())return void e.preventDefault();var i=e;switch(n.state()){case"input":break;case"normal":var o=t.getSelectedNodes();o.length&&(i.clipboardData.setData("text/plain",c(o)),t.execCommand("removenode")),e.preventDefault()}}}),document.addEventListener("paste",function(e){if(document.activeElement==r.element){if("normal"!==t.getStatus())return void e.preventDefault();var o=e,c=n.state(),u=o.clipboardData.getData("text/plain");switch(c){case"input":if(!i.isPureText(u))return void e.preventDefault();break;case"normal":var l=t.getSelectedNodes();if("application/km"===i.whichMimeType(u)){var h,f=a(i.getPureText(u));l.forEach(function(e){for(var n=f.length-1;n>=0;n--)h=t.createNode(null,e),t.importNode(h,f[n]),s.push(h),e.appendChild(h)}),t.select(s,!0),s=[],t.refresh()}else{if(o.clipboardData&&o.clipboardData.items[0].type.indexOf("image")>-1){var d=o.clipboardData.items[0].getAsFile();return angular.element(document.body).injector().get("server").uploadImage(d).then(function(e){var n=e.data;0===n.errno&&t.execCommand("image",n.data.url)})}l.forEach(function(e){t.Text2Children(e,u)})}e.preventDefault()}}})}function c(n){for(var r=[],i=0,a=n.length;i<a;i++)r.push(t.exportNode(n[i]));return o(e.getRegisterProtocol("json").encode(r))}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(44);new(n(36))("drag");return r.exports=function(){var t,e,n=this.fsm,r=this.minder,o=this.hotbox;this.receiver.element,n.when("* -> drag",function(){}),n.when("drag -> *",function(t,e,n){});var a,s,c,u,l,h,f=1,d=!1,p=!1;function g(t,e){if(!t)return d=p=!1,h&&kity.releaseFrame(h),void(h=null);h||(h=kity.requestFrame(function(t,e,n){return function(r){switch(t){case"left":n._viewDragger.move({x:-e,y:0},0);break;case"top":n._viewDragger.move({x:0,y:-e},0);break;case"right":n._viewDragger.move({x:e,y:0},0);break;case"bottom":n._viewDragger.move({x:0,y:e},0);break;default:return}r.next()}}(t,e,r)))}r.on("mousedown",function(n){f=0;var i=r.getPaper().container.getBoundingClientRect();console.log("rect",i),t=n.originEvent.clientX,e=n.originEvent.clientY,l=i.top,a=i.width,s=i.height,console.log("maxX",a,s)}),r.on("mousemove",function(h){if(console.log("fsm.state() === 'drag'",n.state()),"drag"===n.state()&&0==f&&r.getSelectedNode()&&(Math.abs(t-h.originEvent.clientX)>20||Math.abs(e-h.originEvent.clientY)>20)&&(c=h.originEvent.clientX,u=h.originEvent.clientY-l,c<20?g("right",20-c):c>a-20||(d=!0),u<20?g("bottom",u):u>s-20?g("top",20+u-s):p=!0,d&&p&&g(!1)),"drag"!==n.state()&&0===f&&r.getSelectedNode()&&(Math.abs(t-h.originEvent.clientX)>20||Math.abs(e-h.originEvent.clientY)>20))return console.log("999"),"hotbox"===n.state()&&o.active(i.STATE_IDLE),console.log("1010"),n.jump("drag","user-drag")}),window.addEventListener("mouseup",function(){if(f=1,"drag"===n.state())return g(!1),n.jump("normal","drag-finish")},!1)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,n){return n.exports=function(){var t=this,e=this.minder,n=this.hotbox,r=this.fsm,i=n.state("main"),o=0;["前移:Alt+Up:ArrangeUp","下级:Tab|Insert:AppendChildNode","同级:Enter:AppendSiblingNode","后移:Alt+Down:ArrangeDown","删除:Delete|Backspace:RemoveNode","上级:Shift+Tab|Shift+Insert:AppendParentNode"].forEach(function(n){var a=n.split(":"),s=a.shift(),c=a.shift(),u=a.shift();i.button({position:"ring",label:s,key:c,action:function(){0===u.indexOf("Append")?(o++,e.execCommand(u,"分支主题"),e.on("layoutallfinish",function n(){--o||t.editText(),e.off("layoutallfinish",n)})):(e.execCommand(u),r.jump("normal","command-executed"))},enable:function(){return-1!=e.queryCommandState(u)}})}),i.button({position:"bottom",label:"导入节点",key:"Alt + V",enable:function(){return 1==e.getSelectedNodes().length},action:function(){e.fire("importNodeData")},next:"idle"}),i.button({position:"bottom",label:"导出节点",key:"Alt + C",enable:function(){return 1==e.getSelectedNodes().length},action:function(){e.fire("exportNodeData")},next:"idle"})}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(121).default;return window.diff=i,r.exports=function(){var t,e,n,r,o=this.minder,a=this.hotbox,s=100;function c(){n=[],r=[],t=o.exportJson()}function u(){var e=o.exportJson(),r=i(e,t);if(r.length){for(n.push(r);n.length>s;)n.shift();return t=e,!0}}function l(){e=!0;var a,s=n.pop();s&&(o.applyPatches(s),a=o.exportJson(),r.push(i(a,t)),t=a),e=!1}function h(){e=!0;var t=r.pop();t&&(o.applyPatches(t),u()),e=!1}function f(){return!!n.length}function d(){return!!r.length}this.history={reset:c,undo:l,redo:h,hasUndo:f,hasRedo:d},c(),o.on("contentchange",function(){e||u()&&(r=[])}),o.on("import",c),o.on("patch",function(t){if(e){var n=t.patch;switch(n.express){case"node.add":o.select(n.node.getChild(n.index),!0);break;case"node.remove":case"data.replace":case"data.remove":case"data.add":o.select(n.node,!0)}}});var p=a.state("main");p.button({position:"top",label:"撤销",key:"Ctrl + Z",enable:f,action:l,next:"idle"}),p.button({position:"top",label:"重做",key:"Ctrl + Y",enable:d,action:h,next:"idle"})}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(58),i=n.n(r),o=n(37),a=n.n(o),s=n(22),c=n.n(s),u=c.a?c.a:function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e};function l(t){return-1===t.indexOf("/")&&-1===t.indexOf("~")?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function h(t){return"object"===(void 0===t?"undefined":a()(t))?JSON.parse(i()(t)):t}e.default=function(t,e){var n=[];return function t(e,n,r,i){for(var o=u(n),s=u(e),c=!1,f=s.length-1;f>=0;f--){var d=e[g=s[f]];if(n.hasOwnProperty(g)){var p=n[g];"object"==(void 0===d?"undefined":a()(d))&&null!=d&&"object"==(void 0===p?"undefined":a()(p))&&null!=p?t(d,p,r,i+"/"+l(g)):d!=p&&r.push({op:"replace",path:i+"/"+l(g),value:h(p)})}else r.push({op:"remove",path:i+"/"+l(g)}),c=!0}if(c||o.length!=s.length)for(f=0;f<o.length;f++){var g=o[f];e.hasOwnProperty(g)||r.push({op:"add",path:i+"/"+l(g),value:h(n[g])})}}(t,e,n,""),n}},function(t,e,n){var r=n(0),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(44);return console.log("Hotbox",i),r.exports=function(){var t,e,n=this.fsm,r=this.minder,o=this.receiver,a=this.container,s=o.element,c=this.hotbox,u=!1;o.listen("normal",function(t){if(o.enable(),t.is("Space"))return t.preventDefault(),kity.Browser.safari&&(s.innerHTML=""),n.jump("hotbox","space-trigger");switch(t.type){case"keydown":if(r.getSelectedNode()){if(function(t){return!(t.ctrlKey||t.metaKey||t.altKey)&&(t.keyCode>=65&&t.keyCode<=90||t.keyCode>=48&&t.keyCode<=57||108!=t.keyCode&&t.keyCode>=96&&t.keyCode<=111||108!=t.keyCode&&t.keyCode>=96&&t.keyCode<=111||229==t.keyCode||0===t.keyCode)}(t))return n.jump("input","user-input")}else s.innerHTML="";n.jump("normal","shortcut-handle",t)}}),o.listen("hotbox",function(t){if(o.disable(),t.preventDefault(),c.dispatch(t),c.state()==i.STATE_IDLE&&"hotbox"==n.state())return n.jump("normal","hotbox-idle")}),o.listen("input",function(t){if(o.enable(),"keydown"==t.type){if(t.is("Enter"))return t.preventDefault(),n.jump("normal","input-commit");if(t.is("Esc"))return t.preventDefault(),n.jump("normal","input-cancel");(t.is("Tab")||t.is("Shift + Tab"))&&t.preventDefault()}else if("keyup"==t.type&&t.is("Esc")){if(t.preventDefault(),!u)return n.jump("normal","input-cancel")}else"compositionstart"==t.type?u=!0:"compositionend"==t.type&&setTimeout(function(){u=!1})}),a.addEventListener("mousedown",function(r){2==r.button&&r.preventDefault(),"hotbox"==n.state()?(c.active(i.STATE_IDLE),n.jump("normal","blur")):"normal"==n.state()&&2==r.button&&(t=r.clientX,e=r.clientY)},!1),a.addEventListener("mousewheel",function(t){"hotbox"==n.state()&&(c.active(i.STATE_IDLE),n.jump("normal","mousemove-blur"))},!1),a.addEventListener("contextmenu",function(t){t.preventDefault()}),a.addEventListener("mouseup",function(i){"normal"==n.state()&&2==i.button&&i.clientX==t&&i.clientY==e&&r.getSelectedNode()&&n.jump("hotbox","content-menu")},!1),c.$element.addEventListener("mousedown",function(t){t.stopPropagation()})}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,n){return n.exports=function(){var t=this.minder,e=this.hotbox;e.state("main").button({position:"top",label:"优先级",key:"P",next:"priority",enable:function(){return-1!=t.queryCommandState("priority")}});var n=e.state("priority");"123456789".replace(/./g,function(e){n.button({position:"ring",label:"P"+e,key:e,action:function(){t.execCommand("Priority",e)}})}),n.button({position:"center",label:"移除",key:"Del",action:function(){t.execCommand("Priority",0)}}),n.button({position:"top",label:"返回",key:"esc",next:"back"})}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t,e,n){return n.exports=function(){var t=this.minder,e=this.hotbox;e.state("main").button({position:"top",label:"进度",key:"G",next:"progress",enable:function(){return-1!=t.queryCommandState("progress")}});var n=e.state("progress");"012345678".replace(/./g,function(e){n.button({position:"ring",label:"G"+e,key:e,action:function(){t.execCommand("Progress",parseInt(e)+1)}})}),n.button({position:"center",label:"移除",key:"Del",action:function(){t.execCommand("Progress",0)}}),n.button({position:"top",label:"返回",key:"esc",next:"back"})}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(127);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(35)("63368064",r,!0,{})},function(t,e,n){var r=n(128);(t.exports=n(34)(!1)).push([t.i,'.km-editor {\r\n\toverflow: hidden;\r\n\tz-index: 2;\r\n\theight: 100%;\r\n\twidth: 100%\r\n}\r\n\r\n.km-editor>.mask {\r\n\tdisplay: block;\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\tright: 0;\r\n\ttop: 0;\r\n\tbottom: 0;\r\n\tbackground-color: transparent\r\n}\r\n\r\n.km-editor>.receiver {\r\n\tposition: absolute;\r\n\tbackground: #fff;\r\n\toutline: 0;\r\n\tbox-shadow: 0 0 20px rgba(0, 0, 0, .5);\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tpadding: 3px 5px;\r\n\tmargin-left: -3px;\r\n\tmargin-top: -5px;\r\n\tmax-width: 300px;\r\n\twidth: auto;\r\n\tfont-size: 14px;\r\n\tline-height: 1.4em;\r\n\tmin-height: 1.4em;\r\n\tbox-sizing: border-box;\r\n\toverflow: hidden;\r\n\tword-break: break-all;\r\n\tword-wrap: break-word;\r\n\tborder: none;\r\n\t-webkit-user-select: text;\r\n\tpointer-events: none;\r\n\topacity: 0;\r\n\tz-index: -1000\r\n}\r\n\r\n.km-editor>.receiver.debug {\r\n\topacity: 1;\r\n\toutline: 1px solid green;\r\n\tbackground: 0 0;\r\n\tz-index: 0\r\n}\r\n\r\n.km-editor>.receiver.input {\r\n\tpointer-events: all;\r\n\topacity: 1;\r\n\tz-index: 999;\r\n\tbackground: #fff;\r\n\toutline: 0\r\n}\r\n\r\ndiv.minder-editor-container {\r\n\tposition: absolute;\r\n\tbottom: 0;\r\n\tleft: 0;\r\n\tright: 0;\r\n\ttop: 0;\r\n\tfont-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif\r\n}\r\n\r\n.minder-editor {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tright: 0;\r\n\tbottom: 0\r\n}\r\n\r\n.minder-viewer {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tright: 0;\r\n\tbottom: 0\r\n}\r\n\r\n.control-panel {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n\twidth: 250px;\r\n\tbottom: 0;\r\n\tborder-left: 1px solid #ccc\r\n}\r\n\r\n.minder-divider {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 250px;\r\n\tbottom: 0;\r\n\twidth: 2px;\r\n\tbackground-color: #fbfbfb;\r\n\tcursor: ew-resize\r\n}\r\n\r\n.panel-body {\r\n\tpadding: 10px\r\n}\r\n\r\n.upload-image {\r\n\twidth: .1px;\r\n\theight: .1px;\r\n\topacity: 0;\r\n\toverflow: hidden;\r\n\tposition: absolute;\r\n\tz-index: -1\r\n}\r\n\r\n.top-tab .nav-tabs {\r\n\tbackground-color: #e1e1e1;\r\n\tborder: 0;\r\n\theight: 32px\r\n}\r\n\r\n.top-tab .nav-tabs li {\r\n\tmargin: 0\r\n}\r\n\r\n.top-tab .nav-tabs li a {\r\n\tmargin: 0;\r\n\tborder: 0;\r\n\tpadding: 6px 15px;\r\n\tborder-radius: 0;\r\n\tvertical-align: middle\r\n}\r\n\r\n.top-tab .nav-tabs li a:focus,\r\n.top-tab .nav-tabs li a:hover {\r\n\tbackground: inherit;\r\n\tborder: 0\r\n}\r\n\r\n.top-tab .nav-tabs li.active a {\r\n\tborder: 0;\r\n\tbackground-color: #fff\r\n}\r\n\r\n.top-tab .nav-tabs li.active a:focus,\r\n.top-tab .nav-tabs li.active a:hover {\r\n\tborder: 0\r\n}\r\n\r\n.top-tab .tab-content {\r\n\theight: 60px;\r\n\tbackground-color: #fff;\r\n\tborder-bottom: 1px solid #dbdbdb\r\n}\r\n\r\n.top-tab .tab-pane {\r\n\tfont-size: 0\r\n}\r\n\r\n.km-btn-group {\r\n\tdisplay: inline-block;\r\n\tmargin: 5px 0;\r\n\tpadding: 0 5px;\r\n\tvertical-align: middle;\r\n\tborder-right: 1px dashed #eee\r\n}\r\n\r\n.km-btn-item {\r\n\tdisplay: inline-block;\r\n\tmargin: 0 3px;\r\n\tfont-size: 0;\r\n\tcursor: default\r\n}\r\n\r\n.km-btn-item[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.km-btn-item[disabled]:active,\r\n.km-btn-item[disabled]:hover {\r\n\tbackground-color: #fff\r\n}\r\n\r\n.km-btn-item .km-btn-icon {\r\n\tdisplay: inline-block;\r\n\tbackground: url('+r(n(2))+") no-repeat;\r\n\tbackground-position: 0 20px;\r\n\twidth: 20px;\r\n\theight: 20px;\r\n\tpadding: 2px;\r\n\tmargin: 1px;\r\n\tvertical-align: middle\r\n}\r\n\r\n.km-btn-item .km-btn-caption {\r\n\tdisplay: inline-block;\r\n\tfont-size: 12px;\r\n\tvertical-align: middle\r\n}\r\n\r\n.km-btn-item:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.km-btn-item:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.do-group {\r\n\twidth: 38px\r\n}\r\n\r\n.undo .km-btn-icon {\r\n\tbackground-position: 0 -1240px\r\n}\r\n\r\n.redo .km-btn-icon {\r\n\tbackground-position: 0 -1220px\r\n}\r\n\r\n.append-group {\r\n\twidth: 212px\r\n}\r\n\r\n.append-child-node .km-btn-icon {\r\n\tbackground-position: 0 0\r\n}\r\n\r\n.append-sibling-node .km-btn-icon {\r\n\tbackground-position: 0 -20px\r\n}\r\n\r\n.append-parent-node .km-btn-icon {\r\n\tbackground-position: 0 -40px\r\n}\r\n\r\n.arrange-group {\r\n\twidth: 64px\r\n}\r\n\r\n.arrange-up .km-btn-icon {\r\n\tbackground-position: 0 -280px\r\n}\r\n\r\n.arrange-down .km-btn-icon {\r\n\tbackground-position: 0 -300px\r\n}\r\n\r\n.operation-group {\r\n\twidth: 64px\r\n}\r\n\r\n.edit-node .km-btn-icon {\r\n\tbackground-position: 0 -60px\r\n}\r\n\r\n.remove-node .km-btn-icon {\r\n\tbackground-position: 0 -80px\r\n}\r\n\r\n.btn-group-vertical {\r\n\tvertical-align: middle;\r\n\tmargin: 5px\r\n}\r\n\r\n.btn-group-vertical .hyperlink,\r\n.btn-group-vertical .hyperlink-caption {\r\n\twidth: 40px;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tborder: none !important;\r\n\tborder-radius: 0 !important\r\n}\r\n\r\n.btn-group-vertical .hyperlink-caption:hover,\r\n.btn-group-vertical .hyperlink:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .hyperlink-caption:active,\r\n.btn-group-vertical .hyperlink:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.btn-group-vertical .hyperlink-caption.active,\r\n.btn-group-vertical .hyperlink.active {\r\n\tbox-shadow: none;\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .hyperlink {\r\n\theight: 25px;\r\n\tbackground: url("+r(n(2))+") no-repeat center -100px\r\n}\r\n\r\n.btn-group-vertical .hyperlink-caption {\r\n\theight: 20px\r\n}\r\n\r\n.btn-group-vertical .hyperlink-caption .caption {\r\n\tfont-size: 12px\r\n}\r\n\r\n.open>.dropdown-toggle.btn-default {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .image-btn,\r\n.btn-group-vertical .image-btn-caption {\r\n\twidth: 40px;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tborder: none !important;\r\n\tborder-radius: 0 !important\r\n}\r\n\r\n.btn-group-vertical .image-btn-caption:hover,\r\n.btn-group-vertical .image-btn:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .image-btn-caption:active,\r\n.btn-group-vertical .image-btn:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.btn-group-vertical .image-btn-caption.active,\r\n.btn-group-vertical .image-btn.active {\r\n\tbox-shadow: none;\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .image-btn {\r\n\theight: 25px;\r\n\tbackground: url("+r(n(2))+") no-repeat center -125px\r\n}\r\n\r\n.btn-group-vertical .image-btn-caption {\r\n\theight: 20px\r\n}\r\n\r\n.btn-group-vertical .image-btn-caption .caption {\r\n\tfont-size: 12px\r\n}\r\n\r\n.image-preview {\r\n\tdisplay: block;\r\n\tmax-width: 50%\r\n}\r\n\r\n.modal-body .tab-pane {\r\n\tfont-size: inherit;\r\n\tpadding-top: 15px\r\n}\r\n\r\n.search-result {\r\n\tmargin-top: 15px;\r\n\theight: 370px;\r\n\toverflow: hidden\r\n}\r\n\r\n.search-result ul {\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tlist-style: none;\r\n\tclear: both;\r\n\theight: 100%;\r\n\toverflow-x: hidden;\r\n\toverflow-y: auto\r\n}\r\n\r\n.search-result ul li {\r\n\tlist-style: none;\r\n\tfloat: left;\r\n\tdisplay: block;\r\n\twidth: 130px;\r\n\theight: 130px;\r\n\tline-height: 130px;\r\n\tmargin: 6px;\r\n\tpadding: 0;\r\n\tfont-size: 12px;\r\n\tposition: relative;\r\n\tvertical-align: top;\r\n\ttext-align: center;\r\n\toverflow: hidden;\r\n\tcursor: pointer;\r\n\tborder: 2px solid #fcfcfc\r\n}\r\n\r\n.search-result ul li.selected {\r\n\tborder: 2px solid #fc8383\r\n}\r\n\r\n.search-result ul li img {\r\n\tmax-width: 126px;\r\n\tmax-height: 130px;\r\n\tvertical-align: middle\r\n}\r\n\r\n.search-result ul li span {\r\n\tdisplay: block;\r\n\tposition: absolute;\r\n\tbottom: 0;\r\n\theight: 20px;\r\n\tbackground: rgba(0, 0, 0, .5);\r\n\tleft: 0;\r\n\tright: 0;\r\n\tcolor: #fff;\r\n\tline-height: 20px;\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n\tword-break: break-all;\r\n\twhite-space: nowrap;\r\n\topacity: 0;\r\n\t-ms-transform: translate(0, 20px);\r\n\ttransform: translate(0, 20px);\r\n\ttransition: all .2s ease\r\n}\r\n\r\n.search-result ul li:hover span {\r\n\topacity: 1;\r\n\t-ms-transform: translate(0, 0);\r\n\ttransform: translate(0, 0)\r\n}\r\n\r\n@media (min-width:768px) {\r\n\t.form-inline .form-control {\r\n\t\twidth: 422px\r\n\t}\r\n}\r\n\r\n.btn-group-vertical {\r\n\tvertical-align: top;\r\n\tmargin: 5px\r\n}\r\n\r\n.btn-group-vertical.note-btn-group {\r\n\tborder-right: 1px dashed #eee;\r\n\tpadding-right: 5px\r\n}\r\n\r\n.btn-group-vertical .note-btn,\r\n.btn-group-vertical .note-btn-caption {\r\n\twidth: 40px;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tborder: none !important;\r\n\tborder-radius: 0 !important\r\n}\r\n\r\n.btn-group-vertical .note-btn-caption:hover,\r\n.btn-group-vertical .note-btn:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .note-btn-caption:active,\r\n.btn-group-vertical .note-btn:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.btn-group-vertical .note-btn-caption.active,\r\n.btn-group-vertical .note-btn.active {\r\n\tbox-shadow: none;\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .note-btn {\r\n\theight: 25px;\r\n\tbackground: url("+r(n(2))+") no-repeat center -1150px\r\n}\r\n\r\n.btn-group-vertical .note-btn-caption {\r\n\theight: 20px\r\n}\r\n\r\n.btn-group-vertical .note-btn-caption .caption {\r\n\tfont-size: 12px\r\n}\r\n\r\n.open>.dropdown-toggle.btn-default {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.gfm-render {\r\n\tfont-size: 12px;\r\n\t-webkit-user-select: text;\r\n\tcolor: #333;\r\n\tline-height: 1.8em\r\n}\r\n\r\n.gfm-render blockquote,\r\n.gfm-render hr,\r\n.gfm-render p,\r\n.gfm-render pre,\r\n.gfm-render table,\r\n.gfm-render ul {\r\n\tmargin: 1em 0;\r\n\tcursor: text\r\n}\r\n\r\n.gfm-render blockquote:first-child:last-child,\r\n.gfm-render hr:first-child:last-child,\r\n.gfm-render p:first-child:last-child,\r\n.gfm-render pre:first-child:last-child,\r\n.gfm-render table:first-child:last-child,\r\n.gfm-render ul:first-child:last-child {\r\n\tmargin: 0\r\n}\r\n\r\n.gfm-render img {\r\n\tmax-width: 100%\r\n}\r\n\r\n.gfm-render a {\r\n\tcolor: #00f\r\n}\r\n\r\n.gfm-render a:hover {\r\n\tcolor: red\r\n}\r\n\r\n.gfm-render blockquote {\r\n\tdisplay: block;\r\n\tborder-left: 4px solid #e4ad91;\r\n\tcolor: #da8e68;\r\n\tpadding-left: 10px;\r\n\tfont-style: italic;\r\n\tmargin-left: 2em\r\n}\r\n\r\n.gfm-render ol,\r\n.gfm-render ul {\r\n\tpadding-left: 3em\r\n}\r\n\r\n.gfm-render table {\r\n\twidth: 100%;\r\n\tborder-collapse: collapse;\r\n\tmargin: 1em 0\r\n}\r\n\r\n.gfm-render table td,\r\n.gfm-render table th {\r\n\tborder: 1px solid #666;\r\n\tpadding: 2px 4px\r\n}\r\n\r\n.gfm-render table th {\r\n\tbackground: rgba(45, 141, 234, .2)\r\n}\r\n\r\n.gfm-render table tr:nth-child(even) td {\r\n\tbackground: rgba(45, 141, 234, .03)\r\n}\r\n\r\n.gfm-render em {\r\n\tcolor: red\r\n}\r\n\r\n.gfm-render del {\r\n\tcolor: #999\r\n}\r\n\r\n.gfm-render pre {\r\n\tbackground: rgba(45, 141, 234, .1);\r\n\tpadding: 5px;\r\n\tborder-radius: 5px;\r\n\tword-break: break-all;\r\n\tword-wrap: break-word\r\n}\r\n\r\n.gfm-render code {\r\n\tbackground: rgba(45, 141, 234, .1);\r\n\tpadding: 0 5px;\r\n\tborder-radius: 3px\r\n}\r\n\r\n.gfm-render pre code {\r\n\tbackground: 0 0\r\n}\r\n\r\n.gfm-render hr {\r\n\tborder: none;\r\n\tborder-top: 1px solid #ccc\r\n}\r\n\r\n.gfm-render .highlight {\r\n\tbackground: #ff0;\r\n\tcolor: red\r\n}\r\n\r\n.km-note {\r\n\twidth: 300px;\r\n\tborder-left: 1px solid #babfcd;\r\n\tpadding: 5px 10px;\r\n\tbackground: #fff;\r\n\tposition: absolute;\r\n\ttop: 92px;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\tleft: auto;\r\n\tz-index: 3\r\n}\r\n\r\n.km-note.panel {\r\n\tmargin: 0;\r\n\tpadding: 0\r\n}\r\n\r\n.km-note.panel .panel-heading h3 {\r\n\tdisplay: inline-block\r\n}\r\n\r\n.km-note.panel .panel-heading .close-note-editor {\r\n\twidth: 15px;\r\n\theight: 15px;\r\n\tdisplay: inline-block;\r\n\tfloat: right\r\n}\r\n\r\n.km-note.panel .panel-heading .close-note-editor:hover {\r\n\tcursor: pointer\r\n}\r\n\r\n.km-note.panel .panel-body {\r\n\tpadding: 0\r\n}\r\n\r\n.km-note .CodeMirror {\r\n\tposition: absolute;\r\n\ttop: 41px;\r\n\tbottom: 0;\r\n\theight: auto;\r\n\tcursor: text;\r\n\tfont-size: 14px;\r\n\tline-height: 1.3em;\r\n\tfont-family: consolas\r\n}\r\n\r\n.km-note-tips {\r\n\tcolor: #ccc;\r\n\tpadding: 3px 8px\r\n}\r\n\r\n#previewer-content {\r\n\tposition: absolute;\r\n\tbackground: #ffd;\r\n\tpadding: 5px 15px;\r\n\tborder-radius: 5px;\r\n\tmax-width: 400px;\r\n\tmax-height: 200px;\r\n\toverflow: auto;\r\n\tz-index: 10;\r\n\tbox-shadow: 0 0 15px rgba(0, 0, 0, .5);\r\n\tword-break: break-all;\r\n\tfont-size: 12px;\r\n\t-webkit-user-select: text;\r\n\tcolor: #333;\r\n\tline-height: 1.8em\r\n}\r\n\r\n#previewer-content blockquote,\r\n#previewer-content hr,\r\n#previewer-content p,\r\n#previewer-content pre,\r\n#previewer-content table,\r\n#previewer-content ul {\r\n\tmargin: 1em 0;\r\n\tcursor: text\r\n}\r\n\r\n#previewer-content blockquote:first-child:last-child,\r\n#previewer-content hr:first-child:last-child,\r\n#previewer-content p:first-child:last-child,\r\n#previewer-content pre:first-child:last-child,\r\n#previewer-content table:first-child:last-child,\r\n#previewer-content ul:first-child:last-child {\r\n\tmargin: 0\r\n}\r\n\r\n#previewer-content img {\r\n\tmax-width: 100%\r\n}\r\n\r\n#previewer-content a {\r\n\tcolor: #00f\r\n}\r\n\r\n#previewer-content a:hover {\r\n\tcolor: red\r\n}\r\n\r\n#previewer-content blockquote {\r\n\tdisplay: block;\r\n\tborder-left: 4px solid #e4ad91;\r\n\tcolor: #da8e68;\r\n\tpadding-left: 10px;\r\n\tfont-style: italic;\r\n\tmargin-left: 2em\r\n}\r\n\r\n#previewer-content ol,\r\n#previewer-content ul {\r\n\tpadding-left: 3em\r\n}\r\n\r\n#previewer-content table {\r\n\twidth: 100%;\r\n\tborder-collapse: collapse;\r\n\tmargin: 1em 0\r\n}\r\n\r\n#previewer-content table td,\r\n#previewer-content table th {\r\n\tborder: 1px solid #666;\r\n\tpadding: 2px 4px\r\n}\r\n\r\n#previewer-content table th {\r\n\tbackground: rgba(45, 141, 234, .2)\r\n}\r\n\r\n#previewer-content table tr:nth-child(even) td {\r\n\tbackground: rgba(45, 141, 234, .03)\r\n}\r\n\r\n#previewer-content em {\r\n\tcolor: red\r\n}\r\n\r\n#previewer-content del {\r\n\tcolor: #999\r\n}\r\n\r\n#previewer-content pre {\r\n\tbackground: rgba(45, 141, 234, .1);\r\n\tpadding: 5px;\r\n\tborder-radius: 5px;\r\n\tword-break: break-all;\r\n\tword-wrap: break-word\r\n}\r\n\r\n#previewer-content code {\r\n\tbackground: rgba(45, 141, 234, .1);\r\n\tpadding: 0 5px;\r\n\tborder-radius: 3px\r\n}\r\n\r\n#previewer-content pre code {\r\n\tbackground: 0 0\r\n}\r\n\r\n#previewer-content hr {\r\n\tborder: none;\r\n\tborder-top: 1px solid #ccc\r\n}\r\n\r\n#previewer-content .highlight {\r\n\tbackground: #ff0;\r\n\tcolor: red\r\n}\r\n\r\n#previewer-content.ng-hide {\r\n\tdisplay: block !important;\r\n\tleft: -99999px !important;\r\n\ttop: -99999px !important\r\n}\r\n\r\n.panel-body {\r\n\tpadding: 10px\r\n}\r\n\r\n.tab-content .km-priority {\r\n\tvertical-align: middle;\r\n\tfont-size: inherit;\r\n\tdisplay: inline-block;\r\n\twidth: 140px;\r\n\tmargin: 5px;\r\n\tborder-right: 1px dashed #eee\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item {\r\n\tmargin: 0 1px;\r\n\tpadding: 1px\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item .km-priority-icon {\r\n\tbackground: url("+r(n(129))+") repeat-y;\r\n\tbackground-color: transparent\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item .km-priority-icon.priority-0 {\r\n\tbackground-position: 0 20px\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item .km-priority-icon.priority-1 {\r\n\tbackground-position: 0 0\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item .km-priority-icon.priority-2 {\r\n\tbackground-position: 0 -20px\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item .km-priority-icon.priority-3 {\r\n\tbackground-position: 0 -40px\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item .km-priority-icon.priority-4 {\r\n\tbackground-position: 0 -60px\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item .km-priority-icon.priority-5 {\r\n\tbackground-position: 0 -80px\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item .km-priority-icon.priority-6 {\r\n\tbackground-position: 0 -100px\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item .km-priority-icon.priority-7 {\r\n\tbackground-position: 0 -120px\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item .km-priority-icon.priority-8 {\r\n\tbackground-position: 0 -140px\r\n}\r\n\r\n.tab-content .km-priority .km-priority-item .km-priority-icon.priority-9 {\r\n\tbackground-position: 0 -160px\r\n}\r\n\r\n.tab-content .km-progress {\r\n\tvertical-align: middle;\r\n\tfont-size: inherit;\r\n\tdisplay: inline-block;\r\n\twidth: 140px;\r\n\tmargin: 5px;\r\n\tborder-right: 1px dashed #eee\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item {\r\n\tmargin: 0 1px;\r\n\tpadding: 1px\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item .km-progress-icon {\r\n\tbackground: url("+r(n(130))+") repeat-y;\r\n\tbackground-color: transparent\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item .km-progress-icon.progress-0 {\r\n\tbackground-position: 0 20px\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item .km-progress-icon.progress-1 {\r\n\tbackground-position: 0 0\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item .km-progress-icon.progress-2 {\r\n\tbackground-position: 0 -20px\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item .km-progress-icon.progress-3 {\r\n\tbackground-position: 0 -40px\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item .km-progress-icon.progress-4 {\r\n\tbackground-position: 0 -60px\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item .km-progress-icon.progress-5 {\r\n\tbackground-position: 0 -80px\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item .km-progress-icon.progress-6 {\r\n\tbackground-position: 0 -100px\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item .km-progress-icon.progress-7 {\r\n\tbackground-position: 0 -120px\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item .km-progress-icon.progress-8 {\r\n\tbackground-position: 0 -140px\r\n}\r\n\r\n.tab-content .km-progress .km-progress-item .km-progress-icon.progress-9 {\r\n\tbackground-position: 0 -160px\r\n}\r\n\r\n.resource-editor {\r\n\tvertical-align: middle;\r\n\tdisplay: inline-block;\r\n\tmargin: 5px\r\n}\r\n\r\n.resource-editor .input-group,\r\n.resource-editor .km-resource {\r\n\tfont-size: 12px\r\n}\r\n\r\n.resource-editor .input-group {\r\n\theight: 20px;\r\n\twidth: 168px\r\n}\r\n\r\n.resource-editor .resource-dropdown {\r\n\tposition: relative;\r\n\twidth: 168px;\r\n\tborder: 1px solid #ccc;\r\n\tmargin-top: -1px;\r\n\tborder-bottom-right-radius: 4px;\r\n\tborder-bottom-left-radius: 4px\r\n}\r\n\r\n.resource-editor .resource-dropdown .km-resource {\r\n\tposition: absolute;\r\n\twidth: 154px;\r\n\tmargin-bottom: 3px;\r\n\tpadding: 0;\r\n\tlist-style-type: none;\r\n\toverflow: scroll;\r\n\tmax-height: 500px\r\n}\r\n\r\n.resource-editor .resource-dropdown .km-resource.open {\r\n\tz-index: 3;\r\n\tbackground-color: #fff\r\n}\r\n\r\n.resource-editor .resource-dropdown .km-resource li {\r\n\tdisplay: inline-block;\r\n\tpadding: 1px 2px;\r\n\tborder-radius: 4px;\r\n\tmargin: 2px 3px\r\n}\r\n\r\n.resource-editor .resource-dropdown .km-resource li[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.resource-editor .resource-dropdown .resource-caret {\r\n\tdisplay: block;\r\n\tfloat: right;\r\n\tvertical-align: middle;\r\n\twidth: 12px;\r\n\theight: 24px;\r\n\tpadding: 8px 1px\r\n}\r\n\r\n.resource-editor .resource-dropdown .resource-caret:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.resource-editor .resource-dropdown .resource-caret:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.resource-editor .btn,\r\n.resource-editor input.form-control {\r\n\tfont-size: 12px\r\n}\r\n\r\n.resource-editor input.form-control {\r\n\tpadding: 2px 4px;\r\n\theight: 24px;\r\n\tborder-bottom-left-radius: 0\r\n}\r\n\r\n.resource-editor .input-group-btn {\r\n\tline-height: 24px\r\n}\r\n\r\n.resource-editor .input-group-btn .btn {\r\n\tpadding: 2px 4px;\r\n\theight: 24px;\r\n\tborder-bottom-right-radius: 0\r\n}\r\n\r\n.temp-panel {\r\n\tmargin: 5px 5px 5px 10px;\r\n\tborder-right: 1px dashed #eee;\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle\r\n}\r\n\r\n.temp-list {\r\n\tmin-width: 124px\r\n}\r\n\r\n.temp-item-wrap {\r\n\twidth: 50px;\r\n\theight: 40px;\r\n\tpadding: 0 2px;\r\n\tmargin: 5px;\r\n\tdisplay: inline-block\r\n}\r\n\r\n.temp-item {\r\n\tdisplay: inline-block;\r\n\twidth: 50px;\r\n\theight: 40px;\r\n\tbackground-image: url("+r(n(131))+");\r\n\tbackground-repeat: no-repeat\r\n}\r\n\r\n.temp-item.default {\r\n\tbackground-position: 0 0\r\n}\r\n\r\n.temp-item.structure {\r\n\tbackground-position: -50px 0\r\n}\r\n\r\n.temp-item.filetree {\r\n\tbackground-position: -100px 0\r\n}\r\n\r\n.temp-item.right {\r\n\tbackground-position: -150px 0\r\n}\r\n\r\n.temp-item.fish-bone {\r\n\tbackground-position: -200px 0\r\n}\r\n\r\n.temp-item.tianpan {\r\n\tbackground-position: -250px 0\r\n}\r\n\r\n.current-temp-item {\r\n\twidth: 74px;\r\n\tpadding: 0 0 0 5px;\r\n\tborder: 1px solid #fff\r\n}\r\n\r\n.current-temp-item:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.current-temp-item[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.current-temp-item .caret {\r\n\tmargin-left: 5px\r\n}\r\n\r\n.temp-item-selected {\r\n\tbackground-color: #87a9da\r\n}\r\n\r\n.theme-panel {\r\n\theight: 42px;\r\n\tmargin: 5px;\r\n\tpadding: 0 5px 0 0;\r\n\tborder-right: 1px dashed #eee;\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle\r\n}\r\n\r\n.theme-list {\r\n\tmin-width: 162px\r\n}\r\n\r\ndiv a.theme-item {\r\n\tdisplay: inline-block;\r\n\twidth: 70px;\r\n\theight: 30px;\r\n\ttext-align: center;\r\n\tline-height: 30px;\r\n\tpadding: 0 5px;\r\n\tfont-size: 12px;\r\n\tcursor: pointer;\r\n\ttext-decoration: none;\r\n\tcolor: #000\r\n}\r\n\r\n.theme-item-selected {\r\n\twidth: 100px;\r\n\tpadding: 6px 7px;\r\n\tborder: 1px solid #fff\r\n}\r\n\r\n.theme-item-selected:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.theme-item-selected .caret {\r\n\tmargin-left: 5px\r\n}\r\n\r\n.theme-item-selected[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.theme-item-wrap {\r\n\tdisplay: inline-block;\r\n\twidth: 80px;\r\n\theight: 40px;\r\n\tpadding: 5px\r\n}\r\n\r\n.theme-item-wrap:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.readjust-layout {\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\tpadding: 0 10px 0 5px;\r\n\tborder-right: 1px dashed #eee\r\n}\r\n\r\n.btn-icon {\r\n\twidth: 25px;\r\n\theight: 25px;\r\n\tmargin-left: 12px;\r\n\tdisplay: block\r\n}\r\n\r\n.btn-label {\r\n\tfont-size: 12px\r\n}\r\n\r\n.btn-wrap {\r\n\twidth: 50px;\r\n\theight: 42px;\r\n\tcursor: pointer;\r\n\tdisplay: inline-block;\r\n\ttext-decoration: none\r\n}\r\n\r\n.btn-wrap[disabled] span {\r\n\topacity: .5\r\n}\r\n\r\n.btn-wrap[disabled] {\r\n\tcursor: default\r\n}\r\n\r\n.btn-wrap[disabled]:hover {\r\n\tbackground-color: transparent\r\n}\r\n\r\n.btn-wrap[disabled]:active {\r\n\tbackground-color: transparent\r\n}\r\n\r\n.btn-wrap:link {\r\n\ttext-decoration: none\r\n}\r\n\r\n.btn-wrap:visited {\r\n\ttext-decoration: none\r\n}\r\n\r\n.btn-wrap:hover {\r\n\tbackground-color: #eff3fa;\r\n\ttext-decoration: none\r\n}\r\n\r\n.btn-wrap:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.reset-layout-icon {\r\n\tbackground: url("+r(n(2))+") no-repeat;\r\n\tbackground-position: 0 -150px\r\n}\r\n\r\n.style-operator {\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\tpadding: 0 5px;\r\n\tborder-right: 1px dashed #eee\r\n}\r\n\r\n.style-operator .clear-style {\r\n\tvertical-align: middle\r\n}\r\n\r\n.clear-style-icon {\r\n\tbackground: url("+r(n(2))+") no-repeat;\r\n\tbackground-position: 0 -175px\r\n}\r\n\r\n.s-btn-group-vertical {\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle\r\n}\r\n\r\n.s-btn-icon {\r\n\twidth: 20px;\r\n\theight: 20px;\r\n\tmargin-right: 3px;\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle\r\n}\r\n\r\n.s-btn-label {\r\n\tfont-size: 12px;\r\n\tvertical-align: middle;\r\n\tdisplay: inline-block\r\n}\r\n\r\n.s-btn-wrap {\r\n\tpadding: 0 5px 0 3px;\r\n\tdisplay: inline-block;\r\n\ttext-decoration: none;\r\n\tfont-size: 0\r\n}\r\n\r\n.s-btn-wrap[disabled] span {\r\n\topacity: .5\r\n}\r\n\r\n.s-btn-wrap[disabled] {\r\n\tcursor: default\r\n}\r\n\r\n.s-btn-wrap[disabled]:hover {\r\n\tbackground-color: transparent\r\n}\r\n\r\n.s-btn-wrap[disabled]:active {\r\n\tbackground-color: transparent\r\n}\r\n\r\n.s-btn-wrap:hover {\r\n\tbackground-color: #eff3fa;\r\n\ttext-decoration: none\r\n}\r\n\r\n.s-btn-wrap:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.copy-style-icon {\r\n\tbackground: url("+r(n(2))+") no-repeat;\r\n\tbackground-position: 0 -200px\r\n}\r\n\r\n.paste-style-wrap {\r\n\tdisplay: block\r\n}\r\n\r\n.paste-style-icon {\r\n\tbackground-position: 0 -220px\r\n}\r\n\r\n.font-operator {\r\n\twidth: 170px;\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\tfont-size: 12px;\r\n\tpadding: 0 5px\r\n}\r\n\r\n.font-operator .font-size-list {\r\n\tdisplay: inline-block;\r\n\tborder: 1px solid #eee;\r\n\tpadding: 2px 4px\r\n}\r\n\r\n.font-operator .font-family-list {\r\n\tdisplay: inline-block;\r\n\tborder: 1px solid #eee;\r\n\tpadding: 2px 4px\r\n}\r\n\r\n.current-font-item a {\r\n\ttext-decoration: none;\r\n\tdisplay: inline-block\r\n}\r\n\r\n.current-font-family {\r\n\twidth: 75px;\r\n\theight: 18px;\r\n\toverflow: hidden;\r\n\tvertical-align: bottom\r\n}\r\n\r\n.current-font-size {\r\n\twidth: 32px;\r\n\theight: 18px;\r\n\toverflow: hidden;\r\n\tvertical-align: bottom\r\n}\r\n\r\n.current-font-item[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.font-item {\r\n\tline-height: 1em;\r\n\ttext-align: left\r\n}\r\n\r\n.font-item-selected {\r\n\tbackground-color: #87a9da\r\n}\r\n\r\n.font-bold,\r\n.font-italics {\r\n\tdisplay: inline-block;\r\n\tbackground: url("+r(n(2))+") no-repeat;\r\n\tcursor: pointer;\r\n\tmargin: 0 3px\r\n}\r\n\r\n.font-bold:hover,\r\n.font-italics:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.font-bold:active,\r\n.font-italics:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.font-bold[disabled],\r\n.font-italics[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.font-bold {\r\n\tbackground-position: 0 -240px\r\n}\r\n\r\n.font-italics {\r\n\tbackground-position: 0 -260px\r\n}\r\n\r\n.font-bold-selected,\r\n.font-italics-selected {\r\n\tbackground-color: #87a9da\r\n}\r\n\r\n.font-color-wrap {\r\n\tdisplay: inline-block;\r\n\twidth: 30px;\r\n\theight: 22px;\r\n\tmargin: 3px 3px 0 0;\r\n\tborder: 1px #efefef solid;\r\n\tvertical-align: middle;\r\n\tfont-size: 0;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none\r\n}\r\n\r\n.font-color-wrap[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.font-color-wrap .quick-font-color {\r\n\tdisplay: inline-block;\r\n\twidth: 20px;\r\n\theight: 16px;\r\n\tfont-size: 14px;\r\n\tline-height: 16px;\r\n\tvertical-align: top;\r\n\ttext-align: center;\r\n\tcursor: default;\r\n\tcolor: #000\r\n}\r\n\r\n.font-color-wrap .quick-font-color:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.font-color-wrap .quick-font-color:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.font-color-wrap .quick-font-color[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.font-color-wrap .font-color-preview {\r\n\tdisplay: inline-block;\r\n\twidth: 12px;\r\n\theight: 2px;\r\n\tmargin: 0 4px 0;\r\n\tbackground-color: #000\r\n}\r\n\r\n.font-color-wrap .font-color-preview[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.font-color {\r\n\tdisplay: inline-block;\r\n\twidth: 8px;\r\n\theight: 16px\r\n}\r\n\r\n.font-color:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.font-color:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.font-color[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.font-color .caret {\r\n\tmargin-left: -2px;\r\n\tmargin-top: 7px\r\n}\r\n\r\n.bg-color-wrap {\r\n\tdisplay: inline-block;\r\n\twidth: 30px;\r\n\theight: 22px;\r\n\tmargin: 3px 3px 0 0;\r\n\tborder: 1px #efefef solid;\r\n\tvertical-align: middle;\r\n\tfont-size: 0;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none\r\n}\r\n\r\n.bg-color-wrap[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.bg-color-wrap .quick-bg-color {\r\n\tdisplay: inline-block;\r\n\twidth: 20px;\r\n\theight: 16px;\r\n\tfont-size: 14px;\r\n\tline-height: 16px;\r\n\tvertical-align: top;\r\n\ttext-align: center;\r\n\tcursor: default;\r\n\tcolor: #000;\r\n\tbackground: url("+r(n(2))+") no-repeat center -1260px\r\n}\r\n\r\n.bg-color-wrap .quick-bg-color:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.bg-color-wrap .quick-bg-color:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.bg-color-wrap .quick-bg-color[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.bg-color-wrap .bg-color-preview {\r\n\tdisplay: inline-block;\r\n\twidth: 12px;\r\n\theight: 2px;\r\n\tmargin: 0 4px 0;\r\n\tbackground-color: #fff\r\n}\r\n\r\n.bg-color-wrap .bg-color-preview[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.bg-color {\r\n\tdisplay: inline-block;\r\n\twidth: 8px;\r\n\theight: 16px\r\n}\r\n\r\n.bg-color:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.bg-color:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.bg-color[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.bg-color .caret {\r\n\tmargin-left: -2px;\r\n\tmargin-top: 7px\r\n}\r\n\r\n.btn-group-vertical {\r\n\tvertical-align: middle;\r\n\tmargin: 5px\r\n}\r\n\r\n.btn-group-vertical .expand,\r\n.btn-group-vertical .expand-caption {\r\n\twidth: 40px;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tborder: none !important;\r\n\tborder-radius: 0 !important\r\n}\r\n\r\n.btn-group-vertical .expand-caption:hover,\r\n.btn-group-vertical .expand:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .expand-caption:active,\r\n.btn-group-vertical .expand:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.btn-group-vertical .expand-caption.active,\r\n.btn-group-vertical .expand.active {\r\n\tbox-shadow: none;\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .expand {\r\n\theight: 25px;\r\n\tbackground: url("+r(n(2))+") no-repeat 0 -995px;\r\n\tbackground-position-x: 50%\r\n}\r\n\r\n.btn-group-vertical .expand-caption {\r\n\theight: 20px\r\n}\r\n\r\n.btn-group-vertical .expand-caption .caption {\r\n\tfont-size: 12px\r\n}\r\n\r\n.btn-group-vertical {\r\n\tvertical-align: middle;\r\n\tmargin: 5px\r\n}\r\n\r\n.btn-group-vertical .select,\r\n.btn-group-vertical .select-caption {\r\n\twidth: 40px;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tborder: none !important;\r\n\tborder-radius: 0 !important\r\n}\r\n\r\n.btn-group-vertical .select-caption:hover,\r\n.btn-group-vertical .select:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .select-caption:active,\r\n.btn-group-vertical .select:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.btn-group-vertical .select-caption.active,\r\n.btn-group-vertical .select.active {\r\n\tbox-shadow: none;\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .select {\r\n\theight: 25px;\r\n\tbackground: url("+r(n(2))+") no-repeat 7px -1175px\r\n}\r\n\r\n.btn-group-vertical .select-caption {\r\n\theight: 20px\r\n}\r\n\r\n.btn-group-vertical .select-caption .caption {\r\n\tfont-size: 12px\r\n}\r\n\r\n.btn-group-vertical {\r\n\tvertical-align: middle;\r\n\tmargin: 5px\r\n}\r\n\r\n.btn-group-vertical .search,\r\n.btn-group-vertical .search-caption {\r\n\twidth: 40px;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tborder: none !important;\r\n\tborder-radius: 0 !important\r\n}\r\n\r\n.btn-group-vertical .search-caption:hover,\r\n.btn-group-vertical .search:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .search-caption:active,\r\n.btn-group-vertical .search:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.btn-group-vertical .search-caption.active,\r\n.btn-group-vertical .search.active {\r\n\tbox-shadow: none;\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.btn-group-vertical .search {\r\n\theight: 25px;\r\n\tbackground: url("+r(n(2))+") no-repeat 0 -345px;\r\n\tbackground-position-x: 50%\r\n}\r\n\r\n.btn-group-vertical .search-caption {\r\n\theight: 20px\r\n}\r\n\r\n.btn-group-vertical .search-caption .caption {\r\n\tfont-size: 12px\r\n}\r\n\r\n.search-box {\r\n\tfloat: right;\r\n\tbackground-color: #fff;\r\n\tborder: 1px solid #dbdbdb;\r\n\tposition: relative;\r\n\ttop: 0;\r\n\tz-index: 3;\r\n\twidth: 330px;\r\n\theight: 40px;\r\n\tpadding: 3px 6px;\r\n\topacity: 1\r\n}\r\n\r\n.search-box .prev-and-next-btn,\r\n.search-box .search-input-wrap {\r\n\tfloat: left\r\n}\r\n\r\n.search-box .close-search {\r\n\tfloat: right;\r\n\theight: 16px;\r\n\twidth: 16px;\r\n\tpadding: 1px;\r\n\tborder-radius: 100%;\r\n\tmargin-top: 6px;\r\n\tmargin-right: 10px\r\n}\r\n\r\n.search-box .close-search .glyphicon {\r\n\ttop: -1px\r\n}\r\n\r\n.search-box .close-search:hover {\r\n\tbackground-color: #efefef\r\n}\r\n\r\n.search-box .close-search:active {\r\n\tbackground-color: #999\r\n}\r\n\r\n.search-box .search-input-wrap {\r\n\twidth: 240px\r\n}\r\n\r\n.search-box .prev-and-next-btn {\r\n\tmargin-left: 5px\r\n}\r\n\r\n.search-box .prev-and-next-btn .btn:focus {\r\n\toutline: 0\r\n}\r\n\r\n.search-box .search-addon {\r\n\tbackground-color: #fff\r\n}\r\n\r\n.tool-group {\r\n\tpadding: 0\r\n}\r\n\r\n.tool-group[disabled] {\r\n\topacity: .5\r\n}\r\n\r\n.tool-group .tool-group-item {\r\n\tdisplay: inline-block;\r\n\tborder-radius: 4px\r\n}\r\n\r\n.tool-group .tool-group-item .tool-group-icon {\r\n\twidth: 20px;\r\n\theight: 20px;\r\n\tpadding: 2px;\r\n\tmargin: 1px\r\n}\r\n\r\n.tool-group .tool-group-item:hover {\r\n\tbackground-color: #eff3fa\r\n}\r\n\r\n.tool-group .tool-group-item:active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.tool-group .tool-group-item.active {\r\n\tbackground-color: #c4d0ee\r\n}\r\n\r\n.nav-bar {\r\n\tposition: absolute;\r\n\twidth: 240px;\r\n\theight: 35px;\r\n\tpadding: 5px 0;\r\n\tdisplay: -ms-flexbox;\r\n\tdisplay: flex;\r\n\t-ms-flex-align: center;\r\n\talign-items: center;\r\n\t-ms-flex-pack: space-evenly;\r\n\tjustify-content: space-evenly;\r\n\tleft: 10px;\r\n\tbottom: 10px;\r\n\tbackground: #dc8686;\r\n\tcolor: #fff;\r\n\tborder-radius: 4px;\r\n\tz-index: 10;\r\n\tbox-shadow: 3px 3px 10px rgba(0, 0, 0, .2);\r\n\ttransition: transform .7s .1s ease\r\n}\r\n\r\n.nav-bar .nav-btn {\r\n\twidth: 35px;\r\n\theight: 35px;\r\n\tline-height: 35px;\r\n\ttext-align: center;\r\n\tdisplay: -ms-flexbox;\r\n\tdisplay: flex;\r\n\t-ms-flex-pack: center;\r\n\tjustify-content: center;\r\n\t-ms-flex-align: center;\r\n\talign-items: center\r\n}\r\n\r\n.nav-bar .nav-btn.active .icon,\r\n.nav-bar .nav-btn:hover .icon {\r\n\tfill: #5c94f3\r\n}\r\n\r\n.nav-bar .zoom-in .icon {\r\n\tbackground-position: 0 -730px\r\n}\r\n\r\n.nav-bar .zoom-out .icon {\r\n\tbackground-position: 0 -750px\r\n}\r\n\r\n.nav-bar .hand .icon {\r\n\tbackground-position: 0 -770px;\r\n\twidth: 25px;\r\n\theight: 25px;\r\n\tmargin: 0 auto\r\n}\r\n\r\n.nav-bar .nav-trigger .icon {\r\n\tbackground-position: 0 -845px;\r\n\twidth: 25px;\r\n\theight: 25px;\r\n\tmargin: 0 auto\r\n}\r\n\r\n.nav-bar .zoom-pan {\r\n\twidth: 2px;\r\n\theight: 70px;\r\n\tbox-shadow: 0 1px #e50000;\r\n\tposition: relative;\r\n\tbackground: #fff;\r\n\tmargin: 3px auto;\r\n\toverflow: visible\r\n}\r\n\r\n.nav-bar .zoom-pan .origin {\r\n\tposition: absolute;\r\n\twidth: 20px;\r\n\theight: 8px;\r\n\tleft: -9px;\r\n\tmargin-top: -4px;\r\n\tbackground: 0 0\r\n}\r\n\r\n.nav-bar .zoom-pan .origin:after {\r\n\tcontent: ' ';\r\n\tdisplay: block;\r\n\twidth: 6px;\r\n\theight: 2px;\r\n\tbackground: #fff;\r\n\tleft: 7px;\r\n\ttop: 3px;\r\n\tposition: absolute\r\n}\r\n\r\n.nav-bar .zoom-pan .indicator {\r\n\tposition: absolute;\r\n\twidth: 8px;\r\n\theight: 8px;\r\n\tleft: -3px;\r\n\tbackground: #fff;\r\n\tborder-radius: 100%;\r\n\tmargin-top: -4px\r\n}\r\n\r\n.nav-previewer {\r\n\tbackground: #fff;\r\n\twidth: 140px;\r\n\theight: 120px;\r\n\tposition: absolute;\r\n\tleft: 45px;\r\n\tbottom: 30px;\r\n\tbox-shadow: 0 0 8px rgba(0, 0, 0, .2);\r\n\tborder-radius: 0 2px 2px 0;\r\n\tpadding: 1px;\r\n\tz-index: 9;\r\n\tcursor: crosshair;\r\n\ttransition: transform .7s .1s ease\r\n}\r\n\r\n.nav-previewer.grab {\r\n\tcursor: move;\r\n\tcursor: grabbing\r\n}\r\n",""])},function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAADICAYAAAGfcvHPAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpGODdGMTE3NDA3MjA2ODExOEY2MkExRjhGQUM5MkEzRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0N0M0REY2NjM3MzAxMUU0ODgzN0Q0RjFDQUJENTc1QiIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0N0M0REY2NTM3MzAxMUU0ODgzN0Q0RjFDQUJENTc1QiIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Rjg3RjExNzQwNzIwNjgxMThGNjJBMUY4RkFDOTJBM0YiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Rjg3RjExNzQwNzIwNjgxMThGNjJBMUY4RkFDOTJBM0YiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4MpdNoAAAR8ElEQVR42mJgAIL/QgxngFic8Rkf+38GKGCa90lGDsRY+UUSSJb8Lzz24P9HIH2GgTFqx38QYMh++p8RrHg9wxkg6c3IsIABYQDDYQawAQynGBhY/hvrhTB8YzjLoMPAwHglX+S/jKQgWBJswJKU/2ADGCaGff7/6NKf/yCa+f9X73l/7woX7r9wjYElpvl+iJYW50Oha7feMF26dKlPW1tb/sOHD8ZgAxYvXgw2gGny5Mn/lZSUjIEyL1j27dsHcsGjo0ePMrAEBQWFmJmZvRAQEHgKNkBNTU0CuwF+fn6YBjC+ePGiEMiJBrv66tWr/9k/fWZglZJkAAggUAAWggIRHoBMV37xQH1XAvYZAwvD92fGEJH1DGBj4IHFxPAEGmL/hfTO/ted/ZTxQ4cqWIply51bRSDFLG8/femT1WVmYLn/4jVQQJSBxTj16Fl+fn52FpAfgJiBBegziGIgrw9s4KNHj8Ams+jp6Z0FM0CKwQwUxUZGRgwsMMUgj5758+YtC8PDhw//HzY0/w8QQIwgD8K8Dge7OIT/gzz8df4cMA3CkOQATCxIqoHJAphQYLoEuZgY3n/7x8DEeHuWHOP7y2BBkADj/WWIwNlmuU3J67jXPUiItQADSgaYTuP/MzAuZEQkm//T9FAtgoUbf/ktho+dapBQPXTittyT5+/hAifP3Wdg+STyP+TCV4azimkMOh+eMnx7fYfhHsuZW/f7FCVEGbgEeRjmZHxhByqGpw4Ui8CpBBRwoJTCxsYGTi3MHBwc85iZmQsfPHjA8PXrVwZ4sgNqORsTE2P87du3n8Bwv8ICSn5ycpDcMW/ePCIsCg0NNYZGNMKiu3fvgpWBkydMq5OTkxIw3YKDDm6RlJQUAyzqwRYhJ2ZwzgPFNTi+Dcz+3zl+AsxmPHbsmCwwjT3i4YEkZ6AuBoAArJQ/SMNAFId/FwoV/+DiUKRYUZwVOimCk04KmlWLgk6OgjjqruAq1cWxm4OoOIhIEREt6lgHK51aohKh9io18d0zuTR0UjwovXcJ+ZLH937Ci4wrtpqGQ7zCNJT+fHByOUD/PVz7Vny9vWpDDF8Ea2wEjWEDUgBfhSfYTgRUS98lDcKWMPVAuZvUslXchoYL6Ia/Z9DaeHvIWSEm1l23f4ku0/VPG+I5I/0MC0AzMIUXanCn3aQ4EB7IRlI/zNszqK+jD+l8OgBhkaQd9dpdpd8NpC9t0LrlB1PQAYMwNN+Fu32LQfZ7lR/eObwC+2InoUFq1QuXQetIbziug0pmAVX5CaqlH6oaNLcnTMNL2cjsLr94j6pVsDDo8aoFL+8yGQI1LuPo+p5ALo63JSqyBqqlL60GpVIp0/DCNKKcVyBVc/JQZqNcLmsVGURRilqtpkFK741EIoF8Ps9zlM1mfwtSd5O8YZBauVwu+CIaEziOw4UCUf0XkFpNoGKx+O9f1NS6aDTK7QuB4vE4LMsKg2hyNSgWi5kc8h93922tQ4MVLa0aerUpTEyi9/QQGvQ8ZfJB5ez8505qrqtCRQiBer2OUqkkvwXgvYxek4riOP67d8LdCRqTgYxdoiwcDIISB4ZUiyAGZTWJPQlCjgrB3nsIYSOC6CEE2VsE/gNWRFEREuxpSGA92DWHKwtHkuKlxiLlds4953rvmXh8GPV9uugP7/3cn+fzO8cyQwHEWZEc+qD5YdA3OUHXmRXXt85oULb3FKBcPg+jkSvQ7igBbl3fgSPl+NhXn+i+aztuKj9cfJWYd0Ddzm3YQJZ9hsLITFFcFo7C2PMlOOz4KCVBomaY3mExMlNw64kO917/7JNU2fBdF8JIW28pDC4WwhivlpFzlzYEhmqQS/xg3L16bFXlYR7htkh8YSFcgNlns/xzYhGW4RQIYXAF+60lEMLAQ0CWRYfDMNXaQe4RSBQDuwpTrlb7V1CWaGf233gD8vgB83p76kzgz8cXNszTBSifPuETwmgbWxQGFwthLj1mMEzMYhim816YxXcnJT1Y1A1Z4ltz9pqCDd+B2oeuLQvYvhD1qZMTzsLquy7o3+0F9776hcLMH1oTwrzcPImcO2kxDPNeL0x3fTCuZrMZlNmaIdOD+Nvv9wcqlQqvWIRQ1Ov1mjCNRsP8kmzEdF3vFZVKJQoTiUSEMLlcbg8wA4B4GJJkMgmZTIZccsUcjHmCWl/vu+9/giEgHo9nH9lWDoQh54d8Pg8zOHjkgHMycjD1et3sjqZp5nz6tzAjDKb3xsPh8EwXB8/icTwALe3OSel02nB2hiQWi0E2mwVhZ0iKxeIeO0OG8dDOsBFu5tP8xeOfEzenyTFNmzsX+F3dVHoCwH97Q2IC6LbbUFuMgoQQKNM+mLx/17YZHuJlVVWFNmu1WhQGFwthQqEQ+isAdVYXGsUVRr/ZnejoFLMbd3HbUNMqisoaNvUH0xcfhEYpNZhiFsUgKPFhEUH0QYRCoS99aYN5UEKEhWKUDaLkRTCSQBFakKbdWmLUVUM0GxPyuybZWYPJ+H2zvbP3zuzM+qAPfhA2Ozl77+aeOfee8w1zAGvw5RLZFw7whnoJmBVajKkRtJ++rOsRNwXbPTZQIOiF/16E+UsUT0XuErfWwV9PtkLbhVHLoFGhy2EM+PsfQhgpNDAsVRb5ygai0OKBd6gHCyp4yIHw9bJcsQHv5Xwp+fGCmkPvo+xdOQ7lnjfCdDQSgujtHmZnKGAoDjMfQzsTZ3bGkRkMVy2sY1GSGQSLzARV8FIiu3oYqgTgWV1kZnweFim2HaqBgJUZLsblq/O4H6azeGNro8J1mX9DEe9gzQqQTo5YqFkSmfm5fpXx+vTHNeJtlukHmeyUHtqdv2AdyYysf6ZkmH2Uk7S0old+C7CsXJiORkJQgRn0Zq7MoDeLM2/mzMyB/zWDoNLMHLBoJrg86KUISx0VAXgTTkvFLCGfd9nXEHMvrWHDUzjXdw6s14UOIKupQ1NQca2Cm8Iirjvf3DGaOwKIKk0jnkf8xhLqugvIzBj6wxlc7K3k9ECYjkaCQSgwg0bTlRk0mnHjNtO3VX/huJvF7sfzu9nF6tK7Wex+kd2MyuJIqatl31KiNzbDwvyiTTOsUWCko10nYOluK8hVX4PGXbdpRtl91vxdu/1D4R7WLZqhntnSzAuzd8ZqZDQDHjK6fM227bF97WdDEyl5bHw2N5PRlOotlbBCWSZMRyMhqMAMumZXZtA155l5FdAdmTlyWcozg665JDMI3i5ZPTiz1x3NwEuhQ1jHzXUQ+Ps6DA3chgkbM6yzYljXfSq0HZuHU4lPqlqjc87nDIGKFTVehKn3nVZgwy7Z9oGhsQmQju/o16u/XOsqmVv3/k3Jw+PTucnMnLJz03pQleXCdDTSwPORAjMYAVyZwQiQZ+bIT4OOzDQ1NeWZQW9WkhkE2zXT0NAQJiPHX6Pmp7A8BOjp6UllMpnXNmZ4e+rz+ch+hZubm5kXd3YAfJuqsO9bNENGmJx9e3u7ABweHgaZvCGaZGCNL757wwqzTUpGp5xDi61EIhFQVVWYjkaiAGQyg0bTlRk0mnlmcO3eHzMS78Gj0WikrKzMa+TZK1ecNZNIJJL4T4WKDCoyQxUOhxkrlY7MYDwpuo42Zmpra6Gvr88GpPX0EDOsurq6hOD4sTFj0wyluLq6ug1WzQjLQxGvu7t7IBgMrnJlhiJeY2Ojn++wFmUGQQZ9mA3cmSH6nDQjxWIxnWnGqXp7ez9eZqxysDFD4iJRoRwqXZnRNI1+tvEt6aIOgAVb611OSyUA6+vrDYGV3M1IM8Xqw2iGxWZH1xwKhVrY08ySzCBYZGZJ00wCpjuvm1GFHpuZf8j+k1RTe/fXEHjw8NEtk1cTnwlJk7XTjaPj4SN4eeoMeFdXwOfXfnM+ZyZ/bQWPrxwWJ6dA584beuBuAl/3P4DFuTlY29kBn7b+AkPffW8Cqa8iJZNJ3e/3u2omnU6n5Gw2m8NjTQkEAiDLsjAdjYQHaIEZFLwrM6jz+FsB2rf6mDbKMP7cXUsVpLRQpaZBykJ1mEUx3Qgd2QhqnCExDMM2NJIsEmcyIzEajTEa/5HE6PzgLzP0jyUaFjIMGWYGswxFGQGcARbiJkTSrrCBCuGzH3eU833e3kEL1+OuRf4wPMkbDmh/9/X87nnf3+85JmZVjheeLBIgDfQFj8s1svzvkLWCXLpg0Q+kBFzNSjmTGOzdRjt454upLdHckq8CiBhfbJIUYiP74vfA/9gFXEEBpJ+sh9mqSgj/1KV6mKqAcuT67oAwNEgBtwoWTVW1wCNjLVYItX+7JRhiMZ+xTr4mY8rIMWJKdyQiMtC2bBe4Q2KOZZg3e5ZFDhxcGFhGP1Bv2ApdwRwQRLZJi9OjNWIkFCkIMFoEr5HxDBlYIIwJviygoUbGd2R8ToD864vldZUkJabAGaZD1m52jinob6Hmg17XiwfAituNT4NdjSko8VQn2mXl+uzbdflVlFhNsLC04IDgkiPBV9yGrc7j7HMWOFWWTrdfPj8HzVcDqp83YFdAnLAj7+oBI1x76166jSAItvVVnAeGqfyYF50njMBwqd0SMQKMt1XgmIKDFmZ20MMIZCGZQdKQYfUDTf9CSuNlUun4Ji02omamrEtacpY/9X5STCFACkxpT62mQLVUUyTBbduYwkEtfI1Pe6VPtOxvyW8raSv0B/2hGkeN5UrZlYfS2DSx6++uJYWPY5ocUlTSFBPccxaOOY9R43V8cTxxCdACZk2zUjAq3aiARQGDyv+Q5Tx3jhuspugc5IL3gvqeg3hTTpOLuZ+kB5viLcGWjmsgcPAIWMAPHsBplDUukbQDjaGlgwUGmrR41JqZghJj/PHUQ1JMIUCbmSJJksnPvk5f75C1zR2efdFE3GOC+t5iqo0WPG5WrSnzC8FqNayME+eoo8+sroA454fF4Utqlpc7YfYZnAdpa+GKr5fKpsxdWRDub97yvA3YlxUrfK6tVLy9a9JqelUTiKF54Ida1YlCsJgfjhv4A8VOI6t3lrRJIhHh1yGvwB13rVpuTc56QmEBsi0ZwDCMbqDR8Wm4MTYFkchqk5YGCM1MQck37nAIcFJMIUCbmSJJxEkz5YWvpNkXAdo5pmTdDybUqMtegnwNgFGmzCwsJWTK4Ya7ae1xloANx9UWHn67yKuBqs++2j9Yrw/uqjQoez56ImqgLDYWKu6KADS03kN/ZuWysO8JA21mUQNDLObog/384Uf3knVKakUlIq7Cz8M3BS4/86Tlz9t/eYI8DzZLJrA6mYJAI14/DI75YEVmyhbdNZqZghJ83OEQ4KSYQoA2M0USuZJmSl1dXYeslm0rUwxqTMnLyzOXl5e7RkdHp2ZmZgIej2eP1+v9p6enx5eQKXNzc4pMMZvNQMCoE4AvEEiqCPYloUhk082UwsJCWSajzgFKpThQmJNUsQRMWVZ2iuR2WuwNxYE7wMZRNTAqGdXW1vKlpaVGjkttnRKJRKCvr0/gXC6XxefzeUKhEGRnZ8PGBhstQNgoNDIygttNWnpqNDNlTUSUgwAnxRQC9H9hStyD48gRFxoB3d3dY36/f0E3U2IDW6kwJCsnudlXLBgmdmtrq6bzTsgUDOxcQ04jh5XcvV2m7DJFIdCxQTOGXPDJxcXFMNYUrC8DAwOTSTFF9mEmJiYcmI+SPo8vqNl1MwUB3G437YHFxz6WAExutRKgyhRSQinlEBDBs7KyqDGgxphdpuwyhURJSYkDJ0poLDudTqu8TaYkAd1MwRwkADSRCd2KjEYj/d1msxXhuzW6Z1+YwJ2dnVBRUUH9ZzmhY1vLFVf0mN2xRqYcCIR96giKTMGpHE7r1AB3mbLNTJEs36SZYrfbo0yRDOb/dkW/1NuXOfpk5WPYzx3rO2NvN9rK2N898835+5SYEmcxxyX2zT9g+u33YDUQANO+h0FcXALedws4Ww7Yz3wYfW9ZIRIC0pQgj/yphjdAuBNt/DMV7QX7R43AmEyJawq+HaYEdPvUK7QzfVUQwHHuS2pjC+QI0cqeevOdOO977ZIQLKa/v5/Pzc01bpSoQtdH6OltPDW8FOHfb4D52aNxf0eHe3p6WsA2+E/I76+np6fTdjC92hcC4QvYgQB9on2qpV1eM1PiLHUJOCmmEKA1pvwL+CsLGWcmf8gAAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAADICAYAAAGfcvHPAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpGODdGMTE3NDA3MjA2ODExOEY2MkExRjhGQUM5MkEzRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0N0M0REY2QTM3MzAxMUU0ODgzN0Q0RjFDQUJENTc1QiIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0N0M0REY2OTM3MzAxMUU0ODgzN0Q0RjFDQUJENTc1QiIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RkY3RjExNzQwNzIwNjgxMThGNjJBMUY4RkFDOTJBM0YiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Rjg3RjExNzQwNzIwNjgxMThGNjJBMUY4RkFDOTJBM0YiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz46zu5DAAANMElEQVR42mJgAIL///+/AtGMr1+/fiXyb74oiMMkKioqBmJcf+vDwMQABbKysgxMDx482Abi8HybDhGFGcAAMuD/y67/uZsY/sMNyFS5BlEGEv38+fN/RpAB8pyrPGGmorqg6bioKEIGaNq1a9f+Yxogx7nSk5GBEY8BKC4g0guoBoiIiMANYGFkZGT49OkTA4gGG3DFKwCkjwEggBihBmxjBLkWrPHGW28GCOPmTTADLgVXzAALKMbr167+1xDeysBy/cZ1hmksZVgUM4IUgkXgiq/duAZWDA4VkAYsiq9cvfRfW2QHA8tNoDNm3i1jYDrAEsrgIuWAMJkFpPjV2+cMDCDFYJ3r16//D/Tof5Bv/x9U1/0PEEBgxevXr/sfYHUH7JsvXJkMmLGIDEDhCfYlerrKO1nGAPcazDMo6QwWZCCVoMgiw6JV99cxHHl1ArdFYMG161b/B4UHCLQ5fibVIpR0Co5iYFq4cR1k0TYiLOq9pAC2aJJ5F4kWgdN1uvIluAA8fd+EBh1KOgfZ3GjzDixYtZ8Xu0UsIIvY2dlFD2noMbCKinqC4h4SdNev/ZeWlgHrePLkCQNAAMG0pv2HAB6w9q9fv/7/+6KbgRnojjPXmD4D+SlMty6uAguAgInWP4Zv377NYVKUF0HxLlAlA9Ozj8pL/kPz6NvvygwKCgqMZFq06HMJ2CLGD083/+dnuQ636OH3MHIsKjxdxsD/3gnToo+C+6hmUf4mFmBB8BfVookW7bS3aN7uQrAAskUssaa+DPwsKgiLSI8j4iwSlGBjYHiFyAQgixiA5f3ify97wIXamwdrQeYyUMuiTpNGBk5mToiPjPiyljAxslLTR0xgi6AA5Kuv6BbNv3WTRIsYJ29I+88g8oDh1rtdDHXWLxkY/jExgC369vstWKDpqDjComdfLoEFDAWTGeTl5fFY9PHjRwYmJiaGS5cugS1iOHXq1P/nx078P+npB64BgIXCf4aXL1/+P+nlD5b48OrVf2CZ8h8cR0DtYFVPnz4FRxBAAIFt+vXrFygAfoJqyh07djB8+fKFQUtLi8HCwgIkvYSNjS2W8cOHD2nAinymDNtyrGXt2essDCoGSQyMIKP5/6xl4Ob4wYALPPsTzcAEDHve5788cSp6/0sVFD9vGWECFy9eTAZSc9DUvdXX1xehnmdAdZjQRzeGQt9VQ9czsCobBIasZ5CbBEPaM13nZbFaPSw9AyqmZs64aIsiCSrDUdwJLPkYb9++DSrYPk+6rsow0byTAd41QPLM2x86b8GtNFATHp9n4K162numwaCSgZOFA8Uz4JhJUN+NohCkCFRzgfCPv3qDMmZsxCwYfOU8cccMOgB1RWzF8yExQ1/PWEvnALsFt1A9I8Gty5BpeJBh7c10Bj/ViQxMjMzgupSBH9JQxfCMDK8xw5PPZ+GmGgunMliLldEgmTGAPPP48WNwlXtYzwRcF4PYoLr57pz5/48ePfofqOY/uABgYWFh4OTkBNt1NSCM4dfTpwz6h/cyMHFAkhowVBhYQMkMxAYp/HLuPIP2hlWQJvmVawzcOlpgH5OUzAACsGd+IU1FcRz/bbtszv1TZz30hznbcDMJIqKHsgJhu1YQaAyihMD+0EMP9VCPQkVQBD2HGkQrqgcTJQ0R8sFwD45yVptYFCxH5DYLN9Fdt3V+J3e3u9077SHE2A/GuXC/O/ec87m/c36/381NLbSYWqyEHJhmnBfkSiuzfkSa0x6PB+MJ0Gq1wLIs6PV6vK0is07IyBjaU6lUV2D8Ps0hMpYkl/0eCzgcTtBoNDJknf707gHssS+LvrjfEidBp9NdkHMcJylCCweHgWhuysn4oJhZt87jHDbRHovZMmPGHgdRGMGNSMpmF2wodMmtVmv19/k6GpUK1pXE31hbICI30cRyyYRJY8zr8Cwh070OZPrGasHpbKZkcNZdU95OgQjt5cwAvGZOQDQapS+3KJm+4AAMh0boda/3BiVD3/AtzGPJdYwvlsEvphVKZPhFxyBOllbAoeRTYJ1HipPB7APLBkXJ5FqJzN+Rud1znKaM2dqRBJnrrHNtZDDewbinRObfkqHnzL1+F0QNQ6Kzvro7mD1npEQlMhuBDJMfAeTHtwtL5bBEIgAmlwyKXOYWwR8TShvECBkURkiMaFQrJgtEGTIAnIvGj36/P7253A9G9WcBmalIM2llbrvd3pYbaEqS4Sto/y2Z/LxQlAyfSinUBWTkK2RW9RkGfQY/SZGZw9u5bhEynJsE7yWfKU5GdDe7Nt7BJ7mM0pbdzcTIZOpSq5LB0uuHMEvajUOGRgB3e1sFIrSayv2FEQCSKWP0vMhccRDONPRCXVVzIZkreydBqdDAw/ctVPTk4ymYig6Cnqkhc+jIkrk1ZoJEMi4Qodmrj1EymA2H3/y4Y/RGOumNuiqWiF5lCdmnsdExFoulmuMu82QyIiRzrtZLzxmym8XWcTfDbLcdvy6Pjo7SvDrzQxfBT6JYMadjRjI+nw9qE8swffHSn6N37idM7GuEpqYmngx+vEurVCoq8B12QJllB8QnfFDf8wxU27dBIBAAs9k8K8g06188pyJNw04qQjOZTMJMEx836ThKe1r88pUfBhrvM5i+M5UV/ON2jQyBofEAFWGlAX2GLg/6jMFgQEfPXVcIhWZIC+gzbWv2md8CtG+tMW2VYfg5bWEUihYZdSzdxsXSjKKsYMG4GKNmc0xnGMY/XqYJJPOa7Y/xh1tiotEYf2i8xGzGGBNjdIssWdS5YNRFt2zAgBI6hI47cYzC2kFvoTe/9zv02NIVTsucmelLvqQn9HvO9+W8T59z3uc9iXclwWAzGzNsRFYY9J3mpfOlM/t8Pn4VKYna29sxOtSDzaUhlBRHkJ8n5sS8R8DoJQH9I0qUlG9BXV0dtzioiqJWq5/hgGzzVMQZpW10dLRjk7Yb5foI5MTQpIAxlxkWSx0vfRAjhdnZWXJRG/ptXbjH0C1ZhHKDHpnP2s3YbKqhwxPC1NSUuBzXUdxe4EM6cdnJVE4rus6UDw5KngKtGukGzSUMwiLAA3Rw2VePCBQpg9EcmrsIeEBY9K95fUlAGMV5HdBkTckCcwfW4ZLHEl1Ii9Fo/FxKm76+PiquUXI+TcfZSi+0OZPQZDuQpRBr5IFwDtwLRXD59ewXLzc69Ss2mquqqhbi8jA2uru7KZWeZKORXG42ol69g41OUkY2vjabze4Vt/H/YQpVbc7YHdim+wB1lnq63lcY3KaUmRJb/onK5KP5x1BbvTU1piwFikvsSDVerD8pnmBiYoI6gYp0WSeRLVxJiykLkdswHeBP7hmm/LdMCcyuiimvd70JVVALtdcIrfte1FQ+sDqmxJqp0cj1mGKYImoKpc0RNgp7e87h/sou2QLF77HzbDju3oGznb9RyhQSFgE2UA7dofszZYGKlp7+mD8YzcOGDFNuHqZwFlxfpnRd+BUuzRn4cgcQVLn4d9JmyvnAdwnu/LXiWkxJqikR9nd05NiKwClrihzgjKZkmHI9mdLecQ5t0/v5T7ucWJYp562n8f38bql7TW4sZYqkKaQLqYJlNCXDlAxT0mUKFbbpyhWtoec5b+IEsiGeKN2d0AiVyBReUnIIw8PDVDk7dHVhHF/atyEUCcgGijJl0vswgpE8Otwbx5RwJIgxz8fYri9ZESgpU6KFP5vNtiqmmEwmkSlRQKo4roYpcRXJDFNuMqbEuhSx1lAypkiaslP/IZSLbd2r0RRFWVnZYfahJVcoxl5DD0o1D8oGI6ZcdD0C30I2gbUQVlJNmQtMYmC+FRO+03AHp3Cw+lW2g4KMpmSYkgpTKKh187ENO9PTFLnAK2rKib9ewYj7F1nbbdy4DxvUz8u7+1rKFAqNah0D2ApjfhNuydJnmPIvMYXykDpRCzlT3IwpecsnN9mdT1V+w8Q/B22jb+D4xA6EOzlTyKc6QoC8ayPKFPJK95hasT5/C1oHXkCv42gCEOWq5HoK4ty7AvyJPpEp/uAcfhx+DXuqWvG48RCajJ8iFA5ApVgTDxQTNDcghynUZEzAKraqb/ufSwCiIB161tCGW7M3ikyhe5LBwcG0mEL607D+IygEFWdKRUVF8ruvVJlyo+++gjKYEkyNKexiwWAwQK/Xk1kvdml5PPz9SLvdDqbBcmpfHdDpdNzc9douIKe8TGrPlnbgdOHqqd9R2LgLY2NjmJ6ehsViSWQKudq1tbX8jNS+PfTyfoTYijR316D8/fcQ9vm5SewfGqbXO6GpNfMT01uiVquVus05U6TaF9syCgvjXV4CvvjSPoS9ojZkrV0Lw+FPJJs6GkzopOZzyXnUarUJWxt/6x0OpmL/U+SqEZiZwfjb7yLsj391heYmOI9kYUsrs/bCtqsJobl5bnff2fYDqk/9jIovPoOvfwDW+x6C86d/ulcW7e/EJ3peuisoQM6SC5Es/GylTqdTcsGX1RRqyqfWAwJXKpWi9RsKcRBq+Wc5eGM05W9TbNhVB2KynAAAAABJRU5ErkJggg=="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAAoCAYAAAAIXQhqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAABDnSURBVHja7J17cFRVnse/5z6684TmEUAYJTAQmFFCsqCAqAQJyOjOEBTHstqR0FqjlqMDfww2NVMTcKbW1MzUBMqdVXbXTtw1s7MLG0B3NqxEkigvgUgSghAFDA4RHwRCXpDuvvfsH/c0JiHpdHdu0jfN71PV1Unf0+fec/re8z2/c37ndxjnHARBEARBDG8kqgKCIAiCIEEnCIIgCMICKFQFBBH7PPHUhj6PaZoODg5d57Cp/TYJNgDxADoBXAvjEuI0TXcD/Mm4OPsUTdO9nZ3eKkWRX2aM7Q41k7feeIV+TILoT9CfeGqDA0ABgNwI8ikCsK7Yk98c7hedLvdNdV6ziZVyUJ0MDib6yNg0TX/W7/c/DoY0cDTKsvy2osgFAJr6+7KmaXkjRya7f7D0XmSkz0Bbe4etvPLwggOHa4rBeQ5j7ANqjgnCPAu94HszpuY+41qFsWNHhZzBxYuXsdWzPfdk/VkAWBPBNUTtvBE2+OjyvTUW+A1jpRym1kmU7qmYbSc0Tfv9iBFJL963cC7Spt2Gxgtfj654/+isL7+6OEdR5LUAZgFYBWAigPGibeEALnHOv5AkacmjK5dhSda865mmTZuM9qvXRld9dGKtzabuE+kJgjBB0MNuAAFg7NhReMa1Cmtf+l2u0+WuAbCz2JPfEIIVlQogx4zzRtj45g6w7iI9r9nESjkGYpFnAXAAyDDrXiZB72blL7Gp6vOrnStw97zZAIA7Acz6/nT88dV/W37pcsteWZY6AHwG4FMAewHoAHwAdL9fWzJ+/Niku+bO6pavqipYOC8DRz+qmw8gCUAr1TZBmCPoZjAbQJ7T5d6JPoYtuwyH5gDYST8BEYGABzqDq4WIVwNoBlBJtWM+Pp8/K21aqjyvhyB/d+qtyMz4Pna/+8FFWbY/KsT8RiuboR7AUvQy/M85Bzj8ogNAEMQA6OrlXrTVsx0XL14OKwMxTAkARcWe/DUApghrqVyId0/KxfEpIv2Azxth2YsGWHdFFvkNY6UcoQh5htPl3gHgmOg8bgIwqtiTn1nsyV9c7MnfWOzJ3xjFe2rYonNu03Rd7fWYrifHJ8RBlm9cFJOclADO+UUAn6CPIXNFluubmi43HzpyvNvnXq8f+z+sBmPsOIB2ao4JwjwLfd3J+rOB4cZIRGEdAAirfKXT5T4GIC/wuWiQC0SalWafNwIC3xvq85pNrJQjmJA7xL2UC2ALgDX9OK1F654alp16n8+/ymZTn0xMiE9ubWl7Jy7O/ioML3YAgKqqxxoaGnG+8St8Z9L461/saL+Kuo8/haIoNcFOwBir1zTtT9t3vvvL1rZ2ZKbPRGt7B8orj6D2eL1PVZW5AB4H8B/UJBNE5LCAFyxjzOxGOBXGnNqUYk9+Q8//h4GI8GJPPhvuP/BwL4fT5c4AUAhjSH3NcLh3+ijDDgCpQZI1A1hc7MmvNjOPwPPd17I1r8+3fPq0ydsfW7k8MSHRjtI9+3HgYPVvJEnKY+y6xZ3i8/lLZ89Km7Nq5TLc+p0JuNjUjP8prcQH+6u+YYwtY4xV91MNdk3Tf8E5X22326bpun7N6/UdVhQ5nzE2D8B6AE/1J+q0bI0gQrPQTUWIeBGAnwuL5+cwhuUbqNqJMISwHMAWMZQ+XCl4eEV26sM/WtJngpK333OU7CorALB4MPLQNO2GTruuc6ZI8upHVmQnps+aDgBYns1x5GjdU51e72uKLF8Q37mmqsq1mrpPGs+cPZ/icCTb2to60NzSWqPI8oYQxBwAOmVZ+i3n/J99Pv8ExtCpqsrfAHQAKIXhFFcI4DwAWsJGEBEw2JHi3oThvATx/iZVORGimDuEmK8b5mIOAFnLsxcGTSCOZw1mHpzzbi+Acx06s6nfTp3bbDbYbGqb3+9v0791YnsRwAhVURZ1XL225HzjV0+2tLb9QFWUbMZYaTgVwRj7WpJYLWOsXoh5gJcA7APwFoylbwRBWMVCF1Z6hdPldjhd7lwAjmJPfoUFhIKbnTYaQ9qxUo4glMNYAlkUYWeAAst0QZZlcM57Wul2v1/DO6XvY8SIRNhtNry/7yja2jt22FS1TTLS3gLgOQC/BnBGlqUzsiztG4RL1AA8C6AKwC8BPE/NM0FYSNAFFTAcmiqsUmgzhSscYaVyhHwtG0X5Il0LbrXAMhW7y/ZnBRsu3122H/08I2bk0c1YBvCyIsvNx6o/fvr0mYbVNlVNbLrUsldR5d9JjAXuh8dgzM2/NQQ//WkArwD4BwBvAPiImmiCsJag14CG24nQxTwVhr/F4hDSpYp/M2AshQxgtcAy60p2lZWX7CpzBEnTgODe9Wbk0ZVcAOlgeEyW5ZaWlvZCzuFQFPkS694+PAQjXoQ3jPImivdIlqL9UVzbCzCG+q/BCFBDEMTNZqGHMtwaxBotQo/hVrPzu9nKEQF5MIbaq7tcVwaMueFFQsQzhNVY3UXIzln1IRNlGSXKkgvD+WtNONMJZuQBBObRkSJJ7IcANgJoAQBFkXXOcanHkPwoAJMA7Akx+wWiQzFfjAAcBLAZwIEwLjHe79dOa5q2GsCDAM4oivIXWZZeD7NTQRAk6IMlojACzQyFWJg93BorMe4tH99c3Ec5ADK7WOo5XTqGlTA83iv6yWfyVs/2SMsauCcHo3wRC7EZeXDO4fX5FnCdv+jz+5Pi4uJOqaoMJjHouuEopyhy1/R/xzmSGUMSYywB3Z3YepINY8nZ2C6fPQrgfhhrzEPpFIz0a1rxuJTRD2XddycmTRw37vSZz8e9v69qwZXWtu8qspwnOnIEQQyihW6lDULMHm6NWqz5GClHuB0/wIhX0GvnL8SOn+UCy0RbzHWdx/n92jNp01J/c+ecO5IbG7/yHjpS+4am609LktQsMQmQDac5znmcpunrOec/jYuzT9I0bZvX6wtsddqbMCcKa39sL8fGiGMH0M8QvKbpT4x2jHjoZ88+jrRpkwEA8+bOwtTUW/Hav/7n8z6f/zSAV6nZJojBFfRcE75Pm2HEPkPS8ROiv8aseyrEoC4BNhd78tdZScwBoNPbOXvK5EnrX3zOmTxh/BgAsNls6iOle/b9NSkxvpBLDAAD51zya9pGx8jkl5YvvQcZ6TPQ2toev7fy8D0fHqn9M4AfMcYO9sj+VgBzg5x+DoDbAJwMdo0+n29p5uzvXRfzAHfNvR17ym+Va49/sowEnSD6RorBMpkdxztqseZjpBxmd/yiQV6IYg4Aa0UHwDJiDgB+nzYzZczo8ULMAQAz0lIBzqfq+reuE5zz22VJevbHDz+AnL9fjNTbJmLW7dPx3NM/RvodM8b6fP61MObHu2IXr77o73jg3COTkxJv+FyWZSQkxINzPpKabIIYfAu9aICNbZGJZTJ7uDVqseZjpByxQE4E6autIuYAoKjKx2fPnT917vMLt0++7Ra0tV9FdW09mCQf4tyYX5ckBp9fS584IWVkz61ObTYVC+bNRtWxEwsAxKP7fPoFGE6Jk/s4/TmRJvg1KkrViZOns9o7riIxIf76519c+AaffdYIRVGqqMkmiL4xJZb7zRzIYzjHSh/qa3e63IUD7fiFsjbd7PvRSmv0u1Bd7MnPDMHqBWDEcvf5/I+MHu34Q0Z6WuoXF77x1X967p8Y2HpJYt7A4+/1+VdNnJCy7bd5LyApMb5bXpX7qvCPr//5b3a7bSZudJD7NYzd73pjY5BjXa91Nud8z713z0n54YOLMHaMA+cbv8b2nXtwrOZktaLIrmJP/jFqtgliEC30YHOWTpc7C0bUr8VWiBRHRJWB7AwHAOecLndWCPeR2R79O8O00jODbLJihtXugLFqpDDU4Ducc8iy9N9NTZdP7N6z/z5Zkh+029UDjLGuS8FGqIp8yzcXL3kPHz1uu3/RXdcPeL0+HPywBmL+/Govp8gHMBrGyoQAlwH8izjWv3XBWA2AJyv2Hcmvrj11R1JSgtx8pVVra+v4QFWVtTBiWhAEMZiC3g9ZXd5J0K1vtQ/aaEsozmrCiu8WJa7HOvQV4v9m9L0O3WyP/k0w1r6nhpDN5r7EXJSrSCzfLHS63IhE1Is9+c1Ol3txuKIOAIoin1JV5RRj7IAQ33kw9jJPBnA3Y6zOr2lb/6vk/15oaW0POMVhb+Vh1NbVn1NVpQC973vuBZAAYD+AP4k0deIVMoyx3aqiHL3S2pZ3+UrLSlmSXaqqHADQRk8nQURf0GeLBnf2MBO2WI+VPlTWbbhsAnDM6XJvCQijeK+GEaQkUOep6DtSnKmI808xMb+oirqgDsDPANwHIF10kH4P4KAiy7YrV9ou/WVb6U92vrN3qqZpnV6vz64o8v8yxg71klcKgD/ACCjzgHjeB8JFRZZ9kOU6AO9SM00Q1rLQ1wmrb1gRq7HS+yGq69XFtrtbYAxLZwZL10U4KnrUtSUDywyiqB+LUNQ7YQR86bm23CvL0kbO+eter288Y/CqqjITgBtGcJ9SGLECJCHiS2DEYc9CCM5vIRAHYDmAt6mJJgiLCLqYP28WjVdeiPOfhEVHIoawI7XR6XKviFCkAAt79Pexpr0wMNUgaIbhc1IdRh65Yn6+Wx74dloibBhjXzKGL8W/JwGUwfAluAdGmFcNQD2Mofv3TKymOTA85v9KTyhBWMdCXw3DoQjifTUsMo9+E8dKDzoK4XS5Cy1i3S4G8JnT5a4M13o1O7CMyRQ8vCI7NdiuaSVvv+co2VVWgL43qDEjj0hoBfDv4jWY/BRA40A6IwRxUwv6ICz1SRV5BeYet4gGepMYLh2U84bTsN5ssdKHk3XbY444tdiTvzFGnrms5dkLgyZYnr0QJbvKsgY5j6jDOR/HOSYwBi9j7HMYS+HSYMR+Xy86EARBRGChmy1IO2B4/DaIBrrB6XJvFp9nWkAIYy5WullCahXrttiTXy1EvdDpci+CsdSrgR7bYY9d0/RfcM5X2+22abqud3q9vsOKIucxxh4H8OUQjAIQREwLuimCJCzuwNKjntbaJgBZTpd7h2icm2NFCIlBF/U8CO930VHsc1TG4oGOKnaX7c8KNly+u2w/EHxqyow8ooWkafqvRoxI/NUD2QuRmT4Tre0d9vLKI/d+eKRmBwCdMbYWQBPd/QQRuaAPGOHYkwNjvnxxb9afaJwLYAy/74xi2YtMnisusrpndYi/oeXEUOS3zulyvymEPXDv7AJQ0cv5rDz9sa5kV1l5ya4yR5A0DQg+dWFGHlGBcz5Dktjzq3KWYen9869/PnP6FFy7dm1k1bGPa202dRs1zQQxMEEfqCBVwIjktCnYsGhgSNfpcm8S4l+x1bM9KwpCSLHSe8eyYii8vlcK/4wcGN7VO5wudzUMr+5KkdSyoz6iDKOGKo+33njFUg2OpmmzxqWMGTX/zp6x4hXcPT8TRz86MQI3bv5CEESYgj5gQQrHMhOiv9npchedrD9bMNRCaPZcscU9q8PB8lMggXtHvALLIx0wAswQFoZzIde97B3BjB1cbQBkqimCGICgR0uQYkgIhyXDKOBNsHuoQvy5U5RpcixMf8Rkg6PIdU1Nzc2Hjx53LMmad/1zn8+PA4eqwcAOgcK8EsSALXTiJqO3SHgWWoc+EGirWIvCGDuladpr23a8u6Gt7Soy0megrb0D5ZWHUVNbf1lVlc3oPVY8QRD9PV9mbJ9KxJTF7sBNuhVuLBJ4vp0uN7o+61F+3uM0Td8A8J/ExdmnaJru6+z0VimK/DJjrDTYF63mE0AQlhR0giAIgiCGLxJVAUEQBEEMf/5/AJFbIIR0qdf/AAAAAElFTkSuQmCC"},function(t,e,n){var r=n(133);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(35)("01764350",r,!0,{})},function(t,e,n){(t.exports=n(34)(!1)).push([t.i,'.km-view {\r\n font-family: "STHeitiSC-Light", "STHeiti", "Hei", "Heiti SC", "Microsoft Yahei", Arial, sans-serif;\r\n -webkit-user-select: none;\r\n user-select: none;\r\n position: relative;\r\n }\r\n .km-view .km-receiver {\r\n position: absolute;\r\n left: -99999px;\r\n top: -99999px;\r\n width: 20px;\r\n height: 20px;\r\n outline: none;\r\n margin: 0;\r\n }\r\n\r\n .km-view image {\r\n cursor: zoom-in;\r\n }\r\n\r\n .km-image-viewer {\r\n position: fixed;\r\n z-index: 99999;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n background: rgba(0, 0, 0, .75);\r\n }\r\n\r\n.km-image-viewer .km-image-viewer-container {\r\n position: absolute;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n text-align: center;\r\n white-space: nowrap;\r\n overflow: auto;\r\n}\r\n\r\n.km-image-viewer .km-image-viewer-container::before {\r\n content: \'\';\r\n display: inline-block;\r\n height: 100%;\r\n width: 0;\r\n font-size: 0;\r\n vertical-align: middle;\r\n}\r\n\r\n.km-image-viewer .km-image-viewer-container img {\r\n cursor: zoom-out;\r\n vertical-align: middle;\r\n}\r\n\r\n.km-image-viewer .km-image-viewer-container img.limited {\r\n cursor: zoom-in;\r\n max-width: 100%;\r\n max-height: 100%;\r\n}\r\n\r\n.km-image-viewer .km-image-viewer-toolbar {\r\n z-index: 1;\r\n background: rgba(0, 0, 0, .75);\r\n text-align: right;\r\n transition: all .25s;\r\n}\r\n\r\n.km-image-viewer .km-image-viewer-toolbar.hidden {\r\n transform: translate(0, -100%);\r\n opacity: 0;\r\n}\r\n\r\n.km-image-viewer .km-image-viewer-btn {\r\n cursor: pointer;\r\n outline: 0;\r\n border: 0;\r\n width: 44px;\r\n height: 44px;\r\n background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjY0IiBoZWlnaHQ9Ijg4IiB2aWV3Qm94PSIwIDAgMjY0IDg4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjx0aXRsZT5kZWZhdWx0LXNraW4gMjwvdGl0bGU+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Zz48cGF0aCBkPSJNNjcuMDAyIDU5LjV2My43NjhjLTYuMzA3Ljg0LTkuMTg0IDUuNzUtMTAuMDAyIDkuNzMyIDIuMjItMi44MyA1LjU2NC01LjA5OCAxMC4wMDItNS4wOThWNzEuNUw3MyA2NS41ODUgNjcuMDAyIDU5LjV6IiBpZD0iU2hhcGUiIGZpbGw9IiNmZmYiLz48ZyBmaWxsPSIjZmZmIj48cGF0aCBkPSJNMTMgMjl2LTVoMnYzaDN2MmgtNXpNMTMgMTVoNXYyaC0zdjNoLTJ2LTV6TTMxIDE1djVoLTJ2LTNoLTN2LTJoNXpNMzEgMjloLTV2LTJoM3YtM2gydjV6IiBpZD0iU2hhcGUiLz48L2c+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTYyIDI0djVoLTJ2LTNoLTN2LTJoNXpNNjIgMjBoLTV2LTJoM3YtM2gydjV6TTcwIDIwdi01aDJ2M2gzdjJoLTV6TTcwIDI0aDV2MmgtM3YzaC0ydi01eiIvPjwvZz48cGF0aCBkPSJNMjAuNTg2IDY2bC01LjY1Ni01LjY1NiAxLjQxNC0xLjQxNEwyMiA2NC41ODZsNS42NTYtNS42NTYgMS40MTQgMS40MTRMMjMuNDE0IDY2bDUuNjU2IDUuNjU2LTEuNDE0IDEuNDE0TDIyIDY3LjQxNGwtNS42NTYgNS42NTYtMS40MTQtMS40MTRMMjAuNTg2IDY2eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMTEuNzg1IDY1LjAzTDExMCA2My41bDMtMy41aC0xMHYtMmgxMGwtMy0zLjUgMS43ODUtMS40NjhMMTE3IDU5bC01LjIxNSA2LjAzeiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xNTIuMjE1IDY1LjAzTDE1NCA2My41bC0zLTMuNWgxMHYtMmgtMTBsMy0zLjUtMS43ODUtMS40NjhMMTQ3IDU5bDUuMjE1IDYuMDN6IiBmaWxsPSIjZmZmIi8+PGc+PHBhdGggaWQ9IlJlY3RhbmdsZS0xMSIgZmlsbD0iI2ZmZiIgZD0iTTE2MC45NTcgMjguNTQzbC0zLjI1LTMuMjUtMS40MTMgMS40MTQgMy4yNSAzLjI1eiIvPjxwYXRoIGQ9Ik0xNTIuNSAyN2MzLjAzOCAwIDUuNS0yLjQ2MiA1LjUtNS41cy0yLjQ2Mi01LjUtNS41LTUuNS01LjUgMi40NjItNS41IDUuNSAyLjQ2MiA1LjUgNS41IDUuNXoiIGlkPSJPdmFsLTEiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTUwIDIxaDV2MWgtNXoiLz48L2c+PGc+PHBhdGggZD0iTTExNi45NTcgMjguNTQzbC0xLjQxNCAxLjQxNC0zLjI1LTMuMjUgMS40MTQtMS40MTQgMy4yNSAzLjI1eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMDguNSAyN2MzLjAzOCAwIDUuNS0yLjQ2MiA1LjUtNS41cy0yLjQ2Mi01LjUtNS41LTUuNS01LjUgMi40NjItNS41IDUuNSAyLjQ2MiA1LjUgNS41IDUuNXoiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTA2IDIxaDV2MWgtNXoiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTA5LjA0MyAxOS4wMDhsLS4wODUgNS0xLS4wMTcuMDg1LTV6Ii8+PC9nPjwvZz48L2c+PC9zdmc+);\r\n}\r\n\r\n.km-image-viewer .km-image-viewer-toolbar {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n}\r\n\r\n.km-image-viewer .km-image-viewer-close {\r\n background-position: 0 -44px;\r\n}',""])},function(t,e,n){"use strict";e.a=function(t){for(var e="",n=0;n<t;n++){var r=Math.ceil(35*Math.random());e+=s[r]}return e};var r=n(135),i=(n.n(r),n(151)),o=(n.n(i),n(22)),a=(n.n(o),n(37));n.n(a);var s=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]},function(t,e,n){t.exports={default:n(136),__esModule:!0}},function(t,e,n){n(56),n(38),n(52),n(137),n(144),n(147),n(149),t.exports=n(0).Set},function(t,e,n){"use strict";var r=n(138),i=n(65);t.exports=n(140)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r=n(4).f,i=n(40),o=n(59),a=n(11),s=n(60),c=n(24),u=n(39),l=n(53),h=n(139),f=n(5),d=n(42).fastKey,p=n(65),g=f?"_s":"size",m=function(t,e){var n,r=d(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,u){var l=t(function(t,r){s(t,l,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=r&&c(r,n,t[u],t)});return o(l.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var n=p(this,e),r=m(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(t){p(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(p(this,e),t)}}),f&&r(l.prototype,"size",{get:function(){return p(this,e)[g]}}),l},def:function(t,e,n){var r,i,o=m(t,e);return o?o.v=n:(t._l=o={i:i=d(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:m,setStrong:function(t,e,n){u(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))},n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){"use strict";var r=n(3),i=n(0),o=n(4),a=n(5),s=n(1)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(3),i=n(6),o=n(42),a=n(9),s=n(7),c=n(59),u=n(24),l=n(60),h=n(8),f=n(23),d=n(4).f,p=n(141)(0),g=n(5);t.exports=function(t,e,n,m,v,b){var y=r[t],w=y,x=v?"set":"add",_=w&&w.prototype,A={};return g&&"function"==typeof w&&(b||_.forEach&&!a(function(){(new w).entries().next()}))?(w=e(function(e,n){l(e,w,t,"_c"),e._c=new y,void 0!=n&&u(n,v,e[x],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in _&&(!b||"clear"!=t)&&s(w.prototype,t,function(n,r){if(l(this,w,t),!e&&b&&!h(n))return"get"==t&&void 0;var i=this._c[t](0===n?0:n,r);return e?this:i})}),b||d(w.prototype,"size",{get:function(){return this._c.size}})):(w=m.getConstructor(e,t,v,x),c(w.prototype,n),o.NEED=!0),f(w,t),A[t]=w,i(i.G+i.W+i.F,A),b||m.setStrong(w,t,v),w}},function(t,e,n){var r=n(11),i=n(26),o=n(14),a=n(18),s=n(142);t.exports=function(t,e){var n=1==t,c=2==t,u=3==t,l=4==t,h=6==t,f=5==t||h,d=e||s;return function(e,s,p){for(var g,m,v=o(e),b=i(v),y=r(s,p,3),w=a(b.length),x=0,_=n?d(e,w):c?d(e,0):void 0;w>x;x++)if((f||x in b)&&(m=y(g=b[x],x,v),t))if(n)_[x]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return x;case 2:_.push(g)}else if(l)return!1;return h?-1:u||l?l:_}}},function(t,e,n){var r=n(143);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(8),i=n(54),o=n(1)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(6);r(r.P+r.R,"Set",{toJSON:n(145)("Set")})},function(t,e,n){var r=n(64),i=n(146);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){var r=n(24);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){n(148)("Set")},function(t,e,n){"use strict";var r=n(6);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){n(150)("Set")},function(t,e,n){"use strict";var r=n(6),i=n(46),o=n(11),a=n(24);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,s,c=arguments[1];return i(this),(e=void 0!==c)&&i(c),void 0==t?new this:(n=[],e?(r=0,s=o(c,arguments[2],2),a(t,!1,function(t){n.push(s(t,r++))})):a(t,!1,n.push,n),new this(n))}})}},function(t,e,n){t.exports={default:n(152),__esModule:!0}},function(t,e,n){n(38),n(153),t.exports=n(0).Array.from},function(t,e,n){"use strict";var r=n(11),i=n(6),o=n(14),a=n(61),s=n(62),c=n(18),u=n(154),l=n(63);i(i.S+i.F*!n(155)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,h,f=o(t),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,b=l(f);if(m&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==b||d==Array&&s(b))for(n=new d(e=c(f.length));e>v;v++)u(n,v,m?g(f[v],v):f[v]);else for(h=b.call(f),n=new d;!(i=h.next()).done;v++)u(n,v,m?a(h,g,[i.value,v],!0):i.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(4),i=n(15);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(1)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(58);n.n(r)},function(t,e,n){"use strict";(function(t){
/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.1.2 Built on 2020-11-04T08:43:44.103Z
* CommitID 00000000
*
* Copyright (c) 2010-2020 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2020 yWorks GmbH, http://www.yworks.com
* 2015-2020 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, willow-systems.com
* 2012 Pablo Hess, https://github.com/pablohess
* 2012 Florian Jenett, https://github.com/fjenett
* 2013 Warren Weckesser, https://github.com/warrenweckesser
* 2013 Youssef Beddad, https://github.com/lifof
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2013 Stefan Slonevskiy, https://github.com/stefslon
* 2013 Jeremy Morel, https://github.com/jmorel
* 2013 Christoph Hartmann, https://github.com/chris-rock
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Makes, https://github.com/dollaruw
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 Steven Spungin, https://github.com/Flamenco
* 2014 Kenneth Glassey, https://github.com/Gavvers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
*/
var r=function(){return"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this}();function i(){r.console&&"function"==typeof r.console.log&&r.console.log.apply(r.console,arguments)}var o={log:i,warn:function(t){r.console&&("function"==typeof r.console.warn?r.console.warn.apply(r.console,arguments):i.call(null,arguments))},error:function(t){r.console&&("function"==typeof r.console.error?r.console.error.apply(r.console,arguments):i(t))}};
/**
* @license
* FileSaver.js
* A saveAs() FileSaver implementation.
*
* By Eli Grey, http://eligrey.com
*
* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
* source : http://purl.eligrey.com/github/FileSaver.js
*/function a(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){h(r.response,e,n)},r.onerror=function(){o.error("could not download file")},r.send()}function s(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function c(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var u,l,h=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,n){var i=r.URL||r.webkitURL,o=document.createElement("a");e=e||t.name||"download",o.download=e,o.rel="noopener","string"==typeof t?(o.href=t,o.origin!==location.origin?s(o.href)?a(t,e,n):c(o,o.target="_blank"):c(o)):(o.href=i.createObjectURL(t),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){c(o)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(s(t))a(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){c(r)})}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(o.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return a(t,e,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(r.HTMLElement)||r.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&s)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},u.readAsDataURL(t)}else{var l=r.URL||r.webkitURL,h=l.createObjectURL(t);i?i.location=h:location.href=h,i=null,setTimeout(function(){l.revokeObjectURL(h)},4e4)}});
/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function f(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,a=i.exec(t);a&&(e=o(a),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n
/**
* @license
* Joseph Myers does not specify a particular license for his work.
*
* Author: Joseph Myers
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
*
* Modified by: Owen Leong
*/}}function d(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n=b(n=v(n=v(n=v(n=v(n=m(n=m(n=m(n=m(n=g(n=g(n=g(n=g(n,r,i,o,e[0],7,-680876936),r=g(r,i=g(i,o=g(o,n,r,i,e[1],12,-389564586),n,r,e[2],17,606105819),o,n,e[3],22,-1044525330),i,o,e[4],7,-176418897),r=g(r,i=g(i,o=g(o,n,r,i,e[5],12,1200080426),n,r,e[6],17,-1473231341),o,n,e[7],22,-45705983),i,o,e[8],7,1770035416),r=g(r,i=g(i,o=g(o,n,r,i,e[9],12,-1958414417),n,r,e[10],17,-42063),o,n,e[11],22,-1990404162),i,o,e[12],7,1804603682),r=g(r,i=g(i,o=g(o,n,r,i,e[13],12,-40341101),n,r,e[14],17,-1502002290),o,n,e[15],22,1236535329),i,o,e[1],5,-165796510),r=m(r,i=m(i,o=m(o,n,r,i,e[6],9,-1069501632),n,r,e[11],14,643717713),o,n,e[0],20,-373897302),i,o,e[5],5,-701558691),r=m(r,i=m(i,o=m(o,n,r,i,e[10],9,38016083),n,r,e[15],14,-660478335),o,n,e[4],20,-405537848),i,o,e[9],5,568446438),r=m(r,i=m(i,o=m(o,n,r,i,e[14],9,-1019803690),n,r,e[3],14,-187363961),o,n,e[8],20,1163531501),i,o,e[13],5,-1444681467),r=m(r,i=m(i,o=m(o,n,r,i,e[2],9,-51403784),n,r,e[7],14,1735328473),o,n,e[12],20,-1926607734),i,o,e[5],4,-378558),r=v(r,i=v(i,o=v(o,n,r,i,e[8],11,-2022574463),n,r,e[11],16,1839030562),o,n,e[14],23,-35309556),i,o,e[1],4,-1530992060),r=v(r,i=v(i,o=v(o,n,r,i,e[4],11,1272893353),n,r,e[7],16,-155497632),o,n,e[10],23,-1094730640),i,o,e[13],4,681279174),r=v(r,i=v(i,o=v(o,n,r,i,e[0],11,-358537222),n,r,e[3],16,-722521979),o,n,e[6],23,76029189),i,o,e[9],4,-640364487),r=v(r,i=v(i,o=v(o,n,r,i,e[12],11,-421815835),n,r,e[15],16,530742520),o,n,e[2],23,-995338651),i,o,e[0],6,-198630844),r=b(r=b(r=b(r=b(r,i=b(i,o=b(o,n,r,i,e[7],10,1126891415),n,r,e[14],15,-1416354905),o,n,e[5],21,-57434055),i=b(i,o=b(o,n=b(n,r,i,o,e[12],6,1700485571),r,i,e[3],10,-1894986606),n,r,e[10],15,-1051523),o,n,e[1],21,-2054922799),i=b(i,o=b(o,n=b(n,r,i,o,e[8],6,1873313359),r,i,e[15],10,-30611744),n,r,e[6],15,-1560198380),o,n,e[13],21,1309151649),i=b(i,o=b(o,n=b(n,r,i,o,e[4],6,-145523070),r,i,e[11],10,-1120210379),n,r,e[2],15,718787259),o,n,e[9],21,-343485551),t[0]=k(n,t[0]),t[1]=k(r,t[1]),t[2]=k(i,t[2]),t[3]=k(o,t[3])}function p(t,e,n,r,i,o){return k((e=k(k(e,t),k(r,o)))<<i|e>>>32-i,n)}function g(t,e,n,r,i,o,a){return p(e&n|~e&r,t,e,i,o,a)}function m(t,e,n,r,i,o,a){return p(e&r|n&~r,t,e,i,o,a)}function v(t,e,n,r,i,o,a){return p(e^n^r,t,e,i,o,a)}function b(t,e,n,r,i,o,a){return p(n^(e|~r),t,e,i,o,a)}function y(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)d(r,w(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(d(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,d(r,i),r}function w(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}u=r.atob.bind(r),l=r.btoa.bind(r);var x="0123456789abcdef".split("");function _(t){for(var e="",n=0;n<4;n++)e+=x[t>>8*n+4&15]+x[t>>8*n&15];return e}function A(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function S(t){return y(t).map(A).join("")}function k(t,e){return t+e&4294967295}function N(t,e){var n,r,i,o;if(t!==n){for(var a=(i=t,o=1+(256/t.length>>0),new Array(o+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var u=0;for(c=0;c<256;c++){var l=s[c];u=(u+l+a.charCodeAt(c))%256,s[c]=s[u],s[u]=l}n=t,r=s}else s=r;var h=e.length,f=0,d=0,p="";for(c=0;c<h;c++)d=(d+(l=s[f=(f+1)%256]))%256,s[f]=s[d],s[d]=l,a=s[(s[f]+s[d])%256],p+=String.fromCharCode(e.charCodeAt(c)^a);return p}
/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/
/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/
!function(t){for(var e=0;e<t.length;e++)t[e]=_(t[e]);t.join("")}(y("hello"));var C={print:4,modify:8,copy:16,"annot-forms":32};function L(t,e,n,r){this.v=1,this.r=2;let i=192;t.forEach(function(t){if(void 0!==C.perm)throw new Error("Invalid permission: "+t);i+=C[t]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";let o=(e+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=S(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=N(this.encryptionKey,this.padding)}function P(t){if("object"!=typeof t)throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var s in e[n]){var c=e[n][s];try{c[0].apply(t,i)}catch(t){r.console&&o.error("jsPDF PubSub Error",t.message,t)}c[1]&&a.push(s)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function M(t){if(!(this instanceof M))return new M(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function I(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function T(t,e,n,r,i){if(!(this instanceof T))return new T(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,I.call(this,r,i)}function E(t,e,n,r,i){if(!(this instanceof E))return new E(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,I.call(this,r,i)}function O(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],s=arguments[3],c=[],u=1,d=16,p="S",g=null;"object"==typeof(t=t||{})&&(n=t.orientation,i=t.unit||i,a=t.format||a,s=t.compress||t.compressPdf||s,null!==(g=t.encryption||null)&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),u="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(d=t.floatPrecision),p=t.defaultPathOperation||"S"),c=t.filters||(!0===s?["FlateEncode"]:c),i=i||"mm",n=(""+(n||"P")).toLowerCase();var m=t.putOnlyUsedFonts||!1,v={},b={internal:{},__private__:{}};b.__private__.PubSub=P;var y="1.3",w=b.__private__.getPdfVersion=function(){return y};b.__private__.setPdfVersion=function(t){y=t};var x={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};b.__private__.getPageFormats=function(){return x};var _=b.__private__.getPageFormat=function(t){return x[t]};a=a||"a4";var A={COMPAT:"compat",ADVANCED:"advanced"},S=A.COMPAT;function k(){this.saveGraphicsState(),at(new zt(xt,0,0,-xt,0,gn()*xt).toString()+" cm"),this.setFontSize(this.getFontSize()/xt),p="n",S=A.ADVANCED}function N(){this.restoreGraphicsState(),p="S",S=A.COMPAT}b.advancedAPI=function(t){var e=S===A.COMPAT;return e&&k.call(this),"function"!=typeof t||(t(this),e&&N.call(this)),this},b.compatAPI=function(t){var e=S===A.ADVANCED;return e&&N.call(this),"function"!=typeof t||(t(this),e&&k.call(this)),this},b.isAdvancedAPI=function(){return S===A.ADVANCED};var C,I=function(t){if(S!==A.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},D=b.roundToPrecision=b.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};C=b.hpf=b.__private__.hpf="number"==typeof d?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,d)}:"smart"===d?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,16)};var R=b.f2=b.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return D(t,2)},j=b.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return D(t,3)},F=b.scale=b.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return S===A.COMPAT?t*xt:S===A.ADVANCED?t:void 0},B=function(t){return F(function(t){return S===A.COMPAT?gn()-t:S===A.ADVANCED?t:void 0}(t))};b.__private__.setPrecision=b.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var z,q="00000000000000000000000000000000",U=b.__private__.getFileId=function(){return q},V=b.__private__.setFileId=function(t){return q=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():q.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==g&&(Ne=new L(g.userPermissions,g.userPassword,g.ownerPassword,q)),q};b.setFileId=function(t){return V(t),this},b.getFileId=function(){return U()};var H=b.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[n,J(r),"'",J(i),"'"].join("");return["D:",t.getFullYear(),J(t.getMonth()+1),J(t.getDate()),J(t.getHours()),J(t.getMinutes()),J(t.getSeconds()),o].join("")},G=b.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,o,a,0)},W=b.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=H(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return z=e},Y=b.__private__.getCreationDate=function(t){var e=z;return"jsDate"===t&&(e=G(z)),e};b.setCreationDate=function(t){return W(t),this},b.getCreationDate=function(t){return Y(t)};var Z,J=b.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},Q=b.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},X=0,K=[],$=[],tt=0,et=[],nt=[],rt=!1,it=$;b.__private__.setCustomOutputDestination=function(t){rt=!0,it=t};var ot=function(t){rt||(it=t)};b.__private__.resetCustomOutputDestination=function(){rt=!1,it=$};var at=b.__private__.out=function(t){return t=t.toString(),tt+=t.length+1,it.push(t),it},st=b.__private__.write=function(t){return at(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},ct=b.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},ut=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];b.__private__.getStandardFonts=function(){return ut};var lt=t.fontSize||16;b.__private__.setFontSize=b.setFontSize=function(t){return lt=S===A.ADVANCED?t/xt:t,this};var ht,ft=b.__private__.getFontSize=b.getFontSize=function(){return S===A.COMPAT?lt:lt*xt},dt=t.R2L||!1;b.__private__.setR2L=b.setR2L=function(t){return dt=t,this},b.__private__.getR2L=b.getR2L=function(){return dt};var pt,gt=b.__private__.setZoomMode=function(t){if(/^\d*\.?\d*%$/.test(t))ht=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');ht=t}else ht=parseInt(t,10)};b.__private__.getZoomMode=function(){return ht};var mt,vt=b.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');pt=t};b.__private__.getPageMode=function(){return pt};var bt=b.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');mt=t};b.__private__.getLayoutMode=function(){return mt},b.__private__.setDisplayMode=b.setDisplayMode=function(t,e,n){return gt(t),bt(e),vt(n),this};var yt={title:"",subject:"",author:"",keywords:"",creator:""};b.__private__.getDocumentProperty=function(t){if(-1===Object.keys(yt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return yt[t]},b.__private__.getDocumentProperties=function(){return yt},b.__private__.setDocumentProperties=b.setProperties=b.setDocumentProperties=function(t){for(var e in yt)yt.hasOwnProperty(e)&&t[e]&&(yt[e]=t[e]);return this},b.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(yt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return yt[t]=e};var wt,xt,_t,At,St,kt={},Nt={},Ct=[],Lt={},Pt={},Mt={},It={},Tt=null,Et=0,Ot=[],Dt=new P(b),Rt=t.hotfixes||[],jt={},Ft={},Bt=[],zt=function(t,e,n,r,i,o){if(!(this instanceof zt))return new zt(t,e,n,r,i,o);isNaN(t)&&(t=1),isNaN(e)&&(e=0),isNaN(n)&&(n=0),isNaN(r)&&(r=1),isNaN(i)&&(i=0),isNaN(o)&&(o=0),this._matrix=[t,e,n,r,i,o]};Object.defineProperty(zt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(zt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(zt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(zt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(zt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(zt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(zt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(zt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(zt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(zt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(zt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(zt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(zt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(zt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(zt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(zt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),zt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(C).join(t)},zt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new zt(e,n,r,i,o,a)},zt.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r;n-=t*s,r-=e*s;var c=Math.sqrt(n*n+r*r);return s/=c,t*(r/=c)<e*(n/=c)&&(t=-t,e=-e,s=-s,a=-a),{scale:new zt(a,0,0,c,0,0),translate:new zt(1,0,0,1,i,o),rotate:new zt(t,e,-e,t,0,0),skew:new zt(1,0,s,1,0,0)}},zt.prototype.toString=function(t){return this.join(" ")},zt.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=1/(t*r-e*n),s=r*a,c=-e*a,u=-n*a,l=t*a;return new zt(s,c,u,l,-s*i-u*o,-c*i-l*o)},zt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new cn(e,n)},zt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new cn(t.x+t.w,t.y+t.h));return new un(e.x,e.y,n.x-e.x,n.y-e.y)},zt.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty;return new zt(t,e,n,r,i,o)},b.Matrix=zt;var qt=b.matrixMult=function(t,e){return e.multiply(t)},Ut=new zt(1,0,0,1,0,0);b.unitMatrix=b.identityMatrix=Ut;var Vt=function(t,e){if(!Pt[t]){var n=(e instanceof T?"Sh":"P")+(Object.keys(Lt).length+1).toString(10);e.id=n,Pt[t]=n,Lt[n]=e,Dt.publish("addPattern",e)}};b.ShadingPattern=T,b.TilingPattern=E,b.addShadingPattern=function(t,e){return I("addShadingPattern()"),Vt(t,e),this},b.beginTilingPattern=function(t){I("beginTilingPattern()"),hn(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},b.endTilingPattern=function(t,e){I("endTilingPattern()"),e.stream=nt[Z].join("\n"),Vt(t,e),Dt.publish("endTilingPattern",e),Bt.pop().restore()};var Ht=b.__private__.newObject=function(){var t=Gt();return Wt(t,!0),t},Gt=b.__private__.newObjectDeferred=function(){return K[++X]=function(){return tt},X},Wt=function(t,e){return e="boolean"==typeof e&&e,K[t]=tt,e&&at(t+" 0 obj"),t},Yt=b.__private__.newAdditionalObject=function(){var t={objId:Gt(),content:""};return et.push(t),t},Zt=Gt(),Jt=Gt(),Qt=b.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},Xt=b.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,r=t.ch2,i=t.ch3,o=t.ch4,a="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var s=new f(n);if(s.ok)n=s.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var c=parseInt(n.substr(1),16);n=c>>16&255,r=c>>8&255,i=255&c}if(void 0===r||void 0===o&&n===r&&r===i)if("string"==typeof n)e=n+" "+a[0];else switch(t.precision){case 2:e=R(n/255)+" "+a[0];break;case 3:default:e=j(n/255)+" "+a[0]}else if(void 0===o||"object"==typeof o){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",a[1]].join(" ");if("string"==typeof n)e=[n,r,i,a[1]].join(" ");else switch(t.precision){case 2:e=[R(n/255),R(r/255),R(i/255),a[1]].join(" ");break;default:case 3:e=[j(n/255),j(r/255),j(i/255),a[1]].join(" ")}}else if("string"==typeof n)e=[n,r,i,o,a[2]].join(" ");else switch(t.precision){case 2:e=[R(n),R(r),R(i),R(o),a[2]].join(" ");break;case 3:default:e=[j(n),j(r),j(i),j(o),a[2]].join(" ")}return e},Kt=b.__private__.getFilters=function(){return c},$t=b.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||Kt(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a=t.objectId,s=function(t){return t};if(null!==g&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==g&&(s=Ne.encryptor(a,0));var c={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],l=(c=void 0!==O.API.processDataByFilters?O.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:o})),0!=l.length)if(l.split("/").length-1==1)u.push({key:"Filter",value:l});else{u.push({key:"Filter",value:"["+l+"]"});for(var h=0;h<u.length;h+=1)if("DecodeParms"===u[h].key){for(var f=[],d=0;d<c.reverseChain.split("/").length-1;d+=1)f.push("null");f.push(u[h].value),u[h].value="["+f.join(" ")+"]"}}at("<<");for(var p=0;p<u.length;p++)at("/"+u[p].key+" "+u[p].value);at(">>"),0!==c.data.length&&(at("stream"),at(s(c.data)),at("endstream"))},te=b.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;Wt(r,!0),at("<</Type /Page"),at("/Parent "+t.rootDictionaryObjId+" 0 R"),at("/Resources "+t.resourceDictionaryObjId+" 0 R"),at("/MediaBox ["+parseFloat(C(t.mediaBox.bottomLeftX))+" "+parseFloat(C(t.mediaBox.bottomLeftY))+" "+C(t.mediaBox.topRightX)+" "+C(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&at("/CropBox ["+C(t.cropBox.bottomLeftX)+" "+C(t.cropBox.bottomLeftY)+" "+C(t.cropBox.topRightX)+" "+C(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&at("/BleedBox ["+C(t.bleedBox.bottomLeftX)+" "+C(t.bleedBox.bottomLeftY)+" "+C(t.bleedBox.topRightX)+" "+C(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&at("/TrimBox ["+C(t.trimBox.bottomLeftX)+" "+C(t.trimBox.bottomLeftY)+" "+C(t.trimBox.topRightX)+" "+C(t.trimBox.topRightY)+"]"),null!==t.artBox&&at("/ArtBox ["+C(t.artBox.bottomLeftX)+" "+C(t.artBox.bottomLeftY)+" "+C(t.artBox.topRightX)+" "+C(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&at("/UserUnit "+t.userUnit),Dt.publish("putPage",{objId:r,pageContext:Ot[e],pageNumber:e,page:n}),at("/Contents "+i+" 0 R"),at(">>"),at("endobj");var o=n.join("\n");return S===A.ADVANCED&&(o+="\nQ"),Wt(i,!0),$t({data:o,filters:Kt(),objectId:i}),at("endobj"),r},ee=b.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Et;t++)Ot[t].objId=Gt(),Ot[t].contentsObjId=Gt();for(t=1;t<=Et;t++)n.push(te({number:t,data:nt[t],objId:Ot[t].objId,contentsObjId:Ot[t].contentsObjId,mediaBox:Ot[t].mediaBox,cropBox:Ot[t].cropBox,bleedBox:Ot[t].bleedBox,trimBox:Ot[t].trimBox,artBox:Ot[t].artBox,userUnit:Ot[t].userUnit,rootDictionaryObjId:Zt,resourceDictionaryObjId:Jt}));Wt(Zt,!0),at("<</Type /Pages");var r="/Kids [";for(e=0;e<Et;e++)r+=n[e]+" 0 R ";at(r+"]"),at("/Count "+Et),at(">>"),at("endobj"),Dt.publish("postPutPages")},ne=function(t){var e=function(t,e){return-1!==t.indexOf(" ")?"("+he(t,e)+")":he(t,e)};Dt.publish("putFont",{font:t,out:at,newObject:Ht,putStream:$t,pdfEscapeWithNeededParanthesis:e}),!0!==t.isAlreadyPutted&&(t.objectNumber=Ht(),at("<<"),at("/Type /Font"),at("/BaseFont /"+e(t.postScriptName)),at("/Subtype /Type1"),"string"==typeof t.encoding&&at("/Encoding /"+t.encoding),at("/FirstChar 32"),at("/LastChar 255"),at(">>"),at("endobj"))},re=function(t){t.objectNumber=Ht();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[C(t.x),C(t.y),C(t.x+t.width),C(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");$t({data:n,additionalKeyValues:e,objectId:t.objectNumber}),at("endobj")},ie=function(t,e){e||(e=21);var n=Ht(),r=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var o={offset:0,color:t[0].color};t.unshift(o)}if(1!=t[t.length-1].offset){var a={offset:1,color:t[t.length-1].color};t.push(a)}for(var s="",c=0,u=0;u<r.length;u++){for(n=r[u];n>t[c+1].offset;)c++;var l=t[c].offset,h=(n-l)/(t[c+1].offset-l),f=t[c].color,d=t[c+1].color;s+=Q(Math.round((1-h)*f[0]+h*d[0]).toString(16))+Q(Math.round((1-h)*f[1]+h*d[1]).toString(16))+Q(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()}(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$t({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),at("endobj"),t.objectNumber=Ht(),at("<< /ShadingType "+t.type),at("/ColorSpace /DeviceRGB");var o="/Coords ["+C(parseFloat(t.coords[0]))+" "+C(parseFloat(t.coords[1]))+" ";2===t.type?o+=C(parseFloat(t.coords[2]))+" "+C(parseFloat(t.coords[3])):o+=C(parseFloat(t.coords[2]))+" "+C(parseFloat(t.coords[3]))+" "+C(parseFloat(t.coords[4]))+" "+C(parseFloat(t.coords[5])),at(o+="]"),t.matrix&&at("/Matrix ["+t.matrix.toString()+"]"),at("/Function "+n+" 0 R"),at("/Extend [true true]"),at(">>"),at("endobj")},oe=function(t,e){var n=Gt(),r=Ht();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(C).join(" ")+"]"}),i.push({key:"XStep",value:C(t.xStep)}),i.push({key:"YStep",value:C(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),$t({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),at("endobj")},ae=function(t){for(var e in t.objectNumber=Ht(),at("<<"),t)switch(e){case"opacity":at("/ca "+R(t[e]));break;case"stroke-opacity":at("/CA "+R(t[e]))}at(">>"),at("endobj")},se=function(t){Wt(t.resourcesOid,!0),at("<<"),at("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in at("/Font <<"),kt)kt.hasOwnProperty(t)&&(!1===m||!0===m&&v.hasOwnProperty(t))&&at("/"+t+" "+kt[t].objectNumber+" 0 R");at(">>")}(),function(){if(Object.keys(Lt).length>0){for(var t in at("/Shading <<"),Lt)Lt.hasOwnProperty(t)&&Lt[t]instanceof T&&Lt[t].objectNumber>=0&&at("/"+t+" "+Lt[t].objectNumber+" 0 R");Dt.publish("putShadingPatternDict"),at(">>")}}(),function(t){if(Object.keys(Lt).length>0){for(var e in at("/Pattern <<"),Lt)Lt.hasOwnProperty(e)&&Lt[e]instanceof b.TilingPattern&&Lt[e].objectNumber>=0&&Lt[e].objectNumber<t&&at("/"+e+" "+Lt[e].objectNumber+" 0 R");Dt.publish("putTilingPatternDict"),at(">>")}}(t.objectOid),function(){if(Object.keys(Mt).length>0){var t;for(t in at("/ExtGState <<"),Mt)Mt.hasOwnProperty(t)&&Mt[t].objectNumber>=0&&at("/"+t+" "+Mt[t].objectNumber+" 0 R");Dt.publish("putGStateDict"),at(">>")}}(),function(){for(var t in at("/XObject <<"),jt)jt.hasOwnProperty(t)&&jt[t].objectNumber>=0&&at("/"+t+" "+jt[t].objectNumber+" 0 R");Dt.publish("putXobjectDict"),at(">>")}(),at(">>"),at("endobj")},ce=function(){var t=[];(function(){for(var t in kt)kt.hasOwnProperty(t)&&(!1===m||!0===m&&v.hasOwnProperty(t))&&ne(kt[t])})(),function(){var t;for(t in Mt)Mt.hasOwnProperty(t)&&ae(Mt[t])}(),function(){for(var t in jt)jt.hasOwnProperty(t)&&re(jt[t])}(),function(t){var e;for(e in Lt)Lt.hasOwnProperty(e)&&(Lt[e]instanceof T?ie(Lt[e]):Lt[e]instanceof E&&oe(Lt[e],t))}(t),Dt.publish("putResources"),t.forEach(se),se({resourcesOid:Jt,objectOid:Number.MAX_SAFE_INTEGER}),Dt.publish("postPutResources")},ue=function(t){Nt[t.fontName]=Nt[t.fontName]||{},Nt[t.fontName][t.fontStyle]=t.id},le=function(t,e,n,r,i){var o={id:"F"+(Object.keys(kt).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return Dt.publish("addFont",{font:o,instance:this}),kt[o.id]=o,ue(o),o.id},he=b.__private__.pdfEscape=b.pdfEscape=function(t,e){return function(t,e){var n,r,i,o,a,s,c,u,l;if(i=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&kt[wt].metadata&&kt[wt].metadata[i]&&kt[wt].metadata[i].encoding&&(o=kt[wt].metadata[i].encoding,!a&&kt[wt].encoding&&(a=kt[wt].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(c=!1,s=[],n=0,r=t.length;n<r;n++)(u=a[t.charCodeAt(n)])?s.push(String.fromCharCode(u)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(c=!0);t=s.join("")}for(n=t.length;void 0===c&&0!==n;)t.charCodeAt(n-1)>>8&&(c=!0),n--;if(!c)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n<r;n++){if((l=(u=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(u-(l<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},fe=b.__private__.beginPage=function(t){nt[++Et]=[],Ot[Et]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},pe(Et),ot(nt[Z])},de=function(t,e){var r,i,s;switch(n=e||n,"string"==typeof t&&(r=_(t.toLowerCase()),Array.isArray(r)&&(i=r[0],s=r[1])),Array.isArray(t)&&(i=t[0]*xt,s=t[1]*xt),isNaN(i)&&(i=a[0],s=a[1]),(i>14400||s>14400)&&(o.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),s=Math.min(14400,s)),a=[i,s],n.substr(0,1)){case"l":s>i&&(a=[s,i]);break;case"p":i>s&&(a=[s,i])}fe(a),He(Ve),at(Ke),0!==on&&at(on+" J"),0!==an&&at(an+" j"),Dt.publish("addPage",{pageNumber:Et})},pe=function(t){t>0&&t<=Et&&(Z=t)},ge=b.__private__.getNumberOfPages=b.getNumberOfPages=function(){return nt.length-1},me=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:kt[wt].fontName,e=void 0!==e?e:kt[wt].fontStyle,r=t.toLowerCase(),void 0!==Nt[r]&&void 0!==Nt[r][e]?i=Nt[r][e]:void 0!==Nt[t]&&void 0!==Nt[t][e]?i=Nt[t][e]:!1===n.disableWarning&&o.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=Nt.times[e])&&(i=Nt.times.normal),i},ve=b.__private__.putInfo=function(){var t=Ht(),e=function(t){return t};for(var n in null!==g&&(e=Ne.encryptor(t,0)),at("<<"),at("/Producer ("+he(e("jsPDF "+O.version))+")"),yt)yt.hasOwnProperty(n)&&yt[n]&&at("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+he(e(yt[n]))+")");at("/CreationDate ("+he(e(z))+")"),at(">>"),at("endobj")},be=b.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Zt;switch(Ht(),at("<<"),at("/Type /Catalog"),at("/Pages "+e+" 0 R"),ht||(ht="fullwidth"),ht){case"fullwidth":at("/OpenAction [3 0 R /FitH null]");break;case"fullheight":at("/OpenAction [3 0 R /FitV null]");break;case"fullpage":at("/OpenAction [3 0 R /Fit]");break;case"original":at("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+ht;"%"===n.substr(n.length-1)&&(ht=parseInt(ht)/100),"number"==typeof ht&&at("/OpenAction [3 0 R /XYZ null null "+R(ht)+"]")}switch(mt||(mt="continuous"),mt){case"continuous":at("/PageLayout /OneColumn");break;case"single":at("/PageLayout /SinglePage");break;case"two":case"twoleft":at("/PageLayout /TwoColumnLeft");break;case"tworight":at("/PageLayout /TwoColumnRight")}pt&&at("/PageMode /"+pt),Dt.publish("putCatalog"),at(">>"),at("endobj")},ye=b.__private__.putTrailer=function(){at("trailer"),at("<<"),at("/Size "+(X+1)),at("/Root "+X+" 0 R"),at("/Info "+(X-1)+" 0 R"),null!==g&&at("/Encrypt "+Ne.oid+" 0 R"),at("/ID [ <"+q+"> <"+q+"> ]"),at(">>")},we=b.__private__.putHeader=function(){at("%PDF-"+y),at("%ºß¬à")},xe=b.__private__.putXRef=function(){var t="0000000000";at("xref"),at("0 "+(X+1)),at("0000000000 65535 f ");for(var e=1;e<=X;e++)"function"==typeof K[e]?at((t+K[e]()).slice(-10)+" 00000 n "):void 0!==K[e]?at((t+K[e]).slice(-10)+" 00000 n "):at("0000000000 00000 n ")},_e=b.__private__.buildDocument=function(){X=0,tt=0,$=[],K=[],et=[],Zt=Gt(),Jt=Gt(),ot($),Dt.publish("buildDocument"),we(),ee(),function(){Dt.publish("putAdditionalObjects");for(var t=0;t<et.length;t++){var e=et[t];Wt(e.objId,!0),at(e.content),at("endobj")}Dt.publish("postPutAdditionalObjects")}(),ce(),null!==g&&(Ne.oid=Ht(),at("<<"),at("/Filter /Standard"),at("/V "+Ne.v),at("/R "+Ne.r),at("/U <"+Ne.toHexString(Ne.U)+">"),at("/O <"+Ne.toHexString(Ne.O)+">"),at("/P "+Ne.P),at(">>"),at("endobj")),ve(),be();var t=tt;return xe(),ye(),at("startxref"),at(""+t),at("%%EOF"),ot(nt[Z]),$.join("\n")},Ae=b.__private__.getBlob=function(t){return new Blob([ct(t)],{type:"application/pdf"})},Se=b.output=b.__private__.output=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!r.console)throw new Error(n);r.console.error(n,t),r.alert&&alert(n)}},t.foo.bar=t,t.foo}(function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return _e();case"save":b.save(e.filename);break;case"arraybuffer":return ct(_e());case"blob":return Ae(_e());case"bloburi":case"bloburl":if(void 0!==r.URL&&"function"==typeof r.URL.createObjectURL)return r.URL&&r.URL.createObjectURL(Ae(_e()))||void 0;o.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",i=_e();try{n=l(i)}catch(t){n=l(unescape(encodeURIComponent(i)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(r)){var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(e.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",s=r.open();return null!==s&&s.document.write(a),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(r)){var c='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',u=r.open();if(null!==u){u.document.write(c);var h=this;u.document.documentElement.querySelector("#pdfViewer").onload=function(){u.document.title=e.filename,u.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(h.output("bloburl"))}}return u}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(r))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var f='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',d=r.open();if(null!==d&&(d.document.write(f),d.document.title=e.filename),d||"undefined"==typeof safari)return d;break;case"datauri":case"dataurl":return r.document.location.href=this.output("datauristring",e);default:return null}}),ke=function(t){return!0===Array.isArray(Rt)&&Rt.indexOf(t)>-1};switch(i){case"pt":xt=1;break;case"mm":xt=72/25.4;break;case"cm":xt=72/2.54;break;case"in":xt=72;break;case"px":xt=1==ke("px_scaling")?.75:96/72;break;case"pc":case"em":xt=12;break;case"ex":xt=6;break;default:throw new Error("Invalid unit: "+i)}var Ne=null;W(),V();var Ce=b.__private__.getPageInfo=b.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ot[t].objId,pageNumber:t,pageContext:Ot[t]}},Le=b.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Ot)if(Ot[e].objId===t)break;return Ce(e)},Pe=b.__private__.getCurrentPageInfo=b.getCurrentPageInfo=function(){return{objId:Ot[Z].objId,pageNumber:Z,pageContext:Ot[Z]}};b.addPage=function(){return de.apply(this,arguments),this},b.setPage=function(){return pe.apply(this,arguments),ot.call(this,nt[Z]),this},b.insertPage=function(t){return this.addPage(),this.movePage(Z,t),this},b.movePage=function(t,e){var n,r;if(t>e){n=nt[t],r=Ot[t];for(var i=t;i>e;i--)nt[i]=nt[i-1],Ot[i]=Ot[i-1];nt[e]=n,Ot[e]=r,this.setPage(e)}else if(t<e){n=nt[t],r=Ot[t];for(var o=t;o<e;o++)nt[o]=nt[o+1],Ot[o]=Ot[o+1];nt[e]=n,Ot[e]=r,this.setPage(e)}return this},b.deletePage=function(){return function(t){t>0&&t<=Et&&(nt.splice(t,1),Ot.splice(t,1),Z>--Et&&(Z=Et),this.setPage(Z))}.apply(this,arguments),this},b.__private__.text=b.text=function(t,e,n,r,i){var o,a,s,c,u,l,h,f,d=(r=r||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof n||Array.isArray(n))){var p=n;n=e,e=t,t=p}if(arguments[3]instanceof zt==0?(s=arguments[4],c=arguments[5],"object"==typeof(h=arguments[3])&&null!==h||("string"==typeof s&&(c=s,s=null),"string"==typeof h&&(c=h,h=null),"number"==typeof h&&(s=h,h=null),r={flags:h,angle:s,align:c})):(I("The transform parameter of text() with a Matrix value"),f=i),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return d;var g,m="",b="number"==typeof r.lineHeightFactor?r.lineHeightFactor:Ue,y=d.internal.scaleFactor;function w(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function x(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,o=t.concat(),a=[],s=o.length;s--;)"string"==typeof(r=o.shift())?a.push(e(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(i=e(r[0],r[1],r[2]),a.push([i[0],i[1],i[2]]));n=a}return n}var _=!1,k=!0;if("string"==typeof t)_=!0;else if(Array.isArray(t)){var N=t.concat();a=[];for(var L,P=N.length;P--;)("string"!=typeof(L=N.shift())||Array.isArray(L)&&"string"!=typeof L[0])&&(k=!1);_=k}if(!1===_)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var M=lt/d.internal.scaleFactor,T=M*(Ue-1);switch(r.baseline){case"bottom":n-=T;break;case"top":n+=M-T;break;case"hanging":n+=M-2*T;break;case"middle":n+=M/2-T}if((l=r.maxWidth||0)>0&&("string"==typeof t?t=d.splitTextToSize(t,l):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(d.splitTextToSize(e,l))},[]))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:he,activeFontKey:wt,fonts:kt,activeFontSize:lt}},Dt.publish("preProcessText",o),t=o.text,s=(r=o.options).angle,f instanceof zt==0&&s&&"number"==typeof s){s*=Math.PI/180,0===r.rotationDirection&&(s=-s),S===A.ADVANCED&&(s=-s);var E=Math.cos(s),O=Math.sin(s);f=new zt(E,O,-O,E,0,0)}else s&&s instanceof zt&&(f=s);S!==A.ADVANCED||f||(f=Ut),void 0!==(u=r.charSpace||nn)&&(m+=C(F(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),r.lang;var D=-1,R=void 0!==r.renderingMode?r.renderingMode:r.stroke,j=d.internal.getCurrentPageInfo().pageContext;switch(R){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}var B=void 0!==j.usedRenderingMode?j.usedRenderingMode:-1;-1!==D?m+=D+" Tr\n":-1!==B&&(m+="0 Tr\n"),-1!==D&&(j.usedRenderingMode=D),c=r.align||"left";var z,q=lt*b,U=d.internal.pageSize.getWidth(),V=kt[wt];u=r.charSpace||nn,l=r.maxWidth||0,h={};var H=[];if("[object Array]"===Object.prototype.toString.call(t)){var G;a=w(t),"left"!==c&&(z=a.map(function(t){return d.getStringUnitWidth(t,{font:V,charSpace:u,fontSize:lt,doKerning:!1})*lt/y}));var W,Y=0;if("right"===c){e-=z[0],t=[],P=a.length;for(var Z=0;Z<P;Z++)0===Z?(W=Ze(e),G=Je(n)):(W=F(Y-z[Z]),G=-q),t.push([a[Z],W,G]),Y=z[Z]}else if("center"===c){e-=z[0]/2,t=[],P=a.length;for(var J=0;J<P;J++)0===J?(W=Ze(e),G=Je(n)):(W=F((Y-z[J])/2),G=-q),t.push([a[J],W,G]),Y=z[J]}else if("left"===c){t=[],P=a.length;for(var Q=0;Q<P;Q++)t.push(a[Q])}else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],P=a.length,l=0!==l?l:U;for(var X=0;X<P;X++)G=0===X?Je(n):-q,W=0===X?Ze(e):0,X<P-1&&H.push(C(F((l-z[X])/(a[X].split(" ").length-1)))),t.push([a[X],W,G])}}!0===("boolean"==typeof r.R2L?r.R2L:dt)&&(t=x(t,function(t,e,n){return[t.split("").reverse().join(""),e,n]})),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:he,activeFontKey:wt,fonts:kt,activeFontSize:lt}},Dt.publish("postProcessText",o),t=o.text,g=o.mutex.isHex||!1;var K=kt[wt].encoding;"WinAnsiEncoding"!==K&&"StandardEncoding"!==K||(t=x(t,function(t,e,n){return[function(t){return t=t.split("\t").join(Array(r.TabLen||9).join(" ")),he(t,h)}(t),e,n]})),a=w(t),t=[];for(var $,tt,et,nt=Array.isArray(a[0])?1:0,rt="",it=function(t,e,n){var i="";return n instanceof zt?(n="number"==typeof r.angle?qt(n,new zt(1,0,0,1,t,e)):qt(new zt(1,0,0,1,t,e),n),S===A.ADVANCED&&(n=qt(new zt(1,0,0,-1,0,0),n)),i=n.join(" ")+" Tm\n"):i=C(t)+" "+C(e)+" Td\n",i},ot=0;ot<a.length;ot++){switch(rt="",nt){case 1:et=(g?"<":"(")+a[ot][0]+(g?">":")"),$=parseFloat(a[ot][1]),tt=parseFloat(a[ot][2]);break;case 0:et=(g?"<":"(")+a[ot]+(g?">":")"),$=Ze(e),tt=Je(n)}void 0!==H&&void 0!==H[ot]&&(rt=H[ot]+" Tw\n"),0===ot?t.push(rt+it($,tt,f)+et):0===nt?t.push(rt+et):1===nt&&t.push(rt+it($,tt,f)+et)}t=0===nt?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var st="BT\n/";return st+=wt+" "+lt+" Tf\n",st+=C(lt*b)+" TL\n",st+=tn+"\n",st+=m,st+=t,at(st+="ET"),v[wt]=!0,d};var Me=b.__private__.clip=b.clip=function(t){return at("evenodd"===t?"W*":"W"),this};b.clipEvenOdd=function(){return Me("evenodd")},b.__private__.discardPath=b.discardPath=function(){return at("n"),this};var Ie=b.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};b.__private__.setDefaultPathOperation=b.setDefaultPathOperation=function(t){return Ie(t)&&(p=t),this};var Te=b.__private__.getStyle=b.getStyle=function(t){var e=p;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},Ee=b.close=function(){return at("h"),this};b.stroke=function(){return at("S"),this},b.fill=function(t){return Oe("f",t),this},b.fillEvenOdd=function(t){return Oe("f*",t),this},b.fillStroke=function(t){return Oe("B",t),this},b.fillStrokeEvenOdd=function(t){return Oe("B*",t),this};var Oe=function(t,e){"object"==typeof e?Re(e,t):at(t)},De=function(t){null===t||S===A.ADVANCED&&void 0===t||(t=Te(t),at(t))};var Re=function(t,e){var n=Pt[t.key],r=Lt[n];if(r instanceof T)at("q"),at(je(e)),r.gState&&b.setGState(r.gState),at(t.matrix.toString()+" cm"),at("/"+n+" sh"),at("Q");else if(r instanceof E){var i=new zt(1,0,0,-1,0,gn());t.matrix&&(i=i.multiply(t.matrix||Ut),n=function(t,e,n,r,i){var o=new E(e||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);o.stream=this.stream;var a=t+"$$"+this.cloneIndex+++"$$";return Vt(a,o),o}.call(r,t.key,t.boundingBox,t.xStep,t.yStep,i).id),at("q"),at("/Pattern cs"),at("/"+n+" scn"),r.gState&&b.setGState(r.gState),at(e),at("Q")}},je=function(t){switch(t){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Fe=b.moveTo=function(t,e){return at(C(F(t))+" "+C(B(e))+" m"),this},Be=b.lineTo=function(t,e){return at(C(F(t))+" "+C(B(e))+" l"),this},ze=b.curveTo=function(t,e,n,r,i,o){return at([C(F(t)),C(B(e)),C(F(n)),C(B(r)),C(F(i)),C(B(o)),"c"].join(" ")),this};b.__private__.line=b.line=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Ie(i))throw new Error("Invalid arguments passed to jsPDF.line");return S===A.COMPAT?this.lines([[n-t,r-e]],t,e,[1,1],i||"S"):this.lines([[n-t,r-e]],t,e,[1,1]).stroke()},b.__private__.lines=b.lines=function(t,e,n,r,i,o){var a,s,c,u,l,h,f,d,p,g,m,v;if("number"==typeof t&&(v=n,n=e,e=t,t=v),r=r||[1,1],o=o||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!Ie(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(Fe(e,n),a=r[0],s=r[1],u=t.length,g=e,m=n,c=0;c<u;c++)2===(l=t[c]).length?(g=l[0]*a+g,m=l[1]*s+m,Be(g,m)):(h=l[0]*a+g,f=l[1]*s+m,d=l[2]*a+g,p=l[3]*s+m,g=l[4]*a+g,m=l[5]*s+m,ze(h,f,d,p,g,m));return o&&Ee(),De(i),this},b.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.c;switch(n.op){case"m":Fe(r[0],r[1]);break;case"l":Be(r[0],r[1]);break;case"c":ze.apply(this,r);break;case"h":Ee()}}return this},b.__private__.rect=b.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Ie(i))throw new Error("Invalid arguments passed to jsPDF.rect");return S===A.COMPAT&&(r=-r),at([C(F(t)),C(B(e)),C(F(n)),C(F(r)),"re"].join(" ")),De(i),this},b.__private__.triangle=b.triangle=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Ie(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,o-r],[t-i,e-o]],t,e,[1,1],a,!0),this},b.__private__.roundedRect=b.roundedRect=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Ie(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),o=Math.min(o,.5*r),this.lines([[n-2*i,0],[i*s,0,i,o-o*s,i,o],[0,r-2*o],[0,o*s,-i*s,o,-i,o],[2*i-n,0],[-i*s,0,-i,-o*s,-i,-o],[0,2*o-r],[0,-o*s,i*s,-o,i,-o]],t+i,e,[1,1],a,!0),this},b.__private__.ellipse=b.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Ie(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return Fe(t+n,e),ze(t+n,e-a,t+o,e-r,t,e-r),ze(t-o,e-r,t-n,e-a,t-n,e),ze(t-n,e+a,t-o,e+r,t,e+r),ze(t+o,e+r,t+n,e+a,t+n,e),De(i),this},b.__private__.circle=b.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!Ie(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},b.setFont=function(t,e){return wt=me(t,e,{disableWarning:!1}),this};var qe=b.__private__.getFont=b.getFont=function(){return kt[me.apply(b,arguments)]};b.__private__.getFontList=b.getFontList=function(){var t,e,n={};for(t in Nt)if(Nt.hasOwnProperty(t))for(e in n[t]=[],Nt[t])Nt[t].hasOwnProperty(e)&&n[t].push(e);return n},b.addFont=function(t,e,n,r){return le.call(this,t,e,n,r=r||"Identity-H")};var Ue,Ve=t.lineWidth||.200025,He=b.__private__.setLineWidth=b.setLineWidth=function(t){return at(C(F(t))+" w"),this};b.__private__.setLineDash=O.API.setLineDash=O.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map(function(t){return C(F(t))}).join(" "),e=C(F(e)),at("["+t+"] "+e+" d"),this};var Ge=b.__private__.getLineHeight=b.getLineHeight=function(){return lt*Ue};b.__private__.getLineHeight=b.getLineHeight=function(){return lt*Ue};var We=b.__private__.setLineHeightFactor=b.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(Ue=t),this},Ye=b.__private__.getLineHeightFactor=b.getLineHeightFactor=function(){return Ue};We(t.lineHeight);var Ze=b.__private__.getHorizontalCoordinate=function(t){return F(t)},Je=b.__private__.getVerticalCoordinate=function(t){return S===A.ADVANCED?t:Ot[Z].mediaBox.topRightY-Ot[Z].mediaBox.bottomLeftY-F(t)},Qe=b.__private__.getHorizontalCoordinateString=b.getHorizontalCoordinateString=function(t){return C(Ze(t))},Xe=b.__private__.getVerticalCoordinateString=b.getVerticalCoordinateString=function(t){return C(Je(t))},Ke=t.strokeColor||"0 G";b.__private__.getStrokeColor=b.getDrawColor=function(){return Qt(Ke)},b.__private__.setStrokeColor=b.setDrawColor=function(t,e,n,r){return Ke=Xt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),at(Ke),this};var $e=t.fillColor||"0 g";b.__private__.getFillColor=b.getFillColor=function(){return Qt($e)},b.__private__.setFillColor=b.setFillColor=function(t,e,n,r){return $e=Xt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),at($e),this};var tn=t.textColor||"0 g",en=b.__private__.getTextColor=b.getTextColor=function(){return Qt(tn)};b.__private__.setTextColor=b.setTextColor=function(t,e,n,r){return tn=Xt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var nn=t.charSpace,rn=b.__private__.getCharSpace=b.getCharSpace=function(){return parseFloat(nn||0)};b.__private__.setCharSpace=b.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return nn=t,this};var on=0;b.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},b.__private__.setLineCap=b.setLineCap=function(t){var e=b.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return on=e,at(e+" J"),this};var an=0;b.__private__.setLineJoin=b.setLineJoin=function(t){var e=b.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return an=e,at(e+" j"),this},b.__private__.setLineMiterLimit=b.__private__.setMiterLimit=b.setLineMiterLimit=b.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return at(C(F(t))+" M"),this},b.GState=M,b.setGState=function(t){(t="string"==typeof t?Mt[It[t]]:sn(null,t)).equals(Tt)||(at("/"+t.id+" gs"),Tt=t)};var sn=function(t,e){if(!t||!It[t]){var n=!1;for(var r in Mt)if(Mt.hasOwnProperty(r)&&Mt[r].equals(e)){n=!0;break}if(n)e=Mt[r];else{var i="GS"+(Object.keys(Mt).length+1).toString(10);Mt[i]=e,e.id=i}return t&&(It[t]=e.id),Dt.publish("addGState",e),e}};b.addGState=function(t,e){return sn(t,e),this},b.saveGraphicsState=function(){return at("q"),Ct.push({key:wt,size:lt,color:tn}),this},b.restoreGraphicsState=function(){at("Q");var t=Ct.pop();return wt=t.key,lt=t.size,tn=t.color,Tt=null,this},b.setCurrentTransformationMatrix=function(t){return at(t.toString()+" cm"),this},b.comment=function(t){return at("#"+t),this};var cn=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},un=function(t,e,n,r){cn.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var o=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(t){isNaN(t)||(o=parseFloat(t))}}),this},ln=function(){this.page=Et,this.currentPage=Z,this.pages=nt.slice(0),this.pagesContext=Ot.slice(0),this.x=_t,this.y=At,this.matrix=St,this.width=dn(Z),this.height=gn(Z),this.outputDestination=it,this.id="",this.objectNumber=-1};ln.prototype.restore=function(){Et=this.page,Z=this.currentPage,Ot=this.pagesContext,nt=this.pages,_t=this.x,At=this.y,St=this.matrix,pn(Z,this.width),mn(Z,this.height),it=this.outputDestination};var hn=function(t,e,n,r,i){Bt.push(new ln),Et=Z=0,nt=[],_t=t,At=e,St=i,fe([n,r])};for(var fn in b.beginFormObject=function(t,e,n,r,i){return hn(t,e,n,r,i),this},b.endFormObject=function(t){return function(t){if(!Ft[t]){var e=new ln,n="Xo"+(Object.keys(jt).length+1).toString(10);e.id=n,Ft[t]=n,jt[n]=e,Dt.publish("addFormObject",e),Bt.pop().restore()}}(t),this},b.doFormObject=function(t,e){var n=jt[Ft[t]];return at("q"),at(e.toString()+" cm"),at("/"+n.id+" Do"),at("Q"),this},b.getFormObject=function(t){var e=jt[Ft[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},b.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(h(Ae(_e()),t),"function"==typeof h.unload&&r.setTimeout&&setTimeout(h.unload,911),this):new Promise(function(e,n){try{var i=h(Ae(_e()),t);"function"==typeof h.unload&&r.setTimeout&&setTimeout(h.unload,911),e(i)}catch(t){n(t.message)}})},O.API)O.API.hasOwnProperty(fn)&&("events"===fn&&O.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(Dt,O.API.events):b[fn]=O.API[fn]);var dn=b.getPageWidth=function(t){return(Ot[t=t||Z].mediaBox.topRightX-Ot[t].mediaBox.bottomLeftX)/xt},pn=b.setPageWidth=function(t,e){Ot[t].mediaBox.topRightX=e*xt+Ot[t].mediaBox.bottomLeftX},gn=b.getPageHeight=function(t){return(Ot[t=t||Z].mediaBox.topRightY-Ot[t].mediaBox.bottomLeftY)/xt},mn=b.setPageHeight=function(t,e){Ot[t].mediaBox.topRightY=e*xt+Ot[t].mediaBox.bottomLeftY};return b.internal={pdfEscape:he,getStyle:Te,getFont:qe,getFontSize:ft,getCharSpace:rn,getTextColor:en,getLineHeight:Ge,getLineHeightFactor:Ye,write:st,getHorizontalCoordinate:Ze,getVerticalCoordinate:Je,getCoordinateString:Qe,getVerticalCoordinateString:Xe,collections:{},newObject:Ht,newAdditionalObject:Yt,newObjectDeferred:Gt,newObjectDeferredBegin:Wt,getFilters:Kt,putStream:$t,events:Dt,scaleFactor:xt,pageSize:{getWidth:function(){return dn(Z)},setWidth:function(t){pn(Z,t)},getHeight:function(){return gn(Z)},setHeight:function(t){mn(Z,t)}},encryptionOptions:g,encryption:Ne,getEncryptor:function(t){return null!==g?Ne.encryptor(t,0):function(t){return t}},output:Se,getNumberOfPages:ge,pages:nt,out:at,f2:R,f3:j,getPageInfo:Ce,getPageInfoByObjId:Le,getCurrentPageInfo:Pe,getPDFVersion:w,Point:cn,Rectangle:un,Matrix:zt,hasHotfix:ke},Object.defineProperty(b.internal.pageSize,"width",{get:function(){return dn(Z)},set:function(t){pn(Z,t)},enumerable:!0,configurable:!0}),Object.defineProperty(b.internal.pageSize,"height",{get:function(){return gn(Z)},set:function(t){mn(Z,t)},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=ut.length;e<n;e++){var r=le.call(this,t[e][0],t[e][1],t[e][2],ut[e][3],!0);!1===m&&(v[r]=!0);var i=t[e][0].split("-");ue({id:r,fontName:i[0],fontStyle:i[1]||""})}Dt.publish("addFonts",{fonts:kt,dictionary:Nt})}.call(b,ut),wt="F1",de(a,n),Dt.publish("initialized"),b}L.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},L.prototype.toHexString=function(t){return t.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},L.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},L.prototype.processOwnerPassword=function(t,e){return N(S(e).substr(0,5),t)},L.prototype.encryptor=function(t,e){let n=S(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return N(n,t)}},M.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||typeof t!=typeof this)return!1;var r=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&r--;return 0===r},O.API={events:[]},O.version="2.1.2";var D=O.API,R=1,j=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},F=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},B=function(t){return t.toFixed(2)},z=function(t){return t.toFixed(5)};D.__acroform__={};var q=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},U=function(t){return t*R},V=function(t){var e=new ot,n=yt.internal.getHeight(t)||0,r=yt.internal.getWidth(t)||0;return e.BBox=[0,0,Number(B(r)),Number(B(n))],e},H=D.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},G=D.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},W=D.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},Y=D.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return W(t,e-1)},Z=D.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return H(t,e-1)},J=D.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return G(t,e-1)},Q=D.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=t[0],o=t[1],a=t[2],s=t[3],c={};return c.lowerLeft_X=n(i)||0,c.lowerLeft_Y=r(o+s)||0,c.upperRight_X=n(i+a)||0,c.upperRight_Y=r(o)||0,[Number(B(c.lowerLeft_X)),Number(B(c.lowerLeft_Y)),Number(B(c.upperRight_X)),Number(B(c.upperRight_Y))]},X=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,r=K(t,n),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+B(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var o=V(t);return o.scope=t.scope,o.stream=e.join("\n"),o}},K=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" "),o=n,a=yt.internal.getHeight(t)||0;a=a<0?-a:a;var s=yt.internal.getWidth(t)||0;s=s<0?-s:s;var c=function(e,n,r){if(e+1<i.length){var o=n+" "+i[e+1];return $(o,t,r).width<=s-4}return!1};o++;t:for(;o>0;){e="";var u,l,h=$("3",t,--o).height,f=t.multiline?a-o:(a-h)/2,d=f+=2,p=0,g=0;if(o<=0){e="(...) Tj\n",e+="% Width of Text: "+$(e,t,o=12).width+", FieldWidth:"+s+"\n";break}var m="",v=0;for(var b in i)if(i.hasOwnProperty(b)){m=" "==(m+=i[b]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var y=parseInt(b),w=c(y,m,o),x=b>=i.length-1;if(w&&!x){m+=" ";continue}if(w||x){if(x)g=y;else if(t.multiline&&(h+2)*(v+2)+2>a)continue t}else{if(!t.multiline)continue t;if((h+2)*(v+2)+2>a)continue t;g=y}for(var _="",A=p;A<=g;A++)_+=i[A]+" ";switch(_=" "==_.substr(_.length-1)?_.substr(0,_.length-1):_,l=$(_,t,o).width,t.textAlign){case"right":u=s-l-2;break;case"center":u=(s-l)/2;break;case"left":default:u=2}e+=B(u)+" "+B(d)+" Td\n",e+="("+j(_)+") Tj\n",e+=-B(u)+" 0 Td\n",d=-(o+2),l=0,p=g+1,v++,m=""}break}return r.text=e,r.fontSize=o,r},$=function(t,e,n){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},tt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},et=function(t,e){var n={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===n.type&&t.object===n.object})&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},nt=D.__acroform__.arrayToPdfArray=function(t,e,n){var r=function(t){return t};if(Array.isArray(t)){for(var i="[",o=0;o<t.length;o++)switch(0!==o&&(i+=" "),typeof t[o]){case"boolean":case"number":case"object":i+=t[o].toString();break;case"string":"/"!==t[o].substr(0,1)?(void 0!==e&&n&&(r=n.internal.getEncryptor(e)),i+="("+j(r(t[o].toString()))+")"):i+=t[o].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},rt=function(t,e,n){var r=function(t){return t};return void 0!==e&&n&&(r=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+j(r(t))+")"},it=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};it.prototype.toString=function(){return this.objId+" 0 R"},it.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},it.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)});for(var n in e)if(!1===Object.getOwnPropertyDescriptor(this,e[n]).configurable){var r=e[n],i=this[r];i&&(Array.isArray(i)?t.push({key:r,value:nt(i,this.objId,this.scope)}):i instanceof it?(i.scope=this.scope,t.push({key:r,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:r,value:i}))}return t};var ot=function(){it.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};q(ot,it);var at=function(){it.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+j(e(t))+")"}},set:function(e){t=e}})};q(at,it);var st=function(){it.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(t,3))},set:function(e){!0===Boolean(e)?this.F=Z(t,3):this.F=J(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');e=t}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==n.length)return n},set:function(t){n=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(t){n[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(t){n[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(t){n[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(t){n[3]=t}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof gt)return;i="FieldObject"+st.FieldNum++}var t=function(t){return t};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+j(t(i))+")"},set:function(t){i=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(t){i=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var s=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/R:c},set:function(t){c=t}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(t){u=t}});var l="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!l||this instanceof gt||this instanceof vt))return rt(l,this.objId,this.scope)},set:function(t){t=t.toString(),l=t}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ft==0?rt(h,this.objId,this.scope):h},set:function(t){t=t.toString(),h=this instanceof ft==0?"("===t.substr(0,1)?F(t.substr(1,t.length-2)):F(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ft==1?F(h.substr(1,h.length-1)):h},set:function(t){t=t.toString(),h=this instanceof ft==1?"/"+t:t}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ft==0?rt(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof ft==0?"("===t.substr(0,1)?F(t.substr(1,t.length-2)):F(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ft==1?F(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof ft==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var d,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(t){t=Boolean(t),p=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(d)return d},set:function(t){d=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,1):this.Ff=J(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,2):this.Ff=J(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,3):this.Ff=J(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');g=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(g){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:g=2;break;case"center":case 1:g=1;break;case"left":case 0:default:g=0}}})};q(st,it);var ct=function(){st.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return nt(e,this.objId,this.scope)},set:function(t){var n,r;r=[],"string"==typeof(n=t)&&(r=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),e=r}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,18):this.Ff=J(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=Z(this.Ff,19):this.Ff=J(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=Z(this.Ff,20),e.sort()):this.Ff=J(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,22):this.Ff=J(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,23):this.Ff=J(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,27):this.Ff=J(this.Ff,27)}}),this.hasAppearanceStream=!1};q(ct,st);var ut=function(){ct.call(this),this.fontName="helvetica",this.combo=!1};q(ut,ct);var lt=function(){ut.call(this),this.combo=!0};q(lt,ut);var ht=function(){lt.call(this),this.edit=!0};q(ht,lt);var ft=function(){st.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,15):this.Ff=J(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,16):this.Ff=J(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,17):this.Ff=J(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,26):this.Ff=J(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var n,r=[];for(n in r.push("<<"),e)r.push("/"+n+" ("+j(t(e[n]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"==typeof t&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};q(ft,st);var dt=function(){ft.call(this),this.pushButton=!0};q(dt,ft);var pt=function(){ft.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};q(pt,ft);var gt=function(){var t,e;st.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,n=[];for(e in n.push("<<"),r)n.push("/"+e+" ("+j(t(r[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"==typeof t&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=yt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};q(gt,st),pt.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t&&"getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},pt.prototype.createOption=function(t){var e=new gt;return e.Parent=this,e.optionName=t,this.Kids.push(e),wt.call(this.scope,e),e};var mt=function(){ft.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=yt.CheckBox.createAppearanceStream()};q(mt,ft);var vt=function(){st.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,13):this.Ff=J(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,21):this.Ff=J(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,23):this.Ff=J(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,24):this.Ff=J(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,25):this.Ff=J(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,26):this.Ff=J(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};q(vt,st);var bt=function(){vt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Y(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,14):this.Ff=J(this.Ff,14)}}),this.password=!0};q(bt,vt);var yt={CheckBox:{createAppearanceStream:function(){return{N:{On:yt.CheckBox.YesNormal},D:{On:yt.CheckBox.YesPushDown,Off:yt.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=V(t);e.scope=t.scope;var n=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),o=K(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+B(yt.internal.getWidth(t))+" "+B(yt.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+B(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=V(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=[],o=yt.internal.getHeight(t),a=yt.internal.getWidth(t),s=K(t,t.caption);return i.push("1 g"),i.push("0 0 "+B(a)+" "+B(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+B(a-1)+" "+B(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+B(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=V(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+B(yt.internal.getWidth(t))+" "+B(yt.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:yt.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=yt.RadioButton.Circle.YesNormal,e.D[t]=yt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=V(t);e.scope=t.scope;var n=[],r=yt.internal.getWidth(t)<=yt.internal.getHeight(t)?yt.internal.getWidth(t)/4:yt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=yt.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+z(yt.internal.getWidth(t)/2)+" "+z(yt.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=V(t);e.scope=t.scope;var n=[],r=yt.internal.getWidth(t)<=yt.internal.getHeight(t)?yt.internal.getWidth(t)/4:yt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*yt.internal.Bezier_C).toFixed(5)),a=Number((r*yt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+z(yt.internal.getWidth(t)/2)+" "+z(yt.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+z(yt.internal.getWidth(t)/2)+" "+z(yt.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=V(t);e.scope=t.scope;var n=[],r=yt.internal.getWidth(t)<=yt.internal.getHeight(t)?yt.internal.getWidth(t)/4:yt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*yt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+z(yt.internal.getWidth(t)/2)+" "+z(yt.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:yt.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=yt.RadioButton.Cross.YesNormal,e.D[t]=yt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=V(t);e.scope=t.scope;var n=[],r=yt.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+B(yt.internal.getWidth(t)-2)+" "+B(yt.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(B(r.x1.x)+" "+B(r.x1.y)+" m"),n.push(B(r.x2.x)+" "+B(r.x2.y)+" l"),n.push(B(r.x4.x)+" "+B(r.x4.y)+" m"),n.push(B(r.x3.x)+" "+B(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=V(t);e.scope=t.scope;var n=yt.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+B(yt.internal.getWidth(t))+" "+B(yt.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+B(yt.internal.getWidth(t)-2)+" "+B(yt.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(B(n.x1.x)+" "+B(n.x1.y)+" m"),r.push(B(n.x2.x)+" "+B(n.x2.y)+" l"),r.push(B(n.x4.x)+" "+B(n.x4.y)+" m"),r.push(B(n.x3.x)+" "+B(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=V(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+B(yt.internal.getWidth(t))+" "+B(yt.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};yt.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=yt.internal.getWidth(t),n=yt.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},yt.internal.getWidth=function(t){var e=0;return"object"==typeof t&&(e=U(t.Rect[2])),e},yt.internal.getHeight=function(t){var e=0;return"object"==typeof t&&(e=U(t.Rect[3])),e};var wt=D.addField=function(t){if(function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(st.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(tt)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");R=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new at,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){!function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}(t)}),t.internal.events.subscribe("buildDocument",function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];r.objId=void 0,r.hasAnnotation&&et(r,t)}}(t)}),t.internal.events.subscribe("putCatalog",function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)}),t.internal.events.subscribe("postPutPages",function(e){!function(t,e){var n=!t;for(var r in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var i=t[r],o=[],a=i.Rect;if(i.Rect&&(i.Rect=Q(i.Rect,e)),e.internal.newObjectDeferredBegin(i.objId,!0),i.DA=yt.createDefaultAppearanceStream(i),"object"==typeof i&&"function"==typeof i.getKeyValueListForStream&&(o=i.getKeyValueListForStream()),i.Rect=a,i.hasAppearanceStream&&!i.appearanceStreamContent){var s=X(i);o.push({key:"AP",value:"<</N "+s+">>"}),e.internal.acroformPlugin.xForms.push(s)}if(i.appearanceStreamContent){var c="";for(var u in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(u)){var l=i.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var r in l)if(l.hasOwnProperty(r)){var h=l[r];"function"==typeof h&&(h=h.call(e,i)),c+="/"+r+" "+h+" ",e.internal.acroformPlugin.xForms.indexOf(h)>=0||e.internal.acroformPlugin.xForms.push(h)}}else"function"==typeof(h=l)&&(h=h.call(e,i)),c+="/"+r+" "+h,e.internal.acroformPlugin.xForms.indexOf(h)>=0||e.internal.acroformPlugin.xForms.push(h);c+=">>"}o.push({key:"AP",value:"<<\n"+c+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:i.objId}),e.internal.out("endobj")}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=n,i=t[n];e.internal.newObjectDeferredBegin(i.objId,!0),"object"==typeof i&&"function"==typeof i.putStream&&i.putStream(),delete t[r]}}(e.internal.acroformPlugin.xForms,e)}(e,t)}),t.internal.acroformPlugin.isInitialized=!0}}(this,t),!(t instanceof st))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};D.AcroFormChoiceField=ct,D.AcroFormListBox=ut,D.AcroFormComboBox=lt,D.AcroFormEditBox=ht,D.AcroFormButton=ft,D.AcroFormPushButton=dt,D.AcroFormRadioButton=pt,D.AcroFormCheckBox=mt,D.AcroFormTextField=vt,D.AcroFormPasswordField=bt,D.AcroFormAppearance=yt,D.AcroForm={ChoiceField:ct,ListBox:ut,ComboBox:lt,EditBox:ht,Button:ft,PushButton:dt,RadioButton:pt,CheckBox:mt,TextField:vt,PasswordField:bt,Appearance:yt},O.AcroForm={ChoiceField:ct,ListBox:ut,ComboBox:lt,EditBox:ht,Button:ft,PushButton:dt,RadioButton:pt,CheckBox:mt,TextField:vt,PasswordField:bt,Appearance:yt};O.AcroForm;
/** @license
* jsPDF addImage plugin
* Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/
* 2013 Chris Dowling, https://github.com/gingerchris
* 2013 Trinh Ho, https://github.com/ineedfat
* 2013 Edwin Alejandro Perez, https://github.com/eaparango
* 2013 Norah Smith, https://github.com/burnburnrocket
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/!function(t){t.__addimage__={};var e="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.__addimage__.getImageFileTypeByImageData=function(t,r){var i,o;r=r||e;var a,s,c,u=e;if(x(t))for(c in n)for(a=n[c],i=0;i<a.length;i+=1){for(s=!0,o=0;o<a[i].length;o+=1)if(void 0!==a[i][o]&&a[i][o]!==t[o]){s=!1;break}if(!0===s){u=c;break}}else for(c in n)for(a=n[c],i=0;i<a.length;i+=1){for(s=!0,o=0;o<a[i].length;o+=1)if(void 0!==a[i][o]&&a[i][o]!==t.charCodeAt(o)){s=!1;break}if(!0===s){u=c;break}}return u===e&&r!==e&&(u=r),u},i=function(t){for(var e=this.internal.write,n=this.internal.putStream,r=(0,this.internal.getFilters)();-1!==r.indexOf("FlateEncode");)r.splice(r.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var o=[];if(o.push({key:"Type",value:"/XObject"}),o.push({key:"Subtype",value:"/Image"}),o.push({key:"Width",value:t.width}),o.push({key:"Height",value:t.height}),t.colorSpace===g.INDEXED?o.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(o.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===g.DEVICE_CMYK&&o.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),o.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&o.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var a="",s=0,c=t.transparency.length;s<c;s++)a+=t.transparency[s]+" "+t.transparency[s]+" ";o.push({key:"Mask",value:"["+a+"]"})}void 0!==t.sMask&&o.push({key:"SMask",value:t.objectId+1+" 0 R"});var u=void 0!==t.filter?["/"+t.filter]:void 0;if(n({data:t.data,additionalKeyValues:o,alreadyAppliedFilters:u,objectId:t.objectId}),e("endobj"),"sMask"in t&&void 0!==t.sMask){var l="/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,h={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:l,data:t.sMask};"filter"in t&&(h.filter=t.filter),i.call(this,h)}if(t.colorSpace===g.INDEXED){var f=this.internal.newObject();n({data:A(new Uint8Array(t.palette)),objectId:f}),e("endobj")}},o=function(){var t=this.internal.collections.addImage_images;for(var e in t)i.call(this,t[e])},a=function(){var t,e=this.internal.collections.addImage_images,n=this.internal.write;for(var r in e)n("/I"+(t=e[r]).index,t.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",a))},c=function(){var t=this.internal.collections.addImage_images;return s.call(this),t},h=function(e){return"function"==typeof t["process"+e.toUpperCase()]},f=function(t){return"object"==typeof t&&1===t.nodeType},d=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return u(unescape(r).split("base64,").pop());var i=t.loadFile(r,!0);if(void 0!==i)return i}if("CANVAS"===e.nodeName){var o;switch(n){case"PNG":o="image/png";break;case"WEBP":o="image/webp";break;case"JPEG":case"JPG":default:o="image/jpeg"}return u(e.toDataURL(o,1).split("base64,").pop())}},p=function(t,e,n,r,i,o){var a=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.height*72/e/this.internal.scaleFactor),0===t&&(t=e*n.width/n.height),0===e&&(e=t*n.height/n.width),[t,e]}.call(this,n,r,i),s=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString,l=c.call(this);if(n=a[0],r=a[1],l[i.index]=i,o){o*=Math.PI/180;var h=Math.cos(o),f=Math.sin(o),d=function(t){return t.toFixed(4)},p=[d(h),d(f),d(-1*f),d(h),0,0,"cm"]}this.internal.write("q"),o?(this.internal.write([1,"0","0",1,s(t),u(e+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(n),"0","0",s(r),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(r),s(t),u(e+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},g=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var m=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},v=t.__addimage__.sHashCode=function(t){var e,n,r=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;else if(x(t))for(n=t.byteLength/2,e=0;e<n;e++)r=(r<<5)-r+t[e],r|=0;return r},b=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},y=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var r=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(e[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:e[1]})}return n},w=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return w()&&t instanceof ArrayBuffer};var x=t.__addimage__.isArrayBufferView=function(t){return w()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},_=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},A=t.__addimage__.arrayBufferToBinaryString=function(t){try{return u(l(String.fromCharCode.apply(null,t)))}catch(e){if("undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.reduce)return new Uint8Array(t).reduce(function(t,e){return t.push(String.fromCharCode(e)),t},[]).join("")}};t.addImage=function(){var t,n,r,i,o,a,c,u,l;if("number"==typeof arguments[1]?(n=e,r=arguments[1],i=arguments[2],o=arguments[3],a=arguments[4],c=arguments[5],u=arguments[6],l=arguments[7]):(n=arguments[1],r=arguments[2],i=arguments[3],o=arguments[4],a=arguments[5],c=arguments[6],u=arguments[7],l=arguments[8]),"object"==typeof(t=arguments[0])&&!f(t)&&"imageData"in t){var h=t;t=h.imageData,n=h.format||n||e,r=h.x||r||0,i=h.y||i||0,o=h.w||h.width||o,a=h.h||h.height||a,c=h.alias||c,u=h.compression||u,l=h.rotation||h.angle||l}var d=this.internal.getFilters();if(void 0===u&&-1!==d.indexOf("FlateEncode")&&(u="SLOW"),isNaN(r)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var g=S.call(this,t,n,c,u);return p.call(this,r,i,o,a,g,l),this};var S=function(n,i,o,a){var s,c,u;if("string"==typeof n&&r(n)===e){n=unescape(n);var l=k(n,!1);(""!==l||void 0!==(l=t.loadFile(n,!0)))&&(n=l)}if(f(n)&&(n=d(n,i)),i=r(n,i),!h(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if((null==(u=o)||0===u.length)&&(o=function(t){return"string"==typeof t||x(t)?v(t):null}(n)),(s=function(t){var e=this.internal.collections.addImage_images;if(e)for(var n in e)if(t===e[n].alias)return e[n]}.call(this,o))||(w()&&(n instanceof Uint8Array||(c=n,n=_(n))),s=this["process"+i.toUpperCase()](n,function(){return Object.keys(this.internal.collections.addImage_images).length}.call(this),o,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:m.NONE}(a),c)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},k=t.__addimage__.convertBase64ToBinaryString=function(t,e){var n;e="boolean"!=typeof e||e;var r,i="";if("string"==typeof t){r=null!==(n=y(t))?n.data:t;try{i=u(r)}catch(t){if(e)throw b(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};t.getImageProperties=function(n){var i,o,a="";if(f(n)&&(n=d(n)),"string"==typeof n&&r(n)===e&&(""===(a=k(n,!1))&&(a=t.loadFile(n)||""),n=a),o=r(n),!h(o))throw new Error("addImage does not support files of type '"+o+"', please ensure that a plugin for '"+o+"' support is added.");if(!w()||n instanceof Uint8Array||(n=_(n)),!(i=this["process"+o.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return i.fileType=o,i}}(O.API),
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e=function(t){if(void 0!==t&&""!=t)return!0};O.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(t){for(var n,r,i,o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(t.objId),c=t.pageContext.annotations,u=!1,l=0;l<c.length&&!u;l++)switch((n=c[l]).type){case"link":(e(n.options.url)||e(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(0!=u){this.internal.write("/Annots [");for(var h=0;h<c.length;h++){n=c[h];var f=this.internal.pdfEscape,d=this.internal.getEncryptor(t.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(p.objId),v=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(r="/Rect ["+o(n.bounds.x)+" "+a(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+a(n.bounds.y)+"] ")+"/Contents ("+f(m(n.contents))+")",i+=" /Popup "+g.objId+" 0 R",i+=" /P "+s.objId+" 0 R",i+=" /T ("+f(m(v))+") >>",p.content=i;var b=p.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+o(n.bounds.x+30)+" "+a(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+a(n.bounds.y)+"] ")+" /Parent "+b,n.open&&(i+=" /Open true"),i+=" >>",g.content=i,this.internal.write(p.objId,"0 R",g.objId,"0 R");break;case"freetext":r="/Rect ["+o(n.bounds.x)+" "+a(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+a(n.bounds.y+n.bounds.h)+"] ";var y=n.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+f(d(n.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(n.options.name){var w=this.annotations._nameMap[n.options.name];n.options.pageNumber=w.page,n.options.top=w.y}else n.options.top||(n.options.top=0);if(r="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+f(d(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var x=a(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+x+" "+n.options.zoom+"]"}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},t.link=function(t,e,n,r,i){var o=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:a(t),y:s(e),w:a(t+n),h:s(e+r)},options:i,type:"link"})},t.textWithLink=function(t,e,n,r){var i=this.getTextWidth(t),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,n,r),n+=.2*o,this.link(e,n-o,i,o,r),i},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor}}(O.API),
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},a=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length<=2},c=t.__arabicParser__.isArabicAlfLetter=function(t){return a(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=3};var l=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return a(t)&&o(t)&&4==e[t.charCodeAt(0)].length},h=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i="",o=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(o++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i+=String.fromCharCode(r),r=n,o=0),e===t.length-1&&(r=n,i+=t.charAt(e-(o-1)),e-=o-1,o=0)):(r=n,i+=t.charAt(e-o),e-=o,o=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]};var f=t.__arabicParser__.getCorrectForm=function(t,e,n){return a(t)?!1===o(t)?-1:!u(t)||!a(e)&&!a(n)||!a(n)&&s(e)||s(t)&&!a(e)||s(t)&&c(e)||s(t)&&s(e)?0:l(t)&&a(e)&&!s(e)&&a(n)&&u(n)?3:s(t)||!a(n)?1:2:-1},d=function(t){var n=0,r=0,i=0,o="",s="",c="",u=(t=t||"").split("\\s+"),l=[];for(n=0;n<u.length;n+=1){for(l.push(""),r=0;r<u[n].length;r+=1)o=u[n][r],s=u[n][r-1],c=u[n][r+1],a(o)?(i=f(o,s,c),l[n]+=-1!==i?String.fromCharCode(e[o.charCodeAt(0)][i]):o):l[n]+=o;l[n]=h(l[n])}return l.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(e)){var r=0;for(n=[],r=0;r<e.length;r+=1)Array.isArray(e[r])?n.push([d(e[r][0]),e[r][1],e[r][2]]):n.push([d(e[r])]);t=n}else t=d(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(O.API),O.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(O.API),
/**
* @license
* ====================================================================
* Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com
* 2013 Eduardo Menezes de Morais, eduardo.morais@usp.br
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Hall, james@parall.ax
* 2014 Diego Casorran, https://github.com/diegocr
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var o=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return o},set:function(t){o=t}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(t){a=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){r.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),i=e.font||this.getFont(),o=e.scaleFactor||this.internal.scaleFactor,a=0,s=0,c=0;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}const u=e.maxWidth;u>0?"string"==typeof t?t=this.splitTextToSize(t,u):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(scope.splitTextToSize(e,u))},[])):t=Array.isArray(t)?t:[t];for(var l=0;l<t.length;l++)a<(c=this.getStringUnitWidth(t[l],{font:i})*n)&&(a=c);return 0!==a&&(s=t.length),{w:a/=o,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/o,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=t.cell=function(){var t;t=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var i=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,c=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==i.lineNumber&&(i.lineNumber===t.lineNumber?(t.x=(i.x||0)+(i.width||0),t.y=i.y||0):i.y+i.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,u&&c&&(this.printHeaderRow(t.lineNumber,!0),t.y+=c[0].height)):t.y=i.y+i.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-a,t.y+a,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+a,{align:"center",baseline:"top",maxWidth:t.width-a-a}):this.text(t.text,t.x+a,t.y+a,{align:"left",baseline:"top",maxWidth:t.width-a-a})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,c,u,l){if(r.call(this),!c)throw new Error("No data for PDF table.");var h,f,d,p,g=[],m=[],v=[],b={},y={},w=[],x=[],_=(l=l||{}).autoSize||!1,A=!1!==l.printHeaders,S=l.css&&void 0!==l.css["font-size"]?16*l.css["font-size"]:l.fontSize||12,k=l.margins||Object.assign({width:this.getPageWidth()},e),N="number"==typeof l.padding?l.padding:3,C=l.headerBackgroundColor||"#c8c8c8";if(i.call(this),this.internal.__cell__.printHeaders=A,this.internal.__cell__.margins=k,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=N,this.internal.__cell__.headerBackgroundColor=C,this.setFontSize(S),null==u)m=g=Object.keys(c[0]),v=g.map(function(){return"left"});else if(Array.isArray(u)&&"object"==typeof u[0])for(g=u.map(function(t){return t.name}),m=u.map(function(t){return t.prompt||t.name||""}),v=g.map(function(t){return t.align||"left"}),h=0;h<u.length;h+=1)y[u[h].name]=u[h].width*(19.049976/25.4);else Array.isArray(u)&&"string"==typeof u[0]&&(m=g=u,v=g.map(function(){return"left"}));if(_)for(h=0;h<g.length;h+=1){for(b[p=g[h]]=c.map(function(t){return t[p]}),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(m[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=b[p],this.setFont(void 0,"normal"),d=0;d<f.length;d+=1)w.push(this.getTextDimensions(f[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);y[p]=Math.max.apply(null,w)+N+N,w=[]}if(A){var L={};for(h=0;h<g.length;h+=1)L[g[h]]={},L[g[h]].text=m[h],L[g[h]].align=v[h];var P=s.call(this,L,y);x=g.map(function(e){return new o(t,n,y[e],P,L[e].text,void 0,L[e].align)}),this.setTableHeaderRow(x),this.printHeaderRow(1,!1)}var M=u.reduce(function(t,e){return t[e.name]=e.align,t},{});for(h=0;h<c.length;h+=1){var I=s.call(this,c[h],y);for(d=0;d<g.length;d+=1)a.call(this,new o(t,n,y[g[d]],I,c[h][g[d]],h+2,M[g[d]]))}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var s=function(t,e){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map(function(r){var i=t[r];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[r]-n-n)},this).map(function(t){return this.getLineHeightFactor()*t.length*r/i+n+n},this).reduce(function(t,e){return Math.max(t,e)},0)};t.setTableHeaderRow=function(t){r.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var i;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,"bold");for(var c=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1)i=this.internal.__cell__.tableHeaderRow[u].clone(),e&&(i.y=this.internal.__cell__.margins.top||0,c.push(i)),i.lineNumber=t,this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,i);c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,"normal"),n=!1}}(O.API),function(t){var e,n,r,i,a,s,c,u,l,h=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new u,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new s,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new s,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new d(this),e=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,s=this.internal.Point,c=this.internal.Rectangle,u=this.internal.Matrix,l=new h}]);var d=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=0;Object.defineProperty(this,"posY",{get:function(){return o},set:function(t){isNaN(t)||(o=t)}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(t){a=Boolean(t)}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var c=[];Object.defineProperty(this,"pageBreaks",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(t){t instanceof h&&(l=t)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(t){l.path=t}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=p(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=p(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],r=(e[2],e[3]),i=e[4],o=(e[5],e[6]),a=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===a?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===a?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(s="bold"),"italic"===n&&(s+="italic"),0===s.length&&(s="normal");for(var c="",u=o.replace(/"|'/g,"").split(/\s*,\s*/),l={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},h=0;h<u.length;h++){if(void 0!==this.pdf.internal.getFont(u[h],s,{noFallback:!0,disableWarning:!0})){c=u[h];break}if("bolditalic"===s&&void 0!==this.pdf.internal.getFont(u[h],"bold",{noFallback:!0,disableWarning:!0}))c=u[h],s="bold";else if(void 0!==this.pdf.internal.getFont(u[h],"normal",{noFallback:!0,disableWarning:!0})){c=u[h],s="normal";break}}if(""===c)for(var f=0;f<u.length;f++)if(l[u[f]]){c=l[u[f]];break}c=""===c?"Times":c,this.pdf.setFont(c,s)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};d.prototype.fill=function(){x.call(this,"fill",!1)},d.prototype.stroke=function(){x.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw o.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(t,e)},d.prototype.closePath=function(){var t=new s(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"==typeof this.path[e+1]&&"number"==typeof this.path[e+1].x){t=new s(this.path[e+1].x,this.path[e+1].y),this.path.push({type:"lt",x:t.x,y:t.y});break}"object"==typeof this.path[e+2]&&"number"==typeof this.path[e+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[e+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new s(t.x,t.y)},d.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw o.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},d.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw o.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new s(n,r)),a=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"qct",x1:a.x,y1:a.y,x:i.x,y:i.y}),this.ctx.lastPoint=new s(i.x,i.y)},d.prototype.bezierCurveTo=function(t,e,n,r,i,a){if(isNaN(i)||isNaN(a)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw o.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var c=this.ctx.transform.applyToPoint(new s(i,a)),u=this.ctx.transform.applyToPoint(new s(t,e)),l=this.ctx.transform.applyToPoint(new s(n,r));this.path.push({type:"bct",x1:u.x,y1:u.y,x2:l.x,y2:l.y,x:c.x,y:c.y}),this.ctx.lastPoint=new s(c.x,c.y)},d.prototype.arc=function(t,e,n,r,i,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw o.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(a=Boolean(a),!this.ctx.transform.isIdentity){var c=this.ctx.transform.applyToPoint(new s(t,e));t=c.x,e=c.y;var u=this.ctx.transform.applyToPoint(new s(0,n)),l=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(u.x-l.x,2)+Math.pow(u.y-l.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:a})},d.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},d.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw o.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},d.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw o.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},d.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw o.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},d.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw o.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},d.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},d.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(t){var e,n,r,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,n=0,r=0,i=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==o)e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var a=new f(t);t=a.ok?a.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,a:i,style:t}},g=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},m=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw o.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!g.call(this)){n=A.call(this,n);var i=O(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;L.call(this,{text:t,x:e,y:n,scale:a,angle:i,align:this.textAlign,maxWidth:r})}},d.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw o.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){r=isNaN(r)?void 0:r,n=A.call(this,n);var i=O(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;L.call(this,{text:t,x:e,y:n,scale:a,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},d.prototype.measureText=function(t){if("string"!=typeof t)throw o.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:i*=Math.round(96*n/72*1e4)/1e4})},d.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw o.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new u(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.rotate=function(t){if(isNaN(t))throw o.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new u(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},d.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw o.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new u(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.transform=function(t,e,n,r,i,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a))throw o.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new u(t,e,n,r,i,a);this.ctx.transform=this.ctx.transform.multiply(s)},d.prototype.setTransform=function(t,e,n,r,i,o){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new u(t,e,n,r,i,o)},d.prototype.drawImage=function(t,e,n,r,i,o,a,s,l){var h=this.pdf.getImageProperties(t),f=1,d=1,p=1,g=1;void 0!==r&&void 0!==s&&(p=s/r,g=l/i,f=h.width/r*s/r,d=h.height/i*l/i),void 0===o&&(o=e,a=n,e=0,n=0),void 0!==r&&void 0===s&&(s=r,l=i),void 0===r&&void 0===s&&(s=h.width,l=h.height);for(var m,b=this.ctx.transform.decompose(),x=O(b.rotate.shx),A=new u,S=(A=(A=(A=A.multiply(b.translate)).multiply(b.skew)).multiply(b.scale)).applyToRectangle(new c(o-e*p,a-n*g,r*f,i*d)),k=v.call(this,S),N=[],C=0;C<k.length;C+=1)-1===N.indexOf(k[C])&&N.push(k[C]);if(w(N),this.autoPaging)for(var L=N[0],P=N[N.length-1],M=L;M<P+1;M++){if(this.pdf.setPage(M),0!==this.ctx.clip_path.length){var I=this.path;m=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(m,this.posX,-1*this.pdf.internal.pageSize.height*(M-1)+this.posY),_.call(this,"fill",!0),this.path=I}var T=JSON.parse(JSON.stringify(S));T=y([T],this.posX,-1*this.pdf.internal.pageSize.height*(M-1)+this.posY)[0],this.pdf.addImage(t,"JPEG",T.x,T.y,T.w,T.h,null,null,x)}else this.pdf.addImage(t,"JPEG",S.x,S.y,S.w,S.h,null,null,x)};var v=function(t,e,n){var r=[];switch(e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height,t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+this.posY)/n)+1);break;case"arc":r.push(Math.floor((t.y+this.posY-t.radius)/n)+1),r.push(Math.floor((t.y+this.posY+t.radius)/n)+1);break;case"qct":var i=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor(i.y/n)+1),r.push(Math.floor((i.y+i.h)/n)+1);break;case"bct":var o=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor(o.y/n)+1),r.push(Math.floor((o.y+o.h)/n)+1);break;case"rect":r.push(Math.floor((t.y+this.posY)/n)+1),r.push(Math.floor((t.y+t.h+this.posY)/n)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)b.call(this);return r},b=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=o},y=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;case"mt":case"lt":case"arc":default:t[r].x+=e,t[r].y+=n}return t},w=function(t){return t.sort(function(t,e){return t-e})},x=function(t,e){for(var n,r,i=this.fillStyle,o=this.strokeStyle,a=this.lineCap,s=this.lineWidth,c=s*this.ctx.transform.scaleX,u=this.lineJoin,l=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),f=[],d=0;d<h.length;d++)if(void 0!==h[d].x)for(var p=v.call(this,h[d]),g=0;g<p.length;g+=1)-1===f.indexOf(p[g])&&f.push(p[g]);for(var m=0;m<f.length;m++)for(;this.pdf.internal.getNumberOfPages()<f[m];)b.call(this);if(w(f),this.autoPaging)for(var x=f[0],A=f[f.length-1],S=x;S<A+1;S++){if(this.pdf.setPage(S),this.fillStyle=i,this.strokeStyle=o,this.lineCap=a,this.lineWidth=c,this.lineJoin=u,0!==this.ctx.clip_path.length){var k=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(n,this.posX,-1*this.pdf.internal.pageSize.height*(S-1)+this.posY),_.call(this,t,!0),this.path=k}r=JSON.parse(JSON.stringify(l)),this.path=y(r,this.posX,-1*this.pdf.internal.pageSize.height*(S-1)+this.posY),!1!==e&&0!==S||_.call(this,t,e),this.lineWidth=s}else this.lineWidth=c,_.call(this,t,e),this.lineWidth=s;this.path=l},_=function(t,e){if(("stroke"!==t||e||!m.call(this))&&("stroke"===t||e||!g.call(this))){for(var n,r,i=[],o=this.path,a=0;a<o.length;a++){var s=o[a];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var c=i.length;if(!isNaN(o[a-1].x)&&(n=[s.x-o[a-1].x,s.y-o[a-1].y],c>0))for(;c>=0;c--)if(!0!==i[c-1].close&&!0!==i[c-1].begin){i[c-1].deltas.push(n),i[c-1].abs.push(s);break}break;case"bct":n=[s.x1-o[a-1].x,s.y1-o[a-1].y,s.x2-o[a-1].x,s.y2-o[a-1].y,s.x-o[a-1].x,s.y-o[a-1].y],i[i.length-1].deltas.push(n);break;case"qct":var u=o[a-1].x+2/3*(s.x1-o[a-1].x),l=o[a-1].y+2/3*(s.y1-o[a-1].y),h=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),d=s.x,p=s.y;n=[u-o[a-1].x,l-o[a-1].y,h-o[a-1].x,f-o[a-1].y,d-o[a-1].x,p-o[a-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=e?null:"stroke"===t?"stroke":"fill";for(var v=0;v<i.length;v++){if(i[v].arc){for(var b=i[v].abs,y=0;y<b.length;y++){var w=b[y];"arc"===w.type?S.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,e):P.call(this,w.x,w.y)}k.call(this,r),this.pdf.internal.out("h")}if(!i[v].arc&&!0!==i[v].close&&!0!==i[v].begin){var x=i[v].start.x,_=i[v].start.y;M.call(this,i[v].deltas,x,_)}}r&&k.call(this,r),e&&N.call(this)}},A=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;case"ideographic":return t;case"alphabetic":default:return t}};d.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(t,e,n,r,i,o,a,s){for(var c=T.call(this,n,r,i,o),u=0;u<c.length;u++){var l=c[u];0===u&&C.call(this,l.x1+t,l.y1+e),I.call(this,t,e,l.x2,l.y2,l.x3,l.y3,l.x4,l.y4)}s?N.call(this):k.call(this,a)},k=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},N=function(){this.pdf.clip(),this.pdf.discardPath()},C=function(t,e){this.pdf.internal.out(n(t)+" "+r(e)+" m")},L=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var n=this.ctx.transform.applyToPoint(new s(t.x,t.y)),r=this.ctx.transform.decompose(),i=new u;i=(i=(i=i.multiply(r.translate)).multiply(r.skew)).multiply(r.scale);for(var o,a,l,h=this.pdf.getTextDimensions(t.text),f=this.ctx.transform.applyToRectangle(new c(t.x,t.y,h.w,h.h)),d=i.applyToRectangle(new c(t.x,t.y-h.h,h.w,h.h)),p=v.call(this,d),g=[],m=0;m<p.length;m+=1)-1===g.indexOf(p[m])&&g.push(p[m]);if(w(g),!0===this.autoPaging)for(var b=g[0],x=g[g.length-1],A=b;A<x+1;A++){if(this.pdf.setPage(A),0!==this.ctx.clip_path.length){var S=this.path;o=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(o,this.posX,-1*this.pdf.internal.pageSize.height*(A-1)+this.posY),_.call(this,"fill",!0),this.path=S}var k=JSON.parse(JSON.stringify(f));k=y([k],this.posX,-1*this.pdf.internal.pageSize.height*(A-1)+this.posY)[0],t.scale>=.01&&(a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(a*t.scale),l=this.lineWidth,this.lineWidth=l*t.scale),this.pdf.text(t.text,k.x,k.y,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(a),this.lineWidth=l)}else t.scale>=.01&&(a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(a*t.scale),l=this.lineWidth,this.lineWidth=l*t.scale),this.pdf.text(t.text,n.x+this.posX,n.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(a),this.lineWidth=l)},P=function(t,e,i,o){i=i||0,o=o||0,this.pdf.internal.out(n(t+i)+" "+r(e+o)+" l")},M=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},I=function(t,n,r,o,s,c,u,l){this.pdf.internal.out([e(i(r+t)),e(a(o+n)),e(i(s+t)),e(a(c+n)),e(i(u+t)),e(a(l+n)),"c"].join(" "))},T=function(t,e,n,r){for(var i=2*Math.PI,o=Math.PI/2;e>n;)e-=i;var a=Math.abs(n-e);a<i&&r&&(a=i-a);for(var s=[],c=r?-1:1,u=e;a>1e-5;){var l=u+c*Math.min(a,o);s.push(E.call(this,t,u,l)),a-=Math.abs(l-u),u=l}return s},E=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),o=t*Math.sin(r),a=i,s=-o,c=a*a+s*s,u=c+a*i+s*o,l=4/3*(Math.sqrt(2*c*u)-u)/(a*o-s*i),h=a-l*s,f=s+l*a,d=h,p=-f,g=r+e,m=Math.cos(g),v=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:h*m-f*v,y2:h*v+f*m,x3:d*m-p*v,y3:d*v+p*m,x4:t*Math.cos(n),y4:t*Math.sin(n)}},O=function(t){return 180*t/Math.PI},D=function(t,e,n,r,i,o){var a=t+.5*(n-t),s=e+.5*(r-e),u=i+.5*(n-i),l=o+.5*(r-o),h=Math.min(t,i,a,u),f=Math.max(t,i,a,u),d=Math.min(e,o,s,l),p=Math.max(e,o,s,l);return new c(h,d,f-h,p-d)},R=function(t,e,n,r,i,o,a,s){var u,l,h,f,d,p,g,m,v,b,y,w,x,_,A=n-t,S=r-e,k=i-n,N=o-r,C=a-i,L=s-o;for(l=0;l<41;l++)v=(g=(h=t+(u=l/40)*A)+u*((d=n+u*k)-h))+u*(d+u*(i+u*C-d)-g),b=(m=(f=e+u*S)+u*((p=r+u*N)-f))+u*(p+u*(o+u*L-p)-m),0==l?(y=v,w=b,x=v,_=b):(y=Math.min(y,v),w=Math.min(w,b),x=Math.max(x,v),_=Math.max(_,b));return new c(Math.round(y),Math.round(w),Math.round(x-y),Math.round(_-w))}}(O.API);
/**
* @license
Copyright (c) 2013 Gildas Lormeau. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution.
3. The names of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,
INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
var xt=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function _t(){var t=this;function e(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}t.build_tree=function(n){var r,i,o,a=t.dyn_tree,s=t.stat_desc.static_tree,c=t.stat_desc.elems,u=-1;for(n.heap_len=0,n.heap_max=573,r=0;r<c;r++)0!==a[2*r]?(n.heap[++n.heap_len]=u=r,n.depth[r]=0):a[2*r+1]=0;for(;n.heap_len<2;)a[2*(o=n.heap[++n.heap_len]=u<2?++u:0)]=1,n.depth[o]=0,n.opt_len--,s&&(n.static_len-=s[2*o+1]);for(t.max_code=u,r=Math.floor(n.heap_len/2);r>=1;r--)n.pqdownheap(a,r);o=c;do{r=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(a,1),i=n.heap[1],n.heap[--n.heap_max]=r,n.heap[--n.heap_max]=i,a[2*o]=a[2*r]+a[2*i],n.depth[o]=Math.max(n.depth[r],n.depth[i])+1,a[2*r+1]=a[2*i+1]=o,n.heap[1]=o++,n.pqdownheap(a,1)}while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],function(e){var n,r,i,o,a,s,c=t.dyn_tree,u=t.stat_desc.static_tree,l=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,f=t.stat_desc.max_length,d=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)>f&&(o=f,d++),c[2*r+1]=o,r>t.max_code||(e.bl_count[o]++,a=0,r>=h&&(a=l[r-h]),s=c[2*r],e.opt_len+=s*(o+a),u&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==d){do{for(o=f-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[f]--,d-=2}while(d>0);for(o=f;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>t.max_code||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(n),function(t,n,r){var i,o,a,s=[],c=0;for(i=1;i<=15;i++)s[i]=c=c+r[i-1]<<1;for(o=0;o<=n;o++)0!==(a=t[2*o+1])&&(t[2*o]=e(s[a]++,a))}(a,t.max_code,n.bl_count)}}function At(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i}function St(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}_t._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],_t.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],_t.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],_t.d_code=function(t){return t<256?xt[t]:xt[256+(t>>>7)]},_t.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],_t.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],_t.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_t.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],At.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],At.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],At.static_l_desc=new At(At.static_ltree,_t.extra_lbits,257,286,15),At.static_d_desc=new At(At.static_dtree,_t.extra_dbits,0,30,15),At.static_bl_desc=new At(null,_t.extra_blbits,0,19,7);var kt,Nt,Ct,Lt=[new St(0,0,0,0,0),new St(4,4,8,4,1),new St(4,5,16,8,1),new St(4,6,32,32,1),new St(4,4,16,16,2),new St(8,16,32,32,2),new St(8,16,128,128,2),new St(8,32,128,256,2),new St(32,128,258,1024,2),new St(32,258,258,4096,2)],Pt=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function Mt(t,e,n,r){var i=t[2*e],o=t[2*n];return i<o||i===o&&r[e]<=r[n]}function It(){var t,e,n,r,i,o,a,s,c,u,l,h,f,d,p,g,m,v,b,y,w,x,_,A,S,k,N,C,L,P,M,I,T,E,O,D,R,j,F,B,z,q=this,U=new _t,V=new _t,H=new _t;function G(){var t;for(t=0;t<286;t++)M[2*t]=0;for(t=0;t<30;t++)I[2*t]=0;for(t=0;t<19;t++)T[2*t]=0;M[512]=1,q.opt_len=q.static_len=0,D=j=0}function W(t,e){var n,r,i=-1,o=t[1],a=0,s=7,c=4;for(0===o&&(s=138,c=3),t[2*(e+1)+1]=65535,n=0;n<=e;n++)r=o,o=t[2*(n+1)+1],++a<s&&r===o||(a<c?T[2*r]+=a:0!==r?(r!==i&&T[2*r]++,T[32]++):a<=10?T[34]++:T[36]++,a=0,i=r,0===o?(s=138,c=3):r===o?(s=6,c=3):(s=7,c=4))}function Y(t){q.pending_buf[q.pending++]=t}function Z(t){Y(255&t),Y(t>>>8&255)}function J(t,e){var n,r=e;z>16-r?(Z(B|=(n=t)<<z&65535),B=n>>>16-z,z+=r-16):(B|=t<<z&65535,z+=r)}function Q(t,e){var n=2*t;J(65535&e[n],65535&e[n+1])}function X(t,e){var n,r,i=-1,o=t[1],a=0,s=7,c=4;for(0===o&&(s=138,c=3),n=0;n<=e;n++)if(r=o,o=t[2*(n+1)+1],!(++a<s&&r===o)){if(a<c)do{Q(r,T)}while(0!=--a);else 0!==r?(r!==i&&(Q(r,T),a--),Q(16,T),J(a-3,2)):a<=10?(Q(17,T),J(a-3,3)):(Q(18,T),J(a-11,7));a=0,i=r,0===o?(s=138,c=3):r===o?(s=6,c=3):(s=7,c=4)}}function K(){16===z?(Z(B),B=0,z=0):z>=8&&(Y(255&B),B>>>=8,z-=8)}function $(t,e){var n,r,i;if(q.pending_buf[R+2*D]=t>>>8&255,q.pending_buf[R+2*D+1]=255&t,q.pending_buf[E+D]=255&e,D++,0===t?M[2*e]++:(j++,t--,M[2*(_t._length_code[e]+256+1)]++,I[2*_t.d_code(t)]++),0==(8191&D)&&N>2){for(n=8*D,r=w-m,i=0;i<30;i++)n+=I[2*i]*(5+_t.extra_dbits[i]);if(n>>>=3,j<Math.floor(D/2)&&n<Math.floor(r/2))return!0}return D===O-1}function tt(t,e){var n,r,i,o,a=0;if(0!==D)do{n=q.pending_buf[R+2*a]<<8&65280|255&q.pending_buf[R+2*a+1],r=255&q.pending_buf[E+a],a++,0===n?Q(r,t):(Q((i=_t._length_code[r])+256+1,t),0!==(o=_t.extra_lbits[i])&&J(r-=_t.base_length[i],o),n--,Q(i=_t.d_code(n),e),0!==(o=_t.extra_dbits[i])&&J(n-=_t.base_dist[i],o))}while(a<D);Q(256,t),F=t[513]}function et(){z>8?Z(B):z>0&&Y(255&B),B=0,z=0}function nt(t,e,n){J(0+(n?1:0),3),function(t,e,n){et(),F=8,Z(e),Z(~e),q.pending_buf.set(s.subarray(t,t+e),q.pending),q.pending+=e}(t,e)}function rt(e){(function(t,e,n){var r,i,o=0;N>0?(U.build_tree(q),V.build_tree(q),o=function(){var t;for(W(M,U.max_code),W(I,V.max_code),H.build_tree(q),t=18;t>=3&&0===T[2*_t.bl_order[t]+1];t--);return q.opt_len+=3*(t+1)+5+5+4,t}(),r=q.opt_len+3+7>>>3,(i=q.static_len+3+7>>>3)<=r&&(r=i)):r=i=e+5,e+4<=r&&-1!==t?nt(t,e,n):i===r?(J(2+(n?1:0),3),tt(At.static_ltree,At.static_dtree)):(J(4+(n?1:0),3),function(t,e,n){var r;for(J(t-257,5),J(e-1,5),J(n-4,4),r=0;r<n;r++)J(T[2*_t.bl_order[r]+1],3);X(M,t-1),X(I,e-1)}(U.max_code+1,V.max_code+1,o+1),tt(M,I)),G(),n&&et()})(m>=0?m:-1,w-m,e),m=w,t.flush_pending()}function it(){var e,n,r,o;do{if(0==(o=c-_-w)&&0===w&&0===_)o=i;else if(-1===o)o--;else if(w>=i+i-262){s.set(s.subarray(i,i+i),0),x-=i,w-=i,m-=i,r=e=f;do{n=65535&l[--r],l[r]=n>=i?n-i:0}while(0!=--e);r=e=i;do{n=65535&u[--r],u[r]=n>=i?n-i:0}while(0!=--e);o+=i}if(0===t.avail_in)return;e=t.read_buf(s,w+_,o),(_+=e)>=3&&(h=((h=255&s[w])<<g^255&s[w+1])&p)}while(_<262&&0!==t.avail_in)}function ot(t){var e,n,r=S,o=w,c=A,l=w>i-262?w-(i-262):0,h=P,f=a,d=w+258,p=s[o+c-1],g=s[o+c];A>=L&&(r>>=2),h>_&&(h=_);do{if(s[(e=t)+c]===g&&s[e+c-1]===p&&s[e]===s[o]&&s[++e]===s[o+1]){o+=2,e++;do{}while(s[++o]===s[++e]&&s[++o]===s[++e]&&s[++o]===s[++e]&&s[++o]===s[++e]&&s[++o]===s[++e]&&s[++o]===s[++e]&&s[++o]===s[++e]&&s[++o]===s[++e]&&o<d);if(n=258-(d-o),o=d-258,n>c){if(x=t,c=n,n>=h)break;p=s[o+c-1],g=s[o+c]}}}while((t=65535&u[t&f])>l&&0!=--r);return c<=_?c:_}function at(t){return t.total_in=t.total_out=0,t.msg=null,q.pending=0,q.pending_out=0,e=113,r=0,U.dyn_tree=M,U.stat_desc=At.static_l_desc,V.dyn_tree=I,V.stat_desc=At.static_d_desc,H.dyn_tree=T,H.stat_desc=At.static_bl_desc,B=0,z=0,F=8,G(),function(){var t;for(c=2*i,l[f-1]=0,t=0;t<f-1;t++)l[t]=0;k=Lt[N].max_lazy,L=Lt[N].good_length,P=Lt[N].nice_length,S=Lt[N].max_chain,w=0,m=0,_=0,v=A=2,y=0,h=0}(),0}q.depth=[],q.bl_count=[],q.heap=[],M=[],I=[],T=[],q.pqdownheap=function(t,e){for(var n=q.heap,r=n[e],i=e<<1;i<=q.heap_len&&(i<q.heap_len&&Mt(t,n[i+1],n[i],q.depth)&&i++,!Mt(t,r,n[i],q.depth));)n[e]=n[i],e=i,i<<=1;n[e]=r},q.deflateInit=function(t,e,r,c,h,m){return c||(c=8),h||(h=8),m||(m=0),t.msg=null,-1===e&&(e=6),h<1||h>9||8!==c||r<9||r>15||e<0||e>9||m<0||m>2?-2:(t.dstate=q,a=(i=1<<(o=r))-1,p=(f=1<<(d=h+7))-1,g=Math.floor((d+3-1)/3),s=new Uint8Array(2*i),u=[],l=[],O=1<<h+6,q.pending_buf=new Uint8Array(4*O),n=4*O,R=Math.floor(O/2),E=3*O,N=e,C=m,at(t))},q.deflateEnd=function(){return 42!==e&&113!==e&&666!==e?-2:(q.pending_buf=null,l=null,u=null,s=null,q.dstate=null,113===e?-3:0)},q.deflateParams=function(t,e,n){var r=0;return-1===e&&(e=6),e<0||e>9||n<0||n>2?-2:(Lt[N].func!==Lt[e].func&&0!==t.total_in&&(r=t.deflate(1)),N!==e&&(k=Lt[N=e].max_lazy,L=Lt[N].good_length,P=Lt[N].nice_length,S=Lt[N].max_chain),C=n,r)},q.deflateSetDictionary=function(t,n,r){var o,c=r,f=0;if(!n||42!==e)return-2;if(c<3)return 0;for(c>i-262&&(f=r-(c=i-262)),s.set(n.subarray(f,f+c),0),w=c,m=c,h=((h=255&s[0])<<g^255&s[1])&p,o=0;o<=c-3;o++)h=(h<<g^255&s[o+2])&p,u[o&a]=l[h],l[h]=o;return 0},q.deflate=function(c,d){var S,L,P,M,I,T;if(d>4||d<0)return-2;if(!c.next_out||!c.next_in&&0!==c.avail_in||666===e&&4!==d)return c.msg=Pt[4],-2;if(0===c.avail_out)return c.msg=Pt[7],-5;if(t=c,M=r,r=d,42===e&&(L=8+(o-8<<4)<<8,(P=(N-1&255)>>1)>3&&(P=3),L|=P<<6,0!==w&&(L|=32),e=113,Y((T=L+=31-L%31)>>8&255),Y(255&T)),0!==q.pending){if(t.flush_pending(),0===t.avail_out)return r=-1,0}else if(0===t.avail_in&&d<=M&&4!==d)return t.msg=Pt[7],-5;if(666===e&&0!==t.avail_in)return c.msg=Pt[7],-5;if(0!==t.avail_in||0!==_||0!==d&&666!==e){switch(I=-1,Lt[N].func){case 0:I=function(e){var r,o=65535;for(o>n-5&&(o=n-5);;){if(_<=1){if(it(),0===_&&0===e)return 0;if(0===_)break}if(w+=_,_=0,r=m+o,(0===w||w>=r)&&(_=w-r,w=r,rt(!1),0===t.avail_out))return 0;if(w-m>=i-262&&(rt(!1),0===t.avail_out))return 0}return rt(4===e),0===t.avail_out?4===e?2:0:4===e?3:1}(d);break;case 1:I=function(e){for(var n,r=0;;){if(_<262){if(it(),_<262&&0===e)return 0;if(0===_)break}if(_>=3&&(h=(h<<g^255&s[w+2])&p,r=65535&l[h],u[w&a]=l[h],l[h]=w),0!==r&&(w-r&65535)<=i-262&&2!==C&&(v=ot(r)),v>=3)if(n=$(w-x,v-3),_-=v,v<=k&&_>=3){v--;do{h=(h<<g^255&s[++w+2])&p,r=65535&l[h],u[w&a]=l[h],l[h]=w}while(0!=--v);w++}else w+=v,v=0,h=((h=255&s[w])<<g^255&s[w+1])&p;else n=$(0,255&s[w]),_--,w++;if(n&&(rt(!1),0===t.avail_out))return 0}return rt(4===e),0===t.avail_out?4===e?2:0:4===e?3:1}(d);break;case 2:I=function(e){for(var n,r,o=0;;){if(_<262){if(it(),_<262&&0===e)return 0;if(0===_)break}if(_>=3&&(h=(h<<g^255&s[w+2])&p,o=65535&l[h],u[w&a]=l[h],l[h]=w),A=v,b=x,v=2,0!==o&&A<k&&(w-o&65535)<=i-262&&(2!==C&&(v=ot(o)),v<=5&&(1===C||3===v&&w-x>4096)&&(v=2)),A>=3&&v<=A){r=w+_-3,n=$(w-1-b,A-3),_-=A-1,A-=2;do{++w<=r&&(h=(h<<g^255&s[w+2])&p,o=65535&l[h],u[w&a]=l[h],l[h]=w)}while(0!=--A);if(y=0,v=2,w++,n&&(rt(!1),0===t.avail_out))return 0}else if(0!==y){if((n=$(0,255&s[w-1]))&&rt(!1),w++,_--,0===t.avail_out)return 0}else y=1,w++,_--}return 0!==y&&(n=$(0,255&s[w-1]),y=0),rt(4===e),0===t.avail_out?4===e?2:0:4===e?3:1}(d)}if(2!==I&&3!==I||(e=666),0===I||2===I)return 0===t.avail_out&&(r=-1),0;if(1===I){if(1===d)J(2,3),Q(256,At.static_ltree),K(),1+F+10-z<9&&(J(2,3),Q(256,At.static_ltree),K()),F=7;else if(nt(0,0,!1),3===d)for(S=0;S<f;S++)l[S]=0;if(t.flush_pending(),0===t.avail_out)return r=-1,0}}return 4!==d?0:1}}function Tt(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}function Et(t){var e=new Tt,n=new Uint8Array(512),r=t?t.level:-1;void 0===r&&(r=-1),e.deflateInit(r),e.next_out=n,this.append=function(t,r){var i,o=[],a=0,s=0,c=0;if(t.length){e.next_in_index=0,e.next_in=t,e.avail_in=t.length;do{if(e.next_out_index=0,e.avail_out=512,0!==e.deflate(0))throw new Error("deflating: "+e.msg);e.next_out_index&&(512===e.next_out_index?o.push(new Uint8Array(n)):o.push(new Uint8Array(n.subarray(0,e.next_out_index)))),c+=e.next_out_index,r&&e.next_in_index>0&&e.next_in_index!==a&&(r(e.next_in_index),a=e.next_in_index)}while(e.avail_in>0||0===e.avail_out);return i=new Uint8Array(c),o.forEach(function(t){i.set(t,s),s+=t.length}),i}},this.flush=function(){var t,r,i=[],o=0,a=0;do{if(e.next_out_index=0,e.avail_out=512,1!==(t=e.deflate(4))&&0!==t)throw new Error("deflating: "+e.msg);512-e.avail_out>0&&i.push(new Uint8Array(n.subarray(0,e.next_out_index))),a+=e.next_out_index}while(e.avail_in>0||0===e.avail_out);return e.deflateEnd(),r=new Uint8Array(a),i.forEach(function(t){r.set(t,o),o+=t.length}),r
/**
* @license
* jsPDF filters PlugIn
* Copyright (c) 2014 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/}}Tt.prototype={deflateInit:function(t,e){return this.dstate=new It,e||(e=15),this.dstate.deflateInit(this,t,e)},deflate:function(t){return this.dstate?this.dstate.deflate(this,t):-2},deflateEnd:function(){if(!this.dstate)return-2;var t=this.dstate.deflateEnd();return this.dstate=null,t},deflateParams:function(t,e){return this.dstate?this.dstate.deflateParams(this,t,e):-2},deflateSetDictionary:function(t,e){return this.dstate?this.dstate.deflateSetDictionary(this,t,e):-2},read_buf:function(t,e,n){var r=this.avail_in;return r>n&&(r=n),0===r?0:(this.avail_in-=r,t.set(this.next_in.subarray(this.next_in_index,this.next_in_index+r),e),this.next_in_index+=r,this.total_in+=r,r)},flush_pending:function(){var t=this.dstate.pending;t>this.avail_out&&(t=this.avail_out),0!==t&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+t),this.next_out_index),this.next_out_index+=t,this.dstate.pending_out+=t,this.total_out+=t,this.avail_out-=t,this.dstate.pending-=t,0===this.dstate.pending&&(this.dstate.pending_out=0))}},function(t){var e=function(t){var e,n,r,i,o,a,s,c,u,l;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>r;r+=4)0!==(o=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(a=(o=((o=((o=((o=(o-(l=o%85))/85)-(u=o%85))/85)-(c=o%85))/85)-(s=o%85))/85)%85,n.push(a+33,s+33,c+33,u+33,l+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+"~>"},n=function(t){var e,n,r,i,o,a=String,s="length",c=255,u="charCodeAt",l="slice",h="replace";for(t[l](-2),t=t[l](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),r=[],i=0,o=(t+=e="uuuuu"[l](t[s]%5||5))[s];o>i;i+=5)n=52200625*(t[u](i)-33)+614125*(t[u](i+1)-33)+7225*(t[u](i+2)-33)+85*(t[u](i+3)-33)+(t[u](i+4)-33),r.push(c&n>>24,c&n>>16,c&n>>8,c&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(r,e[s]),a.fromCharCode.apply(a,r)},r=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},i=function(e){for(var n,r,i,o,a,s=[],c=e.length;c--;)s[c]=e.charCodeAt(c);return n=t.adler32cs.from(e),i=e=(r=new Et(6)).append(new Uint8Array(s)),o=r.flush(),(a=new Uint8Array(i.byteLength+o.byteLength)).set(new Uint8Array(i),0),a.set(new Uint8Array(o),i.byteLength),e=a,(s=new Uint8Array(e.byteLength+6)).set(new Uint8Array([120,156])),s.set(e,2),s.set(new Uint8Array([255&n,n>>8&255,n>>16&255,n>>24&255]),e.byteLength+2),s.reduce(function(t,e){return t+String.fromCharCode(e)},"")};t.processDataByFilters=function(t,o){var a=0,s=t||"",c=[];for("string"==typeof(o=o||[])&&(o=[o]),a=0;a<o.length;a+=1)switch(o[a]){case"ASCII85Decode":case"/ASCII85Decode":s=n(s),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=e(s),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=r(s),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map(function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)}).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=i(s),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[a]+'" is not implemented')}return{data:s,reverseChain:c.reverse().join(" ")}}}(O.API),
/**
* @license
* jsPDF fileloading PlugIn
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){t.loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(t,e,n){var r=new XMLHttpRequest,i=0,o=function(t){var e=t.length,n=[],r=String.fromCharCode;for(i=0;i<e;i+=1)n.push(r(255&t.charCodeAt(i)));return n.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){200===r.status?n(o(this.responseText)):n(void 0)}),r.send(null),e&&200===r.status)return o(r.responseText)}(t,e,n)}catch(t){}return r}(t,e,n)},t.loadImageFile=t.loadFile}(O.API),
/**
* @license
* Copyright (c) 2018 Erik Koopmans
* Released under the MIT License.
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){function e(){return(r.html2canvas?Promise.resolve(r.html2canvas):n.e(1).then(n.bind(null,164))).catch(function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))}).then(function(t){return t.default?t.default:t})}function i(){return(r.DOMPurify?Promise.resolve(r.DOMPurify):n.e(2).then(n.bind(null,165))).catch(function(t){return Promise.reject(new Error("Could not load dompurify: "+t))}).then(function(t){return t.default?t.default:t})}var o=function(t){var e=typeof t;return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},a=function(t,e){var n=document.createElement(t);for(var r in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[r]=e.style[r];return n},s=function(t,e){for(var n=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),r=t.firstChild;r;r=r.nextSibling)!0!==e&&1===r.nodeType&&"SCRIPT"===r.nodeName||n.appendChild(s(r,e));return 1===t.nodeType&&("CANVAS"===t.nodeName?(n.width=t.width,n.height=t.height,n.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(n.value=t.value),n.addEventListener("load",function(){n.scrollTop=t.scrollTop,n.scrollLeft=t.scrollLeft},!0)),n},c=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return(r=r.setProgress(1,t,1,[t])).set(e)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(t,e){return t.__proto__=e||c.prototype,t},c.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},c.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch(o(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(i).then(function(e){return this.set({src:a("div",{innerHTML:t,dompurify:e})})});case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}})},c.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},c.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var t={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},c.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then(function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},c.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then(function(t){var e=this.opt.jsPDF,n=Object.assign({async:!0,allowTaint:!0,scale:1,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);return delete n.onrendered,e.context2d.autoPaging=!0,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,n.windowHeight=n.windowHeight||0,n.windowHeight=0==n.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):n.windowHeight,t(this.prop.container,n)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t})},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},c.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},c.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(t,e)})},c.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}})},c.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},c.prototype.set=function(t){if("object"!==o(t))return this;var e=Object.keys(t||{}).map(function(e){if(e in c.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}},this);return this.then(function(){return this.thenList(e)})},c.prototype.get=function(t,e){return this.then(function(){var n=t in c.template.prop?this.prop[t]:this.opt[t];return e?e(n):n})},c.prototype.setMargin=function(t){return this.then(function(){switch(o(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t}).then(this.setPageSize)},c.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then(function(){(t=t||O.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t})},c.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},c.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,function(e){return n.updateProgress(null,t),e}).then(t,e).then(function(t){return n.updateProgress(1),t})})},c.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:c.convert(Object.assign({},this),Promise.prototype),i=n.call(r,t,e);return c.convert(i,this.__proto__)},c.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},c.prototype.thenList=function(t){var e=this;return t.forEach(function(t){e=e.thenCore(t)}),e},c.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return c.convert(e,this)},c.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},c.prototype.error=function(t){return this.then(function(){throw new Error(t)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,O.getPageSize=function(t,e,n){if("object"==typeof t){var r=t;t=r.orientation,e=r.unit||e,n=r.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var i,o=(""+n).toLowerCase(),a={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+e}var s,c=0,u=0;if(a.hasOwnProperty(o))c=a[o][1]/i,u=a[o][0]/i;else try{c=n[1],u=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",u>c&&(s=u,u=c,c=s);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",c>u&&(s=u,u=c,c=s)}return{width:u,height:c,unit:e,k:i,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this;var n=new c(e);return e.worker?n:n.from(t).doCallback()}}(O.API),O.API.addJS=function(t){return Ct=t,this.internal.events.subscribe("postPutResources",function(){kt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(kt+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Nt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ct+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==kt&&void 0!==Nt&&this.internal.out("/Names <</JavaScript "+kt+" 0 R>>")}),this
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/},function(t){var e;t.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=t.outline.render().split(/\r\n/),i=0;i<r.length;i++){var o=r[i],a=n.exec(o);if(null!=a){var s=a[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(i=0;i<c;i++){var l=t.internal.newObject();u.push(l);var h=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<u.length;i++)t.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var i=e.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),r>0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var a=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(O.API),
/**
* @license
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e=[192,193,194,195,196,197,198,199];O.API.processJPEG=function(t,n,r,i,o,a){var s,c=this.decode.DCT_DECODE,u=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=o||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var n,r=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,o={width:0,height:0,numcomponents:1},a=4;a<i;a+=2){if(a+=r,-1!==e.indexOf(t.charCodeAt(a+1))){n=256*t.charCodeAt(a+5)+t.charCodeAt(a+6),o={width:256*t.charCodeAt(a+7)+t.charCodeAt(a+8),height:n,numcomponents:t.charCodeAt(a+9)};break}r=256*t.charCodeAt(a+2)+t.charCodeAt(a+3)}return o}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}u={data:t,width:s.width,height:s.height,colorSpace:a,bitsPerComponent:8,filter:c,index:n,alias:r}}return u}}();
/**
* @license
* Extracted from pdf.js
* https://github.com/andreasgal/pdf.js
*
* Copyright (c) 2011 Mozilla Foundation
*
* Contributors: Andreas Gal <gal@mozilla.com>
* Chris G Jones <cjones@mozilla.com>
* Shaon Barman <shaon.barman@gmail.com>
* Vivien Nicolas <21@vingtetun.org>
* Justin D'Arcangelo <justindarc@gmail.com>
* Yury Delendik
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
var Ot,Dt,Rt,jt,Ft,Bt=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function(t){var e=this.buffer,n=e?e.byteLength:0;if(t<n)return e;for(var r=512;r<t;)r<<=1;for(var i=new Uint8Array(r),o=0;o<n;++o)i[o]=e[o];return this.buffer=i},getByte:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(t){var e=this.pos;if(t){this.ensureBuffer(e+t);for(var n=e+t;!this.eof&&this.bufferLength<n;)this.readBlock();var r=this.bufferLength;n>r&&(n=r)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}return this.pos=n,this.buffer.subarray(e,n)},lookChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(t,e,n){for(var r=t+e;this.bufferLength<=r&&!this.eof;)this.readBlock();return new Stream(this.buffer,t,e,n)},skip:function(t){t||(t=1),this.pos+=t},reset:function(){this.pos=0}},t}(),zt=("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==t&&t||Function('return typeof this === "object" && this.content')()||Function("return this")()).FlateStream=function(){if("undefined"!=typeof Uint32Array){var t=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),n=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),r=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],i=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return a.prototype=Object.create(Bt.prototype),a.prototype.getBits=function(t){for(var e,n=this.codeSize,r=this.codeBuf,i=this.bytes,a=this.bytesPos;n<t;)void 0===(e=i[a++])&&o("Bad encoding in flate stream"),r|=e<<n,n+=8;return e=r&(1<<t)-1,this.codeBuf=r>>t,this.codeSize=n-=t,this.bytesPos=a,e},a.prototype.getCode=function(t){for(var e=t[0],n=t[1],r=this.codeSize,i=this.codeBuf,a=this.bytes,s=this.bytesPos;r<n;){var c;void 0===(c=a[s++])&&o("Bad encoding in flate stream"),i|=c<<r,r+=8}var u=e[i&(1<<n)-1],l=u>>16,h=65535&u;return(0==r||r<l||0==l)&&o("Bad encoding in flate stream"),this.codeBuf=i>>l,this.codeSize=r-l,this.bytesPos=s,h},a.prototype.generateHuffmanTable=function(t){for(var e=t.length,n=0,r=0;r<e;++r)t[r]>n&&(n=t[r]);for(var i=1<<n,o=new Uint32Array(i),a=1,s=0,c=2;a<=n;++a,s<<=1,c<<=1)for(var u=0;u<e;++u)if(t[u]==a){var l=0,h=s;for(r=0;r<a;++r)l=l<<1|1&h,h>>=1;for(r=l;r<i;r+=c)o[r]=a<<16|u;++s}return[o,n]},a.prototype.readBlock=function(){function a(t,e,n,r,i){for(var o=t.getBits(n)+r;o-- >0;)e[p++]=i}var s=this.getBits(3);if(1&s&&(this.eof=!0),0!=(s>>=1)){var c,u;if(1==s)c=r,u=i;else if(2==s){for(var l=this.getBits(5)+257,h=this.getBits(5)+1,f=this.getBits(4)+4,d=Array(t.length),p=0;p<f;)d[t[p++]]=this.getBits(3);for(var g=this.generateHuffmanTable(d),m=0,v=(p=0,l+h),b=new Array(v);p<v;){var y=this.getCode(g);16==y?a(this,b,2,3,m):17==y?a(this,b,3,3,m=0):18==y?a(this,b,7,11,m=0):b[p++]=m=y}c=this.generateHuffmanTable(b.slice(0,l)),u=this.generateHuffmanTable(b.slice(l,v))}else o("Unknown block type in flate stream");for(var w=(T=this.buffer)?T.length:0,x=this.bufferLength;;){var _=this.getCode(c);if(_<256)x+1>=w&&(w=(T=this.ensureBuffer(x+1)).length),T[x++]=_;else{if(256==_)return void(this.bufferLength=x);var A=(_=e[_-=257])>>16;A>0&&(A=this.getBits(A)),m=(65535&_)+A,_=this.getCode(u),(A=(_=n[_])>>16)>0&&(A=this.getBits(A));var S=(65535&_)+A;x+m>=w&&(w=(T=this.ensureBuffer(x+m)).length);for(var k=0;k<m;++k,++x)T[x]=T[x-S]}}}else{var N,C=this.bytes,L=this.bytesPos;void 0===(N=C[L++])&&o("Bad block header in flate stream");var P=N;void 0===(N=C[L++])&&o("Bad block header in flate stream"),P|=N<<8,void 0===(N=C[L++])&&o("Bad block header in flate stream");var M=N;void 0===(N=C[L++])&&o("Bad block header in flate stream"),(M|=N<<8)!=(65535&~P)&&o("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var I=this.bufferLength,T=this.ensureBuffer(I+P),E=I+P;this.bufferLength=E;for(var O=I;O<E;++O){if(void 0===(N=C[L++])){this.eof=!0;break}T[O]=N}this.bytesPos=L}},a}function o(t){throw new Error(t)}function a(t){var e=0,n=t[e++],r=t[e++];-1!=n&&-1!=r||o("Invalid header in flate stream"),8!=(15&n)&&o("Unknown compression method in flate stream"),((n<<8)+r)%31!=0&&o("Bad FCHECK in flate stream"),32&r&&o("FDICT bit set in flate stream"),this.bytes=t,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,Bt.call(this)}}(),qt=function(){var t,e,n;function i(t){var e,n,r,i,o,a,s,c,u,l,h,f,d,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(e=this.readUInt32(),u=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),i=this.readUInt16()||100,a.delay=1e3*o/i,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,e-=4),t=(null!=a?a.data:void 0)||this.imgData,f=0;0<=e?f<e:f>e;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((l=r-this.transparency.indexed.length)>0)for(d=0;0<=l?d<l:d>l;0<=l?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(h=this.read(e)).indexOf(0),c=String.fromCharCode.apply(String,h.slice(0,s)),this.text[c]=String.fromCharCode.apply(String,h.slice(s+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),r=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function o(o,a,s,c){var u,l,h,f,d,p,g,m,v,b,y,w,x,_,A,S,k,N,C,L,P,M=Math.ceil((i.width-o)/s),I=Math.ceil((i.height-a)/c),T=i.width==M&&i.height==I;for(_=e*M,w=T?n:new Uint8Array(_*I),p=t.length,x=0,l=0;x<I&&r<p;){switch(t[r++]){case 0:for(f=k=0;k<_;f=k+=1)w[l++]=t[r++];break;case 1:for(f=N=0;N<_;f=N+=1)u=t[r++],d=f<e?0:w[l-e],w[l++]=(u+d)%256;break;case 2:for(f=C=0;C<_;f=C+=1)u=t[r++],h=(f-f%e)/e,A=x&&w[(x-1)*_+h*e+f%e],w[l++]=(A+u)%256;break;case 3:for(f=L=0;L<_;f=L+=1)u=t[r++],h=(f-f%e)/e,d=f<e?0:w[l-e],A=x&&w[(x-1)*_+h*e+f%e],w[l++]=(u+Math.floor((d+A)/2))%256;break;case 4:for(f=P=0;P<_;f=P+=1)u=t[r++],h=(f-f%e)/e,d=f<e?0:w[l-e],0===x?A=S=0:(A=w[(x-1)*_+h*e+f%e],S=h&&w[(x-1)*_+(h-1)*e+f%e]),g=d+A-S,m=Math.abs(g-d),b=Math.abs(g-A),y=Math.abs(g-S),v=m<=b&&m<=y?d:b<=y?A:S,w[l++]=(u+v)%256;break;default:throw new Error("Invalid filter algorithm: "+t[r-1])}if(!T){var E=((a+x*c)*i.width+o)*e,O=x*_;for(f=0;f<M;f+=1){for(var D=0;D<e;D+=1)n[E++]=w[O++];E+=(s-1)*e}}x++}}return t=(t=new zt(t)).getBytes(),1==i.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),n},i.prototype.decodePalette=function(){var t,e,n,r,i,o,a,s,c;for(n=this.palette,o=this.transparency.indexed||[],i=new Uint8Array((o.length||0)+n.length),r=0,t=0,e=a=0,s=n.length;a<s;e=a+=3)i[r++]=n[e],i[r++]=n[e+1],i[r++]=n[e+2],i[r++]=null!=(c=o[t++])?c:255;return i},i.prototype.copyToImageData=function(t,e){var n,r,i,o,a,s,c,u,l,h,f;if(r=this.colors,l=null,n=this.hasAlphaChannel,this.palette.length&&(l=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),u=(i=t.data||t).length,a=l||e,o=s=0,1===r)for(;o<u;)c=l?4*e[o/4]:s,h=a[c++],i[o++]=h,i[o++]=h,i[o++]=h,i[o++]=n?a[c++]:255,s=c;else for(;o<u;)c=l?4*e[o/4]:s,i[o++]=a[c++],i[o++]=a[c++],i[o++]=a[c++],i[o++]=n?a[c++]:255,s=c},i.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var o=function(){if("[object Window]"===Object.prototype.toString.call(r)){try{e=r.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return!1}return!0}return!1};return o(),t=function(t){var r;if(!0===o())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(e){var n,r,i,o,a,s,c,u;if(this.animation){for(u=[],r=a=0,s=(c=this.animation.frames).length;a<s;r=++a)n=c[r],i=e.createImageData(n.width,n.height),o=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(i,o),n.imageData=i,u.push(n.image=t(i));return u}},i.prototype.renderFrame=function(t,e){var n,r,i;return n=(r=this.animation.frames)[e],i=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},i.prototype.animate=function(t){var e,n,r,i,o,a,s=this;return n=0,a=this.animation,i=a.numFrames,r=a.frames,o=a.numPlays,(e=function(){var a,c;if(a=n++%i,c=r[a],s.renderFrame(t,a),i>1&&n/i<o)return s.animation._timeout=setTimeout(e,c.delay)})()},i.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},i.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},i}();
/**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function Ut(t,e,n,r){for(var i=t[e++],a=1<<i,s=a+1,c=s+1,u=i+1,l=(1<<u)-1,h=0,f=0,d=0,p=t[e++],g=new Int32Array(4096),m=null;;){for(;h<16&&0!==p;)f|=t[e++]<<h,h+=8,1===p?p=t[e++]:--p;if(h<u)break;var v=f&l;if(f>>=u,h-=u,v!==a){if(v===s)break;for(var b=v<c?v:m,y=0,w=b;w>a;)w=g[w]>>8,++y;var x=w;if(d+y+(b!==v?1:0)>r)return void o.log("Warning, gif stream longer than expected.");n[d++]=x;var _=d+=y;for(b!==v&&(n[d++]=x),w=b;y--;)w=g[w],n[--_]=255&w,w>>=8;null!==m&&c<4096&&(g[c++]=m<<8|x,c>=l+1&&u<12&&(++u,l=l<<1|1)),m=v}else c=s+1,l=(1<<(u=i+1))-1,m=null}return d!==r&&o.log("Warning, gif stream shorter than expected."),n}
/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function Vt(t){var e,n,r,i,o,a=Math.floor,s=new Array(64),c=new Array(64),u=new Array(64),l=new Array(64),h=new Array(65535),f=new Array(65535),d=new Array(64),p=new Array(64),g=[],m=0,v=7,b=new Array(64),y=new Array(64),w=new Array(64),x=new Array(256),_=new Array(2048),A=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],S=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],C=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],M=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],I=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function T(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function E(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(m|=1<<v),n--,--v<0&&(255==m?(O(255),O(0)):O(m),v=7,m=0)}function O(t){g.push(t)}function D(t){O(t>>8&255),O(255&t)}function R(t,e,n,r,i){for(var o,a=i[0],s=i[240],c=function(t,e){var n,r,i,o,a,s,c,u,l,h,f=0;for(l=0;l<8;++l){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],c=t[f+6];var p=n+(u=t[f+7]),g=n-u,m=r+c,v=r-c,b=i+s,y=i-s,w=o+a,x=o-a,_=p+w,A=p-w,S=m+b,k=m-b;t[f]=_+S,t[f+4]=_-S;var N=.707106781*(k+A);t[f+2]=A+N,t[f+6]=A-N;var C=.382683433*((_=x+y)-(k=v+g)),L=.5411961*_+C,P=1.306562965*k+C,M=.707106781*(S=y+v),I=g+M,T=g-M;t[f+5]=T+L,t[f+3]=T-L,t[f+1]=I+P,t[f+7]=I-P,f+=8}for(f=0,l=0;l<8;++l){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],c=t[f+48];var E=n+(u=t[f+56]),O=n-u,D=r+c,R=r-c,j=i+s,F=i-s,B=o+a,z=o-a,q=E+B,U=E-B,V=D+j,H=D-j;t[f]=q+V,t[f+32]=q-V;var G=.707106781*(H+U);t[f+16]=U+G,t[f+48]=U-G;var W=.382683433*((q=z+F)-(H=R+O)),Y=.5411961*q+W,Z=1.306562965*H+W,J=.707106781*(V=F+R),Q=O+J,X=O-J;t[f+40]=X+Y,t[f+24]=X-Y,t[f+8]=Q+Z,t[f+56]=Q-Z,f++}for(l=0;l<64;++l)h=t[l]*e[l],d[l]=h>0?h+.5|0:h-.5|0;return d}(t,e),u=0;u<64;++u)p[A[u]]=c[u];var l=p[0]-n;n=p[0],0==l?E(r[0]):(E(r[f[o=32767+l]]),E(h[o]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return E(a),n;for(var m,v=1;v<=g;){for(var b=v;0==p[v]&&v<=g;)++v;var y=v-b;if(y>=16){m=y>>4;for(var w=1;w<=m;++w)E(s);y&=15}o=32767+p[v],E(i[(y<<4)+f[o]]),E(h[o]),v++}return 63!=g&&E(a),n}function j(t){t=Math.min(Math.max(t,1),100),o!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((e[n]*t+50)/100);r=Math.min(Math.max(r,1),255),s[A[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var h=a((i[o]*t+50)/100);h=Math.min(Math.max(h,1),255),c[A[o]]=h}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var g=0;g<8;g++)u[d]=1/(s[A[d]]*f[p]*f[g]*8),l[d]=1/(c[A[d]]*f[p]*f[g]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t)}this.encode=function(t,o){o&&j(o),g=new Array,m=0,v=7,D(65496),D(65504),D(16),O(74),O(70),O(73),O(70),O(0),O(1),O(1),O(0),D(1),D(1),O(0),O(0),function(){D(65499),D(132),O(0);for(var t=0;t<64;t++)O(s[t]);O(1);for(var e=0;e<64;e++)O(c[e])}(),function(t,e){D(65472),D(17),O(8),D(e),D(t),O(3),O(1),O(17),O(0),O(2),O(17),O(1),O(3),O(17),O(1)}(t.width,t.height),function(){D(65476),D(418),O(0);for(var t=0;t<16;t++)O(S[t+1]);for(var e=0;e<=11;e++)O(k[e]);O(16);for(var n=0;n<16;n++)O(N[n+1]);for(var r=0;r<=161;r++)O(C[r]);O(1);for(var i=0;i<16;i++)O(L[i+1]);for(var o=0;o<=11;o++)O(P[o]);O(17);for(var a=0;a<16;a++)O(M[a+1]);for(var s=0;s<=161;s++)O(I[s])}(),D(65498),D(12),O(3),O(1),O(0),O(2),O(17),O(3),O(17),O(0),O(63),O(0);var a=0,h=0,f=0;m=0,v=7,this.encode.displayName="_encode_";for(var d,p,x,A,T,F,B,z,q,U=t.data,V=t.width,H=t.height,G=4*V,W=0;W<H;){for(d=0;d<G;){for(T=G*W+d,B=-1,z=0,q=0;q<64;q++)F=T+(z=q>>3)*G+(B=4*(7&q)),W+z>=H&&(F-=G*(W+1+z-H)),d+B>=G&&(F-=d+B-G+4),p=U[F++],x=U[F++],A=U[F++],b[q]=(_[p]+_[x+256>>0]+_[A+512>>0]>>16)-128,y[q]=(_[p+768>>0]+_[x+1024>>0]+_[A+1280>>0]>>16)-128,w[q]=(_[p+1280>>0]+_[x+1536>>0]+_[A+1792>>0]>>16)-128;a=R(b,u,a,e,r),h=R(y,l,h,n,i),f=R(w,l,f,n,i),d+=32}W+=8}if(v>=0){var Y=[];Y[1]=v+1,Y[0]=(1<<v+1)-1,E(Y)}return D(65497),new Uint8Array(g)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=T(S,k),n=T(L,P),r=T(N,C),i=T(M,I),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)f[32767+r]=n,h[32767+r]=[],h[32767+r][1]=n,h[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)f[32767+i]=n,h[32767+i]=[],h[32767+i][1]=n,h[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)_[t]=19595*t,_[t+256>>0]=38470*t,_[t+512>>0]=7471*t+32768,_[t+768>>0]=-11059*t,_[t+1024>>0]=-21709*t,_[t+1280>>0]=32768*t+8421375,_[t+1536>>0]=-27439*t,_[t+1792>>0]=-5329*t}(),j(t)}
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function Ht(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Gt(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var r=0;4>r;r++)if(t[e+r]!=n.charCodeAt(r))return!0;return!1}function r(t,e,n,r,i){for(var o=0;o<i;o++)t[e+o]=n[r+o]}function i(t,e,n,r){for(var i=0;i<r;i++)t[e+i]=n}function o(t){return new Int32Array(t)}function a(t,e){for(var n=[],r=0;r<t;r++)n.push(new e);return n}function s(t,e){var n=[];return function t(n,r,i){for(var o=i[r],a=0;a<o&&(n.push(i.length>r+1?[]:new e),!(i.length<r+1));a++)t(n[a],r+1,i)}(n,0,t),n}function c(t,e){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(t[e++]);return n}function u(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function l(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new(Gt=function(){var t=this;function c(t,e){for(var n=1<<e-1>>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function u(t,n,r,i,o){e(!(i%r));do{t[n+(i-=r)]=o}while(0<i)}function l(t,n,r,i,a){if(e(2328>=a),512>=a)var s=o(512);else if(null==(s=o(a)))return 0;return function(t,n,r,i,a,s){var l,f,d=n,p=1<<r,g=o(16),m=o(16);for(e(0!=a),e(null!=i),e(null!=t),e(0<r),f=0;f<a;++f){if(15<i[f])return 0;++g[i[f]]}if(g[0]==a)return 0;for(m[1]=0,l=1;15>l;++l){if(g[l]>1<<l)return 0;m[l+1]=m[l]+g[l]}for(f=0;f<a;++f)l=i[f],0<i[f]&&(s[m[l]++]=f);if(1==m[15])return(i=new h).g=0,i.value=s[0],u(t,d,1,p,i),p;var v,b=-1,y=p-1,w=0,x=1,_=1,A=1<<r;for(f=0,l=1,a=2;l<=r;++l,a<<=1){if(x+=_<<=1,0>(_-=g[l]))return 0;for(;0<g[l];--g[l])(i=new h).g=l,i.value=s[f++],u(t,d+w,a,A,i),w=c(w,l)}for(l=r+1,a=2;15>=l;++l,a<<=1){if(x+=_<<=1,0>(_-=g[l]))return 0;for(;0<g[l];--g[l]){if(i=new h,(w&y)!=b){for(d+=A,v=1<<(b=l)-r;15>b&&!(0>=(v-=g[b]));)++b,v<<=1;p+=A=1<<(v=b-r),t[n+(b=w&y)].g=v+r,t[n+b].value=d-n-b}i.g=l-r,i.value=s[f++],u(t,d+(w>>r),a,A,i),w=c(w,l)}}return x!=2*m[15]-1?0:p}(t,n,r,i,a,s)}function h(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=a(5,h),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Sn,f)}function p(t,n,r,i){e(null!=t),e(null!=n),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=r,t.Jd=n,t.Yc=r+i,t.Zc=4<=i?r+i-4+1:r,N(t)}function g(t,e){for(var n=0;0<e--;)n|=L(t,128)<<e;return n}function m(t,e){var n=g(t,e);return C(t)?-n:n}function v(t,n,r,i){var o,a=0;for(e(null!=t),e(null!=n),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),o=0;o<i;++o)a+=n[r+o]<<8*o;t.Ra=a,t.bb=i,t.oa=n,t.pa=r}function b(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<Cn-8>>>0,++t.bb,t.u-=8;A(t)&&(t.h=1,t.u=0)}function y(t,n){if(e(0<=n),!t.h&&n<=Nn){var r=_(t)&kn[n];return t.u+=n,b(t),r}return t.h=1,t.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _(t){return t.Ra>>>(t.u&Cn-1)>>>0}function A(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Cn}function S(t,e){t.u=e,t.h=A(t)}function k(t){t.u>=Ln&&(e(t.u>=Ln),b(t))}function N(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function C(t){return g(t,1)}function L(t,e){var n=t.Ca;0>t.b&&N(t);var r=t.b,i=n*e>>>8,o=(t.I>>>r>i)+0;for(o?(n-=i,t.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+Pn[r],t.b-=r,t.Ca=(n<<r)-1,o}function P(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255}function M(t,e){return t[e+0]<<0|t[e+1]<<8}function I(t,e){return M(t,e)|t[e+2]<<16}function T(t,e){return M(t,e)|M(t,e+2)<<16}function E(t,n){var r=1<<n;return e(null!=t),e(0<n),t.X=o(r),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function O(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),r(n.X,0,t.X,0,1<<n.Xa)}function D(){this.X=[],this.Xa=this.Mb=0}function R(t,n,r,i){e(null!=r),e(null!=i);var o=r[0],a=i[0];return 0==o&&(o=(t*a+n/2)/n),0==a&&(a=(n*o+t/2)/t),0>=o||0>=a?0:(r[0]=o,i[0]=a,1)}function j(t,e){return t+(1<<e)-1>>>e}function F(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function B(e,n){t[n]=function(n,r,i,o,a,s,c){var u;for(u=0;u<a;++u){var l=t[e](s[c+u-1],i,o+u);s[c+u]=F(n[r+u],l)}}}function z(){this.ud=this.hd=this.jd=0}function q(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function U(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function V(t,e){return U(t+(t-e+.5>>1))}function H(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function G(t,e,n,r,i,o,a){for(r=o[a-1],n=0;n<i;++n)o[a+n]=r=F(t[e+n],r)}function W(t,e,n,r,i){var o;for(o=0;o<n;++o){var a=t[e+o],s=a>>8&255,c=16711935&(c=(c=16711935&a)+((s<<16)+s));r[i+o]=(4278255360&a)+c>>>0}}function Y(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function Z(t,e,n,r,i,o){var a;for(a=0;a<r;++a){var s=e[n+a],c=s>>>8,u=s,l=255&(l=(l=s>>>16)+((t.jd<<24>>24)*(c<<24>>24)>>>5));u=255&(u=(u+=(t.hd<<24>>24)*(c<<24>>24)>>>5)+((t.ud<<24>>24)*(l<<24>>24)>>>5)),i[o+a]=(4278255360&s)+(l<<16)+u}}function J(e,n,r,i,o){t[n]=function(t,e,n,r,a,s,c,u,l){for(r=c;r<u;++r)for(c=0;c<l;++c)a[s++]=o(n[i(t[e++])])},t[e]=function(e,n,a,s,c,u,l){var h=8>>e.b,f=e.Ea,d=e.K[0],p=e.w;if(8>h)for(e=(1<<e.b)-1,p=(1<<h)-1;n<a;++n){var g,m=0;for(g=0;g<f;++g)g&e||(m=i(s[c++])),u[l++]=o(d[m&p]),m>>=h}else t["VP8LMapColor"+r](s,c,d,p,u,l,n,a,f)}}function Q(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255}}function X(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255,r[i++]=o>>24&255}}function K(t,e,n,r,i){for(n=e+n;e<n;){var o=(a=t[e++])>>16&240|a>>12&15,a=a>>0&240|a>>28&15;r[i++]=o,r[i++]=a}}function $(t,e,n,r,i){for(n=e+n;e<n;){var o=(a=t[e++])>>16&248|a>>13&7,a=a>>5&224|a>>3&31;r[i++]=o,r[i++]=a}}function tt(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=o>>0&255,r[i++]=o>>8&255,r[i++]=o>>16&255}}function et(t,e,n,i,o,a){if(0==a)for(n=e+n;e<n;)P(i,((a=t[e++])[0]>>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),o+=32;else r(i,o,t,e,n)}function nt(e,n){t[n][0]=t[e+"0"],t[n][1]=t[e+"1"],t[n][2]=t[e+"2"],t[n][3]=t[e+"3"],t[n][4]=t[e+"4"],t[n][5]=t[e+"5"],t[n][6]=t[e+"6"],t[n][7]=t[e+"7"],t[n][8]=t[e+"8"],t[n][9]=t[e+"9"],t[n][10]=t[e+"10"],t[n][11]=t[e+"11"],t[n][12]=t[e+"12"],t[n][13]=t[e+"13"],t[n][14]=t[e+"0"],t[n][15]=t[e+"0"]}function rt(t){return t==Lr||t==Pr||t==Mr||t==Ir}function it(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new function(){this.eb=[],this.size=this.A=this.fb=0},this.f.kb=new function(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0},this.sd=null}function ot(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function at(t,e){var n=t.T,i=e.ba.f.RGBA,o=i.eb,a=i.fb+t.ka*i.A,s=ni[e.ba.S],c=t.y,u=t.O,l=t.f,h=t.N,f=t.ea,d=t.W,p=e.cc,g=e.dc,m=e.Mc,v=e.Nc,b=t.ka,y=t.ka+t.T,w=t.U,x=w+1>>1;for(0==b?s(c,u,null,null,l,h,f,d,l,h,f,d,o,a,null,null,w):(s(e.ec,e.fc,c,u,p,g,m,v,l,h,f,d,o,a-i.A,o,a,w),++n);b+2<y;b+=2)p=l,g=h,m=f,v=d,h+=t.Rc,d+=t.Rc,a+=2*i.A,s(c,(u+=2*t.fa)-t.fa,c,u,p,g,m,v,l,h,f,d,o,a-i.A,o,a,w);return u+=t.fa,t.j+y<t.o?(r(e.ec,e.fc,c,u,w),r(e.cc,e.dc,l,h,x),r(e.Mc,e.Nc,f,d,x),n--):1&y||s(c,u,null,null,l,h,f,d,l,h,f,d,o,a+i.A,null,null,w),n}function st(t,n,r){var i=t.F,o=[t.J];if(null!=i){var a=t.U,s=n.ba.S,c=s==kr||s==Mr;n=n.ba.f.RGBA;var u=[0],l=t.ka;u[0]=t.T,t.Kb&&(0==l?--u[0]:(--l,o[0]-=t.width),t.j+t.ka+t.T==t.o&&(u[0]=t.o-t.j-l));var h=n.eb;l=n.fb+l*n.A,t=lr(i,o[0],t.width,a,u,h,l+(c?0:3),n.A),e(r==u),t&&rt(s)&&cr(h,l,c,a,u,n.A)}return 0}function ct(t){var e=t.ma,n=e.ba.S,r=11>n,i=n==_r||n==Sr||n==kr||n==Nr||12==n||rt(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!xn(e.Oa,t,i?11:12))return 0;if(i&&rt(n)&&rn(),t.da)alert("todo:use_scaling");else{if(r){if(e.Ib=ot,t.Kb){if(n=t.U+1>>1,e.memory=o(t.U+2*n),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+n,e.Ib=at,rn()}}else alert("todo:EmitYUV");i&&(e.Jb=st,r&&en())}if(r&&!mi){for(t=0;256>t;++t)vi[t]=89858*(t-128)+hi>>li,wi[t]=-22014*(t-128)+hi,yi[t]=-45773*(t-128),bi[t]=113618*(t-128)+hi>>li;for(t=fi;t<di;++t)e=76283*(t-16)+hi>>li,xi[t-fi]=Dt(e,255),_i[t-fi]=Dt(e+8>>4,15);mi=1}return 1}function ut(t){var n=t.ma,r=t.U,i=t.T;return e(!(1&t.ka)),0>=r||0>=i?0:(r=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,r),n.Dc+=r,1)}function lt(t){t.ma.memory=null}function ht(t,e,n,r){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,n[0]=y(t,14)+1,r[0]=y(t,1),0!=y(t,3)?0:!t.h)}function ft(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+y(e,n)+1}function dt(t,e){return 120<e?e-120:1<=(n=((n=jr[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function pt(t,e,n){var r=_(n),i=t[e+=255&r].g-8;return 0<i&&(S(n,n.u+8),r=_(n),e+=t[e].value,e+=r&(1<<i)-1),S(n,n.u+t[e].g),t[e].value}function gt(t,n,r){return r.g+=t.g,r.value+=t.value<<n>>>0,e(8>=r.g),t.g}function mt(t,n,r){var i=t.xc;return e((n=0==i?0:t.vc[t.md*(r>>i)+(n>>i)])<t.Wb),t.Ya[n]}function vt(t,n,i,o){var a=t.ab,s=t.c*n,c=t.C;n=c+n;var u=i,l=o;for(o=t.Ta,i=t.Ua;0<a--;){var h=t.gc[a],f=c,d=n,p=u,g=l,m=(l=o,u=i,h.Ea);switch(e(f<d),e(d<=h.nc),h.hc){case 2:Tn(p,g,(d-f)*m,l,u);break;case 0:var v=f,b=d,y=l,w=u,x=(N=h).Ea;0==v&&(Mn(p,g,null,null,1,y,w),G(p,g+1,0,0,x-1,y,w+1),g+=x,w+=x,++v);for(var _=1<<N.b,A=_-1,S=j(x,N.b),k=N.K,N=N.w+(v>>N.b)*S;v<b;){var C=k,L=N,P=1;for(In(p,g,y,w-x,1,y,w);P<x;){var M=(P&~A)+_;M>x&&(M=x),(0,jn[C[L++]>>8&15])(p,g+ +P,y,w+P-x,M-P,y,w+P),P=M}g+=x,w+=x,++v&A||(N+=S)}d!=h.nc&&r(l,u-m,l,u+(d-f-1)*m,m);break;case 1:for(m=p,b=g,x=(p=h.Ea)-(w=p&~(y=(g=1<<h.b)-1)),v=j(p,h.b),_=h.K,h=h.w+(f>>h.b)*v;f<d;){for(A=_,S=h,k=new z,N=b+w,C=b+p;b<N;)Y(A[S++],k),Fn(k,m,b,g,l,u),b+=g,u+=g;b<C&&(Y(A[S++],k),Fn(k,m,b,x,l,u),b+=x,u+=x),++f&y||(h+=v)}break;case 3:if(p==l&&g==u&&0<h.b){for(b=l,p=m=u+(d-f)*m-(w=(d-f)*j(h.Ea,h.b)),g=l,y=u,v=[],w=(x=w)-1;0<=w;--w)v[w]=g[y+w];for(w=x-1;0<=w;--w)b[p+w]=v[w];En(h,f,d,l,m,l,u)}else En(h,f,d,p,g,l,u)}u=o,l=i}l!=i&&r(o,i,u,l,s)}function bt(t,n){var r=t.V,i=t.Ba+t.c*t.C,o=n-t.C;if(e(n<=t.l.o),e(16>=o),0<o){var a=t.l,s=t.Ta,c=t.Ua,u=a.width;if(vt(t,o,r,i),o=c=[c],e((r=t.C)<(i=n)),e(a.v<a.va),i>a.o&&(i=a.o),r<a.j){var l=a.j-r;r=a.j,o[0]+=l*u}if(r>=i?r=0:(o[0]+=4*a.v,a.ka=r-a.j,a.U=a.va-a.v,a.T=i-r,r=1),r){if(c=c[0],11>(r=t.ca).S){var h=r.f.RGBA,f=(i=r.S,o=a.U,a=a.T,l=h.eb,h.A),d=a;for(h=h.fb+t.Ma*h.A;0<d--;){var p=s,g=c,m=o,v=l,b=h;switch(i){case xr:Bn(p,g,m,v,b);break;case _r:zn(p,g,m,v,b);break;case Lr:zn(p,g,m,v,b),cr(v,b,0,m,1,0);break;case Ar:Vn(p,g,m,v,b);break;case Sr:et(p,g,m,v,b,1);break;case Pr:et(p,g,m,v,b,1),cr(v,b,0,m,1,0);break;case kr:et(p,g,m,v,b,0);break;case Mr:et(p,g,m,v,b,0),cr(v,b,1,m,1,0);break;case Nr:qn(p,g,m,v,b);break;case Ir:qn(p,g,m,v,b),ur(v,b,m,1,0);break;case Cr:Un(p,g,m,v,b);break;default:e(0)}c+=u,h+=f}t.Ma+=a}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=r.height)}}t.C=n,e(t.C<=t.i)}function yt(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,r=t.Ya[e].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function wt(t,n,r,i,o,a){if(0!=t.Z){var s=t.qd,c=t.rd;for(e(null!=ei[t.Z]);n<r;++n)ei[t.Z](s,c,i,o,i,o,a),s=i,c=o,o+=a;t.qd=s,t.rd=c}}function xt(t,n){var r=t.l.ma,i=0==r.Z||1==r.Z?t.l.j:t.C;if(i=t.C<i?i:t.C,e(n<=t.l.o),n>i){var o=t.l.width,a=r.ca,s=r.tb+o*i,c=t.V,u=t.Ba+t.c*i,l=t.gc;e(1==t.ab),e(3==l[0].hc),Dn(l[0],i,n,c,u,a,s),wt(r,i,n,a,s,o)}t.C=t.Ma=n}function _t(t,n,r,i,o,a,s){var c=t.$/i,u=t.$%i,l=t.m,h=t.s,f=r+t.$,d=f;o=r+i*o;var p=r+i*a,g=280+h.ua,m=t.Pb?c:16777216,v=0<h.ua?h.Wa:null,b=h.wc,y=f<p?mt(h,u,c):null;e(t.C<a),e(p<=o);var w=!1;t:for(;;){for(;w||f<p;){var x=0;if(c>=m){var N=f-r;e((m=t).Pb),m.wd=m.m,m.xd=N,0<m.s.ua&&O(m.s.Wa,m.s.vb),m=c+Br}if(u&b||(y=mt(h,u,c)),e(null!=y),y.Qb&&(n[f]=y.qb,w=!0),!w)if(k(l),y.jc){x=l,N=n;var C=f,L=y.pd[_(x)&Sn-1];e(y.jc),256>L.g?(S(x,x.u+L.g),N[C]=L.value,x=0):(S(x,x.u+L.g-256),e(256<=L.value),x=L.value),0==x&&(w=!0)}else x=pt(y.G[0],y.H[0],l);if(l.h)break;if(w||256>x){if(!w)if(y.nd)n[f]=(y.qb|x<<8)>>>0;else{if(k(l),w=pt(y.G[1],y.H[1],l),k(l),N=pt(y.G[2],y.H[2],l),C=pt(y.G[3],y.H[3],l),l.h)break;n[f]=(C<<24|w<<16|x<<8|N)>>>0}if(w=!1,++f,++u>=i&&(u=0,++c,null!=s&&c<=a&&!(c%16)&&s(t,c),null!=v))for(;d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else if(280>x){if(x=ft(x-256,l),N=pt(y.G[4],y.H[4],l),k(l),N=dt(i,N=ft(N,l)),l.h)break;if(f-r<N||o-f<x)break t;for(C=0;C<x;++C)n[f+C]=n[f+C-N];for(f+=x,u+=x;u>=i;)u-=i,++c,null!=s&&c<=a&&!(c%16)&&s(t,c);if(e(f<=o),u&b&&(y=mt(h,u,c)),null!=v)for(;d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else{if(!(x<g))break t;for(w=x-280,e(null!=v);d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x;x=f,e(!(w>>>(N=v).Xa)),n[x]=N.X[w],w=!0}w||e(l.h==A(l))}if(t.Pb&&l.h&&f<o)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&O(t.s.vb,t.s.Wa);else{if(l.h)break t;null!=s&&s(t,c>a?a:c),t.a=0,t.$=f-r}return 1}return t.a=3,0}function At(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function St(){var e=new function(){this.xb=this.a=0,this.l=new Rt,this.ca=new it,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new function(){this.ua=0,this.Wa=new D,this.vb=new D,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new h},this.ab=0,this.gc=a(4,We),this.Oc=0};return null==e?null:(e.a=0,e.xb=ti,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),Tn=W,Fn=Z,Bn=Q,zn=X,qn=K,Un=$,Vn=tt,t.VP8LMapColor32b=On,t.VP8LMapColor8b=Rn,e)}function kt(t,n,r,s,c){var u=1,f=[t],p=[n],g=s.m,m=s.s,v=null,b=0;t:for(;;){if(r)for(;u&&y(g,1);){var w=f,x=p,A=s,N=1,C=A.m,L=A.gc[A.ab],P=y(C,2);if(A.Oc&1<<P)u=0;else{switch(A.Oc|=1<<P,L.hc=P,L.Ea=w[0],L.nc=x[0],L.K=[null],++A.ab,e(4>=A.ab),P){case 0:case 1:L.b=y(C,3)+2,N=kt(j(L.Ea,L.b),j(L.nc,L.b),0,A,L.K),L.K=L.K[0];break;case 3:var M,I=y(C,8)+1,T=16<I?0:4<I?1:2<I?2:3;if(w[0]=j(L.Ea,T),L.b=T,M=N=kt(I,1,0,A,L.K)){var O,D=I,R=L,B=1<<(8>>R.b),z=o(B);if(null==z)M=0;else{var q=R.K[0],U=R.w;for(z[0]=R.K[0][0],O=1;O<1*D;++O)z[O]=F(q[U+O],z[O-1]);for(;O<4*B;++O)z[O]=0;R.K[0]=null,R.K[0]=z,M=1}}N=M;break;case 2:break;default:e(0)}u=N}}if(f=f[0],p=p[0],u&&y(g,1)&&!(u=1<=(b=y(g,4))&&11>=b)){s.a=3;break t}var V;if(V=u)e:{var H,G,W,Y=s,Z=f,J=p,Q=b,X=r,K=Y.m,$=Y.s,tt=[null],et=1,nt=0,rt=Fr[Q];n:for(;;){if(X&&y(K,1)){var it=y(K,3)+2,ot=j(Z,it),at=j(J,it),st=ot*at;if(!kt(ot,at,0,Y,tt))break n;for(tt=tt[0],$.xc=it,H=0;H<st;++H){var ct=tt[H]>>8&65535;tt[H]=ct,ct>=et&&(et=ct+1)}}if(K.h)break n;for(G=0;5>G;++G){var ut=Or[G];!G&&0<Q&&(ut+=1<<Q),nt<ut&&(nt=ut)}var lt=a(et*rt,h),ht=et,ft=a(ht,d);if(null==ft)var dt=null;else e(65536>=ht),dt=ft;var pt=o(nt);if(null==dt||null==pt||null==lt){Y.a=1;break n}var mt=lt;for(H=W=0;H<et;++H){var vt=dt[H],bt=vt.G,yt=vt.H,wt=0,xt=1,St=0;for(G=0;5>G;++G){ut=Or[G],bt[G]=mt,yt[G]=W,!G&&0<Q&&(ut+=1<<Q);r:{var Nt,Ct=ut,Lt=Y,Pt=pt,Mt=mt,It=W,Tt=0,Et=Lt.m,Ot=y(Et,1);if(i(Pt,0,0,Ct),Ot){var Dt=y(Et,1)+1,Rt=y(Et,0==y(Et,1)?1:8);Pt[Rt]=1,2==Dt&&(Pt[Rt=y(Et,8)]=1);var jt=1}else{var Ft=o(19),Bt=y(Et,4)+4;if(19<Bt){Lt.a=3;var zt=0;break r}for(Nt=0;Nt<Bt;++Nt)Ft[Rr[Nt]]=y(Et,3);var qt=void 0,Ut=void 0,Vt=Lt,Ht=Ft,Gt=Ct,Wt=Pt,Yt=0,Zt=Vt.m,Jt=8,Qt=a(128,h);i:for(;l(Qt,0,7,Ht,19);){if(y(Zt,1)){if((qt=2+y(Zt,2+2*y(Zt,3)))>Gt)break i}else qt=Gt;for(Ut=0;Ut<Gt&&qt--;){k(Zt);var Xt=Qt[0+(127&_(Zt))];S(Zt,Zt.u+Xt.g);var Kt=Xt.value;if(16>Kt)Wt[Ut++]=Kt,0!=Kt&&(Jt=Kt);else{var $t=16==Kt,te=Kt-16,ee=Er[te],ne=y(Zt,Tr[te])+ee;if(Ut+ne>Gt)break i;for(var re=$t?Jt:0;0<ne--;)Wt[Ut++]=re}}Yt=1;break i}Yt||(Vt.a=3),jt=Yt}(jt=jt&&!Et.h)&&(Tt=l(Mt,It,8,Pt,Ct)),jt&&0!=Tt?zt=Tt:(Lt.a=3,zt=0)}if(0==zt)break n;if(xt&&1==Dr[G]&&(xt=0==mt[W].g),wt+=mt[W].g,W+=zt,3>=G){var ie,oe=pt[0];for(ie=1;ie<ut;++ie)pt[ie]>oe&&(oe=pt[ie]);St+=oe}}if(vt.nd=xt,vt.Qb=0,xt&&(vt.qb=(bt[3][yt[3]+0].value<<24|bt[1][yt[1]+0].value<<16|bt[2][yt[2]+0].value)>>>0,0==wt&&256>bt[0][yt[0]+0].value&&(vt.Qb=1,vt.qb+=bt[0][yt[0]+0].value<<8)),vt.jc=!vt.Qb&&6>St,vt.jc){var ae,se=vt;for(ae=0;ae<Sn;++ae){var ce=ae,ue=se.pd[ce],le=se.G[0][se.H[0]+ce];256<=le.value?(ue.g=le.g+256,ue.value=le.value):(ue.g=0,ue.value=0,ce>>=gt(le,8,ue),ce>>=gt(se.G[1][se.H[1]+ce],16,ue),ce>>=gt(se.G[2][se.H[2]+ce],0,ue),gt(se.G[3][se.H[3]+ce],24,ue))}}}$.vc=tt,$.Wb=et,$.Ya=dt,$.yc=lt,V=1;break e}V=0}if(!(u=V)){s.a=3;break t}if(0<b){if(m.ua=1<<b,!E(m.Wa,b)){s.a=1,u=0;break t}}else m.ua=0;var he=s,fe=f,de=p,pe=he.s,ge=pe.xc;if(he.c=fe,he.i=de,pe.md=j(fe,ge),pe.wc=0==ge?-1:(1<<ge)-1,r){s.xb=$r;break t}if(null==(v=o(f*p))){s.a=1,u=0;break t}u=(u=_t(s,v,0,f,p,p,null))&&!g.h;break t}return u?(null!=c?c[0]=v:(e(null==v),e(r)),s.$=0,r||At(m)):At(m),u}function Nt(t,n){var r=t.c*t.i,i=r+n+16*n;return e(t.c<=n),t.V=o(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+r+n,1)}function Ct(t,n){var r=t.C,i=n-r,o=t.V,a=t.Ba+t.c*r;for(e(n<=t.l.o);0<i;){var s=16<i?16:i,c=t.l.ma,u=t.l.width,l=u*s,h=c.ca,f=c.tb+u*r,d=t.Ta,p=t.Ua;vt(t,s,o,a),hr(d,p,h,f,l),wt(c,r,r+s,h,f,u),i-=s,o+=s*t.c,r+=s}e(r==n),t.C=t.Ma=n}function Lt(){var t;this.Yb=(function t(e,n,r){for(var i=r[n],o=0;o<i&&(e.push(r.length>n+1?[]:0),!(r.length<n+1));o++)t(e[o],n+1,r)}(t=[],0,[3,11]),t)}function Pt(){this.ld=this.La=this.dd=this.tc=0}function Mt(){this.Na=this.la=0}function It(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Tt(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Et(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Ot(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new function(){this.ub=this.yd=this.td=this.Rb=0},this.Kc=new function(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0},this.ed=new function(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)},this.Qa=new function(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)},this.Ic=this.$c=this.Aa=0,this.D=new function(){this.uc=this.M=this.Nb=0,this.wa=Array(new Pt),this.Y=0,this.ya=Array(new Tt),this.aa=0,this.l=new Rt},this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,w),this.ia=0,this.pb=a(4,It),this.Pa=new function(){this.jb=o(3),this.Wc=s([4,8],Lt),this.Xc=s([4,17],Lt)},this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Et),this.Hd=0,this.rb=Array(new Mt),this.sb=0,this.wa=Array(new Pt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Tt),this.L=this.aa=0,this.gd=s([4,2],Pt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Dt(t,e){return 0>t?0:t>e?e:t}function Rt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function jt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Ft(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Bt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return jt(t,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,o=n.w,a=n.ha;if(4>a)return jt(t,7,"Truncated header.");var s=r[o+0]|r[o+1]<<8|r[o+2]<<16,c=t.Od;if(c.Rb=!(1&s),c.td=s>>1&7,c.yd=s>>4&1,c.ub=s>>5,3<c.td)return jt(t,3,"Incorrect keyframe parameters.");if(!c.yd)return jt(t,4,"Frame not displayable.");o+=3,a-=3;var u=t.Kc;if(c.Rb){if(7>a)return jt(t,7,"cannot parse picture header");if(!Ft(r,o,a))return jt(t,3,"Bad code word");u.c=16383&(r[o+4]<<8|r[o+3]),u.Td=r[o+4]>>6,u.i=16383&(r[o+6]<<8|r[o+5]),u.Ud=r[o+6]>>6,o+=7,a-=7,t.za=u.c+15>>4,t.Ub=u.i+15>>4,n.width=u.c,n.height=u.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(c.ub>a)return jt(t,7,"bad partition length");p(s=t.m,r,o,c.ub),o+=c.ub,a-=c.ub,c.Rb&&(u.Ld=C(s),u.Kd=C(s)),u=t.Qa;var l,h=t.Pa;if(e(null!=s),e(null!=u),u.Cb=C(s),u.Cb){if(u.Bb=C(s),C(s)){for(u.Fb=C(s),l=0;4>l;++l)u.Zb[l]=C(s)?m(s,7):0;for(l=0;4>l;++l)u.Lb[l]=C(s)?m(s,6):0}if(u.Bb)for(l=0;3>l;++l)h.jb[l]=C(s)?g(s,8):255}else u.Bb=0;if(s.Ka)return jt(t,3,"cannot parse segment header");if((u=t.ed).zd=C(s),u.Tb=g(s,6),u.wb=g(s,3),u.Pc=C(s),u.Pc&&C(s)){for(h=0;4>h;++h)C(s)&&(u.vd[h]=m(s,6));for(h=0;4>h;++h)C(s)&&(u.od[h]=m(s,6))}if(t.L=0==u.Tb?0:u.zd?1:2,s.Ka)return jt(t,3,"cannot parse filter header");var f=a;if(a=l=o,o=l+f,u=f,t.Xb=(1<<g(t.m,2))-1,f<3*(h=t.Xb))r=7;else{for(l+=3*h,u-=3*h,f=0;f<h;++f){var d=r[a+0]|r[a+1]<<8|r[a+2]<<16;d>u&&(d=u),p(t.Jc[+f],r,l,d),l+=d,u-=d,a+=3}p(t.Jc[+h],r,l,u),r=l<o?0:5}if(0!=r)return jt(t,r,"cannot parse partitions");for(r=g(l=t.m,7),a=C(l)?m(l,4):0,o=C(l)?m(l,4):0,u=C(l)?m(l,4):0,h=C(l)?m(l,4):0,l=C(l)?m(l,4):0,f=t.Qa,d=0;4>d;++d){if(f.Cb){var v=f.Zb[d];f.Fb||(v+=r)}else{if(0<d){t.pb[d]=t.pb[0];continue}v=r}var b=t.pb[d];b.Sc[0]=zr[Dt(v+a,127)],b.Sc[1]=qr[Dt(v+0,127)],b.Eb[0]=2*zr[Dt(v+o,127)],b.Eb[1]=101581*qr[Dt(v+u,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=zr[Dt(v+h,117)],b.Qc[1]=qr[Dt(v+l,127)],b.lc=v+l}if(!c.Rb)return jt(t,4,"Not a key frame.");for(C(s),c=t.Pa,r=0;4>r;++r){for(a=0;8>a;++a)for(o=0;3>o;++o)for(u=0;11>u;++u)h=L(s,Zr[r][a][o][u])?g(s,8):Wr[r][a][o][u],c.Wc[r][a].Yb[o][u]=h;for(a=0;17>a;++a)c.Xc[r][a]=c.Wc[r][Jr[a]]}return t.kc=C(s),t.kc&&(t.Bd=g(s,8)),t.cb=1}function zt(t,e,n,r,i,o,a){var s=e[i].Yb[n];for(n=0;16>i;++i){if(!L(t,s[n+0]))return i;for(;!L(t,s[n+1]);)if(s=e[++i].Yb[0],n=0,16==i)return 16;var c=e[i+1].Yb;if(L(t,s[n+2])){var u=t,l=0;if(L(u,(f=s)[(h=n)+3]))if(L(u,f[h+6])){for(s=0,h=2*(l=L(u,f[h+8]))+(f=L(u,f[h+9+l])),l=0,f=Vr[h];f[s];++s)l+=l+L(u,f[s]);l+=3+(8<<h)}else L(u,f[h+7])?(l=7+2*L(u,165),l+=L(u,145)):l=5+L(u,159);else l=L(u,f[h+4])?3+L(u,f[h+5]):2;s=c[2]}else l=1,s=c[1];c=a+Hr[i],0>(u=t).b&&N(u);var h,f=u.b,d=(h=u.Ca>>1)-(u.I>>f)>>31;--u.b,u.Ca+=d,u.Ca|=1,u.I-=(h+1&d)<<f,o[c]=((l^d)-d)*r[(0<i)+0]}return 16}function qt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,i(t.zc,0,0,t.zc.length),t.ja=0}function Ut(t,n){if(null==t)return 0;if(null==n)return jt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Bt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=Si[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-s>>4,t.zb=n.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+s>>4,t.Hb=n.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var c=t.ed;for(s=0;4>s;++s){var u;if(t.Qa.Cb){var l=t.Qa.Lb[s];t.Qa.Fb||(l+=c.Tb)}else l=c.Tb;for(u=0;1>=u;++u){var h=t.gd[s][u],f=l;if(c.Pc&&(f+=c.vd[0],u&&(f+=c.od[0])),0<(f=0>f?0:63<f?63:f)){var d=f;0<c.wb&&(d=4<c.wb?d>>2:d>>1)>9-c.wb&&(d=9-c.wb),1>d&&(d=1),h.dd=d,h.tc=2*f+d,h.ld=40<=f?2:15<=f?1:0}else h.tc=0;h.La=u}}}s=0}else jt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=Ni);t:{s=t.Ic,c=4*(d=t.za);var p=32*d,g=d+1,m=0<t.L?d*(0<t.Aa?2:1):0,v=(2==t.Aa?2:1)*d;if((h=c+832+(u=3*(16*s+Si[t.L])/2*p)+(l=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=h)s=0;else{if(h>t.Vb){if(t.Vb=0,t.Ec=o(h),t.Fc=0,null==t.Ec){s=jt(t,1,"no memory during frame initialization.");break t}t.Vb=h}h=t.Ec,f=t.Fc,t.Ac=h,t.Bc=f,f+=c,t.Gd=a(p,Et),t.Hd=0,t.rb=a(g+1,Mt),t.sb=1,t.wa=m?a(m,Pt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=d),e(!0),t.oc=h,t.pc=f,f+=832,t.ya=a(v,Tt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=d),t.R=16*d,t.B=8*d,d=(p=Si[t.L])*t.R,p=p/2*t.B,t.sa=h,t.ta=f+d,t.qa=t.sa,t.ra=t.ta+16*s*t.R+p,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+p,t.$c=0,f+=u,t.mb=l?h:null,t.nb=l?f:null,e(f+l<=t.Fc+t.Vb),qt(t),i(t.Ac,t.Bc,0,c),s=1}}if(s){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!mr){for(s=-255;255>=s;++s)fr[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)dr[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)pr[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)gr[255+s]=0>s?0:255<s?255:s;mr=1}Hn=Kt,Gn=Zt,Yn=Jt,Zn=Qt,Jn=Xt,Wn=Yt,Qn=je,Xn=Fe,Kn=qe,$n=Ue,tr=Be,er=ze,nr=Ve,rr=He,ir=Ie,or=Te,ar=Ee,sr=Oe,Xr[0]=de,Xr[1]=te,Xr[2]=he,Xr[3]=fe,Xr[4]=pe,Xr[5]=me,Xr[6]=ge,Xr[7]=ve,Xr[8]=ye,Xr[9]=be,Qr[0]=ae,Qr[1]=ne,Qr[2]=re,Qr[3]=ie,Qr[4]=se,Qr[5]=ce,Qr[6]=ue,Kr[0]=Ae,Kr[1]=ee,Kr[2]=we,Kr[3]=xe,Kr[4]=ke,Kr[5]=Se,Kr[6]=Ne,s=1}else s=0}s&&(s=function(t,n){for(t.M=0;t.M<t.Va;++t.M){var a,s=t.Jc[t.M&t.Xb],c=t.m,u=t;for(a=0;a<u.za;++a){var l=c,h=u,f=h.Ac,d=h.Bc+4*a,p=h.zc,g=h.ya[h.aa+a];if(h.Qa.Bb?g.$b=L(l,h.Pa.jb[0])?2+L(l,h.Pa.jb[2]):L(l,h.Pa.jb[1]):g.$b=0,h.kc&&(g.Ad=L(l,h.Bd)),g.Za=!L(l,145)+0,g.Za){var m=g.Ob,v=0;for(h=0;4>h;++h){var b,y=p[0+h];for(b=0;4>b;++b){y=Yr[f[d+b]][y];for(var w=Gr[L(l,y[0])];0<w;)w=Gr[2*w+L(l,y[w])];y=-w,f[d+b]=y}r(m,v,f,d,4),v+=4,p[0+h]=y}}else y=L(l,156)?L(l,128)?1:3:L(l,163)?2:0,g.Ob[0]=y,i(f,d,y,4),i(p,0,y,4);g.Dd=L(l,142)?L(l,114)?L(l,183)?1:3:2:0}if(u.m.Ka)return jt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(u=s,l=(c=t).rb[c.sb-1],f=c.rb[c.sb+c.ja],a=c.ya[c.aa+c.ja],d=c.kc?a.Ad:0)l.la=f.la=0,a.Za||(l.Na=f.Na=0),a.Hc=0,a.Gc=0,a.ia=0;else{var x,_;if(l=f,f=u,d=c.Pa.Xc,p=c.ya[c.aa+c.ja],g=c.pb[p.$b],h=p.ad,m=0,v=c.rb[c.sb-1],y=b=0,i(h,m,0,384),p.Za)var A=0,S=d[3];else{w=o(16);var k=l.Na+v.Na;if(k=Ur(f,d[1],k,g.Eb,0,w,0),l.Na=v.Na=(0<k)+0,1<k)Hn(w,0,h,m);else{var N=w[0]+3>>3;for(w=0;256>w;w+=16)h[m+w]=N}A=1,S=d[0]}var C=15&l.la,P=15&v.la;for(w=0;4>w;++w){var M=1&P;for(N=_=0;4>N;++N)C=C>>1|(M=(k=Ur(f,S,k=M+(1&C),g.Sc,A,h,m))>A)<<7,_=_<<2|(3<k?3:1<k?2:0!=h[m+0]),m+=16;C>>=4,P=P>>1|M<<7,b=(b<<8|_)>>>0}for(S=C,A=P>>4,x=0;4>x;x+=2){for(_=0,C=l.la>>4+x,P=v.la>>4+x,w=0;2>w;++w){for(M=1&P,N=0;2>N;++N)k=M+(1&C),C=C>>1|(M=0<(k=Ur(f,d[2],k,g.Qc,0,h,m)))<<3,_=_<<2|(3<k?3:1<k?2:0!=h[m+0]),m+=16;C>>=2,P=P>>1|M<<5}y|=_<<4*x,S|=C<<4<<x,A|=(240&P)<<x}l.la=S,v.la=A,p.Hc=b,p.Gc=y,p.ia=43690&y?0:g.ia,d=!(b|y)}if(0<c.L&&(c.wa[c.Y+c.ja]=c.gd[a.$b][a.Za],c.wa[c.Y+c.ja].La|=!d),u.Ka)return jt(t,7,"Premature end-of-file encountered.")}if(qt(t),c=n,u=1,a=(s=t).D,l=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(a.M=s.M,a.uc=l,yn(s,a),u=1,a=(_=s.D).Nb,l=(y=Si[s.L])*s.R,f=y/2*s.B,w=16*a*s.R,N=8*a*s.B,d=s.sa,p=s.ta-l+w,g=s.qa,h=s.ra-f+N,m=s.Ha,v=s.Ia-f+N,P=0==(C=_.M),b=C>=s.Va-1,2==s.Aa&&yn(s,_),_.uc)for(M=(k=s).D.M,e(k.D.uc),_=k.yb;_<k.Hb;++_){A=_,S=M;var I=(T=(q=k).D).Nb;x=q.R;var T=T.wa[T.Y+A],E=q.sa,O=q.ta+16*I*x+16*A,D=T.dd,R=T.tc;if(0!=R)if(e(3<=R),1==q.L)0<A&&or(E,O,x,R+4),T.La&&sr(E,O,x,R),0<S&&ir(E,O,x,R+4),T.La&&ar(E,O,x,R);else{var j=q.B,F=q.qa,B=q.ra+8*I*j+8*A,z=q.Ha,q=q.Ia+8*I*j+8*A;I=T.ld,0<A&&(Xn(E,O,x,R+4,D,I),$n(F,B,z,q,j,R+4,D,I)),T.La&&(er(E,O,x,R,D,I),rr(F,B,z,q,j,R,D,I)),0<S&&(Qn(E,O,x,R+4,D,I),Kn(F,B,z,q,j,R+4,D,I)),T.La&&(tr(E,O,x,R,D,I),nr(F,B,z,q,j,R,D,I))}}if(s.ia&&alert("todo:DitherRow"),null!=c.put){if(_=16*C,C=16*(C+1),P?(c.y=s.sa,c.O=s.ta+w,c.f=s.qa,c.N=s.ra+N,c.ea=s.Ha,c.W=s.Ia+N):(_-=y,c.y=d,c.O=p,c.f=g,c.N=h,c.ea=m,c.W=v),b||(C-=y),C>c.o&&(C=c.o),c.F=null,c.J=null,null!=s.Fa&&0<s.Fa.length&&_<C&&(c.J=Qe(s,c,_,C-_),c.F=s.mb,null==c.F&&0==c.F.length)){u=jt(s,3,"Could not decode alpha data.");break t}_<c.j&&(y=c.j-_,_=c.j,e(!(1&y)),c.O+=s.R*y,c.N+=s.B*(y>>1),c.W+=s.B*(y>>1),null!=c.F&&(c.J+=c.width*y)),_<C&&(c.O+=c.v,c.N+=c.v>>1,c.W+=c.v>>1,null!=c.F&&(c.J+=c.v),c.ka=_-c.j,c.U=c.va-c.v,c.T=C-_,u=c.put(c))}a+1!=s.Ic||b||(r(s.sa,s.ta-l,d,p+16*s.R,l),r(s.qa,s.ra-f,g,h+8*s.B,f),r(s.Ha,s.Ia-f,m,v+8*s.B,f))}if(!u)return jt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0}function Vt(t,e,n,r,i){i=t[e+n+32*r]+(i>>3),t[e+n+32*r]=-256&i?0>i?0:255:i}function Ht(t,e,n,r,i,o){Vt(t,e,0,n,r+i),Vt(t,e,1,n,r+o),Vt(t,e,2,n,r-o),Vt(t,e,3,n,r-i)}function Gt(t){return(20091*t>>16)+t}function Wt(t,e,n,r){var i,a=0,s=o(16);for(i=0;4>i;++i){var c=t[e+0]+t[e+8],u=t[e+0]-t[e+8],l=(35468*t[e+4]>>16)-Gt(t[e+12]),h=Gt(t[e+4])+(35468*t[e+12]>>16);s[a+0]=c+h,s[a+1]=u+l,s[a+2]=u-l,s[a+3]=c-h,a+=4,e++}for(i=a=0;4>i;++i)c=(t=s[a+0]+4)+s[a+8],u=t-s[a+8],l=(35468*s[a+4]>>16)-Gt(s[a+12]),Vt(n,r,0,0,c+(h=Gt(s[a+4])+(35468*s[a+12]>>16))),Vt(n,r,1,0,u+l),Vt(n,r,2,0,u-l),Vt(n,r,3,0,c-h),a++,r+=32}function Yt(t,e,n,r){var i=t[e+0]+4,o=35468*t[e+4]>>16,a=Gt(t[e+4]),s=35468*t[e+1]>>16;Ht(n,r,0,i+a,t=Gt(t[e+1]),s),Ht(n,r,1,i+o,t,s),Ht(n,r,2,i-o,t,s),Ht(n,r,3,i-a,t,s)}function Zt(t,e,n,r,i){Wt(t,e,n,r),i&&Wt(t,e+16,n,r+4)}function Jt(t,e,n,r){Gn(t,e+0,n,r,1),Gn(t,e+32,n,r+128,1)}function Qt(t,e,n,r){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)Vt(n,r,e,i,t)}function Xt(t,e,n,r){t[e+0]&&Zn(t,e+0,n,r),t[e+16]&&Zn(t,e+16,n,r+4),t[e+32]&&Zn(t,e+32,n,r+128),t[e+48]&&Zn(t,e+48,n,r+128+4)}function Kt(t,e,n,r){var i,a=o(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],c=t[e+4+i]+t[e+8+i],u=t[e+4+i]-t[e+8+i],l=t[e+0+i]-t[e+12+i];a[0+i]=s+c,a[8+i]=s-c,a[4+i]=l+u,a[12+i]=l-u}for(i=0;4>i;++i)s=(t=a[0+4*i]+3)+a[3+4*i],c=a[1+4*i]+a[2+4*i],u=a[1+4*i]-a[2+4*i],l=t-a[3+4*i],n[r+0]=s+c>>3,n[r+16]=l+u>>3,n[r+32]=s-c>>3,n[r+48]=l-u>>3,r+=64}function $t(t,e,n){var r,i=e-32,o=yr,a=255-t[i-1];for(r=0;r<n;++r){var s,c=o,u=a+t[e-1];for(s=0;s<n;++s)t[e+s]=c[u+t[i+s]];e+=32}}function te(t,e){$t(t,e,4)}function ee(t,e){$t(t,e,8)}function ne(t,e){$t(t,e,16)}function re(t,e){var n;for(n=0;16>n;++n)r(t,e+32*n,t,e-32,16)}function ie(t,e){var n;for(n=16;0<n;--n)i(t,e,t[e-1],16),e+=32}function oe(t,e,n){var r;for(r=0;16>r;++r)i(e,n+32*r,t,16)}function ae(t,e){var n,r=16;for(n=0;16>n;++n)r+=t[e-1+32*n]+t[e+n-32];oe(r>>5,t,e)}function se(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e-1+32*n];oe(r>>4,t,e)}function ce(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e+n-32];oe(r>>4,t,e)}function ue(t,e){oe(128,t,e)}function le(t,e,n){return t+2*e+n+2>>2}function he(t,e){var n,i=e-32;for(i=new Uint8Array([le(t[i-1],t[i+0],t[i+1]),le(t[i+0],t[i+1],t[i+2]),le(t[i+1],t[i+2],t[i+3]),le(t[i+2],t[i+3],t[i+4])]),n=0;4>n;++n)r(t,e+32*n,i,0,i.length)}function fe(t,e){var n=t[e-1],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96];P(t,e+0,16843009*le(t[e-1-32],n,r)),P(t,e+32,16843009*le(n,r,i)),P(t,e+64,16843009*le(r,i,o)),P(t,e+96,16843009*le(i,o,o))}function de(t,e){var n,r=4;for(n=0;4>n;++n)r+=t[e+n-32]+t[e-1+32*n];for(r>>=3,n=0;4>n;++n)i(t,e+32*n,r,4)}function pe(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1-32],a=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+96]=le(r,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=le(n,r,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=le(o,n,r),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=le(a,o,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=le(s,a,o),t[e+3+32]=t[e+2+0]=le(c,s,a),t[e+3+0]=le(u,c,s)}function ge(t,e){var n=t[e+1-32],r=t[e+2-32],i=t[e+3-32],o=t[e+4-32],a=t[e+5-32],s=t[e+6-32],c=t[e+7-32];t[e+0+0]=le(t[e+0-32],n,r),t[e+1+0]=t[e+0+32]=le(n,r,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=le(r,i,o),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=le(i,o,a),t[e+3+32]=t[e+2+64]=t[e+1+96]=le(o,a,s),t[e+3+64]=t[e+2+96]=le(a,s,c),t[e+3+96]=le(s,c,c)}function me(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1-32],a=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+0]=t[e+1+64]=o+a+1>>1,t[e+1+0]=t[e+2+64]=a+s+1>>1,t[e+2+0]=t[e+3+64]=s+c+1>>1,t[e+3+0]=c+u+1>>1,t[e+0+96]=le(i,r,n),t[e+0+64]=le(r,n,o),t[e+0+32]=t[e+1+96]=le(n,o,a),t[e+1+32]=t[e+2+96]=le(o,a,s),t[e+2+32]=t[e+3+96]=le(a,s,c),t[e+3+32]=le(s,c,u)}function ve(t,e){var n=t[e+0-32],r=t[e+1-32],i=t[e+2-32],o=t[e+3-32],a=t[e+4-32],s=t[e+5-32],c=t[e+6-32],u=t[e+7-32];t[e+0+0]=n+r+1>>1,t[e+1+0]=t[e+0+64]=r+i+1>>1,t[e+2+0]=t[e+1+64]=i+o+1>>1,t[e+3+0]=t[e+2+64]=o+a+1>>1,t[e+0+32]=le(n,r,i),t[e+1+32]=t[e+0+96]=le(r,i,o),t[e+2+32]=t[e+1+96]=le(i,o,a),t[e+3+32]=t[e+2+96]=le(o,a,s),t[e+3+64]=le(a,s,c),t[e+3+96]=le(s,c,u)}function be(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96];t[e+0+0]=n+r+1>>1,t[e+2+0]=t[e+0+32]=r+i+1>>1,t[e+2+32]=t[e+0+64]=i+o+1>>1,t[e+1+0]=le(n,r,i),t[e+3+0]=t[e+1+32]=le(r,i,o),t[e+3+32]=t[e+1+64]=le(i,o,o),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=o}function ye(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96],a=t[e-1-32],s=t[e+0-32],c=t[e+1-32],u=t[e+2-32];t[e+0+0]=t[e+2+32]=n+a+1>>1,t[e+0+32]=t[e+2+64]=r+n+1>>1,t[e+0+64]=t[e+2+96]=i+r+1>>1,t[e+0+96]=o+i+1>>1,t[e+3+0]=le(s,c,u),t[e+2+0]=le(a,s,c),t[e+1+0]=t[e+3+32]=le(n,a,s),t[e+1+32]=t[e+3+64]=le(r,n,a),t[e+1+64]=t[e+3+96]=le(i,r,n),t[e+1+96]=le(o,i,r)}function we(t,e){var n;for(n=0;8>n;++n)r(t,e+32*n,t,e-32,8)}function xe(t,e){var n;for(n=0;8>n;++n)i(t,e,t[e-1],8),e+=32}function _e(t,e,n){var r;for(r=0;8>r;++r)i(e,n+32*r,t,8)}function Ae(t,e){var n,r=8;for(n=0;8>n;++n)r+=t[e+n-32]+t[e-1+32*n];_e(r>>4,t,e)}function Se(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e+n-32];_e(r>>3,t,e)}function ke(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e-1+32*n];_e(r>>3,t,e)}function Ne(t,e){_e(128,t,e)}function Ce(t,e,n){var r=t[e-n],i=t[e+0],o=3*(i-r)+vr[1020+t[e-2*n]-t[e+n]],a=br[112+(o+4>>3)];t[e-n]=yr[255+r+br[112+(o+3>>3)]],t[e+0]=yr[255+i-a]}function Le(t,e,n,r){var i=t[e+0],o=t[e+n];return wr[255+t[e-2*n]-t[e-n]]>r||wr[255+o-i]>r}function Pe(t,e,n,r){return 4*wr[255+t[e-n]-t[e+0]]+wr[255+t[e-2*n]-t[e+n]]<=r}function Me(t,e,n,r,i){var o=t[e-3*n],a=t[e-2*n],s=t[e-n],c=t[e+0],u=t[e+n],l=t[e+2*n],h=t[e+3*n];return 4*wr[255+s-c]+wr[255+a-u]>r?0:wr[255+t[e-4*n]-o]<=i&&wr[255+o-a]<=i&&wr[255+a-s]<=i&&wr[255+h-l]<=i&&wr[255+l-u]<=i&&wr[255+u-c]<=i}function Ie(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)Pe(t,e+r,n,i)&&Ce(t,e+r,n)}function Te(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)Pe(t,e+r*n,1,i)&&Ce(t,e+r*n,1)}function Ee(t,e,n,r){var i;for(i=3;0<i;--i)Ie(t,e+=4*n,n,r)}function Oe(t,e,n,r){var i;for(i=3;0<i;--i)Te(t,e+=4,n,r)}function De(t,e,n,r,i,o,a,s){for(o=2*o+1;0<i--;){if(Me(t,e,n,o,a))if(Le(t,e,n,s))Ce(t,e,n);else{var c=t,u=e,l=n,h=c[u-2*l],f=c[u-l],d=c[u+0],p=c[u+l],g=c[u+2*l],m=27*(b=vr[1020+3*(d-f)+vr[1020+h-p]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;c[u-3*l]=yr[255+c[u-3*l]+b],c[u-2*l]=yr[255+h+v],c[u-l]=yr[255+f+m],c[u+0]=yr[255+d-m],c[u+l]=yr[255+p-v],c[u+2*l]=yr[255+g-b]}e+=r}}function Re(t,e,n,r,i,o,a,s){for(o=2*o+1;0<i--;){if(Me(t,e,n,o,a))if(Le(t,e,n,s))Ce(t,e,n);else{var c=t,u=e,l=n,h=c[u-l],f=c[u+0],d=c[u+l],p=br[112+(4+(g=3*(f-h))>>3)],g=br[112+(g+3>>3)],m=p+1>>1;c[u-2*l]=yr[255+c[u-2*l]+m],c[u-l]=yr[255+h+g],c[u+0]=yr[255+f-p],c[u+l]=yr[255+d-m]}e+=r}}function je(t,e,n,r,i,o){De(t,e,n,1,16,r,i,o)}function Fe(t,e,n,r,i,o){De(t,e,1,n,16,r,i,o)}function Be(t,e,n,r,i,o){var a;for(a=3;0<a;--a)Re(t,e+=4*n,n,1,16,r,i,o)}function ze(t,e,n,r,i,o){var a;for(a=3;0<a;--a)Re(t,e+=4,1,n,16,r,i,o)}function qe(t,e,n,r,i,o,a,s){De(t,e,i,1,8,o,a,s),De(n,r,i,1,8,o,a,s)}function Ue(t,e,n,r,i,o,a,s){De(t,e,1,i,8,o,a,s),De(n,r,1,i,8,o,a,s)}function Ve(t,e,n,r,i,o,a,s){Re(t,e+4*i,i,1,8,o,a,s),Re(n,r+4*i,i,1,8,o,a,s)}function He(t,e,n,r,i,o,a,s){Re(t,e+4,1,i,8,o,a,s),Re(n,r+4,1,i,8,o,a,s)}function Ge(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function We(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ye(t,e,n,r,i,o,a){for(t=null==t?0:t[e+0],e=0;e<a;++e)i[o+e]=t+n[r+e]&255,t=i[o+e]}function Ze(t,e,n,r,i,o,a){var s;if(null==t)Ye(null,null,n,r,i,o,a);else for(s=0;s<a;++s)i[o+s]=t[e+s]+n[r+s]&255}function Je(t,e,n,r,i,o,a){if(null==t)Ye(null,null,n,r,i,o,a);else{var s,c=t[e+0],u=c,l=c;for(s=0;s<a;++s)u=l+(c=t[e+s])-u,l=n[r+s]+(-256&u?0>u?0:255:u)&255,u=c,i[o+s]=l}}function Qe(t,n,i,a){var s=n.width,c=n.o;if(e(null!=t&&null!=n),0>i||0>=a||i+a>c)return null;if(!t.Cc){if(null==t.ga){var u;if(t.ga=new function(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Rt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0},(u=null==t.ga)||(u=n.width*n.o,e(0==t.Gb.length),t.Gb=o(u),t.Uc=0,null==t.Gb?u=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,u=1),u=!u),!u){u=t.ga;var l=t.Fa,h=t.P,f=t.qc,d=t.mb,p=t.nb,g=h+1,m=f-1,b=u.l;if(e(null!=l&&null!=d&&null!=n),ei[0]=null,ei[1]=Ye,ei[2]=Ze,ei[3]=Je,u.ca=d,u.tb=p,u.c=n.width,u.i=n.height,e(0<u.c&&0<u.i),1>=f)n=0;else if(u.$a=l[h+0]>>0&3,u.Z=l[h+0]>>2&3,u.Lc=l[h+0]>>4&3,h=l[h+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||h)n=0;else if(b.put=ut,b.ac=ct,b.bc=lt,b.ma=u,b.width=n.width,b.height=n.height,b.Da=n.Da,b.v=n.v,b.va=n.va,b.j=n.j,b.o=n.o,u.$a)t:{e(1==u.$a),n=St();e:for(;;){if(null==n){n=0;break t}if(e(null!=u),u.mc=n,n.c=u.c,n.i=u.i,n.l=u.l,n.l.ma=u,n.l.width=u.c,n.l.height=u.i,n.a=0,v(n.m,l,g,m),!kt(u.c,u.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&yt(n.s)?(u.ic=1,l=n.c*n.i,n.Ta=null,n.Ua=0,n.V=o(l),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(u.ic=0,n=Nt(n,u.c)),!n)break e;n=1;break t}u.mc=null,n=0}else n=m>=u.c*u.i;u=!n}if(u)return null;1!=t.ga.Lc?t.Ga=0:a=c-i}e(null!=t.ga),e(i+a<=c);t:{if(n=(l=t.ga).c,c=l.l.o,0==l.$a){if(g=t.rc,m=t.Vc,b=t.Fa,h=t.P+1+i*n,f=t.mb,d=t.nb+i*n,e(h<=t.P+t.qc),0!=l.Z)for(e(null!=ei[l.Z]),u=0;u<a;++u)ei[l.Z](g,m,b,h,f,d,n),g=f,m=d,d+=n,h+=n;else for(u=0;u<a;++u)r(f,d,b,h,n),g=f,m=d,d+=n,h+=n;t.rc=g,t.Vc=m}else{if(e(null!=l.mc),n=i+a,e(null!=(u=l.mc)),e(n<=u.i),u.C>=n)n=1;else if(l.ic||en(),l.ic){l=u.V,g=u.Ba,m=u.c;var y=u.i,w=(b=1,h=u.$/m,f=u.$%m,d=u.m,p=u.s,u.$),x=m*y,_=m*n,S=p.wc,N=w<_?mt(p,f,h):null;e(w<=x),e(n<=y),e(yt(p));e:for(;;){for(;!d.h&&w<_;){if(f&S||(N=mt(p,f,h)),e(null!=N),k(d),256>(y=pt(N.G[0],N.H[0],d)))l[g+w]=y,++w,++f>=m&&(f=0,++h<=n&&!(h%16)&&xt(u,h));else{if(!(280>y)){b=0;break e}y=ft(y-256,d);var C,L=pt(N.G[4],N.H[4],d);if(k(d),!(w>=(L=dt(m,L=ft(L,d)))&&x-w>=y)){b=0;break e}for(C=0;C<y;++C)l[g+w+C]=l[g+w+C-L];for(w+=y,f+=y;f>=m;)f-=m,++h<=n&&!(h%16)&&xt(u,h);w<_&&f&S&&(N=mt(p,f,h))}e(d.h==A(d))}xt(u,h>n?n:h);break e}!b||d.h&&w<x?(b=0,u.a=d.h?5:3):u.$=w,n=b}else n=_t(u,u.V,u.Ba,u.c,u.i,n,Ct);if(!n){a=0;break t}}i+a>=c&&(t.Cc=1),a=1}if(!a)return null;if(t.Cc&&(null!=(a=t.ga)&&(a.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+i*s}function Xe(t,e,n,r,i,o){for(;0<i--;){var a,s=t,c=e+(n?1:0),u=t,l=e+(n?0:3);for(a=0;a<r;++a){var h=u[l+4*a];255!=h&&(h*=32897,s[c+4*a+0]=s[c+4*a+0]*h>>23,s[c+4*a+1]=s[c+4*a+1]*h>>23,s[c+4*a+2]=s[c+4*a+2]*h>>23)}e+=o}}function Ke(t,e,n,r,i){for(;0<r--;){var o;for(o=0;o<n;++o){var a=t[e+2*o+0],s=15&(u=t[e+2*o+1]),c=4369*s,u=(240&u|u>>4)*c>>16;t[e+2*o+0]=(240&a|a>>4)*c>>16&240|(15&a|a<<4)*c>>16>>4&15,t[e+2*o+1]=240&u|s}e+=i}}function $e(t,e,n,r,i,o,a,s){var c,u,l=255;for(u=0;u<i;++u){for(c=0;c<r;++c){var h=t[e+c];o[a+4*c]=h,l&=h}e+=n,a+=s}return 255!=l}function tn(t,e,n,r,i){var o;for(o=0;o<i;++o)n[r+o]=t[e+o]>>8}function en(){cr=Xe,ur=Ke,lr=$e,hr=tn}function nn(n,r,i){t[n]=function(t,n,o,a,s,c,u,l,h,f,d,p,g,m,v,b,y){var w,x=y-1>>1,_=s[c+0]|u[l+0]<<16,A=h[f+0]|d[p+0]<<16;e(null!=t);var S=3*_+A+131074>>2;for(r(t[n+0],255&S,S>>16,g,m),null!=o&&(S=3*A+_+131074>>2,r(o[a+0],255&S,S>>16,v,b)),w=1;w<=x;++w){var k=s[c+w]|u[l+w]<<16,N=h[f+w]|d[p+w]<<16,C=_+k+A+N+524296,L=C+2*(k+A)>>3;S=L+_>>1,_=(C=C+2*(_+N)>>3)+k>>1,r(t[n+2*w-1],255&S,S>>16,g,m+(2*w-1)*i),r(t[n+2*w-0],255&_,_>>16,g,m+(2*w-0)*i),null!=o&&(S=C+A>>1,_=L+N>>1,r(o[a+2*w-1],255&S,S>>16,v,b+(2*w-1)*i),r(o[a+2*w+0],255&_,_>>16,v,b+(2*w+0)*i)),_=k,A=N}1&y||(S=3*_+A+131074>>2,r(t[n+y-1],255&S,S>>16,g,m+(y-1)*i),null!=o&&(S=3*A+_+131074>>2,r(o[a+y-1],255&S,S>>16,v,b+(y-1)*i)))}}function rn(){ni[xr]=ri,ni[_r]=oi,ni[Ar]=ii,ni[Sr]=ai,ni[kr]=si,ni[Nr]=ci,ni[Cr]=ui,ni[Lr]=oi,ni[Pr]=ai,ni[Mr]=si,ni[Ir]=ci}function on(t){return t&~gi?0>t?0:255:t>>pi}function an(t,e){return on((19077*t>>8)+(26149*e>>8)-14234)}function sn(t,e,n){return on((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function cn(t,e){return on((19077*t>>8)+(33050*e>>8)-17685)}function un(t,e,n,r,i){r[i+0]=an(t,n),r[i+1]=sn(t,e,n),r[i+2]=cn(t,e)}function ln(t,e,n,r,i){r[i+0]=cn(t,e),r[i+1]=sn(t,e,n),r[i+2]=an(t,n)}function hn(t,e,n,r,i){var o=sn(t,e,n);e=o<<3&224|cn(t,e)>>3,r[i+0]=248&an(t,n)|o>>5,r[i+1]=e}function fn(t,e,n,r,i){var o=240&cn(t,e)|15;r[i+0]=240&an(t,n)|sn(t,e,n)>>4,r[i+1]=o}function dn(t,e,n,r,i){r[i+0]=255,un(t,e,n,r,i+1)}function pn(t,e,n,r,i){ln(t,e,n,r,i),r[i+3]=255}function gn(t,e,n,r,i){un(t,e,n,r,i),r[i+3]=255}function Dt(t,e){return 0>t?0:t>e?e:t}function mn(e,n,r){t[e]=function(t,e,i,o,a,s,c,u,l){for(var h=u+(-2&l)*r;u!=h;)n(t[e+0],i[o+0],a[s+0],c,u),n(t[e+1],i[o+0],a[s+0],c,u+r),e+=2,++o,++s,u+=2*r;1&l&&n(t[e+0],i[o+0],a[s+0],c,u)}}function vn(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function bn(t,e,n,r,i){switch(t>>>30){case 3:Gn(e,n,r,i,0);break;case 2:Wn(e,n,r,i);break;case 1:Zn(e,n,r,i)}}function yn(t,e){var n,o,a=e.M,s=e.Nb,c=t.oc,u=t.pc+40,l=t.oc,h=t.pc+584,f=t.oc,d=t.pc+600;for(n=0;16>n;++n)c[u+32*n-1]=129;for(n=0;8>n;++n)l[h+32*n-1]=129,f[d+32*n-1]=129;for(0<a?c[u-1-32]=l[h-1-32]=f[d-1-32]=129:(i(c,u-32-1,127,21),i(l,h-32-1,127,9),i(f,d-32-1,127,9)),o=0;o<t.za;++o){var p=e.ya[e.aa+o];if(0<o){for(n=-1;16>n;++n)r(c,u+32*n-4,c,u+32*n+12,4);for(n=-1;8>n;++n)r(l,h+32*n-4,l,h+32*n+4,4),r(f,d+32*n-4,f,d+32*n+4,4)}var g=t.Gd,m=t.Hd+o,v=p.ad,b=p.Hc;if(0<a&&(r(c,u-32,g[m].y,0,16),r(l,h-32,g[m].f,0,8),r(f,d-32,g[m].ea,0,8)),p.Za){var y=c,w=u-32+16;for(0<a&&(o>=t.za-1?i(y,w,g[m].y[15],4):r(y,w,g[m+1].y,0,4)),n=0;4>n;n++)y[w+128+n]=y[w+256+n]=y[w+384+n]=y[w+0+n];for(n=0;16>n;++n,b<<=2)y=c,w=u+Ai[n],Xr[p.Ob[n]](y,w),bn(b,v,16*+n,y,w)}else if(y=vn(o,a,p.Ob[0]),Qr[y](c,u),0!=b)for(n=0;16>n;++n,b<<=2)bn(b,v,16*+n,c,u+Ai[n]);for(n=p.Gc,y=vn(o,a,p.Dd),Kr[y](l,h),Kr[y](f,d),b=v,y=l,w=h,255&(p=n>>0)&&(170&p?Yn(b,256,y,w):Jn(b,256,y,w)),p=f,b=d,255&(n>>=8)&&(170&n?Yn(v,320,p,b):Jn(v,320,p,b)),a<t.Ub-1&&(r(g[m].y,0,c,u+480,16),r(g[m].f,0,l,h+224,8),r(g[m].ea,0,f,d+224,8)),n=8*s*t.B,g=t.sa,m=t.ta+16*o+16*s*t.R,v=t.qa,p=t.ra+8*o+n,b=t.Ha,y=t.Ia+8*o+n,n=0;16>n;++n)r(g,m+n*t.R,c,u+32*n,16);for(n=0;8>n;++n)r(v,p+n*t.B,l,h+32*n,8),r(b,y+n*t.B,f,d+32*n,8)}}function wn(t,r,i,o,a,s,c,u,l){var h=[0],f=[0],d=0,p=null!=l?l.kd:0,g=null!=l?l:new Ge;if(null==t||12>i)return 7;g.data=t,g.w=r,g.ha=i,r=[r],i=[i],g.gb=[g.gb];t:{var m=r,b=i,y=g.gb;if(e(null!=t),e(null!=b),e(null!=y),y[0]=0,12<=b[0]&&!n(t,m[0],"RIFF")){if(n(t,m[0]+8,"WEBP")){y=3;break t}var w=T(t,m[0]+4);if(12>w||4294967286<w){y=3;break t}if(p&&w>b[0]-8){y=7;break t}y[0]=w,m[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0<g.gb[0],i=i[0];;){t:{var _=t;b=r,y=i;var A=h,S=f,k=m=[0];if((L=d=[d])[0]=0,8>y[0])y=7;else{if(!n(_,b[0],"VP8X")){if(10!=T(_,b[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var N=T(_,b[0]+8),C=1+I(_,b[0]+12);if(2147483648<=C*(_=1+I(_,b[0]+15))){y=3;break t}null!=k&&(k[0]=N),null!=A&&(A[0]=C),null!=S&&(S[0]=_),b[0]+=18,y[0]-=18,L[0]=1}y=0}}if(d=d[0],m=m[0],0!=y)return y;if(b=!!(2&m),!w&&d)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=c&&(c[0]=b),null!=u&&(u[0]=0),c=h[0],m=f[0],d&&b&&null==l){y=0;break}if(4>i){y=7;break}if(w&&d||!w&&!d&&!n(t,r[0],"ALPH")){i=[i],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];t:{N=t,y=r,w=i;var L=g.gb;A=g.na,S=g.P,k=g.Sa,C=22,e(null!=N),e(null!=w),_=y[0];var P=w[0];for(e(null!=A),e(null!=k),A[0]=null,S[0]=null,k[0]=0;;){if(y[0]=_,w[0]=P,8>P){y=7;break t}var M=T(N,_+4);if(4294967286<M){y=3;break t}var E=8+M+1&-2;if(C+=E,0<L&&C>L){y=3;break t}if(!n(N,_,"VP8 ")||!n(N,_,"VP8L")){y=0;break t}if(P[0]<E){y=7;break t}n(N,_,"ALPH")||(A[0]=N,S[0]=_+8,k[0]=M),_+=E,P-=E}}if(i=i[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=y)break}i=[i],g.Ja=[g.Ja],g.xa=[g.xa];t:if(L=t,y=r,w=i,A=g.gb[0],S=g.Ja,k=g.xa,N=y[0],_=!n(L,N,"VP8 "),C=!n(L,N,"VP8L"),e(null!=L),e(null!=w),e(null!=S),e(null!=k),8>w[0])y=7;else{if(_||C){if(L=T(L,N+4),12<=A&&L>A-12){y=3;break t}if(p&&L>w[0]-8){y=7;break t}S[0]=L,y[0]+=8,w[0]-=8,k[0]=C}else k[0]=5<=w[0]&&47==L[N+0]&&!(L[N+4]>>5),S[0]=w[0];y=0}if(i=i[0],g.Ja=g.Ja[0],g.xa=g.xa[0],r=r[0],0!=y)break;if(4294967286<g.Ja)return 3;if(null==u||b||(u[0]=g.xa?2:1),c=[c],m=[m],g.xa){if(5>i){y=7;break}u=c,p=m,b=s,null==t||5>i?t=0:5<=i&&47==t[r+0]&&!(t[r+4]>>5)?(w=[0],L=[0],A=[0],v(S=new x,t,r,i),ht(S,w,L,A)?(null!=u&&(u[0]=w[0]),null!=p&&(p[0]=L[0]),null!=b&&(b[0]=A[0]),t=1):t=0):t=0}else{if(10>i){y=7;break}u=m,null==t||10>i||!Ft(t,r+3,i-3)?t=0:(p=t[r+0]|t[r+1]<<8|t[r+2]<<16,b=16383&(t[r+7]<<8|t[r+6]),t=16383&(t[r+9]<<8|t[r+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!b||!t?t=0:(c&&(c[0]=b),u&&(u[0]=t),t=1))}if(!t)return 3;if(c=c[0],m=m[0],d&&(h[0]!=c||f[0]!=m))return 3;null!=l&&(l[0]=g,l.offset=r-l.w,e(4294967286>r-l.w),e(l.offset==l.ha-i));break}return 0==y||7==y&&d&&null==l?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=o&&(o[0]=c),null!=a&&(a[0]=m),0):y}function xn(t,e,n){var r=e.width,i=e.height,o=0,a=0,s=r,c=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,c=t.bd,o=t.v,a=t.j,11>n||(o&=-2,a&=-2),0>o||0>a||0>=s||0>=c||o+s>r||a+c>i))return 0;if(e.v=o,e.j=a,e.va=o+s,e.o=a+c,e.U=s,e.T=c,e.da=null!=t&&0<t.da,e.da){if(!R(s,c,n=[t.ib],o=[t.hb]))return 0;e.ib=n[0],e.hb=o[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*r/4&&e.hb<3*i/4,e.Kb=0),1}function _n(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function An(t,e,n,r){if(null==r||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var i=n.cd,a=n.bd,s=-2&n.v,c=-2&n.j;if(0>s||0>c||0>=i||0>=a||s+i>t||c+a>e)return 2;t=i,e=a}if(n.da){if(!R(t,e,i=[n.ib],a=[n.hb]))return 2;t=i[0],e=a[0]}}r.width=t,r.height=e;t:{var u=r.width,l=r.height;if(t=r.S,0>=u||0>=l||!(t>=xr&&13>t))t=2;else{if(0>=r.Rd&&null==r.sd){s=a=i=e=0;var h=(c=u*Ci[t])*l;if(11>t||(a=(l+1)/2*(e=(u+1)/2),12==t&&(s=(i=u)*l)),null==(l=o(h+2*a+s))){t=1;break t}r.sd=l,11>t?((u=r.f.RGBA).eb=l,u.fb=0,u.A=c,u.size=h):((u=r.f.kb).y=l,u.O=0,u.fa=c,u.Fd=h,u.f=l,u.N=0+h,u.Ab=e,u.Cd=a,u.ea=l,u.W=0+h+a,u.Db=e,u.Ed=a,12==t&&(u.F=l,u.J=0+h+2*a),u.Tc=s,u.lb=i)}if(e=1,i=r.S,a=r.width,s=r.height,i>=xr&&13>i)if(11>i)t=r.f.RGBA,e&=(c=Math.abs(t.A))*(s-1)+a<=t.size,e&=c>=a*Ci[i],e&=null!=t.eb;else{t=r.f.kb,c=(a+1)/2,h=(s+1)/2,u=Math.abs(t.fa),l=Math.abs(t.Ab);var f=Math.abs(t.Db),d=Math.abs(t.lb),p=d*(s-1)+a;e&=u*(s-1)+a<=t.Fd,e&=l*(h-1)+c<=t.Cd,e=(e&=f*(h-1)+c<=t.Ed)&u>=a&l>=c&f>=c,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=d>=a,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=_n(r)),t}var Sn=64,kn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Nn=24,Cn=32,Ln=8,Pn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];B("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return q(q(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return q(t,e[n-1])},t.Predictor7=function(t,e,n){return q(t,e[n+0])},t.Predictor8=function(t,e,n){return q(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return q(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return q(q(t,e[n-1]),q(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var r=e[n+0];return 0>=H(r>>24&255,t>>24&255,(e=e[n-1])>>24&255)+H(r>>16&255,t>>16&255,e>>16&255)+H(r>>8&255,t>>8&255,e>>8&255)+H(255&r,255&t,255&e)?r:t},t.Predictor12=function(t,e,n){var r=e[n+0];return(U((t>>24&255)+(r>>24&255)-((e=e[n-1])>>24&255))<<24|U((t>>16&255)+(r>>16&255)-(e>>16&255))<<16|U((t>>8&255)+(r>>8&255)-(e>>8&255))<<8|U((255&t)+(255&r)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var r=e[n-1];return(V((t=q(t,e[n+0]))>>24&255,r>>24&255)<<24|V(t>>16&255,r>>16&255)<<16|V(t>>8&255,r>>8&255)<<8|V(t>>0&255,r>>0&255))>>>0};var Mn=t.PredictorAdd0;t.PredictorAdd1=G,B("Predictor2","PredictorAdd2"),B("Predictor3","PredictorAdd3"),B("Predictor4","PredictorAdd4"),B("Predictor5","PredictorAdd5"),B("Predictor6","PredictorAdd6"),B("Predictor7","PredictorAdd7"),B("Predictor8","PredictorAdd8"),B("Predictor9","PredictorAdd9"),B("Predictor10","PredictorAdd10"),B("Predictor11","PredictorAdd11"),B("Predictor12","PredictorAdd12"),B("Predictor13","PredictorAdd13");var In=t.PredictorAdd2;J("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),J("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var Tn,En=t.ColorIndexInverseTransform,On=t.MapARGB,Dn=t.VP8LColorIndexInverseTransformAlpha,Rn=t.MapAlpha,jn=t.VP8LPredictorsAdd=[];jn.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var Fn,Bn,zn,qn,Un,Vn,Hn,Gn,Wn,Yn,Zn,Jn,Qn,Xn,Kn,$n,tr,er,nr,rr,ir,or,ar,sr,cr,ur,lr,hr,fr=o(511),dr=o(2041),pr=o(225),gr=o(767),mr=0,vr=dr,br=pr,yr=gr,wr=fr,xr=0,_r=1,Ar=2,Sr=3,kr=4,Nr=5,Cr=6,Lr=7,Pr=8,Mr=9,Ir=10,Tr=[2,3,7],Er=[3,3,11],Or=[280,256,256,256,40],Dr=[0,1,1,1,0],Rr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],jr=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Fr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Br=8,zr=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],qr=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Ur=null,Vr=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Hr=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Gr=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Wr=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Yr=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Zr=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Jr=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Qr=[],Xr=[],Kr=[],$r=1,ti=2,ei=[],ni=[];nn("UpsampleRgbLinePair",un,3),nn("UpsampleBgrLinePair",ln,3),nn("UpsampleRgbaLinePair",gn,4),nn("UpsampleBgraLinePair",pn,4),nn("UpsampleArgbLinePair",dn,4),nn("UpsampleRgba4444LinePair",fn,2),nn("UpsampleRgb565LinePair",hn,2);var ri=t.UpsampleRgbLinePair,ii=t.UpsampleBgrLinePair,oi=t.UpsampleRgbaLinePair,ai=t.UpsampleBgraLinePair,si=t.UpsampleArgbLinePair,ci=t.UpsampleRgba4444LinePair,ui=t.UpsampleRgb565LinePair,li=16,hi=1<<li-1,fi=-227,di=482,pi=6,gi=(256<<pi)-1,mi=0,vi=o(256),bi=o(256),yi=o(256),wi=o(256),xi=o(di-fi),_i=o(di-fi);mn("YuvToRgbRow",un,3),mn("YuvToBgrRow",ln,3),mn("YuvToRgbaRow",gn,4),mn("YuvToBgraRow",pn,4),mn("YuvToArgbRow",dn,4),mn("YuvToRgba4444Row",fn,2),mn("YuvToRgb565Row",hn,2);var Ai=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Si=[0,2,8],ki=[8,7,6,4,4,2,2,2,1,1,1,1],Ni=1;this.WebPDecodeRGBA=function(t,n,r,i,o){var a=_r,s=new function(){this.ba=new it,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new function(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0},this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"},c=new it;s.ba=c,c.S=a,c.width=[c.width],c.height=[c.height];var u=c.width,l=c.height,h=new function(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]};if(null==h||null==t)var f=2;else e(null!=h),f=wn(t,n,r,h.width,h.height,h.Pd,h.Qd,h.format,null);if(0!=f?u=0:(null!=u&&(u[0]=h.width[0]),null!=l&&(l[0]=h.height[0]),u=1),u){c.width=c.width[0],c.height=c.height[0],null!=i&&(i[0]=c.width),null!=o&&(o[0]=c.height);t:{if(i=new Rt,(o=new Ge).data=t,o.w=n,o.ha=r,o.kd=1,n=[0],e(null!=o),(0==(t=wn(o.data,o.w,o.ha,null,null,null,n,null,o))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=s),i.data=o.data,i.w=o.w+o.offset,i.ha=o.ha-o.offset,i.put=ut,i.ac=ct,i.bc=lt,i.ma=s,o.xa){if(null==(t=St())){s=1;break t}if(function(t,n){var r=[0],i=[0],o=[0];e:for(;;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,v(t.m,n.data,n.w,n.ha),!ht(t.m,r,i,o)){t.a=3;break e}if(t.xb=ti,n.width=r[0],n.height=i[0],!kt(r[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,i)){if(i=0==(n=An(i.width,i.height,s.Oa,s.ba))){e:{i=t;n:for(;;){if(null==i){i=0;break e}if(e(null!=i.s.yc),e(null!=i.s.Ya),e(0<i.s.Wb),e(null!=(r=i.l)),e(null!=(o=r.ma)),0!=i.xb){if(i.ca=o.ba,i.tb=o.tb,e(null!=i.ca),!xn(o.Oa,r,Sr)){i.a=2;break n}if(!Nt(i,r.width))break n;if(r.da)break n;if((r.da||rt(i.ca.S))&&en(),11>i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&en()),i.Pb&&0<i.s.ua&&null==i.s.vb.X&&!E(i.s.vb,i.s.Wa.Xa)){i.a=1;break n}i.xb=0}if(!_t(i,i.V,i.Ba,i.c,i.i,r.o,bt))break n;o.Dc=i.Ma,i=1;break e}e(0!=i.a),i=0}i=!i}i&&(n=t.a)}else n=t.a}else{if(null==(t=new function(){var t=new Ot;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,Ur||(Ur=zt)),t})){s=1;break t}if(t.Fa=o.na,t.P=o.P,t.qc=o.Sa,Bt(t,i)){if(0==(n=An(i.width,i.height,s.Oa,s.ba))){if(t.Aa=0,r=s.Oa,e(null!=(o=t)),null!=r){if(0<(u=0>(u=r.Md)?0:100<u?255:255*u/100)){for(l=h=0;4>l;++l)12>(f=o.pb[l]).lc&&(f.ia=u*ki[0>f.lc?0:f.lc]>>3),h|=f.ia;h&&(alert("todo:VP8InitRandom"),o.ia=1)}o.Ga=r.Id,100<o.Ga?o.Ga=100:0>o.Ga&&(o.Ga=0)}Ut(t,i)||(n=t.a)}}else n=t.a}0==n&&null!=s.Oa&&s.Oa.fd&&(n=_n(s.ba))}s=n}a=0!=s?null:11>a?c.f.RGBA.eb:c.f.kb.y}else a=null;return a};var Ci=[3,4,3,4,4,2,2,4,4,4,2,1,1]});var h=[0],f=[0],d=[],p=new Gt,g=t,m=function(t,e){var n={},r=0,i=!1,o=0,a=0;if(n.frames=[],!
/** @license
* Copyright (c) 2017 Dominik Homberger
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
https://webpjs.appspot.com
WebPRiffParser dominikhlbg@gmail.com
*/
function(t,e,n,r){for(var i=0;i<4;i++)if(t[e+i]!="RIFF".charCodeAt(i))return!0;return!1}(t,e)){var s,h;for(l(t,e+=4),e+=8;e<t.length;){var f=c(t,e),d=l(t,e+=4);e+=4;var p=d+(1&d);switch(f){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(v=n.frames[r]).src_off=i?a:e-8,v.src_size=o+d+8,r++,i&&(i=!1,o=0,a=0);break;case"VP8X":(v=n.header={}).feature_flags=t[e];var g=e+4;v.canvas_width=1+u(t,g),g+=3,v.canvas_height=1+u(t,g),g+=3;break;case"ALPH":i=!0,o=p+8,a=e-8;break;case"ANIM":(v=n.header).bgcolor=l(t,e),g=e+4,v.loop_count=(s=t)[(h=g)+0]<<0|s[h+1]<<8,g+=2;break;case"ANMF":var m,v;(v=n.frames[r]={}).offset_x=2*u(t,e),e+=3,v.offset_y=2*u(t,e),e+=3,v.width=1+u(t,e),e+=3,v.height=1+u(t,e),e+=3,v.duration=u(t,e),e+=3,m=t[e++],v.dispose=1&m,v.blend=m>>1&1}"ANMF"!=f&&(e+=p)}return n}}(g,0);m.response=g,m.rgbaoutput=!0,m.dataurl=!1;var v=m.header?m.header:null,b=m.frames?m.frames:null;if(v){v.loop_counter=v.loop_count,h=[v.canvas_height],f=[v.canvas_width];for(var y=0;y<b.length&&0!=b[y].blend;y++);}var w=b[0],x=p.WebPDecodeRGBA(g,w.src_off,w.src_size,f,h);w.rgba=x,w.imgwidth=f[0],w.imgheight=h[0];for(var _=0;_<f[0]*h[0]*4;_++)d[_]=x[_];return this.width=f,this.height=h,this.data=d,this}
/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/!function(t){var e=function(e,i,u,l){var h=5,f=a;switch(l){case t.image_compression.FAST:h=3,f=o;break;case t.image_compression.MEDIUM:h=6,f=s;break;case t.image_compression.SLOW:h=9,f=c}e=r(e,i,u,f);var d=new Uint8Array(n(h)),p=O.API.adler32cs.fromBuffer(e.buffer),g=new Et(h),m=g.append(e),v=g.flush(),b=d.length+m.length+v.length,y=new Uint8Array(b+4);return y.set(d),y.set(m,d.length),y.set(v,d.length+m.length),y[b++]=p>>>24&255,y[b++]=p>>>16&255,y[b++]=p>>>8&255,y[b++]=255&p,t.__addimage__.arrayBufferToBinaryString(y)},n=function(t){var e=30720;return e|=Math.min(3,(t-1&255)>>1)<<6,e|=0,[120,255&(e+=31-e%31)]},r=function(t,e,n,r){for(var i,o,a,s=t.length/e,c=new Uint8Array(t.length+s),u=l(),f=0;f<s;f+=1){if(a=f*e,i=t.subarray(a,a+e),r)c.set(r(i,n,o),a+f);else{for(var d,p=u.length,g=[];d<p;d+=1)g[d]=u[d](i,n,o);var m=h(g.concat());c.set(g[m],a+f)}o=i}return c},i=function(t){var e=Array.apply([],t);return e.unshift(0),e},o=function(t,e){var n,r=[],i=t.length;r[0]=1;for(var o=0;o<i;o+=1)n=t[o-e]||0,r[o+1]=t[o]-n+256&255;return r},a=function(t,e,n){var r,i=[],o=t.length;i[0]=2;for(var a=0;a<o;a+=1)r=n&&n[a]||0,i[a+1]=t[a]-r+256&255;return i},s=function(t,e,n){var r,i,o=[],a=t.length;o[0]=3;for(var s=0;s<a;s+=1)r=t[s-e]||0,i=n&&n[s]||0,o[s+1]=t[s]+256-(r+i>>>1)&255;return o},c=function(t,e,n){var r,i,o,a,s=[],c=t.length;s[0]=4;for(var l=0;l<c;l+=1)r=t[l-e]||0,i=n&&n[l]||0,o=n&&n[l-e]||0,a=u(r,i,o),s[l+1]=t[l]-a+256&255;return s},u=function(t,e,n){if(t===e&&e===n)return t;var r=Math.abs(e-n),i=Math.abs(t-n),o=Math.abs(t+e-n-n);return r<=i&&r<=o?t:i<=o?e:n},l=function(){return[i,o,a,s,c]},h=function(t){var e=t.map(function(t){return t.reduce(function(t,e){return t+Math.abs(e)},0)});return e.indexOf(Math.min.apply(null,e))};t.processPNG=function(n,r,i,o){var a,s,c,u,l,h,f,d,p,g,m,v,b,y,w,x=this.decode.FLATE_DECODE,_="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(c=new qt(n)).imgData,s=c.bits,a=c.colorSpace,l=c.colors,-1!==[4,6].indexOf(c.colorType)){if(8===c.bits){p=(d=32==c.pixelBitlength?new Uint32Array(c.decodePixels().buffer):16==c.pixelBitlength?new Uint16Array(c.decodePixels().buffer):new Uint8Array(c.decodePixels().buffer)).length,m=new Uint8Array(p*c.colors),g=new Uint8Array(p);var A,S=c.pixelBitlength-c.bits;for(y=0,w=0;y<p;y++){for(b=d[y],A=0;A<S;)m[w++]=b>>>A&255,A+=c.bits;g[y]=b>>>A&255}}if(16===c.bits){p=(d=new Uint32Array(c.decodePixels().buffer)).length,m=new Uint8Array(p*(32/c.pixelBitlength)*c.colors),g=new Uint8Array(p*(32/c.pixelBitlength)),v=c.colors>1,y=0,w=0;for(var k=0;y<p;)b=d[y++],m[w++]=b>>>0&255,v&&(m[w++]=b>>>16&255,b=d[y++],m[w++]=b>>>0&255),g[k++]=b>>>16&255;s=8}o!==t.image_compression.NONE?(n=e(m,c.width*c.colors,c.colors,o),f=e(g,c.width,1,o)):(n=m,f=g,x=void 0)}if(3===c.colorType&&(a=this.color_spaces.INDEXED,h=c.palette,c.transparency.indexed)){var N=c.transparency.indexed,C=0;for(y=0,p=N.length;y<p;++y)C+=N[y];if((C/=255)==p-1&&-1!==N.indexOf(0))u=[N.indexOf(0)];else if(C!==p){for(d=c.decodePixels(),g=new Uint8Array(d.length),y=0,p=d.length;y<p;y++)g[y]=N[d[y]];f=e(g,c.width,1)}}var L=function(e){var n;switch(o){case t.image_compression.FAST:n=11;break;case t.image_compression.MEDIUM:n=13;break;case t.image_compression.SLOW:n=14;break;default:n=12}return n}();return x===this.decode.FLATE_DECODE&&(_="/Predictor "+L+" "),_+="/Colors "+l+" /BitsPerComponent "+s+" /Columns "+c.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:i,data:n,index:r,filter:x,decodeParameters:_,transparency:u,palette:h,sMask:f,predictor:L,width:c.width,height:c.height,bitsPerComponent:s,colorSpace:a}}}}(O.API),function(t){t.processGIF89A=function(e,n,r,i){var o=new function(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,i=t[e++],o=i>>7,a=1<<1+(7&i);t[e++],t[e++];var s=null,c=null;o&&(s=e,c=a,e+=3*a);var u=!0,l=[],h=0,f=null,d=0,p=null;for(this.width=n,this.height=r;u&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((C=t[e++])>=0))throw Error("Invalid block size");if(0===C)break;e+=C}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];h=t[e++]|t[e++]<<8,f=t[e++],0==(1&g)&&(f=null),d=g>>2&7,e++;break;case 254:for(;;){if(!((C=t[e++])>=0))throw Error("Invalid block size");if(0===C)break;e+=C}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++],x=w>>6&1,_=1<<1+(7&w),A=s,S=c,k=!1;w>>7&&(k=!0,A=e,S=_,e+=3*_);var N=e;for(e++;;){var C;if(!((C=t[e++])>=0))throw Error("Invalid block size");if(0===C)break;e+=C}l.push({x:m,y:v,width:b,height:y,has_local_palette:k,palette_offset:A,palette_size:S,data_offset:N,data_length:e-N,transparent_index:f,interlaced:!!x,delay:h,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=l.length)throw new Error("Frame index out of range.");return l[t]},this.decodeAndBlitFrameBGRA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);Ut(t,i.data_offset,a,o);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,l=n-u,h=u,f=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),p=f,g=4*l;!0===i.interlaced&&(g+=4*n*7);for(var m=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===h&&(h=u,(p+=g)>=d&&(g=4*l+4*n*(m-1),p=f+(u+l)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],_=t[s+3*y+2];r[p++]=_,r[p++]=x,r[p++]=w,r[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);Ut(t,i.data_offset,a,o);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,l=n-u,h=u,f=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),p=f,g=4*l;!0===i.interlaced&&(g+=4*n*7);for(var m=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===h&&(h=u,(p+=g)>=d&&(g=4*l+4*n*(m-1),p=f+(u+l)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],_=t[s+3*y+2];r[p++]=w,r[p++]=x,r[p++]=_,r[p++]=255}--h}}}(e),a=o.width,s=o.height,c=[];o.decodeAndBlitFrameRGBA(0,c);var u={data:c,width:a,height:s},l=new Vt(100).encode(u,100);return t.processJPEG.call(this,l,n,r,i)},t.processGIF87A=t.processGIF89A}(O.API),Ht.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ht.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){o.log("bit decode error:"+t)}},Ht.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var c=this.palette[o>>7-s&1];this.data[a+4*s]=c.blue,this.data[a+4*s+1]=c.green,this.data[a+4*s+2]=c.red,this.data[a+4*s+3]=255}0!==n&&(this.pos+=4-n)}},Ht.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*i*4,s=o>>4,c=15&o,u=this.palette[s];if(this.data[a]=u.blue,this.data[a+1]=u.green,this.data[a+2]=u.red,this.data[a+3]=255,2*i+1>=this.width)break;u=this.palette[c],this.data[a+4]=u.blue,this.data[a+4+1]=u.green,this.data[a+4+2]=u.red,this.data[a+4+3]=255}0!==e&&(this.pos+=4-e)}},Ht.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!==t&&(this.pos+=4-t)}},Ht.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,c=(o>>10&e)/e*255|0,u=o>>15?255:0,l=r*this.width*4+4*i;this.data[l]=c,this.data[l+1]=s,this.data[l+2]=a,this.data[l+3]=u}this.pos+=t}},Ht.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,c=(a>>5&n)/n*255|0,u=(a>>11)/e*255|0,l=i*this.width*4+4*o;this.data[l]=u,this.data[l+1]=c,this.data[l+2]=s,this.data[l+3]=255}this.pos+=t}},Ht.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},Ht.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=a}},Ht.prototype.getData=function(){return this.data},
/**
* @license
* Copyright (c) 2018 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){t.processBMP=function(e,n,r,i){var o=new Ht(e,!1),a=o.width,s=o.height,c={data:o.getData(),width:a,height:s},u=new Vt(100).encode(c,100);return t.processJPEG.call(this,u,n,r,i)}}(O.API),Gt.prototype.getData=function(){return this.data},
/**
* @license
* Copyright (c) 2019 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){t.processWEBP=function(e,n,r,i){var o=new Gt(e,!1),a=o.width,s=o.height,c={data:o.getData(),width:a,height:s},u=new Vt(100).encode(c,100);return t.processJPEG.call(this,u,n,r,i)}}(O.API),O.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this
/** @license
* MIT license.
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
* 2014 Diego Casorran, https://github.com/diegocr
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/},Ot=O.API,Dt=Ot.getCharWidthsArray=function(t,e){var n,r,i=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:i.metadata.Unicode.widths,c=s.fof?s.fof:1,u=e.kerning?e.kerning:i.metadata.Unicode.kerning,l=u.fof?u.fof:1,h=!1!==e.doKerning,f=0,d=t.length,p=0,g=s[0]||c,m=[];for(n=0;n<d;n++)r=t.charCodeAt(n),"function"==typeof i.metadata.widthOfString?m.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+a*(1e3/o)||0)/1e3):(f=h&&"object"==typeof u[r]&&!isNaN(parseInt(u[r][p],10))?u[r][p]/l:0,m.push((s[r]||g)/c+f)),p=r;return m},Rt=Ot.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Ot.processArabic&&(t=Ot.processArabic(t)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:Dt.apply(this,arguments).reduce(function(t,e){return t+e},0)},jt=function(t,e,n,r){for(var i=[],o=0,a=t.length,s=0;o!==a&&s+e[o]<n;)s+=e[o],o++;i.push(t.slice(0,o));var c=o;for(s=0;o!==a;)s+e[o]>r&&(i.push(t.slice(c,o)),s=0,c=o),s+=e[o],o++;return c!==o&&i.push(t.slice(c,o)),i},Ft=function(t,e,n){n||(n={});var r,i,o,a,s,c,u,l=[],h=[l],f=n.textIndent||0,d=0,p=0,g=t.split(" "),m=Dt.apply(this,[" ",n])[0];if(c=-1===n.lineIndent?g[0].length+2:n.lineIndent||0){var v=Array(c).join(" "),b=[];g.map(function(t){(t=t.split(/\s*\n/)).length>1?b=b.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):b.push(t[0])}),g=b,c=Rt.apply(this,[v,n])}for(o=0,a=g.length;o<a;o++){var y=0;if(r=g[o],c&&"\n"==r[0]&&(r=r.substr(1),y=1),f+d+(p=(i=Dt.apply(this,[r,n])).reduce(function(t,e){return t+e},0))>e||y){if(p>e){for(s=jt.apply(this,[r,i,e-(f+d),e]),l.push(s.shift()),l=[s.pop()];s.length;)h.push([s.shift()]);p=i.slice(r.length-(l[0]?l[0].length:0)).reduce(function(t,e){return t+e},0)}else l=[r];h.push(l),f=p+c,d=m}else l.push(r),f+=d+p,d=m}return u=c?function(t,e){return(e?v:"")+t.join(" ")}:function(t){return t.join(" ")},h.map(u)},Ot.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var a=1*this.internal.scaleFactor*e/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,c,u=[];for(s=0,c=r.length;s<c;s++)u=u.concat(Ft.apply(this,[r[s],a,o]));return u},
/** @license
jsPDF standard_fonts_metrics plugin
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
* MIT license.
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},r={},i=0;i<e.length;i++)n[e[i]]="0123456789abcdef"[i],r["0123456789abcdef"[i]]=e[i];var o=function(t){return"0x"+parseInt(t,10).toString(16)},a=t.__fontmetrics__.compress=function(t){var e,n,i,s,c=["{"];for(var u in t){if(e=t[u],isNaN(parseInt(u,10))?n="'"+u+"'":(u=parseInt(u,10),n=(n=o(u).slice(2)).slice(0,-1)+r[n.slice(-1)]),"number"==typeof e)e<0?(i=o(e).slice(3),s="-"):(i=o(e).slice(2),s=""),i=s+i.slice(0,-1)+r[i.slice(-1)];else{if("object"!=typeof e)throw new Error("Don't know what to do with value type "+typeof e+".");i=a(e)}c.push(n+i)}return c.push("}"),c.join("")},s=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,r,i,o,a={},s=1,c=a,u=[],l="",h="",f=t.length-1,d=1;d<f;d+=1)"'"==(o=t[d])?e?(i=e.join(""),e=void 0):e=[]:e?e.push(o):"{"==o?(u.push([c,i]),c={},i=void 0):"}"==o?((r=u.pop())[0][r[1]]=c,i=void 0,c=r[0]):"-"==o?s=-1:void 0===i?n.hasOwnProperty(o)?(l+=n[o],i=parseInt(l,16)*s,s=1,l=""):l+=o:n.hasOwnProperty(o)?(h+=n[o],c[i]=parseInt(h,16)*s,s=1,i=void 0,h=""):h+=o;return a},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},l={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,n=l.Unicode[e.postScriptName];n&&(e.metadata.Unicode={},e.metadata.Unicode.widths=n.widths,e.metadata.Unicode.kerning=n.kerning);var r=u.Unicode[e.postScriptName];r&&(e.metadata.Unicode.encoding=r,e.encoding=r.codePages[0])}])}(O.API),
/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,o=n.instance;if(!i.isStandardFont){if(void 0===o)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(r=!1===o.existsFileInVFS(i.postScriptName)?o.loadFile(i.postScriptName):o.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?e(r):e(u(r)),n.metadata=t.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(i,r)}}])}(O),
/** @license
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
function(t){function e(){return(r.canvg?Promise.resolve(r.canvg):n.e(0).then(n.bind(null,166))).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}O.API.addSvgAsImage=function(t,n,r,i,a,s,c,u){if(isNaN(n)||isNaN(r))throw o.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw o.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=i,l.height=a;var h=l.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,l.width,l.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then(function(e){return e.fromString(h,t,f)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(t){return t.render(f)}).then(function(){d.addImage(l.toDataURL("image/jpeg",1),n,r,i,a,c,u)})}}(),O.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},O.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,i,o,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(a),c=[],u=0,l=0,h=0;function f(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var d=s.length;for(h=0;h<d;h+=1)n[s[h]].value=n[s[h]].defaultValue,n[s[h]].explicitSet=!1}if("object"==typeof t)for(i in t)if(o=t[i],f(s,i)&&void 0!==o){if("boolean"===n[i].type&&"boolean"==typeof o)n[i].value=o;else if("name"===n[i].type&&f(n[i].valueSet,o))n[i].value=o;else if("integer"===n[i].type&&Number.isInteger(o))n[i].value=o;else if("array"===n[i].type){for(u=0;u<o.length;u+=1)if(r=!0,1===o[u].length&&"number"==typeof o[u][0])c.push(String(o[u]-1));else if(o[u].length>1){for(l=0;l<o[u].length;l+=1)"number"!=typeof o[u][l]&&(r=!1);!0===r&&c.push([o[u][0]-1,o[u][1]-1].join(" "))}n[i].value="["+c.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this
/** ====================================================================
* @license
* jsPDF XMP metadata plugin
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/},function(t){var e=function(){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),a=n.length+r.length+i.length+e.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+o),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};O.API.addMetadata=function(t,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",e)),this}}(),function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<s;++a){if(n=e.metadata.characterToGlyph(t.charCodeAt(a)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(a),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(i[4-n.length],n)}return o.join("")},r=function(t){var e,n,r,i,o,a,s;for(o="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],a=0,s=(n=Object.keys(t).sort(function(t,e){return t-e})).length;a<s;a++)e=n[a],r.length>=100&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+i+">"));return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,o=e.newObject,a=e.putStream,s=e.pdfEscapeWithNeededParanthesis;if(n.metadata instanceof t.API.TTFFont&&"Identity-H"===n.encoding){for(var c=n.metadata.Unicode.widths,u=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),l="",h=0;h<u.length;h++)l+=String.fromCharCode(u[h]);var f=o();a({data:l,addLength1:!0,objectId:f}),i("endobj");var d=o();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),i("endobj");var p=o();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+s(n.fontName)),i("/FontFile2 "+f+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/Flags "+n.metadata.flags),i("/StemV "+n.metadata.stemV),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i(">>"),i("endobj");var g=o();i("<<"),i("/Type /Font"),i("/BaseFont /"+s(n.fontName)),i("/FontDescriptor "+p+" 0 R"),i("/W "+t.API.PDFObject.convert(c)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+n.encoding+")"),i(">>"),i(">>"),i("endobj"),n.objectNumber=o(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+d+" 0 R"),i("/BaseFont /"+s(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+g+" 0 R]"),i(">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,o=e.newObject,a=e.putStream,s=e.pdfEscapeWithNeededParanthesis;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var c=n.metadata.rawData,u="",l=0;l<c.length;l++)u+=String.fromCharCode(c[l]);var h=o();a({data:u,addLength1:!0,objectId:h}),i("endobj");var f=o();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:f}),i("endobj");var d=o();i("<<"),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i("/StemV "+n.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+h+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/FontName /"+s(n.fontName)),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i(">>"),i("endobj"),n.objectNumber=o();for(var p=0;p<n.metadata.hmtx.widths.length;p++)n.metadata.hmtx.widths[p]=parseInt(n.metadata.hmtx.widths[p]*(1e3/n.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+f+" 0 R/BaseFont/"+n.fontName+"/FontDescriptor "+d+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,r=t.text||"",i=t.x,o=t.y,a=t.options||{},s=t.mutex||{},c=s.pdfEscape,u=s.activeFontKey,l=s.fonts,h=u,f="",d=0,p="",g=l[h].encoding;if("Identity-H"!==l[h].encoding)return{text:r,x:i,y:o,options:a,mutex:s};for(p=r,h=u,Array.isArray(r)&&(p=r[0]),d=0;d<p.length;d+=1)l[h].metadata.hasOwnProperty("cmap")&&(e=l[h].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),e||p[d].charCodeAt(0)<256&&l[h].metadata.hasOwnProperty("Unicode")?f+=p[d]:f+="";var m="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===g?m=c(f,h).split("").map(function(t){return t.charCodeAt(0).toString(16)}).join(""):"Identity-H"===g&&(m=n(f,l[h])),s.isHex=!0,{text:m,x:i,y:o,options:a,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],r={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var o=0;for(o=0;o<e.length;o+=1)Array.isArray(e[o])&&3===e[o].length?n.push([i(Object.assign({},r,{text:e[o][0]})).text,e[o][1],e[o][2]]):n.push(i(Object.assign({},r,{text:e[o]})).text);t.text=n}else t.text=i(Object.assign({},r,{text:e})).text}])}(O),
/**
* @license
* jsPDF virtual FileSystem functionality
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(O.API),
/**
* @license
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
* MIT License
*/
function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,r,i,o,a,s,c,u=e,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var b=function(t){var e=t.charCodeAt(),n=e>>8,r=d[n];return void 0!==r?u[256*r+(255&e)]:252===n||253===n?"AL":g.test(n)?"L":8===n?"R":"N"},y=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=b(t.charAt(n))))return!1;if("R"===e)return!0}return!1},w=function(t,e,a,s){var c,u,l,h,f=e[s];switch(f){case"L":case"R":m=!1;break;case"N":case"AN":break;case"EN":m&&(f="AN");break;case"AL":m=!0,f="R";break;case"WS":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(c=a[s-1])&&"AN"!==c||"EN"!==(u=e[s+1])&&"AN"!==u?f="N":m&&(u="AN"),f=u===c?u:"N";break;case"ES":f="EN"===(c=s>0?a[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===a[s-1]){f="EN";break}if(m){f="N";break}for(l=s+1,h=e.length;l<h&&"ET"===e[l];)l++;f=l<h&&"EN"===e[l]?"EN":"N";break;case"NSM":if(i&&!o){for(h=e.length,l=s+1;l<h&&"NSM"===e[l];)l++;if(l<h){var d=t[s],p=d>=1425&&d<=2303||64286===d;if(c=e[l],p&&("R"===c||"AL"===c)){f="R";break}}}f=s<1||"B"===(c=e[s-1])?"N":a[s-1];break;case"B":m=!1,n=!0,f=v;break;case"S":r=!0,f="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"BN":f="N"}return f},x=function(t,e,n){var r=t.split("");return n&&_(r,n,{hiLevel:v}),r.reverse(),e&&e.reverse(),r.join("")},_=function(t,e,i){var o,a,s,c,u,d=-1,p=t.length,g=0,y=[],x=v?h:l,_=[];for(m=!1,n=!1,r=!1,a=0;a<p;a++)_[a]=b(t[a]);for(s=0;s<p;s++){if(u=g,y[s]=w(t,_,y,s),o=240&(g=x[u][f[y[s]]]),g&=15,e[s]=c=x[g][5],o>0)if(16===o){for(a=d;a<s;a++)e[a]=1;d=-1}else d=-1;if(x[g][6])-1===d&&(d=s);else if(d>-1){for(a=d;a<s;a++)e[a]=c;d=-1}"B"===_[s]&&(e[s]=0),i.hiLevel|=c}r&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=v;for(var i=r-1;i>=0&&"WS"===t[i];i--)e[i]=v}}(_,e,p)},A=function(t,e,r,i,o){if(!(o.hiLevel<t)){if(1===t&&1===v&&!n)return e.reverse(),void(r&&r.reverse());for(var a,s,c,u,l=e.length,h=0;h<l;){if(i[h]>=t){for(c=h+1;c<l&&i[c]>=t;)c++;for(u=h,s=c-1;u<s;u++,s--)a=e[u],e[u]=e[s],e[s]=a,r&&(a=r[u],r[u]=r[s],r[s]=a);h=c}h++}}},S=function(t,e,n){var r=t.split(""),i={hiLevel:v};return n||(n=[]),_(r,n,i),function(t,e,n){if(0!==n.hiLevel&&c)for(var r,i=0;i<t.length;i++)1===e[i]&&(r=p.indexOf(t[i]))>=0&&(t[i]=p[r+1])}(r,n,i),A(2,r,e,n,i),A(1,r,e,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===o&&(o=y(t)),void 0===s&&(s=y(t))}(t,e),i||!a||s)if(i&&a&&o^s)v=o?1:0,t=x(t,e,n);else if(!i&&a&&s)v=o?1:0,t=S(t,e,n),t=x(t,e);else if(!i||o||a||s){if(i&&!a&&o^s)t=x(t,e),o?(v=0,t=S(t,e,n)):(v=1,t=S(t,e,n),t=x(t,e));else if(i&&o&&!a&&s)v=1,t=S(t,e,n),t=x(t,e);else if(!i&&!a&&o^s){var r=c;o?(v=1,t=S(t,e,n),v=0,c=!1,t=S(t,e,n),c=r):(v=0,t=S(t,e,n),t=x(t,e),v=1,c=!1,t=S(t,e,n),c=r,t=x(t,e))}}else v=0,t=S(t,e,n);else v=o?1:0,t=S(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,a=t.isOutputVisual,o=t.isInputRtl,s=t.isOutputRtl,c=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,r=(t.x,t.y,t.options||{}),i=(t.mutex,r.lang,[]);if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(e)){var o=0;for(i=[],o=0;o<e.length;o+=1)"[object Array]"===Object.prototype.toString.call(e[o])?i.push([n.doBidiReorder(e[o][0]),e[o][1],e[o][2]]):i.push([n.doBidiReorder(e[o])]);t.text=i}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(O),O.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new Yt(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new fe(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new Zt(this.contents),this.head=new Xt(this),this.name=new ie(this),this.cmap=new $t(this),this.toUnicode={},this.hhea=new te(this),this.maxp=new oe(this),this.hmtx=new ae(this),this.post=new ne(this),this.os2=new ee(this),this.loca=new he(this),this.glyf=new ce(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.bbox).length;e<n;e++)t=r[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),0!=(32768&(e=r>>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var r,i,o,a;for(o=0,i=0,a=(t=""+t).length;0<=a?i<a:i>a;i=0<=a?++i:--i)r=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return o*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var Wt,Yt=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r;for(r=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)r.push(this.writeByte(t.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,o,a,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),Zt=function(){var t;function e(t){var e,n,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,r,i,o,a,s,c,u,l,h,f,d,p;for(p in f=Object.keys(e).length,s=Math.log(2),l=16*Math.floor(Math.log(f)/s),o=Math.floor(l/s),u=16*f-l,(r=new Yt).writeInt(this.scalarType),r.writeShort(f),r.writeShort(l),r.writeShort(o),r.writeShort(u),i=16*f,c=r.pos+i,a=null,d=[],e)for(h=e[p],r.writeString(p),r.writeInt(t(h)),r.writeInt(c),r.writeInt(h.length),d=d.concat(h),"head"===p&&(a=c),c+=h.length;c%4;)d.push(0),c++;return r.write(d),n=2981146554-t(r.data),r.pos=a+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=se.call(t);t.length%4;)t.push(0);for(r=new Yt(t),n=0,e=0,i=t.length;e<i;e=e+=4)n+=r.readUInt32();return 4294967295&n},e}(),Jt={}.hasOwnProperty,Qt=function(t,e){for(var n in e)Jt.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};Wt=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var Xt=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Qt(e,Wt),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new Yt).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(),Kt=function(){function t(t,e){var n,r,i,o,a,s,c,u,l,h,f,d,p,g,m,v,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),l=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(f=t.readUInt16(),h=f/2,t.pos+=6,i=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,p=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),c=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),u=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,a=function(){var e,n;for(n=[],s=e=0;0<=r?e<r:e>r;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=m=0,b=i.length;m<b;s=++m)for(g=i[s],n=v=d=p[s];d<=g?v<=g:v>=g;n=d<=g?++v:--v)0===u[s]?o=n+c[s]:0!==(o=a[u[s]/2+(n-d)-(h-s)]||0)&&(o+=c[s]),this.codeMap[n]=65535&o}t.pos=l}return t.encode=function(t,e){var n,r,i,o,a,s,c,u,l,h,f,d,p,g,m,v,b,y,w,x,_,A,S,k,N,C,L,P,M,I,T,E,O,D,R,j,F,B,z,q,U,V,H,G,W,Y;switch(P=new Yt,o=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(p=0,g=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),v={0:0},i={},M=0,O=o.length;M<O;M++)null==v[H=t[r=o[M]]]&&(v[H]=++p),i[r]={old:t[r],new:v[t[r]]},g[r]=v[t[r]];return P.writeUInt16(1),P.writeUInt16(0),P.writeUInt32(12),P.writeUInt16(0),P.writeUInt16(262),P.writeUInt16(0),P.write(g),{charMap:i,subtable:P.data,maxGlyphID:p+1};case"unicode":for(C=[],l=[],b=0,v={},n={},m=c=null,I=0,D=o.length;I<D;I++)null==v[w=t[r=o[I]]]&&(v[w]=++b),n[r]={old:w,new:v[w]},a=v[w]-r,null!=m&&a===c||(m&&l.push(m),C.push(r),c=a),m=r;for(m&&l.push(m),l.push(65535),C.push(65535),k=2*(S=C.length),A=2*Math.pow(Math.log(S)/Math.LN2,2),h=Math.log(A/2)/Math.LN2,_=2*S-A,s=[],x=[],f=[],d=T=0,R=C.length;T<R;d=++T){if(N=C[d],u=l[d],65535===N){s.push(0),x.push(0);break}if(N-(L=n[N].new)>=32768)for(s.push(0),x.push(2*(f.length+S-d)),r=E=N;N<=u?E<=u:E>=u;r=N<=u?++E:--E)f.push(n[r].new);else s.push(L-N),x.push(0)}for(P.writeUInt16(3),P.writeUInt16(1),P.writeUInt32(12),P.writeUInt16(4),P.writeUInt16(16+8*S+2*f.length),P.writeUInt16(0),P.writeUInt16(k),P.writeUInt16(A),P.writeUInt16(h),P.writeUInt16(_),U=0,j=l.length;U<j;U++)r=l[U],P.writeUInt16(r);for(P.writeUInt16(0),V=0,F=C.length;V<F;V++)r=C[V],P.writeUInt16(r);for(G=0,B=s.length;G<B;G++)a=s[G],P.writeUInt16(a);for(W=0,z=x.length;W<z;W++)y=x[W],P.writeUInt16(y);for(Y=0,q=f.length;Y<q;Y++)p=f[Y],P.writeUInt16(p);return{charMap:n,subtable:P.data,maxGlyphID:b+1}}},t}(),$t=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Qt(e,Wt),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)e=new Kt(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=Kt.encode(t,e),(r=new Yt).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),te=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Qt(e,Wt),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),ee=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Qt(e,Wt),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),ne=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Qt(e,Wt),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,r;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var i;for(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)e=t.readByte(),r.push(this.names.push(t.readString(e)));return r;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 196608:break;case 262144:return this.map=function(){var e,n,r;for(r=[],i=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;i=0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},e}(),re=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},ie=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Qt(e,Wt),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,o,a,s,c,u,l,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),a=t.readShort(),n=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(s={},i=u=0,l=n.length;u<l;i=++u)r=n[i],t.pos=r.offset,c=t.readString(r.length),o=new re(c,r),null==s[h=r.nameID]&&(s[h]=[]),s[r.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),oe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Qt(e,Wt),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),ae=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Qt(e,Wt),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,n,r,i,o,a,s;for(t.pos=this.offset,this.metrics=[],e=0,a=this.file.hhea.numberOfMetrics;0<=a?e<a:e>a;e=0<=a?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],e=n=0;0<=r?n<r:n>r;e=0<=r?++n:--n)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,n,r;for(r=[],t=0,e=(n=this.metrics).length;t<e;t++)i=n[t],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],e=o=0;0<=r?o<r:o>r;e=0<=r?++o:--o)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),se=[].slice,ce=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Qt(e,Wt),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,o,a,s,c,u,l;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,o=(a=new Yt(e.read(r))).readShort(),c=a.readShort(),l=a.readShort(),s=a.readShort(),u=a.readShort(),this.cache[t]=-1===o?new le(a,c,l,s,u):new ue(a,o,c,l,s,u),this.cache[t]))},e.prototype.encode=function(t,e,n){var r,i,o,a,s;for(o=[],i=[],a=0,s=e.length;a<s;a++)r=t[e[a]],i.push(o.length),r&&(o=o.concat(r.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),ue=function(){function t(t,e,n,r,i,o){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),le=function(){function t(t,e,n,r,i){var o,a;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new Yt(se.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),he=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Qt(e,Wt),e.prototype.tag="loca",e.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=4)r.push(t.readUInt32());return r}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<n.length;++o)if(n[o]=r,i<e.length&&e[i]==o){++i,n[o]=r;var a=this.offsets[o],s=this.offsets[o+1]-a;s>0&&(r+=s)}for(var c=new Array(4*n.length),u=0;u<n.length;++u)c[4*u+3]=255&n[u],c[4*u+2]=(65280&n[u])>>8,c[4*u+1]=(16711680&n[u])>>16,c[4*u]=(4278190080&n[u])>>24;return c},e}(),fe=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,o,a,s;for(r={},o=0,a=t.length;o<a;o++)r[i=t[o]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,o,a,s,c,u,l,h,f,d,p,g,m;for(r in n=$t.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},m=n.charMap)f[(s=m[r]).old]=s.new;for(d in h=n.maxGlyphID,o)d in f||(f[d]=h++);return u=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(f),l=Object.keys(u).sort(function(t,e){return t-e}),p=function(){var t,e,n;for(n=[],t=0,e=l.length;t<e;t++)a=l[t],n.push(u[a]);return n}(),i=this.font.glyf.encode(o,p,f),c=this.font.loca.encode(i.offsets,p),g={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();O.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var r,i,o,a;if(Array.isArray(n))return"["+function(){var t,i,o;for(o=[],t=0,i=n.length;t<i;t++)r=n[t],o.push(e.convert(r));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(i in o=["<<"],n)a=n[i],o.push("/"+i+" "+e.convert(a));return o.push(">>"),o.join("\n")}return""+n},e}(),O.API.adler32cs=function(){var t,e,n,r,i,o="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,a=null,s=function(){if(!o)return function(){return!1};try{var t={};"function"==typeof t.Buffer&&(a=t.Buffer)}catch(t){}return function(t){return t instanceof ArrayBuffer||null!==a&&t instanceof a}}(),c=null!==a?function(t){return new a(t,"utf8").toString("binary")}:function(t){return unescape(encodeURIComponent(t))},u=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i<o;i++)r=(r+(n=(n+(255&e.charCodeAt(i)))%65521))%65521;return(r<<16|n)>>>0},l=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i<o;i++)r=(r+(n=(n+e[i])%65521))%65521;return(r<<16|n)>>>0},h={},f=h.Adler32=((i=(r=function(t){if(!(this instanceof r))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(t=null===t?1:+t))throw new Error("First arguments needs to be a finite number.");this.checksum=t>>>0}).prototype={}).constructor=r,r.from=((t=function(t){if(!(this instanceof r))throw new TypeError("Constructor cannot called be as a function.");if(null===t)throw new Error("First argument needs to be a string.");this.checksum=u(1,t.toString())}).prototype=i,t),r.fromUtf8=((e=function(t){if(!(this instanceof r))throw new TypeError("Constructor cannot called be as a function.");if(null===t)throw new Error("First argument needs to be a string.");var e=c(t.toString());this.checksum=u(1,e)}).prototype=i,e),o&&(r.fromBuffer=((n=function(t){if(!(this instanceof r))throw new TypeError("Constructor cannot called be as a function.");if(!s(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=l(1,e)}).prototype=i,n)),i.update=function(t){if(null===t)throw new Error("First argument needs to be a string.");return t=t.toString(),this.checksum=u(this.checksum,t)},i.updateUtf8=function(t){if(null===t)throw new Error("First argument needs to be a string.");var e=c(t.toString());return this.checksum=u(this.checksum,e)},o&&(i.updateBuffer=function(t){if(!s(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=l(this.checksum,e)}),i.clone=function(){return new f(this.checksum)},r);return h.from=function(t){if(null===t)throw new Error("First argument needs to be a string.");return u(1,t.toString())},h.fromUtf8=function(t){if(null===t)throw new Error("First argument needs to be a string.");var e=c(t.toString());return u(1,e)},o&&(h.fromBuffer=function(t){if(!s(t))throw new Error("First argument need to be ArrayBuffer.");var e=new Uint8Array(t);return l(1,e)}),h}(),e.a=O}).call(e,n(45))},function(t,e,n){"use strict";
/*!
* vue-i18n v8.28.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/var r=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],i=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function o(t,e){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function a(t,e){"undefined"!=typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var s=Array.isArray;function c(t){return null!==t&&"object"==typeof t}function u(t){return"string"==typeof t}var l=Object.prototype.toString,h="[object Object]";function f(t){return l.call(t)===h}function d(t){return null===t||void 0===t}function p(t){return"function"==typeof t}function g(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=null,r=null;return 1===t.length?c(t[0])||s(t[0])?r=t[0]:"string"==typeof t[0]&&(n=t[0]):2===t.length&&("string"==typeof t[0]&&(n=t[0]),(c(t[1])||s(t[1]))&&(r=t[1])),{locale:n,params:r}}function m(t){return JSON.parse(JSON.stringify(t))}function v(t,e){return!!~t.indexOf(e)}var b=Object.prototype.hasOwnProperty;function y(t,e){return b.call(t,e)}function w(t){for(var e=arguments,n=Object(t),r=1;r<arguments.length;r++){var i=e[r];if(void 0!==i&&null!==i){var o=void 0;for(o in i)y(i,o)&&(c(i[o])?n[o]=w(n[o],i[o]):n[o]=i[o])}}return n}function x(t,e){if(t===e)return!0;var n=c(t),r=c(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=s(t),o=s(e);if(i&&o)return t.length===e.length&&t.every(function(t,n){return x(t,e[n])});if(i||o)return!1;var a=Object.keys(t),u=Object.keys(e);return a.length===u.length&&a.every(function(n){return x(t[n],e[n])})}catch(t){return!1}}var _={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.data,r=e.parent,i=e.props,o=e.slots,a=r.$i18n;if(a){var s=i.path,c=i.locale,u=i.places,l=o(),h=a.i(s,c,function(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}(l)||u?function(t,e){var n=e?function(t){0;return Array.isArray(t)?t.reduce(S,{}):Object.assign({},t)}(e):{};if(!t)return n;var r=(t=t.filter(function(t){return t.tag||""!==t.text.trim()})).every(k);0;return t.reduce(r?A:S,n)}(l.default,u):l),f=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return f?t(f,n,h):h}}};function A(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function S(t,e,n){return t[n]=e,t}function k(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var N,C={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var n=e.props,i=e.parent,o=e.data,a=i.$i18n;if(!a)return null;var s=null,l=null;u(n.format)?s=n.format:c(n.format)&&(n.format.key&&(s=n.format.key),l=Object.keys(n.format).reduce(function(t,e){var i;return v(r,e)?Object.assign({},t,((i={})[e]=n.format[e],i)):t},null));var h=n.locale||a.locale,f=a._ntp(n.value,h,s,l),d=f.map(function(t,e){var n,r=o.scopedSlots&&o.scopedSlots[t.type];return r?r(((n={})[t.type]=t.value,n.index=e,n.parts=f,n)):t.value}),p=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return p?t(p,{attrs:o.attrs,class:o.class,staticClass:o.staticClass},d):d}};function L(t,e,n){I(t,n)&&T(t,e,n)}function P(t,e,n,r){if(I(t,n)){var i=n.context.$i18n;(function(t,e){var n=e.context;return t._locale===n.$i18n.locale})(t,n)&&x(e.value,e.oldValue)&&x(t._localeMessage,i.getLocaleMessage(i.locale))||T(t,e,n)}}function M(t,e,n,r){if(n.context){var i=n.context.$i18n||{};e.modifiers.preserve||i.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t._vt,t._locale=void 0,delete t._locale,t._localeMessage=void 0,delete t._localeMessage}else o("Vue instance does not exists in VNode context")}function I(t,e){var n=e.context;return n?!!n.$i18n||(o("VueI18n instance does not exists in Vue instance"),!1):(o("Vue instance does not exists in VNode context"),!1)}function T(t,e,n){var r,i,a=function(t){var e,n,r,i;u(t)?e=t:f(t)&&(e=t.path,n=t.locale,r=t.args,i=t.choice);return{path:e,locale:n,args:r,choice:i}}(e.value),s=a.path,c=a.locale,l=a.args,h=a.choice;if(s||c||l)if(s){var d=n.context;t._vt=t.textContent=null!=h?(r=d.$i18n).tc.apply(r,[s,h].concat(E(c,l))):(i=d.$i18n).t.apply(i,[s].concat(E(c,l))),t._locale=d.$i18n.locale,t._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}else o("`path` is required in v-t directive");else o("value type not supported")}function E(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||f(e))&&n.push(e),n}function O(t,e){void 0===e&&(e={bridge:!1}),O.installed=!0;(N=t).version&&Number(N.version.split(".")[0]);(function(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[t,r.locale,r._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[t,i.locale,i._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){for(var e,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){for(var e,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}})(N),N.mixin(function(t){function e(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===t&&(t=!1),t?{mounted:e}:{beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n){if(t.i18n instanceof at){if(t.__i18nBridge||t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};(t.__i18nBridge||t.__i18n).forEach(function(t){e=w(e,JSON.parse(t))}),Object.keys(e).forEach(function(n){t.i18n.mergeLocaleMessage(n,e[n])})}catch(t){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(f(t.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof at?this.$root.$i18n:null;if(n&&(t.i18n.root=this.$root,t.i18n.formatter=n.formatter,t.i18n.fallbackLocale=n.fallbackLocale,t.i18n.formatFallbackMessages=n.formatFallbackMessages,t.i18n.silentTranslationWarn=n.silentTranslationWarn,t.i18n.silentFallbackWarn=n.silentFallbackWarn,t.i18n.pluralizationRules=n.pluralizationRules,t.i18n.preserveDirectiveContent=n.preserveDirectiveContent),t.__i18nBridge||t.__i18n)try{var r=t.i18n&&t.i18n.messages?t.i18n.messages:{};(t.__i18nBridge||t.__i18n).forEach(function(t){r=w(r,JSON.parse(t))}),t.i18n.messages=r}catch(t){}var i=t.i18n.sharedMessages;i&&f(i)&&(t.i18n.messages=w(t.i18n.messages,i)),this._i18n=new at(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof at?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof at&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n?t.i18n instanceof at?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):f(t.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof at?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof at&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick(function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)})}}}}(e.bridge)),N.directive("t",{bind:L,update:P,unbind:M}),N.component(_.name,_),N.component(C.name,C),N.config.optionMergeStrategies.i18n=function(t,e){return void 0===e?t:e}}var D=function(){this._caches=Object.create(null)};D.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=function(t){var e=[],n=0,r="";for(;n<t.length;){var i=t[n++];if("{"===i){r&&e.push({type:"text",value:r}),r="";var o="";for(i=t[n++];void 0!==i&&"}"!==i;)o+=i,i=t[n++];var a="}"===i,s=R.test(o)?"list":a&&j.test(o)?"named":"unknown";e.push({value:o,type:s})}else"%"===i?"{"!==t[n]&&(r+=i):r+=i}return r&&e.push({type:"text",value:r}),e}(t),this._caches[t]=n),function(t,e){var n=[],r=0,i=Array.isArray(e)?"list":c(e)?"named":"unknown";if("unknown"===i)return n;for(;r<t.length;){var o=t[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(e[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(e[o.value]);break;case"unknown":0}r++}return n}(n,e)};var R=/^(?:\d)+/,j=/^(?:\w)+/;var F=0,B=1,z=2,q=3,U=0,V=4,H=5,G=6,W=7,Y=8,Z=[];Z[U]={ws:[U],ident:[3,F],"[":[V],eof:[W]},Z[1]={ws:[1],".":[2],"[":[V],eof:[W]},Z[2]={ws:[2],ident:[3,F],0:[3,F],number:[3,F]},Z[3]={ident:[3,F],0:[3,F],number:[3,F],ws:[1,B],".":[2,B],"[":[V,B],eof:[W,B]},Z[V]={"'":[H,F],'"':[G,F],"[":[V,z],"]":[1,q],eof:Y,else:[V,F]},Z[H]={"'":[V,F],eof:Y,else:[H,F]},Z[G]={'"':[V,F],eof:Y,else:[G,F]};var J=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Q(t){if(void 0===t||null===t)return"eof";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function X(t){var e,n,r,i=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(r=i,J.test(r)?(n=(e=i).charCodeAt(0))!==e.charCodeAt(e.length-1)||34!==n&&39!==n?e:e.slice(1,-1):"*"+i)}var K=function(){this._cache=Object.create(null)};K.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=function(t){var e,n,r,i,o,a,s,c=[],u=-1,l=U,h=0,f=[];function d(){var e=t[u+1];if(l===H&&"'"===e||l===G&&'"'===e)return u++,r="\\"+e,f[F](),!0}for(f[B]=function(){void 0!==n&&(c.push(n),n=void 0)},f[F]=function(){void 0===n?n=r:n+=r},f[z]=function(){f[F](),h++},f[q]=function(){if(h>0)h--,l=V,f[F]();else{if(h=0,void 0===n)return!1;if(!1===(n=X(n)))return!1;f[B]()}};null!==l;)if("\\"!==(e=t[++u])||!d()){if(i=Q(e),(o=(s=Z[l])[i]||s.else||Y)===Y)return;if(l=o[0],(a=f[o[1]])&&(r=void 0===(r=o[2])?e:r,!1===a()))return;if(l===W)return c}}(t))&&(this._cache[t]=e),e||[]},K.prototype.getPathValue=function(t,e){if(!c(t))return null;var n=this.parsePath(e);if(0===n.length)return null;for(var r=n.length,i=t,o=0;o<r;){var a=i[n[o]];if(void 0===a||null===a)return null;i=a,o++}return i};var $,tt=/<\/?[\w\s="/.':;#-\/]+>/,et=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,nt=/^@(?:\.([a-zA-Z]+))?:/,rt=/[()]/g,it={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},ot=new D,at=function(t){var e=this;void 0===t&&(t={}),!N&&"undefined"!=typeof window&&window.Vue&&O(window.Vue);var n=t.locale||"en-US",r=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),i=t.messages||{},o=t.dateTimeFormats||t.datetimeFormats||{},a=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||ot,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._fallbackRootWithEmptyString=void 0===t.fallbackRootWithEmptyString||!!t.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new K,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in t&&(this.__VUE_I18N_BRIDGE__=t.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(t,n){var r=Object.getPrototypeOf(e);if(r&&r.getChoiceIndex)return r.getChoiceIndex.call(e,t,n);var i,o;return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,n]):(i=t,o=n,i=Math.abs(i),2===o?i?i>1?1:0:1:i?Math.min(i,2):0)},this._exist=function(t,n){return!(!t||!n)&&(!d(e._path.getPathValue(t,n))||!!t[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])}),this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:o,numberFormats:a})},st={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};at.prototype._checkLocaleMessage=function(t,e,n){var r=function(t,e,n,i){if(f(n))Object.keys(n).forEach(function(o){var a=n[o];f(a)?(i.push(o),i.push("."),r(t,e,a,i),i.pop(),i.pop()):(i.push(o),r(t,e,a,i),i.pop())});else if(s(n))n.forEach(function(n,o){f(n)?(i.push("["+o+"]"),i.push("."),r(t,e,n,i),i.pop(),i.pop()):(i.push("["+o+"]"),r(t,e,n,i),i.pop())});else if(u(n)){if(tt.test(n)){var c="Detected HTML in message '"+n+"' of keypath '"+i.join("")+"' at '"+e+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?o(c):"error"===t&&a(c)}}};r(e,t,n,[])},at.prototype._initVM=function(t){var e=N.config.silent;N.config.silent=!0,this._vm=new N({data:t,__VUE18N__INSTANCE__:!0}),N.config.silent=e},at.prototype.destroyVM=function(){this._vm.$destroy()},at.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},at.prototype.unsubscribeDataChanging=function(t){!function(t,e){if(t.delete(e));}(this._dataListeners,t)},at.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",function(){for(var e,n,r=(e=t._dataListeners,n=[],e.forEach(function(t){return n.push(t)}),n),i=r.length;i--;)N.nextTick(function(){r[i]&&r[i].$forceUpdate()})},{deep:!0})},at.prototype.watchLocale=function(t){if(t){if(!this.__VUE_I18N_BRIDGE__)return null;var e=this,n=this._vm;return this.vm.$watch("locale",function(r){n.$set(n,"locale",r),e.__VUE_I18N_BRIDGE__&&t&&(t.locale.value=r),n.$forceUpdate()},{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",function(t){r.$set(r,"locale",t),r.$forceUpdate()},{immediate:!0})},at.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},st.vm.get=function(){return this._vm},st.messages.get=function(){return m(this._getMessages())},st.dateTimeFormats.get=function(){return m(this._getDateTimeFormats())},st.numberFormats.get=function(){return m(this._getNumberFormats())},st.availableLocales.get=function(){return Object.keys(this.messages).sort()},st.locale.get=function(){return this._vm.locale},st.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},st.fallbackLocale.get=function(){return this._vm.fallbackLocale},st.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},st.formatFallbackMessages.get=function(){return this._formatFallbackMessages},st.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},st.missing.get=function(){return this._missing},st.missing.set=function(t){this._missing=t},st.formatter.get=function(){return this._formatter},st.formatter.set=function(t){this._formatter=t},st.silentTranslationWarn.get=function(){return this._silentTranslationWarn},st.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},st.silentFallbackWarn.get=function(){return this._silentFallbackWarn},st.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},st.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},st.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},st.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},st.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var r=this._getMessages();Object.keys(r).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])})}},st.postTranslation.get=function(){return this._postTranslation},st.postTranslation.set=function(t){this._postTranslation=t},st.sync.get=function(){return this._sync},st.sync.set=function(t){this._sync=t},at.prototype._getMessages=function(){return this._vm.messages},at.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},at.prototype._getNumberFormats=function(){return this._vm.numberFormats},at.prototype._warnDefault=function(t,e,n,r,i,o){if(!d(n))return n;if(this._missing){var a=this._missing.apply(null,[t,e,r,i]);if(u(a))return a}else 0;if(this._formatFallbackMessages){var s=g.apply(void 0,i);return this._render(e,o,s.params,e)}return e},at.prototype._isFallbackRoot=function(t){return(this._fallbackRootWithEmptyString?!t:d(t))&&!d(this._root)&&this._fallbackRoot},at.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},at.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},at.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},at.prototype._interpolate=function(t,e,n,r,i,o,a){if(!e)return null;var c,l=this._path.getPathValue(e,n);if(s(l)||f(l))return l;if(d(l)){if(!f(e))return null;if(!u(c=e[n])&&!p(c))return null}else{if(!u(l)&&!p(l))return null;c=l}return u(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(t,e,c,r,"raw",o,a)),this._render(c,i,o,n)},at.prototype._link=function(t,e,n,r,i,o,a){var c=n,u=c.match(et);for(var l in u)if(u.hasOwnProperty(l)){var h=u[l],f=h.match(nt),d=f[0],p=f[1],g=h.replace(d,"").replace(rt,"");if(v(a,g))return c;a.push(g);var m=this._interpolate(t,e,g,r,"raw"===i?"string":i,"raw"===i?void 0:o,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var b=this._root.$i18n;m=b._translate(b._getMessages(),b.locale,b.fallbackLocale,g,r,i,o)}m=this._warnDefault(t,g,m,r,s(o)?o:[o],i),this._modifiers.hasOwnProperty(p)?m=this._modifiers[p](m):it.hasOwnProperty(p)&&(m=it[p](m)),a.pop(),c=m?c.replace(h,m):c}return c},at.prototype._createMessageContext=function(t,e,n,r){var i=this,o=s(t)?t:[],a=c(t)?t:{},u=this._getMessages(),l=this.locale;return{list:function(t){return o[t]},named:function(t){return a[t]},values:t,formatter:e,path:n,messages:u,locale:l,linked:function(t){return i._interpolate(l,u[l]||{},t,null,r,void 0,[t])}}},at.prototype._render=function(t,e,n,r){if(p(t))return t(this._createMessageContext(n,this._formatter||ot,r,e));var i=this._formatter.interpolate(t,n,r);return i||(i=ot.interpolate(t,n,r)),"string"!==e||u(i)?i:i.join("")},at.prototype._appendItemToChain=function(t,e,n){var r=!1;return v(t,e)||(r=!0,e&&(r="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(r=n[e]))),r},at.prototype._appendLocaleToChain=function(t,e,n){var r,i=e.split("-");do{var o=i.join("-");r=this._appendItemToChain(t,o,n),i.splice(-1,1)}while(i.length&&!0===r);return r},at.prototype._appendBlockToChain=function(t,e,n){for(var r=!0,i=0;i<e.length&&"boolean"==typeof r;i++){var o=e[i];u(o)&&(r=this._appendLocaleToChain(t,o,n))}return r},at.prototype._getLocaleChain=function(t,e){if(""===t)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[t];if(!n){e||(e=this.fallbackLocale),n=[];for(var r,i=[t];s(i);)i=this._appendBlockToChain(n,i,e);(i=u(r=s(e)?e:c(e)?e.default?e.default:null:e)?[r]:r)&&this._appendBlockToChain(n,i,null),this._localeChainCache[t]=n}return n},at.prototype._translate=function(t,e,n,r,i,o,a){for(var s,c=this._getLocaleChain(e,n),u=0;u<c.length;u++){var l=c[u];if(!d(s=this._interpolate(l,t[l],r,i,o,a,[r])))return s}return null},at.prototype._t=function(t,e,n,r){for(var i,o=[],a=arguments.length-4;a-- >0;)o[a]=arguments[a+4];if(!t)return"";var s,c=g.apply(void 0,o);this._escapeParameterHtml&&(c.params=(null!=(s=c.params)&&Object.keys(s).forEach(function(t){"string"==typeof s[t]&&(s[t]=s[t].replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))}),s));var u=c.locale||e,l=this._translate(n,u,this.fallbackLocale,t,r,"string",c.params);if(this._isFallbackRoot(l)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[t].concat(o))}return l=this._warnDefault(u,t,l,r,o,"string"),this._postTranslation&&null!==l&&void 0!==l&&(l=this._postTranslation(l,t)),l},at.prototype.t=function(t){for(var e,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},at.prototype._i=function(t,e,n,r,i){var o=this._translate(n,e,this.fallbackLocale,t,r,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,i)}return this._warnDefault(e,t,o,r,[i],"raw")},at.prototype.i=function(t,e,n){return t?(u(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},at.prototype._tc=function(t,e,n,r,i){for(var o,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!t)return"";void 0===i&&(i=1);var c={count:i,n:i},u=g.apply(void 0,a);return u.params=Object.assign(c,u.params),a=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((o=this)._t.apply(o,[t,e,n,r].concat(a)),i)},at.prototype.fetchChoice=function(t,e){if(!t||!u(t))return null;var n=t.split("|");return n[e=this.getChoiceIndex(e,n.length)]?n[e].trim():t},at.prototype.tc=function(t,e){for(var n,r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(r))},at.prototype._te=function(t,e,n){for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var o=g.apply(void 0,r).locale||e;return this._exist(n[o],t)},at.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},at.prototype.getLocaleMessage=function(t){return m(this._vm.messages[t]||{})},at.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},at.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,w(void 0!==this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))},at.prototype.getDateTimeFormat=function(t){return m(this._vm.dateTimeFormats[t]||{})},at.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},at.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,w(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},at.prototype._clearDateTimeFormat=function(t,e){for(var n in e){var r=t+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},at.prototype._localizeDateTime=function(t,e,n,r,i,o){for(var a=e,s=r[a],c=this._getLocaleChain(e,n),u=0;u<c.length;u++){var l=c[u];if(a=l,!d(s=r[l])&&!d(s[i]))break}if(d(s)||d(s[i]))return null;var h,f=s[i];if(o)h=new Intl.DateTimeFormat(a,Object.assign({},f,o));else{var p=a+"__"+i;(h=this._dateTimeFormatters[p])||(h=this._dateTimeFormatters[p]=new Intl.DateTimeFormat(a,f))}return h.format(t)},at.prototype._d=function(t,e,n,r){if(!n)return(r?new Intl.DateTimeFormat(e,r):new Intl.DateTimeFormat(e)).format(t);var i=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),n,r);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,n,e)}return i||""},at.prototype.d=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var r=this.locale,o=null,a=null;return 1===e.length?(u(e[0])?o=e[0]:c(e[0])&&(e[0].locale&&(r=e[0].locale),e[0].key&&(o=e[0].key)),a=Object.keys(e[0]).reduce(function(t,n){var r;return v(i,n)?Object.assign({},t,((r={})[n]=e[0][n],r)):t},null)):2===e.length&&(u(e[0])&&(o=e[0]),u(e[1])&&(r=e[1])),this._d(t,r,o,a)},at.prototype.getNumberFormat=function(t){return m(this._vm.numberFormats[t]||{})},at.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},at.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,w(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},at.prototype._clearNumberFormat=function(t,e){for(var n in e){var r=t+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},at.prototype._getNumberFormatter=function(t,e,n,r,i,o){for(var a=e,s=r[a],c=this._getLocaleChain(e,n),u=0;u<c.length;u++){var l=c[u];if(a=l,!d(s=r[l])&&!d(s[i]))break}if(d(s)||d(s[i]))return null;var h,f=s[i];if(o)h=new Intl.NumberFormat(a,Object.assign({},f,o));else{var p=a+"__"+i;(h=this._numberFormatters[p])||(h=this._numberFormatters[p]=new Intl.NumberFormat(a,f))}return h},at.prototype._n=function(t,e,n,r){if(!at.availabilities.numberFormat)return"";if(!n)return(r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e)).format(t);var i=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,r),o=i&&i.format(t);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:n,locale:e},r))}return o||""},at.prototype.n=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var i=this.locale,o=null,a=null;return 1===e.length?u(e[0])?o=e[0]:c(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(o=e[0].key),a=Object.keys(e[0]).reduce(function(t,n){var i;return v(r,n)?Object.assign({},t,((i={})[n]=e[0][n],i)):t},null)):2===e.length&&(u(e[0])&&(o=e[0]),u(e[1])&&(i=e[1])),this._n(t,i,o,a)},at.prototype._ntp=function(t,e,n,r){if(!at.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e)).formatToParts(t);var i=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,r),o=i&&i.formatToParts(t);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,r)}return o||[]},Object.defineProperties(at.prototype,st),Object.defineProperty(at,"availabilities",{get:function(){if(!$){var t="undefined"!=typeof Intl;$={dateTimeFormat:t&&void 0!==Intl.DateTimeFormat,numberFormat:t&&void 0!==Intl.NumberFormat}}return $}}),at.install=O,at.version="8.28.2",e.a=at},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"m",function(){return r});var r={"重新定位":"重新定位","放大":"放大","缩小":"缩小","移除":"移除","保存":"保存","导出png图片":"导出png图片","帮助":"帮助","快捷键":"关闭帮助","关闭帮助":"关闭帮助","复制":"复制","粘贴":"粘贴","剪切":"剪切","撤销":"撤销","重做":"重做","编辑":"重做","回车(Enter)":"重做","插入子级":"插入子级","鼠标右键点击不放":"鼠标右键点击不放","鼠标滚轮":"鼠标滚轮","放大or缩小":"放大or缩小","鼠标左键点击不放":"鼠标左键点击不放","框选":"框选","思维导图":"思维导图","组织结构图":"组织结构图","目录组织图":"目录组织图","逻辑结构图":"逻辑结构图","紧凑经典":"紧凑经典","紧凑冷光":"紧凑经典","紧凑红":"紧凑红","紧凑蓝":"紧凑红","经典脑图":"经典脑图","鱼骨头图":"鱼骨头图","脑图经典":"脑图经典"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"m",function(){return r});var r={"重新定位":"repositioning","放大":"Enlarge","缩小":"shrink","移除":"remove","保存":"save","导出png图片":"export PNG image","帮助":"help","快捷键":"shortcuts","关闭帮助":"close help","复制":"copy","粘贴":"paste","剪切":"cut","撤销":"undo","重做":"redo","编辑":"edit","回车(Enter)":"Enter (key)","插入子级":"insert child","鼠标右键点击不放":"right-click and hold","鼠标滚轮":"mouse wheel","放大or缩小":"enlarge or shrink","鼠标左键点击不放":"left-click and hold","框选":"select by dragging","思维导图":"mind map","组织结构图":"organization chart","目录组织图":"directory organization chart","逻辑结构图":"logic structure diagram","紧凑经典":"compact classic","紧凑冷光":"compact cool light","紧凑红":"compact red","紧凑蓝":"compact blue","经典脑图":"classic mind map","鱼骨头图":"fishbone diagram","脑图经典":"mind mapping classics"}},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"minder-editor-container"},[n("div",{staticClass:"qz-tools"},[n("div",{staticClass:"tools-left"},[n("button",{staticClass:"basebtn",on:{click:function(e){t.minder.execCommand("camera",t.minder.getRoot(),600)}}},[t._v("\n "+t._s(t.$t("m.重新定位"))+"\n ")]),t._v(" "),n("button",{staticClass:"basebtn btnSuccess",on:{click:function(e){return t.minder.execCommand("zoomIn")}}},[t._v("\n "+t._s(t.$t("m.放大"))+"\n ")]),t._v(" "),n("button",{staticClass:"basebtn btnSuccess",on:{click:function(e){return t.minder.execCommand("zoomOut")}}},[t._v("\n "+t._s(t.$t("m.缩小"))+"\n ")]),t._v(" "),n("button",{staticClass:"basebtn btnWarning",on:{click:t.removerEditor}},[t._v(" "+t._s(t.$t("m.移除")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.rootData.template,expression:"rootData.template"}],staticClass:"baseSelect",on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.rootData,"template",e.target.multiple?n:n[0])},function(e){return t.minder.execCommand("template",t.rootData.template)}]}},t._l(t.templateList,function(e,r){return n("option",{key:r,domProps:{value:r}},[t._v("\n "+t._s(e)+"\n ")])}),0),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.rootData.theme,expression:"rootData.theme"}],staticClass:"baseSelect",on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.rootData,"theme",e.target.multiple?n:n[0])},function(e){return t.minder.execCommand("theme",t.rootData.theme)}]}},t._l(t.themeList,function(e,r){return n("option",{key:r,domProps:{value:r}},[t._v("\n "+t._s(e)+"\n ")])}),0)]),t._v(" "),n("div",{staticClass:"tools-right"},[t.saveShow?n("button",{staticClass:"basebtn",on:{click:t.savebtn}},[t._v("\n\n "+t._s(t.$t("m.保存"))+"\n ")]):t._e(),t._v(" "),n("button",{staticClass:"basebtn btnInfo",on:{click:function(e){return t.exportHandle(0)}}},[t._v("\n\n "+t._s(t.$t("m.导出png图片"))+"\n ")]),t._v(" "),n("button",{staticClass:"basebtn btnWarning",on:{click:function(e){t.flag=!t.flag}}},[t._v("\n "+t._s(t.flag?t.$t("m.帮助"):t.$t("m.关闭帮助"))+"\n ")])])]),t._v(" "),n("div",{staticClass:"box"},[n("div",{style:t.flag?"width: 100%;":"width: 84%;",attrs:{id:t.id}}),t._v(" "),t.flag?t._e():n("div",{staticClass:"help",staticStyle:{width:"15%"}},[n("div",{staticClass:"tabletop"},[t._v(" "+t._s(t.$t("m.快捷键")))]),t._v(" "),n("ul",[n("li",[t._m(0),t._v(" "),n("div",[t._v(t._s(t.$t("m.复制")))])]),t._v(" "),n("li",[t._m(1),t._v(" "),n("div",[t._v(t._s(t.$t("m.粘贴")))])]),t._v(" "),n("li",[t._m(2),t._v(" "),n("div",[t._v(t._s(t.$t("m.剪切")))])]),t._v(" "),n("li",[t._m(3),t._v(" "),n("div",[t._v(t._s(t.$t("m.撤销")))])]),t._v(" "),n("li",[t._m(4),t._v(" "),n("div",[t._v(t._s(t.$t("m.重做")))])]),t._v(" "),n("li",[t._m(5),t._v(" "),n("div",[t._v(t._s(t.$t("m.编辑")))])]),t._v(" "),n("li",[n("div",{staticClass:"buttontext"},[n("span",[t._v(t._s(t.$t("m.回车(Enter)")))])]),t._v(" "),n("div",[t._v(t._s(t.$t("m.插入并级")))])]),t._v(" "),n("li",[t._m(6),t._v(" "),n("div",[t._v(t._s(t.$t("m.插入子级")))])]),t._v(" "),n("li",[n("div",{staticClass:"buttontext"},[n("span",[t._v(t._s(t.$t("m.鼠标右键点击不放")))])]),t._v(" "),n("div",[t._v(t._s(t.$t("m.拖拽")))])]),t._v(" "),n("li",[n("div",{staticClass:"buttontext"},[n("span",[t._v("Ctrl")]),t._v("+"),n("span",[t._v(t._s(t.$t("m.鼠标滚轮")))])]),t._v(" "),n("div",[t._v(t._s(t.$t("m.放大or缩小")))])]),t._v(" "),n("li",[n("div",{staticClass:"buttontext"},[n("span",[t._v(t._s(t.$t("m.鼠标左键点击不放")))])]),t._v(" "),n("div",[t._v(t._s(t.$t("m.框选")))])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"buttontext"},[e("span",[this._v("Ctrl")]),this._v("+"),e("span",[this._v("C")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"buttontext"},[e("span",[this._v("Ctrl")]),this._v("+"),e("span",[this._v("V")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"buttontext"},[e("span",[this._v("Ctrl")]),this._v("+"),e("span",[this._v("X")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"buttontext"},[e("span",[this._v("Ctrl")]),this._v("+"),e("span",[this._v("Z")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"buttontext"},[e("span",[this._v("Ctrl")]),this._v("+"),e("span",[this._v("Y")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"buttontext"},[e("span",[this._v("F2")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"buttontext"},[e("span",[this._v("Insert")])])}]};e.a=r},function(t,e,n){var r=n(163);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(35)("0d881b40",r,!0,{})},function(t,e,n){(t.exports=n(34)(!1)).push([t.i,'.hotbox {\n font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;\n position: absolute;\n left: 0;\n top: 0;\n overflow: visible;\n}\n.hotbox .state {\n position: absolute;\n overflow: visible;\n display: none;\n}\n.hotbox .state .center .button,\n.hotbox .state .ring .button {\n position: absolute;\n width: 70px;\n height: 70px;\n margin-left: -35px;\n margin-top: -35px;\n border-radius: 100%;\n box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);\n}\n.hotbox .state .center .label,\n.hotbox .state .ring .label,\n.hotbox .state .center .key,\n.hotbox .state .ring .key {\n display: block;\n text-align: center;\n line-height: 1.4em;\n vertical-align: middle;\n}\n.hotbox .state .center .label,\n.hotbox .state .ring .label {\n font-size: 16px;\n margin-top: 17px;\n color: black;\n font-weight: normal;\n line-height: 1em;\n}\n.hotbox .state .center .key,\n.hotbox .state .ring .key {\n font-size: 12px;\n color: #999;\n}\n.hotbox .state .ring-shape {\n position: absolute;\n left: -25px;\n top: -25px;\n border: 25px solid rgba(0, 0, 0, 0.3);\n border-radius: 100%;\n box-sizing: content-box;\n}\n.hotbox .state .top,\n.hotbox .state .bottom {\n position: absolute;\n white-space: nowrap;\n}\n.hotbox .state .top .button,\n.hotbox .state .bottom .button {\n display: inline-block;\n padding: 8px 15px;\n margin: 0 10px;\n border-radius: 15px;\n box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);\n position: relative;\n}\n.hotbox .state .top .button .label,\n.hotbox .state .bottom .button .label {\n font-size: 14px;\n line-height: 14px;\n vertical-align: middle;\n color: black;\n line-height: 1em;\n}\n.hotbox .state .top .button .key,\n.hotbox .state .bottom .button .key {\n font-size: 12px;\n line-height: 12px;\n vertical-align: middle;\n color: #999;\n margin-left: 3px;\n}\n.hotbox .state .top .button .key:before,\n.hotbox .state .bottom .button .key:before {\n content: \'(\';\n}\n.hotbox .state .top .button .key:after,\n.hotbox .state .bottom .button .key:after {\n content: \')\';\n}\n.hotbox .state .button {\n background: #F9F9F9;\n overflow: hidden;\n cursor: default;\n}\n.hotbox .state .button .key,\n.hotbox .state .button .label {\n opacity: 0.3;\n}\n.hotbox .state .button.enabled {\n background: white;\n}\n.hotbox .state .button.enabled .key,\n.hotbox .state .button.enabled .label {\n opacity: 1;\n}\n.hotbox .state .button.enabled:hover {\n background: #e87372;\n}\n.hotbox .state .button.enabled:hover .label {\n color: white;\n}\n.hotbox .state .button.enabled:hover .key {\n color: #fadfdf;\n}\n.hotbox .state .button.enabled.selected {\n -webkit-animation: selected 0.1s ease;\n background: #e45d5c;\n}\n.hotbox .state .button.enabled.selected .label {\n color: white;\n}\n.hotbox .state .button.enabled.selected .key {\n color: #fadfdf;\n}\n.hotbox .state .button.enabled.pressed,\n.hotbox .state .button.enabled:active {\n background: #FF974D;\n}\n.hotbox .state .button.enabled.pressed .label,\n.hotbox .state .button.enabled:active .label {\n color: white;\n}\n.hotbox .state .button.enabled.pressed .key,\n.hotbox .state .button.enabled:active .key {\n color: #fff0e6;\n}\n.hotbox .state.active {\n display: block;\n}\n@-webkit-keyframes selected {\n 0% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.1);\n }\n 100% {\n transform: scale(1);\n }\n}\n.hotbox-key-receiver {\n position: absolute;\n left: -999999px;\n top: -999999px;\n width: 20px;\n height: 20px;\n outline: none;\n margin: 0;\n}\n',""])}])});