var k=this,l=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b},aa=function(a){var b=l(a);return"array"==b||"object"==b&&"number"==typeof a.length},m=function(a){return"string"==typeof a},n=function(a){return"function"==l(a)},ba=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},ca=Date.now||function(){return+new Date},p=function(a,b){var c=a.split("."),d=k;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?
d[e]:d[e]={}:d[e]=b},q=function(a,b){function c(){}c.prototype=b.prototype;a.da=b.prototype;a.prototype=new c;a.ga=function(a,c,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[c].apply(a,g)}};p("ddab.layouts.utils.VersionInfo.VERSION","4.0");var r=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};q(r,Error);r.prototype.name="CustomError";var da=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},ea=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},ma=function(a){if(!fa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ga,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(ha,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(ia,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ja,"&quot;"));-1!=a.indexOf("'")&&
(a=a.replace(ka,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(la,"&#0;"));return a},ga=/&/g,ha=/</g,ia=/>/g,ja=/"/g,ka=/'/g,la=/\x00/g,fa=/[\x00&<>"']/,na=function(a){return Array.prototype.join.call(arguments,"")},oa=function(a,b){return a<b?-1:a>b?1:0},pa=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})},qa=function(a){var b=m(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+
(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};var t=function(a,b){b.unshift(a);r.call(this,da.apply(null,b));b.shift()};q(t,r);t.prototype.name="AssertionError";var u=function(a,b,c){if(!a){var d="Assertion failed";if(b)var d=d+(": "+b),e=Array.prototype.slice.call(arguments,2);throw new t(""+d,e||[]);}},ra=function(a,b){throw new t("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var v=Array.prototype,sa=v.indexOf?function(a,b,c){u(null!=a.length);return v.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(m(a))return m(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ta=v.forEach?function(a,b,c){u(null!=a.length);v.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=m(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ua=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=
a[d];return c}return[]};var va=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)},wa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),xa=function(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<wa.length;f++)c=wa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var w=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};w.prototype.toString=function(){return"("+this.x+", "+this.y+")"};w.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};w.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};var x=function(a,b){this.width=a;this.height=b};x.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};x.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};x.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var y;a:{var ya=k.navigator;if(ya){var za=ya.userAgent;if(za){y=za;break a}}y=""};var z=function(){return-1!=y.indexOf("Edge")};var Aa=-1!=y.indexOf("Opera")||-1!=y.indexOf("OPR"),A=-1!=y.indexOf("Edge")||-1!=y.indexOf("Trident")||-1!=y.indexOf("MSIE"),B=-1!=y.indexOf("Gecko")&&!(-1!=y.toLowerCase().indexOf("webkit")&&!z())&&!(-1!=y.indexOf("Trident")||-1!=y.indexOf("MSIE"))&&!z(),C=-1!=y.toLowerCase().indexOf("webkit")&&!z(),Ba=function(){var a=y;if(B)return/rv\:([^\);]+)(\)|;)/.exec(a);if(A&&z())return/Edge\/([\d\.]+)/.exec(a);if(A)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(C)return/WebKit\/(\S+)/.exec(a)},Ca=function(){var a=
k.document;return a?a.documentMode:void 0},Da=function(){if(Aa&&k.opera){var a=k.opera.version;return n(a)?a():a}var a="",b=Ba();b&&(a=b?b[1]:"");return A&&!z()&&(b=Ca(),b>parseFloat(a))?String(b):a}(),Ea={},D=function(a){var b;if(!(b=Ea[a])){b=0;for(var c=ea(String(Da)).split("."),d=ea(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",h=d[f]||"",E=RegExp("(\\d*)(\\D*)","g"),Bb=RegExp("(\\d*)(\\D*)","g");do{var N=E.exec(g)||["","",""],O=Bb.exec(h)||["","",""];if(0==
N[0].length&&0==O[0].length)break;b=oa(0==N[1].length?0:parseInt(N[1],10),0==O[1].length?0:parseInt(O[1],10))||oa(0==N[2].length,0==O[2].length)||oa(N[2],O[2])}while(0==b)}b=Ea[a]=0<=b}return b},F=function(){return A&&(z()||9<=Fa)},Ga=k.document,Ha=Ca(),Fa=!Ga||!A||!Ha&&z()?void 0:Ha||("CSS1Compat"==Ga.compatMode?parseInt(Da,10):5);var Ia=!A||F();!B&&!A||A&&F()||B&&D("1.9.1");var Ja=A&&!D("9");var La=function(a,b){va(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Ka?a.setAttribute(Ka[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},Ka={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},Na=function(a,b,c){var d=arguments,e=document,
f=d[0],g=d[1];if(!Ia&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ma(g.name),'"');if(g.type){f.push(' type="',ma(g.type),'"');var h={};xa(h,g);delete h.type;g=h}f.push(">");f=f.join("")}f=e.createElement(f);g&&(m(g)?f.className=g:"array"==l(g)?f.className=g.join(" "):La(f,g));2<d.length&&Ma(e,f,d);return f},Ma=function(a,b,c){function d(c){c&&b.appendChild(m(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];if(!aa(f)||ba(f)&&0<f.nodeType)d(f);else{var g;a:{if(f&&"number"==
typeof f.length){if(ba(f)){g="function"==typeof f.item||"string"==typeof f.item;break a}if(n(f)){g="function"==typeof f.item;break a}}g=!1}ta(g?ua(f):f,d)}}},Oa=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},Pa=function(a){u(a,"Node cannot be null or undefined.");return 9==a.nodeType?a:a.ownerDocument||a.document},Qa={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Ra={IMG:" ",BR:"\n"},Ta=function(a){if(Ja&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Sa(a,b,!0);a=
b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Ja||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a},Sa=function(a,b,c){if(!(a.nodeName in Qa))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Ra)b.push(Ra[a.nodeName]);else for(a=a.firstChild;a;)Sa(a,b,c),a=a.nextSibling};var Ua=function(a){Ua[" "](a);return a};Ua[" "]=function(){};var Va=!A||F(),Wa=A&&!D("9");!C||D("528");B&&D("1.9b")||A&&D("8")||Aa&&D("9.5")||C&&D("528");B&&!D("8")||A&&D("9");var Xa=function(){this.D=this.D;this.$=this.$};Xa.prototype.D=!1;var G=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1;this.M=!0};G.prototype.preventDefault=function(){this.defaultPrevented=!0;this.M=!1};var H=function(a,b){G.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.F=this.state=null;if(a){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(B){var e;a:{try{Ua(d.nodeName);e=!0;break a}catch(f){}e=!1}e||(d=null)}}else"mouseover"==
c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=C||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=C||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?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||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=
a.metaKey;this.state=a.state;this.F=a;a.defaultPrevented&&this.preventDefault()}};q(H,G);H.prototype.preventDefault=function(){H.da.preventDefault.call(this);var a=this.F;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Wa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var I="closure_listenable_"+(1E6*Math.random()|0),Ya=0;var Za=function(a,b,c,d,e){this.e=a;this.r=null;this.src=b;this.type=c;this.o=!!d;this.p=e;this.key=++Ya;this.h=this.n=!1},$a=function(a){a.h=!0;a.e=null;a.r=null;a.src=null;a.p=null};var J=function(a){this.src=a;this.c={};this.s=0};J.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.c[f];a||(a=this.c[f]=[],this.s++);var g=ab(a,b,d,e);-1<g?(b=a[g],c||(b.n=!1)):(b=new Za(b,this.src,f,!!d,e),b.n=c,a.push(b));return b};J.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.c))return!1;var e=this.c[a];b=ab(e,b,c,d);return-1<b?($a(e[b]),u(null!=e.length),v.splice.call(e,b,1),0==e.length&&(delete this.c[a],this.s--),!0):!1};
var bb=function(a,b){var c=b.type;if(c in a.c){var d=a.c[c],e=sa(d,b),f;if(f=0<=e)u(null!=d.length),v.splice.call(d,e,1);f&&($a(b),0==a.c[c].length&&(delete a.c[c],a.s--))}};J.prototype.u=function(a,b,c,d){a=this.c[a.toString()];var e=-1;a&&(e=ab(a,b,c,d));return-1<e?a[e]:null};var ab=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.h&&f.e==b&&f.o==!!c&&f.p==d)return e}return-1};var cb="closure_lm_"+(1E6*Math.random()|0),db={},eb=0,K=function(a,b,c,d,e){if("array"==l(b))for(var f=0;f<b.length;f++)K(a,b[f],c,d,e);else if(c=fb(c),a&&a[I])f=c,gb(a),a.d.add(String(b),f,!1,d,e);else{if(!b)throw Error("Invalid event type");var f=!!d,g=L(a);g||(a[cb]=g=new J(a));d=g.add(b,c,!1,d,e);d.r||(e=hb(),d.r=e,e.src=a,e.e=d,a.addEventListener?a.addEventListener(b.toString(),e,f):a.attachEvent(ib(b.toString()),e),eb++)}},hb=function(){var a=jb,b=Va?function(c){return a.call(b.src,b.e,c)}:
function(c){c=a.call(b.src,b.e,c);if(!c)return c};return b},kb=function(a,b,c,d,e){if("array"==l(b))for(var f=0;f<b.length;f++)kb(a,b[f],c,d,e);else c=fb(c),a&&a[I]?a.d.remove(String(b),c,d,e):a&&(a=L(a))&&(b=a.u(b,c,!!d,e))&&lb(b)},lb=function(a){if("number"!=typeof a&&a&&!a.h){var b=a.src;if(b&&b[I])bb(b.d,a);else{var c=a.type,d=a.r;b.removeEventListener?b.removeEventListener(c,d,a.o):b.detachEvent&&b.detachEvent(ib(c),d);eb--;(c=L(b))?(bb(c,a),0==c.s&&(c.src=null,b[cb]=null)):$a(a)}}},ib=function(a){return a in
db?db[a]:db[a]="on"+a},nb=function(a,b,c,d){var e=!0;if(a=L(a))if(b=a.c[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.o==c&&!f.h&&(f=mb(f,d),e=e&&!1!==f)}return e},mb=function(a,b){var c=a.e,d=a.p||a.src;a.n&&lb(a);return c.call(d,b)},ob=function(a,b){u(!(!a||!a[I]),"Can not use goog.events.dispatchEvent with non-goog.events.Listenable instance.");a.dispatchEvent(b)},jb=function(a,b){if(a.h)return!0;if(!Va){var c;if(!(c=b))a:{c=["window","event"];for(var d=k,e;e=c.shift();)if(null!=
d[e])d=d[e];else{c=null;break a}c=d}e=c;c=new H(e,this);d=!0;if(!(0>e.keyCode||void 0!=e.returnValue)){a:{var f=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(g){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.currentTarget;f;f=f.parentNode)e.push(f);for(var f=a.type,h=e.length-1;!c.g&&0<=h;h--){c.currentTarget=e[h];var E=nb(e[h],f,!0,c),d=d&&E}for(h=0;!c.g&&h<e.length;h++)c.currentTarget=e[h],E=nb(e[h],f,!1,c),d=d&&E}return d}return mb(a,new H(b,this))},L=function(a){a=a[cb];return a instanceof
J?a:null},pb="__closure_events_fn_"+(1E9*Math.random()>>>0),fb=function(a){u(a,"Listener can not be null.");if(n(a))return a;u(a.handleEvent,"An object listener must have handleEvent method.");a[pb]||(a[pb]=function(b){return a.handleEvent(b)});return a[pb]};var M=function(){Xa.call(this);this.d=new J(this);this.O=this;this.K=null};q(M,Xa);M.prototype[I]=!0;M.prototype.addEventListener=function(a,b,c,d){K(this,a,b,c,d)};M.prototype.removeEventListener=function(a,b,c,d){kb(this,a,b,c,d)};
M.prototype.dispatchEvent=function(a){gb(this);var b,c=this.K;if(c){b=[];for(var d=1;c;c=c.K)b.push(c),u(1E3>++d,"infinite loop")}c=this.O;d=a.type||a;if(m(a))a=new G(a,c);else if(a instanceof G)a.target=a.target||c;else{var e=a;a=new G(d,c);xa(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.g&&0<=g;g--)f=a.currentTarget=b[g],e=P(f,d,!0,a)&&e;a.g||(f=a.currentTarget=c,e=P(f,d,!0,a)&&e,a.g||(e=P(f,d,!1,a)&&e));if(b)for(g=0;!a.g&&g<b.length;g++)f=a.currentTarget=b[g],e=P(f,d,!1,a)&&e;return e};
var P=function(a,b,c,d){b=a.d.c[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.h&&g.o==c){var h=g.e,E=g.p||g.src;g.n&&bb(a.d,g);e=!1!==h.call(E,d)&&e}}return e&&0!=d.M};M.prototype.u=function(a,b,c,d){return this.d.u(String(a),b,c,d)};var gb=function(a){u(a.d,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var Q=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};Q.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};Q.prototype.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
Q.prototype.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};var R=function(a,b,c){if(m(b))(b=qb(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=qb(c,d);f&&(c.style[f]=e)}},rb={},qb=function(a,b){var c=rb[b];if(!c){var d=pa(b),c=d;void 0===a.style[d]&&(d=(C?"Webkit":B?"Moz":A?"ms":Aa?"O":null)+qa(d),void 0!==a.style[d]&&(c=d));rb[b]=c}return c},S=function(a,b){var c=Pa(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""},sb=function(a,b){if(/^\d+px?$/.test(b))return parseInt(b,
10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e},T=function(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?sb(a,c):0},U=function(a,b){if(A){var c=T(a,b+"Left"),d=T(a,b+"Right"),e=T(a,b+"Top"),f=T(a,b+"Bottom");return new Q(e,d,f,c)}c=S(a,b+"Left");d=S(a,b+"Right");e=S(a,b+"Top");f=S(a,b+"Bottom");return new Q(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))},
tb={thin:2,medium:4,thick:6},ub=function(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in tb?tb[c]:sb(a,c)},vb=function(a){if(A&&!F()){var b=ub(a,"borderLeft"),c=ub(a,"borderRight"),d=ub(a,"borderTop");a=ub(a,"borderBottom");return new Q(d,c,a,b)}b=S(a,"borderLeftWidth");c=S(a,"borderRightWidth");d=S(a,"borderTopWidth");a=S(a,"borderBottomWidth");return new Q(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var V=function(a,b,c,d){M.call(this);this.l=a;this.U=b;this.ba=c;this.P=d;this.b=null;this.I=new x(0,0);R(this.l,"overflow","hidden");this.b=document.createElement("img");this.b.src=this.U;R(this.b,"position","inherit");K(this.b,"load",this.V,!1,this);K(this.b,"error",this.T,!1,this)};q(V,M);p("ddab.layouts.utils.DynamicImageFit",V);V.addEventListener=V.prototype.addEventListener;V.removeEventListener=V.prototype.removeEventListener;V.prototype.R=function(){return this.b};V.prototype.getImage=V.prototype.R;
V.prototype.V=function(){this.I=new x(this.b.width,this.b.height);var a=new x(this.l.clientWidth,this.l.clientHeight),b;var c=this.I;b=this.ba;if("none"==b||"shrink_to_fit"==b&&c.width<=a.width&&c.height<=a.height)b=c;else{var c=c.width/c.height,d=a.width/a.height;b="fit"==b&&c>d||"fill"==b&&c<d||"shrink_to_fit"==b&&c>d?new x(Math.floor(a.width),Math.floor(a.width/c)):new x(Math.floor(a.height*c),Math.floor(a.height))}var c=b,d=this.P,e=new w((a.width-c.width)/2,(a.height-c.height)/2);if("center"!=
d){if("top"==d||"top_left"==d||"top_right"==d)e.y=0;if("bottom"==d||"bottom_left"==d||"bottom_right"==d)e.y=a.height-c.height;if("left"==d||"top_left"==d||"bottom_left"==d)e.x=0;if("right"==d||"top_right"==d||"bottom_right"==d)e.x=a.width-c.width}this.b.width=b.width;this.b.height=b.height;R(this.b,"left",e.x+"px");R(this.b,"top",e.y+"px");Oa(this.l);this.l.appendChild(this.b);ob(this,"image_load")};V.prototype.T=function(){this.b.width=0;this.b.height=0;ob(this,"image_load_error")};var wb=function(a,b,c,d,e){this.reset(a,b,c,d,e)};wb.prototype.G=null;var xb=0;wb.prototype.reset=function(a,b,c,d,e){"number"==typeof e||xb++;d||ca();this.j=a;this.Y=b;delete this.G};wb.prototype.N=function(a){this.j=a};var W=function(a){this.Z=a;this.H=this.t=this.j=this.q=null},yb=function(a,b){this.name=a;this.value=b};yb.prototype.toString=function(){return this.name};var zb=new yb("INFO",800),Ab=new yb("CONFIG",700);W.prototype.getParent=function(){return this.q};W.prototype.N=function(a){this.j=a};var Cb=function(a){if(a.j)return a.j;if(a.q)return Cb(a.q);ra("Root logger has no level set.");return null};
W.prototype.log=function(a,b,c){if(a.value>=Cb(this).value)for(n(b)&&(b=b()),a=new wb(a,String(b),this.Z),c&&(a.G=c),c="log:"+a.Y,k.console&&(k.console.timeStamp?k.console.timeStamp(c):k.console.markTimeline&&k.console.markTimeline(c)),k.msWriteProfilerMark&&k.msWriteProfilerMark(c),c=this;c;){b=c;var d=a;if(b.H)for(var e=0,f=void 0;f=b.H[e];e++)f(d);c=c.getParent()}};W.prototype.info=function(a,b){this.log(zb,a,b)};
var Db={},Eb=null,Fb=function(a){Eb||(Eb=new W(""),Db[""]=Eb,Eb.N(Ab));var b;if(!(b=Db[a])){b=new W(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=Fb(a.substr(0,c));c.t||(c.t={});c.t[d]=b;b.q=c;Db[a]=b}return b};p("ddab.layouts.utils.simpleUnicode.CharacterSet",{fa:"cjk"});var Hb=function(a,b){var c;switch(b){case "cjk":c=Gb}return c?c.test(a):!1};p("ddab.layouts.utils.simpleUnicode.matchesCharacterSet",Hb);for(var Ib=[/\u3000-\u303f/,/\u3040-\u309f/,/\u30a0-\u30ff/,/\uff00-\uffef/,/\u4e00-\u9fff/,/\u3400-\u4dff/,/\uf900-\ufaff/,/\uac00-\ud7a3/],Jb="",Kb=0,Lb=Ib.length;Kb<Lb;Kb++)Jb+=Ib[Kb].source;var Gb=new RegExp("["+Jb+"]");p("ddab.layouts.utils.simpleUnicode.CJK_REGEXP",Gb);var X=function(a,b,c,d){M.call(this);this.a=a;this.J=!1;this.k=b;a=this.a;b=U(a,"padding");var e=vb(a),f=a.style.maxWidth,f=(f?parseInt(f,10):a.getBoundingClientRect().width)-e.left-b.left-b.right-e.right;a=a.getBoundingClientRect().height-e.top-b.top-b.bottom-e.bottom;a=new x(f,a);this.w=a.width;this.v=a.height;this.B=0;this.C=c;this.ea=d;this.X=Fb("ddab.layouts.utils.DynamicTextFit");this.f=0;c=parseInt(S(this.a,"fontSize"),10);R(this.a,"overflow","hidden");(isNaN(c)||c<this.k)&&R(this.a,"font-size",
this.k+"px");this.C||R(this.a,"white-space","nowrap")};q(X,M);p("ddab.layouts.utils.DynamicTextFit",X);X.addEventListener=X.prototype.addEventListener;X.removeEventListener=X.prototype.removeEventListener;var Mb=/\s+/,Nb={display:"block",margin:0,overflow:"hidden",padding:0,position:"absolute",visibility:"hidden"},Y={m:"horizontal",i:"vertical"};
X.prototype.aa=function(){var a=Math.round(parseFloat(S(this.a,"fontSize"))),b=Ta(this.a).trim().split(Mb);if(1!=b.length||!/^[\s\xa0]*$/.test(b[0])){a=Ob(this,b,a,"vertical");this.B=a=Ob(this,b,a,"horizontal");if(this.ea){var c=this.B,d=b;if(!(c!=this.k||Z(this,d,c,Y.i)&&Z(this,d,c,Y.m))){var d=Pb(this,d,c,Y.i),d=Pb(this,d,c,Y.m),a=d.join(" "),e=Z(this,d,c,Y.m,!0),d=Z(this,d,c,Y.m,!1),a=1!=b.length||e?a+"\u2026":d?a.slice(0,-4)+"\u2026":Qb(this,a,c),b=this.a;u(null!=b,"goog.dom.setTextContent expects a non-null value for node");
if("textContent"in b)b.textContent=a;else if(3==b.nodeType)b.data=a;else if(b.firstChild&&3==b.firstChild.nodeType){for(;b.lastChild!=b.firstChild;)b.removeChild(b.lastChild);b.firstChild.data=a}else Oa(b),c=Pa(b),b.appendChild(c.createTextNode(String(a)));this.J=!0}}ob(this,"textfit")}};X.prototype.scaleText=X.prototype.aa;X.prototype.ca=function(a,b){var c=Ta(this.a);Hb(c,b)&&(this.k=a)};X.prototype.setAlternateMinFontSize=X.prototype.ca;X.prototype.S=function(){return this.B};
X.prototype.getScaledFontSize=X.prototype.S;X.prototype.Q=function(){return this.f};X.prototype.getCycleCount=X.prototype.Q;X.prototype.W=function(){return this.J};X.prototype.isTruncated=X.prototype.W;
var Z=function(a,b,c,d,e){e=Na("div",null,b.join(" ")+(e?"\u2026":""));a.a.appendChild(e);b=b.length;var f=S(a.a,"lineHeight"),g={},g="vertical"==d?{fontSize:c+"px",lineHeight:/^[\s\xa0]*$/.test(f)?"normal":f,maxWidth:Math.floor(a.w)+"px"}:{fontSize:c+"px",height:a.v+"px",lineHeight:"normal"!=f?f:c+"px",maxWidth:Math.floor(a.w)+"px",overflow:"auto",whiteSpace:a.C&&1<b?"normal":"nowrap"};xa(g,Nb);R(e,g);c=e.getBoundingClientRect();a="vertical"==d?Number(a.v.toFixed(4))>=Number(c.height.toFixed(4)):
e.scrollWidth<=a.w;e&&e.parentNode&&e.parentNode.removeChild(e);return a},Ob=function(a,b,c,d){for(;!Z(a,b,c,d)&&c>a.k;)c--,R(a.a,"font-size",c+"px");return c},Rb=function(a,b){S(a.a,"line-height");var c=Math.floor(a.v/b);return isNaN(c)?-1:c},Sb=function(a){R(a.a,{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"})},Qb=function(a,b,c){if(a.C)R(a.a,"word-wrap","break-word");else return Sb(a),b;var d;a.f=0;for(var e=b,f=6;!Z(a,[b],c,Y.i,!0)&&0<f;){if(2>Rb(a,c))return Sb(a),b;d=parseInt(.8*
b.length,10);d={A:b.substring(0,d),L:b.substring(d,b.length)};b=d.A;f--;a.f++}for(f=16;!Z(a,[b],c,Y.i,!0);){if(2>Rb(a,c)||0==f)return Sb(a),b;6<b.length?(d=b.length-6,d={A:b.substring(0,d),L:b.substring(d,b.length)},b=d.A):b=b.substring(0,b.length-1);f--;a.f++}f=0;if(d){for(;Z(a,[b],c,Y.i,!0);)b+=d.L.substr(f,1),f++,a.f++;b=b.substring(0,b.length-1);b+="\u2026";a.X.info(na("chars started with ",e.length," ended with ",b.length," removed ",e.length-b.length," chars in ",a.f," iterations"))}return b},
Pb=function(a,b,c,d){for(;1<b.length&&!Z(a,b,c,d,!0);)b.pop();return b};p("ddab.layouts.utils.styleUtils.getPaddingBox",function(a){return U(a,"padding")});p("ddab.layouts.utils.styleUtils.getMarginBox",function(a){return U(a,"margin")});var Tb=function(a){var b=U(a,"padding");a=vb(a);return new Q(b.top+a.top,b.right+a.right,b.bottom+a.bottom,b.left+a.left)};p("ddab.layouts.utils.styleUtils.getPaddingBorderBox",Tb);
p("ddab.layouts.utils.styleUtils.getBoundingClientRectContentSize",function(a){var b=a.getBoundingClientRect(),c=0,d=0;b&&(a=Tb(a),c=b.right-b.left-a.right-a.left,d=b.bottom-b.top-a.bottom-a.top);return new x(c,d)});
