1 |
- webpackJsonp([4],{273:function(t,e){t.exports="/images/vendor/vue-kityminder-gg/examples/styles/icons.png?39ef978a"},279:function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(343);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)},280:function(t,e,n){var r;void 0===(r=function(t,e,r){return window.HotBox=n(350),r.exports=window.HotBox}.call(e,n,e,t))||(t.exports=r)},283:function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(351),o=4096,a=8192,s=16384;function c(t){return"string"==typeof t?function(t){var e=0;return 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}(t):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)}e.hash=c,e.is=function(t,e){return t&&e&&c(t)==c(e)}}.call(e,n,e,t))||(t.exports=r)},290:function(t,e,n){(function(r){var i,o;!function(r){void 0===(o="function"==typeof(i=r)?i.call(e,n,e,t):i)||(t.exports=o)}(function(){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){if("object"!==i(t.console)){t.console={};for(var e,n,r=t.console,o=function(){},a=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=a.pop();)r[e]||(r[e]={});for(;n=s.pop();)r[n]||(r[n]=o)}var c,u,l,h,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===t.btoa&&(t.btoa=function(t){var e,n,r,i,o,a=0,s=0,c="",u=[];if(!t)return t;for(;e=(o=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,u[s++]=f.charAt(e)+f.charAt(n)+f.charAt(r)+f.charAt(i),a<t.length;);c=u.join("");var l=t.length%3;return(l?c.slice(0,l-3):c)+"===".slice(l||3)}),void 0===t.atob&&(t.atob=function(t){var e,n,r,i,o,a,s=0,c=0,u=[];if(!t)return t;for(t+="";e=(a=f.indexOf(t.charAt(s++))<<18|f.indexOf(t.charAt(s++))<<12|(i=f.indexOf(t.charAt(s++)))<<6|(o=f.indexOf(t.charAt(s++))))>>16&255,n=a>>8&255,r=255&a,u[c++]=64==i?String.fromCharCode(e):64==o?String.fromCharCode(e,n):String.fromCharCode(e,n,r),s<t.length;);return u.join("")}),Array.prototype.map||(Array.prototype.map=function(t){if(null==this||"function"!=typeof t)throw new TypeError;for(var e=Object(this),n=e.length>>>0,r=new Array(n),i=1<arguments.length?arguments[1]:void 0,o=0;o<n;o++)o in e&&(r[o]=t.call(i,e[o],o,e));return r}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){if(null==this||"function"!=typeof t)throw new TypeError;for(var n=Object(this),r=n.length>>>0,i=0;i<r;i++)i in n&&t.call(e,n[i],i,n)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=e[i];if(t.call(r,o,i,e))return o;i++}},configurable:!0,writable:!0}),Object.keys||(Object.keys=(c=Object.prototype.hasOwnProperty,u=!{toString:null}.propertyIsEnumerable("toString"),h=(l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("object"!==i(t)&&("function"!=typeof t||null===t))throw new TypeError;var e,n,r=[];for(e in t)c.call(t,e)&&r.push(e);if(u)for(n=0;n<h;n++)c.call(t,l[n])&&r.push(l[n]);return r})),"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(var e=1;e<arguments.length;e++){var n=arguments[e];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")}),Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")());var a,s,c,u,l,h,f,d,p,g,m,v,b,y,w,x,A,S,_,N,k,L,C,P,E,T,I,M,B,R,O,F,D,j,q,z,V,U,H,G,W,Y,X,J,Z,K,Q,$,tt,et,nt,rt,it,ot,at,st,ct,ut,lt,ht,ft,dt,pt=function(r){function a(t){if("object"!==i(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),o=[];for(var a in e[n]){var s=e[n][a];try{s[0].apply(t,i)}catch(n){r.console&&console.error("jsPDF PubSub Error",n.message,n)}s[1]&&o.push(a)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function s(t,e,n,o){var c={},u=[],l=1;"object"===i(t)&&(t=(c=t).orientation,e=c.unit||e,n=c.format||n,o=c.compress||c.compressPdf||o,u=c.filters||(!0===o?["FlateEncode"]:u),l="number"==typeof c.userUnit?Math.abs(c.userUnit):1),e=e||"mm",t=(""+(t||"P")).toLowerCase();var h=c.putOnlyUsedFonts||!0,f={},d={internal:{},__private__:{}};d.__private__.PubSub=a;var p="1.3",g=d.__private__.getPdfVersion=function(){return p},m=(d.__private__.setPdfVersion=function(t){p=t},{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]}),v=(d.__private__.getPageFormats=function(){return m},d.__private__.getPageFormat=function(t){return m[t]});"string"==typeof n&&(n=v(n)),n=n||v("a4");var b,y=d.f2=d.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(2)},w=d.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return t.toFixed(3)},x="00000000000000000000000000000000",A=d.__private__.getFileId=function(){return x},S=d.__private__.setFileId=function(t){return t=t||"12345678901234567890123456789012".split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),x=t};d.setFileId=function(t){return S(t),this},d.getFileId=function(){return A()};var _=d.__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,O(r),"'",O(i),"'"].join("");return["D:",t.getFullYear(),O(t.getMonth()+1),O(t.getDate()),O(t.getHours()),O(t.getMinutes()),O(t.getSeconds()),o].join("")},N=d.__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 parseInt(t.substr(16,2),10),parseInt(t.substr(20,2),10),new Date(e,n,r,i,o,a,0)},k=d.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),"object"===i(t)&&"[object Date]"===Object.prototype.toString.call(t))e=_(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 b=e},L=d.__private__.getCreationDate=function(t){var e=b;return"jsDate"===t&&(e=N(b)),e};d.setCreationDate=function(t){return k(t),this},d.getCreationDate=function(t){return L(t)};var C,P,E,T,I,M,B,R,O=d.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},F=!1,D=[],j=[],q=0,z=(d.__private__.setCustomOutputDestination=function(t){P=t},d.__private__.resetCustomOutputDestination=function(t){P=void 0},d.__private__.out=function(t){var e;return t="string"==typeof t?t:t.toString(),(e=void 0===P?F?D[C]:j:P).push(t),F||(q+=t.length+1),e}),V=d.__private__.write=function(t){return z(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},U=d.__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},H=[["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]],G=(d.__private__.getStandardFonts=function(t){return H},c.fontSize||16),W=(d.__private__.setFontSize=d.setFontSize=function(t){return G=t,this},d.__private__.getFontSize=d.getFontSize=function(){return G}),Y=c.R2L||!1,X=(d.__private__.setR2L=d.setR2L=function(t){return Y=t,this},d.__private__.getR2L=d.getR2L=function(t){return Y},d.__private__.setZoomMode=function(t){if(/^\d*\.?\d*\%$/.test(t))E=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.');E=t}else E=parseInt(t,10)}),J=(d.__private__.getZoomMode=function(){return E},d.__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.');T=t}),Z=(d.__private__.getPageMode=function(){return T},d.__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.');I=t}),K=(d.__private__.getLayoutMode=function(){return I},d.__private__.setDisplayMode=d.setDisplayMode=function(t,e,n){return X(t),Z(e),J(n),this},{title:"",subject:"",author:"",keywords:"",creator:""}),Q=(d.__private__.getDocumentProperty=function(t){if(-1===Object.keys(K).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return K[t]},d.__private__.getDocumentProperties=function(t){return K},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(t){for(var e in K)K.hasOwnProperty(e)&&t[e]&&(K[e]=t[e]);return this},d.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(K).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return K[t]=e},0),$=[],tt={},et={},nt=0,rt=[],it=[],ot=new a(d),at=c.hotfixes||[],st=d.__private__.newObject=function(){var t=ct();return ut(t,!0),t},ct=d.__private__.newObjectDeferred=function(){return $[++Q]=function(){return q},Q},ut=function(t,e){return e="boolean"==typeof e&&e,$[t]=q,e&&z(t+" 0 obj"),t},lt=d.__private__.newAdditionalObject=function(){var t={objId:ct(),content:""};return it.push(t),t},ht=ct(),ft=ct(),dt=d.__private__.decodeColorString=function(t){var e=t.split(" ");if(2===e.length&&("g"===e[1]||"G"===e[1])){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},pt=d.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,r=t.ch2,o=t.ch3,a=t.ch4,s=(t.precision,"draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof n&&"#"!==n.charAt(0)){var c=new RGBColor(n);if(c.ok)n=c.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 u=parseInt(n.substr(1),16);n=u>>16&255,r=u>>8&255,o=255&u}if(void 0===r||void 0===a&&n===r&&r===o)if("string"==typeof n)e=n+" "+s[0];else switch(t.precision){case 2:e=y(n/255)+" "+s[0];break;case 3:default:e=w(n/255)+" "+s[0]}else if(void 0===a||"object"===i(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1.000","1.000","1.000",s[1]].join(" ");if("string"==typeof n)e=[n,r,o,s[1]].join(" ");else switch(t.precision){case 2:e=[y(n/255),y(r/255),y(o/255),s[1]].join(" ");break;default:case 3:e=[w(n/255),w(r/255),w(o/255),s[1]].join(" ")}}else if("string"==typeof n)e=[n,r,o,a,s[2]].join(" ");else switch(t.precision){case 2:e=[y(n/255),y(r/255),y(o/255),y(a/255),s[2]].join(" ");break;case 3:default:e=[w(n/255),w(r/255),w(o/255),w(a/255),s[2]].join(" ")}return e},gt=d.__private__.getFilters=function(){return u},mt=d.__private__.putStream=function(t){var e,n=(t=t||{}).data||"",r=t.filters||gt(),i=t.alreadyAppliedFilters||[],o=t.addLength1||!1,a=n.length;!0===r&&(r=["FlateEncode"]);var c=t.additionalKeyValues||[],u=(e=void 0!==s.API.processDataByFilters?s.API.processDataByFilters(n,r):{data:n,reverseChain:[]}).reverseChain+(Array.isArray(i)?i.join(" "):i.toString());0!==e.data.length&&(c.push({key:"Length",value:e.data.length}),!0===o&&c.push({key:"Length1",value:a})),0!=u.length&&(u.split("/").length-1==1?c.push({key:"Filter",value:u}):c.push({key:"Filter",value:"["+u+"]"})),z("<<");for(var l=0;l<c.length;l++)z("/"+c[l].key+" "+c[l].value);z(">>"),0!==e.data.length&&(z("stream"),z(e.data),z("endstream"))},vt=d.__private__.putPage=function(t){t.mediaBox;var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;ut(r,!0),rt[C].mediaBox.topRightX,rt[C].mediaBox.bottomLeftX,rt[C].mediaBox.topRightY,rt[C].mediaBox.bottomLeftY,z("<</Type /Page"),z("/Parent "+t.rootDictionaryObjId+" 0 R"),z("/Resources "+t.resourceDictionaryObjId+" 0 R"),z("/MediaBox ["+parseFloat(y(t.mediaBox.bottomLeftX))+" "+parseFloat(y(t.mediaBox.bottomLeftY))+" "+y(t.mediaBox.topRightX)+" "+y(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&z("/CropBox ["+y(t.cropBox.bottomLeftX)+" "+y(t.cropBox.bottomLeftY)+" "+y(t.cropBox.topRightX)+" "+y(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&z("/BleedBox ["+y(t.bleedBox.bottomLeftX)+" "+y(t.bleedBox.bottomLeftY)+" "+y(t.bleedBox.topRightX)+" "+y(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&z("/TrimBox ["+y(t.trimBox.bottomLeftX)+" "+y(t.trimBox.bottomLeftY)+" "+y(t.trimBox.topRightX)+" "+y(t.trimBox.topRightY)+"]"),null!==t.artBox&&z("/ArtBox ["+y(t.artBox.bottomLeftX)+" "+y(t.artBox.bottomLeftY)+" "+y(t.artBox.topRightX)+" "+y(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&z("/UserUnit "+t.userUnit),ot.publish("putPage",{objId:r,pageContext:rt[e],pageNumber:e,page:n}),z("/Contents "+i+" 0 R"),z(">>"),z("endobj");var o=n.join("\n");return ut(i,!0),mt({data:o,filters:gt()}),z("endobj"),r},bt=d.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=nt;t++)rt[t].objId=ct(),rt[t].contentsObjId=ct();for(t=1;t<=nt;t++)n.push(vt({number:t,data:D[t],objId:rt[t].objId,contentsObjId:rt[t].contentsObjId,mediaBox:rt[t].mediaBox,cropBox:rt[t].cropBox,bleedBox:rt[t].bleedBox,trimBox:rt[t].trimBox,artBox:rt[t].artBox,userUnit:rt[t].userUnit,rootDictionaryObjId:ht,resourceDictionaryObjId:ft}));ut(ht,!0),z("<</Type /Pages");var r="/Kids [";for(e=0;e<nt;e++)r+=n[e]+" 0 R ";z(r+"]"),z("/Count "+nt),z(">>"),z("endobj"),ot.publish("postPutPages")},yt=function(t,e,n){et.hasOwnProperty(e)||(et[e]={}),et[e][n]=t},wt=function(t,e,n,r,i){i=i||!1;var o="F"+(Object.keys(tt).length+1).toString(10),a={id:o,postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i,metadata:{}};return ot.publish("addFont",{font:a,instance:this}),void 0!==o&&(tt[o]=a,yt(o,e,n)),o},xt=d.__private__.pdfEscape=d.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)&&tt[M].metadata&&tt[M].metadata[i]&&tt[M].metadata[i].encoding&&(o=tt[M].metadata[i].encoding,!a&&tt[M].encoding&&(a=tt[M].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,"\\)")},At=d.__private__.beginPage=function(t,e){var r,i="string"==typeof e&&e.toLowerCase();if("string"==typeof t&&(r=v(t.toLowerCase()))&&(t=r[0],e=r[1]),Array.isArray(t)&&(e=t[1],t=t[0]),(isNaN(t)||isNaN(e))&&(t=n[0],e=n[1]),i){switch(i.substr(0,1)){case"l":t<e&&(i="s");break;case"p":e<t&&(i="s")}"s"===i&&(r=t,t=e,e=r)}(14400<t||14400<e)&&(console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),t=Math.min(14400,t),e=Math.min(14400,e)),n=[t,e],F=!0,D[++nt]=[],rt[nt]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t),topRightY:Number(e)}},_t(nt)},St=function(){At.apply(this,arguments),Ht(Ut),z(Qt),0!==ie&&z(ie+" J"),0!==ae&&z(ae+" j"),ot.publish("addPage",{pageNumber:nt})},_t=function(t){0<t&&t<=nt&&(C=t)},Nt=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return D.length-1},kt=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:tt[M].fontName,e=void 0!==e?e:tt[M].fontStyle,r=t.toLowerCase(),void 0!==et[r]&&void 0!==et[r][e]?i=et[r][e]:void 0!==et[t]&&void 0!==et[t][e]?i=et[t][e]:!1===n.disableWarning&&console.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=et.times[e])&&(i=et.times.normal),i},Lt=d.__private__.putInfo=function(){for(var t in st(),z("<<"),z("/Producer (jsPDF "+s.version+")"),K)K.hasOwnProperty(t)&&K[t]&&z("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+xt(K[t])+")");z("/CreationDate ("+b+")"),z(">>"),z("endobj")},Ct=d.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||ht;switch(st(),z("<<"),z("/Type /Catalog"),z("/Pages "+e+" 0 R"),E||(E="fullwidth"),E){case"fullwidth":z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":z("/OpenAction [3 0 R /Fit]");break;case"original":z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+E;"%"===n.substr(n.length-1)&&(E=parseInt(E)/100),"number"==typeof E&&z("/OpenAction [3 0 R /XYZ null null "+y(E)+"]")}switch(I||(I="continuous"),I){case"continuous":z("/PageLayout /OneColumn");break;case"single":z("/PageLayout /SinglePage");break;case"two":case"twoleft":z("/PageLayout /TwoColumnLeft");break;case"tworight":z("/PageLayout /TwoColumnRight")}T&&z("/PageMode /"+T),ot.publish("putCatalog"),z(">>"),z("endobj")},Pt=d.__private__.putTrailer=function(){z("trailer"),z("<<"),z("/Size "+(Q+1)),z("/Root "+Q+" 0 R"),z("/Info "+(Q-1)+" 0 R"),z("/ID [ <"+x+"> <"+x+"> ]"),z(">>")},Tt=d.__private__.putHeader=function(){z("%PDF-"+p),z("%ºß¬à")},It=d.__private__.putXRef=function(){var t=1,e="0000000000";for(z("xref"),z("0 "+(Q+1)),z("0000000000 65535 f "),t=1;t<=Q;t++)"function"==typeof $[t]?z((e+$[t]()).slice(-10)+" 00000 n "):void 0!==$[t]?z((e+$[t]).slice(-10)+" 00000 n "):z("0000000000 00000 n ")},Mt=d.__private__.buildDocument=function(){F=!1,q=Q=0,j=[],$=[],it=[],ht=ct(),ft=ct(),ot.publish("buildDocument"),Tt(),bt(),function(){ot.publish("putAdditionalObjects");for(var t=0;t<it.length;t++){var e=it[t];ut(e.objId,!0),z(e.content),z("endobj")}ot.publish("postPutAdditionalObjects")}(),function(){!function(){for(var t in tt)tt.hasOwnProperty(t)&&(!1===h||!0===h&&f.hasOwnProperty(t))&&(e=tt[t],ot.publish("putFont",{font:e,out:z,newObject:st,putStream:mt}),!0!==e.isAlreadyPutted&&(e.objectNumber=st(),z("<<"),z("/Type /Font"),z("/BaseFont /"+e.postScriptName),z("/Subtype /Type1"),"string"==typeof e.encoding&&z("/Encoding /"+e.encoding),z("/FirstChar 32"),z("/LastChar 255"),z(">>"),z("endobj")));var e}(),ot.publish("putResources"),ut(ft,!0),z("<<"),function(){for(var t in z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),z("/Font <<"),tt)tt.hasOwnProperty(t)&&(!1===h||!0===h&&f.hasOwnProperty(t))&&z("/"+t+" "+tt[t].objectNumber+" 0 R");z(">>"),z("/XObject <<"),ot.publish("putXobjectDict"),z(">>")}(),z(">>"),z("endobj"),ot.publish("postPutResources")}(),Lt(),Ct();var t=q;return It(),Pt(),z("startxref"),z(""+t),z("%%EOF"),F=!0,j.join("\n")},Bt=d.__private__.getBlob=function(t){return new Blob([U(t)],{type:"application/pdf"})},Rt=d.output=d.__private__.output=((R=function(t,e){e=e||{};var n=Mt();switch("string"==typeof e?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return n;case"save":d.save(e.filename);break;case"arraybuffer":return U(n);case"blob":return Bt(n);case"bloburi":case"bloburl":if(void 0!==r.URL&&"function"==typeof r.URL.createObjectURL)return r.URL&&r.URL.createObjectURL(Bt(n))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+e.filename+";base64,"+btoa(n);case"dataurlnewwindow":var i='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring")+'"></iframe></body></html>',o=r.open();if(null!==o&&o.document.write(i),o||"undefined"==typeof safari)return o;case"datauri":case"dataurl":return r.document.location.href="data:application/pdf;filename="+e.filename+";base64,"+btoa(n);default:return null}}).foo=function(){try{return R.apply(this,arguments)}catch(n){var t=n.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var e="Error in function "+t.split("\n")[0].split("<")[0]+": "+n.message;if(!r.console)throw new Error(e);r.console.error(e,n),r.alert&&alert(e)}},(R.foo.bar=R).foo),Ot=function(t){return!0===Array.isArray(at)&&-1<at.indexOf(t)};switch(e){case"pt":B=1;break;case"mm":B=72/25.4;break;case"cm":B=72/2.54;break;case"in":B=72;break;case"px":B=1==Ot("px_scaling")?.75:96/72;break;case"pc":case"em":B=12;break;case"ex":B=6;break;default:throw new Error("Invalid unit: "+e)}k(),S();var Ft=d.__private__.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:rt[t].objId,pageNumber:t,pageContext:rt[t]}},Dt=d.__private__.getPageInfoByObjId=function(t){for(var e in rt)if(rt[e].objId===t)break;if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");return Ft(e)},jt=d.__private__.getCurrentPageInfo=function(){return{objId:rt[C].objId,pageNumber:C,pageContext:rt[C]}};d.addPage=function(){return St.apply(this,arguments),this},d.setPage=function(){return _t.apply(this,arguments),this},d.insertPage=function(t){return this.addPage(),this.movePage(C,t),this},d.movePage=function(t,e){if(e<t){for(var n=D[t],r=rt[t],i=t;e<i;i--)D[i]=D[i-1],rt[i]=rt[i-1];D[e]=n,rt[e]=r,this.setPage(e)}else if(t<e){for(n=D[t],r=rt[t],i=t;i<e;i++)D[i]=D[i+1],rt[i]=rt[i+1];D[e]=n,rt[e]=r,this.setPage(e)}return this},d.deletePage=function(){return function(t){0<t&&t<=nt&&(D.splice(t,1),--nt<C&&(C=nt),this.setPage(C))}.apply(this,arguments),this},d.__private__.text=d.text=function(t,e,n,r){var o;"number"!=typeof t||"number"!=typeof e||"string"!=typeof n&&!Array.isArray(n)||(o=n,n=e,e=t,t=o);var a=arguments[3],s=arguments[4],c=arguments[5];if("object"===i(a)&&null!==a||("string"==typeof s&&(c=s,s=null),"string"==typeof a&&(c=a,a=null),"number"==typeof a&&(s=a,a=null),r={flags:a,angle:s,align:c}),(a=a||{}).noBOM=a.noBOM||!0,a.autoencode=a.autoencode||!0,isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return d;var u,l="",h="number"==typeof r.lineHeightFactor?r.lineHeightFactor:Vt,d=r.scope||this;function p(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?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function g(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"===r[0]&&(i=e(r[0],r[1],r[2]),a.push([i[0],i[1],i[2]]));n=a}return n}var m=!1,v=!0;if("string"==typeof t)m=!0;else if(Array.isArray(t)){for(var b,x=t.concat(),A=[],S=x.length;S--;)("string"!=typeof(b=x.shift())||Array.isArray(b)&&"string"!=typeof b[0])&&(v=!1);m=v}if(!1===m)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');var _=tt[M].encoding;"WinAnsiEncoding"!==_&&"StandardEncoding"!==_||(t=g(t,function(t,e,n){return[(i=t,i=i.split("\t").join(Array(r.TabLen||9).join(" ")),xt(i,a)),e,n];var i})),"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var N=G/d.internal.scaleFactor,k=N*(Vt-1);switch(r.baseline){case"bottom":n-=k;break;case"top":n+=N-k;break;case"hanging":n+=N-2*k;break;case"middle":n+=N/2-k}0<(V=r.maxWidth||0)&&("string"==typeof t?t=d.splitTextToSize(t,V):"[object Array]"===Object.prototype.toString.call(t)&&(t=d.splitTextToSize(t.join(" "),V)));var L={text:t,x:e,y:n,options:r,mutex:{pdfEscape:xt,activeFontKey:M,fonts:tt,activeFontSize:G}};ot.publish("preProcessText",L),t=L.text,s=(r=L.options).angle;var C=d.internal.scaleFactor,P=[];if(s){s*=Math.PI/180;var E=Math.cos(s),T=Math.sin(s);P=[y(E),y(T),y(-1*T),y(E)]}void 0!==(q=r.charSpace)&&(l+=w(q*C)+" Tc\n"),r.lang;var I=-1,B=void 0!==r.renderingMode?r.renderingMode:r.stroke,R=d.internal.getCurrentPageInfo().pageContext;switch(B){case 0:case!1:case"fill":I=0;break;case 1:case!0:case"stroke":I=1;break;case 2:case"fillThenStroke":I=2;break;case 3:case"invisible":I=3;break;case 4:case"fillAndAddForClipping":I=4;break;case 5:case"strokeAndAddPathForClipping":I=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":I=6;break;case 7:case"addToPathForClipping":I=7}var O=void 0!==R.usedRenderingMode?R.usedRenderingMode:-1;-1!==I?l+=I+" Tr\n":-1!==O&&(l+="0 Tr\n"),-1!==I&&(R.usedRenderingMode=I),c=r.align||"left";var F=G*h,D=d.internal.pageSize.getWidth(),j=(C=d.internal.scaleFactor,tt[M]),q=r.charSpace||ne,V=r.maxWidth||0,U=(a={},[]);if("[object Array]"===Object.prototype.toString.call(t)){var H,W;A=p(t),"left"!==c&&(W=A.map(function(t){return d.getStringUnitWidth(t,{font:j,charSpace:q,fontSize:G})*G/C}));Math.max.apply(Math,W);var X,J=0;if("right"===c){e-=W[0],t=[];var Z=0;for(S=A.length;Z<S;Z++)W[Z],H=0===Z?(X=Xt(e),Jt(n)):(X=(J-W[Z])*C,-F),t.push([A[Z],X,H]),J=W[Z]}else if("center"===c)for(e-=W[0]/2,t=[],Z=0,S=A.length;Z<S;Z++)W[Z],H=0===Z?(X=Xt(e),Jt(n)):(X=(J-W[Z])/2*C,-F),t.push([A[Z],X,H]),J=W[Z];else if("left"===c)for(t=[],Z=0,S=A.length;Z<S;Z++)H=0===Z?Jt(n):-F,X=0===Z?Xt(e):0,t.push(A[Z]);else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(t=[],V=0!==V?V:D,Z=0,S=A.length;Z<S;Z++)H=0===Z?Jt(n):-F,X=0===Z?Xt(e):0,Z<S-1&&U.push(((V-W[Z])/(A[Z].split(" ").length-1)*C).toFixed(2)),t.push([A[Z],X,H])}}!0===("boolean"==typeof r.R2L?r.R2L:Y)&&(t=g(t,function(t,e,n){return[t.split("").reverse().join(""),e,n]})),L={text:t,x:e,y:n,options:r,mutex:{pdfEscape:xt,activeFontKey:M,fonts:tt,activeFontSize:G}},ot.publish("postProcessText",L),t=L.text,u=L.mutex.isHex,A=p(t),t=[];var K,Q,$,et=0,nt=(S=A.length,"");for(Z=0;Z<S;Z++)nt="",Array.isArray(A[Z])?(K=parseFloat(A[Z][1]),Q=parseFloat(A[Z][2]),$=(u?"<":"(")+A[Z][0]+(u?">":")"),et=1):(K=Xt(e),Q=Jt(n),$=(u?"<":"(")+A[Z]+(u?">":")")),void 0!==U&&void 0!==U[Z]&&(nt=U[Z]+" Tw\n"),0!==P.length&&0===Z?t.push(nt+P.join(" ")+" "+K.toFixed(2)+" "+Q.toFixed(2)+" Tm\n"+$):1===et||0===et&&0===Z?t.push(nt+K.toFixed(2)+" "+Q.toFixed(2)+" Td\n"+$):t.push(nt+$);t=0===et?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var rt="BT\n/"+M+" "+G+" Tf\n"+(G*h).toFixed(2)+" TL\n"+te+"\n";return rt+=l,rt+=t,z(rt+="ET"),f[M]=!0,d},d.__private__.lstext=d.lstext=function(t,e,n,r){return console.warn("jsPDF.lstext is deprecated"),this.text(t,e,n,{charSpace:r})},d.__private__.clip=d.clip=function(t){z("evenodd"===t?"W*":"W"),z("n")},d.__private__.clip_fixed=d.clip_fixed=function(t){console.log("clip_fixed is deprecated"),d.clip(t)};var qt=d.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(t)&&(e=!0),e},zt=d.__private__.getStyle=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e};d.__private__.line=d.line=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[n-t,r-e]],t,e)},d.__private__.lines=d.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)||!qt(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(z(w(Xt(e))+" "+w(Jt(n))+" m "),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,z(w(Xt(g))+" "+w(Jt(m))+" l")):(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,z(w(Xt(h))+" "+w(Jt(f))+" "+w(Xt(d))+" "+w(Jt(p))+" "+w(Xt(g))+" "+w(Jt(m))+" c"));return o&&z(" h"),null!==i&&z(zt(i)),this},d.__private__.rect=d.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!qt(i))throw new Error("Invalid arguments passed to jsPDF.rect");return z([y(Xt(t)),y(Jt(e)),y(n*B),y(-r*B),"re"].join(" ")),null!==i&&z(zt(i)),this},d.__private__.triangle=d.triangle=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!qt(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},d.__private__.roundedRect=d.roundedRect=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!qt(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return 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),this},d.__private__.ellipse=d.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!qt(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 z([y(Xt(t+n)),y(Jt(e)),"m",y(Xt(t+n)),y(Jt(e-a)),y(Xt(t+o)),y(Jt(e-r)),y(Xt(t)),y(Jt(e-r)),"c"].join(" ")),z([y(Xt(t-o)),y(Jt(e-r)),y(Xt(t-n)),y(Jt(e-a)),y(Xt(t-n)),y(Jt(e)),"c"].join(" ")),z([y(Xt(t-n)),y(Jt(e+a)),y(Xt(t-o)),y(Jt(e+r)),y(Xt(t)),y(Jt(e+r)),"c"].join(" ")),z([y(Xt(t+o)),y(Jt(e+r)),y(Xt(t+n)),y(Jt(e+a)),y(Xt(t+n)),y(Jt(e)),"c"].join(" ")),null!==i&&z(zt(i)),this},d.__private__.circle=d.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!qt(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},d.setFont=function(t,e){return M=kt(t,e,{disableWarning:!1}),this},d.setFontStyle=d.setFontType=function(t){return M=kt(void 0,t),this},d.__private__.getFontList=d.getFontList=function(){var t,e,n,r={};for(t in et)if(et.hasOwnProperty(t))for(e in r[t]=n=[],et[t])et[t].hasOwnProperty(e)&&n.push(e);return r},d.addFont=function(t,e,n,r){wt.call(this,t,e,n,r=r||"Identity-H")};var Vt,Ut=c.lineWidth||.200025,Ht=d.__private__.setLineWidth=d.setLineWidth=function(t){return z((t*B).toFixed(2)+" w"),this},Gt=(d.__private__.setLineDash=s.API.setLineDash=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(t*B).toFixed(3)}).join(" "),e=parseFloat((e*B).toFixed(3)),z("["+t+"] "+e+" d"),this},d.__private__.getLineHeight=d.getLineHeight=function(){return G*Vt}),Wt=(Gt=d.__private__.getLineHeight=d.getLineHeight=function(){return G*Vt},d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(Vt=t),this}),Yt=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return Vt};Wt(c.lineHeight);var Xt=d.__private__.getHorizontalCoordinate=function(t){return t*B},Jt=d.__private__.getVerticalCoordinate=function(t){return rt[C].mediaBox.topRightY-rt[C].mediaBox.bottomLeftY-t*B},Zt=d.__private__.getHorizontalCoordinateString=function(t){return y(t*B)},Kt=d.__private__.getVerticalCoordinateString=function(t){return y(rt[C].mediaBox.topRightY-rt[C].mediaBox.bottomLeftY-t*B)},Qt=c.strokeColor||"0 G",$t=(d.__private__.getStrokeColor=d.getDrawColor=function(){return dt(Qt)},d.__private__.setStrokeColor=d.setDrawColor=function(t,e,n,r){return Qt=pt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),z(Qt),this},c.fillColor||"0 g"),te=(d.__private__.getFillColor=d.getFillColor=function(){return dt($t)},d.__private__.setFillColor=d.setFillColor=function(t,e,n,r){return $t=pt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),z($t),this},c.textColor||"0 g"),ee=d.__private__.getTextColor=d.getTextColor=function(){return dt(te)},ne=(d.__private__.setTextColor=d.setTextColor=function(t,e,n,r){return te=pt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this},c.charSpace||0),re=d.__private__.getCharSpace=d.getCharSpace=function(){return ne},ie=(d.__private__.setCharSpace=d.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ne=t,this},0);d.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},d.__private__.setLineCap=d.setLineCap=function(t){var e=d.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 z((ie=e)+" J"),this};var oe,ae=0;for(var se in d.__private__.setLineJoin=d.setLineJoin=function(t){var e=d.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 z((ae=e)+" j"),this},d.__private__.setMiterLimit=d.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setMiterLimit");return oe=parseFloat(y(t*B)),z(oe+" M"),this},d.save=function(t,e){if(t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1!==e.returnPromise)return new Promise(function(e,n){try{var i=Et(Bt(Mt()),t);"function"==typeof Et.unload&&r.setTimeout&&setTimeout(Et.unload,911),e(i)}catch(e){n(e.message)}});Et(Bt(Mt()),t),"function"==typeof Et.unload&&r.setTimeout&&setTimeout(Et.unload,911)},s.API)s.API.hasOwnProperty(se)&&("events"===se&&s.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))}(ot,s.API.events):d[se]=s.API[se]);return d.internal={pdfEscape:xt,getStyle:zt,getFont:function(){return tt[kt.apply(d,arguments)]},getFontSize:W,getCharSpace:re,getTextColor:ee,getLineHeight:Gt,getLineHeightFactor:Yt,write:V,getHorizontalCoordinate:Xt,getVerticalCoordinate:Jt,getCoordinateString:Zt,getVerticalCoordinateString:Kt,collections:{},newObject:st,newAdditionalObject:lt,newObjectDeferred:ct,newObjectDeferredBegin:ut,getFilters:gt,putStream:mt,events:ot,scaleFactor:B,pageSize:{getWidth:function(){return(rt[C].mediaBox.topRightX-rt[C].mediaBox.bottomLeftX)/B},setWidth:function(t){rt[C].mediaBox.topRightX=t*B+rt[C].mediaBox.bottomLeftX},getHeight:function(){return(rt[C].mediaBox.topRightY-rt[C].mediaBox.bottomLeftY)/B},setHeight:function(t){rt[C].mediaBox.topRightY=t*B+rt[C].mediaBox.bottomLeftY}},output:Rt,getNumberOfPages:Nt,pages:D,out:z,f2:y,f3:w,getPageInfo:Ft,getPageInfoByObjId:Dt,getCurrentPageInfo:jt,getPDFVersion:g,hasHotfix:Ot},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return(rt[C].mediaBox.topRightX-rt[C].mediaBox.bottomLeftX)/B},set:function(t){rt[C].mediaBox.topRightX=t*B+rt[C].mediaBox.bottomLeftX},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return(rt[C].mediaBox.topRightY-rt[C].mediaBox.bottomLeftY)/B},set:function(t){rt[C].mediaBox.topRightY=t*B+rt[C].mediaBox.bottomLeftY},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=H.length;e<n;e++){var r=wt(t[e][0],t[e][1],t[e][2],H[e][3],!0);f[r]=!0;var i=t[e][0].split("-");yt(r,i[0],i[1]||"")}ot.publish("addFonts",{fonts:tt,dictionary:et})}(H),M="F1",St(n,t),ot.publish("initialized"),d}return s.API={events:[]},s.version="1.5.3",void 0!==(o=function(){return s}.call(e,n,e,t))&&(t.exports=o),s}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")());(function(t,e){var n,r=1,o=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},a=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},s=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(2)},c=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(5)};t.__acroform__={};var u=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},l=function(t){return t*r},h=function(t){return t/r},f=function(t){var e=new B,n=X.internal.getHeight(t)||0,r=X.internal.getWidth(t)||0;return e.BBox=[0,0,Number(s(r)),Number(s(n))],e},d=t.__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},p=t.__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)},g=t.__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},m=t.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return g(t,e-1)},v=t.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return d(t,e-1)},b=t.__acroform__.clearBitForPdf=function(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return p(t,e-1)},y=t.__acroform__.calculateCoordinates=function(t){var e=this.internal.getHorizontalCoordinate,n=this.internal.getVerticalCoordinate,r=t[0],i=t[1],o=t[2],a=t[3],c={};return c.lowerLeft_X=e(r)||0,c.lowerLeft_Y=n(i+a)||0,c.upperRight_X=e(r+o)||0,c.upperRight_Y=n(i)||0,[Number(s(c.lowerLeft_X)),Number(s(c.lowerLeft_Y)),Number(s(c.upperRight_X)),Number(s(c.upperRight_Y))]},w=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t.V||t.DV,i=x(t,r),o=n.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(n.__private__.encodeColorString(t.color)),e.push("/"+o+" "+s(i.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=new f(t);return a.stream=e.join("\n"),a}},x=function(t,e){var r=t.maxFontSize||12,i=(t.fontName,{text:"",fontSize:""}),a=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" "),c=(n.__private__.encodeColorString(t.color),r),u=X.internal.getHeight(t)||0;u=u<0?-u:u;var l=X.internal.getWidth(t)||0;l=l<0?-l:l;var h=function(e,n,r){if(e+1<a.length){var i=n+" "+a[e+1];return A(i,t,r).width<=l-4}return!1};c++;t:for(;;){e="";var f=A("3",t,--c).height,d=t.multiline?u-c:(u-f)/2,p=-2,g=d+=2,m=0,v=0,b=0;if(c<=0){e="(...) Tj\n",e+="% Width of Text: "+A(e,t,c=12).width+", FieldWidth:"+l+"\n";break}b=A(a[0]+" ",t,c).width;var y="",w=0;for(var x in a)if(a.hasOwnProperty(x)){y=" "==(y+=a[x]+" ").substr(y.length-1)?y.substr(0,y.length-1):y;var S=parseInt(x);b=A(y+" ",t,c).width;var _=h(S,y,c),N=x>=a.length-1;if(_&&!N){y+=" ";continue}if(_||N){if(N)v=S;else if(t.multiline&&u<(f+2)*(w+2)+2)continue t}else{if(!t.multiline)continue t;if(u<(f+2)*(w+2)+2)continue t;v=S}for(var k="",L=m;L<=v;L++)k+=a[L]+" ";switch(k=" "==k.substr(k.length-1)?k.substr(0,k.length-1):k,b=A(k,t,c).width,t.textAlign){case"right":p=l-b-2;break;case"center":p=(l-b)/2;break;case"left":default:p=2}e+=s(p)+" "+s(g)+" Td\n",e+="("+o(k)+") Tj\n",e+=-s(p)+" 0 Td\n",g=-(c+2),b=0,m=v+1,w++,y=""}break}return i.text=e,i.fontSize=c,i},A=function(t,e,r){var i=n.internal.getFont(e.fontName,e.fontStyle),o=n.getStringUnitWidth(t,{font:i,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:n.getStringUnitWidth("3",{font:i,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:o}},S={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},_=function(){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];r.objId=void 0,r.hasAnnotation&&N.call(n,r)}},N=function(t){var e={type:"reference",object:t};void 0===n.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===e.type&&t.object===e.object})&&n.internal.getPageInfo(t.page).pageContext.annotations.push(e)},k=function(){if(void 0===n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},L=function(){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0},C=function(t){var e=!t;for(var r in t||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var o=t[r],a=[],s=o.Rect;if(o.Rect&&(o.Rect=y.call(this,o.Rect)),n.internal.newObjectDeferredBegin(o.objId,!0),o.DA=X.createDefaultAppearanceStream(o),"object"===i(o)&&"function"==typeof o.getKeyValueListForStream&&(a=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var c=w.call(this,o);a.push({key:"AP",value:"<</N "+c+">>"}),n.internal.acroformPlugin.xForms.push(c)}if(o.appearanceStreamContent){var u="";for(var l in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(l)){var h=o.appearanceStreamContent[l];if(u+="/"+l+" ",u+="<<",1<=Object.keys(h).length||Array.isArray(h))for(var r in h){var f;h.hasOwnProperty(r)&&("function"==typeof(f=h[r])&&(f=f.call(this,o)),u+="/"+r+" "+f+" ",0<=n.internal.acroformPlugin.xForms.indexOf(f)||n.internal.acroformPlugin.xForms.push(f))}else"function"==typeof(f=h)&&(f=f.call(this,o)),u+="/"+r+" "+f,0<=n.internal.acroformPlugin.xForms.indexOf(f)||n.internal.acroformPlugin.xForms.push(f);u+=">>"}a.push({key:"AP",value:"<<\n"+u+">>"})}n.internal.putStream({additionalKeyValues:a}),n.internal.out("endobj")}e&&P.call(this,n.internal.acroformPlugin.xForms)},P=function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=e,o=t[e];n.internal.newObjectDeferredBegin(o&&o.objId,!0),"object"===i(o)&&"function"==typeof o.putStream&&o.putStream(),delete t[r]}},E=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(n=this,O.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(S)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");r=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new R,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",L),n.internal.events.subscribe("buildDocument",_),n.internal.events.subscribe("putCatalog",k),n.internal.events.subscribe("postPutPages",C),n.internal.acroformPlugin.isInitialized=!0}},T=t.__acroform__.arrayToPdfArray=function(t){if(Array.isArray(t)){for(var e="[",n=0;n<t.length;n++)switch(0!==n&&(e+=" "),i(t[n])){case"boolean":case"number":case"object":e+=t[n].toString();break;case"string":"/"!==t[n].substr(0,1)?e+="("+o(t[n].toString())+")":e+=t[n].toString()}return e+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},I=function(t){return(t=t||"").toString(),"("+o(t)+")"},M=function(){var t;Object.defineProperty(this,"objId",{configurable:!0,get:function(){if(t||(t=n.internal.newObjectDeferred()),!t)throw new Error("AcroFormPDFObject: Couldn't create Object ID");return t},set:function(e){t=e}})};M.prototype.toString=function(){return this.objId+" 0 R"},M.prototype.putStream=function(){var t=this.getKeyValueListForStream();n.internal.putStream({data:this.stream,additionalKeyValues:t}),n.internal.out("endobj")},M.prototype.getKeyValueListForStream=function(){return function(t){var e=[],n=Object.getOwnPropertyNames(t).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"_"!=t.substring(0,1)});for(var r in n)if(!1===Object.getOwnPropertyDescriptor(t,n[r]).configurable){var i=n[r],o=t[i];o&&(Array.isArray(o)?e.push({key:i,value:T(o)}):o instanceof M?e.push({key:i,value:o.objId+" 0 R"}):"function"!=typeof o&&e.push({key:i,value:o}))}return e}(this)};var B=function(){M.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};u(B,M);var R=function(){M.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<e.length?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)return"("+t+")"},set:function(e){t=e}})};u(R,M);var O=function t(){M.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(e,3))},set:function(t){!0===Boolean(t)?this.F=v(e,3):this.F=b(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:h(r[0])},set:function(t){r[0]=l(t)}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:h(r[1])},set:function(t){r[1]=l(t)}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:h(r[2])},set:function(t){r[2]=l(t)}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:h(r[3])},set:function(t){r[3]=l(t)}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof H)return;s="FieldObject"+t.FieldNum++}return"("+o(s)+")"},set:function(t){s=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(t){s=t}});var c="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var u="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return u},set:function(t){u=t}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return h(f)},set:function(t){f=l(t)}});var d=50;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return h(d)},set:function(t){d=l(t)}});var p="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return p},set:function(t){p=t}});var g="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!g||this instanceof H||this instanceof W))return I(g)},set:function(t){t=t.toString(),g=t}});var y=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(y)return this instanceof z==0?I(y):y},set:function(t){t=t.toString(),y=this instanceof z==0?"("===t.substr(0,1)?a(t.substr(1,t.length-2)):a(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof z==1?a(y.substr(1,y.length-1)):y},set:function(t){t=t.toString(),y=this instanceof z==1?"/"+t:t}});var w=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof z==0?I(w):w},set:function(t){t=t.toString(),w=this instanceof z==0?"("===t.substr(0,1)?a(t.substr(1,t.length-2)):a(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof z==1?a(w.substr(1,w.length-1)):w},set:function(t){t=t.toString(),w=this instanceof z==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 x,A=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function(){return A},set:function(t){t=Boolean(t),A=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function(){if(x)return x},set:function(t){x=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,1):this.Ff=b(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,2):this.Ff=b(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,3):this.Ff=b(this.Ff,3)}});var S=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==S)return S},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');S=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t="left";switch(S){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:S=2;break;case"center":case 1:S=1;break;case"left":case 0:default:S=0}}})};u(O,M);var F=function(){O.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 T(e)},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(m(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,18):this.Ff=b(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=v(this.Ff,19):this.Ff=b(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=v(this.Ff,20),e.sort()):this.Ff=b(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,22):this.Ff=b(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,23):this.Ff=b(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,27):this.Ff=b(this.Ff,27)}}),this.hasAppearanceStream=!1};u(F,O);var D=function(){F.call(this),this.fontName="helvetica",this.combo=!1};u(D,F);var j=function(){D.call(this),this.combo=!0};u(j,D);var q=function(){j.call(this),this.edit=!0};u(q,j);var z=function(){O.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,15):this.Ff=b(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,16):this.Ff=b(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,17):this.Ff=b(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,26):this.Ff=b(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){if(0!==Object.keys(e).length){var t,n=[];for(t in n.push("<<"),e)n.push("/"+t+" ("+e[t]+")");return n.push(">>"),n.join("\n")}},set:function(t){"object"===i(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}})};u(z,O);var V=function(){z.call(this),this.pushButton=!0};u(V,z);var U=function(){z.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:[]}})};u(U,z);var H=function(){var t,e;O.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,e=[];for(t in e.push("<<"),r)e.push("/"+t+" ("+r[t]+")");return e.push(">>"),e.join("\n")},set:function(t){"object"===i(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.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=X.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};u(H,O),U.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()}},U.prototype.createOption=function(t){this.Kids.length;var e=new H;return e.Parent=this,e.optionName=t,this.Kids.push(e),J.call(this,e),e};var G=function(){z.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=X.CheckBox.createAppearanceStream()};u(G,z);var W=function(){O.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,13):this.Ff=b(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,21):this.Ff=b(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,23):this.Ff=b(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,24):this.Ff=b(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,25):this.Ff=b(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,26):this.Ff=b(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}})};u(W,O);var Y=function(){W.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,14):this.Ff=b(this.Ff,14)}}),this.password=!0};u(Y,W);var X={CheckBox:{createAppearanceStream:function(){return{N:{On:X.CheckBox.YesNormal},D:{On:X.CheckBox.YesPushDown,Off:X.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=f(t),r=[],i=n.internal.getFont(t.fontName,t.fontStyle).id,o=n.__private__.encodeColorString(t.color),a=x(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+s(X.internal.getWidth(t))+" "+s(X.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+i+" "+s(a.fontSize)+" Tf "+o),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=f(t),r=n.internal.getFont(t.fontName,t.fontStyle).id,i=n.__private__.encodeColorString(t.color),o=[],a=X.internal.getHeight(t),c=X.internal.getWidth(t),u=x(t,t.caption);return o.push("1 g"),o.push("0 0 "+s(c)+" "+s(a)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+s(c-1)+" "+s(a-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+r+" "+s(u.fontSize)+" Tf "+i),o.push(u.text),o.push("ET"),o.push("Q"),e.stream=o.join("\n"),e},OffPushDown:function(t){var e=f(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(X.internal.getWidth(t))+" "+s(X.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:X.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=X.RadioButton.Circle.YesNormal,e.D[t]=X.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=f(t),n=[],r=X.internal.getWidth(t)<=X.internal.getHeight(t)?X.internal.getWidth(t)/4:X.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=X.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+c(X.internal.getWidth(t)/2)+" "+c(X.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=f(t),n=[],r=X.internal.getWidth(t)<=X.internal.getHeight(t)?X.internal.getWidth(t)/4:X.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*X.internal.Bezier_C).toFixed(5)),a=Number((r*X.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+c(X.internal.getWidth(t)/2)+" "+c(X.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 "+c(X.internal.getWidth(t)/2)+" "+c(X.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=f(t),n=[],r=X.internal.getWidth(t)<=X.internal.getHeight(t)?X.internal.getWidth(t)/4:X.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*X.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+c(X.internal.getWidth(t)/2)+" "+c(X.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:X.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=X.RadioButton.Cross.YesNormal,e.D[t]=X.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=f(t),n=[],r=X.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+s(X.internal.getWidth(t)-2)+" "+s(X.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(s(r.x1.x)+" "+s(r.x1.y)+" m"),n.push(s(r.x2.x)+" "+s(r.x2.y)+" l"),n.push(s(r.x4.x)+" "+s(r.x4.y)+" m"),n.push(s(r.x3.x)+" "+s(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=f(t),n=X.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(X.internal.getWidth(t))+" "+s(X.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+s(X.internal.getWidth(t)-2)+" "+s(X.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(s(n.x1.x)+" "+s(n.x1.y)+" m"),r.push(s(n.x2.x)+" "+s(n.x2.y)+" l"),r.push(s(n.x4.x)+" "+s(n.x4.y)+" m"),r.push(s(n.x3.x)+" "+s(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=f(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(X.internal.getWidth(t))+" "+s(X.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=n.internal.getFont(t.fontName,t.fontStyle).id,r=n.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};X.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=X.internal.getWidth(t),n=X.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}}}},X.internal.getWidth=function(t){var e=0;return"object"===i(t)&&(e=l(t.Rect[2])),e},X.internal.getHeight=function(t){var e=0;return"object"===i(t)&&(e=l(t.Rect[3])),e};var J=t.addField=function(t){if(E.call(this),!(t instanceof O))throw new Error("Invalid argument passed to jsPDF.addField.");return function(t){n.internal.acroformPlugin.printedOut&&(n.internal.acroformPlugin.printedOut=!1,n.internal.acroformPlugin.acroFormDictionaryRoot=null),n.internal.acroformPlugin.acroFormDictionaryRoot||E.call(n),n.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)}.call(this,t),t.page=n.internal.getCurrentPageInfo().pageNumber,this};t.addButton=function(t){if(t instanceof z==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return J.call(this,t)},t.addTextField=function(t){if(t instanceof W==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return J.call(this,t)},t.addChoiceField=function(t){if(t instanceof F==0)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return J.call(this,t)},"object"==i(e)&&void 0===e.ChoiceField&&void 0===e.ListBox&&void 0===e.ComboBox&&void 0===e.EditBox&&void 0===e.Button&&void 0===e.PushButton&&void 0===e.RadioButton&&void 0===e.CheckBox&&void 0===e.TextField&&void 0===e.PasswordField?(e.ChoiceField=F,e.ListBox=D,e.ComboBox=j,e.EditBox=q,e.Button=z,e.PushButton=V,e.RadioButton=U,e.CheckBox=G,e.TextField=W,e.PasswordField=Y,e.AcroForm={Appearance:X}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),t.AcroFormChoiceField=F,t.AcroFormListBox=D,t.AcroFormComboBox=j,t.AcroFormEditBox=q,t.AcroFormButton=z,t.AcroFormPushButton=V,t.AcroFormRadioButton=U,t.AcroFormCheckBox=G,t.AcroFormTextField=W,t.AcroFormPasswordField=Y,t.AcroFormAppearance=X,t.AcroForm={ChoiceField:F,ListBox:D,ComboBox:j,EditBox:q,Button:z,PushButton:V,RadioButton:U,CheckBox:G,TextField:W,PasswordField:Y,Appearance:X}})((window.tmp=pt).API,"undefined"!=typeof window&&window||void 0!==r&&r),function(t){var e="addImage_",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]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.getImageFileTypeByImageData=function(e,r){var i,o;r=r||"UNKNOWN";var a,s,c,u="UNKNOWN";for(c in t.isArrayBufferView(e)&&(e=t.arrayBufferToBinaryString(e)),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]!==e.charCodeAt(o)){s=!1;break}if(!0===s){u=c;break}}return"UNKNOWN"===u&&"UNKNOWN"!==r&&(console.warn('FileType of Image not recognized. Processing image as "'+r+'".'),u=r),u},o=function t(e){for(var n=this.internal.newObject(),r=this.internal.write,i=this.internal.putStream,o=(0,this.internal.getFilters)();-1!==o.indexOf("FlateEncode");)o.splice(o.indexOf("FlateEncode"),1);e.n=n;var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.w}),a.push({key:"Height",value:e.h}),e.cs===this.color_spaces.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.pal.length/3-1)+" "+("smask"in e?n+2:n+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.cs}),e.cs===this.color_spaces.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bpc}),"dp"in e&&a.push({key:"DecodeParms",value:"<<"+e.dp+">>"}),"trns"in e&&e.trns.constructor==Array){for(var s="",c=0,u=e.trns.length;c<u;c++)s+=e.trns[c]+" "+e.trns[c]+" ";a.push({key:"Mask",value:"["+s+"]"})}"smask"in e&&a.push({key:"SMask",value:n+1+" 0 R"});var l=void 0!==e.f?["/"+e.f]:void 0;if(i({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:l}),r("endobj"),"smask"in e){var h="/Predictor "+e.p+" /Colors 1 /BitsPerComponent "+e.bpc+" /Columns "+e.w,f={w:e.w,h:e.h,cs:"DeviceGray",bpc:e.bpc,dp:h,data:e.smask};"f"in e&&(f.f=e.f),t.call(this,f)}e.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),i({data:this.arrayBufferToBinaryString(new Uint8Array(e.pal))}),r("endobj"))},a=function(){var t=this.internal.collections[e+"images"];for(var n in t)o.call(this,t[n])},s=function(){var t,n=this.internal.collections[e+"images"],r=this.internal.write;for(var i in n)r("/I"+(t=n[i]).i,t.n,"0","R")},c=function(e){return"function"==typeof t["process"+e.toUpperCase()]},u=function(t){return"object"===i(t)&&1===t.nodeType},l=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return unescape(r);var i=t.loadFile(r);if(void 0!==i)return btoa(i)}if("CANVAS"===e.nodeName){var o=e;return e.toDataURL("image/jpeg",1)}(o=document.createElement("canvas")).width=e.clientWidth||e.width,o.height=e.clientHeight||e.height;var a=o.getContext("2d");if(!a)throw"addImage requires canvas to be supported by browser.";return a.drawImage(e,0,0,o.width,o.height),o.toDataURL("png"==(""+n).toLowerCase()?"image/png":"image/jpeg")},h=function(t,e){var n;if(e)for(var r in e)if(t===e[r].alias){n=e[r];break}return n};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"},t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},t.sHashCode=function(t){var e,n=0;if(0===(t=t||"").length)return n;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},t.isString=function(t){return"string"==typeof t},t.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},t.extractInfoFromBase64DataURI=function(t){return/^data:([\w]+?\/([\w]+?));\S*;*base64,(.+)$/g.exec(t)},t.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},t.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},t.isArrayBuffer=function(t){return!!this.supportsArrayBuffer()&&t instanceof ArrayBuffer},t.isArrayBufferView=function(t){return!!this.supportsArrayBuffer()&&"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.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},t.arrayBufferToBinaryString=function(t){if("function"==typeof atob)return atob(this.arrayBufferToBase64(t))},t.arrayBufferToBase64=function(t){for(var e,n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(t),o=i.byteLength,a=o%3,s=o-a,c=0;c<s;c+=3)n+=r[(16515072&(e=i[c]<<16|i[c+1]<<8|i[c+2]))>>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1==a?n+=r[(252&(e=i[s]))>>2]+r[(3&e)<<4]+"==":2==a&&(n+=r[(64512&(e=i[s]<<8|i[s+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),n},t.createImageInfo=function(t,e,n,r,i,o,a,s,c,u,l,h,f){var d={alias:s,w:e,h:n,cs:r,bpc:i,i:a,data:t};return o&&(d.f=o),c&&(d.dp=c),u&&(d.trns=u),l&&(d.pal=l),h&&(d.smask=h),f&&(d.p=f),d},t.addImage=function(n,r,o,f,d,p,g,m,v){var b="";if("string"!=typeof r){var y=p;p=d,d=f,f=o,o=r,r=y}if("object"===i(n)&&!u(n)&&"imageData"in n){var w=n;n=w.imageData,r=w.format||r||"UNKNOWN",o=w.x||o||0,f=w.y||f||0,d=w.w||d,p=w.h||p,g=w.alias||g,m=w.compression||m,v=w.rotation||w.angle||v}var x=this.internal.getFilters();if(void 0===m&&-1!==x.indexOf("FlateEncode")&&(m="SLOW"),"string"==typeof n&&(n=unescape(n)),isNaN(o)||isNaN(f))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var A,S,_,N,k,L,C,P=function(){var t=this.internal.collections[e+"images"];return t||(this.internal.collections[e+"images"]=t={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s)),t}.call(this);if(!((A=h(n,P))||(u(n)&&(n=l(n,r)),(null==(C=g)||0===C.length)&&(g="string"==typeof(L=n)?t.sHashCode(L):t.isArrayBufferView(L)?t.sHashCode(t.arrayBufferToBinaryString(L)):null),A=h(g,P)))){if(this.isString(n)&&(""!==(b=this.convertStringToImageData(n))?n=b:void 0!==(b=t.loadFile(n))&&(n=b)),r=this.getImageFileTypeByImageData(n,r),!c(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(n instanceof Uint8Array||(S=n,n=this.binaryStringToUint8Array(n))),!(A=this["process"+r.toUpperCase()](n,(k=0,(N=P)&&(k=Object.keys?Object.keys(N).length:function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;return e}(N)),k),g,((_=m)&&"string"==typeof _&&(_=_.toUpperCase()),_ in t.image_compression?_:t.image_compression.NONE),S)))throw new Error("An unknown error occurred whilst processing the image")}return function(t,e,n,r,i,o,a,s){var c=function(t,e,n){return t||e||(e=t=-96),t<0&&(t=-1*n.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.h*72/e/this.internal.scaleFactor),0===t&&(t=e*n.w/n.h),0===e&&(e=t*n.h/n.w),[t,e]}.call(this,n,r,i),u=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;if(n=c[0],r=c[1],a[o]=i,s){s*=Math.PI/180;var h=Math.cos(s),f=Math.sin(s),d=function(t){return t.toFixed(4)},p=[d(h),d(f),d(-1*f),d(h),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,u(t),l(e+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([u(n),"0","0",u(r),"0","0","cm"].join(" "))):this.internal.write([u(n),"0","0",u(r),u(t),l(e+r),"cm"].join(" ")),this.internal.write("/I"+i.i+" Do"),this.internal.write("Q")}.call(this,o,f,d,p,A,A.i,P,v),this},t.convertStringToImageData=function(e){var n,r="";if(this.isString(e)){var i;n=null!==(i=this.extractImageFromDataUrl(e))?i.data:e;try{r=atob(n)}catch(e){throw t.validateStringAsBase64(n)?new Error("atob-Error in jsPDF.convertStringToImageData "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return r};var f=function(t,e){return t.subarray(e,e+5)};t.processJPEG=function(t,e,n,i,o,a){var s,c=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(s=function(t){var e;if("JPEG"!==r(t))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*t.charCodeAt(4)+t.charCodeAt(5),i=4,o=t.length;i<o;){if(i+=n,255!==t.charCodeAt(i))throw new Error("getJpegSize could not find the size of the image");if(192===t.charCodeAt(i+1)||193===t.charCodeAt(i+1)||194===t.charCodeAt(i+1)||195===t.charCodeAt(i+1)||196===t.charCodeAt(i+1)||197===t.charCodeAt(i+1)||198===t.charCodeAt(i+1)||199===t.charCodeAt(i+1))return e=256*t.charCodeAt(i+5)+t.charCodeAt(i+6),[256*t.charCodeAt(i+7)+t.charCodeAt(i+8),e,t.charCodeAt(i+9)];i+=2,n=256*t.charCodeAt(i)+t.charCodeAt(i+1)}}(t)),this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)&&(s=function(t){if(65496!=(t[0]<<8|t[1]))throw new Error("Supplied data is not a JPEG");for(var e,n=t.length,r=(t[4]<<8)+t[5],i=4;i<n;){if(r=((e=f(t,i+=r))[2]<<8)+e[3],(192===e[1]||194===e[1])&&255===e[0]&&7<r)return{width:((e=f(t,i+5))[2]<<8)+e[3],height:(e[0]<<8)+e[1],numcomponents:e[4]};i+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(t),t=o||this.arrayBufferToBinaryString(t)),void 0===a)switch(s.numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;default:case 3:a=this.color_spaces.DEVICE_RGB}return this.createImageInfo(t,s.width,s.height,a,8,c,e,n)},t.processJPG=function(){return this.processJPEG.apply(this,arguments)},t.getImageProperties=function(e){var n,r,i="";if(u(e)&&(e=l(e)),this.isString(e)&&(""!==(i=this.convertStringToImageData(e))?e=i:void 0!==(i=t.loadFile(e))&&(e=i)),r=this.getImageFileTypeByImageData(e),!c(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(e instanceof Uint8Array||(e=this.binaryStringToUint8Array(e))),!(n=this["process"+r.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return{fileType:r,width:n.w,height:n.h,colorSpace:n.cs,compressionMode:n.f,bitsPerComponent:n.bpc}}}(pt.API),a=pt.API,pt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),a.events.push(["putPage",function(t){for(var e=this.internal.getPageInfoByObjId(t.objId),n=t.pageContext.annotations,r=function(t){if(void 0!==t&&""!=t)return!0},i=!1,o=0;o<n.length&&!i;o++)switch((c=n[o]).type){case"link":if(r(c.options.url)||r(c.options.pageNumber)){i=!0;break}case"reference":case"text":case"freetext":i=!0}if(0!=i){this.internal.write("/Annots ["),this.internal.pageSize.height;var a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;for(o=0;o<n.length;o++){var c;switch((c=n[o]).type){case"reference":this.internal.write(" "+c.object.objId+" 0 R ");break;case"text":var u=this.internal.newAdditionalObject(),l=this.internal.newAdditionalObject(),h=c.title||"Note";m="<</Type /Annot /Subtype /Text "+(d="/Rect ["+a(c.bounds.x)+" "+s(c.bounds.y+c.bounds.h)+" "+a(c.bounds.x+c.bounds.w)+" "+s(c.bounds.y)+"] ")+"/Contents ("+c.contents+")",m+=" /Popup "+l.objId+" 0 R",m+=" /P "+e.objId+" 0 R",m+=" /T ("+h+") >>",u.content=m;var f=u.objId+" 0 R";m="<</Type /Annot /Subtype /Popup "+(d="/Rect ["+a(c.bounds.x+30)+" "+s(c.bounds.y+c.bounds.h)+" "+a(c.bounds.x+c.bounds.w+30)+" "+s(c.bounds.y)+"] ")+" /Parent "+f,c.open&&(m+=" /Open true"),m+=" >>",l.content=m,this.internal.write(u.objId,"0 R",l.objId,"0 R");break;case"freetext":var d="/Rect ["+a(c.bounds.x)+" "+s(c.bounds.y)+" "+a(c.bounds.x+c.bounds.w)+" "+s(c.bounds.y+c.bounds.h)+"] ",p=c.color||"#000000";m="<</Type /Annot /Subtype /FreeText "+d+"/Contents ("+c.contents+")",m+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+p+")",m+=" /Border [0 0 0]",m+=" >>",this.internal.write(m);break;case"link":if(c.options.name){var g=this.annotations._nameMap[c.options.name];c.options.pageNumber=g.page,c.options.top=g.y}else c.options.top||(c.options.top=0);d="/Rect ["+a(c.x)+" "+s(c.y)+" "+a(c.x+c.w)+" "+s(c.y+c.h)+"] ";var m="";if(c.options.url)m="<</Type /Annot /Subtype /Link "+d+"/Border [0 0 0] /A <</S /URI /URI ("+c.options.url+") >>";else if(c.options.pageNumber)switch(m="<</Type /Annot /Subtype /Link "+d+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(c.options.pageNumber).objId+" 0 R",c.options.magFactor=c.options.magFactor||"XYZ",c.options.magFactor){case"Fit":m+=" /Fit]";break;case"FitH":m+=" /FitH "+c.options.top+"]";break;case"FitV":c.options.left=c.options.left||0,m+=" /FitV "+c.options.left+"]";break;case"XYZ":default:var v=s(c.options.top);c.options.left=c.options.left||0,void 0===c.options.zoom&&(c.options.zoom=0),m+=" /XYZ "+c.options.left+" "+v+" "+c.options.zoom+"]"}""!=m&&(m+=" >>",this.internal.write(m))}}this.internal.write("]")}}]),a.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)}},a.link=function(t,e,n,r,i){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:t,y:e,w:n,h:r,options:i,type:"link"})},a.textWithLink=function(t,e,n,r){var i=this.getTextWidth(t),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,n),n+=.2*o,this.link(e,n-o,i,o,r),i},a.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},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)&&0<=i.indexOf(t.charCodeAt(0))},u=(t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&o(t)&&1<=e[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&o(t)&&2<=e[t.charCodeAt(0)].length}),l=(t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&o(t)&&3<=e[t.charCodeAt(0)].length},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=0,o="",a=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(a++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i=-1!==(i=f(t.charAt(e),t.charAt(e-a),t.charAt(e+1)))?i:0,o+=String.fromCharCode(r),r=n,a=0),e===t.length-1&&(r=n,o+=t.charAt(e-(a-1)),e-=a-1,a=0)):(r=n,o+=t.charAt(e-a),e-=a,a=0);return o},f=(t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]},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=t.__arabicParser__.processArabic=t.processArabic=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(" ")};t.events.push(["preProcessText",function(t){var e=t.text,n=(t.x,t.y,t.options||{}),r=(t.mutex,n.lang,[]);if("[object Array]"===Object.prototype.toString.call(e)){var i=0;for(r=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?r.push([d(e[i][0]),e[i][1],e[i][2]]):r.push([d(e[i])]);t.text=r}else t.text=d(e)}])}(pt.API),pt.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},s=pt.API,(c=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",{get:function(){return!1}})}).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).pdf.context2d},c.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},s.events.push(["initialized",function(){this.canvas=new c,this.canvas.pdf=this}]),u=pt.API,h={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1,d=function(t,e,n,r,i){h={x:t,y:e,w:n,h:r,ln:i}},p=function(){return h},g={left:0,top:0,bottom:0},u.setHeaderFunction=function(t){l=t},u.getTextDimensions=function(t,e){var n=this.table_font_size||this.internal.getFontSize(),r=(this.internal.getFont().fontStyle,(e=e||{}).scaleFactor||this.internal.scaleFactor),i=0,o=0,a=0;if("string"==typeof t)0!=(i=this.getStringUnitWidth(t)*n)&&(o=1);else{if("[object Array]"!==Object.prototype.toString.call(t))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var s=0;s<t.length;s++)i<(a=this.getStringUnitWidth(t[s])*n)&&(i=a);0!==i&&(o=t.length)}return{w:i/=r,h:Math.max((o*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/r,0)}},u.cellAddPage=function(){var t=this.margins||g;this.addPage(),d(t.left,t.top,void 0,void 0),f+=1},u.cellInitialize=function(){h={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1},u.cell=function(t,e,n,r,i,o,a){var s=p(),c=!1;if(void 0!==s.ln)if(s.ln===o)t=s.x+s.w,e=s.y;else{var u=this.margins||g;s.y+s.h+r+13>=this.internal.pageSize.getHeight()-u.bottom&&(this.cellAddPage(),c=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),e=p().y+p().h,c&&(e=23)}if(void 0!==i[0])if(this.printingHeaderRow?this.rect(t,e,n,r,"FD"):this.rect(t,e,n,r),"right"===a){i instanceof Array||(i=[i]);for(var l=0;l<i.length;l++){var h=i[l],f=this.getStringUnitWidth(h)*this.internal.getFontSize()/this.internal.scaleFactor;this.text(h,t+n-f-3,e+this.internal.getLineHeight()*(l+1))}}else this.text(i,t+3,e+this.internal.getLineHeight());return d(t,e,n,r,o),this},u.arrayMax=function(t,e){var n,r,i,o=t[0];for(n=0,r=t.length;n<r;n+=1)i=t[n],e?-1===e(o,i)&&(o=i):o<i&&(o=i);return o},u.table=function(t,e,n,r,i){if(!n)throw"No data for PDF table";var o,a,s,c,l,d,p,m,v,b,y=[],w=[],x={},A={},S=[],_=[],N=!1,k=!0,L=12,C=g;if(C.width=this.internal.pageSize.getWidth(),i&&(!0===i.autoSize&&(N=!0),!1===i.printHeaders&&(k=!1),i.fontSize&&(L=i.fontSize),i.css&&void 0!==i.css["font-size"]&&(L=16*i.css["font-size"]),i.margins&&(C=i.margins)),this.lnMod=0,h={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1,this.printHeaders=k,this.margins=C,this.setFontSize(L),this.table_font_size=L,null==r)y=Object.keys(n[0]);else if(r[0]&&"string"!=typeof r[0])for(a=0,s=r.length;a<s;a+=1)o=r[a],y.push(o.name),w.push(o.prompt),A[o.name]=o.width*(19.049976/25.4);else y=r;if(N)for(b=function(t){return t[o]},a=0,s=y.length;a<s;a+=1){for(x[o=y[a]]=n.map(b),S.push(this.getTextDimensions(w[a]||o,{scaleFactor:1}).w),p=0,c=(d=x[o]).length;p<c;p+=1)l=d[p],S.push(this.getTextDimensions(l,{scaleFactor:1}).w);A[o]=u.arrayMax(S),S=[]}if(k){var P=this.calculateLineHeight(y,A,w.length?w:y);for(a=0,s=y.length;a<s;a+=1)o=y[a],_.push([t,e,A[o],P,String(w.length?w[a]:o)]);this.setTableHeaderRow(_),this.printHeaderRow(1,!1)}for(a=0,s=n.length;a<s;a+=1)for(m=n[a],P=this.calculateLineHeight(y,A,m),p=0,v=y.length;p<v;p+=1)o=y[p],this.cell(t,e,A[o],P,m[o],a+2,o.align);return this.lastCellPos=h,this.table_x=t,this.table_y=e,this},u.calculateLineHeight=function(t,e,n){for(var r,i=0,o=0;o<t.length;o++){n[r=t[o]]=this.splitTextToSize(String(n[r]),e[r]-3);var a=this.internal.getLineHeight()*n[r].length+3;i<a&&(i=a)}return i},u.setTableHeaderRow=function(t){this.tableHeaderRow=t},u.printHeaderRow=function(t,e){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var n,r,i,o;if(this.printingHeaderRow=!0,void 0!==l){var a=l(this,f);d(a[0],a[1],a[2],a[3],-1)}this.setFontStyle("bold");var s=[];for(i=0,o=this.tableHeaderRow.length;i<o;i+=1)this.setFillColor(200,200,200),n=this.tableHeaderRow[i],e&&(this.margins.top=13,n[1]=this.margins&&this.margins.top||0,s.push(n)),r=[].concat(n),this.cell.apply(this,r.concat(t));0<s.length&&this.setTableHeaderRow(s),this.setFontStyle("normal"),this.printingHeaderRow=!1},function(t,e){var n,r,o,a,s,c=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 R,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new M,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new M,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new u(this),n=this.internal.f2,this.internal.f3,r=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate}]);var u=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return t}});var e=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return e},set:function(t){e=Boolean(t)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var r=0;Object.defineProperty(this,"posX",{get:function(){return r},set:function(t){isNaN(t)||(r=t)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=Boolean(t)}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(t){a=t}});var s=[];Object.defineProperty(this,"pageBreaks",{get:function(){return s},set:function(t){s=t}});var u=new c;Object.defineProperty(this,"ctx",{get:function(){return u},set:function(t){t instanceof c&&(u=t)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(t){u.path=t}});var h=[];Object.defineProperty(this,"ctxStack",{get:function(){return h},set:function(t){h=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=l(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=l(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],a=e[6];i="px"===o?Math.floor(parseFloat(i)):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)),this.pdf.setFontSize(i);var s="";("bold"===r||700<=parseInt(r,10)||"bold"===n)&&(s="bold"),"italic"===n&&(s+="italic"),0===s.length&&(s="normal");for(var c="",u=a.toLowerCase().replace(/"|'/g,"").split(/\s*,\s*/),l={arial:"Helvetica",verdana:"Helvetica",helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",courier:"Courier",times:"Times",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(h=0;h<u.length;h++)if(l[u[h]]){c=l[u[h]];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)}})};u.prototype.fill=function(){m.call(this,"fill",!1)},u.prototype.stroke=function(){m.call(this,"stroke",!1)},u.prototype.beginPath=function(){this.path=[{type:"begin"}]},u.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new M(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new M(t,e)},u.prototype.closePath=function(){var t=new M(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===i(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new M(this.path[e+1].x,this.path[e+1].y),this.path.push({type:"lt",x:t.x,y:t.y});break}"object"===i(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 M(t.x,t.y)},u.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new M(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new M(n.x,n.y)},u.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),m.call(this,null,!0)},u.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new M(n,r)),o=this.ctx.transform.applyToPoint(new M(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new M(i.x,i.y)},u.prototype.bezierCurveTo=function(t,e,n,r,i,o){if(isNaN(i)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new M(i,o)),s=this.ctx.transform.applyToPoint(new M(t,e)),c=this.ctx.transform.applyToPoint(new M(n,r));this.path.push({type:"bct",x1:s.x,y1:s.y,x2:c.x,y2:c.y,x:a.x,y:a.y}),this.ctx.lastPoint=new M(a.x,a.y)},u.prototype.arc=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw console.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new M(t,e));t=a.x,e=a.y;var s=this.ctx.transform.applyToPoint(new M(0,n)),c=this.ctx.transform.applyToPoint(new M(0,0));n=Math.sqrt(Math.pow(s.x-c.x,2)+Math.pow(s.y-c.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:o})},u.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},u.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.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)},u.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.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)}},u.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");f.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},u.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.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))},u.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 c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},u.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)},u.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var l=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))i=r=n=e=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 RGBColor(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}},h=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},f=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};u.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw console.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!h.call(this)){n=b.call(this,n);var i=P(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;S.call(this,{text:t,x:e,y:n,scale:o,angle:i,align:this.textAlign,maxWidth:r})}},u.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!f.call(this)){r=isNaN(r)?void 0:r,n=b.call(this,n);var i=P(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;S.call(this,{text:t,x:e,y:n,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},u.prototype.measureText=function(t){if("string"!=typeof t)throw console.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})},u.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new R(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},u.prototype.rotate=function(t){if(isNaN(t))throw console.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new R(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},u.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new R(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},u.prototype.transform=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o))throw console.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new R(t,e,n,r,i,o);this.ctx.transform=this.ctx.transform.multiply(a)},u.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 R(t,e,n,r,i,o)},u.prototype.drawImage=function(t,e,n,r,i,o,a,s,c){var u=this.pdf.getImageProperties(t),l=1,h=1,f=1,p=1;void 0!==r&&void 0!==s&&(f=s/r,p=c/i,l=u.width/r*s/r,h=u.height/i*c/i),void 0===o&&(o=e,a=n,n=e=0),void 0!==r&&void 0===s&&(s=r,c=i),void 0===r&&void 0===s&&(s=u.width,c=u.height);var m=this.ctx.transform.decompose(),b=P(m.rotate.shx);m.scale.sx,m.scale.sy;for(var y,w=new R,x=((w=(w=(w=w.multiply(m.translate)).multiply(m.skew)).multiply(m.scale)).applyToPoint(new M(s,c)),w.applyToRectangle(new B(o-e*f,a-n*p,r*l,i*h))),A=d.call(this,x),S=[],_=0;_<A.length;_+=1)-1===S.indexOf(A[_])&&S.push(A[_]);if(S.sort(),this.autoPaging)for(var N=S[0],k=S[S.length-1],L=N;L<k+1;L++){if(this.pdf.setPage(L),0!==this.ctx.clip_path.length){var C=this.path;y=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(y,this.posX,-1*this.pdf.internal.pageSize.height*(L-1)+this.posY),v.call(this,"fill",!0),this.path=C}var E=JSON.parse(JSON.stringify(x));E=g([E],this.posX,-1*this.pdf.internal.pageSize.height*(L-1)+this.posY)[0],this.pdf.addImage(t,"jpg",E.x,E.y,E.w,E.h,null,null,b)}else this.pdf.addImage(t,"jpg",x.x,x.y,x.w,x.h,null,null,b)};var d=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=T(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=I(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];)p.call(this);return r},p=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},g=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},m=function(t,e){for(var n,r,i=this.fillStyle,o=this.strokeStyle,a=(this.font,this.lineCap),s=this.lineWidth,c=this.lineJoin,u=JSON.parse(JSON.stringify(this.path)),l=JSON.parse(JSON.stringify(this.path)),h=[],f=0;f<l.length;f++)if(void 0!==l[f].x)for(var m=d.call(this,l[f]),b=0;b<m.length;b+=1)-1===h.indexOf(m[b])&&h.push(m[b]);for(f=0;f<h.length;f++)for(;this.pdf.internal.getNumberOfPages()<h[f];)p.call(this);if(h.sort(),this.autoPaging){var y=h[0],w=h[h.length-1];for(f=y;f<w+1;f++){if(this.pdf.setPage(f),this.fillStyle=i,this.strokeStyle=o,this.lineCap=a,this.lineWidth=s,this.lineJoin=c,0!==this.ctx.clip_path.length){var x=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(n,this.posX,-1*this.pdf.internal.pageSize.height*(f-1)+this.posY),v.call(this,t,!0),this.path=x}r=JSON.parse(JSON.stringify(u)),this.path=g(r,this.posX,-1*this.pdf.internal.pageSize.height*(f-1)+this.posY),!1!==e&&0!==f||v.call(this,t,e)}}else v.call(this,t,e);this.path=u},v=function(t,e){if(("stroke"!==t||e||!f.call(this))&&("stroke"===t||e||!h.call(this))){var n=[];this.ctx.globalAlpha,this.ctx.fillOpacity<1&&this.ctx.fillOpacity;for(var r,i=this.path,o=0;o<i.length;o++){var a=i[o];switch(a.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:a,deltas:[],abs:[]});break;case"lt":var s=n.length;if(!isNaN(i[o-1].x)){var c=[a.x-i[o-1].x,a.y-i[o-1].y];if(0<s)for(;0<=s;s--)if(!0!==n[s-1].close&&!0!==n[s-1].begin){n[s-1].deltas.push(c),n[s-1].abs.push(a);break}}break;case"bct":c=[a.x1-i[o-1].x,a.y1-i[o-1].y,a.x2-i[o-1].x,a.y2-i[o-1].y,a.x-i[o-1].x,a.y-i[o-1].y],n[n.length-1].deltas.push(c);break;case"qct":var u=i[o-1].x+2/3*(a.x1-i[o-1].x),l=i[o-1].y+2/3*(a.y1-i[o-1].y),d=a.x+2/3*(a.x1-a.x),p=a.y+2/3*(a.y1-a.y),g=a.x,m=a.y;c=[u-i[o-1].x,l-i[o-1].y,d-i[o-1].x,p-i[o-1].y,g-i[o-1].x,m-i[o-1].y],n[n.length-1].deltas.push(c);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(a)}}for(r=e?null:"stroke"===t?"stroke":"fill",o=0;o<n.length;o++){if(n[o].arc)for(var v=n[o].abs,b=0;b<v.length;b++){var A=v[b];if(void 0!==A.startAngle){var S=P(A.startAngle),k=P(A.endAngle),L=A.x,C=A.y;y.call(this,L,C,A.radius,S,k,A.counterclockwise,r,e)}else _.call(this,A.x,A.y)}n[o].arc||!0===n[o].close||!0===n[o].begin||(L=n[o].start.x,C=n[o].start.y,N.call(this,n[o].deltas,L,C,null,null))}r&&w.call(this,r),e&&x.call(this)}},b=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}};u.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},u.prototype.createPattern=function(){return this.createLinearGradient()},u.prototype.createRadialGradient=function(){return this.createLinearGradient()};var y=function(t,e,n,r,i,o,a,s){this.pdf.internal.scaleFactor;for(var c=E(r),u=E(i),l=L.call(this,n,c,u,o),h=0;h<l.length;h++){var f=l[h];0===h&&A.call(this,f.x1+t,f.y1+e),k.call(this,t,e,f.x2,f.y2,f.x3,f.y3,f.x4,f.y4)}s?x.call(this):w.call(this,a)},w=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},x=function(){this.pdf.clip()},A=function(t,e){this.pdf.internal.out(r(t)+" "+o(e)+" m")},S=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 M(t.x,t.y)),r=this.ctx.transform.decompose(),i=new R;i=(i=(i=i.multiply(r.translate)).multiply(r.skew)).multiply(r.scale);for(var o,a=this.pdf.getTextDimensions(t.text),s=this.ctx.transform.applyToRectangle(new B(t.x,t.y,a.w,a.h)),c=i.applyToRectangle(new B(t.x,t.y-a.h,a.w,a.h)),u=d.call(this,c),l=[],h=0;h<u.length;h+=1)-1===l.indexOf(u[h])&&l.push(u[h]);if(l.sort(),!0===this.autoPaging)for(var f=l[0],p=l[l.length-1],m=f;m<p+1;m++){if(this.pdf.setPage(m),0!==this.ctx.clip_path.length){var b=this.path;o=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(o,this.posX,-1*this.pdf.internal.pageSize.height*(m-1)+this.posY),v.call(this,"fill",!0),this.path=b}var y=JSON.parse(JSON.stringify(s));if(y=g([y],this.posX,-1*this.pdf.internal.pageSize.height*(m-1)+this.posY)[0],.01<=t.scale){var w=this.pdf.internal.getFontSize();this.pdf.setFontSize(w*t.scale)}this.pdf.text(t.text,y.x,y.y,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),.01<=t.scale&&this.pdf.setFontSize(w)}else.01<=t.scale&&(w=this.pdf.internal.getFontSize(),this.pdf.setFontSize(w*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}),.01<=t.scale&&this.pdf.setFontSize(w)},_=function(t,e,n,i){n=n||0,i=i||0,this.pdf.internal.out(r(t+n)+" "+o(e+i)+" l")},N=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},k=function(t,e,r,i,o,c,u,l){this.pdf.internal.out([n(a(r+t)),n(s(i+e)),n(a(o+t)),n(s(c+e)),n(a(u+t)),n(s(l+e)),"c"].join(" "))},L=function(t,e,n,r){var i=2*Math.PI,o=e;(o<i||i<o)&&(o%=i);var a=n;(a<i||i<a)&&(a%=i);for(var s=[],c=Math.PI/2,u=r?-1:1,l=e,h=Math.min(i,Math.abs(a-o));1e-5<h;){var f=l+u*Math.min(h,c);s.push(C.call(this,t,l,f)),h-=Math.abs(f-l),l=f}return s},C=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)}},P=function(t){return 180*t/Math.PI},E=function(t){return t*Math.PI/180},T=function(t,e,n,r,i,o){var a=t+.5*(n-t),s=e+.5*(r-e),c=i+.5*(n-i),u=o+.5*(r-o),l=Math.min(t,i,a,c),h=Math.max(t,i,a,c),f=Math.min(e,o,s,u),d=Math.max(e,o,s,u);return new B(l,f,h-l,d-f)},I=function(t,e,n,r,i,o,a,s){for(var c,u,l,h,f,d,p,g,m,v,b,y,w,x=n-t,A=r-e,S=i-n,_=o-r,N=a-i,k=s-o,L=0;L<41;L++)g=(d=(u=t+(c=L/40)*x)+c*((h=n+c*S)-u))+c*(h+c*(i+c*N-h)-d),m=(p=(l=e+c*A)+c*((f=r+c*_)-l))+c*(f+c*(o+c*k-f)-p),w=0==L?(y=v=g,b=m):(v=Math.min(v,g),b=Math.min(b,m),y=Math.max(y,g),Math.max(w,m));return new B(Math.round(v),Math.round(b),Math.round(y-v),Math.round(w-b))},M=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},B=function(t,e,n,r){M.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},R=function(t,e,n,r,i,o){var a=[];return Object.defineProperty(this,"sx",{get:function(){return a[0]},set:function(t){a[0]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"shy",{get:function(){return a[1]},set:function(t){a[1]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"shx",{get:function(){return a[2]},set:function(t){a[2]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"sy",{get:function(){return a[3]},set:function(t){a[3]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"tx",{get:function(){return a[4]},set:function(t){a[4]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"ty",{get:function(){return a[5]},set:function(t){a[5]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(this,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(this,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(this,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),this.sx=isNaN(t)?1:t,this.shy=isNaN(e)?0:e,this.shx=isNaN(n)?0:n,this.sy=isNaN(r)?1:r,this.tx=isNaN(i)?0:i,this.ty=isNaN(o)?0:o,this};R.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 R(e,n,r,i,o,a)},R.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 R(a,0,0,c,0,0),translate:new R(1,0,0,1,i,o),rotate:new R(t,e,-e,t,0,0),skew:new R(1,0,s,1,0,0)}},R.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 M(e,n)},R.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new M(t.x+t.w,t.y+t.h));return new B(e.x,e.y,n.x-e.x,n.y-e.y)},R.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty;return new R(t,e,n,r,i,o)}}(pt.API,"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),m=pt.API,v=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;r<i;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,n){for(var r=e.length;0<r;r--)t.pop()}(n),String.fromCharCode.apply(String,n)+"~>"},b=function(t){var e,n,r,i,o,a=String,s="length",c="charCodeAt",u="slice",l="replace";for(t[u](-2),t=t[u](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),r=[],i=0,o=(t+=e="uuuuu"[u](t[s]%5||5))[s];i<o;i+=5)n=52200625*(t[c](i)-33)+614125*(t[c](i+1)-33)+7225*(t[c](i+2)-33)+85*(t[c](i+3)-33)+(t[c](i+4)-33),r.push(255&n>>24,255&n>>16,255&n>>8,255&n);return function(t,n){for(var r=e[s];0<r;r--)t.pop()}(r),a.fromCharCode.apply(a,r)},y=function(t){for(var e="",n=0;n<t.length;n+=1)e+=("0"+t.charCodeAt(n).toString(16)).slice(-2);return e+">"},w=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},x=function(t,e){e=Object.assign({predictor:1,colors:1,bitsPerComponent:8,columns:1},e);for(var n,r,i=[],o=t.length;o--;)i[o]=t.charCodeAt(o);return n=m.adler32cs.from(t),(r=new Deflater(6)).append(new Uint8Array(i)),t=r.flush(),(i=new Uint8Array(t.length+6)).set(new Uint8Array([120,156])),i.set(t,2),i.set(new Uint8Array([255&n,n>>8&255,n>>16&255,n>>24&255]),t.length+2),String.fromCharCode.apply(null,i)},m.processDataByFilters=function(t,e){var n=0,r=t||"",i=[];for("string"==typeof(e=e||[])&&(e=[e]),n=0;n<e.length;n+=1)switch(e[n]){case"ASCII85Decode":case"/ASCII85Decode":r=b(r),i.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":r=v(r),i.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":r=w(r),i.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":r=y(r),i.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":r=x(r),i.push("/FlateDecode");break;default:throw'The filter: "'+e[n]+'" is not implemented'}return{data:r,reverseChain:i.reverse().join(" ")}},(A=pt.API).loadFile=function(t,e,n){var r;e=e||!0,n=n||function(){};try{r=function(t,e,n){var r=new XMLHttpRequest,i=[],o=0,a=function(t){var e=t.length,n=String.fromCharCode;for(o=0;o<e;o+=1)i.push(n(255&t.charCodeAt(o)));return i.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){return a(this.responseText)}),r.send(null),200===r.status)return e?a(r.responseText):void 0;console.warn('Unable to load file "'+t+'"')}(t,e)}catch(t){r=void 0}return r},A.loadImageFile=A.loadFile,S=pt.API,_="undefined"!=typeof window&&window||void 0!==r&&r,N=function(t){var e=i(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"},k=function(t,e){var n=document.createElement(t);if(e.className&&(n.className=e.className),e.innerHTML){n.innerHTML=e.innerHTML;for(var r=n.getElementsByTagName("script"),i=r.length;0<i--;null)r[i].parentNode.removeChild(r[i])}for(var o in e.style)n.style[o]=e.style[o];return n},(((L=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)}).prototype=Object.create(Promise.prototype)).constructor=L).convert=function(t,e){return t.__proto__=e||L.prototype,t},L.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:{}}},L.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch(N(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.set({src:k("div",{innerHTML:t})});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.")}})},L.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.")}},L.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:"white"},e=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft},!0)),r}(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=k("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=k("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(k("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"})},L.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(function(){var t=Object.assign({},this.opt.html2canvas);if(delete t.onrendered,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,t)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},L.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(function(){var t=this.opt.jsPDF,e=Object.assign({async:!0,allowTaint:!0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete e.onrendered,t.context2d.autoPaging=!0,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,e.windowHeight=e.windowHeight||0,e.windowHeight=0==e.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):e.windowHeight,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,e)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},L.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})},L.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},L.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},L.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(t,e)})},L.prototype.outputImg=function(t,e){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.'}})},L.prototype.isHtml2CanvasLoaded=function(){var t=void 0!==_.html2canvas;return t||console.error("html2canvas not loaded."),t},L.prototype.save=function(t){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},L.prototype.doCallback=function(t){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},L.prototype.set=function(t){if("object"!==N(t))return this;var e=Object.keys(t||{}).map(function(e){if(e in L.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)})},L.prototype.get=function(t,e){return this.then(function(){var n=t in L.template.prop?this.prop[t]:this.opt[t];return e?e(n):n})},L.prototype.setMargin=function(t){return this.then(function(){switch(N(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)},L.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then(function(){(t=t||pt.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})},L.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},L.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)},L.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})})},L.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then;var r=this;t&&(t=t.bind(r)),e&&(e=e.bind(r));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:L.convert(Object.assign({},r),Promise.prototype),o=n.call(i,t,e);return L.convert(o,r.__proto__)},L.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},L.prototype.thenList=function(t){var e=this;return t.forEach(function(t){e=e.thenCore(t)}),e},L.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return L.convert(e,this)},L.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},L.prototype.error=function(t){return this.then(function(){throw new Error(t)})},L.prototype.using=L.prototype.set,L.prototype.saveAs=L.prototype.save,L.prototype.export=L.prototype.output,L.prototype.run=L.prototype.then,pt.getPageSize=function(t,e,n){if("object"===i(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 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":var s=1;break;case"mm":s=72/25.4;break;case"cm":s=72/2.54;break;case"in":s=72;break;case"px":s=.75;break;case"pc":case"em":s=12;break;case"ex":s=6;break;default:throw"Invalid unit: "+e}if(a.hasOwnProperty(o))var c=a[o][1]/s,u=a[o][0]/s;else try{c=n[1],u=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t){if(t="p",c<u){var l=u;u=c,c=l}}else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",u<c&&(l=u,u=c,c=l)}return{width:u,height:c,unit:e,k:s}},S.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,e.jsPDF;var n=new L(e);return e.worker?n:n.from(t).doCallback()},pt.API.addJS=function(t){return E=t,this.internal.events.subscribe("postPutResources",function(t){C=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(C+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),P=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+E+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==C&&void 0!==P&&this.internal.out("/Names <</JavaScript "+C+" 0 R>>")}),this},(T=pt.API).events.push(["postPutResources",function(){var t=this,e=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var n=t.outline.render().split(/\r\n/),r=0;r<n.length;r++){var i=n[r],o=e.exec(i);if(null!=o){var a=o[1];t.internal.newObjectDeferredBegin(a,!1)}t.internal.write(i)}if(this.outline.createNamedDestinations){var s=this.internal.pages.length,c=[];for(r=0;r<s;r++){var u=t.internal.newObject();c.push(u);var l=t.internal.getPageInfo(r+1);t.internal.write("<< /D["+l.objId+" 0 R /XYZ null null null]>> endobj")}var h=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r<c.length;r++)t.internal.write("(page_"+(r+1)+")"+c[r]+" 0 R");t.internal.write(" ] >>","endobj"),t.internal.newObject(),t.internal.write("<< /Dests "+h+" 0 R"),t.internal.write(">>","endobj")}}]),T.events.push(["putCatalog",function(){0<this.outline.root.children.length&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+namesOid+" 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"),0<t.children.length&&(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){this.ctx.pdf.internal.getCoordinateString;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)),0<r&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),0<i.children.length&&(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(0<o&&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(r=0;r<e.children.length;r++)i=e.children[r],this.renderItems(i)},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(t){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}}]),I=pt.API,M=function(){var t="function"==typeof Deflater;if(!t)throw new Error("requires deflate.js for compression");return t},B=function(t,e,n,r){var i=5,o=q;switch(r){case I.image_compression.FAST:i=3,o=j;break;case I.image_compression.MEDIUM:i=6,o=z;break;case I.image_compression.SLOW:i=9,o=V}t=F(t,e,n,o);var a=new Uint8Array(R(i)),s=O(t),c=new Deflater(i),u=c.append(t),l=c.flush(),h=a.length+u.length+l.length,f=new Uint8Array(h+4);return f.set(a),f.set(u,a.length),f.set(l,a.length+u.length),f[h++]=s>>>24&255,f[h++]=s>>>16&255,f[h++]=s>>>8&255,f[h++]=255&s,I.arrayBufferToBinaryString(f)},R=function(t,e){var n=Math.LOG2E*Math.log(32768)-8<<4|8,r=n<<8;return r|=Math.min(3,(e-1&255)>>1)<<6,r|=0,[n,255&(r+=31-r%31)]},O=function(t,e){for(var n,r=1,i=0,o=t.length,a=0;0<o;){for(o-=n=e<o?e:o;i+=r+=t[a++],--n;);r%=65521,i%=65521}return(i<<16|r)>>>0},F=function(t,e,n,r){for(var i,o,a,s=t.length/e,c=new Uint8Array(t.length+s),u=H(),l=0;l<s;l++){if(a=l*e,i=t.subarray(a,a+e),r)c.set(r(i,n,o),a+l);else{for(var h=0,f=u.length,d=[];h<f;h++)d[h]=u[h](i,n,o);var p=G(d.concat());c.set(d[p],a+l)}o=i}return c},D=function(t,e,n){var r=Array.apply([],t);return r.unshift(0),r},j=function(t,e,n){var r,i=[],o=0,a=t.length;for(i[0]=1;o<a;o++)r=t[o-e]||0,i[o+1]=t[o]-r+256&255;return i},q=function(t,e,n){var r,i=[],o=0,a=t.length;for(i[0]=2;o<a;o++)r=n&&n[o]||0,i[o+1]=t[o]-r+256&255;return i},z=function(t,e,n){var r,i,o=[],a=0,s=t.length;for(o[0]=3;a<s;a++)r=t[a-e]||0,i=n&&n[a]||0,o[a+1]=t[a]+256-(r+i>>>1)&255;return o},V=function(t,e,n){var r,i,o,a,s=[],c=0,u=t.length;for(s[0]=4;c<u;c++)r=t[c-e]||0,i=n&&n[c]||0,o=n&&n[c-e]||0,a=U(r,i,o),s[c+1]=t[c]-a+256&255;return s},U=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),o=Math.abs(r-e),a=Math.abs(r-n);return i<=o&&i<=a?t:o<=a?e:n},H=function(){return[D,j,q,z,V]},G=function(t){for(var e,n,r,i=0,o=t.length;i<o;)((e=W(t[i].slice(1)))<n||!n)&&(n=e,r=i),i++;return r},W=function(t){for(var e=0,n=t.length,r=0;e<n;)r+=Math.abs(t[e++]);return r},I.processPNG=function(t,e,n,r,i){var o,a,s,c,u,l,h=this.color_spaces.DEVICE_RGB,f=this.decode.FLATE_DECODE,d=8;if(this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)){if("function"!=typeof PNG||"function"!=typeof Ot)throw new Error("PNG support requires png.js and zlib.js");if(t=(o=new PNG(t)).imgData,d=o.bits,h=o.colorSpace,c=o.colors,-1!==[4,6].indexOf(o.colorType)){if(8===o.bits)for(var p,g=(k=32==o.pixelBitlength?new Uint32Array(o.decodePixels().buffer):16==o.pixelBitlength?new Uint16Array(o.decodePixels().buffer):new Uint8Array(o.decodePixels().buffer)).length,m=new Uint8Array(g*o.colors),v=new Uint8Array(g),b=o.pixelBitlength-o.bits,y=0,w=0;y<g;y++){for(x=k[y],p=0;p<b;)m[w++]=x>>>p&255,p+=o.bits;v[y]=x>>>p&255}if(16===o.bits){g=(k=new Uint32Array(o.decodePixels().buffer)).length,m=new Uint8Array(g*(32/o.pixelBitlength)*o.colors),v=new Uint8Array(g*(32/o.pixelBitlength));for(var x,A=1<o.colors,S=w=y=0;y<g;)x=k[y++],m[w++]=x>>>0&255,A&&(m[w++]=x>>>16&255,x=k[y++],m[w++]=x>>>0&255),v[S++]=x>>>16&255;d=8}r!==I.image_compression.NONE&&M()?(t=B(m,o.width*o.colors,o.colors,r),l=B(v,o.width,1,r)):(t=m,l=v,f=null)}if(3===o.colorType&&(h=this.color_spaces.INDEXED,u=o.palette,o.transparency.indexed)){var _=o.transparency.indexed,N=0;for(y=0,g=_.length;y<g;++y)N+=_[y];if((N/=255)==g-1&&-1!==_.indexOf(0))s=[_.indexOf(0)];else if(N!==g){var k=o.decodePixels();for(v=new Uint8Array(k.length),y=0,g=k.length;y<g;y++)v[y]=_[k[y]];l=B(v,o.width,1)}}var L=function(t){var e;switch(r){case I.image_compression.FAST:e=11;break;case I.image_compression.MEDIUM:e=13;break;case I.image_compression.SLOW:e=14;break;default:e=12}return e}();return a=f===this.decode.FLATE_DECODE?"/Predictor "+L+" /Colors "+c+" /BitsPerComponent "+d+" /Columns "+o.width:"/Colors "+c+" /BitsPerComponent "+d+" /Columns "+o.width,(this.isArrayBuffer(t)||this.isArrayBufferView(t))&&(t=this.arrayBufferToBinaryString(t)),(l&&this.isArrayBuffer(l)||this.isArrayBufferView(l))&&(l=this.arrayBufferToBinaryString(l)),this.createImageInfo(t,o.width,o.height,h,d,f,e,n,a,s,u,l,L)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},(Y=pt.API).processGIF89A=function(t,e,n,r,i){var o=new Tt(t),a=o.width,s=o.height,c=[];o.decodeAndBlitFrameRGBA(0,c);var u={data:c,width:a,height:s},l=new Mt(100).encode(u,100);return Y.processJPEG.call(this,l,e,n,r)},Y.processGIF87A=Y.processGIF89A,(X=pt.API).processBMP=function(t,e,n,r,i){var o=new Bt(t,!1),a=o.width,s=o.height,c={data:o.getData(),width:a,height:s},u=new Mt(100).encode(c,100);return X.processJPEG.call(this,u,e,n,r)},pt.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},J=pt.API,Z=J.getCharWidthsArray=function(t,e){var n,r,i,o=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),c=e.widths?e.widths:o.metadata.Unicode.widths,u=c.fof?c.fof:1,l=e.kerning?e.kerning:o.metadata.Unicode.kerning,h=l.fof?l.fof:1,f=0,d=c[0]||u,p=[];for(n=0,r=t.length;n<r;n++)i=t.charCodeAt(n),"function"==typeof o.metadata.widthOfString?p.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+s*(1e3/a)||0)/1e3):p.push((c[i]||d)/u+(l[i]&&l[i][f]||0)/h),f=i;return p},K=J.getArraySum=function(t){for(var e=t.length,n=0;e;)n+=t[--e];return n},Q=J.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"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:K(Z.apply(this,arguments))},$=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},tt=function(t,e,n){n||(n={});var r,i,o,a,s,c,u=[],l=[u],h=n.textIndent||0,f=0,d=0,p=t.split(" "),g=Z.apply(this,[" ",n])[0];if(c=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var m=Array(c).join(" "),v=[];p.map(function(t){1<(t=t.split(/\s*\n/)).length?v=v.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):v.push(t[0])}),p=v,c=Q.apply(this,[m,n])}for(o=0,a=p.length;o<a;o++){var b=0;if(r=p[o],c&&"\n"==r[0]&&(r=r.substr(1),b=1),i=Z.apply(this,[r,n]),e<h+f+(d=K(i))||b){if(e<d){for(s=$.apply(this,[r,i,e-(h+f),e]),u.push(s.shift()),u=[s.pop()];s.length;)l.push([s.shift()]);d=K(i.slice(r.length-(u[0]?u[0].length:0)))}else u=[r];l.push(u),h=d+c,f=g}else u.push(r),h+=f+d,f=g}if(c)var y=function(t,e){return(e?m:"")+t.join(" ")};else y=function(t){return t.join(" ")};return l.map(y)},J.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),n="Unicode";return e.metadata[n]?{widths:e.metadata[n].widths||{0:1},kerning:e.metadata[n].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t: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(tt.apply(this,[r[s],a,o]));return u},et=pt.API,rt={codePages:["WinAnsiEncoding"],WinAnsiEncoding:(nt=function(t){for(var e="klmnopqrstuvwxyz",n={},r=0;r<e.length;r++)n[e[r]]="0123456789abcdef"[r];var i,o,a,s,c,u={},l=1,h=u,f=[],d="",p="",g=t.length-1;for(r=1;r!=g;)c=t[r],r+=1,"'"==c?o=o?(s=o.join(""),i):[]:o?o.push(c):"{"==c?(f.push([h,s]),h={},s=i):"}"==c?((a=f.pop())[0][a[1]]=h,s=i,h=a[0]):"-"==c?l=-1:s===i?n.hasOwnProperty(c)?(d+=n[c],s=parseInt(d,16)*l,l=1,d=""):d+=c:n.hasOwnProperty(c)?(p+=n[c],h[s]=parseInt(p,16)*l,l=1,s=i,p=""):p+=c;return u})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},it={Unicode:{Courier:rt,"Courier-Bold":rt,"Courier-BoldOblique":rt,"Courier-Oblique":rt,Helvetica:rt,"Helvetica-Bold":rt,"Helvetica-BoldOblique":rt,"Helvetica-Oblique":rt,"Times-Roman":rt,"Times-Bold":rt,"Times-BoldItalic":rt,"Times-Italic":rt}},ot={Unicode:{"Courier-Oblique":nt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":nt("{'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":nt("{'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:nt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":nt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":nt("{'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:nt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:nt("{'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":nt("{'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:nt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":nt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":nt("{'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":nt("{'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":nt("{'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}}}")}},et.events.push(["addFont",function(t){var e,n,r,i=t.font,o="Unicode";(e=ot[o][i.postScriptName])&&((n=i.metadata[o]?i.metadata[o]:i.metadata[o]={}).widths=e.widths,n.kerning=e.kerning),(r=it[o][i.postScriptName])&&((n=i.metadata[o]?i.metadata[o]:i.metadata[o]={}).encoding=r).codePages&&r.codePages.length&&(i.encoding=r.codePages[0])}]),at=pt,"undefined"!=typeof self&&self||void 0!==r&&r||"undefined"!=typeof window&&window||Function("return this")(),at.API.events.push(["addFont",function(t){var e=t.font,n=t.instance;if(void 0!==n&&n.existsFileInVFS(e.postScriptName)){var r=n.getFileFromVFS(e.postScriptName);if("string"!=typeof r)throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+e.postScriptName+"').");e.metadata=at.API.TTFFont.open(e.postScriptName,e.fontName,r,e.encoding),e.metadata.Unicode=e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},e.metadata.glyIdsUsed=[0]}else if(!1===e.isStandardFont)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+e.postScriptName+"').")}]),(st=pt.API).addSvg=function(t,e,n,r,i){if(void 0===e||void 0===n)throw new Error("addSVG needs values for 'x' and 'y'");function o(t){for(var e=parseFloat(t[1]),n=parseFloat(t[2]),r=[],i=3,o=t.length;i<o;)"c"===t[i]?(r.push([parseFloat(t[i+1]),parseFloat(t[i+2]),parseFloat(t[i+3]),parseFloat(t[i+4]),parseFloat(t[i+5]),parseFloat(t[i+6])]),i+=7):"l"===t[i]?(r.push([parseFloat(t[i+1]),parseFloat(t[i+2])]),i+=3):i+=1;return[e,n,r]}var a,s,c,u,l,h,f,d,p=(a=t,(c=((s=(d=(u=document).createElement("iframe"),l=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(f=(h=u).createElement("style")).type="text/css",f.styleSheet?f.styleSheet.cssText=l:f.appendChild(h.createTextNode(l)),h.getElementsByTagName("head")[0].appendChild(f),d.name="childframe",d.setAttribute("width",0),d.setAttribute("height",0),d.setAttribute("frameborder","0"),d.setAttribute("scrolling","no"),d.setAttribute("seamless","seamless"),d.setAttribute("class","jsPDF_sillysvg_iframe"),u.body.appendChild(d),d)).contentWindow||s.contentDocument).document).write(a),c.close(),c.getElementsByTagName("svg")[0]),g=[1,1],m=parseFloat(p.getAttribute("width")),v=parseFloat(p.getAttribute("height"));m&&v&&(r&&i?g=[r/m,i/v]:r?g=[r/m,r/m]:i&&(g=[i/v,i/v]));var b,y,w,x,A=p.childNodes;for(b=0,y=A.length;b<y;b++)(w=A[b]).tagName&&"PATH"===w.tagName.toUpperCase()&&((x=o(w.getAttribute("d").split(" ")))[0]=x[0]*g[0]+e,x[1]=x[1]*g[1]+n,this.lines.call(this,x[2],x[0],x[1],g));return this},st.addSVG=st.addSvg,st.addSvgAsImage=function(t,e,n,r,i,o,a,s){if(isNaN(e)||isNaN(n))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=i;var u=c.getContext("2d");return u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height),canvg(c,t,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(c.toDataURL("image/jpeg",1),e,n,r,i,a,s),this},pt.API.putTotalPages=function(t){var e,n;n=parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),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},pt.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,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,f=!0;function d(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 p=s.length;for(h=0;h<p;h+=1)n[s[h]].value=n[s[h]].defaultValue,n[s[h]].explicitSet=!1}if("object"===i(t))for(r in t)if(o=t[r],d(s,r)&&void 0!==o){if("boolean"===n[r].type&&"boolean"==typeof o)n[r].value=o;else if("name"===n[r].type&&d(n[r].valueSet,o))n[r].value=o;else if("integer"===n[r].type&&Number.isInteger(o))n[r].value=o;else if("array"===n[r].type){for(u=0;u<o.length;u+=1)if(f=!0,1===o[u].length&&"number"==typeof o[u][0])c.push(String(o[u]-1));else if(1<o[u].length){for(l=0;l<o[u].length;l+=1)"number"!=typeof o[u][l]&&(f=!1);!0===f&&c.push([o[u][0]-1,o[u][1]-1].join(" "))}n[r].value="["+c.join(" ")+"]"}else n[r].value=n[r].defaultValue;n[r].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},ct=pt.API,ht=lt=ut="",ct.addMetadata=function(t,e){return lt=e||"http://jspdf.default.namespaceuri/",ut=t,this.internal.events.subscribe("postPutResources",function(){if(ut){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+lt+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(ut)),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;ht=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")}else ht=""}),this.internal.events.subscribe("putCatalog",function(){ht&&this.internal.write("/Metadata "+ht+" 0 R")}),this},function(t,e){var n=t.API,r=n.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("")},i=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],100<=r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),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"};n.events.push(["putFont",function(e){!function(e,n,r,o){if(e.metadata instanceof t.API.TTFFont&&"Identity-H"===e.encoding){for(var a=e.metadata.Unicode.widths,s=e.metadata.subset.encode(e.metadata.glyIdsUsed,1),c="",u=0;u<s.length;u++)c+=String.fromCharCode(s[u]);var l=r();o({data:c,addLength1:!0}),n("endobj");var h=r();o({data:i(e.metadata.toUnicode),addLength1:!0}),n("endobj");var f=r();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+e.fontName),n("/FontFile2 "+l+" 0 R"),n("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),n("/Flags "+e.metadata.flags),n("/StemV "+e.metadata.stemV),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n(">>"),n("endobj");var d=r();n("<<"),n("/Type /Font"),n("/BaseFont /"+e.fontName),n("/FontDescriptor "+f+" 0 R"),n("/W "+t.API.PDFObject.convert(a)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+e.encoding+")"),n(">>"),n(">>"),n("endobj"),e.objectNumber=r(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+h+" 0 R"),n("/BaseFont /"+e.fontName),n("/Encoding /"+e.encoding),n("/DescendantFonts ["+d+" 0 R]"),n(">>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]),n.events.push(["putFont",function(e){!function(e,n,r,o){if(e.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===e.encoding){e.metadata.Unicode.widths;for(var a=e.metadata.rawData,s="",c=0;c<a.length;c++)s+=String.fromCharCode(a[c]);var u=r();o({data:s,addLength1:!0}),n("endobj");var l=r();o({data:i(e.metadata.toUnicode),addLength1:!0}),n("endobj");var h=r();for(n("<<"),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n("/StemV "+e.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+u+" 0 R"),n("/Flags 96"),n("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),n("/FontName /"+e.fontName),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n(">>"),n("endobj"),e.objectNumber=r(),c=0;c<e.metadata.hmtx.widths.length;c++)e.metadata.hmtx.widths[c]=parseInt(e.metadata.hmtx.widths[c]*(1e3/e.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+l+" 0 R/BaseFont/"+e.fontName+"/FontDescriptor "+h+" 0 R/Encoding/"+e.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(e.metadata.hmtx.widths)+">>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]);var o=function(t){var e,n,i=t.text||"",o=t.x,a=t.y,s=t.options||{},c=t.mutex||{},u=c.pdfEscape,l=c.activeFontKey,h=c.fonts,f=(c.activeFontSize,""),d=0,p="",g=h[n=l].encoding;if("Identity-H"!==h[n].encoding)return{text:i,x:o,y:a,options:s,mutex:c};for(p=i,n=l,"[object Array]"===Object.prototype.toString.call(i)&&(p=i[0]),d=0;d<p.length;d+=1)h[n].metadata.hasOwnProperty("cmap")&&(e=h[n].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),e?f+=p[d]:p[d].charCodeAt(0)<256&&h[n].metadata.hasOwnProperty("Unicode")?f+=p[d]:f+="";var m="";return parseInt(n.slice(1))<14||"WinAnsiEncoding"===g?m=function(t){for(var e="",n=0;n<t.length;n++)e+=""+t.charCodeAt(n).toString(16);return e}(u(f,n)):"Identity-H"===g&&(m=r(f,h[n])),c.isHex=!0,{text:m,x:o,y:a,options:s,mutex:c}};n.events.push(["postProcessText",function(t){var e=t.text||"",n=t.x,r=t.y,i=t.options,a=t.mutex,s=(i.lang,[]),c={text:e,x:n,y:r,options:i,mutex:a};if("[object Array]"===Object.prototype.toString.call(e)){var u=0;for(u=0;u<e.length;u+=1)"[object Array]"===Object.prototype.toString.call(e[u])&&3===e[u].length?s.push([o(Object.assign({},c,{text:e[u][0]})).text,e[u][1],e[u][2]]):s.push(o(Object.assign({},c,{text:e[u]})).text);t.text=s}else t.text=o(Object.assign({},c,{text:e})).text}])}(pt,"undefined"!=typeof self&&self||void 0!==r&&r||"undefined"!=typeof window&&window||Function("return this")()),ft=pt.API,dt=function(t){return void 0!==t&&(void 0===t.vFS&&(t.vFS={}),!0)},ft.existsFileInVFS=function(t){return!!dt(this.internal)&&void 0!==this.internal.vFS[t]},ft.addFileToVFS=function(t,e){return dt(this.internal),this.internal.vFS[t]=e,this},ft.getFileFromVFS=function(t){return dt(this.internal),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null},pt.API.addHTML=function(t,e,n,r,i){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof e&&(r=e,i=n),"function"==typeof r&&(i=r,r=null),"function"!=typeof i&&(i=function(){});var o=this.internal,a=o.scaleFactor,s=o.pageSize.getWidth(),c=o.pageSize.getHeight();if((r=r||{}).onrendered=function(t){e=parseInt(e)||0,n=parseInt(n)||0;var o=r.dim||{},u=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},r.margin),l=o.h||Math.min(c,t.height/a),h=o.w||Math.min(s,t.width/a)-e,f=r.format||"JPEG",d=r.imageCompression||"SLOW";if(t.height>c-u.top-u.bottom&&r.pagesplit){var p=function(t,e,n,i,o){var a=document.createElement("canvas");a.height=o,a.width=i;var s=a.getContext("2d");return s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.fillStyle=r.backgroundColor||"#ffffff",s.fillRect(0,0,i,o),s.drawImage(t,e,n,i,o,0,0,i,o),a},g=function(){for(var r,o,l=0,g=0,m={},v=!1;;){var b;if(g=0,m.top=0!==l?u.top:n,m.left=0!==l?u.left:e,v=(s-u.left-u.right)*a<t.width,"content"===u.useFor?0===l?(r=Math.min((s-u.left)*a,t.width),o=Math.min((c-u.top)*a,t.height-l)):(r=Math.min(s*a,t.width),o=Math.min(c*a,t.height-l),m.top=0):(r=Math.min((s-u.left-u.right)*a,t.width),o=Math.min((c-u.bottom-u.top)*a,t.height-l)),v)for(;;){"content"===u.useFor&&(0===g?r=Math.min((s-u.left)*a,t.width):(r=Math.min(s*a,t.width-g),m.left=0));var y=[b=p(t,g,l,r,o),m.left,m.top,b.width/a,b.height/a,f,null,d];if(this.addImage.apply(this,y),(g+=r)>=t.width)break;this.addPage()}else y=[b=p(t,0,l,r,o),m.left,m.top,b.width/a,b.height/a,f,null,d],this.addImage.apply(this,y);if((l+=o)>=t.height)break;this.addPage()}i(h,l,null,y)}.bind(this);if("CANVAS"===t.nodeName){var m=new Image;m.onload=g,m.src=t.toDataURL("image/png"),t=m}else g()}else{var v=Math.random().toString(35),b=[t,e,n,h,l,f,v,d];this.addImage.apply(this,b),i(h,l,v,b)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(t,r);if("undefined"==typeof rasterizeHTML)return null;var u="drawDocument";return"string"==typeof t&&(u=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||s*a,rasterizeHTML[u](t,void 0,r).then(function(t){r.onrendered(t.image)},function(t){i(null,t)})},function(t){var e,n,r,o,a,s,c,u,l,h,f,d,p,g,m,v,b,y,w,x;e=function(){return function(e){return t.prototype=e,new t};function t(){}}(),h=function(t){var e,n,r,i,o,a,s;for(n=0,r=t.length,e=void 0,a=i=!1;!i&&n!==r;)(e=t[n]=t[n].trimLeft())&&(i=!0),n++;for(n=r-1;r&&!a&&-1!==n;)(e=t[n]=t[n].trimRight())&&(a=!0),n--;for(o=/\s+$/g,s=!0,n=0;n!==r;)"\u2028"!=t[n]&&(e=t[n].replace(/\s+/g," "),s&&(e=e.trimLeft()),e&&(s=o.test(e)),t[n]=e),n++;return t},d=function(t){var e,n,i;for(e=void 0,n=(i=t.split(",")).shift();!e&&n;)e=r[n.trim().toLowerCase()],n=i.shift();return e},p=function(t){var e;return-1<(t="auto"===t?"0px":t).indexOf("em")&&!isNaN(Number(t.replace("em","")))&&(t=18.719*Number(t.replace("em",""))+"px"),-1<t.indexOf("pt")&&!isNaN(Number(t.replace("pt","")))&&(t=1.333*Number(t.replace("pt",""))+"px"),(e=g[t])?e:void 0!==(e={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[t])?g[t]=e/16:(e=parseFloat(t))?g[t]=e/16:(e=t.match(/([\d\.]+)(px)/),Array.isArray(e)&&3===e.length?g[t]=parseFloat(e[1])/16:g[t]=1)},l=function(t){var e,n,r,i,l;return l=t,i=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(l,null):l.currentStyle?l.currentStyle:l.style,n=void 0,(e={})["font-family"]=d((r=function(t){return t=t.replace(/-\D/g,function(t){return t.charAt(1).toUpperCase()}),i[t]})("font-family"))||"times",e["font-style"]=o[r("font-style")]||"normal",e["text-align"]=a[r("text-align")]||"left","bold"===(n=s[r("font-weight")]||"normal")&&("normal"===e["font-style"]?e["font-style"]=n:e["font-style"]=n+e["font-style"]),e["font-size"]=p(r("font-size"))||1,e["line-height"]=p(r("line-height"))||1,e.display="inline"===r("display")?"inline":"block",n="block"===e.display,e["margin-top"]=n&&p(r("margin-top"))||0,e["margin-bottom"]=n&&p(r("margin-bottom"))||0,e["padding-top"]=n&&p(r("padding-top"))||0,e["padding-bottom"]=n&&p(r("padding-bottom"))||0,e["margin-left"]=n&&p(r("margin-left"))||0,e["margin-right"]=n&&p(r("margin-right"))||0,e["padding-left"]=n&&p(r("padding-left"))||0,e["padding-right"]=n&&p(r("padding-right"))||0,e["page-break-before"]=r("page-break-before")||"auto",e.float=c[r("cssFloat")]||"none",e.clear=u[r("clear")]||"none",e.color=r("color"),e},m=function(t,e,n){var r,i,o,a,s;if(o=!1,a=i=void 0,r=n["#"+t.id])if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;if(r=n[t.nodeName],!o&&r)if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;for(s="string"==typeof t.className?t.className.split(" "):[],i=0;i<s.length;i++)if(r=n["."+s[i]],!o&&r)if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;return o},x=function(t,e){var n,r,i,o,a,s,c,u,l;for(n=[],r=[],i=0,l=t.rows[0].cells.length,c=t.clientWidth;i<l;)u=t.rows[0].cells[i],r[i]={name:u.textContent.toLowerCase().replace(/\s+/g,""),prompt:u.textContent.replace(/\r?\n/g,""),width:u.clientWidth/c*e.pdf.internal.pageSize.getWidth()},i++;for(i=1;i<t.rows.length;){for(s=t.rows[i],a={},o=0;o<s.cells.length;)a[r[o].name]=s.cells[o].textContent.replace(/\r?\n/g,""),o++;n.push(a),i++}return{rows:n,headers:r}};var A={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},S=1;n=function(t,r,o){var a,s,c,u,h,f,d,p;for(s=t.childNodes,a=void 0,(h="block"===(c=l(t)).display)&&(r.setBlockBoundary(),r.setBlockStyle(c)),u=0,f=s.length;u<f;){if("object"===i(a=s[u])){if(r.executeWatchFunctions(a),1===a.nodeType&&"HEADER"===a.nodeName){var g=a,b=r.pdf.margins_doc.top;r.pdf.internal.events.subscribe("addPage",function(t){r.y=b,n(g,r,o),r.pdf.margins_doc.top=r.y+10,r.y+=10},!1)}if(8===a.nodeType&&"#comment"===a.nodeName)~a.textContent.indexOf("ADD_PAGE")&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top);else if(1!==a.nodeType||A[a.nodeName])if(3===a.nodeType){var y=a.nodeValue;if(a.nodeValue&&"LI"===a.parentNode.nodeName)if("OL"===a.parentNode.parentNode.nodeName)y=S+++". "+y;else{var w=c["font-size"],_=(3-.75*w)*r.pdf.internal.scaleFactor,N=.75*w*r.pdf.internal.scaleFactor,k=1.74*w/r.pdf.internal.scaleFactor;p=function(t,e){this.pdf.circle(t+_,e+N,k,"FD")}}16&a.ownerDocument.body.compareDocumentPosition(a)&&r.addText(y,c)}else"string"==typeof a&&r.addText(a,c);else{var L;if("IMG"===a.nodeName){var C=a.getAttribute("src");L=v[r.pdf.sHashCode(C)||C]}if(L){r.pdf.internal.pageSize.getHeight()-r.pdf.margins_doc.bottom<r.y+a.height&&r.y>r.pdf.margins_doc.top&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top,r.executeWatchFunctions(a));var P=l(a),E=r.x,T=12/r.pdf.internal.scaleFactor,I=(P["margin-left"]+P["padding-left"])*T,M=(P["margin-right"]+P["padding-right"])*T,B=(P["margin-top"]+P["padding-top"])*T,R=(P["margin-bottom"]+P["padding-bottom"])*T;void 0!==P.float&&"right"===P.float?E+=r.settings.width-a.width-M:E+=I,r.pdf.addImage(L,E,r.y+B,a.width,a.height),L=void 0,"right"===P.float||"left"===P.float?(r.watchFunctions.push(function(t,e,n,i){return r.y>=e?(r.x+=t,r.settings.width+=n,!0):!!(i&&1===i.nodeType&&!A[i.nodeName]&&r.x+i.width>r.pdf.margins_doc.left+r.pdf.margins_doc.width)&&(r.x+=t,r.y=e,r.settings.width+=n,!0)}.bind(this,"left"===P.float?-a.width-I-M:0,r.y+a.height+B+R,a.width)),r.watchFunctions.push(function(t,e,n){return!(r.y<t&&e===r.pdf.internal.getNumberOfPages())||1===n.nodeType&&"both"===l(n).clear&&(r.y=t,!0)}.bind(this,r.y+a.height,r.pdf.internal.getNumberOfPages())),r.settings.width-=a.width+I+M,"left"===P.float&&(r.x+=a.width+I+M)):r.y+=a.height+B+R}else if("TABLE"===a.nodeName)d=x(a,r),r.y+=10,r.pdf.table(r.x,r.y,d.rows,d.headers,{autoSize:!1,printHeaders:o.printHeaders,margins:r.pdf.margins_doc,css:l(a)}),r.y=r.pdf.lastCellPos.y+r.pdf.lastCellPos.h+20;else if("OL"===a.nodeName||"UL"===a.nodeName)S=1,m(a,r,o)||n(a,r,o),r.y+=10;else if("LI"===a.nodeName){var O=r.x;r.x+=20/r.pdf.internal.scaleFactor,r.y+=3,m(a,r,o)||n(a,r,o),r.x=O}else"BR"===a.nodeName?(r.y+=c["font-size"]*r.pdf.internal.scaleFactor,r.addText("\u2028",e(c))):m(a,r,o)||n(a,r,o)}}u++}if(o.outY=r.y,h)return r.setBlockBoundary(p)},v={},b=function(t,e,n,r){var i,o=t.getElementsByTagName("img"),a=o.length,s=0;function c(){e.pdf.internal.events.publish("imagesLoaded"),r(i)}function u(t,n,r){if(t){var o=new Image;i=++s,o.crossOrigin="",o.onerror=o.onload=function(){if(o.complete&&(0===o.src.indexOf("data:image/")&&(o.width=n||o.width||0,o.height=r||o.height||0),o.width+o.height)){var i=e.pdf.sHashCode(t)||t;v[i]=v[i]||o}--s||c()},o.src=t}}for(;a--;)u(o[a].getAttribute("src"),o[a].width,o[a].height);return s||c()},y=function(t,e,r){var i=t.getElementsByTagName("footer");if(0<i.length){i=i[0];var o=e.pdf.internal.write,a=e.y;e.pdf.internal.write=function(){},n(i,e,r);var s=Math.ceil(e.y-a)+5;e.y=a,e.pdf.internal.write=o,e.pdf.margins_doc.bottom+=s;for(var c=function(t){var o=void 0!==t?t.pageNumber:1,a=e.y;e.y=e.pdf.internal.pageSize.getHeight()-e.pdf.margins_doc.bottom,e.pdf.margins_doc.bottom-=s;for(var c=i.getElementsByTagName("span"),u=0;u<c.length;++u)-1<(" "+c[u].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(c[u].innerHTML=o),-1<(" "+c[u].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(c[u].innerHTML="###jsPDFVarTotalPages###");n(i,e,r),e.pdf.margins_doc.bottom+=s,e.y=a},u=i.getElementsByTagName("span"),l=0;l<u.length;++l)-1<(" "+u[l].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&e.pdf.internal.events.subscribe("htmlRenderingFinished",e.pdf.putTotalPages.bind(e.pdf,"###jsPDFVarTotalPages###"),!0);e.pdf.internal.events.subscribe("addPage",c,!1),c(),A.FOOTER=1}},w=function(t,e,r,i,o,a){if(!e)return!1;var s,c,u,l;"string"==typeof e||e.parentNode||(e=""+e.innerHTML),"string"==typeof e&&(s=e.replace(/<\/?script[^>]*?>/gi,""),l="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(u=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",u.innerHTML='<iframe style="height:1px;width:1px" name="'+l+'" />',document.body.appendChild(u),(c=window.frames[l]).document.open(),c.document.writeln(s),c.document.close(),e=c.document.body);var h,d=new f(t,r,i,o);return b.call(this,e,d,o.elementHandlers,function(t){y(e,d,o.elementHandlers),n(e,d,o.elementHandlers),d.pdf.internal.events.publish("htmlRenderingFinished"),h=d.dispose(),"function"==typeof a?a(h):t&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")}),h||{x:d.x,y:d.y}},(f=function(t,e,n,r){return this.pdf=t,this.x=e,this.y=n,this.settings=r,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},f.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},f.prototype.executeWatchFunctions=function(t){var e=!1,n=[];if(0<this.watchFunctions.length){for(var r=0;r<this.watchFunctions.length;++r)!0===this.watchFunctions[r](t)?e=!0:n.push(this.watchFunctions[r]);this.watchFunctions=n}return e},f.prototype.splitFragmentsIntoLines=function(t,n){var r,i,o,a,s,c,u,l,h,f,d,p,g,m;for(f=this.pdf.internal.scaleFactor,a={},c=u=l=m=s=o=h=i=void 0,p=[d=[]],r=0,g=this.settings.width;t.length;)if(s=t.shift(),m=n.shift(),s)if((o=a[(i=m["font-family"])+(h=m["font-style"])])||(o=this.pdf.internal.getFont(i,h).metadata.Unicode,a[i+h]=o),l={widths:o.widths,kerning:o.kerning,fontSize:12*m["font-size"],textIndent:r},u=this.pdf.getStringUnitWidth(s,l)*l.fontSize/f,"\u2028"==s)d=[],p.push(d);else if(g<r+u){for(c=this.pdf.splitTextToSize(s,g,l),d.push([c.shift(),m]);c.length;)d=[[c.shift(),m]],p.push(d);r=this.pdf.getStringUnitWidth(d[0][0],l)*l.fontSize/f}else d.push([s,m]),r+=u;if(void 0!==m["text-align"]&&("center"===m["text-align"]||"right"===m["text-align"]||"justify"===m["text-align"]))for(var v=0;v<p.length;++v){var b=this.pdf.getStringUnitWidth(p[v][0][0],l)*l.fontSize/f;0<v&&(p[v][0][1]=e(p[v][0][1]));var y=g-b;if("right"===m["text-align"])p[v][0][1]["margin-left"]=y;else if("center"===m["text-align"])p[v][0][1]["margin-left"]=y/2;else if("justify"===m["text-align"]){var w=p[v][0][0].split(" ").length-1;p[v][0][1]["word-spacing"]=y/w,v===p.length-1&&(p[v][0][1]["word-spacing"]=0)}}return p},f.prototype.RenderTextFragment=function(t,e){var n,r;r=0,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(e.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),r=Math.max(r,e["line-height"],e["font-size"]),this.pdf.internal.write(0,(-12*r).toFixed(2),"Td")),n=this.pdf.internal.getFont(e["font-family"],e["font-style"]);var i=this.getPdfColor(e.color);i!==this.lastTextColor&&(this.pdf.internal.write(i),this.lastTextColor=i),void 0!==e["word-spacing"]&&0<e["word-spacing"]&&this.pdf.internal.write(e["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+n.id,(12*e["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(t)+") Tj"),void 0!==e["word-spacing"]&&this.pdf.internal.write(0,"Tw")},f.prototype.getPdfColor=function(t){var e,n,r,i=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(t);if(null!=i)e=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]);else{if("string"==typeof t&&"#"!=t.charAt(0)){var o=new RGBColor(t);t=o.ok?o.toHex():"#000000"}e=t.substring(1,3),e=parseInt(e,16),n=t.substring(3,5),n=parseInt(n,16),r=t.substring(5,7),r=parseInt(r,16)}if("string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var a=parseInt(e.substr(1),16);e=a>>16&255,n=a>>8&255,r=255&a}var s=this.f3;return 0===e&&0===n&&0===r||void 0===n?s(e/255)+" g":[s(e/255),s(n/255),s(r/255),"rg"].join(" ")},f.prototype.f3=function(t){return t.toFixed(3)},f.prototype.renderParagraph=function(t){var e,n,r,i,o,a,s,c,u,l,f,d,p;if(r=h(this.paragraph.text),d=this.paragraph.style,e=this.paragraph.blockstyle,this.paragraph.priorblockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:e},r.join("").trim()){s=this.splitFragmentsIntoLines(r,d),c=a=void 0,n=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,f=(Math.max((e["margin-top"]||0)-this.priorMarginBottom,0)+(e["padding-top"]||0))*n,l=((e["margin-bottom"]||0)+(e["padding-bottom"]||0))*n,this.priorMarginBottom=e["margin-bottom"]||0,"always"===e["page-break-before"]&&(this.pdf.addPage(),this.y=0,f=((e["margin-top"]||0)+(e["padding-top"]||0))*n),u=this.pdf.internal.write,o=i=void 0,this.y+=f,u("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var g=0;s.length;){for(i=c=0,o=(a=s.shift()).length;i!==o;)a[i][0].trim()&&(c=Math.max(c,a[i][1]["line-height"],a[i][1]["font-size"]),p=7*a[i][1]["font-size"]),i++;var m=0,v=0;for(void 0!==a[0][1]["margin-left"]&&0<a[0][1]["margin-left"]&&(m=(v=this.pdf.internal.getCoordinateString(a[0][1]["margin-left"]))-g,g=v),u(m+Math.max(e["margin-left"]||0,0)*n,(-12*c).toFixed(2),"Td"),i=0,o=a.length;i!==o;)a[i][0]&&this.RenderTextFragment(a[i][0],a[i][1]),i++;if(this.y+=c*n,this.executeWatchFunctions(a[0][1])&&0<s.length){var b=[],y=[];s.forEach(function(t){for(var e=0,n=t.length;e!==n;)t[e][0]&&(b.push(t[e][0]+" "),y.push(t[e][1])),++e}),s=this.splitFragmentsIntoLines(h(b),y),u("ET","Q"),u("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return t&&"function"==typeof t&&t.call(this,this.x-9,this.y-p/2),u("ET","Q"),this.y+=l}},f.prototype.setBlockBoundary=function(t){return this.renderParagraph(t)},f.prototype.setBlockStyle=function(t){return this.paragraph.blockstyle=t},f.prototype.addText=function(t,e){return this.paragraph.text.push(t),this.paragraph.style.push(e)},r={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},s={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},o={normal:"normal",italic:"italic",oblique:"italic"},a={left:"left",right:"right",center:"center",justify:"justify"},c={none:"none",right:"right",left:"left"},u={none:"none",both:"both"},g={normal:1},t.fromHTML=function(t,e,n,r,i,o){return this.margins_doc=o||{top:0,bottom:0},r||(r={}),r.elementHandlers||(r.elementHandlers={}),w(this,t,isNaN(e)?4:e,isNaN(n)?4:n,r,i)}}(pt.API),pt.API,("undefined"!=typeof window&&window||void 0!==r&&r).html2pdf=function(t,e,n){var r=e.canvas;if(r){var i,o;if((r.pdf=e).annotations={_nameMap:[],createAnnotation:function(t,n){var r,i=e.context2d._wrapX(n.left),o=e.context2d._wrapY(n.top),a=(e.context2d._page(n.top),t.indexOf("#"));r=0<=a?{name:t.substring(a+1)}:{url:t},e.link(i,o,n.right-n.left,n.bottom-n.top,r)},setName:function(t,n){var r=e.context2d._wrapX(n.left),i=e.context2d._wrapY(n.top),o=e.context2d._page(n.top);this._nameMap[t]={page:o,x:r,y:i}}},r.annotations=e.annotations,e.context2d._pageBreakAt=function(t){this.pageBreaks.push(t)},e.context2d._gotoPage=function(t){for(;e.internal.getNumberOfPages()<t;)e.addPage();e.setPage(t)},"string"==typeof t){t=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");var a,s,c=document.createElement("iframe");document.body.appendChild(c),null!=(a=c.contentDocument)&&null!=a||(a=c.contentWindow.document),a.open(),a.write(t),a.close(),i=a.body,s=a.body||{},t=a.documentElement||{},o=Math.max(s.scrollHeight,s.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}else s=(i=t).body||{},o=Math.max(s.scrollHeight,s.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);var u={async:!0,allowTaint:!0,backgroundColor:"#ffffff",canvas:r,imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1,windowHeight:o=e.internal.pageSize.getHeight(),scrollY:o};e.context2d.pageWrapYEnabled=!0,e.context2d.pageWrapY=e.internal.pageSize.getHeight(),html2canvas(i,u).then(function(t){n&&(c&&c.parentElement.removeChild(c),n(e))})}else alert("jsPDF canvas plugin not installed")},window.tmp=html2pdf,function(t){var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder;t.URL=t.URL||t.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var n=t.Blob,r=URL.createObjectURL,i=URL.revokeObjectURL,o=t.Symbol&&t.Symbol.toStringTag,a=!1,s=!1,c=!!t.ArrayBuffer,u=e&&e.prototype.append&&e.prototype.getBlob;try{a=2===new Blob(["ä"]).size,s=2===new Blob([new Uint8Array([1,2])]).size}catch(a){}function l(t){return t.map(function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t})}function h(t,n){n=n||{};var r=new e;return l(t).forEach(function(t){r.append(t)}),n.type?r.getBlob(n.type):r.getBlob()}function f(t,e){return new n(l(t),e||{})}if(t.Blob&&(h.prototype=Blob.prototype,f.prototype=Blob.prototype),o)try{File.prototype[o]="File",Blob.prototype[o]="Blob",FileReader.prototype[o]="FileReader"}catch(a){}function d(){var e=!!t.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,n=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;e&&n&&(XMLHttpRequest.prototype.send=function(t){t instanceof Blob&&this.setRequestHeader("Content-Type",t.type),n.call(this,t)});try{new File([],"")}catch(e){try{var r=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();t.File=r}catch(e){r=function(t,e,n){var r=new Blob(t,n),i=n&&void 0!==n.lastModified?new Date(n.lastModified):new Date;return r.name=e,r.lastModifiedDate=i,r.lastModified=+i,r.toString=function(){return"[object File]"},o&&(r[o]="File"),r},t.File=r}}}a?(d(),t.Blob=s?t.Blob:f):u?(d(),t.Blob=h):function(){function e(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e.push(r):r<2048?e.push(192|r>>6,128|63&r):r<55296||57344<=r?e.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&t.charCodeAt(n)),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return e}function n(t){var e,n,r,i,o,a;for(e="",r=t.length,n=0;n<r;)switch((i=t[n++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=String.fromCharCode(i);break;case 12:case 13:o=t[n++],e+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=t[n++],a=t[n++],e+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return e}function o(t){for(var e=new Array(t.byteLength),n=new Uint8Array(t),r=e.length;r--;)e[r]=n[r];return e}function a(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=0;r<t.length;r+=3){var i=t[r],o=r+1<t.length,a=o?t[r+1]:0,s=r+2<t.length,c=s?t[r+2]:0,u=i>>2,l=(3&i)<<4|a>>4,h=(15&a)<<2|c>>6,f=63&c;s||(f=64,o||(h=64)),n.push(e[u],e[l],e[h],e[f])}return n.join("")}var s=Object.create||function(t){function e(){}return e.prototype=t,new e};if(c)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(t){return t&&-1<u.indexOf(Object.prototype.toString.call(t))};function h(t,n){for(var r=0,i=(t=t||[]).length;r<i;r++){var a=t[r];a instanceof h?t[r]=a._buffer:"string"==typeof a?t[r]=e(a):c&&(ArrayBuffer.prototype.isPrototypeOf(a)||l(a))?t[r]=o(a):c&&(s=a)&&DataView.prototype.isPrototypeOf(s)?t[r]=o(a.buffer):t[r]=e(String(a))}var s;this._buffer=[].concat.apply([],t),this.size=this._buffer.length,this.type=n&&n.type||""}function f(t,e,n){var r=h.call(this,t,n=n||{})||this;return r.name=e,r.lastModifiedDate=n.lastModified?new Date(n.lastModified):new Date,r.lastModified=+r.lastModifiedDate,r}if(h.prototype.slice=function(t,e,n){return new h([this._buffer.slice(t||0,e||this._buffer.length)],{type:n})},h.prototype.toString=function(){return"[object Blob]"},(f.prototype=s(h.prototype)).constructor=f,Object.setPrototypeOf)Object.setPrototypeOf(f,h);else try{f.__proto__=h}catch(s){}function d(){if(!(this instanceof d))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var t=document.createDocumentFragment();this.addEventListener=t.addEventListener,this.dispatchEvent=function(e){var n=this["on"+e.type];"function"==typeof n&&n(e),t.dispatchEvent(e)},this.removeEventListener=t.removeEventListener}function p(t,e,n){if(!(e instanceof h))throw new TypeError("Failed to execute '"+n+"' on 'FileReader': parameter 1 is not of type 'Blob'.");t.result="",setTimeout(function(){this.readyState=d.LOADING,t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend"))})}f.prototype.toString=function(){return"[object File]"},d.EMPTY=0,d.LOADING=1,d.DONE=2,d.prototype.error=null,d.prototype.onabort=null,d.prototype.onerror=null,d.prototype.onload=null,d.prototype.onloadend=null,d.prototype.onloadstart=null,d.prototype.onprogress=null,d.prototype.readAsDataURL=function(t){p(this,t,"readAsDataURL"),this.result="data:"+t.type+";base64,"+a(t._buffer)},d.prototype.readAsText=function(t){p(this,t,"readAsText"),this.result=n(t._buffer)},d.prototype.readAsArrayBuffer=function(t){p(this,t,"readAsText"),this.result=t._buffer.slice()},d.prototype.abort=function(){},URL.createObjectURL=function(t){return t instanceof h?"data:"+t.type+";base64,"+a(t._buffer):r.call(URL,t)},URL.revokeObjectURL=function(t){i&&i.call(URL,t)};var g=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;g&&(XMLHttpRequest.prototype.send=function(t){t instanceof h?(this.setRequestHeader("Content-Type",t.type),g.call(this,n(t._buffer))):g.call(this,t)}),t.FileReader=d,t.File=f,t.Blob=h}()}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")());var gt,mt,vt,bt,yt,wt,xt,At,St,_t,Nt,kt,Lt,Ct,Pt,Et=Et||function(t){if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=function(){return t.URL||t.webkitURL||t},n=t.document.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in n,i=/constructor/i.test(t.HTMLElement)||t.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent),a=t.setImmediate||t.setTimeout,s=function(t){a(function(){throw t},0)},c=function(t){setTimeout(function(){"string"==typeof t?e().revokeObjectURL(t):t.remove()},4e4)},u=function(t){return/^\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},l=function(l,h,f){f||(l=u(l));var d,p=this,g="application/octet-stream"===l.type,m=function(){!function(t,e,n){for(var r=(e=[].concat(e)).length;r--;){var i=t["on"+e[r]];if("function"==typeof i)try{i.call(t,t)}catch(t){s(t)}}}(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,r)return d=e().createObjectURL(l),void a(function(){var t,e;n.href=d,n.download=h,t=n,e=new MouseEvent("click"),t.dispatchEvent(e),m(),c(d),p.readyState=p.DONE},0);!function(){if((o||g&&i)&&t.FileReader){var n=new FileReader;return n.onloadend=function(){var e=o?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,p.readyState=p.DONE,m()},n.readAsDataURL(l),p.readyState=p.INIT}d||(d=e().createObjectURL(l)),g?t.location.href=d:t.open(d,"_blank")||(t.location.href=d),p.readyState=p.DONE,m(),c(d)}()},h=l.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=u(t)),navigator.msSaveOrOpenBlob(t,e)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,function(t,e,n){return new l(t,e||t.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0);function Tt(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"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;o&&(s=e,e+=3*a);var c=!0,u=[],l=0,h=null,f=0,d=null;for(this.width=n,this.height=r;c&&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,d=t[e++]|t[e++]<<8,e++;else for(e+=12;0!==(_=t[e++]);)e+=_;break;case 249:if(4!==t[e++]||0!==t[e+4])throw"Invalid graphics extension block.";var p=t[e++];l=t[e++]|t[e++]<<8,h=t[e++],0==(1&p)&&(h=null),f=p>>2&7,e++;break;case 254:for(;0!==(_=t[e++]);)e+=_;break;default:throw"Unknown graphic control label: 0x"+t[e-1].toString(16)}break;case 44:var g=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++],w=y>>6&1,x=s,A=!1;y>>7&&(A=!0,x=e,e+=3*(1<<1+(7&y)));var S=e;for(e++;;){var _;if(0===(_=t[e++]))break;e+=_}u.push({x:g,y:m,width:v,height:b,has_local_palette:A,palette_offset:x,data_offset:S,data_length:e-S,transparent_index:h,interlaced:!!w,delay:l,disposal:f});break;case 59:c=!1;break;default:throw"Unknown gif block: 0x"+t[e-1].toString(16)}this.numFrames=function(){return u.length},this.loopCount=function(){return d},this.frameInfo=function(t){if(t<0||t>=u.length)throw"Frame index out of range.";return u[t]},this.decodeAndBlitFrameBGRA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);It(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*(u+l)*7);for(var m=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===h&&(h=u,d<=(p+=g)&&(g=l+4*(u+l)*(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],A=t[s+3*y+2];r[p++]=A,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);It(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*(u+l)*7);for(var m=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===h&&(h=u,d<=(p+=g)&&(g=l+4*(u+l)*(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],A=t[s+3*y+2];r[p++]=w,r[p++]=x,r[p++]=A,r[p++]=255}--h}}}function It(t,e,n,r){for(var i=t[e++],o=1<<i,a=o+1,s=a+1,c=i+1,u=(1<<c)-1,l=0,h=0,f=0,d=t[e++],p=new Int32Array(4096),g=null;;){for(;l<16&&0!==d;)h|=t[e++]<<l,l+=8,1===d?d=t[e++]:--d;if(l<c)break;var m=h&u;if(h>>=c,l-=c,m!==o){if(m===a)break;for(var v=m<s?m:g,b=0,y=v;o<y;)y=p[y]>>8,++b;var w=y;if(r<f+b+(v!==m?1:0))return void console.log("Warning, gif stream longer than expected.");n[f++]=w;var x=f+=b;for(v!==m&&(n[f++]=w),y=v;b--;)y=p[y],n[--x]=255&y,y>>=8;null!==g&&s<4096&&(p[s++]=g<<8|w,u+1<=s&&c<12&&(++c,u=u<<1|1)),g=m}else s=a+1,u=(1<<(c=i+1))-1,g=null}return f!==r&&console.log("Warning, gif stream shorter than expected."),n}try{e.GifWriter=function(t,e,n,r){var i=0,o=void 0===(r=void 0===r?{}:r).loop?null:r.loop,a=void 0===r.palette?null:r.palette;if(e<=0||n<=0||65535<e||65535<n)throw"Width/Height invalid.";function s(t){var e=t.length;if(e<2||256<e||e&e-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var c=0,u=0;if(null!==a){for(var l=s(a);l>>=1;)++c;if(l=1<<c,--c,void 0!==r.background){if(l<=(u=r.background))throw"Background index out of range.";if(0===u)throw"Background index explicitly passed as 0."}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=(null!==a?128:0)|c,t[i++]=u,t[i++]=0,null!==a)for(var h=0,f=a.length;h<f;++h){var d=a[h];t[i++]=d>>16&255,t[i++]=d>>8&255,t[i++]=255&d}if(null!==o){if(o<0||65535<o)throw"Loop count invalid.";t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var p=!1;this.addFrame=function(e,n,r,o,c,u){if(!0===p&&(--i,p=!1),u=void 0===u?{}:u,e<0||n<0||65535<e||65535<n)throw"x/y invalid.";if(r<=0||o<=0||65535<r||65535<o)throw"Width/Height invalid.";if(c.length<r*o)throw"Not enough pixels for the frame size.";var l=!0,h=u.palette;if(null==h&&(l=!1,h=a),null==h)throw"Must supply either a local or global palette.";for(var f=s(h),d=0;f>>=1;)++d;f=1<<d;var g=void 0===u.delay?0:u.delay,m=void 0===u.disposal?0:u.disposal;if(m<0||3<m)throw"Disposal out of range.";var v=!1,b=0;if(void 0!==u.transparent&&null!==u.transparent&&(v=!0,(b=u.transparent)<0||f<=b))throw"Transparent color index.";if((0!==m||v||0!==g)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=m<<2|(!0===v?1:0),t[i++]=255&g,t[i++]=g>>8&255,t[i++]=b,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===l?128|d-1:0,!0===l)for(var y=0,w=h.length;y<w;++y){var x=h[y];t[i++]=x>>16&255,t[i++]=x>>8&255,t[i++]=255&x}i=function(t,e,n,r){t[e++]=n;var i=e++,o=1<<n,a=o-1,s=o+1,c=s+1,u=n+1,l=0,h=0;function f(n){for(;n<=l;)t[e++]=255&h,h>>=8,l-=8,e===i+256&&(t[i]=255,i=e++)}function d(t){h|=t<<l,l+=u,f(8)}var p=r[0]&a,g={};d(o);for(var m=1,v=r.length;m<v;++m){var b=r[m]&a,y=p<<8|b,w=g[y];if(void 0===w){for(h|=p<<l,l+=u;8<=l;)t[e++]=255&h,h>>=8,l-=8,e===i+256&&(t[i]=255,i=e++);4096===c?(d(o),c=s+1,u=n+1,g={}):(1<<u<=c&&++u,g[y]=c++),p=b}else p=w}return d(p),d(s),f(1),i+1===e?t[i]=0:(t[i]=e-i-1,t[e++]=0),e}(t,i,d<2?2:d,c)},this.end=function(){return!1===p&&(t[i++]=59,p=!0),i}},e.GifReader=Tt}catch(a){}function Mt(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),A=new Array(2048),S=[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],_=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],N=[0,1,2,3,4,5,6,7,8,9,10,11],k=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[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],C=[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],E=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],T=[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 I(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 M(t){for(var e=t[0],n=t[1]-1;0<=n;)e&1<<n&&(m|=1<<v),n--,--v<0&&(255==m?(B(255),B(0)):B(m),v=7,m=0)}function B(t){g.push(t)}function R(t){B(t>>8&255),B(255&t)}function O(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,A=p+w,S=p-w,_=m+b,N=m-b;t[f]=A+_,t[f+4]=A-_;var k=.707106781*(N+S);t[f+2]=S+k,t[f+6]=S-k;var L=.382683433*((A=x+y)-(N=v+g)),C=.5411961*A+L,P=1.306562965*N+L,E=.707106781*(_=y+v),T=g+E,I=g-E;t[f+5]=I+C,t[f+3]=I-C,t[f+1]=T+P,t[f+7]=T-P,f+=8}for(l=f=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 M=n+(u=t[f+56]),B=n-u,R=r+c,O=r-c,F=i+s,D=i-s,j=o+a,q=o-a,z=M+j,V=M-j,U=R+F,H=R-F;t[f]=z+U,t[f+32]=z-U;var G=.707106781*(H+V);t[f+16]=V+G,t[f+48]=V-G;var W=.382683433*((z=q+D)-(H=O+B)),Y=.5411961*z+W,X=1.306562965*H+W,J=.707106781*(U=D+O),Z=B+J,K=B-J;t[f+40]=K+Y,t[f+24]=K-Y,t[f+8]=Z+X,t[f+56]=Z-X,f++}for(l=0;l<64;++l)h=t[l]*e[l],d[l]=0<h?h+.5|0:h-.5|0;return d}(t,e),u=0;u<64;++u)p[S[u]]=c[u];var l=p[0]-n;n=p[0],0==l?M(r[0]):(M(r[f[o=32767+l]]),M(h[o]));for(var g=63;0<g&&0==p[g];g--);if(0==g)return M(a),n;for(var m,v=1;v<=g;){for(var b=v;0==p[v]&&v<=g;++v);var y=v-b;if(16<=y){m=y>>4;for(var w=1;w<=m;++w)M(s);y&=15}o=32767+p[v],M(i[(y<<4)+f[o]]),M(h[o]),v++}return 63!=g&&M(a),n}function F(t){t<=0&&(t=1),100<t&&(t=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<1?r=1:255<r&&(r=255),s[S[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<1?h=1:255<h&&(h=255),c[S[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[S[d]]*f[p]*f[g]*8),l[d]=1/(c[S[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){var a,h;(new Date).getTime(),o&&F(o),g=new Array,m=0,v=7,R(65496),R(65504),R(16),B(74),B(70),B(73),B(70),B(0),B(1),B(1),B(0),R(1),R(1),B(0),B(0),function(){R(65499),R(132),B(0);for(var t=0;t<64;t++)B(s[t]);B(1);for(var e=0;e<64;e++)B(c[e])}(),a=t.width,h=t.height,R(65472),R(17),B(8),R(h),R(a),B(3),B(1),B(17),B(0),B(2),B(17),B(1),B(3),B(17),B(1),function(){R(65476),R(418),B(0);for(var t=0;t<16;t++)B(_[t+1]);for(var e=0;e<=11;e++)B(N[e]);B(16);for(var n=0;n<16;n++)B(k[n+1]);for(var r=0;r<=161;r++)B(L[r]);B(1);for(var i=0;i<16;i++)B(C[i+1]);for(var o=0;o<=11;o++)B(P[o]);B(17);for(var a=0;a<16;a++)B(E[a+1]);for(var s=0;s<=161;s++)B(T[s])}(),R(65498),R(12),B(3),B(1),B(0),B(2),B(17),B(3),B(17),B(0),B(63),B(0);var f=0,d=0,p=0;m=0,v=7,this.encode.displayName="_encode_";for(var x,S,I,D,j,q,z,V,U,H=t.data,G=t.width,W=t.height,Y=4*G,X=0;X<W;){for(x=0;x<Y;){for(q=j=Y*X+x,z=-1,U=V=0;U<64;U++)q=j+(V=U>>3)*Y+(z=4*(7&U)),W<=X+V&&(q-=Y*(X+1+V-W)),Y<=x+z&&(q-=x+z-Y+4),S=H[q++],I=H[q++],D=H[q++],b[U]=(A[S]+A[I+256>>0]+A[D+512>>0]>>16)-128,y[U]=(A[S+768>>0]+A[I+1024>>0]+A[D+1280>>0]>>16)-128,w[U]=(A[S+1280>>0]+A[I+1536>>0]+A[D+1792>>0]>>16)-128;f=O(b,u,f,e,r),d=O(y,l,d,n,i),p=O(w,l,p,n,i),x+=32}X+=8}if(0<=v){var J=[];J[1]=v+1,J[0]=(1<<v+1)-1,M(J)}return R(65497),new Uint8Array(g)},function(){(new Date).getTime(),t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=I(_,N),n=I(C,P),r=I(k,L),i=I(E,T),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++)A[t]=19595*t,A[t+256>>0]=38470*t,A[t+512>>0]=7471*t+32768,A[t+768>>0]=-11059*t,A[t+1024>>0]=-21709*t,A[t+1280>>0]=32768*t+8421375,A[t+1536>>0]=-27439*t,A[t+1792>>0]=-5329*t}(),F(t),(new Date).getTime()}()}function Bt(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()}window.tmp=Tt,pt.API.adler32cs=(wt="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,xt=null,At=function(){if(!wt)return function(){return!1};try{var t={};"function"==typeof t.Buffer&&(xt=t.Buffer)}catch(t){}return function(t){return t instanceof ArrayBuffer||null!==xt&&t instanceof xt}}(),St=null!==xt?function(t){return new xt(t,"utf8").toString("binary")}:function(t){return unescape(encodeURIComponent(t))},_t=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},Nt=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},Lt=(kt={}).Adler32=(((yt=(bt=function(t){if(!(this instanceof bt))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=bt).from=((gt=function(t){if(!(this instanceof bt))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=_t(1,t.toString())}).prototype=yt,gt),bt.fromUtf8=((mt=function(t){if(!(this instanceof bt))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=St(t.toString());this.checksum=_t(1,e)}).prototype=yt,mt),wt&&(bt.fromBuffer=((vt=function(t){if(!(this instanceof bt))throw new TypeError("Constructor cannot called be as a function.");if(!At(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=Nt(1,e)}).prototype=yt,vt)),yt.update=function(t){if(null==t)throw new Error("First argument needs to be a string.");return t=t.toString(),this.checksum=_t(this.checksum,t)},yt.updateUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=St(t.toString());return this.checksum=_t(this.checksum,e)},wt&&(yt.updateBuffer=function(t){if(!At(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=Nt(this.checksum,e)}),yt.clone=function(){return new Lt(this.checksum)},bt),kt.from=function(t){if(null==t)throw new Error("First argument needs to be a string.");return _t(1,t.toString())},kt.fromUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=St(t.toString());return _t(1,e)},wt&&(kt.fromBuffer=function(t){if(!At(t))throw new Error("First argument need to be ArrayBuffer.");var e=new Uint8Array(t);return Nt(1,e)}),kt),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=0<s?a[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(0<s&&"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=1425<=d&&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":n=!(m=!1),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&&A(r,n,{hiLevel:v}),r.reverse(),e&&e.reverse(),r.join("")},A=function(t,e,i){var o,a,s,c,u,d=-1,p=t.length,g=0,y=[],x=v?h:l,A=[];for(r=n=m=!1,a=0;a<p;a++)A[a]=b(t[a]);for(s=0;s<p;s++){if(u=g,y[s]=w(t,A,y,s),o=240&(g=x[u][f[y[s]]]),g&=15,e[s]=c=x[g][5],0<o)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(-1<d){for(a=d;a<s;a++)e[a]=c;d=-1}"B"===A[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;0<=i&&"WS"===t[i];i--)e[i]=v}}(A,e,p)},S=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++}}},_=function(t,e,n){var r=t.split(""),i={hiLevel:v};return n||(n=[]),A(r,n,i),function(t,e,n){if(0!==n.hiLevel&&c)for(var r,i=0;i<t.length;i++)1===e[i]&&0<=(r=p.indexOf(t[i]))&&(t[i]=p[r+1])}(r,n,i),S(2,r,e,n,i),S(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=_(t,e,n),t=x(t,e);else if(!i||o||a||s){if(i&&!a&&o^s)t=x(t,e),t=o?(v=0,_(t,e,n)):(v=1,t=_(t,e,n),x(t,e));else if(i&&o&&!a&&s)v=1,t=_(t,e,n),t=x(t,e);else if(!i&&!a&&o^s){var r=c;o?(v=1,t=_(t,e,n),v=0,c=!1,t=_(t,e,n),c=r):(v=0,t=_(t,e,n),t=x(t,e),c=!(v=1),t=_(t,e,n),c=r,t=x(t,e))}}else v=0,t=_(t,e,n);else v=o?1:0,t=_(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("[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)}])}(pt),window.tmp=Mt,Bt.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)},Bt.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){console.log("bit decode error:"+t)}},Bt.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,n=0<=this.height?this.height-1:-this.height;for(n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;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!=e&&(this.pos+=4-e)}},Bt.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;0<=n;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)}},Bt.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;0<=e;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)}},Bt.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;0<=n;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}},Bt.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;0<=r;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}},Bt.prototype.bit24=function(){for(var t=this.height-1;0<=t;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}},Bt.prototype.bit32=function(){for(var t=this.height-1;0<=t;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}},Bt.prototype.getData=function(){return this.data},window.tmp=Bt,function(t){var e=15,n=573,r=[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 i(){var t=this;function r(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}t.build_tree=function(i){var o,a,s,c=t.dyn_tree,u=t.stat_desc.static_tree,l=t.stat_desc.elems,h=-1;for(i.heap_len=0,i.heap_max=n,o=0;o<l;o++)0!==c[2*o]?(i.heap[++i.heap_len]=h=o,i.depth[o]=0):c[2*o+1]=0;for(;i.heap_len<2;)c[2*(s=i.heap[++i.heap_len]=h<2?++h:0)]=1,i.depth[s]=0,i.opt_len--,u&&(i.static_len-=u[2*s+1]);for(t.max_code=h,o=Math.floor(i.heap_len/2);1<=o;o--)i.pqdownheap(c,o);for(s=l;o=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(c,1),a=i.heap[1],i.heap[--i.heap_max]=o,i.heap[--i.heap_max]=a,c[2*s]=c[2*o]+c[2*a],i.depth[s]=Math.max(i.depth[o],i.depth[a])+1,c[2*o+1]=c[2*a+1]=s,i.heap[1]=s++,i.pqdownheap(c,1),2<=i.heap_len;);i.heap[--i.heap_max]=i.heap[1],function(r){var i,o,a,s,c,u,l=t.dyn_tree,h=t.stat_desc.static_tree,f=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(s=0;s<=e;s++)r.bl_count[s]=0;for(l[2*r.heap[r.heap_max]+1]=0,i=r.heap_max+1;i<n;i++)p<(s=l[2*l[2*(o=r.heap[i])+1]+1]+1)&&(s=p,g++),l[2*o+1]=s,o>t.max_code||(r.bl_count[s]++,c=0,d<=o&&(c=f[o-d]),u=l[2*o],r.opt_len+=u*(s+c),h&&(r.static_len+=u*(h[2*o+1]+c)));if(0!==g){do{for(s=p-1;0===r.bl_count[s];)s--;r.bl_count[s]--,r.bl_count[s+1]+=2,r.bl_count[p]--,g-=2}while(0<g);for(s=p;0!==s;s--)for(o=r.bl_count[s];0!==o;)(a=r.heap[--i])>t.max_code||(l[2*a+1]!=s&&(r.opt_len+=(s-l[2*a+1])*l[2*a],l[2*a+1]=s),o--)}}(i),function(t,n,i){var o,a,s,c=[],u=0;for(o=1;o<=e;o++)c[o]=u=u+i[o-1]<<1;for(a=0;a<=n;a++)0!==(s=t[2*a+1])&&(t[2*a]=r(c[s]++,s))}(c,t.max_code,i.bl_count)}}function o(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 a(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}i._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],i.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],i.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],i.d_code=function(t){return t<256?r[t]:r[256+(t>>>7)]},i.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],i.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],i.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],i.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],o.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],o.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],o.static_l_desc=new o(o.static_ltree,i.extra_lbits,257,286,e),o.static_d_desc=new o(o.static_dtree,i.extra_dbits,0,30,e),o.static_bl_desc=new o(null,i.extra_blbits,0,19,7);var s=[new a(0,0,0,0,0),new a(4,4,8,4,1),new a(4,5,16,8,1),new a(4,6,32,32,1),new a(4,4,16,16,2),new a(8,16,32,32,2),new a(8,16,128,128,2),new a(8,32,128,256,2),new a(32,128,258,1024,2),new a(32,258,258,4096,2)],c=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function u(t,e,n,r){var i=t[2*e],o=t[2*n];return i<o||i==o&&r[e]<=r[n]}function l(){var t,e,n,r,a,l,h,f,d,p,g,m,v,b,y,w,x,A,S,_,N,k,L,C,P,E,T,I,M,B,R,O,F,D,j,q,z,V,U,H,G,W=this,Y=new i,X=new i,J=new i;function Z(){var t;for(t=0;t<286;t++)R[2*t]=0;for(t=0;t<30;t++)O[2*t]=0;for(t=0;t<19;t++)F[2*t]=0;R[512]=1,W.opt_len=W.static_len=0,q=V=0}function K(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?F[2*r]+=a:0!==r?(r!=i&&F[2*r]++,F[32]++):a<=10?F[34]++:F[36]++,i=r,c=(a=0)===o?(s=138,3):r==o?(s=6,3):(s=7,4))}function Q(t){W.pending_buf[W.pending++]=t}function $(t){Q(255&t),Q(t>>>8&255)}function tt(t,e){var n,r=e;16-r<G?($(H|=(n=t)<<G&65535),H=n>>>16-G,G+=r-16):(H|=t<<G&65535,G+=r)}function et(t,e){var n=2*t;tt(65535&e[n],65535&e[n+1])}function nt(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)for(;et(r,F),0!=--a;);else 0!==r?(r!=i&&(et(r,F),a--),et(16,F),tt(a-3,2)):a<=10?(et(17,F),tt(a-3,3)):(et(18,F),tt(a-11,7));i=r,c=(a=0)===o?(s=138,3):r==o?(s=6,3):(s=7,4)}}function rt(){16==G?($(H),G=H=0):8<=G&&(Q(255&H),H>>>=8,G-=8)}function it(t,e){var n,r,o;if(W.pending_buf[z+2*q]=t>>>8&255,W.pending_buf[z+2*q+1]=255&t,W.pending_buf[D+q]=255&e,q++,0===t?R[2*e]++:(V++,t--,R[2*(i._length_code[e]+256+1)]++,O[2*i.d_code(t)]++),0==(8191&q)&&2<T){for(n=8*q,r=N-x,o=0;o<30;o++)n+=O[2*o]*(5+i.extra_dbits[o]);if(n>>>=3,V<Math.floor(q/2)&&n<Math.floor(r/2))return!0}return q==j-1}function ot(t,e){var n,r,o,a,s=0;if(0!==q)for(;n=W.pending_buf[z+2*s]<<8&65280|255&W.pending_buf[z+2*s+1],r=255&W.pending_buf[D+s],s++,0===n?et(r,t):(et((o=i._length_code[r])+256+1,t),0!==(a=i.extra_lbits[o])&&tt(r-=i.base_length[o],a),et(o=i.d_code(--n),e),0!==(a=i.extra_dbits[o])&&tt(n-=i.base_dist[o],a)),s<q;);et(256,t),U=t[513]}function at(){8<G?$(H):0<G&&Q(255&H),G=H=0}function st(t,e,n){var r,i;tt(0+(n?1:0),3),r=t,i=e,at(),U=8,$(i),$(~i),W.pending_buf.set(f.subarray(r,r+i),W.pending),W.pending+=i}function ct(e){(function(t,e,n){var r,a,s=0;0<T?(Y.build_tree(W),X.build_tree(W),s=function(){var t;for(K(R,Y.max_code),K(O,X.max_code),J.build_tree(W),t=18;3<=t&&0===F[2*i.bl_order[t]+1];t--);return W.opt_len+=3*(t+1)+5+5+4,t}(),r=W.opt_len+3+7>>>3,(a=W.static_len+3+7>>>3)<=r&&(r=a)):r=a=e+5,e+4<=r&&-1!=t?st(t,e,n):a==r?(tt(2+(n?1:0),3),ot(o.static_ltree,o.static_dtree)):(tt(4+(n?1:0),3),function(t,e,n){var r;for(tt(t-257,5),tt(e-1,5),tt(n-4,4),r=0;r<n;r++)tt(F[2*i.bl_order[r]+1],3);nt(R,t-1),nt(O,e-1)}(Y.max_code+1,X.max_code+1,s+1),ot(R,O)),Z(),n&&at()})(0<=x?x:-1,N-x,e),x=N,t.flush_pending()}function ut(){var e,n,r,i;do{if(0==(i=d-L-N)&&0===N&&0===L)i=a;else if(-1==i)i--;else if(a+a-262<=N){for(f.set(f.subarray(a,a+a),0),k-=a,N-=a,x-=a,r=e=v;n=65535&g[--r],g[r]=a<=n?n-a:0,0!=--e;);for(r=e=a;n=65535&p[--r],p[r]=a<=n?n-a:0,0!=--e;);i+=a}if(0===t.avail_in)return;e=t.read_buf(f,N+L,i),3<=(L+=e)&&(m=((m=255&f[N])<<w^255&f[N+1])&y)}while(L<262&&0!==t.avail_in)}function lt(t){var e,n,r=P,i=N,o=C,s=a-262<N?N-(a-262):0,c=B,u=h,l=N+258,d=f[i+o-1],g=f[i+o];M<=C&&(r>>=2),L<c&&(c=L);do{if(f[(e=t)+o]==g&&f[e+o-1]==d&&f[e]==f[i]&&f[++e]==f[i+1]){i+=2,e++;do{}while(f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&i<l);if(n=258-(l-i),i=l-258,o<n){if(k=t,c<=(o=n))break;d=f[i+o-1],g=f[i+o]}}}while((t=65535&p[t&u])>s&&0!=--r);return o<=L?o:L}function ht(t){return t.total_in=t.total_out=0,t.msg=null,W.pending=0,W.pending_out=0,e=113,r=0,Y.dyn_tree=R,Y.stat_desc=o.static_l_desc,X.dyn_tree=O,X.stat_desc=o.static_d_desc,J.dyn_tree=F,J.stat_desc=o.static_bl_desc,G=H=0,U=8,Z(),function(){var t;for(d=2*a,t=g[v-1]=0;t<v-1;t++)g[t]=0;E=s[T].max_lazy,M=s[T].good_length,B=s[T].nice_length,P=s[T].max_chain,A=C=2,m=_=L=x=N=0}(),0}W.depth=[],W.bl_count=[],W.heap=[],R=[],O=[],F=[],W.pqdownheap=function(t,e){for(var n=W.heap,r=n[e],i=e<<1;i<=W.heap_len&&(i<W.heap_len&&u(t,n[i+1],n[i],W.depth)&&i++,!u(t,r,n[i],W.depth));)n[e]=n[i],e=i,i<<=1;n[e]=r},W.deflateInit=function(t,e,r,i,o,s){return i||(i=8),o||(o=8),s||(s=0),t.msg=null,-1==e&&(e=6),o<1||9<o||8!=i||r<9||15<r||e<0||9<e||s<0||2<s?-2:(t.dstate=W,h=(a=1<<(l=r))-1,y=(v=1<<(b=o+7))-1,w=Math.floor((b+3-1)/3),f=new Uint8Array(2*a),p=[],g=[],j=1<<o+6,W.pending_buf=new Uint8Array(4*j),n=4*j,z=Math.floor(j/2),D=3*j,T=e,I=s,ht(t))},W.deflateEnd=function(){return 42!=e&&113!=e&&666!=e?-2:(W.pending_buf=null,f=p=g=null,W.dstate=null,113==e?-3:0)},W.deflateParams=function(t,e,n){var r=0;return-1==e&&(e=6),e<0||9<e||n<0||2<n?-2:(s[T].func!=s[e].func&&0!==t.total_in&&(r=t.deflate(1)),T!=e&&(E=s[T=e].max_lazy,M=s[T].good_length,B=s[T].nice_length,P=s[T].max_chain),I=n,r)},W.deflateSetDictionary=function(t,n,r){var i,o=r,s=0;if(!n||42!=e)return-2;if(o<3)return 0;for(a-262<o&&(s=r-(o=a-262)),f.set(n.subarray(s,s+o),0),x=N=o,m=((m=255&f[0])<<w^255&f[1])&y,i=0;i<=o-3;i++)m=(m<<w^255&f[i+2])&y,p[i&h]=g[m],g[m]=i;return 0},W.deflate=function(i,u){var d,b,P,M,B,R;if(4<u||u<0)return-2;if(!i.next_out||!i.next_in&&0!==i.avail_in||666==e&&4!=u)return i.msg=c[4],-2;if(0===i.avail_out)return i.msg=c[7],-5;if(t=i,M=r,r=u,42==e&&(b=8+(l-8<<4)<<8,3<(P=(T-1&255)>>1)&&(P=3),b|=P<<6,0!==N&&(b|=32),e=113,Q((R=b+=31-b%31)>>8&255),Q(255&R)),0!==W.pending){if(t.flush_pending(),0===t.avail_out)return r=-1,0}else if(0===t.avail_in&&u<=M&&4!=u)return t.msg=c[7],-5;if(666==e&&0!==t.avail_in)return i.msg=c[7],-5;if(0!==t.avail_in||0!==L||0!=u&&666!=e){switch(B=-1,s[T].func){case 0:B=function(e){var r,i=65535;for(n-5<i&&(i=n-5);;){if(L<=1){if(ut(),0===L&&0==e)return 0;if(0===L)break}if(N+=L,r=x+i,((L=0)===N||r<=N)&&(L=N-r,N=r,ct(!1),0===t.avail_out))return 0;if(a-262<=N-x&&(ct(!1),0===t.avail_out))return 0}return ct(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(u);break;case 1:B=function(e){for(var n,r=0;;){if(L<262){if(ut(),L<262&&0==e)return 0;if(0===L)break}if(3<=L&&(m=(m<<w^255&f[N+2])&y,r=65535&g[m],p[N&h]=g[m],g[m]=N),0!==r&&(N-r&65535)<=a-262&&2!=I&&(A=lt(r)),3<=A)if(n=it(N-k,A-3),L-=A,A<=E&&3<=L){for(A--;m=(m<<w^255&f[++N+2])&y,r=65535&g[m],p[N&h]=g[m],g[m]=N,0!=--A;);N++}else N+=A,A=0,m=((m=255&f[N])<<w^255&f[N+1])&y;else n=it(0,255&f[N]),L--,N++;if(n&&(ct(!1),0===t.avail_out))return 0}return ct(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(u);break;case 2:B=function(e){for(var n,r,i=0;;){if(L<262){if(ut(),L<262&&0==e)return 0;if(0===L)break}if(3<=L&&(m=(m<<w^255&f[N+2])&y,i=65535&g[m],p[N&h]=g[m],g[m]=N),C=A,S=k,A=2,0!==i&&C<E&&(N-i&65535)<=a-262&&(2!=I&&(A=lt(i)),A<=5&&(1==I||3==A&&4096<N-k)&&(A=2)),3<=C&&A<=C){for(r=N+L-3,n=it(N-1-S,C-3),L-=C-1,C-=2;++N<=r&&(m=(m<<w^255&f[N+2])&y,i=65535&g[m],p[N&h]=g[m],g[m]=N),0!=--C;);if(_=0,A=2,N++,n&&(ct(!1),0===t.avail_out))return 0}else if(0!==_){if((n=it(0,255&f[N-1]))&&ct(!1),N++,L--,0===t.avail_out)return 0}else _=1,N++,L--}return 0!==_&&(n=it(0,255&f[N-1]),_=0),ct(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(u)}if(2!=B&&3!=B||(e=666),0==B||2==B)return 0===t.avail_out&&(r=-1),0;if(1==B){if(1==u)tt(2,3),et(256,o.static_ltree),rt(),1+U+10-G<9&&(tt(2,3),et(256,o.static_ltree),rt()),U=7;else if(st(0,0,!1),3==u)for(d=0;d<v;d++)g[d]=0;if(t.flush_pending(),0===t.avail_out)return r=-1,0}}return 4!=u?0:1}}function h(){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}h.prototype={deflateInit:function(t,n){return this.dstate=new l,n||(n=e),this.dstate.deflateInit(this,t,n)},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 n<r&&(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,e=t.dstate.pending;e>t.avail_out&&(e=t.avail_out),0!==e&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,0===t.dstate.pending&&(t.dstate.pending_out=0))}};var f=t.zip||t;f.Deflater=f._jzlib_Deflater=function(t){var e=new h,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&&0<e.next_in_index&&e.next_in_index!=a&&(r(e.next_in_index),a=e.next_in_index)}while(0<e.avail_in||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);0<512-e.avail_out&&i.push(new Uint8Array(n.subarray(0,e.next_out_index))),a+=e.next_out_index}while(0<e.avail_in||0===e.avail_out);return e.deflateEnd(),r=new Uint8Array(a),i.forEach(function(t){r.set(t,o),o+=t.length}),r}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()).RGBColor=function(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var n={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"};for(var r in n)t==r&&(t=n[r]);for(var i=[{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)]}}],o=0;o<i.length;o++){var a=i[o].re,s=i[o].process,c=a.exec(t);c&&(e=s(c),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?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}},function(t){var e="+".charCodeAt(0),n="/".charCodeAt(0),r="0".charCodeAt(0),i="a".charCodeAt(0),o="A".charCodeAt(0),a="-".charCodeAt(0),s="_".charCodeAt(0),c=function(t){var c=t.charCodeAt(0);return c===e||c===a?62:c===n||c===s?63:c<r?-1:c<r+10?c-r+26+26:c<o+26?c-o:c<i+26?c-i+26:void 0};t.API.TTFFont=function(){function t(t,e,n){var r;if(this.rawData=t,r=this.contents=new l(t),this.contents.pos=4,"ttcf"===r.readString(4)){if(!e)throw new Error("Must specify a font name for TTC files.");throw new Error("Font "+e+" not found in TTC file.")}r.pos=0,this.parse(),this.subset=new P(this),this.registerTTF()}return t.open=function(e,n,r,i){if("string"!=typeof r)throw new Error("Invalid argument supplied in TTFFont.open");return new t(function(t){var e,n,r,i,o,a;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var s=t.length;o="="===t.charAt(s-2)?2:"="===t.charAt(s-1)?1:0,a=new Uint8Array(3*t.length/4-o),r=0<o?t.length-4:t.length;var u=0;function l(t){a[u++]=t}for(n=e=0;e<r;e+=4,n+=3)l((16711680&(i=c(t.charAt(e))<<18|c(t.charAt(e+1))<<12|c(t.charAt(e+2))<<6|c(t.charAt(e+3))))>>16),l((65280&i)>>8),l(255&i);return 2===o?l(255&(i=c(t.charAt(e))<<2|c(t.charAt(e+1))>>4)):1===o&&(l((i=c(t.charAt(e))<<10|c(t.charAt(e+1))<<4|c(t.charAt(e+2))>>2)>>8&255),l(255&i)),a}(r),n,i)},t.prototype.parse=function(){return this.directory=new h(this.contents),this.head=new p(this),this.name=new x(this),this.cmap=new m(this),this.toUnicode=new Map,this.hhea=new v(this),this.maxp=new A(this),this.hmtx=new S(this),this.post=new y(this),this.os2=new b(this),this.loca=new C(this),this.glyf=new N(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&(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,s;for(i=a=o=0,s=(t=""+t).length;0<=s?a<s:s<a;i=0<=s?++a:--a)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 u,l=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 2147483648<=(t=this.readUInt32())?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 32768<=(t=this.readUInt16())?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n,r;for(n=[],e=r=0;0<=t?r<t:t<r;e=0<=t?++r:--r)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r,i;for(i=[],e=n=0,r=t.length;0<=r?n<r:r<n;e=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(e)));return i},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: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}(),h=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: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,h,f,d,p,g;for(g in d=Object.keys(e).length,s=Math.log(2),h=16*Math.floor(Math.log(d)/s),o=Math.floor(h/s),u=16*d-h,(r=new l).writeInt(this.scalarType),r.writeShort(d),r.writeShort(h),r.writeShort(o),r.writeShort(u),i=16*d,c=r.pos+i,a=null,p=[],e)for(f=e[g],r.writeString(g),r.writeInt(t(f)),r.writeInt(c),r.writeInt(f.length),p=p.concat(f),"head"===g&&(a=c),c+=f.length;c%4;)p.push(0),c++;return r.write(p),n=2981146554-t(r.data),r.pos=a+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=_.call(t);t.length%4;)t.push(0);for(n=new l(t),r=e=0,i=t.length;r<i;r+=4)e+=n.readUInt32();return 4294967295&e},e}(),f={}.hasOwnProperty,d=function(t,e){for(var n in e)f.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};u=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 p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,u),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 l).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}(),g=function(){function t(t,e){var n,r,i,o,a,s,c,u,l,h,f,d,p,g,m,v,b,y;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=m=0;m<256;s=++m)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:h<e;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:h<e;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:h<e;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:h<e;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:r<e;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=v=0,y=i.length;v<y;s=++v)for(g=i[s],n=b=d=p[s];d<=g?b<=g:g<=b;n=d<=g?++b:--b)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,h,f,d,p,g,m,v,b,y,w,x,A,S,_,N,k,L,C,P,E,T,I,M,B,R,O,F,D,j,q,z,V,U,H,G,W,Y,X;switch(E=new l,o=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(g=0,m=function(){var t,e;for(e=[],p=t=0;t<256;p=++t)e.push(0);return e}(),b={0:0},i={},T=0,R=o.length;T<R;T++)null==b[G=t[r=o[T]]]&&(b[G]=++g),i[r]={old:t[r],new:b[t[r]]},m[r]=b[t[r]];return E.writeUInt16(1),E.writeUInt16(0),E.writeUInt32(12),E.writeUInt16(0),E.writeUInt16(262),E.writeUInt16(0),E.write(m),{charMap:i,subtable:E.data,maxGlyphID:g+1};case"unicode":for(C=[],h=[],b={},n={},v=c=null,I=y=0,O=o.length;I<O;I++)null==b[x=t[r=o[I]]]&&(b[x]=++y),n[r]={old:x,new:b[x]},a=b[x]-r,null!=v&&a===c||(v&&h.push(v),C.push(r),c=a),v=r;for(v&&h.push(v),h.push(65535),C.push(65535),k=2*(N=C.length),_=2*Math.pow(Math.log(N)/Math.LN2,2),f=Math.log(_/2)/Math.LN2,S=2*N-_,s=[],A=[],d=[],p=M=0,F=C.length;M<F;p=++M){if(L=C[p],u=h[p],65535===L){s.push(0),A.push(0);break}if(32768<=L-(P=n[L].new))for(s.push(0),A.push(2*(d.length+N-p)),r=B=L;L<=u?B<=u:u<=B;r=L<=u?++B:--B)d.push(n[r].new);else s.push(P-L),A.push(0)}for(E.writeUInt16(3),E.writeUInt16(1),E.writeUInt32(12),E.writeUInt16(4),E.writeUInt16(16+8*N+2*d.length),E.writeUInt16(0),E.writeUInt16(k),E.writeUInt16(_),E.writeUInt16(f),E.writeUInt16(S),U=0,D=h.length;U<D;U++)r=h[U],E.writeUInt16(r);for(E.writeUInt16(0),H=0,j=C.length;H<j;H++)r=C[H],E.writeUInt16(r);for(W=0,q=s.length;W<q;W++)a=s[W],E.writeUInt16(a);for(Y=0,z=A.length;Y<z;Y++)w=A[Y],E.writeUInt16(w);for(X=0,V=d.length;X<V;X++)g=d[X],E.writeUInt16(g);return{charMap:n,subtable:E.data,maxGlyphID:y+1}}},t}(),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,u),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:n<r;0<=n?++r:--r)e=new g(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=g.encode(t,e),(r=new l).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,u),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}(),b=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,u),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(),0<this.version&&(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)n.push(t.readInt());return n}(),1<this.version))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),y=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,u),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,r,i;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:for(n=t.readUInt16(),this.glyphNameIndex=[],r=0;0<=n?r<n:n<r;0<=n?++r:--r)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)e=t.readByte(),i.push(this.names.push(t.readString(e)));return i;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=[],e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:n<e;0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},e}(),w=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,u),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,o,a,s,c,u,l,h,f;for(t.pos=this.offset,t.readShort(),e=t.readShort(),a=t.readShort(),n=[],i=u=0;0<=e?u<e:e<u;i=0<=e?++u:--u)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=l=0,h=n.length;l<h;i=++l)r=n[i],t.pos=r.offset,c=t.readString(r.length),o=new w(c,r),null==s[f=r.nameID]&&(s[f]=[]),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}(),A=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,u),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}(),S=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,u),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,n,r,i,o,a,s;for(t.pos=this.offset,this.metrics=[],i=0,a=this.file.hhea.numberOfMetrics;0<=a?i<a:a<i;0<=a?++i:--i)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var e,r;for(r=[],e=0;0<=n?e<n:n<e;0<=n?++e:--e)r.push(t.readInt16());return r}(),this.widths=function(){var t,e,n,i;for(i=[],t=0,e=(n=this.metrics).length;t<e;t++)r=n[t],i.push(r.advance);return i}.call(this),e=this.widths[this.widths.length-1],s=[],o=0;0<=n?o<n:n<o;0<=n?++o:--o)s.push(this.widths.push(e));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}(),_=[].slice,N=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,u),e.prototype.tag="glyf",e.prototype.parse=function(t){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,o,a,s,c,u,h;return(t=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 l(e.read(r))).readShort(),c=a.readShort(),h=a.readShort(),s=a.readShort(),u=a.readShort(),this.cache[t]=-1===o?new L(a,c,h,s,u):new k(a,o,c,h,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}(),k=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}(),L=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.readShort()),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(t){var e,n,r,i,o;for(n=new l(_.call(this.raw.data)),e=r=0,i=(o=this.glyphIDs).length;r<i;e=++r)o[e],n.pos=this.glyphOffsets[e];return n.data},t}(),C=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,u),e.prototype.tag="loca",e.prototype.parse=function(t){var e;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,n,r;for(r=[],e=0,n=this.length;e<n;e+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,n,r;for(r=[],e=0,n=this.length;e<n;e+=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;0<s&&(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}(),P=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(0<e.length)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,v;for(r in n=m.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},v=n.charMap)f[(s=v[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}();t.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))return""+n;for(i in o=["<<"],n)a=n[i],o.push("/"+i+" "+e.convert(a));return o.push(">>"),o.join("\n")},e}()}(pt),Ct="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")(),Pt=function(){var t,e,n;function r(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:e<f;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(0<(l=r-this.transparency.indexed.length))for(d=0;0<=l?d<l:l<d;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")}}r.load=function(t,e,n){var i;return"function"==typeof e&&(n=e),(i=new XMLHttpRequest).open("GET",t,!0),i.responseType="arraybuffer",i.onload=function(){var t;return t=new r(new Uint8Array(i.response||i.mozResponseArrayBuffer)),"function"==typeof(null!=e?e.getContext:void 0)&&t.render(e),"function"==typeof n?n(t):void 0},i.send(null)},r.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:t<e;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.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,_,N,k,L,C,P,E=Math.ceil((i.width-o)/s),T=Math.ceil((i.height-a)/c),I=i.width==E&&i.height==T;for(A=e*E,w=I?n:new Uint8Array(A*T),p=t.length,l=x=0;x<T&&r<p;){switch(t[r++]){case 0:for(f=N=0;N<A;f=N+=1)w[l++]=t[r++];break;case 1:for(f=k=0;k<A;f=k+=1)u=t[r++],d=f<e?0:w[l-e],w[l++]=(u+d)%256;break;case 2:for(f=L=0;L<A;f=L+=1)u=t[r++],h=(f-f%e)/e,S=x&&w[(x-1)*A+h*e+f%e],w[l++]=(S+u)%256;break;case 3:for(f=C=0;C<A;f=C+=1)u=t[r++],h=(f-f%e)/e,d=f<e?0:w[l-e],S=x&&w[(x-1)*A+h*e+f%e],w[l++]=(u+Math.floor((d+S)/2))%256;break;case 4:for(f=P=0;P<A;f=P+=1)u=t[r++],h=(f-f%e)/e,d=f<e?0:w[l-e],0===x?S=_=0:(S=w[(x-1)*A+h*e+f%e],_=h&&w[(x-1)*A+(h-1)*e+f%e]),g=d+S-_,m=Math.abs(g-d),b=Math.abs(g-S),y=Math.abs(g-_),v=m<=b&&m<=y?d:b<=y?S:_,w[l++]=(u+v)%256;break;default:throw new Error("Invalid filter algorithm: "+t[r-1])}if(!I){var M=((a+x*c)*i.width+o)*e,B=x*A;for(f=0;f<E;f+=1){for(var R=0;R<e;R+=1)n[M++]=w[B++];M+=(s-1)*e}}x++}}return t=(t=new Ot(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},r.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,n.length,e=a=t=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},r.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},r.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};try{e=Ct.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return-1}return t=function(t){var r;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},r.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}},r.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)},r.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),1<i&&n/i<o)return s.animation._timeout=setTimeout(e,c.delay)})()},r.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},r.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))},r}(),Ct.PNG=Pt;var Rt=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;r<n&&(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}(),Ot=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(Rt.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;0<o--;)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=(I=this.buffer)?I.length:0,x=this.bufferLength;;){var A=this.getCode(c);if(A<256)w<=x+1&&(w=(I=this.ensureBuffer(x+1)).length),I[x++]=A;else{if(256==A)return void(this.bufferLength=x);var S=(A=e[A-=257])>>16;0<S&&(S=this.getBits(S)),m=(65535&A)+S,A=this.getCode(u),0<(S=(A=n[A])>>16)&&(S=this.getBits(S));var _=(65535&A)+S;w<=x+m&&(w=(I=this.ensureBuffer(x+m)).length);for(var N=0;N<m;++N,++x)I[x]=I[x-_]}}}else{var k,L=this.bytes,C=this.bytesPos;void 0===(k=L[C++])&&o("Bad block header in flate stream");var P=k;void 0===(k=L[C++])&&o("Bad block header in flate stream"),P|=k<<8,void 0===(k=L[C++])&&o("Bad block header in flate stream");var E=k;void 0===(k=L[C++])&&o("Bad block header in flate stream"),(E|=k<<8)!=(65535&~P)&&o("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var T=this.bufferLength,I=this.ensureBuffer(T+P),M=T+P;this.bufferLength=M;for(var B=T;B<M;++B){if(void 0===(k=L[C++])){this.eof=!0;break}I[B]=k}this.bytesPos=C}},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,Rt.call(this)}}();window.tmp=Ot});try{t.exports=jsPDF}catch(t){}}).call(e,n(6))},326:function(t,e,n){"use strict";var r=n(327),i=(n.n(r),n(328)),o=(n.n(i),n(329)),a=(n.n(o),n(331)),s={Minder:n.n(a).a},c=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object.keys(s).forEach(function(e){t.component(e,s[e])})};"undefined"!=typeof window&&window.Vue&&c(window.Vue),e.a=Object.assign(s,{install:c})},327:function(module,exports){var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!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"==(void 0===n?"undefined":_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,function(t,e){return n.paralle(t,e,function(t,e){return e-t})}(this.lastValue,this.currentValue)},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 value(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 arguments.callee.caller.__KityMethodClass.__KityBaseClass.prototype[t].apply(this,Array.prototype.slice.call(arguments,1))},Class.prototype.callBase=function(){var t=arguments.callee.caller;return t.__KityMethodClass.__KityBaseClass.prototype[t.__KityMethodName].apply(this,arguments)},Class.prototype.mixin=function(t){var e=arguments.callee.caller.__KityMethodClass.__KityMixins;return e?e[t].apply(this,Array.prototype.slice.call(arguments,1)):this},Class.prototype.callMixin=function(){var t=arguments.callee.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"!==(void 0===t?"undefined":_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"===(void 0===i?"undefined":_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"===(void 0===t?"undefined":_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,_,N,k,L,C,P,E,T,I,M,B,R,O,F,D,j,q=Math,z=q.PI,V=Math.abs,U=120*z/180,H=z/180*(+i||0),G=[],W=function(t,e,n){return{x:t*q.cos(n)-e*q.sin(n),y:t*q.sin(n)+e*q.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,q.cos(z/180*i),q.sin(z/180*i),(f=(d=(t-s)/2)*d/(n*n)+(p=(e-c)/2)*p/(r*r))>1&&(n*=f=q.sqrt(f),r*=f),g=n*n,m=r*r,b=(v=(o==a?-1:1)*q.sqrt(V((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=q.asin(((e-y)/r).toFixed(9)),x=q.asin(((c-y)/r).toFixed(9)),w=t<b?z-w:w,x=s<b?z-x:x,w<0&&(w=2*z+w),x<0&&(x=2*z+x),a&&w>x&&(w-=2*z),!a&&x>w&&(x-=2*z)),V(A=x-w)>U&&(S=x,_=s,N=c,x=w+U*(a&&x>w?1:-1),G=h(s=b+n*q.cos(x),c=y+r*q.sin(x),n,r,i,0,a,_,N,[x,S,b,y])),A=x-w,k=q.cos(w),L=q.sin(w),C=q.cos(x),P=q.sin(x),R=[s+(T=4/3*n*(E=q.tan(A/4)))*P,c-(I=4/3*r*E)*C],O=[s,c],(B=[t+T*L,e-I*k])[0]=2*(M=[t,e])[0]-B[0],B[1]=2*M[1]-B[1],u)return[B,R,O].concat(G);for(F=[],D=0,j=(G=[B,R,O].concat(G).join().split(",")).length;D<j;D++)F[D]=D%2?W(G[D-1],G[D],H).y:W(G[D],G[D+1],H).x;return F}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),A=n(b,w),S=n(y,x);return[[i,o,f,d,b,y,A,S],[A,S,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")}()},328:function(t,e,n){(function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(){var r={r:function(t){if(r[t].inited)return r[t].value;if("function"!=typeof r[t].value)return r[t].inited=!0,r[t].value;var e={exports:{}},n=r[t].value(null,e.exports,e);if(r[t].inited=!0,r[t].value=n,void 0!==n)return n;for(var i in e.exports)if(e.exports.hasOwnProperty(i))return r[t].inited=!0,r[t].value=e.exports,e.exports}};r[0]={value:function(t,e,n){var i=r.r(17),o=r.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)})}},r[1]={value:function(t,e,n){var i=r.r(17),o=r.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)}})}},r[2]={value:function(t,e,n){r.r(17),r.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)})}},r[3]={value:function(t,e,n){r.r(17),r.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)})}},r[4]={value:function(t,e,n){r.r(17),r.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)})}},r[5]={value:function(t,e,n){r.r(17),r.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)})}},r[6]={value:function(t,e,n){var i=r.r(17);r.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)})}},r[7]={value:function(t,e,n){var i,o=r.r(17),a=r.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)})}))}},r[8]={value:function(t,e,n){var i=r.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))}}},r[9]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19)),a=(r.r(21),r.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)}}),n.exports=s}},r[10]={value:function(t,e,n){function i(t,e){e(t),t.children&&t.children.forEach(function(t){i(t,e)})}return r.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}}},r[11]={value:function(t,e,n){function i(t,e){l[t]=e}var o=r.r(17),a=r.r(33),s=r.r(20),c=r.r(19),u=r.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)}}}),e.register=i}},r[12]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19)),a=(r.r(21),r.r(13)),s=r.r(10),c=r.r(25),u={};e.registerProtocol=function(t,e){for(var n in u[t]=e,u)u.hasOwnProperty(n)&&(u[n]=u[n],u[n].name=n)},e.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))}})}},r[13]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.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}}),n.exports=a}},r[14]={value:function(t,e,n){var i=r.r(17),o=r.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")}})}},r[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}},r[16]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.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())}}})}},r[17]={value:function(t,e,n){n.exports=window.kity}},r[18]={value:function(t,e,n){var i,o=r.r(17),a=r.r(33),s=r.r(19),c=r.r(21),u=(r.r(13),r.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}}),n.exports=l}},r[19]={value:function(t,e,n){var i=r.r(17),o=r.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)},n.exports=s}},r[20]={value:function(t,e,n){var i=r.r(17),o=r.r(33),a=r.r(19),s={};e.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)}})}},r[21]={value:function(t,e,i){var o=r.r(17),a=r.r(33),s=r.r(19),c=o.createClass("MinderNode",{constructor:function(t){this.parent=null,this.root=this,this.children=[],this.data={id:a.guid(),created:+new Date},this.initContainers(),a.isString(t)?this.setText(t):a.isObject(t)&&a.extend(this.data,t)},initContainers:function(){this.rc=(new o.Group).setId(a.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"==(void 0===t?"undefined":n(t))){var r=t;for(t in r)r.hasOwnProperty(t)&&(this.data[t]=r[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 c&&(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 c.getCommonAncestor(this,t)},contains:function(t){return this==t||this.isAncestorOf(t)},clone:function(){var t=new c;return t.data=a.clone(this.data),this.children.forEach(function(e){t.appendChild(e.clone())}),t},compareTo:function(t){if(!a.comparePlainObject(this.data,t.data))return!1;if(!a.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}});c.getCommonAncestor=function(t,e){if(t instanceof Array)return c.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 c.getCommonAncestor(t,e)},t)}},o.extendClass(s,{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 c(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()}}),i.exports=c}},r[22]={value:function(t,e,n){var i=r.r(17),o=r.r(33),a=r.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}})}},r[23]={value:function(t,e,n){var i=r.r(17),o=r.r(33),a=r.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}})}},r[24]={value:function(t,e,n){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=r.r(17),a=r.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}})}},r[25]={value:function(r,i,o){var a=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],"function"==typeof e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};a.prototype={fulfill:function(t){return s(this,1,"fulfillValue",t)},reject:function(t){return s(this,2,"rejectReason",t)},then:function(t,e){var n=this,r=new a;return n.onFulfilled.push(l(t,r,"fulfill")),n.onRejected.push(l(e,r,"reject")),c(n),r}},a.all=function(t){return new a(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 s=function(t,e,n,r){return 0===t.state&&(t.state=e,t[n]=r,c(t)),t},c=function(t){1===t.state?u(t,"onFulfilled",t.fulfillValue):2===t.state&&u(t,"onRejected",t.rejectReason)},u=function(r,i,o){if(0!==r[i].length){var a=r[i];r[i]=[];var s=function(){for(var t=0;t<a.length;t++)a[t](o)};"object"==(void 0===t?"undefined":n(t))&&"function"==typeof t.nextTick?t.nextTick(s):"function"==typeof e?e(s):setTimeout(s,0)}},l=function(t,e,n){return function(r){if("function"!=typeof t)e[n].call(e,r);else{var i;try{i=r instanceof a?r.then(t):t(r)}catch(t){return void e.reject(t)}h(e,i)}}},h=function t(e,r){if(e!==r){var i;if("object"==(void 0===r?"undefined":n(r))&&null!==r||"function"==typeof r)try{i=r.then}catch(r){return void e.reject(r)}if("function"!=typeof i)e.fulfill(r);else{var o=!1;try{i.call(r,function(n){o||(o=!0,n===r?e.reject(new TypeError("circular thenable chain")):t(e,n))},function(t){o||(o=!0,e.reject(t))})}catch(r){o||e.reject(r)}}}else e.reject(new TypeError("cannot resolve promise with itself"))};a.resolve=function(t){return new a(function(e){e(t)})},a.reject=function(t){return new a(function(e,n){n(t)})},o.exports=a}},r[26]={value:function(t,e,n){var i=r.r(17),o=r.r(19);r.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()}})}},r[27]={value:function(t,e,n){var i=r.r(17),o=r.r(19),a=r.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)}}),n.exports=s}},r[28]={value:function(t,e,n){var i=r.r(17),o=r.r(33),a=r.r(19),s=r.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)}})}},r[29]={value:function(t,e,n){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=r.r(17),a=r.r(33),s=r.r(15),c=r.r(19),u=r.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:function(t){return!!window.ClipboardEvent}()})}},r[30]={value:function(t,e,n){var i=r.r(17),o=r.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}})}},r[31]={value:function(t,e,n){var i=r.r(17),o=r.r(33),a=r.r(19),s=r.r(9),c=r.r(21),u=r.r(20),l={};e.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"}})}})}},r[32]={value:function(t,e,n){var i=r.r(17),o=r.r(33),a=r.r(19),s=r.r(21),c=r.r(20),u=r.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={};e.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()})}},r[33]={value:function(t,e){var n=r.r(17),i={};e.extend=n.Utils.extend.bind(n.Utils),e.each=n.Utils.each.bind(n.Utils),e.uuid=function(t){return i[t]=i[t]?i[t]+1:1,t+i[t]},e.guid=function(){return(1e6*+new Date+Math.floor(1e6*Math.random())).toString(36)},e.trim=function(t){return t.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g,"")},e.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},e.clone=function(t){return JSON.parse(JSON.stringify(t))},e.comparePlainObject=function(t,e){return JSON.stringify(t)==JSON.stringify(e)},e.encodeHtml=function(t,e){return t?t.replace(e||/[&<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g,function(t,e){return e?t:{"<":"<","&":"&",'"':""",">":">","'":"'"}[t]}):""},e.clearWhiteSpace=function(t){return t.replace(/[\u200b\t\r\n]/g,"")},e.each(["String","Function","Array","Number","RegExp","Object"],function(t){var n=Object.prototype.toString;e["is"+t]=function(e){return n.apply(e)=="[object "+t+"]"}})}},r[34]={value:function(t,e,n){n.exports=window.kityminder=r.r(35)}},r[35]={value:function(t,e,n){var i={version:r.r(19).version};r.r(33),i.Minder=r.r(19),i.Command=r.r(9),i.Node=r.r(21),r.r(22),r.r(8),i.Event=r.r(13),i.data=r.r(12),r.r(10),i.KeyMap=r.r(15),r.r(29),r.r(30),r.r(23),r.r(28),r.r(14),r.r(16),i.Module=r.r(20),r.r(26),i.Render=r.r(27),i.Connect=r.r(11),i.Layout=r.r(18),i.Theme=r.r(32),i.Template=r.r(31),i.Promise=r.r(25),r.r(7),r.r(24),r.r(42),r.r(43),r.r(44),r.r(45),r.r(46),r.r(47),r.r(48),r.r(50),r.r(49),r.r(51),r.r(52),r.r(53),r.r(54),r.r(55),r.r(56),r.r(57),r.r(58),r.r(59),r.r(60),r.r(61),r.r(62),r.r(63),r.r(64),r.r(68),r.r(65),r.r(67),r.r(66),r.r(40),r.r(36),r.r(37),r.r(38),r.r(39),r.r(41),r.r(75),r.r(78),r.r(77),r.r(76),r.r(78),r.r(80),r.r(79),r.r(0),r.r(1),r.r(2),r.r(3),r.r(4),r.r(5),r.r(6),r.r(69),r.r(73),r.r(70),r.r(72),r.r(71),r.r(74),n.exports=i}},r[36]={value:function(t,e,n){var i=r.r(17),o=r.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}}))})}},r[37]={value:function(t,e,n){var i=r.r(17),o=r.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}}))})}},r[38]={value:function(t,e,n){var i=r.r(17),o=r.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)}}}))}},r[39]={value:function(t,e,n){var i=r.r(17),o=r.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)})}}}))}},r[40]={value:function(t,e,n){var i=r.r(17),o=r.r(18),a=r.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}}))}},r[41]={value:function(t,e,n){var i=r.r(17),o=r.r(18);r.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}}))}},r[42]={value:function(t,e,n){function i(t,e){return t.getIndex()-e.getIndex()}function o(t,e){return-i(t,e)}var a=r.r(17),s=r.r(21),c=r.r(9),u=r.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"}})}},r[43]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19),r.r(21),r.r(9)),a=r.r(20),s=r.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"}}})}},r[44]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(21)),a=r.r(9);r.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}})}},r[45]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(21)),a=r.r(9),s=r.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}}})}},r[46]={value:function(t,e,n){var i=r.r(17),o=r.r(33),a=r.r(15),s=r.r(21),c=r.r(9),u=r.r(20),l=r.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}]}})}},r[47]={value:function(t,e,n){function i(t,e){return t.getData(e)||t.getStyle(e)}var o=r.r(17),a=(r.r(33),r.r(19),r.r(21),r.r(9)),s=r.r(20);r.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}})}})}},r[48]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19),r.r(21),r.r(9)),a=r.r(20),s=r.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})}})}})}},r[49]={value:function(t,e,n){var i=r.r(17),o=r.r(15),a=r.r(20);r.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)}}}})}},r[50]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19),r.r(21),r.r(9)),a=r.r(20),s=r.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)}}})}}})}},r[51]={value:function(t,e,n){var i=(r.r(17),r.r(33),r.r(15),r.r(19),r.r(21),r.r(9),r.r(20));r.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())})}}}})}},r[52]={value:function(t,e,n){var i=r.r(17),o=r.r(9),a=r.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"}})}},r[53]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19),r.r(21)),a=r.r(9),s=r.r(20),c=(r.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"}}})}},r[54]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19),r.r(21),r.r(9)),a=r.r(20),s=r.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}}})}},r[55]={value:function(t,e,n){var i=r.r(17),o=r.r(33),a=(r.r(19),r.r(21),r.r(9),r.r(20)),s=r.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]}}})}},r[56]={value:function(t,e,n){var i=r.r(17),o=r.r(33),a=(r.r(19),r.r(21),r.r(9)),s=r.r(20),c=r.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})}})}}})}},r[57]={value:function(t,e,n){var i=r.r(17),o=r.r(33),a=(r.r(19),r.r(21),r.r(9)),s=r.r(20),c=r.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)}})}}})}},r[58]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19)),a=(r.r(21),r.r(9)),s=r.r(20),c=r.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})}}})}}})}},r[59]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19),r.r(21),r.r(9),r.r(20));r.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()}}}}})}},r[60]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19),r.r(21),r.r(9)),a=r.r(20);r.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}})}}})}},r[61]={value:function(t,e,n){var i=r.r(17),o=r.r(33),a=(r.r(19),r.r(21)),s=r.r(9),c=r.r(20),u=r.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}}),n.exports=h}},r[62]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19),r.r(21),r.r(9)),a=r.r(20),s=(r.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)}}}}})}},r[63]={value:function(t,e,n){var i=r.r(17),o=(r.r(33),r.r(19)),a=(r.r(21),r.r(9)),s=r.r(20);r.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+-"}}})}},r[64]={value:function(t,e,n){r.r(12).registerProtocol("json",n.exports={fileDescription:"KityMinder 格式",fileExtension:".km",dataType:"text",mineType:"application/json",encode:function(t){return JSON.stringify(t)},decode:function(t){return JSON.parse(t)}})}},r[65]={value:function(t,e,n){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";r.r(12).registerProtocol("markdown",n.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)}})}},r[66]={value:function(t,e,n){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=r.r(17),a=r.r(12),s=r.r(25),c=window.URL||window.webkitURL||window;a.registerProtocol("png",n.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+_,r+_,i,o):t.drawImage(e,n+_,r+_)}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:A}).then(function(t){return a(d,t.element,w,x,t.width,t.height),l(S)}).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(A),document.body.appendChild(f);var n=u(f);return document.body.removeChild(f),n},function(t){alert("脑图的节点中包含跨域图片,导出的 png 中节点图片不显示,你可以替换掉这些跨域的图片并重试。"),c.revokeObjectURL(A),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,A=v.dataUrl,S=v.imagesInfo,_=20;return f.width=b+2*_,f.height=y+2*_,g?i({url:g[1]}).then(function(t){return r(d,d.createPattern(t.element,"repeat")),h()}):(r(d,m.toString()),h())}})}},r[67]={value:function(t,e,n){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"}r.r(12).registerProtocol("svg",n.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," ")}})}},r[68]={value:function(t,e,n){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=r.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})+/}}(r.r(17).Browser);c.registerProtocol("text",n.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)}})}},r[69]={value:function(t,e,n){r.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"}})}},r[70]={value:function(t,e,n){r.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"}})}},r[71]={value:function(t,e,n){r.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"}}})}},r[72]={value:function(t,e,n){r.r(31).register("right",{getLayout:function(t){return t.getData("layout")||"right"},getConnect:function(t){return 1==t.getLevel()?"arc":"bezier"}})}},r[73]={value:function(t,e,n){r.r(31).register("structure",{getLayout:function(t){return t.getData("layout")||"bottom"},getConnect:function(t){return"poly"}})}},r[74]={value:function(t,e,n){r.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"}})}},r[75]={value:function(t,e,n){var i=r.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})})}},r[76]={value:function(t,e,n){r.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})}},r[77]={value:function(t,e,n){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=r.r(17),c=r.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))}},r[78]={value:function(t,e,n){var i=r.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})})}},r[79]={value:function(t,e,n){var i=r.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})})}},r[80]={value:function(t,e,n){r.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 i={"expose-kityminder":34};!function(t){r.r([i[t]])}("expose-kityminder")}()}).call(e,n(52),n(31).setImmediate)},329:function(t,e,n){var r=n(330);"string"==typeof r&&(r=[[t.i,r,""]]);var i={transform:void 0};n(50)(r,i);r.locals&&(t.exports=r.locals)},330:function(t,e,n){(t.exports=n(0)(!1)).push([t.i,'.hotbox{font-family:Arial,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif;left:0;top:0}.hotbox,.hotbox .state{position:absolute;overflow:visible}.hotbox .state{display:none}.hotbox .state .center .button,.hotbox .state .ring .button{position:absolute;width:70px;height:70px;margin-left:-35px;margin-top:-35px;border-radius:100%;box-shadow:0 0 30px rgba(0,0,0,.3)}.hotbox .state .center .key,.hotbox .state .center .label,.hotbox .state .ring .key,.hotbox .state .ring .label{display:block;text-align:center;line-height:1.4em;vertical-align:middle}.hotbox .state .center .label,.hotbox .state .ring .label{font-size:16px;margin-top:17px;color:#000;font-weight:400;line-height:1em}.hotbox .state .center .key,.hotbox .state .ring .key{font-size:12px;color:#999}.hotbox .state .ring-shape{position:absolute;left:-25px;top:-25px;border:25px solid rgba(0,0,0,.3);border-radius:100%;box-sizing:content-box}.hotbox .state .bottom,.hotbox .state .top{position:absolute;white-space:nowrap}.hotbox .state .bottom .button,.hotbox .state .top .button{display:inline-block;padding:8px 15px;margin:0 10px;border-radius:15px;box-shadow:0 0 30px rgba(0,0,0,.3);position:relative}.hotbox .state .bottom .button .label,.hotbox .state .top .button .label{font-size:14px;line-height:14px;vertical-align:middle;color:#000;line-height:1em}.hotbox .state .bottom .button .key,.hotbox .state .top .button .key{font-size:12px;line-height:12px;vertical-align:middle;color:#999;margin-left:3px}.hotbox .state .bottom .button .key:before,.hotbox .state .top .button .key:before{content:"("}.hotbox .state .bottom .button .key:after,.hotbox .state .top .button .key:after{content:")"}.hotbox .state .button{background:#f9f9f9;overflow:hidden;cursor:default}.hotbox .state .button .key,.hotbox .state .button .label{opacity:.3}.hotbox .state .button.enabled{background:#fff}.hotbox .state .button.enabled .key,.hotbox .state .button.enabled .label{opacity:1}.hotbox .state .button.enabled:hover{background:#e87372}.hotbox .state .button.enabled:hover .label{color:#fff}.hotbox .state .button.enabled:hover .key{color:#fadfdf}.hotbox .state .button.enabled.selected{-webkit-animation:selected .1s ease;background:#e45d5c}.hotbox .state .button.enabled.selected .label{color:#fff}.hotbox .state .button.enabled.selected .key{color:#fadfdf}.hotbox .state .button.enabled.pressed,.hotbox .state .button.enabled:active{background:#ff974d}.hotbox .state .button.enabled.pressed .label,.hotbox .state .button.enabled:active .label{color:#fff}.hotbox .state .button.enabled.pressed .key,.hotbox .state .button.enabled:active .key{color:#fff0e6}.hotbox .state.active{display:block}@-webkit-keyframes selected{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}.hotbox-key-receiver{position:absolute;left:-999999px;top:-999999px;width:20px;height:20px;outline:none;margin:0}',""])},331:function(t,e,n){var r=n(2)(n(334),n(364),!1,function(t){n(332)},"data-v-0c5f09d7",null);t.exports=r.exports},332:function(t,e,n){var r=n(333);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(1)("39b7b834",r,!0,{})},333:function(t,e,n){(t.exports=n(0)(!1)).push([t.i,".basebtn[data-v-0c5f09d7]{color:#fff;background-color:#409eff;display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;border:1px solid #dcdfe6;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;margin:0;-webkit-transition:.1s;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:8px 12px;font-size:14px;border-radius:4px}.baseSelect[data-v-0c5f09d7]{height:32px}.baseSelect option[data-v-0c5f09d7]{min-height:1.5em}.quickbar[data-v-0c5f09d7]{position:fixed;left:20px;bottom:20px;height:34px;border-radius:3px;-webkit-box-shadow:3px 3px 10px rgba(0,0,0,.2);box-shadow:3px 3px 10px rgba(0,0,0,.2);background-color:#fff;color:#666;z-index:10;display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 6px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.quickbar i[data-v-0c5f09d7]{font-size:22px;width:34px;height:34px;line-height:34px;display:block;text-align:center;-webkit-transform:scale(1);transform:scale(1);cursor:pointer;padding:0;color:#666}.quickbar i[data-v-0c5f09d7]:hover{color:#232323}.quickbar i.active[data-v-0c5f09d7]{color:#0285d7}.quickbar .quickul li[data-v-0c5f09d7]{cursor:pointer;padding:8px 0}.quickbar .quickul li[data-v-0c5f09d7]:hover{color:#0285d7}.quickbar .quickul.mold span[data-v-0c5f09d7]{display:block;width:30px;background:url(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) no-repeat;background-size:300px 24px;height:30px}.quickbar .quickul.mold span.default[data-v-0c5f09d7]{background-position:0 3px}.quickbar .quickul.mold span.structure[data-v-0c5f09d7]{background-position:-30px 3px}.quickbar .quickul.mold span.filetree[data-v-0c5f09d7]{background-position:-60px 3px}.quickbar .quickul.mold span.right[data-v-0c5f09d7]{background-position:-90px 3px}.quickbar .quickul.mold span.fish-bone[data-v-0c5f09d7]{background-position:-120px 3px}.quickbar .quickul.mold span.tianpan[data-v-0c5f09d7]{background-position:-150px 3px}",""])},334:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=["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 i(t){for(var e="",n=0;n<t;n++){var i=Math.ceil(35*Math.random());e+=r[i]}return e}n(335);var o=n(290),a=n.n(o),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"mind-editor",props:{value:{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},saveShow:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},id:{type:String,default:"minder-component-"+i(12)}},data:function(){return{minder:null,isHand:!1,bakValue:""}},methods:{execCommand:function(t,e){var n=this;!0===this.readOnly?(this.minder.enable(),this.$nextTick(function(){n.minder.execCommand(t,e),n.$nextTick(function(){n.minder.disable(),n.isHand&&n.minder.execCommand("Hand")})})):this.minder.execCommand(t,e)},exportHandle:function(t,e){e=e||this.value.root.data.text||this.$L("无标题"),0===t||"png"===t?this.minder.exportData("png").then(function(t){var n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}):1!==t&&"pdf"!==t||this.minder.exportData("png").then(function(t){var n=new a.a;n.addImage(t,"PNG",0,0,0,0),n.save(e+".pdf")})},rendData:function(){var t=this;this.$nextTick(function(){setTimeout(function(){if(null!==t.minder){if(t.bakValue==JSON.stringify(t.value))return;return t.bakValue=JSON.stringify(t.value),void t.minder.importJson(t.value)}window.__minderReadOnly=t.readOnly;var e=n(340);t.minder=window.editor=new e(document.getElementById(t.id)).minder,t.bakValue=JSON.stringify(t.value),t.minder.importJson(t.value),!0===t.readOnly&&(t.minder.disable(),t.minder.execCommand("Hand"),t.isHand=!0),t.$emit("minderHandle",t.minder),t.minder.on("contentchange",function(e){var n=t.minder.exportJson();t.bakValue!=JSON.stringify(n)&&(t.bakValue=JSON.stringify(n),t.$emit("input",n))})},300)})}},watch:{value:{handler:function(t){"object"===(void 0===t?"undefined":s(t))&&null!==t||(t={root:t,theme:"fresh-blue",template:"default"}),"object"===s(t.root)&&null!==t.root&&0!=t.root.length||(t.root={data:{id:i(12),text:this.$L("默认节点")},children:[]}),"string"!=typeof t.theme&&(t.theme="fresh-blue"),"string"!=typeof t.template&&(t.template="default"),this.rendData()},deep:!0,immediate:!0}}}},335:function(t,e,n){var r=n(336);"string"==typeof r&&(r=[[t.i,r,""]]);var i={transform:void 0};n(50)(r,i);r.locals&&(t.exports=r.locals)},336:function(t,e,n){var r=n(270);(t.exports=n(0)(!1)).push([t.i,".km-editor{overflow:hidden;z-index:2;height:100%;width:100%}.km-editor>.mask{display:block;position:absolute;left:0;right:0;top:0;bottom:0;background-color:transparent}.km-editor>.receiver{position:absolute;background:#fff;outline:0;box-shadow:0 0 20px rgba(0,0,0,.5);left:0;top:0;padding:3px 5px;margin-left:-3px;margin-top:-5px;max-width:300px;width:auto;font-size:14px;line-height:1.4em;min-height:1.4em;box-sizing:border-box;overflow:hidden;word-break:break-all;word-wrap:break-word;border:none;-webkit-user-select:text;pointer-events:none;opacity:0;z-index:-1000}.km-editor>.receiver.debug{opacity:1;outline:1px solid green;background:0 0;z-index:0}.km-editor>.receiver.input{pointer-events:all;opacity:1;z-index:999;background:#fff;outline:0}div.minder-editor-container{font-family:Arial,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif}.minder-editor,.minder-viewer,div.minder-editor-container{position:absolute;bottom:0;left:0;right:0;top:0}.control-panel{right:0;width:250px;border-left:1px solid #ccc}.control-panel,.minder-divider{position:absolute;top:0;bottom:0}.minder-divider{right:250px;width:2px;background-color:#fbfbfb;cursor:ew-resize}.upload-image{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.top-tab .nav-tabs{background-color:#e1e1e1;border:0;height:32px}.top-tab .nav-tabs li{margin:0}.top-tab .nav-tabs li a{margin:0;border:0;padding:6px 15px;border-radius:0;vertical-align:middle}.top-tab .nav-tabs li a:focus,.top-tab .nav-tabs li a:hover{background:inherit;border:0}.top-tab .nav-tabs li.active a{border:0;background-color:#fff}.top-tab .nav-tabs li.active a:focus,.top-tab .nav-tabs li.active a:hover{border:0}.top-tab .tab-content{height:60px;background-color:#fff;border-bottom:1px solid #dbdbdb}.top-tab .tab-pane{font-size:0}.km-btn-group{display:inline-block;margin:5px 0;padding:0 5px;vertical-align:middle;border-right:1px dashed #eee}.km-btn-item{display:inline-block;margin:0 3px;font-size:0;cursor:default}.km-btn-item[disabled]{opacity:.5}.km-btn-item[disabled]:active,.km-btn-item[disabled]:hover{background-color:#fff}.km-btn-item .km-btn-icon{display:inline-block;background:url("+r(n(273))+") no-repeat;background-position:0 20px;width:20px;height:20px;padding:2px;margin:1px;vertical-align:middle}.km-btn-item .km-btn-caption{display:inline-block;font-size:12px;vertical-align:middle}.km-btn-item:hover{background-color:#eff3fa}.km-btn-item:active{background-color:#c4d0ee}.do-group{width:38px}.undo .km-btn-icon{background-position:0 -1240px}.redo .km-btn-icon{background-position:0 -1220px}.append-group{width:212px}.append-child-node .km-btn-icon{background-position:0 0}.append-sibling-node .km-btn-icon{background-position:0 -20px}.append-parent-node .km-btn-icon{background-position:0 -40px}.arrange-group{width:64px}.arrange-up .km-btn-icon{background-position:0 -280px}.arrange-down .km-btn-icon{background-position:0 -300px}.operation-group{width:64px}.edit-node .km-btn-icon{background-position:0 -60px}.remove-node .km-btn-icon{background-position:0 -80px}.btn-group-vertical .hyperlink,.btn-group-vertical .hyperlink-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .hyperlink-caption:hover,.btn-group-vertical .hyperlink:hover{background-color:#eff3fa}.btn-group-vertical .hyperlink-caption:active,.btn-group-vertical .hyperlink:active{background-color:#c4d0ee}.btn-group-vertical .hyperlink-caption.active,.btn-group-vertical .hyperlink.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .hyperlink{height:25px;background:url("+r(n(273))+") no-repeat center -100px}.btn-group-vertical .hyperlink-caption{height:20px}.btn-group-vertical .hyperlink-caption .caption{font-size:12px}.btn-group-vertical .image-btn,.btn-group-vertical .image-btn-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .image-btn-caption:hover,.btn-group-vertical .image-btn:hover{background-color:#eff3fa}.btn-group-vertical .image-btn-caption:active,.btn-group-vertical .image-btn:active{background-color:#c4d0ee}.btn-group-vertical .image-btn-caption.active,.btn-group-vertical .image-btn.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .image-btn{height:25px;background:url("+r(n(273))+") no-repeat center -125px}.btn-group-vertical .image-btn-caption{height:20px}.btn-group-vertical .image-btn-caption .caption{font-size:12px}.image-preview{display:block;max-width:50%}.modal-body .tab-pane{font-size:inherit;padding-top:15px}.search-result{margin-top:15px;height:370px;overflow:hidden}.search-result ul{margin:0;padding:0;list-style:none;clear:both;height:100%;overflow-x:hidden;overflow-y:auto}.search-result ul li{list-style:none;float:left;display:block;width:130px;height:130px;line-height:130px;margin:6px;padding:0;font-size:12px;position:relative;vertical-align:top;text-align:center;overflow:hidden;cursor:pointer;border:2px solid #fcfcfc}.search-result ul li.selected{border:2px solid #fc8383}.search-result ul li img{max-width:126px;max-height:130px;vertical-align:middle}.search-result ul li span{display:block;position:absolute;bottom:0;height:20px;background:rgba(0,0,0,.5);left:0;right:0;color:#fff;line-height:20px;overflow:hidden;text-overflow:ellipsis;word-break:break-all;white-space:nowrap;opacity:0;-ms-transform:translateY(20px);transform:translateY(20px);transition:all .2s ease}.search-result ul li:hover span{opacity:1;-ms-transform:translate(0);transform:translate(0)}@media (min-width:768px){.form-inline .form-control{width:422px}}.btn-group-vertical{vertical-align:top}.btn-group-vertical.note-btn-group{border-right:1px dashed #eee;padding-right:5px}.btn-group-vertical .note-btn,.btn-group-vertical .note-btn-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .note-btn-caption:hover,.btn-group-vertical .note-btn:hover{background-color:#eff3fa}.btn-group-vertical .note-btn-caption:active,.btn-group-vertical .note-btn:active{background-color:#c4d0ee}.btn-group-vertical .note-btn-caption.active,.btn-group-vertical .note-btn.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .note-btn{height:25px;background:url("+r(n(273))+") no-repeat center -1150px}.btn-group-vertical .note-btn-caption{height:20px}.btn-group-vertical .note-btn-caption .caption{font-size:12px}.open>.dropdown-toggle.btn-default{background-color:#eff3fa}.gfm-render{font-size:12px;-webkit-user-select:text;color:#333;line-height:1.8em}.gfm-render blockquote,.gfm-render hr,.gfm-render p,.gfm-render pre,.gfm-render table,.gfm-render ul{margin:1em 0;cursor:text}.gfm-render blockquote:first-child:last-child,.gfm-render hr:first-child:last-child,.gfm-render p:first-child:last-child,.gfm-render pre:first-child:last-child,.gfm-render table:first-child:last-child,.gfm-render ul:first-child:last-child{margin:0}.gfm-render img{max-width:100%}.gfm-render a{color:#00f}.gfm-render a:hover{color:red}.gfm-render blockquote{display:block;border-left:4px solid #e4ad91;color:#da8e68;padding-left:10px;font-style:italic;margin-left:2em}.gfm-render ol,.gfm-render ul{padding-left:3em}.gfm-render table{width:100%;border-collapse:collapse;margin:1em 0}.gfm-render table td,.gfm-render table th{border:1px solid #666;padding:2px 4px}.gfm-render table th{background:rgba(45,141,234,.2)}.gfm-render table tr:nth-child(2n) td{background:rgba(45,141,234,.03)}.gfm-render em{color:red}.gfm-render del{color:#999}.gfm-render pre{background:rgba(45,141,234,.1);padding:5px;border-radius:5px;word-break:break-all;word-wrap:break-word}.gfm-render code{background:rgba(45,141,234,.1);padding:0 5px;border-radius:3px}.gfm-render pre code{background:0 0}.gfm-render hr{border:none;border-top:1px solid #ccc}.gfm-render .highlight{background:#ff0;color:red}.km-note{width:300px;border-left:1px solid #babfcd;padding:5px 10px;background:#fff;position:absolute;top:92px;right:0;bottom:0;left:auto;z-index:3}.km-note.panel{margin:0;padding:0}.km-note.panel .panel-heading h3{display:inline-block}.km-note.panel .panel-heading .close-note-editor{width:15px;height:15px;display:inline-block;float:right}.km-note.panel .panel-heading .close-note-editor:hover{cursor:pointer}.km-note.panel .panel-body{padding:0}.km-note .CodeMirror{position:absolute;top:41px;bottom:0;height:auto;cursor:text;font-size:14px;line-height:1.3em;font-family:consolas}.km-note-tips{color:#ccc;padding:3px 8px}#previewer-content{position:absolute;background:#ffd;padding:5px 15px;border-radius:5px;max-width:400px;max-height:200px;overflow:auto;z-index:10;box-shadow:0 0 15px rgba(0,0,0,.5);word-break:break-all;font-size:12px;-webkit-user-select:text;color:#333;line-height:1.8em}#previewer-content blockquote,#previewer-content hr,#previewer-content p,#previewer-content pre,#previewer-content table,#previewer-content ul{margin:1em 0;cursor:text}#previewer-content blockquote:first-child:last-child,#previewer-content hr:first-child:last-child,#previewer-content p:first-child:last-child,#previewer-content pre:first-child:last-child,#previewer-content table:first-child:last-child,#previewer-content ul:first-child:last-child{margin:0}#previewer-content img{max-width:100%}#previewer-content a{color:#00f}#previewer-content a:hover{color:red}#previewer-content blockquote{display:block;border-left:4px solid #e4ad91;color:#da8e68;padding-left:10px;font-style:italic;margin-left:2em}#previewer-content ol,#previewer-content ul{padding-left:3em}#previewer-content table{width:100%;border-collapse:collapse;margin:1em 0}#previewer-content table td,#previewer-content table th{border:1px solid #666;padding:2px 4px}#previewer-content table th{background:rgba(45,141,234,.2)}#previewer-content table tr:nth-child(2n) td{background:rgba(45,141,234,.03)}#previewer-content em{color:red}#previewer-content del{color:#999}#previewer-content pre{background:rgba(45,141,234,.1);padding:5px;border-radius:5px;word-break:break-all;word-wrap:break-word}#previewer-content code{background:rgba(45,141,234,.1);padding:0 5px;border-radius:3px}#previewer-content pre code{background:0 0}#previewer-content hr{border:none;border-top:1px solid #ccc}#previewer-content .highlight{background:#ff0;color:red}#previewer-content.ng-hide{display:block!important;left:-99999px!important;top:-99999px!important}.panel-body{padding:10px}.tab-content .km-priority{vertical-align:middle;font-size:inherit;display:inline-block;width:140px;margin:5px;border-right:1px dashed #eee}.tab-content .km-priority .km-priority-item{margin:0 1px;padding:1px}.tab-content .km-priority .km-priority-item .km-priority-icon{background:url("+r(n(337))+") repeat-y;background-color:transparent}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-0{background-position:0 20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-1{background-position:0 0}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-2{background-position:0 -20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-3{background-position:0 -40px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-4{background-position:0 -60px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-5{background-position:0 -80px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-6{background-position:0 -100px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-7{background-position:0 -120px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-8{background-position:0 -140px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-9{background-position:0 -160px}.tab-content .km-progress{vertical-align:middle;font-size:inherit;display:inline-block;width:140px;margin:5px;border-right:1px dashed #eee}.tab-content .km-progress .km-progress-item{margin:0 1px;padding:1px}.tab-content .km-progress .km-progress-item .km-progress-icon{background:url("+r(n(338))+") repeat-y;background-color:transparent}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-0{background-position:0 20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-1{background-position:0 0}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-2{background-position:0 -20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-3{background-position:0 -40px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-4{background-position:0 -60px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-5{background-position:0 -80px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-6{background-position:0 -100px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-7{background-position:0 -120px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-8{background-position:0 -140px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-9{background-position:0 -160px}.resource-editor{vertical-align:middle;display:inline-block;margin:5px}.resource-editor .input-group,.resource-editor .km-resource{font-size:12px}.resource-editor .input-group{height:20px;width:168px}.resource-editor .resource-dropdown{position:relative;width:168px;border:1px solid #ccc;margin-top:-1px;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.resource-editor .resource-dropdown .km-resource{position:absolute;width:154px;margin-bottom:3px;padding:0;list-style-type:none;overflow:scroll;max-height:500px}.resource-editor .resource-dropdown .km-resource.open{z-index:3;background-color:#fff}.resource-editor .resource-dropdown .km-resource li{display:inline-block;padding:1px 2px;border-radius:4px;margin:2px 3px}.resource-editor .resource-dropdown .km-resource li[disabled]{opacity:.5}.resource-editor .resource-dropdown .resource-caret{display:block;float:right;vertical-align:middle;width:12px;height:24px;padding:8px 1px}.resource-editor .resource-dropdown .resource-caret:hover{background-color:#eff3fa}.resource-editor .resource-dropdown .resource-caret:active{background-color:#c4d0ee}.resource-editor .btn,.resource-editor input.form-control{font-size:12px}.resource-editor input.form-control{padding:2px 4px;height:24px;border-bottom-left-radius:0}.resource-editor .input-group-btn{line-height:24px}.resource-editor .input-group-btn .btn{padding:2px 4px;height:24px;border-bottom-right-radius:0}.temp-panel{margin:5px 5px 5px 10px;border-right:1px dashed #eee;display:inline-block;vertical-align:middle}.temp-list{min-width:124px}.temp-item-wrap{padding:0 2px;margin:5px}.temp-item,.temp-item-wrap{width:50px;height:40px;display:inline-block}.temp-item{background-image:url("+r(n(339))+");background-repeat:no-repeat}.temp-item.default{background-position:0 0}.temp-item.structure{background-position:-50px 0}.temp-item.filetree{background-position:-100px 0}.temp-item.right{background-position:-150px 0}.temp-item.fish-bone{background-position:-200px 0}.temp-item.tianpan{background-position:-250px 0}.current-temp-item{width:74px;padding:0 0 0 5px;border:1px solid #fff}.current-temp-item:hover{background-color:#eff3fa}.current-temp-item[disabled]{opacity:.5}.current-temp-item .caret{margin-left:5px}.temp-item-selected{background-color:#87a9da}.theme-panel{height:42px;margin:5px;padding:0 5px 0 0;border-right:1px dashed #eee;display:inline-block;vertical-align:middle}.theme-list{min-width:162px}div a.theme-item{display:inline-block;width:70px;height:30px;text-align:center;line-height:30px;padding:0 5px;font-size:12px;cursor:pointer;text-decoration:none;color:#000}.theme-item-selected{width:100px;padding:6px 7px;border:1px solid #fff}.theme-item-selected:hover{background-color:#eff3fa}.theme-item-selected .caret{margin-left:5px}.theme-item-selected[disabled]{opacity:.5}.theme-item-wrap{display:inline-block;width:80px;height:40px;padding:5px}.theme-item-wrap:hover{background-color:#eff3fa}.readjust-layout{display:inline-block;vertical-align:middle;padding:0 10px 0 5px;border-right:1px dashed #eee}.btn-icon{width:25px;height:25px;margin-left:12px;display:block}.btn-label{font-size:12px}.btn-wrap{width:50px;height:42px;cursor:pointer;display:inline-block;text-decoration:none}.btn-wrap[disabled] span{opacity:.5}.btn-wrap[disabled]{cursor:default}.btn-wrap[disabled]:active,.btn-wrap[disabled]:hover{background-color:transparent}.btn-wrap:hover,.btn-wrap:link,.btn-wrap:visited{text-decoration:none}.btn-wrap:hover{background-color:#eff3fa}.btn-wrap:active{background-color:#c4d0ee}.reset-layout-icon{background:url("+r(n(273))+") no-repeat;background-position:0 -150px}.style-operator{display:inline-block;padding:0 5px;border-right:1px dashed #eee}.style-operator,.style-operator .clear-style{vertical-align:middle}.clear-style-icon{background:url("+r(n(273))+") no-repeat;background-position:0 -175px}.s-btn-group-vertical,.s-btn-icon{display:inline-block;vertical-align:middle}.s-btn-icon{width:20px;height:20px;margin-right:3px}.s-btn-label{font-size:12px;vertical-align:middle;display:inline-block}.s-btn-wrap{padding:0 5px 0 3px;display:inline-block;text-decoration:none;font-size:0}.s-btn-wrap[disabled] span{opacity:.5}.s-btn-wrap[disabled]{cursor:default}.s-btn-wrap[disabled]:active,.s-btn-wrap[disabled]:hover{background-color:transparent}.s-btn-wrap:hover{background-color:#eff3fa;text-decoration:none}.s-btn-wrap:active{background-color:#c4d0ee}.copy-style-icon{background:url("+r(n(273))+") no-repeat;background-position:0 -200px}.paste-style-wrap{display:block}.paste-style-icon{background-position:0 -220px}.font-operator{width:170px;display:inline-block;vertical-align:middle;font-size:12px;padding:0 5px}.font-operator .font-family-list,.font-operator .font-size-list{display:inline-block;border:1px solid #eee;padding:2px 4px}.current-font-item a{text-decoration:none;display:inline-block}.current-font-family{width:75px}.current-font-family,.current-font-size{height:18px;overflow:hidden;vertical-align:bottom}.current-font-size{width:32px}.current-font-item[disabled]{opacity:.5}.font-item{line-height:1em;text-align:left}.font-item-selected{background-color:#87a9da}.font-bold,.font-italics{display:inline-block;background:url("+r(n(273))+") no-repeat;cursor:pointer;margin:0 3px}.font-bold:hover,.font-italics:hover{background-color:#eff3fa}.font-bold:active,.font-italics:active{background-color:#c4d0ee}.font-bold[disabled],.font-italics[disabled]{opacity:.5}.font-bold{background-position:0 -240px}.font-italics{background-position:0 -260px}.font-bold-selected,.font-italics-selected{background-color:#87a9da}.font-color-wrap{display:inline-block;width:30px;height:22px;margin:3px 3px 0 0;border:1px solid #efefef;vertical-align:middle;font-size:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.font-color-wrap[disabled]{opacity:.5}.font-color-wrap .quick-font-color{display:inline-block;width:20px;height:16px;font-size:14px;line-height:16px;vertical-align:top;text-align:center;cursor:default;color:#000}.font-color-wrap .quick-font-color:hover{background-color:#eff3fa}.font-color-wrap .quick-font-color:active{background-color:#c4d0ee}.font-color-wrap .quick-font-color[disabled]{opacity:.5}.font-color-wrap .font-color-preview{display:inline-block;width:12px;height:2px;margin:0 4px;background-color:#000}.font-color-wrap .font-color-preview[disabled]{opacity:.5}.font-color{display:inline-block;width:8px;height:16px}.font-color:hover{background-color:#eff3fa}.font-color:active{background-color:#c4d0ee}.font-color[disabled]{opacity:.5}.font-color .caret{margin-left:-2px;margin-top:7px}.bg-color-wrap{display:inline-block;width:30px;height:22px;margin:3px 3px 0 0;border:1px solid #efefef;vertical-align:middle;font-size:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bg-color-wrap[disabled]{opacity:.5}.bg-color-wrap .quick-bg-color{display:inline-block;width:20px;height:16px;font-size:14px;line-height:16px;vertical-align:top;text-align:center;cursor:default;color:#000;background:url("+r(n(273))+") no-repeat center -1260px}.bg-color-wrap .quick-bg-color:hover{background-color:#eff3fa}.bg-color-wrap .quick-bg-color:active{background-color:#c4d0ee}.bg-color-wrap .quick-bg-color[disabled]{opacity:.5}.bg-color-wrap .bg-color-preview{display:inline-block;width:12px;height:2px;margin:0 4px;background-color:#fff}.bg-color-wrap .bg-color-preview[disabled]{opacity:.5}.bg-color{display:inline-block;width:8px;height:16px}.bg-color:hover{background-color:#eff3fa}.bg-color:active{background-color:#c4d0ee}.bg-color[disabled]{opacity:.5}.bg-color .caret{margin-left:-2px;margin-top:7px}.btn-group-vertical .expand,.btn-group-vertical .expand-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .expand-caption:hover,.btn-group-vertical .expand:hover{background-color:#eff3fa}.btn-group-vertical .expand-caption:active,.btn-group-vertical .expand:active{background-color:#c4d0ee}.btn-group-vertical .expand-caption.active,.btn-group-vertical .expand.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .expand{height:25px;background:url("+r(n(273))+") no-repeat 0 -995px;background-position-x:50%}.btn-group-vertical .expand-caption{height:20px}.btn-group-vertical .expand-caption .caption{font-size:12px}.btn-group-vertical .select,.btn-group-vertical .select-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .select-caption:hover,.btn-group-vertical .select:hover{background-color:#eff3fa}.btn-group-vertical .select-caption:active,.btn-group-vertical .select:active{background-color:#c4d0ee}.btn-group-vertical .select-caption.active,.btn-group-vertical .select.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .select{height:25px;background:url("+r(n(273))+") no-repeat 7px -1175px}.btn-group-vertical .select-caption{height:20px}.btn-group-vertical .select-caption .caption{font-size:12px}.btn-group-vertical{vertical-align:middle;margin:5px}.btn-group-vertical .search,.btn-group-vertical .search-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .search-caption:hover,.btn-group-vertical .search:hover{background-color:#eff3fa}.btn-group-vertical .search-caption:active,.btn-group-vertical .search:active{background-color:#c4d0ee}.btn-group-vertical .search-caption.active,.btn-group-vertical .search.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .search{height:25px;background:url("+r(n(273))+') no-repeat 0 -345px;background-position-x:50%}.btn-group-vertical .search-caption{height:20px}.btn-group-vertical .search-caption .caption{font-size:12px}.search-box{float:right;background-color:#fff;border:1px solid #dbdbdb;position:relative;top:0;z-index:3;width:330px;height:40px;padding:3px 6px;opacity:1}.search-box .prev-and-next-btn,.search-box .search-input-wrap{float:left}.search-box .close-search{float:right;height:16px;width:16px;padding:1px;border-radius:100%;margin-top:6px;margin-right:10px}.search-box .close-search .glyphicon{top:-1px}.search-box .close-search:hover{background-color:#efefef}.search-box .close-search:active{background-color:#999}.search-box .search-input-wrap{width:240px}.search-box .prev-and-next-btn{margin-left:5px}.search-box .prev-and-next-btn .btn:focus{outline:0}.search-box .search-addon{background-color:#fff}.tool-group{padding:0}.tool-group[disabled]{opacity:.5}.tool-group .tool-group-item{display:inline-block;border-radius:4px}.tool-group .tool-group-item .tool-group-icon{width:20px;height:20px;padding:2px;margin:1px}.tool-group .tool-group-item:hover{background-color:#eff3fa}.tool-group .tool-group-item.active,.tool-group .tool-group-item:active{background-color:#c4d0ee}.nav-bar{position:absolute;width:240px;padding:5px 0;-ms-flex-pack:space-evenly;justify-content:space-evenly;left:10px;bottom:10px;background:#dc8686;color:#fff;border-radius:4px;z-index:10;box-shadow:3px 3px 10px rgba(0,0,0,.2);transition:transform .7s ease .1s}.nav-bar,.nav-bar .nav-btn{height:35px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.nav-bar .nav-btn{width:35px;line-height:35px;text-align:center;-ms-flex-pack:center;justify-content:center}.nav-bar .nav-btn.active .icon,.nav-bar .nav-btn:hover .icon{fill:#5c94f3}.nav-bar .zoom-in .icon{background-position:0 -730px}.nav-bar .zoom-out .icon{background-position:0 -750px}.nav-bar .hand .icon{background-position:0 -770px;width:25px;height:25px;margin:0 auto}.nav-bar .nav-trigger .icon{background-position:0 -845px;width:25px;height:25px;margin:0 auto}.nav-bar .zoom-pan{width:2px;height:70px;box-shadow:0 1px #e50000;position:relative;background:#fff;margin:3px auto;overflow:visible}.nav-bar .zoom-pan .origin{position:absolute;width:20px;height:8px;left:-9px;margin-top:-4px;background:0 0}.nav-bar .zoom-pan .origin:after{content:" ";display:block;width:6px;height:2px;background:#fff;left:7px;top:3px;position:absolute}.nav-bar .zoom-pan .indicator{position:absolute;width:8px;height:8px;left:-3px;background:#fff;border-radius:100%;margin-top:-4px}.nav-previewer{background:#fff;width:140px;height:120px;position:absolute;left:45px;bottom:30px;box-shadow:0 0 8px rgba(0,0,0,.2);border-radius:0 2px 2px 0;padding:1px;z-index:9;cursor:crosshair;transition:transform .7s ease .1s}.nav-previewer.grab{cursor:move;cursor:grabbing}',""])},337:function(t,e){t.exports="/images/vendor/vue-kityminder-gg/examples/styles/iconpriority.png?96108cae"},338:function(t,e){t.exports="/images/vendor/vue-kityminder-gg/examples/styles/iconprogress.png?be9eedcb"},339:function(t,e){t.exports="/images/vendor/vue-kityminder-gg/examples/styles/template.png?5ba8db04"},340: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(341)),o(n(342)),o(n(344)),o(n(346)),o(n(349)),o(n(353)),o(n(355)),o(n(356)),o(n(357)),!0!==window.__minderReadOnly&&(o(n(358)),o(n(359)),o(n(361)),o(n(362)),o(n(363))),r.exports=a}.call(e,n,e,t))||(t.exports=r)},341: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))throw new Error("Invalid selector: "+this.selector);t.classList.add("km-editor"),this.container=t}}.call(e,n,e,t))||(t.exports=r)},342:function(t,e,n){var r;void 0===(r=function(t,e,r){var i=new(n(279))("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)},343:function(t,e,n){var r;void 0===(r=function(t,e,n){return n.exports=function(t,e){return"object"!=typeof e&&(e=[].slice.call(arguments,1)),String(t).replace(/\{(\w+)\}/gi,function(t,n){return e[n]||n})}}.call(e,n,e,t))||(t.exports=r)},344:function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(345);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)},345: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)},346:function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(347);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)},347:function(t,e,n){var r;void 0===(r=function(t,e){var r=n(348),i=4096,o=8192,a=16384;function s(t){return"string"==typeof t?function(t){var e=0;return 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}(t):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)}e.hash=s,e.is=function(t,e){return t&&e&&s(t)==s(e)}}.call(e,n,e,t))||(t.exports=r)},348: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)},349:function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(280);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)},350:function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(283),o=n(352);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,A=!1,S=!0;function _(){return!0}function N(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 k(t){x&&x.$button&&c(x.$button,r),(x=t)&&x.$button&&s(x.$button,r)}function L(t){w&&w.$button&&w.$button&&c(w.$button,n),(w=t)&&w.$button&&s(w.$button,n)}function C(e){e&&(e.enable&&!e.enable()||(e.action&&e.action(e),t.active(e.next||l,t.position)),k(null),L(null))}this.button=function(t){var e=function(t){var e=a(h);s(e,"button");var n=t.render||N;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||_,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),S=!0},this.active=function(e){(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),S&&function(){var t=15*b.ring.length;(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"})(t),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]})}(t),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]})}(t),function(){var t=y.filter(function(t){return t.indexedPosition});t.forEach(function(e){var n,r,i,o,a,s,c={},u=0,l={},h=e.indexedPosition,f=Math.abs;t.forEach(function(t){if(e!=t)for(n=t.indexedPosition,a=[],r=n[0]-h[0],i=n[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]=t,l[s]=u)}),e.neighbor=c})}(),S=!1}(),w||L(b.center||b.ring[0]||b.top[0]||b.bottom[0]),A=!0},this.deactive=function(){c(o,i),L(null),A=!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&&C(t)}),e=e.parentNode},this.handleKeyEvent=function(n){var r=null;if(t.browser.sg&&n.isKey("esc"))return x?n.isKey(x.key)||k(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(A||t.hintDeactiveMainState){if(L(i),k(i),r="buttonpress",n.keyup)return C(i),r="execute"}else C(i),r="execute";n.preventDefault(),n.stopPropagation(),!A&&t.hintDeactiveMainState&&t.active(e,t.position)}}),A){if(n.isKey("esc"))return x?n.isKey(x.key)||k(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&&L(e),r="navigate"}else L(b.center||b.ring[0]||b.top[0]||b.bottom[0])}),n.isKey("space")&&n.keyup?(C(w),n.preventDefault(),n.stopPropagation(),r="execute"):n.isKey("space")&&w?(k(w),r="buttonpress"):x&&x!=w&&(k(null),r="selectcancel")}}else!n.keyup||!A&&t.hintDeactiveMainState||x&&(n.isKey("space")&&w==x||n.isKey(x.key))&&(C(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)},351: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)},352:function(t,e,n){var r;void 0===(r=function(t,e,r){n(283);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)}!function(){(e=document.createElement("input")).classList.add(o),a.appendChild(e),r=!0}(),function(){e.onkeyup=s,e.onkeypress=s,e.onkeydown=s,e.onfocus=c,e.onblur=u,r&&(e.oninput=function(t){e.value=null})}(),function(){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)},353:function(t,e,n){var r;void 0===(r=function(t,e,r){n(354);var i=new(n(279))("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})))}!function(){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()}(),function(){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()})}(),function(){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)},354: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)},355: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)},356: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)},357:function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(280);new(n(279))("drag");return r.exports=function(){var t,e,n=this.fsm,r=this.minder,o=this.hotbox;this.receiver.element,function(){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();t=n.originEvent.clientX,e=n.originEvent.clientY,l=i.top,a=i.width,s=i.height}),r.on("mousemove",function(h){if("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?g("left",20+c-a):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"hotbox"===n.state()&&o.active(i.STATE_IDLE),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)},358: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)},359:function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(360).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=n.pop();a&&(o.applyPatches(a),function(){var e=o.exportJson();r.push(i(e,t)),t=e}()),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)},360:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return Object.keys?Object.keys:function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}}();function i(t){return-1===t.indexOf("/")&&-1===t.indexOf("~")?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function o(t){return"object"==typeof t?JSON.parse(JSON.stringify(t)):t}e.default=function(t,e){var n=[];return function t(e,n,a,s){for(var c=r(n),u=r(e),l=!1,h=u.length-1;h>=0;h--){var f=e[p=u[h]];if(n.hasOwnProperty(p)){var d=n[p];"object"==typeof f&&null!=f&&"object"==typeof d&&null!=d?t(f,d,a,s+"/"+i(p)):f!=d&&a.push({op:"replace",path:s+"/"+i(p),value:o(d)})}else a.push({op:"remove",path:s+"/"+i(p)}),l=!0}if(l||c.length!=u.length)for(h=0;h<c.length;h++){var p=c[h];e.hasOwnProperty(p)||a.push({op:"add",path:s+"/"+i(p),value:o(n[p])})}}(t,e,n,""),n}},361:function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n(280);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)},362: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)},363: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)},364:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"minder-editor-container"},[n("div",{staticClass:"quickbar"},[n("Tooltip",{attrs:{placement:"top",theme:"light"}},[n("i",{staticClass:"ft icon",attrs:{title:t.$L("缩放")}},[t._v("")]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("ul",{staticClass:"quickul"},[n("li",{on:{click:function(e){return t.execCommand("Zoom",200)}}},[t._v("200%")]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("Zoom",150)}}},[t._v("150%")]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("Zoom",100)}}},[t._v("100%")]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("Zoom",50)}}},[t._v("50%")]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("Zoom",25)}}},[t._v("25%")])])])]),t._v(" "),!0!==t.readOnly?n("Tooltip",{attrs:{placement:"top",theme:"light"}},[n("i",{staticClass:"ft icon",attrs:{title:t.$L("图形")}},[t._v("")]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("ul",{staticClass:"quickul mold"},[n("li",{on:{click:function(e){return t.execCommand("template","default")}}},[n("span",{staticClass:"default"})]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("template","structure")}}},[n("span",{staticClass:"structure"})]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("template","filetree")}}},[n("span",{staticClass:"filetree"})]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("template","right")}}},[n("span",{staticClass:"right"})]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("template","fish-bone")}}},[n("span",{staticClass:"fish-bone"})]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("template","tianpan")}}},[n("span",{staticClass:"tianpan"})])])])]):t._e(),t._v(" "),!0!==t.readOnly?n("Tooltip",{attrs:{placement:"top",theme:"light"}},[n("i",{staticClass:"ft icon",attrs:{title:t.$L("样式")}},[t._v("")]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("ul",{staticClass:"quickul"},[n("li",{on:{click:function(e){return t.execCommand("theme","fresh-blue")}}},[t._v(t._s(t.$L("天空蓝")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","wire")}}},[t._v(t._s(t.$L("线框")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","fish")}}},[t._v(t._s(t.$L("鱼骨图")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","classic")}}},[t._v(t._s(t.$L("脑图经典")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","classic-compact")}}},[t._v(t._s(t.$L("紧凑经典")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","snow")}}},[t._v(t._s(t.$L("温柔冷光")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","snow-compact")}}},[t._v(t._s(t.$L("紧凑冷光")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","tianpan")}}},[t._v(t._s(t.$L("经典天盘")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","tianpan-compact")}}},[t._v(t._s(t.$L("紧凑天盘")))])])])]):t._e(),t._v(" "),n("Tooltip",{attrs:{placement:"top",theme:"light"}},[n("i",{staticClass:"ft icon",attrs:{title:t.$L("折叠")}},[t._v("")]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("ul",{staticClass:"quickul"},[n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",1)}}},[t._v(t._s(t.$L("展开到一级节点")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",2)}}},[t._v(t._s(t.$L("展开到二级节点")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",3)}}},[t._v(t._s(t.$L("展开到三级节点")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",4)}}},[t._v(t._s(t.$L("展开到四级节点")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",5)}}},[t._v(t._s(t.$L("展开到五级节点")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",99)}}},[t._v(t._s(t.$L("展开全部节点")))])])])]),t._v(" "),n("Tooltip",{attrs:{placement:"top",content:t.$L("居中")}},[n("div",{on:{click:function(e){t.minder.execCommand("camera",t.minder.getRoot(),600)}}},[n("i",{staticClass:"ft icon"},[t._v("")])])]),t._v(" "),n("Tooltip",{attrs:{placement:"top",content:t.$L("移动")}},[n("div",{on:{click:function(e){t.minder.execCommand("Hand"),t.isHand=!t.isHand}}},[n("i",{staticClass:"ft icon",class:{active:t.isHand}},[t._v("")])])])],1),t._v(" "),n("div",{attrs:{id:t.id}})])},staticRenderFns:[]}},841:function(t,e,n){var r=n(842);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(1)("6d28452a",r,!0,{})},842:function(t,e,n){(t.exports=n(0)(!1)).push([t.i,".view-body .view-body-content .markdown-preview,.view-body .view-body-content .report-content{margin:0!important;padding:0!important}.view-body .view-body-content .minder-editor-container{-webkit-transform:translateZ(0);transform:translateZ(0)}.view-body .view-body-content .body-sheet,.view-body .view-body-content .body-sheet *{-webkit-box-sizing:content-box;box-sizing:content-box}",""])},843:function(t,e,n){var r=n(844);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(1)("3dcbb4e4",r,!0,{})},844:function(t,e,n){(t.exports=n(0)(!1)).push([t.i,".docs-view[data-v-4616a092]{background-color:#fff}.docs-view .view-box[data-v-4616a092]{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;position:absolute;height:100%}.docs-view .view-box .view-head[data-v-4616a092],.docs-view .view-box[data-v-4616a092]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal;width:100%}.docs-view .view-box .view-head[data-v-4616a092]{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:38px;-webkit-box-shadow:0 1px 5px 0 rgba(0,0,0,.1);box-shadow:0 1px 5px 0 rgba(0,0,0,.1);position:relative;z-index:99}.docs-view .view-box .view-head .header-title[data-v-4616a092]{-webkit-box-flex:1;-ms-flex:1;flex:1;color:#333;padding-left:12px;padding-right:12px;font-size:16px;font-weight:500;white-space:nowrap}.docs-view .view-box .view-head .header-title em[data-v-4616a092]{padding:0 3px;font-weight:400}.docs-view .view-box .view-head .header-hint[data-v-4616a092]{padding-right:22px;font-size:12px;color:#666;white-space:nowrap}.docs-view .view-box .view-head .header-hint .ivu-btn[data-v-4616a092]{font-size:12px;padding:0 10px}.docs-view .view-box .view-head .header-hint .ivu-dropdown-item[data-v-4616a092]{font-size:12px!important}.docs-view .view-box .view-head .header-button[data-v-4616a092]{font-size:12px;margin-right:12px}.docs-view .view-box .view-main[data-v-4616a092]{-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.docs-view .view-box .view-main.view-book .view-menu[data-v-4616a092]{border-right:0;width:100%}.docs-view .view-box .view-main.view-book .view-menu .view-menu-list[data-v-4616a092]{padding:18px 8%}.docs-view .view-box .view-main.view-book .view-body[data-v-4616a092]{display:none}.docs-view .view-box .view-main .view-menu[data-v-4616a092]{position:relative;height:100%;width:280px;border-right:1px solid #e6ecf1}.docs-view .view-box .view-main .view-menu .view-menu-list[data-v-4616a092]{position:absolute;left:0;top:0;right:0;bottom:0;padding:18px 12px;overflow:auto}.docs-view .view-box .view-main .view-body[data-v-4616a092]{-webkit-box-flex:1;-ms-flex:1;flex:1;height:100%;position:relative}.docs-view .view-box .view-main .view-body .view-body-content[data-v-4616a092]{position:absolute;left:0;top:0;right:0;bottom:0;padding:18px;overflow:auto}",""])},845:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n.n(r),o=n(326),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};i.a.use(o.a);e.default={components:{Sheet:function(t){return n.e(10).then(function(){var e=[n(396)];t.apply(null,e)}.bind(this)).catch(n.oe)},Flow:function(t){return n.e(11).then(function(){var e=[n(400)];t.apply(null,e)}.bind(this)).catch(n.oe)},ReportContent:function(t){return new Promise(function(t){t()}).then(function(){var e=[n(64)];t.apply(null,e)}.bind(this)).catch(n.oe)},MarkdownPreview:function(t){return n.e(14).then(function(){var e=[n(846)];t.apply(null,e)}.bind(this)).catch(n.oe)},NestedDraggable:function(t){return n.e(12).then(function(){var e=[n(289)];t.apply(null,e)}.bind(this)).catch(n.oe)}},data:function(){return{loadIng:0,sid:0,docDetail:{},docContent:{},bookDetail:{},sectionLists:[],sectionNoDataText:"",routeName:"",isBook:!1,isFullscreen:!1}},mounted:function(){var t=this;this.routeName=this.$route.name,document.addEventListener("fullscreenchange",function(){t.isFullscreen=!!document.fullscreenElement})},activated:function(){this.refreshSid()},deactivated:function(){!1===$A.getToken()&&(this.sid=0)},watch:{sid:function(t){t&&("b"==(t+="").substring(0,1)?(this.isBook=!0,this.docDetail.bookid=t.substring(1),this.getSectionMenu()):(this.isBook=!1,this.refreshDetail()))},$route:function(t){"docs-view"==t.name&&(this.sid=t.params.sid)}},methods:{refreshSid:function(){this.sid=this.$route.params.sid,"object"===a(this.$route.params.other)&&this.$set(this.docDetail,"title",$A.getObject(this.$route.params.other,"title"))},refreshDetail:function(){this.docDetail={},this.docContent={},this.getDetail()},getDetail:function(){var t=this;this.loadIng++,$A.apiAjax({url:"docs/section/content",data:{act:"view",id:this.sid},complete:function(){t.loadIng--},error:function(){alert(t.$L("网络繁忙,请稍后再试!"))},success:function(e){1===e.ret?(t.docDetail=e.data,t.docContent=$A.jsonParse(e.data.content),t.getSectionMenu()):t.$Modal.error({title:t.$L("温馨提示"),content:e.msg,onOk:function(){"-1001"==e.data&&t.goForward({path:"/",query:{from:encodeURIComponent(window.location.href)}},!0)}})}})},getSectionMenu:function(){var t=this;this.sectionNoDataText=this.$L("数据加载中.....");var e=this.docDetail.bookid;$A.apiAjax({url:"docs/section/lists",data:{act:"view",bookid:e},error:function(){e==t.docDetail.bookid&&(t.sectionNoDataText=t.$L("数据加载失败!"))},success:function(n){e==t.docDetail.bookid&&(1===n.ret?(t.bookDetail=n.data.book,t.sectionLists=n.data.tree,t.sectionNoDataText=t.$L("没有相关的数据")):(t.sectionLists=[],t.sectionNoDataText=n.msg,t.$Modal.error({title:t.$L("温馨提示"),content:n.msg,onOk:function(){"-1001"==n.data&&t.goForward({path:"/",query:{from:encodeURIComponent(window.location.href)}},!0)}})))}})},handleSection:function(t,e){"open"===t&&(this.goForward({name:"docs-view",params:{sid:e.id,other:e||{}}}),this.refreshSid())},toggleFullscreen:function(){this.isFullscreen?this.exitFullscreen():this.launchFullscreen(this.$el)},launchFullscreen:function(t){t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullscreen&&t.webkitRequestFullScreen()},exitFullscreen:function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}}}},851:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"w-main docs-view"},[n("v-title",[t._v(t._s(t.$L("文档浏览")))]),t._v(" "),n("div",{staticClass:"view-box"},[n("div",{staticClass:"view-head"},[n("div",{staticClass:"header-title"},[t.bookDetail.title?n("span",[t._v(t._s(t.bookDetail.title))]):t._e(),t._v(" "),t.bookDetail.title&&t.docDetail.title?n("em",[t._v("-")]):t._e(),t._v("\n "+t._s(t.docDetail.title)+"\n ")]),t._v(" "),n("Button",{staticClass:"header-button",attrs:{size:"small",type:"primary",ghost:""},on:{click:t.toggleFullscreen}},[t._v(t._s(t.$L(t.isFullscreen?"退出全屏":"全屏")))])],1),t._v(" "),n("div",{staticClass:"view-main",class:{"view-book":t.isBook}},[n("div",{staticClass:"view-menu"},[n("div",{staticClass:"view-menu-list"},[n("nested-draggable",{attrs:{lists:t.sectionLists,readonly:!0,activeid:t.sid},on:{change:t.handleSection}})],1)]),t._v(" "),n("div",{staticClass:"view-body"},[n("div",{staticClass:"view-body-content"},["document"==t.docDetail.type?["md"==t.docContent.type?n("MarkdownPreview",{attrs:{initialValue:t.docContent.content}}):n("ReportContent",{attrs:{content:t.docContent.content}})]:"mind"==t.docDetail.type?n("minder",{ref:"myMind",staticClass:"body-mind",attrs:{readOnly:!0},model:{value:t.docContent,callback:function(e){t.docContent=e},expression:"docContent"}}):"sheet"==t.docDetail.type?n("sheet",{ref:"mySheet",staticClass:"body-sheet",attrs:{readOnly:!0},model:{value:t.docContent.content,callback:function(e){t.$set(t.docContent,"content",e)},expression:"docContent.content"}}):"flow"==t.docDetail.type?n("flow",{ref:"myFlow",staticClass:"body-flow",attrs:{readOnly:!0},model:{value:t.docContent,callback:function(e){t.docContent=e},expression:"docContent"}}):t._e()],2)])])])],1)},staticRenderFns:[]}},868:function(t,e,n){var r=n(2)(n(845),n(851),!1,function(t){n(841),n(843)},"data-v-4616a092",null);t.exports=r.exports}});
|