function aa(a){throw a;}var h=void 0,l=null;function ba(){return function(a){return a}}function o(){return function(){}}function ca(a){return function(b){this[a]=b}}function ea(a){return function(){return this[a]}}function fa(a){return function(){return a}}var q,ga=ga||{},ha=this;function ia(a){for(var a=a.split("."),b=ha,c;c=a.shift();)if(b[c]!=l)b=b[c];else return l;return b}function ja(){}
function ka(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function la(a){return ka(a)=="array"}function ma(a){var b=ka(a);return b=="array"||b=="object"&&typeof a.length=="number"}function na(a){return typeof a=="string"}function oa(a){return typeof a=="number"}function pa(a){return ka(a)=="function"}function qa(a){a=ka(a);return a=="object"||a=="array"||a=="function"}function ra(a){return a[sa]||(a[sa]=++ta)}
var sa="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),ta=0;function ua(a,b,c){return a.call.apply(a.bind,arguments)}function va(a,b,c){a||aa(Error());if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}else return function(){return a.apply(b,arguments)}}
function r(a,b,c){r=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ua:va;return r.apply(l,arguments)}function ya(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var za=Date.now||function(){return+new Date};
function Aa(a){if(ha.execScript)ha.execScript(a,"JavaScript");else if(ha.eval)if(Ba==l&&(ha.eval("var _et_ = 1;"),typeof ha._et_!="undefined"?(delete ha._et_,Ba=!0):Ba=!1),Ba)ha.eval(a);else{var b=ha.document,c=b.createElement("script");c.type="text/javascript";c.defer=!1;c.appendChild(b.createTextNode(a));b.body.appendChild(c);b.body.removeChild(c)}else aa(Error("goog.globalEval not available"))}var Ba=l;
function t(a,b){var c=a.split("."),d=ha;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&b!==h?d[e]=b:d=d[e]?d[e]:d[e]={}}function Ca(a,b){function c(){}c.prototype=b.prototype;a.zd=b.prototype;a.prototype=new c;a.prototype.constructor=a};var Da,Ea;function y(a){if(la(a)){var b=l;A(a,function(a){b=b==l?y(a):b.add(y(a))});return b}if(na(a)){var c=$(document.createElement("span"));c.html(a);return c}if(a instanceof jQuery)return a;a.R=a.R||"div";b=$(document.createElement(a.R));a.Q&&b.addClass(a.Q);a.id&&b.attr("id",a.id);a.type&&b.attr("type",a.type);a.src&&b.attr("src",a.src);a.href&&b.attr("href",a.href);a.title&&b.attr("title",a.title);a.target&&b.attr("target",a.target);a.value&&b.val(a.value);a.html&&b.html(a.html);a.text&&b.html(a.text);
a.css&&b.css(a.css);if(a.attr)for(c in a.attr)b.attr(c,a.attr[c]);if(a.children)for(c=0;c<a.children.length;c++)a.children[c]&&b.append(y(a.children[c]));a.label&&(b=y({R:"label",attr:{"for":a.id},children:[a.label]}).add(b));a.create&&(b=a.create(b)||b);a.click&&b.click(a.click);return b}function Fa(a,b){this.vu=a||{};this.Fj=[this.vu];this.he=[0];this.Vi=[b||12]}q=Fa.prototype;q.open=function(a){a=this.add(a);this.Fj.unshift(a);this.he.unshift(0);this.Vi.unshift(this.Vi[0]);return a};
function D(a,b,c,d){c=Ha(a,b,c,d);a.Fj.unshift(c);a.he.unshift(0);a.Vi.unshift(b)}q.close=function(){this.he.shift();this.Vi.shift();return this.Fj.shift()};q.add=function(a){a=a||{};if(!this.Fj[0].children)this.Fj[0].children=[];this.Fj[0].children.push(a);return a};
function Ha(a,b,c,d){var e;!e&&!oa(c)?(e=c,c=0):!e&&d&&!oa(d)&&(e=d,d=0);var c=c||0,d=d||0,f=a.he[0],g=a.he[0]+b+c+d;a.he[0]=g>=a.Vi[0]?0:g;return a.add({Q:"grid_"+b+(c?" prefix_"+c:"")+(d?" suffix_"+d:"")+(f==0?" alpha":"")+(g>=a.Vi[0]?" omega":""),children:[e]})}function E(a,b){a.add(b.J);return b}q.Ie=ea("vu");function Ia(a){a.he[0]=0;a.add({Q:"spacer"})}q.clear=function(){this.he[0]=0;return this.add({Q:"clear"})};function Ja(a){a.he[0]=0;a.add({R:"hr"})}
t("lucid.template.externalDom",function(a){function b(a){var d={R:a.tag,Q:a.classes,id:a.id,type:a.type,src:a.src,href:a.href,title:a.title,target:a.target,value:a.value,html:a.html,text:a.text,css:a.css,attr:a.attr,label:a.label,create:a.create,click:a.click};if(a.children){d.children=[];for(var e=0;e<a.children.length;e++)a.children[e]&&d.children.push(b(a.children[e]))}return d}return!qa(a)?l:y(b(a))});var Ka;function La(a){this.viewport=a;this.zg=this.J=$(y({css:{position:"absolute",zIndex:1,left:0,right:0,top:0,bottom:0}}));this.hw=$(y({})).appendTo(this.J);this.rv=$(y({})).appendTo(this.J);this.$w=$(y({})).appendTo(this.J);this.iw=$(y({})).appendTo(this.J);this.mw=$(y({})).appendTo(this.J);this.kg=$(y({})).appendTo(this.J);this.Qk=!1;this.Yg={};this.od={}}
La.prototype.Ja=function(a){var b=this;if(!Na(a,this.Xw)){this.Xw=a;if(!a||!a.ze||a.ze.length==0||!a.ze[0].Qk)this.kg.fadeOut(100),this.Yg={};else{var c=a.ze[0].Da,d=Oa(c,a.ze[0].offset),e=a.ze[0].rotation;this.Yg={Od:d.x!=c.x||d.y!=c.y,size:d.w!=c.w||d.h!=c.h,rotation:e!=e-a.ze[0].xd}}F(this.od,function(a,b){b.fs=!0});this.zg=this.hw;A(a.Pu,function(a,c){var d=config.hintLineWidth,e=Pa(b.viewport,new G(a.x,0),b.viewport.V[a.page]);Qa(b,"xGuide_"+c,{qb:new H(Math.round(e.x-d/2),0,d,0),css:{height:"auto",
bottom:0,background:config.hintLineColor,opacity:0.5},Da:new H(0,0,0,0)})});A(a.Qu,function(a,c){var d=config.hintLineWidth,e=Pa(b.viewport,new G(0,a.y),b.viewport.V[a.page]);Qa(b,"yGuide_"+c,{qb:new H(0,Math.round(e.y-d/2),0,d),css:{width:"auto",right:0,background:config.hintLineColor,opacity:0.5},Da:new H(0,0,0,0)})});if(a.Lr.length>0)this.zg=this.rv,A(a.Lr,function(a){var c=new G(a.x+0.5*a.w,a.y+a.h),d=new G(a.x+0.5*a.w,a.y),e=Qa(b,a.data+"_caret",{qb:Ra(a,3),padding:2,Da:a,Sg:!0});if(!e.Ij)e=
e.mb.getContext(),e.strokeStyle=config.hintLineColor,e.lineWidth=a.w,e.beginPath(),e.moveTo(c.x,c.y),e.lineTo(d.x,d.y),e.stroke(),e.fillStyle=config.hintLineColor,e.beginPath(),e.Wo(d.x-3,d.y-3,6,6),e.fill()});(!a.ze||a.ze.length==0)&&this.kg.hide();A(a.ze,function(a){var c=b.viewport.V[a.page],c=Ta(Pa(b.viewport,new G(a.Da.x,a.Da.y),c),Pa(b.viewport,new G(a.Da.x+a.Da.w,a.Da.y+a.Da.h),c)),d=a.id||Ua();if(a.outline)b.zg=b.$w,Va(b,d,c,a.rotation,na(a.outline)?new I(a.outline):l);b.zg=b.iw;if(a.kb)Wa(b,
d,c,a.rotation);else{if(a.Yt){var e=a.rotation,f=Xa(c),g=config.resizeHandleSize/2+1;Ya&&(g*=3);var i=2*config.resizeHandleSize+g,j=Za(new G(c.x+0.5*c.w,c.y),f,e),f=Za(new G(c.x+0.5*c.w,c.y-i),f,e),e=Qa(b,d+"_rot",{qb:new H(f.x-i,f.y-i,i*2,i*2),padding:2,Da:c,rotation:e,Sg:!0});if(!e.Ij)e=e.mb.getContext(),e.strokeStyle="#999",e.lineWidth=config.handleLineWidth,e.beginPath(),e.moveTo(j.x,j.y),e.lineTo(f.x,f.y),e.stroke(),e.fillStyle="#fff",e.strokeStyle=config.handleColor,e.beginPath(),e.Wo(f.x-g,
f.y-g,g*2,g*2),e.fill(),e.stroke()}a.Vt&&$a(b,d,c,a.rotation);if(b.Qk||a.Qk)d=b.viewport.V[a.page],c=db(a.Da,a.rotation),f=Math.round(a.Da.x),e=Math.round(a.Da.y),g=Math.round(a.Da.w),j=Math.round(a.Da.h),d=Pa(b.viewport,new G(c.x,c.y),d),f="<div>X: "+f+"&nbsp;&nbsp;Y: "+e+"</div>",g="<div>W: "+g+"&nbsp;&nbsp;H: "+j+"</div>",a="<div>"+Math.round((360-57.2957795*a.rotation)%360)+"&deg;</div>",b.kg.empty().hide(),b.Yg.Od&&b.kg.append(f),b.Yg.size&&b.kg.append(g),b.Yg.rotation&&b.kg.append(a),b.Yg.Od||
b.Yg.size||b.Yg.rotation?b.kg.css({background:"rgba(64,64,64,.05)",border:"solid 1px rgba(0,0,0,.25)","font-size":"10px",padding:"5px",position:"absolute",left:d.x-b.kg.width()/2-5+c.w*b.viewport.scale/2+"px",top:d.y+c.h*b.viewport.scale+5+"px"}).show():b.kg.hide()}});if(a.Fi||a.Kp){this.zg=this.mw;var f=new I("#ffffc07f"),g=new I("#8033337f");A(a.Fi,function(a){var c=Pa(b.viewport,a,b.viewport.V[0]);eb(b,a.data,c.x,c.y,a.wj||15,a.lineWidth||config.handleLineWidth,f,g)});var i=new I(config.handleColor),
j=new I("#fff");A(a.Kp,function(a){var c=Pa(b.viewport,a,b.viewport.V[0]);eb(b,a.data,c.x,c.y,a.wj||3,a.lineWidth||config.handleLineWidth,i,j)})}F(this.od,function(a,c){c.fs&&(c.mb.remove(),delete b.od[a])});this.zg=this.J}};
function Qa(a,b,c){var d;if(!(d=!a.od[b])){d=a.od[b];var e=c.Da,f=c.qb.x,g=c.qb.y;if(d.Da.w!=e.w||d.Da.h!=e.h||d.rotation!=(c.rotation||0))d=!1;else{if(d.Da.x!=e.x||d.Da.y!=e.y)d.Sg?(d.mb.get(0).style.left=f-d.Kr+"px",d.mb.get(0).style.top=g-d.Kr+"px"):(d.mb.get(0).style.left=f+"px",d.mb.get(0).style.top=g+"px");d=d.Ij=!0}d=!d}if(d)c.Sg?(f=c.qb,g=(g=c.padding||l)||10,d=f.x-g,e=f.y-g,f=fb(y({R:"canvas",attr:{width:f.w+g*2,height:f.h+g*2},css:{position:"absolute",left:d+"px",top:e+"px"}})),a.zg.append(f),
f.getContext().translate(-d,-e),d=f):d=$(y({css:{position:"absolute",left:c.qb.x+"px",top:c.qb.y+"px",width:c.qb.w+"px",height:c.qb.h+"px"}})).css(c.css||{}).appendTo(a.zg),a.od[b]&&a.od[b].mb.remove(),a.od[b]={id:b,mb:d,rotation:c.rotation||0,Sg:!!c.Sg,Kr:c.padding||10};a.od[b].fs=!1;a.od[b].Da=c.Da;return a.od[b]}
function eb(a,b,c,d,e,f,g,i){Ya&&(e*=3);a=Qa(a,b+"_hlc",{qb:new H(c-e,d-e,e*2,e*2),padding:2,Da:new H(c-e,d-e,e*2,e*2),Sg:!0});if(!a.Ij)a=a.mb.getContext(),a.fillStyle=gb(i),a.strokeStyle=gb(g),a.lineWidth=f,a.beginPath(),a.Wo(c-e,d-e,e*2,e*2),a.fill(),a.stroke()}
function Va(a,b,c,d,e){var f=e||(new I(config.handleColor)).ga(0.5);if(d){var e=Xa(c),g=[];g.push(Za(new G(c.x-0.5,c.y-0.5),e,d));g.push(Za(new G(c.x+c.w+0.5,c.y-0.5),e,d));g.push(Za(new G(c.x+c.w+0.5,c.y+c.h+0.5),e,d));g.push(Za(new G(c.x-0.5,c.y+c.h+0.5),e,d));var i=g[3];A(g,function(e,g){var j=Math.round(Math.min(e.x,i.x)),k=Math.round(Math.min(e.y,i.y)),n=Math.round(Math.max(e.x,i.x)-j),v=Math.round(Math.max(e.y,i.y)-k),j=Qa(a,b+"_outline_"+g,{qb:new H(j,k,n,v),padding:2,Da:c,rotation:d,Sg:!0});
if(!j.Ij)j=j.mb.getContext(),j.strokeStyle=gb(f),j.lineWidth=1,j.beginPath(),j.moveTo(Math.round(i.x-0.5)+0.5,Math.round(i.y-0.5)+0.5),j.lineTo(Math.round(e.x-0.5)+0.5,Math.round(e.y-0.5)+0.5),j.stroke();i=e})}else{var e=Math.round(c.x-1),g=Math.round(c.y-1),j=Math.round(c.w),k=Math.round(c.h),n=Qa(a,b+"_outline",{qb:new H(e,g,j,k),css:{border:f.tb()+" solid 1px",opacity:f.ga()},Da:c,rotation:d});n.Ij||n.mb.css({left:e+"px",top:g+"px",width:j+"px",height:k+"px"})}}
function Wa(a,b,c,d){var e=[],f=config.resizeHandleSize;Ya&&(f*=2);e.push(new G(c.x-0.5,c.y-0.5));e.push(new G(c.x+c.w+0.5,c.y-0.5));e.push(new G(c.x+c.w+0.5,c.y+c.h+0.5));e.push(new G(c.x-0.5,c.y+c.h+0.5));if(d){var g=Xa(c);A(e,function(a,b){e[b]=Za(a,g,d)})}A(e,function(e,g){var k=Math.round(e.x-0.5)+0.5-f/2,n=Math.round(e.y-0.5)+0.5-f/2,m=Qa(a,b+"_lockInd_"+g,{qb:new H(k,n,f,f),padding:2,Da:c,rotation:d,Sg:!0});if(!m.Ij)m=m.mb.getContext(),m.strokeStyle="#999",m.lineWidth=1,m.beginPath(),m.moveTo(k,
n),m.lineTo(k+f,n+f),m.moveTo(k+f,n),m.lineTo(k,n+f),m.stroke()})}
function $a(a,b,c,d){var e=[],f=config.handleLineWidth,g=0.5*f,i=config.resizeHandleSize;Ya&&(i*=3);e.push(new G(c.x,c.y));e.push(new G(c.x+c.w,c.y));e.push(new G(c.x+c.w,c.y+c.h));e.push(new G(c.x,c.y+c.h));if(d){var j=Xa(c);A(e,function(a,b){e[b]=Za(a,j,d)})}var k={background:"#fff",border:config.handleColor+" solid "+f+"px"};A(e,function(c,d){var e=Math.round(c.x-i/2-g),j=Math.round(c.y-i/2-g),u=Math.round(i-f);Qa(a,b+"_resize_"+d,{qb:new H(e,j,u,u),css:k,Da:new H(e,j,u,u)})})};function J(a,b,c){if(la(a))for(var d=0,e=a.length;d<e;d++)J(a[d],b,c);else a=a.split(" "),a.length>1?J(a,b,c):a=a[0];a in J.Wa||(J.Wa[a]=[]);J.Wa[a].push(b);c&&a in J.Gl&&b(J.get(a));return{name:a,Bd:b}}J.clear=function(a){delete J.Wa[a]};function hb(a){ib(J.Wa[a.name],a.Bd)}J.set=function(a,b){J.Gl[a]=b===h?l:b;a in J.Wa&&A(J.Wa[a],function(b){b(J.get(a))})};J.My=function(a){return!!(J.Wa[a]&&J.Wa[a].length>0)};J.get=function(a){return J.Gl[a]};J.Wa={};J.Gl={};t("lucid.listen",J);
t("lucid.unlisten",hb);function kb(a){this.x=a.x;this.y=a.y;this.wb=a.w;this.ob=a.h;this.Ia=this.y;this.Kb=this.x;this.gb=this.Ia+this.ob;this.Ua=this.Kb+this.wb}function H(a,b,c,d,e){this.x=a;this.y=b;this.w=c;this.h=d;this.data=e}function lb(a,b){return!b?a:Math.round(a/b)*b}function mb(a,b){return!b?a:new H(lb(a.x,b),lb(a.y,b),lb(a.w,b),lb(a.h,b))}function nb(a){return new H(a.x,a.y,a.w,a.h)}
function rb(a,b){var c=a.w/a.h;return c>b.w/b.h?(c=b.w/c,new H(b.x,b.y+b.h/2-c/2,b.w,c)):(c*=b.h,new H(b.x+b.w/2-c/2,b.y,c,b.h))}function sb(a,b){var c=a.w/a.h;return c<b.w/b.h?(c=b.w/c,new H(b.x,b.y+b.h/2-c/2,b.w,c)):(c*=b.h,new H(b.x+b.w/2-c/2,b.y,c,b.h))}function wb(a,b){return new H(b.x+b.w/2-a.w/2,b.y+b.h/2-a.h/2,a.w,a.h)}function Ta(a,b){return new H(Math.min(a.x,b.x),Math.min(a.y,b.y),Math.max(a.x,b.x)-Math.min(a.x,b.x),Math.max(a.y,b.y)-Math.min(a.y,b.y))}
function Oa(a,b){return new H(a.x-b.x,a.y-b.y,a.w-b.w,a.h-b.h)}function xb(a,b){return b==l?a:a==l?b:new H(a.x+b.x,a.y+b.y,a.w+b.w,a.h+b.h)}function yb(a,b){var c=K(a);if(c.x<b.x)c.w-=b.x-c.x,c.x=b.x;if(c.y<b.y)c.h-=b.y-c.y,c.y=b.y;c.x+c.w>b.x+b.w&&(c.w=b.x+b.w-c.x);c.y+c.h>b.y+b.h&&(c.h=b.y+b.h-c.y);return c}function zb(a,b){return a.x+a.w<b.x?!1:a.y+a.h<b.y?!1:b.x+b.w<a.x?!1:b.y+b.h<a.y?!1:!0}function Ab(a,b){return a.x<b.x?!1:a.y<b.y?!1:a.x+a.w>b.x+b.w?!1:a.y+a.h>b.y+b.h?!1:!0}
function Ra(a,b){return new H(a.x-b,a.y-b,a.w+b*2,a.h+b*2)}function Xa(a){return new G(a.x+a.w/2,a.y+a.h/2)}function db(a,b,c){if(b==0)return a;var c=c||Xa(a),d=Za(new G(a.x,a.y),c,b),e=Za(new G(a.x+a.w,a.y),c,b),f=Za(new G(a.x,a.y+a.h),c,b),a=Za(new G(a.x+a.w,a.y+a.h),c,b);return new H(Math.min(d.x,e.x,f.x,a.x),Math.min(d.y,e.y,f.y,a.y),Math.max(d.x,e.x,f.x,a.x)-Math.min(d.x,e.x,f.x,a.x),Math.max(d.y,e.y,f.y,a.y)-Math.min(d.y,e.y,f.y,a.y))}
function Cb(a){var b=Number.MAX_VALUE,c=Number.MAX_VALUE,d=Number.MIN_VALUE,e=Number.MIN_VALUE;A(a,function(a){b=Math.min(b,a.x);d=Math.max(d,a.x+a.w);c=Math.min(c,a.y);e=Math.max(e,a.y+a.h)});return new H(b,c,d-b,e-c)}function G(a,b,c){this.x=a;this.y=b;this.data=c}function Za(a,b,c){var a=Db(a,b),d=Math.cos(c),c=Math.sin(c);return new G(a.x*d-a.y*c+b.x,a.y*d+a.x*c+b.y)}function Eb(a,b){var c=Math.cos(b),d=Math.sin(b);return function(b){b=Db(b,a);return new G(b.x*c-b.y*d+a.x,b.y*c+b.x*d+a.y)}}
function Fb(a,b){return a.x<b.x?!1:a.y<b.y?!1:a.x>b.x+b.w?!1:a.y>b.y+b.h?!1:!0}function Db(a,b){return new G(a.x-b.x,a.y-b.y)}function Gb(a,b){return new G(a.x+b.x,a.y+b.y)}function Hb(a,b){return a.x*b.x+a.y*b.y}function Lb(a,b){return Mb(Db(a,b))}function Nb(a,b){return Db(a,b).x*Db(a,b).x+Db(a,b).y*Db(a,b).y}function Mb(a){return Math.sqrt(a.x*a.x+a.y*a.y)}function Ob(a,b,c){var d=b.y-c.y,e=c.x-b.x;return Math.abs(d*a.x+e*a.y+(b.x*c.y-b.y*c.x))/Math.sqrt(d*d+e*e)}
function Pb(a,b,c,d){var e=(c.x-b.x)*(c.x-b.x)+(c.y-b.y)*(c.y-b.y),f=((a.x-b.x)*(c.x-b.x)+(a.y-b.y)*(c.y-b.y))/e,g=((b.y-a.y)*(c.x-b.x)-(b.x-a.x)*(c.y-b.y))/e;return d||f>=0&&f<=1?new G(b.x+f*(c.x-b.x),b.y+f*(c.y-b.y),{d:Math.abs(g)*Math.sqrt(e),t:f}):(d=(a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y),a=(a.x-c.x)*(a.x-c.x)+(a.y-c.y)*(a.y-c.y),d<a?new G(b.x,b.y,{d:Math.sqrt(d),t:0}):new G(c.x,c.y,{d:Math.sqrt(a),t:1}))}function Rb(a,b,c,d){this.x=a;this.y=b;this.nx=c;this.ny=d}
function Sb(a,b){function c(a,c,e,j){for(var k=j.x-a.x,n=j.y-a.y,k=b(Math.sqrt(k*k+n*n)),n=0;n<1;n+=1/k)d.push(new G((1-n)*(1-n)*(1-n)*a.x+3*(1-n)*(1-n)*n*c.x+3*(1-n)*n*n*e.x+n*n*n*j.x,(1-n)*(1-n)*(1-n)*a.y+3*(1-n)*(1-n)*n*c.y+3*(1-n)*n*n*e.y+n*n*n*j.y))}for(var d=[],e=0;e<a.length-1;e++)c(a[e],new G(a[e].x+a[e].nx,a[e].y+a[e].ny),new G(a[e+1].x-a[e+1].nx,a[e+1].y-a[e+1].ny),a[e+1]);d.push(new G(a[e].x,a[e].y));return d}
function Tb(a,b,c,d){var e=d.x*(a.y-c.y)-d.y*(a.x-c.x),f=b.x*(a.y-c.y)-b.y*(a.x-c.x),d=d.y*b.x-d.x*b.y;return d!=0?(c=e/d,0<=c&&0<=f/d?new G(a.x+b.x*c,a.y+b.y*c):!1):a.x==c.x&&a.y==c.y?a:!1}
function Ub(a,b,c){var d=(c.x-b.x)*(c.x-b.x)+(c.y-b.y)*(c.y-b.y),e=((a.x-b.x)*(c.x-b.x)+(a.y-b.y)*(c.y-b.y))/d,d=Math.abs(((b.y-a.y)*(c.x-b.x)-(b.x-a.x)*(c.y-b.y))/d)*Math.sqrt(d);e>=0&&e<=1?a=d:(b=(a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y),a=(a.x-c.x)*(a.x-c.x)+(a.y-c.y)*(a.y-c.y),a=b<a?Math.sqrt(b):Math.sqrt(a));return a}
function Vb(a,b,c,d){if(Math.max(a.y,b.y)<Math.min(c.y,d.y))return!1;if(Math.min(a.y,b.y)>Math.max(c.y,d.y))return!1;if(Math.max(a.x,b.x)<Math.min(c.x,d.x))return!1;if(Math.min(a.x,b.x)>Math.max(c.x,d.x))return!1;var e=(d.x-c.x)*(a.y-c.y)-(d.y-c.y)*(a.x-c.x),f=(b.x-a.x)*(a.y-c.y)-(b.y-a.y)*(a.x-c.x),c=(d.y-c.y)*(b.x-a.x)-(d.x-c.x)*(b.y-a.y);return c!=0?(e/=c,f/=c,0<=e&&e<=1&&0<=f&&f<=1?new G(a.x+e*(b.x-a.x),a.y+e*(b.y-a.y),e):!1):e==0||f==0?!0:!1}
function Wb(a,b,c,d,e,f){this.x1=a;this.y1=b;this.x2=c;this.y2=d;this.x3=e;this.y3=f}
function Xb(a,b,c,d,e,f,g){function i(c){return{Ia:c,x:a+n+Math.cos(c)*n,y:b+m+Math.sin(c)*m,Wx:function(b){return a+n+n*(Math.cos(c)-b*Math.sin(c))},Yx:function(a){return b+m+m*(Math.sin(c)+a*Math.cos(c))},Xx:function(b){return a+n+n*(Math.cos(c)- -b*Math.sin(c))},Zx:function(a){return b+m+m*(Math.sin(c)+-a*Math.cos(c))}}}e==l&&(e=0);f==l&&(f=Math.PI*2);var j=!1;if(e>f)var j=!0,k=e,e=f,f=k;for(var n=c/2,m=d/2,c=[],d=e;d<f;d+=Math.PI*0.5)c.push(i(d));c.push(i(f));d=[];g&&d.push(new G(a+n+Math.cos(j?
f:e)*n,b+m+Math.sin(j?f:e)*m));j&&c.reverse();for(e=0;e<c.length-1;e++)f=0.5522847498*(c[e+1].Ia-c[e].Ia)/(Math.PI/2),d.push(new Wb(c[e].Wx(f),c[e].Yx(f),c[e+1].Xx(f),c[e+1].Zx(f),c[e+1].x,c[e+1].y));return d}function Yb(a,b,c){return a<=b?c>=a&&c<=b:c<=a&&c>=b}function Zb(a,b){for(var c=0;c<a.length;c++)if(Yb(b-1,b+1,a[c]))return c;return-1}function $b(a,b){var c=a,d=l;A(b,function(b){var f=Math.abs(b-a);if(d==l||f<d)d=f,c=b});return c}
function ac(a,b){return b?Math.round(a*Math.pow(10,b))/Math.pow(10,b):Math.round(a)}function bc(a,b){return a.toFixed(b||0).replace(/^([^\.]*)$/,"$1.").replace(/\.?0*$/,"")}t("lucid.math.Point",G);t("lucid.math.Box",H);t("lucid.math.ellipseArcControlPoints",Xb);t("lucid.math.Box.fromProps",nb);t("lucid.math.Box.pad",Ra);t("lucid.math.Box.within",Ab);t("lucid.math.Box.add",xb);t("lucid.math.Box.subtract",Oa);t("lucid.math.Box.overlap",zb);t("lucid.math.Box.rotatedBoundingBox",db);
t("lucid.math.calculateSplinePoints",Sb);t("lucid.math.distanceFromLineSegment",Ub);t("lucid.math.linesIntersect",Vb);t("lucid.math.precision",ac);t("lucid.math.Point.subtract",Db);t("lucid.math.Point.rotateAround",Za);t("lucid.math.Point.add",Gb);t("lucid.math.Point.inBox",Fb);function cc(a){this.language=a;this.Xj={};this.mr={}}var dc={};function ec(a){a in dc||(dc[a]=new cc(a));return dc[a]}cc.prototype.ui=function(a){$.ajax({type:"POST",url:"/words/add/"+this.language+"/"+encodeURIComponent(a)});this.Xj[a]=!0;$(document).triggerHandler("lucid.spellCheck.newData")};
function fc(a,b){if(a.language=="none")return{};var c={},d=[],e={};A(b,function(b){b in a.Xj?e[b]=a.Xj[b]:b in a.mr?e[b]=!0:b in c||(c[b]=!0,d.push("word[]="+encodeURIComponent(b)),a.mr[b]=!0)});d.length>0&&$.ajax({type:"POST",url:"/words/check/"+a.language,data:d.join("&"),success:function(b){try{var d=gc(b),e;for(e in d)a.Xj[e]=d[e],la(d[e])&&A(d[e],function(b){a.Xj[b]=!0});for(var j in c)delete a.mr[j];$(document).triggerHandler("lucid.spellCheck.newData")}catch(k){}}});return e};function hc(a){var b=0,c;for(c in a)b++;return b}function ic(a){function b(a,d){if(la(a))for(var g=0;g<a.length;g++)d.push(g),b(a[g],d),d.pop();else if(qa(a))for(var i in a)d.push(i),b(a[i],d),d.pop();else{i=encodeURIComponent(d[0]);for(g=1;g<d.length;g++)i+="["+encodeURIComponent(d[g])+"]";c.push(i+"="+encodeURIComponent(a))}}var c=[],d;for(d in a)b(a[d],[d]);return c.join("&")}function jc(a){var b=[],c;for(c in a)b.push(c);return b}function kc(a){a=jc(a);a.sort();return a}
function lc(a){for(var b in a)return!1;return!0}function F(a,b){for(var c in a)b(c,a[c])}function K(a,b){if(a==l)return l;b==l&&(b=0);if(b>100)return l;var c={};if(typeof a=="object"){typeof a.length!="undefined"&&(c=[]);for(var d in a){var e=typeof a[d];e=="object"?c[d]=K(a[d],b+1):e=="string"?c[d]=a[d]:e=="number"?c[d]=a[d]:e=="function"?c[d]=a[d]:e=="boolean"?a[d]==!0?c[d]=!0:c[d]=!1:e=="undefined"&&(c[d]=h)}}return c}function mc(a){if(a==l)return a;var b={},c;for(c in a)b[c]=a[c];return b}
function Na(a,b){if(typeof a=="object"&&typeof b=="object")if(a==l&&b==l)return!0;else if(la(a)&&la(b)){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(!Na(a[c],b[c]))return!1;return!0}else if(qa(a)&&qa(b)){for(c in a)if(!(c in(a.__proto__||a.constructor)||c=="__proto__")){if(!(c in b))return!1;if(!Na(a[c],b[c]))return!1}for(c in b)if(!(c in(b.__proto__||b.constructor)||c=="__proto__")&&!(c in a))return!1;return!0}else return!1;else return oa(a)&&oa(b)?Math.abs(a-b)<1.0E-9:a==l&&b==l?
!0:a===b}t("lucid.object.copy",K);t("lucid.object.size",hc);t("lucid.object.map",F);t("lucid.object.keys",jc);function nc(a,b){return oc(a,b)!=-1}function ib(a,b){var c=oc(a,b);c!=-1&&a.splice(c,1);return c}function pc(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function oc(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return c;return-1}function qc(a){if(a==l)return a;for(var b=[],c=0;c<a.length;c++)b[c]=a[c];return b}function A(a,b){if(a)for(var c=a.length,d=0;d<c;d++)if(b(a[d],d)==!1)break}
function rc(a){for(var b=a.length,c=0;c<b;c++)if(a[c]||a[c]===0||a[c]===""||a[c]===!1)return a[c];return l}t("lucid.array.indexOf",oc);t("lucid.array.contains",nc);t("lucid.array.map",A);t("lucid.array.shallowCopy",qc);function sc(a,b,c,d){this.start=a;this.end=b;this.name=c;this.val=d}sc.prototype.serialize=function(){var a={s:this.start,e:this.end,n:tc[this.name],v:this.val};this.end==l&&delete a.e;return a};function uc(a){return new sc(a.s,a.e,vc[a.n],a.v)}
var tc={font:"f",bold:"b",italic:"i",underline:"u",strike:"k",locked:"o",size:"s",color:"c",inlineStyle:"is",inlineBlock:"ib",type:"t",indentFL:"fl",indentLeft:"il",indentLevel:"iv",indentRight:"ir",defaultTab:"dt",tabStops:"ts",marginTop:"mt",marginBottom:"mb",spacing:"p",align:"a",paragraphStyle:"ps",pageBreak:"pb",columnBreak:"cb"},vc={},wc;for(wc in tc)vc[tc[wc]]=wc;
var xc={font:"Liberation Sans",bold:!1,italic:!1,underline:!1,strike:!1,locked:!1,size:config.defaultTextSize,color:"000000",inlineStyle:"",inlineBlock:"",spacing:1.2,marginTop:0,marginBottom:0,defaultTab:36,tabStops:[],indentFL:0,indentLeft:0,indentRight:0,align:"",type:"p",indentLevel:1,paragraphStyle:"",pageBreak:0,columnBreak:0},yc={type:!0,indentFL:!0,indentLeft:!0,indentRight:!0,indentLevel:!0,defaultTab:!0,tabStops:!0,marginTop:!0,marginBottom:!0,spacing:!0,align:!0,paragraphStyle:!0,pageBreak:!0,
columnBreak:!0},zc={inlineBlock:!0},Ac={bold:!0,italic:!0,underline:!0,strike:!0};function Bc(){this.text="";this.za=[]}var Cc=XRegExp("[^\\p{L}]*(.*\\p{L})[^\\p{L}]*$"),Dc={};
function Ec(a,b){var c=ec(b),d=0,e=[],f={},g=[];A(a.split(/\s/),function(a){var b=a.replace(/\(|\)/,"");if(!(b in Array.prototype)){var c=a.length+1;d+=c;a in Dc||(Dc[a]=Cc.exec(a));if(a=Dc[a])a=a[1],/[^\d\.-]/.test(a)&&(g.push(a),b in f||(f[b]=[]),f[b].push({start:d-c,end:d-1}))}});var c=fc(c,g),i;for(i in c)la(c[i])&&A(f[i],function(a){e.push([a.start,a.end])});return e}function Gc(a,b){return b==l?b:Math.max(0,Math.min(a.text.length,b))}function Hc(a,b,c){return{f:[{f:"i",p:[b,Gc(a,c)]}]}}
function Ic(a,b,c){return{f:[{f:"d",p:[Gc(a,b),Gc(a,c)]}]}}function Jc(a,b,c,d){function e(a){var b=l;J.set("default.lookupNamedParagraphStyle",{name:a,Bd:function(a){b=a}});b==l&&(b=K(xc));return b}for(var f=Kc(a,b,c,!0),b=Gc(a,f[0]),c=Gc(a,f[f.length-1]),g=[],b=0;b<f.length-1;b++){for(var c="",i=0;i<a.za.length;i++)if(a.za[i].name=="paragraphStyle"&&a.za[i].start==f[b]){c=a.za[i].val;break}A(Lc(a,f[b],f[b+1],e(c),d),function(a){g.push(a)})}return{f:g}}
function Lc(a,b,c,d,e){var f=[],g;for(g in e)if(!Na(d[g],e[g])){var i={};i[g]=e[g];g in yc?f.push({f:"s",p:[b,l,i]}):g in Ac?f.push({f:"s",p:[b,c,i]}):Na(d[g],xc[g])?(f.push({f:"s",p:[b,c,i]}),A(a.za,function(a){if(a.name==g&&a.end>b&&a.start<c&&!Na(e[g],a.val)){var d={};d[g]=a.val;f.push({f:"s",p:[a.start,a.end,d]})}})):A(a.za,function(a){a.name==g&&a.end>b&&a.start<c&&Na(d[g],a.val)&&f.push({f:"s",p:[Math.max(b,a.start),Math.min(c,a.end),i]})})}return f}
function Mc(a,b,c,d){function e(a){var b=l;J.set("default.lookupNamedParagraphStyle",{name:a,Bd:function(a){b=a}});b==l&&(b=K(xc));return b}var f=Kc(a,b,c),g=Kc(a,b,c);g[0]=b;g.push(c);b=[];for(c=0;c<g.length-1;c++){for(var i="",j=0;j<a.za.length;j++)if(a.za[j].name=="paragraphStyle"&&a.za[j].start==f[c]){i=a.za[j].val;break}var i=e(i),j={},k;for(k in xc)k in yc||(j[k]=d[k]||i[k]);b.push({f:"s",p:[g[0],g[1],j]})}return{f:b}}
function Nc(a,b,c,d){var e=[],d=K(d),f={},g;for(g in d)g in yc&&(f[g]=d[g],delete d[g]);lc(f)||(g=c==l?[b]:Kc(a,b,c),A(g,function(b){e.push({f:"s",p:[Gc(a,b),l,f]})}));lc(d)||e.push({f:"s",p:[Gc(a,b),Gc(a,c),d]});return{f:e}}function Oc(a){return{f:a.r,r:a.f,c:a.c,a:a.a}}q=Bc.prototype;
q.ba=function(a){function b(a){a&&a.reverse();A(a,function(a){c.unshift(a)})}var c=[],d=this;A(a.f,function(a){a.f=="i"?b(Pc(d,a.p[0],a.p[1])):a.f=="d"?b(Qc(d,a.p[0],a.p[1])):a.f=="s"&&b(Rc(d,a.p[0],a.p[1],a.p[2]))});a.r||(a.r=c);return a};
function Pc(a,b,c){a.text=a.text.substr(0,c)+b+a.text.substr(c);a.za.sort(function(a,b){return a.start-b.start});var d={};A(a.za,function(a){a.start>c&&(a.start+=b.length);if(a.start==c&&(d[a.name]||zc[a.name]))a.start+=b.length;a.end>=c&&a.end!=l&&!(a.end==c&&zc[a.name])&&(a.end==c&&(d[a.name]=!0),a.end+=b.length)});var e=Kc(a,c,c+b.length);if(e.length>1){var f=a.wa(e[0]);delete f.pageBreak;delete f.columnBreak;for(var g=1;g<e.length;g++)Rc(a,e[g],l,f)}return Ic(a,c,c+b.length).f}
function Kc(a,b,c,d){for(var e=[],f=Gc(a,b);f>0;f--)if(a.text[f-1]=="\n"){e.push(f);break}f==0&&e.push(0);for(f=Gc(a,b)+1;f<=Gc(a,c);f++)a.text[f-1]=="\n"&&e.push(f);if(d)for(f=Gc(a,c);f<=a.text.length;f++)if(a.text[f-1]=="\n"||f==a.text.length){e.push(f);break}return e}function Sc(a,b,c){var d=Kc(a,b,c),e=[];A(a.za,function(a){a.end==l&&nc(d,a.start)&&e.push(a)});return e}
function Tc(a,b,c){var d=[];a.za.sort(function(a,b){return b.start-a.start});A(a.za,function(a){a.start<=b&&a.end>=b&&d.push(a)});c||A(Sc(a,b,b),function(a){d.push(a)});return d}function Uc(a,b,c){var d=K(xc);A(Tc(a,b,c),function(a){d[a.name]=a.val});for(var e in xc)if(d[e]==l&&(!c||yc[e]))d[e]=xc[e];return d}
function Vc(a,b,c,d){function e(a,b){for(var c in b)Na(a[c],b[c])||(a[c]=l);for(c in a)Na(a[c],b[c])||(a[c]=l)}if(b==c)return Uc(a,b,d);for(var f={},g=b;g<c;g++)f[g]={};var i=Kc(a,b,c);A(a.za,function(e){if(e.end==l){if(!d&&nc(i,e.start))for(var g=Math.max(e.start,b);g<c;g++)if(f[g][e.name]=e.val,a.text[g]=="\n")break}else for(g=Math.max(e.start,b);g<Math.min(e.end,c);g++)f[g][e.name]=e.val});var g=l,j;for(j in f)g==l?g=f[j]:e(g,f[j]);for(j in xc)if(g[j]==l&&(!d||!(j in yc)))g[j]=xc[j];return g}
function Qc(a,b,c){if(b>=c)return[];var d=Hc(a,a.text.substr(b,c-b),b).f,e={},f=[];A(a.za,function(d){if(d.end==l){if(d.start>b&&d.start<=c){var g={};g[d.name]=d.val;f.push(Nc(a,d.start,l,g).f[0])}}else if(d.end>=b&&d.start<=c)e[d.name]=xc[d.name],g={},g[d.name]=d.val,f.push(Nc(a,d.start<b?b:d.start>c?c:d.start,d.end<b?b:d.end>c?c:d.end,g).f[0])});f.length>0&&(hc(e)>0&&d.push(Nc(a,b,c,e).f[0]),A(f,function(a){d.push(a)}));for(var g=0;g<a.za.length;g++){var i=a.za[g],j=i.start>=b&&i.end<=c;i.end==
l&&(j=i.start>b&&i.start<=c);j&&a.za.splice(g--,1);i.start>=b&&(i.start-=Math.min(c-b,i.start-b));i.end>=b&&i.end!=l&&(i.end-=Math.min(c-b,i.end-b))}a.text=a.text.substr(0,b)+a.text.substr(c);return d}function Wc(a,b){for(var c=0;c<a.za.length;c++)if(a.za[c]==b){a.za.splice(c,1);break}}
function Rc(a,b,c,d){function e(a){var d=[];A(f.za,function(e){e.name==a&&e.end>=b&&e.start<=c&&d.push(e)});d.sort(function(a,b){return a.start-b.start});return d}var f=a;if(b==c)return[];var g=[];if(c==l){var i={},j;for(j in d){i[j]=xc[j];for(var k=0;k<a.za.length;k++)if(a.za[k].name==j&&a.za[k].start==b)i[j]=a.za[k].val,a.za.splice(k--,1);d[j]!=xc[j]&&a.za.push(new sc(b,c,j,d[j]))}g.push(Nc(a,b,c,i).f[0]);return g}for(j in d)if(i=e(j),i.length==0){if(d[j]!=xc[j]){a.za.push(new sc(b,c,j,d[j]));var n=
{};n[j]=xc[j];g.push(Nc(a,b,c,n).f[0])}}else{if(i[0].start<b&&i[0].val!=d[j])k=i[0].end,i[0].end=b,i.splice(0,1,new sc(b,k,j,i[0].val)),a.za.push(i[0]);var m=i.length-1;if(i[m].end>c&&i[m].val!=d[j])k=i[m].start,i[m].start=c,i.splice(m,1,new sc(k,c,j,i[m].val)),a.za.push(i[m]);n={};n[j]=xc[j];g.push(Nc(a,b,c,K(n)).f[0]);for(k=0;k<i.length;k++)n[j]=i[k].val,g.push(Nc(a,i[k].start,i[k].end,K(n)).f[0]);d[j]!=xc[j]?(i[0].start=Math.min(i[0].start,b),i[0].end=Math.max(i[m].end,c),i[0].val=d[j],k=1):k=
0;for(;k<i.length;k++)Wc(a,i[k])}return g}q.wa=function(a){var b={};A(this.za,function(c){if(c.start==a&&c.end==l)b[c.name]=c.val});return b};
function Xc(a){function b(a,b){return b.end==l?b.start==a.start:b.start<a.end&&b.end>a.start}var c=a.text.split("\n"),d=0,e=[];A(c,function(a,b){b<c.length-1?(e.push({text:a+"\n",za:[],start:d,end:d+a.length+1,Hm:[]}),d+=a.length+1):(e.push({text:a,za:[],start:d,end:d+a.length,Hm:[]}),d+=a.length)});a.za.sort(function(a,b){return a.start==b.start?a.name>b.name?1:b.name>a.name?-1:0:a.start-b.start});var f=0;A(a.za,function(a){for(;f<e.length&&!b(e[f],a);)f++;if(f>=e.length)return!1;for(var c=f;c<e.length&&
b(e[c],a);c++)e[c].za.push(new sc(Math.max(0,Math.min(e[c].text.length,a.start-e[c].start)),a.end?Math.max(0,Math.min(e[c].text.length,a.end-e[c].start)):l,a.name,a.val)),a.name=="inlineBlock"&&J.set("client.inlineBlockTextMetrics",[a.val,function(a){e[c].Hm.push(a)}])});return e}
q.ef=function(a){if(this.text!=a.text)return!1;this.za.sort(function(a,c){return a.start==c.start?a.name>c.name?1:c.name>a.name?-1:0:a.start-c.start});a.za.sort(function(a,c){return a.start==c.start?a.name>c.name?1:c.name>a.name?-1:0:a.start-c.start});return Na(this.za,a.za)};
function Yc(a,b,c,d){if(a.eh)for(var e=0;e<a.eh.length;e++)if(a.eh[e].text==b.text&&Na(a.eh[e].za,b.za)&&Na(a.eh[e].Hm,b.Hm)){var f=a.eh[e].Eq.Bx,g=c<0||c>b.text.length,i=f<0||f>b.text.length;if(c===!1==(f===!1)&&(f==c||g&&i))return a.eh[e].Eq}var j=[],k={};A(b.za,function(a){a.end==l?k[a.name]=a.val:a.start>=a.end||(j.push({index:a.start,name:a.name,val:a.val}),j.push({index:a.end,name:a.name,val:l}))});c!==!1&&A(Ec(b.text,d||"en"),function(a){a[1]!=c&&(j.push({index:a[0],name:"error",val:"rgba(200,0,0,.7)"}),
j.push({index:a[1],name:"error",val:!1}))});j.sort(function(a,b){return a.index==b.index?a.val==l?-1:1:a.index-b.index});var n=[],m=0,p=new Zc({}),s={};A(j,function(a){if(a.index>m){var c=new Zc(p);c.text=b.text.substr(m,a.index-m);n.push(c);m=a.index}if(a.val==l)c=a.name,c in s?(s[c].shift(),c=s[c].length>0?s[c][0]:xc[c]):c=xc[c],a.val=c;else{var c=a.name,d=a.val;c in s||(s[c]=[]);s[c].unshift(d)}switch(a.name){case "font":p.ff=a.val;break;case "bold":p.bold=a.val;break;case "italic":p.ic=a.val;
break;case "underline":p.Qf=a.val;break;case "strike":p.strike=a.val;break;case "locked":p.kb=a.val;break;case "size":p.size=a.val;break;case "color":p.color=a.val;break;case "error":p.error=a.val;break;case "inlineBlock":p.Ic=a.val}});if(m<b.text.length)e=new Zc(p),e.text=b.text.substr(m),n.push(e);a=b.text.match(/[\u3040-\u9faf]/);f=d=!0;for(e=0;e<n.length;e++){g=n[e];if(d)g.bc=!0,g.qc=!0;d=!1;if(g.Ic){if(g.text.length-1>0){var u=new Zc(g);g.text=g.text.substr(0,g.text.length-1);u.text=u.text.substr(u.text.length-
1);u.qc=!0;u.bc=!1;n.splice(e+1,0,u)}else g.qc=!0,n[e+1].qc=!0;f=!0}else for(i=0;i<g.text.length;i++)if(u=g.text[i],u=="\n"){if(d=!0,i<g.text.length-1)u=new Zc(g),g.text=g.text.substr(0,i+1),u.text=u.text.substr(i+1),u.qc=!1,u.bc=!1,n.splice(e+1,0,u)}else if(u.match($c)&&u!="\t")f=!0;else{u=="\t"&&(f=!0);var w=0;a&&(w=u.charCodeAt());if(f||w>=12352&&w<=40879)i>0?(u=new Zc(g),g.text=g.text.substr(0,i),u.text=u.text.substr(i),u.qc=!0,u.bc=!1,n.splice(e+1,0,u)):g.qc=!0,f=!1}}n.length==0&&n.push(new Zc({bc:!0,
qc:!0,text:""}));ad(n);e=new bd(n,k);e.Bx=c;return e}q.Ja=function(a,b){var c=this,d=[],e=[],f=0;A(Xc(this),function(g){g.Eq=Yc(c,g,a===!1?!1:a-f,b);d.push(g.Eq);e.push(g);f+=g.text.length});this.eh=e;return d};q.serialize=function(){var a=[];A(this.za,function(b){a.push(b.serialize())});return{t:this.text,m:a}};function cd(a){return a.serialize()}
function dd(a,b){var c;try{c=qa(a)?a:gc(a);qa(c)||aa("Not valid rich-text content; parsing as HTML.");var d=new Bc;d.text=c.t;A(c.m,function(a){d.za.push(uc(a))});return d}catch(e){return ed(a,b)}}
function ed(a,b){function c(a){var b=e.length,g=d.length;A(a.childNodes,function(a){a.nodeType==3?(e+=f+(a.nodeValue.indexOf("&")!=-1?"document"in ha?fd(a.nodeValue):gd(a.nodeValue):a.nodeValue),f=""):a.tagName&&(a.tagName.toLowerCase()=="br"?(e+=f,f="\n"):c(a))});var i=e.length;(a=$(a).attr("style"))&&A(a.split(";"),function(a){a=a.split(":");a[0]&&(a[0]=hd(a[0]));a[1]&&(a[1]=hd(a[1]));a[0].toLowerCase()=="font-family"&&d.splice(g,0,new sc(b,i,"font",a[1]));a[0].toLowerCase()=="font-weight"&&d.splice(g,
0,new sc(b,i,"bold",a[1].toLowerCase()=="bold"));a[0].toLowerCase()=="font-style"&&d.splice(g,0,new sc(b,i,"italic",a[1].toLowerCase()=="italic"));a[0].toLowerCase()=="text-decoration"&&(d.splice(g,0,new sc(b,i,"underline",!!a[1].toLowerCase().match(/underline/))),d.splice(g,0,new sc(b,i,"strike",!!a[1].toLowerCase().match(/line-through/))));a[0].toLowerCase()=="font-size"&&d.splice(g,0,new sc(b,i,"size",parseInt(a[1].toLowerCase().replace("px",""),10)));a[0].toLowerCase()=="color"&&d.splice(g,0,
new sc(b,i,"color",id(a[1],"#000000ff").tb.substr(1)));a[0].toLowerCase()=="locked"&&d.splice(g,0,new sc(b,i,"locked",!0))})}b&&b.toLowerCase()=="helvetica"?b="Liberation Sans":b&&b.toLowerCase()=="times"&&(b="Liberation Serif");var d=[],e="",f="",g=$("<span>"+a+"</span>").get(0);c(g);var i=new Bc;Pc(i,e,0);A(d,function(a){var b={};b[a.name]=a.val;Rc(i,a.start,a.end,b)});return i};var jd=function(){function a(){a.od.hasOwnProperty(arguments[0])||(a.od[arguments[0]]=a.parse(arguments[0]));return a.Qi.call(l,a.od[arguments[0]],arguments)}function b(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}a.Qi=function(a,d){var e=1,f=a.length,g="",i=[],j,k,n,m;for(j=0;j<f;j++)if(g=b(a[j]),g==="string")i.push(a[j]);else if(g==="array"){n=a[j];if(n[2]){g=d[e];for(k=0;k<n[2].length;k++)g.hasOwnProperty(n[2][k])||aa(jd('[sprintf] property "%s" does not exist',n[2][k])),
g=g[n[2][k]]}else g=n[1]?d[n[1]]:d[e++];/[^s]/.test(n[8])&&b(g)!="number"&&aa(jd("[sprintf] expecting number but found %s",b(g)));switch(n[8]){case "b":g=g.toString(2);break;case "c":g=String.fromCharCode(g);break;case "d":g=parseInt(g,10);break;case "e":g=n[7]?g.toExponential(n[7]):g.toExponential();break;case "f":g=n[7]?parseFloat(g).toFixed(n[7]):parseFloat(g);break;case "o":g=g.toString(8);break;case "s":g=(g=String(g))&&n[7]?g.substring(0,n[7]):g;break;case "u":g=Math.abs(g);break;case "x":g=
g.toString(16);break;case "X":g=g.toString(16).toUpperCase()}g=/[def]/.test(n[8])&&n[3]&&g>=0?"+"+g:g;k=n[4]?n[4]=="0"?"0":n[4].charAt(1):" ";m=n[6]-String(g).length;if(n[6]){for(var p=[];m>0;p[--m]=k);k=p.join("")}else k="";i.push(n[5]?g+k:k+g)}return i.join("")};a.od={};a.parse=function(a){for(var b=[],e=[],f=0;a;){if((b=/^[^\x25]+/.exec(a))!==l)e.push(b[0]);else if((b=/^\x25{2}/.exec(a))!==l)e.push("%");else if((b=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(a))!==
l){if(b[2]){f|=1;var g=[],i=b[2],j=[];if((j=/^([a-z_][a-z_\d]*)/i.exec(i))!==l)for(g.push(j[1]);(i=i.substring(j[0].length))!=="";)(j=/^\.([a-z_][a-z_\d]*)/i.exec(i))!==l?g.push(j[1]):(j=/^\[(\d+)\]/.exec(i))!==l?g.push(j[1]):aa("[sprintf] huh?");else aa("[sprintf] huh?");b[2]=g}else f|=2;f===3&&aa("[sprintf] mixing positional and named placeholders is not (yet) supported");e.push(b)}else aa("[sprintf] huh?");a=a.substring(b[0].length)}return e};return a}();function kd(a,b){this.name=a;this.Kx=b}kd.prototype.key=function(){return"lcmtx-"+this.name};function ld(a,b){var c=a.key(),d=(new Date).getTime();if(d-(window.localStorage[c]||0)>1E3*a.Kx||b){try{window.localStorage[c]=d}catch(e){return!1}return!0}return!1}kd.prototype.pc=function(){window.localStorage[this.key()]&&delete window.localStorage[this.key()]};function gc(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}aa(Error("Invalid JSON string: "+a))}function md(a){return eval("("+a+")")}function nd(a){return(new od).serialize(a)}function od(){}
od.prototype.serialize=function(a){var b=[];pd(this,a,b);return b.join("")};
function pd(a,b,c){switch(typeof b){case "string":qd(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==l){c.push("null");break}if(la(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),pd(a,b[f],c),e=",";c.push("]");break}c.push("{");d="";for(e in b)Object.prototype.hasOwnProperty.call(b,e)&&(f=b[e],typeof f!="function"&&(c.push(d),qd(e,c),c.push(":"),pd(a,f,c),d=","));c.push("}");
break;case "function":break;default:aa(Error("Unknown type: "+typeof b))}}var rd={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},sd=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;function qd(a,b){b.push('"',a.replace(sd,function(a){if(a in rd)return rd[a];var b=a.charCodeAt(0),e="\\u";b<16?e+="000":b<256?e+="00":b<4096&&(e+="0");return rd[a]=e+b.toString(16)}),'"')};function td(a,b){for(var c=1;c<arguments.length;c++)var d=String(arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a}function hd(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}var ud=/^[a-zA-Z0-9\-_.!~*'()]*$/;function vd(a){a=String(a);return!ud.test(a)?encodeURIComponent(a):a}
function wd(a,b){if(b)return a.replace(xd,"&amp;").replace(yd,"&lt;").replace(zd,"&gt;").replace(Ad,"&quot;");else{if(!Bd.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(xd,"&amp;"));a.indexOf("<")!=-1&&(a=a.replace(yd,"&lt;"));a.indexOf(">")!=-1&&(a=a.replace(zd,"&gt;"));a.indexOf('"')!=-1&&(a=a.replace(Ad,"&quot;"));return a}}var xd=/&/g,yd=/</g,zd=/>/g,Ad=/\"/g,Bd=/[&<>\"]/;
function fd(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c=document.createElement("div");return a.replace(Cd,function(a,e){var f=b[a];if(f)return f;if(e.charAt(0)=="#"){var g=Number("0"+e.substr(1));isNaN(g)||(f=String.fromCharCode(g))}if(!f)c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1);return b[a]=f})}
function gd(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)=="#"){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return a}})}var Cd=/&([^;\s<&]+);?/g;function Dd(a,b){var c=String(a),d=c.indexOf(".");if(d==-1)d=c.length;d=Math.max(0,b-d);return Array(d+1).join("0")+c}function Ed(a){return Array.prototype.join.call(arguments,"")}
function Fd(a,b){for(var c=0,d=hd(String(a)).split("."),e=hd(String(b)).split("."),f=Math.max(d.length,e.length),g=0;c==0&&g<f;g++){var i=d[g]||"",j=e[g]||"",k=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var m=k.exec(i)||["","",""],p=n.exec(j)||["","",""];if(m[0].length==0&&p[0].length==0)break;c=Gd(m[1].length==0?0:parseInt(m[1],10),p[1].length==0?0:parseInt(p[1],10))||Gd(m[2].length==0,p[2].length==0)||Gd(m[2],p[2])}while(c==0)}return c}
function Gd(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};var Hd=!1,Id=!1;$(window).load(function(){Hd=!0});var Jd=0;$(document).ajaxStart(function(){Jd++});$(document).ajaxStop(function(){Jd--;Hd&&Jd<=0&&(Id=!0,$(document).triggerHandler("ajaxSettled"))});function Kd(a){function b(){setTimeout(a,1)}Id?b():$(document).bind("ajaxSettled",b)}
function Ld(a){var b="";$(a).find(":enabled:input[name][type!=submit][type!=checkbox][type!=radio],input[type=hidden]").each(function(){b+=b==""?"":"&";b+=encodeURIComponent(this.name)+"="+encodeURIComponent(this.value)});$(a).find(":enabled:checked[name]").each(function(){b+=b==""?"":"&";b+=encodeURIComponent(this.name)+"="+encodeURIComponent(this.value)});return b}
function Md(){var a={};$("#ajaxForm-content").find(":enabled:input[name][type!=submit][type!=checkbox][type!=radio],input[type=hidden]").each(function(){a[this.name]=this.value});$("#ajaxForm-content").find(":enabled:checked[name]").each(function(){a[this.name]=this.value});return a}var Nd=l;function Od(){if(Nd)return Nd;var a,b;b=$('<div style="width:40px;height:40px;overflow:auto;"><div/></div>').appendTo("body");a=b.children();a=a.innerWidth()-a.height(99).innerWidth();b.remove();return Nd=a}
var Pd={Shift:"&#x21e7;",Ctrl:"&#x2318;",Alt:"&#x2325;"};function Qd(a){for(var b="",c=a[0],b=Rd&&Pd[c]?Pd[c]:c,d=1;d<a.length;d++)c=a[d],b+=(Rd?"":"+")+(Rd&&Pd[c]?Pd[c]:c);return b}
function Sd(a,b){function c(a,b,c,d){a=c-a;b=d-b;return Math.sqrt(a*a+b*b)}function d(a,b,c,d){a=c-a;b=d-b;d=Math.sqrt(a*a+b*b);return d==0?{x:0,y:0}:{x:a/d,y:b/d}}if(b==0)return a;for(var e=0,f=0,g=0;g<a.length;g++)if(!a[g].NoRounding&&a[g].Actions!=l){for(var i=0;i<a[g].Actions.length-1;i++){var j=a[g].Actions[i],k=a[g].Actions[i+1];k.Action=="close"&&(k={Action:"line",x:a[g].Actions[0].x,y:a[g].Actions[0].y});if(j.Action=="line"&&k.Action=="line"){var n=d(j.x,j.y,e,f),m=d(j.x,j.y,k.x,k.y),k=c(j.x,
j.y,k.x,k.y);c(j.x,j.y,e,f)<b||k<b?(e=j.x,f=j.y):(a[g].Actions.splice(i+1,0,{Action:"curve",Control:[{x1:j.x+n.x*b*0.4477152502,y1:j.y+n.y*b*0.4477152502,x2:j.x+m.x*b*0.4477152502,y2:j.y+m.y*b*0.4477152502,x3:j.x+m.x*b,y3:j.y+m.y*b}]}),e=j.x+m.x*b,f=j.y+m.y*b,j.x+=n.x*b,j.y+=n.y*b,i++)}else if(j.Action=="move"||j.Action=="line")e=j.x,f=j.y;else if(j.Action=="curve"&&j.Control.length>0)e=j.Control[j.Control.length-1].x3,f=j.Control[j.Control.length-1].y3}a[g].Actions.length&&a[g].Actions[a[g].Actions.length-
1].Action=="close"&&a[g].Actions[0].Action=="move"&&a[g].Actions[1].Action=="line"&&(k=a[g].Actions[1],n=d(a[g].Actions[0].x,a[g].Actions[0].y,e,f),m=d(a[g].Actions[0].x,a[g].Actions[0].y,k.x,k.y),a[g].Actions.splice(1,0,{Action:"curve",Control:[{x1:a[g].Actions[0].x+n.x*b*0.4477152502,y1:a[g].Actions[0].y+n.y*b*0.4477152502,x2:a[g].Actions[0].x+m.x*b*0.4477152502,y2:a[g].Actions[0].y+m.y*b*0.4477152502,x3:a[g].Actions[0].x+m.x*b,y3:a[g].Actions[0].y+m.y*b}]}),a[g].Actions[0].x+=n.x*b,a[g].Actions[0].y+=
n.y*b)}return a}function Ua(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=Math.random()*16|0;return(a=="x"?b:b&3|8).toString(16)})}
function Td(a){if(!a.match(/^[^@]{1,64}@[^@]{1,255}$/))return!1;for(var a=a.split("@"),b=a[0].split("."),c=0;c<b.length;c++)if(!b[c].match(/^(([A-Za-z0-9!#$%&'*+\/=?^_`{|}~-][A-Za-z0-9!#$%&'*+\/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$/))return!1;if(!a[1].match(/^\[?[0-9\.]+\]?$/)){a=a[1].split(".");if(a.length<2)return!1;for(b=0;b<a.length;b++)if(!a[b].match(/^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$/))return!1}return!0}
function Ud(a){for(var a=a.replace(/\"[^\"]+\"/g,""),a=a.replace(/<([^>]+)>/g," $1 "),a=a.replace(/[\s,]+/g," "),a=a.split(" "),b=[],c=0;c<a.length;c++)Td(a[c])&&b.push(a[c]);return b}t("goog.json.serialize",nd);t("goog.json.parse",gc);t("goog.isArray",la);t("goog.isObject",qa);t("goog.bind",r);t("goog.string.htmlEscape",wd);var Vd=navigator.userAgent.toLowerCase(),Wd=parseInt(navigator.appVersion,10),Xd=Vd.indexOf("msie")!=-1,Yd=Xd&&Wd==4&&Vd.indexOf("msie 6.")!=-1,Zd=Xd&&Wd==4&&Vd.indexOf("msie 7.")!=-1,$d=Xd&&Vd.indexOf("msie 8.")!=-1,ae=Xd&&Wd==5&&Vd.indexOf("msie 9.")!=-1,be=Xd&&ae,ce=Vd.toLowerCase().indexOf("iphone")!=-1,de=Vd.toLowerCase().indexOf("ipod")!=-1,ee=Vd.toLowerCase().indexOf("ipad")!=-1,fe=Vd.toLowerCase().indexOf("android")!=-1,Ya=ce||de||ee||fe,ge=navigator.appVersion.search("Safari")!=-1&&navigator.appVersion.search("Chrome")==
-1,he=navigator.appVersion.search("Chrome")!=-1,ie=Xd&&Vd.indexOf("chromeframe")!=-1,je=/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent),ke=Vd.indexOf("win")!=-1||Vd.indexOf("16bit")!=-1,Rd=Vd.indexOf("mac")!=-1,le=Vd.indexOf("inux")!=-1;t("lucid.useragent.is_mac",Rd);t("lucid.useragent.is_linux",le);t("lucid.useragent.is_win",ke);t("lucid.useragent.is_ie",Xd);t("lucid.useragent.is_firefox",je);t("lucid.useragent.is_safari",ge);t("lucid.useragent.is_chrome",he);
t("lucid.useragent.is_chromeframe",ie);function ne(a){this.ready=!0;this.md=a;this.mh=!0;this.be={};this.hy={};this.wi={};this.sm={}}q=ne.prototype;q.wq=o();q.jp=function(a,b){b(l)};q.kp=function(a){a(l)};q.xq=o();q.Ig=function(a,b){b(l)};q.Vr=function(a){a={id:Ua(),document_id:a,base:0,changes:[]};this.lh(a);return a};q.Sn=function(a){return ld(new kd(a.id,a.visio?45:15))};q.Es=function(a){ld(new kd(a.id,15),!0)};q.Fu=function(a){(new kd(a.id,15)).pc()};q.lh=function(a,b){this.wi[a.id]=a;b&&b()};q.Eh=function(a){delete this.wi[a.id]};
q.ip=function(a,b){b(this.wi[a])};q.tm=function(a,b){var c=[],d;for(d in this.wi)(a===l||this.wi[d].document_id==a)&&c.push(this.wi[d]);b(c)};q.Mo=function(a){a in this.be&&delete this.be[a]};q.vn=function(a,b,c,d){var e=this;if(b)for(var f in e.be)nc(c,e.be[f].Document.id)||delete e.be[f];A(a,function(a){a.id=a.Document.id;a.saved=a.Document.saved;a.title=a.Document.title.toLowerCase();a.size=jd("%020d",parseInt(a.Document.size,10));a.created=a.Document.created;e.be[a.id]=a});d&&d()};
q.Zb=function(a,b){b(this.be[a])};q.sk=function(a,b){var c=this,d={};A(a,function(a){d[a]=c.be[a]||l});b(d)};q.Lp=function(a){var b={};F(this.be,function(a,d){b[a]=d.Document.action_history_length});a(b)};q.vq=function(a,b,c){var d=this;if(b)d.sm={};A(a,function(a){a.id=a.FolderEntry.id;d.sm[a.id]=a});c&&c()};q.tk=function(a){var b=[],c;for(c in this.sm)b.push(this.sm[c]);a(b)};var oe=[];function pe(a){if(oe.length==0||oe[0]!=a)ib(oe,a),oe.unshift(a),J.set("context",oe)}function qe(a){ib(oe,a)!=-1&&J.set("context",oe)}pe("default");t("lucid.context.enter",pe);t("lucid.context.exit",qe);function re(a,b,c){var a=a||{},d=this;this.input=l;this.J=$(y({Q:"input-text"+(a.Q?" "+a.Q:""),children:[{Q:"input-text-textbox",children:[{R:"input",type:"text",Q:a.Rk?"number":"",attr:a.maxLength?{maxlength:a.maxLength}:{},create:function(b){d.input=b;b.change(function(){d.ha||d.va(d.input.val())});b.keydown(function(a){a.keyCode==13&&(d.va(d.input.val()),a.preventDefault())});(a.Xo||a.Zo)&&b.keyup(function(b){b.keyCode==13&&a.Xo?a.Xo():b.keyCode==27&&a.Zo&&a.Zo()})}}]}]}));this.ha=a.disabled||
!1;this.Rk=a.Rk||!1;this.min=a.min||0;this.max=a.max||100;this.step=a.step||1;this.Ji=a.Ji||3;this.La=a.La||"";this.Ba=a.Ba||(this.Rk?0:"");this.va(a.value||this.Ba,!0);this.Fa=[];a.change&&this.Wb(a.change);b&&this.appendTo(b,c);this.ha&&this.disable()}q=re.prototype;
q.va=function(a,b){if(a!=this.value){if(this.Rk)if(a=parseFloat(a),isNaN(a)){if(this.Ba!==l)this.value=this.Ba}else{if(this.value=a>this.max?this.max:a<this.min?this.min:a,this.step)this.value=Math.round(this.value/this.step)*this.step}else this.value=a||this.Ba||"";this.Cb(!!b)}this.input.val(na(this.value)?this.value:this.value.toFixed(this.Ji).replace(/\.?0*$/,"")+this.La)};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};
q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};q.ca=function(a){if(this.ha)return this;this.va(a,!0);return this};q.sb=ea("value");q.reset=function(){this.Ba!==l&&this.va(this.Ba,!0);return this};q.Wb=function(a){this.Fa.push(a);return this};q.focus=function(){this.ha||this.input.focus();return this};q.blur=function(){this.ha||this.input.blur();return this};q.enable=function(){this.J.removeClass("disabled");this.input.removeAttr("disabled");this.ha=!1;return this};
q.disable=function(){this.J.addClass("disabled");this.input.attr("disabled","disabled");this.ha=!0;return this};q.destroy=function(){this.J.remove();this.Fa=l};function se(a,b){var c=this,b=b||{};b.Rt=b.Rt||!1;Da||(Da=$(y({Q:"dialog-container"})).appendTo("body"));this.parent=Da;this.xi=this.fe=this.body=this.title=this.$b=this.J=l;var d={};b.$c&&(d={Q:"icon-13-button",create:function(a){a.click(function(){c.close()})},children:[{Q:"icon-13 icon-13-close"}]});this.Wc=$(y({Q:"dialog-overlay"+(b.Ld?" modal":""),children:[{Q:"dialog",create:function(a){c.J=a},children:[{Q:"dialog-wrapper",children:[{Q:"dialog-header",children:[{R:"span",text:b.title||"LucidChart",
create:function(a){c.title=a}},d],create:function(a){c.$b=a}},{Q:"dialog-body",create:function(a){c.body=a}},{Q:"dialog-footer",create:function(a){c.fe=a},children:[{Q:"buttons",create:function(a){c.xi=a}}]}]}]}]}));this.Lo=l;this.aq=b.open||l;this.$p=b.close||l;this.ko=!1;c.J.draggable({handle:".dialog-header"});c.$b.mousedown(function(){var a=c.J.offset().left;c.J.css({"margin-left":"0",left:a+"px"})});a&&this.kd(a);if(b.hb){if(pa(b.hb)){var e=b.hb;b.hb=[{label:"Cancel",action:function(a,b){b.close()}},
{label:"OK",action:function(a,b){e()!=!1&&b.close()}}]}A(b.hb||[],function(a){c.xi.append(y({Q:"button"+(a.Pg?" highlight":""),text:a.label,create:function(b){if(a.Pg)c.Lo=r(a.action,c,l);a.create&&a.create(b);b.click(function(b){a.action(b,c)})}}))})}else b.fe?this.fe.empty().append(y(b.fe)):this.J.addClass("nobuttons");b.width&&this.J.css("width",b.width);b.Ld||(this.J.click(function(a){a.stopPropagation()}),this.Wc.click(function(){c.close()}));J("dialog.close",function(){te[0]==c&&!b.Rt&&c.close()});
J("dialog.default",function(){te[0]==c&&c.Lo&&c.Lo(c)});this.close();this.Wc.appendTo(this.parent)}q=se.prototype;q.kd=function(a){this.body.empty().append($(y(a)));return this};q.find=function(a){return $(this.body).find(a)};
q.open=function(){if(this.aq&&this.aq()==!1)return this;ib(te,this);te.unshift(this);pe("dialog");var a=$(window).height();this.Wc.appendTo(this.parent).show();this.body.css({"max-height":a-this.fe.outerHeight()-this.$b.outerHeight()-100+"px"});this.J.css({"margin-left":Math.round(-this.J.outerWidth()/2)+"px",top:Math.max(Math.min(150,(a-this.J.outerHeight())/2),0)+"px",left:""});this.ko=!0;return this};
q.close=function(){if(this.$p&&this.$p()==!1)return this;ib(te,this);te.length==0&&qe("dialog");this.Wc.hide();this.ko=!1;try{document.activeElement&&$(document.activeElement).is(":input")&&document.activeElement.blur()}catch(a){}return this};q.hc=ea("ko");var te=[];
function L(a,b){var c=L.Wh;if(!c.dialog)c.dialog=new se("",{Ld:!0,$c:!0,hb:[{label:"OK",Pg:!0,action:function(a,b){c.wd&&c.wd(a,b);b.close()}}]}),c.dialog.J.addClass("alert");c.wd=b||l;c.dialog.kd(a).open();return function(){c.dialog.close()}}L.Wh={};
function ue(a,b,c){var d=ue.Wh;if(!d.dialog)d.dialog=new se("",{Ld:!0,$c:!0,hb:[{label:"Cancel",action:function(a,b){d.cancel&&d.cancel();b.close()}},{label:"OK",Pg:!0,action:function(a,b){d.wd()!=!1&&b.close()}}]}),d.dialog.J.addClass("confirm");d.wd=b;d.cancel=c||l;d.dialog.kd(a).open()}ue.Wh={};
function ve(a,b,c,d){var e=ve.Wh;if(!e.dialog)e.dialog=new se("",{Ld:!0,$c:!0,hb:[{label:"Cancel",action:function(a,b){e.cancel&&e.cancel();b.close()}},{label:"OK",Pg:!0,action:function(a,b){e.wd(String(e.On.sb()))!=!1&&b.close()}}]}),e.dialog.J.addClass("prompt"),e.On=new re({Xo:function(){J.set("dialog.default")},Zo:function(){J.set("dialog.close")}});e.wd=c;e.cancel=d||l;e.On.ca(b);e.dialog.kd(y({children:[a,{Q:"spacer"},e.On.J]})).open();e.On.input.select().focus()}ve.Wh={};
function we(a,b,c,d,e){var f=we.Wh;if(!f.dialog)f.dialog=new se("",{Ld:!0,$c:!0,hb:[{label:"Cancel",action:function(a,b){f.cancel&&f.cancel();b.close()}},{label:"OK",Pg:!0,action:function(a,b){f.wd(String(f.Cj.val()))!=!1&&b.close()}}]});e=e?e:{};e.resize||(e.resize="vertical");e.height||(e.height="240px");e.width||(e.width="376px");f.wd=c;f.cancel=d||l;f.Cj=l;f.dialog.kd(y({children:[a,{Q:"spacer"},{R:"textarea",css:e,create:function(a){f.Cj=a;a.val(b)}}]})).open();f.Cj.select().focus()}we.Wh={};
function xe(a,b,c,d){function e(a){g.aq=function(){d&&d()};g.$p=function(){$(document).unbind("ajaxFormSuccess");f.Yd=l};var a=$("<div>"+a+"</div>"),b=a.find("form:last").get(0);$(b).hasClass("inline")&&$(b).find("label").addClass("inline");a='<div id="ajaxForm-content" class="ajaxForm-content">'+$(b).html()+"</div>";$("body").append("<div id='jqFormSizeChecker' style='width:800px;position:absolute;left:-100000px;'><div id='jqFormSizeCheckerFloat' style='float:left;'>"+a+"</div></div>");$("#jqFormSizeCheckerFloat").find("p").css("maxWidth",
"400px");var k=$("#jqFormSizeCheckerFloat").width();$("#jqFormSizeChecker").remove();g.kd(a);g.J.css("width",k+50+"px");g.open();g.J.find("a :not(.samepage)").attr("target","_blank");g.J.find("input:visible:first").focus();g.J.find("input[name=cancel]").attr("onclick","").click(function(){g.close()});g.J.find("input[type=submit]").click(function(a){a.preventDefault();f.Yd=l;var d=!0;$.ajax({type:b.method,url:b.action,data:Ld(g.J),success:function(a){$("<div>"+a+"</div>").find(".error-message,.form-error").size()>
0?(xe(a,!0,c),d=!1):c&&c(a)},error:o(),complete:function(){d&&g.close()}})});g.J.find("a.ajax_form_button").click(function(a){f.Yd=l;a.preventDefault();var b=!1;$.ajax({type:"GET",url:$(this).attr("href"),data:"NoSSLChange=true",success:function(a){try{if($("<div>"+a+"</div>").find("form").size()>0){g.close();e(a);b=!0;return}}catch(d){}c&&c()},error:o(),complete:function(){b||g.close()}})});g.J.find(".offline_form_button").click(function(){var a=Md();c&&c(a);g.close()})}var f=ye;if(!(f.Yd&&f.Yd==
a)){f.Yd=a;if(!f.dialog)f.dialog=new se({},{width:700,Ld:!0,$c:!0});var g=f.dialog;b?e(a):$.ajax({type:"GET",url:a,success:function(a){e(a)}})}}var ye={Yd:l};t("lucid.view.textAreaPrompt",we);t("lucid.view.prompt",ve);t("lucid.view.alert",L);t("lucid.view.confirm",ue);function ze(a,b){for(var c=0;c<a.rows.length;c++)b(a.rows.item(c))}
function Ae(a){var b=this;this.md=a;var c=this.ready=this.mh=!1;this.error=function(d){if(!c){c=!0;d.code==4?he?L("<p>Your browser is denying LucidChart additional storage. \nLucidChart will now disable offline support until this problem is\nresolved.</p>\n<p>Please install the app <a href='https://chrome.google.com/webstore/detail/apboafhkiegglekeafbckfjldecefkhn'\ntarget='_blank'>here</a> to increase this limit. If you have already installed\nthis app in the past, you may need to uninstall it and reinstall\nfrom the link above.</p>"):L("Your browser is denying LucidChart additional storage. \nLucidChart will now disable offline support until this problem is\nresolved."):
L("<p>An offline storage error has occurred: "+d.message+"</p>\n<p>LucidChart will now disable offline support.</p>");var d=new ne(a),f;for(f in d)b[f]=d[f];for(f in b)!f in d&&delete b[f];$(document).triggerHandler("offlineRefreshAll")}};var d=262144E3;if(ee||ce)d=52428800;this.db=openDatabase("lucid10-"+a,"1.0","LucidChart offline storage",d);this.db.readTransaction(function(a){b.executeSql(a,"select count(*) from documents")},function(){b.db.transaction(function(a){b.executeSql(a,"create table documents(id, saved, title, created, creator_id, size, template, data, state, pdfdata)");
b.executeSql(a,"create table actions(id, data)");b.executeSql(a,"create table branches(id, data)");b.executeSql(a,"create table folder_entries(id, data)");b.executeSql(a,"create table fonts(url, data)");b.executeSql(a,"create table images(url, data)")},b.error,function(){b.ready=!0})},function(){b.ready=!0})}q=Ae.prototype;q.executeSql=function(a,b,c,d,e){a.executeSql(b,c,function(a,b){d&&d(a,b)},e)};
q.wq=function(a,b){var c=this;this.ready?this.db.transaction(function(d){c.executeSql(d,"delete from fonts where url=?",[a]);c.executeSql(d,"insert into fonts(url, data) values(?,?)",[a,b])},this.error):setTimeout(r(this.wq,this,a,b),10)};q.jp=function(a,b){var c=this;this.ready?this.db.readTransaction(function(d){c.executeSql(d,"select data from fonts where url=?",[a],function(a,c){c.rows.length==0?b(l):b(c.rows.item(0).data)})},this.error):setTimeout(r(this.jp,this,a,b),10)};
q.kp=function(a){var b=this;this.ready?this.db.readTransaction(function(c){b.executeSql(c,"select url from fonts",[],function(b,c){c.rows.length==0?a(l):a(c.rows.item(0).data)})},this.error):setTimeout(r(this.kp,this,a),10)};q.xq=function(a,b){var c=this;this.ready?this.db.transaction(function(d){c.executeSql(d,"delete from images where url=?",[a]);c.executeSql(d,"insert into images(url, data) values(?,?)",[a,b])},this.error):setTimeout(r(this.xq,this,a,b),10)};
q.Ig=function(a,b){var c=this;this.ready?this.db.readTransaction(function(d){c.executeSql(d,"select data from images where url=?",[a],function(a,c){c.rows.length==0?b(l):b(c.rows.item(0).data)})},this.error):setTimeout(r(this.Ig,this,a,b),10)};q.Vr=function(a){a={id:Ua(),document_id:a,base:0,changes:[]};this.lh(a);return a};q.Sn=function(a){return ld(new kd(a.id,15))};q.Es=function(a){ld(new kd(a.id,15),!0)};q.Fu=function(a){(new kd(a.id,15)).pc()};
q.lh=function(a,b){var c=this;this.ready?this.db.transaction(function(b){c.executeSql(b,"delete from branches where id=?",[a.id]);c.executeSql(b,"insert into branches(id, data) values(?,?)",[a.id,nd(a)])},this.error,b||o()):setTimeout(r(this.lh,this,a,b),10)};q.Eh=function(a){var b=this;this.ready?this.db.transaction(function(c){b.executeSql(c,"delete from branches where id=?",[a.id])},this.error):setTimeout(r(this.Eh,this,a),10)};
q.ip=function(a,b){var c=this;this.ready?this.db.readTransaction(function(d){c.executeSql(d,"select data from branches where id=?",[a],function(a,c){c.rows.length==0?b(l):b(md(c.rows.item(0).data))})},this.error):setTimeout(r(this.ip,this,a,b),10)};
q.tm=function(a,b){var c=this;this.ready?this.db.readTransaction(function(d){c.executeSql(d,"select data from branches",[],function(c,d){var g=[];ze(d,function(b){b=md(b.data);(a==l||a==b.document_id)&&g.push(b)});b(g)})},this.error):setTimeout(r(this.tm,this,a,b),10)};q.Mo=function(a){var b=this;this.ready?this.db.transaction(function(c){b.executeSql(c,"delete from documents where id=?",[a])}):setTimeout(r(this.Mo,this,a),10)};
q.vn=function(a,b,c,d){var e=this;this.ready?this.db.transaction(function(d){if(b){var g=[],i=[];A(a,function(a){g.push(a.Document.id);i.push("?")});A(c,function(a){g.push(a);i.push("?")});e.executeSql(d,"delete from documents where id not in ("+i.join(",")+")",g)}A(a,function(a){var c=""+a.Document.id;b||e.executeSql(d,"delete from documents where id=?",[c]);var g=a.Document.state,i=a.Document.pdfdata;delete a.Document.state;delete a.Document.pdfdata;e.executeSql(d,"insert into documents(id, data, saved, title, size, created, creator_id, template, state, pdfdata) values(?,?,?,?,?,?,?,?,?,?)",
[c,nd(a),a.Document.saved,a.Document.title.toLowerCase(),jd("%020d",parseInt(a.Document.size,10)),a.Document.created,a.Document.creator_id,a.Template&&a.Template.id?1:0,g,i]);a.Document.state=g;a.Document.pdfdata=i})},this.error,d):setTimeout(r(this.vn,this,a,b,d),10)};
q.Zb=function(a,b){var c=this,a=""+a;this.ready?this.db.readTransaction(function(d){c.executeSql(d,"select data, state, pdfdata from documents where id=?",[a],function(a,c){if(c.rows.length>0){var d=md(c.rows.item(0).data);d.Document.state=c.rows.item(0).state;d.Document.pdfdata=c.rows.item(0).pdfdata;b(d)}else b(l)})},this.error):setTimeout(r(this.Zb,this,a,b),10)};
q.sk=function(a,b){var c=this;if(this.ready){for(var d=[],e=0;e<a.length;e++)a[e]=""+a[e],d.push("?");this.db.readTransaction(function(e){c.executeSql(e,"select data from documents where id in ("+d.join(",")+")",a,function(a,c){var d={};ze(c,function(a){a=md(a.data);d[""+a.Document.id]=a});b(d)})},this.error)}else setTimeout(r(this.sk,this,a,b),10)};
q.Lp=function(a){var b=this;this.ready?this.db.readTransaction(function(c){b.executeSql(c,"select data from documents",[],function(b,c){var f={};ze(c,function(a){a=md(a.data);f[""+a.Document.id]=a.Document.action_history_length});a(f)})},this.error):setTimeout(r(this.Lp,this,a),10)};
q.vq=function(a,b,c){var d=this;this.ready?this.db.transaction(function(c){if(b)d.executeSql(c,"delete from folder_entries");else{var f=[],g=[];A(a,function(a){f.push(a.FolderEntry.id);g.push("?")});d.executeSql(c,"delete from folder_entries where id in ("+g.join(",")+")",f)}A(a,function(a){d.executeSql(c,"insert into folder_entries(id,data) values(?,?)",[a.FolderEntry.id,nd(a)])})},this.error,c):setTimeout(r(this.vq,this,a,b,c),10)};
q.tk=function(a){var b=this;this.ready?this.db.readTransaction(function(c){b.executeSql(c,"select data from folder_entries",[],function(b,c){var f=[];ze(c,function(a){f.push(md(a.data))});a(f)})},this.error):setTimeout(r(this.tk,this,a),10)};var Be={},Ce=!0;function De(a){Be[a]||(Be[a]=window.openDatabase&&!Ce?new Ae(a):new ne(a));return Be[a]};var Ee=[37,39,38,40,36,35,33,34];function Fe(a,b){this.dd=[];this.dj={};this.id="SuperCanvas"+Math.floor(Math.random()*1E6)+Math.floor(Math.random()*1E6)+Math.floor(Math.random()*1E6)+Math.floor(Math.random()*1E6);this.container=this.J=$(document.createElement("div"));this.J.attr("id",this.id);this.J.css({position:"relative",overflow:"hidden"});this.$f="default";this.resize(a,b)}q=Fe.prototype;q.empty=function(){for(;this.dd.length>0;)this.dd[0].destroy();this.dd=[];this.dj={}};q.destroy=function(){this.J.remove();this.J=l;this.empty()};
q.resize=function(a,b){this.width=a;this.height=b;this.J.get(0).style.width=this.width+"px";this.J.get(0).style.height=this.height+"px";this.J.triggerHandler("resize")};function Ge(a,b){b.te=a;return!a.dj[b.id]?(a.dd.push(b),a.J.get(0).appendChild(b.J.get(0)),a.dj[b.id]=!0):!1}function He(a,b){if(a.dj[b.id])a.dd.splice(oc(a.dd,b),1),b.J&&b.J.remove(),b.te=l,delete a.dj[b.id]}
function Ie(a,b){for(var c=0,d=0;d<a.dd.length;d++)if(b(a.dd[d])){a.dd[d].te=l;var e=a.dd[d].J.get(0);e.parentNode&&e.parentNode.removeChild(e);delete a.dj[a.dd[d].id];a.dd.splice(d,1);c++;d--}}q.bind=function(a,b){this.J.bind(a,b)};q.unbind=function(a,b){this.J.unbind(a,b)};q.cursor=function(a){if(this.$f!=a)this.J.css({cursor:a}),this.$f=a};
function Je(a,b,c,d,e){this.id=++Ke;this.J=$(document.createElement("div")).css({position:"absolute"});this.canvas=$(document.createElement("canvas"));this.J.append(this.canvas);this.zm=this.Rl=this.Rm=l;this.Zr=1;this.context=l;this.canvas.css({position:"absolute",left:0,top:0});this.move(a,b,c,d,e==l?5:e);this.canvas=fb(this.canvas.get(0))}Je.prototype.destroy=function(){this.te&&He(this.te,this);this.J.remove();this.context=this.canvas=this.J=l};
Je.prototype.opacity=function(a){if(a!=this.Zr)this.J.css("opacity",a),this.Zr=a};Je.prototype.copy=function(){var a=new Je(this.x,this.y,this.width,this.height,this.padding);a.getContext().drawImage(this.canvas.get(0),-this.padding,-this.padding);for(var b in this)b in a||(a[b]=this[b]);return a};var Ke=0;
Je.prototype.move=function(a,b,c,d,e){if(!(a==l||a==this.x)||!(b==l||b==this.y)||!(c==l||c==this.width)||!(d==l||d==this.height)||!(e==l||e==this.padding)){if(he&&ke&&window.location.search!="?bug"&&this.width!=l&&c!=l&&(c!=this.width||d!=this.height||e&&e!=this.padding)){var f=this.canvas;this.canvas=$(document.createElement("canvas"));this.J.append(this.canvas);this.context=l;this.canvas.css({position:"absolute",left:0,top:0});this.canvas=fb(this.canvas.get(0));f.replaceWith(this.canvas)}if(a!=
l)this.x=a;if(b!=l)this.y=b;if(c!=l)this.width=c;if(d!=l)this.height=d;if(e!=l&&e!=this.padding)this.J.find("div").each(function(){if($(this).attr("layerOverlayX")!=l)$(this).get(0).style.left=parseFloat($(this).attr("layerOverlayX"))+e+"px";if($(this).attr("layerOverlayY")!=l)$(this).get(0).style.top=parseFloat($(this).attr("layerOverlayY"))+e+"px"}),this.padding=e;if(this.canvas.get(0).getAttribute("width")!=this.width+this.padding*2)this.canvas.get(0).setAttribute("width",this.width+this.padding*
2),this.J.get(0).style.width=this.width+this.padding*2+"px";if(this.canvas.get(0).getAttribute("height")!=this.height+this.padding*2)this.canvas.get(0).setAttribute("height",this.height+this.padding*2),this.J.get(0).style.height=this.height+this.padding*2+"px";this.J.get(0).style.left=Math.round(this.x-this.padding)+"px";this.J.get(0).style.top=Math.round(this.y-this.padding)+"px"}};
function fb(a){window.G_vmlCanvasManager&&(a=window.G_vmlCanvasManager.initElement($(a).get(0)));a=$(a);a.Oc=a.get(0).getContext("2d");a.getContext=ea("Oc");a.Oc.yd=function(a){for(var b=0;b<a.length;b++)if(a[b].Action=="move")this.moveTo(a[b].x,a[b].y);else if(a[b].Action=="line")this.lineTo(a[b].x,a[b].y);else if(a[b].Action=="close")this.closePath();else if(a[b].Action=="curve")for(var c=0;c<a[b].Control.length;c++){var d=a[b].Control[c];this.bezierCurveTo(d.x1,d.y1,d.x2,d.y2,d.x3,d.y3)}};a.Oc.Wo=
function(a,b,c,d){a=Xb(a,b,c,d,h,h,!0);this.moveTo(a[0].x,a[0].y);for(b=1;b<a.length;b++)c=a[b],this.bezierCurveTo(c.x1,c.y1,c.x2,c.y2,c.x3,c.y3)};if(a.Oc.Ii==l){a.Oc.Ii=1;var b=a.Oc.scale;a.Oc.scale=function(c,d){b.call(a.Oc,c,d);a.Oc.Ii*=c};var c=a.Oc.save,d=a.Oc.restore,e=[];a.Oc.save=function(){c.call(a.Oc);e.unshift(a.Oc.Ii)};a.Oc.restore=function(){d.call(a.Oc);a.Oc.Ii=e[0];e.shift()}}return a}
Je.prototype.getContext=function(){if(this.context==l){var a=this.canvas.get(0),a=fb(a);this.context=a.getContext();this.context.save()}this.context.restore();this.context.save();this.context.clearRect(0,0,this.width+this.padding*2,this.height+this.padding*2);this.context.translate(this.padding,this.padding);return this.context};var Le=fb($("<canvas></canvas>"));
function Me(a){var b=Le.getContext(),c=a.canvas.width,d=a.canvas.height;b.canvas.width=c;b.canvas.height=d;b.clearRect(0,0,c,d);b.drawImage(a.canvas,0,0,c,d);return b};var Ne,$c=/\s/.test("\u00a0")?/[^\S\u00a0]/:/\s/;function Zc(a){this.text=a.text||"";this.ff=a.ff||"Liberation Sans";this.size=a.size||config.defaultTextSize;this.color=a.color||"000000";if(a.qc)this.qc=a.qc;if(a.bc)this.bc=a.bc;if(a.Zh)this.Zh=a.Zh;if(a.Ei)this.Ei=a.Ei;if(a.bold)this.bold=a.bold;if(a.ic)this.ic=a.ic;if(a.Qf)this.Qf=a.Qf;if(a.strike)this.strike=a.strike;if(a.error)this.error=a.error;if(a.Ic)this.Ic=a.Ic;if(a.kb)this.kb=a.kb}
Zc.prototype.serialize=function(){return{t:this.text,f:this.ff,s:this.size,c:this.color,w:!!this.qc,l:!!this.bc,p:!!this.Zh,cb:!!this.Ei,b:!!this.bold,i:!!this.ic,u:!!this.Qf,k:!!this.strike,o:!!this.kb,ib:this.Ic}};function bd(a,b){this.content=a;this.style=b;for(var c in yc)c in this.style||(this.style[c]=xc[c])}
function Oe(a){this.yb=a.face["font-family"];this.bold=a.face["font-weight"]>400;this.ic=nc(["italic","oblique"],a.face["font-style"].toLowerCase());this.Ga=a.face.ascent;this.Mb=a.face.descent;this.kc=a.face["units-per-em"];this.ni=a.face["underline-position"];this.Vn=a.face["underline-thickness"];this.De=a.w;this.yk=a.glyphs}var Pe={},Qe={},Re={};
function Se(){window.fontUrl==l&&(window.fontUrl="/fonts/user/0/");$.ajax({type:"GET",url:window.fontUrl,success:function(a){eval(a);J.set("optionBar.refresh");J.set("managefonts.refresh")}});Te={}}function Ue(){var a={},b=[],c;for(c in Pe)b.push(c);b.sort();A(b,function(b){a[b]=Pe[b]});return a}var Ve=l;
function We(a){var b=[],c={"Liberation Sans":1},d;for(d in Te)A(Te[d],function(a){if(a!="empty"&&d!="Liberation Sans")return c[d]=1,!1});Ve?F(Ve,function(a){c[a]=1}):Xe().kp(function(b){Ve={};b!=l&&b.length>0&&A(b,function(a){window.fontUrl==l&&(window.fontUrl="/fonts/user/0/");a=a.replace(window.fontUrl,"").replace(/\/[\s\S]*$/,"");Ve[decodeURIComponent(a)]=1});a&&a()});F(c,function(a){b.push(a)});b.sort();return b}var Te={},Ye=l,Ze=0;function Xe(){Ye==l&&(Ye=De("0"));return Ye}
function $e(a,b){Te[a]==l&&(Te[a]=[]);if(!nc(Te[a],b)){Te[a].push(b);window.fontUrl==l&&(window.fontUrl="/fonts/user/0/");var c=window.fontUrl+encodeURIComponent(a)+"/"+encodeURIComponent(b),d=function(a){eval(a);af={};bf={};setTimeout(function(){$(document).trigger("fontLoaded");J.set("font.loaded")},1)};Xe().jp(c,function(a){a==l?(Ze++,$.ajax({type:"GET",cache:!0,timeout:9E4,async:!0,url:c,success:function(a){d(a);Xe().wq(c,a)},complete:function(){Ze--}})):d(a)});return!1}return!0}
function cf(a,b){var c={"Basic Latin":["\x00","\u007f"],"C1 Controls and Latin-1 Supplement":["\u0080","\u00ff"],"Latin Extended-A":["\u0100","\u017f"],"Latin Extended-B":["\u0180","\u024f"],"IPA Extensions":["\u0250","\u02af"],"Spacing Modifier Letters":["\u02b0","\u02ff"],"Combining Diacritical Marks":["\u0300","\u036f"],"Greek-Coptic":["\u0370","\u03ff"],Cyrillic:["\u0400","\u04ff"],"Cyrillic Supplement":["\u0500","\u052f"],Armenian:["\u0530","\u058f"],Hebrew:["\u0590","\u05ff"],Arabic:["\u0600",
"\u06ff"],Syriac:["\u0700","\u074f"],Thaana:["\u0780","\u07bf"],Devanagari:["\u0900","\u097f"],"Bengali-Assamese":["\u0980","\u09ff"],Gurmukhi:["\u0a00","\u0a7f"],Gujarati:["\u0a80","\u0aff"],Oriya:["\u0b00","\u0b7f"],Tamil:["\u0b80","\u0bff"],Telugu:["\u0c00","\u0c7f"],Kannada:["\u0c80","\u0cff"],Malayalam:["\u0d00","\u0dff"],Sinhala:["\u0d80","\u0dff"],Thai:["\u0e00","\u0e7f"],Lao:["\u0e80","\u0eff"],Tibetan:["\u0f00","\u0fff"],Myanmar:["\u1000","\u109f"],Georgian:["\u10a0","\u10ff"],"Hangul Jamo":["\u1100",
"\u11ff"],Ethiopic:["\u1200","\u137f"],Cherokee:["\u13a0","\u13ff"],"Unified Canadian Aboriginal Syllabics":["\u1400","\u167f"],Ogham:["\u1680","\u169f"],Runic:["\u16a0","\u16ff"],Tagalog:["\u1700","\u171f"],Hanunoo:["\u1720","\u173f"],Buhid:["\u1740","\u175f"],Tagbanwa:["\u1760","\u177f"],Khmer:["\u1780","\u17ff"],Mongolian:["\u1800","\u18af"],Limbu:["\u1900","\u194f"],"Tai Le":["\u1950","\u197f"],"Khmer Symbols":["\u19e0","\u19ff"],"Phonetic Extensions":["\u1d00","\u1d7f"],"Latin Extended Additional":["\u1e00",
"\u1eff"],"Greek Extended":["\u1f00","\u1fff"],"General Punctuation":["\u2000","\u206f"],"Superscripts and Subscripts":["\u2070","\u209f"],"Currency Symbols":["\u20a0","\u20cf"],"Combining Diacritical Marks for Symbols":["\u20d0","\u20ff"],"Letterlike Symbols":["\u2100","\u214f"],"Number Forms":["\u2150","\u218f"],Arrows:["\u2190","\u21ff"],"Mathematical Operators":["\u2200","\u22ff"],"Miscellaneous Technical":["\u2300","\u23ff"],"Control Pictures":["\u2400","\u243f"],"Optical Character Recognition":["\u2440",
"\u245f"],"Enclosed Alphanumerics":["\u2460","\u24ff"],"Box Drawing":["\u2500","\u257f"],"Block Elements":["\u2580","\u259f"],"Geometric Shapes":["\u25a0","\u25ff"],"Miscellaneous Symbols":["\u2600","\u26ff"],Dingbats:["\u2700","\u27bf"],"Miscellaneous Mathematical Symbols-A":["\u27c0","\u27ef"],"Supplemental Arrows-A":["\u27f0","\u27ff"],"Braille Patterns":["\u2800","\u28ff"],"Supplemental Arrows-B":["\u2900","\u297f"],"Miscellaneous Mathematical Symbols-B":["\u2980","\u29ff"],"Supplemental Mathematical Operators":["\u2a00",
"\u2aff"],"Miscellaneous Symbols and Arrows":["\u2b00","\u2bff"],"CJK Radicals Supplement":["\u2e80","\u2eff"],"Kangxi Radicals":["\u2f00","\u2fdf"],"Ideographic Description Characters":["\u2ff0","\u2fff"],"CJK Symbols and Punctuation":["\u3000","\u303f"],Hiragana:["\u3040","\u309f"],Katakana:["\u30a0","\u30ff"],Bopomofo:["\u3100","\u312f"],"Hangul Compatibility Jamo":["\u3130","\u318f"],"Kanbun (Kunten)":["\u3190","\u319f"],"Bopomofo Extended":["\u31a0","\u31bf"],"Katakana Phonetic Extensions":["\u31f0",
"\u31ff"],"Enclosed CJK Letters and Months":["\u3200","\u32ff"],"CJK Compatibility":["\u3300","\u33ff"],"CJK Unified Ideographs Extension A":["\u3400","\u4dbf"],"Yijing Hexagram Symbols":["\u4dc0","\u4dff"],"CJK Unified Ideographs4E":["\u4e00","\u4eff"],"CJK Unified Ideographs4F":["\u4f00","\u4fff"],"CJK Unified Ideographs50":["\u5000","\u50ff"],"CJK Unified Ideographs51":["\u5100","\u51ff"],"CJK Unified Ideographs52":["\u5200","\u52ff"],"CJK Unified Ideographs53":["\u5300","\u53ff"],"CJK Unified Ideographs54":["\u5400",
"\u54ff"],"CJK Unified Ideographs55":["\u5500","\u55ff"],"CJK Unified Ideographs56":["\u5600","\u56ff"],"CJK Unified Ideographs57":["\u5700","\u57ff"],"CJK Unified Ideographs58":["\u5800","\u58ff"],"CJK Unified Ideographs59":["\u5900","\u59ff"],"CJK Unified Ideographs5A":["\u5a00","\u5aff"],"CJK Unified Ideographs5B":["\u5b00","\u5bff"],"CJK Unified Ideographs5C":["\u5c00","\u5cff"],"CJK Unified Ideographs5D":["\u5d00","\u5dff"],"CJK Unified Ideographs5E":["\u5e00","\u5eff"],"CJK Unified Ideographs5F":["\u5f00",
"\u5fff"],"CJK Unified Ideographs60":["\u6000","\u60ff"],"CJK Unified Ideographs61":["\u6100","\u61ff"],"CJK Unified Ideographs62":["\u6200","\u62ff"],"CJK Unified Ideographs63":["\u6300","\u63ff"],"CJK Unified Ideographs64":["\u6400","\u64ff"],"CJK Unified Ideographs65":["\u6500","\u65ff"],"CJK Unified Ideographs66":["\u6600","\u66ff"],"CJK Unified Ideographs67":["\u6700","\u67ff"],"CJK Unified Ideographs68":["\u6800","\u68ff"],"CJK Unified Ideographs69":["\u6900","\u69ff"],"CJK Unified Ideographs6A":["\u6a00",
"\u6aff"],"CJK Unified Ideographs6B":["\u6b00","\u6bff"],"CJK Unified Ideographs6C":["\u6c00","\u6cff"],"CJK Unified Ideographs6D":["\u6d00","\u6dff"],"CJK Unified Ideographs6E":["\u6e00","\u6eff"],"CJK Unified Ideographs6F":["\u6f00","\u6fff"],"CJK Unified Ideographs70":["\u7000","\u70ff"],"CJK Unified Ideographs71":["\u7100","\u71ff"],"CJK Unified Ideographs72":["\u7200","\u72ff"],"CJK Unified Ideographs73":["\u7300","\u73ff"],"CJK Unified Ideographs74":["\u7400","\u74ff"],"CJK Unified Ideographs75":["\u7500",
"\u75ff"],"CJK Unified Ideographs76":["\u7600","\u76ff"],"CJK Unified Ideographs77":["\u7700","\u77ff"],"CJK Unified Ideographs78":["\u7800","\u78ff"],"CJK Unified Ideographs79":["\u7900","\u79ff"],"CJK Unified Ideographs7A":["\u7a00","\u7aff"],"CJK Unified Ideographs7B":["\u7b00","\u7bff"],"CJK Unified Ideographs7C":["\u7c00","\u7cff"],"CJK Unified Ideographs7D":["\u7d00","\u7dff"],"CJK Unified Ideographs7E":["\u7e00","\u7eff"],"CJK Unified Ideographs7F":["\u7f00","\u7fff"],"CJK Unified Ideographs80":["\u8000",
"\u80ff"],"CJK Unified Ideographs81":["\u8100","\u81ff"],"CJK Unified Ideographs82":["\u8200","\u82ff"],"CJK Unified Ideographs83":["\u8300","\u83ff"],"CJK Unified Ideographs84":["\u8400","\u84ff"],"CJK Unified Ideographs85":["\u8500","\u85ff"],"CJK Unified Ideographs86":["\u8600","\u86ff"],"CJK Unified Ideographs87":["\u8700","\u87ff"],"CJK Unified Ideographs88":["\u8800","\u88ff"],"CJK Unified Ideographs89":["\u8900","\u89ff"],"CJK Unified Ideographs8A":["\u8a00","\u8aff"],"CJK Unified Ideographs8B":["\u8b00",
"\u8bff"],"CJK Unified Ideographs8C":["\u8c00","\u8cff"],"CJK Unified Ideographs8D":["\u8d00","\u8dff"],"CJK Unified Ideographs8E":["\u8e00","\u8eff"],"CJK Unified Ideographs8F":["\u8f00","\u8fff"],"CJK Unified Ideographs90":["\u9000","\u90ff"],"CJK Unified Ideographs91":["\u9100","\u91ff"],"CJK Unified Ideographs92":["\u9200","\u92ff"],"CJK Unified Ideographs93":["\u9300","\u93ff"],"CJK Unified Ideographs94":["\u9400","\u94ff"],"CJK Unified Ideographs95":["\u9500","\u95ff"],"CJK Unified Ideographs96":["\u9600",
"\u96ff"],"CJK Unified Ideographs97":["\u9700","\u97ff"],"CJK Unified Ideographs98":["\u9800","\u98ff"],"CJK Unified Ideographs99":["\u9900","\u99ff"],"CJK Unified Ideographs9A":["\u9a00","\u9aff"],"CJK Unified Ideographs9B":["\u9b00","\u9bff"],"CJK Unified Ideographs9C":["\u9c00","\u9cff"],"CJK Unified Ideographs9D":["\u9d00","\u9dff"],"CJK Unified Ideographs9E":["\u9e00","\u9eff"],"CJK Unified Ideographs9F":["\u9f00","\u9faf"],"Yi Syllables":["\ua000","\ua48f"],"Yi Radicals":["\ua490","\ua4cf"],
"Hangul SyllablesAC":["\uac00","\uacff"],"Hangul SyllablesAD":["\uad00","\uadff"],"Hangul SyllablesAE":["\uae00","\uaeff"],"Hangul SyllablesAF":["\uaf00","\uafff"],"Hangul SyllablesB0":["\ub000","\ub0ff"],"Hangul SyllablesB1":["\ub100","\ub1ff"],"Hangul SyllablesB2":["\ub200","\ub2ff"],"Hangul SyllablesB3":["\ub300","\ub3ff"],"Hangul SyllablesB4":["\ub400","\ub4ff"],"Hangul SyllablesB5":["\ub500","\ub5ff"],"Hangul SyllablesB6":["\ub600","\ub6ff"],"Hangul SyllablesB7":["\ub700","\ub7ff"],"Hangul SyllablesB8":["\ub800",
"\ub8ff"],"Hangul SyllablesB9":["\ub900","\ub9ff"],"Hangul SyllablesBA":["\uba00","\ubaff"],"Hangul SyllablesBB":["\ubb00","\ubbff"],"Hangul SyllablesBC":["\ubc00","\ubcff"],"Hangul SyllablesBD":["\ubd00","\ubdff"],"Hangul SyllablesBE":["\ube00","\ubeff"],"Hangul SyllablesBF":["\ubf00","\ubfff"],"Hangul SyllablesC0":["\uc000","\uc0ff"],"Hangul SyllablesC1":["\uc100","\uc1ff"],"Hangul SyllablesC2":["\uc200","\uc2ff"],"Hangul SyllablesC3":["\uc300","\uc3ff"],"Hangul SyllablesC4":["\uc400","\uc4ff"],
"Hangul SyllablesC5":["\uc500","\uc5ff"],"Hangul SyllablesC6":["\uc600","\uc6ff"],"Hangul SyllablesC7":["\uc700","\uc7ff"],"Hangul SyllablesC8":["\uc800","\uc8ff"],"Hangul SyllablesC9":["\uc900","\uc9ff"],"Hangul SyllablesCA":["\uca00","\ucaff"],"Hangul SyllablesCB":["\ucb00","\ucbff"],"Hangul SyllablesCC":["\ucc00","\uccff"],"Hangul SyllablesCD":["\ucd00","\ucdff"],"Hangul SyllablesCE":["\uce00","\uceff"],"Hangul SyllablesCF":["\ucf00","\ucfff"],"Hangul SyllablesD0":["\ud000","\ud0ff"],"Hangul SyllablesD1":["\ud100",
"\ud1ff"],"Hangul SyllablesD2":["\ud200","\ud2ff"],"Hangul SyllablesD3":["\ud300","\ud3ff"],"Hangul SyllablesD4":["\ud400","\ud4ff"],"Hangul SyllablesD5":["\ud500","\ud5ff"],"Hangul SyllablesD6":["\ud600","\ud6ff"],"Hangul SyllablesD7":["\ud700","\ud7af"],"High Surrogate Area":["\ud800","\udbff"],"Low Surrogate Area":["\udc00","\udfff"],"CJK Compatibility Ideographs":["\uf900","\ufaff"],"Alphabetic Presentation Forms":["\ufb00","\ufb4f"],"Arabic Presentation Forms-A":["\ufb50","\ufdff"],"Variation Selectors":["\ufe00",
"\ufe0f"],"Combining Half Marks":["\ufe20","\ufe2f"],"CJK Compatibility Forms":["\ufe30","\ufe4f"],"Small Form Variants":["\ufe50","\ufe6f"],"Arabic Presentation Forms-B":["\ufe70","\ufeff"],"Halfwidth and Fullwidth Forms":["\uff00","\uffef"],Specials:["\ufff0","\uffff"],"Linear B Syllabary":["\u10000","\u1007F"],"Linear B Ideograms":["\u10080","\u100fF"],"Aegean Numbers":["\u10100","\u1013F"],"Old Italic":["\u10300","\u1032F"],Gothic:["\u10330","\u1034F"],Ugaritic:["\u10380","\u1039F"],Deseret:["\u10400",
"\u1044F"],Shavian:["\u10450","\u1047F"],Osmanya:["\u10480","\u104aF"],"Cypriot Syllabary":["\u10800","\u1083F"],"Byzantine Musical Symbols":["\u1d000","\u1d0fF"],"Musical Symbols":["\u1d100","\u1d1fF"],"Tai Xuan Jing Symbols":["\u1d300","\u1d35F"],"Mathematical Alphanumeric Symbols":["\u1d400","\u1d7fF"],"CJK Unified Ideographs Extension B":["\u20000","\u2a6dF"],"CJK Compatibility Ideographs Supplement":["\u2f800","\u2fa1F"],Tags:["\ue0000","\ue007F"],"Variation Selectors Supplement":["\ue0100",
"\ue01eF"]},d;for(d in c)if(c[d][0]<=b&&c[d][1]>=b)return $e(a,d);return $e(a,"all")}var af={},bf={};function df(a){for(var b=0,c=0,d=[],e=/([mrvxe])([^a-z]*)/g,f,g=0;f=e.exec(a);++g){var i=f[2].split(",");switch(f[1]){case "v":d[g]={Vc:"bezierCurveTo",ga:[b+~~i[0],c+~~i[1],b+~~i[2],c+~~i[3],b+=~~i[4],c+=~~i[5]]};break;case "r":d[g]={Vc:"lineTo",ga:[b+=~~i[0],c+=~~i[1]]};break;case "m":d[g]={Vc:"moveTo",ga:[b=~~i[0],c=~~i[1]]};break;case "x":d[g]={Vc:"closePath",ga:[]}}}return d}
function ef(a,b){var c=a[a.length-2],d=a[a.length-1],e=b[0],f=b[1];return[2*c/3+e/3,2*d/3+f/3,c/3+2*e/3,d/3+2*f/3,e,f]}
function ff(a){var b=[],c;a[a.length-1].Vc!="closePath"&&a.push({Vc:"closePath",ga:[]});for(var d=0;d<a.length;d++)if(d==0){if(a[0].Vc=="moveTo")c=a[0].ga;b.push(a[0])}else{var e=a[d-1];switch(a[d].Vc){case "moveTo":c=a[d].ga;b.push(a[d]);break;case "lineTo":b.push({Vc:"bezierCurveTo",ga:ef(e.ga,a[d].ga)});break;case "closePath":c&&b.push({Vc:"bezierCurveTo",ga:ef(e.ga,c)});b.push(a[d]);break;default:b.push(a[d])}}return b}
function gf(a,b){for(var b=b||4,c=[],d=0,e=0,f=0,g=d=0,i,j,k,n=0;n<a.length;n++)if(n==0){if(a[0].Vc=="moveTo")i=a[0].ga;c.push(a[0])}else switch(j=a[n-1],k=a[n],k.Vc){case "moveTo":i=k.ga;c.push(k);break;case "lineTo":case "closePath":if(k.Vc=="closePath")if(i)d=i[0]-j.ga[j.ga.length-2],e=i[1]-j.ga[j.ga.length-1];else{c.push(k);break}else d=k.ga[0]-j.ga[j.ga.length-2],e=k.ga[1]-j.ga[j.ga.length-1];f=Math.ceil(Math.sqrt(d*d+e*e)/b);d/=f;g=e/f;for(e=1;e<f;e++)c.push({Vc:"lineTo",ga:[j.ga[j.ga.length-
2]+d*e,j.ga[j.ga.length-1]+g*e]});c.push(k);break;case "bezierCurveTo":d=k.ga[4]-j.ga[j.ga.length-2];e=k.ga[5]-j.ga[j.ga.length-1];f=Math.ceil(Math.sqrt(d*d+e*e)/b);j=[j.ga[j.ga.length-2],j.ga[j.ga.length-1]];d=k.ga;for(e=1;e<f;e++){k=1/(1+f-e);j=new G(j[0],j[1]);var m=new G(d[0],d[1]),p=new G(d[2],d[3]),d=new G(d[4],d[5]),g=new G(m.x*k+j.x*(1-k),m.y*k+j.y*(1-k)),s=new G(p.x*k+m.x*(1-k),p.y*k+m.y*(1-k)),p=new G(d.x*k+p.x*(1-k),d.y*k+p.y*(1-k)),m=new G(s.x*k+g.x*(1-k),s.y*k+g.y*(1-k)),s=new G(p.x*
k+s.x*(1-k),p.y*k+s.y*(1-k));k=new G(s.x*k+m.x*(1-k),s.y*k+m.y*(1-k));k=[[j.x,j.y],[g.x,g.y,m.x,m.y,k.x,k.y],[s.x,s.y,p.x,p.y,d.x,d.y]];j=[k[1][4],k[1][5]];d=k[2];c.push({Vc:"bezierCurveTo",ga:k[1]})}c.push({Vc:"bezierCurveTo",ga:d});break;default:c.push(k)}return c}
function hf(a){var b=jf(a);if(b in bf)return mc(bf[b]);var c=0,d=0,e=0,f=0,g=[],i=0,j=!1,k=l;A(a,function(a){var b=[];if(a.Ic){var p=l;J.set("document.getItemById",[a.Ic,function(a){p=a}]);if(!p)return;if(p.q.get("Wrap"))b.push(f);else{var s=p.Gd(!0);c=Math.max(c,s.h);b.push(f);f+=s.w;i=f}if(k==l)k=a.Ic}else{var s=kf(a.ff,a.bold,a.ic),u=s.yk,w=s.kc,v=s.Mb/w,x=a.size/w;e=Math.max(e,s.Ga/w*a.size);c=Math.max(c,e);d=Math.min(d,v*a.size);w=0;for(v=a.text.length;w<v;w++){var z=a.text[w];if(z=="\t")b.push(f),
j=!0;else{var B=u[z];if(B==l){if(!cf(a.ff,z)||!u[z]){b.push(f);f+=s.De*x;z.match($c)||(i=f);continue}B=u[z]}w>0&&B.k&&B.k[a.text[w-1]]&&(f-=B.k[a.text[w-1]]*x);b.push(f);f+=(B.w||s.De)*x}z.match($c)||(i=f)}k=!1}b.push(f);g.push(b)});a=c-d;j&&(f=Math.max(f,1),i=Math.max(i,1));bf[b]={Ga:c,Mb:d,width:f,jh:i,height:a,fc:g,Vq:j,bf:e,dq:k};return mc(bf[b])}setInterval(function(){for(var a in af)for(var b=0;b<af[a].length;b++)af[a][b].J==l&&af[a].splice(b--,1)},1E4);
function lf(a,b,c,d,e,f,g,i){function j(a){a.length==6?(e.fillStyle="#"+a,e.strokeStyle="#"+a):a.length==8?(e.fillStyle="#"+a.substr(0,6),e.strokeStyle="#"+a.substr(0,6)):a.length==9?(e.fillStyle=a.substr(0,7),e.strokeStyle=a.substr(0,7)):(e.fillStyle=a,e.strokeStyle=a)}var k=!e;if(k&&af[a]){var n=l,m=l;A(af[a],function(a){if(!a.te&&a.J)return n=a,!1;else a.J&&(m=a)});if(n)return n;if(m&&!$d)return b=m.copy(),af[a].push(b),b}var p=hf(b),s=l;if(k)s=new Je(0,0,Math.round(p.width*c),Math.round(p.height*
c),1),$("body").append(s.J),s.Ga=p.Ga,s.Mb=p.Mb,s.fc=p.fc,s.Ej=p.width,s.hz=p.height,s.jh=p.jh,e=s.getContext();e.save();e.scale(c,c);if(!p.dq&&e.Ii*p.height<3&&b.length>0)j(b[0].color),e.globalAlpha=0.4,e.fillRect(0,0,p.width,p.Ga);else{var u=l;A(f,function(a){if(a.Bj&&(a.Bj<u||u==l))u=a.Bj});u&&(u=Math.max(1,Math.ceil(u/e.Ii)));e.translate(0,p.Ga);var w=0,v=1,x=0,z;z=f?function(a,b){var c=new G(a*v+g,b*v+i);A(f,function(a){c=a(c)});c.x=(c.x-g)/v;c.y=(c.y-i)/v;return c}:function(a,b){return new G(a,
b)};A(b,function(a){if(!a.Ic){var b=kf(a.ff,a.bold,a.ic),c=b.yk;v=a.size/b.kc;e.scale(v,v);j(a.color);e.lineWidth=b.kc/10;e.beginPath();for(var i=x=0,k=0;k<a.text.length;k++){var n=a.text[k];if(n!="\t"){var m=c[n];if(m==l){if(n!="\n"){var n=z(b.De*0.2,-b.Ga*0.9),m=z(b.De*0.8,-b.Ga*0.9),p=z(b.De*0.8,-b.Ga*0.1),Ga=z(b.De*0.2,-b.Ga*0.1);e.moveTo(n.x,n.y);e.lineTo(m.x,m.y);e.lineTo(p.x,p.y);e.lineTo(Ga.x,Ga.y);e.closePath()}e.translate(b.De,0);x+=b.De;g+=b.De*v}else{k>0&&m.k&&m.k[a.text[k-1]]&&(e.translate(-m.k[a.text[k-
1]],0),x-=m.k[a.text[k-1]],g-=m.k[a.text[k-1]]*v);if(m.code==l)m.code=df("m"+m.d);if(f&&f.length>0){p=m.code;if(u){if(m.Nn==l)m.Nn={};m.Nn[u]==l&&(m.Nn[u]=ff(gf(m.code,u)));p=m.Nn[u]}A(p,function(a){for(var b=[],c=0;c<a.ga.length;c+=2){var d=z(a.ga[c],a.ga[c+1]);b.push(d.x);b.push(d.y)}e[a.Vc].apply(e,b)})}else A(m.code,function(a){e[a.Vc].apply(e,a.ga)});e.translate(m.w||b.De,0);x+=m.w||b.De;g+=(m.w||b.De)*v;n.match($c)||(i=x)}}}e.fill();if(x>0&&(c=d?i:x,c>0))if(f&&f.length>0){e.lineWidth=b.ni;if(a.Qf){e.beginPath();
i=-b.ni-b.ni/2;k=z(-x-b.kc*0.05,i);e.moveTo(k.x,k.y);for(n=0;n<c+b.kc*0.1;n+=c/25)k=z(n+(-x-b.kc*0.05),i),e.lineTo(k.x,k.y);k=z(n+(-x-b.kc*0.05),i);e.lineTo(k.x,k.y);e.stroke()}if(a.strike){e.beginPath();k=z(-x-b.kc*0.05,-b.Ga*0.4);e.moveTo(k.x,k.y);for(n=0;n<c+b.kc*0.1;n+=c/25)k=z(n+(-x-b.kc*0.05),-b.Ga*0.4),e.lineTo(k.x,k.y);k=z(n+(-x-b.kc*0.05),-b.Ga*0.4);e.lineTo(k.x,k.y);e.stroke()}if(a.error){e.save();e.strokeStyle=a.error;e.lineWidth=b.Vn*2;e.beginPath();i=-b.ni-b.ni/2;k=z(-x-b.kc*0.05,i);
e.moveTo(k.x,k.y);for(n=0;n<c+b.kc*0.1;n+=c/25)k=z(n+(-x-b.kc*0.05),i),e.lineTo(k.x,k.y);k=z(n+(-x-b.kc*0.05),i);e.lineTo(k.x,k.y);e.stroke();e.restore()}}else if(a.Qf&&e.fillRect(-x-b.kc*0.05,-b.ni,c+b.kc*0.1,b.Vn),a.strike&&e.fillRect(-x-b.kc*0.05,-b.Ga*0.4,c+b.kc*0.1,b.Vn),a.error)e.fillStyle=a.error,e.fillRect(-x-b.kc*0.05,-b.ni,c+b.kc*0.1,b.Vn*2);w+=x;e.scale(1/v,1/v);if(s)s.Ny=K(a)}})}e.restore();k&&(af[a]==l&&(af[a]=[]),af[a].push(s));return s}
function jf(a,b,c){function d(a){var b="";J.set("client.inlineBlockTextMetrics",[a,function(a){a.wrap||(b="w:"+a.wb.toFixed(3)+"h:"+a.ob.toFixed(3)+"rot:"+a.rotation.toFixed(3))}]);return b}if(b!=l)if(Xd){var e=[b,c?1:0];A(a,function(a){for(var b in a)e.push(b),e.push(a[b]);a.Ic&&e.push(d(a.Ic))});return e.join("")}else return e=""+b+(c?1:0),A(a,function(a){for(var b in a)e+=b,e+=a[b];a.Ic&&(e+=d(a.Ic))}),e;else return e="",A(a,function(a){e+=a.text+a.ff+(a.bold?1:0)+(a.ic?1:0)+(a.size||0);a.Ic&&
(e+=a.Ic+d(a.Ic))}),e}
function kf(a,b,c,d){a=a.toLowerCase();if(Pe[a]==l&&(!$e(a,"empty")||Pe[a]==l))return Ne==l&&(Ne=new Oe({w:273,face:{"font-family":"Not a real one","font-weight":400,"font-style":"italic","units-per-em":360,ascent:288,descent:-72,"underline-thickness":"14.2383","underline-position":"-35.332"},glyphs:[]})),Ne;for(var e=0;e<Pe[a].length;e++){var f=Pe[a][e];if(f.bold==!!b&&f.ic==!!c)return f}if(!d){if(config.fontGroups&&(d=Re[a]))for(var g in Qe[d])if(e=kf(g,b,c,!0))return e;return b?kf(a,!1,c):c?kf(a,
b,!1):Pe[a][0]}return l}
function mf(a,b,c,d,e){function f(e){this.wa=a[e.Dc].style;this.Dc=e.Dc;this.cf=e.cf;this.first=e.bc;this.eb=[];this.x=b.x+this.wa.indentLeft*Math.max(this.wa.indentLevel,1);this.first&&(this.x+=this.wa.indentFL-this.wa.indentLeft);this.y=U;this.af=this.y+e.Ga;this.Ga=e.Ga;this.Mb=e.Mb;this.start=v;this.bf=e.bf;this.Qv=function(a){for(var c=b.x,d=0;d<this.wa.tabStops.length&&c<=a;d++)c=b.x+this.wa.tabStops[d];for(;c<a;)c+=36;return c};this.ui=function(a){if(this.eb.length>0&&a.bc)return!1;var d=this,
e;if(a.Ga>d.Ga||a.Mb<d.Mb){var g=d.Ga,i=d.Mb,j=d.af,k=d.bf;d.Ga=Math.max(d.Ga,a.Ga);d.Mb=Math.min(d.Mb,a.Mb);d.af=d.y+d.Ga;d.bf=Math.max(d.bf,a.bf);var n=d.eb;n.push(a);v=this.start;d.eb=[];d.x=b.x;for(var m=!1,s=0;s<n.length;s++){var p=n[s];delete p.x;delete p.Mi;if(m&&s==n.length-1||!W.ui(p))m?(W.cp(p),W=new f(p)):(m=!0,d.Ga=g,d.Mb=i,d.af=j,d.bf=k,s=-1,d.eb=[],d.x=b.x)}return!0}g=l;if(a.Vq)c.push(new H(b.x,b.y,this.Qv(this.x)-b.x,b.h,{wrap:"tight"})),g=this.x;for(;!e;)e=!0,A(c,function(c){var f=
c.data?c.data.wrap:"",g=d.af-d.Mb,i=d.af-d.Ga;if(f=="skip"&&g>c.y&&i<c.y+c.h)d.eb.length==0?(d.y=c.y+c.h+0.01,d.af=d.y+d.Ga,e=!1):d.x=b.w;else if(f=="tight"&&g>c.y&&i<c.y+c.h&&(f=d.x,d.x+a.jh>c.x&&f<c.x+c.w&&(a.x=c.x+c.w+0.01,d.x=a.x,e=!1,d.eb.length>0)))d.eb[d.eb.length-1].Mi=d.eb[d.eb.length-1].Mi?Math.min(c.x,d.eb[d.eb.length-1].Mi):c.x});a.Vq&&c.pop();if(this.x+a.jh>=b.x+b.w-this.wa.indentRight){i=!1;if(this.eb.length==0){var u=Number.MAX_VALUE;A(c,function(a){d.y<a.y+a.h&&(u=Math.min(u,a.y+a.h))});
if(u!=Number.MAX_VALUE)return this.x=b.x,this.y=u,this.af=this.y+this.Ga,this.ui(a);else i=!0}if(!i)return delete a.x,delete a.Mi,!1}a.Vq&&(a.fc[0][0]=g-d.x);a.x=d.x;this.eb.push(a);d.x+=a.width;A(a.fc,function(a){v+=a.length-1});return!0};this.cp=function(e){var f=this;if(this.eb.length)var g=this.eb[this.eb.length-1];this.Dc in Z||(Z[this.Dc]={});this.last=!1;if(e==l||e.Dc!=this.Dc)this.last=!0;var i=[];A(this.eb,function(a,e){i.push(a);if(a.Mi||e==f.eb.length-1){var g;if(e==f.eb.length-1){var j=
b.x+b.w-f.wa.indentRight;A(c,function(b){var c=f.af-f.Mb,d=f.af-f.Ga;(b.data?b.data.wrap:"")=="tight"&&c>b.y&&d<b.y+b.h&&b.x<j&&b.x>a.x+a.jh&&(j=b.x)});g=j-(a.x+a.jh)}else g=a.Mi-(a.x+a.jh);var k=0,n=0;if((f.wa.align||d)=="center")k=g/2;else if((f.wa.align||d)=="right")k=g;else if((f.wa.align||d)=="justified")n=g/(i.length-1);k?A(i,function(a){a.x+=k}):n&&(f.last||A(i,function(a){a.x+=k;k+=n}));Z[f.Dc][a.cf]=!0;i=[]}if(a.dq){var m=l;J.set("document.getItemById",[a.dq,function(a){m=a}]);if(m){g=m.q.get("Wrap");
var s=m.ja(!0),p=m.sa?m.Gd(!0):m.ja(!0),u=function(a,b,c){a.je=b?xb(b,c):l;if(a.pa)var d=a;d.Ib(function(){u(this,b?this.ja(!0):l,c)})},v=function(a,b){a.ke=b;if(a.pa)var c=a;c.Ib(function(){v(this,b)})};if(g){p=Ra(new H(b.x,10+f.af-f.Mb,p.w,p.h),10);p.data={wrap:"tight"};switch(g){case "left":break;case "center":p.x+=(b.w-p.w)/2;break;case "right":p.x+=20+b.w-p.w;break;case "skip-l":p.data.wrap="skip";break;case "skip":p.x+=(b.w-p.w)/2;p.data.wrap="skip";break;case "skip-r":p.x+=20+b.w-p.w;p.data.wrap=
"skip";break;default:p=l}if(p){var w=l,x=l;J.set("client.getCurrentlyRenderingSpaceBB",function(a){w=a[0];x=a[1]});w?(u(m,s,Oa(xb(wb(s,p),new H(w.x,w.y,0,0)),s)),v(m,x)):(u(m,l,l),v(m,l));c.push(p)}}else x=w=l,J.set("client.getCurrentlyRenderingSpaceBB",function(a){w=a[0];x=a[1]}),w?(u(m,s,Oa(wb(s,new H(w.x+b.x+a.x,w.y+f.af-f.Mb-p.h,p.w,p.h)),s)),v(m,x)):(u(m,l,l),v(m,l))}}});this.end=v;T.push(this);U=this.Ga-this.bf+(this.bf-this.Mb)*this.wa.spacing+this.y;g&&(X=Math.min(X,this.eb[0].x),da=Math.max(da,
g.x+g.jh));this.fc=[];A(this.eb,function(a,b){A(a.fc,function(c,d){A(c,function(e,g){(g<c.length-1||b==f.eb.length-1&&d==a.fc.length-1)&&f.fc.push(e+a.x)})})});this.last&&e!=l&&(U+=Math.max(this.wa.marginBottom,a[e.Dc].style.marginTop))};this.ui(e)}b=b||new H(0,0,1E7,1E7);b.w=Math.ceil(b.w);b.h=Math.ceil(b.h);if(!c||c.length==0)if(e=="middle"){var g=mf(a,b,c,d,"top"),i=b.y+b.h/2-(b.y+g.height/2);g.y+i<0&&(i=-g.y);g.y+=i;A(g.ma,function(a){a.y+=i});return g}else{if(e=="bottom")return g=mf(a,b,c,d,
"top"),i=b.y+b.h-(b.y+g.height),g.y+=i,A(g.ma,function(a){a.y+=i}),g}else{var j=[];A(c,function(a){a.data.wrap=="right"?j.push(new H(b.x,a.y,a.x+a.w-b.x,a.h,{wrap:"tight"})):a.data.wrap=="left"?j.push(new H(a.x,a.y,b.x+b.w-a.x,a.h,{wrap:"tight"})):a.data.wrap=="auto"?a.x-b.x>b.x+b.w-(a.x+a.w)?j.push(new H(a.x,a.y,b.x+b.w-a.x,a.h,{wrap:"tight"})):j.push(new H(b.x,a.y,a.x+a.w-b.x,a.h,{wrap:"tight"})):j.push(a)});c=j;if(e=="middle"){for(var e=0.25,k=b.y,n=1,m=Number.MAX_VALUE,p=l,s=Math.max(1,Math.log(Math.max(1,
b.h))/Math.log(2)/2),u=0;u<s;u++)b.y+=n*b.h*e,g=mf(a,b,c,d,"top"),i=b.y+g.height/2-(k+b.h/2),n=i<0?1:-1,Math.abs(i)<m&&(m=Math.abs(i),p=g),e/=2;return p}else if(e=="bottom"){e=0.5;k=b.y;n=1;p=m=l;s=Math.max(1,Math.log(Math.max(1,b.h))/Math.log(2));for(u=0;u<s;u++)b.y+=n*b.h*e,g=mf(a,b,c,d,"top"),b.y+g.height<k+b.h?(n=1,b.y+g.height>m&&(m=b.y+g.height,p=g)):n=-1,e/=2;return p}}c||(c=[]);var w=[],v=0;if(a.Wg)v=a.ma[a.ma.length-1].end,w=a.Wg,a=a.data;else{var x=[],z=function(a,b){var c=l;if(x.length>
0){c=hf(x);c.cf=a;c.Dc=b;if(x[0].bc)c.bc=!0;w.push(c)}x=[];return c},B=0,O=0;A(a,function(a,b){if(a.ao)A(a.ao,function(a){B=a.Dc=b;O=a.cf;w.push(a)}),x=[];else{a.content[0].bc=!0;a.content[0].qc=!0;a.ao=[];A(a.content,function(c,d){if(c.qc){var e=z(O,B);e&&a.ao.push(e);B=b;O=d}x.push(c)});var c=z(O,B);c&&a.ao.push(c)}})}var T=[],W=l,U=b.y,X=Number.MAX_VALUE,da=Number.MIN_VALUE,Z={},Ga=l,wa=!1,Ma=!1,tb=!1;A(w,function(c,d){if(W){if(!W.ui(c)){W.cp(c);if(!config.allowTextOverflow&&U>b.y+b.h)return Ga=
d-W.eb.length,wa=!0,!1;if(c.Dc!=w[d-1].Dc){var e=a[c.Dc].style;if(e.Ei||e.Zh)return Ma=e.Zh,tb=e.Ei,Ga=d,!1}W=new f(c)}}else W=new f(c)});Ga==l&&(W.cp(l),!config.allowTextOverflow&&U>b.y+b.h&&(Ga=w.length-W.eb.length));e=l;if(Ga!=l){wa&&(g=T.pop());if(T.length>0)g=T[T.length-1],U=g.y+(g.Ga-g.Mb)*g.wa.spacing;else if(wa)T.push({start:g.start,end:g.start,Ga:g.Ga,Mb:g.Mb,fc:[]}),U=b.y;e=w.slice(Ga)}U+=T[T.length-1].Mb;U-=(T[T.length-1].Ga-T[T.length-1].Mb)*(W.wa.spacing-1);return{x:X,y:b.y,width:Math.max(0,
da-X),height:U-b.y,ma:T,Vw:qc(c),Dp:Z,Wg:e,Zh:Ma,Ei:tb,data:a}}
function nf(a,b,c,d,e,f,g){var i=mf(b,c,d,e||"left",f||"top");if(b.data)b=b.data;c.w=c.w||i.width;c.h=Math.max(c.h,i.height);A(i.ma,function(c,d){a.save();a.translate(0,c.y);var e=0;if(c.first&&(c.wa.type=="ul"||c.wa.type=="ol"||c.wa.type=="hl")){a.save();a.translate(c.eb[0].x-(c.wa.type=="ul"?c.wa.indentLeft/2:c.wa.indentLeft),c.Ga-c.eb[0].Ga);var f=of(i.ma,d,b),p=jf(f,1,!0);lf(p,f,1,!0,a,g,c.eb[0].x-(c.wa.type=="ul"?c.wa.indentLeft/2:c.wa.indentLeft),c.y+c.Ga);a.restore()}A(c.eb,function(d){if(d.x)a.translate(d.x-
e,0),e=d.x;var f=b[d.Dc].content.slice(d.cf,d.cf+d.fc.length);a.translate(0,c.Ga-d.Ga);var k=i.Dp[d.cf+d.fc.length-1],m=jf(f,1,k);lf(m,f,1,k,a,g,e,c.y+c.Ga);a.translate(d.width,d.Ga-c.Ga);d=d.fc[d.fc.length-1];e+=d[d.length-1]});a.restore()});return i}function pf(a){var b,c,d,e,f;f=a/1E3|0;a%=1E3;for(b=c="",d=5;a;c++,d^=7)for(e=a%d,a=a/d^0;e--;)b="IVXLCDM".charAt(e>2?c+a-(a&=-2)+(e=1):c)+b;return Array(f+1).join("M")+b}
function of(a,b,c){var d=a[b],e=d.eb[0],c=new Zc(c[e.Dc].content[e.cf]);c.Qf=!1;c.strike=!1;c.error=!1;if(d.wa.type=="ul")c.text="\u2022";else{e=1;for(b-=1;b>=0;b--)if(a[b].first){if(a[b].wa.type!="ol"&&a[b].wa.type!="hl")break;if(!(a[b].wa.indentLevel>d.wa.indentLevel)){if(a[b].wa.indentLevel<d.wa.indentLevel)break;e++}}if(d.wa.type=="ol")if(d.wa.indentLevel%3==1)c.text=e+".";else if(d.wa.indentLevel%3==2){a="abcdefghijklmnopqrstuvwxyz";d="";for(b=0;b<=(e-1)/26;b++)d+=a[(e-1)%26];c.text=d+"."}else c.text=
pf(e).toLowerCase()+".";else if(d.wa.type=="hl")if(d.wa.indentLevel%9==1)c.text=pf(e)+".";else if(d.wa.indentLevel%9==2){a="abcdefghijklmnopqrstuvwxyz";d="";for(b=0;b<=(e-1)/26;b++)d+=a[(e-1)%26];c.text=d.toUpperCase()+"."}else if(d.wa.indentLevel%9==3)c.text=e+".";else if(d.wa.indentLevel%9==4){a="abcdefghijklmnopqrstuvwxyz";d="";for(b=0;b<=(e-1)/26;b++)d+=a[(e-1)%26];c.text=d.toLowerCase()+")"}else if(d.wa.indentLevel%9==5)c.text="("+e+")";else if(d.wa.indentLevel%9==6){a="abcdefghijklmnopqrstuvwxyz";
d="";for(b=0;b<=(e-1)/26;b++)d+=a[(e-1)%26];c.text="("+d.toLowerCase()+")"}else if(d.wa.indentLevel%9==7)c.text=pf(e).toLowerCase()+")";else if(d.wa.indentLevel%9==8)c.text="("+e+")";else if(d.wa.indentLevel%9==0){a="abcdefghijklmnopqrstuvwxyz";d="";for(b=0;b<=(e-1)/26;b++)d+=a[(e-1)%26];c.text="("+d.toLowerCase()+")"}}return[c]}
function qf(a,b,c,d,e,f,g){e=e||"left";f=f||"top";g=g||1;A(a.dd,function(a){if(a.size)a.te=!1});var i=mf(b,c,d,e,f),j;j=b.data?b.data:b;A(i.ma,function(a){a.dd=[];A(a.eb,function(b){var c=j[b.Dc].content.slice(b.cf,b.cf+b.fc.length),d=i.Dp[b.Dc]&&i.Dp[b.Dc][b.cf+b.fc.length-1],e=b.vv;if(!e||b.scale!=g)e=jf(c,g,d),b.vv=e,b.scale=g;b.ya=lf(e,c,g,d,l,l,b.x,a.y+a.Ga);b.ya.size=b;b.ya.te=!0;a.dd.push(b.ya)})});c.w=c.w||i.width;c.h=Math.max(c.h,i.height);a.resize(c.w*g+2,c.h*g+2);A(i.ma,function(b,c){if(b.first&&
(b.wa.type=="ul"||b.wa.type=="ol"||b.wa.type=="hl")){var d=of(i.ma,c,j),e=jf(d,g,!0),d=lf(e,d,g,!0),e=b.eb[0].x-(b.wa.type=="ul"?b.wa.indentLeft/2:b.wa.indentLeft);d.te=!0;d.size=!0;d.move(Math.round(e*g),Math.round((b.y+b.Ga-d.Ga)*g));Ge(a,d)}A(b.dd,function(c){c.move(Math.round(c.size.x*g),Math.round((b.y+b.Ga-c.Ga)*g));Ge(a,c)})});Ie(a,function(a){return a.te==!1});return i}var tf={};function uf(){F(tf,function(a,b){A(b,function(a){a.jr=!1})})}
function vf(a,b,c){var d=a.toLowerCase();if(c){var e=$('<input type="text" style="width:100px;height:16px;border:0;background:transparent;padding:0 3px;"/>').val(a).bind("focus click mouseup",function(){setTimeout(function(){$(".option-bar-set-min.gui-box-shadow:visible").size()?e.select():e.blur()},1)}).bind("keydown keyup change",function(){var a=$(this).val();$(".option-bar-set-min.gui-box-shadow:visible > div").each(function(){if($(this).attr("title").toLowerCase().indexOf(a.toLowerCase())==0){$(this).siblings().removeClass("active");
$(this).addClass("active");var b=$(this).parent().attr("scrollTop"),c=b+$(this).parent().height(),d=$(this).position().top+b,e=$(this).height();d<b+10?$(this).parent().attr("scrollTop",d-10):d+e>c-10&&$(this).parent().attr("scrollTop",b+(d+e-c)+10);return!1}})}).bind("keydown",function(a){a.which==13?$(".option-bar-set-min.gui-box-shadow:visible > div.active").mousedown():a.which==40?(a.preventDefault(),$(".option-bar-set-min.gui-box-shadow:visible > div.active").each(function(){var a=$(this).next();
a.size()&&($(this).removeClass("active"),a.addClass("active"),e.val(a.attr("title")))})):a.which==38&&(a.preventDefault(),$(".option-bar-set-min.gui-box-shadow:visible > div.active").each(function(){var a=$(this).prev();a.size()&&($(this).removeClass("active"),a.addClass("active"),e.val(a.attr("title")))}))});b.append(e)}else{tf[d]||(tf[d]=[]);for(c=0;c<tf[d].length;c++)if(!tf[d][c].jr){b.append(tf[d][c].J);tf[d][c].jr=!0;return}c=new Fe(200,24);c.jr=!0;c.J.css({top:"2px",left:"4px"});qf(c,[new bd([new Zc({size:14,
bc:!0,qc:!0,text:a,ff:d})],{})],new H(0,0,200,16),[],"left","top",1);b.append(c.J);tf[d].push(c)}}function wf(a){return a?(a.sort(function(a,c){return(a.bold?1:0)+(a.ic?2:0)-((c.bold?1:0)+(c.ic?2:0))}),a[0]):l}function xf(a){var a=a.toLowerCase(),b=l;if(a in Qe)if(a in Qe[a])b=Qe[a][a];else{var b=[],c;for(c in Qe[a])A(Pe[c.toLowerCase()],function(a){b.push(a)})}else b=Pe[a];return wf(b)}
function yf(a,b,c){var d=new Fe(200,24);d.J.css({top:"2px",left:"4px"});qf(d,[new bd([new Zc({size:14,bc:!0,qc:!0,bold:a.bold,ic:a.ic,text:c||a.mk,ff:a.yb.toLowerCase()})],{})],new H(0,0,200,16),[],"left","top",1);b.append(d.J)}
t("lucid.font.load",function(a){var a=new Oe(a),b=a.yb.toLowerCase();Pe[b]==l&&(Pe[b]=[]);for(var c=0;c<Pe[b].length;c++){var d=Pe[b][c];if(d.bold==a.bold&&d.ic==a.ic){for(var e in a.yk)d.yk[e]=a.yk[e];return}}a.mk=a.yb+(a.bold?" Bold":"")+(a.ic?" Oblique":"");e=Re[b]||a.yb;a.mk=a.mk==e?"Regular":hd(a.mk.replace(e,""));Pe[b].push(a)});t("lucid.font.addToGroup",function(a,b){a=a.toLowerCase();b in Qe||(Qe[b]={});Qe[b][a]=!0;Re[a]=b});t("lucid.font.getOpenRangeRequests",function(){return Ze});var zf=[[[83.2,47],[78.7,51.4],[3.9,91.5],[0,91.5],[0,9.6],[8.3,9.6],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[78.7,51.4],[3.9,91.5],[0,91.5],[0,9.6],[8.3,9.6],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[78.7,51.4],[67.8,57.9],[3.9,91.5],[0,91.5],[0,9.6],[8.3,9.6],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[78.7,51.4],[67.8,57.9],[3.9,91.5],[0,91.5],[0,9.6],[8.3,9.6],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[78.7,51.4],[67.8,57.9],[3.9,
91.5],[0,91.5],[0,10.1],[7,10.1],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[78.7,51.4],[67.8,57.9],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[78.7,51.4],[67.8,57.9],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[75.2,57.6],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[75.2,57.6],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[12.4,10.7],
[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[75.2,57.6],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[75.2,57.6],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[75.2,57.6],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[75.2,57.6],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[75.2,57.6],[64.5,64.7],
[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[11.3,11.3],[28.9,19],[36.7,22.8],[44.3,26.6],[58.1,33.5],[71,40.4]],[[78.7,51.4],[75.2,57.6],[64.5,64.7],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[11.3,11.3],[28.9,19],[36.7,22.8],[44.3,26.6],[58.1,33.5],[71,40.4],[77.1,43.7]],[[78.7,51.4],[75.2,57.6],[64.5,64.7],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[11.3,11.3],[28.9,19],[36.7,22.8],[44.3,26.6],[58.1,33.5],[71,40.4]],[[78.7,51.4],[75.2,57.6],[64.5,64.7],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[11.3,11.3],[28.9,19],
[36.7,22.8],[44.3,26.6],[58.1,33.5]],[[78.7,51.4],[74,64.3],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[11.3,11.3],[28.9,19],[36.7,22.8],[44.3,26.6]],[[78.7,51.4],[74,64.3],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[11.3,11.3],[28.9,19],[36.7,22.8],[44.3,26.6]],[[78.7,51.4],[74,64.3],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[11.3,11.3],[28.9,19],[36.7,22.8],[44.3,26.6]],[[78.7,51.4],[74,64.3],[39.6,78.3],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[11.3,11.3],[28.9,19],[36.7,22.8]],[[78.7,51.4],[74,64.3],[27.4,83.6],
[12.1,89.3],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[11.3,11.3],[28.9,19]],[[78.7,51.4],[74,64.3],[27.4,83.6],[12.1,89.3],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[11.3,11.3],[28.9,19]],[[78.7,51.4],[74,64.3],[65.1,72],[12.1,89.3],[3.9,91.5],[0,91.5],[0,10.1],[7,10.1],[11.3,11.3]],[[78.7,51.4],[74,64.3],[65.1,72],[12.1,89.3],[6,90],[0,90],[0,10.1],[7,10.1],[11.3,11.3]],[[78.7,51.4],[74,64.3],[65.1,72],[53.2,77.4],[12.1,89.3],[6,90],[0,90],[0,10.1],[7,10.1],[11.3,11.3]],[[76.4,71.2],[12.1,89.3],[6,90],
[0,90],[0,10.1],[7,10.1],[11.3,11.3],[65.1,46.3],[75.2,57.6]],[[76.4,71.2],[40.6,82.8],[19.9,88.7],[6,90],[0,90],[0,10.1],[7,10.1],[11.3,11.3],[75.2,57.6]],[[76.4,71.2],[67.1,76.6],[19.9,88.7],[6,90],[0,90],[0,10.1],[7,10.1],[11.3,11.3],[75.2,57.6]],[[76.4,71.2],[67.1,76.6],[19.9,88.7],[6,90],[0,90],[0,10.1],[7,10.1],[11.3,11.3],[75.2,57.6]],[[76.4,71.2],[67.1,76.6],[55.3,81.8],[19.9,88.7],[12.1,89.3],[0,89.3],[0,10.1],[7,10.1],[26.1,22.9],[40.3,32.7],[64.3,49.8],[75.2,57.6]],[[79.6,76.1],[55.3,81.8],
[28.6,88],[12.1,89.3],[0,89.3],[0,10.1],[7,10.1],[26.1,22.9],[40.3,32.7],[64.3,49.8],[75.2,57.6]],[[79.6,76.1],[55.3,81.8],[28.6,88],[12.1,89.3],[0,89.3],[0,10.1],[7,10.1],[26.1,22.9],[40.3,32.7],[64.3,49.8],[75.2,57.6]],[[79.6,76.1],[70.1,81.1],[28.6,88],[12.1,89.3],[0,89.3],[0,10.1],[7,10.1],[26.1,22.9],[40.3,32.7],[64.3,49.8],[75.2,57.6]],[[79.6,76.1],[70.1,81.1],[42.9,87.1],[12.1,89.3],[0,89.3],[0,12],[1,12],[10,13.7],[26.1,22.9],[40.3,32.7],[64.3,49.8],[75.2,57.6]],[[83.5,80.5],[58.8,86.1],[12.1,
89.3],[0,89.3],[0,8.7],[2.1,8.7],[26.1,22.9],[40.3,32.7],[64.3,49.8],[75.2,57.6]],[[83.5,80.5],[58.8,86.1],[12.1,89.3],[0,89.3],[0,8.7],[2.1,8.7],[26.1,22.9],[40.3,32.7],[64.3,49.8],[75.2,57.6]],[[83.5,80.5],[74.2,85.3],[30.4,90.9],[0,90.9],[0,8.7],[2.1,8.7],[26.1,22.9],[40.3,32.7],[64.3,49.8],[75.2,57.6]],[[88,84.9],[30.4,90.9],[0,90.9],[0,8.7],[2.1,8.7],[26.1,22.9],[40.3,32.7],[52.6,41.5],[58.5,47.6],[74,64.3]],[[88,84.9],[41.2,91.5],[9.4,94],[0,94],[0,8.7],[2.1,8.7],[26.1,22.9],[52.7,45.5],[74,
64.3]],[[88.6,89.2],[9.4,94],[0,94],[0,8.7],[2.1,8.7],[10,13.7],[33.2,30.2],[74,64.3],[88,84.9]],[[93.1,89],[5.5,94.3],[0,94.3],[0,8.7],[2.1,8.7],[10,13.7],[74,64.3]],[[93.1,89],[5.5,94.3],[0,94.3],[0,8.7],[2.1,8.7],[10,13.7],[74,64.3]],[[93.1,89],[3.2,94.5],[0,94.5],[0,8.7],[2.1,8.7],[10,13.7],[74,64.3]],[[93.1,89],[3.2,94.5],[0,94.5],[0,8.7],[2.1,8.7],[10,13.7],[74,64.3]],[[93.1,89],[3.2,94.5],[0,94.5],[0,8.7],[2.1,8.7],[10,13.7],[74,64.3]],[[93.1,89],[3.2,94.5],[0,94.5],[0,8.7],[2.1,8.7],[10,13.7],
[74,64.3]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[74,64.3]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[67.4,61.5]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[26.9,27.8],[41.7,40.4],[54.3,51.5],[65.8,61.8],[76.4,71.2]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[26.9,27.8],[41.7,40.4],[54.3,51.5],[65.8,61.8],[76.4,71.2]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[26.9,27.8],[41.7,40.4],[54.3,51.5],[65.8,61.8],[76.4,
71.2]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[26.9,27.8],[41.7,40.4],[54.3,51.5],[65.8,61.8],[76.4,71.2]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[26.9,27.8],[41.7,40.4],[54.3,51.5],[65.8,61.8],[76.4,71.2]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[26.9,27.8],[41.7,40.4],[54.3,51.5],[65.8,61.8],[76.4,71.2]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[26.9,27.8],[41.7,40.4],[54.3,51.5],[65.8,61.8],[76.4,71.2]],[[93.1,89],[1.7,
94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[26.9,27.8],[41.7,40.4],[54.3,51.5],[65.8,61.8],[76.4,71.2]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[26.9,27.8],[41.7,40.4],[54.3,51.5]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[10,13.7],[51.4,49.9],[66.6,63.9],[79.6,76.1]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[7.3,12.3],[12.1,15.7],[33.2,34],[51.4,49.9],[66.6,63.9],[79.6,76.1]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[7.3,12.3],[12.1,15.7],[33.2,34],[51.4,
49.9],[66.6,63.9],[79.6,76.1]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[7.3,12.3],[12.1,15.7],[33.2,34],[51.4,49.9],[66.6,63.9],[79.6,76.1]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[7.3,12.3],[12.1,15.7],[33.2,34],[51.4,49.9],[66.6,63.9],[80.4,76.9]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[7.3,12.3],[12.1,15.7],[33.2,34],[51.4,49.9],[66.6,63.9],[80.4,76.9]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[7.3,12.3],[12.1,15.7],[33.2,34],[51.4,49.9],[66.6,63.9],[80.4,76.9]],
[[93.1,89],[1.7,94.7],[0,94.7],[0,8.7],[2.1,8.7],[7.3,12.3],[12.1,15.7],[33.2,34],[51.4,49.9],[66.6,63.9],[80.4,76.9]],[[93.1,89],[1.7,94.7],[0,94.7],[0,12.3],[7.3,12.3],[12.1,15.7],[33.2,34],[51.4,49.9],[66.6,63.9],[80.4,76.9]],[[93.1,89],[1.7,94.7],[0,94.7],[0,12.3],[7.3,12.3],[12.1,15.7],[33.2,34],[51.4,49.9],[66.6,63.9],[80.4,76.9]],[[93.1,89],[1.7,94.7],[0,94.7],[0,12.3],[7.3,12.3],[12.1,15.7],[33.2,34],[51.4,49.9],[66.6,63.9],[80.4,76.9]],[[93.1,89],[1.7,94.7],[0,94.7],[0,12.3],[7.3,12.3],[12.1,
15.7],[33.2,34],[51.4,49.9],[66.6,63.9],[80.4,76.9]],[[93.1,89],[1.7,94.7],[0,94.7],[0,12.3],[7.3,12.3],[12.1,15.7],[33.2,34],[51.4,49.9],[66.6,63.9],[80.4,76.9]],[[93.1,89],[1.7,94.7],[0,94.7],[0,8.9],[1.5,8.9],[11,13.9],[51.4,49.9],[66.6,63.9],[80.4,76.9]],[[87.3,85.3],[3.2,94.5],[1.7,94.7],[0,94.7],[0,8.9],[1.5,8.9],[11,13.9],[51.4,49.9]],[[87.3,85.3],[3.2,94.5],[1.7,94.7],[0,94.7],[0,8.9],[1.5,8.9],[11,13.9],[45.8,46.1],[75.6,73.8]],[[82,81.5],[1.7,94.7],[0,94.7],[0,8.9],[1.5,8.9],[11,13.9],[45.8,
46.1],[59.2,58.9],[71.2,70.7]],[[82,81.5],[1.7,94.7],[0,94.7],[0,8.9],[1.5,8.9],[11,13.9],[45.8,46.1],[59.2,58.9],[71.2,70.7]],[[76.6,77.7],[53.4,83],[1.7,94.7],[0,94.7],[0,8.9],[1.5,8.9],[11,13.9],[45.8,46.1]],[[76.6,77.7],[53.4,83],[1.7,94.7],[0,94.7],[0,8.9],[1.5,8.9],[11,13.9],[62.4,61]],[[76.6,77.7],[18.3,89.3],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[45.9,44.7],[62.4,61]],[[71.3,73.7],[63.8,78.3],[18.3,89.3],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[45.9,44.7],[62.4,61]],[[71.3,73.7],
[18.3,89.3],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[36.1,35.3],[45.9,44.7],[62.4,61]],[[71.3,73.7],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[36.1,35.3],[45.9,44.7],[62.4,61]],[[71.3,73.7],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[36.1,35.3],[45.9,44.7],[62.4,61]],[[65.2,67.3],[59.1,74.2],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[36.1,35.3],[45.9,44.7],[62.4,61]],[[65.2,67.3],[59.1,74.2],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[36.1,35.3],[45.9,44.7],[62.4,61]],[[65.2,67.3],
[59.1,74.2],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[36.1,35.3],[45.9,44.7],[62.4,61]],[[65.2,67.3],[24,84.9],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[36.1,35.3],[45.9,44.7],[62.4,61]],[[65.2,67.3],[24,84.9],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[36.1,35.3],[45.9,44.7],[62.4,61]],[[65.2,67.3],[34.5,80.1],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[36.1,35.3],[45.9,44.7],[62.4,61]],[[65.2,67.3],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,
13.9],[24.7,24.4],[36.1,35.3],[45.9,44.7],[62.4,61]],[[65.2,67.3],[10.2,90],[0,90],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[36.1,35.3],[45.9,44.7],[62.4,61]],[[65.2,67.3],[15.8,85.7],[0,85.7],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[36.1,35.3],[45.9,44.7],[62.4,61]],[[65.2,67.3],[15.8,85.7],[0,85.7],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[36.1,35.3],[45.9,44.7],[62.4,61]],[[62.4,61],[54.6,67.9],[15.8,85.7],[0,85.7],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[36.1,35.3],[45.9,44.7]],[[62.4,61],[54.6,
67.9],[15.8,85.7],[0,85.7],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[36.1,35.3],[45.9,44.7]],[[62.4,61],[54.6,67.9],[15.8,85.7],[0,85.7],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[36.1,35.3],[45.9,44.7]],[[62.4,61],[54.6,67.9],[15.8,85.7],[0,85.7],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[52,49.5]],[[62.4,61],[54.6,67.9],[15.8,85.7],[0,85.7],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[52,49.5]],[[62.4,61],[15.8,85.7],[0,85.7],[0,8.9],[1.5,8.9],[11,13.9],[24.7,24.4],[58.4,52.4]],[[64.3,55.1],[62.4,61],[15.8,
85.7],[0,85.7],[0,8.9],[1.5,8.9],[11,13.9]],[[64.3,55.1],[62.4,61],[0.4,94.8],[0,8.9],[1.5,8.9],[11,13.9]],[[64.3,55.1],[62.4,61],[0.4,94.8],[0,8.9],[1.5,8.9],[11,13.9]],[[64.3,55.1],[62.4,61],[0.4,94.8],[0,20.3],[8.1,20.3],[24.7,24.4]],[[64.3,55.1],[62.4,61],[0.4,94.8],[0,20.3],[8.1,20.3],[24.7,24.4]],[[64.3,55.1],[62.4,61],[0.4,94.8],[0,20.3],[8.1,20.3],[24.7,24.4]],[[64.3,55.1],[62.4,61],[0.4,94.8],[0,20.3],[8.1,20.3],[24.7,24.4]],[[64.3,55.1],[62.4,61],[0.4,94.8],[0,14.3],[8.1,14.3],[24.7,24.4]],
[[64.3,55.1],[62.4,61],[0.4,94.8],[0,14.3],[8.1,14.3],[24.7,24.4]],[[64.3,55.1],[42.8,68.6],[0.4,94.8],[0,14.3],[8.1,14.3],[24.7,24.4]],[[64.3,55.1],[42.8,68.6],[0.4,94.8],[0,14.3],[8.1,14.3],[24.7,24.4]],[[64.3,55.1],[0.4,94.8],[0,14.3],[8.1,14.3],[24.7,24.4]],[[64.3,55.1],[0.4,94.8],[0,14.3],[8.1,14.3],[24.7,24.4]],[[64.3,55.1],[0.4,94.8],[0,14.3],[8.1,14.3],[24.7,24.4]],[[64.3,55.1],[0.4,94.8],[0,14.3],[8.1,14.3],[24.7,24.4]],[[64.3,55.1],[0.4,94.8],[0,14.3],[8.1,14.3],[24.7,24.4]],[[64.3,55.1],
[0.4,94.8],[0,14.3],[8.1,14.3],[24.7,24.4]],[[64.3,55.1],[0.4,94.8],[0,14.3],[8.1,14.3]],[[64.3,55.1],[0.4,94.8],[0,14.3],[8.1,14.3]],[[64.3,55.1],[0.4,94.8],[0,14.3],[8.1,14.3]],[[64.3,55.1],[0.4,94.8],[0,14.3],[8.1,14.3],[16.7,17]],[[64.3,55.1],[0.4,94.8],[0,10.2],[7.9,10.2],[52,42.4]],[[70.4,50],[64.3,55.1],[0.4,94.8],[0,10.2],[7.9,10.2],[34.2,25],[40.6,29.3],[51.7,36.8],[66.2,46.9]],[[70.4,50],[64.3,55.1],[0.4,94.8],[0,10.2],[7.9,10.2],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[64.3,55.1],
[0.4,94.8],[0,9.7],[1.1,9.7],[7.9,10.2],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[64.3,55.1],[0.4,94.8],[0,9.7],[1.1,9.7],[7.9,10.2],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[64.3,55.1],[0.4,94.8],[0,9.7],[1.1,9.7],[7.9,10.2],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[64.3,55.1],[0.4,94.8],[0,9.7],[1.1,9.7],[7.9,10.2],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[64.3,55.1],[0.4,94.8],[0,9.7],[1.1,9.7],[7.9,10.2],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[64.3,55.1],[0.4,
94.8],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[64.3,55.1],[0.4,94.8],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[0.4,94.8],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0,90.8],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],
[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,
10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],
[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[4.2,90.8],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[2.9,92.1],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,
20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[2.9,92.1],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[2.9,92.1],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[2.9,92.1],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[2.9,92.1],[0.3,93],[0,9.7],[1.1,9.7],[7.9,10.2],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[70.4,50],[2.9,92.1],[0.3,93],[0,
9.7],[1.1,9.7],[13.4,11.3],[27.7,20.6],[51.7,36.8],[66.2,46.9]],[[65.6,50.2],[2.9,92.1],[0.3,93],[0,9.7],[1.1,9.7],[13.4,11.3],[27.7,20.6]],[[65.6,50.2],[2.9,92.1],[0.3,93],[0,11.3],[1.1,9.7],[13.4,11.3]],[[65.6,50.2],[2.9,92.1],[0.3,93],[0,11.3],[13.4,11.3]],[[65.6,50.2],[2.9,92.1],[0.3,93],[0,11.3],[13.4,11.3]],[[65.6,50.2],[2.9,92.1],[0.3,93],[0,11.3],[13.4,11.3]],[[65.6,50.2],[2.9,92.1],[0.3,93],[0,11.3],[13.4,11.3]],[[65.6,50.2],[2.9,92.1],[0.3,93],[0,16.8],[13.4,11.3]],[[65.6,50.2],[2.9,92.1],
[0.3,93],[0,16.8],[14.1,16.8],[24.5,20.3]],[[65.6,50.2],[2.9,92.1],[0.3,93],[0,16.2],[1.7,16.2],[14.1,16.8],[24.5,20.3]],[[65.6,50.2],[2.9,92.1],[0.3,93],[0,16.2],[1.7,16.2],[14.1,16.8],[24.5,20.3]],[[65.6,50.2],[2.9,92.1],[0.3,93],[0,16.2],[1.7,16.2],[14.1,16.8],[24.5,20.3]],[[65.6,50.2],[2.9,92.1],[0,92.1],[0,16.2],[1.7,16.2],[14.1,16.8],[24.5,20.3]],[[65.6,50.2],[2.9,92.1],[0,92.1],[0,16.2],[1.7,16.2],[14.1,16.8],[24.5,20.3]],[[60.8,50.7],[2.9,92.1],[0,92.1],[0,16.2],[1.7,16.2],[14.1,16.8],[24.5,
20.3],[44.9,37.3]],[[60.8,50.7],[2.9,92.1],[0,92.1],[0,16.2],[1.7,16.2],[14.1,16.8],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],[2.9,92.1],[0,92.1],[0,11],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],[2.9,92.1],[0,92.1],[0,10.7],[12.1,10.7],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],[2.9,92.1],[0,92.1],[0,10.7],[12.1,10.7],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],[2.9,92.1],[0,92.1],[0,10.7],[12.1,10.7],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],[2.9,92.1],[0,92.1],[0,10.7],[12.1,10.7],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],
[2.9,92.1],[0,92.1],[0,10.7],[12.1,10.7],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],[2.9,92.1],[0,92.1],[0,10.7],[12.1,10.7],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],[2.9,92.1],[0,92.1],[0,10.7],[12.1,10.7],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],[2.9,92.1],[0,92.1],[0,10.7],[12.1,10.7],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],[57.4,53.6],[2.9,92.1],[0,92.1],[0,10.7],[12.1,10.7],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],[57.4,53.6],[8.3,87.1],[2.8,88],[0,88],[0,10.7],[12.1,10.7],[24.5,20.3],[44.9,37.3]],[[60.8,50.7],
[57.4,53.6],[8.3,87.1],[2.8,88],[0,88],[0,10.7],[12.1,10.7],[44.9,37.3]],[[59.4,54.3],[8.3,87.1],[2.8,88],[0,88],[0,9.6],[6.5,9.6],[12.1,10.7],[23.3,20.4],[48.8,42.4],[55.5,48.4]],[[59.4,54.3],[8.3,87.1],[0,87.1],[0,9.6],[6.5,9.6],[12.1,10.7],[37,31],[57.4,51.5]],[[59.8,56.8],[8.3,87.1],[0,87.1],[0,9.6],[6.5,9.6],[12.1,10.7],[37,31],[46.4,39.8],[57.4,51.5],[59.4,54.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[12.1,10.7],[31.5,26],[37,31],[46.4,39.8],[54.9,47.8]],[[62.2,
55],[61.2,55.7],[59.8,56.8],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[12.1,10.7],[25.8,20.9],[37,31],[42.4,35.9],[50,43]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[12.1,10.7],[25.8,20.9],[37,31],[42.4,35.9],[50,43],[56.8,49.5]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[12.1,10.7],[25.8,20.9],[37,31],[54,46.5]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],
[25.8,20.9],[37,31],[54,46.5]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[51.1,62.5],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],[25.8,20.9],[37,31],[54,46.5]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[44.6,66.9],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],[25.8,20.9],[37,31],[54,46.5]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[44.6,66.9],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],[25.8,20.9],[37,31],[54,46.5]],[[62.2,55],[61.2,
55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[34.6,73.5],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],[25.8,20.9],[45.3,37.5],[51.5,43.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[31.4,75.6],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],[25.8,20.9],[38.3,31.4],[45.3,37.5],[51.5,43.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[31.4,75.6],[25.1,79.7],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],[25.8,20.9],[38.3,31.4],[45.3,37.5],[51.5,43.3]],[[62.2,55],
[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[18.9,83.9],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],[25.8,20.9],[38.3,31.4],[45.3,37.5],[51.5,43.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[16,85.8],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],[25.8,20.9],[38.3,31.4],[45.3,37.5],[51.5,43.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[16,85.8],[13.1,87.7],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],[25.8,20.9],[38.3,31.4],[45.3,37.5],[51.5,43.3]],
[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[10.3,89.6],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],[25.8,20.9],[38.3,31.4],[45.3,37.5],[51.5,43.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[1.7,93.8],[0,93.8],[0,9.6],[6.5,9.6],[13.1,10.4],[48.4,38.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[0.6,94.9],[0,9.6],[6.5,9.6],[13.1,10.4],[48.4,38.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,
92.6],[0.6,94.9],[0,9.6],[6.5,9.6],[13.1,10.4],[48.4,38.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[4.8,93.3],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[48.4,38.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[4.8,93.3],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[48.4,38.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[4.8,93.3],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[48.4,38.3]],[[62.2,
55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[48.4,38.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[42.6,32.8],[48.4,38.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[37.3,28.6],[42.6,32.8],[48.4,38.3]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,
58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[41.4,28.9],[47.3,33.1]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[34.6,24.3],[41.4,28.9],[47.3,33.1]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[34.6,24.3],[41.4,28.9],[47.3,33.1]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,
60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[34.6,24.3],[41.4,28.9],[47.3,33.1]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[34.6,24.3],[41.4,28.9],[47.3,33.1]],[[62.2,55],[61.2,55.7],[59.8,56.8],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[34.6,24.3],[41.4,28.9],[47.3,33.1]],[[62.2,55],[61.2,55.7],[57.2,58.6],[54.3,60.5],[7.6,
91.5],[5.9,92.6],[3.6,94],[0.6,94.9],[0,9.1],[9.5,9.1],[13.1,10.4],[34.6,24.3],[41.4,28.9],[47.3,33.1]],[[59.4,52.3],[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[13.1,10.4],[34.6,24.3],[41.4,28.9],[47.3,33.1]],[[57.2,58.6],[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[13.1,10.4],[34.6,24.3],[41.4,28.9],[47.3,33.1],[56.8,49.5]],[[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[13.1,10.4],[43.4,27.8],
[47.3,33.1],[54,46.5]],[[54.3,60.5],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[13.1,10.4],[48.3,28],[51.5,43.3]],[[51.6,57.7],[51.1,62.5],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[48.3,28],[51.5,43.3]],[[51.6,57.7],[47.8,64.7],[44.6,66.9],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[48.3,28],[51.5,43.3]],[[51.5,43.3],[49.3,54.7],[37.9,71.2],[34.6,73.5],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[48.3,28]],[[51.5,43.3],
[49.3,54.7],[37.9,71.2],[34.6,73.5],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[48.3,28]],[[48.4,38.3],[47,51.4],[42.3,63.7],[31.4,75.6],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[48.3,28]],[[48.4,38.3],[47,51.4],[40.2,60.4],[25.1,79.7],[18.9,83.9],[16,85.8],[10.3,89.6],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[48.3,28]],[[48.4,38.3],[47,51.4],[40.2,60.4],[32.7,70],[24.6,78.6],[18.9,83.9],[16,85.8],[10.3,89.6],[7.6,91.5],[5.9,92.6],[3.6,
94],[2,95],[0,95],[0,9.1],[9.5,9.1],[48.3,28]],[[48.4,38.3],[47,51.4],[40.2,60.4],[32.7,70],[24.6,78.6],[16,85.8],[10.3,89.6],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[48.3,28]],[[48.4,38.3],[45,48],[40.2,60.4],[32.7,70],[13.1,87.7],[10.3,89.6],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[48.3,28]],[[48.4,38.3],[45,48],[38.7,56.8],[31.3,66.3],[23.6,76],[10.3,89.6],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[48.3,28]],[[51,24],[48.4,38.3],
[45,48],[38.7,56.8],[31.3,66.3],[23.6,76],[7.6,91.5],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1]],[[51,24],[45,48],[38.7,56.8],[31.3,66.3],[23.6,76],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[47.6,22.6]],[[51,24],[38.7,56.8],[31.3,66.3],[23.6,76],[5.9,92.6],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[36.3,18.2],[47.6,22.6]],[[51,24],[47.3,33.1],[43.4,42.3],[31.3,66.3],[4.8,93.3],[3.6,94],[2,95],[0,95],[0,9.1],[9.5,9.1],[36.3,18.2],[47.6,22.6]],[[51,24],[47.3,33.1],[43.4,42.3],[37.7,
52.9],[17.9,79.9],[3.6,94],[2,95],[0,95],[0,13.8],[17.9,13.8],[36.3,18.2],[47.6,22.6]],[[51,24],[47.3,33.1],[43.4,42.3],[37.7,52.9],[17.9,79.9],[3.6,94],[2,95],[0,95],[0,13.8],[17.9,13.8],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51,24],[47.3,33.1],[43.4,42.3],[37.7,52.9],[17.9,79.9],[3.6,94],[2,95],[0,95],[0,13.8],[17.9,13.8],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51,24],[47.3,33.1],[43.4,42.3],[37.7,52.9],[30.4,62.6],[22.8,72.2],[12.7,83.6],[3.1,94.3],[2,95],[0,95],[0,13.3],[22.9,13.3],[27.8,15],[36.3,
18.2],[47.6,22.6]],[[51,24],[47.3,33.1],[43.4,42.3],[37.7,52.9],[30.4,62.6],[22.8,72.2],[12.7,83.6],[3.1,94.3],[2,95],[0,95],[0,11.8],[9.1,11.8],[22.9,13.3],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51,24],[47.3,33.1],[43.4,42.3],[30.4,62.6],[22.8,72.2],[12.7,83.6],[2,95],[0,95],[0,11.8],[9.1,11.8],[22.9,13.3],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51,24],[30.4,62.6],[22.8,72.2],[12.7,83.6],[2,95],[0,95],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51,24],[37.9,47.1],[30.7,58.3],[18.3,75.8],
[12.7,83.6],[2,95],[0,95],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51,24],[37.9,47.1],[30.7,58.3],[18.3,75.8],[12.7,83.6],[2,95],[0,95],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51,24],[37.9,47.1],[30.7,58.3],[18.3,75.8],[12.7,83.6],[2,95],[0,95],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51,24],[37.9,47.1],[30.7,58.3],[18.3,75.8],[6.7,89.5],[2,95],[0,95],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51,24],[37.9,47.1],[30.7,58.3],[18.3,
75.8],[6.7,89.5],[2,95],[0,95],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51,24],[37.9,47.1],[30.7,58.3],[18.3,75.8],[6.7,89.5],[2,95],[0,95],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51.1,26.8],[30.7,58.3],[18.3,75.8],[6.7,89.5],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[30.7,58.3],[18.3,75.8],[6.7,89.5],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[37.9,47.1],
[23.6,68],[6.7,89.5],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[23.6,68],[6.7,89.5],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[23.6,68],[6.7,89.5],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[46.3,35],[24.1,67.2],[8.6,87.2],[6.7,89.5],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[46.3,
35],[24.1,67.2],[18.4,75.1],[6.7,89.5],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[46.3,35],[24.1,67.2],[18.4,75.1],[6.7,89.5],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[46.3,35],[39.5,45.5],[24.1,67.2],[18.4,75.1],[6.7,89.5],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[46.3,35],[39.5,45.5],[24.1,67.2],[18.4,75.1],[6.7,89.5],[3.1,93.7],[0,
94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[46.3,35],[39.5,45.5],[31.8,56.8],[18.4,75.1],[6.7,89.5],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[46.3,35],[39.5,45.5],[31.8,56.8],[12.7,82.8],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[46.3,35],[39.5,45.5],[31.8,56.8],[12.7,82.8],[3.1,93.7],[0,94.2],[0,11.5],[17.9,11.5],[27.8,15],[36.3,18.2],[47.6,22.6],
[51,24]],[[51.1,26.8],[46.3,35],[39.5,45.5],[31.8,56.8],[12.7,82.8],[3.1,93.7],[0,94.2],[0,7.9],[8.3,7.9],[27.8,15],[36.3,18.2],[47.6,22.6],[51,24]],[[51.1,26.8],[46.3,35],[39.5,45.5],[31.8,56.8],[12.7,82.8],[4.2,92.9],[2.7,94.2],[0,94.2],[0,7.9],[8.3,7.9],[27.8,15],[36.3,18.2],[47.6,22.6]],[[51.1,26.8],[46.3,35],[39.5,45.5],[31.8,56.8],[12.7,82.8],[4.2,92.9],[2.7,94.2],[0,94.2],[0,7.9],[8.3,7.9],[27.8,15],[36.3,18.2]],[[51.1,26.8],[46.3,35],[39.5,45.5],[31.8,56.8],[12.7,82.8],[4.2,92.9],[2.7,94.2],
[0,94.2],[0,7.9],[8.3,7.9],[27.8,15]],[[51.1,26.8],[46.3,35],[39.5,45.5],[31.8,56.8],[12.7,82.8],[4.2,92.9],[2.7,94.2],[0,94.2],[0,7.9],[8.3,7.9],[27.8,15]],[[51.1,26.8],[46.3,35],[39.5,45.5],[31.8,56.8],[12.7,82.8],[4.2,92.9],[2.7,94.2],[0,94.2],[0,7.9],[8.3,7.9],[27.8,15]],[[52.2,30.4],[12.7,82.8],[4.2,92.9],[2.7,94.2],[0,94.2],[0,7.9],[8.3,7.9],[22.9,13.3],[51.1,26.8]],[[52.2,30.4],[12.7,82.8],[4.2,92.9],[2.7,94.2],[0,94.2],[0,7.9],[8.3,7.9],[22.9,13.3],[51.1,26.8]],[[52.2,30.4],[12.7,82.8],[4.2,
92.9],[2.7,94.2],[0,94.2],[0,7.9],[8.3,7.9],[17.9,11.5],[51.1,26.8]],[[52.2,30.4],[12.7,82.8],[4.2,92.9],[3.1,93.7],[0,93.7],[0,7.9],[8.3,7.9],[17.9,11.5],[51.1,26.8]],[[52.2,30.4],[23.7,70.3],[5.3,92],[3.1,93.7],[0,93.7],[0,7.9],[8.3,7.9],[17.9,11.5],[51.1,26.8]],[[52.2,30.4],[23.7,70.3],[5.3,92],[3.1,93.7],[0,93.7],[0,7.9],[8.3,7.9],[51.1,26.8]],[[52.2,30.4],[47.6,39.1],[23.7,70.3],[5.3,92],[3.1,93.7],[0,93.7],[0,7.9],[8.3,7.9],[51.1,26.8]],[[52.2,30.4],[47.6,39.1],[32.2,60],[23.7,70.3],[5.3,92],
[3.1,93.7],[0,93.7],[0,7.9],[8.3,7.9],[51.1,26.8]],[[52.2,30.4],[47.6,39.1],[32.2,60],[23.7,70.3],[5.3,92],[3.1,93.7],[0,93.7],[0,7.9],[8.3,7.9],[51.1,26.8]],[[52.2,30.4],[47.6,39.1],[32.2,60],[23.7,70.3],[5.3,92],[3.1,93.7],[0,93.7],[0,7.9],[8.3,7.9],[51.1,26.8]],[[52.2,30.4],[47.6,39.1],[40.7,49.8],[23.7,70.3],[5.3,92],[3.1,93.7],[0,93.7],[0,7.9],[8.3,7.9],[51.1,26.8]],[[52.2,30.4],[47.6,39.1],[40.7,49.8],[23.7,70.3],[5.3,92],[3.1,93.7],[0,93.7],[0,7.9],[8.3,7.9],[51.1,26.8]],[[52.2,30.4],[47.6,
39.1],[40.7,49.8],[18.3,78.3],[5.3,92],[4.2,92.9],[0,92.9],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[46.4,26.7]],[[52.2,30.4],[47.6,39.1],[40.7,49.8],[18.3,78.3],[5.3,92],[4.2,92.9],[0,92.9],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4]],[[52.2,30.4],[47.6,39.1],[40.7,49.8],[18.3,78.3],[7.1,90.7],[4.2,92.9],[0,92.9],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4]],[[52.2,30.4],[47.6,39.1],[40.7,49.8],[18.3,78.3],[7.1,90.7],[4.2,92.9],[0,92.9],[0,7.9],[8.3,
7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4]],[[52.2,30.4],[47.6,39.1],[40.7,49.8],[18.3,78.3],[7.1,90.7],[4.2,92.9],[0,92.9],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4]],[[55.1,34.1],[18.3,78.3],[7.1,90.7],[4.2,92.9],[0,92.9],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],[18.3,78.3],[7.1,90.7],[4.2,92.9],[0,92.9],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],[18.3,78.3],[7.1,90.7],[4.2,
92.9],[0,92.9],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],[18.3,78.3],[7.1,90.7],[4.2,92.9],[0,92.9],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],[18.3,78.3],[7.1,90.7],[4.2,92.9],[0,92.9],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],[33.6,62.9],[7.1,90.7],[4.2,92.9],[0,92.9],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],
[50.7,43.3],[33.6,62.9],[10,88.5],[4.2,92.9],[0,92.9],[0,23],[0,16],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],[50.7,43.3],[24.7,73.4],[10,88.5],[4.2,92.9],[0,92.9],[0,23],[0,16],[0,7.9],[8.3,7.9],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],[50.7,43.3],[24.7,73.4],[10,88.5],[4.2,92.9],[0,92.9],[0,23],[0,16],[0,8.2],[3.6,8.2],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],[50.7,43.3],[24.7,73.4],[10,
88.5],[5.3,92],[0,92],[0,23],[0,16],[0,8.2],[3.6,8.2],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],[50.7,43.3],[24.7,73.4],[10,88.5],[5.3,92],[0,92],[0,23],[0,16],[0,8.2],[3.6,8.2],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],[50.7,43.3],[24.7,73.4],[10,88.5],[5.3,92],[0,92],[0,23],[0,16],[0,8.2],[3.6,8.2],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[55.1,34.1],[50.7,43.3],[24.7,73.4],[13.1,86.2],[5.3,92],[0,92],[0,23],[0,16],[0,
8.2],[3.6,8.2],[19.7,13.2],[29.5,18],[38.2,22.3],[45.6,26.4],[52.2,30.4]],[[59.2,38],[13.1,86.2],[5.3,92],[0,92],[0,23],[0,16],[0,8.2],[3.6,8.2],[19.7,13.2],[29.5,18],[38.2,22.3],[52.2,30.4]],[[59.2,38],[13.1,86.2],[5.3,92],[0,92],[0,23],[0,16],[0,13.2],[19.7,13.2],[29.5,18],[55.1,34.1]],[[59.2,38],[53.7,45.9],[13.1,86.2],[5.3,92],[0,92],[0,23],[0,16],[0,13.2],[19.7,13.2],[29.5,18],[55.1,34.1]],[[59.2,38],[53.7,45.9],[44.9,55.5],[16.4,83.8],[5.3,92],[0,92],[0,23],[0,16],[0,13.2],[19.7,13.2],[55.1,
34.1]],[[59.2,38],[53.7,45.9],[44.9,55.5],[16.4,83.8],[5.3,92],[0,92],[0,23],[0,16],[0,13.2],[19.7,13.2],[55.1,34.1]],[[59.2,38],[53.7,45.9],[44.9,55.5],[16.4,83.8],[7.1,90.7],[0,90.7],[0,23],[0,16],[0,13.2],[19.7,13.2],[55.1,34.1]],[[62.8,40.6],[26,75.5],[16.4,83.8],[7.1,90.7],[0,90.7],[0,23],[0,16],[0,13.2],[19.7,13.2],[55.1,34.1]],[[62.8,40.6],[26,75.5],[19.7,81.4],[7.1,90.7],[0,90.7],[0,23],[0,16],[0,13.2],[19.7,13.2],[55.1,34.1]],[[62.8,40.6],[56.9,48.4],[19.7,81.4],[7.1,90.7],[0,90.7],[0,23],
[0,16],[0,13.4],[12.5,13.4],[23.3,15.5],[34.2,21.8],[43.8,27.4],[55.1,34.1]],[[62.8,40.6],[56.9,48.4],[19.7,81.4],[7.1,90.7],[1.4,91.8],[0,91.8],[0,23],[0,16],[0,13.4],[12.5,13.4],[23.3,15.5],[34.2,21.8],[43.8,27.4],[55.1,34.1]],[[66.3,43.1],[19.7,81.4],[7.1,90.7],[1.4,91.8],[0,91.8],[0,23],[0,16],[0,13.4],[12.5,13.4],[23.3,15.5],[34.2,21.8],[43.8,27.4],[55.1,34.1]],[[66.3,43.1],[26.7,76.4],[7.1,90.7],[1.4,91.8],[0,91.8],[0,23],[0,16],[0,13.4],[12.5,13.4],[23.3,15.5],[34.2,21.8],[43.8,27.4],[55.1,
34.1]],[[66.3,43.1],[26.7,76.4],[7.1,90.7],[1.4,91.8],[0,91.8],[0,23],[0,16],[0,13.4],[12.5,13.4],[23.3,15.5],[34.2,21.8],[43.8,27.4],[55.1,34.1]],[[70,45.7],[7.1,90.7],[1.4,91.8],[0,91.8],[0,23],[0,16],[0,13.4],[12.5,13.4],[23.3,15.5],[34.2,21.8],[43.8,27.4],[55.1,34.1]],[[70,45.7],[34.4,71.2],[7.1,90.7],[1.4,91.8],[0,91.8],[0,23],[0,16],[0,13.4],[12.5,13.4],[23.3,15.5],[34.2,21.8],[43.8,27.4],[55.1,34.1]],[[74.1,48],[10,88.5],[1.4,91.8],[0,91.8],[0,23],[0,16],[0,13.4],[12.5,13.4],[23.3,15.5],[34.2,
21.8],[43.8,27.4],[55.1,34.1]],[[74.1,48],[10,88.5],[1.5,93.5],[0,93.5],[0,23],[0,16],[0,13.4],[12.5,13.4],[23.3,15.5],[34.2,21.8],[43.8,27.4],[55.1,34.1]],[[74.1,48],[10,88.5],[1.5,93.5],[0,93.5],[0,23],[0,16],[0,9],[11.1,9],[23.3,15.5],[34.2,21.8],[43.8,27.4],[55.1,34.1]],[[74.1,48],[10,88.5],[1.5,93.5],[0,93.5],[0,23],[0,16],[0,9],[11.1,9],[23.3,15.5],[34.2,21.8],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[10,88.5],[1.5,93.5],[0,93.5],[0,23],[0,16],[0,9],[11.1,9],[23.3,15.5],[34.2,
21.8],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[10,88.5],[1.5,93.5],[0,93.5],[0,23],[0,16],[0,9],[11.1,9],[23.3,15.5],[34.2,21.8],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[10,88.5],[1.5,93.5],[0,93.5],[0,23],[0,16],[0,9],[11.1,9],[23.3,15.5],[34.2,21.8],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[10,88.5],[1.5,93.5],[0,93.5],[0,23],[0,16],[0,9],[11.1,9],[23.3,15.5],[34.2,21.8],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[10,88.5],
[1.5,93.5],[0,93.5],[0,23],[0,16],[0,9],[11.1,9],[23.3,15.5],[34.2,21.8],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[23.3,15.5],[29.4,18.9],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[23.3,15.5],[29.4,18.9],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[23.3,15.5],[29.4,18.9],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[1.5,93.5],
[0,93.5],[0,9],[11.1,9],[23.3,15.5],[29.4,18.9],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[23.3,15.5],[29.4,18.9],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[23.3,15.5],[29.4,18.9],[43.8,27.4],[51.9,32.8],[64.5,41.3],[69.3,44.7]],[[74.1,48],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[23.3,15.5],[29.4,18.9],[43.8,27.4],[64.5,41.3],[69.3,44.7]],[[74.1,48],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[23.3,15.5],[29.4,
18.9],[34.2,21.8],[42.6,27],[48.9,31],[54.1,34.4],[64.5,41.3],[69.3,44.7]],[[74.1,48],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[23.3,15.5],[29.4,18.9],[34.2,21.8],[42.6,27],[48.9,31],[54.1,34.4],[64.5,41.3],[69.3,44.7]],[[74.1,48],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[23.3,15.5],[29.4,18.9],[42.6,27],[48.9,31],[54.1,34.4],[64.5,41.3],[69.3,44.7]],[[74.1,48],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[14,10.4],[23.3,15.5],[29.4,18.9],[42.6,27],[48.9,31],[54.1,34.4],[64.5,41.3],[69.3,44.7]],[[74.2,47.5],[72.9,48.7],
[1.5,93.5],[0,93.5],[0,9],[11.1,9],[14,10.4],[23.3,15.5],[29.4,18.9],[42.6,27],[48.9,31],[54.1,34.4]],[[74.2,47.5],[72.9,48.7],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[14,10.4],[23.3,15.5],[29.4,18.9],[42.6,27],[48.9,31],[54.1,34.4]],[[74.2,47.5],[72.9,48.7],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[14,10.4],[29.4,18.9],[42.6,27],[48.9,31],[54.1,34.4]],[[74.2,47.5],[72.9,48.7],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[14,10.4],[29.4,18.9],[42.6,27],[48.9,31],[54.1,34.4]],[[74.2,47.5],[72.9,48.7],[1.5,93.5],[0,93.5],
[0,9],[11.1,9],[14,10.4],[29.4,18.9],[42.6,27],[48.9,31],[54.1,34.4]],[[74.2,47.5],[72.9,48.7],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[14,10.4],[29.4,18.9],[42.6,27],[48.9,31],[54.1,34.4]],[[76.7,47.3],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[14,10.4],[29.4,18.9]],[[76.7,47.3],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[14,10.4],[29.4,18.9]],[[76.7,47.3],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[14,10.4],[29.4,18.9]],[[76.7,47.3],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[14,10.4],[29.4,18.9]],[[76.7,47.3],[1.5,93.5],[0,93.5],
[0,9],[11.1,9],[14,10.4],[29.4,18.9]],[[80,47.2],[1.5,93.5],[0,93.5],[0,9],[11.1,9],[14,10.4],[29.4,18.9]],[[80,47.2],[11.1,85.5],[0,85.5],[0,9],[11.1,9],[14,10.4],[29.4,18.9]],[[80,47.2],[11.1,85.5],[0,85.5],[0,9.6],[8.3,9.6],[14,10.4],[29.4,18.9]],[[80,47.2],[11.1,85.5],[0,85.5],[0,9.6],[8.3,9.6],[14,10.4],[29.4,18.9]],[[83.2,47],[11.1,85.5],[0,85.5],[0,9.6],[8.3,9.6],[14,10.4]],[[83.2,47],[11.1,85.5],[0,85.5],[0,9.6],[8.3,9.6],[14,10.4],[77.1,43.7]],[[83.2,47],[11.1,85.5],[0,85.5],[0,9.6],[8.3,
9.6],[14,10.4],[71,40.4]],[[83.2,47],[11.1,85.5],[0,85.5],[0,9.6],[8.3,9.6],[14,10.4],[58.1,33.5],[71,40.4]],[[83.2,47],[11.1,85.5],[0,85.5],[0,9.6],[8.3,9.6],[14,10.4],[58.1,33.5],[71,40.4]],[[83.2,47],[11.1,85.5],[0,85.5],[0,9.6],[8.3,9.6],[14,10.4],[58.1,33.5],[71,40.4]],[[83.2,47],[11.1,85.5],[0,85.5],[0,9.6],[8.3,9.6],[14,10.4],[58.1,33.5],[71,40.4]],[[83.2,47],[11.1,85.5],[0,85.5],[0,9.6],[8.3,9.6],[14,10.4],[58.1,33.5],[71,40.4]],[[83.2,47],[11.1,85.5],[0,85.5],[0,9.6],[8.3,9.6],[14,10.4],
[58.1,33.5],[71,40.4]],[[83.2,47],[11.1,85.5],[3.5,87.4],[0,87.4],[0,9.6],[8.3,9.6],[14,10.4],[58.1,33.5],[71,40.4]],[[83.2,47],[3.9,91.5],[0,91.5],[0,9.6],[8.3,9.6],[14,10.4],[58.1,33.5],[71,40.4]],[[83.2,47],[3.9,91.5],[0,91.5],[0,9.6],[8.3,9.6],[14,10.4],[58.1,33.5],[71,40.4]],[[83.2,47],[78.7,51.4],[3.9,91.5],[0,91.5],[0,9.6],[8.3,9.6],[14,10.4],[58.1,33.5],[71,40.4]],[[83.2,47],[78.7,51.4],[3.9,91.5],[0,91.5],[0,9.6],[8.3,9.6],[14,10.4],[58.1,33.5],[71,40.4]],[[83.2,47],[78.7,51.4],[3.9,91.5],
[0,91.5],[0,9.6],[8.3,9.6],[14,10.4],[58.1,33.5],[71,40.4]],[[83.2,47],[78.7,51.4],[3.9,91.5],[0,91.5],[0,9.6],[8.3,9.6],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]],[[83.2,47],[78.7,51.4],[3.9,91.5],[0,91.5],[0,9.6],[8.3,9.6],[12.4,10.7],[44.3,26.6],[58.1,33.5],[71,40.4]]];function Af(a){this.stack=Error().stack||"";if(a)this.message=String(a)}Ca(Af,Error);Af.prototype.name="CustomError";function Bf(a,b){b.unshift(a);Af.call(this,td.apply(l,b));b.shift();this.Sy=a}Ca(Bf,Af);Bf.prototype.name="AssertionError";function Cf(a,b){aa(new Bf("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};var Df=Array.prototype,Ef=Df.indexOf?function(a,b,c){return Df.indexOf.call(a,b,c)}:function(a,b,c){c=c==l?0:c<0?Math.max(0,a.length+c):c;if(na(a))return!na(b)||b.length!=1?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ff=Df.forEach?function(a,b,c){Df.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=na(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Gf=Df.filter?function(a,b,c){return Df.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=
0,g=na(a)?a.split(""):a,i=0;i<d;i++)if(i in g){var j=g[i];b.call(c,j,i,a)&&(e[f++]=j)}return e};function Hf(a,b){var c=Ef(a,b);c>=0&&Df.splice.call(a,c,1)};function If(a,b,c){return Math.min(Math.max(a,b),c)};var Jf={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:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Kf(a){var b={},a=String(a),c=a.charAt(0)=="#"?a:"#"+a;if(Lf.test(c))return b.tb=Mf(c),b.type="hex",b;else{a:{var d=a.match(Nf);if(d){var c=Number(d[1]),e=Number(d[2]),d=Number(d[3]);if(c>=0&&c<=255&&e>=0&&e<=255&&d>=0&&d<=255){c=[c,e,d];break a}}c=[]}if(c.length)return b.tb=Of(c),b.type="rgb",b;else if(Jf&&(c=Jf[a.toLowerCase()]))return b.tb=c,b.type="named",b}aa(Error(a+" is not a valid color string"))}
function Pf(a){a=Mf(a);return"rgb("+[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)].join(",")+")"}var Qf=/#(.)(.)(.)/;function Mf(a){Lf.test(a)||aa(Error("'"+a+"' is not a valid hex color"));a.length==4&&(a=a.replace(Qf,"#$1$1$2$2$3$3"));return a.toLowerCase()}
function Rf(a,b,c){a=Number(a);b=Number(b);c=Number(c);(isNaN(a)||a<0||a>255||isNaN(b)||b<0||b>255||isNaN(c)||c<0||c>255)&&aa(Error('"('+a+","+b+","+c+'") is not a valid RGB color'));a=Sf(a.toString(16));b=Sf(b.toString(16));c=Sf(c.toString(16));return"#"+a+b+c}function Of(a){return Rf(a[0],a[1],a[2])}
function Tf(a,b,c){a/=255;b/=255;c/=255;var d=Math.max(a,b,c),e=Math.min(a,b,c),f=0,g=0,i=0.5*(d+e);d!=e&&(d==a?f=60*(b-c)/(d-e):d==b?f=60*(c-a)/(d-e)+120:d==c&&(f=60*(a-b)/(d-e)+240),g=0<i&&i<=0.5?(d-e)/(2*i):(d-e)/(2-2*i));return[Math.round(f+360)%360,g,i]}function Uf(a,b,c){c<0?c+=1:c>1&&(c-=1);if(6*c<1)return a+(b-a)*6*c;else if(2*c<1)return b;else if(3*c<2)return a+(b-a)*(2/3-c)*6;return a}
function Vf(a,b,c){var d=0,e=0,f=0;a/=360;if(b==0)d=e=f=c*255;else var g=f=0,g=c<0.5?c*(1+b):c+b-b*c,f=2*c-g,d=255*Uf(f,g,a+1/3),e=255*Uf(f,g,a),f=255*Uf(f,g,a-1/3);return[Math.round(d),Math.round(e),Math.round(f)]}var Lf=/^#(?:[0-9a-f]{3}){1,2}$/i,Nf=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Sf(a){return a.length==1?"0"+a:a};function Wf(a){var b={},a=String(a),c=a.charAt(0)=="#"?a:"#"+a;if(Xf.test(c))return b.tb=Yf(c),b.type="hex",b;else{a:{var d=a.match(Zf);if(d){var c=Number(d[1]),e=Number(d[2]),f=Number(d[3]),d=Number(d[4]);if(c>=0&&c<=255&&e>=0&&e<=255&&f>=0&&f<=255&&d>=0&&d<=1){c=[c,e,f,d];break a}}c=[]}if(c.length)return b.tb=$f(c),b.type="rgba",b;else{a:{if(d=a.match(ag))if(c=Number(d[1]),e=Number(d[2]),f=Number(d[3]),d=Number(d[4]),c>=0&&c<=360&&e>=0&&e<=100&&f>=0&&f<=100&&d>=0&&d<=1){c=[c,e,f,d];break a}c=[]}if(c.length)return b.tb=
bg(c[0],c[1],c[2],c[3]),b.type="hsla",b}}aa(Error(a+" is not a valid color string"))}var cg=/#(.)(.)(.)(.)/;function Yf(a){Xf.test(a)||aa(Error("'"+a+"' is not a valid alpha hex color"));a.length==5&&(a=a.replace(cg,"#$1$1$2$2$3$3$4$4"));return a.toLowerCase()}function dg(a){a=Yf(a);return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16),parseInt(a.substr(7,2),16)/255]}
function bg(a,b,c,d){var e=Math.floor(d*255);(isNaN(e)||e<0||e>255)&&aa(Error('"('+a+","+b+","+c+","+d+'") is not a valid HSLA color'));d=Sf(e.toString(16));return Of(Vf(a,b/100,c/100))+d}function $f(a){var b=a[0],c=a[1],d=a[2],a=a[3],e=Math.floor(a*255);(isNaN(e)||e<0||e>255)&&aa(Error('"('+b+","+c+","+d+","+a+'") is not a valid RGBA color'));a=Sf(e.toString(16));return Rf(b,c,d)+a}
var Xf=/^#(?:[0-9a-f]{4}){1,2}$/i,Zf=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,20})\)$/i,ag=/^(?:hsla)\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\%,\s?(0|[1-9]\d{0,2})\%,\s?(0|1|0\.\d{0,20})\)$/i;function eg(a){return"rgba("+a.join(",")+")"};function I(a,b){this.Hd=!0;this.xg=this.yg=this.Wf=this.Td=this.Ud=this.Wd=this.Xd=0;this.ye=[0,0,0];this.io=this.jo="";this.ti=0;!a&&b&&(a=b);if(a)if(na(a))a.toLowerCase()=="transparent"&&(a="#0000"),fg(this,a);else if(la(a)&&a.length>=3)gg(this,[a[0],a[1],a[2],rc([a[3],1])]);else if(a.Hd)this.clone(a);else if(a.jf)if(a.ei)this.clone(a.ei);else{var c=hg(a);c.length>0&&this.clone(new I(c[0].color))}else a.kf?a.ei?this.clone(a.ei):b&&this.clone(new I(b)):qa(a)&&("h"in a&&"s"in a&&"v"in a?ig(this,[a.h,
a.s,a.v,a.a||1]):"h"in a&&"s"in a&&"l"in a?jg(this,[a.h,a.s,a.l,a.a||1]):"r"in a&&"g"in a&&"b"in a&&gg(this,[a.r,a.g,a.b,a.a||1]))}q=I.prototype;
q.update=function(a){var b;switch(a){case "r":case "g":case "b":case "rgb":b=Tf(this.Xd,this.Wd,this.Ud);this.Wf=b[0];this.yg=b[1];this.xg=b[2];break;case "h":case "s":case "l":case "hsl":b=Vf(this.Wf,this.yg,this.xg),this.Xd=b[0],this.Wd=b[1],this.Ud=b[2]}if(a!="hsv"){var c=kg(this),a=c[0];b=c[1];var d=c[2],c=Math.max(Math.max(a,b),d),e=Math.min(Math.min(a,b),d);if(e==c)e=a=0;else{var f=c-e,e=f/c,a=a==c?(b-d)/f:b==c?2+(d-a)/f:4+(a-b)/f;a*=60;a<0&&(a+=360);a>360&&(a-=360)}this.ye=[a,e,c];this.ye[0]=
this.Wf;this.ye[2]/=255}this.jo=Of(kg(this));this.io=$f(gg(this));a=kg(this);this.ti=Math.round((a[0]*299+a[1]*587+a[2]*114)/1E3);return this};q.clone=function(a){this.Xd=a.Ua();this.Wd=a.Nh();this.Ud=a.gb();this.Td=a.ga();this.Wf=a.ob();this.yg=a.qx();this.xg=a.Kb();this.ye=qc(ig(a));this.jo=a.tb();this.io=fg(a);this.ti=a.ti;return this};q.Ua=function(a){if(a===h)return this.Xd;this.Xd=If(Math.round(a),0,255);this.update("r");return this};
q.Nh=function(a){if(a===h)return this.Wd;this.Wd=If(Math.round(a),0,255);this.update("g");return this};q.gb=function(a){if(a===h)return this.Ud;this.Ud=If(Math.round(a),0,255);this.update("b");return this};q.ga=function(a){if(a===h)return this.Td;this.Td=If(a,0,1);this.update("a");return this};q.ob=function(a){if(a===h)return this.Wf;this.Wf=If(a,0,360);this.update("h");return this};q.qx=function(a){if(a===h)return this.yg;this.yg=If(a,0,1);this.update("s");return this};
q.Kb=function(a){if(a===h)return this.xg;this.xg=If(a,0,1);this.update("l");return this};q.tb=function(a){return a===h?this.jo:fg(this,a)};function fg(a,b){if(b===h)return a.io;var c=dg(id(b).tb);a.Xd=c[0];a.Wd=c[1];a.Ud=c[2];a.Td=c[3];a.update("rgb");return a}function kg(a){return[a.Xd,a.Wd,a.Ud]}function gg(a,b){if(b===h)return[a.Xd,a.Wd,a.Ud,a.Td];a.Xd=If(Math.round(b[0]),0,255);a.Wd=If(Math.round(b[1]),0,255);a.Ud=If(Math.round(b[2]),0,255);a.Td=If(rc([b[3],1]),0,1);a.update("rgb");return a}
function jg(a,b){b===h||lg(a,b)}function lg(a,b){if(b===h)return[a.Wf,a.yg,a.xg,a.Td];a.Wf=If(Math.round(360+b[0])%360,0,360);a.yg=If(b[1],0,1);a.xg=If(b[2],0,1);a.Td=If(rc([b[3],1]),0,1);a.update("hsl");return a}
function ig(a,b){if(b===h)return a.ye;a.ye[0]=If(Math.round(360+b[0])%360,0,360);a.ye[1]=If(b[1],0,1);a.ye[2]=If(b[2],0,1);var c,d=a.ye[0],e=a.ye[1];c=If(Math.round(a.ye[2]*255),0,255);var f=0,g=0,i=0;if(e==0)i=g=f=c;else{var j=Math.floor(d/60),k=d/60-j,d=c*(1-e),n=c*(1-e*k),e=c*(1-e*(1-k));switch(j){case 1:f=n;g=c;i=d;break;case 2:f=d;g=c;i=e;break;case 3:f=d;g=n;i=c;break;case 4:f=e;g=d;i=c;break;case 5:f=c;g=d;i=n;break;case 6:case 0:f=c,g=e,i=d}}c=[Math.floor(f),Math.floor(g),Math.floor(i)];a.Xd=
c[0];a.Wd=c[1];a.Ud=c[2];a.Td=rc([b[3],1]);c=Tf(a.Xd,a.Wd,a.Ud);a.Wf=a.ye[0];a.yg=c[1];a.xg=c[2];a.update("hsv");return a}function gb(a){a=fg(a);return eg(dg(a))}q.serialize=function(a){return a?{r:this.Ua(),g:this.Nh(),b:this.gb(),a:this.ga()}:fg(this)};q.key=function(){return fg(this)};q.ef=function(a){return a.Hd&&a.key()==this.key()};function mg(a,b,c){var c=If(c,0,1),d=1-c;return gg(a,[Math.round(c*a.Xd+d*b.Xd),Math.round(c*a.Wd+d*b.Wd),Math.round(c*a.Ud+d*b.Ud),c*a.Td+d*b.Td])}
function ng(a,b){mg(a,new I([0,0,0,a.Td]),1-b)}q.Ip=function(a){return mg(this,new I([255,255,255,this.Td]),1-a)};function og(a,b){b=b||"#ffffff";a=a||b;na(a)||aa(Error(a+" is not a valid 6-hex color string"));a.length>7&&a[0]=="#"&&(a=a.substr(0,7));b.length>7&&b[0]=="#"&&(b=b.substr(0,7));try{return Kf(a)}catch(c){return og(b,"#ffffff")}}
function id(a,b){b=b||"#ffffff";a=a||b;na(a)||aa(Error(a+" is not a valid 8-hex color string"));try{return Wf(a)}catch(c){try{var d=og(a,b).tb;return id(d+"ff",b+"ff")}catch(e){return id(b,"#ffffffff")}}}function pg(a,b,c){c&&Xd&&!ae?a=Pf(og(a,b).tb):(a=id(a,b).tb,a=eg(dg(a)));return a}var qg=/rgba?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})(,\s?(0|1|0?\.\d{0,20}))?\)/gi;
function rg(a){var b=a[1],c=a[2];return Math.round(360+180*Math.atan2(Math.sqrt(3)*(b-c),2*a[0]-b-c)/Math.PI)%360}function sg(a){var b=Math.pow(a[0],2.19921875),c=Math.pow(a[1],2.19921875),a=Math.pow(a[2],2.19921875);return[0.60974*b+0.20528*c+0.14919*a,0.31111*b+0.62567*c+0.06322*a,0.01947*b+0.06087*c+0.74457*a]}
function tg(a){var b=a[0],c=a[1],d=a[2],a=-0.97876*b+1.91615*c+0.03342*d,e=0.02869*b-0.14067*c+1.34926*d,f=1/2.19921875,b=Math.pow(If(1.96253*b-0.61068*c-0.34137*d,0,1),f),a=Math.pow(If(a,0,1),f),e=Math.pow(If(e,0,1),f);return[b,a,e]}function ug(a){function b(a){return a>c?Math.pow(a,1/3):d*a+4/29}var c=216/24389,d=841/108,e=a[1];return[116*b(e)-16,500*(b(a[0]/0.96421)-b(e)),200*(b(e)-b(a[2]/0.82491))]}
function vg(a){function b(a){return a>c?a*a*a:d*(a-4/29)}var c=6/29,d=108/841,e=a[0];return[0.96421*b((e+16)/116+a[1]/500),b((e+16)/116),0.82491*b((e+16)/116-a[2]/200)]}
function wg(a){var b=ug(sg(a)),c=new G(Math.sqrt(b[1]*b[1]+b[2]*b[2]),b[0]),d=l,e=l,f=rg(a),f=zf[f],g=new G(f[f.length-1][0],f[f.length-1][1]),i,j;A(f,function(a){d=new G(0,25+0.5*c.y);i=new G(a[0],a[1]);if((j=Vb(g,i,c,d))&&j.x<c.x&&j.x>0&&(!e||j.x>e.x))e=j;g=i});e&&(a=If(0.4+3/(Lb(c,e)||1.0E-4),0,1),e=new G(e.x*(1-a)+c.x*a,e.y*(1-a)+c.y*a),a=tg(vg(function(a,b,c,d){b=Math.atan2(c,b);return[a,d*Math.cos(b),d*Math.sin(b)]}(e.y,b[1],b[2],e.x))));return a}t("lucid.Color",I);I.prototype.serialize=I.prototype.serialize;
I.prototype.lighten=I.prototype.Ip;var xg="CreatePage",M="SetProperty",yg="t",zg="LoadPlugin",Bg="UnloadPlugin";function N(a,b){this.Action=a;for(var c in b)this[c]=b[c]}
function Cg(a){var b=K(a);switch(a.Action){case xg:b.Action="RemovePage";break;case "RemovePage":b.Action=xg;b.Recreate=!0;break;case "CrGr":b.Action="RmGr";break;case "RmGr":b.Action="CrGr";break;case "CreateBlock":b.Action="RemoveBlock";break;case "RemoveBlock":b.Action="CreateBlock";break;case "CreateLine":b.Action="RemoveLine";break;case "RemoveLine":b.Action="CreateLine";break;case zg:b.Action=Bg;break;case Bg:b.Action=zg;break;case M:b.Value=a.OldValue;break;case yg:b.Diff=Oc(a.Diff);break;
case "smt":b.BoundingBox=b.OldBoundingBox;break;case "ssp":b.Value=b.OldValue;break;case "smlp":b.x=b.OldX;b.y=b.OldY;break;case "smp":b.Points=b.OldPoints;break;case "smc":b.ControlPoints=b.OldControlPoints;break;case "sal":b.Action="srl";break;case "srl":b.Action="sal";break;case "sap":b.Action="srp";break;case "srp":b.Action="sap";break;case "salp":b.Action="srlp";break;case "srlp":b.Action="salp";break;case "sat":b.Action="srt";break;case "srt":b.Action="sat";break;case "sas":b.Action="srs";break;
case "srs":b.Action="sas";break;case "mtp":a=b.Page;b.Page=b.OldPage;b.OldPage=a;break;case "NoOp":break;default:return l}return b}t("lucid.model.Action",N);t("lucid.model.ActionType.CreatePage",xg);t("lucid.model.ActionType.CreateBlock","CreateBlock");t("lucid.model.ActionType.CreateLine","CreateLine");t("lucid.model.ActionType.SetProperty",M);t("lucid.model.ActionType.EditText",yg);t("lucid.model.ActionType.LoadPlugin",zg);t("lucid.model.ActionType.UnloadPlugin",Bg);
t("lucid.model.ActionType.RemovePage","RemovePage");t("lucid.model.ActionType.RemoveBlock","RemoveBlock");t("lucid.model.ActionType.RemoveLine","RemoveLine");t("lucid.model.ActionType.NoOp","NoOp");t("lucid.model.ActionType.StencilSetShapeProp","ssp");t("lucid.model.ActionType.StencilMoveText","smt");t("lucid.model.ActionType.StencilMoveLinkPoint","smlp");t("lucid.model.ActionType.StencilMovePoints","smp");t("lucid.model.ActionType.StencilMoveControlPoints","smc");
t("lucid.model.ActionType.StencilAddLines","sal");t("lucid.model.ActionType.StencilRemoveLines","srl");t("lucid.model.ActionType.StencilAddPoints","sap");t("lucid.model.ActionType.StencilRemovePoints","srp");t("lucid.model.ActionType.StencilAddShape","sas");t("lucid.model.ActionType.StencilRemoveShape","srs");t("lucid.model.ActionType.StencilAddText","sat");t("lucid.model.ActionType.StencilRemoveText","srt");t("lucid.model.ActionType.StencilAddLinkPoint","salp");
t("lucid.model.ActionType.StencilRemoveLinkPoint","srlp");function Dg(a,b,c){this.name=a;this.transform=b;this.inverse=c;this.update=l}function Eg(a,b){if(b==0)return new Dg("hDistort",ba(),ba());var c=a.y+a.h/2,d=2*b/a.w,e=d*a.x+b,f=c*d,g=c*e,i=a.x+0.5*a.w;return new Dg("hDistort",function(a){return new G(a.x,a.y*(1+d*a.x-e)-(f*a.x-g))},function(a){var b=d*(a.x-i);return new G(a.x,(a.y+c*b)/(1+b))})}
function Fg(a,b){if(b==0)return new Dg("vDistort",ba(),ba());var c=a.x+a.w/2,d=2*b/a.h,e=d*a.y+b,f=c*d,g=c*e,i=a.y+0.5*a.h;return new Dg("vDistort",function(a){return new G(a.x*(1+d*a.y-e)-(f*a.y-g),a.y)},function(a){var b=d*(a.y-i);return new G((a.x+c*b)/(1+b),a.y)})}
Dg.wave=function(a){var b=a.bb,c=1*a.bend,d=1*a.waves,e=Fg(b,1*a.vd),f=Eg(b,1*a.hd);if(a.h)var g=d*Math.PI*2/b.w,i=b.h*c,a=function(a){a=e.transform(f.transform(a));return new G(a.x,a.y+i*Math.sin((a.x-b.x)*g))},c=function(a){a=new G(a.x,a.y-i*Math.sin((a.x-b.x)*g));return f.inverse(e.inverse(a))};else g=d*Math.PI*2/b.h,i=b.w*c,a=function(a){a=e.transform(f.transform(a));return new G(a.x+i*Math.sin((a.y-b.y)*g),a.y)},c=function(a){a=new G(a.x-i*Math.sin((a.y-b.y)*g),a.y);return f.inverse(e.inverse(a))};
a.Bj=20;return new Dg("wave",a,c)};
Dg.ribbon=function(a){var b=a.bb,c=1*a.bend,d=1*a.waves,e=Fg(b,1*a.vd),f=Eg(b,1*a.hd);if(a.h)var g=d*Math.PI*2/b.w,i=b.h*c,j=2/b.h,a=function(a){a=e.transform(f.transform(a));return new G(a.x,a.y+(j*(a.y-b.y)-1)*i*Math.sin((a.x-b.x)*g))},c=function(a){var c=i*Math.sin((a.x-b.x)*g),a=new G(a.x,(b.h*(a.y+c)+2*c*b.y)/(b.h+2*c));return f.inverse(e.inverse(a))};else var g=d*Math.PI*2/b.h,i=b.w*c,k=2/b.w,a=function(a){a=e.transform(f.transform(a));return new G(a.x+(k*(a.x-b.x)-1)*i*Math.sin((a.y-b.y)*g),
a.y)},c=function(a){var c=i*Math.sin((a.y-b.y)*g),a=new G((b.w*(a.x+c)+2*c*b.x)/(b.w+2*c),a.y);return f.inverse(e.inverse(a))};a.Bj=20;return new Dg("ribbon",a,c)};
Dg.arch=function(a){var b=a.bb,c=!!a.h,d=1*a.bend,e=Fg(b,1*a.vd),f=Eg(b,1*a.hd),a=Math.abs(d),d=d<0?-1:1,g=(1/a-a)/2,i=g*g;if(a<1.0E-7)c=function(a){return e.transform(f.transform(a))},d=function(a){return f.inverse(e.inverse(a))};else if(c)var j=2/b.w,k=d*b.h,c=function(a){a=e.transform(f.transform(a));return new G(a.x,a.y-k*(Math.sqrt(i+1-(j*(a.x-b.x)-1)*(j*(a.x-b.x)-1))-g))},d=function(a){a=new G(a.x,a.y+k*(Math.sqrt(i+1-(j*(a.x-b.x)-1)*(j*(a.x-b.x)-1))-g));return f.inverse(e.inverse(a))};else var n=
2/b.h,k=d*b.w,c=function(a){a=e.transform(f.transform(a));return new G(a.x-k*(Math.sqrt(i+1-(n*(a.y-b.y)-1)*(n*(a.y-b.y)-1))-g),a.y)},d=function(a){a=new G(a.x+k*(Math.sqrt(i+1-(n*(a.y-b.y)-1)*(n*(a.y-b.y)-1))-g),a.y);return f.inverse(e.inverse(a))};c.Bj=20;return new Dg("arch",c,d)};
Dg.arc=function(a){var b=a.bb,c=!!a.h,d=1*a.bend,e=Fg(b,1*a.vd),f=Eg(b,1*a.hd),g=d*Math.PI/2,i=d>0?1:-1;if(Math.abs(d)<1.0E-7)d=function(a){return e.transform(f.transform(a))},a=function(a){return f.inverse(e.inverse(a))};else if(c)var a=b.w/2/Math.sin(g),c=d>0?Math.min(b.w/2,b.h/2):b.h-Math.min(b.w/2,b.h/2),j=b.x-a*Math.sin(-g),k=a+c+b.y,n=b.y+c+a*Math.cos(g),m=2*g/b.w,d=function(a){var a=e.transform(f.transform(a)),c=m*(a.x-b.x)-g;return new G(j+(k-a.y)*Math.sin(c),n-(k-a.y)*Math.cos(c))},p=b.w/
2+b.x,s=a*Math.cos(g)+c+b.y,u=b.w/(2*g),a=function(a){var b=Math.atan2(i*(a.x-p),i*(s-a.y)),a=new G(p+b*u,k+(j-a.x)/Math.sin(b));return f.inverse(e.inverse(a))};else a=b.h/2/Math.sin(g),c=d>0?Math.min(b.w/2,b.h/2):b.w-Math.min(b.w/2,b.h/2),j=b.y-a*Math.sin(-g),k=a-c-b.x,n=b.x+c-a*Math.cos(g),m=2*g/b.h,d=function(a){var a=e.transform(f.transform(a)),c=m*(a.y-b.y)-g;return new G(n+(k+a.x)*Math.cos(c),j+(k+a.x)*Math.sin(c))},p=b.h/2+b.y,s=a*Math.cos(g)-c-b.x,u=b.h/(2*g),a=function(a){var b=Math.atan2(i*
(a.y-p),i*(a.x+s)),a=new G((a.y-j)/Math.sin(b)-k,p+b*u);return f.inverse(e.inverse(a))};d.Bj=20;return new Dg("arc",d,a)};function Gg(a,b,c){var d=this;this.aa=c;this.width=a;this.height=b;this.vAlign="middle";this.Ng="center";this.Qp=!1;this.Ue=[];this.canvas=new Fe(a,b);this.Sk=function(){return[]};Xd?(this.Wc=new Je(0,0,1E4,1E4),this.Un=new Je(0,0,1E4,1E4)):(this.Wc=new Je(0,0,a,b),this.Un=new Je(0,0,a,b));this.canvas.J.css({border:"2px solid transparent",margin:"-2px"});Ge(this.canvas,this.Un);Ge(this.canvas,this.Wc);this.J=$("<div></div>");this.J.append(this.canvas.J);this.Df=[];this.enabled=!1;this.Wc.J.bind("mousedown touchstart",
function(a){d.aa.Dk&&Hg(d.aa);var b=a.originalEvent||a;if(b.touches)a.pageX=b.touches[0].pageX,a.pageY=b.touches[0].pageY;d.Db(a)&&d.ud(a.pageX,a.pageY,a.shiftKey,a)});this.Vd($(document),"mousemove touchmove",function(a){var b=a.originalEvent||a;if(b.touches)a.pageX=b.touches[0].pageX,a.pageY=b.touches[0].pageY;d.aa.hasFocus&&d.aa.uh&&d.Db(a)&&d.fd(a.pageX,a.pageY,a)});this.Vd($(document),"mouseup touchend",function(a){var b=a.originalEvent||a;if(b.changedTouches)a.pageX=b.changedTouches[0].pageX,
a.pageY=b.changedTouches[0].pageY;d.gd(a.pageX,a.pageY,a)});this.Wc.J.bind("dblclick",function(a){if(d.Db(a))d.aa.ua=l,d.aa.fa=Ig(d,Jg(d,a)),Kg(d.aa,{which:37,ctrlKey:!0,preventDefault:a.preventDefault}),Kg(d.aa,{which:39,ctrlKey:!0,shiftKey:!0,preventDefault:a.preventDefault}),a.preventDefault()});this.Ai=new Je(0,0,20,20);Ge(this.canvas,this.Ai);this.Ul=!1;this.Df.push(setInterval(function(){if(d.aa.hasFocus)d.Ul?(d.Ai.J.css("display","none"),d.Ul=!1):d.Oq()},500));this.Iv=this.aa.bind("selection",
r(this.Oq,this));this.ma=[]}q=Gg.prototype;q.ud=function(a,b,c,d){if(c&&this.aa.ua==l)this.aa.ua=this.aa.fa;this.aa.fa=Ig(this,Jg(this,{pageX:a,pageY:b}));if(!c)this.aa.ua=this.aa.fa;Lg(this.aa);d.preventDefault();this.aa.uh=this};q.fd=function(a,b,c){if(this.aa.uh&&this.aa.uh!=this)this.aa.uh=this;if(this.aa.uh==this)this.aa.fa=Ig(this,Jg(this,{pageX:a,pageY:b})),Lg(this.aa),c.preventDefault()};
q.gd=function(a,b,c){if(this.aa.uh==this)this.aa.Mc.focus().select(),this.aa.fa=Ig(this,Jg(this,{pageX:a,pageY:b})),this.aa.uh=l,Lg(this.aa),c.preventDefault()};q.Vd=function(a,b,c){if(this.Hb==l)this.Hb=[];this.Hb.push([a,b,c]);a.bind(b,c)};q.ia=function(){this.aa.ia()};q.Bc={};q.Pq=function(a){var b=this,c=l,d=Ig(b,Jg(b,a));A(Ec(b.aa.content.text,b.aa.language),function(a){d>=a[0]&&d<=a[1]&&(a=b.aa.content.text.substr(a[0],a[1]-a[0]),c=XRegExp("[^\\p{L}]*(.*\\p{L})[^\\p{L}]*$").exec(a)[1])});return c};
q.Db=function(a,b){if(!b&&!this.aa.hasFocus||this.Qp)return!1;if(config.editorSpaceChecksDialogSelector&&$("div.ui-dialog:visible").size()>0)return!1;var c=a.originalEvent||a;if(c.touches)if(c.touches[0])a.pageX=c.touches[0].pageX,a.pageY=c.touches[0].pageY;else if(c.changedTouches[0])a.pageX=c.changedTouches[0].pageX,a.pageY=c.changedTouches[0].pageY;var c=this.canvas.J,d=c.offset();return a.pageX>=d.left&&a.pageY>=d.top&&a.pageX<=d.left+c.width()&&a.pageY<=d.top+c.height()?a:!1};
q.destroy=function(){A(this.Df,function(a){clearInterval(a)});this.Df=[];A(this.Hb,function(a){a[0].unbind(a[1],a[2])});this.Hb=[];this.aa.unbind("selection",this.Iv);this.canvas.destroy();this.canvas=l};function Mg(a,b){if(b==l)b=a.aa.fa;var c=a.ma[a.ma.length-1].end;b>c&&a==a.aa.oa[a.aa.oa.length-1]&&(b=c);return b>=a.ma[0].start&&b<=c&&(b<c||c==a.aa.content.text.length)?!0:!1}q.Oq=function(){var a="none";Mg(this)&&(a="block");this.Ai.J.css("display",a);this.Ul=a=="block"};
q.Xg=function(a){if(a<this.ma[0].start)return 0;for(var b=0;b<this.ma.length;b++)if(a>=this.ma[b].start&&a<this.ma[b].end)return b;return this.ma.length-1};
function Ig(a,b){function c(a,c,i){i==l&&(i={y:Number.MAX_VALUE});if(c||a.y<=b.y&&i.y>b.y){for(c=0;c<a.fc.length-1;c++)if(a.fc[c+1]>b.x)return d=a.start+c,!1;if(d==l)d=a.end,a.end<e.aa.content.text.length&&d--;return!1}}var d=l,e=a,b=a.transform(b,!0);A(a.ma,function(a,b){return c(a,!1,e.ma[b+1])});d==l&&a.ma.length>0&&(b.y>a.ma[0].y?c(a.ma[a.ma.length-1],!0,a.ma[NaN]):c(a.ma[0],!0,a.ma[NaN]));if(d==l)d=a.aa.fa;return d}
function Jg(a,b){var c=a.canvas.J.offset();return new G((b.pageX-c.left)/a.aa.scale-a.er.x,(b.pageY-c.top)/a.aa.scale-a.er.y)}q.Ri=function(a){if(a==l)a=this.aa.fa;var a=Math.max(0,Math.min(a,this.aa.content.text.length)),b=this.ma[this.Xg(a)],c=b.fc[0];if(a>b.start&&(c=b.fc[a-b.start],c==l))c=this.width;return new H(c,b.y+b.Ga-b.bf,1,b.bf+2)};q.Cf=function(){return this.aa.ua==l?!1:this.aa.ua==this.aa.fa?!1:!0};
q.transform=function(a,b){if(b)for(var c=this.Ue.length-1;c>=0;c--)a=this.Ue[c].inverse(a);else A(this.Ue,function(b){a=b.transform(a)});return a};function Ng(a,b){for(var c=[],d=0;d<b.length;d++)for(var e=b[(d+b.length-1)%b.length],f=Lb(e,b[d])/10,g=0;g<1;g+=1/f)c.push(a.transform(new G(b[d].x*g+e.x*(1-g),b[d].y*g+e.y*(1-g))));return c}
q.Ja=function(a,b,c){this.er=new G(0,0);if(c){this.Pb={};for(var d in a)this.Pb[d]=a[d];a=a.ma[a.ma.length-1].end;this.Pb.width=0;this.Pb.height=0;this.Pb.ma=[{start:a,end:a,fc:[]}];this.ma=this.Pb.ma;this.tl=this.Pb.height;this.Pn=this.Pb.width;Ie(this.canvas,function(a){if(a.size)a.te=!1;return a.size})}else if(this.Qp)this.Pb=!a.data||a.Wg?mf(a,new H(0,0,this.width,this.height),this.Sk(),this.Ng,this.vAlign):{width:0,height:0,data:a.data,ma:[{start:Number.MAX_VALUE,end:Number.MAX_VALUE,fc:[]}]},
this.ma=this.Pb.ma,this.tl=this.Pb.height,this.Pn=this.Pb.width,Ie(this.canvas,function(a){if(a.size)a.te=!1;return a.size});else{c=[];for(d=0;d<this.Ue.length;d++)this.Ue[d].update&&(this.Ue[d]=this.Ue[d].update()),c.push(this.Ue[d].transform);var e=0,f=0,g=this.width;d=b||this.height;if(c.length>0){var b=Ng(this,[new G(0,0),new G(this.width,0),new G(this.width,this.height),new G(0,this.height),new G(0,0)]),f=e=Number.MAX_VALUE,i=Number.MIN_VALUE,j=Number.MIN_VALUE;A(b,function(a){e=Math.min(e,a.x);
f=Math.min(f,a.y);i=Math.max(i,a.x);j=Math.max(j,a.y)});g=i-e;d=j-f}else b=[new G(0,0),new G(this.width,0),new G(this.width,this.height),new G(0,this.height)];this.canvas.resize(g*this.aa.scale+1,d*this.aa.scale+1);this.canvas.J.css({position:"absolute",left:Math.round(e*this.aa.scale)+"px",top:Math.round(f*this.aa.scale)+"px"});this.Wc.move(0,0,g*this.aa.scale+1,d*this.aa.scale+1);this.Un.move(0,0,g*this.aa.scale+1,d*this.aa.scale+1);b=this.Un.getContext();b.scale(this.aa.scale,this.aa.scale);b.translate(-e,
-f);this.er=new G(-e,-f);this.Pb=l;if(c.length>0){var g=this.Wc.getContext(),k=this.aa.qa?this.aa.qa.q.get("Opacity")*0.01:1;if(!this.aa.hasFocus&&k<=1)g.save(),g.globalAlpha=k;g.scale(this.aa.scale,this.aa.scale);g.translate(-e,-f);Ie(this.canvas,function(a){if(a.size)a.te=!1;return a.size});if(!a.data||a.Wg)this.Pb=nf(g,a,new H(0,0,this.width,this.height),this.Sk(),this.Ng,this.vAlign,c);!this.aa.hasFocus&&k<=1&&g.restore()}else this.Wc.getContext(),!a.data||a.Wg?this.Pb=qf(this.canvas,a,new H(0,
0,this.width,this.height),this.Sk(),this.Ng,this.vAlign,this.aa.scale):Ie(this.canvas,function(a){if(a.size)a.te=!1;return a.size});if(!this.Pb)this.Pb={width:0,height:0,data:a.data,ma:[{start:Number.MAX_VALUE,end:Number.MAX_VALUE,fc:[]}]};if(config.allowTextOverflow&&this.Pb.height>d&&c.length==0)return this.Ja(a,this.Pb.height+1);this.ma=this.Pb.ma;this.tl=this.Pb.height;this.Pn=this.Pb.width;if(this.Bc)for(var n in this.Bc)Og(this,this.Bc[n].start,this.Bc[n].end,this.Bc[n].color||"rgb(255,255,150)",
b);if(this.aa.hasFocus)n=this.Ri(),a=this.transform(n),n=this.transform(new G(n.x,n.y+n.h)),c=Math.min(a.x,n.x),d=Math.min(a.y,n.y),i=Math.max(a.x,n.x),j=Math.max(a.y,n.y),this.Ai.move((c-e)*this.aa.scale,(d-f)*this.aa.scale,(i-c)*this.aa.scale,(j-d)*this.aa.scale),g=this.Ai.getContext(),g.scale(this.aa.scale,this.aa.scale),g.translate(-c,-d),g.strokeStyle="#000000",g.lineWidth=1,g.beginPath(),g.moveTo(a.x,a.y),g.lineTo(n.x,n.y),g.stroke(),this.aa.ua!=l&&this.aa.ua!=this.aa.fa&&Og(this,this.aa.ua,
this.aa.fa,"rgba(96,96,255,0.3)",b),this.Ul&&this.Oq()}};
function Og(a,b,c,d,e){if(b!=c){var f=a.Ri(b),g=a.Ri(c);if(!Na(f,g))b=a.Xg(b),c=a.Xg(c),e.fillStyle=d||"rgba(96,96,255,0.3)",b==c?a=Ng(a,[new G(f.x,f.y),new G(g.x,g.y),new G(g.x,g.y+g.h),new G(f.x,f.y+f.h)]):(b<c?(d=f,f=g):d=g,a=Ng(a,[new G(d.x,d.y),new G(a.width,d.y),new G(a.width,f.y),new G(f.x,f.y),new G(f.x,f.y+f.h),new G(0,f.y+f.h),new G(0,d.y+d.h),new G(d.x,d.y+d.h)])),e.beginPath(),e.moveTo(a[0].x,a[0].y),A(a,function(a){e.lineTo(a.x,a.y)}),e.closePath(),e.fill(),e.strokeStyle="rgba(0,0,0,.3)",
e.stroke()}}q.bw=ea("tl");q.focus=function(){this.canvas.J.css("zIndex",150);this.Wc.J.css("zIndex",151);this.canvas.J.css("border","2px solid palegoldenrod")};q.blur=function(){this.Ai.J.css("display","none");this.canvas.J.css("zIndex","inherit");this.Wc.J.css("zIndex","inherit");this.canvas.J.css("border","2px solid transparent");this.Wc.getContext()};Gg.prototype.getTextHeight=Gg.prototype.bw;$(function(){function a(a){if(P&&P.Bp==a.id){var b=a.Diff.c,c=a.Diff.a;a.Diff.c=P.fa;a.Diff.a=P.ua;P.fa=b;P.ua=c;P.ia()}}function b(a){J("text."+a,function(){if(P){var b=P,c=Pg(b);a in b.Se&&(c[a]=b.Se[a]);Qg(b,a,!c[a]);P.focus()}});J("text."+a+".selected",function(b){P&&b(Pg(P)[a])})}function c(a){J("text.align."+a,function(){P&&(Qg(P,"align",a),P.focus())});J("text.align."+a+".selected",function(b){P&&b(Pg(P).align==a)})}function d(a){J("text.valign."+a,function(){P&&P.qa&&(P.qa.q.get("TextVAlign")!=
a&&P.qa.document.ba(new N(M,{id:P.qa.id,Property:"TextVAlign",Value:a})),P.focus())});J("text.valign."+a+".selected",function(b){P&&P.qa&&b(P.qa.q.get("TextVAlign")==a)})}function e(a,b){J("text."+a,function(a){P&&(Qg(P,b,a),P.focus())});J("text."+a+".value",function(a){P&&a(Pg(P)[b])})}$(document).bind("documentPostAction",function(b,c){c.Action==yg&&c.IsUndo&&a(c)});$(document).bind("documentAction",function(b,c){c.Action==yg&&c.IsRedo&&a(c)});b("bold");b("italic");b("underline");b("strike");c("left");
c("center");c("right");c("justified");d("top");d("middle");d("bottom");e("textSize","size");e("font","font");e("lineSpacing","spacing");e("color","color");e("marginTop","marginTop");e("marginBottom","marginBottom");e("indentLeft","indentLeft");e("indentFL","indentFL");e("indentRight","indentRight");J("text.fontGroup",function(a){if(P)a=="addmorefonts"?(J.set("text.manageFonts"),J.set("optionBar.refresh")):(a=xf(a).yb,J.set("text.font",a))});J("text.fontGroup.value",function(a){if(P){var b=Pg(P);b&&
(Re[b.font.toLowerCase()]?a(Re[b.font.toLowerCase()]):a(b.font))}});J("text.fontFace",function(a){P&&(Qg(P,"font",a.yb),Qg(P,"bold",a.bold),Qg(P,"italic",a.ic),P.focus())});J("text.fontFace.value",function(a){if(P){var b=Pg(P);b.font&&a(kf(b.font,b.bold,b.italic))}});J("text.blockType",function(a){if(P){var b=Pg(P);b.type==a?(Qg(P,"type","p"),Qg(P,"indentLeft",0),Qg(P,"indentFL",0),Qg(P,"indentLevel",1)):(Qg(P,"type",a),Qg(P,"indentLeft",config.blockTypeIndent(a,b.size)),Qg(P,"indentFL",config.blockTypeIndent(a,
b.size)));P.focus()}});J("text.blockType.value",function(a){P&&a(Pg(P).type)});J("text.namedParagraphStyle",function(a){if(P){var b=Rg(P);b==l&&(b=[P.fa,P.fa]);P.ba(Jc(P.content,b[0],b[1],a));P.focus()}});J("text.namedParagraphStyle.value",function(a){P&&a(Pg(P).paragraphStyle)});J("text.namedInlineStyle",function(a){if(P){var b=Rg(P);b==l&&(b=[P.fa,P.fa]);P.ba(Mc(P.content,b[0],b[1],a));P.focus()}});J("text.namedInlineStyle.value",function(a){P&&a(Pg(P).inlineStyle)});$("body").bind("copy",function(){J.set("text.copy")});
J("text.copy",function(){P&&(P.copy(),P.focus())});J("text.cut",function(){P&&(Sg(),P.focus())});J("text.clearStyle",function(){if(P)for(var a in xc)Qg(P,a,xc[a])});J("text.indent",function(){P&&(Tg(P),P.focus())});J("text.outdent",function(){P&&(Ug(P),P.focus())});J("text.insertPageNumber",function(){P&&(P.ae(),Vg(P,"{{page}}"),P.focus())});J("text.insertTotalPages",function(){P&&(P.ae(),Vg(P,"{{totalPages}}"),P.focus())});J("text.ime",function(){var a=parseInt($.cookie("ime"),10)?0:1;$.cookie("ime",
a);if(P)P.Dk=!a,Hg(P)});J("text.paragraphFormattingDialog",function(a){P&&a&&a.Nt.show(Pg(P),a.Gc,function(a){for(var b in a)Qg(P,b,a[b]);P.focus()})});J("text.insertPageBreak",function(a){P&&(a==l&&(a=1),Vg(P,"\n"),Qg(P,"pageBreak",a),P.focus())});J("text.insertColumnBreak",function(a){P&&(a==l&&(a=1),Vg(P,"\n"),Qg(P,"columnBreak",a),P.focus())})});
function Wg(a,b,c,d){var e=this;this.Wa={selection:[],keydown:[],blur:[],prerender:[],change:[],needsMoreSpace:[],excessSpace:[]};this.Vl=0;this.oa=[];this.oa.push(new Gg(a,b,this));this.Cj=d||l;this.language=c||"en";this.Bp=this.qa=l;this.fa=0;this.ua=l;this.Mk=0;this.content=new Bc;this.yt=!1;this.$r=l;this.Se={};this.Mc=$("<textarea></textarea>").css({position:"fixed",bottom:"0px",left:"0px",width:"1px",height:"1px",display:"block",background:"transparent",overflow:"hidden",border:"0 !important",
resize:"none",outline:"none"}).addClass("user-select-text");this.vf=$("<textarea></textarea>").css({position:"fixed",width:"1px",height:"1px",bottom:"0px",left:"0px",background:"transparent",overflow:"hidden",border:"0 !important",display:"none",resize:"none",outline:"none"}).addClass("user-select-text");this.Df=[];this.Ha=!1;this.Df.push(setInterval(function(){e.Ub()},10));this.Df.push(setInterval(function(){e.Vl<=0||(e.Vl--,e.Vl==0&&e.trigger("change",{aa:e,action:e.Mr}))},100));this.hasFocus=this.enabled=
!1;this.scale=1;var f=l;this.xo=function(){var a=Pg(e);Na(f,a)||(f=a,J.set("optionBar.refresh"));return a};var g=l;this.Df.push(setInterval(function(){if(e.hasFocus){var a=e.fa+","+e.ua;if(a!=g){var b={text:Xg(e),style:e.xo()};e.trigger("selection",b);J.set("canvasEditor.selection",b.style);g=a;e.Se={}}}},250));this.Vd($(document),"fontLoaded",function(){e.ia();e.content.eh=l});this.Ox=J("lucid.spellCheck.enabled",r(this.ia,this));this.Vd($(document),"lucid.spellCheck.newData",function(){(Yg||e.hasFocus)&&
e.ia()});this.Vd($(document),"lucid.spellCheck.language",function(a,b){e.language=b;(Yg||e.hasFocus)&&e.ia()})}var Yg;J("lucid.spellCheck.enabled",function(a){Yg=a});q=Wg.prototype;q.Ub=function(){if(this.Ha)this.Ha=!1,this.Ja()};function Sg(){var a=P;a.vf.val(Xg(a)).focus().select();setTimeout(function(){a.vf.val("");a.Mc.focus();a.ae()},1)}q.copy=function(){var a=this;a.vf.val(Xg(a)).focus().select();setTimeout(function(){a.vf.val("");a.Mc.focus()},1)};
q.Vd=function(a,b,c){if(this.Hb==l)this.Hb=[];this.Hb.push([a,b,c]);a.bind(b,c)};q.ia=function(){this.Ha=!0};q.Ri=function(a,b){if(a==l)a=this.fa;for(var a=Math.max(0,Math.min(a,this.content.text.length)),c=this.oa[this.oa.length-1],d=0;d<this.oa.length;d++)Mg(this.oa[d],a)&&(c=this.oa[d]);d=c.Ri(a);return b?(d.data=c,d):new G(d.x,d.y+d.h/2,c)};
q.Pq=function(a){var b=this,c=l;A(this.oa,function(d){if(d.Db(a)){var e=Ig(d,Jg(d,a));A(Ec(b.content.text,b.language),function(a){e>=a[0]&&e<=a[1]&&(a=b.content.text.substr(a[0],a[1]-a[0]),c=XRegExp("[^\\p{L}]*(.*\\p{L})[^\\p{L}]*$").exec(a)[1])})}});return c};
function Zg(a){var b=P,c=[];A(b.oa,function(d){if(d.Db(a)){var e=Ig(d,Jg(d,a));A(Ec(b.content.text,b.language),function(a){if(e>=a[0]&&e<=a[1]){var d=b.content.text.substr(a[0],a[1]-a[0]),i=XRegExp("[^\\p{L}]*(.*\\p{L})[^\\p{L}]*$").exec(d)[1],j=fc(ec(b.language),[i])[i];A(j,function(e){c.push({label:e,action:function(){$g(b,a[0],a[1],d.replace(i,e))}})})}})}});return c}
function Lg(a){var b=a.ua==l,c=Tc(a.content,a.fa);a.ua&&Tc(a.content,a.ua);var d=a.ua&&a.ua>a.fa?Math.min:Math.max,e=a.ua&&a.ua>a.fa?"start":"end",f=d==Math.max?Math.min:Math.max,g=e=="start"?"end":"start";a.Mk=0;a.ua&&A(c,function(b){if(b.name=="locked"&&b.val==!0)a.ua=f(a.ua,b[g])});A(c,function(c){if(c.name=="locked"&&c.val==!0){a.fa=d(a.fa,c[e]);if(a.fa==c[e])a.Mk=c.end-c.start;if(b)a.ua=a.ua?f(a.ua,c[g]):c[g]}});a.ia()}function $g(a,b,c,d){a.ua=b;a.fa=c;Lg(a);a.ae();Vg(a,d)}
q.rc=function(){for(var a=this.oa[0],b=1;b<this.oa.length;b++)this.fa>=this.oa[b].ma[0].start&&this.fa<=this.oa[b].ma[this.oa[b].ma.length-1].end&&(a=this.oa[b]);return a};
function Hg(a){if(a.Dk)a.Dk=!1,a.Mc.val(a.Rj.val()),a.Rj.val(""),a.Rj.remove(),a.yo(),A(a.oa,function(a){a.canvas.J.css("background","transparent")}),clearInterval(a.Ar);else{a.Dk=!0;A(a.oa,function(a){a.canvas.J.css("background","#dde")});var b=a.rc(),c=b.canvas.J.offset(),d=b.canvas.J.width(),e=b.canvas.J.height();a.Rj=$('<input type="text"/>').css({position:"absolute",top:c.top+e+"px",left:c.left+"px",width:d+"px",zIndex:1E6}).appendTo("body").val(Xg(a)).focus().select().blur(function(){Hg(a);
a.Mc.focus()}).keyup(function(b){!Rd&&b.which==13&&a.Rj.blur()});a.Ar=setInterval(function(){var b=a.rc(),c=b.canvas.J.offset(),b=b.canvas.J.width();a.Rj.css({top:c.top+e+"px",left:c.left+"px",width:b+"px"})},250);a.Df.push(a.Ar)}}
q.ba=function(a,b){var c=this;a.c=this.fa;a.a=this.ua;this.content.ba(a);this.ia();if(!b){for(var d=[],e=0;e<a.f.length;e++)if(a.f[e].f=="i"){for(var f in this.Se){d.push(Nc(this.content,a.f[e].p[1],a.f[e].p[1]+a.f[e].p[0].length,this.Se));this.Se={};break}break}this.Vl>0?this.Mr.f=this.Mr.f.concat(a.f):this.trigger("change",{aa:this,action:a});A(d,function(a){c.ba(a)})}this.xo();P&&J.set("canvasEditor.selection")};
q.Db=function(a){if(!this.hasFocus)return!1;if($("div.ui-dialog:visible").size()>0)return!1;for(var b=0;b<this.oa.length;b++)if(this.oa[b].Db(a))return!0;return!1};q.destroy=function(){this.hasFocus&&this.blur();A(this.Df,function(a){clearInterval(a)});this.Df=[];A(this.Hb,function(a){a[0].unbind(a[1],a[2])});this.Hb=[];this.Mc.remove();this.Mc=l;this.vf.remove();this.vf=l;hb(this.Ox);A(this.oa,function(a){a.destroy()});if(this.Yj)clearInterval(this.Yj),this.Yj=l};var P=l;q=Wg.prototype;
q.bind=function(a,b){this.Wa[a].push(b);return b};q.unbind=function(a,b){var c=this;A(this.Wa[a],function(d,e){if(d==b)return c.Wa[a].splice(e,1),!1})};q.one=function(a,b){b.Zw=!0;this.Wa[a].push(b)};q.trigger=function(a,b){var c=this;A(qc(this.Wa[a]),function(d){d(b);d.Zw&&ib(c.Wa[a],d)})};function Pg(a,b){var c=Rg(a);c==l&&(c=[a.fa,a.fa]);c=Vc(a.content,c[0],c[1],b);b||(c.align=c.align||a.rc().Ng);for(var d in a.Se)c[d]=a.Se[d];return c}
function ad(a){for(var b=0;b<a.length;b++)if(a[b].text==""&&!(b<a.length-1&&a[b].bc&&a[b+1].bc)&&!(b==a.length-1&&(a[b].qc||a[b].bc))){if(b<a.length-1)a[b+1].qc=a[b+1].qc||a[b].qc,a[b+1].bc=a[b+1].bc||a[b].bc;a.splice(b,1);b--}for(b=1;b<a.length;b++)!a[b].qc&&!a[b].bc&&a[b].ff==a[b-1].ff&&a[b].bold==a[b-1].bold&&a[b].ic==a[b-1].ic&&a[b].Qf==a[b-1].Qf&&a[b].strike==a[b-1].strike&&a[b].size==a[b-1].size&&a[b].color==a[b-1].color&&a[b].error==a[b-1].error&&a[b].kb==a[b-1].kb&&a[b].Ic==a[b-1].Ic&&(a[b-
1].text+=a[b].text,a.splice(b,1),b--)}function Rg(a){if(a.ua==l)return l;a=[a.fa,a.ua];a.sort(function(a,c){return a-c});return a}function Xg(a){var b=Rg(a);return b==l?"":a.content.text.substr(b[0],b[1]-b[0])}
function Tg(a){var b=Rg(a);b==l&&(b=[a.fa,a.fa]);b=Kc(a.content,b[0],b[1]);A(b,function(b){var d=a.content.wa(b);if(d.type=="p")a.ba(Nc(a.content,b,l,{indentLeft:(d.indentLeft||0)+0.5}));else if(d.type=="ol"||d.type=="ul"||d.type=="hl")a.ba(Nc(a.content,b,l,{indentLevel:(d.indentLevel||1)+1}))})}
function Ug(a){var b=Rg(a);b==l&&(b=[a.fa,a.fa]);b=Kc(a.content,b[0],b[1]);A(b,function(b){var d=a.content.wa(b);if(d.type=="p")a.ba(Nc(a.content,b,l,{indentLeft:Math.max(0,(d.indentLeft||0)-0.5)}));else if(d.type=="ol"||d.type=="ul"||d.type=="hl")a.ba(Nc(a.content,b,l,{indentLevel:Math.max(1,(d.indentLevel||1)-1)}))})}
function Qg(a,b,c){var d=Rg(a);d==l&&(d=[a.fa,a.fa]);if(yc[b]){b=="align"&&c==a.rc().Ng&&(c="");var e={};e[b]=c;A(Kc(a.content,d[0],d[1]),function(b){a.ba(Nc(a.content,b,l,e))})}else d[0]==d[1]?(a.Se[b]=c,a.xo()):(e={},e[b]=c,a.ba(Nc(a.content,d[0],d[1],e)))}q.Xg=function(a){for(var b=0;b<this.ma.length;b++)if(a>=this.ma[b].start&&a<this.ma[b].end)return b;return this.ma.length-1};
function Kg(a,b){a.trigger("keydown",b);if(!b.isDefaultPrevented||!b.isDefaultPrevented()){if(b.which==8){if(a.ua==l||a.ua==a.fa)a.ua=Math.max(0,a.fa-1),Lg(a);a.ae()}if(b.which==46){if(a.ua==l||a.ua==a.fa)a.ua=Math.min(a.content.text.length,a.fa+1),Lg(a);a.ae()}b.which==27&&a.blur();if(b.which==9&&config.editorWantsTabs){if(b.shiftKey)Ug(a);else{var c=Rg(a);c==l&&(c=[a.fa,a.fa]);c=Kc(a.content,c[0],c[1]);a.Cf()||c[0]==a.fa?Tg(a):(a.ae(),Vg(a,"\t"))}b.preventDefault();b.stopImmediatePropagation()}if((b.ctrlKey||
b.metaKey)&&b.which==65&&!b.altKey)a.ua=0,a.fa=a.content.text.length,Lg(a);if(nc(Ee,b.which)){if(a.Mk>0)if(a.fa>a.ua&&(b.which==37||b.which==38))a.fa-=a.Mk;else if(a.fa<a.ua&&(b.which==39||b.which==40))a.fa+=a.Mk;if(b.shiftKey){if(a.ua==l)a.ua=a.fa}else a.ua=l;if(b.which==37){if(b.ctrlKey){var c=a.content,d,e=!1;for(d=a.fa;d>0;d--){var f=c.text[d-1].match($c);if(f&&e)break;f||(e=!0)}c=Math.max(0,d)}else c=Math.max(0,a.fa-1);a.fa=c}if(b.which==39){if(b.ctrlKey){c=a.content;e=!1;for(d=a.fa;d<c.text.length;d++){f=
c.text[d].match($c);if(!f&&e)break;f&&(e=!0)}c=d}else c=Math.min(a.content.text.length,a.fa+1);a.fa=c}if(b.which==38)c=a.Xg(a.fa),a.fa=c>0?a.ma[c-1].start+Math.min(a.ma[c-1].end-a.ma[c-1].start,a.fa-a.ma[c].start):0;if(b.which==40)c=a.Xg(a.fa),a.fa=c<a.ma.length-1?a.ma[c+1].start+Math.min(a.ma[c+1].end-a.ma[c+1].start,a.fa-a.ma[c].start):a.content.text.length;if(b.which==35)b.ctrlKey?a.fa=a.content.text.length:(c=a.ma[a.Xg(a.fa)],a.fa=c.end,c.end<a.content.text.length&&a.fa--);if(b.which==36)a.fa=
b.ctrlKey?0:a.ma[a.Xg(a.fa)].start;Lg(a);b.preventDefault()}}}q.ae=function(a){if(a==l){a=Rg(this);if(a==l||a[0]==a[1])return;this.Se=Pg(this,!0);delete this.Se.locked;delete this.Se.inlineBlock}this.ba(Ic(this.content,a[0],a[1]));this.fa=a[0];this.ua=l;Lg(this)};function Vg(a,b){a.ba(Hc(a.content,b,a.fa));a.fa+=b.length;a.ua=l;Lg(a)}q.Cf=function(){return this.ua==l?!1:this.ua==this.fa?!1:!0};
q.yo=function(){if(this.hasFocus){var a=this.Mc.val();if(a!=""){var b;if(b=a=="\n")a:{if(this.fa==this.ua||l==this.ua)if(b=Kc(this.content,this.fa,this.fa+1),b[0]==this.fa&&(b.length>1||this.fa==this.content.text.length)){b=!0;break a}b=!1}if(b&&(b=this.content.wa(this.fa),b.type=="ol"||b.type=="ul"||b.type=="hl")){b.indentLevel>1?Qg(this,"indentLevel",b.indentLevel-1):(Qg(this,"type","p"),Qg(this,"indentLeft",0));this.Mc.val("");return}this.ae();Vg(this,a);this.Mc.val("")}}};
q.enable=function(){this.enabled=!0;return this};q.disable=function(){this.enabled=!1;return this};
q.focus=function(){setTimeout(r(this.Mc.focus,this.Mc),1);if(P!=this){P&&P.blur();var a=this;this.Mc.bind("keydown keyup keypress",function(b){if(b.which==32&&(b.ctrlKey||b.metaKey))Hg(a),b.preventDefault(),b.stopPropagation();a.yo()}).bind("keydown",function(b){Kg(a,b)}).appendTo("body");this.vf.appendTo("body");this.Yj=setInterval(r(this.yo,this),10);this.hasFocus=!0;this.Mc.add(this.vf).css("display","block");this.yt||A(this.oa,function(a){a.focus()});P=this;J.set("canvasEditor.active");pe("text");
return this}};q.blur=function(){var a=this;setTimeout(function(){try{a.Mc.blur()}catch(b){}},1);this.Dk&&Hg(this);this.hasFocus=!1;clearInterval(this.Yj);this.Yj=l;this.Mc.remove();this.vf.remove();A(this.oa,function(a){a.blur()});this.Mc.add(this.vf).css("display","none");this.trigger("blur");P=l;J.set("canvasEditor.inactive");qe("text");this.ia();return this};q.select=function(){this.ua=0;this.fa=this.content.text.length;Lg(this);return this};
function ah(a,b,c){a.enable().focus();a.one("blur",function(){c&&c(a)});$.cookie("ime")=="1"&&setTimeout(function(){Hg(a)},100);if(!b){var d=function(b){if(b.which==13&&!b.shiftKey&&!b.ctrlKey)a.blur(),b.preventDefault();else a.one("keydown",d)};a.one("keydown",d)}}function bh(a,b){return qa(a)||a.substr(0,6)=='{"t":"'?a:dd(a,b).serialize()}function ch(a,b){return dd(a,b).text}function dh(a,b,c){a=dd(a,b);Rc(a,0,a.text.length,c);return a.serialize()}
function eh(a,b,c){a=dd(a,b);return mf(a.Ja(),c)}function fh(a,b,c,d){a=dd(a,b);if(a.text=="")return d;a=Vc(a,0,a.text.length);a.align===""&&(a.align=c);if(d)for(var e in d)d[e]!=a[e]&&(a[e]=l);return a}
q.Ja=function(){this.Ha=!1;this.trigger("prerender");var a=!1;if(this.hasFocus||Yg)a=this.ua==this.fa||this.ua==l?this.fa:-1,this.hasFocus||(a=-1);for(var a=this.content.Ja(a,this.language),b=!1,c=[],d=0;d<this.oa.length;d++){var e=this.oa[d];this.$r=e;d>0&&a.Zh&&e.Xk!=l&&e.Xk!=0?e.Ja(a,!1,!0):e.Ja(a);A(e.ma,function(a){c.push(a)});a=e.Pb;d==this.oa.length-1&&a.Wg&&this.trigger("needsMoreSpace");!b&&d<this.oa.length-1&&!a.Wg&&(this.trigger("excessSpace",this.oa.slice(d+1)),b=!0)}this.ma=c;this.$r=
l};t("lucid.CanvasEditor",Wg);Wg.getActive=function(){return P};Wg.plainText=ch;Wg.restyleData=dh;Wg.measure=eh;Wg.dataStyle=fh;Wg.prototype.activeSpace=Wg.prototype.rc;var gh={},hh={};$(function(){$(document).keydown(function(a){if(!document.activeElement||!$(document.activeElement).is(":input")||P){var b=a.keyCode||a.which;b+=a.altKey?"alt":"";b+=a.shiftKey?"shift":"";b+=a.ctrlKey||a.metaKey?"ctrl":"";for(var c,d,e=0;e<oe.length;e++)if(c=oe[e],c in gh&&(d=gh[c],b in d)){if(d[b].action=="hotKeys.passthru")break;d[b].Br||a.preventDefault();J.set(c+"."+d[b].action);return!!d[b].Br}return!0}})});
function ih(a){var b;if(na(a)&&a.search("{context}")==0)for(var a=a.substr(9),c=0;c<oe.length;c++)if(b=hh[oe[c]+a]||l)return b;return hh[a]||""}var jh={Shift:"&#x21e7;",Ctrl:"&#x2318;",Alt:"&#x2325;",Up:"&uarr;",Down:"&darr;",Left:"&larr;",Right:"&rarr;",Tab:"&#x21e5;",Backspace:"Delete",Delete:"&#x232B;",Esc:"&#x2325;",Enter:"&#x23ce;",Comma:",",Period:"."};
function Q(a,b,c,d){c=c||"default";gh[c]||(gh[c]={});var e,f,g,i,j,k="";g=f=e=!1;for(var n=0;n<a.length;n++){k=a[n].toUpperCase();switch(k){case "ALT":e=!0;break;case "SHIFT":g=!0;break;case "CTRL":f=!0;break;case "F1":i=112;break;case "F2":i=113;break;case "F3":i=114;break;case "F4":i=115;break;case "F5":i=116;break;case "F6":i=117;break;case "F7":i=118;break;case "F8":i=119;break;case "F9":i=120;break;case "F10":i=121;break;case "F11":i=122;break;case "F12":i=123;break;case "UP":i=38;break;case "DOWN":i=
40;break;case "LEFT":i=37;break;case "RIGHT":i=39;break;case "TAB":i=9;break;case "BACKSPACE":i=8;break;case "DEL":case "DELETE":i=46;break;case "ESC":case "ESCAPE":i=27;break;case "ENTER":case "RETURN":i=13;break;case "-":i=189;break;case "=":i=187;break;case "[":i=219;break;case "]":i=221;break;case "\\":i=220;break;case ";":i=186;break;case "'":i=222;break;case ",":i=188;break;case ".":i=190;break;case "/":i=191;break;default:k.length==1&&(i=k.charCodeAt(0))}switch(k){case "ALT":case "SHIFT":case "CTRL":break;
case "UP":j="Up";break;case "DOWN":j="Down";break;case "LEFT":j="Left";break;case "RIGHT":j="Right";break;case "TAB":j="Tab";break;case "BACKSPACE":j="Backspace";break;case "DEL":case "DELETE":j="Delete";break;case "ESC":case "ESCAPE":j="Esc";break;case "ENTER":case "RETURN":j="Enter";break;case ",":j="Comma";break;case ".":j="Period";break;default:k.length==1&&(j=k)}}i&&(gh[c][i+(e?"alt":"")+(g?"shift":"")+(f?"ctrl":"")]={action:b,Br:d},a=c+"."+b,b="+",c=[],Rd?(e&&c.push(jh.Alt),g&&c.push(jh.Shift),
f&&c.push(jh.Ctrl),b=""):(f&&c.push("Ctrl"),e&&c.push("Alt"),g&&c.push("Shift")),c.push(Rd&&jh[j]||j),hh[a]=c.join(b))}Q(["ctrl","c"],"copy","default");Q(["ctrl","v"],"paste","default");Q(["ctrl","x"],"cut","default");Q(["ctrl","z"],"undo","default");Q(["ctrl","y"],"redo","default");Q(["ctrl","d"],"download","default");Q(["ctrl","p"],"print","default");Q(["ctrl","shift","p"],"publish","default");Q(["ctrl","b"],"bold","default");Q(["ctrl","i"],"italic","default");Q(["ctrl","u"],"underline","default");
Q(["ctrl","a"],"selectAll","default");Q(["ctrl","s"],"save","default");Q(["ctrl","shift","s"],"saveAs","default");Q(["ctrl","q"],"close","default");Q(["ctrl","f"],"findReplace","default");Q(["del"],"delete","default");Q(["backspace"],"delete","default");Q(["ctrl","g"],"groupSelection","default");Q(["ctrl","shift","g"],"ungroupSelection","default");Q(["esc"],"esc","default");Q(["ctrl","up"],"zoomIn","default");Q(["ctrl","down"],"zoomOut","default");Q(["up"],"up","default");
Q(["up","shift"],"upShift","default");Q(["up","shift","ctrl"],"upShiftCtrl","default");Q(["down"],"down","default");Q(["down","shift"],"downShift","default");Q(["down","shift","ctrl"],"downShiftCtrl","default");Q(["left"],"left","default");Q(["left","shift"],"leftShift","default");Q(["left","shift","ctrl"],"leftShiftCtrl","default");Q(["right"],"right","default");Q(["right","shift"],"rightShift","default");Q(["right","shift","ctrl"],"rightShiftCtrl","default");Q(["l"],"drawLineMode","default");
Q(["ctrl","alt","p"],"gui.pageslider.toggle","default");Q(["f1"],"hotKeyReference","default");Q(["ctrl","f9"],"debug.showLog","default");Q(["ctrl","shift","f12"],"debug.loadPlugin","default");Q(["esc"],"exit","presentation");Q(["esc"],"exit","viewHistory");Q(["ctrl","shift","]"],"bringSelectionToFront","default");Q(["ctrl","shift","["],"sendSelectionToBack","default");Q(["ctrl","c"],"copy","text",!0);Q(["ctrl","x"],"cut","text",!0);Q(["ctrl","v"],"paste","text",!0);Q(["ctrl","b"],"bold","text");
Q(["ctrl","i"],"italic","text");Q(["ctrl","u"],"underline","text");Q(["up"],"up","text");Q(["up","shift"],"upShift","text");Q(["up","shift","ctrl"],"upShiftCtrl","text");Q(["down"],"down","text");Q(["down","shift"],"downShift","text");Q(["down","shift","ctrl"],"downShiftCtrl","text");Q(["left"],"left","text");Q(["left","shift"],"leftShift","text");Q(["left","shift","ctrl"],"leftShiftCtrl","text");Q(["right"],"right","text");Q(["right","shift"],"rightShift","text");
Q(["right","shift","ctrl"],"rightShiftCtrl","text");Q(["ctrl","a"],"selectAll","text");Q(["del"],"delete","text");Q(["backspace"],"delete","text");Q(["l"],"hotKeys.passthru","text");Q(["enter","ctrl"],"insertColumnBreak","text");Q(["esc"],"exit","overlay");Q(["enter"],"save","overlay");Q(["esc"],"close","dialog");Q(["enter"],"default","dialog");Q(["esc"],"close","findReplace");t("lucid.hotKeys.add",Q);function kh(a){lh.call(this,a)}Ca(kh,lh);kh.prototype.create=function(a,b){lh.prototype.create.call(this);this.J.prepend("<span>"+a+"</span>");this.J.find("span").css({position:"fixed",font:"bold 24px arial",margin:"4px",cursor:"default"});this.done=b;this.anchor=l};kh.prototype.ud=ca("anchor");
kh.prototype.fd=function(a){if(this.anchor!=l){var b=mh(this.K.viewport.V[0].C).data,c=b.data;$("#selectsegmentbox").remove();this.J.prepend('<div id="selectsegmentbox"></div>');$("#selectsegmentbox").css({position:"absolute",left:(Math.min(a.x,this.anchor.x)-b.x*c.x)*this.K.viewport.scale+this.K.viewport.padding+"px",top:(Math.min(a.y,this.anchor.y)-b.y*c.y)*this.K.viewport.scale+this.K.viewport.padding+"px",width:Math.abs(a.x-this.anchor.x)*this.K.viewport.scale+"px",height:Math.abs(a.y-this.anchor.y)*
this.K.viewport.scale+"px",border:"2px solid black",background:"#aaaaaa"})}};kh.prototype.gd=function(a){if(this.anchor!=l){var a=new H(Math.round(Math.min(a.x,this.anchor.x)),Math.round(Math.min(a.y,this.anchor.y)),Math.round(Math.abs(a.x-this.anchor.x)),Math.round(Math.abs(a.y-this.anchor.y))),b=mh(this.K.viewport.V[0].C);this.done(yb(a,b));this.destroy()}this.anchor=l;$("#selectsegmentbox").remove()};function lh(a){this.K=a;this.Mp=[]}var nh=l;q=lh.prototype;
q.create=function(a){var b=this;nh&&nh.destroy();nh=this;this.K.viewport.J.append('<div id="viewport_overlay"></div>');this.J=$("#viewport_overlay");this.J.css({position:"absolute",left:0,top:0,width:this.K.viewport.J.width(),height:this.K.viewport.J.height(),"background-color":"palegoldenrod","z-index":300});a!=1&&this.J.css("opacity",0).fadeTo(200,a||0.3);this.canvas=new Fe(this.J.width(),this.J.height());this.J.append(this.canvas.J);this.ya=new Je(0,0,this.J.width(),this.J.height());Ge(this.canvas,
this.ya);this.jd=!1;this.Me=l;this.J.bind("mousedown",function(a){a.preventDefault();if(b.jd=a.altKey){var d=b.K.zi.get(0);b.Me={originalEvent:a,cn:d.scrollTop,bn:d.scrollLeft}}else b.ud(b.K.viewport.mc(a),a);a.stopPropagation()});this.J.bind("mousemove",function(a){if(b.jd){var d=b.K.zi.get(0);d.scrollTop=b.Me.cn+b.Me.originalEvent.pageY-a.pageY;d.scrollLeft=b.Me.bn+b.Me.originalEvent.pageX-a.pageX}else b.fd(b.K.viewport.mc(a),a);a.stopPropagation()});this.J.bind("mouseup",function(a){b.jd=!1;b.gd(b.K.viewport.mc(a),
a);a.stopPropagation()});this.J.bind("click",function(a){b.jd=!1;b.click(b.K.viewport.mc(a),a);a.stopPropagation()});this.J.bind("dblclick",function(a){b.jd=!1;b.Fc(b.K.viewport.mc(a),a);a.stopPropagation()});pe("overlay");this.Mp.push(J("overlay.exit",function(){b.destroy()}));this.Mp.push(J("overlay.save",function(){b.save&&b.save()}))};q.destroy=function(){nh==this&&(nh=l);this.J.fadeOut(200,function(){$(this).remove()});nh==l&&qe("overlay");A(this.Mp,function(a){hb(a)})};q.ud=o();q.fd=o();
q.gd=o();q.Fc=o();q.click=o();function oh(a){lh.call(this,a);this.xw=!0}Ca(oh,lh);oh.prototype.create=function(a,b){oh.zd.create.call(this);this.J.prepend("<span>"+a+"</span>");this.J.find("span").css({position:"fixed",font:"bold 24px arial",margin:"4px",cursor:"default"});this.done=b;this.anchor=l};
function ph(a,b,c){if(nh&&nh.xw){var d=nh.done;nh.done=function(b){a.K.$.document.Aa();d&&d(b);c&&c(b);a.K.$.document.xa()}}else oh.zd.create.call(a),a.J.prepend("<span>"+b+"</span>"),a.J.find("span").css({position:"fixed",font:"bold 24px arial",margin:"4px",cursor:"default"}),a.done=c,a.anchor=l}oh.prototype.ud=function(a){if(a=a.data.Za(a.x,a.y))this.destroy(),this.done&&this.done(a.item)};function qh(a,b,c,d){if(this.C.pb())return l;b=this.kl(new G(a,b));a=b.x;b=b.y;c=this.hg(a,b,c,d);if(c==l){d=this.C.ja();if(a<d.x||b<d.y||a>d.x+d.w||b>d.y+d.h)return l;a=new G(a,b);b=this.C.getEdgeLines();for(d=0;d<b.length;d++)if(Ub(a,b[d][0],b[d][1])<10)return{item:this.C,action:"move"}}return c}
function rh(a){var b=this.C.getEdgeLines(),c=this.C.q.get("Rotation");if(c)for(var d=this.C.q.get("BoundingBox"),e=new G(d.x+d.w/2,d.y+d.h/2),d=Za(new G(a.x,a.y),e,-c),f=Za(new G(a.x+a.w,a.y),e,-c),g=Za(new G(a.x+a.w,a.y+a.h),e,-c),a=Za(new G(a.x,a.y+a.h),e,-c),c=0;c<b.length;c++){if(Vb(b[c][0],b[c][1],d,f))return!0;if(Vb(b[c][0],b[c][1],f,g))return!0;if(Vb(b[c][0],b[c][1],g,a))return!0;if(Vb(b[c][0],b[c][1],a,d))return!0}else for(c=0;c<b.length;c++){if(b[c][0].x>=a.x&&b[c][0].x<=a.x+a.w&&b[c][0].y>=
a.y&&b[c][0].y<=a.y+a.h)return!0;if(Vb(b[c][0],b[c][1],new G(a.x,a.y),new G(a.x+a.w,a.y)))return!0;if(Vb(b[c][0],b[c][1],new G(a.x+a.w,a.y),new G(a.x+a.w,a.y+a.h)))return!0;if(Vb(b[c][0],b[c][1],new G(a.x+a.w,a.y+a.h),new G(a.x,a.y+a.h)))return!0;if(Vb(b[c][0],b[c][1],new G(a.x,a.y+a.h),new G(a.x,a.y)))return!0}return!1}
function sh(){for(var a=[],b=this.He(),c=0,d=0,e=0,f=0,g=0;g<b.length;g++)for(var i=0;i<b[g].Actions.length;i++){var j=b[g].Actions[i];if(j.Action=="move"){if(c=j.x,d=j.y,i==0)e=j.x,f=j.y}else if(j.Action=="line")a.push([{x:c,y:d},{x:j.x,y:j.y}]),c=j.x,d=j.y;else if(j.Action=="curve"){c=[{x:c,y:d,nx:j.Control[0].x1-c,ny:j.Control[0].y1-d}];for(d=0;d<j.Control.length;d++)c.push({x:j.Control[d].x3,y:j.Control[d].y3,nx:j.Control[d].x3-j.Control[d].x2,ny:j.Control[d].y3-j.Control[d].y2});j=Sb(c,fa(10));
for(c=0;c<j.length-1;c++)a.push([j[c],j[c+1]]);c=j[j.length-1].x;d=j[j.length-1].y}else j.Action=="close"&&(a.push([{x:c,y:d},{x:e,y:f}]),c=e,d=f)}return a}function th(a,b){var c={},d=client&&client.K.viewport;this.Hv(function(){if(!d||!d.ac(this.id))c[this.id]=uh.prototype.Jg.call(this,a,b)[this.id]});c[this.id]={BoundingBox:xb(b,this.ja())};return c}function vh(){this.q.ka("Fill",0)}
function wh(a){var b=this,c=b.Gd();b.page&&b.page.Ib(function(){if(!this.pa){var d=this.Gd();if(Ab(d,c)&&this.id!=b.id&&a.call(this)=="stop")return"stop"}})}t("lucid.model.Container.extend",function(a,b){a.prototype.hitTest=qh;a.prototype.rectTest=rh;a.prototype.getEdgeLines=sh;a.isContainer=!0;a.prototype.setInitialProperties=vh;if(b)a.prototype.eachSubItem=wh,a.prototype.getOffsetProperties=th});var R={},xh={},yh={},zh={},Ah=0;
function Bh(a,b,c,d){Ah=0;var e=a.uk(),f="g";f+=c?"":"i";c=d?"\\b"+b+"\\b":b;yh={};for(var g in e){var i=!1,j;for(j in e[g].Oa){var k=e[g].Oa[j],d=[],n;for(n in k.la){var m=k.la[n].name,p=k.q.get(m),p=dd(p,"");if(b){var s=[];XRegExp.iterate(p.text,XRegExp(c,f),function(a,c,d,e){s.push({item:k.id,ue:m,start:e.lastIndex-b.length,end:e.lastIndex,color:"rgba(240,240,0,0.3)"});i=!0});s.length&&(d.push(s),Ah+=s.length)}}d.length?xh[k.id]=d:delete xh[k.id]}for(var u in e[g].ma){var w=e[g].ma[u],d=w.q.get("TextAreas"),
p=[],v;for(v in d){var x=d[v]?d[v].Value:"";x&&(x=dd(x,""),b&&(s=[],XRegExp.iterate(x.text,XRegExp(c,f),function(a,c,d,e){s.push({item:w.id,ue:v,start:e.lastIndex-b.length,end:e.lastIndex,color:"rgba(240,240,0,0.3)"});i=!0}),hc(s)&&(p.push(s),Ah+=s.length)))}hc(p)?xh[w.id]=p:delete xh[w.id]}i&&(yh[e[g].id]=e[g])}if(hc(yh)){e=Ch(a.$.K.viewport);if((e=e.length>0?e[0].page:a.$.K.viewport.V[0])&&yh[e.C.id])R.Yb=e.C;else{var f=e.C.q.get("Order"),z,B;for(B in yh)if(yh[B].q.get("Order")>f){z=yh[B];break}if(z)R.Yb=
z;else for(var O in yh)if(yh.propertyIsEnumerable(O)){R.Yb=yh[O];break}Na(R.Yb,e.C)||a.$.K.viewport.Lb([R.Yb])}Dh();if(R.Yb&&zh[R.Yb.id]&&(z=zh[R.Yb.id],z[R.lc]&&(z=z[R.lc],z[R.vc]&&(z=z[R.vc],z[R.Xb]))))z[R.Xb].color="rgb(255,150,50)"}else xh={},zh={},delete R.Yb,delete R.lc,delete R.vc,delete R.Xb;a.$.K.viewport.ia()}
function Dh(){if(xh){var a=[],b;for(b in yh){var c=yh[b];zh[c.id]=[];var a=[],d;for(d in c.Oa)if(xh[d])xh[d].item=c.Oa[d],a.push(xh[d]);a.sort(function(a,b){return a.item.ja().y-b.item.ja().y});var e=[],f;for(f in c.ma)if(xh[f])xh[f].item=c.ma[f],e.push(xh[f]);e.sort(function(a,b){return a.ja().y-b.ja().y});a=a.concat(e);zh[c.id]=a}}}
function Eh(a,b,c){if(a&&a.length){if(R.vc==h)R.vc=b>0?0:a.length-1;if(!a[R.vc])return!1;for(;R.vc>=0&&R.vc<a.length&&!Fh(a[R.vc],b,c);)R.vc+=b;return R.vc<0||R.vc>=a.length?(delete R.vc,!1):!0}return!1}
function Fh(a,b,c){var d=!1;if(a&&a.length){var e=R.Yb.ra(a[0].item),f=(e.la||e.q.get("TextAreas"))[a[0].ue],g=f.tc?f.tc(e.ja()):Gh(e,f.Value,f.Location,f.Side),i=!1;$.each(Ch(c.$.K.viewport),function(a,b){b.page.C==R.Yb&&(i=Ab(g,b.Da))});if(f&&R.Xb==h){if(b=b>0?0:a.length-1,a[b])R.Xb=b,a[b].color="rgb(255,150,50)",i||Hh(c.$.K.viewport,g),d=!0}else a[R.Xb+b]?(delete a[R.Xb].color,R.Xb+=b,a[R.Xb].color="rgb(255,150,50)",i||Hh(c.$.K.viewport,g),d=!0):(a[R.Xb]&&delete a[R.Xb].color,delete R.Xb);c.$.K.viewport.ia()}return d}
;function Ih(a,b){var c=document.createElement("canvas");c.width=a.width;c.height=a.height;var d=a.src;/^http:\/\//.test(d)?d="/imageProxy/"+d.substr(7):/^https:\/\//.test(d)&&(d="/imageProxy/"+d.substr(8));if(d!=a.src){var e=new Image;$(e).bind("load",function(){c.getContext("2d").drawImage(e,0,0);b(c.toDataURL())});e.src=d}else c.getContext("2d").drawImage(a,0,0),b(c.toDataURL())};function Jh(a){this.images={};this.Yh={};this.Tg={};this.db=a;Ka=this}function Kh(a){return a=a.replace(/\/imageBlocks\/image\/(.*)/,"/imageBlocks/thumb/$1/990")}function Lh(a){this.url=a=Kh(a);this.Qg=new Image;this.Tg=!1}Jh.prototype.Ft=function(a,b){a=Kh(a);this.Gk(a)?b(a):(this.Yh[a]==l&&(this.Yh[a]=[]),this.Yh[a].push(b))};Jh.prototype.vw=function(a){a=Kh(a);return this.Tg[a]!=l?!0:this.images[a]!=l};Jh.prototype.Gk=function(a){a=Kh(a);return this.Tg[a]?!0:this.images[a]!=l&&this.images[a].Tg};
Jh.prototype.Ig=function(a,b){a=Kh(a);if(!this.images[a]){this.images[a]=new Lh(a);var c=this.images[a],d=this;$(c.Qg).one("load error",function(){if(!c.Tg)try{if(c.Tg=!0,d.Tg[c.Qg.src]=!0,d.Yh[a]!=l){for(var b=0;b<d.Yh[a].length;b++)d.Yh[a][b](a);d.Yh[a]=l}}catch(f){}});this.db.Ig(a,function(b){if(b)c.Qg.src=b,c.Qg.ou=a;else{if(!d.db.mh)$(c.Qg).one("load error",function(){Ih(c.Qg,function(b){d.db.xq(a,b)})});c.Qg.src=a}});this.Tg[a]=!1}b!=l&&this.Ft(a,b);return this.images[a].Qg};
Jh.prototype.onImageLoad=Jh.prototype.Ft;Jh.prototype.getImage=Jh.prototype.Ig;Jh.prototype.isImageLoaded=Jh.prototype.Gk;Jh.prototype.isImageRequested=Jh.prototype.vw;function Mh(a){this.kf=!0;this.bl=this.ei=l;this.ph="fill";this.qh="/img/logo.jpg";if(a)a.Hd?(this.ei=a,this.clone(a.pq)):a.jf?(this.bl=a,this.clone(a.pq)):qa(a)&&this.ag(a)}q=Mh.prototype;q.Od=function(a){return a?(this.ph=a,this):this.ph};q.url=function(a){return a?(this.qh=a,this):this.qh};q.clone=function(a){if(!a)return this;this.ph=a.Od();this.qh=a.url();return this};q.serialize=function(){return{pos:this.ph,url:this.qh}};q.ag=function(a){this.ph=a.pos||this.ph;this.qh=a.url||this.qh;return this};
q.key=function(){var a=[];a.push("pos",this.ph,"url",this.qh);return a.join("|")};q.ef=function(a){return a.kf&&a.key()==this.key()};function Nh(a,b){this.Vf=[];this.jf=!0;this.pq=this.ei=l;this.ug=this.Tf=this.Sf=0;this.si=this.vg=1;this.th=this.id=l;this.cd=!0;this.Ff=this.Ef=!1;if(a)if(b&&a.Hd)this.Vf.push(new Oh(a,0)),this.Vf.push(new Oh(b,0));else if(a.Hd){if(a.bl)this.clone(a.bl);else{var c=lg(a),d=a.ti/255,e=(c[2]+2*d)/3,f=0.14+If(0.3*(c[2]-d),0,0.12)+(c[2]<0.25?(1-c[1])*(0.25-c[2]):0),g=0.14-If(0.3*(c[2]-d),0,0.12),f=Math.min(1-c[2],f/Math.max(f,1-e)*(1-c[2])),g=Math.min(c[2],g/Math.max(g,e)*c[2]),e=new I(bg(c[0],100*Math.min(1,
c[1]*(1+f)),100*(c[2]+f),c[3])),g=new I(bg(c[0],100*c[1],100*(c[2]-g),c[3])),f=e.ti/255,c=If((c[2]+4*(f-d)/(f-g.ti/255))/5,0,1);this.Vf=[new Oh(new I(e),0),new Oh(a,c),new Oh(new I(g),1)]}this.ei=a}else a.kf?(a.bl?this.clone(a.bl):this.clone(new Nh(new I("#ffffff"))),this.pq=a):a.jf?this.clone(a):qa(a)&&this.ag(a)}q=Nh.prototype;
q.Sj=function(a){if(a===h)return this.Ef?0:Math.round(360-180*Math.atan2(this.vg-this.Tf,this.ug-this.Sf)/Math.PI)%360;else{if(this.Ef)return this;var a=(a+360)%360,b,c,d,e,f;a<=90?(b=new G(0,1),c=new G(-1,0),d=new G(1,0),e=new G(1,-1),f=new G(1,2)):a<=180?(b=new G(1,1),c=new G(0,0),d=new G(2,0),e=new G(0,-1),f=new G(0,2)):a<=270?(b=new G(1,0),c=new G(0,1),d=new G(2,1),e=new G(0,-1),f=new G(0,2)):(b=new G(0,0),c=new G(-1,1),d=new G(1,1),e=new G(1,-1),f=new G(1,2));a=Math.PI*a/180;a=new G(b.x+100*
Math.cos(a),b.y-100*Math.sin(a));(c=Vb(b,a,c,d))||(c=Vb(b,a,e,f));this.Sf=b.x;this.Tf=b.y;this.ug=If(c.x,0,1);this.vg=If(c.y,0,1);return this}};function Ph(a,b){if(b){if(a.cd)return a;a.Sf=b.x;a.Tf=b.y;a.ug=b.x;a.vg=b.y;return a}else return a.cd?new G(0.5,0.5):new G(a.Sf,a.Tf)}q.type=function(a){if(a===h)return this.cd?"l":"r";if(this.cd!=(a=="l"))this.cd=a=="l",this.Ef=a=="r",this.cd?this.Sj(270):(Ph(this,new G(0.5,0.5)),this.wj(1));return this};
q.wj=function(a){if(a===h)return this.cd?1:this.si;else{if(this.cd)return this;this.si=a;return this}};function hg(a,b){return b!==h?(a.Vf=b,a):a.Vf}q.clone=function(a){if(!a)return this;var b=this;this.Sf=a.Sf;this.Tf=a.Tf;this.ug=a.ug;this.vg=a.vg;this.si=a.wj();this.cd=a.cd;this.Ef=a.Ef;this.Ff=a.Ff;this.Vf=[];A(hg(a),function(a){b.Vf.push(new Oh(a))});return this};
q.serialize=function(a){var b={x1:this.Sf,y1:this.Tf,x2:this.ug,y2:this.vg,cs:[]};this.Ff&&(b.s=1);if(this.id)b.id=this.id;if(this.th)b.base=this.th;this.Ef?(b.t="r",b.dx1=0,b.dy1=0,a&&a.w>a.h?(b.dx2=this.si/2,b.dy2=0):(b.dx2=0,b.dy2=this.si/2)):b.t="l";A(hg(this),function(a){b.cs.push(a.serialize())});return b};
q.ag=function(a){var b=this;this.Sf=a.x1;this.Tf=a.y1;this.ug=a.x2;this.vg=a.y2;this.si=2*Math.sqrt(a.dx2*a.dx2+a.dy2*a.dy2);this.id=a.id||l;this.th=a.base||l;a.t=="l"?(this.Ef=!1,this.cd=!0):(this.Ef=!0,this.cd=!1);this.Ff=!!a.s;this.Vf=[];A(a.cs,function(a){b.Vf.push(new Oh(new I(a.c),a.t))});return this};q.key=function(){return Qh(this.serialize())};q.ef=function(a){return a.jf&&a.key()==this.key()};
function Oh(a,b){a.Hd?(this.color=a,this.Ia=If(b,0,1)):(this.color=new I(a.color),this.Ia=a.Ia)}Oh.prototype.serialize=function(){return{t:this.Ia,c:this.color.serialize()}};
function Qh(a){var b=[];b.push("t",a.t,"x1",a.x1.toFixed(5),"y1",a.y1.toFixed(5),"x2",a.x2.toFixed(5),"y2",a.y2.toFixed(5),"dx1",a.dx1?a.dx1.toFixed(5):"","dy1",a.dy1?a.dy1.toFixed(5):"","dx2",a.dx2?a.dx2.toFixed(5):"","dy2",a.dy2?a.dy2.toFixed(5):"");a.cs.sort(function(a,b){return b.t-a.t});A(a.cs,function(a){b.push("t",a.t.toFixed(5),"c",a.c.charAt(0)=="#"?id(a.c).tb:a.c)});return b.join("")}
function Rh(a,b,c){var d;if(b.cd)d=a.createLinearGradient(c.x+b.Sf*c.w,c.y+b.Tf*c.h,c.x+b.ug*c.w,c.y+b.vg*c.h);else if(b.Ef){var e=b.serialize(c);d=a.createRadialGradient(c.x+b.Sf*c.w,c.y+b.Tf*c.h,Mb(new G(e.dx1*c.w,e.dy1*c.h)),c.x+b.ug*c.w,c.y+b.vg*c.h,Mb(new G(e.dx2*c.w,e.dy2*c.h)))}A(hg(b),function(a){d.addColorStop(a.Ia,gb(a.color))});a.fillStyle=d};function Sh(a,b){lh.call(this,a);this.qa=b}Ca(Sh,lh);q=Sh.prototype;
q.create=function(){Sh.zd.create.call(this,1);this.$f="default";this.ro=new Th(l,this.qa);this.qa.hide=!0;this.K.viewport.ia();this.J.css("background-color","transparent");var a=this.canvas.J.parent().parent().parent();this.J.append("<span>"+S("overlay.crop.instructions")+"</span>");this.J.find("span").css({position:"fixed",font:"bold 24px arial",margin:"4px",cursor:"default",left:a.offset().left+16+"px",top:a.offset().top+16+"px"}).fadeTo(200,0.7);this.Tk=this.qa.q.get("Crop");this.Bt=this.qa.q.get("BoundingBox");
if(!this.Tk)this.Tk={s:[1,1],t:[0,0],r:0,c:[{c:"m",x:0,y:0},{c:"l",x:1,y:0},{c:"l",x:1,y:1},{c:"l",x:0,y:1},{c:"c"}]},this.qa.q.set("Crop",this.Tk);this.ea=K(this.Bt);this.oi=K(this.Tk);this.$a=new H(this.ea.x+this.oi.t[0]*this.ea.w,this.ea.y+this.oi.t[1]*this.ea.h,this.ea.w*this.oi.s[0],this.ea.h*this.oi.s[1],l);this.hj=this.X=l;this.Ha=!0;this.Yq=setInterval(r(this.Ub,this),20)};q.destroy=function(){Sh.zd.destroy.call(this);this.qa.hide=!1;this.K.viewport.ia();this.ro.destroy();clearInterval(this.Yq)};
q.save=function(){var a=this.K.$.document;a.Aa();a.ba(new N(M,{id:this.qa.id,Property:"Crop",Value:this.oi}));a.ba(new N(M,{id:this.qa.id,Property:"BoundingBox",Value:this.ea}));a.xa();this.destroy()};
q.Ja=function(){this.scale=this.K.viewport.scale;var a=this.K.viewport.padding,b=this.qa.page.q.get("Size");this.ya.move(0,0,b.w*this.scale+a*2,b.h*this.scale+a*2);var c=this.ya.getContext();c.translate(a,a);c.scale(this.scale,this.scale);c.fillStyle="rgba(255,255,170,.5)";c.fillRect(0,0,b.w,b.h);a=this.qa.q.get("BoundingBox");if(b=this.qa.q.get("Rotation"))c.translate(a.x+a.w/2,a.y+a.h/2),c.rotate(b),c.translate(-a.x-a.w/2,-a.y-a.h/2);this.oi={s:[this.$a.w/this.ea.w,this.$a.h/this.ea.h],t:[-(this.ea.x-
this.$a.x)/this.ea.w,-(this.ea.y-this.$a.y)/this.ea.h],r:0,c:[{c:"m",x:0,y:0},{c:"l",x:1,y:0},{c:"l",x:1,y:1},{c:"l",x:0,y:1},{c:"c"}]};this.qa.q.set("Crop",this.oi);this.qa.q.set("BoundingBox",this.ea);c.globalAlpha=0.5;a=this.qa.He();Uh(this.ro,c,a,!1);c.globalAlpha=1;Uh(this.ro,c,a);a=this.ea;c.strokeStyle="#FFFFFF";c.lineWidth=4;c.fillStyle="rgb(0,0,150)";c.beginPath();c.moveTo(a.x,a.y);c.lineTo(a.x+8,a.y);c.lineTo(a.x+8,a.y-8);c.lineTo(a.x-8,a.y-8);c.lineTo(a.x-8,a.y+8);c.lineTo(a.x,a.y+8);c.lineTo(a.x,
a.y);c.fill();c.stroke();c.beginPath();b=a.x+a.w;c.moveTo(b,a.y);c.lineTo(b,a.y+8);c.lineTo(b+8,a.y+8);c.lineTo(b+8,a.y-8);c.lineTo(b-8,a.y-8);c.lineTo(b-8,a.y);c.lineTo(b,a.y);c.fill();c.stroke();c.beginPath();var d=a.y+a.h;c.moveTo(a.x,d);c.lineTo(a.x+8,d);c.lineTo(a.x+8,d+8);c.lineTo(a.x-8,d+8);c.lineTo(a.x-8,d-8);c.lineTo(a.x,d-8);c.lineTo(a.x,d);c.fill();c.stroke();c.beginPath();c.moveTo(b,d);c.lineTo(b,d-8);c.lineTo(b+8,d-8);c.lineTo(b+8,d+8);c.lineTo(b-8,d+8);c.lineTo(b-8,d);c.lineTo(b,d);
c.fill();c.stroke();this.qa.q.set("Crop",this.Tk);this.qa.q.set("BoundingBox",this.Bt)};q.Ub=function(){if(this.Ha||this.scale!=this.K.viewport.scale)this.Ha=!1,this.Ja()};
q.Za=function(a){var b=Lb(new G(this.ea.x,this.ea.y),a),c={type:"crop",action:"crop",oy:"crop",cursor:"crosshair"};if(b<20)return c.Bh="nw",c;b=Lb(new G(this.ea.x+this.ea.w,this.ea.y),a);if(b<20)return c.Bh="ne",c;b=Lb(new G(this.ea.x+this.ea.w,this.ea.y+this.ea.h),a);if(b<20)return c.Bh="se",c;b=Lb(new G(this.ea.x,this.ea.y+this.ea.h),a);return b<20?(c.Bh="sw",c):!1};function Vh(a,b){var c=a.qa.q.get("Rotation"),d=a.qa.ja();return Za(b,new G(d.x+d.w/2,d.y+d.h/2),-c)}
q.ud=function(a){this.X=this.Za(Vh(this,a))};q.Fc=function(){this.X=l};
q.fd=function(a){this.Ha=!0;a=Vh(this,a);if(this.X){if(this.X.Bh=="nw")this.ea.x+this.ea.w-a.x>15?a.x<this.$a.x?(this.ea.w-=this.$a.x-this.ea.x,this.ea.x=this.$a.x):(this.ea.w-=a.x-this.ea.x,this.ea.x=a.x):(this.ea.x=this.ea.x+this.ea.w-15,this.ea.w=15),this.ea.y+this.ea.h-a.y>15?a.y<this.$a.y?(this.ea.h-=this.$a.y-this.ea.y,this.ea.y=this.$a.y):(this.ea.h-=a.y-this.ea.y,this.ea.y=a.y):(this.ea.y=this.ea.y+this.ea.h-15,this.ea.h=15);else if(this.X.Bh=="ne")this.ea.w=a.x-this.ea.x>15?a.x>this.$a.x+
this.$a.w?this.$a.x+this.$a.w-this.ea.x:a.x-this.ea.x:15,this.ea.y+this.ea.h-a.y>15?a.y<this.$a.y?(this.ea.h-=this.$a.y-this.ea.y,this.ea.y=this.$a.y):(this.ea.h-=a.y-this.ea.y,this.ea.y=a.y):(this.ea.y=this.ea.y+this.ea.h-15,this.ea.h=15);else if(this.X.Bh=="se")this.ea.w=a.x-this.ea.x>15?a.x>this.$a.x+this.$a.w?this.$a.x+this.$a.w-this.ea.x:a.x-this.ea.x:15,this.ea.h=a.y-this.ea.y>15?a.y>this.$a.y+this.$a.h?this.$a.y+this.$a.h-this.ea.y:a.y-this.ea.y:15;else if(this.X.Bh=="sw")this.ea.x+this.ea.w-
a.x>15?a.x<this.$a.x?(this.ea.w-=this.$a.x-this.ea.x,this.ea.x=this.$a.x):(this.ea.w-=a.x-this.ea.x,this.ea.x=a.x):(this.ea.x=this.ea.x+this.ea.w-15,this.ea.w=15),this.ea.h=a.y-this.ea.y>15?a.y>this.$a.y+this.$a.h?this.$a.y+this.$a.h-this.ea.y:a.y-this.ea.y:15;this.Ha=!0}else if(a=this.Za(a)){if(this.$f!=a.cursor)this.$f=a.cursor,this.J.css({cursor:a.cursor})}else if(this.$f!="default")this.$f="default",this.J.css({cursor:"default"})};q.gd=function(){this.X=l};function Wh(){this.action="";this.tt=this.st=this.Mt=this.Lt=this.fl=this.Jo=this.Fc=this.dz=this.Qq=this.So=this.click=this.value=this.oe=this.cursor=this.oc=this.Kc=this.item=l;this.max=this.min=this.index=0;this.Qd=l}function Xh(a){var b=[];a.item&&b.push(a.item);a.Kc&&(b=b.concat(a.Kc));return $.unique(b)}function Yh(a){var b=!1;A(Xh(a),function(a){if(a.sa)return b=!0,!1});return b}function Zh(a){var b=!1;A(Xh(a),function(a){if(a.pa)return b=!0,!1});return b}q=Wh.prototype;
q.rotation=function(){var a=Xh(this);return a.length==1&&a[0].sa?a[0].q.get("Rotation"):0};q.ja=function(){return $h(Xh(this))};q.Oh=function(){var a=!1;A(Xh(this),function(b){a=a||b.Oh});return a};q.qi=function(){var a=!1;A(Xh(this),function(b){a=a||b.qi});return a};function ai(a,b){var c=new Wh;c.action="rotate";c.item=a[0];c.Kc=a;c.value=b;return c}function bi(a){var b=new Wh;b.action="nw";b.item=a[0];b.Kc=a;return b}function ci(a){var b=new Wh;b.action="ne";b.item=a[0];b.Kc=a;return b}
function di(a){var b=new Wh;b.action="sw";b.item=a[0];b.Kc=a;return b}function ei(a){var b=new Wh;b.action="se";b.item=a[0];b.Kc=a;return b}function fi(a,b,c,d,e){var f=new Wh;f.action="move";f.item=a;f.click=b;f.cursor=c;f.Qd=d;if(e)f.Fc=e;return f}function gi(a,b){var c=new Wh;c.action="linkpoint";c.item=a;c.oc=b;return c}function hi(a,b,c){var d=new Wh;d.action="dragline";d.item=a;d.oe=b;d.value=c;return d}
function ii(a,b,c,d,e,f,g,i,j){var k=new Wh;k.action="slidex";k.item=a;k.Lt=b;k.Mt=c;k.st=d;k.tt=e;k.Xc=f;k.index=g;k.min=i;k.max=j;k.th=f[g].x;k.bh=a.q.get("XPlanes");k.pj=Zb(k.bh,k.th);if(k.pj==-1)k.pj=k.bh.length;return k}function ji(a,b,c,d,e,f,g,i,j){var k=new Wh;k.action="slidey";k.item=a;k.Lt=b;k.Mt=c;k.st=d;k.tt=e;k.Xc=f;k.index=g;k.min=i;k.max=j;k.th=f[g].y;k.bh=a.q.get("YPlanes");k.pj=Zb(k.bh,k.th);if(k.pj==-1)k.pj=k.bh.length;return k}
function ki(a){var b=new Wh;b.action="other";b.item=a;return b}function li(a){var b=new Wh;b.action="select";b.item=a;return b}q.Mq=ca("fl");Wh.prototype.setReadOnlyClick=Wh.prototype.Mq;t("lucid.view.render.Hit.control",function(a,b){var c=new Wh;c.action="control";c.item=a;if(b.doubleClick)c.Fc=b.doubleClick;if(b.drag)c.So=b.drag;if(b.startDrag)c.Qq=b.startDrag;if(b.endDrag)c.vs=b.endDrag;if(b.click)c.click=b.click;if(b.cursor)c.cursor=b.cursor;if(b.cursorFunc)c.Jo=b.cursorFunc;return c});
t("lucid.view.render.Hit.move",fi);function Th(a,b){var c=this;this.page=this.page=a;this.model=this.C=b;this.St=function(){if(this.name in c.la)c.la[this.name].Ha=!0;else if(this.name!="BoundingBox")c.Ha=!0};this.C.q.$i(l,this.St);this.ya=l;this.Ha=!1;this.Hf="";this.la={}}
function mi(a){if(a.C.onCreate)a.Xh=a.C.onCreate,a.onCreate=a.C.onCreate;if(a.C.clicked)a.Yl=a.C.clicked;if(a.C.textClicked)a.Wq=a.C.textClicked;if(a.C.doubleClicked)a.fk=a.C.doubleClicked,a.doubleClicked=a.C.doubleClicked;if(a.C.textDoubleClicked)a.Xq=a.C.textDoubleClicked,a.textDoubleClicked=a.C.textDoubleClicked;if(a.C.hitTest)a.Za=a.C.hitTest;if(a.C.hitTestTools)a.hg=a.C.hitTestTools;if(a.C.rectTest)a.xj=a.C.rectTest;if(a.C.selectNewLink)a.ml=a.C.selectNewLink,a.selectNewLink=a.C.selectNewLink}
Th.prototype.destroy=function(){for(var a in this.la)this.la[a].destroy();this.la={};if(this.ya)this.ya.destroy(),this.ya=l;ni(this.C.q,this.St);A(this.Hb,function(a){a[0].unbind(a[1],a[2])});this.Hb=[];this.Hf="";this.Ha=!0};function oi(a,b){this.qa=a;this.C=b;this.Ha=!0;this.aa=l}oi.prototype.destroy=function(){if(this.aa)this.aa.destroy(),this.aa=l};
function pi(a,b,c,d,e,f){var g=a.C.tc(d);if(g==l){if(a.aa)a.aa.destroy(),a.aa=l}else{la(g)||(g=[g]);var i=a.qa.C.Og(d);if(c||a.Ha||i.length!=0){a.Ha=!1;var j=a.qa.C.q.get(a.C.name);if(a.aa==l){var k=a.qa.C.document.q.get("Language");a.aa=new Wg(1,1,k,a);var n=!1,m=!1;a.aa.bind("change",function(b){m=!0;!n&&!a.qa.C.document.jg&&(n=!0,a.qa.C.document.Aa(),a.qa.C.document.ba(new N(yg,{id:a.qa.C.id,Key:a.C.name,Diff:b.action})),setTimeout(function(){a.qa.C.document.xa()},1),n=!1)});a.aa.bind("blur",function(){m&&
(a.qa.C.zr(a.qa),m=!1);a.qa.C.q.get("Shadow")&&a.qa.ia()});a.qa.ya.J.append(a.aa.oa[0].J);k=dd(j,a.qa.C.q.get("Font"));if(!k.ef(a.aa.content))a.aa.content.text=k.text,a.aa.content.za=k.za,a.aa.ia()}A(g,function(a){a.x-=d.x;a.y-=d.y;a.w=Math.max(a.w,1);a.h=Math.max(a.h,1)});var p=a.C.textAlign||a.qa.C.q.get("TextAlign"),s=a.C.ul||a.qa.C.q.get("TextVAlign"),u=a.C.rotation||0,i=nd([g,d,e,b,j,p,s,u,i,a.qa.ya.padding,f,xh[a.qa.C.id],R.lc,R.vc,R.Xb]);if(a.aa.vl!=i||c){a.aa.vl=i;var w=new G(d.w/2,d.h/2);
a.aa.scale=b;a.aa.qa=a.qa.C;a.aa.Bp=a.qa.C.id;A(g,function(c,g){g>=a.aa.oa.length&&(a.aa.oa.push(new Gg(1,1,a.aa)),a.qa.ya.J.append(a.aa.oa[g].J),a.aa.hasFocus&&a.aa.oa[g].focus());var i=a.aa.oa[g],j=db(c,e+u,w);if(u){var k=Za(new G(c.x+c.w/2,c.y+c.h/2),w,e);j.x=k.x-j.w/2;j.y=k.y-j.h/2}k=db(d,e,new G(w.x+d.x,w.y+d.y));i.Ue=[];if(f){var n=f.type,m=f.params,U=function(){var b=a.qa.C.q.get(a.C.name),e=a.qa.C.q.get("Font"),g=a.qa.C.Og(new H(c.x+d.x,c.y+d.y,c.w,c.h)),f=a.C.textAlign||a.qa.C.q.get("TextAlign"),
i=a.C.ul||a.qa.C.q.get("TextVAlign"),j=K(c),b=dd(b,e),b=mf(b.Ja(),j,g,f,i);m.bb=new H(b.x,b.y,b.width,b.height);b=Dg[n](m);b.update=U;return b};i.Ue.push(U())}if(e||u){var X=new G(c.w/2,c.h/2);i.Ue.push(new Dg("Rotate",Eb(X,e+u),Eb(X,-(e+u))))}i.width=c.w;i.height=c.h;i.Ng=p;i.vAlign=s;i.rotation=e;i.J.css({position:"absolute",left:(j.x+j.w/2-c.w/2+d.x-k.x)*b+a.qa.ya.padding+"px",top:(j.y+j.h/2-c.h/2+d.y-k.y)*b+a.qa.ya.padding+"px",width:c.w*b+"px",height:c.h*b+"px"});i.Sk=function(){return a.qa.C.Og(new H(c.x+
d.x,c.y+d.y,c.w,c.h))}});for(c=g.length;c<a.aa.oa.length;c++)a.aa.oa[c].destroy();a.aa.oa.splice(g.length,a.aa.oa.length-g.length);k=dd(j,a.qa.C.q.get("Font"));if(!k.ef(a.aa.content))a.aa.content.text=k.text,a.aa.content.za=k.za,J.set("optionBar.refresh");a.aa.Ja()}}}}oi.prototype.Vv=ea("aa");q=Th.prototype;
q.gg=function(a,b,c){if(!config.useLinkPoints||this.C.pb()||this.C.skipLinkPoints)return l;var d=this.C.ja();if(a<d.x-25||a>d.x+d.w+25||b<d.y-25||b>d.y+d.h+25)return l;c==l&&(c=qi(this,new G(a,b)));var e=new G(a,b),b=this.C.document.$.K.viewport.mode.name=="drawing",f=10;Ya&&(f=25);for(var a=this.C.cg(),g=0;g<a.length;g++)if(Lb(e,this.C.Ac(a[g],!0))<f)return gi(this.C,a[g]);if(!this.C.cj&&(b||!Ya&&!c)){b&&(f=40);var i=ri(this.C),c=function(){for(var a=0;a<i.length;a++)for(var b=i[a],c=0;c<b.length;c++){var d=
Pb(e,b[c],b[(c+1)%b.length]);if(d&&d.data.d<f)return d}return l},a=c();if(a!=l)return e=this.page.dc(a,2),a=c()||a,gi(this.C,new G((a.x-d.x)/d.w,(a.y-d.y)/d.h))}return l};function si(a,b){var c=a.C.document.$,d=a.C.q.get("Link");d.match(/^ext:/)?window.open(d.substr(4)):(d=c.document.nb(d),d!=l?c.K.viewport.Lb([d]):b?(a.Wq(b),a.Yl(!0)):a.Yl())}
q.hg=function(a,b,c,d){var e=this,f=this.C.ja();if(a<f.x-50||a>f.x+f.w+50||b<f.y-50||b>f.y+f.h+50)return l;try{if(this.C.page!=this.C.document.$.K.viewport.V[0].C)return l}catch(g){}var i=new G(a,b),j=config.resizeHandleSize,k=1/this.C.document.$.K.viewport.scale,n=this.C.document.$.K.viewport.getSelection(!0),m=this.C.controls;if(m)for(var p in m){var s=m[p].Za(a,b,c,d);if(s)return s}if(d&&n.length==1&&!this.C.lx&&(m=k*(j/2+1),Ya&&(m*=3),Nb(new G(f.x+f.w/2,f.y-k*(2*j+m)),i)<2*m*m))return f=this.C.q.get("Rotation"),
ai([this.C],f);if(!c){c=qi(this,i);if((d||config.allowResizeUnselected)&&!c)if((!this.C.qi||!this.C.Oh)&&n.length<=1){d=k*j;Ya&&(d*=3);if(this.page&&Lb(i,new G(f.x,f.y))<d)return bi([this.C]);if(this.page&&Lb(i,new G(f.x+f.w,f.y))<d)return ci([this.C]);if(this.page&&Lb(i,new G(f.x+f.w,f.y+f.h))<d)return ei([this.C]);if(Lb(i,new G(f.x,f.y+f.h))<d)return di([this.C])}if((!c||f.w>=80&&f.h>=80)&&!this.C.Ow)if(a=this.gg(a,b,c),a!=l)return a;for(p in this.la)if(!this.la[p].C.readOnly&&(a=this.la[p].C.tc(f))){la(a)||
(a=[a]);for(b=0;b<a.length;b++)if(Fb(i,a[b]))return f=fi(this.C,function(a){return function(){si(e,a)}}(p),this.C.q.get("Link")?"pointer":"move",p,function(a){return function(){e.C.q.get("Link")==""&&(e.Xq(a),e.fk(!0))}}(p)),this.C.q.get("Link")!=""&&f.Mq(function(){si(e)}),f}}return l};
function qi(a,b,c){var d=a.C.ja();if(!Fb(b,d))return!1;d=b.x;b=b.y;c=c||ri(a.C);for(a=0;a<c.length;a++){for(var e=c[a],f=[],g=0;g<e.length;g++){var i=Vb(new G(-1E4,b),new G(1E4,b),e[g],e[(g+1)%e.length]);i!=!0&&i!=!1&&f.push(i.x)}f.sort(function(a,b){return a-b});for(g=0;g<f.length;g++)if(f[g]>d){if(g%2==1)return!0;break}}return!1}q.kl=function(a){var b=this.C.q.get("Rotation");if(!b)return a;var c=this.C.q.get("BoundingBox");return Za(a,new G(c.x+c.w/2,c.y+c.h/2),-b)};
q.Vd=function(a,b,c){if(this.Hb==l)this.Hb=[];this.Hb.push([a,b,c]);a.bind(b,c)};q.Za=function(a,b,c,d,e){if(this.C.pb())return l;var f=Ra(this.C.Gd(),50);if(!Fb(new G(a,b),f))return l;var b=this.kl(new G(a,b)),a=b.x,b=b.y,g=this,c=(e=e||!!this.C.ta)?l:this.hg(a,b,c,!!d);c==l&&qi(this,new G(a,b))&&(a=g.C.q.get("Link"),c=e?li(this.C):fi(this.C,function(){si(g)},a?"pointer":"move",l,function(){g.fk()}),a!=""&&c.Mq(function(){si(g)}));return c};
q.xj=function(a){if(this.C.pb())return!1;var b=this.C.Gd();return!(b.x>a.x+a.w||b.y>a.y+a.h||b.x+b.w<a.x||b.y+b.h<a.y)};
q.Ed=function(a){var b=this;V("ie","editText called");this.la[a]==l&&(this.la[a]=new oi(this,this.C.la[a]));var c=this.la[a];if(c.C.readOnly)return l;if(Ya){var d=this.C.q.get(a),e=fh(d,this.C.q.get("Font"),c.C.textAlign||this.C.q.get("TextAlign"));ve(l,ch(d,this.C.q.get("Font")),function(c){var d=new Bc;d.text=c;Rc(d,0,c.length,e);c=d.serialize();b.C.document.ba(new N(M,{id:b.C.id,Property:a,Value:c}))});return l}if(c.aa==l){V("ie","Delaying editText until after render, div not available to edit yet.");
var f=this,g=this.C.document.$.K.viewport;g.J.bind("afterRender.editText",function(){f.Ed(a);g.J.unbind("afterRender.editText")});return l}if(c.aa.hasFocus)return l;this.ya.J.parents("div[id^=SuperCanvas]").append(this.ya.J);f=this;c.aa.view=this;ah(c.aa,c.C.Ou);c.aa.select();setTimeout(function(){c.aa.select()},1);var i=hc(this.C.la);if(i>1){var j=function(a){if(c.aa.hasFocus){if(a.which==9||a.keyCode==9){c.aa.blur();for(var b=1;b<i;b++)if(f.Ed(ti(f.C,a.shiftKey?(c.C.index+i-b)%i:(c.C.index+b)%i)))break;
a.preventDefault()}c.aa.one("keydown",j)}};c.aa.one("keydown",j)}V("ie","editText done");return c.aa};
q.Ja=function(a,b,c,d,e,f){var g=this.C.ja(),i=this;this.scale=b;this.selected=e;var j=this.page?this.page.Rg(this.C):this.C.document.$.K.viewport.Rg(this.C),k=this.C.q.get("Rotation",!0),n=db(g,k),m=Math.round(this.C.dt(g)*b);this.ya==l?(this.ya=new Je(Math.round(n.x*b)+c,Math.round(n.y*b)+d,Math.round(n.w*b),Math.round(n.h*b),m),this.ya.Rl=this.C.id,Ie(a,function(a){return a.Rl==i.C.id})):this.ya.move(Math.round(n.x*b)+c,Math.round(n.y*b)+d,Math.round(n.w*b),Math.round(n.h*b),m);var m=!this.C.Zg||
!this.C.document.$.Id()||this.C.document.$.K.viewport.hl,p=this.C.q.get("Crop",!0),c=this.C.q.get("Shadow"),d=this.C.q.get("Opacity")*0.01,s=[];if(c)for(var u in this.C.la)s.push(this.C.q.get(u));e=[g.w,g.h,p,k,e,b,d,c,s,this.C.document.q.get("Gradient",!0),this.C.document.q.get("RoundCorners",!0),j,m,qc(xh[this.C.id]),R.lc,R.vc,R.Xb];j=Ge(a,this.ya)||this.Ha||!Na(this.Hf,e);if(!f){m=this.C.q.get("TextTransform",!0);for(u in this.C.la)p=this.C.la[u],this.la[u]==l&&(this.la[u]=new oi(this,p)),pi(this.la[u],
b,j,g,k,m);this.search(xh[this.C.id]);for(u in this.la)this.C.la[u]==l&&(this.la[u].destroy(),delete this.la[u])}if(j){V("render","Rendering block "+this.C.id+" because:");V("render",[Ge(a,this.ya),this.Ha,this.Hf,e]);this.Hf=K(e);this.Ha=!1;var a=this.C.He(f?"toolhelper":"screen"),w=this.ya.getContext();w.scale(b,b);k&&(w.translate(n.w/2,n.h/2),w.rotate(k),w.translate(-n.w/2,-n.h/2));f=-Math.round(n.x*b)/b;g=-Math.round(n.y*b)/b;w.translate(f,g);d<=1?(w.save(),w.globalAlpha=d,Uh(this,w,a),w.restore()):
Uh(this,w,a);if(c&&(!Xd||be)){var v=Me(w),x;for(x in this.la)this.la[x].aa&&A(this.la[x].aa.oa,function(a){var b=$(w.canvas).offset(),c=$(a.Wc.canvas).offset(),d=c.left-b.left,b=c.top-b.top,a=a.Wc.canvas.getContext().canvas;v.drawImage(a,0,0,a.width,a.height,d,b,a.width,a.height)});w.restore();w.save();w.clearRect(0,0,w.canvas.width,w.canvas.height);he&&(ke||le)?(ui(v,c.b*b,new I(c.c)),w.drawImage(v.canvas,0,0,w.canvas.width,w.canvas.height,c.x*b,c.y*b,w.canvas.width,w.canvas.height)):(w.shadowOffsetX=
c.x*b-2E3,w.shadowOffsetY=c.y*b,w.shadowBlur=c.b*b,w.shadowColor=gb(new I(c.c)),w.drawImage(v.canvas,0,0,w.canvas.width,w.canvas.height,2E3,0,w.canvas.width,w.canvas.height));w.restore();w.save();w.translate(this.ya.padding,this.ya.padding);w.scale(b,b);k&&(w.translate(n.w/2,n.h/2),w.rotate(k),w.translate(-n.w/2,-n.h/2));w.translate(f,g);d<=1?(w.save(),w.globalAlpha=d,Uh(this,w,a),w.restore()):Uh(this,w,a)}V("r","Really rendered");V("r","Triggering rendered");$(document).trigger("blockRendered",[this.C.id])}};
function Uh(a,b,c,d){c==l&&(c=a.C.He());d==l&&(d=!0);var e=a.C.ja(),f=a.C.q.get("Crop");f&&(b.save(),d&&(b.beginPath(),A(f.c,function(a){a.c=="m"?b.moveTo(e.x+a.x*e.w,e.y+a.y*e.h):a.c=="l"?b.lineTo(e.x+a.x*e.w,e.y+a.y*e.h):a.c=="c"&&b.closePath()}),b.clip()),b.translate(f.t[0]*e.w,f.t[1]*e.h),b.translate(e.x,e.y),b.scale(f.s[0],f.s[1]),b.translate(-e.x,-e.y),b.translate(e.x+e.w/2,e.y+e.h/2),b.rotate(f.r),b.translate(-(e.x+e.w/2),-(e.y+e.h/2)));d=!a.C.Zg||!a.C.document.$.Id()||a.C.document.$.K.viewport.hl;
V("r",[a.C.id,e]);for(var g=Ka,i,j=0;j<c.length;j++)if(d||(delete c[j].Image,delete c[j].FillColor,delete c[j].StrokeColor,delete c[j].LineWidth),c[j].Image!=l){if(!g.Gk(c[j].Image.src))a.Hf="";try{b.drawImage(c[j].Image,c[j].BoundingBox.x,c[j].BoundingBox.y,c[j].BoundingBox.w,c[j].BoundingBox.h)}catch(k){b.fillStyle="#aaaaaa",b.fillRect(c[j].BoundingBox.x,c[j].BoundingBox.y,c[j].BoundingBox.w,c[j].BoundingBox.h),a.Hf=""}}else{if(i=vi(c[j].FillColor))if(i.Hd&&i.ga()>0){var n=a.C.document.q.get("Gradient");
if(n>0){var m=lg(i),p=m[2]*n,m=(1-m[2])*n,n=new I(i);i=new I(i);n.Ip(p>=m?p:0);ng(i,m>p?m:0);p=b.createLinearGradient(e.x,e.y,e.x+e.w,e.y+e.h);p.addColorStop(0,gb(n));p.addColorStop(1,gb(i));b.fillStyle=p}else b.fillStyle=gb(i);b.beginPath();b.yd(c[j].Actions);b.fill()}else if(i.kf){b.save();b.beginPath();b.yd(c[j].Actions);b.clip();var s=g.Gk(i.url());if(!s)a.Hf="";var u=g.Ig(i.url(),function(){s||J.set("viewport.invalidate")}),p=[];if(i.Od()=="stretch")p.push(e);else if(i.Od()=="fit")p.push(rb(new H(0,
0,u.width,u.height),e));else if(i.Od()=="fill")p.push(sb(new H(0,0,u.width,u.height),e));else if(i.Od()=="original")p.push(wb(new H(0,0,u.width,u.height),e));else if(i.Od()=="tile")for(i=e.x;i<e.x+e.w;i+=u.width||100)for(n=e.y;n<e.y+e.h;n+=u.height||100)p.push(new H(i,n,u.width,u.height));A(p,function(c){try{b.drawImage(u,c.x,c.y,c.w,c.h)}catch(d){b.fillStyle="#aaaaaa",b.fillRect(c.x,c.y,c.w,c.h),a.Hf=""}});b.restore()}else i.jf&&(Rh(b,i,e),b.beginPath(),b.yd(c[j].Actions),b.fill());if(c[j].StrokeColor&&
(i=vi(c[j].StrokeColor),i.Hd&&i.ga()>0&&c[j].LineWidth>0))b.strokeStyle=gb(i),b.lineWidth=c[j].LineWidth,b.beginPath(),b.yd(c[j].Actions),b.stroke()}f&&b.restore()}
function wi(a,b,c,d){var e=b.getContext("2d"),f=a.C.q.get("Rotation"),g=a.C.ja();f&&(e.translate(b.width()/2,b.height()/2),e.rotate(f),e.translate(-b.width()/2,-b.height()/2));c&&e.scale(c,c);e.lineJoin="round";c=c||1;d=d||"sample";b=a.C.He(d);for(c=0;c<b.length;c++)if(b[c].Image!=l)try{e.drawImage(b[c].Image,b[c].BoundingBox.x,b[c].BoundingBox.y,b[c].BoundingBox.w,b[c].BoundingBox.h)}catch(i){e.fillStyle="#aaaaaa",e.fillRect(b[c].BoundingBox.x,b[c].BoundingBox.y,b[c].BoundingBox.w,b[c].BoundingBox.h)}else{var j=
b[c].FillColor,f=na(j)?j:l,j=qa(j)?j:l;if(f&&f.toLowerCase()!="transparent")f=new I(f,"#ffffffff"),e.fillStyle=gb(f),e.beginPath(),e.yd(b[c].Actions),e.fill();else if(j){if(j.t=="l"){var k=e.createLinearGradient(g.x+j.x1*g.w,g.y+j.y1*g.h,g.x+j.x2*g.w,g.y+j.y2*g.h);A(j.cs,function(a){var b=new I(a.c);k.addColorStop(a.t,gb(b))});e.fillStyle=k}else if(j.t=="r")k=e.createRadialGradient(g.x+j.x1*g.w,g.y+j.y1*g.h,Mb(new G(j.dx1*g.w,j.dy1*g.h)),g.x+j.x2*g.w,g.y+j.y2*g.h,Mb(new G(j.dx2*g.w,j.dy2*g.h))),A(j.cs,
function(a){var b=new I(a.c);k.addColorStop(a.t,gb(b))}),e.fillStyle=k;e.beginPath();e.yd(b[c].Actions);e.fill()}f=!0;b[c].StrokeColor?e.strokeStyle=pg(b[c].StrokeColor,"#000000ff"):(f=d!="preview",e.strokeStyle="rgba(0,0,0,.25)");if(f)e.lineWidth=b[c].StrokeColor?b[c].LineWidth:1,e.beginPath(),e.yd(b[c].Actions),e.stroke()}if(d=="preview")for(var n in a.C.la)b=a.C.la[n],d=b.tc(g),d!=l&&(c=a.C.q.get(n),f=a.C.q.get("Font"),c=dd(c,f).Ja(!1),b=b.textAlign||a.C.q.get("TextAlign"),nf(e,c,d,[],b,"middle"))}
function xi(){this.ga=0;this.next=l}
function ui(a,b,c){b|=0;var d=a.canvas,e=d.width,d=d.height,f=a.getImageData(0,0,e,d),g=f.data,i,j,k,n,m,p,s,u,w,v,x=c.Ua(),z=c.Nh(),B=c.gb(),c=c.ga();if(b==0)for(j=m=0;j<d;j++)for(i=0;i<e;i++)g[m]=x,g[m+1]=z,g[m+2]=B,g[m+3]=Math.round(c*g[m+3]),m+=4;else{var O=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,
282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,
480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259];i=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,
21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,
24,24,24,24,24,24,24,24,24,24,24,24,24,24];m=b+b+1;var T=e-1,W=d-1,U=b+1,X=U*(U+1)/2,da=new xi,Z=da,Ga;for(k=1;k<m;k++)Z=Z.next=new xi,k==U&&(Ga=Z);Z.next=da;Z=k=l;p=m=0;var O=O[Math.min(b,O.length-1)],wa=i[Math.min(b,i.length-1)];for(j=0;j<d;j++){w=s=0;u=U*(v=g[m+3]);s+=X*v;Z=da;for(k=0;k<U;k++)Z.ga=v,Z=Z.next;for(k=1;k<U;k++)n=m+((T<k?T:k)<<2),s+=(Z.ga=v=g[n+3])*(U-k),w+=v,Z=Z.next;k=da;Z=Ga;for(i=0;i<e;i++)v=s*O>>wa,g[m+3]=v,s-=u,u-=k.ga,n=p+((n=i+b+1)<T?n:T)<<2,w+=k.ga=g[n+3],s+=w,k=k.next,u+=
v=Z.ga,w-=v,Z=Z.next,m+=4;p+=e}for(i=0;i<e;i++){w=s=0;m=i<<2;u=U*(v=g[m+3]);s+=X*v;Z=da;for(k=0;k<U;k++)Z.ga=v,Z=Z.next;n=e;for(k=1;k<=b;k++)m=n+i<<2,s+=(Z.ga=v=g[m+3])*(U-k),w+=v,Z=Z.next,k<W&&(n+=e);m=i;k=da;Z=Ga;for(j=0;j<d;j++)n=m<<2,v=s*O>>wa,g[n+3]=Math.round(v*c),g[n]=x,g[n+1]=z,g[n+2]=B,s-=u,u-=k.ga,n=i+((n=j+U)<W?n:W)*e<<2,s+=w+=k.ga=g[n+3],k=k.next,u+=v=Z.ga,w-=v,Z=Z.next,m+=e}}a.putImageData(f,0,0)}q.ia=function(){this.Ha=!0};q.ml=function(){J.set("hotSpotDialog.open",[this.C])};q.$v=function(a){return this.la[a]};
q.Xh=function(){if(!Ya)for(var a in this.C.la){this.Ed(a);break}};q.Yl=o();q.Wq=o();q.fk=function(){this.C.uv&&(new Sh(this.C.document.$.K,this.C)).create()};q.Xq=function(a){this.Ed(a)};
q.search=function(a){a||(a=[]);for(var b={},c=0;c<a.length;c++){var d=a[c],e=this.la[d[0].ue].aa;b[d[0].ue]=!0;var f=e.rc().Bc;e.rc().Bc=[];if(d){for(var g in d)e.rc().Bc.push(d[g]);if(R.lc!=h&&zh[this.C.page.id]&&xh[this.C.id]&&this.C.page==R.Yb&&zh[this.C.page.id][R.lc]&&zh[this.C.page.id][R.lc][0][0].item==this.C.id)this.la[a[R.vc][0].ue].aa.Xb=R.Xb}Na(f,e.rc().Bc)||e.ia()}for(var i in this.la)if(!(i in b)&&(a=this.la[i].aa)&&a.rc().Bc&&a.rc().Bc.length>0)a.rc().Bc=[],a.ia()};
t("lucid.view.render.Block",Th);Th.prototype.editText=Th.prototype.Ed;Th.prototype.invalidate=Th.prototype.ia;Th.prototype.hitTest=Th.prototype.Za;Th.prototype.hitTestTools=Th.prototype.hg;Th.prototype.selectNewLink=Th.prototype.ml;Th.prototype.getTextAreaView=Th.prototype.$v;Th.prototype.rotatedPoint=Th.prototype.kl;Th.prototype.onCreate=Th.prototype.Xh;Th.prototype.doubleClicked=Th.prototype.fk;oi.prototype.getEditor=oi.prototype.Vv;function yi(a,b){this.id=a;this.document=this.document=b;this.q=new zi(a);this.Kc={};this.isGroup=this.pa=!0;this.Je=this.Zf=this.Zg=this.ta=this.isState=this.Jc=!1;var c=this;this.q.ka("Opacity",100);this.q.ka("Lock",0,function(a){return!parseInt(a,10)?0:1},function(a,b){c.ta=!!parseInt(b,10)});this.q.ka("ZOrder",0,l,function(a,b){c.oh=b});this.q.ka("Members",{},function(a){for(var b in a)(c.page?c.page.ra(b):c.document.ra(b))||delete a[b];return a},function(a,b){for(var f in b)if(!(f in a)){var g=
c.page?c.page.ra(f):c.document.ra(f);if(g&&g.parent!=c&&g.parent&&g.parent.pa){var i=g.parent.q.get("Members");delete i[f];var j=g.parent,k=j.parent;j.parent=l;j.q.set("Members",i);j.parent=k}c.Ll(g)}for(f in a)if(!(f in b)){if((g=c.page?c.page.ra(f):c.document.ra(f))&&!g.deleting&&g.parent!=c.parent)c.parent&&c.parent.pa?(i=c.parent.q.get("Members"),i[f]=!0,c.parent.q.set("Members",i),c.parent.Ll(g)):g.parent=l;c.removeItem(f)}c.pd()});this.q.ka("ConPro",0,l,function(a,b){c.Zf=!!b});this.q.ka("BG",
0,l,function(a,b){c.Je=!!b});this.uu=this.ke=this.je=this.tc=l;this.pd()}function $h(a){if(a.length==0)return new H(0,0,0,0);var b=1E6,c=1E6,d=-1E6,e=-1E6;A(a,function(a){var g=a.pa?a.pd():a.ja(!0);a.sa&&(g=db(g,a.q.get("Rotation")));b=g.x<b?g.x:b;c=g.y<c?g.y:c;d=g.x+g.w>d?g.x+g.w:d;e=g.y+g.h>e?g.y+g.h:e});return new H(b,c,d-b,e-c)}q=yi.prototype;q.pd=function(){var a=[];this.Ib(function(){a.push(this)});return this.tc=$h(a)};
q.ja=function(a){if(!a&&this.je)return this.je;a=this.tc?this.tc:this.pd();return new H(a.x,a.y,a.w,a.h)};q.Gd=function(){return this.ja()};q.dt=fa(32);q.Ib=function(a){for(var b in this.Kc)if(a.call(this.Kc[b])=="stop")break};q.Uo=function(a){for(var b=this.dg(),c=b.length-1;c>=0;c--)if(a.call(b[c])=="stop")break};q.dg=function(){var a=this,b=[];this.Ib(function(){this.parent&&this.parent==a&&b.push(this)});b.sort(function(a,b){return a.oh-b.oh});return b};
q.ge=function(){for(var a=this.dg(),b=0;b<a.length;b++)if(a[b].pa){for(var c=a[b].ge(),d=0;d<c.length;d++)a.splice(b,0,c[d]),b++;a.splice(b--,1)}return a};q.Ll=function(a){this.Kc[a.id]=a;a.parent=this};q.removeItem=function(a){delete this.Kc[a]};q.Qe=function(a){if(this.page=a)this.ke=this.je=l};q.pb=function(){if(this.q.get("Hidden"))return!0;for(var a=this;a.parent;)if(a=a.parent,a.pa&&a.q.get("Hidden"))return!0;return!1};q.Rh=function(){return this.Zg?!1:this.parent&&!this.parent.Rh()?!1:!0};
function Ai(a,b){return b&&b.parent?b.parent==a?!0:Ai(a,b.parent):!1}q.bg=ea("id");q.Fe=function(){return this.id.replace(/\./g,"--").replace(/\~/g,"__")};q.Kg=ea("q");q.search=function(){return{}};q.Jg=function(a,b){if(this.ta)return{};var c=this.pd(),d=new H(0,0,0,0),e=xb(a,b),d=Oa(new H(e.x+e.w*(c.x-a.x)/a.w,e.y+e.h*(c.y-a.y)/a.h,c.w*(e.w/a.w),c.h*(e.h/a.h)),c),f={};this.Ib(function(){var a=this.Jg(c,d),b;for(b in a)f[b]=a[b]});return f};
q.vk=function(a,b){if(this.ta)return{};var c={};this.Ib(function(){var d=this.vk(a,b),e;for(e in d)c[e]=d[e]});return c};yi.prototype.getProperties=yi.prototype.Kg;yi.prototype.getId=yi.prototype.bg;yi.prototype.getCleanId=yi.prototype.Fe;yi.prototype.getBoundingBox=yi.prototype.ja;yi.prototype.hitTestBoundingBox=yi.prototype.Gd;function Bi(a,b,c,d,e,f,g){function i(b,c){a.document!=l&&a.document.Gq&&(Na(b,f)||a.document.yq(new N(M,{id:a.id,Property:"XPlanes",Value:b})),Na(c,g)||a.document.yq(new N(M,{id:a.id,Property:"YPlanes",Value:c})))}var j=new G(b.x,b.y),k=new G(c.x,c.y),n=b.Block?a.page.Jb(b.Block):l,m=c.Block?a.page.Jb(c.Block):l,p=b.Line&&a.page.Ge(b.Line),s=c.Line&&a.page.Ge(c.Line),u=l,w=k.x-j.x,v=k.y-j.y,x=Math.abs(w),z=Math.abs(v);d==l&&(d=new G(x>z?w>0?1:-1:0,x>z?0:v>0?1:-1));e==l&&(e=new G(x>z?w>0?-1:1:0,x>
z?0:v>0?-1:1));if(p&&s)if(d.x!=0&&e.x!=0&&j.x==k.x)e.x=d.x,A(f,function(a){d.x=a>j.x?1:-1;e.x=d.x;return!1});else{if(d.y!=0&&e.y!=0&&j.y==k.y)e.y=d.y,A(g,function(a){d.y=a>j.y?1:-1;e.y=d.y;return!1})}else if(n&&s||m&&p)d.x!=0&&e.x!=0&&j.x==k.x?s?e.x=d.x:d.x=e.x:d.y!=0&&e.y!=0&&j.y==k.y&&(s?e.y=d.y:d.y=e.y);var p=(v=(w=d.x==e.x&&d.y==e.y)||Math.abs(d.x)==Math.abs(e.x)&&Math.abs(d.y)==Math.abs(e.y))&&d.x!=0,s=v&&d.y!=0,B=!v,O=Tb(j,d,k,e),T=!w&&(v&&(d.x*k.x>d.x*j.x||d.y*k.y>d.y*j.y)||B&&O),W=!w&&!T;
if(T&&v&&(d.x!=0&&j.y==k.y||d.y!=0&&j.x==k.x))return i([],[]),[j,k];if(T&&v)if(p)return A(f,function(a){if(d.x*a>d.x*j.x&&d.x*k.x>d.x*a)return u=[j,new G(a,j.y),new G(a,k.y),k],i([a],[]),!1}),u||i([],[]),u||[j,new G((j.x+k.x)/2,j.y),new G((j.x+k.x)/2,k.y),k];else if(s)return A(g,function(a){if(d.y*a>d.y*j.y&&d.y*k.y>d.y*a)return u=[j,new G(j.x,a),new G(k.x,a),k],i([],[a]),!1}),u||i([],[]),u||[j,new G(j.x,(j.y+k.y)/2),new G(k.x,(j.y+k.y)/2),k];var T=n?n.q.get("Rotation"):l,U=m?m.q.get("Rotation"):
l,n=n?n.ja():l,m=m?m.ja():l,X=l,da=l,Z=l,Ga=l,wa=[],Ma=[],tb=l,ob=l,Ib=!1,tb=n&&m&&b.Block==c.Block,ob=b.Line&&c.Line&&b.Line==c.Line;n&&(n=new kb(T?db(n,T):n));m&&(m=new kb(U?db(m,U):m));if(O&&(x>=40==z>=40||m&&Yb(m.Kb,m.Ua,j.x+d.x*40)||m&&Yb(m.Ia,m.gb,j.y+d.y*40)||n&&Yb(n.Kb,n.Ua,k.x+e.x*40)||n&&Yb(n.Ia,n.gb,k.y+e.y*40)))return i([],[]),[j,O,k];if(B){var Bb=(p=d.y!=0)?j:k,Qb=p?d:e,s=p?n?n:l:m?m:l,ub=p?k:j,ab=p?e:d,b=p?m?m:l:n?n:l,pb=l,vb=l,c=!1;A(f,function(a){if(ab.x*a>ab.x*ub.x)return wa.push(a),
vb=a,!1});A(g,function(a){if(Qb.y*a>Qb.y*Bb.y)return Ma.push(a),pb=a,!1});vb==l&&(vb=(c=Qb.y*ub.y<Qb.y*Bb.y)&&s&&Yb(s.Kb,s.Ua,ub.x)?ab.x<0?s.Kb-40:s.Ua+40:c&&s&&Yb(s.Kb,s.Ua,ub.x+ab.x*80)?((ab.x<0?s.Ua:s.Kb)+ub.x)/2:ub.x+ab.x*40);pb==l&&(pb=(c=ab.x*Bb.x<ab.x*ub.x)&&b&&Yb(b.Ia,b.gb,Bb.y)?Qb.y<0?b.Ia-40:b.gb+40:c&&b&&Yb(b.Ia,b.gb,Bb.y+Qb.y*80)?((Qb.y<0?b.gb:b.Ia)+Bb.y)/2:Bb.y+Qb.y*40);p?(X=new G(j.x,pb),da=new G(vb,pb),Z=new G(vb,k.y)):(X=new G(vb,j.y),da=new G(vb,pb),Z=new G(k.x,pb));i(wa,Ma);return[j,
X,da,Z,k]}if(W&&v){if(p){A(f,function(a){d.x*a>d.x*j.x?(wa.push(a),X=new G(a,j.y)):e.x*a>e.x*k.x&&(wa.push(a),Ga=new G(a,k.y))});var X=X||new G(j.x+d.x*40,j.y),Ga=Ga||new G(k.x+e.x*40,k.y),tb=n?j.y<k.y?n.gb:n.Ia:j.y,ob=m?j.y<k.y?m.Ia:m.gb:k.y,Ib=!n&&!m&&j.y!=k.y||n&&!m&&!Yb(n.Ia,n.gb,k.y)||!n&&m&&!Yb(m.Ia,m.gb,j.y)||n&&m&&!Yb(n.Ia,n.gb,m.Ia)&&!Yb(n.Ia,n.gb,m.gb)&&!Yb(m.Ia,m.gb,n.Ia)&&!Yb(m.Ia,m.gb,n.gb),qb=l;A(g,function(a){Ma.push(a);qb=a;return!1});qb==l&&(qb=Ib?(tb+ob)/2:Math.max(n?n.gb:j.y,m?
m.gb:k.y)+40);da=new G(X.x,qb);Z=new G(Ga.x,qb)}else if(s){A(g,function(a){d.y*a>d.y*j.y?(Ma.push(a),X=new G(j.x,a)):e.y*a>e.y*k.y&&(Ma.push(a),Ga=new G(k.x,a))});var X=X||new G(j.x,j.y+d.y*40),Ga=Ga||new G(k.x,k.y+e.y*40),tb=n?j.x<k.x?n.Ua:n.Kb:j.x,ob=m?j.x<k.x?m.Kb:m.Ua:k.x,Ib=!n&&!m&&j.x!=k.x||n&&!m&&!Yb(n.Kb,n.Ua,k.x)||!n&&m&&!Yb(m.Kb,m.Ua,j.x)||n&&m&&!Yb(n.Kb,n.Ua,m.Kb)&&!Yb(n.Kb,n.Ua,m.Ua)&&!Yb(m.Kb,m.Ua,n.Kb)&&!Yb(m.Kb,m.Ua,n.Ua),Jb=l;A(f,function(a){wa.push(a);Jb=a;return!1});Jb==l&&(Jb=Ib?
(tb+ob)/2:Math.max(n?n.Ua:j.x,m?m.Ua:k.x)+40);da=new G(Jb,X.y);Z=new G(Jb,Ga.y)}i(wa,Ma);return[j,X,da,Z,Ga,k]}if(w){var Kb=l,jb=c=b=l,x=Ub(j,k,new G(k.x+e.x*1E5,k.y+e.y*1E5)),z=Ub(k,j,new G(j.x+d.x*1E5,j.y+d.y*1E5)),xa=x<z?n?n:l:m?m:l,Sa=x<z?k:j,bb=x<z?j:k,n=x<z?e:d,cb=x<z?d:e;if(p)if(p=!xa||!Yb(xa.Ia-40,xa.gb+40,Sa.y)||tb||ob)return A(f,function(a){if(cb.x*a>cb.x*bb.x)return wa.push(a),X=new G(a,j.y),da=new G(a,k.y),!1}),X=X||new G(bb.x+cb.x*40,j.y),da=da||new G(bb.x+cb.x*40,k.y),i(wa,Ma),[j,X,
da,k];else A(f,function(a){Yb(Sa.x,$b(Sa.x,[xa.Kb,xa.Ua]),a)?(wa.push(a),Kb=new G(a,Sa.y)):cb.x*a>cb.x*bb.x&&(wa.push(a),jb=new G(a,bb.y))}),Kb=Kb||new G(Sa.x+n.x*40,Sa.y),jb=jb||new G(bb.x+cb.x*40,bb.y),qb=l,A(g,function(a){Ma.push(a);qb=a;return!1}),qb=qb||($b(Sa.y,[xa.Ia,xa.gb])==xa.Ia?xa.Ia-40:xa.gb+40),b=new G(Kb.x,qb),c=new G(jb.x,qb);else if(s)if(p=!xa||!Yb(xa.Kb-40,xa.Ua+40,Sa.x)||tb||ob)return A(g,function(a){if(cb.y*a>cb.y*bb.y)return Ma.push(a),X=new G(j.x,a),da=new G(k.x,a),!1}),X=X||
new G(j.x,bb.y+cb.y*40),da=da||new G(k.x,bb.y+cb.y*40),i(wa,Ma),[j,X,da,k];else A(g,function(a){Yb(Sa.y,$b(Sa.y,[xa.Ia,xa.gb]),a)?(Ma.push(a),Kb=new G(Sa.x,a)):cb.y*a>cb.y*bb.y&&(Ma.push(a),jb=new G(bb.x,a))}),Kb=Kb||new G(Sa.x,Sa.y+n.y*40),jb=jb||new G(bb.x,bb.y+cb.y*40),Jb=l,A(f,function(a){wa.push(a);Jb=a;return!1}),Jb=Jb||($b(Sa.x,[xa.Kb,xa.Ua])==xa.Kb?xa.Kb-40:xa.Ua+40),b=new G(Jb,Kb.y),c=new G(Jb,jb.y);i(wa,Ma);return j==Sa?[j,Kb,b,c,jb,k]:[j,jb,c,b,Kb,k]}u=[j];if(b.Block!=l||b.Line!=l)u.push(Ci(j,
d)),j=u[u.length-1];if(c.Block!=l||c.Line!=l)k=Ci(k,e);x=Math.abs(j.x-k.x);z=Math.abs(j.y-k.y);x<z?(u.push(new G(j.x,(j.y+k.y)/2)),u.push(new G(k.x,(j.y+k.y)/2))):(u.push(new G((j.x+k.x)/2,j.y)),u.push(new G((j.x+k.x)/2,k.y)));if(c.Block!=l||c.Line!=l)u.push(k),k=new G(c.x,c.y);u.push(k);i([],[]);return u}function Ci(a,b){return b==l?new G(a.x,a.y):new G(a.x+b.x*40,a.y+b.y*40)};function Di(a,b,c){function d(a,b){if(a==l||b.x&&b.x!=a.x||b.y&&b.y!=a.y||b.Block!=a.Block||b.Line!=a.Line){var c=f.q.get("Endpoint1",!0),d=f.q.get("Endpoint2",!0);c!=l&&d!=l&&Ei(f,Fi(f,c,d))}}function e(a){var b=this.get()==l?{}:K(this.get()),c;for(c in a)b[c]=a[c];if(b.Block!=l&&(a=f.page.Jb(b.Block),a!=l))a=a.Ac(new G(b.LinkX,b.LinkY)),b.x=a.x,b.y=a.y;if(b.Line!=l&&(a=f.page.Ge(b.Line),a!=l))a=Gi(a,b.LineP),b.x=a.x,b.y=a.y;return b}var f=this;this.id=a;this.Vg=b;this.ta=!1;this.document=this.document=
c;this.q=new zi(a);this.isLine=this.fb=!0;this.isConnectedLine=this.Im=!1;this.q.ka("LineColor","#000000");this.q.ka("LineWidth",2,function(a){return parseFloat(a)||0.5});this.q.ka("ZOrder",0,l,function(a,b){f.oh=b});this.q.ka("Lock",0,function(a){return!parseInt(a,10)?0:1},function(a,b){f.ta=!!parseInt(b,10)});this.q.ka("Opacity",100);this.q.ka("StrokeStyle","solid");this.q.ka("Font","Liberation Sans");this.Xc=[];this.Ot=[];this.q.ka("ControlPoints",{},function(a){return a==l?{}:la(a)?{}:a},function(){if(f.q.get("Shape")==
"curve"){var a=f.q.get("Endpoint1"),b=f.q.get("Endpoint2");a!=l&&b!=l&&Ei(f,Fi(f,a,b))}});this.q.ka("TextAreas",{IsFullPropSettings:!0},function(a){var b=this.get();if(a.IsFullPropSettings){for(var c in b)a[c]==l&&(a[c]=l);for(c in a)c!="IsFullPropSettings"&&a[c]&&(a[c].Value=bh(a[c].Value,f.q.get("Font")));return a}b=b==l?{}:K(b);for(c in a){if(b[c]==l||a[c]==l)b[c]=a[c];for(var d in a[c])b[c][d]=d=="Value"?bh(a[c][d],f.q.get("Font")):a[c][d]}return b});this.q.ka("Endpoint1",{x:0,y:0,Style:"None",
Block:l,LinkX:l,LinkY:l,Line:l,LineP:l},e,d);this.q.ka("Endpoint2",{x:100,y:0,Style:"Arrow",Block:l,LinkX:l,LinkY:l,Line:l,LineP:l},e,d);this.q.ka("Shape","elbow",l,function(){var a=f.q.get("Endpoint1",!0),b=f.q.get("Endpoint2",!0);a!=l&&b!=l&&Ei(f,Fi(f,a,b))});this.q.ka("XPlanes",[],l,function(){var a=f.q.get("Endpoint1"),b=f.q.get("Endpoint2");a!=l&&b!=l&&Ei(f,Fi(f,a,b))});this.q.ka("YPlanes",[],l,function(){var a=f.q.get("Endpoint1"),b=f.q.get("Endpoint2");a!=l&&b!=l&&Ei(f,Fi(f,a,b))});this.q.ka("ElbowPoints",
l,function(a){return la(a)?a:l},function(){var a=f.q.get("Endpoint1"),b=f.q.get("Endpoint2");a!=l&&b!=l&&Ei(f,Fi(f,a,b))});this.tc=this.pd()}function Hi(a,b){a.Ot.push(b)}
function Ei(a,b){b!=l&&A(b,function(a){if(a.x==l||a.y==l||isNaN(a.x)||isNaN(a.y))return!1});if(b==l){var c=a.q.get("Endpoint1",!0),d=a.q.get("Endpoint2",!0);c!=l&&d!=l&&(b=Fi(a,c,d))}a.Xc=b;try{a.page.qd(function(){var b=this.q.get("Endpoint1",!0),c=this.q.get("Endpoint2",!0);b.Line==a.id&&(b=Gi(a,b.LineP),this.q.set("Endpoint1",{x:b.x,y:b.y},!0));c.Line==a.id&&(b=Gi(a,c.LineP),this.q.set("Endpoint2",{x:b.x,y:b.y},!0))})}catch(e){}a.tc=a.pd();A(a.Ot,function(a){a(b)})}
function Fi(a,b,c){var d=new G(b.x,b.y),e=new G(c.x,c.y),f=Ii(a,b,c),g=Ii(a,c,b);a.Im=b&&(b.Block||b.Line)||c&&(c.Block||c.Line);if(a.q.get("Shape")=="diagonal")return[new G(d.x,d.y),new G(e.x,e.y)];if(a.q.get("Shape")=="curve")return a=Ji(a,b,c),a.length==2&&Ob(new G(a[0].x+a[0].nx,a[0].y+a[0].ny),new G(a[0].x,a[0].y),new G(a[1].x,a[1].y))<=0.01&&Ob(new G(a[1].x+a[1].nx,a[1].y+a[1].ny),new G(a[0].x,a[0].y),new G(a[1].x,a[1].y))<=0.01?[new G(d.x,d.y),new G(e.x,e.y)]:Sb(a,function(a){return Math.max(25,
a/20)});return(d=a.q.get("ElbowPoints"))?(d.unshift(b),d.push(c),d):Bi(a,b,c,f,g,a.q.get("XPlanes"),a.q.get("YPlanes"))}
function Ii(a,b,c){var d=function(){var f;if(b.Block){if(this.q.get("Shape")=="elbow")if(b.LinkX==0)return new G(-1,0);else if(b.LinkX==1)return new G(1,0);else if(b.LinkY==0)return new G(0,-1);else if(b.LinkY==1)return new G(0,1);if(b.LinkX==0&&b.LinkY==0.5)return new G(-1,0);else if(b.LinkX==1&&b.LinkY==0.5)return new G(1,0);else if(b.LinkY==0&&b.LinkX==0.5)return new G(0,-1);else if(b.LinkY==1&&b.LinkX==0.5)return new G(0,1);var a=this.page.Jb(b.Block);if(a!=l){for(var d=ri(a),e=1E4,j=0,k=0,n=
a.Ac(new G(b.LinkX,b.LinkY),!0),m=0;m<d.length;m++)for(var p=d[m],s=0;s<p.length;s++){var u=Pb(n,p[s],p[(s+1)%p.length]);if(u&&u.data.d<e)j=s,k=m,e=u.data.d}f=(p=d[k])?p[j]:b,d=f;j=p?p[(j+1)%p.length]:c;j=Math.atan2(j.y-d.y,j.x-d.x)-Math.PI/2;this.q.get("Shape")=="elbow"&&(j=Math.round(j/(Math.PI/2))*Math.PI/2);j=new G(Math.cos(j),Math.sin(j));a=Db(a.Ac(new G(0.5,0.5),!0),n);a=Hb(a,j)/Mb(a);if(a>0)j.x=-j.x,j.y=-j.y;j.x=Math.round(j.x*100)/100;j.y=Math.round(j.y*100)/100;return j}a=new G(b.LinkX-0.5,
b.LinkY-0.5);n=Math.sqrt(a.x*a.x+a.y*a.y);if(n==0)return l;a.x/=n;a.y/=n;return a}else if(b.Line&&(a=this.page.Ge(b.Line),a!=l)){m=Gi(a,b.LineP);j=Math.atan2(m.ny,m.nx)+Math.PI/2;j=new G(Math.cos(j),Math.sin(j));a=Db(c,b);a=Hb(a,j)/Mb(a);if(a<0)j.x=-j.x,j.y=-j.y;j.x=Math.round(j.x*100)/100;j.y=Math.round(j.y*100)/100;return j}return l}.call(a);if(d!=l&&b.Block){var e=a.document.ra(b.Block);if(e&&(e=e.q.get("Rotation")))d=Za(d,new G(0,0),e),a.q.get("Shape")=="elbow"&&(a=Math.abs(d.y)>Math.abs(d.x),
d=new G(a?0:d.x>0?1:-1,a?d.y>0?1:-1:0))}return d}
function Ji(a,b,c){var d=a.q.get("ControlPoints");b==l&&(b=a.q.get("Endpoint1"));c==l&&(c=a.q.get("Endpoint2"));d.middle==l&&(d.middle=[]);if(d.first==l||d.last==l){var e=new G(b.x,b.y),f=new G(c.x,c.y),g=Ii(a,b,c),a=Ii(a,c,b),i=0.4;if(d.middle.length==0){var j=Math.sqrt((f.x-e.x)*(f.x-e.x)+(f.y-e.y)*(f.y-e.y));j==0&&(j=1);g==l&&(g=new G((f.x-e.x)/j,(f.y-e.y)/j));a==l&&(a=new G((e.x-f.x)/j,(e.y-f.y)/j));b.Block&&b.Block==c.Block&&(i=1);if(g.x==-a.x&&g.y==-a.y){var k=2*(g.x*g.x-2*g.x*a.x+g.y*g.y-2*
g.y*a.y+a.x*a.x+a.y*a.y),e=2*g.x*(e.x-f.x)+2*g.y*(e.y-f.y)-2*a.x*(e.x-f.x)-2*a.y*(e.y-f.y);k!=0&&(e=-e/k,e>0&&(i=e/j))}k=j}else{var n=d.middle[0],m=d.middle[d.middle.length-1],k=Math.sqrt((n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y));k==0&&(k=1);j=Math.sqrt((m.x-f.x)*(m.x-f.x)+(m.y-f.y)*(m.y-f.y));j==0&&(j=1);g==l&&(g=new G((n.x-e.x)/k,(n.y-e.y)/k));a==l&&(a=new G((m.x-f.x)/j,(m.y-f.y)/j))}d.first==l&&(d.first={nx:g.x*k*i,ny:g.y*k*i});d.last==l&&(d.last={nx:-a.x*j*i,ny:-a.y*j*i})}d.first.x=b.x;d.first.y=
b.y;d.last.x=c.x;d.last.y=c.y;b=K(d.middle);b.splice(0,0,K(d.first));b.push(K(d.last));return b}q=Di.prototype;q.pd=function(){var a=l,b=l,c=l,d=l,e=l,f=l,g=l,i=l;A(this.Xc,function(j){if(a==l||j.x<a)a=j.x;if(c==l||j.x>c)c=j.x;if(b==l||j.y<b)b=j.y;if(d==l||j.y>d)d=j.y;var k=j.x*0.707106781,n=j.y*0.707106781,j=k-n,k=n+k;if(e==l||j<e)e=j;if(g==l||j>g)g=j;if(f==l||k<f)f=k;if(i==l||k>i)i=k});return new H(a,b,c-a,d-b,{rx:e,ry:f,rw:g-e,rh:i-f})};q.Qe=ca("page");q.bg=ea("id");
q.Fe=function(){return this.id.replace(/\./g,"--").replace(/\~/g,"__")};q.ja=ea("tc");q.Gd=ea("tc");function Ki(a,b,c){a=a.tc;if(b.x<c.x)var d=b.x,e=c.x;else d=c.x,e=b.x;if(e<a.x||d>a.x+a.w)return!1;b.y<c.y?(d=b.y,b=c.y):(d=c.y,b=b.y);return b<a.y||d>a.y+a.h?!1:!0}
function Li(a,b,c){a=a.tc;if(b<a.x-20||b>a.x+a.w+20||c<a.y-20||c>a.y+a.h+20)return!1;var d=b*0.707106781-c*0.707106781,b=c*0.707106781+b*0.707106781;return d<a.data.rx-20||d>a.data.rx+a.data.rw+20||b<a.data.ry-20||b>a.data.ry+a.data.rh+20?!1:!0}
function Oi(a,b,c,d){var e=K(a.Xc);A(e,function(a){a.x/=c;a.y/=d});for(var a=[],f=0;f<e.length-1;f++){var g=e[f],i=e[f+1],j=Math.atan2(i.y-g.y,i.x-g.x)+b*Math.PI/2,g=new G(g.x+Math.cos(j),g.y+Math.sin(j)),i=new G(i.x+Math.cos(j),i.y+Math.sin(j));if(a.length>0&&(j=Tb(g,Db(g,i),a[a.length-1],Db(a[a.length-1],a[a.length-2])))){var k=Db(g,e[f]),j=Db(a[a.length-1],e[f]),k=Math.atan2(k.y,k.x),j=Math.atan2(j.y,j.x);if(b==-1)for(;k<j;)k+=Math.PI*2;else for(;j<k;)j+=Math.PI*2;j=(k+j)/2;a.push(new G(e[f].x+
Math.cos(j),e[f].y+Math.sin(j)))}a.push(g);a.push(i)}for(f=1;f<a.length-1;f++){g=a[f];i=a[f+1];for(b=0;b<f;b++)if(j=Vb(g,i,a[b],a[b+1]),j==!0){a.splice(b+1,f-b);f-=f-b;break}else if(j){a.splice(b+1,f-b,j);f-=f-b-1;break}}A(a,function(a){a.x*=c;a.y*=d});return a}
function Gi(a,b,c,d){if(!d)d=a.Xc;c=c||a.wk(d);b*=c;b<0&&(b=0);b>c&&(b=c);for(a=0;a<d.length-1;a++){var e=d[a+1].x-d[a].x,f=d[a+1].y-d[a].y,g=Math.max(0.0010,Math.sqrt(e*e+f*f));if(b<g)return new Rb(d[a].x+e/g*b,d[a].y+f/g*b,e/g,f/g);b-=g}b+=g;return new Rb(d[a-1].x+e/g*b,d[a-1].y+f/g*b,e/g,f/g)}
function Pi(a,b,c,d){if(!d)d=a.Xc;for(var a=a.wk(d),e=1E6,f=0,g=0,i=0;i<d.length-1;i++){var j=d[i+1].x-d[i].x,k=d[i+1].y-d[i].y,j=Math.max(0.0010,Math.sqrt(j*j+k*k)),k=Pb(b,d[i],d[i+1]);if(k.data.d<e)g=f+k.data.t*j,e=k.data.d;f+=j}g/=a;c&&g>=0.45&&g<=0.55&&(g=0.5);return g}q.wk=function(a){if(!a)a=this.Xc;for(var b=0,c=0;c<a.length-1;c++)b+=Lb(a[c],a[c+1]);return Math.max(1,b)};function Qi(a){for(var b=1;b<a.length-1;b++)Ub(a[b],a[b-1],a[b+1])<0.1&&(a.splice(b,1),b--);return a}
q.Ui=function(a){a==l&&(a={});var b=this.q.get("TextAreas"),c;for(c in b)b[c]&&c!="IsFullPropSettings"&&(a=fh(b[c].Value,this.q.get("Font"),"center",a));return a};
q.He=function(){var a=this.q.get("LineColor"),b=this.q.get("LineColor"),c=this.q.get("LineWidth"),d=this.page.q.get("FillColor"),e=this.q.get("Endpoint1"),f=this.q.get("Endpoint2"),g=K(this.Xc),i=[],d={StrokeColor:d,LineWidth:c+2},j={StrokeColor:a,LineWidth:c,Actions:[{Action:"move",x:g[0].x,y:g[0].y}]},k;if(k=this.q.get("Shape")=="curve")if(k=this.q.get("StrokeStyle")=="solid"){k=this.Vg;var n=this.id,m=0,p;for(p in k.gc[n])for(var s in k.gc[n][p])if(k.gc[n][p][s]!=l)for(var u=0;u<k.gc[n][p][s].length;u++)m++;
k=m==0}if(k){s=Ji(this,e,f);for(p=0;p<s.length-1;p++)j.Actions.push({Action:"curve",Control:[{x1:s[p].x+s[p].nx,y1:s[p].y+s[p].ny,x2:s[p+1].x-s[p+1].nx,y2:s[p+1].y-s[p+1].ny,x3:s[p+1].x,y3:s[p+1].y}]})}else for(p=k=0;p<g.length-1;p++)s=Db(g[p+1],g[p]),s=Math.sqrt(s.x*s.x+s.y*s.y),Ri(this,g[p],g[p+1],j.Actions,this.q.get("StrokeStyle"),this.q.get("LineWidth"),k,p,this.id,parseInt(this.document.q.get("LineJumps"),10)),k+=s;for(p=0;p<j.Actions.length-1;p++)j.Actions[p].Action=="move"&&j.Actions[p+1].Action==
"move"&&(j.Actions.splice(p,1),p--);d.Actions=K(j.Actions);for(p=0;p<d.Actions.length;p++)d.Actions[p].Action=="line"&&(d.Actions[p].Action="move");i.push(d);i.push(j);d=this.wk();j=Si(e.Style);if(j!=l){p=Gi(this,15/d);s=new Db(g[0],p);p=Math.max(1,Mb(s));s.x/=p;s.y/=p;e=j(g[0],s,a,c,b,e.Block!=l);for(p=0;p<e.length;p++)i.push(e[p])}j=Si(f.Style);if(j!=l){p=Gi(this,(d-15)/d);s=Db(g[g.length-1],p);p=Math.max(1,Mb(s));s.x/=p;s.y/=p;e=j(g[g.length-1],s,a,c,b,f.Block!=l);for(p=0;p<e.length;p++)i.push(e[p])}return Sd(i,
this.q.get("Rounding")||this.document.q.get("RoundCorners")/2)};q.yc=function(){if(!this.Rh())return l;var a=this.q.get("TextAreas"),b=[],c;for(c in a)if(!(c=="IsFullPropSettings"||a[c]==l)){var d=a[c];b.push({BoundingBox:Gh(this,d.Value,d.Location,d.Side),Text:cd(dd(d.Value,this.q.get("Font"))),Font:this.q.get("Font"),Background:d.Side==0?l:"transparent"})}return{id:this.id,Text:b,RenderData:this.lp()}};
q.search=function(a,b,c){var d={},e=this.q.get("TextAreas"),f="g";f+=b?"":"i";var b=c?"\\b"+a+"\\b":a,g;for(g in e)if(c=e[g]?e[g].fy:"")c=eval("("+c+")")||c,new XRegExp.iterate(c.t,XRegExp(b,f),function(b,c,f,n){d[e[g].name]||(d[g]=[]);d[g].push({name:g,start:n.lastIndex-a.length,end:n.lastIndex})});return d};
function Gh(a,b,c,d){function e(a){a=Gi(f,a,n,k);return new H(a.x-i/2,a.y-j/2,i,j)}var f=a;if(a.Dj==l)a.Dj={},a.q.$i(l,function(){f.Dj={}}),$(document).bind("fontLoaded",function(){f.Dj={}});var g=b+c+d;if(a.Dj[g])return a.Dj[g];var b=eh(b,a.q.get("Font"),new H(0,0,1E4,1)),i=b.width,j=b.height,k=d==0?K(a.Xc):Oi(a,d,i/2+8,j/2+4),n=a.wk(k),m=a.q.get("Endpoint1"),p=a.q.get("Endpoint2"),b=m.Block&&a.page.Jb(m.Block),d=p.Block&&a.page.Jb(p.Block),m=m.Padding||5,s=p.Padding||5,p=e(c);if(b)for(b=Ra(b.q.get("BoundingBox"),
m);zb(b,p)&&c<1;)c=Math.min(1,c+1/n),p=e(c);if(d)for(d=Ra(d.q.get("BoundingBox"),s);zb(d,p)&&c>0;)c=Math.max(0,c-1/n),p=e(c);return a.Dj[g]=p}
q.lp=function(){function a(a){a.Block&&b.push({Block:a.Block,x:a.x,y:a.y,r:5})}for(var b=this.He(),c,d=0;d<b.length;d++){if(b[d].FillColor)c=new I(b[d].FillColor,"#ffffffff"),b[d].FillColor=c.serialize(!0);if(b[d].StrokeColor)c=new I(b[d].StrokeColor,"#000000ff"),b[d].StrokeColor=c.serialize(!0);if(b[d].Actions!=l)for(c=0;c<b[d].Actions.length;c++){var e=b[d].Actions[c];e.x!=l&&(e.x=e.x.toFixed(1));e.y!=l&&(e.y=e.y.toFixed(1));if(e.Control!=l)for(var f=0;f<e.Control.length;f++)e.Control[f].x1=e.Control[f].x1.toFixed(1),
e.Control[f].y1=e.Control[f].y1.toFixed(1),e.Control[f].x2=e.Control[f].x2.toFixed(1),e.Control[f].y2=e.Control[f].y2.toFixed(1),e.Control[f].x3=e.Control[f].x3.toFixed(1),e.Control[f].y3=e.Control[f].y3.toFixed(1)}}a(this.q.get("Endpoint1"));a(this.q.get("Endpoint2"));return b};q.pb=function(){return this.q.get("Hidden")?!0:this.parent&&this.parent.pb()?!0:!1};q.Rh=function(){return this.Zg?!1:this.parent&&!this.parent.Rh()?!1:!0};q.Kg=ea("q");
function Ri(a,b,c,d,e,f,g,i,j,k){var n=g,m=[];if(k)for(var p in a.Vg.gc[j])if(a.Vg.gc[j][p][i]!=l)for(k=0;k<a.Vg.gc[j][p][i].length;k++)m.push(a.Vg.gc[j][p][i][k]);m.sort(function(a,c){return(a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y)-((c.x-b.x)*(c.x-b.x)+(c.y-b.y)*(c.y-b.y))});a=new G(c.x-b.x,c.y-b.y);i=Math.sqrt(a.x*a.x+a.y*a.y);a.x/=i;a.y/=i;j=Math.atan2(a.y,a.x);p=j-Math.PI;b.x>=c.x&&(p+=Math.PI*2);for(var s=b,k=0;k<m.length;k++)if(!(k>0&&Math.abs(m[k].x-m[k-1].x)<1&&Math.abs(m[k].y-m[k-1].y)<1)){var u=
new G(m[k].x-a.x*5,m[k].y-a.y*5);Ti(d,s,u,e,f,g);g+=Lb(u,s);d.push({Action:"move",x:u.x,y:u.y});d.push({Action:"curve",Control:Xb(m[k].x-5,m[k].y-5,10,10,p,j)});g+=10;s=new G(m[k].x+a.x*5,m[k].y+a.y*5)}g-n<i&&(Ti(d,s,c,e,f,g),g+=Lb(c,s))}
function Ti(a,b,c,d,e,f){var g=Db(c,b),i=Mb(g);if(i>0)if(g.x/=i,g.y/=i,d=="solid")a.push({Action:"line",x:c.x,y:c.y});else if(d=="dashed"){c=e*6;d=e*4;for(e=0;e<f+i;e+=c+d){var j=e,k=e+c;k<f||(j=Math.max(j,f),k=Math.min(k,f+i),a.push({Action:"move",x:b.x+g.x*(j-f),y:b.y+g.y*(j-f)}),a.push({Action:"line",x:b.x+g.x*(k-f),y:b.y+g.y*(k-f)}))}}else if(d=="dotted"){d=e*4;j=e/2;for(e=0;e<=f+i;e+=d)if(!(e<f)){var k=b.x+g.x*(e-f),n=b.y+g.y*(e-f);a.push({Action:"move",x:k+j,y:n});a.push({Action:"curve",Control:Xb(k-
j,n-j,j*2,j*2,0,Math.PI*2)})}a.push({Action:"move",x:c.x,y:c.y})}}function Si(a){var b=l;A(Ui,function(c){if(c.kk[a])return b=c.kk[a],!1});return b}
var Ui=[{name:"default",label:l,scale:1,kk:{None:function(a,b,c,d,e,f){if(!f)return[];c={StrokeColor:c,LineWidth:d,NoRounding:!0,Actions:[]};c.Actions.push({Action:"move",x:a.x,y:a.y});c.Actions.push({Action:"line",x:a.x+b.x*3,y:a.y+b.y*3});return[c]},Arrow:function(a,b,c,d,e){c={StrokeColor:c,LineWidth:d,FillColor:e,NoRounding:!0,Actions:[]};b=Math.atan2(b.y,b.x);c.Actions.push({Action:"move",x:a.x,y:a.y});c.Actions.push({Action:"line",x:a.x+Math.cos(b+2.827431)*15,y:a.y+Math.sin(b+2.827431)*15});
c.Actions.push({Action:"line",x:a.x+Math.cos(b-2.827431)*15,y:a.y+Math.sin(b-2.827431)*15});c.Actions.push({Action:"close"});return[c]},"Hollow Arrow":function(a,b,c,d,e){a=Ui[0].kk.Arrow(a,b,c,d,e);a[0].FillColor="rgb(255,255,255)";return a},"Open Arrow":function(a,b,c,d){c={StrokeColor:c,LineWidth:d,NoRounding:!0,Actions:[]};b=Math.atan2(b.y,b.x);c.Actions.push({Action:"move",x:a.x+Math.cos(b+3.14159*0.83)*20,y:a.y+Math.sin(b+3.14159*0.83)*20});c.Actions.push({Action:"line",x:a.x,y:a.y});c.Actions.push({Action:"line",
x:a.x+Math.cos(b-3.14159*0.83)*20,y:a.y+Math.sin(b-3.14159*0.83)*20});return[c]}}}];
Di.prototype.Jg=function(a,b){function c(b){return k.x+k.w*(b-a.x)/(a.w||1)}function d(b){return k.y+k.h*(b-a.y)/(a.h||1)}function e(a){var b=i.q.get(a,!0);if((b.Block==l||j.Jb(b.Block)==l)&&(b.Line==l||j.Ge(b.Line)==l))g[a]=K(b),g[a].x=c(b.x),g[a].y=d(b.y)}if(this.ta)return{};var f={},g={},i=this,j=this.page,k=xb(a,b),n=k.w/a.w,m=k.h/a.h;e("Endpoint1");e("Endpoint2");if(this.q.get("Shape")=="elbow"){if(n=this.q.get("ElbowPoints"))A(n,function(a){a.x=c(a.x);a.y=d(a.y)}),g.ElbowPoints=n;m=this.q.get("XPlanes");
if(m.length>0){for(n=0;n<m.length;n++)m[n]=c(m[n]);g.XPlanes=m}m=this.q.get("YPlanes");if(m.length>0){for(n=0;n<m.length;n++)m[n]=d(m[n]);g.YPlanes=m}}else if(this.q.get("Shape")=="curve"){var p=this.q.get("ControlPoints");p.first&&(p.first.nx*=n,p.first.ny*=m);if(p.middle)for(var s=0;s<p.middle.length;s++)p.middle[s].x=c(p.middle[s].x),p.middle[s].y=d(p.middle[s].y),p.middle[s].nx*=n,p.middle[s].ny*=m;p.last&&(p.last.nx*=n,p.last.ny*=m);g.ControlPoints=p}f[this.id]=g;return f};
Di.prototype.vk=function(a,b){function c(a){var b=f.q.get(a,!0);if((b.Block==l||g.Jb(b.Block)==l)&&(b.Line==l||g.Ge(b.Line)==l))e[a]=K(b),e[a].x=(b.x-i.x)*j-(b.y-i.y)*k+i.x,e[a].y=(b.y-i.y)*j+(b.x-i.x)*k+i.y}if(this.ta)return{};var d={},e={},f=this,g=this.page,i=Xa(a),j=Math.cos(b),k=Math.sin(b);c("Endpoint1");c("Endpoint2");if(this.q.get("Shape")!="elbow"&&this.q.get("Shape")=="curve"){var n=this.q.get("ControlPoints");if(n.first)n.first.nx=n.first.nx*j-n.first.ny*k,n.first.ny=n.first.ny*j+n.first.nx*
k;if(n.middle)for(var m=0;m<n.middle.length;m++)n.middle[m]={x:(n.middle[m].x-i.x)*j-(n.middle[m].y-i.y)*k+i.x,y:(n.middle[m].y-i.y)*j+(n.middle[m].x-i.x)*k+i.y,nx:n.middle[m].nx*j-n.middle[m].ny*k,ny:n.middle[m].ny*j+n.middle[m].nx*k};if(n.last)n.last.nx=n.last.nx*j-n.last.ny*k,n.last.ny=n.last.ny*j+n.last.nx*k;e.ControlPoints=n}d[this.id]=e;return d};t("lucid.model.Line",Di);Di.prototype.getProperties=Di.prototype.Kg;Di.prototype.getId=Di.prototype.bg;Di.prototype.getCleanId=Di.prototype.Fe;
Di.prototype.getTotalLength=Di.prototype.wk;Di.prototype.getBoundingBox=Di.prototype.ja;Di.prototype.hitTestBoundingBox=Di.prototype.Gd;Di.addEndpointStyles=function(a,b,c,d){a=="default"||!na(a)||!na(b)||a.length<3||b.length<3||Ui.push({name:a,label:b,scale:d||1,disabled:!0,kk:c})};Di.enableEndpointStyles=function(a){a=="default"||!na(a)||a.length<3||A(Ui,function(b){if(b.name==a)return b.disabled=!1})};
Di.disableEndpointStyles=function(a){a=="default"||!na(a)||a.length<3||A(Ui,function(b){if(b.name==a)return b.disabled=!0,!1})};function Vi(a,b){var c=this;this.page=this.page=a;this.C=b;this.ya=l;this.xc={};this.Ha=!1;this.scale=1;this.Ct="";this.C.q.$i(l,function(){c.Ha=!0});Hi(this.C,function(){Wi(c.C.Vg,c.C)});this.C.q.$i("ZOrder",function(){Wi(c.C.Vg,c.C)});this.Vd($(document),"blockRendered",function(a,b){if(b==c.C.q.get("Endpoint1",!0).Block||b==c.C.q.get("Endpoint2",!0).Block)c.Ha=!0})}q=Vi.prototype;q.Vd=function(a,b,c){if(this.Hb==l)this.Hb=[];this.Hb.push([a,b,c]);a.bind(b,c)};
q.destroy=function(){A(this.Hb,function(a){a[0].unbind(a[1],a[2])});this.Hb=[];for(var a in this.xc)this.xc[a].destroy();this.xc={};if(this.ya)this.ya.destroy(),this.ya=l};
q.gg=function(a,b){if(this.C.pb())return l;var c=this.C.ja();if(a<c.x-5||a>c.x+c.w+5||b<c.y-5||b>c.y+c.h+5)return l;var c=new G(a,b),d=this.C.q.get("Endpoint1"),e=this.C.q.get("Endpoint2"),e=new G(e.x,e.y);if(Nb(c,new G(d.x,d.y))<225||Nb(c,e)<225)return l;d=Gi(this.C,Pi(this.C,c));return Nb(c,d)<25?(c=this.page.dc(d,2),d=Gi(this.C,Pi(this.C,c)),gi(this.C,d)):l};
q.Za=function(a,b){if(this.C.pb())return l;var c=this,d=this.C.q.get("TextAreas",!0),e;for(e in d)if(qa(d[e])){var f=Gh(this.C,d[e].Value,d[e].Location,d[e].Side);Ya&&(f=Ra(f,20));if(Fb(new G(a,b),f))return fi(this.C,o(),"text",e,function(a){return function(){c.Ed(a)}}(e))}if(!Li(this.C,a,b))return l;d=this.C.q.get("Endpoint1",!0);e=this.C.q.get("Endpoint2",!0);if(Lb(new G(a,b),d)<25)return hi(this.C,"Endpoint1",d);else if(Lb(new G(a,b),e)<25)return hi(this.C,"Endpoint2",e);for(var f=(d.Block==l||
this.C.page.Jb(d.Block)==l)&&(e.Block==l||this.C.page.Jb(e.Block)==l)&&(d.Line==l||this.C.page.Ge(d.Line)==l)&&(e.Line==l||this.C.page.Ge(e.Line)==l),g=this.C.Xc,i=0;i<g.length-1;i++)if(Ub(new G(a,b),g[i],g[i+1])<10){if(i>0&&i<g.length-2&&!this.C.q.get("ElbowPoints",!0)){var j=Ii(this.C,d,e),k=Ii(this.C,e,d);if(g[i].x==g[i+1].x){var n=Math.max(g[i-1].x,g[i].x,g[i+2].x),m=Math.min(g[i-1].x,g[i].x,g[i+2].x);g[i].x==m&&g[i-1].x>m&&g[i+2].x>m&&(m=0);g[i].x==n&&g[i-1].x<n&&g[i+2].x<n&&(n=1E4);if(n!=m)return ii(this.C,
d,e,j,k,g,i,m,n)}else if(g[i].y==g[i+1].y&&(n=Math.max(g[i-1].y,g[i].y,g[i+2].y),m=Math.min(g[i-1].y,g[i].y,g[i+2].y),g[i].y==m&&g[i-1].y>m&&g[i+2].y>m&&(m=0),g[i].y==n&&g[i-1].y<n&&g[i+2].y<n&&(n=1E4),n!=m))return ji(this.C,d,e,j,k,g,i,m,n)}return f?new fi(this.C):ki(this.C)}return l};
q.xj=function(a){if(this.C.pb())return!1;var b=this.C.ja();if(a.x+a.w<b.x||a.y+a.h<b.y||a.x>b.x+b.w||a.y>b.y+b.h)return!1;for(var b=this.C.Xc,c=1;c<b.length;c++)if(b[c-1].x<a.x&&b[c].x<a.x?0:b[c-1].y<a.y&&b[c].y<a.y?0:b[c-1].x>a.x+a.w&&b[c].x>a.x+a.w?0:b[c-1].y>a.y+a.h&&b[c].y>a.y+a.h?0:b[c-1].x>=a.x&&b[c-1].x<=a.x+a.w&&b[c-1].y>=a.y&&b[c-1].y<=a.y+a.h&&b[c].x>=a.x&&b[c].x<=a.x+a.w&&b[c].y>=a.y&&b[c].y<=a.y+a.h||Vb(b[c-1],b[c],new G(a.x,a.y),new G(a.x+a.w,a.y))||Vb(b[c-1],b[c],new G(a.x+a.w,a.y),
new G(a.x+a.w,a.y+a.h))||Vb(b[c-1],b[c],new G(a.x+a.w,a.y+a.h),new G(a.x,a.y+a.h))||Vb(b[c-1],b[c],new G(a.x,a.y+a.h),new G(a.x,a.y)))return!0;return!1};
q.Ed=function(a){var b=this.C.q.get("TextAreas")[a],c=this,d=this.xc[a];if(d==l){var e=this.C.document.$.K.viewport;e.J.bind("afterRender.editText",function(){c.Ed(a);e.J.unbind("afterRender.editText")});return l}if(d.hasFocus)return l;this.ya.J.parents("div[id^=SuperCanvas]").append(this.ya.J);d.view=this;ah(d,b.WantReturn,function(){if(d.content.text==""){var b={};b[a]=l;d.view.C.document.ba(new N(M,{id:d.view.C.id,Property:"TextAreas",Value:b}))}});d.select();setTimeout(function(){d.select()},
1);return d};
function Xi(a,b,c,d){V("line","placeText called");if(c==l)a.xc[b]&&(a.xc[b].destroy(),delete a.xc[b]);else{V("line","placeText: past first check");var e=a.xc[b];if(e==l){V("line","placeText: editor == null");var f=a.C.document.q.get("Language");a.xc[b]=new Wg(1,1,f);e=a.xc[b];e.Bp=a.C.id;e.oa[0].canvas.J.css("overflow","visible");var g=!1;e.bind("change",function(c){!g&&!a.C.document.jg&&(g=!0,a.C.document.Aa(),a.C.document.ba(new N(yg,{id:a.C.id,Key:b,Diff:c.action})),setTimeout(function(){a.C.document.xa()},1),
g=!1)});e.bind("prerender",function(){if(e.hasFocus){var b=Gh(a.C,e.content.serialize(),c.Location,c.Side);e.oa[0].width=b.w;e.oa[0].height=b.h}});a.Vd($(document),"fontLoaded",function(){a.Ha=!0;e.vl=l;e.wu=l;a.C.document.$.K.viewport.ia()});a.ya.J.append(e.oa[0].J)}f=Gi(a.C,c.Location);f.x-=d.x;f.y-=d.y;var i=a.C.page,i=c.Side==0?og(i.q.get("FillColor")).tb:"transparent",j=a.C.q.get("Endpoint1"),k=a.C.q.get("Endpoint2"),f=[c.Value,a.scale,f,c.Side,i,j.Padding||5,k.Padding||5,qc(xh[a.C.id]),R.lc,
R.vc,R.Xb];if(!Na(e.vl,f)||c.Side!=0){V("line","placeText: data different");V("line",[f,e.vl]);e.vl=K(f);e.oa[0].canvas.J.css({background:i});f=nd([c.Value,a.scale]);if(e.wu!=f)e.wu=f,V("line","placeText: data2 different"),f=eh(c.Value,a.C.q.get("Font"),new H(0,0,1E4,1)),e.scale=a.scale,e.oa[0].width=f.width,e.oa[0].height=f.height,e.oa[0].Ng="center",e.oa[0].vAlign="top",e.content=dd(c.Value,a.C.q.get("Font")),e.ia();f=Gh(a.C,c.Value,c.Location,c.Side);e.oa[0].J.css({position:"absolute",left:(f.x-
d.x)*a.scale+a.ya.padding+"px",top:(f.y-d.y)*a.scale+a.ya.padding+"px",width:e.oa[0].width*a.scale+a.ya.padding+"px",height:e.oa[0].height*a.scale+a.ya.padding+"px"})}}}
q.Ja=function(a,b,c,d,e){this.scale=b;var f=this.C.ja(),g=this;this.ya==l?(this.ya=new Je(Math.round(f.x*b)+c,Math.round(f.y*b)+d,Math.round(f.w*b),Math.round(f.h*b),Math.round(b*24)),this.ya.Rm=this.C.id,Ie(a,function(a){return a.Rm==g.C.id})):this.ya.move(Math.round(f.x*b)+c,Math.round(f.y*b)+d,Math.round(f.w*b),Math.round(f.h*b),Math.round(b*24));var d=this.page.Rg(this.C,!0),i=Ge(a,this.ya)||this.Ha;!i&&this.C.Vg.Ml[this.C.id]&&(i=!0);var a=this.C.q.get("Endpoint1",!0),c=this.C.q.get("Endpoint2",
!0),j=[a.x,a.y,c.x,c.y,b,e,this.C.document.q.get("RoundCorners",!0),this.C.document.q.get("LineJumps",!0),d,qc(xh[this.C.id])];i||(i=!Na(j,this.Ct));if(i){this.Ha=!1;this.Ct=K(j);var i=this.C.He(),k=this.ya.getContext();k.scale(b,b);k.translate(-Math.round(f.x*b)/b,-Math.round(f.y*b)/b);if(e||d)for(b=0;b<i.length;b++)if(i[b].StrokeColor)k.strokeStyle=config.handleColor,k.lineWidth=i[b].LineWidth+4,k.globalAlpha=0.25,k.beginPath(),k.yd(i[b].Actions),k.stroke(),k.globalAlpha=1;for(b=0;b<i.length;b++)if(i[b].Image!=
l)try{k.drawImage(i[b].Image,i[b].BoundingBox.x,i[b].BoundingBox.y,i[b].BoundingBox.w,i[b].BoundingBox.h)}catch(n){k.fillStyle="#aaaaaa",k.fillRect(i[b].BoundingBox.x,i[b].BoundingBox.y,i[b].BoundingBox.w,i[b].BoundingBox.h)}else{if(i[b].FillColor)k.fillStyle=pg(i[b].FillColor,"#ffffffff"),k.beginPath(),k.yd(i[b].Actions),k.fill();if(i[b].StrokeColor)k.strokeStyle=pg(i[b].StrokeColor,"#000000ff"),k.lineWidth=i[b].LineWidth,k.beginPath(),k.yd(i[b].Actions),k.stroke()}$d||(b=function(a){if(a.Block){var b=
g.C.document.ra(a.Block);if(b){var c=g.page.Ya(b);k.save();k.beginPath();k.arc(a.x,a.y,5,0,Math.PI*2,!0);k.clip();if(a=b.q.get("Rotation",!0))b=b.ja(),k.translate(b.x,b.y),k.translate(b.w/2,b.h/2),k.rotate(a),k.translate(-b.w/2,-b.h/2),k.translate(-b.x,-b.y);Uh(c,k);k.restore()}}},b(a),b(c));var b=this.C.q.get("TextAreas",!0),m;for(m in b)V("line","dragging text key: "+this.hm),m!="IsFullPropSettings"&&m!=this.hm&&(V("line","place line with key: "+m),V("line","place line with key obj: "+b[m]),Xi(this,
m,b[m],f));this.search(xh[this.C.id])}};
q.search=function(a){a||(a=[]);for(var b={},c=0;c<a.length;c++){var d=a[c],e=this.xc[d[0].ue];b[d[0].ue]=!0;var f=e.rc().Bc;e.rc().Bc=[];if(d){for(var g in d)e.rc().Bc.push(d[g]);if(R.lc!=h&&zh[this.C.page.id]&&xh[this.C.id]&&this.C.page==R.Yb&&zh[this.C.page.id][R.lc]&&zh[this.C.page.id][R.lc][0][0].item==this.C.id)this.xc[a[R.vc][0].ue].Xb=R.Xb}(!Na(f,e.rc().Bc)||e.Xb!=h)&&e.ia()}for(var i in this.xc)if(!(i in b)&&(e=this.xc[i],e.rc().Bc&&e.rc().Bc.length>0))e.rc().Bc=[],e.ia()};
function Yi(a){var b=[];A(Ui,function(c,d){c.disabled||(d>0&&b.push({separator:!0}),F(c.kk,function(d){d=="None"?b.unshift({label:"None",value:d}):b.push({mb:{R:"canvas",attr:{height:13,width:32},css:{display:"block"},create:function(b){var b=fb(b).getContext(),g=!!a,i=c.scale,j=3,k=Si(d);if(k){j==l&&(j=3);var n=b.canvas;i*=d=="Arrow"||d=="Hollow Arrow"?0.75:0.5;var m=n.height,n=(n.width-2*j)/i,k=k(new G(0,0),new G(-1,0),"rgb(0,0,0)",1/i,"rgb(0,0,0)",!1);b.translate(j,m/2);b.scale(i,i);g&&(b.translate(n,
0),b.scale(-1,1));b.strokeStyle="#000";b.lineWidth=1/i;b.moveTo(0,0);b.lineTo(n,0);b.stroke();for(g=0;g<k.length;g++){if(k[g].FillColor)b.fillStyle=k[g].FillColor,b.beginPath(),b.yd(k[g].Actions),b.fill();if(k[g].StrokeColor)b.strokeStyle=k[g].StrokeColor,b.lineWidth=k[g].LineWidth,b.beginPath(),b.yd(k[g].Actions),b.stroke()}}}},value:d})}))});return b}Vi.prototype.editText=Vi.prototype.Ed;function Zi(a,b){this.page=this.page=a;this.model=this.C=b;this.ya=l;this.Ha=!1;this.Hf="";this.rotation=0;this.xd=l}q=Zi.prototype;q.destroy=function(){if(this.ya)this.ya.destroy(),this.ya=l};
q.hg=function(a,b,c,d){var e=this.C.ja();if(a<e.x-50||a>e.x+e.w+50||b<e.y-50||b>e.y+e.h+50)return l;var a=new G(a,b),b=config.resizeHandleSize,f=1/this.C.document.$.K.viewport.scale;if(d&&(d=f*(b/2+1),Ya&&(d*=3),Nb(new G(e.x+e.w/2,e.y-f*(2*b+d)),a)<2*d*d))return ai([this.C],0);if(!c){c=f*b;Ya&&(c*=3);Ya&&(e=Ra(e,c-f*b));if(Lb(a,new G(e.x,e.y))<c)return bi([this.C]);if(Lb(a,new G(e.x+e.w,e.y))<c)return ci([this.C]);if(Lb(a,new G(e.x+e.w,e.y+e.h))<c)return ei([this.C]);if(Lb(a,new G(e.x,e.y+e.h))<c)return di([this.C])}return l};
q.Za=function(a,b,c,d,e){if(this.C.pb())return l;var f=this.page,g=e||!!this.C.ta,i=l;!g&&!this.C.Jc&&d&&(i=this.hg(a,b,c,d));if(i==l){d=this.C.ja();if(a<d.x||b<d.y||a>d.x+d.w||b>d.y+d.h)return l;this.C.Uo(function(){var d=(f||this.document.$.K.viewport).Ya(this).Za(a,b,c,!1,g);if(d!=l)return i=d,"stop"});if(i&&g)i=li(this.C);else if(i&&oc(["linkpoint"],i.action)<0){if(!i.item.Mv)i.click=l,i.Fc=l,i.fl=l,i.cursor="move";i.item=this.C;i.action="move";i.Qd=l}}return i};
q.xj=function(a){if(this.C.pb())return!1;var b=this.C.Gd();return!(b.x>a.x+a.w||b.y>a.y+a.h||b.x+b.w<a.x||b.y+b.h<a.y)};q.Ja=function(){this.C.pd()};q.ia=function(){this.Ha=!0};q.Ed=o();q.gg=o();q.search=o();function $i(a,b){yi.call(this,a,b);var c=this;this.Xs=!0;this.q.ka("IsLayer",1,l,function(a,b){c.Xs=!!b})}Ca($i,yi);function aj(a,b){Zi.call(this,a,b)}Ca(aj,Zi);aj.prototype.hg=fa(l);aj.prototype.Za=function(a,b,c,d,e){var f=e||!!this.C.ta;if(this.C.pb()||f)return l;d=this.C.ja();if(a<d.x||b<d.y||a>d.x+d.w||b>d.y+d.h)return l;var g=this.page,i=l;this.C.Uo(function(){var d=g.Ya(this).Za(a,b,c,!1,f);if(d!=l)return i=d,"stop"});return i};function bj(a,b,c){this.name=a;this.il=this.value=l;this.oq=[];this.nq=[];this.global=c}bj.prototype.get=function(){return this.il!=l&&window.lucidRendering?this.il:this.value};bj.prototype.set=function(a){window.lucidRendering?this.il=a:this.value=a};function zi(a){this.q={};cj.push(this);this.Fn=[];this.id=a}function dj(a){for(var b in a.q)if(a.q[b].il!=l)a.set(b,a.q[b].value),a.q[b].il=l}q=zi.prototype;q.ka=function(a,b,c,d,e){this.q[a]=new bj(a,0,e);this.Rs(a,c);this.$i(a,d);this.set(a,b);cj.push(this)};
q.Rs=function(a,b){b!=l&&this.q[a].oq.push(b)};q.$i=function(a,b){b!=l&&(a==l?this.Fn.push(b):this.q[a].nq.push(b))};function ni(a,b){b!=l&&ib(a.Fn,b)}q.get=function(a,b){var c=this.q[a];if(c==l)return l;c=c.get();return!b&&qa(c)?K(c):c};
q.set=function(a,b,c){cj.push(this);var d=this.q[a];if(d==l)return this.ka(a,b),!0;d.global&&(ej=!0);for(a=0;a<d.oq.length;a++)b=d.oq[a].call(d,b);var e=d.get();qa(b)&&!c?d.set(K(b)):d.set(b);for(a=0;a<d.nq.length;a++)d.nq[a].call(d,e,b);for(a=0;a<this.Fn.length;a++)this.Fn[a].call(d,e,b);return!0};q.Nb=function(){var a={},b;for(b in this.q)a[b]=this.get(b);return a};var cj=[],ej=!1;function fj(){if(ej)return!0;for(var a={},b=0;b<cj.length;b++)cj[b].id!=l?a[cj[b].id]=!0:a.doc=!0;return a}
zi.prototype.set=zi.prototype.set;zi.prototype.get=zi.prototype.get;zi.prototype.register=zi.prototype.ka;zi.prototype.hookPropertyPreSave=zi.prototype.Rs;zi.prototype.hookPropertyPostSave=zi.prototype.$i;zi.prototype.getAllProperties=zi.prototype.Nb;function uh(){}var gj={},hj={},ij={};function jj(a,b,c,d){var e=gj[a];if(!e){if(!d)return $.ajax({type:"GET",url:"/documents/classPlugin/"+encodeURIComponent(a),async:!1,success:function(a){J.set("client.loadPlugin",["/js/plugins/v2/"+a,a,a])}}),jj(a,b,c,!0);c.title=a}b=new e(b);b.className=a;b.className=a;b.document=c;b.document=c;b.je=l;b.ke=l;return b}uh.prototype.Qe=function(a){if(this.page=this.page=a)this.ke=this.je=l};
function kj(a,b,c,d,e,f,g,i,j){b in a.la?(b=a.la[b],b.tc=d,b.boundingBox=d,b.Ou=e,b.readOnly=f,b.textAlign=g,b.ul=i,b.rotation=j,b.rotation=j):(this.index=hc(a.la),a.la[b]=this,a.q.ka(b,c,function(b){return b===l?l:bh(b,a.q.get("Font"))}),this.name=b,this.boundingBox=this.tc=d,this.Ou=e,this.readOnly=f,this.textAlign=g,this.ul=i,this.rotation=this.rotation=j)}kj.prototype.xx=ca("textAlign");
function lj(a,b){function c(){d.page&&d.page.qd(function(){var a=this.q.get("Endpoint1",!0),c=this.q.get("Endpoint2",!0);a.Block==b&&this.q.set("Endpoint1",d.Ac(new G(a.LinkX,a.LinkY)),!0);c.Block==b&&this.q.set("Endpoint2",d.Ac(new G(c.LinkX,c.LinkY)),!0)})}a.id=b;a.sa=!0;a.isBlock=!0;a.q=new zi(b);a.page=l;a.la={};a.cj=!1;a.ta=!1;a.Zf=!1;a.Je=!1;var d=a;a.q.ka("BoundingBox",{x:0,y:0,w:160,h:120},function(a){return a==l?new H(0,0,0,0):a},function(a,b){if(d.je)d.je.w=b.w,d.je.h=b.h;try{c()}catch(g){}});
a.q.ka("LineColor","#000000");a.q.ka("FillColor","#ffffff");a.q.ka("LineWidth",2,function(a){a=parseFloat(a);return!isNaN(a)?a:l});a.q.ka("ZOrder",0,l,function(a,b){d.oh=b});a.q.ka("TextAlign",config.defaultHAlign);a.q.ka("TextVAlign",config.defaultVAlign);a.q.ka("Font","Liberation Sans");a.q.ka("Link","");a.q.ka("Opacity",100);a.q.ka("Lock",0,function(a){return!parseInt(a,10)?0:1},function(a,b){d.ta=!!parseInt(b,10)});a.q.ka("InsetMargin",0);a.q.ka("Rotation",0,l,function(){try{c()}catch(a){}});
a.q.ka("ConPro",0,l,function(a,b){d.Zf=!!b});a.q.ka("BG",0,l,function(a,b){d.Je=!!b})}q=uh.prototype;q.xv=function(a){var b=[],c;for(c in this.la)c in a||b.push(c);var d=this;A(b,function(a){delete d.la[a]})};q.dt=function(){var a=this.q.get("Shadow"),b=this.q.get("LineWidth");return Math.max(4,2*b,a?Math.max(Math.abs(a.x),Math.abs(a.y))+a.b*1.5:0)};q.Kg=ea("q");
q.Ac=function(a,b){var c=this.q.get("BoundingBox",!0),d=this.q.get("Rotation"),e=new G(c.x+c.w*a.x,c.y+c.h*a.y);d&&!b&&(e=Za(e,new G(c.x+c.w/2,c.y+c.h/2),d));return e};q.bg=ea("id");q.Fe=function(){return this.id.replace(/\./g,"--").replace(/\~/g,"__")};q.ja=function(a){return!a&&this.je?nb(this.je):this.q.get("BoundingBox")};q.Gd=function(a){var a=!a&&this.je&&nb(this.je)||this.q.get("BoundingBox",!0),b=this.q.get("Rotation",!0);b&&(a=db(a,b));return a};q.cg=function(){return[]};q.zr=o();q.Uv=ea("controls");
q.ft=o();q.Jp=function(){return{}};function mj(a,b){if(a.q.get("Rotation")==0){if(b.x==0.5&&b.y<0.5)return new G(0,-1);if(b.x==0.5&&b.y>0.5)return new G(0,1);if(b.y==0.5&&b.x<0.5)return new G(-1,0);if(b.y==0.5&&b.x>0.5)return new G(1,0)}var c=a.Ac(new G(0.5,0.5)),d=a.Ac(b),c=Db(d,c),d=Mb(c);return new G(c.x/d,c.y/d)}
function ri(a){for(var b=[],c=[],d=0,e=0,a=a.He(l,!0),f=0;f<a.length;f++)if(a[f].Image){var g=a[f].BoundingBox;b.push([new G(g.x,g.y),new G(g.x+g.w,g.y),new G(g.x+g.w,g.y+g.h),new G(g.x,g.y+g.h)])}else for(g=0;g<a[f].Actions.length;g++){var i=a[f].Actions[g];if(i.Action=="move")d=i.x,e=i.y,c=[new G(d,e)];else if(i.Action=="line")c.push(new G(i.x,i.y)),d=i.x,e=i.y;else if(i.Action=="curve"){d=[{x:d,y:e,nx:i.Control[0].x1-d,ny:i.Control[0].y1-e}];for(e=0;e<i.Control.length;e++)d.push({x:i.Control[e].x3,
y:i.Control[e].y3,nx:i.Control[e].x3-i.Control[e].x2,ny:i.Control[e].y3-i.Control[e].y2});e=Sb(d,fa(10));for(d=0;d<e.length;d++)c.push(e[d]);d=e[e.length-1].x;e=e[e.length-1].y}else if(i.Action=="close")d=c[0].x,e=c[0].y,b.push(c),c=[new G(d,e)]}return b}q.Ui=function(a){a==l&&(a={});for(var b in this.la)a=fh(this.q.get(b),this.q.get("Font"),this.la[b].textAlign||this.q.get("TextAlign"),a);return a};q.He=function(){return[]};
q.yc=function(){if(!this.Rh())return l;var a=this.q.get("BoundingBox"),b=[],c;for(c in this.la){var d=this.la[c].tc(this.ja());d&&b.push({BoundingBox:d,Name:c,Text:cd(dd(this.q.get(this.la[c].name),this.q.get("Font"))),Align:this.la[c].textAlign||this.q.get("TextAlign"),VAlign:this.la[c].ul||this.q.get("TextVAlign"),Rotation:this.la[c].rotation,obstacles:this.Og(d,!0),Font:this.q.get("Font"),TextTransform:this.q.get("TextTransform")})}return{id:this.id,Text:b,RenderData:this.lp(),Crop:this.q.get("Crop"),
BoundingBox:a,Opacity:this.q.get("Opacity"),Shadow:this.q.get("Shadow"),Link:this.Ks(),Rotation:this.q.get("Rotation")}};
q.lp=function(){var a=this.He("pdf"),b,c;A(a,function(a){if(a.FillColor)if(qa(a.FillColor))A(a.FillColor.cs,function(e,g){try{b=new I(e.c,"#ffffffff"),c=b.serialize(!0),c.t=e.t,delete a.FillColor.id,delete a.FillColor.base,a.FillColor.cs[g]=c}catch(f){}});else if(a.FillColor.toLowerCase()!="transparent")try{b=new I(a.FillColor,"#ffffffff"),a.FillColor=b.serialize(!0)}catch(e){}else a.FillColor=l;if(a.StrokeColor)try{b=new I(a.StrokeColor,"#ffffffff"),a.StrokeColor=b.serialize(!0)}catch(f){}a.Image&&
(a.Image=a.Image.ou?a.Image.ou:a.Image.src);if(a.Actions!=l)for(var g=0;g<a.Actions.length;g++){var i=a.Actions[g];i.x!=l&&(i.x=i.x.toFixed(1));i.y!=l&&(i.y=i.y.toFixed(1));if(i.Control!=l)for(var j=0;j<i.Control.length;j++)i.Control[j].x1=i.Control[j].x1.toFixed(1),i.Control[j].y1=i.Control[j].y1.toFixed(1),i.Control[j].x2=i.Control[j].x2.toFixed(1),i.Control[j].y2=i.Control[j].y2.toFixed(1),i.Control[j].x3=i.Control[j].x3.toFixed(1),i.Control[j].y3=i.Control[j].y3.toFixed(1)}});a.splice(0,0,{BoundingBox:this.ja()});
return a};q.Ks=function(){var a=this.q.get("Link");return a?(a=a.match(/^hotspot:/)?a.substr(8):a,a.match(/^ext:/)?a.substr(4):a.match(/^\[/)?"states://"+a:"page://"+a):l};q.Rv=function(){for(var a in this.la)return a;return l};function ti(a,b){for(var c in a.la){if(b==0)return c;b--}return l}
q.search=function(a,b,c){var d=this,e={},f="g";f+=b?"":"i";var b=c?"\\b"+a+"\\b":a,g;for(g in d.la)c=d.q.get(d.la[g].name),c=eval("("+c+")")||c,XRegExp.iterate(c.t,XRegExp(b,f),function(b,c,f,n){e[d.la[g].name]||(e[d.la[g].name]=[]);e[d.la[g].name].push({name:d.la[g].name,start:n.lastIndex-a.length,end:n.lastIndex})});return e};
q.Og=function(a,b){if(!this.q.get("TextWrap"))return[];var c=this.page?this.page.Oa:this.document.Oa,d=[];if(hc(c)<=1)return d;var e=this.ja(),f=Xa(e),g=this.q.get("Rotation")||0,e=a,i;for(i in c){var j=c[i].q.get("Wrap");if(j&&this.oh<c[i].oh){var k=c[i].ja(),n=Xa(k),m=c[i].q.get("Rotation")||0,p=l;k.data={wrap:j};if(g||m){if(p=Za(n,f,-g),k.x+=p.x-n.x,k.y+=p.y-n.y,p=db(k,g-m,p),p=Ra(p,10),zb(e,p))b||(p.x-=e.x,p.y-=e.y),p.data={wrap:j},d.push(p)}else if(k=Ra(k,10),zb(e,k))b||(k.x-=e.x,k.y-=e.y),k.data=
{wrap:j},d.push(k)}}return d};q.Cr=fa(!0);q.aw=ea("la");q.pb=function(){return this.q.get("Hidden")?!0:this.parent&&this.parent.pb()?!0:this.hide?!0:!1};q.Rh=function(){return this.Zg?!1:this.parent&&!this.parent.Rh()?!1:!0};function nj(a){var b=[];a.qi||(b.push("y"),b.push("h"));a.Oh||(b.push("x"),b.push("w"));return b}
q.Jg=function(a,b){if(b.x==0&&b.y==0&&b.w==0&&b.h==0)return{};if(this.ta)return{};var c={},d={};if(a==l)d.BoundingBox=xb(b,this.ja());else{var e=this.ja(),f=xb(a,b);d.BoundingBox=new H(f.x+f.w*(e.x-a.x)/a.w,f.y+f.h*(e.y-a.y)/a.h,e.w*(f.w/a.w),e.h*(f.h/a.h))}d.BoundingBox.w=Math.max(d.BoundingBox.w,this.minWidth||20);d.BoundingBox.h=Math.max(d.BoundingBox.h,this.minHeight||20);c[this.id]=d;return c};
q.vk=function(a,b){if(b==0||this.ta)return{};var c={},d={};if(a!=l){d.BoundingBox=this.ja();var e=Xa(d.BoundingBox),f=Za(e,Xa(a),b);d.BoundingBox.x+=f.x-e.x;d.BoundingBox.y+=f.y-e.y}for(d.Rotation=this.q.get("Rotation",!0)+b;d.Rotation<-Math.PI;)d.Rotation+=Math.PI*2;for(;d.Rotation>Math.PI;)d.Rotation-=Math.PI*2;Math.abs(d.Rotation)<0.01&&(d.Rotation=0);c[this.id]=d;return c};t("lucid.model.Block",uh);
uh.registerClass=function(a,b,c,d){function e(a){lj(this,a);if(b.isContainer)this.cj=!0;b.call(this);if(this.minWidth)this.minWidth=this.minWidth;if(this.minHeight)this.minHeight=this.minHeight;if(this.maxWidth)this.maxWidth=this.maxWidth;if(this.maxHeight)this.maxHeight=this.maxHeight;if(this.hLock)this.Oh=this.hLock;if(this.vLock)this.qi=this.vLock;if(this.rLock)this.lx=this.rLock;if(this.noLines)this.Ow=this.noLines;if(this.snapSpacing)this.Of=this.snapSpacing;if(this.noPrint)this.Zg=this.noPrint;
if(this.croppable)this.uv=this.croppable;if(this.enforceAspectRatio)this.Kv=this.enforceAspectRatio;if(this.eventPassThrough)this.Mv=this.eventPassThrough;if(this.disabledPropertyControls)this.js=this.disabledPropertyControls;if(this.dockControls)this.ms=this.dockControls;if(this.unthemed)this.Px=this.unthemed}e.prototype=new uh;e.prototype.He=function(a,c){var d=b.prototype.getRenderData.call(this,a);a!="sample"&&!c&&this.page&&(d=Sd(d,this.q.get("Rounding")||this.document.q.get("RoundCorners")/
2));return d};if(b.prototype.getLinkPoints)e.prototype.cg=b.prototype.getLinkPoints;if(b.prototype.onCreate)e.prototype.Xh=b.prototype.onCreate;if(b.prototype.onDelete)e.prototype.Et=b.prototype.onDelete;if(b.prototype.clicked)e.prototype.Yl=b.prototype.clicked;if(b.prototype.textClicked)e.prototype.Wq=b.prototype.textClicked;if(b.prototype.doubleClicked)e.prototype.fk=b.prototype.doubleClicked;if(b.prototype.textDoubleClicked)e.prototype.Xq=b.prototype.textDoubleClicked;if(b.prototype.getTextLink)e.prototype.Ks=
b.prototype.getTextLink;if(b.prototype.lineDrawn)e.prototype.ft=b.prototype.lineDrawn;if(b.prototype.lineDrawnProperties)e.prototype.Jp=b.prototype.lineDrawnProperties;if(b.prototype.afterEditText)e.prototype.zr=b.prototype.afterEditText;if(b.prototype.hitTest)e.prototype.Za=b.prototype.hitTest;if(b.prototype.hitTestTools)e.prototype.hg=b.prototype.hitTestTools;if(b.prototype.rectTest)e.prototype.xj=b.prototype.rectTest;if(b.prototype.allowPromptNextBlock)e.prototype.Cr=b.prototype.allowPromptNextBlock;
if(b.prototype.selectNewLink)e.prototype.ml=b.prototype.selectNewLink;if(b.prototype.eachSubItem)e.prototype.Hv=b.prototype.eachSubItem;if(b.prototype.getOffsetProperties)e.prototype.Jg=b.prototype.getOffsetProperties;if(b.searchData)e.bu=b.searchData;if(b.dropBlockActions)e.ts=b.dropBlockActions;for(var f in b.prototype)e.prototype[f]==l&&(e.prototype[f]=b.prototype[f]);e.title=c;e.bd=d;e.defaultSize=e.bd;gj[a]=e};uh.darkenColor=function(a,b){if(na(a)){var c=new I(a,"#ffffffff");ng(c,b);return gb(c)}return a};
uh.lightenColor=function(a,b){if(na(a)){var c=new I(a,"#ffffffff");c.Ip(b);return gb(c)}return a};uh.getClass=function(a){return gj[a]};uh.createNextBlockGroup=function(a,b){b||(b=a);for(var c=0;c<b.length;c++){var d={};if(hj[b[c]]==l)hj[b[c]]=[];else for(var e=0;e<hj[b[c]].length;e++)d[hj[b[c]][e]]="";for(e=0;e<a.length;e++)a[e]in d||(d[a[e]]="",hj[b[c]].push(a[e]))}};uh.createExchangeGroup=function(a){for(var b=0;b<a.length;b++){ij[a[b]]==l&&(ij[a[b]]=[]);for(var c=0;c<a.length;c++)b!=c&&ij[a[b]].push(a[c])}};
uh.prototype.getProperties=uh.prototype.Kg;uh.prototype.getId=uh.prototype.bg;uh.prototype.getCleanId=uh.prototype.Fe;uh.prototype.firstTextAreaName=uh.prototype.Rv;uh.prototype.getTextAreas=uh.prototype.aw;uh.prototype.relativePoint=uh.prototype.Ac;uh.prototype.getBoundingBox=uh.prototype.ja;uh.prototype.deleteTextAreasExcept=uh.prototype.xv;uh.prototype.getControls=uh.prototype.Uv;uh.prototype.hitTestBoundingBox=uh.prototype.Gd;uh.prototype.getOffsetProperties=uh.prototype.Jg;
t("lucid.model.Block.TextArea",kj);t("lucid.model.Block.Control",function(a,b,c,d){if(a.controls&&b in a.controls)a=a.controls[b],a.name=b,a.Ja=c,a.Za=d;else{if(!a.controls)a.controls={};a.controls[b]=this;this.name=this.name=b;this.render=this.Ja=c;this.hitTest=this.Za=d}});kj.prototype.setTextAlign=kj.prototype.xx;function oj(a,b,c){this.id=b;this.document=this.document=a;this.Ys=!0;this.Ea={};this.Oa={};this.ma={};this.un=[];this.q=new zi(b);this.q.ka("Title","");this.q.ka("Order",c);this.q.ka("Size",{w:8.5*config.defaultDPI,h:11*config.defaultDPI});this.q.ka("DPI",config.defaultDPI);this.q.ka("GridSpacing",config.defaultGrid);this.q.ka("Margin",0.5);this.q.ka("FillColor","#ffffff");this.q.ka("SkipMultipage",1)}
function pj(a){for(var b=a.q.get("Margin"),c=a.q.get("DPI"),d=mh(a),b=new H(d.x+b*c,d.y+b*c,d.w-b*c*2,d.h-b*c*2),c=a.document.q.get("Columns")||1,a=a.document.q.get("ColumnSpacing")||18,d=(b.w-a*(c-1))/c,e=b.x,f=[],g=0;g<c;g++)f.push(new H(e,b.y,d,b.h)),e+=d+a;return f}q=oj.prototype;q.bg=ea("id");q.Fe=function(){return this.id.replace(/\./g,"--").replace(/\~/g,"__")};q.no=function(a){this.Ea[a.id]=a;a.Qe(this)};q.Xf=function(a){this.Oa[a.id]=a;a.Qe(this)};function qj(a,b){a.ma[b.id]=b;b.Qe(a)}
q.xn=function(a){$(document).trigger("diagramming.exitGroup",[a]);delete this.Ea[a]};q.wn=function(a){delete this.Oa[a]};q.yn=function(a){delete this.ma[a]};q.ym=function(a){return this.Ea[a]};q.Jb=function(a){return this.Oa[a]};q.Tv=ea("Oa");q.Ge=function(a){return this.ma[a]};function mh(a,b){if(b||a.As==l){var c=a.q.get("Size"),d=a.q.get("DPI");d*=a.q.get("Margin");var c=new G(c.w-d*2,c.h-d*2),e=rj(a,b);a.As=new H(e.x*c.x,e.y*c.y,e.w*c.x+d*2,e.h*c.y+d*2,e)}return a.As}
function rj(a,b){if(b||a.mq==l){var c=a.q.get("Size",!0),d=a.q.get("DPI",!0);d*=a.q.get("Margin",!0);c=new G(c.w-d*2,c.h-d*2);if(a.q.get("SkipMultipage",!0))a.mq=new H(0,0,1,1,c);else{var e=Number.MAX_VALUE,f=Number.MAX_VALUE,g=Number.MIN_VALUE,i=Number.MIN_VALUE,j=function(a){if(!a.pa){var b=a.ja();a.sa&&(a=a.q.get("Rotation",!0))&&(b=db(b,a,new G(b.x+b.w/2,b.y+b.h/2)));e=Math.min(e,b.x);f=Math.min(f,b.y);g=Math.max(g,b.x+b.w);i=Math.max(i,b.y+b.h)}};a.Ib(function(){j(this)});var k=sj(a);k&&k.Ib(function(){j(this)});
if(e==Number.MAX_VALUE)return new H(0,0,1,1,c);e-=d;f-=d;g-=d;i-=d;e+=d;f+=d;g-=d;i-=d;e/=c.x;g/=c.x;f/=c.y;i/=c.y;a.mq=new H(Math.floor(e),Math.floor(f),Math.max(1,Math.ceil(g)-Math.floor(e)),Math.max(1,Math.ceil(i)-Math.floor(f)),c)}}return K(a.mq)}q.ra=function(a){if(this.Ea[a])return this.Ea[a];else if(this.Oa[a])return this.Oa[a];return this.ma[a]};q.Af=function(a){for(var b in this.Ea)if(a.call(this.Ea[b])=="stop")break};q.df=function(a){for(var b in this.Oa)if(a.call(this.Oa[b])=="stop")break};
q.qd=function(a){for(var b in this.ma)if(a.call(this.ma[b])=="stop")break};q.Ib=function(a){for(var b in this.Ea)if(a.call(this.Ea[b])=="stop")return;for(b in this.Oa)if(a.call(this.Oa[b])=="stop")return;for(b in this.ma)if(a.call(this.ma[b])=="stop")break};function tj(a,b){for(var c=a.um(),d=c.length-1;d>=0;d--)if(b.call(c[d])=="stop")break}q.Uo=function(a){for(var b=this.dg(),c=b.length-1;c>=0;c--)if(a.call(b[c])=="stop")break};
function uj(a,b){for(var c=a.ge(),d=c.length-1;d>=0;d--)if(b.call(c[d])=="stop")break}q.um=function(a){var b=[],c=this;this.Ib(function(){(this.parent==l||this.parent==c)&&(!a||a(this))&&b.push(this)});return b};q.dg=function(a){a=this.um(a);a.sort(function(a,c){if(a.Jc&&!c.Jc||!a.Je&&c.Je)return 1;else if(!a.Jc&&c.Jc||a.Je&&!c.Je)return-1;return a.oh-c.oh});return a};
q.ge=function(a){for(var b=this.dg(a),c=0;c<b.length;c++)if(b[c].pa&&(a==l||a(b[c])))for(var d=b[c].ge(),e=0;e<d.length;e++)b.splice(c,0,d[e]),c++;return b};function vj(a){var b;b==l&&(b="ZOrder");var c=[];a.Af(function(){c.push(this)});c.sort(function(a,c){return a.q.get(b)-c.q.get(b)});return c}function wj(a){var b;b==l&&(b="ZOrder");var c=[];a.df(function(){c.push(this)});c.sort(function(a,c){return a.q.get(b)-c.q.get(b)});return c}
function xj(a){var b;b==l&&(b="ZOrder");var c=[];a.qd(function(){c.push(this)});c.sort(function(a,c){return a.q.get(b)-c.q.get(b)});return c}q.Kd=function(a,b,c){this.Ib(function(){if(c==l||c.call(this))if(this.q.get(a)>b||b==l)b=this.q.get(a)});return b};function yj(a,b,c){a.Ib(function(){if(c==l||c.call(this))if(this.q.get("ZOrder")<b||b==l)b=this.q.get("ZOrder")});return b}q.qw=function(a){var b=[];this.qd(function(){this.q.get("Endpoint2",!0).Block==a.id&&b.push(this)});return b};
q.ws=function(a,b){for(var c=[],d=[a],e=this,f={};d.length>0;){var g=d[0];d.splice(0,1);if(!f[g.id]&&(f[g.id]=!0,!b||b(g)))c.push(g),A(this.Jt(g),function(a){c.push(a);a=a.q.get("Endpoint2");a.Block!=l&&(a=e.Oa[a.Block],a!=l&&d.push(a))})}return c};q.Jt=function(a){var b=[];this.qd(function(){this.q.get("Endpoint1",!0).Block==a.id&&b.push(this)});return b};
q.yc=function(a){var b=this,c=this.q.get("Size"),d=this.q.get("FillColor"),d=new I(d,"#ffffffff"),e=rj(this);delete e.data;var f={GridSpacing:this.q.get("GridSpacing"),Width:c.w,Height:c.h,Margin:this.q.get("Margin")*this.q.get("DPI"),IsMaster:this.Fb(),Master:sj(this,!0),DPI:this.q.get("DPI"),Gradient:this.document.q.get("Gradient"),FillColor:d.serialize(!0),PhysicalPages:e,NoTextOverflow:!config.allowTextOverflow,UseFontGroups:config.fontGroups,DefaultTextSize:config.defaultTextSize,Items:[]};F(this.document.Oa,
function(c,d){if(d.ke==b)if(a!=l&&a[d.id]==l)f.Items.push(d.yc());else if(d.yc){var e=d.yc();e&&f.Items.push(e)}});c=this.ge();A(c,function(b){a!=l&&a[b.id]==l?f.Items.push(b.id):b.yc&&(b=b.yc())&&f.Items.push(b)});return f};function zj(a,b,c,d){this.name=a;this.$n=b;this.Am=c;this.my=d}zj.prototype.match=function(a,b){var c=Math.min(a.w,a.h),d=Math.max(a.h,a.w);return Math.abs(c-this.$n*b)<2&&Math.abs(d-this.Am*b)<2};
var Aj=[new zj("Letter",8.5,11,!0),new zj("Legal",8.5,14,!0),new zj("Executive",7.25,10.5,!0),new zj("A3",11.69,16.54,!1),new zj("A4",8.27,11.69,!1),new zj("A5",5.83,8.27,!1),new zj("Tabloid",11,17,!0),new zj("Folio",8.5,13,!0),new zj("Statement",5.5,8.5,!0)];function Bj(a,b){for(var c=0;c<Aj.length;c++)if(Aj[c].match(a,b))return Aj[c];return l}oj.prototype.Kg=ea("q");
function Cj(a,b,c){var d=a.q.get("GridSpacing"),e=d*d,f=b.ja(),g=new G(f.x-d,f.y-d),i=new G(f.x+f.w+d,f.y+f.h+d);a.qd(function(){var f=this;if(Ki(this,g,i)){for(var k=this.q.get("Endpoint1",!0),n=this.q.get("Endpoint2",!0),m=k.Block==l||a.document.ra(k.Block)==l,p=n.Block==l||a.document.ra(n.Block)==l,s=b.cg(),u=[],w=!1,v=0;v<s.length;v++){var x=b.Ac(s[v]),z=x.x,B=x.y;u[v]=x;Math.abs(z-k.x)<d&&Math.abs(B-k.y)<d?m&&(w=!0,a.document.ba(new N(M,{id:this.id,Property:"Endpoint1",Value:{x:z,y:B,Block:b.id,
LinkX:s[v].x,LinkY:s[v].y}}))):Math.abs(z-n.x)<d&&Math.abs(B-n.y)<d&&p&&(w=!0,a.document.ba(new N(M,{id:this.id,Property:"Endpoint2",Value:{x:z,y:B,Block:b.id,LinkX:s[v].x,LinkY:s[v].y}})))}if(c&&!w&&(k.Block==l||k.Block!=b.id)&&(n.Block==l||n.Block!=b.id)){k=[];for(v=0;v<u.length;v++)x=u[v],n=Pi(this,x),m=Gi(this,n),Nb(x,m)<=e&&k.push({i:v,pt:x,crp:n,cpol:m});if(k.length>0){k.sort(function(a,b){return a.crp<b.crp?-1:a.crp>b.crp?1:0});u=k[0];v=k[k.length-1];x=this.q.Nb();x.Endpoint1={x:v.pt.x,y:v.pt.y,
Block:b.id,LinkX:s[v.i].x,LinkY:s[v.i].y};var O=new N("CreateLine",{Page:this.page.id,Properties:x});a.document.ba(O);a.Af(function(){var b=this,c=!1;this.Ib(function(){if(this.id==f.id){c=!0;var d=b.q.get("Members");d[O.id]=!0;a.document.ba(new N(M,{id:b.id,Property:"Members",Value:d}));return"stop"}});if(c)return"stop"});a.document.ba(new N(M,{id:this.id,Property:"Endpoint2",Value:{x:u.pt.x,y:u.pt.y,Block:b.id,LinkX:s[u.i].x,LinkY:s[u.i].y}}))}}}})}
oj.prototype.Og=function(a,b,c){if(!this.document.q.get("WPMode"))return[];var d=this.Oa;c&&(d={},F(c,function(a,b){b.page!=l&&(d[a]=b)}));c=[];if(hc(d)<=0)return c;for(var e in d){var f=d[e].q.get("Wrap");if(f&&!d[e].q.get("BG")){var g=d[e].ja(),i=Xa(g),j=d[e].q.get("Rotation")||0,k=l;g.data={wrap:f};if(j){if(k=db(g,-j,i),k=Ra(k,10),zb(a,k))b||(k.x-=a.x,k.y-=a.y),k.data={wrap:f},c.push(k)}else if(g=Ra(g,10),zb(a,g))b||(g.x-=a.x,g.y-=a.y),g.data={wrap:f},c.push(g)}}return c};
function sj(a,b){if(a.Fb())return l;var c=a.q.get("Master");if(c){var d=a.document.nb(c);if(d&&d.Fb())return b?c:d}return l}oj.prototype.Fb=function(){return!!this.q.get("IsMaster")};function Dj(a,b){a.document.ba(new N(M,{id:a.id,Property:"Master",Value:b}))}oj.prototype.getId=oj.prototype.bg;oj.prototype.getCleanId=oj.prototype.Fe;oj.prototype.getProperties=oj.prototype.Kg;oj.prototype.getGroup=oj.prototype.ym;oj.prototype.getBlock=oj.prototype.Jb;oj.prototype.getBlocks=oj.prototype.Tv;
oj.prototype.getLine=oj.prototype.Ge;oj.prototype.incomingLines=oj.prototype.qw;oj.prototype.outgoingLines=oj.prototype.Jt;oj.prototype.eachLine=oj.prototype.qd;oj.prototype.eachBlock=oj.prototype.df;oj.prototype.eachGroup=oj.prototype.Af;oj.prototype.maxProperty=oj.prototype.Kd;oj.prototype.isMaster=oj.prototype.Fb;oj.prototype.everythingDownstream=oj.prototype.ws;function Ej(a,b){yi.call(this,a,b);this.Zg=this.isState=this.Jc=!0;this.q.ka("IsState",1,fa(1))}Ca(Ej,yi);function Fj(a,b){Zi.call(this,a,b)}Ca(Fj,Zi);Fj.prototype.hg=fa(l);function Gj(a){this.model=this.C=a;this.selection={};var b=this;this.Vd($(document),"documentPostAction",function(c,d){(d.Action=="RemoveBlock"||d.Action=="RemoveLine")&&b.ac(d.id)&&b.kh(d.id);d.Action=="mtp"&&d.OldPage==a.id&&A(d.ids,function(a){b.ac(a)&&b.kh(a)})});this.Vd($(document),"caret.merge",function(a,d,e){if(a=b.Ya(d))if(d.sa){if(d=a.la[e.key]){d.aa.fa=e.rb(d.aa.fa)[0];if(d.aa.ua!=l)d.aa.ua=e.rb(d.aa.ua)[0];d.aa.ia()}}else if(d=a.xc[e.key]){d.fa=e.rb(d.fa)[0];if(d.ua!=l)d.ua=e.rb(d.ua)[0];
d.ia()}});this.Ra={};this.canvas=new Fe(800,600);this.canvas.J.css({overflow:"visible"});this.background=new Hj(this);this.canvas.J.append(this.background.J).addClass("page")}q=Gj.prototype;q.Vd=function(a,b,c){if(this.Hb==l)this.Hb=[];this.Hb.push([a,b,c]);a.bind(b,c)};function Ij(a,b){var c=!1;A(a.Sl,function(a){a.Db(b,!0)&&(c=!0)});return c}function Jj(a,b,c,d,e){A(a.Sl,function(a){if(a.Db(e,!0))return a.aa.focus(),a.ud(b,c,d,e),!1})}
function Kj(a,b,c,d){A(a.Sl,function(a){if(a.Db(d,!0))return a.aa.focus(),a.fd(b,c,d),!1})}function Lj(a,b,c,d){A(a.Sl,function(a){if(a.Db(d,!0))return a.aa.focus(),a.gd(b,c,d),!1})}q.destroy=function(){A(this.Hb,function(a){a[0].unbind(a[1],a[2])});this.Hb=[];for(var a in this.Ra)this.Ra[a].destroy();this.Ra={};if(this.aa)this.aa.destroy(),this.aa=l;this.canvas.destroy()};q.zv=function(a){if(a)a=a.id,this.Ra[a]&&(this.Ra[a].destroy(),delete this.Ra[a])};
q.Ya=function(a){var b=a.id;if(a.page&&(!this.Ra[b]||this.Ra[b].C!=a))a.Xs?this.Ra[b]=new aj(this,a):a.Jc?this.Ra[b]=new Fj(this,a):a.pa?this.Ra[b]=new Zi(this,a):a.sa?(this.Ra[b]=new Th(this,a),mi(this.Ra[b])):this.Ra[b]=new Vi(this,a);return this.Ra[b]||this.C.document.$.K.viewport.Ya(a)};q.ac=function(a){return this.C.document.$.K.viewport.ac(a,this)};function Mj(a,b,c){return a.ac(b)&&a.C.document.$.K.viewport.getSelection(c).length==1}
q.Rg=function(a,b){return this.C.document.$.K.viewport.Rg(a,!!b,this)};q.Iq=function(){this.C.document.$.K.viewport.Iq(this)};q.Yc=function(a,b){this.C.document.$.K.viewport.Yc(a,!!b,this)};q.kh=function(a){this.C.document.$.K.viewport.kh(a,this)};q.getSelection=function(a){return this.C.document.$.K.viewport.getSelection(a,this)};
function Nj(a){var b=a.C.document.$.K.viewport,c={},d=0;a.Gg(function(){!this.Jc&&!this.ta&&(c[this.id]=!0,d++)});if(d>1){a.C.document.Aa();var e=new N("CrGr",{Page:a.C.id,Properties:{ZOrder:a.C.Kd("ZOrder",0)+1}});a.C.document.ba(e);var f=b.Hc();if(f&&f.pa){var g=f.q.get("Members");g[e.id]=!0;a.C.document.ba(new N(M,{id:f.id,Property:"Members",Value:g}))}a.C.document.ba(new N(M,{id:e.id,Property:"Members",Value:c}));a.Gg(function(){if(this.fb){var b=function(b,c,d){var e=b.q.get(c);e[d]&&(d=a.C.ra(e[d]))&&
b.parent&&!Ai(b.parent,d)&&a.C.document.ba(new N(M,{id:b.id,Property:c,Value:{x:e.x,y:e.y,Block:l,LinkX:l,LinkY:l,Line:l,LineP:l}}))};b(this,"Endpoint1","Block");b(this,"Endpoint2","Block");b(this,"Endpoint1","Line");b(this,"Endpoint2","Line")}});a.C.document.xa();b.ec();a.Yc(e.id)}}
function Oj(a){var b=[],c=[];a.C.document.Aa();a.Gg(function(){if(this.pa&&!this.Jc){c.push(this.id);var d=hc(this.Kc),f=this.q.get("ZOrder"),g=a.C.Kd("ZOrder",yj(a.C)-d,function(){return this.q.get("ZOrder")<f}),d=(yj(a.C,a.C.Kd("ZOrder")+d,function(){return this.q.get("ZOrder")>f})-g)/(d+1),d=d==0?1.0E-4:d;g+=d;var i=this.dg(),j;for(j in i)b.push(i[j].id),a.C.document.ba(new N(M,{id:i[j].id,Property:"ZOrder",Value:g})),g+=d;a.C.document.ba(new N(M,{id:this.id,Property:"Members",Value:{}}));this.parent&&
this.parent.pa&&(j=this.parent.q.get("Members"),delete j[this.id],a.C.document.ba(new N(M,{id:this.parent.id,Property:"Members",Value:j})));a.C.document.ba(new N("RmGr",{id:this.id}))}});a.C.document.xa();for(var d=0;d<c.length;d++)a.kh(c[d]);for(d=0;d<b.length;d++)a.Yc(b[d])}
q.Za=function(a,b,c,d,e){var f=l,g=this,i=this.C.document.$.K.viewport,j=i.Hc(),k=j&&j.pa?j:this.C,n=this.C.document.q.get("bgSelectable")!=0,m=i.getSelection(),p=1/i.scale,s=[];if(e)for(var k=k==this.C?l:k,u=0;u<e.length;u++)e[u].parent==k&&s.push(e[u]);else s=k.dg(),(e=sj(this.C))&&A(e.dg(),function(a){var b=a.q.get("Link");(b&&b.match(/^ext:/)||i.readOnly&&(b||a.Jc))&&s.unshift(a)});s.reverse();var w=[];A(m,function(a){a.ta||w.push(a)});if(w.length>1){m=$h(w);if(Lb(new G(a,b),new G(m.x+m.w/2,m.y-
25*p))<10*p)return ai(w,0);if(Lb(new G(a,b),new G(m.x,m.y))<10*p)return bi(w);if(Lb(new G(a,b),new G(m.x+m.w,m.y))<10*p)return ci(w);if(Lb(new G(a,b),new G(m.x+m.w,m.y+m.h))<10*p)return ei(w);if(Lb(new G(a,b),new G(m.x,m.y+m.h))<10*p)return di(w)}A(s,function(e){if(e!=c&&g.ac(e.id)&&(n||!e.Je))if(e=g.Ya(e).Za(a,b,d,!0),e!=l)return f=e,!1});if(f!=l)return f;A(s,function(e){if(!(e==c||!n&&e.Je))if(e=g.Ya(e).Za(a,b,d,g.ac(e.id)),e!=l)return f=e,!1});if(f!=l)return f;s=[];F(this.C.document.Ea,function(a,
b){b.ke==g.C&&b.parent==(j||l)&&s.push(b)});F(this.C.document.Oa,function(a,b){b.ke==g.C&&b.parent==(j||l)&&s.push(b)});A(s,function(c){c=i.Ya(c).Za(a,b,d,i.ac(c.id));if(c!=l)return f=c,!1});return f};
q.gg=function(a,b,c){var d=l,e=this;uj(this.C,function(){if(this!=c&&e.ac(this.id)){if(this.sa)var f=e.Ya(this).kl(new G(a,b));f=e.Ya(this).gg(f?f.x:a,f?f.y:b);if(f!=l)return d=f,"stop"}});if(d!=l)return d;uj(this.C,function(){if(this!=c){if(this.sa)var f=e.Ya(this).kl(new G(a,b));f=e.Ya(this).gg(f?f.x:a,f?f.y:b);if(f!=l)return d=f,"stop"}});return d};q.Gg=function(a){var b=this;this.C.Ib(function(){if(b.ac(this.id))return a.call(this)})};
q.dc=function(a,b,c,d){if(a==l)return l;if(typeof a=="object"){var a=K(a),e;for(e in a)if(!d||oc(d,e)>=0)a[e]=this.dc(a[e],b,c);return a}else return d=this.C.q.get("GridSpacing"),b!=l&&(d/=b),c!=l&&c=="ceil"?Math.ceil(a/d)*d:c!=l&&c=="floor"?Math.floor(a/d)*d:Math.round(a/d)*d};
function Pj(a,b,c){function d(a){k.save();var b=a.He("thumb"),c=a.q.get("Rotation"),d=a.q.get("BoundingBox"),e;c&&(k.translate(d.x+d.w/2,d.y+d.h/2),k.rotate(c),k.translate(-(d.x+d.w/2),-(d.y+d.h/2)));for(c=0;c<b.length;c++)if(b[c].Image!=l)try{var g=a.q.get("Crop");g&&(k.beginPath(),A(g.c,function(a){a.c=="m"?k.moveTo(d.x+a.x*d.w,d.y+a.y*d.h):a.c=="l"?k.lineTo(d.x+a.x*d.w,d.y+a.y*d.h):a.c=="c"&&k.closePath()}),k.clip(),k.translate(g.t[0]*d.w,g.t[1]*d.h),k.translate(d.x,d.y),k.scale(g.s[0],g.s[1]),
k.translate(-d.x,-d.y),k.translate(d.x+d.w/2,d.y+d.h/2),k.rotate(g.r),k.translate(-(d.x+d.w/2),-(d.y+d.h/2)));k.drawImage(b[c].Image,b[c].BoundingBox.x,b[c].BoundingBox.y,b[c].BoundingBox.w,b[c].BoundingBox.h)}catch(f){k.fillStyle="#aaaaaa",k.fillRect(b[c].BoundingBox.x,b[c].BoundingBox.y,b[c].BoundingBox.w,b[c].BoundingBox.h)}else{if(e=vi(b[c].FillColor))if(e.kf){k.save();k.beginPath();k.yd(b[c].Actions);k.clip();var i=Ka;if(!i.Gk(e.url()))this.Hf="";var j=i.Ig(e.url()),i=[],O=new H(d.x,d.y,d.w,
d.h);if(e.Od()=="stretch")i.push(O);else if(e.Od()=="fit")i.push(rb(new H(0,0,j.width,j.height),O));else if(e.Od()=="fill")i.push(sb(new H(0,0,j.width,j.height),O));else if(e.Od()=="original")i.push(wb(new H(0,0,j.width,j.height),O));else if(e.Od()=="tile")for(e=O.x;e<O.x+O.w;e+=j.width||100)for(var T=O.y;T<O.y+O.h;T+=j.height||100)i.push(new H(e,T,j.width,j.height));A(i,function(a){try{k.drawImage(j,a.x,a.y,a.w,a.h)}catch(b){k.fillStyle="#aaaaaa",k.fillRect(a.x,a.y,a.w,a.h)}});k.restore()}else e.jf?
Rh(k,e,nb(d)):k.fillStyle=gb(e),k.beginPath(),k.yd(b[c].Actions),k.fill();if(b[c].StrokeColor&&(e=vi(b[c].StrokeColor),e.Hd))k.strokeStyle=gb(e),k.lineWidth=Math.max(b[c].LineWidth||0,0.25/n),k.beginPath(),k.yd(b[c].Actions),k.stroke()}F(a.la,function(b,c){var e=a.q.get(b),g=a.q.get("Font"),e=dd(e,g).Ja();if(g=c.tc(d))la(g)||(g=[g]),A(g,function(b){var g=c.textAlign||a.q.get("TextAlign"),f=c.ul||a.q.get("TextVAlign");e=nf(k,e,b,a.Og(new H(b.x-d.x,b.y-d.y,b.w,b.h),!0),g,f,[]);if(e.Wg==l)return!1})});
k.restore()}var e=mh(a.C),f=e.data,g=f.data,i=Math.round(b*e.h/e.w);c.css({width:b+"px",height:i+"px"});c.empty();var j=document.createElement("canvas");$(j).attr("width",b);$(j).attr("height",i);j=fb(j);c.append(j);var k=j.getContext();k.fillStyle=pg(a.C.q.get("FillColor"),"#ffffffff");k.fillRect(0,0,b,i);var n=b/e.w;k.scale(n,n);k.translate(-f.x*g.x,-f.y*g.y);b=a.C.ge(function(a){return!a.pb()});(a=sj(a.C))&&(b=a.ge(function(a){return!a.pb()}).concat(b));A(b,function(a){if(a.sa)d(a);else if(a.fb){var b=
a.Xc;k.strokeStyle=a.q.get("LineColor");k.lineWidth=Math.max(a.q.get("LineWidth")||0,0.25/n);k.beginPath();k.moveTo(b[0].x,b[0].y);for(a=1;a<b.length;a++)k.lineTo(b[a].x,b[a].y);k.stroke()}})}function Qj(a,b){var c=a.dc(b);return c.x!=0||c.y!=0||c.w!=0||c.h!=0}
q.xm=function(a){var b={};uf();if(this.C.document.$.Hk()){b.__add__={width:200,height:16,Ja:function(a){a.append('<div style="padding:1px 3px;font-size:12px;font-weight:bold;">'+S("fonts.add")+"</div>")},Pa:"Add more fonts",action:"default.addMoreFonts"};for(var c in Ue())(function(c){c=Pe[c][0].yb;b[c]={width:200,height:16,Ja:r(vf,l,c),Pa:c,action:a}})(c)}else A(We(function(){$(document).triggerHandler("resetOptionBar")}),function(c){(function(c){b[c]={width:200,height:16,Ja:r(vf,l,c),Pa:c,action:a}})(c)});
return b};q.zn=function(a,b){var c=this;this.canvas.J.find(".overlay.line").each(function(){$(this).css("FillColor")!="transparent"&&$(this).css({backgroundColor:c.C.q.get("FillColor")})});this.background.Ja(a,b);Rj(this.C.document.$.K.viewport).zn()};
q.rn=function(){var a=this;dj(this.C.document.q);var b=sj(this.C);V("render","Page.render started");this.C.Af(function(){this.uu=this.ja()});var c=xj(this.C);b&&(c=xj(b).concat(c));A(c,function(a){dj(a.q)});var d=mc(this.C.Oa);F(this.C.document.Oa,function(b,c){c.ke==a.C&&(d[b]=c)});if(b){var b=mc(b.Oa),e;for(e in b)d[e]=b[e]}for(e in d)dj(d[e].q);V("render","Got ordered lines");this.Ae=d;this.gt=c};function Sj(a,b){b.yr(a,a.gt);b.xr(a,a.Ae);for(var c in a.Ae)a.Ae[c].pb()&&delete a.Ae[c]}
q.Ja=function(a,b,c,d,e){var f=this,g;for(g in this.Ae)this.Ae[g].ke&&this.Ae[g].ke!=this.C&&delete this.Ae[g];F(this.C.document.Oa,function(a,b){b.ke==f.C&&(f.Ae[a]=b)});var i=sj(this.C),j=this.Ae,k=this.gt;this.Sl=e;var n=mh(this.C),m=mh(this.C,!0),p=m.data,s=p.data,u={};A(k,function(a){a.pb()||(u[a.id]=a)});var w=d,d=300;if(ee||Xd)d=0;w=Ra(w,d);for(d=0;d<k.length;d++)if(k[d].pb()||!zb(w,k[d].ja()))k[d].id in this.Ra&&this.Ra[k[d].id].ya&&(this.Ra[k[d].id].destroy(),delete this.Ra[k[d].id]),k.splice(d--,
1);for(g in j){var d=j[g].q.get("Rotation"),v=j[g].ja();d&&(v=db(v,d,new G(v.x+v.w/2,v.y+v.h/2)));zb(w,v)||(j[g].id in this.Ra&&(this.Ra[j[g].id].destroy(),delete this.Ra[j[g].id]),delete j[g])}V("render","Filtered out off-screen items");Ie(this.canvas,function(a){if(a.zm!=l&&f.C.ym(a.zm)==l)return!0;if(a.zm!=l){var b=f.C.ym(a.zm);if(b==l||b.pb())return!0}return a.Rl!=l&&!j[a.Rl]?!0:a.Rm!=l&&!u[a.Rm]?!0:!1});V("render","Removed extra layers");V("render","Ready to prerender lines");this.C.document.q.get("LineJumps")==
1&&this.C.document.ej.rn(k);V("render","Lines prerendered");for(d=0;d<k.length;d++)k[d].pb()||this.Ya(k[d]).Ja(this.canvas,a,-p.x*s.x*a,-p.y*s.y*a,this.ac(k[d].id));V("render","Lines rendered");V("render","Selections rendered");for(g in j)this.Ya(j[g]).Ja(this.canvas,a,-p.x*s.x*a,-p.y*s.y*a,Mj(this,g),!1);V("render","Blocks rendered");this.C.Af(function(){if(this.pb())return!0;f.Ya(this).Ja(f.canvas,a,-p.x*s.x*a,-p.y*s.y*a,Mj(f,this.id),!1)});V("render","Groups rendered");var x=this.background;A(e,
function(a){x.J.get(0).nextSibling!=a.J.get(0)&&(Xd?x.J.get(0).insertAdjacentElement("afterEnd",a.J.get(0)):a.J.insertAfter(x.J));x=a});e=this.C.ge(function(a){return a.sa&&!(a.id in j)?!1:!a.pb()&&zb(w,a.ja())});for(k=0;k<e.length;k++)if(!e[k].Je)break;for(g in j)j[g].page==l&&e.splice(k,0,j[g]);i&&(e=i.ge(function(a){return!a.Jc&&!a.pb()&&zb(w,a.ja())}).concat(e));i&&(e=e.concat(i.ge(function(a){return a.Jc&&!a.pb()&&zb(w,a.ja())})));var z=b.Hc();z&&z.pa&&A(e,function(a){if(!Ai(z,a)&&(a=f.Ya(a).ya))a.opacity(0.25),
x.J.get(0).nextSibling!=a.J.get(0)&&(Xd?x.J.get(0).insertAdjacentElement("afterEnd",a.J.get(0)):a.J.insertAfter(x.J)),x=a});A(e,function(a){var b=f.Ya(a).ya;if(b){if(z&&z.pa&&!Ai(z,a))return!0;b.opacity(1);x.J.get(0).nextSibling!=b.J.get(0)&&(Xd?x.J.get(0).insertAdjacentElement("afterEnd",b.J.get(0)):b.J.insertAfter(x.J));x=b}});V("render","Layers ordered");g=Math.round(m.w*a);i=Math.round(m.h*a);if(this.canvas.width!=g||this.canvas.height!=i)this.canvas.resize(g,i),c=!0;V("render","Render setup finished");
c&&this.zn(a,p);m.x!=n.x&&(b.viewport.vb.get(0).scrollLeft+=(n.x-m.x)*a);m.y!=n.y&&(b.viewport.vb.get(0).scrollTop+=(n.y-m.y)*a);V("render","Background render finished");this.Fp=e;V("render","Page.render complete")};function Tj(a){a.C.Af(function(){this.uu=l});dj(a.C.document.q);A(a.Fp,function(a){a.sa&&dj(a.q)});A(a.Fp,function(a){a.sa||dj(a.q)})}t("lucid.view.render.Page",Gj);Gj.prototype.snapToGrid=Gj.prototype.dc;Gj.prototype.getSelection=Gj.prototype.getSelection;Gj.prototype.getView=Gj.prototype.Ya;
Gj.prototype.isSelected=Gj.prototype.ac;Gj.prototype.selectItem=Gj.prototype.Yc;Gj.prototype.unselectItem=Gj.prototype.kh;Gj.prototype.destroyItemView=Gj.prototype.zv;function Uj(){var a=this,b=y({title:"Paragraph Formatting Options",children:[this.align(),{R:"hr"},{children:[{R:"h3",text:"Indentation"},{R:"table",Q:"noborder",children:[{R:"tr",children:[{R:"td",children:[{R:"label",attr:{"for":"paragraph_indent_left"},text:"Left (inches):"}]},{R:"td",children:[{Q:"spacer"},{R:"input",type:"number",attr:{step:"0.1",min:"0"},css:{width:"100px"},id:"paragraph_indent_left"}]},{R:"td",children:[{R:"label",attr:{"for":"paragraph_indent_right"},text:"Right (inches):"}]},
{R:"td",children:[{Q:"spacer"},{R:"input",type:"number",attr:{step:"0.1",min:"0"},css:{width:"100px"},id:"paragraph_indent_right"}]}]}]}]},{R:"hr"},this.nu(),{R:"hr"},this.dh(),{Q:"spacer"}]});this.dialog=new se(b,{Ld:!0,title:"Paragraph Formatting Options",width:"350px",hb:[{label:S("Cancel"),action:function(a,b){b.close()}},{label:S("Save"),action:function(){a.done(Vj(a));a.close()}}]});this.dialog.find("input, select").bind("change keydown keyup keypress click",function(){Wj(a)})}q=Uj.prototype;
q.align=function(){return{children:[{R:"h3",text:"Alignment"},{R:"table",css:{width:"auto"},Q:"noborder",children:[{R:"tr",children:[{R:"td",children:[{R:"label",attr:{"for":"paragraph_align"},text:"Horizontal Text Alignment:"}]},{R:"td",children:[{Q:"spacer"},{R:"select",id:"paragraph_align",children:[{R:"option",value:"left",children:["Left"]},{R:"option",value:"center",children:["Center"]},{R:"option",value:"right",children:["Right"]}]}]},{R:"td"},{R:"td"}]}]}]}};
q.nu=function(){return{children:[{R:"h3",text:"Spacing"},{R:"table",Q:"noborder",children:[{R:"tr",children:[{R:"td",children:[{R:"label",attr:{"for":"paragraph_margin_top"},text:"Before (inches):"}]},{R:"td",children:[{Q:"spacer"},{R:"input",type:"number",attr:{step:"0.1",min:"0"},css:{width:"100px"},id:"paragraph_margin_top"}]},{R:"td",children:[{R:"label",attr:{"for":"paragraph_spacing"},text:"Line Spacing:"}]},{R:"td",children:[{Q:"spacer"},{R:"input",type:"number",attr:{step:"0.1",min:"1"},css:{width:"100px"},
id:"paragraph_spacing"}]}]},{R:"tr",children:[{R:"td",children:[{R:"label",attr:{"for":"paragraph_margin_bottom"},text:"After (inches):"}]},{R:"td",children:[{Q:"spacer"},{R:"input",type:"number",attr:{step:"0.1",min:"0"},css:{width:"100px"},id:"paragraph_margin_bottom"}]},{R:"td"},{R:"td"}]}]}]}};
function Wj(a){var b=a.hx.getContext("2d");b.clearRect(0,0,500,120);var c=new Bc;c.text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nAt vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.";Rc(c,
0,124,{color:"aaaaaa"});Rc(c,447,1292,{color:"aaaaaa"});Rc(c,125,l,Vj(a));b.save();b.scale(0.5,0.5);nf(b,c.Ja(),new H(0,0,1E3,240),[],"left","top");b.restore()}q.dh=function(){var a=this;return{children:[{R:"h3",children:["Preview"]},{R:"canvas",css:{border:"1px solid #aaa"},attr:{width:500,height:120},create:function(b){a.hx=fb(b)}}]}};
function Vj(a){var a={marginTop:(parseFloat($("#paragraph_margin_top").val())||0)*a.Gc,marginBottom:(parseFloat($("#paragraph_margin_bottom").val())||0)*a.Gc,indentLeft:(parseFloat($("#paragraph_indent_left").val())||0)*a.Gc,indentRight:(parseFloat($("#paragraph_indent_right").val())||0)*a.Gc,spacing:parseFloat($("#paragraph_spacing").val())||0,align:$("#paragraph_align").val()},b;for(b in a)a[b]||(a[b]=xc[b]);return a}
q.show=function(a,b,c){this.ky=a;this.Gc=b;var d=this.done;this.done=function(a){d&&d(a);c&&c(a)};$("#paragraph_margin_top").val(""+a.marginTop/b);$("#paragraph_margin_bottom").val(""+a.marginBottom/b);$("#paragraph_indent_left").val(""+a.indentLeft/b);$("#paragraph_indent_right").val(""+a.indentRight/b);$("#paragraph_spacing").val(a.spacing);$("#paragraph_align").val(a.align);Wj(this);this.dialog.open()};q.close=function(){this.done=l;this.dialog.close()};function Xj(){this.gc={};this.Ml={};this.Nl={}}Xj.prototype.rn=function(a){this.Ml=this.Nl;this.Nl={};for(var b={Hx:0,Bw:0},c=0;c<a.length;c++){var d=a[c],e=d.id;this.gc[e]==l&&(this.gc[e]={});for(var f=this.gc[e],g=c+1;g<a.length;g++)if(!f[a[g].id]){this.gc[a[g].id]==l&&(this.gc[a[g].id]={},this.Ml[a[g].id]=!0);f[a[g].id]={};this.gc[a[g].id][e]={};var i=d.ja(),j=a[g].ja();i.x+i.w<=j.x||i.y+i.h<=j.y||i.x>=j.x+j.w||i.y>=j.y+j.h||Yj(this,d,a[g],b)}}};
function Wi(a,b){a.Nl[b.id]=!0;delete a.gc[b.id];for(var c in a.gc)lc(a.gc[c][b.id])||(a.Nl[c]=!0),delete a.gc[c][b.id]}
function Yj(a,b,c,d){function e(a,d){f.gc[c.id][b.id][a]==l&&(f.gc[c.id][b.id][a]=[]);f.gc[c.id][b.id][a].push(d);f.Ml[c.id]=!0}for(var f=a,a=b.Xc,g=c.Xc,i=a[0],j=a[a.length-1],k=g[0],n=g[g.length-1],m={},p=0;p<g.length-1;p++)m[p]=!Ki(b,g[p],g[p+1]);for(var s=0;s<a.length-1;s++)if(Ki(c,a[s],a[s+1]))for(p=0;p<g.length-1;p++)if(d.Bw++,!m[p]){var u=a[s],w=a[s+1],v=g[p],x=g[p+1];d.Hx++;var z=Vb(u,w,v,x);if(z!=!0&&z!=!1){if(b.q.get("Shape")!="curve"&&c.q.get("Shape")!="curve"){if(Math.abs(z.x-u.x)<0.1&&
Math.abs(z.y-u.y)<0.1)continue;if(Math.abs(z.x-w.x)<0.1&&Math.abs(z.y-w.y)<0.1)continue;if(Math.abs(z.x-v.x)<0.1&&Math.abs(z.y-v.y)<0.1)continue;if(Math.abs(z.x-x.x)<0.1&&Math.abs(z.y-x.y)<0.1)continue}!(Math.abs(z.x-i.x)<2&&Math.abs(z.y-i.y)<2)&&!(Math.abs(z.x-j.x)<2&&Math.abs(z.y-j.y)<2)&&!(Math.abs(z.x-k.x)<2&&Math.abs(z.y-k.y)<2)&&!(Math.abs(z.x-n.x)<2&&Math.abs(z.y-n.y)<2)&&(u={x:w.x-u.x,y:w.y-u.y},v={x:x.x-v.x,y:x.y-v.y},x=Math.sqrt(u.x*u.x+u.y*u.y),w=Math.sqrt(v.x*v.x+v.y*v.y),u.x/=x,u.y/=
x,v.x/=w,v.y/=w,Math.abs(u.x*v.x+u.y*v.y)>0.95||e(p,z))}}};function Zj(a){a=a.replace(/^([0-9]{2,4})-([0-1][0-9])-([0-3][0-9]) (?:([0-2][0-9]):([0-5][0-9]):([0-5][0-9]))?$/,"$1 $2 $3 $4 $5 $6").split(" ");return new Date(a[0],a[1]-1,a[2],a[3],a[4],a[5])}
function $j(a){function b(a,b){return(a+="").length<b?Array(++b-a.length).join("0")+a:a}var c,d,e=/\\?([a-z])/gi,f,g="Sun,Mon,Tues,Wednes,Thurs,Fri,Satur,January,February,March,April,May,June,July,August,September,October,November,December".split(","),i={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"};f=function(a,b){return d[a]?d[a]():b};d={d:function(){return b(d.j(),2)},D:function(){return d.l().slice(0,3)},j:function(){return c.getDate()},l:function(){return g[d.w()]+"day"},N:function(){return d.w()||
7},S:function(){return i[String(d.j())]||"th"},w:function(){return c.getDay()},z:function(){var a=new Date(d.Y(),d.n()-1,d.j()),b=new Date(d.Y(),0,1);return Math.round((a-b)/864E5)+1},W:function(){var a=new Date(d.Y(),d.n()-1,d.j()-d.N()+3);return 1+Math.round((a-new Date(a.getFullYear(),0,4))/864E5/7)},F:function(){return g[6+d.n()]},m:function(){return b(d.n(),2)},M:function(){return d.F().slice(0,3)},n:function(){return c.getMonth()+1},t:function(){return(new Date(d.Y(),d.n(),0)).getDate()},L:function(){return(new Date(d.Y(),
1,29)).getMonth()===1|0},o:function(){var a=d.n(),b=d.W();return d.Y()+(a===12&&b<9?-1:a===1&&b>9)},Y:function(){return c.getFullYear()},y:function(){return(d.Y()+"").slice(-2)},a:function(){return c.getHours()>11?"pm":"am"},A:function(){return d.a().toUpperCase()},B:function(){return b(Math.floor((c.getUTCHours()*3600+c.getUTCMinutes()*60+c.getUTCSeconds()+3600)/86.4)%1E3,3)},g:function(){return d.G()%12||12},G:function(){return c.getHours()},h:function(){return b(d.g(),2)},H:function(){return b(d.G(),
2)},i:function(){return b(c.getMinutes(),2)},s:function(){return b(c.getSeconds(),2)},u:function(){return b(c.getMilliseconds()*1E3,6)},e:function(){aa("Not supported (see source code of date() for timezone on how to add support)")},I:function(){var a=new Date(d.Y(),0),b=Date.UTC(d.Y(),0),c=new Date(d.Y(),6),e=Date.UTC(d.Y(),6);return 0+(a-b!==c-e)},O:function(){var a=c.getTimezoneOffset();return(a>0?"-":"+")+b(Math.abs(a/60*100),4)},P:function(){var a=d.O();return a.substr(0,3)+":"+a.substr(3,2)},
T:fa("UTC"),Z:function(){return-c.getTimezoneOffset()*60},c:function(){return"Y-m-d\\Th:i:sP".replace(e,f)},r:function(){return"D, d M Y H:i:s O".replace(e,f)},U:function(){return c.getTime()/1E3|0}};c=typeof a==="undefined"?new Date:a instanceof Date?new Date(a):new Date(a*1E3);return"Y-m-d".replace(e,f)}
function ak(a){function b(a){var b=a[2]&&a[2]=="ago",c;c=(c=a[0]=="last"?-1:1)*(b?-1:1);switch(a[0]){case "last":case "next":switch(a[1].substring(0,3)){case "yea":f.setFullYear(f.getFullYear()+c);break;case "mon":f.setMonth(f.getMonth()+c);break;case "wee":f.setDate(f.getDate()+c*7);break;case "day":f.setDate(f.getDate()+c);break;case "hou":f.setHours(f.getHours()+c);break;case "min":f.setMinutes(f.getMinutes()+c);break;case "sec":f.setSeconds(f.getSeconds()+c);break;default:if(typeof(b=g[a[1].substring(0,
3)])!="undefined")b-=f.getDay(),b==0?b=7*c:b>0?a[0]=="last"&&(b-=7):a[0]=="next"&&(b+=7),f.setDate(f.getDate()+b)}break;default:if(/\d+/.test(a[0]))switch(c*=parseInt(a[0],10),a[1].substring(0,3)){case "yea":f.setFullYear(f.getFullYear()+c);break;case "mon":f.setMonth(f.getMonth()+c);break;case "wee":f.setDate(f.getDate()+c*7);break;case "day":f.setDate(f.getDate()+c);break;case "hou":f.setHours(f.getHours()+c);break;case "min":f.setMinutes(f.getMinutes()+c);break;case "sec":f.setSeconds(f.getSeconds()+
c)}else return!1}return!0}var c,d,e=d="";d=a.replace(/\s{2,}|^\s|\s$/g," ");d=d.replace(/[\t\r\n]/g,"");var f;if(d=="now")return(new Date).getTime()/1E3;else if(isNaN(e=Date.parse(d)))f=new Date;else return e/1E3;d=d.toLowerCase();var g={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},e={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11},a=d.match(/^(\d{2,4}-\d{2}-\d{2})(?:\s(\d{1,2}:\d{2}(:\d{2})?)?(?:\.(\d+))?)?$/);if(a!=l){a[2]?a[3]||(a[2]+=":00"):a[2]="00:00:00";d=a[1].split(/-/g);
for(c in e)e[c]==d[1]-1&&(d[1]=c);d[0]=parseInt(d[0],10);d[0]=d[0]>=0&&d[0]<=69?"20"+(d[0]<10?"0"+d[0]:d[0]+""):d[0]>=70&&d[0]<=99?"19"+d[0]:d[0]+"";return parseInt(ak(d[2]+" "+d[1]+" "+d[0]+" "+a[2])+(a[4]?a[4]/1E3:""),10)}a=d.match(RegExp("([+-]?\\d+\\s(years?|months?|weeks?|days?|hours?|min|minutes?|sec|seconds?|sun\\.?|sunday|mon\\.?|monday|tue\\.?|tuesday|wed\\.?|wednesday|thu\\.?|thursday|fri\\.?|friday|sat\\.?|saturday)|(last|next)\\s(years?|months?|weeks?|days?|hours?|min|minutes?|sec|seconds?|sun\\.?|sunday|mon\\.?|monday|tue\\.?|tuesday|wed\\.?|wednesday|thu\\.?|thursday|fri\\.?|friday|sat\\.?|saturday))(\\sago)?",
"gi"));if(a==l)return!1;for(c=0;c<a.length;c++)if(!b(a[c].split(" ")))return!1;return f.getTime()/1E3};function Y(a){var b=this;this.client=this.$=a;this.Xr=this.id=l;this.Cd=[];this.ce=0;this.Pc=[];this.ed=[];this.lo=[];this.V={};this.Ea={};this.Oa={};this.Sc="";this.Uy=0;this.q=new zi("doc");this.lg=0;this.ej=new Xj;this.Ap=!1;this.Ob=[];this.Ol={};this.Qt=[];this.attributes=[];this.$h={};this.fj=!1;bk(this);this.Ad=!1;this.fg=l;this.ii=[];this.jc=[];this.q.ka("Title","",function(a){return a||"(untitled)"},function(a,b){J.set("document.property.title",b)});this.q.ka("Body","");this.q.ka("DefaultBlockLineColor",
"#000000");this.q.ka("DefaultBlockFillColor","#ffffff");this.q.ka("DefaultBlockLineWidth",2);this.q.ka("RoundCorners",10,l,l,!0);this.q.ka("Gradient",0.5,l,l,!0);this.q.ka("LineJumps",1,l,l,!0);this.q.ka("DefaultLineShape","elbow");this.q.ka("DefaultLineLineColor","#000000");this.q.ka("DefaultLineLineWidth",2);this.q.ka("DefaultLineStrokeStyle","solid");this.q.ka("DefaultStartArrowStyle","None");this.q.ka("DefaultEndArrowStyle","Arrow");this.q.ka("DefaultFont","Liberation Sans",function(a){a.toLowerCase()==
"times"&&(a="Liberation Serif");a.toLowerCase()=="helvetica"&&(a="Liberation Sans");return a});this.q.ka("DefaultBold",0);this.q.ka("DefaultItalic",0);this.q.ka("DefaultUnderline",0);this.q.ka("DefaultTextColor","#000000");this.q.ka("DefaultFontSize",18);this.q.ka("PageTemplate",[]);this.q.ka("Language","en");this.q.ka("ParagraphStyles",[]);this.q.ka("InlineStyles",[]);this.q.ka("FacingPages",!1,l,function(a,b){J.set("document.facingPages",b)});J("document.getItemById",function(a){a[1](b.Oa[a[0]]||
b.Ea[a[0]]||l)})}function ck(a){return a.q.get("DefaultBlockFillColor")}function dk(a,b){if(a.Cd==l||a.Cd.length==0)return 0;if($(a.Cd[a.Cd.length-1]).attr("end")<=b)return a.Cd.length-1;for(var c=0,d=a.Cd.length-1;c<d;){var e=Math.floor((c+d)/2),f=parseInt($(a.Cd[e]).attr("end"),10);if(f==b)return e;else f>b?d=e-1:c=e+1}for(;parseInt($(a.Cd[c]).attr("end"),10)>b;)c--;return c}
function ek(a,b,c,d){c==l&&(c=0);d==l&&(d=a.gf());var e=!1,f=0;if(a.Cd!=l)for(var g=dk(a,c);g<a.Cd.length;g++){var i=a.Cd[g],j=parseInt($(i).attr("end"),10);if(c>=j)f=j;else if(i=md($(i).attr("data")),A(i,function(a){if(f>=c&&(b(a)==!1||f+1>=d))return e=!0,!1;f++}),e)return}f=a.ce;A(a.Pc,function(a){if(f>=c&&(b(a)==!1||f+1>=d))return!1;f++})}function fk(a,b){if(a.up==l)a.up={},a.Ts=0;var c=!!a.up[b];ek(a,function(d){a.up[d.id]=!0;d.id==b&&(c=!0)},a.Ts);a.Ts=a.gf();return c}q=Y.prototype;
q.Mg=function(){var a,b=Math.floor((new Date).getTime()/1E3);a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~"[b%66];a+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~"[Math.floor(b/=66)%66];a+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~"[Math.floor(b/=66)%66];a+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~"[Math.floor(b/66)%66];for(b=0;b<8;b++)a+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~"[Math.random()*
66|0];return fk(this,a)?this.Mg():a};
function gk(a,b){function c(a){a.match(/\/js\/plugins\/[a-z]+\.js/)&&(a=a.replace("/js/plugins/","/js/plugins/v2/"));return a}try{$(document).triggerHandler("documentAction",[b])}catch(d){}try{$(document).triggerHandler("documentNextAction",[b])}catch(e){}$(document).unbind("documentNextAction");switch(b.Action){case xg:b.id==l&&(b.id=a.Mg());a.$h[b.id]=b.id;var f=new oj(a,b.id,hc(a.V));a.V[b.id]=f;J.set("page.new");for(var g=a.q.get("PageTemplate"),i={},j=0;j<g.length;j++){g[j].Properties&&g[j].Properties.Endpoint1&&
g[j].Properties.Endpoint1.Block&&(g[j].Properties.Endpoint1.Block=i[g[j].Properties.Endpoint1.Block]);g[j].Properties&&g[j].Properties.Endpoint2&&g[j].Properties.Endpoint2.Block&&(g[j].Properties.Endpoint2.Block=i[g[j].Properties.Endpoint2.Block]);g[j].Properties&&g[j].Properties.Endpoint1&&g[j].Properties.Endpoint1.Line&&(g[j].Properties.Endpoint1.Line=i[g[j].Properties.Endpoint1.Line]);g[j].Properties&&g[j].Properties.Endpoint2&&g[j].Properties.Endpoint2.Line&&(g[j].Properties.Endpoint2.Line=i[g[j].Properties.Endpoint2.Line]);
g[j].NewEndpoint&&g[j].NewEndpoint.Block&&(g[j].NewEndpoint.Block=i[g[j].NewEndpoint.Block]);g[j].OldEndpoint&&g[j].OldEndpoint.Block&&(g[j].OldEndpoint.Block=i[g[j].OldEndpoint.Block]);g[j].NewEndpoint&&g[j].NewEndpoint.Line&&(g[j].NewEndpoint.Line=i[g[j].NewEndpoint.Line]);g[j].OldEndpoint&&g[j].OldEndpoint.Line&&(g[j].OldEndpoint.Line=i[g[j].OldEndpoint.Line]);g[j].Value&&g[j].Value.Block&&(g[j].Value.Block=i[g[j].Value.Block]);g[j].OldValue&&g[j].OldValue.Block&&(g[j].OldValue.Block=i[g[j].OldValue.Block]);
g[j].Value&&g[j].Value.Line&&(g[j].Value.Line=i[g[j].Value.Line]);g[j].OldValue&&g[j].OldValue.Line&&(g[j].OldValue.Line=i[g[j].OldValue.Line]);if(g[j].Action=="CreateBlock"||g[j].Action=="CreateLine"){var k=g[j].id;g[j].id=l;g[j].ey=b.id;gk(a,g[j]);i[k]=g[j].id}if(g[j].Action=="RemoveBlock"||g[j].Action=="RemoveLine"||g[j].Action==M||g[j].Action==yg||g[j].Action=="smt"||g[j].Action=="ssp"||g[j].Action=="smp"||g[j].Action=="smc"||g[j].Action=="sal"||g[j].Action=="srl"||g[j].Action=="sap"||g[j].Action==
"srp"||g[j].Action=="sat"||g[j].Action=="srt"||g[j].Action=="salp"||g[j].Action=="srlp"||g[j].Action=="sas"||g[j].Action=="srs"||g[j].Action=="smlp")g[j].id=i[g[j].id]!=l?i[g[j].id]:b.id,gk(a,g[j])}if(b.Properties!=l)for(var n in b.Properties)f.q.set(n,b.Properties[n]);b.Recreate&&ek(a,function(c){(c.Action=="CreateBlock"||c.Action=="CreateLine")&&c.Page==b.id&&gk(a,c);if(c.Action=="RemoveBlock"||c.Action=="RemoveLine"||c.Action==M||c.Action==yg||c.Action=="smt"||c.Action=="ssp"||c.Action=="smp"||
c.Action=="smc"||c.Action=="sal"||c.Action=="srl"||c.Action=="sap"||c.Action=="srp"||c.Action=="sat"||c.Action=="srt"||c.Action=="salp"||c.Action=="srlp"||c.Action=="sas"||c.Action=="srs"||c.Action=="smlp")(a.$h[c.id]==b.id||c.id==b.id)&&gk(a,c)});J.set("document.pages");break;case "CrGr":b.id==l&&(b.id=a.Mg());a.$h[b.id]=b.Page;j=b.Page===l?a:a.V[b.Page];if(j==l)return!1;f=b.Properties&&b.Properties.IsLayer?new $i(b.id,a):b.Properties&&b.Properties.IsState?new Ej(b.id,a):new yi(b.id,a);j.no(f);if(b.Properties!=
l)for(n in b.Properties)f.q.set(n,b.Properties[n]);a.lg++;break;case "CreateBlock":b.id==l&&(b.id=a.Mg());a.$h[b.id]=b.Page;j=b.Page===l?a:a.V[b.Page];if(j==l)return!1;f=jj(b.Class,b.id,a);j.Xf(f);if(b.Properties!=l){for(n in b.Properties)(n=="ImageSize"||n=="Crop")&&f.q.set(n,b.Properties[n]);for(n in b.Properties)n!="ImageSize"&&n!="Crop"&&f.q.set(n,b.Properties[n])}a.lg++;break;case "CreateLine":b.id==l&&(b.id=a.Mg());a.$h[b.id]=b.Page;f=a.V[b.Page];if(f==l)return!1;j=new Di(b.id,a.ej,a);j.Qe(f);
qj(f,j);if(b.Properties!=l){for(n in b.Properties)(n=="Endpoint1"||n=="Endpoint2"||n=="Shape")&&j.q.set(n,b.Properties[n]);for(n in b.Properties)n!="Endpoint1"&&n!="Endpoint2"&&n!="Shape"&&j.q.set(n,b.Properties[n])}a.lg++;break;case "mtp":f=[];for(j=0;j<b.ids.length;j++){k=b.ids[j];n=a.ra(k);if(n==l)return!1;if(n.page&&n.page.id!=b.OldPage)return!1;if(n.page==l&&b.OldPage!=l)return!1;f.push(n)}var m=b.OldPage===l?a:a.V[b.OldPage];if(!m)return!1;var p=b.Page===l?a:a.V[b.Page];if(!p)return!1;var s=
function(a){A(a,function(a){a.sa?(m.wn(a.id),p.Xf(a)):a.fb&&m.Ys&&p.Ys?(m.yn(a.id),qj(p,a)):a.pa&&(m.xn(a.id),p.no(a),s(a.dg()))})};s(f);J.set("viewport.reorganizeSelection");break;case M:n=a.ra(b.id);if(n==l)return!1;b.OldValue=n.q.get(b.Property);if(!n.q.set(b.Property,b.Value))return!1;break;case yg:if(b.id==l)j=a.q.get("Body",!0),j=dd(j,"helvetica"),j.ba(b.Diff),a.q.set("Body",j.serialize(),!0);else{n=a.ra(b.id);if(n==l)return!1;j=n.fb?n.q.get("TextAreas",!0)[b.Key].Value:n.q.get(b.Key,!0);j=
dd(j,n.q.get("Font"));j.ba(b.Diff);if(n.fb){if(f={},f[b.Key]={Value:j.serialize()},!n.q.set("TextAreas",f,!0))return!1}else if(!n.q.set(b.Key,j.serialize(),!0))return!1}break;case "sas":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");k.Shapes.splice(b.Key,0,b.Shape);n.q.set("Stencil",k);break;case "srs":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");b.Shape=K(k.Shapes[b.Key]);k.Shapes.splice(b.Key,1);n.q.set("Stencil",k);break;case "sat":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");k.Text[b.Key]=
b.Text;n.q.set("Stencil",k);break;case "srt":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");b.Text=K(k.Text[b.Key]);delete k.Text[b.Key];n.q.set("Stencil",k);break;case "salp":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");k.LinkPoints.splice(b.Key,0,b.LinkPoint);n.q.set("Stencil",k);break;case "srlp":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");b.LinkPoint=K(k.LinkPoints[b.Key]);k.LinkPoints.splice(b.Key,1);n.q.set("Stencil",k);break;case "sap":n=a.ra(b.id);if(n==l)return!1;var k=n.q.get("Stencil"),
u=k.Shapes[b.Shape];if(!u)return!1;A(kc(b.Points),function(a){u.Points.splice(a,0,K(b.Points[a]));A(u.Lines,function(b){b.p1>=a&&b.p1++;b.p2>=a&&b.p2++})});n.q.set("Stencil",k);break;case "srp":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");u=k.Shapes[b.Shape];if(!u)return!1;A(kc(b.Points).reverse(),function(a){b.Points[a]=K(u.Points[a]);u.Points.splice(a,1);A(u.Lines,function(b){b.p1>a&&b.p1--;b.p2>a&&b.p2--})});n.q.set("Stencil",k);break;case "sal":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");
u=k.Shapes[b.Shape];if(!u)return!1;A(kc(b.Lines),function(a){u.Lines.splice(a,0,K(b.Lines[a]))});n.q.set("Stencil",k);break;case "srl":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");u=k.Shapes[b.Shape];if(!u)return!1;A(kc(b.Lines).reverse(),function(a){b.Lines[a]=K(u.Lines[a]);u.Lines.splice(a,1)});n.q.set("Stencil",k);break;case "smp":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");u=k.Shapes[b.Shape];if(!u)return!1;b.OldPoints={};for(j in b.Points)for(f in b.OldPoints[j]={},b.Points[j])b.OldPoints[j][f]=
u.Points[j][f],u.Points[j][f]=b.Points[j][f];n.q.set("Stencil",k);break;case "smc":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");u=k.Shapes[b.Shape];if(!u)return!1;b.OldControlPoints={};for(j in b.ControlPoints)for(f in b.OldControlPoints[j]={},b.ControlPoints[j])b.OldControlPoints[j][f]=K(u.Lines[j][f]),u.Lines[j][f]=K(b.ControlPoints[j][f]);n.q.set("Stencil",k);break;case "smt":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");if(!k.Text[b.Key])return!1;b.OldBoundingBox=new H(k.Text[b.Key].x,
k.Text[b.Key].y,k.Text[b.Key].w,k.Text[b.Key].h);k.Text[b.Key].x=b.BoundingBox.x;k.Text[b.Key].y=b.BoundingBox.y;k.Text[b.Key].w=b.BoundingBox.w;k.Text[b.Key].h=b.BoundingBox.h;n.q.set("Stencil",k);break;case "ssp":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");u=k.Shapes[b.Key];if(!u)return!1;b.OldValue=u[b.Property];u[b.Property]=b.Value;n.q.set("Stencil",k);break;case "smlp":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");if(!k.LinkPoints[b.Key])return!1;b.OldX=k.LinkPoints[b.Key].x;b.OldY=
k.LinkPoints[b.Key].y;k.LinkPoints[b.Key].x=b.x;k.LinkPoints[b.Key].y=b.y;n.q.set("Stencil",k);break;case zg:b.URL=c(b.URL);if(nc(a.Ob,b.URL))return!1;a.Ob.push(b.URL);a.Ol[b.URL]=!0;J.set("client.loadPlugin",[b.URL,b.Name,b.Description]);J.set("client.activatePlugin",b.URL);break;case Bg:b.URL=c(b.URL);if(!nc(a.Ob,b.URL))return!1;ib(a.Ob,b.URL);a.Ol[b.URL]=!1;J.set("client.deactivatePlugin",b.URL);break;case "RemovePage":f=a.V[b.id];if(f==l)return!1;if(hc(a.V)==1)return!1;a.lg-=hc(f.Oa)+hc(f.ma);
b.Properties=f.q.Nb();delete a.V[b.id];J.set("document.pages");break;case "RmGr":f=a.ra(b.id);if(f==l)return!1;b.Properties=f.q.Nb();b.Page=a.Hg(b.id);if(b.Page==l)return!1;b.Page=b.Page.id;if(hc(b.Properties.Members)>0)return!1;a.xn(b.id);a.lg--;break;case "RemoveBlock":f=a.ra(b.id);if(f==l)return!1;b.Properties=f.q.Nb();b.Class=f.className;b.Page=a.Hg(b.id);if(b.Page==l)return!1;b.Page=b.Page.id;a.wn(b.id);f.Et&&f.Et();a.lg--;break;case "RemoveLine":j=a.ra(b.id);if(j==l)return!1;b.Properties=j.q.Nb();
b.Page=a.Hg(b.id);if(b.Page==l)return!1;b.Page=b.Page.id;a.yn(b.id);a.lg--}try{a.Ap?($(document).triggerHandler("tempDocumentPostAction",[b]),J.set("document.tempPostAction",b)):($(document).triggerHandler("documentPostAction",[b]),J.set("document.postAction",b))}catch(w){}return!0}function hk(a){for(var b={},c=a.ed.length;c<a.Pc.length;c++){if(a.lo[c]==!0)return l;for(var d in a.lo[c])b[d]=!0}return b}
q.ba=function(a,b,c){if(!b){var d=!1;A(this.Qt,function(b){if(b(a)==!1)return d=!0,!1});if(d)return!1}cj=[];ej=!1;if(!c&&!a.IsUndo&&!a.IsRedo)this.Gq=!0;b=gk(this,a);if(!c&&!a.IsUndo&&!a.IsRedo)this.Gq=!1;c=fj();if(!b){if(a.IsUndo||a.IsRedo)return!1;a=new N("NoOp",{})}this.lo[this.Pc.length]=c;this.Pc.push(a);this.Aa();!a.IsUndo&&!a.IsRedo&&ik(this,a);this.xa();return b};q.no=function(a){this.Ea[a.id]=a;a.Qe(l)};q.Xf=function(a){this.Oa[a.id]=a;a.Qe(l)};
q.xn=function(a){if(a!=l)if(this.Ea[a])$(document).trigger("diagramming.exitGroup",[a]),delete this.Ea[a];else for(var b in this.V)this.V[b].xn(a)};q.wn=function(a){if(a!=l)if(this.Oa[a])delete this.Oa[a];else for(var b in this.V)this.V[b].wn(a)};q.yn=function(a){if(a!=l)for(var b in this.V)this.V[b].yn(a)};
q.Hs=function(a){if(a<this.ce){var b=l;A(this.Cd,function(c){if($(c).attr("end")>a)return b=md($(c).attr("data"))[a-$(c).attr("idx")],!1});b==l&&alert("ARGH");return b}else return K(this.Pc[a-this.ce])};q.gf=function(){return this.Pc.length+this.ce};function jk(a){return a.id==l?0:a.ed.length+a.ce}function kk(a){return a.gf()==0?!1:a.id==l||a.ed.length<a.Pc.length}q.Vh=function(a){var b=l;this.ee(function(){if(this.q.get(a)>b||b==l)b=this.q.get(a)});return b};q.bg=ea("id");
q.Fe=function(){return this.id.replace(/\./g,"--").replace(/\~/g,"__")};function lk(a,b){(a.id=b)&&J.set("document.id",b)}function mk(a,b){for(var c=a.ed.length;c<b-a.ce;c++)a.ed.push(K(a.Pc[c]))}function nk(a){a.Ad&&a.Pi();a.id=l;a.ed=[];a.jc=[];a.fj=!1}
q.ur=function(a){a.Properties.LineWidth=this.q.get("DefaultBlockLineWidth");a.Properties.LineColor=this.q.get("DefaultBlockLineColor");a.Properties.FillColor=this.q.get("DefaultBlockFillColor");a.Properties.Font=this.q.get("DefaultFont");var b=this.q.get("DefaultBlockShadow");b&&(a.Properties.Shadow=b)};
function ok(a){var b={};b.bold=!!a.q.get("DefaultBold");b.italic=!!a.q.get("DefaultItalic");b.underline=!!a.q.get("DefaultUnderline");b.size=a.q.get("DefaultFontSize");b.color=id(a.q.get("DefaultTextColor"),"#000000").tb.substr(1);b.font=a.q.get("DefaultFont");return b}q.Tj=function(a){return dh(a,this.q.get("DefaultFont"),ok(this))};
q.Kl=function(a,b){if(!a.Px){var c=ok(this);if(hc(c)>0)for(var d in a.la){var e=dh(a.q.get(d),a.q.get("Font"),c);e!=a.q.get(d)&&(b?a.q.set(d,e):this.ba(new N(M,{id:a.id,Property:d,Value:e})))}}};q.ww=function(a){return nc(this.Ob,a)};q.Kg=ea("q");function pk(a){a.attributes.push({name:"visioUpload",value:"true"})}
function qk(a,b){a.ce>0?$.ajax({type:"POST",url:"/documents/listDocs/1/1",data:"document_id="+a.id,success:function(c){c=md(c);c.length<1||(rk(a.$,c[0].Change),A(c[0].Change,function(b){A(md(b.changes),function(b){a.ce>0&&(a.Pc.push(b),a.ed.push(b),a.ce--)})}),b&&b())},error:o(),timeout:18E4}):b&&b()}t("lucid.model.Document",Y);Y.prototype.getId=Y.prototype.bg;Y.prototype.getUniqueItemId=Y.prototype.Mg;Y.prototype.getCleanId=Y.prototype.Fe;Y.prototype.runAction=Y.prototype.ba;
Y.prototype.getAction=Y.prototype.Hs;Y.prototype.getActionCount=Y.prototype.gf;Y.prototype.getPage=Y.prototype.nb;Y.prototype.eachPage=Y.prototype.ee;Y.prototype.maxPageProperty=Y.prototype.Vh;Y.prototype.addDefaultBlockProperties=Y.prototype.ur;Y.prototype.addDefaultBlockPropertiesPostCreation=Y.prototype.Kl;Y.prototype.isPluginLoaded=Y.prototype.ww;Y.prototype.applyDefaultTextStyles=Y.prototype.Tj;function sk(a,b){lh.call(this,a);this.ub=b}Ca(sk,lh);q=sk.prototype;
q.create=function(){sk.zd.create.call(this,1);this.J.css("background-color","transparent");var a=this.canvas.J.parent().parent().parent();this.J.append("<span>"+S("overlay.line.edit.instructions")+"</span>");this.J.find("span").css({position:"fixed",font:"bold 24px arial",margin:"4px",cursor:"default",left:a.offset().left+16+"px",top:a.offset().top+16+"px"}).fadeTo(200,0.7);this.Yp=this.ub.q.get("Shape")=="curve"?this.ub.q.get("ControlPoints"):this.ub.q.get("ElbowPoints");this.hj=this.X=l;this.Ha=
!0;this.scale=l;this.Yq=setInterval(r(this.Ub,this),20)};function tk(a){return a.ub.q.get("Shape")=="curve"}function uk(a){if(a.ub.q.get("Shape")=="curve")return a.ub.q.get("ControlPoints");else{var b=a.ub.q.get("ElbowPoints");b||(b=K(a.ub.Xc),b.shift(),b.pop());return b}}q.setProperty=function(a){return this.ub.q.get("Shape")=="curve"?this.ub.q.set("ControlPoints",a):this.ub.q.set("ElbowPoints",a)};q.destroy=function(){sk.zd.destroy.call(this);this.setProperty(this.Yp);clearInterval(this.Yq)};
q.save=function(){var a=uk(this);this.setProperty(this.Yp);var b=this.K.$.document;b.Aa();b.ba(new N(M,{id:this.ub.id,Property:tk(this)?"ControlPoints":"ElbowPoints",Value:tk(this)?a:Qi(a)}));b.xa();this.Yp=a;this.destroy()};
q.Za=function(a){if(tk(this)){for(var b=[],c=Ji(this.ub),d=0;d<c.length;d++)d>0&&d<c.length-1&&b.push({action:"MoveControlPoint",index:d,Le:c[d],color:"rgb(0,255,0)"}),b.push({action:"MoveTangent",index:d,Le:new G(c[d].x+c[d].nx/2,c[d].y+c[d].ny/2),$o:0.5,color:"rgb(0,255,0)"}),b.push({action:"MoveTangent",index:d,Le:new G(c[d].x-c[d].nx/2,c[d].y-c[d].ny/2),$o:-0.5,color:"rgb(0,255,0)"}),c[d].data=Pi(this.ub,c[d]);for(var e=99999999,f=l,d=0;d<b.length;d++){var g=Nb(b[d].Le,a);g<400&&g<e&&(e=g,f=b[d])}if(f==
l&&(e=Pi(this.ub,a,!1),b=Gi(this.ub,e),g=Nb(b,a),g<400)){for(d=f=0;d<c.length;d++)if(c[d].data<e)f=d;else break;for(var d=c[f],g=new G(c[f].x+c[f].nx,c[f].y+c[f].ny),i=new G(c[f+1].x-c[f+1].nx,c[f+1].y-c[f+1].ny),c=c[f+1],e=99999999,j=0,k=0;k<1;k+=0.0010){var n=a.x-((1-k)*(1-k)*(1-k)*d.x+3*(1-k)*(1-k)*k*g.x+3*(1-k)*k*k*i.x+k*k*k*c.x),m=a.y-((1-k)*(1-k)*(1-k)*d.y+3*(1-k)*(1-k)*k*g.y+3*(1-k)*k*k*i.y+k*k*k*c.y),n=n*n+m*m;n<e&&(j=k,e=n)}k=j;a=new G((-3*(1-k)*(1-k)*d.x+3*(1-k)*(1-k)*g.x-6*g.x*k*(1-k)-
3*i.x*k*k+6*i.x*k*(1-k)+3*c.x*k*k)/6,(-3*(1-k)*(1-k)*d.y+3*(1-k)*(1-k)*g.y-6*g.y*k*(1-k)-3*i.y*k*k+6*i.y*k*(1-k)+3*c.y*k*k)/6);f={action:"AddControlPoint",Le:b,Tw:a.x,Uw:a.y,after:f,color:"rgb(255,0,0)"}}}else{b=[];i=uk(this);for(d=0;d<i.length;d++)b.push({action:"MovePoint",index:d,Le:i[d],color:"rgb(0,255,0)"}),i[d].data=Pi(this.ub,i[d]);e=99999999;f=l;for(d=0;d<b.length;d++)g=Nb(b[d].Le,a),g<400&&g<e&&(e=g,f=b[d]);if(f==l&&(e=Pi(this.ub,a,!1),b=Gi(this.ub,e),g=Nb(b,a),g<400)){f=-1;for(d=0;d<i.length;d++)if(i[d].data<
e)f=d;else break;f={action:"AddPoint",Le:b,after:f,color:"rgb(255,0,0)"}}}return f};
q.Ja=function(){this.scale=this.K.viewport.scale;var a=this.K.viewport.padding,b=this.ub.page.q.get("Size");this.ya.move(0,0,b.w*this.scale+a*2,b.h*this.scale+a*2);var c=this.ya.getContext();c.translate(a,a);c.scale(this.scale,this.scale);c.fillStyle="rgba(255,255,170,0.5)";c.fillRect(0,0,b.w,b.h);b=this.ub.q.get("LineWidth");a=this.ub.Xc;c.strokeStyle="rgb(0,0,0)";c.lineWidth=b+2;c.beginPath();c.moveTo(a[0].x,a[0].y);for(b=1;b<a.length;b++)c.lineTo(a[b].x,a[b].y);c.stroke();if(tk(this)){a=Ji(this.ub);
c.fillStyle="rgb(255,255,255)";c.strokeStyle="rgb(128,0,0)";c.lineWidth=2;for(b=0;b<a.length;b++)c.beginPath(),c.moveTo(a[b].x+a[b].nx/2,a[b].y+a[b].ny/2),c.lineTo(a[b].x-a[b].nx/2,a[b].y-a[b].ny/2),c.stroke(),b>0&&b<a.length-1&&(c.beginPath(),c.arc(a[b].x,a[b].y,5,0,Math.PI*2,!1),c.closePath(),c.stroke(),c.fill()),c.beginPath(),c.arc(a[b].x+a[b].nx/2,a[b].y+a[b].ny/2,5,0,Math.PI*2,!1),c.closePath(),c.stroke(),c.fill(),c.beginPath(),c.arc(a[b].x-a[b].nx/2,a[b].y-a[b].ny/2,5,0,Math.PI*2,!1),c.closePath(),
c.stroke(),c.fill()}else{c.fillStyle="rgb(255,255,255)";c.strokeStyle="rgb(128,0,0)";c.lineWidth=2;for(b=1;b<a.length-1;b++)c.beginPath(),c.arc(a[b].x,a[b].y,5,0,Math.PI*2,!1),c.closePath(),c.stroke(),c.fill()}if(this.hj)c.fillStyle=this.hj.color,c.strokeStyle="rgb(0,0,0)",c.lineWidth=2,c.beginPath(),c.arc(this.hj.Le.x,this.hj.Le.y,5,0,Math.PI*2,!1),c.closePath(),c.stroke(),c.fill()};q.Ub=function(){if(this.Ha||this.scale!=this.K.viewport.scale)this.Ha=!1,this.Ja()};
q.ud=function(a){if((this.X=this.Za(a))&&this.X.action=="AddPoint"){var b=uk(this);b.splice(this.X.after+1,0,this.X.Le);this.setProperty(b);this.Ha=!0;this.X=this.Za(a)}else if(this.X&&this.X.action=="AddControlPoint")b=uk(this),b.middle==l&&(b.middle=[]),b.middle.splice(this.X.after,0,{x:this.X.Le.x,y:this.X.Le.y,nx:this.X.Tw,ny:this.X.Uw}),this.setProperty(b),this.Ha=!0,this.X=this.Za(a)};
q.Fc=function(a){this.X=l;if((a=this.Za(a))&&a.action=="MovePoint"){var b=uk(this);b.splice(a.index,1);this.setProperty(b);this.Ha=!0}else if(a&&(a.action=="MoveTangent"||a.action=="MoveControlPoint")){var b=uk(this),c=Ji(this.ub);a.index==0?delete b.first:a.index==c.length-1?delete b.last:b.middle.splice(a.index-1,1);this.setProperty(b);this.Ha=!0}};
q.fd=function(a){this.Ha=!0;this.hj=this.Za(a);if(this.X&&this.X.action=="MovePoint"){var b=uk(this);b[this.X.index].x=this.K.viewport.V[0].dc(a.x,2);b[this.X.index].y=this.K.viewport.V[0].dc(a.y,2);this.setProperty(b);ge||this.Ub()}else if(this.X&&this.X.action=="MoveTangent"){var b=uk(this),c=Ji(this.ub);this.X.index==0?(b.first==l&&(b.first=c[0]),c=b.first):this.X.index==c.length-1?(b.last==l&&(b.last=c[c.length-1]),c=b.last):c=b.middle[this.X.index-1];c.nx=(a.x-c.x)/this.X.$o;c.ny=(a.y-c.y)/this.X.$o;
this.setProperty(b);ge||this.Ub()}else if(this.X&&this.X.action=="MoveControlPoint")b=uk(this),Ji(this.ub),c=b.middle[this.X.index-1],c.x=a.x,c.y=a.y,this.setProperty(b),ge||this.Ub()};q.gd=function(){this.X=l};function Hj(a){var b=this;this.page=a;this.J=y({css:{position:"absolute"}});this.rp={};this.lr={};this.If=l;J("user.preferences",function(a){b.If=a},!0)}var vk="rgba(0,0,0,.05)",wk="rgba(0,0,0,.1)";$d&&(vk="rgb(230,230,230)",wk="rgb(205,205,205)");
function xk(a,b,c,d,e){var f=[b,c,d,e%4].join("-");if(!(f in a.rp)){var g=document.createElement("div");g.style.position="absolute";g.style.left=b*c+"px";g.style.right=b*c+"px";g.style.top=d*c+"px";g.style.height="1px";g.style.background=e%4==0?wk:vk;a.rp[f]=g}return a.rp[f]}
function yk(a,b,c,d,e){var f=[b,c,d,e%4].join("-");if(!(f in a.lr)){var g=document.createElement("div");g.style.position="absolute";g.style.top=b*c+"px";g.style.bottom=b*c+"px";g.style.left=d*c+"px";g.style.width="1px";g.style.background=e%4==0?wk:vk;a.lr[f]=g}return a.lr[f]}
Hj.prototype.Ja=function(a,b){var c=this.page.C,d=c.q.get("Size"),e=c.q.get("DPI"),f=c.q.get("GridSpacing"),g=e*c.q.get("Margin"),e=new G(d.w-g*2,d.h-g*2);d.w=e.x*b.w+g*2;for(d.h=e.y*b.h+g*2;f*a<10||f<8;)f*=4;var i=pg(c.q.get("FillColor"),"#ffffffff",!0);c.document.Ad&&(i="rgb(255,255,230)");this.J.css({left:0,top:0,width:d.w*a+"px",height:d.h*a+"px",background:i});for(i=this.J.get(0);i.hasChildNodes()&&i.childNodes.length>0;)i.removeChild(i.firstChild);if(!(this.If==l||c.document.Ad)&&config.showGrid){var j=
"rgba(0,0,0,.05)";$d&&(j="rgb(242,242,242)");this.J.append(y({css:{position:"absolute",left:0,top:0,right:0,height:g*a+"px",background:j}}));this.J.append(y({css:{position:"absolute",left:0,bottom:0,right:0,height:g*a+"px",background:j}}));this.J.append(y({css:{position:"absolute",left:0,top:g*a+"px",bottom:g*a+"px",width:g*a+"px",background:j}}));this.J.append(y({css:{position:"absolute",right:0,top:g*a+"px",bottom:g*a+"px",width:g*a+"px",background:j}}));if(!this.If||this.If.HideGrid==0){for(var k=
g,j=0;k<=d.h-g;k+=f,j++)i.appendChild(xk(this,g,a,k,j));k=g;for(j=0;k<=d.w-g;k+=f,j++)i.appendChild(yk(this,g,a,k,j))}for(k=1;k<b.w;k++)this.J.append(y({css:{position:"absolute",top:g*a+"px",bottom:g*a+"px",left:(g+k*e.x)*a-1+"px",width:"0px",borderLeft:"3px dashed "+wk}}));for(k=1;k<b.h;k++)this.J.append(y({css:{position:"absolute",left:g*a+"px",right:g*a+"px",top:(g+k*e.y)*a-1+"px",height:"0px",borderTop:"3px dashed "+wk}}));for(j=0;j<c.un.length;j++)d=c.un[j],this.J.append(y({css:{position:"absolute",
left:(parseInt(d.x,10)-e.x*b.x)*a+"px",top:(parseInt(d.y,10)-e.y*b.y)*a+"px",width:parseInt(d.w,10)*a+"px",height:parseInt(d.h,10)*a+"px",background:"rgba("+d.r+","+d.g+","+d.b+",.1)",border:"2px solid rgba("+d.r+","+d.g+","+d.b+",.5)"}}))}};function zk(a,b,c,d){this.K=b;var e=this;this.document=b.Zb();this.Ra={};this.selection={document:{}};this.Gc=72;J("viewport.reorganizeSelection",function(){var a={document:{}},b;for(b in e.selection)for(var c in e.selection[b])if(e.selection[b][c]){var d=e.document.Hg(c),d=d?d.id:"document";d in a||(a[d]={});a[d][c]=!0}e.selection=a});this.readOnly=!1;this.vb=c;this.scrollLeft=this.scrollTop=0;this.scrollWidth=this.vb.width();this.scrollHeight=this.vb.height();this.vb.scroll(function(){e.scrollTop=
this.scrollTop;e.scrollLeft=this.scrollLeft});$(window).resize(function(){e.scrollWidth=$(this).width();e.scrollHeight=$(this).height()});this.container=this.J=d||$('<div class="viewport" style="position:absolute;"></div>');this.padding=this.bs=Ya?20:800;this.Bm=!1;a.append(this.J);J("page.new",function(){var a=e.selection;e.selection={document:a.document||{}};F(e.document.V,function(b){e.selection[b]=a[b]||{}})},!0)}q=zk.prototype;
q.Tc=function(a){var b=this;J("client.readOnly",function(a){b.readOnly=a},!0);J("viewport.getOffset",function(a){a&&a(b.J.offset())});J("viewport.getMode",function(a){a&&a(Rj(b))});this.gj={};A(a,function(a){b.gj[a.name]=a.mode});a.length>0&&this.ji(a[0].name);this.uw=new Fe(100,100);this.J.append(this.uw.J.addClass("inlineHintCanvas").css({position:"absolute","z-index":"1",opacity:0.5,top:0,right:0,bottom:0,left:0,height:"auto",width:"auto"}));this.Eu=new La(this);this.J.append(this.Eu.J);this.V=
[];this.wv=1;this.scale=0.75;J.set("viewport.scale",this.scale);this.hl=!1;this.kr="normal";J("user.preferences",function(a){if(a&&b.kr!=a.DefaultZoom)b.kr=a.DefaultZoom,Ak(b,b.kr)},!0);J("default.zoomIn",function(){Ak(b,"in")});J("default.zoomIn.disabled",function(a){b.scale>=4&&a(!0)});J("default.zoomOut",function(){Ak(b,"out")});J("default.zoomOut.disabled",function(a){b.scale<=0.01001&&a(!0)});J("default.zoom",function(a){Ak(b,a)});this.dm=this.Ha=!1;setInterval(r(this.Ub,this),10);this.Ep=l;
if(Ya){var c=l;this.J.bind("touchstart",function(a){try{V("touch","touchstart");var e=b.mc(a);a.which=1;if(!(a.originalEvent.touches.length>1)&&(P==l||!P.Db(a)))b.touchStart(e,a),c=function(){P&&P.blur();b.readOnly||b.ud(e,a);Bk(b,e,a)}}catch(f){b.K.$.sd(f)}});this.J.bind("touchmove",function(a){try{if(V("touch","touchmove"),!(a.originalEvent.touches.length>1)){a.preventDefault();c&&(c(),c=l);var e=b.mc(a);a.which=1;b.Ep=e;if(b.readOnly)Ck(b,e,a);else{var f;if(f=P==l||!P.Db(a)){var g=$(".tool-box-slider:not(.closed)"),
i=a.pageX,j=a.pageY,k=$(g).offset();f=!(k&&i>=k.left&&i<=k.left+$(g).width()&&j>=k.top&&j<=k.top+$(g).height())}f&&(b.touchMove(e,a),b.fd(e,a));b.im==!1&&b.Ub()}}}catch(n){b.K.$.sd(n)}});this.J.bind("touchend",function(a){try{V("touch","touchend");var e=b.mc(a);b.touchEnd(e,a);if(!(a.originalEvent.changedTouches.length>1)&&(c&&(c(),c=l),!b.readOnly&&(P==l||!P.Db(a))))a.which=1,b.gd(e,a)}catch(f){b.K.$.sd(f)}});this.J.bind("gesturestart",function(a){try{if(P==l||!P.Db(a)){var c=b.mc(a);b.qk(c,a)}}catch(f){b.K.$.sd(f)}});
this.J.bind("gesturechange",function(a){try{(P==l||!P.Db(a))&&b.mc(a)}catch(c){b.K.$.sd(c)}});this.J.bind("gestureend",function(a){try{if(P==l||!P.Db(a)){var c=b.mc(a);b.pk(c,a)}}catch(f){b.K.$.sd(f)}});this.J.bind("click",function(a){try{if(V("touch",{event:a.type,pageX:a.pageX,pageY:a.pageY,button:a.button,which:a.which,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey}),!b.readOnly){var c=b.mc(a);(P==l||!P.Db(a))&&b.mode.Bu&&b.mode.Bu(c,a)}}catch(f){b.K.$.sd(f)}})}else this.J.bind("mousedown",
function(a){V("mouse",{event:a.type,pageX:a.pageX,pageY:a.pageY,button:a.button,which:a.which,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey});if(P==b.aa||P==l||!P.Db(a)){window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();P&&P!=b.aa&&P.blur();var c=b.mc(a);b.Rp=c.data;b.readOnly||b.ud(c,a);Bk(b,c,a)}}),this.J.bind("mousemove",function(a){V("mouse",{event:a.type,pageX:a.pageX,pageY:a.pageY,button:a.button,which:a.which,altKey:a.altKey,ctrlKey:a.ctrlKey,
metaKey:a.metaKey});var c=b.mc(a,b.Rp);b.Ep=c;if(b.readOnly)Ck(b,c,a);else if((P==b.aa||P==l||!P.Db(a))&&b.fd(c,a),P&&P!=b.aa&&P.Db(a)&&b.cursor("text"),b.im==!1&&(!ge||Rd))ae||b.Ub()}),this.J.bind("mouseup",function(a){V("mouse",{event:a.type,pageX:a.pageX,pageY:a.pageY,button:a.button,which:a.which,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey});if(!b.readOnly&&(P==b.aa||P==l||!P.Db(a))){var c=b.mc(a,b.Rp);b.Rp=l;b.gd(c,a)}}),this.J.bind("dblclick",function(a){V("mouse",{event:a.type,pageX:a.pageX,
pageY:a.pageY,button:a.button,which:a.which,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey});if(!b.readOnly&&(P==b.aa||P==l||!P.Db(a))){var c=b.mc(a);b.Fc(c,a)}});this.au=!1;$(document).bind("editorEndEdit",function(){b.ia()});this.uy=this.ty=0;this.im=!1;$(document).bind("documentPostAction",function(a,c){c.Action==M&&Dk(b,c.id)&&(c.Property=="FillColor"||c.Property=="Margin")&&b.ig();b.ia()});$(document).bind("documentAction",function(a,c){if(c.Action=="RemoveLine"){var f=b.V[0].C.Ge(c.id);
f&&Wi(b.document.ej,f)}});$(document).bind("viewingHistory",function(){b.ig();b.ia()});$(document).bind("selectionChange",r(this.ia,this));$(document).bind("userPreferences",r(this.ig,this));this.clipboardData=l;Ek();this.pl();this.Nt=new Uj;setInterval(function(){window.lucidRendering=!1},1);this.vb.scroll(r(this.ia,this));$(window).resize(r(this.ia,this));J("document.facingPages",function(a){b.Ov=a;b.ia();b.ig()},!0);J("page.selectionChange",function(a){b.aa&&a.length>0&&b.aa.blur()});J("viewport.invalidate",
r(this.ia,this))};q.Ub=function(){if(this.Ha||this.dm)this.Ja(this.dm),this.dm=this.Ha=!1};q.Fc=function(a,b){this.mode.Fc(a,b)};function Bk(a,b,c){(b=a.V[0].Za(b.x,b.y,l,c.altKey))&&b.fl&&a.readOnly&&b.fl()}q.ud=function(a,b){this.mode.ud(a,b)};function Fk(a,b,c){var d="se-resize,s-resize,sw-resize,w-resize,nw-resize,n-resize,ne-resize,e-resize".split(","),e={se:0,sw:2,nw:4,ne:6};if(c!=0){for(c=Math.round(c*4/Math.PI);c<0;)c+=8;a.cursor(d[(e[b]+c)%4])}else a.cursor(d[e[b]])}
function Gk(a){Xd?a.cursor("url(/img/cursors/rotate.cur), default"):he||ge||je?a.cursor("url(/img/cursors/rotate.cur) 16 16, default"):a.cursor("move")}function Hk(a){je?a.cursor("-moz-grabbing"):Xd?a.cursor("url(/img/cursors/closedhand.cur), default"):he||ge?a.cursor("url(/img/cursors/closedhand.cur) 8 8, default"):a.cursor("move")}
function Ik(a){je?a.cursor("-moz-grab"):Xd?a.cursor("url(/img/cursors/openhand.cur), default"):he||ge?a.cursor("url(/img/cursors/openhand.cur) 8 8, default"):a.cursor("move")}function Ck(a,b,c){a.V.length!=0&&((b=a.V[0].Za(b.x,b.y,l,c.altKey))&&b.fl?a.cursor(b.cursor):a.cursor(a.mode.wf))}q.fd=function(a,b,c){this.mode.fd(a,b,c)};q.gd=function(a,b){this.mode.gd(a,b)};q.touchStart=function(a,b){this.mode.touchStart(a,b)};q.touchMove=function(a,b){this.mode.touchMove(a,b)};
q.touchEnd=function(a,b){this.mode.touchEnd(a,b)};q.qk=function(a,b){this.mode.qk(a,b)};q.pk=function(a,b){this.mode.pk(a,b)};
function Ak(a,b){if(a.V.length!=0){var c=a.scale,d=c,d=a.vb.get(0),e=a.V[0].C.q.get("Size"),f=!0;if(b=="page")d=Math.min(d.clientWidth/e.w,d.clientHeight/e.h),f=!1;else if(b=="width")d=d.clientWidth/e.w,f=!1;else if(b=="in"||b=="out"){var d=[100,141,200,283,400,500,577,707,866,1E3,1225,1414,1732,2E3],e=Math.round(Math.sqrt(a.scale*100)*100),g;if(b=="in")for(g=0;g<d.length-1;g++){if(e<d[g])break}else for(g=d.length-1;g>0;g--)if(e>d[g])break;d=1.0E-6*d[g]*d[g]}else na(b)&&(b=75),d=b/100;if(d!=c){a.scale=
a.wv*d;var i=a.scale/c,j=(a.scrollWidth-Od())/2-a.padding,k=(a.scrollHeight-Od())/2-a.padding,n=a.vb.get(0);a.J.one("afterRender",function(){f?(n.scrollLeft=i*(j+a.scrollLeft)-j,n.scrollTop=i*(k+a.scrollTop)-k):(n.scrollLeft=a.padding,n.scrollTop=a.padding);a.mode.hr()});a.ia();a.ig();J.set("viewport.scale",d)}}}
q.Ja=function(a){function b(){return[]}var c=this;V("ie","vp.render called");V("touch","render");var d=Ra(Cb(Jk(this)),this.padding);this.J.css({width:d.w+"px",height:d.h+"px"});this.V[0]&&this.V[0].C.Fb()?this.J.closest("#canvas-window").addClass("master"):this.J.closest("#canvas-window").removeClass("master");this.J.triggerHandler("beforeRender");window.lucidRendering=!0;V("render","Viewport.render started");A(this.V,function(a){a.rn()});A(this.V,function(a){Sj(a,c.mode)});var e,f,g,i,j;c.ir=function(){e=
Ch(c,!0);f={};A(e,function(a){f[a.page.C.id]=a});g=Ch(c);i={};A(g,function(a){i[a.page.C.id]=a});j=[];A(g,function(a){j.push([a.page.C.id,a.x,a.y,a.w,a.h])})};c.ir();var k=!1;if(!Na(j,c.Yw))k=!0,c.Yw=j;d=g.length>0?g[0].page:l;if(d!=this.ix)J.set("viewport.activePage",d),this.ix=d;var n=!1;if(this.document.q.get("WPMode")){var m={};A(c.V,function(a){A(pj(a.C),function(b){m[a.C.id]=a.C.Og(new H(b.x,b.y,b.w,b.h),!1,a.Ae)})});if(!Na(m,c.Ww))n=!0,c.Ww=m;c.Iu=function(){n=n||k;var a=[];A(c.V,function(b){A(pj(b.C),
function(d,e){var g=s(b.C.id,e);if(!g)g=new Gg(d.w,d.h,c.aa),g.gn=b.C.id,g.Xk=e,g.Ng="left",g.vAlign="top",g.Ue=[],g.J.get(0).style.position="absolute",n=!0,g.Sk=function(){return b.C.Og(new H(d.x,d.y,d.w,d.h),!1,b.Ae)};if(d.w!=g.width||d.h!=g.height)g.width=d.w,g.height=d.h,n=!0;var f=g.J.get(0).style;f.left=d.x*c.scale+"px";f.top=d.y*c.scale+"px";f.width=d.w*c.scale+"px";f.height=d.h*c.scale+"px";g.Qp=!(b.C.id in i);a.push(g)})});for(var b=0;b<c.aa.oa.length;b++)nc(a,c.aa.oa[b])||c.aa.oa[b].destroy();
pc(c.aa.oa,a)||(n=!0);c.aa.oa=a};if(this.aa==l){this.aa=new Wg(1,1,this.document.q.get("Language"));this.aa.content=dd(this.document.q.get("Body"),"helvetica");this.aa.Ly=!0;J("bodyText.invalidate",function(){c.aa.ia()});J("bodyText.pdfData",function(a){c.aa.Ub();var b={IsMaster:!0,text:cd(c.aa.content),spaces:[]};A(c.V,function(a){A(pj(a.C),function(c,d){var e={page:a.C.id,bb:c,obstacles:s(a.C.id,d).Pb.Vw||[]};A(e.obstacles,function(a){a.x+=c.x;a.y+=c.y});b.spaces.push(e)})});a(b)});this.aa.bind("prerender",
function(){F(c.document.Oa,function(a,b){b.ke=l})});var p;this.aa.bind("change",function(a){!p&&!c.document.jg&&(p=!0,c.document.Aa(),c.document.ba(new N(yg,{Diff:a.action})),c.Ja(),setTimeout(function(){c.document.xa()},1),p=!1)});this.aa.bind("selection",function(){var a=c.aa.Ri();if(a.data){var b=a.data,d=c.Ti(b.gn),b=pj(d.C)[b.Xk];a.x+=b.x;a.y+=b.y;a=Pa(c,a,d);if(a.y<c.scrollTop+60)c.vb.get(0).scrollTop=a.y-60;if(a.y>c.scrollTop+c.scrollHeight-60)c.vb.get(0).scrollTop=a.y-(c.scrollHeight-60);
if(a.x<c.scrollLeft+60)c.vb.get(0).scrollLeft=a.x-60;if(a.x>c.scrollLeft+c.scrollWidth-60)c.vb.get(0).scrollLeft=a.x-(c.scrollWidth-60)}});this.aa.bind("needsMoreSpace",function(){var a=Ch(c)[0].page.C.q,a=new N(xg,{Properties:{Title:S("Untitled Page"),Order:c.document.Vh("Order")+1,Size:a.get("Size"),Margin:a.get("Margin"),DPI:a.get("DPI"),GridSpacing:a.get("GridSpacing")}});window.lucidRendering=!1;c.document.ba(a);window.lucidRendering=!0;c.Iu();c.ir();c.Ti(a.id).rn();Sj(c.Ti(a.id),c.mode)});this.aa.bind("excessSpace",
function(a){A(a,function(a){a.Xk==0&&c.document.ba(new N("RemovePage",{id:a.gn}))});c.ir()});this.aa.yt=!0;this.aa.oa[0].destroy();this.aa.oa=[]}var s=function(a,b){for(var d=0;d<c.aa.oa.length;d++)if(c.aa.oa[d].gn==a&&c.aa.oa[d].Xk==b)return c.aa.oa[d]},b=function(a){for(var b=[],d=0;d<c.aa.oa.length;d++)c.aa.oa[d].gn==a&&b.push(c.aa.oa[d]);return b};c.Iu();this.aa.scale=this.scale;d=dd(this.document.q.get("Body",!0));if(!d.ef(this.aa.content))this.aa.content.text=d.text,this.aa.content.za=d.za,
this.aa.ia();n&&this.aa.ia();this.aa.Ub()}A(Jk(this),function(d){var e=d.data,g=e.canvas.J.get(0).style;g.position="absolute";g.left=d.x+"px";g.top=d.y+"px";if(config.clipToPage)g.overflow="hidden";e.Ja(c.scale,c.mode,a,f[e.C.id].Da,b(e.C.id))});V("render","Pages rendered");this.Eu.Ja(this.mode.np());V("render","UI hints rendered");A(Jk(this),function(a){Tj(a.data)});if(!this.Bm&&!this.au&&this.V.length>0&&(this.Bm=!0,!Ya))c.scrollLeft=c.padding-8,c.scrollTop=c.padding-8,c.vb.get(0).scrollLeft=c.scrollLeft,
c.vb.get(0).scrollTop=c.scrollTop;V("ie","raising afterRender event");this.J.triggerHandler("afterRender");J.set("viewport.afterRender");window.lucidRendering=!1;V("render","Render complete");V("ie","vp.render complete")};function Kk(a,b,c){this.LastAction=K(this.Action);this.LastAction.Page=a.id;a=this.LastAction.Properties.Members;b={};if(a!=l)for(var d in a)for(var e=0;e<c.length;e++)if(c[e].id==d){b[c[e].LastAction.id]=!0;break}this.LastAction.Properties.Members=b;return this.LastAction}
function Lk(a,b){this.LastAction=K(this.Action);this.LastAction.id=a.document.Mg();this.LastAction.Page=a.id;this.LastAction.Properties.BoundingBox.x+=b.x;this.LastAction.Properties.BoundingBox.y+=b.y;return this.LastAction}
function Mk(a,b,c){function d(a){if(f.LastAction.Properties[a].Block!=l){for(var b=!1,d=0;d<c.length;d++)if(c[d].id==f.LastAction.Properties[a].Block){f.LastAction.Properties[a].Block=c[d].LastAction.id;b=!0;break}b||(delete f.LastAction.Properties[a].Block,delete f.LastAction.Properties[a].LinkX,delete f.LastAction.Properties[a].LinkY)}if(f.LastAction.Properties[a].Line!=l){b=!1;for(d=0;d<c.length;d++)if(c[d].id==f.LastAction.Properties[a].Line){f.LastAction.Properties[a].Line=c[d].LastAction.id;
b=!0;break}b||(delete f.LastAction.Properties[a].Line,delete f.LastAction.Properties[a].LineP)}}this.LastAction=K(this.Action);this.LastAction.id=a.document.Mg();this.LastAction.Page=a.id;(a=this.LastAction.Properties.ElbowPoints)&&A(a,function(a){a.x+=b.x;a.y+=b.y});for(var a=this.LastAction.Properties.XPlanes,e=0;e<a.length;e++)this.LastAction.Properties.XPlanes[e]+=b.x;a=this.LastAction.Properties.YPlanes;for(e=0;e<a.length;e++)this.LastAction.Properties.YPlanes[e]+=b.y;this.LastAction.Properties.Endpoint1.x+=
b.x;this.LastAction.Properties.Endpoint1.y+=b.y;this.LastAction.Properties.Endpoint2.x+=b.x;this.LastAction.Properties.Endpoint2.y+=b.y;var f=this;return{action:this.LastAction,after:function(){d("Endpoint1");d("Endpoint2")}}}
function Nk(a,b,c){b.Ib(function(){this.pa?Nk(a,this,c):this.sa?c.push({id:this.id,IsBlock:!0,Action:new N("CreateBlock",{Class:this.className,Properties:this.q.Nb()})}):this.fb&&c.push({id:this.id,IsLine:!0,Action:new N("CreateLine",{Properties:this.q.Nb()})})});c.push({id:b.id,IsGroup:!0,Action:new N("CrGr",{Properties:b.q.Nb()})})}
q.rk=function(a){for(var b=l,c=l,d=l,e=l,f=[],g=0;g<a.length;g++){var i=a[g].ja(),j=a[g].q.get("Rotation");j&&(i=db(i,j));if(b==l||i.x<b)b=i.x;if(d==l||i.x+i.w>d)d=i.x+i.w;if(c==l||i.y<c)c=i.y;if(e==l||i.y+i.h>e)e=i.y+i.h}for(g=0;g<a.length;g++)a[g].pa?Nk(this,a[g],f):a[g].sa?f.push({id:a[g].id,IsBlock:!0,Action:new N("CreateBlock",{Class:a[g].className,Properties:a[g].q.Nb()})}):a[g].fb&&f.push({id:a[g].id,IsLine:!0,Action:new N("CreateLine",{Properties:a[g].q.Nb()})});return{Objects:f,Base:{x:(d+
b)/2,y:(e+c)/2},Page:this.V[0].C.id,Size:{w:d-b,h:e-c},Plugins:K(this.document.Ob)}};
q.Yk=function(a,b,c,d){var e=this,f=mh(a.C);if(a.C.id!=b.Page)f=(c=this.document.nb(b.Page))?mh(c):f,c=b.Base.x,d=b.Base.y;c=Math.max(c,f.x+b.Size.w/2);d=Math.max(d,f.y+b.Size.h/2);c=Math.min(c,f.w+f.x-b.Size.w/2);d=Math.min(d,f.h+f.y-b.Size.h/2);c=a.dc(new H(c-b.Base.x,d-b.Base.y,0,0));this.document.Aa();for(f=0;f<b.Plugins.length;f++)d=b.Plugins[f],nc(this.document.Ob,d)||this.document.ba(new N(zg,{URL:d}));var g=a.C.Kd("ZOrder",0),i=l;A(b.Objects,function(a){if(a.Action&&a.Action.Properties&&"ZOrder"in
a.Action.Properties&&(i==l||a.Action.Properties.ZOrder<i))i=a.Action.Properties.ZOrder});A(b.Objects,function(a){a.Action&&a.Action.Properties&&"ZOrder"in a.Action.Properties&&(a.Action.Properties.ZOrder+=g-i+1)});for(var j=[],k=[],f=0;f<b.Objects.length;f++)d=b.Objects[f],d.IsBlock?(d=Lk.call(d,a.C,c),j.push(d)):d.IsLine&&(d=Mk.call(d,a.C,c,b.Objects),j.push(d.action),k.push(d.after));A(k,function(a){a()});A(j,function(a){e.document.ba(a)});for(f=0;f<b.Objects.length;f++)if(d=b.Objects[f],d.IsGroup)d=
Kk.call(d,a.C,0,b.Objects),c=K(d.Properties.Members),d.Properties.Members={},this.document.ba(d),this.document.ba(new N(M,{id:d.id,Property:"Members",Value:c}));if((c=this.mode.Hc())&&c.pa){j=c.q.get("Members");for(f=0;f<b.Objects.length;f++)d=b.Objects[f],d=this.V[0].C.ra(d.LastAction.id),d.parent||(j[d.id]=!0);this.document.ba(new N(M,{id:c.id,Property:"Members",Value:j}))}this.document.xa();this.ec();for(f=0;f<b.Objects.length;f++)d=b.Objects[f],a.Yc(d.LastAction.id,!0)};
function Ok(a,b,c){a.V.length!=0&&a.clipboardData!=l&&a.Yk(a.V[0],a.clipboardData,b,c)}function Pk(a){if(a.V.length!=0){var b=a.getSelection(!0);if(b.length!=0)a.clipboardData=a.rk(b),$.ajax({type:"POST",url:"/users/setClipboard",data:"data[User][clipboard]="+encodeURIComponent(nd(a.clipboardData)),success:o()})}}q.ia=function(){this.Ha=!0;this.J.triggerHandler("invalidate")};q.ig=function(){this.dm=!0;this.J.triggerHandler("invalidateBackground")};
q.Lb=function(a){var b=this;this.mode.name=="diagramming"&&Qk(this.mode,!0);var c={};A(this.V,function(a){c[a.C.id]=a});this.V=[];A(a,function(a){b.V.push(c[a.id]||new Gj(a));delete c[a.id];b.J.append(b.V[b.V.length-1].canvas.J)});for(var d in c)c[d].destroy();this.pages=this.V;this.ia();this.ig();this.Gc=this.V[0]?this.V[0].C.q.get("DPI"):72;J.set("viewport.pages",qc(this.V))};function Dk(a,b){for(var c=0;c<a.V.length;c++)if(a.V[c].C==b||a.V[c].C.id==b)return!0;return!1}q.Hc=function(){return this.mode.Hc()};
q.ae=function(){var a=this;a.document.Aa();J.set("publish.setSelectedPlacement","f");this.Gg(function(){var b;if(this.pa&&!this.ta)this.deleting=!0,Rk(a,this);else if(this.sa&&!this.ta)this.deleting=!0,b=new N("RemoveBlock",{id:this.id});else if(this.fb)this.deleting=!0,b=new N("RemoveLine",{id:this.id});if(b){if(this.parent&&this.parent.pa){var c=this.parent.q.get("Members");delete c[this.id];a.document.ba(new N(M,{id:this.parent.id,Property:"Members",Value:c}))}a.document.ba(b)}});a.document.xa()};
function Rk(a,b){if(b.pa){var c={};b.Ib(function(){c[this.id]=this});a.document.ba(new N(M,{id:b.id,Property:"Members",Value:{}}));F(c,function(b,c){var d;if(c.pa)c.deleting=!0,Rk(a,c);else if(c.sa)c.deleting=!0,d=new N("RemoveBlock",{id:b});else if(c.fb)c.deleting=!0,d=new N("RemoveLine",{id:b});if(d){if(c.parent&&c.parent.pa){var i=c.parent.q.get("Members");delete i[c.id];a.document.ba(new N(M,{id:c.parent.id,Property:"Members",Value:i}))}a.document.ba(d)}});if(b.parent&&b.parent.pa){var d=b.parent.q.get("Members");
delete d[b.id];a.document.ba(new N(M,{id:b.parent.id,Property:"Members",Value:d}))}a.document.ba(new N("RmGr",{id:b.id}))}}
function Jk(a){var b=[],c=a.padding,d=a.scale,e=c;a.V.sort(function(a,b){return a.C.q.get("Order")-b.C.q.get("Order")});if(a.Ov&&a.V.length>1){var f=a.V[0].C.q.get("Size");b.push(new H(c+f.w*d+16,e,f.w*d,f.h*d,a.V[0]));e+=f.h*d+16;for(var g=1;g<a.V.length;g+=2){var i=a.V[g],f=i.C.q.get("Size");b.push(new H(c,e,f.w*d,f.h*d,i));if(g<a.V.length-1){var i=a.V[g+1],j=i.C.q.get("Size");b.push(new H(c+f.w*d+16,e,j.w*d,j.h*d,i));e+=Math.max(f.h,j.h)*d+16}else e+=f.h*d+16}}else A(a.V,function(a){var g=a.C.q.get("Size");
b.push(new H(c,e,g.w*d,g.h*d,a));e+=g.h*d+16});return b}
q.mc=function(a,b){var c=new G(0,0);if(a.originalEvent&&a.originalEvent.touches){var d=a.originalEvent.touches[0];d==l&&(d=a.originalEvent.changedTouches[0]);if(d!=l)a.pageX=d.pageX,a.pageY=d.pageY}var e=this.scale,d=$(this.J).offset(),f=a.pageX-d.left,g=a.pageY-d.top,i=Jk(this);A(i,function(a){var d=Fb(new G(f,g),a);if(b==a.data||!b&&d||i.length==1)return c=new G((f-a.x)/e,(g-a.y)/e,a.data),a=rj(a.data.C),d=a.data,c.x+=d.x*a.x,c.y+=d.y*a.y,!1});return c};
function Pa(a,b,c){var d=a.scale,e=b.x,f=b.y,g=new H(0,0,0,0);A(Jk(a),function(a){if(c==a.data){g=a;var a=rj(a.data.C),b=a.data;e-=b.x*a.x;f-=b.y*a.y;return!1}});return new G(d*e+g.x+0,d*f+g.y+0)}function Sk(a,b){var c=S("viewport.selectarea");(new kh(a.K)).create(c,b)}q.Wv=ea("Ep");
function Hh(a,b){b.x-=40;b.y-=40;b.wb+=80;b.ob+=80;a.scale=Math.min(a.scale,Math.min(a.scrollWidth/b.w,a.scrollHeight/b.h));var c=a.vb.get(0);c.scrollTop=b.y*a.scale+a.padding;c.scrollLeft=b.x*a.scale+a.padding;a.ia();a.ig()}function Ek(){J("canvasEditor.active",function(){pe("textEdit")});J("canvasEditor.inactive",function(){qe("textEdit")})}
q.pl=function(){var a=this;this.K.$&&this.K.$.Dl&&this.K.$.Dl.pl(this.J,"/fonts/drop",function(b){return!a.K.$.Hk()?(L(S("alert.offline.disabled")),!1):!!b.fileName.match(/\.(ttf|otf)$/i)},{complete:function(){$.ajax({type:"GET",url:window.fontUrl+"all",success:function(a){eval(a);J.set("optionBar.refresh")}})},error:function(){a.K.$.da==l?a.K.$.tj():Tk(S("growl.upload.failed"))}})};
q.ji=function(a){if(!(this.mode&&this.mode.name==a)){var b=l;if(this.mode)b=this.mode.name,this.mode.Fg();this.mode=this.mode=this.gj[a]||this.gj.diagramming;this.canvas&&this.cursor("default");this.mode.Ze();b!=this.mode.name&&$(document).trigger("viewport.setMode",[a])}};
function Ch(a,b){var c=a.scrollWidth,d=a.scrollHeight,e=[];A(Jk(a),function(f){var g=f.data,i=mh(g.C),j=i.data,k=j.data,f=new H((a.scrollLeft-f.x)/a.scale+j.x*k.x,(a.scrollTop-f.y)/a.scale+j.y*k.y,c/a.scale,d/a.scale);b||(f=yb(f,i));(f.w>0&&f.h>0||a.V.length==1)&&e.push({Da:f,page:g})});e.sort(function(a,b){return b.Da.w*b.Da.h-a.Da.w*a.Da.h});return e}function Rj(a,b){return b&&a.gj[b]?a.gj[b]:a.mode||a.gj.diagramming}q.cursor=function(a){if(this.$f!=a)this.J.css({cursor:a}),this.$f=a};
function Uk(a){return a.page?a.page.id:"document"}q.ec=function(){this.selection={document:{}};for(var a in this.document.V)this.selection[a]={};$(document).triggerHandler("selectionChange");J.set("page.selectionChange",[]);J.set("optionBar.refresh")};
q.Iq=function(a){var b=this,c=this.Hc(),d=this.document.q.get("bgSelectable")!=0;this.selection={};if(c&&c.pa)c.Ib(function(){b.selection[c.page.id][this.id]=!0});else{if(!a){for(var e in this.document.Oa)this.selection.document[e]=!0;for(var f in this.document.Ea)this.selection.document[f]=!0}F(this.V,function(c,e){a&&a!=e||tj(e.C,function(){(d||!this.Je)&&b.Yc(this.id)})})}$(document).triggerHandler("selectionChange");J.set("page.selectionChange",this.getSelection());J.set("optionBar.refresh")};
q.Yc=function(a,b,c){if((c=c&&c.C.ra(a)||this.document.ra(a))&&!(b&&this.Hc()!=c.parent)&&(!c.Je||this.document.q.get("bgSelectable")!=0))this.selection[Uk(c)]||(this.selection[Uk(c)]={}),this.selection[Uk(c)][a]=!0,$(document).triggerHandler("selectionChange"),J.set("page.selectionChange",this.getSelection()),J.set("optionBar.refresh")};
q.kh=function(a,b){b?delete this.selection[b.C.id][a]:delete this.selection[Uk(this.document.ra(a))][a];$(document).triggerHandler("selectionChange");J.set("page.selectionChange",this.getSelection());J.set("optionBar.refresh")};q.getSelection=function(a,b){var c=[];b?b.Gg(function(){(!a||!this.ta)&&c.push(this)}):this.Gg(function(){(!a||!this.ta)&&c.push(this)});return c};
function Vk(a,b){function c(a){a.pa&&(!b||!a.ta)?a.Ib(function(){c(this)}):nc(d,a)||(!b||!a.ta)&&d.push(a)}var d=[];a.Gg(function(){c(this)});return d}
q.Gg=function(a){var b=this,c;for(c in this.document.Oa)if(this.selection.document[c]&&a.call(this.document.Oa[c])=="stop")return;for(var d in this.document.Ea)if(this.selection.document[d]&&a.call(this.document.Ea[d])=="stop")return;var e=!1,f;for(f in this.document.V){if(e=="stop")break;this.document.V[f].Ib(function(){if(b.selection[f]&&b.selection[f][this.id])return e=a.call(this)})}};function Wk(a){a=a.getSelection();if(a.length==0)return!1;var b=!0;A(a,function(a){a.ta||(b=!1)});return b}
function Xk(a){if(a.V.length==0)return!1;a=a.getSelection(!0);return a.length==1&&a[0].fb}function Yk(a){if(a.V.length==0)return!1;for(var a=Vk(a,!0),b=0,c=a.length;b<c;b++)if(!a[b].fb)return!1;return a.length>0}function Zk(a){if(a.V.length==0)return!1;for(var a=Vk(a,!0),b=0,c=a.length;b<c;b++)if(!a[b].sa)return!1;return a.length>0}q.Cf=function(a){return this.V.length>0&&this.getSelection(!!a).length>0};q.Ti=function(a){var b=l;$.each(this.V,function(c,d){d.C.id==a&&(b=d)});return b};
q.Ya=function(a){var b=a.id;if(a.page==l&&(!this.Ra[b]||this.Ra[b].C!=a))a.pa?this.Ra[b]=new Zi(l,a):a.sa?(this.Ra[b]=new Th(l,a),mi(this.Ra[b])):delete this.Ra[b];return this.Ra[b]||l};q.ac=function(a,b){if(b)return b.C.id in this.selection&&!!this.selection[b.C.id][a];var c=this.document.ra(a);return!(!c||!this.selection[Uk(c)]||!this.selection[Uk(c)][a])};q.Rg=function(a,b,c){for(;a.parent&&a.parent.pa;){if(c?c.ac(a.parent.id):this.ac(a.parent.id))return b?!a.parent.ta:!0;a=a.parent}return!1};
zk.prototype.setPages=zk.prototype.Lb;zk.prototype.getActiveGroup=zk.prototype.Hc;zk.prototype.getClipboardData=zk.prototype.rk;zk.prototype.pasteClipboardData=zk.prototype.Yk;zk.prototype.deleteSelection=zk.prototype.ae;zk.prototype.invalidate=zk.prototype.ia;zk.prototype.getLastMousePos=zk.prototype.Wv;zk.prototype.eventLocation=zk.prototype.mc;zk.prototype.setMode=zk.prototype.ji;zk.prototype.getSelection=zk.prototype.getSelection;zk.prototype.isSelected=zk.prototype.ac;
zk.prototype.unselectAll=zk.prototype.ec;zk.prototype.getPageById=zk.prototype.Ti;var $k=!1,al=!1,bl=!0;function cl(a){$k||($k=!0,setInterval(dl,1E3),$(document).ajaxError(function(){setTimeout(function(){cl();window.localStorage.isLucidOnline&&delete window.localStorage.isLucidOnline;dl()},1E3)}),$(document).ajaxSuccess(function(){el()}),a?(al=!0,$(document).triggerHandler("online"),J.set("online",!0)):(al=!1,$(document).triggerHandler("offline"),J.set("online",!1)))}
function dl(){cl();var a=window.localStorage.isLucidOnline,b=(new Date).getTime();!bl||a&&parseInt(a,10)>b-5E3?al||(al=!0,$(document).triggerHandler("online"),J.set("online",!0)):al&&(al=!1,$(document).triggerHandler("offline"),J.set("online",!1))}function el(a){cl(!0);if(a){if(bl&&!("isLucidOnline"in window.localStorage))return;dl()}try{window.localStorage.isLucidOnline=String((new Date).getTime())}catch(b){bl=!1}al||dl()}function fl(){cl();dl();return al};function Tk(a,b){return Tk.Sw(a,b)}Tk.create=function(a){var b=document.getElementById("growlDock"),b=!b||a?$(Tk.Re.Dv).attr("id","growlDock").addClass("growl"):$(b),a=$("#canvas-window-opening,div.viewport-container").offset();$("body").append(b.css(Tk.Re.Cv).css({top:a.top+8+"px",left:a.left+8+"px"}));return b};Tk.Ua=function(a,b,c){for(;b.test(a);)a=a.replace(b,c);return a};
Tk.Sw=function(a,b){var c=Tk.create(),d=Tk.Re.zt;typeof d=="object"&&(d=$(d).html());var d=Tk.Ua(d,/%message%/,a?a:""),e=$(d).hide().css(Tk.Re.Pw).fadeIn(Tk.Re.$m);Tk.Re.Qw(e);c.append(e);$(e).click(function(){e.fadeOut(Tk.Re.$m,function(){$(this).remove()})});c=b?b:Tk.Re.Bv;c>0&&setTimeout(function(){Tk.Re.Rw(e,function(){e.remove()})},c);return function(){$(e).click()}};
Tk.Re={Dv:"<div></div>",Cv:{position:"absolute",zIndex:790},zt:'<div class="lucid-growl ui-corner-all gui-box-shadow"><div class="close" /><div class="message">%message%</div></div>',Pw:{opacity:0.9},Qw:function(a){a.css({opacity:0}).fadeIn(Tk.Re.$m)},Rw:function(a,b){a.animate({opacity:0,height:"0px"},{duration:Tk.Re.$m,complete:b})},$m:200,Bv:6E3,Vy:function(a){Tk.Re.zt=$(a)}};
function gl(a){function b(){e.remove();d.children().last().slideDown(hl)}var c;c==l&&(c=!0);if(c&&!fl())return l;var d;il||(il=$(jl),$(kl||"body").append(il.css(ll)));d=il;d.children().stop(!0,!0).hide();c=ml;c=Tk.Ua(c,/%message%/,a?a:"");var e=$(c).addClass("").addClass("");d.append(e);e.hide();e.slideDown(hl);$(e).find(".rSide .close").click(b);return b}
var il=l,kl="body",jl='<div class="ubergrowl-container"></div>',ll={position:"absolute",top:"0",height:"0",zIndex:790},ml='<div class="lucid-ubergrowl"><div class="lSide"></div><div class="message">%message%</div><div class="rSide"><div class="close"></div></div></div>',hl="fast";t("lucid.growl",Tk);function nl(a,b,c,d,e,f){var g=this;this.wc=b;this.Lh=c;this.Qx=d;this.Zi=e||o();this.Tr=f||l;this.zs={Hj:{},Xi:{}};this.ih={Hj:{},Xi:{}};this.Jf=[function(){g.ih.Hj={};g.ih.Xi={}}];$('<div class="invite-form-container"></div>').appendTo(a).append(y(this.Ie()))}
nl.prototype.Ie=function(){var a=this,b=this.Qx,c=l;return{children:[{Q:"clear"},{Q:"left",children:[{Q:"spacer"},{R:"span",html:"<strong>"+S("invitation.new")+":&nbsp;</strong>"}]},{Q:"left",children:[{Q:"left",children:[{R:"input",id:"invite_method_email",type:"radio",value:"email",attr:{name:"invite_method",checked:"checked"},create:function(b){b.click(function(){ol()});a.Jf.push(function(){b.attr("checked","checked");ol()})}},{R:"label",Q:"inline",text:S("Email")+(b?"/Users/Groups":"")+"&nbsp;&nbsp;&nbsp;",
attr:{"for":"invite_method_email"}}]},{Q:"left",children:[{R:"input",id:"invite_method_link",type:"radio",value:"link",attr:{name:"invite_method"},create:function(a){a.click(function(){$("#invite_method_email_content").hide();$("#invite_method_link_content").show();$("#invite_link").hide()})}},{R:"label",Q:"inline",text:S("link.generate"),attr:{"for":"invite_method_link"}}]}]},{id:"invite_method_email_content",children:[{Q:"spacer"},{R:"input",id:"invite_email",type:"text",Q:"left lighter fullwidth",
title:b?S("input.email_user_group.prompt"):S("input.email.prompt"),value:b?S("input.email_user_group.prompt"):S("input.email.prompt"),create:function(d){var e=!0,f=!1;a.Jf.push(function(){e=!0});d.focus(function(){$(this).val()==$(this).get(0).title&&($(this).removeClass("lighter"),$(this).val(""))}).blur(function(){$(this).val()==""&&($(this).addClass("lighter"),$(this).val($(this).get(0).title))});b&&($.ajax({type:"POST",url:"/groupEntries/listGroupsForOrg",timeout:1E4,data:"",success:function(a){try{c=
gc(a)}catch(b){}},error:o()}),d.autocomplete({autoFocus:!0,minLength:0,source:function(b,d){if(c){var e=[],f=[],n=RegExp(b.term,"i"),m=b.term=="",p=function(a,b,c,d){if(b)if(c=c?c.search(n):b.search(n),c==0&&!d)return e.push({label:b,value:a}),!0;else if(c>=0&&e.length+f.length<50)return f.push({label:b,value:a}),!0;return!1};A(c,function(b){if(!(m&&e.length+f.length>=50)&&!a.ih.Hj[b.User.id]&&!a.ih.Xi[b.GroupEntry.id]&&!a.zs.Hj[b.User.id]&&!a.zs.Xi[b.GroupEntry.id]){var c=!1;p(b,b.GroupEntry.name);
b.User.first_name&&b.User.last_name&&(c=p(b,b.User.first_name+" "+b.User.last_name,b.User.first_name,m)||p(b,b.User.last_name+", "+b.User.first_name,b.User.last_name,m));c||p(b,b.User.email,l,m)}});f.length==0&&e.length==0&&Td(b.term)&&e.push({label:b.term,value:b.term});d(e.concat(f))}},focus:fa(!1),open:function(){e=!1},close:function(){f=!0;setTimeout(function(){e=!0;f=!1},100)},select:function(b,c){var d=c.item.value;d.User&&d.User.id?a.ih.Hj[d.User.id]=1:d.GroupEntry&&d.User.id&&(a.ih.Xi[d.GroupEntry.id]=
1);pl(a,c.item.label,d);this.value="";return!1}}).focus(function(){f||$(this).autocomplete("search","")}).keydown(function(a){e&&a.keyCode==13&&$(this).val()==""&&$(this).triggerHandler("focus")}).click(function(){e&&$(this).val()==""&&$(this).triggerHandler("focus")}),setTimeout(function(){d.autocomplete("option","appendTo","div.invite-form-container")},1E3),a.Jf.push(function(){d.autocomplete("close")}));a.Jf.push(function(){d.val(d.attr("title")).addClass("lighter")})}},{Q:"spacer"},{Q:"right",
children:[{R:"select",id:"invite_role_email",children:[{R:"option",value:"viewer",text:S("collaborate.option.view")},{R:"option",value:"editor",text:S("collaborate.option.edit"),attr:{selected:"selected"}},{R:"option",value:"owner",text:S("collaborate.option.own")}]}]},{Q:"clear"},{id:"invite_entry_container",create:function(b){a.Jf.push(function(){b.empty()})}},{Q:"spacer"},{R:"textarea",id:"invite_send_message",Q:"fullwidth lighter",css:{resize:"vertical"},attr:{rows:"3"},text:ql(),create:function(b){b.focus(function(){$(this).val()==
ql()&&$(this).val("").removeClass("lighter")}).blur(function(){$(this).val()==""&&$(this).val(ql()).addClass("lighter")});a.Jf.push(function(){b.val(ql()).addClass("lighter")})}},{R:"input",type:"button",value:S("invitation.send"),Q:"button right",create:function(b){b.click(function(){function c(b,d){k++;qa(b)?b.User.id?rl(a,b,i,j,r(f,l,d||l)):sl(a,b,i,j,r(f,l,d||l)):tl(a,b,i,j,r(f,l,d||l))}function f(c,e){c&&c.remove();e&&(n=!0);k--;k<=0&&(b.val(S("invitation.send")),$("#invite_send_message").addClass("lighter"),
$("#invite_send_message").val(ql()),$("#invite_entry_container").empty(),!n&&a.Tr&&a.Tr())}if(a.wc==l&&a.Lh==l)L(S("alert.share.unsaved"));else{var g=$("#invite_email"),i=$("#invite_send_message").val(),j=$("#invite_role_email").val(),k=0,n=!1,i=i==ql()?"":i;$(this).val(S("invitation.sending"));var m=$("#invite_entry_container").children();m.length>0?m.each(function(){c($(this).data("groupEntry"),$(this))}):c(g.val());g.val("");g.addClass("lighter");g.val(g.attr("title"))}});a.Jf.push(function(){b.val(S("invitation.send"))})}},
{Q:"clear"}]},{id:"invite_method_link_content",create:function(a){a.hide()},children:[{R:"input",id:"invite_link",type:"text",Q:"fullwidth",create:function(b){b.click(function(){$(this).select()});a.Jf.push(function(){b.val("")})}},{Q:"left",children:[{R:"input",id:"invitation_multi_link",type:"checkbox",attr:{name:"multi"}},{R:"label",Q:"inline",text:S("Multi-use"),attr:{"for":"invitation_multi_link"},children:[{R:"span",Q:"lighter",text:"("+S("description.multiuse")+")"}]}]},{Q:"right",children:[{Q:"spacer"},
{R:"select",id:"invite_role_link",children:[{R:"option",value:"viewer",text:S("collaborate.option.view")},{R:"option",value:"editor",text:S("collaborate.option.edit"),attr:{selected:"selected"}},{R:"option",value:"owner",text:S("collaborate.option.own")}]}]},{Q:"clear"},{R:"input",type:"button",value:S("link.generate"),Q:"button right",create:function(b){b.click(function(){if(ul(a)){var c=$("#invitation_multi_link").is(":checked")?"1":"0",f=$("#invite_role_link").val(),g=a.wc==l?"folder_entry_id":
"document_id",i=(a.wc==l?a.Lh:a.wc)||"";$(this).val(S("link.generating"));$.ajax({type:"POST",url:"/invitations/invite",data:"data[Invitation]["+g+"]="+encodeURIComponent(i)+"&data[Invitation][to]="+encodeURIComponent("Collaborator")+"&data[Invitation][role]="+encodeURIComponent(f)+"&data[Invitation][multi]="+encodeURIComponent(c)+"&data[Invitation][message]="+encodeURIComponent(""),success:function(c){try{var e=gc(c)}catch(g){return}e.success?($("#invite_link").show(),$("#invite_link").val("http://"+
window.location.hostname+"/invitations/accept/"+e.invitation_id).focus().select(),b.val(S("link.generate"))):a.Zi(e.error||S("growl.invitation.send.error"))},status:l})}else L(S("alert.share.unsaved"))});a.Jf.push(function(){b.val(S("link.generate"))})}},{Q:"clear"}]}]}};function ql(){return S("message.personal.include")+" ("+S("Optional")+")"}function ol(){$("#invite_method_link_content").hide();$("#invite_link").val("");$("#invite_method_email_content").show()}
function pl(a,b,c){$("#invite_entry_container").append(y({Q:"invite-form-tag",text:b,create:function(a){a.data("groupEntry",c)},children:[{Q:"icon-13 icon-13-close",css:{position:"absolute",top:"2px",right:"2px"},create:function(b){b.click(function(){c.User&&c.User.id?delete a.ih.Hj[c.User.id]:c.GroupEntry&&c.GroupEntry.id&&delete a.ih.Xi[c.GroupEntry.id];b.parent().remove()})}}]}))}
function rl(a,b,c,d,e){var f=b.User.id;if(!f||!d||!ul(a))e(!0);else{var g=a.wc==l?"FolderEntryUser":"DocumentsUser";$.ajax({type:"POST",url:"/"+(a.wc==l?"folderEntryUsers":"documentsUsers")+"/add",data:"data["+g+"]["+(a.wc==l?"folder_entry_id":"document_id")+"]="+encodeURIComponent((a.wc==l?a.Lh:a.wc)||"")+"&data["+g+"][user_id]="+encodeURIComponent(f)+"&data["+g+"][role]="+encodeURIComponent(d)+"&data["+g+"][message]="+encodeURIComponent(c),success:function(b){try{var c=gc(b)}catch(d){e();return}c.success||
(c.error?a.Zi(c.error):a.Zi(S("growl.invitation.send.error")));e()},status:"Sending invitation to "+((b.User.first_name||"")+" "+(b.User.last_name||""))})}}
function sl(a,b,c,d,e){var f=b.GroupEntry.id;if(!f||!d||!ul(a))e(!0);else{var g=a.wc==l?"FolderEntryUser":"DocumentsUser";$.ajax({type:"POST",url:"/"+(a.wc==l?"folderEntryUsers":"documentsUsers")+"/add",data:"data["+g+"]["+(a.wc==l?"folder_entry_id":"document_id")+"]="+encodeURIComponent((a.wc==l?a.Lh:a.wc)||"")+"&data["+g+"][group_entry_id]="+encodeURIComponent(f)+"&data["+g+"][role]="+encodeURIComponent(d)+"&data["+g+"][message]="+encodeURIComponent(c),success:function(b){try{var c=gc(b)}catch(d){e();
return}c.success||(c.error?a.Zi(c.error):a.Zi(S("growl.invitation.send.error")));e()},status:"Sending invitation to group "+(b.GroupEntry.name||"")})}}
function tl(a,b,c,d,e){ul(a)?(b=Ud(b),b.length==0?(L(S("alert.email.invite.invalid")),e(!0)):$.ajax({type:"POST",url:"/invitations/invite",data:"data[Invitation]["+(a.wc==l?"folder_entry_id":"document_id")+"]="+encodeURIComponent((a.wc==l?a.Lh:a.wc)||"")+"&data[Invitation][to]="+encodeURIComponent(b.join(", "))+"&data[Invitation][role]="+encodeURIComponent(d)+"&data[Invitation][multi]="+encodeURIComponent("0")+"&data[Invitation][message]="+encodeURIComponent(c),success:function(b){try{var c=gc(b)}catch(d){e();
return}c.success||a.Zi(c.error||S("growl.invitation.send.error"));e()},status:"Sending invitation to "+b.join(", ")})):e(!0)}function ul(a){return a.wc!=l||a.Lh!=l}nl.prototype.reset=function(){A(this.Jf,function(a){a()})};function vl(a){var b=this;this.K=a;this.dialog=wl(this);this.Pd=xl(this);this.Sm=0;J("default.publish",function(){b.K.$.zb()?b.K.$.Oe():b.K.$.Qa=="owner"&&b.open("publish")});J("default.share",function(){b.K.$.zb()?b.K.$.Oe():b.K.$.Qa=="owner"&&b.open()});J("share.users",function(a){b.Pr=a;yl(b,b.Pr)})}
function wl(a){var b=a.K.document,c=$('<div title="'+S("Share and publish")+'" id="share_dialog"></div>').append('<div title="'+S("dialog.share.invite.tab")+'" id="share-dlg"><div><strong>'+S("dialog.share.collaborators.heading")+':</strong></div><div id="share-dlg-collaborators" class="scrollable"></div><div class="spacer"></div><div id="share-dlg-invitations-container"><div class="spacer"></div><div><strong>'+S("invitations.active")+':</strong></div><div id="share-dlg-invitations" class="scrollable"></div><div class="spacer"></div></div><div id="invite_form_container"></div>').append('<div title="'+
S("publishpanel.title")+'" id="publish-dlg"><div id="publish-format"><label class="left-control"><input type="checkbox" name="format" value="web" id="publish_web_ckbox" /><img src="/img/loading_16.gif" class="hidden" id="publish_web_loading" /><span id="web_publish"></span></label><div class="clear"></div><label class="left-control"><input type="checkbox" name="format" value="pdf" id="publish_pdf_ckbox" /><img src="/img/loading_16.gif" class="hidden" id="publish_pdf_loading" /><span id="pdf_publish"></span></label><div class="clear"></div><label class="left-control"><input type="checkbox" name="format" value="community" id="publish_community_ckbox" /><span id="community_publish"></span></label><div class="clear"></div><hr /><div class="spacer"></div><div id="page_publish_toggle"><div class="left-control"><div class="icon-13-button left"><div id="pub_pdfimg_page_toggle" class="icon-13 icon-13-tri-d left"></div></div></div><div><div class="right item hasbutton"><span id="publish_new_page" class="button small inline">'+
S("button.page.publish")+'</span></div><label for="pub_pdfimg_page_toggle">'+S("label.pdf.image")+'<span class="lighter"> ('+S("label.publish.page.single")+')</span></label><div class="clear"></div><div id="published_pages" class="content-toggle scrollable"></div></div></div><div class="spacer2"></div><div id="selection_publish_toggle"><div class="left-control"><div class="icon-13-button left"><div id="pub_img_selection_toggle" class="icon-13 icon-13-tri-d left"></div></div></div><div><div class="right item hasbutton"><span id="publish_new_selection" class="button small inline">'+
S("button.selection.publish")+'</span></div><label for="pub_img_selection_toggle">'+S("Image")+' <span class="lighter">('+S("label.publish.page.part")+')</span></label><div class="clear"></div><div id="published_selections" class="content-toggle scrollable"></div></div></div></div><div id="publish-content"></div></div>').lucidtabs(),c=new se(c,{Ld:!0,width:"500px",title:S("Share and publish"),$c:!0,open:function(){$(document).bind("documentUpdatePublished.publishDlg",function(){if(!Na(a.bm,b.uj?b.uj:
[]))a.bm=b.uj?b.uj:[],zl(a)});zl(a)},close:function(){$(document).unbind("documentUpdatePublished.publishDlg");a.yp&&a.yp.reset();a.Sm=0}});Al(a,$(c.body));a.yp=new nl($("#invite_form_container"),b.id,l,!(!b.$.da||!b.$.da.organization_id),function(a){Tk(a)});return c}
function Al(a,b){var c=a.K.document;Bl();Cl();Dl();b.find("#publish_web_ckbox").change(function(){$("#publish_web_loading").show();$(this).is(":checked")?a.K.$.vj("web",l,!1,l,function(a){gc(a).success?El(b,c.id):Bl()}):Fl(c.id)});b.find("#publish_pdf_ckbox").change(function(){$("#publish_pdf_loading").show();$(this).is(":checked")?a.K.$.vj("pdf",l,!1,l,function(a){a=gc(a);a.success?Gl(b,a.id):Cl()}):Hl(a)});b.find("#pub_pdfimg_page_toggle").click(function(){$("#published_pages").slideToggle("fast",
function(){$(this).is(":visible")?$("#pub_pdfimg_page_toggle").addClass("icon-13-tri-d").removeClass("icon-13-tri-r"):$("#pub_pdfimg_page_toggle").addClass("icon-13-tri-r").removeClass("icon-13-tri-d")});return!1});b.find("#publish_new_page").click(function(){a.Pd.find("#select_page_ui").show();a.Pd.find("#pdf_format_input").show();a.Pd.find("#selection_publish").removeAttr("checked");a.Pd.find("#publish_button").val(S("button.publish"));a.Pd.find("#format_pdf").attr("checked","checked");Il(a.Pd.find("#publish-dpi"));
a.Pd.open()});b.find("#pub_img_selection_toggle").click(function(){$("#published_selections").slideToggle("fast",function(){$(this).is(":visible")?$("#pub_img_selection_toggle").addClass("icon-13-tri-d").removeClass("icon-13-tri-r"):$("#pub_img_selection_toggle").addClass("icon-13-tri-r").removeClass("icon-13-tri-d")});return!1});b.find("#publish_new_selection").click(function(){a.Pd.find("#select_page_ui").hide();a.Pd.find("#pdf_format_input").hide();Jl(a.Pd.find("#publish-dpi"));a.Pd.find("#format_png").attr("checked",
"checked");a.Pd.find("#publish_button").val(S("button.area.select.publish"));a.Pd.find("#selection_publish").attr("checked","checked");a.Pd.open()});b.find("#publish_community_ckbox").change(function(){$(this).attr("checked")?($("#publish_community_ckbox").removeAttr("checked"),a.K.$.zb()?a.K.$.Oe(function(){a.K.$.Hn(function(){Kl(a,b,c.id)})}):a.K.$.Hn(function(){Kl(a,b,c.id)})):(Ll(a.K.$),Dl())})}
function Kl(a,b,c){var d=S("label.community.shared"),c=$('<div class="right item"><div class="icon-13-button edit_share left" title="'+S("Edit")+'"><div class="icon-13 icon-13-page-edit"></div></div><div class="icon-13-button toggle_address left" title="'+S("tooltip.url.show")+'"><div class="icon-13 icon-13-link"></div></div></div><div class="item"><label><a class="link" href="/community/examples/view/'+c+'" target="_blank">'+d+'</a></label><input type="text" value="" class="hidden" /></div><div class="clear" />');
c.children("input").hide().click(function(a){a.preventDefault()});$("#publish_community_ckbox").attr("checked","checked");c.find("div.toggle_address").click(function(a){a.preventDefault();Ml($(this))});c.find("div.edit_share").click(function(b){b.preventDefault();a.K.$.Hn()});b.find("#community_publish").empty().append(c)}
function Gl(a,b){var c=S("label.published.fulldoc"),c=$('<div class="right item"><div class="icon-13-button toggle_address left" title="'+S("tooltip.url.show")+'"><div class="icon-13 icon-13-link"></div></div></div><div class="item"><label><a class="link" href="/publicSegments/view/'+b+'" target="_blank">PDF ('+c+')</a></label><input type="text" value="" class="hidden" /></div><div class="clear" />');c.children("input").hide().click(function(a){a.preventDefault()});$("#publish_pdf_ckbox").show().attr("checked",
"checked");$("#publish_pdf_loading").hide();c.find("div.toggle_address").click(function(a){a.preventDefault();Ml($(this))});a.find("#pdf_publish").empty().append(c)}
function El(a,b){var c=S("label.publish.webpage"),c=$('<div class="right item"><div class="icon-13-button toggle_address left" title="'+S("tooltip.url.show")+'"><div class="icon-13 icon-13-link"></div></div></div><div class="item"><label><a class="link" href="/documents/view/'+b+'" target="_blank">'+c+'</a></label><input type="text" value="" /></div><div class="clear" />');c.children("input").hide().click(function(a){a.preventDefault()});$("#publish_web_ckbox").show().attr("checked","checked");$("#publish_web_loading").hide();
c.find("div.toggle_address").click(function(a){a.preventDefault();Ml($(this))});a.find("#web_publish").empty().append(c)}
function Hl(a){var b=Nl(a);ue("<p>"+S("confirm.document.unpublish")+"</p><p>"+S("confirm.file.links.break")+"</p>",function(){for(var a=0;a<b.length;a++){var d=b[a];$.ajax({type:"POST",url:"/publicSegments/delete",data:"data[PublicSegment][id]="+encodeURIComponent(d.id)+"&data[PublicSegment][document_id]="+encodeURIComponent(d.document_id),success:function(a){a=gc(a);a.success?Cl():L(a.error)},status:"Un-publishing status"})}},function(){$("#publish_pdf_ckbox").attr({checked:!0});$("#publish_pdf_loading").hide()})}
function Fl(a){var b="<p>"+S("confirm.document.unpublish")+"</p><p>"+S("confirm.document.links.break")+"</p>";ue(b,function(){$.ajax({type:"POST",url:"/documents/publish",data:"data[Document][id]="+encodeURIComponent(a)+"&data[Document][published]=0",success:function(a){a=gc(a);a.success?Bl():L(a.error)},status:"Un-publishing status"})},function(){$("#publish_web_ckbox").attr({checked:!0});$("#publish_web_loading").hide()})}
function Dl(){$("#publish_community_ckbox").removeAttr("checked");$("#community_publish").empty().append('<div class="item"><label>'+S("label.community.share")+"</label></div>")}function Bl(){$("#publish_web_ckbox").show().removeAttr("checked");$("#publish_web_loading").hide();$("#web_publish").empty().append('<div class="item"><label>'+S("label.publish.webpage")+"</label></div>")}
function Cl(){$("#publish_pdf_ckbox").show().removeAttr("checked");$("#publish_pdf_loading").hide();$("#pdf_publish").empty().append('<div class="item"><label>PDF<span class="lighter"> ('+S("label.published.fulldoc")+")</span></label></div>")}function zl(a){var b=a.K.$.document;b.Lm?El($("#publish-dlg"),b.id):Bl();var c=Nl(a);c.length>0?Gl($("#publish-dlg"),c[0].id):Cl();b.Zs?Kl(a,$("#publish-dlg"),b.id):Dl();Ol(a);a.K.$.Qa=="owner"&&yl(a,a.Pr)}
function yl(a,b){if(!(a.Sm>0)){var c;if(b&&b.length!=0){c=a.K.$?a.K.$.da.id:0;for(var d=a.K.$.document,e=$("#share-dlg-collaborators").empty(),f=$("#share-dlg-invitations").empty(),g=0,i,j=0;j<b.length;j++){var k=b[j];if(k.id!=l)if(c==k.id)i='<div class="collaborator top"><div class="icon-13 icon-13-user-online left"></div><div class="name">'+k.name+'</div><div class="right"><div class="left">'+S("collaborate.option.own")+'</div><div class="icon-13-button left"></div></div></div>';else if(!k.Fd&&
d.Xr==k.id){var n=k.me?"online":"offline",k='<div class="collaborator"><div class="icon-13 icon-13-user-'+n+' left"></div><div class="name">'+k.name+'</div><div class="right"><div class="left">'+S("collaborate.option.own")+'</div><div class="icon-13-button left"></div></div></div>';e.append(k)}else{var n=k.me?"online":"offline",m=k.Fd?"icon-13-user-group":"icon-13-user-"+n,p=k.name;k.bj&&(k.name==="Collaborator"?(n="add",p=k.rt!="0"?S("Multi-use"):S("label.invitation.single")):(n="invite",k.rt!="0"&&
(p+=" ("+S("Multi-use")+")")));n=!1;a.K.$.Qa=="owner"&&(n=!0);m=$('<div class="collaborator"><div class="icon-13 '+m+' left"></div><div class="right"><div class="left"><select id="user_role_select" name="user_role_select"><option value="viewer">'+S("collaborate.option.view")+'</option><option value="editor">'+S("collaborate.option.edit")+'</option><option value="owner">'+S("collaborate.option.own")+"</option></select></div>"+(k.bj?'<div class="icon-13-button left"><div class="icon-13 icon-13-link left"></div></div>':
"")+'<div class="icon-13-button left"><div class="icon-13 icon-13-close left"></div></div></div><div class="item"><div>'+p+"</div>"+(k.bj?'<input type="text" value="http://'+window.location.hostname+"/invitations/accept/"+k.id+'" style="width: 320px;" />':"")+"</div></div>");m.find("div.icon-13-link").click(function(){var b=$(this).closest(".right").nextAll(".item"),c=b.find("div"),b=b.find("input");c.is(":visible")?(c.hide(),b.show().focus().select(),a.Sm++):(b.blur().hide(),c.show(),a.Sm--)});m.find("div.icon-13-close").click(function(b,
c,d){return function(){$(this).parent().parent().append('<img src="/img/loading_16.gif" class="left" />');$(this).parent().remove();c?$.ajax({type:"POST",url:"/invitations/delete",data:"data[Invitation][id]="+encodeURIComponent(b),success:function(a){gc(a).success||Tk(S("growl.invitation.remove.error"))},status:"Canceling invitation"}):$.ajax({type:"POST",url:"/documentsUsers/delete",data:"data[DocumentsUser][document_id]="+encodeURIComponent(a.K.$.document.id)+"&data[DocumentsUser]["+(d?"group_entry_id":
"user_id")+"]="+encodeURIComponent(b),success:function(a){gc(a).success||Tk(S("growl.collaborator.remove.error"))},status:"Removing collaborator"})}}(k.id,k.bj,k.Fd));p=m.find("#user_role_select");p.val(k.Qa);n||p.attr("disabled","disabled");p.change(function(b,c,d){return function(){var e=$(this).val();c?$.ajax({type:"POST",url:"/invitations/edit",data:"data[Invitation][id]="+encodeURIComponent(b)+"&data[Invitation][role]="+encodeURIComponent(e),success:function(a){gc(a).success||Tk(S("growl.collaborator.role.update.error"))},
status:"Updating invitation role"}):$.ajax({type:"POST",url:"/documentsUsers/add",data:"data[DocumentsUser][document_id]="+encodeURIComponent(a.K.$.document.id)+"&data[DocumentsUser]["+(d?"group_entry_id":"user_id")+"]="+encodeURIComponent(b)+"&data[DocumentsUser][role]="+encodeURIComponent(e),success:function(a){gc(a).success||Tk(S("growl.collaborator.role.update.error"))},status:"Updating collaborator role"})}}(k.id,k.bj,k.Fd));k.bj?(g++,g==1&&m.addClass("top"),f.append(m)):e.append(m)}}i&&e.prepend(i);
g==0?$("#share-dlg-invitations-container").hide():$("#share-dlg-invitations-container").show();e.append('<div class="clear"></div>');f.append('<div class="clear"></div>')}}}
function Ol(a){var b=a.K.$.document,a=Pl(a),c=$("#published_pages"),d=$("#published_selections");c.empty();d.empty();for(var e=0,f=0;f<a.length;f++){var g=a[f];if(b.nb(g.page)){var i=g.page?b.nb(g.page).q.get("Title"):S("label.publish.document"),j=g.format.toUpperCase(),k=c,n=new I;g.dpi&&g.dpi!=""&&(j+=", "+g.dpi+" DPI");g.dpi&&g.w&&g.h&&(jg(n,[e%360,1,0.5]),e+=33,k=d);i=$('<div><div class="right item"><div class="icon-13-button toggle_address left" title="'+S("tooltip.url.show")+'"><div class="icon-13 icon-13-link"></div></div><div class="icon-13-button delete left" title="'+
S("Delete")+'"><div class="icon-13 icon-13-close"></div></div></div><div class="item"><label><a class="link" href="/publicSegments/view/'+g.id+"/image."+g.format+'" target="_blank">'+i+" ("+j+')</a></label><input type="text" value="" class="hidden" />'+(n?' <span class="color" style="background-color:'+n.tb()+'">&nbsp;&nbsp;&nbsp;</span>':"")+'</div><div class="clear" /></div>');i.find("div.toggle_address").click(function(){Ml($(this))});i.find("div.delete").click(function(a){return function(){var b=
$(this);ue("<p>"+a.page?S("confirm.segment.unpublish"):S("confirm.document.unpublish")+"</p><p>"+a.format=="pdf"?S("confirm.file.links.break"):S("confirm.image.links.break")+"</p>",function(){b.parent().append('<img src="/img/loading_16.gif" class="left" />');b.remove();$.ajax({type:"POST",url:"/publicSegments/delete",data:"data[PublicSegment][id]="+encodeURIComponent(a.id)+"&data[PublicSegment][document_id]="+encodeURIComponent(a.document_id),success:function(a){a=gc(a);a.success||L(a.error)},status:"Un-publishing status"})})}}(g));
k.append(i)}}}function Pl(a){return Gf(a.bm,function(a){return a.page})}function Nl(a){a.bm=a.K.$.document.uj?a.K.$.document.uj:[];return Gf(a.bm,function(a){return a.format.toUpperCase()=="PDF"&&a.page==l})}function Ml(a){var b=a.parent().next(),a=b.find("label"),c=a.find("a"),b=b.find("input");a.is(":visible")?(a.hide(),b.val(c.get(0).href.replace("https://","http://")).show().focus().select()):(b.blur().hide(),a.show())}
function xl(a){$("#publish_page_dialog").remove();var b='<div title="'+S("publishpanel.title")+'" id="publish_page_dialog"><input id="selection_publish" class="hidden" type="checkbox"><div id="select_page_ui"><label for="page_select">'+S("label.publish.page.select")+'</label><div id="page_select"></div></div><div class="clear"></div><div id="publish-details-format"></div><div id="publish-dpi"></div></div>',b=$(b);b.find("#publish-details-format").empty().append('<fieldset class="ui-corner-all"><legend>'+
S("legend.publish.format")+'</legend><div id="pdf_format_input"><input type="radio" name="format" value="pdf" id="format_pdf" checked="checked"/> <label for="format_pdf" class="inline">PDF <span class="lighter">('+S("label.publish.pdf.comment")+')</span></label></div><div><input type="radio" name="format" value="png" id="format_png" /> <label for="format_png" class="inline">PNG <span class="lighter">('+S("label.publish.png.comment")+')</span></label></div><div><input type="radio" name="format" value="jpeg" id="format_jpeg" /> <label for="format_jpeg" class="inline">JPEG</label></div></fieldset>');
b.find("#publish-details-format input:radio").change(function(){switch($(this).closest("#publish-details-format").find("input:radio:checked").val()){case "pdf":Il(c.find("#publish-dpi"));break;case "png":case "jpeg":Jl(c.find("#publish-dpi"))}});var c=new se(b,{Ld:!0,width:400,title:S("publishpanel.title"),$c:!0,hb:[{label:S("button.publish"),action:function(){c.close();var b=c.find("#selection_publish").attr("checked"),e=b?a.K.viewport.V[0].C.id:$("#page_select select").val();b&&a.dialog.close();
var f=$("#publish-dpi [name=dpi]:checked").length>0?$("#publish-dpi [name=dpi]:checked").val():l;a.K.$.vj($("#publish-details-format [name=format]:checked").val(),e,b,f=="160"||f=="300"?f*1:l,o())}}],open:function(){var b=$,c='<select id="page_select_select" class="fullwidth">',f=a.K.$.document.V,g;for(g in f)!f[g].Fb()&&f.hasOwnProperty(g)&&(c+='<option value="'+f[g].id+'">'+f[g].q.get("Title")+"</option>");c+="</select>";b=b(c);b.val(a.K.viewport.V[0].C.id);$("#page_select").empty().append(b)}});
return c}
function Jl(a){a.empty().append('<div id="publish-dpi"><fieldset class="ui-corner-all"><legend>'+S("legend.publish.quality")+'</legend><div><input type="radio" name="dpi" value="zoom" checked="checked" id="dpi_zoom" /> <label for="dpi_zoom" class="inline">'+S("label.publish.zoom.current")+'</label></div><div><input type="radio" name="dpi" value="160" id="dpi_160" /> <label for="dpi_160" class="inline">'+S("label.publish.zoom.screen")+' <span class="lighter">(160 DPI)</span></label></div><div><input type="radio" name="dpi" value="300" id="dpi_300" /> <label for="dpi_300" class="inline">'+S("label.publish.zoom.print")+
' <span class="lighter">(300 DPI)</span></label></div></fieldset></div>')}function Il(a){a.empty().append('<div id="publish-dpi"></div>')}vl.prototype.open=function(a){if(this.K.$.document.id==l)L(S("alert.share.unsaved"));else{var b=this.yp;b.wc=this.K.$.document.id;b.Lh=l;a&&a=="publish"?this.dialog.find("ul.lucid-tabs li").eq(2).click():this.dialog.find("ul.lucid-tabs li").eq(1).click();this.dialog.open()}};function Ql(a){var b=this;this.K=a;this.J=a.sc;this.Na=l;this.Bs=l;this.Ut=l;this.Zy=l;this.qp=l;this.Uf();J("default.findReplace",function(){b.show()})}q=Ql.prototype;
q.Uf=function(){this.hide();$(".find-replace").remove();this.Na=$('<form class="find-replace"></form>');this.Bs=$('<div class="find"><label for="find-box">Search:</label><input type="text" id="find-box" class="find-box user-select-text" autocomplete="off"><button class="search">Search</button><a href="javascript:;" title="Clear Search" class="icon-13 icon-13-close reset reset-search">Clear Search</a><a href="javascript:;" title="next" class="next">Next</a><a href="javascript:;" title="previous" class="previous">Previous</a><fieldset><input type="checkbox" id="case-checkbox"><label for="case-checkbox">'+S("search.case")+
'</label></fieldset><fieldset><input type="checkbox" id="whole-word-checkbox"><label for="whole-word-checkbox">'+S("search.whole-word")+"</label></fieldset></div>");this.Ut=$('<div class="replace-container"><label for="replace-box">Replace:</label><input type="text" id="replace-box" class="replace-box user-select-text" autocomplete="off"><a href="javascript:;" title="Clear Search" class="icon-13 icon-13-close reset reset-search">Clear Search</a><a href="javascript:;" class="replace">Replace</a><a href="javascript:;" class="replace-all">Replace All</a><div class="clearfix"></div></div>');
this.qp=$('<span class="growl"></span>');this.Na.append(this.Bs).append(this.Ut).append(this.qp);Rl(this)};q.show=function(){pe("findReplace");var a=this.K.sc;a.sq=a.J.children();this.Uf();this.K.sc.hide();this.K.sc.set(this.Na);this.Na.find(".find-box").focus()};q.hide=function(){this.K.sc.restore()};
function Rl(a){a.Na.find('input[type="text"]').keydown(function(b){b.keyCode==27&&(a.Na.find('input[type="text"]').val("").blur(),xh={},a.K.viewport.ia(),a.hide(),qe("findReplace"),b.stopPropagation());b.keyCode==114&&(b.shiftKey?Sl(a,-1):Sl(a,1),b.preventDefault())});a.Na.find(".find-box:first").keydown(function(b){b.keyCode==9&&(a.Na.find(".replace-box").focus(),b.preventDefault())});a.Na.find(".replace-box").keydown(function(b){b.keyCode==9&&(a.Na.find(".find-box:first").focus(),b.preventDefault())});
a.Na.find(".find-box:first").keyup(function(){var b=a.Na.find(".find-box").val(),c=a.Na.find("#case-checkbox").is(":checked"),d=a.Na.find("#whole-word-checkbox").is(":checked");a.search(b,c,d)});a.Na.find(".find #case-checkbox").click(function(){var b=a.Na.find(".find-box").val(),c=a.Na.find("#case-checkbox").is(":checked"),d=a.Na.find("#whole-word-checkbox").is(":checked");a.search(b,c,d)});a.Na.find(".find #whole-word-checkbox").click(function(){var b=a.Na.find(".find-box").val(),c=a.Na.find("#case-checkbox").is(":checked"),
d=a.Na.find("#whole-word-checkbox").is(":checked");a.search(b,c,d)});a.Na.find(".replace-all").click(function(){var b=a.Na.find(".find-box").val(),c=a.Na.find("#case-checkbox").is(":checked"),d=a.Na.find("#whole-word-checkbox").is(":checked"),e=a.Na.find(".replace-box").val();a.search(b,c,d);a.replaceAll(e)});a.Na.find(".replace").click(function(){var b=a.Na.find(".find-box").val(),c=a.Na.find("#case-checkbox").is(":checked"),d=a.Na.find("#whole-word-checkbox").is(":checked"),e=a.Na.find(".replace-box").val();
a.search(b,c,d);R.Xb==h?Sl(a,1):a.replace(e);return!1});a.Na.find(".next").click(function(){Sl(a,1);return!1});a.Na.submit(function(){a.Na.find(".find-box").val();Sl(a,1);return!1});a.Na.find(".previous").click(function(){Sl(a,-1);return!1});a.Na.find(".reset-search").click(function(){a.Na.find(".find-box").val("");a.search("",!1,!1);return!1});a.Na.find(".reset-replace").click(function(){a.Na.find(".replace-box").val("");return!1})}
q.search=function(a,b,c){Bh(this.K.$.document,a,b,c);this.qp.html(S("search")+" ("+Ah+" results)")};
function Sl(a,b){var c=a.K.$.document;if(hc(xh)&&hc(zh)){var d=Ch(c.$.K.viewport),d=d.length>0?d[0].page:c.$.K.viewport.V[0];if(R.lc==h)R.lc=0;for(var e=zh[d.C.id];!Eh(e[R.lc],b,c);)if(R.lc+b<0||R.lc+b>=e.length){if(hc(yh)>1){var f=d.C.q.get("Order"),g,i;for(i in yh)if(yh[i].q.get("Order")>f){g=yh[i];break}if(g)R.Yb=g;else for(var j in yh)if(yh.propertyIsEnumerable(j)){R.Yb=yh[j];break}if(!Na(R.Yb,d.C)){if(!zh[R.Yb.id])break;e=zh[R.Yb.id];c.$.K.viewport.Lb([R.Yb])}}R.lc=b>0?0:e.length-1}else R.lc+=
b}}q.replace=function(a){if(R.Yb&&zh[R.Yb.id]){var b=zh[R.Yb.id];if(b[R.lc]&&(b=b[R.lc],b[R.vc]&&(b=b[R.vc],b[R.Xb]))){var b=b[R.Xb],c;c=this.K.viewport.Ti(R.Yb.id).Ra[b.item];c=(c.la||c.xc)[b.ue];c.aa?$g(c.aa,b.start,b.end,a):$g(c,b.start,b.end,a)}}};
q.replaceAll=function(a){var b=this.K.$.document;b.Aa();for(var c in xh){var d=xh[c],e;for(e in d){var f=d[e];if(f instanceof Array){var f=f.concat([]).reverse(),g;for(g in f){var i=f[g],j=b.ra(i.item),j=(j.la||j.xc)[i.ue].Value||j.q.get(i.ue),j=dd(j,""),k=Ic(j,i.start,i.end);j.ba(k);b.ba(new N(yg,{id:i.item,Key:i.ue,Diff:k}));k=Hc(j,a,i.start);j.ba(k);b.ba(new N(yg,{id:i.item,Key:i.ue,Diff:k}))}}}}b.xa()};function Tl(a,b){var c=this,b=b||{};Ea||(Ea=$(y({Q:"menu-container"})).appendTo("body"));this.parent=Ea;this.ln=this.parent.offset();this.body=this.J=l;this.Ug=a||[];$(this.parent).append(y({Q:"menu"+(b.zf?" dropdown":"")+(b.Tb?" submenu":"")+(b.small?" small":"")+(b.list?" static":""),create:function(a){c.J=a},children:[{Q:"menu-body noScrollBars",create:function(a){c.body=a;a.scroll(function(){var b=c.J.position(),f=c.J.outerHeight(),g=a.get(0).scrollHeight,i=a.get(0).scrollTop,g=g-i-a.outerHeight(),
j=$(window).height();g>0&&b.top+f<j-4&&(f=Math.min(j-4-(b.top+f),g),a.css({height:a.height()+f+"px"}));i>0&&b.top>4&&(f=Math.min(b.top-4,i),c.J.css({top:b.top-f+"px"}),a.css({height:a.height()+f+"px"}),a.get(0).scrollTop-=f)});a.mousedown(function(a){a.stopPropagation()})}}]}));A(this.Ug,function(a){if(a.Tb&&c.J.parent().is(a.Tb.J.parent()))return c.J.insertBefore(a.Tb.J),!1});this.Ca=!1;this.Pe=[];this.In=[];this.Cm=[];this.hide()}function Ul(a){A(a.Ug,function(a){a.Tb&&a.Tb.hide()})}q=Tl.prototype;
q.refresh=function(a){function b(b){if(na(b))b=="hr"&&!f&&(e=!0);else if(b.external&&(b={label:b.label,na:b.icon,zc:b.hidden,Ca:b.visible,selected:b.selected,disabled:b.disabled,action:b.action,Fq:b.replacements,Tb:b.submenu}),!b.zc||!b.zc(a))if(!b.Ca||b.Ca(a))if(b.Fq){var i=b.Fq(a);i&&i.length&&c(i)}else{var j=b.selected&&b.selected(),k=b.disabled&&b.disabled(),n=b.action||l,m=!(!n||!na(n)),p=b.value||!j;m&&n.search("{context}")==0&&(n=oe[0]+n.substr(9));!b.disabled&&m&&J.set(n+".disabled",function(a){k=
a});var i=[],s;j?i.push({Q:"icon-13 icon-13-check"}):b.na&&i.push({Q:"icon-13 icon-13-"+b.na});b.Tb?i.push({Q:"submenu-arrow",html:"&#9658;"}):n&&na(n)&&(s=ih(b.action))&&i.push({Q:"menuitem-accel",html:s});i.push(b.label);f=!1;e&&(d.body.append(y({Q:"menuseparator"})),e=!1);d.body.append(y({Q:"menuitem"+(j?" selected":"")+(k?" disabled":""),create:function(c){k||(c.click(function(){n&&(m?J.set(n,p=="event"?a:p):n(a),d.refresh(a),J.set("gui.closeAllYerStuff"))}).mousedown(function(a){a.stopPropagation()}),
b.Tb?(c.mouseover(function(){Ul(d);var a=c.offset();b.Tb.Lf(a.left+c.outerWidth(),a.top-5);b.Tb.show()}),Vl(b.Tb),Wl(b.Tb,function(){c.addClass("hover")}),b.Tb.vr(function(){c.removeClass("hover")})):c.mouseover(function(){Ul(d)}),j&&d.Pe.push({item:b,mb:c}))},children:[{Q:"menuitem-content",children:i}]}))}}function c(a){A(a,function(a){b(a)})}var d=this;this.body.empty();this.value=[];this.Pe=[];var e=!1,f=!0;c(this.Ug)};
q.Lf=function(a,b,c){a<4&&(a=4);a+this.J.outerWidth()>$(window).width()-4&&(a=$(window).width()-4-this.J.outerWidth());if(c){var d=c=l;b<4?(d=b-4,c=this.J.outerHeight()+d,b=4,b+this.J.outerHeight()+d>$(window).height()-4&&(c=$(window).height()-8)):b+this.J.outerHeight()>$(window).height()-4&&(c=$(window).height()-4-b);this.J.css({left:a-this.ln.left+"px",top:b-this.ln.top+"px"});this.body.css({height:c?c-8+"px":"auto"});d&&this.body.scrollTop(-d)}else b<4&&(b=4),b+this.J.outerHeight()>$(window).height()-
4&&(b=$(window).height()-4-this.J.outerHeight()),this.J.css({left:a-this.ln.left+"px",top:b-this.ln.top+"px"})};q.wr=function(a){var b=this;A(a,function(a){b.Ug.push(a)})};q.Ll=function(a){this.Ug.push(a)};q.toggle=function(){this.Ca?this.hide():this.show()};q.show=function(a){this.refresh(a);if(this.body.children().length>0)this.Ca=!0,this.J.show(),A(this.In,function(a){a()})};q.hide=function(){Ul(this);this.Ca=!1;this.J.hide();A(this.Cm,function(a){a()})};q.Th=ea("Ca");
function Vl(a){a.In=[];a.Cm=[]}function Wl(a,b){a.In.push(b)}q.vr=function(a){this.Cm.push(a)};q.destroy=function(){A(this.Ug,function(a){a.Tb&&a.Tb.destroy()});this.In=this.Cm=l;this.J.remove()};t("lucid.view.Menu",Tl);Tl.prototype.addItem=Tl.prototype.Ll;Tl.prototype.addItems=Tl.prototype.wr;Tl.prototype.setPosition=Tl.prototype.Lf;function Xl(a){var b=this;this.K=a;this.dialog=new se(l,{title:"Select/Upload Fonts",$c:!0,open:function(){b.Ki=!0},close:function(){Se();b.Ki=!1},fe:{children:[{css:{"float":"left","border-right":"1px solid #888"},children:[{R:"p",html:S("managefonts.upload.p"),css:{width:"450px"}},{id:"ManageFontsUploadForm",R:"form",attr:{enctype:"multipart/form-data",target:"uploadfontframe",method:"POST",action:"/fonts/add"},children:[{R:"input",Q:"stylebutton",type:"file",attr:{name:"Font"}},{Q:"button",text:"Upload",
create:function(a){var d=!1;a.click(function(){d||(d=!0,$("#ManageFontsUploadForm").submit(),$("#ManageFontsUploadForm").find("input").attr("disabled","disabled"),$("#uploadfontframe").one("load",function(){$("#ManageFontsUploadForm").find("input").removeAttr("disabled").removeAttr("value");b.refresh();d=!1}))})}}]}]},{Q:"button",css:{position:"absolute",bottom:"12px",right:"12px"},text:"Save Changes",create:function(a){a.click(function(){b.dialog.close()})}},{Q:"clear"}]}});this.dialog.J.addClass("managefontsdialog").width(743+
Od());$("#uploadfontframe").size()==0&&$("body").append('<iframe id="uploadfontframe" name="uploadfontframe" style="display:none;"></iframe>');J("managefonts.refresh",function(){b.refresh()});J("text.manageFonts",function(){b.open()});b.refresh()}
function Yl(a,b){a.ep&&a.ep.abort();a.ep=$.ajax({type:"GET",url:"/fonts/allPublic",success:function(b){try{var d=eval("("+b+")")}catch(e){return}a.vi=[];for(var f in d)a.vi.push({yb:f,ax:d[f]});F(Ue(),function(b,c){c[0].yb in d||a.vi.push({yb:c[0].yb,da:1})});a.vi.sort(function(a,b){if(a.da&&!b.da)return-1;else if(b.da&&!a.da)return 1;return a.yb<b.yb?-1:b.yb<a.yb?1:0})},error:o(),complete:function(){a.ep=l;b&&b()}})}
function Zl(a,b){a.Kq=b;$("#tall_preview").attr("src","/fonts/thumb/tall/"+encodeURIComponent(b))}
Xl.prototype.kd=function(){var a=this,b=$("<div></div>").css({"overflow-y":"scroll",height:"620px",width:314+Od()+"px"});A(this.vi,function(c){var d=["font-name"];c.da?d.push("user"):c.ax?d.push("permanent"):c.yb.toLowerCase()in Pe&&d.push("active");b.append(y({Q:d.join(" "),children:[{Q:"font-selected",create:function(a){a.click(function(){if(!a.parent().is(".user,.permanent")){a.parent().toggleClass("active");var b=a.parent().is(".active")?"add":"remove";$.ajax({type:"POST",url:"/fontsUsers/"+b+
"/"+encodeURIComponent(c.yb),success:o()})}})}},{R:"img",src:"/fonts/thumb/small-gray/"+encodeURIComponent(c.yb)}],create:function(b){b.click(function(){Zl(a,c.yb)})}}))});this.content=y({children:[b,{R:"img",id:"tall_preview",css:{position:"absolute",top:"12px",right:"12px"}}]});this.dialog.kd(this.content);if(this.Kq==l&&this.vi)this.Kq=this.vi[0].yb;Zl(this,this.Kq);this.K.Dl.pl(this.content,"/fonts/drop",function(a){return!!a.fileName.match(/\.(ttf|otf|ttc)$/i)},{zy:function(){Se()},error:function(){a.da&&
(a.zb?J.set("user.promptRegister"):Tk(S("growl.upload.failed")))}})};Xl.prototype.open=function(){this.kd();this.dialog.open()};Xl.prototype.refresh=function(){var a=this;Yl(this,function(){a.Ki&&a.kd()})};function $l(a,b){var c=this;this.options=b||{};this.$q=this.ar=this.body=l;this.J=$(y({Q:"footer-panel",children:[{Q:"footer-panel-container",children:[{Q:"footer-panel-header inverse",create:function(a){a.click(function(){c.kb||(c.J.hasClass("expanded")?c.collapse():c.expand())})},children:[{R:"span",text:"Title",create:function(a){c.$q=a}},{Q:"icon-13-button",children:[{Q:"icon-13 icon-13-maximize",create:function(a){c.ar=a}}]}]},{Q:"footer-panel-body",create:function(a){c.body=a}}]}]}));a.append(this.J)}
q=$l.prototype;q.expand=function(){this.J.addClass("expanded");this.ar.addClass("icon-13-minimize").removeClass("icon-13-maximize");this.options.name&&J.set("footerpanel."+this.options.name+".expand")};q.collapse=function(){this.J.removeClass("expanded");this.ar.addClass("icon-13-maximize").removeClass("icon-13-minimize");this.options.name&&J.set("footerpanel."+this.options.name+".collapse")};function am(a,b){b?a.J.addClass("highlighted"):a.J.removeClass("highlighted")}q.Ju=function(a){this.$q.text(a)};
q.Ju=function(a){this.$q.text(a)};q.pc=function(){this.kb=!1};q.Uc=function(){this.kb=!0};q.hide=function(){this.J.hide()};q.show=function(){this.J.show()};function bm(a,b){var c=this;this.J=l;this.K=b;this.px=this.Iw=this.Hp=l;$(a).append(y({Q:"gui-footer noise-texture",create:function(a){c.J=a},children:[{Q:"footer-left",create:function(a){c.Hp=a}},{Q:"footer-middle",create:function(a){c.Iw=a}},{Q:"footer-right",create:function(a){c.px=a}}]}));this.bi=[]}bm.prototype.$e=function(a){this.bi.push(a);return a};function cm(a,b){var c=this;this.nk=a;this.K=b;this.xp=!1;this.Us=this.input=this.ap=this.Xn=l;this.J=$(y({Q:"chat",children:[{Q:"chat-user-list scrollable",create:function(a){c.Xn=a}},{Q:"chat-feed scrollable",create:function(a){c.ap=a}},{Q:"chat-input",create:function(a){c.input=a},children:[{R:"textarea",Q:"user-select-text",create:function(a){c.Us=a;a.keypress(function(b){b.keyCode==13&&!b.shiftKey&&(b.preventDefault(),b=a.val(),b.search(/\S/)!=-1&&(c.K.$.document.id==l?Tk(S("growl.chat.unsaved")):
c.K.$.Va.hi(l,l,"POST","/chats/send","data[Chat][message]="+encodeURIComponent(b)+"&data[Chat][document_id]="+encodeURIComponent(c.K.$.document.id))),a.val(""))}).focus(function(){c.xp=!0;am(c.nk,!1)}).blur(function(){c.xp=!1})}}]}]}));this.nk.body.empty().append(this.J);this.Nr="";this.disabled=!1;J("footerpanel.chat.expand",function(){setTimeout(function(){c.disabled||c.Us.focus()},1)});this.da=l;J("user",function(a){c.da=a},!0);dm(this,[]);J("chat.append",function(a){c.Nr+=a;a=em(c.Nr);c.ap.empty().append(a);
c.ap.scrollTop(a.height());c.nk.expand();c.xp||am(c.nk,!0)});J("share.users",function(a){dm(c,a)})}
function dm(a,b){a.Xn.empty();var c=0,d,e;b.length==0?a.Xn.append("After you save your document you can see everyone who is working on the document and chat with them."):e=a.da?a.da.id:0;for(var f=0;f<=b.length;f++){var g;if(f==b.length&&d!=l)g=b[d];else if(f<b.length){if(g=b[f],e==g.id){d=f*1;continue}}else break;g.me&&(a.Xn.prepend($('<div class="chat-user"><div class="icon-13 icon-13-user-online left"></div><div class="name">'+g.name+"</div></div>")),c++)}a.nk.Ju(S("Chat")+" ("+c+"/"+b.length+
")")}
function em(a){function b(a){for(var d=0;d<a.childNodes.length;d++){var e=a.childNodes[d];e.nodeType==3?e.nodeValue=e.nodeValue.replace(/(\S{30})(\S)/g,"$1 $2"):e.nodeType!=8&&b(e)}}a=$("<div>"+a+"</div>");a.find(".chatmessage").each(function(){var a=$(this).html(),a=a.replace(/(\b((https?:\/\/)|(www\.))\S+\b)/g,"<a target='_blank' href='$1'>$1</a>"),a=a.replace(/\n/g,"<br />").replace(/\*([^\s\*]+?)\*/g,"<strong>$1</strong>").replace(/\_([^\s\_]+?)\_/g,"<em>$1</em>");$(this).html(a)});b(a.get(0));return a}
cm.prototype.enable=function(){this.disabled=!1};cm.prototype.disable=function(){this.disabled=!0};function fm(a,b){var c=this;bm.call(this,a,b);this.kb=!1;this.Op=$(y({Q:"manage-toolbox",children:[{Q:"footer-button",children:[{R:"span",Q:"label",text:"More Shapes",children:[{Q:"icon-13 icon-13-cube"}]}],click:function(){c.kb||J.set("default.manageToolbox")}}]}));this.Hp.append(this.Op);this.Wj=this.$e(new $l(this.Hp,{name:"chat"}));new cm(this.Wj,this.K)}Ca(fm,bm);fm.prototype.eg=function(){this.Wj.hide();this.Op.hide()};fm.prototype.gh=function(){this.Wj.show();this.Op.show()};
fm.prototype.Uc=function(){this.kb=!0;this.J.addClass("disabled");this.Wj.Uc()};fm.prototype.pc=function(){this.kb=!1;this.J.removeClass("disabled");this.Wj.pc()};var gm={"dialog.collaborator.role.heading":{en:"Give collaborator(s) permission to:",zh:"\u6dfb\u52a0\u5408\u4f5c\u8005\uff1a"},"link.generate":{en:"Generate Link",zh:"\u751f\u6210\u94fe\u63a5 "},"Multi-use":{zh:"\u591a\u79cd\u7528\u9014"},"description.multiuse":{en:"The link can be used multiple times",zh:"\u5141\u8bb8\u591a\u6b21\u4f7f\u7528\u94fe\u63a5"},Invite:{zh:"\u9080\u8bf7"},"description.invite":{en:"Any email address will work",zh:"\u5141\u8bb8\u4efb\u4f55\u90ae\u7bb1\u5730\u5740"},"notice.pending":{en:"Send Invitation",
zh:"\u53d1\u9001\u9080\u8bf7"},"message.personal.include":{en:"Include a personal message",zh:"\u5305\u542b\u4e2a\u4eba\u77ed\u4fe1"},Optional:{zh:"\u53ef\u9009\u9879"},"or.link.generate":{en:"Or generate a link you can to send to others",zh:"\u6216\u5efa\u7acb\u4e00\u4e2a\u53ef\u4ee5\u53d1\u9001\u4ed6\u4eba\u7684\u94fe\u63a5"},"alert.share.unsaved":{en:"You must save your document before sharing it with others.",zh:"\u5728\u4e0e\u4ed6\u4eba\u5171\u4eab\u4e4b\u524d\uff0c\u8bf7\u60a8\u5148\u4fdd\u5b58\u6587\u4ef6\u3002"},
"alert.email.invite.invalid":{en:"Invalid email address.  Enter a valid email address (someone@somewhere.com) and click Send Invitation.",zh:"\u65e0\u6548\u7684\u90ae\u7bb1\u3002\u8bf7\u8f93\u5165\u6709\u6548\u7684\u90ae\u7bb1 \uff08someone@somewhere.com)\u5e76\u70b9\u51fb\u201c\u53d1\u9001\u9080\u8bf7\u201d"},"invitation.sending":{en:"Sending Invitation...",zh:"\u6b63\u5728\u53d1\u9001\u9080\u8bf7..."},"link.generating":{en:"Generating Link...",zh:"\u6b63\u5728\u751f\u6210\u94fe\u63a5..."},"growl.invitation.send.error":{en:"Could not send invitation. If this error persists, please contact LucidChart support.",
zh:"\u65e0\u6cd5\u53d1\u9001\u9080\u8bf7\u3002\u5982\u679c\u6b64\u9519\u8bef\u6301\u7eed\u51fa\u73b0\uff0c\u8bf7\u8054\u7cfbLucidChart\u670d\u52a1\u4e2d\u5fc3\u3002"},"description.role.none.invitation":{en:"Cancel invitation",zh:"\u53d6\u6d88\u9080\u8bf7"},"dialog.collaborator.role.edit.heading.prefix":{en:"Set permissions for",zh:"\u8bbe\u7f6e\u8bb8\u53ef\u4e3a"},"dialog.collaborator.role.edit.heading.suffix":{en:"to:",zh:"\u53d1\u9001\u7ed9\uff1a"},"growl.invitation.remove.error":{en:"Could not remove the invitation.  If this error persists, please contact LucidChart support.",
zh:"\u65e0\u6cd5\u53d6\u6d88\u9080\u8bf7\u3002\u5982\u679c\u6b64\u9519\u8bef\u6301\u7eed\u51fa\u73b0\uff0c\u8bf7\u8054\u7cfbLucidChart\u670d\u52a1\u4e2d\u5fc3\u3002"},"growl.collaborator.role.update.error":{en:"Could not update the collaborator's role.  If this error persists, please contact LucidChart support.",zh:"\u65e0\u6cd5\u66f4\u65b0\u5408\u4f5c\u8005\u89d2\u8272\u3002\u5982\u679c\u6b64\u9519\u8bef\u6301\u7eed\u51fa\u73b0\uff0c\u8bf7\u8054\u7cfbLucidChart\u670d\u52a1\u4e2d\u5fc3\u3002"},"growl.collaborator.remove.error":{en:"Could not remove the collaborator.  If this error persists, please contact LucidChart support.",
zh:"\u65e0\u6cd5\u79fb\u9664\u6b64\u5408\u4f5c\u8005\u3002\u5982\u679c\u6b64\u9519\u8bef\u53ea\u9700\u51fa\u73b0\uff0c\u8bf7\u8054\u7cfbLucidChart\u670d\u52a1\u4e2d\u5fc3\u3002"},"tooltip.share":{en:"Share With Others",zh:"\u4e0e\u4ed6\u4eba\u5171\u4eab"},Chat:{zh:"\u804a\u5929"},Collaborators:{zh:"\u5408\u4f5c\u8005"},"default.collaborationbar.userlist":{en:"When you save this document, you will be able to invite any number of additional users to work with you.",zh:"\u5728\u50a8\u5b58\u6b64\u6587\u4ef6\u65f6\uff0c\u60a8\u53ef\u4ee5\u9080\u8bf7\u4efb\u610f\u6570\u91cf\u7684\u9644\u52a0\u7528\u6237\u6765\u4e0e\u60a8\u5171\u540c\u5408\u4f5c\u3002"},
owner:{zh:"\u6240\u6709\u8005"},editor:{zh:"\u7f16\u8f91\u8005"},viewer:{zh:"\u6d4f\u89c8\u8005"},"dialog.collaborator.invitation.link.heading":{en:"This collaborator must use the following link to accept this invitation:",zh:"\u6b64\u5408\u4f5c\u8005\u5fc5\u987b\u4f7f\u7528\u4ee5\u4e0b\u94fe\u63a5\u6765\u63a5\u53d7\u9080\u8bf7\uff1a"},"description.role.none":{en:"Remove user from document",zh:"\u4ece\u6587\u4ef6\u4e2d\u79fb\u9664\u7528\u6237"},"growl.chat.unsaved":{en:"You must save your document before chatting.",
zh:"\u5728\u804a\u5929\u4e4b\u524d\uff0c\u8bf7\u60a8\u4fdd\u5b58\u6587\u4ef6\u3002"},"tooltip.invitemore":{en:"Invite More Collaborators",zh:"\u9080\u8bf7\u66f4\u591a\u5408\u4f5c\u8005"},"option.link.add_edit":{en:"Add/Edit Link",zh:"\u589e\u52a0/\u7f16\u8f91\u94fe\u63a5"},Group:{zh:"\u7ed3\u6210\u5c0f\u7ec4"},Ungroup:{zh:"\u53d6\u6d88\u7f16\u7ec4"},"optionbar.group.link":{en:"Link",zh:"\u94fe\u63a5"},"optionbar.group.arrange":{en:"Arrange",zh:"\u6392\u5217"},"optionbar.group.text":{en:"Text",zh:"\u6587\u672c"},
Bold:{zh:"\u7c97\u4f53"},Italic:{zh:"\u659c\u4f53"},Underline:{zh:"\u4e0b\u5212\u7ebf"},"Strike-out":{zh:"\u5220\u9664"},"Left Align":{zh:"\u5de6\u5bf9\u9f50"},"Center Align":{zh:"\u4e2d\u5bf9\u9f50"},"Right Align":{zh:"\u53f3\u5bf9\u9f50"},"Center Horizontally":{zh:"\u6c34\u5e73\u5c45\u4e2d"},"Top Align":{zh:"\u9876\u5c42\u5bf9\u9f50"},"Center Vertically":{zh:"\u5782\u76f4\u5c45\u4e2d"},"Bottom Align":{zh:"\u5e95\u90e8\u5bf9\u9f50"},"Match Width":{zh:"\u5339\u914d\u5bbd\u5ea6"},"Match Height":{zh:"\u5339\u914d\u9ad8\u5ea6"},
"Distribute Horizontally":{zh:"\u6c34\u5e73\u5747\u5300\u5206\u5e03"},"Distribute Vertically":{zh:"\u5782\u76f4\u5747\u5300\u5206\u5e03"},"optionbar.group.line":{en:"Line",zh:"\u7ebf\u6761"},"optionbar.group.block":{en:"Block",zh:"\u56fe\u5f62\u5757"},"option.block.style.copy":{en:"Copy style from another block",zh:"\u4ece\u5176\u4ed6\u56fe\u5f62\u5757\u590d\u5236\u6837\u5f0f"},"viewport.selectblock.style.copy":{en:"Click to select the block with the style to copy<br/>Escape: Cancel",zh:"\u70b9\u51fb\u9009\u5b9a\u53c2\u8003\u7684\u56fe\u5f62\u5757 <br/>Escape: \u53d6\u6d88"},
"fonts.add":{en:"Add more fonts...",zh:"\u6dfb\u52a0\u66f4\u591a\u5b57\u4f53..."},"optionbar.group.fontdefaults":{en:"Font Defaults",zh:"\u9ed8\u8ba4\u5b57\u4f53"},"optionbar.group.blockdefaults":{en:"Block Defaults",zh:"\u9ed8\u8ba4\u56fe\u5f62\u5feb"},"optionbar.group.linedefaults":{en:"Line Defaults",zh:"\u9ed8\u8ba4\u7ebf\u6761"},"optionbar.group.theme":{en:"Theme",zh:"\u4e3b\u9898"},"option.linewidth.hairline":{en:"Hairline",zh:"\u6781\u7ec6\u7ebf"},"option.linewidth.thin":{en:"Thin",zh:"\u7ec6\u7ebf"},
"option.linewidth.medium":{en:"Medium",zh:"\u4e2d\u7b49\u7ebf"},"option.linewidth.thick":{en:"Thick",zh:"\u7c97\u7ebf"},"option.linestyle.solid":{en:"Solid",zh:"\u5b9e\u73b0"},"option.linestyle.dashed":{en:"Dashed",zh:"\u865a\u7ebf"},"option.linestyle.dotted":{en:"Dotted",zh:"\u70b9\u7ebf"},"option.lineshape.curved":{en:"Curved",zh:"\u5f2f\u89d2\u7ebf"},"option.lineshape.elbow":{en:"Elbow",zh:"\u76f4\u89d2\u7ebf"},"option.lineshape.direct":{en:"Direct",zh:"\u76f4\u89d2\u76f4\u7ebf"},"option.cornerstyle.square":{en:"Square Corners",
zh:"\u76f4\u89d2"},"option.cornerstyle.soft":{en:"Soft Corners",zh:"\u5706\u89d2"},"option.cornerstyle.round":{en:"Round Corners",zh:"\u5f2f\u89d2"},"option.gradient.none":{en:"No Gradient",zh:"\u65e0\u6e10\u53d8"},"option.gradient.soft":{en:"Soft Gradient",zh:"\u8f7b\u5fae\u6e10\u53d8"},"option.gradient.strong":{en:"Strong Gradient",zh:"\u5f3a\u70c8\u6e10\u53d8"},"option.lineshape.edit":{en:"Edit Line Shape",zh:"\u7f16\u8f91\u7ebf\u6761\u5f62\u72b6"},"option.arrowstyle.none":{en:"None",zh:"\u65e0\u7bad\u5934"},
"option.arrowstyle.solid":{en:"Arrow",zh:"\u7bad\u5934"},"option.arrowstyle.hollow":{en:"Hollow Arrow",zh:"\u7a7a\u5fc3\u7bad\u5934"},"option.arrowstyle.open":{en:"Open Arrow",zh:"\u6307\u5411\u7bad\u5934"},"option.line.style.copy":{en:"Copy style from another line",zh:"\u4ece\u5176\u4ed6\u7ebf\u6761\u590d\u5236\u6837\u5f0f"},"viewport.selectline.style.copy":{en:"Click to select the line with the style to copy<br/>Escape: Cancel",zh:"\u70b9\u51fb\u9009\u5b9a\u8981\u53c2\u8003\u7684\u7ebf\u6761 <br/>Escape: \u53d6\u6d88"},
"legend.page.size":{en:"Page Size",zh:"\u9875\u9762\u5927\u5c0f"},Custom:{zh:"\u81ea\u5b9a\u4e49"},"orientation.portrait":{en:"Portrait",zh:"\u7ad6\u5411\u9875\u9762"},"orientation.landscape":{en:"Landscape",zh:"\u6a2a\u5411\u9875\u9762"},"legend.page.orientation":{en:"Orientation",zh:"\u65b9\u5411"},"legend.page.margin":{en:"Margin",zh:"\u8fb9\u7f18"},"optionbar.group.page":{en:"Page",zh:"\u9875\u9762"},"option.color.select":{en:"Select a color",zh:"\u9009\u62e9\u4e00\u4e2a\u989c\u8272"},"alert.demo.iebad":{en:'<p>You are using Internet Explorer, which is not capable of running these interactive demonstrations.</p>\n<p>There are other free alternatives to Internet Explorer that can improve your LucidChart experience: <a target="_blank" href="http://google.com/chrome">Google Chrome</a>, <a target="_blank" href="http://firefox.com">FireFox</a>, or <a target="_blank" href="http://apple.com/safari">Safari</a>.',
zh:'<p>\u60a8\u6b63\u5728\u4f7f\u7528\u5fae\u8f6fIE\u6d4f\u89c8\u5668\uff0c\u6b64\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u4ea4\u4e92\u5f0f\u8fd0\u884c\u3002</p> <p> \u8fd8\u6709\u5176\u4ed6\u514d\u8d39\u65b9\u6cd5\u6765\u5e2e\u52a9\u63d0\u5347\u60a8\u7684\u4e0a\u7f51\u7ecf\u5386\uff1a<a target="_blank" href="http://google.com/chrome">\u8c37\u6b4c\u6d4f\u89c8\u5668<a/>, <a target="_blank" href="http://firefox.com">\u706b\u72d0\u6d4f\u89c8\u5668<a/>, \u6216\u8005 <a target="_blank" href="http://apple.com/safari">\u82f9\u679c\u6d4f\u89c8\u5668</a>.'},
"button.OK":{en:"OK",zh:"\u786e\u5b9a"},"button.cancel":{en:"Cancel",zh:"\u53d6\u6d88"},"demo.simple.newpage":{en:"First, we'll add a new page to your document, so we can start with a clean slate.",zh:"\u9996\u5148\uff0c\u6211\u4eec\u4f1a\u5728\u4f60\u7684\u6587\u4ef6\u4e0a\u65b0\u6dfb\u4e00\u4e2a\u9875\u9762\uff0c\u4f7f\u6211\u4eec\u53ef\u4ee5\u518d\u7a7a\u767d\u9875\u9762\u4e0a\u5f00\u59cb\u3002"},"demo.simple.dragshape":{en:"Now we drag a shape onto the page from the toolbox.",zh:"\u73b0\u5728\u6211\u4eec\u4ece\u5de5\u5177\u7bb1\u62d6\u52a8\u4e00\u4e2a\u56fe\u5f62\u5230\u9875\u9762\u4e0a\u3002"},
"demo.simple.makeline":{en:"Click and drag from the edge of any shape to make a line.  You'll be prompted for what shape to put at the other end of the line.",zh:"\u5728\u4efb\u610f\u56fe\u5f62\u8fb9\u7f18\u70b9\u51fb\u5e76\u62d6\u52a8\u6765\u753b\u7ebf\u6761\u3002\u65b0\u7684\u5bf9\u8bdd\u6846\u4f1a\u8df3\u51fa\u4f9b\u60a8\u9009\u62e9\u5728\u7ebf\u6761\u53e6\u4e00\u7aef\u7684\u56fe\u5f62\u3002"},"demo.simple.restyle":{en:"You can restyle your flow chart easily using the toolbar.  First, select the objects you'd like to restyle.",
zh:"\u901a\u8fc7\u4f7f\u7528\u5de5\u5177\u7bb1\uff0c\u60a8\u53ef\u4ee5\u91cd\u65b0\u8bbe\u8ba1\u60a8\u7684\u6d41\u7a0b\u8868\u3002\u9996\u5148\uff0c\u9009\u62e9\u60a8\u8981\u91cd\u65b0\u8bbe\u8ba1\u7684\u5bf9\u8c61\u3002"},"demo.simple.thatsit":{en:"That's all it takes to draw a professional flow chart in LucidChart!",zh:"\u8fd9\u5c31\u662f\u60a8\u9700\u8981\u7528LucidChart\u5236\u4f5c\u4e13\u4e1a\u6d41\u7a0b\u56fe\u7684\u5168\u90e8\u8fc7\u7a0b\u3002"},"demo.button.finish":{en:"Finish",zh:"\u7ed3\u675f"},
"demo.simpleuml.dragshape":{en:"Let's describe a product's manufacturer and retailer.  Start by dragging a simple class block onto the page.",zh:"\u8ba9\u6211\u4eec\u4ecb\u7ecd\u4e00\u4e2a\u4ea7\u54c1\u7684\u5236\u4f5c\u5546\u548c\u96f6\u552e\u5546\u3002\u901a\u8fc7\u62d6\u52a8\u4e00\u4e2a\u7b80\u5355\u7684\u7b49\u7ea7\u56fe\u5f62\u5757\u5230\u9875\u9762\u4e0a\u6765\u5f00\u59cb\u3002"},"demo.simpleuml.makeline":{en:"Click and drag from the edge of the class to create an association with a new class.",
zh:"\u70b9\u51fb\u5e76\u62d6\u52a8\u7b49\u7ea7\u7684\u8fb9\u7f18\u6765\u521b\u5efa\u4e00\u4e2a\u4e0e\u65b0\u7b49\u7ea7\u7684\u8054\u7cfb\u3002"},"demo.simpleuml.associations":{en:"Now let's have a look at the associations.  One manufacturer will produce one or more products, and one retailer will sell one or more products.",zh:"\u73b0\u5728\u8ba9\u6211\u4eec\u601d\u8003\u4e00\u4e0b\u8fd9\u4e9b\u8054\u7cfb\u3002\u5236\u9020\u5546\u5236\u9020\u4e00\u4e2a\u6216\u591a\u4e2a\u4ea7\u54c1\uff0c\u7136\u540e\u96f6\u552e\u5546\u51fa\u552e\u4e00\u4e2a\u6216\u591a\u4e2a\u4ea7\u54c1\u3002"},
"demo.simpleuml.associations2":{en:"Also, each brand will have at least one product, but each product may have a brand or not.",zh:"\u8fd8\u6709\uff0c\u6bcf\u4e00\u4e2a\u54c1\u724c\u4f1a\u6709\u81f3\u5c11\u4e00\u4e2a\u5236\u9020\u5546\uff0c\u4f46\u662f\u6bcf\u4e00\u4e2a\u4ea7\u54c1\u53ef\u4ee5\u6709\u4e5f\u53ef\u4ee5\u6ca1\u6709\u54c1\u724c\u3002"},"demo.simpleuml.label":{en:"When there's ambiguity, it can be helpful to label an association with a verb.",zh:"\u5f53\u6a21\u7cca\u7684\u65f6\u5019\uff0c\u7528\u4e00\u4e2a\u52a8\u8bcd\u6807\u8bb0\u4e00\u4e2a\u8054\u7cfb\u4f1a\u5f88\u6709\u5e2e\u52a9\u3002"},
"demo.simpleuml.associations3":{en:"There's a relationship between a retailer and a manufacturer, as well.  Both are specializations of a company.  Let's add that to our diagram.",zh:"\u800c\u4e14\uff0c\u96f6\u552e\u5546\u548c\u5236\u9020\u5546\u4e4b\u95f4\u4e5f\u6709\u533a\u522b\u3002\u4ed6\u4eec\u4e24\u8005\u90fd\u662f\u4e00\u4e2a\u9886\u57df\u7684\u4e13\u5bb6\u3002\u73b0\u5728\u8ba9\u6211\u4eec\u628a\u8fd9\u4e2a\u6dfb\u52a0\u5230\u56fe\u8868\u4e2d\u3002"},"demo.simpleuml.thatsall":{en:"That's all it takes to draw a simple class diagram in LucidChart!",
zh:"\u8fd9\u5c31\u662f\u60a8\u9700\u8981\u7528LucidChart\u5236\u4f5c\u7b80\u5355\u7684\u7b49\u7ea7\u56fe\u8868\u7684\u5168\u90e8\u8fc7\u7a0b\u3002"},"title.color.select":{en:"Select a Color",zh:"\u9009\u62e9\u4e00\u4e2a\u989c\u8272"},"historypanel.default":{en:"Once you save your document, this panel will show a history of who saved changes to this document, and when.",zh:"\u5f53\u60a8\u4fdd\u5b58\u60a8\u7684\u6587\u4ef6\u4e4b\u540e\uff0c\u8fd9\u4e2a\u4eea\u8868\u677f\u5c06\u4f1a\u663e\u793a\u4fee\u6539\u8fc7\u8fd9\u4e2a\u6587\u4ef6\u7684\u4eba\u548c\u65f6\u95f4\u3002"},
"historypanel.button.revert":{en:"Revert to this revision",zh:"\u56de\u590d\u5230\u6b64\u7248\u672c"},"historypanel.button.new":{en:"Create new document from this revision",zh:"\u4ee5\u6b64\u7248\u672c\u65b0\u5efa\u6587\u4ef6"},"historypanel.title":{en:"History",zh:"\u5386\u53f2"},"historypanel.alert.new.error":{en:"There was an error creating the new document.  Please try again.",zh:"\u65b0\u5efa\u6587\u4ef6\u51fa\u73b0\u9519\u8bef\u3002\u8bf7\u518d\u8bd5\u4e00\u6b21\u3002"},"historypanel.ineligible.prefix":{en:"Revision history is only available for Professional and Team accounts.  Please consider",
zh:"\u53ea\u6709\u4e13\u4e1a\u8d26\u6237\u548c\u56e2\u961f\u8d26\u6237\u624d\u6709\u4fee\u6b63\u5386\u53f2\u7684\u529f\u80fd\u3002\u8bf7\u8003\u8651"},"historypanel.ineligible.upgradelink":{en:"upgrading",zh:"\u5347\u7ea7"},"historypanel.ineligible.suffix":{en:".",zh:"-"},"historypanel.button.page.edited":{en:"Page Edited",zh:"\u9875\u9762\u5df2\u4fee\u6539"},"historypanel.button.page.deleted":{en:"Page Deleted",zh:"\u9875\u9762\u5df2\u5220\u9664"},"historypanel.button.page.created":{en:"Page Created",
zh:"\u9875\u9762\u5df2\u65b0\u5efa"},"historypanel.link.changes.show":{en:"Show me what was changed",zh:"\u663e\u793a\u4fee\u6539\u7684\u5185\u5bb9"},"navpanel.button.zoomin":{en:"Zoom In (Ctrl+Up)",zh:"\u653e\u5927"},"navpanel.button.zoomout":{en:"Zoom Out (Ctrl+Down)",zh:"\u7f29\u5c0f"},"navpanel.alert.zoom.invalid":{en:"Invalid zoom value. Please select a value from 1-400.",zh:"\u65e0\u6548\u7684\u7f29\u653e\u503c\u3002\u8bf7\u57281-400\u4e2d\u9009\u62e9\u3002"},"publishpanel.default":{en:"Click below to publish all or part of this document as a web page, PDF, or image.",
zh:"\u70b9\u51fb\u4e0b\u65b9\u4ee5\u7f51\u9875\uff0cPDF\uff0c\u6216\u56fe\u50cf\u6765\u51fa\u7248\u5168\u90e8\u6216\u90e8\u5206\u6587\u4ef6\u3002"},"tooltip.facebook.share":{en:"Share on Facebook",zh:"\u5206\u4eab\u5230Facebook"},"tooltip.twitter.share":{en:"Share on Twitter",zh:"\u5206\u4eab\u5230Twitter"},"tooltip.community.share":{en:"Share example with community",zh:"\u4e0e\u793e\u533a\u5206\u4eab"},Delete:{zh:"\u5220\u9664"},"tooltip.url.show":{en:"Show link address",zh:"\u663e\u793a\u94fe\u63a5\u5730\u5740"},
"confirm.document.unpublish":{en:"Are you sure you want to un-publish this document?",zh:"\u60a8\u786e\u5b9a\u8981\u53d6\u6d88\u53d1\u5e03\u6b64\u6587\u4ef6\u5417\uff1f"},"confirm.document.links.break":{en:"This will break any outside links to this document.",zh:"\u8fd9\u5c06\u4f1a\u7ec8\u65ad\u5916\u90e8\u7528\u6237\u8fdb\u5165\u6b64\u6587\u4ef6"},"confirm.segment.unpublish":{en:"Are you sure you want to un-publish this part of your document?",zh:"\u60a8\u786e\u5b9a\u8981\u53d6\u6d88\u53d1\u5e03\u8fd9\u90e8\u5206\u5417\uff1f"},
"confirm.file.links.break":{en:"This will permanently break any outside links to this file.",zh:"\u8fd9\u5c06\u4f1a\u6c38\u4e45\u7ec8\u65ad\u6240\u6709\u5916\u90e8\u7528\u6237\u8fdb\u5165\u6b64\u6587\u6863"},"confirm.image.links.break":{en:"This will permanently break any outside links to this image.",zh:"\u8fd9\u5c06\u4f1a\u6c38\u4e45\u7ec8\u65ad\u5916\u90e8\u7528\u6237\u8fdb\u5165\u6b64\u56fe\u7247"},"statepanel.button.start":{en:"Start Demo",zh:"\u5f00\u59cb\u6f14\u793a"},"navpanel.title":{en:"Navigator",
zh:"\u5bfc\u822a\u5668"},"palettepanel.title":{en:"Color Palette",zh:"\u8c03\u8272\u677f"},"publishpanel.title":{en:"Publish",zh:"\u53d1\u5e03"},"statepanel.title":{en:"Demo Controls",zh:"\u6f14\u793a\u63a7\u5236"},"statepanel.state":{en:"State",zh:"\u72b6\u6001"},"statepanel.prompt.new":{en:"New state name:",zh:"\u65b0\u72b6\u6001\u540d\u79f0\uff1a"},"statepanel.confirm.delete":{en:"<p>Are you sure you want to delete this state?</p><p>This will also delete all objects that are part of the state.</p>",
zh:"<p>\u60a8\u786e\u5b9a\u8981\u5220\u9664\u6b64\u72b6\u6001\u5417\uff1f</p><p>\u8fd9\u4e5f\u4f1a\u5220\u9664\u6b64\u72b6\u6001\u4e0b\u7684\u6240\u6709\u5bf9\u8c61\u3002</p>"},"statepanel.prompt.rename":{en:"Enter a new name for the state:",zh:"\u4e3a\u6b64\u72b6\u6001\u8f93\u5165\u65b0\u540d\u79f0\uff1a"},"statepanel.state.add":{en:"Add new state",zh:"\u65b0\u5efa\u72b6\u6001"},"statepanel.growl.exit":{en:"Press Esc to exit presentation mode.",zh:"\u8bf7\u6309Esc\u6765\u9000\u51fa\u6f14\u793a\u6a21\u5f0f\u3002"},
Twitter:{zh:"Twitter"},"gui.alert.plugins.restricted":{en:'This document uses functionality that is only available to Professional and Team accounts, so you are not able to edit this document.  Please consider <a target="_blank" href="/users/level">upgrading</a>.',zh:"\u6b64\u6587\u4ef6\u9700\u8981\u4f7f\u7528\u53ea\u6709\u4e13\u4e1a\u8d26\u6237\u548c\u56e2\u961f\u8d26\u6237\u624d\u80fd\u4f7f\u7528\u7684\u529f\u80fd\uff0c\u6240\u4ee5\u60a8\u73b0\u5728\u65e0\u6cd5\u7f16\u8f91\u6b64\u6587\u4ef6\u3002\u8bf7\u8003\u8651\u5347\u7ea7\u3002"},
"gui.growl.richtext.new":{en:"NEW! Rich text editor.",zh:"\u65b0\uff01\u4e30\u5bcc\u7684"},"gui.growl.signup.save":{en:"Sign up free to save this document",zh:"\u514d\u8d39\u6ce8\u518c\u6765\u4fdd\u5b58\u6b64\u6587\u4ef6"},"gui.growl.try.free":{en:"Try LucidChart Free!",zh:"\u514d\u8d39\u8bd5\u7528LucidChart\uff01"},"gui.growl.try.paid.free":{en:"Try paid features free!",zh:"\u514d\u8d39\u8bd5\u7528\u4ed8\u8d39\u529f\u80fd\uff01"},"gui.growl.trial.remain.prefix":{en:"TRIAL:",zh:"\u8bd5\u7528\u7248\uff1a"},
"gui.growl.trial.remain.suffix":{en:"days left. Pay here!",zh:"\u8fd8\u5269\u3002\u5728\u6b64\u652f\u4ed8!"},"gui.growl.upgrade":{en:"Upgrade your account!",zh:"\u5347\u7ea7\u60a8\u7684\u8d26\u6237\uff01"},"gui.growl.runfaster":{en:"Run LucidChart 20x Faster!",zh:"\u8ba9LucidChart\u63d0\u9ad820\u500d\u8fd0\u884c\uff01"},"gui.alert.ie.alternatives":{en:'<p>You are using Internet Explorer, which is not capable of running new web applications like LucidChart quickly.</p>\n<p>There are also other free alternatives to Internet Explorer that can make your whole Internet experience better: <a target="_blank" href="http://google.com/chrome">Google Chrome</a>, <a target="_blank" href="http://firefox.com">FireFox</a>, or <a target="_blank" href="http://apple.com/safari">Safari</a>.',
zh:'<p>\u60a8\u6b63\u5728\u4f7f\u7528IE\u6d4f\u89c8\u5668\uff0c\u6b64\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5feb\u901f\u7684\u8fd0\u884c\u7c7b\ufffd\ufffd\ufffdLucidChart\u7684\u7f51\u7edc\u5e94\u7528\u8f6f\u4ef6\u3002</p> <p> \u8fd8\u6709\u5176\u4ed6\u514d\u8d39\u65b9\u6cd5\u6765\u5e2e\u52a9\u63d0\u5347\u60a8\u7684\u4e0a\u7f51\u7ecf\u5386\uff1a<a target="_blank" href="http://google.com/chrome">\u8c37\u6b4c\u6d4f\u89c8\u5668<a/>, <a target="_blank" href="http://firefox.com">\u706b\u72d0\u6d4f\u89c8\u5668<a/>, \u6216\u8005 <a target="_blank" href="http://apple.com/safari">\u82f9\u679c\u6d4f\u89c8\u5668</a>.'},
"optionbar.group.style":{en:"Style",zh:"\u6837\u5f0f"},"optionbar.group.color":{en:"Color",zh:"\u989c\ufffd\ufffd\ufffd"},"overlay.line.edit.instructions":{en:"Enter: Save Changes<br />Escape: Cancel Changes<br />Double-Click: Remove/Reset Point",zh:"Enter: \u4fdd\u5b58\u66f4\u6539<br/>Escape: \u53d6\u6d88\u66f4\u6539<br/>\u53cc\u51fb: \u79fb\u9664/\u91cd\u8bbe"},Editing:{zh:"\u7f16\u8f91\u4e2d"},"title.link.page.select":{en:"Select a page to link to:",zh:"\u9009\u62e9\u4e00\u4e2a\u9875\u9762\u6765\u94fe\u63a5\u5230\uff1a"},
"label.page.create":{en:"Create New Page:",zh:"\u65b0\u5efa\u9875\u9762\uff1a"},"page.new.title.default":{en:"New Page Title",zh:"\u65b0\u9875\u9762\u540d\u79f0\uff1a"},"label.link.external":{en:"External Link:",zh:"\u5916\u90e8\u94fe\u63a5\uff1a"},"label.link.none":{en:"No link",zh:"\u65e0\u94fe\u63a5"},"tooltip.page.resize.x":{en:"Resize Page Horizontally",zh:"\u91cd\u65b0\u6c34\u5e73\u8bbe\u7f6e\u9875\u9762\u5927\u5c0f"},"tooltip.page.resize.y":{en:"Resize Page Vertically",zh:"\u91cd\u65b0\u5782\u76f4\u8bbe\u7f6e\u9875\u9762\u5927\u5c0f"},
"tooltip.page.resize":{en:"Resize Page",zh:"\u91cd\u65b0\u8bbe\u7f6e\u9875\u9762\u5927\u5c0f"},"vector.alert.warning":{en:"<p>WARNING: Dragons Ahead!</p><p>This feature allows you to draw your own shapes, and edit existing shapes.  This is in <strong>early beta</strong> form, so be warned that things may not work exactly as you hope!</p><p>Press Escape at any time to back out of this shape-editing mode.</p>",zh:"<p>\u8b66\u544a\uff1a</p><p>\u6b64\u529f\u80fd\u5141\u8bb8\u60a8\u753b\u51fa\u60a8\u81ea\u5df1\u7684\u56fe\u5f62\uff0c\u5e76\u4e14\u4fee\u6539\u5df2\u5b58\u5728\u7684\u56fe\u5f62\u3002\u6b64\u529f\u80fd\u5728 <strong>\u65e9\u671fBeta</strong> \u7248\u672c\uff0c\u8bf7\u6ce8\u610f\u6b64\u529f\u80fd\u53ef\u80fd\u65e0\u6cd5\u8fbe\u5230\u60a8\u9884\u671f\u7684\u6548\u679c\uff01</p><p>\u8bf7\u968f\u65f6\u6309 Escape \u6765\u9000\u51fa\u56fe\u5f62\u4fee\u6539\u6a21\u5f0f\u3002</p>"},
"option.shape.stroke":{en:"Stroke shape",zh:"\u56fe\u5f62\u63cf\u8fb9"},"option.shape.fill":{en:"Fill shape",zh:"\u56fe\u5f62\u586b\u5145"},"option.color.fill":{en:"Fill Color",zh:"\u989c\u8272\u586b\u5145"},"option.line.color":{en:"Line Color",zh:"\u7ebf\u6761\u989c\u8272"},"option.vector.open":{en:"Disconnect points",zh:"\u53d6\u6d88\u8fde\u63a5\u70b9"},"option.vector.line":{en:"Make straight line",zh:"\u753b\u76f4\u7ebf"},"option.vector.curve":{en:"Make curve",zh:"\u753b\u66f2\u7ebf"},"option.vector.join":{en:"Combine points",
zh:"\u5408\u5e76\u70b9"},"option.vector.break":{en:"Split point",zh:"\u5206\u5f00\u70b9"},"option.vector.shape.add":{en:"Freehand draw shape",zh:"\u5f92\u624b\u753b\u56fe\u5f62"},"option.vector.text.add":{en:"Add text",zh:"\u65b0\u589e\u6587\u5b57"},"option.vector.linkpoint.add":{en:"Add link point",zh:"\u65b0\u589e\u94fe\u63a5\u70b9"},"viewport.menu.text.add":{en:"Add Text (Double-Click)",zh:"\u6dfb\u52a0\u6587\u5b57\uff08\u53cc\u51fb\uff09"},"menu.copy":{en:"Copy",zh:"\u590d\u5236"},"menu.cut":{en:"Cut",
zh:"\u526a\u5207"},"menu.paste":{en:"Paste",zh:"\u7c98\u8d34"},"menu.arrange.front":{en:"Bring To Front",zh:"\u56fe\u5c42\u5411\u524d"},"menu.arrange.back":{en:"Send To Back",zh:"\u56fe\u5c42\u5411\u540e"},"menu.link.change":{en:"Change Link",zh:"\u66f4\u6539\u94fe\u63a5"},"menu.link.text.edit":{en:"Edit Text",zh:"\u7f16\u8f91\u6587\u5b57"},"menu.line.shape.reset":{en:"Reset Default Shape",zh:"\u91cd\u7f6e\u9ed8\u8ba4\u5f62\u72b6"},"menu.line.draw":{en:"Draw Line (L)",zh:"\u753b\u7ebf"},"option.text.color":{en:"Text Color",
zh:"\u6587\u5b57\u989c\u8272"},"option.formatting.remove":{en:"Remove Formatting",zh:"\u5220\u9664\u683c\u5f0f"},"option.input.alt":{en:"Alternative input method (for Eastern IMEs) (Ctrl+Space)",zh:"\u8f6c\u6362\u8f93\u5165\u6cd5\uff08for eastern IME\uff09\uff08\u6309Ctrl+\u7a7a\u683c\uff09"},"label.page.title":{en:"Page Title:",zh:"\u9875\u9762\u6807\u9898\uff1a"},"legend.content.size":{en:"Content Size",zh:"\u5185\u5bb9\u5927\u5c0f "},"legend.grid.size":{en:"Grid Size",zh:"\u7f51\u683c\u5c3a\u5bf8"},
"label.grid.snap.enable":{en:"Enable snap to grid",zh:"\u542f\u7528\u5bf9\u9f50\u5230\u7f51\u683c"},"tooltip.page.new":{en:"New Page",zh:"\u65b0\u9875\u9762 "},"menu.page.delete":{en:"Delete Page",zh:"\u79fb\u9664\u9875\u9762"},"menu.page.settings":{en:"Page Settings",zh:"\u9875\u9762\u8bbe\u5b9a"},"menu.page.duplicate":{en:"Duplicate Page",zh:"\u91cd\u590d\u9875\u9762"},"alert.page.name.blank":{en:"Please enter a name for your page.",zh:"\u8bf7\u8f93\u5165\u4f60\u7684\u9875\u9762\u540d"},"title.page.create":{en:"Create New Page",
zh:"\u521b\u5efa\u65b0\u9875\u9762 "},"Untitled Page":{zh:"\u65e0\u6807\u9898\u9875"},"confirm.p.revision.viewing":{en:"You are currently viewing a previous revision of this document.",zh:"\u60a8\u6b63\u5728\u6d4f\u89c8\u8be5\u6587\u4ef6\u7684\u4ee5\u524d\u7248\u672c\u3002"},"confirm.p.x.hist.page.create":{en:"Exit history mode and create new page?",zh:"\u9000\u51fa\u5386\u53f2\u6a21\u5f0f\u5e76\u521b\u5efa\u65b0\u9875\u9762\uff1f"},"alert.p.readonly":{en:"You are in read-only mode.",zh:"\u4f60\u6b63\u5728\u4f7f\u7528\u53ea\u8bfb\u6a21\u5f0f"},
"alert.p.page.create.cant":{en:"A new page cannot be created.",zh:"\u65b0\u9875\u9762\u65e0\u6cd5\u88ab\u521b\u5efa\u3002"},"confirm.p.x.hist.page.edit":{en:"Exit history mode and edit page properties?",zh:"\u9000\u51fa\u5386\u53f2\u6a21\u5f0f\u5e76\u7f16\u8f91\u9875\u9762\u5c5e\u6027\uff1f"},"alert.p.page.edit.cant":{en:"Page properties cannot be changed.",zh:"\u9875\u9762\u5c5e\u6027\u4e0d\u80fd\u6539\u53d8\u3002"},"confirm.page.delete":{en:"Are you sure you want to delete this page?",zh:"\u4f60\u786e\u5b9a\u8981\u5220\u9664\u6b64\u9875\u5417\uff1f"},
"alert.page.last.delete":{en:"You cannot delete the last page.",zh:"\u4f60\u4e0d\u80fd\u5220\u9664\u6700\u540e\u9875"},"document.rename":{en:"Rename Document",zh:"\u91cd\u547d\u540d\u6587\u4ef6"},"callout.community.heading":{en:"Join the Community!",zh:"\u52a0\u5165\u793e\u533a\uff01"},"callout.community.find":{en:"Find",zh:"\u641c\u7d22"},"callout.community.share":{en:"Share",zh:"\u5171\u4eab"},"callout.community.shared":{en:"Shared",zh:"\u5171\u4eab"},"callout.community.p.find":{en:"See example diagrams created by other members of the LucidChart community.",
zh:"\u53c2\u8003\u7531LucidChart\u793e\u533a\u5176\u4ed6\u6210\u5458\u6240\u521b\u5efa\u7684\u793a\u4f8b\u56fe\u3002"},"callout.community.p.share":{en:"Share this diagram as an example for others in the LucidChart community to see and use.",zh:"\u5206\u4eab\u6b64\u56fe\u8868\u662f\u5728LucidChart\u793e\u533a\uff0c\u5c06\u4f5c\u4e3a\u4f9b\u5176\u4ed6\u4eba\u53c2\u8003\u548c\u4f7f\u7528\u7684\u4f8b\u5b50"},"callout.community.p.shared":{en:"This diagram is shared as an example for others in the LucidChart community to see and use.",
zh:"\u6b64\u56fe\u8868\u662f\u4f5c\u4e3a\u4f9b\u5176\u4ed6\u4eba\u53c2\u8003\u548c\u4f7f\u7528\u7684\u4f8b\u5b50\u800c\u5171\u4eab\u5728LucidChart\u793e\u533a\u7684"},"callout.community.button.browse":{en:"Browse Now",zh:"\u7acb\u5373\u6d4f\u89c8"},"callout.community.button.share":{en:"Share Now",zh:"\u7acb\u5373\u5171\u4eab"},"callout.community.button.unshare":{en:"Un-Share Now",zh:"\u7acb\u5373\u53d6\u6d88\u5171\u4eab"},"menu.page.new":{en:"New Page...",zh:"\u65b0\u9875\u9762"},"menu.saveas":{en:"Save As...",
zh:"\u53e6\u5b58\u4e3a ..."},"menu.template.save":{en:"Save Template...",zh:"\u4fdd\u5b58\u6a21\u7248"},"menu.print":{en:"Print...",zh:"\u6253\u5370 "},"menu.publish":{en:"Publish...",zh:"\u53d1\u5e03"},"menu.undo":{en:"Undo",zh:"\u64a4\u9500"},"menu.redo":{en:"Redo",zh:"\u91cd\u505a"},"menu.close":{en:"Close",zh:"\u5173\u95ed"},"menu.preferences":{en:"Preferences",zh:"\u504f\u597d"},"menu.line.draw.alt":{en:"Draw Line",zh:"\u753b\u7ebf"},"menu.selection.group":{en:"Group Selection",zh:"\u5206\u7ec4\u9009\u62e9"},
"menu.selection.ungroup":{en:"Ungroup Selection",zh:"\u53d6\u6d88\u5206\u7ec4\u9009\u62e9"},"menu.benchmark.performance":{en:"Benchmark Performance",zh:"\u57fa\u51c6\u6027\u80fd "},"menu.forums":{en:"Discussion/Help Forums",zh:"\u8ba8\u8bba/\u5e2e\u52a9 \u8bba\u575b "},"menu.tutorials":{en:"Tutorials",zh:"\u6559\u7a0b "},"menu.hotkey.ref":{en:"Hotkey Reference",zh:"\u70ed\u952e\u53c2\u8003"},"menu.feedback.send":{en:"Send Feedback",zh:"\u610f\u89c1\u56de\u9988 "},"dialog.share.org.tab":{en:"Team Sharing",
zh:"\u56e2\u961f\u5206\u4eab"},"dialog.share.invite.tab":{en:"Sharing",zh:"\u9080\u8bf7\u5408\u4f5c\u8005"},"menu.saveas.description":{en:"Save as (copy)",zh:"\u53e6\u5b58\u4e3a\uff08\u526f\u672c\uff09"},"menu.template.save.description":{en:"Save document as a template",zh:"\u53e6\u5b58\u4e3a\u6a21\u7248\u6587\u4ef6"},"menu.print.description":{en:"Print to PDF or image",zh:"\u4ee5pdf \u6216 \u56fe\u50cf\u7684\u683c\u5f0f\u6253\u5370"},"menu.publish.description":{en:"Publish online",zh:"\u5728\u7ebf\u53d1\u5e03"},
"dialog.hotkeyref.title":{en:"Hotkey Reference",zh:"\u70ed\u952e\u53c2\u8003"},"dialog.hotkeyref.heading.editor":{en:"Editor",zh:"\u7f16\u8f91\u8005"},"dialog.hotkeyref.heading.fileops":{en:"File Operations",zh:"\u6587\u4ef6\u64cd\u4f5c"},Up:{zh:"\u5411\u4e0a"},Down:{zh:"\u5411\u4e0b"},"Arrow Keys":{zh:"\u7bad\u5934\u952e"},"dialog.hotkeyref.arrowkeys.description":{en:"Move selected items up, down, left, or right",zh:"\u5c06\u9009\u5b9a\u7684\u9879\u76ee\u5411\u4e0a\uff0c\u4e0b\uff0c\u5de6\uff0c\u6216\u53f3\u79fb\u52a8"},
"dialog.hotkeyref.alt.description":{en:"Hold down alt, click and drag to pan around the page",zh:"\u6309\u4f4fAlt\u952e\uff0c\u5355\u51fb\u5e76\u62d6\u52a8\u6765\u5e73\u79fb\u9875\u9762"},"dialog.hotkeyref.ctrl.description":{en:"Hold down ctrl, click on an object to add or remove it from the selection",zh:"\u6309\u4f4fCtrl\u952e\uff0c\u5355\u51fb\u8be5\u5bf9\u8c61\u6765\u6dfb\u52a0\u6216\u5220\u9664\u9009\u62e9"},"dialog.hotkeyref.zoom.description":{en:"Zoom in or out",zh:"\u653e\u5927\u6216\u7f29\u5c0f "},
"dialog.hotkeyref.selectall.description":{en:"Select all",zh:"\u9009\u62e9\u6240\u6709"},"dialog.hotkeyref.unselectall.description":{en:"Unselect all",zh:"\u53d6\u6d88\u6240\u6709\u9009\u62e9"},"dialog.hotkeyref.drawline.description":{en:"Draw free-standing line",zh:"\u7ed8\u5236\u7ebf\u6761"},"growl.feedback.sent":{en:"Feedback sent.",zh:"\u53d1\u9001\u53cd\u9988"},"dialog.publish.description":{en:"<p>Publishing allows you to share all or part of your document with anyone by giving them a link.</p>\n<p>These links will always point to the latest saved copy of your document.</p>",
zh:"<p>\u53d1\u5e03\u529f\u80fd\u5141\u8bb8\u4f60\u4e0e\u5176\u4ed6\u4eba\u5206\u4eab\u6574\u4e2a\u6216\u90e8\u5206\u4f60\u7684\u6587\u4ef6\u3002</p> <p>\u8fd9\u4e9b\u94fe\u63a5\u5c06\u59cb\u7ec8\u4fdd\u5b58\u4f60\u7684\u6587\u4ef6\u7684\u6700\u65b0\u526f\u672c\u3002</p>"},"button.publish":{en:"Publish",zh:"\u53d1\u5e03"},"button.print":{en:"Print",zh:"\u6253\u5370 "},"label.publish.webpage":{en:"Web Page",zh:"\u7f51\u9875"},"label.publish.pdf.comment":{en:"Recommended for printing",zh:"\u5efa\u8bae\u6253\u5370"},
"label.publish.png.comment":{en:"Recommended image format",zh:"\u5efa\u8bae\u4f7f\u7528\u56fe\u7247\u683c\u5f0f"},"label.publish.document":{en:"Document",zh:"\u6587\u4ef6"},"label.publish.page":{en:"Current Page",zh:"\u5f53\u524d\u9875"},"label.publish.page.part":{en:"Part of Current Page",zh:"\u5f53\u524d\u9875\u9762\u7684\u4e00\u90e8\u5206"},"button.area.select.again":{en:"Select Area Again",zh:"\u518d\u6b21\u9009\u62e9\u533a\u57df"},"label.publish.zoom.current":{en:"Current Zoom Level",zh:"\u5f53\u524d\u7f29\u653e\u7b49\u7ea7"},
"label.publish.zoom.screen":{en:"Screen Quality",zh:"\u753b\u9762\u54c1\u8d28 "},"label.publish.zoom.print":{en:"Print Quality",zh:"\u6253\u5370\u54c1\u8d28"},"legend.publish.format":{en:"Format",zh:"\u683c\u5f0f"},"legend.publish.content":{en:"Content",zh:"\u5185\u5bb9"},"legend.publish.quality":{en:"Quality",zh:"\u54c1\u8d28"},"button.area.select.publish":{en:"Select Area and Publish",zh:"\u9009\u62e9\u533a\u57df\u5e76\u53d1\u8868"},"button.area.select.print":{en:"Select Area and Print",zh:"\u9009\u62e9\u533a\u57df\u5e76\u6253\u5370"},
"button.library.manage":{en:"Manage Library",zh:"\u56fe\u4e66\u9986\u7ba1\u7406 "},"tooltip.search.clear":{en:"Clear Search",zh:"\u6e05\u9664\u641c\u7d22"},"tooltip.search.options":{en:"Search Options",zh:"\u641c\u7d22\u9009\u9879 "},"toolbox.search":{en:"search",zh:"\u641c\u7d22"},"dialog.library.manage.p":{en:"Select the shape sets you want available for use.",zh:"\u8bf7\u9009\u62e9\u4f60\u60f3\u8981\u7684\u5f62\u72b6\u6765\u4f7f\u7528"},"toolbox.alert.plugin.restricted":{en:'This plugin is only available for Professional and Team users.  Please consider <a id="managetools_upgradelink" target="_blank" href="/users/level">upgrading</a>.',
zh:'\u6b64\u5f62\u72b6\u5e93\u9650\u5236\u4e8e\u4e13\u4e1a\u548c\u56e2\u961f\u7528\u6237\u3002\u8bf7\u8003\u8651<a id="managetools_upgradelink" target="_blank" href="/users/level">upgrading</a>\u70b9\u51fb\u5347\u7ea7</a>\u3002'},"alert.complexity.reached.prefix":{en:"You have reached your complexity limit of",zh:"\u60a8\u5df2\u7ecf\u8fbe\u5230\u4e86\uff0c\u5728\u6bcf\u4e2a\u6587\u4ef6\u4e0a\u4f7f\u7528"},"alert.complexity.reached.suffix":{en:"objects to be drawn on each document. This bar will fill up as you approach that limit.",
zh:"\u4e2a\u7269\u4f53\u7684\u4f7f\u7528\u6781\u9650\uff0c\u5f53\u60a8\u63a5\u8fd1\u6781\u9650\u65f6\u6b64\u8fdb\u5ea6\u6761\u4e5f\u4f1a\u968f\u4e4b\u589e\u957f"},"alert.feedback.send.p":{en:'We would appreciate your feedback on the product.  Click <a class="link" id="complexity_feedback">here</a> to send us a note.',zh:'\u6211\u4eec\u5c06\u5341\u5206\u611f\u6fc0\u60a8\u5bf9\u6211\u4eec\u4ea7\u54c1\u7684\u610f\u89c1\u56de\u9988\u3002\u70b9\u51fb<a class="link" id="complexity_feedback">\u8fd9\u91cc</a>\u7ed9\u6211\u4eec\u7559\u8a00\u3002'},
"dialog.template.exists.title":{en:"Template exists",zh:"\u73b0\u5b58\u6a21\u7248"},"optionbar.group.rows":{en:"Rows",zh:"\u884c"},"optionbar.group.columns":{en:"Columns",zh:"\u5217"},"optionbar.group.selected":{en:"Selected",zh:"\u5df2\u9009\u62e9"},"orgchart.prompt.team.name":{en:"Please enter the name of this team.",zh:"\u8bf7\u8f93\u5165\u56e2\u961f\u540d\u79f0"},"optionbar.group.tabs":{en:"Tabs",zh:"\u6807\u7b7e"},"optionbar.group.links":{en:"Links",zh:"\u94fe\ufffd\ufffd\ufffd"},"optionbar.group.panels":{en:"Panels",
zh:"\u9762\u677f"},"optionbar.group.buttons":{en:"Buttons",zh:"\u6309\u94ae"},"optionbar.group.options":{en:"Options",zh:"\u9009\u9879"},"ui2.hotspot.action.select.heading":{en:"Select a hotspot action:",zh:"\u9009\u62e9\u4e00\u4e2a\u70ed\u70b9\u7684\u884c\u52a8"},"ui2.hotspot.state.choose":{en:"Choose a State",zh:"\u9009\u62e9\u72b6\u6001"},"ui2.hotspot.state.create":{en:"Create New State",zh:"\u521b\u5efa\u65b0\u72b6\u6001"},"ui2.hotspot.linkto.heading":{en:"Link to:",zh:"\u8fde\u63a5\u5230:"},
"label.action.none":{en:"No Action",zh:"\u4e0d\u91c7\u53d6\u884c\u52a8 "},"ui2.hotspot.state.select.error":{en:"Please select a state.",zh:"\u8bf7\u9009\u62e9\u67d0\u4e00\u4e2a\u72b6\u6001 "},"option.line.reverse":{en:"Reverse line direction",zh:"\u53cd\u5411\u7ebf\u65b9\u5411"},"option.multiplicity":{en:"Add Multiplicities",zh:"\u6dfb\u52a0\u591a\u91cd\u6027 "},"userimage.upload.ie.p":{en:"Select an image file to upload. This image will be available for you to use in any future documents.",zh:"\u9009\u62e9\u4e00\u4e2a\u56fe\u50cf\u6587\u4ef6\u4e0a\u4f20\u3002\u6b64\u56fe\u7247\u5c06\u53ef\u4f9b\u60a8\u4efb\u4f55\u672a\u6765\u7684\u6587\u4ef6\u4f7f\u7528\u3002"},
"managefonts.upload.p":{en:"Select a font file (.ttf, .ttc, or .otf) to upload. This font will be available for you to use in any future documents. You may also drag and drop one or more .ttf, .ttc, or .otf files onto the font list above.",zh:"\u9009\u62e9\u4e00\u4e2a\u56fe\u50cf\u6587\u4ef6\u4e0a\u4f20\u3002\u6b64\u56fe\u7247\u5c06\u53ef\u4f9b\u60a8\u4efb\u4f55\u672a\u6765\u7684\u6587\u4ef6\u4f7f\u7528\u3002"},"userimage.dragdrop.p":{en:"At any time, drag an image file from your desktop directly onto the page to add it to your document. This image will be available for you to use in any future documents.",
zh:"\u5728\u4efb\u610f\u65f6\u95f4\uff0c\u5c06\u4e00\u56fe\u7247\u6587\u4ef6\u76f4\u63a5\u4ece\u684c\u9762\u62d6\u81f3\u9875\u9762\u5e76\u6dfb\u52a0\u81f3\u4f60\u7684\u56fe\u8868\u3002 \u8be5\u56fe\u7247\u53ef\u4ee5\u5728\u4efb\u4f55\u65f6\u95f4\u4e3a\u4f60\u5c06\u6765\u7684\u6587\u4ef6\u6240\u4f7f\u7528\u3002"},"userimage.upload.p":{en:"Or, select an image file to upload here.",zh:"\u6216\u8005\uff0c\u9009\u62e9\u4e00\u4e2a\u56fe\u7247\u6587\u4ef6\u5e76\u4e0a\u4f20\u81f3\u6b64"},"toolbox.userimages.title":{en:"User Images",
zh:"\u7528\u6237\u56fe\u6807"},"button.image.upload":{en:"Upload Image",zh:"\u4e0a\u4f20\u56fe\u50cf"},"toolbox.teamimages.title":{en:"Team Images",zh:"\u56e2\u961f\u56fe\u6807"},"userimage.delete.error":{en:"Image could not be deleted. Please try again later.",zh:"\u56fe\u7247\u4e0d\u80fd\u88ab\u5220\u9664\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5"},"userimage.delete.confirm":{en:"<p>Are you sure you want to delete this image? Any documents that use this image will have a broken image.</p><p><strong>This CANNOT be undone.</strong></p>",
zh:"<p>\u60a8\u786e\u5b9a\u8981\u5220\u9664\u6b64\u56fe\u7247\u5417\uff1f \u4efb\u4f55\u4f7f\u7528\u8be5\u56fe\u7247\u7684\u6587\u4ef6\u5c06\u4f1a\u6709\u7834\u788e\u7684\u56fe\u50cf\uff0c</p><p><strong>\u8fd9\u4e0d\u80fd\u88ab\u64a4\u9500</strong></p>."},"userimage.prompt.image.url":{en:"Please enter an image URL",zh:"\u8bf7\u8f93\u5165\u4e00\u4e2a\u56fe\u7247\u7f51\u5740"},"label.publish.page.select":{en:"Page to publish:",zh:"\u9875\u9762\u53d1\u5e03\uff1a"},"button.page.publish":{en:"Publish Page",
zh:"\u53d1\u5e03\u9875\u9762"},"collaborate.option.none":{en:"Is not invited",zh:"\u5df2\u9501\u5b9a"},"collaborate.option.view":{en:"Can view",zh:"\u53ef\u67e5\u770b"},"collaborate.option.edit":{en:"Can edit",zh:"\u53ef\u7f16\u8f91"},"collaborate.option.own":{en:"Is owner",zh:"\u6240\u6709\u8005"},"button.selection.publish":{en:"Publish Selection",zh:"\u53d1\u5e03\u9009\u62e9\u90e8\u5206"},Email:{zh:"\u7535\u5b50\u90ae\u4ef6"},"invitation.new":{en:"New Invitation",zh:"\u65b0\u9080\u8bf7"},"dialog.share.collaborators.heading":{en:"Permissions",
zh:"\u6743\u9650"},"invitations.active":{en:"Active Invitations",zh:"\u73b0\u884c\u7684\u9080\u8bf7"},"Share and publish":{zh:"\u5171\u4eab\u548c\u53d1\u5e03"},"label.invitation.single":{en:"Single use",zh:"\u5355\u6b21\u4f7f\u7528"},"label.published.fulldoc":{en:"Full document",zh:"\u5b8c\u6574\u6587\u6863"},"label.community.share":{en:"Share in Community",zh:"\u5728\u793e\u533a\u5206\u4eab"},"label.community.shared":{en:"Shared in Community",zh:"\u5df2\u5728\u793e\u533a\u5206\u4eab"},Image:{zh:"\u56fe\u50cf"},
"label.publish.page.single":{en:"Single page",zh:"\u5355\u9875"},"label.pdf.image":{en:"PDF/Image",zh:"PDF\u683c\u5f0f/\u56fe\u50cf"},"input.email.prompt":{en:"Enter email addresses (comma separated)",zh:"\u8f93\u5165\u7535\u5b50\u90ae\u4ef6\u5730\u5740"},"menu.invite.user":{en:"Invite Collaborator(s)",zh:"\u9080\u8bf7\u7528\u6237"},Apply:{},"masterpanel.title":{en:"Master Pages"},"alert.apply.master.to.master":{en:"You are currently editing a master page, and cannot apply another master page to it."},
"growl.master.applied":{en:"Master page applied."},"menu.page.masterize":{en:"Convert to Master"},New:{},"pagetitle.master.suffix":{en:"(master)"},"option.page.number":{en:"Insert page number"},"option.page.count":{en:"Insert total pages"},"menu.masterpage.apply.all":{en:"Apply Master to All Pages"},"menu.page.master.apply":{en:"Apply Master"},"menu.masterpage.delete":{en:"Delete Master"},"menu.masterpage.setting":{en:"Master Settings"},"menu.masterpage.duplicate":{en:"Duplicate Master"},"menu.masterpage.demasterize":{en:"Convert Master to Page"},
"masterpanel.button.new":{en:"New Master"},"Untitled Master":{},"masterpanel.default":{en:"Click below to create a master page, or convert an existing page to a master page using the Page drop-down menu."},"menu.page.master.remove":{en:"Remove Master"},"confirm.master.delete":{en:"Are you sure you want to delete this master?"},"alert.offline.disabled":{en:"This functionality is not available while you are working in offline mode. Please connect to the internet to re-enable."},"menu.download":{en:"Download As..."},
"menu.download.description":{en:"Download a PDF or image"},"downloadpanel.title":{en:"Download"},"button.download":{en:"Download"},"button.area.select.download":{en:"Select Area and Download"},"alert.complexity.desc.prefix":{en:"You are limited to"},"alert.complexity.desc.suffix":{en:"objects per document. This bar will fill up as you approach that limit."},"gui.growl.masterpages.new":{en:"NEW Master Pages!"},"option.linejump.on":{en:"Jumping Line Intersections"},"option.linejump.off":{en:"Straight Line Intersections"},
"subnav.templates.team":{en:"Team Templates"},"templates.list.empty":{en:"No templates available."},"templates.description":{en:"Use templates as a starting point for new ideas that incorporate items such as your company logo and other shapes directly into the design.  You can create your own templates by choosing &ldquo;Save as Template&rdquo; from the document editor."},"button.library.manage.touch":{en:"Library"},"notice.templates.custom.upgrade":{en:' does not allow custom templates. You can <a href="/users/level>upgrade</a> to remove this restriction at any time.'},
"notice.templates.shared.upgrade":{en:'You can <a href="/users/level>upgrade</a> to share these templates with other users in your organization.'},"optionbar.group.textformat":{en:"Text Format"},"optionbar.group.alignment":{en:"Alignment"},"document.permission.denied":{en:"You do not have permission to view that document."},"upload.failed":{en:"File upload failed. Please try again."},"vdx.import.failed":{en:"Failed to convert visio file. Please upload in VDX format."},"visio.convert.failed":{en:"Failed to convert visio file"},
"option.fill.solid":{en:"Solid Fill"},"option.fill.linear":{en:"Linear Gradient Fill"},"option.fill.radial":{en:"Radial Gradient Fill"},"option.fill.type":{en:"Fill Type"},Advanced:{},"button.nogradient":{en:"No Gradient"},"optionbar.group.crop":{en:"Crop"},"option.crop":{en:"Crop Image"},"menu.crop.image":{en:"Crop Image"},"titlebar.show.hotspots.button":{en:"Show Hotspots"},"titlebar.hide.hotspots.button":{en:"Hide Hotspots"},"invitation.send":{en:"Send Invitation"},"optionbar.group.paragraph":{en:"Paragraph"},
"input.email_user_group.prompt":{en:"Enter an email address, user, or group"},"menu.multipage.desc":{en:"If this option is selected, you can manually enlarge the page using controls that appear when you move your mouse outside the corners of the page. If this option is not selected, additional printed pages will be added to your diagram automatically if you drag an item beyond the edges of the page."},"optionbar.group.controls":{en:"Controls"},"optionbar.fields.add":{en:"Add a Field"},"optionbar.fields.remove":{en:"Remove a Field"},
"menu.saveas.error":{en:"There was an error creating the new document.  Please try again."},"optionbar.group.add_a_column":{en:"Remove a column"},"optionbar.group.remove_a_column":{en:"Remove a column"},find:{en:"Find"},search:{en:"Search"},replace:{en:"Replace"},"menu.shape.change":{en:"Change Shape"},"search.case":{en:"Case Sensitive"},"search.whole-word":{en:"Whole Words"},"visioexport.ineligible.prefix":{en:"Visio (VDX) export is only available for Professional and Team accounts. Please consider"},
"menu.block.lock":{en:"Lock"},"menu.block.unlock":{en:"Unlock"},"optionbar.group.lock":{en:"Locking"},"menu.block.toggleshadow":{en:"Toggle Drop Shadow"},"optionbar.fields.edit":{en:"Manage Fields"},"growl.save.notworking":{en:"STOP!\n\nThe last few attempts at saving your document have failed. This can be due to a bad internet connection or browser error.  \n\nA further message will be displayed over this one if this error resolves itself in the next few minutes. If no message appears shortly, we recommend you refresh your document to avoid losing work."},
"growl.save.workingagain":{en:"OK!\n\nThe issue has resolved itself, and your document has been saved. Please feel free to continue working on the document as usual."},"apply.master.dialog.title":{en:"Select the master page to be applied"},"invitations.explanation.notification":{en:"We noticed that you are the administrator for a team account but do not have any users on your team yet. You can invite people to join your team at any time by clicking on the Team tab, then the Invite Users button."},
"invitations.title.notification":{en:"Invite People to Join Your Team"},"do.not.ask.again":{en:"Do not ask me again"},"invitations.explanation.notification.button":{en:"Invite Users Now"},Facebook:{zh:"Facebook"},"Zoom out":{zh:"\u7f29\u5c0f"},"Zoom in":{zh:"\u653e\u5927"},Save:{zh:"\u4fdd\u5b58"},Saved:{zh:"\u5df2\u4fdd\u5b58"},Saving:{zh:"\u5b58\u50a8\u4e2d"},"Community Library":{zh:"\u793e\u533a\u56fe\u4e66\u9986"},"Share with others":{zh:"\u540c\u4ed6\u4eba\u5206\u4eab"},Page:{zh:"\u9875\u9762"},
Tools:{zh:"\u5de5\u5177"},Help:{zh:"\u5e2e\u52a9"},"exit.prompt.unsaved":{en:"You have made unsaved changes to this document.",zh:"\u4f60\u5bf9\u8be5\u6587\u4ef6\u505a\u4e86\u672a\u4fdd\ufffd\ufffd\ufffd\u7684\u4fee\u6539"},"alert.restriction.upgrade.paid":{en:'<p>If you wish to permanently remove this restriction, you should <a target="_blank" href="/users/level">upgrade</a> to a paid subscription.</p>',zh:'<p>\u5982\u679c\u60a8\u60f3\u8981\u6c38\u4e45\u79fb\u9664\u8be5\u9650\u5236\uff0c\u60a8\u53ef\u4ee5<a target="_blank" href="/users/level">\u5347\u7ea7\u4e3a\u4ed8\u8d39\u8ba2\u9605\u8d26\u6237</a>.</p>'},
"alert.complexity.upgrade":{en:'<p>Click <a class="link" id="complexity_upgrade">here</a> to start a free trial of a paid account which lifts this limit.</p>',zh:'<p>\u70b9\u51fb\u8fd9\u91cc<a class="link" id="complexity_upgrade">here</a>\uff0c\u5f00\u59cb\u4ed8\u8d39\u8d26\u6237\u514d\u8d39\u8bd5\u7528\u671f\uff0c\u4ee5\u79fb\u9664\u8be5\u9650\u5236\u3002'},"alert.collaboration.revoked":{en:"You have been removed as a collaborator for this document.",zh:"\u4f60\u5df2\u88ab\u9664\u5e76\u4e0d\u518d\u662f\u6b64\u6587\u4ef6\u7684\u5408\u4f5c\u8005"},
"viewport.selectarea":{en:"Click and drag to select part of the page.",zh:"\u70b9\u51fb\u5e76\u62d6\u52a8\u6765\u9009\u62e9\u7f51\u9875\u7684\u4e00\u90e8\u5206"},"alert.publish.unsaved":{en:"You must save your document before publishing it.",zh:"\u4f60\u5fc5\u987b\u5728\u53d1\u8868\u524d\u4fdd\u5b58\u4f60\u7684\u6587\u4ef6 "},"Untitled Document":{zh:"\u672a\u547d\u540d\u6587\u4ef6"},"viewport.banner.share":{en:"Share this link with your friends or coworkers to edit the same diagram at the same time.",
zh:"\u4e0e\u4f60\u7684\u670b\u53cb\u548c\u540c\u4e8b\u5206\u4eab\u6b64\u94fe\u63a5\uff0c\u8fd9\u6837\u4ed6\u4eec\u53ef\u4ee5\u5728\u540c\u4e00\u65f6\u95f4\u7f16\u8f91\u540c\u4e00\u56fe\u8868"},"growl.save.nochange":{en:"No changes to save.",zh:"\u4fdd\u5b58\u6ca1\u6709\u53d8\u5316"},"growl.merge.unsaved":{en:"<strong>Your changes are not yet saved</strong>.  Other users have changed this document.  Their changes have been merged into yours without any problems.",zh:"<strong>\u60a8\u6240\u505a\u7684\u53d8\u66f4\u5c1a\u672a\u5b58\u50a8</strong>\uff0c\u5176\u4ed6\u7528\u6237\u5df2\u7ecf\u66f4\u6539\u4e86\u6b64\u6587\u4ef6\u3002 \u4ed6\u4eec\u7684\u53d8\u66f4\u5df2\u6210\u529f\u5408\u5e76\u5230\u60a8\u7684\u6587\u4ef6\u4e2d\u3002"},
"alert.document.deleted":{en:"This document has been deleted.",zh:"\u6b64\u6587\u4ef6\u5df2\u88ab\u5220\u9664"},"growl.save.timeout":{en:"Save timed out. Please try again.",zh:"\u4fdd\u5b58\u8d85\u65f6\uff0c\u8bf7\u91cd\u8bd5"},"alert.level.templates.unsupported":{en:"does not support custom templates.",zh:"\u4e0d\u652f\u6301\u81ea\u5b9a\u4e49\u6a21\u7248"},"alert.restriction.upgrade.higher":{en:'<p>If you wish to remove this restriction, you should <a target="_blank" href="/users/level">upgrade</a> to a higher subscription level.</p>',
zh:'<p>\u5982\u679c\u60a8\u60f3\u79fb\u9664\u6b64\u9650\u5236\uff0c\u53ef\u4ee5<a target="_blank" href="/users/level">\u5347\u7ea7</p>\u8d26\u6237\u3002'},"growl.template.notshared":{en:"Template could not be shared.  Please try again.",zh:"\u6a21\u7248\u4e0d\u80fd\u88ab\u5206\u4eab\uff0c\u8bf7\u91cd\u8bd5"},"alert.onlyowner.share":{en:"Only a document's owner may share it in the Community Library.",zh:"\u53ea\u6709\u6587\u4ef6\u7684\u6240\u6709\u8005\u53ef\u4ee5\u5c06\u5176\u5206\u4eab\u81f3\u793e\u533a\u56fe\u4e66\u9986"},
"alert.onlyowner.unshare":{en:"Only a document's owner may remove it from the Community Library.",zh:"\u53ea\u6709\u6587\u4ef6\u7684\u6240\u6709\u8005\u53ef\u5c06\u5176\u4ece\u793e\u533a\u56fe\u4e66\u7ba1\u4e2d\u79fb\u9664"},"growl.template.notsaved":{en:"Template could not be saved. Please try again.",zh:"\u6a21\u7248\u4e0d\u80fd\u88ab\u4fdd\u5b58\uff0c \u8bf7\u91cd\u8bd5 "},"title.template.overwrite":{en:"Overwrite Existing Template",zh:"\u8986\u76d6\u73b0\u6709\u6a21\u7248"},"title.template.new":{en:"Save New Template",
zh:"\u4fdd\u5b58\u65b0\u6a21\u7248 "},"message.template.overwrite":{en:"The existing template will be overwritten.",zh:"\u73b0\u6709\u7684\u6a21\u7248\u5c06\u88ab\u8986\u76d6"},"message.template.new":{en:"This will save this document as a new <em>template</em>. This means that each time you create a new document in LucidChart, you will be able to use this document as a starting point.",zh:"\u8fd9\u5c06\u6b64\u6587\u4ef6\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u65b0\u7684<em>\u6a21\u677f\u6587\u6863</em>\u3002\u6bcf\u5f53\u60a8\u5728LucidChart\u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u6863\uff0c\u5c06\u80fd\u591f\u4f7f\u7528\u8be5\u6587\u4ef6\u4e3a\u51fa\u53d1\u70b9\u3002"},
"message.template.settings":{en:"This document will be used as a <em>template</em>. You (and anyone you share this document with) will be able to use this document as a starting point for new documents."},"confirm.template.overwrite":{en:"Would you like to overwrite the existing template?",zh:"\u4f60\u613f\u610f\u8986\u76d6\u73b0\u5b58\u6a21\u7248\u5417\uff1f"},"prompt.title.new":{en:"Enter a new title",zh:"\u8bf7\u8f93\u5165\u65b0\u6807\u9898 "},"alert.facebook.unsaved":{en:"You must save this document before sharing it on Facebook.",
zh:"\u4f60\ufffd\ufffd\ufffd\u987b\u5728\u5206\u4eab\u5230Facebook\u524d\u4fdd\u5b58\u6b64\u6587\u4ef6"},"alert.facebook.unowned":{en:"You are not the owner of this document; you can only share it on Facebook after its owner has published it as a web page.",zh:"\u4f60\u4e0d\u662f\u6b64\u6587\u4ef6\u7684\u6240\u6709\u8005\uff0c\u4f60\u53ea\u80fd\u5728\u5176\u6240\u6709\u8005\u5c06\u5176\u53d1\u5e03\u4e3a\u7f51\u9875\u540e\u518d\u5206\u4eab\u5230Facebook\u4e0a"},"alert.twitter.unsaved":{en:"You must save this document before sharing it on Twitter.",
zh:"\u4f60\u5fc5\u987b\u5728\u5206\u4eab\u5230Twitter\u524d\u4fdd\u5b58\u6b64\u6587\u4ef6"},"alert.twitter.unowned":{en:"You are not the owner of this document; you can only share it on Twitter after its owner has published it as a web page.",zh:"\u4f60\u4e0d\u662f\u6b64\u6587\u4ef6\u7684\u6240\u6709\u8005\uff0c\u4f60\u53ea\u80fd\u5728\u6240\u6709\u8005\u5c06\u5176\u53d1\u5e03\u4e3a\u7f51\u9875\u540e\u518d\u5206\u4eab\u5230Twitter\u4e0a"},"demo.clickanywhere":{en:"Click anywhere to continue",zh:"\u70b9\u51fb\u4efb\u4f55\u4e00\u5904\u6765\u7ee7\u7eed "},
Uploading:{zh:"\u4e0a\u4f20"},"growl.upload.failed":{en:"File upload failed. Please try again.",zh:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5"},"dialog.org.role.heading":{en:"Everyone on my team:",zh:"\u5728\u6211\u7684\u7ec4\u7ec7\u4e2d\u7684\u6bcf\u4eba\u5c06\u4f1a\u6388\u6743\uff1a"},None:{zh:"\u65e0 "},View:{zh:"\u67e5\u770b "},Edit:{zh:"\u7f16\u8f91"},Own:{zh:"\u62e5\u6709 "},"description.own":{en:"Give full permissions",zh:"\u7ed9\u4e88\u5b8c\u5168\u6743\u9650 "},"settings.org.save":{en:"Save Team Settings",
zh:"\u4fdd\u5b58\u7ec4\u7ec7\u8bbe\u5b9a "},"Middle Align":{zh:"\u4e2d\u95f4\u5bf9\u9f50 "},"overlay.crop.instructions":{en:"Drag the crop points.  Press escape to cancel or enter to complete the cropping."}};var hm={"subnav.documents.all":{en:"All Documents",zh:"\u6240\u6709\u6587\u6863"},"subnav.documents.search":{en:"Search Results",zh:"\u641c\u7d22\u7ed3\u679c"},"subnav.documents.my":{en:"My Documents",zh:"\u6211\u7684\u6587\u6863"},"subnav.documents.team":{en:"Team Documents",zh:"\u56e2\u961f\u6587\u6863"},"subnav.templates.my":{en:"My Templates",zh:"\u6211\u7684\u6a21\u677f"},"subnav.documents.deleted":{en:"Deleted Documents",zh:"\u5df2\u5220\u9664\u7684\u6587\u6863"},"nav.documents":{en:"Documents",
zh:"\u6587\u6863"},"nav.community":{en:"Community",zh:"\u793e\u533a"},"nav.team":{en:"Team",zh:"\u56e2\u961f"},"nav.forums":{en:"Forums",zh:"\u8bba\u575b"},"nav.account":{en:"Account",zh:"\u8d26\u6237"},"nav.referrals":{en:"Referrals",zh:"\u63a8\u8350\u4eba"},"nav.tour":{en:"Tour",zh:"\u6f14\u793a"},"nav.examples":{en:"Examples",zh:"\u8303\u4f8b"},"nav.tutorials":{en:"Tutorials",zh:"\u6559\u7a0b"},"nav.pricing":{en:"Pricing",zh:"\u5b9a\u4ef7"},"nav.admin":{en:"Admin",zh:"\u7ba1\u7406\u8005"},signout:{en:"Sign out",
zh:"\u9000\u51fa"},usersettings:{en:"User settings",zh:"\u7528\u6237\u8bbe\u5b9a"},"label.username":{en:"Username",zh:"\u7528\u6237\u540d"},"label.password":{en:"Password",zh:"\u5bc6\u7801"},"label.rememberme":{en:"Remember me",zh:"\u8bb0\u4f4f\u6211"},signin:{en:"Sign in",zh:"\u767b\u9646"},"heading.signin.or":{en:"Or sign in with:",zh:"\u7528\u5176\u4ed6\u8d26\u6237\u767b\u9646\uff1a"},signup:{en:"Sign up",zh:"\u6ce8\u518c"},forgotpassword:{en:"Forgot your password?",zh:"\u5fd8\u8bb0\u5bc6\u7801\uff1f"},
Search:{zh:"\u641c\u7d22"},"documents.search":{en:"Search Documents",zh:"\u641c\u7d22\u6587\u6863"},"subnav.search.results":{en:"Search Results",zh:"\u641c\u7d22\u7ed3\u679c"},"button.document.new":{en:"+ New Document",zh:"\u65b0\u5efa\u6587\u6863"},"subnav.sort.modified":{en:"Last Modified",zh:"\u6700\u8fd1\u4fee\u6539"},"subnav.sort.relevance":{en:"Relevance",zh:"\u5173\u8054"},"subnav.sort.name":{en:"Name",zh:"\u540d\u79f0"},"subnav.sort.created":{en:"Created",zh:"\u5efa\u7acb\u65e5\u671f"},"subnav.sort.size":{en:"Size",
zh:"\u5927\u5c0f"},"subnav.h.documents":{en:"Documents",zh:"\u6587\u6863"},"subnav.h.sort":{en:"Sort",zh:"\u6392\u5217"},"subnav.h.tags":{en:"Tags",zh:"\u6807\u7b7e"},"subnav.h.account":{en:"Account",zh:"\u8d26\u6237"},"subnav.settings.user":{en:"User Settings",zh:"\u7528\u6237\u8bbe\u5b9a"},"subnav.referrals":{en:"Referrals",zh:"\u63a8\u8350\u4eba"},"subnav.preferences.editor":{en:"Editor Preferences",zh:"\u7f16\u8f91\u8005\u504f\u597d"},"subnav.level.subscription":{en:"Subscription Level",zh:"\u8ba2\u9605\u7b49\u7ea7"},
"subnav.payments.subscription":{en:"Payment History",zh:"\u8ba2\u9605\u7f34\u8d39"},"subnav.account.close":{en:"Close Account",zh:"\u5173\u95ed\u8d26\u6237"},"subnav.h.team":{en:"Team",zh:"\u56e2\u961f"},"subnav.team.setup":{en:"Setup",zh:"\u5efa\u7acb"},"subnav.team.settings":{en:"Settings",zh:"\u8bbe\u5b9a"},"subnav.team.users":{en:"Users",zh:"\u7528\u6237"},"subnav.team.gapps":{en:"Google Apps",zh:"\u8c37\u6b4c\u5e94\u7528"},"storagemeter.available":{en:"You are using %d%% of your %s",zh:"\u60a8\u5df2\u7ecf\u4f7f\u7528\u50a8\u5b58\u91cf\uff08%s\uff09\u7684%d%%"},
"storagemeter.upgrade.p":{en:'You need to <a href="/users/level">upgrade</a> your subscription.',zh:'\u60a8\u76ee\u524d\u7684\u8d26\u6237\u7ea7\u522b\u4e0d\u5141\u8bb8\u6b64\u64cd\u4f5c\u3002\u8bf7<a href="/users/level">\u5347\u7ea7</a>\u3002'},"storagemeter.pay.p":{en:'You need to <a href="/users/pay">pay for</a> your subscription.',zh:'\u8bf7\u5148<a href="/users/level">\u652f\u4ed8\u8d39\u7528</a>\u3002'},startdrawing:{en:"Start Drawing",zh:"\u5f00\u59cb\u7ed8\u56fe"},Features:{zh:"\u7279\u70b9"},
"footer.diagrams":{en:"Diagram Examples",zh:"\u56fe\u8868\u8303\u4f8b"},"examples.flowchart":{en:"Flowchart",zh:"\u6d41\u7a0b\u56fe"},"examples.wireframe":{en:"Wireframe",zh:"\u7ebf\u6846\u56fe"},"examples.uml":{en:"UML Diagram",zh:"UML \u56fe\u8868"},"examples.network":{en:"Network Diagram",zh:"\u7f51\u7edc\u56fe"},"examples.iphone":{en:"iPhone Mockup",zh:"iPhone \u6837\u673a"},"examples.business":{en:"Business Process",zh:"\u5546\u4e1a\u8fc7\u7a0b"},"examples.org":{en:"Org Chart",zh:"\u7ec4\u7ec7\u56fe"},
"examples.sitemap":{en:"Site Map",zh:"\u7f51\u7ad9\u5bfc\u822a\u56fe"},"examples.mindmap":{en:"Mind Map",zh:"\u601d\u7ef4\u56fe"},"nav.blog":{en:"Blog",zh:"\u535a\u5ba2"},"footer.casestudies":{en:"Case Studies",zh:"\u6848\u4f8b\u5b66\u4e60"},"footer.h.support":{en:"Support",zh:"\u652f\u6301"},"footer.contact":{en:"Contact",zh:"\u8054\u7cfb"},"footer.bugreports":{en:"Bug Reports",zh:"\u9519\u8bef\u62a5\u544a"},"footer.edupricing":{en:"Educational Pricing",zh:"\u6559\u80b2\u5b9a\u4ef7"},"footer.h.about":{en:"About",
zh:"\u5173\u4e8e"},"footer.reviews":{en:"Reviews",zh:"\u70b9\u8bc4"},"footer.news":{en:"News",zh:"\u65b0\u95fb"},"footer.tos":{en:"Terms of Service",zh:"\u670d\u52a1\u6761\u6b3e"},"footer.privacy":{en:"Privacy Policy",zh:"\u9690\u79c1\u58f0\u660e"},"documents.h.allusers":{en:"All Users' Documents",zh:"\u6240\u6709\u7528\u6237\u7684\u6587\u6863"},"documents.h.search":{en:"Search:",zh:"\u641c\u7d22\uff1a"},"documents.h.alluserspublished":{en:"All Users' Published Documents",zh:"\u6240\u6709\u7528\u6237\u53d1\u5e03\u7684\u6587\u6863"},
"documents.h.documents":{en:"Documents:",zh:"\u6587\u6863\uff1a"},"documents.teamdocs.p":{en:'These documents have been shared with your entire team by another user.  Once you open any of these documents, they will be moved to your <a href="/documents">All Documents</a> list.',zh:'\u8fd9\u4e9b\u6587\u6863\u5df2\u7ecf\u88ab\u5176\u4ed6\u7528\u6237\u5206\u4eab\u7ed9\u4e86\u60a8\u7684\u6574\u4e2a\u56e2\u961f\u3002\u5f53\u60a8\u6253\u5f00\u8fd9\u4e9b\u6587\u6863\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\uff0c\u5b83\u4eec\u5c31\u4f1a\u88ab\u8f6c\u79fb\u5230\u60a8\u7684<a href="/documents">\u6240\u6709\u6587\u6863</a>\u5217\u8868\u4e2d\u3002'},
"pagenumber.h":{en:"Page %s",zh:"\u9875\u9762 %d"},"documents.deleted.p":{en:"These documents have been deleted.  Click any of these documents to restore it to your My Documents list. These documents are automatically removed from this list after 7 days.",zh:"\u8fd9\u4e9b\u6587\u6863\u5df2\u7ecf\u88ab\u5220\u9664\u4e86\u3002\u5355\u51fb\u8fd9\u4e9b\u6587\u6863\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\u6765\u6062\u590d\u5230\u60a8\u7684\u6211\u7684\u6587\u6863\u5217\u8868\u4e2d\u3002\u8fd9\u4e9b\u6587\u6863\u4f1a\u5728\u4e03\u5929\u540e\u81ea\u52a8\u4ece\u6b64\u5217\u8868\u4e2d\u79fb\u9664\u3002"},
"community.h.recent":{en:"Most Recent",zh:"\u6700\u8fd1\u6253\u5f00"},"community.h.rated.high":{en:"Highest-Rated",zh:"\u6700\u9ad8\u8bc4\u5206"},"community.h.rated.most":{en:"Most-Rated",zh:"\u6700\u591a\u8bc4\u5206"},"community.h.examples":{en:"Examples",zh:"\u8303\u4f8b"},"community.h.featured":{en:"Featured Examples",zh:"\u7cbe\u9009\u8303\u4f8b"},"community.h.search":{en:"Community Search:",zh:"\u793e\u533a\u641c\u7d22\uff1a"},"community.h2.category":{en:"%s Examples",zh:"%s \u8303\u4f8b"},"community.none.p":{en:"No examples found.",
zh:"\u6ca1\u6709\u627e\u5230\u8303\u4f8b\u3002"},"tips.h2.getstarted":{en:"3 Tips to Get Started with LucidChart:",zh:"\u5f00\u59cb\u4f7f\u7528LucidChart\u7684\u4e09\u4e2a\u7a8d\u95e8\uff1a"},"tips.dragdrop.h":{en:"Drag and Drop",zh:"\u62d6\u653e"},"tips.dragdrop.p":{en:'Simply <span class="highlight">drag</span> a shape from the toolbox and <span class="highlight">drop</span> it on the canvas.',zh:'\u7b80\u5355\u5730<span class="highlight">\u62d6\u52a8</span>\u5de5\u5177\u7bb1\u4e2d\u7684\u4efb\u4f55\u4e00\u4e2a\u56fe\u5f62\u5e76\u4e14<span class="highlight">\u653e\u7f6e</span>\u6b64\u56fe\u5f62\u5230\u753b\u5e03\u4e0a\u3002'},
"tips.button.skipstart":{en:"Skip and start drawing",zh:"\u8df3\u8fc7\u5e76\u5f00\u59cb\u7ed8\u56fe"},"tips.button.next":{en:"Next Tip",zh:"\u4e0b\u4e00\u4e2a\u7a8d\u95e8"},"tips.lineprompt.h":{en:"Lines and Autoprompt",zh:"\u7ebf\u6761\u548c\u63d0\u793a\u6846"},"tips.lineprompt.p":{en:'To <span class="highlight">draw a line</span>, just click and drag from the edge of a shape. Release and an <span class="highlight">autoprompt</span> will help you select your next shape.',zh:'\u60f3\u8981<span class="highlight">\u753b\u4e00\u4e2a\u7ebf\u6761</span>\uff0c\u53ea\u9700\u70b9\u51fb\u5e76\u62d6\u52a8\u56fe\u5f62\u8fb9\u7f18\u3002\u677e\u5f00\u9f20\u6807\u540e\u4e00\u4e2a<span class="highlight">\u63d0\u793a\u6846</span>\u5c06\u63d0\u793a\u60a8\u9009\u62e9\u60a8\u7684\u4e0b\u4e00\u4e2a\u56fe\u5f62\u3002'},
"tips.button.prev":{en:"Previous Tip",zh:"\u4e0a\u4e00\u4e2a\u7a8d\u95e8"},"tips.button.finish":{en:"Finish",zh:"\u7ed3\u675f"},"tips.buttons.close":{en:"Close",zh:"\u5173\u95ed"},"tips.collaborate.h":{en:"Collaborate and Share",zh:"\u5408\u4f5c\u4e0e\u5206\u4eab"},"tips.collaborate.p":{en:'<span class="highlight">Invite</span> collaborators by entering an email address. <span class="highlight">Publish and share</span> in multiple formats (PDF, image, etc.).',zh:'\u901a\u8fc7\u8f93\u5165\u7535\u5b50\u90ae\u7bb1\u5730\u5740\u6765<span class="highlight">\u9080\u8bf7</span>\u5408\u4f5c\u8005. \u901a\u8fc7\u4e0d\u540c\u7684\u683c\u5f0f(PDF, \u56fe\u7247, \u7b49\u7b49).\u6765<span class="highlight">\u53d1\u5e03\u5e76\u5206\u4eab</span>'},
"tips.h2.joincommunity":{en:"2 Tips to Joining the LucidChart Community:",zh:"\u4e24\u4e2a\u52a0\u5165LucidChart community \u7684\u79d8\u8bc0"},"tips.community.browse.h":{en:"Start from an Example",zh:"\u4ece\u4e00\u4e2a\u4f8b\u5b50\u5f00\u59cb"},"tips.community.browse.p":{en:'Click <span class="highlight">Browse Now</span> in the community menu to open the community library.  Start a new document from an example by clicking <span class="highlight">Use as Template.</span>',zh:'\u5728\u793e\u533a\u83dc\u5355\u4e2d\u70b9\u51fb<span class="highlight">\u6d4f\u89c8</span>\u5219\u8fdb\u5165\u793e\u533a\u56fe\u4e66\u9986\u3002\u5982\u679c\u5e0c\u671b\u5229\u7528\u5b9e\u4f8b\u521b\u5efa\u65b0\u7684\u6587\u4ef6\uff0c\u70b9\u51fb<span class="highlight">\u4f7f\u7528\u6a21\u7248</span>\u3002'},
"tips.community.share.h":{en:"Share an Example",zh:"\u5206\u4eab\u4e00\u4e2a\u4f8b\u5b50"},"tips.community.share.p":{en:'Click <span class="highlight">Share Now</span> in the community menu to open the <span class="highlight">Share</span> dialog.  Select a category, enter a short description, then click the <span class="highlight">Share Document</span> button.',zh:' \u5728\u793e\u533a\u83dc\u5355\u4e2d\u70b9\u51fb<span class="highlight">\u5206\u4eab</span>\u5219\u8fdb\u5165<span class="highlight">\u5206\u4eab</span> \u5bf9\u8bdd.  \u9009\u62e9\u4e00\u4e2a\u5206\u7c7b, \u8f93\u5165\u7b80\u77ed\u7684\u63cf\u8ff0, \u7136\u540e\u70b9\u51fb <span class="highlight">\u5206\u4eab\u6587\u4ef6</span> \u952e.'},
"tips.richtext.h":{en:"New rich text editor!",zh:"\u65b0\u6587\u672c\u7f16\u8f91\u5668"},"tips.richtext.p1":{en:'We have just released a new text editor that provides better control over entering and displaying text. You now have much better control over <span class="highlight">text size</span>, and can choose from <span class="highlight">dozens of fonts.</span>',zh:'\u6211\u4eec\u521a\u521a\u53d1\u5e03\u4e86\u4e00\u4e2a\u65b0\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5b83\u63d0\u4f9b\u4e86\u66f4\u597d\u5730\u63a7\u5236\u8f93\u5165\u548c\u663e\u793a\u6587\u672c\u3002\u60a8\u73b0\u5728\u6709\u5f88\u591a\u66f4\u597d\u5730\u63a7\u5236<span class="highlight">\u6587\u5b57\u5927\u5c0f</span>\uff0c\u5e76\u53ef\u4ee5\u4ece\u4e2d\u9009\u62e9<span class="highlight">\u5b57\u4f53\u3002</span>'},
"tips.richtext.p2":{en:'To enter foreign languages, such as <span class="highlight">Chinese, Japanese or Korean</span>, that require an Input Method Editor (IME), first select the %s button in the option bar above your diagram, or use the keyboard shortcut Ctrl + Space.',zh:'\u8f93\u5165\u5916\u56fd\u8bed\u8a00\u4f8b\u5982<span class="highlight">\u4e2d\u6587\uff0c\u65e5\u6587\u6216\u97e9\u6587</span>\uff0c\u9700\u8981\u4e00\u4e2a\u8f93\u5165\u6cd5\u7f16\u8f91\u5668\uff08IME\uff09\u3002\u9996\u5148\u9009\u62e9\u5728\u56fe\u8868\u4e0a\u65b9\u9879\u680f\u4e2d\u7684\uff05s\u6309\u94ae\uff0c\u6216\u4f7f\u7528\u952e\u76d8\u5feb\u6377\u952eCtrl+\u7a7a\u683c\u3002'},
"tips.richtext.p2a":{en:"This will open a text entry dialog associated with your text entry area. Enter your text normally using your IME, and when you exit the dialog box your characters will appear in the text area.\n\t",zh:"\u8fd9\u5c06\u6253\u5f00\u4e00\u4e2a\u6587\u672c\u8f93\u5165\u5bf9\u8bdd\u6846\u4e0e\u60a8\u7684\u6587\u5b57\u8f93\u5165\u533a\u57df\u76f8\u5173\u8054\u3002\u4f7f\u7528\u60a8\u901a\u5e38\u4f7f\u7528\u7684\u8f93\u5165\u6cd5\u6765\u8f93\u5165\u60a8\u7684\u6587\u5b57\uff0c\u800c\u5f53\u60a8\u9000\u51fa\u5bf9\u8bdd\u6846\u65f6\u8be5\u5bf9\u8bdd\u6846\u4e2d\u7684\u5b57\u7b26\u5c06\u663e\u793a\u5728\u6587\u672c\u533a\u3002"},
"tips.richtext.note.p":{en:"Note: These languages currently work with the default font (Liberation Sans).",zh:"\u6ce8\uff1a\u76ee\u524d\u8fd9\u4e9b\u8bed\u8a00\u7684\u9ed8\u8ba4\u5b57\u4f53\u4e3a\uff08Liberation Sans\uff09\u3002"},"tips.freehand.h":{en:'How to Edit Shapes <span class="orange">(BETA)</span>',zh:'\u5982\u4f55\u7f16\u8f91\u5f62\u72b6<span class="orange">(BETA)</span>'},"tips.freehand.textlink.h":{en:"Text Areas and Link Points",zh:"\u6587\u672c\u533a\u57df\u548c\u94fe\u63a5\u70b9"},
"tips.freehand.textlink.p1":{en:"Click on text areas to select them, then move or resize them by clicking and dragging. Click on the add text button %s to add a new text area. Press Delete to remove a selected text area.",zh:"\u5355\u51fb\u6587\u672c\u533a\u57df\u6765\u9009\u62e9\u5b83\u4eec\uff0c\u7136\u540e\u901a\u8fc7\u70b9\u51fb\u548c\u62d6\u52a8\u6765\u79fb\u52a8\u6216\u8c03\u6574\u5927\u5c0f\u3002\u6309\u4e00\u4e0b\u6dfb\u52a0\u6587\u672c\u6309\u94ae\uff05s\u6765\u6dfb\u52a0\u65b0\u7684\u6587\u672c\u533a\u57df\ufffd\ufffd\ufffd\u6309Delete\u952e\u5220\u9664\u9009\u5b9a\u7684\u6587\u672c\u533a\u57df\u3002"},
"tips.freehand.textlink.p2":{en:"Click and drag the link points to mover them to a different location on the shape outline.",zh:"\u5355\u51fb\u5e76\u62d6\u52a8\u94fe\u63a5\u70b9\u5c06\u5176\u79fb\u52a8\u81f3\u4e00\u4e2a\u4e0d\u540c\u7684\u5f62\u72b6\u8f6e\u5ed3\u7684\u4f4d\u7f6e\u3002"},"tips.freehand.shape.h":{en:"Shape Outlines",zh:"\u5f62\u72b6\u8f6e\u5ed3"},"tips.freehand.shape.p1":{en:"Double-click a shape's outline to go into vector-editing mode, and double-click away from a shape (or press Escape) to exit vector-editing mode.",
zh:"\u53cc\u51fb\u5f62\u72b6\u7684\u8f6e\u5ed3\u8fdb\u5165\u77e2\u91cf\u7f16\u8f91\u6a21\u5f0f\uff0c\u8fdc\u79bb\u5f62\u72b6\u53cc\u51fb\uff08\u6216\u6309Esc\u952e\uff09\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f\u3002"},"tips.freehand.shape.p2":{en:"While in vector-editing mode, click and drag the line points and control points to change the shape of the outline. Double-click on the line to add more points.",zh:"\u5728\u77e2\u91cf\u7f16\u8f91\u6a21\u5f0f\uff0c\u70b9\u51fb\u5e76\u62d6\u52a8\u8fb9\u754c\u70b9\u548c\u63a7\u5236\u70b9\u6765\u6539\u53d8\u5916\u5f62\u8f6e\u5ed3\u3002\u53cc\u51fb\u8fb9\u754c\u7ebf\u6765\u6216\u7684\u66f4\u591a\u7684\u70b9\u3002"},
"tips.freehand.shape.p3":{en:"Click the Freehand Draw icon %s in the toolbar to start drawing a new shape.",zh:"\u70b9\u51fb\u5de5\u5177\u680f\u4e2d\u7684\u81ea\u7531\u7ed8\u753b\u56fe\u6807\uff05\u5f00\u59cb\u7ed8\u5236\u65b0\u5f62\u7684\u3002"},"bugs.contact.h":{en:"Contact %s",zh:"\u8054\u7cfb %s"},"bugs.contact.p1":{en:'If you would like to report a problem with the LucidChart software, please use the <a href="/bugs/report">Report A Problem</a> page.',zh:'\u5982\u679c\u60a8\u60f3\u62a5\u544aLucidChart\u8f6f\u4ef6\u7f3a\u9677\uff0c\u8bf7\u4f7f\u7528<a href="/bugs/report">\u62a5\u544a\u95ee\u9898</a>\u9875\u9762\u3002'},
"bugs.contact.p2":{en:"Use the following form to send a message directly to LucidChart's staff. We will respond as time permits.",zh:"\u4f7f\u7528\u4e0b\u5217\u8868\u683c\u76f4\u63a5\u5411LucidChart\u7684\u5de5\u4f5c\u4eba\u5458\u53d1\u9001\u90ae\u4ef6\u3002\u6211\u4eec\u5c06\u5373\u65f6\u56de\u5e94\u3002"},"bugs.label.useragent":{en:"Your User-Agent",zh:"\u60a8\u7684\u7528\u6237\u4ee3\u7406"},"bugs.label.browser":{en:"Your Browser",zh:"\u60a8\u7684\u6d4f\u89c8\u5668 "},"bugs.label.os":{en:"Your Operating System",
zh:"\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf "},"bugs.label.email":{en:"Your Email Address",zh:"\u60a8\u7684\u7535\u5b50\u90ae\u7bb1\u5730\u5740"},"bugs.contact.label.title":{en:"Message Title",zh:"\u90ae\u4ef6\u6807\u9898"},"bugs.contact.label.content":{en:"Message Body",zh:"\u90ae\u4ef6\u6b63\u6587"},"bugs.contact.button.submit":{en:"Send Message",zh:"\u53d1\u9001\u6d88\u606f"},"education.title":{en:"Educational Pricing and Discounts",zh:"\u6559\u80b2\u673a\u6784\u4ef7\u683c\u548c\u6298\u6263"},"education.desc":{en:"Educators and students at all educational levels can receive discounts on LucidChart's online diagramming software.",
zh:"\u5404\u7ea7\u7684\u6559\u80b2\u5de5\u4f5c\u8005\u548c\u5b66\u751f\u90fd\u80fd\u4eab\u53d7LucidChart\u7684\u5728\u7ebf\u7ed8\u56fe\u8f6f\u4ef6\u7684\u6298\u6263\u3002"},"education.h":{en:"LucidChart for Educators and Students",zh:"LucidChart\u9488\u5bf9\u6559\u80b2\u5de5\u4f5c\u8005\u53ca\u5b66\u751f"},"education.plarge":{en:"Use LucidChart to augment the learning process by creating flowcharts, mind maps and other types of diagrams. Enable students to easily collaborate in real-time on group projects.",
zh:"\u4f7f\u7528LucidChart\uff0c\u901a\u8fc7\u521b\u5efa\u6d41\u7a0b\u56fe\uff0c\u601d\u7ef4\u5bfc\u56fe\u4ee5\u53ca\u5176\u4ed6\u7c7b\u578b\u7684\u56fe\u8868\u6765\u589e\u8fdb\u5b66\u4e60\u7684\u8fc7\u7a0b\u3002\u4f7f\u5b66\u751f\u8f7b\u677e\u5730\u5728\u56e2\u961f\u9879\u76ee\u4e0a\u8fdb\u884c\u5b9e\u65f6\u534f\u4f5c\u3002"},"education.h2a":{en:"Educational Benefits of Diagramming",zh:"\u56fe\u8868\u5bf9\u6559\u80b2\u7684\u76ca\u5904"},"education.pa1":{en:"Drawing diagrams trains students on how to translate written information into visual information, with the opportunity to acquire knowledge during this process through reorganization of information and inference-making.",
zh:"\u7ed8\u5236\u56fe\u8868\u8bad\u7ec3\u5b66\u751f\u5982\u4f55\u5c06\u4e66\u9762\u4fe1\u606f\u8f6c\u6362\u81f3\u89c6\u89c9\u4fe1\u606f\u3002\u540c\u65f6\u4e5f\u53ef\u4ee5\u4f7f\u5b66\u751f\u5728\u8fd9\u4e2a\u63a8\u7406\u51b3\u7b56\u4ee5\u53ca\u91cd\u65b0\u7ec4\u7ec7\u7684\u8fc7\u7a0b\u4e2d\u80fd\u591f\u66f4\u597d\u7684\u83b7\u53d6\u77e5\u8bc6."},"education.pa2":{en:"Research suggests that there are three types of knowledge acquisition that drawing diagrams can reinforce. First, diagramming trains students to include relevant problem information, and to leave out irrelevant features. Second, it teaches students how to organize the relevant information spatially, and to see and understand proper relationships. Third, students are able to extend the knowledge and understanding represented by one diagram to other analogous situations or problem solving situations. At each stage, teachers can diagnose students' difficulties in gaining the proper understanding and intervene as needed.",
zh:"\u7814\u7a76\u8868\u660e\uff0c\u901a\u8fc7\u7ed8\u5236\u56fe\u8868\u53ef\u4ee5\u52a0\u5f3a\u5bf9\u4e09\u79cd\u7c7b\u578b\u7684\u77e5\u8bc6\u7684\u83b7\u53d6\u3002\u9996\u5148\uff0c\u56fe\u8868\u57f9\u517b\u5b66\u751f\u4f7f\u7528\u76f8\u5173\u4fe1\u606f\u6765\u6982\u62ec\u95ee\u9898\u7684\u80fd\u529b\u3002\u5176\u6b21\uff0c\u5b83\u6559\u5bfc\u5b66\u751f\u5982\u4f55\u7ec4\u7ec7\u6709\u5173\u7684\u4fe1\u606f\u7a7a\u95f4\uff0c\u5e76\u660e\u767d\u4ec0\u4e48\u662f\u6b63\u786e\u7684\u5173\u7cfb\u3002\u7b2c\u4e09\uff0c\u5b66\u751f\u80fd\u591f\u6269\u5927\u5bf9\u77e5\u8bc6\u9762\u7684\u4e86\u89e3\uff0c\u4e00\u4e2a\u56fe\u8868\u6240\u4ee3\u8868\u7684\u5176\u4ed6\u7c7b\u4f3c\u60c5\u51b5\u4ee5\u53ca\u76f8\u5173\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u5f0f\u3002\u5728\u6bcf\u4e00\u4e2a\u9636\u6bb5\uff0c\u6559\u5e08\u53ef\u4ee5\u51c6\u786e\u7684\u4e86\u89e3\u5230\u5b66\u751f\u7684\u56f0\u96be\uff0c\u5e76\u6839\u636e\u5b66\u751f\u9700\u8981\u8fdb\u884c\u6307\u5bfc\u3002"},
"education.h2b":{en:"Educational Pricing and Discounts",zh:"\u6559\u80b2\u673a\u6784\u4ef7\u683c\u548c\u6298\u6263"},"education.pb1":{en:"We are pleased to offer LucidChart free of charge to K-12 educators and students. LucidChart also offers group rates and discounts to higher education institutions. Please provide the details of your situation below.",zh:"\u6211\u4eec\u5f88\u9ad8\u5174\u4e3aK- 12\u6559\u80b2\u5de5\u4f5c\u8005\u548c\u5b66\u751f\u63d0\u4f9b\u514d\u8d39LucidChart\u3002 LucidChart\u8fd8\u5411\u9ad8\u7b49\u6559\u80b2\u673a\u6784\u63d0\u4f9b\u56e2\u4f53\u6298\u6263\u3002\u8bf7\u5728\u4e0b\u65b9\u4e3a\u6211\u4eec\u63d0\u4f9b\u60a8\u7684\u8be6\u7ec6\u4fe1\u606f\u3002"},
"education.label.email":{en:"Your Email Address",zh:"\u60a8\u7684\u7535\u5b50\u90ae\u7bb1\u5730\u5740"},"education.label.name":{en:"Your Name",zh:"\u60a8\u7684\u540d\u5b57"},"education.label.institution":{en:"Name of Institution",zh:"\u5355\u4f4d\u540d\u79f0"},"education.label.numusers":{en:"Number of Users",zh:"\u7528\u6237\u6570"},"education.label.content":{en:"How you plan to use LucidChart",zh:"\u60a8\u6253\u7b97\u5982\u4f55\u4f7f\u7528LucidChart"},"education.button.submit":{en:"Send Request",
zh:"\u53d1\u9001\u8bf7\u6c42"},"bugs.report.h":{en:"Report A Problem",zh:"\u62a5\u544a\u95ee\u9898"},"bugs.report.p1":{en:"Found a bug or having problems with LucidChart? If you provide an email address, you will be contacted when your issue is resolved.",zh:"\u4f7f\u7528LucidChart\u7684\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u9519\u8bef\u6216\u6709\u4efb\u4f55\u95ee\u9898\uff1f\u5982\u679c\u60a8\u5411\u6211\u4eec\u63d0\u4f9b\u60a8\u7684\u7535\u5b50\u90ae\u7bb1\u5730\u5740\uff0c \u5728\u95ee\u9898\u89e3\u51b3\u65f6\u6211\u4eec\u4f1a\u53ca\u65f6\u4e0e\u60a8\u8054\u7cfb"},
"bugs.report.p2":{en:"Be sure to include the following in your report:",zh:"\u8bf7\u786e\u5b9a\u5728\u60a8\u62a5\u544a\u4e2d\u5305\u542b\u4ee5\u4e0b\uff1a"},"bugs.report.li1":{en:"What browser you are using (e.g. Internet Explorer, FireFox)",zh:"\u60a8\u4f7f\u7528\u7684\u662f\u4ec0\u4e48\u6d4f\u89c8\u5668\uff08\u5982. Internet Explorer, FireFox)"},"bugs.report.li2":{en:"What operating system you are using (e.g. Windows XP, Mac OS X)",zh:"\u60a8\u4f7f\u7528\u7684\u662f\u4ec0\u4e48\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982.Windows XP, Mac OS X)"},
"bugs.report.li3":{en:"Steps to follow to recreate the problem",zh:"\u91cd\u73b0\u95ee\u9898\u7684\u6b65\u9aa4"},"bugs.report.li4":{en:"If applicable, a link to the document with the problem",zh:"\u5982\u679c\u53ef\u884c\uff0c\u4e00\u4e2a\u5230\u95ee\u9898\u6587\u4ef6\u7684\u94fe\u63a5"},"bugs.report.label.title":{en:"Title Your Report",zh:"\u6807\ufffd\ufffd\ufffd\u60a8\u7684\u62a5\u544a"},"bugs.report.label.content":{en:"Explain Your Problem",zh:"\u89e3\u91ca\u60a8\u7684\u95ee\u9898"},"bugs.report.button.submit":{en:"Report Problem",
zh:"\u62a5\u544a\u95ee\u9898"},"fonts.link.my":{en:"My Fonts",zh:"\u6211\u7684\u5b57\u4f53"},"subnav.search.community":{en:"Search Community",zh:"\u793e\u533a\u641c\u7d22"},"subnav.h.community":{en:"Community",zh:"\u793e\u533a"},"subnav.examples.all":{en:"All Examples",zh:"\u5168\u90e8\u8303\u4f8b"},"subnav.examples.featured":{en:"Featured Examples",zh:"\u7cbe\u9009\u8303\u4f8b"},"subnav.h.categories":{en:"Categories",zh:"\u5206\u7c7b"},"subnav.categories.all":{en:"All Categories",zh:"\u5168\u90e8\u5206\u7c7b"},
"subnav.h.subcategories":{en:"Subcategories",zh:"\u5b50\u8303\u7574"},"subnav.subcategories.all":{en:"All Subcategories",zh:"\u5168\u90e8\u5b50\u8303\u7574"},"tooltip.share.facebook":{en:"Share on Facebook",zh:"\u5728Facebook\u4e0a\u5206\u4eab"},"tooltip.share.twitter":{en:"Share on Twitter",zh:"\u5728Twitter \u4e0a\u5206\u4eab"},"tooltip.share.buzz":{en:"Share on Google Buzz",zh:"\u5728Google Buzz \u4e0a\u5206\u4eab"},Facebook:{zh:"Facebook"},Twitter:{zh:"Twitter"},"Google Buzz":{zh:"Google Buzz"},
"subnav.h.share":{en:"Share",zh:"\u5206\u4eab"},"subnav.button.template.use":{en:"Use as Template",zh:"\u5f53\u4f5c\u6a21\u7248\u4f7f\u7528"},"subnav.button.example.open":{en:"Open this Example",zh:"\u6253\u5f00\u8fd9\u4e2a\u4f8b\u5b50"},"tierselect.h":{en:"Team Account",zh:"\u56e2\u961f\u8d26\u6237"},"tierselect.h2":{en:"Select your team size",zh:"\u9009\u62e9\u60a8\u7684\u56e2\u961f\u5927\u5c0f"},"tierselect.users":{en:"users",zh:"\u7528\u6237"},"tierselect.storage":{en:"GB Storage",zh:"GB\u50a8\u5b58\u7a7a\u95f4"},
"tierselect.month":{en:"month",zh:"\u6708"},"tierselect.year":{en:"year",zh:"\u5e74"},"tierselect.annualsave":{en:"Save up to 17% with annual plans!",zh:"\u4f7f\u7528\u5e74\u5957\u9910\uff0c\u8282\u7701\u9ad8\u8fbe17%."},"tierselect.alert":{en:"Please select your team size.",zh:"\u8bf7\u9009\u62e9\u60a8\u7684\u56e2\u961f\u5927\u5c0f"},"notice.pending":{en:"Your %s subscription payment will soon be complete.",zh:"\u60a8\u7684%s\u4ed8\u6b3e\u6b63\u5728\u88ab\u5904\u7406\u4e4b\u4e2d\uff0c\u5e94\u5c3d\u5feb\u5b8c\u6210."},
"notice.trial.expires":{en:'Your free trial of %s expires in %d days. <a href="/users/pay">Click here</a> to pay online.',zh:'\u60a8\u7684%s\u514d\u8d39\u8bd5\u7528\u671f\u5c06\u5728%d\u5929\u5185\u5931\u6548\u3002<a href="/users/pay">\u70b9\u51fb\u8fd9\u91cc</a>\u5728\u7ebf\u652f\u4ed8'},"notice.fees.unpaid":{en:'You have unpaid subscription fees. <a href="/users/pay">Click here</a> to pay online.',zh:'\u60a8\u6709\u672a\u4ed8\u7684\u8ba2\ufffd\ufffd\ufffd\u8d39\u3002<a href="/users/pay">\u70b9\u51fb\u8fd9\u91cc</a>\u5728\u7ebf\u652f\u4ed8'},
"notice.free.limited":{en:"Your free account limits the complexity of documents you create.",zh:"\u60a8\u7684\u514d\u8d39\u8d26\u6237\u9650\u5236\u60a8\u521b\u5efa\u6587\u4ef6\u7684\u590d\u6742\u6027\u3002"},"notice.trial.try":{en:"Try a paid account for free!",zh:"\u514d\u8d39\u4f7f\u7528\u4ed8\u8d39\u8d26\u6237"},"notice.upgrade":{en:"Upgrade to a paid account!",zh:"\u5347\u7ea7\u81f3\u4ed8\u8d39\u8d26\u6237"},"notice.card.expire":{en:'Your credit card may expire before your next renewal. <a href="/users/pay">Update your card\'s expiration date</a>',
zh:'\u60a8\u7684\u4fe1\u7528\u5361\u5c06\u5728\u60a8\u7684\u4e0b\u4e00\u6b21\u7eed\u8ba2\u4e4b\u524d\u8fc7\u671f\u3002<a href="/users/payChange">\u8bf7\u66f4\u65b0\u60a8\u4fe1\u7528\u5361\u7684\u5931\u6548\u65e5\u671f</a>'},"forums.search":{en:"Search Forums",zh:"\u641c\u7d22\u8bba\u575b"},"subnav.h.forums":{en:"Forums",zh:"\u8bba\u575b"},"Community Library":{zh:"\u793e\u533a\u56fe\u4e66\u9986"},"subnav.forums.myposts":{en:"All My Posts",zh:"\u6211\u7684\u6240\u6709\u53d1\u5e03"},"subnav.forums.contact":{en:"Contact Us",
zh:"\u8054\u7cfb\u6211\u4eec"},"alert.tos.agree":{en:'You must agree to the <a href="/pages/tos" target="_blank">Terms of Service</a> before registering your account with LucidChart.',zh:'\u5728\u6ce8\u518cLucidChart\u8d26\u6237\u524d\uff0c\u5fc5\u987b\u540c\u610f<a href="/pages/tos" target="_blank">Terms of Service (\u670d\u52a1\u6761\u6b3e)</a> '},"invitation.accept.h":{en:"Accept Invitation for &ldquo;%s&rdquo;",zh:"\u63a5\u53d7&ldquo;%s&rdquo;\u7684\u9080\u8bf7"},"invitation.accept.h2.existing":{en:"Use an existing account",
zh:"\u4f7f\u7528\u73b0\u6709\u8d26\u6237"},"invitation.accept.button.existing":{en:"Use Existing Account",zh:"\u4f7f\u7528\u73b0\u6709\u8d26\u6237"},"invitation.accept.h2.new":{en:"Create a new LucidChart account",zh:"\u521b\u5efa\u65b0\u7684LucidChart\u8d26\u6237"},"invitation.accept.button.new":{en:"Sign Up",zh:"\u6ce8\u518c"},"label.tos.agree":{en:'I agree to the <a href="/pages/tos" target="_blank">Terms of Service</a>.',zh:'\u6211\u540c\u610f<a href="/pages/tos" target="_blank">\u670d\u52a1\u6761\u6b3e</a>.'},
"label.firstname":{en:"First Name",zh:"\u540d"},"label.lastname":{en:"Last Name",zh:"\u59d3"},"label.email":{en:"Email",zh:"\u7535\u5b50\u90ae\u4ef6"},"label.password.repeat":{en:"Repeat Password",zh:"\u91cd\u590d\u5bc6\u7801"},"orginvitation.accept.h":{en:"Accept Invitation To Join %s",zh:"\u63a5\u53d7\u9080\u8bf7\u5e76\u52a0\u5165 %s"},"orginvitation.accept.h2.existing":{en:"Use an existing LucidChart account",zh:"\u4f7f\u7528\u73b0\u6709\u7684LucidChart\u8d26\u6237"},"orginvitation.accept.existing.p":{en:"If you accept this invitation with your existing LucidChart account, your account will be linked to the organization %s. Any existing paid subscription you have will be canceled, but you will share all the benefits of %s's subscription.",
zh:"\u5982\u679c\u60a8\u4f7f\u7528\u60a8\u73b0\u6709LucidChart\u5e10\u6237\u6765\u63a5\u53d7\u6b64\u9080\u8bf7\uff0c\u60a8\u7684\u5e10\u6237\u5c06\u88ab\u94fe\u63a5\u5230\uff05s\u7684\u7ec4\u7ec7\uff0c\u60a8\u7684\u4efb\u4f55\u73b0\u6709\u7684\u4ed8\u8d39\u8ba2\u9605\u90fd\u5c06\u88ab\u53d6\u6d88\uff0c\u4f46\u60a8\u5c06\u5171\u4eab\uff05s\u7684\u8ba2\u9605\u7684\u6240\u6709\u597d\u5904.."},"orginvitation.accept.h2.new":{en:"Create a new LucidChart account",zh:"\u521b\u5efa\u65b0\u7684LucidChart\u8d26\u6237"},
"orginvitation.accept.new.p":{en:"You may also accept this invitation by creating a new LucidChart account. This account will be linked to the organization %s, and will share all the benefits of %s's subscription.",zh:"\u60a8\u4e5f\u53ef\u4ee5\u63a5\u53d7\u9080\u8bf7\u5e76\u5efa\u7acb\u4e00\u4e2a\u65b0\u7684LucidChart\u8d26\u6237\u3002\u6b64\u5e10\u6237\u5c06\u94fe\u63a5\u81f3\u8be5\u7ec4\u7ec7\u7684\uff05s\u5e76\u5c06\u5171\u4eab\u6240\u6709\uff05s\u7684\u8ba2\u9605\u7684\u597d\u5904\u3002"},"orginvitation.invite.h":{en:"Invite Users to Join Your Team",
zh:"\u9080\u8bf7\u4e00\u4e2a\u7528\u6237\u52a0\u5165\u60a8\u7684\u56e2\u961f"},"orginvitation.invite.p1":{en:"To add users to your team, who will then share all the benefits of your own subscription, you may either set up their accounts yourself, or you may invite them via email on this page.",zh:"\u60a8\u5df2\u5efa\u7acb\u4e00\u4e2a\u56e2\u961f\u6765\u5206\u4eab\u60a8\u7684LucidChart\u5e10\u6237\u3002\u52a0\u5165\u5230\u60a8\u56e2\u961f\u7684\u7528\u6237\u53ef\u5171\u4eab\u6240\u6709\u60a8\u5e10\u6237\u62e5\u6709\u7684\u597d\u5904\u3002\u6dfb\u52a0\u7528\u6237\uff0c\u60a8\u53ef\u4ee5\u81ea\u5df1\u8bbe\u7f6e\uff0c\u4e5f\u53ef\u4ee5\u4ece\u8be5\u9875\u9762\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u6765\u9080\u8bf7\u3002"},
"orginvitation.invite.p2":{en:"This form will send an email with an invitation link to join your team. The recipients can either sign up for a new LucidChart account or decide to join your team with their existing LucidChart account.",zh:"\u6b64\u8868\u5355\u5c06\u53d1\u9001\u5e26\u6709\u9080\u8bf7\u94fe\u63a5\u7684\u7535\u5b50\u90ae\u4ef6\u6765\u9080\u8bf7\u52a0\u5165\u60a8\u7684\u56e2\u961f\u3002\u6536\u4ef6\u4eba\u53ef\u4ee5\u6ce8\u518c\u4e00\u4e2a\u65b0LucidChart\u5e10\u6237\u6216\u51b3\u5b9a\u52a0\u5165\u5176\u73b0\u6709LucidChart\u5e10\u6237\u60a8\u7684\u56e2\u961f\u3002"},
"label.emailaddress":{en:"Email Address",zh:"\u7535\u5b50\u90ae\u4ef6\u5730\u5740"},"button.invitation.send":{en:"Send Invitation",zh:"\u53d1\u9001\u9080\u8bf7"},"orginvitation.inviteinitial.h":{en:"Invite Your Organization To LucidChart",zh:"\u9080\u8bf7\u60a8\u7684\u7ec4\u7ec7\u6765LucidChart"},"orginvitation.inviteinitial.p":{en:"Your %s account can be shared with up to %d members of your organization. Enter the name of your organization and the email addresses of those who you would like to share this account, separated by commas.",
zh:"\u60a8\u7684\uff05s\u5e10\u6237\u53ef\u4ee5\u6709\u81f3\u591a\uff05d\u4e2a\u7ec4\u7ec7\u6210\u5458\u4e3a\u7528\u6237\u3002\u8bf7\u8f93\u5165\u60a8\u7684\u7ec4\u7ec7\u540d\u79f0\u548c\u60a8\u60f3\u9080\u8bf7\u52a0\u5165\u5e10\u6237\u4eba\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\uff08\u8bf7\u7528\u9017\u53f7\u5206\u9694\u540d\u79f0\uff09\u3002"},"label.org.name":{en:"Organization Name",zh:"\u7ec4\u7ec7\u540d"},"label.invitations.send.to":{en:"Send Invitations To:",zh:"\u53d1\u9001\u9080\u8bf7\u81f3"},
"orginvitation.inviteinitial.later":{en:"I will do this later",zh:"\u6211\u5c06\u7a0d\u540e\u518d\u505a"},"button.user.add":{en:"Add User",zh:"\u6dfb\u52a0\u7528\u6237"},"org.create.h":{en:"Team Setup",zh:"\u56e2\u961f\u7ec4\u5efa"},"org.create.p":{en:"You can create a team to share your account with additional users. These other users will share your paid subscription and all of its benefits. You will also be able to share your custom templates and custom images with them, allowing you to standardize document appearance across your organization.",
zh:"\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u56e2\u961f\uff0c\u4e0e\u5176\u4ed6\u7528\u6237\u5206\u4eab\u60a8\u7684\u5e10\u6237\u3002\u8fd9\u4e9b\u7528\u6237\u5206\u4eab\u60a8\u6240\u652f\u4ed8\u7684\u8ba2\u9605\u548c\u5176\u4ed6\u6240\u6709\u597d\u5904\u3002\u60a8\u4e5f\u53ef\u4ee5\u5206\u4eab\u60a8\u7684\u81ea\u5b9a\u4e49\u6a21\u677f\uff0c\u5e76\u7ed9\u4ed6\u4eec\u81ea\u5b9a\u4e49\u56fe\u50cf\u3002\u8ba9\u60a8\u7684\u7ec4\u7ec7\u62e5\u6709\u7edf\u4e00\u89c4\u8303\u7684\u6587\u6863\u5916\u89c2\u3002"},
"label.team.name":{en:"Team Name",zh:"\u56e2\u961f\u540d"},"button.team.create":{en:"Create Team",zh:"\u521b\u5efa\u56e2\u961f"},"button.upgrade.now":{en:"Upgrade Now",zh:"\u73b0\u5728\u5347\u7ea7"},"org.create.p2":{en:'<span class="highlight">%s does not allow you to share your account with other users in your team</span>. You can upgrade to a Team subscription to remove this restriction.',zh:'<span class="highlight">\u60a8\u7684%s\u5e10\u6237\u4e0d\u5141\u8bb8\u6dfb\u52a0\u5176\u4ed6\u7528\u6237</span>. \u60a8\u53ef\u4ee5\u5347\u7ea7\u5230\u56e2\u961f\u8ba2\u9605\u7ea7\u522b\u6765\u79fb\u9664\u6b64\u9650\u5236\u3002'},
"org.deleteuser.h":{en:"Delete User %s",zh:"\u5220\u9664\u7528\u6237 %s"},"org.deleteuser.p1":{en:'This action is <span class="highlight">not reversible</span>. Please be absolutely sure you wish\nto delete this user.',zh:'\u8fd9\u4e00\u884c\u52a8\u662f<span class="highlight">\u4e0d\u53ef\u9006\u7684</span>\u3002\u8bf7\u786e\u5b9a\u60a8\u786e\u5b9e\u5e0c\u671b\n\u5220\u9664\u8be5\u7528\u6237\u3002'},"org.deleteuser.p2a":{en:"This user has created %d documents. These documents are listed below. You need to decide which documents to permanently delete along with this user, and which you would like to take ownership of.",
zh:"\u6b64\u7528\u6237\u5df2\u521b\u5efa\uff05d\u4e2a\u6587\u4ef6\u3002\u4e0b\u9762\u5217\u51fa\u4e86\u8fd9\u4e9b\u6587\u4ef6\u3002\u60a8\u9700\u8981\u51b3\u5b9a\u54ea\u4e9b\u6587\u4ef6\u5c06\u88ab\u6c38\u4e45\u5220\u9664\uff0c\u4ee5\u53ca\u54ea\u4e9b\u6587\u4ef6\u60a8\u60f3\u8981\u83b7\u5f97\u5176\u6240\u6709\u6743\u3002"},"button.document.delete":{en:"Delete Document",zh:"\u5220\u9664\u6587\u4ef6"},"button.ownership.take":{en:"Take Ownership",zh:"\u83b7\u53d6\u6240\u6709\u6743"},"org.deleteuser.p2b":{en:"This user has not created any documents. If they had, you would be given the option of deleting those documents or transferring ownership of them.",
zh:"\u8be5\u7528\u6237\u8fd8\u6ca1\u6709\u521b\u5efa\u4efb\u4f55\u6587\u4ef6\u3002\u5982\u679c\u6709\uff0c\u60a8\u4f1a\u8003\u8651\u5220\u9664\u8fd9\u4e9b\u6587\u4ef6\u6216\u662f\u8f6c\u79fb\u6587\u4ef6\u7684\u6240\u6709\u6743\u3002"},"button.user.delete":{en:"Delete User",zh:"\u5220\u9664\u7528\u6237"},Title:{zh:"\u6807\u9898"},Action:{zh:"\u4f5c\u7528"},"Last Saved":{zh:"\u4e0a\u4e00\u4e2a\u4fdd\u5b58"},"org.deleteuser.docusers":{en:"Users",zh:"\u7528\u6237"},"org.gapps.h":{en:"LucidChart for your Google Apps domain",
zh:"\u4e3a\u60a8\u7684Google Apps \u516c\u53f8\u57df\u540d\u5b89\u88c5LucidChart"},"org.gapps.p1a":{en:"Your LucidChart account is linked to the Google Apps domain %s.",zh:"\u60a8\u7684LucidChart\u8d26\u6237\u5df2\u94fe\u63a5\u81f3Google Apps \u57df\u540d%s\u3002"},"org.gapps.p2a":{en:"Any member of your Google Apps account who logs in to LucidChart from Google Apps will join your LucidChart organization with their existing LucidChart account (if they have one), or with a new one provisioned for them.",
zh:"\u60a8Google Apps \u8d26\u6237\u7684\u6210\u5458\u901a\u8fc7Google Apps \u8fdb\u5165LucidChart\u65f6\uff0c\u5982\u679c\u5df2\u7ecf\u6709LucidChart\u5e10\u6237\u5219\u901a\u8fc7\u5df2\u6709\u7684LucidChart\u8d26\u6237\u52a0\u5165\u60a8\u7684LucidChart\u56e2\u961f\u3002\u5982\u679c\u4ed6\u4eec\u4e4b\u524d\u6ca1\u6709LucidChart\u5e10\u6237\uff0c\u5c06\u83b7\u5f97\u4e00\u4e2a\u65b0\u7684\u8d26\u6237\u3002"},"org.gapps.p1b":{en:"Install LucidChart into Google Apps, and everyone on your Google Apps domain will see a LucidChart link at the top of their Google Apps pages.",
zh:"Google Apps\u4e0a\u5b89\u88c5 LucidChart\u4ee5\u540e, Google Apps\u57df\u540d\u7684\u4e0a\u65b9\u5c06\u4f1a\u663e\u793aLucidChart\u94fe\u63a5\u3002"},"org.gapps.p2b":{en:"Anyone who clicks through will join your LucidChart organization with their existing LucidChart account (if they have one), or with a new one provisioned for them.",zh:"\u4efb\u4f55\u4eba\u53ef\u901a\u8fc7\u4f7f\u7528\u73b0\u5b58\u7684LucidChart \u8d26\u6237\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\u70b9\u51fb\u52a0\u5165LucidChart \u56e2\u961f\u3002 \u6216\u8005\u5c06\u4f1a\u83b7\u5f97\u4e00\u4e2a\u65b0\u7684\u8d26\u6237\u3002"},
"org.gapps.p3b":{en:'<strong>IMPORTANT:</strong> If your Google Apps email address is not %s, then you need to <a href="/users/settings">update your email address in LucidChart</a> to match your Google Apps email address.  Otherwise a new account will be created with your Google Apps email address.',zh:'<strong>\u91cd\u8981\uff1a</strong>\u5982\u679c\u60a8\u7684Google Apps\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u4e0d\u662f%s\uff0c\u90a3\u4e48\u60a8\u9700\u8981\u5728LucidChart <a href="/users/settings">\u66f4\u65b0\u60a8\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740</a>\u4f7f\u5b83\u548c\u60a8Google Apps \u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u76f8\u7b26\u3002 \u5426\u5219\u4e00\u4e2a\u65b0\u7684LucidChart\u8d26\u6237\u5c06\u901a\u8fc7\u4f7f\u7528\u60a8google apps \u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u800c\u88ab\u521b\u9020\u3002'},
"org.gapps.p4b":{en:"<strong>EVEN MORE IMPORTANT:</strong> Be the first user to click through from Google Apps; that will make your account the LucidChart administrator on that domain.",zh:"<strong>\u751a\u81f3\u66f4\u91cd\u8981\uff1a</strong> \u8bf7\u52a1\u5fc5\u60a8\u662f\u7b2c\u4e00\u540d\u961f\u5458\u901a\u8fc7Google Apps\u70b9\u51fb\u800c\u8fdb\u5165LucidChart\uff1b\u8fd9\u6837\u5c31\u80fd\u4fdd\u8bc1\u60a8\u7684\u8d26\u6237\u5728\u8be5\u57df\u6210\u4e3aLucidChart\u7ba1\u7406\u5458\u3002"},"button.changes.save":{en:"Save Changes",
zh:"\u4fdd\u5b58\u53d8\u66f4"},"org.settings.h":{en:"My Team: %s",zh:"\u6211\u7684\u56e2\u961f\uff1a%s"},"org.uploadusers.h":{en:"Upload Users",zh:"\u4e0a\u4f20\u7528\u6237"},"org.uploadusers.p1":{en:"You may add multiple users to your team by uploading a CSV file containing the information for each account.  Most spreadsheet software, such as Microsoft Excel, OpenOffice.org, and iWork, can save spreadsheets in CSV format.",zh:"\u60a8\u53ef\u4ee5\u901a\u8fc7\u4e0a\u4f20\u4e00\u4e2acsv\u6587\u6863\uff0c\u5305\u542b\u6bcf\u4e2a\u8d26\u6237\u4fe1\u606f\uff0c\u6765\u6dfb\u52a0\u591a\u4e2a\u7528\u6237\u81f3\u60a8\u7684\u56e2\u961f. \u5927\u90e8\u5206\u7684\u7535\u5b50\u8868\u683c\u8f6f\u4ef6\uff0c \u4f8b\u5982 Microsoft Excel, OpenOffice.org, \u4ee5\u53caiWork, \u53ef\u4ee5\u7528CSV\u683c\u5f0f\u4fdd\u5b58\u7535\u5b50\u8868\u3002"},
"org.uploadusers.p2":{en:'Your current %s subscription allows you a total of %d users; you may upload %d more users now. <a href="http://www.lucidchart.com/users/level">Upgrade now</a> if you need a larger subscription.',zh:"\u60a8\u73b0\u6709\u7684%s\u8ba2\u9605\u5141\u8bb8\u60a8\u62e5\u6709\u603b\u5171%d\u7684\u7528\u6237\uff1b\u60a8\u53ef\u4ee5\u73b0\u5728\u4e0a\u4f20%d\u66f4\u591a\u7684\u7528\u6237\u3002"},"org.uploadusers.p3":{en:"Your spreadsheet should look like this:",zh:"\u60a8\u7684\u7535\u5b50\u8868\u683c\u5e94\u8be5\u770b\u8d77\u6765\u662f\u8fd9\u6837\u7684\uff1a"},
"label.line":{en:"Line",zh:"\u7ebf\u6bb5"},"org.uploadusers.p4":{en:"Your upload had the following errors:",zh:"\u60a8\u7684\u4e0a\u4f20\u6709\u4ee5\u4e0b\u9519\u8bef\uff1a"},"org.uploadusers.p5":{en:"Please correct these errors and try again.",zh:"\u8bf7\u5728\u66f4\u6b63\u8fd9\u4e9b\u9519\u8bef\u540e\u518d\u8bd5\u4e00\u6b21"},"button.users.upload":{en:"Upload Users",zh:"\u4e0a\u4f20\u7528\u6237"},"org.users.h":{en:"My Team: %s",zh:"\u6211\u7684\u56e2\u961f\uff1a%s"},"org.users.p1":{en:"These users share your paid subscription and all of its benefits.  Depending on your subscription level, you will also be able to share your custom templates and custom images with them, allowing you to standardize document appearance across your organization.",
zh:"\u8fd9\u4e9b\u7528\u6237\u5206\u4eab\u60a8\u6240\u652f\u4ed8\u7684\u8ba2\u9605\u548c\u5176\u4ed6\u6240\u6709\u597d\u5904\u3002\u6839\u636e\u60a8\u7684\u8ba2\u9605\u7ea7\u522b\u7684\u4e0d\u540c\uff0c\u60a8\u4e5f\u53ef\u4ee5\u5206\u4eab\u60a8\u7684\u81ea\u5b9a\u4e49\u6a21\u677f\uff0c\u5e76\u7ed9\u4ed6\u4eec\u81ea\u5b9a\u4e49\u56fe\u50cf\u3002\u8ba9\u60a8\u7684\u7ec4\u7ec7\u62e5\u6709\u7edf\u4e00\u89c4\u8303\u7684\u6587\u6863\u5916\u89c2\u3002"},"label.user":{en:"User",zh:"\u7528\u6237"},"label.role":{en:"Role",
zh:"\u89d2\u8272"},"label.actions":{en:"Actions",zh:"\u64cd\u4f5c"},"org.users.p2d":{en:"Your current %s subscription allows you to have up to %s users in your organization.",zh:"\u60a8\u73b0\u6709\u7684 %s \u8ba2\u9605\u7ea7\u522b\u53ea\u5141\u8bb8\u60a8\u7684\u56e2\u961f\u62e5\u6709\u81f3\u591a %s \u7528\u6237"},"org.users.p3d":{en:"Your students can sign up any time through the following URL:",zh:"\u60a8\u7684\u5b66\u751f\u5c06\u53ef\u4ee5\u5728\u4efb\u610f\u65f6\u95f4\u6ce8\u518c\u901a\u8fc7\u4ee5\u4e0b URL\u94fe\u63a5\uff1a"},
"button.user.invite":{en:"Invite A User",zh:"\u9080\u8bf7\u4e00\u4e2a\u7528\u6237"},"button.user.add.new":{en:"Add New User",zh:"\u6dfb\u52a0\u65b0\u7528\u6237"},"button.users.upload.csv":{en:"Upload Users (CSV)",zh:"\u4e0a\u4f20\u7528\u6237 \uff08CSV)"},"org.users.p2c":{en:"Your current %s subscription only allows you to have up to %d users in your organization.",zh:"\u60a8\u73b0\u6709\u7684 %s \u8ba2\u9605\u7b49\u7ea7\u53ea\u5141\u8bb8\u60a8\u7684\u56e2\u961f\u62e5\u6709\u81f3\u591a %d \u7528\u6237"},
"org.users.p3c":{en:'None of the other users listed here will be able to sign in until you delete %d users from your account or <a href="/users/level">upgrade</a> to a higher subscription level.',zh:'\u4ee5\u4e0b\u6240\u5217\u7684\u7528\u6237\u76ee\u524d\u4e0d\u5141\u8bb8\u767b\u5f55\u3002\u8bf7\u4ece\u60a8\u7684\u8d26\u6237\u4e2d\u5220\u9664%d\u7528\u6237\u6216 <a href="/users/level">\u5347\u7ea7</a>\u81f3\u66f4\u9ad8\u7684\u8ba2\u9605\u7b49\u7ea7\u3002 '},"org.users.p2b":{en:"%s does not allow you to have multiple users on your account.",
zh:"\u60a8\u7684%s\u8d26\u6237\u4e0d\u5141\u8bb8\u62e5\u6709\u591a\u4e2a\u4f7f\u7528\u8005 "},"org.users.p3b":{en:'None of the other users listed here will be able to sign in until you <a href="/users/level">upgrade</a> to a Team subscription.',zh:'\u60a8\u5fc5\u987b\u5148<a href="/users/level">\u5347\u7ea7</a>\u81f3\u56e2\u961f\u8ba2\u9605\uff0c\u4ee5\u4e0b\u6240\u5217\u7684\u7528\u6237\u624d\u80fd\u767b\u5f55'},"org.users.p3a":{en:'None of the other users listed here will be able to sign in until you <a href="/users/pay">pay for</a> your %s subscription.',
zh:'\u60a8\u5fc5\u987b\u5148<a href="/users/pay">\u652f\u4ed8</a>\u60a8\u7684%s\u8ba2\u9605\u8d39\uff0c\u4ee5\u4e0b\u6240\u5217\u7684\u7528\u6237\u624d\u80fd\u767b\u3002'},"referrals.email.invalid.pre":{en:"The following email addresses you entered do not appear to be valid:",zh:"\u4ee5\u4e0b\u60a8\u6240\u8f93\u5165\u7684\u7535\u5b50\u90ae\u7bb1\u5730\u5740\u4e0d\u53ef\u7528\uff1a"},"referrals.email.invalid.post":{en:'Click "Cancel" to correct these changes.',zh:"\u70b9\u51fb\u53d6\u6d88\u6765\u7ea0\u6b63\u8fd9\u4e9b\u53d8\u5316"},
"referrals.h":{en:"LucidChart Referrals",zh:"LucidChart \u63a8\u4ecb"},"referrals.p":{en:"For every friend who joins and uses LucidChart, we'll give you both a free month.",zh:"\u5bf9\u4e8e\u6bcf\u4e00\u4e2a\u52a0\u5165\u4f7f\u7528LucidChart\u7684\u670b\u53cb\uff0c\u6211\u4eec\u5c06\u7ed9\u4e88\u60a8\u4eec\u5404\u81ea\u4e00\u4e2a\u6708\u7684\u514d\u8d39\u8bd5\u7528"},"referrals.tab.invite":{en:"Invite Your Friends",zh:"\u9080\u8bf7\u60a8\u7684\u670b\u53cb"},"referrals.tab.status":{en:"Referral Status",
zh:"\u63a8\u4ecb\u72b6\u6001"},"referrals.tab.credits":{en:"Referral Credits",zh:"\u63a8\u4ecb\u70b9\u6570"},"referrals.invite.l.h2":{en:"Invite by Email",zh:"\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u9080\u8bf7"},"referrals.invite.l.p":{en:"Type a list of email addresses:",zh:"\u8f93\u5165\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u5217\u8868\uff1a"},"button.invites.send":{en:"Send Invites",zh:"\u53d1\u9001\u9080\u8bf7"},"referrals.invite.r.h2":{en:"Share This Link",zh:"\u5206\u4eab\u6b64\u94fe\u63a5"},"referrals.invite.r.twitter":{en:"Sign up for @LucidChart, an online and collaborative diagramming application, and get 1 free month of premium features!",
zh:"\u8d76\u5feb\u5728LucidChart\u8fd9\u4e2a\u5728\u7ebf\u534f\u4f5c\u7ed8\u56fe\u5e94\u7528\u8f6f\u4ef6\u4e2d\u6ce8\u518c\uff0c\u5e76\u83b7\u5f971\u4e2a\u6708\u514d\u8d39\u7684\u9ad8\u7ea7\u529f\u80fd\u8bd5\u7528\uff01"},"twitter.chars.remaining":{en:"characters remaining",zh:"\u5269\u4f59\u5b57\u7b26 "},"referrals.invite.altlink":{en:"or use this link with friends:",zh:"\u6216\u4e0e\u670b\u53cb\u4f7f\u7528\u6b64\u94fe\u63a5\uff1a"},"referrals.status.h3":{en:"Referrals",zh:"\u63a8\u4ecb"},"referrals.status.step1.h":{en:"Step 1",
zh:"\u7b2c\u4e00\u6b65"},"referrals.status.step1":{en:"Invited",zh:"\u5df2\u9080\u8bf7"},"referrals.status.step1.desc":{en:"Invitation sent",zh:"\u9080\u8bf7\u5df2\u53d1\u9001"},"referrals.status.step2.h":{en:"Step 2",zh:"\u7b2c\u4e8c\u6b65"},"referrals.status.step2":{en:"Registered",zh:"\u5df2\u6ce8\u518c"},"referrals.status.step2.desc":{en:"Your friend joined LucidChart",zh:"\u60a8\u7684\u670b\u53cb\u52a0\u5165\u4e86LucidChart"},"referrals.status.step3.h":{en:"Step 3",zh:"\u7b2c\u4e09\u6b65"},"referrals.status.step3":{en:"Confirmed",
zh:"\u5df2\u786e\u8ba4"},"referrals.status.step3.desc":{en:"They confirmed their account",zh:"\u4ed6\u4eec\u5df2\u786e\u8ba4\u4ed6\u4eec\u7684\u8d26\u6237"},"label.updated":{en:"Updated",zh:"\u5df2\u66f4\u65b0"},"label.status":{en:"Status",zh:"\u72b6\u6001"},"referrals.status.step1.5":{en:"Viewed",zh:"\u5df2\u9605"},"referrals.status.step3.note":{en:"Referrals will receive an email with a confirmation link 3-6 days from the time they sign up.",zh:"\u63a8\u4ecb\u8005\u5c06\u4f1a\u5728\u4ed6\u4eec\u6ce8\u518c\u540e\u76843\u81f36\u5929\u91cc\u6536\u5230\u4e00\u5c01\u9644\u6709\u786e\u8ba4\u94fe\u63a5\u7684\u90ae\u4ef6"},
"label.description":{en:"Description",zh:"\u63cf\u8ff0"},"referrals.credit.label.cost":{en:"Cost",zh:"\u8d39\u7528 "},"referrals.credit.button.redeem":{en:"Redeem Credit",zh:"\u5151\u6362\u70b9\u6570"},"referrals.credit.h2":{en:"You have %d referral credit(s) available for use.",zh:"\u60a8\u6709 %d \u63a8\u4ecb\u70b9\u6570\u53ef\u4f7f\u7528"},"referrals.month.free":{en:"1 Free Month",zh:"\u4e00\u4e2a\u6708\u514d\u8d39"},"referrals.month.personal.free":{en:"1 Free Personal Month",zh:"\u514d\u8d39\u7684\u4e00\u4e2a\u6708\u4e2a\u4eba\u8d26\u6237"},
"referrals.month.pro.free":{en:"1 Free Professional Month",zh:"\u514d\u8d39\u7684\u4e00\u4e2a\u6708\u4e13\u4e1a\u8d26\u6237"},"referrals.month.pro.upgrade":{en:"1 Month Professional Upgrade",zh:"\u4e00\u4e2a\u6708\u7684\u4e13\u4e1a\u8d26\u6237\u5347\u7ea7"},"referrals.month.personal.credit.desc":{en:"Get one month credit for a LucidChart Personal account.",zh:"LucidChart \u4e2a\u4eba\u8d26\u6237\u5c06\u83b7\u5f97\u4e00\u4e2a\u6708\u7684\u70b9\u6570"},"referrals.month.pro.credit.desc":{en:"Get one month credit for a LucidChart Professional account.",
zh:"LucidChart \u4e13\u4e1a\u8d26\u6237\u5c06\u83b7\u5f97\u4e00\u4e2a\u6708\u7684\u70b9\u6570 "},"referrals.month.pro.extend.desc":{en:"Get one month credit for your LucidChart Professional account.",zh:"\u60a8\u7684LucidChart \u4e13\u4e1a\u8d26\u6237\u5c06\u83b7\u5f97\u4e00\u4e2a\u6708\u7684\u70b9\u6570"},"referrals.month.pro.upgrade.desc":{en:"Get one month free upgrade to LucidChart Professional.",zh:"\u83b7\u5f97\u4e00\u4e2a\u6708\u7684\u514d\u8d39\u5347\u7ea7\u81f3LucidChart\u4e13\u4e1a\u8d26\u6237"},
"referrals.month.team.credit.desc":{en:"Get one month credit for your LucidChart Team account.",zh:"\u60a8\u7684LucidChart\u56e2\u961f\u8d26\u6237\u5f97\u5230\u4e00\u4e2a\u6708\u70b9\u6570"},"forum.button.backtothread":{en:"Back to thread",zh:"\u56de\u5230\u4e3b\u9898"},"forum.post.edit.h2":{en:"Edit Post In: %s",zh:"\u7f16\u8f91\u6587\u672c\uff1a%s"},"label.post.delete":{en:"Delete this post",zh:"\u5220\u9664\u8fd9\u7bc7\u6587\u7ae0"},"forum.post.label.subject":{en:"Subject",zh:"\u4e3b\u9898"},"forum.post.label.body":{en:"Your Message",
zh:"\u60a8\u7684\u4e3b\u9898"},"forum.post.search.empty.p":{en:"No forum posts matched your search.",zh:"\u5728\u8bba\u575b\u4e0a\u6ca1\u6709\u627e\u5230\u60a8\u6240\u641c\u7d22\u7684\u4fe1\u606f"},"forum.post.user.none.p":{en:"This user has not made any posts on these forums.",zh:"\u6b64\u7528\u6237\u6ca1\u6709\u5728\u8bba\u575b\u4e0a\u53d1\u5e03\u4efb\u4f55\u5185\u5bb9"},"forum.post.user.h":{en:"All Posts By: %s",zh:"\u53d1\u5e03\u8005\uff1a%s"},"forum.thread.create.h2":{en:"Post New Thread",zh:"\u53d1\u5e03\u65b0\u4e3b\u9898"},
"forum.thread.subject.label":{en:"Subject",zh:"\u4e3b\u9898"},"forum.thread.body.label":{en:"Your Message",zh:"\u60a8\u7684\u4e3b\u9898"},"forum.thread.subscribe.label":{en:"Notify me of replies to this thread by email",zh:"\u5f53\u6709\u4eba\u56de\u590d\u6b64\u4e3b\u9898\u65f6\u8bf7\u901a\u8fc7\u90ae\u4ef6\u63d0\u793a\u6211"},"forum.thread.button.post":{en:"Post Thread",zh:"\u65b0\u5efa\u4e3b\u9898"},"forum.thread.button.new":{en:"+ New Topic",zh:"\u65b0\u4e3b\u9898"},"forum.thread.th.topics":{en:"Topics",
zh:"\u4e3b\u9898"},"forum.thread.th.replies":{en:"Replies",zh:"\u56de\u590d"},"forum.thread.th.latest":{en:"Last Post",zh:"\u6700\u8fd1\u53d1\u5e16"},"author.by":{en:"by %s",zh:"%"},"forum.thread.empty.p":{en:"This forum is empty.",zh:"\u6b64\u8bba\u575b\u65e0\u5185\u5bb9"},"forum.reply.button.post":{en:"Post Reply",zh:"\u53d1\u5e16\u56de\u590d"},"forum.view.button.post":{en:"+ Post Reply",zh:"(+) \u53d1\u5e16\u56de\u590d"},"unsubscribe.h":{en:"Unsubscribe From LucidChart Emails",zh:"\u53d6\u6d88\u8ba2\u9605\u6765\u81eaLucidChart\u7684\u90ae\u4ef6"},
"unsubscribe.p1":{en:"This will add a single email address to the do-not-contact list for LucidChart.",zh:"\u8fd9\u5c06\u4f1a\u5728LucidChart\u7684\u505c\u6b62\u8054\u7edc\u540d\u5355\u4e0a\u589e\u52a0\u4e00\u4e2a\u90ae\u4ef6\u5730\u5740"},"unsubscribe.p2":{en:"You will not receive a confirmation email or any future emails to this address.",zh:"\u6b64\u90ae\u4ef6\u5730\u5740\u5c06\u4e0d\u4f1a\u518d\u6536\u5230\u4efb\u4f55\u786e\u8ba4\u90ae\u4ef6\u6216\u5c06\u6765\u7684\u90ae\u4ef6"},"unsubscribe.button.unsubscribe":{en:"Unsubscribe",
zh:"\u53d6\u6d88\u8ba2\u9605"},"users.close.h":{en:"Close Account",zh:"\u5173\u95ed\u8d26\u6237"},"users.close.confirm":{en:"Are you absolutely sure? This action cannot be undone.",zh:"\u60a8\u786e\u8ba4\u8981\u8fd9\u6837\u505a\u5417\uff1f\u6b64\u884c\u4e3a\u5c06\u65e0\u6cd5\u88ab\u53d6\u6d88\u3002"},"users.close.h2.cancel":{en:"Cancel your paid %s subscription",zh:"\u53d6\u6d88\u60a8\u652f\u4ed8\u7684%\u7684\u8ba2\u91d1"},"users.close.p1":{en:"Canceling your paid subscription will set your account as a free account with limited features.",
zh:"\u53d6\u6d88\u60a8\u652f\u4ed8\u7684\u5b9a\u91d1\u5c06\u4f1a\u4f7f\u60a8\u7684\u8d26\u6237\u53d8\u6210\u53ea\u6709\u6709\u9650\u529f\u80fd\u7684\u514d\u8d39\u8d26\u6237\u3002"},"users.close.p2":{en:"You will be credited the unused portion of your previous payment, %s, if you decide to pay again later.",zh:"\u5982\u679c\u60a8\u51b3\u5b9a\u4ee5\u540e\u518d\u6b21\u4ed8\u6b3e\u7684\u8bdd\uff0c\u6211\u4eec\u4f1a\u8fd4\u8fd8\u60a8\u4e4b\u524d\u652f\u4ed8\u7684\u8d39\u7528\u4e2d\u6ca1\u6709\u4f7f\u7528\u7684%\u3002"},
"users.close.button.cancel":{en:"Cancel your paid subscription",zh:"\u53d6\u6d88\u60a8\u652f\u4ed8\u7684\u8ba2\u91d1"},"users.close.h2.close":{en:"Close your LucidChart account entirely",zh:"\u6c38\u4e45\u5173\u95ed\u60a8\u7684LucidChart\u8d26\u6237"},"users.close.p3":{en:"You will no longer be able to sign in to view or edit\nany of your documents.",zh:"\u60a8\u5c06\u4e0d\u53ef\u4ee5\u518d\u6b21\u767b\u5f55\u6216\u7f16\u8f91\u60a8\u4efb\u4f55\u7684\u8d26\u6237\u3002"},"users.close.button.close":{en:"Close your LucidChart account",
zh:"\u5173\u95ed\u60a8\u7684LucidChart\u8d26\u6237"},"users.forgotpass.h":{en:"Reset Forgotten Password",zh:"\u91cd\u8bbe\u5fd8\u8bb0\u7684\u5bc6\u7801"},"users.forgotpass.p":{en:"Please enter the user name or email address for your account.  You will be emailed a\nlink to reset your password.",zh:"\u8bf7\u8f93\u5165\u60a8\u8d26\u6237\u7684\u7528\u6237\u540d\u548c\u90ae\u7bb1\u5730\u5740\u3002\u60a8\u5c06\u4f1a\u6536\u5230\u4e00\u4e2a\u94fe\u63a5\u6765\u91cd\u8bbe\u60a8\u7684\u5bc6\u7801\u3002"},
"label.usernameoremail":{en:"User name or email address",zh:"\u7528\u6237\u540d\u6216\u90ae\u7bb1\u5730\u5740"},"users.forgotpass.button.send":{en:"Send Reset Link",zh:"\u53d1\u9001\u91cd\u8bbe\u94fe\u63a5"},"users.level.h":{en:"Subscription Level",zh:"\u8ba2\u9605\u7b49\u7ea7"},"users.level.p1a":{en:"You are currently using %s.",zh:"\u60a8\u73b0\u5728\u5df2\u7ecf\u4f7f\u7528\u4e86%\u3002"},"users.level.p2a":{en:"You are currently using your free trial period. You may change your free trial to a different subscription level if you like.",
zh:"\u60a8\u73b0\u5728\u6b63\u5728\u4f7f\u7528\u8bd5\u7528\u7248\u3002\u5982\u679c\u60a8\u559c\u6b22\u6211\u4eec\u7684\u8f6f\u4ef6\uff0c\u60a8\u53ef\u4ee5\u5347\u7ea7\u8bd5\u7528\u7248\u5230\u5176\u4ed6\u7684\u8ba2\u9605\u7b49\u7ea7\u3002"},"users.level.p1b":{en:"You have changed your subscription level from %s to %s.  Until you pay the subscription fee for %s, you will not have access to its features.",zh:"\u60a8\u5df2\u7ecf\u5c06\u60a8\u7684\u8ba2\u9605\u7b49\u7ea7\u4ece%\u6539\u6210\u4e86%\u3002\u76f4\u5230\u60a8\u652f\u4ed8%\u7684\u8d39\u7528\u4e3a\u6b62\uff0c\u60a8\u5c06\u4e0d\u80fd\u4f7f\u7528\u8fd9\u4e2a\u529f\u80fd\u3002"},
"users.level.p3a":{en:"You have %s credit on your account.",zh:"\u60a8\u6709%\u6dfb\u52a0\u5230\u4e86\u60a8\u7684\u8d26\u6237\u3002"},"users.level.button.trial":{en:"%d-Day Free Trial",zh:"%\u7684\u514d\u8d39\u8bd5\u7528"},"users.level.button.personal.keep":{en:"Keep Personal",zh:"\u4fdd\u6301\u4e2a\u4eba\u7248"},"button.upgrade":{en:"Upgrade",zh:"\u5347\u7ea7"},"label.downgrade":{en:"Downgrade",zh:"\u964d\u7ea7"},"users.level.button.pro.keep":{en:"Keep Professional",zh:"\u4fdd\u6301\u4e13\u4e1a\u7248"},
"users.level.button.tier.change":{en:"Change Tier",zh:"\u66f4\u6539\u7b49\u7ea7"},"users.level.personal.h":{en:"Personal",zh:"\u4e2a\u4eba\u7248"},"users.level.personal.desc":{en:"For individuals",zh:"\u4e3a\u4e2a\u4eba\u4f7f\u7528"},"users.level.pro.h":{en:"Professional",zh:"\u4e13\u4e1a\u7248"},"users.level.pro.desc":{en:"For independent professionals",zh:"\u4e3a\u72ec\u7acb\u7684\u4e13\u4e1a\u4eba\u5458"},"users.level.team.h":{en:"Team",zh:"\u56e2\u961f"},"users.level.team.desc":{en:"For businesses and workgroups",
zh:"\u4e3a\u5546\u4e1a\u548c\u5de5\u4f5c\u56e2\u961f"},or:{zh:"\u6216\u8005"},"users.level.td.1user":{en:"1 User",zh:"1\u4e2a\u4f7f\u7528\u8005"},"users.level.td.multiuser":{en:"Multiple Users",zh:"\u591a\u4e2a\u4f7f\u7528\u8005"},"users.level.td.personal.collab":{en:"5 Collaborators",zh:"5\u4e2a\u5408\u4f5c\u8005"},"users.level.td.pro.collab":{en:"Unlimited Collaborators",zh:"\u65e0\u4e0a\u9650\u7684\u5408\u4f5c\u8005"},"users.level.td.team.collab":{en:"Unlimited Collaborators",zh:"\u65e0\u4e0a\u9650\u7684\u5408\u4f5c\u8005"},
startingat:{en:"Starting at %s",zh:"\u4ece%\u5f00\u59cb"},"users.level.td.premiumfeatures":{en:"Premium Features",zh:"\u989d\u5916\u7684\u529f\u80fd"},"users.level.td.pro.features":{en:"MS Visio Import/Export (.vdx)<br />Wireframing / iOS Mockups<br />Revision history",zh:"SSL \u52a0\u5bc6<br/>\u6846\u67b6\u56fe/iPhone\u6a21\u578b<br/>\u4fee\u6539\u5386\u53f2"},"users.level.td.team.features":{en:"MS Visio Import/Export (.vdx)<br />Wireframing / iOS Mockups<br />Revision history<br />Shared templates and images",
zh:"SSL \u52a0\u5bc6<br/>\u6846\u67b6\u56fe/iPhone\u6a21\u578b<br/>\u4fee\u6539\u5386\u53f2<br/>\u5206\u4eab\u7684\u6a21\u677f\u548c\u56fe\u7247"},"users.level.contact.p":{en:'<a href="/contact">Contact us</a> for <a href="/education">educational</a> and enterprise solutions.',zh:'<a href="/contact">\u8054\u7cfb\u6211\u4eec</a>\u4e3a\u4e86<a href="/education">\u6559\u80b2</a>\u548c\u4f01\u4e1a\u65b9\u6848\u3002'},signupfree:{en:"Sign up for free",zh:"\u514d\u8d39\u6ce8\u518c"},"users.pay.h":{en:"Subscription Payments",
zh:"\u8ba2\u91d1\u652f\u4ed8"},"users.pay.h2.pay":{en:"Pay your %s subscription fee",zh:"\u652f\u4ed8\u60a8\u7684%\u7684\u5b9a\u91d1\u8d39\u7528"},"users.pay.p.level.changed":{en:"You have changed your subscription level from %s to %s.  Until you pay the subscription fee for %s, you will not have access to its features.",zh:"\u60a8\u5df2\u7ecf\u5c06\u60a8\u7684\u8ba2\u9605\u7b49\u7ea7\u4ece%\u6539\u6210\u4e86%\u3002\u76f4\u5230\u60a8\u652f\u4ed8%\u7684\u8d39\u7528\u4e3a\u6b62\uff0c\u60a8\u5c06\u4e0d\u80fd\u4f7f\u7528\u8fd9\u4e2a\u529f\u80fd\u3002"},
"users.pay.p.trial":{en:"Your free trial of %s expires on %s. You may pay this fee now, or after your free trial expires.",zh:"\u60a8%\u7684\u514d\u8d39\u8bd5\u7528\u4e2d\u7684%\u5df2\u7ecf\u8fc7\u671f\u4e86\u3002\u60a8\u53ef\u4ee5\u73b0\u5728\uff0c\u6216\u7b49\u5230\u60a8\u514d\u8d39\u8bd5\u7528\u5230\u671f\u4e4b\u540e\uff0c\u652f\u4ed8\u6b64\u8d39\u7528\u3002"},"users.pay.p.warning":{en:"You need to pay your %s subscription fee before %s, or your subscription will be suspended.",zh:"\u60a8\u9700\u8981\u5728\u8fd8\u5269%\u4e4b\u524d\u652f\u4ed8\u60a8%\u7684\u5b9a\u91d1\uff0c\u4e0d\u7136\u60a8\u7684\u8ba2\u9605\u5c06\u4f1a\u88ab\u63a8\u8fdf\u3002"},
"users.pay.p.subscription.cost":{en:"Your subscription cost is %s or %s.",zh:"\u60a8\u7684\u8ba2\u9605\u8d39\u7528\u662f%\u6216%\u3002"},"users.pay.p.credit":{en:"Your next payment will be reduced by up to %s due to a credit on your account.",zh:"\u56e0\u4e3a\u60a8\u7684\u8d26\u6237\u4e2d\u6709\u591a\u4f59\u7684\u4f59\u989d\uff0c\u60a8\u4e0b\u6b21\u7684\u652f\u4ed8\u8d39\u7528\u6700\u591a\u53ef\u51cf\u5c11%\u3002"},"users.pay.p.creditsurplus":{en:"You have a credit for %s on your account. This amount will cover your next %s in fees paid.",
zh:"\u60a8\u7684\u8d26\u6237\u4e2d\u6709%\u7684\u4f59\u989d\u3002\u6b64\u4f59\u989d\u53ef\u4ee5\u8986\u76d6\u60a8\u4e0b\u6b21%\u7684\u8d39\u7528\u3002"},"button.pay.monthly":{en:"Pay Monthly",zh:"\u6bcf\u6708\u652f\u4ed8"},"button.pay.annually":{en:"Pay Annually",zh:"\u6bcf\u5e74\u652f\u4ed8"},"button.pay.now":{en:"Pay Now",zh:"\u73b0\u5728\u652f\u4ed8"},"users.pay.h2.level":{en:"Current Subscription Level",zh:"\u73b0\u5728\u7684\u8ba2\u9605\u7b49\u7ea7"},"users.pay.p.currentlevel":{en:"You are currently using %s.",
zh:"\u60a8\u73b0\u5728\u6b63\u5728\u4f7f\u7528%\u3002"},"users.pay.p.currentcost":{en:"This subscription costs %s.",zh:"\u6b64\u8ba2\u9605\u7b49\u7ea7\u9700\u8981\u82b1\u8d39%\u3002"},"users.pay.p.paidup":{en:"You are paid up through %s.",zh:"\u60a8\u6700\u591a\u4ed8\u5b8c\u4e86%\u3002"},"users.pay.h2.history":{en:"Payment History",zh:"\u652f\u4ed8\u5386\u53f2"},"users.pay.th.paid":{en:"Date",zh:"\u5df2\u652f\u4ed8"},"users.pay.th.level":{en:"Description",zh:"\u8ba2\u9605\u7b49\u7ea7"},"users.pay.th.method":{en:"Payment Method",
zh:"\u652f\u4ed8\u65b9\u6cd5"},"users.pay.th.amount":{en:"Amount",zh:"\u6570\u91cf"},"prefs.h":{en:"Editor Preferences",zh:"\u7f16\u8f91\u8005\u504f\u597d"},"prefs.legend.zoom":{en:"Default Zoom Level",zh:"\u9ed8\u8ba4\u653e\u5927\u7b49\u7ea7"},"prefs.zoom.normal":{en:"Normal (75%)",zh:"\u6b63\u5e38(75%)"},"prefs.zoom.width":{en:"Page Width",zh:"\u9875\u9762\u5bbd\u5ea6"},"prefs.zoom.page":{en:"Full Page",zh:"\u6574\u4e2a\u9875\u9762"},"prefs.legend.grid":{en:"Grid Lines",zh:"\u7f51\u683c\u7ebf"},
"prefs.grid.show":{en:"Show Grid",zh:"\u663e\u793a\u7f51\u683c\u7ebf"},"prefs.grid.hide":{en:"Hide Grid",zh:"\u9690\u85cf\u7f51\u683c\u7ebf"},"prefs.legend.prompt":{en:"After Drawing Lines:",zh:"\u753b\u7ebf\u4e4b\u540e\uff1a"},"prefs.prompt.nothing":{en:"Do nothing",zh:"\u4e0d\u6267\u884c\u4efb\u4f55\u64cd\u4f5c"},"prefs.prompt.block":{en:"Prompt for next block",zh:"\u63d0\u793a\u4e0b\u4e00\u4e2a\u56fe\u5f62\u5757"},"prefs.h3.search":{en:"Library Search",zh:"\u641c\u7d22\u56fe\u4e66\u9986"},"label.enable":{en:"Enable",
zh:"\u542f\u7528"},"label.commercialonly":{en:"Commercial only",zh:"\u53ea\u7528\u4e8e\u5546\u4e1a\u7528\u9014"},"tooltip.icon.commercialonly":{en:"Limit searches to icons with commercial licenses",zh:"\u4f7f\u7528\u5546\u4e1a\u6267\u7167\u53ef\u4ee5\u8fdb\u884c\u5bf9\u56fe\u8868\u7684\u6709\u9650\u641c\u7d22"},"tooltip.image.commercialonly":{en:"Limit searches to images with commercial licenses",zh:"\u4f7f\u7528\u5546\u4e1a\u6267\u7167\u53ef\u4ee5\u8fdb\u884c\u5bf9\u56fe\u50cf\u7684\u6709\u9650\u641c\u7d22"},
"users.register.h.trial":{en:"%s Free Trial",zh:"%\u7684\u514d\u8d39\u8bd5\u7528"},"users.register.h.free":{en:"Sign Up For %s",zh:"\u6ce8\u518c%"},"users.register.currency.p":{en:"The currency you select here will be used to display pricing for paid accounts in the future. You will not be charged at this time.  You can change this setting at any time.",zh:"\u60a8\u5728\u8fd9\u91cc\u9009\u62e9\u7684\u8d27\u5e01\u5c06\u4f1a\u7528\u6765\u663e\u793a\u652f\u4ed8\u7684\u8d26\u6237\u3002\u60a8\u4e0d\u4f1a\u5728\u73b0\u5728\u88ab\u6536\u53d6\u4efb\u4f55\u8d39\u7528\u3002\u60a8\u53ef\u4ee5\u5728\u4efb\u4f55\u65f6\u95f4\u6765\u6539\u53d8\u6b64\u8bbe\u7f6e\u3002"},
"label.currency":{en:"Currency",zh:"\u8d27\u5e01"},"heading.signup.or":{en:"Or sign up with:",zh:"\u6216\u8005\u4f7f\u7528\u5176\u4ed6\u8d26\u6237\u6ce8\u518c\uff1a"},"button.register":{en:"Register",zh:"\u6ce8\u518c"},"users.register.ed.existing.p":{en:"If you accept this invitation with your existing LucidChart account, your account will be linked to the educational institution %s. Any existing paid subscription you have will be canceled, but you will share all the benefits of %s's subscription.",
zh:"\u5982\u679c\u60a8\u4f7f\u7528\u60a8\u5df2\u5b58\u5728\u7684LucidChart\u8d26\u6237\u6765\u63a5\u53d7\u6b64\u9080\u8bf7\uff0c\u60a8\u7684\u8d26\u6237\u5c06\u4f1a\u4e0e\u6559\u80b2\u673a\u6784\u7684%\u8fde\u63a5\u3002\u60a8\u5df2\u7ecf\u652f\u4ed8\u7684\u5b9a\u91d1\u5c06\u4f1a\u88ab\u53d6\u6d88\uff0c\u4f46\u662f\u60a8\u53ef\u4ee5\u5171\u4eab%\u8ba2\u9605\u7684\u6240\u6709\u529f\u80fd\u3002"},"users.register.ed.h":{en:"Join %s on LucidChart",zh:"\u52a0\u5165LucidChart\u7684%"},"users.register.ed.new.p":{en:"You may also join %s by creating a new LucidChart account. This account will be linked to %s, and will share all the benefits of %s's subscription.",
zh:"\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u65b0\u5efa\u4e00\u4e2aLucidChart\u8d26\u6237\u6765\u52a0\u5165%\u3002\u6b64\u8d26\u6237\u4f1a\u4e0e%\u8fde\u63a5\uff0c\u5e76\u4e14\u53ef\u4ee5\u5206\u4eab%\u7684\u6240\u6709\u529f\u80fd\u3002"},"users.level.free.h":{en:"Free",zh:"\u514d\u8d39"},"users.level.free.desc":{en:"For the penny-pincher",zh:"\u4e3a\u5c0f\u6c14\u9b3c\u4f7f\u7528"},"users.level.free.cost":{en:"Free",zh:"\u514d\u8d39"},"users.level.td.free.collab":{en:"2 Collaborators",zh:"2\u4e2a\u5408\u4f5c\u8005"},
"users.level.td.obj.unlimited":{en:"Unlimited Objects",zh:"\u65e0\u4e0a\u9650\u7684\u7269\u4f53"},"users.level.td.obj.num":{en:"%d Objects",zh:"%\u7684\u7269\u4f53"},perdocument:{en:"per document",zh:"\u6bcf\u4e2a\u6587\u4ef6"},"users.level.button.trial.start":{en:"Start Free Trial",zh:"\u5f00\u59cb\u514d\u8d39\u8bd5\u7528"},"users.level.button.signup.now":{en:"Sign Up Now",zh:"\u73b0\u5728\u6ce8\u518c"},"users.level.login.p":{en:'Or <a class="ajax_form_button" href="/users/login%s">log in</a> with your existing LucidChart account.',
zh:'\u6216\u8005<a class="ajax_form_button"href="/users/login">\u767b\u5f55</a>\u8fdb\u60a8\u5df2\u5b58\u5728\u7684LucidChart\u8d26\u6237\u3002'},"users.settings.h":{en:"User Settings",zh:"\u7528\u6237\u8bbe\u5b9a"},"users.settings.forum.h2":{en:"Forum Posting",zh:"\u8bba\u575b\u53d1\u5e16"},"label.avatar":{en:"Forum Avatar",zh:"\u8bba\u575b\u5934\u50cf"},"label.alias":{en:"Forum Alias",zh:"\u8bba\u575b\u6635\u79f0"},"users.settings.password.h2":{en:"Change Password",zh:"\u4fee\u6539\u5bc6\u7801"},
"label.password.new":{en:"New Password",zh:"\u65b0\u5bc6\u7801"},"users.settings.password.p":{en:"You can leave these fields blank if you don't want to change your password.",zh:"\u5982\u679c\u60a8\u4e0d\u60f3\u4fee\u6539\u5bc6\u7801\u7684\u8bdd\uff0c\u60a8\u53ef\u4ee5\u4e0d\u586b\u6b64\u9009\u9879\u3002"},"users.settings.gravatar.p":{en:"You can create a %s account to set your forum avatar. Just make sure you use the same email address in both places!",zh:"\u60a8\u53ef\u4ee5\u65b0\u5efa\u4e00\u4e2a%s \u8d26\u6237\u6765\u8bbe\u5b9a\u60a8\u7684\u8bba\u575b\u5934\u50cf\u3002\u8bf7\u786e\u5b9a\u60a8\u5728\u4e24\u4e2a\u8d26\u6237\u4f7f\u7528\u540c\u4e00\u4e2a\u90ae\u4ef6\u5730\u5740\u3002"},
"users.tierlevel.p":{en:"View single user account pricing.",zh:"\u6d4f\u89c8\u4e2a\u4eba\u7528\u6237\u8d26\u6237\u4ef7\u683c\u3002"},"users.login.title":{en:"Login and Registration",zh:"\u767b\u5f55\u548c\u6ce8\u518c"},"users.registerlevel.title":{en:"Pricing and Account Types",zh:"\u4ef7\u683c\u548c\u8d26\u6237\u7c7b\u578b"},"users.tierLevel.title":{en:"Team Pricing and Account Types",zh:"\u56e2\u961f\u4ef7\u683c\u548c\u8d26\u6237\u7c7b\u578b"},"referrals.title":{en:"Join LucidChart and get a free month of premium features!",
zh:"\u52a0\u5165LucidChart\u5e76\u4e14\u5f97\u5230\u4e00\u4e2a\u6708\u7684\u514d\u8d39\u989d\u5916\u529f\u80fd\uff01"},"referrals.desc":{en:"Sign up for LucidChart, an online and collaborative diagramming application, and get 1 free month of premium features!",zh:"\u6ce8\u518cLucidChart\uff0c\u4e00\u4e2a\u5728\u7ebf\u5408\u4f5c\u5236\u4f5c\u56fe\u8868\u7684\u5e94\u7528\uff0c\u5e76\u4e14\u5f97\u5230\u4e00\u4e2a\u6708\u7684\u989d\u5916\u529f\u80fd\u3002"},"documents.desc":{en:"Check out this diagram at LucidChart. Make your own diagram or flowchart and share it with your friends. - http://lucidchart.com",
zh:"\u5728LucidChart\u67e5\u627e\u6b64\u56fe\u8868\u3002\u5236\u4f5c\u60a8\u81ea\u5df1\u7684\u56fe\u8868\u548c\u6d41\u7a0b\u56fe\u5e76\u4e14\u548c\u60a8\u7684\u670b\u53cb\u5206\u4eab\u3002 - http://lucidchart.com"},"template.desc":{en:"Anyone can diagram! Create your a quick and easy diagram at LucidChart.com.",zh:"\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u5236\u4f5c\u56fe\u8868\uff01\u4f7f\u7528LucidChart.com\u6765\u5236\u4f5c\u4e00\u4e2a\u7b80\u5355\u5e76\u5feb\u901f\u7684\u56fe\u8868\u3002"},"button.visio.import":{en:"Import Visio (VDX) File",
zh:"\u5bfc\u5165Visio (VDX) \u6587\u6863"},"visio.import.error.unknown":{en:"Unknown error importing VDX file.",zh:"\u5bfc\u5165VDX file\u53d1\u751f\u4e86\u672a\u77e5\u9519\u8bef\u3002"},"button.importing":{en:"Importing...",zh:"\u5bfc\u5165\u4e2d..."},"org.add.h":{en:"Add User"},"users.settings.language.h2":{en:"Language",zh:"\u8bed\u8a00"},language:{en:"Language",zh:"\u8bed\u8a00"},"button.user.remove.from.team":{en:"Remove User From Team",zh:"\u4ece\u5c0f\u7ec4\u4e2d\u79fb\u9664\u7528\u6237"},
"button.save":{en:"Save",zh:"\u4fdd\u5b58"},"flash.access.denied":{en:"Access denied.",zh:"\u8fdb\u5165\u88ab\u62d2\u7edd\u3002"},"flash.not.org.admin":{en:"You are not an administrator in your organization.",zh:"\u60a8\u5728\u60a8\u7684\u7ec4\u7ec7\u4e2d\u4e0d\u662f\u7ba1\u7406\u5458\u3002"},"flash.captcha.incorrect":{en:"Incorrect Captcha",zh:"\u9519\u8bef\u7684\u9a8c\u8bc1\u7801\u3002"},"flash.contact.thanks":{en:"Thank you for contacting LucidChart.",zh:"\u611f\u8c22\u60a8\u8054\u7cfbLucidChart."},
"flash.bugreport.thanks":{en:"Thank you for reporting your problem. If you provided an email address, we will contact you when your issue is resolved.",zh:"\u611f\u8c22\u60a8\u62a5\u544a\u60a8\u7684\u95ee\u9898\u3002\u5982\u679c\u60a8\u5411\u6211\u4eec\u63d0\u4f9b\u60a8\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\uff0c\u5f53\u60a8\u7684\u95ee\u9898\u89e3\u51b3\u65f6\u6211\u4eec\u5c06\u5373\u65f6\u4e0e\u60a8\u8054\u7cfb\u3002"},"flash.coupon.used":{en:"This coupon has already been used.",zh:"\u6b64\u5238\u5df2\u88ab\u4f7f\u7528\u3002"},
"flash.credit.added":{en:"Credit of $%s added to your account.",zh:" $%s \u7684\u70b9\u6570\u5df2\u6dfb\u52a0\u5230\u60a8\u7684\u5e10\u6237\u3002"},"flash.credit.created":{en:"Credits successfully created.",zh:"\u70b9\u6570\u5df2\u6210\u529f\u751f\u6210"},"flash.community.thread.save.error":{en:"Could not save Community Library thread.",zh:"\u65e0\u6cd5\u4fdd\u5b58\u793e\u533a\u56fe\u4e66\u9986\u4e3b\u9898\u3002"},"flash.community.forum.find.error":{en:"Could not find Community Library forum.",zh:"\u627e\u4e0d\u5230\u793e\u533a\u56fe\u4e66\u9986\u8bba\u575b\u3002"},
"flash.thread.save.error":{en:"Could not save thread.",zh:"\u65e0\u6cd5\u4fdd\u5b58\u4e3b\u9898\u3002"},"flash.template.delete.error":{en:"Error deleting that template. Please try again later.",zh:"\u5220\u9664\u8be5\u6a21\u677f\u5b58\u5728\u9519\u8bef\u3002\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},"flash.template.deleted":{en:'Deleted template "%s". <a href="%s">Undo</a>',zh:'\u5220\u9664\u7684\u6a21\u677f\u201c\uff05s\u201c\uff0c<a href="%s">\u64a4\u6d88</a>'},"flash.template.undeleted":{en:'Un-deleted template "%s". <a href="%s">Undo</a>',
zh:'\u53d6\u6d88\u5220\u9664\u7684\u6a21\u677f\u201c\uff05s\u201c\uff0c<a href="%s">\u64a4\u6d88</a>'},"flash.template.undelete.error":{en:"Error un-deleting that template. Please try again later.",zh:"\u53d6\u6d88\u5220\u9664\u8be5\u6a21\u677f\u5b58\u5728\u9519\u8bef\u3002\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},"flash.template.save.user.null":{en:"You need to be logged in to save your template.",zh:"\u60a8\u9700\u8981\u5148\u767b\u5f55\u4ee5\u4fdd\u5b58\u60a8\u7684\u6a21\u677f\u3002"},"flash.template.not.supported":{en:"%s does not have support for custom templates. Please consider upgrading.",
zh:"\uff05s\u6ca1\u6709\u652f\u6301\u7684\u81ea\u5b9a\u4e49\u6a21\u677f\u3002\u8bf7\u8003\u8651\u5347\u7ea7\u3002"},"flash.data.save.none":{en:"No data to save",zh:"\u6ca1\u6709\u6570\u636e\u4fdd\u5b58"},"flash.upload.failed.try.again":{en:"Upload failed. Please try again.",zh:"\u4e0a\u4f20\u5931\u8d25\u3002\u8bf7\u518d\u8bd5\u4e00\u6b21\u3002"},"flash.template.not.found":{en:"Template not found.",zh:"\u6a21\u7248\u6ca1\u6709\u627e\u5230"},"flash.template.save.error":{en:"Template could not be saved.",
zh:"\u6a21\u677f\u65e0\u6cd5\u4fdd\u5b58\u3002"},"flash.template.share.unsaved":{en:"Templates must be saved before they can be shared.",zh:"\u6a21\u677f\u5fc5\u987b\u5148\u4fdd\u5b58\uff0c\u624d\u53ef\u4ee5\u5206\u4eab\u3002"},"flash.template.share.error":{en:"Could not share template.",zh:"\u4e0d\u80fd\u5206\u4eab\u6a21\u677f."},"flash.template.share.success":{en:"Template shared successfully.",zh:"\u6a21\u677f\u5171\u4eab\u6210\u529f\u3002"},"flash.template.unshare.user.null":{en:"You must be logged in to unshare a documente template.",
zh:"\u60a8\u5fc5\u987b\u5148\u767b\u5f55\u624d\u80fd\u53d6\u6d88\u5171\u4eab\u6587\u6863\u6a21\u677f\u3002"},"flash.template.unshare.level.error":{en:"You must have a premium account to use sharing.",zh:"\u4f60\u5fc5\u987b\u8981\u62e5\u6709\u9ad8\u7ea7\u5e10\u6237\u624d\u53ef\u4ee5\u4f7f\u7528\u5171\u4eab\u3002"},"flash.template.unshare.unknown":{en:"Unknown template.",zh:"\u672a\u77e5\u6a21\u677f\u3002"},"flash.template.unshare.error":{en:"Could not unshare template.",zh:"\u4e0d\u80fd\u53d6\u6d88\u5171\u4eab\u6a21\u7248"},
"flash.template.unshare.success":{en:"Document unshared successfully.",zh:"\u6210\u529f\u53d6\u6d88\u5171\u4eab\u6587\u4ef6"},"flash.template.removed":{en:"Template has been removed from the community.",zh:"\u6a21\u677f\u5df2\u4ece\u793e\u533a\u4e2d\u79fb\u9664\u3002"},"flash.template.not.shared":{en:"Template is not currently shared.",zh:"\u6a21\u677f\u76ee\u524d\u5c1a\u672a\u5171\u4eab\u3002"},"flash.thread.not.found":{en:"Thread not found.",zh:"\u4e3b\u9898\u672a\u627e\u5230"},"flash.template.not.specified":{en:"No template specified.",
zh:"\u6ca1\u6709\u6307\u5b9a\u7684\u6a21\u7248"},"flash.template.rate.user.null":{en:"You must be logged in to rate templates.",zh:"\u60a8\u5fc5\u987b\u767b\u5f55\u624d\u53ef\u4ee5\u8fdb\u884c\u6a21\u677f\u8bc4\u5206\u3002"},"flash.template.rate.error":{en:"Error rating template.",zh:"\u9519\u8bef\u6a21\u7248\u8bc4\u5206"},"flash.template.score.calc.error":{en:"Error could not calculate community score.",zh:"\u9519\u8bef\uff1a\u65e0\u6cd5\u8ba1\u7b97\u793e\u533a\u8bc4\u5206\u3002"},"flash.template.rate.thanks":{en:"Thank you for rating this template!",
zh:"\u8c22\u8c22\u4f60\u5bf9\u6a21\u677f\u8bc4\u5206\uff01"},"flash.template.blocked":{en:"Template has been blocked!",zh:"\u6a21\u677f\u5df2\u88ab\u5c01\u9501\uff01"},"flash.document.delete.denied":{en:"You do not have permission to delete that document.",zh:"\u60a8\u6ca1\u6709\u6743\u9650\u6765\u5220\u9664\u8be5\u6587\u4ef6\u3002"},"flash.document.deleted":{en:'Deleted document "%s". <a href="%s">Undo</a>',zh:'\u5220\u9664\u7684\u6587\u4ef6\u201c\uff05s\u201c\uff0c<a href="%s">\u64a4\u6d88</a>'},
"flash.document.delete.error":{en:"Error deleting that document. Please try again later.",zh:"\u5220\u9664\u8be5\u6587\u4ef6\u5b58\u5728\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},"flash.document.undelete.denied":{en:"You do not have permission to un-delete that document.",zh:"\u60a8\u6ca1\u6709\u6743\u9650\u53d6\u6d88\u5220\u9664\u8be5\u6587\u4ef6\u3002"},"flash.document.undeleted":{en:'Un-deleted document "%s". <a href="%s">Undo</a>',zh:'\u53d6\u6d88\u5220\u9664\u7684\u6587\u4ef6\u201c\uff05s\u201c.<a href="%s">\u64a4\u6d88</a>'},
"flash.document.undelete.error":{en:"Error un-deleting that document. Please try again later.",zh:"\u53d6\u6d88\u5220\u9664\u7684\u6587\u4ef6\u5b58\u5728\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},"flash.permission.denied":{en:"Permission denied.",zh:"\u6743\u9650\u88ab\u62d2\u7edd"},"flash.document.view.denied":{en:"You do not have permission to view that document.",zh:"\u60a8\u6ca1\u6709\u6743\u9650\u67e5\u770b\u8be5\u6587\u4ef6\u3002"},"flash.document.share.denied":{en:"You do not have permission to share that document.",
zh:"\u60a8\u6ca1\u6709\u6743\u9650\u5171\u4eab\u8be5\u6587\u4ef6\u3002"},"flash.document.share.success":{en:"Successfully shared document.",zh:"\u6210\u529f\u5171\u4eab\u6587\u4ef6"},"flash.document.unshare.denied":{en:"You do not have permission to unshare that document.",zh:"\u60a8\u6ca1\u6709\u6743\u9650\u53d6\u6d88\u5171\u4eab\u8be5\u6587\u4ef6\u3002"},"flash.document.unshare.error":{en:"Could not unshare document.",zh:"\u4e0d\u80fd\u53d6\u6d88\u6587\u4ef6\u5171\u4eab"},"flash.document.unshare.success":{en:"Document unshared successfully.",
zh:"\u6210\u529f\u53d6\u6d88\u6587\u4ef6\u5171\u4eab"},"flash.document.community.removed":{en:"Document has been removed from the community.",zh:"\u6587\u4ef6\u5df2\u4ece\u793e\u533a\u79fb\u9664"},"flash.document.not.shared":{en:"Document is not currently shared.",zh:"\u76ee\u524d\u6ca1\u6709\u6587\u4ef6\u5171\u4eab\u3002"},"flash.document.rate.error":{en:"Error rating document.",zh:"\u6587\u4ef6\u8bc4\u5206\u9519\u8bef"},"flash.document.score.calc.error":{en:"Error could not calculate community score.",
zh:"\u9519\u8bef\uff1a\u65e0\u6cd5\u8ba1\u7b97\u793e\u533a\u8bc4\u5206"},"flash.document.save.error":{en:"Document could not be saved.",zh:"\u6587\u4ef6\u65e0\u6cd5\u4fdd\u5b58\u3002"},"flash.document.rate.thanks":{en:"Thank you for rating this document!",zh:"\u611f\u8c22\u60a8\u5bf9\u6b64\u6587\u4ef6\u8bc4\u5206\uff01"},"flash.document.blocked":{en:"Document has been blocked!",zh:"\u6587\u4ef6\u5df2\u88ab\u5c01\u9501\uff01"},"flash.invitation.inactive":{en:"The requested invitation is no longer active.",
zh:"\u8bf7\u6c42\u7684\u9080\u8bf7\u4e0d\u518d\u6709\u6548\u3002"},"flash.changes.saved":{en:"Changes saved.",zh:"\u4fdd\u5b58\u66f4\u6539"},"flash.invitation.sent.to":{en:"Invitation sent to %s.",zh:"\u9080\u8bf7\u53d1\u9001\u81f3\uff05s"},"flash.org.member.already":{en:"You are already a member of this organization.",zh:"\u60a8\u5df2\u7ecf\u662f\u8fd9\u4e2a\u7ec4\u7ec7\u7684\u6210\u5458\u3002"},"flash.org.user.limit":{en:"Your current %s subscription only allows %d users on your account.",zh:"\u60a8\u5f53\u524d\u7684\uff05s\u8ba2\u9605\u53ea\u5141\u8bb8\u60a8\u7684\u5e10\u6237\u62e5\u6709\uff05d\u4f4d\u7528\u6237"},
"flash.org.user.limit.approach":{en:"Your current %s subscription only allows %d users (%d more) on your account.",zh:"\u60a8\u5f53\u524d\u7684\uff05s\u8ba2\u9605\u53ea\u5141\u8bb8\u60a8\u7684\u5e10\u6237\u62e5\u6709\uff05d\u4f4d\u7528\u6237\uff08\uff05d\u4e2a\uff09\u3002"},"flash.org.user.added":{en:"The new user has been added to your organization.",zh:"\u65b0\u7528\u6237\u88ab\u6dfb\u52a0\u5230\u60a8\u7684\u7ec4\u7ec7\u3002"},"flash.org.user.removed":{en:"User has been removed from team.",zh:"\u8be5\u7528\u6237\u5df2\u4ece\u56e2\u961f\u4e2d\u5220\u9664\u3002"},
"flash.org.user.remove.denied":{en:"You do not have rights to remove the user from the team.",zh:"\u60a8\u6ca1\u6709\u6743\u5229\u5220\u9664\u56e2\u961f\u7684\u7528\u6237\u3002"},"flash.org.created":{en:"Your organization has been created.",zh:"\u60a8\u7684\u7ec4\u7ec7\u5df2\u5efa\u7acb\u3002"},"flash.referral.link.used":{en:"This referral confirmation link has already been used.",zh:"\u6b64\u63a8\u4ecb\u786e\u8ba4\u94fe\u63a5\u5df2\u88ab\u4f7f\u7528\u3002"},"flash.referral.credit.error":{en:"Error crediting your account, please contact LucidChart support.",
zh:"\u9519\u8bef\u8ba1\u5165\u60a8\u7684\u5e10\u6237\uff0c\u8bf7\u8054\u7cfbLucidChart\u652f\u6301\u3002"},"flash.referral.redeem.error":{en:"Could not redeem referral credit. Please contact LucidChart support.",zh:"\u65e0\u6cd5\u5151\u6362\u63a8\u4ecb\u70b9\u6570\u3002\u8bf7\u8054\u7cfbLucidChart\u652f\u6301\u3002"},"flash.trial.extend.error":{en:"Error extending trial.",zh:"\u9519\u8bef\u5ef6\u4f38\u8bd5\u9a8c."},"flash.trial.initialize.error":{en:"Error initializing trial.",zh:"\u9519\u8bef\u521d\u59cb\u5316\u8bd5\u9a8c."},
"flash.trial.extended.to.month":{en:"Your free trial has been extended to 1 month!",zh:"\u60a8\u7684\u514d\u8d39\u8bd5\u7528\u5df2\u5ef6\u957f\u81f31\u4e2a\u6708\uff01"},"flash.referral.link.invalid":{en:"Invalid referral confirmation link.",zh:"\u65e0\u6548\u7684\u63a8\u4ecb\u786e\u8ba4\u94fe\u63a5\u3002"},"flash.user.not.found":{en:"User not found.",zh:"\u8be5\u7528\u6237\u4e0d\u5b58\u5728"},"flash.thread.posted":{en:"Thread posted.",zh:"\u53d1\u5e03\u4e3b\u9898"},"flash.reply.posted":{en:"Reply posted.",
zh:"\u53d1\u5e03\u56de\u590d"},"flash.thread.notification.unsubscribed":{en:'You have been unsubscribed from email notifications for this thread. <a href="%s">Undo</a>',zh:'\u60a8\u5df2\u53d6\u6d88\u8ba2\u9605\u4ee5\u7535\u5b50\u90ae\u4ef6\u901a\u77e5\u8be5\u4e3b\u9898<a href="%s">\u64a4\u6d88</a>'},"flash.thread.notification.subscribed":{en:'You have been subscribed to email notifications for this thread. <a href="%s">Undo</a>',zh:'\u60a8\u5df2\u8ba2\u9605\u4ee5\u7535\u5b50\u90ae\u4ef6\u901a\u77e5\u8be5\u4e3b\u9898<a href="%s">\u64a4\u6d88</a>'},
"flash.unsubscribe.add":{en:'You will no longer be contacted at the address %s <a href="%s">Undo</a>.',zh:'\u60a8\u5c06\u4e0d\u518d\u88ab\u8054\u7cfb\u5230\uff05\u7684\u5730\u5740<a href="%s">\u64a4\u9500</a>\u3002'},"flash.unsubscribe.remove":{en:"You may now be contacted at the address %s.",zh:"\u4f60\u73b0\u5728\u53ef\u4ee5\u8054\u7cfb\u5230\uff05s\u7684\u5730\u5740"},"flash.email.unrecognized":{en:"Unrecognized email address.",zh:"\u65e0\u6cd5\u8bc6\u522b\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002"},
"flash.user.org.admin.set":{en:"User set as organization admin.",zh:"\u6b64\u7528\u6237\u4f5c\u4e3a\u8be5\u7ec4\u7ec7\u7684\u7ba1\u7406\uff1f"},"flash.user.team.broken":{en:"User broken off from team.",zh:"\u7528\u6237\u4ece\u56e2\u961f\u4e2d\u65ad\u3002"},"flash.user.forgotpassword":{en:"An email with a link to reset your password has been sent to your email address.",zh:"\u4e00\u5c01\u9644\u6709\u91cd\u65b0\u8bbe\u7f6e\u60a8\u7684\u5bc6\u7801\u94fe\u63a5\u7684\u90ae\u4ef6\u5df2\u53d1\u9001\u5230\u60a8\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002"},
"flash.user.resetpassword.inactive":{en:"That password reset link is no longer active.",zh:"\u8be5\u5bc6\u7801\u91cd\u7f6e\u94fe\u63a5\u4e0d\u518d\u6709\u6548\u3002"},"flash.user.resetpassword.reset":{en:"Your password has been reset. Your new password has been emailed to %s.",zh:"\u60a8\u7684\u5bc6\u7801\u5df2\u91cd\u7f6e\uff0c\u60a8\u7684\u65b0\u5bc6\u7801\u5df2\u7ecf\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u53d1\u9001\u5230\uff05s"},"flash.preferences.saved":{en:"Your preferences have been saved.",
zh:"\u60a8\u7684\u504f\u597d\u4ee5\u4fdd\u5b58"},"flash.user.resendconfirmation.no.user":{en:"No user has been registered with the email address %s.",zh:"\u5c1a\u65e0\u7528\u6237\u4f7f\u7528\u7535\u5b50\u90ae\u4ef6\u5730\u5740\uff05s\u6ce8\u518c"},"flash.user.resendconfirmation.sent":{en:"Welcome email resent to %s.",zh:"\u6b22\u8fce\u90ae\u4ef6\u91cd\u65b0\u53d1\u9001\u81f3 %s."},"flash.user.edorg.not.found":{en:"Educational organization not found.",zh:"\u6559\u80b2\u673a\u6784\u6ca1\u6709\u627e\u5230\u3002"},
"flash.org.admin.not.found":{en:"Administrator for organization %s not found",zh:"\uff05s\u7684\u7ec4\u7ec7\u7ba1\u7406\u5458\u672a\u627e\u5230"},"flash.edorg.member.already":{en:"You are already a member of this educational institution.",zh:"\u60a8\u5df2\u7ecf\u662f\u8be5\u6559\u80b2\u673a\u6784\u7684\u6210\u5458\u3002"},"flash.payment.amazon.incomplete":{en:"You did not complete your payment authorization with Amazon. Please try again.",zh:"\u60a8\u6ca1\u6709\u5b8c\u6210\u60a8\u7684Amazon\u652f\u4ed8\u6388\u6743\u3002\u8bf7\u518d\u8bd5\u4e00\u6b21\u3002"},
"flash.payment.amazon.failed":{en:'Amazon Payments authorization failed. <a href="/users/payChangeBroken">Learn more</a>.',zh:'Amazon\u652f\u4ed8\u6388\u6743\u5931\u8d25<a href="/users/payChangeBroken">Learn more</a>.'},"flash.payment.amazon.validation.failed":{en:"Amazon Payments authorization validation failed. Please contact LucidChart to resolve this issue.",zh:"Amazon\u652f\u4ed8\u6388\u6743\u9a8c\u8bc1\u5931\u8d25\u3002\u8bf7\u8054\u7cfbLucidChart\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002"},
"flash.payment.update.success":{en:"Your payment method has successfully been updated.",zh:"\u60a8\u7684\u4ed8\u6b3e\u65b9\u5f0f\u5df2\u6210\u529f\u66f4\u65b0\u3002"},"flash.payment.thanks":{en:"Thank you. Your payment has been successfully processed.",zh:"\u611f\u8c22\u60a8\u5bf9LucidChart\u7684\u652f\u6301\uff01"},"flash.payment.declined":{en:"Your payment was declined. Please re-authorize your payment.",zh:"\u60a8\u7684\u4ed8\u6b3e\u88ab\u62d2\u6536\u3002\u8bf7\u91cd\u65b0\u6388\u6743\u60a8\u7684\u4ed8\u6b3e\u3002"},
"flash.payment.error.unknown":{en:"There was an unknown error processing your payment. Please try again.",zh:"\u5728\u5904\u7406\u60a8\u7684\u4ed8\u6b3e\u8fc7\u7a0b\u4e2d\u6709\u4e00\u4e2a\u672a\u77e5\u7684\u9519\u8bef\u3002\u8bf7\u518d\u8bd5\u4e00\u6b21\u3002"},"users.education.upgrade.h1":{en:"Free Professional account for students",zh:"\u5bf9\u5b66\u751f\u514d\u8d39\u7684\u4e13\u4e1a\u8d26\u6237"},"users.education.email.to.send":{en:"An email will be sent to this address.  Click on the link in the email to confirm your address and get your Professional account.",
zh:"\u5c06\u4f1a\u4e00\u5c01\u7535\u5b50\u90ae\u4ef6\u53d1\u9001\u5230\u8fd9\u4e2a\u5730\u5740\u3002\u70b9\u51fb\u7535\u5b50\u90ae\u4ef6\u4e2d\u7684\u94fe\u63a5\uff0c\u4ee5\u786e\u8ba4\u60a8\u7684\u5730\u5740\uff0c\u5e76\u83b7\u5f97\u4f60\u7684\u4e13\u4e1a\u8d26\u6237\u3002"},"users.education.button.confirmemail":{en:"Send confirmation email",zh:"\u53d1\u9001\u786e\u8ba4\u7535\u5b50\u90ae\u4ef6"},"users.education.email.sent":{en:"A confirmation email has been sent to:",zh:"\u4e00\u5c01\u786e\u8ba4\u7535\u5b50\u90ae\u4ef6\u5df2\u53d1\u9001\u81f3\uff1a"},
"users.education.email.not.edu":{en:"Only students with an educational email address qualify for the free student upgrade.  Your email address does not appear to be from an educational institution.",zh:"\u53ea\u6709\u4f7f\u7528\u6559\u80b2\u673a\u6784\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u7684\u5b66\u751f\u624d\u6709\u8d44\u683c\u83b7\u5f97\u514d\u8d39\u7684\u5347\u7ea7\u3002\u60a8\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u4e0d\u662f\u4e00\u4e2a\u6559\u80b2\u673a\u6784\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002"},
"flash.user.confirmemail.inactive":{en:"That email confirmation link is no longer active.",zh:"\u8be5\u7535\u5b50\u90ae\u4ef6\u786e\u8ba4\u94fe\u63a5\u5df2\u4e0d\u518d\u6709\u6548\u3002"},"users.education.upgrade.success":{en:"Congratulations! You have upgraded to an Educational account for the email address",zh:"\u606d\u559c\uff01\u60a8\u5df2\u5347\u7ea7\u5230\u4e13\u4e1a\u5e10\u6237\u3002"},"education.confirmation.subject":{en:"LucidChart email confirmation",zh:"LucidChart\u7535\u5b50\u90ae\u4ef6\u786e\u8ba4"},
"users.education.upgrade.description":{en:'Because LucidChart is committed to education, we are happy to offer free Professional upgrades to students. If you are a professor or faculty member, please request a free Team account for you and your students through this other  <a href="/pages/education/university"> form. </a> <p>\nAll we ask is that you help us spread the word by providing the e-mail addresses of 3 people who might also be interested in using LucidChart.</p>',zh:"\u7531\u4e8eLucidChart\u81f4\u529b\u4e8e\u6559\u80b2\uff0c\u6211\ufffd\ufffd\ufffd\u5f88\u9ad8\u5174\u80fd\u4e3a\u5b66\u751f\u63d0\u4f9b\u514d\u8d39\u5347\u7ea7\u81f3\u4e13\u4e1a\u7528\u6237\u7684\u673a\u4f1a\u3002\u5982\u679c\u4f60\u662f\u4e00\u4e2a\u6559\u6388\u6216\u6559\u5458\uff0c\u8bf7\u901a\u8fc7\u586b\u5199\u6b64\u8868\u683c\u4e3a\u4f60\u7684\u5b66\u751f\u7533\u8bf7\u4e00\u4e2a\u514d\u8d39\u7684\u56e2\u961f\u5e10\u6237\u3002 <p>\u6211\u4eec\u8981\u6c42\u7684\u662f\uff0c\u5e0c\u671b\u4f60\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u63d0\u4f9b3\u4e2a\u6709\u53ef\u80fd\u4e5f\u6709\u5174\u8da3\u4f7f\u7528LucidChart\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002</ p>"},
"users.education.email.current.student":{en:"By requesting a free upgrade, you certify that you are a current student.",zh:"\u6211\u4eec\u8981\u6c42\u7684\u662f\uff0c\u4f60\u5e2e\u52a9\u6211\u4eec\u4f20\u64ad3\u4eba\u63d0\u4f9b\u7684\u7535\u5b50\u90ae\u4ef6\u8c01\u4e5f\u53ef\u80fd\u5728\u4f7f\u7528LucidChart\u3002</ p>\u6709\u5174\u8da3\u7684\u5730\u5740\u5b57"},"referral.1":{en:"Referral 1",zh:"\u63a8\u4ecb1"},"referral.2":{en:"Referral 2",zh:"\u63a8\u4ecb2"},"referral.3":{en:"Referral 3",zh:"\u63a8\u4ecb3"},
"users.education.provide.emails":{en:"Please provide 3 referral email addresses",zh:"\u8bf7\u63d0\u4f9b3\u4e2a\u63a8\u4ecb\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740"},"users.education.invalid.email":{en:"is not a valid email address.  Please provide 3 valid emails addresses.",zh:"\u4e0d\u662f\u6709\u6548\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002\u8bf7\u63d0\u4f9b3\u4e2a\u6709\u6548\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740"},"users.level.educational.h":{en:"Educational"},"users.level.educational.desc":{en:"For students"},
"users.level.td.edu.collab":{en:"Unlimited Collaborators"},"users.education.provide.unique.emails":{en:"Please provide 3 unique email addresses."},"users.education.referral.email.already.in.use":{en:"The following email address is already in use at LucidChart: "},"educational.upgrade.notice":{en:"Get a free <br> educational <br> upgrade"},"titlebar.working.offline.button":{en:"Working Offline"},"titlebar.working.offline.callout.title":{en:"You are currently working in offline mode"},"titlebar.working.offline.description":{en:"That's right!  You can continue to use LucidChart when you are not connected to the Internet.  Some features such as sharing and chat will be disabled while you are offline.  Once you connect back to the Internet, your changes will automatically be sent to the server.    \n<p>We recommend that you only have one window or tab open for the same document while in offline mode."},
"button.visio.upload":{en:"Upload Visio (VDX) File"},"button.vdx.import":{en:"Import VDX File"},"button.vdx.import.ro":{en:"Import (Read-Only) VDX File"},"vdx.upload.p":{en:'Be sure to save your Visio document in VDX format, or it will not import correctly. Visio import is still in BETA, so please <a href="/pages/contact">contact us</a> if you have any problems.'},"vdx.upload.ro.p":{en:"Visio import is available to all Professional and Team subscribers of LucidChart. You may import your Visio documents, but you will not be able to further edit any imported Visio documents unless you <a href='/users/level'>upgrade</a> your account."},
"vdx.upload.empty.alert":{en:"Please select a VDX file to upload."},"organization.hit.max":{en:"Your organization has reached its maximum number of users. Please contact your organization administrator about upgrading."},"login.failed":{en:"Login failed. Invalid username or password."},"invalid.oauth.request":{en:"The website you came from made an invalid request to access your LucidChart account"},"authorize.app.request.heading":{en:"is requesting access to your LucidChart account"},"authorize.app.request.message":{en:"Only allow access if you trust this application with your LucidChart information."},
"openid.invalid.claimid":{en:"Invalid authentication request.  Please try again later."},allow:{en:"Allow"},deny:{en:"Deny"},"oauth.verifier.message":{en:"Please return to your application and enter the following security code to grant access:"},"oauth.authorize.success":{en:"was authorized successfully."},"confirm.document.delete":{en:"Are you sure you want to delete this document?"},"confirm.template.delete":{en:"Are you sure you want to delete this template?"},"template.settings":{en:"Template Settings"},
"template.delete":{en:"Delete Template"},"button.community.shared":{en:"Shared in Community"},"docslist.created.offline":{en:"Document created offline"},"tips.masterpages.h":{en:"New Master Pages!"},"tips.masterpages.p1":{en:"Master pages make it easy to include common elements, such as a logo or navigation menu, across numerous pages. This feature reduces content duplication and allows you to seamlessly update elements across many pages."},"tips.masterpages.li1":{en:"To create a master page, select a page menu (down arrow) and click &ldquo;Convert to Master.&rdquo;"},
"tips.masterpages.li2":{en:"Drag an object onto the master page and click &ldquo;Apply to All Pages&rdquo; to see the object dynamically displayed across all pages. Remember that these objects can only be edited on the master page."},"tips.masterpages.li3":{en:"You can alternatively apply and remove master page objects from individual pages by selecting a page menu and clicking &ldquo;Apply Master&rdquo; and &ldquo;Remove Master.&rdquo;"},"tips.masterpages.p2":{en:"Good luck and enjoy the new master pages!"},
"subnav.templates.team":{en:"Team Templates"},"templates.list.empty":{en:"No templates found."},"templates.description":{en:"Use templates as a starting point for new ideas that incorporate items such as your company logo and other shapes directly into the design.  You can create your own templates by choosing &ldquo;Save as Template&rdquo; from the document editor."},"query.status.listDocs":{en:"Loading..."},"query.status.listSharedDocs":{en:"Loading..."},"query.status.fullDocData":{en:"Loading..."},
"query.status.listTemplates":{en:"Loading..."},"blobmeter.loaded":{en:"%d/%d documents and templates available offline"},"blobmeter.nostorage.p":{en:'LucidChart does not support offline functionality on your browser, please try <a href="http://www.google.com/chrome" target="_blank">Google Chrome</a> or <a href="http://www.apple.com/safari" target="_blank">Safari</a> to use LucidChart offline.'},"subnav.h.offline":{en:"Offline"},"docs.team.list.empty":{en:"No team documents found."},"search.list.empty":{en:"No results were found."},
"docs.deleted.list.empty":{en:"No deleted documents."},"canceled.subscription":{en:"This subscription has been cancelled.  Your account will be downgraded to a free account on %s."},"notice.failed.payment":{en:'Your current payment failed. Please update your billing information <a href="%s">here</a>.'},"subnav.billing.info":{en:"Update Billing Information"},"confirm.subscription.level.change":{en:"Please confirm that you would like to switch from %s to %s"},"label.address1":{en:"Address Line 1"},
"label.address2":{en:"Address Line 2"},"label.city":{en:"City"},"label.state":{en:"State"},"label.zip":{en:"Zip/Postal"},"label.country":{en:"Country"},"label.phone":{en:"Phone Number"},"label.creditcardnumber":{en:"Credit Card Number"},"label.cvv":{en:"CVV"},"label.expire.month":{en:"Expiration Month"},"label.expire.year":{en:"Expiration Year"},"billing.update.button":{en:"Update Billing Information"},"pay.annually.button":{en:"Pay Annually<br />(%s)"},"pay.montly.button":{en:"Pay Monthly<br />(%s)"},
"subnav.payments.billinginfo":{en:"Billing Information"},"existing.subscription.cost":{en:"Your existing subscription costs %s."},"new.subscription.cost":{en:"Your new subscription will cost %s or %s."},"will.apply.credit":{en:"A credit of %s will be applied to your new subscription (pulled forward from your previous payment)."},"trial.status.notification":{en:"You have %s days left on your free trial. Fill out this form when you are ready to pay for your subscription."},"card.will.be.charged":{en:"Your credit card will be charged immediately for your new subscription."},
"ie8.upgrade":{en:'<p>We noticed that you are using Internet Explorer 8 (or earlier). While LucidChart is functional with IE8, the application is <span style="font-weight:bold;font-style:italic;">much faster</span> with other options.</p>\n\n<p>If you prefer Internet Explorer, consider <a target="_blank" href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home">upgrading to IE9</a>, which was recently released.</p>\n\n<p>For optimal experience, try another free browser like <a target="_blank" href="http://google.com/chrome">Google Chrome</a> or <a target="_blank" href="http://www.firefox.com">Firefox</a>.</p>'},
"ie8.upgrade.xp":{en:'<p>We noticed that you are using Internet Explorer 8 (or earlier). While LucidChart is functional with IE8, the application is <span style="font-weight:bold;font-style:italic;">much faster</span> with other options.</p>\n\n<p>For optimal experience, try another free browser like <a target="_blank" href="http://google.com/chrome">Google Chrome</a> or <a target="_blank" href="http://www.firefox.com">Firefox</a>.</p>'},"users.level.pay":{en:'To pay for your subscription, click <a href="%s">here</a>.'},
"reactiveate.subscription":{en:'To reactivate your subscription, please click <a href="%s">here</a>.'},"confirm.subscription.level.reactivate":{en:"Please confirm that you would like to reactivate %s subscription."},january:{en:"01 - January"},february:{en:"02 - February"},march:{en:"03 - March"},april:{en:"04 - April"},may:{en:"05 - May"},june:{en:"06 - June"},july:{en:"07 - July"},august:{en:"08 - August"},september:{en:"09 - September"},october:{en:"10 - October"},november:{en:"11 - November"},
december:{en:"12 - December"},ok:{en:"OK"},cancel:{en:"Cancel"},"invalid.cvv":{en:"Invalid CVV"},"users.close.p1.recurly":{en:"You are paid up through %s. Canceling your paid subscription early will set your account as a free account with limited features after that date."},"subnav.account.external":{en:"External Applications"},"users.external.h":{en:"External Applications"},"users.external.list":{en:"Authorized Websites and Applications"},"users.external.p":{en:"Listed here are external partner applications or websites that you have granted access to your LucidChart documents. If you remove them here, they will no longer be able to access your LucidChart account."},
"oauth.login.title":{en:"Authorize"},"overlay.crop.instructions":{en:"Drag the crop points and press escape to cancel or enter to complete the cropping."},"team.confluence.description":{en:'<p> If your team uses <a href="http://www.atlassian.com/software/confluence/"> Confluence </a>, you can use the <a href ="/pages/tour/confluence">LucidChart Confluence Plugin </a> at no cost.</p>        \n<p> To enable the plugin, enter the key and secret below on the Confluence LucidChart plugin administration screen. Please see our <a href="/pages/tour/confluence_documentation">documentation</a> for additional information.\n</p>'},
"message.template.delete":{en:"<p>Are you sure you want to convert this template back into an ordinary document?</p><p>You will no longer be able to use the document as a starting point for new documents.</p>"},"query.status.listFolders":{en:"Loading..."},"notice.trial.expires.short":{en:'Your free trial expires in %d days. <a href="/users/pay">Click here</a> to pay online.'},"notice.free.account":{en:"You are currently on a free account."},"org.uploadusers.fielddescription":{en:"Username is optional.  If a username is not provided, the email address will be used as the username.  Password is also optional.  If a password is not provided, a temporary password will be sent to the email address."},
"org.uploadusers.bepatient":{en:"Note that it takes about 1 minute to process 300 users.  If you are uploading hundreds of users, please be patient."},"change.tmp.password":{en:"You have logged in with a temporary password.  Please choose a new password."},"org.uploadusers.samplefile":{en:'You can download an example csv file <a href="https://cdn-lucidchart-com.s3.amazonaws.com/user_upload.csv"> here </a>.'},"org.pendingusers.h":{en:"Pending Users"},"org.pendingusers.p1":{en:"This is a list of users that are currently using LucidChart with one of your third party access keys but are not on your LucidChart team. They can continue to access LucidChart but have a number of limitations on their account. As the administrator, you can invite any of these users to join your team and lift these restrictions."},
"return.to.team.view":{en:"Return to Team View"},"org.pendingusers.p2":{en:'Your current %s subscription allows you a total of %d users; you may add %d more users now. <a href="http://www.lucidchart.com/users/level">Upgrade now</a> if you need a larger subscription.'},"org.pendingusers.notification.p":{en:"As the team administrator, you can receive an email notification anytime a user not on your team uses your third party access key."},"org.pendingusers.notification.label":{en:"Receive email notifications"},
"invalid.offer.code":{en:"Unfortunetly, the offer code you are attempting to use is not valid."},"subnav.account.backuprestore":{en:"Backup/Restore Documents"},"users.backuprestore.h":{en:"Backup/Restore Documents"},"users.backup.h":{en:"Backup"},"users.backup.p":{en:"Click the button below to save a backup of all your LucidChart documents.  You can use the backup to restore your documents at any time."},"users.backup.save":{en:"Save Backup"},"users.restore.h":{en:"Restore"},"users.restore.p":{en:'To restore your documents, select your backup file and click the restore documents button.  Your documents will appear in your document list under a new folder with the name "restore-&#060;date&#062;".  If you have a large backup file, the restore may take several minutes.'},
"users.restore.import.button":{en:"Restore from backup"},"backup.failed":{en:"Backup failed.  Please try again later."},"import.failed":{en:"Failed to import."},"import.success":{en:"Successfully restored from backup"},"users.backuprestore.upgrade":{en:"You must have a paid account to backup and restore your LucidChart documents.  You can <a href='/users/level'> upgrade to a paid account</a> to enable local backups and restores."},"import.failed.contact.support":{en:"Could not complete import. If this error persists, please contact LucidChart support."},
"restore.invalid.file":{en:"Invalid file.  Choose a LucidChart backup file or contact support if you believe you are using a valid LucidChart backup file."},"import.failed.files.list":{en:"The following documents in your backup failed to import.  If this problem persists please contact support."},"button.register.clicked":{en:"Registering..."},"vdx.upload.drag":{en:"To upload VDX files, drag them from your desktop directly to your document list or select a file here."},"vdx.upload.select":{en:"Select a VDX file to upload."},
"vdx.import.drag":{en:'Your Visio files are now being imported. After a file is imported, it will appear in "My Documents". The conversion process may take a few minutes.'},"folderentryusers.error.not_owner":{en:"You must be the owner to share a folder."},"folderentryusers.error.sub_not_owner":{en:"You are not the owner on every document in the folder."},"folderentries.error.parent_deleted":{en:"Cannot operate in a deleted folder."},"folderentries.error.not_owner":{en:"You must be an owner of the folder to make changes."},
"folderentries.create.error.owner_or_no_share":{en:"Moving that document there would effectively share it, but you are not an owner on the document."},"folderentries.error.sub_not_owner":{en:"You are not the owner of every document in the folder."},"folderentries.move.error.lost_access":{en:"Moving that file or document would make you lose access to it."},"team.jira.description":{en:'<p> If your team uses <a href="http://www.atlassian.com/software/jira/"> JIRA </a>, you can use the <a href ="/pages/tour/jira">LucidChart JIRA Plugin </a> at no cost.</p>        \n<p> To enable the plugin, enter the key and secret below on the JIRA LucidChart plugin administration screen. Please see our <a href="/pages/tour/jira_documentation">documentation</a> for additional information.\n</p>'},
"org.gapps.pendingusers.p1":{en:"This is a list of users that are currently using LucidChart with an email address that is the same domain as your Google Apps account.  They can continue to access LucidChart but have a number of limitations on their account. As the administrator, you can invite any of these users to join your team and lift these restrictions."},"org.gapps.pendingusers.notification.p":{en:"As the team administrator, you can receive an email notification anytime a user comes to LucidChart from your Google Apps domain but is not able to be joined to your team because the user limit has been reached."},
"org.gapps.pendingusers.h":{en:"Pending Google Apps Users"},"referral.claim.notice":{en:"Confirm your <br /> account to claim <br /> your FREE credit"}};var im={Tu:["BC","AD"],Su:["Before Christ","Anno Domini"],Xu:"J,F,M,A,M,J,J,A,S,O,N,D".split(","),cv:"J,F,M,A,M,J,J,A,S,O,N,D".split(","),Wu:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),bv:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),Zu:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),ev:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),hv:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),
gv:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),av:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),fv:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),cy:"S,M,T,W,T,F,S".split(","),dv:"S,M,T,W,T,F,S".split(","),$u:["Q1","Q2","Q3","Q4"],Yu:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Ru:["AM","PM"],nr:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],pr:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Uu:6,gy:[5,6],Vu:2};var jm=/^(\d{4})(?:(?:-?(\d{2})(?:-?(\d{2}))?)|(?:-?(\d{3}))|(?:-?W(\d{2})(?:-?([1-7]))?))?$/,km=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,lm=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/;
function mm(a){var b=new nm(2E3),a=hd(a),a=a.split(a.indexOf("T")==-1?" ":"T"),c;var d=a[0].match(jm);if(d){var e=Number(d[2]),f=Number(d[3]),g=Number(d[4]);c=Number(d[5]);var i=Number(d[6])||1;b.setFullYear(Number(d[1]));g?(b.setDate(1),b.setMonth(0),b.add(new om(pm,g-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new om(pm,(d<=4?1-d:8-d)+(Number(i)+7*(Number(c)-1))-1))):(e&&(b.setDate(1),b.setMonth(e-1)),f&&b.setDate(f));c=!0}else c=!1;if(c&&!(c=a.length<2))a=a[1],c=a.match(lm),i=0,c&&
(c[0]!="Z"&&(i=c[2]*60+Number(c[3]),i*=c[1]=="-"?1:-1),i-=b.getTimezoneOffset(),a=a.substr(0,a.length-c[0].length)),(c=a.match(km))?(b.setHours(Number(c[1])),b.setMinutes(Number(c[2])||0),b.setSeconds(Number(c[3])||0),b.setMilliseconds(c[4]?c[4]*1E3:0),i!=0&&b.setTime(b.getTime()+i*6E4),c=!0):c=!1;return c?b:l}
function om(a,b,c,d,e,f){na(a)?(this.Ye=a==qm?b:0,this.Ke=a==rm?b:0,this.Ce=a==pm?b:0,this.ie=a==sm?b:0,this.le=a==tm?b:0,this.re=a==um?b:0):(this.Ye=a||0,this.Ke=b||0,this.Ce=c||0,this.ie=d||0,this.le=e||0,this.re=f||0)}
om.prototype.xl=function(a){var b=Math.min(this.Ye,this.Ke,this.Ce,this.ie,this.le,this.re),c=Math.max(this.Ye,this.Ke,this.Ce,this.ie,this.le,this.re);if(b<0&&c>0)return l;if(!a&&b==0&&c==0)return"PT0S";c=[];b<0&&c.push("-");c.push("P");(this.Ye||a)&&c.push(Math.abs(this.Ye)+"Y");(this.Ke||a)&&c.push(Math.abs(this.Ke)+"M");(this.Ce||a)&&c.push(Math.abs(this.Ce)+"D");if(this.ie||this.le||this.re||a)c.push("T"),(this.ie||a)&&c.push(Math.abs(this.ie)+"H"),(this.le||a)&&c.push(Math.abs(this.le)+"M"),
(this.re||a)&&c.push(Math.abs(this.re)+"S");return c.join("")};om.prototype.ef=function(a){return a.Ye==this.Ye&&a.Ke==this.Ke&&a.Ce==this.Ce&&a.ie==this.ie&&a.le==this.le&&a.re==this.re};om.prototype.clone=function(){return new om(this.Ye,this.Ke,this.Ce,this.ie,this.le,this.re)};var qm="y",rm="m",pm="d",sm="h",tm="n",um="s";om.prototype.add=function(a){this.Ye+=a.Ye;this.Ke+=a.Ke;this.Ce+=a.Ce;this.ie+=a.ie;this.le+=a.le;this.re+=a.re};
function vm(a,b,c){oa(a)?(this.Ka=new Date(a,b||0,c||1),wm(this,c||1)):qa(a)?(this.Ka=new Date(a.getFullYear(),a.getMonth(),a.getDate()),wm(this,a.getDate())):(this.Ka=new Date,this.Ka.setHours(0),this.Ka.setMinutes(0),this.Ka.setSeconds(0),this.Ka.setMilliseconds(0))}q=vm.prototype;q.om=function(){return im.Uu};q.qm=function(){return im.Vu};q.clone=function(){var a=new vm(this.Ka);a.om=this.om;a.qm=this.qm;return a};q.getFullYear=function(){return this.Ka.getFullYear()};q.getYear=function(){return this.getFullYear()};
q.getMonth=function(){return this.Ka.getMonth()};q.getDate=function(){return this.Ka.getDate()};q.getTime=function(){return this.Ka.getTime()};q.getDay=function(){return this.Ka.getDay()};q.getUTCFullYear=function(){return this.Ka.getUTCFullYear()};q.getUTCMonth=function(){return this.Ka.getUTCMonth()};q.getUTCDate=function(){return this.Ka.getUTCDate()};q.getUTCHours=function(){return this.Ka.getUTCHours()};q.getUTCMinutes=function(){return this.Ka.getUTCMinutes()};q.getTimezoneOffset=function(){return this.Ka.getTimezoneOffset()};
function xm(a){a=a.getTimezoneOffset();if(a==0)a="Z";else var b=Math.abs(a)/60,c=Math.floor(b),b=(b-c)*60,a=(a>0?"-":"+")+Dd(c,2)+":"+Dd(b,2);return a}q.set=function(a){this.Ka=new Date(a.getFullYear(),a.getMonth(),a.getDate())};q.setFullYear=function(a){this.Ka.setFullYear(a)};q.setMonth=function(a){this.Ka.setMonth(a)};q.setDate=function(a){this.Ka.setDate(a)};q.setTime=function(a){this.Ka.setTime(a)};function ym(a,b){a.om=function(){return b}}function zm(a,b){a.qm=function(){return b}}
q.add=function(a){if(a.Ye||a.Ke){var b=this.getMonth()+a.Ke+a.Ye*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var d;a:{switch(b){case 1:d=c%4==0&&(c%100!=0||c%400==0)?29:28;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.Ce&&(a=new Date((new Date(this.getYear(),this.getMonth(),this.getDate(),12)).getTime()+a.Ce*864E5),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),
this.setDate(a.getDate()),wm(this,a.getDate()))};q.xl=function(a,b){return[this.getFullYear(),Dd(this.getMonth()+1,2),Dd(this.getDate(),2)].join(a?"-":"")+(b?xm(this):"")};q.ef=function(a){return this.getYear()==a.getYear()&&this.getMonth()==a.getMonth()&&this.getDate()==a.getDate()};q.toString=function(){return this.xl()};function wm(a,b){a.getDate()!=b&&a.Ka.setUTCHours(a.Ka.getUTCHours()+(a.getDate()<b?1:-1))}q.valueOf=function(){return this.Ka.valueOf()};
function nm(a,b,c,d,e,f,g){this.Ka=oa(a)?new Date(a,b||0,c||1,d||0,e||0,f||0,g||0):new Date(a?a.getTime():za())}Ca(nm,vm);q=nm.prototype;q.getHours=function(){return this.Ka.getHours()};q.getMinutes=function(){return this.Ka.getMinutes()};q.getSeconds=function(){return this.Ka.getSeconds()};q.getMilliseconds=function(){return this.Ka.getMilliseconds()};q.getUTCHours=function(){return this.Ka.getUTCHours()};q.getUTCMinutes=function(){return this.Ka.getUTCMinutes()};q.getUTCSeconds=function(){return this.Ka.getUTCSeconds()};
q.setHours=function(a){this.Ka.setHours(a)};q.setMinutes=function(a){this.Ka.setMinutes(a)};q.setSeconds=function(a){this.Ka.setSeconds(a)};q.setMilliseconds=function(a){this.Ka.setMilliseconds(a)};q.setUTCHours=function(a){this.Ka.setUTCHours(a)};q.add=function(a){vm.prototype.add.call(this,a);a.ie&&this.setHours(this.Ka.getHours()+a.ie);a.le&&this.setMinutes(this.Ka.getMinutes()+a.le);a.re&&this.setSeconds(this.Ka.getSeconds()+a.re)};
q.xl=function(a,b){var c=vm.prototype.xl.call(this,a);return a?c+" "+Dd(this.getHours(),2)+":"+Dd(this.getMinutes(),2)+":"+Dd(this.getSeconds(),2)+(b?xm(this):""):c+"T"+Dd(this.getHours(),2)+Dd(this.getMinutes(),2)+Dd(this.getSeconds(),2)+(b?xm(this):"")};q.ef=function(a){return this.getTime()==a.getTime()};q.toString=function(){return this.xl()};q.clone=function(){var a=new nm(this.Ka);ym(a,this.om());zm(a,this.qm());return a};function Am(){}function Bm(a){if(typeof a=="number"){var b=new Am;b.pu=a;var c;c=a;if(c==0)c="Etc/GMT";else{var d=["Etc/GMT",c<0?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;c!=0&&d.push(":",Dd(c,2));c=d.join("")}b.zu=c;a==0?a="UTC":(c=["UTC",a<0?"+":"-"],a=Math.abs(a),c.push(Math.floor(a/60)%100),a%=60,a!=0&&c.push(":",a),a=c.join(""));b.fr=[a,a];b.Rn=[];return b}b=new Am;b.zu=a.id;b.pu=-a.std_offset;b.fr=a.names;b.Rn=a.transitions;return b}
function Cm(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.Rn.length&&c>=a.Rn[d];)d+=2;return d==0?0:a.Rn[d-1]}Am.prototype.rb=function(a){return this.pu-Cm(this,a)};function Dm(a){this.nn=[];typeof a=="number"?Em(this,a):Fm(this,a)}var Gm=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvzZ]+/];function Fm(a,b){for(;b;)for(var c=0;c<Gm.length;++c){var d=b.match(Gm[c]);if(d){d=d[0];b=b.substring(d.length);c==0&&(d=="''"?d="'":(d=d.substring(1,d.length-1),d=d.replace(/\'\'/,"'")));a.nn.push({text:d,type:c});break}}}
Dm.prototype.Qi=function(a,b){var c=b?(a.getTimezoneOffset()-b.rb(a))*6E4:0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(c+=c>0?-864E5:864E5,e=new Date(a.getTime()+c));for(var c=[],f=0;f<this.nn.length;++f){var g=this.nn[f].text;1==this.nn[f].type?c.push(Hm(g,a,d,e,b)):c.push(g)}return c.join("")};function Em(a,b){var c;if(b<4)c=im.nr[b];else if(b<8)c=im.pr[b-4];else if(b<12)c=im.nr[b-8]+" "+im.pr[b-8];else{Em(a,10);return}Fm(a,c)}
function Im(a,b){var c=b.getMonth();switch(a){case 5:return im.Xu[c];case 4:return im.Wu[c];case 3:return im.Zu[c];default:return Dd(c+1,a)}}function Jm(a,b){var c=b.getDay();switch(a){case 5:return im.dv[c];case 4:return im.gv[c];case 3:return im.fv[c];default:return Dd(c,1)}}function Km(a,b){var c=b.getMonth();switch(a){case 5:return im.cv[c];case 4:return im.bv[c];case 3:return im.ev[c];default:return Dd(c+1,a)}}
function Hm(a,b,c,d,e){var f=a.length;switch(a.charAt(0)){case "G":return b=c.getFullYear()>0?1:0,f>=4?im.Su[b]:im.Tu[b];case "y":return b=c.getFullYear(),b<0&&(b=-b),f==2?Dd(b%100,2):String(b);case "M":return Im(f,c);case "k":return Dd(d.getHours()||24,f);case "S":return(d.getTime()%1E3/1E3).toFixed(Math.min(3,f)).substr(2)+(f>3?Dd(0,f-3):"");case "E":return b=c.getDay(),f>=4?im.hv[b]:im.av[b];case "a":return f=d.getHours(),im.Ru[f>=12&&f<24?1:0];case "h":return Dd(d.getHours()%12||12,f);case "K":return Dd(d.getHours()%
12,f);case "H":return Dd(d.getHours(),f);case "c":return Jm(f,c);case "L":return Km(f,c);case "Q":return b=Math.floor(c.getMonth()/3),f<4?im.$u[b]:im.Yu[b];case "d":return Dd(c.getDate(),f);case "m":return Dd(d.getMinutes(),f);case "s":return Dd(d.getSeconds(),f);case "v":return f=e||Bm(b.getTimezoneOffset()),f.zu;case "z":return a=e||Bm(b.getTimezoneOffset()),f<4?a.fr[Cm(a,b)>0?2:0]:a.fr[Cm(a,b)>0?3:1];case "Z":return a=e||Bm(b.getTimezoneOffset()),f<4?(f=-a.rb(b),b=[f<0?"-":"+"],f=Math.abs(f),b.push(Dd(Math.floor(f/
60)%100,2),Dd(f%60,2))):(f=a.rb(b),b=["GMT"],b.push(f<=0?"+":"-"),f=Math.abs(f),b.push(Dd(Math.floor(f/60)%100,2),":",Dd(f%60,2))),f=b.join("");default:return""}};function V(a,b){V.nf[a]==l&&(V.nf[a]=[]);b=qa(b)||la(b)?nd(b):String(b);V.nf[a].push({Dh:new Date,message:b});V.nf[a].length>1E3&&V.nf[a].splice(0,500)}V.nf={};V.show=function(a){if(V.nf[a]!=l){var b=new Dm("h:mm:ss.SSS"),c=["<table>"];A(V.nf[a],function(a){c.splice(1,0,'<tr><td style="width:100px;">');c.splice(2,0,b.Qi(a.Dh));c.splice(3,0,"</td><td>");c.splice(4,0,a.message);c.splice(5,0,"</td></tr>")});c.push("</table>");L(c.join(""))}};t("lucid.log",V);function S(a,b){if(gm[a]){var c=a,c=S.language!="en"?gm[a][S.language]||gm[a].en||a:gm[a].en||a;return b&&b.length>0?(b.unshift(c),jd.apply(l,b)):c}else return V("i18n",'No entry in i18n for key "'+a+'"'),a}S.language="en";t("lucid.i18n",S);t("i18n",function(a,b){if(hm[a]){var c=a,c=S.language!="en"?hm[a][S.language]||hm[a].en||a:hm[a].en||a;return b&&b.length>0?(b.unshift(c),jd.apply(l,b)):c}else return V("i18n",'No entry in cake i18n for key "'+a+'"'),a});function Lm(a,b){b==l&&(b=new G(300,200));if(!Lm.dialog)Lm.dialog=$('<div title="LucidChart" id="lucid_dialog"></div>').appendTo("body"),Lm.dialog.dialog({resizable:!1,modal:!0,width:"auto",minWidth:b.x,minHeight:b.y,autoOpen:!1,open:function(){var a=this;$(".ui-widget-overlay").bind("click.dialog",function(){$(a).dialog("close")})},beforeclose:function(){$(".ui-widget-overlay").unbind("click.dialog")}});Lm.dialog.dialog("option",{minWidth:b.x,minHeight:b.y,title:"LucidChart"});var c=$(a);c.length==
0?$("#lucid_dialog").empty().html("<p>"+a+"</p>"):$("#lucid_dialog").empty().append(c);Lm.dialog.dialog("open")}Lm.dialog=l;
function Mm(a,b,c){c==l&&(c=new G(300,200));if(!Mm.dialog){Mm.dialog=$('<div title="LucidChart" style="font-size:12px;" id="lucid_alert"></div>').appendTo("body");var d={};d[S("button.OK")]=function(){$(this).dialog("close")};Mm.dialog.dialog({resizable:!1,modal:!0,autoOpen:!1,buttons:d,open:function(){var a=this;$(".ui-widget-overlay").bind("click.alert",function(){$(a).dialog("close")})},beforeclose:function(){$(".ui-widget-overlay").unbind("click.alert")}})}Mm.dialog.dialog("option",{close:function(){b&&
b()},width:c.x,minHeight:c.y,title:"LucidChart"});c=$("<div>"+a+"</div>");c.children().length==0?$("#lucid_alert").empty().html("<p>"+a+"</p>"):$("#lucid_alert").empty().append(c.children());c.remove();Mm.dialog.dialog("open")}Mm.dialog=l;
function Nm(a,b,c,d){d==l&&(d=new G(300,200));if(!Nm.dialog)Nm.dialog=$('<div title="LucidChart" style="font-size:12px;" id="lucid_confirm"></div>').appendTo("body"),Nm.dialog.dialog({resizable:!1,modal:!0,autoOpen:!1,open:function(){var a=this;$(".ui-widget-overlay").bind("click.confirm",function(){$(a).dialog("close")})},beforeclose:function(){$(".ui-widget-overlay").unbind("click.confirm")}});var e=!1;Nm.wd=function(){b()!="cancel"&&(e=!0,Nm.dialog.dialog("close"))};Nm.ok=Nm.wd;var f={};f[S("button.OK")]=
Nm.wd;f[S("button.cancel")]=function(){$(this).dialog("close")};Nm.dialog.dialog("option",{buttons:f,close:function(){c&&!e&&c()},width:d.x,minHeight:d.y,title:"LucidChart"});d=$("<div>"+a+"</div>");d.children().length==0?$("#lucid_confirm").empty().html("<p>"+a+"</p>"):$("#lucid_confirm").empty().append(d.children());d.remove();Nm.dialog.dialog("open")}Nm.dialog=l;
function Om(a,b,c,d,e){var f=!1,g=e&&e.height?parseInt(e.height,10):60;if(!Om.dialog)Om.dialog=$('<div title="LucidChart" style="font-size:12px;" id="lucid_prompt"></div>').appendTo("body"),Om.dialog.dialog({resizable:!1,modal:!0,width:"auto",minWidth:300,minHeight:a==l?80+g:140+g,autoOpen:!1});var i={};i[S("button.OK")]=function(){var a=$(this).find(":text,textarea").val();c(a)!="cancel"&&(f=!0,$(this).dialog("close"))};i[S("button.cancel")]=function(){$(this).dialog("close")};Om.dialog.dialog("option",
{open:function(){var a=this;$(".ui-widget-overlay").bind("click.prompt",function(){$(a).dialog("close")});$(this).find(":text,textarea").keypress(function(a){a.keyCode==13&&!a.shiftKey&&!e&&(f=!0,a=$(this).val(),c(a),Om.dialog.dialog("close"))}).val(b).select()},beforeclose:function(){$(".ui-widget-overlay").unbind("click.prompt")},buttons:i,close:function(){d&&!f&&d();document.activeElement&&$(document.activeElement).blur()},title:"LucidChart"});e?(g=$('<div><textarea style="width:270px;height:'+
g+'px;"></textarea></div>'),e!=!0&&g.children().css(e)):g=$('<div><input type="text" style="width:270px;" /></div>');i=$("<div>"+a+"</div>");i.children().length==0?a==l?$("#lucid_prompt").empty().html(""+g.html()):$("#lucid_prompt").empty().html("<p>"+a+"</p><hr /><p>"+g.html()+"</p>"):$("#lucid_prompt").empty().append(i.children()).append("<hr /><p>"+g.html()+"</p>");i.remove();Om.dialog.dialog("open")}Om.dialog=l;
function Pm(a,b,c,d){function e(a){f.dialog("option",{open:function(){var a=this;$(".ui-widget-overlay").click(function(){$(a).dialog("close")});d&&d()},beforeclose:function(){$(".ui-widget-overlay").unbind()},buttons:{},close:function(){$(document).unbind("ajaxFormSuccess");Pm.Yd=l},title:"LucidChart"});var a=$("<div>"+a+"</div>"),b=a.find("form:last").get(0);$(b).hasClass("inline")&&$(b).find("label").addClass("inline");a='<div id="ajaxForm-content" class="ajaxForm-content">'+$(b).html()+"</div>";
$("body").append("<div id='jqFormSizeChecker' style='width:800px;position:absolute;left:-100000px;'><div id='jqFormSizeCheckerFloat' style='float:left;'>"+a+"</div></div>");$("#jqFormSizeCheckerFloat").find("p").css("maxWidth","400px");var j=$("#jqFormSizeCheckerFloat").width();$("#jqFormSizeChecker").remove();f.html(a);f.dialog("option",{width:j+50});f.dialog("open");f.find("a :not(.samepage)").attr("target","_blank");f.find("input:visible:first").focus();f.find("input[name=cancel]").attr("onclick",
"").click(function(){f.dialog("close")});f.find("input[type=submit]").click(function(){Pm.Yd=l;var a=!0;$.ajax({type:b.method,url:b.action,data:Ld(f),success:function(b){$("<div>"+b+"</div>").find(".error-message,.form-error").size()>0?(Pm(b,!0,c),a=!1):c&&c(b)},error:o(),complete:function(){a&&f.dialog("close")}})});f.find("a.ajax_form_button").click(function(a){Pm.Yd=l;a.preventDefault();var b=!1;$.ajax({type:"GET",url:$(this).attr("href"),data:"NoSSLChange=true",success:function(a){try{if($("<div>"+
a+"</div>").find("form").size()>0){f.dialog("close");e(a);b=!0;return}}catch(d){}c&&c()},error:o(),complete:function(){b||f.dialog("close")}})});f.find(".offline_form_button").click(function(){var a=Md();c&&c(a);f.dialog("close")})}if(!(Pm.Yd&&Pm.Yd==a)){Pm.Yd=a;if(!Pm.dialog)Pm.dialog=$('<div title="LucidChart" style="padding: 12px;"></div>').appendTo("body"),Pm.dialog.dialog({resizable:!1,modal:!0,width:700,autoOpen:!1});var f=Pm.dialog;b?e(a):$.ajax({type:"GET",url:a,success:function(a){e(a)}})}}
Pm.dialog=l;Pm.Yd=l;function Qm(){if(!Qm.dialog)Qm.dialog=$('<div title="LucidChart" id="lucid_customDialog"></div>').appendTo("body"),Qm.dialog.dialog({resizable:!1,modal:!0,width:"auto",minWidth:300,minHeight:200,autoOpen:!1,open:function(){var a=this;$(".ui-widget-overlay").bind("click.customDialog",function(){$(a).dialog("close")})},beforeclose:function(){$(".ui-widget-overlay").unbind("click.customDialog")}});return Qm.dialog.empty()}Qm.dialog=l;t("lucid.dialog",Lm);t("lucid.alert",Mm);
t("lucid.prompt",Om);t("lucid.confirm",Nm);t("lucid.ajaxForm",Pm);t("lucid.customDialog",Qm);function Rm(a){this.K=a}
Rm.prototype.show=function(a,b,c){var d=this;if(b.length==1)c(b[0]);else{for(var e=[],f=0;f<b.length;f++)e.push("<div class='canvasholder' className='"+b[f]+"' id='popup_"+f+"'></div>");var g=$('<div class="drop-down gui-box-shadow">'+e.join("")+"</div>").appendTo(this.K.J);g.css({width:"108px",height:27*Math.ceil(b.length/4)+"px"});e=a.pageX-(g.outerWidth()+a.pageX>$(window).width()?g.outerWidth():0);a=a.pageY-(g.outerHeight()+a.pageY>$(window).height()?g.outerHeight():0);g.css({left:e+"px",top:a+
"px"});setTimeout(function(){$(document).one(Rd?"click":"mouseup",function(){g.is(":visible")&&($(document).unbind("keydown.PlaceNextBlock"),g.remove())})},100);g.show();g.find(".canvasholder").each(function(a){$(this).css({width:"25px",height:"25px","float":"left",border:"1px solid white"});Yd||$(this).hover(function(){$(this).css({border:""}).addClass("ui-state-default")},function(){$(this).removeClass("ui-state-default").css({border:"1px solid white"})});a%4==0&&$(this).css({clear:"left"});var e=
Sm(d.K.pg,b[a]);if(e){var f=gj[e.className],n=e.bd||f.bd;$(this).attr("title",e.Pa||f.title);f=document.createElement("canvas");$(f).attr("width",25);$(f).attr("height",25);f=fb(f);$(this).append(f);var m=jj(e.className,"",d.K.$.document),p=Math.min(23/n.w,23/n.h),s=n.w*p,n=n.h*p;m.q.set("BoundingBox",{x:1+(23-s)/2,y:1+(23-n)/2,w:s,h:n});if(e.xf){var e=e.xf(),u;for(u in e)m.q.set(u,e[u])}wi(new Th(l,m),f);$(this).mouseup(function(){$(document).unbind("keydown.PlaceNextBlock");V("ie","placeNextBlock called");
g&&(Xd?(g.hide(),setTimeout(function(){g.remove()},5E3)):g.remove());c(b[a])})}else L("Please load this shape library to your toolbox."),g.remove()})}};function Tm(a){this.viewport=a;var b=this;this.J=$('<div class="groupNav-container"></div>').appendTo(this.viewport.K.tg);this.J.hide();this.Jl=!0;J("default.activeGroup.value",function(a){b.show(a)})}
Tm.prototype.Uf=function(a){var b=this;this.J.empty();if(a){this.J.append('<span class="active">'+S("Editing")+" "+(a.q.get("Name")||S("Group"))+"</span>");for(a=a.parent;a;)this.J.prepend($("<span>"+(a.q.get("Name")||S("Group"))+" &gt;&gt;</span>").clone().click(function(a){return function(){b.viewport.Aj(a)}}(a))),a=a.parent;$("<span>"+S("Page")+" &gt;&gt;</span>").click(function(){Qk(b.viewport.mode,!0)}).prependTo(this.J);this.J.children().addClass("ui-corner-all left")}else this.J.hide()};
Tm.prototype.show=function(a){this.Jl||this.hide();this.Jl=!1;this.Uf(a);this.J.show();this.viewport.K.we.css("top",this.viewport.K.we.position().top+this.J.outerHeight()+"px");this.viewport.K.yf.css("top",this.viewport.K.yf.position().top+this.J.outerHeight()+"px");this.viewport.K.Li.css("top",this.viewport.K.Li.position().top+this.J.outerHeight()+"px");this.viewport.K.yf.css("top",this.viewport.K.yf.position().top+this.J.outerHeight()+"px");this.viewport.K.sc&&this.viewport.K.sc.J.is(":visible")&&
this.viewport.K.sc.J.css({top:this.viewport.K.sc.J.position().top+this.J.height()})};
Tm.prototype.hide=function(){if(!this.Jl)this.Jl=!0,this.viewport.K.sc&&this.viewport.K.sc.J.is(":visible")&&this.viewport.K.sc.J.css({top:this.viewport.K.sc.J.position().top-this.J.height()}),this.Uf(l),this.viewport.K.sc.J&&this.viewport.K.we.css("top",this.viewport.K.we.position().top-this.J.outerHeight()+"px"),this.viewport.K.yf.css("top",this.viewport.K.yf.position().top-this.J.outerHeight()+"px"),this.viewport.K.Li.css("top",this.viewport.K.Li.position().top-this.J.outerHeight()+"px"),this.viewport.K.yf.css("top",
this.viewport.K.yf.position().top-this.J.outerHeight()+"px"),this.J.hide()};function Um(a){this.K=a;this.viewport=a.viewport;this.name=""}q=Um.prototype;q.Ze=o();q.Fg=o();q.Fc=o();q.fd=o();q.ud=o();q.gd=o();q.touchStart=o();q.touchMove=o();q.touchEnd=o();q.qk=o();q.pk=o();q.zn=o();q.np=o();q.ju=fa(!1);q.iu=fa(!1);q.ku=fa(!1);q.yr=o();q.xr=o();q.Hc=fa(l);q.hr=o();function Vm(a){Um.call(this,a);this.name="drawing";this.K=a;var b=this;this.document=this.K.$.document;this.wf="default";this.scale=1;this.Ym=20;this.Eg=480;this.hp=this.zl=this.Te=!1;this.Hh=new Je(0,0,1,1,0);this.Hh.J.css({"background-color":"rgba(238,232,170,.25)"});this.context=this.Hh.getContext();this.canvas=this.context.canvas;this.Ho=fb(document.createElement("canvas"));this.Yr=this.Ho.getContext("2d");this.Aw=this.xu=12;this.nd=new Wm(this,this.context);this.Cq={square:{minStrokes:1,fp:[{rotate:"none",
data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.7481,0.0695,0.665,0.7481,0.0752,0.7106,0.7994,0.0809,0.7106,0.7994,0.0752,0.665],[0,0.9512,0,0,0.9759,0,0,1,0,0,0.9761,0]]},{rotate:"all",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,
0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.3266,0,0,0,0,0.2864,0.5437,0.0242,0,0,0.0123,0.4346],[0.4181,0.1847,0.8002,0.9002,0.2135,0.3652,0.0779,0.5659,0.855,0.9619,0.5606,0.108],[0,1,0,0,0.9308,0,0,0.3884,0,0,0.4138,0]]},{rotate:"90",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.4917,0.0113,0,0,0,0.2768,0.5255,0.0234,0,0,0,0.2397],[0.1174,0.5345,0.7733,0.87,0.2064,0.3529,0.0753,0.5469,0.8263,0.9296,0.1834,0.397],[0,0.3933,0,0,0.8996,0,0,0.3754,0,0,1,0]]},{rotate:"90",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,
0,0,0,0,0],[0.3266,0,0,0,0.0233,0.4599,0.3658,0,0,0,0.0123,0.4346],[0.4181,0.1847,0.8002,0.9002,0.5606,0.0749,0.3729,0.2181,0.855,0.9619,0.5606,0.108],[0,1,0,0,0.3823,0,0,0.9648,0,0,0.4138,0]]},{rotate:"all",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0060,0.0103,0,0],[0,0,0,0,0,0,0,0.0249,0.4323,0.5022,0.0273,
0],[0.7683,0.0707,0.6782,0.763,0.0766,0.7297,0.8209,0.3798,0.0113,0.0097,0.3779,0.6829],[0,0.9743,0,0,1,0,0,0.7283,0,0,0.6948,0]]}],action:function(a,d){var e="ProcessBlock";a.w>=b.Eg&&a.h>=b.Eg&&(e="RectangleContainerBlock");return new N("CreateBlock",{Class:e,Properties:d,Page:b.viewport.V[0].C.id})}},circle:{minStrokes:1,fp:[{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,
0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.0458,0.075,0.0481,0.0578,0.1075,0.0825,0.0948,0.1432,0.0971,0.0848,0.1078,0.0555],[1,0.8789,0.8587,0.9834,0.8451,0.7847,0.9126,0.8019,0.7584,0.9357,0.8464,0.8409],[0,0,0,0,0,0,0,0,0,0,0,0]]}],action:function(a,d){var e=a.w/a.h;if(e>1.5)e="TerminatorBlock",a.w>=b.Eg&&a.h>=b.Eg&&(e="PillContainerBlock");else{if(Math.abs(e-1)<0.25)a.w>a.h?(a.x+=0.5*(a.w-a.h),a.w=a.h):(a.y+=0.5*(a.h-a.w),a.h=a.w),d.BoundingBox=a;e="ConnectorBlock";
a.w>=b.Eg&&a.h>=b.Eg&&(e="CircleContainerBlock")}return new N("CreateBlock",{Class:e,Properties:d,Page:b.viewport.V[0].C.id})}},diamond:{minStrokes:1,fp:[{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.3505,0.9795,0.3505,0.3903,0.9934,0.3903,0.4223,0.9934,0.4223,0.3903,0.9934,0.3903],[1,0.0415,0.9237,0.9624,0,0.8806,
0.9491,0,0.8507,0.9801,0,0.8828],[0.3505,0,0.1233,0.3134,0,0.0956,0.2664,0,0.0719,0.283,0,0.0873],[0,0,0,0,0,0,0,0,0,0,0,0]]}],action:function(a,d){var e="DecisionBlock";a.w>=b.Eg&&a.h>=b.Eg&&(e="DiamondContainerBlock");return new N("CreateBlock",{Class:e,Properties:d,Page:b.viewport.V[0].C.id})}},hexagon:{minStrokes:1,fp:[{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.0084,0.012,0,0,0.0204,0.0151,0.025,0.0271,0,0,0.0172,0.0162],[0.7699,0.7523,0.183,0.234,0.765,0.727,0.7583,0.7702,0.2766,0.3568,0.7562,0.7076],[0.2414,0.2533,0.9265,1,0.2291,0.0841,0.2072,0.2118,0.7692,0.8244,0.2389,0.1059],[0,0,0,0,0,0,0,0,0,0,0,0]]}],action:function(a,d){return new N("CreateBlock",{Class:"PreparationBlock",Properties:d,Page:b.viewport.V[0].C.id})}},star:{minStrokes:1,fp:[{rotate:"all",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,
0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.038,0.076,0,0],[0.0198,0,0,0,0,0.0061,0.1129,0.3001,0.1371,0.2742,0.2847,0.0584],[0.3618,0.0991,0,0,0.1294,0.212,0.3871,0.4036,0.0969,0.0969,0.413,0.2456],[0.3073,0.6256,0.3298,0.402,0.6167,0.2852,0.076,0.2649,0.2698,0.2329,0.2913,0.082],[0.6079,0.4537,0.4317,0.6233,0.4488,0.5573,0.5479,0.0171,0.4493,0.4664,0.0171,0.5044],[0.3612,0.4752,0.5743,0.5854,0.4813,0.0969,0.7665,0,0.337,0.4631,0,0.4994],[0.0369,0.5628,0.5281,0.5446,0.5385,0,
1,0,0.1856,0.6503,0,0.9906],[0,0.5677,0.2214,0.2588,0.5088,0,0.1652,0,0,0.1272,0,0.1955],[0,0.06,0,0,0.0518,0,0,0,0,0,0,0]]}],action:function(a,d){var e=a.h/a.w;if(Math.abs(e-0.95)<0.2)e<0.95?(a.x+=0.5*(a.w-a.h/0.95),a.w=a.h/0.95):(a.y+=0.5*(a.h-0.95*a.w),a.h=0.95*a.w),d.BoundingBox=a;return new N("CreateBlock",{Class:"StarBlock",Properties:d,Page:b.viewport.V[0].C.id})}},stickfig:{minStrokes:3,fp:[{rotate:"none",data:[[0.09,0,0,0,0,0,0,0,0,0,0,0],[0.0307,0,0,0.09,0,0,0.0183,0,0,0.09,0,0],[0,0.0307,
0,0,0.0183,0,0,0.0183,0,0,0.0307,0],[0,0,0.0289,0.1062,0,0,0,0,0.0162,0.1189,0,0],[0,0,0.0607,0.1397,0,0,0,0.0642,0.0695,0.163,0.0642,0],[0,0.0046,0.1517,0.2068,0,0,0,0.1983,0.144,0.3267,0.1983,0],[0,0.0713,0.156,0.1768,0.055,0,0,0.204,0.0466,0.1616,0.204,0],[0,0.0762,0.2047,0.2181,0.0586,0,0.2625,0.0699,0.4428,0.5677,0.0699,0.2625],[0,0.3363,0.0473,0.066,0.3162,0,0.338,0.2742,0.1263,0.1154,0.2862,0.338],[0,0.3843,0,0,0.3836,0,0.4023,0.3952,0.1263,0.1044,0.4068,0.4023],[0,0.4693,0,0,0.4626,0,0.2682,
0.1267,0.8052,1,0.1436,0.2682],[0,0.3345,0,0,0.3264,0,0,0,0,0,0,0]]}],action:function(a,d){return new N("CreateBlock",{Class:"UMLActorBlock",Properties:d,Page:b.viewport.V[0].C.id})}},swimlane:{minStrokes:2,fp:[{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0125,0.0188,0,0],[0,0,0,0,0,0,0,0.0188,0.2534,0.3196,0.0188,0],[0,0,0,0,0,0,0,0.2659,0.0178,0.0178,
0.2659,0],[0,0,0,0,0,0,0.0125,0.2228,0,0,0.2228,0.0125],[0.7481,0.0347,0,0,0.0404,0.7106,0.867,0.1651,0.7106,0.7994,0.1587,0.74],[0,0.5352,0,0,0.5572,0,0,1,0,0,0.9761,0]]},{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0157,0.0235,0,0],[0,0,0,0,0,0,0,0.0235,0.317,0.3998,0.0235,0],[0,0,0,0,0,0,0,0.3326,0.0223,0.0223,0.3326,0],[0.3041,0,0,0,0,0.2678,0.5503,
0.2851,0,0,0.2816,0.4376],[0.4858,0.122,0,0,0.1527,0.4233,0.2975,0.6019,0.8889,1,0.5916,0.3402],[0,0.5755,0,0,0.5242,0,0,0.4259,0,0,0.4542,0]]},{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0146,0.0219,0,0],[0,0,0,0,0,0,0,0.0219,0.2956,0.3728,0.0219,0],[0,0,0,0,0,0,0,0.3102,0.0208,0.0208,0.3102,0],[0.4968,0.0124,0,0,0,0.2446,0.5087,0.2654,0,0,0.2599,
0.2577],[0.1153,0.4988,0,0,0.1406,0.3952,0.2792,0.5588,0.8289,0.9325,0.2712,0.4793],[0,0.2059,0,0,0.4855,0,0,0.3989,0,0,1,0]]},{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0156,0.0234,0,0],[0,0,0,0,0,0,0,0.0234,0.3158,0.3984,0.0234,0],[0,0,0,0,0,0,0,0.3314,0.0222,0.0222,0.3314,0],[0.2995,0,0,0,0.0258,0.48,0.3956,0.2777,0,0,0.2801,0.431],[0.4847,0.1199,
0,0,0.5375,0.0757,0.4483,0.3163,0.8857,0.9965,0.5865,0.34],[0,0.569,0,0,0.207,0,0,1,0,0,0.4552,0]]},{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0146,0.0219,0,0],[0,0,0,0,0,0,0,0.0219,0.2949,0.372,0.0219,0],[0,0,0,0,0,0,0,0.3095,0.0208,0.0208,0.3095,0],[0.4922,0.0113,0,0,0.0225,0.4449,0.3662,0.2593,0,0,0.2593,0.2545],[0.1175,0.4948,0,0,0.5021,0.0725,
0.4201,0.2934,0.827,0.9304,0.2691,0.4798],[0,0.2057,0,0,0.1937,0,0,0.9333,0,0,1,0]]}],action:function(a,d){return new N("CreateBlock",{Class:"SwimLaneBlock",Properties:d,Page:b.viewport.V[0].C.id})}}}}Ca(Vm,Um);q=Vm.prototype;q.Ze=function(){this.hr();Ge(this.viewport.V[0].canvas,this.Hh);this.viewport.ec();this.nd.reset()};q.Fg=function(){He(this.viewport.V[0].canvas,this.Hh);this.nd.reset()};
q.touchStart=function(a){var b=this;this.zl=this.Te=!0;this.Al&&clearTimeout(this.Al);this.Al=setTimeout(function(){b.Te&&b.viewport.ji("diagramming")},250);this.fh&&clearTimeout(this.fh);this.nd.tu(a.x*this.scale,a.y*this.scale,a.x,a.y)};q.touchMove=function(a){this.Te=!1;this.zl&&this.nd.stroke(a.x*this.scale,a.y*this.scale)};
q.touchEnd=function(a){var b=this;this.Te=!1;if(this.zl)this.fh=setTimeout(function(){if(b.fh)clearTimeout(b.fh),b.fh=l;var a=b.nd.Js(),d=!1;if(b.nd.Mn!=l&&b.nd.lm!=l){var d=b.nd.Mn,e=b.nd.lm;if(d.action=="linkpoint"&&e.action=="linkpoint"&&d.item!=e.item&&d.item.sa&&e.item.sa){Xm(b);var f=d.item.Ac(d.oc),g=e.item.Ac(e.oc),d={Shape:b.document.q.get("DefaultLineShape"),LineWidth:b.document.q.get("DefaultLineLineWidth"),LineColor:b.document.q.get("DefaultLineLineColor"),StrokeStyle:b.document.q.get("DefaultLineStrokeStyle"),
Font:b.document.q.get("DefaultFont"),ZOrder:b.viewport.V[0].C.Kd("ZOrder",0)+1,Endpoint1:{x:f.x,y:f.y,Block:d.item.id,LinkX:d.oc.x,LinkY:d.oc.y,Style:b.document.q.get("DefaultStartArrowStyle")},Endpoint2:{x:g.x,y:g.x,Block:e.item.id,LinkX:e.oc.x,LinkY:e.oc.y,Style:b.document.q.get("DefaultEndArrowStyle")}},d=new N("CreateLine",{Properties:d,Page:b.viewport.V[0].C.id});b.document.Aa();b.document.ba(d);if((e=b.Hc())&&e.pa)f=e.q.get("Members"),f[d.id]=!0,b.viewport.V[0].C.document.ba(new N(M,{id:e.id,
Property:"Members",Value:f}));b.document.xa();d=!0}else d=!1}d||Ym(b,Zm(b,a));b.nd.reset()},500),this.nd.Fx(a.x*this.scale,a.y*this.scale,a.x,a.y),a=this.nd.Js(),a.r-a.l<this.Ym&&a.b-a.t<this.Ym&&(clearTimeout(this.fh),this.nd.reset(),Xm(this));this.hp=this.zl=!1};q.qk=function(){this.Te=!1;this.hp=!0;this.zl=!1;this.fh&&clearTimeout(this.fh);this.nd.reset();Xm(this)};q.pk=function(){this.hp=this.Te=!1};
q.hr=function(){var a=this.viewport.padding;this.Hh.move(a,a,this.viewport.V[0].canvas.width-a*2,this.viewport.V[0].canvas.height-a*2);this.scale=this.viewport.scale};q.Hc=function(){return Rj(this.viewport,"diagramming").Hc()};q.np=function(){return{}};function $m(a){return a&&a.length>0?(a.sort(function(a,c){return a.rms-c.rms}),a[0].id):"square"}
function Ym(a,b){if(b){var c=b.fp,d,e=[],f;for(f in a.Cq)d=a.Cq[f],d.minStrokes>a.nd.rl||A(d.fp,function(b){var d=b.data;if(d.length!=0){for(var b=b.rotate||"none",j=0,k=0,n=0,m=0,p=0,s=p=p=0,u=999999,w=u=u=999999,s=0,u=Math.round(a.xu/4),v=w=0;v<c.length;v++)for(var x=c[v].length,z=0;z<x;z++){s=z;p=c[v][s]-d[v][z];j+=p*p;if(b=="all"||b=="90")s=(s+u)%x,p=c[v][s]-d[v][z],k+=p*p;b=="all"&&(s=(s+u)%x,p=c[v][s]-d[v][z],n+=p*p,s=(s+u)%x,s=c[v][s]-d[v][z],m+=s*s);w++}u=Math.sqrt(j/w);e.push({id:f,angle:0,
rms:u});if(b=="all"||b=="90")u=Math.sqrt(k/w),e.push({id:f,angle:90,rms:u});b=="all"&&(u=Math.sqrt(n/w),w=Math.sqrt(m/w),e.push({id:f,angle:180,rms:u}),e.push({id:f,angle:270,rms:w}))}});a.Xf($m(e),b.bb)}else Xm(a)}
function Zm(a,b){if(!b)return!1;var c=a.context,d=an(c,"t",b)+b.t,e=an(c,"r",b)+b.l,f=an(c,"b",b)+b.t,c=an(c,"l",b)+b.l,g=1/a.scale;if(d>-1&&e>-1&&f>-1&&c>-1){e-=c;f-=d;if(e<a.Ym||f<a.Ym)return!1;a.Ho.attr("width",31);a.Ho.attr("height",31);a.Yr.drawImage(a.canvas,c,d,e,f,0,0,31,31);var i={},j=a.Yr,k=a.xu,n=a.Aw,m=j.canvas.width,p=j.canvas.height,s=j.getImageData(0,0,m,p).data,u=(m-1)/2,w=(p-1)/2,v=1/Math.sqrt(u*u+w*w),x=1/Math.max(Math.abs(Math.log(1)),Math.abs(Math.log(10))),z=1/(2*Math.PI),B=3,
O=0,j=[],T=0,W,U,X;for(W=0;W<n;W++){j[W]=[];for(var da=0;da<k;da++)j[W][da]=0}for(da=0;da<p;da++)for(var Z=0;Z<m;Z++)s[B]>10&&(U=Z-u,X=da-w,W=Math.atan2(X,U)*z,W+=W<0?1:0,W=Math.floor(W*k),U=Math.sqrt(X*X+U*U)*v*9+1,U=Math.floor(Math.abs(Math.log(U))*x*n),W=W<0?0:W>=k?k-1:W,U=U<0?0:U>=n?n-1:U,j[U][W]+=s[B],O=Math.max(s[B],O),T=Math.max(j[U][W],T)),B+=4;m=1/T;for(p=0;p<n;p++)for(s=0;s<k;s++)j[p][s]*=m;i.fp=j;i.bb={x:g*c,y:g*d,w:g*e,h:g*f};return i}return!1}
function an(a,b,c){var d=16,e=4,f=Math.max(c.l,0),g=Math.max(c.t,0),i=Math.min(c.r,a.canvas.width),c=Math.min(c.b,a.canvas.height);i-=f;c-=g;for(var a=a.getImageData(f,g,i,c).data,f=b=="l"||b=="t"?0:b=="b"?c-1:i-1,g=0,j=!1,k=b=="b"||b=="r"?0:b=="t"?c:i,c=b=="l"||b=="r"?c:i;k==0&&f>=k||k!=0&&f<k;){g=0;for(j=!1;g<c;){var n=Math.round(4*((b=="t"||b=="b"?f:g)*i+(b=="l"||b=="r"?f:g)));if(a[n+3]>100){j=!0;if(Math.abs(d)<=1)return f;d>0?d=-(d/2):d/=2;e=Math.max(e/2,1);break}g+=e}!j&&d<0&&(d=-(d/2),e=Math.max(e/
2,1));k==0?f-=d:f+=d}return-1}
q.Xf=function(a,b){var c=this.Cq[a];if(c){Xm(this);var b=this.viewport.V[0].dc(b),d={LineWidth:this.document.q.get("DefaultBlockLineWidth"),LineColor:this.document.q.get("DefaultBlockLineColor"),FillColor:this.document.q.get("DefaultBlockFillColor"),Font:this.document.q.get("DefaultFont"),BoundingBox:b,ZOrder:this.viewport.V[0].C.Kd("ZOrder",0)+1},c=c.action(b,d);this.document.Aa();this.document.ba(c)&&(this.viewport.V[0].Ya(this.viewport.V[0].C.Jb(c.id)).Xh(),this.viewport.ec());if((d=this.Hc())&&
d.pa){var e=d.q.get("Members");e[c.id]=!0;this.viewport.V[0].C.document.ba(new N(M,{id:d.id,Property:"Members",Value:e}))}this.document.xa()}};function Xm(a){a.context.clearRect(0,0,a.Hh.width,a.Hh.height)}function Wm(a,b){this.ss=a;this.sj=this.rj=this.context=l;this.Ta=this.Bb=99999;this.Sa=this.Ab=0;this.lm=this.Mn=l;this.rl=0;this.Tc(b)}
Wm.prototype={Tc:function(a){this.context=a;this.context.globalCompositeOperation="source-over"},destroy:o(),tu:function(a,b,c,d){this.context.lineCap="round";this.context.lineWidth=5;this.context.strokeStyle="rgb(0,0,0)";this.rj=a;this.sj=b;this.rl++;this.Mn=this.rl==1?this.ss.viewport.V[0].gg(c,d):l},stroke:function(a,b){(this.rj===l||this.sj===l)&&this.tu(a,b);this.context.beginPath();this.context.moveTo(this.rj,this.sj);this.context.lineTo(a,b);this.context.stroke();this.rj=a;this.sj=b;this.Bb=
a<this.Bb?a:this.Bb;this.Ta=b<this.Ta?b:this.Ta;this.Ab=a>this.Ab?a:this.Ab;this.Sa=b>this.Sa?b:this.Sa},Fx:function(a,b,c,d){this.sj=this.rj=l;this.lm=this.rl==1?this.ss.viewport.V[0].gg(c,d):l},reset:function(){this.sj=this.rj=l;this.Ta=this.Bb=99999;this.Sa=this.Ab=0;this.lm=this.Mn=l;this.rl=0},Js:function(){return this.Ab>this.Bb&&this.Sa>this.Ta?{l:this.Bb-20,t:this.Ta-20,r:this.Ab+20,b:this.Sa+20}:l}};function bn(a){var b=this;this.K=a;this.dialog=this.Fk();J("default.sendFeedback",function(){b.dialog.open()})}
bn.prototype.Fk=function(){var a=this,b=this.K.$.da?this.K.$.da.email:"demo",b=$('<div title="'+S("menu.feedback.send")+'"><input type="hidden" name="data[Bug][title]" value="Beta Feedback" /><input type="hidden" name="data[Bug][useragent]" value="'+navigator.userAgent+'" /><input type="hidden" name="_method" value="POST" /><input type="hidden" name="data[Bug][email]" value="'+b+'" /><input type="hidden" name="data[Bug][browser]" value="" /><input type="hidden" name="data[Bug][os]" value="" /><textarea name="data[Bug][content]" style="width: 355px; height: 200px;"></textarea></div>'),c=
new se(b,{Ld:!0,width:"400px",title:S("menu.feedback.send"),$c:!0,hb:[{label:"Cancel",action:function(){a.dialog.close()}},{label:"Submit",action:function(){var b=!0;$.ajax({type:"POST",url:"/bugs/report?NotError=1",data:Ld($(c.body)),success:function(a){$("<div>"+a+"</div>").find(".error-message").size()>0&&(xe(a,!0),b=!1)},error:o(),complete:function(){b&&(Tk(S("growl.feedback.sent")),a.dialog.close())}})}}],open:function(){setTimeout(function(){$(c.body).find("textarea").val("").focus().select()},
1)}});return c};function cn(a){var b=this;this.K=a;this.dialog=this.Fk();J("default.download",function(){b.K.$.zb()?b.K.$.Oe():b.print()})}
cn.prototype.Fk=function(){var a=this,b=$('<div title="'+S("downloadpanel.title")+'"><div class="publish-only">'+S("dialog.publish.description")+'</div><div id="publish-formatold"><fieldset class="ui-corner-all"><legend>'+S("legend.publish.format")+'</legend><div class="publish-only"><input type="radio" name="format" value="web" checked="checked" id="format_webold" /> <label for="format_webold" class="inline">'+S("label.publish.webpage")+'</label></div><div><input type="radio" name="format" value="pdf" id="format_pdfold" /> <label for="format_pdfold" class="inline">PDF <span class="lighter">('+
S("label.publish.pdf.comment")+')</span></label></div><div><input type="radio" name="format" value="png" id="format_pngold" /> <label for="format_pngold" class="inline">PNG <span class="lighter">('+S("label.publish.png.comment")+')</span></label></div><div><input type="radio" name="format" value="jpeg" id="format_jpegold" /> <label for="format_jpegold" class="inline">JPEG</label></div><div class="print-only"><input type="radio" name="format" value="vdx" id="format_vdxold" /> <label for="format_vdxold" class="inline">Visio (VDX)</label></div></fieldset></div><div id="publish-content"><fieldset class="ui-corner-all"><legend>'+
S("legend.publish.content")+'</legend><div><input type="radio" name="content" value="document" checked="checked" id="content_document" /> <label for="content_document" class="inline">'+S("label.publish.document")+'</label></div><div><input type="radio" name="content" value="page" id="content_page" disabled="disabled" /> <label for="content_page" class="lighter inline">'+S("label.publish.page")+'</label></div><div><input type="radio" name="content" value="part" id="content_part" disabled="disabled" /> <label for="content_part" class="lighter inline">'+
S("label.publish.page.part")+'</label></div><input class="hidden" type="button" value="'+S("button.area.select.again")+'" id="content_part_select" /></fieldset></div><div id="download-dpi"><fieldset class="ui-corner-all"><legend>'+S("legend.publish.quality")+'</legend><div><input type="radio" name="dpi" value="zoom" checked="checked" id="format_dpi_zoom" /> <label for="format_dpi_zoom" class="inline">'+S("label.publish.zoom.current")+'</label></div><div><input type="radio" name="dpi" value="160" id="format_dpi_160" /> <label for="format_dpi_160" class="inline">'+
S("label.publish.zoom.screen")+' <span class="lighter">(160 DPI)</span></label></div><div><input type="radio" name="dpi" value="300" id="format_dpi_300" /> <label for="format_dpi_300" class="inline">'+S("label.publish.zoom.print")+' <span class="lighter">(300 DPI)</span></label></div></fieldset></div>');b.find("#publish-formatold input:radio").change(function(){var b=$("#publish-formatold input:radio:checked").val(),c=$("#publish-content [name=content]:checked").val();switch(b){case "web":case "vdx":!a.K.$.da||
a.K.$.da.Level.visio!="1"?L('<p>Visio (VDX) export is only available for Professional and Team accounts. Please consider <a href="/users/level" class="link">upgrading</span>.</p>'):($("#content_document").removeAttr("disabled").attr("checked","checked").next("label").removeClass("lighter"),$("#content_page, #content_part").attr("disabled","disabled").next("label").addClass("lighter"),$("#download-dpi").hide());break;case "pdf":$("#content_document, #content_page").removeAttr("disabled").next("label").removeClass("lighter");
c=="part"&&$("#content_page").attr("checked","checked");$("#content_part").attr("disabled","disabled").next("label").addClass("lighter");$("#download-dpi").hide();break;case "png":case "jpeg":$("#content_page, #content_part").removeAttr("disabled").next("label").removeClass("lighter"),c=="document"&&$("#content_page").attr("checked","checked"),$("#content_document").attr("disabled","disabled").next("label").addClass("lighter"),$("#download-dpi").show()}});b.find("#publish-content input:radio").change(function(){switch($("#publish-content input:checked").val()){case "part":$("#publish_button").val(S("button.area.select.publish")).data("part",
!0);a.Ro.text(S("button.area.select.download"));break;default:$("#publish_button").val(S("button.publish")).data("part",!1),a.Ro.text(S("button.download"))}});var c=new se(b,{Ld:!0,title:S("downloadpanel.title"),$c:!0,hb:[{label:S("button.download"),Pg:!0,create:function(b){a.Ro=b},action:function(){c.close();var b=$("#download-dpi [name=dpi]:checked").length>0?$("#download-dpi [name=dpi]:checked").val():l;a.K.$.print($("#publish-formatold [name=format]:checked").val(),$("#content_document").is(":checked")?
l:a.K.viewport.V[0].C.id,$("#content_part").is(":checked"),b=="160"||b=="300"?b*1:l)}}]});return c};
cn.prototype.print=function(){this.dialog.hc()&&this.dialog.close();this.dialog.find(".publish-only").hide();this.dialog.find(".print-only").show();$("#format_pdfold, #content_document").attr("checked","checked");$("#content_document, #content_page").removeAttr("disabled").next("label").removeClass("lighter");$("#content_part").attr("disabled","disabled").next("label").addClass("lighter");$("#download-dpi").hide();this.Ro.text(S("button.download"));var a=S("downloadpanel.title");this.dialog.title.empty().append(y(a));
this.dialog.open()};function dn(a,b){this.fn=a;this.timeout=b;this.count=0}dn.prototype.queue=function(a){if(a==l)a=this.timeout;var b=this;this.count++;setTimeout(function(){b.count--;b.count>0||b.fn()},a)};dn.prototype.trigger=function(){this.fn()};t("lucid.ConsolidatedFunctionCall",dn);dn.prototype.queue=dn.prototype.queue;dn.prototype.trigger=dn.prototype.trigger;function en(a,b){var c=this;this.K=b;this.Ej=0;this.ta=this.Sh=!1;this.padding=36;this.ri=0.3;this.document=l;$("#tab-bar").remove();this.sortable=this.controls=this.Eb=l;this.J=$(y({Q:"tab-bar noise-texture",children:[{Q:"slide-track",children:[{Q:"tabs",create:function(a){c.Eb=a}}]},{Q:"controls",create:function(a){c.controls=a},children:[{Q:"divider"},{Q:"icon-button left inverse",title:S("tooltip.page.new"),create:function(a){c.oo=a},click:function(){$(this).hasClass("disabled")||c.xt()},children:[{Q:"icon-13 icon-13-plus"}]},
{Q:"divider"},{Q:"icon-button left inverse disabled",create:function(a){c.rm=a},click:function(){$(this).hasClass("disabled")||(c.Eb.css("left","0px"),fn(c))},children:[{Q:"icon-13 icon-13-tri-dbl-l"}]},{Q:"icon-button left inverse disabled",create:function(a){c.Pm=a},click:function(){if(!$(this).hasClass("disabled")){var a=c.Eb.position().left+320;c.Eb.css("left",a+"px");fn(c)}},children:[{Q:"icon-13 icon-13-tri-l"}]},{Q:"icon-button left inverse",create:function(a){c.Bn=a},click:function(){if(!$(this).hasClass("disabled")){var a=
c.Eb.position().left-320;c.Eb.css("left",a+"px");fn(c)}},children:[{Q:"icon-13 icon-13-tri-r"}]},{Q:"icon-button left inverse",create:function(a){c.Om=a},click:function(){if(!$(this).hasClass("disabled")){var a=c.Eb.width(),b=c.Eb.parent().width();c.Eb.css("left",b-a+"px");fn(c)}},children:[{Q:"icon-13 icon-13-tri-dbl-r"}]},{Q:"divider"},{Q:"icon-button left inverse",create:function(a){c.zw=a},click:function(){var a=c.ai;a&&(c.ai.hide(),a.show(),a.Lf(c.zw.offset().left,c.J.offset().top+c.J.outerHeight()-
1))},children:[{Q:"icon-13 icon-13-tri-d"}]}]}]})).appendTo(a);this.Ry=this.J.offset().top+this.J.outerHeight();this.dy="TabBar_regular";this.ay="TabBar_master";$(document).bind("lucid.menu.show",function(){c.ai&&c.ai.hide()});J("gui.closeAllYerStuff",function(){c.ai&&c.ai.hide()});this.dh=$('<div id="tab-bar-preview" class="ui-corner-all gui-box-shadow"></div>').appendTo("body");this.Cl=new dn(function(){gn(c,c.K.$.document.uk());c.Pf.size()>0&&hn(c)},250);$(document).bind("documentPostAction",function(a,
b){(b.Action==xg||b.Action=="RemovePage")&&c.Cl.queue();b.Action==M&&b.Property=="Title"&&c.K.$.document.nb(b.id)&&c.Cl.queue();if(b.Action=="RemovePage"){var f=c.K.viewport.V[0].C;f!=l&&b.id==f.id&&c.K.viewport.Lb([jn(c.K.$.document,0,!0)])}if(b.Action==xg)f=c.K.viewport.V[0].C,(f==l||f.id==b.id)&&c.K.viewport.Lb([jn(c.K.$.document,0,!0)])});J("viewport.pages",function(){c.Cl.queue()},!0);J("page.delete",function(a){kn(c,a);ln(c)});J("page.removeMaster",function(){var a=c.nb();a&&(c.K.viewport.Lb([a]),
ln(c),Dj(a,""))});J("page.applyMaster",function(){var a=c.nb();a&&(c.K.viewport.Lb([a]),ln(c),J.set("applyMasterDialog.open"))});J("page.masterize",function(){var a=c.nb();a&&(a.document.ba(new N(M,{id:a.id,Property:"IsMaster",Value:!0})),c.K.viewport.Lb([a]))});J("page.rename",function(){var a=c.nb();a&&(c.K.viewport.Lb([a]),c.jm(),ln(c))});J("page.settings",function(){J.set("dock.showPanel","Document")});J("page.duplicate",function(){var a=c.nb();a&&mn(c,a.id)});J("page.createFromMaster",function(){var a=
c.nb();if(!c.document)c.document=c.Zb();a&&(a=new N(xg,{Properties:{Title:S("Untitled Page"),Order:c.document.Vh("Order")+1,Size:a.q.get("Size"),Margin:a.q.get("Margin"),DPI:a.q.get("DPI"),GridSpacing:a.q.get("GridSpacing"),Master:a.id}}),c.document.ba(a),c.K.viewport.Lb([c.document.nb(a.id)]))});J("page.applyMasterToAll",function(){var a=c.nb();if(!c.document)c.document=c.Zb();a&&(c.document.Aa(),c.document.ee(function(){this.Fb()||a.id!=sj(this,!0)&&Dj(this,a.id)}),c.document.xa(),Tk(S("growl.master.applied")))});
J("page.demasterize",function(){var a=c.nb();a&&(a.document.ba(new N(M,{id:a.id,Property:"IsMaster",Value:!1})),c.K.viewport.Lb([a]))});J("page.duplicateMaster",function(){var a=c.nb();a&&mn(c,a.id,{IsMaster:!0})});J("page.edit",function(){var a=c.nb();a&&(c.K.viewport.Lb([a]),c.jm(),ln(c))});J("default.newPage",r(this.xt,this));J("default.pageSettings",r(this.jm,this))}q=en.prototype;q.Zb=function(){var a=this;J.set("client.getDocument",function(b){a.document=b});return a.document};q.nb=function(){return this.K.viewport.V[0].C};
function nn(a,b){var c=[];A(b,function(b){var e=wd(b.q.get("Title"))+(b.Fb()?" "+S("pagetitle.master.suffix"):"");c.push({label:e,action:function(){a.K.viewport.Lb([b]);a.ai.hide()}})});return c}
function gn(a,b){var c={R:"ul",children:[]},d={},e=[],f=0,g=0,i=[],j=[],k=[],n=[];A(b,function(c){if(!c.Fb()||!a.yh){var m=wd(c.q.get("Title"))+(c.Fb()?" "+S("pagetitle.master.suffix"):""),u={R:"li",Q:c.Fb()?"master ":"",attr:{pageId:c.id},children:[{Q:"body",children:[m]},{Q:"l-end",children:[{}]},{Q:"r-end",children:[{}]}]},m={Q:"drop-down-item",attr:{pageId:c.id},children:[{Q:"content",children:[{Q:"icon left"},m]}]};d[c.id]=c;e.push(c);Dk(a.K.viewport,c)&&(u.Q+="selected",m.Q+=" active",m.children[0].Q+=
" bold",m.children[0].children[0].Q+=" silk tick");!a.yh&&b.length>1&&u.children[0].children.push({Q:"close disabled",create:function(b){b.hover(function(){b.toggleClass("disabled inverse")},function(){b.toggleClass("disabled inverse")});b.mouseover(function(a){a.stopPropagation()}).click(function(b){b.stopPropagation();ln(a);J.set("page.delete",c.id)})},children:[{Q:"icon-13 icon-13-close"}]});c.Fb()?(j.push(u),n.push(m),f++):(i.push(u),k.push(m),g++)}});c.children=i.concat(j);a.sortable=$(y(c));
a.Eb.empty().append(a.sortable);$("#tabbar_pagelist_dropdown").remove();a.ai=new Tl(nn(a,e),{zf:!0});a.Ej=0;a.Pf=a.sortable.children();a.Pf.each(function(){var b=$(this).outerWidth();a.Ej+=b;$(this).data("w",b)}).each(function(){$(this).data("percent",$(this).data("w")/a.Ej);$(this).hasClass("selected")||Ya||$(this).mouseover(function(){a.Sh||a.To($(this),d[$(this).attr("pageId")])}).mouseout(function(){ln(a)})}).click(function(){a.Sh||(ln(a),$(this).hasClass("selected")?a.jm():a.K.viewport.Lb([a.K.$.document.nb($(this).attr("pageId"))]),
ln(a))});if(g>1||f>1){var m=f<2?"> :not(.master)":g<2?"> .master":"> *";a.sortable.sortable({axis:"x",distance:10,items:m,start:function(b,c){c.item.hasClass("master")?$(this).sortable("option","items","> .master"):$(this).sortable("option","items","> :not(.master)");$(this).sortable("refresh");a.Sh=!0;ln(a)},update:function(){a.Pf=$(this).children();a.K.$.document.Aa();a.Pf.each(function(b){a.K.$.document.ba(new N(M,{id:$(this).attr("pageId"),Property:"Order",Value:b}))});a.K.$.document.xa();setTimeout(function(){a.Sh=
!1},10)},stop:function(){$(this).sortable("option","items",m)}})}on(a);$(window).unbind("resize.TabBar");$(window).bind("resize.TabBar",function(){on(a)});a.ta&&a.Uc();a.yh&&a.oo.addClass("disabled")}function on(a){var b=a.Eb.parent().width(),c=b-a.padding,d=Math.floor(c/a.Pf.size());a.Ej>=c?a.Eb.width(a.Ej+a.padding):(a.Eb.width(b),a.Pf.each(function(){$(this).width(Math.floor($(this).data("percent")*c*a.ri+d*(1-a.ri)-18))}));a.Pf.css("max-width",Math.floor(a.J.width()/4)+"px");fn(a)}
function fn(a){var b=a.Eb.position().left,c=a.Eb.width(),d=a.Eb.parent().width(),e,f;c<=d?(a.Eb.css({left:"0px"}),f=a.rm.add(a.Pm).add(a.Bn).add(a.Om)):b>=0?(a.Eb.css({left:"0px"}),f=a.rm.add(a.Pm),e=a.Bn.add(a.Om)):b+c<=d?(a.Eb.css({left:d-c+"px"}),e=a.rm.add(a.Pm),f=a.Bn.add(a.Om)):e=a.rm.add(a.Pm).add(a.Bn).add(a.Om);f&&f.addClass("disabled");e&&e.removeClass("disabled")}
function hn(a){var b=a.Eb.position().left,c=a.Eb.parent().width(),d=a.Pf.filter(".selected");d.length==0&&(d=a.Pf.first());var e=d.offset().left,d=d.outerWidth();e+d>c?(a.Eb.css({left:b-(e+d-c)-50+"px"}),fn(a)):e<0&&(a.Eb.css({left:b-e+50+"px"}),fn(a))}
q.To=function(a,b){var c=this;this.Qs&&clearTimeout(this.Qs);this.lu=setTimeout(function(){c.dh.empty();c.dh.append("<div></div><h3>"+a.text()+"</h3>");var d=new Gj(b),e=a.offset();if(!(e.left==0&&e.top==0)){var f=c.dh.outerWidth(),f=Math.round(Math.max(Math.min(e.left+a.width()/2+f/2,c.K.J.width())-f,0));Pj(d,200,c.dh.find("div"));c.dh.stop().css({left:f+"px",top:Math.round(e.top+a.outerHeight())+"px"}).fadeTo(100,1)}},500)};
function ln(a){a.lu&&clearTimeout(a.lu);a.Qs=setTimeout(function(){a.dh.stop().fadeOut(100)},10)}
q.xt=function(){function a(){ve("Please enter a title for this new page","New Page",function(a){var d=b.K.viewport,e=b.K.$.document,f=d.V[0].C.q.Nb();f.Order=e.Vh("Order")+1;f.Title=a;delete f.Master;delete f.IsMaster;a=new N(xg,{Properties:f});e.ba(a);d.Lb([e.nb(a.id)])})}var b=this;this.K.dock.Bk.nh&&this.K.$.Id()?ue("<p>"+S("confirm.p.revision.viewing")+"</p><p>"+S("confirm.p.x.hist.page.create")+"</p>",function(){b.K.dock.Bk.off();b.K.$.Id()?L("<p>"+S("alert.p.readonly")+"</p><p>"+S("alert.p.page.create.cant")+
"</p>"):a()}):b.K.$.Id()?L("<p>"+S("alert.p.readonly")+"</p><p>"+S("alert.p.page.create.cant")+"</p>"):a()};
q.jm=function(){function a(){var a=b.K.viewport.V[0].C;ve("Enter a new title for this page",a.q.get("Title"),function(b){a.document.ba(new N(M,{id:a.id,Property:"Title",Value:b}))})}var b=this;this.K.dock.Bk.nh&&this.K.$.Id()?ue("<p>"+S("confirm.p.revision.viewing")+"</p><p>"+S("confirm.p.x.hist.page.edit")+"</p>",function(){b.K.dock.Bk.off();b.K.$.Id()?L("<p>"+S("alert.p.readonly")+"</p><p>"+S("alert.p.page.edit.cant")+"</p>"):a()}):b.K.$.Id()?L("<p>"+S("alert.p.readonly")+"</p><p>"+S("alert.p.page.edit.cant")+
"</p>"):a()};function kn(a,b){var c=a.K.viewport.V[0].C;ln(a);a.Pf.length>1?ue(S(c.Fb()?"confirm.master.delete":"confirm.page.delete"),function(){a.K.$.document.ba(new N("RemovePage",{id:b?b:c.id}))}):L(S("alert.page.last.delete"))}
function mn(a,b,c){ln(a);var d=a.K.viewport,e=a.K.$.document,f=e.nb(b),g=[];tj(f,function(){g.push(this)});b=d.rk(g);a={Title:f.q.get("Title"),Order:a.K.$.document.Vh("Order")+1,Size:f.q.get("Size"),Margin:f.q.get("Margin"),DPI:f.q.get("DPI"),GridSpacing:f.q.get("GridSpacing")};f.q.get("Master")&&(a.Master=f.q.get("Master"));for(var i in c)a[i]=c[i];c=new N(xg,{Properties:a});e.ba(c);d.Lb([e.nb(c.id)]);d.Yk(d.V[0],b,b.Base.x,b.Base.y);d.ec()}
q.Uc=function(){this.ta=!0;this.oo.addClass("disabled");this.Eb.find(".close").hide();this.sortable&&this.sortable.sortable("disable")};q.pc=function(){this.ta=!1;this.oo.removeClass("disabled");this.Eb.find(".close").show();this.sortable&&this.sortable.sortable("enable")};q.eg=function(){this.yh=!0;this.Cl.trigger()};q.gh=function(){this.yh=!1;this.Cl.trigger()};function pn(a,b,c){var a=a||{},d=this;this.input=l;this.J=$(y({Q:"input-select",children:[{Q:"input-select-wrapper",children:[{Q:"input-select-textbox",children:[{R:"input",type:"text",create:function(a){d.input=a;a.change(function(){d.ha||d.va(parseFloat($(this).val())||d.value)})}}]},{Q:"input-select-button",create:function(a){a.click(function(){if(!d.ha&&d.Gb)if(d.Gb.Th())d.Gb.hide();else{J.set("gui.closeAllYerStuff");var a=d.J.offset(),b=a.left,a=a.top,c=d.J.outerWidth()-2;d.Gb.J.css({"min-width":c+
"px"});d.Gb.Lf(b,a+d.J.outerHeight()+1);d.Gb.show()}}).mousedown(function(a){a.stopPropagation()})},children:[{Q:"icon-13 icon-13-select-arrows"}]}]}]}));this.ha=a.disabled||!1;this.min=a.min||0;this.max=a.max||100;this.step=a.step||1;this.Ji=a.Ji||3;this.La=a.La||"";this.value=0;this.va(a.value||0,!0);this.Fa=[];this.Gb=l;(this.options=a.options||l)&&this.Tl();a.change&&this.Wb(a.change);if(a.Cc)this.Cc=a.Cc;b&&this.appendTo(b,c);this.ha&&this.disable()}q=pn.prototype;
q.Go=function(){var a=this;this.Gb=new Tl([],{small:!0});J("gui.closeAllYerStuff",function(){a.Gb.hide()})};q.Tl=function(){this.Gb||this.Go();var a=this,b=[];this.Cc&&this.Cc();A(this.options,function(c){b.push({label:String(c.value),action:function(){a.va(c.value)},selected:function(){return a.value==c.value}});c.selected&&a.va(c.value,!0)});this.Gb.Ug=b;this.Gb.refresh()};
q.va=function(a,b){if(a!=this.value){this.value=a>this.max?this.max:a<this.min?this.min:a;if(this.step)this.value=Math.round(this.value/this.step)*this.step;this.Cb(!!b)}this.input.val(bc(this.value,this.Ji)+this.La)};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};q.ca=function(a){if(this.ha)return this;this.va(a,!0);return this};q.sb=ea("value");q.Wb=function(a){this.Fa.push(a);return this};
q.enable=function(){this.J.removeClass("disabled");this.input.removeAttr("disabled");this.ha=!1;return this};q.disable=function(){this.J.addClass("disabled");this.input.attr("disabled","disabled");this.ha=!0;return this};q.destroy=function(){this.J.remove();this.Fa=l};var qn={name:"inches",Mf:"in",Nm:1,Gm:[],Wn:!0,Gh:72},rn={name:"centimeters",Mf:"cm",Nm:1,Gm:[5,2,2,5],Wn:!1,Gh:72/2.54,Ty:30},sn={name:"picas",Mf:"pc",Nm:6,Gm:[2,3,2,2,3],Wn:!1,Gh:12},tn={name:"points",Mf:"pt",Nm:72,Gm:[2,3,2,2,3],Wn:!1,Gh:1},un={name:"pixels",Mf:"px",Nm:72,Gm:[2,3,2,2,3],Wn:!1,Gh:1},vn=l;switch(h){case "inches":vn=qn;case "centimeters":vn=rn;case "picas":vn=sn;case "points":vn=tn;case "pixels":vn=un;default:vn=config.defaultUnit=="px"?un:qn}J.set("lucid.units.set");function wn(a,b,c){var a=a||{},d=this;this.Cp=l;this.J=$(y({Q:"select",create:function(a){a.click(function(){if(!d.ha&&d.Gb)if(d.Gb.Th())d.Gb.hide();else{J.set("gui.closeAllYerStuff");var a=d.J.offset(),b=a.left,a=a.top,c=d.J.outerWidth()-2;d.Gb.J.css({"min-width":c+"px"});d.Tl();d.Gb.show();d.Gb.Lf(b,a+d.J.outerHeight()+1,!0);c=d.Gb.Pe;c.length==1&&d.Gb.Lf(b-17,a+1-c[0].mb.position().top,!0)}}).mousedown(function(a){a.stopPropagation()})},children:[{Q:"select-wrapper",children:[{Q:"select-content",
create:function(a){d.Cp=a}},{Q:"select-button",children:[{Q:"icon-13 icon-13-select-arrows"}]}]}]}));this.ha=a.disabled||!1;this.na=a.na||l;this.label=this.value=l;this.Fa=[];this.Gb=l;(this.options=a.options||l)&&this.Tl();a.change&&this.Wb(a.change);if(a.Cc)this.Cc=a.Cc;b&&this.appendTo(b,c);this.ha&&this.disable()}q=wn.prototype;q.Go=function(){var a=this;this.Gb=new Tl([],{small:!0});J("gui.closeAllYerStuff",function(){a.Gb.hide()})};
q.Tl=function(){this.Gb||this.Go();var a=this,b=[];this.Cc&&this.Cc();A(this.options,function(c){var d=c.value!==h?c.value:c.label;c.separator?b.push("hr"):(b.push({label:c.mb||c.label||{children:[{Q:"icon-13 icon-13-"+c.na}]},action:function(){a.va(d)},selected:function(){return a.value==d}}),c.selected&&a.va(d,!0))});this.value==l&&this.options.length>0&&this.va(this.options[0].value!==h?this.options[0].value:this.options[0].label,!0);this.Gb.Ug=b;this.Gb.refresh()};
q.va=function(a,b){if(a!=this.value||this.label==""){var c="";A(this.options,function(b){if(a==(b.value!==h?b.value:b.label))return c=b.label||(b.na?{Q:"icon-13 icon-13-"+b.na}:l)||b.mb,!1});this.label=c||"";this.na?this.Cp.empty().append(y({Q:"icon-13 icon-13-"+this.na})):this.Cp.empty().append(y(this.label));if(this.value!=a)this.value=a,this.Cb(!!b)}};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};
q.ca=function(a,b){if(this.ha)return this;this.va(a,!b);return this};q.sb=ea("value");q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.J.removeClass("disabled");this.ha=!1;return this};q.disable=function(){this.J.addClass("disabled");this.ha=!0;return this};q.reset=function(){this.va(l,!0);return this};q.destroy=function(){this.J.remove();this.Fa=l};function xn(a,b,c,d,e){function f(a){if(Xd&&!ae&&!a.button)return g(a);a.preventDefault();a.stopImmediatePropagation();d(a.pageX-j,a.pageY-k)}function g(a){$(document).unbind("mousemove.binddrag."+b,f).unbind("mouseup.binddrag."+b,g);i&&(i=!1,e&&e(a.pageX-j,a.pageY-k))}var i=!1,j=0,k=0;a.bind("mousedown."+b,function(a){j=a.pageX;k=a.pageY;i&&g(a);$(document).bind("mousemove.binddrag."+b,f).bind("mouseup.binddrag."+b,g);a.preventDefault();i=!0;c(a)})};function yn(a,b,c){function d(a,b){e.ha||(e.va(n*Math.atan2(k-(i+b),g+a-j),!0),e.Uk())}var a=a||{},e=this;this.handle=l;this.J=$(y({Q:"input-angle",children:[{Q:"input-angle-wheel"},{Q:"input-angle-handle",create:function(a){e.handle=a}}]}));this.zk=this.Ak=this.Dg=this.ad=0;this.ha=a.disabled||!1;this.Ba=a.Ba===h?l:a.Ba;this.value=0;this.va(a.value||this.Ba||0,!0);this.qf=[];this.pf=[];this.rf=[];this.Fa=[];a.start&&this.Pj(a.start);a.Nf&&this.Oj(a.Nf);a.stop&&this.Qj(a.stop);a.change&&this.Wb(a.change);
b&&this.appendTo(b,c);var f=0,g=0,i=0,j=0,k=0,n=180/Math.PI;xn(this.J,"lucidViewCommonInputAngleHandle",function(a){if(!e.ha){var b=e.J.offset();e.ad==0&&e.refresh();g=a.clientX;i=a.clientY;j=b.left+e.ad/2;k=b.top+e.Dg/2;f=e.value;e.va(n*Math.atan2(k-i,g-j),!0);e.Vk()}},d,function(a,b){e.ha||(d(a,b),e.Wk(),f!=e.value&&e.Cb())});this.ha&&this.disable()}q=yn.prototype;q.va=function(a,b){this.value=(360+Math.round(a))%360;b&&this.Bl()};
q.refresh=function(){this.ad=this.J.width();this.Dg=this.J.height();this.Ak=this.handle.outerWidth();this.zk=this.handle.outerHeight();return this.ad==0?!1:!0};q.Vk=function(){var a=this;A(this.qf,function(b){b(a.value)})};q.Uk=function(){var a=this;A(this.pf,function(b){b(a.value)})};q.Wk=function(){var a=this;A(this.rf,function(b){b(a.value)})};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};
q.Bl=function(){if(this.ad==0&&this.refresh()==!1)return this;var a=this.ad/2-5;this.handle.css({left:Math.round((this.ad-this.Ak)/2+a*Math.cos(Math.PI*this.value/180))+"px",top:Math.round((this.Dg-this.zk)/2-a*Math.sin(Math.PI*this.value/180))+"px"});return this};q.ca=function(a){if(this.ha||a==this.value)return this;this.va(a,!0);this.Cb(!0);return this};q.sb=ea("value");q.reset=function(){this.Ba!==l&&this.va(this.Ba,!0);return this};q.Pj=function(a){this.qf.push(a);return this};
q.Oj=function(a){this.pf.push(a);return this};q.Qj=function(a){this.rf.push(a);return this};q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.J.removeClass("disabled");this.ha=!1;return this};q.disable=function(){this.J.addClass("disabled");this.ha=!0;return this};q.destroy=function(){this.J.remove();this.Fa=this.rf=this.pf=this.qf=l};function zn(a,b){function c(a,b){d.ha||(d.va(new G((f+a)/(d.ad||f+a),(g+b)/(d.Dg||g+b)),!0),d.Uk())}var a=a||{},d=this;this.handle=l;this.J=$(y({Q:"input-coord",children:[{Q:"input-coord-wheel"},{Q:"input-coord-handle",create:function(a){d.handle=a}}]}));this.zk=this.Ak=this.Dg=this.ad=0;this.ha=a.disabled||!1;this.Ba=a.Ba===h?l:a.Ba;this.value=new G(0.5,0.5);this.va(a.value||this.Ba||this.value,!0);this.qf=[];this.pf=[];this.rf=[];this.Fa=[];a.start&&this.Pj(a.start);a.Nf&&this.Oj(a.Nf);a.stop&&
this.Qj(a.stop);a.change&&this.Wb(a.change);b&&this.appendTo(b);var e=this.value,f=0,g=0;xn(this.J,"lucidViewCommonInputCoordHandle",function(a){if(!d.ha){d.ad<=0&&d.refresh();var b=d.J.offset();f=a.pageX-(b.left+1);g=a.pageY-(b.top+1);e=d.value;d.va(new G(f/(d.ad||f),g/(d.Dg||g)),!0);d.Vk()}},c,function(a,b){d.ha||(c(a,b),d.Wk(),Na(e,d.value)||d.Cb())});this.ha&&this.disable()}q=zn.prototype;q.va=function(a,b){this.value=new G(If(a.x,0,1),If(a.y,0,1));b&&An(this)};
q.refresh=function(){this.ad=this.J.width()-2;this.Dg=this.J.height()-2;this.Ak=this.handle.outerWidth();this.zk=this.handle.outerHeight();return this.ad<=0?!1:!0};q.Vk=function(){var a=this;A(this.qf,function(b){b(a.value)})};q.Uk=function(){var a=this;A(this.pf,function(b){b(a.value)})};q.Wk=function(){var a=this;A(this.rf,function(b){b(a.value)})};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};
function An(a){a.ad<=0&&a.refresh()==!1||a.handle.css({left:Math.round(-a.Ak/2+a.value.x*a.ad+1)+"px",top:Math.round(-a.zk/2+a.value.y*a.Dg+1)+"px"})}q.ca=function(a){this.ad<=0&&An(this);if(this.ha||Na(a,this.value))return this;this.va(a,!0);this.Cb(!0);return this};q.sb=function(){return new G(this.value.x,this.value.y)};q.reset=function(){this.Ba!=l&&this.va(this.Ba,!0);return this};q.Pj=function(a){this.qf.push(a);return this};q.Oj=function(a){this.pf.push(a);return this};
q.Qj=function(a){this.rf.push(a);return this};q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.J.removeClass("disabled");this.ha=!1;return this};q.disable=function(){this.J.addClass("disabled");this.ha=!0;return this};q.destroy=function(){this.J.remove();this.Fa=this.rf=this.pf=this.qf=l};function Bn(a,b,c){var a=a||{},d=this;this.input=l;this.J=$(y({R:"label",Q:a.Q||"",children:[{R:"input",type:"checkbox",attr:a.value||a.checked?{checked:"checked"}:{},create:function(a){d.input=a;a.bind("change",function(){d.ha||d.va(a.is(":checked"))})}},{R:"span",text:" "+(a.label||"")}]}));this.ha=a.disabled||!1;this.value=!!a.value||!!a.checked||!1;this.Fa=[];a.change&&this.Wb(a.change);b&&this.appendTo(b,c);this.ha&&this.disable()}q=Bn.prototype;
q.va=function(a,b){(this.value=a)?this.input.attr("checked","checked"):this.input.removeAttr("checked");this.Cb(b)};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};q.sb=ea("value");q.ca=function(a){this.va(a,!0);return this};q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.J.removeClass("disabled");this.input.removeAttr("disabled");this.ha=!1;return this};
q.disable=function(){this.J.addClass("disabled");this.input.attr("disabled","disabled");this.ha=!0;return this};q.destroy=function(){this.J.remove();this.Fa=l};function Cn(a,b,c){function d(a){if(!e.ha){n=k+a;if(n<=0)n=0;else if(n>=e.td)n=e.td;e.step&&(n=Math.round(n/i)*i);e.handle.css({left:Math.round(n)+"px"});e.va(e.min+g*n);e.Uk()}}var a=a||{},e=this;this.handle=l;this.J=$(y({Q:"slider"+(a.Q?" "+a.Q:""),css:a.css||l,children:[{Q:"slider-bar-border",children:[{Q:"slider-bar-bg"}]},{Q:"slider-handle",create:function(a){e.handle=a}}]}));this.td=0;this.ha=a.disabled||!1;this.min=a.min||0;this.max=a.max===h?100:a.max;this.step=a.step||0;this.Ba=a.Ba===h?
l:a.Ba;this.value=0;this.va(a.value||this.Ba||0,!0);this.qf=[];this.pf=[];this.rf=[];this.Fa=[];a.start&&this.Pj(a.start);a.Nf&&this.Oj(a.Nf);a.stop&&this.Qj(a.stop);a.change&&this.Wb(a.change);b&&this.appendTo(b,c);var f,g,i,j,k=0,n=0;xn(this.handle,"lucidViewCommonInputSliderHandle",function(){if(!e.ha)e.td==0&&e.refresh(),f=e.max-e.min,g=f/(e.td||f),i=e.step/g,j=e.value,k=e.handle.position().left,e.Vk()},d,function(a){e.ha||(d(a),e.Wk(),j!=e.value&&e.Cb())});this.handle.click(function(a){a.stopPropagation()});
this.J.click(function(a){e.ha||(a=(a.clientX-($(this).offset().left+e.handle.outerWidth()/2))/($(this).outerWidth()-e.handle.outerWidth()),e.va(e.min+a*(e.max-e.min),!0),e.Cb())});this.ha&&this.disable()}q=Cn.prototype;q.va=function(a,b){this.value=a>this.max?this.max:a<this.min?this.min:a;if(this.step)this.value=Math.round(this.value/this.step)*this.step;b&&this.Bl()};q.refresh=function(){this.td=this.J.innerWidth()-this.handle.outerWidth();return this.td==0?!1:!0};
q.Vk=function(){var a=this;A(this.qf,function(b){b(a.value)})};q.Uk=function(){var a=this;A(this.pf,function(b){b(a.value)})};q.Wk=function(){var a=this;A(this.rf,function(b){b(a.value)})};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);this.td=this.J.innerWidth()-this.handle.outerWidth();return this};
q.Bl=function(){if(this.td<=0&&this.refresh()==!1)return this;this.handle.css({left:Math.round(this.td*(this.value-this.min)/(this.max-this.min))+"px"});return this};q.ca=function(a){this.td<=0&&(this.refresh(),this.Bl());if(this.ha||a==this.value)return this;this.va(a,!0);this.Cb(!0);return this};q.sb=ea("value");q.reset=function(){this.Ba!=l&&this.va(this.Ba,!0);return this};q.Pj=function(a){this.qf.push(a);return this};q.Oj=function(a){this.pf.push(a);return this};
q.Qj=function(a){this.rf.push(a);return this};q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.J.removeClass("disabled");this.ha=!1;return this};q.disable=function(){this.J.addClass("disabled");this.ha=!0;return this};q.destroy=function(){this.J.remove();this.Fa=this.rf=this.pf=this.qf=l};function Dn(a,b,c,d){b=b||{};this.vo=a;this.J=$(y({Q:"button-bar"+(b.Q?" "+b.Q:""),css:b.css||l}));this.mousedown=b.mousedown||!1;this.ha=b.disabled||!1;this.value=[];this.Fa=[];b.change&&this.Wb(b.change);c&&this.appendTo(c,d);this.refresh();this.ha&&this.disable()}q=Dn.prototype;q.va=function(a){this.value.push(a)};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};
q.refresh=function(a){var b=this;this.J.empty();this.value=[];A(this.vo,function(a){var d=a.selected&&a.selected(),e=b.ha||a.disabled&&a.disabled();d&&(a.value||a.value===0||a.value===!1)&&b.va(a.value);b.J.append(y({Q:"button-bar-item"+(d?" selected":"")+(e&&!b.ha?" disabled":""),title:a.Pa||l,create:function(d){a.action&&!e&&d.bind(b.mousedown?"mousedown":"click",function(){a.action();b.refresh(!0)})},children:[{Q:"icon-13 icon-13-"+a.na}]}))});this.Cb(!a||!1);return this};q.sb=ea("value");
q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.J.removeClass("disabled");this.ha=!1;return this.refresh()};q.disable=function(){this.J.addClass("disabled");this.ha=!0;return this.refresh()};q.destroy=function(){this.J.remove();this.Fa=l};function En(a,b,c){var a=a||{},d=this;this.qs=this.Hu=this.input=l;this.J=$(y({Q:"spinner"+(a.Q?" "+a.Q:""),css:a.css||l,children:[{Q:"spinner-textbox",children:[{R:"input",type:"text",create:function(a){d.input=a}}]},{Q:"spinner-buttons",children:[{Q:"spinner-up",create:function(a){d.Hu=a},children:[{Q:"icon-13 icon-13-spinner-arrows"}]},{Q:"spinner-down",create:function(a){d.qs=a},children:[{Q:"icon-13 icon-13-spinner-arrows"}]}]}]}));this.ha=a.disabled||!1;this.min=a.min||0;this.max=a.max===h?
100:a.max;this.step=a.step||1;this.round=a.round||0;this.loop=!!a.loop;this.La=a.La||"";this.Ba=a.Ba||0;this.value=0;this.va(a.value||this.Ba||0,!0);this.Fa=[];this.Ds=[];this.Er=[];a.change&&this.Wb(a.change);a.focus&&this.Ds.push(a.focus);a.blur&&this.Er.push(a.blur);b&&this.appendTo(b,c);this.input.change(function(){d.ha||d.va(rc([parseFloat($(this).val()),d.Ba,d.value]))}).keydown(function(a){if(!d.ha){var b=a.keyCode;b==38?(Fn(d),a.preventDefault()):b==40?(Gn(d),a.preventDefault()):b==13&&(d.input.change(),
a.preventDefault())}}).focus(function(){Hn(d)}).blur(function(){In(d)});this.Hu.click(function(){d.ha||Fn(d)});this.qs.click(function(){d.ha||Gn(d)});this.ha&&this.disable()}function Fn(a){var b=(Math.round(a.value/a.step)+1)*a.step;a.loop&&b>a.max&&(b=a.min+(b-(a.max+1)));a.va(b)}function Gn(a){var b=(Math.round(a.value/a.step)-1)*a.step;a.loop&&b<a.min&&(b=a.max+1-(a.min-b));a.va(b)}q=En.prototype;
q.va=function(a,b){if(!Na(a,this.value)){a=parseFloat(a);if(isNaN(a)){if(this.Ba!==l)this.value=this.Ba}else this.value=a>this.max?this.max:a<this.min?this.min:a,this.value=1*this.value.toFixed(this.round);this.Cb(!!b)}this.input.val(na(this.value)?this.value:bc(this.value,this.round)+this.La)};q.Cb=function(a){var b=this;A(this.Fa,function(c){c.call(b,b.value,!!a)})};function Hn(a){setTimeout(function(){a.input.select()},10);A(a.Ds,function(b){b.call(a,a.value)})}
function In(a){A(a.Er,function(b){b.call(a)})}q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};q.ca=function(a){if(this.ha)return this;this.va(a,!0);return this};q.sb=ea("value");q.reset=function(){this.Ba!==l&&this.va(this.Ba,!0);return this};q.Wb=function(a){this.Fa.push(a);return this};q.focus=function(){this.input.focus();return this};q.blur=function(){this.input.blur();return this};
q.enable=function(){this.J.removeClass("disabled");this.input.removeAttr("disabled");this.ha=!1;return this};q.disable=function(){this.J.addClass("disabled");this.input.attr("disabled","disabled");this.ha=!0;return this};q.destroy=function(){this.J.remove();this.Fa=l};function vi(a){return!a?l:na(a)?new I(a):a.Hd?new I(a):a.kf?new Mh(a):a.jf?new Nh(a):a.url?new Mh(a):qa(a)?new Nh(a):l};function Jn(){var a=this;this.cc={text:{title:"Drag Markers To Pick A Color",Vp:"new",Ch:"current",wd:"OK",cancel:"Cancel"},Nc:{Rr:{Vp:"New Color - Press &ldquo;OK&rdquo; To Commit",Ch:"Click To Revert To Original Color"},hb:{wd:"Commit To This Color Selection",cancel:"Cancel And Revert To Original Color"},Ss:{pe:"Set To &ldquo;Hue&rdquo; Color Mode",Rd:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)"},$t:{pe:"Set To &ldquo;Saturation&rdquo; Color Mode",Rd:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)"},
value:{pe:"Set To &ldquo;Value&rdquo; Color Mode",Rd:"Enter A &ldquo;Value&rdquo; Value (0-100%)"},red:{pe:"Set To &ldquo;Red&rdquo; Color Mode",Rd:"Enter A &ldquo;Red&rdquo; Value (0-255)"},green:{pe:"Set To &ldquo;Green&rdquo; Color Mode",Rd:"Enter A &ldquo;Green&rdquo; Value (0-255)"},blue:{pe:"Set To &ldquo;Blue&rdquo; Color Mode",Rd:"Enter A &ldquo;Blue&rdquo; Value (0-255)"},alpha:{pe:"Set To &ldquo;Alpha&rdquo; Color Mode",Rd:"Enter A &ldquo;Alpha&rdquo; Value (0-100)"},tb:{Rd:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",
alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)"}}};this.po=this.Bo=this.sr=this.Dr=this.Gs=this.Tt=this.Mu=this.Zt=this.Ms=this.Ec=this.Rc=this.wh=this.Ci=this.am=this.$l=this.Bi=this.Zl=this.Qr=this.Di=this.Zj=this.Dd=this.Be=l;this.Vb=new I("#ff0000");this.Ch=new I(this.Vb);this.mode="h";this.he=this.Io=this.Ag=l;this.J=$(y({Q:"color-picker"}));this.Zp=this.Dt=this.jk=o();this.hc=!1;this.dialog=new se(l,{title:"Color Picker",$c:!0,open:function(){a.hc=!0},close:function(){a.hc=!1},fe:{}});this.dialog.J.addClass("colorpickerdialog");
this.dialog.kd(this.J);this.Tc()}Jn.prototype.close=function(a){this.hc=!1;this.dialog.close();a&&this.Zp();this.Zp=this.jk};Jn.prototype.open=function(a,b,c){this.hc&&this.close();this.hc=!0;this.dialog.open();Kn(this,a);Ln(this,a);this.Dt=b||this.jk;this.Zp=c||this.jk};
Jn.prototype.Tc=function(){function a(a){c&&a&&(a=wg([a[0]/255,a[1]/255,a[2]/255]),a=[a[0]*255,a[1]*255,a[2]*255]);var d=new I(a||"#00000000");b.he.append(y({Q:"swatch"+(a?"":" transparent"),css:{"background-color":a?Pf(d.tb()):"transparent"},create:function(a){a.mouseover(function(){a.addClass("selected").siblings(".selected").removeClass("selected")}).click(function(){Kn(b,d,b)}).mousedown(function(a){a.stopPropagation()})}}))}var b=this,c=!!config.useCMYKMode,d=new Fa;d.open({R:"table",attr:{cellpadding:"0",
cellspacing:"0"}});d.open({R:"tbody"});d.open({R:"tr"});d.open({R:"td",attr:{rowspan:"9"}});d.add({Q:"map",create:function(a){b.Be=a},children:[{Q:"map1",create:function(a){b.Zj=a}},{Q:"map2",create:function(a){b.Di=a}},{Q:"map3",create:function(a){b.Qr=a}},{Q:"arrow"}]});d.close();d.open({R:"td",attr:{rowspan:"9"}});d.add({Q:"bar",create:function(a){b.Dd=a},children:[{Q:"map1",create:function(a){b.Zl=a}},{Q:"map2",create:function(a){b.Bi=a}},{Q:"map3",create:function(a){b.$l=a}},{Q:"map4",create:function(a){b.am=
a}},{Q:"map5",create:function(a){b.Ci=a}},{Q:"map6",create:function(a){b.wh=a}},{Q:"arrow"}]});d.close();d.add({R:"td",Q:"preview",attr:{colspan:"2"},children:[b.cc.text.Vp,{Q:"swatch-container",children:[{Q:"swatch active",title:b.cc.Nc.Rr.Vp,create:function(a){b.Ag=a}},{Q:"swatch current",title:b.cc.Nc.Rr.Ch,create:function(a){b.Io=a;a.click(function(){Kn(b,b.Ch)})}}]},b.cc.text.Ch]});d.add({R:"td",Q:"buttons",attr:{rowspan:"9"},children:[{Q:"button fullwidth ok",title:b.cc.Nc.hb.wd,text:b.cc.text.wd,
create:function(a){a.click(function(){var a=b.Vb;Ln(b,a);b.Dt(new I(a));b.close()})}},{Q:"button fullwidth cancel",title:b.cc.Nc.hb.cancel,text:b.cc.text.cancel,create:function(a){a.click(function(){Kn(b,b.Ch);b.close(!0)})}},{R:"hr"},{Q:"grid",create:function(a){b.he=a}}]});d.close();d.open({R:"tr"});d.add({R:"td",Q:"radio",children:[{R:"label",title:b.cc.Nc.Ss.pe,children:[{R:"input",type:"radio",attr:{value:"h",checked:"checked"}},"H:"]}]});d.open({R:"td",Q:"text"});b.Ms=E(d,new En({min:0,max:360,
value:0,attr:{title:b.cc.Nc.Ss.Rd},La:"\u00b0",change:function(a,c){if(!c){var d=ig(b.Vb);Kn(b,ig(new I,[a,d[1],d[2],b.Vb.ga()]))}}}));d.close();d.close();d.open({R:"tr"});d.add({R:"td",Q:"radio",children:[{R:"label",title:b.cc.Nc.$t.pe,children:[{R:"input",type:"radio",attr:{value:"s"}},"S:"]}]});d.open({R:"td",Q:"text"});b.Zt=E(d,new En({min:0,max:100,value:100,attr:{title:b.cc.Nc.$t.Rd},La:"%",change:function(a,c){if(!c){var d=ig(b.Vb);Kn(b,ig(new I,[d[0],a/100,d[2],b.Vb.ga()]))}}}));d.close();
d.close();d.open({R:"tr"});d.add({R:"td",Q:"radio",children:[{R:"label",title:b.cc.Nc.value.pe,children:[{R:"input",type:"radio",attr:{value:"v"}},"B:"]}]});d.open({R:"td",Q:"text"});b.Mu=E(d,new En({min:0,max:100,value:100,attr:{title:b.cc.Nc.value.Rd},La:"%",change:function(a,c){if(!c){var d=ig(b.Vb);Kn(b,ig(new I,[d[0],d[1],a/100,b.Vb.ga()]))}}}));Ia(d);d.close();d.close();d.open({R:"tr"});d.add({R:"td",Q:"radio",children:[{R:"label",title:b.cc.Nc.red.pe,children:[{R:"input",type:"radio",attr:{value:"r"}},
"R:"]}]});d.open({R:"td",Q:"text"});b.Tt=E(d,new En({min:0,max:255,value:255,attr:{title:b.cc.Nc.red.Rd},change:function(a,c){c||Kn(b,(new I(b.Vb)).Ua(a))}}));d.close();d.close();d.open({R:"tr"});d.add({R:"td",Q:"radio",children:[{R:"label",title:b.cc.Nc.green.pe,children:[{R:"input",type:"radio",attr:{value:"g"}},"G:"]}]});d.open({R:"td",Q:"text"});b.Gs=E(d,new En({min:0,max:255,value:0,attr:{title:b.cc.Nc.green.Rd},change:function(a,c){c||Kn(b,(new I(b.Vb)).Nh(a))}}));d.close();d.close();d.open({R:"tr"});
d.add({R:"td",Q:"radio",children:[{R:"label",title:b.cc.Nc.blue.pe,children:[{R:"input",type:"radio",attr:{value:"b"}},"B:"]}]});d.open({R:"td",Q:"text"});b.Dr=E(d,new En({min:0,max:255,value:0,attr:{title:b.cc.Nc.blue.Rd},change:function(a,c){c||Kn(b,(new I(b.Vb)).gb(a))}}));d.close();d.close();d.open({R:"tr"});d.add({R:"td",Q:"radio",children:[{R:"label",title:b.cc.Nc.alpha.pe,children:[{R:"input",type:"radio",attr:{value:"a"}},"A:"]}]});d.open({R:"td",Q:"text"});b.sr=E(d,new En({min:0,max:100,
value:100,attr:{title:b.cc.Nc.alpha.Rd},La:"%",change:function(a,c){c||Kn(b,(new I(b.Vb)).ga(a/100))}}));d.close();d.close();d.open({R:"tr",Q:"hex"});d.open({R:"td",Q:"text",attr:{colspan:"2"}});d.add({Q:"left",html:"#&nbsp;"});b.Bo=E(d,new re({value:"ff0000",Fw:6,Q:"hex",change:function(a,c){if(!c){var d=new I(a+b.po.sb());d.tb().substr(1).toLowerCase()!=a.toLowerCase()?L("Invalid hex color."):Kn(b,d)}}}));b.po=E(d,new re({value:"ff",Fw:2,Q:"ahex",change:function(a,c){if(!c){var d=new I(b.Bo.sb()+
a);fg(d).substr(-2).toLowerCase()!=a.toLowerCase()?L("Invalid hex value."):Kn(b,d)}}}));d.close();d.close();d.close();d.close();this.J.empty().append($(y(d.Ie())));this.Rc=new Mn(this.Be,{map:{width:256,height:256},Uj:{width:15,height:15}});this.Rc.bind(function(a,c){var d=fg(b.Vb),e=b.Vb.ga(),f=new I(b.Vb);new I(b.Vb);var m=ig(f),p=m[0],s=m[1],m=m[2];if(c==b.Rc){var u=a.val("all");switch(b.mode){case "h":ig(f,[p,u.x,1-u.y,e]);break;case "s":case "a":ig(f,[u.x,s,ac(1-u.y,4),e]);break;case "v":ig(f,
[u.x,1-u.y,m,e]);break;case "r":gg(f,[f.Ua(),255-u.y,u.x,e]);break;case "g":gg(f,[255-u.y,f.Nh(),u.x,e]);break;case "b":gg(f,[u.x,255-u.y,f.gb(),e])}fg(f)!=d&&Kn(b,f,b.Rc)}});this.Ec=new Mn(this.Dd,{map:{width:20,height:256},Uj:{width:20,height:7}});this.Ec.bind(function(a,c){var d=fg(b.Vb),e=b.Vb.ga(),f=new I(b.Vb),m=ig(f),p=m[0],s=m[1],m=m[2];if(c==b.Ec){var u=a.val("y");switch(b.mode){case "h":ig(f,[360-u,s,m,e]);break;case "s":ig(f,[p,1-u,m,e]);break;case "v":ig(f,[p,s,1-u,e]);break;case "r":f.Ua(255-
u);break;case "g":f.Nh(255-u);break;case "b":f.gb(255-u);break;case "a":f.ga(1-u)}fg(f)!=d&&Kn(b,f,b.Ec)}});this.J.find("input:radio").click(function(){b.J.find("input:radio").not($(this)).removeAttr("checked");Nn(b,$(this).val())});for(var e=new I,d=0;d<360;d+=30){d==0?a(l):(ig(e,[0,0,(330-d)/300]),a(kg(e)));for(var f=0;f<9;f++)f%2==0&&(jg(e,[d,1,(9-f)/10]),a(kg(e)))}b.he.append(y({Q:"clear"}));Nn(this,"h");Kn(this,new I("#ff0000"))};
function On(a,b){a.css({"background-color":b&&b.ga()&&b.tb()||"transparent"})}function Pn(a,b){a.css({visibility:b>0?"visible":"hidden"});b>0&&b<1?a.css({opacity:b}):a.css({opacity:""})}function Ln(a,b){gg(a.Ch,gg(b));On(a.Io,b);Pn(a.Io,b.ga())}
function Nn(a,b){var c=a.Vb;a.mode=b;a.Be.removeClass("h s v r g b a");a.Dd.removeClass("h s v r g b a");switch(b){case "h":On(a.Be.addClass("h"));Pn(a.Zj,1);Pn(a.Di,1);On(a.Dd.addClass("h"));Pn(a.Zl,1);Pn(a.Bi,1);Pn(a.$l,1);Pn(a.am,1);Pn(a.wh,1);Qn(a.Rc,"all",{Bb:0,Ab:1,Ta:0,Sa:1});Qn(a.Ec,"rangeY",{Ta:0,Sa:360});break;case "s":On(a.Be.addClass("s"));a.Dd.addClass("s");Pn(a.wh,1);Qn(a.Rc,"all",{Bb:0,Ab:360,Ta:0,Sa:1});Qn(a.Ec,"rangeY",{Ta:0,Sa:1});break;case "v":On(a.Be.addClass("v"),new I("#000000"));
On(a.Dd.addClass("v"),c);Pn(a.Bi,1);Pn(a.wh,1);Qn(a.Rc,"all",{Bb:0,Ab:360,Ta:0,Sa:1});Qn(a.Ec,"rangeY",{Ta:0,Sa:1});break;case "r":a.Be.addClass("r");a.Dd.addClass("r");Qn(a.Rc,"all",{Bb:0,Ab:255,Ta:0,Sa:255});Qn(a.Ec,"rangeY",{Ta:0,Sa:255});break;case "g":a.Be.addClass("g");a.Dd.addClass("g");Qn(a.Rc,"all",{Bb:0,Ab:255,Ta:0,Sa:255});Qn(a.Ec,"rangeY",{Ta:0,Sa:255});break;case "b":a.Be.addClass("b");a.Dd.addClass("b");Qn(a.Rc,"all",{Bb:0,Ab:255,Ta:0,Sa:255});Qn(a.Ec,"rangeY",{Ta:0,Sa:255});break;case "a":On(a.Be.addClass("a"));
a.Dd.addClass("a");Pn(a.Bi,1);Pn(a.wh,1);Qn(a.Rc,"all",{Bb:0,Ab:360,Ta:0,Sa:1});Qn(a.Ec,"rangeY",{Ta:0,Sa:1});break;default:aa("Invalid Mode")}switch(b){case "s":case "v":case "a":Pn(a.Zj,1);Pn(a.Zl,1);Pn(a.$l,1);Pn(a.am,1);break;case "r":case "g":case "b":On(a.Be),On(a.Dd),Pn(a.Zl,1),Pn(a.Zj,1),Pn(a.wh,1)}Kn(a,a.Vb)}
function Kn(a,b,c){a.Vb.clone(b);var d=ig(b),e=d[0],f=d[1],d=d[2],g=b.Ua(),i=b.Nh(),j=b.gb(),k=b.ga();switch(a.mode){case "h":a.Rc.val("xy",{x:f,y:1-d},c);break;case "s":case "a":a.Rc.val("xy",{x:e,y:1-d},c);break;case "v":a.Rc.val("xy",{x:e,y:1-f},c);break;case "r":a.Rc.val("xy",{x:j,y:255-i},c);break;case "g":a.Rc.val("xy",{x:j,y:255-g},c);break;case "b":a.Rc.val("xy",{x:g,y:255-i},c)}switch(a.mode){case "h":a.Ec.val("y",360-e,c);break;case "s":a.Ec.val("y",1-f,c);break;case "v":a.Ec.val("y",1-
d,c);break;case "r":a.Ec.val("y",255-g,c);break;case "g":a.Ec.val("y",255-i,c);break;case "b":a.Ec.val("y",255-j,c);break;case "a":a.Ec.val("y",1-k,c)}On(a.Ag,b);Pn(a.Ag,k);switch(a.mode){case "h":On(a.Be,ig(new I,[e,1,1]));break;case "s":case "a":Pn(a.Di,1-f);break;case "v":Pn(a.Zj,d);break;case "r":Pn(a.Di,If(g/255,0,1));break;case "g":Pn(a.Di,If(i/255,0,1));break;case "b":Pn(a.Di,If(j/255,0,1))}Pn(a.Qr,1-k);switch(a.mode){case "h":Pn(a.Ci,1-k);break;case "s":On(a.Dd,ig(new I,[e,1,d]));Pn(a.Bi,
1-d);Pn(a.Ci,1-k);break;case "v":On(a.Dd,ig(new I,[e,f,1]));Pn(a.Ci,1-k);break;case "r":case "g":case "b":var n=c=0;a.mode=="r"?(c=j,n=i):a.mode=="g"?(c=j,n=g):a.mode=="b"&&(c=g,n=i);var m=n>c?c:n;Pn(a.Bi,c>n?(c-n)/(255-n):0);Pn(a.$l,n>c?(n-c)/(255-c):0);Pn(a.am,If(m/255,0,1));Pn(a.Ci,1-k);break;case "a":On(a.Dd,b),Pn(a.Ci,0),Pn(a.wh,1)}a.Ms.ca(e);a.Zt.ca(f*100);a.Mu.ca(d*100);a.Tt.ca(g);a.Gs.ca(i);a.Dr.ca(j);a.sr.ca(k*100);a.Bo.ca(b.tb().substr(1));a.po.ca(fg(b).substr(-2))}
function Mn(a,b){function c(b){var c=b.pageX-f,b=b.pageY-g,c=If(c,0,a.wb),b=If(b,0,a.ob);i.val("xy",{x:c/a.wb*i.dl+i.Bb,y:b/a.ob*i.el+i.Ta})}function d(a){$(document).unbind("mouseup",d).unbind("mousemove",e);a.stopPropagation();a.preventDefault();return!1}function e(a){clearTimeout(k);k=setTimeout(function(){c.call(i,a)},0);a.stopPropagation();a.preventDefault();return!1}var f,g;this.Bb=0;this.dl=this.Ab=1;this.Ta=0;this.el=this.Sa=1;this.y=this.x=0;this.Vj=[];var i=this,j=a.find(".arrow:first"),
k;j.wb=b.Uj&&b.Uj.width||j.width();j.ob=b.Uj&&b.Uj.height||j.height();a.wb=b.map&&b.map.width||a.width();a.ob=b.map&&b.map.height||a.height();a.mousedown(function(b){var j=a.offset();f=j.left|0;g=j.top|0;clearTimeout(k);k=setTimeout(function(){c.call(i,b)},0);$(document).bind("mousemove",e).bind("mouseup",d);b.preventDefault()});this.bind.call(i,function(){var b=0,c=0;i.dl>0&&(b=i.x==i.Ab?a.wb:i.x/i.dl*a.wb|0);i.el>0&&(c=i.y==i.Sa?a.ob:i.y/i.el*a.ob|0);j.wb>=a.wb?b=(a.wb>>1)-(j.wb>>1):b-=j.wb>>1;
j.ob>=a.ob?c=(a.ob>>1)-(j.ob>>1):c-=j.ob>>1;j.css({left:b+"px",top:c+"px"})})}Mn.prototype.Pv=function(a){for(var b=0;b<this.Vj.length;b++)this.Vj[b].call(this,this,a)};
Mn.prototype.val=function(a,b,c){if(b===h){if(a===h||a==l)a="xy";switch(a.toLowerCase()){case "x":return this.x;case "y":return this.y;default:return{x:this.x,y:this.y}}}if(!(c!=l&&c==this)){var d=!1,e,f;a==l&&(a="xy");switch(a.toLowerCase()){case "x":e=b&&(b.x||!isNaN(b)&&b)||0;break;case "y":f=b&&(b.y||!isNaN(b)&&b)||0;break;default:e=b&&b.x||0,f=b&&b.y||0}if(e!=l&&(e=If(e,this.Bb,this.Ab),this.x!=e))this.x=e,d=!0;if(f!=l&&(f=If(f,this.Ta,this.Sa),this.y!=f))this.y=f,d=!0;d&&this.Pv.call(this,c||
this)}};
function Qn(a,b,c){if(c===h){if(b===h||b==l)b="all";switch(b.toLowerCase()){case "minx":return;case "maxx":return;case "rangex":return;case "miny":return;case "maxy":return;case "rangey":return;default:return}}var d,e,f,g;b==l&&(b="all");switch(b.toLowerCase()){case "minx":d=c&&(c.Bb&&c.Bb|0||!isNaN(c)&&c|0)||0;break;case "maxx":e=c&&(c.Ab&&c.Ab|0||!isNaN(c)&&c|0)||0;break;case "rangex":d=c&&c.Bb&&c.Bb|0||0;e=c&&c.Ab&&c.Ab|0||0;break;case "miny":f=c&&(c.Ta&&c.Ta|0||!isNaN(c)&&c|0)||0;break;case "maxy":g=
c&&(c.Sa&&c.Sa|0||!isNaN(c)&&c|0)||0;break;case "rangey":f=c&&c.Ta&&c.Ta|0||0;g=c&&c.Sa&&c.Sa|0||0;break;default:d=c&&c.Bb&&c.Bb|0||0,e=c&&c.Ab&&c.Ab|0||0,f=c&&c.Ta&&c.Ta|0||0,g=c&&c.Sa&&c.Sa|0||0}if(d!=l&&a.Bb!=d)a.Bb=d,a.dl=a.Ab-a.Bb;if(e!=l&&a.Ab!=e)a.Ab=e,a.dl=a.Ab-a.Bb;if(f!=l&&a.Ta!=f)a.Ta=f,a.el=a.Sa-a.Ta;if(g!=l&&a.Sa!=g)a.Sa=g,a.el=a.Sa-a.Ta}Mn.prototype.bind=function(a){this.Vj.push(a)};Mn.prototype.unbind=function(a){for(var b;(b=$.inArray(a,this.Vj))!=-1;)this.Vj.splice(b,1)};var Rn=l;
$(function(){Rn=new Jn});function Sn(a,b,c){c==l&&(c="n");this.direction=c;this.$k=12;this.J=$('<div class="callout hidden"><div class="callout-bubble gui-box-shadow"></div><div class="callout-pointer-border callout-pointer-up-border"></div><div class="callout-pointer callout-pointer-up"></div></div>');this.Zc=this.J.find(".callout-bubble");this.pn=this.J.find(".callout-pointer");this.qn=this.J.find(".callout-pointer-border");$("body").append(this.J);this.fill(b);Tn(this);this.move(a,c)}
Sn.prototype.move=function(a,b){if(this.J.parent().length==0)return this;b==l||(this.direction=b);var c=a.x,d=a.y,e=this.$k,f=!1;this.J.is(":hidden")&&(f=!0,this.J.css({opacity:"0"}).show());Tn(this);this.direction=="n"?(this.J.offset({top:d,left:c-0.5*this.J.width()}),this.Zc.offset({top:d+e,left:c-0.5*this.Zc.outerWidth()}),Un(this),this.qn.removeClass().addClass("callout-pointer-border callout-pointer-up-border").offset({top:d-e,left:c-e}),this.pn.removeClass().addClass("callout-pointer callout-pointer-up").offset({top:d-
(e-1),left:c-e})):this.direction=="e"?(this.J.offset({top:d-0.5*this.J.height(),left:c-this.J.width()}),this.Zc.offset({top:d-0.5*this.Zc.outerHeight(),left:c-this.J.width()}),Un(this),this.qn.removeClass().addClass("callout-pointer-border callout-pointer-right-border").offset({top:d-e,left:c-e-1}),this.pn.removeClass().addClass("callout-pointer callout-pointer-right").offset({top:d-e,left:c-e-2})):this.direction=="s"?(this.J.offset({top:d-this.J.height(),left:c-0.5*this.J.width()}),this.Zc.offset({top:d-
this.J.height(),left:c-0.5*this.Zc.outerWidth()}),Un(this),this.qn.removeClass().addClass("callout-pointer-border callout-pointer-down-border").offset({top:d-e-1,left:c-e}),this.pn.removeClass().addClass("callout-pointer callout-pointer-down").offset({top:d-e-2,left:c-e})):this.direction=="w"&&(this.J.offset({top:d-0.5*this.J.height(),left:c}),this.Zc.offset({top:d-0.5*this.Zc.outerHeight(),left:c+e}),Un(this),this.qn.removeClass().addClass("callout-pointer-border callout-pointer-left-border").offset({top:d-
e,left:c-e}),this.pn.removeClass().addClass("callout-pointer callout-pointer-left").offset({top:d-e,left:c-(e-1)}));f&&this.J.hide().css({opacity:""});return this};function Un(a){var b=a.J.offset(),c=b.left,b=b.top,d=a.J.width(),e=a.J.height(),f=$(window).width(),g=$(window).height();(c<10||b<10)&&a.J.offset({left:Math.max(10,c),top:Math.max(10,b)});(c+d>f-10||b+e>g-10)&&a.J.offset({left:Math.min(f-10-d,c),top:Math.min(g-10-e,b)})}
function Tn(a){var b,c;a.direction=="n"||a.direction=="s"?(b=a.Zc.outerWidth(!0),c=a.Zc.outerHeight(!0)+a.$k+1):a.direction=="e"||a.direction=="w"?(b=a.Zc.outerWidth(!0)+a.$k+1,c=a.Zc.outerHeight(!0)):(b=a.Zc.outerWidth(!0)+a.$k+1,c=a.Zc.outerHeight(!0)+a.$k+1);a.J.css({width:b+"px",height:c+"px"})}Sn.prototype.fill=function(a){this.Zc.empty().append(a);this.J.is(":visible")&&(Tn(this),Un(this));return this};Sn.prototype.show=function(){this.J.appendTo("body");this.J.show();return this};
Sn.prototype.hide=function(){this.J.hide();return this};function Vn(){var a=this;this.Ca=!1;this.Fl=l;this.Gj=[];this.Lu=12;this.xi=this.sl=l;this.J=$(y({Q:"simple-color-picker",children:[{Q:"swatch-container",create:function(b){a.Fl=b;b.mouseleave(function(){b.find(".selected").removeClass("selected")})}},{Q:"spacer"},{Q:"swatch-container",create:function(b){a.sl=b;b.mouseleave(function(){b.find(".selected").removeClass("selected");a.zj&&a.zj.addClass("selected")})}},{Q:"button-container",create:function(b){a.xi=b}}]}));this.wo=new Sn(new G(0,0),this.J,
"n");this.wo.Zc.mousedown(function(a){a.stopPropagation()});this.Uq={};this.V=this.Bd=this.Jq=this.zj=l;this.lb();J("gui.closeAllYerStuff",function(){a.hide()});this.vm=new dn(function(){a.Ca&&Wn(a)},500);$(document).bind("documentAction",function(){a.vm.queue()});J("viewport.pages",function(b){a.V=b;a.vm.queue(100)},!0);$(document).bind("documentLoaded",function(){a.vm.queue(100)})}q=Vn.prototype;
q.lb=function(){function a(a){c&&a&&(a=wg([a[0]/255,a[1]/255,a[2]/255]),a=[a[0]*255,a[1]*255,a[2]*255]);b.sl.append(y({Q:"swatch"+(a?"":" transparent"),css:{"background-color":a?"rgb("+Math.round(a[0])+","+Math.round(a[1])+","+Math.round(a[2])+")":"transparent"},create:function(c){var d=l;a&&(d=new I(a),b.Uq[d.tb().toLowerCase()]=c);c.mouseover(function(){c.addClass("selected").siblings(".selected").removeClass("selected")}).click(function(){(!b.Bd||b.Bd(d)!=!1)&&b.hide()}).mousedown(function(a){a.stopPropagation()})}}))}
var b=this,c=!!config.useCMYKMode,d;this.Uq={};this.sl.empty();var e=new I;a(l);for(d=0;d<11;d++)ig(e,[0,0,(10-d)/10]),a(kg(e));for(var f=0;f<9;f++)for(d=0;d<360;d+=30)jg(e,[d,1,(9-f)/10]),a(kg(e));this.sl.append(y({Q:"clear"}))};
function Xn(a,b){a.xi.empty();b=qc(b||[]);b.unshift({label:"Advanced",na:"hue-circle",Pa:"Open the advanced color picker",action:function(b){Rn.open(b||new I("#ffffff"),function(b){a.Bd&&a.Bd(b)})}});A(b,function(b){var d=[];b.na&&d.push({Q:"icon-21 icon-21-"+b.na});b.label&&d.push(b.label);a.xi.append(y({Q:"button"+(b.na?" has-icon-21"+(b.label?"":" onlyicon"):""),title:b.Pa||"",create:function(d){d.click(function(){a.hide();b.action(a.Jq)})},children:d}))})}
q.show=function(a,b,c,d,e){J.set("gui.closeAllYerStuff");this.sl.find(".selected").removeClass("selected");this.Bd=c;d?(this.zj=this.Uq[d.tb().toLowerCase()]||l,this.Jq=d,this.zj&&this.zj.addClass("selected")):this.Jq=this.zj=l;Xn(this,e||[]);this.Ca=!0;this.vm.trigger();this.wo.show().move(new G(a,b))};q.hide=function(){this.Ca=!1;this.wo.hide()};
q.lv=function(a,b){a=qa(a)&&a.base||a;if(na(a)&&(b=b?b:1,a&&a.toLowerCase()!="transparent")){var c=new I(a,"#000000ff"),d=fg(c),c=c.ga();d!="#ffffffff"&&d!="#000000ff"&&c!=0&&(this.mj[d]?this.mj[d]+=b:this.mj[d]=b)}};q.kv=function(a,b){a=qa(a)&&a.base||a;if(na(a)&&(b=b?b:1,a&&a.toLowerCase()!="transparent")){var c=new I(a,"#000000ff"),d=fg(c),c=c.ga();d!="#ffffffff"&&d!="#000000ff"&&c!=0&&(this.fm[d]?this.fm[d]+=b:this.fm[d]=b)}};
function Yn(a,b){if(qa(a))A(a.m,function(a){a=uc(a);a.name=="color"&&b(pg(a.val,"#000000ff"))});else if(a){var c=a.match(/\"v\":\"[0-9a-f]{6,8}\"/gi);if(c)for(var d=0;d<c.length;d++)c[d]=c[d].replace(/[^0-9a-f]/gi,""),b(pg(c[d],"#000000ff"));else{if(c=a.match(/#[0-9a-f]{6}/gi))for(d=0;d<c.length;d++)b(pg(c[d],"#000000ff"));if(c=a.match(qg))for(d=0;d<c.length;d++)b(pg(c[d],"#000000ff"))}}}
function Wn(a){a.mj={};a.fm={};a.Gj=[];if(a.V&&!(a.V.length<=0)){var b=function(a,b,c){c=c||0;a.qd(function(){b(this.q.get("LineColor"),2+c);var a=this.q.get("TextAreas"),d;for(d in a){var j=a[d];j&&j.Value&&Yn(j.Value,b)}});a.df(function(){if(!this.Zg){b(this.q.get("FillColor"),3+c);b(this.q.get("LineColor"),2+c);for(var a in this.la)Yn(this.q.get(a),b)}})},c={};A(a.V,function(d){d=d.C;c[d.id]=!0;b(d,r(a.lv,a))});hc(a.mj)<a.Lu&&a.V[0].C.document.ee(function(){c[this.id]||b(this,r(a.kv,a),-1)});Zn(a);
$n(a)}}function Zn(a){for(var b=!0,c=a.mj,d,e,f=0;b&&f<1E5;){d=-1;e=l;for(var g in c)c[g]>d&&(d=c[g],e=new I(g));if(e){c[fg(e)]=-1;delete c[fg(e)];a:{d=a;for(var i=0;i<d.Gj.length;i++)if(fg(d.Gj[i])==fg(e))break a;d.Gj.push(e)}}else c==a.mj?c=a.fm:b=!1;f++}}
function $n(a){function b(b){a.Fl.append(y({Q:"swatch",css:{background:Pf(b.tb()),"background-color":gb(b)},create:function(c){c.mouseover(function(){c.addClass("selected").siblings(".selected").removeClass("selected")}).click(function(){(!a.Bd||a.Bd(b)!=!1)&&a.hide()}).mousedown(function(a){a.stopPropagation()})}}))}a.Fl.empty();for(var c=0;c<a.Lu;c++)a.Gj[c]?b(a.Gj[c]):a.Fl.append(y({Q:"swatch"}));a.Fl.append(y({Q:"clear"}))}var ao=new Vn;function bo(a,b,c){var a=a||{},d=this;this.Tq=this.hh=l;this.J=$(y({Q:"color-well"+(a.size?" "+a.size:""),children:[{Q:"color-well-wrapper",children:[{Q:"swatch-container",create:function(b){b.click(function(){if(!d.ha){var c=b.offset();ao.show(c.left+b.width()/2,c.top+b.height()+2,function(a){d.va(a)},d.value&&d.value.Hd?d.value:l,a.hb||l)}})},children:[{Q:"swatch",create:function(a){d.hh=a},children:[{R:"canvas",css:{position:"absolute"}}]},{Q:"border"}]}]}]}));this.ha=a.disabled||!1;this.value=
a.value||new I("#fff");this.Fa=[];a.change&&this.Wb(a.change);b&&this.appendTo(b,c);this.ha&&this.disable()}q=bo.prototype;
q.Ja=function(a){if(!this.Tq){if(!a&&!this.hh.is(":visible"))return;a=this.hh.children("canvas").attr({width:this.hh.width(),height:this.hh.height()});this.Tq=fb(a)}var a=this.Tq.getContext(),b=this.value;this.J.removeClass("image-fill no-fill");this.ha&&(b="#ccccccff");b?b.kf&&this.J.addClass("image-fill"):this.J.addClass("no-fill");var c=a.canvas.width,d=a.canvas.height,e=new H(0,0,c,d);a.clearRect(0,0,c,d);if((b=vi(b))&&!b.kf)a.save(),b.Hd?a.fillStyle=gb(b):b.jf&&Rh(a,b,e),a.fillRect(0,0,c,d),
a.restore()};q.va=function(a,b){this.value=a;this.Ja();this.Cb(!!b)};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":""}).appendTo(a);return this};q.sb=ea("value");q.ca=function(a){this.va(vi(a)||l,!0);return this};q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.J.removeClass("disabled");this.ha=!1;this.Ja();return this};q.disable=function(){this.J.addClass("disabled");this.ha=!0;this.Ja();return this};
q.reset=function(){this.va(l,!0);return this};q.destroy=function(){this.J.remove();this.Fa=l};function co(a,b,c,d){b=b||{};this.vo=a;this.J=$(y({}));this.ha=b.disabled||!1;this.separator=b.separator||"";this.value=l;this.vx="radio_"+Ua();this.Fa=[];b.change&&this.Wb(b.change);c&&this.appendTo(c,d);this.refresh();this.ha&&this.disable()}q=co.prototype;q.va=function(a){if(this.value!=a)this.value=a,this.Cb()};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};
q.refresh=function(){var a=this,b=l;this.J.empty();A(this.vo,function(c,d){var e=c.checked&&c.checked(),f=a.ha||c.disabled&&c.disabled();if(e)b=c.value;var g={name:a.vx};e&&(g.checked="checked");f&&(g.disabled="disabled");a.separator&&d!=0&&a.J.append(a.separator);a.J.append(y({R:"label",Q:f?"disabled":"",children:[{R:"input",type:"radio",attr:g,create:function(b){f||b.bind("change",function(){a.va(c.value)})}},{R:"span",text:" "+(c.label||"")}]}))});if(this.value!=b)this.value=b,this.Cb(!0);return this};
q.sb=ea("value");q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.ha=!1;return this.refresh()};q.disable=function(){this.ha=!0;return this.refresh()};q.destroy=function(){this.J.remove();this.Fa=l};function eo(a){var b=this;this.Kn=this.Jn=l;this.J=$(y({Q:"colorstop-slider",children:[{Q:"slider-bar",create:function(a){b.Jn=a}},{Q:"slider-container",create:function(a){b.Kn=a}}]})).appendTo(a);this.og=[];this.Ls=l;this.Ht=o();this.Ax=o();this.Wl=o();this.Kn.click(function(a){var d=$(this).offset(),e=$(this).children(".slider").outerWidth(),f=$(this).width()-e,g=If((a.pageX-(d.left+e/2))/f,0,1),i=l,j=l;A(b.og,function(a){a=a.Zd;if(a.Ia<=g&&(!i||a.Ia>i.Ia))i=a;if(a.Ia>g&&(!j||a.Ia<j.Ia))j=a});i&&
j?(a=new I(i.color),mg(a,j.color,(j.Ia-g)/(j.Ia-i.Ia))):a=i&&i.color||j&&j.color;b.addColorStop(a,g)})}eo.prototype.Tc=function(){if(!this.tw&&this.J.is(":visible")){this.tw=!0;var a=document.createElement("canvas");a.height=this.Jn.height();a.width=this.Jn.width();this.ql=fb(a);this.Jn.append(this.ql)}};function fo(a){A(a.og,function(a){a.destroy()});a.og=[];a.Kn.empty()}
eo.prototype.addColorStop=function(a,b){var c=this;this.og.push(new go(this.Kn,new Oh(a,b),function(){ho(c)},function(){ho(c);c.Wl()},this.Ht));ho(this);this.Wl(!0)};
function ho(a){var b=[];A(a.og,function(a){a.gs||b.push(a)});b.sort(function(a,b){return a.Zd.Ia-b.Zd.Ia});a.og=b;if(a.ql){var c=a.ql.getContext();c.save();var d=a.ql.width(),e=a.ql.height(),f=c.createLinearGradient(0,0,d,0);A(a.og,function(a){a=a.Zd;f.addColorStop(a.Ia,gb(a.color))});c.fillStyle=f;c.clearRect(0,0,d,e);c.fillRect(0,0,d,e);c.restore()}}function jo(a,b,c,d){a.Tc();a.Ls=new Nh(b);a.Ax=o();a.Wl=c;a.Ht=d;fo(a);A(hg(a.Ls),function(b){a.addColorStop(b.color,b.Ia)})}
function ko(a){A(a.og,function(a){a.Zd.Ia=1-a.Zd.Ia});ho(a);a.Wl(!1)}function lo(a){var b=[];A(a.og,function(a){a.gs||b.push(a.Zd)});return b}
function go(a,b,c,d,e){function f(){var a=g.J.offset();e(g.Zd.color,new G(a.left+0.5*g.J.outerWidth(!0),a.top+g.J.outerHeight(!0)+2),function(a){g.Zd.color=new I(a);g.color();d()})}var g=this;this.Zd=b;this.hh=l;this.parent=a;this.J=$(y({Q:"slider",children:[{Q:"bg"},{Q:"color",create:function(a){g.hh=a}},{Q:"overlay"}]})).appendTo(a);this.td=this.parent.width()-this.J.outerWidth();this.color();this.move();var i=0,j=0,k=!1;xn(this.J,"colorStopSlider",function(){i=g.J.position().left;g.J.siblings(".slider").prependTo(g.parent);
j=g.parent.children(".slider").length;k=!1;g.td=g.parent.width()-g.J.outerWidth()},function(a,b){j>2&&(Math.abs(b)>20?g.J.hide():g.J.show());g.Zd.Ia=If(i+a,0,g.td)/g.td;g.move();c();if(Math.abs(a)>1||Math.abs(b)>1)k=!0},function(a,b){j>2&&Math.abs(b)>20?(g.destroy(),d()):k?d():f()});this.J.click(function(a){a.stopPropagation()})}go.prototype.color=function(){this.hh.css({"background-color":Pf(this.Zd.color.tb()),opacity:this.Zd.color.ga()})};
go.prototype.move=function(){this.J.css({left:Math.round(If(this.Zd.Ia,0,1)*this.td)+"px"})};go.prototype.destroy=function(){this.J.remove();this.gs=!0};var mo,no,oo,po;function qo(){return ha.navigator?ha.navigator.userAgent:l}po=oo=no=mo=!1;var ro;if(ro=qo()){var so=ha.navigator;mo=ro.indexOf("Opera")==0;no=!mo&&ro.indexOf("MSIE")!=-1;oo=!mo&&ro.indexOf("WebKit")!=-1;po=!mo&&!oo&&so.product=="Gecko"}var to=no,uo=po,vo=oo,wo=ha.navigator,xo=(wo&&wo.platform||"").indexOf("Mac")!=-1,yo;
a:{var zo="",Ao;if(mo&&ha.opera)var Bo=ha.opera.version,zo=typeof Bo=="function"?Bo():Bo;else if(uo?Ao=/rv\:([^\);]+)(\)|;)/:to?Ao=/MSIE\s+([^\);]+)(\)|;)/:vo&&(Ao=/WebKit\/(\S+)/),Ao)var Co=Ao.exec(qo()),zo=Co?Co[1]:"";if(to){var Do,Eo=ha.document;Do=Eo?Eo.documentMode:h;if(Do>parseFloat(zo)){yo=String(Do);break a}}yo=zo}var Fo={},Go={};function Ho(a){this.ek=a}var Io=/\s*;\s*/;q=Ho.prototype;q.set=function(a,b,c,d,e,f){/[;=\s]/.test(a)&&aa(Error('Invalid cookie name "'+a+'"'));/[;\r\n]/.test(b)&&aa(Error('Invalid cookie value "'+b+'"'));c!==h||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=c<0?"":c==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(za()+c*1E3)).toUTCString();this.ek.cookie=a+"="+b+e+d+c+f};
q.get=function(a,b){for(var c=a+"=",d=(this.ek.cookie||"").split(Io),e=0,f;f=d[e];e++)if(f.indexOf(c)==0)return f.substr(c.length);return b};q.remove=function(a,b,c){var d=this.Do(a);this.set(a,"",0,b,c);return d};q.Si=function(){return Jo(this).keys};q.xk=function(){return Jo(this).Gl};q.wm=function(){return!this.ek.cookie?0:(this.ek.cookie||"").split(Io).length};q.Do=function(a){return this.get(a)!==h};q.clear=function(){for(var a=Jo(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};
function Jo(a){for(var a=(a.ek.cookie||"").split(Io),b=[],c=[],d,e,f=0;e=a[f];f++)d=e.indexOf("="),d==-1?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,Gl:c}}var Ko=new Ho(document);Ko.by=3950;function Lo(a,b){var c=this;this.Ao=this.body=this.$b=this.J=l;$(a).append(y({Q:"dock-panel",create:function(a){c.J=a},children:[{Q:"dock-panel-header",create:function(a){c.$b=a;a.dblclick(function(a){c.collapsed?c.expand():c.collapse();a.stopPropagation()})},children:[{Q:"control",create:function(a){a.click(function(a){c.hide();a.stopPropagation()})},children:[{Q:"icon-13 icon-13-close"}]},{Q:"control",create:function(a){a.click(function(a){c.collapsed?c.expand():c.collapse();a.stopPropagation()})},
children:[{Q:"icon-13 icon-13-minimize",create:function(a){c.Ao=a}}]}]},{Q:"dock-panel-body"+(b?"":" grid"),create:b?function(a){c.body=a}:l,children:b?l:[{Q:"grid_12",create:function(a){c.body=a}},{Q:"clear"}]}]}));this.Ca=l;this.Kh=this.collapsed=!1;this.cm=0;this.Au=[];this.kb=!1;this.Pt=!0}function Mo(a){A(a.Au,function(a){a()})}
function No(a,b){var c=[],d=y({}),e=new Fa,f;switch(b.length){case 2:f="two";break;case 3:f="three";break;case 4:f="four";break;case 5:f="five";break;case 6:f="six"}e.open({Q:"dock-panel-tabs "+f});A(b,function(a){var b=y(a.content).hide().appendTo(d);e.add({Q:"dock-panel-tab",create:function(d){function e(){var c=a.Bd||l;d.addClass("selected").siblings().removeClass("selected");b.siblings().hide();b.show();c&&c()}c.push(e);d.click(e)},children:[{Q:"dock-panel-tab-content",text:a.label}]})});e.close();
e.add(d);a.append(y(e.Ie()));c[0]()}q=Lo.prototype;q.Tc=function(a){if(!a){var a={v:0,p:0,c:0},b=Ko.get("dockPanel."+this.name.replace(" ",""),"");b&&(a=gc(b))}la(a.p)?this.position(this.J.parent().width()-a.p[0]-this.J.outerWidth(),a.p[1]):this.position();a.v?this.show():this.hide();a.c?this.collapse():this.expand()};function Oo(a,b){a.cm=b}
q.position=function(a,b,c){a!==h&&b!==h?(this.Kh=[this.J.parent().width()-(a+this.J.outerWidth()),b],c||this.J.css({left:a+"px",top:b+"px",right:"auto"})):(this.Kh=!1,this.J.css({top:this.cm+"px",left:"",right:""}))};function Po(a){return{v:a.Ca&&a.Pt?1:0,p:a.Kh||0,c:a.collapsed?1:0}}function Qo(a){Ko.set("dockPanel."+a.name.replace(" ",""),nd(Po(a)),1E8)}function Ro(a){if(!a.Kh){var b=a.cm+a.J.height(),c=a.J.parent().parent().height();b>c&&a.J.css({top:a.cm+c-b+"px",left:"",right:""})}}
q.toggle=function(){this.Ca?this.hide():this.show()};q.hide=function(){if(this.Ca!==!1)this.Ca=!1,Qo(this),this.J.hide(),Mo(this)};q.show=function(){if(this.Ca!==!0)Ro(this),this.Ca=!0,Qo(this),this.J.show(),Mo(this)};q.Uc=function(){return!this.kb?(this.kb=!0,this.Ex=Po(this),this.hide(),!0):!1};q.pc=function(){return this.kb?(this.Tc(this.Ex),this.kb=!1,!0):!1};
q.collapse=function(){this.collapsed=!0;Qo(this);this.body.hide().parent().css("padding","2px");this.Ao.removeClass("icon-13-minimize").addClass("icon-13-maximize");Mo(this)};q.expand=function(){this.collapsed=!1;Qo(this);this.body.show().parent().css("padding","");this.Ao.removeClass("icon-13-maximize").addClass("icon-13-minimize");Mo(this)};q.Th=function(){return!!this.Ca};q.ta=function(){return!!this.kb};q.hc=function(){return!!this.Ca&&!this.collapsed};function So(a,b){a.Au.push(b)};function To(a,b){Lo.call(this,a);this.namespace="dockPanel.Metrics.";this.name="Metrics";this.$b.prepend("Metrics");this.K=b;this.lb()}Ca(To,Lo);To.prototype.lb=function(){this.body&&this.body.append($(y(this.content())))};
To.prototype.content=function(){function a(){if(O)return O;J.set("client.getDocument",function(a){O=a});return O}var b=this,c=[],d=(vn||l).Gh,e,f={},g,i,j,k,n,m,p,s,u,w,v,x,z=new dn(function(){g()},100),B=new Fa;B.add({Q:"heading top",text:"Position and Size"});D(B,5,1);Ha(B,1,{text:"X:",Q:"ralign"});D(B,4);n=E(B,new En({Ba:" ",min:-1E4,max:1E4,step:1,round:3,disabled:!0,change:function(a,b){b||i("x",a*d)}}));B.close();Ia(B);Ha(B,1,{text:"Y:",Q:"ralign"});D(B,4);m=E(B,new En({Ba:" ",min:-1E4,max:1E4,
step:1,round:3,disabled:!0,change:function(a,b){b||i("y",a*d)}}));B.close();B.close();D(B,5);Ha(B,1,{text:"W:",Q:"ralign"});D(B,4);p=E(B,new En({Ba:" ",min:0.0010,max:1E4,step:1,round:3,disabled:!0,change:function(a,b){b||i("w",a*d)}}));B.close();Ia(B);Ha(B,1,{text:"H:",Q:"ralign"});D(B,4);s=E(B,new En({Ba:" ",min:0.0010,max:1E4,step:1,round:3,disabled:!0,change:function(a,b){b||i("h",a*d)}}));B.close();B.close();D(B,1);B.add({Q:"constrain-proportions",create:function(a){u=a;a.click(function(){j(!a.hasClass("locked"))})}});
B.close();D(B,9,2,1);B.add({Q:"button disabled fullwidth",text:"Original Size",create:function(a){w=a;a.click(function(){a.hasClass("disabled")||k()})}});B.close();Ja(B);B.add({Q:"heading",text:"Orientation"});D(B,3,1);v=E(B,new yn({disabled:!0,Ba:0,change:function(a,b){b||i("r",Math.PI*((360-a)%360)/180)},start:function(a){x.ca(a)},Nf:function(a){x.ca(a)}}));B.close();D(B,3,0,1);Ia(B);x=E(B,new En({Ba:" ",min:0,max:359,step:15,loop:!0,La:"\u00b0",disabled:!0,change:function(a,b){v.ca(a);b||i("r",
Math.PI*((360-a)%360)/180)}}));B.add({text:"Angle",Q:"center"});B.close();B.clear();var O=l;i=function(b,d){var e=a();e.Aa();A(c,function(c){if(!c.ta&&(c.sa||c.pa)){var f;f=c.pa?$h([c]):c.ja();var g=new H(0,0,0,0);if(b=="x")g.x=d-f.x;else if(b=="y")g.y=d-f.y;else if(b=="w")g.w=d-f.w,c.Zf&&(g.h=f.h*d/f.w-f.h);else if(b=="h")g.h=d-f.h,c.Zf&&(g.w=f.w*d/f.h-f.w);b=="r"?(g=c.q.get("Rotation"),c=c.vk(f,d-g)):c=c.Jg(f,g);F(c,function(b,c){a().ra(b)&&F(c,function(a,c){e.ba(new N(M,{id:b,Property:a,Value:c}))})})}});
e.xa();z.queue()};j=function(b){a();O.Aa();A(c,function(a){if(!a.ta&&!!a.Zf!=b&&(a.sa||a.pa))O.ba(new N(M,{id:a.id,Property:"ConPro",Value:b?1:0}))});O.xa();z.queue()};k=function(){a();O.Aa();A(c,function(a){if(a.sa&&!a.ta){var b=vi(a.q.get("FillColor"));if(b&&b.kf){var b=Ka.Ig(b.url()),c=a.ja();O.ba(new N(M,{id:a.id,Property:"BoundingBox",Value:new wb(new H(0,0,b.width,b.height),c)}))}}});O.xa()};g=function(){if(b.hc()){var a,e,g,i,j,k,z,B,O=!0,tb=!1;d=(vn||l).Gh;var ob=" "+(vn||l).Mf,Ib=d>12?0.1:
d>1?1:c[0]?c[0].page.q.get("GridSpacing"):12,Bb=d==1?0:3;n.La=ob;m.La=ob;p.La=ob;s.La=ob;n.round=Bb;m.round=Bb;p.round=Bb;s.round=Bb;A(c,function(b){if(b.sa||b.pa){z=z||!!b.pa;B=B||!b.page;var c=b.ja(),d=f[b.id]||new H(0,0,0,0);d.rotation=d.rotation||0;if(a===h||!b.ta&&O)a=c.x+d.x,e=c.y+d.y,g=c.w+d.w,i=c.h+d.h,j=!!b.Zf,k=(b.q.get("Rotation")||0)+d.rotation,O=!!b.ta;else if(!!b.ta==O&&(a!=c.x+d.x&&(a=l),e!=c.y+d.y&&(e=l),g!=c.w+d.w&&(g=l),i!=c.h+d.h&&(i=l),j=j&&!!b.Zf,k!=(b.q.get("Rotation")||0)+d.rotation))k=
l;b.sa&&(b=vi(b.q.get("FillColor")))&&b.kf&&(tb=!0)}});a!==h?(n.enable().step=Ib,m.enable().step=Ib,p.enable().step=Ib,s.enable().step=Ib,v.enable(),x.enable(),a!=l?n.ca(a/d):n.reset(),e!=l?m.ca(e/d):m.reset(),g!=l?p.ca(g/d):p.reset(),i!=l?s.ca(i/d):s.reset(),j?u.addClass("locked"):u.removeClass("locked"),tb?w.removeClass("disabled"):w.addClass("disabled"),k!=l&&!z?x.ca((360-Math.round(180*k/Math.PI))%360):(x.reset(),v.ca(0),z&&(x.disable(),v.disable())),O&&(n.disable(),m.disable(),p.disable(),s.disable(),
w.addClass("disabled"),v.disable(),x.disable())):(n.reset().disable(),m.reset().disable(),p.reset().disable(),s.reset().disable(),u.removeClass("locked"),w.addClass("disabled"),v.reset().disable(),x.reset().disable());B&&(n.disable(),m.disable())}};J("page.selectionChange",function(a){e&&clearTimeout(e);e=setTimeout(function(){c=a;f={};z.queue()},100)});J("editorMode.offsetsApplied",function(){b.hc()&&(f={},g())});So(this,g);return B.Ie()};function Uo(a,b){var c=this;Lo.call(this,a,!0);this.name="States";this.$b.prepend(S("statepanel.title"));this.K=b;this.qj=this.Ha=!1;this.maxHeight=360;this.lb();if(this.K.$.Id())c.K.eg(),c.qj=!0,c.bx=!0;$(document).bind("documentAction activeGroupSet documentLoaded",function(){c.ia()});J("viewport.pages",function(){c.ia()});J("presentation.exit",function(){c.qj&&!c.bx&&Vo(c)});this.wf=this.K.viewport.mode.wf;setInterval(r(this.Ub,this),250)}Ca(Uo,Lo);q=Uo.prototype;q.lb=function(){this.body&&this.body.append($(y(this.content())))};
q.content=function(){var a=this;return{Q:"dockpanel-state",children:[{css:{"max-height":this.maxHeight+"px"},Q:"scrollable",children:[{Q:"list"}],create:function(b){a.ns=b}},{Q:"footer",children:[{R:"span",Q:"button",create:function(b){b.click(function(){Wo(a)})},children:[{R:"strong",html:S("statepanel.button.start")},{Q:"icon-13 icon-13-toggle-right right"}]}]}]}};q.disable=function(){this.qj&&Vo(this)};
q.rs=function(){var a=this,b=this.K.$.document,c=this.K.viewport,d=c.Hc();if(c.V.length!=0){var e=[];A(vj(c.V[0].C),function(a){a.pa&&a.Jc&&e.push(a)});e.reverse();for(var f=$("<div />"),g=0;g<e.length;g++){var i=e[g],j=i.q.get("Name")||"State "+g,k="state_toggle"+i.Fe(),j=y({Q:"item-container"+(d==i||Ai(i,d)?" active":""),children:[{Q:"item left",children:[{id:k,Q:"icon-13 icon-13-checkbox"+(i.q.get("Hidden")==!0?"":"-eye"),create:function(a){a.click(function(){var a=$(this).closest("div.item-container").data("state");
d==a&&Qk(c.mode,!0);$(this).hasClass("icon-13-checkbox")?b.ba(new N(M,{id:a.id,Property:"Hidden",Value:!1})):(c.ec(),b.ba(new N(M,{id:a.id,Property:"Hidden",Value:!0})));$(this).toggleClass("icon-13-checkbox-eye icon-13-checkbox");c.ia()})}}]},{Q:"item right",children:[{Q:"state_delete icon-13-button",title:"Delete State",create:function(a){a.click(function(){var a=$(this).closest("div.item-container").data("state");ue(S("statepanel.confirm.delete"),function(){b.Aa();Rk(c,a);b.xa();Qk(c.mode,!0)})})},
children:[{Q:"icon-13 icon-13-close"}]}]},{Q:"item right",children:[{Q:"state_rename icon-13-button",title:"Rename State",create:function(a){a.click(function(){var a=$(this).closest("div.item-container").data("state");ve(S("statepanel.prompt.rename"),a.q.get("Name"),function(d){b.ba(new N(M,{id:a.id,Property:"Name",Value:d}));c.mode.Hc()==a&&J.set("default.activeGroup.value",a)})})},children:[{Q:"icon-13 icon-13-pencil"}]}]},{Q:"item",children:[{Q:"title",title:"edit "+j,html:j,create:function(d){d.click(function(){var d=
$(this).closest("div.item-container").data("state");a.Sh||(d.pb()&&b.ba(new N(M,{id:d.id,Property:"Hidden",Value:!1})),c.mode.Aj&&c.mode.Aj(d))})}}]},{Q:"clear"}]});$(j).appendTo(f).data("state",i)}g=y({id:"state_panel_new",Q:"item-container last",create:function(b){b.live("click",function(){ve(S("statepanel.prompt.new"),S("statepanel.state"),function(b){a.Wp(b)})})},children:[{Q:"item left",children:[{Q:"icon-13-button",children:[{Q:"icon-13 icon-13-plus"}]}]},{Q:"item",children:[{Q:"title",title:S("statepanel.state.add"),
html:S("statepanel.state.add")}]},{Q:"clear"}]});$(g).appendTo(f);e.length==0?a.ns.find(".list").empty().append(f.children()):a.ns.find(".list").empty().append(f.children()).sortable({axis:"y",containment:"parent",items:"div.item-container:not(#state_panel_new)",start:function(){a.Sh=!0},stop:function(){setTimeout(function(){a.Sh=!1},100)},update:function(a,d){var e=d.item.data("state"),f=d.item.next().data("state"),g=d.item.prev().data("state"),f=f?f.q.get("ZOrder"):l,g=g?g.q.get("ZOrder"):l;b.ba(new N(M,
{id:e.id,Property:"ZOrder",Value:f!=l?g!=l?0.5*(f+g):f+0.1:g-0.1}));c.ia()}});f.remove()}};q.Wp=function(a){var b=this.K.viewport,c=b.V[0],a=new N("CrGr",{Page:c.C.id,Properties:{ZOrder:c.C.Kd("ZOrder",0)+1,Name:a,IsState:!0,Hidden:!1}});c.C.document.ba(a);b.mode.Aj&&b.mode.Aj(c.C.ra(a.id));return a.id};q.Ub=function(){if(this.Ha)this.Ha=!1,this.rs()};q.ia=function(){this.Ha=!0};
function Wo(a){var b=a.K,c=b.viewport,d=b.$.document;a.pp={};d.ee(function(){this.Af(function(){this.Jc&&(a.pp[this.id]=this.q.get("Hidden"))})});b.eg();if(!Xd)c.mode.wf="url(/img/cursors/laser.cur) 16 16, default";Qk(c.mode,!0);pe("presentation");setTimeout(function(){a.Or=Tk(S("statepanel.growl.exit"))},1E3);a.qj=!0}
function Vo(a){var b=a.K,c=b.viewport,d=b.$.document,e;for(e in a.pp){var f=d.ra(e);f&&f.q.set("Hidden",a.pp[e])}a.Or&&a.Or();b.gh();qe("presentation");a.qj=!1;a.rs();c.ec();c.mode.wf=a.wf;c.ia()}q.pw=ea("qj");t("lucid.view.chart.dockPanel.State",Uo);Uo.prototype.inPresentationMode=Uo.prototype.pw;Uo.prototype.newState=Uo.prototype.Wp;function Xo(a){var b=this;this.K=a;this.Em=l;this.Dm=[];this.content=l;this.Ki=!1;this.Ck=Ka;this.Hi=l;J("gui.closeAllYerStuff",function(){Yo(b)});this.dialog=new se(l,{title:"Select an Image",$c:!0,open:function(){b.Ki=!0},close:function(){b.Ki=!1},fe:{children:[{children:Xd?[{R:"p",html:S("userimage.upload.ie.p")}]:[{R:"p",html:S("userimage.dragdrop.p")},{R:"p",html:S("userimage.upload.p")}]},{Q:"buttons",children:[{id:"userImageUploadForm",R:"form",attr:{enctype:"multipart/form-data",target:"uploadimageframe",
method:"POST",action:"/imageBlocks/add"},children:[{R:"input",Q:"stylebutton",type:"file",attr:{name:"Image"}},{Q:"button",text:"Upload",create:function(a){var d=!1;a.click(function(){d||(d=!0,$("#userImageUploadForm").submit(),$("#userImageUploadForm").find("input").attr("disabled","disabled"),$("#uploadimageframe").one("load",function(){$("#userImageUploadForm").find("input").removeAttr("disabled").removeAttr("value");b.refresh();d=!1}))})}}]}]},{Q:"clear"}]}});this.dialog.J.addClass("userimagedialog"+
(Xd?" nodragdrop":"")).width(612+Od());$("#uploadimageframe").size()==0&&$("body").append('<iframe id="uploadimageframe" name="uploadimageframe" style="display:none;"></iframe>');setTimeout(function(){Zo(b,!1)},1);J("userimages.refresh",function(){b.refresh()})}
function Zo(a,b,c){if(a.Em){if(!b)return;a.Em.abort()}a.Em=$.ajax({type:"GET",url:"/imageBlocks/index/128",success:function(b){try{var c=eval("("+b+")")}catch(f){return}a.Dm={};A((c.images||[]).concat(c.orgimages||[]),function(b){a.Dm[b.ImageBlock.id]=b.ImageBlock.thumb})},error:o(),complete:function(){a.Em=l;c&&c()}})}function Yo(a){if(a.Hi)a.Hi.destroy(),a.Hi=l}
function $o(a,b,c,d){Yo(a);a.Hi=new Tl([{label:"Delete Image",action:function(){$.ajax({type:"POST",url:"/imageBlocks/delete/"+b,data:"data[ImageBlock][id]="+b,status:"Deleting User Image",success:function(c){c=eval("("+c+")");c.success?(delete a.Dm[b],a.kd()):Tk(c.$x)},error:function(){Tk(S("userimage.delete.error"))}});Yo(a)}}],{zf:!0});a.Hi.Lf(c,d);a.Hi.show()}
Xo.prototype.kd=function(){var a=this,b=[];F(this.Dm,function(c,d){b.push({id:"userimage-"+c,Q:"item",create:function(b){b.click(function(){a.success&&a.success("/imageBlocks/image/"+c);a.dialog.close()});b.bind("contextmenu",function(b){$o(a,c,b.clientX,b.clientY);return!1})},children:[{R:"img",src:d,Q:"thumb",create:function(a){a.load(function(){var b=a.width(),c=a.height();b>c?(a.css({width:"100%",height:"auto"}),a.css({"margin-top":-Math.round(a.height()/2)+"px",top:"50%"})):(a.css({width:"auto",
height:"100%"}),a.css({"margin-left":-Math.round(a.width()/2)+"px",left:"50%"}))})}}]})});this.content=y({children:b});this.dialog.kd(this.content)};Xo.prototype.open=function(a){this.kd();this.success=a;this.dialog.open()};Xo.prototype.refresh=function(){var a=this;Zo(this,!0,function(){a.Ki&&a.kd()})};function ap(a,b){Lo.call(this,a);this.namespace="dockPanel.Graphic.";this.name="graphic";this.$b.prepend("Graphic");this.K=b;this.document=b.document;this.Dn=0;this.lb()}Ca(ap,Lo);ap.prototype.lb=function(){this.body&&No(this.body,[{label:"Selection",content:bp(this)},cp(this)])};
function cp(a){function b(){function a(d,e,f){d=jj("DefaultSquareBlock",d,b);d.page=c.K.viewport.V[0].C;d.q.set("LineWidth",b.q.get("DefaultBlockLineWidth"));d.q.set("LineColor",b.q.get("DefaultBlockLineColor"));d.q.set("FillColor",ck(b));d.q.set("Font",b.q.get("DefaultFont"));var g=b.q.get("DefaultBlockShadow");g&&d.q.set("Shadow",g);d.q.set("BoundingBox",new H(e,f,160,120));d.q.set("Text",b.Tj("Lorem ipsum dolor sit amet"));return new Th(l,d)}var b=c.document;try{var d=new Di("previewLine",b.ej,
b);d.page=c.K.viewport.V[0].C;d.q.set("Endpoint1",{x:60,y:140,Block:"previewBlock1",LinkX:0.5,LinkY:1,Style:b.q.get("DefaultStartArrowStyle")});d.q.set("Endpoint2",{x:120,y:225,Block:"previewBlock2",LinkX:0,LinkY:0.5,Style:b.q.get("DefaultEndArrowStyle")});d.q.set("LineWidth",b.q.get("DefaultLineLineWidth"));d.q.set("LineColor",b.q.get("DefaultLineLineColor"));d.q.set("Shape",b.q.get("DefaultLineShape"));d.q.set("StrokeStyle",b.q.get("DefaultLineStrokeStyle"));(new Vi(c.K.viewport.V[0],d)).Ja(j,0.6,
8,8,!1,!1);a("previewBlock1",20,20).Ja(j,0.6,8,8,!1,!1);a("previewBlock2",120,165).Ja(j,0.6,8,8,!1,!1)}catch(e){}}var c=a,d,e,f,g,i=new Fa;Ia(i);i.add({Q:"heading top",text:"Global Styles"});Ha(i,6,{Q:"ralign",text:"Round Corners:"});D(i,4);e=E(i,new En({min:0,max:40,step:1,La:"px",Ba:" ",change:function(a,b){b||J.set("default.docProperty.RoundCorners",a)}}));i.close();i.clear();Ha(i,6,{Q:"ralign",text:"Gradient:"});D(i,6);f=E(i,new Cn({min:0,max:100,step:25,change:function(a,b){b||J.set("default.docProperty.Gradient",
a/50)}}));i.close();i.clear();D(i,6);i.close();D(i,6);g=E(i,new Bn({label:"Line Jumps",value:!1,change:function(a,b){b||J.set("default.docProperty.LineJumps",a?1:0)}}));i.close();Ia(i);i.add({Q:"heading top",text:"Default Styles For New Shapes"});var j=new Fe(210,210);i.add({Q:"recessed",css:{height:"208px"},create:function(a){a.append(j.J)}});D(i,12);E(i,new dp({content:"Select shape to use as default",action:function(){(new oh(c.K)).create("Click a shape or line to use<br/>as the new default style",
function(a){var b={};if(a.fb)b.DefaultLineLineWidth=a.q.get("LineWidth"),b.DefaultLineLineColor=a.q.get("LineColor"),b.DefaultLineShape=a.q.get("Shape"),b.DefaultLineStrokeStyle=a.q.get("StrokeStyle"),b.DefaultStartArrowStyle=a.q.get("Endpoint1").Style,b.DefaultEndArrowStyle=a.q.get("Endpoint2").Style;else if(a.sa&&(b.DefaultBlockLineWidth=a.q.get("LineWidth"),b.DefaultBlockLineColor=a.q.get("LineColor"),b.DefaultBlockFillColor=a.q.get("FillColor"),b.DefaultBlockShadow=a.q.get("Shadow"),a=a.Ui(),
"font"in a))b.DefaultFont=a.font,b.DefaultBold=a.bold,b.DefaultItalic=a.italic,b.DefaultUnderline=a.underline,b.DefaultTextColor=a.color,b.DefaultFontSize=a.size;c.document.Aa();for(var d in b)c.document.ba(new N(M,{id:l,Property:d,Value:b[d]}));c.document.xa()})}}));i.close();i.clear();D(i,12);E(i,new dp({content:"Apply default to all shapes",action:function(){c.document.Aa();c.document.df(function(){function a(f,g){Na(d.get(f,!0),e.get(g,!0))||c.document.ba(new N(M,{id:b,Property:f,Value:e.get(g)}))}
var b=this.id,d=this.q,e=c.document.q;a("LineColor","DefaultBlockLineColor");a("FillColor","DefaultBlockFillColor");a("LineWidth","DefaultBlockLineWidth");a("Shadow","DefaultBlockShadow");a("Font","DefaultFont");for(var f in this.la){var g=d.get(f),i=c.document.Tj(g);Na(g,i)||c.document.ba(new N(M,{id:b,Property:f,Value:i}))}});c.document.qd(function(){function a(f,g){Na(d.get(f,!0),e.get(g,!0))||c.document.ba(new N(M,{id:b,Property:f,Value:e.get(g)}))}var b=this.id,d=this.q,e=c.document.q;a("LineColor",
"DefaultLineLineColor");a("LineWidth","DefaultLineLineWidth");a("Shape","DefaultLineShape");a("StrokeStyle","DefaultLineStrokeStyle");d.get("Endpoint1").Style!=e.get("DefaultStartArrowStyle")&&c.document.ba(new N(M,{id:b,Property:"Endpoint1",Value:{Style:e.get("DefaultStartArrowStyle")}}));d.get("Endpoint2").Style!=e.get("DefaultEndArrowStyle")&&c.document.ba(new N(M,{id:b,Property:"Endpoint2",Value:{Style:e.get("DefaultEndArrowStyle")}}));var f=d.get("TextAreas"),g;for(g in f)if(g!="IsFullPropSettings"){var i=
f[g].Value,j=c.document.Tj(i);Na(i,j)||(i={},i[g]={Value:j},c.document.ba(new N(M,{id:b,Property:"TextAreas",Value:i})))}});c.document.xa()}}));i.close();i.clear();D(i,12);E(i,new dp({content:"Reset to default theme",action:function(){var a={DefaultLineLineWidth:2,DefaultLineLineColor:"#000000",DefaultLineShape:"curve",DefaultLineStrokeStyle:"solid",DefaultStartArrowStyle:"None",DefaultEndArrowStyle:"Arrow",DefaultBlockLineWidth:2,DefaultBlockLineColor:"#000000",DefaultBlockFillColor:"#ffffff",DefaultBlockShadow:l,
DefaultFont:"Liberation Sans",DefaultBold:!1,DefaultItalic:!1,DefaultUnderline:!1,DefaultTextColor:"#000000",DefaultFontSize:config.defaultTextSize,RoundCorners:10,Gradient:0.5,LineJumps:1};c.document.Aa();for(var b in a)c.document.ba(new N(M,{id:l,Property:b,Value:a[b]}));c.document.xa()}}));i.close();i.clear();d=new dn(function(){e.ca(c.document.q.get("RoundCorners"));f.ca(c.document.q.get("Gradient")*50);g.ca(!!c.document.q.get("LineJumps"));b()},100);J("document.postAction",function(a){c.hc()&&
a.Action==M&&a.id==l&&d.queue()});So(a,r(d.trigger,d));return{label:"Theme",content:i.Ie(),Bd:r(d.trigger,d)}}
function bp(a){function b(a){var b=l;J.set("default.property."+a+".value",function(a){b=a});var c=l;b!=l&&J.set("default.property."+a+".values",function(a){F(a,function(a,b){c==l?c=b:c!=b&&(c=!0)})});return c}function c(){sf||J.set("client.getDocument",function(a){sf=a})}function d(a){var b=new Nh(x);hg(b,lo(Z));b.cd?b.Sj(Ma.sb()):(Ph(b,Ib.sb()),b.wj(ob.sb()));b.Ff=!1;a&&b.type(a);J.set("default.property.FillColor",b.serialize())}function e(){var a=new Nh(x);a.Sj(X.sb());hg(a,[new Oh(new I(T.sb()),
0),new Oh(new I(W.sb()),1)]);a.Ff=!0;J.set("default.property.FillColor",a.serialize())}var f=[],g={},i=!1,j=!1,k=72,n,m,p,s,u,w,v,x,z,B,O,T,W,U,X,da,Z,Ga,wa,Ma,tb,ob,Ib,Bb,Qb,ub,ab,pb,vb,qb,Jb,Kb,jb,xa,Sa,bb,cb,rf,C=new Fa;Ia(C);C.add({Q:"heading top",text:"Line"});D(C,5);s=E(C,new wn({options:[{na:"line-style-solid-lg",value:"solid"},{na:"line-style-dashed-lg",value:"dashed"},{na:"line-style-dotted-lg",value:"dotted"}],change:function(a,b){b||m(a,"StrokeStyle")}}));C.close();D(C,4);u=E(C,new En({min:0,
max:10,step:1,Ba:" ",change:function(a,b){b||m(a,"LineWidth")}}));C.close();D(C,3);w=E(C,new bo({size:"half-large",change:function(a,b){b||m(fg(a),"LineColor")}}));C.close();Ja(C);C.add({Q:"heading",text:"Fill"});v=E(C,new wn({options:[{label:"None",value:""},{label:"Solid Color",value:"solid"},{label:"Simple Gradient",value:"grad"},{label:"Advanced Gradient",value:"agrad"},{label:"Image",value:"image"}],change:function(b,c){if(!c){var d,e;b=="image"?(J.set("default.property.FillColor.value",function(a){e=
a}),a.K.Ku.open(function(a){e=e||{};e.url=a;e.Hd=!1;e.jf=!1;d=new Mh(e);d.url(a);J.set("default.property.FillColor",d?d.serialize():l);p()})):(a.K.document.Aa(),A(f,function(c){var d,e=vi(c.q.get("FillColor"));if(b=="")d=l;else if(b=="solid")d=new I(e||l,"#ffffff");else if(b=="grad")e=e||new I("#fff"),d=new Nh(e),e=hg(d),hg(d,[new Oh(new I(e[0].color),0),new Oh(new I(e[e.length-1].color),1)]),d.cd=!0,d.Ef=!1,d.Ff=!0;else if(b=="agrad")e=e||new I("#fff"),d=new Nh(e),d.Ff=!1;a.K.document.ba(new N(M,
{id:c.id,Property:"FillColor",Value:d?d.serialize():l}));c.cj&&!c.q.get("Fill")&&d&&a.K.document.ba(new N(M,{id:c.id,Property:"Fill",Value:1}))}),a.K.document.xa(),p())}},disabled:!0}));Ia(C);C.open({Q:"hidden",create:function(a){z=a}});B=E(C,new bo({size:"large",change:function(a,b){b||J.set("default.property.FillColor",a.serialize())}}));C.close();C.open({Q:"hidden",create:function(a){O=a}});D(C,3);T=E(C,new bo({size:"half-large",change:function(a,b){b||e()}}));W=E(C,new bo({size:"half-large",change:function(a,
b){b||e()}}));C.close();D(C,1);C.add({Q:"simple-grad-switch",click:function(){var a=W.sb();W.ca(T.sb());T.ca(a);e()}});C.close();D(C,2);C.add({Q:"input-angle-label",text:"Angle:"});C.close();D(C,3);U=E(C,new yn({change:function(a,b){b||e()},start:function(a){X.ca(a)},Nf:function(a){X.ca(a)}}));C.close();D(C,3);E(C,new Dn([{na:"toggle-down",value:"down",action:function(){X.ca(270);e()}},{na:"toggle-right",value:"right",action:function(){X.ca(0);e()}}],{Q:"right"}));Ia(C);X=E(C,new En({min:0,max:359,
step:15,loop:!0,La:"\u00b0",change:function(a,b){U.ca(a);b||e()}}));C.close();C.close();C.open({Q:"hidden",create:function(a){da=a}});Ha(C,11,{create:function(a){Z=new eo(a)}});D(C,1);C.add({Q:"colorstop-reverse",click:function(){ko(Z)}});C.close();C.open({create:function(a){Ga=a}});D(C,3);Ia(C);E(C,new Dn([{na:"grad-rad",value:"r",action:function(){d("r")}},{na:"grad-lin",value:"l",selected:fa(!0)}]));C.close();D(C,3,2);wa=E(C,new yn({change:function(a,b){b||d()},start:function(a){Ma.ca(a)},Nf:function(a){Ma.ca(a)}}));
C.close();D(C,3,0,1);Ia(C);Ma=E(C,new En({min:0,max:359,step:15,loop:!0,La:"\u00b0",change:function(a,b){wa.ca(a);b||d()}}));C.add({text:"Angle",Q:"center"});C.close();C.close();C.open({create:function(a){tb=a}});Ia(C);D(C,8);D(C,3);E(C,new Dn([{na:"grad-rad",value:"r",selected:fa(!0)},{na:"grad-lin",value:"l",action:function(){d("l")}}]));C.close();D(C,2);E(C,new Dn([{na:"refresh",action:function(){Ib.ca(new G(0.5,0.5));ob.ca(1);d()}}]));C.close();C.clear();Ia(C);C.add({text:"Radius:"});ob=E(C,new Cn({min:0.1,
max:2,step:0.1,change:function(a,b){b||d()}}));C.close();D(C,4);Ib=E(C,new zn({change:function(a,b){b||d()}}));C.close();C.close();C.close();C.open({Q:"hidden",create:function(a){Bb=a}});var Ag=E(C,new wn({options:[{label:"Scale to fit",value:"fit"},{label:"Scale to fill",value:"fill"},{label:"Stretch",value:"stretch"},{label:"Original size",value:"original"},{label:"Tile",value:"tile"}],change:function(a,b){b||J.set("default.property.FillColor.pos",a)}}));J("optionBar.refresh",function(){var a;J.set("default.property.FillColor.pos.value",
function(b){a=b});a?(Ag.enable(),Ag.ca(a)):Ag.disable()});C.add({Q:"button",text:"Change Image",create:function(b){b.click(function(){a.K.Ku.open(function(a){J.set("default.property.FillColor.url",a)})})}});C.close();Ja(C);Qb=E(C,new Bn({label:"Shadow",Q:"heading bottom",value:!1,disabled:!0,change:function(a,b){if(!b){var c=l;a&&J.set("default.property.Shadow.lastSet",function(a){c=a});J.set("default.property.Shadow",c)}a?Qb.J.next().css("display","block"):Qb.J.next().css("display","none")}}));D(C,
12);D(C,4);Jb=E(C,new bo({size:"half-large input-angle-neighbor",change:function(a,b){b||ub(a)}}));C.close();D(C,2);C.add({Q:"input-angle-label",text:"Angle:"});C.close();D(C,3);Kb=E(C,new yn({change:function(a,b){b||ab(Math.PI*a/180)},start:function(a){jb.ca(a)},Nf:function(a){jb.ca(a)}}));C.close();D(C,3);jb=E(C,new En({Q:"input-angle-neighbor",min:0,max:359,step:15,loop:!0,La:"\u00b0",Ba:" ",change:function(a,b){Kb.ca(a);b||ab(Math.PI*a/180)}}));C.close();Ia(C);D(C,4);xa=E(C,new En({min:0,max:1E3,
round:3,Ba:" ",change:function(a,b){b||pb(a*k)}}));C.add({Q:"center",text:"Distance"});C.close();D(C,4);Sa=E(C,new En({min:0,max:1E3,Ba:" ",La:" pt",change:function(a,b){b||vb(a)}}));C.add({Q:"center",text:"Blur"});C.close();D(C,4);bb=E(C,new En({min:0,max:100,La:"%",Ba:" ",change:function(a,b){b||qb(a/100)}}));C.add({Q:"center",text:"Opacity"});C.close();C.close();Ja(C);C.add({Q:"heading",text:"Opacity"});D(C,8);cb=E(C,new Cn({min:0,max:100,step:1,change:function(a,b){b||m(a,"Opacity")}}));C.close();
D(C,4);rf=E(C,new En({min:0,max:100,step:10,La:"%",Ba:" ",change:function(a,b){b||m(a,"Opacity")}}));C.close();C.clear();var sf=l;n=function(a){c();sf.Aa();A(a,function(a){sf.ba(new N(M,{id:a.id,Property:a.oe,Value:a.value}))});sf.xa()};m=function(a,b){J.set("default.property."+b,a)};ub=function(a){var b=[];A(f,function(c){if(c.sa&&!c.ta){var d=c.q.get("Shadow");if(d)if(a){var e=new I(d.c),f=new I(a);a.ga()==1&&f.ga(e.ga());if(fg(e)!=fg(f))d.c=fg(f),b.push({id:c.id,oe:"Shadow",value:d})}else b.push({id:c.id,
oe:"Shadow",value:l})}});n(b)};ab=function(b){var c=[];A(f,function(d){if(d.sa&&!d.ta){var e=d.q.get("Shadow");if(e){var f=Math.atan2(-e.y,e.x),g=Mb(new G(e.y,e.x));if(g==0)a.Dn=b;if(f!=b)e.x=g*Math.cos(b),e.y=g*Math.sin(-b),c.push({id:d.id,oe:"Shadow",value:e})}}});n(c)};pb=function(b){var c=[];A(f,function(d){if(d.sa&&!d.ta){var e=d.q.get("Shadow");if(e){var f=Mb(new G(e.y,e.x)),g=Math.atan2(-e.y,e.x);if(f==0&&(g==0||Math.abs(Math.round(g*100)/100)==3.14))g=a.Dn;if(b==0)a.Dn=g;if(f!=b)e.x=b*Math.cos(g),
e.y=b*Math.sin(-g),c.push({id:d.id,oe:"Shadow",value:e})}}});n(c)};vb=function(a){var b=[];A(f,function(c){if(c.sa&&!c.ta){var d=c.q.get("Shadow");if(d&&d.b!=a)d.b=a,b.push({id:c.id,oe:"Shadow",value:d})}});n(b)};qb=function(a){var b=[];A(f,function(c){if(c.sa&&!c.ta){var d=c.q.get("Shadow");if(d){var e=new I(d.c);if(e.ga()!=a)e.ga(a),d.c=fg(e),b.push({id:c.id,oe:"Shadow",value:d})}}});n(b)};p=function(){if(a.hc()){k=(vn||l).Gh;var c=" "+(vn||l).Mf,e=k>12?0.1:k>1?1:1,f=!1;J.set("default.property.LineColor.disabled",
function(a){f=a});var g=!1;J.set("default.property.LineWidth.disabled",function(a){g=a});u.La=c==" px"?c:" pt";s.reset().disable();u.reset().disable();w.disable();if(i||j){var m=b("StrokeStyle"),n=b("LineWidth"),p=b("LineColor");m!=l&&(s.enable(),m!==!0?s.ca(m):s.reset());n!=l&&!g&&(u.enable(),n!==!0?u.ca(n):u.reset());p!=l&&!f&&(w.enable(),p!==!0?w.ca(new I(p)):w.reset())}var U=!1;J.set("default.property.FillColor.disabled",function(a){U=a});var C=!1;J.set("default.property.FillType.disabled",function(a){C=
a});z.hide();O.hide();da.hide();Bb.hide();var wa=l;J.set("default.property.FillColor.values",function(a){for(var b in a)wa=a[b]});wa||i?(x=vi(wa),m=[B,T,W,X,Ma,ob,Ib,Ag],v.enable(),A(m,function(a){a.enable()}),x?x.Hd?(v.ca("solid"),z.show(),B.ca(wa)):x.kf?(v.ca("image"),Bb.show()):x.jf&&x.Ff?(v.ca("grad"),O.show(),T.ca(hg(x)[0].color.serialize()),W.ca(hg(x)[1].color.serialize()),X.ca(x.Sj())):x.jf&&!x.Ff&&(v.ca("agrad"),Ga.hide(),tb.hide(),da.show(),x.cd?(Ga.show(),Ma.ca(x.Sj())):(tb.show(),ob.ca(x.wj()),
Ib.ca(Ph(x))),jo(Z,x,function(a){a||d()},function(a,b,c){Rn.open(a,c)})):v.ca(""),C&&v.disable(),U&&A(m,function(a){a.disable()})):(x=l,v.reset().disable());xa.La=c;xa.step=e;Sa.La=c==" px"?c:" pt";Jb.disable();Qb.ca(!1).disable();jb.reset().disable();Kb.reset().disable();xa.reset().disable();Sa.reset().disable();bb.reset().disable();if(i){var qb=l;J.set("default.property.Shadow.value",function(a){qb=a});Qb.enable().ca(!!qb);var ab=l,ub=l,pb=l,vb=l,Fc=l;qb&&J.set("default.property.Shadow.values",
function(a){F(a,function(a,b){var c=Math.round(360+180*Math.atan2(-b.y,b.x)/Math.PI)%360,d=Mb(new G(b.y,b.x)),e=new I(b.c),f=If(Math.round(100*e.ga()),0,100);ab==l?ab=e.tb():ab!=e.tb()&&(ab=!0);ub==l?ub=c:ub!=c&&(ub=!0);pb==l?pb=d:pb!=d&&(pb=!0);vb==l?vb=b.b:vb!=b.b&&(vb=!0);Fc==l?Fc=f:Fc!=f&&(Fc=!0)})});ab&&(Jb.enable().ca(ab===!0?"#000000":ab),Kb.enable(),jb.enable(),xa.enable(),Sa.enable(),bb.enable(),ub!==!0?pb==0?jb.ca(Math.round((a.Dn*180/Math.PI+360)%360)):jb.ca(ub):jb.reset(),pb!==!0?xa.ca(pb/
k):xa.reset(),vb!==!0?Sa.ca(vb):Sa.reset(),Fc!==!0?bb.ca(Fc):bb.reset())}cb.reset().disable();rf.reset().disable();i&&(Fc=b("Opacity"),Fc!=l&&(cb.enable(),rf.enable(),Fc!==!0?(cb.ca(Fc),rf.ca(Fc)):(cb.reset(),rf.reset())))}};var Mi;J("page.selectionChange",function(a){Mi&&clearTimeout(Mi);Mi=setTimeout(function(){f=a;g={};j=i=!1;A(f,function(a){g[a.id]=!0;!a.ta&&a.sa&&(i=!0);!a.ta&&a.fb&&(j=!0)});p()},100)});var Ni;J("document.postAction",function(b){if(a.hc()&&b.Action==M&&(b.id==l||g[b.id]))Ni&&
clearTimeout(Ni),Ni=setTimeout(function(){p()},100)});J("graphicPanel.action",function(b){if(a.hc())switch(b){case "gradient":v.ca("grad",!0);break;case "image":v.ca("image",!0)}});So(a,p);return C.Ie()};function ep(a,b){var c=this;Lo.call(this,a,!0);this.name="Master Pages";this.$b.prepend("Master Pages");this.K=b;this.maxHeight=240;this.rq=!1;this.Rb={wb:85,ob:110};this.fi=this.Rb.wb/this.Rb.ob;this.lb();setInterval(r(this.Ub,this),300);$(document).bind("documentPostAction",function(a,b){if(b.Action!=yg)c.rq=!0})}Ca(ep,Lo);ep.prototype.lb=function(){this.body&&this.body.append($(y(this.content())))};
ep.prototype.content=function(){var a=this,b=this.K.$.document;return{Q:"dockpanel-master-pages",children:[{css:{"max-height":this.maxHeight+"px"},Q:"scrollable",children:[{Q:"list-wrapper",create:function(b){a.Pk=b}}]},{Q:"footer",children:[{R:"span",Q:"button",html:"&nbsp;"+S("masterpanel.button.new"),create:function(c){c.click(function(){var c=new N(xg,{Properties:{Title:S("Untitled Master"),IsMaster:!0}});b.ba(c);a.K.viewport.Lb([b.nb(c.id)]);hn(a.K.li)})},children:[{Q:"icon-13 icon-13-plus left"}]}]}]}};
function fp(a){var b=a.K.$.document;a.Pk.empty();b.ik(function(){if(this.Fb()){var c=this,d=new Gj(this),e=this.q.get("Size"),f=e.w/e.h,e=Math.round(f<a.fi?f*a.Rb.ob:a.Rb.wb),g=Math.round(f<a.fi?a.Rb.ob:a.Rb.wb/f),f=Math.floor((a.Rb.wb-e)/2),i=Math.floor((a.Rb.ob-g)/2),g=$("<div></div>").appendTo(a.Pk),f=$('<div class="left"><div></div></div>').appendTo(g).css({"padding-bottom":2*i+2+"px","padding-left":f+"px","padding-right":f+2+"px"}),g=$('<div class="left"></div>').appendTo(g).css({width:"80px"});
Pj(d,e-2,f.children().css({background:"#FFF",border:"#666 solid 1px"}));d={css:{width:"80px"},children:[{Q:"button fullwidth lalign",html:"&nbsp;"+S("New"),create:function(d){d.click(function(){var d=new N(xg,{Properties:{Title:S("Untitled Page"),Order:b.Vh("Order")+1,Size:c.q.get("Size"),Margin:c.q.get("Margin"),DPI:c.q.get("DPI"),GridSpacing:c.q.get("GridSpacing"),Master:c.id}});b.ba(d);a.K.viewport.Lb([b.nb(d.id)]);hn(a.K.li)})},children:[{Q:"icon-13 icon-13-plus left"}]},{Q:"button fullwidth lalign",
html:"&nbsp;"+S("Apply"),create:function(b){b.click(function(){var b=a.K.viewport.V[0].C;b&&(b.Fb()?L(S("alert.apply.master.to.master")):(c.id!=sj(b,!0)&&Dj(b,c.id),Tk(S("growl.master.applied"))))})},children:[{Q:"icon-13 icon-13-arrow-turn-d left"}]},{Q:"button fullwidth lalign",html:"&nbsp;"+S("Edit"),create:function(b){b.click(function(){a.K.viewport.Lb([c])})},children:[{Q:"icon-13 icon-13-pencil left"}]},{Q:"button fullwidth lalign",html:"&nbsp;"+S("Delete"),create:function(b){b.click(function(){a.K.viewport.Lb([c]);
kn(a.K.li,c.id)})},children:[{Q:"icon-13 icon-13-trash left"}]}]};g.append($(y(d)))}});a.Pk.html()==""?a.Pk.html("<p>"+S("masterpanel.default")+"</p>"):a.Pk.append(y({Q:"clear"}))}ep.prototype.Ub=function(){if(this.rq&&this.Ca)this.rq=!1,fp(this)};t("lucid.view.chart.dockPanel.Master",ep);function gp(a,b){Lo.call(this,a,!0);var c=this;this.K=b;this.name=S("historypanel.title");this.$b.prepend(S("historypanel.title"));this.ck=this.Ha=this.nh=!1;this.maxHeight=300;this.Pt=!1;this.lb();So(this,function(){c.hc()?qk(c.K.$.document,function(){c.ia();if(c.Ca)c.ck=!0}):c.off()});setInterval(r(this.Ub,this),100)}Ca(gp,Lo);q=gp.prototype;q.lb=function(){this.body&&this.body.append($(y(this.content())))};
q.content=function(){var a=this,b={Q:"dockpanel-history",children:[{Q:"scrollable",css:{"max-height":this.maxHeight+"px"},text:S("historypanel.default"),create:function(b){a.Gi=b}},{Q:"footer",children:[{Q:"right",children:[{id:"history_apply",Q:"icon-13-button left",title:S("historypanel.button.revert"),children:[{Q:"icon-13 icon-13-history-apply"}],create:function(b){b.unbind("click").bind("click",function(){a.nh&&a.K.$.document.Xt()})}},{id:"history_new",Q:"icon-13-button left",title:S("historypanel.button.new"),
children:[{Q:"icon-13 icon-13-history-new"}],create:function(b){b.unbind("click").bind("click",function(){if(a.nh){var b=a.K.$.document.q.get("Title");hp(a.K.$,a.K.$.document.fg,b,function(){L(S("historypanel.alert.new.error"))})}})}}]},{Q:"clear"}]}]};$(document).bind("documentAddSaveHistory",function(){a.ia();if(a.Ca)a.ck=!0});J("viewport.pages",function(){if(a.Ca)a.ck=!0});J("viewHistory.exit",function(){a.nh&&a.off()});var c=!1;$(document).bind("viewingHistory",function(b,e){e&&!c?ip(a.K):!e&&
c&&jp(a.K);c=e});return b};function kp(a,b){a.K.viewport.ec();var c=lp(a.K.$.document,b),d;for(d in c)if(d==a.K.viewport.V[0].C.id)for(var e in c[d].Items)a.K.$.document.ra(e)&&a.K.viewport.V[0].Yc(e)}q.on=function(a){pe("viewHistory");a.addClass("active").children("div").slideDown("fast");$("#history_apply, #history_new").css("opacity",1);this.K.$.document.Zn(a.data("count"));kp(this,a.data("h"));this.nh=!0};
q.off=function(){if(this.nh)this.K.viewport.ec(),qe("viewHistory"),this.Gi.children(".active").removeClass("active").children("div").slideUp("fast"),$("#history_apply, #history_new").css("opacity",0.25),this.K.$.document.Pi(),this.nh=!1};
q.Ub=function(){if(this.hc){if(this.Ha)this.Ha=!1,V("hp",".refresh()"),this.refresh(),V("hp",".refresh() done");if(this.ck){this.ck=!1;V("hp",".hl()");if(this.jc!=l)for(var a=0,b=0;b<this.jc.length;b++){var c=this.jc[b];a+=c.count;c=lp(this.K.$.document,c);$("#history_entry_"+a).removeClass("onPage");for(var d in c)d==this.K.viewport.V[0].C.id&&$("#history_entry_"+a).addClass("onPage")}V("hp",".hl() done")}}};
q.refresh=function(){var a=this;this.Gi.empty();var b=!0;this.K.$.da&&(b=this.K.$.da.Level.revision_history=="1");if(b)if(this.K.$.skipHistory)this.Gi.html('<p style="padding: 10px; margin: 0;">Document history for very large documents is temporarily disabled while we investigate ways to improve the performance of this feature. Thank you for your patience.</p>');else{this.jc=mp(this.K.$.document);for(var c=b=0;c<this.jc.length;c++){var d=this.jc[c],e=lp(this.K.$.document,d),f=$('<div class="toggle hidden ui-corner-all"><table border="0" cellpadding="0" cellspacing="0" class="noborder"></table></div>'),
g;for(g in e){var i=$("<tr></tr>").appendTo(f.children("table")),j='<td><div class="right">',k;for(k in e[g].Actions)k=="edit"?j+='<div class="left"><div title="'+S("historypanel.button.page.edited")+'" class="silk page_white_edit"></div></div>':k=="delete"?j+='<div class="left"><div title="'+S("historypanel.button.page.deleted")+'" class="silk delete"></div></div>':k=="create"&&(j+='<div class="left"><div title="'+S("historypanel.button.page.created")+'" class="silk add"></div></div>');j+="</div></td>";
i.append(j);e[g].Actions["delete"]==l&&g!="Document"?$('<td><div class="link left" title="'+S("historypanel.link.changes.show")+'">'+e[g].Title+"</div></td>").appendTo(i).click(function(b){return function(c){c.stopPropagation();if(c=a.K.$.document.nb(b))a.K.viewport.Lb([c]),kp(a,$(this).closest(".entry").data("h"))}}(g)):i.append('<td><div class="left">'+e[g].Title+"</div></td>")}b+=d.count;V("date",d);var e=mm(d.Dh),n=new Dm("MMM d h:mm a"),i=new Dm("h:mm a"),j=new vm,n=n.Qi(e);j.ef(e)&&(n=i.Qi(e));
$('<div class="entry" id="history_entry_'+b+'">'+n+": "+d.name+"</div>").append(f).prependTo(this.Gi).click(function(){$(this).siblings(".active").removeClass("active").children("div").slideUp("fast");if($(this).hasClass("active"))a.off();else a.on($(this))}).data("count",b).data("h",d)}Ro(a)}else this.K.$.da.TrialEligible?(this.Gi.html('<p style="padding: 10px; margin: 0;">'+S("historypanel.ineligible.prefix")+' <span id="history_upgradelink" class="link">'+S("historypanel.ineligible.upgradelink")+
"</span>"+S("historypanel.ineligible.suffix")+"</p>"),$("#history_upgradelink").click(function(){xe("/users/level")})):(g=$('<p style="padding: 10px; margin: 0;"></p>'),this.Gi.append(g),k=$('<a target="_blank" href="/users/level">'+S("historypanel.ineligible.upgradelink")+"</a>"),g.append(S("historypanel.ineligible.prefix")).append(" "),g.append(k),g.append(S("historypanel.ineligible.suffix")))};q.ia=function(){if(this.Ca)this.Ha=!0};q.Uc=fa(!1);q.pc=fa(!1);function dp(a,b,c){var d=this,a=a||{};this.J=$(y({Q:a.Q||"button",title:a.Pa||l,css:a.css||l,create:function(b){b.bind(a.mousedown?"mousedown":"click",function(){d.ha||(a.action(d.value),d.refresh(!0))})},children:[a.content]}));this.rr=a.selected||l;this.ha=a.disabled||l;this.value=!1;b&&this.appendTo(b,c);this.refresh();this.ha&&this.disable()}q=dp.prototype;q.va=function(a){(this.value=a)?this.J.addClass("selected"):this.J.removeClass("selected")};
q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};q.refresh=function(){this.va(!(!this.rr||!this.rr()));return this};q.sb=ea("value");q.Wb=o();q.enable=function(){this.J.removeClass("disabled");this.ha=!1;return this.refresh()};q.disable=function(){this.J.addClass("disabled");this.ha=!0;return this.refresh()};q.destroy=function(){this.J.remove()};function np(a,b){var c=this;Lo.call(this,a);this.namespace="dockPanel.Plugin.";this.name="Shape Options";this.$b.prepend("Shape Options");this.K=b;this.Xp=this.Fo=l;this.lb();this.Pe=[];this.ol=this.nl=l;this.gl=new dn(function(){c.refresh()},10);J("page.selectionChange",function(a){c.Pe=a;c.nl=l;c.ol=l;c.gl.queue()});J("panel.plugin.refresh",function(){c.gl.queue()})}Ca(np,Lo);
np.prototype.lb=function(){if(this.body){var a=this;this.body.append($(y([{create:function(b){a.Fo=b}},{text:"Controls for selected objects will appear here.",create:function(b){a.Xp=b}}])))}};function op(a){if(a.ol==l){a.ol=[];var b=function(b){b.pa?c(b):b.fb&&a.ol.push(b)},c=function(a){a.Ib(function(){b(this)})};A(a.Pe,function(a){b(a)})}return a.ol}
function pp(a){if(a.nl==l){a.nl=[];var b=function(b){b.pa?c(b):b.sa&&a.nl.push(b)},c=function(a){a.Ib(function(){b(this)})};A(a.Pe,function(a){b(a)})}return a.nl}
function qp(a,b,c){function d(b,c){b.ms&&F(K(b.ms),function(b,d){if(!(oc(f,b)>=0)&&(d.context!="connectedLine"||c)){d.external&&(d={external:!0,label:d.label,Fd:d.group,index:d.index,type:d.type,change:d.change,min:d.min,max:d.max,step:d.step,value:d.value,options:d.options,ah:d.pair,action:d.action,context:d.context,size:d.size});if(pa(d.action)&&d.context=="connectedLine"&&c)d.action=r(d.action,c,a.K.viewport.V[0]&&a.K.viewport.V[0].Ra[c.id]);if(pa(d.value))d.value=d.value();if(e.hasOwnProperty(b)){var g=
e[b];if(g.type!=d.type||g.Fd!=d.Fd||g.label!=d.label)f.push(b),delete e[b];g.index=Math.min(g.index,d.index);g.min=Math.max(g.min,d.min);g.max=Math.max(g.max,d.max);g.step=Math.min(g.step,d.step);if(g.value!=d.value)g.value="";if(pa(g.change)&&pa(d.change)){var m=g.change;g.change=function(a,b){m(a,b);d.change(a,b)}}if(pa(g.action)&&pa(d.action)){var p=g.action;g.action=function(){p();d.action()}}}else e[b]=d}})}var e={},f=[];A(b,function(a){d(a)});A(c,function(b){var c=b.q.get("Endpoint1"),e=b.q.get("Endpoint2"),
c=c.Block&&a.K.$.document.ra(c.Block),e=e.Block&&a.K.$.document.ra(e.Block);c&&d(c,b);e&&(!c||c.className!=e.className)&&d(e,b)});F(e,function(a,b){var c=b.ah;if(c)e[c]?(b.ah=e[c],delete e[c]):b.ah=!1});return e}function rp(a){var b=[];F(a,function(a,d){b.push(d)});b.sort(function(a,b){return a.Fd<b.Fd?-1:a.Fd>b.Fd?1:a.index<b.index?-1:a.index>b.index?1:a.label<b.label?-1:a.label>b.label?1:a.type<b.type?-1:a.type>b.type?1:0});return b}
function sp(a,b){function c(b,c,d){if(b.change){var e=a.K.$.document;e.Aa();b.change(c,d);e.xa();a.refresh()}}var d=l,e=new Fa,f={Spinner:function(a){return new En({min:a.min,max:a.max,value:a.value,step:a.step,Ba:" ",change:function(b,d){c(a,b,d)}})},Select:function(a){var b=[],d=!1;F(a.options,function(c,e){var f=c==a.value;!d&&f&&(d=!0);b.push({label:e,value:c,selected:f})});b.unshift({label:"",value:"",selected:!d});return new wn({options:b,change:function(b,d){c(a,b,d)}})},Checkbox:function(a){return new Bn({value:a.value,
change:function(b,d){c(a,b,d)}})},ColorWell:function(a){a=new bo({label:a.label,Q:a.Q,type:a.type,size:a.size,value:a.value,change:a.change});a.Ja(!0);return a}},g={Button:function(a){return{Q:"button top",click:function(){a.action()},text:a.label}}};A(b,function(a){d!=a.Fd?(d!=l&&(e.close(),Ja(e)),e.add({Q:"heading"+(d==l?" top":""),text:a.Fd}),D(e,12),d=a.Fd):Ia(e);var b=g[a.type]?g[a.type](a):l;if(b)e.add(b);else if(b=f[a.type]?f[a.type](a):l,Ha(e,5,{Q:"ralign",text:a.label+":"}),D(e,a.ah?3:6,
1),E(e,b),e.close(),a.ah)a.ah.max=a.value,a=f[a.ah.type](a.ah),D(e,3),E(e,a),e.close()});e.close();return y(e.Ie())}np.prototype.refresh=function(){var a;a=pp(this);var b=op(this);a=rp(qp(this,a,b));this.Xp.hide();this.Fo.hide().empty();a.length>0?this.Fo.append(sp(this,a)).show():this.Xp.show()};function tp(a,b){Lo.call(this,a);var c=this;this.name="Document";this.$b.prepend(config.extendedPageOptions?"Page Settings":"Document");this.K=b;J.set("client.getDocument",function(a){c.document=a});J("viewport.pages",function(a){c.V=a});this.lb()}Ca(tp,Lo);tp.prototype.lb=function(){this.body&&(config.extendedPageOptions?No(this.body,[{label:"Page Layout",content:up(this,!1)},{label:"Page Settings",content:vp(this)}]):this.body.append($(y(up(this,!0)))))};
function vp(a){function b(a,b){d.document.Aa();A(d.V,function(c){d.document.ba(new N(M,{id:c.C.id,Property:a,Value:b}))});d.document.xa()}function c(){if(d.V){var a=d.V[0].C;f.ca(a.q.get("GridSpacing"));g.ca(a.q.get("DPI"));i.ca(!a.q.get("SkipMultipage"))}}var d=a,e=new Fa,f,g,i;Ia(e);Ha(e,5,{Q:"ralign",text:"Snap To:"});D(e,7);f=E(e,new wn({options:[{value:1,label:"Do not snap to grid"},{value:5,label:"Very small grid (5px)"},{value:10,label:"Small grid (10px)"},{value:20,label:"Normal grid (20px)"},
{value:40,label:"Large grid (40px)"}],change:function(a,c){!c&&a!=d.V[0].C.q.get("GridSpacing")&&b("GridSpacing",a);d.K.viewport.ig()}}));e.close();Ia(e);Ha(e,5,{Q:"ralign",text:"Content Size:"});D(e,7);g=E(e,new wn({options:[{value:80,label:"Very large (80 DPI)"},{value:120,label:"Large (120 DPI)"},{value:160,label:"Normal (160 DPI)"},{value:240,label:"Small (240 DPI)"},{value:320,label:"Very small (320 DPI)"}],change:function(a,c){var e=d.V[0].C.q.get("DPI");if(!c&&a!=e){d.document.Aa();var f=d.V[0].C.q.get("Size");
b("Size",{w:f.w*a/e,h:f.h*a/e});b("DPI",a);d.document.xa()}}}));e.close();Ia(e);D(e,12);i=E(e,new Bn({label:"Auto-paginate",value:!1,change:function(a,c){c||b("SkipMultipage",!a)}}));e.close();J("viewport.afterRender",function(){c()});So(a,c);return e.Ie()}
function up(a,b){function c(){if(a.hc()&&a.V){var b=a.V[0].C,c=b.q.get("Size"),d=b.q.get("DPI"),e=" "+qn.Mf;j.La=e;k.La=e;g.La=e;j.step=0.1;k.step=0.1;g.step=0.1;n.refresh();f.sb()=="custom"&&j.sb()==c.w/d&&k.sb()==c.h/d||(f.ca(Bj(c,d)||"custom"),j.ca(c.w/d),k.ca(c.h/d));g.ca(b.q.get("Margin")*d/d);m&&m.ca(a.document.q.get("FacingPages"))}}function d(b){a.document.Aa();A(a.V,function(c){a.document.ba(new N(M,{id:c.C.id,Property:"Size",Value:b}))});a.document.xa()}var e=new Fa,f,g,i,j,k,n,m;b?e.add({Q:"heading top",
text:"Page Setup"}):e.add({Q:"spacer"});Ha(e,4,{Q:"ralign",text:"Page Size:"});D(e,8);f=E(e,new wn({options:function(){var a=[];A(Aj,function(b){a.push({value:b,label:b.name+" ("+b.$n+"x"+b.Am+")"})});a.push({value:"custom",label:"Custom"});return a}(),change:function(b,c){var e=a.V[0].C.q.get("DPI");!c&&b!="custom"&&d(n.sb()?{w:b.Am*e,h:b.$n*e}:{w:b.$n*e,h:b.Am*e});var f=a.V[0].C.q.get("Size");b=="custom"?(j.ca(f.w/e),k.ca(f.h/e),i.show()):i.hide()}}));e.close();e.open({create:function(a){i=a.hide()}});
Ia(e);Ha(e,1,2,{Q:"ralign",text:"W:"});D(e,4);j=E(e,new En({min:1,max:1E4,round:3,step:0.1,La:" "+qn.Mf,change:function(b,c){var e=a.V[0].C.q.get("DPI");c||d({w:b*e,h:k.sb()*e})}}));e.close();Ha(e,1,{Q:"ralign",text:"H:"});D(e,4);k=E(e,new En({min:1,max:1E4,round:3,step:0.1,La:" "+qn.Mf,change:function(b,c){var e=a.V[0].C.q.get("DPI");c||d({w:j.sb()*e,h:b*e})}}));e.close();e.close();Ia(e);Ha(e,4,{Q:"ralign",text:"Margins:"});D(e,4,0,4);g=E(e,new En({min:0,max:1E4,round:3,step:0.1,La:" "+qn.Mf,change:function(a,
b){b||J.set("default.pageProperty.Margin",a)}}));e.close();Ia(e);Ha(e,4,{Q:"ralign",text:"Orientation:"});D(e,8);n=E(e,new co([{label:"Portrait",value:!1,checked:function(){if(!a.V)return!1;var b=a.V[0].C.q.get("Size");return b.h>=b.w}},{label:"Landscape",value:!0,checked:function(){if(!a.V)return!1;var b=a.V[0].C.q.get("Size");return b.w>b.h}}],{separator:"<br/>",change:function(b,c){if(!c&&a.V){var e=a.V[0].C.q.get("Size");d({w:e.h,h:e.w})}}}));e.close();config.hasFacingPages&&(Ia(e),D(e,12),m=
E(e,new Bn({label:"Facing Pages",value:!1,change:function(a,b){b||J.set("default.docProperty.FacingPages",a)}})),e.close());e.clear();J("viewport.afterRender",function(){c()});So(a,c);return e.Ie()};function wp(a,b){Lo.call(this,a);this.name="Text";this.$b.prepend("Text");this.K=b;this.lb()}Ca(wp,Lo);wp.prototype.lb=function(){this.body&&this.body.append($(y(this.content())))};
wp.prototype.content=function(){function a(){if(b.hc())if(k){c.enable();d.enable();e.enable();f.enable();g.enable();var a=l;J.set("text.indentLeft.value",function(b){a=b});c.ca(a/b.K.viewport.Gc);J.set("text.indentRight.value",function(b){a=b});d.ca(a/b.K.viewport.Gc);J.set("text.marginTop.value",function(b){a=b});e.ca(a/b.K.viewport.Gc);J.set("text.marginBottom.value",function(b){a=b});f.ca(a/b.K.viewport.Gc);J.set("text.lineSpacing.value",function(b){a=b});g.ca(a)}else c.reset().disable(),d.reset().disable(),
e.reset().disable(),f.reset().disable(),g.reset().disable()}var b=this,c,d,e,f,g,i=new Fa;i.add({Q:"heading",text:"Identation (inches)"});D(i,5,1);Ha(i,2,{text:"Left:",Q:"ralign"});D(i,3);c=E(i,new En({Ba:0,min:0,max:1E3,step:0.1,round:1,disabled:!0,change:function(a,c){c||(b.K.document.Aa(),J.set("text.indentLeft",a*b.K.viewport.Gc),J.set("text.indentFL",a*b.K.viewport.Gc),b.K.document.xa())}}));i.close();i.close();D(i,5);Ha(i,2,{text:"Right:",Q:"ralign"});D(i,3);d=E(i,new En({Ba:0,min:0,max:1E3,
step:0.1,round:1,disabled:!0,change:function(a,c){c||J.set("text.indentRight",a*b.K.viewport.Gc)}}));i.close();i.close();Ja(i);i.add({Q:"heading",text:"Spacing"});D(i,5,1);Ha(i,2,{text:"Before:",Q:"ralign"});D(i,3);e=E(i,new En({Ba:0,min:0,max:1E3,step:0.1,round:1,disabled:!0,change:function(a,c){c||J.set("text.marginTop",a*b.K.viewport.Gc)}}));i.close();Ia(i);Ha(i,2,{text:"After:",Q:"ralign"});D(i,3);f=E(i,new En({Ba:0,min:0,max:1E3,step:0.1,round:1,disabled:!0,change:function(a,c){c||J.set("text.marginBottom",
a*b.K.viewport.Gc)}}));i.close();i.close();var j=0;J.set("text.lineSpacing.value",function(a){j=a});D(i,5);Ha(i,2,{text:"Line:",Q:"ralign"});D(i,3);g=E(i,new En({Ba:0,value:j,min:0,max:1E3,step:0.1,round:1,disabled:!0,change:function(a,b){b||J.set("text.lineSpacing",a)}}));i.close();i.close();var k=l;J("canvasEditor.active canvasEditor.selection",function(){if(P.Cj)k=P.Cj.qa.C,a()});J("canvasEditor.inactive",function(){k=l;a()});return i.Ie()};function xp(a,b){var c=this;this.J=l;this.Nd=b;this.kq=this.Nd.parent();this.body=l;$(a).append(y({Q:"dock",create:function(a){c.J=a},children:[{Q:"dock-header"},{Q:"dock-body",create:function(a){c.body=a}}]}));this.bi=[];$(window).resize(function(){yp(c)})}
xp.prototype.$e=function(a,b,c){var d=this,e;this.body.append(y({Q:"dock-button",title:b.$b.text(),create:function(a){e=a;a.click(function(a){a.stopPropagation();b.ta()||(b.toggle(),b.Th()&&zp(d,b))})},children:[{Q:"icon-21 icon-21-"+a}]}));Oo(b,e.offset().top-d.Nd.offset().top);c&&e.hide();So(b,function(){b.Th()?e.addClass("selected"):e.removeClass("selected")});b.Tc();var f,g,i;b.J.draggable({snap:".dock",snapMode:"outer",snapTolerance:5,handle:b.$b,cursor:"move",opacity:0.75,distance:4,stack:".dock-panel",
containment:this.kq,start:function(){f=$(this).outerWidth();g=d.Nd.width()-d.J.outerWidth();i=d.J.outerHeight()},drag:function(a,b){b.position.left+f+4>=g&&b.position.top-4<=i?d.J.addClass("highlight"):d.J.removeClass("highlight")},stop:function(a,c){d.J.removeClass("highlight");if(c.position.left+f+4>=g&&c.position.top-4<=i)b.position(),Qo(b),zp(d,b),yp(d,b);else{yp(d,b);var e=$(this).position();b.position(e.left,e.top,!0);Qo(b)}}});this.bi.push(b);J("dock.showPanel",function(a){A(d.bi,function(b){b.name==
a&&(b.show(),zp(d,b))})});J("dock.hidePanel",function(a){A(d.bi,function(b){b.name==a&&b.hide()})});return{button:e,mg:b}};xp.prototype.qr=function(a,b,c){if(c.Th()){var d=c.J.position();a-=c.J.outerHeight();b-=c.J.outerWidth();d.top>a&&c.J.css("top",(a<0?0:a)+"px");d.left>b&&c.Kh&&c.J.css("left",(b<0?0:b)+"px")}};function yp(a,b){var c=a.kq.height(),d=a.kq.width();b?a.qr(c,d,b):A(a.bi,r(a.qr,a,c,d))}function zp(a,b){b.Kh||A(a.bi,function(a){!a.Kh&&a!=b&&a.hide()})}
xp.prototype.hide=function(){this.J.hide();this.Nd.hide()};xp.prototype.show=function(){this.J.show();this.Nd.show()};function Ap(a,b){Lo.call(this,a);var c=this;this.name=S("navpanel.title");this.$b.prepend(S("navpanel.title"));this.K=b;this.kj=this.tn=!1;this.Rb={wb:210,ob:160};this.fi=this.Rb.wb/this.Rb.ob;this.Kt=!1;this.En=!0;this.Sp=this.Tp=this.mo=l;J.set("client.getDocument",function(a){c.document=a});this.lb()}Ca(Ap,Lo);Ap.prototype.lb=function(){this.body&&this.body.append($(y(this.content())))};
Ap.prototype.content=function(){var a=this,b=new Fa,c,d;b.add({css:{position:"relative",height:this.Rb.ob+4+"px",width:this.Rb.wb+4+"px",padding:"4px 4px 2px",overflow:"hidden"},children:[{css:{position:"relative",display:"inline-block"},children:[{css:{background:"#FFF",border:"#666 solid 1px"},create:function(b){a.Tp=b}},{css:{position:"absolute",top:0,left:0,border:"#FF0000 solid 2px",width:"100px",height:"100px","background-color":ae?"rgba(255,255,255,.01)":"transparent"},create:function(b){a.Sp=
b}}]}]});Ja(b);Ia(b);D(b,3);c=E(b,new re({Rk:!0,La:"%",min:1,max:400,step:0.01,Ji:0,value:1,change:function(a,b){if(!b)a<1||a>400?(a=a<1?1:a>400?400:a,L(S("navpanel.alert.zoom.invalid"))):c.blur(),d.step=0.01,d.ca(Math.sqrt(a)),d.step=0.5,J.set("default.zoom",a)}}));b.close();D(b,9);b.open({css:{position:"relative"}});b.add({Q:"icon-13-button",title:S("navpanel.button.zoomout"),css:{position:"absolute",left:0,top:0},click:function(){J.set("default.zoomOut")},children:[{Q:"icon-13 icon-13-zoom-out"}]});
b.open({css:{margin:"0 21px"}});d=E(b,new Cn({value:1,min:1,max:20,step:0.5,Nf:function(a){c.ca(parseInt(a*a,10))},change:function(a,b){b||J.set("default.zoom",a*a)}}));b.close();b.add({Q:"icon-13-button",title:S("navpanel.button.zoomin"),css:{position:"absolute",right:0,top:0},click:function(){J.set("default.zoomIn")},children:[{Q:"icon-13 icon-13-zoom-in"}]});b.close();b.close();setInterval(r(this.Ub,this),100);$(document).bind("documentPostAction",function(b,c){if(c.Action!=yg)a.tn=!0});J("viewport.pages",
function(b){a.mo=b[0]||l;a.tn=!0;a.kj=!0});J("viewport.scrollLeft",function(){if(a.En)a.kj=!0});J("viewport.scrollTop",function(){if(a.En)a.kj=!0});J("viewport.size",function(b){a.Tx=b[0];a.Sx=b[1]},!0);J("viewport.scale",function(a){d.step=0.01;d.ca(Math.sqrt(a*100));d.step=0.5;c.ca(Math.round(a*100))},!0);So(this,function(){d.Bl()});return b.Ie()};
Ap.prototype.To=function(){var a=this;if(this.mo){this.page=new Gj(this.mo.C);this.nj=mh(this.page.C);this.lj=this.nj.w/this.nj.h;var b=Math.round(this.lj<this.fi?this.lj*this.Rb.ob:this.Rb.wb),c=Math.round(this.lj<this.fi?this.Rb.ob:this.Rb.wb/this.lj),d=Math.floor((this.Rb.wb-b)/2),c=Math.floor((this.Rb.ob-c)/2);Pj(this.page,b,this.Tp);this.Tp.parent().css({"margin-top":c+"px","margin-bottom":c+"px","margin-left":d+"px","margin-right":d+"px"});if(!this.Kt)this.Kt=!0,this.Sp.draggable({containment:this.J,
start:function(){a.En=!1;a.qv=a.nj.w*a.K.viewport.scale;a.pv=a.nj.h*a.K.viewport.scale},drag:function(b,c){var d=a.K.viewport.padding+1,i=a.lj<a.fi?a.pv/(a.Rb.ob+2):a.qv/(a.Rb.wb+2);a.K.we.scrollTop(d+c.position.top*i);a.K.we.scrollLeft(d+c.position.left*i)},stop:function(){a.En=!0;a.kj=!0}})}};
Ap.prototype.Ub=function(){if(this.tn&&this.hc())this.tn=!1,this.To();if(this.kj&&this.hc()){this.kj=!1;var a=this.K.viewport.padding+1,b=this.nj.w*this.K.viewport.scale,c=this.nj.h*this.K.viewport.scale,d=a-this.K.viewport.scrollLeft;a-=this.K.viewport.scrollTop;var e=this.lj<this.fi?(this.Rb.ob+2)/c:(this.Rb.wb+2)/b,b=Math.round(e*Math.min(this.Tx-Math.max(d,0),b+Math.min(d,0))),c=Math.round(e*Math.min(this.Sx-Math.max(a,0),c+Math.min(a,0))),d=Math.round(e*-Math.min(d,0)),a=Math.round(e*-Math.min(a,
0));this.Sp.css({width:b-4+"px",height:c-4+"px",left:d+"px",top:a+"px"})}};t("lucid.view.chart.dockPanel.Navigator",Ap);function Bp(a,b,c){xp.call(this,a,b);this.K=c;this.lb()}Ca(Bp,xp);q=Bp.prototype;
q.lb=function(){if(this.body){this.body.empty();var a=this.$e("navigator",new Ap(this.Nd,this.K));this.Lw=a.mg;this.Mw=a.button;a=this.$e("graphic",new ap(this.Nd,this.K));this.ew=a.mg;this.fw=a.button;a=this.$e("metrics",new To(this.Nd,this.K));this.Gw=a.mg;this.Hw=a.button;a=this.$e("text",new wp(this.Nd,this.K));this.Ix=a.mg;this.Jx=a.button;a=this.$e("page",new tp(this.Nd,this.K));this.Ev=a.mg;this.Fv=a.button;a=this.$e("master",new ep(this.Nd,this.K));this.Dw=a.mg;this.Ew=a.button;a=this.$e("shape-options",
new np(this.Nd,this.K));this.dx=a.mg;this.ex=a.button;a=this.$e("history",new gp(this.Nd,this.K));this.Bk=a.mg;this.lw=a.button;a=this.$e("states",new Uo(this.Nd,this.K),!0);this.su=a.mg;this.Cx=a.button;this.Ne={document:this.Ev,navigator:this.Lw,graphic:this.ew,metric:this.Gw,master:this.Dw,state:this.su,history:this.Bk,text:this.Ix,plugin:this.dx};this.kn={document:this.Fv,navigator:this.Mw,graphic:this.fw,metric:this.Hw,master:this.Ew,state:this.Cx,history:this.lw,text:this.Jx,plugin:this.ex}}};
q.Jv=function(a){(a=this.kn[a])&&a.css("display","block")};q.Av=function(a){var b=this.kn[a];b&&(b.hide(),(a=this.Ne[a])&&a.hide())};q.zx=function(a){this.Ne[a]&&(this.Ne[a].show(),zp(this,this.Ne[a]))};q.kw=function(a){this.Ne[a]&&this.Ne[a].hide()};q.Yv=function(a){return this.Ne[a]?this.Ne[a]:!1};q.Uc=function(){for(var a in this.Ne)this.Ne[a].Uc()&&this.kn[a].addClass("disabled")};q.pc=function(){for(var a in this.Ne)this.Ne[a].pc()&&this.kn[a].removeClass("disabled")};
Bp.prototype.enablePanel=Bp.prototype.Jv;Bp.prototype.disablePanel=Bp.prototype.Av;Bp.prototype.getPanel=Bp.prototype.Yv;Bp.prototype.showPanel=Bp.prototype.zx;Bp.prototype.hidePanel=Bp.prototype.kw;function Cp(a){var b=this;this.K=a;this.dialog=this.Fk();J("default.hotKeyReference",function(){b.dialog.open()})}
Cp.prototype.Fk=function(){function a(){d.push({R:"tr",children:[{R:"td",html:"&nbsp;",css:{width:"140px"}},{R:"td"}]})}function b(a,b){d.push({R:"tr",children:[{R:"td",html:a},{R:"td",html:b}]})}function c(a){d.push({R:"tr",children:[{R:"td",attr:{colspan:2},children:[{R:"strong",html:a}]}]})}var d=[];c(S("dialog.hotkeyref.heading.editor"));b(S("Arrow Keys"),S("dialog.hotkeyref.arrowkeys.description"));b(Qd(["Alt"]),S("dialog.hotkeyref.alt.description"));b(Qd(["Ctrl"]),S("dialog.hotkeyref.ctrl.description"));
b(Qd(["Ctrl",S("Up")])+", "+Qd(["Ctrl",S("Down")]),S("dialog.hotkeyref.zoom.description"));b(Qd(["Ctrl","A"]),S("dialog.hotkeyref.selectall.description"));b(Qd(["Esc"]),S("dialog.hotkeyref.unselectall.description"));b(Qd(["L"]),S("dialog.hotkeyref.drawline.description"));a();b(Qd(["Ctrl","X"]),S("menu.cut"));b(Qd(["Ctrl","C"]),S("menu.copy"));b(Qd(["Ctrl","V"]),S("menu.paste"));a();b(Qd(["Ctrl","Z"]),S("menu.undo"));b(Qd(["Ctrl","Y"]),S("menu.redo"));a();b(Qd(["Ctrl","G"]),S("menu.selection.group"));
b(Qd(["Shift","Ctrl","G"]),S("menu.selection.ungroup"));a();c(S("dialog.hotkeyref.heading.fileops"));b(Qd(["Ctrl","S"]),S("Save"));b(Qd(["Shift","Ctrl","S"]),S("menu.saveas.description"));b(Qd(["Alt","Ctrl","S"]),S("menu.template.save.description"));b(Qd(["Ctrl","D"]),S("menu.download.description"));b(Qd(["Shift","Ctrl","P"]),S("menu.publish.description"));b(Qd(["Ctrl","Q"]),S("menu.close"));return new se({children:[{Q:"scroll",children:[{R:"table",children:d}]}]},{Ld:!0,width:"400px",title:S("dialog.hotkeyref.title"),
$c:!0,hb:[{label:"OK",Pg:!0,action:function(a,b){b.close()},width:400}]})};function Dp(a,b){var c=this;this.K=b;this.J=y({Q:"option-bar"}).appendTo(a);this.Eo={};this.gl=new dn(function(){A(c.controls,function(a){a.refresh&&a.refresh()});A(c.Nu,function(a){a.zc()?a.mb.hide():a.mb.show()})},10);J("optionBar.refresh",function(){c.refresh()});var d;J("context",function(a){d&&clearTimeout(d);d=setTimeout(function(){c.lb(a);c.gl.trigger()},10)},!0)}
function Ep(){function a(a){if(!c[a]){c[a]=!0;var d=xf(a);b.push({label:a,value:a,mb:{create:function(b){yf(d,b,a)}}})}}var b=[],c={},d;for(d in Pe)a(Re[d]||Pe[d][0].yb);b.sort(function(a,b){return a.label>b.label?1:a.label<b.label?-1:0});b.push({separator:!0});b.push({label:"Add more fonts...",value:"addmorefonts"});return b}q=Dp.prototype;
q.xm=function(a){function b(a){A(a,function(a){c.push({label:a.mk,value:a,mb:{create:function(b){yf(a,b)}}})})}var c=[];if(a)if(a.yb.toLowerCase()in Re){var a=Re[a.yb.toLowerCase()],d;for(d in Qe[a])b(Pe[d.toLowerCase()])}else b(Pe[a.yb.toLowerCase()]);else for(var e in Pe)b(Pe[e]);return c};
q.lb=function(a){if(!this.kb){var b=this;if(!Na(a,this.yw)){this.yw=qc(a);this.J.empty();this.controls=[];this.Nu=[];for(var c=l,d=0;d<a.length;d++)if(a[d]in this.Eo){c=a[d];break}if(c){var e,f=function(a){return a.wrap('<div class="option-bar-input"></div>').parent()};A(this.Eo[c],function(a){if(na(a)||qa(a)&&a.Qo){var c=$(y({Q:"option-bar-divider",children:[{Q:"ld"},{Q:"rd"}]}));b.J.append(c);e=na(a)?l:c}else if(a.input)b.J.append(a.input.J),b.controls.push(a.input),e=f(a.input.J);else if(a.hb){var d=
[];A(a.hb,function(b){a.action?d.push({na:b.na,Pa:b.Pa||l,action:function(){J.set(a.action,b.val)},disabled:function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});return b},selected:function(){var c=!1;J.set(a.action+".value",function(a){c=a});return c==b.val}}):d.push({na:b.na,Pa:b.Pa||l,action:function(){J.set(b.action,b.param)},disabled:function(){var a=!1;J.set(b.action+".disabled",function(b){a=b});return a},selected:function(){var a=!1;J.set(b.action+".selected",function(b){a=b});
return a}})});c=new Dn(d);b.J.append(c.J);b.controls.push(c);e=f(c.J)}else if(a.type=="inputselect"&&a.options){var k=new pn({options:a.options,La:a.La||l,change:function(b,c){c||J.set(a.action,b)},Cc:a.Cc},b.J,a.width||100);b.controls.push(k);k.refresh=function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});if(b)k.disable();else{k.enable();var c=l;J.set(a.action+".value",function(a){c=a});a.Cg&&a.Cg.call(k,c);k.ca(c)}};e=f(k.J)}else if(a.options)k=new wn({options:a.options,na:a.na||l,change:function(b,
c){c||J.set(a.action,b)},Cc:a.Cc},b.J,a.width||(a.na?34:100)),b.controls.push(k),k.refresh=function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});if(b)k.disable();else{k.enable();var c=l;J.set(a.action+".value",function(a){c=a});a.Cg&&a.Cg.call(k,c);k.ca(c)}},e=f(k.J);else if(a.type=="spinner"){var n=0;J.set(a.action+".value",function(a){n=a});var m=new En({min:a.min,max:a.max,step:a.step,round:a.round,value:a.Ek?a.Ek(n):n,La:a.La,change:function(b,c){c||J.set(a.action,a.fq?a.fq(b):b)}},
b.J,a.width||100);m.refresh=function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});b?m.disable():m.enable();var c=0;J.set(a.action+".value",function(a){c=a});m.ca(a.Ek?a.Ek(c):c)};b.controls.push(m);e=f(m.J)}else if(a.type=="color"){n="#000000";J.set(a.action+".value",function(a){n=a});d=l;a.yx&&(d=[{na:"img-fill",Pa:"Image fill",action:function(){J.set("dock.showPanel","graphic");J.set("graphicPanel.action","image")}},{na:"grad-fill",Pa:"Gradient fill",action:function(){J.set("dock.showPanel",
"graphic");J.set("graphicPanel.action","gradient")}}]);var p=new bo({value:n,change:function(b,c){c||J.set(a.action,b?b.serialize():l)},hb:d},b.J,a.width);p.refresh=function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});b?p.disable():p.enable();var c="#000000";b||J.set(a.action+".value",function(a){c=a});p.ca(vi(c))};b.controls.push(p);e=f(p.J)}else if(a.type=="checkbox"){var s=l;J.set(a.action+".value",function(a){s=a});var u=new Bn({value:!!s,label:a.label,change:function(b,c){c||J.set(a.action,
b?a.sv():l)}},b.J,a.width);u.refresh=function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});b?u.disable():u.enable();var c=l;b||J.set(a.action+".value",function(a){c=a});u.ca(!!c)};b.controls.push(u);e=f(u.J)}else if(a.label||a.na)c=$(y({Q:"option-bar-label"+(a.left?"-left":a.right?"-right":""),text:a.label||l,children:a.na?[{Q:"icon-13 icon-13-"+a.na}]:l})),b.J.append(c),e=c;e&&a.zc&&b.Nu.push({mb:e,zc:a.zc})})}}}};q.refresh=function(){this.kb||this.gl.queue()};
q.Uc=function(){for(var a in this.controls)this.controls[a].disable();this.kb=!0};q.pc=function(){this.kb=!1};function Fp(a,b){Dp.call(this,a,b);this.K=b;this.Tc()}Ca(Fp,Dp);
Fp.prototype.Tc=function(){function a(a){return e.K.viewport.Gc*a/72}function b(a){return 72*a/e.K.viewport.Gc}function c(){return Yk(e.K.viewport)}function d(){return Zk(e.K.viewport)}var e=this,f=!1;J("managefonts.refresh",function(){f=!0});var g=!1,i=!1;J("plugin.activated plugin.deactivated",function(){i=g=!0});J("context",function(){i=g=f=!0});this.Eo={"default":[{options:Ep(),action:"default.fontGroup",Cc:function(){this.options=Ep()},Cg:function(){if(f)f=!1,this.options=Ep()}},{type:"spinner",
min:1,max:72,step:1,round:0.1,width:50,La:" pt",action:"default.textSize",Ek:b,fq:a},{type:"color",action:"default.textColor",Pa:S("option.text.color")},"|",{hb:[{na:"font-bold",action:"default.bold",Pa:S("Bold")},{na:"font-italic",action:"default.italic",Pa:S("Italic")},{na:"font-underline",action:"default.underline",Pa:S("Underline")}]},"|",{hb:[{na:"text-align-l",action:"default.align.left",Pa:S("Left Align")},{na:"text-align-c",action:"default.align.center",Pa:S("Center Align")},{na:"text-align-r",
action:"default.align.right",Pa:S("Right Align")}]},{hb:[{na:"text-valign-t",val:"top",Pa:S("Top Align")},{na:"text-valign-m",val:"middle",Pa:S("Middle Align")},{na:"text-valign-b",val:"bottom",Pa:S("Bottom Align")}],action:"default.property.TextVAlign",zc:c},"|",{label:"Line:",left:!0},{type:"spinner",min:0,max:10,step:1,round:1,width:50,La:" px",action:"default.property.LineWidth"},{type:"color",action:"default.property.LineColor"},{options:[{na:"line-style-solid-lg",value:"solid"},{na:"line-style-dashed-lg",
value:"dashed"},{na:"line-style-dotted-lg",value:"dotted"}],action:"default.property.StrokeStyle",width:54,zc:d},{Qo:!0,zc:d},{hb:[{na:"line-shape-curved",val:"curve"},{na:"line-shape-straight",val:"elbow"},{na:"line-shape-direct",val:"diagonal"}],action:"default.property.Shape",zc:d},{input:new Dn([{na:"line-edit",Pa:"Edit Line Shape",action:function(){J.set("default.editLineShape")},disabled:function(){return!e.K.viewport||!Xk(e.K.viewport)}}]),zc:d},{options:Yi(),action:"default.property.Endpoint1.Style",
Cc:function(){this.options=Yi()},Cg:function(){if(g)g=!1,this.options=Yi()},width:54,zc:d},{options:Yi(!0),action:"default.property.Endpoint2.Style",Cc:function(){this.options=Yi(!0)},Cg:function(){if(i)i=!1,this.options=Yi(!0)},width:54,zc:d},{Qo:!0,zc:c},{label:"Fill:",left:!0,zc:c},{type:"color",action:"default.property.FillColor",yx:!0,zc:c},{Qo:!0,zc:c},{type:"checkbox",width:100,label:"Shadow",sv:function(){var a=l;J.set("default.property.Shadow.lastSet",function(b){a=b});return a},action:"default.property.Shadow",
zc:c},"|",{input:new Dn([{na:"locked",Pa:"Lock Shape",action:function(){J.set("default.property.Lock",1)},disabled:function(){var a=!1;J.set("default.property.Lock.disabled",function(b){a=b});if(a===!0)return a;else a=l;J.set("default.property.Lock.values",function(b){b&&F(b,function(b,c){a==l?a=!!c:a!=!!c&&(a=!1)})});return!!a}},{na:"unlocked",Pa:"Unlock Shape",action:function(){J.set("default.property.Lock",0)},disabled:function(){var a=!1;J.set("default.property.Lock.disabled",function(b){a=b});
if(a===!0)return a;else a=l;J.set("default.property.Lock.values",function(b){b&&F(b,function(b,c){a==l?a=!c:a!=!c&&(a=!1)})});return!!a}}])},{input:new Dn([{na:"link",Pa:"Add/Edit Link",action:function(){J.set("default.selectNewLink")},disabled:function(){var a;if(!(a=!e.K.viewport))a=e.K.viewport,a.V.length==0?a=!1:(a=a.getSelection(!0),a=a.length==1&&a[0].sa),a=!a;return a}}]),zc:c}],text:[{options:Ep(),action:"text.fontGroup",Cc:function(){this.options=Ep()},Cg:function(){if(f)f=!1,this.options=
Ep()}},{options:this.xm(),action:"text.fontFace",Cc:function(){this.options=e.xm(this.value)},Cg:function(a){this.options=e.xm(a)}},{type:"spinner",min:1,max:72,step:1,round:0.1,width:50,La:" pt",action:"text.textSize",Ek:b,fq:a},{type:"color",action:"text.color",Pa:S("option.text.color")},"|",{hb:[{na:"font-bold",action:"text.bold",Pa:S("Bold")},{na:"font-italic",action:"text.italic",Pa:S("Italic")},{na:"font-underline",action:"text.underline",Pa:S("Underline")},{na:"font-strike",action:"text.strike",
Pa:S("Strike")}]},{hb:[{na:"format-remove",action:"text.clearStyle",Pa:S("option.formatting.remove")}]},"|",{hb:[{na:"text-align-l",action:"text.align.left"},{na:"text-align-c",action:"text.align.center"},{na:"text-align-r",action:"text.align.right"}]},"|",{na:"p-space-1",left:!0},{type:"spinner",min:0.7,max:8,step:0.1,round:1,width:70,La:" lines",action:"text.lineSpacing"},{options:[{label:"None",value:"p"},{label:"Bulleted",value:"ul"},{label:"Numbered",value:"ol"},{label:"Harvard",value:"hl"}],
action:"text.blockType",na:"list-generic"},"|",{input:new Dn([{na:"page-number",Pa:S("option.page.number"),action:function(){J.set("text.insertPageNumber")}}])},{input:new Dn([{na:"page-count",Pa:S("option.page.count"),action:function(){J.set("text.insertTotalPages")}}])},{input:new Dn([{na:"eastern-char",Pa:S("option.input.alt"),action:function(){J.set("text.ime")},selected:function(){return parseInt($.cookie("ime"),10)==1}}])}]}};function Gp(a){var b=this;this.K=a;this.dialog=this.lb();J("hotSpotDialog.open",function(a){a&&a.length>0&&b.open(a[0],!!a[1])})}Gp.prototype.lb=function(){var a=this;this.At=o();return new se({css:{"font-size":"12px"},create:function(b){a.hs=b}},{Ld:!0,$c:!0,width:"475px",hb:function(){return a.At()=="cancel"?!1:!0},close:function(){a.hs.empty()}})};
Gp.prototype.open=function(a,b){var c=a.page.document;if(c.$.K){var d=[];b&&(a.page.Af(function(){this.Jc&&d.push(this)}),d.sort(function(a,b){a=a.q.get("Name")||"zzzz";b=b.q.get("Name")||"zzzz";a=a.toLowerCase();b=b.toLowerCase();return a>b?1:a<b?-1:0}));var e=l,f=l,g=l,i=0,j=y({children:[{R:"h3",Q:"top",text:b?"Hotspot Actions:":"Select a Link Action"},{Q:"hidden red",create:function(a){e=a}},{R:"ul",css:{padding:"0"},create:function(a){f=a}},{R:"span",Q:"button small"+(b?"":" hidden"),text:"Add Action",
click:function(){$(this).hasClass("disabled")||v()},create:function(a){g=a}}]}),k=function(a,b,c){for(var e,f={R:"select",css:{width:"200px"},create:function(c){a(c);$(c).change(b)},children:[{R:"option",text:"-- Choose a State --",attr:{value:""}},{R:"option",text:"-- New State --",attr:{value:"__new__"}}]},g=0,i=d.length;g<i;g++){e={value:d[g].id};if(d[g]==c)e.selected="selected";f.children.push({R:"option",text:d[g].q.get("Name"),attr:e})}return y(f)},n=function(a,b,d){var e={R:"select",css:{width:"200px"},
create:function(c){a(c);$(c).change(b)},children:[{R:"option",text:"-- Choose a Page --",attr:{value:""}},{R:"option",text:"-- New Page --",attr:{value:"__new__"}}]};c.ee(function(){if(!this.Fb()){var a={value:this.id};if(this==d)a.selected="selected";e.children.push({R:"option",text:this.q.get("Title"),attr:a})}});return y(e)},m=function(a,b){return y({R:"input",type:"text",value:b,css:{width:"200px",display:"inline-block"},create:function(b){a(b);setTimeout(function(){b.select()},200)}})},p=function(a){return y({R:"select",
css:{width:"200px"},attr:{disabled:"disabled"},create:function(b){a(b)},children:[{R:"option",text:"<-- Select an Action",attr:{value:""}}]})},s=[],u=function(){g.addClass("disabled");A(s,function(a,b){a&&b!=0&&(a.Uh.attr("disabled","disabled"),a.Qm.attr("disabled","disabled"),a.Zm.attr("disabled","disabled"))})},w=function(){g.removeClass("disabled");A(s,function(a,b){a&&b!=0&&(a.Uh.removeAttr("disabled"),a.Qm.removeAttr("disabled"),a.Zm.removeAttr("disabled"))})},v=function(a,c){function d(){$(this).val()==
"__new__"?B.show().val("New Name").select():B.hide()}function e(a){s[g].Qm=a}var g=s.length,j=!1,c=c||{};s.push({});var v,x,z,B,O,T=b?[{R:"option",text:"-- Choose an Action --",attr:{value:""}},{R:"option",text:"Toggle State",attr:{value:"toggle"}},{R:"option",text:"Show State",attr:{value:"show"}},{R:"option",text:"Hide State",attr:{value:"hide"}}]:[{R:"option",text:"-- Choose an Action --",attr:{value:""}}];a&&(T.push({R:"option",Q:"non_state",text:"Link to Page",attr:{value:"page"}}),T.push({R:"option",
Q:"non_state",text:"External Link",attr:{value:"external"}}));f.append(y({R:"li",css:{listStyle:"none",marginBottom:"4px"},create:function(a){v=a},children:[{children:[{R:"select",css:{width:"200px",marginRight:"10px"},create:function(a){x=a;s[g].Uh=a},children:T},{R:"span",create:function(a){z=a}},{R:"span",Q:"icon-13-button right",css:a?{visibility:"hidden"}:{marginTop:"3px"},click:function(){j&&i--;i<=0&&s[0].Uh.find(".non_state").removeAttr("disabled");s[g]=l;v.remove()},children:[{Q:"icon-13 icon-13-close"}]}]},
{css:{marginLeft:"210px",display:"none"},R:"input",type:"text",create:function(a){B=s[g].Zm=a}}]}));c.action?(x.val(c.action),z.append(k(e,d,c.state))):c.page?(x.val("page"),u(),z.append(n(e,d,c.page))):c.external?(x.val("external"),u(),z.append(m(e,c.external))):z.append(p(e));x.change(function(){var b;switch(x.val()){case "toggle":case "show":case "hide":b="state";break;case "page":b="page";break;case "external":b="external";break;default:b="none"}if(b!=O){z.empty();B.hide();j=!0;switch(b){case "state":a&&
w();z.append(k(e,d));break;case "page":u();z.append(n(e,d));break;case "external":u();z.append(m(e,c.external||"http://www.lucidchart.com"));break;case "none":a&&w(),j=!1,z.append(p(e))}O=b;a||(i+=j?1:-1)}!a&&i?s[0].Uh.find(".non_state").attr("disabled","disabled"):a||s[0].Uh.find(".non_state").removeAttr("disabled")})},x,z,B=a.q.get("Link"),B=B.match(/^hotspot:/)?B.substr(8):B;if(x=B.match(/^ext:/)?B.substr(4):l)v(!0,{external:x});else if(x=c.nb(B))v(!0,{page:x});else{if(B.match(/^\[/))try{z=gc(B)}catch(O){}z=
z||[B];var T=0;A(z,function(b){var c=b.match(/^(toggle|show|hide):/);if(c&&(c=c[1],b=a.page.ym(b.substr(c.length+1))))v(T==0,{action:c,state:b}),T++});T==0&&v(!0)}this.hs.empty().append(j);this.dialog.open();this.At=function(){e.hide().empty();for(var d=0,f=s.length;d<f;d++)if(s[d]){s[d].Uh.val();var g=s[d].Qm.val(),i=s[d].Zm.val();if(g=="__new__"&&!i)return e.empty().text("Please enter a name for any new states or pages").show(),"cancel"}c.Aa();var j=[],k=l;A(s,function(a){if(a){var b=a.Uh.val(),
d=a.Qm.val(),e=a.Zm.val(),a=b;switch(b){case "toggle":case "show":case "hide":a="state"}if(d=="__new__"){if(!e)return;if(b=="page")d=new N(xg,{Properties:{Title:e,Order:c.Vh("Order")+1}}),c.ba(d),d=d.id;else if(a=="state")d=c.$.K.dock.su.Wp(e);else return}if(d)switch(a){case "state":j.push(b+":"+d);break;case "page":return k=d,!1;case "external":return k="ext:"+d,!1}}});!k&&j.length>0&&(k=nd(j));k=k?(b?"hotspot:":"")+k:"";a.q.get("Link")!=k&&c.ba(new N(M,{id:a.id,Property:"Link",Value:k}));c.xa()}}};function Hp(a,b){this.siblings=b;this.K=a;this.parent=a.tg;this.J=this.sq=l;this.Uf("")}q=Hp.prototype;q.Uf=function(a){var b=this;this.hide();$(".viewport-banner").remove();this.J=$('<div class="viewport-banner"><div class="icon-13-button inverse close-button"><div class="viewport-banner-close icon-13 icon-13-close"></div></div></div>');this.J.find(".viewport-banner-close").click(function(){b.hide()});this.parent.append(this.J);this.J.hide().append(a)};
q.show=function(){var a=$(".viewport-banner");if(a.length>0&&a.is(":hidden")){a.show();var b=this.K.viewport.mode.Yi;b.J.is(":visible")&&this.J.css({top:a.position().top+b.J.outerHeight()+"px"});A(this.siblings,function(b){b.css({top:b.position().top+a.outerHeight()+"px"})})}};
q.hide=function(){var a=$(".viewport-banner");if(a.length>0&&a.is(":visible")){A(this.siblings,function(b){b.css({top:b.position().top-a.outerHeight()+"px"})});var b=this.K.viewport.mode.Yi;b.J.is(":visible")&&this.J.css({top:a.position().top-b.J.outerHeight()+"px"});a.hide()}};q.set=function(a){this.Uf(a);this.show()};q.restore=function(){this.sq?this.Uf(this.sq):this.hide()};function Ip(a,b){function c(){d.Rf=0;A(d.Pe,function(a){a.ta||d.Rf++})}var d=this;this.K=b;this.pi=this.tp=this.Gn=this.yu=this.Vo=this.Aq=this.Sq=this.menubar=this.Mx=l;$(a).append(y({Q:"menu-bar noise-texture",children:[{Q:"title-bar",create:function(a){d.Mx=a},children:[{R:"h1",text:"Untitled Document",create:function(a){a.css("cursor","pointer").click(function(){d.kb||J.set("document.rename")});d.ps=a}},{Q:"title-bar-button-container",children:[{Q:"left read-only hidden",create:function(a){d.Aq=
a},children:[{Q:"title-bar-button left",text:S("titlebar.show.hotspots.button"),click:function(){d.K.viewport.hl?(d.K.viewport.hl=!1,$(this).html(S("titlebar.show.hotspots.button"))):(d.K.viewport.hl=!0,$(this).html(S("titlebar.hide.hotspots.button")));d.K.viewport.ia()},create:function(a){d.tp=a}},{Q:"title-bar-button left only-icon",title:"Share with Twitter",click:function(){J.set("default.twitter")},children:[{Q:"icon-21 icon-21-twitter"}]},{Q:"title-bar-button left only-icon",title:"Share with Facebook",
click:function(){J.set("default.facebook")},children:[{Q:"icon-21 icon-21-facebook"}]},{Q:"title-bar-button left only-icon",title:"Zoom out",click:function(){J.set("default.zoomOut")},children:[{Q:"icon-21 icon-21-zoom-out"}]},{Q:"title-bar-button left only-icon",title:"Zoom in",click:function(){J.set("default.zoomIn")},children:[{Q:"icon-21 icon-21-zoom-in"}]}]},{Q:"left edit-mode",create:function(a){d.Vo=a},children:[{Q:"title-bar-button has-icon",text:"Share",title:"Share with others",click:function(){J.set("default.share")},
create:function(a){d.Gn=a;d.pi&&d.pi==="editor"&&d.Gn.hide()},children:[{Q:"icon-21 icon-21-share"}]}]},{Q:"title-bar-button has-icon left",text:"<span>Return to Third Party</span>",title:"Return",create:function(a){Jp()?a.click(function(){J.set("default.returnToApp")}):a.hide();d.yu=a},children:[{Q:"icon-21 icon-21-home"}]}]}]},{Q:"menu-bar-div",create:function(a){d.menubar=a}}]}));this.jt=[];this.dn=l;this.Rf=this.du=0;this.Pe=[];J("thirdparty.appNameSet",function(a){d.yu.find("span").html("Return to "+
a)});J("gui.closeAllYerStuff",function(){Kp(d);c()});J("page.selectionChange",function(a){d.Pe=a;d.du=d.Pe.length;c()});this.me=!0;var e=S("All changes saved"),f=S("Saving..."),g=S("Save"),i=S("Recent changes have not been saved!");J("document.loaded document.loaded.new",function(a){var b=!0,c=!1;d.document=a;d.ps.text(a.q.get("Title"));a.id!=l&&!a.$.zb()&&(Lp(d,e),b=!1);$(document).bind("documentPostAction",function(){!c&&!b&&kk(a)&&(Lp(d,g),b=!0)});$(document).bind("SaveSuccess",function(){a.id!=
l&&!a.$.zb()&&(Lp(d,e,!1),c=b=!1)});$(document).bind("SaveStart",function(){!c&&a.id!=l&&!a.$.zb()&&(Lp(d,f),b=!1)});$(document).bind("SaveNotWorking",function(){Lp(d,i,!0);b=!1;c=!0})});J("document.property.title",function(a){d.ps.text(a)});J("client.roleChanged",function(a){d.pi=a;a==="editor"?d.Gn.hide():a==="owner"&&d.Gn.show()},!0);this.document=l;Mp(this)}q=Ip.prototype;q.Zb=function(){var a=this;J.set("client.getDocument",function(b){a.document=b});return a.document};
function Mp(a){if(a.menubar)a.menubar.empty(),a.Py=Np(a,[{Q:"molecule"}],new Tl([{label:{R:"a",href:"/documents",text:"Back to Documents"}}],{zf:!0})),a.Ay=Np(a,["File"],Op()),a.wy=Np(a,["Edit"],Pp(a)),a.iz=Np(a,["View"],Qp(a)),a.Xy=Np(a,["Page"],Rp(a)),a.jy=Np(a,["Arrange"],Sp(a)),a.cz=Np(a,["Share"],Tp(a)),a.Ey=Np(a,["Help"],Up(a)),a.menubar.append(y({Q:"menu-bar-status",create:function(b){a.Sq=b}})),a.menubar.append(y({Q:"brand"}))}
function Np(a,b,c){a.jt.push(c);var d,e;a.menubar.append(y({Q:"menu-bar-button",create:function(b){d=b;b.mousedown(function(b){a.kb||(Vp(a,c)&&(e=d.offset(),c.Lf(e.left-1,e.top+d.outerHeight())),b.preventDefault(),b.stopPropagation())}).bind("mouseenter",function(){a.dn&&a.dn!=c&&Vp(a,c)&&(e=d.offset(),c.Lf(e.left-1,e.top+d.outerHeight()))})},children:b}));Wl(c,function(){d.addClass("hover")});c.vr(function(){d.removeClass("hover")});return c}
function Op(){return new Tl([{label:"Rename document",action:"document.rename"},"hr",{label:"Close",action:"default.close"},{label:"Save",action:"default.save"},{label:S("menu.saveas"),action:"default.saveAs"},"hr",{label:S("menu.preferences"),action:"default.promptPreferences"},{label:"More Shapes",action:"default.manageToolbox"},"hr",{label:S("menu.download"),action:"default.download",disabled:ea("me")},{label:S("menu.print"),action:"default.print",disabled:ea("me")}],{zf:!0})}
function Pp(a){function b(){return P}return new Tl([{label:"Undo",action:"default.undo"},{label:"Redo",action:"default.redo"},"hr",{label:"Cut",action:"{context}.cut",disabled:b},{label:"Copy",action:"{context}.copy",disabled:b},{label:"Paste",action:"{context}.paste",disabled:b},{label:"Copy Block Style",action:"default.copyBlockStyle",disabled:function(){return!Zk(a.K.viewport)}},{label:"Copy Line Style",action:"default.copyLineStyle",disabled:function(){return!Yk(a.K.viewport)}},"hr",{label:S("menu.line.draw.alt"),
action:"default.drawLineMode"},"hr",{label:"Spell Check",action:"lucid.spellCheck.enabled",selected:function(){return Yg},toggle:!0},{label:S("Change Language"),action:"default.promptLanguage"},"hr",{label:"Foreign Language Input",action:"text.ime",selected:function(){return parseInt($.cookie("ime"),10)==1}},"hr",{label:S("search"),action:"default.findReplace"}],{zf:!0})}
function Rp(a){function b(){var b=0;a.Zb().ee(function(){b++});return b}function c(){var b=!1;a.Zb().ee(function(){if(this.Fb())return b=!0,"stop"});return b}return new Tl([{label:S("menu.page.new"),action:"default.newPage"},{label:S("menu.page.duplicate"),action:"page.duplicate",disabled:function(){return!(!a.K.viewport.V[0].C||!a.K.viewport.V[0].C.q.get("IsMaster"))}},{label:S("Rename Page"),action:"page.rename"},{label:S("menu.page.settings"),action:"page.settings"},{label:S("menu.page.delete"),
action:"page.delete",disabled:function(){return b()<=1},na:"delete"},"hr",{label:S("menu.page.masterize"),action:"page.masterize",disabled:function(){return!(!a.K.viewport.V[0].C||!a.K.viewport.V[0].C.q.get("IsMaster"))}},{label:S("menu.page.master.remove"),action:"page.removeMaster",disabled:function(){return!(a.K.viewport.V[0].C&&a.K.viewport.V[0].C.q.get("Master"))}},{label:S("menu.page.master.apply"),action:"page.applyMaster",disabled:function(){return!c()}},"hr",{label:"New Page From Master",
action:"page.createFromMaster",disabled:function(){return!(a.K.viewport.V[0].C&&a.K.viewport.V[0].C.q.get("IsMaster"))}},{label:S("menu.masterpage.apply.all"),action:"page.applyMasterToAll",disabled:function(){return!(a.K.viewport.V[0].C&&a.K.viewport.V[0].C.q.get("IsMaster"))}},{label:S("menu.masterpage.demasterize"),action:"page.demasterize",disabled:function(){return!(a.K.viewport.V[0].C&&a.K.viewport.V[0].C.q.get("IsMaster"))}},{label:S("menu.masterpage.duplicate"),action:"page.duplicateMaster",
disabled:function(){return!(a.K.viewport.V[0].C&&a.K.viewport.V[0].C.q.get("IsMaster"))}}],{zf:!0})}
function Qp(a){return new Tl([{label:"Zoom In",action:"default.zoomIn"},{label:"Zoom Out",action:"default.zoomOut"},{label:"Zoom to Width",action:function(){J.set("default.zoom","width")}},{label:"Zoom to Page",action:function(){J.set("default.zoom","page")}},{label:"Reset Zoom",action:function(){J.set("default.zoom",75)}},"hr",{label:"Show Toolbox",action:"default.gui.toolbox.toggle",toggle:!0,selected:function(){return a.K.pg.Ca}},{label:"Show Title",action:"default.gui.title.toggle",selected:function(){var a=
!0;J.set("default.gui.title.hidden",function(c){a=!c});return a},disabled:function(){return Jp()},toggle:!0}],{zf:!0})}
function Sp(a){return new Tl([{label:"Bring to Front",action:"default.bringSelectionToFront",disabled:function(){return a.Rf<1}},{label:"Send to Back",action:"default.sendSelectionToBack",disabled:function(){return a.Rf<1}},"hr",{label:"Align Objects",disabled:function(){return a.Rf<2},Tb:new Tl([{label:"Left",action:"default.alignSelectionLeft"},{label:"Center",action:"default.alignSelectionCenter"},{label:"Right",action:"default.alignSelectionRight"},"hr",{label:"Top",action:"default.alignSelectionTop"},
{label:"Middle",action:"default.alignSelectionMiddle"},{label:"Bottom",action:"default.alignSelectionBottom"}],{Tb:!0})},{label:"Distribute Objects",disabled:function(){return a.Rf<3},Tb:new Tl([{label:"Horizontally",action:"default.distributeSelectionH"},{label:"Vertically",action:"default.distributeSelectionV"}],{Tb:!0})},{label:"Match Size",disabled:function(){return a.Rf<2},Tb:new Tl([{label:"Width",action:"default.matchSelectionSizeX"},{label:"Height",action:"default.matchSelectionSizeY"}],{Tb:!0})},
"hr",{label:"Lock",action:function(){J.set("default.property.Lock",1)},disabled:function(){return a.Rf<1}},{label:"Unlock",action:function(){J.set("default.property.Lock",0)},disabled:function(){return a.du-a.Rf<1}},"hr",{label:"Group",action:"default.groupSelection",disabled:function(){return a.Rf<2}},{label:"Ungroup",action:"default.ungroupSelection",disabled:function(){var b=!0;A(a.Pe,function(a){if(a.pa&&!a.ta)return b=!1});return b}}],{zf:!0})}
function Tp(a){var b=a.K.$.Qa=="owner";return new Tl([{label:S("menu.invite.user"),create:function(a){b||a.hide()},action:"default.share",disabled:function(){return a.pi&&a.pi==="editor"}},{label:S("menu.publish"),create:function(a){b||a.hide()},action:"default.publish",disabled:function(){return a.pi&&a.pi==="editor"}},{label:S("tooltip.facebook.share"),action:"default.facebook"},{label:S("tooltip.twitter.share"),action:"default.twitter"}],{zf:!0})}
function Up(a){return new Tl([{label:S("menu.forums"),action:function(){J.set("default.forums")},disabled:function(){return!a.me}},{label:S("menu.tutorials"),action:function(){J.set("default.tutorials")},disabled:function(){return!a.me}},{label:S("menu.hotkey.ref"),action:function(){J.set("default.hotKeyReference")}},{label:S("menu.feedback.send"),action:"default.sendFeedback",disabled:function(){return!a.me}}],{zf:!0})}function Kp(a){A(a.jt,function(a){a.hide()});a.dn=l}
function Vp(a,b){var c=b.Th();J.set("gui.closeAllYerStuff");return!c?(a.Zb(),b.show(),a.dn=b,!0):!1}function Lp(a,b,c){a.Sq.text(b);c!==h&&a.Sq.toggleClass("error",c)}function Wp(a){var b=!1,c;for(c in a.K.viewport.V)if(a.K.viewport.V[c].C.df(function(){if(this.className==="UI2HotspotBlock")return b=!0,"stop"}),b)break;b?a.tp.removeClass("hidden"):a.tp.addClass("hidden")}q.Uc=function(){this.kb=!0};q.pc=function(){this.kb=!1};q.eg=function(){this.Vo.hide();this.Aq.show();Wp(this)};
q.gh=function(){this.Aq.hide();this.Vo.show()};function Xp(a,b){this.K=b;var c=this;this.Ca=!0;this.Np=this.Co=this.$b=this.xe=this.qb=l;a.append(y({Q:"tool-box",create:function(a){c.xe=a},children:[{Q:"tool-box-touch"},{Q:"tool-box-header",create:function(a){c.$b=a},children:[{Q:"tool-box-header-complexity",create:function(a){c.Co=a}}]},{Q:"tool-box-slider scrollable tinyScrollBars",create:function(a){c.qb=a}},{Q:"tool-box-overlay",create:function(a){c.Np=a}}]}));this.search=l;this.qe={};this.SEARCH_TITLE="LucidChart";this.SEARCH_TITLE_ICONFINDER=
"IconFinder";this.SEARCH_TITLE_GOOGLEIMAGES="Google Images";this.cu=!1;this.qq=new Sn(new G(0,0),'<div id="toolbox_preview_container"></div><div class="spacer"></div><div id="toolbox_preview_text" class="crop center"></div>',"w");if(Ya)this.ve=$(".tool-box-touch"),$('<div style="width:32px;height:8px;clear:left;"></div>').appendTo(this.ve),$('<div class="icon-21 icon-21-cube"></div>').click(function(){c.xe.hasClass("closed")&&c.K.viewport.ji("diagramming");c.xe.toggleClass("closed")}).appendTo(this.ve),
$('<div class="icon-21 icon-21-draw"></div>').click(function(){c.K.viewport.mode.name=="drawing"?c.K.viewport.ji("diagramming"):c.K.viewport.ji("drawing")}).appendTo(this.ve),$('<div style="width:32px;height:32px;clear:left;"></div>').appendTo(this.ve),$('<div class="icon-21 icon-21-undo"></div>').click(function(){c.K.$.document.gr()}).appendTo(this.ve),$('<div class="icon-21 icon-21-redo"></div>').click(function(){c.K.$.document.Bq()}).appendTo(this.ve),$('<div style="width:32px;height:32px;clear:left;"></div>').appendTo(this.ve),
$('<div class="icon-21 icon-21-cut"></div>').click(function(){Pk(c.K.viewport);c.K.viewport.ae()}).appendTo(this.ve),$('<div class="icon-21 icon-21-copy"></div>').click(function(){Pk(c.K.viewport)}).appendTo(this.ve),$('<div class="icon-21 icon-21-paste"></div>').click(function(){var a=c.K.zi.offset(),a={pageX:a.left+c.K.zi.width()/2,pageY:a.top+c.K.zi.height()/2},a=c.K.viewport.mc(a);Ok(c.K.viewport,a.x,a.y)}).appendTo(this.ve),$('<div style="width:32px;height:32px;clear:left;"></div>').appendTo(this.ve),
$('<div class="icon-21 icon-21-delete"></div>').click(function(){c.K.viewport.ae()}).appendTo(this.ve),this.ve.find(".icon-21").wrap('<div class="icon-21-button"></div>'),this.xe.addClass("touch").addClass("closed"),$(document).bind("viewport.setMode",function(a,b){b=="drawing"&&c.xe.addClass("closed")});else{var d=function(){var a=c.Hq.val(),b=c.search;c.search=a==""||a.length<2||c.Hq.hasClass("default")?l:a;(c.search==l||c.search!=b)&&c.ia()},e,f,g=function(a){e&&clearTimeout(e);e=setTimeout(d,
a||2E3)},i=function(a){f&&clearTimeout(f);f=setTimeout(function(){c.ll.slideUp("fast")},a||3E3)},j=function(a,d){return!c.zp&&a!="SearchLucidChart"?0:b.$.da&&b.$.da.preferences?b.$.da.preferences[a]:d};this.$b.append(y({children:[{Q:"top"},{Q:"search",children:[{R:"input",type:"text",Q:"search default box-sizing-border user-select-text",value:S("toolbox.search"),attr:{maxlength:64},create:function(a){c.Hq=a;a.focus(function(){$(this).hasClass("default")&&$(this).val()==S("toolbox.search")&&$(this).val("").removeClass("default");
g()}).blur(function(){if($(this).val()=="")$(this).val(S("toolbox.search")).addClass("default"),c.search=l;clearTimeout(e)}).keyup(function(a){clearTimeout(e);a.keyCode==13?g(1):g();c.ll.slideUp("fast")})}},{Q:"clear-search icon-13 icon-13-close",title:S("tooltip.search.clear"),click:function(){c.Hq.val("").focus();g(1)}},{Q:"option-toggle right icon-13-button",children:[{Q:"icon-13 icon-13-tri-d"}],title:S("tooltip.search.options"),click:function(){c.ll.slideToggle("fast");i(1E4)}},{Q:"google-branding"},
{Q:"search-options hidden",create:function(a){c.ll=a},children:[{R:"label",children:[{R:"input",type:"checkbox",value:"lucidchart",create:function(a){c.Cw=a}},"LucidChart Library"]},{R:"label",children:[{R:"input",type:"checkbox",value:"iconfinder",create:function(a){c.ow=a}},"IconFinder"]},{R:"label",children:[{R:"input",type:"checkbox",value:"googleimages",create:function(a){c.dw=a}},"Google Images"]}]}]}]}));var k=[];setInterval(function(){k.length>0&&!c.ll.is(":visible")&&($.ajax({type:"POST",
url:"/users/preferences",data:k.join("&")}),k=[])},100);var n=function(a,d,e){function f(){var b=!1;if(j(a,1)==1){for(var i=[],b=0;b<e.length;b++)j(e[b],0)==1&&i.push(e[b]);b=c.qe[d.val()]==l||c.qe[d.val()].toString()!=i.toString();c.qe[d.val()]=i;d.attr("checked","checked")}else b=!!c.qe[d.val()],delete c.qe[d.val()],d.removeAttr("checked");c.$b.toggleClass("google","googleimages"in c.qe);if(b)c.search=l,c.Gp=l,g(1)}f();$(document).bind("userPreferences.toolbox",f);d.click(function(){if(b.$.da&&
b.$.da.preferences){var c=$(this).attr("checked")?1:0;k.push("data[User]["+encodeURIComponent(a)+"]="+c)}})};n("SearchLucidChart",c.Cw,[]);n("SearchIconFinder",c.ow,["IconFinderCommercial"]);n("SearchGoogleImages",c.dw,["GoogleImagesCommercial"]);c.ll.find("input[type=checkbox]").change(function(){$(this).is(":checked")||delete c.qe[$(this).val()];c.$b.toggleClass("google","googleimages"in c.qe);c.search=l;c.Gp=l;g(1);clearTimeout(f);i()}).change()}this.J=this.qb;this.Ea={};this.zp=!0;this.cq={};
this.Um=Yp(this);this.ov=new dn(r(this.lb,this),Xd?500:100);var m=!1;setInterval(function(){if(c.K.$.da&&c.K.$.da.Level.document_objects>0){m||(c.xe.addClass("has-complexity"),c.Co.empty().append('<div id="complexitybar-wrapper"><div id="complexitybar"><div id="complexity"></div><div id="complexity-text">Complexity</div></div></div>'),$("#complexitybar").addClass("ui-corner-all").click(function(){Zp(c.K.$)}),c.lb(),m=!0);var a=c.K.$.document.lg/c.K.$.da.Level.document_objects;$("#complexity").css({width:Math.min(a,
1)*122+"px"})}else m&&(c.xe.removeClass("has-complexity"),c.Co.empty(),c.lb(),m=!1)},100);$(document).bind("online",function(){$p(c)});$(document).bind("offline",function(){aq(c)});fl()||aq(this);J("default.manageToolbox",function(){bq(c)})}function $p(a){a.zp=!0;a.ia();F(a.cq,function(a){$("#"+a).show()});$(document).trigger("userPreferences.toolbox")}function aq(a){a.zp=!1;a.ia();F(a.cq,function(a){$("#"+a).hide()});$(document).trigger("userPreferences.toolbox")}q=Xp.prototype;
q.lb=function(){var a=this;a.sn=!1;var b=this.search?jQuery.trim(this.search).replace(/\s+/g," "):this.search,c=!0,d=this.SEARCH_TITLE,e=this.SEARCH_TITLE_ICONFINDER,f=this.SEARCH_TITLE_GOOGLEIMAGES,g={},i=[],j=this.cu;if(b){if(i.push(d),i.push(e),i.push(f),this.Gp!=b){j=!1;this.Ea[d]={};this.Ea[e]={};this.Ea[f]={};for(var k in gj)j=cq(this,gj[k],b)||j}}else j=!1;this.cu=j;this.Gp=b;this.qb.find("h3").each(function(){var a=$(this).text();a!=d&&a!=e&&a!=f&&(g[a]=$(this).hasClass("minimized"),i.push(a))});
for(var n in this.Ea)!nc(i,n)&&n!=d&&n!=e&&n!=f&&i.push(n);this.qb.find("div.tool-box-block").detach();this.qb.empty();var m;this.qb.css({top:(Ya?-110:a.$b.get(0).offsetHeight)+"px"});$("#toolbox_manage_button_touch").click(function(){bq(a)});for(b=0;b<i.length;b++)if(n=i[b],this.Ea[n]){k={Q:"panel",children:[{R:"h3",Q:"normalface",text:n,create:function(a){a.click(function(){a.children(".icon-13").toggleClass("icon-13-tri-d icon-13-tri-r");a.siblings(".content").toggle()})},children:[{Q:"icon-13 icon-13-tri-d"}]},
{Q:"content",create:function(a){m=a}}]};if(n==d||n==e||n==f)if(n==d&&"lucidchart"in this.qe&&j||n==e&&"iconfinder"in this.qe||n==f&&"googleimages"in this.qe)k.children[0].Q+=" em",n==f&&(k.children[1].Q+=" google"),this.qb.append(y(k));else continue;else this.qb.append(y(k));k=[];var p=0,s;for(s in this.Ea[n]){var u=this.Ea[n][s].ri,p=u>p?u:p;k.push({name:s,ri:u})}p>0&&k.sort(function(a,b){return b.ri-a.ri});for(p=0;p<k.length;p++){s=k[p].name;if(!(s in this.Ea[n]))break;var w=this.Ea[n][s],u=w.className,
v=w.mb;m.append(v);if(u&&!v.nv){v.nv=!0;var x=gj[u];if(x==l)c=!1;else{this.Dq(n,s);var z={};w.xf&&(z=w.xf());w=w.bd||x.bd;V("ds",w);(function(b,c,d,e,f,g){var i;b.draggable({helper:"original",revert:!0,revertDuration:0,containment:Yd?"parent":!1,start:function(){J.set("block.drag.start",[c,d,e]);clearTimeout(i);a.Ag=l;a.qq.hide();a.sn=!0},stop:function(){J.set("block.drop",[c,d,e]);a.sn=!1}}).hover(function(){clearTimeout(i);a.sn||(i=setTimeout(function(){a.Ag=g+"::"+c;a.An(g,f)},200))},function(){clearTimeout(i);
a.sn||(i=setTimeout(function(){a.Ag=l;a.qq.hide()},200))});if(Ya){var j=l;b.bind("touchstart",function(a){if(!(a.originalEvent.touches.length>1)){var b=$.Event("mousedown");b.pageX=a.originalEvent.touches[0].pageX;b.pageY=a.originalEvent.touches[0].pageY;b.target=a.target;b.which=1;b.button=0;j=b;a.preventDefault()}});b.bind("touchmove",function(c){if(!(c.originalEvent.touches.length>1)){var d=$.Event("mousemove");d.pageX=c.originalEvent.touches[0].pageX;d.pageY=c.originalEvent.touches[0].pageY;d.target=
c.target;d.which=1;d.button=0;d.pageX>a.xe.offset().left+a.xe.width()+a.qb.width()&&(j&&(b.trigger(j),j=l),b.trigger(d),a.K.viewport.V[0].canvas.J.trigger(c),c.stopPropagation());c.preventDefault()}});b.bind("touchend",function(c){if(!(c.originalEvent.touches.length>1)){var d=$.Event("mouseup");d.pageX=c.originalEvent.changedTouches[0].pageX;d.pageY=c.originalEvent.changedTouches[0].pageY;d.target=c.target;d.which=1;d.button=0;d.pageX>a.xe.offset().left+a.xe.width()+a.qb.width()&&(a.K.viewport.V[0].canvas.J.trigger(c),
a.xe.addClass("closed"));b.trigger(d);c.preventDefault()}})}})(v,u,z,w,s,n)}}}m.append('<div class="left" style="width:116px;height:0;"></div>')}this.bz=this.qb.children();this.qb.find("h3").each(function(){var a=$(this).text();g[a]&&$(this).click()});return c};
q.Dq=function(a,b){if(this.Ea[a]==l||this.Ea[a][b]==l)return a!=this.SEARCH_TITLE&&this.Dq(this.SEARCH_TITLE,b),!1;var c=this.Ea[a][b],d=c.className,e=c.mb,f=gj[d];if(f==l)return!1;var g=27,i=23;Ya&&(g=36,i=32);var j=(g-i)/2,k=document.createElement("canvas");$(k).attr("width",g);$(k).attr("height",g);k=fb(k);e.empty().append(k);e=c.bd||f.bd;d=jj(d,"",this.K.$.document);g=Math.min(i/e.w,i/e.h);f=e.w*g;e=e.h*g;d.q.set("BoundingBox",{x:j+(i-f)/2,y:j+(i-e)/2,w:f,h:e});i={};if(c.xf){var i=c.xf(),n;for(n in i)d.q.set(n,
i[n])}wi(new Th(l,d),k)};
q.An=function(a,b){if(!ae){if(this.Ea[a]==l||this.Ea[a][b]==l)return a!=this.SEARCH_TITLE&&this.An(this.SEARCH_TITLE,b),!1;var c=this.Ea[a][b],d=c.className,e=c.mb,f=gj[d];if(f==l)return!1;if(this.Ag!=a+"::"+d)return this.Ag==this.SEARCH_TITLE+"::"+d&&this.An(this.SEARCH_TITLE,b),!1;var e=Math.round(e.offset().top+0.5*e.outerHeight(!0)),g=c.Pa||f.title,i=c.bd||f.bd,f=this.K.$.document,d=jj(d,"renderPreviewBlock",f);d.page=this.K.viewport.V[0].C;d.q.set("LineWidth",f.q.get("DefaultBlockLineWidth"));d.q.set("LineColor",
f.q.get("DefaultBlockLineColor"));d.q.set("FillColor",ck(f));d.q.set("Font",f.q.get("DefaultFont"));var j=Math.min(200/i.w,200/i.h),f=j<1?0.5:1,j=Math.min(j,1),k=Math.round(i.w*j),j=i=Math.round(i.h*j),n=k,m=d.q.get("Rotation");if(m)i=db(new H(0,0,k,i),m,new G(k/2,i/2)),k=i.w,i=i.h;m=document.createElement("canvas");$(m).attr({width:k,height:i}).css({position:"absolute"});m=fb(m);$("#toolbox_preview_text").css({width:Math.max(200,k)+"px"}).html(g);g=Math.max(0,Math.round(0.5*(200-k)));$("#toolbox_preview_container").css({width:k+
"px",height:i+"px","margin-left":g+"px","margin-right":g+"px"}).empty().append(m);this.qq.show().move(new G(this.xe.width(),e));e=n-8;g=j-8;d.q.set("BoundingBox",{x:(k-e)/2/f,y:(i-g)/2/f,w:e/f,h:g/f});e={};if(c.xf){var e=c.xf(),p;for(p in e)d.q.set(p,e[p])}wi(new Th(l,d),m,f,"preview")}};
function cq(a,b,c){var d=!1;if(b.bu){b=b.bu;a.mp(a.SEARCH_TITLE);for(var e=0;e<b.length;e++)if(b[e].action)b[e].action(c,a.qe,a);else if("lucidchart"in a.qe){for(var f=b[e].keywords,g=c.split(" "),i=0,j=0;j<g.length;j++)for(var k=0;k<f.length;k++)if(f[k].search(RegExp("^"+g[j],"i"))!=-1){i++;break}if(i>0)d=b[e].addBlockParams,a.Xf(d[0],d[1],d[2],d[3],d[4],i),d=!0}}return d}
function Yp(a){var b=$('<div title="'+S("button.library.manage")+'"><p><strong>'+S("dialog.library.manage.p")+'</strong></p><div id="plugin_list"></div><hr />');return new se(b,{Ld:!0,title:S("button.library.manage"),width:400,hb:[{label:S("Cancel"),action:function(a,b){b.close()}},{label:S("Save"),Pg:!0,action:function(){a.K.$.document.Aa();var b=[],d;for(d in a.K.$.Ob)b.unshift(d);A(b,function(b){a.K.$.document.ba(new N(Bg,{URL:b}))});$("#plugin_list :checkbox").each(function(){$(this).is(":checked")&&
a.K.$.document.ba(new N(zg,{URL:$(this).val()}))});a.K.$.document.xa();a.Um.close()}}]})}q.mp=function(a){this.Ea[a]||(this.ia(),this.Ea[a]={});this.Ma=this.Ea[a];return this};q.ox=function(a){this.Ea[a]&&(delete this.Ea[a],this.ia());this.Ma=this.Ea[a]};q.mx=function(a){this.Ea[a]&&lc(this.Ea[a])&&(delete this.Ea[a],this.ia());this.Ma=this.Ea[a]};
q.Xf=function(a,b,c,d,e,f){b==l&&(b=a);this.Ma[a]||(this.ia(),this.Ma[a]={mb:$('<div class="tool-box-block left"></div>'),xf:c,bd:d,className:b,Pa:e,ri:f?f:0},this.Ma[a].mb.attr("blockClass",b),this.Ma[a].mb.attr("blockName",a));return!0};q.iv=function(a){if(a&&a.searchData){for(var a=a.searchData,b=0;b<a.length;b++){var c=a[b].addBlockParams;a[b].group&&this.mp(a[b].group);this.Xf(c[0],c[1],c[2],c[3],c[4])}return!0}return!1};
function Sm(a,b){for(var c in a.Ea)for(var d in a.Ea[c])if(d==b)return a.Ea[c][d];return l}q.jv=function(a,b,c){var d="toolbox_button_"+a.replace(/[^0-9a-z]/ig,"_")+"_"+Math.round(1E5*Math.random());this.Ma[a]||(this.ia(),this.Ma[a]={mb:$('<div class="clear"></div><div style="text-align:center;"><span id="'+d+'" class="button small" style="margin: 5px 0;">'+a+"</span></div>"),name:a},$("#"+d).live("click",b));c&&(this.cq[d]=!0)};q.removeItem=function(a){this.Ma[a]&&(delete this.Ma[a],this.ia())};
q.ia=function(){this.ov.queue()};function bq(a){a.Um.hc()&&a.Um.close();$("#plugin_list").empty().append(dq(a));a.Um.open()}
function dq(a){var b;b==l&&(b=[]);var c=$("<div />"),d=0,e;for(e in a.K.$.Ob){var f=a.K.$.Ob[e];if(f.name&&f.name!="Default"&&!f.hideInList){var g=f.Nj;nc(b,e)&&(g=!0);f=$('<div class="bigger ui-corner-all" style="padding:2px 0 2px 4px; margin:1px 0;"><input style="vertical-align:text-top;" type="checkbox" name="plugin" value="'+f.url+'" id="plugin_'+d+'" '+(g?'checked="checked"':"")+' /> <label for="plugin_'+d+'" class="inline">'+f.name+'</label><span class="lighter link right hidden">+ show description</span><div class="hidden ui-corner-all" style="margin:4px 4px 2px 0; border:#CCC solid 1px; padding:4px; background-color:#FFF;">'+
f.description+"</div></div>");f.children("span.link").click(function(){var a=$(this).siblings("div.hidden");a.is(":visible")?(a.hide(),$(this).html("+ show description")):($(this).parent().siblings("div.bigger").children("span.link").html("+ show description").siblings("div.hidden:visible").hide("blind","fast"),a.show(),$(this).html("- hide description"))});f.find("input[type=checkbox]").click(function(){if($(this).attr("checked")&&a.K.$.da&&a.K.$.da.Level.restricted_plugins.length>0&&this.value.match(RegExp(a.K.$.da.Level.restricted_plugins))){var b=
L("<p>"+S("toolbox.alert.plugin.restricted")+"</p>");a.K.$.da.TrialEligible&&$("#managetools_upgradelink").attr("href","#").removeAttr("target").click(function(a){a.preventDefault();xe("/users/level",!1,function(){b()});return!1});$(this).removeAttr("checked")}});c.append(f);d++}}c.disableSelection();return c}q.Uc=function(){this.Np.show()};q.pc=function(){this.Np.hide()};
q.toggle=function(){this.K.uo.toggleClass("hidetoolbox");this.Ca?this.K.tg.css("left","0px"):this.K.tg.css("left","");this.Ca=!this.Ca};q.hide=function(){this.J.parent().hide();this.K.tg.css("left","0px");this.Ca=!1};q.show=function(){this.J.parent().show();this.K.tg.css("left","");this.Ca=!0};Xp.prototype.getToolGroup=Xp.prototype.mp;Xp.prototype.removeToolGroup=Xp.prototype.ox;Xp.prototype.removeEmptyToolGroup=Xp.prototype.mx;Xp.prototype.addBlock=Xp.prototype.Xf;Xp.prototype.addBlockSet=Xp.prototype.iv;
Xp.prototype.addButton=Xp.prototype.jv;Xp.prototype.renderHelper=Xp.prototype.Dq;Xp.prototype.renderPreview=Xp.prototype.An;Xp.prototype.removeItem=Xp.prototype.removeItem;function eq(a){var b=this;this.K=a;this.dialog=new se('<div id="masterpanel-applicator-dialog"></div>',{title:S("apply.master.dialog.title"),$c:!0,width:"375px"});J("applyMasterDialog.open",function(){b.open()})}
eq.prototype.open=function(){var a=this,b=this.K.$.document,c=$("#masterpanel-applicator-dialog").empty();b.ik(function(){if(this.Fb()){var b=this,e=new Gj(this),f=this.q.get("Size"),g=f.w/f.h,i=130/170,f=Math.round(g<i?g*170:130),i=Math.round(g<i?170:130/g),g=Math.floor((130-f)/2),i=Math.floor((170-i)/2),j=$("<div></div>").appendTo(c),g=$('<div class="left"><div class="tn"></div></div>').appendTo(j).css({"padding-bottom":2*i+5+"px","padding-left":g+"px","padding-right":g+5+"px"});Pj(e,f-2,g.children());
g.click(function(){var c=a.K.viewport.V[0].C;a.dialog.close();c&&(c.Fb()?L(S("alert.apply.master.to.master")):(b.id!=sj(c,!0)&&Dj(c,b.id),Tk(S("growl.master.applied"))))})}});this.dialog.open()};function fq(a){function b(a,b,c){J("default."+a,function(){if(m==m.viewport.mode){m.an=!1;var a=m.viewport.V[0].C.q.get("GridSpacing");m.Qb=m.viewport.getSelection(!0);var d=m.Qb.length>0&&m.Qb[0].Of?m.Qb[0].Of:2;m.offset.x+=b*(a/d);m.offset.y+=c*(a/d);m.viewport.ia();m.es.queue()}});J("default."+a+"Shift",function(){if(m==m.viewport.mode)m.an=!1,m.Qb=m.viewport.getSelection(!0),m.offset.x+=b,m.offset.y+=c,m.viewport.ia(),m.es.queue()});J("default."+a+"ShiftCtrl",function(){if(m==m.viewport.mode){var a=
m.viewport.getSelection(!0);if(a.length!=0)m.document.Aa(),a=m.viewport.rk(a),m.viewport.Yk(m.viewport.V[0],a,a.Base.x,a.Base.y),m.Qb=m.viewport.getSelection(!0),a=$h(m.Qb),m.offset.x=a.w*b,m.offset.y=a.h*c,gq(m,!0,!1),hq(m),m.document.xa()}})}function c(){p==l&&(p={},A(Vk(m.viewport,!0),function(a){a.Ui&&(p=a.Ui(p))}),setTimeout(function(){p=l},1));return p}function d(a,b){m.document.Aa();A(Vk(m.viewport,!0),function(c){if(!b||b(c))if(c.sa)for(var d in c.la){var e=dd(c.q.get(d),c.q.get("Font")),
f=Nc(e,0,e.text.length,a);f.a=0;f.c=e.text.length;m.document.ba(new N(yg,{id:c.id,Key:d,Diff:f}))}else if(c.fb){var g=c.q.get("TextAreas");for(d in g)if(g[d]&&d!="IsFullPropSettings")e=dd(g[d].Value,c.q.get("Font")),f=Nc(e,0,e.text.length,a),f.a=0,f.c=e.text.length,m.document.ba(new N(yg,{id:c.id,Key:d,Diff:f}))}});m.document.xa();J.set("optionBar.refresh")}function e(a){J("default."+a,function(){if(m==m.viewport.mode){var b=c(),e={};e[a]=!b[a];d(e);J.set("optionBar.refresh")}});J("default."+a+".selected",
function(b){if(m==m.viewport.mode){var d=c();b(d[a])}});J("default."+a+".disabled",function(a){m==m.viewport.mode&&a(m.viewport.getSelection(!0).length==0)})}function f(a){J("default.align."+a,function(){m==m.viewport.mode&&(d({align:a}),J.set("optionBar.refresh"))});J("default.align."+a+".selected",function(b){if(m==m.viewport.mode){var d=c();b(d.align==a)}});J("default.align."+a+".disabled",function(a){m==m.viewport.mode&&a(m.viewport.getSelection(!0).length==0)})}function g(a,b){J("default."+a,
function(a){if(m==m.viewport.mode){var c={};c[b]=a;d(c);J.set("optionBar.refresh")}});J("default."+a+".value",function(a){if(m==m.viewport.mode){var d=c();a(d[b])}});J("default."+a+".disabled",function(a){m==m.viewport.mode&&a(m.viewport.getSelection(!0).length==0)})}function i(a,b,c,d){var e=a.split("."),f=e[0];e.splice(0,1);var g=rc([c,l]);J("default.property."+a,function(c){m==m.viewport.mode&&(m.document.Aa(),A(a=="Lock"?m.viewport.getSelection():Vk(m.viewport,!0),function(d){var g=d.q.get(f);
if(!(g==l&&(!b||!b(d)))){var i=c;if(e.length>0){for(var g=i=g,j=0;j<e.length-1;j++)g=g[e[j]];g[e[e.length-1]]=c}Na(i,d.q.get(f))||m.document.ba(new N(M,{id:d.id,Property:f,Value:i}));a=="FillColor"&&d.cj&&!d.q.get("Fill")&&m.document.ba(new N(M,{id:d.id,Property:"Fill",Value:1}))}}),m.document.xa())});J("default.property."+a+".value",function(c){if(m==m.viewport.mode){var i,j=!1;A(a=="Lock"?m.viewport.getSelection():Vk(m.viewport,!0),function(c){if(!(c.q.get(f)==l&&(!b||!b(c)))&&!(a=="FillColor"&&
c.cj&&!c.q.get("Fill")))if(c=c.q.get(f),d!==h)if(i===h)i=c;else{if(!Na(i,c))return i=d,j=!0,!1}else if(c!=l)return i=c,!1});i&&A(e,function(a){i=i[a]});i!=l&&!j&&(g=i);c(i!==h?i:l)}});J("default.property."+a+".values",function(b){if(m==m.viewport.mode){var c=l;A(a=="Lock"?m.viewport.getSelection():Vk(m.viewport,!0),function(b){var d=b.q.get(f);d!=l&&!(a=="FillColor"&&b.cj&&!b.q.get("Fill"))&&(c=c||{},c[b.id]=d,A(e,function(a){c[b.id]=c[b.id][a]}))});b(c)}});J("default.property."+a+".lastSet",function(a){a(g)});
J("default.property."+a+".disabled",function(b){if(m==m.viewport.mode){var c=a=="Lock"?m.viewport.getSelection():Vk(m.viewport,!0);c.length==0&&b(!0);var d=!1;A(c,function(b){b.js&&nc(b.js,a)&&(d=!0)});d&&b(!0)}})}function j(a){J("default.docProperty."+a,function(b){m==m.viewport.mode&&(Na(b,m.document.q.get(a))||m.document.ba(new N(M,{id:l,Property:a,Value:b})))});J("default.docProperty."+a+".value",function(b){m==m.viewport.mode&&b(m.document.q.get(a))})}function k(a){J("default.docProperty."+a,
function(){m==m.viewport.mode&&(m.document.ba(new N(M,{id:l,Property:a,Value:1-m.document.q.get(a)})),J.set("optionBar.refresh"))});J("default.docProperty."+a+".selected",function(b){m==m.viewport.mode&&b(!!m.document.q.get(a))})}function n(a){J("default.pageProperty."+a,function(b){if(m==m.viewport.mode){var c=Ch(m.viewport);if(c.length!=0)c=c[0].page,Na(b,c.C.q.get(a))||m.document.ba(new N(M,{id:c.C.id,Property:a,Value:b}))}});J("default.pageProperty."+a+".value",function(b){if(m==m.viewport.mode){var c=
Ch(m.viewport);c.length!=0&&b(c[0].page.C.q.get(a))}})}Um.call(this,a);this.name="Editor";var m=this;this.document=this.viewport.document;this.wf="default";this.offset=new H(0,0,0,0);this.xd=0;this.Qb=[];this.an=!0;J("user.preferences",function(a){m.If=a},!0);this.me=!0;J("online",function(a){m.me=a},!0);this.da=l;J("user",function(a){m.da=a},!0);this.zb=!0;J("client.isDemo",function(a){m.zb=a},!0);this.gk=!1;this.Yi=new Tm(this.viewport);this.Ma=l;this.jd=!1;this.Me=l;this.Mm=this.lf=!1;this.Xa=
this.jb=this.X=l;this.de=[];this.Wi=1;this.Jm=!1;this.gm=new Je(0,0,1,1,0);this.gm.J.css({border:"1px solid black"});this.ij=this.ab=l;this.es=new dn(function(){gq(m,!0,!1);hq(m)},200);this.Kk=l;J("default.delete",function(){m==m.viewport.mode&&m.viewport.ae()});J("default.selectAll",function(){m==m.viewport.mode&&A(m.viewport.V,function(a){a.Iq()})});J("default.esc",function(){m==m.viewport.mode&&(J.set("default.exitGroup"),J.set("gui.closeAllYerStuff"))});J("default.exitGroup",function(){m==m.viewport.mode&&
Qk(m)});J("default.drawLineMode",function(){if(m==m.viewport.mode)m.gk=!m.gk});b("up",0,-1);b("down",0,1);b("left",-1,0);b("right",1,0);var p=l;J("optionBar.refresh",function(){p=l});J("default.getSelectedTextStyle",function(a){a(c())});e("bold");e("italic");e("underline");e("strike");f("left");f("center");f("right");f("justified");g("textSize","size");g("font","font");g("lineSpacing","spacing");g("textColor","color");g("pageBreak","pageBreak");J("default.fontGroup",function(a){if(m==m.viewport.mode)a==
"addmorefonts"?(J.set("text.manageFonts"),J.set("optionBar.refresh")):(a=xf(a).yb,J.set("default.font",a))});J("default.fontGroup.value",function(a){if(m==m.viewport.mode){var b=c();b&&b.font&&(Re[b.font.toLowerCase()]?a(Re[b.font.toLowerCase()]):a(b.font))}});J("default.fontGroup.disabled default.fontFace.disabled",function(a){m==m.viewport.mode&&a(m.viewport.getSelection(!0).length==0)});J("default.fontFace",function(a){if(m==m.viewport.mode){var b={};b.font=a.yb;b.bold=a.bold;b.italic=a.ic;d(b);
J.set("optionBar.refresh")}});J("default.fontFace.value",function(a){if(m==m.viewport.mode){var b=c();b.font&&a(kf(b.font,b.bold,b.italic))}});J("default.paragraphStyles",function(a){m==m.viewport.mode&&hc(a)&&d(a)});J("default.namedParagraphStyle",function(a){m==m.viewport.mode&&(m.document.Aa(),A(Vk(m.viewport,!1),function(b){if(b.sa)for(var c in b.la){var d=dd(b.q.get(c),b.q.get("Font")),e=Jc(d,0,d.text.length,a);e.a=0;e.c=d.text.length;m.document.ba(new N(yg,{id:b.id,Key:c,Diff:e}))}else if(b.fb){var f=
b.q.get("TextAreas");for(c in f)if(f[c]&&c!="IsFullPropSettings")d=dd(f[c].Value,b.q.get("Font")),e=Jc(d,0,d.text.length,a),e.a=0,e.c=d.text.length,m.document.ba(new N(yg,{id:b.id,Key:c,Diff:e}))}}),m.document.xa(),J.set("optionBar.refresh"))});J("default.namedParagraphStyle.value",function(a){if(m==m.viewport.mode){var b=c();b.paragraphStyle&&a(b.paragraphStyle)}});J("default.namedInlineStyle",function(a){m==m.viewport.mode&&(m.document.Aa(),A(Vk(m.viewport,!1),function(b){if(b.sa)for(var c in b.la){var d=
dd(b.q.get(c),b.q.get("Font")),e=Mc(d,0,d.text.length,a);e.a=0;e.c=d.text.length;m.document.ba(new N(yg,{id:b.id,Key:c,Diff:e}))}else if(b.fb){var f=b.q.get("TextAreas");for(c in f)if(f[c]&&c!="IsFullPropSettings")d=dd(f[c].Value,b.q.get("Font")),e=Mc(d,0,d.text.length,a),e.a=0,e.c=d.text.length,m.document.ba(new N(yg,{id:b.id,Key:c,Diff:e}))}}),m.document.xa(),J.set("optionBar.refresh"))});J("default.namedInlineStyle.value",function(a){if(m==m.viewport.mode){var b=c();b.inlineStyle&&a(b.inlineStyle)}});
J("default.groupSelection",function(){m==m.viewport.mode&&A(m.viewport.V,function(a){Nj(a)})});J("default.ungroupSelection",function(){m==m.viewport.mode&&A(m.viewport.V,function(a){Oj(a)})});J("default.bringSelectionToFront",function(){if(m==m.viewport.mode){var a=m.viewport,b=a.V[0].C.ge(),c=b.length,d=a.V[0].C.Kd("ZOrder");a.K.Zb().Aa();for(var e=0;e<c;e++){var f=b[e],g=f.id;a.V[0].ac(g)&&!f.ta&&a.K.Zb().ba(new N(M,{id:g,Property:"ZOrder",Value:++d}))}a.K.Zb().xa()}});J("default.sendSelectionToBack",
function(){if(m==m.viewport.mode){var a=m.viewport,b=a.V[0].C.ge(),c=b.length,d=yj(a.V[0].C);a.K.Zb().Aa();for(c-=1;c>=0;c--){var e=b[c],f=e.id;a.V[0].ac(f)&&!e.ta&&a.K.Zb().ba(new N(M,{id:f,Property:"ZOrder",Value:--d}))}a.K.Zb().xa()}});J("default.copy",function(){m==m.viewport.mode&&Pk(m.viewport)});J("default.cut",function(){m==m.viewport.mode&&(J.set("default.copy"),J.set("default.delete"))});J("default.paste",function(a){if(m==m.viewport.mode){if(!a||!qa(a))a={pageX:m.viewport.vb.offset().left+
m.viewport.vb.width()/2,pageY:m.viewport.vb.offset().top+m.viewport.vb.height()/2};a=m.viewport.mc(a);Ok(m.viewport,a.x,a.y)}});J("default.editText",function(a){if(m==m.viewport.mode&&(a=m.document.ra(a)))try{var b=m.viewport.Ti((a.page||a.ke).id).Ya(a);if(b&&b.Ed)for(var c in a.la){b.Ed(c);break}}catch(d){}});J("default.unselectAll",function(){m==m.viewport.mode&&m.viewport.ec()});J("default.selectItem",function(a){m==m.viewport.mode&&m.viewport.Yc(a)});i("LineWidth",function(a){return a.sa});i("Opacity");
i("Lock");i("LineColor",function(a){return a.sa||a.fb},l,"#000000ff");i("FillColor",function(a){return a.sa},l,"#ffffffff");i("FillType");i("FillColor.pos");i("FillColor.url");i("TextVAlign");i("Link");i("StrokeStyle");i("Shape");i("Endpoint1.Style");i("Endpoint2.Style");i("InsetMargin");i("Shadow",function(a){return a.sa},{x:0,y:6,b:10,c:"#00000080"},!0);j("DefaultBlockLineColor");j("DefaultBlockFillColor");j("DefaultBlockLineWidth");j("DefaultBlockShadow");j("RoundCorners");j("Gradient");j("LineJumps");
j("DefaultLineShape");j("DefaultLineLineColor");j("DefaultLineLineWidth");j("DefaultLineStrokeStyle");j("DefaultStartArrowStyle");j("DefaultEndArrowStyle");j("DefaultFont");j("DefaultTextColor");j("DefaultFontSize");j("Language");j("FacingPages");j("ParagraphStyles");j("InlineStyles");j("WPMode");j("Columns");j("ColumnSpacing");j("MindMapColors");J("default.lookupNamedParagraphStyle",function(a){if(m==m.viewport.mode){for(var b=m.document.q.get("ParagraphStyles"),c=l,d=0;d<b.length;d++)if(b[d].paragraphStyle==
a.name){c=b[d];break}a.Bd(c)}});k("DefaultBold");k("DefaultItalic");k("DefaultUnderline");n("FillColor");n("Margin");J("default.addMoreFonts",function(){m==m.viewport.mode&&L('<iframe style="border:0" width="745" height="600" src="/fonts/all/a"></iframe>',function(){window.fontUrl==l&&(window.fontUrl="/fonts/user/0/");$.ajax({type:"GET",url:window.fontUrl+"all",success:function(a){Pe={};Te={};J.set("optionBar.refresh");eval(a)}})})});J("default.paragraphFormattingDialog",function(){m==m.viewport.mode&&
m.viewport.Nt.show(c(),m.viewport.V[0].C.q.get("DPI"),function(a){d(a)})});J("default.selectNewLink",function(){m==m.viewport.mode&&A(m.viewport.getSelection(),function(a){if((a=m.viewport.V[0].Ya(a))&&a.ml)return a.ml(),!1})});J("default.editBlockText",function(){if(m==m.viewport.mode){var a=m.viewport.V[0].getSelection()[0];m.viewport.V[0].Ya(a).Ed(ti(a,0))}});J("default.resetLineShape",function(){m.document.Aa();for(var a=m.viewport.V[0].getSelection(),b=0;b<a.length;b++)a[b].fb&&(m.document.ba(new N(M,
{id:a[b].id,Property:"ControlPoints",Value:{}})),m.document.ba(new N(M,{id:a[b].id,Property:"ElbowPoints",Value:l})),m.document.ba(new N(M,{id:a[b].id,Property:"XPlanes",Value:[]})),m.document.ba(new N(M,{id:a[b].id,Property:"YPlanes",Value:[]})));m.document.xa()});J("default.copyLineStyle",function(){m==m.viewport.mode&&ph(new oh(m.K),S("viewport.selectline.style.copy"),function(a){a.fb&&(m.document.Aa(),A(Vk(m.viewport,!1),function(b){function c(d,e){var f=b.q.get(d),g=a.q.get(d);e&&(f=f[e],g=g[e]);
f!=g&&(e&&(f={},f[e]=g,g=f),m.document.ba(new N(M,{id:b.id,Property:d,Value:g})))}c("LineWidth");c("LineColor");c("StrokeStyle");c("Font");c("Shape");c("Endpoint1","Style");c("Endpoint2","Style")}),d(a.Ui(),function(a){return a.fb}),m.document.xa())})});J("default.copyBlockStyle",function(){m==m.viewport.mode&&ph(new oh(m.K),S("viewport.selectblock.style.copy"),function(a){a.sa&&(m.document.Aa(),A(Vk(m.viewport,!1),function(b){function c(d){var e=b.q.get(d),f=a.q.get(d);e!=f&&m.document.ba(new N(M,
{id:b.id,Property:d,Value:f}))}c("LineWidth");c("FillColor");c("LineColor");c("TextAlign");c("TextVAlign");c("Font")}),d(a.Ui(),function(a){return a.sa}),m.document.xa())})});J("default.alignSelectionLeft",function(){m==m.viewport.mode&&iq(m,m.viewport.getSelection(!0),"left")});J("default.alignSelectionCenter",function(){m==m.viewport.mode&&iq(m,m.viewport.getSelection(!0),"center")});J("default.alignSelectionRight",function(){m==m.viewport.mode&&iq(m,m.viewport.getSelection(!0),"right")});J("default.alignSelectionTop",
function(){m==m.viewport.mode&&iq(m,m.viewport.getSelection(!0),"top")});J("default.alignSelectionMiddle",function(){m==m.viewport.mode&&iq(m,m.viewport.getSelection(!0),"middle")});J("default.alignSelectionBottom",function(){m==m.viewport.mode&&iq(m,m.viewport.getSelection(!0),"bottom")});J("default.distributeSelectionH",function(){m==m.viewport.mode&&jq(m,m.viewport.getSelection(!0),"h")});J("default.distributeSelectionV",function(){m==m.viewport.mode&&jq(m,m.viewport.getSelection(!0),"v")});J("default.matchSelectionSizeX",
function(){m==m.viewport.mode&&kq(m,m.viewport.getSelection(!0),"x")});J("default.matchSelectionSizeY",function(){m==m.viewport.mode&&kq(m,m.viewport.getSelection(!0),"y")});J("default.editLineShape",function(){m==m.viewport.mode&&A(m.viewport.getSelection(!0),function(a){if(a.fb)return(new sk(m.K,a)).create(),!1})});$(document).bind("Editor.exitGroup",function(a,b){if(m==m.viewport.mode){var c=m.Hc();c&&c.pa&&(c.id==b||b==l)&&Qk(m)}});J("document.postAction",function(a){a.Action==M&&A(m.viewport.V,
function(b){b.ac(a.id)&&J.set("optionBar.refresh")})})}Ca(fq,Um);q=fq.prototype;
q.Fc=function(a,b){var c=a.x,d=a.y,e=a.data,f=e.Za(c,d,l,b.altKey);if(f!=l&&f.item&&f.item.pa)this.Aj(f.item);else if(f!=l&&f.item&&f.item.sa)f.Fc?f.Fc():(this.viewport.ec(),A(e.C.ws(f.item),function(a){e.Yc(a.id)}));else if(f!=l&&f.item&&f.item.fb)if(this.viewport.ec(),f.Fc)f.Fc();else{if(!f.item.ta){for(var g=f.item.q.get("TextAreas"),i=0;g["t"+i];i++);g={};g["t"+i]={Location:Pi(f.item,new G(c,d),!0),Side:0,Value:e.C.document.Tj("Text")};e.C.document.ba(new N(M,{id:f.item.id,Property:"TextAreas",
Value:g}));e.Ya(f.item).Ed("t"+i)}}else this.Ma&&this.Ma.pa&&Qk(this)};q.Bu=function(a,b){var c=a.x,d=a.y,e=a.data.Za(c,d,l,b.altKey);if(e!=l&&e.item&&(e.item.sa||e.item.fb))(this.Xa?Lb(this.Xa,new G(c,d)):0)<=5&&this.gx[e.item.id]&&e.Fc&&e.Fc()};
q.ud=function(a,b){var c=a.x,d=a.y,e=a.data,f=this,g=mh(e.C);this.We=this.Ve=!1;this.al=this.di=l;if(b.which==1)if(this.lf&&this.gd(a,b),this.gx=K(e.selection),this.lf=!0,hq(this),this.jd=!1,this.gk)this.Xa=new G(c,d),this.jb=new Di("DragLine",this.document.ej,this.document),this.jb.Qe(e.C),this.jb.q.set("Shape",this.document.q.get("DefaultLineShape")),this.jb.q.set("LineWidth",this.document.q.get("DefaultLineLineWidth")),this.jb.q.set("LineColor",this.document.q.get("DefaultLineLineColor")),this.jb.q.set("StrokeStyle",
this.document.q.get("DefaultLineStrokeStyle")),this.jb.q.set("Font",this.document.q.get("DefaultFont")),this.jb.q.set("Endpoint1",{x:c,y:d,Block:l,LinkX:l,LinkY:l,Style:this.document.q.get("DefaultStartArrowStyle")}),this.jb.q.set("Endpoint2",{x:c,y:d,Block:l,LinkX:l,LinkY:l,Style:this.document.q.get("DefaultEndArrowStyle")}),this.X=gi(this.jb),this.gk=!1;else if(b.altKey)this.jd=!0,e=this.viewport.vb.get(0),this.Me={originalEvent:b,cn:e.scrollTop,bn:e.scrollLeft};else if(this.X=e.Za(c,d,l,b.altKey),
this.X!=l&&this.X.item.page==e.C){this.Xa=new G(c,d,b);if(this.X.action!="rotate")e.ac(this.X.item.id)?(g=Rd&&b.metaKey&&!b.ctrlKey||!Rd&&b.ctrlKey,(b.shiftKey&&!g||!b.shiftKey&&g)&&e.kh(this.X.item.id)):(!b.metaKey&&!b.ctrlKey&&!b.shiftKey&&f.viewport.ec(),e.Yc(this.X.item.id)),this.de=this.viewport.getSelection(!0),lq(this,this.de);if(this.X.action=="linkpoint"){this.jb=new Di("DragLine",this.document.ej,this.document);this.jb.Qe(e.C);this.jb.q.set("Shape",this.document.q.get("DefaultLineShape"));
this.jb.q.set("LineWidth",this.document.q.get("DefaultLineLineWidth"));this.jb.q.set("LineColor",this.document.q.get("DefaultLineLineColor"));this.jb.q.set("StrokeStyle",this.document.q.get("DefaultLineStrokeStyle"));this.jb.q.set("Font",this.document.q.get("DefaultFont"));c=this.X.item.Ac(this.X.oc);this.jb.q.set("Endpoint1",{x:c.x,y:c.y,Block:this.X.item.id,LinkX:this.X.oc.x,LinkY:this.X.oc.y,Style:this.document.q.get("DefaultStartArrowStyle")});this.jb.q.set("Endpoint2",{x:c.x,y:c.y,Block:l,LinkX:l,
LinkY:l,Style:this.document.q.get("DefaultEndArrowStyle")});var i=0;e.C.qd(function(){this.q.get("Endpoint1").Block==f.X.item.id&&i++});F(this.X.item.Jp(i),function(a,b){f.jb.q.set(a,b)})}else this.X.action=="control"&&this.X.Qq&&this.X.Qq(c,d)}else Ij(e,b)?(this.so=!0,Jj(e,b.pageX,b.pageY,b.shiftKey,b),this.viewport.ec()):(this.de=[],this.Xa=new G(c,d),this.kt&&this.kt(0,e,c,d,g));else if(b.which==3)this.Mm&&this.gd(a,b),this.Mm=!0,g=e.Za(c,d,l,b.altKey),g!=l?e.ac(g.item.id)||(f.viewport.ec(),e.Yc(g.item.id)):
f.viewport.ec(),this.Xa=new G(c,d)};
q.fd=function(a,b,c){function d(){J.set("rulerh.hintlines");J.set("rulerv.hintlines");i=!0}var e=this,f=a.x,g=a.y,i=!1,j=this.viewport.mc(b);if(j)j.data==a.data?this.hk=l:(this.Gv=j,this.hk=j.data);var k=a.data;if(k){var n=mh(k.C),m=n.data,p=m.data,j=this.viewport.J.offset(),s=function(){if(!Ya&&!e.Ve&&!e.We){if(e.ab&&!e.ij)e.ij=new Date;var a=new Date;if(!(e.ij&&a.getTime()-e.ij.getTime()<500)){var a=e.viewport,b=f,c=g;if(!a.au&&!Ya&&!he){var d=rj(a.V[0].C),i=d.data,j=a.vb.get(0);(b-d.x*i.x)*a.scale+
a.padding<a.scrollLeft+75&&(j.scrollLeft-=10);(c-d.y*i.y)*a.scale+a.padding<a.scrollTop+75&&(j.scrollTop-=10);(b-d.x*i.x)*a.scale+a.padding>a.scrollLeft+a.scrollWidth-75&&(j.scrollLeft+=10);(c-d.y*i.y)*a.scale+a.padding>a.scrollTop+a.scrollHeight-75&&(j.scrollTop+=10)}}}},u=function(a){if(!c){var b=Pa(e.viewport,new G(a.x,a.y),k),d=e.viewport.scale*a.w,a=e.viewport.scale*a.h;J.set("rulerh.hintlines",[b.x,b.x+d/2,b.x+d]);J.set("rulerv.hintlines",[b.y,b.y+a/2,b.y+a]);i=!0}};if(this.Mm&&!this.jd&&this.Xa&&
(Math.abs(this.Xa.x-f)>4||Math.abs(this.Xa.y-g)>4)){this.mu=this.jd=!0;var w=this.viewport.vb.get(0);this.Me={originalEvent:b,cn:w.scrollTop,bn:w.scrollLeft}}if(this.ab!=l){s();var v=this.ab.ja(),n=new H(f-v.w/2,g-v.h/2,v.w,v.h),w=k.C.q.get("GridSpacing");this.ab.Of&&(w=Math.min(w,this.ab.Of));n=mb(n,w);this.ab.q.set("BoundingBox",n);this.viewport.ia()}else this.lt&&this.lt(b,k,f,g,n,d);if(this.lf)if(s(),this.X!=l){la(this.X.item)||(v=this.X.item.pa?this.X.item.pd():this.X.item.ja());m=l;if(this.X.item.sa||
this.X.item.fb||this.X.item.pa)m=k.Ya(this.X.item);if(this.X.item.Kv||this.X.item.Zf){n=l;p=new G(v.x+v.w/2,v.y+v.h/2);s=this.X.item.q.get("Rotation")||0;if(this.X.action=="se"||this.X.action=="nw")n=Pb(new G(f,g),Za(new G(v.x,v.y),p,s),Za(new G(v.x+v.w,v.y+v.h),p,s),!0);else if(this.X.action=="ne"||this.X.action=="sw")n=Pb(new G(f,g),Za(new G(v.x+v.w,v.y),p,s),Za(new G(v.x,v.y+v.h),p,s),!0);if(n)f=n.x,g=n.y}if(b.shiftKey&&(Yh(this.X)||Zh(this.X)))if(this.X.action=="se"||this.X.action=="nw"||this.X.action==
"ne"||this.X.action=="sw"){var p=new G(this.Xa.x,this.Xa.y),s=this.X.rotation(),v=new G(f,g),x=new G(p.x+1,p.y),n=new G(p.x-1,p.y+1),z=new G(p.x,p.y+1),w=new G(p.x+1,p.y+1);s&&(x=Za(x,p,s),n=Za(n,p,s),z=Za(z,p,s),w=Za(w,p,s));x=Pb(v,p,x,!0);s=Pb(v,p,z,!0);if(this.X.action=="se"||this.X.action=="nw")var B=Pb(v,p,w,!0);else if(this.X.action=="sw"||this.X.action=="ne")B=Pb(v,p,n,!0);v=x;p=v.data.d;if(s.data.d<p)v=s,p=v.data.d;if(B&&B.data.d<p)v=B,p=v.data.d;f=v.x;g=v.y}if(this.X.action=="move"&&this.X.item.fb&&
this.X.Qd&&!this.X.item.ta){if(a=new G(f,g),u=this.X.item.q.get("TextAreas")[this.X.Qd],v=m.xc[this.X.Qd]){B=v.oa[0].Pn;v=v.oa[0].tl;s=Oi(this.X.item,-1,B/2+8,v/2+4);z=Oi(this.X.item,1,B/2+8,v/2+4);B=Pi(this.X.item,a,!0);v=Pi(this.X.item,a,!0,s);p=Pi(this.X.item,a,!0,z);n=Gi(this.X.item,B);w=Gi(this.X.item,v,l,s);z=Gi(this.X.item,p,l,z);s=Nb(n,a);n=Nb(w,a);a=Nb(z,a);w=Math.min(s,n,a);if(w==s)u.Location=B,u.Side=0;else if(w==n)u.Location=v,u.Side=-1;else if(w==a)u.Location=p,u.Side=1;Xi(m,this.X.Qd,
u,this.X.item.ja());m.hm=this.X.Qd}}else if(this.X.action=="move"){if(b.shiftKey&&(b.metaKey||b.ctrlKey)&&!this.Jm&&(this.Xa.x!==f||this.Xa.y!==g))m=this.viewport.rk(this.de),this.viewport.Yk(this.viewport.V[0],m,m.Base.x,m.Base.y),this.de=this.viewport.getSelection(!0),this.Jm=!0;this.Qb=this.de||[];this.offset.x=f-this.Xa.x;this.offset.y=g-this.Xa.y;u(xb($h(this.de),new H(this.offset.x,this.offset.y,0,0)))}else if(this.X.action=="rotate"){if(B=$h(this.X.Kc),u=Db(a,Xa(B)),s=Math.atan2(u.x,-u.y),
s=b.shiftKey?Math.round(s*4/Math.PI)*Math.PI/4:Math.round(s*48/Math.PI)*Math.PI/48,this.Qb=this.X.Kc||[],this.xd=s,this.Qb.length==1)this.xd=s-(this.Qb[0].q.get("Rotation")||0)}else if(this.X.action=="se"||this.X.action=="sw"||this.X.action=="nw"||this.X.action=="ne"){B=$h(this.X.Kc);v=this.X.qi();a=this.X.Oh();p=f-this.Xa.x;s=g-this.Xa.y;if(m=this.X.rotation())n=new G(-Math.sin(m),Math.cos(m)),s=new G(p,s),p=Hb(new G(Math.cos(m),Math.sin(m)),s),s=Hb(n,s);var O=this.X.action.charAt(1)=="e"?0:a?0:
Math.max(Math.min(p,B.w-20),B.w-16777216),T=this.X.action.charAt(0)=="s"?0:v?0:Math.max(Math.min(s,B.h-20),B.h-16777216),a=a?0:this.X.action.charAt(1)=="e"?Math.min(Math.max(p,20-B.w),16777216-B.w):-Math.max(Math.min(p,B.w-20),B.w-16777216),B=v?0:this.X.action.charAt(0)=="s"?Math.min(Math.max(s,20-B.h),16777216-B.h):-Math.max(Math.min(s,B.h-20),B.h-16777216);if(m)s=new G(this.X.action.charAt(1)=="e"?0:1,this.X.action.charAt(0)=="s"?0:1),v=this.X.item.Ac(s),this.Qb=this.X.Kc,this.offset=new H(O,T,
a,B),p=gq(this,!1,!0),s=this.X.item.Ac(s),p(),O-=s.x-v.x,T-=s.y-v.y;this.Qb=this.X.Kc;this.offset.x=O;this.offset.y=T;this.offset.w=a;this.offset.h=B;u(db(xb(this.X.item.ja(),new H(O,T,a,B)),m))}else this.X.action=="linkpoint"||this.X.action=="dragline"?this.mt&&!this.X.item.ta&&this.mt(b,k,f,g):this.X.action=="slidex"||this.X.action=="slidey"?this.X.bh[this.X.pj]=k.dc(this.X.action=="slidex"?f:g,2):this.X.action=="control"&&this.X.So&&this.X.So(f,g);this.viewport.ia()}else if(this.di&&this.al&&this.viewport.hn&&
(this.Ve||this.We)){var O=Math.round(0.9*(f-this.Xa.x)),T=Math.round(0.9*(g-this.Xa.y)),W=this.di.w,U=this.di.h,X=this.viewport.hn.w,da=this.viewport.hn.h;this.Ve&&(W+=O);this.We&&(U+=T);this.Ve&&(W=W<X?X:W>10880?10880:W);this.We&&(U=U<da?da:U>10880?10880:U);this.viewport.J.one("afterRender",function(){var a=e.viewport.vb.get(0);if(e.Ve&&W!=X)a.scrollLeft=e.al.left+O*e.viewport.scale;if(e.We&&U!=da)a.scrollTop=e.al.top+T*e.viewport.scale});k.C.q.set("Size",{w:W,h:U});this.viewport.ia()}else this.so?
Kj(k,b.pageX,b.pageY,b):(Ge(k.canvas,this.gm),this.gm.move((Math.min(f,this.Xa.x)-m.x*p.x)*this.viewport.scale,(Math.min(g,this.Xa.y)-m.y*p.y)*this.viewport.scale,Math.abs(f-this.Xa.x)*this.viewport.scale,Math.abs(g-this.Xa.y)*this.viewport.scale));i||(J.set("rulerh.hintlines",[b.clientX-j.left]),J.set("rulerv.hintlines",[b.clientY-j.top]))}else d()};
q.gd=function(a,b){var c=a.x,d=a.y,e=a.data;mh(e.C);var f=this.Xa?Lb(this.Xa,new G(c,d)):0;if(this.ab!=l){f=this.ab.ja();f.x==0&&f.y==0&&this.ab.q.set("BoundingBox",new H(c-f.w/2,d-f.h/2,f.w,f.h));this.im=!0;this.document.Aa();f=this.ab.q.Nb();f.BoundingBox=e.dc(f.BoundingBox,this.ab.Of||this.Wi,h,nj(this.ab));f.ZOrder=e.C.Kd("ZOrder",0)+1;var g=gj[this.ab.className],i=!1;if(typeof g.ts=="function"&&(g=g.ts(e.C,f),g.length>0))for(var i=!0,j=0;j<g.length;j++)this.document.ba(g[j]);i||(f=new N("CreateBlock",
{Class:this.ab.className,Properties:f,Page:e.C.id}),this.document.ba(f)&&(i=e.C.Jb(f.id),e.Ya(i).Xh(),Cj(e.C,i,!0),e.Ya(i).Xh(),Cj(e.C,i),this.viewport.ec(),e.Yc(f.id)),this.Ma&&this.Ma.pa&&(i=this.Ma.q.get("Members"),i[f.id]=!0,e.C.document.ba(new N(M,{id:this.Ma.id,Property:"Members",Value:i}))));this.document.xa();this.vy=this.ab=l;this.im=!1}else if(b.which==1){if(this.lf){if(this.X!=l)this.fd(a,b,!0),this.X.action=="move"&&this.X.item.fb&&this.X.Qd&&!this.X.item.ta?this.qt&&this.qt(0,e,c,d,f):
this.X.action=="move"?(f<=5&&this.X.click?this.X.click():(this.document.Aa(),this.hk==l&&(gq(this,!0,!0),A(this.Qb,function(a){a.sa&&Cj(e.C,a)}),hq(this)),this.document.xa(),this.Jm&&mq(e.C.document)),this.Jm=!1):this.X.action=="rotate"?(gq(this,!0,!0),hq(this)):this.X.action=="se"||this.X.action=="sw"||this.X.action=="nw"||this.X.action=="ne"?Qj(e,this.offset)&&(gq(this,!0,!0),hq(this)):this.X.action=="linkpoint"&&f>20?this.ot&&this.ot(b,e):this.X.action=="dragline"&&!this.X.item.ta?this.nt&&this.nt(0,
e,f):this.X.action=="slidex"||this.X.action=="slidey"?this.document.ba(new N(M,{id:this.X.item.id,Property:this.X.action=="slidex"?"XPlanes":"YPlanes",Value:this.X.bh})):this.X.action=="control"&&this.X.vs&&this.X.vs(c,d),this.de=[],this.Wi=1,this.hk=this.jb=this.X=this.Xa=l,this.Wy={},this.viewport.ia();else if(this.jd)this.fd(a,b),this.jd=!1;else if(this.di&&(this.Ve||this.We))f=e.C.q.get("Size"),e.C.q.set("Size",this.di),this.al=this.di=l,this.We=this.Ve=!1,this.viewport.hn=l,e.C.document.ba(new N(M,
{id:e.C.id,Property:"Size",Value:f})),this.viewport.ia();else if(this.so)Lj(e,b.pageX,b.pageY,b),this.so=!1;else if(He(e.canvas,this.gm),!b.metaKey&&!b.ctrlKey&&!b.shiftKey&&this.viewport.ec(),Math.abs(c-this.Xa.x)>5||Math.abs(d-this.Xa.y)>5){var k=this.Xa;this.Ma&&this.Ma.pa?this.Ma.Ib(function(){e.Ya(this).xj(Ta(k,new G(c,d)))&&e.Yc(this.id)}):tj(e.C,function(){e.Ya(this).xj(Ta(k,new G(c,d)))&&e.Yc(this.id)});this.viewport.ia()}this.lf=!1}}else if(b.which==3){if(this.jd)this.jd=!1;this.Mm=!1}};
q.touchStart=function(){var a=this;this.Te=!0;this.Al&&clearTimeout(this.Al);if(!a.K.$.Id())this.Al=setTimeout(function(){a.Te&&a.viewport.ji("drawing")},500)};q.touchMove=function(){this.Te=!1};q.touchEnd=function(){this.Te=!1};q.qk=function(){this.Te=!1};q.pk=function(){this.Te=!1};q.ju=function(a,b){return a.page!=b.C||a.ta||a.Jc||a.pb()?!1:b.getSelection(!0).length>1?!1:!b.Rg(a)&&(a==this.Kk||Mj(b,a.id,!0))};
q.ku=function(a,b){return a.page!=b.C||a.ta||a.Jc||a.pb()?!1:b.getSelection(!0).length>1?!1:!b.Rg(a)&&(a==this.Kk||Mj(b,a.id,!0))};q.iu=function(a,b){if(a.page!=b.C||a.ta||a.pa||a.pb())return!1;var c=this.X!=l&&(this.X.action=="linkpoint"||this.X.action=="dragline");return b.Rg(a,!0)||c||a==this.Kk||b.ac(a.id)};
q.yr=function(a,b){this.jb!=l&&b.push(this.jb);if(b.length!=0)for(var c=0;c<b.length;c++)if(this.X&&(this.X.action=="slidex"||this.X.action=="slidey")&&this.X.item.id==b[c].id)b[c].q.set(this.X.action=="slidex"?"XPlanes":"YPlanes",this.X.bh)};
q.xr=function(a,b){var c=this;if(this.ab!=l)this.ab.q.set("ZOrder",Number.MAX_VALUE),b.DragBlock=this.ab;this.Gu=$h(this.viewport.getSelection(!0));gq(this,!1,this.an);for(var d in b)this.hk!=l&&nc(this.de,b[d])&&delete b[d];a==this.hk&&A(this.de,function(a){if(a.sa){b[a.id]=a;var d=a.ja(),g=Gb(c.Gv,Db(d,c.Xa));c.offset(a,new H(g.x-d.x,g.y-d.y,0,0))}})};q.Aj=function(a){this.Ma=a;this.Yi.show(a);this.viewport.ec();this.viewport.ia();$(document).triggerHandler("activeGroupSet")};
function Qk(a,b){if(b)a.Ma=l,a.Yi.hide();else if(a.Ma&&a.Ma.pa)a.Ma=a.Ma.parent,a.Ma?a.Yi.show(a.Ma):a.Yi.hide();a.viewport.ec();a.viewport.ia();$(document).triggerHandler("activeGroupSet")}q.Hc=ea("Ma");function lq(a,b){for(var c in b)if(b[c].Of)a.Wi=Math.max(a.Wi,b[c].Of)}
function iq(a,b,c){for(var d=0;d<b.length;d++)b[d].Im&&b.splice(d--,1);if(!(b.length<2)){var e=1E6,f=1E6,g=-1E6,i=-1E6;A(b,function(a){var b=a.pa?a.pd():a.ja();a.q.get("Rotation")&&(b=db(b,a.q.get("Rotation")));e=b.x<e?b.x:e;f=b.y<f?b.y:f;g=b.x+b.w>g?b.x+b.w:g;i=b.y+b.h>i?b.y+b.h:i});var j=new H(e,f,g-e,i-f);a.document.Aa();A(b,function(b){var d=b.ja();b.q.get("Rotation")&&(d=db(d,b.q.get("Rotation")));var e=K(d);switch(c){case "left":d.x=j.x;break;case "center":d.x=j.x+0.5*j.w-0.5*d.w;break;case "right":d.x=
j.x+j.w-d.w;break;case "top":d.y=j.y;break;case "middle":d.y=j.y+0.5*j.h-0.5*d.h;break;case "bottom":d.y=j.y+j.h-d.h}hq(a);a.offset=Oa(d,e);a.Qb=[b];a.offset.x==0&&a.offset.y==0||gq(a,!0,!1)});hq(a);a.document.xa()}}
function jq(a,b,c){for(var d=0;d<b.length;d++)b[d].Im&&b.splice(d--,1);if(!(b.length<3)){var e=[],f=1E6,g=1E6,i=-1E6,j=-1E6,k=0,n=0;A(b,function(a){var b=a.pa?a.pd():a.ja();a.q.get("Rotation")&&(b=db(b,a.q.get("Rotation")));e.push({item:a,Da:b});k+=b.h;n+=b.w;f=b.x<f?b.x:f;g=b.y<g?b.y:g;i=b.x+b.w>i?b.x+b.w:i;j=b.y+b.h>j?b.y+b.h:j});var d=new H(f,g,i-f,j-g),m=b=0;if(c=="h")b=Math.floor((d.w-n)/(e.length-1)),m=d.x,e.sort(function(a,b){return a.Da.x+0.5*a.Da.w-(b.Da.x+0.5*b.Da.w)});else if(c=="v")b=
Math.floor((d.h-k)/(e.length-1)),m=d.y,e.sort(function(a,b){return a.Da.y+0.5*a.Da.h-(b.Da.y+0.5*b.Da.h)});a.document.Aa();for(d=1;d<e.length-1;d++){var p=e[d].item,s=e[d].Da,u=0;if(c=="h")m+=e[d-1].Da.w+b,u=m-s.x,s.x=m;else if(c=="v")m+=e[d-1].Da.h+b,u=m-s.y,s.y=m;s=c=="h"?new H(u,0,0,0):new H(0,u,0,0);hq(a);a.offset=s;a.Qb=[p];a.offset.x==0&&a.offset.y==0&&a.offset.w==0&&a.offset.h==0||gq(a,!0,!1)}hq(a);a.document.xa()}}
function kq(a,b,c){for(var d=0;d<b.length;d++)b[d].Im&&b.splice(d--,1);if(!(b.length<2)){var e=[],f=0,g=0,i=!1,j=!1,k=!1,n=!1;A(b,function(a){var b=a.pa?a.pd():a.ja();a.q.get("Rotation")&&(b=db(b,a.q.get("Rotation")));a.Oh&&!j&&(i==!1?i=b.w:i!=b.w&&(j=!0));a.qi&&!n&&(k==!1?k=b.h:k!=b.h&&(n=!0));e.push({item:a,Da:b});g=b.h>g?b.h:g;f=b.w>f?b.w:f});j&&c=="x"||n&&c=="y"||(i&&(f=i),k&&(g=k),a.document.Aa(),A(e,function(b){var d=b.item,e=K(b.Da);c=="x"?g=e.h:c=="y"&&(f=e.w);var i=K(e),b=f-e.w,j=g-e.h;e.x-=
0.5*b;e.y-=0.5*j;e.w=f;e.h=g;if(!(b==0&&j==0)){if(d.sa){if(d.q.get("Rotation")){var k=f/i.w,n=g/i.h,z=d.ja(),B=d.q.get("Rotation"),O=Math.cos(B),T=Math.sin(B),B=Math.sqrt(O*O*k*k+T*T*n*n),k=Math.sqrt(O*O*n*n+T*T*k*k);z.x-=0.5*z.w*(B-1);z.y-=0.5*z.h*(k-1);z.w*=B;z.h*=k;e=z}a.document.ba(new N(M,{id:d.id,Property:"BoundingBox",Value:e}))}if(d.fb){z=d.q.get("Endpoint1");k=d.q.get("Endpoint2");if(b!=0)if(z.x<k.x)z.x-=0.5*b,k.x+=0.5*b;else if(z.x>k.x)z.x+=0.5*b,k.x-=0.5*b;else return;else if(z.y<k.y)z.y-=
0.5*j,k.y+=0.5*j;else if(z.y>k.y)z.y+=0.5*j,k.y-=0.5*j;else return;a.document.ba(new N(M,{id:d.id,Property:"Endpoint1",Value:z}));a.document.ba(new N(M,{id:d.id,Property:"Endpoint2",Value:k}))}else d.pa&&(d=d.ge(),A(d,function(b){if(b.sa){var c=f/i.w,d=g/i.h,j=b.q.get("BoundingBox"),k=c*(i.x+0.5*i.w-(j.x+0.5*j.w)),m=d*(i.y+0.5*i.h-(j.y+0.5*j.h));j.w*=c;j.h*=d;j.x=e.x+0.5*e.w-k-0.5*j.w;j.y=e.y+0.5*e.h-m-0.5*j.h;a.document.ba(new N(M,{id:b.id,Property:"BoundingBox",Value:j}))}}))}}),a.document.xa())}}
function hq(a){a.offset=new H(0,0,0,0);a.xd=0;a.Qb=[];a.an=!0}
function gq(a,b,c){if(a.Qb.length!=0){var d={},e=$h(a.Qb),f=a.offset;if(c&&a.xd==0){var g=a.viewport.V[0].C.q.get("GridSpacing");A(a.Qb,function(a){if(a.Of&&a.Of<g)g=a.Of});var i=xb(e,a.offset);if(a.Qb.length==1){var c=a.Qb[0].q.get("Rotation")||0,j=lb(c,Math.PI/2);Math.abs(j-c)<0.01&&(i=db(i,c),i=mb(i,g),i=db(i,-c))}else i=mb(i,g);f=Oa(i,e);a.offset.w==0&&(f.w=0);a.offset.h==0&&(f.h=0)}a.document.Aa();A(a.Qb,function(c){var g={};if(a.xd!=0)g=c.vk(e,a.xd);else if(a.offset.x!=0||a.offset.y!=0||a.offset.w!=
0||a.offset.h!=0)g=c.Jg(e,f);F(g,function(c,e){d[c]={};var f=a.document.ra(c);f&&F(e,function(e,g){d[c][e]=f.q.get(e,!0);b?a.document.ba(new N(M,{id:c,Property:e,Value:g})):f.q.set(e,g)})});c.pa&&c.pd()});a.document.xa();J.set("editorMode.offsetsApplied");if(!b)return function(){F(d,function(b,c){var d=a.document.ra(b);d&&F(c,function(a,b){d.q.set(a,b)})})}}};function nq(a){function b(a){return P&&P.Db(a)}function c(){var a=d.viewport.V[0].getSelection();return a.length!=1?!1:!a[0].sa||a[0].q.get("Link")==""?!1:!0}fq.call(this,a);var d=this;this.name="diagramming";this.K=a;J("block.drag.start",function(a){var b=a[1],c=a[2];d.ab=jj(a[0],"DragBlock",d.document);d.ab.Qe(d.viewport.V[0].C);d.ab.q.set("LineWidth",d.document.q.get("DefaultBlockLineWidth"));d.ab.q.set("LineColor",d.document.q.get("DefaultBlockLineColor"));d.ab.q.set("FillColor",ck(d.document));
d.ab.q.set("Font",d.document.q.get("DefaultFont"));(a=d.document.q.get("DefaultBlockShadow"))&&d.ab.q.set("Shadow",a);d.ab.q.set("BoundingBox",new H(0,0,c.w,c.h));for(var i in b)d.ab.q.set(i,b[i]);d.document.Kl(d.ab,!0);d.ij=l});J("block.drop",function(){d.ab=l;d.ij=l});this.viewport.J.bind("contextmenu",function(a){a.preventDefault();return!1});this.viewport.J.bind("mouseup",function(a){if(!(a.which!=3||d.K.$.Id())){if(d.viewport.readOnly)return!1;d.mu?d.mu=!1:Wk(d.viewport)||setTimeout(function(){d.K.ak.show(a);
d.K.ak.Lf(a.clientX,a.clientY)},1)}});this.K.ak.wr([{label:S("menu.copy"),action:"default.copy",Ca:function(a){return d.viewport.Cf(!0)&&!b(a)}},{label:S("menu.cut"),action:"default.cut",Ca:function(a){return d.viewport.Cf(!0)&&!b(a)}},{label:S("menu.paste"),action:"default.paste",value:"event",Ca:function(a){return d.viewport.clipboardData!=l&&!b(a)}},"hr",{label:S("Group"),action:"default.groupSelection",Ca:function(a){return d.viewport.V.length>0&&d.viewport.getSelection(!0).length>1&&!b(a)}},
{label:S("Ungroup"),action:"default.ungroupSelection",Ca:function(a){var c;a:{c=d.viewport;if(c.V.length!=0){c=c.getSelection(!0);for(var g=0,i=c.length;g<i;g++)if(c[g].pa&&!c[g].Jc){c=!0;break a}}c=!1}return c&&!b(a)}},{label:S("menu.arrange.front"),action:"default.bringSelectionToFront",Ca:function(a){return d.viewport.Cf(!0)&&!b(a)}},{label:S("menu.arrange.back"),action:"default.sendSelectionToBack",Ca:function(a){return d.viewport.Cf(!0)&&!b(a)}},{label:"Align Objects",Ca:function(){return d.K.viewport.V.length>
0&&d.K.viewport.getSelection(!1).length>1},Tb:new Tl([{label:"Left",action:"default.alignSelectionLeft"},{label:"Center",action:"default.alignSelectionCenter"},{label:"Right",action:"default.alignSelectionRight"},"hr",{label:"Top",action:"default.alignSelectionTop"},{label:"Middle",action:"default.alignSelectionMiddle"},{label:"Bottom",action:"default.alignSelectionBottom"}],{Tb:!0})},{label:S("menu.block.lock"),action:"default.property.Lock",value:1,Ca:function(a){return d.viewport.Cf(!0)&&!d.viewport.Hc()&&
!Wk(d.viewport)&&!b(a)}},{label:S("menu.block.unlock"),action:"default.property.Lock",value:"0",Ca:function(a){return d.viewport.Cf(!0)&&Wk(d.viewport)&&!b(a)}},"hr",{label:S("menu.link.change"),action:"default.selectNewLink",Ca:function(a){return c()&&!b(a)}},{label:S("menu.link.text.edit"),action:"default.editBlockText",Ca:function(){if(c()){var a=d.viewport.V[0].getSelection()[0],b=ti(a,0);if(b&&!a.la[b].readOnly)return!0}return!1}},{label:S("menu.line.shape.reset"),action:"default.resetLineShape",
Ca:function(a){if(b(a))return!1;var c=!1;Yk(d.viewport)&&A(d.viewport.getSelection(!0),function(a){c=(c=(c=(c=c||(a.q.get("XPlanes")||[]).length>0)||(a.q.get("YPlanes")||[]).length>0)||(a.q.get("ElbowPoints")||[]).length>0)||!lc(a.q.get("ControlPoints")||{})});return c}},{label:S("option.lineshape.edit"),action:"default.editLineShape",Ca:function(){return Xk(d.viewport)}},{label:S("Delete"),action:"default.delete",Ca:function(a){return d.viewport.Cf(!0)&&!b(a)}},"hr",{label:S("menu.line.draw"),action:"default.drawLineMode",
Ca:function(){return!P}},{label:"...",Ca:function(a){return P&&P.Db(a)},Fq:function(a){return Zg(a)}},{label:S("Change Language"),action:"default.promptLanguage",Ca:function(a){return b(a)}},{label:S("Add To Dictionary"),action:function(a){a=P.Pq(a);if(na(a)&&!/^[\s\xa0]*$/.test(a)){var b=d.K.$.document.q.get("Language");ec(b).ui(a)}},Ca:function(a){return P&&P.Db(a)&&P.Pq(a)}},{label:S("menu.shape.change"),action:"default.changeBlockShape",value:"event",Ca:function(a){var c=d.viewport.V[0].getSelection();
return c.length==1&&c[0].sa&&ij[c[0].className]&&Sm(d.K.pg,c[0].className)&&!b(a)}}]);J("default.changeBlockShape",function(a){if(d==d.viewport.mode){var b=function(a,b){function c(a){var b=new G(g.x+a.LinkX*g.w,g.y+a.LinkY*g.h),e=x.cg();if(e)for(var f in e)if(Yb(e[f].x-0.1,e[f].x+0.1,a.LinkX)&&Yb(e[f].y-0.1,e[f].y+0.1,a.LinkY)){b=new G(g.x+e[f].x*g.w,g.y+e[f].y*g.h);a.x=b.x;a.y=b.y;a.LinkX=e[f].x;a.LinkY=e[f].y;return}for(var e=d.viewport.V[0].Ya(x),i=mj(x,new G(a.LinkX,a.LinkY)),j=ri(x),k=l,m=0;m<
j.length;m++){var n=j[m];for(f=0;f<n.length;f++){var s=Pb(b,n[f],n[(f+1)%n.length]);if(s&&(!k||s.data.d<k.data.d))j.length>1?(s.x+=i.x*5,s.y+=i.y*5,qi(e,s,j)||(k=s)):k=s}}if(k)a.x=k.x,a.y=k.y,a.LinkX=(k.x-g.x)/g.w,a.LinkY=(k.y-g.y)/g.h}var e=d.K.$.document,f=a.q.Nb(),g=f.BoundingBox,s=gj[b].bd,u=gj[a.className].bd,w=s.w,s=s.h;if(g.w!=u.w||g.h!=u.h)w*=g.w/u.w,s*=g.h/u.h;g.x+=(g.w-w)/2;g.y+=(g.h-s)/2;g.w=w;g.h=s;e.Aa();var v=new N("CreateBlock",{Class:b,Properties:f,Page:d.viewport.V[0].C.id});e.ba(v);
var x=d.viewport.V[0].C.Jb(v.id);ri(x);d.viewport.V[0].C.Ib(function(){if(this.fb){var b=this.q.get("Endpoint1");if(b.Block&&b.Block==a.id)b.Block=v.id,c(b),e.ba(new N(M,{id:this.id,Property:"Endpoint1",Value:b}));b=this.q.get("Endpoint2");if(b.Block&&b.Block==a.id)b.Block=v.id,c(b),e.ba(new N(M,{id:this.id,Property:"Endpoint2",Value:b}))}});e.ba(new N("RemoveBlock",{id:a.id}));e.xa()},c=d.viewport.V[0].getSelection();c.length==1&&c[0].sa&&ij[c[0].className]&&d.K.qo.show(a,ij[c[0].className],function(a){b(c[0],
a)})}});oq(this)}Ca(nq,fq);
function oq(a){a.Sd=$('<div id="x-resize-control" title="'+S("tooltip.page.resize.x")+'"><div class="px"><div class="clear"></div></div><div class="in"><div class="clear"></div></div></div>').prependTo(a.viewport.J).css({top:a.viewport.padding+"px",right:a.viewport.padding-40+"px"});a.Xe=$('<div id="y-resize-control" title="'+S("tooltip.page.resize.y")+'"><div class="px"><div class="clear"></div></div><div class="in"><div class="clear"></div></div></div>').prependTo(a.viewport.J).css({bottom:a.viewport.padding-40+
"px",left:a.viewport.padding+"px"});a.Kf=$('<div id="xy-resize-control" title="'+S("tooltip.page.resize")+'"><div class="px"><div class="clear"></div></div><div class="in"><div class="clear"></div></div></div>').prependTo(a.viewport.J).css({bottom:a.viewport.padding-40+"px",right:a.viewport.padding-40+"px"});a.jq=$('<div class="viewport-page-size-box"></div>');a.gq=$('<div class="viewport-page-size-box row2"></div>');a.iq=$('<div class="viewport-page-size-box"></div>');a.hq=$('<div class="viewport-page-size-box row2"></div>');
a.viewport.vb.scroll(function(){var b=a.viewport.padding,c=a.viewport.vb.get(0);c.scrollLeft>b-8?a.Xe.css({left:c.scrollLeft+8+"px"}):a.Xe.css({left:b+"px"});c.scrollTop>b-8?a.Sd.css({top:c.scrollTop+8+"px"}):a.Sd.css({top:b+"px"})})}q=nq.prototype;
q.kt=function(a,b,c,d,e){a=pq(this,c,d);if(a==this.Sd)this.Ve=!0;else if(a==this.Xe)this.We=!0;else if(a==this.Kf)this.We=this.Ve=!0;if(this.Ve||this.We){this.di=e;this.al={top:this.viewport.vb.get(0).scrollTop,left:this.viewport.vb.get(0).scrollLeft};var f=400,g=400;tj(b.C,function(){var a=this.pa?this.pd():this.Gd?this.Gd():this.ja();f=a.x+a.w>f?a.x+a.w:f;g=a.y+a.h>g?a.y+a.h:g});this.viewport.hn={w:f,h:g}}};
q.lt=function(a,b,c,d,e,f){var g=b.C.q.get("SkipMultipage");if(this.gk)this.viewport.cursor("crosshair");else if(this.jd||!this.lf&&a.altKey){!this.lf&&a.altKey?Ik(this.viewport):Hk(this.viewport);if(this.jd){var i=this.viewport.vb.get(0);i.scrollTop=this.Me.cn+this.Me.originalEvent.pageY-a.pageY;i.scrollLeft=this.Me.bn+this.Me.originalEvent.pageX-a.pageX}f()}else if(g&&this.Sd&&(c<e.x||c>e.x+e.w||d<e.y||d>e.y+e.h))!this.Ve&&!this.We&&(c>e.w&&d<e.h-80?(this.Sd.show(),this.Xe.hide(),this.Kf.hide()):
d>e.h&&c<e.w-80?(this.Xe.show(),this.Sd.hide(),this.Kf.hide()):c>e.w-80&&d>e.h-80?(this.Kf.show(),this.Sd.hide(),this.Xe.hide()):(this.Sd.hide(),this.Xe.hide(),this.Kf.hide()),(i=pq(this,c,d))?(i.children(".px").prepend(this.gq).prepend(this.jq),i.children(".in").prepend(this.hq).prepend(this.iq)):(this.jq.detach(),this.gq.detach(),this.iq.detach(),this.hq.detach())),f();else{this.Sd&&!this.Ve&&!this.We&&(this.Sd.hide(),this.Xe.hide(),this.Kf.hide());var j=[];A(b.Fp,function(a){(a.page==b.C||a.q.get("Link")&&
a.q.get("Link").match(/^ext:/))&&j.push(a)});f=b.Za(c,d,l,a.altKey,j);f!=l&&!this.lf?(a=f.item.sa&&f.item.q.get("Rotation")?f.item.q.get("Rotation"):0,f.action=="move"||f.action=="dragline"?this.viewport.cursor(f.cursor||"move"):f.action=="se"||f.action=="sw"||f.action=="ne"||f.action=="nw"?Fk(this.viewport,f.action,a):f.action=="rotate"?Gk(this.viewport):f.action=="slidex"?this.viewport.cursor("e-resize"):f.action=="slidey"?this.viewport.cursor("n-resize"):f.action=="linkpoint"?this.viewport.cursor("crosshair"):
f.action=="control"?this.viewport.cursor(f.Jo&&f.Jo()||f.cursor||this.wf):this.viewport.cursor(this.wf)):this.viewport.cursor(this.wf);if(!Ya)try{if(i=f?f.item:l,this.Kk!=i&&(!i||i.sa))this.Kk=i,this.viewport.ia()}catch(k){}}};
q.mt=function(a,b,c,d){if(this.X.action=="linkpoint")var e=this.jb,f="Endpoint2";else e=this.X.item,f=this.X.oe;var g=e.q.get("ControlPoints");if(f=="Endpoint1"&&g.first)e.origCp=K(g),delete g.first;else if(f=="Endpoint2"&&g.last)e.origCp=K(g),delete g.last;e.q.set("ControlPoints",g);if(a.shiftKey){var a=new G(this.Xa.x,this.Xa.y),i=new G(c,d),c=Pb(i,a,new G(a.x-1,a.y+1),!0),d=Pb(i,a,new G(a.x,a.y+1),!0),g=Pb(i,a,new G(a.x+1,a.y+1),!0),a=Pb(i,a,new G(a.x+1,a.y),!0),i=a.data.d;if(c.data.d<i)a=c,i=
a.data.d;if(d.data.d<i)a=d,i=a.data.d;g.data.d<i&&(a=g);c=a.x;d=a.y}a=b.gg(c,d,e);a!=l&&a.action=="linkpoint"&&(a.item!=this.X.item||a.oc.x!=this.X.oc.x||a.oc.y!=this.X.oc.y)?a.item.fb?e.q.set(f,{x:a.oc.x,y:a.oc.y,Line:a.item.id,LineP:Pi(a.item,a.oc),Block:l,LinkX:l,LinkY:l}):(b=a.item.Ac(a.oc),e.q.set(f,{x:b.x,y:b.y,Block:a.item.id,LinkX:a.oc.x,LinkY:a.oc.y,Line:l,LineP:l})):e.q.set(f,{x:b.dc(c),y:b.dc(d),Block:l,LinkX:l,LinkY:l,Line:l,LineP:l})};
q.ot=function(a,b){var c=this,d=this.jb.q.get("Endpoint1"),e=this.jb.q.get("Endpoint2");if(d.Block==l&&d.Line==l)d.x=b.dc(d.x),d.y=b.dc(d.y),this.jb.q.set("Endpoint1",d);if(e.Block==l&&e.Line==l)e.x=b.dc(e.x),e.y=b.dc(e.y),this.jb.q.set("Endpoint2",e);if(Math.abs(d.x-e.x)>10||Math.abs(d.y-e.y)>10){var f=1;this.If&&(f=this.If.PromptNextBlock);var g=b.C.Jb(d.Block);if(f=(f=(f=(f=(f=f==1&&d.Block!=l&&b.C.Jb(d.Block)!=l)&&(e.Block==l||b.C.Jb(e.Block)==l))&&(d.Line==l||b.C.Ge(d.Line)==l))&&(e.Line==l||
b.C.Ge(e.Line)==l))&&g.Cr()){var i=hj[g.className];if(i){i=qc(i);for(f=0;f<i.length;f++)Sm(c.K.pg,i[f])||i.splice(f--,1)}f=i&&i.length>0}var j=new N("CreateLine",{Page:b.C.id,Properties:this.jb.q.Nb()});j.Properties.ZOrder=b.C.Kd("ZOrder",0)+1;this.document.Aa();this.document.ba(j);var g=d.Block?b.C.Jb(d.Block):l,k=0;g&&(b.C.qd(function(){this.q.get("Endpoint1").Block==d.Block&&k++}),F(g.Jp(k),function(a,b){c.document.ba(new N(M,{id:j.id,Property:a,Value:b}))}),b.C.Jb(d.Block).ft(j.id,k,!f));this.Ma&&
this.Ma.pa&&(g=this.Ma.q.get("Members"),g[j.id]=!0,b.C.document.ba(new N(M,{id:this.Ma.id,Property:"Members",Value:g})));this.document.xa();if(f){var n=j.id;c.K.qo.show(a,i,function(a){var f=Sm(c.K.pg,a),a=gj[f.className],a=f.bd||a.bd,g;g=Math.atan2(e.y-d.y,e.x-d.x);g=g>=-Math.PI/4&&g<=Math.PI/4?{x:e.x,y:e.y-a.h/2,w:a.w,h:a.h}:g>=Math.PI*1/4&&g<=Math.PI*3/4?{x:e.x-a.w/2,y:e.y,w:a.w,h:a.h}:g>=Math.PI*3/4||g<=-Math.PI*3/4?{x:e.x-a.w,y:e.y-a.h/2,w:a.w,h:a.h}:{x:e.x-a.w/2,y:e.y-a.h,w:a.w,h:a.h};a=new N("CreateBlock",
{Class:f.className,Properties:{ZOrder:b.C.Kd("ZOrder",0)+1,BoundingBox:g},Page:b.C.id});c.document.ur(a);if(f.xf){var f=f.xf(),i;for(i in f)a.Properties[i]=f[i]}V("p",a.Properties);c.document.Aa();if(c.document.ba(a)){i=b.C.Jb(a.id);f=i.ja();e.x=(e.x-f.x)/f.w;e.y=(e.y-f.y)/f.h;for(var f=1E8,j=l,k=i.cg(),x=0;x<k.length;x++){var z=Nb(e,k[x]);z<f&&(j=k[x],f=z)}f=j;c.document.Kl(i);c.document.ba(new N(M,{id:n,Property:"Endpoint2",Value:{x:g.x+g.w*f.x,y:g.y+g.h*f.y,Block:a.id,LinkX:f.x,LinkY:f.y}}));V("ie",
"All actions run called");b.Ya(i).Xh();c.viewport.ec();b.Yc(a.id);V("ie","placeNextBlock done");c.Ma&&c.Ma.pa&&(g=c.Ma.q.get("Members"),g[a.id]=!0,b.C.document.ba(new N(M,{id:c.Ma.id,Property:"Members",Value:g})))}c.document.xa()})}}};
q.nt=function(a,b,c){this.document.Aa();a=this.X.item.q.get(this.X.oe);if(this.X.item.origCp){var d=this.X.item.q.get("ControlPoints");this.X.item.q.set("ControlPoints",this.X.item.origCp);delete this.X.item.origCp;this.document.ba(new N(M,{id:this.X.item.id,Property:"ControlPoints",Value:d}))}if(a.Block==l&&a.Line==l)a.x=b.dc(a.x,this.Wi),a.y=b.dc(a.y,this.Wi);this.X.item.q.set(this.X.oe,this.X.value);c>5&&this.document.ba(new N(M,{id:this.X.item.id,Property:this.X.oe,Value:a}));this.document.xa()};
q.qt=function(a,b,c,d,e){a=b.Ya(this.X.item);if(e<=5)c=this.X.item.q.get("TextAreas")[this.X.Qd],Xi(a,this.X.Qd,c,this.X.item.ja()),a.hm=l,this.X.click();else{c=new G(c,d);this.X.item.q.get("TextAreas");var e=a.xc[this.X.Qd],d=e.oa[0].Pn,e=e.oa[0].tl,f=Oi(this.X.item,-1,d/2+8,e/2+4),g=Oi(this.X.item,1,d/2+8,e/2+4),d=Pi(this.X.item,c,!0),e=Pi(this.X.item,c,!0,f),b=Pi(this.X.item,c,!0,g),i=Gi(this.X.item,d),j=Gi(this.X.item,e,l,f),g=Gi(this.X.item,b,l,g),f=Nb(i,c),i=Nb(j,c),c=Nb(g,c),j=Math.min(f,i,
c),g={};j==f?g[this.X.Qd]={Location:d,Side:0}:j==i?g[this.X.Qd]={Location:e,Side:-1}:j==c&&(g[this.X.Qd]={Location:b,Side:1});this.document.ba(new N(M,{id:this.X.item.id,Property:"TextAreas",Value:g}));a.hm=l}};
function pq(a,b,c){var d=mh(a.viewport.V[0].C);if(b<0||b>d.w||c<0||c>d.h){var e=1/a.viewport.scale,f=a.Sd.position(),d=e*(f.left-a.viewport.padding),f=e*(f.top-a.viewport.padding),g=e*a.Sd.width(),i=e*a.Sd.height(),j=a.Xe.position(),k=e*(j.left-a.viewport.padding),j=e*(j.top-a.viewport.padding),n=e*a.Xe.width(),m=e*a.Xe.height(),p=a.Kf.position(),s=e*(p.left-a.viewport.padding),p=e*(p.top-a.viewport.padding),u=e*a.Kf.width();e*=a.Kf.height();if(b>d&&b<d+g&&c>f&&c<f+i)return a.Sd;else if(b>k&&b<k+
n&&c>j&&c<j+m)return a.Xe;else if(b>s&&b<s+u&&c>p&&c<p+e)return a.Kf}return!1}
q.np=function(){if(this.viewport.V.length!=0){var a=this,b=mh(this.viewport.V[0].C).data,c=b.data,d=this.viewport.V[0].C.q.get("Margin")*this.viewport.V[0].C.q.get("DPI"),e={Pu:[],Qu:[],Kp:[],Fi:[],ze:[],Lr:[],zoom:this.viewport.scale},f=this.viewport.getSelection(),g=this.viewport.getSelection(!0),i=!1;if(this.xd!=0||this.offset.x!=0||this.offset.y!=0||this.offset.w!=0||this.offset.h!=0)i=!0;A(f,function(b){var c=!!b.ta;if(b.sa||b.pa){var d=b.q.get("Rotation")||0,c={id:b.Fe(),Da:b.ja(),rotation:d,
xd:a.xd,offset:a.offset,page:0,Vt:a.ju(b,a.viewport.V[0])&&!(b.qi&&b.Oh),Yt:a.ku(b,a.viewport.V[0]),Qk:i,kb:c,outline:g.length==1&&!b.ta};if(g.length==1&&b.pa)c.Da=a.xd?a.Gu:$h(g),c.rotation=a.xd;e.ze.push(c)}});g.length>1&&e.ze.push({id:"selectionGroup",Da:this.xd?this.Gu:$h(g),page:0,Vt:!0,Yt:!0,Qk:i,rotation:this.xd,outline:!0});this.viewport.V[0].C.df(function(){if(a.iu(this,a.viewport.V[0])){var b=this.cg(),c=this.ja(),d=this.Fe(),f=this.q.get("Rotation");A(b,function(a,b){var g=new G(c.x+c.w*
a.x,c.y+c.h*a.y,d+"_linkpoint_"+b);if(f!=0)g=Za(g,Xa(c),f),g.data=d+"_linkpoint_"+b;e.Kp.push(g)})}});var j=[];this.ab!=l&&j.push(this.ab);if(this.lf&&this.X!=l&&this.X.action=="move")for(f=0;f<this.de.length;f++)this.de[f].sa&&j.push(this.de[f]);if(j.length==0&&(!this.lf||this.X==l))return e;if(!Ya){var k={},n={};this.viewport.V[0].C.df(function(){var a=this.cg();if(oc(j,this)==-1)for(var b=0;b<a.length;b++){var c=this.Ac(new G(0.5,0.5));a[b].x==0.5&&(n[c.y]=!0);a[b].y==0.5&&(k[c.x]=!0)}});for(f=
b.x;f<b.x+b.w;f++)k[this.viewport.V[0].dc((f+0.5)*c.x+d)]=!0;for(f=b.y;f<b.y+b.h;f++)n[this.viewport.V[0].dc((f+0.5)*c.y+d)]=!0;for(f=0;f<j.length;f++)for(var m=j[f],b=m.ja(),c=this.viewport.V[0].dc(b,h,h,nj(m)),b=new H(c.x-b.x,c.y-b.y,0,0),c=m.cg(),d=0;d<c.length;d++){var p=Gb(j[f].Ac(c[d]),b),s=mj(j[f],c[d]);s.x==0&&k[p.x]&&e.Pu.push({x:p.x,page:0});s.y==0&&n[p.y]&&e.Qu.push({y:p.y,page:0})}}var u=0;if(this.lf&&this.X!=l&&(this.X.action=="linkpoint"||this.X.action=="dragline"))this.X.action=="linkpoint"?
(f=this.jb,b="Endpoint2"):(f=this.X.item,b=this.X.oe),f=f.q.get(b),(f.Block!=l||f.Line!=l)&&e.Fi.push(new G(f.x,f.y,"cp_"+u++));for(var w=this.viewport.V[0].C.q.get("GridSpacing"),v=w*w,f=0;f<j.length;f++){var m=j[f],b=m.ja(),x=new G(b.x-w,b.y-w),z=new G(b.x+b.w+w,b.y+b.h+w);this.viewport.V[0].C.qd(function(){if(Ki(this,x,z)){for(var b=this.q.get("Endpoint1",!0),c=this.q.get("Endpoint2",!0),d=b.Block==l||a.viewport.V[0].C.Jb(b.Block)==l,f=c.Block==l||a.viewport.V[0].C.Jb(c.Block)==l,g=!1,i=[],j=m.cg(),
k=0;k<j.length;k++){var n=m.Ac(j[k]);if(Math.abs(n.x-b.x)<w&&Math.abs(n.y-b.y)<w){if(d){e.Fi.push(new G(b.x,b.y,"cp_"+u++));g=!0;break}}else if(Math.abs(n.x-c.x)<w&&Math.abs(n.y-c.y)<w){if(f){e.Fi.push(new G(c.x,c.y,"cp_"+u++));g=!0;break}}else if((b.Block==l||b.Block!=m.id)&&(c.Block==l||c.Block!=m.id)){var p=Gi(this,Pi(this,n));Nb(n,p)<=v&&i.push(new G(n.x,n.y,"cp_"+u++))}}if(a.ab&&!g)for(k=0;k<i.length;k++)e.Fi.push(new G(i[k].x,i[k].y,"cp_"+u++))}})}return e}};
q.zn=function(){var a=mh(this.viewport.V[0].C),b=this.viewport.V[0].C.q.get("DPI");this.jq.text(Math.round(a.w)+"px");this.gq.text(Math.round(a.h)+"px");this.iq.text(Math.round(100*a.w/b)/100+"in");this.hq.text(Math.round(100*a.h/b)/100+"in")};function qq(a){function b(){J.set("viewport.size",[d.we.width(),d.we.height()])}function c(){J.set("window.resize",[$(window).width(),$(window).height()])}var d=this;this.$=a;this.document=a.document;this.Kj=this.Lj=!1;this.Dl=new rq;this.contextMenu=this.ak=new Tl;J("gui.closeAllYerStuff",function(){d.ak.hide()});$("body").children().not("#load,.change_data,.dialog-container,.menu-container,#fancybox-tmp,#fancybox-loading,#fancybox-overlay,#fancybox-wrap").remove();this.J=$(y({Q:"gui-container "+
(Ko.get("gui-class")||"").replace(/[^_a-zA-Z0-9- ]/g,"")})).appendTo("body");Jp()&&this.J.removeClass("hidetitle");this.Wm=new Ip(this.J,this);this.li=new en(this.J,this);this.It=new Fp(this.J,this);this.uo=$(y({Q:"gui-bottom-container"})).appendTo(this.J);this.tg=$(y({Q:"viewport-container"})).appendTo(this.uo);this.we=$(y({Q:"viewport-scrollable"})).appendTo(this.tg);this.viewport=new zk(this.we,this,this.we,y({Q:"viewport"}));this.viewport.Tc([{name:"diagramming",mode:new nq(this)},{name:"drawing",
mode:new Vm(this)}]);this.viewport=this.viewport;this.canvasWindow=this.zi=this.we;this.yf=$(y({Q:"dock-panel-container"})).appendTo(this.tg).css({right:Od()+"px"});this.Li=$(y({Q:"dock-container"})).appendTo(this.tg).css({right:Od()+"px",bottom:Od()+"px"});this.dock=new Bp(this.Li,this.yf,this);this.sc=new Hp(this,[this.we,this.yf,this.Li]);this.By=new Ql(this);this.toolBox=this.pg=new Xp(this.uo,this);this.fe=new fm(this.J,this);this.blockPrompt=this.qo=new Rm(this);Ya&&this.J.addClass("touch");
this.Nq=new vl(this);this.sy=new cn(this);this.iy=new eq(this);this.Gy=new Gp(this);this.Qy=new Xl(this);this.yy=new bn(this);this.Fy=new Cp(this);this.Ku=new Xo(this);J("document.pages",function(){if(d.viewport.V.length==0){var a=[],b;for(b in d.document.V){a.push(d.document.V[b]);break}d.viewport.Lb(a)}});$(document).mousedown(function(){J.set("gui.closeAllYerStuff")});J("default.gui.optionbar.toggle",function(a){a!=h&&d.J.toggleClass("hideoptionbar",!!a);sq(d)});J("default.gui.toolbox.toggle",
function(){d.pg.toggle();sq(d)});J("default.gui.optionbar.hidden",function(a){a&&a(d.J.hasClass("hideoptionbar"))});J("default.gui.title.toggle",function(){d.J.toggleClass("hidetitle");il&&il.toggleClass("no-title");sq(d)});J("default.gui.title.hidden",function(a){a&&a(Jp()?!0:d.J.hasClass("hidetitle"))});this.we.scroll(function(){J.set("viewport.scrollTop",$(this).scrollTop());J.set("viewport.scrollLeft",$(this).scrollLeft())});$(window).resize(function(){c();b()});c();b();this.Ps=!1;J("client.readOnly",
function(a){if(a){ip(d);if(tq(d.$)&&!d.Ps&&d.$.Qa!="viewer"){a=$("<p>"+S("gui.alert.plugins.restricted")+'</p><p><a class="link">Turn off the restricted plugins on this document</a></p>');a.find(".link").click(function(){uq(d.$);b()});var b=L(a);d.Ps=!0}d.$.document.Ad||d.eg()}else jp(d),d.$.document.Ad||d.gh()},!0);$(document).ajaxSend(function(a,b,c){if(c.status!=l){var d=Tk(c.status),j=c.complete;c.complete=function(a,b){d();if(j)return j(a,b)}}});setTimeout(function(){function a(){$.fancybox("http://www.youtube.com/v/hly1tqs7ZfI&hl=en&fs=1?rel=0",
{type:"iframe",height:450,width:600,padding:30,autoScale:!1,title:"Welcome to the all new LucidChart! Watch this quick video for the highlights.",titlePosition:"inside",titleFormat:function(a){return $("<strong></strong>").text(a)}})}d.$.zb()?(d.Tn=gl('<a class="link" href="javascript:;" id="register_account">'+S("gui.growl.signup.save")+"</a>"),$("#register_account").click(function(){J.set("default.save")})):d.$.da==l&&gl('<a class="link" target="_blank" href="/users/registerLevel">'+S("gui.growl.try.free")+
"</a>");d.$.zb()||(gl('<a class="link" id="new_ui_video">What\'s new in LucidChart</a>'),$("#new_ui_video").click(function(){a()}));d.$.da&&d.$.da.TrialEligible&&!d.$.da.Trial&&(gl('<a class="link" href="javascript:;" id="start_trial">'+S("gui.growl.try.paid.free")+"</a>"),$("#start_trial").click(function(){xe("/users/level?Short=on",!1,function(){$("div.lucid-ubergrowl .rSide .close").click()})}));if(d.$.da&&d.$.da.Trial){var b=d.$.da.PendingPayment;b||(b=d.$.da.Payment[d.$.da.Payment.length-1]);
b&&(b=mm(b.created).getTime(),b=Math.round(d.$.da.trial_length-((new Date).getTime()-b)/864E5),gl('<a class="link" target="_blank" href="/users/pay" id="pay_now">'+S("gui.growl.trial.remain.prefix")+" "+b+" "+S("gui.growl.trial.remain.suffix")+"</a>"))}d.$.da&&d.$.da.Level.id=="free"&&!d.$.da.TrialEligible&&!d.$.da.Trial&&gl('<a class="link" target="_blank" href="/users/level">'+S("gui.growl.upgrade")+"</a>");Xd&&!ae&&!ie&&(gl('<a class="link" id="upgrade_browser">'+S("gui.growl.runfaster")+"</a>"),
$("#upgrade_browser").click(function(){Mm(S("gui.alert.ie.alternatives"),o(),new G(400,250))}));if(d.$.zb())$.fancybox("/documents/tips/drag_and_drop",{type:"iframe",height:480,width:640,padding:30,autoScale:!1});else{var b=$.cookie("lucid_gui_lastcheck"),c=new Date(2012,0,19);(!b||b*1<c.getTime())&&a();$.cookie("lucid_gui_lastcheck",c.getTime())}},1E3)}qq.prototype.Zb=ea("document");function ip(a){if(!a.Lj)a.Wm.Uc(),a.li.Uc(),a.pg.Uc(),a.It.Uc(),a.fe.Uc(),a.dock.Uc(),a.Lj=!0}
function jp(a){if(a.Lj&&!a.yh())a.Wm.pc(),a.li.pc(),a.pg.pc(),a.It.pc(),a.fe.pc(),a.dock.pc(),a.Lj=!1}qq.prototype.gh=function(){if(this.Kj)$("body").removeClass("readonly"),this.Wm.gh(),this.li.gh(),this.fe.gh(),this.viewport.padding=this.viewport.bs,this.viewport.Bm=!1,this.viewport.ia(),this.Kj=!1,jp(this)};
qq.prototype.eg=function(){if(!this.Kj)ip(this),$("body").addClass("readonly"),this.Wm.eg(),this.li.eg(),this.fe.eg(),this.viewport.padding=8,this.viewport.Bm=!1,this.viewport.ia(),this.Kj=!0};qq.prototype.yh=ea("Kj");function sq(a){Ko.set("gui-class",a.J.get(0).className.replace("gui-container",""),1E8)}t("lucid.view.chart.GUI",qq);function vq(a){for(var b=[],c=0;c<a.length;c++){var d=a.charCodeAt(c);d<128?b.push(String.fromCharCode(d)):(d>127&&d<2048?b.push(String.fromCharCode(d>>6|192)):(b.push(String.fromCharCode(d>>12|224)),b.push(String.fromCharCode(d>>6&63|128))),b.push(String.fromCharCode(d&63|128)))}return b.join("")};function wq(a){for(var b="",c,d,e,f,g,i=0,a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<a.length;)c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(i++)),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(i++)),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(i++)),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(i++)),c=c<<2|d>>4,d=(d&15)<<4|f>>2,e=(f&3)<<
6|g,b+=String.fromCharCode(c),f!=64&&(b+=String.fromCharCode(d)),g!=64&&(b+=String.fromCharCode(e));a=b;b=[];for(c=i=g=f=0;f<a.length;)g=a.charCodeAt(f),g<128?(b.push(String.fromCharCode(g)),f++):g>191&&g<224?(i=a.charCodeAt(f+1),b.push(String.fromCharCode((g&31)<<6|i&63)),f+=2):(i=a.charCodeAt(f+1),c=a.charCodeAt(f+2),b.push(String.fromCharCode((g&15)<<12|(i&63)<<6|c&63)),f+=3);return b=b.join("")};function xq(a){var b=yq,c;for(c in b)a.call(h,b[c],c,b)}function zq(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Aq(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}var Bq="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");function Cq(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Bq.length;f++)c=Bq[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Dq(a){if(typeof a.xk=="function")return a.xk();if(na(a))return a.split("");if(ma(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return zq(a)}function Eq(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ma(a)||na(a))Ff(a,b,c);else{var d;if(typeof a.Si=="function")d=a.Si();else if(typeof a.xk!="function")if(ma(a)||na(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=Aq(a);else d=h;for(var e=Dq(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}};var Fq="StopIteration"in ha?ha.StopIteration:Error("StopIteration");function Gq(){}Gq.prototype.next=function(){aa(Fq)};Gq.prototype.ho=function(){return this};function Hq(a){if(a instanceof Gq)return a;if(typeof a.ho=="function")return a.ho(!1);if(ma(a)){var b=0,c=new Gq;c.next=function(){for(;;)if(b>=a.length&&aa(Fq),b in a)return a[b++];else b++};return c}aa(Error("Not implemented"))}
function Iq(a,b){if(ma(a))try{Ff(a,b,h)}catch(c){c!==Fq&&aa(c)}else{a=Hq(a);try{for(;;)b.call(h,a.next(),h,a)}catch(d){d!==Fq&&aa(d)}}};function Jq(a,b){this.mf={};this.Lc=[];var c=arguments.length;if(c>1){c%2&&aa(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Jq?(c=a.Si(),d=a.xk()):(c=Aq(a),d=zq(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}q=Jq.prototype;q.uc=0;q.Hl=0;q.wm=ea("uc");q.xk=function(){Kq(this);for(var a=[],b=0;b<this.Lc.length;b++)a.push(this.mf[this.Lc[b]]);return a};q.Si=function(){Kq(this);return this.Lc.concat()};
q.Do=function(a){return Lq(this.mf,a)};q.ef=function(a,b){if(this===a)return!0;if(this.uc!=a.wm())return!1;var c=b||Mq;Kq(this);for(var d,e=0;d=this.Lc[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function Mq(a,b){return a===b}q.clear=function(){this.mf={};this.Hl=this.uc=this.Lc.length=0};q.remove=function(a){return Lq(this.mf,a)?(delete this.mf[a],this.uc--,this.Hl++,this.Lc.length>2*this.uc&&Kq(this),!0):!1};
function Kq(a){if(a.uc!=a.Lc.length){for(var b=0,c=0;b<a.Lc.length;){var d=a.Lc[b];Lq(a.mf,d)&&(a.Lc[c++]=d);b++}a.Lc.length=c}if(a.uc!=a.Lc.length){for(var e={},c=b=0;b<a.Lc.length;)d=a.Lc[b],Lq(e,d)||(a.Lc[c++]=d,e[d]=1),b++;a.Lc.length=c}}q.get=function(a,b){return Lq(this.mf,a)?this.mf[a]:b};q.set=function(a,b){Lq(this.mf,a)||(this.uc++,this.Lc.push(a),this.Hl++);this.mf[a]=b};q.clone=function(){return new Jq(this)};
q.ho=function(a){Kq(this);var b=0,c=this.Lc,d=this.mf,e=this.Hl,f=this,g=new Gq;g.next=function(){for(;;){e!=f.Hl&&aa(Error("The map has changed since the iterator was created"));b>=c.length&&aa(Fq);var g=c[b++];return a?g:d[g]}};return g};function Lq(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Nq(a){var b=ha,c=b.onerror,d=vo?!0:!1;b.onerror=function(b,f,g){c&&c(b,f,g);a({message:b,fileName:f,ub:g});return d}}
function Oq(a){var b=ia("window.location.href");if(na(a))return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c,d,e=!1;try{c=a.lineNumber||a.ub||"Not available"}catch(f){c="Not available",e=!0}try{d=a.fileName||a.filename||a.sourceURL||b}catch(g){d="Not available",e=!0}return e||!a.lineNumber||!a.fileName||!a.stack?{message:a.message,name:a.name,lineNumber:c,fileName:d,stack:a.stack||"Not available"}:a}
function Pq(a){for(var b=[],c=arguments.callee.caller,d=0;c&&(!a||d<a);){b.push(Qq(c));b.push("()\n");try{c=c.caller}catch(e){b.push("[exception trying to get caller]\n");break}d++;if(d>=Rq){b.push("[...long stack...]");break}}a&&d>=a?b.push("[...reached max depth limit...]"):b.push("[end]");return b.join("")}var Rq=50;function Sq(a){return Tq(a||arguments.callee.caller,[])}
function Tq(a,b){var c=[];if(Ef(b,a)>=0)c.push("[...circular reference...]");else if(a&&b.length<Rq){c.push(Qq(a)+"(");for(var d=a.arguments,e=0;e<d.length;e++){e>0&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=Qq(f))?f:"[fn]";break;default:f=typeof f}f.length>40&&(f=f.substr(0,40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push(Tq(a.caller,b))}catch(g){c.push("[exception trying to get caller]\n")}}else a?
c.push("[...long stack...]"):c.push("[end]");return c.join("")}function Qq(a){if(Uq[a])return Uq[a];a=String(a);if(!Uq[a]){var b=/function ([^\(]+)/.exec(a);Uq[a]=b?b[1]:"[Anonymous]"}return Uq[a]}var Uq={};function Vq(){}Vq.prototype.Po=!1;Vq.prototype.Fh=function(){if(!this.Po)this.Po=!0,this.Ee()};Vq.prototype.Ee=function(){this.yv&&Wq.apply(l,this.yv)};function Wq(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ma(d)?Wq.apply(l,d):d&&typeof d.Fh=="function"&&d.Fh()}};function Xq(a,b){this.it=b;this.Mh=[];a>this.it&&aa(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.Mh.push(this.bk())}Ca(Xq,Vq);q=Xq.prototype;q.Ah=l;q.ls=l;q.getObject=function(){return this.Mh.length?this.Mh.pop():this.bk()};function Yq(a,b){a.Mh.length<a.it?a.Mh.push(b):a.Oo(b)}q.bk=function(){return this.Ah?this.Ah():{}};q.Oo=function(a){if(this.ls)this.ls(a);else if(qa(a))if(pa(a.Fh))a.Fh();else for(var b in a)delete a[b]};
q.Ee=function(){Xq.zd.Ee.call(this);for(var a=this.Mh;a.length;)this.Oo(a.pop());delete this.Mh};function Zq(a,b,c,d,e){this.reset(a,b,c,d,e)}Zq.prototype.ux=0;Zq.prototype.ys=l;Zq.prototype.xs=l;var $q=0;Zq.prototype.reset=function(a,b,c,d,e){this.ux=typeof e=="number"?e:$q++;this.gz=d||za();this.Nk=a;this.Jw=b;this.Oy=c;delete this.ys;delete this.xs};Zq.prototype.gu=ca("Nk");function ar(a){this.Kw=a}ar.prototype.mn=l;ar.prototype.Nk=l;ar.prototype.zo=l;ar.prototype.Ns=l;function br(a,b){this.name=a;this.value=b}br.prototype.toString=ea("name");var cr=new br("SEVERE",1E3),dr=new br("WARNING",900),er=new br("INFO",800),fr=new br("CONFIG",700),gr=new br("FINE",500),hr=new br("FINEST",300);function ir(a){ha.console&&(ha.console.timeStamp?ha.console.timeStamp(a):ha.console.markTimeline&&ha.console.markTimeline(a));ha.msWriteProfilerMark&&ha.msWriteProfilerMark(a)}q=ar.prototype;
q.getParent=ea("mn");q.um=function(){if(!this.zo)this.zo={};return this.zo};q.gu=ca("Nk");function jr(a){if(a.Nk)return a.Nk;if(a.mn)return jr(a.mn);Cf("Root logger has no level set.");return l}q.log=function(a,b,c){if(a.value>=jr(this).value){a=this.Xv(a,b,c);ir("log:"+a.Jw);for(b=this;b;){var c=b,d=a;if(c.Ns)for(var e=0,f=h;f=c.Ns[e];e++)f(d);b=b.getParent()}}};
q.Xv=function(a,b,c){var d=new Zq(a,String(b),this.Kw);if(c){d.ys=c;var e;var f=arguments.callee.caller;try{var g=Oq(c);e="Message: "+wd(g.message)+'\nUrl: <a href="view-source:'+g.fileName+'" target="_new">'+g.fileName+"</a>\nLine: "+g.lineNumber+"\n\nBrowser stack:\n"+wd(g.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+wd(Sq(f)+"-> ")}catch(i){e="Exception trying to expose exception! You win, we lose. "+i}d.xs=e}return d};q.info=function(a,b){this.log(er,a,b)};function kr(a,b){a.log(gr,b,h)}
var lr={},mr=l;function nr(a){mr||(mr=new ar(""),lr[""]=mr,mr.gu(fr));var b;if(!(b=lr[a])){b=new ar(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=nr(a.substr(0,c));c.um()[d]=b;b.mn=c;lr[a]=b}return b};function or(){this.rd=[];this.$g=new Jq;this.Cu=this.cr=this.dr=this.ru=0;this.ki=new Jq;this.Sr=this.br=0;this.Nw=1;this.Jh=new Xq(0,4E3);this.Jh.bk=function(){return new pr};this.Rq=new Xq(0,50);this.Rq.bk=function(){return new qr};var a=this;this.aj=new Xq(0,2E3);this.aj.bk=function(){return String(a.Nw++)};this.aj.Oo=o();this.ds=3}or.prototype.nc=nr("goog.debug.Trace");or.prototype.fo=1E3;function qr(){this.Yn=this.Zq=this.count=0}
qr.prototype.toString=function(){var a=[];a.push(this.type," ",this.count," (",Math.round(this.Zq*10)/10," ms)");this.Yn&&a.push(" [VarAlloc = ",this.Yn,"]");return a.join("")};function pr(){}function rr(a,b,c,d){var e=[];c==-1?e.push("    "):e.push(sr(a.nm-c));e.push(" ",tr(a.nm-b));a.lk==0?e.push(" Start        "):a.lk==1?(e.push(" Done "),e.push(sr(a.Dx-a.startTime)," ms ")):e.push(" Comment      ");e.push(d,a);a.yl>0&&e.push("[VarAlloc ",a.yl,"] ");return e.join("")}
pr.prototype.toString=function(){return this.type==l?this.$j:"["+this.type+"] "+this.$j};or.prototype.reset=function(a){this.ds=a;for(a=0;a<this.rd.length;a++){var b=this.Jh.id;b&&Yq(this.aj,b);Yq(this.Jh,this.rd[a])}this.rd.length=0;this.$g.clear();this.ru=za();this.Sr=this.br=this.Cu=this.cr=this.dr=0;b=this.ki.Si();for(a=0;a<b.length;a++){var c=this.ki.get(b[a]);c.count=0;c.Zq=0;c.Yn=0;Yq(this.Rq,c)}this.ki.clear()};function ur(){var a=vr.Cy;return a&&a.isTracing()?a.totalVarAlloc:-1}
or.prototype.toString=function(){for(var a=[],b=-1,c=[],d=0;d<this.rd.length;d++){var e=this.rd[d];e.lk==1&&c.pop();a.push(" ",rr(e,this.ru,b,c.join("")));b=e.nm;a.push("\n");e.lk==0&&c.push("|  ")}if(this.$g.wm()!=0){var f=za();a.push(" Unstopped timers:\n");Iq(this.$g,function(b){a.push("  ",b," (",f-b.startTime," ms, started at ",tr(b.startTime),")\n")})}b=this.ki.Si();for(d=0;d<b.length;d++)c=this.ki.get(b[d]),c.count>1&&a.push(" TOTAL ",c,"\n");a.push("Total tracers created ",this.br,"\n","Total comments created ",
this.Sr,"\n","Overhead start: ",this.dr," ms\n","Overhead end: ",this.cr," ms\n","Overhead comment: ",this.Cu," ms\n");return a.join("")};function sr(a){var a=Math.round(a),b="";a<1E3&&(b=" ");a<100&&(b="  ");a<10&&(b="   ");return b+a}function tr(a){a=Math.round(a);return String(100+a/1E3%60).substring(1,3)+"."+String(1E3+a%1E3).substring(1,4)}var vr=new or;var wr=[],xr=[],yr=!1;function zr(a){wr[wr.length]=a;if(yr)for(var b=0;b<xr.length;b++)a(r(xr[b].wrap,xr[b]))};function Ar(a){this.Lv=a}Ca(Ar,Vq);Ar.prototype.mv=!1;Ar.prototype.wrap=function(a){return Br(this,a)};Ar.prototype.unwrap=function(a){return a[Cr(this,!1)]||a};function Cr(a,b){return(b?"__wrapper_":"__protected_")+ra(a)+"__"}function Br(a,b){var c=Cr(a,!0);b[c]||((b[c]=Dr(a,b))[Cr(a,!1)]=b);return b[c]}
function Dr(a,b){function c(){if(a.Po)return b.apply(this,arguments);if(d){var c=e,g=[];g.push("##PE_STACK_START##");g.push(c.replace(/(\r\n|\r|\n)/g,"##STACK_BR##"));g.push("##PE_STACK_END##");var i="protectedEntryPoint: "+g.join(""),c=za(),j=ur(),k=vr.$g.wm();if(vr.rd.length+k>vr.fo){vr.nc.log(dr,"Giant thread trace. Clearing to avoid memory leak.",h);if(vr.rd.length>vr.fo/2){for(var n=0;n<vr.rd.length;n++)g=vr.rd[n],g.id&&Yq(vr.aj,g.id),Yq(vr.Jh,g);vr.rd.length=0}k>vr.fo/2&&vr.$g.clear()}ir("Start : "+
i);g=vr.Jh.getObject();g.yl=j;g.lk=0;g.id=Number(vr.aj.getObject());g.$j=i;g.type=h;vr.rd.push(g);vr.$g.set(String(g.id),g);vr.br++;i=za();g.startTime=g.nm=i;vr.dr+=i-c;c=g.id}try{return b.apply(this,arguments)}catch(m){a.Lv(m),aa(new Er(m))}finally{if(d&&(i=c,c=za(),j=vr.ds,g=vr.$g.get(String(i)),g!=l)){vr.$g.remove(String(i));var p,i=c-g.startTime;if(i<j)for(j=vr.rd.length-1;j>=0;j--){if(vr.rd[j]==g){vr.rd.splice(j,1);Yq(vr.aj,g.id);Yq(vr.Jh,g);break}}else p=vr.Jh.getObject(),p.lk=1,p.startTime=
g.startTime,p.$j=g.$j,p.type=g.type,p.Dx=p.nm=c,vr.rd.push(p);j=g.type;k=l;if(j){k=vr.ki.get(j);if(!k)k=vr.Rq.getObject(),k.type=j,vr.ki.set(j,k);k.count++;k.Zq+=i}if(p)ir("Stop : "+p.$j),p.yl=ur(),k&&(k.Yn+=p.yl-g.yl);vr.cr+=za()-c}}}var d=a.mv;if(d)var e=Pq(15);c[Cr(a,!1)]=b;return c}function Fr(a,b){var c=ia("window"),d=c[b];c[b]=function(b,c){na(b)&&(b=ya(Aa,b));b=Br(a,b);return d.call?d.call(this,b,c):d(b,c)};c[b][Cr(a,!1)]=d}
Ar.prototype.Ee=function(){var a=ia("window");a.setTimeout=this.unwrap(a.setTimeout);a.setInterval=this.unwrap(a.setInterval);Ar.zd.Ee.call(this)};function Er(a){Af.call(this,Gr+(a&&a.message?String(a.message):String(a)));this.ly=a}Ca(Er,Af);var Gr="Error in protected function: ";var Hr;to&&(Go[9]||(Go[9]=to&&document.documentMode&&document.documentMode>=9));var Ir=to&&!(Fo["8"]||(Fo["8"]=Fd(yo,"8")>=0));function Jr(a,b){this.type=a;this.currentTarget=this.target=b}Ca(Jr,Vq);q=Jr.prototype;q.Ee=function(){delete this.type;delete this.target;delete this.currentTarget};q.gi=!1;q.jl=!0;q.stopPropagation=function(){this.gi=!0};q.preventDefault=function(){this.jl=!1};function Kr(a){Kr[" "](a);return a}Kr[" "]=ja;function Lr(a,b){a&&this.Tc(a,b)}Ca(Lr,Jr);q=Lr.prototype;q.target=l;q.relatedTarget=l;q.offsetX=0;q.offsetY=0;q.clientX=0;q.clientY=0;q.screenX=0;q.screenY=0;q.button=0;q.keyCode=0;q.charCode=0;q.ctrlKey=!1;q.altKey=!1;q.shiftKey=!1;q.metaKey=!1;q.cx=!1;q.Oi=l;
q.Tc=function(a,b){var c=this.type=a.type;Jr.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(uo){var e;a:{try{Kr(d.nodeName);e=!0;break a}catch(f){}e=!1}e||(d=l)}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==h?a.offsetX:a.layerX;this.offsetY=a.offsetY!==h?a.offsetY:a.layerY;this.clientX=a.clientX!==h?a.clientX:a.pageX;this.clientY=a.clientY!==h?a.clientY:a.pageY;this.screenX=
a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.cx=xo?a.metaKey:a.ctrlKey;this.state=a.state;this.Oi=a;delete this.jl;delete this.gi};q.stopPropagation=function(){Lr.zd.stopPropagation.call(this);this.Oi.stopPropagation?this.Oi.stopPropagation():this.Oi.cancelBubble=!0};
q.preventDefault=function(){Lr.zd.preventDefault.call(this);var a=this.Oi;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Ir)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}};q.Ee=function(){Lr.zd.Ee.call(this);this.relatedTarget=this.currentTarget=this.target=this.Oi=l};function Mr(){}var Nr=0;q=Mr.prototype;q.key=0;q.yj=!1;q.Hr=!1;q.Tc=function(a,b,c,d,e,f){pa(a)?this.Ws=!0:a&&a.handleEvent&&pa(a.handleEvent)?this.Ws=!1:aa(Error("Invalid listener argument"));this.Ok=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.sp=f;this.Hr=!1;this.key=++Nr;this.yj=!1};q.handleEvent=function(a){return this.Ws?this.Ok.call(this.sp||this.src,a):this.Ok.handleEvent.call(this.Ok,a)};var Or,Pr=(Or="ScriptEngine"in ha&&ha.ScriptEngine()=="JScript")?ha.ScriptEngineMajorVersion()+"."+ha.ScriptEngineMinorVersion()+"."+ha.ScriptEngineBuildVersion():"0";var Qr,Rr,Sr,Tr,Ur,Vr,Wr,Xr,Yr,Zr,$r;
(function(){function a(){return{uc:0,of:0}}function b(){return[]}function c(){function a(b){b=g.call(a.src,a.key,b);if(!b)return b}return a}function d(){return new Mr}function e(){return new Lr}var f=Or&&!(Fd(Pr,"5.7")>=0),g;Vr=function(a){g=a};if(f){Qr=function(){return i.getObject()};Rr=function(a){Yq(i,a)};Sr=function(){return j.getObject()};Tr=function(a){Yq(j,a)};Ur=function(){return k.getObject()};Wr=function(){Yq(k,c())};Xr=function(){return n.getObject()};Yr=function(a){Yq(n,a)};Zr=function(){return m.getObject()};
$r=function(a){Yq(m,a)};var i=new Xq(0,600);i.Ah=a;var j=new Xq(0,600);j.Ah=b;var k=new Xq(0,600);k.Ah=c;var n=new Xq(0,600);n.Ah=d;var m=new Xq(0,600);m.Ah=e}else Qr=a,Rr=ja,Sr=b,Tr=ja,Ur=c,Wr=ja,Xr=d,Yr=ja,Zr=e,$r=ja})();var as={},bs={},yq={},cs={};
function ds(a,b,c,d,e){if(b)if(la(b))for(var f=0;f<b.length;f++)ds(a,b[f],c,d,e);else{var d=!!d,g=bs;b in g||(g[b]=Qr());g=g[b];d in g||(g[d]=Qr(),g.uc++);var g=g[d],i=ra(a),j;g.of++;if(g[i]){j=g[i];for(f=0;f<j.length;f++)if(g=j[f],g.Ok==c&&g.sp==e){if(g.yj)break;return}}else j=g[i]=Sr(),g.uc++;f=Ur();f.src=a;g=Xr();g.Tc(c,f,a,b,d,e);c=g.key;f.key=c;j.push(g);as[c]=g;yq[i]||(yq[i]=Sr());yq[i].push(g);a.addEventListener?(a==ha||!a.as)&&a.addEventListener(b,f,d):a.attachEvent(b in cs?cs[b]:cs[b]="on"+
b,f)}else aa(Error("Invalid event type"))}function es(a,b,c,d,e){if(la(b))for(var f=0;f<b.length;f++)es(a,b[f],c,d,e);else{d=!!d;a:{f=bs;if(b in f&&(f=f[b],d in f&&(f=f[d],a=ra(a),f[a]))){a=f[a];break a}a=l}if(a)for(f=0;f<a.length;f++)if(a[f].Ok==c&&a[f].capture==d&&a[f].sp==e){fs(a[f].key);break}}}
function fs(a){if(as[a]){var b=as[a];if(!b.yj){var c=b.src,d=b.type,e=b.proxy,f=b.capture;c.removeEventListener?(c==ha||!c.as)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in cs?cs[d]:cs[d]="on"+d,e);c=ra(c);e=bs[d][f][c];if(yq[c]){var g=yq[c];Hf(g,b);g.length==0&&delete yq[c]}b.yj=!0;e.ut=!0;gs(d,f,c,e);delete as[a]}}}
function gs(a,b,c,d){if(!d.Tm&&d.ut){for(var e=0,f=0;e<d.length;e++)if(d[e].yj){var g=d[e].proxy;g.src=l;Wr(g);Yr(d[e])}else e!=f&&(d[f]=d[e]),f++;d.length=f;d.ut=!1;f==0&&(Tr(d),delete bs[a][b][c],bs[a][b].uc--,bs[a][b].uc==0&&(Rr(bs[a][b]),delete bs[a][b],bs[a].uc--),bs[a].uc==0&&(Rr(bs[a]),delete bs[a]))}}
function hs(a){var b,c=0,d=b==l;b=!!b;if(a==l)xq(function(a){for(var e=a.length-1;e>=0;e--){var f=a[e];if(d||b==f.capture)fs(f.key),c++}});else if(a=ra(a),yq[a])for(var a=yq[a],e=a.length-1;e>=0;e--){var f=a[e];if(d||b==f.capture)fs(f.key),c++}}function is(a,b,c,d,e){var f=1,b=ra(b);if(a[b]){a.of--;a=a[b];a.Tm?a.Tm++:a.Tm=1;try{for(var g=a.length,i=0;i<g;i++){var j=a[i];j&&!j.yj&&(f&=js(j,e)!==!1)}}finally{a.Tm--,gs(c,d,b,a)}}return Boolean(f)}
function js(a,b){var c=a.handleEvent(b);a.Hr&&fs(a.key);return c}
function ks(a,b){if(!as[a])return!0;var c=as[a],d=c.type,e=bs;if(!(d in e))return!0;var e=e[d],f,g;Hr===h&&(Hr=to&&!ha.addEventListener);if(Hr){f=b||ia("window.event");var i=!0 in e,j=!1 in e;if(i){if(f.keyCode<0||f.returnValue!=h)return!0;a:{var k=!1;if(f.keyCode==0)try{f.keyCode=-1;break a}catch(n){k=!0}if(k||f.returnValue==h)f.returnValue=!0}}k=Zr();k.Tc(f,this);f=!0;try{if(i){for(var m=Sr(),p=k.currentTarget;p;p=p.parentNode)m.push(p);g=e[!0];g.of=g.uc;for(var s=m.length-1;!k.gi&&s>=0&&g.of;s--)k.currentTarget=
m[s],f&=is(g,m[s],d,!0,k);if(j){g=e[!1];g.of=g.uc;for(s=0;!k.gi&&s<m.length&&g.of;s++)k.currentTarget=m[s],f&=is(g,m[s],d,!1,k)}}else f=js(c,k)}finally{if(m)m.length=0,Tr(m);k.Fh();$r(k)}return f}d=new Lr(b,this);try{f=js(c,d)}finally{d.Fh()}return f}Vr(ks);var ls=0;zr(function(a){ks=a(ks);Vr(ks)});var ms=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function ns(a,b,c){if(la(b))for(var d=0;d<b.length;d++)c.push("&",a),b[d]!==""&&c.push("=",vd(b[d]));else b!=l&&(c.push("&",a),b!==""&&c.push("=",vd(b)))}function os(a,b,c){for(c=c||0;c<b.length;c+=2)ns(b[c],b[c+1],a);return a}
function ps(a,b){var c=arguments.length==2?os([a],arguments[1],0):os([a],arguments,1);if(c[1]){var d=c[0],e=d.indexOf("#");e>=0&&(c.push(d.substr(e)),c[0]=d=d.substr(0,e));e=d.indexOf("?");e<0?c[1]="?":e==d.length-1&&(c[1]=h)}return c.join("")};function qs(){}Ca(qs,Vq);q=qs.prototype;q.as=!0;q.lq=l;q.addEventListener=function(a,b,c,d){ds(this,a,b,c,d)};q.removeEventListener=function(a,b,c,d){es(this,a,b,c,d)};
q.dispatchEvent=function(a){var b=a.type||a,c=bs;if(b in c){if(na(a))a=new Jr(a,this);else if(a instanceof Jr)a.target=a.target||this;else{var d=a,a=new Jr(b,this);Cq(a,d)}var d=1,e,c=c[b],b=!0 in c,f;if(b){e=[];for(f=this;f;f=f.lq)e.push(f);f=c[!0];f.of=f.uc;for(var g=e.length-1;!a.gi&&g>=0&&f.of;g--)a.currentTarget=e[g],d&=is(f,e[g],a.type,!0,a)&&a.jl!=!1}if(!1 in c)if(f=c[!1],f.of=f.uc,b)for(g=0;!a.gi&&g<e.length&&f.of;g++)a.currentTarget=e[g],d&=is(f,e[g],a.type,!1,a)&&a.jl!=!1;else for(e=this;!a.gi&&
e&&f.of;e=e.lq)a.currentTarget=e,d&=is(f,e,a.type,!1,a)&&a.jl!=!1;a=Boolean(d)}else a=!0;return a};q.Ee=function(){qs.zd.Ee.call(this);hs(this);this.lq=l};var rs=ha.window;function ss(){if(uo)this.xh={},this.co={},this.Ln=[]}ss.prototype.nc=nr("goog.net.xhrMonitor");ss.prototype.km=uo;function ts(a){var b=us;if(b.km){var c=na(a)?a:qa(a)?ra(a):"";b.nc.log(hr,"Pushing context: "+a+" ("+c+")",h);b.Ln.push(c)}}function vs(){var a=us;if(a.km){var b=a.Ln.pop();a.nc.log(hr,"Popping context: "+b,h);ws(a,b)}}function xs(a){var b=us;if(b.km){a=ra(a);kr(b.nc,"Opening XHR : "+a);for(var c=0;c<b.Ln.length;c++){var d=b.Ln[c];ys(b.xh,d,a);ys(b.co,a,d)}}}
function ws(a,b){var c=a.co[b],d=a.xh[b];c&&d&&(a.nc.log(hr,"Updating dependent contexts",h),Ff(c,function(a){Ff(d,function(b){ys(this.xh,a,b);ys(this.co,b,a)},this)},a))}function ys(a,b,c){a[b]||(a[b]=[]);Ef(a[b],c)>=0||a[b].push(c)}var us=new ss;function zs(){}zs.prototype.Gr=l;function As(a){var b;if(!(b=a.Gr))b={},Bs(a)&&(b[0]=!0,b[1]=!0),b=a.Gr=b;return b};var Cs;function Ds(){}Ca(Ds,zs);function Es(a){return(a=Bs(a))?new ActiveXObject(a):new XMLHttpRequest}Ds.prototype.vp=l;
function Bs(a){if(!a.vp&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.vp=d}catch(e){}}aa(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return a.vp}Cs=new Ds;function Fs(a){this.headers=new Jq;this.eo=a||l}Ca(Fs,qs);Fs.prototype.nc=nr("goog.net.XhrIo");var Gs=/^https?:?$/i,Hs=[];function Is(a){a.Fh();Hf(Hs,a)}q=Fs.prototype;q.Bg=!1;q.xb=l;q.bo=l;q.Lk="";q.ct="";q.Ik=0;q.Jk="";q.Yo=!1;q.Fm=!1;q.wp=!1;q.Ph=!1;q.Qn=0;q.mi=l;q.Wt="";q.Ux=!1;
q.send=function(a,b,c,d){this.xb&&aa(Error("[goog.net.XhrIo] Object is active with another request"));b=b?b.toUpperCase():"GET";this.Lk=a;this.Jk="";this.Ik=0;this.ct=b;this.Yo=!1;this.Bg=!0;this.xb=this.eo?Es(this.eo):Es(Cs);this.bo=this.eo?As(this.eo):As(Cs);xs(this.xb);this.xb.onreadystatechange=r(this.Gt,this);try{kr(this.nc,Js(this,"Opening Xhr")),this.wp=!0,this.xb.open(b,a,!0),this.wp=!1}catch(e){kr(this.nc,Js(this,"Error opening Xhr: "+e.message));Ks(this,e);return}var a=c||"",f=this.headers.clone();
d&&Eq(d,function(a,b){f.set(b,a)});b=="POST"&&!f.Do("Content-Type")&&f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Eq(f,function(a,b){this.xb.setRequestHeader(b,a)},this);if(this.Wt)this.xb.responseType=this.Wt;if("withCredentials"in this.xb)this.xb.withCredentials=this.Ux;try{if(this.mi)rs.clearTimeout(this.mi),this.mi=l;if(this.Qn>0)kr(this.nc,Js(this,"Will abort after "+this.Qn+"ms if incomplete")),this.mi=rs.setTimeout(r(this.Lx,this),this.Qn);kr(this.nc,Js(this,"Sending request"));
this.Fm=!0;this.xb.send(a);this.Fm=!1}catch(g){kr(this.nc,Js(this,"Send error: "+g.message)),Ks(this,g)}};q.dispatchEvent=function(a){if(this.xb){ts(this.xb);try{return Fs.zd.dispatchEvent.call(this,a)}finally{vs()}}else return Fs.zd.dispatchEvent.call(this,a)};q.Lx=function(){if(typeof ga!="undefined"&&this.xb)this.Jk="Timed out after "+this.Qn+"ms, aborting",this.Ik=8,kr(this.nc,Js(this,this.Jk)),this.dispatchEvent("timeout"),this.abort(8)};
function Ks(a,b){a.Bg=!1;if(a.xb)a.Ph=!0,a.xb.abort(),a.Ph=!1;a.Jk=b;a.Ik=5;Ls(a);Ms(a)}function Ls(a){if(!a.Yo)a.Yo=!0,a.dispatchEvent("complete"),a.dispatchEvent("error")}q.abort=function(a){if(this.xb&&this.Bg)kr(this.nc,Js(this,"Aborting")),this.Bg=!1,this.Ph=!0,this.xb.abort(),this.Ph=!1,this.Ik=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ms(this)};q.Ee=function(){if(this.xb){if(this.Bg)this.Bg=!1,this.Ph=!0,this.xb.abort(),this.Ph=!1;Ms(this,!0)}Fs.zd.Ee.call(this)};
q.Gt=function(){!this.wp&&!this.Fm&&!this.Ph?this.bq():Ns(this)};q.bq=function(){Ns(this)};
function Ns(a){if(a.Bg&&typeof ga!="undefined")if(a.bo[1]&&Os(a)==4&&Ps(a)==2)kr(a.nc,Js(a,"Local request error detected and ignored"));else if(a.Fm&&Os(a)==4)rs.setTimeout(r(a.Gt,a),0);else if(a.dispatchEvent("readystatechange"),Os(a)==4){kr(a.nc,Js(a,"Request complete"));a.Bg=!1;var b;a:switch(Ps(a)){case 0:b=na(a.Lk)?a.Lk.match(ms)[1]||l:a.Lk.Dy();b=!(b?Gs.test(b):self.location?Gs.test(self.location.protocol):1);break a;case 200:case 201:case 202:case 204:case 304:case 1223:b=!0;break a;default:b=
!1}if(b)a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.Ik=6;var c;try{c=Os(a)>2?a.xb.statusText:""}catch(d){kr(a.nc,"Can not get status: "+d.message),c=""}a.Jk=c+" ["+Ps(a)+"]";Ls(a)}Ms(a)}}
function Ms(a,b){if(a.xb){var c=a.xb,d=a.bo[0]?ja:l;a.xb=l;a.bo=l;if(a.mi)rs.clearTimeout(a.mi),a.mi=l;b||(ts(c),a.dispatchEvent("ready"),vs());var e=us;if(e.km){var f=ra(c);kr(e.nc,"Closing XHR : "+f);delete e.co[f];for(var g in e.xh)Hf(e.xh[g],f),e.xh[g].length==0&&delete e.xh[g]}try{c.onreadystatechange=d}catch(i){a.nc.log(cr,"Problem encountered resetting onreadystatechange: "+i.message,h)}}}q.hf=function(){return!!this.xb};function Os(a){return a.xb?a.xb.readyState:0}
function Ps(a){try{return Os(a)>2?a.xb.status:-1}catch(b){return a.nc.log(dr,"Can not get status: "+b.message,h),-1}}function Js(a,b){return b+" ["+a.ct+" "+a.Lk+" "+Ps(a)+"]"}zr(function(a){Fs.prototype.bq=a(Fs.prototype.bq)});function Qs(a,b,c){this.Ur=b||l;this.Vx=Rs;this.jw=a;if(!c)if(to)Nq(r(this.sd,this));else{this.mm=new Ar(r(this.sd,this));Fr(this.mm,"setTimeout");Fr(this.mm,"setInterval");a=this.mm;yr=!0;b=r(a.wrap,a);for(c=0;c<wr.length;c++)wr[c](b);xr.push(a)}}Ca(Qs,qs);function Ss(a,b){Jr.call(this,Ts);this.error=a;this.context=b}Ca(Ss,Jr);var Ts="exception_"+ls++;Qs.prototype.mm=l;var Us=nr("goog.debug.ErrorReporter");function Rs(a,b,c,d){var e=new Fs;Hs.push(e);ds(e,"ready",ya(Is,e));e.send(a,b,c,d)}
Qs.prototype.sd=function(a,b){var c=Oq(a),d;if(b){d={};for(var e in b)d[e]=b[e]}else d={};if(this.Ur)try{this.Ur(c,d)}catch(f){Us.log(cr,"Context provider threw an exception: "+f.message,h)}this.eu(c.message,c.fileName,c.lineNumber,c.stack,d);try{this.dispatchEvent(new Ss(c,d))}catch(g){}};
Qs.prototype.eu=function(a,b,c,d,e){try{var f=ps(this.jw,"script",b,"error",a,"line",c),g={};g.trace=d;if(e)for(var i in e)g["context."+i]=e[i];var e=[],j;for(j in g)ns(j,g[j],e);e[0]="";this.Vx(f,"POST",e.join(""),this.xy)}catch(k){Us.info(Ed("Error occurred in sending an error report.\n\n","script:",b,"\n","line:",c,"\n","error:",a,"\n","trace:",d))}};function Vs(a,b){this.user=this.da=a;this.Ni=l;b&&Ws(this);var c=window.onerror;window.onerror=function(a){Xs(a);c&&c(a)}}Vs.prototype.sd=function(a){this.Ni?this.Ni.sd.apply(this.Ni,a):(Xs(a.toString()),V("unhandled exception",a))};function Xs(a){$("body").addClass("jserror").attr("jserror",a)}
function Ws(a){if(!a.Ni)a.Ni=new Qs("/bugs/js"),a.Ni.eu=function(b,c,d,e,f){Xs(b);try{var g={user_id:a.da?a.da.User.id:0,url:window.location.href,script:c,error:b+"\n"+nd(f),line:d,trace:e,useragent:navigator.userAgent};if(a.Zk==l)a.Zk=[];var i=!1;A(a.Zk,function(a){if(Na(a,g))return i=!0,!1});i||a.Zk.push(g);if(!(a.bt!=l&&(new Date).getTime()-a.bt.getTime()<5E3))a.bt=new Date,$.ajax({type:"POST",url:"/bugs/js",data:ic({data:{ErrorReport:a.Zk}}),success:function(){a.Zk=[]}})}catch(j){Us.info(Ed("Error occurred in sending an error report.\n\n",
"script:",c,"\n","line:",d,"\n","error:",b,"\n","trace:",e))}}};function Ys(a){function b(a){for(var b={Pp:0,Rx:0,No:0},c=a.length,d,e=0,f=c;f--;e+=a[f]);for(d=b.Pp=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.No=Math.sqrt(b.Rx=e/c),b}for(var c=(a.length-1)/(a[a.length-1].before-a[0].before)*1E3,d=[],e=[],f=0;f<a.length;f++)d.push(a[f].after-a[f].before),f>0&&e.push(a[f].before-a[f-1].after);d=b(d);e=b(e);L("<h3>Benchmark Results</h3><p>Average FPS: "+c.toFixed(3)+"</p><p>Javascript render time:<br/>"+d.Pp.toFixed(3)+"ms mean<br/>"+d.No.toFixed(3)+"ms stddev</p><p>Intra-frame time:<br/>"+
e.Pp.toFixed(3)+"ms mean<br/>"+e.No.toFixed(3)+"ms stddev</p>")}
function Zs(a){var b=a.K.viewport,a=b.V[0].C;setInterval(r(b.Ub,b),1);var a=wj(a),a=a[a.length-1].q.get("BoundingBox"),c=new G(a.x+a.w/2,a.y+a.h/2),d=new G(a.x+a.w/2,a.y+a.h/2);b.ud(d,{which:1});var e=new Date,f=[];b.J.bind("beforeRender.benchmark",function(){f.push({before:(new Date).getTime()})}).bind("afterRender.benchmark",function(){f[f.length-1].after=(new Date).getTime()});var g=setInterval(function(){var a=(new Date).getTime()-e.getTime();d.x=c.x+Math.cos(a*2*Math.PI/1E3)*200;d.y=c.y+200+
Math.sin(a*2*Math.PI/1E3)*200;b.fd(d,{which:1});a>=5E3&&(b.gd(d,{which:1}),b.J.unbind("beforeRender.benchmark").unbind("afterRender.benchmark"),clearInterval(g),Ys(f))},1)};function rq(){}
rq.prototype.pl=function(a,b,c,d){$(a).fileUploadArea({url:b,filter:function(a){return c(a)},progress:function(a){var b=this;$("div[filename]").each(function(){$(this).attr("filename")==b.fileName&&$(this).find("span").html(" ("+a+"%)")});d.progress&&d.progress(a)},onDrop:function(a){Tk('<div filename="'+a.fileName+'">'+S("Uploading")+" "+a.fileName+"<span></span></div>",1E6);if(d.onDrop)d.onDrop(a)},fileComplete:function(a,b){var c=this;$("div[filename]").each(function(){$(this).attr("filename")==c.fileName&&
$(this).click()});d.fileComplete&&d.fileComplete(a,b)},complete:function(){d.complete&&d.complete()},error:function(a){$("div[filename]").each(function(){$(this).attr("filename")==a.fileName&&$(this).click()});d.error?d.error(a):Tk(S("growl.upload.failed"))},params:{}})};rq.prototype.setFileDrop=rq.prototype.pl;function $s(a,b,c,d,e){this.client=this.$=a;this.document=this.document=a.document;this.url=b;this.name=c;this.description=d;this.code=e;this.Nj=!1;b in at||(eval(this.code+"\n\n//@ sourceURL="+b),at[b]=!0);this.Ze=this.activate;this.Fg=this.deactivate}var at={};var bt={},ct="onhashchange"in window;bt.change=function(a){if(ct){var b=window;b.addEventListener?b.addEventListener("hashchange",a,!1):b.attachEvent?b.attachEvent("onhashchange",a):b.onhashchange+=a}else dt.push(a)};bt.unbind=function(a){if(ct){var b=window;b.removeEventListener?b.removeEventListener("hashchange",a,!1):b.detachEvent?b.detachEvent("onhashchange",a):b.onhashchange-=a}else{var a=dt.indexOf(a),b=dt,c=b.slice(a+1||b.length);b.length=a<0?b.length+a:a;b.push.apply(b,c)}return bt};
bt.val=function(a,b){var c=et();if(arguments.length===2)return c[a.toLowerCase()]=b===l?"":b,bt.set(bt.root(),c);else if(arguments.length===1&&typeof a==="string")return c[a.toLowerCase()];return c};bt.root=function(a){a===h?(a=window.location.hash,a=a.substring(0,a.length),a.indexOf("#")>-1&&(a=a.substring(1,a.length)),a.indexOf("?")>-1&&(a=a.substring(0,a.indexOf("?")))):a=bt.set(a,bt.val());return a};
bt.set=function(a,b){var c;if(arguments.length===2){if(typeof b==="string")c=b;else{c="";for(var d in b)b[d]!==h&&(c.length>0&&(c+="&"),c+=d.toString()+"="+b[d].toString())}c=a+"?"+c}else c=a;window.location.hash=c;return bt};bt.remove=function(a){var b=et();b[a.toLowerCase()]=h;return bt.set(bt.root(),b)};t("lucid.hash.root",bt.root);t("lucid.hash.val",bt.val);ct||window.setInterval(function(){var a=window.location.hash;if(ft!==a)for(var b in dt)dt[b].call(window);ft=a},200);var dt=[],ft=window.location.hash;
function et(){var a=window.location.hash,b={},c=l,c=a.substring(0,a.length);c.indexOf("#")===0&&(c=c.substring(1,c.length));a=c.indexOf("?");a>-1&&(c=c.substring(a+1,c.length));for(var a=c.split("&"),d=0;d<a.length;d++)c=a[d].split("="),b[c[0].toString().toLowerCase()]=c[1];return b};function gt(){for(var a=window.location.href.toString(),b={},c=l,a=a.split("#")[0].substring(a.indexOf("?")+1||a.length).split("&"),d=0;d<a.length;d++)c=a[d].split("="),b[c[0].toString().toLowerCase()]=c[1];return b};var ht=l,it=l,jt=l,kt=l;function lt(){if(ht===l||kt===l){var a=gt();kt=a.callback?decodeURIComponent(a.callback):"";kt.match("^http[s]?:")?(ht=a.app?decodeURIComponent(a.app):"",$.ajax({type:"POST",url:"/users/externalAppData",success:function(a){a=md(a);if(!(a.length<1)&&a.appName)it=a.appName,jt=a.useOpenSocialQueryParams,J.set("thirdparty.appNameSet",it)},error:o(),timeout:18E4})):kt=""}}function mt(a){lt();return a&&kt!==""?jt?nt(a):(a=ic(a),kt.search(/\?/)!=-1?kt+"&"+a:kt+"?"+a):kt}
function nt(a){var b=[];F(a,function(a,d){b.push('"'+a+'":"'+d+'"')});return kt.match(/\:\{.*\}/)?kt.replace("}",","+b.join(",")+"}"):kt+":{"+b.join(",")+"}"}function Jp(){lt();return kt!==""};q=Y.prototype;q.nb=function(a){return this.V[a]};function jn(a,b,c){return a.uk(l,!!c)[b]}q.Hg=function(a){for(var b in this.V)if(this.V[b].ra(a)!=l)return this.V[b];return l};q.ra=function(a){if(a==l)return this;if(this.V[a]!=l)return this.V[a];if(this.Ea[a]!=l)return this.Ea[a];if(this.Oa[a]!=l)return this.Oa[a];for(var b in this.V){var c=this.V[b].ra(a);if(c!=l)return c}return l};q.ik=function(a){for(var b=this.uk(),c=0;c<b.length;c++)if(a.call(b[c])=="stop")break};
q.uk=function(a,b){a==l&&(a="Order");var c=[];this.ee(function(){c.push(this)});c.sort(function(c,e){if(b)if(c.Fb()&&!e.Fb())return 1;else if(!c.Fb()&&e.Fb())return-1;return c.q.get(a)-e.q.get(a)});return c};q.ee=function(a){for(var b in this.V)if(a.call(this.V[b])=="stop")break};q.df=function(a){for(var b in this.V)this.V[b].df(a);for(b in this.Oa)a.call(this.Oa[b])};q.qd=function(a){for(var b in this.V)this.V[b].qd(a)};Y.prototype.getPage=Y.prototype.nb;Y.prototype.findObject=Y.prototype.ra;
Y.prototype.findObjectPage=Y.prototype.Hg;Y.prototype.eachPage=Y.prototype.ee;Y.prototype.getOrderedPages=Y.prototype.uk;Y.prototype.eachOrderedPage=Y.prototype.ik;function bk(a){a.ld=[];a.ng=[];a.qg=0;a.sf=[];a.zq=[];setInterval(function(){a.xa()},10)}q=Y.prototype;q.yq=function(a){(!(this.qg<=0)||this.Gq)&&this.zq.push(a)};q.Aa=function(){this.qg++;V("undo","startUndoBatch: "+this.qg)};
function ik(a,b){if(b.Action==yg&&!b.IsUndo&&!b.IsRedo){var c=l;a.sf.length>0?c=a.sf[0]:a.ld.length>0&&(c=a.ld[0][0]);if(c&&c.Action==yg&&b.id==c.id&&b.Key==c.Key){var c=c.Diff,d=b.Diff;if(c.f.length==1&&d.f.length==1&&c.f[0].f=="i"&&d.f[0].f=="i"&&!d.f[0].p[0].match(/\s/)&&d.f[0].p[1]==c.f[0].p[1]+c.f[0].p[0].length){a.sf.length>0?(a.sf[0]=K(a.sf[0]),c=a.sf[0].Diff):(a.ld[0][0]=K(a.ld[0][0]),c=a.ld[0][0].Diff);c.f[0].p[0]+=d.f[0].p[0];c.r[0].p[1]+=d.f[0].p[0].length;return}}}a.sf.unshift(b)}
q.xa=function(){if(this.qg<=1)for(this.sf.length>0&&J.set("document.beforeUndoBatchCommitted");this.zq.length>0;)this.ba(this.zq.shift());this.qg--;this.qg=Math.max(0,this.qg);if(this.qg==0&&this.sf.length>0)this.ld.unshift(this.sf),this.ng=[],this.sf=[],J.set("document.undoBatchCommitted");V("undo","endUndoBatch: "+this.qg)};function mq(a){for(var b=[],c=0;c<2;c++)b=b.concat(a.ld.shift());a.ld.unshift(b)}q.Jr=function(){return this.ld.length>0};q.Ir=function(){return this.ng.length>0};
q.gr=function(){if(this.ld.length!=0){var a=[],b=this;A(this.ld[0],function(c){c=Cg(c);if(c!=l)c.IsUndo=!0,delete c.IsRedo,a.unshift(c),b.ba(c)});this.ld.shift();this.ng.unshift(a)}};q.Bq=function(){if(this.ng.length!=0){var a=[],b=this;A(this.ng[0],function(c){c=Cg(c);if(c!=l)c.IsRedo=!0,delete c.IsUndo,a.unshift(c),b.ba(c)});this.ng.shift();this.ld.unshift(a)}};q.Xl=function(){this.ld=[];this.ng=[]};Y.prototype.startUndoBatch=Y.prototype.Aa;Y.prototype.endUndoBatch=Y.prototype.xa;
Y.prototype.canUndo=Y.prototype.Jr;Y.prototype.canRedo=Y.prototype.Ir;Y.prototype.undo=Y.prototype.gr;Y.prototype.redo=Y.prototype.Bq;Y.prototype.clearUndoHistory=Y.prototype.Xl;Y.prototype.queueAction=Y.prototype.yq;function ot(a){this.Md=[[0,0]];this.content=dd(a,"helvetica")}ot.prototype.rb=function(a){if(a<0)return[0,0];if(a>=this.Md.length)for(var b=this.Md.length;b<=a;b++){var c=this.Md[this.Md.length-1];this.Md.push([c[1]+1,c[1]+1])}return this.Md[a]};function pt(a,b,c,d){a.rb(b);for(var e=b;e<a.Md.length;e++){var f=a.rb(e);a.Md[e]=e==b&&!d?[f[0],f[1]+c]:[f[0]+c,f[1]+c]}}
function qt(a,b){A(b.f,function(b){if(b.f=="i"){var d;for(d=0;a.rb(d)[1]<b.p[1];d++);pt(a,d,b.p[0].length)}else if(b.f=="d"){for(d=0;a.rb(d)[1]<b.p[0];d++);var e=b.p[1]-b.p[0],b=b.p[0];a.rb(d+e+1);b==l&&(b=0);for(var f=a.rb(d-1),g=d;g<a.Md.length;g++)var i=a.rb(g),i=[g==d?i[0]:Math.max(0,i[0]-e,f[1],b),Math.max(0,i[1]-e,f[1],b)],f=a.Md[g]=i}});a.content.ba(b)}
function rt(a,b){b.c=a.rb(b.c)[1];b.a!=l&&(b.a=a.rb(b.a)[1]);A(b.f,function(b){var d=K(b);if(b.f=="i")b.p[1]=a.rb(b.p[1])[1];else if(b.f=="d"||b.f=="s")b.p[1]==l?(b.p[0]>0&&a.rb(b.p[0])[1]==a.rb(b.p[0]-1)[1]&&(b.p[2]={}),b.p[0]=a.rb(b.p[0])[0]):(b.p[0]=a.rb(b.p[0])[1],b.p[1]=a.rb(b.p[1])[0]);if(d.f=="d"){for(var b=d.p[0],d=d.p[1],e=a.rb(b)[1],e=a.rb(d)[0]-e,f=d;f<a.Md.length;f++){var g=a.rb(f);a.Md[f]=[g[0]-e,g[1]-e]}a.Md.splice(b,d-b)}else if(d.f=="i"){b=d.p[1];d=d.p[0].length;a.rb(b+1);pt(a,b+1,
d,!0);for(e=b+1;e<=b+d;e++)f=a.rb(e-1),a.Md.splice(e,0,[f[1]+1,f[1]+1])}});delete b.r;a.content.ba(b)};Y.prototype.merge=function(a,b,c){function d(a){k=K(w);A(a,function(a){A(a,function(a){if(a.Action==yg)a.Diff=Oc(a.Diff),u(a),a.Diff=Oc(a.Diff);else if(a.Action==M&&a.id!=l&&!j(a.id)&&f.ra(a.id)!=l&&(p({id:a.id,Key:a.Key}),a.Property=="TextAreas"))for(var b in a.Value)a.Value[b]&&"Value"in a.Value[b]&&p({id:a.id,Key:b})})})}if(this.Ad){var e=this.fg;this.Pi();this.merge(a,b,c);this.Zn(e)}else{V("merge","Merge started");var f=this;this.jg=!0;setTimeout(function(){f.jg=!1},1);b-=this.ce;c-=this.ce;
for(var g=this.ed.length;g<c;g++)this.ed.push(K(this.Pc[g]));a=md(a);b!=l&&(g=a.length-(b-this.ed.length),g>0&&a.splice(0,g));b=[];for(g=this.ed.length;g<this.Pc.length;g++)b.push(K(this.Pc[g]));var c=K(this.ld),i=K(this.ng);if(this.Km==l)this.Km={};var j=function(a){if(!(a in f.Km)){var b=!1;ek(f,function(c){if(c.Action==xg&&c.id==a)return b=!0,!1});f.Km[a]=b}return f.Km[a]},k={},n=function(a){var b=a.id+"\u00a7"+a.Key;if(!(b in k)){var c=f.ra(a.id);if(c)c=c.fb?c.q.get("TextAreas")[a.Key].Value:
c.q.get(a.Key),k[b]=new ot(c),k[b].id=a.id,k[b].key=a.Key}return k[b]},m=function(a){k[a.id+"\u00a7"+a.Key]=l},p=function(a){k[a.id+"\u00a7"+a.Key]=!1},s=function(a){var b=n(a);b&&qt(b,a.Diff)},u=function(a){var b=n(a);if(!b)return b;rt(b,a.Diff);return b};V("merge","Undoing our changes");for(g=b.length-1;g>=0;g--)gk(this,Cg(b[g]));this.Pc=qc(this.ed);V("merge","Running remote changes");for(g=0;g<a.length;g++){if(a[g].Action==yg)s(a[g]);else if(a[g].Action==M&&(m({id:a[g].id,Key:a[g].Key}),a[g].Property==
"TextAreas"))for(e in a[g].Value)e=="IsFullPropSettings"||a[g].Value[e]==l||a[g].Value[e]&&"Value"in a[g].Value[e]&&m({id:a[g].id,Key:e});this.ba(a[g],!0,!0)}this.ed=qc(this.Pc);V("merge","Running our changes");for(g=0;g<b.length;g++)if(b[g].Action==xg)this.ba(b[g],!0,!0);else if(b[g].Action==zg)this.ba(b[g],!0,!0);else if(b[g].Action==M)if(b[g].id==l)this.ba(b[g],!0,!0);else if(j(b[g].id))this.V[b[g].id]!=l&&this.ba(b[g],!0,!0);else{if(this.ra(b[g].id)!=l){p({id:b[g].id,Key:b[g].Key});if(b[g].Property==
"TextAreas")for(e in b[g].Value)b[g].Value[e]&&"Value"in b[g].Value[e]&&p({id:b[g].id,Key:e});this.ba(b[g],!0,!0)}}else b[g].Action==yg?(a=this.ra(b[g].id),a!=l&&u(b[g])!=l&&this.ba(b[g],!0,!0)):b[g].Action=="RemovePage"?this.V[b[g].id]!=l&&this.ba(b[g],!0,!0):b[g].Action=="mtp"?this.V[b[g].Page]==l||this.V[b[g].OldPage]==l||this.ba(b[g],!0,!0):b[g].Action=="CreateBlock"?this.V[b[g].Page]!=l&&this.ba(b[g],!0,!0):b[g].Action=="RemoveBlock"?this.Hg(b[g].id)!=l&&this.ra(b[g].id)!=l&&this.ba(b[g],!0,
!0):b[g].Action=="CrGr"?this.V[b[g].Page]!=l&&this.ba(b[g],!0,!0):b[g].Action=="RmGr"?this.Hg(b[g].id)!=l&&this.ra(b[g].id)!=l&&this.ba(b[g],!0,!0):b[g].Action=="RemoveLine"?this.Hg(b[g].id)!=l&&this.ra(b[g].id)!=l&&this.ba(b[g],!0,!0):b[g].Action=="CreateLine"&&this.V[b[g].Page]!=l&&this.ba(b[g],!0,!0);V("merge","Merging carets");for(e in k)k[e]&&(a=f.ra(k[e].id),$(document).trigger("caret.merge",[a,k[e]]));V("merge","Merging undo/redo histories");var w=k;d(c);d(i);this.ld=c;this.ng=i;this.jg=!1;
V("merge","Merge complete")}};function st(a){var b=[];ek(a,function(a){if(a.Action==zg)a=K(a),a.Code="";b.push(a)},jk(a));return nd(b)}function tt(a){var b=[];ut(a.Ol,a.Lg(),function(a){b.push(a)});return b}
function ut(a,b,c){function d(a,b,d){var d=d||{},e={},f;for(f in a)e[f]=!0;for(;!lc(e);)for(var g in a)if(!(g in d)){f=a[g];la(f.Members)&&(f.Members={});var i;a:{i=h;for(i in f.Members)if(i in e){i=!0;break a}i=!1}i||(delete e[g],d[g]=!0,c(new N("CrGr",{id:g,Page:b,Properties:f})))}}function e(a,b,d){for(var e in a)d&&(d[e]=!0),c(new N("CreateBlock",{id:e,Page:b,Class:a[e].Class,Properties:a[e].Properties}))}if(!la(a))for(var f in a)c(new N(zg,{URL:f})),a[f]||c(new N(Bg,{URL:f}));b.Blocks&&!la(b.Blocks)&&
e(b.Blocks,l);b.Groups&&!la(b.Groups)&&d(b.Groups,l);for(var g in b.Pages){c(new N(xg,{id:g}));for(var i in b.Pages[g].Properties)c(new N(M,{id:g,Property:i,Value:b.Pages[g].Properties[i]}));a={};la(b.Pages[g].Blocks)||e(b.Pages[g].Blocks,g,a);if(!la(b.Pages[g].Lines))for(var j in b.Pages[g].Lines){f=b.Pages[g].Lines[j];if("Points"in f){var k=f.Points;if(!la(k))for(var n=k.split(","),k=[],m=0;m<n.length;m+=2)k.push(new G(parseFloat(n[m]),parseFloat(n[m+1])));f.XPlanes||(f.XPlanes=[]);f.YPlanes||(f.YPlanes=
[]);for(var n=(k[0].x+k[k.length-1].x)/2,p=(k[0].y+k[k.length-1].y)/2,m=1;m<k.length-2;m++)k[m].x==k[m+1].x&&k[m].y==k[m+1].y||(k[m].x==k[m+1].x&&k[m].x!=n&&f.XPlanes.push(k[m].x),k[m].y==k[m+1].y&&k[m].y!=p&&f.YPlanes.push(k[m].y));delete f.Points}a[j]=!0;c(new N("CreateLine",{id:j,Page:g,Properties:f}))}la(b.Pages[g].Groups)||d(b.Pages[g].Groups,g,a)}for(i in b.Properties)c(new N(M,{id:l,Property:i,Value:b.Properties[i]}))}
Y.prototype.ag=function(a,b,c,d,e,f,g,i,j){var k=this;lk(this,e);this.Sc=f;this.Xr=g;var n=l;if(b){var n=md(b),m;for(m in n.Pages){if(n.Pages[m].Properties==l)return this.ag(a,l,c,d,e,f,g,i,j);if(!la(n.Pages[m].Blocks))for(var p in n.Pages[m].Blocks)if(n.Pages[m].Blocks[p]==l)return this.ag(a,l,c,d,e,f,g,i,j);if(!la(n.Pages[m].Lines))for(var s in n.Pages[m].Lines)if(n.Pages[m].Lines[s]==l)return this.ag(a,l,c,d,e,f,g,i,j)}}n?(this.Pc=[],this.ed=[],this.ce=parseInt(d,10),this.fj=!0,ut(a,n,function(a){gk(k,
a)}),j&&j(),$(document).triggerHandler("documentLoaded"),J.set("document.loaded",this)):(this.Vs=!0,this.Pc=[],this.ed=[],this.ce=0,c(function(a){A(a,function(a){a=md(a.changes);A(a,function(a){try{gk(k,a),k.Pc.push(a),k.ed.push(a)}catch(b){}})});setTimeout(function(){k.Xl();k.Vs=!1;j&&j();$(document).triggerHandler("documentLoaded");J.set("document.loaded",k)},100)}))};function vt(a,b,c,d){this.id=a;this.name=b;this.Dh=c;this.count=parseInt(d,10)}
function lp(a,b){function c(c,d,g){b.summary[c]||(b.summary[c]={id:c,Title:c=="Document"?"Document":wt(a,c,b.start+b.count),Actions:{},Items:{}});b.summary[c].Actions[d]=!0;g!=l&&(b.summary[c].Items[g]=!0)}if(a.Cn==l)a.Cn={};var d=nd(b);if(d in a.Cn)return b.summary=a.Cn[d],b.summary;b.summary={};ek(a,function(d){switch(d.Action){case "CreatePage":c(d.id,"create",l);d=d.id;b.summary[d].Actions["delete"]!=l&&delete b.summary[d].Actions["delete"];break;case "RemovePage":c(d.id,"delete",l);break;case "CreateBlock":case "RemoveBlock":case "RemoveLine":case "CreateLine":c(a.$h[d.id],
"edit",d.id);break;case "SetProperty":var f=a.$h[d.id];f!=l?c(f,"edit",d.id):c("Document","edit",l)}},b.start,b.start+b.count);return a.Cn[d]=b.summary}function xt(a,b){V("history","Logging: "+nd(b));for(var c=a.jc.length,d=0;d<c;d++)if(a.jc[d].id==b.id)return;b.start=c>0?a.jc[c-1].start+a.jc[c-1].count:0;a.jc.push(b);V("history","Logged: "+nd(b));$(document).triggerHandler("documentAddSaveHistory")}
function mp(a){for(var b=[],c=0;c<a.jc.length;c++)if(c==0)b.push(K(a.jc[c]));else{var d;if(!(d=a.jc[c-1].name!=a.jc[c].name)){d=a.jc[c].Dh;var e=Zj(a.jc[c-1].Dh);d=(Zj(d).getTime()-e.getTime())/1E3>=120}d?b.push(K(a.jc[c])):(d=b[b.length-1],d.Dh=a.jc[c].Dh,d.count+=a.jc[c].count)}return b}
function wt(a,b,c){if(a.jn==l)a.jn={};var d=b+","+c;if(d in a.jn)return a.jn[d];if(a.oj==l)a.oj=[],ek(a,function(b){b.Action=="CreatePage"||b.Action=="SetProperty"&&b.Property=="Title"?a.oj.push(b):a.oj.push(l)}),$(document).bind("documentPostAction",function(b,c){c.Action=="CreatePage"||c.Action=="SetProperty"&&c.Property=="Title"?a.oj.push(c):a.oj.push(l)});var e=l;for(c-=1;c>=0;c--){var f=a.oj[c];if(f&&f.Action=="CreatePage"&&f.id==b){e=f.Properties.Title;break}if(f&&f.Action=="SetProperty"&&f.Property==
"Title"&&f.id==b){e=f.Value;break}}return a.jn[d]=e}
Y.prototype.Zn=function(a){var b=this;if(this.Ad){var c=this.fg;this.fg=a;if(this.fg<c){var d=[];ek(this,function(a){d.unshift(a);return!0},a,c);A(d,function(a){b.ii.push(a);gk(b,Cg(a))})}else if(this.fg>c){a=this.fg-c;for(c=0;c<a;c++)gk(this,this.ii[this.ii.length-1-c]);this.ii.splice(this.ii.length-a,a)}}else this.Ad=!0,this.fg=a,d=[],ek(this,function(a){d.unshift(a)},a),this.ii=[],A(d,function(a){b.ii.push(a);gk(b,Cg(a))});$(document).triggerHandler("viewingHistory",[this.Ad])};
Y.prototype.Pi=function(){if(this.Ad)this.Zn(this.gf()),this.Ad=!1,$(document).triggerHandler("viewingHistory",[this.Ad])};Y.prototype.Xt=function(){if(this.Ad){var a=this.fg;this.Pi();this.Aa();for(var b=this.gf()-1;b>=a;b--)this.ba(Cg(this.Hs(b)),!1,!0);this.xa()}};Y.prototype.viewRevision=Y.prototype.Zn;Y.prototype.exitHistoryView=Y.prototype.Pi;Y.prototype.revertToHistoryVersion=Y.prototype.Xt;Y.prototype.yc=function(a,b){var c=this,d=0,e={};this.ik(function(){this.Fb()||d++;if(a==l||a==this)if(e[this.id]=this.yc(b),e[this.id].PageNumber=this.Fb()?0:d,a&&sj(a,!0)){var f=sj(a),g=c.yc(f);e[this.id].MasterItems=g[f.id].Items}});for(var f in e)e[f].PageTotal=d;var g=l;J.set("bodyText.pdfData",function(a){g=a});g&&(e.__body__=g);return e};
Y.prototype.Lg=function(a){var b={Properties:!a||a.doc?this.q.Nb():l,Pages:{},Groups:{},Blocks:{}};F(this.Ea,function(c,d){b.Groups[c]=!a||a[c]?d.q.Nb():l});F(this.Oa,function(c,d){b.Blocks[c]=!a||a[c]?{Class:d.className,Properties:d.q.Nb()}:l});this.ik(function(){b.Pages[this.id]={Properties:!a||a[this.id]?this.q.Nb():l,Groups:{},Blocks:{},Lines:{}};var c=b.Pages[this.id];this.Af(function(){c.Groups[this.id]=!a||a[this.id]?this.q.Nb():l});this.df(function(){c.Blocks[this.id]=!a||a[this.id]?{Class:this.className,
Properties:this.q.Nb()}:l});this.qd(function(){!a||a[this.id]?(c.Lines[this.id]=this.q.Nb(),"Points"in c.Lines[this.id]&&delete c.Lines[this.id].Points):c.Lines[this.id]=l})});return b};Y.prototype.getPDFData=Y.prototype.yc;Y.prototype.getStateData=Y.prototype.Lg;t("lucid.buildVersion","20120203004948");function yt(a){var b=this;Vs.call(this,l,!1);this.db=De(a);this.imageManager=this.Ck=Ka||new Jh(this.db);this.ci={};this.Ob={};J("client.loadPlugin",function(a){b.Gf(a[0],a[1],a[2])});this.Gf("/js/plugins/v2/default.js","Default","Default Tool Set");this.Gf("/js/plugins/v2/imagesearch.js","Image Search","Default Image Search")}Ca(yt,Vs);yt.prototype.Hk=fa(!1);yt.prototype.yi=function(a,b){this.ci[a]=b};
yt.prototype.Gf=function(a,b,c,d){function e(e){f.yi(a,e);f.Ob[a]=new $s(f,a,b,c,e);d&&d()}if(this.Ob[a])d&&d();else{var f=this;this.ci[a]?e(this.ci[a]):$.ajax({async:!1,cache:!0,url:a,dataType:"text",success:e})}};t("lucid.StubClient",yt);yt.prototype.loadPlugin=yt.prototype.Gf;yt.prototype.cachePlugin=yt.prototype.yi;function zt(a){this.wl=l;this.status=a?a:l;this.Pl=1}zt.prototype.go=function(a){if(this.wl!=l)clearTimeout(this.wl),this.wl=l,a()};function At(a,b,c){a.wl=setTimeout(function(){a.wl=l;b()},c)};function Bt(a,b){this.Sc=bt.val("event_client")||l;this.md=a;this.uf=!1;this.Cs=!0;this.Wa={be:o(),fz:o(),dp:o()};$.extend(this.Wa,b);this.Sb={};this.Ih=l;this.Bf=!1;var c=this;$(document).ajaxSuccess(function(){c.uf||c.Bf&&c.Yf()});setInterval(function(){(c.rg()||c.$d&&c.sg)&&el(c.$d)},100);$(document).ajaxError(function(){c.sg=!1});$(document).ajaxSuccess(function(){c.sg=!0})}q=Bt.prototype;q.sh=function(){$(document).trigger("query.status.update",[this.status()])};
q.connected=function(){return this.Sc!=l&&this.Ih==l};q.Os=function(){return this.Sc!=l};q.status=function(){var a=l;F(this.Sb,function(b,c){if(c.status)return a=c.status,!1});return a};q.rg=function(){var a=this.Sb["Connecting to document update server"];return a!=l&&a.Pl==1};q.Fg=function(){if(!this.$d)this.$d=!0,this.sg=this.sg||this.rg()};q.Ze=function(){if(this.$d)this.sg=this.$d=!1};
q.Yf=function(){function a(){if(!b.uf){if(b.$d&&(c++,c%14400)){setTimeout(a,250);return}if(b.Cs&&b.Sc!=l)try{b.Wa.be("refresh"),b.Wa.dp("refresh")}catch(d){}else Kd(function(){b.hi("Connecting to document update server",l,"POST","/events/listen/"+(b.Sc?encodeURIComponent(b.Sc):""),"NoSSLChange=true&docs="+b.md,function(c){if(!b.uf){try{var d=gc(c)}catch(g){return!1}b.Sc=d.id;if(d.data.docs)try{(!la(d.data.docs)||d.data.docs.length>0)&&b.Wa.be(d.data.docs),la(d.data.templates),(!la(d.data.folders)||
d.data.folders.length>0)&&b.Wa.dp(d.data.folders)}catch(i){}a()}},l,l,55E3)});b.Cs=!1}}this.Bf=!0;if(!this.rg()){var b=this,c=0;a()}};
q.hi=function(a,b,c,d,e,f,g,i,j){function k(){function b(){m.Ih=d;n++;m.Sb[a].Pl=n;var c=5;n>3&&(c=30);var e=!0;try{e=g(c,n)}catch(f){}e==!1?(delete m.Sb[a],m.sh(),i(n-1)):At(m.Sb[a],k,c*1E3)}$.ajax({type:c,url:d,data:e,timeout:j,success:function(c){var d=m.Sb[a];m.Ih=l;delete m.Sb[a];m.sh();f(c)==!1&&(m.Sb[a]=d,b())},error:b})}if(this.uf)return!0;a==l&&(a=Math.floor(Math.random()*1E8)+"_"+Math.floor(Math.random()*1E8)+"_"+Math.floor(Math.random()*1E8));var n=1,m=this;j==l&&(j=1E4+(e!=l?e.length:
0));f==l&&(f=o());g==l&&(g=fa(!0));i==l&&(i=o());if(this.Sb[a]!=l)return this.Sb[a].go(k),!1;this.Sb[a]=new zt(b);k();this.sh();return!0};function Ct(a,b,c){var d=this;this.md=b;this.Va=c;this.Fa=[];this.db=a;$(document).bind("offlineRefreshAll",function(){d.refresh()});$(document).bind("lucid.storage.FolderList.change",function(){A(d.Fa,function(a){a()})});a.mh||setTimeout(function(){$(document).triggerHandler("lucid.storage.FolderList.change")},100)}Ct.prototype.change=function(a){this.Fa.push(a)};Ct.prototype.tk=function(a){return this.db.tk(a)};
Ct.prototype.refresh=function(a,b){function c(){d.Va.hi(l,"listFolders","POST","/folderEntries/listFolders/"+(d.md?d.md:""),e,function(a){try{a=gc(a)}catch(c){return}d.db.vq(a,!0,b);$(document).trigger("lucid.storage.FolderList.change")},function(a,b){return b<10},l,9E4)}var d=this,e="",e=[];la(a)?(A(a,function(a){e.push(encodeURIComponent("folder_entry_id[]")+"="+encodeURIComponent(a))}),e=e.join("&"),c()):d.db.tk(function(a){A(a,function(a){e.push(encodeURIComponent("skip_folder_entry_id[]")+"="+
encodeURIComponent(a.FolderEntry.id))});e=e.join("&");c()})};function Dt(a,b,c){var d=this;this.md=b;this.Va=c;this.Fa=[];this.db=a;$(document).bind("offlineRefreshAll",function(){d.refresh()});$(document).bind("lucid.storage.DocumentList.change",function(){A(d.Fa,function(a){a()})});a.mh||setTimeout(function(){$(document).triggerHandler("lucid.storage.DocumentList.change")},100)}Dt.prototype.change=function(a){this.Fa.push(a)};Dt.prototype.sk=function(a,b){return this.db.sk(a,b)};
Dt.prototype.refresh=function(a,b){function c(c){var g="/documents/listDocs";g+=d.db.mh?"/0/0":"/1/0";d.Va.hi(l,"listDocs","POST",g,e,function(e){try{e=gc(e)}catch(g){return}d.db.vn(e,!la(a),c,b);la(a)&&A(a,function(a){var b=!1;A(e,function(c){if(c.Document.id==a)return b=!0,!1});b||d.db.Mo(a)});$(document).trigger("lucid.storage.DocumentList.change")},function(a,b){return b<10},l,9E4)}var d=this,e=this.md?"user_id="+this.md:"",e=[];bt.val("user_id")&&e.push("user_id="+encodeURIComponent(bt.val("user_id")));
la(a)?(A(a,function(a){e.push(encodeURIComponent("document_id[]")+"="+encodeURIComponent(a))}),e=e.join("&"),c([])):d.db.Lp(function(a){var b=[];F(a,function(a,c){b.push(a);e.push(encodeURIComponent("action_history_length["+a+"]")+"="+encodeURIComponent(c))});e=e.join("&");c(b)})};function Et(a){Ft.push(a)}var Ft=[];window.onbeforeunload=function(a){if(!a)a=window.event;var b=l;A(Ft,function(a){(a=a())&&(b=a)});if(b!=l)return a.returnValue=b};function Gt(a){Ht.push(a)}var Ht=[];window.onunload=function(){A(Ht,function(a){a()})};function It(a,b){var c=this;this.md=a;var d=[],e=new dn(function(){c.os.refresh(d,function(){Jt();d=l})},5E3);$(document).bind("keydown mousemove mousedown",function(){Jt("userActive");c.Va.Ze()});$(window).focus(function(){Jt("userActive");c.Va.Ze()});Jt("userActive");var f=!1;this.Va=new Bt(this.md,{be:function(a){d==l||a=="refresh"||a.length==0?d=l:(d=[],A(a,function(a){nc(d,a)||d.push(a)}));f?d!=l?c.os.sk(d,function(a){var b=!1;F(a,function(a,c){c==l&&(b=!0)});b?e.queue(1):e.queue()}):e.queue():
(e.queue(1),f=!0)},dp:function(a){c.Sv.refresh(a=="refresh"?l:a,function(){Jt()})}});this.Bf=!1;this.$=new yt(this.md);this.db=this.$.db;this.os=new Dt(this.db,this.md,this.Va);this.Sv=new Ct(this.db,this.md,this.Va);this.jg={};if(this.db.mh)this.hf=b;else{var g=new kd("SuperSyncer",15);this.hf=ld(g,c.hf);setInterval(function(){c.hf=ld(g,c.hf)},1E3);Gt(function(){c.hf&&g.pc()})}$(document).bind("lucid.storage.DocumentList.change",function(){c.hf&&Jt("lucid.storage.DocumentList.change")});$(document).bind("lucid.storage.FolderList.change",
function(){c.hf&&Jt("lucid.storage.FolderList.change")});var i=0,j=0;setInterval(function(){!c.hf&&i<Kt("lucid.storage.FolderList.change")&&($(document).triggerHandler("lucid.storage.FolderList.change"),i=Kt("lucid.storage.FolderList.change"));!c.hf&&j<Kt("lucid.storage.DocumentList.change")&&($(document).triggerHandler("lucid.storage.DocumentList.change"),j=Kt("lucid.storage.DocumentList.change"))},500);$(document).bind("connected enterOnline",function(){setTimeout(function(){c.start()},5E3)});setInterval(function(){c.start()},
1E4);c.start()}q=It.prototype;q.Vm=function(a){return"length:"+vq(a).length};q.start=function(){var a=this;if(this.hf){if(!this.Bf)this.Bf=!0,a.Va.Yf();Lt()>30&&a.Va.Fg();if(this.Va.rg())this.dk={},this.vt=[],this.db.tm(l,function(b){A(b,function(b){if(a.db.Sn(b))if(b.changes.length==0)a.db.Eh(b);else{var d=b.document_id;d?(a.dk[d]||(a.dk[d]=[]),a.dk[d].push(b)):a.vt.push(b)}});F(a.dk,function(b){a.Zb(b)});A(a.vt,function(b){Mt(a,b)})})}};
q.Zb=function(a){function b(a){var b=a.plugins;la(b)&&(b={});b["/js/plugins/v2/default.js"]=!0;A(a.Change,function(a){A(gc(a.changes),function(a){a.Action==zg?b[a.URL]=!0:a.Action==Bg&&(b[a.URL]=!1)})});a.Cd=[];c.createDocument(a,b)}var c=this,a="document_id="+a;a+=c.md?"&user_id="+c.md:"";$.ajax({type:"POST",url:"/documents/listDocs/1/1",data:a,success:function(a){a=md(a);a.length<1||b(a[0])},error:o(),timeout:18E4})};
q.createDocument=function(a,b){var c=this,d=new Y(l);d.ag(b,a.Document.state,function(b){b(a.Change)},a.Document.action_history_length,a.Document.id,a.Document.next_connection_id,a.Document.creator_id,o(),function(){Nt(c,d)});d.Ap=!0};function Mt(a,b){var c=new Y(l);c.Ap=!0;A(b.changes,function(a){c.ba(a)});b.visio&&pk(c);Ot(a,c,function(){a.db.Eh(b)})}function Nt(a,b){var c=a.dk[b.id];if(c){var d=0;A(c,function(c){setTimeout(function(){Pt(a,b,c)},d*500);d++})}}
function Pt(a,b,c){a.jg[b.id]&&setTimeout(function(){Pt(a,b,c)},500);a.jg[b.id]=!0;var d=jk(b);if(!(c.base>d)){var e=[];ek(b,function(a){e.push(a)},c.base);for(var f=e.length-1;f>=0;f--)gk(b,Cg(e[f]));A(c.changes,function(a){b.ba(a)});b.merge(nd(e),d+c.changes.length,d);Ot(a,b,function(){a.db.Eh(c);a.jg[b.id]=!1})}}q.Xm=function(a,b){a.merge(b.vh,b.Il,b.Jj)};
function Ot(a,b,c){a.Jd=!0;if(a.Va.rg()){try{var d=b.gf(),e=st(b),f,g;b.fj?(g=nd(b.yc(l,hk(b))),f=nd(b.Lg(hk(b)))):(g=nd(b.yc()),f=nd(b.Lg()));if(g.length==2){alert("FAIL! Empty state.");return}var i="data[Change][0][md5]="+encodeURIComponent(a.Vm(e))+"&data[Document][title]="+encodeURIComponent(b.q.get("Title"))+"&data[Change][0][version]=2&data[Change][0][user_agent]="+encodeURIComponent(navigator.userAgent)+"&data[Document][pdfdata]="+encodeURIComponent(g)+"&data[Document][state]="+encodeURIComponent(f)+
"&data[Change][0][changes]="+encodeURIComponent(e)+"&data[LoadedActionHistoryLength]="+encodeURIComponent(String(jk(b))),e=g=f=l;if(b.attributes)for(var j in b.attributes)b.attributes.hasOwnProperty(j)&&(i+="&data[DocumentAttribute]["+j+"][name]="+encodeURIComponent(b.attributes[j].name),i+="&data[DocumentAttribute]["+j+"][value]="+encodeURIComponent(b.attributes[j].value));b.id!=l&&(i="data[Document][id]="+encodeURIComponent(b.id)+"&"+i);var k=0}catch(n){setTimeout(function(){a.Jd=!1},5E3);return}$.ajax({type:"POST",
url:"/documents/save/"+(a.Va?a.Va.Sc:""),data:i,timeout:Math.max(2E4,i.length),success:function(e){try{var f=gc(e);if(f.success)b.fj=!0,mk(b,d),c();else if(f.update)a.Xm(b,{Jj:f.savedActionHistoryLength,vh:f.update,Il:f.actionHistoryLength}),Ot(a,b,c);else if(f.code!=1)f.code==2?k=5E3:f.code==3?k=5E3:f.code==4?k=15E3:f.code==5?(L(S("alert.document.deleted")),k=15E3,a.Qa="viewer",J.set("client.roleChanged",a.Qa)):Ot(a,b,c)}catch(g){setTimeout(function(){a.Jd=!1},5E3)}},error:function(){try{Ot(a,b,
c)}catch(d){setTimeout(function(){a.Jd=!1},5E3)}},complete:function(){b.id!=l&&k>0?setTimeout(function(){a.Jd=!1},k):a.Jd=!1},status:"Saving"})}else setTimeout(function(){Ot(a,b,c)},500)}function Jt(a){window.localStorage[a||"dataUpdated"]=String((new Date).getTime())}function Kt(a){return(a=window.localStorage[a||"dataUpdated"])?parseInt(a,10):0}function Lt(){var a=window.localStorage.userActive;if(a)return((new Date).getTime()-parseInt(a,10))/1E3;Jt("userActive");return 0};function Qt(a,b){this.Sc=l;this.document=a;this.uf=!1;this.Wa={clipboardData:o(),If:o(),et:o(),Du:o(),Nq:o(),vj:o(),hu:o(),vh:o()};$.extend(this.Wa,b);this.Sb={};this.Ih=l;this.tr=[];this.at=0;Rt(this,a?a.id:l);this.Bf=!1;var c=this;$(document).ajaxSuccess(function(){c.uf||c.Bf&&c.Yf()});setInterval(function(){(c.rg()||c.$d&&c.sg)&&el(c.$d)},50);$(document).ajaxError(function(){c.sg=!1});$(document).ajaxSuccess(function(){c.sg=!0})}q=Qt.prototype;
q.sh=function(){$(document).trigger("query.status.update",[this.status()])};q.connected=function(){return this.Sc!=l&&this.Ih==l};q.Os=function(){return this.Sc!=l};q.status=function(){var a=l;F(this.Sb,function(b,c){if(c.status)return a=c.status,!1});return a};q.rg=function(){var a=this.Sb["Connecting to document update server"];return a!=l&&a.Pl==1};q.Fg=function(){if(!this.$d)this.$d=!0,this.sg=this.rg()};q.Ze=function(){if(this.$d)this.$d=!1};
q.Yf=function(){function a(){if(!b.uf){if(b.$d&&(c++,c%14400)){setTimeout(a,250);return}var d="/chats/get/"+b.Sc;d+=b.document.id!=l?"/"+encodeURIComponent(jk(b.document))+"/"+encodeURIComponent(b.at):"/NULL/NULL";var e=b.tr;b.tr=[];b.hi("Connecting to document update server",l,"POST",d,"NoSSLChange=true&Now="+encodeURIComponent((new Date).toUTCString())+"&Actions="+encodeURIComponent(nd(e)),function(c){if(!b.uf)if(c=="")b.Sc=l,b.Bf=!1,Rt(b,b.document.id),b.Yf();else{try{var d=gc(c)}catch(e){return!1}b.document.id==
l&&lk(b.document,d.document_id);if(d.clipboard!=l)try{b.Wa.clipboardData(gc(d.clipboard))}catch(j){}if(d.preferences!=l)try{b.Wa.If(d.preferences)}catch(k){}if(d.level!=l)try{b.Wa.et(d.level)}catch(n){}if(d.trial!=l)try{b.Wa.Du(d.trial)}catch(m){}if(d.last_id!=l)b.at=d.last_id;if(d.messages!=l||d.viewers!=l||d.invitations!=l||d.role!=l)try{b.Wa.Nq({nf:d.messages,tf:d.viewers,Qh:d.invitations,Qa:d.role})}catch(p){}if(d.published!=l||d.public_segments!=l)try{b.Wa.vj({uq:d.published,cl:d.public_segments})}catch(s){}if(d.shared!=
l)try{b.Wa.hu(d.shared)}catch(u){}if(d.actionHistoryLength>jk(b.document))try{b.Wa.vh({vh:d.changes,wg:d.saveHistory,Il:d.actionHistoryLength,Jj:d.savedActionHistoryLength})}catch(w){}a()}},l,l,55E3)}}this.Bf=!0;if(!this.rg()){var b=this;if(this.Sc==l)setTimeout(function(){b.Yf()},1E3);else{var c=0;Kd(a)}}};
q.hi=function(a,b,c,d,e,f,g,i,j){function k(){function b(){m.Ih=d;n++;m.Sb[a].Pl=n;var c=5;n>3&&(c=30);var e=!0;try{e=g(c,n)}catch(f){}e==!1?(delete m.Sb[a],m.sh(),i(n-1)):At(m.Sb[a],k,c*1E3)}$.ajax({type:c,url:d,data:e,timeout:j,success:function(c){var d=m.Sb[a];m.Ih=l;delete m.Sb[a];m.sh();f(c)==!1&&(m.Sb[a]=d,b())},error:b})}if(this.uf)return!0;a==l&&(a=Math.floor(Math.random()*1E8)+"_"+Math.floor(Math.random()*1E8)+"_"+Math.floor(Math.random()*1E8));var n=1,m=this;j==l&&(j=1E4+(e!=l?e.length:
0));f==l&&(f=o());g==l&&(g=fa(!0));i==l&&(i=o());if(this.Sb[a]!=l)return this.Sb[a].go(k),!1;this.Sb[a]=new zt(b);k();this.sh();return!0};function Rt(a,b){var c="/connections/create";b!=l&&(c+="/"+b);a.hi("Making initial connection to the server",l,"GET",c,l,function(b){a.Sc=b})};function St(){var a=this,b=y({title:"Document Language",children:[{R:"p",text:"Select a language to use for spell-checking this document."},this.options()]});this.dialog=new se(b,{modal:!0,$c:!0,hb:[{label:S("Save"),action:function(){a.done($("#language_dialog_select").val());a.close()}}]})}
St.prototype.options=function(){var a={R:"select",id:"language_dialog_select",children:[{R:"option",value:"af",text:"Afrikaans"},{R:"option",value:"am",text:"Amharic"},{R:"option",value:"ar",text:"Arabic"},{R:"option",value:"bg",text:"Bulgarian"},{R:"option",value:"bn",text:"Bengali"},{R:"option",value:"br",text:"Breton"},{R:"option",value:"ca",text:"Catalan"},{R:"option",value:"cs",text:"Czech"},{R:"option",value:"cy",text:"Welsh"},{R:"option",value:"da",text:"Danish"},{R:"option",value:"de",text:"German"},
{R:"option",value:"el",text:"Greek"},{R:"option",value:"en",text:"English"},{R:"option",value:"eo",text:"Esperanto"},{R:"option",value:"es",text:"Spanish"},{R:"option",value:"et",text:"Estonian"},{R:"option",value:"eu-es",text:"Basque (Euskera)"},{R:"option",value:"fa",text:"Persian"},{R:"option",value:"fi",text:"Finnish"},{R:"option",value:"fo",text:"Faroese"},{R:"option",value:"fr",text:"French"},{R:"option",value:"ga",text:"Irish (Gaeilge)"},{R:"option",value:"gl-minimos",text:"Galician (minimos)"},
{R:"option",value:"gu",text:"Gujarati"},{R:"option",value:"hi",text:"Hindi"},{R:"option",value:"hr",text:"Croatian"},{R:"option",value:"hsb",text:"Upper Sorbian"},{R:"option",value:"hu",text:"Hungarian"},{R:"option",value:"hy",text:"Armenian"},{R:"option",value:"is",text:"Icelandic"},{R:"option",value:"it",text:"Italian"},{R:"option",value:"ku",text:"Kurdish"},{R:"option",value:"lt",text:"Lithuanian"},{R:"option",value:"lv",text:"Latvian"},{R:"option",value:"ml",text:"Malayalam"},{R:"option",value:"mr",
text:"Marathi"},{R:"option",value:"nl",text:"Dutch"},{R:"option",value:"no",text:"Norwegian"},{R:"option",value:"nr",text:"Ndebele"},{R:"option",value:"ns",text:"Northern Sotho"},{R:"option",value:"or",text:"Oriya"},{R:"option",value:"pa",text:"Punjabi"},{R:"option",value:"pl",text:"Polish"},{R:"option",value:"pt-br",text:"Portuguese (Brazil)"},{R:"option",value:"pt-pt",text:"Portuguese (Europe)"},{R:"option",value:"ro",text:"Romanian"},{R:"option",value:"ru",text:"Russian"},{R:"option",value:"sk",
text:"Slovak"},{R:"option",value:"sl",text:"Slovenian"},{R:"option",value:"ss",text:"Swazi"},{R:"option",value:"st",text:"Southern Sotho"},{R:"option",value:"sv",text:"Swedish"},{R:"option",value:"ta",text:"Tamil"},{R:"option",value:"te",text:"Teluga"},{R:"option",value:"tl",text:"Tagalog"},{R:"option",value:"tn",text:"Tswana"},{R:"option",value:"ts",text:"Tsonga"},{R:"option",value:"uk",text:"Ukrainian"},{R:"option",value:"uz",text:"Uzbek"},{R:"option",value:"xh",text:"Xhosa"},{R:"option",value:"zu",
text:"Zulu"}]};a.children.sort(function(a,c){return a.text<c.text?-1:a.text>c.text?1:0});a.children.unshift({R:"option",value:"none",text:"No spell checking"});return a};St.prototype.show=function(a,b){$("#language_dialog_select").val(a);this.done=b;this.dialog.open()};St.prototype.close=function(){this.done=l;this.dialog.close()};function Tt(){this.fu("-30 day","now");this.El=[]}q=Tt.prototype;q.gw=function(a,b){b==l&&(b=RegExp("^"+a));this.El.push({url:a,filter:b})};q.bp=function(a){for(var b=0;b<this.El.length;b++)if(a.match(this.El[b].filter))return this.El[b].url;return a};q.connect=o();q.ks=o();q.connected=fa(!1);q.op=function(a,b,c){c([])};q.Is=function(a){a({})};q.fu=function(a,b){this.qu=$j(ak(a));this.us=$j(ak(b))};
q.cw=function(a,b,c){function d(b){f++;e.op(a,b,function(a){f--;i[b]=a;A(a,function(a){g[a.gp]||(d(a.gp),g[a.gp]=!0)});f==0&&c(i)})}var e=this,f=0,g={"(entrance)":!0},i={};d(b)};t("lucid.analytics.DataStore",Tt);Tt.prototype.getUrlSourceTree=Tt.prototype.cw;Tt.prototype.setDateInterval=Tt.prototype.fu;Tt.prototype.finalizeUrl=Tt.prototype.bp;Tt.prototype.groupUrls=Tt.prototype.gw;function Ut(a){Tt.call(this);var b=this;this.scope="https://www.google.com/analytics/feeds";window.google.load("gdata","2.x",{packages:["analytics"],callback:function(){b.Lq=new window.google.gdata.analytics.AnalyticsService("gaExportAPI_acctSample_v2.0");a()}});this.tv=(new Date).getTime()}Ca(Ut,Tt);q=Ut.prototype;q.connect=function(a){this.connected()?a():setTimeout(function(){window.google.accounts.user.login(this.scope);a()},Math.max(0,3E3-((new Date).getTime()-this.tv)))};q.connected=function(){return!!window.google.accounts.user.checkLogin(this.scope)};
q.ks=function(a){this.connected()&&(window.google.accounts.user.logout(),a())};
q.op=function(a,b,c){la(b)||(b=[b]);for(var d=0;d<b.length;d++)b[d]="ga:pagePath"+a+encodeURIComponent(b[d]);this.Lq.getDataFeed("https://www.google.com/analytics/feeds/data?start-date="+encodeURIComponent(this.qu)+"&end-date="+encodeURIComponent(this.us)+"&dimensions=ga:previousPagePath&metrics=ga:uniquePageviews&sort=-ga:uniquePageviews&max-results=1000&filters="+(""+b.join(","))+"&ids="+encodeURIComponent(this.profile),function(a){var b=[];A(a.feed.getEntries(),function(a){b.push({gp:a.getValueOf("ga:previousPagePath"),
count:a.getValueOf("ga:uniquePageviews")})});c(b)},function(a){alert(a)})};
q.Is=function(a){var b=this,c="https://www.google.com/analytics/feeds/data?start-date="+encodeURIComponent(this.qu)+"&end-date="+encodeURIComponent(this.us)+"&dimensions=ga:previousPagePath,ga:pagePath&metrics=ga:uniquePageviews&sort=-ga:uniquePageviews&max-results=1000&ids="+encodeURIComponent(this.profile),d=c+nd(this.El);window.localStorage[d]?a(md(window.localStorage[d])):this.Lq.getDataFeed(c,function(c){var f={};A(c.feed.getEntries(),function(a){var c=b.bp(a.getValueOf("ga:pagePath"));c in f||
(f[c]=[]);var d=b.bp(a.getValueOf("ga:previousPagePath")),e=a.getValueOf("ga:uniquePageviews"),n=!1;A(f[c],function(a){if(a.from==d)return a.count+=e,n=!0,!1});n||f[c].push({from:d,count:e})});window.localStorage[d]=nd(f);a(f)},function(a){alert(a)})};
q.Zv=function(a){this.Lq.getAccountFeed("https://www.google.com/analytics/feeds/accounts/default?max-results=50",function(b){var c=[];A(b.feed.getEntries(),function(a){c.push(a.getTableId().getValue())});a(c)},function(a){var c="There was an error!\n";c+=a.cause?a.cause.status:a.message;alert(c)})};q.wx=ca("profile");t("lucid.analytics.GoogleAnalytics",Ut);Ut.prototype.setProfile=Ut.prototype.wx;Ut.prototype.getProfiles=Ut.prototype.Zv;Ut.prototype.getAllReferers=Ut.prototype.Is;
Ut.prototype.getUrlTraffic=Ut.prototype.op;Ut.prototype.connect=Ut.prototype.connect;Ut.prototype.disconnect=Ut.prototype.ks;Ut.prototype.connected=Ut.prototype.connected;function Vt(a,b){var c=this;Vs.call(this,a,b);a&&(Ce=!parseInt(a.beta,10)&&window.location.hostname!="offline.lucidchart.com");$.ajaxSetup({cache:!1,timeout:2E4});this.da!=l&&(J.set("user",this.da),J.set("user.preferences",this.da.preferences));this.uploader=this.Dl=new rq;this.Gx=this.Va=this.demoUserId=l;this.document=new Y(this);this.db=De(this.da?this.da.id:0);this.pm=l;this.em=!1;this.Qc=this.db.Vr(l);bt.val("branch",this.Qc.id);setInterval(function(){c.db.Es(c.Qc);c.lh();Wt(c)},1E3);Gt(function(){c.db.Fu(c.Qc)});
this.imageManager=this.Ck=new Jh(this.db);J.set("client.getImageManager",c.Ck);this.ci={};this.Ob={};this.Jd=!1;Xt(this);this.document.Qt.push(function(a){if(c.Id())return!1;return c.da&&c.da.Level.document_objects>0&&c.document.lg>=c.da.Level.document_objects&&(a.Action=="CreateLine"||a.Action=="CreateBlock")?($(document).triggerHandler("complexityExceeded"),!1):!0});var d=!1;setInterval(function(){var a=c.Id();a!=d&&(J.set("client.readOnly",a),d=a)},50);J.set("client.readOnly",!1);Et(function(){if(kk(c.document)&&
(c.lh(),!c.Fr))return S("exit.prompt.unsaved")});Xd&&$("*").live("selectstart dragstart",function(){if($(this).css("user-select")=="none")return!1});J.clear("client.loadPlugin");J("client.loadPlugin",function(a){c.Gf(a[0],a[1],a[2])});J.clear("client.activatePlugin");J("client.activatePlugin",function(a){c.Mj(a)});J.clear("client.deactivatePlugin");J("client.deactivatePlugin",function(a){c.Ko(a)});J("user.promptRegister",function(){c.tj()});J("default.undo",function(){c.document.gr()});J("default.redo",
function(){c.document.Bq()});J("default.facebook",r(this.Nv,this));J("default.twitter",r(this.Nx,this));J("default.saveAs",r(this.sx,this));J("default.promptPreferences",r(this.kx,this));J("default.promptLanguage",r(this.jx,this));J("default.print",function(){c.print("PDF",l,!1,l)});J("default.download",function(){c.zb()?c.Oe():c.print()});J("default.close",function(){Jp()?J.set("default.returnToApp"):window.close()});J("default.returnToApp",function(){window.location.href=mt({documentId:c.document.id});
$(".offlineonly").remove()});J("default.forums",function(){window.open("/forums")});J("default.tutorials",function(){window.open("/pages/tutorials/new_document")});J("default.benchmark",function(){Zs(c)});J("default.undo.disabled",function(a){a(!c.document.Jr())});J("default.redo.disabled",function(a){a(!c.document.Ir())});J.set("client.isDemo",c.zb());bt.change(function(){J.set("client.isDemo",c.zb())});J("document.id",function(a){if(window.fontUrl!="/fonts/user/"+a+"/")window.fontUrl="/fonts/user/"+
a+"/",$.ajax({type:"GET",url:window.fontUrl+"all",success:function(a){eval(a)}})});J("document.rename",function(){Yt(c,function(a){c.document.ba(new N(M,{id:l,Property:"Title",Value:a}))})});J("document.property.title",function(a){window.document.title=a+": LucidChart"});J("client.getDocument",function(a){a&&a(c.document)})}Ca(Vt,Vs);q=Vt.prototype;q.Hk=function(){return fl()};
function tq(a){var b=!1;a.da&&a.da.Level.restricted_plugins.length>0&&A(a.document.Ob,function(c){if(c.match(RegExp(a.da.Level.restricted_plugins)))return b=!0,!1});return b}function uq(a){if(a.da&&a.da.Level.restricted_plugins.length>0){var b=[];F(a.document.Ol,function(c){c.match(RegExp(a.da.Level.restricted_plugins))&&b.push(c)});A(b,function(b){a.document.ba(new N(Bg,{URL:b}),!0)})}}
q.Xm=function(a){for(var b=a.Jj-jk(this.document);b>0;)b-=a.wg[0].Count,a.wg.splice(0,1);for(b=0;b<a.wg.length;b++)xt(this.document,new vt(a.wg[b].id,a.wg[b].UserName,a.wg[b].Date,a.wg[b].Count));this.document.merge(a.vh,a.Il,a.Jj)};
function Zt(a){if(a.da!=l){if(a.Va)a.Va.uf=!0;var b=[],c=[];a.Va=new Qt(a.document,{clipboardData:function(b){a.K.viewport.clipboardData=b},If:function(b){a.da.preferences=b;$(document).triggerHandler("userPreferences");J.set("user.preferences",a.da.preferences)},et:function(b){V("level",b);a.zb()||(a.da.Level=b)},Du:function(b){a.da.Trial=b},Nq:function(d){d.nf&&d.nf.length>0&&J.set("chat.append",wq(d.nf));if(d.tf!=l)b=d.tf;d.tf=b;if(d.Qh!=l)c=d.Qh;d.Qh=c;var e=[];if(d.tf!=l&&d.tf.length!=l){for(var f=
0;f<d.tf.length;f++){var k=d.tf[f].User;k.first_name?e.push({id:k.id,name:k.first_name+" "+k.last_name,me:d.tf[f].Connection.id!=l,Qa:d.tf[f].DocumentsUser.role}):(k=d.tf[f].GroupEntry,e.push({id:k.id,name:k.name,me:!1,Qa:d.tf[f].DocumentsUser.role,Fd:!0}))}if(!a.Qa||d.Qa&&a.Qa!=d.Qa)a.Qa=d.Qa,J.set("client.roleChanged",a.Qa);if(!a.Qa&&a.document.id)a.Qa="viewer",J.set("client.roleChanged",a.Qa),L(S("alert.collaboration.revoked"),function(){window.location.href=window.location.href})}if(d.Qh!=l&&
d.Qh.length!=l)for(f=0;f<d.Qh.length;f++)k=d.Qh[f].Invitation,e.push({id:k.id,name:k.to,me:!1,Qa:k.role,bj:!0,rt:k.multi});J.set("share.users",e)},vj:function(b){if(b.uq!=l)a.document.Lm=b.uq==1;if(b.cl!=l){a.document.uj=b.cl;a.document.ee(function(){this.un=[]});for(var c=0,d=0;d<b.cl.length;d++){var e=b.cl[d],f=a.document.nb(e.page);if(f!=l&&e.dpi&&e.page&&e.w&&e.h){var m=new I;jg(m,[c%360,1,0.5]);m=kg(m);f.un.push({x:e.x,y:e.y,w:e.w,h:e.h,r:m[0],g:m[1],b:m[2]});c+=33}}}if(b.uq!=l||b.cl!=l)$(document).triggerHandler("documentUpdatePublished"),
a.K.viewport.ig()},hu:function(b){a.document.Zs=b;$(document).triggerHandler("documentUpdateShared")},vh:function(b){a.Xm(b)}});if(!bt.val("demo"))a.Gx=new It(a.da.id,!1);var d=(new Date).getTime(),e=l,f=!0;$(window).bind("focus",function(){f=!0}).bind("blur",function(){f=!1});setInterval(function(){var b=30;f&&(b=600);((new Date).getTime()-d)/1E3>b?(a.Va.Fg(),e||(e=Tk("Updates disconnected due to inactivity. Move your mouse cursor to reconnect.",31536E6))):(a.Va.Ze(),e&&(e(),e=l))},500);$(document).bind("keydown mousemove mousedown",
function(){d=(new Date).getTime();e&&(e(),e=l);a.Va.Ze()});$(window).focus(function(){d=(new Date).getTime();a.Va.Ze();e&&(e(),e=l)})}}q.Vm=function(a){return"length:"+vq(a).length};function Xt(a){a.py=!1;var b=new dn(function(){a.Jd||!a.document.Ad&&!a.document.Vs&&a.save(!0)},10);a.Ql=b;$(document).bind("documentPostAction",function(){b.queue()});setInterval(function(){kk(a.document)&&b.queue()},100)}q.yi=function(a,b){this.ci[a]=b};
q.Gf=function(a,b,c,d){function e(e){f.yi(a,e);f.Ob[a]=new $s(f,a,b,c,e);d&&d()}if(this.Ob[a])d&&d();else{var f=this;this.ci[a]?e(this.ci[a]):$.ajax({async:!1,cache:!0,url:a,dataType:"text",success:e})}};q.Mj=function(a){this.Ob[a].Nj==!1&&this.Ob[a].Ze();this.Ob[a].Nj=!0;J.set("plugin.activated")};q.Ko=function(a){this.Ob[a].Nj==!0&&this.Ob[a].Fg();this.Ob[a].Nj=!1;J.set("plugin.deactivated")};
q.print=function(a,b,c,d){var e=this,f={};if(this.zb())this.Oe();else if($("#PDFForm").size()==0&&($("body").append('<iframe name="pdfframe" class="hidden"></iframe><form id="PDFForm" target="pdfframe" method="POST" action="/documents/pdf"><input type="hidden" name="pages" id="PDFPages"/><input type="hidden" name="title" id="PDFTitle" /></form>'),Xd&&$("#PDFForm").attr("target","_blank")),a=="vdx")$("#PDFForm").attr("action","/documents/exportvdx/"+this.document.id),$("#PDFPages").val(nd(f)),$("#PDFTitle").val(this.document.q.get("Title")),
$("#PDFForm").submit();else{var g=l;b in this.document.V&&(g=this.document.V[b]);f=this.document.yc(g);b=0;this.da&&(b=this.da.id);if(this.document.Wr)b=this.document.Wr;var i="/documents/pdf/"+b;a!=l&&(i+="/"+a,c?Sk(this.K.viewport,function(a){d==l&&(d=e.K.viewport.V[0].C.q.get("DPI")*e.K.viewport.scale);i+="/"+d;i+="/"+a.x+"/"+a.y+"/"+a.w+"/"+a.h;$("#PDFForm").attr("action",i);$("#PDFPages").val(nd(f));$("#PDFTitle").val(e.document.q.get("Title"));$("#PDFForm").submit()}):(d==l&&(d=this.K.viewport.V[0].C.q.get("DPI")*
this.K.viewport.scale),i+="/"+d,$("#PDFForm").attr("action",i),$("#PDFPages").val(nd(f)),$("#PDFTitle").val(e.document.q.get("Title")),$("#PDFForm").submit()))}};
q.vj=function(a,b,c,d,e){var f=this;if(this.document.id==l)L(S("alert.publish.unsaved"));else{var g="",i="",j=e?e:function(a){a=gc(a);a.success||L(a.error)},k="";if(a!=l){if(a=="web")g="/documents/publish",i="data[Document][id]="+encodeURIComponent(f.document.id)+"&data[Document][published]=1",k="Saving published status";else switch(d==l&&!c&&(d=Math.round(this.K.viewport.V[0].C.q.get("DPI")*this.K.viewport.scale)),g="/publicSegments/add",a){case "pdf":i="data[PublicSegment][document_id]="+encodeURIComponent(f.document.id)+
(b==l?"":"&data[PublicSegment][page]="+encodeURIComponent(b))+"&data[PublicSegment][format]=pdf";k="Saving PDF published status";break;case "png":case "jpeg":i="data[PublicSegment][document_id]="+encodeURIComponent(f.document.id)+"&data[PublicSegment][page]="+encodeURIComponent(b)+"&data[PublicSegment][format]="+encodeURIComponent(a)+(c?"":"&data[PublicSegment][dpi]="+encodeURIComponent(d+"")),k="Publishing page"}c?Sk(this.K.viewport,function(a){d==l&&(d=Math.round(f.K.viewport.V[0].C.q.get("DPI")*
f.K.viewport.scale));i+="&data[PublicSegment][dpi]="+encodeURIComponent(d+"")+"&data[PublicSegment][x]="+encodeURIComponent(a.x)+"&data[PublicSegment][y]="+encodeURIComponent(a.y)+"&data[PublicSegment][w]="+encodeURIComponent(a.w)+"&data[PublicSegment][h]="+encodeURIComponent(a.h);$.ajax({type:"POST",url:g,data:i,success:j,status:k})}):$.ajax({type:"POST",url:g,data:i,success:j,status:k})}}};
q.Fs=function(a){if(!this.db.Sn({id:a}))return!1;var b=this;this.db.ip(a,function(c){if(c&&c.document_id==l){b.jj({Change:[{changes:nd(c.changes)}]},!0);var d=setInterval(function(){b.db.Eh({id:a});clearInterval(d)},5E3)}});return!0};
q.wt=function(a,b){var c=this;this.Qa="owner";J.set("client.roleChanged",this.Qa);var d="document_id="+a;d+=this.da.id?"&user_id="+this.da.id:"";this.db.Zb(a,function(e){if(e)c.jj(e,b);else if(a=="blank-publish"||a=="blank-publish-wp"){var e=a=="blank-publish-wp",f=[{Action:"LoadPlugin",URL:"/js/plugins/publish/default.js"},{Action:"SetProperty",id:l,Property:"Title",Value:"Test Publish Doc"},{Action:"SetProperty",id:l,Property:"Gradient",Value:0},{Action:"SetProperty",id:l,Property:"WPMode",Value:e?
1:0},{Action:"SetProperty",id:l,Property:"ParagraphStyles",Value:[{align:"left",bold:!0,color:"000000",qy:0,font:"Liberation Serif",Hy:0,Iy:0,Jy:1,Ky:0,ic:!0,kb:!1,marginBottom:0,marginTop:0,size:14,nu:1.4,strike:!1,ez:Array[0],type:"p",Qf:!0}]},{Action:"CreatePage",Properties:{Title:"Untitled Page",Order:1},id:"_4"}];e||f.push({Action:"CreateBlock",id:"_5",Class:"PublishTextBlock",Page:"_4",Properties:{BoundingBox:{x:50,y:50,w:500,h:500},Text:'<span style="locked: true;">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</span>',
FillColor:"#ffffff00",LineColor:l,LineWidth:l}});c.jj({Change:[{changes:nd(f)}]})}else $.ajax({type:"GET",url:"/documents/listDocs/1/1",data:d,cache:!1,success:function(d){d=md(d);a=="vdx"&&pk(c.document);c.jj(d[0],b)}})})};
q.jj=function(a,b){var c=this;A(a.Change,function(a){for(var a=gc(a.changes),b=0;b<a.length;b++)c.document.ba(a[b],!0)});this.document.Xl();this.da!=l&&(Zt(this),this.Va.Yf());this.document.Xl();setTimeout(function(){$("#load").fadeOut("fast")},100);this.K.viewport.Lb([jn(this.document,parseInt(bt.val("page"),10)||0)]);b||J.set("document.rename");$(document).triggerHandler("newDocumentLoaded");J.set("document.loaded.new",this.document)};
q.ht=function(a){function b(a){var b=a.plugins;A(a.Change,function(a){A(gc(a.changes),function(a){a.Action==zg?b[a.URL]=!0:a.Action==Bg&&(b[a.URL]=!1)})});c.viewOnly&&(a.role="viewer");a.Cd=[];c.load(a,bt.val("page")||0,b,function(){setTimeout(function(){$("#load").fadeOut("fast")},100)})}var c=this;this.db.Zb(a,function(d){d?b(d):(d="document_id="+a,d+=c.da?"&user_id="+c.da.id:"",$.ajax({type:"POST",url:"/documents/listDocs/1/0",data:d,success:function(c){c=md(c);if(c.length<1)window.location=Jp()?
mt({accessDenied:!0,documentId:a}):"/documents#docs?alert=document.permission.denied";b(c[0])},error:function(){L("<p>This document is not available for offline editing.</p>\n\t\t\t\t\t\t<p>The next time you come back online, this document will be downloaded\n\t\t\t\t\t\tand accessible for offline use.</p>")},timeout:18E4}))})};function rk(a,b){A(b,function(b){xt(a.document,new vt(b.action_history_length,b.User.first_name+" "+b.User.last_name,b.created,b.change_count))})}
q.load=function(a,b,c,d,e){var f=this;b==l&&(b=0);if(!this.Qa||this.Qa!=a.role)this.Qa=a.role,$(window.document).triggerHandler("clientRoleChanged");rk(this,a.Change);this.document.Wr=a.Document.creator_id;this.document.Lm=a.Document.published==1;this.document.Zs=a.Document.shared==1;this.document.az=a.PublicSegment;var g="document_id="+a.Document.id;g+=f.da?"&user_id="+f.da.id:"";this.document.ag(c,a.Document.state,function(a){$.ajax({type:"GET",url:"/documents/listDocs/1/1",data:g,cache:!1,success:function(b){b=
md(b);a(b[0].Change)}})},a.Document.action_history_length,a.Document.id,a.Document.next_connection_id,a.Document.creator_id,o(),function(){f.document.ee(function(){this.Af(function(){var a=this.q.get("Members");hc(a)==0&&f.document.ba(new N("RmGr",{id:this.id}))})});f.document.ee(function(){if(yj(this,0)<-1E12||this.Kd("ZOrder",0)>1E12){var a=0;uj(this,function(){f.document.ba(new N(M,{id:this.id,Property:"ZOrder",Value:a--}))})}});f.Qa=="viewer"&&f.da==l||setTimeout(function(){Zt(f);f.Va&&f.Va.Yf()},
1);setInterval(function(){window.document.title=="stress"&&f.K.viewport.V[0].C.df(function(){if(Math.random()*10<0.5){var a=this.ja();a.x+=(Math.floor(Math.random()*5)-2)*20;a.y+=(Math.floor(Math.random()*5)-2)*20;f.document.ba(new N(M,{id:this.id,Property:"BoundingBox",Value:a}))}})},250)});e&&($(window.document).triggerHandler("newDocumentLoaded"),J.set("document.loaded.new",this.document))};
q.tx=function(){try{var a=nd(tt(this.document)),b=nd(this.document.yc()),c=nd(this.document.Lg()),d="data[Change][0][md5]="+encodeURIComponent(this.Vm(a))+"&data[Document][title]="+encodeURIComponent(this.document.q.get("Title"))+"&data[Change][0][version]=2&data[Change][0][user_agent]="+encodeURIComponent(navigator.userAgent)+"&data[Document][pdfdata]="+encodeURIComponent(b)+"&data[Document][state]="+encodeURIComponent(c)+"&data[Change][0][changes]="+encodeURIComponent(a)+"&data[LoadedActionHistoryLength]=0";
if(this.document.attributes)for(a=0;a<this.document.attributes.length;a++)d=d+"&data[DocumentAttribute]["+a+"][name]="+encodeURIComponent(this.document.attributes[a].name)+"&data[DocumentAttribute]["+a+"][value]="+encodeURIComponent(this.document.attributes[a].value)}catch(e){this.sd(e,{location:"Client.saveEmergency, pre-ajax"});return}$.ajax({type:"POST",url:"/documents/save",data:d,timeout:Math.max(2E4,d.length),success:o(),error:o(),complete:o()})};
q.save=function(a){function b(){var a=(new Date).getTime();if(c.pm==l)c.pm=a;else if(!c.em&&a>c.pm+3E5)$(document).triggerHandler("SaveNotWorking"),c.em=!0,L(S("growl.save.notworking"))}var c=this;if(this.Jd)this.Ql.queue();else if(this.document.Ad&&this.document.Pi(),kk(this.document))if(this.da&&(!this.Va||!this.Va.Os()))b(),setTimeout(function(){c.save(a)},100);else{try{this.Jd=!0;$(document).triggerHandler("SaveStart");var d=this.document.gf(),e=st(this.document),f=d-jk(this.document),g,i;this.document.fj?
(i=nd(this.document.yc(l,hk(this.document))),g=nd(this.document.Lg(hk(this.document)))):(i=nd(this.document.yc()),g=nd(this.document.Lg()));var j="data[Change][0][md5]="+encodeURIComponent(this.Vm(e))+"&data[Document][title]="+encodeURIComponent(this.document.q.get("Title"))+"&data[Change][0][version]=2&data[Change][0][user_agent]="+encodeURIComponent(navigator.userAgent)+"&data[Document][pdfdata]="+encodeURIComponent(i)+"&data[Document][state]="+encodeURIComponent(g)+"&data[Change][0][changes]="+
encodeURIComponent(e)+"&data[LoadedActionHistoryLength]="+encodeURIComponent(String(jk(this.document)));if(this.document.attributes)for(e=0;e<this.document.attributes.length;e++)j=j+"&data[DocumentAttribute]["+e+"][name]="+encodeURIComponent(this.document.attributes[e].name)+"&data[DocumentAttribute]["+e+"][value]="+encodeURIComponent(this.document.attributes[e].value);this.document.id!=l?j="data[Document][id]="+encodeURIComponent(this.document.id)+"&"+j:bt.val("parent_id")&&(j="data[FolderEntry][parent_id]="+
encodeURIComponent(bt.val("parent_id"))+"&"+j);var k=0,n=c.document.id==l}catch(m){b();setTimeout(function(){c.Jd=!1},5E3);c.sd(m,{location:"Client.save, pre-ajax"});return}$.ajax({type:"POST",url:"/documents/save/"+(this.Va?this.Va.Sc:""),data:j,timeout:Math.max(2E4,j.length),success:function(e){try{var g=gc(e);if(n){lk(c.document,g.id);if(g.role)c.Qa=g.role;g.message&&L(g.message)}c.Va&&!c.Va.Bf&&c.Va.Yf();if(g.success){if(c.em)c.pm=l,c.em=!1,L(S("growl.save.workingagain"));c.document.fj=!0;c.Yy=
0;$(document).triggerHandler("SaveSuccess");if(c.da!=l){var i=new Date,j=new Dm("yyyy-MM-dd HH:mm:ss");xt(c.document,new vt(g.change_id,c.da.first_name+" "+c.da.last_name,j.Qi(i),f))}mk(c.document,d);n?c.da==l?window.location.href="/documents/edit#"+g.id:bt.root(g.id):!c.db.mh&&!c.zb()&&c.db.Zb(c.document.id,function(a){if(a&&parseInt(a.Document.action_history_length,10)+f==d)a.Document.action_history_length=d,a.Document.state=nd(c.document.Lg()),a.Document.pdfdata=nd(c.document.yc()),c.db.vn([a])})}else g.update?
(c.Xm({Jj:g.savedActionHistoryLength,wg:g.saveHistory,vh:g.update,Il:g.actionHistoryLength}),c.Ql.queue(),a||Tk(S("growl.merge.unsaved"),7E3)):g.code==1?(k=1E4,c.da==l?c.tj(function(){c.save()}):c.tq(function(){c.save()})):g.code==2?(k=5E3,b()):g.code==3?(k=5E3,b()):g.code==4?(k=15E3,Tk(g.Error||"You have exceeded your storage limit.",1E4)):g.code==5?(L(S("alert.document.deleted")),k=15E3,c.Qa="viewer",J.set("client.roleChanged",c.Qa)):g.code==6?($(document).triggerHandler("complexityExceeded"),k=
15E3):(c.Ql.queue(),!a&&g.error&&Tk(g.error),b())}catch(m){b(),setTimeout(function(){c.Jd=!1},5E3),c.sd(m,{location:"Client.save, success callback",response:e})}},error:function(){try{b(),k=5E3,c.Ql.queue(),a||Tk(S("growl.save.timeout"))}catch(d){b(),setTimeout(function(){c.Jd=!1},5E3),c.sd(d,{location:"Client.save, error callback"})}},complete:function(){c.document.id!=l&&k>0?setTimeout(function(){c.Jd=!1},k):c.Jd=!1},status:a?l:"Saving"})}};
q.Hn=function(a){var b=this;this.document.id==l?(this.save(),setTimeout(r(this.Hn,this),100)):this.Qa!="owner"?L(S("alert.onlyowner.share")):xe("/documents/share/"+encodeURIComponent(this.document.id),!1,function(){a&&a();xe("/documents/shareSocial/"+encodeURIComponent(b.document.id))})};function Ll(a){a.Qa!="owner"?L(S("alert.onlyowner.unshare")):$.ajax({type:"get",url:"/documents/unshare/"+encodeURIComponent(a.document.id),status:"Unsharing document"})}
function Yt(a,b){ve(S("prompt.title.new"),a.document.q.get("Title"),function(a){b&&b(a)})}function hp(a,b,c,d){c={data:{Document:{title:c}}};b==a.document.gf()&&(c.data.Actions=nd(tt(a.document)));$.ajax({type:"POST",url:"/documents/fork/"+encodeURIComponent(String(a.document.id))+"/"+encodeURIComponent(String(b)),data:c,success:function(a){try{var b=gc(a)}catch(c){L(a);return}b.success?window.location.href="/documents/edit/"+b.id:d&&d()},error:function(){d&&d()},complete:o()})}
q.sx=function(){function a(){Yt(b,function(a){hp(b,b.document.gf(),a,function(){L(S("menu.saveas.error"))})})}var b=this;this.zb()?this.Oe(a):a()};q.Id=function(){return this.Qa=="viewer"||this.K&&(this.K.yh()||this.K.Lj)||tq(this)?!0:!1};q.tq=function(a){$.cookie("CAKEPHP",l);this.$y=!0;xe("/users/login?document_id="+this.document.id+(bt.val("demo")?"&demo=1":""),!1,a)};
q.tj=function(a,b){$.cookie("CAKEPHP",l);xe("/users/registerLevel?Short=on&document_id="+this.document.id+(b?"&msg="+encodeURIComponent(b):""),!1,a,function(){ye.dialog.J.html().indexOf("You are currently using")>=0&&(ye.dialog.close(),a&&a())})};q.kx=function(){this.da==l||this.zb()?this.Oe():xe("/users/preferences",!1,o(),function(){ye.dialog.title.empty().append(y("Preferences"))})};
q.jx=function(){var a=this,b=this.document.q.get("Language");if(!this.$s)this.$s=new St;this.$s.show(b,function(b){a.document.ba(new N(M,{id:l,Property:"Language",Value:b}));$(document).triggerHandler("lucid.spellCheck.language",[b])})};
q.Nv=function(){if(this.document.id==l)L(S("alert.facebook.unsaved"));else{var a="http://"+document.domain+"/documents/view/"+this.document.id+"/0",b=this.document.q.get("Title")+": LucidChart",a="http://www.facebook.com/sharer.php?u="+encodeURIComponent(a)+"&t="+encodeURIComponent(b);this.document.Lm?window.open(a):this.Qa=="owner"?window.open("/documents/publish?data[Document][id]="+encodeURIComponent(this.document.id)+"&data[Document][published]=1&redirect="+encodeURIComponent(a)):L(S("alert.facebook.unowned"))}};
q.Nx=function(){this.document.id==l?L(S("alert.twitter.unsaved")):(this.document.q.get("Title"),!this.document.Lm&&this.Qa!="owner"?L(S("alert.twitter.unowned")):window.open("/documents/twitter/"+this.document.id))};q.zb=function(){return!!bt.val("demo")};
q.lh=function(){var a=this,b=this.document.gf(),c=jk(this.document);if(this.Qc.base!=c||this.Qc.base+this.Qc.changes.length!=b||this.Qc.document_id!=this.document.id)this.Qc.document_id=this.document.id,this.Qc.base=c,this.Qc.changes=[],ek(this.document,function(b){a.Qc.changes.push(b)},c),this.document.id==l?(a.Qc.pdfdata=this.document.yc(),a.Qc.title=this.document.q.get("Title")):delete a.Qc.pdfdata,this.Fr=!1,this.db.lh(this.Qc,function(){a.Fr=!a.db.mh})};
function Wt(a){a.Qc.document_id!=l&&a.db.tm(a.Qc.document_id,function(b){A(b,function(b){a.db.Sn(b)&&!(b.base>jk(a.document))&&(A(b.changes,function(b){b.IsRedo=!0;a.document.ba(b)}),a.db.Eh(b))})})}
q.execute=function(a,b){function c(){var a=d.K.viewport.V[0],b,c;for(c in a.Ra)b=a.Ra[c];return b}var d=this;switch(a){case "page.block.last.imageData":var e;return c().ya.context.getImageData(b.coords.x,b.coords.y,1,1);case "page.block.last.realInput.get":e=c();var f,g;for(g in e.la)f=e.la[g];return f.aa.Mc;case "page.block.last.property.get":return c().C.q.get(b.property);case "page.block.property.get":return d.K.viewport.V[0].C.Jb(b.id).q.get(b.property);case "page.block.getBBExtended":return(f=
d.K.viewport.V[0].C.Jb(b.id).q.get("BoundingBox"))?{x:f.x,y:f.y,l:f.x,t:f.y,r:f.x+f.w,b:f.y+f.h,w:f.w,h:f.h,midx:f.x+f.w/2,midy:f.y+f.h/2}:l;case "page.block.last.property.set":return e=c(),f=d.K.viewport.V[0],f.Yc(e.C.id),J.set("default.property."+b.property,b.value),f.kh(e.C.id),!0;case "document.property.set":return J.set("default.docProperty."+b.property,b.value),!0;case "block.add":var i=gj[b.className];if(i==l)return!1;g=jj(b.className,"DragBlock",this.document);f=this.K.viewport.V[0];g.Qe(f.C);
g.q.set("LineWidth",this.document.q.get("DefaultBlockLineWidth"));g.q.set("LineColor",this.document.q.get("DefaultBlockLineColor"));g.q.set("FillColor",ck(this.document));g.q.set("Font",this.document.q.get("DefaultFont"));g.q.set("BoundingBox",new H(0,0,i.bd.w,i.bd.h));for(e in b.properties)g.q.set(e,b.properties[e]);this.document.Kl(g,!0);e=g.q.Nb();e.ZOrder=f.C.Kd("ZOrder",0)+1;f=new N("CreateBlock",{Class:g.className,Properties:e,Page:f.C.id});e=this.document.ba(f);b.state&&e&&(g=Rj(this.K.viewport),
g.name=="diagramming"&&g.Ma&&g.Ma.pa&&(i=g.Ma.q.get("Members"),i[f.id]=!0,this.document.ba(new N(M,{id:g.Ma.id,Property:"Members",Value:i}))));return e?f.id:!1;case "listen.set":return J.set(b.key,b.val||l),!0}return l};
q.Oe=function(a){function b(){$.ajax({type:"POST",url:"/users/userSession",data:"",timeout:1E4,success:function(a){try{a==0||a=="0"?window.localStorage.user&&delete window.localStorage.user:(c.da=md(a).User,window.localStorage.user=a)}catch(b){window.localStorage.user&&delete window.localStorage.user}}})}var c=this;qk(this.document,function(){window.localStorage.user==l?c.tj(function(){bt.remove("demo");b();nk(c.document);Zt(c);a?a():(c.save(),c.K.sc&&c.K.sc.hide(),c.K.Tn&&c.K.Tn(),setTimeout(function(){$("#load").fadeOut("fast")},
500))}):(bt.remove("demo"),bt.remove("save"),b(),nk(c.document),Zt(c),c.save(),c.K.sc&&c.K.sc.hide(),c.K.Tn&&c.K.Tn(),setTimeout(function(){$("#load").fadeOut("fast")},500))})};t("lucid.EditorClient",Vt);t("lucid.EditorClient.checkUserAgent",function(){return Yd||Zd?(window.location.href="/pages/old_ie",!1):!0});Vt.prototype.isOnline=Vt.prototype.Hk;Vt.prototype.isReadOnly=Vt.prototype.Id;Vt.prototype.isDemo=Vt.prototype.zb;Vt.prototype.loadPlugin=Vt.prototype.Gf;Vt.prototype.cachePlugin=Vt.prototype.yi;
Vt.prototype.newDocument=Vt.prototype.jj;Vt.prototype.load=Vt.prototype.load;Vt.prototype.save=Vt.prototype.save;Vt.prototype.promptLogin=Vt.prototype.tq;Vt.prototype.promptRegister=Vt.prototype.tj;Vt.prototype.activatePlugin=Vt.prototype.Mj;Vt.prototype.deactivatePlugin=Vt.prototype.Ko;Vt.prototype.loadLocal=Vt.prototype.ht;Vt.prototype.newLocal=Vt.prototype.wt;Vt.prototype.fromLocalBranch=Vt.prototype.Fs;Vt.prototype.saveEmergencyCopy=Vt.prototype.tx;Vt.prototype.execute=Vt.prototype.execute;function $t(a){var b=this;Vt.call(this,a,!1);this.gui=this.K=new qq(this);$(document).bind("complexityExceeded",function(){au(b)});J("default.debug.showLog",function(){ve("Which log?","render",function(a){V.show(a)})});J("default.save",function(){b.zb()?b.Oe():b.save()});J("default.debug.loadPlugin",function(){ve("Load Plugin","/js/plugins/v2/",function(a){var d=a.split("/"),d=d.pop().split(".")[0];b.document.ba(new N(zg,{URL:a,Name:d,Description:"Manually Loaded Plugin"}))})});this.Gf("/js/plugins/v2/default.js",
"Default","Default Tool Set");this.Mj("/js/plugins/v2/default.js");this.Gf("/js/plugins/v2/imagesearch.js","Image Search","Default Image Search");this.Mj("/js/plugins/v2/imagesearch.js")}Ca($t,Vt);
function au(a){if($("#complexity_upgrade_check:visible").size()==0){var b=a.da&&a.da.TrialEligible?S("alert.complexity.upgrade"):S("alert.restriction.upgrade.paid");L('<p id="complexity_upgrade_check">'+S("alert.complexity.reached.prefix")+" "+a.da.Level.document_objects+" "+S("alert.complexity.reached.suffix")+"</p><p>"+S("alert.feedback.send.p")+"</p>"+b);$("#complexity_feedback").click(function(){J.set("default.sendFeedback")});$("#complexity_upgrade").click(function(){xe("/users/level?Short=on")})}}
function Zp(a){if($("#complexity_upgrade_check:visible").size()==0){var b=a.da.TrialEligible?S("alert.complexity.upgrade"):S("alert.restriction.upgrade.paid");L('<p id="complexity_upgrade_check">'+S("alert.complexity.desc.prefix")+" "+a.da.Level.document_objects+" "+S("alert.complexity.desc.suffix")+"</p><p>"+S("alert.feedback.send.p")+"</p>"+b);$("#complexity_feedback").click(function(){J.set("default.sendFeedback")});$("#complexity_upgrade").click(function(){xe("/users/level?Short=on")})}}
$t.prototype.load=function(a,b,c,d,e){var f=this;J("document.loaded",function(){f.zb()&&bt.val("save")&&f.Oe();f.zb()&&!Ya&&f.K.sc.set(y({children:[{Q:"share_button left",children:[{Q:"button",text:"Sign Up Free",click:function(){f.Oe()}}]},{Q:"left",css:{padding:"10px"},children:[{Q:"share-link",text:S("viewport.banner.share")},{R:"input",type:"text",css:{width:"556px"},value:window.location.href,create:function(a){a.click(function(){$(this).select()})}}]},{Q:"clear"}]}));d&&d()});Vt.prototype.load.call(f,
a,b,c,d,e)};t("lucid.ChartClient",$t);$t.prototype.isOnline=$t.prototype.Hk;$t.prototype.isDemo=$t.prototype.zb;$t.prototype.loadPlugin=$t.prototype.Gf;$t.prototype.cachePlugin=$t.prototype.yi;$t.prototype.newDocument=$t.prototype.jj;$t.prototype.load=$t.prototype.load;$t.prototype.save=$t.prototype.save;$t.prototype.saveFromDemo=$t.prototype.Oe;$t.prototype.promptLogin=$t.prototype.tq;$t.prototype.promptRegister=$t.prototype.tj;$t.prototype.activatePlugin=$t.prototype.Mj;
$t.prototype.deactivatePlugin=$t.prototype.Ko;$t.prototype.loadLocal=$t.prototype.ht;$t.prototype.newLocal=$t.prototype.wt;$t.prototype.fromLocalBranch=$t.prototype.Fs;

