function safeExecution(e){try{e()}catch(t){var n=window._wzErrorHandler;throw n&&n.notifyError&&n.notifyError(t,{ScriptLoad:!0}),t}}safeExecution(function(){function e(e){var t=r.quickExtend({fetchingFunction:void 0,insertionFunction:void 0,requestInsertionFunction:void 0,filesInsertionFunction:void 0,removingFunction:void 0,loginProvider:void 0,getIDFunction:r.defaultIdFunction,setIDFunction:r.defaultSetIdFunction,resetOnEvent:void 0,attributes:{}},e),n=this,i=!1,a={},o=0,s=!1,l=void 0,c=t.attributes;this.id=r.weakID(),this.allFetched=k.create(!1),this.duringFetching=k.create(!1),this.errorFetching=k.create(!1),this.loginRequired=k.create(!1),this.fetchedOnce=k.create(!1),this.itemsAddedEvent=b.create(),this.itemAddedEvent=b.create(),this.itemsRemovedEvent=b.create(),this.itemRemovingEvent=b.create(),this.itemsUpdatedEvent=b.create(),this.itemUpdatedEvent=b.create(),this.itemAddedEvent=b.create(),this.collectionResetEvent=b.create(),this.allFetchedEvent=b.create(),this.fetchingStartedEvent=b.create(),this.fetchingFinishedEvent=b.create(),this.supportsDelayedFetching=xo,this.isObservableCollection=xo,this.updateBatch=Pe.create();var u=t.resetOnEvent;u&&b.bind(u,function(){n.reset()}),this.initialize=function(e){n.put(e),o=e.length,n.fetchedOnce.setTrue()},this.getLoginProvider=function(){return t.loginProvider?t.loginProvider():void 0},this.getAttributes=function(){return c},this.setAttributes=function(e){r.quickExtend(c,e)},this.getItems=function(){return a},this.hasItems=function(){return!r.isEmptyObject(a)},this.getItem=function(e){return a[e]},this.isFetching=function(){return i},this.getItemsValues=function(){return r.getValues(a)},this.getIDFunction=function(){return t.getIDFunction},this.getOptions=function(){return t},this.remove=function(e){e=r.asArray(e);for(var t=[],i=0;i0&&n.itemsRemovedEvent.fireNew(t)},this.executeRemove=function(e,i,s,l){return s=r.valueOrDefault(s,To),l=r.valueOrDefault(l,To),t.removingFunction(e,i,function(){e=r.asArray(e);for(var t=0;t0&&n.itemsAddedEvent.fireNew(o),i.length>0&&n.itemsUpdatedEvent.fireNew(i)},this.requestInsertion=function(e,i){return i=r.extend({onSuccess:To,onError:To},i),i.onSuccess=r.hookBeforeMethod(i.onSuccess,function(e){e&&n.put(e)}),t.requestInsertionFunction(e,i)},this.addItems=function(e,i){return void 0===i&&(i=To),t.insertionFunction(e,function(o){e=r.asArray(e),o=r.asArray(o);for(var s=[],l=[],c=0;ci?n.fetchMore(e-i,t):t({fetchedItems:[],error:null})},this.fetchAll=function(e){n.fetchTo(1e4,e)},this.fetchAllNew=function(e,t){e=r.valueOrDefault(e,To),t=r.valueOrDefault(t,To),n.fetchTo(1e4,function(n){n&&n.error?t(n):e(n)})},this.fetchMore=function(e,c){if(c=r.valueOrDefault(c,To),!i&&!s){l={count:e,onFinish:c};var u=n.getLoginProvider();if(u&&!u.isLoggedIn())return void n.loginRequired.setTrue();n.loginRequired.setFalse(),i=!0,n.duringFetching.setTrue(),n.errorFetching.setFalse();var d=o;n.fetchingStartedEvent.fireNew(),t.fetchingFunction(d,e,function(r){o=Math.max(o,d+r.length),r.lengtha.width&&(i.width=a.width),i}function n(e){if(null===e)return null;if(e){if(e instanceof Wn)return e;var t,n=typeof e;if("object"===n&&1===e.nodeType)return t=e.getAttribute("data-element-id"),ji.getInstanceByID(t);if(r.isJQueryObject(e))return t=e.attr("data-element-id"),ji.getInstanceByID(t);if("string"===n||"number"===n)return ji.getInstanceByID(e)}}function i(e){switch(e.toLowerCase()){case"scrollbox":return uo.scrollBox;case"embed":return uo.embed;default:return uo.popup}}/*! * jQuery JavaScript Library v1.11.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-12-17T15:27Z */ !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){if(!("length"in e)||void 0===e.length)return!1;var t=e.length,n=ae.type(e);return"function"===n||ae.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e&&"length"in e}function i(e,t,n){if(ae.isFunction(t))return ae.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return ae.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ge.test(t))return ae.filter(t,e,n);t=ae.filter(t,e)}return ae.grep(e,function(e){return ae.inArray(e,t)>=0!==n})}function a(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function r(e){var t=Ce[e]={};return ae.each(e.match(be)||[],function(e,n){t[n]=!0}),t}function o(){he.addEventListener?(he.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(he.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(he.addEventListener||"load"===event.type||"complete"===he.readyState)&&(o(),ae.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(Ee,"-$1").toLowerCase();if(n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:we.test(n)?ae.parseJSON(n):n}catch(a){}ae.data(e,t,n)}else n=void 0}return n}function c(e){var t;for(t in e)if(("data"!==t||!ae.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(e,t,n,i){if(ae.acceptData(e)){var a,r,o=ae.expando,s=e.nodeType,l=s?ae.cache:e,c=s?e[o]:e[o]&&o;if(c&&l[c]&&(i||l[c].data)||void 0!==n||"string"!=typeof t)return c||(c=s?e[o]=X.pop()||ae.guid++:o),l[c]||(l[c]=s?{}:{toJSON:To}),"object"!=typeof t&&"function"!=typeof t||(i?l[c]=ae.extend(l[c],t):l[c].data=ae.extend(l[c].data,t)),r=l[c],i||(r.data||(r.data={}),r=r.data),void 0!==n&&(r[ae.camelCase(t)]=n),"string"==typeof t?(a=r[t],null==a&&(a=r[ae.camelCase(t)])):a=r,a}}function d(e,t,n){if(ae.acceptData(e)){var i,a,r=e.nodeType,o=r?ae.cache:e,s=r?e[ae.expando]:ae.expando;if(o[s]){if(t&&(i=n?o[s]:o[s].data)){ae.isArray(t)?t=t.concat(ae.map(t,ae.camelCase)):t in i?t=[t]:(t=ae.camelCase(t),t=t in i?[t]:t.split(" ")),a=t.length;for(;a--;)delete i[t[a]];if(n?!c(i):!ae.isEmptyObject(i))return}(n||(delete o[s].data,c(o[s])))&&(r?ae.cleanData([e],!0):ne.deleteExpando||o!=o.window?delete o[s]:o[s]=null)}}}function g(){return!0}function f(){return!1}function h(){try{return he.activeElement}catch(e){}}function p(e){var t=Oe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function m(e,t){var n,i,a=0,r=typeof e.getElementsByTagName!==Pe?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Pe?e.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],n=e.childNodes||e;null!=(i=n[a]);a++)!t||ae.nodeName(i,t)?r.push(i):ae.merge(r,m(i,t));return void 0===t||t&&ae.nodeName(e,t)?ae.merge([e],r):r}function v(e){De.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return ae.nodeName(e,"table")&&ae.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==ae.find.attr(e,"type"))+"/"+e.type,e}function C(e){var t=Ge.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function I(e,t){for(var n,i=0;null!=(n=e[i]);i++)ae._data(n,"globalEval",!t||ae._data(t[i],"globalEval"))}function S(e,t){if(1===t.nodeType&&ae.hasData(e)){var n,i,a,r=ae._data(e),o=ae._data(t,r),s=r.events;if(s){delete o.handle,o.events={};for(n in s)for(i=0,a=s[n].length;a>i;i++)ae.event.add(t,n,s[n][i])}o.data&&(o.data=ae.extend({},o.data))}}function P(e,t){var n,i,a;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ne.noCloneEvent&&t[ae.expando]){a=ae._data(t);for(i in a.events)ae.removeEvent(t,i,a.handle);t.removeAttribute(ae.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,C(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ne.html5Clone&&e.innerHTML&&!ae.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&De.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function w(t,n){var i,a=ae(n.createElement(t)).appendTo(n.body),r=e.getDefaultComputedStyle&&(i=e.getDefaultComputedStyle(a[0]))?i.display:ae.css(a[0],"display");return a.detach(),r}function E(e){var t=he,n=Je[e];return n||(n=w(e,t),"none"!==n&&n||(Ze=(Ze||ae("'.format(h))}else{var p=c(g);f=r(''.format(p))}var m=setTimeout(function(){o(),e.reject("timeout")},s);f.css("display","none").appendTo(l)}function t(e){delete i[e]}function n(e,t){a.execute(),i[e]=t}var i={},a=f.create(function(){Rn.addJSONListener(function(e){var t=i[e.id];t&&t(e.content)})}),o=m.create(function(){var e=r.Deferred();return r(function(){try{var t,n=document.body,i=document.createElement("iframe");i.style.display="none",i.setAttribute("src","data:text/html;base64,Kg=="),n.appendChild(i);try{t=!!i.contentDocument}catch(a){t=!1}n.removeChild(i),e.resolve(t)}catch(a){e.resolve(!1)}}),e.promise()});this.getScriptWithLoading=function(t){t=r.quickExtend({timeout:l.VeryLong,urlParam:"url",callbackIdParam:"id",cache:!1,appendTo:"body",callback:To},t);var n=r.Deferred();return t.createDataHtml?o.getValue().done(function(i){e(n,i,t)}):e(n,!1,t),n.promise()}}),qn=Do(function(){function e(){return"{0}/services/lists".format(t?t:"")}var t;this.initialize=function(e){t=e},this.fetchItemData=function(t,n,i,a,o){r.ajaxJason(e(),"fetchItem",{listName:n,listId:t,alias:i.alias,id:i.id},a,o)},this.saveListItems=function(t,n,i,a,o,s){s=r.quickExtend({},s),r.ajaxJason(e(),"saveItem",{listName:n,listId:t,items:i,createNewList:s.createNewList},a,o)},this.deleteListItems=function(t,n,i,a,o,s){s=r.quickExtend({},s),r.ajaxJason(e(),"deleteItems",{listName:n,listId:t,ids:i,createNewList:s.createNewList},a,o)},this.fetchListsContent=function(t,n,i){r.ajaxJason(e(),"fetchContent",t,n,i)},this.fetchAllListsContent=function(t,n,i){r.ajaxJason(e(),"fetchAllListsContent",{lists:t},n,i)}}),Un=Do(function(){function e(){return"{0}/form".format(X.ServicesBasePath?X.ServicesBasePath:"")}this.submitForm=function(t,n,i,a,o,s,l,c){r.ajaxJasonWithCredentials(e(),"Submit",{siteID:t,siteType:n,formID:i,formValues:o,formSource:s},l,c)}}),$n=Do(function(){function e(e,t,n){var i=e[t];return i?r.quickExtend(i,n):e[t]=n}function t(e,t){return function(n,i,a,r,o){t.call(this,n,i,a,r,o),e.call(this,n,i,a,r,o)}}this.extendProperties=function(t,n){return e(t,"properties",n)},this.extendMethods=function(t,n){return e(t,"methods",n)},this.extendAggregatedDefinitions=function(t,n){e(t.aggregatedMethods,"definitions",n)},this.extendAggregatedMethods=function(t,n){e(t.aggregatedMethods,"aggregations",n)},this.extendLazyInitializationProperties=function(t,n){e(t,"lazyInitializationProperties",n)},this.extendElementInstanceMethods=function(e){r.quickExtend(Wn.prototype,e)},this.hookAggregatedMethods=function(e,n){var i=e.aggregatedMethods,a=i.aggregations;if(a){for(var r in n){var o=n[r];if(void 0!==o){var s=a[r];s?a[r]=t(s,o):a[r]=o}}return a}return i.aggregations=n}}),Wn=function(){function e(e,t){e=r.quickExtend({initialPropertiesValues:void 0,elementID:void 0,isForTemplateUse:!1,structureMetaData:void 0,thumbsResolver:void 0},e);var n=this;n.id=void 0!==e.elementID?e.elementID:fa.generateWebsiteId(),n.$element=null,n.decorators={},n.backgroundLayers={},n.data={},n.currentActions={},n.currentEffects={},n.currentPropertiesValues={},n.parentInstance=null,n.childInstances=[],n.data.isForTemplateUse=e.isForTemplateUse,n.data.structureMetaData=e.structureMetaData,n.data.thumbsResolver=e.thumbsResolver,n.$container=null,n.elementType=t,n.isVisible=!0,n.properties={},n.affectedProperties={},n.bindings=[],u||n._lazyPropertiesCreator(),n.properties=Ki.createProperties(t.getTypeProperties(),e.initialPropertiesValues,t.getPropertiesDefaults()),n.onCreation()}function t(e,t){var n={};return r.eachEntry(e,function(e,i){t&&!t(i)||(n[i.id]=i)}),n}function n(e,t,i,a,r){if(r)for(var o=0;o0){ur.startRenderingBatch();for(var t=0;ta&&(!s||s.priority>d)&&(s=u)}s?l.insertBefore(s.$element):l.insertBefore(n.$elementBorderBox),o={priority:a,$element:l},r[i]=o}return o.$element},g.getBackgroundLayer=function(e){var t=this,n=t.backgroundLayers[e.name];return n?n.$element:void 0},g.setBorderTarget=function(e){var t=this;t.$elementBorderTarget.pushElements(e.addClass("element-border-target")),b.fireLazyEvent(t,"borderTargetAddedEvent",e)},g.getDescendingInstances=function(e,t){void 0===e&&(e=!0);var i=this,a=[];return n(i,e,i,a,t),a},g.getContentSize=function(){return ia.getContentSize(this)},g.getSize=function(){return ia.getElementSize(this)},g.getPosition=function(e){return ia.getElementOffset(this,e)},g.getArea=function(e){return ia.getElementArea(this,e)},g.getRelativeToParentArea=function(e){var t=this;if(t.parentInstance){var n=e?e:t.parentInstance.getArea(),i=t.getArea();return i?r.expandArea(i,{top:n.top,bottom:-n.top}):i}return t.getArea()},g.getChildIndex=function(){return this.childIndex.getValue()},g.getChildInstances=function(){return this.childInstances},g.unbindPropertyChange=function(e,t){return this.propertyChangedEvent.unbind(t)},g.bindPropertyChange=function(e,t,n){return this.propertyChangedEvent.bind(e,t,n)},g.activateState=function(e,t,n){t=r.valueOrDefault(t,!1),n=r.valueOrDefault(n,!0),n||Ki.setCanPerformTransition(!1,"activateState");var i=this;"string"!=typeof e&&(e=e.name),Ki.addGlobalState(e,i,void 0,n),i.applyComplexStatesOnInstance(Ei[e],n),n||Ki.setCanPerformTransition(!0,"activateState")},g.deactivateState=function(e,t,n){t=r.valueOrDefault(t,!1),n=r.valueOrDefault(n,!0),n||Ki.setCanPerformTransition(!1,"deactivateState");var i=this;Gi.layoutUpdateBatch.start(),Ki.UpdateBatch.start(),"string"!=typeof e&&(e=e.name),Ki.removeGlobalState(e,i,void 0,n),i.removeComplexStateFromInstance(Ei[e],n),Ki.UpdateBatch.finish(),Gi.layoutUpdateBatch.finish(),n||Ki.setCanPerformTransition(!0,"deactivateState")},g.isTriggerEnabled=function(e){var t,n=this;return e===Pi.MouseEnter||e===Pi.MouseEnterArea||e===Pi.MouseLeave||e===Pi.MouseLeaveArea?(n.isContent()&&(t=n.getMainSkinInstance(),t&&(t.hasFeature(Qn.DataListItem)?t=t.getItemMainParent():t.isType(Yn.SkinNavigationButton)&&(t=t.parentInstance))),r.valueOrDefault(t,n).getPropertyValue("showHoverEffects")):!0},g.activateTrigger=function(e,t,n){var i=this;i.isTriggerEnabled(e)&&(b.fireLazyEvent(i,"triggerActivated",e.name,t),r.eachItem(e.activatedStates,function(e,t){i.activateState(t,n)}),r.eachItem(e.deactivatedStates,function(e,t){i.deactivateState(t,n)}))},g.applyComplexStatesOnInstance=function(e,t){var n=this;Ki.addCurrentState(n,e.id);var i=Ki.getCurrentStates(n);r.eachEntry(i,function(a){a=parseInt(a);var r=wi.getComplexIdFromIds(a,e.id);a!==e.id&&!i[r]&&Ei[r]&&(Ki.addGlobalState(Ei[r],n,void 0,t),Ki.addCurrentState(n,r))})},g.removeComplexStateFromInstance=function(e,t){var n=this;Ki.removeCurrentState(n,e.id);var i=Ki.getCurrentStates(n);r.eachEntry(i,function(a){var r=wi.getComplexIdWithOutId(a,e.id);a=parseInt(a),a!==e.id&&i[r]&&(Ki.removeGlobalState(Ei[a],n,void 0,t),Ki.removeCurrentState(n,a))})},e}(),jn=function(){function e(e,t){if(e._currentInstance=t,t){var n=t.elementType;e._currentInstanceId=t.id,e._currentInstanceClass=n.typeClass}}var t=v.extend("ElementsRenderer",function(t){return{init:function(){t.call(this),this._instancesStack=[],this._tagsStack=[],this._currentInstance=void 0},startInstanceRendering:function(t,n){this._instancesStack.push(t),e(this,t);var i=["design-element"];return n&&i.push(n),this.openTag("div",i.join(" "),void 0,t.getDomId()),this},finishInstanceRendering:function(){var t=this._instancesStack;return t.pop(),e(this,t[t.length-1]),this.closeTag(),this},startElementContentRendering:function(e,t){var n=["element-content"];t&&n.push(t),this.openTag(e,n.join(" "))},finishElementContentRendering:function(){return this.closeTag()},addTag:function(e,t,n){return this.openTag(e,t,n).closeTag()},openTag:function(e,t,n,i){var a=this._currentInstanceClass,r=this._currentInstanceId,o=this,s=[];t&&s.push(t),n&&s.push("remember-part"),a&&s.push(a);var l=s.join(" ");return o.append("<").append(e).append(' class="').append(l),void 0!==i&&o.append('" id="').append(i),o.append('" data-element-id="').append(r).append('"'),n&&o.append(' data-element-part="').append(n).append('"'),o.append(">"),this._tagsStack.push(e),this},closeTag:function(){var e=this,t=this._tagsStack.pop();return e.append(""),this}}});return t.renderElement=function(e){var n=new t;return e.renderElement(n),""+n},t}(),Gn=function(){var e=g.extend("ElementType",{init:function(e,t){this.name=e,this.title=t.title;var n=t.itemName;n&&(this.itemName=t.itemName);var i=t.itemTitle;i&&(this.itemTitle=i);var a=t.properties;a&&(this.properties=a);var o=t.methods;o&&(this.methods=o);var s=t.ancestorElementType;s&&(this.ancestorElementType=s);var l=t.features;this.features=void 0!==l?l:[];var c=t.aggregatedMethods;this.aggregatedMethods=void 0!==c?c:{};var u=t.triggers;u&&(this.triggers=u);var d=t.defaultProperties;d&&(this.defaultProperties=d);var g=t.className;g&&(this.className=g);var f=t.calculatedProperties;f&&(this.calculatedProperties=f);var h=t.delegatedDefinitionsProperties;h&&(this.delegatedDefinitionsProperties=h);var p=t.customDelegatedProperties;p&&(this.customDelegatedProperties=p);var m=t.supportedStates;m&&(this.supportedStates=m);var v=t.lazyInitializationProperties;v&&(this.lazyInitializationProperties=v);var y=t.extensions;y&&r.quickExtend(this,y);var b=t.isNotDesignElement;b&&(this.isNotDesignElement=b)},lazyInitializationProperties:void 0});return e.create=function(t,n){return new e(t,n)},e}(),Xn=Do(function(){function e(){l&&(r.eachItem(l,function(e,n){var i=n.properties;if(i)for(var a in i)t(a,i[a])}),l=void 0)}function t(e,t){t.name=e,t.isBound||(t.isBound=ko),t.isBoundToObservableWithValue=a,t.isBoundToObservable=i,t._onChange=t.onChange,t.onChange=n,void 0===t.priority&&(t.priority=-1),void 0===t.isStateProperty||t.isStateProperty===!1?t.isStateProperty=ko:t.isStateProperty===!0&&(t.isStateProperty=xo),t.getResetValue||(t.getResetValue=t.defaultValue?t.defaultValue:To),t._index=s++,ei[e]=t,Zn.push(t)}function n(e,t,n,i,a){var r=this._onChange;r&&(e.elementType.isDelegatedProperty(this.name)||(e.disableStyleProperties()&&Ki.getEditableStylePropertiesMap()[this.name]?r.call(e,e,this.getResetValue(),n,t,a):r.call(e,e,t,n,i,a)))}function i(e){return void 0!==e.bindingObject}function a(e){return void 0!==e.bindingValue&&this.isBoundToObservable(e)}var o=1,s=0,l=[];this.initialize=function(){e(),ni.initialize()},this.initializeProperties=e,this.registerDefinition=function(e,t){var n=e===Yn;for(var i in t){var a,s=t[i];if(n)a=Gn.create(i,s),l.push(a);else{var c={name:i,properties:{},methods:{},features:[],aggregatedMethods:{definitions:{},aggregations:{}},triggers:{},isFeature:!0};s?(a=r.extendMissing(s,c),l.push(a)):a=c}a._typeIndex=o++,Kn.push(a),e[i]=a}},this.registerPropertiesCategories=function(e){for(var t in e){var n=e[t];Jn[t]=r.quickExtend(n,{name:t,properties:{}})}},this.registerMenuItemTypes=function(e){for(var t in e){var n=e[t];ti[t]=r.quickExtend(n,{name:t})}}}),Yn={},Qn={},Kn=[],Zn=[],Jn={},ei={},ti={};Xn.registerPropertiesCategories({Other:{title:"General",iconClass:"sprite-icon sprite-property-category-misc"},Line:{title:"Line",iconClass:"sprite-icon sprite-property-category-line",shortTitle:"Line"},Layout:{title:"Layout",iconClass:"sprite-icon sprite-property-category-layout"},SizeAndPosition:{title:"Size And Position",iconClass:"sprite-icon sprite-property-category-size-and-position"},Shadow:{title:"Shadow",iconClass:"sprite-icon sprite-property-category-shadow",shortTitle:"Shadow"},Rotation:{title:"Rotation",iconClass:"sprite-icon sprite-property-category-rotation"},Padding:{title:"Padding",iconClass:"sprite-icon sprite-property-category-padding"},Margin:{title:"Margin",iconClass:"sprite-icon sprite-property-category-margin"}});var ni=Do(function(){function e(e,t,n){e._typeMethods=Array(n),e._compiledType=t,e.typeClass=t.c;var i=t.dd;i&&(delete t.dd,e.delegatedDefinitionsMap=a(i));var r=t.i;r&&(e._inheritedTypesMap=a(r))}function t(e){var t=e.lazyInitializationProperties;for(var n in t)k[n]=t[n],F[n]=e}function n(e){var t=e._calculatedPropertiesMap;if(void 0===t){t=e._calculatedPropertiesMap={}; var n=e._compiledType,i=n.cp;if(i){for(var a=i.length,r=0;a>r;r++)t[i[r]]=!0;delete n.cp}}return t}function i(e){var t=e._compiledType,n=t.p;delete t.p;for(var i=n.length,a=e._typeProperties=Array(i),r=e._propertiesDefaults={},o=0;i>o;o++){var s=n[o],l=s;void 0!==l.i&&(l=l.i);var c=Zn[l],u=c.name;if(a[o]=c,void 0!==s.d){var d=Kn[s.d-1];r[u]=d.defaultProperties[u]}else{var g=c.defaultValue;r[u]=g?g:To}}}function a(e){var t={};if(e)for(var n=e.length,i=0;n>i;i++){var a=Kn[e[i]-1];t[a.name]=a}return t}function o(e,t){var n=Kn[e-1].aggregatedMethods,i=n.aggregations;if(i){var a=i[t];if(a)return a}return n.definitions[t]}function s(e,t){return function(n,i,a,r,o){return e.call(this,t,n,i,a,r,o)}}function l(e,t,n,i,a,r,o){for(var s=t.length,l=0;s>l;l++)t[l].call(e,n,i,a,r,o)}function c(e){return function(t,n,i,a,r){l(this,e,t,n,i,a,r)}}function u(e){var t=e._featuresMap={},n=e._elementDefinitions=[],i=e._compiledType,a=i.d;delete i.d;for(var r=a.length,o=0;r>o;o++){var s=Kn[a[o]-1];n.push(s),s.isFeature&&(t[s.name]=s)}}function g(e){var t=e._featuresMap;return t?t:(u(e),e._featuresMap)}function f(e){var t=Wn.prototype,n=e.methods;y(t,n,e.methodNames),b(t,n.length,e.aggregated,e.aggregatedNames),x?m(t):p(t),d.addGetLazyProperty(t)}function h(e,t){var n=e.getLazyInitializationProperties();if(n){var i=d.createInitializerFunction(t);return d.createInitializerFunction(n,i)}return d.createInitializerFunction(t)}function p(e){var t=Wn.LazyInitializationProperties;e._lazyPropertiesCreator=function(){var e=this,n=e.elementType,i=n._aggLazyPropertiesCreator;void 0===i&&(n._aggLazyPropertiesCreator=i=h(n,t)),i.call(e)}}function m(e){d.defineLazyProperties(e,Wn.LazyInitializationProperties);var t=k;t=v(k),d.defineLazyProperties(e,t)}function v(e){return r.mapDictionary(e,function(e,t){var n=F[e];return function(){var i=this;if(!i.hasOneOfDefinitions(n))throw Error("ElementType "+i.elementType.name+' try to access to member "'+e+'" while this property defined in '+n.name);return t.call(i)}})}function y(e,t,n){for(var i=t.length,a=0;i>a;a++){var r=t[a],o=n[a];e[o]=I(a,r,o,e[o])}}function b(e,t,n,i){for(var a=n.length,r=0;a>r;r++){var o=n[r],s=i[r];e[s]=w(r+t,o,s)}}function C(e,t,n,i,a,r,o,s,l,c){var u=e.elementType,d=u._typeMethods,g=d[t];return void 0===g&&(g=S(u,n,i,a),d[t]=g),e[i]=g,g.call(e,r,o,s,l,c)}function I(e,t,n,i){return function(a,r,o,s,l){return C(this,e,t,n,i,a,r,o,s,l)}}function S(e,t,n,i){var a=t[e._typeIndex],r=!1;if(void 0===a){if(void 0===i)throw Error(e.name+" is not implement "+n);r=!0}if(r)return i;var o=a.length;if(void 0===o)return Kn[a-1].methods[n];var l=a[0],c=0===l?i:Kn[l-1].methods[n];if(!c)throw Error(e.name+" is not implement "+n);for(var u=1;o>u;u++){var d=Kn[a[u]-1].methods[n];c=s(d,c)}return c}function P(e,t,n,i,a,r,o,s,l){var c=e.elementType,u=c._typeMethods,d=u[t];void 0===d&&(d=E(c,n,i),u[t]=d),e[i]=d,d.call(e,a,r,o,s,l)}function w(e,t,n){return function(i,a,r,o,s){P(this,e,t,n,i,a,r,o,s)}}function E(e,t,n){var i=t[e._typeIndex];if(void 0===i)throw Error(e.name+" is not implement "+n);var a;if(null===i)return T;if(void 0===(a=i.length))return o(i,n);if(1===a)return o(i[0],n);for(var r=Array(a),s=0;a>s;s++)r[s]=o(i[s],n);return c(r)}var T=To,x=Wn.useLazyProperties();if(x)var k={},F={};var D=[];this.initialize=function(){var n=Y.ElementsModel,i=n.types,a=n.methods.length+n.aggregated.length;for(var r in Yn){var o=Yn[r],s=i[o._typeIndex];e(o,s,a)}for(var l=n.lazy,c=l.length,u=0;c>u;u++){var d=Kn[l[u]-1];x&&t(d),D.push(d)}f(n),delete Y.ElementsModel},Gn.extendPrototype({isDelegatedProperty:function(e){return!!this.getDelegatedProperties()[e]},hasFeature:function(e){return void 0!==g(this)[e.name]},isTypeOf:function(e){var t=this;return t===e||t.hasAncestorType(e)},hasOneOfDefinitions:function(e){var t=this;return e=r.asArray(e),r.any(e,function(e){return t===e||t.hasFeature(e)||t.hasAncestorType(e)})},isType:function(e){return this===e},getSupportedStates:function(){var e=this,t=e._supportedStates;if(!t){t=e._supportedStates=[];for(var n=this._elementDefinitions,i=n.length,a=0;i>a;a++){var o=n[a];o.supportedStates&&r.merge(t,o.supportedStates)}}return t},getElementDefinitions:function(){var e=this._elementDefinitions;return e?e:(u(this),this._elementDefinitions)},getFeaturesMap:function(){return g(this)},getAncestorsMap:function(){return this._inheritedTypesMap},hasAncestorType:function(e){var t=this._inheritedTypesMap;return void 0!==t&&void 0!==t[e.name]},isCalculatedProperty:function(e){return!!n(this)[e]},getTypeProperties:function(){var e=this._typeProperties;return e?e:(i(this),this._typeProperties)},getPropertiesDefaults:function(){var e=this._propertiesDefaults;return e?e:(i(this),this._propertiesDefaults)},getPropertiesDefaultValues:function(){var e=this._propertiesDefaultValues;if(!e){e=this._propertiesDefaultValues={};var t=this.getPropertiesDefaults();r.eachEntry(t,function(t,n){e[t]=n()})}return e},getCalculatedPropertiesMap:function(){return n(this)},getDelegatedProperties:function(){var e=this._delegatedProperties;if(!e){var t=this._compiledType,n=t.dp;if(n){delete t.dp;var i=n.length;e=this._delegatedProperties={};for(var a=0;i>a;a++){var r=Zn[n[a]];e[r.name]=r}}else e=this._delegatedProperties={}}return e},getLazyInitializationProperties:function(){var e=this,t=e._lazyProperties;if(void 0===t){var n=e.getAncestorsMap(),i=e.getFeaturesMap(),a=D.length;t={};for(var o=!1,s=0;a>s;s++){var l=D[s],c=e===l;if(!c){var u=l.name;c=void 0!==i[u]||void 0!==n&&void 0!==n[u]}if(c){var d=l.lazyInitializationProperties;r.quickExtend(t,d),o=!0}}o||(t=!1),e._lazyProperties=t}return t}}),x&&(Gn.getAllLazyInitializationProperties=function(){return k})}),ii=Do(function(){function e(){ii.registerDataSourceItemFields([{name:"index",type:"index",supportElementContentBinding:function(e){return ke.contains(e,[Yn.label.name,Yn.freeText.name])},getContentType:function(){return ci.Text}},{name:"image",type:"image",supportElementContentBinding:function(e){return ke.contains(e,[this.getElementTypeName()])},getContentType:function(){return ci.Image}},{name:"imageGallery",type:"imageGallery",supportElementContentBinding:function(e){return ke.contains(e,[this.getElementTypeName()])},getContentType:function(){return ci.Data}},{name:"breadcrumb",type:"breadcrumb",supportElementContentBinding:ko,getContentType:function(){return ci.Data}},{name:"StorePrice",type:"StorePrice",supportElementContentBinding:xo,getContentType:function(){return ci.Text}},{name:"icon",type:"icon",supportElementContentBinding:function(e){return ke.contains(e,[this.getElementTypeName()])},getContentType:function(){return ci.Icon}},{name:"fontIcon",type:"fontIcon",supportElementContentBinding:function(e){return ke.contains(e,[this.getElementTypeName()])},getContentType:function(){return ci.FontIcon}},{name:"title",type:"title",supportElementContentBinding:function(e){return ke.contains(e,[Yn.label.name,Yn.freeText.name])},getContentType:function(){return ci.Text}},{name:"hideableText",type:"hideableText",supportElementContentBinding:xo,useTitleAsDemoData:!0,getContentType:function(){return ci.Text}},{name:"description",type:"description",supportElementContentBinding:function(e){return ke.contains(e,[Yn.label.name,Yn.freeText.name])},getContentType:function(){return ci.TextArea}},{name:"date",type:"date",supportElementContentBinding:function(e){return ke.contains(e,[this.getElementTypeName()])},getContentType:function(){return ci.Date}},{name:"content",type:"content",supportElementContentBinding:function(e){return e===this.getElementTypeName()},getContentType:function(){return ci.Content}},{name:"alt",type:"alt",getContentType:function(){return ci.Alt},supportElementContentBinding:ko},{name:"video",type:"video",supportElementContentBinding:function(e){return ke.contains(e,[this.getElementTypeName()])},getContentType:function(){return ci.Video}},{name:"paypal",type:"paypal",supportElementContentBinding:function(e){return ke.contains(e,[this.getElementTypeName()])},getContentType:function(){return ci.PayPal}},{name:"input",type:"input",supportElementContentBinding:function(e){return ke.contains(e,[this.getElementTypeName()])},getContentType:function(){return ci.TextInput}},{name:"link",type:"link",supportElementContentBinding:function(e){return ke.contains(e,[Yn.label.name])},getContentType:function(){return ci.Link}},{name:"data info",type:"dataInfo",supportElementContentBinding:ko,getContentType:function(){return ci.DataInfo}},{name:"dateRange",type:"dateRange",supportElementContentBinding:ko,getContentType:function(){return ci.DateRange}},{name:"percentage",type:"percentage",supportElementContentBinding:ko,getContentType:function(){return ci.Percentage}},{name:"data",type:"data",supportElementContentBinding:ko,getContentType:function(){return ci.Data}},{name:"buy Button",type:"buyButton",supportElementContentBinding:ko,getContentType:function(){return ci.BuyButton}}])}var t={};this.initialize=function(){e()},this.setDataSourcesFromSave=function(e){e||(e={}),t=e},this.loadDataSource=function(e,t,n,i){return ii.registerDataSourceInstance(e,t,n,i)},this.registerDataSourceInstance=function(e,t,n,i){var a=new e(t,n,i);return ai[t]=a,a},this.registerDataSourceItemFields=function(e){r.eachItem(e,function(e,t){oi[t.type]=r.quickExtend({iconClass:"sprite-icon sprite-tool-category-apps",convertValueToFieldValue:r.returnValue,convertFieldValueToValue:r.returnValue,supportVisualizerBinding:xo},oi[t.type],t)})},this.getFieldDefaultProperties=function(e,t){var n={};return e.initialPropertiesValues&&(n=e.initialPropertiesValues[t]?r.evaluateWhenFunction(e.initialPropertiesValues[t]):r.evaluateWhenFunction(e.initialPropertiesValues.Default)),r.cloneObject(n)}}),ai={},ri={},oi={},si=function(){var e={idFunction:function(e){return e.name}};return g.extend("BaseDataSource",{init:function(e,t,n){var i=this;i.id=e,i.name=e,i.dataSourceInfo=t,i.instance=n,i.instanceId=n?n.id:void 0},lazyInitializationProperties:{itemUpdatedEvent:function(){var e=b.createNamedEvents();return this.collectionItems.itemChangedEvent.bind(function(t){e.fireNew(t)}),e},itemAddedEvent:b.create,currentItemChangedEvent:b.create,itemsInformation:Mt.create,collectionItems:function(){var e=zt.create(this.itemsInformation),t=this,n=t.sortingFunction;return n&&e.itemsChangedEvent.bind(function(){t._sortedItems=void 0}),e},fieldsInformation:function(){return Mt.create(e)},collectionFields:function(){return zt.create(this.fieldsInformation)},refreshOperationsBarrier:Pn.create,_refreshExecution:function(){var e=this.instance;return function(){e.onDataSourceRefresh()}}},_sortedItems:void 0,manageItemsPanelName:void 0,manageItemsPanelTitle:void 0,refreshDataSource:function(){this.refreshOperationsBarrier.requestExecution(this._refreshExecution,"refresh")},sortingFunction:function(e,t){var n=e,i=t,a=parseInt(n.index),r=parseInt(i.index);return void 0!==a&&void 0!==r?a-r:void 0!==a?-1:void 0!==r?1:0},invalidateAllItems:function(){this.itemsInformation.invalidateItems(this.itemsInformation.getItemsValues())},onWizardFinished:void 0,getIndexBetweenTwoItems:function(e,t){return e+(t>e?.5*(t-e):.5*(e-t))},openItemsDialog:void 0,getCollectionItems:function(){return this.collectionItems},getCollectionFields:function(){return this.collectionFields},getAllItems:function(){return this.collectionItems.getItems()},getAllDataItems:function(){return this.collectionItems.getItems()},getSortedItems:function(){var e=this,t=e._sortedItems;if(!t){var n=e.sortingFunction;if(!n)throw Error("sortingFunction is not implement");e._sortedItems=t=r.getValues(e.collectionItems.getItems()).sort(n)}return t},fetchAllItems:function(e){var t=this.getSortedItems();e({fetchedItems:t,totalCount:t.length})},fetchItems:function(e,t,n,i,a){var o=this.getSortedItems(),s=o.length;if(a.fetchAlways&&e>=s){var l=t-e;e=r.divideNoReminder(s-1,l)*l,t=e+l}return n({fetchedItems:o.slice(e,t),totalCount:s})},getItem:function(e){return this.collectionItems.getItem(e)},fetchDataItem:function(e,t,n,i){var a=this.collectionItems.getItem(e);return!a&&i&&i(),a&&n&&n(a),a}})}(),li=si.extend("DynamicPageDataSource",function(e){return{init:function(t,n,i){e.call(this,t,n,i)}}}),ci={Text:0,TextArea:1,Image:2,TextInput:4,Icon:5,Link:6,Video:7,paypal:8,Date:9,FontIcon:10,Alt:11,Content:12,DataInfo:13,DateRange:14,Percentage:15,Data:16,BuyButton:17},ui={StaticCollection:{icons:Be.addKeyAsField({facebook:{collectionName:"public-font-icons",iconName:"facebook"},googlePlus:{collectionName:"public-font-icons",iconName:"google-plus"},twitter:{collectionName:"public-font-icons",iconName:"twitter2"},linkedin:{collectionName:"public-font-icons",iconName:"linkedin"},pinterest:{collectionName:"public-font-icons",iconName:"pinterest"},reddit:{collectionName:"public-font-icons",iconName:"reddit"},instagram:{collectionName:"public-font-icons",iconName:"instagram"},youtube:{collectionName:"public-font-icons",iconName:"youtube"},flickr:{collectionName:"public-font-icons",iconName:"flickr"},soundCloud:{collectionName:"public-font-icons",iconName:"soundcloud"},tripAdvisor:{collectionName:"public-font-icons",iconName:"tripadvisor"},picasa:{collectionName:"public-font-icons",iconName:"picasa"},behance:{collectionName:"public-font-icons",iconName:"behance"},etsy:{collectionName:"public-font-icons",iconName:"etsy"},tumblr:{collectionName:"public-font-icons",iconName:"tumblr"},dribbble:{collectionName:"public-font-icons",iconName:"dribbble"},vimeo:{collectionName:"public-font-icons",iconName:"vimeo-2342"},vk:{collectionName:"public-font-icons",iconName:"vk"},renren:{collectionName:"public-font-icons",iconName:"renren"},weibo:{collectionName:"public-font-icons",iconName:"weibo"}},"name")},Collection1:{icons:Be.addKeyAsField({facebook:{collectionName:"public-font-icons",iconName:"facebook"},googlePlus:{collectionName:"public-font-icons",iconName:"google-plus"},twitter:{collectionName:"public-font-icons",iconName:"twitter2"},linkedin:{collectionName:"public-font-icons",iconName:"linkedin"},pinterest:{collectionName:"public-font-icons",iconName:"pinterest"},reddit:{collectionName:"public-font-icons",iconName:"reddit"},instagram:{collectionName:"public-font-icons",iconName:"instagram"},youtube:{collectionName:"public-font-icons",iconName:"youtube"},flickr:{collectionName:"public-font-icons",iconName:"flickr"},soundCloud:{collectionName:"public-font-icons",iconName:"soundcloud"},tripAdvisor:{collectionName:"public-font-icons",iconName:"tripadvisor"},picasa:{collectionName:"public-font-icons",iconName:"picasa"},behance:{collectionName:"public-font-icons",iconName:"behance"},etsy:{collectionName:"public-font-icons",iconName:"etsy"},tumblr:{collectionName:"public-font-icons",iconName:"tumblr"},dribbble:{collectionName:"public-font-icons",iconName:"dribbble"},vimeo:{collectionName:"public-font-icons",iconName:"vimeo-2342"},vk:{collectionName:"public-font-icons",iconName:"vk"},renren:{collectionName:"public-font-icons",iconName:"renren"},weibo:{collectionName:"public-font-icons",iconName:"weibo"}},"name")},Collection2:{icons:Be.addKeyAsField({facebook:{collectionName:"public-font-icons",iconName:"facebook"},googlePlus:{collectionName:"public-font-icons",iconName:"google-plus"},twitter:{collectionName:"public-font-icons",iconName:"twitter"},linkedin:{collectionName:"public-font-icons",iconName:"linkedin"},pinterest:{collectionName:"public-font-icons",iconName:"pinterest"},reddit:{collectionName:"public-font-icons",iconName:"reddit"},instagram:{collectionName:"public-font-icons",iconName:"instagram"},youtube:{collectionName:"public-font-icons",iconName:"youtube"},flickr:{collectionName:"public-font-icons",iconName:"flickr"},soundCloud:{collectionName:"public-font-icons",iconName:"soundcloud"},tripAdvisor:{collectionName:"public-font-icons",iconName:"tripadvisor"},picasa:{collectionName:"public-font-icons",iconName:"picasa"},behance:{collectionName:"public-font-icons",iconName:"behance"},etsy:{collectionName:"public-font-icons",iconName:"etsy"},tumblr:{collectionName:"public-font-icons",iconName:"tumblr"},dribbble:{collectionName:"public-font-icons",iconName:"dribbble"},vimeo:{collectionName:"public-font-icons",iconName:"vimeo-2342"},vk:{collectionName:"public-font-icons",iconName:"vk"},renren:{collectionName:"public-font-icons",iconName:"renren"},weibo:{collectionName:"public-font-icons",iconName:"weibo"}},"name")}},di={Get:"GET",Put:"PUT",Post:"POST",Delete:"DELETE"},gi=function(e,t){if("string"!=typeof e&&"function"!=typeof e)throw new TypeError("The parameter 'url' should be a valid string or a function.");return this.url=e,this.parameters=[],this.options=r.quickExtend({dataType:"json",contentType:"application/json",httpMethod:di.Get},t),this.setHttpMethod(this.options.httpMethod),this.success=b.create(),this.error=b.create(),this};gi.prototype.constructor=gi,gi.prototype.execute=function(){var e=this,t=r.Deferred(),n=r.evaluateWhenFunction(e.url,e),i=e.parameters.filter(function(e){return e.type===pi.Query});if(i.length>0){var a=i.map(function(e){return e.name+"="+encodeURIComponent(e.getValue())});n+="?"+a.join("&")}var o=e.parameters.filter(function(e){return e.type===pi.Template});o.length>0&&o.forEach(function(e){n=n.replace(RegExp("{"+e.name+"}","i"),e.getValue())});var s={url:n,method:e.getHttpMethod(),dataType:r.evaluateWhenFunction(e.options.dataType,e),contentType:r.evaluateWhenFunction(e.options.contentType,e),success:function(n){e.lastResult=n,e.lastResultFetched=new Date,e.success.fireNew(n),t.resolve(n)},error:function(n){e.error.fireNew(n),t.reject(n)}};if(e.getHttpMethod()!==di.Get){var l={},c=e.parameters.filter(function(e){return e.type===pi.Body});c.length>0&&c.forEach(function(e){l[e.name]=e.getValue()}),s.data=JSON.stringify(l)}return r.ajax(s),t},gi.prototype.addParameter=function(e){var t=this;if(t instanceof gi==!1)throw new TypeError("Current instance must be a valid WebService instance");if(!(e instanceof mi))throw new TypeError("Value for 'parameter' should be a valid instance of 'WebServiceParameter'");var n=e.getParameterType();if(n===pi.Body&&this.getHttpMethod()===di.Get)throw Error("The specified parameter type is invalid for HTTP GET requests and is only supported on HTTP PUT/POST/DELETE requests.");return t.parameters.push(e),t.invalidateCache(),t},gi.prototype.invalidateCache=function(){this.lastResult=null,this.lastResultFetched=null},gi.prototype.getResult=function(e){if(this.getHttpMethod()!==di.Get)throw Error("The 'getResult' method can only be invoked for web services with the HTTP Method set to 'GET'");var t=this.lastResult;if(t&&e!==!0){var n=r.Deferred();return window.setTimeout(function(){n.resolve(t)},1),n}return this.execute()},gi.prototype.getHttpMethod=function(){return this.method||di.Get},gi.prototype.setHttpMethod=function(e){if(e!==di.Get&&e!==di.Put&&e!==di.Post&&e!==di.Delete)throw new TypeError("The parameter 'httpMethod' should contain a valid enum value of the type 'HttpMethod'");return this.method=e,this};var fi=function(e,t){var n=this;n.name=e||"Unnamed Test",n.successCount=0,n.failCount=0,n.testResult=r.Deferred(),n.test=t||function(){n.testResult.fail()}};fi.prototype.constructor=fi,fi.prototype.run=function(){var e=this,t=new Date;e.testResult=r.Deferred(),e.testResult.done(function(){var n=(new Date).getTime()-t.getTime();j.info("Test '"+e.name+"' completed in "+n+"ms"),e.successCount+=1}),e.testResult.fail(function(){var n=(new Date).getTime()-t.getTime();j.error("Test '"+e.name+"' failed in "+n+"ms"),e.failCount+=1});try{e.test(e.testResult)}catch(n){e.testResult.reject()}};var hi=function(){this.tests=[]};hi.prototype.constructor=hi,hi.prototype.addTestCase=function(e,t){this.tests.push(new fi(e,t))},hi.prototype.runAll=function(){r.eachItem(this.tests,function(e,t){t.run()})};var pi={Query:"query",Template:"template",Header:"header",Body:"body"},mi=function(e,t,n){if(this.name=r.evaluateWhenFunction(e,this),"string"!=typeof this.name||!this.name)throw new TypeError("A valid parameter name should be specified");if(this.type=r.evaluateWhenFunction(t,this),this.type!==pi.Query&&this.type!==pi.Template&&this.type!==pi.Header&&this.type!==pi.Body)throw new TypeError("The specified parameter type is not valid");return this.value=n,this};mi.prototype.constructor=mi,mi.prototype.getParameterType=function(){return this.type||pi.Query},mi.prototype.getValue=function(){return r.evaluateWhenFunction(this.value,this)};var vi=si.extend("RemoteDataSource",{clear:function(){this.itemsInformation.clear()},getItemFields:function(){return this.getFieldDefinitions()},getItemId:function(){throw Error("You should implement this function to retrieve a unique ID for each item in the array of items.")},getFieldDefinitions:function(){return this.instance.getPropertyValue("itemFields")},getDataService:function(){return this.dataService},setDataService:function(e){this.dataService=e},getCollection:function(){return this.dataCollection},setCollection:function(e){this.dataCollection=e},getDataPromise:function(){throw Error("The getDataPromise should be implemented")},filterResult:function(e){return e},removeDataItem:To,processResult:function(e){var t=this;if(e instanceof Array==!1)throw Error("result is not a valid Array, please implement the mapping feature yourself.");var n=t.getFieldDefinitions();return n?r.map(e,function(e,i){var a={id:t.getItemId(e),index:i};return r.eachEntry(n,function(t,n){a[n.name]=e[n.name]||null;var i=n.mappingFunction;i&&(a[n.name]=i(e))}),a}):void 0},setDataInfo:function(){var e=this,t=new Ti({getPromise:e.getDataPromise.bind(e),filterResult:e.filterResult.bind(e),mapResult:e.processResult.bind(e)});e.setDataService(t),e.setCollection(t.getCollection())}}),yi=new hi;yi.addTestCase("GET >> iTunes >> Armin van Buuren",function(e){new gi("https://itunes.apple.com/search",{dataType:"jsonp"}).addParameter(new mi("entity",pi.Query,"album")).addParameter(new mi("limit",pi.Query,"10")).addParameter(new mi("term",pi.Query,"armin van buuren")).execute().done(function(){e.resolve()}).fail(function(){e.reject()})}),yi.addTestCase("GET >> Facebook Photos",function(e){new gi("https://graph.facebook.com/{accountId}/photos",{dataType:"jsonp"}).addParameter(new mi("fields",pi.Query,"id,created_time,from.name,link,name,picture,source")).addParameter(new mi("limit",pi.Query,"100")).addParameter(new mi("access_token",pi.Query,"205189932989716|ea358445946f3ec6d3dfc2c0ea4b6f9d")).addParameter(new mi("accountId",pi.Template,"418329438315")).execute().done(function(){e.resolve()}).fail(function(){e.reject()})}),yi.addTestCase("GET >> Commerce.ly Categories and Products",function(e){new gi("https://api-store.dev.appmachine.com/v1/shop/catsandproducts/{ApplicationId}",{dataType:"jsonp"}).addParameter(new mi("categoryId",pi.Query,"")).addParameter(new mi("ApplicationId",pi.Template,"325ea409-aacb-3130-07a1-8852881c3b10")).execute().done(function(){e.resolve()}).fail(function(){e.reject()})});var bi={PageLoad:1,State:2,Trigger:3},Ci=Do(function(){this.Events={BehaviourAdded:b.create(),BehaviourUpdated:b.create(),BehaviourRemoved:b.create()};var e={},t={},n={},i={},a={};this.getInstanceSourceConnections=function(e){return t[e]?t[e]:{}},this.getInstanceTargetConnections=function(e){return n[e]?n[e]:{}},this.getInstanceInitializedTargetConnections=function(e){return a[e]?a[e]:{}},this.addBehaviourToCollection=function(e){var i=e.sourceElementID,a=e.targetElementID,o=e.id;r.objectSetIfUndefined(n,i,r.returnEmptyObject),n[i][o]=e,a&&(r.objectSetIfUndefined(t,a,r.returnEmptyObject),t[a][o]=e)},this.addBehaviourToInitializedCollection=function(e){var t=e.sourceElementID,n=e.targetElementID,o=e.id;r.objectSetIfUndefined(a,t,r.returnEmptyObject),a[t][o]=e,n&&(r.objectSetIfUndefined(i,n,r.returnEmptyObject),i[n][o]=e);var s=ji.getInstanceByID(t);s&&s.hasActions.setTrue()},this.removeBehaviourFromCollection=function(e){var i=e.sourceElementID,a=e.targetElementID,r=e.id;n[i]&&delete n[i][r],a&&t[a]&&delete t[a][r]},this.removeBehaviourFromInitializedCollection=function(e){var t=e.sourceElementID,n=e.targetElementID,o=e.id;if(a[t]&&delete a[t][o],n&&i[n]&&delete i[n][o],0===r.count(a[t])){var s=ji.getInstanceByID(t);s&&s.hasActions.setFalse()}},this.registerBehaviours=function(e){r.each(e,function(e,t){t=r.quickExtend({onConnectionRemoved:To,onConnectionAdded:To,initializeBehaviourDefinition:r.returnValue,activateFunction:To,deactivateFunction:To,activateCallback:To,deactivateCallback:To},t),r.extendMissing(t,{name:e});var n=t.activateFunction,i=t.deactivateFunction;t.activateFunction=function(t,i,a){ta.PageChangingOperation.performOperation(function(){i&&!i.data.activatedBehaviours&&(i.data.activatedBehaviours={}),n(t,i,a),i&&(i.data.activatedBehaviours[e]=!0)})},t.deactivateFunction=function(t,n,a){ta.PageChangingOperation.performOperation(function(){n&&!n.data.activatedBehaviours&&(n.data.activatedBehaviours={}),n&&n.data.activatedBehaviours[e]&&(i(t,n,a),n.data.activatedBehaviours[e]=!1)})},t=t.initializeBehaviourDefinition(t),Ii[e]=t})},this.extendBehaviour=function(e,t){r.quickExtend(e,t)},this.createActionBehaviour=function(e){var t={},n={};return e.activate=function(i,a,o,s){if(o.isTemplateConenction){var l=qi.getSameConnections(i.id,a?a.id:void 0,e.name,o);if(l.length>1)return}switch(o.triggerType){case bi.PageLoad:e.activateCallback(i,a,o);var c=!1,u=[ta.PageChangingOperation];Pe.whenAllFinished(u,function(){var n=ta.getCurrentPage();n.id==i.getPageId()&&(e.activateFunction(i,a,o),c=!0),t[s]=ta.PageChangingOperation.bind(To,function(){if(c)c=!1;else{var t=ta.getCurrentPage();t.id==i.getPageId()&&e.activateFunction(i,a,o)}})});break;case bi.State:t[s]=i.elementStateActivated.bind(o.triggerName,function(){if(ta.Flags.isInPageChanging.isTrue()){var t=r.quickExtend({},o);t.animationDuration=0,e.activateFunction(i,a,t)}else e.activateFunction(i,a,o)}),n[s]=i.elementStateRemoved.bind(o.triggerName,function(){e.deactivateFunction(i,a,o)}),e.activateCallback(i,a,o);break;case bi.Trigger:t[s]=i.triggerActivated.bind(o.triggerName,function(){e.activateFunction(i,a,o)}),e.activateCallback(i,a,o)}},e.deactivate=function(i,a,r,o){switch(r.triggerType){case bi.PageLoad:t[o]&&t[o].unbind(),e.deactivateCallback(i,a,r);break;case bi.State:t[o]&&i.elementStateActivated.unbind(t[o].bindingName),n[o]&&i.elementStateRemoved.unbind(n[o].bindingName),e.deactivateCallback(i,a,r);break;case bi.Trigger:t[o]&&i.triggerActivated.unbind(t[o].bindingName),e.deactivateCallback(i,a,r)}},e},this.createScrollableBehaviour=function(e){function t(t,i,a,o){if(a.isTemplateConenction){var s=qi.getSameConnections(t.id,i?i.id:void 0,e.name,a);if(s.length>1)return}t.data[o+"visibilityChanged"]&&t.data[o+"visibilityChanged"].unbind(),t.isInstanceVisible()?(t.data[o+"scrollable-window-size"]=b.createEventListener(r.getWindowSizeEvent(),function(){n[o]&&e.activateCallback(t,i,r.quickExtend({},a,{reset:!0}))}),t.data[o+"pageChangedBinding"]=b.createEventListener([ta.Events.PageChanged],function(){var r=t.getPageId()===ta.getCurrentPageId();r?ur.performUpdateOnRenderingFinished(function(){n[o]&&e.deactivateCallback(t,i,a),e.activateCallback(t,i,a),n[o]=!0}):n[o]&&(e.deactivateCallback(t,i,a),n[o]=!1)}),t.data[o+"mobile"]=Ta.Flags.IsInMobileContext.valueChangedEvent.bindAndExecute(function(){var r=Ta.Flags.IsInMobileContext.isTrue();r?(t.data[o+"pageChangedBinding"].deactivate(),t.data[o+"scrollable-window-size"].deactivate(),n[o]&&(e.deactivateCallback(t,i,a),n[o]=!1)):ur.performUpdateOnRenderingFinished(function(){t.data[o+"pageChangedBinding"].activateAndExecute(),t.data[o+"scrollable-window-size"].activate()})})):t.data[o+"visibilityChanged"]=t.visibilityChangedEvent.bind(function(){t.isInstanceVisible()&&e.activate(t,i,a,o)})}var n={};return e.activate=function(e,n,i,a){ur.performUpdateOnRenderingFinished(function(){t(e,n,i,a)})},e.deactivate=function(t,i,a,r){n[r]&&(n[r]=!1,e.deactivateCallback(t,i,a)),t.data[r+"visibilityChanged"]&&t.data[r+"visibilityChanged"].unbind(),t.data[r+"mobile"]&&t.data[r+"mobile"].unbind(),t.data[r+"pageChangedBinding"]&&t.data[r+"pageChangedBinding"].deactivate(),t.data[r+"scrollable-window-size"]&&t.data[r+"scrollable-window-size"].deactivate()},e},this.initBehaviours=function(e){r.each(e.getInitializedTargetConnections(),function(e,t){var n=ji.getInstanceByID(t.targetElementID);if(n&&n.shouldInitInstanceOnPageChange()){var i=ji.getInstanceByID(t.sourceElementID);Ii[t.behaviourName].deactivateFunction(i,n,{animationDuration:0},t.id)}})},this.activateBehaviours=function(e){r.each(e.getInitializedTargetConnections(),function(e,t){Ci.activateBehaviour(t)})},this.activateBehaviour=function(t){var n=ji.getInstanceByID(t.sourceElementID),i=ji.getInstanceByID(t.targetElementID);!n||t.targetElementID&&!i||e[t.id]||(e[t.id]=!0,Ii[t.behaviourName].activate(n,i,t.options,t.id))},this.deactivateBehaviours=function(e){r.each(e.getInitializedTargetConnections(),function(e,t){Ci.deactivateBehaviour(t)})},this.deactivateBehaviour=function(t){var n=ji.getInstanceByID(t.sourceElementID),i=ji.getInstanceByID(t.targetElementID);e[t.id]&&n&&(!t.targetElementID||i)&&Ii[t.behaviourName].deactivate(n,i,t.options,t.id),e[t.id]=!1},this.copyBehaviours=function(e,t){var n={};return e||(e={}),r.each(e,function(e,i){var a={sourceElementID:i.sourceElementID,targetElementID:i.targetElementID,behaviourName:i.behaviourName,options:r.extend(!0,{},i.options),id:fa.generateWebsiteId()},o=!1;t[i.targetElementID]&&(a.targetElementID=t[i.targetElementID],o=!0),t[i.sourceElementID]&&(a.sourceElementID=t[i.sourceElementID],o=!0),o&&(i.connectionData=void 0,n[a.id]=a)}),n}}),Ii={},Si=Do(function(){this.registerTriggers=function(e){r.eachEntry(e,function(e,t){var n=r.quickExtend({activatedStates:[],deactivatedStates:[]},t);r.extendMissing(n,{name:e}),Pi[e]=n})},this.extendTrigger=function(e,t){r.quickExtend(e,t)}}),Pi={},wi=Do(function(){var e=this;this.registerElementStates=function(e){for(var t in e){var n=e[t];n.name=t,r.extendMissing(n,{priority:0}),Ei[t]=n}},this.extendElementState=function(e,t){r.quickExtend(e,t)},this.getComplexStateId=function(t){var n=1;return r.each(t,function(t,i){n=e.getComplexIdFromIds(n,i.id)}),n},this.getComplexIdFromIds=function(e,t){return e*t},this.getComplexIdWithOutId=function(e,t){return e/t},this.getStatesMapFromIds=function(e){for(var t={},n=0;n1){var n={},i=e.getStatesMapFromIds(t);if(null===i)return!1;var a=e.getComplexStateId(i);return Ei[a]||(n[a]={ids:t,priority:wi.getComplexStatePriority(i),id:a,name:a,isComplex:!0,statesMap:i},wi.registerElementStates(n)),Ei[a]}}}),Ei={};!function(){wi.registerElementStates({NormalState:{id:1},MouseDownState:{priority:3,id:3},ElementSelectedState:{priority:3,id:5},ElementFocusedState:{priority:3,id:7},BeforeLoadedState:{priority:4,id:11},BeforeOpenedState:{priority:4,id:17},FirstButton:{priority:1,id:19},LastButton:{priority:1,id:23},MobileState:{priority:7,id:29}}),wi.registerElementStates({MouseOverState:{priority:2,id:13},MouseOverStateArea:{priority:2,id:31}});for(var e in Ei){var t=Ei[e];if(e!==Ei.NormalState.name&&e!==Ei.MobileState.name){var n=[Ei.MobileState.name,t.name],i=wi.registerComplexState(n);i.isMobileState=!0}}}(),function(){Si.registerTriggers({GotFocus:{activatedStates:[Ei.ElementFocusedState]},LostFocus:{deactivatedStates:[Ei.ElementFocusedState]},MouseClick:{},MouseDown:{activatedStates:[Ei.MouseDownState]},MouseUp:{deactivatedStates:[Ei.MouseDownState]},MouseEnter:{activatedStates:[Ei.MouseOverState]},MouseLeave:{deactivatedStates:[Ei.MouseOverState]},MouseEnterArea:{activatedStates:[Ei.MouseOverStateArea]},MouseLeaveArea:{deactivatedStates:[Ei.MouseOverStateArea]},PageLeave:{deactivatedStates:[Ei.BeforeLoadedState,Ei.BeforeOpenedState]},PageLoaded:{activatedStates:[Ei.BeforeLoadedState,Ei.BeforeOpenedState]},PageOpened:{activatedStates:[Ei.BeforeOpenedState,Ei.BeforeLoadedState] },Selected:{activatedStates:[Ei.ElementSelectedState]},Unselected:{deactivatedStates:[Ei.ElementSelectedState]}})}();var Ti=function(e){return this.options=r.quickExtend({getPromise:function(){throw Error("A valid promise should be provided")}},e),this.flags={IsLoading:k.create(!1)},this.events={LoadingStarted:b.create(),LoadingFinished:b.create(),LoadingFailed:b.create()},this};Ti.prototype.constructor=Ti,Ti.prototype.createCollection=function(){var t=this,n=new e({fetchingFunction:function(e,n,i,a){t.flags.IsLoading.reset(),t.flags.IsLoading.setTrue(),t.events.LoadingStarted.fireNew(),r.evaluateWhenFunction(t.options.getPromise,t).done(function(e){t.flags.IsLoading.setFalse();var n=t.options.filterResult;n&&"function"==typeof n&&(e=n.call(t,e));var r=t.options.mapResult;if(!r||"function"!=typeof r)throw Error("No result mapping function has been specified.");var o=r.call(t,e);return o?(i(o),void t.events.LoadingFinished.fireNew(o)):(t.events.LoadingFailed.fireNew(),void a())}).fail(function(e){t.events.LoadingFailed.fireNew(),t.flags.IsLoading.setFalse(),a(e)})}});return t.data=r.quickExtend(t.data,{collection:n}),t.data.collection},Ti.prototype.getCollection=function(){var t=this;return t.data&&t.data.collection instanceof e?t.data.collection:t.createCollection()},Ti.prototype.populate=function(e,t,n){var i=this.getCollection();t&&i.setAttributes(t),i.clear(),i.fetchAllNew(function(t){e.itemsInformation.syncrhonize([]),e.itemsInformation.syncrhonize(t.fetchedItems),n&&n(e)})},function(){function e(e,t,n){n=r.extend({animationDuration:0},n);var i=1===t?"":"scale({0})".format(t),a={};a[r.support.transformCSS]=i;var o;n.animationDuration&&(o={transitionDuration:n.animationDuration}),e.animatePart(e.$element,{transform:i},a,o,{complete:function(){ia.updatePosition(e)}})}Ci.registerBehaviours({ScaleBehaviour:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:function(t,n,i){e(n,i.ratio,i)},deactivateFunction:function(t,n,i){e(n,1,i)},deactivateCallback:function(e,t){this.deactivateFunction(e,t,{}),ia.invalidateAreas(e)}}})}(),function(){function e(e,t,n,i){n=r.extend({animationDuration:0,animationDirection:"left"},n);var a=t;n&&"left"===n.animationDirection&&i&&(a=-t);var o=a?"rotate({0}deg)".format(a):"rotate(0deg)",s={};s[r.support.transformCSS]=o;var l=e.data.rotateBehaviourWrapper;e.animatePart(l,{transform:o},s,{transitionDirection:n.animationDirection,transitionDuration:n.animationDuration}),ia.invalidateAreas(e)}Ci.registerBehaviours({RotateBehaviour:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:function(t,n,i){e(n,i.degree,i,!0)},activateCallback:function(e,t){var n=t.getMainBox();Vn.usePlaceHolder(n,t.id+"rotate-behaviour",{className:"full-height",ignoreOffset:!0});var i=Vn.createWrapper(n,{className:"full-height",ignoreOffset:!0});t.data.rotateBehaviourWrapper=i},deactivateFunction:function(t,n,i){e(n,0,i,!1)},deactivateCallback:function(e,t,n){var i=t.getMainBox();Vn.releasePlaceHolder(i,t.id+"rotate-behaviour"),Vn.removeWrapper(t.data.rotateBehaviourWrapper),this.deactivateFunction(e,t,{animationDirection:n.animationDirection}),ia.invalidateAreas(t)}}})}(),function(){function e(e){if(e=r.extend({category:window.location.pathname,action:"deafaultAction"},e),t())try{ga("send","event",e.category,e.action,e.label,e.value)}catch(n){}}function t(){return!("undefined"==typeof ga||!ga)}Ci.registerBehaviours({TriggerGoogleEvent:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:function(t,n,i){e(r.quickExtend({category:ta.getCurrentPage().getPropertyValue("name"),action:"deafaultAction",label:void 0,value:void 0},i))}}})}(),function(){function e(e,i){if(X.IsTemplate)return void Po.open({message:"Form submission does not work in the preview version."});var a,o,s=i.getPropertyValue("formID"),l=[],c=[],u=[],d=i.isTypeOf(Yn.JMMLElement);d?(o=n.MailingList,r.each(i.childInstances,function(e,t){if(t.elementType.name===Yn.JMMLSkinInputElement.name){var n=t.getValue(),i=t.getPropertyValue("baseName")||t.getPropertyValue("name");void 0===n||null===n||""===n?l.push(t.getLabelText()):"Email"!==i||-1!==n.indexOf("@")&&-1!==n.indexOf(".")||c.push(t.getLabelText()),u.push(t)}})):(o=n.ContactForm,r.each(i.getItemsControllers(),function(e,t){var n=t.getInstance(),i=n.getDataItem(),a=n.getValue();i.fieldOptions.isOptional||void 0!==a&&null!==a&&""!==a?i.fieldOptions.isOptional||3!==i.fieldOptions.fieldType||-1!==a.indexOf("@")&&-1!==a.indexOf(".")||c.push(i.labelText):l.push(i.labelText),u.push(n)}));var g="#333333",f="#FFFFFF";if(0===l.length&&0===c.length)i.$element.loading({className:"loading-animation-dark-1",overlayLayer:R.AboveAll}),g&&(r(".loading-overlay",i.$element).css("background",g),r(".loading-overlay",i.$element).css("opacity","0.75")),d?(a=r.map(u,function(e){var t=e.getPropertyValue("baseName");return t||(t=e.getPropertyValue("name")),{fieldName:t,fieldValue:e.getValue()}}),a.push({fieldName:"MailingList",fieldValue:!0})):(a=r.map(u,function(e){var t=e.getDataItem();return{fieldName:ra.getFormFieldName(t),fieldValue:e.getValue()}}),i.getPropertyValue("joinMyMailingList")&&a.push({fieldName:"MailingList",fieldValue:i.getJoinMyMailingListValue()})),Un.submitForm(W.SiteID,ra.getSiteType(),s,null,a,o,function(n){i.$element.loading(!1);var a=i.getSubmitSuccessTarget();if(i.getPropertyValue("formOptions").clearOnSubmit&&t(e,i),!a||r.isEmptyObject(a))n===!1?i.$element.elementOverlay({iconReference:{collectionName:"public-font-icons",iconName:"times"},message:i.getSubmitErrorText(),closeText:"Try Again",textColor:f,backgroundColor:g}):i.$element.elementOverlay({iconReference:{collectionName:"public-font-icons",iconName:"check"},message:i.getSubmitSuccessText(),textColor:f,backgroundColor:g,destroyOnClick:!0});else if(a.type===Ge.Pages){var o=ta.getPageData(a.url);if(!o)return;Zi.navigateToPage(a.url)}else{var s=a.url;s.indexOf("://")<0&&(s="http://"+s),window.location=s}},function(){i.$element.loading(!1),i.$element.elementOverlay({iconReference:{collectionName:"public-font-icons",iconName:"times"},message:i.getSubmitErrorText(),closeText:"Try Again",textColor:f,backgroundColor:g})});else{var h,p="",m=" , ";if(l.length>0){var v="You must fill out the following fields: ";r.each(l,function(e,t){e===l.length-1&&(m="."),p+=t+m}),h=v+p}else{var y="You must correct the following fields: ";r.each(c,function(e,t){e===c.length-1&&(m="."),p+=t+m}),h=y+p}i.$element.elementOverlay({iconReference:{collectionName:"public-font-icons",iconName:"times"},message:h,closeText:"Try Again",textColor:f,backgroundColor:g})}}function t(e,t){var n=r.grep(t.getDescendingInstances(!1),function(e){return e.isType(Yn.SkinCheckBoxButtonElement)?!e.getPropertyValue("startSelected"):e.hasFeature(Qn.HasInput)});r.each(n,function(){this.clear()})}Ci.registerBehaviours({SubmitForm:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:e},ClearForm:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:t}});var n={ContactForm:0,MailingList:1}}(),function(){function e(){j.log("1. Add to cart clicked"),Cr.initializeCart().done(function(){j.log("2. Cart is initialized");var e=Cr.getCurrentProduct();e?(j.log("3. Got current product"),Cr.addProductToCart(e.id,null,1)):j.log("3. Current product is null")}).fail(function(){j.log("2. Couldn't initialize cart")})}Ci.registerBehaviours({AddToCart:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:e}})}(),function(){function e(e,t,n){n=r.quickExtend({},n),t.navigate(1,!0,void 0,n)}function t(e,t,n){var i=r.quickExtend({animationDuration:0},n);ji.scrollToInstanceInPreview(t,i)}function n(e,t,n){n=r.quickExtend({},n),t.navigate(-1,!0,void 0,n)}Ci.registerBehaviours({ShowTab:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:function(e,t,n){if(n=r.extend({performAnimation:!0,animationOptions:{}},n),n.targetTab){var i=ji.getInstanceByID(n.targetTab);i&&t.showItem(i,n.performAnimation,void 0,n.animationOptions)}},activateCallback:function(e,t,n){e.data["currentItemChangedEventShowTab"+t.id]=t.currentItemChangedEvent.bind(function(){t.getCurrentItem().id===n.targetTab?e.userSelect(!0):e.userSelect(!1)})},deactivateCallback:function(e,t){t.currentItemChangedEvent.unbind(e.data["currentItemChangedEventShowTab"+t.id])}},NavigateTo:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:t},NavigateNext:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:e},NavigatePrev:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:n},NextPage:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:function(){ta.switchToNextPage()}},PrevPage:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:function(){ta.switchToPrevPage()}}})}(),function(){Ci.registerBehaviours({ActivateState:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:function(e,t,n){Mi.activateStateGroupState(n.groupId,n.stateId)},deactivateFunction:function(e,t,n){Mi.deactivateStateGroup(n.groupId)}},DeactivateState:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:function(e,t,n){Mi.deactivateStateGroup(n.groupId)},deactivateFunction:function(e,t,n){Mi.activateStateGroupState(n.groupId,n.stateId)}},ActivateAllStates:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:function(e,t,n){Mi.activateStateGroupStates(n.groupId)},deactivateFunction:function(e,t,n){Mi.deactivateStateGroup(n.groupId)}}})}(),function(){function e(e,t){t.stop()}function t(e,t){t.pause()}function n(e,t){t.play()}Ci.registerBehaviours({PlayVideo:{initializeBehaviourDefinition:Ci.createActionBehaviour,deactivateFunction:e,activateFunction:n,deactivateCallback:function(t,n){e(t,n)}},StopVideo:{initializeBehaviourDefinition:Ci.createActionBehaviour,activateFunction:e,deactivateCallback:function(t,n){e(t,n)}},PauseVideo:{initializeBehaviourDefinition:Ci.createActionBehaviour,deactivateFunction:e,activateFunction:t,deactivateCallback:function(t,n){e(t,n)}}})}(),function(){function e(e,t,i,a){i||(i={});var r=n(i,a);Ki.updateComputedValue(t,t.properties.isVisible,!1,r,!0)}function t(e,t,i,a){i||(i={});var r=n(i,a);Ki.updateComputedValue(t,t.properties.isVisible,!0,r,!0)}function n(e,t){var n={transitionEffect:pt.NoAnimation.name,transitionDuration:0,transitionSlideDirection:"left",transitionFlyDirection:{vertical:"top",horizontal:"left"}};return r.quickExtend(n,{transitionEffect:e.animationType,transitionDuration:t?0:e.animationDuration,transitionSlideDirection:e.animationSlideDirection,transitionFlyDirection:e.animationDirection})}Ci.registerBehaviours({showInCenter:{initializeBehaviourDefinition:Ci.createActionBehaviour,onlyOnePerSource:!0,activateFunction:function(e,t){e.getPropertyValue("templateOpener")||t.showPopup()}},ShowElement:{initializeBehaviourDefinition:Ci.createActionBehaviour,deactivateFunction:function(t,n,i,a){t!==n&&e(t,n,i,a)},activateFunction:t},HideElement:{initializeBehaviourDefinition:Ci.createActionBehaviour,deactivateFunction:function(e,n,i,a){e!==n&&t(e,n,i,a)},activateFunction:e}})}(),function(){function e(e,t){r.eachItem(e.childInstances,function(n,i){i.isDisplayed.setValue(t,"animation"+e.id)})}function t(e){if(e.hasFeature(Qn.PageSection)){var t=Vn.getPlaceHolder(e.getContentLayer()),n=0;r.eachItem(e.childInstances,function(e,t){n=p?(b=de.Bottom,f=m-p):3*m/4>p?(b=de.Top,f=p):(b=de.Bottom,f=m/4,m>p&&(f=Math.min(m-p,f)),f>y-p&&(f=(y-p)/2))}else de.Visibility===l.measureDistanceType&&(f=l.startVisibility*o.getSize().height);l.autoDistanceSettings&&(3*m/4>p&&p>1*m/4?g=r.minValue([m/3,p/2]):(g=m/3,f+g>y-p&&(g=y-p-f)))}var C=r.quickExtend({},l,{measureDistanceType:l.autoStartDistanceSettings?b:l.measureDistanceType,startDistance:f,startVisibility:l.startVisibility,id:o.id,$scrollablePane:r(window),isParallax:l.isParallax,oneTimeAnimation:l.oneTimeAnimation,duration:l.duration,distance:g,distanceDelay:l.distanceDelay,delay:l.delay,runInLoop:l.runInLoop,getSize:function(){return o.getSize()},getOffset:function(){return h},getTopOffset:function(){return p},completeCallback:function(t){t.isOutEffect()&&(l.runInLoop||(o.hasFeature(Qn.PageSection)?e(o,!1):o.isDisplayed.setValue(!1,"animation"))),n(o)},resetCallback:function(t){t.isInEffect()?o.hasFeature(Qn.PageSection)?e(o,!1):o.isDisplayed.setValue(!1,"animation"):t.isOutEffect()&&(o.hasFeature(Qn.PageSection)?e(o,!0):o.isDisplayed.setValue(!0,"animation")),n(o)},activateCallback:function(n){(n.isOutEffect()||n.isInEffect())&&(o.hasFeature(Qn.PageSection)?e(o,!0):o.isDisplayed.setValue(!0,"animation")),t(o)},reverseActivateCallback:function(n){(n.isOutEffect()||n.isInEffect())&&(o.hasFeature(Qn.PageSection)?e(o,!0):o.isDisplayed.setValue(!0,"animation")),t(o)}});if(u&&d)C.activate=!0,d.reset(C);else{var I=i(o);d=Ln.create(I,c,C),r.objectSet(o.data,["NewShowElementBehaviour","scrollableEffect"],d),d.activate(),t(o)}},deactivateCallback:function(t){var n=r.objectGet(t.data,["NewShowElementBehaviour","scrollableEffect"]);n&&n.dispose(),r.objectSet(t.data,["NewShowElementBehaviour","scrollableEffect"]),t.hasFeature(Qn.PageSection)?e(t,!0):t.isDisplayed.setValue(!0,"animation")}},ParallaxImage:{initializeBehaviourDefinition:Ci.createScrollableBehaviour,activateCallback:function(e,t,n){var i=this;n.reset&&i.deactivateCallback(e,t,n);var o=a(),s=e.getPosition(!0).top-(r.getWindowSize().height-o),l=e.getPropertyValue("parallaxBackgroundSpeed");e.data.scrollingImageBoxCreatedFlagBinding=e.imageBoxCreatedFlag.onceTrue(function(){function t(){var t=n.getState().getValue();if(t===en.ImageLoaded){e.data.scrollingImageLoadedBinding.unbind();var i=n.getImageElement(),r=0;e.data.scrollingTrackerParallaxImage=ge.create({$element:i,getTopOffset:function(){return s},getWindowHeight:a,scrollingDistanceChangeCallback:function(t){var i=!0;-tt&&(i||0>t||0!==r)&&(!i&&t>=0&&(t=0),r=t,ue.requestWriteOperation(function(){var e="translateY({0}px)".format(-t*l),i=_.prefixed("transform"),a={};a[i]=e,n.getImageElement().css(a)}))}}),e.data.scrollingTrackerParallaxImage.activate()}}var n=e.getImageBox();e.data.scrollingImageLoadedBinding=n.getState().valueChangedEvent.bind(t),t()})},deactivateCallback:function(e){e.data.scrollingImageBoxCreatedFlagBinding&&e.data.scrollingImageBoxCreatedFlagBinding.unbind(),e.data.scrollingImageLoadedBinding&&(e.data.scrollingImageLoadedBinding.unbind(),e.getImageBox().getImageElement().css("transform","")),e.data.scrollingTrackerParallaxImage&&e.data.scrollingTrackerParallaxImage.deactivate()}},ParallaxElement:{initializeBehaviourDefinition:Ci.createScrollableBehaviour,activateCallback:function(e,t,n){var i,o=r.valueOrDefault(n.speed,1),s=r.valueOrDefault(n.delay,0),l=e.getMainBox();n.reset?(e.data.scrollingTrackerParallaxElement&&e.data.scrollingTrackerParallaxElement.deactivate(),i=e.data.scrollingTrackerParallaxElement.$wrapper):(Vn.usePlaceHolder(l,e.id+"scrolling-behaviour",{className:"full-height",ignoreOffset:!0}),i=Vn.createWrapper(l,{className:"full-height",ignoreOffset:!0}));var c=a(),u=e.getPosition(!0).top-(r.getWindowSize().height-c),d=r.minValue([u,c]);e.data.scrollingTrackerParallaxElement=ge.create({$element:i,getTopOffset:function(){return u},getWindowHeight:a,scrollingDistanceChangeCallback:function(t){var n=d>t+s,a=0>t&&!((t+s-d)*-ot?(n=!1,!1):void 0}),n}return void 0===t||t>=e}}),ki=Do(function(){this.process=function(e,t,n){return e.hasFeature(Qn.HasFormData)&&"TextInputField"===t.type&&"TextArea"===n&&(t.type="TextArea"),t}}),Fi=function(){return this.handlers={},window.addEventListener("message",this.handleMessage.bind(this)),this};Fi.prototype.constructor=Fi,Fi.prototype.bind=function(e,t){if(e=r.evaluateWhenFunction(e),"string"!=typeof e)throw new TypeError("A valid message name should be specified.");if("function"!=typeof t)throw new TypeError("A valid function should be specified as the handler for a message with this name.");var n={id:r.generateGuid(),handler:t},i=this.getHandlersForMessageName(e);return i.push(n),this.handlers[e]=i,n.id},Fi.prototype.clear=function(){this.handlers={}},Fi.prototype.getHandlersForMessageName=function(e){if(e=r.evaluateWhenFunction(e),"string"!=typeof e)throw new TypeError("A valid message name should be specified.");return this.handlers[e]||[]},Fi.prototype.handleMessage=function(e){var t=this;if(e&&e.data&&e.data.type)try{var n=this.getHandlersForMessageName(e.data.type);n.length>0&&n.forEach(function(n){try{n.handler.apply(t,[e.data])}catch(i){j.error(i)}})}catch(i){j.error(i)}},Fi.prototype.sendMessage=function(e,t,n,i){if(t=r.evaluateWhenFunction(t),"object"!=typeof t)throw new TypeError("A valid message should be specified.");if("string"!=typeof n)throw new TypeError("A valid message type should be specified.");var a=r.quickExtend({type:n,action:i},t);e.postMessage(a,"*")};var Di=Do(function(){this.Flags={PcEditing:k.create(!0),MobileEditing:k.create(!1,{valueChangeCallback:To}),InUserEditingMode:k.create(!0),SavingRecordEnabled:k.createConditionalPositive(),OpenLinksInSameWindow:k.create(Settings.UrlSameWindow),IsApiPartner:k.create(Settings.IsApiPartner),IsTestEnvironment:k.create(Settings.TestingEnvironment)},this.contextEditingClass=fe.createContextClass({getTarget:function(){return r("body")}}),this.MobileDesktopViewClass="mobile-desktop-mode",this.PcDesktopViewClass="pc-desktop-mode";var e,t;this.setEditingClass=function(e){Di.contextEditingClass.setValue(e)},this.getEditorCoordinator=function(){return e},this.initialize=function(e){Di.Flags.SavingRecordEnabled.setFalse("EditorInitialized"),W.Events.LastEventOnInitiailizatGlobal.one(function(){Di.setEditingClass(W.IsMobileView?Di.MobileDesktopViewClass:Di.PcDesktopViewClass)})},this.getCoordinatorHierarchyForSave=function(){var n=ji.getHierarchyInfo(e,{forSaving:!0,saveToServer:!0,idsInHierarchy:!0,copyAffectedStates:!1,copyAffectingStates:!0,copyMobileStates:!1});return t&&(n=ji.adjustHierarchyWithBaseHierarchy(n,t,function(e,t,n){return n!==Ta.MobileStateName||!ji.getInstanceByID(t)||"coordinator"===t})),fa.preSaveHierarchy(n),n}}),Ai=Do(function(){"use strict";this.createPayPalButton=function(e,t,n){if(e){n=n?n:oa.ButtonTypes.buynow.value;var i=r.extend({env:"www",business:e,size:"large",cmd:"_xclick"},t);switch(n){case oa.ButtonTypes.cart.value:i.cmd="_cart",i.add="1";break;case oa.ButtonTypes.donate.value:i.cmd="_donations";break;case oa.ButtonTypes.view.value:n="cart",i.cmd="_cart",i.add="true"}i.bn="JavaScriptButton_{0}".format(n);var a=document.createElement("form"),o=document.createElement("input");i.size;a.method="post",a.action="https://{0}.paypal.com/cgi-bin/webscr".format(i.env),a.className="paypal-button",a.target="_blank",o.type="hidden";for(var s in i){var l=i[s],c=o.cloneNode(!0);c.name=s,c.value=l,a.appendChild(c)}return r(a)}}}),Vi=Do(function(){function e(){var e=[{fontFamily:"Arial"},{fontFamily:"Open Sans",fileNamePrefix:"ALyKWGaVsEemWmMSYxY8yg"},{fontFamily:"Open Sans Semi Bold",fileNamePrefix:"1aJZYUlSkk6puu4aOD3swQ"},{fontFamily:"Open Sans Extra Bold",fileNamePrefix:"I7CsSHRfZ0GB3AlD-DX-CQ"},{fontFamily:"Open Sans Condensed Light",fileNamePrefix:"zrpWq297sEeRsdU269eKIw"},{fontFamily:"Abril Fatface",fileNamePrefix:"gDLUCJWR_kqtWwfvIU_PaA"},{fontFamily:"Old Standard TT",fileNamePrefix:"kQqAlUNfAUWwCMQC0RiqsA"},{fontFamily:"Old Standard TT Italic",fileNamePrefix:"5ef35NcXqE-Sn4NiR-kJ3w"},{fontFamily:"Old Standard TT Bold",fileNamePrefix:"YWxRPXjKo0GD6sF4iTxb1A"},{fontFamily:"Amatic SC Bold",fileNamePrefix:"vncilunqC0SNXw6uCxWKYw"},{fontFamily:"Amatic SC",fileNamePrefix:"J-Q2uiHPAUWsLt1eszDGwg"},{fontFamily:"Bad Script",fileNamePrefix:"1Bgd0dJpN0GXJNyBAzkHww"},{fontFamily:"Dancing Script Bold",fileNamePrefix:"-BbHXw_ndE26qvVGfs-anQ"},{fontFamily:"Droid Sans Bold",fileNamePrefix:"ne7cbOZqTkedYy1HwYydZg"},{fontFamily:"Droid Serif",fileNamePrefix:"ePS3nDDdtEGk9UXdlz3xaw"},{fontFamily:"Gravitas One",fileNamePrefix:"Ia_3RDEl902d_biCJt5AFA"},{fontFamily:"Julius Sans One",fileNamePrefix:"w7D5mT_LT0-R_obV2nz21A"},{fontFamily:"Kaushan Script",fileNamePrefix:"N7N-3fd-v0qOnhTu-9GamA"},{fontFamily:"Lato Light",fileNamePrefix:"JYwDjrpa8U6xfI7FKlWegw"},{fontFamily:"Lato",fileNamePrefix:"kMHuzhNgr0KObYFogkU9qg"},{fontFamily:"Lobster",fileNamePrefix:"kPGhPwcvbkOCT9x5L5PHhw"},{fontFamily:"Neuton Bold",fileNamePrefix:"qFokD41aVU27THVC-6RMuw"},{fontFamily:"Neuton Extra Light",fileNamePrefix:"jk72vychhEmjX17_Z5nbjg"},{fontFamily:"Neuton",fileNamePrefix:"6a8BIp-h8EWtgJAOTPMYAw"},{fontFamily:"Nixie One",fileNamePrefix:"xctC69Fg002n2dGvXpnZIw"},{fontFamily:"Oleo Script",fileNamePrefix:"dCfhlsJpIk2_PlZcLee6-w"},{fontFamily:"PT Mono",fileNamePrefix:"mKwJ41VczkuadvZQFB69iQ"},{fontFamily:"PT Sans",fileNamePrefix:"ujtBJKYCkk-aGRvjqZ2Q6g"},{fontFamily:"PT Sans Bold",fileNamePrefix:"jyCuK2Q9ckmUVHo_bxIt1w"},{fontFamily:"PT Sans Narrow Bold",fileNamePrefix:"R3vKkDHIkEqPkFN_BbFEYA"},{fontFamily:"PT Serif",fileNamePrefix:"k0Q0RpzRHUa3xsKlKajrYw"},{fontFamily:"Source Sans Pro Light",fileNamePrefix:"N-FTQm6wJUid2Llo-YmLXw"},{fontFamily:"Source Sans Pro Semi Bold",fileNamePrefix:"Cuwea6LnvkOqcMrkyGOEWA"},{fontFamily:"Vollkorn",fileNamePrefix:"9_jFFW9MXU2YKrxUFFf7Tw"},{fontFamily:"Vollkorn Italic",fileNamePrefix:"_NLTS5Xqx0u8VVDeXpU6xQ"},{fontFamily:"Vollkorn Bold",fileNamePrefix:"KvLEhsX3PEeA-FNngJB2qQ"}];return r.eachItem(e,function(e,t){t.ownerID=null,void 0===t.storageServer&&(t.storageServer=Q.AzureBlob)}),e}function t(){return[{id:"c09c885d-6218-410b-8870-0567be7bacd2",fontFamily:"ChunkFive",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"XYicwBhiC0GIcAVnvnus0g",storageServer:4,ownerID:null},{id:"0218ee78-8fb2-4a8a-a104-07af0fb595f6",fontFamily:"Trade Winds",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"eO4YArKPikqhBAevD7WV9g",storageServer:4,ownerID:null},{id:"7dbceeb3-6db6-4340-b511-07d698996ebb",fontFamily:"Monofett",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"s-68fbZtQEO1EQfWmJluuw",storageServer:4,ownerID:null},{id:"c62d3acb-e722-4ee7-9bd1-0989f096666d",fontFamily:"Daniel",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"yzotxiLn506b0QmJ8JZmbQ",storageServer:4,ownerID:null},{id:"e52e2b3b-cf41-4efd-bfaf-12310555a963",fontFamily:"Sansation",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"Oysu5UHP_U6_rxIxBVWpYw",storageServer:4,ownerID:null},{id:"3a19ffeb-9eb2-4352-80bd-13cd8161dbf7",fontFamily:"Journal",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"6_8ZOrKeUkOAvRPNgWHb9w",storageServer:4,ownerID:null},{id:"ae6ac39d-1c58-4844-af75-153e93e35a7b",fontFamily:"Smokum",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"ncNqrlgcREivdRU-k-Naew",storageServer:4,ownerID:null},{id:"8a9d8040-0523-4c66-93f1-19930b7cbac9",fontFamily:"Astloch",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"QICdiiMFZkyT8RmTC3y6yQ",storageServer:4,ownerID:null},{id:"317350d9-ac32-40e9-bf24-1995387d7609",fontFamily:"Flavors",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"2VBzMTKs6UC_JBmVOH12CQ",storageServer:4,ownerID:null},{id:"642b8eaa-b418-4db8-b9ea-1b9c8aa86d00",fontFamily:"Ultra",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"qo4rZBi0uE256huciqhtAA",storageServer:4,ownerID:null},{id:"2c3211e9-2b6a-49c6-b63a-1e40b49fa28f",fontFamily:"Oxygen",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"6REyLGorxkm2Oh5AtJ-ijw",storageServer:4,ownerID:null},{id:"31757e21-a23d-4b2b-af66-2de414ece485",fontFamily:"Loved by the King",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"IX51MT2iK0uvZi3kFOzkhQ",storageServer:4,ownerID:null},{id:"78ec2b16-7746-4d71-b549-2e02bcddbb58",fontFamily:"Ubuntu",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"FivseEZ3cU21SS4CvN27WA",storageServer:4,ownerID:null},{id:"3a767f73-88f9-4a5b-b9d9-314b6953ff2b",fontFamily:"alegreya",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"c392OvmIW0q52TFLaVP_Kw",storageServer:4,ownerID:null},{id:"367e3596-460d-4385-8894-33bc86900d45",fontFamily:"Geostar Fill",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"ljV-Ng1GhUOIlDO8hpANRQ",storageServer:4,ownerID:null},{id:"9a12ddc9-4d39-484b-88f8-3ba12992301a",fontFamily:"GoodDog",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"yd0SmjlNS0iI-DuhKZIwGg",storageServer:4,ownerID:null},{id:"481951ac-767c-411a-94ad-42178d05bd9e",fontFamily:"WalkWay",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"rFEZSHx2GkGUrUIXjQW9ng",storageServer:4,ownerID:null},{id:"790f646a-9f89-4aac-9793-530d241b955d",fontFamily:"IM Fell English SC",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"amQPeYmfrEqXk1MNJBuVXQ",storageServer:4,ownerID:null},{id:"aa1aa242-4565-493d-8dc8-53672f30e967",fontFamily:"Metamorphous",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"QqIaqmVFPUmNyFNnLzDpZw",storageServer:4,ownerID:null},{id:"265b03e5-acde-4773-9b5d-55a462006730",fontFamily:"Droid Sans",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"5QNbJt6sc0ebXVWkYgBnMA",storageServer:4,ownerID:null},{id:"cf62fd55-956a-418a-bbc1-577c0bdb2ddc",fontFamily:"Fredericka the Great",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"Vf1iz2qVikG7wVd8C9st3A",storageServer:4,ownerID:null},{id:"fcae94e7-2fec-4ea0-8e29-584a2b3498e9",fontFamily:"Eater",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"55Su_OwvoE6OKVhKKzSY6Q",storageServer:4,ownerID:null},{id:"c87f2751-0273-48ca-b050-5bd471272166",fontFamily:"Vast Shadow",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"USd_yHMCykiwUFvUcSchZg",storageServer:4,ownerID:null},{id:"a1fec907-1d82-4efd-8ea5-72aa2462692a",fontFamily:"Shadows Into Light",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"B8n-oYId_U6OpXKqJGJpKg",storageServer:4,ownerID:null},{id:"bca1239b-cfd9-4674-a3f3-77bfe865cd9e",fontFamily:"Sail",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"myOhvNnPdEaj83e_6GXNng",storageServer:4,ownerID:null},{id:"c0c4ebfa-376e-456d-b52f-7bc3a5524511",fontFamily:"Monoton",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"-uvEwG43bUW1L3vDpVJFEQ",storageServer:4,ownerID:null},{id:"4d70accc-c3eb-4e30-831f-87c2aebbba92",fontFamily:"Windsong",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"zKxwTevDME6DH4fCrru6kg",storageServer:4,ownerID:null},{id:"649495ea-c170-4cf0-a7c1-899801f3b23a",fontFamily:"Frijole",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"6pWUZHDB8EynwYmYAfOyOg",storageServer:4,ownerID:null},{id:"ce47876c-91e9-4828-bcdd-8c969c79eed4",fontFamily:"Montserrat Alternates",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"bIdHzumRKEi83YyWnHnu1A",storageServer:4,ownerID:null},{id:"d3c0077c-8bf2-4eab-846a-8f423e34340d",fontFamily:"Geostar",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"fAfA0_KLq06Eao9CPjQ0DQ",storageServer:4,ownerID:null},{id:"0cb005e2-6cb1-4f9a-b41d-915a272a1b76",fontFamily:"Creepster",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"4gWwDLFsmk-0HZFaJyobdg",storageServer:4,ownerID:null},{id:"7cade256-3cb9-45aa-a4d8-97b306fd4dbc",fontFamily:"Love Ya Like A Sister",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"VuKtfLk8qkWk2JezBv1NvA",storageServer:4,ownerID:null},{id:"2071d878-f419-47cd-b047-9bb130909aae",fontFamily:"Raleway",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"eNhxIBn0zUewR5uxMJCarg",storageServer:4,ownerID:null},{id:"88e68407-dc4c-4ed4-ada4-b4c89c83f206",fontFamily:"Merienda One",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"B4TmiEzc1E6tpLTInIPyBg",storageServer:4,ownerID:null},{id:"6ac971e7-32c6-4cf8-9960-bd37457038ea",fontFamily:"Titillium Web",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"53HJasYy-EyZYL03RXA46g",storageServer:4,ownerID:null},{id:"5e1f36d2-2c8e-4e67-bdc9-be3821863d46",fontFamily:"Fascinate",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"0jYfXo4sZ069yb44IYY9Rg",storageServer:4,ownerID:null},{id:"6a0c7754-700e-4c3e-9bb9-c7c28ac10924",fontFamily:"Megrim",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"VHcMag5wPkybucfCisEJJA",storageServer:4,ownerID:null},{id:"b040c83c-d7a1-4fd5-96e2-ccfea301d539",fontFamily:"Ballpark",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"PMhAsKHX1U-W4sz-owHVOQ",storageServer:4,ownerID:null},{id:"4228bbc5-24cf-4b16-9962-d16e83224608",fontFamily:"Miltonian",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"xbsoQs8kFkuZYtFugyJGCA",storageServer:4,ownerID:null},{id:"dabde0dc-c2ac-445b-ae82-d17271036830",fontFamily:"Average Sans",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"3OC92qzCW0SugtFycQNoMA",storageServer:4,ownerID:null},{id:"a1f56792-8d49-47b5-b238-e176eee56874",fontFamily:"Questrial",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"kmf1oUmNtUeyOOF27uVodA",storageServer:4,ownerID:null},{id:"d2a8a6f3-ae33-4f02-9873-e319979ebc3c",fontFamily:"Plaster",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"86ao0jOuAk-Yc-MZl568PA",storageServer:4,ownerID:null},{id:"55445c86-6517-4786-a23b-e7969bd58cc7",fontFamily:"Ubuntu Condensed",supportedLanguages:["eng"],classification:"sanserif", fileNamePrefix:"hlxEVRdlhkeiO-eWm9WMxw",storageServer:4,ownerID:null},{id:"589684e8-cae5-44d9-a4e8-ecaaabbd07f3",fontFamily:"Seymour One",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"6ISWWOXK2USk6Oyqq70H8w",storageServer:4,ownerID:null},{id:"0399ce94-4c94-4280-aa47-f257929bf1b6",fontFamily:"Butcherman",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"lM6ZA5RMgEKqR_JXkpvxtg",storageServer:4,ownerID:null},{id:"b4d1d6e8-0d30-4b5a-9dae-f46e9d0200e0",fontFamily:"MarketingScript",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"6NbRtDANWkudrvRunQIA4A",storageServer:4,ownerID:null},{id:"fe4e0d3a-2ef7-4331-8f57-ff80a693729a",fontFamily:"Caesar Dressing",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"Og1O_vcuMUOPV_-AppNymg",storageServer:4,ownerID:null}]}var n=this;this.SiteFonts=new Mt({idFunction:function(e){return e.fontFamily}}),this.useFontFamily=To,this.getSiteFonts=function(){return r.getValues(Vi.SiteFonts.getItems())},this.initialize=function(i){void 0===i&&(i=t());var a=e(),o=r.makeSet(a,function(e){return e.fontFamily});i=r.grep(i,function(e){return!o[e.fontFamily]}),i=r.merge(a,i),Vi.SiteFonts.put(i),n.SiteFontsController=Zt.create({fonts:r.mapItem(i,function(e){return e.fileNamePrefix?{fontFamily:e.fontFamily,fontUrlPrefix:J.resolveFontUrl(e),supportSVG:e.storageServer!=Q.Amazon,supportEOT:!0,supportTTF:!0,supportWOFF:e.storageServer!=Q.Amazon}:void 0})})},this.getFontDisplayText=function(e){return Na.isFontBinding(e)?"{0} ({1})".format(Na.getThemeFontType(e),Na.evaluateFontBinding(e)):e}}),Bi=Do(function(){var e=m.create(function(){return{paypal:"YourPayPalEmail@domain.com",facebookPageUrl:sr.getBrandFacebookUrl(),siteEmail:"youremail@domain.com",googleCard:"youremail@domain.com",googlePlus:sr.getBrandGooglePlusUrl(),twitter:sr.getBrandTwitterUrl(),linkedin:"http://www.linkedin.com"}});this.Types={PayPal:"paypal",SiteEmail:"siteEmail",Facebook:"facebookPageUrl",GoogleCard:"googleCard",GooglePlus:"googlePlus",Twitter:"twitter",Linkedin:"linkedin"},this.Events={AccountsChangedEvent:b.create()},this.getDefaultAccountId=function(t){return e.get()[t]},this.getAccountID=function(t){return $i.getValue(t+"AccountId",e.getValue()[t])},this.setAccountID=function(e,t,n){$i.setValue(e+"AccountId",t,{onSuccess:n,onError:To})}}),Li=Do(function(){var e,t=this,n={};this.initialize=function(){e=Kt.create(),t.stopPooling()},this.attach=function(i,a,o){var s=[];a=a?a:xo,o=o?o:To,i=r.asArray(i);for(var l=0;l0&&t.startPooling(),s},this.stopPooling=function(t){t=t?t:"default",e.stopPooling(t)},this.startPooling=function(t){t=t?t:"default",e.startPooling(t)},this.postponeSamples=function(e,t){t=t?t:"default",e=r.asArray(e),r.each(e,function(e,i){var a=n[i.id];a&&r.each(a.callbacksItems,function(e,n){n.postpone(t)})})},this.unPostponeSamples=function(e,t){t=t?t:"default",e=r.asArray(e),r.each(e,function(e,i){var a=n[i.id];a&&r.each(a.callbacksItems,function(e,n){n.unPostpone(t)})})},this.detach=function(i){i=r.asArray(i);for(var a=0;ah)for(var m=0;-h>m;m++){var v=r("
");g.push(v[0])}for(var m=0;u>m;m++){for(var y=r([]),b=r(g[m]),C=!1,I=0;l>I;I++){var S=I+m*l,P=i[S];if(P){var w=r.objectGet(P,["data","currentIndex"]);r.objectSet(P,["data","currentIndex"],S),P.$element.parent()[0]===b[0]&&w===S||(C=!0),y.pushElements(P.$element),P.lastRowParent=b,P.appendTo(g[m],d,!0),P.showElement()}}C&&b.applyChildrenSorting(y)}if(h&&s.applyChildrenSorting(g),h>0)for(var m=f-1;m>f-1-h;m--)r(g[m]).remove(),g.pop();return e(g,n,d),p}}),zi=Do(function(){function e(e){var t=e.getArrangement(),n=e.isInEmptyState();e.getDataItemsController().getInstance().canResizeVertically.setValue(t.canResize.vertically||n,"isInLayout"),e.getDataItemsController().getInstance().canResizeHorizontally.setValue(t.canResize.horizontally||n,"isInLayout")}function t(){return[]}this.registerDataLayoutTypes=function(n,i){r.eachEntry(n,function(n,a){var o=r.quickExtend({categoryName:i.name,removeLayout:To,orderElements:To,startLayout:To,getNavigatableInstances:t,navigateTo:To,refreshLayout:To,getCurrentItem:function(e){return e.data.pagesInstance},canItemResize:{vertically:!1,horizontally:!1},canResize:{vertically:!0,horizontally:!0},fields:{},canSelectItems:!0,showItem:To,fetchItemsInformationToArrange:function(e,t,n,i){e.getDataItemsController().fetchAllControllers(n,i)},refreshEmptyState:To},a,{name:n});_i[n]=o;var s=o.arrange,l=o.startLayout,c=o.refreshEmptyState;o.arrange=function(e,t,n){var i=s(e,t,n);return i&&(r.eachItem(i.controllersToArrange,function(e,t){var n=t.getInstance();n&&(n.canResizeHorizontally.setValue(o.canItemResize.horizontally,"dataListItem"),n.canResizeVertically.setValue(o.canItemResize.vertically,"dataListItem"))}),i.options=n),i},o.startLayout=r.hookAfterMethod(l,e),o.refreshEmptyState=r.hookAfterMethod(c,e),i.items[n]=_i[n]})},this.calculateItemSize=function(e,t,n){var i=e;return t.fixedSize?i=t.fixedSize:t.keepItemSize&&n.fixedSize&&(i=n.fixedSize),t.useCalculatedWidth&&(i.width=e.width),i}}),_i={},Ni={Pages:{name:"Pages",iconClass:"sprite-icon sprite-tool-category-panels",title:"Pages",isActive:!0,items:{}},Normal:{name:"Normal",iconClass:"sprite-icon sprite-tool-category-panels",title:"Normal",isActive:!0,items:{}},FormLayouts:{name:"FormLayouts",iconClass:"sprite-icon sprite-tool-category-panels",title:"Form Layouts",isActive:!1,items:{}}},Ri={Horizontal:{getFixedSize:function(e,t,n){var i=Math.floor((e.width-n.lineSpacing*(t-1))/t),a=e.height;return{width:Math.floor(i),height:a}},getLayoutOptions:function(e){return{elementsPerRow:e}},orderItemsLayout:Oi.reorderControllers,arrange:function(e,n){n=r.quickExtend({lineSpacing:10},n);for(var i,a=n.length,o=n.size,s=0;s0?1*n.lineSpacing:0;l.setSize(i),l.setMargin({marginLeft:c})}var u=Math.ceil(i.width*a+(a-1)*n.lineSpacing);u=u>0?u:o.width;var d={height:i.height,width:u};return{fixedSize:i,contentSize:d}}},Vertical:{getFixedSize:function(e,t,n){var i=(e.height-n.columnSpacing*(t-1))/t,a=e.width;return{width:a,height:Math.floor(i)}},getLayoutOptions:r.returnEmptyObject,orderItemsLayout:Oi.reorderControllers,arrange:function(e,n){n=r.extend({columnSpacing:10},n);for(var i,a=n.size,o=n.length,s=0;s0?1*n.columnSpacing:0;l.setSize(i),l.setMargin({marginTop:c})}var u=Math.ceil(i.height*o+(o-1)*n.columnSpacing);u=u>0?u:a.height;var d={width:i.width,height:u};return{fixedSize:i,contentSize:d}}},Grid:{getFixedSize:function(e,t,n){var i=n.cols,a=Math.floor(t/i),r=t%i;0!==r&&a++;var o=(e.height-n.rowsSpacing*(a-1))/a,s=(e.width-n.colsSpacing*(i-1))/i;return{width:Math.floor(s),height:Math.floor(o)}},getLayoutOptions:function(e,t){return{elementsPerRow:parseInt(Math.min(parseInt(t.cols),e))}},orderItemsLayout:Oi.reorderControllers,arrange:function(e,n){var i=n.size;n=r.extend({rowsSpacing:10,colsSpacing:10,cols:3},n);var a=n.length,o=n.cols,s=Math.floor(a/o),l=a%o;0!==l&&s++;for(var c,u=0,d=0,g=e.length,f=0;s>f&&g>0;f++){u=0;for(var h=0;o>h&&g>0;h++){var p=f*o+h,m=e[p];c=t(n.fixedSize,m,n),u=h>0?1*n.colsSpacing:0,m.setSize(c),m.setMargin({marginTop:d,marginLeft:u}),g--}d=n.rowsSpacing}var v=Math.ceil(c.width*o+(o-1)*n.colsSpacing);v=v>0?v:i.width;var y=Math.ceil(c.height*s+(s-1)*n.rowsSpacing);return y=y>0?y:i.height,{fixedSize:c,contentSize:{width:v,height:y}}}},OneColumn:{getFixedSize:function(e,t,n){var i=(e.height-n.rowsSpacing*(t-1))/t,a=e.width;return{width:a,height:Math.floor(i)}},getLayoutOptions:r.returnEmptyObject,orderItemsLayout:Oi.reorderControllers,arrange:function(e,n){n.size;n=r.extend({rowsSpacing:10},n);for(var i,a=(n.length,{width:0,height:0}),o=0;o0?1*n.rowsSpacing:0;a.height+=l.height+c,s.setSize({width:i.width,height:l.height}),s.setMargin({marginTop:c})}return a.width=n.calculatedFixedSize.width,{fixedSize:n.calculatedFixedSize,contentSize:a}}},Columns:{getFixedSize:function(e,t,n){var i=parseInt(Math.min(parseInt(n.cols),t)),a=Math.floor(t/i),r=t%i;0!==r&&a++;var o=(e.height-n.rowsSpacing*(a-1))/a,s=(e.width-n.colsSpacing*(i-1))/i;return{width:Math.floor(s),height:Math.floor(o)}},getLayoutOptions:function(e,t){return{elementsPerRow:parseInt(Math.min(parseInt(t.cols),e))}},orderItemsLayout:Oi.reorderControllers,arrange:function(e,n){var i=n.size;n=r.quickExtend({rowsSpacing:10,colsSpacing:10,cols:3},n);var a=n.length,o=parseInt(Math.min(parseInt(n.cols),a)),s=Math.floor(a/o),l=a%o;0!==l&&s++;for(var c=0,u=0,d=0,g=0,f=e.length,h=0;s>h&&f>0;h++){c=0,g=0;for(var p=0;o>p&&f>0;p++){var m=h*o+p,v=e[m],y=t(n.fixedSize,v,n),b=v.getSize();c=p>0?1*n.colsSpacing:0,v.setSize({width:y.width,height:b.height}),v.setMargin({marginTop:u,marginLeft:c}),f--,g0?C:i.width,d=d>0?d:i.height,{fixedSize:y,contentSize:{width:C,height:d}}}},Rows:{getFixedSize:function(e,t,n){var i=parseInt(Math.min(n.rows,t)),a=Math.floor(t/i),r=t%i;0!==r&&a++;var o=(e.height-n.rowsSpacing*(i-1))/i,s=(e.width-n.colsSpacing*(a-1))/a;return{width:Math.floor(s),height:Math.floor(o)}},arrange:function(e,n){var i=n.size;n=r.quickExtend({rowsSpacing:10,colsSpacing:10,rows:5},n);var a=parseInt(Math.min(n.rows,e.length)),o=Math.floor(e.length/a),s=e.length%a;0!==s&&o++;for(var l=e.length,c=0,u=0,d=t(n.fixedSize,e[0],n),g=0;o>g&&l>0;g++){var f={},h=n.$columns[g],p=g>0?n.colsSpacing:0;h.css("width",d.width),h.css("marginLeft",p),c=0;for(var m=0;a>m&&l>0;m++){var v=g*a+m,y=e[v],b=y.getSize(),C=m>0?n.rowsSpacing:0;y.setSize({width:d.width,height:b.height}),y.setMargin({marginTop:C}),y.column=g,y.columnData=f,c+=b.height+C,l--}c>u&&(u=c),c=0,f.height=c}var I=d.width*o+(o-1)*n.colsSpacing;return I=I>0?I:i.width,u=u>0?u:i.height,{fixedSize:d,contentSize:{width:I,height:u}}}}};r.eachEntry(Ni,function(e){_i[e]={}});var Hi=Do(function(){function e(){r.eachEntry(ji.getAllPageInstances(),function(e,t){t.isInitialized&&t.onBeforePageOpen()})}function t(){r.eachEntry(ji.getAllPageInstances(),function(e,t){t.isInitialized&&t.onBeforePageLeave()})}function n(){ur.startRenderingBatch(),r.eachEntry(ji.getAllPageInstances(),function(e,t){t.isInitialized&&t.setToPreview()}),ur.finishRenderingBatch()}function i(){c.getBodyTargets().toggleClass("design-mode",!1).toggleClass("view-mode",!0)}this.Events={SwitchedToViewMode:b.create(),SwitchedToDesignMode:b.create(),ViewModeChanged:b.create(),BeforeViewModeChanged:b.create()},this.IsElementInFullScreen=k.create(!1);var a,o,s,l,c=this,u=!1,d=m.create(function(){return!("notfixed"in r.getQueryStringParams())});this.initialize=function(){a=r("#body-element"),o=r("body"),l=r('
'),s=r(".body-element-wrapper",l),l.insertBefore(a),a.appendTo(s),Eo.initialize(),i(),ta.Events.BeforePageChanged.bind(function(){ta.PageChangingOperation.whenFinished(function(){e(),n()},"PageManager.Events.BeforePageChanged")}),ta.Events.PageChanging.bind(function(){t()}),document.addEventListener("fullscreenchange",function(){c.IsElementInFullScreen.setValue(!!document.fullscreenElement)},!1),document.addEventListener("mozfullscreenchange",function(){c.IsElementInFullScreen.setValue(!!document.mozFullscreenElement)},!1),document.addEventListener("webkitfullscreenchange",function(){c.IsElementInFullScreen.setValue(!!document.webkitFullscreenElement)},!1),document.addEventListener("msfullscreenchange",function(){c.IsElementInFullScreen.setValue(!!document.msFullscreenElement)},!1),r("html").on("selectstart",function(e){var t=r(e.target),n=t.parents().andSelf(),i=!n.is(".content-editable, .selectable-text, :input")&&(n.hasClass("webzai-clickable-behaviour")||!n.hasClass("has-text")&&!n.hasClass("has-rich-content"));return!i})},this.isFixedEditingLayout=function(){return d.getValue()},this.getBodyElementWrapper=function(){return s},this.getBodyElementContainer=function(){return l},this.getBodyElement=function(){return a},this.getBodyTargets=function(){return r.unite(o,a)},this.getSiteScrollableElement=function(){return r.getScrollingController().$scrollableForWrite},this.getScrolledElement=function(){return c.getBodyElement()},this.isDesignMode=ko,this.isViewMode=xo,this.switchToViewMode=function(){u=!1,c.Events.BeforeViewModeChanged.fireNew(),i(),c.Events.SwitchedToViewMode.fireNew(),c.Events.ViewModeChanged.fireNew()}}),qi=Do(function(){function e(e){t(e),n(e)}function t(e){r.eachEntry(Ci.getInstanceSourceConnections(e),function(e,t){qi.removeConnection(t)})}function n(e){r.eachEntry(Ci.getInstanceTargetConnections(e),function(e,t){qi.removeConnection(t)})}function i(e,t,n,i,a){var r=n.name,o={sourceElementID:e,targetElementID:t,behaviourName:r,options:i};return a?o.id=a:o.id=fa.generateWebsiteId(),Ci.addBehaviourToCollection(o),ji.performOnInstancesCreated([e,t],function(){Ci.addBehaviourToInitializedCollection(o);var t=ji.getInstanceByID(e);t?(b.fireLazyEvent(t,"influenceChanged"),t.performWhenVisible(function(){ur.performOnLayoutUpdate(function(){Ci.activateBehaviour(o)},"connection-activaion"+o.id),t.refreshCursor()})):j.error("sourceInstance is null")}),o}function a(e,t,n,i){var a=Ci.getInstanceTargetConnections(e),o=[];return a&&r.eachEntry(a,function(e,a){a.targetElementID===t&&a.options.triggerName===i.triggerName&&a.behaviourName===n&&a.options.triggerType===i.triggerType&&o.push(a)}),o}function o(e,t){var n=Ci.getInstanceTargetConnections(e),i=[];return n&&r.eachEntry(n,function(e,n){n.behaviourName===t&&i.push(n)}),i}var s=this;this.getConnection=function(e,t,n,i){var r=a(e,t,n,i);return 1==r.length?r[0]:void 0},this.applyConnections=function(e){e||(e={}),r.each(e,function(e,t){s.connectElement(t.sourceElementID,t.targetElementID,t.behaviourName,t.options,t.id)})},this.applyConnectionsToSource=function(e,t){r.each(e,function(){var e=ji.getInstanceByID(this.targetElementID);t&&e?s.connectElement(t.id,e.id,this.behaviourName,this.options):j.warn("Bad element ID")})},this.updateConnection=function(e,t,n,a,r){var o=(r?r.priority:void 0,ji.getInstanceByID(n)),s=ji.getInstanceByID(a);r.name?e.connectionData:e.options;r.deactivate(o,s,t),Ci.removeBehaviourFromCollection(e),Ci.removeBehaviourFromInitializedCollection(e),e=i(n,a,r,t,e.id),W.Events.ConnectionUpdated.fire(this,e)},this.removeConnection=function(e){W.Events.ConnectionRemoving.fireNew(),ie.beginAtomicBatch(!1,"Remove Action"),Ci.removeBehaviourFromCollection(e),Ci.removeBehaviourFromInitializedCollection(e);var t=ji.getInstanceByID(e.sourceElementID),n=ji.getInstanceByID(e.targetElementID);if(!t)return void W.Events.ConnectionRemoved.fire(this,e);var i=e.behaviourName?Ii[e.behaviourName]:void 0;i?i.priority:void 0,e.connectionData?e.connectionData:e.options;i.deactivate(t,n,e.options),W.Events.ConnectionRemoved.fire(this,e),b.fireLazyEvent(t,"influenceChanged"),ie.endAtomicBatch()},this.removeInstanceConnections=function(t){e(t.id)},this.connectElement=function(e,t,n,s,l){n&&"string"!=typeof n&&(n=n.name);var c=r.extend({isTemplateConenction:!1},s),u=n?Ii[n]:{};if(u){ie.beginAtomicBatch(),W.Events.ConnectionAdding.fireNew();var d,g,f=null,h=!0;if(Ii[n].onlyOnePerSource)g=o(e,n),d=r.grep(g,function(e){return e.options.isTemplateConenction===c.isTemplateConenction}),1===d.length&&(f=d[0],f.targetElementID===t&&r.defaultEqualityComparer(c,f.options)?h=!1:qi.removeConnection(f));else if(g=a(e,t,n,c),d=r.grep(g,function(e){return e.options.isTemplateConenction===c.isTemplateConenction}),1===d.length){f=d[0],h=!1;var p=!1;r.defaultEqualityComparer(c,f.options)||(p=!0),p&&qi.updateConnection(f,c,e,t,u)}if(h){var m=i(e,t,u,c,l);W.Events.ConnectionAdded.fireNew(m)}ie.endAtomicBatch()}},this.getSameConnections=a}),Ui=Do(function(){var e,t,n=this,i=!1,a=!1,o=!1,s=1;this.Events={ElementsReordered:b.create()},this.IsEnabled=k.createConditionalPositive(),this.OrderingBatch=Pe.create({batchStartCallback:function(){o=!1,a=!0},beforeFinishingCallback:function(){a=!1,o&&(Ui.reassignElementsOrders(),t.activate())}}),this.isReorderDomOnContainerEnabled=function(e){return Ta.Flags.IsInMobileContext.isTrue()||e.isType(Yn.page)||e.hasFeature(Qn.HasFormData)},this.initialize=function(){t=b.createEventListener([ia.Events.ElementsVisibilityChanged,{name:"order",event:Ki.Events.NamedPropertyValueChanged},ji.Events.InstancesRemoved],function(){Ui.reassignElementsOrders()}),t.activate()},this.disable=function(e){Ui.IsEnabled.setFalse(e)},this.enable=function(e){Ui.IsEnabled.setTrue(e)},this.beginReorderingBatch=function(){n.OrderingBatch.start()},this.endReorderingBatch=function(){n.OrderingBatch.finish()},this.setReassignmentRequired=function(e){o=e},this.reassignElementsOrders=function(){function n(t){t.setPropertyValue("order",u),e[u]=t,u++}function l(e,t){n(e);var i=[],a=[],o=[],s=[],l=[];r.eachItem(e.childInstances,function(e,t){t.hasFeature(Qn.PageSection)?(r.merge(i,t.childInstances),t.childInstances=[],t.isMainSection()?o.push(t):s.push(t)):t.isType(Yn.PageContentElement)?l.push(t):(i.push(t),a.push(t))}),i=i.orderBy(function(){return this.getCalculatedOrder()},r.nullLastComparer),o=o.orderBy(function(){return this.getCalculatedOrder()},r.nullLastComparer),s=s.orderBy(function(){return this.getCalculatedOrder()},r.nullLastComparer),e.childInstances=[];var u=l.concat(o).concat(s);o=r.grep(o,function(e){return e.isInstanceVisible()}),s=r.grep(s,function(e){return e.isInstanceVisible()}),r.eachItem(u,function(e,t){n(t)}),e.childInstances=u,r.eachItem(i,function(e,t){t.parentInstance.childInstances.push(t)});var d,g,f,h={};for(d=0;ds});if(c.length>0)a=r.minValue(c,function(e){return e.getPropertyValue("order")}),o.setPropertyValue("order",a+(1-1/(s+1)));else{var u=o.getPropertyValue("order");a=r.minValue(o.parentInstance.childInstances,function(e){var t=e.getPropertyValue("order");return t-u>0?t-u:n.getMaxOrder()}),o.setPropertyValue("order",u+a+.1)}}n.endReorderingBatch(),ie.endAtomicBatch()},this.bringToFront=function(e){e=r.asArray(e),ie.beginAtomicBatch(),n.beginReorderingBatch(),r.eachItem(e,function(e,t){var n=t.getPropertyValue("order");Ki.setPropertiesValues(t,{order:s+n})}),n.endReorderingBatch(),ie.endAtomicBatch()},this.sendBackward=function(e){ie.beginAtomicBatch(),n.beginReorderingBatch(),e=r.asArray(e);for(var t=r.makeSet(e,function(e){return e.id}),i=0;i0)a=r.maxValue(c,function(e){return e.getPropertyValue("order")}),o.setPropertyValue("order",a-1/(s+1));else{var u=o.getPropertyValue("order");a=r.minValue(o.parentInstance.childInstances,function(e){var t=e.getPropertyValue("order");return t-u>=0?n.getMaxOrder():u-t}),o.setPropertyValue("order",u-a-.1)}}n.endReorderingBatch(),ie.endAtomicBatch()},this.sendToBack=function(e){ie.beginAtomicBatch(),n.beginReorderingBatch(),r.each(e,function(e,t){var n=t.getPropertyValue("order");Ki.setPropertiesValues(t,{order:-1-1/n})}),n.endReorderingBatch(),ie.endAtomicBatch()},this.getMaxOrder=function(){return s},this.increaseMaxOrder=function(){s++},this.setInstancesOrders=function(e){ie.beginAtomicBatch(),Ui.beginReorderingBatch(),r.eachEntry(e,function(e,t){var n=ji.getInstanceByID(e);void 0===n||n.hasFeature(Qn.PageSection)||n.setPropertyValue("order",t)}),Ui.endReorderingBatch(),ie.endAtomicBatch()},this.storeInstancesOrders=function(e,t){r.eachItem(e,function(e,n){r.eachItem(n.getDescendingInstances(),function(e,n){n.isContent()||(t[n.id]=n.getPropertyValue("order"))})})},this.storeHierarchyOrders=function(e,t){e.eachStructure(function(e){t[e.id]=e.elementProperties.order})}}),$i=function(){var e,t={},n=cn.create({getSettingsValue:function(t){return e?e[t]:void 0},setSettingsValue:void 0});return n.getPendingSettings=function(){return t},n.initialize=function(t){e=t},n}(),Wi={BackgroundColor:{priority:1,name:"BackgroundColor"},BackgroundImage:{priority:2,name:"BackgroundImage"},BackgroundImageOverlay:{priority:3,name:"BackgroundImageOverlay"},BackgroundOverlay:{priority:4,name:"BackgroundOverlay"}},ji=Do(function(){function e(t,n){var i=t.instance,a=i.childInstances;r.eachItem(a,function(i,a){var r={instance:a,childInstancesHierarchies:[]};n.push(a),e(r,n),t.childInstancesHierarchies.push(r)})}function t(e,n,i,a){e&&!n[e.id]&&(n[e.id]=!0,a&&!a.call(e)||i.push(e),t(e.parentInstance,n,i,a))}function i(e,t,n){n=r.quickExtend({isContent:!1,isVisible:!0,isForTemplateUse:!1,pageId:null},n);var i=n.initialPropertiesValues,a=n.elementID,s=n.isContent,l=n.isVisible,c=n.isForTemplateUse,u=n.pageId,d=n.structureMetaData,f=n.thumbsResolver,m=null===t,v=m||!t.root?null:t.root.id;e=o(e);var y=Wn.create(e,{initialPropertiesValues:i,elementID:a,isForTemplateUse:c,structureMetaData:d,thumbsResolver:f});return c?h[y.id]=y:(v=null===v?u:v,null===v&&(v=y.id,g[v]={}),g[v][y.id]=y,p[y.id]=v,y.currentPageId.setValue(v),y.root=g[v][v],y.setIsContent(s),y.isVisible=l&&(!y.hasFeature(Qn.Hideable)||y.getPropertyValue("isVisible")===!0)),y.setParent(t),ia.initializeStoredPosition(y),y}function a(e,t,n){n=r.quickExtend({},n);var i=n.droppingArgs;if(e.hasFeature(Qn.DesignElement)){var a=r.flattenStructure([e],{childrenGetter:function(e){return e.childInstances}}),o=r.mapToDictionary(a,r.identity,r.defaultIdFunction);u.connectInstancesWithElements(r.parseHtmlAsJQuery(jn.renderElement(e)),o);var s,l,c=a.length;for(l=0;c>l;l++){if(s=a[l],s.hasFeature(Qn.HasContent)){var d=s.creationFunction(s);d&&(d.addClass("element-content"),s.$elementContentContainer.append(d),s.$elementContent=d)}s!==e&&(s.$container=s.$element.parent())}for(l=0;c>l;l++){s=a[l];var g=s.parentInstance;t&&s===e&&(s.$container=g.addChildElement(s)),function(e){e.performWhenVisible(function(){ia.isElementVisible(e)&&e.initialize()})}(s),null!==g&&(s.onAttached(),g.onChildElementAdded(s,i),s.onElementAddedToContainer(g)),ji.Events.InstanceCreatedEvent.fireNew(s)}}else null!==t&&(t.onChildElementAdded(e,i),e.onElementAddedToContainer(t)),ji.Events.InstanceCreatedEvent.fireNew(e),e.initialize()}function o(e){return"object"==typeof e?e:Yn[e]}function s(e,t){var n=".remember-part",i=e.find(n);e.is(n)&&i.push(e[0]),r.eachItem(i,function(e,n){var i=n.getAttribute("data-element-id"),a=n.getAttribute("data-element-part"),o=t[i].data,s=o[a];s||(s=r([]),o[a]=s),s.push(n)})}function l(e,t,n,i){var a=e.find(i);e.is(i)&&a.push(e[0]),r.eachEntry(t,function(e,t){t[n]=r([])}),r.eachItem(a,function(e,i){var a=i.getAttribute("data-element-id");t[a][n].push(i)})}function c(e,t){t=r.quickExtend({isContent:!1,isVisible:!0,isLoading:!1,isForTemplateUse:!1},t);var s=t.parent,l=t.initialProperties,c=t.isForTemplateUse,u=t.thumbsResolver,d=t.droppingArgs,g=t.dataSourceName,f=t.dataItemID,h=t.isContent,p=t.isVisible,m=t.pageId;s?(s=n(s),s.isForTemplateUse&&s.isForTemplateUse()&&(c=!0)):s=null;for(var v=[{structure:e,parent:s}],y=void 0;v.length>0;){var b,C=v.pop(),I=C.structure,S=C.parent,P=I.id,w=I.elementProperties;b=l?r.quickExtend({},w,l.all,l[P]):w,ia.updateInstanceLastPositionAndSize(I.id,I.metaData);var E=i(o(I.type),S,{initialPropertiesValues:b,elementID:P,isContent:h,isVisible:p,isForTemplateUse:c,pageId:m,structureMetaData:I.metaData,thumbsResolver:u});I.dataFields&&E.setBinding(g,f,I.dataFields),void 0===y&&(y=E);var T=I.childElements;if(T&&T.length>0){var x=T.length;d=void 0;for(var k=x-1;k>=0;k--)v.push({structure:T[k],parent:E})}}return a(y,s,{droppingArgs:d}),y}var u=this;this.Events={InstanceInitialized:b.create(),InstanceCreatedEvent:b.create(),InstancesRemoved:b.create(),InstancesRemoving:b.create(),RemovingStarted:b.create(),ElementAddedToContainer:b.create(),ScrollingStartedEvent:b.create(),ScrollingFinishedEvent:b.create()};this.HierarchyChangedUpdateBatch=Pe.create(),this.PropertiesUnpostponingBatch=Pe.create(),this.Templates={GroupElement:{id:"group-element-template"}};var d,g={},f={},h={},p={};this.performOnInstancesInitialization=function(e,t){e=r.asArray(e);for(var n={},i=0,a=0;a0)var l=ji.Events.InstanceInitialized.bind(function(a){var r=a.id;n[r]&&(delete n[r],i--,0===i&&(ji.Events.InstanceInitialized.unbind(l),t(e)))});else t(e)},this.performOnInstancesCreated=function(e,t){e=r.asArray(e);for(var n={},i=0,a=0;a0)var l=ji.Events.InstanceCreatedEvent.bind(function(a){var r=a.id;n[r]&&(delete n[r],i--,0===i&&(ji.Events.InstanceCreatedEvent.unbind(l),t(e)))});else t(e)},this.isRootInstance=function(e){return u.getInstanceRootID(e)===e.id},this.getInstanceRootID=function(e){return p[e.id]},this.setElementParent=function(e,t){null!==e.parentInstance&&void 0!==e.parentInstance&&(e.parentInstance.childInstances=r.grep(e.parentInstance.childInstances,function(t){return t!=e}));e.parentInstance=t,null!==t&&t.childInstances.push(e),ji.updateInstanceRoot(e,t)},this.updateInstanceRoot=function(e,t){var n=e.root,i=t?t.root:n;if(n!==i&&!e.isForTemplateUse()){var a=e.getDescendingInstances(!0);r.eachItem(a,function(e,t){t.root=i;var a=t.id;if(n){var o=n.id;delete g[o][a]}var s=i.id;p[a]=s,r.objectSet(g,[s,a],t),t.currentPageId.setValue(s)})}},this.removeInstances=function(e,t,n){var i,a;ji.HierarchyChangedUpdateBatch.start(),Gi.beginLayoutUpdateBatch(),e instanceof Array||(e=[e]);var o=aa.getHierarchiesRoots(e);o=r.grep(o,function(e){return!e.isInDeleteProcess});var s={};for(ji.Events.RemovingStarted.fireNew(o),ia.VisibilityUpdateBatch.start(),i=0;i0&&(c.childElements=[],r.eachItem(e.childInstancesHierarchies,function(e,i){var a=i.instance;if(!a.isContent()||t.allowContent){var i=n(i);i&&c.childElements.push(i)}}),i.hasFeature(Qn.DataList))){var u=i.getDataSource();u&&r.eachEntry(i.getDataSource().getAllItems(),function(e){r.quickExtend(s,Ci.getInstanceTargetConnections(i.getDataItemInstanceId(e),function(e){return!e.isTemplateConenction&&t.connectionFilter(e)}))})}return c}}t=r.quickExtend({forSaving:!1,saveToServer:!1,saveRootsOffsets:!1,filter:xo,allowContent:!1,idsInHierarchy:!1,adjustSize:!1,adjustPosition:!1,clearRootsLayout:!1,copyAffectedStates:!0,copyAffectingStates:!1,copyMobileStates:!0,connectionFilter:xo},t),void 0===e.length&&(e=[e]);var i=t.rootInstancesHierarchies;i||(i=ji.getInstancesWithHierarchyFromRoots(e).rootInstancesHierarchies);var a={},o=[],s={},l={};o.length=0;var c=99999999,u=99999999;r.eachItem(i,function(e,i){var a=i.instance,r=n(i);if(r){var s=a.getPosition(!0);s&&(r.offset=s,s.lefto;o++){i=n[o];i.$element;i.$elementPositionBox=i.$element,i.$elementBackgroundTarget=i.$elementBackgroundLayer}},this.addInstanceToRoot=function(e){var t=ta.getPagesRoot();e.$element.appendTo(t),e.$container=t,ia.visibilityTreeAttach(e),e.parentInstance=null},this.addSection=function(e,t){if(ta.getCurrentPage().getPageContentInstance()){t=r.quickExtend({},t),t.initialPropertiesValues=r.quickExtend({},t.initialPropertiesValues),ie.beginAtomicBatch(!1,"Add Header"),W.Events.ElementsAdding.fireNew();var n=ji.addInstance(Yn.SectionElement,ta.getCurrentPage(),t);return sa.setAsPageContentElement(n),W.Events.ElementsAdded.fireNew({instances:[n]}),ie.endAtomicBatch(),n}},this.addInstancesHierarchyFromStructure=function(e,t){function n(e,n){n||t.isForTemplateUse||(t.parentsMap&&t.parentsMap[e.id]?t.parent=t.parentsMap[e.id]:t.useContainerId&&(t.parent=ji.getInstanceByID(e.containerId)))}t=r.quickExtend({isLoading:!1,isForTemplateUse:!1,filterFunction:xo,afterAddingCallback:To,useContainerId:!1,withRendering:!0},t);var i=t.withRendering;t.isForTemplateUse||(W.Events.ElementsAdding.fireNew(),ie.beginAtomicBatch(!1,"Add Hierarchy")),i&&ur.startRenderingBatch();var a=[],o=t.parent;return r.eachItem(e,function(e,i){n(i,o),t.filterFunction(i)&&a.push(c(i,t))}),t.afterAddingCallback(),ji.HierarchyChangedUpdateBatch.fireEvent(W.Events.HieararchyChanged),i&&ur.finishRenderingBatch(),W.Events.ElementsAdded.fireNew({instances:a}),t.isForTemplateUse||ie.endAtomicBatch(),a}}),Gi=Do(function(){function e(e){e(),Ja.executePushing()}function t(){var e,t,a=null,o=!1;f.isEmpty()&&m.isEmpty()&&h.isEmpty()||(o=!0,ia.UpdateBatch.start());var s=ta.getCurrentPage();for(a=null;!f.isEmpty();){var l=[],u=[],d=[],g=f.clone();f.clear(),g.each(function(n,i){if(e=i.instance,e.isDeleted)return!0;var a=e.getParent(),o=e.isRelativePositioned(),l=e.getActualPropertyValue("lineWidth"),c=e.getActualPropertyValue("padding"),u=e.getActualPropertyValue("borderWidth"),g=e.hasFeature(Qn.HasOutline)&&e.isLineAffectsSize(),f=void 0!==u?u:fa.createValueToObjectValueConverter(["left","top","bottom","right"])(g&&l?l:0),h=e.getPropertyValue("fillLayout"),p=e.currentMargin?e.currentMargin:fa.createValueToObjectValueConverter(["left","top","bottom","right"])(0),m=!e.isType(Yn.HeaderElement)&&!e.isType(Yn.FooterElement);t=e.getActualPropertyValue("sizeAndPosition");var v=e.getAutoLayoutProperties();h=h?h:{};var y={left:0,right:0,top:0,bottom:0},b={},C=Ke.Left;if(a&&a.hasFeature(Qn.HasChildrenLayoutAnchor)&&(C=a.getAnchorLatyout()),!ia.isElementVisible(e))return!0;if(e.hasFeature(Qn.HasLayout)){if(a===s&&e.isFixed()){y.bottom+=Eo.getFooterHeight(),m&&e.hasVerticalLayout()&&(y.top+=s.getHeaderInstanceHeight()),m&&(y.bottom+=s.getFooterInstanceHeight()+So.getPrivacyPolicyActualHeight())}if((h.fillHorizontal||e.hasFeature(Qn.HasResponsiveItem)&&!e.isBlock())&&(o?r.quickExtend(b,{right:"",left:"",width:"",marginLeft:p.left,marginRight:p.right}):r.quickExtend(b,{right:p.right+y.right,left:p.left+y.left,width:"",marginLeft:"",marginRight:""}),i.left=p.left),h.fillVertical&&(r.quickExtend(b,{bottom:p.bottom+y.bottom,top:p.top+y.top,height:"",minHeight:"",marginTop:""}),i.top=p.top),e.isType(Yn.PageContentElement)&&r.quickExtend(b,{marginBottom:p.bottom,marginTop:p.top}),!h.fillHorizontal){var I=e.getPropertyValue("horizontalLayout"),S=p.left+y.left,P=p.right+y.right;switch(I){case Gi.Layout.dockLeft:r.quickExtend(b,{left:o?"":S,right:"",marginLeft:o?S:"",marginRight:""});break;case Gi.Layout.dockRight:r.quickExtend(b,{right:o?"":P,left:"",marginLeft:"",marginRight:o?P:""});break;case Gi.Layout.centered:r.quickExtend(b,{right:"",left:"50%",marginLeft:"{0}px".format(0-t.width/2+p.left),marginRight:""})}}if(!h.fillVertical){var w=e.getPropertyValue("verticalLayout"),E=p.top+y.top,T=p.bottom+y.bottom;switch(w){case Gi.Layout.dockTop:r.quickExtend(b,{top:o?"":E,bottom:"",marginTop:o?E:"",marginBottom:""});break;case Gi.Layout.dockBottom:r.quickExtend(b,{bottom:o?"":T,top:"",marginTop:"",marginBottom:o?T:""});break;case Gi.Layout.centered:r.quickExtend(b,{bottom:"",top:"50%",marginTop:0-t.height/2+p.top,marginBottom:""})}}}var x=e.getMinSize(),k=e.getMaxSize();if(v.width||(e.hasWidth()?b.width=r.minValue([k.width,r.maxValue([t.width-(c?c.left+c.right:0)-(f?f.left+f.right:0),x.width])]):b.width=""),v.height||(e.hasHeight()?b.minHeight=t.height-(c?c.top+c.bottom:0)-(f?f.top+f.bottom:0):e.isType(Yn.Tab)&&e.hasCellWrapper.isTrue()?b.minHeight=e.parentInstance.getPropertyValue("sizeAndPosition").height:b.minHeight=0),b.minHeight=r.minValue([k.height,r.maxValue([b.minHeight,x.height])]),e.elementType===Yn.Flash&&(b.height=b.minHeight),!v.left)if(o)b=e.hasCellWrapper.isTrue()?r.quickExtend(b,{marginLeft:"",marginRight:"",left:"",right:""},e.getStaticMargin({vertically:!1})):r.quickExtend(b,{marginLeft:"",marginRight:"",left:"",right:""});else switch(C){case Ke.Right:r.quickExtend(b,{right:0-(t.left-y.right),left:"",marginLeft:"",marginRight:""});break;case Ke.Centered:r.quickExtend(b,{right:"",left:"50%",marginLeft:t.left,marginRight:""});break;default:var F=k.width,D=t.left+t.width;r.quickExtend(b,{left:D>F?r.max([0,D-F]).value:t.left+y.left,right:"",marginLeft:"",marginRight:""})}if(!v.top)if(o)if(e.hasCellWrapper.isTrue())b=r.quickExtend({top:"",bottom:"",marginTop:"",marginBottom:""},b,e.getStaticMargin({horizontally:!1}));else{var E=Math.max(t.top+y.top,0);r.quickExtend(b,{top:"",bottom:"",marginTop:E,marginBottom:""})}else r.quickExtend(b,{top:t.top+y.top,bottom:"",marginTop:"",marginBottom:""});e.isType(Yn.HeaderElement)&&r.quickExtend(b,{top:y.top,bottom:"",left:y.left,right:y.right,marginTop:""}),e.isType(Yn.FooterElement)&&r.quickExtend(b,{top:"",bottom:y.bottom,left:y.left,right:y.right,marginTop:""}),b=r.quickExtend({right:"",left:"",marginLeft:"",marginRight:"",top:"",bottom:"",marginTop:"",marginBottom:"",width:"",height:"",minHeight:"",minWidth:""},b),d.push({pendingUpdate:i,instance:e,layoutStyle:b})}),r.eachItem(d,function(e,t){var n=t.pendingUpdate,i=t.layoutStyle,a=t.instance,r=c(a,i),o=a.getAutoLayoutProperties();(r.sizeChanged||o.width||o.height||n.forceLayoutUpdate)&&l.push(a),(r.positionChanged||o.left||o.top||n.forceLayoutUpdate)&&u.push(a)}),o&&(n(l,{updateOffset:!1,updateSize:!0}),n(u,{updateOffset:!0,updateSize:!1})),(l.length>0||u.length>0)&&wn.PendingWriteOperations.executeOperations()}if(o){var p=!1;m.isEmpty()&&h.isEmpty()||(p=!0),i(),wn.PendingReadOperations.executeOperations(),ia.UpdateBatch.finish()}}function n(e,t){t=r.quickExtend({updateOffset:!0,updateSize:!0},t);for(var n=t.updateSize,i=t.updateOffset,a=0;an.maxBottom&&(p-=y-n.maxBottom),bn.maxRight&&(h-=C-n.maxRight),Xi.moveInstances(e,{left:h,top:p})},this.moveToOffset=function(e,t,n){if(t){n=r.quickExtend({},n);var i=n.transitionData,a=n.callback;e=r.asArray(e);var o,s=[];for(o=0;oh&&(h=d,p=d),h>f&&(h=f,p=f);var m=u.horizontal,v=u.vertical,y=m&&(u.east||s),b=m&&(u.west||s),C=v&&(u.north||s),I=v&&(u.south||s);ur.startRenderingBatch();for(var S=[],P=[],w=0;wq.width&&(x.right=x.right/U*q.width,x.left=x.left/U*q.width);var $=x.top+x.bottom;$>q.height&&(x.top=x.top/$*q.height,x.bottom=x.bottom/$*q.height),N&&y&&(x.right-=h,B||(T.width+=h)),_&&b&&(x.left-=h,B||(T.width+=h))}v&&A&&(z&&I&&(x.bottom-=p,L||(T.height+=p)),O&&C&&(x.top-=p,L||(T.height+=p))),E.setPropertyValue("margin",x)}var W=E.getParent(),j=Ke.Left;W&&W.hasFeature(Qn.HasChildrenLayoutAnchor)&&(j=W.getAnchorLatyout()),b&&!_&&(T.width+=h*(c&&R&&!s?2:1)),y&&!N&&(T.width+=h*(c&&R&&!s?2:1)),_||N||R||(j===Ke.Right?y&&P.push({instance:E,sizeAndPosition:T,margin:x,fillLayout:k,horizontalLayout:F,verticalLayout:D,mirrorLeft:!0}):b&&P.push({instance:E,sizeAndPosition:T,margin:x,fillLayout:k,horizontalLayout:F,verticalLayout:D})),C&&!O&&(T.height+=p*(c&&H&&!s?2:1),z||H||S.push({instance:E,sizeAndPosition:T,margin:x,fillLayout:k,horizontalLayout:F,verticalLayout:D})),I&&!z&&(T.height+=p*(c&&H&&!s?2:1)),E.setPropertyValue("sizeAndPosition",T)}var G=0,X=0;if(C&&(X=0-p),(b||y)&&(G=0-h),P.length>0){var Y=Xi.moveInstances(P,{left:G});S=r.map(S,function(e){var t=Y[e.instance.id];return t?t:e})}S.length>0&&Xi.moveInstances(S,{top:X}),ur.finishRenderingBatch()}},this.getInstnceActaulSizeAndPosition=function(e){var t=e.getPropertyValue("sizeAndPosition");return t},this.getRelativeArea=function(e,t){if(e.isRelativePositioned())return e.getRelativeToParentArea(t);var n=Xi.getRelativeTopPosition(e),i=Xi.getRelativeLeftPosition(e),a=e.getSize();return{top:n,left:i,bottom:n+a.height,right:i+a.width,center:{top:n+a.height/2,left:i+a.width/2},height:a.height,width:a.width}},this.getRelativeTopPosition=function(e){var t,n=r.quickExtend({},e.getPropertyValue("sizeAndPosition")),i=!1;if(e.hasFeature(Qn.HasLayout)){var a=r.quickExtend({},e.getPropertyValue("margin")),o=(e.getPropertyValue("horizontalLayout"),e.getPropertyValue("verticalLayout")),s=e.getPropertyValue("fillLayout");(s.fillVertical||o!==Gi.Layout.normal)&&(o===Gi.Layout.dockBottom?(t=e.parentInstance.getContentSize().height-a.bottom-e.getSize().height,i=!0):o===Gi.Layout.centered?(t=e.parentInstance.getContentSize().height/2+a.top-e.getSize().height/2,i=!0):(s.fillVertical||o===Gi.Layout.dockTop)&&(t=a.top,i=!0))}return i||(t=n.top),t},this.getRelativeLeftPosition=function(e){var t,n=r.quickExtend({},e.getPropertyValue("sizeAndPosition")),i=!1,a=Ke.Left,o=e.parentInstance;if(o&&o.hasFeature(Qn.HasChildrenLayoutAnchor)&&(a=o.getAnchorLatyout()),e.hasFeature(Qn.HasLayout)){var s=r.quickExtend({},e.getPropertyValue("margin")),l=e.getPropertyValue("horizontalLayout"),c=e.getPropertyValue("fillLayout");(c.fillHorizontal||l!==Gi.Layout.normal)&&(l===Gi.Layout.dockRight?(t=e.parentInstance.getContentSize().width-s.right-e.getSize().width,i=!0):l===Gi.Layout.centered?(t=e.parentInstance.getContentSize().width/2+s.left-e.getSize().width/2,i=!0):(c.fillHorizontal||l===Gi.Layout.dockLeft)&&(t=s.left,i=!0))}return i||(t=n.left,a===Ke.Centered?t+=o.getContentSize().width/2:a===Ke.Right&&(t=o.getContentSize().width-t)),t},this.moveInstances=function(e,t,n){e=r.asArray(e),t=r.quickExtend({left:0,top:0},t),ur.startRenderingBatch();for(var i={},a=0;a0&&Xi.withLayoutPreserving(e,function(){r.eachItem(e,function(e,n){t.isType(Yn.page)||n.setPropertyValue("isFixed",!1)}),Xi.clearInstancesLayout(e),ji.addElementToContainerElement(t,e),Gi.refreshElementsLayout(e)},n)},this.unwrap=function(e){if(!e.hasParent())return[];var t=e.getChildInstances(),n=[],i=[];if(e.isFixed()&&(n=r.merge([],t)),sa.isMasterPageRootInstance(e)&&(i=r.merge([],t)),t.length>0){var a=e.getParent();Yi.reattachInstances(t,a)}return ie.disableOperationsRecording("unwrapChildsUpdating"),r.eachItem(n,function(e,t){t.setPropertyValue("isFixed",!0)}),sa.setAsMasterPageRoots(i),ie.enableOperationsRecording("unwrapChildsUpdating"),ji.removeInstances([e]),t},this.wrapInstances=function(e,t){var n=aa.getCommonAncestors(e,!1,!1);if(0!==n.length){var i=n[0],a=bo.addTemplateInstance({elementForCreation:{structures:[t]}},i),r=a.instances[0];return Xi.setInstanceArea(r,Xi.calculateInstancesSurroundingArea(e,!0)),Yi.reattachInstances(e,r),r}},this.groupInstances=function(e){if(e&&!(e.length<=1)){ie.beginAtomicBatch(!1,"Group");var t=e[0].getParent();if(t){var n=bo.addTemplateInstance({elementForCreation:{structures:[{type:"group",elementProperties:{sizeAndPosition:{left:0,top:0,width:0,height:0},backgroundColor:"transparent",borderWidth:r.convertValueToObject(0,["top","left","bottom","right"]),padding:r.convertValueToObject(0,["top","left","bottom","right"])}}]}},t),i=n.instances[0];return i.disableGroup("grouping"),Yi.reattachInstances(e,i),i.enableGroup("grouping"),i.refreshGroupArea(),ie.endAtomicBatch(),i}}},this.removeGroup=function(t){ie.beginAtomicBatch(!1,"Remove Group"),e(t.getChildInstances(),!0),ie.endAtomicBatch()},this.removeFromGroup=function(t){ie.beginAtomicBatch(!1,"Remove From Group"),e(t,!0),ie.endAtomicBatch()},this.releaseGroup=function(t){e(t.getChildInstances(),!1)},this.changePageChildren=function(e,t,n){n=r.quickExtend({deleteAfterChange:!0,duplicateHierarchy:!0,filterFunction:xo,changeInvisibleSection:!1},n);var i=n.deleteAfterChange,a=n.duplicateHierarchy,o=n.filterFunction;n.changeInvisibleSection;ie.beginAtomicBatch(!1,"changePage");var s;s=a?vr.duplicateHierarchyInfo(t,{rootsIds:[e.id]}):t;var l=xa.create(s);fa.loadPageHierarchy(s);var c=r.grep(e.getChildInstances(),function(e){return!e.isMasterPageElement.isTrue()&&o(e)}),u=l.addHierarchyFromNode(e.id,{includeNode:!1,includeChildren:!0,parent:e});return l.applyHierarchy(),i?ji.removeInstances(c):ji.detachInstances(c),ie.endAtomicBatch(),u}}),Qi={PC:"PC",Mobile:"Mobile"},Ki=Do(function(){function e(e,t,n,i){"string"!=typeof e&&(e=e.name),i=r.valueOrDefault(i,!0);var a=Ki.getStateAffectedInstances(t,e),o=D.setAndReturnFieldIfAbsent(e,{});o[t.id]=a,V=!0;for(var s=0;s0;r.inArray(i,s)<0&&s.push(i),Ki.Events.CustomStatePropertyAddedSimple.fireNew({propertyName:i,stateName:n,affectedInstance:t,affectingInstance:e,sourceInstance:e,value:a}),b.fireLazyEvent(e,"influenceChanged")}function c(e,t,n,i,a){if(t){var r=t.descriptor,o=r.name;if(void 0!==n&&null!==n){var s=r.valueConverter;s&&(n=s(n))}r.isStateProperty()&&void 0!==F?E.setValueInCustomState(e,t,F,n):(E.shouldMarkPropertyAsCustom(e,o)?(t.customValue=n,t.customValueMarked=!0,B[e.id]=!0):(t.customValue=void 0,t.customValueMarked=!1,t.value=n),u(e,t,i,void 0,a))}}function u(e,t,n,i,a){if(t){void 0===n&&(n=!1);var o=t.descriptor,l=o.name,c=y(e,l),u=c.computedStateData;if(c.isCustomState)r.objectSet(L,[e.id,l],!0);else{var f=e.id,h=r.objectGet(L,[f,l]);if(h){var p=L[f];delete p[l],r.isEmptyObject(p)&&delete L[f]}}var m=u.stateValue,v=t.computedValue;if(d(t,m),s(o,v,t.computedValue)){var b=void 0;n&&("object"==typeof n?b=n:i===_.StateAdded?(u.transitionInDuration&&(b={transitionEffect:u.transitionInEffect,transitionDuration:u.transitionInDuration,transitionDirection:u.directionIn,transitionSlideDirection:u.transitionSlideInDirection}),u.transitionOutDuration?t.transitionsStack.push({transitionEffect:u.transitionOutEffect,transitionDuration:u.transitionOutDuration,transitionDirection:u.directionOut,transitionSlideDirection:u.transitionSlideOutDirection}):t.transitionsStack.push(void 0)):i===_.StateRemoved&&(b=t.transitionsStack.pop())),g(e,t,v,b,a)}}}function d(e,t){e.computedValue=t}function g(e,t,n,i,a){var r=t.descriptor,o=r.name;if(p(e)){var s=t.computedValue,l={instance:e,propertyName:o,propertyDescriptor:r,newValue:s,oldValue:n};Ki.Events.ComputedValueChanged.fireNew(l)}if(Ki.UpdateBatch.isActive()&&"isVisible"!==o&&"isVisibleInMode"!==o&&"name"!==o&&"order"!==o){var c=e.id,u=O.getFieldOrInit(o,{}),d=z.getFieldOrInit(c,{});if(!u[c]){var g={instance:e,property:t,oldValue:n,transitionData:i,callback:a};u[c]=g,"order"!==o&&(d[o]=g)}}else h(e,t,n,i,void 0,a)}function f(){for(Ki.PropertiesChangesNotifyingBatch.start();!O.isEmpty()||!z.isEmpty();){var e=z.clone(),t=O.getEntries();O.clear(),z.clear(),t.orderByDesc(function(e){return ei[e.key].priority});for(var n=0;n0)for(var s=0;so;o++){var s=ji.getInstanceByID(i);s&&(t=!0,E.removeStateAffectedProperty(e,s,n,a[0]))}})}},this.addGlobalState=function(t,n,i,a){void 0===i&&(i=_.StateAdded),a=r.valueOrDefault(a,!0),a||Ki.setCanPerformTransition(!1,"addGlobalState"),e(t,n,i,a),a||Ki.setCanPerformTransition(!0,"addGlobalState")},this.setDefaultGlobalState=function(e){var n=t();D.clear(),A.clear(),V=!1,L={},B={},Ki.setCanPerformTransition(!1,"setDefaultGlobalState"),r.eachEntry(n,function(t){var n=ji.getInstanceByID(t);!n||e&&n.isForTemplateUse()||Ki.refreshState(n,_.StateSet,!0)}),Ki.setCanPerformTransition(!0,"setDefaultGlobalState")},this.setCustomGlobalState=function(e,n){"string"!=typeof e&&(e=e.name);var i=Ki.getStateAffectedInstances(n,e),a=t(),o=r.mapArray(i,xo,r.defaultIdFunction);r.extend(a,o),D.clear(),A.clear(),L={},B={};var s=D.setAndReturnFieldIfAbsent(e,{});s[n.id]=i,V=!0,Ki.setCanPerformTransition(!1,"setCustomGlobalState"),r.eachEntry(a,function(e){var t=ji.getInstanceByID(e);t&&Ki.refreshState(t,_.StateSet,!0)}),Ki.setCanPerformTransition(!0,"setCustomGlobalState")},this.removeGlobalState=function(e,t,i,a){a=r.valueOrDefault(a,!0),a||Ki.setCanPerformTransition(!1,"removeGlobalState"),n(e,t,_.StateRemoved),a||Ki.setCanPerformTransition(!0,"removeGlobalState")},this.clearInstanceGlobalState=function(e){A.removeField(e.id),D.each(function(t){n(t,e,_.StateSet)})},this.clearMouseOverState=function(){r.eachItem([Ei.MouseOverState.name,Ei.MouseOverStateArea.name],function(e,t){var i=D.getField(t);i&&r.eachEntry(i,function(e){var i=A.getField(e);i&&delete i[t],n(t,ji.getInstanceByID(e),_.StateRemoved)})})},this.inStateEditingMode=function(){return void 0!==F},this.getEditedState=function(){return F},this.startStateEditingMode=function(e){F={type:e.StateMode},e.sourceInstance&&(F.source=e.sourceInstance.id)},this.endStateEditingMode=function(){F=void 0},this.createProperties=function(e,t,n){for(var i={},a=0;a0}return n},this.isStyleAffectingInPage=function(e,t,n){var i=!1;if(void 0!==n)"string"!=typeof n&&(n=n.name),e.affectedProperties[n]&&r.eachEntry(e.affectedProperties[n],function(e){var n=ji.getInstanceByID(e);return n&&n.getPageId()===t.id?(i=!0,!1):void 0});else for(var a in e.affectedProperties)if(e.affectedProperties.hasOwnProperty(a)&&(r.isEmptyObject(e.affectedProperties[a])||r.eachEntry(e.affectedProperties[a],function(e){var n=ji.getInstanceByID(e);return n&&n.getPageId()===t.id?(i=!0,!1):void 0}),i))break;return i},this.getAffectedPropertiesDictionary=function(e,t,n){"string"!=typeof n&&(n=n.name);var i={},a=t.affectedProperties[n];if(void 0!==a){var r=a[e.id];if(void 0!==r)for(var o=0;o0,a=ta._getPageFragmentValue(e,i);if(i){var o=[a];return r.eachItem(t,function(e,t){n?o.push(""+t):o.push((""+t).toLowerCase())}),o}return a}function t(e){var t=e.masterListPageId,n=r.valueOrDefault(t,e),i=t&&e.suffixFragments.length>0?e.suffixFragments:void 0,a=e.keepCases;return{pageId:n,suffix:i,keepCases:a}}function n(){if(mn.isPushState()){var e=ta.getPageData(ta.getCurrentPageId()),t=Zi.getFragment();try{ga("send","pageview",t)}catch(n){}try{window.getInsights(function(n){n.pageView(e.title,t)})}catch(i){}}}var i=r.makeDictionaryFromKeys(["<",">","/","%","?","*","\\"],!0),a=[];this.UrlChangingOperation=Pe.create(),this.getFullHtmlUrl=function(e){return mn.getFullHtmlUrl(e)},this.isPageNameLegal=function(e){if(!e)return!0;for(var t=0;tt;t++)o[t]=arguments[t+1];var s=e.getInitializedTargetConnections();for(t=0;tt;t++)o[t]=arguments[t+2];var s=e.getInitializedTargetConnections();for(t=0;t0&&(i[t]=o),n.push(t)}}),te.NavigatableHierarchy.updateHierarchy(i,n)}function t(){te.NavigatablePagesInformation.connectObservableCollection(pe,{normalizeCollection:i})}function n(e){var t=e.menu;return t?Ta.Flags.IsInMobileContext.isTrue()?!t.isMobileDisabled:!t.isDesktopDisabled:!0}function i(){te.NavigatablePageChangingOperation.performOperation(function(){function t(e){o[e]=!0,delete a[e],l[e]&&r.each(l[e],function(e,n){t(n)})}var i=te.NavigatablePagesInformation;i.beginUpdate();var a={},o={},s=pe.getItems(),l=te.PagesHierarchy.getHierarchies();r.eachEntry(s,function(e,i){n(i)?o[e]||(a[e]=i):t(e)}),i.remove(r.getKeys(o));var c=r.getValues(a).orderBy(r.defaultIndexFunction,r.nullLastComparer),u=i.getItems();r.eachItem(c,function(e,t){var n=t.id,a={index:e+1};u[n]?i.updateItemFields(n,a):i.put(r.quickExtend({},t,a))}),i.endUpdate(),e()},"NormalizeNavigatablePagesInformation")}function a(e){return r.findFirst(te.getAllPagesData(),e)}function o(e,t,n){ie.disableOperationsRecording("innerRemovePage"),te.PagesUpdatingOperation.start(),Ui.beginReorderingBatch(),r.eachItem(e,function(e,n){var i=te.getPageData(n),a=i.index;re[n].exist=!1,ae[n]&&(ji.removeInstances(ae[n],ae[n]),delete ae[n]),ge.remove(n),t&&!L(i)&&r.eachEntry(te.getStaticPagesData(),function(e,t){t.index>a&&te.updatePageFieldsData(e,{index:t.index-1})}),te.Events.PageDeleted.fireNew(n),O(n,i.tags)}),te.setMainPageId(n),Ui.endReorderingBatch(),ta.PagesUpdatingOperation.finish(),ie.enableOperationsRecording("innerRemovePage")}function s(e){return oe[e]||void 0!==PagesStructures[e]}function c(e){return"resolved"===u(e).state()}function u(e){var t=se[e];return t||(t=r.Deferred(),se[e]=t),"resolved"!==t.state()&&s(e)&&t.resolve(y(e)),t}function d(e){return 0===SiteFilesMap["page-"+e].indexOf("//")?window.location.protocol+SiteFilesMap["page-"+e]+"?_="+r.uniqueID():SiteFilesMap["page-"+e]+"?_="+r.uniqueID()}function g(e,t){return"".format(d(t),e,t)}function f(e){return Hn.getScriptWithLoading({createIFrameURL:function(t){return r.combinePaths(Settings.ApplicationRoot,"/extern/page-load/page-load.html")+"?"+r.param({pageId:e,url:d(e),id:t})},createDataHtml:function(t){return g(t,e)},callback:function(t){return void 0!==t?(PagesStructures[e]=t,!0):!1},timeout:l.VeryLong})}function h(e){var t=le[e];return t||(t=le[e]=f(e),t.always(function(){delete le[e]}).done(function(){se[e].resolve(y(e))})),t}function p(e){r("body").addClass("loading-page"),ve=e}function m(e){ve===e&&(r("body").removeClass("loading-page"),ve=!1)}function v(e){return y(e).getHierarchy()}function y(e){var t=oe[e];return t||(t=PagesStructures[e]?"string"==typeof PagesStructures[e]?xa.create(JSON.parse(PagesStructures[e])):xa.create(PagesStructures[e]):xa.create(ji.getHierarchyInfo(ae[e],{forSaving:!0,saveToServer:!0,idsInHierarchy:!0,rootInstancesHierarchies:Ta.getPageInstancesHierarchiesData(ae[e]),filter:function(e){return!e.isMasterPageElement.isTrue()}})),oe[e]=t),t}function C(e,t){sa.setMasterPageInfo(e,function(){I(e,t)})}function I(e,t){function n(){ve===e&&c(e)&&S(e,t)}ve===e&&(c(e)?S(e,t):h(e).done(n).fail(function(){m(e),t(!1)}))}function S(e,t){ne.profile("Page Initialization");var n=te.getPageData(e),i=e;e=""+e,ie.disableOperationsRecording("switchPage"),Ui.disable("switchPage"),ur.startRenderingBatch(),ae[e]||x(e,n.title);var a=T(e);re[e].initialized||A(e),ur.finishRenderingBatch(),Ui.enable("switchPage"),ie.enableOperationsRecording("switchPage"),ea.loadPageRequirements(n,a,function(n){ve===i&&(m(i),E(e,n,t))},function(e){ve===i&&(m(i),t(!1),Ve.handleAjaxException(e),Zi.navigateToPage(te.getMainPageId()))})}function P(e){te.PagesUpdatingOperation.start(),te.FieldsInformation.put([{type:"index",title:"Index",name:"index",isDefaultField:!0},{type:"title",title:"Title",name:"title",isDefaultField:!0}]),oe={};var t=[];r.eachEntry(e.pagesData,function(e,n){re[e]=_(),t.push(n)}),w(t,e.pagesHierarchies),r.eachItem(t,function(e,n){n.id=""+n.id,void 0===n.shareStyle&&(n.shareStyle=!0),M(n.id,n.tags),t[e]=r.quickExtend({metaTags:"",headerCode:"",footerCode:"",tags:[]},n)}),ge.put(t),z(),te.PagesHierarchy.extendHierarchies(e.pagesHierarchies),te.PagesUpdatingOperation.finish()}function w(e,t){function n(e){var t=r.grep(i,function(t){return r.oneOfValues(""+t.id,e)});t.orderBy(function(e){return e.index}),r.each(t,function(e,t){t.index=l++,s[t.id]&&n(s[t.id])})}if(1.2044>ee){var i=r.grep(e,L,!0),a=r.map(i,r.defaultIdFunction),o=new Ft({ids:a,hierarchies:t}),s=o.getHierarchies(),l=1;n(o.getRootIds())}}function E(e,t,n){ie.disableOperationsRecording("switchPage");var i=te.getPageData(e),a=Y===e,r=re[e];ur.startPageRenderingBatch(),te.Events.PageChanging.fireNew(Y,e),te.Flags.isInPageChanging.setTrue(),a||(Q=X,Y=e,X=ae[e],sa.updateCurrentMasterPage(),r.initialized||F(),Q&&(Q.detach(),te.Events.AfterCurrentPageDetached.fireNew()),X.attachPage()),t(),te.Events.PageLoaded.fireNew(),r.initialized||(r.initialized=!0,te.getPageData(e).supportsMobileStates||(r.markForSave.informOperation(),U(e)),te.getPageData(e).supportsMobileStates=!0,te.Events.PageInitialized.fireNew()),te.CurrentPageInstance.setValue(ae[e]),te.CurrentPageData.setValue(i),te.Events.BeforePageChanged.fireNew(),te.Events.PageChanged.fireNew(),te.Events.AfterPageChanged.fireNew(),te.Flags.isInPageChanging.setFalse(),n(!0),Hi.getSiteScrollableElement().scrollTop(0),ia.invalidatePositioningRootOffset(),ur.finishPageRenderingBatch(),ie.enableOperationsRecording("switchPage"),Q||de.resolve(),ne.profileEnd("Page Initialization")}function T(e){var t,n=ae[e],i=re[e],a=r.getValues(sa.getOrCreateMasterTemplateRootInstances(e)),o=aa.getHierarchiesUnion(a);if(i.initialized)t=n.getDescendingInstances();else{if(!n.data.pageContentRootInstances){var s=y(e);n.data.pageContentRootInstances=s.addHierarchyFromNode(e,{includeNode:!1,includeChildren:!0,parent:null,pageId:e})}var l=n.data.pageContentRootInstances;t=l?aa.getHierarchiesUnion(l):[],t.push(n)}return r.merge(t,o)}function x(e,t){var n=y(e),i=n.getHierarchy(),a={StructureVersion:i.version,pagesStructure:{pages:[i]}};if(fa.loadHierarchy(a),i.structures[0].type!==Yn.page.name){var r=i.structures;i.structures=[{type:Yn.page.name,id:e,childElements:r}]}var o=n.addHierarchyFromNode(e,{includeNode:!0,includeChildren:!1})[0];o.setPropertyValue("name",t),ae[e]=o}function F(){ue?V():B()}function A(e){y(e).applyHierarchy()}function V(){var e=X.data.pageContentRootInstances,t=X.getHeaderInstance().getPropertyValue("sizeAndPosition").height,n=r.getWindowSize(),i=[];e&&r.each(e,function(e,a){var o=t0?i:0}t&&(t.data.calculatedMinHeight=i,Gi.LayoutContentOperationsSet.requestOperation(function(){Gi.refreshElementsLayout(t)},"refreshLastSectionHeight"))}},"refreshLastSectionHeight")}function U(e,t){t=r.valueOrDefault(t,sa.getMasterPageIDByPage(e)),sa.getMasterTemplateForSaveDirtyFlag(t).informOperation()}var $,j,G,X,Y,Q,K,Z,J,ee,te=this,ae={},re={},oe={},se={},le={},ce={},ue=!1,de=r.Deferred();this.FirstPageLoaded=de.promise(),this.Events={PageLoaded:b.create(),PageChanging:b.create(),InPageChanging:b.create(),PageChanged:b.create(),AfterPageChanged:b.create(),BeforePageChanged:b.create(),PageDeleted:b.create(),PageDeleting:b.create(),PageInitialized:b.create(),CoordinatorInitialized:b.create(),AfterCurrentPageDetached:b.create()},this.Flags={isPageSelected:k.create(!1),isInPageChanging:k.create(!1),HeaderExists:k.create(!1,{valueChangeCallback:function(e){r("body").toggleClass("header-exists",e)}}),FooterExists:k.create(!1,{valueChangeCallback:function(e){r("body").toggleClass("footer-exists",e)}}),InDynamicPage:k.create(!1),Initialized:k.create(!1)},this.PageRenderingOperation=Pe.create(),this.PageChangingOperation=Pe.create(),this.NavigatablePageChangingOperation=Pe.create(),this.PagesUpdatingOperation=Pe.create(),this.CurrentPageInstance=D.create(void 0,{equalityComparer:r.defaultIdComparer}),this.CurrentPageData=D.create(void 0,{equalityComparer:r.defaultIdComparer,valueChangeCallback:function(e){te.Flags.InDynamicPage.setValue(L(e)),L(e)?te.setCurrentDynamicPageFlag(e):te.resetDynamicPageFlags()}}),this.TagsToPagesMapObservableCollection={},this.PagesTags=new Mt({idFunction:function(e){return e}}),this.PageToTags={},this.PagesHierarchy=new Ft,this.NavigatableHierarchy=new Ft;var ge=new Mt;this.createAllPagesObserver=function(e,t){return zt.create(ge,e,t)};var fe=this.createAllPagesObserver();this.AllPagesView=xe.connectObservableCollection(new Mt,fe,{normalizeCollection:function(e){var t=fe.getItemsValues().orderBy(r.defaultIndexFunction,r.nullLastComparer),n=0,i={};r.eachItem(t,function(t,a){if(De.isDynamicPage(a))e.updateItemFields(a.id,{index:i[De.getListName(a)]+1});else{var r=t+n;e.updateItemFields(a.id,{index:r}),De.isMasterListPage(a)&&(i[De.getListName(a)]=r,++n)}})}}),this.createAllPagesViewObserver=function(e,t){return zt.create(this.AllPagesView,e,t)},this.resetDynamicPageFlags=function(){r.eachEntry(ce,function(e,t){t.setFalse()})},this.setCurrentDynamicPageFlag=function(e){var t=e.masterPageType||e.pageListName;r.eachEntry(ce,function(e,n){e===t?n.setTrue():n.setFalse()})},this.createDynamicPageVisibleFlag=function(e){if(ce[e])throw Error("A Flag with the same name already exists!");var t=k.create(!1);return ce[e]=t,t};var he=xe.connectObservableCollection(new Mt,fe,{filterFunction:r.oppositeFunction(L)});this.createStaticPagesObserver=function(e,t){return zt.create(he,e,t)};var pe=this.createStaticPagesObserver(),me=xe.connectObservableCollection(new Mt,fe,{filterFunction:L});this.NavigatablePagesInformation=new Mt,this.NavigatablePagesCollection=zt.create(te.NavigatablePagesInformation),this.FieldsInformation=new Mt({idFunction:function(e){return e.name}}),this.FieldsCollection=zt.create(te.FieldsInformation),this.initialize=function(e){N(e);var n=!1;K=e.mainPageId,te.Events.PageChanged.bind(function(){X.data.isLoaded?X.activateTrigger(Pi.PageOpened):(X.data.isLoaded=!0,X.activateTrigger(Pi.PageLoaded)),X.activateTrigger(Pi.PageLeave),X.refreshPageMetaData()}),b.bind([he.itemUpdatedEvent],function(e){if(!n){ie.disableOperationsRecording("PagesInformation");var t=e.id;re[t].initialized&&(ae[t].setPropertyValue("name",e.title),Ki.notifyCalculatedPropertyChange(ae[t],"pageTitle")),M(t,e.tags),ie.enableOperationsRecording("PagesInformation")}}),pe.itemsChangedEvent.bind(function(e){e.updatedItems&&(ie.disableOperationsRecording("PagesCollection"),r.each(e.updatedItems,function(e,t){var n=ji.getInstanceByID(t.id);n&&(n.setPropertyValue("name",t.title),n===X&&(n.refreshPageMetaData(),Zi.navigateToPage(t.id,{navigationOptions:{disableLoading:!0}})))}),ie.enableOperationsRecording("PagesCollection"))}),te.NavigatablePageChangingOperation.bind(function(){te.NavigatablePagesCollection.postponeUpdates()},function(){te.NavigatablePagesCollection.unPostponeUpdates()}),te.PagesUpdatingOperation.bind(function(){te.NavigatablePageChangingOperation.begin(),te.PagesHierarchy.beginUpdate(),ge.beginUpdate()},function(){ge.endUpdate(),te.PagesHierarchy.endUpdate(),te.NavigatablePageChangingOperation.end()}),ge.itemsAddedEvent.bind(function(e){te.PagesHierarchy.addIds(r.mapItem(e,function(e){return e.id}))}),ge.itemsRemovedEvent.bind(function(e){te.PagesHierarchy.removeIds(e)}),Ta.Flags.IsInMobileContext.valueChangedEvent.bind(function(){te.NavigatablePageChangingOperation.begin(),te.NavigatablePagesInformation.beginUpdate(),te.NavigatablePagesInformation.disconnectObservableCollection(),t(),te.NavigatablePagesInformation.endUpdate(),te.NavigatablePageChangingOperation.end()}),te.NavigatablePageChangingOperation.begin(),t(),te.NavigatablePageChangingOperation.end(),b.bind(te.PagesHierarchy.hierarchyUpdateEvent,i),P(e),te.Flags.Initialized.setTrue()},this.getVisiblePageSections=function(e){if(e=r.valueOrDefault(e,!1),X){var t=[],n=X.getHeaderInstance();if(e&&n&&t.push(n),t=r.merge(t,X.getPageContentInstance().getVisibleSectionsByPage(X)),e){var i=X.getFooterInstance();i&&t.push(i)}return t}return[]},this.findPageByName=function(e){return a(function(t,n){return n.title.toLowerCase()==e.toLowerCase()})},this.findPageByUrlAlias=function(e){return a(function(t,n){return n.isHomePage?""===e:n.urlAlias===e})},this.getPagesRoot=function(){return $||($=r("#body-element")),$},this.getPageBody=function(){return j||(j=r("#body-element"),G=j.parent()),j},this.getPageBodyParent=function(){return G},this.getPageBodyHeight=function(){var e=X.getSize();return e?e.height:X.getPropertyValue("sizeAndPosition").height+X.getHeaderInstanceHeight()+X.getFooterInstanceHeight()},this.getDirtyPages=function(){var e={};return r.eachEntry(re,function(t,n){n.exist&&n.markForSave.isDirty()&&(e[t]=ae[t])}),e},this.getSavingPagesVersionConrollers=function(){var e=[];return r.each(re,function(t,n){n.exist&&e.push(n.markForSave)}),e},this.findPageByUrlFragment=function(e,t){var n=null,i=t?te.getAllPagesData():te.getStaticPagesData();return r.eachEntry(i,function(t,i){return i.urlAlias===e?(n=i,!1):void(n||i.title.toLowerCase().trim()!==e||(n=i))}),n},this.switchToNextPage=function(){var e=Y,t=he.getItemsLength(),n=te.getPageData(Y),i=L(n)?t:n.index;r.eachEntry(te.getStaticPagesData(),function(n,a){return a.index===i+1||i===t&&1===a.index?(e=n,!1):void 0}),Zi.navigateToPage(e)},this.switchToPrevPage=function(){var e=Y,t=he.getItemsLength(),n=te.getPageData(Y),i=L(n)?1:n.index;r.eachEntry(te.getStaticPagesData(),function(n,a){return a.index===i-1||1===i&&a.index===t?(e=n,!1):void 0}),Zi.navigateToPage(e)},this.isOnePageSite=function(){var e=ta.getAllPagesData(),t=Object.keys(e).length;if(1===t){var n=ta.getCurrentPage(),i=n.getHeaderInstance();if(i){var a=i.getDescendingInstances().find(function(e){return e.elementType===Yn.PagesMenu});return!a}return!0}return r.eachEntry(e,function(e,n){n.pageListName&&t--}),1===t},this.createPageHierarchyFromSections=function(e,t){t=r.quickExtend({},t);var n=r.valueOrDefault(t.pageId,fa.generateWebsiteId()),i=vr.duplicateHierarchyInfo(e),a=i.structures;return i.idsInHierarchy&&(i.idsInHierarchy[n]=!0),i.pageId=n,i.structures=[{type:Yn.page.name,id:n,childElements:a,elementProperties:[]}],i},this.addAndSwitchToPage=function(e,t,n){n=r.quickExtend({},n);var i,a=n.hierarchy;return i=a?te.addPageFromHierarchy(a,e,t):te.addEmptyPage(e,t),Zi.navigateToPage(i,{finishedNavigationCallback:n.finishedNavigationCallback}),U(i,e),i},this.attachPage=function(e){ta.PageRenderingOperation.start(),ur.startRenderingBatch(),e.attachPage(),ur.finishRenderingBatch(),ta.PageRenderingOperation.finish()},this.detachPage=function(e){ur.startRenderingBatch(),e.detach(),ur.finishRenderingBatch()},this.removePages=function(e,t){t=r.quickExtend({normalizeIndex:!0},t);var n=r.Deferred();ie.disableOperationsRecording("removePage"),te.PagesUpdatingOperation.start(),Ui.beginReorderingBatch(),e=r.asArray(e);var i=K;if(e.contains(K)){var a=r.findFirst(te.getStaticPagesData(),function(t){return!e.contains(t)});if(a)i=a.id;else{var s=sa.getMasterPageIDByPage(e[0]);te.addAndSwitchToPage(s,{isHomePage:!0}),i=K}}return Q&&e.contains(Q.id)&&(Q=void 0),e.contains(Y)?(ta.loadPageHierarchy(i,!0).done(function(){Zi.navigateToPage(i,{finishedNavigationCallback:function(){o(e,t.normalizeIndex,i),n.resolve()}})}).fail(function(){n.reject()}),Q=void 0):(o(e,t.normalizeIndex,i),n.resolve()),Ui.endReorderingBatch(),te.PagesUpdatingOperation.finish(),ie.enableOperationsRecording("removePage"),n.promise()},this.getPagesMetaData=function(){var e={};r.each(re,function(t,n){if(n.exist){var i=r.quickExtend({},te.getPageData(t));delete i.type,e[t]=i}});var t=ji.getHierarchyInfo(Z,{forSaving:!0,saveToServer:!0,idsInHierarchy:!0,copyAffectedStates:!1,copyAffectingStates:!0,copyMobileStates:!1});if(J){var n=!0;r.eachEntry(te.getStaticPagesData(),function(e,t){return t.supportsMobileStates?void 0:(n=!1,!1)}),t=ji.adjustHierarchyWithBaseHierarchy(t,J,function(e,t,i){return n?!1:i!==Ta.MobileStateName||!ji.getInstanceByID(t)})}fa.preSaveHierarchy(t);var i=te.PagesHierarchy.getHierarchies();return{editorCoordinator:Di.getCoordinatorHierarchyForSave(),coordinator:t,mainPageId:K,pagesData:e,pagesHierarchies:i}},this.getPagesStructures=function(e){var t={},n=this;return r.eachEntry(re,function(i,a){if(a.exist){var r=a.markForSave.isDirty()||!1;!r&&e||(a.initialized?t[i]=n.getPageStructureById(i):oe[i]&&(t[i]=v(i)))}}),t},this.getPageStructureById=function(e){var t=ji.getHierarchyInfo(ae[e],{forSaving:!0,saveToServer:!0,idsInHierarchy:!0,filter:function(e){return!e.isMasterPageElement.isTrue()},rootInstancesHierarchies:Ta.getPageInstancesHierarchiesData(ae[e])});return t=ji.adjustHierarchyWithBaseHierarchy(t,v(e)),t.idsInHierarchy=void 0,t},this.getMainPageId=function(){return K},this.setMainPageId=function(e){K=e,z()},this.getPages=function(){return ae},this.getPage=function(e){return ae[e]},this.isDynamicPage=function(e){return e&&void 0!==me.getItem(e)},this.getDynamicPagesData=function(){return me.getItems()},this.getStaticPagesData=function(){return he.getItems()},this.getAllPagesData=function(){return ge.getItems()},this.getDynamicPagesCount=function(){return me.getItemsLength()},this.getAllPagesDataValues=function(){return ge.getItemsValues()},this.getPagesStates=function(){return re},this.getCurrentPage=function(){return X},this.getPageContentInstance=function(){return X?X.getPageContentInstance():void 0},this.getCoordinatorHeirarchy=function(){return J},this.getCoordinator=function(){return Z},this.getContentWidth=function(){var e=te.getCoordinator().getPropertyValue("contentWidth");return e},this.getCurrentPageId=function(){return X?X.id:Y},this.isCurrentPage=function(e){return te.getCurrentPageId()===e},this.getPrevPage=function(){return Q},this.updatePageFieldsData=function(e,t,n){te.PagesUpdatingOperation.begin(),ge.updateItemFields(e,t,n),te.PagesUpdatingOperation.finish()},this.updateAllPagesFields=function(e){te.PagesUpdatingOperation.begin(),ge.updateItemsFields(e),te.PagesUpdatingOperation.finish()},this.getPageData=function(e){var t=e&&e.masterListPageId,n=r.valueOrDefault(t,e);return ge.getItem(n)},this._getPageFragmentValue=function(e,t){var n=te.getPageData(e);if(!n)return"";var i="";return n.isHomePage&&!t||(i=n.urlAlias||n.title),i=i.trim().toLowerCase()},this.loadPageHierarchy=function(e,t){var n=u(e);if("resolved"!==n.state()){var i=h(e);if(t)return i}return n.promise()},this.loadAllPagesHierarchies=function(e){r.getKeys(ge.getItems());e=r.quickExtend({concurentRequests:3},e);var t=we.create({concurentRequests:e.concurentRequests}),n=ge.getItems(),i=r.getValues(t.requestExecution(r.mapEntry(n,function(e,t){return{fetch:function(){return te.loadPageHierarchy(t)},id:t}})));return r.whenResults(i)},this.getPageHierarchy=function(e){return oe[e].getHierarchy()},this.getPageHierarchyController=function(e){return oe[e]};var ve=!1;this._switchPage=function(e,t){if(!t)throw Error("Switch page can be called only by UrlManager, you should use PageManager.navigateToPage instead");var n=re[e];return n.initialized&&!n.exist?X:(p(e),void(n.initialized===!1?C(e,t):S(e,t)))},this.constructPagesHierarchy=function(e){R(e)},this.whenCoordinatorAvailable=function(e){Z?e(Z):te.Events.CoordinatorInitialized.one(function(){e(Z)})},this.initializeMinPageHeightRule=function(){var e=[Hi.Events.SwitchedToViewMode,Hi.Events.SwitchedToDesignMode],t=b.createEventListener([r.getWindowSizeEvent(),W.PageHeightChanged,te.Events.PageChanging],H,{activationCallback:H,deactivationCallback:H});b.bindAndExecute(e,function(){t.activate()})},this.refreshLastSectionHeight=q}),na=Do(function(){function e(e){return t[e]||t[n.defaultPopupName]}var t={},n=this;this.defaultPopupName="DefaultPopup",this.registerPopupImplementation=function(e,n){t[e]=n},this.getPopupImplementations=function(e){if(e){var n=r.extend({},t);return n.hasOwnProperty("ElementPopup")&&delete n.ElementPopup,n}return t},this.create=function(t,n,i,a){return e(n).create(t,i,a)},this.getPopupSettingsPanel=function(t,n){return e(t).getPopupSettingsPanel(n)},this.getPopupSettingsMap=function(t){return e(t).settingsDictionary.getMap()}}),ia=Do(function(){function e(e,t){t.updateSize&&delete I[e.id],t.updateOffset&&delete C[e.id]}function t(e){var t=e?c[e.id]:null;return t}function n(e){for(var n=0;n0){var c=document.documentElement,u=(window.pageYOffset||c.scrollTop)-(c.clientTop||0),d=(window.pageXOffset||c.scrollLeft)-(c.clientLeft||0),g=o(),f=void 0;r.eachItem(a,function(n,a){var o=t(a);if(!o)return!0;var c,h=o.isVisible;if(f&&h)c={left:f.left+o.offset.left,top:f.top+o.offset.top};else{ne.informOnReadOperation();var p=a.$element[0],m=p.getBoundingClientRect();c={top:m.top+u,left:m.left+d}}h&&e(a,{updateOffset:!0});var v=h?r.relativeOffset(c,g):null;r.offsetsEqual(v,o.offset)||h&&(i&&void 0===f&&h&&(f={left:c.left-o.offset.left,top:c.top-o.offset.top}),o.offset=v,l.updateInstanceLastPosition(a.id,v),s.push(a),ia.UpdateBatch.fireLazyEvent(a,"offsetChangedEvent",void 0,function(){return ia.isElementVisible(a)?!0:(o=null,!1)}))})}return s}function a(n){var i=[];return r.eachItem(n,function(n,a){var o=t(a);if(!o)return!0;var s=ia.isElementVisible(a),c=null;if(s&&(ne.informOnReadOperation(),s&&e(a,{updateSize:!0}),c=a.$element.getOuterSize(),c.width=c.width<0?0:c.width,c.height=c.height<0?0:c.height),!r.sizesEqual(c,o.size)&&s){var u=r.cloneSize(o.size);c&&(c.width=c.width>0?c.width:0,c.height=c.height>0?c.height:0),o.size=r.cloneSize(c),l.updateInstanceLastSize(a.id,c),i.push(a),ia.UpdateBatch.fireLazyEvent(a,"sizeChangedEvent",{prevSize:u,size:c},function(){return ia.isElementVisible(a)?!0:(o=null,!1)},{callback:function(){a.onContentSizeChange(),b.fireLazyEvent(a,"contentSizeChangedEvent")}})}}),i}function o(){return void 0===g&&(g=s.offset()),g}this.Events={ElementsAreaChanged:b.create(),ElementsVisibilityChanged:b.create(),PositionRootInvalidated:b.create()},this.UpdateBatch=Pe.create({batchFinishingStartedCallback:function(){Gi.beginLayoutUpdateBatch()},batchFinishingCompletedCallback:function(){Gi.endLayoutUpdateBatch()}}),this.VisibilityUpdateBatch=Pe.create({batchFinishingStartedCallback:function(){Wn.InstancesInitializationBatch.start()},batchFinishingCompletedCallback:function(){Wn.InstancesInitializationBatch.finish()}}),this.PageRearrangementBatch=Pe.create({batchFinishingStartedCallback:function(){ia.executeAllUpdateSizeAndPositions()}});var s,l=this,c={},u={},d={},g=void 0,f=void 0,h={},p={},m={},v={},y=!1,C={},I={};this.initialize=function(){s=W.OffsetAncestor,W.Events.ElementRemoving.bind(function(e){var t=e.removedInstance;delete c[t.id],delete h[t.id],delete u[t.id],delete d[t.id]}),r.getWindowSizeEvent().bind(function(){ia.invalidatePositioningRootOffset(),ia.updatePosition(r.getValues(ji.getAllPageInstances()))})},this.invalidateAreas=function(e,t){if(t=r.quickExtend({updateSize:!0,updateOffset:!0},t),e=r.asArray(e),ia.PageRearrangementBatch.isActive()){var n=r.mapArray(e,r.returnValue,r.defaultIdFunction);t.updateSize&&r.quickExtend(I,n),t.updateOffset&&r.quickExtend(C,n)}else Gi.requestUpdatePosition(e,t)},this.executeAllUpdateSizeAndPositions=function(){Gi.layoutUpdateBatch.start();var e=I,t=C;I={},C={},Gi.requestUpdatePosition(r.getValues(e),{updateOffset:!1}),Gi.requestUpdatePosition(r.getValues(t),{updateSize:!1}),Gi.layoutUpdateBatch.finish()},this.invalidatePositioningRootOffset=function(){g=void 0,f=void 0,ia.Events.PositionRootInvalidated.fireNew()},this.updateInstanceLastPositionAndSize=function(e,t){t&&(l.updateInstanceLastPosition(e,t.position),l.updateInstanceLastSize(e,t.size))},this.getInstanceLastPositionAndSize=function(e){return{position:l.getInstanceLastPosition(e),size:l.getInstanceLastSize(e)}},this.updateInstanceLastPosition=function(e,t){t&&(u[e]=t)},this.getInstanceLastPosition=function(e){return u[e]},this.updateInstanceLastSize=function(e,t){!t||0===t.width&&0===t.height||(d[e]=t)},this.getInstanceLastSize=function(e){return d[e]},this.initializeStoredPosition=function(e){c[e.id]={offset:null,size:null,isVisible:!1}},this.isTrackOver=function(e){return!(!p[e.id]&&!m[e.id])},this.enableMouseOver=function(){y||(y=!0,ta.getPageBody().bind("mouseleave.trackMouseOver",function(){var e=r.getValues(v);v={};for(var t=0;t=t&&n.push(i)}}),t=ia.getElementOffset(i,!0).top+i.getSize().height,i=i.hasFeature(Qn.PageSection)?null:i.parentInstance;return n},this.getVisibleInstances=function(){return h},this.visibilityTreeAttach=function(e){var i,a=e.isAttachedToVisibleNode();if(a&&!l.isElementVisible(e)){ia.UpdateBatch.start();var o=[],s=[e];for(i=0;i0&&ia.Events.ElementsAreaChanged.fireNew(),ia.UpdateBatch.finish(),{changedOffsets:n,changedSizes:o,changedInstances:s}},this.getPositioningRootOffset=function(){return o()},this.getScrolledElementOffset=function(){return void 0===f&&(f=Hi.getScrolledElement().offset()),f}}),aa=Do(function(){function e(t,n){delete n[t.id],r.eachItem(t.childInstances,function(t,i){e(i,n)})}this.getElementContentMargins=function(e){var t;t=e.hasFeature(Qn.HasBorder)?e.getActualPropertyValue("borderWidth"):{left:0,top:0,bottom:0,right:0};var n=e.getPropertyValue("padding");return void 0===n&&(n={left:0,top:0,bottom:0,right:0}),{left:t.left+n.left,right:t.right+n.right,top:t.top+n.top,bottom:t.bottom+n.bottom}},this.areSameInstances=function(e,t){return Be.equalByKeys(aa.mapInstancesByID(e),aa.mapInstancesByID(t))},this.getHierarchiesRoots=function(t){for(var n=aa.mapInstancesByID(t),i=r.getValues(n),a=0;an;n++)for(var i=arguments[n],a=0;a0;l++){var c=a[l];void 0===o[c.id]?r.merge(a,c.getChildInstances()):(n.push(c),s--)}}return n},this.getCommonAncestors=function(e,t,n){if(n=r.valueOrDefault(n,!0),e=r.asArray(e),0===e.length)return[];if(t||(e=aa.eliminateDescendingInstances(e)),1===e.length)return e[0].getParents(n);var i,a={},o=e[0].getParents(!1);for(i=0;is)&&(s=c)}return o.slice(s)},this.getAllAncestors=function(e,t){if(e=r.asArray(e),0===e.length)return{};var n={};return r.eachItem(e,function(e,i){if(!n[i.id]){var a,r=i.getParents(t);for(a=0;a0&&l.RootMasterPageStateChanged.fireNew(t,e,!1)}function a(e,t){for(var n=0,i=[],a=0;a0){i[0].isType(Yn.HeaderElement)&&(e[i[0].id]=.1);for(var s=0,a=1;as+1){i[i.length-1].isType(Yn.FooterElement)&&(e[i[i.length-1].id]=99999);for(var a=i.length-2;a>s;a--){var l=i[a];if(l.getPropertyNormalValue("order")+1!==i[a+1].getPropertyNormalValue("order"))break;e[i[a].id]=e[i[a+1].id]-.01}}for(var a=1;a=0;a--){var l=i[a];void 0===e[l.id]?(n-=.01,e[l.id]=n):n=e[l.id]}}}this.MasterPages=new Mt({comparerFunction:function(e,t){return!(e.id!==t.id||e.name!==t.name||!r.defaultEqualityComparer(e.hierarchyInfo,t.hierarchyInfo))}}),this.MasterPageEditingModeChanged=b.create(),this.MasterPageEditingModeChangedFinished=b.create(),this.RootMasterPageStateChanged=b.create(),this.MasterPageStateChanged=b.create(),this.PagesInMasterPages={},this.EditingMasterPage=k.create(!1,{valueChangeCallback:function(e){e?r("body").addClass("editing-master-template"):r("body").removeClass("editing-master-template")}}),this.CurrentMasterPageChanged=b.create(),this.updateCurrentMasterPageBatch=Pe.create();var o,s,l=this,c={},u=r.makeDictionaryFromKeys(["sizeAndPosition","name","statesGroups","gridLines","customStates","pageTitle","childrenAnchor","skinInformation"],!0),d={},g={},f={},h={},p={};this.getMasterTemplateForSaveDirtyFlag=function(e){return p[e]},this.getSavingMasterTemplatesVersionConrollers=function(){return r.getValues(p)},this.getDirtyMasterPages=function(){var e={},t=this;return r.eachEntry(p,function(n,i){i.isDirty()&&(e[n]=t.MasterPages.getItem(n))}),e},this.getLoadedMasterPages=function(){var e=[];return r.each(l.MasterPages.getItems(),function(t,n){g[t]&&e.push(n)}),e},this.setMasterPageInfo=function(t,n){var i=l.getPageMasterPageId(t),a=l.MasterPages.getItem(i);a&&!MasterPagesStructures[i]&&r.isEmptyObject(a.hierarchyInfo)&&f[i]?d[i]||(d[i]=!0,r.ajax({url:SiteFilesMap["master-"+i],dataType:"script",cache:!0,success:function(){e(t,i,n)}})):!g[i]&&f[i]?e(t,i,n):n(t)},this.getPageMasterPageId=function(e){return c[e]},this.getMasterPageByPageId=function(e){var t=l.getPageMasterPageId(e);return l.MasterPages.getItem(t)},this.initialize=function(e){for(var n in e){f[n]=!0;var a=e[n];a.id=n;for(var r=a.pagesIDs,d=0;di&&(i=t)}),r.eachEntry(t,function(e,t){var a=ji.getInstanceByID(e);void 0!==a&&(i>=t&&!a.hasFeature(Qn.PageSection)?n[e]=-1e4+t:n[e]=t)}),l.setPageMasterRootsOrders(e,n)},this.updateCurrentMasterPage=function(e){l.updateCurrentMasterPageBatch.start();var t=ta.getCurrentPage(),i=t.id,s=c[i],d=ta.getPagesStates()[i];d.markForSave.isDirty()&&l.getMasterTemplateForSaveDirtyFlag(s).informOperation();var g=h[t.id];if(g){var f=l.MasterPages.getItem(g);if(h[t.id]=void 0,f){r.each(r.getValues(f.rootInstances),function(e,t){t.detach()});var p=t.getDescendingInstances(!1);return l.updateCurrentMasterPage(),s!==g&&Ui.bringToFront(p),void l.updateCurrentMasterPageBatch.finish()}}l.setMasterPageInfo(s,function(){var i=l.MasterPages.getItem(s);if(Ui.beginReorderingBatch(),i.isCreated){var c=r.getValues(i.rootInstances);ji.addElementToContainerElement(t,c),r(c,function(e,t){t.refreshCursor()})}else n(i,t);o=i;var d;d=Ta.Flags.IsInMobileContext.isFalse()?i.pageProperties:r.quickExtend({},i.pageProperties,i.mobilePageProperties),t.setPropertiesValues(r.dictionaryFilter(d,function(e,t){return!u[t]}));var g,f;Ta.Flags.IsInMobileContext.isFalse()?(g=o.rootInstancesOrders,f=o.sortedRootInstances):(r.isEmptyObject(o.mobileRootInstancesOrders)&&(o.mobileRootInstancesOrders=r.deepCloneObject(o.rootInstancesOrders),o.mobileSortedRootInstances=o.sortedRootInstances),g=o.mobileRootInstancesOrders,o.mobileSortedRootInstances=f=r.grep(o.sortedRootInstances,function(e){var t=ji.getInstanceByID(e);return!(!t||!t.hasFeature(Qn.PageSection))}));var h=r.makeDictionaryFromKeys(f,!0),p=g[t.id];p||(g[t.id]=p={}),r.each(f,function(e,t){var n=ji.getInstanceByID(t);n&&n.childIndex.setValue(void 0)});for(var m in p)h[m]||delete p[m];a(p,f);for(var v in p){var y=ji.getInstanceByID(v);y&&y.setPropertyValue("order",p[v])}Ui.endReorderingBatch(),l.CurrentMasterPageChanged.fireNew(),e&&e(),l.updateCurrentMasterPageBatch.finish()})},this.setMasterPage=function(e,n,i){var a=ta.getPage(e),o=c[e];if(c[e]=n,n!==o&&t(),ta.getCurrentPage()===a){var s=l.MasterPages.getItem(o);r.each(r.getValues(s.rootInstances),function(e,t){t.detach()}),a.setHeaderInstance(void 0),a.setFooterInstance(void 0);var u=a.getDescendingInstances(!1);l.updateCurrentMasterPage(i),n!==o&&Ui.bringToFront(u)}else h[e]=o},this.canBeMasterPageElement=function(e){return e.hasParent()&&e.getParent().elementType===Yn.page},this.setAsMasterPageRoots=function(e){ie.beginAtomicBatch(!1,"Move To Master Template"),e=r.asArray(e),e=r.grep(e,function(e){return e.hasParent()});var t=aa.getHierarchiesUnion(e);r.each(t,function(e,t){t.isMasterPageElement.set()});var n=aa.eliminateDescendingInstances(e),i=ta.getCurrentPage();r.each(n,function(e,t){t.parentInstance&&t.parentInstance.elementType!==Yn.page&&t.parentInstance.isMasterPageElement.isFalse()&&!t.isFixed()&&Yi.reattachInstances([t],i);var n=t.root.id,a=c[n];t.parentInstance.isMasterPageElement.isFalse()&&(l.MasterPages.getItem(a).rootInstances[t.id]=t)}),l.MasterPageStateChanged.fireNew(e,!0),n.length>0&&l.RootMasterPageStateChanged.fireNew(n,e,!0),ie.endAtomicBatch()},this.removeInstanceFromMasterPage=function(e,t){var n=l.MasterPages.getItem(e);n&&(delete n.rootInstances[t.id],r.each(n.rootInstancesOrders,function(e,n){delete n[t.id]}),n.sortedRootInstances=r.grep(n.sortedRootInstances,function(e,n){return n!==t.id}),r.each(n.mobileSortedRootInstances,function(e,n){delete n[t.id]}),n.mobileSortedRootInstances=r.grep(n.mobileSortedRootInstances,function(e,n){return n!==t.id}))},this.setAsPageContentElement=function(e){ie.beginAtomicBatch(!1,"Move To Page Content"),e=r.asArray(e);var t=r.grep(e,function(e){return e.hasParent()&&e.getParent().elementType===Yn.page});i(t),Yi.reattachToCurrentSection(e,{lastSectionIsDefault:!0}),ie.endAtomicBatch()}}),la=Do(function(){function e(){t||(t=n.sort(function(e,t){return e.priority&&t.priority?e.priority-t.priority:e.priority?-1:t.priority?1:0}))}var t,n=[];this.addSiteInformationFix=function(e,t,i){n.push({priority:i?i:e,version:e,callback:t})},this.fixSiteInformation=function(n){if(n.StructureVersion||(n.version?n.StructureVersion=n.version:(n.StructureVersion=fa.FirstVersionWhereHierarchiesVersionCouldBeUndefined,n.version=fa.FirstVersionWhereHierarchiesVersionCouldBeUndefined)),n.StructureVersione?String.fromCharCode(e+47):e>=10&&34>e?String.fromCharCode(e+56):""+(e-23)}function n(){var e={},t=p.getSiteHashDefaultDefinitionsMap();return r.eachEntry(Qn,function(n,i){var a=Ki.getDefaultValues(i),o={};r.eachEntry(a,function(e,n){if(void 0!==n.value){var i=ha.getPreSaveArray(e,ha.getCurrentPreSaveVersion());if(i)for(var a=0;a0;i--)if(t[i]&&t[i][e])return t[i][e].preSaveConverter},this.getPreLoadArray=function(e,n){for(var i=n;i>0;i--)if(t[i]&&t[i][e])return t[i][e].preLoadConverter};var t={1:{columnsGrid:{ preSaveConverter:[fa.minimizeFieldsNames(["margin","gutter","columnsNumber","color","showAlways","isEnabled","opacity"])],preLoadConverter:[fa.maximizeFieldsNames(["margin","gutter","columnsNumber","color","showAlways","isEnabled","opacity"])]},itemFields:{preSaveConverter:[fa.minimizeFieldsNames(["index","title","icon","image","description","link"])],preLoadConverter:[fa.maximizeFieldsNames(["index","title","icon","image","description","link"])]},sizeAndPosition:{preSaveConverter:[fa.minimizeFieldsNames(["left","width","top","height"])],preLoadConverter:[fa.maximizeFieldsNames(["left","width","top","height"])]},glow:{preSaveConverter:[fa.minimizeFieldsNames(["spread","blur","color"])],preLoadConverter:[fa.maximizeFieldsNames(["spread","blur","color"])]},innerGlow:{preSaveConverter:[fa.minimizeFieldsNames(["spread","blur","color"])],preLoadConverter:[fa.maximizeFieldsNames(["spread","blur","color"])]},shadow:{preSaveConverter:[fa.minimizeFieldsNames(["top","left","spread","blur","color"])],preLoadConverter:[fa.maximizeFieldsNames(["top","left","spread","blur","color"])]},innerShadow:{preSaveConverter:[fa.minimizeFieldsNames(["top","left","spread","blur","color"])],preLoadConverter:[fa.maximizeFieldsNames(["top","left","spread","blur","color"])]},formFieldsData:{preSaveConverter:[fa.minimizeFieldsNames(["isOptional"])],preLoadConverter:[fa.maximizeFieldsNames(["isOptional"])]},formOptions:{preSaveConverter:[fa.minimizeFieldsNames(["clearOnSubmit"])],preLoadConverter:[fa.maximizeFieldsNames(["clearOnSubmit"])]},dataLayoutOptions:{preSaveConverter:[fa.minimizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage"])],preLoadConverter:[fa.maximizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage"])]},borderWidth:{preSaveConverter:[fa.NormalizeFieldsValuesSides],preLoadConverter:[fa.createValueToObjectValueConverter(["top","left","bottom","right"]),fa.createStringToNumericConverter(["top","left","bottom","right"])]},roundness:{preSaveConverter:[fa.NormalizeFieldsValuesCorners],preLoadConverter:[fa.createValueToObjectValueConverter(["topLeft","bottomLeft","topRight","bottomRight"]),fa.createStringToNumericConverter(["topLeft","bottomLeft","topRight","bottomRight"])]},borderColor:{preSaveConverter:[fa.NormalizeObjectFieldsValuesSides],preLoadConverter:[fa.createStringToObjectValueConverter(["top","left","bottom","right"]),fa.createValueToObjectValueConverter(["top","left","bottom","right"])]},borderStyle:{preSaveConverter:[fa.NormalizeFieldsValuesSides],preLoadConverter:[fa.createValueToObjectValueConverter(["top","left","bottom","right"])]},padding:{preSaveConverter:[fa.NormalizeFieldsValuesSides],preLoadConverter:[fa.createValueToObjectValueConverter(["top","left","bottom","right"]),fa.createStringToNumericConverter(["top","left","bottom","right"])]},imagePosition:{preSaveConverter:[fa.createToStringConverter(["vertical","horizontal"])],preLoadConverter:[fa.createValueToObjectValueConverter(["vertical","horizontal"])]},fillLayout:{preSaveConverter:[fa.createBooleanToNumericConverter(["fillVertical","fillHorizontal"]),fa.createToStringConverter(["fillVertical","fillHorizontal"])],preLoadConverter:[fa.createValueToObjectValueConverter(["fillVertical","fillHorizontal"]),fa.createStringToNumericConverter(["fillVertical","fillHorizontal"]),fa.createNumericToBolleanValueConverter(["fillVertical","fillHorizontal"])]},margin:{preSaveConverter:[fa.NormalizeFieldsValuesSides],preLoadConverter:[fa.createValueToObjectValueConverter(["top","left","bottom","right"]),fa.createStringToNumericConverter(["top","left","bottom","right"])]},imageLoadingOverlay:{preSaveConverter:[fa.minimizeFieldsNames(["background","imageInfo"])],preLoadConverter:[fa.maximizeFieldsNames(["background","imageInfo"])]},isGrowable:{preSaveConverter:[fa.minimizeFieldsNames(["bottom","right"])],preLoadConverter:[fa.maximizeFieldsNames(["bottom","right"])]},pagesFields:{preSaveConverter:[fa.minimizeFieldsNames(["index","title","icon"])],preLoadConverter:[fa.maximizeFieldsNames(["index","title","icon"])]}},2:{itemFields:{preSaveConverter:void 0,preLoadConverter:void 0}},3:{dataLayoutOptions:{preSaveConverter:[fa.minimizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows"])],preLoadConverter:[fa.maximizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows"])]}},4:{dataLayoutOptions:{preSaveConverter:[fa.minimizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows"])],preLoadConverter:[fa.maximizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows"])]}},5:{dataLayoutOptions:{preSaveConverter:[fa.minimizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows","maxItems","isHierarchy","dropTrigger"])],preLoadConverter:[fa.maximizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows","maxItems","isHierarchy","dropTrigger"])]}},6:{dataLayoutOptions:{preSaveConverter:[fa.minimizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows","maxItems","isHierarchy"])],preLoadConverter:[fa.maximizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows","maxItems","isHierarchy"])]}}};this.getConvertorsMap=function(){return t}}),pa=Do(function(){function e(){r(document.body).toggleClass("full-screen-view",pa.IsFullScreen.isTrue()).toggleClass("inner-screen-view",pa.IsFullScreen.isFalse()),t()}function t(){i=void 0,pa.ViewPortChangeBatch.whenFinished(function(){ia.invalidatePositioningRootOffset(),pa.ViewPortChanged.fireNew(),ta.getCurrentPage()&&(Gi.requestUpdatePosition(r.getValues(ji.getAllPageInstances())),Gi.refreshElementsLayout(ta.getCurrentPage()))},"onViewPortChanged")}function n(){var e=r.getWindowSize();return{left:0,top:0,width:e.width,height:e.height-Eo.getFooterHeight()-So.getPrivacyPolicyHeight()}}var i;this.ViewPortChangeBatch=Pe.create(),this.ViewPortChanged=b.create(),this.IsFullScreen=k.createConditionalPositive({valueChangeCallback:e}),this.initialize=function(){e(),r.getWindowSizeEvent().bind(function(){t()}),t()},this.setFullScreen=function(e,t){pa.IsFullScreen.setValue(e,t)},this.getViewPort=function(){return i||(i=n()),i}}),ma=Do(function(){this.adjustDataListToContent=function(e){var t=e.getPropertyValue("fillLayout"),n=e.adjustSizeToContent({horizontally:!t||!e.isFillHorizontal(),vertically:!t||!e.isFillVertical()});return n},this.arrangeDataListToMobileFirstTime=function(e){e.getDataSource().invalidateAllItems();var t=function(t){return e.calculateItemSizeOnMobile(t)};e.requestArrangement({keepItemSize:!1,fixedSize:t}),Gi.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName())}}),va=Do(function(){this.getSectionsInformation=function(e,t){a=r.makeArray(a),t=r.quickExtend({minSpacingBetweenSection:50},t);for(var n=t.minSpacingBetweenSection,i=[];e.length>0;){var a=e[0],o=a.rowsData,s=a.orderableElements,l=r.unionAreas(r.mapItem(s,function(e){return e.getArea()})),c=e.length;if(c>1&&s.length>1&&!r.isEmptyObject(o)){var u,d=1,g=1,f=r.getKeys(o.rowsByCols).orderByDesc();if(r.eachItem(f,function(t,i){var a=o.rowsByCols[i];i>1&&r.eachItem(a,function(t,i){for(var a=i.getColumns(),o=a.length,s=(i.getArea(!1),1),c=!0,f=[i],h=l;c&&ss;){c=!1;var p=e[s],m=p.rowsData,v=p.orderableElements,y=r.unionAreas(r.mapItem(v,function(e){return e.getArea()}));if(m.rowsByCols[o]&&y.top-h.bottoma&&n;a++){var r=i.getColumns()[a+1],l=t.getColumns()[a];if(o-1>a&&l.getArea().right>r.getArea().left+10&&(n=!1),a>0){var u=i.getColumns()[a-1];l.getArea().leftd*g&&(d=s,g=o,u=f)})}),g>1){for(var h=0;g>h;h++)for(var p=0;d>p;p++){var m=u[p],v=m.getColumns()[h];i.push(v)}for(var y=0;d>y;y++)e.shift()}}if(e.length===c&&(e.shift(),o.rows.length>0)){var b=o.rowsByCols[1][0].getColumns();i=r.merge(i,b)}}return{columnsToOrder:i,totalColumns:i.length}}}),ya=Do(function(){function e(t){var n=t.getColumns();if(1===n.length)return[Pa.create(n)];var i=[];if(wa.canBeInDifferentColumns(n[0],n[1])){var a=Pa.duplicateRow(t),o=a.shift(),s=e(a);r.eachItem(s,function(e,t){t.unShift(o)}),i=s}var a=Pa.duplicateRow(t);a.mergeColumnsFromStart(2);var s=e(a);return r.merge(i,s),i}this.getRows=function(t,n){n=r.extend({maxColumns:10,minColumns:2,shouldSort:!0,maxArea:960},n);var i=n.shouldSort;i&&(t=Xi.sortByLeftPosition(t,function(e){return e.getArea()}));var a=[];r.eachItem(t,function(e,t){a.push(wa.create(t))});var o=Pa.create(a),s=e(o),l={};return r.eachItem(s,function(e,t){var n=t.getColumns().length;l[n]||(l[n]=[]),l[n].push(t)}),{rows:s,rowsByCols:l}}}),ba=Do(function(){function e(e){if(!e||1===e.length)return{maxSpacing:0,minSpacing:0,averageSpacing:0};var t,n=1/0,i=0,a=0,o=0;return r.eachItem(e,function(e,r){if(e>0){var s=t.getArea(),l=r.getArea(),c=l.left-s.right;c>=0&&(n>c&&(n=c),c>i&&(i=c),a+=c,o++)}t=r}),a/=o,{maxSpacing:i,minSpacing:n,averageSpacing:a}}this.getRows=function(t,n){n=r.extend({maxColumns:10,minColumns:1,shouldSort:!0,maxArea:960},n);var i=n.shouldSort;i&&(t=Xi.sortByLeftPosition(t,function(e){return e.getArea()}));var a=t.lengtht.length)return s;for(var l,c=r.unionAreas(r.mapItem(t,function(e){return e.getArea()})),u=e(t),d=(u.maxSpacing,c.left),g=n.maxArea>c.width?n.maxArea:c.width,f=!1,h=[],p={},m=a;m>o-1&&!f;m--)for(var v=g/m,y=!1,b=v;b>=c.width/m-20&&!y;b-=5){var C=n.minSpacingIntersection?n.minSpacingIntersection:.2*b,I=d,S=0,P=0,w=!0,E=Pa.create();for(l=void 0;w&&P=I-C&&x.left=I+b-C&&x.leftl.bottom&&(s=t,l=n)}),a=r.expandArea(l,{left:5e4,right:5e4,top:5e4,bottom:10}),Ia.getInstancesInsideArea(a,o)}}),Ia=function(){var e=g.extend("AbstractOrderableElement",{init:function(){this.id=r.weakID()},getPosition:To,getSize:To,getArea:To,isVisible:To}),t=e.extend("InstanceOrderableElement",function(e){return{init:function(t,n){n=r.quickExtend({},n),e.call(this,t,n),this.instance=t},getInstance:function(){return this.instance},getPosition:function(){var e=this.instance,t=e.getPosition();return t?t:e.getStructureMetaData().position},getSize:function(){var e=this.instance,t=e.getSize();return t?t:e.getStructureMetaData().size},getArea:function(e){var t=this;this.instance;return this.isVisible()?r.getArea(t.getPosition(e),t.getSize()):null},isVisible:function(){return this.instance.isInstanceVisible()}}}),n={};return n.createInstanceOrderableElement=function(e,n){return new t(e,n)},n.getOrderableElementsFromInstances=function(e){return r.mapItem(e,function(e){return n.createInstanceOrderableElement(e)})},n.getAreaOverlappingElements=function(e,t,n){return n=r.quickExtend({isAbsolute:!1},n),e&&t&&0!==t.length?(n.expandSize&&(e=r.expandArea(e,n.expandSize)),r.grep(t,function(t){return r.areasOverlap(t.getArea(n.isAbsolute),e)})):[]},n.getInstancesInsideArea=function(e,t,n){return n=r.quickExtend({isAbsolute:!1},n),e&&t&&0!==t.length?(n.expandSize&&(e=r.expandArea(e,n.expandSize)),r.grep(t,function(t){return r.containsArea(e,t.getArea(n.isAbsolute))})):[]},n}(),Sa=Do(function(){this.separateToRowsAndCells=function(e){var t=[ba,ya],n=[Ca],i=[va];if(0===e.length)return[];var a,o=r.unionAreas(r.mapItem(e,function(e){return e.getArea()})),s=0;if(r.eachItem(n,function(n,l){for(var c=r.getValues(e),u=r.mapArray(c,r.returnValue,r.defaultIdFunction),d=[];c.length>0;)c=l.getFirstSectionOrderableElements(c),d.push({orderableElements:c}),r.eachItem(c,function(e,t){delete u[t.id]}),c=r.getValues(u);r.eachItem(t,function(t,n){r.eachItem(d,function(e,t){var i=n.getRows(t.orderableElements,{maxArea:o.width});i.rows.orderByDesc(function(e){return e.getColumns().length}),t.rowsData=i}),r.eachItem(i,function(t,n){var i=n.getSectionsInformation(d,{orderableElementsArea:o,orderableElements:e});i.totalColumns>s&&(a=i,s=i.totalColumns)})})}),a){var l=Sa.orderColumnsInRows(a);return l}return[wa.create(e)]},this.orderColumnsInRows=function(e){return e.columnsToOrder}}),Pa=Do(function(){this.create=function(e){e=r.makeArray(e);var t,n={getColumns:function(){return e},mergeColumnsFromStart:function(t){for(var n=[],i=0;t>i;i++)n=r.merge(n,e[0].getElements()),e.shift();var a=wa.create(n);e.unshift(a)},addColumns:function(t,i){if(t=r.asArray(t),i)for(var a=t.length-1;a>=0;a--)e.unshift(t[a]);else r.eachItem(t,function(t,n){e.push(n)});n.resetInformation()},resetInformation:function(){t=void 0},pop:function(){return n.resetInformation(),e.pop()},shift:function(){n.resetInformation();var t=e.shift();return t},unShift:function(t){return n.resetInformation(),e.unshift(t)},getArea:function(){var e=n.getElements();return r.unionAreas(r.mapItem(e,function(e){return e.getArea()}))},getElements:function(){var t=[];return r.eachItem(e,function(e,n){t=r.merge(t,n.getElements())}),t}};return n},this.duplicateRow=function(e){return Pa.create(e.getColumns())}}),wa=Do(function(){this.create=function(e){return e=r.makeArray(e),{addElements:function(t){t=r.asArray(t),e=r.merge(e,t)},getArea:function(){return r.unionAreas(r.mapItem(e,function(e){return e.getArea()}))},getElements:function(){return e}}},this.canBeInDifferentColumns=function(e,t,n){return!wa.areInTheSameColumn(e,t,n)},this.areInTheSameColumn=function(e,t,n){var i=e.getArea(!1,n),a=t.getArea(!1,n);return i.lefta.left+15:a.right>i.left+15}}),Ea=Do(function(){function e(e){return e.elementType===Yn.page||e.hasFeature(Qn.PageSection)||sa.isMasterPageRootInstance(e)}function t(n,i,o){var s=[],l={};if(n.canContainerRows()){if(!ia.isElementVisible(n)){var c=n.visibilityChangedEvent.bind(function(){c.unbind(),ur.performOnLayoutUpdate(function(){ie.disableOperationsRecording("addInstancesToContainer"),Ea.addInstancesToContainer(n,i),ie.enableOperationsRecording("addInstancesToContainer")})});return void m.add(c)}if(i=r.asArray(i),n.hasFeature(Qn.Navigatable))return void r.eachItem(i,function(e,n){t(n,n.childInstances)});Ea.UpdateBatch.start(),ie.disableOperationsRecording("addInstancesToContainer");var u=n.getPropertyValue("rowsItems"),d=r.grep(i,function(e){return e.hasFeature(Qn.HasResponsiveItem)&&e.shouldBeWithLayoutOnMobile()&&e.isInstanceVisible()}),f=r.grep(d,function(e){return!e.getPropertyValue("cellItem")&&ia.isElementVisible(e)}),h=r.grep(i,function(e){return!(e.hasFeature(Qn.HasResponsiveItem)&&e.shouldBeWithLayoutOnMobile())&&e.isInstanceVisible()}),p=r.mapArray(f,r.returnValue,r.defaultIdFunction);Ui.beginReorderingBatch();var v=[];if(f.length>0&&!n.hasFeature(Qn.Navigatable)){var y=r.grep(d,function(e){return!!e.getPropertyValue("cellItem")});y.orderBy(function(e){return e.getPropertyValue("order")});var b,C=Sa.separateToRowsAndCells(Ia.getOrderableElementsFromInstances(f));b=f.length===d.length?C:Sa.separateToRowsAndCells(Ia.getOrderableElementsFromInstances(d)),f=a(C),r.eachItem(b,function(e,t){var n=t.getElements();r.eachItem(n,function(e,t){var n=t.getInstance();p[n.id]?v.push(n):v.push(y.shift())})}),r.eachItem(v,function(e,t){t.setPropertyValue("order",e+1)})}else v=d;var I=[];r.eachItem(v,function(e,t){if(!t.getCellItem()||t.getCellItem().isCellInContainer.isFalse()||o){var i=Cn.getOrCreateCellFromInstance(t),a=yn.getOrCreateRowByCellItem(i,n);l[a.id]||(s.push(a),l[a.id]=a),a.updateCurrentCells(i),I.push(t)}});var S=0;s=s.orderBy(function(e){return e.getMinOrder().value}),r.eachItem(s,function(t,i){r.eachItem(i.getOrderedCells(),function(e,t){t.getInstance().setPropertyValue("order",S+1),S++}),i.build(e(n)),i.initializeCellItems(),i.setContainerInstance(n)}),r.eachItem(r.merge(h,I),function(e,n){n.hasFeature(Qn.ItemsContainer)&&t(n,n.childInstances)}),Ui.endReorderingBatch();var u=n.getPropertyValue("rowsItems");u&&r.eachEntry(u,function(e,t){l[e]||g[e]&&!g[e].isBuilt.isFalse()||n.removeRowFromContainer(t)}),Ea.UpdateBatch.finish(),ie.enableOperationsRecording("addInstancesToContainer")}}function n(e,t){var n=[],i=t.getCells(),a=r.getValues(i).orderBy(function(e){return e.getOrder()}),o=a[0].getArea(),s=t.getArea(),l=s.top,c=s.bottom;a[0].id!==e.id&&n.push({type:Ea.MarkingTypes.Column,isFirst:!0,area:r.extendedAreaInfo({left:o.left-50,right:o.center.left,top:l,bottom:c}),item:a[0],rowArea:s,markingData:{left:o.left,top:s.top,height:s.height}});for(var u=0;ua||e===s.length-1){var f=!1,h=l-d;(0===c.length||a>l&&u.right-c[c.length-1].getArea().leftm/p)r.eachItem(c,function(e,n){var i=yn.create([]),a=n.getInstance();Cn.create(a,{rowId:i.id,width:100}),t.push(a),o(n)});else{var v=yn.create([]),y=0;r.eachItem(c,function(e,t){y+=t.getSize().width}),r.eachItem(c,function(e,n){var i=n.getInstance();Cn.create(i,{rowId:v.id,width:Math.floor(n.getSize().width/y*100)}),t.push(i),o(n)})}c=[],l=0,f||(d>a||e===s.length-1?(v=yn.create([]),Cn.create(g,{rowId:v.id,width:100}),t.push(g),o(i)):(c.push(i),l=d))}else c.push(i)})}),t}function o(e){var t=e.getInstance();if(t.data.disableAdjustWidthToMobile)return void(t.data.disableAdjustWidthToMobile=!1);var n=i();if(t.hasFeature(Qn.HasLayout)){var a=t.properties.fillLayout.value.fillHorizontal,o=e.getSize(),s=t.getPropertyValue("lastResizingSize"),l=t.getPropertyValue("sizeAndPosition");if(0===o.width&&(o.width=s.width?s.width:l.width),0===o.height&&(o.height=s.height?s.height:l.height),0===o.height||0===o.width)return void Xi.setInstancesSize(t,{height:50});ta.getCoordinator().getPropertyValue("pagePadding");(!t.shouldBeBlockElementInMobile()||o.width<.5*n)&&!t.parentInstance.isType(Yn.page)&&!a&&o.width<.75*n?(t.setPropertyValue("display",Qe.Fixed),t.setPropertyValue("sizeAndPosition",r.extend({},l,o))):(t.setPropertyValue("display",Qe.Block),t.canResizeVertically.isTrue()&&t.setPropertyValue("sizeAndPosition",r.extend({},l,{height:o.height})))}}function s(e,t){t=r.extend({shouldRemoveFromViewPort:!1,removeDescendant:!0},t);var n=t.shouldRemoveFromViewPort,i=t.removeDescendant;if(e.childInstances&&i&&r.eachItem(e.childInstances,function(e,n){s(n,t)}),e.isConvertedToMobile()&&(e.isVisibleInMode()||n)&&e.isUpdatedToViewPort()&&e.removeInstanceFromViewPort(),e.hasFeature(Qn.HasResponsiveItem)&&e.shouldBeWithLayoutOnMobile()&&e.getCellItem()){var a=e.getCellItem();a.clearCellItem(),delete f[a.id]}if(e.hasFeature(Qn.ItemsContainer)){var o=e.getRowsFromContainer();o&&r.eachItem(o,function(e,t){t.removeFromContainer(),delete g[t.id]})}}var l,c,u={RowDecorator:{group:"rows-manager-templates",name:"row-decorator-template"},ColumnDecorator:{group:"rows-manager-templates",name:"column-decorator-template"}},d=this,g={},f={},h={},p={},m=b.createBindingsCollection();this.MarkingTypes={Column:"column",Row:"row"},d.CellsContainerChangedEvent=b.create(),d.UpdateBatch=Pe.create(),this.initialize=function(){l=r.useTemplate(u.RowDecorator).appendTo(W.DecoratorsContainer),c=r.useTemplate(u.ColumnDecorator).appendTo(W.DecoratorsContainer)},this.convertCurrentPageToMobile=function(e){Ea.UpdateBatch.start(),d.renderMasterPage(e),d.renderPageData(e),Ea.UpdateBatch.finish()},this.renderMasterPage=function(e){Ea.UpdateBatch.start();var n=ta.getCurrentPage();if(!p[sa.getCurrentMasterPage().id]||e){p[sa.getCurrentMasterPage().id]=!0;var i=n.getHeaderInstance(),a=n.getFooterInstance();i&&t(i,i.childInstances,e);var o=[];if(r.eachItem(n.childInstances,function(e,t){var n=t;!n.isMasterPageElement.isTrue()||n.hasFeature(Qn.PageSection)||n.isType(Yn.PageContentElement)||o.push(n)}),o.length>0){var s=Ta.getMasterPageContentSection();ji.addElementToContainerElement(s,o),Ta.refreshMobileMasterSectionInstanceVisibilty(),t(s,o)}a&&t(a,a.childInstances,e)}Ea.UpdateBatch.finish()},this.renderPageData=function(e){Ea.UpdateBatch.start();var n=ta.getCurrentPage();h[n.id]&&!e||(h[n.id]=!0,r.eachItem(n.getPageContentInstance().getSectionsByPage(n),function(n,i){t(i,i.childInstances,e)})),Ea.UpdateBatch.finish()},this.resetMasterPage=function(e,t){if(e=e?e:sa.getCurrentMasterPage(),p[e.id]){var n=ta.getCurrentPage();delete p[e.id];var i=sa.getMasterPageRootInstances(e.id);i&&r.eachItem(i,function(e,t){s(t)});var a=r.getValues(t);a.length>0&&(ji.addElementToContainerElement(n,a),sa.setAsMasterPageRoots(a))}},this.resetPageData=function(e){if(e=e?e:ta.getCurrentPage(),h[e.id]){delete h[e.id],r.eachItem(e.getPageContentInstance().getSectionsByPage(e),function(e,t){t.isMasterPageElement.isFalse()&&s(t)});var t=[];r.eachItem(e.childInstances,function(e,n){n.isMasterPageElement.isFalse()&&!n.shouldDisplayOnMobile()&&(n.isType(Yn.group)?t.push(n):s(n))}),r.eachItem(t,function(e,t){s(t)}),s(e,{removeDescendant:!1})}},this.resetRowsAndCells=function(){g&&r.eachEntry(g,function(e,t){t.removeFromContainer(),delete g[t.id]}),f={}},this.deActivateRowsRendering=function(){m.unbindAll()},this.addInstanceToContainer=function(t,n,i){if(t.canContainerRows()&&!t.isType(Yn.TabsPanel)&&n.hasFeature(Qn.HasResponsiveItem)&&n.shouldBeWithLayoutOnMobile()&&n.isInstanceVisible()){if(!ia.isElementVisible(t)){var a=t.visibilityChangedEvent.one(function(){Ea.addInstanceToContainer(t,n)});return void m.add(a)}Ea.UpdateBatch.start(),i||o(Ia.createInstanceOrderableElement(n));var r=Cn.getOrCreateCellFromInstance(n),s=yn.getOrCreateRowByCellItem(r,t);s.updateCurrentCells(r),s.build(e(t)),s.setContainerInstance(t),s.initializeCellItems(),Ea.UpdateBatch.finish()}},this.addInstancesToContainer=t,this.removeInstancesFromContainer=s,this.getDroppingAreas=function(e){var t=[],i=e.getCellItem(),a=i.getRowParent(),o=e.parentInstance,s=o.getRowsFromContainer();if(0===s.length)return t;s.orderBy(function(e){return e.getOrder()});var l=s[0].getArea(),c=10,u=4,d=r.getValues(a.getCells()).length>1;(s[0].id!==a.id||d)&&t.push({type:Ea.MarkingTypes.Row,isFirst:!0,area:r.extendedAreaInfo({left:l.left-c,right:l.right+c,top:l.top-u,bottom:l.top+u}),item:s[0],above:!0,rowArea:l,markingData:{left:l.left,top:l.top,width:l.width}});for(var g=0;g0&&r.grep(h.childInstances,function(e){return e.isVisibleInMode()&&e.shouldDisplayOnMobile()}).length>0}var d=this;d.Flags={IsInMobileContext:k.create(!1),IsActivated:k.create(!1)},d.Events={MobileEditingStarted:b.create(),MobileEditingFinished:b.create(),SwitchingBetweenDevices:b.create(),AfterSwitchBetweenDevices:b.create()};var g=Pe.create();this.MobileRefreshingPositionsBatch=g;var f=Pe.create();this.updateBatch=f;var h,p="masterPageContentSectionId",m="MobileResponsiveStateId1234";d.MobileStateName=m;var v,y,C={},I={},S={},P={},w={},E=!1;this.initializeState=function(){var e={};e[m]={priority:6,id:m,responsiveState:!0},Ei[m]||wi.registerElementStates(e)},this.initialize=function(){y=b.createEventListener([{event:Ki.Events.NamedPropertyValueChanged,name:"sizeAndPosition"},Ui.Events.ElementsReordered,Ea.CellsContainerChangedEvent,{event:Ki.Events.NamedPropertyValueChanged,name:"rowsSpacing"},{event:Ki.Events.NamedPropertyValueChanged,name:"cellsSpacing"},{event:Ki.Events.NamedPropertyValueChanged,name:"pagePadding"},{event:Ki.Events.NamedPropertyValueChanged,name:"sectionPadding"},{event:Ki.Events.NamedPropertyValueChanged,name:"sectionVerticalPadding"},{event:Ki.Events.NamedPropertyValueChanged,name:"innerRowPadding"},{event:Ki.Events.NamedPropertyValueChanged,name:"cellsHorizontalAlignment"},{event:Ki.Events.NamedPropertyValueChanged,name:"cellsVerticalAlignment"},{event:Ki.Events.NamedPropertyValueChanged,name:"innerRowsSpacing"},{event:Ki.Events.NamedPropertyValueChanged,name:"staticMargin"},{event:Ki.Events.NamedPropertyValueChanged,name:"cellHorizontalAlignment"},{event:Ki.Events.NamedPropertyValueChanged,name:"isVisibleInMode"},W.Events.NavigationFinished],function(){a()})},this.initializeMobileForViewer=function(){ji.Events.InstanceCreatedEvent.bind(function(e){e.activateState(Ei.MobileState,!0,!1)}),v=b.createBindingsCollection(),d.Flags.IsInMobileContext.setTrue(),d.startMobileState(),e()},this.initializeMobileForViewer=function(){v=b.createBindingsCollection(),d.Flags.IsInMobileContext.setTrue(),d.startMobileState(),e()},this.refreshMobileMasterSectionInstanceVisibilty=function(){d.Flags.IsInMobileContext.isTrue()&&c().isDisplayed.setValue(u(),"noMasterPageContentSections")}, this.getMobileState=function(){return{type:Ei[d.MobileStateName],source:ta.getCoordinator().id}},this.resetSectionsOrderes=function(){Ui.beginReorderingBatch(),r.eachItem(cr.getCurrentPageOrderedSections(),function(e,t){Ki.setValueInCustomState(t,"order",Ki.getEditedState(),void 0)}),Ui.endReorderingBatch()},this.startMobileState=function(){var e=ta.getCoordinator(),t={name:m,title:"Mobile Editing",elementName:"Mobile"};Di.setEditingClass(Di.MobileDesktopViewClass),Ki.setCustomGlobalState(t,e),Di.Flags.PcEditing.setFalse()},this.startEditingState=function(){var e=ta.getCoordinator(),t={name:m,title:"Mobile Editing",elementName:"Mobile"};Ki.startStateEditingMode({sourceInstance:e,StateMode:t})},this.endEditedState=function(){Ki.endStateEditingMode()},this.endMobileState=function(){var e=ta.getCoordinator(),t={name:m,title:"Mobile Editing",elementName:"Mobile"};Ki.removeGlobalState(t,e),Di.setEditingClass(Di.PcDesktopViewClass)},this.addInstanceToMobile=function(e,t){var n=e.hasFeature(Qn.PageSection);if(n||e.hasFeature(Qn.HasResponsiveItem)){var i=r.getValues(ji.getAllPageInstances());f.start(),ur.startRenderingBatch(),Ea.UpdateBatch.start(),n?r.each(e.childInstances,function(e,n){l(n,t)}):l(e,t),Gi.refreshElementsLayout(e.parentInstance),Gi.refreshElementsLayout(e),Ui.setReassignmentRequired(!0),Ea.UpdateBatch.finish(),ur.finishRenderingBatch(),f.finish(),ia.invalidateAreas(i)}},this.getPageInstancesHierarchiesData=function(e){return d.Flags.IsInMobileContext.isTrue()&&S[e.id]?S[e.id].rootInstancesHierarchies:void 0},this.getMasterPageInstancesHierarchiesData=function(e){return e=e?e:sa.getDefaultMasterPageId(),d.Flags.IsInMobileContext.isTrue()&&P[e]?P[e].rootInstancesHierarchies:void 0},this.getMasterPageContentSection=c}),xa=function(){function e(t,n){t.childElements&&r.eachItem(t.childElements,function(i,a){var r=n(a,t);return r===!1?!1:(r=e(a,n),r===!1?!1:void 0)})}function t(e,n,i,a){return i===n?(a.setValue(e),!1):(i++,e.childElements&&r.eachItem(e.childElements,function(e,r){return t(r,n,i,a)}),void 0===a.getValue())}function n(e,t,i){return e.type===t?(i.setValue(e),!1):(e.childElements&&r.eachItem(e.childElements,function(e,a){return n(a,t,i)}),void 0===i.getValue())}function i(e,t,n){return e.id===t?(n.setValue(e),!1):(e.childElements&&r.eachItem(e.childElements,function(e,a){return i(a,t,n)}),void 0===n.getValue())}var a=function(e,t){e=r.quickExtend({structures:[],connections:{},customStatesProperties:{},defaultProperties:void 0},e),t=r.quickExtend({valueChangeCallback:To},t);var n=r.uniqueID();this.hierarchy=e,this.id=n,this.name="Hierarchy"+n,this.options=t};return a.prototype.getStructureIds=function(){var e={};return this.hierarchy.idsInHierarchy?r.quickExtend({},this.hierarchy.idsInHierarchy):(this.eachStructure(function(t){e[t.id]=!0}),e)},a.prototype.eachStructure=function(t){r.eachItem(this.hierarchy.structures,function(n,i){var a=t(i);return a===!1?!1:(a=e(i,t),a===!1?!1:void 0)})},a.prototype.getStructureByIndex=function(e){var n=new p(void 0);return r.eachItem(this.hierarchy.structures,function(i,a){return t(a,e,0,n)}),n.getValue()},a.prototype.getHierarchy=function(){return this.hierarchy},a.prototype.addHierarchyAndApply=function(e){var t=this;return e=r.quickExtend({defaultProperties:this.hierarchy.defaultProperties,afterAddingCallback:function(){t.applyHierarchy()}},e),ji.addInstancesHierarchyFromStructure(this.hierarchy.structures,e)},a.prototype.addHierarchyFromNode=function(e,t){t=r.quickExtend({defaultProperties:this.hierarchy.defaultProperties,includeNode:!0,includeChildren:!0},t);var n,i=this.getStructureById(e);if(t.includeChildren)t.includeNode?n=ji.addInstancesHierarchyFromStructure([i],t):i.childElements&&(n=ji.addInstancesHierarchyFromStructure(i.childElements,t));else if(t.includeNode){var a=i.childElements;i.childElements=[],n=ji.addInstancesHierarchyFromStructure([i],t),i.childElements=a}return n},a.prototype.applyHierarchy=function(){var e=this.hierarchy;ia.VisibilityUpdateBatch.start(),Ki.UpdateBatch.start(),ia.UpdateBatch.start(),qi.applyConnections(e.connections.targetConnections),qi.applyConnections(e.connections.sourceConnections),Ki.addCustomStatesPropertiesValues(e.customStatesProperties),Ki.UpdateBatch.finish(),ia.VisibilityUpdateBatch.finish(),ia.UpdateBatch.finish()},a.prototype.getStructureByType=function(e){var t=new p(void 0);return r.eachItem(this.hierarchy.structures,function(i,a){return n(a,e,t)}),t.getValue()},a.prototype.getStructureById=function(e){var t=new p(void 0);return r.eachItem(this.hierarchy.structures,function(n,a){return i(a,e,t)}),t.getValue()},a.create=function(e,t){return new a(e,t)},a}(),ka={FontFamily:"fontFamily",TextColor:"color",HoverColor:"hoverColor",BackgroundColor:"backgroundColor",FontSize:"fontSize",LineHeight:"lineHeight",LetterSpacing:"letterSpacing",UseUnderline:"useUnderline",BorderColor:"borderColor",BorderWidth:"borderWidth",BorderStyle:"borderStyle"},Fa={ParagraphTitle:"title",MenuButton:"menu",PageTitle:"pageTitle",HeadingXL:"headingXL",HeadingM:"headingM",HeadingL:"headingL",HeadingS:"headingS",BodyL:"bodyL",BodyM:"bodyM",BodyS:"bodyS",BodyXS:"bodyXS"},Da={Text:"Text",Link:"Link",Marked:"Marked",Separator:"Separator"},Aa={Heading:"heading",SubHeading:"sub-heading",Normal:"normal",Link:"link",Marked:"marked",Separator:"separator"},Va=h.create(Aa).extendValue(Aa.Heading,{contentType:Da.Text}).extendValue(Aa.SubHeading,{contentType:Da.Text}).extendValue(Aa.Normal,{contentType:Da.Text,isDefault:!0}).extendValue(Aa.Link,{contentType:Da.Link}).extendValue(Aa.Marked,{contentType:Da.Marked}).extendValue(Aa.Separator,{contentType:Da.Separator}),Ba=Do(function(){function e(e){switch(e){case ka.FontFamily:return"font";case ka.TextColor:return"fontColor";case ka.FontSize:return"fontSize";default:return}}function t(e){switch(e){case"font":return ka.FontFamily;case"fontColor":return ka.TextColor;case"fontSize":return ka.FontSize;default:return}}function n(e,t){var n=t[e];return{name:e,fontSize:n.fontSize,color:n.color,fontFamily:n.fontFamily}}var i=this;this.TextStylesChanged=b.create(),this.TextStyleClassNames=r.mapEntry(Fa,function(e){return"theme-text-style-{0}".format(e)}),this.getInlineStyleClass=function(e){return"theme-inline-text-style-{0}".format(e)},this.InlineTextStyleClassNames=Va.map(function(e,t){return e.contentType===Da.Text?i.getInlineStyleClass(t):void 0}),this.initialize=function(){ta.whenCoordinatorAvailable(function(){r.eachEntry(Fa,function(e,t){var n=r.rule(".theme-text-style-"+t+" {}");Ba.TextStylesChanged.bindAndExecute(function(){var e=Ba.getTextStyleInformation(t);n.css({"font-family":Na.evaluateFontBinding(e.fontFamily),color:Ma.evaluateColorBinding(e.color,!0),"font-size":e.fontSize})})})})},this.getTextStyleFromClass=function(e,t){var n=t?/^theme-inline-text-style-([\w-]+)$/i:/^theme-text-style-(\w+)$/i,i=n.exec(e);return i?i[1]:void 0},this.getTextStyles=function(){var e=ta.getCoordinator(),t=e.getPropertyValue("textStyles"),i=[];return r.eachEntry(t,function(e){i.push(n(e,t))}),i},this.getDefaultInlineTextStyles=function(){return Va.map(function(e,t){return e.contentType===Da.Text?{name:t,title:e.title,isDefault:e.isDefault}:void 0})},this.getTextStyleInformation=function(e){return n(e,ta.getCoordinator().getPropertyValue("textStyles"))},this.getElementTextStyle=function(e){var t=e.getPropertyValue("namedTextStyle");return t?Ba.getTextStyleInformation(t):null},this.evaluateElementTextStyle=function(t,n,i){if(void 0===i&&(i=t.getPropertyValue(e(n))),null===i){var a=Ba.getElementTextStyle(t);a&&(i=a[n])}return i},this.getCustomPropertyTextStyle=t}),La={Dark:"dark",Light:"light"},Ma=Do(function(){function e(e){var t=ta.getCoordinator().getPropertyValue("themeColors"),n={palette:r.map(t.palette,function(e){return{color:e.color,variations:e.variations.clone()}}),variation:t.variation},i=e(n);i&&ta.getCoordinator().setPropertyValue("themeColors",n)}var t=this,n=5,i=5;this.getNumberOfMainColors=function(){return n},this.getNumberOfMainColorVariations=function(){return i},this.DisableColorsTransition=Pe.create(),this.CurrentThemePalette=D.createReferenceObject(),this.ThemeColorsChanged=b.create(),this.SitePresetPalettes=new Mt,this.ThemeColors=r.buildArray(n,function(){return{MainColor:D.create(void 0,{equalityComparer:r.colorsEqualityComparer,valueConverter:function(e){return r.Color(e).toHEX()}}),Variations:r.buildArray(i,function(){return D.create(void 0,{equalityComparer:r.colorsEqualityComparer,valueConverter:function(e){return r.Color(e).toHEX()}})})}}),this.BackgroundClassNames=m.create(function(){for(var e=[],t=0;ta;a++){var r=t[a],o=r.variations,s=Ma.ThemeColors[a],l=s.Variations;s.MainColor.setValue(r.color);for(var c=0;i>c;c++)l[c].setValue(o[c])}Ma.ThemeColorsChanged.fireNew()}),ta.whenCoordinatorAvailable(function(e){Ki.Events.NamedPropertyValueChanged.bindAndExecute("themeColors",function(){var t=e.getPropertyValue("themeColors");Ma.CurrentThemePalette.setValue(t)}),Ki.Events.NamedPropertyValueChanged.bindAndExecute("sitePresetPalettes",function(){var t=e.getPropertyValue("sitePresetPalettes");Ma.SitePresetPalettes.syncrhonize(t)})})},this.saveSitePresetPalette=function(e){e=Ma.clonePalette(e),e.id=r.uniqueID();var t=ta.getCoordinator(),n=t.getPropertyValue("sitePresetPalettes").clone();n.push(e),t.setPropertyValue("sitePresetPalettes",n)},this.removeSitePresetPalette=function(e){var t=ta.getCoordinator(),n=t.getPropertyValue("sitePresetPalettes").clone();n=r.grep(n,function(t){return t.id!==e}),t.setPropertyValue("sitePresetPalettes",n)},this.getCurrentPalette=function(){return Ma.clonePalette(ta.getCoordinator().getPropertyValue("themeColors"))},this.getColorBindingFromClass=function(e){var t=/^theme-text-color-(\d+)(?:-(\d+))?$/i.exec(e);return t||(t=/^theme-background-color-(\d+)(?:-(\d+))?$/i.exec(e)),t?Ma.createThemeColorBinding(parseInt(t[1]),{variation:t[2]?parseInt(t[2]):void 0}):void 0},this.generateObservableThemeColorsCollection=function(e){var n=new Mt;return n.put(r.map(e,function(e){return{id:r.weakID(),color:e}})),t.ThemeColorsChanged.bind(function(){n.invalidateAllItems()}),n},this.generateThemeColorsPalette=function(e,t){t=r.quickExtend({colors:[],fixedHue:!1,fixedSaturation:!1,fixedBrightness:!1},t);var n=t.colors,i=t.fixedHue,a=t.fixedSaturation,o=t.fixedBrightness,s=t.minBrightness,l=t.maxBrightness;return r.map(n,function(t){var n=r.Color(t).toHSL();return Ma.createThemeColorBinding(e,{fixedHue:i?n[0]:void 0,fixedSaturation:a?n[1]:void 0,fixedBrightness:o?n[2]:void 0,minBrightness:s,maxBrightness:l,variation:!1})})},this.createThemeColorBinding=function(e,t){t=r.extend({opacity:1,brightness:0},t);var n=t.variation;return void 0===n&&(n=Ma.getMainColorVariationIndex(e)),{mainColor:e,variation:n,opacity:t.opacity,brightness:t.brightness,fixedHue:t.fixedHue,fixedSaturation:t.fixedSaturation,fixedBrightness:t.fixedBrightness,minBrightness:t.minBrightness,maxBrightness:t.maxBrightness}},this.adjustThemeColorBinding=function(e,t){return t=r.extend({},t),Ma.createThemeColorBinding(e.mainColor,{variation:e.variation,opacity:r.valueOrDefault(t.opacity,e.opacity),brightness:r.valueOrDefault(t.brightness,e.brightness)})},this.themeColorBindingEqualityComparer=function(e,t){return e&&t?e.mainColor===t.mainColor&&e.variation===t.variation&&r.valueOrDefault(e.opacity,1)===r.valueOrDefault(t.opacity,1)&&r.valueOrDefault(e.brightness,1)===r.valueOrDefault(t.brightness,1):e===t},this.evaluateColorBinding=function(e,n){if(n=r.valueOrDefault(n,!1),!e)return e;if(gn.isGradient(e))return gn.mapGradientColorValues(e,function(e){return Ma.evaluateColorBinding(e)});var i=e.mainColor;if(void 0!==i){var a=e.variation,o=r.valueOrDefault(e.opacity,1),s=r.valueOrDefault(e.brightness,0),l=e.fixedHue,c=e.fixedSaturation,u=e.fixedBrightness,d=e.minBrightness,g=e.maxBrightness,f=r.Color(Ma.getThemeColor(i,a));if(f=gn.adjustOpacity(f,function(){return o}),0!==s){var h=t.getCurrentPaletteVariation(),p=h===La.Light?1:-1;f=gn.adjustColorComponent(f,rt.L,function(e){return r.normalizeToRange(r.adjustFraction(e,2)+r.adjustFraction(s,2)*p,0,1)})}return void 0!==l&&(f=gn.setColorComponent(f,rt.H,l)),void 0!==c&&(f=gn.setColorComponent(f,rt.S,c)),void 0!==u&&(f=gn.setColorComponent(f,rt.L,u)),void 0===d&&void 0===g||(f=gn.adjustColorComponent(f,rt.L,function(e){return r.normalizeToRange(e,r.valueOrDefault(d,0),r.valueOrDefault(g,1))})),n?f.toCSS():f}return e},this.getOriginalThemeColorBrightness=function(e){return e=Ma.adjustThemeColorBinding(e,{brightness:0}),gn.getBrightness(Ma.evaluateColorBinding(e))},this.getCurrentPaletteVariation=function(){return Ma.CurrentThemePalette.getValue().variation},this.getMainColorVariationIndex=function(e){var t=Ma.getThemeColor(e);return Ma.getThemeColorBrightnessIndex(gn.getBrightness(t),Ma.getCurrentPaletteVariation())},this.getThemeColorBrightnessIndex=function(e,t){var a=1/i,r=Math.min(Math.floor(e/a),i-1);return t===La.Light&&(r=n-1-r),r},this.getThemeColorBrightnessRange=function(e){var t=1/i,n=Math.floor(100*e/(100*t))*t,a=n+t-.01;return{min:n,max:a}},this.isColorBinding=function(e){return r.isPlainObject(e)?Ma.isSolidColorBinding(e)||Ma.isGradientColorBinding(e):!1},this.isSolidColorBinding=function(e){return r.isPlainObject(e)?void 0!==e.mainColor:!1},this.isGradientColorBinding=function(e){return gn.isGradient(e)?r.any(gn.getGradientColorValues(e),function(e){return Ma.isSolidColorBinding(e)}):!1},this.getBoundMainColorIndex=function(e){return r.isPlainObject(e)?e.mainColor:void 0},this.getBoundMainColorVariationIndex=function(e){return r.isPlainObject(e)?e.variation:void 0},this.getThemeColor=function(e,t){var n=ta.getCoordinator(),i=n.getPropertyValue("themeColors"),a=i.palette[e];return void 0!==t&&t!==!1?a.variations[t]:a.color},this.setThemeColors=function(e){ta.getCoordinator().setPropertyValue("themeColors",e)},this.changeMainColor=function(t,n){e(function(e){var i=e.variation;return e.palette[t]={color:n,variations:Ma.generateColorsVariations(n,i)},!0})},this.changePaletteVariation=function(t){e(function(e){if(e.variation===t)return!1;e.variation=t;for(var n=e.palette,i=0;il;l++)s.push(r.adjustFraction(Math.min(.98,Math.max(.02,l*a+o)),2));var c=r.map(s,function(t){return gn.changeBrightness(e,t).toHEX()});return c[Ma.getThemeColorBrightnessIndex(n,La.Dark)]=e.toHEX(),t===La.Light&&c.reverse(),c},this.generatePalette=function(e,t){t=r.valueOrDefault(t,La.Light);var n=[];return r.eachItem(e,function(e,i){var a=Ma.generateColorsVariations(i,t);n.push({color:i,variations:a})}),{palette:n,variation:t}},this.getPresetPalettes=function(){var e=[["#F2F1E1","#CCE0C5","#3C3D3F","#54604F","#B7D9C0"],["#E4D7C6","#CFCECD","#DF3732","#29282D","#8F8C87"],["#F6F7F2","#EEE252","#E55516","#262B27","#8DA641"],["#ECE8CF","#918C6E","#112838","#33301D","#D90D3D"],["#C8DCBF","#E0FCEC","#5D9E9A","#5D9E9A","#DB0148"],["#FB6900","#004853","#007E80","#00B9BD","#E03912"],["#C44D58","#556270","#FF6B6B","#262B27","#C7F464"],["#87244C","#30162B","#F5F2C4","#BCCF9F","#3FB094"],["#F4F3E3","#BADDDD","#F28C8C","#000000","#F3C2AD"],["#000000","#7964E4","#6EE264","#FFFFFF","#A5A5A5"],["#FFFFFF","#FFF538","#FF006F","#000000","#FFB300"],["#FCFDFF","#EDEDF2","#A6AEC1","#3B414C","#00B5B5"],["#FDFAEB","#FAEDDF","#F7A29E","#3B3F49","#F3C6B9"],["#FFFFFF","#F3F4E5","#A1C1BE","#59554E","#E2E3D9"],["#040004","#413D3D","#FA023C","#C8FF00","#4B000F"],["#E6DCDB","#FE016B","#0D0F19","#0D0F19","#5E666C"],["#E7EDEA","#CEECEF","#FB0C06","#030D4F","#FFC52C"],["#ADB3BA","#0CCFC2","#FF2E43","#382F32","#F7921E"]],t=[];return r.each(e,function(e,n){t.push(Ma.generatePalette(n))}),t},this.clonePalette=function(e){return{palette:r.map(e.palette,function(e){return{color:e.color,variations:ke.clone(e.variations)}}),variation:e.variation}},this.palettesEqualityComparer=function(e,t){return e&&t?e.variation!==t.variation?!1:r.arraysEqual(e.palette,t.palette,{equalityComparer:function(e,t){return gn.bindableColorsEqualityComparer(e.color,t.color)&&r.arraysEqual(e.variations,t.variations,{equalityComparer:gn.bindableColorsEqualityComparer})}}):e===t}}),Oa=function(){function e(e,t,n){var i=e._apiFunctions,a=i[t];if(a){e._isInApiCall=!0;var r=a.call(i,n);return e._isInApiCall=!1,r}}function t(e){e._pendingSizeEvent||(e._pendingSizeEvent=!0,e._instance.duringResizing.once(!1,function(){var t=e._instance.getContentSize();e._fireEvent(c.SIZE_CHANGE,{width:t.width,height:t.height}),e._pendingSizeEvent=!1}))}function n(e,t){if(!t){var n=e._instance.getPosition();e._fireEvent(c.POSITION_CHANGE,{left:n.left,top:n.top})}}function i(e,t){var n=[];r.eachEntry(t,function(t,i){var a=e._settingKeysMap[t];a&&n.push({name:a,value:i.value})}),n.length>0&&e._fireEvent(c.SETTING_CHANGE,n)}function a(e){return e?{id:e.id,name:e.title,title:e.pageTitle,isHomePage:e.isHomePage}:void 0}var o=g.extend("ApiFunctions",{init:function(e,t,n){n=r.quickExtend({apiInitialize:To},n),this._instance=e,this._callbacks=n,this._callHandlers=t,this._apiInitialized=!1},API_INIT:function(){this._apiInitialized||(this._apiInitialized=!0,this._callbacks.apiInitialize())},SET_CALL_HANDLER:function(e){var t=e.callName,n=this._callHandlers[t];if(n&&!n.isActivated){n.isActivated=!0;var i=n.batch;i&&delete n.batch,e.oldCalls&&i&&r.eachItem(i,function(e,t){t()})}},RESET_CALL_HANDLER:function(e){var t=e.callName;delete this._callHandlers[t]},SET_PROPERTIES:function(e){this._instance.setPropertyFieldsValues("appProperties",e)},GET_PROPERTIES:function(e){var t=this._instance.getPropertyValue("appProperties");if(t&&r.isArray(e)){var n={};return r.eachItem(e,function(e,i){n[i]=t[i]}),n}return t||{}},GET_SETTINGS:function(e){var t=this._instance,n={};return r.isArray(e)?r.eachItem(e,function(e,i){n[i]=t.getAppSettingValue(i)}):"all"===e&&r.eachEntry(t.getAppSettings(),function(e){n[e]=t.getAppSettingValue(e)}),n},SET_SETTINGS:function(e){var t=this._instance;r.eachEntry(e,function(e,n){t.setAppSettingValue(e,n)})},RELOAD_APP:function(e){this._instance.reloadApp(e)},GET_PAGES:function(){var e=ta.getStaticPagesData(),t=[];return r.eachEntry(e,function(e,n){t.push(a(n))}),t},CALL_HANDLER:function(e){var t=e.callName,n=this._callHandlers[t];return n&&n.callback?n.callback(e.params):void 0},SET_DOCUMENT_SIZE:function(e){this._instance.setDocumentSize(e)},SET_APP_SIZE:function(e){this._instance.setAppSize(e)},SET_APP_CONTENT_SIZE:function(e){this._instance.setAppContentSize(e)},ENABLE_TOP_POSITION:function(){var e=this,t=e._instance;if(!e._customZIndexController){var n=t.customZIndex.getValue();t.customZIndex.setValue(W.MinExternalAppPropertyZindex);var i=Hi.Events.SwitchedToDesignMode.one(function(){e._customZIndexController&&e._customZIndexController.restore()});e._customZIndexController={restore:function(){t.customZIndex.setValue(n),i.unbind(),e._customZIndexController=void 0}}}},DISABLE_TOP_POSITION:function(){this._customZIndexController&&this._customZIndexController.restore()},SET_HASH:function(e){var t=e.hash;e.replace?mn.replaceHash(t):mn.setHash(t)}}),s="FeatureConnect.",l="FeatureImpl.",c={PROPERTY_CHANGE:"PROPERTY_CHANGE",SETTING_CHANGE:"SETTING_CHANGE",STYLE_CHANGE:"STYLE_CHANGE",URL_CHANGE:"URL_CHANGE",SIZE_CHANGE:"SIZE_CHANGE",POSITION_CHANGE:"POSITION_CHANGE",OUTSIDE_MOUSE_EVENT:"OUTSIDE_MOUSE_EVENT"},u=g.extend("ApiManager",{init:function(a){var u=this;a=r.quickExtend({isManage:!1},a);var d=a.instance,g=d.getAppSettings(),f=d.getAppSettingPrefix(),h={};r.eachEntry(g,function(e){d.isQueryParamSetting(e)||(h[f+e]=e)});var m={events:{id:"events",isActivated:!1,isBatchSupported:!1,callback:void 0}};if(this._settingKeysMap=h,this._bindings=[],this._pendingSizeEvent=!1,this._instance=d,this._isInApiCall=!1,this._callHandlers=m,!a.isManage){if(d.hasFeature(Qn.FeatureExternalApp)){var v=d.getAppFeatures();r.eachEntry(v,function(e){var t=l+e;m[t]={id:t,activated:!1,isBatchSupported:!0,callback:function(t){d.fireFeatureEvent(e,t.eventName,t.params)}}})}if(d.hasFeature(Qn.ConnectableExternalApp)){var v=d.getAppConnectableFeatures();r.eachEntry(v,function(e){var t=s+e;m[t]={id:t,activated:!1,isBatchSupported:!0,callback:function(t){var n=r.Deferred();return d.callConnectedFeatureFunction(e,t.functionName,t.params,function(e){n.resolve(e)}),n.promise()}}})}}u._addBinding(d.contentSizeChangedEvent.bind(r.firstArgProxy(t,u))),u._addBinding(Zi.CurrentUrl.valueChangedEvent.bind(function(){u._fireEvent(c.URL_CHANGE,_a.getSessionUrl())})),u._addBinding(d.isInDragging.valueChangedEvent.bind(r.firstArgProxy(n,u)));var y=r.uniqueID();r(document).on("vmousedown."+y+" vmouseup."+y+" vclick."+y,function(e){u._fireEvent(c.OUTSIDE_MOUSE_EVENT,{type:e.type.substr(1)})}),u._addBinding({unbind:function(){r(document).off("."+y)}}),d.InstancePropertiesInitialized.onceTrue(function(){u._addBinding(d.propertyChangedEvent.bind("appProperties",function(e,t){if(!u._isInApiCall){var n=new p(!1),i=r.diffObjectKeys(t,e,n);n.getValue()&&u._fireEvent(c.PROPERTY_CHANGE,i)}})),u._addBinding(d.propertiesChanged.bind(r.firstArgProxy(i,u)))}),this._apiFunctions=new o(d,m,a.callbacks),this._frame=_a.addFrame(a.$iframe,function(t,n){return e(u,t,n)})},_addBinding:function(e){this._bindings.push(e)},_fireEvent:function(e,t){this._callFunction("events",{eventName:e,params:t})},deactivate:function(){r.eachItem(this._bindings,function(e,t){t.unbind()}),this._frame.remove(),delete this._frame},_callFunction:function(e,t,n){var i=this._callHandlers[e];if(i){var a=this._frame;if(i.isActivated)a.callFunction(e,t,n,!1);else if(i.isBatchSupported){var r=i.batch;r||(r=i.batch=[]),r.push(function(){a.callFunction(e,t,n,!0)})}}},callFeatureFunction:function(e,t,n,i,a){this._callFunction(l+e,{functionName:t,params:n,callInfo:i},a)},fireConnectedFeatureEvent:function(e,t,n,i){this._callFunction(s+e,{eventName:t,params:n,callInfo:i})}});return u}(),za=Do(function(){function e(e){return"{0}{1}".format(e.id,e.version)}function t(e){return"ExternalApp"+e}function n(e){e.implementedFeatures&&r.eachEntry(e.implementedFeatures,function(e,t){if(!t.isInternal){var n={};n[t.featureTypeName]={},Xn.registerDefinition(Qn,n)}})}function i(e){var t=po.createElement(e);Xn.registerDefinition(Yn,t)}function a(n,i){var a={};r.eachItem(n.settingCategories,function(e,t){r.quickExtend(a,t.settings)});var o=e(n);n=r.quickExtend(n,{uniqueId:o,elementTypeName:t(o),appSettingPrefix:o,settings:a,getSourceConnections:function(){if(i){var e=[];return i.defaultConnections&&r.eachItem(i.defaultConnections,function(t,i){i.sourceAppId===n.id&&e.push({targetAppId:i.targetAppId,feature:i.feature})}),e}},getAppContainer:function(){return i},getUrl:function(){return r.evaluateWhenFunction(n.url)}}),n.implementedFeatures&&r.eachEntry(n.implementedFeatures,function(e,t){t.isInternal?t.featureTypeName=t.featureInternalType:t.featureTypeName="ExternalApp"+e}),n.connectableFeatures&&r.eachEntry(n.connectableFeatures,function(e,t){t.featureTypeName="ExternalApp"+e})}function o(e){e=r.quickExtend(e,{getApps:function(t){return t=r.asArray(t),r.mapItem(e.apps,function(e){return r.oneOfValues(e.id,t)?e:void 0})}})}var s={},l={},c=this;this.initialize=To,this.addAppContainer=function(e){e.id in l||(o(e),r.eachItem(e.apps,function(t,n){c.addApp(n,e)}),l[e.id]=e)},this.getAppContainer=function(e){return l[e]},this.createApp=To,this.addApp=function(e,t){a(e,t);var r=e.uniqueId;r in s||(s[r]=e,n(e),i(e),this.createApp(e))}}),_a=Do(function(){function e(){return u++}function t(){Rn.addJSONListener(n)}function n(e,t){var n=e.id;if(n){var a=c[n];if(a&&a.origin===t)switch(e.type){case"call":var o=a.callback(e.content.funcName,e.content.params);e.callbackId&&r.when(o).done(function(t){i(n,e.callbackId,t)});break;case"response":var s=e.callbackId;s&&d[s]&&(d[s](e.content),delete d[s])}}}function i(e,t,n){o(e,"response",n,void 0,{callbackId:t})}function a(e,t,n,i,a){o(e,"call",n,i,{callName:t,oldCall:a})}function o(t,n,i,a,o){var s=c[t];if(s&&1===s.$iframe.length){var l=s.$iframe[0].contentWindow;if(l){var u={content:i,type:n};if(a){var g=e();u.callbackId=g,d[g]=a}o&&r.extend(u,o),l.postMessage(JSON.stringify(u),"*")}}}function s(e){delete c[e]}var l=m.create(function(){try{var e=sessionStorage.getItem("AppSessionID");return e||(e=""+r.uniqueID(),sessionStorage.setItem("AppSessionID",e)),e}catch(t){return""+r.uniqueID()}}),c={},u=1,d={};this.initialize=function(){t()},this.addFrame=function(e,t){var n=e[0].src,i=n.split("/"),r=i[0]+"//"+i[2],o="wzId=",l=n.indexOf(o)+o.length,u=n.indexOf("&",l),d=n.substr(l,u-l);return c[d]={callback:t,$iframe:e,origin:r},{id:d,callFunction:function(e,t,n,i){a(d,e,t,n,i)},remove:function(){s(d)}}},this.getSessionUrl=function(){var e=window.location.href;return ra.isTemplate()&&(e=r.combinePaths(e,l.get(),Zi.getFragment())),e},this.createIframeUrl=function(e,t){var n=e.getAppDefinition();t=r.quickExtend({baseUrl:"",apiType:""},t);var i=t.baseUrl,a=new v;a.appendDecoded=function(e){return a.append(encodeURIComponent(e))},a.appendParameter=function(e,t){return a.append("&").appendDecoded(e).append("=").appendDecoded(t)};var o=i.indexOf("?")>=0;a.append(i).conditionalAppend(!o,"?"),a.conditionalAppend(o,"&").append("wzId=").appendDecoded(t.frameId),a.appendParameter("wzInstanceId",e.id).appendParameter("wzAppId",n.id).appendParameter("wzAppV",n.version).appendParameter("wzApiType",t.apiType).appendParameter("wzDeviceType",Ta.Flags.IsInMobileContext.isTrue()?"mobile":"desktop").appendParameter("wzMode","view"),n.useSessionParams&&a.appendParameter("wzSessionId",l.getValue()),n.isCacheDisabled===!0&&a.appendParameter("wzCache",r.uniqueID());var s={};r.eachItem(e.elementType.querySettings,function(t,n){var i=e.getAppSettingValue(n);s[n]=i}),r.extend(s,t.additionalParams);var c={};c.wzCurrentUrl=this.getSessionUrl(),r.extend(c,t.encodedParams);var u=Qt.encode(JSON.stringify(c));return s.wzEncodeParams=u,a.append("&").append(r.param(s)),""+a},this.initialize()}),Na=Do(function(){this.CurrentThemeFonts=D.createReferenceObject(),this.ThemeFonts={Heading1:D.createReferenceObject(),Heading2:D.createReferenceObject(),Body1:D.createReferenceObject(),Body2:D.createReferenceObject()},this.FontFamilyClassNames=m.create(function(){return r.map(["heading1","heading2","body1","body2"],function(e){return"theme-text-font-{0}".format(e)})}),this.initialize=function(){var e={heading1:Na.ThemeFonts.Heading1,heading2:Na.ThemeFonts.Heading2,body1:Na.ThemeFonts.Body1,body2:Na.ThemeFonts.Body2};Na.CurrentThemeFonts.valueChangedEvent.bind(function(t){r.eachEntry(e,function(e,n){n.setValue(t[e])})}),r.eachEntry(e,function(e,t){var n=r.rule(".theme-text-font-"+e+" {}");t.onValueChanged(function(e){n.css("font-family",e)})}),ta.whenCoordinatorAvailable(function(e){Ki.Events.NamedPropertyValueChanged.bindAndExecute("themeFonts",function(){var t=e.getPropertyValue("themeFonts");Na.CurrentThemeFonts.setValue(t)})})},this.getFontBindingFromClass=function(e){var t=/^theme-text-font-(\w+)$/i.exec(e);return t?Na.createThemeFontBinding(t[1]):void 0},this.createThemeFontBinding=function(e){return{themeFont:e}},this.getThemeFontType=function(e){if(Na.isFontBinding(e))switch(e.themeFont){case"heading1":return"Heading 1";case"heading2":return"Heading 2";case"body1":return"Body 1";case"body2":return"Body 2";default:return}},this.evaluateFontBinding=function(e){if(!e||!r.isPlainObject(e))return e;var t=e.themeFont;if(void 0!==t){var n=ta.getCoordinator(),i=n.getPropertyValue("themeFonts");return i[t]}return e},this.isFontBinding=function(e){return r.isPlainObject(e)?void 0!==e.themeFont:!1},this.setThemeFonts=function(e){ta.getCoordinator().setPropertyValue("themeFonts",e)},this.updateThemeFont=function(e,t){ta.getCoordinator().setPropertyFieldValue("themeFonts",e,t)},this.getPresetFonts=function(){return[{heading1:"Open Sans Extra Bold",heading2:"Open Sans Condensed Light",body1:"Open Sans",body2:"Open Sans Semi Bold"},{heading1:"Lobster",heading2:"Source Sans Pro Semi Bold",body1:"Source Sans Pro Light",body2:"Source Sans Pro Semi Bold"},{heading1:"Dancing Script Bold",heading2:"Open Sans",body1:"Open Sans Condensed Light",body2:"Open Sans"},{heading1:"Oleo Script",heading2:"Open Sans",body1:"Open Sans",body2:"Open Sans"},{heading1:"Old Standard TT Bold",heading2:"Old Standard TT Italic",body1:"Source Sans Pro Light",body2:"Source Sans Pro Light"},{heading1:"Amatic SC Bold",heading2:"Amatic SC",body1:"Source Sans Pro Light",body2:"Amatic SC"},{heading1:"Kaushan Script",heading2:"Lato Light",body1:"Lato",body2:"Lato"},{heading1:"Julius Sans One",heading2:"Lato",body1:"Lato Light",body2:"Lato"},{heading1:"Bad Script",heading2:"Droid Sans Bold",body1:"Droid Sans",body2:"Droid Sans"},{heading1:"Neuton Bold",heading2:"Neuton",body1:"Neuton Extra Light",body2:"Neuton"},{heading1:"Nixie One",heading2:"Nixie One",body1:"Source Sans Pro Light",body2:"Nixie One"},{heading1:"Vollkorn Bold",heading2:"Vollkorn Italic",body1:"Vollkorn",body2:"Vollkorn"},{heading1:"Abril Fatface",heading2:"Abril Fatface",body1:"Open Sans",body2:"Abril Fatface"},{heading1:"Old Standard TT Italic",heading2:"Old Standard TT Bold",body1:"Old Standard TT",body2:"Old Standard TT"},{heading1:"Amatic SC Bold",heading2:"Amatic SC",body1:"Lato",body2:"Amatic SC"},{heading1:"Open Sans Extra Bold",heading2:"Droid Serif",body1:"Droid Serif",body2:"Droid Serif"},{heading1:"Gravitas One",heading2:"PT Mono",body1:"PT Mono",body2:"PT Mono"},{heading1:"Old Standard TT Bold",heading2:"Old Standard TT Italic",body1:"Old Standard TT",body2:"Old Standard TT"},{heading1:"PT Sans Narrow Bold",heading2:"PT Sans Bold",body1:"PT Serif",body2:"PT Sans"}]}}),Ra=Do(function(){this.startProcessing=function(e){var t=r("
");t.html(e);var n=!1,i=e,a={processLinks:function(){return t.find("a[data-attached-link]").each(function(){var e=r(this),t=e.attr("data-attached-link"),i=r.tryParseJSON(t);if(i&&i.type===Ge.Pages)e.addClass("internal-link"),e.attr("href",Zi.getPageFullHtmlUrl(i.url)),n=!0;else{var a=e.hasClass("internal-link");a&&(e.removeClass("internal-link"),n=!0)}}),a},processCKObjectsForViewing:function(){return xr.processCKObjectsForViewing(t)&&(n=!0),a},processImages:function(){return t.find("img[data-image-info]").each(function(){var e=r(this),t=r.tryParseJSON(e.attr("data-image-info"));if(t){var i=r.tryParseJSON(e.attr("data-image-size"));e.attr("src",J.resolveImageUrl(t,i)),n=!0}}),a},finish:function(){return n&&(i=t.html()),t.remove(),a},getProcessedContent:function(){return i},ifContentChanged:function(e){return n&&e(i),a}};return a}}),Ha=Do(function(){function e(e){if("undefined"!=typeof WebzaiController&&WebzaiController.isAdmin())return!1;var t=n[e];return t&&t.limitation.isLimited?t:!1}var t=this,n={};this.Events={BeforeUpgradeDialogOpened:b.create(),AfterUpgradeDialogOpened:b.create(), UpgradeWindowClosed:b.create()};this.setLimitations=function(e){n={},r.quickExtend(n,e)},this.getFreemiumBannerLimitation=function(){return e("bannerFeature")},this.initialize=function(){t.setLimitations(ra.getSiteLimitations())}}),qa={Global:"Global",Inline:"Inline"},Ua={Default:"Default",TextInput:"TextInput",TextArea:"TextArea"},$a={Desktop:"Desktop",Mobile:"Mobile"},Wa=Do(function(){var e,t={},n=k.create(!1);this.Events={SkinHierarchyChanged:b.createNamedEvents(),SkinHierarchyUpdated:b.createNamedEvents(),SkinStyleChanged:b.createNamedEvents()},this.Flags={DisableDuringEditingTemplate:k.create(!0)};this.getStrucuturesController=function(){return{getStructuresByCategory:Wa.getSkinsByCategory,getStructureMetaData:Wa.getSkinMetaData,fetchStructure:Wa.fetchStructure,fetchAllMetaData:Wa.fetchAllSkinsMetaData}},this.getSkinsByCategory=function(e){return t[e]},this.fetchAllSkinsMetaData=function(t,i){n.isFalse()?e.fetchAllNew(t,i):t()},this.fetchStructure=function(t,n,i){var a=e.getItem(t);return fr.loadStructure(t,a.file,n,i)},this.getSkinMetaData=function(t){return e.getItem(t)},this.shouldReferToSkinValue=xo,this.evaluateSkinFieldStateValue=function(e,t){t=r.quickExtend({},t);var n=t.bindingData,i=t.fieldName,a=t.stateName;t.sourceId;switch(n.type){case ao.PropertyBinding:var o=e.getMainSkinInstance();if(o){var s=o.getPropertyValue(i),l={value:s,animation:void 0};return l}break;default:var c=e.getPropertyValue("styleBindingId");return Ga.evaluateFieldStateValue(c,i,a)}},this.getFieldValueChangedEvent=function(e,t,n){switch(t.type){case ao.PropertyBinding:var i=e.getMainSkinInstance();if(i)return{event:i.propertyChangedEvent,name:n};break;default:var a=e.getStyleBindingId();return r.objectGet(Ga.getStyleFields(a),[n,"valueChangedEvent"])}},this.getSkinHierarchy=function(e){switch(e.type){case qa.Inline:return e.hierarchy;case qa.Global:var t=ta.getCoordinator().getSkin(e);return t?t:Wa.getDefaultSkinHierarchy(e.skinName)}},this.updateSkin=function(e,t){ta.getCoordinator().updateSkin(e,t)},this.updateSkinHierarchy=function(e,t,n){switch(t.type){case qa.Inline:n.setPropertyValue("skinBinding",r.quickExtend({},t,{hierarchy:e}));break;case qa.Global:var i=e.fieldsToValues,a=e.statesAnimations;Ga.updateStyle(t.skinName+t.index,i,a),ta.getCoordinator().updateSkin(e,t)}},this.getDefaultSkin=function(e){return ja[e]},this.getDefaultSkinHierarchy=function(e){return Wa.getDefaultSkin(e).hierarchy}}),ja={},Ga=Do(function(){var e=Ei.NormalState.name;this.DefaultStateName=e,this.DefaultMobileStateName=Ta.MobileStateName,this.Events={styleFieldValueChanged:b.create()},this.getDefaultStateName=function(){return e};var t=new Mt;this.getStyleFields=function(e){var t=Ga.getStyle(e);return t.fields},this.getStyleId=function(e){return e.skinName+e.index},this.evaluateFieldStateValue=function(e,t,n){var i=Ga.getStyle(e);if(i){var n;n=!n&&Ta.Flags.IsInMobileContext.isTrue()&&i.isSupportsMobile()?Ta.MobileStateName:n?n:Ga.DefaultStateName;var a,r,o=i.getFieldData(t,n);return o?(a=i.statesAnimations[n]?i.statesAnimations[n].getValue():void 0,r=o.observableValue.getValue(),{animation:a,value:r}):void 0}},this.getStatesInformation=function(e,t,n){var i=Ga.getStyle(e),a={},o=[],s=i.fields,l=s[t[0]];return l&&r.eachItem(t,function(e,t){if(s[t])for(var i in s[t].states){var r=s[t].states[i],l=r.observableValue.getValue();if(void 0!==l&&!a[i]){a[i]=!0;var c={stateName:i};c=n(c),o.push(c)}}}),o},this.getStyles=function(e){t.getItem(e);return t.getItemsValues()},this.getStyle=function(e){return t.getItem(e)},this.isStyleExist=function(e){return void 0!==t.getItem(e)},this.addStyle=function(e,n,i){t.remove(e);var a=Ga.createStyle(e,n,i);return t.put(a),a},this.createStyle=function(e,t,n){n=n?n:{};var i=Xa.create(e,t),a=i.supportedStates;if(t){r.eachEntry(t,function(e,t){i.setField(e,Ga.createField(i,t,e))});var o=t;if(o){var s=r.getValues(o)[0];if(s)for(var l in s){s[l];if(Ei[l]){if(l!==Ga.DefaultStateName&&l!==Ta.MobileStateName){var c;c=Ei[l].isComplex?Qi.Mobile:Qi.PC,r.objectSetIfUndefined(a,[c],r.returnEmptyArray),a[c].push(Ei[l]),n[l]||(n[l]={transitionInDuration:0,transitionOutDuration:0,easing:"linear",useCustomExitAnimation:!1}),i.statesAnimations[l]=D.create(n[l])}l===Ta.MobileStateName&&i.toggleMobileSupport(!0,!1)}}}}return i},this.getStyleInformation=function(e){var n={fields:{},statesAnimations:{}},i=t.getItem(e);r.eachEntry(i.fields,function(e,t){n.fields[e]={};for(var i in t.states){var a=t.states[i];n.fields[e][i]={value:a.observableValue.getValue(),animation:a.animation.getValue()}}});for(var a in i.statesAnimations){var o=i.statesAnimations[a];n.statesAnimations[a]=o.getValue()}return n},this.addFieldToStyle=function(e,t,n){var i=Ga.getStyle(e);r.objectSet(i.fields,[t],Ga.createField(i,n))},this.createField=function(e,t,n){var i=b.create(),a={states:{},valueChangedEvent:i};for(var o in t)Ei[o]&&r.objectSet(a,["states",o],Ga.createStateFieldData(e,n,o,t[o],i));return a},this.createStateFieldData=function(e,t,n,i,a){var r={observableValue:D.create(i.value,{valueChangeCallback:function(i,r){a.fireNew(),Ga.Events.styleFieldValueChanged.fireNew(e,t,n,r)}}),animation:D.create(i.animation,{valueChangeCallback:To})};return r},this.updateStyle=function(e,n,i){t.remove(e),Ga.addStyle(e,n,i)},this.updateStyleState=function(e,t,n,i){var a=Ga.getStyle(e);r.eachEntry(n,function(e,n){var i=n[t].value;n[t].animation;a.setFieldValue(e,t,i),a.setFieldAnimationValue(e,t,i)}),a.statesAnimations[t].setValue(i[t])},this.removeStyle=function(e){Ga.getStyle(e);t.remove(e)}}),Xa=Do(function(){this.create=function(e){var t={},n=!1,i={id:e,fields:{},statesAnimations:{},supportedStates:t,isSupportsMobile:function(){return n},toggleMobileSupport:function(e,a){var o=n;if(n=e,a)if(e){if(!o){r.eachEntry(i.fields,function(e,t){for(var n in t.states){var a=t.states[n],r=Ei[n],o={value:a.observableValue.getValue(),animation:a.animation.getValue()};if(n===Ga.DefaultStateName)t.states[Ta.MobileStateName]=Ga.createStateFieldData(i,e,Ta.MobileStateName,o,i.fields[e].valueChangedEvent);else if(n!==Ei.MouseOverState.name){var s=Ei.MobileState.id*r.id;t.states[s]=Ga.createStateFieldData(i,e,s,o,i.fields[e].valueChangedEvent)}}});for(var s in i.statesAnimations){var l=(i.statesAnimations[s],Ei[s]);if(s===Ga.DefaultStateName)i.statesAnimations[Ta.MobileStateName]=D.create(i.statesAnimations[s].getValue());else if(l!==Ei.MouseOverState){var c=Ei.MobileState.id*l.id;i.statesAnimations[c]=D.create(i.statesAnimations[s].getValue())}}t[Qi.Mobile]=[],r.eachItem(t[Qi.PC],function(e,n){n!==Ei.MouseOverState&&t[Qi.Mobile].push(Ei[Ei.MobileState.id*n.id])})}}else if(o){r.eachEntry(i.fields,function(e,t){for(var n in t.states){t.states[n];n===Ga.DefaultStateName?delete t.states[Ta.MobileStateName]:delete t.states[Ei.MobileState.id*Ei[n].id]}t.valueChangedEvent.fireNew()});for(var s in i.statesAnimations){i.statesAnimations[s];s===Ga.DefaultStateName?delete i.statesAnimations[Ta.MobileStateName]:delete i.statesAnimations[Ei.MobileState.id*Ei[s].id]}}},getFieldData:function(e,t){return t=t?t:i.getDefaultStateName(),r.objectGet(i.fields,[e,"states",t])},getFieldObservable:function(e,t){return t=t?t:Ga.DefaultStateName,r.objectGet(i.fields,[e,"states",t,"observableValue"])},getFieldAnimationObservable:function(e,t){return t=t?t:Ga.DefaultStateName,r.objectGet(i.fields,[e,"states",t,"animation"])},getAnimationObservable:function(e){return e=e?e:Ga.DefaultStateName,r.objectGet(i.statesAnimations,[e])},getSupportedStates:function(){if(n&&Ta.Flags.IsInMobileContext.isTrue())return ke.clone(t[Qi.Mobile]);var e=ke.clone(t[Qi.PC]);return Ta.Flags.IsInMobileContext.isTrue()?r.grep(e,function(e){return e!==Ei.MouseOverState}):e},getDefaultStateName:function(){return n?Ta.MobileStateName:Ga.DefaultStateName},getFieldValue:function(e,t){var n=i.getFieldObservable(e,t);return n?n.getValue():void 0},setFieldValue:function(e,t,n){var a=i.getFieldObservable(e,t);return a?a.setValue(n):void 0},setFieldAnimationValue:function(e,t,n){var a=i.getFieldAnimationObservable(e,t);a&&a.setValue(n)},getStateAnimationObservable:function(e){return r.objectGet(i.statesAnimations,[e])},getStateAnimationValue:function(e){var t=i.getStateAnimationObservable(e);return t.getValue()},setStateAnimationValue:function(e,t){var n=i.getStateAnimationObservable(e);n&&n.setValue(t)},setField:function(e,t){r.objectSet(i.fields,[e],t)}};return i}}),Ya=Do(function(){function e(e){var t=Yn[e],n=Wn.prototype.getSkinSupportedStates;return n.call({elementType:t})}var t,n,i=this;this.Events=t={SkinEditingStart:b.create(),SkinEditingFinish:b.create(),FieldWasCreated:b.create(),BindingToFieldEvent:b.create(),BindingToFieldRemovedEvent:b.create(),FieldsChangedEvent:b.create()},this.Flags=n={IsInEditingMode:k.create(!1,{valueChangeCallback:function(e){e?(i.Events.SkinEditingStart.fireNew(),i.IsInEditingBatch.start()):(i.IsInEditingBatch.finish(),i.Events.SkinEditingFinish.fireNew())}})},this.IsInEditingBatch=Pe.create();var a,o;new Mt({idFunction:r.defaultNameFunction}),new Mt({idFunction:r.defaultIdFunction});this.bindPropertiesToField=function(e,n,i){Ki.UpdateBatch.executeWithActivation(function(){r.each(e,function(e,t){var a=t.instance,r=t.propertyName,s=t.propertyFieldName;a.setStyleBindingId(o.id),a.bindPropertyToField(r,s,n,i)})}),t.FieldsChangedEvent.fireNew()},this.unbindPropertiesFromField=function(e,n){Ki.UpdateBatch.executeWithActivation(function(){r.each(e,function(e,t){var i=t.instance,a=t.propertyName,r=t.propertyFieldName;i.unbindPropertyToField(a,r,n)})}),t.FieldsChangedEvent.fireNew()},this.isDuringEditing=function(){return i.Flags.IsInEditingMode.isTrue()},this.getCurrentInstance=function(){return i.isDuringEditing()?a:void 0},this.convertFieldsToTemplate=function(e,t){var n,i,a=e.structures[0],o=a.id,s=xa.create(e),l=r.deepCloneObject(e.customStatesProperties);if(t){var c=Ga.getStyleInformation(t);n=c.fields,i=c.statesAnimations}else n=e.fieldsToValues,i=e.statesAnimations;var u=e.fieldsToValues[r.getKeys(e.fieldsToValues)[0]];return s.eachStructure(function(e){if(e.elementProperties.styleBindingId){var t=r.deepCloneObject(e.elementProperties),a=t.styleBindingFields;if(a){var s={};r.eachEntry(a,function(e,t){r.eachEntry(t.properties,function(e){s[e]=!0})}),r.eachEntry(s,function(s){var c=ei[s];for(var d in u)if(Ei[d]){var g=t[s],f=void 0;if(r.each(a,function(i,a){var c=a.properties[s];if(c&&n[i]){c.boundToProperty&&(d===Ga.DefaultStateName?delete t[s]:r.objectRemove(l,[e.id,s,d,o]));var u=n[i][d],h=u.value;void 0!==h&&(c.boundToProperty?f=h:(f=r.quickExtend({},g,f),r.eachEntry(c.fields,function(e){var t={};t[e]=h,f=r.quickExtend({},f,t)})))}}),d!==Ga.DefaultStateName){var h=r.objectGet(l,[e.id,s,d,o]);h&&(f=r.extendValueWithDefaultValue(f,h.stateValue))}else f=r.extendValueWithDefaultValue(f,t[s]);if(void 0!==c.valueConverter&&void 0!==f&&null!==f)for(var p=r.asArray(c.valueConverter),m=0;mU&&i){var a=h(n,V.backgroundColor,"backgroundColor"+e,"backgroundColor",Ka.BackgroundColor,"transparent",Za.Colors);a&&e++}t++});var n=s(),i=1;E.eachStructure(function(e){var t=e.elementProperties.borderColor,a=e.elementProperties.lineColor;e.elementProperties.lineWidth;n&&n.id===e.id||!t&&!a||(f(e,T,"borderWidth")&&(n=e,S=p(e,V.borderColor,"borderColor","borderColor",Ka.SolidColor,b,["left","top","bottom","right"],void 0,_,Za.Colors,y),_=S?_+r.count(S):_),void 0!==n.elementProperties.lineWidth&&f(e,T,"lineWidth")&&(h(e,V.lineColor,"lineColor"+i,"lineColor",Ka.SolidColor,void 0,Za.Colors),h(e,V.lineWidth,"lineWidth"+i,"lineWidth",Ka.Pixels,void 0,Za.Border),i++))})}function d(){var e=1;E.eachStructure(function(t){var n=t.elementProperties.iconColor;n&&(h(t,V.iconColor,"iconColor"+e,"iconColor",Ka.SolidColor,void 0,Za.Colors),e++)});var t=1;E.eachStructure(function(e){var n=e.elementProperties.percentageWidget;n&&(p(e,V.percentageColor,"percentageColor","percentageWidget",Ka.SolidColor,xo,["color1","color2","color3"],void 0,t,Za.Colors),t++)})}function g(){var e=1,t=0;E.eachStructure(function(n){var i=n.elementProperties.backgroundOverlay;if(t>U&&i&&"transparent"!==i){var a=h(n,V.backgroundOverlay,"backgroundOverlay"+e,"backgroundOverlay",Ka.BackgroundColor,"transparent",Za.Colors);a&&e++}t++})}function f(e,t,n){var i=e.elementProperties;if(!xi.isUnifiedValue(i[n],0))return!0;var a=r.objectGet(t,[e.id,n]);if(a){var o=!1;for(var s in a){var l=a[s];if(O[s]&&!xi.isUnifiedValue(l[M].stateValue,0)){o=!0;break}}if(o)return!0}return!1}function h(e,t,n,i,a,o,s,l){var c=!1;if(l=r.valueOrDefault(l,r.returnValue),void 0!==e.elementProperties[i]){r.defaultEqualityComparer(e.elementProperties[i],o)||(r.objectSet(x,[n,Ga.DefaultStateName],{value:e.elementProperties[i]}),c=!0);var u=r.objectGet(T,[e.id,i]);if(u)for(var d in u){var g=u[d];if(z[d]&&g[M]){var f=r.extend({},g[M]);delete f.stateValue,r.isEmptyObject(f)||k[d]||(k[d]=r.cloneObject(f),k[d].easing="linear",k[d].useCustomExitAnimation=f.transitionInDuration!==f.transitionOutDuration),r.objectSet(x,[n,d],{value:l(g[M].stateValue,e,i,d)}),x[n][Ga.DefaultStateName]||(x[n][Ga.DefaultStateName]={value:o}),c=!0}}if(c){e.elementProperties.styleBindingFields||(e.elementProperties.styleBindingFields={}),r.each(O,function(e,t){x[n][t.name]||(x[n][t.name]={value:void 0,animation:void 0})});var h=m(e,t,x,n,a,s);if(r.objectSet(e.elementProperties,["styleBindingFields",h,"properties",i],{boundToProperty:!0,fields:{}}),n===h)return!0}return!1}}function p(e,t,n,i,a,o,s,l,c,u,d){if(l=l?l:xo,o=o?o:xo,d=d?d:ko,e.elementProperties[i]){for(var g={},f={},h=void 0!==c?c:1,p=0;p1?" "+(n+1):""),D[i.fieldName].options=r.deepCloneObject(V[e].options)})}),t.structures[0].type=Yn.skinHierarchyBox.name,t.styleVersion=r.uniqueID(),t.styleId=i,t.fieldsToData=D,t.categoriesData=A,t.fieldsToValues=x,t.statesAnimations=k,t},this.convertTemplateToSkinTemplateWithFields=function(e,t,n,a){a=r.extend({ignoreSizeAndPosition:!1},a);var o=a.ignoreSizeAndPosition,s=e.structures[0],l=s.type;return t=t?t:Yn[l].hasFeature(Qn.SkinElement)?l:Yn[l].skinTypeName,e=i.convertTemplateToField(e,t),{id:r.uniqueID(),structures:[{id:r.uniqueID(),type:t,elementProperties:{sizeAndPosition:o?void 0:s.elementProperties.sizeAndPosition,skinBinding:{type:qa.Inline,skinName:n?n:r.uniqueID(),index:0,hierarchy:e}}}]}}}),Qa={OpacitySlider:"OpacitySlider",ColorPicker:"ColorPicker",Slider:"Slider",NumericTextBox:"NumericTextBox",FontSelectionComboBox:"FontSelectionComboBox"},Ka=Be.addKeyAsField({BackgroundColor:{options:{}},Color:{options:{}},SolidColor:{options:{}},Number:{fieldVisualizer:Qa.NumericTextBox,options:{min:0,max:1/0}},Pixels:{fieldVisualizer:Qa.NumericTextBox,options:{min:0,max:1/0}},Font:{fieldVisualizer:Qa.FontSelectionComboBox,options:{}},BorderColor:{fieldVisualizer:Qa.ColorPicker,options:{}},LineColor:{fieldVisualizer:Qa.ColorPicker,options:{}},Opacity:{fieldVisualizer:Qa.OpacitySlider,options:{}},BorderWidth:{options:{min:0,max:20}},LineWidth:{options:{min:0,max:20}},Padding:{options:{min:0,max:20}},Roundness:{options:{min:0,max:1/0}},Shadow:{options:{min:0,max:1/0}},InnerShadow:{options:{min:0,max:1/0}},Glow:{options:{min:0,max:1/0}},InnerGlow:{options:{min:0,max:1/0}}},"name"),Za=Be.addKeyAsField({Colors:{title:"Colors",priority:1},Text:{title:"Text",priority:2},Border:{title:"Border",priority:3},Effects:{title:"Effects",priority:4},MoreOptions:{title:"More",priority:5}},"id"),Ja=Do(function(){function e(){w.clear(),x={},F={}}function t(e){if(E.removeField(e.id),!S.isFalse()&&ia.isElementVisible(e)&&!e.isType(Yn.page)){var t=e.childInstances;t=D.filterInstancesFromPushingReordring(t);var i=D.filterCeneteredInstances(t);Ja.recalaculateSiblingsAndParentAreas();var a=c(e),o=a.height-e.getNoneContentSize().height;r.unionAreas(u(t));t.orderBy(function(e){return c(e).top}),i.orderBy(function(e){return c(e).top});var s,l,d=D.createDependenciesGroups(i),g=d.instancesDependenciesMap,p=d.instancePressureGroups,m=(d.rootsInstances,{}),y=0,b=!1,C=0,P=-(1/0),w=!1,x=0;if(r.eachItem(t,function(e,t){var i=p[t.id];m[t.id]=void 0;var a=c(t),u=g[t.id];i&&(r.eachEntry(i,function(e,n){var i,o=n.instance,s=c(o),l=h(o)+m[o.id];n.isSticky(t)?i=l:a.top<=s.bottom+l+v&&(i=r.minValue([s.bottom+l+v-a.top,l])),void 0!==i&&0!==i&&(void 0!==m[t.id]?m[t.id]=r.maxValue([m[t.id],i]):m[t.id]=i)}),void 0!==m[t.id]&&m[t.id]<0&&r.eachEntry(i,function(e,n){var i,o=n.instance,s=c(o),l=h(o)+m[o.id];i=n.isSticky(t)&&0>=l?l:s.bottom+l+v-a.top,void 0!==i&&(m[t.id]=r.maxValue([m[t.id],i]))}),void 0===m[t.id]&&(m[t.id]=0)),m[t.id]=r.valueOrDefault(m[t.id],0);var d=m[t.id]+h(t);T.setField(t.id,d);var S=a.bottom+d,E=!1;if(t.isFillVertical()){var k=n(t);S>k&&(S=k)}E=a.height>I||a.bottom>3*o/4?o-a.bottom<=I:o-a.bottom<=I/2;var F=!1,D=0;a.top0&&(S+=D),(S>x||C>D)&&(x=S,b=F,C=D,x>y&&(s=t))):S>y&&S>x&&(y=S,s=t),!E||u&&0!==u.dependentInstancesArray.length?0!==d&&(d=a.bottom+d+v-o,d>P&&d>0&&(P=d,w=!1,l=t)):d>P&&(0!==d||!t.isFillVertical())&&(P=d,w=!0,l=t))}),P===-(1/0)&&(P=0),x>y&&(y=x),0>P&&y+v>o+P)if(s!==l)P=y-o+v;else{var k=c(s);o>y&&k.bottom>o&&(P=r.maxValue([P,y-o]),P>0&&(P=0))}var F=0;w?(F=P,y>=o-v&&0>F&&(F=0)):!(y>o-v)||s&&s.isFillVertical()||(F=y-(o-(b?0:v))),r.eachItem(t,function(e,t){void 0!==m[t.id]&&(t.hasFeature(Qn.HasLayout)&&t.hasVerticalLayout()||Xi.moveInstances(t,{top:c(t).top+m[t.id]-Xi.getRelativeArea(t).top}))});var A=a.height+F-e.getSize().height;if((0!==A||e.isFillVertical())&&e.parentInstance){var V=e.parentInstance;V.isType(Yn.page)||V.hasFeature(Qn.DataList)||Ja.requestPushing(e,A),e.isFillVertical()||Xi.setInstancesSize(e,{height:a.height+F},{preserveVerticalMargins:!0})}return A}}function n(e){var t=0;if(e.hasFeature(Qn.ExternalApp)&&e.isGrowingEnabled())t=Xi.getRelativeArea(e).top+(e.data.lastDocumentSize?e.data.lastDocumentSize.height:0);else if(p(e))t=Xi.getRelativeArea(e).top+e.contentHeight.getValue();else if(m(e))t=Xi.getRelativeArea(e).top+e.getContentSize().height;else if(e.isType(Yn.userBox)||e.isType(Yn.Tab)){var a=r.grep(e.childInstances,function(t){return!t.isVerticallyDocked(Gi.Layout.centered)&&!t.isVerticallyDocked(Gi.Layout.dockBottom)&&t.isInstanceVisible()&&c(e).bottom>c(t).top});t=r.maxValue(a,function(e){return e.isFillVertical()?n(e):i(e)})}else e.isType(Yn.TabsPanel)&&(t=n(e.getCurrentItem()));return t+e.getNoneContentSize().height}function i(e){var t=r.valueOrDefault(T.getField(e.id),0);return c(e).bottom+t}function a(e,t){var n=e.parentInstance;d(e,t?t:void 0),E.setField(n.id,n)}function o(){var e=ta.getCurrentPageId();x[e]=!0;var t=ta.getCurrentPage(),n=t.getDescendingInstances(!0);n=r.grep(n,function(e){return e.isInstanceVisible()&&(!e.isContent()||!1)&&e.getSize()}),s(n)}function s(e){r.eachItem(e,function(e,t){l(t,Xi.getRelativeArea(t))})}function l(e,t,n){var i=e.hasFeature(Qn.HasGrowableContent);n?(w.setField(e.id+"instanceArea",t),w.setField(e.id+"margin",e.getPropertyValue("margin")),i&&w.setField(e.id+"contentHeight",e.contentHeight.getValue())):(w.setFieldIfAbsent(e.id+"instanceArea",t),w.setFieldIfAbsent(e.id+"margin",e.getPropertyValue("margin")),i&&w.setFieldIfAbsent(e.id+"contentHeight",e.contentHeight.getValue()))}function c(e){var t=w.getField(e.id+"instanceArea");return t?t:(l(e,Xi.getRelativeArea(e)),w.getField(e.id+"instanceArea"))}function u(e){var t=[];return r.eachItem(e,function(e,n){t.push(c(n))}),t}function d(e,t){t=r.valueOrDefault(t,0);var n=e.getSize();n&&(F[e.id]=r.maxValue([n.height+t,0]))}function g(e){var t=F[e.id];return t}function f(e){return w.getField(e.id+"margin")}function h(e){var t=g(e);if(void 0===t){if(e.isFillVertical())return 0;t=e.getSize().height}return t-c(e).height}function p(e){return!!(e.hasFeature(Qn.HasRichContent)||e.hasFeature(Qn.ExternalApp)&&e.isGrowingEnabled()||e.isType(Yn.SkinButtonElement))}function m(e){return!(!e.isType(Yn.PostsList)&&!e.isType(Yn.TagCloud))}var v=20,y=110,I=150;this.Events={ContentPushed:b.create()};var S=k.createConditionalPositive(),P=k.create(!0);this.Flags={PushWhenIntersectWithRow:P,EnablePushing:S},this.PushingMinMargin=y;var w=C.create(),E=C.create(),T=C.create(),x={},F={};this.initialize=function(){Ta.Flags.IsInMobileContext.valueChangedEvent.bind(function(e){S.setValue(!e,"mobile")})},this.supportsPreCalculationOfDiffHeights=xo,this.clearLastSavedPositions=e,this.executePushing=function(){if(T.clear(),S.isTrue()&&!E.isEmpty()){for(ie.disableOperationsRecording("pushing"),ur.startRenderingBatch();!E.isEmpty();){var e=E.getValues().orderByDesc(function(e){return e.getPropertyValue("order")});r.eachItem(e,function(e,n){E.hasField(n.id)&&t(n)})}ur.finishRenderingBatch(),ie.enableOperationsRecording("pushing")}},this.requestPushing=function(e,t){D.canInstancePush(e)&&(Gi.isInLayoutContentUpdate()?a(e,t):ur.performOnLayoutUpdate(function(){a(e,t),Ja.executePushing()},e.id+"requestPushing"))},this.recalaculateSiblingsAndParentAreas=function(){var e=ta.getCurrentPage();if(!S.isFalse()&&e&&e.isInstanceVisible()){var t=e.id;x[t]||(Gi.isInLayoutContentUpdate()?o():Gi.layoutUpdateBatch.whenFinished(o,"recalaculateSiblingsAndParentAreas"+t))}},this.getInstanceAreaData=c,this.setInstanceAreaData=l,this.getInstanceRequestedHeight=g,this.isInstancePushable=function(e){return e.canPush()&&(!e.isFillVertical()||m(e)||p(e))};var D=Do(function(){function e(t){if(!t.isFillVertical())return!0;if(t.isType(Yn.Tab)||t.isType(Yn.TabsPanel)||p(t)||m(t))return!0;if(t.isType(Yn.userBox)){var n=r.grep(t.childInstances,function(t){return e(t)});return n.length>0}return!1}function t(e){return!e.hasFeature(Qn.HasLayout)||!e.isVerticallyDocked(Gi.Layout.centered)&&!e.isFillVertical()&&c(e).top=a.center.top&&r.areasIntersectsHorizontal(i,a,{left:1,right:1})&&(t.dependentInstances[n.id]=n,t.descendingDependentInstances[n.id]=n,o[n.id]=r.valueOrDefault(o[n.id],{}),o[n.id][t.id]=t)})});for(var l=e.length-1;l>0;l--){var c=e[l],u=o[c.id];u&&r.eachEntry(u,function(e,t){var n=o[t.id];n&&r.eachEntry(n,function(e,n){u[n.id]&&u[n.id].area.bottom<=t.area.bottom&&(delete u[n.id].dependentInstances[c.id],delete u[n.id])})})}r.eachEntry(a,function(e,t){t.dependentInstancesArray=r.getValues(t.dependentInstances).orderBy(function(e){return Ja.getInstanceAreaData(e).top})});var d=[];return r.eachItem(e,function(e,t){o[t.id]&&0!==r.count(o[t.id])||(d.push(t),delete o[t.id])}),r.eachEntry(a,function(e,t){r.eachItem(t.dependentInstancesArray,function(e,n){void 0===t.stickyMap[n.id]&&(t.stickyMap[n.id]=i(n,t))})}),{instancesDependenciesMap:a,instancePressureGroups:o,rootsInstances:d}},this.filterCeneteredInstances=function(e){return r.grep(e,function(e){return!e.hasFeature(Qn.HasLayout)||!e.isVerticallyDocked(Gi.Layout.centered)})},this.filterInstancesFromPushingReordring=function(t){return r.grep(t,function(t){return t.isLocked.isFalse()&&t.isInstanceVisible()&&(!t.hasFeature(Qn.HasLayout)||e(t))})}})}),er=Do(function(){function e(e,t,n){e?t(e):n(V.create(A.UnknownError,"Failed Fetching List Content"))}function t(e,t){return!e||!C[t]}function n(e){return r.getOrInit(y,e,{widgets:{},items:{}})}function i(e,t,n){y[e]={version:t,widgets:{},items:n?y[e].items:{}}}function a(e,t,n,i){qn.fetchAllListsContent(e,function(e){er.refreshListsContent(e,t),n()},i)}function o(e,t,i){h(function(a,o){var c,d,g,f;r.eachEntry(e,function(e,t){var i=n(e),a=er.getAllItemsCache(!1,e);t.item&&void 0===i.items[t.item.alias]&&(c&&o(V.create(A.UnknownError,"Only one item is allowed per page request")),c={listId:t.listId,listName:e,itemInfo:{alias:t.item.alias}}),t.item&&t.item.remoteService&&(d=t.item.remoteService,g=t.item.alias,f=e),r.eachItem(t.widgets,function(t,n){var r=u(n);if(void 0===i.widgets[r]){var l=s(e,n,a);void 0!==l?i.widgets[r]=l:o(V.create(A.UnknownError,"Failed Fetching List Content"))}})}),d?d.execute().done(function(n){var a=rr.getListByName(f);e[f].items={},e[f].items[g]=n,e[f].item=g,l(e,e,t,i),a.refreshListItem(g)}):c?qn.fetchItemData(c.listId,c.listName,c.itemInfo,function(e){e=p(ir.ListItem,c.listName,e);var t=n(c.listName);t.items[e.urlAlias]=e.id,t.widgets={};var i=er.getAllItemsCache(!1,c.listName);i[e.id]=e,a()},o):a()},t,i)}function s(e,t,n){var i=t.type;return p(i,e,E[i].handleRequest(t,n))}function l(e,t,n,i){h(function(n){r.eachEntry(e,function(e,n){var i=t[e];c(e,i.version);var a=y[e],o=i.items;if(n.item&&i.item){var s=o[i.item];s=p(ir.ListItem,e,s),a.items[s.urlAlias]=s}r.eachItem(n.widgets,function(t,n){var s=u(n),l=i.widgets[n.elementId];l&&(l.items&&r.isNumeric(l.items[0])&&r.eachItem(l.items,function(e,t){l.items[e]=o[t]}),l=p(n.type,e,l),a.widgets[s]=l)})}),n()},n,i)}function c(e,t){var a=n(e),r=a.version;t!==r&&(i(e,t,!0),void 0!==r&&f(e))}function u(e){return JSON.stringify(E[e.type].hashFunction(e))}function d(){P.begin()}function g(){P.end()}function f(e){P.fireWhenFinished({name:e,event:w})}function h(e,t,n){d(),e(function(){t.apply(this,arguments),g()},function(){n.apply(this,arguments),g()})}function p(e,t,n){return E[e].enrichFetchedContent(rr.getListByName(t),n)}var m,v=ee.createLoggerFor("ListsCacheManager","Lists Cache Manager"),y={},C={},I={},S=!0,P=Pe.create(),w=b.createNamedEvents(),E={};this.initialize=function(e,t,n){S=!1,m=DynamicPageContent,t()},this.registerContentRequestHandler=function(e,t){E[e]=t},this.createListCacheUpdatedListener=function(e,t){return b.createEventListener({name:e,event:w},t)},this.loadDefaultListContent=function(e,t,n){var i={};i[e]=rr.getDefaultListIdByName(e),a(i,!0,t,n)},this.refreshListsContent=function(e,t){e&&0!==e.length&&r.eachEntry(e,function(e,n){er.refreshListContent(e,n,t)})},this.refreshListContent=function(e,t,n){i(e);var a=er.getAllItemsCache(n);a[e]=r.mapToDictionary(t,r.identity,r.defaultIdFunction)},this.loadListsContent=function(e,t,i){if(m)l(e,m,function(){m=void 0,t()},i);else if(S)o(e,t,i);else{var a,s,c,d=r.deepCloneObject(e);r.eachEntry(e,function(e,t){var i=n(e);if(t.version=i.version,r.eachItem(t.widgets,function(e,t){var n=u(t);void 0!==i.widgets[n]&&(t.cached=!0),t.filters&&(t.filters=r.filterKeys(t.filters,"serverFilters"))}),t.item){var o=i.items[t.item.alias];void 0!==o&&(t.item.version=o.modified),t.item.remoteService&&(a=t.item.remoteService,s=t.item.alias,c=e)}}),a?a.execute().done(function(n){var a=rr.getListByName(c);e[c].items={},e[c].items[s]=n,e[c].item=s,l(d,e,t,i),a.refreshListItem(s)}):qn.fetchListsContent(e,function(e){l(d,e,t,i)},i)}},this.fetchItemData=function(e,i,a,r,o,s){var l=s.defaultMode,c=er.getAllItemsCache(l,i),u=c[a.id];void 0!=u.content?r(u):qn.fetchItemData(e,i,a,function(e){e=p(ir.ListItem,i,e);var a=n(i);a.widgets={},c[e.id]=e,t(l,i)&&(a.items[e.urlAlias]=e.id),r(e)},o,s)},this.saveItems=function(e,i,a,o,s,l){h(function(o,s){qn.saveListItems(e,i,a,function(e){var s=l.defaultMode,c=t(s,i);e.listContent&&er.refreshListContent(i,e.listContent,s);var u=r.makeArray(e.itemIds),d=er.getAllItemsCache(s,i),g=n(i);r.eachItem(a,function(e,t){var n=u[e];if(null!==n){if(t=p(ir.ListItem,i,t),c&&void 0!==t.id&&d[t.id]){var a=d[t.id];a.urlAlias!==t.urlAlias&&delete g.items[a.urlAlias]}t.id=n,d[n]=r.quickExtend(d[n],t),c&&void 0!=t.content&&(g.items[t.urlAlias]=n)}}),g.widgets={},f(i),o(e)},s,l)},o,s)},this.deleteItems=function(e,i,a,o,s,l){h(function(o,s){qn.deleteListItems(e,i,r.makeArray(a),function(e){var a=l.defaultMode,s=t(a,i);e.listContent&&er.refreshListContent(i,e.listContent,a);var c=r.makeArray(e.deletedIds),u=er.getAllItemsCache(a,i),d=n(i);r.eachItem(c,function(e,t){if(u[t]){if(s){var n=u[t].urlAlias;delete d.items[n]}delete u[t]}}),d.widgets={},f(i),o(e)},s,l)},o,s)},this.fetchListWidgetContent=function(t,n,i,a){n.defaultMode&&!I[t]?er.loadDefaultListContent(t,function(){e(er.getListWidgetContent(t,n),i,a)},a):e(er.getListWidgetContent(t,n),i,a)},this.getListItemContent=function(e,t){var i=n(e).items[t];if(r.isNumeric(i)){var a=er.getAllItemsCache(!1,e);i=a[i]}return i},this.getAllItemsCache=function(e,t){return t?e?I[t]:C[t]||I[t]:e?I:C},this.getCurrentCache=function(){return y},this.clearListCache=function(e){delete y[e],delete C[e]},this.getListWidgetContent=function(e,t){var i=u(t);v.debug(function(){return"Request for hash: "+i});var a=n(e).widgets,r=a[i];if(!r&&S){v.warn("Cache Miss - Trying to fetch from all items");var o=er.getAllItemsCache(t.defaultMode,e);o&&(r=s(e,t,o),r&&(a[i]=r))}return v.debug(function(){return"Request Result: "+JSON.stringify(r)}),r}}),tr={LocalBlog:"LocalBlog",Store:"Store"},nr={},ir={TagCloud:"TagCloud",PostsList:"PostsList",ListItem:"ListItem",Categories:"Categories"},ar={},rr=Do(function(){function e(e){r.eachEntry(e,function(e,n){t.FieldNames[e]=n.name,t.FieldSortingRules[n.name]=n.sortingFunction})}var t=this,n={},i={},a={},o={},s={Id:{name:"id",sortingFunction:r.numbersComparer},Title:{name:"title",sortingFunction:r.stringsComparer},Content:{name:"content"},UrlAlias:{name:"urlAlias",sortingFunction:r.stringsComparer},Status:{name:"status",sortingFunction:r.numbersComparer},Tags:{name:"tags"},Categories:{name:"categories"},MetaData:{name:"metaData"}};t.FieldNames={},t.FieldSortingRules={},e(s),t.Events={ListCreated:b.createNamedEvents(),ListRemoved:b.createNamedEvents()},t.CommonFiltersNames={All:"All",Published:"Published",Drafts:"Drafts"},t.CommonFilters={NotCurrentItem:function(e){return Fe.Filters.NotFilter({fieldName:t.FieldNames.UrlAlias,value:e})},Published:Fe.Filters.EqualFilter({fieldName:t.FieldNames.Status,value:1}),Drafts:Fe.Filters.EqualFilter({fieldName:t.FieldNames.Status,value:0}),ByTag:function(e){return Fe.Filters.ListFilter({fieldName:t.FieldNames.Tags,value:e})},ByCategory:function(e){return Fe.Filters.ListFilter({fieldName:t.FieldNames.Categories,value:e})},ByTitle:function(e){return Fe.Filters.ContainsFilter({fieldName:t.FieldNames.Title,value:e})}},t.SupportedListTypes={page:"page",tag:"tag",category:"category"},t.getListByName=function(e){return a[e]},t.createOrGetListFlag=function(e){var t=o[e];return t||(t=k.create(!1),o[e]=t),t},t.getBlogId=function(){if(this.createOrGetListFlag(tr.LocalBlog).isTrue()){var e=this.getListByName(tr.LocalBlog);if(e){var t=e.getListInfo();if(t&&t.listId)return t.listId}}return null},t.initialize=function(e,n,a,o){a=r.valueOrDefault(a,To),i=e,r.isEmptyObject(n)?a():(r.eachEntry(n,function(e,n){var i=!ra.isExistingSite()||n.isTemplate===!0;t.registerNewListInstance(i,n)}),er.initialize(n,a,o))},t.RSSSettingController=m.create(function(){var e={getValue:function(){return $i.getValue("blogRssSettings",{enabled:!0})},isEnabled:function(){return e.getValue().enabled},extendSettings:function(t){e.setValue(r.quickExtend(e.getValue(),t))},setValue:function(e){$i.setValue("blogRssSettings",e)},setEnabled:function(t){e.extendSettings({enabled:t})}};return e}),t.getDefaultListIdByName=function(e){return i[e]},t.createSorter=function(e,t){return{sortBy:e,sortType:t?Dt.Asc:Dt.Desc}},t.registerListDefinition=function(n){r.eachEntry(n,function(n,i){var a=i;if(e(a.FieldDefinitions),a.CommonFilters&&r.eachEntry(a.CommonFilters,function(e,n){t.CommonFilters[e]=n,t.CommonFiltersNames[e]=e}),void 0===i.Icons)throw Error("List Definition for: "+n+", must have icons in order to display in pages panels");ar[n]=i.Icons,nr[n]=a})},t.getListPageTitle=function(e){var n=t.getListByName(e.masterPageListName||e.pageListName);return n.getListPageTitle(e)},t.getListNamesToCreate=function(){var e=[];return r.eachEntry(a,function(t,n){n.isListTemplate()&&e.push(t)}),e},t.deleteList=function(e){var i=t.getListByName(e);return ta.removePages([i.getListPageId()].concat(i.getListInfo().connectedDynamicPages)).done(function(){i.dispose(),t.createOrGetListFlag(e).setFalse(),delete n[e],delete a[e],t.Events.ListRemoved.fire(e)})},t.supportsCapitalLetterUrls=function(e){var t=ta.getPageData(e);return!(!t||t.masterPageType!==tr.Store)},t.registerNewListInstance=function(e,i){var o=i.listName,s=a[o]=Sr.create(e,i),l=i.listType;l?t.createOrGetListFlag(l).setTrue():t.createOrGetListFlag(o).setTrue(),n[o]=s.getListInfo();var c=i.connectedListPage;return r.eachItem(i.connectedDynamicPages,function(e,t){ta.PagesHierarchy.setParent(t,c)}),s}}),or=Do(function(){function e(e,n){t&&t.put(r.mapEntry(n,function(t,n){return{collectionName:e,iconName:n}}))}var t,n={};this.initialize=function(){or.registerIconsCollection(WzPublicIcons)},this.registerIconsCollection=function(t){t=r.quickExtend({name:void 0,fontClass:void 0,icons:{}},t);var i=t.name;n[i]=t,e(i,t.icons)},this.getPublicIconsCollection=function(){if(!t){var i=1;t=new Mt({idFunction:function(){return i++}}),r.eachEntry(n,function(t,n){e(t,n.icons)})}return t},this.applyIcon=function(e,t){var n=or.resolveIcon(t);n&&(e.each(function(){this.innerHTML="&#x{0};".format(n.code)}),e.addClass(n.fontClass))},this.createIconReference=function(e,t){return{collectionName:e,iconName:t}},this.resolveIcon=function(e){if(e){e=r.quickExtend({collectionName:void 0,iconName:void 0},e);var t=e.collectionName,i=e.iconName,a=n[t];if(a){var o=a.icons[i];if(o)return{fontClass:a.fontClass,code:o.code}}}}}),sr=Do(function(){function e(){return Settings.SocialDefaults||{}}function t(e,t){return t&&e&&(e=e.substr(e.lastIndexOf("/")+1)),e||""}var n=this;this.DefaultLinks=m.create(function(){return{facebook:{type:"facebook",title:"Facebook",url:n.getBrandFacebookUrl()},googlePlus:{type:"googlePlus",title:"Google+",url:n.getBrandGooglePlusUrl()},twitter:{type:"twitter",title:"Twitter",url:n.getBrandTwitterUrl()},linkedin:{type:"linkedin",title:"LinkedIn",url:"http://www.linkedin.com"},pinterest:{type:"pinterest",title:"Pinterest",url:"http://www.pinterest.com"},reddit:{type:"reddit",title:"Reddit",url:"http://www.reddit.com"},instagram:{type:"instagram",title:"Instagram",url:"http://www.instagram.com"},youtube:{type:"youtube",title:"Youtube",url:"http://www.youtube.com"},flickr:{type:"flickr",title:"Flickr",url:"http://www.flickr.com"},soundCloud:{type:"soundCloud",title:"SoundCloud",url:"http://www.soundcloud.com"},tripAdvisor:{type:"tripAdvisor",title:"Trip Advisor",url:"http://www.tripadvisor.com"},picasa:{type:"picasa",title:"Picasa",url:"http://www.picasa.com"},behance:{type:"behance",title:"Behance",url:"http://www.behance.com"},etsy:{type:"etsy",title:"Etsy",url:"http://www.etsy.com"},tumblr:{type:"tumblr",title:"Tumblr",url:"http://www.tumblr.com"},dribbble:{type:"dribbble",title:"Dribbble",url:"http://www.dribbble.com"},vimeo:{type:"vimeo",title:"Vimeo",url:"http://www.vimeo.com"},vk:{type:"vk",title:"VK",url:"http://www.vk.com"},renren:{type:"renren",title:"Renren",url:"http://www.renren.com"},weibo:{type:"weibo",title:"Weibo",url:"http://www.weibo.com"}}}),this.Types={Facebook:"facebook",GooglePlus:"googlePlus",Twitter:"twitter",Linkedin:"linkedin",Pinterest:"pinterest",Youtube:"youtube",Reddit:"reddit",Instagram:"instagram",Tumblr:"tumblr",SoundCloud:"soundCloud",Behance:"behance",TripAdvisor:"tripAdvisor",Dribbble:"dribbble",Flickr:"flickr",Picasa:"picasa",Etsy:"etsy",Vimeo:"vimeo",Vk:"vk",Renren:"renren",Weibo:"weibo"};var i,a,o=f.create(function(){i=new Mt({idFunction:function(e){return e.id}});var e=n.getAllLinks();r.eachEntry(e,function(e,t){var n={id:t.type,iconType:t.type,title:t.title,link:{url:t.url,type:Ge.Web}};i.put(n)}),a=zt.create(i)});this.getSocialLinksCollection=function(){return o.execute(),i},this.getSocialLinksCollectionObservable=function(){return o.execute(),a},this.getLink=function(e){return r.quickExtend({},n.DefaultLinks.getValue()[e],$i.getValue(e+"SocialLinkId"))},this.setLink=function(e,t,n){$i.setValue(e+"SocialLinkId",t,{onSuccess:n,onError:To})},this.getAllLinks=function(){var e={};return r.eachEntry(sr.Types,function(t,n){e[n]=sr.getLink(n)}),e},this.getBrandTwitterUrl=function(n){return t(e().TwitterLink,n)},this.getBrandFacebookUrl=function(n){return t(e().FacebookLink,n)},this.getBrandGooglePlusUrl=function(n){return t(e().GooglePlusLink,n)},this.getBrandTwitterFeedAppId=function(){var t=e();return t.TwitterFeedAppId||""}}),lr=Do(function(){function e(e){var n=e._navigation;return n||(t(e),n=new i[e._navigationTypeName](e),e._navigation=n),n}function t(e){var t=e.deactivatingEventListenersGroup;t.clear(),b.createEventListener(Hi.Events.ViewModeChanged,function(){e.close({animate:!1})}).addToGroup(t)}var n=g.extend("NavigationController",{init:function(e){this.isOpened=k.create(!1),this.deactivatingEventListenersGroup=b.createEventListenersGroup(),this.data={},this._navigationTypeName=e,this._navigation=void 0},replaceNavigation:function(e){var t,n=this;n.isOpened.isTrue()&&(t=r.quickExtend({},n.lastOptions,{animate:!1}),n.close({animate:!1})),this._navigation=void 0,this._navigationTypeName=e,t&&n.open(t)},open:function(t){var n=this;if(n.isOpened.isFalse()){t=r.quickExtend({animate:!0,disableDeactivation:!1,disableLink:!1,pages:ta.NavigatablePagesInformation,pagesHierarchy:ta.NavigatableHierarchy,animationCompleteCallback:To,selectedPageId:ta.getCurrentPageId()},t),n.lastOptions=t;var i=e(n);i.open(t),t.disableDeactivation||n.deactivatingEventListenersGroup.activateAll(),n.isOpened.setTrue()}},close:function(t){var n=this;if(n.isOpened.isTrue()&&!n.inClosing){n.deactivatingEventListenersGroup.deactivateAll(),n.inClosing=!0,t=r.quickExtend({animate:!0,animationCompleteCallback:To},t);var i=e(n);i.close(t),n.isOpened.setFalse(),delete n.inClosing}},remove:function(){this.close({animate:!1})}}),i={};this.registerNavigationDefinition=function(e,t){i[e]=t},this.getNavigation=function(e){return i[e]},this.getNavigations=function(){return i},this.createNavigationController=function(e){return new n(e)}}),cr=Do(function(){function e(){q.connectObservableCollection(C.CurrentSideBarPageSectionsObserver,{filterFunction:t}),R.connectObservableCollection(C.CurrentMainPageSectionsObserver,{filterFunction:t})}function t(e){return Ta.Flags.IsInMobileContext.isTrue()?!e.isMobileHide:!e.isDesktopHide}function i(){r.eachItem(w,function(e,t){t(h)})}function a(){w.length>0?l():c()}function o(e){var t=e.getItems(),n=r.mapEntry(t,function(e){return e.instance});return n.orderBy(function(e){return e.getCalculatedOrder()}),r.eachItem(n,function(t,n){e.updateItemFields(n.id,{index:t+1}),_.updateItemFields(n.id,{index:t+1})}),n}function s(){var e=p.$scrollableForRead.scrollTop();if(void 0!==A&&r.isBetween(e,A-v,A+v))return!1;A=void 0;for(var t,n=T.length-1;n>=0;n--){var i=T[n],a=ia.getElementAbsoluteOffset(i),o=0;if(n>0){var s=ia.getElementSize(T[n-1]);o=s.height*y}var l=ia.getElementSize(i),c=Math.min(l.height*y,o);if(a.top-c0&&(t=T[0]),h!==t?(h=t,!0):!1}function l(){if(!f){p=r.getScrollingController(),F=0;var e=r.uniqueID();p.$scrollableForRead.on("scroll."+e,function(){k||s()&&i()}),s(),i(),m.activateAll(),f={unbind:function(){p.$scrollableForRead.off("scroll."+e)}}}}function c(){f&&(f.unbind(),m.deactivateAll(),f=void 0,h=void 0,A=void 0,k=!1)}function u(e){return e.isMainSection()?N:H}function d(e){e=r.asArray(e),C.UpdateBatch.start(),r.eachItem(e,function(e,t){if(!_.getItem(t.id)&&t.isInstanceVisible()){var n=b.createEventListenersGroup(),i=u(t);b.createEventListener(t.propertiesChanged,function(e){var n=e.sectionName,a=e.menuHide,o=e.order,s=e.isVisibleInMode;if(n||a||o||s){C.UpdateBatch.start(),o&&(V=!0);var l=!1,c={};if(n&&(c.title=n.value,l=!0),a){var u=r.valueOrDefault(a.value,{});c.isDesktopHide=u.desktop===!0,c.isMobileHide=u.mobile===!0,l=!0}s&&(c.isVisibleInMobile=s,l=!0),l&&(i.updateItemFields(t.id,c),_.updateItemFields(t.id,c)),C.UpdateBatch.finish()}}).addToGroup(n),P[t.id]=n,n.activateAll();var a=r.valueOrDefault(t.getPropertyValue("menuHide"),{}),o={id:t.id,title:t.getPropertyValue("sectionName"),instance:t,isDesktopHide:a.desktop===!0,isMobileHide:a.mobile===!0};i.put(o),_.put(o)}}),V=!0,C.UpdateBatch.finish()}function g(e){e=r.asArray(e),r.eachItem(e,function(e,t){var n=P[t];n&&(n.disposeAll(),delete P[t])}),C.UpdateBatch.start(),N.remove(e),H.remove(e),_.remove(e),V=!0,C.UpdateBatch.finish()}var f,h,p,m,v=50,y=.5,C=this,I={},S={},P={},w=[],E=[],T=[],x=[],k=!1,F=0,A=void 0,V=!1,B=fe.createSingleTargetClass("first-section first-side-bar-section"),L=fe.createSingleTargetClass("last-section last-side-bar-section"),M=fe.createSingleTargetClass("first-section first-main-section"),O=fe.createSingleTargetClass("last-section last-main-section"),z={comparerFunction:r.createFieldsEqualityComparer(["title","index","isDesktopHide","isMobileHide"])},_=new Mt(z);this.CurrentPageSections=_;var N=new Mt(z);this.CurrentMainPageSections=N,this.CurrentMainPageSectionsObserver=zt.create(N);var R=new Mt(z);this.CurrentVisibleMainPageSectionsObserver=zt.create(R);var H=new Mt(z);this.CurrentSideBarPageSections=H,this.CurrentSideBarPageSectionsObserver=zt.create(H);var q=new Mt(z);this.CurrentVisibleSideBarPageSectionsObserver=zt.create(q),this.LastSections={},this.UpdateBatch=Pe.create({batchStartCallback:function(){_.beginUpdate(),N.beginUpdate(),H.beginUpdate()},beforeFinishingCallback:function(){if(V){if(V=!1,T=o(N),x=o(H),E=r.merge(r.merge([],T),x),x.length>0){var e=x[0],t=x[x.length-1];B.setTarget(e.$element),L.setTarget(t.$element),C.LastSections[lo.SideBar].setValue(t)}else C.LastSections[lo.SideBar].setValue(void 0);if(T.length>0){var n=T[0],i=T[T.length-1];M.setTarget(n.$element),O.setTarget(i.$element),C.LastSections[lo.MainContent].setValue(i)}else C.LastSections[lo.MainContent].setValue(void 0)}},batchFinishCallback:function(){N.endUpdate(),H.endUpdate(),_.endUpdate()}}),this.initialize=function(){Ta.Flags.IsInMobileContext.valueChangedEvent.bind(function(){q.beginUpdate(),R.beginUpdate(),R.disconnectObservableCollection(),q.disconnectObservableCollection(),e(),R.endUpdate(),q.endUpdate()}),r.eachEntry(lo,function(e,t){C.LastSections[t]=D.createReferenceObject()}),e(),ta.Events.PageChanging.bind(function(e,t){if(e!==t){C.UpdateBatch.start();var n=I[e];n&&g(r.getKeys(n));var i=I[t];i&&d(r.getValues(i)),C.UpdateBatch.finish()}}),ta.Events.PageDeleted.bind(function(e){var t=I[e];t&&(delete I[e],r.eachEntry(t,function(t){var n=S[t];n&&delete n[e]}))}),Hi.Events.ViewModeChanged.bind(a),Ta.Events.AfterSwitchBetweenDevices.bind(function(){c(),i(),a(),i()});var t=0;m=b.createEventListenersGroup();var n;b.createEventListener(ji.Events.ScrollingStartedEvent,function(e){A=void 0,k=!0,n&&clearTimeout(n),t++;var a=e.getParents(!0),o=r.findFirst(a,function(e,t){return t.hasFeature(Qn.PageSection)});o&&o!==h&&(h=o,i())},{activationCallback:function(){t=0}}).addToGroup(m),b.createEventListener(ji.Events.ScrollingFinishedEvent,function(e){if(t>0&&(t--,n&&clearTimeout(n),0===t&&k)){var a=e.getParents(!0),o=r.findFirst(a,function(e,t){return t.hasFeature(Qn.PageSection)});o&&o!==h&&(h=o,i()),n=setTimeout(function(){f&&(k=!1,o?(A=p.$scrollableForRead.scrollTop(),o!==h&&(h=o,i())):s()&&i()),n=void 0},100)}}).addToGroup(m)},this.getSectionsByPageLayoutPart=function(e){var t=function(){switch(e){case lo.MainContent:return C.CurrentMainPageSections;case lo.SideBar:return C.CurrentSideBarPageSections}}();return t?r.map(r.getValues(t.getItems()),function(e){return e.instance}):[]},this.moveSection=function(e,t){var n=t?t.elementType:void 0;if(n!==Yn.FooterElement){if(ie.beginAtomicBatch(!0),Ui.beginReorderingBatch(),Ki.UpdateBatch.start(),t){var i=t.getPropertyValue("order");e.setPropertyValue("order",i+.1)}else e.setPropertyValue("order",0);Ki.UpdateBatch.finish(),Ui.endReorderingBatch(),ie.endAtomicBatch()}},this.getCurrentPageOrderedSections=function(){return E},this.getCurrentPageMainOrderedSections=function(){return T},this.getCurrentPageSideBarOrderedSections=function(){return x},this.getPrevSection=function(e){if(e){var t=e.$element.prev();return 1===t.length&&t.hasClass("design-element")?n(t):void 0}},this.addSectionInstance=function(e){var t=ta.getCurrentPage();r.objectSetIfUndefined(I,t.id,r.returnEmptyObject),I[t.id][e.id]=e,r.objectSetIfUndefined(S,e.id,r.returnEmptyObject),S[e.id][t.id]=t,d(e)},this.removeSectionInstance=function(e){var t=S[e.id];t&&(delete S[e.id],r.eachEntry(t,function(t){var n=I[t];n&&delete n[e.id]})),g(e.id)},this.addSectionScrollListener=function(e){l(),e(h),w.push(e)},this.removeSectionScrollListener=function(e){w.removeItem(e),0===w.length&&c()},this.getNonHeaderFooterSectionIds=function(){return r.mapEntry(this.CurrentPageSections.getItems(),function(e){var t=e.instance;return t.isType(Yn.HeaderElement)||t.isType(Yn.FooterElement)?void 0:t.id})},this.getMainSectionFromOffset=function(e){var t=C.getCurrentPageMainOrderedSections();return r.findFirst(t,function(t,n){return r.isInsideArea(ia.getElementArea(n,!0),e)})},this.getLastMainSection=function(){var e=C.getCurrentPageMainOrderedSections();return e[e.length-1]},this.getFirstMainSection=function(){var e=C.getCurrentPageMainOrderedSections();return e[0]},this.getLastContentMainSection=function(e){e=r.quickExtend({ignoreMarketingSection:!1},e);var t=e.ignoreMarketingSection,n=r.grep(C.getCurrentPageMainOrderedSections(),function(e){return e.isMasterPageElement.isFalse()}),i=n[n.length-1];return t&&i&&i.elementType===Yn.BuiltBySectionElement&&(i=n[n.length-2]),i},this.getFirstContentMainSection=function(){var e=r.grep(C.getCurrentPageMainOrderedSections(),function(e){return e.isMasterPageElement.isFalse()});return e[0]},this.getLastSideBarSection=function(){var e=C.getCurrentPageSideBarOrderedSections();return e[e.length-1]},this.getFirstSideBarSection=function(){var e=C.getCurrentPageSideBarOrderedSections();return e[0]}}),ur=Do(function(){function e(){ta.PageChangingOperation.finish()}this.startRenderingBatch=function(){ur.startReadWrite(),wn.ReadWriteScope.start(),Ui.beginReorderingBatch(),ji.HierarchyChangedUpdateBatch.start(),ia.PageRearrangementBatch.start(),Gi.LayoutContentBatch.start(),pa.ViewPortChangeBatch.start(),Gi.ElementsFramesUpdateBatch.start(),cr.UpdateBatch.start(),ia.UpdateBatch.start(),Gi.beginLayoutUpdateBatch(),Wn.InstancesInitializationBatch.start(),ia.VisibilityUpdateBatch.start(),Ki.UpdateBatch.start()},this.finishRenderingBatch=function(e){e=r.valueOrDefault(e,To),Ki.UpdateBatch.finish(),ia.VisibilityUpdateBatch.finish(),Wn.InstancesInitializationBatch.finish(),Gi.endLayoutUpdateBatch(),ia.UpdateBatch.finish(),Ui.endReorderingBatch(),cr.UpdateBatch.finish(),Gi.ElementsFramesUpdateBatch.finish();var t="rendering"+r.weakID();ie.disableOperationsRecording(t),Ui.beginReorderingBatch(),Gi.LayoutContentBatch.finish(),Gi.beginLayoutUpdateBatch(),pa.ViewPortChangeBatch.finish(),Ui.endReorderingBatch(),Gi.endLayoutUpdateBatch(),ia.PageRearrangementBatch.finish(),ji.HierarchyChangedUpdateBatch.finish(),e(),wn.ReadWriteScope.finish(),ur.finishReadWrite(),ie.enableOperationsRecording(t)},this.startModeRenderingBatch=function(){yo.CreationRequests.activate(),ur.startRenderingBatch()},this.finishModeRenderingBatch=function(){ur.finishRenderingBatch(),yo.CreationRequests.executeOperations(),yo.CreationRequests.deactivate()},this.startPageRenderingBatch=function(){ta.PageRenderingOperation.start(),Di.Flags.SavingRecordEnabled.setFalse("PageRenderingBatch"),yo.CreationRequests.activate(),ta.PageChangingOperation.start(),ur.startRenderingBatch()},this.finishPageRenderingBatch=function(){Ki.clearMouseOverState(),ur.finishRenderingBatch(e),yo.CreationRequests.executeOperations(),yo.CreationRequests.deactivate(),ta.PageRenderingOperation.finish(),Di.Flags.SavingRecordEnabled.setTrue("PageRenderingBatch")},this.startReadWrite=function(){wn.PendingReadOperations.activate(),wn.PendingWriteOperations.activate()},this.finishReadWrite=function(){wn.ReadWriteScope.isActive()||Gi.layoutUpdateBatch.whenFinished(function(){for(;!wn.PendingReadOperations.isEmpty()||!wn.PendingWriteOperations.isEmpty();)wn.PendingReadOperations.executeOperations(),wn.PendingWriteOperations.executeOperations()},"finishReadWrite"),wn.PendingReadOperations.deactivate(),wn.PendingWriteOperations.deactivate()},this.performOnFramesLayoutUpdade=function(e,t){Pe.whenAllFinished([Gi.ElementsFramesUpdateBatch,Gi.layoutUpdateBatch,ia.UpdateBatch],e,t)},this.performUpdateOnRenderingFinished=function(e,t){ia.PageRearrangementBatch.whenFinished(e,t)},this.performOnLayoutUpdate=function(e,t){Pe.whenAllFinished([Gi.layoutUpdateBatch,ia.UpdateBatch],e,t)},this.performOnLayoutVisibilityUpdate=function(e,t){Pe.whenAllFinished([Gi.layoutUpdateBatch,ia.VisibilityUpdateBatch,ia.UpdateBatch],e,t)},this.performLayoutOrderUpdate=function(e,t){Pe.whenAllFinished([Gi.layoutUpdateBatch,Ui.OrderingBatch,ia.UpdateBatch],e,t)},this.performVisibilityUpdate=function(e,t){ia.VisibilityUpdateBatch.whenFinished(e,t)},this.requestWriteOperation=function(e,t){wn.PendingWriteOperations.requestOperation(e,t)},this.requestReadOperation=function(e,t){wn.PendingReadOperations.requestOperation(e,t)},this.requestIndpendentWriteOperation=function(e,t){ur.performUpdateOnRenderingFinished(function(){ur.requestWriteOperation(e,t)},t)},this.requestIndpendentReadOperation=function(e,t){ur.performUpdateOnRenderingFinished(function(){ur.requestReadOperation(e,t)},t)}}),dr=Do(function(){function e(e,n,i){window.open(e+n+i,"_blank",t)}var t="toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=550, height=420";this.share=function(t,n,i){n=encodeURIComponent(n);var a="",o="";switch(i&&(o="&"+r.generateQueryString(i)),t){case"facebook":a="http://www.facebook.com/sharer.php?u=";break;case"twitter":a="https://twitter.com/intent/tweet?url=";break;case"googlePlus":a="https://plus.google.com/share?url=";break;case"linkedin":a="https://www.linkedin.com/shareArticle?mini=true&url="}e(a,n,o)}}),gr=Do(function(){function e(){return{imageData:{id:1155,imagePath:"494358407/494358407.jpg",thumbPath:"494358407/494358407_thumb.jpg",imageWidth:1340,imageHeight:784,title:"494358407",description:null,category:1,storageServer:61,ownerID:null,albumID:101,scaledVersions:[{size:1e3,suffix:"_1000"},{size:200,suffix:"_200"},{size:400,suffix:"_400"},{size:600,suffix:"_600"},{size:800,suffix:"_800"}]},backgroundColor:{color:"rgb(255, 255, 255)"}}}function t(){return{videoId:"badHUNl2HXU",videoType:$e.Youtube,videoUrl:"https://youtu.be/badHUNl2HXU",videoImageUrl:"https://i.ytimg.com/vi/badHUNl2HXU/hqdefault.jpg"}}function n(e){var t={BackgroundImages:"image",BackgroundTextures:"image",DefaultImage:"image",DefaultVideo:"video",GalleryImages:"image",GalleryVideos:"video",BlogPageImage:"image",PostPageImage:"image"};r.eachEntry(ct,function(n,i){e[i]||(e[i]={type:t[i],items:[]})})}var i,a=this;this.initialize=function(){var e=Settings.PresetAssets;if(e)try{i=JSON.parse(e)}catch(t){}i||(i={}),n(i)},this.getPresetAssets=function(e){return e?i[e]:i},this.getPresetAsset=function(n){var i,r=a.getPresetAssets(n);if(r&&(i=r.items[0],!i)){var o=r.type;"image"===o?i=e():"video"===o&&(i=t())}return i},this.getDefaultIcon=function(){return this.getPresetAsset(ct.DefaultImage).imageData}}),fr=Do(function(){function e(e){var n=t[e];return n||(n=t[e]={loadPromise:r.Deferred(),isFetchedOnce:!1,isInFetching:!1}),n}var t={};te.on("structure",function(t){var n=t.id,i=t.structure,a=e(n);a.loadPromise.resolve(i),a.isInFetching=!1,a.isFetchedOnce=!0}),this.loadStructure=function(n,i,a,r){var o,s=e(n);if(!s.isFetchedOnce&&!s.isInFetching){s.isInFetching=!0;var l=J.resolveAssetUrl(i);c.getScriptWithValidation(l,function(){return"resolved"!==s.loadPromise.state()}).fail(function(){s.loadPromise.reject()})}return o=s.loadPromise.promise(),a&&o.done(a),o.fail(function(){r&&r(),delete t[n]}),o}}),hr=Do(function(){function e(){var e=[];return r.eachEntry(n,function(t){e.push(n[t])}),e}var t={},n={};this.initialize=function(){b.createEventListener(ra.SiteSavedEvent,function(){t=r.cloneObject(n),n={}}).activate(),b.createEventListener(ra.BeforeSavingSiteEvent,function(){for(var e=r.getKeys(t),i=0;i1&&n.push(rr.SupportedListTypes.page,e),{url:{masterListPageId:t.getListInfo().connectedListPage,suffixFragments:n},type:Ge.Pages}},getCurrentDisplayedItem:function(){return this._currentDisplayedItem.getValue()},getListPageTitle:function(e){var t=this;if(e.pageListName){var n=t.getCurrentDisplayedItem();return n&&n.title?n.title:e.title}if(e.masterPageListName){var i=e.pageTitle||e.title;return r.withObject(rr.SupportedListTypes,function(e){switch(t.currentListType.getValue()){case e.tag:i+=" | "+r.capitalizeFirstLetter(t.currentDisplayedTag.getValue());break;case e.category:i+=" | "+r.capitalizeFirstLetter(t.currentDisplayedCategory.getValue());break;default:var n=t.currentDisplayedPage.getValue();i+=n>1?" | Page "+n:""}}),i}},getAvailableFields:function(){return this._availableFields.getValue()},normalizeItem:function(e){if(e){var t=this.getAvailableFields();if(t){var n={};return r.eachEntry(t,function(t,i){i.mappingFunction&&(n[i.name]=i.mappingFunction(e))}),n}}return e},hasRemoteDataSource:function(){return this._remoteDataSource?!0:void 0},getRemoteDataSource:function(){return this._remoteDataSource}});return er.registerContentRequestHandler(ir.ListItem,{enrichFetchedContent:function(e,t){var n;return e.hasRemoteDataSource()&&(n=e),e._listFieldsConverter.getterMapper(t,!0,n)[0]}}),a.create=function(e,t){return new a(e,t)},a}();!function(){function e(e,n){return{id:encodeURI(e.category),category:e.category,count:+e.count,link:t(e.category,n)}}function t(e,t){return{url:{masterListPageId:t.connectedListPage,suffixFragments:[rr.SupportedListTypes.category,e]},type:Ge.Pages}}var n=m.create(function(){return{category:{type:oi.title.type,title:"Category Name",name:"category"},count:{type:oi.index.type,title:"Category Count",name:"count"},link:{type:oi.link.type,title:"Category Link",name:"link"}}});Sr.extendPrototype({getCategoriesFields:function(){return n.getValue()},fetchCategories:function(e,t){er.fetchListWidgetContent(this.getListName(),{type:ir.Categories},function(t){e(t.items)},t)}}),er.registerContentRequestHandler(ir.Categories,{hashFunction:function(e){return{type:e.type,includeDrafts:e.includeDrafts||!1,defaultMode:e.defaultMode}},handleRequest:function(e,t){var n={};return r.eachEntry(t,function(t,i){(e.includeDrafts||1===i.status)&&r.eachItem(i.categories,function(e,t){r.getOrInit(n,t,{category:t,count:0}).count++})}),{items:r.getValues(n).orderBy(r.identity,r.createFieldsComparer([{sortBy:"count",sortType:Dt.Desc},{sortBy:"category",comparer:r.stringsComparer}]))}},enrichFetchedContent:function(t,n){var i=t.getListInfo();return n.items=r.mapItem(n.items,function(t){return e(t,i)}),n}})}(),function(){function e(e){return encodeURI(e)}function t(t,n){return{id:e(t.tag),tag:t.tag,count:+t.count,link:i(t.tag,n)}}function n(e){return{url:e.connectedListPage,type:Ge.Pages}}function i(e,t){return{url:{masterListPageId:t.connectedListPage,suffixFragments:[rr.SupportedListTypes.tag,e]},type:Ge.Pages}}var a=m.create(function(){var e={Tag:"tag",Count:"count",Link:"link"};h.create(e)});Sr.extendPrototype({getTagFields:function(e){var t=a.getValue();return e?t.query(function(e){return!e.commonOnlyField}):t.queryAll()},fetchTags:function(e,t){er.fetchListWidgetContent(this.getListName(),{type:ir.TagCloud},function(t){e(t.items)},t)},getCurrentItemTags:function(){var t=this,a=t.getListInfo(),o=[],s=t.getCurrentDisplayedItem(),l=s.isDummy(),c=s.tags;return r.eachItem(c,function(t,r){o.push({id:e(r),tag:r,link:l?n(a):i(r,a)})}),o},getMatchedTags:function(e,t){t=r.quickExtend({tagsToIgnore:{}},t);var n=t.tagsToIgnore,i=r.trim(e);return r.mapItem(er.getListWidgetContent(this.getListName(),{type:ir.TagCloud,includeDrafts:t.includeDrafts}).items,function(e){var t=r.trim(e.tag).toLowerCase();return!n[t]&&t.indexOf(i)>=0?t:void 0})}}),er.registerContentRequestHandler(ir.TagCloud,{hashFunction:function(e){return{type:e.type,includeDrafts:e.includeDrafts||!1,defaultMode:e.defaultMode}},handleRequest:function(e,t){var n={};return r.eachEntry(t,function(t,i){(e.includeDrafts||1===i.status)&&r.eachItem(i.tags,function(e,t){r.getOrInit(n,t,{tag:t,count:0}).count++})}),{items:r.getValues(n).orderBy(r.identity,r.createFieldsComparer([{sortBy:"count",sortType:Dt.Desc},{sortBy:"tag",comparer:r.stringsComparer}]))}},enrichFetchedContent:function(e,n){var i=e.getListInfo();return n.items=r.mapItem(n.items,function(e){return t(e,i)}),n}})}(),function(){function e(e,t){return function(n){var i=n.items;e._fetchedItems.syncrhonize(i),t({fetchedItems:i,totalCount:n.totalCount})}}Sr.extendPrototype({createView:function(e){return new t(this,e)}});var t=g.extend("ListView",{init:function(e,t){t=r.extend({filters:[],sorts:[]},t),this._list=e,this._fetchedItemsCollection=zt.create(this._fetchedItems=Mt.create()),this._filterFunction=Fe.getFiltersCompositeFunction(t.filters),this._listViewQuery=Pr.create().withFilters(t.filters).withSorts(t.sorts)},updateItems:function(e){var t=this,n=t._fetchedItems;n.beginUpdate(),e=r.asArray(e);var i=Fe.filterItems(e,t._filterFunction,{notPassedIdFunction:r.defaultIdFunction});i.passed.length>0&&n.put(i.passed),i.notPassed.length>0&&n.remove(i.notPassed),n.endUpdate()},removeItems:function(e){this._fetchedItems.remove(e)},fetchItems:function(t){t=r.quickExtend({from:0,to:1/0,onSuccess:To,onError:To},t);var n=this;wr.executeAsync(n._list,n._listViewQuery.between(t.from,t.to).withDefaultMode(t.defaultMode),e(n,t.onSuccess),t.onError)},bindTo:function(e){xe.connectObservableCollection(e,this._fetchedItemsCollection)},unbindFrom:function(e){xe.disconnectObservableCollection(e)}})}();var Pr=function(){var e=g.extend("ListQueryBuilder",{init:function(){this._filters=[],this._sorts=[]},_from:0,_to:1/0,getFilters:function(){return this._filters},getSorts:function(){return this._sorts},getFrom:function(){return this._from},getTo:function(){return this._to},isDefaultMode:function(){return this._isDefaultMode},andHasTag:function(e){return this._filters.push(rr.CommonFilters.ByTag(e)),this},andHasCategory:function(e){return this._filters.push(rr.CommonFilters.ByCategory(e)),this},andPublishedOnly:function(){return this._filters.push(rr.CommonFilters.Published),this},andDraftsOnly:function(){return this._filters.push(rr.CommonFilters.Drafts),this},andPinnedOnly:function(){return this._filters.push(rr.CommonFilters.Pinned),this},andFeaturedOnly:function(){return this._filters.push(rr.CommonFilters.Featured),this},andNotCurrentItem:function(e){return this._filters.push(rr.CommonFilters.NotCurrentItem(e)),this},between:function(e,t){return this._from=e,this._to=t,this},sortByDate:function(e){return this._sorts.push(rr.createSorter(rr.FieldNames.Date,e)),this},sortByPinned:function(e){return this._sorts.push(rr.createSorter(rr.FieldNames.Pinned,e)),this},withFilters:function(e){return this._filters=r.valueOrDefault(e,[]),this},withSorts:function(e){return this._sorts=r.valueOrDefault(e,[]),this},withDefaultMode:function(e){return this._isDefaultMode=e,this}});return e.create=function(){return new e},e.createPublishedItemsQuery=function(){return(new e).andPublishedOnly()},e}(),wr=Do(function(){this.executeAsync=function(e,t,n,i){var a=t.getFrom();er.fetchListWidgetContent(e.getListName(),{type:ir.PostsList,skip:a,take:t.getTo()-a,filters:t.getFilters(),sort:t.getSorts(),defaultMode:t.isDefaultMode()},n,i)},this.execute=function(e,t){var n=t.getFrom();return er.getListWidgetContent(e.getListName(),{type:ir.PostsList,skip:n,take:t.getTo()-n,filters:t.getFilters(),sort:t.getSorts(),defaultMode:t.isDefaultMode()})},this.executeCount=function(e,t){return this.execute(e,t).totalCount},er.registerContentRequestHandler(ir.PostsList,{hashFunction:function(e){return{type:e.type,filters:e.filters?r.filterKeys(e.filters,"serverFilters"):e.filters,sort:e.sort,skip:e.skip,take:e.take,defaultMode:e.defaultMode}},handleRequest:function(e,t){var n=Fe.filterItems(t,Fe.getFiltersCompositeFunction(e.filters)).passed,i=e.sort.clone();i.push(rr.createSorter(rr.FieldNames.Id)),n.sort(r.createFieldsComparer(i,{comparersMap:rr.FieldSortingRules}));var a=e.skip,o=e.skip+e.take,s=n.length;if(a>=s){var l=o-a;a=r.divideNoReminder(s-1,l)*l,o=a+l}return{items:n.slice(a,o),totalCount:s}},enrichFetchedContent:function(e,t){return t.items=e._listFieldsConverter.getterMapper(t.items),t}})}),Er={FloatLeft:1,FloatRight:2,Block:3},Tr=function(){var e={},t=void 0,n=g.extend("CKObjectType",{init:function(e,t){this._typeName=e,r.quickExtend(this,t)},getName:function(){return this._typeName},hasCustomLayout:ko,isResizable:xo,supportsFloating:xo,autoMaintainRatio:ko,hasAdjustableRatio:ko,getWidthHeightRatio:function(){return Me.Unknown},onDblClick:To,processForEditing:To,processForStoring:To,processContent:To,processForViewing:ko});return n.registerType=function(t,i){var a=new n(t,i);return e[t]=a,a},n.getFromCKObject=function(i){var a=i.getElement().attr("data-ck-object-type"),r=void 0;return a&&(r=e[a]),r||(t||(t=new n),r=t),r},n}(),xr=function(){var e=g.extend("CKObject",{init:function(e,t){this.$element=e,this._ckeditorController=t},getCKEditorController:function(){return this._ckeditorController},getElementType:function(){return Tr.getFromCKObject(this)},_synchronizeRatio:function(){var e=this.getElement(),t=this.getContentWrapperElement(),n=r(".ck-ratio",e);0===n.length&&(n=r("
").prependTo(t));var i=this.getWidthHeightRatio();n.css({paddingBottom:i===Me.Unknown?"":i+"%"}),t.addClass("lock-ratio")},_processContent:function(){var e=this.getElementType();e.autoMaintainRatio()&&this._synchronizeRatio(),this.getContentWrapperElement().addClass(e.getName()),e.processContent(this)},processForEditing:function(){this.$element.attr("contenteditable","false"),this._processContent(),this.getElementType().processForEditing(this)},processForStoring:function(){this.$element.removeAttr("contenteditable"),this.getElementType().processForStoring(this)},processForViewing:function(){return this._processContent(),this.getElementType().processForViewing(this)},setLayout:function(t){var n=this.$element;n.removeClass("ck-object-layout-right ck-object-layout-left ck-object-layout-block"),t===Er.FloatLeft?n.addClass("ck-object-layout-left"):t===Er.FloatRight?n.addClass("ck-object-layout-right"):n.addClass("ck-object-layout-block"),this._ckeditorController&&this._ckeditorController.contentChangedEvent.fireNew(),e.LayoutChangedEvent.fireNew(this)},deleteObject:function(){this._ckeditorController&&this._ckeditorController.removeContentObject(this)},handleDblClick:function(e){this.getElementType().onDblClick(e,this)},getWidth:function(){return parseInt(this.$element.attr("data-ck-width"))},setWidth:function(t){this.$element.attr("data-ck-width",t).css("width",t+"%"),this.getContentWrapperElement().css("width",t+"%"),e.SizeChangedEvent.fireNew(this)},setWidthHeightRatio:function(t){this.getElementType().hasAdjustableRatio()&&(this.$element.attr("data-ck-ratio",r.adjustFraction(1/t*100,2)),this._synchronizeRatio(),e.SizeChangedEvent.fireNew(this))},getWidthHeightRatio:function(){var e=this.getElementType();return e.hasAdjustableRatio()?parseFloat(this.$element.attr("data-ck-ratio")):e.getWidthHeightRatio(this)},getLayout:function(){var e=this.$element;return e.hasClass("ck-object-layout-left")?Er.FloatLeft:e.hasClass("ck-object-layout-right")?Er.FloatRight:Er.Block},getAlignment:function(){var e=this.$element;return e.hasClass("ck-object-align-left")?Ke.Left:e.hasClass("ck-object-align-right")?Ke.Right:Ke.Centered},setAlignment:function(t){var n=this.$element;n.removeClass("ck-object-align-left ck-object-align-right"),t===Ke.Left?n.addClass("ck-object-align-left"):t===Ke.Right&&n.addClass("ck-object-align-right"),this._ckeditorController&&this._ckeditorController.contentChangedEvent.fireNew(),e.AlignmentChangedEvent.fireNew(this)},getElement:function(){return this.$element},getRatioElement:function(){var e=this._ratioElement;return void 0===e&&this.getElementType().autoMaintainRatio()&&(this._ratioElement=e=r(".ck-ratio",this.$element)),e},getContentElement:function(){var e=this._contentElement;return void 0===e&&(this._contentElement=e=r(".ck-object",this.$element)),e},getContentWrapperElement:function(){var e=this._contentWrapperElement;return void 0===e&&(this._contentWrapperElement=e=r(".ck-object-wrapper",this.$element)),e},insert:function(t,n){var i,a=this._ckeditorController;i=t.is("li")?n===Ne.Below?"appendTo":"prependTo":n===Ne.Below?"insertAfter":"insertBefore",this.getElement()[i](t),!this.hasCustomLayout()&&t.is("li")&&this.setLayout(Er.Block),a.contentChangedEvent.fireNew(a),e.ParentChanged.fireNew(this)},getToolbarPanel:function(){return this.getElementType().toolbarPanel},isResizable:function(){return this.getElementType().isResizable()},hasCustomLayout:function(){return this.getElementType().hasCustomLayout()}});return e.LayoutChangedEvent=b.create(),e.AlignmentChangedEvent=b.create(), e.ParentChanged=b.create(),e.SizeChangedEvent=b.create(),e.getFromElement=function(t,n){return t.hasClass("ck-object-wrapper")?t=t.parent():t.hasClass("ck-object")&&(t=t.closest(".ck-object-container")),new e(t,n)},e.equalityComparer=function(e,t){return e&&t?e.$element[0]===t.$element[0]:e===t},e.processCKObjectsForViewing=function(t){var n=!1;return r(".ck-object-container",t).each(function(){e.getFromElement(r(this)).processForViewing()&&(n=!0)}),n},e.processElementsForEditing=function(t){r(".ck-object-container",t).each(function(){e.getFromElement(r(this)).processForEditing()})},e.isCKElement=function(e){return e.hasClass("ck-object-container")},e}();!function(){var e="ck-object-image";Tr.registerType(e,{enableResize:!0,lockRatio:!0,autoMaintainRatio:xo,getWidthHeightRatio:function(e){var t=e.getContentElement(),n=t.attr("data-image-width"),i=t.attr("data-image-height");if(n&&i){var a=parseInt(n),o=parseInt(i);return r.adjustFraction(1/(a/o)*100,2)}return Me.Unknown},onDblClick:To,processForStoring:function(e){var t=e.getContentElement();t.removeAttr("data-cke-saved-src"),t.find(".image-ratio-lock").remove()},toolbarPanel:void 0})}(),function(){var e={Youtube:"youtube",Vimeo:"vimeo"},t="ck-object-video",n=r.includeTemplatesGroup("rich-content-video",{ContentElement:"content-element",VideoIframe:"video-iframe"});Tr.registerType(t,{enableResize:!0,lockRatio:!0,autoMaintainRatio:xo,hasAdjustableRatio:xo,onDblClick:To,toolbarPanel:void 0,processForEditing:function(e){var t=e.getContentElement(),n=t.attr("data-video-image");n&&t.css({backgroundImage:"url({0})".format(n),backgroundSize:"cover"}),t.find(".rich-content-video-iframe").remove()},processForStoring:function(e){e.getContentElement().removeAttr("style")},processForViewing:function(t){var i=t.getContentElement(),a=i.attr("data-video-id"),o=i.attr("data-video-type"),s="";switch(o){case e.Youtube:s=ye.getVideoEmbeddingUrl(a);break;case e.Vimeo:s=Ce.getVideoEmbeddingUrl(a)}var l=i.find(".rich-content-video-iframe");return 0===l.length&&(l=r.useTemplate(n.VideoIframe).appendTo(i)),l.attr("src",s),!0}})}(),function(){var e="ck-object-hr";Tr.registerType(e,{enableResize:!1,supportsFloating:ko,isResizable:ko,hasCustomLayout:xo,processForStoring:function(e){e.getContentElement().removeAttr("data-cke-saved-src")},toolbarPanel:void 0})}(),function(){var e={Date:{name:"date",sortingFunction:r.datesComparer},CoverImage:{name:"coverImage"},Blurb:{name:"blurb",sortingFunction:r.stringsComparer},Author:{name:"author",sortingFunction:r.stringsComparer},Pinned:{name:"pinned",sortingFunction:r.numbersComparer},Featured:{name:"featured",sortingFunction:r.numbersComparer},CoverImageDescription:{name:"coverImageDescription",sortingFunction:r.stringsComparer}},t={title:"title",date:"date",author:"author",blurb:"blurb",content:"content",coverImage:"coverImage",coverImageDescription:"coverImageDescription"},n=m.create(function(){return{order:{type:oi.index.type,title:void 0,name:"order",hideInDynamicPage:!0},title:{type:oi.title.type,title:void 0,name:"title"},content:{type:oi.content.type,title:void 0,name:"content"},itemLink:{type:oi.link.type,title:void 0,name:"itemLink"}}});rr.registerListDefinition({LocalBlog:{Icons:["blog","elements-category-post-fields"],FieldDefinitions:e,CommonFilters:{Pinned:Fe.Filters.EqualFilter({fieldName:e.Pinned.name,value:!0}),Featured:Fe.Filters.EqualFilter({fieldName:e.Featured.name,value:!0})},getDefaultItem:void 0,getAvailableFields:function(){var e=h.create(t);return e.queryAll()},createFieldsConverter:function(){return{setterMapper:function(e){var t={};return t[rr.FieldNames.Date]=e.date,t[rr.FieldNames.CoverImage]=e.coverImage,t[rr.FieldNames.Blurb]=e.blurb,t[rr.FieldNames.Author]=e.author,t[rr.FieldNames.Pinned]=e.pinned,t[rr.FieldNames.Featured]=e.featured,t[rr.FieldNames.CoverImageDescription]=e.coverImageDescription,t},getterMapper:function(e,t){return{date:t[rr.FieldNames.Date],coverImage:t[rr.FieldNames.CoverImage],blurb:t[rr.FieldNames.Blurb],author:t[rr.FieldNames.Author],pinned:t[rr.FieldNames.Pinned],featured:t[rr.FieldNames.Featured],coverImageDescription:t[rr.FieldNames.CoverImageDescription]}}}},getMandatoryFields:function(){return r.deepCloneObject(n.getValue())}}})}();var kr={FieldSets:{Products:{productName:{iconClass:r.getIconClass("tool-category-text",dn.Font),type:"hideableText",title:"Product Name",name:"productName",isDefaultField:!0,demoDataTitle:"Title",initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:20,font:Na.createThemeFontBinding("body2"),fontColor:{variation:4,mainColor:2},tagName:We.H1}},mappingFunction:function(e){return e.name}},productBanner:{iconClass:r.getIconClass("fa-bookmark-o",dn.Font),type:"hideableText",title:"Banner",name:"productBanner",isDefaultField:!0,demoDataTitle:"Banner",initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:20,font:Na.createThemeFontBinding("body2"),fontColor:{variation:4,mainColor:2}},skinHierarchyBox:{formattedText:"Banner"}},mappingFunction:function(e){return r.valueOrDefault(e.banner,"")}},productImage:{iconClass:r.getIconClass("fa-picture-o",dn.Font),type:"image",title:"Featured Image",name:"productImage",hideInDynamicPage:!0,isDefaultField:!0,mappingFunction:function(e){var t=e.images;return t&&t.length>0?{imageUrl:{imagePath:t[0].source,ownerID:null,storageServer:0,useImageProxy:!0,resizeOnImageProxy:!1,preferredSizeFunction:function(e){for(var n=t[0].sizes,i=n[n.length-1],a=0;ae){i=n[a];break}return i&&i.url?Settings.ImageProxy+i.url:Settings.ImageProxy+t[0].source}}}:{imageUrl:{}}}},productImages:{iconClass:r.getIconClass("blog-cover-image",dn.Font),type:"imageGallery",title:"Product Images",name:"productImages",isDefaultField:!0,template:"StoreGalleryTemplate",mappingFunction:function(e){return r.mapItem(e.images,function(t,n){var i,a;return t.sizes&&t.sizes.length>0?(i=t.source,a=t.sizes[0].url):i=a=t.source,{id:fa.generateWebsiteId(),index:n+1,image:{imageUrl:{imageHighRes:i,imagePath:a,ownerID:null,storageServer:0,useImageProxy:!0,resizeOnImageProxy:!1,imageThumbnails:t.sizes}},alt:e.description||e.name||""}})}},productDescription:{iconClass:r.getIconClass("fa-align-justify",dn.Font),type:"hideableText",title:"Description",demoDataTitle:"Description",name:"productDescription",isDefaultField:!0,initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:15,font:Na.createThemeFontBinding("body2"),fontColor:{variation:3,mainColor:2}}},mappingFunction:function(e){return r.valueOrDefault(e.description,"")}},productPrice:{iconClass:r.getIconClass("fa-usd",dn.Font),type:"hideableText",title:"Discount Price",isLabelEditable:!1,demoDataTitle:Cr.getCurrencySymbol()+7.49,name:"productPrice",isDefaultField:!0,initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:15,font:Na.createThemeFontBinding("body2"),fontColor:{variation:4,mainColor:2}}},mappingFunction:function(e){return null!==e.price?Cr.formatPrice(e.price):""}},productBasePrice:{iconClass:r.getIconClass("fa-usd",dn.Font)+" strikeout",type:"StorePrice",title:"Regular Price",name:"productBasePrice",isDefaultField:!0,demoDataTitle:Cr.getCurrencySymbol()+9.99,initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:15,font:Na.createThemeFontBinding("body2"),fontColor:{variation:4,mainColor:2}}},mappingFunction:function(e){return e.basePrice?Cr.formatPrice(e.basePrice):""}},productDiscountPercentage:{iconClass:r.getIconClass("fa-percent",dn.Font),type:"hideableText",demoDataTitle:"20% off",title:"Discount Percentage",name:"productDiscountPercentage",initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:15,font:Na.createThemeFontBinding("body2"),fontColor:{variation:4,mainColor:2}}},isDefaultField:!0,mappingFunction:function(e){return e.discountPercentage?e.discountPercentage+"% off":""}},title:{type:"title",title:void 0,name:"title",hideInDynamicPage:!0,mappingFunction:function(e){return e.name}},urlAlias:{type:"title",title:void 0,name:"urlAlias",hideInDynamicPage:!0,mappingFunction:function(e){return e.id}},breadCrumb:{type:"breadcrumb",template:"BreadCrumbElement",title:void 0,iconClass:r.getIconClass("fa-angle-left",dn.Font)}}}};!function(){var e={Date:{name:"date",sortingFunction:r.datesComparer},CoverImage:{name:"coverImage"},Blurb:{name:"blurb",sortingFunction:r.stringsComparer},Pinned:{name:"pinned",sortingFunction:r.numbersComparer},Featured:{name:"featured",sortingFunction:r.numbersComparer},CoverImageDescription:{name:"coverImageDescription",sortingFunction:r.stringsComparer}};rr.registerListDefinition({Store:{Icons:["store","elements-category-post-fields"],FieldDefinitions:e,CommonFilters:{},getEmptyItem:function(){var e={};return r.eachEntry(kr.FieldSets.Products,function(t,n){e[n.name]=""}),e},getDefaultItem:void 0,getAvailableFields:function(){return kr.FieldSets.Products},createFieldsConverter:function(){return{setterMapper:function(e){var t={};return t[rr.FieldNames.Date]=e.date,t[rr.FieldNames.CoverImage]=e.coverImage,t},getterMapper:function(e,t){return{date:t[rr.FieldNames.Date],coverImage:t[rr.FieldNames.CoverImage]}}}},getMandatoryFields:function(){return{}}}})}(),function(){ea.registerRequirementProcessor({process:function(e,t,n){var i={},a=r.grep(e,function(e){return e.require===ea.LoadingRequirements.ListsContent.name}),o=!0;r.eachItem(a,function(e,t){var n=t.requestContent,a=n.listName,s=rr.getListByName(a).getListInfo();if(s){var l=r.getOrInit(i,a,{listId:s.listId,widgets:[]});o=!1,n.itemContent?l.item=n.itemContent:l.widgets.push(n.widgetContent)}}),o?t():er.loadListsContent(i,function(){t()},function(e){V.getExceptionType(e)===A.EntityNotExistsException?n(e):(Ve.handleAjaxException(e),t())})}})}();var Fr=Do(function(){function e(e){var t;if(""===e)t=ta.getMainPageId();else{var n=ta.findPageByUrlFragment(e);n?t=n.id:Zi.navigateToPage(ta.getMainPageId())}void 0!==t&&Zi._changePage(t)}var t;this.initialize=function(e){t=r.valueOrDefault(e,ta.getMainPageId())},this.handle=function(n,i){var a=n[0]||"";return i?mn.getHash()?(a=r.trimPrefix(a,"!"),e(a)):Zi._changePage(t):e(a),!0}}),Dr=Do(function(){function e(e,t,n){t.currentDisplayedItemAlias=e,ea.performOnPageLoading(ea.LoadingRequirements.ListsContent.create({listName:t.getListName(),itemContent:{alias:e,remoteService:n}})),ea.performWhenRequirementsLoaded(function(){t.refreshListItem(e)})}function t(e,t){var n=1,i=rr.SupportedListTypes.page,a=i;if(e.length>1){var o=e[1].toLowerCase();r.withObject(rr.SupportedListTypes,function(i){switch(o){case i.page:var r=e[2];r&&Ae.isPositive(r)&&(n=+r);break;case i.tag:var s=e[2];void 0!==s&&(t.currentDisplayedTag.setValue(s),e[3]===i.page&&(r=e[4],r&&Ae.isPositive(r)&&(n=+r)),a=i.tag);break;case i.category:var l=e[2];void 0!==l&&(t.currentDisplayedCategory.setValue(l),e[3]===i.page&&(r=e[4],r&&Ae.isPositive(r)&&(n=+r)),a=i.category)}})}var s=t.currentListType.getValue();t.currentListType.setValue(a);var l=t.currentDisplayedPage.setValue(n);s&&(s!==i||a!==i||l)&&ea.performWhenRequirementsLoaded(function(){t.primaryListChanged.fireNew()})}this.handle=function(n){var i,a=n[0]||"";if(i=""===a?ta.getPageData(ta.getMainPageId()):ta.findPageByUrlFragment(a,!1)){var r=i.id;if(i.masterPageListName){var o=rr.getListByName(i.masterPageListName),s=n[1];if(s&&!rr.SupportedListTypes[s.toLocaleLowerCase()])if(r=o.getDynamicPageId(s),o.hasRemoteDataSource()){var l=o.getRemoteDataSource();e(s,o,l.getDetailItem(s))}else e(s,o);else t(n,o);return Zi._changePage(r),!0}if(i.pageListName){var c="preview"===n[1];if(!c){var u=rr.getListByName(i.pageListName);u.resetToDummyItem()}return Zi._changePage(r),!0}}return!1}}),Ar=Do(function(){this.handle=function(e,t){return t&&X.PageNotFound?(Zi.navigateToPage(ta.getMainPageId()),!0):!1}}),Vr=Do(function(){this.initialize=function(e){Zi.registerUrlHandlers([Ar,Dr,Fr],e)}}),Br=Do(function(){this.createCssRules=function(e){var t={};return{rule:function(n,i){var a=t[n];a||(a=t[n]=r.rule("."+e+" "+n+" {}")),a.css(i)},prefixRule:function(n,i,a){var o=n+i,s=t[o];s||(s=t[o]=r.rule(n+"."+e+" "+i+" {}")),s.css(a)}}},this.calculateAdjustBrightnessSign=function(e,t,n){n=r.valueOrDefault(n,!1);var i=r.getCoordinateValue(e,_t.Brightness),a=r.adjustFraction(i+t,3),o=n?0>a:a>1;return o?-1:1}}),Lr=function(){function e(){var e=ji.getAllPageInstances();return r.mapEntry(e,function(e){return e.isFixed()&&ia.isElementVisible(e)?e:void 0})}return g.extend("CommonSlideNavigation",{init:function(e,t){function n(){var e=!i._fixedElementsData;t.close({animate:e,restoreScrolling:!1})}var i=this;i.controller=t;var a=i.panel=Wt.usePanel(e),r=[];i.ignoredOutsideElementsFilters=r;var o=t.deactivatingEventListenersGroup;b.createEventListener(ta.Events.PageChanging,function(){n()}).addToGroup(o),b.createEventListener(a.requestDeactivationEvent,function(e){e?n():t.close()}).addToGroup(o)},open:function(t){t=r.quickExtend({animate:!0,disableDeactivation:!1,disableLink:!1,animationCompleteCallback:To,closeAnimationCompleteCallback:To},t);var n,i=this,a=i.panel,o=Eo.getFooterHeight(),s=0,l=o;n=function(){var e=r.calculateWindowSize();return{width:e.width,height:e.height-o}};var c=n(),u=r.quickExtend({},t.navigationProperties,{pages:t.pages,pagesHierarchy:t.pagesHierarchy,selectedPageId:r.evaluateWhenFunction(t.selectedPageId),disableLink:t.disableLink,maxSize:c,instanceId:t.instanceId}),d=r("body");a.$element.appendTo(d),a.activate(u),d.on("touchmove.slide-navigation",function(e){e.preventDefault()});var g,f=b.createEventListener(r.getWindowSizeEvent(),function(){f.dispose(),f=void 0,i.closePanel(!1),i.open(r.quickExtend({},t,{animate:!1,animationCompleteCallback:To}))}),h=k.create(!1,{valueChangeCallback:function(){t.animationCompleteCallback(),f&&f.activate()}}),p=r.getScrollOffset(),m={animate:t.animate,direction:u.direction,pushContent:u.pushContent,duration:u.animationSpeed,scrollingOffset:p,frameTop:s,frameBottom:l,placeHolderSize:c,animationCallback:function(){h.setTrue()}};if(u.pushContent){var v=Hi.getBodyElementWrapper(),y=e();y.length>0&&(g=[],r.eachItem(y,function(e,t){var n=t.$element,i=r("
").insertAfter(n);g.push({$element:n,$placeHolder:i,style:n.attr("style")});var a=n.css("top"),l=n.css("bottom");"auto"!==a&&0!==s&&n.css("top",parseInt(a)-s),"auto"!==l&&0!==o&&n.css("bottom",parseInt(l)-o),n.appendTo(v).addClass("animation-fixed")}))}var C=r.rememberScrolling(),I=ht.animate(a.$element,m),S=r.getScrollingController();S.$scrollableForWrite.scrollTop(0),S.$scrollableForWrite.scrollLeft(0);var P=b.createEventListenersGroup();i._fixedElementsData=g,t.disableDeactivation||a.deactivateOnClickOutside({ignoredElementsFilters:i.ignoredOutsideElementsFilters}),P.activateAll(),i.closePanel=function(e,n,i){P.disposeAll(),f&&(f.dispose(),f=void 0),I.close({animate:e,closingCallback:function(){g&&r.eachItem(g,function(e,t){t.$element.removeClass("animation-fixed").setStyleAttr(t.style),t.$element.insertBefore(t.$placeHolder),t.$placeHolder.remove()})},closeCallback:function(){i&&C.restore(),a.deactivate(),d.off(".slide-navigation"),n&&n(),t.closeAnimationCompleteCallback()}})}},close:function(e){e=r.quickExtend({animate:!0,animationCompleteCallback:To,restoreScrolling:!0},e),e.animationCompleteCallback=r.hookAfterMethod(e.animationCompleteCallback,function(){ia.invalidateAreas(r.getValues(ji.getAllPageInstances()),{updateSize:!1})}),this.closePanel(e.animate,e.animationCompleteCallback,e.restoreScrolling)}})}();!function(){lr.registerNavigationDefinition("SlideNavigation",Lr.extend("SlideNavigation",function(e){return{init:function(t){e.call(this,wo.Default,t)}}}))}(),function(){var e=Wt.createDeferredPanel(function(){return Mr.createPanel()});lr.registerNavigationDefinition("SlideNavigation2",Lr.extend("SlideNavigation2",function(t){return{init:function(n){t.call(this,e,n)}}}))}();var Mr=Do(function(){function e(e){var n=i[e];return n||(n=i[e]=Wt.createController(t(e))),n}function t(t){function i(){return g.makeItemsList({idFunction:r.defaultIdFunction,template:n.PageItem,itemAddedCallback:function(n){var i=n.$item,s=n.item,l=n.data,c=r(".hierarchy-box",i);c.buttonClick(function(){if(!P){P=!0;var n=a.currentActivationArgs,i=n.pagesHierarchy,l=300,c=r.Color(Ma.evaluateColorBinding(n.backgroundColor)),u=gn.getColorComponentValue(c,rt.L),d=.05,g=.5,h=g-u*(g-d);p.velocity({opacity:[h,0]},{duration:l-100,delay:100}),I=e(t+1);var m=I.$element;I.activate(r.quickExtend({},n,{pagesHierarchy:i.createSubHierarchy(s.id),requestBack:function(){P=!0,p.velocity({opacity:[0,h]},{duration:l}),o.addClass("during-animation"),m.addClass("in-animation").css({top:0,left:0,bottom:0,position:"absolute"}).velocity({left:[-C,0]},{duration:l,complete:function(){m.css({top:"",left:"",bottom:0,position:""}).removeClass("in-animation"),o.removeClass("during-animation"),P=!1,I.deactivate()}})}}));var v=I.requestDeactivationEvent.bind(function(e){P||a.requestDeactivation(e)});I.panelDeactivatedEvent.one(function(){v.unbind(),p.css({opacity:""}),o.removeClass("sub-panel-opened"),m.detach(),I=void 0}),o.addClass("during-animation sub-panel-opened"),m.appendTo(f).addClass("in-animation").css({top:0,right:"100%",bottom:0,position:"absolute"}).velocity({right:[0,"100%"]},{duration:l,complete:function(){m.css({top:"",left:"",bottom:0,position:""}).removeClass("in-animation"),o.removeClass("during-animation"),P=!1}})}}),l.$pageTitle=i.find(".page-title"),l.$titleContainer=r(".title-container",i)},itemUpdatedCallback:function(e,t){var n=e.item,i=e.data,o=a.currentActivationArgs,s=o.pagesHierarchy;if(e.$item.toggleClass("has-hierarchy",s.hasChildren(n.id)),o.disableLink)i.$lingWrapper&&(i.$titleContainer.unwrap(),delete i.$lingWrapper);else{var l=Zi.getPageFullHtmlUrl(n.id);if(i.$lingWrapper)t&&i.$lingWrapper.attr("href",l);else{var c=r("");c.addClass("internal-link"),c.click(function(){setTimeout(function(){a.requestDeactivation(!0)},0)}),c.attr("href",l);var u=i.$titleContainer;u.wrap(c),i.$lingWrapper=c}}t&&i.$pageTitle.text(n.title)}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}})}var a=Wt.createBaseController(),o=r.useTemplate(n.Panel,{level:t}),s=r(".side-bar",o),l=r(".header",o),c=r(".pages-container",o),u=r(".back-container",l),d=r(".close-icon-content",o),g=r(".pages-list",o),f=r(".panel-container",o),h=r(".panel-content",o),p=r(".panel-overlay",o);d.click(function(){a.requestDeactivation()});var m=fn.create(c,{scrollbarClass:"slide-scrollbar"});m.setMoveScrolling({enableHorizontalScrolling:!1}),a.associateScrollingView(m);var v,y,b,C,I,S=i(),P=!1,w=-.05,E=-.15,T=-.2;u.buttonClick(function(){var e=a.currentActivationArgs;e.requestBack()});var x;return r.quickExtend(a,{$element:o,defaultActivationArgs:{},onActivated:function(e){var n=e.fontSize;v=r.Color(Ma.evaluateColorBinding(e.fontColor)),y=r.Color(Ma.evaluateColorBinding(e.secondColor));var i=r.Color(Ma.evaluateColorBinding(e.backgroundColor)),a=r.evaluateWhenFunction(e.selectedPageId),c=Na.evaluateFontBinding(e.font),u=e.pages,g=e.pagesHierarchy;C=Math.min(e.width,e.maxSize.width);var f=Br.calculateAdjustBrightnessSign(i,E,!0),p=Br.calculateAdjustBrightnessSign(v,T,!0),m=gn.adjustBrightness(i,function(e){return Math.max(e+w*f,.1)}),I=gn.adjustBrightness(i,function(e){return e+E*f}),P=gn.adjustBrightness(v,function(e){return e+T*p});if(s.css("backgroundColor",m.toCSS()),d.css({color:v.toCSS()}),o.toggleClass("color-negative",-1===Br.calculateAdjustBrightnessSign(i,.2)).css({width:C}),h.css({color:v.toCSS(),fontSize:n,borderColor:I.toCSS(),fontFamily:null!==c?c:"",backgroundColor:i.toCSS()}),l.css({color:P.toCSS()}),0===t){x=r.valueOrCalculate(x,function(){return Br.createCssRules("slide-navigation-panel-2")});var k=e.spacing,F=k/2;x.rule(".page-title",{paddingTop:F,paddingBottom:F}),x.rule(".hierarchy-separator",{backgroundColor:v.toCSS()}),x.rule(".hierarchy-hover-overlay",{backgroundColor:y.toCSS()})}var D=xe.isObservableCollection(u)?u.getItems():r.mapToDictionary(u,r.identity,r.defaultIdFunction),A=r.mapItem(g.getRootIds(),function(e){return D[e]});S.setItems(A),b=S.items[a],b&&b.$item.addClass("state-selected").find(".page-title").css({color:y.toCSS()})},onDeactivated:function(){b&&b.$item.removeClass("state-selected").find(".page-title").css({color:""}),I&&I.deactivate()}}),a}var n={Panel:{group:"slide-navigation-panel-2-templates",name:"slide-navigation-panel-2-template",isSimple:!0},PageItem:{group:"slide-navigation-panel-2-templates",name:"page-item-template",isSimple:!0}};this.createPanel=function(){return e(0)};var i={}}),Or=function(){function e(e){e=r.quickExtend({},e);var n=e.positioningAlignments,i=e.positionHorizontalCallback,a=e.positionVerticalCallback,o=r.buildPositioningFunction(t);return r.eachItem(n.horizontals,function(e,t){var n={distance:t.distance,usageCallback:function(){i&&i(t.alignTo)}};o.alignHorizontally(t.side,t.alignTo,n)}),r.eachItem(n.verticals,function(e,t){var n={distance:t.distance,usageCallback:function(e){e.isPositioned||(t.side===it.Top?t.alignTo===it.Top?e.$element.css("height",e.positioningArea.height-e.relativeArea.top+e.positioningArea.top):e.$element.css("height",e.positioningArea.height-e.relativeArea.top+e.positioningArea.top-e.relativeArea.height):t.alignTo===it.Top?e.$element.css("height",e.relativeArea.top-e.positioningArea.top):e.$element.css("height",e.relativeArea.top-e.positioningArea.top+e.relativeArea.height)),a&&a(t.alignTo)}};o.alignVertically(t.side,t.alignTo,n)}),o}var t=function(){return ta.getCurrentPage().getArea(!0)},n={1:"down",2:"up",3:"right",4:"left"};return g.extend("CommonDropDownNavigation",{init:function(e,t,n){this.controller=n,this._ignoredOutsideElementsFilters=[".drop-down-navigation"],this._dropDownDesktopController=m.create(function(){return r.createDropPanelWindow(r.evaluateWhenFunction(e),{appendTo:ta.getPageBody(),isDraggable:!1,stackWithWindows:!1,placeInsideWindow:!1,hidingFunctionBeforeShowing:To,closeCallback:function(){n.close()}})}),this._dropDownMobileController=m.create(t);var i=n.deactivatingEventListenersGroup;b.createEventListener(ta.Events.PageChanging,function(){n.close()}).addToGroup(i)},open:function(t){t=r.quickExtend({animate:!0,disableDeactivation:!1,disableLink:!1,animationCompleteCallback:To,closeAnimationCompleteCallback:To,openCallback:To,isVertical:!1,mouseEnteredCallback:To,mouseLeaveCallback:To},t);var i=this;if(Ta.Flags.IsInMobileContext.isTrue()){var a=this._dropDownMobileController.get();a.open(i.getMobileProperties(t)),a.isOpened.once(!1,function(){i.controller.close()}),i.closingFunction=function(e){a.close(e)}}else{var o=this._dropDownDesktopController.getValue();o.close();var s=t.$element,l=t.closeAnimationCompleteCallback,c=k.createConditionalNegative({valueChangeCallback:function(e){e?t.mouseEnteredCallback():t.mouseLeaveCallback()}}),u=r.quickExtend(r.quickExtend({},t.navigationProperties),{isDropDown:!0,pages:t.pages,pagesHierarchy:t.pagesHierarchy,selectedPageId:r.evaluateWhenFunction(t.selectedPageId),disableLink:t.disableLink,instanceId:t.instanceId,customClickCallback:t.customClickCallback,mouseEnteredFlag:c}),d=this._ignoredOutsideElementsFilters.clone();d.push(s);var g,f,h,p;if(t.isVertical)p="right"===u.orientation?[{side:it.Right,alignTo:it.Left,distance:u.horizontalDistance},{side:it.Left,alignTo:it.Right,distance:u.horizontalDistance}]:[{side:it.Left,alignTo:it.Right,distance:u.horizontalDistance},{side:it.Right,alignTo:it.Left,distance:u.horizontalDistance}],g={horizontals:p,verticals:[{side:it.Top,alignTo:it.Top,distance:u.verticalTop},{side:it.Bottom,alignTo:it.Bottom,distance:u.verticalTop}]},f=function(e){v=e};else{var m=u.horizontalPosition;p={side:m,alignTo:m},m===it.Left?p.distance=u.horizontalLeft:m===it.Right&&(p.distance=u.horizontalRight),g={horizontals:[p],verticals:[{side:it.Top,alignTo:it.Bottom,distance:u.verticalDistance},{side:it.Bottom,alignTo:it.Top,distance:u.verticalDistance}]},h=function(e){v=e}}var v,y=e({positioningAlignments:g,positionHorizontalCallback:f,positionVerticalCallback:h});o.open(s,{positioningFunction:y,activationArgs:u,contextClass:"drop-down-navigation "+(t.isVertical?"vertical-orientation":"horizontal-orientation"),deactivateOnClickOutside:!t.disableDeactivation,ignoredElementsFilters:d,showingFunction:function(e,i){e.addClass("side-"+r.findKey(it,v).toLowerCase()),it.Bottom!==v&&it.Top!==v||e.addClass("horizontal-"+r.findKey(it,u.horizontalPosition).toLowerCase()),i.positioned&&i.positioned(),t.openCallback(e),t.animate&&0!==u.animationSpeed?ft.slideIn(e,{duration:u.animationSpeed,direction:n[v],easing:"swing",complete:function(){t.animationCompleteCallback(),t.isTargetFixed&&r.usePositioningFunction(y,e,t.$element,i)}}):t.animationCompleteCallback()}});var C,I=b.createEventListener(r.getWindowSizeEvent(),function(){var e=o.panel.use(),t=e.$dropPanelWrapper;r.usePositioningFunction(y,t,s,e)}).activate(),S=void 0;t.isTargetFixed&&(S=r.uniqueID(),C=r.getScrollingController(),C.$scrollableForRead.on("scroll."+S,function(){var e=o.panel.use(),t=e.$dropPanelWrapper;r.usePositioningFunction(y,t,s,e)})),i.closingFunction=function(e){I.dispose(),S&&C.$scrollableForRead.off("scroll."+S),o.close(),e.animationCompleteCallback(),l()}}},close:function(e){e=r.quickExtend({animate:!0,animationCompleteCallback:To},e),this.closingFunction(e)}})}();!function(){lr.registerNavigationDefinition("DropDownNavigation",Or.extend("DropDownNavigation",function(e){return{init:function(t){e.call(this,function(){return zr.createPanel()},function(){return lr.createNavigationController("SlideNavigation")},t)},getMobileProperties:function(e){var t=e.navigationProperties;return r.quickExtend({},e,{navigationProperties:{direction:t.mobileDirection,width:t.mobileWidth,spacing:t.spacing,pushContent:!1,height:t.mobileHeight,animationSpeed:t.animationSpeed,hierarchyOpened:t.hierarchyOpened,useHierarchy:t.useHierarchy,backgroundColor:t.backgroundColor,fontColor:t.fontColor,fontSize:t.fontSize,font:t.font}})}}}))}();var zr=Do(function(){function e(e){var n=a[e];return n||(n=a[e]=Wt.createController(t(e))),n}function t(t){function a(e){var t=r.findFirst(I.items);return t&&(e=Math.min(t.$item.outerHeight(),e)),e}function l(e,n){e&&(n?e.setTrue("drop-down-navigation-"+t):setTimeout(function(){e.setFalse("drop-down-navigation-"+t)},0))}function c(e){e=r.Color(e);var t=Br.calculateAdjustBrightnessSign(e,.12),n=gn.adjustBrightness(e,function(e){return e+.06*t}),i=gn.adjustBrightness(e,function(e){return e+.12*t});return{mainColor:e.toCSS(),hoverColor:n.toCSS(),selectedColor:i.toCSS()}}function u(e){var t={};return t[i]=e,t}function d(e,n,i,a,r,l){if(T.rule(".page-item > .item-block",u(e.mainColor)),l||(T.rule(".page-item.simple.state-selected > .item-block",u(e.selectedColor)),T.rule(".page-item.simple:hover > .item-block",u(e.hoverColor)),T.rule(".page-item.simple.opened > .item-block",u(e.hoverColor))),0===t){o.rule(".page-item",{paddingLeft:a+"px",paddingRight:a+"px"});var c=n/2;o.rule(".page-item > .item-block",{paddingTop:c+"px",paddingBottom:c+"px"}),l?(o.rule(".page-item.instance:first-child > .item-block",{paddingTop:0}),o.rule(".page-item.instance.last-item > .item-block",{paddingBottom:0}),o.rule(".page-item.instance:first-child > .item-block .sub-hierarchy-icon-container",{paddingBottom:c+"px"}),o.rule(".page-item.instance.last-item > .item-block .sub-hierarchy-icon-container",{paddingTop:c+"px"}),o.rule(".page-item.instance.last-item:first-child > .item-block .sub-hierarchy-icon-container",{paddingTop:0,paddingBottom:0})):o.rule(".page-item.simple.has-hierarchy .page-title",{maxWidth:i-40-2*a})}1===t&&(s.rule("> .content-container.right",{marginLeft:r+"px",marginRight:0}),s.rule("> .content-container.left",{marginLeft:0,marginRight:r+"px"}))}var g=Wt.createBaseController(),f=[],h=r.useTemplate(n.Panel,{level:t}),p=r(".pages-list",h),m=r(".border-box",h),v=r(".content-container",h);0===t&&h.on("mouseenter",function(){l(g.currentActivationArgs.mouseEnteredFlag,!0)}).on("mouseleave",function(){l(g.currentActivationArgs.mouseEnteredFlag,!1)});var y,b,C,I=p.makeItemsList({idFunction:r.defaultIdFunction,lastDisplayedItemClass:"last-item",itemCreationFunction:function(e,t){var i,a=g.currentActivationArgs,o=C==e.id,s=a.customClickCallback;if(a.useSkinButton){i=r.useTemplate(n.PageItemInstance);var l=i.find(".instance-content");t.data.$openContext=l;var c=a.createInstanceController(e);c.appendTo(l);var u=c.getInstance();E.push(u),s||u.setPropertyValue("urlAddress",{url:e.id,type:Ge.Pages}),u.instanceController.createdFlag.onceTrue(function(){if(u.setNeverSelectedInClick(!0),u.getSkinInstance().setNeverSelectedInClick(!0),o&&ji.performOnInstancesInitialization(u.id,function(){u.getSkinInstance().userSelect(!0)}),!b){var e=u.getSkinInstance().getInstancesByField("title")[0];if(e){var t=e.getPropertyValue("fontColor"),n=Ba.getElementTextStyle(e);!t&&n&&(t=n.color),t&&(t=Ma.evaluateColorBinding(t,!0));var i=e.getPropertyValue("fontSize");!i&&n&&(i=n.fontSize),h.css({color:t,fontSize:i+"px"}),b=!0}}}),u.showElement(),y||(y=c.getSize()),t.data.instanceController=c}else if(i=r.useTemplate(n.PageItem,e),t.data.$openContext=i,o&&i.addClass("state-selected"),t.data.$pageTitle=i.find(".page-title"),!a.disableLink&&!s){var d=r("");d.attr("href",Zi.getPageFullHtmlUrl(e.id));var f=r(".page-content",i);f.wrap(d),t.data.$lingWrapper=f.parent()}return i},itemUpdatedCallback:function(e,t){if(e.data.$pageTitle&&t){var n=e.item;e.data.$pageTitle.text(n.title),e.data.$lingWrapper&&e.data.$lingWrapper.attr("href",Zi.getPageFullHtmlUrl(n.id))}}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}}),S=!1,P=!1;I.onItemPartEvents("> .page-item .item-block","click",function(e,t,n){var i=g.currentActivationArgs;if(!i.disableLink){var a=i.customClickCallback;if(a)setTimeout(function(){g.requestDeactivation()},0),a(t.item.id);else{var r=t.dropPanelController;r&&P||setTimeout(function(){g.requestDeactivation()},0)}}P&&(n.stopPropagation(),n.preventDefault()),P=!1}),I.onItemPartEvents("> .page-item.has-hierarchy","mousedown",function(e,t){P=!1;var n=t.dropPanelController;n.isOpened()||(n.open(),S=!0,P=!0)}),I.onItemPartEvents("> .page-item.has-hierarchy","mouseenter",function(e,t){setTimeout(function(){t.dropPanelController.open()},0)}),I.onItemPartEvents("> .page-item.has-hierarchy","mouseleave",function(e,t){S||setTimeout(function(){t.dropPanelController.close()},0)});var w,E,T=Br.createCssRules("drop-down-navigation-desktop-panel.level-"+t);return r.quickExtend(g,{$element:h,visualizers:f,defaultActivationArgs:{},onActivated:function(n){var i=Ma.evaluateColorBinding(n.backgroundColor),o=Na.evaluateFontBinding(n.font),s=n.fontSize,l=n.borderWidth,u=Ma.evaluateColorBinding(n.borderColor,!0),g=n.width,f=n.spacing,v=Ma.evaluateColorBinding(n.fontColor,!0),S=n.borderRadius,P=n.orientation,T=n.innerDistance,x=n.useSkinButton,k=n.showDropDownArrow;C=r.evaluateWhenFunction(n.selectedPageId);var F=c(i);d(F,f,g,l,T,x);var D=xe.isObservableCollection(n.pages);if(x&&(E=[],ie.disableOperationsRecording("dropdown-navigation"),ur.startRenderingBatch()),I.clear(),n.useHierarchy){var A=D?n.pages.getItems():r.mapToDictionary(n.pages,r.identity,r.defaultIdFunction),V=n.pagesHierarchy,B=V.getRootIds(),L=r.mapItem(B,function(e){return A[e]});if(I.setItems(L),S=a(S),V.hasHierarchy()){w=[];var M=x?l:0,O=r.buildPositioningFunction(function(){return ta.getCurrentPage().getArea(!0)}).alignVertically(it.Top,it.Top,{distance:-l});"right"===P?O.alignHorizontally(it.Right,it.Left,{distance:M,usageCallback:function(e){e.$element.find(".drop-down-navigation-desktop-panel .content-container").removeClass("right").addClass("left")}}).alignHorizontally(it.Left,it.Right,{distance:M}):O.alignHorizontally(it.Left,it.Right,{distance:M}).alignHorizontally(it.Right,it.Left,{distance:M,usageCallback:function(e){e.$element.find(".drop-down-navigation-desktop-panel .content-container").removeClass("right").addClass("left")}}),r.eachItem(B,function(i,a){if(V.hasChildren(a)){ var o=V.createSubHierarchy(a),s=r.mapEntry(o.getIds(),function(e,t){return A[t]}),l=I.items[a],c=l.$item;c.addClass("has-hierarchy");var u=r.createDropPanelWindow(e(t+1),{appendTo:c,contextClass:"drop-down-navigation",isDraggable:!1,stackWithWindows:!1,placeInsideWindow:!1,positioningFunction:O,activationArgs:r.quickExtend(r.quickExtend({},n),{backgroundColor:x?n.backgroundColor:F.hoverColor,pages:s,pagesHierarchy:o}),openCallback:function(){c.addClass("opened")},closeCallback:function(){c.removeClass("opened")},hidingFunctionBeforeShowing:To,showingFunction:function(e,t){t.positioned&&t.positioned()},deactivateOnClickOutside:!0,ignoredElementsFilters:[".drop-down-navigation"]}),d={open:function(){u.open(l.data.$openContext)},close:function(){u.close()},isOpened:function(){return u.isOpened()}};l.dropPanelController=d,w.push(d)}})}}else I.setItems(D?n.pages.getItemsValues():n.pages),S=a(S);p.css({padding:l+"px 0",width:y?y.width+2*l:g}),m.css({borderColor:u,borderRadius:S+"px",borderWidth:l+"px"}),b||h.css({color:v,fontSize:s+"px"}),h.toggleClass("show-arrow",k),h.css({fontFamily:null!==o?o:"",borderRadius:S+"px",textAlign:P}),h.toggleClass("sub-hierarchy-left","right"===P);var z=I.orderedItems;if(z.length>0){var _=Math.max(S-l-1,0);z[0].$item.find("> .item-block").css({borderTopLeftRadius:_,borderTopRightRadius:_}),z[z.length-1].$item.find("> .item-block").css({borderBottomLeftRadius:_,borderBottomRightRadius:_})}x&&(ur.finishRenderingBatch(),ie.enableOperationsRecording("dropdown-navigation"))},onDeactivated:function(){P=!1,v.addClass("right").removeClass("left"),w&&(r.eachItem(w,function(e,t){t.close()}),w=void 0);var e=g.currentActivationArgs,t=I.items[C];if(t)if(t.data.instanceController){var n=t.data.instanceController.getInstance();if(n&&!n.isDeleted){var i=n.getSkinInstance();i.isUserSelected()&&i.userSelect(!1)}}else t.$item.removeClass("state-selected");e.useSkinButton&&(ia.VisibilityUpdateBatch.start(),r.eachEntry(I.items,function(e,t){t.data.instanceController&&(t.data.instanceController.getInstance().hideElement(),t.data.instanceController.$element.detach())}),ia.VisibilityUpdateBatch.finish()),l(e.mouseEnteredFlag,!1),y=void 0,b=void 0,E=void 0},positioned:function(){g.currentActivationArgs.useSkinButton&&ia.updatePosition(E,{updateSize:!1})}}),g}var n={Panel:{group:"drop-down-navigation-desktop-panel-templates",name:"drop-down-navigation-desktop-panel-template",isSimple:!0},PageItem:{group:"drop-down-navigation-desktop-panel-templates",name:"page-item-template",isSimple:!0},PageItemInstance:{group:"drop-down-navigation-desktop-panel-templates",name:"page-item-instance-template",isSimple:!0}};this.createPanel=function(){return e(0)};var i="rgbaBackground",a={},o=Br.createCssRules("drop-down-navigation-desktop-panel"),s=Br.createCssRules("drop-down-navigation-desktop-panel.level-1")});!function(){lr.registerNavigationDefinition("SkinDropDownNavigation",lr.getNavigation("DropDownNavigation"))}(),function(){lr.registerNavigationDefinition("DropDownNavigation2",Or.extend("DropDownNavigation2",function(e){return{init:function(t){e.call(this,function(){return _r.createPanel()},function(){return lr.createNavigationController("SlideNavigation2")},t)},getMobileProperties:function(e){var t=e.navigationProperties;return r.quickExtend({},e,{navigationProperties:{direction:t.mobileDirection,width:t.mobileWidth,spacing:t.spacing,pushContent:!1,animationSpeed:t.animationSpeed,backgroundColor:t.backgroundColor,secondColor:t.mobileSecondColor,fontColor:t.fontColor,fontSize:t.fontSize,font:t.font}})}}}))}();var _r=Do(function(){function e(e){var n=a[e];return n||(n=a[e]=Wt.createController(t(e))),n}function t(t){function a(e,n){e&&(n?e.setTrue("drop-down-navigation-"+t):setTimeout(function(){e.setFalse("drop-down-navigation-"+t)},0))}function s(e){if(0===t){var n=e/2;o.rule(".page-item .page-title",{paddingTop:n+"px",paddingBottom:n+"px"})}}var l=Wt.createBaseController(),c=[],u=r.useTemplate(n.Panel,{level:t}),d=r(".pages-list",u),g=r(".side-bar",u);0===t&&u.on("mouseenter",function(){a(l.currentActivationArgs.mouseEnteredFlag,!0)}).on("mouseleave",function(){a(l.currentActivationArgs.mouseEnteredFlag,!1)});var f,h=d.makeItemsList({idFunction:r.defaultIdFunction,itemCreationFunction:function(e,t){var i=t.data,a=l.currentActivationArgs,o=a.customClickCallback,s=r.useTemplate(n.PageItem,e);if(i.$pageTitle=s.find(".page-title"),!a.disableLink&&!o){var c=s.find(".page-content"),u=r("");u.attr("href",Zi.getPageFullHtmlUrl(e.id)),c.wrap(u),i.$lingWrapper=c.parent()}return s},itemUpdatedCallback:function(e,t){if(e.data.$pageTitle&&t){var n=e.item;e.data.$pageTitle.text(n.title),e.data.$lingWrapper&&e.data.$lingWrapper.attr("href",Zi.getPageFullHtmlUrl(n.id))}}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}}),p=!1,m=!1;h.onItemPartEvents("> .page-item .item-block","click",function(e,t,n){var i=l.currentActivationArgs;if(!i.disableLink){var a=i.customClickCallback;if(a)setTimeout(function(){l.requestDeactivation()},0),a(t.item.id);else{var r=t.dropPanelController;r&&m||setTimeout(function(){l.requestDeactivation()},0)}}m&&(n.stopPropagation(),n.preventDefault()),m=!1}),h.onItemPartEvents("> .page-item.has-hierarchy","mousedown",function(e,t){m=!1;var n=t.dropPanelController;n.isOpened()||(n.open(),p=!0,m=!0)}),h.onItemPartEvents("> .page-item.has-hierarchy","mouseenter",function(e,t){setTimeout(function(){t.dropPanelController.open()},0)}),h.onItemPartEvents("> .page-item.has-hierarchy","mouseleave",function(e,t){p||setTimeout(function(){t.dropPanelController.close()},0)});var v;return r.quickExtend(l,{$element:u,visualizers:c,defaultActivationArgs:{},onActivated:function(n){var a=r.Color(Ma.evaluateColorBinding(n.backgroundColor)),o=Na.evaluateFontBinding(n.font),l=n.fontSize,c=n.width,d=n.spacing,p=Ma.evaluateColorBinding(n.fontColor,!0);f=r.evaluateWhenFunction(n.selectedPageId);var m=Br.calculateAdjustBrightnessSign(a,.15,!0),y=gn.adjustBrightness(a,function(e){return Math.max(e+i*m,.1)});g.css("backgroundColor",y.toCSS()),s(d),h.clear();var b=xe.isObservableCollection(n.pages)?n.pages.getItems():r.mapToDictionary(n.pages,r.identity,r.defaultIdFunction),C=n.pagesHierarchy,I=C.getRootIds(),S=r.mapItem(I,function(e){return b[e]});if(h.setItems(S),C.hasHierarchy()){v=[];var P=r.buildPositioningFunction(function(){return ta.getCurrentPage().getArea(!0)}).alignVertically(it.Top,it.Top).alignHorizontally(it.Left,it.Right).alignHorizontally(it.Right,it.Left);r.eachItem(I,function(i,a){if(C.hasChildren(a)){var o=C.createSubHierarchy(a),s=r.mapEntry(o.getIds(),function(e,t){return b[t]}),l=h.items[a],c=l.$item;c.addClass("has-hierarchy");var u=r.createDropPanelWindow(e(t+1),{appendTo:c,contextClass:"drop-down-navigation",isDraggable:!1,stackWithWindows:!1,placeInsideWindow:!1,positioningFunction:P,activationArgs:r.quickExtend(r.quickExtend({},n),{pages:s,pagesHierarchy:o}),openCallback:function(){c.addClass("opened")},closeCallback:function(){c.removeClass("opened")},deactivateOnClickOutside:!0,ignoredElementsFilters:[".drop-down-navigation"]}),d=u.open;u.open=function(){d.call(u,c)},l.dropPanelController=u,v.push(u)}})}var w=h.items[f];w&&w.$item.addClass("state-selected"),u.toggleClass("color-negative",-1===Br.calculateAdjustBrightnessSign(a,.2)),u.css({backgroundColor:a.toCSS(),width:c,fontFamily:null!==o?o:"",color:p,fontSize:l})},onDeactivated:function(){m=!1,v&&(r.eachItem(v,function(e,t){t.close()}),v=void 0);var e=l.currentActivationArgs,t=h.items[f];t&&t.$item.removeClass("state-selected"),a(e.mouseEnteredFlag,!1)}}),l}var n={Panel:{group:"drop-down-navigation-desktop-panel-2-templates",name:"drop-down-navigation-desktop-panel-2-template",isSimple:!0},PageItem:{group:"drop-down-navigation-desktop-panel-2-templates",name:"page-item-template",isSimple:!0}};this.createPanel=function(){return e(0)};var i=-.05,a={},o=Br.createCssRules("drop-down-navigation-desktop-panel-2")});!function(){lr.registerNavigationDefinition("DropDownNavigation3",Or.extend("DropDownNavigation3",function(e){return{init:function(t){e.call(this,function(){return wo.Default},function(){return lr.createNavigationController("SlideNavigation")},t)},getMobileProperties:function(e){var t=e.navigationProperties;return r.quickExtend({},e,{navigationProperties:{direction:t.mobileDirection,width:t.mobileWidth,spacing:t.spacing,pushContent:t.pushContent,height:t.mobileHeight,animationSpeed:t.animationSpeed,hierarchyOpened:t.hierarchyOpened,useHierarchy:t.useHierarchy,backgroundColor:t.backgroundColor,fontColor:t.fontColor,fontSize:t.fontSize,font:t.font}})}}}))}(),function(){lr.registerNavigationDefinition("DropDownNavigation4",Or.extend("DropDownNavigation4",function(e){return{init:function(t){e.call(this,Nr.createPanel,function(){return lr.createNavigationController("SlideNavigation3")},t)},getMobileProperties:function(e){var t=e.navigationProperties;return r.quickExtend({},e,{navigationProperties:{direction:t.mobileDirection,width:t.mobileWidth,spacing:t.spacing,pushContent:t.pushContent,height:t.mobileHeight,animationSpeed:t.animationSpeed,hierarchyOpened:t.hierarchyOpened,useHierarchy:t.useHierarchy,backgroundColor:t.backgroundColor,fontColor:t.fontColor,fontSize:t.fontSize,font:t.font,secondColor:t.secondColor,barWidth:t.barWidth,borderWidth:t.borderWidth}})}}}))}();var Nr=Do(function(){function e(e){var n=i[e];return n||(n=i[e]=Wt.createController(t(e))),n}function t(t){function i(e,n){e&&(n?e.setTrue("drop-down-navigation-"+t):setTimeout(function(){e.setFalse("drop-down-navigation-"+t)},0))}function s(e,n,i,r){if(0===t){var o=i/2;a.rule(".page-item .page-title",{paddingTop:o+"px",paddingBottom:o+"px"}),a.rule(".item-side",{width:r,background:n}),a.rule(".title-container",{marginRight:r});var s=-.09,l=Br.calculateAdjustBrightnessSign(e,s,!0),c=gn.adjustBrightness(e,function(e){return e+l*s});a.rule(".page-item > .item-block",{borderTopColor:c}),a.prefixRule(".drop-down-navigation.side-left >","> .content-container > .decorator",{borderLeftColor:e}),a.prefixRule(".drop-down-navigation.side-right >","> .content-container > .decorator",{borderRightColor:e}),a.prefixRule(".drop-down-navigation.side-top >","> .content-container > .decorator",{borderTopColor:e}),a.prefixRule(".drop-down-navigation.side-bottom >","> .content-container > .decorator",{borderBottomColor:e})}}var l=Wt.createBaseController(),c=r.useTemplate(n.Panel,{level:t}),u=r(".pages-list",c);0===t&&c.on("mouseenter",function(){i(l.currentActivationArgs.mouseEnteredFlag,!0)}).on("mouseleave",function(){i(l.currentActivationArgs.mouseEnteredFlag,!1)});var d,g=u.makeItemsList({idFunction:r.defaultIdFunction,itemCreationFunction:function(e,t){var i=t.data,a=l.currentActivationArgs,o=a.customClickCallback,s=r.useTemplate(n.PageItem,e);if(i.$pageTitle=s.find(".page-title"),!a.disableLink&&!o){var c=s.find(".page-content"),u=r("");u.attr("href",Zi.getPageFullHtmlUrl(e.id)),c.wrap(u),i.$lingWrapper=c.parent()}return s},itemUpdatedCallback:function(e,t){if(e.data.$pageTitle&&t){var n=e.item;e.data.$pageTitle.text(n.title),e.data.$lingWrapper&&e.data.$lingWrapper.attr("href",Zi.getPageFullHtmlUrl(n.id))}}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}}),f=!1,h=!1;g.onItemPartEvents("> .page-item .item-block","click",function(e,t,n){var i=l.currentActivationArgs;if(!i.disableLink){var a=i.customClickCallback;if(a)setTimeout(function(){l.requestDeactivation()},0),a(t.item.id);else{var r=t.dropPanelController;r&&h||setTimeout(function(){l.requestDeactivation()},0)}}h&&(n.stopPropagation(),n.preventDefault()),h=!1}),g.onItemPartEvents("> .page-item.has-hierarchy","mousedown",function(e,t){h=!1;var n=t.dropPanelController;n.isOpened()||(n.open(),f=!0,h=!0)}),g.onItemPartEvents("> .page-item.has-hierarchy","mouseenter",function(e,t){setTimeout(function(){t.dropPanelController.open()},0)}),g.onItemPartEvents("> .page-item.has-hierarchy","mouseleave",function(e,t){f||setTimeout(function(){t.dropPanelController.close()},0)});var p;return r.quickExtend(l,{$element:c,defaultActivationArgs:{},onActivated:function(n){var i=r.Color(Ma.evaluateColorBinding(n.backgroundColor)),a=r.Color(Ma.evaluateColorBinding(n.secondColor)),l=Na.evaluateFontBinding(n.font),f=n.fontSize,h=n.width,m=n.spacing,v=Ma.evaluateColorBinding(n.fontColor,!0),y=n.barWidth;d=r.evaluateWhenFunction(n.selectedPageId),s(i,a,m,y),g.clear();var b=xe.isObservableCollection(n.pages)?n.pages.getItems():r.mapToDictionary(n.pages,r.identity,r.defaultIdFunction),C=n.pagesHierarchy,I=C.getRootIds(),S=r.mapItem(I,function(e){return b[e]});g.setItems(S),C.hasHierarchy()&&(p=[],r.eachItem(I,function(i,a){if(C.hasChildren(a)){var s=C.createSubHierarchy(a),l=r.mapEntry(s.getIds(),function(e,t){return b[t]}),c=g.items[a],u=c.$item;u.addClass("has-hierarchy");var d=r.createDropPanelWindow(e(t+1),{appendTo:u,contextClass:"drop-down-navigation vertical-orientation",isDraggable:!1,stackWithWindows:!1,placeInsideWindow:!1,positioningFunction:o,activationArgs:r.quickExtend(r.quickExtend({},n),{pages:l,pagesHierarchy:s}),deactivateOnClickOutside:!0,ignoredElementsFilters:[".drop-down-navigation"]}),f=d.open;d.open=function(){f.call(d,u)},c.dropPanelController=d,p.push(d)}}));var P=g.items[d];P&&P.$item.addClass("state-selected"),c.toggleClass("color-negative",-1===Br.calculateAdjustBrightnessSign(i,.2)),u.css({backgroundColor:i.toCSS(),width:h,fontFamily:null!==l?l:"",color:v,fontSize:f})},onDeactivated:function(){h=!1,p&&(r.eachItem(p,function(e,t){t.close()}),p=void 0);var e=l.currentActivationArgs,t=g.items[d];t&&t.$item.removeClass("state-selected"),i(e.mouseEnteredFlag,!1)}}),l}var n={Panel:{group:"drop-down-navigation-desktop-panel-4-templates",name:"drop-down-navigation-desktop-panel-4-template"},PageItem:{group:"drop-down-navigation-desktop-panel-4-templates",name:"page-item-template"}};this.createPanel=function(){return e(0)};var i={},a=Br.createCssRules("drop-down-navigation-desktop-panel-4"),o=r.buildPositioningFunction(function(){return ta.getCurrentPage().getArea(!0)}).alignVertically(it.Top,it.Top).alignHorizontally(it.Left,it.Right,{usageCallback:function(e){e.$element.addClass("side-right")}}).alignHorizontally(it.Right,it.Left,{usageCallback:function(e){e.$element.addClass("side-left")}})});!function(){var e=Wt.createDeferredPanel(function(){return Wt.createPanel(Rr)});lr.registerNavigationDefinition("SlideNavigation3",Lr.extend("SlideNavigation3",function(t){return{init:function(n){t.call(this,e,n)}}}))}();var Rr=Do(function(){function e(e,t,r){for(var o=Br.calculateAdjustBrightnessSign(t,4*n),s=Br.calculateAdjustBrightnessSign(e,4*i,!0),l=(Br.calculateAdjustBrightnessSign(r,4*a,!0),[]),c=[],u=[],d=0;4>d;d++){var g=0===d?t:gn.adjustBrightness(t,function(e){return e+o*(n*d)});l.push(g.toCSS());var f=0===d?e:gn.adjustBrightness(e,function(e){return e+s*(i*d)});c.push(f.toCSS());var h=0===d?r:gn.adjustOpacity(r,function(e){return e-.2*d});u.push(h.toCSS())}return{sideColors:l,backgroundColors:c,fontColors:u,borderColor:gn.adjustBrightness(e,function(e){return e+s*(3*i)}).toCSS(),borderColorOpened:gn.adjustBrightness(e,function(e){return e+s*(2*i)}).toCSS()}}var t={Panel:{group:"slide-navigation-panel-3-templates",name:"slide-navigation-panel-3-template"},PageItem:{group:"slide-navigation-panel-3-templates",name:"page-item-template"}};this.create=function(){function n(){var e=c.makeItemsList({idFunction:r.defaultIdFunction,template:t.PageItem,itemAddedCallback:function(e){var t=e.$item,n=(e.item,e.data);n.$pageTitle=t.find(".page-title"),n.$titleContainer=r(".title-container",t)},itemUpdatedCallback:function(e,t){var n=e.item,a=e.data,o=i.currentActivationArgs;if(o.disableLink)a.$lingWrapper&&(a.$pageTitle.unwrap(),delete a.$lingWrapper);else{var s=Zi.getPageFullHtmlUrl(n.id);if(a.$lingWrapper)t&&a.$lingWrapper.attr("href",s);else{var l=r("");l.addClass("internal-link"),l.click(function(){setTimeout(function(){i.requestDeactivation(!0)},0)}),l.attr("href",s),a.$pageTitle.wrap(l),a.$lingWrapper=l}}t&&a.$pageTitle.text(n.title)}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}}).addLayoutSupport(!0);return e.onItemPartEvents(".icon-container","click",function(e,t,n){var i=t.$wrapper,a=i.hasClass("open"),r=i.find(">.hierarchy-item-content >.hierarchy-children-container");i.toggleClass("open",!a),r.velocity(a?"slideUp":"slideDown",{duration:200}),n.stopPropagation(),n.preventDefault()}),e}var i=Wt.createBaseController(),a=r.useTemplate(t.Panel),o=r(".side-bar",a),s=(r(".header",a),r(".pages-container",a)),l=r(".close-icon-content",a),c=r(".pages-list",a);r(".panel-content",a);l.click(function(){i.requestDeactivation()});var u=fn.create(s,{scrollbarClass:"slide-scrollbar"});u.setMoveScrolling({enableHorizontalScrolling:!1}),i.associateScrollingView(u);var d=n();i.associateItemsList(d);var g,f=kt.create(),h=Br.createCssRules("slide-navigation-panel-3");return r.quickExtend(i,{$element:a,defaultActivationArgs:{},onActivated:function(t){for(var n=t.fontSize,i=r.Color(Ma.evaluateColorBinding(t.fontColor)),s=r.Color(Ma.evaluateColorBinding(t.secondColor)),l=r.Color(Ma.evaluateColorBinding(t.backgroundColor)),c=r.evaluateWhenFunction(t.selectedPageId),u=Na.evaluateFontBinding(t.font),p=t.pages,m=t.pagesHierarchy,v=t.borderWidth,y=t.barWidth,b=Math.min(t.width,t.maxSize.width),C=t.spacing,I=C/2,S=e(l,s,i),P=S.sideColors,w=S.backgroundColors,E=S.fontColors,T=1;4>T;T++)h.rule(".hierarchy-level-{0} > .hierarchy-item-content > .hierarchy-item-container .item-side".format(T),{backgroundColor:P[T]}),h.rule(".hierarchy-level-{0} > .hierarchy-item-content > .hierarchy-item-container .page-item".format(T),{backgroundColor:w[T],color:E[T]}),h.rule(".hierarchy-level-{0} > .hierarchy-item-content > .hierarchy-item-container .page-item .page-title".format(T),{paddingLeft:25+20*T});h.rule(".hierarchy-level-0 > .hierarchy-item-content > .hierarchy-item-container .title-container",{borderBottomWidth:v,borderBottomColor:S.borderColor}),h.rule(".hierarchy-level-0.open > .hierarchy-item-content > .hierarchy-item-container .title-container",{borderBottomColor:S.borderColorOpened}),h.rule(".page-title",{paddingTop:I,paddingBottom:I}),h.rule(".item-side",{bottom:v}),h.rule(".hover-overlay",{bottom:v}),h.rule(".close-icon-content",{right:15+y}),h.rule(".side-bar",{width:y}),h.rule(".item-side",{width:y}),h.rule(".title-container",{marginRight:y}),h.rule(".page-item.state-selected .hover-overlay",{right:y}),d.setLayout(void 0),f.setHierarchyCollection(m),d.setItems(p),d.setLayout(f),o.css({backgroundColor:P[0]}),a.css({width:b,color:E[0],fontSize:n,fontFamily:null!==u?u:"",backgroundColor:w[0]}).toggleClass("color-negative",-1===Br.calculateAdjustBrightnessSign(w[0],.2)),g=d.items[c],g&&g.$item.addClass("state-selected")},onDeactivated:function(){g&&g.$item.removeClass("state-selected")}}),i};var n=.06,i=-.03,a=-.1}),Hr=function(){var e=g.extend("PercentageWidget",{appendTo:To,setSettings:To,setPercentage:To,setSize:To,remove:To});return e}(),qr=function(){var e={color1:{mainColor:1,opacity:1,brightness:0},color2:{mainColor:2,opacity:1,brightness:0},color3:{mainColor:3,opacity:1,brightness:0},size1:20,size2:5,font:{themeFont:"heading1"}};return Hr.extend("CommonPercentageWidget",{init:function(t,n){this._$element=t,this._settings=r.quickExtend({},e,n.settings),this._percentage=n.percentage,this._size=n.size;var i=this;this._listener=b.createEventListener([Ma.ThemeColorsChanged,Na.CurrentThemeFonts.valueChangedEvent],function(){i.repaint()})},appendTo:function(e){this._$element.appendTo(e),this._initialized=!0,this._listener.activate(),this.repaint()},_repaint:To,repaint:function(){this._initialized&&this._repaint()},setSettings:function(t){this._settings=r.quickExtend({},e,t),this.repaint()},setPercentage:function(e){this._percentage=e,this.repaint()},setSize:function(e){this._size=e,this.repaint()},remove:function(){this._listener.dispose(),this._$element.detach()}})}(),Ur=Do(function(){var e={};this.registerTypeFactory=function(t,n){e[t]=n},this.create=function(t,n){return n=r.quickExtend({percentage:0},n),e[t].create(n)},this.getTypes=function(){return r.getKeys(e)}});!function(){var e=m.create(function(){var e=qr.extend("Percentage1",function(e){return{init:function(t){var n=r('
');e.call(this,n,t);var i=r(".shape-container",n);this._donutController=Nn.create().appendTo(i),this._$text=r(".text",n)},_repaint:function(){var e=this,t=e._$text,n=e._settings,i=e._size,a=e._percentage,r=n.size2;e._$element.outerSize(i).css({color:Ma.evaluateColorBinding(n.color1,!0),fontSize:n.size1,fontFamily:Na.evaluateFontBinding(n.font)}),t.text(a+"%"),this._donutController.paint(a,Ma.evaluateColorBinding(n.color2),Ma.evaluateColorBinding(n.color3),r,i)}}});return e.create=function(t){return new e(t)},e});Ur.registerTypeFactory("percentage1",{create:function(t){return e.getValue().create(t)}})}(),function(){var e=m.create(function(){var e=qr.extend("Percentage2",function(e){return{init:function(t){var n=r('
');e.call(this,n,t);var i=r(".text",n),a=r(".percentage-line",n),o=r(".percentage-value",n);this._$text=i,this._$percentageLine=a,this._$percentageValue=o},_repaint:function(){var e=this,t=e._$text,n=e._$percentageLine,i=e._$percentageValue,a=e._settings,r=e._size,o=e._percentage,s=r.width;e._$element.css({color:Ma.evaluateColorBinding(a.color1,!0),fontSize:a.size1,fontFamily:Na.evaluateFontBinding(a.font)}),t.text(o+"%");var l=t.outerWidth(),c=s-l-5;n.css({width:c,height:a.size2,background:Ma.evaluateColorBinding(a.color3,!0)}),i.css({width:o+"%",background:Ma.evaluateColorBinding(a.color2,!0)})}}});return e.create=function(t){return new e(t)},e});Ur.registerTypeFactory("percentage2",{create:function(t){return e.getValue().create(t)}})}(),function(){var e=m.create(function(){var e=qr.extend("Percentage3",function(e){return{init:function(t){var n=r('
');e.call(this,n,t);var i=r(".text",n),a=r(".percentage-line",n),o=r(".percentage-value",n);this._$text=i,this._$percentageLine=a,this._$percentageValue=o},_repaint:function(){var e=this,t=e._$text,n=e._$percentageLine,i=e._$percentageValue,a=e._settings,r=e._percentage;e._$element.css({color:Ma.evaluateColorBinding(a.color1,!0),fontSize:a.size1,fontFamily:Na.evaluateFontBinding(a.font)}),t.text(r+"%"),n.css({background:Ma.evaluateColorBinding(a.color3,!0)}),i.css({width:r+"%",background:Ma.evaluateColorBinding(a.color2,!0)})}}});return e.create=function(t){return new e(t)},e});Ur.registerTypeFactory("percentage3",{create:function(t){return e.getValue().create(t)}})}(),function(){var e=m.create(function(){var e=r('
'),t=qr.extend("Percentage4",function(t){return{init:function(e){var n=r('
');t.call(this,n,e)},_repaint:function(){var t=this,n=t._$element,i=t._settings,a=t._percentage;n.empty();for(var o=i.size1,s=i.size2,l=s/5,c=r.adjustFraction((100-l*(o-1))/o,2),u=a/(100/o),d=Math.floor(u),g=u%1*100,f=Ma.evaluateColorBinding(i.color1,!0),h=Ma.evaluateColorBinding(i.color2,!0),p=void 0,m=1;o>=m;m++){var v=m>d,y=e.clone().css({background:v?h:f,width:c+"%",marginRight:m===o?0:l+"%"}).appendTo(n);!p&&v&&(p=y)}g>0&&e.clone().css({background:f,width:g+"%"}).appendTo(p)}}});return t.create=function(e){return new t(e)},t});Ur.registerTypeFactory("percentage4",{create:function(t){return e.getValue().create(t)}})}(),function(){var e=m.create(function(){var e=r('
'),t=qr.extend("Percentage5",function(t){return{init:function(e){var n=r('
');t.call(this,n,e)},_repaint:function(){var t=this,n=t._$element,i=t._settings,a=t._percentage;n.empty();for(var o=i.size1,s=i.size2,l=n.outerSize(),c=Math.floor(Math.min(l.height,r.adjustFraction((l.width-s*(o-1))/o,2))),u=s,d=a/(100/o),g=Math.floor(d),f=d%1,h=Ma.evaluateColorBinding(i.color1,!0),p=Ma.evaluateColorBinding(i.color2,!0),m=void 0,v=1;o>=v;v++){var y=v>g,b=e.clone().css({background:y?p:h,width:c,height:c,marginRight:v===o?0:u}).appendTo(n);!m&&y&&(m=b)}if(f>0){var C=r('
').css({width:r.adjustFraction(c*f,2)}).appendTo(m);e.clone().css({background:h,width:c,height:c}).appendTo(C)}}}});return t.create=function(e){return new t(e)},t});Ur.registerTypeFactory("percentage5",{create:function(t){return e.getValue().create(t)}})}(),function(){la.addSiteInformationFix(1.1007,function(e){function t(e){var n=e.elementProperties.roll;n&&(e.elementProperties.connections={},e.elementProperties.connections[n.name]={},e.elementProperties.connections[n.name][n.targetId]={targetId:n.targetId,name:n.name,options:n.options}),e.elementProperties.roll=null,e.childElements&&r.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&r.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){r.each(n.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.1015,function(e){function t(e){var n=e.elementProperties.customStates;if(n){var i={};r.each(n,function(e,t){r.isPlainObject(t.ids)&&r.count(t.ids)>1&&(i[e]=t)}),e.elementProperties.customStates=i}e.childElements&&r.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&r.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){r.each(n.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.1013,function(e){function t(e){var n=e.type;n===Yn.Menu.name&&e.elementProperties.dataTemplate?(e.elementProperties.dataTemplate.structures[0].type=Yn.MenuButton.name,e.elementProperties.itemsTemplates&&r.each(e.elementProperties.itemsTemplates,function(e,t){t.structures[0].type=Yn.MenuButton.name})):n===Yn.Gallery.name&&e.elementProperties.dataTemplate&&!r.isEmptyObject(e.elementProperties.dataTemplate)&&(e.elementProperties.dataTemplate.structures[0].type=Yn.ImageBox.name,e.elementProperties.itemsTemplates&&r.each(e.elementProperties.itemsTemplates,function(e,t){t.structures[0].type=Yn.ImageBox.name})),e.childElements&&r.each(e.childElements,function(e,n){t(n)})}var n;e.templateStructure&&r.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.1017,function(e){function t(e){var n=e.type;n===Yn.Menu.name&&e.elementProperties.itemFields&&(e.elementProperties.itemFields.icon={type:"icon",title:"Icon",name:"icon",isDefaultField:!0},delete e.elementProperties.itemFields.image),n===Yn.MenuButton.name&&e.elementProperties.fieldsMap&&r.each(e.elementProperties.fieldsMap,function(e,t){r.each(t,function(e,t){"image"===t.type&&(t.type="icon",t.title="Icon",t.name="icon")})}),e.childElements&&r.each(e.childElements,function(e,n){t(n)})}var n;e.templateStructure&&r.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.1016,function(e){function t(e){var n=e.type;n!==Yn.Menu.name&&n!==Yn.Gallery.name||!e.elementProperties.dataTemplate||r.isEmptyObject(e.elementProperties.dataTemplate)||(e.elementProperties.fieldsTemplates={},e.elementProperties.fieldsTemplates.defaultTemplate=e.elementProperties.dataTemplate),e.childElements&&r.eachItem(e.childElements,function(e,n){t(n)})}var n;e.templateStructure&&r.eachItem(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&r.eachItem(e.pagesStructure.pages,function(e,i){n=i,r.eachItem(i.structures,function(e,n){t(n)})}),e.masterPages&&r.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.1024,function(e){function t(e){e.elementProperties.columnsGrid;e.elementProperties.columnsGrid.isEnabled=!0,e.elementProperties.columnsGrid.showAlways=!1}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){r.each(n.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.1026,function(e){function t(e,n){var i=e.elementProperties,a=i.behaviours;a&&a.isTemplateBehaviour||(n&&Yn[e.type].hasFeature(Qn.TemplateItem)?(i.behaviours={isTemplateBehaviour:a?a:{},normalBehaviours:{}},r.each(i.behaviours.isTemplateBehaviour,function(e,t){t.options.isTemplateBehaviour=!0})):i.behaviours={normalBehaviours:a?a:{},isTemplateBehaviour:{}},e.childElements&&r.each(e.childElements,function(e,i){t(i,n)}))}var n;if(e.templateStructure){var i=e.templateStructure.structures;r.each(i,function(e,n){t(n,!0)});var a=e.templateStructure.connections;a&&i&&Yn[i[0].type].hasFeature(Qn.TemplateItem)&&(a.sourceConnections&&r.each(a.sourceConnections,function(e,t){t.options.isTemplateConenction=!0}),a.targetConnections&&r.each(a.targetConnections,function(e,t){t.options.isTemplateConenction=!0}))}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.1027,function(e){function t(e){e&&r.each(e,function(e,t){r.each(t,function(e,t){o(t)})})}function n(e,t){var s=e.id,l=e.elementProperties,c=l.behaviours,u=l.itemsData;u&&(r.each(u.connections,function(e,t){r.each(t,function(e,t){o(t)})}),r.each(u.behaviours,function(e,t){var n=u.connections[e];r.each(t,function(t,i){var r=a(i,s+e);n[r.id]=r})})),c&&(i(c.normalBehaviours,t,s),i(c.isTemplateBehaviour,t,s)),e.childElements&&r.each(e.childElements,function(e,i){n(i,t)})}function i(e,t,n){e&&r.each(e,function(e,i){var r=a(i,n),o=r.id;t.targetConnections&&(t.targetConnections[o]=r),t.sourceConnections&&(t.sourceConnections[o]=r)})}function a(e,t){var n=e.name;if(e.options){var i=e.options;"FlyToScreenBehaviour"===n?i.triggerType=bi.PageLoad:i.stateName&&(i.triggerType=bi.State,i.triggerName=i.stateName),i.transitionData&&(void 0!==i.transitionData.transitionDuration&&(i.animationDuration=i.transitionData.transitionDuration),i.transitionData.transitionDirection&&(i.animationDirection=i.transitionData.transitionDirection)),i.direction&&(i.animationDirection=i.direction)}return{id:r.uniqueID(),sourceElementID:t,targetElementID:t,behaviourName:n,options:i}}function o(e){var t=(e.id,e.options);e.behaviourName||(t.triggerType=bi.Trigger,t.triggerName=e.triggerName,e.behaviourName=e.actionName,delete t.trigger,"ShowElement"!==e.actionName&&"HideElement"!==e.actionName||(t.animationType=pt.NoAnimation.name, t.animationDuration=0),"FadeIn"===e.actionName&&(e.behaviourName=Ii.ShowElement.name,t.animationType=pt.Fade.name),"FadeOut"===e.actionName&&(e.behaviourName=Ii.HideElement.name,t.animationType=pt.Fade.name),"SlideIn"===e.actionName&&(e.behaviourName=Ii.ShowElement.name),"SlideOut"===e.actionName&&(e.behaviourName=Ii.HideElement.name),delete e.actionName,t.slideOptions&&("Left"===t.slideOptions.name?t.animationType="SlideLeft":"Right"===t.slideOptions.name?t.animationType="SlideRight":"Up"===t.slideOptions.name?t.animationType="SlideUp":"Down"===t.slideOptions.name&&(t.animationType="SlideDown")),t.transitionData&&(void 0!==t.transitionData.transitionDuration&&(t.animationDuration=t.transitionData.transitionDuration),t.transitionData.transitionDirection&&(t.animationDirection=t.transitionData.transitionDirection)),t.direction&&(t.animationDirection=t.direction))}var s;if(e.templateStructure){var l=e.templateStructure.structures,c=e.templateStructure.connections;c&&t(c),r.each(l,function(e,t){n(t,c)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){s=i;var a=i.connections;t(a),r.each(i.structures,function(e,t){n(t,a)})}),e.masterPages&&r.each(e.masterPages,function(e,i){if(i.hierarchyInfo.structures){var a=i.hierarchyInfo.connections;t(a),r.each(i.hierarchyInfo.structures,function(e,t){n(t,a)})}})})}(),function(){la.addSiteInformationFix(1.1032,function(e){function t(e){e&&r.each(e,function(e,t){r.each(t,function(e,t){i(t)})})}function n(e,t){var a=(e.id,e.elementProperties),o=a.itemsData;(a.entranceAnimation||a.exitAnimation)&&("SlideLeft"===a.entranceAnimation?(a.entranceAnimation=pt.Slide.name,a.entranceAnimationDirection="right"):"SlideRight"===a.entranceAnimation?(a.entranceAnimation=pt.Slide.name,a.entranceAnimationDirection="left"):"SlideUp"===a.entranceAnimation?(a.entranceAnimation=pt.Slide.name,a.entranceAnimationDirection="down"):"SlideDown"===a.entranceAnimation&&(a.entranceAnimation=pt.Slide.name,a.entranceAnimationDirection="up"),"SlideLeft"===a.exitAnimation?(a.exitAnimation=pt.Slide.name,a.exitAnimationDirection="left"):"SlideRight"===a.exitAnimation?(a.exitAnimation=pt.Slide.name,a.exitAnimationDirection="right"):"SlideUp"===a.exitAnimation?(a.exitAnimation=pt.Slide.name,a.exitAnimationDirection="up"):"SlideDown"===a.exitAnimation&&(a.exitAnimation=pt.Slide.name,a.exitAnimationDirection="down")),o&&r.each(o.connections,function(e,t){r.each(t,function(e,t){i(t)})}),e.childElements&&r.each(e.childElements,function(e,i){n(i,t)})}function i(e){if(e){var t=(e.id,e.options);"ShowElement"===e.behaviourName?("SlideLeft"===t.animationType?(t.animationSlideDirection="right",t.animationType="Slide"):"SlideRight"===t.animationType?(t.animationSlideDirection="left",t.animationType="Slide"):"SlideUp"===t.animationType?(t.animationSlideDirection="down",t.animationType="Slide"):"SlideDown"===t.animationType&&(t.animationSlideDirection="up",t.animationType="Slide"),t.animationDirection||(t.animationDirection={vertical:"top",horizontal:"left"})):"HideElement"===e.behaviourName&&("SlideLeft"===t.animationType?(t.animationSlideDirection="left",t.animationType="Slide"):"SlideRight"===t.animationType?(t.animationSlideDirection="right",t.animationType="Slide"):"SlideUp"===t.animationType?(t.animationSlideDirection="up",t.animationType="Slide"):"SlideDown"===t.animationType&&(t.animationSlideDirection="down",t.animationType="Slide"),t.animationDirection||(t.animationDirection={vertical:"top",horizontal:"left"})),"NavigateNext"!==e.behaviourName&&"NavigatePrev"!==e.behaviourName||("SlideLeft"===t.entranceAnimation?(t.entranceAnimation="Slide",t.entranceAnimationDirection="right"):"SlideRight"===t.entranceAnimation?(t.entranceAnimation="Slide",t.entranceAnimationDirection="left"):"SlideUp"===t.entranceAnimation?(t.entranceAnimation="Slide",t.entranceAnimationDirection="down"):"SlideDown"===t.entranceAnimation&&(t.entranceAnimation="Slide",t.entranceAnimationDirection="up"),"SlideLeft"===t.exitAnimation?(t.exitAnimation="Slide",t.exitAnimationDirection="left"):"SlideRight"===t.exitAnimation?(t.exitAnimation="Slide",t.exitAnimationDirection="right"):"SlideUp"===t.exitAnimation?(t.exitAnimation="Slide",t.exitAnimationDirection="up"):"SlideDown"===t.exitAnimation&&(t.exitAnimation="Slide",t.exitAnimationDirection="down")),"FlyToScreenBehaviour"===e.behaviourName?(e.behaviourName=Ii.ShowElement.name,t.animationType=pt.Fly.name,t.animationSlideDirection="left",t.animationDirection=t.direction,delete t.direction):"FlyOutScreenBehaviour"===e.behaviourName&&(e.behaviourName=Ii.HideElement.name,t.animationType=pt.Fly.name,t.animationSlideDirection="left",t.animationDirection=t.direction,delete t.direction)}}var a;if(e.templateStructure){var o=e.templateStructure.structures,s=e.templateStructure.connections;s&&t(s),r.each(o,function(e,t){n(t,s)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){a=i;var o=i.connections;t(o),r.each(i.structures,function(e,t){n(t,o)})}),e.masterPages&&r.each(e.masterPages,function(e,i){if(i.hierarchyInfo.structures){var a=i.hierarchyInfo.connections;t(a),r.each(i.hierarchyInfo.structures,function(e,t){n(t,a)})}})})}(),function(){la.addSiteInformationFix(1.1035,function(e){function t(e){e&&r.each(e,function(e,t){r.each(t,function(e,t){for(var i in t){var a=t[i];for(var r in a){var o=a[r];n(o)}}})})}function n(e){e&&(e.transitionInEffect&&("SlideLeft"===e.transitionInEffect?(e.transitionSlideInDirection="right",e.transitionInEffect="Slide"):"SlideRight"===e.transitionInEffect?(e.transitionSlideInDirection="left",e.transitionInEffect="Slide"):"SlideUp"===e.transitionInEffect?(e.transitionSlideInDirection="down",e.transitionInEffect="Slide"):"SlideDown"===e.transitionInEffect&&(e.transitionSlideInDirection="up",e.transitionInEffect="Slide"),e.transitionSlideInDirection||(e.transitionSlideInDirection="right")),e.transitionOutEffect&&("SlideLeft"===e.transitionOutEffect?(e.transitionSlideOutDirection="left",e.transitionOutEffect="Slide"):"SlideRight"===e.transitionOutEffect?(e.transitionSlideOutDirection="right",e.transitionOutEffect="Slide"):"SlideUp"===e.transitionOutEffect?(e.transitionSlideOutDirection="up",e.transitionOutEffect="Slide"):"SlideDown"===e.transitionOutEffect&&(e.transitionSlideOutDirection="down",e.transitionOutEffect="Slide"),e.transitionSlideOutDirection||(e.transitionSlideOutDirection="right")))}var i;if(e.templateStructure){var a=(e.templateStructure.structures,e.templateStructure.customStatesProperties);a&&t(a)}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){i=n;var a=n.customStatesProperties;t(a)}),e.masterPages&&r.each(e.masterPages,function(e,n){if(n.hierarchyInfo.structures){var i=n.hierarchyInfo.customStatesProperties;t(i)}})})}(),function(){la.addSiteInformationFix(1.1037,function(e){function t(e,n){if(n){var i=(e.id,e.elementProperties),a=i.itemsData;a&&(r.each(a.connections,function(t,i){r.each(i,function(i,a){n.targetConnections[i]=a;var r=e.id+He+t;a.sourceElementID===a.targetElementID&&(a.targetElementID=r),a.sourceElementID=r})}),delete i.itemsData),e.childElements&&r.each(e.childElements,function(e,i){t(i,n)})}}var n;if(e.templateStructure){var i=e.templateStructure.structures,a=e.templateStructure.connections;r.each(i,function(e,n){t(n,a)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i;var a=i.connections;r.each(i.structures,function(e,n){t(n,a)})}),e.masterPages&&r.each(e.masterPages,function(e,n){if(n.hierarchyInfo.structures){var i=n.hierarchyInfo.connections;r.each(n.hierarchyInfo.structures,function(e,n){t(n,i)})}})})}(),function(){function e(e){var t=e.split(He);if(e.length>=26&&1===t.length){var n=13;"id"===e.slice(0,2)&&(n+=2),e=e.slice(0,n)+He+e.slice(n,e.length)}return e}la.addSiteInformationFix(1.1038,function(t){function n(t,n){t.id;n&&r.each(n,function(t,n){r.each(n,function(t,n){var i=""+n.targetElementID,a=""+n.sourceElementID;n.targetElementID=e(i),n.sourceElementID=e(a)})})}var i;if(t.templateStructure){var a=t.templateStructure.structures,o=t.templateStructure.connections;r.each(a,function(e,t){n(t,o)})}t.pagesStructure&&r.each(t.pagesStructure.pages,function(e,t){i=t;var a=t.connections;r.each(t.structures,function(e,t){n(t,a)})}),t.masterPages&&r.each(t.masterPages,function(e,t){if(t.hierarchyInfo.structures){var i=t.hierarchyInfo.connections;r.each(t.hierarchyInfo.structures,function(e,t){n(t,i)})}})})}(),function(){la.addSiteInformationFix(1.1043,function(e){function t(e){e.id;e.type===Yn.Menu.name&&void 0===e.elementProperties.synchronizeWithPages&&(e.elementProperties.synchronizeWithPages=!0),e.childElements&&r.each(e.childElements,function(e,n){t(n)})}function n(e){var t=(e.id,e.elementProperties.textType);t&&("div"===t&&(t=We.DIV),e.elementProperties.tagName=t),e.childElements&&r.each(e.childElements,function(e,t){n(t)})}var i;if(e.templateStructure){var a=e.templateStructure.structures;r.each(a,function(e,t){n(t)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,a){i=a,r.each(a.structures,function(e,i){n(i),t(i)})}),e.masterPages&&r.each(e.masterPages,function(e,i){i.hierarchyInfo.structures&&r.each(i.hierarchyInfo.structures,function(e,i){n(i),t(i)})})})}(),function(){la.addSiteInformationFix(1.1045,function(e){function t(e){var n=e.type;if(Yn[n].hasFeature(Qn.TemplateItem)){var i=e.elementProperties.fieldsMap;i&&r.each(i,function(e,t){t&&t[oi.image.getContentType()]&&(t[oi.title.getContentType()]={name:"title",title:"Title",type:"title"})})}e.childElements&&r.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&r.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,t){r.each(t.structures,To)}),e.masterPages&&r.each(e.masterPages,function(e,t){t.hierarchyInfo.structures&&r.each(t.hierarchyInfo.structures,To)})})}(),function(){la.addSiteInformationFix(1.1047,function(e){function t(e){var n=(e.id,e.elementProperties),i=e.type;"page"===i?(n.childrenAnchor=Ke.Centered,e.childElements&&r.each(e.childElements,function(e,n){t(n)})):n.sizeAndPosition.left-=480}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){r.each(n.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.1049,function(e){function t(e){var t=ta.getCoordinatorHeirarchy().customStatesProperties;e&&r.each(e,function(e,n){var i=n.id;t&&t[i]&&r.each(t[i],function(e,t){"sizeAndPosition"===e&&t&&r.each(t,function(e,t){t&&r.each(t,function(e,t){t.stateValue.left-=480})})})})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){r.each(n.structures,function(e,n){t(n.childElements)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&t(n.hierarchyInfo.structures)})})}(),function(){la.addSiteInformationFix(1.1065,function(e){function t(e){var n=e.elementProperties,i=Yn[e.type],a=n.dataLayoutOptions;a&&(n.dataLayoutOptions=r.extend({},i.getPropertiesDefaultValues().dataLayoutOptions,a)),e.childElements&&r.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&r.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){r.each(n.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.1063,function(e){function t(e,n){var i=(e.id,e.elementProperties);Yn[e.type]===Yn.FormElement?(r.each(e.childElements,function(e,t){delete t.elementProperties.fillLayout,delete t.elementProperties.verticalLayout,delete t.elementProperties.horizontalLayout,Yn[t.type]===Yn.formFields?(t.elementProperties.horizontalAlign=Ke.Left,t.elementProperties.sizeAndPosition.width=i.sizeAndPosition.width):t.elementProperties.sizeAndPosition=r.extend(t.elementProperties.sizeAndPosition,{top:20,left:0})}),e.elementProperties.horizontalAlign=Ke.Right):e.childElements&&r.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;r.each(i,function(e,n){t(n)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.1069,function(e){function t(e,n){e.id,e.elementProperties;if(Yn[e.type]===Yn.FormElement){var i,a=[];r.each(e.childElements,function(e,t){Yn[t.type]===Yn.formFields?(i=t,t.elementProperties.horizontalAlign=Ke.Right):(t.elementProperties.sizeAndPosition.top=20,a.push(t))});var o=i.elementProperties.sizeAndPosition;e.childElements=a,r.each([Qn.HasFormData,Qn.HasArrangement,Qn.DataList,Qn.HasTemplates,Qn.HasDataSource],function(t,n){r.each(n.properties,function(t){e.elementProperties[t]=i.elementProperties[t]})}),e.elementProperties.sizeAndPosition.width=o.width,e.elementProperties.horizontalAlign=Ke.Left}else e.childElements&&r.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;r.each(i,function(e,n){t(n)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.1077,function(e){function t(e,n){e.id,e.elementProperties;if(Yn[e.type].hasFeature(Qn.HasText)){var i=e.elementProperties.lineHeight,a=e.elementProperties.fontSize;switch(i.unit){case 2:i.percentages=i.unitValue?i.unitValue:120;break;case 1:i.percentages=a&&i.unitValue?Math.floor(i.unitValue/a*100):120;break;case qe.Pixels:i.percentages=a&&i.pixels?Math.floor(i.pixels/a*100):120;break;case qe.Normal:i.percentages=120;break;case qe.Inherit:i.percentages=120}delete i.pixels,delete i.unitValue,i.percentages||(i.percentages=120),i.unit=qe.Percentages}else e.childElements&&r.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;r.each(i,function(e,n){t(n)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){var e=1.2012;la.addSiteInformationFix(e,function(e){function t(e){var t=ta.getStaticPagesData(),n=r.count(t);e.type=Yn.PagesMenu.name,e.elementProperties.name=e.elementProperties.name.replace("Menu",Yn.PagesMenu.title);var i=n;e.elementProperties.dataLayout.name=e.elementProperties.dataLayout.name+"Menu";var a=Qn.HasMoreButton.defaultProperties&&Qn.HasMoreButton.defaultProperties.dataLayoutOptions?Qn.HasMoreButton.defaultProperties.dataLayoutOptions():void 0;delete e.elementProperties.dataInfo,a&&(a.maxItems=i,e.elementProperties.dataLayoutOptions=r.extendMissing(e.elementProperties.dataLayoutOptions,a))}function n(e){var a=e.elementProperties;Yn[e.type]===Yn.Menu&&a.dataInfo&&a.dataInfo&&a.dataInfo.currentData&&"MasterPages"===a.dataInfo.currentData.type&&i?t(e):Yn[e.type]===Yn.PagesMenu?delete a.dataInfo:e.childElements&&r.each(e.childElements,function(e,t){n(t)})}var i=!0;if(e.templateStructure){var a=e.templateStructure.structures;i=a[0].type!==Yn.Menu.name,r.each(a,function(e,t){n(t)})}else e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,t){r.each(t.structures,function(e,t){n(t)})}),e.masterPages&&r.each(e.masterPages,function(e,t){t.hierarchyInfo.structures&&r.each(t.hierarchyInfo.structures,function(e,t){n(t)})})})}(),function(){la.addSiteInformationFix(1.209,function(e){e.masterPages&&r.each(e.masterPages,function(e,t){function n(e){var t=e.id;delete i[t],e.childElements&&r.each(e.childElements,function(e,t){n(t)})}if(t.hierarchyInfo.structures){var i=r.mapToDictionary(t.hierarchyInfo.structures,r.returnValue,r.defaultIdFunction);r.each(t.hierarchyInfo.structures,function(e,t){t.childElements&&r.each(t.childElements,function(e,t){n(t)})});var a=[];r.each(t.hierarchyInfo.structures,function(e,t){i[t.id]&&a.push(i[t.id])}),t.hierarchyInfo.structures=a}})})}(),function(){la.addSiteInformationFix(1.1092,function(e){function t(e,n){e.id,e.elementProperties;Yn[e.type]===Yn.FormElement?e.elementProperties.targetEmail="":e.childElements&&r.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;r.each(i,function(e,n){t(n)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.209,function(e){function t(e,n){e.id,e.elementProperties;if(Yn[e.type]===Yn.label){e.elementProperties.formattedText=e.elementProperties.text,e.type=Yn.freeText.name,e.elementProperties.verticalAlignment=e.elementProperties.verticalAlign,delete e.elementProperties.text,delete e.elementProperties.verticalAlign;var i=e.elementProperties.formattedText;i=i?""+i:"";var a=i.replace(/\n/g,"
");"\n"==i.charAt(i.length-1)&&(a+=" "),e.elementProperties.formattedText=i}else e.childElements&&r.each(e.childElements,function(e,i){t(i,n)})}var n;e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.2004,function(e){function t(e,n){e.id,e.elementProperties;if(Yn[e.type]===Yn.label||Yn[e.type]===Yn.freeText){var i;Yn[e.type]===Yn.label&&(i=e.elementProperties.text),Yn[e.type]===Yn.freeText&&(i=e.elementProperties.formattedText),i=i?""+i:"";var a=i.replace(/\n/g,"
");"\n"==i.charAt(i.length-1)&&(a+=" "),Yn[e.type]===Yn.label&&(e.elementProperties.text=i),Yn[e.type]===Yn.freeText&&(e.elementProperties.formattedText=i)}else e.childElements&&r.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;r.each(i,function(e,n){t(n)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.2013,function(e){function t(e,n){e.id,e.elementProperties;Yn[e.type]===Yn.PagesMenu?e.elementProperties.dropDownOptions=r.extend({trigger:"click",backgroundColor:"transparent",moreButtonText:"More",spacing:0,isFixedSize:!1,width:120,height:50,animation:"NoAnimation",animationSpeed:1e3,slideDirection:"up",flyDirection:{vertical:"top",horizontal:"right"},positioningAlignments:"Bottom",positionHorizontalDistance:0,positionVerticalDistance:0},e.elementProperties.dropDownOptions):e.childElements&&r.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;r.each(i,function(e,n){t(n)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.2024,function(e){e.pagesStructure&&ta.Events.PageInitialized.one(function(){ie.disableOperationsRecording("PageManager.Events.PageInitialized.1.2024"),Ki.removeStateAffecting(ta.getCurrentPage()),Ki.removeStateAffected(ta.getCurrentPage()),qi.removeInstanceConnections(ta.getCurrentPage()),ie.enableOperationsRecording("PageManager.Events.PageInitialized.1.2024")})})}(),function(){la.addSiteInformationFix(1.2028,function(e){function t(e){var n=e.elementProperties;Yn[e.type];n.dataInfo&&_i[n.dataLayout.name]&&_i[n.dataLayout.name].isPages&&e.type!==Yn.Gallery.name&&e.type!==Yn.VideoGallery.name&&e.type!==Yn.PostsList.name&&(e.type=Yn.DataListElement.name),e.type===Yn.PagesMenu.name&&n.dropDownOptions&&n.dropDownOptions.animation===pt.NoAnimation.name&&(n.dropDownOptions.animation=pt.Slide.name,n.dropDownOptions.animationSpeed=400,n.dropDownOptions.slideDirection="up"),e.childElements&&r.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&r.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){r.each(n.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.2043,function(e){function t(e){e&&r.each(e,function(e,t){if(t.dataInfo)for(var n in t.dataInfo){var a=t.dataInfo[n];r.each(a,function(e,t){i(t.stateValue)})}})}function n(e){var t=e.elementProperties,a=Yn[e.type];if(a.hasFeature(Qn.DataList)){var o=t.dataInfo;i(o)}e.childElements&&r.each(e.childElements,function(e,t){n(t)})}function i(e){e&&e.currentData&&(e.currentData.items?r.each(e.currentData.items,function(e,t){r.each(t,function(e,n){n&&n.imagePath&&(t[e]={imageUrl:t[e]})})}):r.each(e.currentData,function(e,t){r.each(t,function(e,n){n&&n.imagePath&&(t[e]={imageUrl:t[e]})})}))}var a;if(e.isCoordinator){var a=e.customStatesProperties;t(a)}if(e.templateStructure){var a=e.templateStructure.customStatesProperties;r.each(e.templateStructure.structures,function(e,t){n(t)}),t(a)}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){var a=i.customStatesProperties;r.each(i.structures,function(e,t){n(t)}),t(a)}),e.masterPages&&r.each(e.masterPages,function(e,i){if(i.hierarchyInfo.structures){var a=i.hierarchyInfo.customStatesProperties;r.each(i.hierarchyInfo.structures,function(e,t){n(t)}),t(a)}})})}(),function(){la.addSiteInformationFix(1.2092,function(e){function t(e){var n=e.id,i=e.elementProperties,a=e.type;Yn[a]&&(Yn[a].hasFeature(Qn.PageSection)&&i.childrenAnchor!==Ke.Centered||Yn[a].isType(Yn.userBox)&&i.fillLayout&&i.fillLayout.fillHorizontal&&i.childrenAnchor!==Ke.Centered)?ji.performOnInstancesInitialization([n],function(e){Gi.layoutUpdateBatch.performOperation(function(){var t=ji.getInstanceByID(e[0]),n=Xi.rememberLayout(t.getChildInstances(),{includeDockedElements:!1,rememberLeft:!0,rememberTop:!1,rememberWidth:!1,rememberHeight:!1});t.setPropertyValue("childrenAnchor",Ke.Centered),Gi.layoutUpdateBatch.performOperation(function(){n.restoreLayout()})})}):e.childElements&&r.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&r.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){r.each(n.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.2036,function(e){function t(e){var n=e.elementProperties,i=Yn[e.type];if(i.hasFeature(Qn.DataList)){var a=n.dataLayout,o=n.dataInfo,s=n.dataLayoutOptions;_i[a.name];a.name===_i.PagesGrid.name&&o.currentData&&(s.elementsPerPaget?0:200>=t?200:400>=t?400:800),{backgroundColor:e.backgroundColor,animationSpeed:t,verticalDistance:e.positionVerticalDistance,verticalTop:e.positionVerticalDistance,horizontalDistance:e.positionHorizontalDistance,horizontalLeft:e.positionHorizontalDistance,horizontalRight:e.positionHorizontalDistance,spacing:e.spacing,useSkinButton:!0}}la.addSiteInformationFix(1.2087,function(t){function n(t){var i=t.elementProperties;if(t.type===Yn.PagesMenu.name){if(i.dataLayout&&"NavigationButton"!==i.dataLayout.name){var a=i.dropDownOptions;if(a){i.moreButtonText=a.moreButtonText,i.showDropDownArrow=void 0!==a.showDropDownArrow?a.showDropDownArrow:!1;var o=e(a);i.dropDownNavigationSettings={navigation:"DropDownNavigation",navigationProperties:o},delete i.dropDownOptions}else if(i.dropDownNavigationSettings){var s=i.dropDownNavigationSettings;s.navigationProperties&&s.navigationProperties.DropDownNavigation&&void 0===s.navigationProperties.DropDownNavigation.useSkinButton&&(s.navigationProperties.DropDownNavigation.useSkinButton=!0)}}}else t.childElements&&r.each(t.childElements,function(e,t){n(t)})}function i(t){t&&r.each(t,function(t,n){if(n.dropDownOptions&&n.dropDownOptions[Ta.MobileStateName]){var i=n.dropDownOptions[Ta.MobileStateName].coordinator;if(i){var a=i.stateValue,o=e(a);r.objectSet(n,["dropDownNavigationSettings",Ta.MobileStateName,"coordinator","stateValue"],{navigation:"DropDownNavigation",navigationProperties:o}),r.objectSet(n,["moreButtonText",Ta.MobileStateName,"coordinator","stateValue"],a.moreButtonText),r.objectSet(n,["showDropDownArrow",Ta.MobileStateName,"coordinator","stateValue"],void 0!==a.showDropDownArrow?a.showDropDownArrow:!1)}}})}if(t.isCoordinator&&i(t.customStatesProperties),t.templateStructure){var a=t.templateStructure.structures;r.each(a,function(e,t){n(t)}),i(t.templateStructure.customStatesProperties)}t.pagesStructure&&r.each(t.pagesStructure.pages,function(e,t){r.each(t.structures,function(e,t){n(t)}),i(t.customStatesProperties)}),t.masterPages&&r.each(t.masterPages,function(e,t){t.hierarchyInfo.structures&&(r.each(t.hierarchyInfo.structures,function(e,t){n(t)}),i(t.hierarchyInfo.customStatesProperties))})})}(),function(){la.addSiteInformationFix(1.2089,function(e){function t(e,n){e.id,e.elementProperties;if(!Yn[e.type]||Yn[e.type]!==Yn.Gallery&&Yn[e.type]!==Yn.DataListElement&&Yn[e.type]!==Yn.VideoGallery)e.childElements&&r.each(e.childElements,function(e,i){t(i,n)});else{r.each(e.elementProperties.fieldsTemplates,function(e,t){r.each(t,function(e,t){var n=t.hierarchy?t.hierarchy.structures[0].elementProperties.skinBinding:void 0;if(n&&n.type===qa.Inline){var i=n.hierarchy.structures[0],a=i.elementProperties.fieldsMap;a&&r.each(a,function(e,t){e===i.id&&t&&!t[ci.Link]&&(t[ci.Link]={name:"link",type:"link",title:"Link"})})}})})}}var n;if(e.templateStructure){var i=e.templateStructure.structures;r.each(i,function(e,n){t(n)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(1.21,function(e){function t(e){var i=e.elementProperties;e.type===Yn.HeaderElement.name?i.sectionName="Header":e.type===Yn.FooterElement.name?i.sectionName="Footer":e.type===Yn.SectionElement.name?n.push(e):e.childElements&&r.each(e.childElements,function(e,n){t(n)})}var n=[],i=!1;if(e.templateStructure){var a=e.templateStructure.structures;r.each(a,function(e,n){t(n)})}if(e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){r.each(n.structures,function(e,n){t(n)})}),e.masterPages&&(r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})}),i=!0),n.length>0){n.sort(function(e,t){return e.elementProperties.order-t.elementProperties.order});for(var o=0;ofa.BaseVersionToConvertOverFlowHidden)){if(e.templateStructure){var n=e.templateStructure.structures;r.each(n,function(e,n){t(n)})}e.pagesStructure&&r.eachItem(e.pagesStructure.pages,function(e,n){r.eachItem(n.structures,function(e,n){t(n)})}),e.masterPages&&r.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.eachItem(n.hierarchyInfo.structures,function(e,n){t(n)})})}})}(),function(){la.addSiteInformationFix(13.007,function(e){function t(e){var a=e.elementProperties,o=Yn[e.type];if(o.hasFeature(Qn.DataList)){var s=a.dataInfo,l=a.itemFields;n(s,l)}else if(o.isType(Yn.VideoPlayer)){var c=a.videoId;a.videoId=i(c)}e.childElements&&r.eachItem(e.childElements,function(e,n){t(n)})}function n(e,t){e&&e.currentData&&(e.currentData.items?r.eachEntry(e.currentData.items,function(e,n){r.eachEntry(n,function(e,a){t[e]&&t[e].type===oi.video.name&&a&&a.videoId&&(n[e].videoId=i(a.videoId))})}):r.eachEntry(e.currentData,function(e,n){r.eachEntry(n,function(e,a){t[e]&&t[e].type===oi.video.name&&a&&a.videoId&&(n[e].videoId=i(a.videoId))})}))}function i(e){for(var t=["?","&","#","+",",","%"],n=0,i=t.length;i>n;++n)-1!=e.indexOf(t[n])&&(e=e.substring(0,e.indexOf(t[n])));return e}if(e.templateStructure){e.templateStructure.customStatesProperties;r.each(e.templateStructure.structures,function(e,n){t(n)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){n.customStatesProperties;r.each(n.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){if(n.hierarchyInfo.structures){n.hierarchyInfo.customStatesProperties;r.each(n.hierarchyInfo.structures,function(e,n){t(n)})}})})}(),function(){la.addSiteInformationFix(14.003,function(e){e.isCoordinator&&Zi.UrlChangingOperation.executeOnBatchStart(function(){var e,t=rr.getListByName("LocalBlog"),n=ta.getDynamicPagesCount();if(void 0===t&&n>0)e=ta.getDynamicPagesData(),r.eachEntry(e,function(e){ta.removePages(e)});else if(void 0!==t){var i=t.getDynamicPageId();ta.updatePageFieldsData(i,{title:"Post Page",urlAlias:"post-page"}),n>1&&(e=ta.getDynamicPagesData(),r.eachEntry(e,function(e){e!=i&&ta.removePages(e)}))}})})}(),function(){la.addSiteInformationFix(14.019,function(e){function t(e){var a=(e.type,Yn[e.type]);if(a&&(a.isType(Yn.Gallery)||a.isType(Yn.VideoGallery))){var o=[oi.title,oi.description,oi.link];a.isType(Yn.Gallery)?o.unshift(oi.image):o.unshift(oi.video);var s=e.elementProperties,l=s.itemFields,c=r.objectGet(i,[e.id,"fieldsTemplates",Ta.MobileStateName,"coordinator","stateValue"]);if(a.isType(Yn.Gallery)){var u=!1;if(r.eachEntry(s.itemFields,function(e,t){return"image"===t.type?(u=!0,!1):void 0}),!u)return e.type=Yn.DataListElement.name,r.eachItem([s.fieldsTemplates,c],function(e,t){t&&(t.DataListItemTemplate=t.ImageBox,delete t.ImageBox,r.eachEntry(t.DataListItemTemplate,function(e,t){t.hierarchy.structures[0].type="skinDataItem"}))}),void delete l.alt}if(e.mapBetweenFields={},r.eachEntry(e.elementProperties.fieldsTemplates,function(t,i){r.eachEntry(i,function(t,i){var a=i.hierarchy.structures[0].elementProperties.skinBinding.hierarchy.structures[0],l=a.elementProperties.fieldsMap;r.eachItem(o,function(t,i){n(i,l,s,e)});var c=!1;r.eachEntry(l,function(e,t){r.eachEntry(t,function(e,t){return""+t.name=="link"?(c=!0,!1):void 0})}),c||r.objectSet(l,[a.id,ci.Link],{name:"link",title:"Link",type:"link",isDefaultField:!0})})}),a.isType(Yn.Gallery)){var d=l.alt;delete l.alt,d&&(l.alt=d)}}e.childElements&&r.eachItem(e.childElements,function(e,n){t(n)})}function n(e,t,n,i){var a=e.name;if(n.itemFields[a])return void(n.itemFields[a].isDefaultField=!0);var o;if(r.each(n.itemFields,function(e,t){return t.type===a?(o=t,!1):void 0}),o){var s=o.name;i.mapBetweenFields[s]=a,delete n.itemFields[s],n.itemFields[a]=o,o.name=a,o.isDefaultField=!0,r.eachEntry(t,function(e,t){r.eachEntry(t,function(e,t){""+t.name==""+s&&(t.name=a)})}),r.eachEntry(n.dataInfo.currentData,function(e,t){var n=t[s];t[a]=n,delete t[s]})}else n.itemFields[a]={name:e.name,type:e.type,title:e.title,isDefaultField:!0}}var i;if(e.templateStructure){var a=e.templateStructure.structures;i=e.templateStructure.customStatesProperties,r.each(a,function(e,n){t(n)})}e.pagesStructure&&r.eachItem(e.pagesStructure.pages,function(e,n){i=n.customStatesProperties, r.eachItem(n.structures,function(e,n){t(n)})}),e.masterPages&&r.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&(i=n.hierarchyInfo.customStatesProperties,r.eachItem(n.hierarchyInfo.structures,function(e,n){t(n)}))})})}(),function(){la.addSiteInformationFix(14.018,function(e){function t(e){e&&r.each(e,function(e,t){n(t.navigationButtonSettings,a)})}function n(e,t){e&&r.each(e,function(e,n){r.each(n,function(e,n){n.stateValue=t(n.stateValue)})})}function i(e,t){var n=e.elementProperties,o=e.type;"PagesMenu"===o&&n.navigationButtonSettings&&(n.navigationButtonSettings=a(n.navigationButtonSettings)),e.childElements&&r.each(e.childElements,function(e,n){i(n,t)})}function a(e){var t=e.navigationProperties;if(t){var n=e.navigation;"SlideNavigation"===n?t.spacing=10:"SlideNavigation2"===n&&(t.spacing=20)}return e}if(e.isCoordinator&&t(e.customStatesProperties),e.templateStructure){var o=e.templateStructure.structures;r.each(o,function(e,t){i(t)}),t(e.templateStructure.customStatesProperties)}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){r.each(n.structures,function(e,t){i(t)}),t(n.customStatesProperties)}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&(r.each(n.hierarchyInfo.structures,function(e,t){i(t)}),t(n.hierarchyInfo.customStatesProperties))})})}(),function(){la.addSiteInformationFix(14.029,function(e){function t(e){var a=(e.type,Yn[e.type]);e.type===Yn.DataListElement&&(e.type=Yn.DataListElement.name);var o=r.objectGet(i,[e.id,"fieldsTemplates",Ta.MobileStateName,"coordinator","stateValue"]);if(a.isType(Yn.DataListElement))return void(o&&o.ImageBox&&(o.DataListItemTemplate=o.ImageBox,delete o.ImageBox,r.eachEntry(o.DataListItemTemplate,function(e,t){t.hierarchy.structures[0].type="skinDataItem"})));if(a&&(a.isType(Yn.Gallery)||a.isType(Yn.VideoGallery))){var s=[oi.title,oi.description,oi.link];a.isType(Yn.Gallery)?s.unshift(oi.image):s.unshift(oi.video);var l=e.elementProperties;l.itemFields;o&&r.eachEntry(o,function(t,i){r.eachEntry(i,function(t,i){var a=i.hierarchy.structures[0].elementProperties.skinBinding.hierarchy.structures[0],o=a.elementProperties.fieldsMap;r.eachItem(s,function(t,i){n(i,o,l,e)});var c=!1;r.eachEntry(o,function(e,t){r.eachEntry(t,function(e,t){return""+t.name=="link"?(c=!0,!1):void 0})}),c||r.objectSet(o,[a.id,ci.Link],{name:"link",title:"Link",type:"link",isDefaultField:!0})})})}e.childElements&&r.eachItem(e.childElements,function(e,n){t(n)})}function n(e,t,n,i){var a=e.name;if(i.mapBetweenFields)r.eachEntry(t,function(e,t){r.eachEntry(t,function(e,t){i.mapBetweenFields[t.name]===a&&(t.name=a)})});else{var o,s=!1;if(r.eachEntry(t,function(e,t){r.eachEntry(t,function(e,t){""+t.type===a&&""+t.name!==a&&(o=t),""+t.name===a&&(s=!0)})}),s)return;if(o){var l=o.name;r.eachEntry(t,function(e,t){r.eachEntry(t,function(e,t){""+t.name==""+l&&(t.name=a)})})}}}var i;if(e.templateStructure){var a=e.templateStructure.structures;i=e.templateStructure.customStatesProperties,r.each(a,function(e,n){t(n)})}e.pagesStructure&&r.eachItem(e.pagesStructure.pages,function(e,n){i=n.customStatesProperties,r.eachItem(n.structures,function(e,n){t(n)})}),e.masterPages&&r.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&(i=n.hierarchyInfo.customStatesProperties,r.eachItem(n.hierarchyInfo.structures,function(e,n){t(n)}))})})}(),function(){la.addSiteInformationFix(14.037,function(e){function t(e){r.eachItem(o,function(t,n){var i=r.objectGet(e,[n,"usePagesLayout"]);i&&r.eachEntry(i,function(e,t){r.eachEntry(t,function(e,t){t.stateValue===!1&&(t.stateValue=!0)})})})}function n(e){var t=e.type;"PostsList"===t?i(e):e.childElements&&r.eachItem(e.childElements,function(e,t){n(t)})}function i(e){var t=e.elementProperties,n=t.primaryPostsList;n&&(a(t),o.push(e.id))}function a(e){var t=e.usePagesLayout;t===!1&&(e.usePagesLayout=!0)}var o=[];if(e.templateStructure){var s=e.templateStructure.structures;r.each(s,function(e,t){n(t)}),t(e.templateStructure.customStatesProperties)}else e.pagesStructure?r.each(e.pagesStructure.pages,function(e,i){var a=i.structures[0];n(a),t(i.customStatesProperties)}):e.masterPages&&r.each(e.masterPages,function(e,i){i.hierarchyInfo.structures&&(r.eachItem(i.hierarchyInfo.structures,function(e,t){n(t)}),t(i.hierarchyInfo.customStatesProperties))})})}(),function(){la.addSiteInformationFix(15,function(e){function t(e){var i=e.elementProperties,a=Yn[e.type];if(a.hasFeature(Qn.DataList)){var o=i.dataInfo,s=i.itemFields;n(o,s)}else a.isType(Yn.VideoPlayer)&&(i.videoUrl||(i.videoType===$e.Vimeo?i.videoUrl="https://vimeo.com/"+i.videoId:i.videoUrl="https://youtu.be/"+i.videoId));e.childElements&&r.eachItem(e.childElements,function(e,n){t(n)})}function n(e,t){e&&e.currentData&&(e.currentData.items?r.eachEntry(e.currentData.items,function(e,n){r.eachEntry(n,function(e,i){t[e]&&t[e].type===oi.video.name&&i&&!i.videoUrl&&(n[e].videoType===$e.Vimeo?n[e].videoUrl="https://vimeo.com/"+n[e].videoId:n[e].videoUrl="https://youtu.be/"+n[e].videoId)})}):r.eachEntry(e.currentData,function(e,n){r.eachEntry(n,function(e,i){t[e]&&t[e].type===oi.video.name&&i&&!i.videoUrl&&(n[e].videoType===$e.Vimeo?n[e].videoUrl="https://vimeo.com/"+n[e].videoId:n[e].videoUrl="https://youtu.be/"+n[e].videoId)})}))}e.templateStructure&&r.eachItem(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&r.eachItem(e.pagesStructure.pages,function(e,n){r.eachItem(n.structures,function(e,n){t(n)})}),e.masterPages&&r.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.eachItem(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(15.002,function(e){function t(e){var i=e.elementProperties,a=Yn[e.type];if(a.hasFeature(Qn.DataList)){var o=i.dataInfo,s=i.itemFields;n(o,s)}else a.isType(Yn.VideoPlayer)&&(i.videoImageUrl||(i.videoImageUrl=null));e.childElements&&r.eachItem(e.childElements,function(e,n){t(n)})}function n(e,t){e&&e.currentData&&(e.currentData.items?r.eachEntry(e.currentData.items,function(e,n){r.eachEntry(n,function(e,n){t[e]&&t[e].type===oi.video.name&&n&&!n.videoImageUrl&&(n.videoImageUrl=null)})}):r.eachEntry(e.currentData,function(e,n){r.eachEntry(n,function(e,n){t[e]&&t[e].type===oi.video.name&&n&&!n.videoImageUrl&&(n.videoImageUrl=null)})}))}e.templateStructure&&r.eachItem(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&r.eachItem(e.pagesStructure.pages,function(e,n){r.eachItem(n.structures,function(e,n){t(n)})}),e.masterPages&&r.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.eachItem(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(15.004,function(e){function t(e){e&&r.eachEntry(e,function(e,t){o[e]&&t.fieldsTemplates&&r.each(t.fieldsTemplates,function(e,t){r.each(t,function(e,t){n(t.stateValue)})})})}function n(e){var t=!1;return e&&r.eachEntry(e,function(e,n){return r.eachEntry(n,function(e,n){var i=n.hierarchy;if(i&&i.structures&&1===i.structures.length){var a=i.structures[0],o=a.elementProperties.skinBinding;if(o&&o.hierarchy&&o.hierarchy.connections){var s=o.hierarchy.connections;if(s&&s.targetConnections){var l=s.targetConnections,c=[];r.eachEntry(l,function(e,n){"showInCenter"===n.behaviourName&&(t=!0,c.push(e))}),r.eachItem(c,function(e,t){delete l[t]})}}}return!t}),!t}),t}function i(e,t){e.id;if(Yn[e.type]&&Yn[e.type]===Yn.Gallery){var a=e.elementProperties,s=a.fieldsTemplates;o[e.id]=!0,n(s)&&(a.templateOpener=!0)}else e.childElements&&r.each(e.childElements,function(e,n){i(n,t)})}var a,o={};if(e.templateStructure){var s=e.templateStructure.structures;r.each(s,function(e,t){i(t)}),t(e.templateStructure.customStatesProperties)}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){a=n,r.each(n.structures,function(e,t){i(t)}),t(n.customStatesProperties)}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&(r.each(n.hierarchyInfo.structures,function(e,t){i(t)}),t(n.hierarchyInfo.customStatesProperties))})})}(),function(){la.addSiteInformationFix(16.2,function(e){function t(e){var n=(e.id,e.elementProperties);(n.entranceAnimation||n.exitAnimation)&&("SlideLeft"===n.entranceAnimation?(n.entranceAnimation=pt.Slide.name,n.entranceAnimationDirection="right"):"SlideRight"===n.entranceAnimation?(n.entranceAnimation=pt.Slide.name,n.entranceAnimationDirection="left"):"SlideUp"===n.entranceAnimation?(n.entranceAnimation=pt.Slide.name,n.entranceAnimationDirection="down"):"SlideDown"===n.entranceAnimation&&(n.entranceAnimation=pt.Slide.name,n.entranceAnimationDirection="up"),"SlideLeft"===n.exitAnimation?(n.exitAnimation=pt.Slide.name,n.exitAnimationDirection="left"):"SlideRight"===n.exitAnimation?(n.exitAnimation=pt.Slide.name,n.exitAnimationDirection="right"):"SlideUp"===n.exitAnimation?(n.exitAnimation=pt.Slide.name,n.exitAnimationDirection="up"):"SlideDown"===n.exitAnimation&&(n.exitAnimation=pt.Slide.name,n.exitAnimationDirection="down")),e.childElements&&r.each(e.childElements,function(e,n){t(n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;r.each(i,function(e,n){t(n)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){n=i,r.each(i.structures,function(e,n){t(n)})}),e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&r.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){la.addSiteInformationFix(16.22,function(e){function t(e){var n=r.objectGet(e.elementProperties,"binding");n&&void 0===n.dataSourceName&&"currentItem"===n.dataItemID&&(n.dataSourceName=tr.LocalBlog),e.childElements&&r.eachItem(e.childElements,function(e,n){t(n)})}e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,n){var i=n.structures[0],a=ta.getPageData(i.id);a&&"LocalBlog"===a.pageListName&&t(i)})})}(),function(){la.addSiteInformationFix(16.22,function(e){function t(e,t){return r.objectGet(e[t],[Ta.MobileStateName,"coordinator","stateValue"])}function n(e){var t=e.type;if("freeText"===t){var a=e.elementProperties,s=r.objectGet(a.binding,"dataFields"),c=r.objectGet(s,"1");c&&"content"===c.name&&(o=e.id,l=a.isSupportsMobile,e.type="RichContent",i(a),delete s[1],r.objectSet(s,ci.Content,{name:"content",type:oi.content.type,title:c.title}))}else e.childElements&&r.eachItem(e.childElements,function(e,t){n(t)})}function i(e){var t=a(so,e);e.predefinedTextStyles=t,s=t}function a(e,t){var n=t.letterSpacing,i=r.objectGet(t.lineHeight,"percentages"),a=t.fontSize,o=t.font,s=t.fontColor,l=t.namedTextStyle,c=l&&Ba.getTextStyleInformation(l);null===a&&(a=c?c.fontSize:void 0),null===s&&(s=c?c.color:void 0),null===o&&(o=c?c.fontFamily:void 0);var u=r.deepCloneObject(e);u.normal=r.quickExtend(u.normal,{fontSize:a,fontFamily:o,color:s,lineHeight:i,letterSpacing:n});var d=u.normal.fontSize;return u.heading=r.quickExtend(u.heading,{fontSize:d+8,color:s,lineHeight:i,letterSpacing:n}),u["sub-heading"]=r.quickExtend(u["sub-heading"],{fontSize:d+3,color:s,lineHeight:i,letterSpacing:n}),u}var o,s,l;e.pagesStructure&&r.each(e.pagesStructure.pages,function(e,i){var c=i.structures[0],u=ta.getPageData(c.id);if(u&&"LocalBlog"===u.pageListName&&(n(c),l)){var d=r.objectGet(i.customStatesProperties,o),g=t(d,"letterSpacing"),f=t(d,"lineHeight"),h=t(d,"fontSize"),p=t(d,"font"),m=t(d,"fontColor"),v=t(d,"namedTextStyle"),y=a(s,{fontSize:h,font:p,fontColor:m,lineHeight:f,letterSpacing:g,namedTextStyle:v});r.objectSet(d,["predefinedTextStyles",Ta.MobileStateName,"coordinator","stateValue"],y)}})})}(),function(){la.addSiteInformationFix(16.23,function(e){function t(e){r.eachItem(s,function(t,i){n(!0,i,e)}),r.eachItem(l,function(t,i){n(!1,i,e)})}function n(e,t,n){var i=r.objectGet(n,[t,"dataLayoutOptions"]);i&&r.eachEntry(i,function(t,n){r.eachEntry(n,function(t,n){o(e,n.stateValue)})})}function i(e){var t=e.type;"PostsList"===t?a(e):e.childElements&&r.eachItem(e.childElements,function(e,t){i(t)})}function a(e){var t=e.elementProperties,n=t.primaryPostsList;o(n,t.dataLayoutOptions),n?s.push(e.id):l.push(e.id)}function o(e,t){var n=t.maxItemsCount;e&&void 0!==n?delete t.maxItemsCount:e||r.isNumeric(n)||(t.maxItemsCount=t.elementsPerPage)}var s=[],l=[];if(e.templateStructure){var c=e.templateStructure.structures;r.each(c,function(e,t){i(t)}),t(e.templateStructure.customStatesProperties)}else e.pagesStructure?r.each(e.pagesStructure.pages,function(e,n){var a=n.structures[0];i(a),t(n.customStatesProperties)}):e.masterPages&&r.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&(r.eachItem(n.hierarchyInfo.structures,function(e,t){i(t)}),t(n.hierarchyInfo.customStatesProperties))})})}();var $r=Do(function(){this.isSectionStructure=function(e){return"SectionElement"===e.type||"FooterElement"===e.type||"HeaderElement"===e.type}}),Wr=g.extend("IteratorContext",{init:function(){this._parents=[],this._structuresMap=[{}]},getParentStructure:function(){return this._parentStructure},isInCustomStateProperties:function(){return this._customStatePropertiesCounter>0},getFieldsTemplatesHierarchy:function(){return this._fieldsTemplatesHierarchy},isInSkinTemplate:function(){return this._skinBinding},isInFieldsTemplates:function(){return this._fieldsTemplates},isInMobileTemplate:function(){return this._isInMobileTemplate},getIteratedStructureById:function(e){return this._getCurrentStructureMap()[e]},getSkinParentStructure:function(){return this._skinBindingParentStructure},getSkinHierarchy:function(){return this._skinHierarchy},isInTemplate:function(){return this.isInSkinTemplate()&&this.isInFieldsTemplates()},isInSkinnedElement:function(){return this.isInSkinTemplate()&&!this.isInFieldsTemplates()},getTemplateOwnerStructure:function(){return this._fieldsTemplatesParentStructure},getTemplateOwnerId:function(){var e=this.getTemplateOwnerStructure();return e?e.id:void 0},getTemplateName:function(){return this._fieldsTemplatesName},getSkinnedElementId:function(){return this.getCurrentStructureId()},getCurrentStructure:function(){return this._currentStructure},getCurrentStructureId:function(){return this.getCurrentStructure().id},_parentStructure:void 0,_customStatePropertiesCounter:0,_fieldsTemplates:!1,_fieldsTemplatesName:void 0,_fieldsTemplatesId:void 0,_skinBinding:!1,_isInMobileTemplate:!1,_getCurrentStructureMap:function(){var e=this._structuresMap;return e[e.length-1]},_addStructure:function(e){var t=this._getCurrentStructureMap();if(e.id&&t[e.id]){M.notifyError(Error("Structure with id: "+e.id+" already iterated"));do e.id=r.uniqueID();while(t[e.id])}t[e.id]=e,this._currentStructure=e},_pushParent:function(e){this._parents.push(e),this._parentStructure=e},_popParent:function(){var e=this._parents;if(0===e.length)throw Error("Invalid parents use");e.pop(),0===e.length?this._parentStructure=void 0:this._parentStructure=e[e.length-1]},_setCustomStateProperties:function(){this._customStatePropertiesCounter++},_resetCustomStateProperties:function(){if(this._customStatePropertiesCounter--,this._customStatePropertiesCounter<0)throw Error("customStateProperties is not set")},_pushTemplate:function(){this._structuresMap.push({})},_popTemplate:function(){var e=this._structuresMap;if(0===e.length)throw Error("Invalid parents use");this._structuresMap.pop()},_setFieldsTemplates:function(e){if(this._fieldsTemplates)throw Error("fieldsTemplates is already set");this._fieldsTemplates=!0,this._fieldsTemplatesParentStructure=e,this._pushTemplate(e)},_resetFieldsTemplates:function(){if(!this._fieldsTemplates)throw Error("fieldsTemplates is not set");this._fieldsTemplates=!1,this._fieldsTemplatesParentStructure=void 0,this._popTemplate()},_setFieldsTemplatesName:function(e){this._fieldsTemplatesName=e},_resetFieldsTemplatesName:function(){this._fieldsTemplatesName=void 0},_setFieldsTemplatesHierarchy:function(e,t){this._fieldsTemplatesId=e,this._fieldsTemplatesHierarchy=t},_resetFieldsTemplatesHierarchy:function(){this._fieldsTemplatesId=void 0,this._fieldsTemplatesHierarchy=void 0},_setSkinBinding:function(e,t){if(this._skinBinding)throw Error("skinBinding is already set");this._skinBinding=!0,this._skinBindingParentStructure=e,this._skinHierarchy=t,this._pushTemplate(e)},_resetSkinBinding:function(){if(!this._skinBinding)throw Error("skinBinding is not set");this._skinBinding=!1,this._skinBindingParentStructure=void 0,this._skinHierarchy=void 0,this._popTemplate()},_setInMobileTemplate:function(){if(this._isInMobileTemplate)throw Error("_isInMobileTemplate is already set");this._isInMobileTemplate=!0},_resetInMobileTemplate:function(){if(!this._isInMobileTemplate)throw Error("skinBinding is not set");this._isInMobileTemplate=!1}});Wr.create=function(){return new Wr};var jr=Do(function(){function e(e,t,a,r){n(e.structures,t,a,r),i(e.customStatesProperties,t,a,r)}function t(t,n,i,a,o,s){if(a&&(n._setFieldsTemplates(t),r.eachEntry(a,function(t,a){n._setFieldsTemplatesName(t),r.eachEntry(a,function(t,a){var r=a.hierarchy;n._setFieldsTemplatesHierarchy(t,r),s(function(){e(r,n,i,s)},n),n._resetFieldsTemplatesHierarchy()}),n._resetFieldsTemplatesName()}),n._resetFieldsTemplates()),o&&"Inline"===o.type){var l=o.hierarchy;n._setSkinBinding(t,l),s(function(){e(l,n,i,s)},n),n._resetSkinBinding()}}function n(e,i,a,o){e&&r.eachItem(e,function(e,r){i._addStructure(r),a.structureCallback(r,i),i._pushParent(r);var s=r.elementProperties;t(r,i,a,s.fieldsTemplates,s.skinBinding,o),n(r.childElements,i,a,o),i._popParent()})}function i(e,n,i,o){e&&(n._setCustomStateProperties(),r.eachEntry(e,function(e,s){var l=n.getIteratedStructureById(e);i.customStatePropertiesCallback(s,l,n,e);var c=r.objectGet(s,["fieldsTemplates",a,"coordinator","stateValue"]),u=r.objectGet(s,["skinBinding",a,"coordinator","stateValue"]);(c||u)&&(n._setInMobileTemplate(),t(l,n,i,c,u,o),n._resetInMobileTemplate())}),n._resetCustomStateProperties())}this.iterate=function(t,n,i,a){i=r.quickExtend({structureCallback:To,customStatePropertiesCallback:To},i),a=r.quickExtend({templateHierarchyExecutor:r.noopWithCallback},a),e(t,n,i,a.templateHierarchyExecutor)};var a="MobileResponsiveStateId1234"});"undefined"!=typeof global&&r.quickExtend(global,{IteratorContext:Wr,StructureIterator:jr});var Gr=function(){function e(e,t){var n=!1,i=e.type;return r.eachItem(t,function(e,t){return i===t?(n=!0,!1):void 0}),n}var t=g.extend("StructureCondition",{init:function(e,t){this._structureCallback=e,this._customStateCallback=t},beginIteration:To,endIteration:To,structure:function(e,t){return!!this._structureCallback(e,t)},customState:function(e,t,n){return!!this._customStateCallback(e,t,n)}}),n=t.extend("StructureCustomCondition",function(e){return{init:function(t){e.call(this,t)},beginIteration:function(){this._instancesMap={}},structure:function(e,t){var n=this._structureCallback(e,t);return n&&(this._instancesMap[e.id]=!0),n},customState:function(e,t){return!!this._instancesMap[t.id]}}});return t.elementType=function(t){return t=r.asArray(t),new n(function(n){return e(n,t)})},t.isProperty=function(e,n,i){return i=r.valueOrDefault(i,n),new t(function(t){return n(t.elementProperties[e],t)},function(t,n){var a=t[e],o=!1;return a?r.eachEntry(a,function(e,t){return r.eachEntry(t,function(t,a){return o=!!i(a.stateValue,n,e,t)||o,!o}),!o}):o=!!i(void 0,n),o})},t.create=function(e,n){return new t(e,n)},t.createCustom=function(e){return new n(e)},t.createOr=function(){for(var e=arguments.length,n=Array(e),i=0;e>i;i++)n[i]=arguments[i];return new t(function(e,t){var i=!1;return r.eachItem(n,function(n,a){i=a.structure(e,t)||i}),i},function(e,t,i){var a=!1;return r.eachItem(n,function(n,r){a=r.customState(e,t,i)||a}),a})},t}(),Xr=function(){var e=g.extend("StructureTransform",{init:function(e,t){this._structureCallback=e,this._customStateCallback=t},beginIteration:To,endIteration:To,structure:function(e,t){return this._structureCallback(e,t)},customState:function(e,t,n){return this._customStateCallback(e,t,n)}});return e.elementType=function(t){return new e(function(e){e.type=r.evaluateWhenFunction(t,e)},To)},e.setProperty=function(t,n,i){return new e(function(e){var i=e.elementProperties,a=r.evaluateWhenFunction(t,e),o=i[a],s=r.evaluateWhenFunction(n,o,e);void 0===s?void 0!==o&&delete i[a]:i[a]=s},function(e,n){var a=r.evaluateWhenFunction(t,n,e),o=e[a];if(o){var s=[];r.eachEntry(o,function(e,t){var a=[];r.eachEntry(t,function(t,o){var s=r.evaluateWhenFunction(i,o.stateValue,n,e,t);void 0===s?a.push(t):o.stateValue=s}),a.length>0&&(r.eachItem(a,function(e,n){delete t[n]}),r.isEmptyObject(t)&&s.push(e))}),s.length>0&&(r.eachItem(s,function(e,t){delete o[t]}),r.isEmptyObject(o)&&delete e[t])}})},e.getProperty=function(t,n){return new e(function(e,i){var a=r.evaluateWhenFunction(t,e);i._setInProperty(a),n(e.elementProperties[a],e,i),i._resetInProperty()},function(e,i,a){var o=r.evaluateWhenFunction(t,i,e),s=e[o];s&&(a._setInProperty(o),r.eachEntry(s,function(e,t){r.eachEntry(t,function(t,r){a._setInCustomProperty(e,t),n(r.stateValue,i,a),a._resetInCustomProperty()})}),a._resetInProperty(o))})},e.create=function(t,n){return new e(t,n)},e}(),Yr=Wr.extend("StructureManagerContext",{_isInProperty:!1,_isInCustomProperty:!1,getPropertyName:function(){return this._propertyName},isInProperty:function(){return this._isInProperty},isInCustomProperty:function(){return this._isInCustomProperty},getPropertyStateName:function(){return this._propertyStateName},getPropertyAffectingInstanceID:function(){return this._affectingInstanceID},_setInProperty:function(e){if(this._isInProperty)throw Error("_isInProperty is already set");this._isInProperty=!0,this._propertyName=e},_resetInProperty:function(){if(!this._isInProperty)throw Error("_isInProperty is not set");this._isInProperty=!1,this._propertyName=void 0},_setInCustomProperty:function(e,t){if(this._isInCustomProperty)throw Error("_isInCustomProperty is already set");this._isInCustomProperty=!0,this._affectingInstanceID=t,this._propertyStateName=e},_resetInCustomProperty:function(){if(!this._isInCustomProperty)throw Error("_isInCustomProperty is not set");this._isInCustomProperty=!1,this._affectingInstanceID=void 0,this._propertyStateName=void 0}});Yr.create=function(){return new Yr};var Qr=function(){function e(e,t,n,i,a){var o=!0;r.eachItem(e,function(e,t){o=o&&t.structure(i,a)}),o&&n&&r.eachItem(t,function(e,t){t.structure(i,a)})}function t(e,t,n,i,a,o){if(a){var s=!0;r.eachItem(e,function(e,t){s=s&&t.customState(i,a,o)}),s&&n&&r.eachItem(t,function(e,t){t.customState(i,a,o)})}}var n=g.extend("StructureManager",{init:function(e){e=r.quickExtend({iterateCoordinator:!0,iterateTemplate:!0,iteratePages:!0,iterateMaster:!0,structureTransform:!0,customStatesPropertiesTransform:!0,templateHierarchyTransform:!0,iterator:jr.iterate},e),this._iterator=e.iterator,this._structureTransform=e.structureTransform,this._customStatesPropertiesTransform=e.customStatesPropertiesTransform,this._templateHierarchyTransform=e.templateHierarchyTransform,this._conditions=[],this._transforms=[],this._options=e},addCondition:function(e){return this._conditions.push(e),this},addTransform:function(e){return this._transforms.push(e),this},forEachProperty:function(e,t){return this.addTransform(Xr.getProperty(e,t))},iterate:function(e,t){t=r.quickExtend({afterTemplateHierarchyTransform:To},t);var n=this._options,i=this;n.iterateCoordinator&&e.isCoordinator&&this._iterate(e,t),n.iterateTemplate&&e.templateStructure&&this._iterate(e.templateStructure,t),n.iteratePages&&e.pagesStructure&&r.eachItem(e.pagesStructure.pages,function(e,n){i._iterate(n,t)}),n.iterateMaster&&e.masterPages&&r.eachItem(e.masterPages,function(e,n){i._iterate(n.hierarchyInfo,t)})},_iterate:function(n,i){var a=this,o=a._conditions,s=a._transforms;r.eachItem(o,function(e,t){t.beginIteration()}),r.eachItem(s,function(e,t){t.beginIteration()});var l=a._iterator,c=a._templateHierarchyTransform,u=a._structureTransform,d=a._customStatesPropertiesTransform,g=i.afterTemplateHierarchyTransform,f=Yr.create();l(n,f,{structureCallback:function(t,n){e(o,s,u,t,n)},customStatePropertiesCallback:function(e,n,i){t(o,s,d,e,n,i)}},{templateHierarchyExecutor:function(e,t){var n=t.getSkinHierarchy()||t.getFieldsTemplatesHierarchy();r.evaluateWhenFunction(c,t)&&e(),g(n,t)}}),r.eachItem(s,function(e,t){t.endIteration()}),r.eachItem(o,function(e,t){t.endIteration()})}});return n.create=function(e,t){return new n(r.valueOrDefault(t,jr.iterate),e)},n}(),Kr=Do(function(){this.forEachElement=function(e,t){Qr.create().addTransform(Xr.create(function(e,n){t(n)},To)).iterate({templateStructure:e})},this.forEachProperty=function(e,t,n){Qr.create().addTransform(Xr.getProperty(t,function(e,t,i){n(e,i)})).iterate({templateStructure:e})},this.forEachHierarchy=function(e,t){t(e),Qr.create().iterate({afterTemplateHierarchyTransform:function(e,n){t(e,n)},templateStructure:e})}});"undefined"!=typeof global&&r.quickExtend(global,{StructureManager:Qr,StructureCondition:Gr,StructureTransform:Xr,StructureIteratorHelper:Kr});var Zr=Do(function(){function e(){a||(o=o.sort(function(e,t){return e.priority&&t.priority?e.priority-t.priority:e.priority?-1:t.priority?1:e.version-t.version}),a=!0)}function t(e,t){t.StructureVersion=fa.CurrentStructureVersion,t.version=fa.CurrentStructureVersion,t.templateStructure&&(t.templateStructure.version=fa.CurrentStructureVersion,t.templateStructure.StructureVersion=fa.CurrentStructureVersion)}function n(n,a){function c(e){u.push(e)}r.eachItem(s,function(e,t){t.condition(n)&&r.evaluateWhenFunction(t.structureManager).iterate(n)}),!a&&n.masterPages&&(i=n.masterPages[0]);var u=[];a?la.fixTemplateInformation(n):la.fixSiteInformation(n),l.getValue().iterate(n,{afterTemplateHierarchyTransform:function(e){var t={templateStructure:e,StructureVersion:void 0!==e.version?e.version:0};la.fixTemplateInformation(t),c(t)}});var d=n.StructureVersion!==fa.CurrentStructureVersion;!d||a&&!n.StructureVersion||(e(),r.eachItem(o,function(e,t){(null===t.version||n.StructureVersiont;++t)e.append(".theme-text-color-4-{0}".format(t));return""+e});ca.addListFix(tr.LocalBlog,14,function(t){var n=t.content;if(void 0!=n){var i=r(n).wrapAll("
").parent(),a=i.find(e.get());a.length>0&&(a.each(function(e,t){var n=r(t),i=n.children("u");i&&i.contents().unwrap(),n.contents().unwrap()}),t.content=i.html())}})}();var Jr=Do(function(){var e={ImageThumb:{group:"carousel-thumbs-templates",name:"image-thumb-template"}},t=g.extend("ThumbItemBase",{$element:null,image:null,item:null,activated:!1,updated:!1,dimensions:null,_onCurrent:To,init:function(e,t){t=r.quickExtend({itemCreationFunction:To,onItemUpdated:To},t),this.$wrapper=e,this.options=t,this._onItemUpdated=t.onItemUpdated,this.loadedFlag=k.create(!1)},create:function(){this.$element=r("
"),this.options.itemCreationFunction()},activate:function(e,t){this.activated=!0,this.update(e,t)},deactivate:function(){this.activated=!1},update:function(e,t){this.loadedFlag.setTrue(),this.updated=!0,t&&t(e),this._onItemUpdated(e)},load:function(e,t){this.loadedFlag.setTrue(),t&&t(e)},remove:function(){this.deactivate(),this.$element.remove()},onCurrent:function(e){this._onCurrent=e},resizeImageToContainer:function(){var e,t,n,i=this._image,a=this._imageData||{};t=this.dimensions,t||(e=r(i.parentNode),t={width:e.width(),height:e.height()}),t.width&&(n=nn.calculateImageSizeInLayout({width:a.imageWidth||i.naturalWidth,height:a.imageHeight||i.naturalHeight},Jt.Cover,t),i.style.width=n.width+"px",i.style.height=n.height+"px",i.style.left=(t.width-n.width)/2+"px",i.style.top=(t.height-n.height)/2+"px")}}),n=t.extend("ImageThumb",{_image:null,_imageData:null,create:function(){this.$element=r.useTemplate(this.options.imageItemTemplate||e.ImageThumb), this._image=r("img",this.$element)[0]},update:function(e,t){if(this.activated&&!this.updated){var n=88,i=this._image,a=e.imagePath||J.resolveImageUrl(e.image.imageUrl,{height:n,width:16*n/9}),r=this;this._imageData=e.image&&e.image.imageUrl,i.src!=a?(i.onload=function(){r.resizeImageToContainer(),r.loadedFlag.setTrue(),t&&t(e)},i.onerror=function(){r.loadedFlag.setTrue(),t&&t(e)},r.loadedFlag.setFalse(),i.src=a):t&&t(e),this.updated=!0,this._onItemUpdated(e,this)}else t&&t(e)},load:function(e,t){var n=88,i=16*n/9;if(this.loadedFlag.getValue())t&&t(e);else{var a=new Image,r=this;a.onload=function(){r.loadedFlag.setTrue(),t&&t(e)},a.onerror=function(){r.loadedFlag.setTrue(),t&&t(e)},a.src=J.resolveImageUrl(e.image.imageUrl,{height:n,width:i})}}}),i=t.extend("VideoThumb",{videoId:null,_image:null,getVideoPlayerHelper:function(e){switch(e.video.videoType){case $e.Youtube:return ye;case $e.Vimeo:return Ce}},create:function(){this.$element=r.useTemplate(this.options.videoItemTemplate||e.ImageThumb),this._image=r("img",this.$element)[0]},update:function(e,t){if(this.activated&&!this.updated){var n=this._image,i=e.video,a=this.getVideoPlayerHelper(e),r=this;i.videoId!==this.videoId?(this.videoId=i.videoId,n.onload=function(){r.resizeImageToContainer(),r.loadedFlag.setTrue(),t&&t(e)},n.onerror=function(){r.loadedFlag.setTrue(),t&&t(e)},r.loadedFlag.setFalse(),i.videoImageUrl?n.src=a.getVideoThumbUrl(i.videoImageUrl):a.getVideoImageUrl(i.videoId,function(e){i.videoImageUrl=e,n.src=a.getVideoThumbUrl(e)})):t&&t(e),this.updated=!0,this._onItemUpdated(e,this)}else t&&t(e)},load:function(e,t){if(this.loadedFlag.getValue())t&&t(e);else{var n=new Image,i=e.video,a=i.videoImageUrl,r=this.getVideoPlayerHelper(e),o=this;n.onload=function(){o.loadedFlag.setTrue(),t&&t(e)},n.onerror=function(){o.loadedFlag.setTrue(),t&&t(e)},a?n.src=r.getVideoThumbUrl(a):r.getVideoImageUrl(i.videoId,function(e){i.videoImageUrl=e,n.src=r.getVideoThumbUrl(e)})}}});this.createThumbsCarouselItem=function(e,a,r){return e.image||e.imagePath?new n(a,r):e.video?new i(a,r):new t(a,r)}}),eo=Do(function(){var e={ImageItem:{group:"slideshow-carousel-items-templates",name:"image-item-template"},VideoItem:{group:"slideshow-carousel-items-templates",name:"video-item-template"},VideoIframe:{group:"slideshow-carousel-items-templates",name:"video-iframe-template"}},t=g.extend("SlideShowCarouselItemBase",{$element:null,activated:!1,isCurrent:null,updated:!1,loadedFlag:null,loadingState:!1,$wrapper:null,init:function(e,t){t=r.quickExtend({template:null},t),this.$wrapper=e,this.options=t,this.$element=r.useTemplate(t.template),this.loadedFlag=k.create(!1),this.isCurrent=k.create(!1)},create:To,activate:function(e,t){this.activated=!0,this.update(e,t)},deactivate:function(){this.activated=!1},update:function(e,t){this.loadedFlag.setTrue(),this.updated=!0,t&&t(e)},load:function(e,t){this.loadedFlag.setTrue(),t&&t(e)},toggleLoading:function(e,t){var n=!1;this.loadingState!==e&&(t&&e&&(n={className:"popup-loading-animation",overlayLayer:R.BeneathDialogs}),this.$element.loading(n),this.$wrapper.toggleClass("state-loading",e),this.loadingState=e)},remove:function(){this.deactivate(),this.$element.remove()},_updateAdditionalDataElements:function(e){var t=this.$element,n=e.title||"",i=e.description||"",a=e.link||{},r=a.url||null,o=e.index;this.currentTitle!==n&&(this.currentTitle=n,this.$title.html(n),t.toggleClass("no-title",!n)),this.currentDescription!==i&&(this.currentDescription=i,this.$description.html(i).ellipsis({updateContent:!0,doNotRender:!0}),t.toggleClass("no-description",!i)),this.currentLink!==r&&(this.currentLink=r,r&&(this.$link.attr("href",r),this.$link.attr("target",a.newTab?"_blank":"_self")),t.toggleClass("no-link",!r)),this.currentIndex!==o&&(this.currentIndex=o,this.$index.html(o))}}),n=t.extend("ImageItem",{image:null,create:function(){var e=this.$element;this.image=r("img",e)[0],this.$textContainer=r(".image-text",e),this.$title=r(".title",e),this.$description=r(".description",e),this.$index=r(".index",e),this.$link=r(".link",e)},update:function(e,t){if(this.activated&&!this.updated){var n,i=this.image,a=e.image.imageUrl,r=this;this._updateAdditionalDataElements(e),a?n=J.resolveImageUrl(a,{width:screen.availWidth,height:screen.availHeight}):e.imagePath?n=e.imagePath:(n="",r.loadedFlag.setTrue()),n&&i.src!==n?(i.onload=function(){r.loadedFlag.setTrue(),t&&t(e)},i.onerror=function(){r.loadedFlag.setTrue(),t&&t(e)},r.loadedFlag.setFalse(),i.src=n):t&&t(e),this.updated=!0}else t&&t(e)},load:function(e,t){if(this.loadedFlag.isFalse()){var n=new Image,i=this;n.onload=function(){i.loadedFlag.setTrue(),t&&t(e)},n.onerror=function(){i.loadedFlag.setTrue(),t&&t(e)},n.src=J.resolveImageUrl(e.image.imageUrl,{width:screen.availWidth,height:screen.availHeight})}else t&&t(e)}}),i=t.extend("VideoItem",{videoId:null,image:null,player:null,videoData:null,videoLoadedFlag:null,isPlaying:!1,privateVideoFallbackTimeoutHandle:0,create:function(){var e=this.$element,t=k.create(!1);this.image=r("img",e)[0],this.videoContainer=r(".video-container",e),this.$textContainer=r(".image-text",e),this.$title=r(".title",e),this.$description=r(".description",e),this.$index=r(".index",e),this.$link=r(".link",e),this.videoLoadedFlag=t},activate:function(e,t){var n=this;this.activated||(this.videoContainer.click(function(e){e.stopPropagation(),n.playVideo()}),this.isCurrent.valueChangedEvent.bind(function(e){!e&&n.player&&n.stopVideo()})),this.activated=!0,this.update(e,t)},playVideo:function(){var e=this,t=Ta.Flags.IsInMobileContext.isTrue();this.videoLoadedFlag.isTrue()?(!t&&this.player&&this.player.play(),this.togglePlaying(!0)):this.createPlayer(function(){e.isCurrent.isTrue()&&(!t&&e.player.play(),e.togglePlaying(!0))})},pauseVideo:function(){this.videoLoadedFlag.isTrue()&&this.player.pause(),this.isPlaying=!1},stopVideo:function(){this.videoLoadedFlag.isTrue()&&this.player.stopVideo(),this.togglePlaying(!1)},increaseVolume:function(){this.videoLoadedFlag.isTrue()&&this.player.increaseVolume()},decreaseVolume:function(){this.videoLoadedFlag.isTrue()&&this.player.decreaseVolume()},togglePlaying:function(e){this.isPlaying=e,this.videoContainer.toggleClass("playing",e)},createPlayer:function(t){var n=this.player,i=this;return n&&this.destroyPlayer(),this.toggleLoading(!0,!0),this.player=n=this.getVideoPlayerHelper(this.videoData).createPlayer({$container:this.videoContainer,videoID:this.videoId,loop:0,controls:1,isHtml5:!1,createIframe:function(){return r.useTemplate(e.VideoIframe)}}),n.whenReady(function(){i.whenPlayerReady(t)}),this.privateVideoFallbackTimeoutHandle=setTimeout(function(){i.whenPlayerReady(t)},1e4),n.toggleInitilized(!0),n.reload(),n},whenPlayerReady:function(e){this.videoLoadedFlag.isFalse()&&(clearTimeout(this.privateVideoFallbackTimeoutHandle),this.videoLoadedFlag.setTrue(),this.toggleLoading(!1,!0),e&&e())},destroyPlayer:function(){var e=this.player;clearTimeout(this.privateVideoFallbackTimeoutHandle),this.toggleLoading(!1,!0),this.videoLoadedFlag.setFalse(),this.isCurrent.setFalse(),e&&(e.unloadPlayer(),e.removePlayerIFrame(),this.player=null)},getVideoPlayerHelper:function(e){switch(e.videoType){case $e.Youtube:return ye;case $e.Vimeo:return Ce}},loadCoverImage:function(e,t,n){var i=this.image,a=this;this.loadedFlag.setFalse(),i.onload=function(){a.loadedFlag.setTrue(),n&&n(e)},i.onerror=function(){a.loadedFlag.setTrue(),n&&n(e)},i.src=t},update:function(e,t){if(this.activated&&!this.updated){var n,i=e.video,a=this;this.videoData=e.video,this._updateAdditionalDataElements(e),i.videoId!==this.videoId?(this.videoId=i.videoId,i.videoImageUrl?(n=J.resolveImageUrl(i.videoImageUrl,{width:screen.availWidth,height:screen.availHeight},{forceRatioLocking:!1}),this.loadCoverImage(e,n,t)):this.getVideoPlayerHelper(i).getVideoImageUrl(i.videoId,function(r){i.videoImageUrl=r,n=J.resolveImageUrl(r,{width:screen.availWidth,height:screen.availHeight},{forceRatioLocking:!1}),a.loadCoverImage(e,n,t)})):t&&t(e),this.updated=!0}else t&&t(e)},load:function(e,t){if(this.loadedFlag.isFalse()){var n=new Image,i=e.video,a=i.videoImageUrl,r=this;n.onload=function(){r.loadedFlag.setTrue(),t&&t(e)},n.onerror=function(){r.loadedFlag.setTrue(),t&&t(e)},a?n.src=J.resolveImageUrl(a,{width:screen.availWidth,height:screen.availHeight},{forceRatioLocking:!1}):this.getVideoPlayerHelper(i).getVideoImageUrl(i.videoId,function(e){i.videoImageUrl=e,n.src=J.resolveImageUrl(e,{width:screen.availWidth,height:screen.availHeight},{forceRatioLocking:!1})})}else t&&t(e)}});this.createSlideShowCarouselItem=function(a,r,o){return a.image||a.imagePath?new n(r,{template:o.imageItemTemplate||e.ImageItem}):a.video?new i(r,{template:o.videoItemTemplate||e.VideoItem}):new t(r,{template:o.imageItemTemplate||e.ImageItem})}}),to=Do(function(){var e=g.extend("BaseRenderer",{options:null,carousel:null,_currentItem:null,_previousHalfStatePercentage:void 0,_minImageWidth:640,_minImageHeight:360,init:function(e){e=r.quickExtend({transitionSpeed:300,onTransitionStart:To,onTransition:To,onTransitionEnd:To},e),void 0!==e.minImageWidth&&(this._minImageWidth=e.minImageWidth),void 0!==e.minImageHeight&&(this._minImageHeight=e.minImageHeight),this.options=e},attachToCarousel:function(e){return this.carousel=e,this},renderItem:function(e,t,n,i,a){var r=this.carousel;r&&(t&&(i||void 0===i||a)?(this._currentItem=e,this._transition(e,t,n,a)):(this._render(e,this._currentItem,n),this._currentItem=e)),this._previousHalfStatePercentage=-1===a?0:a},_getItemElementFromItem:function(e){return e&&e.$item||null},_getImageFromItem:function(e){return e&&e.itemView&&e.itemView.image||null},_getTextContainerFromItem:function(e){return e&&e.itemView&&e.itemView.$textContainer||null},_calculateDimensions:function(e,t){var n,i,a,r,o,s=e.item,l=this._minImageWidth,c=this._minImageHeight,u=this._getImageFromItem(e);return s.image?(a=s.image.imageUrl,n=a.imageWidth||u.naturalWidth,i=a.imageHeight||u.naturalHeight,r=this.options.imageBoxLayout||Jt.FitWhenBigger):s.video&&(n=u.naturalWidth,i=u.naturalHeight,r=this.options.imageBoxLayout||Jt.Fit),o=nn.calculateImageSizeInLayout({width:n,height:i},r,t),l&&(o.width=Math.max(l,o.width)),c&&(o.height=Math.max(c,o.height)),o},_render:To}),t=e.extend("SlideFadeRenderer",{_render:function(e,t){var n=this.carousel.$element,i=this._getItemElementFromItem(e),a=this._getImageFromItem(e),o=r(a.parentNode),s={width:n.width(),height:n.height()},l=this._calculateDimensions(e,s);o.css({width:l.width,height:l.height,left:(s.width-l.width)/2,top:(s.height-l.height)/2,opacity:1,transform:"none"}),t&&t.index!==e.index&&this._getItemElementFromItem(t).css("display","none"),i.css("display","list-item"),e.itemView.$description.ellipsis()},_transition:function(e,t,n){var i,a,o=this,s=this.carousel.$element,l={width:s.width(),height:s.height()},c=this._getItemElementFromItem(e),u=this._getImageFromItem(e),d=r(u.parentNode),g=this._getItemElementFromItem(t),f=this._getImageFromItem(t),h=r(f.parentNode),p=this._calculateDimensions(e,l),m=this._calculateDimensions(t,l),v=p.width/2,y=m.width/2,b=(l.width-p.width)/2,C=(l.width-m.width)/2;n&&n>0||!n&&e.index>t.index?(i=b+v,a=C-y):(i=b-v,a=C+y),d.css({width:p.width,height:p.height,left:i,top:(l.height-p.height)/2,opacity:0,transform:"scale(0.5)"}),c.css({display:"list-item"}),d.velocity({left:[b,i],opacity:[1,0],scale:[1,.5]},{duration:300,queue:!1}),h.velocity({left:[a,C],opacity:[0,1],scale:[.5,1]},{duration:500,queue:!1,complete:function(){e.itemView.$description.ellipsis(),t.index!==o._currentItem.index&&g.hide()}})}}),n=e.extend("PopupMobileSlideShow",{_minImageWidth:0,_minImageHeight:0,_render:function(e,t){var n=e.$item,i=this._getItemElementFromItem(e),a=this._getImageFromItem(e),o=r(a.parentNode),s=this._getTextContainerFromItem(e),l={width:n.width(),height:n.height()},c=this._calculateDimensions(e,l);o.css({width:c.width,height:c.height,left:(l.width-c.width)/2,top:(l.height-c.height)/2,opacity:1}),t&&t.index!==e.index&&(this._getItemElementFromItem(t).css("display","none"),this._getTextContainerFromItem(t).css("display","none")),s.css("display","block"),i.css("display","list-item"),e.itemView.$description.ellipsis()},_transition:function(e,t,n,i){var a,o,s=this,l=e.$item,c={width:l.width(),height:l.height()},u=this._getItemElementFromItem(e),d=this._getImageFromItem(e),g=r(d.parentNode),f=this._getItemElementFromItem(t),h=this._getImageFromItem(t),p=r(h.parentNode),m=this._getTextContainerFromItem(e),v=this._getTextContainerFromItem(t),y=this._calculateDimensions(e,c),b=this._calculateDimensions(t,c),C=(c.width-y.width)/2,I=(c.width-b.width)/2,S=this._previousHalfStatePercentage||0;n&&n>0||!n&&e.index>t.index?(a=c.width,o=-b.width):(a=-y.width,o=c.width),S||(g.css({width:y.width,height:y.height,left:a,top:(c.height-y.height)/2,opacity:1}),u.css("display","list-item"),e.itemView.$description.ellipsis()),void 0===i?(S/=100,g.velocity("stop").velocity({left:C},{duration:500*(1-S),queue:!1}),p.velocity("stop").velocity({left:o,opacity:0},{duration:500*(1-S),queue:!1,complete:function(){t.index!==s._currentItem.index&&(m.css("display","block"),f.css("display","none"),v.css("display","none"))}})):-1===i?(g.velocity("stop").velocity({left:C,opacity:1},{duration:200,queue:!1}),p.velocity("stop").velocity({left:o,opacity:1},{duration:200,queue:!1,complete:function(){t.index!==s._currentItem.index&&(m.css("display","block"),f.css("display","none"),v.css("display","none"))}})):void 0!==i&&(i/=100,g.velocity("stop").css({left:a-(a-C)*i}),p.velocity("stop").css({left:I+(o-I)*i,opacity:1-i}))}});this.getBaseRenderer=function(){return e},this.getRenderer=function(e,i){switch(e){case"popupSlideShow":return new t(i);case"popupMobileSlideShow":return new n(i)}}}),no=g.extend("ObservablePropertyBinding",{init:function(e,t){t=r.quickExtend({},t);var n=Pe.create(),i=t.observableObject?t.observableObject:D.create(),a=t.propertyName,o=e.properties[a],s=i.valueChangedEvent.bind(function(t){n.performOperation(function(){void 0===o.bindingValue&&(o.computedValue=void 0),o.bindingValue=t,Ki.recomputePropertyValue(e,a)},"binding")});o.bindingObject=i,o.bindingConroller=this,this._instance=e,this._propertyName=a,this._observableObject=i,this._operationsBatch=n,this._event=s},clearBinding:function(){var e=this._instance,t=this._propertyName,n=e.properties[t];delete n.bindingValue,delete n.bindingConroller,this._event.unbind(),Ki.recomputePropertyValue(e,t)},setValue:function(e){this._observableObject.setValue(e)},getValue:function(){return this._observableObject.getValue()},postponeUpdates:function(){this._operationsBatch.start()},unPostponeUpdates:function(){this._operationsBatch.finish()}});no.create=function(e,t){return new no(e,t)};var io=Do(function(){this.Images={},this.loadImages=function(){var e=[];r.eachEntry(io.Images,function(t,n){e.push(J.resolveImageUrl(n))}),Ct.loadImages(e)}});!function(){function e(e,t,n,i){i&&e.setPropertiesValues({baseName:t})}Xn.registerDefinition(Qn,{ElementBase:{properties:{tagName:{defaultValue:function(){return We.DIV}},behaviours:{defaultValue:Fo,onChange:function(e,t){t?(r.count(t.normalBehaviours)>0||r.count(t.isTemplateBehaviours)>0)&&e.hasBehaviours.setTrue():e.hasBehaviours.setFalse()}},isLocked:{defaultValue:ko,onChange:function(e,t){e.isLocked.setValue(t,"property")}},name:{category:Jn.Other,defaultValue:Fo,onChange:e},baseName:{defaultValue:Fo},templateID:{defaultValue:Fo},templateName:{defaultValue:Fo},order:{isStateProperty:xo,defaultValue:Fo},customStates:{defaultValue:Fo,onChange:function(e,t){if(null!==t){var n=e.getPropertyValue("customStates"),i=r.deepCloneObject(e.getPropertyValue("customStates"));for(var a in i)if(!Ei[a]){var o=i[a],s=r.getValues(o.ids),l=wi.registerComplexState(s);l||delete n[a]}}}},isElementWasEditedInMode:{isStateProperty:!0,defaultValue:ko}},methods:{},aggregatedMethods:{definitions:{onInitializing:To,onInitialized:To,onCreation:To,onDetached:To,onAttached:To,onBeforePageOpen:To,updateInstanceToViewPort:To,removeInstanceFromViewPort:To,adjustInstanceToViewPort:To,switchToPreview:function(){var e=this;e.previewEventsListener.activateAndExecuteAll(),Ci.activateBehaviours(e)},onRemove:To,onPropertyChange:To,onPropertiesChanged:To}}}})}(),function(){function e(){var e=this;if(i(e),e.previewEventsListener.add(b.createEventListener([Ta.Flags.IsInMobileContext.valueChangedEvent],function(){e.performWhenVisible(function(){e.isFixed()?e.addFixedState():e.data.fixedStateAdded&&e.removeFixedState()},e.id+"design-element-preview-listener")})),!this.isForTemplateUse()){t(e),e.duringResizing.valueChangedEvent.bind(function(t){e.canPushFlag.setValue(!t,"duringResizing")}),b.bind([e.zIndex.valueChangedEvent,e.customZIndex.valueChangedEvent,{event:e.propertyChangedEvent,name:"topZIndex"}],function(){var t=e.getPropertyValue("topZIndex"),n=e.zIndex.getValue(),i=e.customZIndex.getValue();n=n?n:0;var a="";i?a=i+(t?t:n):t?a=t+W.MinPropertyZindex:n&&(a=n),e.data.currentZIndexValue!==a&&(e.data.currentZIndexValue=a,wn.requestIndpendentWriteOperation(function(){e.$element.css("z-index",a),e.getMainBox().css("z-index",a)},e.id+"zindex"))}),e.canResize.setValue(e.hasFeature(Qn.Resizable),"Resizable");var n=e.isDisplayed.isTrue();n||e.hideElement()}}function t(e){ie.disableOperationsRecording("initializeLastResizingSize");var t=e.getStructureMetaData(),n=t?t.size:void 0;e.isFillVertical()||(n=e.getPropertyValue("sizeAndPosition")),e.properties.lastResizingSize.value=r.quickExtend({},n),Ki.recomputePropertyValue(e,"lastResizingSize"),ie.enableOperationsRecording("initializeLastResizingSize")}function i(e){e.isForTemplateUse()&&W.IsMobileView||(e.elementEnterAreaEvent.bind(function(t){e.isInMobileMode()||W.IsMobileClient||e.activateTrigger(Pi.MouseEnterArea,t)}),e.elementLeaveAreaEvent.bind(function(t){e.isInMobileMode()||W.IsMobileClient||e.activateTrigger(Pi.MouseLeaveArea,t)}),e.influenceChanged.bindAndExecute(function(){e.refreshTracking()}))}function a(e,t,n,i){var a=void 0===i;a&&1===t||e.animatePart(e.getVisibilityTargets(),{opacity:t},!0,n,{isInitialization:a})}function o(e,t){return e&&t?e.verticalMargin==t.verticalMargin&&e.horizontalMargin==t.horizontalMargin:!e&&!t}function s(e){Gi.refreshElementsLayout(e)}function l(e,t){return e&&t?e.width==t.width&&e.height==t.height:!e&&!t}function c(e,t){return e&&t?e.left==t.left&&e.top==t.top&&e.width==t.width&&e.height==t.height:!e&&!t}function u(e,t,n,i,a){var r=void 0===i;e.animatePart(e.$element,{sizeAndPosition:t},void 0,n,{isInitialization:r,complete:a})}Xn.registerDefinition(Qn,{DesignElement:{features:[],properties:{showHoverEffects:{defaultValue:xo,isNotForCustomProperty:!0},skinInformation:{defaultValue:r.returnEmptyObject},isSupportsMobile:{defaultValue:ko,isNotForCustomProperty:!0},isVisibleInMode:{isStateProperty:!0,defaultValue:xo,shouldRefreshIfNotVisible:!0,onChange:function(e,t,n,i){if(!e.isContent()&&!e.isForTemplateUse()){if(t?e.showElement():e.hideElement(),Ta.Flags.IsInMobileContext.isTrue()&&e.isMasterPageElement.isTrue()&&Ta.refreshMobileMasterSectionInstanceVisibilty(),!e.isInitialized&&void 0===i)return;if(Ta.Flags.IsInMobileContext.isTrue()&&Ki.inStateEditingMode())if(t)Ta.addInstanceToMobile(e,!0);else{if(e.hasCellWrapper.isTrue()){var a=e.getCellItem(),o=a.getRowParent();if(o){var s,l={};a.getWidth();r.eachEntry(o.cellItems,function(e,t){t.id!==a.id&&(s=t.getInstance()),l[t.getInstance().id]=t.getWidth()});o.removeCells([a])}}Ea.removeInstancesFromContainer(e,{shouldRemoveFromViewPort:!0}),Gi.refreshElementsLayout(e.parentInstance)}}}},isFixed:{defaultValue:ko,isStateProperty:!1,onChange:function(e,t,n,i){var e=this;e.isInitialized&&void 0!==i&&Ta.Flags.IsInMobileContext.isFalse()&&!e.isForTemplateUse()&&ur.performUpdateOnRenderingFinished(function(){e.refreshFixedState()}),e.refreshCustomZIndex()}},topZIndex:{isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,getResetValue:r.returnZero,defaultValue:r.returnZero},elementOpacity:{isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,valueConverter:function(e){return void 0!==e?r.adjustFraction(e,3):e},defaultValue:r.returnOne,getResetValue:r.returnOne,onChange:a},staticMargin:{defaultValue:function(){return{horizontalMargin:"",verticalMargin:""}},isStateProperty:!0,isStyleProperty:!1,disableInDesign:!0,supportsStatesTransitionAnimation:!0,valueConverter:fa.createRoundPropertyValueConverter(["horizontalMargin","verticalMargin"]),priority:999,scaleProperty:function(e){return{horizontalMargin:e.x,verticalMargin:e.x}},onChange:s,comparer:o,category:Jn.SizeAndPosition},sizeAndPosition:{defaultValue:function(){return{left:0,width:100,top:0,height:100}},isStateProperty:!0,isStyleProperty:!1,disableInDesign:!0,supportsStatesTransitionAnimation:!0,valueConverter:fa.createRoundPropertyValueConverter(["left","width","top","height"]),priority:999,scaleProperty:function(e){return{left:e.x,width:e.x,top:e.y,height:e.y}},customStateValueGetter:function(e,t,n,i){var a=Ei[i];return a&&a.responsiveState?t:(t||(t={left:0,top:0,width:e.width,height:e.height}),{left:t.left+e.left,top:t.top+e.top,width:t.width+e.width,height:t.height+e.height})},customStateValueSetter:function(e,t,n,i){var a=Ei[i];return a&&a.responsiveState?t:{left:t.left-e.left,top:t.top-e.top,width:t.width-e.width,height:t.height-e.height}},onChange:u,comparer:c,category:Jn.SizeAndPosition},lastResizingSize:{defaultValue:function(){return{width:0,height:0}},isNotForCustomProperty:!0,shouldJoinToUndo:!0,isStateProperty:!0,priority:999,scaleProperty:function(e){return{width:e.x,height:e.y}},comparer:l,category:Jn.SizeAndPosition},isVisibleInLastSection:{defaultValue:xo,isStateProperty:!0,onChange:function(e,t){this.classesManager.set({"is-not-visible-in-last-section":!t})}},isVisibleInLastDataItem:{defaultValue:xo,isStateProperty:!0,onChange:function(e,t){this.classesManager.set({"is-not-visible-in-last-data-item":!t})}}},methods:{},lazyInitializationProperties:{isRelativePositionedFlag:function(){var e=this;return k.create(!1,{valueChangeCallback:function(t){e.classesManager.set({"relative-element":t})}})},duringResizing:k.createFalse,isInDragging:k.createFalse,sizeElementClassesManager:function(){var e=this;return fe.createClassesFlags(function(){return e.getElementSizeBox()})},contentBoxElementClassesManager:function(){var e=this;return fe.createClassesFlags(function(){return e.$elementContentBox})}},aggregatedMethods:{definitions:{changeMobileSupportState:function(e){var t=this,n=Ki.getEditableStyleProperties(),i=Ta.getMobileState();e?r.eachItem(n,function(e,n){Ki.setValueInCustomState(t,t.properties[n],i,t.getPropertyValue(n))}):r.eachItem(n,function(e,n){Ki.resetCustomStateProperty(t,i,n)})},onContentSizeChange:To,onElementAddedToContainer:To,addFixedState:function(){var e=this;e.data.fixedStateAdded=!0,e.$element.addClass("positioned-fixed"),r(window).bind("scroll."+e.id+"isFixed",function(){ia.invalidateAreas(e,{updateSize:!1})}),W.PageHeightChanged.bindAndExecute(function(){ia.invalidateAreas(e,{updateSize:!1})},"isFixedPageHeightChanged"+e.id)},removeFixedState:function(){var e=this;e.data.fixedStateAdded&&(e.data.fixedStateAdded=!1,W.PageHeightChanged.unbind("isFixedPageHeightChanged"+e.id),Gi.refreshElementsLayout(this),e.$element.removeClass("positioned-fixed"),r(window).unbind("scroll."+e.id+"isFixed"))}},aggregations:{adjustInstanceToViewPort:function(){this.setPropertyValue("isVisible",!0)},updateInstanceToViewPort:function(){this.data.isUpdatedToViewPort=!0,this.canResizeVertically.setValue(this.hasHeight(),"hasHeight"),this.childIndex.setValue(-1),this.setPropertyValue("isVisible",!0),this.shouldDisplayOnMobile()||this.isDisplayed.setValue(!1,"insideThePageButNoMasterTemplateOrSection")},removeInstanceFromViewPort:function(){this.canResizeVertically.setValue(!0,"hasHeight"),this.childIndex.setValue(-1),this.data.isUpdatedToViewPort=!1,this.isDisplayed.setValue(!0,"insideThePageButNoMasterTemplateOrSection")},onInitializing:e}},triggers:[Pi.MouseEnter,Pi.MouseLeave,Pi.MouseEnterArea,Pi.MouseLeaveArea],supportedStates:[Ei.MouseOverState,Ei.MouseOverStateArea]}});var d=Wn.prototype;d.refreshCustomZIndex=function(){var e=this;e.isFixed()?e.customZIndex.setValue(W.MinPropertyZindex):e.customZIndex.setValue(void 0)},d.hasBinding=ko,d.getNoneContentSize=function(){var e,t=this;e=t.hasFeature(Qn.HasBorder)?t.getPropertyValue("borderWidth"):{left:0,top:0,bottom:0,right:0};var n=t.getPropertyValue("padding");return void 0===n&&(n={left:0,top:0,bottom:0,right:0}),{width:parseInt(e.left)+parseInt(e.right)+parseInt(n.left)+parseInt(n.right),height:parseInt(e.top)+parseInt(e.bottom)+parseInt(n.top)+parseInt(n.bottom),widthLeft:parseInt(e.left)+parseInt(n.left),heightTop:parseInt(e.top)+parseInt(n.top),widthRight:parseInt(e.left)+parseInt(n.left),heightBottom:parseInt(e.bottom)+parseInt(n.bottom)}},d.refreshFixedState=function(){var e=this,t=e.getPropertyValue("isFixed");if(t)Yi.reattachInstances([e],ta.getCurrentPage());else if(e.parentInstance===ta.getCurrentPage()){var n=Yi.getSectionByPosition(e.getPosition(!0));n||(n=cr.getLastMainSection()),n&&(e.isMasterPageElement.isFalse()||n.isMasterPageElement.isTrue())&&Yi.reattachInstances([e],n)}},d.getLayoutAffectedInstances=function(){return this.getChildInstances()},d.calculateActualOffset=function(){var e=this,t=0,n=0;if(e.hasVerticalLayout()){var i=e.getPropertyValue("margin");t=i.top}else{var a=e.getPropertyValue("sizeAndPosition");t=a.top}if(e.hasHorizontalLayout()){var i=e.getPropertyValue("margin");n=i.left}else{var a=e.getPropertyValue("sizeAndPosition");n=a.left}var r=e.parentInstance.calculateActualOffset();return{top:r.top+t,left:r.left+n}},d.calculateActualSize=function(){var e=this,t=e.getPropertyValue("sizeAndPosition"),n=t.width,i=t.height,a=e.isFillVertical(),r=e.isFillHorizontal();if(a||r){var o=e.getPropertyValue("margin"),s=e.parentInstance.calculateActualSize();r&&(n=s.width-o.left-o.right),a&&(i=s.height-o.top-o.bottom)}return{width:n,height:i}},d.getLastResizingSize=function(){return this.calcualateLastResizingSize()},d.calcualateLastResizingSize=function(){var e=this.getPropertyValue("lastResizingSize"),t=this.getPropertyValue("margin"),n=t?t.top+t.bottom:0;if(this.isFillVertical()){var i=this.parentInstance.calcualateLastResizingSize();if(i=r.quickExtend({},i),i.height)return i.height=i.height-n,i}return e},d.setLastResizingSize=To,d.hasHeight=xo,d.hasWidth=xo,d.isRelativePositioned=function(){return this.isRelativePositionedFlag.isTrue()},d.getMinSize=function(){return{height:5,width:5}},d.getMaxSize=function(){if(this.parentInstance&&Ta.Flags.IsInMobileContext.isTrue()&&(this.shouldBeWithLayoutOnMobile()||this.parentInstance.getAutoLayoutProperties().width)){var e=this.parentInstance.getPropertyValue("padding"),t=this.parentInstance.getMaxSize();return t.width=t.width!==1/0?t.width-e.left-e.right:t.width,t}return{height:1/0,width:1/0}},d.toggleVisibilityInMode=function(e){this.setPropertyValue("isVisibleInMode",e)},d.isVisibleInMode=function(){var e=this.parentInstance,t=e?e.isVisibleInMode():!0;return t&&this.getPropertyValue("isVisibleInMode")},d.getShadowTarget=function(){return this.getBorderBox()},d.refreshTracking=function(){if(!W.IsMobileClient){var e=this;e.isForTemplateUse()||(Ji.hasTargetConnectionsForTriggers(e,Pi.MouseEnterArea,Pi.MouseLeaveArea,Ei.MouseOverStateArea)?ia.trackMouseOver(e):ia.stopMouseOverTracking(e))}},d.handleContentSizeChange=function(){var e=this;e.onContentSizeChange(),b.fireLazyEvent(e,"contentSizeChangedEvent"),Gi.requestUpdatePosition(e.getChildInstances())},d.isFixed=function(){return this.getPropertyValue("isFixed")&&!W.IsMobileView&&Ta.Flags.IsInMobileContext.isFalse()},d.isRootInstance=function(){var e=this,t=e.hasParent();return!t&&(e.isForTemplateUse()||ji.isRootInstance(e)&&e.isContent()||ji.getRootInstance()===e)},d.isAttachedToVisibleNode=function(){var e=this,t=e.hasParent(),n=e.isRootInstance();return(n||t&&e.parentInstance.isInstanceVisible())&&!e.isDeleted},d.getStaticMargin=function(e){e=r.quickExtend({vertically:!0,horizontally:!0},e);var t=this,n={},i=this.getPropertyValue("staticMargin"),a=t.getPropertyValue("cellHorizontalAlignment");a===Je.None&&(a=ta.getCoordinator().getPropertyValue("cellsHorizontalAlignment"));var o=ta.getCoordinator().getPropertyValue("cellsVerticalAlignment");if(e.horizontally)switch(a){case Je.Center:n.marginLeft=i.horizontalMargin;break;case Je.Left:n.marginLeft=i.horizontalMargin;break;case Je.Right:n.marginRight=i.horizontalMargin}if(e.vertically)switch(o){case Ze.Middle:n.marginTop=i.verticalMargin;break;case Ze.Top:n.marginTop=i.verticalMargin;break;case Ze.Bottom:n.marginBottom=i.verticalMargin}return n},d.isSupportsMobile=function(){return this.getPropertyValue("isSupportsMobile")},d.toggleMobileSupport=function(e){var t=this;ie.beginAtomicBatch();var n=r.asArray(t);t.isType(Yn.TabsPanel)&&r.merge(n,t.childInstances),r.eachItem(n,function(t,n){n.changeMobileSupportState(e),n.setPropertyValue("isSupportsMobile",e)}),ie.endAtomicBatch()},d.renderElement=function(e){var t=this,n=!1;n=t.getPropertyValue("tagName"),n===We.DIV&&(n=!1),e.startInstanceRendering(t,"element-size-box"),n&&e.openTag(n,"html-element"),e.openTag("div","element-main-box design-element-main-box"),e.openTag("div","element-background-layer element-border-target design-element-background-layer"),e.closeTag(),e.openTag("div","element-border-box element-border-target element-padding-box design-element-border-box"),e.openTag("div","element-content-box design-element-content-box"),e.openTag("div","content-container content-container-type element-size-box element-size-target"),t.renderElementContent(e),t.renderElementChildren(e),e.closeTag(),e.closeTag(),e.closeTag(),e.closeTag(),n&&e.closeTag(),e.finishInstanceRendering()},d.renderElementChildren=To,d.renderElementContent=To,d.isConvertedToMobile=function(){return!this.isContent()},d.isUpdatedToViewPort=function(){return this.data.isUpdatedToViewPort},d.shouldBeHiddenInMode=ko,d.getAutoLayoutProperties=function(){if(this.hasFeature(Qn.HasLayout)){if(this.isDataListItem()&&this.isRootInstance())return{left:!0,top:!0,width:this.isDataListItem()};var e=this.getPropertyValue("fillLayout"),t=this.getPropertyValue("verticalLayout"),n=this.getPropertyValue("horizontalLayout");return{left:e.fillHorizontal||n!==Gi.Layout.normal,top:e.fillVertical||t!==Gi.Layout.normal,width:e.fillHorizontal,height:e.fillVertical}}return{}},d.shouldDisplayOnMobile=function(){return this.isPageChildInstance()||!(this.parentInstance&&this.parentInstance.isType(Yn.page)&&this.isMasterPageElement.isFalse())&&!this.getPropertyValue("isFixed")},W.Events.LastEventOnInitiailizatGlobal.one(function(){r(document).on("mouseenter",".design-element",function(e){if(Ta.Flags.IsInMobileContext.isFalse()&&!W.IsMobileClient){var t=n(this);t&&t.activateTrigger(Pi.MouseEnter,e)}}).on("mouseleave",".design-element",function(e){if(Ta.Flags.IsInMobileContext.isFalse()&&!W.IsMobileClient){var t=n(this);t&&t.activateTrigger(Pi.MouseLeave,e)}})}),r.cssHooks.sizeAndPosition={get:function(e){var t=n(e);return t?t.getActualPropertyValue("sizeAndPosition"):void 0},set:function(e,t){var i=n(e);i&&(i.setActualPropertyValue("sizeAndPosition",t),Gi.refreshElementsLayout(i))}},r.fx.step.sizeAndPosition=function(e){r.cssHooks.sizeAndPosition.set(e.elem,{left:null===e.end.left?null:Math.floor(e.start.left+e.pos*(e.end.left-e.start.left)),top:null===e.end.top?null:Math.floor(e.start.top+e.pos*(e.end.top-e.start.top)),width:null===e.end.width?null:Math.floor(e.start.width+e.pos*(e.end.width-e.start.width)),height:null===e.end.height?null:Math.floor(e.start.height+e.pos*(e.end.height-e.start.height))})}}(),function(e){$n.extendProperties(e,{attributes:{defaultValue:Fo},metaProps:{defaultValue:Fo},metaItemType:{defaultValue:Fo},metaTitle:{defaultValue:Fo}}),$n.hookAggregatedMethods(e,{switchToPreview:function(){var e=this,t=e.$element,n=e.getPropertyValue("metaTitle"),i=e.getPropertyValue("metaItemType"); i&&t.attr("itemtype",i),n&&t.attr("title",n)},switchToDesign:void 0})}(Qn.DesignElement);var ao={StyleBinding:1,PropertyBinding:2};!function(e){function t(e,t,n){var i=e.data.propertiesToStyleFieldsMap,a=e.getPropertyValue("styleBindingFields");return i&&i[t]&&(a[r.getKeys(i[t])[0]].type===n||!Ya.isDuringEditing())}function n(e){e.styleBindingsGroup.clear();var t=(e.getPropertyValue("styleBindingId"),e.getPropertyValue("styleBindingFields"));if(e.hasBindingToFields()){var n={};e.data.propertiesToStyleFieldsMap=n,r.eachEntry(t,function(t,i){var a=Wa.getFieldValueChangedEvent(e,i,t);a&&b.createEventListener(a,function(){ie.disableOperationsRecording("refreshStyleBinding"),r.eachEntry(i.properties,function(t){Ki.refreshPrioritisedCustomStates(e,t),Ki.recomputePropertyValue(e,t,!1)}),ie.enableOperationsRecording("refreshStyleBinding")}).addToGroup(e.styleBindingsGroup),r.eachEntry(i.properties,function(e,i){var a=r.objectGet(n,[e,t]);a=r.quickExtend({},a,i),r.objectSet(n,[e,t],a)})}),r.eachEntry(n,function(t){Ki.refreshPrioritisedCustomStates(e,e.properties[t])}),ia.isElementVisible(e)?e.styleBindingsGroup.activateAndExecuteAll():e.styleBindingsGroup.deactivateAll()}}$n.extendProperties(e,{styleBindingId:{defaultValue:Fo},styleBindingFields:{defaultValue:Fo}}),$n.extendElementInstanceMethods({hasBindingToFields:function(){var e=this.getPropertyValue("styleBindingId"),t=this.getPropertyValue("styleBindingFields");return e&&t&&r.count(t)>0},setSkinInstanceBox:function(e){this.data.skinInstanceBox=e},getSkinInstanceBox:function(){return Ya.isDuringEditing()&&Ya.getCurrentInstance()?Ya.getCurrentInstance():this.data.skinInstanceBox},getMainSkinInstance:function(){var e=this.getSkinInstanceBox();return e?e.getMainSkinInstance():void 0},getStyleFieldData:function(e,t){t=r.extend({},t);var n=this,i=t.stateName,a=t.sourceId,o=t.defaultValue,s=t.customStateData,l={value:r.extendIfObject(o),animation:void 0},c=n.properties[e],u=n.getStyleFieldsNames(e),d=n.getPropertyValue("styleBindingFields");if(r.eachEntry(u,function(e,t){if(t){var o=d[e],s=Wa.evaluateSkinFieldStateValue(n,{bindingData:o,fieldName:e,stateName:i,sourceId:a});if(s){var c=r.extendIfObject(s.value),u=r.extendIfObject(s.animation);void 0!==c&&(t.boundToProperty?l.value=c:r.eachEntry(t.fields,function(e){r.objectSet(l,["value",e],c)})),l.animation=r.extendValueWithDefaultValue(u,l.animation)}}}),void 0!==c.descriptor.valueConverter&&void 0!==l.value&&null!==l.value)for(var g=r.asArray(c.descriptor.valueConverter),f=0;f0||e.spread>0)&&a.append("0 0 {0}px {1}px {2}",e.blur,e.spread,e.color),t&&(t.blur>0||t.spread>0)&&a.append("inset 0 0 {0}px {1}px {2}",t.blur,t.spread,t.color),n&&(0!=n.left||0!=n.top||n.blur>0||n.spread>0)&&a.append("{0}px {1}px {2}px {3}px {4}",n.left,n.top,n.blur,n.spread,n.color),i&&(0!=i.left||0!=i.top||i.blur>0||i.spread>0)&&a.append("inset {0}px {1}px {2}px {3}px {4}",i.left,i.top,i.blur,i.spread,i.color),""+a}$n.extendProperties(e,{shadow:{title:void 0,isStateProperty:!0,isStyleProperty:!0,supportsThemeBinding:["color"],supportsStatesTransitionAnimation:!0,valueConverter:fa.createRoundPropertyValueConverter(["blur","spread","top","left"]),defaultValue:function(){return{top:0,left:0,spread:0,blur:0,color:"black"}},category:Jn.Shadow,onChange:function(e,t,n){e.isInitialized&&t&&(t=r.extend({},t,{color:Ma.evaluateColorBinding(t.color,!0)}),e.animatePart(e.$element,{dropShadow:t},!1,n))}},glow:{title:void 0,isStateProperty:!0,isStyleProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:["color"],defaultValue:function(){return{spread:0,blur:0,color:"black"}},valueConverter:fa.createRoundPropertyValueConverter(["blur","spread"]),onChange:function(e,t,n){e.isInitialized&&t&&(t=r.extend({},t,{color:Ma.evaluateColorBinding(t.color,!0)}),e.animatePart(e.$element,{glow:t},!1,n))},category:Jn.Shadow}}),$n.hookAggregatedMethods(e,{onInitialized:function(){var e,t,n=this,a=r.quickExtend({},n.getPropertyValue("glow")),o=r.quickExtend({},n.getPropertyValue("shadow"));n.hasFeature(Qn.HasInnerShadow)&&(e=r.quickExtend({},n.getPropertyValue("innerGlow")),t=r.quickExtend({},n.getPropertyValue("innerShadow")),t.color=Ma.evaluateColorBinding(t.color,!0),e.color=Ma.evaluateColorBinding(e.color,!0),n.setActualPropertyValue("innerGlow",e),n.setActualPropertyValue("dropInnerShadow",t)),a.color=Ma.evaluateColorBinding(a.color,!0),o.color=Ma.evaluateColorBinding(o.color,!0),n.setActualPropertyValue("glow",a),n.setActualPropertyValue("dropShadow",o);var s=i(a,e,o,t);""!==s&&n.getShadowTarget().css("boxShadow",s)}}),r.eachItem(["glow","innerGlow","dropShadow","dropInnerShadow"],function(e,i){r.cssHooks[i]={get:function(e){var t=n(e);return t?t.getActualPropertyValue(i):void 0},set:function(e,a){var o=n(e);if(o){var s=o.getActualPropertyValue(i);o.setActualPropertyValue(i,r.extend({},s,a)),t(o)}}},r.fx.step[i]=function(e){e.colorInit||(e.startColor=r.getRGBA(e.start.color),e.endColor=r.getRGBA(e.end.color),e.begin=r.quickExtend({},e.start),e.colorInit=!0);var t="rgba("+Math.max(Math.min(parseInt(e.pos*(e.endColor[0]-e.startColor[0])+e.startColor[0],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.endColor[1]-e.startColor[1])+e.startColor[1],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.endColor[2]-e.startColor[2])+e.startColor[2],10),255),0)+","+Math.max(Math.min(parseFloat(e.pos*(e.endColor[3]-e.startColor[3])+e.startColor[3],10),1),0)+")",n={blur:e.begin.blur+e.pos*(e.end.blur-e.begin.blur),spread:e.begin.spread+e.pos*(e.end.spread-e.begin.spread),color:t};"dropShadow"!==i&&"dropInnerShadow"!==i||(n.top=e.start.top+e.pos*(e.end.top-e.start.top),n.left=e.start.left+e.pos*(e.end.left-e.start.left)),r.cssHooks[i].set(e.elem,n)}})}(Qn.DesignElement),function(e){$n.extendProperties(e,{isParallaxBackground:{defaultValue:ko},parallaxBackgroundSpeed:{defaultValue:function(){return.5}},isParallaxElement:{defaultValue:function(){return{isActive:!1,speed:1,delay:0}}},effectsOptions:{defaultValue:function(){return{isParallax:!1,oneTimeAnimation:!1,duration:1200,startDistance:200,startVisibility:.8,distance:300,measureDistanceType:de.Visibility,delay:0,distanceDelay:0,runInLoop:!1,flyDirection:Le.Right,direction:"horizontal",movementDistanceHorizontally:200,movementDistanceVertically:0,autoStartDistanceSettings:!0,autoDistanceSettings:!0}}},effects:{defaultValue:Fo}}),$n.extendElementInstanceMethods({getInitializedTargetConnections:function(){var t=this,n=t.getBaseInitializedTargetConnections();if(t.hasFeature(e)){var i=t.getPropertyValue("effectsOptions"),a=t.getPropertyValue("effects");if(a&&a.length>0&&"None"!==a[0].name){var o=t.id+"parallaxEffect",s={id:o,sourceElementID:t.id,behaviourName:"ScrollingEffect",options:r.quickExtend({triggerType:bi.PageLoad,effects:a},i)};n[o]=s}if(t.getPropertyValue("isParallaxBackground")&&r.isPlainObject(t.getPropertyValue("imageUrl"))&&t.hasFeature(Qn.PageSection)&&!t.isFixed()){var o=t.id+"parallaxBackground",s={id:o,sourceElementID:t.id,behaviourName:"ParallaxImage",options:{triggerType:bi.PageLoad}};n[o]=s}var l=t.getPropertyValue("isParallaxElement");if(l.isActive&&!t.isFixed()){var o=t.id+"parallaxElement",s={id:o,sourceElementID:t.id,behaviourName:"ParallaxElement",options:{triggerType:bi.PageLoad,speed:l.speed,delay:l.delay}};n[o]=s}}return n}})}(Qn.DesignElement),function(e){function t(e,t){var n=e.getPropertyValue("binding"),i={};r.eachEntry(n.dataFields,function(e,n){e===ci.Data+""?i[e]=t:i[e]=t[n.name]}),e.onBoundValueReady(i,t),e.isInRefreshingBinding.setFalse("refreshBinding")}function n(e){e.isInRefreshingBinding.setFalse("refreshBinding")}$n.extendProperties(e,{dataFields:{},binding:{isNotForCustomProperty:!0,defaultValue:Fo,onChange:function(e,t,n,i){i&&e.data.callbackID&&ai[i.dataSourceName]&&e.data.callbackID.unbind(),e.isInRefreshingBinding.setTrue("bindingChanged"),Ki.UpdateBatch.start(),e.data.propertiesBindings&&(r.eachEntry(e.data.propertiesBindings,function(e,t){t.clearBinding()}),delete e.data.propertiesBindings),t&&t.dataSourceName&&(e.data.propertiesBindings=e.createBindingFieldsToProperties(),ai[t.dataSourceName]&&(e.data.callbackID=ai[t.dataSourceName].itemUpdatedEvent.bind(t.dataItemID,function(){e.refreshBinding()}))),e.refreshBinding(),Ki.UpdateBatch.finish(),e.isInRefreshingBinding.setFalse("bindingChanged")}}}),$n.extendElementInstanceMethods({setPropertyValueWithOrWithOutBinding:function(e,t,n){var i=this;i.data.propertiesBindings&&i.data.propertiesBindings[t]?i.data.propertiesBindings[t].setValue(e):n||i.setPropertyValue(t,e)},setBindingValueToProperty:function(e,t,n){var i=this;i.data.propertiesBindings&&i.data.propertiesBindings[t]?i.data.propertiesBindings[t].setValue(e):n||i.setPropertyValue(t,e)},setBindingValuesToProperties:function(e){var t=this;r.eachEntry(e,function(e,n){t.setBindingValueToProperty(n,e)})},isBoundToProperty:function(e){return ei[e].isBound(this)},setBinding:function(e,t,n){this.setPropertiesValues({binding:{dataSourceName:e,dataFields:n,dataItemID:t}})},refreshBinding:function(){var e=this;e.performWhenVisible(function(){var i=e.getPropertyValue("binding");i&&ai[i.dataSourceName]&&(e.isInRefreshingBinding.setTrue("refreshBinding"),ai[i.dataSourceName].fetchDataItem(i.dataItemID,i.dataFields,function(n){t(e,n)},function(t){n(e,t)}))},e.id+"refreshBinding-has-simple-binding")},isBound:function(e){var t=this.getPropertyValue("binding");return null!==t&&void 0!==t.dataFields[e]},getBindingFields:function(e){var t=this.getPropertyValue("binding"),n=["dataFields"];return void 0!==e&&n.push(e),r.objectGet(t,n,function(e){return!e})},createBindingFieldsToProperties:r.returnEmptyObject}),$n.extendAggregatedDefinitions(e,{onBoundValueReady:To}),$n.hookAggregatedMethods(e,{onCreation:function(){this.isInRefreshingBinding=k.createConditionalNegative()},onRemove:function(){var e=this,t=e.getPropertyValue("binding");t&&null!==t&&e.data.callbackID&&ai[t.dataSourceName]&&ai[t.dataSourceName].getCollectionItems().itemUpdatedEvent.unbind(e.data.callbackID)},onInitialized:function(){this.refreshBinding()}})}(Qn.DesignElement),function(){Xn.registerDefinition(Qn,{HasSkinBinding:{methods:{getSkinBinding:To,getSkinId:function(){var e=this.getSkinBinding();void 0!==e.index?e.index:"";return e.skinName+e.index},getStyleObject:function(){var e=this.getSkinBinding(),t=Ga.getStyle(e.skinName+e.index);return t},isSupportsMobile:function(){return this.getStyleObject().isSupportsMobile()&&this.getPropertyValue("isSupportsMobile")||this.isMobileOnlyStyle()},isMobileOnlyStyle:ko},aggregatedMethods:{aggregations:{changeMobileSupportState:function(e){this.isMobileOnlyStyle()||this.getStyleObject().toggleMobileSupport(e,!0)},onInitializing:function(){var e=this,t=e.getSkinBinding(),n=this.getSkinId();if(!Ga.isStyleExist(n)){var i=Wa.getSkinHierarchy(t);if(!i)return void ji.removeInstances([e]);var a=i.fieldsToValues,r=i.statesAnimations;Ga.addStyle(n,a,r)}}}}}})}(),function(){Xn.registerDefinition(Qn,{HasResponsiveItem:{defaultProperties:{display:function(){return Qe.Fixed}},properties:{display:{isStateProperty:!0,onChange:function(e,t){var n=t===Qe.Fixed;e.canResizeHorizontally.setValue(n,"displayProperty")}},cellItem:{isStateProperty:!0,notForUndoProperty:!0,defaultValue:Fo},cellHorizontalAlignment:{isStateProperty:!0,defaultValue:function(){return Je.None},onChange:function(e){e.refreshCellHorizontalAlignment()}}},methods:{shouldBeBlockElementInMobile:ko,isBlock:function(){return this.getPropertyValue("display")===Qe.Block||this.isFillHorizontal()},addToCellItem:function(){var e=this;this.$element.appendTo(this.getCellItem().getElementContainer()),e.classesManager.set({"is-in-cell-item":!0}),e.sizeElementClassesManager.set({"is-cell-item-size-box":!0}),e.contentBoxElementClassesManager.set({"is-cell-item":!0}),this.refreshCellHorizontalAlignment(),e.hasFeature(Qn.HasLayout)&&e.propertyChangedEvent.bindAndExecute("display",function(){var t=e.getPropertyValue("display")===Qe.Fixed;e.classesManager.set({"design-element-inline-block":t}),e.sizeElementClassesManager.set({"is-size-box-inline-block":t}),Gi.refreshElementsLayout(e)},"mobileFillLayout")},removeElementFromCellItem:function(){this.$element.detach(),this.classesManager.set({"is-in-cell-item":!1,"design-element-inline-block":!1}),this.sizeElementClassesManager.set({"is-cell-item-size-box":!1,"is-size-box-inline-block":!1}),this.contentBoxElementClassesManager.set({"is-cell-item":!1})},reAttachElementToContainer:function(){this.$element.appendTo(this.$container),this.classesManager.set({"is-in-cell-item":!1,"design-element-inline-block":!1}),this.sizeElementClassesManager.set({"is-cell-item-size-box":!1,"is-size-box-inline-block":!1}),this.contentBoxElementClassesManager.set({"is-cell-item":!1}),this.propertyChangedEvent.unbind("mobileFillLayout"),this.canResizeHorizontally.setValue(!0,"mobileFillLayout")},getCellItem:function(){return this.data.cellItem},setCellItem:function(e){this.data.cellItem=e,this.hasCellWrapper.setValue(void 0!==e&&null!==e)},refreshCellHorizontalAlignment:function(){if(this.getCellItem()){var e=this.getPropertyValue("cellHorizontalAlignment");e!==Je.None?this.getCellItem().$element.css({"text-align":"{0}".format(e)}):this.getCellItem().$element.css({"text-align":""})}},updateCellItemData:function(e){this.setPropertyValue("cellItem",e?e.getDataForSave():null)},getCellItemData:function(){return this.getPropertyValue("cellItem")},removeCellItem:function(){this.updateCellItemData(null),delete this.data.cellItem},shouldBeWithLayoutOnMobile:function(){return!this.isContent()},getMaxSize:function(){var e=this;if(Ta.Flags.IsInMobileContext.isTrue()&&e.shouldBeWithLayoutOnMobile()){if(e.hasCellWrapper.isTrue()&&e.getCellItem()&&!e.isDataListItem()&&!e.parentInstance.isType(Yn.userBox)&&!e.parentInstance.isType(Yn.Tab)){var t=ta.getCoordinator().getPropertyValue("innerRowPadding");return{height:1/0,width:e.getCellItem().getCellWidth()-2*t}}if(this.parentInstance){var n=this.parentInstance.getPropertyValue("padding");n=r.quickExtend({top:0,bottom:0,left:0,right:0},n);var i=this.parentInstance.getMaxSize();return this.parentInstance.hasFeature(Qn.PageSection)?{height:i.height,width:Ea.getRowContentWidth()-n.left-n.right}:(i.width=i.width!==1/0?i.width-n.left-n.right:i.width,this.parentInstance.hasFeature(Qn.HasResponsiveItem)&&this.parentInstance.isBlock()||this.parentInstance.getAutoLayoutProperties().width||this.parentInstance.isType(Yn.group)?i:{height:i.height,width:Math.min(i.width,this.parentInstance.getPropertyValue("sizeAndPosition").width-n.left-n.right)})}}return{height:1/0,width:1/0}},isRelativePositioned:function(){var e=this;return e.isRelativePositionedFlag.isTrue()||Ta.Flags.IsActivated.isTrue()&&this.isConvertedToMobile()},getAutoLayoutProperties:function($super){var e=$super.call(this);return this.hasCellWrapper.isTrue()?r.quickExtend(e,{left:this.isBlock(),width:this.isBlock()}):this.isRelativePositioned()&&this.isBlock()?r.quickExtend(e,{left:!0,width:!0}):e}}}})}(),function(){function e(e){var t=e.data.thumbsResolver?e.data.thumbsResolver.DataSourceResolver:void 0;return t?t.resolveDataSourceDefinition(e):e.getDataSourceDefinition()}Xn.registerDefinition(Qn,{HasDataSource:{properties:{dataInfo:{defaultValue:Fo,isNotForCustomProperty:!0,priority:-997,supportsBinding:!0,isBound:function(e){return e.isBound(oi.dataInfo.getContentType())},onChange:function(e,t){if(t&&e.elementType===Yn.Menu&&void 0===t.itemsMap&&t.currentData&&(t.currentData.itemsMap&&!r.isEmptyObject(t.currentData.itemsMap)?t.itemsMap=t.currentData.itemsMap:t.itemsMap={},t.currentData.itemsMap=void 0),e.isInitialized){e.getDataSource().setDataInfo();var n=e.getDataSource().getAllDataItems(),i={},a=e.getPropertyValue("itemsStyle");a&&(r.eachEntry(a,function(e,t){n[e]&&(i[e]=t)}),e.setPropertyValue("itemsStyle",i))}}},itemFields:{}},methods:{getDataSource:function(){return this.data.dataSource},getDataSourceName:function(){return this.getDataSource().name},getDataSourceDefinition:function(){return ri.InlineDataSource},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=oi.dataInfo.getContentType();return e.isBound(n)&&(t[ei.dataInfo.name]=no.create(e,{propertyName:ei.dataInfo.name})),t},hasBinding:function(){return ei.dataInfo.isBound(this)}},aggregatedMethods:{definitions:{onDataSourceRefresh:To},aggregations:{onCreation:function(){var t=this,n=t.data.dataSource=ii.loadDataSource(e(t),t.id,void 0,t);t.instanceRemoving.one(function(){n.clear(),delete ai[n.name]})},onInitialized:function(){this.getDataSource().setDataInfo()},onBoundValueReady:function(e){var t=oi.dataInfo.getContentType();this.setBindingValueToProperty(void 0===e[t]?null:e[t],ei.dataInfo.name)}}}}})}(),function(){function e(e,t,n){var i=e.$element;i.stop("propertyPadding",!0);var a={instancePadding:{left:t.left,top:t.top,bottom:t.bottom,right:t.right}};void 0===n?i.css(a):(i.animate(a,{duration:n.transitionDuration,queue:"propertyPadding"}),i.dequeue("propertyPadding"))}function t(e,t){e.handleContentSizeChange(t),Gi.refreshElementsLayout(e)}Xn.registerDefinition(Qn,{HasPadding:{properties:{padding:{isStateProperty:!0,isStyleProperty:!0,priority:996,defaultValue:function(){return{top:0,left:0,bottom:0,right:0}},valueConverter:fa.createRoundPropertyValueConverter(["top","left","bottom","right"]),category:Jn.Padding,supportsStatesTransitionAnimation:!0,onChange:e,scaleProperty:function(e){return{bottom:e.y,right:e.x,top:e.y,left:e.x}}}}}}),r.cssHooks.instancePadding={get:function(e){var t=n(e);return t?t.getActualPropertyValue("padding"):void 0},set:function(e,i){var a=n(e);a&&(a.getPaddingBox().css({paddingLeft:i.left,paddingTop:i.top,paddingBottom:i.bottom,paddingRight:i.right}),a.setActualPropertyValue("padding",i),t(a))}},r.fx.step.instancePadding=function(e){r.cssHooks.instancePadding.set(e.elem,{left:null===e.end.left?null:Math.floor(e.start.left+e.pos*(e.end.left-e.start.left)),top:null===e.end.top?null:Math.floor(e.start.top+e.pos*(e.end.top-e.start.top)),bottom:null===e.end.bottom?null:Math.floor(e.start.bottom+e.pos*(e.end.bottom-e.start.bottom)),right:null===e.end.right?null:Math.floor(e.start.right+e.pos*(e.end.right-e.start.right))})}}(),function(){Xn.registerDefinition(Qn,{HasBackgroundOverlay:{properties:{backgroundOverlay:{isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:!0,defaultValue:r.returnTransparent,getResetValue:r.returnTransparent,category:Jn.Background,onChange:function(e,t,n,i){t=Ma.evaluateColorBinding(t,!0);var a=e.getBackgroundLayer(Wi.BackgroundOverlay);if("transparent"===t||a||(a=e.addBackgroundLayer(Wi.BackgroundOverlay,function(){var e=new v;return e.append(''),e.conditionalAppend(!1,''),e.append(""),r(""+e)}),e.setBorderTarget(a)),a){var o=r.getBackgroundType(t),s=r.getBackgroundType(i);o===oo.Color&&s===oo.Color||(n=void 0);var l=void 0===s,c=a;l||c.clearBackground(),o===oo.Gradient?c.setGradient(r.valueOrDefault(t.orientation,et.Vertical),t.gradient):e.animatePart(c,{rgbaBackground:t},!1,n,{isInitialization:l})}}}}}})}();var ro={StopTransition:1,IgnoreNavigation:2,EnqueueNavigation:3};!function(){function e(){var e=this;e.stopAutoNavigation();var t=e.getAutoNavigationDuration();t>0&&(e.data.autoNavigationDuration=window.setInterval(function(){ia.isElementVisible(e)&&e.navigate(1),e.isDeleted&&e.stopAutoNavigation()},1e3*t))}function t(){var e=this;e.data.autoNavigationDuration&&(window.clearInterval(e.data.autoNavigationDuration),e.data.autoNavigationDuration=void 0)}Xn.registerDefinition(Qn,{Navigatable:{properties:{pagesData:{},pagesFields:{category:Jn.Other,onChange:function(e,t,n){var i=e.getFieldsInformation(),a=e.getFieldsCollection();a.postponeUpdates(),n&&r.eachEntry(n,function(e){t[e]||i.remove(e)}),r.eachEntry(t,function(e,t){n&&n[e]||i.put(t)}),a.unPostponeUpdates()},defaultValue:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0}}},isStateProperty:!0},entranceAnimation:{category:Jn.OwningType,defaultValue:function(){return pt.Slide.name},isStateProperty:!0},entranceAnimationSpeed:{category:Jn.OwningType,defaultValue:function(){return ot.Fast},isStateProperty:!0},entranceAnimationDirection:{category:Jn.OwningType,defaultValue:function(){return W.AnimationDirections.Left},isStateProperty:!0},exitAnimation:{category:Jn.OwningType,defaultValue:function(){return pt.Slide.name},isStateProperty:!0},exitAnimationSpeed:{category:Jn.OwningType,defaultValue:function(){return ot.Fast},isStateProperty:!0},exitAnimationDirection:{category:Jn.OwningType,defaultValue:function(){return W.AnimationDirections.Right},isStateProperty:!0},transitionOrder:{defaultValue:function(){return ln.Simultaneously},isStateProperty:!1},autoNavigationDuration:{isStateProperty:!0,defaultValue:function(){return 0},category:Jn.OwningType,onChange:function(e){e.startAutoNavigation()}},navigationDuringTransitionBehaviour:{defaultValue:function(){return ro.StopTransition},isStateProperty:!1}},methods:{navigateTo:To,navigateToTabIndex:function(e,t,n,i){this.showItem(e,t,n,i)},navigate:function(e,t,n,i){var a=this,o=a.getNavigatableInstances(),s=o.length;if(n=r.valueOrDefault(n,To),s>=1){var l=(a.getCurrentItem().getChildIndex()+e)%s;0>l&&(l+=s),a.navigateToTabIndex(l,t,n,i)}else n()},showItem:To,getUrlAddressForPage:To,getNavigatableInstances:function(){return this.childInstances},getAutoNavigationDuration:function(){return 0},getItemsCollection:function(){return this.data.itemsCollection},getFieldsCollection:function(){return this.data.fieldsCollection},getItemsInformation:function(){return this.data.itemsInforamtion},getFieldsInformation:function(){return this.data.fieldsInformation},getElementDataContent:function(){return this.getCurrentItem().getElementContent()},startAutoNavigation:e,stopAutoNavigation:t,getCurrentPageIndex:function(){var e=this,t=e.getCurrentItem(),n=0;return t&&(n=t.getChildIndex(),(!n||0>n)&&(n=0)),n}},lazyInitializationProperties:{currentItemChangedEvent:b.create,currentItemFinishChanging:b.create,itemsRefreshed:b.create},aggregatedMethods:{aggregations:{switchToPreview:function(){this.currentItemChangedEvent.fireNew({prevItem:void 0,currentItem:this.getCurrentItem()}),this.startAutoNavigation()},onCreation:function(){var e=this;e.data.itemsInforamtion=new Mt,e.data.itemsCollection=zt.create(e.data.itemsInforamtion),e.data.fieldsInformation=new Mt({idFunction:function(e){return e.name}}),e.data.fieldsCollection=zt.create(e.data.fieldsInformation)},onInitialized:function(){var e=this;e.data.itemsCollection.itemsChangedEvent.bindAndExecute(function(){0!==e.getNavigatableInstances().length&&(ie.disableOperationsRecording("instance.data.itemsCollection.itemsChangedEvent"),Ui.beginReorderingBatch(),r.eachEntry(e.data.itemsCollection.getItems(),function(e,t){var n=ji.getInstanceByID(t.id);n&&(n.setPropertyValue("name",t.title),n.setPropertyValue("order",t.index))}),Ui.endReorderingBatch(),ie.enableOperationsRecording("instance.data.itemsCollection.itemsChangedEvent"))}),e.data.fieldsInformation.itemsRemovedEvent.bind(function(t){var n=e.data.itemsInforamtion.getItemsValues();r.eachItem(n,function(e,n){r.eachItem(t,function(e,t){delete n[t.name]})}),e.data.itemsInforamtion.put(n)})}}}}})}(),function(){Xn.registerDefinition(Qn,{Selectable:void 0})}(),function(){function e(e){i(e)}function t(e){var t=e.getBackgroundLayer(Wi.BackgroundImage);if(!t){t=e.addBackgroundLayer(Wi.BackgroundImage,function(){return e.getImageLayerTemplate()});var n=vt.createDisplayController(t);e.data.imageLayerDisplayController=n,n.setValue(e.showImageLayer.isTrue())}return t}function n(e){var n=e.data.imageBox;return n||(n=t(e).makeImageBoxNew({autoLoad:!1,layout:s(e),viewPort:e.data.imageBoxViewport,position:e.getPropertyValue("imagePosition")}),n.setVirtualViewport(e.data.imageBoxVirtualViewport),e.data.imageBox=n,e.actualPropertyValueChanged.bindAndExecute("borderRadius",function(){var t=e.getActualPropertyValue("borderRadius");t||(t={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0}),n.setBorderRadius(t)}),e.actualPropertyValueChanged.bindAndExecute("borderWidth",function(){e.handleImageBoxBorderWidthChange()}),e.visibilityChangedEvent.bindAndExecute(function(){o(e)}),n.viewportChangedEvent.bind(function(){i(e)}),e.onImageBoxCreated(n)),n}function i(e,t){var n=u(e);wn.requestIndpendentWriteOperation(function(){a(e,t,n)},e.id+"updateCurrentImage")}function a(e,t,i){var a=e.getPropertyValue("imageUrl"),r=null,s=null,l=void 0,u=e.getImageBox();if(""!==a&&null!==a&&void 0!==a){u=n(e);var d=u.getViewportForLayout();if(0===d.width||0===d.height)return;void 0!==a.imageWidth&&void 0!==a.imageHeight&&(l={width:a.imageWidth,height:a.imageHeight}),s=J.resolveImageUrl(a,void 0,i);var g=c(e);r=g?g.resolveDataSourceDefinition(a,d,u.getLayout(),l):J.resolveImageUrlBasedOnLayout(a,d,u.getLayout(),l,i)}var f=e.data.currentBaseImageUrl===s&&e.data.currentImageUrl!==r;t&&(f=!0),e.data.currentImageUrl=r,e.data.currentBaseImageUrl=s,u&&(u.setImage({imageUrl:r,imageSize:l}),o(e,f))}function o(e,t){if(ia.isElementVisible(e)){var n=e.getImageBox();n&&n.loadImage(t)}}function s(e){var t=e.getPropertyValue("imageLayout");return t===Jt.Custom?e.getPropertyValue("customLayout"):t}function l(e,n,i,a){var r=void 0===a;r&&1===n||e.animatePart(t(e),{opacity:n},!0,i,{isInitialization:r})}function c(e){return e.data.thumbsResolver?e.data.thumbsResolver.ImageResolver:void 0}function u(e){var t=void 0;return e.isTypeOf(Yn.VideoPlayer)&&(t=e.getImageLoadingOptions()),t}Xn.registerPropertiesCategories({BackgroundImage:{title:void 0,iconClass:"sprite-icon sprite-property-category-image"}}),Xn.registerDefinition(Qn,{HasImage:{properties:{imageUrl:{title:"Image",isStyleProperty:!0,isStateProperty:!0,defaultValue:r.returnEmptyString,supportsBinding:!0,isBound:function(e){return e.isBound(oi.image.getContentType())||e.isBound(oi.icon.getContentType())||e.isBound(oi.video.getContentType())},onChange:e,category:Jn.BackgroundImage},imageLayout:{title:"Image Layout",isStyleProperty:!0,isStateProperty:!0,isBound:function(e){return e.isBound(oi.image.getContentType())||e.isBound(oi.icon.getContentType())||e.isBound(oi.video.getContentType())},defaultValue:function(){return Jt.Cover},category:Jn.BackgroundImage},imagePosition:{title:"Image Position",isStyleProperty:!0,isStateProperty:!0,defaultValue:function(){return{vertical:"center",horizontal:"center"}},isBound:function(e){return e.isBound(oi.image.getContentType())||e.isBound(oi.icon.getContentType())||e.isBound(oi.video.getContentType())},category:Jn.BackgroundImage},origImage:{title:"OrigImage",isStyleProperty:!0,isStateProperty:!0,defaultValue:r.returnEmptyString,supportsBinding:!1,onChange:To,category:Jn.BackgroundImage},customLayout:{title:"Custom Layout",isStateProperty:!0,defaultValue:To,category:Jn.BackgroundImage},imageOpacity:{title:"Image Opacity",isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,getResetValue:r.returnOne,defaultValue:r.returnOne,valueConverter:function(e){return void 0===e&&(e=1),r.adjustFraction(e,3)},onChange:l,category:Jn.BackgroundImage}},methods:{useImageLayer:function(){return t(this)},getImageLayerTemplate:function(){return r('
')},forceImageBoxCreation:ko,getImageBox:function(){return this.data.imageBox},handleImageBoxBorderWidthChange:function(){var e=this,t=e.data.imageBox,n=e.getActualPropertyValue("borderWidth");n||(n={left:0,top:0,right:0,bottom:0}),t.setBorderWidth(n)},setImageBoxVirtualViewport:function(e){this.data.imageBoxVirtualViewport=e;var t=this.getImageBox();t&&t.setVirtualViewport(e)},setImageBoxViewport:function(e,t){this.data.imageBoxViewport=e;var n=this.getImageBox();n&&n.setViewPort(e,t)}},aggregatedMethods:{definitions:{onImageBoxCreated:function(){this.imageBoxCreatedFlag.setTrue()}},aggregations:{onCreation:function(){var e=this;e.imageBoxCreatedFlag=k.create(!1),e.showImageLayer=k.createConditionalPositive({valueChangeCallback:function(t){var n=e.data.imageLayerDisplayController;n&&n.setValue(t)}})},onPropertiesChanged:function(e){var t=this,n=t.getImageBox();n&&(r.containsOneOfKeys(e,"imageLayout","customLayout")&&(n.setLayout(s(t)),i(t)),r.containsOneOfKeys(e,"imagePosition")&&n.setPosition(t.getPropertyValue("imagePosition")))},onInitializing:function(){var e=this;this.data.currentImageUrl=null,this.data.currentBaseImageUrl=null,this.forceImageBoxCreation()&&wn.requestIndpendentWriteOperation(function(){n(e)},e.id+"initializeImageBox")}}}}})}();var oo={Color:1,Gradient:2,Image:3,Texture:4};!function(e){e.getBackgroundType=function(t){if(void 0!==t){if(e.isPlainObject(t)){if(void 0!==t.color)return oo.Color;if(void 0!==t.gradient)return oo.Gradient;if(void 0!==t.imagePath)return oo.Image}return oo.Color}}}(o),function(){function e(e,t,n,i,a){var o=void 0===a,s=e.getBackgroundTarget();o||s.clearBackground(),t=Ma.evaluateColorBinding(t),i===oo.Gradient?s.setGradient(r.valueOrDefault(t.orientation,et.Vertical),t.gradient):(t=r.Color(t).toCSS(),e.animatePart(s,{rgbaBackground:t},!1,n,{isInitialization:o}))}Xn.registerPropertiesCategories({Background:{title:void 0,iconClass:"sprite-icon sprite-property-category-background",shortTitle:"Background"}}),Xn.registerDefinition(Qn,{HasBackground:{properties:{backgroundColor:{isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:!0,defaultValue:r.returnTransparent,getResetValue:r.returnTransparent,category:Jn.Background,onChange:function(t,n,i,a){var o=r.getBackgroundType(n),s=r.getBackgroundType(a);o===oo.Color&&s===oo.Color||(i=void 0),t.handleBackgroundUpdate(t.$element,n,i,o,s)||e(t,n,i,o,s)}}},methods:{handleBackgroundUpdate:ko}}})}(),function(){Xn.registerDefinition(Qn,{HasBackgroundImage:{features:[Qn.HasImage,Qn.HasBackgroundOverlay],methods:{autoCalculateBackgroundViewPort:xo},aggregatedMethods:{aggregations:{changeMobileSupportState:function(e){ var t=this,n=Ta.getMobileState();e?Ki.setValueInCustomState(t,t.properties.imageUrl,n,t.getPropertyValue("imageUrl")):Ki.resetCustomStateProperty(t,n,"imageUrl")},onInitializing:function(){var e=this,t=b.createEventListenersGroup();e.sizeChangedEvent.bind(function(){e.autoCalculateBackgroundViewPort()&&wn.requestIndpendentWriteOperation(function(){e.setImageBoxViewport(e.getSize())},e.id+"setImageBoxViewport")});var n=r.weakID(),i=b.createEventListener([pa.ViewPortChanged,e.sizeChangedEvent],function(){ur.performOnFramesLayoutUpdade(function(){if(a.isTrue()){var t=e.getSize(),n=pa.getViewPort();e.setImageBoxVirtualViewport({width:t.width,height:Math.max(t.height,n.height)})}},n)}).addToGroup(t),a=k.createConditionalPositive();a.setFalse("ElementVisible"),a.setFalse("HasParallaxBackground"),a.createValueListener(function(e){e?i.activateAndExecuteNew():i.deactivate()}).activate().addToGroup(t),b.createEventListener(e.visibilityChangedEvent,function(){var t=ia.isElementVisible(e);a.setValue(t,"ElementVisible")}).addToGroup(t).activateAndExecuteNew();var o=k.createConditionalPositive();o.setFalse("EnabledByUser"),o.setFalse("Supported"),o.createValueListener(function(t){a.setValue(t,"HasParallaxBackground"),t||e.setImageBoxVirtualViewport(void 0)}).addToGroup(t).activate(),b.createEventListener({name:"isParallaxBackground",event:e.propertyChangedEvent},function(){o.setValue(e.getPropertyValue("isParallaxBackground"),"EnabledByUser")}).addToGroup(t).activateAndExecuteNew(),b.createEventListener([Ta.Flags.IsInMobileContext.valueChangedEvent],function(){o.setValue(Ta.Flags.IsInMobileContext.isFalse(),"Supported")}).addToGroup(t).activateAndExecuteNew(),e.instanceRemoving.one(function(){t.disposeAll()})}}}}})}(),function(){function e(e){e.data.prevArrangementOptions=e.dataLayoutController.getLastArrangementOptionsByCurrentDevice(),e.hasFeature(Qn.Navigatable)&&e.getItemsCollection().postponeUpdates()}function t(e){e.hasFeature(Qn.Navigatable)&&e.getItemsCollection().unPostponeUpdates(),b.fireLazyEvent(e,"reArrangingFinished"),e.reArrangingFinishedWasFired=!0}function n(e){var t=e.dataLayoutController.getLastArrangementOptions();if(t&&t.options){var n=t.options,i=e.getSize(),a=e.data.prevArrangementOptions,r=n.shouldPush;r&&Ja.recalaculateSiblingsAndParentAreas();var s=ma.adjustDataListToContent(e);if(Gi.refreshElementsLayout(e),e.alignHorizontal(),e.alignVertical(),r&&s){var l=Ja.supportsPreCalculationOfDiffHeights(),c=l?e.calculateDiffHeight(i,s,a.contentSize,t.contentSize):void 0;void 0!==c&&0!==c&&Ja.requestPushing(e,c)}Gi.requestUpdatePosition(e.getDescendingInstances(!0))}o(e)}function i(e,t){t=r.quickExtend({},e.getArrangementOptions(),t),e.dataLayoutController.reArrangeTheLayout(t)}function a(e){e.reArrangementDisabled.setValue(!0,"inRearrange"),ie.disableOperationsRecording("beforeChangingDomFactory"),ur.startRenderingBatch()}function o(e){ur.finishRenderingBatch(),ie.enableOperationsRecording("beforeChangingDomFactory"),e.reArrangementDisabled.setValue(!1,"inRearrange")}Xn.registerDefinition(Qn,{HasArrangement:{methods:{calculateDiffHeight:function(e,t){return t.height-e.height},alignHorizontal:function(){var e=this;if(e.hasHorizontalAlign()){var t=e.getPropertyValue("horizontalAlign");e.data.$arrangementContentHolder.css("text-align",t),ia.invalidateAreas(e.getDescendingInstances(),{updateSize:!1})}},addChildElement:function(e){return e.isContent()?this.data.$arrangementContentHolder.append(e.$element):this.getElementContent().append(e.$element)},creationFunction:function(e){var t=new v;t.append('
'),t.append('
'),t.append('
'),t.append("
");var n=r(""+t);return e.data.$arrangementContentHolder=r(".arrangement-content-holder",n).toggleLayerEventsForwarding(!0),e.data.$relativeChildElementContentHolder=r(".relative-child-elements-content-holder",n).toggleLayerEventsForwarding(!0),n},reArrangeTheTemplates:function(e){var t=this;if(t.isInstanceVisible()){t.dataLayoutController.getArrangement();i(t,r.quickExtend(e,{shouldFetch:t.data.shouldFetch})),t.data.shouldFetch=void 0}},requestArrangement:function(e){var t=this;e=r.extend({shouldFetch:!0},e),e.shouldFetch&&(t.data.shouldFetch=!0),t.reArrangementDisabled.isTrue()||Hi.IsElementInFullScreen.isTrue()||t.addArrangementRequest(e)},addArrangementRequest:function(e){var t=this;Gi.LayoutContentOperationsSet.requestOperation(function(){t.reArrangeTheTemplates(e)},t.getArrangementRequestName())},getArrangementRequestName:function(){return this.id+"requestArrangement"},getArrangementOptions:function(){var e=this.getPropertyValue("dataLayoutOptions");return r.extend({},e,{instanceContentSize:this.getContentSize(),scale:void 0,keepItemSize:!0})},getCalculatedPropertyValue:function($super,e){return"dataItemSize"===e?this.dataLayoutController.getLastArrangementOptionsByCurrentDevice().fixedSize:$super.call(this,e)},setCalculatedPropertyValue:function($super,e,t,n,i){var a=this;"dataItemSize"===e?Ja.Flags.EnablePushing.onceTrue(function(){ie.disableOperationsRecording("dataItemSize"+a.id),a.requestArrangement({fixedSize:t,shouldPush:!0}),ie.enableOperationsRecording("dataItemSize"+a.id)}):$super.call(a,e,t,n,i)}},aggregatedMethods:{aggregations:{onCreation:function(){var i=this,s=Co.create(i),l=r.firstArgProxy(a,i);i.dataItemsController=s,i.dataLayoutController=Io.create(s,{onArrangementStarted:r.firstArgProxy(e,i),onArrangementFinished:r.firstArgProxy(t,i),startInitializingLayoutCallback:l,finishInitializingLayoutCallback:r.firstArgProxy(o,i),startArrangingCallback:l,finishArrangingCallback:r.firstArgProxy(n,i),setParentContent:function(e){i.data.$arrangementContentHolder.empty().append(e)},getContainerSize:function(){return i.getContentSize()}})},onPropertiesChanged:function(e){var t=this;if(r.containsOneOfKeys(e,"dataLayout")){var n=t.getPropertyValue("dataLayout");t.dataLayoutController.setArrangement(n.name)}},onInitializing:function(){var e=this;e.dataItemsController.initialize();var t=e.getPropertyValue("dataLayout");e.dataLayoutController.setArrangement(t.name)}}},properties:{dataLayout:{isStateProperty:!0,priority:-998,defaultValue:Fo},dataLayoutOptions:{defaultValue:function(){return{elementsPerPage:4,lineSpacing:15,cols:2,rows:5,columnSpacing:15,colsSpacing:15,rowsSpacing:15,rotation:0,R:100}},isStateProperty:!0,priority:-998,valueConverter:fa.createRoundPropertyValueConverter(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","numberOfRows"]),scaleProperty:function(e){return{lineSpacing:e.x,columnSpacing:e.y,colsSpacing:e.x,rowsSpacing:e.y,R:e.x}}}},calculatedProperties:["dataItemSize"]}})}(),function(){Xn.registerDefinition(Qn,{HasContent:{methods:{hasVerticalAlign:ko,hasHorizontalAlign:ko,alignHorizontal:function(){var e=this;if(e.hasHorizontalAlign()){var t=e.getPropertyValue("horizontalAlign");e.getElementContent().positionHorizontally(t,void 0,{skipPositionCheck:!0})}Gi.refreshElementsLayout(e.childInstances)},alignVertical:function(){var e=this;e.hasVerticalAlign()&&e.getElementContent().positionVertically(this.getPropertyValue("verticalAlign"),void 0,{skipPositionCheck:!0}),Gi.refreshElementsLayout(e.childInstances)},alignContentHorizontal:function(){if(this.hasContentHorizontalAlign()){var e=this.getPropertyValue("horizontalContentAlign");e!==Je.None?this.getElementContent().css({"text-align":"{0}".format(e)}):this.getElementContent().css({"text-align":""})}},hasContentHorizontalAlign:ko,getElementDataContentSize:function(){var e=this.getElementDataContent();return e.outerSize()},calculateSizeContent:function(e){var t=this;if(t.InstancePropertiesInitialized.isTrue()){e=e||this.getElementDataContentSize();var n=t.getNoneContentSize(),i=t.getSize(),a=i.height-n.height,o=e.height-a;if(0!==o)return i=r.quickExtend({},i),i.height=i.height+o,i}else;},getNewContentSize:function(e){return this.calculateNewContentSize(e)},calculateNewContentSize:function(e){e=r.extend({horizontally:!0,vertically:!0},e);var t,n=this;if(n.hasFeature(Qn.DataList))t=n.dataLayoutController.getSize();else{var i=n.getElementDataContent();if(!i)return;t=i.outerSize()}if(t){var a,o,s=n.getNoneContentSize();return e.horizontally&&(a=void 0===e.minWidth||t.width+s.width>e.minWidth?t.width+s.width:e.minWidth),e.vertically&&(o=void 0===e.minHeight||t.height+s.height>e.minHeight?t.height+s.height:e.minHeight),{width:a,height:o}}},adjustSizeToContent:function(e){e=r.extend({horizontally:!0,vertically:!0},e);var t=this,n=t.getNewContentSize({minWidth:e.minWidth,minHeight:e.minHeight});return n?(Gi.LayoutContentOperationsSet.requestOperation(function(){t.hasFeature(Qn.DataList)&&t.reArrangementDisabled.setValue(!0,"adjustingSize"),Xi.setInstancesSize(t,{width:e.horizontally?n.width:void 0,height:e.vertically?n.height:void 0},{preserveVerticalMargins:!0,preserveHorizontalMargins:!0}),t.hasFeature(Qn.DataList)&&t.reArrangementDisabled.setValue(!1,"adjustingSize")},t.id+"adjustDataListToContent"),n):void 0},getElementDataContent:function(){return this.getElementContent()},whenInstanceContentHeightChanged:function(e,t){t=r.extend({forceUpdate:!1,onlyGrow:!1},t);var n=t.forceUpdate,i=this;if(n||!i.duringResizing.isTrue()&&!i.data.disableElementSizeUpdate){var a=ia.getElementSize(i),o=i.calculateNormalizedHeight(e);if(t.onlyGrow&&(o=Math.max(a.height,o)),o!==a.height){ie.disableOperationsRecording("contentChange"),ur.startRenderingBatch(),Ja.recalaculateSiblingsAndParentAreas(),i.isFillVertical()||Gi.LayoutContentOperationsSet.requestOperation(function(){Xi.setInstancesSize(i,{height:o},{preserveVerticalMargins:!0})},i.id+"whenInstanceContentHeightChanged");var s=o-a.height;Ja.requestPushing(i,s),ur.finishRenderingBatch(),ie.enableOperationsRecording("contentChange")}}},calculateNormalizedHeight:function(e){var t,n=this,i=n.getSize(),a=n.getNoneContentSize(),o=e+a.height,s=n.getLastResizingSize(),l=s?r.valueOrDefault(s.height,0):0;return t=Ta.Flags.IsInMobileContext.isTrue()&&0===l?Math.max(i.height,o):Math.max(l<=i.height?l:i.height,o)}},properties:{verticalAlign:{isStateProperty:!0,isStyleProperty:!0,category:Jn.Layout,defaultValue:function(){return Ye.Centered},onChange:function(e){e.alignVertical()}},horizontalAlign:{isStateProperty:!0,isStyleProperty:!0,category:Jn.Layout,defaultValue:function(){return Ke.Centered},onChange:function(e){e.alignHorizontal(),ia.invalidateAreas(e.getDescendingInstances(),{updateSize:!1})}},horizontalContentAlign:{isStateProperty:!0,isStyleProperty:!0,category:Jn.Layout,defaultValue:function(){return Ke.Centered},onChange:function(e){e.alignContentHorizontal(),ia.invalidateAreas(e.getDescendingInstances(),{updateSize:!1})}}}}})}(),function(){Xn.registerDefinition(Qn,{HasTemplates:{properties:{fieldsTemplates:{isStateProperty:!0,defaultValue:r.returnEmptyObject,preSaveProcessing:function(e){return r.eachEntry(e,function(e,t){r.eachEntry(t,function(e,t){var n=t.hierarchy.structures[0].elementProperties.skinBinding;if(n&&n.hierarchy){var i=n.skinName+n.index,a=Ga.getStyle(i);if(a){var r=Ga.getStyleInformation(i);n.hierarchy.fieldsToValues=r.fields,n.hierarchy.statesAnimations=r.statesAnimations}}})}),e},comparer:function(e,t){var n=!0;return r.eachEntry(e,function(e,i){return r.eachEntry(i,function(i,a){return t[e]&&t[e][a.id]?void 0:(n=!1,!1)}),n?void 0:!1}),n},priority:-998,onChange:function(e){e.refreshTemplates()}}},methods:{getSkinBinding:function(){var e=this.getDefaultTemplate();return r.cloneObject(e.hierarchy.structures[0].elementProperties.skinBinding)},isMobileOnlyStyle:function(){return!!Ki.getPropertyValueInCustomState(this.properties.fieldsTemplates,Ta.MobileStateName,ta.getCoordinator().id,this)},updateSkinBindingFromEditingTemplate:function(e,t,n){var i=this;if(i.hasFeature(Qn.HasFormData)){var a=r.extend({},i.getPropertyValue("fieldsTemplates"));delete a.TextArea,i.setPropertyValue("fieldsTemplates",a)}return i.replaceTemplate(t,{fieldName:n?n:e.getFieldName()}),i},refreshTemplates:function(){ie.disableOperationsRecording("refreshTemplates");var e=this;r.eachItem(e.getItemsControllers(),function(t,n){var i=n.getDataItemId(),a=e.getDataSource().getItem(i),r=e.getDefaultTemplate(a.fieldTypeName).hierarchy;r.id!==n.getTemplateStructure().id&&(n.setTemplateStructure(r),e.resetItemTemplateSize(n,!0))}),ie.enableOperationsRecording("refreshTemplates")},refreshTemplatesSize:function(e){var t=this;r.eachItem(t.getItemsControllers(),function(n,i){t.resetItemTemplateSize(i,e)})},resetItemTemplateSize:function(e,t){var n=this,i=n.getPropertyValue("itemsStyle"),a=e.getDataItemId(),o=n.getDataSource().getItem(a),s=n.getDefaultTemplate(o?o.fieldTypeName:void 0).hierarchy;(t||s.id!==e.getTemplateStructure().id)&&i[a]&&e.setSize(r.extend({},i[a].sizeAndPosition))},getDefaultTemplate:function(e){e=e?e:this.elementType.itemName;var t=r.getValues(this.getFieldsTemplates()[e])[0];return t},getFieldsTemplates:function(){var e=this.getPropertyValue("fieldsTemplates"),t=r.quickExtend({},e);return r.eachEntry(e,function(e,n){t[e]=r.quickExtend({},n)}),t}},features:[Qn.HasSkinBinding]}})}(),function(){function e(e,t,n){if(Ki.notifyCalculatedPropertyChange(e,"calculatedTextColor"),null===t){var i=Ba.getElementTextStyle(e);i&&(t=i.color)}null===t?e.getTextElements().css("color",""):(t=Ma.evaluateColorBinding(t,!0),e.animatePart(e.getTextElements(),{color:t},!1,n))}function t(e,t,n){if(Ki.notifyCalculatedPropertyChange(e,"calculatedFontSize"),null===t){var i=Ba.getElementTextStyle(e);i&&(t=i.fontSize)}null===t?e.getTextElements().css("font-size",""):e.animatePart(e.getTextElements(),{"font-size":t},!1,n,{step:function(){e.refreshTextLayout()},complete:function(){e.refreshTextLayout()}})}function n(e,t,n,i){if(null===n)e.getTextElements().css(t,"");else{var a={};a[t]=n,e.animatePart(e.getTextElements(),a,!1,i,{step:function(){e.refreshTextLayout()},complete:function(){e.refreshTextLayout()}})}}function i(e,t){switch(t.unit){case qe.Percentages:e.getTextElements().css("line-height",t.percentages/100);break;default:e.getTextElements().css("line-height",1.2)}}function a(e,t){if(Ki.notifyCalculatedPropertyChange(e,"calculatedFontFamily"),null===t){var n=Ba.getElementTextStyle(e);n&&(t=n.fontFamily)}t=Na.evaluateFontBinding(t),e.getTextElements().css("font-family",null!==t?t:"")}function o(e,t){e.hasFeature(Qn.HasRichContent)||e.getTextElements().toggleClass("label-text-bold",t.bold===!0).toggleClass("label-text-underline",t.underline===!0).toggleClass("label-text-italic",t.italic===!0)}Xn.registerPropertiesCategories({TextStyle:{title:void 0,shortTitle:void 0,iconClass:"sprite-icon sprite-property-category-text"}}),Xn.registerDefinition(Qn,{HasText:{className:"has-text",properties:{namedTextStyle:{defaultValue:Fo,isStateProperty:!0,isStyleProperty:!0,onChange:function(e){Gi.layoutUpdateBatch.start(),Ki.invalidateProperty(e,"font"),Ki.invalidateProperty(e,"fontSize"),Ki.invalidateProperty(e,"fontColor"),Gi.layoutUpdateBatch.finish()}},fontColor:{category:Jn.TextStyle,isStateProperty:!0,isStyleProperty:!0,isTextStyleProperty:!0,defaultValue:function(){return"black"},supportsStatesTransitionAnimation:!0,supportsThemeBinding:function(e,t){if(null!==e)return Ma.isColorBinding(e);var n=Ba.getElementTextStyle(t);return n?Ma.isColorBinding(n.color):!1},onChange:e},textShadow:{isStateProperty:!0,isStyleProperty:!0,supportsThemeBinding:function(e){return e?r.any(e,function(e){return Ma.isColorBinding(e.color)}):!1},supportsStatesTransitionAnimation:!1,category:Jn.TextStyle,defaultValue:function(){return[]},valueConverter:function(e){return e&&e.length>0?r.quickUnique(e,function(e){return"{0}-{1}-{2}-{3}".format(e.top,e.left,e.blur,e.color)}):e},onChange:function(e,t,n,i){var a=void 0===i;if(!a||t.length>0){var o;if(t.length>0){for(var s=[],l=0;l").bind("click",function(e){i!==Ge.Pages&&e.stopPropagation()});e.getPropertyValue("openInTopWindow")?o.attr("target","_top"):(e.getPropertyValue("openInNewTab")||i===Ge.RSS||ei.urlAddress.isBound(e)&&i!==Ge.Pages)&&o.attr("target","_blank"),i===Ge.Pages&&o.addClass("internal-link"),e.getPropertyValue("shouldUnderlineChildren")&&o.addClass("has-underline-children"),o.attr("href",n),a.wrap(o),e.data.wrapWithLink=!0}}}function t(t,n){if(t.isInPreview()&&e(t,n),t.data.pageDeletedForUrlBinding&&t.data.pageDeletedForUrlBinding.unbind(),n&&n.type===Ge.Pages){var i=ta.getPageData(n.url);i?t.data.pageDeletedForUrlBinding=ta.Events.PageDeleted.bind(function(e){e===n.url&&(ie.disableOperationsRecording("changingUrlAddress"),t.setPropertyValue("urlAddress",null),ie.enableOperationsRecording("changingUrlAddress"))}):(ie.disableOperationsRecording("changingUrlAddress"),t.setPropertyValue("urlAddress",null),ie.enableOperationsRecording("changingUrlAddress"))}}var i={True:{"webzai-clickable-behaviour":!0},False:{"webzai-clickable-behaviour":!1}};Xn.registerDefinition(Qn,{Clickable:{className:"clickable-element",properties:{urlAddress:{defaultValue:Fo,supportsBinding:!0,isNotForCustomProperty:!0,isBound:function(e){return e.isBound(oi.link.getContentType())},valueConverter:function(e){return"string"!=typeof e?e:{url:e,type:Ge.Web}},onChange:t},openInNewTab:{defaultValue:ko},openInTopWindow:{defaultValue:ko},shouldUnderlineChildren:{defaultValue:ko}},methods:{isLinkEnabled:function(){var e,t,n=this;if(n.isContent()){if(e=n.getMainSkinInstance(),e&&e.hasFeature(Qn.DataListItem)&&(t=e.getItemMainParent(),t&&t.hasFeature(Qn.HasPopup)))return!t.isPopupEnabled()}else if(!n.hasFeature(Qn.DataList)&&n.hasFeature(Qn.HasPopup))return!n.isPopupEnabled();return!0},hasBinding:function($super){return $super.call(this)||ei.urlAddress.isBound(this)},hasButtonBehaviour:function(){var e=this,t=e.getPropertyValue("urlAddress"),n=t&&t.url;return n||Ji.hasTargetConnectionsInPagesForTriggers(e,ta.getCurrentPage(),Pi.MouseDown,Pi.MouseClick,Pi.MouseUp)||Ki.isStyleAffectingInPage(e,ta.getCurrentPage(),Ei.MouseDownState)||Ki.isStyleAffectingInPage(e,ta.getCurrentPage(),Ei.ElementSelectedState)||r.count(e.getPropertyValue("customStates"))>0},refreshCursor:function(){var e=this;e.hasButtonBehaviour()?e.classesManager.set(i.True):e.classesManager.set(i.False)},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=oi.link.getContentType();return this.isBound(n)&&(t[ei.urlAddress.name]=no.create(e,{propertyName:ei.urlAddress.name})),t},removeUrl:function(){var e=this;if(e.data.wrapWithLink){var t=e.getMainBox();t.unwrap(),e.data.wrapWithLink=!1}else e.data.bindToLink&&(e.getMainBox().unbind("click.link"),e.data.bindToLink=!1)}},aggregatedMethods:{aggregations:{onInitialized:function(){this.refreshCursor()},switchToPreview:function(){var t=this;window.setTimeout(function(){e(t,t.getPropertyValue("urlAddress"))},0)},onBoundValueReady:function(e){var t=oi.link.getContentType();this.isBound(t)&&this.setBindingValueToProperty(void 0===e[t]?null:e[t],ei.urlAddress.name)}}},features:[Qn.UserSelectable],triggers:[Pi.MouseClick,Pi.MouseDown,Pi.MouseUp],supportedStates:[Ei.MouseDownState]}}),W.Events.LastEventOnInitiailizatGlobal.one(function(){r(document).on("vmousedown",".design-element.clickable-element",function(e){var t=n(this);t&&(t.activateTrigger(Pi.MouseDown,e),r(document).one("vmouseup",function(e){window.setTimeout(function(){t.activateTrigger(Pi.MouseUp,e)},0)}))}).on("click",".design-element.clickable-element",function(e){var t=n(this);t&&(t.activateTrigger(Pi.MouseClick,e),r(e.target).hasAncestor("a, :input")||r.onVirtualClickHandled(e))}).on("click",".popup-overlay a._item-link",To)})}(),function(){Xn.registerDefinition(Qn,{Editable:void 0})}(),function(){function e(){var e=this;e.isOverflowHidden.valueChangedEvent.bindAndExecute(function(){var t=e.isOverflowHidden.getValue();t?e.getContentLayer().addClass("overflow-hidden"):e.getContentLayer().removeClass("overflow-hidden")})}Xn.registerDefinition(Qn,{HasOverFlow:{lazyInitializationProperties:{isOverflowHidden:k.createFalse},aggregatedMethods:{aggregations:{onInitializing:e}},properties:{overflow:{isStyleProperty:!0,defaultValue:ko,category:Jn.Other,onChange:function(e){e.setOverFlow()}}},methods:{setOverFlow:function(){var e=this,t=e.getPropertyValue("overflow");e.isOverflowHidden.setValue(t)}}}})}(),function(){Xn.registerDefinition(Qn,{ItemsContainer:{properties:{isGrowable:{defaultValue:function(){return{bottom:!1,right:!1}},category:Jn.Other},rowsItems:{isStateProperty:!0,notForUndoProperty:!0,defaultValue:Fo}},features:[Qn.HasOverFlow],methods:{addRowToContainer:function(e){var t=this.getPropertyValue("rowsItems");t||(t={}),t=r.deepCloneObject(t),t[e.id]=e.getDataForSave(),this.setPropertyValue("rowsItems",t)},removeRowFromContainer:function(e){ var t=this.getPropertyValue("rowsItems");t&&(t=r.deepCloneObject(t),delete t[e.id],this.setPropertyValue("rowsItems",t))},getRowsFromContainer:function(){var e=this,t=this.getPropertyValue("rowsItems"),n=[];return t&&(r.eachEntry(t,function(t,i){var a=Ea.getRowById(i.id);a&&a.containerInstance===e&&n.push(a)}),n=n.orderBy(function(e){return e.getCellsArray()[0].getInstance().childIndex.getValue()})),n},hasRowsFromContainer:function(){var e=this,t=this.getPropertyValue("rowsItems"),n=!1;return t&&r.eachEntry(t,function(t,i){var a=Ea.getRowById(i.id);return a&&a.containerInstance===e?(n=!0,!1):void 0}),n},append:To,reorderChildElements:function(){if(this.hasOrder.getValue()){var e=r([]),t=this.getChildInstances();if(0===t.length)return;if(Ta.Flags.IsInMobileContext.isTrue()&&this.canContainerRows()){if(!this.hasRowsFromContainer())return;for(var n,i,a={},o=[],s=r([]),l=0;l0&&(r.eachItem(o,function(e,t){t.markChilds()}),i.toggleFirstRow(!0),n.toggleLastRow(!0),s.applyDOMOrder(),r.eachEntry(a,function(e,t){t.applyDOMOrder()}))}else{for(var l=0;la;a++){var r=n[a];r.renderElement(e)}},canContainerRows:function(){return!this.isContent()}},lazyInitializationProperties:{childElementAdded:b.create},aggregatedMethods:{aggregations:{},definitions:{onChildElementRemoved:function(e){W.Events.ChildElementRemoved.fire(this,e)},onChildElementAdded:function(e,t){ji.Events.ElementAddedToContainer.fireNew(e);var n=this;t&&t.isInDrop&&e.setPropertiesValues({verticalLayout:Gi.Layout.normal,horizontalLayout:Gi.Layout.normal,fillLayout:{fillHorizontal:!1,fillVertical:!1},isFixed:!1}),Ui.reassignElementsOrders(),ia.visibilityTreeAttach(e),b.fireLazyEvent(n,"childElementAdded",e)}}}}})}(),function(){function e(e,t){var n={animation:e,animationOptions:{duration:t}};ia.isElementVisible(this)?this.hideElement(n):this.showElement(n)}function t(e,t,n){if(void 0!==n&&r.isPlainObject(n.transitionEffect)&&(n.transitionEffect=n.transitionEffect.name),n&&n.transitionDuration){var i={animation:n.transitionEffect,animationOptions:{duration:n.transitionDuration,direction:n.transitionSlideDirection,flyDirection:n.transitionFlyDirection}};t?e.showElement(i):e.hideElement(i)}else t?e.showElement():e.hideElement()}Xn.registerPropertiesCategories({Visibility:{title:void 0,iconClass:"sprite-icon sprite-property-category-visibility"}}),Xn.registerDefinition(Qn,{Hideable:{methods:{toggleVisibility:e},properties:{isVisible:{shouldRefreshIfNotVisible:!0,isStateProperty:!0,defaultValue:xo,category:Jn.Visibility,supportsStatesTransitionAnimation:!0,onChange:t}},lazyInitializationProperties:{isVisibleFlag:k.createTrue},aggregatedMethods:{aggregations:{onBeforePageOpen:function(){var e,t=this;e=Ta.Flags.IsInMobileContext.isTrue()?t.getPropertyMobileValue("isVisible"):t.getPropertyNormalValue("isVisible"),t.shouldInitInstanceOnPageChange()&&void 0!==e&&!t.isContent()&&Ki.updateComputedValue(t,t.properties.isVisible,e)},onInitialized:function(){var e=this;e.previewEventsListener.add(b.createEventListener([Ta.Flags.IsInMobileContext.valueChangedEvent],function(){ur.performUpdateOnRenderingFinished(function(){var t=e.getPropertyValue("isVisible");t===!1?e.hideElement():e.isInstanceVisible()||e.showElement()},e.id+"hideable-visibi-preview")}))}}}}})}(),function(){function e(e,t,n,i){if(t){var a=void 0===i,r=0!==t.top||0!==t.left||0!==t.right||0!==t.bottom;!a||r?e.animatePart(e.$element,{instanceBorderWidth:t},!1,n,{isInitialization:a}):(e.setActualPropertyValue("borderWidth",{left:0,top:0,right:0,bottom:0}),Gi.refreshElementsLayout(e),Gi.requestUpdatePosition(e))}}function t(e,t,n,i){if(t&&r.support.borderRadius){var a=0!==t.topLeft||0!==t.topRight||0!==t.bottomLeft||0!==t.bottomRight,o=void 0===i;!o||a?e.animatePart(e.$element,{instanceBorderRadius:t},!1,n,{isInitialization:o}):e.setActualPropertyValue("borderRadius",{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0})}}function i(e,t,n,i){if(t){var a={borderTopColor:Ma.evaluateColorBinding(t.top,!0),borderBottomColor:Ma.evaluateColorBinding(t.bottom,!0),borderLeftColor:Ma.evaluateColorBinding(t.left,!0),borderRightColor:Ma.evaluateColorBinding(t.right,!0)},r=void 0===i,o=e.getBorderBox();e.animatePart(o,a,!0,n,{isInitialization:r}),Ki.notifyCalculatedPropertyChange(e,"lineColor")}}function a(e,t){t&&e.getBorderBox().css({borderTopStyle:t.top,borderBottomStyle:t.bottom,borderLeftStyle:t.left,borderRightStyle:t.right})}function o(e){return e=s(e),l(e)}Xn.registerPropertiesCategories({Border:{title:void 0,iconClass:"sprite-icon sprite-property-category-border",shortTitle:"Border"},Roundness:{title:void 0,iconClass:"sprite-icon sprite-property-category-roundness"}}),Xn.registerDefinition(Qn,{HasBorder:{properties:{borderWidth:{isStateProperty:!0,isStyleProperty:!0,scaleProperty:function(e){return{bottom:e.y,right:e.x,top:e.y,left:e.x}},getResetValue:r.returnEmptyBorderObject,defaultValue:r.returnEmptyBorderObject,valueConverter:fa.createRoundPropertyValueConverter(["top","left","bottom","right"]),category:Jn.Border,supportsStatesTransitionAnimation:!0,onChange:e},roundness:{isStateProperty:!0,isStyleProperty:!0,supportsStatesTransitionAnimation:!0,getResetValue:r.returnEmptyRoundnessObject,defaultValue:r.returnEmptyRoundnessObject,scaleProperty:function(e){return{bottomRight:e.x,topRight:e.x,topLeft:e.x,bottomLeft:e.x}},valueConverter:fa.createRoundPropertyValueConverter(["topLeft","bottomLeft","topRight","bottomRight"]),category:Jn.Roundness,onChange:t},borderColor:{isStateProperty:!0,isStyleProperty:!0,getResetValue:r.returnBlackBorderObject,defaultValue:r.returnBlackBorderObject,valueConverter:o,supportsStatesTransitionAnimation:!0,supportsThemeBinding:["top","left","bottom","right"],category:Jn.Border,onChange:i},borderStyle:{isStateProperty:!0,isStyleProperty:!0,getResetValue:function(){return r.convertValueToObject("solid",["top","left","bottom","right"])},defaultValue:function(){return r.convertValueToObject("solid",["top","left","bottom","right"])},category:Jn.Border,onChange:a}},calculatedProperties:["lineColor"],methods:{getCalculatedPropertyValue:function($super,e){switch(e){case"lineColor":return this.getPropertyValue("borderColor","top")}return $super.call(this,e)},setCalculatedPropertyValue:function($super,e,t,n,i){switch(e){case"lineColor":return void this.setPropertyValue("borderColor",t,n,i)}$super.call(this,e,t,n,i)}},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this;e.borderTargetAddedEvent.bind(function(t){var n=e.getActualPropertyValue("borderWidth");n&&t.css({"border-top-width":n.top,"border-left-width":n.left,"border-bottom-width":n.bottom,"border-right-width":n.right});var i=e.getActualPropertyValue("borderRadius");i&&t.css({borderRadiusTopLeft:i.topLeft,borderRadiusTopRight:i.topRight,borderRadiusBottomLeft:i.bottomLeft,borderRadiusBottomRight:i.bottomRight})})}}}}});var s=fa.createStringToObjectValueConverter(["top","left","bottom","right"]),l=fa.createValueToObjectValueConverter(["top","left","bottom","right"]);r.cssHooks.instanceBorderWidth={get:function(e){var t=n(e);return t&&t.getActualPropertyValue("borderWidth")},set:function(e,t){var i=n(e);if(i){i.setActualPropertyValue("borderWidth",t),i.getBorderTarget().css({borderTopWidth:t.top+"px",borderLeftWidth:t.left+"px",borderBottomWidth:t.bottom+"px",borderRightWidth:t.right+"px"});var a=i.getActualPropertyValue("borderRadius");i.hasFeature(Qn.ItemsContainer)&&a&&!r.borderWidthEqualityComparer(i.data.borderWidth,t)&&(i.data.borderRadius=a,i.data.borderWidth=t,r.updateInnerBorderRadius(i.getContentLayer(),a,t)),i.handleContentSizeChange(),Gi.refreshElementsLayout(i)}}},r.fx.step.instanceBorderWidth=function(e){r.cssHooks.instanceBorderWidth.set(e.elem,{left:null===e.end.left?null:Math.floor(e.start.left+e.pos*(e.end.left-e.start.left)),top:null===e.end.top?null:Math.floor(e.start.top+e.pos*(e.end.top-e.start.top)),right:null===e.end.right?null:Math.floor(e.start.right+e.pos*(e.end.right-e.start.right)),bottom:null===e.end.bottom?null:Math.floor(e.start.bottom+e.pos*(e.end.bottom-e.start.bottom))})},r.cssHooks.instanceBorderRadius={get:function(e){var t=n(e);return t&&t.getActualPropertyValue("borderRadius")},set:function(e,t){var i=n(e);if(i&&(i.setActualPropertyValue("borderRadius",t),i.getBorderTarget().css({borderRadiusTopLeft:t.topLeft,borderRadiusTopRight:t.topRight,borderRadiusBottomLeft:t.bottomLeft,borderRadiusBottomRight:t.bottomRight}),i.hasFeature(Qn.ItemsContainer)&&t&&!r.borderRadiusEqualityComparer(i.data.borderRadius,t))){var a=i.getActualPropertyValue("borderWidth");i.data.borderRadius=t,i.data.borderWidth=a,r.updateInnerBorderRadius(i.getContentLayer(),t,a)}}},r.fx.step.instanceBorderRadius=function(e){r.cssHooks.instanceBorderRadius.set(e.elem,{topLeft:null===e.end.topLeft?null:Math.floor(e.start.topLeft+e.pos*(e.end.topLeft-e.start.topLeft)),topRight:null===e.end.topRight?null:Math.floor(e.start.topRight+e.pos*(e.end.topRight-e.start.topRight)),bottomLeft:null===e.end.bottomLeft?null:Math.floor(e.start.bottomLeft+e.pos*(e.end.bottomLeft-e.start.bottomLeft)),bottomRight:null===e.end.bottomRight?null:Math.floor(e.start.bottomRight+e.pos*(e.end.bottomRight-e.start.bottomRight))})}}(),function(){Xn.registerDefinition(Qn,{HasOutline:{properties:{lineWidth:{isStateProperty:!0,isStyleProperty:!0,getResetValue:r.returnOne,defaultValue:r.returnOne,category:Jn.Border,valueConverter:fa.createRoundPropertyValueConverter(),scaleProperty:function(e){return e.x}},lineColor:{isStateProperty:!0,isStyleProperty:!0,supportsThemeBinding:!0,defaultValue:function(){return"Black"},category:Jn.Border},lineStyle:{isStateProperty:!0,isStyleProperty:!0,defaultValue:function(){return"solid"},category:Jn.Border}},methods:{isLineAffectsSize:ko},aggregatedMethods:{aggregations:{}}}})}(),function(){Xn.registerDefinition(Qn,{HasEmptyState:{lazyInitializationProperties:{inEmptyStateFlag:k.createConditionalPositive},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=b.createEventListener(e.inEmptyStateFlag.valueChangedEvent,function(){ur.performUpdateOnRenderingFinished(function(){var t=e.inEmptyStateFlag.isTrue();e.$element.toggleClass("element-empty-state",t),e.isForTemplateUse()&&e.isDisplayed.setValue(!t,"isEmptyState"),r.eachItem(e.childInstances,function(e,n){n.isDisplayed.setValue(!t,"isEmptyState")})},"toggleChildInstancesDisplay"+e.id)}).activateAndExecute();e.instanceRemoving.one(function(){t.dispose()})}}}}})}(),function(){function e(e,t){var n=!1,i=!0,a=!1,o=!1;if(r.containsOneOfKeys(t,"fieldsTemplates","dataLayout")&&(n=!0,o=!0,"dataLayout"in t&&e.hasFeature(Qn.HasFormData)&&(i=!1)),t.usePagesLayout&&(n=!0,a=!0,o=!0),t.dataLayoutOptions){n=!0,o=!0;var s=e.dataLayoutController.getArrangement(),l=(s.category===Ri.Vertical,s.category===Ri.Grid,t.dataLayoutOptions.oldValue),c=t.dataLayoutOptions.value;l.cols===c.cols&&l.rows===c.rows||(i=!1),l.elementsPerPage!==c.elementsPerPage&&(a=!0),l.maxItems===c.maxItems&&l.maxItemsCount===c.maxItemsCount||(a=!0)}n&&e.requestArrangement({keepItemSize:i,shouldFetch:a,shouldPush:o})}Xn.registerDefinition(Qn,{DataList:{properties:{itemsStyle:{isStateProperty:!0,shouldRefreshIfNotVisible:!0,notForUndoProperty:!0,defaultValue:r.returnEmptyObject}},methods:{shouldBeBlockElementInMobile:xo,getDataItemInstanceId:function(e){return this.id+He+e},alignHorizontal:function(){var e=this;if(e.hasHorizontalAlign()){var t=e.getPropertyValue("horizontalAlign");e.$elementContentContainer.css("text-align",t),ia.invalidateAreas(e.getDescendingInstances(),{updateSize:!1})}},hasHorizontalAlign:function(){var e=this.getPropertyValue("dataLayout");return _i[e.name].category===Ri.Grid||_i[e.name].category===Ri.Rows||_i[e.name].category===Ri.Columns},getInstanceController:function(e){var t=this;return t.dataItemsController.getInstanceController(e)},getMinSize:function(){var e=this,t=e.dataLayoutController.getMinSize();return{height:t.height,width:t.width}},reorderChildElements:function(){if(this.hasOrder.getValue()){for(var e=r([]),t=this.getChildInstances(),n=0;na.height,l=i+r.height>a.height;if(o||s||l){if(e.propertiesRefreshingState&&!Ta.updateBatch.isActive())return;e.whenInstanceContentHeightChanged(i,{onlyGrow:void 0===n&&!0})}b.fireLazyEvent(e,"contentHeightRefreshedEvent")}},e.id+"refreshContentSize")},e.id+"refreshContentSize"))}},lazyInitializationProperties:{contentHeight:D.createNumerical,contentHeightRefreshedEvent:b.create},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=b.createEventListener(e.contentSizeChangedEvent,function(){e.refreshContentSize()}),n=b.createEventListener(e.visibilityChangedEvent,function(){var n=ia.isElementVisible(e);n?(t.activateAndExecute(),e.pollForNotLoadedFonts(e)):t.deactivate()}).activateAndExecute();e.instanceRemoving.one(function(){n.dispose(),t.dispose()})}}}}})}(),function(){function e(e,t){var n=e.getShape();n&&n.setPropertyValue("lineWidth",t)}function t(e,t){t=r.Color(Ma.evaluateColorBinding(t)).toHEX();var n=e.getShape();n&&n.setPropertyValue("strokeColor",t)}Xn.registerDefinition(Qn,{Shape:{features:[Qn.HasGrowableContent],methods:{getCanvas:function(){return this.data.canvas},getShape:function(){return this.data.shape},createContent:function(){var e=this,t=e.data.canvas=Rt.create();return e.data.shape=e.createShape(t).toggleLayout(Nt.FillHorizontally,!0).toggleLayout(Nt.FillVertically,!0),t.$element.addClass("absolute-fill")},creationFunction:function(e){return e.createContent()},handleBackgroundUpdate:function(e,t,n){return t=Ma.evaluateColorBinding(t),this.getShape()?(this.animatePart(this.$element,{shapeBackground:t},void 0,n),!0):!1},createShape:To},aggregatedMethods:{aggregations:{onPropertyChange:function(n,i){switch(n.name){case"lineWidth":e(this,i);break;case"lineColor":t(this,i)}},onInitialized:function(){var e=this,t=e.getCanvas();t&&e.contentSizeChangedEvent.bind(function(){ur.performUpdateOnRenderingFinished(function(){e.getCanvas().refreshSize(ia.getContentSize(e))},"canvas-content-size-changed"+e.id)})}}}}}),r.cssHooks.shapeBackground={get:function(e){var t=n(e);return t&&t.data.currentShapeBackground},set:function(e,t){var i=n(e);if(i){var a=i.getShape();void 0!==a&&(i.data.currentShapeBackground=r.Color(t),a.setPropertyValue("backgroundColor",t))}}},r.fx.step.shapeBackground=function(e){if(!e.colorInit){var t=r.cssHooks.shapeBackground.get(e.elem);e.end=r.Color(e.end).toRGB(),t||(e.start=e.end),e.colorInit=!0}r.cssHooks.shapeBackground.set(e.elem,"rgba("+Math.max(Math.min(parseInt(e.pos*(e.end[0]-e.start[0])+e.start[0],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.end[1]-e.start[1])+e.start[1],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.end[2]-e.start[2])+e.start[2],10),255),0)+","+Math.max(Math.min(parseFloat(e.pos*(e.end[3]-e.start[3])+e.start[3],10),1),0)+")")}}(),function(){function e(e){var t=e.getSvgController();if(t){var n=e.getSvgController().getElementPropertyValue(null,"fontFamily");return n?n:"Arial"}return"Arial"}function t(e,t){var n=e.getSvgController();n&&n.updateShapePropertyValue("fontFamily",t)}function n(e){var t=e.getSvgController();if(!t)return null;var n=t.getElementPropertyValue(null,"text");if(!n){var i=t.$element.find("text");if(!i||!i[0])return null;var a=(new XMLSerializer).serializeToString(i[0]);n=r(a)[0].innerHTML}return n}function i(e,t){var n=e.getSvgController();n&&n.updateShapePropertyValue("text",t)}function a(e){var t=e.getSvgController();if(t){var n=t.getElementPropertyValue(null,"textDirection");return n?n:"left"}return"left"}function o(e,t){var n=e.getSvgController();n&&n.getSvgController().updateShapePropertyValue("textDirection",t)}Xn.registerDefinition(Qn,{SvgShape:{className:"svg-shape-element",features:[Qn.HasContent,Qn.Editable],aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=!1,n=!1,i=b.createBindingsCollection(),a=e.createSvgShapeController();e.data._svgController=a,a.$element.appendTo(e.$elementContent),hr.addToLastSavedShapesList(e.id,e.getShapeReference()),e.contentSizeChangedEvent.bind(function(){n||ur.performOnLayoutUpdate(function(){var n=e.getContentSize();t=!0,a.updateSize(n),t=!1},"updateSvgControllerSize"+e.id)}).addToCollection(i),a.sizeChangedEvent.bind(function(){if(!t){var n=a.calculateArea(),i={width:n.width,height:n.height},r=e.getNoneContentSize();i.width+=r.width,i.height+=r.height,Xi.setInstancesSize(e,i)}}).addToCollection(i),e.instanceRemoving.one(function(){i.unbindAll()})}}},properties:{svgProperties:{defaultValue:r.returnEmptyObject,isStateProperty:!0,supportsBinding:!0,onChange:function(e,t){e.isInitialized&&(ie.disableOperationsRecording("svgProperties"),e.getSvgController().updateShapeProperty(t),Ki.notifyCalculatedPropertyChange(e,"svgFontFamily"),Ki.notifyCalculatedPropertyChange(e,"svgText"),Ki.notifyCalculatedPropertyChange(e,"svgTextDirection"),ie.enableOperationsRecording("svgProperties"))}}},calculatedProperties:["svgFontFamily","svgText","svgTextDirection"],methods:{getCalculatedPropertyValue:function($super,t){var i=this;switch(t){case"svgFontFamily":return e(i);case"svgText":return n(i);case"svgTextDirection":return a(i)}return $super.call(i,t)},setCalculatedPropertyValue:function($super,e,n,a,r){var s=this;switch(e){case"svgFontFamily":t(s,n);break;case"svgText":i(s,n);break;case"svgTextDirection":o(s,n)}$super.call(s,e,n,a,r)},getShapeReference:To,getSvgController:function(){return this.data._svgController}}}})}(),function(){Xn.registerDefinition(Qn,{TemplatePagesList:{defaultProperties:{dataLayoutOptions:function(){return{lineSpacing:15,cols:3,columnSpacing:15,colsSpacing:15,rowsSpacing:15,elementsPerPage:4,rotation:0,R:100}}},properties:{usePagesLayout:{defaultValue:xo,isStateProperty:!0}},features:[Qn.Navigatable],methods:{getArrangementOptions:function($super){var e=$super.call(this);return e.usePagesLayout=this.getPropertyValue("usePagesLayout"),e.maintainHeightInPreview=this.shouldMaintainHeightInPreview(),e},shouldMaintainHeightInPreview:ko,hasContentHorizontalAlign:ko,navigateTo:function(e,t,n,i){var a=this.getPropertyValue("dataLayout");return _i[a.name].navigateTo(this.dataLayoutController,e,t,n,i)},getCurrentItem:function(){var e=this.getPropertyValue("dataLayout");return _i[e.name].getCurrentItem(this.dataLayoutController)},getElementDataContent:function(){var e=this.getCurrentItem();return e?e.getElementContent():void 0},showItem:function(e,t,n,i){var a=this.getPropertyValue("dataLayout");return _i[a.name].showItem(this.dataLayoutController,e,t,n,i)},changeCurrentItem:function(e,t,n,i){var a=this;a.performWhenVisible(function(){a.reArrangementDisabled.setValue(!0,"changeCurrentItem"),a.showItem(e,t,n,i),a.reArrangementDisabled.setValue(!1,"changeCurrentItem")},a.id+"changeCurrentItem")},getNavigatableInstances:function(){var e=this.getPropertyValue("dataLayout");return _i[e.name].getNavigatableInstances(this.dataLayoutController)},calculateItemSizeOnMobile:function(e){var t=this.getPcTemplateSize();return{height:t?r.maxValue([e.width/t.width*t.height,30]):e.height,width:e.width}}},aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){var e=this;e.setPropertyValue("dataLayout",{name:_i.PagesColumn.name}),e.setPropertyFieldsValues("dataLayoutOptions",{cols:1,columnSpacing:10})},onPropertiesChanged:function(e){var t=this;if(t.InstancePropertiesInitialized.isTrue()&&t.data.pagesInstance){Gi.beginLayoutUpdateBatch(),Ki.UpdateBatch.start();var n=r.intersectSets(e,Qn.Navigatable.properties);for(var i in n){var a=n[i].name,o=e[a];o&&t.data.pagesInstance.setPropertyValue(a,o.value)}Ki.UpdateBatch.finish(),Gi.endLayoutUpdateBatch()}},onInitializing:function(){var e=this;b.bind([e.resizingStarted],function(){e.getItemsCollection().postponeUpdates()}),b.bind([e.resizingStopped],function(){e.getItemsCollection().unPostponeUpdates()})}}}}})}(),function(){Xn.registerDefinition(Qn,{HasChildrenLayoutAnchor:{properties:{childrenAnchor:{isStyleProperty:!1,isNotForCustomProperty:!0,defaultValue:function(){return Ke.Left},onChange:function(e){Gi.refreshElementsLayout(e.getChildInstances())}}},methods:{getAnchorLatyout:function(){return this.getPropertyValue("childrenAnchor")}}}})}(),function(){function e(t,n){n.isTemplateItemContent()||(n.setIsContent(!0),n.setTemplateItemContent(t),n.hasFeature(Qn.ItemsContainer)&&n.childElementAdded.bind(function(n){r.eachItem(n.getDescendingInstances(),function(n,i){e(t,i)})}))}Xn.registerDefinition(Qn,{TemplateItem:{className:"template-item",methods:{getInstancesByField:function(e){var t=[],n=this.getPropertyValue("fieldsMap");return r.eachEntry(n,function(n,i){var a=ji.getInstanceByID(n);r.eachEntry(i,function(n,i){i.name==e&&t.push(a)})}),t}},aggregatedMethods:{aggregations:{onInitializing:function(){var t=this;r.eachItem(this.getDescendingInstances(!0),function(n,i){e(t,i)})}}},properties:{fieldsMap:{title:"fieldsMap",defaultValue:r.returnEmptyObject,category:Jn.Other}}}})}(),function(){Xn.registerDefinition(Qn,{DataListItem:{className:"data-list-item",methods:{getAutoLayoutProperties:function($super){return r.quickExtend($super.call(this),{top:!0,left:!0,width:!0})},getDataSource:function(){return this.getItemMainParent().getDataSource()},toggleMobileSupport:function(e){ie.beginAtomicBatch(),this.getItemMainParent().toggleMobileSupport(e),ie.endAtomicBatch()},isVisibleInMode:xo,isDataListItem:function(){return void 0!==this.data.dataItemID},getDataItemId:function(){return this.data.dataItemID},getDataItem:function(){return this.getItemMainParent().getDataSource().fetchDataItem(this.getDataItemId())},isSupportsMobile:function(){return this.getItemMainParent().isSupportsMobile()},isMobileOnlyStyle:function(){return this.getItemMainParent().isMobileOnlyStyle()},getFieldName:function(){var e=this.getDataItem();return e.fieldTypeName?e.fieldTypeName:this.getItemMainParent().elementType.itemName},setDataItemId:function(e){this.data.dataItemID=e},getItemMainParent:function(){return this.data.dataListParent},updateSkinBindingFromEditingTemplate:function(e,t,n){return this.getItemMainParent().updateSkinBindingFromEditingTemplate(e,t,n)},changeElementSize:function(e){this.$elementSizeBox.css(e)},setTemplateStructure:function(e,t,n){ie.disableOperationsRecording("setTemplateStructure"),this.data.instanceController.setTemplateStructure(e,t,n);var i=this.data.instanceController.getInstance();return ie.enableOperationsRecording("setTemplateStructure"),i},getInstanceController:function(){return this.data.instanceController}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;e.sizeElementClassesManager.set({"data-list-item":!0})}}}}})}(),function(){var e={properties:{menuHide:{isNotForCustomProperty:!0,defaultValue:To,notForUndoProperty:!0},sectionName:{isNotForCustomProperty:!0,defaultValue:r.returnEmptyString},pageContentType:{isNotForCustomProperty:!0,defaultValue:function(){return lo.MainContent},notForUndoProperty:!0}},defaultProperties:{fillLayout:function(){return{fillVertical:!1,fillHorizontal:!1}},sizeAndPosition:function(){return{height:200,width:0,top:0,left:0}},childrenAnchor:function(){return Ke.Centered}},methods:{isPageChildInstance:xo,refreshFixedState:To,isReattchable:ko,creationFunction:To,isRelativePositioned:xo,hasHeight:function(){return!(Ta.Flags.IsInMobileContext.isTrue()&&this.hasRowsFromContainer())},isMainSection:function(){return this.getPropertyValue("pageContentType")===lo.MainContent},calculateActualOffset:function(){var e,t=this,n=0,i=0;e=this.isMainSection()?cr.getCurrentPageMainOrderedSections():cr.getCurrentPageSideBarOrderedSections();var a=0;r.eachItem(e,function(e,n){if(n===t)return!1;var i=n.calculateActualSize();a+=i.height});var o=t.parentInstance.calculateActualOffset();return{top:o.top+n,left:o.left+i}},calculateActualSize:function(){var e=this,t=e.getPropertyValue("sizeAndPosition"),n=e.parentInstance.calculateActualSize(),i=n.width,a=t.height;return{width:i,height:a}},getAutoLayoutProperties:function(){return{left:!0,top:!0,width:!0,height:!this.hasHeight()}}},aggregatedMethods:{aggregations:{onChildElementRemoved:function(e){e.classesManager.set({"is-section-child":!1,"positioned-fixed":!1})},onChildElementAdded:function(e){e.classesManager.set({"is-section-child":!0, "positioned-fixed":e.isFixed()&&!0})},onDetached:function(){var e=ta.getCurrentPage();Ki.invalidateProperty(e,"sizeAndPosition",void 0,e.getPropertyValue("sizeAndPosition"))},onRemove:function(){var e=this;if(!e.isForTemplateUse()){cr.removeSectionInstance(this);var t=ta.getCurrentPage(),n=t.getPageContentInstance(),i=n.getVisibleSectionsByPage(t);0===i.length&&ji.addSection(n)}},onInitialized:function(){var e=this;e.propertyChangedEvent.bind("order",function(){e.isInitialized&&ur.performLayoutOrderUpdate(function(){ia.invalidateAreas(e,{updateSize:!1})},"reorder section"+e.id)}),e.instanceRemoved.bind(function(){ia.invalidatePositioningRootOffset(),ia.invalidateAreas(r.getValues(ji.getAllPageInstances()))})},onInitializing:function(){var e=this;e.canResizeHorizontally.setFalse(),e.sizeChangedEvent.bind(function(){W.PageHeightChanged.fireNew()}),e.isForTemplateUse()||e.visibilityChangedEvent.bindAndExecute(function(){var t=e.isInstanceVisible();t?cr.addSectionInstance(e):cr.removeSectionInstance(e)}),e.$element.addClass("section-element"),e.getElementSizeBox().addClass("section-element-size-box"),e.canMove.setValue(!1)}}}};Xn.registerDefinition(Qn,{PageSection:e})}(),function(){Xn.registerDefinition(Qn,{HasInnerShadow:{properties:{innerGlow:{isStateProperty:!0,isStyleProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:["color"],valueConverter:fa.createRoundPropertyValueConverter(["blur","spread"]),scaleProperty:function(e){return{blur:e.x,spread:e.x}},defaultValue:function(){return{spread:0,blur:0,color:"black"}},onChange:function(e,t,n){e.isInitialized&&t&&(t=r.quickExtend({},t,{color:Ma.evaluateColorBinding(t.color,!0)}),e.animatePart(e.$element,{innerGlow:t},!1,n))},category:Jn.Shadow},innerShadow:{isStateProperty:!0,isStyleProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:["color"],valueConverter:fa.createRoundPropertyValueConverter(["blur","spread","top","left"]),scaleProperty:function(e){return{blur:e.x,spread:e.x,top:e.y,left:e.x}},defaultValue:function(){return{top:0,left:0,spread:0,blur:0,color:"black"}},category:Jn.Shadow,onChange:function(e,t,n){e.isInitialized&&t&&(t=r.extend({},t,{color:Ma.evaluateColorBinding(t.color,!0)}),e.animatePart(e.$element,{dropInnerShadow:t},!1,n))}}}}})}(),function(){var e={ElementContent:{group:"iframe-content-templates",name:"iframe-content-template",isSimple:!0}};Xn.registerDefinition(Qn,{IFrameContent:{features:[Qn.HasContent],methods:{getIFrameUrl:r.returnEmptyString,isScrollableIFrame:ko,shouldRenderIFrame:xo,reloadIFrame:function(e){var t=this;e=r.valueOrCalculate(e,function(){return t.getIFrameUrl()}),t.data.$iframe.attr("src",e)},creationFunction:function(){var t=this;if(t.shouldRenderIFrame()){var n=t.isScrollableIFrame(),i=r.useTemplate(e.ElementContent,{url:t.getIFrameUrl(),scrolling:n?"yes":"no"});t.data.$iframeContainer=i;var a=t.data.$iframe=i.find(".iframe-content-element");return a.addClass("state-invisible"),a.load(function(){a.removeClass("state-invisible")}),i}return r('
')}},aggregatedMethods:{aggregations:{}}}})}(),function(){Xn.registerDefinition(Qn,{ConnectableExternalApp:{aggregatedMethods:{aggregations:{onCreation:function(){this.featureConnections={}}}},methods:{getAppConnectableFeatures:function(){return this.getAppDefinition().connectableFeatures},getAppConnectableFeature:function(e){return this.getAppConnectableFeatures()[e]},callConnectedFeatureFunction:function(e,t,n,i){var a=this.featureConnections[e];a&&a.instance.callFeatureFunction(e,t,n,this.createCallInfo(),i)},connectFeatureInstance:function(e,t){var n=this;if(!t.hasFeature(Qn.FeatureExternalApp))throw Error("Invalid use");var i=t.getAppFeature(e);if(!i)throw Error("Instance: {0} doesn't implement feature: {1}".format(t.id,e));var a=t.appFeaturesEvent.bind(e,function(t,i,a){n.getApiManager().fireConnectedFeatureEvent(e,t,i,a)});n.featureConnections[e]={instance:t,eventBinding:a}},disconnectFeatureInstance:function(e){var t=this,n=t.featureConnections[e];n&&(n.eventBinding.unbind(),delete t.featureConnections[e])}}}})}(),function(){function e(e){var t=e.getAppDefinition();return t.growableSettings?t.growableSettings.view?!0:(t.growableSettings.design,void 0):!0}Xn.registerDefinition(Qn,{ExternalApp:{features:[Qn.IFrameContent],defaultProperties:{},properties:{appProperties:{}},lazyInitializationProperties:{isIframeInitialized:k.createFalse,isIframeNotLoaded:k.createFalse,connectableFeaturesEvent:b.createNamedEvents},aggregatedMethods:{aggregations:{onRemove:function(){var e=this;e.data.apiManager&&(e.data.apiManager.deactivate(),delete e.data.apiManager)},switchToPreview:function(e){e&&this.reloadApp()},updateInstanceToViewPort:function(){this.reloadApp()},removeInstanceFromViewPort:function(){this.reloadApp()},onInitializing:function(){var e=this;if(e.shouldRenderIFrame()){var t={apiInitialize:function(){e.isIframeInitialized.setTrue()}};e.data.apiManager=new Oa({instance:e,$iframe:e.data.$iframe,callbacks:t});var n=e.getAppDefinition();n.resizingSettings&&(n.resizingSettings.canResizeVertically===!1&&e.canResizeVertically.setFalse(),n.resizingSettings.canResizeHorizontally===!1&&e.canResizeHorizontally.setFalse()),e.InstancePropertiesInitialized.onceTrue(function(){r.eachEntry(e.getAppSettings(),function(t){e.isQueryParamSetting(t)&&e.bindAppSettingProperty(t,function(){e.reloadApp()})})}),e.resizingStopped.bind(function(){e.data.lastDocumentSize&&n.resizingSettings.canResizeVertically===!1&&e.setDocumentSize(e.data.lastDocumentSize)}),e.visibilityChangedEvent.bind(function(){e.isInstanceVisible()&&e.reloadApp()}),setTimeout(function(){e.isIframeInitialized.isFalse()&&e.isIframeNotLoaded.setTrue()},5e3)}}}},methods:{isGrowingEnabled:function(){return e(this)},setDocumentSize:function(t){e(this)&&(ie.disableOperationsRecording("setDocumentSize"),this.data.lastDocumentSize=t,this.whenInstanceContentHeightChanged(t.height),ie.enableOperationsRecording("setDocumentSize"))},calculateNormalizedHeight:function(e){var t=this,n=t.getNoneContentSize();return e+n.height},setAppSize:function(e){ie.disableOperationsRecording("setAppSize");var t=this.getNoneContentSize();Xi.setInstancesSize(this,{width:e.width+t.width,height:e.height+t.height}),ie.enableOperationsRecording("setAppSize")},setAppContentSize:function(e){this.data.$iframeContainer.css({width:e.width,height:e.height})},createCallInfo:function(){var e=this,t=e.getAppDefinition(),n={instanceId:e.id,app:{id:t.id,version:t.version,name:t.name}};return n},getAppDefinition:function(){return this.elementType.appDefinition},getAppSettingPrefix:function(){return this.getAppDefinition().appSettingPrefix},getAppSettings:function(){return this.getAppDefinition().settings},getAppSettingValue:function(e){var t=this.getAppSettings(),n=this.getPropertyValue(this.getAppDefinition().appSettingPrefix+e),i=t[e];return i&&"color"===i.type?r.Color(Ma.evaluateColorBinding(n)).toHEX():n},setAppSettingValue:function(e,t){var n=this.getAppSettings();n.hasOwnProperty(e)&&this.setPropertyValue(this.getAppSettingPrefix()+e,t)},isQueryParamSetting:function(e){return-1!=r.inArray(e,this.elementType.querySettings)},getApiManager:function(){return this.data.apiManager},reloadApp:function(e){var t=this,n=[ta.PageChangingOperation];Pe.whenAllFinished(n,function(){t.reloadIFrame(t.getIFrameUrl(e))},t.id+"reloadApp")},shouldRenderIFrame:function(){return!this.isForTemplateUse()},getIFrameUrl:function(e){var t=this.getAppDefinition(),n=t.queryParams;n&&(e=r.quickExtend({},e),r.eachEntry(n,function(t,n){e[t]=r.evaluateWhenFunction(n)}));var i={wzSize:this.getContentSize()};return _a.createIframeUrl(this,{frameId:this.id,baseUrl:t.getUrl(),apiType:"app",additionalParams:e,encodedParams:i})},bindAppSettingProperty:function(e,t,n){var i=this.getAppSettingPrefix();return this.bindPropertyChange(i+e,t,n)},getMinSize:function($super){var e=this.getAppDefinition();return e.resizingSettings&&e.resizingSettings.minSize?e.resizingSettings.minSize:$super.call(this)},getMaxSize:function($super){var e=this.getAppDefinition();return e.resizingSettings&&e.resizingSettings.maxSize?e.resizingSettings.maxSize:$super.call(this)}}}})}(),function(){Xn.registerDefinition(Qn,{FeatureExternalApp:{aggregatedMethods:{aggregations:{onCreation:function(){this.appFeaturesEvent=b.createNamedEvents()}}},methods:{getAppFeatures:function(){return this.getAppDefinition().implementedFeatures},getAppFeature:function(e){return this.getAppFeatures()[e]},getInternalFeatureName:function(e){return r.findFirst(this.getAppFeatures(),function(t,n){return n.isInternal&&n.featureInternalType===e})},fireFeatureEvent:function(e,t,n){this.appFeaturesEvent.fire(e,this,t,n,this.createCallInfo())},callFeatureFunction:function(e,t,n,i,a){this.getApiManager().callFeatureFunction(e,t,n,i,a)},bindFeatureEvent:function(e,t){return this.appFeaturesEvent.bind(e,t)}}}})}(),function(){Xn.registerDefinition(Qn,{NavigatableExternalApp:{features:[],methods:{navigate:function(e,t,n,i){this.callFeatureFunction(this.data.navigatableFeatureName,"navigate",{navigationDelta:e,useAnimation:t,animationOptions:i},{},n)}},aggregatedMethods:{aggregations:{onInitializing:function(){this.data.navigatableFeatureName=this.getInternalFeatureName("NavigatableExternalApp")}}}}})}(),function(){function e(e,t){t.setNeverSelectedInClick(!0),t.getSkinInstance().setNeverSelectedInClick(!0),e.onItemSet(t)}function t(e,t){return void 0!==e.getInstanceController(t)}Xn.registerDefinition(Qn,{HasMenu:{methods:{refreshSelectedItem:function(){var e=this;ur.performUpdateOnRenderingFinished(function(){if(e.isInstanceVisible()){var n=e.getPotentialSelectedMenuItemId(),i=e.data.currentItemSelected;if(i&&i.getDataItemId()!==n){var a=i.getSkinInstance();a.userSelect(!1)}if(n&&t(e,n)){var r=e.getInstanceController(n),o=r.getInstance();e.data.currentItemSelected=o,o.getSkinInstance().userSelect(!0)}}},e.id+"onItemChanged-hasmenu")}},aggregatedMethods:{aggregations:{setItem:function(t){var n=this;t.data.onHasMenuITemCreated=t.instanceController.createdFlag.onceTrue(function(){e(n,t)}),t.instanceRemoving.one(function(){t.data.onHasMenuITemCreated.unbind()})},onInitializing:function(){var e=this,t=e.getDataSource().currentItemChangedEvent.bindAndExecute(function(){e.performWhenVisible(function(){e.refreshSelectedItem()},e.id+"currentItemChangedEvent-visibility")});e.instanceRemoving.one(function(){t.unbind()})}}}}})}(),function(){Xn.registerDefinition(Qn,{HasNavigation:{properties:{navigation:{isStateProperty:!0,defaultValue:r.returnFixedValue("SlideNavigation"),onChange:function(e,t){var n=e.data.navigationController;n&&n.replaceNavigation(t)}},navigationProperties:{isStateProperty:!0,defaultValue:function(){return{direction:"left",width:250,height:400,animationSpeed:400,hierarchyOpened:!1,useHierarchy:!0,pushContent:!1,backgroundColor:{mainColor:1,opacity:1,brightness:0},fontColor:{mainColor:3,opacity:1,brightness:0},fontSize:16,font:{themeFont:"heading1"}}}}},methods:{hasButtonBehaviour:xo},aggregatedMethods:{aggregations:{switchToPreview:function(){var e=this;e.$element.bind("click.navigation",function(){e.data.navigationController.isOpened.isFalse()?e.data.navigationController.open({$element:e.$element,instanceId:e.id,navigationProperties:e.getPropertyValue("navigationProperties")}):e.data.navigationController.close()})},onRemove:function(){var e=this.data.navigationController;e&&e.remove()},onInitializing:function(){this.data.navigationController=lr.createNavigationController(this.getPropertyValue("navigation"))}}}}})}(),function(){function e(e){return{dataItemID:e.id,dataSourceName:e.id,styleBindingId:e.getSkinId()}}Xn.registerDefinition(Qn,{SkinElement:{className:"skin-element",features:[Qn.ItemsContainer,Qn.HasSkinBinding],properties:{skinBinding:{defaultValue:Fo,title:"Skin Binding",preSaveProcessing:function(e){if(e&&e.type===qa.Inline){var t=e.skinName+e.index,n=Ga.getStyle(t);if(n){var i=Ga.getStyleInformation(t);i&&(e.hierarchy.fieldsToValues=i.fields,e.hierarchy.statesAnimations=i.statesAnimations)}}return e},onChange:function(e,t,n,i){e.skinUpdateEventBindings&&e.skinUpdateEventBindings.unbind(),i&&i.type===qa.Inline&&Ga.removeStyle(i.skinName+i.index);var a=r.objectGet(t.hierarchy);a&&r.eachEntry(a.fieldsToData,function(e){a.fieldsToValues[e]||delete a.fieldsToData[e]}),e.skinUpdateEventBindings=Wa.Events.SkinHierarchyUpdated.bindAndExecute(e.getSkinId(),function(){e.performWhenVisible(function(){e.setSkinInstanceControllerFromBinding()},e.id+"skinBinding")})}}},methods:{setOverFlow:function($super){var e=this;$super.call(e);var t=e.getSkinInstance();t&&t.setOverFlow()},initiailizeDelegatedContentBinding:function(e){var t=this;t.instanceController.createdEvent.bindAndExecute(function(){t.instanceController.createdFlag.isTrue()&&ur.performOnFramesLayoutUpdade(e,t.id+"initiailizeDelegatedContentBinding")})},getNoneContentSize:r.returnZeroSize,getLayoutAffectedInstances:function($super){var e=ke.clone($super.call(this));return e.push(this.getSkinInstance()),e},getInstancesBindingsByField:function(e){return this.getSkinInstance().getInstancesBindingsByField(e)},setSkinInstanceControllerFromBinding:function(){var e=this,t=e.getPropertyValue("skinBinding");ie.disableOperationsRecording("setSkinInstanceControllerFromBinding"),Ga.isStyleExist(e.getSkinId())||Ga.addStyle(e.getSkinId(),e.getSkinFieldsValues(),e.getSkinStatesAnimations());var n=Wa.getSkinHierarchy(t);e.instanceController.extendDataSourceOptionsWith({styleBindingId:e.getSkinId()}),e.instanceController.setTemplateStructure(n),e.instanceController.initialize(),e.instanceController.appendTo(e.getElementContent(),e),ie.enableOperationsRecording("setSkinInstanceControllerFromBinding")},getMainSkinInstance:function(){return this},getSkinInstance:function(){return this.instanceController.getTemplateStructure()||this.setSkinInstanceControllerFromBinding(),this.instanceController.getInstance()},getSkinSupportedStates:function(){return[Ei.MouseOverState,Ei.MouseDownState]},reorderChildElements:To,getSkinBinding:function(){return r.cloneObject(this.getPropertyValue("skinBinding"))},getSkinId:function(){var e=this.getSkinBinding();void 0!==e.index?e.index:"";return e.skinName+e.index},creationFunction:function(){return r("
")},getSkinFieldsValues:function(){var e=this.getPropertyValue("skinBinding"),t=Wa.getSkinHierarchy(e),n=t?t.fieldsToValues:void 0;return n?n:{}},getSkinStatesAnimations:function(){var e=this.getPropertyValue("skinBinding"),t=Wa.getSkinHierarchy(e),n=t?t.statesAnimations:void 0;return n?n:{}},extendDataSourceOptionsWith:function(e,t){this.instanceController.extendDataSourceOptionsWith(e,t)},setStructureProcessor:function(e,t){this.instanceController.setStructureProcessor(e,t)}},lazyInitializationProperties:{instanceController:function(){var t=this;return vo.create(void 0,{className:"skin-instance-controller",parentInstanceId:t.id,dataSourceOptions:e(t),templateOptions:{isContent:!0,isLoading:!0,generateNewID:!0,thumbsResolver:t.data.thumbsResolver}})}},aggregatedMethods:{aggregations:{updateInstanceToViewPort:function(){var e=this;e.data.removingSkinElementFromMobile&&(e.data.removingSkinElementFromMobile.unbind(),e.data.removingSkinElementFromMobile=void 0),e.performWhenVisible(function(){ji.performOnInstancesInitialization([e.id],function(){r.eachItem(e.getSkinInstance().getDescendingInstances(!0),function(e,t){ji.performOnInstancesInitialization([t.id],function(){t.refreshStyleBinding()})})})},"updateInstanceToViewPortskinElement"+e.id)},removeInstanceFromViewPort:function(){var e=this;e.abortPerformWhenVisible("updateInstanceToViewPortskinElement"+e.id),e.data.removingSkinElementFromMobile=Ta.Events.AfterSwitchBetweenDevices.bind(function(){e.data.removingSkinElementFromMobile.unbind(),e.data.removingSkinElementFromMobile=void 0,e.performWhenVisible(function(){ji.performOnInstancesInitialization([e.id],function(){r.eachItem(e.getSkinInstance().getDescendingInstances(!0),function(e,t){ji.performOnInstancesInitialization([t.id],function(){t.refreshStyleBinding()})})})},"updateInstanceToViewPortskinElement"+e.id)})}}}}})}(),function(){Xn.registerDefinition(Qn,{CommonDataListSkinItem:{features:[Qn.SkinElement,Qn.DataListItem,Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasLayout,Qn.Clickable,Qn.Hideable,Qn.HasPadding,Qn.HasContent],methods:{setOverFlow:function(){var e=this,t=e.getItemMainParent();t&&(e.isOverflowHidden.setValue(t.isOverflowHidden.getValue()),e.instanceController.initializeFlag.onceTrue(function(){ur.performUpdateOnRenderingFinished(function(){var t=e.getSkinInstance();t&&t.setOverFlow()},e.id+"setOverFlow")}))}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getItemMainParent();t&&t.isOverflowHidden.valueChangedEvent.bindAndExecute(function(){e.setOverFlow()})}}}}})}(),function(){Xn.registerDefinition(Qn,{RemoteDataListSkinItem:{features:[Qn.CommonDataListSkinItem]}})}();var so={heading:{fontSize:25,fontFamily:{themeFont:"heading1"},color:"#000000",lineHeight:120,letterSpacing:0},"sub-heading":{fontSize:20,fontFamily:{themeFont:"heading2"},color:"#000000",lineHeight:120,letterSpacing:0},normal:{fontSize:15,fontFamily:{themeFont:"body1"},color:"#000000",lineHeight:120,letterSpacing:0},link:{color:"#1968d3",hoverColor:"#4393ff",useUnderline:!0},marked:{color:"#0A0707",backgroundColor:"#E8FF3B"},separator:{borderColor:"#000000",borderStyle:"solid",borderWidth:1}};!function(){function e(e){var t=e.getDomId(),n={};return{rule:function(e,i,a){var o=n[e];o||(o=n[e]=r.rule((a?"#body-element ":"")+"#"+t+" "+e+" {}")),o.css(i)}}}function t(e,t,n){var i=e.instanceCssRules,a=Va.getValue(t),r=a.contentType;switch(r){case Da.Text:var o={color:Ma.evaluateColorBinding(n.color,!0),"font-family":Na.evaluateFontBinding(n.fontFamily),"font-size":n.fontSize,"line-height":n.lineHeight/100,"letter-spacing":n.letterSpacing};a.isDefault?e.getElementDataContent().css(o):i.rule(".theme-inline-text-style-"+t,o);break;case Da.Link:i.rule("a",{color:Ma.evaluateColorBinding(n.color,!0),"text-decoration":n.useUnderline?"underline":"none"},!0),i.rule("a:hover",{color:"transparent"===n.hoverColor?"":Ma.evaluateColorBinding(n.hoverColor,!0)},!0);break;case Da.Marked:i.rule(".theme-inline-text-style-"+t,{color:"transparent"===n.color?"":Ma.evaluateColorBinding(n.color,!0),"background-color":Ma.evaluateColorBinding(n.backgroundColor,!0)});break;case Da.Separator:i.rule("hr",{borderColor:Ma.evaluateColorBinding(n.borderColor,!0),borderWidth:n.borderWidth,borderStyle:n.borderStyle})}}Xn.registerDefinition(Qn,{HasMultiStyles:{properties:{predefinedTextStyles:{isStateProperty:!0,isStyleProperty:!0,defaultValue:function(){return so},onChange:function(e){var n=e.getPropertyValue(ei.predefinedTextStyles.name);r.eachEntry(n,function(n,i){t(e,n,i)})}}},aggregatedMethods:{aggregations:{onCreation:function(){var t=this;t.instanceCssRules=e(t)}}}}})}(),function(){Xn.registerDefinition(Qn,{HasRichContent:{className:"has-rich-content",features:[Qn.HasGrowableContent,Qn.Editable,Qn.Clickable],methods:{setRichContent:function(e){var t=this;e=Ra.startProcessing(e).processLinks().processCKObjectsForViewing().finish().getProcessedContent(),t.getElementDataContent().html(e),t.refreshRichContentState()},refreshRichContentState:function(){var e=this.getElementDataContent();e.chooseClass(e.hasVisualContent(),"has-content","no-content")}}}})}(),function(){function e(e){e.data.payPalHolder=r.useTemplate(t.ElementContent),e.data.payPalButtonController=oa.createButton();var n=e.getPropertyValue("paypalOptions"),i=e.getPropertyValue("paypalData");return e.data.payPalButtonController.refresh(Bi.Types.PayPal,n,i.type,e.data.payPalHolder),e.data.payPalHolder}var t={ElementContent:{id:"paypal-button-template"}};Xn.registerDefinition(Qn,{PaypalFeature:{properties:{paypalData:{defaultValue:function(){return{type:oa.ButtonTypes.buynow.value,accountType:Bi.Types.PayPal}},isNotForCustomProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound&&e.isBound(oi.paypal.getContentType())},onChange:function(e,t){if(e.InstancePropertiesInitialized.isTrue()){var n=e.getPropertyValue("paypalOptions");e.data.payPalButtonController.refresh(Bi.Types.PayPal,n,t.type,e.data.payPalHolder)}}},paypalOptions:{isNotForCustomProperty:!0,defaultValue:function(){return{item_name:"Product Name",currency_code:"USD",shipping:0,tax:0,amount:5,quantity:1}},supportsBinding:!0,isBound:function(e){return e.isBound&&e.isBound(oi.paypal.getContentType())},onChange:function(e,t){if(e.InstancePropertiesInitialized.isTrue()){var n=e.getPropertyValue("paypalData");e.data.payPalButtonController.refresh(Bi.Types.PayPal,t,n.type,e.data.payPalHolder)}}}},methods:{hasButtonBehaviour:xo,hasBinding:function(){return ei.paypalData.isBound(this)&&ei.payPal.isBound(this)},creationFunction:e,createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e);return this.isBound(oi.paypal.getContentType())&&(t[ei.paypalData.name]=no.create(e,{propertyName:ei.paypalData.name}),t[ei.paypalOptions.name]=no.create(e,{propertyName:ei.paypalOptions.name})),t}},aggregatedMethods:{aggregations:{switchToPreview:function(){this.data.payPalButtonController.activate(this)},onBoundValueReady:function(e){var t=this;t.isBound(oi.paypal.getContentType())&&t.setBindingValueToProperty({paypalData:void 0===e[oi.paypal.getContentType()]?ei.paypalData.defaultValue():e[oi.paypal.getContentType()].paypalData,paypalOptions:void 0===e[oi.paypal.getContentType()]?ei.paypalOptions.defaultValue():e[oi.paypal.getContentType()].paypalOptions})}}}}})}(),function(){function e(e){e.data.payPalHolder=r.useTemplate(t.ElementContent);var n=oa.createButton();e.data.payPalButtonController=n;e.getPropertyValue("paypalAccount");return e.data.payPalButtonController.refresh(Bi.Types.PayPal,{},"view",e.data.payPalHolder),e.data.payPalHolder}var t={ElementContent:{id:"paypal-button-template"}};Xn.registerDefinition(Qn,{CheckOutFeature:{properties:{paypalAccount:{isNotForCustomProperty:!0,defaultValue:function(){return Bi.Types.PayPal},onChange:function(e){if(e.InstancePropertiesInitialized.isTrue()){var t=e.getPropertyValue("checkOutOptions");e.data.payPalButtonController.refresh(Bi.Types.PayPal,t,"view",e.data.payPalHolder)}}},checkOutOptions:{isNotForCustomProperty:!0,defaultValue:function(){return{notify_url:""}},onChange:function(e,t){if(e.InstancePropertiesInitialized.isTrue()){e.getPropertyValue("paypalAccount");e.data.payPalButtonController.refresh(Bi.Types.PayPal,t,"view",e.data.payPalHolder)}}}},methods:{hasButtonBehaviour:xo,creationFunction:e},aggregatedMethods:{aggregations:{switchToPreview:function(){this.data.payPalButtonController.activate(this)}}}}})}(),function(){function e(e,t){function n(){l&&o.appendTo(u.$element)}function i(){var e=u.getInstance();d.add(e.instanceController.createdFlag.onceTrue(function(){l=e.getSkinInstance().getInstancesByField("title")[0],l&&(d.add(l.propertiesChanged.bind(function(e){r.containsOneOfKeys(e,"fontColor","fontSize","namedTextStyle")&&a(l)})),a(),c&&n())}))}function a(){var e="#000",n=l.getPropertyValue("fontColor"),i=Ba.getElementTextStyle(l);!n&&i&&(n=i.color),n&&(e=n,e=Ma.evaluateColorBinding(e,!0));var a=l.getPropertyValue("fontSize")||14;!a&&i&&(a=i.fontSize);var r;switch(t.arrowSide){case it.Bottom:r="angle-down";break;case it.Top:r="angle-up";break;case it.Right:r="angle-right";break;case it.Left:r="angle-left"}s.css({fontSize:a,color:e}),or.applyIcon(s,{collectionName:"public-font-icons",iconName:r})}t=r.quickExtend({arrowSide:it.Bottom,controller:void 0},t);var o,s,l,c,u=t.controller,d=b.createBindingsCollection();d.add(e.propertyChangedEvent.bindAndExecute("showDropDownArrow",function(){c=e.getPropertyValue("showDropDownArrow"),c?o?n():(o=r(''),s=r(".menu-sub-hierarchy-arrow",o),d.add(u.initializeFlag.onceTrue(i))):o&&o.detach()}));var g=!1,f={remove:function(){g||(g=!0,o&&o.remove(),d.unbindAll())}};return u.removedEvent.one(function(){f.remove()}),f}function t(e,t){t=r.quickExtend({instanceCreatedCallback:To},t);var n={};return{createInstanceController:function(i){var a=i.id,r=n[a];if(!r){var o=e.getDefaultTemplate().hierarchy;r=vo.create(o,{fieldName:e.elementType.itemName,dataSourceOptions:{dataItem:i,dataItemID:i.id,dataSourceName:e.getDataSourceName()},templateOptions:{isContent:!0,isLoading:!0,rootsIds:[e.id+He+"temp"+He+a],generateNewID:!0},isForTemplateUse:!1});var s=e.dataLayoutController.getLastArrangementOptionsByCurrentDevice();r.setSize(s.fixedSize),n[a]=r,t.instanceCreatedCallback(r)}return r},remove:function(){r.eachEntry(n,function(e,t){t.removeController()})}}}function n(e){function t(t){i.activate(),t.data.isMoreButton=!0,t.instanceRemoving.one(function(){i.deactivate()}),t.getItemMainParent=function(){return e},t.setNeverSelectedInClick(!0),t.instanceController.initializeFlag.onceTrue(function(){t.getSkinInstance().setNeverSelectedInClick(!0);var n=t.getSkinInstance().getPropertyValue("fieldsMap"),i=e.getPropertyValue("moreButtonText");t.instanceController.createdFlag.onceTrue(function(){r.eachEntry(n,function(n,a){var o=ji.getInstanceByID(n),s=!1;r.eachEntry(a,function(n,a){if(n==ci.Text&&"title"===a.name){s=!0,Ki.removeStateAffected(o,function(e,t,n,i){return"text"===i}),o.setPropertyValue("binding",null),o.data.textBinding=no.create(o,{propertyName:"text"}),o.data.textBinding.setValue(i);var r=e.propertyChangedEvent.bind("moreButtonText",function(e){o.data.textBinding.setValue(e)});t.instanceRemoved.one(function(){r.unbind()})}}),s||ji.removeInstances(o)})})})}var n=vo.create(e.getDefaultTemplate().hierarchy,{parentInstanceId:e.id,dataSourceOptions:{dataItemID:""+r.uniqueID()},templateOptions:{initialProperties:{all:{binding:null}},isContent:!0,isLoading:!0,generateNewID:!0}}),i=b.createEventListener([{event:e.propertyChangedEvent,name:"fieldsTemplates"}],function(){var i=e.getDefaultTemplate().hierarchy;i.id!==n.getTemplateStructure().id&&(n.setTemplateStructure(i),t(n.getInstance()))}),a=n.getInstance();return t(a),n}Xn.registerDefinition(Qn,{HasMoreButton:{properties:{dropDownNavigationSettings:{isStateProperty:!0,defaultValue:function(){return{navigation:"DropDownNavigation",navigationProperties:{width:150,spacing:20,mobileHeight:400,mobileDirection:"left",mobileWidth:250,animationSpeed:400,useHierarchy:!0,hierarchyOpened:!1,backgroundColor:{mainColor:1,opacity:1,brightness:0},fontColor:{mainColor:3,opacity:1,brightness:0},fontSize:15,borderRadius:0,borderWidth:0,borderColor:{mainColor:1,opacity:1,brightness:0},orientation:"center",horizontalPosition:it.Center,horizontalLeft:0,horizontalRight:0,verticalDistance:0,horizontalDistance:0,verticalTop:0,innerDistance:0,font:{themeFont:"heading1"},useSkinButton:!1,showDropDownArrow:!0}}}},moreButtonText:{isStateProperty:!0,defaultValue:To},showDropDownArrow:{isStateProperty:!0,defaultValue:ko}},defaultProperties:{itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0}}},sizeAndPosition:function(){return{width:400,height:400,top:0,left:0}},dataLayout:function(){return{name:_i.HorizontalMenu.name}},dataLayoutOptions:function(){return{lineSpacing:15,columnSpacing:15,colsSpacing:15,rowsSpacing:15,rotation:0,cols:3,R:100,maxItems:6}}},methods:{getArrangementOptions:function($super){var e=this,t=e.data;return r.quickExtend($super.call(e),{dropDownNavigationSettings:e.getPropertyValue("dropDownNavigationSettings"),createSubHierarchyElement:t.createSubHierarchyElement,createMoreItemsController:t.createMoreItemsController,createItemsController:t.createItemsController})}},aggregatedMethods:{aggregations:{switchToPreview:function(e){e&&this.requestArrangement()},onInitializing:function(){var i=this,a=i.data;a.createMoreItemsController=r.firstArgProxy(n,i),a.createSubHierarchyElement=r.firstArgProxy(e,i),a.createItemsController=r.firstArgProxy(t,i)}}}}})}(),function(){Xn.registerDefinition(Qn,{DelegatedContent:{features:[Qn.HasGrowableContent],methods:{getDelegatedContentInstance:To,getElementDataContent:function($super){var e=this,t=e.getDelegatedContentInstance();return t?t.$element:$super.call(e)},refreshContentSize:function($super){var e=this.getDelegatedContentInstance();e?void 0!==e.contentHeight.getValue()&&$super.call(this):$super.call(this)},getElementDataContentSize:function($super){var e=this,t=e.getDelegatedContentInstance();if(t){var n=t.getSize(),i=e.getSize();n.height=Math.max(n.height,t.contentHeight.getValue());var a=i.width-n.width,r=i.height-n.height;return{width:n.width+a,height:t.contentHeight.getValue()+r}}return $super.call(e)},initiailizeDelegatedContentBinding:function(e){var t=this;ur.performOnFramesLayoutUpdade(e,t.id+"initiailizeDelegatedContentBinding")}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;e.initiailizeDelegatedContentBinding(function(){var t=e.getDelegatedContentInstance();t&&t.contentHeightRefreshedEvent.bind(function(){e.refreshContentSize()})})}}}}})}(),function(){function e(e,t){var n,i,a;return Ta.Flags.IsInMobileContext.isTrue()?(n=e.data.mobilePopupController,!n&&t&&(n=e.data.mobilePopupController=Fn.MobilePopup.create(e.id,{items:e.getPopupItemsCollectionForInitialization(),isVideo:e.isType(Yn.VideoGallery)||e.isType(Yn.VideoPlayer),isElement:e.isType(Yn.JMMLElement),isMobile:!0}))):(n=e.data.popupController,!n&&t&&(i=e.getPropertyValue("popupType"),a=e.getPropertyValue("popupSettings")||{},(a.popupType=i)&&(a=a.settings),n=na.create(e.id,i,{items:e.getPopupItemsCollectionForInitialization(),isVideo:e.isType(Yn.VideoGallery)||e.isType(Yn.VideoPlayer),isMobile:!1},a),e.data.popupController=n)),n}function t(e){var t,n=e.getPropertyValue("templateOpener");e.$element.toggleClass("popupOpener",n),n?e.data.popupBinding=e.triggerActivated.bind(Pi.MouseClick.name,function(n){t=i(e,n),void 0!==t&&e.showPopup({currentItem:t})}):e.data.popupBinding&&e.data.popupBinding.unbind()}function i(e,t){var i;if(e.isType(Yn.image)||e.isType(Yn.VideoPlayer))return e.getClickedIndex?e.getClickedIndex():0;if((e.isType(Yn.Gallery)||e.isType(Yn.VideoGallery))&&(i=r(t.target).closest(".design-element.data-list-item"),i.length>0)){var a=n(i[0]);if(a)return a.getDataItem()}}Xn.registerDefinition(Qn,{HasPopup:{features:[Qn.Clickable],className:"has-popup",properties:{templateOpener:{defaultValue:ko,isNotForCustomProperty:!0,onChange:function(e){t(e)}},popupType:{defaultValue:function(){return na.defaultPopupName}},popupSettings:{}},methods:{isPopupDisabled:ko,showPopup:function(t){if(!this.isPopupDisabled()){var n,i,a=this,o=e(a,!0),s=(Ta.Flags.IsInMobileContext.isTrue(),D.create()),l=b.createEventListener([ta.Events.PageChanging,Hi.Events.ViewModeChanged,Ta.Events.SwitchingBetweenDevices],function(){o.hide(!1)}).activate();i=b.createEventListener(r.getWindowSizeEvent(),function(){s.setValue(r.getWindowArea())}),i.activateAndExecute(),t=r.quickExtend({currentItem:0,items:a.getPopupItems(),shouldResetItems:a.shouldResetItems,containerArea:s,hostContainer:n,closeCallback:function(){l.dispose(),i.dispose()}},t),o.show(t)}},getPopupItemsCollectionForInitialization:To,getPopupItems:To,isPopupEnabled:function(){return this.getPropertyValue("templateOpener")},hasButtonBehaviour:function($super){return $super.call(this)||!this.hasFeature(Qn.DataList)&&this.isPopupEnabled()}},aggregatedMethods:{aggregations:{onRemove:function(){var t=this,n=e(t);n&&n.dispose()}}}}})}(),function(){Xn.registerDefinition(Qn,{HasPopupElement:{features:[Qn.HasPopup],properties:{elementPopupEnabled:{isStateProperty:!0,defaultValue:xo},elementPopupTimeout:{defaultValue:function(){return 1e3}},elementPopupVisible:{defaultValue:ko}},defaultProperties:{popupType:{defaultValue:function(){return"ElementPopup"}}},methods:{showElementInPopup:function(){var e=this;e.$elementParent=e.$element.parent(), Ta.Flags.IsInMobileContext.isFalse()?(e.setCalculatedPropertyValue("horizontalDocking",tt.Centered),e.setCalculatedPropertyValue("verticalDocking",nt.Centered),e.setPropertyFieldValue("margin","top",0),e.setPropertyFieldValue("margin","left",0)):(e.setCalculatedPropertyValue("horizontalDocking",tt.Left),e.setCalculatedPropertyValue("verticalDocking",nt.Center)),e.setPropertyValue("isVisible",!1),e.properties.isVisible.value=!1;var t=1e3*(e.getPropertyValue("elementPopupTimeout")||0);e.getPropertyValue("elementPopupEnabled")&&(e.popUpTimeout=setTimeout(function(){ur.startRenderingBatch(),e.setPropertyValue("isVisible",!0),e.showElement(),e.showPopup({currentItem:e}),ur.finishRenderingBatch();var t=e.data.popupController||e.data.mobilePopupController;t.$container.on("click",function(n){0===e.$element.has(n.target).length&&t.hide(!0)})},t))},getPopupItemsCollectionForInitialization:function(){return this.$element}},aggregatedMethods:{aggregations:{}}}})}(),function(){Xn.registerDefinition(Qn,{SkinSelectable:{methods:{getSkinSupportedStates:function(){return[Ei.ElementSelectedState,Ei.MouseOverState,Ei.MouseDownState]},userSelect:function($super,e){void 0===e&&(e=!this.data.isUserSelected),$super.call(this,e),this.getSkinInstance().userSelect(e)}}}})}(),function(){Xn.registerDefinition(Qn,{HasFormData:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Focusable,Qn.Hideable,Qn.HasBorder],properties:{formID:{defaultValue:Fo},formOptions:{defaultValue:function(){return{clearOnSubmit:!0}}}},defaultProperties:{dataLayout:function(){return{name:"Rows"}},dataLayoutOptions:function(){return{cols:1,rows:5,colsSpacing:10,rowsSpacing:10,oneColumn:!0}},itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},labelText:{type:"title",title:void 0,name:"labelText",isDefaultField:!0}}}},methods:{getNewContentSize:function(e){return e.vertically=!1,this.calculateNewContentSize(e)},calculateDiffHeight:function(e,t,n,i){return n?i.height-n.height:0},calculateActualSize:function(){var e=this;return e.$element.elementContentSize()}},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this;null===e.getPropertyValue("formID")&&(ie.disableOperationsRecording("changingFormId"),e.setPropertyValue("formID",fa.generateWebsiteId()),ie.enableOperationsRecording("changingFormId"))}}}}})}(),function(){Xn.registerDefinition(Qn,{HasFormDataList:{properties:{},methods:{getDefaultTemplate:function(e){var t=this.elementType.itemName,n=r.getValues(this.getFieldsTemplates()[e])[0];return n||(n=r.getValues(this.getFieldsTemplates()[t])[0]),n},hasHeight:function(){var e=this;return e.inEmptyStateFlag.isTrue()},hasVerticalAlign:ko,hasHorizontalAlign:ko,getDataSourceDefinition:function(){return ri.FormElementView},alignContentHorizontal:function(){if(this.hasContentHorizontalAlign()){var e=this.getPropertyValue("horizontalContentAlign");e!==Je.None?this.data.$relativeChildElementContentHolder.css({"text-align":"{0}".format(e)}):this.data.$relativeChildElementContentHolder.css({"text-align":""})}},hasContentHorizontalAlign:xo,reorderChildElements:function(){if(this.hasOrder.getValue()){for(var e=r([]),t=this.getChildInstances(),n=0;na;a++){var r=n[a],o=!r.isContent()&&!r.hasFeature(Qn.DataListItem);o?e.openTag("div","block positioned form-element-child",void 0,r.id+"form-child"):void 0,r.renderElement(e),o?e.closeTag():void 0}e.closeTag(),e.closeTag()},creationFunction:To,addChildElement:function(e){if(e.isContent()||e.hasFeature(Qn.DataListItem))return this.data.$relativeChildElementContentHolder.append(e.$element);e.$element.wrap(r("
".format(e.id+"form-child")));var t=e.$element.parent();return this.data.$relativeChildElementContentHolder.append(t)}},features:[Qn.DataList],aggregatedMethods:{aggregations:{onChildElementAdded:function(e){var t=this;e.isContent()||e.isType(Yn.skinInputElement)||(ie.disableOperationsRecording("form-child-init"),e.isRelativePositionedFlag.setTrue(),e.isType(Yn.SkinCheckBoxButtonElement)?(e.setPropertyValue("display",Qe.Block),e.hasWidth=ko,e.canDelete=ko):(e.classesManager.set({"inline-block-element":!0}),e.isTypeOf(Yn.SkinButtonElement)||qi.connectElement(e.id,t.id,Ii.SubmitForm.name,{triggerName:Pi.MouseClick.name,triggerType:bi.Trigger})),e.instanceRemoved.one(function(){Gi.requestUpdatePosition(t)}),e.data.formChild=!0,e.canPushFlag.setValue(!1,"formChild"),e.hasOrder.setValue(!1,"formChild"),e.customZIndex.setValue(W.MinPropertyZindex),ie.enableOperationsRecording("form-child-init"))},onChildElementRemoved:function(e){var t=this,n=e.elementType.name===Yn.SkinCheckBoxButtonElement.name&&t.elementType.name===Yn.FormElement.name;if(!e.isContent()&&!n){ie.disableOperationsRecording("form-child-init"),e.isRelativePositionedFlag.setFalse(),e.classesManager.set({"inline-block-element":!1}),e.setPropertyValue("display",Qe.Fixed);var i="#"+e.id+"form-child";r(i).remove(),ie.enableOperationsRecording("form-child-init")}},onInitialized:function(){var e=this;b.createEventListener([e.reArrangingFinished,{event:e.propertyChangedEvent,name:"verticalLayout"}],function(){ur.performOnLayoutUpdate(function(){ie.disableOperationsRecording("updateFormSize"),Xi.setInstancesSize(e,e.getSize(),{preserveVerticalMargins:!0,preserveHorizontalMargins:!0}),ie.enableOperationsRecording("updateFormSize")})}).activate()}}}}})}(),function(){function e(e){for(var t=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],n=0;n0&&r.eachItem(n,function(n,i){var a=i._dataSourceOptions.dataItem;if(a){var r=i.instance,o="";a.productName&&(o=e.ToSeoUrl(a.productName,"-"));var s={url:{masterListPageId:t.connectedListPage,suffixFragments:[a.id,o],keepCases:!0},type:"Pages"};r?(r.setPropertyValue("urlAddress",s),r.canEdit.setFalse()):i.initializeFlag.onceTrue(function(){i.instance.setPropertyValue("urlAddress",s)})}i.$element.click(function(){Cr.setCurrentProduct(a)})})}))}}}},features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList,Qn.TemplatePagesList]}})}();var lo={MainContent:1,SideBar:2},co=function(){var e=g.extend("PageContentLayout",{init:function(e,t){var n=this;n._options=t=r.quickExtend({},t),n._pageContentInstance=e,n.name=t.name,n.id=r.weakID(),n._pageToMainContainers={},n._pageToSideBarContainers={},n._prevPage},getLayoutOptions:function(){return this._options},attachToContainer:function(){var e=this;e._$content.appendTo(e._pageContentInstance.getContentLayer())},getSectionsWrapper:function(e){switch(e){case lo.MainContent:return this._$mainSectionsWrapper;case lo.SideBar:return this._$sideBarSectionsWrapper;default:return}},hasSideBar:ko,initialize:function(e){var t=this;t._$content=this.__renderContent(),t._$mainSectionsContainer=r(".main-sections-container",t._$content),t._$mainSectionsWrapper=r("
").appendTo(t._$mainSectionsContainer),t.hasSideBar()&&(t._$sideBarSectionsContainer=r(".side-bar-sections-container",t._$content),t._$sideBarSectionsWrapper=r("
").appendTo(t._$sideBarSectionsContainer)),t.__initialize(r.quickExtend({},t._options,e)),t._pageBinding=ta.Events.PageLoaded.bindAndExecute(function(){var e=t._pageContentInstance,n=t._prevPage,i=ta.getCurrentPage(),a=t._pageToMainContainers,r=t._pageToSideBarContainers;if(i){if(e.getPageId()===i.id&&n!==i){n&&(r[n.id]&&r[n.id].detach(),a[n.id]&&a[n.id].detach());var o=t.__getMainContainer(i),s=t.__getSideBarContainer(i);o.appendTo(t._$mainSectionsWrapper),t.hasSideBar()&&s.appendTo(t._$sideBarSectionsWrapper)}t._prevPage=i}}),this.isInitialized=!0},__initialize:To,__renderContent:To,reorderSections:function(e){if(this.isInitialized){for(var t=r([]),n=r([]),i=0;i
")),this._pageToMainContainers[e.id]},addSectionToSideBar:function(e,t){var n=this;return n.__addSectionToSideBar(e,t)},__getSideBarContainer:function(e){return this._pageToSideBarContainers[e.id]||(this._pageToSideBarContainers[e.id]=r("
")),this._pageToSideBarContainers[e.id]},__addSectionToSideBar:function(e){e.isDisplayed.setFalse("no-sidebar")},removeSection:function(e){e.detach(),e.isDisplayed.setTrue("no-sidebar"),e.isDisplayed.setTrue("no-main")},remove:function(){var e=this;r.eachEntry(cr.CurrentMainPageSections.getItems(),function(t,n){(n.instance.isType(Yn.SectionElement)||n.instance.isTypeOf(Yn.HtmlSectionElement))&&e.removeSection(n.instance)}),r.eachEntry(cr.CurrentSideBarPageSections.getItems(),function(t,n){(n.instance.isType(Yn.SectionElement)||n.instance.isTypeOf(Yn.HtmlSectionElement))&&e.removeSection(n.instance)}),this._pageBinding&&this._pageBinding.unbind(),this._$content.remove()}});return e.create=function(e,t,n){n.name=e;var i=pr[e];return i?i.create(t,n):void 0},e}();!function(){var e={Element:{group:"base-page-content-element-templates",name:"base-page-content-element-template"}},t=co.extend("BasePageContentLayout",{__initialize:To,__renderContent:function(){return r.useTemplate(e.Element)},__addSectionToMain:function(e,t){var n=this,i=n.__getMainContainer(t);return e.$element.appendTo(i),i}});mr.registerPageContentLayout("BasePageContentLayout",t)}(),function(){var e={Element:{group:"side-bar-page-content-element-templates",name:"side-bar-page-content-element-template"}},t=co.extend("SideBarPageContentLayout",{__initialize:function(e){e=r.quickExtend({sideBarWidth:200,contentWidth:754,side:it.Left},e);var t=e.sideBarWidth,n=e.contentWidth-t,i=e.side===it.Left,a=r(".side-bar-background-layer",this._$content);this._$sideBarSectionsContainer.css("width",t),a.css("width",t),this._$mainSectionsContainer.css("width",n),this._$content.addClass(i?"left-side-bar":"right-side-bar"),i||this._$sideBarSectionsContainer.appendTo(this._$content)},hasSideBar:xo,__renderContent:function(){return r.useTemplate(e.Element)},__addSectionToMain:function(e,t){var n=this,i=n.__getMainContainer(t);return e.$element.appendTo(i),i},__addSectionToSideBar:function(e,t){var n=this;e.isDisplayed.setTrue("no-sidebar");var i=n.__getSideBarContainer(t);return e.$element.appendTo(i),i}});mr.registerPageContentLayout("SideBarPageContentLayout",t)}(),function(){function e(e,t,n){var i=r.valueOrDefaultArray(n,[t&&t.title,"Default Text"]);e.setBindingValueToProperty(""+i,ei.text.name)}function t(e){var t=!1,n=r.useTemplate(h.Element,{tagName:e.getPropertyValue("tagName"),editable:t}),i=e.data;return i.verticalContextValue=fe.createContextClass({getTarget:function(){return e.getTextElements()}}),i.$textContent=r(".text-content",n).dotdotdot({height:function(){var t=e.getContentSize();return t&&t.height},ignoredHeight:function(){return Math.ceil(e.calculateDecimalLineHeight()*e.calculateFontSize())}}),e.instanceRemoving.one(function(){i.$textContent.trigger("destroy.dot")}),i.$label=n,i.isLabelEditable=t,t&&(i.$textInput=r(".element-text-input",n)),n}function n(){var e=this,t=e.data;e.hasHorizontalAlignFlag.setTrue(),e.hasVerticalAlignFlag.setTrue(),e.contentSizeChangedEvent.bind(function(){l(e)}),t.isLabelEditable&&(t.$textInput.keypress(function(){i(e)}).keydown(function(){i(e)}),e.$element.click(function(e){t.currentMode==p.EditMode&&e.target!=t.$textInput[0]&&t.$textInput.focus()})),g(e),s(e),o(e)}function i(e){window.setTimeout(function(){a(e)},0)}function a(e){e.data.currentMode==p.EditMode&&e.setPropertyValueWithOrWithOutBinding(e.data.$textInput.val(),ei.text.name)}function o(e){e.data.loadingFonts||(e.data.loadingFonts={}),wn.requestReadOperation(function(){var t=e.getPropertyValue("font");t=Na.evaluateFontBinding(t),hn.isFontLoaded(t)||e.data.loadingFonts[t]||(e.data.loadingFonts[t]=!0,hn.onFontLoaded(t,{successCallback:function(){e.performWhenVisible(function(){g(e),u(e),delete e.data.loadingFonts[t]},e.id+"visibilityEventBinding")},timeout:15e3}))},e.id+"pollFontUpdate")}function s(e){e.$element.removeClass("state-editing");var t=e.data;t.currentMode!==p.ViewMode&&(t.currentMode=p.ViewMode,t.isLabelEditable&&t.$textInput.quickHide().unbind("keydown.rtl"),t.$textContent.quickShow(),u(e))}function l(e){e.data.currentMode==p.EditMode?c(e):u(e)}function c(e){var t=e.getPropertyValue("text");t!==e.data.$textInput.val()&&e.data.$textInput.val(t);var n;n=e.data.$textInput.measureText(""!==e.data.normalizedText?e.data.normalizedText:" ",!1),e.data.$textInput.css({height:n.height})}function u(e){wn.requestIndpendentWriteOperation(function(){window.clearTimeout(e.data.refreshTextContentTimeout),e.data.refreshTextContentTimeout=window.setTimeout(function(){d(e)},0)},e.id+"dotdotdot")}function d(e){e.data.$textContent.html(e.data.normalizedText)}function g(e){var t,n=e.getPropertyValue("text");t=n?""+n:"",t=r.escapeHTML(t);var i=t.replace(/\n/g,"
");"\n"==t.charAt(t.length-1)&&(i+=" "),e.data.normalizedText=i}function f(e){var t=e.$element;e.performWhenVisible(function(){ur.performUpdateOnRenderingFinished(function(){if(e.isInstanceVisible()){var n=e.getSize();t.width(n.width+1).width(n.width-1)}},e.id+"explorerHack")},e.id+"explorerHack")}var h={Element:{useTemplate:function(e){var t=(e.type,e.editable),n=new v;return n.append('
'),n.append(''),t&&n.append(''),n.append("
"),r(""+n)}}};Xn.registerDefinition(Yn,{label:{className:"label-element",properties:{text:{defaultValue:To,category:Jn.TextStyle,isStateProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound(oi.title.getContentType())||e.isBound(oi.description.getContentType())},getBindingType:function(e){var t;return e.isBound(oi.title.getContentType())?t=oi.title.getContentType():e.isBound(oi.description.getContentType())&&(t=oi.description.getContentType()),t},onChange:function(e){g(e)}},textType:{isStyleProperty:!0,defaultValue:function(){return je.None.value}},trimText:{isStateProperty:!0,isStyleProperty:!0,defaultValue:ko,category:Jn.TextStyle}},features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Resizable,Qn.Clickable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.Hideable,Qn.HasLayout,Qn.HasPadding,Qn.HasContent,Qn.HasText,Qn.Editable,Qn.HasBorder,Qn.Rotatable],methods:{creationFunction:t,refreshTextLayout:function(){l(this)},hasBinding:function(){return ei.text.isBound(this)},getTextElements:function(){var e=r([]),t=this.data;return t.isLabelEditable&&e.pushElements(t.$textInput),e.pushElements(t.$textContent),e},getElementDataContent:function(){return this.data.$textContent},hasHorizontalAlign:xo,hasVerticalAlign:xo,alignVertical:function(){var e=this;if(e.hasVerticalAlign()){var t,n=e.getPropertyValue("verticalAlign");switch(n){case Ye.Centered:t="vertically-centered";break;case Ye.Top:t="vertically-top";break;case Ye.Bottom:t="vertically-bottom"}e.data.verticalContextValue.set(t)}},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=oi.title.getContentType(),i=oi.description.getContentType();return(this.isBound(n)||this.isBound(i))&&(t[ei.text.name]=no.create(e,{propertyName:ei.text.name})),t}},aggregatedMethods:{aggregations:{onInitializing:n,onBoundValueReady:function(t){var n=this,i=ei.text.getBindingType(n);if(void 0!==i){var a=n.getBindingFields(i);e(n,a,t[i])}},onPropertiesChanged:function(e){var t=this;r.containsOneOfKeys(e,"fontSize","text","textStyle","verticalAlign","lineHeight")&&l(t),r.containsOneOfKeys(e,"font")&&o(t),r.browser.msie&&t.isInitialized&&r.containsOneOfKeys(e,"horizontalAlign")&&f(t)}}}}});var p={ViewMode:"view-mode",EditMode:"edit-mode"}}(),function(){function e(e){var t=Math.max(0,e.getPropertyValue("sectionPadding")),n=Math.max(0,e.getPropertyValue("sectionVerticalPadding")),i=e.data.sectionPaddingCssRule;i||(i=r.rule(".{0} .content-container.content-container-type.element-size-box.section-element-size-box {}".format(Di.MobileDesktopViewClass)),e.data.sectionPaddingCssRule=i),i.css({padding:"{0}px {1}px".format(n,t)})}var t={className:"coordinator-element",title:"Coordinator",isNotDesignElement:!0,features:[],properties:{pageContentWidth:{defaultValue:function(){return 960}},siteStatesGroups:{title:"States Groups",category:Jn.Other,defaultValue:Fo},responsiveStates:{defaultValue:Fo},sitePresetPalettes:{defaultValue:function(){return[]}},themeFonts:{defaultValue:function(){return{heading1:"Questrial",heading2:"Questrial",body1:"Arial",body2:"Arial"}}},textStyles:{defaultValue:function(){return{title:{fontSize:23,fontFamily:{themeFont:"heading1"},color:"#000000",isBold:!1,isItalic:!1},menu:{fontSize:15,fontFamily:{themeFont:"body2"},color:"#000000",isBold:!1,isItalic:!1},pageTitle:{fontSize:50,fontFamily:{themeFont:"heading1"},color:"#000000",isBold:!1,isItalic:!1},headingXL:{fontSize:72,fontFamily:{themeFont:"heading1"},color:"#000000",isBold:!1,isItalic:!1},headingL:{fontSize:25,fontFamily:{themeFont:"heading1"},color:"#000000",isBold:!1,isItalic:!1},headingM:{fontSize:24,fontFamily:{themeFont:"heading2"},color:"#000000",isBold:!1,isItalic:!1},headingS:{fontSize:20,fontFamily:{themeFont:"heading2"},color:"#000000",isBold:!1,isItalic:!1},bodyL:{fontSize:19,fontFamily:{themeFont:"body1"},color:"#000000",isBold:!1,isItalic:!1},bodyM:{fontSize:15,fontFamily:{themeFont:"body2"},color:"#000000",isBold:!1,isItalic:!1},bodyS:{fontSize:14,fontFamily:{themeFont:"body2"},color:"#000000",isBold:!1,isItalic:!1},bodyXS:{fontSize:10,fontFamily:{themeFont:"body2"},color:"#000000",isBold:!1,isItalic:!1}}}},themeColors:{defaultValue:function(){return Ma.generatePalette(["#69D2E7","#A7DBD8","#E0E4CC","#F38630","#FA6900"])}},skins:{comparer:ko,preSaveProcessing:function(e){return r.eachEntry(e,function(e,t){r.each(t,function(t,n){if(n){var i=e+t,a=Ga.getStyle(i);if(a){var o=Ga.getStyleInformation(i);r.eachEntry(n,function(e,t){t&&r.eachEntry(t,function(e,t){t&&(t.fieldsToValues=o.fields,t.statesAnimations=o.statesAnimations)})})}}})}),e},defaultValue:function(){var e={};return e[Yn.skinImageElement.name]=r.createArrayWithValue(null,4),e}},contentWidth:{isStateProperty:!0,defaultValue:function(){return 960},onChange:function(e,t){null!==t&&W.PageContentWidthChanged.fireNew()}},columnsGrid:{isStateProperty:!0,defaultValue:function(){return{margin:10,gutter:20,columnsNumber:12,color:"#92C348",showAlways:!1,isEnabled:!1,opacity:20}},onChange:function(e,t){void 0===t.isEnabled&&(e.properties.columnsGrid.value.isEnabled=!0,e.properties.columnsGrid.value.showAlways=!1)}},innerRowsSpacing:{isStateProperty:!0,defaultValue:function(){return 5},onChange:function(e,t){var n=e.data.innerRowsSpacing;n||(n=r.rule(".{0} .row-element.desc-row {}".format(Di.MobileDesktopViewClass)),e.data.innerRowsSpacing=n),n.css({"margin-bottom":"{0}px".format(t)})}},rowsSpacing:{isStateProperty:!0,defaultValue:function(){return 5},onChange:function(e,t){var n=e.data.rowCssRule;n||(n=r.rule(".{0} .row-element.root-row {}".format(Di.MobileDesktopViewClass)),e.data.rowCssRule=n),n.css({"margin-bottom":"{0}px".format(t)})}},cellsSpacing:{isStateProperty:!0,defaultValue:function(){return 2},onChange:function(e,t){var n=e.data.cellCssRule;n||(n=r.rule(".{0} .design-element .cell-element {}".format(Di.MobileDesktopViewClass)),e.data.cellCssRule=n),n.css({"margin-right":"{0}%".format(t)})}},sectionPadding:{isStateProperty:!0,defaultValue:function(){return 0},onChange:e},sectionVerticalPadding:{isStateProperty:!0,defaultValue:function(){return 0},onChange:e},pagePadding:{isStateProperty:!0,defaultValue:function(){return 20},onChange:function(e,t){var n=e.data.paddingCssRule;n||(n=r.rule(".{0} .page-element-border-box {}".format(Di.MobileDesktopViewClass)),e.data.paddingCssRule=n),n.css({padding:"0px {0}px".format(t)})}},innerRowPadding:{isStateProperty:!0,defaultValue:function(){return 5},onChange:function(e,t){var n=e.data.innerRowPadding;n||(n=r.rule(".{0} .row-element .cell-element-container {}".format(Di.MobileDesktopViewClass)),e.data.innerRowPadding=n),n.css({padding:"{0}px".format(t)})}},cellsVerticalAlignment:{isStateProperty:!0,defaultValue:function(){return Ze.Middle},onChange:function(e,t){var n=e.data.cellsVerticalAlignment;n||(n=r.rule(".{0} .design-element .cell-element {}".format(Di.MobileDesktopViewClass)),e.data.cellsVerticalAlignment=n),n.css({"vertical-align":"{0}".format(t)})}},cellsHorizontalAlignment:{isStateProperty:!0,defaultValue:function(){return Je.Center},onChange:function(e,t){var n=e.data.cellsHorizontalAlignment;n||(n=r.rule(".{0} .design-element .cell-element {}".format(Di.MobileDesktopViewClass)),e.data.cellsHorizontalAlignment=n),n.css({"text-align":"{0}".format(t)})}},isSiteWasEditedInMode:{isStateProperty:!0,defaultValue:ko},listsData:{notForUndoProperty:!0,defaultValue:r.returnEmptyObject},freeVideoElements:{notForUndoProperty:!0,defaultValue:To}},methods:{getSkin:function(e){var t=e.skinName,n=e.index,i=r.valueOrDefault(e.skinNameVariationType,Ua.Default),a=r.valueOrDefault(e.device,$a.Desktop),o=r.objectGet(this.getPropertyValue("skins"),[t,n,i,a]);return o||a!==$a.Mobile||(o=r.objectGet(this.getPropertyValue("skins"),[t,n,i,$a.Desktop])),o},updateSkin:function(e,t){t=r.extend({skinNameVariationType:Ua.Default,device:$a.Desktop,index:0},t);var n=t.skinName,i=t.index,a=t.skinNameVariationType,o=t.device,s=this.getPropertyValue("skins");s=r.objectSetAndClone(s,[n,i,a,o],e),this.setPropertyValue("skins",s),Wa.Events.SkinHierarchyUpdated.fire(n+i)}}};Xn.registerDefinition(Yn,{coordinator:t})}(),function(){Xn.registerDefinition(Yn,{EditorCoordinator:{isNotDesignElement:!0,properties:{},methods:{}}})}(),function(){function e(e,t,n){var i=r.valueOrDefaultArray(n,[t&&t.title,"Default Text"]);e.setBindingValueToProperty(""+i,ei.formattedText.name)}function t(){var e=this;e.hasHorizontalAlignFlag.setTrue()}function n(e){var t=r.useTemplate(s.Element);e.data.$richTextElementContent=t,e.data.$richTextContent=r(".rich-text-content",t);var n=r(".rich-text-positioning-wrapper",t); e.data.positioningClass=fe.createContextClass(n),e.data.$positioningWrapper=n;return t}function i(e){var t=e.contentHeight.getValue();e.data.isVerticallyCentered&&void 0!==t&&ur.requestIndpendentWriteOperation(function(){var t=e.contentHeight.getValue();e.data.isVerticallyCentered&&void 0!==t&&(e.data.$positioningWrapper.css("margin-top",-t/2),e.$container.scrollTop(0))},e.id+"refreshVerticalAlignment")}function a(e,t){e.data._ignoreTextPropertyChange||e.setRichContent(t)}function o(e){switch(e){case Ye.Bottom:return"vertical-alignment-bottom";case Ye.Centered:return"vertical-alignment-center";default:return"vertical-alignment-top"}}var s={Element:{useTemplate:function(){var e=new v;return e.append('
'),e.append('
'),e.append('
'),e.append("
"),e.append("
"),r(""+e)}}},l="You can edit text on your website by double clicking on a text box on your website. Alternatively, when you select a text box a settings menu will appear. Selecting 'Edit Text' from this menu will also allow you to edit the text within this text box. Remember to keep your wording friendly, approachable and easy to understand as if you were talking to your customer";Xn.registerDefinition(Yn,{freeText:{properties:{formattedText:{isNotForCustomProperty:!0,defaultValue:function(){return l},supportsBinding:!0,isBound:function(e){var t=this;return void 0!==t.getBindingType(e)},getBindingType:function(e){var t;return e.isBound(oi.title.getContentType())?t=oi.title.getContentType():e.isBound(oi.description.getContentType())?t=oi.description.getContentType():e.isBound(oi.StorePrice.getContentType())&&(t=oi.StorePrice.getContentType()),t},onChange:a},verticalAlignment:{isStateProperty:!0,defaultValue:function(){return Ye.Top},onChange:function(e,t){e.data.positioningClass.set(o(t)),e.data.isVerticallyCentered=t===Ye.Centered,t!==Ye.Centered?e.data.$positioningWrapper.css("margin-top",""):i(e)}}},defaultProperties:{backgroundColor:function(){return"transparent"},fontColor:function(){return"Black"},fontSize:function(){return 12},horizontalAlign:function(){return Ke.Left},sizeAndPosition:function(){return{width:200,height:160,top:0,left:0}}},features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.Hideable,Qn.HasLayout,Qn.HasBorder,Qn.HasPadding,Qn.Rotatable,Qn.HasRichContent,Qn.HasText],methods:{refreshTextLayout:function(e){this.refreshContentSize(e),i(this)},creationFunction:n,hasHorizontalAlign:xo,getTextElements:function(){return this.data.$richTextElementContent},getElementDataContent:function(){return this.data.$richTextContent},hasBinding:function(){var e=this;return void 0!==e.getBindingType()},getBindingType:function(){var e=this;return ei.formattedText.getBindingType(e)},findUsedTextStyles:function(){var e=this,t=e.data.$richTextContent,n=r.makeDictionaryFromKeys(r.map(t.findUsedClasses(Ba.TextStyleClassNames),function(e){return Ba.getTextStyleFromClass(e)}),!0),i=e.getPropertyValue("namedTextStyle");return i&&(n[i]=!0),r.getKeys(n)},findUsedFonts:function(){var e=this,t=e.data.$richTextContent,n=r.map(t.findUsedInlineStyles("font-family"),function(e){return r.parseFontFamilyFromStyleValue(e)}),i=e.findUsedTextStyles(),a=r.map(i,function(e){var t=Ba.getTextStyleInformation(e);if(t){var n=Na.evaluateFontBinding(t.fontFamily);if(n)return n.toLowerCase()}}),o=r.map(t.findUsedClasses(Na.FontFamilyClassNames.get()),function(e){var t=Na.evaluateFontBinding(Na.getFontBindingFromClass(e));return t?t.toLowerCase():void 0}),s=r.merge(n,r.merge(a,o));return s.push(Na.evaluateFontBinding(e.getPropertyValue("calculatedFontFamily"))),r.getKeys(r.makeDictionaryFromKeys(s,!0))},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e);return(e.isBound(oi.title.getContentType())||e.isBound(oi.description.getContentType()))&&(t[ei.formattedText.name]=no.create(e,{propertyName:ei.formattedText.name})),t}},aggregatedMethods:{aggregations:{onInitializing:t,updateInstanceToViewPort:function(){this.refreshContentSize()},removeInstanceFromViewPort:function(){var e=this;e.isBoundToProperty("formattedText")||e.refreshContentSize()},onBoundValueReady:function(t){var n=this,i=ei.formattedText.getBindingType(n);if(void 0!==i){var a=n.getBindingFields(i);e(n,a,t[i])}},onPropertiesChanged:function(e){var t=this,n=["textStyle","lineHeight","formattedText"],i=["font","namedTextStyle"];t.isInitialized&&(r.containsOneOfKeys(e,n)&&t.refreshContentSize(),r.containsOneOfKeys(e,i)&&wn.requestReadOperation(function(){hn.onFontLoaded(Na.evaluateFontBinding(t.getPropertyValue("calculatedFontFamily")),{successCallback:function(){t.refreshContentSize()},timeout:15e3})},t.id+"onPropertiesChanged - onFontLoaded"))},onInitialized:function(){var e=this,t=e.contentHeight.createValueListener(function(){i(e)}),n=e.visibilityChangedEvent.bindAndExecute(function(){var n=ia.isElementVisible(e);n&&ur.performOnLayoutVisibilityUpdate(function(){n=ia.isElementVisible(e),n&&t.toggleActivation(n,!0)},e.id+"visibilityEventBindingRichTextNew")});e.instanceRemoving.one(function(){n.unbind(),t.deactivate()})}}}}})}(),function(){var e={Element:{getTemplateString:function(){return'
'}}};Xn.registerDefinition(Yn,{RichContent:{className:"rich-content-element",properties:{htmlContent:{isNotForCustomProperty:!0,onChange:function(e,t){e.setRichContent(t),e.refreshContentSize()},getBindingType:function(){return oi.content.getContentType()}}},features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.Hideable,Qn.HasLayout,Qn.HasBorder,Qn.HasPadding,Qn.HasRichContent,Qn.HasMultiStyles],methods:{creationFunction:function(){return r.useTemplate(e.Element)},hasBinding:function(){var e=this;return e.isBound(e.getBindingType())},getBindingType:function(){return ei.htmlContent.getBindingType()},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e);return e.hasBinding()&&(t[ei.htmlContent.name]=no.create(e,{propertyName:ei.htmlContent.name})),t},findUsedFonts:function(){var e=this,t=e.getPropertyValue(ei.predefinedTextStyles.name);return r.mapEntry(t,function(e){return Na.evaluateFontBinding(e.fontFamily)})}},aggregatedMethods:{aggregations:{onBoundValueReady:function(e){var t=this,n=t.getBindingType(),i=t.getBindingFields(n);if(void 0!==i){var a=e[n],o=r.valueOrDefault(a,i.title);t.setBindingValueToProperty(o,ei.htmlContent.name)}},onInitialized:function(){var e=this,t=b.createEventListener({name:ei.predefinedTextStyles.name,event:e.propertyChangedEvent},function(){e.pollForNotLoadedFonts(),e.refreshContentSize()}).activate();e.instanceRemoving.one(function(){t.dispose()})}}}}})}(),function(){function e(e){var t={dateMillis:e.getPropertyValue(ei.dateMillis.name),dateSeparator:e.getPropertyValue(ei.dateSeparator.name),dateFormat:e.getPropertyValue(ei.dateFormat.name)},n=t.dateFormat.replace(/-/g,t.dateSeparator);t.dateMillis?e.dateValueObject.setValue(At.formatDateMillis(t.dateMillis,n)):e.dateValueObject.setValue("")}Xn.registerDefinition(Yn,{date:{properties:{dateFormat:{isNotForCustomProperty:!0,defaultValue:function(){return Vt[0].format},onChange:e},dateSeparator:{isNotForCustomProperty:!0,defaultValue:function(){return Bt[0].value},onChange:e},dateMillis:{isNotForCustomProperty:!0,defaultValue:function(){return Date.now()},isBound:function(e){var t=this;return void 0!==t.getBindingType(e)},getBindingType:function(e){var t;return e.isBound(oi.date.getContentType())&&(t=oi.date.getContentType()),t},onChange:e}},ancestorElementType:Yn.freeText,methods:{hasBinding:function(){var e=this;return void 0!==e.getBindingType()},getBindingType:function(){var e=this;return ei.dateMillis.getBindingType(e)},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=oi.date.getContentType();return this.isBound(n)&&(t[ei.dateMillis.name]=no.create(e,{propertyName:ei.dateMillis.name})),t}},aggregatedMethods:{aggregations:{onCreation:function(){var e=this;e.dateValueObject=no.create(e,{propertyName:ei.formattedText.name})},onBoundValueReady:function(e){var t=this,n=t.getBindingType();void 0!==n&&t.setBindingValueToProperty(At.getDateStringMillis(e[n]),ei.dateMillis.name)}}}}})}(),function(){function e(e){var t=e.getPropertyValue(ei.dateRange.name);t=r.valueOrDefault(t,[Date.now()]);var n={fromDate:t[0],toDate:t[1],dateRangeSeparator:e.getPropertyValue(ei.dateRangeSeparator.name),specificDateFormat:e.getPropertyValue(ei.specificDateFormat.name),dateRangeFormat:e.getPropertyValue(ei.dateRangeFormat.name)},i=n.specificDateFormat.replace(/-/g,n.dateRangeSeparator),a=At.formatDateMillis(n.fromDate,i),o=n.toDate?At.formatDateMillis(n.toDate,i):"Present";e.dateRangeValueObject.setValue(n.dateRangeFormat.format(a,o))}Xn.registerDefinition(Yn,{DateRange:{title:"Date Range",properties:{dateRangeFormat:{isNotForCustomProperty:!0,defaultValue:function(){return Lt[0].format},onChange:e},specificDateFormat:{isNotForCustomProperty:!0,defaultValue:function(){return Vt[0].format},onChange:e},dateRangeSeparator:{isNotForCustomProperty:!0,defaultValue:function(){return Bt[0].value},onChange:e},dateRange:{isNotForCustomProperty:!0,defaultValue:function(){return[Date.now()]},isBound:function(e){var t=this;return void 0!==t.getBindingType(e)},getBindingType:function(e){var t;return e.isBound(oi.dateRange.getContentType())&&(t=oi.dateRange.getContentType()),t},onChange:e}},ancestorElementType:Yn.freeText,methods:{hasBinding:function(){var e=this;return void 0!==e.getBindingType()},getBindingType:function(){var e=this;return ei.dateRange.getBindingType(e)},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=oi.dateRange.getContentType();return this.isBound(n)&&(t[ei.dateRange.name]=no.create(e,{propertyName:ei.dateRange.name})),t}},aggregatedMethods:{aggregations:{onCreation:function(){var e=this;e.dateRangeValueObject=no.create(e,{propertyName:ei.formattedText.name})},onBoundValueReady:function(e){var t=this,n=t.getBindingType();void 0!==n&&t.setBindingValueToProperty(e[n],ei.dateRange.name)}}}}})}(),function(){function e(e){var n=r.unite(e.useImageLayer(),e.$elementBackgroundLayer),a=!!r.support.backgroundSize;a?n.addClass("fixed-attachment-background"):n.addClass("sticky-background"),e.data.fixedBackgroundTargetsClass=fe.createContextClass({getTarget:function(){return n}}),e.sizeChangedEvent.bind(function(){e.isFixedBackground.isTrue()?i(e):e.setImageBoxViewport(e.getSize())});var o=b.createEventListener([pa.ViewPortChanged],function(){wn.requestIndpendentWriteOperation(function(){var o=pa.getViewPort();a?e.setImageBoxViewport(r.getWindowSize(),!0):e.setImageBoxViewport(o,!0),i(e),t(e,n)},e.id+"viewPortListener")});e.isFixedBackground.valueChangedEvent.bindAndExecute(function(){e.isFixedBackground.isTrue()?o.activateAndExecute():(o.deactivate(),wn.requestIndpendentWriteOperation(function(){e.setImageBoxViewport(e.getSize())},"setImageBoxViewport"+e.id))})}function t(e,t){wn.requestIndpendentWriteOperation(function(){if(n(e)){var i=pa.getViewPort();if(e.getPropertyValue("fixedBackground")&&J.resolveImageUrl(e.getPropertyValue("imageUrl"))){e.imageBoxCreatedFlag.onceTrue(function(){e.getImageBox().toggleForceBackgroundImage(pa.IsFullScreen.isFalse())});!!r.support.backgroundSize;t.css({width:i.width,height:"100%",top:i.top,left:i.left,"margin-left":""})}else t.css({width:"",height:"",top:"",left:"","margin-left":""})}},"instance.idrefreshBackgroundTargetsLayout")}function n(e){if(pa.IsFullScreen.isTrue())return!1;if(e.isFixedBackground.isFalse())return!1;var t=ia.getElementArea(e,!0);return!!t}function i(e){wn.requestIndpendentWriteOperation(function(){if(n(e)){var t=pa.getViewPort(),i=ia.getElementArea(e,!0),a=i.top-t.top,r=t.height-(a+i.height),o=e.data.fixedBackgroundTargetsClass;return a>0?o.set("fixed-to-top"):r>0?o.set("fixed-to-bottom"):o.set("fixed-to-center")}},e.id+"updateInnerScreenFixedTargets")}function a(e){if(e===ta.getCurrentPage()){var t=ta.getPageData(e.id);o(De.isListPage(t)?rr.getListPageTitle(t):t.pageTitle||t.title)}}function o(e){var t="{0}";window.document.title=t.format(e)}function s(e){if(e===ta.getCurrentPage()){var t=ta.getPageData(e.id).description;r("#meta-description").attr("content",t)}}function l(e){if(e===ta.getCurrentPage()){var t=ta.getPageData(e.id).keyWords;r("#meta-keywords").attr("content",t)}}function c(e){if(e===ta.getCurrentPage()){var t=ta.getPageData(e.id).metaTags;d&&r(d).remove(),d=r.addHtmlCodeToTheHead(t)}}var u={Element:{group:"page-element-templates",name:"page-element-template"}};W.PageHeightChanged=b.create(),W.PageContentWidthChanged=b.create(),Xn.registerDefinition(Yn,{page:{features:[Qn.Resizable,Qn.HasContent,Qn.Selectable,Qn.ItemsContainer,Qn.HasChildrenLayoutAnchor,Qn.HasBackground,Qn.HasBackgroundImage],defaultProperties:{padding:function(){return r.convertValueToObject(0,["top","left","bottom","right"])},backgroundColor:function(){return"white"},sizeAndPosition:function(){return{width:null,height:1068,top:null,left:null}},childrenAnchor:function(){return Ke.Centered}},properties:{gridLines:{defaultValue:function(){return[]}},fixedBackground:{defaultValue:ko,isStateProperty:!0,onChange:function(e,t){e.isForTemplateUse()||e.isFixedBackground.setValue(t)}},statesGroups:{category:Jn.Other,defaultValue:Fo,onChange:function(e){var t=e.getPropertyValue("statesGroups");if(t&&null!==t){var n=ta.getCoordinator(),i=n.getPropertyValue("siteStatesGroups"),a=r.extend({},t,i);n.setPropertyValue("siteStatesGroups",a)}}}},calculatedProperties:["pageTitle"],methods:{getMinSize:r.returnZeroSize,hasHeight:ko,calculateActualSize:function(){var e=r.getWindowSize(),t=e.width,n=0;return{width:t,height:n}},getContentLayer:function($super){return Ta.Flags.IsInMobileContext.isFalse()?$super.call(this):r(".master-page-mobile-content-container ",this.$element)},getMaxSize:function(){return{height:1/0,width:1/0}},isRelativePositioned:xo,forceImageBoxCreation:xo,autoCalculateBackgroundViewPort:ko,getImageLayerTemplate:function(){return r('
')},refreshPageMetaData:function(){var e=this;a(e),s(e),l(e),c(e)},getPaddingBox:function(){return this.$paddingBox},attachPage:function(){var e=this;e.$container||ji.addInstanceToRoot(e)},reorderChildElements:function($super){if(this.hasOrder.getValue()){var e=this.getChildInstances(),t=this.getPageContentInstance();t.getPageContentLayout().reorderSections(e),Ta.Flags.IsInMobileContext.isTrue()&&$super.call(this)}},handleImageBoxBorderWidthChange:function(){var e=this,t=e.data.imageBox,n=e.getActualPropertyValue("borderWidth"),i={left:0,top:0,right:0,bottom:0};e.getPropertyValue("fixedBackground")?t.setBorderWidth(i):(n||(n=i),t.setBorderWidth(n))},addChildElement:function(e){var t=this;return e.addElementToPage(t)},getFooterInstanceHeight:function(){var e=this.getFooterInstance();return e&&ia.isElementVisible(e)?e.getActualPropertyValue("sizeAndPosition").height:0},getHeaderInstanceHeight:function(){var e=this.getHeaderInstance();return e&&ia.isElementVisible(e)?e.getActualPropertyValue("sizeAndPosition").height:0},getFooterInstance:function(){return this.data.footerInstance},getHeaderInstance:function(){return this.data.headerInstance},setFooterInstance:function(e){var t=this;t.data.footerInstance=e,t.isForTemplateUse()||ta.Flags.FooterExists.setValue(void 0!==e)},setHeaderInstance:function(e){var t=this;t.data.headerInstance=e,t.isForTemplateUse()||ta.Flags.HeaderExists.setValue(void 0!==e)},getPageContentInstance:function(){return this.pageContentInstance},setPageContentInstance:function(e){this.pageContentInstance=e},removePageContentInstance:function(){this.pageContentInstance=void 0},creationFunction:function(e){var t=r.useTemplate(u.Element);return e.data.pageContentContainer=t,e.data.$footerSection=r(".footer-section",e.$element),e.data.$headerSection=r(".header-section",e.$element),t},renderElement:function(e){var t=this,n=(t.id,t.elementType);n.typeClass,new v;e.startInstanceRendering(t,"page-element"),e.openTag("div","element-main-box positioned"),e.openTag("div","element-background-layer positioned absolute-fill element-border-target design-element-border-target"),e.closeTag(),e.openTag("div","page-element-border-box element-border-target positioned design-element-border-box"),e.addTag("div","header-section page-section positioned"),e.openTag("div","element-content-box element-padding-box positioned"),e.openTag("div","page-element-size-box element-size-box positioned element-size-target"),e.addTag("div","master-page-mobile-content-container"),e.openTag("div","page-content-container content-container-type"),t.renderElementChildren(e),e.closeTag(),e.closeTag(),e.closeTag(),e.addTag("div","footer-section page-section positioned"),e.closeTag(),e.closeTag(),e.finishInstanceRendering()},getAutoLayoutProperties:function(){return{left:!0,top:!0,width:!0}},getCalculatedPropertyValue:function($super,e){switch(e){case"pageTitle":return ta.getPageData(this.id).pageTitle}return $super.call(this,e)},setCalculatedPropertyValue:function($super,e,t,n,i){switch(e){case"pageTitle":return void ta.updatePageFieldsData(this.id,{pageTitle:t})}$super.call(this,e,t,n,i)},handleBackgroundUpdate:ko},aggregatedMethods:{aggregations:{onCreation:function(){var e=this;e.pageContentInstances={},e.isFixedBackground=k.create(!1,{valueChangeCallback:function(t){var n=r.unite(e.useImageLayer(),e.$elementBackgroundLayer);n.toggleClass("fixed-page-background",t),t||(n.css({width:"",height:"",top:"",left:"","margin-left":""}),n.removeClass("fixed-to-top fixed-to-bottom fixed-to-center"))}})},onChildElementRemoved:function(e){e.classesManager.set({"is-page-child":!1,"positioned-fixed":!1})},onChildElementAdded:function(e){var t=this;e.classesManager.set({"is-page-child":!0}),e.hasFeature(Qn.PageSection)&&Ki.invalidateProperty(t,"sizeAndPosition",void 0,t.getPropertyValue("sizeAndPosition"))},switchToPreview:function(){var e=this;e.data.isLoaded=!1},onInitializing:function(){var t=this;t.isVisible=!1,t.canMove.setValue(!1),e(t)},onInitialized:function(){var e=this;e.isForTemplateUse()||(ta.Flags.HeaderExists.setValue(void 0!==e.getHeaderInstance()),ta.Flags.FooterExists.setValue(void 0!==e.getFooterInstance()))}}},supportedStates:[Ei.BeforeLoadedState,Ei.BeforeOpenedState]}});var d}(),function(){function e(e,t){ur.performUpdateOnRenderingFinished(function(){var n=e.getPropertyValue("iconSize");if("auto"===n){var i=ia.getContentSize(e);n=Math.min(i.height,i.width)*(1/Math.sqrt(2))}e.animatePart(e.data.$icon,{"font-size":n,"margin-top":-n/2},!1,t)},e.id+"updateIconSize")}Xn.registerDefinition(Yn,{Icon:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasLayout,Qn.HasPadding,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.Rotatable,Qn.HasContent],properties:{iconColor:{isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:!0,defaultValue:function(){return"black"},onChange:function(e,t,n){t=Ma.evaluateColorBinding(t,!0),e.animatePart(e.data.$icon,{color:t},!0,n)}},iconReference:{defaultValue:Fo,isStateProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound(oi.fontIcon.getContentType())},onChange:function(e,t){or.applyIcon(e.data.$icon,t)}},iconSize:{defaultValue:function(){return 24},isStateProperty:!0,supportsStatesTransitionAnimation:!0,onChange:function(t,n,i){e(t,i)}}},methods:{hasBinding:function(){return ei.iconReference.isBound(this)},creationFunction:function(e){var t=r("
");return e.data.$icon=t,t},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=oi.fontIcon.getContentType();return e.isBound(n)&&(t[ei.iconReference.name]=no.create(e,{propertyName:ei.iconReference.name})),t}},aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){this.setPropertyValue("iconSize","auto")},onBoundValueReady:function(e){var t=this,n=oi.fontIcon.getContentType();if(t.isBound(n)){var i=void 0===e[n]?null:e[n];this.setBindingValueToProperty(i,ei.iconReference.name)}},onInitialized:function(){var t=this,n=b.createEventListener(t.contentSizeChangedEvent,function(){var n=t.getPropertyValue("iconSize");"auto"===n&&e(t)}),i=t.visibilityChangedEvent.bindAndExecute(function(){var e=ia.isElementVisible(t);e?n.activateAndExecute():n.deactivate()});t.instanceRemoving.one(function(){i.unbind(),n.dispose()})}}}}})}(),function(){function e(e,t){var n=Math.max(1,t),i=e.getPropertyValue("orientation");e.data.$line.css({"border-bottom-width":i===et.Horizontal?n+"px":"","border-left-width":i===et.Vertical?n+"px":""}),e.data.$line.makeCentered({horizontally:i===et.Vertical,vertically:i===et.Horizontal,preComputedSize:{width:n,height:n},skipPositionCheck:!0})}function t(e,t){t=Ma.evaluateColorBinding(t,!0);var n=e.getPropertyValue("orientation");e.data.$line.css({"border-bottom-color":n===et.Horizontal?t:"","border-left-color":n===et.Vertical?t:""})}function n(e,t){var n=e.getPropertyValue("orientation");e.data.$line.css({"border-bottom-style":n===et.Horizontal?t:"","border-left-style":n===et.Vertical?t:""})}Xn.registerDefinition(Yn,{line:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Rotatable,Qn.Selectable,Qn.HasLayout,Qn.Hideable,Qn.HasOutline,Qn.Clickable],properties:{orientation:{category:Jn.Line,isStateProperty:!0,defaultValue:function(){return et.Horizontal},onChange:function(t,n){t.data.$line.toggleClass("vertical",n===et.Vertical).toggleClass("horizontal",n===et.Horizontal),t.data.$line.clearCentering(),e(t,t.getPropertyValue("lineWidth"))}}},methods:{getShadowTarget:function(){return this.data.$line},creationFunction:function(e){var t=r("
");return e.data.$line=t,t},shouldBeHiddenInMode:function(){return this.getPropertyValue("orientation")===et.Vertical}},aggregatedMethods:{aggregations:{onPropertyChange:function(i,a){switch(i.name){case"lineWidth":e(this,a);break;case"lineColor":t(this,a);break;case"lineStyle":n(this,a)}}}}}})}(),function(){function e(e,t){var i=Math.max(0,t);n&&e.getBorderTarget().css({"border-top-width":i+"px","border-left-width":i+"px","border-bottom-width":i+"px","border-right-width":i+"px"}),Gi.refreshElementsLayout(e),Gi.requestUpdatePosition(e)}function t(e,t){n&&(t=Ma.evaluateColorBinding(t),e.getBorderBox().css("border-color",t))}var n;if(r.support.borderRadius){var i=document.createElement("div");i.style.cssText="-webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%;-ms-border-radius:50%;",n=""!=i.style.cssText}else n=!1;Xn.registerDefinition(Yn,{Ellipse:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Selectable,Qn.HasLayout,Qn.Hideable,Qn.HasOutline,Qn.HasBackground,Qn.Clickable,Qn.Shape],methods:{isLineAffectsSize:xo,createShape:function(e){return e.addEllipse()},shouldBeHiddenInMode:xo,creationFunction:function(e){return n?void 0:e.createContent()}},aggregatedMethods:{aggregations:{onPropertyChange:function(n,i){switch(n.name){case"lineWidth":e(this,i);break;case"lineColor":t(this,i)}},onInitializing:function(){var e=this;n?(e.getBorderBox().addClass("border-radius-ellipse"),e.getBackgroundTarget().addClass("border-radius-ellipse")):e.getBorderBox().addClass("canvas-ellipse")}}}}})}(),function(){Xn.registerDefinition(Yn,{Triangle:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Rotatable,Qn.Selectable,Qn.HasLayout,Qn.Hideable,Qn.HasOutline,Qn.HasBackground,Qn.Clickable,Qn.Shape],properties:{shapeAngle:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("angle",t)}}},methods:{createShape:function(e){return e.addTriangle()},shouldBeHiddenInMode:xo}}})}(),function(){Xn.registerDefinition(Yn,{Rectangle:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.Rotatable],methods:{creationFunction:function(){return r("
").addClass("absolute-fill")},shouldBeHiddenInMode:xo}}})}(),function(){Xn.registerDefinition(Yn,{Star:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Rotatable,Qn.Selectable,Qn.HasLayout,Qn.Hideable,Qn.HasOutline,Qn.HasBackground,Qn.Clickable,Qn.Shape],aggregatedMethods:{aggregations:{}},properties:{points:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:5,onChange:function(e,t){e.getShape().setPropertyValue("points",t)}},angle:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("angle",t)}}},methods:{createShape:function(e){return e.addStar()},shouldBeHiddenInMode:xo}}})}(),function(){Xn.registerDefinition(Yn,{Polygon:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Rotatable,Qn.Selectable,Qn.HasLayout,Qn.Hideable,Qn.HasOutline,Qn.HasBackground,Qn.Clickable,Qn.Shape],aggregatedMethods:{aggregations:{}},properties:{sideLength:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 150},onChange:function(e,t){e.getShape().setPropertyValue("sideLength",t)}},angles:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 6},onChange:function(e,t){e.getShape().setPropertyValue("angles",t)}}},methods:{createShape:function(e){return e.addPolygon()},shouldBeHiddenInMode:xo}}})}(),function(){Xn.registerDefinition(Yn,{Trapezoid:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Rotatable,Qn.Selectable,Qn.HasLayout,Qn.Hideable,Qn.HasOutline,Qn.HasBackground,Qn.Clickable,Qn.Shape],properties:{baseOrientation:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("baseOrientation",t)}},topSize:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 50},onChange:function(e,t){e.getShape().setPropertyValue("topSize",t)}}},methods:{createShape:function(e){return e.addTrapezoid()},shouldBeHiddenInMode:xo}}})}(),function(){Xn.registerDefinition(Yn,{Parallelogram:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Rotatable,Qn.Selectable,Qn.HasLayout,Qn.Hideable,Qn.HasOutline,Qn.HasBackground,Qn.Clickable,Qn.Shape],properties:{slantDirection:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("slantDirection",t)}},gapSize:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 30},onChange:function(e,t){e.getShape().setPropertyValue("gapSize",t)}}},methods:{createShape:function(e){return e.addParallelogram()},shouldBeHiddenInMode:xo}}})}(),function(){Xn.registerDefinition(Yn,{Arrow:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Rotatable,Qn.Selectable,Qn.HasLayout,Qn.Hideable,Qn.HasOutline,Qn.HasBackground,Qn.Clickable,Qn.Shape],properties:{sweepAngle:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:90,onChange:function(e,t){e.getShape().setPropertyValue("sweepAngle",t)}},baseThicknessPercent:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("baseThicknessPercent",t)}},baseLengthPercent:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("baseLengthPercent",t)}},arrowDirection:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("arrowDirection",t)}}},methods:{createShape:function(e){return e.addArrow()},shouldBeHiddenInMode:xo}}})}(),function(){Xn.registerDefinition(Yn,{SpeechBubble:{title:"Speech Bubble",features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Rotatable,Qn.Selectable,Qn.HasLayout,Qn.Hideable,Qn.HasOutline,Qn.HasBackground,Qn.Clickable,Qn.Shape],properties:{pointOrientation:{title:"Point Orientation",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:180,onChange:function(e,t){e.getShape().setPropertyValue("pointOrientation",t)}},cornerRadius:{title:"Corner Radius",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:70,onChange:function(e,t){e.getShape().setPropertyValue("cornerRadius",t)}},baseOffset:{title:"Base Offset",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:70,onChange:function(e,t){e.getShape().setPropertyValue("baseOffset",t)}},baseOffsetPercent:{title:"Base Offset Percent",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:20,onChange:function(e,t){e.getShape().setPropertyValue("baseOffsetPercent",t)}},baseWidth:{title:"Base Width",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("baseWidth",t)}},tipHeight:{title:"Tip Height",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("tipHeight",t)}},tipOffset:{title:"Tip Offset",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("tipOffset",t)}}},methods:{createShape:function(e){return e.addSpeechBubble()},shouldBeHiddenInMode:xo}}})}(),function(){var e={Element:{useTemplate:function(){var e=new v;return e.append('
'),e.append("
"),r(""+e)}}};Xn.registerDefinition(Yn,{SvgElement:{features:[Qn.Resizable,Qn.Selectable,Qn.Rotatable,Qn.HasBackground,Qn.Clickable,Qn.Hideable,Qn.HasResponsiveItem,Qn.HasLayout,Qn.SvgShape],properties:{shapeReference:{defaultValue:r.returnEmptyObject,isStateProperty:!0,supportsBinding:!0},elementRole:{defaultValue:r.returnEmptyObject}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getPropertyValue("elementRole");if(!r.getKeys(t).length){var n=e.getSvgController().element;t=qt.getElementRole(n),e.setPropertyValue("elementRole",t)}},updateInstanceToViewPort:function(){this.data.pcShapeReference=this.getSvgController().createShapeReference()}}},methods:{creationFunction:function(){return r.useTemplate(e.Element)},createSvgShapeController:function(){var e=this,t=e.getPropertyValue("shapeReference");if(!_.inlinesvg){var n=qt.getSvgImage(t);t.shape="".format(n)}return $t.create(t)},getShapeReference:function(){return this.getPropertyValue("shapeReference")}}}})}(),function(){var e={Element:{useTemplate:function(){var e=new v;return e.append('
'),e.append("
"),r(""+e)}},ChangeShapeSection:{useTemplate:function(){return r("
")}}};Xn.registerDefinition(Yn,{LogoElement:{features:[Qn.Resizable,Qn.Selectable,Qn.Rotatable,Qn.HasBackground,Qn.Clickable,Qn.Hideable,Qn.HasResponsiveItem,Qn.SvgShape],properties:{logoReference:{defaultValue:r.returnEmptyObject,isStateProperty:!0,supportsBinding:!0,preSaveProcessing:function(e,t){var n=t.getSvgController();return n?n.createShapeReference():void 0}}},methods:{creationFunction:function(){ return r.useTemplate(e.Element)},createSvgShapeController:function(){var e,t=this,n=t.getPropertyValue("logoReference");if(_.inlinesvg)t.data._getSvgPartByRole=function(){e||(e=qt.setInnerObjectsProperties(n.shape))};else{var i=qt.getSvgImage(n);n.shape="".format(i,"SVG Shape")}return $t.create(n)},getShapeReference:function(){return this.getPropertyValue("logoReference")}}}})}(),function(){function e(e){e.ignoreGroupUpdate.isTrue()||e.isGroupDisabled()||e.groupUpdateBatch.performInstanceOperation(function(){ji.HierarchyChangedUpdateBatch.performInstanceOperation(function(){var t=e.childInstances;t.length>1?e.refreshGroupArea():1===t.length?(e.ignoreGroupUpdate.setValue(!0,"updatingGroup"),Yi.releaseGroup(e),ji.removeInstances([e]),e.ignoreGroupUpdate.setValue(!1,"updatingGroup")):0===t.length&&ji.removeInstances([e])},e,"updateGroup")},e,"updateGroup")}Xn.registerDefinition(Yn,{group:{features:[Qn.HasResponsiveItem,Qn.Selectable,Qn.Clickable,Qn.HasLayout,Qn.ItemsContainer,Qn.Hideable],methods:{getMainBox:function(){return this.$elementContentBox},getShadowTarget:function(){return this.$elementContentBox},disableGroup:function(e){this.groupDisabled.setValue(!0,e)},enableGroup:function(e){this.groupDisabled.setValue(!1,e)},startGroupUpdating:function(){this.groupUpdateBatch.start()},hasHeight:function(){return!this.isRelativePositioned()},hasWidth:function(){return!this.isRelativePositioned()},finishGroupUpdating:function(){this.groupUpdateBatch.finish()},isGroupDisabled:function(){return this.groupDisabled.isTrue()},renderElement:function(e){var t=this,n=!1;n=t.getPropertyValue("tagName"),n===We.DIV&&(n=!1),e.startInstanceRendering(t,"group-element"),n&&e.openTag(n,"html-element"),e.openTag("div","element-content-box design-element-content-box"),e.openTag("div","content-container content-container-type element-size-box element-size-target"),t.renderElementChildren(e),e.closeTag(),e.closeTag(),n&&e.closeTag(),e.finishInstanceRendering()}},aggregatedMethods:{aggregations:{onCreation:function(){var t=this;t.autoAdjustSize=k.createConditionalPositive(),t.ignoreGroupUpdate=k.createConditionalNegative(),t.groupDisabled=k.createConditionalNegative(),t.groupUpdateBatch=Pe.create({batchFinishCallback:function(){e(t)}})},updateInstanceToViewPort:function(){var e=this;e.data.groupInstances=e.childInstances,e.startGroupUpdating(),Yi.reattachInstances(e.childInstances,e.parentInstance,{rememberWidth:!1,rememberHeight:!1}),r.eachItem(e.data.groupInstances,function(e,t){t.data.groupInstanceInMobile=t}),e.isDisplayed.setValue(!1,"group"),ia.visibilityTreeDetach(e)},removeInstanceFromViewPort:function(){var e=this;e.isDisplayed.setValue(!0,"group"),ia.visibilityTreeAttach(e),r.eachItem(e.data.groupInstances,function(e,t){t.data.groupInstanceInMobile=void 0}),ji.addElementToContainerElement(e,e.data.groupInstances),Ta.updateBatch.performOperationWhenBatchStart(function(){e.finishGroupUpdating()})},onRemove:function(){r.eachItem(this.childInstances,function(e,t){t.data.rearrangeGroupId&&(t.propertyChangedEvent.unbind(t.data.rearrangeGroupId),t.data.rearrangeGroupId=void 0)})},onChildElementAdded:function(e){e.refreshTracking(),e.$element.toggleLayerEventsCatching(!0),this.parentInstance&&this.parentInstance.hasFeature(Qn.PageSection)&&e.classesManager.set({"is-section-child":!0})},onChildElementRemoved:function(e){e.$element.toggleLayerEventsCatching(!1)},switchToPreview:function(){r.eachItem(this.childInstances,function(e,t){t.propertyChangedEvent.unbind(t.data.rearrangeGroupId),t.data.rearrangeGroupId=void 0})},onInitialized:function(){var e=this;e.$element.toggleLayerEventsForwarding(!0),Ta.Flags.IsInMobileContext.valueChangedEvent.bind(function(){var t=Ta.Flags.IsInMobileContext.getValue();t?e.hideElement():e.showElement()})}}}}})}();var uo={embed:1,popup:2,scrollBox:3};!function(){Xn.registerDefinition(Yn,{JMMLElement:{className:"jmml-element",itemName:"TextInputField",features:[Qn.ItemsContainer,Qn.HasFormData,Qn.HasPopupElement],properties:{JMML_targetEmail:{defaultValue:Fo},JMML_submitSuccessText:{defaultValue:To},JMML_submitErrorText:{defaultValue:To},JMML_Layout:{isStateProperty:!0,defaultValue:function(){return"popup"}},JMML_Popup_TimeOut:{isNotForCustomProperty:!0,defaultValue:function(){return 10}},JMML_Parent_Section_Id:{defaultValue:Fo}},defaultProperties:{elementPopupEnabled:xo},methods:{shouldDisplayOnMobile:xo,getJMMLType:function(){var e=this,t=e.getPropertyValue("JMML_Layout");if(Ta.Flags.IsInMobileContext.isTrue()){var n=e.getPropertyMobileValue("JMML_Layout");n||"scrollbox"!==t||(n="popup"),t=n}return i(t||"popup")},getCloseButton:function(){var e=this,t=r.grep(e.childInstances,function(e){return e.isType(Yn.SkinButtonElement)&&"closeButton"===e.getPropertyValue("metaItemType")});return 1===t.length?t[0]:!1},getSubmitSuccessTarget:Fo,getSubmitSuccessText:function(){var e=this;return e?e.getPropertyValue("JMML_submitSuccessText"):null},getSubmitErrorText:function(){var e=this;return e?e.getPropertyValue("JMML_submitErrorText"):null},fixElementInBottom:function(){var e=this;e.setPropertyValue("topZIndex",1),e.setCalculatedPropertyValue("verticalDocking",nt.Bottom);var t=0;t+=Eo.getFooterHeight(),e.setPropertyFieldValue("margin","bottom",t),e.addFixedState()},isFixed:function(){var e=this;if(Ta.Flags.IsInMobileContext.isTrue())return e.getPropertyValue("isFixed");var t=e.getJMMLType();return t===uo.scrollBox||e.getPropertyValue("isFixed")}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getJMMLType(),n=e.getCloseButton();t===uo.scrollBox?(n.triggerActivated.one(Pi.MouseClick.name,function(){e.hideElement()}),e.fixElementInBottom()):t===uo.popup&&(n&&n.hideElement(),e.showElementInPopup())}}}}})}(),function(){Xn.registerDefinition(Yn,{JMMLSkinInputElement:{className:"skin-input-element",defaultProperties:{skinBinding:function(){return{skinName:"skinInputElement",type:qa.Global}}},features:[Qn.HasInput,Qn.SkinElement,Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasLayout,Qn.Clickable,Qn.Hideable,Qn.HasPadding,Qn.HasContent],methods:{getSkinSupportedStates:function(){return[Ei.ElementFocusedState,Ei.MouseOverState,Ei.MouseDownState]},clear:function(){var e=this.getInputField();return e.clear()},getValue:function(){var e=this.getInputField();return e.getValue()},setValue:function(){var e=this.getInputField();e.getValue()},getInputField:function(){var e=this.data.formInput;return e||(e=this.refreshFormInput()),e},getLabelText:function(){return this.childInstances[0].childInstances[1].getPropertyValue("text")},refreshFormInput:function(){var e=this,t=e.getDescendingInstances(!1);return r.eachItem(t,function(t,n){!e.data.formInput&&n.hasFeature(Qn.FormInput)&&(e.data.formInput=n)}),e.data.formInput}},aggregatedMethods:{aggregations:{}}}})}(),function(){function e(e){Gi.LayoutContentOperationsSet.isLocked(e.getArrangementRequestName())||(e.getDataSource().invalidateAllItems(),e.requestArrangement(),Gi.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName()))}function t(e){ie.disableOperationsRecording("removeInstanceFromViewPort"),e.dataLayoutController.resetLayout(),e.getDataSource().invalidateAllItems(),e.requestArrangement({keepItemSize:!0,shouldPush:!0}),Gi.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName()),ie.enableOperationsRecording("removeInstanceFromViewPort")}function n(e){var t=e.getPropertyValue("dataInfo");if(e.isConnectedToNavigatable()&&e.isMasterPageElement.isTrue()){var n=t.currentData,i=ji.getInstanceByID(n.id),a=!!i&&i.getPageId()===ta.getCurrentPageId(),r=e.isDisplayed.getValue();e.isDisplayed.setValue(a,"DataNotInitialized"),a&&!r&&e.requestArrangement()}}Xn.registerDefinition(Yn,{Menu:{className:"menu-element",itemName:"MenuButton",features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList,Qn.HasMenu],properties:{},defaultProperties:{fitToContent:ko,sizeAndPosition:function(){return{width:400,height:400,top:0,left:0}},tagName:function(){return We.NAV},itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0}}},dataLayoutOptions:function(){return{lineSpacing:15,columnSpacing:15,colsSpacing:15,rowsSpacing:15,rotation:0,cols:3,R:100}}},methods:{unSelectAll:function(){var e=this;r.eachItem(e.getItemsControllers(),function(e,t){var n=t.getInstance();ji.performOnInstancesInitialization(n.id,function(){n.userSelect(!1)})})},hasContentHorizontalAlign:ko,getDataSourceDefinition:function(){return ri.MenuElementView},onItemSet:function(e){var t=this,n=t.getDataSource().dataSourceInfo;if(n){var i,a=t.getDataSource().dataSourceInfo.currentData.type;switch(a){case ti.NavigableInstance.name:e.hasOrder.setValue(!1,"menuChild");var r=t.getNavigableInstance(),o=r.getUrlAddressForPage(e.getDataItem().index);o?(e.setPropertyValue(ei.urlAddress.name,o),e.$element.unbind(".navigable")):(e.setPropertyValue(ei.urlAddress.name,null),i=function(){var t=e.getDataItemId(),n=ji.getInstanceByID(t);n.getPageId()===ta.getCurrentPageId()&&ji.getInstanceByID(t).showParents()})}i&&e.$element.on("mouseup.navigable",function(){i()})}},getPotentialSelectedMenuItemId:function(){var e=this,t=e.getDataSource(),n=t.dataSourceInfo;if(n){var i=t.dataSourceInfo.currentData.type;switch(i){case ti.NavigableInstance.name:var a=this.getNavigableInstance();if(a){var r=a.getCurrentItem();if(r)return r.id}return;case ti.MasterPages.name:return ta.getCurrentPageId()}}},isConnectedToNavigatable:function(){var e=this.getPropertyValue("dataInfo");return e&&e.currentData&&e.currentData.type===ti.NavigableInstance.name},getNavigableInstance:function(){var e=this.getPropertyValue("dataInfo");return this.isConnectedToNavigatable()?ji.getInstanceByID(e.currentData.id):null},addArrangementRequest:function(e){var t=this;Gi.LayoutContentOperationsSet.requestEndOperation(function(){t.reArrangeTheTemplates(e)},t.getArrangementRequestName())},updateDataListToMobile:function(){var t=this;e(t)},removeDataListFromMobile:function(){var e=this;t(e)}},aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){var e=this;e.setPropertyValue("dataLayout",{name:_i.SquareGrid.name}),e.setPropertyFieldsValues("dataLayoutOptions",{cols:3,colsSpacing:10,rowsSpacing:10})},onRemove:function(){this.data.refreshMenuDisplaying&&this.data.refreshMenuDisplaying.dispose()},onPropertiesChanged:function(e){var t=this;t.isInitialized&&r.containsOneOfKeys(e,"dataInfo")&&n(t)},onInitializing:function(){var e=this;e.data.refreshMenuDisplaying=b.createEventListener([ta.Events.PageChanged],function(){n(e)}),e.isMasterPageElement.valueChangedEvent.bindAndExecute(function(){var t=e.isMasterPageElement.isTrue();t?e.data.refreshMenuDisplaying.activate():e.data.refreshMenuDisplaying.deactivate()})},onInitialized:function(){var e=this;e.$element.addVisibilityStates(),e.previewEventsListener.add(b.createEventListener([e.totalCountObservable.valueChangedEvent],function(){ur.performUpdateOnRenderingFinished(function(){var t=e.getNavigableInstance();if(t&&t.isType(Yn.PostsList)){var n=e.totalCountObservable.getValue();e.$element.toggleVisibility(!(1===n&&e.isConnectedToNavigatable()))}},e.id+"postlist-visibility-preview")}))}}}}})}(),function(){function e(e,t){var n=e.getPropertyValue("navigationButtonSettings");t.navigationBinding.setValue(n.navigation),t.navigationPropertiesBinding.setValue(n.navigationProperties)}function t(t){Gi.layoutUpdateBatch.start(),Ki.UpdateBatch.start();var n=t.getNavigationButtonTemplate().hierarchy,i=bo.addTemplateInstance({elementForCreation:n},t,{isContent:!0,isLoading:!0,generateNewID:!0,initialProperties:{all:{fillLayout:{fillVertical:!0,fillHorizontal:!0}}}}),a=i.instances[0];a.canMove.setFalse("SkinNavigationButton"),a.canResize.setFalse("SkinNavigationButton");var r=no.create(a,{propertyName:ei.navigationProperties.name}),o=no.create(a,{propertyName:ei.navigation.name}),s=no.create(a,{propertyName:ei.skinBinding.name}),l={instance:a,navigationBinding:o,navigationPropertiesBinding:r,skinBinding:s,remove:function(){ji.removeInstances(a)}};return e(t,l),Ki.UpdateBatch.finish(),Gi.layoutUpdateBatch.finish(),l}function n(e,n,i){ie.disableOperationsRecording("dataLayoutChange");var a=e.dataLayoutController,r=i&&i.name===_i.NavigationButton.name,o=n&&n.name===_i.NavigationButton.name;if(o&&!r){e.inEmptyStateFlag.setFalse("SkinNavigationButton"),e.reArrangementDisabled.setTrue("SkinNavigationButton"),e.data.navigationButton=t(e),a.setArrangement(n.name),a.refreshLayout(),e.isInMobileMode()&&e.setPropertyValue("display",Qe.Fixed);var s=e.getImageBox();s?s.$element.addClass("element-background-layer-hidden"):e.imageBoxCreatedFlag.onceTrue(function(){var t=e.getImageBox();t&&t.$element.addClass("element-background-layer-hidden")},"hideimagebox"),e.getDataSource().refresh(),Ki.resetInstanceStyleProperties(e)}else if(!o&&r){e.inEmptyStateFlag.setTrue("SkinNavigationButton"),Ki.resetInstanceStyleProperties(e),a.setArrangement(n.name),e.reArrangementDisabled.setFalse("SkinNavigationButton"),e.data.navigationButton.remove(),delete e.data.navigationButton;var s=e.getImageBox();s&&s.$element.removeClass("element-background-layer-hidden"),e.getDataSource().refresh()}ie.enableOperationsRecording("dataLayoutChange")}function i(e){ie.disableOperationsRecording("removeMenuFromViewPort"),e.dataLayoutController.resetLayout(),e.getDataSource().invalidateAllItems(),Ki.UpdateBatch.whenFinished(function(){Gi.LayoutContentOperationsSet.unLockRequest(e.getArrangementRequestName()),e.requestArrangement({keepItemSize:!0,shouldPush:!0}),Gi.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName())},e.id+"requestArrangement"),Gi.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName()),ie.enableOperationsRecording("removeMenuFromViewPort")}Xn.registerDefinition(Yn,{PagesMenu:{itemName:"MenuButton",className:"menu-element",features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList,Qn.HasMenu,Qn.HasMoreButton],methods:{isNavigationButton:function(){var e=this.getPropertyValue("dataLayout","name");return e===_i.NavigationButton.name},disableStyleProperties:function(){return this.isNavigationButton()},shouldBeBlockElementInMobile:function(){return!this.isNavigationButton()},getSkinBinding:function(){var e=this.isNavigationButton()?this.getNavigationButtonTemplate():this.getDefaultTemplate();return r.cloneObject(e.hierarchy.structures[0].elementProperties.skinBinding)},getNavigationButtonTemplate:function(){return r.getValues(this.getFieldsTemplates().SkinNavigationButton)[0]},refreshTemplates:function(){var e=this;ie.disableOperationsRecording("refreshTemplates"),e.isInitialized&&e.isNavigationButton()&&e.data.navigationButton?(e.data.navigationButton.remove(),e.data.navigationButton=t(e)):Qn.HasTemplates.methods.refreshTemplates.apply(this,arguments),ie.enableOperationsRecording("refreshTemplates")},getDataSourceDefinition:function(){return ri.PageMenuElementView},onItemSet:function(e){e.setPropertyValue("urlAddress",{url:e.getDataItemId(),type:Ge.Pages})},getPotentialSelectedMenuItemId:function(){return ta.getCurrentPageId()},removeDataListFromMobile:function(){var e=this;i(e)},updateDataListToMobile:function($super){var e=this,t=e.dataLayoutController.getArrangement();t&&t.name===_i.NavigationButton.name&&e.getPropertyValue("dataLayout").name!==_i.NavigationButton.name&&e.reArrangementDisabled.setFalse("SkinNavigationButton"),$super.call(e)}},properties:{navigationButtonSettings:{isStateProperty:!0,defaultValue:function(){return{navigation:"SlideNavigation",navigationProperties:{direction:"left",width:250,height:400,spacing:10,animationSpeed:400,hierarchyOpened:!1,useHierarchy:!0,pushContent:!1,backgroundColor:{mainColor:1,opacity:1,brightness:0},fontColor:{mainColor:3,opacity:1,brightness:0},fontSize:16,font:{themeFont:"heading1"}}}},onChange:function(t,n,i,a){a&&t.data.navigationButton&&e(t,t.data.navigationButton)}}},defaultProperties:{tagName:function(){return We.NAV}},aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){var e=this;e.setPropertyValue("dataLayout",{name:_i.NavigationButton.name}),e.isNavigationButton()||(Xi.setInstancesSize(e,{width:30,height:30}),e.data.disableAdjustWidthToMobile=!0)},updateInstanceToViewPort:function(){var e=this.data.navigationButton;e&&Ki.invalidateElement(e.instance)},removeInstanceFromViewPort:function(){var e=this.data.navigationButton;e&&Ki.invalidateElement(e.instance)},onInitializing:function(){var e=this,t=e.getPropertyValue("dataLayout");n(e,t);var i=e.propertyChangedEvent.bind("dataLayout",function(t,i){void 0!==i&&n(e,t,i)});e.instanceRemoving.one(function(){i.unbind()})}}}}})}(),function(){function e(e){return e.data.currentSectionScrollId}function t(e,t){var n=e.getPropertyValue("scrollingAnimationDuration"),i=ji.getInstanceByID(t);i&&ji.scrollToInstanceInPreview(i,{animationDuration:n})}function n(e,t){var n=e.data.currentSectionScrollId,i=n;if(t){var a=t.id,r=e.getDataSource(),o=r.getItem(a);if(o)i=a;else if(!n){var s=r.getSortedItems();s&&s.length>0&&(i=s[0].id)}}else i=void 0;n!==i&&(e.data.currentSectionScrollId=i,e.refreshSelectedItem())}Xn.registerDefinition(Yn,{SectionMenu:{itemName:"MenuButton",className:"sections-menu-element",features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList,Qn.HasMenu,Qn.HasMoreButton],methods:{refreshCustomZIndex:To,refreshFixedState:To,getDataSourceDefinition:function(){return ri.SectionMenuElementView},onItemSet:function(e){e.hasOrder.setFalse("sectionButton")},getPotentialSelectedMenuItemId:function(){return Ta.Flags.IsInMobileContext.isFalse()&&this.getPropertyValue("showSelection")?this.data.currentSectionScrollId:void 0},getArrangementOptions:function($super){var e=this,t=e.data;return r.quickExtend($super.call(e),{dropDownItemClick:t.scrollToSection,currentSelectedItem:t.getCurrentSelectedSection})}},properties:{scrollingAnimationDuration:{isStateProperty:!0,defaultValue:function(){return 400}},showSelection:{isStateProperty:!0,defaultValue:xo}},defaultProperties:{sizeAndPosition:function(){return{width:400,height:400,top:0,left:0}}},aggregatedMethods:{aggregations:{onInitializing:function(){var i=this,a=i.data;a.sectionScrollCallback=r.firstArgProxy(n,i),a.scrollToSection=r.firstArgProxy(t,i),a.getCurrentSelectedSection=r.firstArgProxy(e,i)},onInitialized:function(){var e=this;this.previewEventsListener.add(b.createEventListener([e.visibilityChangedEvent,Ta.Flags.IsInMobileContext.valueChangedEvent],function(){ur.performUpdateOnRenderingFinished(function(){if(e.isInstanceVisible()){cr.addSectionScrollListener(e.data.sectionScrollCallback);var t=ta.getCurrentPage().getPageContentInstance();e.isFixed()?e.customZIndex.setValue(W.MinPropertyZindex+1):e.getPosition().topt.getArea().bottom?e.customZIndex.setValue(W.MinPropertyZindex+1):e.customZIndex.setValue(W.MinPropertyZindex/2+1)}else cr.removeSectionScrollListener(e.data.sectionScrollCallback)},e.id+"switch-preview-sections-menu-element")}))}}}}})}();var go={Capitalize:{value:"capitalize"},Lowercase:{value:"lowercase"},Uppercase:{value:"uppercase"}};!function(){Xn.registerDefinition(Yn,{TagCloud:{className:"tag-cloud-element",itemName:"SkinTagButton",features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList,Qn.HasMenu],properties:{textTransform:{defaultValue:r.returnFixedValue(go.Capitalize.value),isStateProperty:!0,onChange:function(e,t){e.getContentLayer().css("text-transform",t)}}},defaultProperties:{dataInfo:function(){return{listName:tr.LocalBlog}},dataLayout:function(){return{name:_i.Horizontal.name}},dataLayoutOptions:function(){return{lineSpacing:15,columnSpacing:15,colsSpacing:15,rowsSpacing:15,rotation:0,cols:3,R:100,maxItems:6}}},methods:{getDataSourceDefinition:function(){return ri.TagCloudView},onItemSet:To,getPotentialSelectedMenuItemId:function(){var e=this,t=De.getListControllerFromInstance(e);if(De.isMasterListPage(ta.CurrentPageData.getValue())&&t.isTypeOf(rr.SupportedListTypes.tag)){var n=e.getDataSource().getCollectionItems().getItems(),i=t.currentDisplayedTag.getValue(),a=r.findFirst(n,function(e,t){return t.tag===i});return a?a.id:void 0}},getLoadingRequirements:function(){var e=this,t=De.getListControllerFromInstance(e);return t?ea.LoadingRequirements.ListsContent.create({listName:t.getListName(),widgetContent:{elementId:e.id,type:ir.TagCloud}}):void 0}},aggregatedMethods:{aggregations:{}}}})}(),function(){Xn.registerDefinition(Yn,{ItemTagsElement:{itemName:"SkinItemTagButton",ancestorElementType:Yn.TagCloud,methods:{getDataSourceDefinition:function(){return ri.ListItemTagsView},getLoadingRequirements:To}}})}(),function(){function e(e,t,n){var i,a,r=e.getDataSource().getViewInfo(!1,n),o=e.getPropertyValue(ei.dataLayoutOptions.name,"elementsPerPage"),s=e.isPrimary(),l=!1;return s?(i=o*(t.currentDisplayedPage.getValue()-1),a=o,l=i>0||!t.isTypeOf(rr.SupportedListTypes.page)):(i=0,a=e.getPropertyValue(ei.dataLayoutOptions.name,"maxItemsCount")),{elementId:e.id,type:ir.PostsList,filters:r.filters,sort:r.sorts,skip:i,take:a,itemsPerPage:o,mandatory:l}}Xn.registerDefinition(Yn,{PostsList:{className:"posts-list-element",itemName:"ListViewItemTemplate",properties:{primaryPostsList:{defaultValue:ko}},defaultProperties:{dataInfo:function(){return{listName:tr.LocalBlog,showPinned:!0,filterType:fo.RecentPosts,specificTag:""}}},features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList,Qn.TemplatePagesList],methods:{shouldMaintainHeightInPreview:function(){return!!this.isPrimary()},getDataSourceDefinition:function(){return ri.PostsListView},isPrimary:function(){var e=this;return e.getPropertyValue(ei.primaryPostsList.name)},getUrlAddressForPage:function(e){var t=this;if(t.isPrimary()){var n=De.getListControllerFromInstance(t);return n.getPageLink(e)}},getLoadingRequirements:function(t){var n=this,i=De.getListControllerFromInstance(n);return i?ea.LoadingRequirements.ListsContent.create({listName:i.getListName(),widgetContent:e(n,i,De.isDynamicPage(t))}):void 0},calculateItemSizeOnMobile:function(e){var t=this.getPcTemplateSize();return{height:t?t.height*t.width/e.width:e.height,width:e.width}},navigateToTabIndex:function($super,e,t,n,i){var a=this;if(!a.isPrimary())return $super.call(a,e,t,n,i);var r=De.getListControllerFromInstance(a);Zi.navigateToPage(r.getPageLink(e+1).url)},getCurrentPageIndex:function($super){var e=this;if(e.isPrimary()){var t=De.getListControllerFromInstance(e);return t.currentDisplayedPage.getValue()-1}return $super.call(e)}},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this;if(!e.isForTemplateUse()){var t=b.createEventListener(e.currentPageId.valueChangedEvent,function(){ta.isDynamicPage(e.currentPageId.getValue())?e.getDataSource().inDynamicPage.setTrue():e.getDataSource().inDynamicPage.setFalse()}).activateAndExecute();e.instanceRemoving.one(function(){t.dispose()})}}}}}})}();var fo={RecentPosts:"RecentPosts",FeaturedPosts:"FeaturedPosts",PinnedPosts:"PinnedPosts"};!function(){Xn.registerDefinition(Yn,{VideoGallery:{className:"data-list-element",itemName:"DataListItemTemplate",defaultProperties:{itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},video:{type:"video",title:void 0,name:"video",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0},description:{type:"description",title:void 0,name:"description",isDefaultField:!0}}}},features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList,Qn.HasPopup,Qn.TemplatePagesList],methods:{isPopupDisabled:function(){return this.inEmptyStateFlag.isTrue()},getDataSourceDefinition:function(){return ri.VideoGalleryElementView},getPopupItemsCollectionForInitialization:function(){var e,t=this.getDataSource().collectionItems,n=new Mt;return n.connectObservableCollection(t,{mapItem:function(t){return e=t.link,e?r.quickExtend({},t,{link:{url:Zi.resolveUrl(e),newTab:e.type!==Ge.Pages}}):t}}),n}}}})}(),function(){Xn.registerDefinition(Yn,{Gallery:{className:"gallery-element",itemName:"ImageBox",defaultProperties:{itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},image:{type:"image",title:void 0,name:"image",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0},description:{type:"description",title:void 0,name:"description",isDefaultField:!0},link:{type:"link",title:void 0,name:"link",isDefaultField:!0}}}},features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList,Qn.TemplatePagesList,Qn.HasPopup],methods:{isPopupDisabled:function(){return this.inEmptyStateFlag.isTrue()},getDataSourceDefinition:function(){return ri.GalleryElementView},getPopupItemsCollectionForInitialization:function(){var e,t=this.getDataSource().collectionItems,n=new Mt;return n.connectObservableCollection(t,{mapItem:function(t){return e=t.link,e?r.quickExtend({},t,{link:{url:Zi.resolveUrl(e),newTab:e.type!==Ge.Pages}}):t}}),n}},aggregatedMethods:{aggregations:{}}}})}(),function(){Xn.registerDefinition(Yn,{SocialIconsElement:{className:"social-icons-element",itemName:"SkinSocialIconItem",defaultProperties:{itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},fontIcon:{type:"fontIcon",title:void 0,name:"fontIcon",isDefaultField:!0},link:{type:"link",title:void 0,name:"link",isDefaultField:!0}}},dataInfo:function(){return{isSynced:!1,collectionName:"Collection1",currentData:{facebook:{id:"facebook",title:"Facebook",iconType:"facebook",index:0,link:{url:"http://www.facebook.com",type:Ge.Web}},googlePlus:{id:"googlePlus",title:"Google+",iconType:"googlePlus",index:1,link:{url:"http://plus.google.com",type:Ge.Web}},twitter:{id:"twitter",title:"Twitter",iconType:"twitter",index:2,link:{url:"http://www.twitter.com",type:Ge.Web}},linkedin:{id:"linkedin",title:"LinkedIn",iconType:"linkedin",index:3,link:{url:"http://www.linkedin.com",type:Ge.Web}}},iconsMap:{facebook:{iconDisplayed:!0},googlePlus:{iconDisplayed:!0},twitter:{iconDisplayed:!0},linkedin:{iconDisplayed:!0},pinterest:{iconDisplayed:!1},reddit:{iconDisplayed:!1},instagram:{iconDisplayed:!1},youtube:{iconDisplayed:!1},flickr:{iconDisplayed:!1},soundCloud:{iconDisplayed:!1},tripAdvisor:{iconDisplayed:!1},picasa:{iconDisplayed:!1},behance:{iconDisplayed:!1},etsy:{iconDisplayed:!1},tumblr:{iconDisplayed:!1},dribbble:{iconDisplayed:!1},vimeo:{iconDisplayed:!1},vk:{iconDisplayed:!1},renren:{iconDisplayed:!1},weibo:{iconDisplayed:!1}}}}},features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList],methods:{getDataSourceDefinition:function(){return ri.SocialIconsElementView}}}})}(),function(){function e(e,t){e.$element.on("click.socialSharePreview",function(){var t=e.getInstance(),n=t.data.dataItemID;dr.share(n,window.location)})}Xn.registerDefinition(Yn,{SocialSharingElement:{className:"social-sharing-element",itemName:"SkinSocialIconItem",defaultProperties:{itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},fontIcon:{type:"fontIcon",title:void 0,name:"fontIcon",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0}}},dataInfo:function(){return{collectionName:"Collection1",currentData:{facebook:{id:"facebook",title:"Share",iconType:"facebook",index:0},googlePlus:{id:"googlePlus",title:"Google+",iconType:"googlePlus",index:1},twitter:{id:"twitter",title:"Share",iconType:"twitter",index:2},linkedin:{id:"linkedin",title:"Share",iconType:"linkedin",index:3}},iconsMap:{facebook:{iconDisplayed:!0},googlePlus:{iconDisplayed:!0},twitter:{iconDisplayed:!0},linkedin:{iconDisplayed:!0}}}}},features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList],methods:{getDataSourceDefinition:function(){return ri.SocialSharingElementView}},aggregatedMethods:{aggregations:{switchToPreview:function(){var t=!1;r.eachItem(this.getItemsControllers(),function(n,i){e(i,t)})}}}}})}(),function(){Xn.registerDefinition(Yn,{SocialLinksElement:{className:"social-links-element",title:"Social Links Icons",itemName:"SkinSocialIconItem",itemTitle:"Social Link Icon",defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},fontIcon:{type:"fontIcon",title:"fontIcon",name:"fontIcon",isDefaultField:!0},title:{type:"title",title:"Title",name:"title",isDefaultField:!0}}},dataInfo:function(){return{collectionName:"Collection1",currentData:{facebook:{id:"facebook",title:"Facebook",iconType:"facebook",index:0},googlePlus:{id:"googlePlus",title:"Google+",iconType:"googlePlus",index:1},twitter:{id:"twitter",title:"Twitter",iconType:"twitter",index:2},linkedin:{id:"linkedin",title:"LinkedIn",iconType:"linkedin",index:3},pinterest:{id:"pinterest",title:"Pinterest",iconType:"pinterest",index:4},reddit:{id:"reddit",title:"Reddit",iconType:"reddit",index:5},instagram:{id:"instagram",title:"Instagram",iconType:"instagram",index:6},youtube:{id:"youtube",title:"Youtube",iconType:"youtube",index:7},flickr:{id:"flickr",title:"Flickr",iconType:"flickr",index:8},soundCloud:{id:"soundCloud",title:"Sound Cloud",iconType:"soundCloud",index:9},tripAdvisor:{id:"tripAdvisor",title:"Trip Advisor",iconType:"tripAdvisor",index:9},picasa:{id:"picasa",title:"Picasa",iconType:"picasa",index:10},behance:{id:"behance",title:"Behance",iconType:"behance",index:11},etsy:{id:"etsy",title:"Etsy",iconType:"etsy",index:12},tumblr:{id:"tumblr",title:"Tumblr",iconType:"tumblr",index:13},dribbble:{id:"dribbble",title:"Dribbble",iconType:"dribbble",index:14},vimeo:{id:"vimeo",title:"Vimeo",iconType:"vimeo",index:15},vk:{id:"vk",title:"VK",iconType:"vk",index:16},renren:{id:"renren",title:"Renren",iconType:"renren",index:17},weibo:{id:"weibo",title:"Weibo",iconType:"weibo",index:18}},iconsMap:{facebook:{iconDisplayed:!0},googlePlus:{iconDisplayed:!0},twitter:{iconDisplayed:!0},linkedin:{iconDisplayed:!0},pinterest:{iconDisplayed:!1},reddit:{iconDisplayed:!1},instagram:{iconDisplayed:!1},youtube:{iconDisplayed:!1},flickr:{iconDisplayed:!1},soundCloud:{iconDisplayed:!1},tripAdvisor:{iconDisplayed:!1},picasa:{iconDisplayed:!1},behance:{iconDisplayed:!1},etsy:{iconDisplayed:!1},tumblr:{iconDisplayed:!1},dribbble:{iconDisplayed:!1},vimeo:{iconDisplayed:!1},vk:{iconDisplayed:!1},renren:{iconDisplayed:!1},weibo:{iconDisplayed:!1}}}}},features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList],methods:{getDataSourceDefinition:function(){return ri.SocialSharingElementView}}}})}(),function(){function e(e){var t=r.useTemplate(n.Element);return e.data.textInput=t.find(".text-input"),t}function t(){var e=this;e.hasHorizontalAlignFlag.setTrue()}var n={Element:{id:"text-input-field-element-template"}};Xn.registerDefinition(Yn,{TextInputField:{className:"TextInputField",defaultProperties:{sizeAndPosition:function(){return{width:200,height:30,top:0,left:0}},horizontalAlign:function(){return Ke.Left},fontColor:function(){return"#666666"},padding:function(){return r.convertValueToObject(3,["top","left","bottom","right"])},fontSize:function(){return 13}},features:[Qn.HasInnerShadow,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasPadding,Qn.HasBackgroundImage,Qn.HasContent,Qn.Clickable,Qn.HasText,Qn.Hideable,Qn.HasLayout,Qn.HasBorder,Qn.HasContentOverlay,Qn.FormInput,Qn.Focusable], methods:{getTextElements:function(){return this.data.textInput},hasHorizontalAlign:xo,clear:function(){this.data.textInput.val("")},getValue:function(){return this.data.textInput.val()},setValue:function(e){this.data.textInput.val(e)},creationFunction:e},aggregatedMethods:{aggregations:{onContentSizeChange:function(){var e=this;wn.requestReadOperation(function(){var t=e.data.textInput.height();wn.requestIndpendentWriteOperation(function(){e.data.textInput.css("line-height",t+"px")},e.id+"onContentSizeChange")},e.id+"onContentSizeChange")},onInitializing:t}}}})}(),function(){function e(e){var t=r.useTemplate(n.Element);return e.data.textArea=t.find(".text-area"),t}function t(){var e=this;e.hasHorizontalAlignFlag.setTrue()}var n={Element:{id:"text-area-element-template"}};Xn.registerDefinition(Yn,{TextArea:{defaultProperties:{sizeAndPosition:function(){return{width:200,height:30,top:0,left:0}},horizontalAlign:function(){return Ke.Left},fontColor:function(){return"#666666"},padding:function(){return r.convertValueToObject(3,["top","left","bottom","right"])},fontSize:function(){return 13}},features:[Qn.HasInnerShadow,Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.Clickable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasText,Qn.Hideable,Qn.HasLayout,Qn.HasBorder,Qn.HasContentOverlay,Qn.FormInput,Qn.Focusable],methods:{getTextElements:function(){return this.data.textArea},hasHorizontalAlign:xo,clear:function(){this.data.textArea.val("")},getValue:function(){return this.data.textArea.val()},setValue:function(e){this.data.textArea.val(e)},creationFunction:e},aggregatedMethods:{aggregations:{onInitializing:t}}}})}(),function(){Xn.registerDefinition(Yn,{templateBox:{className:"template-box",defaultProperties:{backgroundColor:function(){return"white"}},features:[Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.ItemsContainer,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.DataListItem],methods:{creationFunction:function(){return r("
").addClass("absolute-fill")}}}})}(),function(){function e(e,t){e.getMapController().setOptions({draggable:t,scrollwheel:t})}function t(){var e=this;e.data.mapController=Se.createMap(this.data.$dataContent,{},window.Settings.GoogleMapsApiKey||null);e.data.ignorePropertiesChange=!1,e.mapStyleObject.setValue({mapColor:{stylers:[{hue:""},{saturation:""},{lightness:""}]}}),n(e,!0)}function n(e,t){e.data.$mapOverlay.quickToggle(t)}function i(e){var t=[],n=e.mapStyleObject.getValue();for(var i in n)t.push(n[i]);return t}function a(e,t){var n=e.getMarkersCollection().getItems();for(var i in n)n[i].setOptions({draggable:t})}function o(e,t){if("transparent"===t)e.mapStyleObject.setValue({mapColor:{stylers:[{hue:""},{saturation:""},{lightness:""}]}}),e.data.mapController.setOptions({styles:i(e)});else if(t){"string"==typeof t&&(t=r.Color(t)),t=Ma.evaluateColorBinding(t);var n=r.color.RGB.toHEX(t);t=r.color.RGB.toHSL(t),e.data.mapController&&(e.mapStyleObject.setValue({mapColor:{stylers:[{hue:n},{saturation:parseInt(200*t[1]-100)},{lightness:parseInt(200*t[2]-100)}]}}),e.data.mapController.setOptions({styles:i(e)}))}}var s={ElementContent:{useTemplate:function(){var e=new v;return e.append('
'),e.append('
'),e.append("
"),r(""+e)}}};Xn.registerDefinition(Yn,{googleMap:{properties:{zooming:{defaultValue:function(){return 8},isStateProperty:!0,category:Jn.Other,onChange:function(e,t){!e.data.mapController||e.data.ignorePropertiesChange||isNaN(t)||e.data.mapController.setZoom(t)}},mapPosition:{isStateProperty:!0,defaultValue:function(){return[41.866236,-87.617094]},onChange:function(e,t){e.data.mapController&&!e.data.ignorePropertiesChange&&setTimeout(function(){e.data.mapController.setCenter(t)})}},mapType:{isStateProperty:!0,defaultValue:function(){return Ie.Roadmap},onChange:function(e,t){e.data.mapController&&e.data.mapController.setOptions({mapTypeId:t})}},isStreetView:{isStateProperty:!0,defaultValue:ko},streetViewData:{title:"Street View Data",isStateProperty:!0,defaultValue:!1},streetViewVisible:{isStateProperty:!0,defaultValue:xo,onChange:function(e,t){e.data.mapController&&e.data.mapController.setOptions({streetViewControl:t})}},positionVisible:{title:"Position Visible",isStateProperty:!0,defaultValue:xo,onChange:function(e,t){e.data.mapController&&e.data.mapController.setOptions({panControl:t})}},mapTypeVisible:{isStateProperty:!0,defaultValue:xo,onChange:function(e,t){e.data.mapController&&e.data.mapController.setOptions({mapTypeControl:t})}},mapColor:{isStateProperty:!0,isStyleProperty:!0,supportsThemeBinding:!0,getResetValue:r.returnTransparent,defaultValue:r.returnTransparent,onChange:function(e,t){o(e,t)}},mapDraggable:{isStateProperty:!0,defaultValue:ko},markers:{defaultValue:r.returnEmptyObject,onChange:function(e,t){!e.data.ignorePropertiesChange&&e.data.mapController&&e.data.mapController.setMarkers(r.quickExtend({},t))}}},features:[Qn.HasResponsiveItem,Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Hideable,Qn.Clickable,Qn.Selectable,Qn.HasLayout,Qn.Editable,Qn.HasBorder],methods:{getMapController:function(){return this.data.mapController},refreshMapPosition:function(){var e=this;Ki.invalidateProperty(e,"mapPosition")},getMarkersCollection:function(){return this.getMapController().markers},creationFunction:function(e){var t=r.useTemplate(s.ElementContent);return e.data.$dataContent=r(".google-map-container",t),e.data.$mapOverlay=r(".map-overlay",t),t}},aggregatedMethods:{aggregations:{onCreation:function(){this.mapStyleObject=D.create()},updateInstanceToViewPort:function(){var e=this;e.performWhenVisible(function(){e.refreshMapPosition(),a(e,!1)},e.id+"refreshMapPosition")},removeInstanceFromViewPort:function(){var e=this;e.performWhenVisible(function(){e.refreshMapPosition(),a(e,!0)},e.id+"refreshMapPosition")},switchToPreview:function(){var t=this;e(t,t.getPropertyValue("mapDraggable")),n(t,!1),a(t,!1)},onInitialized:function(){var e=this;e.$element.on("mousewheel",function(e){e.stopPropagation()}),b.bind([e.sizeChangedEvent,e.visibilityChangedEvent],function(){ur.performUpdateOnRenderingFinished(function(){e.getMapController().refreshSize(),e.data.mapController.setCenter(e.getPropertyValue("mapPosition"))},"refreshMap"+e.id)}),e.getMapController().setStreetView(e.getPropertyValue("isStreetView"),e.getPropertyValue("streetViewData"))},onInitializing:t}}}})}(),function(){Xn.registerDefinition(Yn,{userBox:{className:"userBox",features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.HasPadding,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.ItemsContainer,Qn.HasChildrenLayoutAnchor,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.Rotatable],methods:{creationFunction:To,hasHeight:function(){if(this.hasCellWrapper.isTrue()&&this.isRelativePositioned()){var e=r.grep(this.childInstances,function(e){return e.isInstanceVisible()});if(e.length>0)return!1}return!0},hasWidth:xo,checkResizeVerticallyAllowed:function(){var e=this.getChildInstances();if(e&&e.length>0){var t=r.grep(e,function(e){return e.isInstanceVisible()});if(t.length>0){var n=t[t.length-1];n.canResizeVertically.isFalse()&&this.canResizeVertically.setValue(!1,"lastChildIsNotResizable")}}}},aggregatedMethods:{aggregations:{updateInstanceToViewPort:function(){0===this.childInstances.length&&this.isDisplayed.setValue(!1,"noInstancesInContainer")},removeInstanceFromViewPort:function(){0===this.childInstances.length&&this.isDisplayed.setValue(!0,"noInstancesInContainer")},onInitialized:function(){var e=this,t=b.createEventListener([Ta.Events.AfterSwitchBetweenDevices],function(){var t=Ta.Flags.IsInMobileContext.getValue(),n=e.getChildInstances(),i=r.grep(n,function(e){return e.isInstanceVisible()});if(i&&0!==i.length){var a=i[n.length-1];t?(e.checkResizeVerticallyAllowed(),a&&a.propertyChangedEvent.bind("order",function(){e.checkResizeVerticallyAllowed()})):(e.canResizeVertically.setValue(!0,"resetLastChildIsNotResizable"),a&&a.propertyChangedEvent.unbind("order"))}});t.activate(),e.instanceRemoved.bind(function(){t.deactivate()})}}}}})}(),function(){function e(e){var t=e.getPropertyValue("videoImageUrl");t?(e.inEmptyStateFlag.setValue(!1),ie.disableOperationsRecording("videoImageChange"),"string"==typeof t&&(t={imagePath:t,storageServer:0}),e.imageValueObject.setValue(J.getImageInfoForSaving(t)),ie.enableOperationsRecording("videoImageChange")):e.data.helper.checkVideoExists(e.getPropertyValue("videoId"),function(t){if(t.status===!0&&t.imageUrl){ie.disableOperationsRecording("videoImageChange"),"string"==typeof t.imageUrl&&(t.imageUrl={imagePath:t.imageUrl,storageServer:0}),e.imageValueObject.setValue(J.getImageInfoForSaving(t.imageUrl)),ie.beginAtomicBatch(),Ki.UpdateBatch.start();var n=t.videoImageUrl,i=t.videoUrl;e.setBindingValueToProperty(i,"videoUrl"),e.setBindingValueToProperty(n,"videoImageUrl"),Ki.UpdateBatch.finish(),ie.endAtomicBatch(),ie.enableOperationsRecording("videoImageChange")}else e.inEmptyStateFlag.setValue(!0)})}function t(e){var t;return e.getPropertyValue("templateOpener")?!0:(t=e.getMainSkinInstance(),t&&t.getItemMainParent().getPropertyValue("templateOpener"))}function n(){var e=this;s(e),e.inEmptyStateFlag.setValue(!1),e.data.$videoIconHolder=i(),e.data.$videoIcon=r(".icon-holder",e.data.$videoIconHolder),e.data.$videoIconHolder.click(function(n){t(e)||(n.preventDefault(),n.stopPropagation(),e.play(),e.data.$videoIconHolder.toggleDisplayed(!1))}),e.data.$videoIconHolder.prependTo(e.$elementContentContainer),e.data.videoBindings=b.createBindingsCollection(),e.instanceRemoving.one(function(){S(e)}),W.IsMobileClient||a(e),e.previewEventsListener.add(b.createEventListener([e.visibilityChangedEvent,Ta.Flags.IsInMobileContext.valueChangedEvent],function(){ur.performUpdateOnRenderingFinished(function(){e.isInstanceVisible()?(e.inEmptyStateFlag.isFalse()&&(e.isAutoPlay()?e.play():!W.IsMobileClient||t(e)?a(e):o(e)),e.data.batchOperationsSet.executeOperations(),e.data.batchOperationsSet.deactivate("videoPreview")):(e.data.batchOperationsSet.activate("videoPreview"),a(e))},"previewEventsListener"+e.id)}))}function i(){var e=new v;return e.append('
'),e.append(""),e.append(''),e.append(''),e.append(""),e.append(""),e.append("
"),r.useSimpleTemplate(""+e)}function a(e){if(!e.isForTemplateUse()){var t=u(e);t.unloadPlayer()}e.data.videoPlayerHolder.toggleDisplayed(!1,"showPreviewInfo"),e.data.$videoIconHolder.toggleDisplayed(!0),e.showImageLayer.setValue(!0,"showPreviewInfo")}function o(e){e.showImageLayer.setValue(!1,"showPreviewInfo"),e.data.$videoIconHolder.toggleDisplayed(!1),e.data.videoPlayerHolder.toggleDisplayed(!0,"showPreviewInfo");var t=u(e);t.toggleInitilized(!0),t.isReady||t.reload()}function s(e){if(!e.isForTemplateUse()){g(e);var t=c(e).createPlayer(h(e));d(e,t)}}function l(e){var t=e.getPropertyValue("videoType");switch(t){case $e.Youtube:e.data.helper=ye;break;case $e.Vimeo:e.data.helper=Ce}}function c(e){return e.data.helper}function u(e){return e.data.videoPlayer}function d(e,t){e.data.videoPlayer=t}function g(e){e.data.videoPlayer&&(e.data.videoPlayer.unloadPlayer(),S(e),delete e.data.videoPlayer)}function f(e){var t=e.getPropertyValue("videoId");if(t)for(var n=["?","&","#","+",",","%"],i=0,a=n.length;a>i;++i)-1!=t.indexOf(n[i])&&(t=t.substring(0,t.indexOf(n[i])));return t}function h(e){var t=e.id,n=e.getPropertyValue("useLoop"),i=f(e);return{$container:e.data.videoPlayerHolder,createIframe:p,videoID:i,instanceId:t,controls:e.getPropertyValue("useController")?1:0,loop:n?1:0,playlist:n?i:"",wmode:"transparent",isHtml5:!1,$iframe:r.useTemplate(w.VideoIframe)}}function p(){return r.useTemplate(w.VideoIframe)}function m(e){var t=r.useTemplate(w.ElementContent);return e.data.videoPlayerHolder=t.addDisplayingStates(),t}function y(e){e.data.batchOperationsSet.requestOperation(function(){o(e),P(e,e.getPropertyValue("useLoop")),u(e).play()},"changePlayerState")}function C(e){a(e)}function I(e){e.data.batchOperationsSet.requestOperation(function(){u(e).pause()},"changePlayerState")}function S(e){e.data.videoBindings&&e.data.videoBindings.unbindAll();var t=u(e);t&&t.whenReady(function(){u(e).$iframe.remove()})}function P(e,t){e.data.batchOperationsSet.requestOperation(function(){u(e).setLoop(t)},"setLoop")}r.quickExtend(W.Events,{VideoStateChanged:b.create()});var w={ElementContent:{group:"video-player-templates",name:"video-player-template",isSimple:!0},VideoIframe:{group:"video-player-templates",name:"video-iframe-element-template",isSimple:!0}},E={creationFunction:m,play:function(){try{y(this)}catch(e){y(this),j.warn("video play error - ")}},stop:function(){try{C(this)}catch(e){C(this),j.warn("video stop error - ")}},pause:function(){try{I(this)}catch(e){I(this),j.warn("video pause error - ")}},hasBinding:function(){return ei.videoId.isBound(this)},isAutoPlay:function(){return!W.IsMobileView&&this.getPropertyValue("autoPlay")&&!this.getPropertyValue("templateOpener")&&Ta.Flags.IsInMobileContext.isFalse()},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e);return e.isBound(oi.video.getContentType())&&(t[ei.videoType.name]=no.create(e,{propertyName:ei.videoType.name}),t[ei.videoId.name]=no.create(e,{propertyName:ei.videoId.name}),t[ei.videoUrl.name]=no.create(e,{propertyName:ei.videoUrl.name}),t[ei.videoImageUrl.name]=no.create(e,{propertyName:ei.videoImageUrl.name})),t},getPopupItems:function(){var e,t=this,n=t.getPropertyValue("urlAddress");return n&&(e={url:Zi.resolveUrl(n),newTab:n.type!==Ge.Pages}),[{id:t.id,index:1,link:e,video:{videoType:t.getPropertyValue("videoType"),videoImageUrl:t.getPropertyValue("videoImageUrl"),videoId:t.getPropertyValue("videoId")}}]},getImageLoadingOptions:function(){return{forceRatioLocking:!1}}};Xn.registerDefinition(Yn,{VideoPlayer:{className:"video-player",defaultProperties:{templateOpener:ko,backgroundColor:function(){return"Transparent"},opacity:function(){return 1},sizeAndPosition:function(){return{width:150,height:110,top:0,left:0}}},properties:{videoType:{isNotForCustomProperty:!0,category:Jn.Other,defaultValue:function(){return $e.Youtube},isBound:function(e){return e.isBound&&e.isBound(oi.video.getContentType())}},videoId:{defaultValue:Fo,isNotForCustomProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound&&e.isBound(oi.video.getContentType())}},videoUrl:{defaultValue:Fo,isNotForCustomProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound&&e.isBound(oi.video.getContentType())}},videoImageUrl:{defaultValue:Fo,isNotForCustomProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound&&e.isBound(oi.video.getContentType())}},autoPlay:{category:Jn.Other,defaultValue:ko},useController:{isStateProperty:!0,category:Jn.Other,defaultValue:xo},useLoop:{isStateProperty:!0,category:Jn.Other,defaultValue:ko}},features:[Qn.HasResponsiveItem,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.HasContentOverlay,Qn.HasEmptyState,Qn.HasPopup],methods:E,aggregatedMethods:{aggregations:{onCreation:function(){var e=this;e.imageValueObject=no.create(e,{propertyName:ei.imageUrl.name}),e.imageLayoutObject=no.create(e,{propertyName:ei.imageLayout.name}),e.imageLayoutObject.setValue(Jt.Cover),e.data.batchOperationsSet=Sn.create(function(e){e()})},onInitializing:function(){var e=this;l(e)},onInitialized:n,onBoundValueReady:function(e){var t=this;if(t.isBound(oi.video.getContentType())){var n=void 0===e[oi.video.getContentType()]?void 0:e[oi.video.getContentType()];if(n){var i=n.videoType,a=n.videoId,r=n.videoUrl,o=n.videoImageUrl;t.setBindingValuesToProperties({videoType:i,videoId:a,videoUrl:r,videoImageUrl:o})}}},onPropertiesChanged:function(t){var n=this;n.InstancePropertiesInitialized.isTrue()&&(this.isForTemplateUse()||(r.containsOneOfKeys(t,"videoType")&&(c(n)&&u(n).unloadPlayer(),n.data.videoPlayerHolder.empty(),l(n)),r.containsOneOfKeys(t,"useController","videoType","videoId","useLoop")&&(s(n),u(n).setOptions(h(n),!1)))),r.containsOneOfKeys(t,"videoType")&&l(n),r.containsOneOfKeys(t,"videoImageUrl")&&e(n)}}}}})}(),function(){function e(e){var t=e.getImageBox();if(t){var n=e.getPropertyValue("alt");n?t.setAlt(n):t.setAlt(void 0)}}Xn.registerPropertiesCategories({"Image Loading":{title:void 0,iconClass:"sprite-icon sprite-property-category-text"}});var t={getImageSizeInLayout:function(){return this.getImageBox().getImageSizeInLayout()},hasBinding:function(){return ei.imageUrl.isBound(this)},hideImageLoadingOverlay:function(){var e=this.data.imageLoadingOverlayController;e&&e.hide()},showImageLoadingOverlay:function(){var e=this;ur.performUpdateOnRenderingFinished(function(){var t=e.getPropertyValue("imageLoadingSettings");if(t.showOverlay){var n=e.data.imageLoadingOverlayController;if(!n){var i=e.addBackgroundLayer(Wi.BackgroundImageOverlay,function(){var e=new v;return e.append('
'),e.conditionalAppend(!1,'
'),e.append('
'),e.append("
"),r(""+e)}),a=i.find(".loading-image").makeImageBoxNew({layout:Jt.Original,autoLoad:!0}),o=b.createEventListener(e.sizeChangedEvent,function(){a.setViewPort(e.getSize())}),s=i;e.setBorderTarget(i);var l=vt.createDisplayController(i);l.setValue(!1),n={show:function(){o.activateAndExecute();var t=e.getPropertyValue("imageLoadingSettings");a.setImage(J.resolveImageUrl(t.overlayImage));var n=Ma.evaluateColorBinding(t.overlayBackground);s.clearBackground(),gn.isGradient(n)?s.applyGradientColor(n):s.css("rgbaBackground",n),l.setValue(!0)},hide:function(){o.deactivate(),l.setValue(!1)}},e.data.imageLoadingOverlayController=n}n.show()}},e.id+"showOverlay")},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=oi.image.getContentType();e.isBound(n)&&(t[ei.imageUrl.name]=no.create(e,{propertyName:ei.imageUrl.name}),t[ei.imageLayout.name]=no.create(e,{propertyName:ei.imageLayout.name}),t[ei.imagePosition.name]=no.create(e,{propertyName:ei.imagePosition.name}));var i=oi.title.getContentType(),a=oi.description.getContentType(),r=oi.alt.getContentType();return(e.isBound(i)||e.isBound(a)||e.isBound(r))&&(t[ei.alt.name]=no.create(e,{propertyName:ei.alt.name})),t},getPopupItems:function(){var e,t=this,n=t.getPropertyValue("urlAddress");return n&&(e={url:Zi.resolveUrl(n),newTab:n.type!==Ge.Pages}),[{id:t.id,index:1,link:e,image:{imageUrl:t.getPropertyValue("imageUrl")}}]}};Xn.registerDefinition(Yn,{image:{className:"image-element",defaultProperties:{templateOpener:ko,backgroundColor:function(){return"transparent"},borderColor:function(){return r.convertValueToObject("black",["top","left","bottom","right"])},borderWidth:function(){return r.convertValueToObject(0,["top","left","bottom","right"])},opacity:function(){return 0},sizeAndPosition:function(){return{width:200,height:200,top:0,left:0}},imageUrl:To},features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.Hideable,Qn.HasBackground,Qn.HasLayout,Qn.HasPopup,Qn.HasImage,Qn.HasBorder,Qn.Rotatable,Qn.HasBackgroundOverlay],properties:{imageLoadingOverlay:{isStateProperty:!1,isStyleProperty:!0,defaultValue:function(){return{background:"rgba(255,255,255,0.7)",imageInfo:{image:io.Images.CircleBall}}}},imageLoadingSettings:{isStateProperty:!1,isStyleProperty:!0,supportsThemeBinding:!0,defaultValue:function(){return{hideImage:!1,showOverlay:!1,showingAnimation:void 0,overlayBackground:"rgba(255,255,255,0.7)",overlayImage:io.Images.CircleBall}}},alt:{defaultValue:Fo,supportsBinding:!0,isBound:function(e){return e.isBound(oi.title.getContentType())||e.isBound(oi.description.getContentType())||e.isBound(oi.alt.getContentType())},onChange:function(t){e(t)}}},methods:t,aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){var e=this.getSize();if(e){var t=e.width<340?e.width:340;Xi.setInstancesSize(this,{width:t,height:t/e.width*e.height})}},onBoundValueReady:function(e){var t,n=this,i=oi.image.getContentType(),a=oi.icon.getContentType(),o=oi.title.getContentType(),s=oi.description.getContentType(),l=oi.alt.getContentType(),c={};n.isBound(i)?(t=e[i]?e[i]:{},r.quickExtend(c,{imageUrl:void 0===e[i]?gr.getPresetAsset(ct.DefaultImage).imageData:t.imageUrl,imageLayout:t.imageLayout,imagePosition:t.imagePosition})):n.isBound(a)&&(t=e[a]?e[a]:{},r.quickExtend(c,{imageUrl:void 0===e[a]?gr.getDefaultIcon():t.imageUrl,imageLayout:t.imageLayout,imagePosition:t.imagePosition})),n.isBound(l)&&r.quickExtend(c,{alt:void 0===e[l]?null:e[l]}),n.isBound(l)&&e[l]||(n.isBound(o)?r.quickExtend(c,{alt:void 0===e[o]?null:e[o]}):n.isBound(s)&&r.quickExtend(c,{alt:void 0===e[s]?null:e[s]})),r.eachItem(["imageLayout","imagePosition"],function(e,t){c[t]||n.setBindingValueToProperty(void 0,t,!0)}),n.setBindingValuesToProperties(c)},onImageBoxCreated:function(t){var n=this;t.trackStates(en.LoadingImage,{setCallback:function(){n.showImageLoadingOverlay()},unsetCallback:function(){n.hideImageLoadingOverlay()}}),e(this);var i=window.navigator.platform.toLowerCase(),a=window.navigator.userAgent.toLowerCase();if(0===i.indexOf("mac")&&-1!=a.indexOf("safari")&&-1===a.indexOf("chrome")){var r=n.$element[0],o=r.style.visibility;r.style.visibility="hidden",ur.performUpdateOnRenderingFinished(function(){r.style.visibility=o})}},onInitialized:function(){var e=this;e.sizeChangedEvent.bindAndExecute(function(){wn.requestIndpendentWriteOperation(function(){e.setImageBoxViewport(e.getSize())},e.id+"setImageBoxViewport")})}}}}})}(),function(){function e(e){if(this.getNavigatableInstances().length>1){var t=this.data.currentTab;this.navigate(1,!1),ji.removeInstances(t),e()}}var t=["backgroundColor","backgroundOverlay","imageUrl","imageLayout","imagePosition","padding","roundness","borderWidth","borderStyle","borderColor","shadow","innerShadow","borderColor","glow","innerGlow"],n=r.makeDictionaryFromKeys(t,!0);t.push("childrenAnchor");var i=r.makeDictionaryFromKeys(["childrenAnchor"],!0);r.quickExtend(n,{lineColor:!0}),Xn.registerDefinition(Yn,{TabsPanel:{className:"switch-panel-element",features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasLayout,Qn.ItemsContainer,Qn.HasChildrenLayoutAnchor,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.Navigatable],calculatedProperties:t,methods:{navigateTo:function(e,t,n,i){this.showItem(e,t,n,i)},getAutoNavigationDuration:function(){return this.getPropertyValue("autoNavigationDuration")},addItem:function(e){e=r.extend({withCallOut:!1,initialProperties:{all:{}}},e),W.Events.ElementsAdding.fireNew(),e.initialProperties.all.name=e.tabName;var t=this.getCurrentItem();t&&(e.initialProperties.all=r.deepCloneObject(r.extend({},e.initialProperties.all,{backgroundColor:t.getPropertyValue("backgroundColor")})),r.eachEntry(i,function(n){e.initialProperties.all[n]=r.deepCloneObject(t.getPropertyValue(n))}));var n=bo.addTemplateInstance({elementForCreation:{structures:[{type:Yn.Tab.name,elementProperties:{order:Ui.getMaxOrder(),backgroundColor:"#333",borderColor:"#000"}}]}},this.$element,e);return n.instances[0]},showItem:function(e,t,n,i){function a(){t&&r.eachItem(g.getDescendingInstances(!1),function(e,t){t.data.isTrackOverInTransition===!0&&ia.trackMouseOver(t)}),Gi.requestUpdatePosition(l)}function o(e){e.isDisplayed.setValue(!1,"hidden")}function s(){l.data.duringAnimatedTransition=!1,l.data.animatedTabsOrder=void 0,n(),ie.disableOperationsRecording("onTransitionFinish");var e=l.data.pendingTransition;e&&(l.data.pendingTransition=void 0,l.showItem(e.tabSelector,e.performAnimation,e.navigateCallback,e.animationOptions)),W.Events.NavigationFinished.fireNew(),ie.enableOperationsRecording("onTransitionFinish")}var l=this;if(ia.isElementVisible(this)){var c=l.getPropertyValue("navigationDuringTransitionBehaviour");if(l.data.duringAnimatedTransition)switch(c){case ro.StopTransition:var u=l.data.animatedTabsOrder;if(u)for(var d=0;d").addClass("absolute-fill")},hasWidth:ko,hasHeight:ko,getAutoLayoutProperties:function(){return{left:!0,top:!0,width:!0,height:!0}}},aggregatedMethods:{aggregations:{onInitializing:function(){this.canMove.setValue(!1)}}}}})}(),function(){Xn.registerDefinition(Yn,{Button:{className:"button-element",features:[Qn.HasInnerShadow,Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.Clickable,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.HasResponsiveItem,Qn.ItemsContainer,Qn.HasChildrenLayoutAnchor],properties:{buttonType:{defaultValue:function(){return Ue.ActionButton}}},methods:{creationFunction:function(e){return e.data.$content=r("
").addClass("absolute-fill"),e.data.$content}}}})}(),function(){Xn.registerDefinition(Yn,{Flash:{features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.Rotatable,Qn.HasPadding,Qn.HasContent,Qn.HasContentOverlay],properties:{flashAsset:{defaultValue:r.returnEmptyString,onChange:function(e,t){var n={};n.wmode="transparent",ve.embedSWF(J.resolveAssetUrl(t),e.data.flashID,"100%","100%","9.0.0",!1,!1,n,!1)}}},methods:{shouldBeHiddenInMode:xo,creationFunction:function(e){return e.data.flashID="f"+r.uniqueID(),e.data.$flash=r("
".format(e.data.flashID)).addClass("absolute-fill").addClass("no-wrap"),e.data.$flash}}}})}(),function(){function e(e){if(e.data.appIframe){var t=e.getPropertyValue("appInfo");if(t){var n;if(t.remoteUrl)n=t.remoteUrl,n.indexOf("://")<0&&(n="http://"+n);else{var i=J.getAssetsFolder(t.ownerID,Q.AzureBlob,Z.App);n=null!=t.ownerID?i+t.fileName:i+t.appFolder+t.fileName}e.data.appIframe.attr("src",n)}else e.data.appIframe.attr("src","")}}Xn.registerDefinition(Yn,{App:{features:[Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.Rotatable,Qn.HasPadding,Qn.HasContent,Qn.HasContentOverlay,Qn.HasResponsiveItem],defaultProperties:{},properties:{autoScrollbars:{defaultValue:ko,onChange:function(t,n){var i=r(''.format(n?"yes":"no",n?"auto-scrollbars":"")); t.data.appIframe=i,t.data.$iframeContainer.empty().append(i),e(t)}},appInfo:{defaultValue:Fo,isStateProperty:!1,onChange:function(t){e(t)}}},methods:{creationFunction:function(e){var t=r("
");return e.data.$iframeContainer=t,t}},aggregatedMethods:{aggregations:{}}}})}(),function(){Xn.registerDefinition(Yn,{DataListElement:{className:"data-list-element",title:"Data List",itemName:"DataListItemTemplate",itemTitle:"Data List Item",defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0}}}},features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList,Qn.TemplatePagesList],methods:{getDataSourceDefinition:function(){return ri.DataListElementView},calculateItemSizeOnMobile:function(e){var t=this.getPcTemplateSize();return{height:t?t.height*t.width/e.width:e.height,width:e.width}}}}})}(),function(){Xn.registerDefinition(Yn,{paypalButton:{className:"paypalButton",title:"PayPal Button",features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.Clickable,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.ItemsContainer,Qn.PaypalFeature]}})}(),function(){Xn.registerDefinition(Yn,{checkOutButton:{className:"checkOutButton",defaultProperties:{backgroundColor:function(){return"Transparent"},opacity:function(){return 1},sizeAndPosition:function(){return{width:90,height:30,top:0,left:0}}},features:[Qn.HasInnerShadow,Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.Clickable,Qn.HasBackgroundImage,Qn.HasResponsiveItem,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.ItemsContainer,Qn.HasChildrenLayoutAnchor,Qn.CheckOutFeature]}})}(),function(){Xn.registerDefinition(Yn,{FormElement:{className:"form-element",itemName:"TextInputField",features:[Qn.HasFormData,Qn.HasFormDataList],properties:{targetEmail:{defaultValue:Fo},submitAddress:{},submitError:{defaultValue:To},submitText:{defaultValue:To},joinMyMailingList:{defaultValue:ko}},calculatedProperties:["isJoinMyMailingListEnabled"],methods:{getJMMLButton:function(){return r.grep(this.childInstances,function(e){return e.elementType.name===Yn.SkinCheckBoxButtonElement.name})[0]},getCalculatedPropertyValue:function($super,e){return"isJoinMyMailingListEnabled"===e?this.getPropertyValue("joinMyMailingList"):$super.call(this,e)},getJoinMyMailingListValue:function(){return this.getPropertyValue("isJoinMyMailingListEnabled")?this.getJMMLButton().getValue():!1},getSubmitSuccessTarget:function(){var e=this;return e?e.getPropertyValue("submitAddress"):null},getSubmitSuccessText:function(){var e=this;return e?e.getPropertyValue("submitText"):null},getSubmitErrorText:function(){var e=this;return e?e.getPropertyValue("submitError"):null}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.contentSizeChangedEvent.bind(function(){ie.beginAtomicBatch(!1,"Changing the content size of the form"),ur.performUpdateOnRenderingFinished(function(){ie.disableOperationsRecording("push form"),Ja.requestPushing(e),ie.enableOperationsRecording("push form")}),ie.endAtomicBatch()});e.instanceRemoving.one(function(){t.unbind()})}}}}})}(),function(){Xn.registerDefinition(Yn,{PasswordFormElement:{className:"password-form-element",itemName:"TextInputField",features:[Qn.HasFormData,Qn.HasFormDataList],properties:{},methods:{}}})}(),function(){Xn.registerDefinition(Yn,{ButtonsGroup:{className:"buttons-group",itemName:"MenuButton",features:[Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasResponsiveItem,Qn.HasBorder,Qn.DataList],defaultProperties:{fitToContent:ko,sizeAndPosition:function(){return{width:400,height:400,top:0,left:0}},itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0},icon:{type:"icon",title:void 0,name:"icon",isDefaultField:!0}}},dataLayoutOptions:function(){return{lineSpacing:15,columnSpacing:15,colsSpacing:15,rowsSpacing:15,rotation:0,cols:3,R:100}}},properties:{buttonsType:{name:"buttonsType",defaultValue:function(){return ho.RadioButtons.value}},enableButtonToggling:{name:"enableButtonToggling",defaultValue:xo}},methods:{hasContentHorizontalAlign:ko,unSelectAll:function(){var e=this;r.eachItem(e.getItemsControllers(),function(e,t){var n=t.getInstance();ji.performOnInstancesInitialization(n.id,function(){n.userSelect(!1)})})},getDataSourceDefinition:function(){return ri.ButtonsGroupView},refreshSelectedItem:function(e){var t=this,n=t.getInstanceController(e);if(n&&n.isInitialized()){var i=n.getInstance();if(i){var a=t.getPropertyValue("buttonsType");switch(a){case ho.RadioButtons.value:r.eachItem(t.getItemsControllers(),function(e,t){var n=t.getInstance();n.id!==i.id&&ji.performOnInstancesInitialization(n.id,function(){n.userSelect(!1)})}),ji.performOnInstancesInitialization(i.id,function(){var e=t.getPropertyValue("enableButtonToggling");e?i.userSelect(!0):i.userSelect(!i.isUserSelected())});break;case ho.ToggleGroup.value:ji.performOnInstancesInitialization(i.id,function(){i.userSelect(!i.isUserSelected())})}}else t.unSelectAll()}}},aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){var e=this;e.setPropertyValue("dataLayout",{name:_i.SquareGrid.name}),e.setPropertyFieldsValues("dataLayoutOptions",{cols:3,colsSpacing:10,rowsSpacing:10})},switchToPreview:function(){var e=this;e.$element.on("click",".design-element.button-element",function(){var t=n(r(this));t&&t.elementType===Yn.MenuButton&&e.getPageId()===ta.getCurrentPageId()&&e.refreshSelectedItem(t.getDataItemId())})},setItem:function(e){e.setNeverSelectedInClick(!0)}}}}})}();var ho={ToggleGroup:{title:void 0,value:1},RadioButtons:{title:void 0,value:2}};!function(){function e(e){var t=e.getPropertyNormalValue("order");if(e.isMasterPageElement.isTrue()){var n=sa.getPageMasterRootsOrders(ta.getCurrentPageId(),!0)[e.id];return n}return t}var t,n;Xn.registerDefinition(Yn,{FooterElement:{className:"footer-element",features:[Qn.HasInnerShadow,Qn.HasPadding,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.ItemsContainer,Qn.HasChildrenLayoutAnchor,Qn.PageSection,Qn.HasBorder],defaultProperties:{resizingGripPosiotion:function(){return"s"},tagName:function(){return We.FOOTER},sectionName:function(){return"Footer"}},methods:{getCalculatedOrder:function(){return Ui.getMaxOrder()},addElementToPage:function(e){var t=this,n=t.$element,i=t.data.pageInstance;return i&&i.setFooterInstance(void 0),e.setFooterInstance(t),t.data.pageInstance=e,e.data.$footerSection.append(n),e.data.$footerSection}},aggregatedMethods:{aggregations:{addFixedState:function(){var e=this;e.isFixed()&&(n||(n=r.rule(".page-element-border-box {}")),e.data.switchToPreviewFooter=b.bindAndExecute([e.sizeChangedEvent,e.visibilityChangedEvent],function(){ur.performOnFramesLayoutUpdade(function(){var t=ta.getCurrentPage();ia.isElementVisible(e)?n.css({"padding-bottom":"{0}px".format(e.getSize().height)}):n.css({"padding-bottom":"{0}px".format(0)}),Gi.refreshElementsLayout(t.childInstances),ia.invalidateAreas(t)},e.id+"_sectionsPaddingBottomCssRule")}))},removeFixedState:function(){var e=this;n||(n=r.rule(".page-element-border-box {}")),b.unbind(e.data.switchToPreviewFooter),n.css({"padding-bottom":"{0}px".format(0)}),ia.invalidateAreas(e)},onRemove:function(){var e=ta.getCurrentPage().getFooterInstance();e&&e.id===this.id&&ta.getCurrentPage().setFooterInstance(void 0),Gi.refreshElementsLayout(ta.getCurrentPage())},onInitializing:function(){var e=this;this.isMasterPageElement.isFalse()&&sa.setAsMasterPageRoots(this),e.sizeChangedEvent.bind(function(){var e=ta.getCurrentPage();Gi.refreshElementsLayout(e.childInstances)})}}}},HeaderElement:{className:"header-element",features:[Qn.HasInnerShadow,Qn.HasPadding,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.ItemsContainer,Qn.HasChildrenLayoutAnchor,Qn.PageSection,Qn.HasBorder],defaultProperties:{resizingGripPosiotion:function(){return"s"},tagName:function(){return We.HEADER},sectionName:function(){return"Header"}},methods:{getCalculatedOrder:function(){return-Ui.getMaxOrder()},addElementToPage:function(e){var t=this,n=t.$element,i=t.data.pageInstance;return i&&i.setHeaderInstance(void 0),e.setHeaderInstance(t),t.data.pageInstance=e,e.data.$headerSection.append(n),e.data.$headerSection}},aggregatedMethods:{aggregations:{addFixedState:function(){var e=this;e.isFixed()&&(t||(t=r.rule(".page-element-border-box {}")),e.data.switchToPreviewHeader=b.bindAndExecute([e.sizeChangedEvent,e.visibilityChangedEvent],function(){ur.performOnFramesLayoutUpdade(function(){var n=ta.getCurrentPage();ia.isElementVisible(e)?t.css({"padding-top":"{0}px".format(e.getSize().height)}):t.css({"padding-top":"{0}px".format(0)}),ia.invalidateAreas(n)},e.id+"_sectionspaddingTopCssRule")}))},removeFixedState:function(){var e=this;b.unbind(e.data.switchToPreviewHeader),t||(t=r.rule(".page-element-border-box {}")),b.unbind(e.data.switchToPreviewFooter),t.css({"padding-top":"{0}px".format(0)}),Gi.refreshElementsLayout(e)},onRemove:function(){var e=ta.getCurrentPage(),t=e.getHeaderInstance();t&&t.id===this.id&&e.setHeaderInstance(void 0),Gi.refreshElementsLayout(ta.getCurrentPage())},onInitializing:function(){var e=this;this.isMasterPageElement.isFalse()&&sa.setAsMasterPageRoots(this),e.sizeChangedEvent.bind(function(){var e=ta.getCurrentPage();Gi.refreshElementsLayout(e.childInstances)})}}}},SectionElement:{className:"page-section-element",features:[Qn.HasInnerShadow,Qn.HasPadding,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.ItemsContainer,Qn.HasChildrenLayoutAnchor,Qn.PageSection,Qn.HasBorder],defaultProperties:{resizingGripPosiotion:function(){return"s"},tagName:function(){return We.SECTION},sizeAndPosition:function(){return{height:600}},backgroundColor:function(){return"transparent"},sectionName:function(){return"Section"}},methods:{getCalculatedOrder:function($super){var t=this;if(Ta.Flags.IsInMobileContext.isTrue()){var n;if(this.isMasterPageElement.isTrue())return n=sa.getPageMasterRootsOrders(ta.getCurrentPageId())[this.id];var i=Ki.getPropertyValueInCustomState(t.properties.order,Ta.MobileStateName,ta.getCoordinator().id,t);if(void 0===i||void 0===i.stateValue||!r.isNumeric(i.stateValue)){var a=r.grep(t.parentInstance.childInstances,function(e){return e.hasFeature(Qn.PageSection)}).sort(function(t,n){return e(t)-e(n)}),o=0;if(r.eachItem(a,function(e,n){return o=e,n===t?!1:void 0}),o){var s=a[o-1],l=s.getCalculatedOrder();return l+.01}return-1e3}return i.stateValue}var c=$super.call(t);return c},getMinSize:function(){return{height:this.data.calculatedMinHeight?this.data.calculatedMinHeight:0,width:0}},getPageContentInstance:function(){return ta.getCurrentPage().getPageContentInstance()},addElementToPage:function(e){var t=this,n=t.getPageContentInstance(),i=n.addSectionElement(e,t);return ia.invalidateAreas(t,{updateSize:!1}),i},getDisplayName:function(){return this.getPropertyValue("sectionName")}},aggregatedMethods:{aggregations:{switchToPreview:function(){var e=this;Gi.refreshElementsLayout(e)},onRemove:function(){var e=this;if(!e.isForTemplateUse()){var t=e.getPageContentInstance(),n=ta.getPage(e.getPageId());t.removeSectionElement(n,e)}},onInitializing:function(){var e=this;e.sizeChangedEvent.bind(function(){var t=ta.getCurrentPage(),n=e.getPageContentInstance();ia.invalidateAreas(n?[t,n]:t)}),e.visibilityChangedEvent.bind(function(){var t=ta.getCurrentPage(),n=e.getPageContentInstance();ia.invalidateAreas(n?[t,n]:t)})}}}}})}();var po=Do(function(){function e(e,t){if(e){var n=t.features;r.eachItem(e,function(e,t){Qn.hasOwnProperty(t)&&n.push(Qn[t])})}}function t(e,t){if(e){var n=t.features;r.eachItem(e,function(e,t){Qn.hasOwnProperty(t)&&n.removeItem(Qn[t])})}}function n(e,t){if(e){var n=t.methods;r.eachEntry(e,function(e,i){"onInitializing"===e?t.aggregatedMethods={aggregations:{onInitializing:i}}:n[e]=i})}}function i(e){var t=e.defaultValue,n={title:e.title,defaultValue:r.isFunction(t)?t:r.returnFixedValue(t)};switch(e.stateType){case"custom":n.isStateProperty=!0;break;case"single":n.isNotForCustomProperty=!0}return n}function a(e,t,n){var a=t.properties,r=t.extensions.querySettings;for(var o in e){var s=e[o];a[n+o]=i(s),s.isQueryParam&&r.push(o)}}function o(e,t){r.isEmptyObject(e)||t.features.push(Qn.ConnectableExternalApp)}function s(e,t){var n=t.features;r.isEmptyObject(e)||(n.push(Qn.FeatureExternalApp),r.eachEntry(e,function(e,t){n.push(Qn[t.featureTypeName])}))}function l(e,t){if(e){var n=t.defaultProperties;r.eachEntry(e,function(e,t){n[e]=function(){return t}})}}function c(e){var t={};return r.quickExtend(t,{title:e.name,features:[Qn.HasInnerShadow,Qn.Selectable,Qn.HasBackground,Qn.HasPadding,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.Rotatable,Qn.HasContentOverlay,Qn.HasResponsiveItem,Qn.ExternalApp],extensions:{querySettings:[],appDefinition:e},defaultProperties:{},properties:{},methods:{}}),t}this.createElement=function(i){var r=c(i);e(i.features,r),t(i.excludeFeatures,r),l(i.defaultProperties,r),a(i.settings,r,i.appSettingPrefix),n(i.methods,r),s(i.implementedFeatures,r),o(i.connectableFeatures,r);var u={};return u[i.elementTypeName]=r,u}});!function(){function e(e){var n,i=ta.getCurrentPage();i&&(n=e.getSectionsByPage(i));var a=e.getPropertyValue("contentLayout"),o=a.name;o||(o=a),e.pageContentLayout&&e.pageContentLayout.remove(),e.pageContentLayout=pr[o].create(e,r.quickExtend({},a,t())),e.pageContentLayout.initialize(),n&&n.length>0&&ji.addElementToContainerElement(i,n)}function t(){return{}}Xn.registerDefinition(Yn,{PageContentElement:{className:"page-content-element",features:[Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.ItemsContainer,Qn.HasChildrenLayoutAnchor,Qn.Hideable,Qn.HasBorder],defaultProperties:{resizingGripPosiotion:function(){return"s"},sizeAndPosition:function(){return{height:200,width:960,top:0,left:0}}},properties:{isContentTypeFluid:{defaultValue:xo},contentLayout:{defaultValue:function(){return{name:pr.BasePageContentLayout.name,side:it.Left,sideBarWidth:200}},onChange:function(e,t,n,i){void 0!==i&&this.refreshContentLayout()}}},methods:{addElementToPage:function(e){var t=this,n=e.data.pageContentContainer,i=t.$element;return i.appendTo(n),n},refreshContentLayout:function(){e(this),this.getPageContentLayout().attachToContainer(),Gi.refreshElementsLayout(ta.getCurrentPage()),this.contentLayoutChangedEvent.fire()},getPageContentLayout:function(){return this.pageContentLayout},isPageChildInstance:xo,getMinSize:r.returnZeroSize,isReattchable:ko,creationFunction:To,isRelativePositioned:xo,hasHeight:ko,hasWidth:ko,changeElementSize:function(e){var t=this.getPropertyValue("isContentTypeFluid");t||this.$element.css(e),this.$elementSizeBox.css(e)},addSectionElement:function(e,t){var n=this.data.sectionsByPage;return r.objectSetIfUndefined(n,e.id,r.returnEmptyObject),r.objectSet(n,[e.id,t.id],t),this.pageContentLayout.addSection(t,e)},removeSectionElement:function(e,t){var n=this.data.sectionsByPage;delete n[e.id][t.id],this.pageContentLayout.removeSection(t)},getSectionsByPage:function(e){var t=this.data.sectionsByPage,n=r.objectGet(t,[e.id]);return n?r.getValues(n):[]},getVisibleSectionsByPage:function(e){var t=this.getSectionsByPage(e);return r.grep(t,function(e){return e.isInstanceVisible()})},renderElement:function(e){var t=this;e.startInstanceRendering(t,"positioned"),e.openTag("div","element-main-box positioned"),e.openTag("div","element-background-layer element-border-target design-element-border-target"),e.closeTag(),e.openTag("div","element-border-box element-border-target positioned design-element-border-box"),e.openTag("div","element-content-box design-element-content-box element-padding-box positioned"),e.openTag("div","page-content-element-size-box element-size-box positioned element-size-target"),e.openTag("div","page-content-content-container content-container-type positioned"),t.renderElementChildren(e),e.closeTag(),e.closeTag(),e.closeTag(),e.closeTag(),e.closeTag(),e.finishInstanceRendering(t)},getAutoLayoutProperties:function($super){return r.quickExtend($super.call(this),{top:!0,left:!0})}},aggregatedMethods:{aggregations:{onInitializing:function(){this.isMasterPageElement.isFalse()&&sa.setAsMasterPageRoots([this]),this.getPageContentLayout().attachToContainer()},onCreation:function(){this.data.sectionsByPage={},this.contentLayoutChangedEvent=b.create(),e(this)},adjustInstanceToViewPort:function(){this.setPropertyValue("margin",0)},onDetached:function(){var e=ta.getCurrentPage();Ki.invalidateProperty(e,"sizeAndPosition",void 0,e.getPropertyValue("sizeAndPosition"))},onElementAddedToContainer:function(e){e.setPageContentInstance(this)},onRemove:function(){this.parentInstance.removePageContentInstance(this)},switchToPreview:function(){Gi.refreshElementsLayout(this)}}}}})}(),function(){function e(e){e.setSkinInstanceBox(e),e.data.instanceController?e.data.instanceController.createdFlag.onceTrue(function(){t(e)}):t(e)}function t(e){var t={},n={},i=[];r.eachItem(e.getDescendingInstances(!0),function(a,o){var s=o.getPropertyValue("styleBindingFields");s&&(r.eachEntry(s,function(e,i){r.eachEntry(i,function(i){r.objectSet(t,[o.id,e],i),n[e]||(n[e]=[]),n[e].push(o)})}),i.push(o)),o.setSkinInstanceBox(e)}),e.data.skinStyleAffectedInstances=i,e.data.instanceIdToFieldsToPropertiesMap=t,e.data.boundFieldsToInstances=n,b.fireLazyEvent(e,"influenceChanged")}Xn.registerDefinition(Yn,{skinHierarchyBox:{className:"skin-hierarchy-box",features:[Qn.HasInnerShadow,Qn.TemplateItem,Qn.Focusable,Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.ItemsContainer,Qn.Clickable,Qn.HasContent,Qn.HasPadding,Qn.Hideable,Qn.HasBorder],methods:{setOverFlow:function($super){var e=this,t=e.getMainSkinInstance();t?e.isOverflowHidden.setValue(t.isOverflowHidden.getValue()||e.getPropertyValue("overflow")):$super.call(e)},creationFunction:To,getStyleStateAffectedInstances:function(){return this.data.skinStyleAffectedInstances?this.data.skinStyleAffectedInstances:[]},getInstancesBindingsByField:function(e){var t=this;return t.data.boundFieldsToInstances?t.data.boundFieldsToInstances[e]:void 0},getMainSkinInstance:function(){return this.data.skinInstance},getAutoLayoutProperties:function(){return this.parentInstance?{left:!0,top:!0,width:!0,height:!0}:{}},shouldTrackUserSelection:ko},aggregatedMethods:{aggregations:{onInitializing:function(){var t=this;t.data.skinInstance=t.parentInstance,e(t)}}}}})}(),function(){Xn.registerDefinition(Yn,{skinInputElement:{className:"skin-input-element",defaultProperties:{skinBinding:function(){return{skinName:"skinInputElement",type:qa.Global}}},features:[Qn.CommonDataListSkinItem,Qn.HasInput],methods:{getSkinSupportedStates:function(){return[Ei.ElementFocusedState,Ei.MouseOverState,Ei.MouseDownState]},clear:function(){var e=this.getInputField();return e.clear()},getValue:function(){var e=this.getInputField();return e.getValue()},setValue:function(){var e=this.getInputField();e.getValue()},getInputField:function(){var e=this.data.formInput;return e||(e=this.refreshFormInput()),e},refreshFormInput:function(){var e=this,t=e.getDescendingInstances(!1);return r.eachItem(t,function(t,n){!e.data.formInput&&n.hasFeature(Qn.FormInput)&&(e.data.formInput=n)}),e.data.formInput}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;e.instanceController.createdEvent.bind(function(){e.refreshFormInput()})}}}}})}(),function(){Xn.registerDefinition(Yn,{skinListViewItem:{className:"skin-list-view-element",defaultProperties:{skinBinding:function(){return{skinName:"skinListViewItem",type:qa.Global}}},features:[Qn.RemoteDataListSkinItem]}})}(),function(){Xn.registerDefinition(Yn,{skinImageElement:{className:"skin-image-element",defaultProperties:{itemFields:function(){return{image:{type:"image",title:void 0,name:"image",isDefaultField:!0}}},dataInfo:function(){return{currentData:{image:gr.getPresetAsset(ct.DefaultImage).imageData}}},skinBinding:function(){return{skinName:"skinImageElement",type:qa.Global}}},features:[Qn.HasDataSource,Qn.SkinElement,Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasLayout,Qn.Clickable,Qn.Hideable,Qn.HasContent],delegatedDefinitionsProperties:[Yn.image,Qn.HasImage],methods:{},aggregatedMethods:{aggregations:{}}}})}();var mo={None:"None",NavigateNext:"NavigateNext",NavigatePrev:"NavigatePrev",NavigateTo:"NavigateTo",SubmitForm:"SubmitForm",PlayVideo:"PlayVideo",StopVideo:"StopVideo"};!function(){Xn.registerDefinition(Yn,{SkinButtonElement:{className:"skin-button-element",properties:{buttonAction:{isNotForCustomProperty:!0,defaultValue:function(){return{type:mo.None,data:void 0}}}},defaultProperties:{skinBinding:function(){return{skinName:"SkinButtonElement",index:0,type:qa.Global}},formattedText:To,verticalAlignment:function(){return Ye.Centered},iconSize:function(){return"auto"}},features:[Qn.HasInnerShadow,Qn.HasDataSource,Qn.Clickable,Qn.Editable,Qn.DelegatedContent,Qn.SkinElement,Qn.HasResponsiveItem,Qn.Selectable,Qn.HasLayout,Qn.Hideable],customDelegatedProperties:["iconReference","formattedText"],methods:{getDelegatedContentInstance:function(){var e=this,t=e.getInstancesBindingsByField("formattedText");return t&&t.length>0?t[0]:void 0},getInitializedTargetConnections:function($super){var e=this,t=$super.call(e),n=e.getPropertyValue("buttonAction"),i=n.data,a=n.type;if(Ii[a]){var r=e.id+"buttonAction",o=i.targetId,s={id:r,sourceElementID:e.getSkinInstance().id,targetElementID:o,behaviourName:a,options:i.options};t[r]=s}return t},getSkinSupportedStates:function(){return[Ei.MouseOverState,Ei.MouseDownState]},hasButtonBehaviour:xo},aggregatedMethods:{aggregations:{switchToPreview:function(){this.data.visbilityListener&&this.data.visbilityListener.activateAndExecute()},onInitialized:function(){var e,t,n=this;n.propertyChangedEvent.bindAndExecute("buttonAction",function(){e?e.unbind():void 0,t?t.dispose():void 0,delete n.data.visbilityListener;var i=n.getPropertyValue("buttonAction"),a=i.data;if(a&&a.targetId){var r=a.targetId;ji.performOnInstancesCreated([r],function(){var i=ji.getInstanceByID(r);e=i.instanceRemoved.bind(function(){var e=n.getPropertyValue("buttonAction"),t=e.data;t.targetId===i.id&&ji.removeInstances([n])}),t=b.createEventListener([i.visibilityChangedEvent],function(){var e=n.getPropertyValue("buttonAction"),t=e.data;t.targetId===i.id&&(i.isInstanceVisible()?n.isDisplayed.setTrue("targetIsVisible"):n.isDisplayed.setFalse("targetIsVisible"))}),n.data.visbilityListener=t})}n.instanceRemoved.bind(function(){e?e.unbind():void 0,t?t.dispose():void 0})})},updateInstanceToViewPort:function(){var e=this;e.refreshContentSize()},removeInstanceFromViewPort:function(){var e=this;e.refreshContentSize()}}}}})}(),function(){Xn.registerDefinition(Yn,{skinDataItem:{className:"skin-data-item-element",defaultProperties:{skinBinding:function(){return{skinName:"skinDataItem",type:qa.Global}}},features:[Qn.CommonDataListSkinItem],methods:{}}})}(),function(){Xn.registerDefinition(Yn,{skinGalleryItem:{className:"skin-gallery-element",defaultProperties:{skinBinding:function(){return{skinName:"skinGalleryItem",type:qa.Global}}},features:[Qn.CommonDataListSkinItem]}})}(),function(){Xn.registerDefinition(Yn,{skinMenuButtonItem:{className:"skin-menu-button-element",defaultProperties:{skinBinding:function(){return{skinName:"skinMenuButtonItem",type:qa.Global}}},features:[Qn.CommonDataListSkinItem,Qn.SkinSelectable],methods:{hasButtonBehaviour:xo,getFieldName:function(){return"MenuButton"},getSkinSupportedStates:function(){return[Ei.ElementSelectedState,Ei.MouseOverState,Ei.MouseDownState]}}}})}(),function(){Xn.registerDefinition(Yn,{skinVideoItem:{className:"skin-image-element",defaultProperties:{skinBinding:function(){return{skinName:"skinVideoItem",type:qa.Global}}},features:[Qn.CommonDataListSkinItem]}})}(),function(){Xn.registerDefinition(Yn,{SkinSocialIconItem:{className:"skin-social-icon-element",defaultProperties:{skinBinding:function(){return{skinName:"SkinSocialIconItem",type:qa.Global,index:0}}},features:[Qn.CommonDataListSkinItem],methods:{hasButtonBehaviour:xo,getSkinSupportedStates:function(){return[Ei.MouseOverState,Ei.MouseDownState]}}}})}(),function(){Xn.registerDefinition(Yn,{SkinTagButton:{className:"skin-tag-button-element",features:[Qn.RemoteDataListSkinItem,Qn.SkinSelectable],methods:{getSkinSupportedStates:function(){return[Ei.ElementSelectedState,Ei.MouseOverState,Ei.MouseDownState]}}}})}(),function(){Xn.registerDefinition(Yn,{SkinItemTagButton:{className:"skin-item-tag-button-element",features:[Qn.RemoteDataListSkinItem],methods:{getSkinSupportedStates:function(){return[Ei.MouseOverState,Ei.MouseDownState]}}}})}(),function(){Xn.registerDefinition(Yn,{SkinListCategoryButton:{className:"skin-list-category-button-element",title:"Category Button",defaultProperties:{skinBinding:function(){return{skinName:"SkinCategoryButton",type:qa.Global}}},features:[Qn.RemoteDataListSkinItem,Qn.SkinSelectable],methods:{getSkinSupportedStates:function(){return[Ei.ElementSelectedState,Ei.MouseOverState,Ei.MouseDownState]}}}})}(),function(){Xn.registerDefinition(Yn,{SkinSectionButton:{className:"skin-section-button-element",defaultProperties:{skinBinding:function(){return{skinName:"SkinSectionButton",type:qa.Global}}},features:[Qn.CommonDataListSkinItem,Qn.SkinSelectable],aggregatedMethods:{aggregations:{switchToPreview:function(){var e=this,t=0,n=e.getItemMainParent();n&&(t=n.getPropertyValue("scrollingAnimationDuration"));var i=ji.getInstanceByID(e.getDataItemId());i&&e.$element.on("vclick."+e.id,function(){ji.scrollToInstanceInPreview(i,{animationDuration:t})})}}},methods:{getFieldName:function(){return"MenuButton"},getSkinSupportedStates:function(){return[Ei.ElementSelectedState,Ei.MouseOverState,Ei.MouseDownState]},hasButtonBehaviour:xo}}})}(),function(){Xn.registerDefinition(Yn,{MenuButton:{className:"button-element",extensions:{skinTypeName:Yn.skinMenuButtonItem.name},features:[Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.ItemsContainer,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.DataListItem],methods:{creationFunction:function(e){return e.data.$content=r("
").addClass("absolute-fill"),e.data.$content}}}})}(),function(){Xn.registerDefinition(Yn,{ImageBox:{className:"image-item-element",extensions:{skinTypeName:Yn.skinGalleryItem.name},features:[Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.ItemsContainer,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.DataListItem],methods:{creationFunction:function(e){return e.data.$content=r("
").addClass("absolute-fill"),e.data.$content}}}})}(),function(){Xn.registerDefinition(Yn,{DataListItemTemplate:{className:"data-list-item-element",title:"Data List Item",itemTitle:"Data List Item",extensions:{skinTypeName:Yn.skinDataItem.name},features:[Qn.HasInnerShadow,Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.ItemsContainer,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.DataListItem],methods:{creationFunction:function(e){return e.data.$content=r("
").addClass("absolute-fill"),e.data.$content}}}})}(),function(){Xn.registerDefinition(Yn,{ListViewItemTemplate:{className:"list-view-item-element",title:"List View Item",itemTitle:"List View Item",extensions:{skinTypeName:Yn.skinListViewItem.name},features:[Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.ItemsContainer,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.DataListItem],methods:{creationFunction:function(e){return e.data.$content=r("
").addClass("absolute-fill"),e.data.$content}}}})}(),function(){Xn.registerDefinition(Yn,{InputItem:{className:"input-element",extensions:{skinTypeName:Yn.skinInputElement.name},features:[Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.ItemsContainer,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.Focusable,Qn.DataListItem],methods:{creationFunction:function(e){return e.data.$content=r("
").addClass("absolute-fill"),e.data.$content},clear:function(){var e=this.getInputField();return e.clear()},getValue:function(){var e=this.getInputField();return e.getValue()},getInputField:function(){return this.data.formInput}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getDescendingInstances(!1);r.eachItem(t,function(t,n){!e.data.formInput&&n.hasFeature(Qn.FormInput)&&(e.data.formInput=n)})}}}}})}(),function(){Xn.registerDefinition(Yn,{JMMLInputItem:{className:"input-element",extensions:{skinTypeName:"jmmlSkinInputElement"},features:[Qn.HasPadding,Qn.HasContent,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.ItemsContainer,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.Focusable],methods:{creationFunction:function(e){return e.data.$content=r("
").addClass("absolute-fill"),e.data.$content},clear:function(){var e=this.getInputField();return e.clear()},getValue:function(){var e=this.getInputField();return e.getValue()},getInputField:function(){return this.data.formInput}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getDescendingInstances(!1);r.eachItem(t,function(t,n){!e.data.formInput&&n.hasFeature(Qn.FormInput)&&(e.data.formInput=n)})}}}}})}(),function(){Xn.registerDefinition(Yn,{SkinNavigationButton:{features:[Qn.HasDataSource,Qn.SkinElement,Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasLayout,Qn.Clickable,Qn.Hideable,Qn.HasContent,Qn.HasNavigation],delegatedDefinitionsProperties:[Yn.Icon],methods:{getFieldName:function(){return"SkinNavigationButton"},hasButtonBehaviour:xo},aggregatedMethods:{aggregations:{}}}})}(),function(){var e={id:"TwitterFollowApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/twitter-app/twitter-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:300,height:24,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"twitterFollow",isDisableUserEdit:!0,isQueryParam:!0},defaultUser:{defaultValue:"twitter",isDisableUserEdit:!0,isQueryParam:!0},followUser:{title:void 0,type:"text-box",defaultValue:"twitter",isQueryParam:!0},showCount:{title:void 0,type:"check-box",defaultValue:!0,isQueryParam:!0,stateType:"custom"},showScreenName:{title:void 0,type:"check-box",defaultValue:!0,isQueryParam:!0,stateType:"custom"}}}],features:[]},t={id:"TwitterFollow",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"TwitterTweetApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/twitter-app/twitter-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:107,height:20,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"twitterTweet",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},tweetUrl:{title:void 0,type:"text-box",defaultValue:"http://www.twitter.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},tweetVia:{title:void 0,type:"text-box",defaultValue:"",isQueryParam:!0},customTweetText:{title:void 0,type:"text-box",defaultValue:"",isQueryParam:!0},countLayout:{title:void 0,type:"combo-box", values:[{title:void 0,value:"horizontal"},{title:void 0,value:"vertical"},{title:void 0,value:"none"}],defaultValue:"horizontal",isQueryParam:!0,stateType:"custom"}}}],features:[]},t={id:"TwitterTweet",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"FacebookShareApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:84,height:20,top:0,left:0}},queryParams:{appId:function(){return r.valueOrDefault(Settings.FacebookAppID,W.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookShare",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.facebook.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},layout:{title:void 0,type:"combo-box",values:[{title:void 0,value:"button_count"},{title:void 0,value:"box_count"},{title:void 0,value:"button"},{title:void 0,value:"icon_link"},{title:void 0,value:"icon"},{title:void 0,value:"link"}],defaultValue:"button_count",isQueryParam:!0,stateType:"custom"}}}],features:[]},t={id:"FacebookShare",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"FacebookLikeApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:76,height:20,top:0,left:0}},queryParams:{appId:function(){return r.valueOrDefault(Settings.FacebookAppID,W.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookLike",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.facebook.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},layout:{title:void 0,type:"combo-box",values:[{title:void 0,value:"button_count"},{title:void 0,value:"standard"},{title:void 0,value:"box_count"},{title:void 0,value:"button"}],defaultValue:"button_count",isQueryParam:!0,stateType:"custom"},actionType:{title:void 0,type:"combo-box",values:[{title:void 0,value:"like"},{title:void 0,value:"recommend"}],defaultValue:"like",isQueryParam:!0},showFaces:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,bindState:{type:"setting",state:"displaying",settingName:"layout",value:"standard",stateType:"custom"}}}}],features:[]},t={id:"FacebookLike",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"FacebookFollowApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:90,height:20,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookFollow",isDisableUserEdit:!0,isQueryParam:!0},appId:{defaultValue:function(){return r.valueOrDefault(Settings.FacebookAppID,W.FacebookAppID)},isDisableUserEdit:!0,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.facebook.com",isQueryParam:!0},layout:{title:void 0,type:"combo-box",values:[{title:void 0,value:"button_count"},{title:void 0,value:"standard"},{title:void 0,value:"box_count"},{title:void 0,value:"button"}],defaultValue:"button_count",isQueryParam:!0,stateType:"custom"},colorScheme:{title:void 0,type:"combo-box",values:[{title:void 0,value:"light"},{title:void 0,value:"dark"}],defaultValue:"light",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"layout",value:"standard"},stateType:"custom"},showFaces:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,bindState:{type:"setting",state:"displaying",settingName:"layout",value:"standard"},stateType:"custom"}}}],features:[]},t={id:"FacebookFollow",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"FacebookCommentsApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{minSize:{width:50,height:50}},growableSettings:{view:!0,design:!1},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:400,height:140,top:0,left:0}},queryParams:{appId:function(){return r.valueOrDefault(Settings.FacebookAppID,W.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookComments",isDisableUserEdit:!0,isQueryParam:!0},width:{defaultValue:"100%",isDisableUserEdit:!0,isQueryParam:!0},postLimit:{title:void 0,type:"numeric",defaultValue:10,min:1,max:1/0,isQueryParam:!0,stateType:"custom"},colorScheme:{title:void 0,type:"combo-box",values:[{title:void 0,value:"light"},{title:void 0,value:"dark"}],defaultValue:"light",isQueryParam:!0,stateType:"custom"}}}],features:["Resizable"]},t={id:"FacebookComments",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"FacebookActivityApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],resizingSettings:{canResizeVertically:!1,minSize:{width:160,height:20}},defaultProperties:{sizeAndPosition:{width:300,height:300,top:0,left:0}},queryParams:{appId:function(){return r.valueOrDefault(Settings.FacebookAppID,W.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{isDisableUserEdit:!0,defaultValue:"facebookActivityFeed",isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"www.facebook.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},width:{defaultValue:"100%",isDisableUserEdit:!0,isQueryParam:!0},limitPostAge:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},maxAge:{title:void 0,type:"numeric",defaultValue:0,min:0,max:180,isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"limitPostAge",value:!1,negative:!0}},colorScheme:{title:void 0,type:"combo-box",values:[{title:void 0,value:"light"},{title:void 0,value:"dark"}],defaultValue:"light",isQueryParam:!0,stateType:"custom"}}}],features:["Resizable"]},t={id:"FacebookActivity",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"FacebookLikeboxApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{canResizeVertically:!1,minSize:{width:290,height:20}},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:400,height:70,top:0,left:0}},queryParams:{appId:function(){return r.valueOrDefault(Settings.FacebookAppID,W.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookLikeBox",isDisableUserEdit:!0,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.facebook.com/facebook",isQueryParam:!0},colorScheme:{title:void 0,type:"combo-box",values:[{title:void 0,value:"light"},{title:void 0,value:"dark"}],defaultValue:"light",isQueryParam:!0,stateType:"custom"},showFaces:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,stateType:"custom"},showHeader:{defaultValue:!1,isQueryParam:!0,isDisableUserEdit:!0},showPosts:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,stateType:"custom"}}}],features:["Resizable"]},t={id:"FacebookLikebox",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"FacebookPagePluginApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{minSize:{width:280,height:130},maxSize:{width:500}},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:340,height:224,top:0,left:0}},queryParams:{appId:function(){return r.valueOrDefault(Settings.FacebookAppID,W.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookPagePlugin",isDisableUserEdit:!0,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.facebook.com/facebook",isQueryParam:!0},showFaces:{title:void 0,type:"check-box",defaultValue:!0,isQueryParam:!0,stateType:"custom"},showPosts:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,stateType:"custom"},hideCover:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,stateType:"custom"},width:{defaultValue:340,isDisableUserEdit:!0,isQueryParam:!0},height:{defaultValue:224,isDisableUserEdit:!0,isQueryParam:!0}}}],features:["Resizable"]},t={id:"FacebookPagePlugin",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"TwitterFeedApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/twitter-app/twitter-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{canResizeVertically:!1,minSize:{width:40,height:0}},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:224,height:400,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"twitterFeed",isDisableUserEdit:!0,isQueryParam:!0},user:{title:void 0,type:"text-box",defaultValue:"twitter",isQueryParam:!0},theme:{title:void 0,type:"combo-box",values:[{title:void 0,value:"light"},{title:void 0,value:"dark"}],defaultValue:"light",isQueryParam:!0,stateType:"custom"},limitTweets:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,stateType:"custom"},tweetLimit:{title:void 0,type:"numeric",defaultValue:5,min:1,max:20,isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"limitTweets",value:!1,negative:!0},stateType:"custom"}}}],features:["Resizable"]},t={id:"TwitterFeed",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"LinkedinShareApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/linkedin-app/linkedin-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:107,height:25,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"linkedinShare",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},shareUrl:{title:void 0,type:"text-box",defaultValue:"http://www.linkedin.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},showCount:{title:void 0,type:"combo-box",values:[{title:void 0,value:"right"},{title:void 0,value:"top"},{title:void 0,value:"none"}],defaultValue:"right",isQueryParam:!0}}}],features:[]},t={id:"LinkedinShare",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"LinkedinFollowApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/linkedin-app/linkedin-app.html")},isCacheDisabled:!1,type:"ui",manages:[],resizingSettings:{minSize:{width:60,height:20}},defaultProperties:{sizeAndPosition:{width:156,height:20,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"linkedinFollow",isDisableUserEdit:!0,isQueryParam:!0},followUser:{title:void 0,type:"text-box",defaultValue:"1337",isQueryParam:!0},showCount:{title:void 0,type:"combo-box",values:[{title:void 0,value:"right"},{title:void 0,value:"top"},{title:void 0,value:"none"}],defaultValue:"right",isQueryParam:!0}}}],features:[]},t={id:"LinkedinFollow",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"linkedin_company_profile_app",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/linkedin-app/linkedin-app.html")},isCacheDisabled:!1,type:"ui",manages:[],defaultProperties:{sizeAndPosition:{width:160,height:20,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"linkedinCompanyProfile",isDisableUserEdit:!0,isQueryParam:!0},companyId:{title:void 0,type:"text-box",defaultValue:"1337",isQueryParam:!0},widgetText:{title:void 0,type:"text-box",defaultValue:"Linkedin",isQueryParam:!0},panelBehavior:{title:void 0,type:"combo-box",values:[{title:void 0,value:"hover"},{title:void 0,value:"click"}],defaultValue:"hover",isQueryParam:!0},showConnections:{title:void 0,type:"check-box",defaultValue:!0,isQueryParam:!0}}}],features:["Resizable"]},t={id:"linkedin-company-profile",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"GooglePlusOneApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/google-app/google-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],resizingSettings:{canResizeVertically:!1,minSize:{width:38,height:24},maxSize:{width:264,height:62}},defaultProperties:{sizeAndPosition:{width:264,height:24,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"googlePlusOne",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.google.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},width:{defaultValue:264,isDisableUserEdit:!0,isQueryParam:!0},dataSize:{defaultValue:"standard",isDisableUserEdit:!0,isQueryParam:!0},dataAnnotation:{title:void 0,type:"combo-box",values:[{title:void 0,value:"inline"},{title:void 0,value:"bubble"},{title:void 0,value:"none"},{title:void 0,value:"tall"}],defaultValue:"inline",isQueryParam:!0,stateType:"custom"}}}],features:["Resizable"]},t={id:"GooglePlusOne",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"GoogleFollowApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/google-app/google-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{minSize:{width:80,height:20}},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:118,height:20,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"googleFollow",isDisableUserEdit:!0,isQueryParam:!0},followUser:{title:void 0,type:"text-box",defaultValue:"+Google",isQueryParam:!0},height:{defaultValue:20,isDisableUserEdit:!0,isQueryParam:!0},dataAnnotation:{title:void 0,type:"combo-box",values:[{title:void 0,value:"bubble"},{title:void 0,value:"vertical-bubble"},{title:void 0,value:"none"}],defaultValue:"bubble",isQueryParam:!0,stateType:"custom"}}}],features:[]},t={id:"GoogleFollow",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"GoogleShareApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/google-app/google-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],resizingSettings:{canResizeVertically:!1,minSize:{width:57,height:20},maxSize:{width:240,height:60}},defaultProperties:{sizeAndPosition:{width:200,height:68,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"googleShare",isDisableUserEdit:!0,isQueryParam:!0},dataAction:{defaultValue:"share",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.google.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},width:{defaultValue:200,isDisableUserEdit:!0,isQueryParam:!0},dataAnnotation:{title:void 0,type:"combo-box",values:[{title:void 0,value:"inline"},{title:void 0,value:"bubble"},{title:void 0,value:"vertical-bubble"},{title:void 0,value:"none"}],defaultValue:"inline",isQueryParam:!0,stateType:"custom"}}}],features:["Resizable"]},t={id:"GoogleShare",apps:[e]};za.addAppContainer(t)}(),function(){var e={id:"ecwid_app",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/ecwid-app/ecwid.html")},isCacheDisabled:!1,type:"ui",styleSupport:!0,resizingSettings:{canResizeVertically:!1},manages:[{title:void 0,type:"main",panel:"EcwidManagePanel"}],defaultProperties:{sizeAndPosition:{width:960,height:400,top:0,left:-480}},settingCategories:[{title:void 0,settings:{storeId:{defaultValue:5194001,isDisableUserEdit:!0,isQueryParam:!0},categoriesPerRow:{title:void 0,type:"numeric",defaultValue:3,min:1,max:1/0,isQueryParam:!0,stateType:"custom"},categoryView:{title:void 0,type:"combo-box",values:[{title:void 0,value:"grid"},{title:void 0,value:"list"},{title:void 0,value:"table"}],defaultValue:"grid",isQueryParam:!0,stateType:"custom"},tableNumber:{title:void 0,type:"numeric",defaultValue:20,min:1,max:1/0,isQueryParam:!0,stateType:"custom"},listNumber:{title:void 0,type:"numeric",defaultValue:10,min:1,max:1/0,isQueryParam:!0,stateType:"custom"},gridColumnNumber:{title:void 0,type:"numeric",defaultValue:3,min:1,max:1/0,isQueryParam:!0,stateType:"custom"},gridRowNumber:{title:void 0,type:"numeric",defaultValue:3,min:1,max:1/0,isQueryParam:!0,stateType:"custom"}}}],features:["Resizable"]};za.addAppContainer({id:"ecwid",apps:[e]})}(),function(){var e={id:"embed_html_app",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/embed-html/embed-html.html")},isCacheDisabled:!1,useSessionParams:!0,type:"ui",manages:void 0,styleSupport:!0,defaultProperties:{sizeAndPosition:{width:400,height:400,top:0,left:-480}},settingCategories:[{isDisableUserEdit:!0,settings:{html:{stateType:"single",defaultValue:""},headerHtml:{stateType:"single",defaultValue:""}}}],methods:{onInitializing:function(){var e=this,t=e.getAppSettingValue("html");e.inEmptyStateFlag.setValue(!t)},getEmptyTemplateInfo:void 0},features:["Resizable","HasEmptyState"]};za.addAppContainer({id:"embed_html",apps:[e]})}(),function(){Xn.registerDefinition(Yn,{EmbedIFrameElement:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasLayout,Qn.HasPadding,Qn.Hideable,Qn.HasBorder,Qn.Rotatable,Qn.HasContentOverlay,Qn.IFrameContent,Qn.HasEmptyState],properties:{iFrameUrl:{isNotForCustomProperty:!0,defaultValue:r.returnEmptyString(),onChange:function(e,t){e.isInitialized&&e.reloadIFrame(t)}}},defaultProperties:{sizeAndPosition:function(){return{width:400,height:400,top:0,left:0}}},methods:{getIFrameUrl:function(){return this.getPropertyValue("iFrameUrl")},isScrollableIFrame:xo},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this,t=e.getPropertyValue("iFrameUrl");e.inEmptyStateFlag.setValue(!t)}}}}})}(),function(){var e={id:"SoundcloudPlayerApp",version:1,name:void 0,url:function(){return r.combinePaths(Settings.AppsIframeRoot,"/extern/soundcloud-app/soundcloud-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{minSize:{width:60,height:40}},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:450,height:300,top:0,left:0}},settingCategories:[{title:void 0,settings:{trackUrl:{title:void 0,type:"text-box",defaultValue:"https://soundcloud.com/user-642461330/222066-foolboymedia-acid-lounge",isQueryParam:!0},trackId:{defaultValue:void 0,isDisableUserEdit:!0,isQueryParam:!0},height:{defaultValue:300,isDisableUserEdit:!0,isQueryParam:!0},autoPlay:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0}}}],features:["Resizable"]},t={id:"SoundcloudPlayer",apps:[e]};za.addAppContainer(t)}(),function(){Xn.registerDefinition(Yn,{newPaypalButton:{className:"paypalButton",features:[Qn.PaypalFeature],ancestorElementType:Yn.SkinButtonElement,customDelegatedProperties:["iconReference","formattedText"]}})}(),function(){Xn.registerDefinition(Yn,{newCheckoutButton:{className:"checkOutButton",features:[Qn.CheckOutFeature],ancestorElementType:Yn.SkinButtonElement,customDelegatedProperties:["iconReference","formattedText"]}})}(),function(){Xn.registerDefinition(Yn,{RssButton:{className:"rss-button",ancestorElementType:Yn.SkinButtonElement,customDelegatedProperties:["iconReference","formattedText"],methods:{}}})}(),function(){Xn.registerDefinition(Yn,{StackDataListElement:{className:"data-list-element",title:"Stack Data List",itemName:"DataListItemTemplate",itemTitle:"Data List Item",features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.HasLayout,Qn.Hideable,Qn.HasBorder,Qn.DataList],methods:{getDataSourceDefinition:function(){return ri.StackDataListElementView},calculateItemSizeOnMobile:function(e){var t=this.getPcTemplateSize();return{height:t?t.height*t.width/e.width:e.height,width:e.width}}},aggregatedMethods:{aggregations:{}}}})}(),function(){Xn.registerDefinition(Yn,{WorkHistoryDataListElement:{title:"Work History",itemTitle:"Work Item",itemName:"DataListItemTemplate",ancestorElementType:Yn.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},dateRange:{type:"dateRange",title:"Date Range",name:"dateRange",isDefaultField:!0},jobTitle:{type:"title",title:"Job Title",name:"jobTitle",isDefaultField:!0},jobDescription:{type:"description",title:"Job Description",name:"jobDescription",isDefaultField:!0},companyName:{type:"title",title:"Company Name",name:"companyName",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){Xn.registerDefinition(Yn,{SkillsDataListElement:{title:"Skills",itemTitle:"Skill",itemName:"DataListItemTemplate",ancestorElementType:Yn.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},skillTitle:{type:"title",title:"Skill Title",name:"skillTitle",isDefaultField:!0},skillLevel:{type:"percentage",title:"Skill Level",name:"skillLevel",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{onPropertiesChanged:function(e){var t=this;if(r.containsOneOfKeys(e,"itemFields")){var n=t.getPropertyValue("itemFields");n.skillLevel?n.skillLevel.type="percentage":void 0}}}}}})}(),function(){Xn.registerDefinition(Yn,{EducationHistoryDataListElement:{title:"Education",itemTitle:"Education",itemName:"DataListItemTemplate",ancestorElementType:Yn.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},dateRange:{type:"dateRange",title:"Date Range",name:"dateRange",isDefaultField:!0},degreeName:{type:"title",title:"Degree Name",name:"degreeName",isDefaultField:!0},educationDescription:{type:"description",title:"Education Description",name:"educationDescription",isDefaultField:!0},schoolName:{type:"title",title:"School Name",name:"schoolName",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){Xn.registerDefinition(Yn,{CertificationsDataListElement:{title:"Certifications",itemTitle:"Certification",itemName:"DataListItemTemplate",ancestorElementType:Yn.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},date:{type:"date",title:"Date",name:"date",isDefaultField:!0},certificationName:{type:"title",title:"Certification Name",name:"certificationName",isDefaultField:!0},certificationDescription:{type:"description",title:"Certification Description",name:"certificationDescription",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){Xn.registerDefinition(Yn,{VolunteerExperienceDataListElement:{title:"Volunteer Experience",itemTitle:"Voluntee Experience",itemName:"DataListItemTemplate",ancestorElementType:Yn.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},dateRange:{type:"dateRange",title:"Date Range",name:"dateRange",isDefaultField:!0},organizationName:{type:"title",title:"Organization Name",name:"organizationName",isDefaultField:!0},description:{type:"description",title:"Description",name:"description",isDefaultField:!0},role:{type:"title",title:"Role",name:"role",isDefaultField:!0},cause:{type:"title",title:"Cause",name:"cause",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){Xn.registerDefinition(Yn,{AccomplishmentsDataListElement:{title:"Accomplishments Experience",itemTitle:"Accomplishment",itemName:"DataListItemTemplate",ancestorElementType:Yn.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},date:{type:"date",title:"Date",name:"date",isDefaultField:!0},accomplishmentTitle:{type:"title",title:"Accomplishment Title",name:"accomplishmentTitle",isDefaultField:!0},description:{type:"description",title:"Description",name:"description",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){function e(e,t,n){var i=e.data.percentageController;i&&n&&n.type!==t.type&&(i.remove(),i=void 0),i?i.setSettings(t):(i=e.data.percentageController=Ur.create(t.type,{settings:t,percentage:e.getPropertyValue("percentageValue"),size:e.getContentSize()}),i.appendTo(e.data.$percentageContent))}Xn.registerDefinition(Yn,{PercentageElement:{title:"Percentage Element",features:[Qn.HasResponsiveItem,Qn.Resizable,Qn.Selectable,Qn.HasBackground,Qn.HasLayout,Qn.HasPadding,Qn.Clickable,Qn.Hideable,Qn.HasBorder,Qn.Rotatable,Qn.HasContent,Qn.HasContentOverlay],properties:{percentageValue:{isStateProperty:!0,defaultValue:function(){return 50},onChange:function(e,t){e.isInitialized&&e.data.percentageController.setPercentage(t)},isBound:function(e){return void 0!==this.getBindingType(e)},getBindingType:function(e){return e.isBound(oi.percentage.getContentType())?oi.percentage.getContentType():void 0}},percentageWidget:{isStateProperty:!0,defaultValue:function(){return{type:"percentage1",color1:{mainColor:0,opacity:1,brightness:0,variation:!1},color2:{mainColor:0,opacity:1,brightness:.2,variation:!1},color3:{mainColor:0,opacity:1,brightness:.4,variation:!1},size1:20,size2:5,font:{themeFont:"heading1"}}},onChange:function(t,n,i,a){t.isInitialized&&e(t,n,a)}}},methods:{creationFunction:function(e){return e.data.$percentageContent=r('
')},hasBinding:function(){return void 0!==this.getBindingType()},getBindingType:function(){var e=this;return ei.percentageValue.getBindingType(e)},createBindingFieldsToProperties:function($super){var e=$super.call(this),t=oi.percentage.getContentType();return this.isBound(t)&&(e.percentageValue=no.create(this,{propertyName:"percentageValue"})),e}},aggregatedMethods:{aggregations:{onBoundValueReady:function(e){var t=this,n=t.getBindingType();void 0!==n&&t.setBindingValueToProperty(e[n],"percentageValue")},onContentSizeChange:function(){var e=this;e.isInitialized&&e.data.percentageController.setSize(e.getContentSize())},onInitialized:function(){var t=this;e(t,t.getPropertyValue("percentageWidget")),t.instanceRemoving.one(function(){t.data.percentageController.remove()})},onInitializing:function(){var e=this;e.instanceRemoving.one(To)}}}}})}(),function(){Xn.registerDefinition(Yn,{HtmlElement:{features:[Qn.HasInnerShadow,Qn.HasResponsiveItem,Qn.Selectable,Qn.HasBackground,Qn.HasBackgroundImage,Qn.Hideable,Qn.HasLayout,Qn.HasBorder,Qn.HasPadding,Qn.Rotatable,Qn.HasGrowableContent],properties:{htmlType:{onChange:To}},methods:{getDisplayName:function(){return this.htmlElementObject.getDisplayName()},getElementDataContentSize:function(){return this.htmlElementObject.getSize()}},aggregatedMethods:{aggregations:{onCreation:function(){var e=this,t=e.getPropertyValue("htmlType");t&&(e.htmlElementObject=yr[t.name].create(),e.htmlElementObject.initialize())},onInitialized:function(){var e=this;e.htmlElementObject.appendTo(e.getContentLayer()),e.visibilityChangedEvent.bindAndExecute(function(){e.isInstanceVisible()?e.htmlElementObject.activate():e.htmlElementObject.deactivate()}),e.instanceRemoved.one(function(){e.htmlElementObject.dispose()})}}}}})}(),function(){Xn.registerDefinition(Yn,{HtmlSectionElement:{className:"html-section-element",features:[Qn.ItemsContainer,Qn.PageSection],methods:{hasHeight:ko,getPageContentInstance:function(){return ta.getCurrentPage().getPageContentInstance()},addElementToPage:function(e){var t=this,n=t.getPageContentInstance(),i=n.addSectionElement(e,t);return ia.invalidateAreas(t,{updateSize:!1}),i}},ancestorElementType:Yn.HtmlElement,aggregatedMethods:{aggregations:{onRemove:function(){var e=this;if(!e.isForTemplateUse()){var t=e.getPageContentInstance(),n=ta.getPage(e.getPageId());t.removeSectionElement(n,e)}}}}}})}(),function(){Xn.registerDefinition(Yn,{SkinToggleButtonElement:{className:"skin-toggle-button-element",ancestorElementType:Yn.SkinButtonElement,features:[Qn.SkinSelectable],methods:{getValue:function(){return!!this.isUserSelected()}}}})}(),function(){Xn.registerDefinition(Yn,{SkinCheckBoxButtonElement:{className:"skin-checkbox-button-element",ancestorElementType:Yn.SkinToggleButtonElement,features:[Qn.HasInput],customDelegatedProperties:["formattedText"],methods:{getCalculatedOrder:function(){return this.data.formChild?-(1/0):void 0},getValue:function(){return!!this.isUserSelected()},setValue:function(e){this.userSelect(e)},clear:function(){this.setValue(!1)}}}})}(),function(){Xn.registerDefinition(Yn,{StoreFront:{className:"store-front-element",itemName:"ImageBox",properties:{StoreFront_CategoryId:{title:"Category",isStateProperty:!1,isStyleProperty:!1,defaultValue:Fo}},features:[Qn.SmartDataList],methods:{getDataSourceDefinition:function(){return ri.StoreFrontDataSource},setCategoryId:function(e){var t=this,n=t.getDataSource();if(n){var i=n.getDataService();i&&i.populate(n,{categoryId:e})}}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;W.Events.NavigableTabChanged.bind(function(e){var t=e.getParent();t&&t.elementType===Yn.StoreFront&&t.$element[0].scrollIntoView()});var t=e.getDataSource();if(t){var n=t.getDataService();n&&(Cr.Flags.EditingModeEnabled.valueChangedEvent.bind(function(){n.populate(t,{categoryId:e.getPropertyValue("StoreFront_CategoryId") })}),e.propertyChangedEvent.bindAndExecute("StoreFront_CategoryId",function(){n.populate(t,{categoryId:e.getPropertyValue("StoreFront_CategoryId")})}))}}}}}})}(),function(){function e(e,t,n){var i=r.valueOrDefaultArray(n,[t&&t.title,"Default Text"]);void 0===i||""===i?e.$element.css("visibility","hidden"):(e.setBindingValueToProperty(""+i,ei.text.name),e.$element.css("visibility","visible"))}Xn.registerDefinition(Yn,{hideableText:{ancestorElementType:Yn.label,methods:{},aggregatedMethods:{aggregations:{onBoundValueReady:function(t,n){var i=this,a=ei.formattedText.getBindingType(i);if(void 0!==a){var r=i.getBindingFields(a);e(i,r,t[a])}else if("object"==typeof n){a=ci.Data;var r=i.getBindingFields(a);e(i,r,t[a]&&t[a].productBasePrice)}}}}}})}(),function(){Xn.registerDefinition(Yn,{StorePrice:{ancestorElementType:Yn.hideableText,properties:{isLineThrough:{title:"Line-through",isStateProperty:!0,isStyleProperty:!0,category:Jn.TextStyle,defaultValue:ko,onChange:function(e,t){r(".text-content.element-text-container",e.$element).toggleClass("has-text-is-line-through",!!t),e.refreshTextLayout()}}},defaultProperties:{sizeAndPosition:function(){return{width:200,height:30,top:0,left:0}},horizontalAlign:function(){return Ke.Left},fontSize:function(){return 13},isLineThrough:xo}}})}(),function(){Xn.registerDefinition(Yn,{StoreCategories:{className:"store-categories-element",itemName:"ImageBox",properties:{StoreCategories_TargetStoreFrontElementId:{title:"Products list",isStateProperty:!1,isStyleProperty:!1,defaultValue:Fo}},features:[Qn.SmartDataList],methods:{getDataSourceDefinition:function(){return ri.StoreCategoriesDataSource}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getDataSource();if(t){var n=t.getDataService();n&&(n.events.LoadingFinished.bind(function(){var t=e.getItemsControllers();t&&t.length>0&&r.eachItem(t,function(t,n){n.$element.click(function(){var t=e.getPropertyValue("StoreCategories_TargetStoreFrontElementId");if(t){var i=ji.getInstanceByID(t);i&&i.setCategoryId(n.getDataItemId())}else{var a=ji.getPageInstancesByType(Yn.StoreFront);a.length>0&&r.eachItem(a,function(e,t){t.setCategoryId(n.getDataItemId())})}})})}),Cr.Flags.EditingModeEnabled.valueChangedEvent.bind(function(){n.populate(t,{parentId:null})}),e.propertyChangedEvent.bindAndExecute("StoreFront_CategoryId",function(){n.populate(t,{parentId:null})}))}}}}}})}(),function(){Xn.registerDefinition(Yn,{StoreCartButton:{className:"store-show-cart-button-element",ancestorElementType:Yn.SkinButtonElement,customDelegatedProperties:["iconReference"],features:[Qn.HasText],methods:{creationFunction:function(e){return e.data.$content=r("
").addClass("absolute-fill").addClass("show-cart-button"),e.data.$content}},aggregatedMethods:{aggregations:{onAttached:function(){var e=this;window.setTimeout(function(){Cr.initializeCartButton(e.$element,{amountLabel:e.$element.find(".has-content"),amountLabelSelector:".has-content"})},1500)}}}}})}(),function(){Xn.registerDefinition(Yn,{StoreBuyButton:{className:"store-show-buy-button-element",ancestorElementType:Yn.SkinButtonElement,customDelegatedProperties:["iconReference"],features:[Qn.HasText]}})}(),function(){Xn.registerDefinition(Yn,{StoreGalleryElement:{className:"store-gallery-element",customDelegatedProperties:["iconReference"],features:[Qn.HasDataSource],methods:{getDataSourceDefinition:function(){return ri.StoreFrontDataSource},getClickedItem:function(e,t){var i;if(i=r(t.target).closest(".design-element.data-list-item"),i.length>0){var a=n(i[0]);if(a)return a.getDataItem()}},initClickHandler:function(){var e=this;e.mainImage&&e.gallery&&(e.lastClickedIndex={index:0},e.gallery.triggerActivated.bind(Pi.MouseClick.name,function(t){var n=e.getClickedItem(e.gallery,t);if(void 0!==n){var i=function(e){for(var t=n.image.imageUrl.imageThumbnails,i=t[t.length-1],a=0;ae){i=t[a];break}return Settings.ImageProxy+i.url};e.lastClickedIndex=n.index,n.image.imageUrl.imageHighRes?e.mainImage.setPropertyValue("imageUrl",{imagePath:n.image.imageUrl.imageHighRes||n.image.imageUrl.imagePath,useImageProxy:!0,resizeOnImageProxy:!1,preferredSizeFunction:i}):e.mainImage.setPropertyValue("imageUrl",{imagePath:n.image.imageUrl,useImageProxy:!0,resizeOnImageProxy:!1,preferredSizeFunction:i})}}),e.mainImage.getClickedIndex=function(){return{index:e.lastClickedIndex}},e.gallery.$element.addClass("webzai-clickable-behaviour"),e.mainImage.shouldResetItems=xo,e.mainImage.getPopupItems=function(){var t=e.gallery,n=[],i=t.getPropertyValue("dataInfo");return i&&i.currentData&&(n=i.currentData),r.map(n,function(e){if(null!==e){var t=e.image.imageUrl;if(t)return{image:{imageUrl:{imagePath:t.imageHighRes||t.imagePath,useImageProxy:!0,resizeOnImageProxy:!1,preferredSizeFunction:function(e){for(var n=t.imageThumbnails,i={url:t.imageHighRes},a=0;ae){i=n[a];break}return Settings.ImageProxy+i.url}}},index:e.index,id:e.id}}})})},initDataChangeHandler:function(){var e=this;e.mainImage&&e.gallery&&(e.gallery.onBoundValueReady=function(t){if(e.mainImage&&e.gallery){e.lastClickedIndex={index:0};var n=this.getDataSource(),i=t[ci.Data],a=i.productImage.imageUrl;e.mainImage.setPropertyValue("imageUrl",a),r.isEmptyObject(a)?e.mainImage.hideElement():e.mainImage.showElement();var o=i.productDescription||i.title||"";e.mainImage.setPropertyValue("alt",o),i.productImages.length<2?e.gallery.hideElement():e.gallery.showElement(),e.gallery.setPropertyValue("dataInfo",{}),n.setDataItems(i.productImages)}})},findGalleryChildren:function(){var e=this;r.eachItem(e.childInstances,function(t,n){n.elementType===Yn.image?e.mainImage=n:n.elementType===Yn.Gallery&&(e.gallery=n)}),e.mainImage&&e.gallery&&(e.mainImage.hasBinding=xo,e.mainImage.setPropertyValue("binding",e.getPropertyValue("binding")),e.gallery.hasBinding=xo,e.gallery.setPropertyValue("binding",e.getPropertyValue("binding")))}},ancestorElementType:Yn.userBox,aggregatedMethods:{aggregations:{onBoundValueReady:function(e,t){var n=this;n._init||(n.findGalleryChildren(),n.initDataChangeHandler(),n.initClickHandler()),n._init=!0,n.gallery&&n.gallery.onBoundValueReady(e,t)}}}}})}(),function(){Xn.registerDefinition(Yn,{BreadcrumbElement:{className:"breadcrumb-element",ancestorElementType:Yn.userBox,customDelegatedProperties:["iconReference"],aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;r.eachItem(e.childInstances,function(t,n){n.elementType===Yn.freeText?e.textEl=n:n.elementType===Yn.Icon&&(e.iconEl=n)});var t=ra.getStoreInformation(),n={url:{masterListPageId:t.isOnePageList?ta.getMainPageId():t.connectedListPage,suffixFragments:[]},type:"Pages"},i=ta.getPageData(n.url);Zi.resolveUrl(n);if(e.textEl){var a=e.textEl.getPropertyValue("formattedText");"_pageName_"!==a&&void 0!==a||e.textEl.setPropertyValue("formattedText",i.title)}e.setPropertyValue("shouldUnderlineChildren",!0),e.setPropertyValue("urlAddress",n)}}}}})}(),na.registerPopupImplementation("DefaultPopup",Do(function(){var e={Overlay:{group:"default-popup-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"default-popup-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"default-popup-templates",name:"popup-carousel-video-item-template"}};this.defaultSettings={openingAnimation:"FadeIn",closingAnimation:"FadeOut",animationSpeed:500,backgroundColor:"rgba(0,0,0,0.85)",textBackgroundColor:"rgba(0,0,0,0.5)",fontFamily:"Open Sans",textColor:"#ffffff",linkTextColor:"#ffffff",controlsColor:"#ffffff",showTitle:!0,showDescription:!0,showThumbs:!0},this.updatePopupSettingField=function(e,t,n){var i,a,o,s=e.$element;switch(t){case"openingAnimation":e.setAnimationPropertyValue("opening",n);break;case"closingAnimation":e.setAnimationPropertyValue("closing",n);break;case"animationSpeed":e.setAnimationPropertyValue("duration",n);break;case"backgroundColor":n=r.Color(Ma.evaluateColorBinding(n)),i=gn.getBrightness(n),o=gn.getCompositeColorOpacity(n),a=gn.adjustBrightness(n,function(e){return.25>e?e+.1:e-.1}).toHEX(),e.setOverflowOpacity(o),e.$overflow.css({background:n.toHEX(),opacity:o}),r("._popup-control-background",s).css("background",.25>i?"#fff":"#000"),r("._popup-image-background",s).css("background",a);break;case"textBackgroundColor":n=r.Color(Ma.evaluateColorBinding(n)),r("._popup-text-background-color",s).css({background:n.toHEX(),opacity:gn.getCompositeColorOpacity(n)});break;case"fontFamily":r("._popup-font-family",s).css("font-family",Na.evaluateFontBinding(n)),r(".description",s).ellipsis();break;case"textColor":n=r.Color(Ma.evaluateColorBinding(n)).toHEX(),r("._popup-text-color",s).css("color",n);break;case"linkTextColor":n=r.Color(Ma.evaluateColorBinding(n)).toHEX(),r("._popup-link-text-color",s).css("color",n);break;case"controlsColor":n=r.Color(Ma.evaluateColorBinding(n)),i=gn.getBrightness(n),a=i>.5?"black":"rgba(255,255,255,0.5)",r("._popup-control-element",s).css({color:n.toHEX(),textShadow:"0 0 1px "+a});break;case"showTitle":s.toggleClass("no-title",!n);break;case"showDescription":s.toggleClass("no-description",!n),n&&r(".description",s).ellipsis();break;case"showThumbs":e.toggleThumbs(n)}},this.create=function(t,n,i){var a,o=r.useTemplate(e.Overlay);return n.implementation={className:"default",overlayTemplate:o,carouselImageItemTemplate:e.CarouselImageItemTemplate,carouselVideoItemTemplate:e.CarouselVideoItemTemplate,thumbsDimensions:{1024:{width:120,height:80},defaultSize:{width:166,height:110}},onItemsChanged:function(e){setTimeout(function(){r(".total-items",o).html(e.itemsCount)},10)}},a=Fn.create(n),Fn.createSettingsBinding(this,a,t,i),a}})),na.registerPopupImplementation("ElementPopup",Do(function(){var e={Overlay:{group:"default-popup-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"default-popup-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"default-popup-templates",name:"popup-carousel-video-item-template"}};this.defaultSettings={openingAnimation:"FadeIn",closingAnimation:"FadeOut",animationSpeed:500,backgroundColor:"rgba(0,0,0,0.85)",textBackgroundColor:"rgba(0,0,0,0.5)",fontFamily:"Open Sans",textColor:"#ffffff",linkTextColor:"#ffffff",controlsColor:"#ffffff",showTitle:!0,showDescription:!0,showThumbs:!1},this.updatePopupSettingField=function(e,t,n){var i,a,o,s=e.$element;switch(t){case"openingAnimation":e.setAnimationPropertyValue("opening",n);break;case"closingAnimation":e.setAnimationPropertyValue("closing",n);break;case"animationSpeed":e.setAnimationPropertyValue("duration",n);break;case"backgroundColor":n=r.Color(Ma.evaluateColorBinding(n)),i=gn.getBrightness(n),o=gn.getCompositeColorOpacity(n),a=gn.adjustBrightness(n,function(e){return.25>e?e+.1:e-.1}).toHEX(),e.setOverflowOpacity(o),e.$overflow.css({background:n.toHEX(),opacity:o}),r("._popup-control-background",s).css("background",.25>i?"#fff":"#000"),r("._popup-image-background",s).css("background",a);break;case"textBackgroundColor":n=r.Color(Ma.evaluateColorBinding(n)),r("._popup-text-background-color",s).css({background:n.toHEX(),opacity:gn.getCompositeColorOpacity(n)});break;case"fontFamily":r("._popup-font-family",s).css("font-family",Na.evaluateFontBinding(n)),r(".description",s).ellipsis();break;case"textColor":n=r.Color(Ma.evaluateColorBinding(n)).toHEX(),r("._popup-text-color",s).css("color",n);break;case"linkTextColor":n=r.Color(Ma.evaluateColorBinding(n)).toHEX(),r("._popup-link-text-color",s).css("color",n);break;case"controlsColor":n=r.Color(Ma.evaluateColorBinding(n)),i=gn.getBrightness(n),a=i>.5?"black":"rgba(255,255,255,0.5)",r("._popup-control-element",s).css({color:n.toHEX(),textShadow:"0 0 1px "+a});break;case"showTitle":s.toggleClass("no-title",!n);break;case"showDescription":s.toggleClass("no-description",!n),n&&r(".description",s).ellipsis();break;case"showThumbs":e.toggleThumbs(n)}},this.create=function(t,n,i){var a,o=r.useTemplate(e.Overlay);return n.implementation={className:"default",overlayTemplate:o},n.isElement=!0,a=Fn.create(n),Fn.createSettingsBinding(this,a,t,i),a}})),Fn.MobilePopup=Do(function(){var e={Overlay:{group:"mobile-image-popup-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"mobile-image-popup-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"mobile-image-popup-templates",name:"popup-carousel-video-item-template"},ThumbTemplate:{group:"mobile-image-popup-templates",name:"popup-thumb-template"}},t=to.getBaseRenderer().extend("MobileVideoPopupRenderer",{_render:function(e,t){var n=this._getItemElementFromItem(e),i=this._getImageFromItem(e),a=r(i.parentNode);a.css({left:0,backgroundImage:"url("+i.src+")"}),t&&t.index!==e.index&&this._getItemElementFromItem(t).css("display","none"),n.css("display","list-item")},_transition:function(e,t,n){var i,a,o=this,s=e.$item,l={width:s.width(),height:s.height()},c=this._getItemElementFromItem(e),u=this._getImageFromItem(e),d=r(u.parentNode),g=this._getItemElementFromItem(t),f=this._getImageFromItem(t),h=r(f.parentNode);n&&n>0||!n&&e.index>t.index?(i=l.width,a=-l.width):(i=-l.width,a=l.width),d.css({left:i,backgroundImage:"url("+u.src+")"}),c.css("display","list-item"),d.velocity("stop").velocity({left:[0,i]},{duration:500,queue:!1}),h.velocity("stop").velocity({left:[a,0]},{duration:500,queue:!1,complete:function(){t.index!==o._currentItem.index&&g.css("display","none")}})}});this.defaultSettings={backgroundColor:"#000000",primaryTextColor:"#ffffff",secondaryTextColor:"#ffffff"},this.create=function(n,i){function a(e,t){var n=t.$element,i=e.title||"",a=e.description||"";r(".title",n).html(i),t.moreLessActivated||(r(".show-more",n).click(function(e){o(e,n,!0)}),r(".show-less",n).click(function(e){o(e,n,!1)}),t.onCurrent(function(){C=n}),t.moreLessActivated=!0),a!==t.currentDescription&&(r(".description",n).html(a),r("._description",n).ellipsis({updateContent:!0,doNotRender:!0}),t.currentDescription=a)}function o(e,t,n){e.preventDefault(),e.stopPropagation(),t.toggleClass("show-full-text",n),s(t)}function s(e){S?S.scrollTo(e,{animateScrolling:w,deltaY:-15}):w?h.animate({scrollTop:e.position().top-15},200):h.scrollTop(e.position().top-15)}function l(e){void 0===e&&(e=!w),e!==w&&(S&&S.toggleAutoRefresh(e),e&&C&&s(C),f.toggleClass("visible",e),I.toggleClass("visible",!e),w=e)}function c(e,t){var n=t.title||"",i=t.index,a=e.getItemsLength(),r=t.link||{};v.html(n),a>1&&(y.html(i),b.html(a)),r.url&&(I.attr("href",r.url),I.attr("target",r.newTab?"_blank":"_self")),I.toggleClass("has-link",!!r.url)}function u(){var e,t,n;p.removeClass("show-full-text"),r("._description",g).ellipsis();for(var i=0,a=p.length;a>i;i++)e=r(p[i]),t=r("._title",e)[0],n=r("ellipsis",e),e.toggleClass("has-long-text",!!n.length||t.offsetWidthi?"#fff":"#000");break;case"sidebarBackgroundColor":n=r.Color(Ma.evaluateColorBinding(n)),r("._popup-sidebar-background",s).css("background",n.toHEX()),r("._popup-scrollbar .slide-area",s).css("background",gn.adjustBrightness(n,function(e){return.15>e?e+.1:e-.1}).toHEX());break;case"fontFamily":r("._popup-font-family",s).css("font-family",Na.evaluateFontBinding(n));break;case"textColor":n=r.Color(Ma.evaluateColorBinding(n)),a=n.toHEX(),r("._popup-text-color",s).css("color",a),r("._popup-sidebar-element",s).css({color:a,borderColor:a}),r("._popup-scrollbar .scrollbar-handle",s).css("background",gn.adjustBrightness(n,function(e){return.5>e?Math.max(0,e-.1):Math.min(1,e+.1)}).toHEX());break;case"linkTextColor":n=r.Color(Ma.evaluateColorBinding(n)).toHEX(),r("._popup-link-text-color",s).css("color",n);break;case"navigationArrowsColor":n=r.Color(Ma.evaluateColorBinding(n)),i=gn.getBrightness(n),a=i>.5?"black":"rgba(255,255,255,0.5)",r("._popup-control-element",s).css({color:n.toHEX(),textShadow:"0 0 1px "+a});break;case"showThumbs":e.toggleThumbs(n);break;case"showShareButtons":s.toggleClass("show-share-buttons",n)}},this.create=function(t,n,i){function a(e){var t,n=e.image&&J.resolveImageUrl(e.image.imageUrl),i=e.video&&e.video.videoUrl,a=n||i;a&&(t=encodeURIComponent(a),u.attr("href","https://www.facebook.com/sharer/sharer.php?u={0}".format(t)),d.attr("href","https://twitter.com/home?status={0}".format(t)),g.attr("href","https://pinterest.com/pin/create/button/?url=&media={0}".format(t))),c.toggleClass("has-share-link",a&&!0||!1)}function o(e,t){var n=t.title||"Image title",i=t.description||"Image description",a=t.link||{},r=t.index,o=e.getItemsLength();h.html(n),f.toggleClass("no-title",!n),p.html(i).ellipsis({updateContent:!0}),f.toggleClass("no-description",!i),a.url&&b.attr("href",a.url).attr("target",a.newTab?"_blank":"_self"),f.toggleClass("no-link",!a.url),o>1&&(v.html(r),y.html(o)),m.toggle(o>1)}var s,l,c,u,d,g,f,h,p,m,v,y,b,C;return l=r.useTemplate(e.Overlay),c=r(".social-share-links",l),u=r(".facebook",c),d=r(".twitter",c),g=r(".pinterest",c),f=r(".item-text",l),h=r(".title",f),p=r(".description",f),b=r(".link",f),m=r(".numbers-container",f),v=r(".index",m),y=r(".total-items",m),C=fn.create(r(".scrollable-text-inner",l),{scrollbarClass:"popup-scrollbar _popup-scrollbar"}),n.implementation={className:"popup-1",supportsMobile:!1,overlayTemplate:l,carouselImageItemTemplate:e.CarouselImageItemTemplate,carouselVideoItemTemplate:e.CarouselVideoItemTemplate,carouselRenderer:to.getRenderer("popupMobileSlideShow"),thumbsDimensions:{defaultSize:{width:110,height:73}},onCurrentItemChange:function(e,t){C.scrollToOffset(0,!1),a(t),o(e,t)},onShow:function(){C.toggleAutoRefresh(!0)},onClose:function(){C.toggleAutoRefresh(!1)}},s=Fn.create(n),Fn.createSettingsBinding(this,s,t,i),s}})),na.registerPopupImplementation("Popup2",Do(function(){var e={Overlay:{group:"popup-2-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"popup-2-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"popup-2-templates",name:"popup-carousel-video-item-template"},ThumbItemTemplate:{group:"popup-2-templates",name:"popup-thumb-item-template"}};this.defaultSettings={openingAnimation:"FadeIn",closingAnimation:"FadeOut",animationSpeed:500,backgroundColor:"rgba(0,0,0,0.85)",sidebarBackgroundColor:"#fff",textColor:"#080808",linkTextColor:"#323232",readMoreTextColor:"#4787b8",navigationArrowsColor:"#ffffff",showThumbs:!0,showShareButtons:!0},this.updatePopupSettingField=function(e,t,n){var i,a,o,s=e.$element;switch(t){case"openingAnimation":e.setAnimationPropertyValue("opening",n);break;case"closingAnimation":e.setAnimationPropertyValue("closing",n);break;case"animationSpeed":e.setAnimationPropertyValue("duration",n);break;case"backgroundColor":n=r.Color(Ma.evaluateColorBinding(n)),i=gn.getBrightness(n),o=gn.getCompositeColorOpacity(n),e.setOverflowOpacity(o),e.$overflow.css({background:n.toHEX(),opacity:o}),r("._popup-control-background",s).css("background",.1>i?"#fff":"#000");break;case"sidebarBackgroundColor":n=r.Color(Ma.evaluateColorBinding(n)),a=n.toHEX(),r("._popup-sidebar-background",s).css("background",a),r("._popup-thumb-cover",s).css("border-color",a),r("._popup-scrollbar .slide-area",s).css("background",gn.adjustBrightness(n,function(e){return.15>e?e+.1:e-.1}).toHEX());break;case"textColor":n=r.Color(Ma.evaluateColorBinding(n)),a=n.toHEX(),r("._popup-text-color",s).css("color",a),r("._popup-sidebar-element",s).css({color:a,borderColor:a}),r("._popup-scrollbar .scrollbar-handle",s).css("background",gn.adjustBrightness(n,function(e){return.5>e?Math.max(0,e-.2):Math.min(1,e+.2)}).toHEX());break;case"linkTextColor":n=r.Color(Ma.evaluateColorBinding(n)).toHEX(),r("._popup-link-text-color",s).css("color",n);break;case"readMoreTextColor":n=r.Color(Ma.evaluateColorBinding(n)).toHEX(),r("._popup-read-more-text-color",s).css("color",n);break;case"navigationArrowsColor":n=r.Color(Ma.evaluateColorBinding(n)),i=gn.getBrightness(n),a=n.toHEX(),r("._popup-control-element",s).css({color:a,textShadow:"0 0 1px "+(i>.5?"black":"rgba(255,255,255,0.5)")}),r("._popup-navigation-button-background",s).css("background",a);break;case"showThumbs":e.toggleThumbs(n);break;case"showShareButtons":s.toggleClass("show-share-buttons",n)}},this.create=function(t,n,i){function a(e){var t,n=e.image&&J.resolveImageUrl(e.image.imageUrl),i=e.video&&e.video.videoUrl,a=n||i;a&&(t=encodeURIComponent(a),h.attr("href","https://www.facebook.com/sharer/sharer.php?u={0}".format(t)),p.attr("href","https://twitter.com/home?status={0}".format(t)),m.attr("href","https://pinterest.com/pin/create/button/?url=&media={0}".format(t))),f.toggleClass("has-share-link",a&&!0||!1)}function o(e,t,n){var i=e.link||{};i.url&&(t.attr("href",i.url),t.attr("target",i.newTab?"_blank":"_self")),n.toggleClass("no-link",!i.url)}function s(e,t){var n=t.title||"Image title",i=t.description||"Image description",a=!1;v.velocity({opacity:0},{duration:100,queue:!1,complete:function(){v.removeClass("long-text"),y.html(n),C.html(i),o(t,b,v),y[0].scrollHeight>y.innerHeight()&&(a=!0,y.ellipsis({updateContent:!0})),C[0].getBoundingClientRect().bottom>v[0].getBoundingClientRect().bottom&&(a=!0,C.ellipsis({updateContent:!0,container:v[0]})),S.html(n),w.html(i),o(t,P,I),a&&setTimeout(function(){v.toggleClass("long-text",!0)},0),v.velocity({opacity:1},{duration:100,queue:!1})}})}function l(){g.addClass("show-full-text"),k.scrollToOffset(0)}function c(){g.removeClass("show-full-text")}function u(e){d._showThumbs?k.scrollTo(r(".current",x),{animateScrolling:e}):k.scrollToOffset(0,!1)}var d,g,f,h,p,m,v,y,b,C,I,S,P,w,E,T,x,k;return g=r.useTemplate(e.Overlay),f=r(".social-share-links",g),h=r(".facebook",f),p=r(".twitter",f),m=r(".pinterest",f),v=r(".item-text",g),y=r(".title",v),b=r(".link",v),C=r(".description",v),I=r(".full-item-text",g),S=r(".title",I),P=r(".link",I),w=r(".description",I),E=r(".read-more",v),T=r(".read-less",I),x=r(".thumbs-container",g),k=fn.create(r(".thumbs-scroller-container-inner",g),{scrollbarClass:"popup-scrollbar _popup-scrollbar"}),E.makeSimpleButton().buttonClick(function(){l()}),T.makeSimpleButton().buttonClick(function(){c(),u(!1)}),n.implementation={className:"popup-2",supportsMobile:!1,verticalThumbs:!0,overlayTemplate:g,carouselImageItemTemplate:e.CarouselImageItemTemplate,carouselVideoItemTemplate:e.CarouselVideoItemTemplate,thumbsImageItemTemplate:e.ThumbItemTemplate,thumbsVideoItemTemplate:e.ThumbItemTemplate,carouselRenderer:to.getRenderer("popupMobileSlideShow"),thumbsDimensions:{defaultSize:{width:140,height:88}},thumbsCustomScrolling:!0,onCurrentItemChange:function(e,t){c(),a(t),s(e,t),e.getItemsLength()>1&&u(!0)},onShow:function(){k.toggleAutoRefresh(!0)},onClose:function(){k.toggleAutoRefresh(!1)}},d=Fn.create(n),Fn.createSettingsBinding(this,d,t,i),d}})),na.registerPopupImplementation("Popup3",Do(function(){var e=100,t={Overlay:{group:"popup-3-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"popup-3-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"popup-3-templates",name:"popup-carousel-video-item-template"}},n=to.getBaseRenderer().extend("Popup3Renderer",{_minImageWidth:0,_minImageHeight:0,_getSideItem:function(e,t){var n,i=this.carousel,a=i._itemsList.orderedItems,r=(e||this._currentItem).index;return n=t>0?i._slideShow.getNextSlideIndex(r):i._slideShow.getPreviousSlideIndex(r),void 0!==n?a[n]:void 0},_render:function(t,n,i,a,o){var s,l,c,u,d,g,f,h,p=this,m=this._getSideItem(t,-1),v=this._getSideItem(t,1),y=m&&m.itemView.loadedFlag,b=v&&v.itemView.loadedFlag,C=this._getItemElementFromItem(t),I=this._getImageFromItem(t),S=r(I.parentNode),P={width:C.width(),height:C.height()},w={width:.8*P.width,height:.8*P.height},E=this._calculateDimensions(t,P);a||n&&n.index!==t.index&&this._hidePreviousItem(n),C.css("display","list-item"),a?(S.css({width:E.width,height:E.height,left:(P.width-E.width)/2,top:(P.height-E.height)/2,opacity:0}),S.velocity("stop").velocity({opacity:[1,0]},{duration:300,queue:!1,complete:function(){o&&o()}})):S.css({width:E.width,height:E.height,left:(P.width-E.width)/2,top:(P.height-E.height)/2}),m&&y.onceTrue(function(){s=p._getItemElementFromItem(m),l=p._getImageFromItem(m),c=r(l.parentNode),u=p._calculateDimensions(m,w),s.css("display","list-item"),a?(c.css({width:u.width,height:u.height,left:-u.width-e-200,top:(P.height-u.height)/2}),c.velocity("stop").velocity({left:[-u.width-e,-u.width-e-200]},{duration:300,queue:!1})):c.css({width:u.width,height:u.height,left:-u.width-e,top:(P.height-u.height)/2})}),v&&b.onceTrue(function(){d=p._getItemElementFromItem(v),g=p._getImageFromItem(v),f=r(g.parentNode),h=p._calculateDimensions(v,w),d.css("display","list-item"),a?(f.css({width:h.width,height:h.height,left:P.width+e+200,top:(P.height-h.height)/2}),f.velocity("stop").velocity({left:[P.width+e,P.width+e+200]},{duration:300,queue:!1})):f.css({width:h.width,height:h.height,left:P.width+e,top:(P.height-h.height)/2})}),t.itemView.$textContainer.css("width",E.width),t.itemView.$description.ellipsis()},_transition:function(e,t,n,i){var a=this,r=this.carousel;void 0===n&&(n=e.index>t.index?1:-1),void 0===i&&(r.toggleSetSlideLock(!0),t&&t.index!==this._getSideItem(e,-n).index?this._hidePreviousItem(t,!0,function(){a._render(e,t,n,!0,function(){r.toggleSetSlideLock(!1)})}):this._transitionToNearest(e,t,n,function(){r.toggleSetSlideLock(!1)}))},_hidePreviousItem:function(e,t,n){var i,a,o,s,l,c,u=this._getSideItem(e,-1),d=this._getSideItem(e,1),g=this._getItemElementFromItem(e),f=this._getItemElementFromItem(u),h=this._getItemElementFromItem(d);t?(u&&(i=this._getImageFromItem(u),a=r(i.parentNode),o=parseInt(a.css("left"))),d&&(s=this._getImageFromItem(d),l=r(s.parentNode),c=parseInt(l.css("left"))),u&&a.velocity("stop").velocity({left:[o-200,o]},{duration:300,queue:!1}),d&&l.velocity("stop").velocity({left:[c+200,c]},{duration:300,queue:!1}),g.velocity("stop").velocity({opacity:[0,1]},{duration:300,queue:!1,complete:function(){g.css({display:"none",opacity:1}),u&&f.css("display","none"),d&&h.css("display","none"),n&&n()}})):(g.css("display","none"),u&&f.css("display","none"),d&&h.css("display","none"))},_transitionToNearest:function(t,n,i,a){var o,s,l,c,u,d,g,f,h,p,m,v,y,b=this,C=this._getItemElementFromItem(t),I={width:C.width(),height:C.height()},S={width:.8*I.width,height:.8*I.height},P=this._getImageFromItem(t),w=r(P.parentNode),E=this._getImageFromItem(n),T=r(E.parentNode),x=this._getSideItem(t,i),k=this._getSideItem(n,-i),F=this._calculateDimensions(t,I),D=this._calculateDimensions(n,S),A=(I.width-F.width)/2,V=(I.width-D.width)/2;x&&(o=this._getItemElementFromItem(x),s=this._getImageFromItem(x),l=r(s.parentNode),c=this._calculateDimensions(x,S)),k&&(u=this._getItemElementFromItem(k),d=this._getImageFromItem(k),g=r(d.parentNode),f=this._calculateDimensions(k,S)),i>0?(h=I.width+e,p=-D.width-e,x&&(m=I.width+h-A+e,v=I.width+e),k&&(y=-f.width+p-e)):(h=-F.width-e,p=I.width+e,x&&(m=-c.width+h-e,v=-c.width-e),k&&(y=I.width+p-V+e)),x&&(l.css({width:c.width,height:c.height,left:m,top:(I.height-c.height)/2}),o.css("display","list-item")),t.itemView.$textContainer.css("width",F.width),t.itemView.$description.ellipsis(),w.velocity("stop").velocity({width:F.width,height:F.height,left:A,top:(I.height-F.height)/2},{duration:400,queue:!1}),x&&l.velocity("stop").velocity({left:v},{duration:400,queue:!1}),k&&g.velocity("stop").velocity({left:y},{duration:400,queue:!1}),T.velocity("stop").velocity({width:D.width,height:D.height,left:p,top:(I.height-D.height)/2},{duration:400,queue:!1,complete:function(){k&&n.index!==b._currentItem.index&&u.css("display","none"),a&&a()}})}});this.defaultSettings={openingAnimation:"FadeIn",closingAnimation:"FadeOut",animationSpeed:500,backgroundColor:"rgba(0,0,0,0.85)",fontFamily:"PT Sans",textColor:"#ffffff",linkTextColor:"#ffffff",controlsColor:"#ffffff",navigationArrowsColor:"#ffffff",showTitle:!0,showDescription:!0},this.updatePopupSettingField=function(e,t,n){var i,a,o,s=e.$element;switch(t){case"openingAnimation":e.setAnimationPropertyValue("opening",n);break;case"closingAnimation":e.setAnimationPropertyValue("closing",n);break;case"animationSpeed":e.setAnimationPropertyValue("duration",n);break;case"backgroundColor":n=r.Color(Ma.evaluateColorBinding(n)),i=gn.getBrightness(n),o=gn.getCompositeColorOpacity(n),e.setOverflowOpacity(o),e.$overflow.css({background:n.toHEX(),opacity:o}),r(".footer",s).css("background",gn.adjustBrightness(n,function(e){return.15>e?e+.1:e-.1}).toHEX());break;case"fontFamily":r("._popup-font-family",s).css("font-family",Na.evaluateFontBinding(n));break;case"textColor":n=r.Color(Ma.evaluateColorBinding(n)),a=n.toHEX(),r("._popup-text-color",s).css("color",a);break;case"controlsColor":n=r.Color(Ma.evaluateColorBinding(n)).toHEX(),r("._popup-header-element",s).css({color:n,borderColor:n});break;case"linkTextColor":n=r.Color(Ma.evaluateColorBinding(n)).toHEX(),r("._popup-link-text-color",s).css("color",n);break;case"navigationArrowsColor":n=r.Color(Ma.evaluateColorBinding(n)),i=gn.getBrightness(n),a=i>.5?"black":"rgba(255,255,255,0.5)",r("._popup-control-element",s).css({color:n.toHEX(),textShadow:"0 0 1px "+a});break;case"showTitle":s.toggleClass("no-title",!n),e._carousel.setSlide();break;case"showDescription":s.toggleClass("no-description",!n),e._carousel.setSlide(),n&&r(".description",s).ellipsis()}},this.create=function(e,i,a){function o(e){var t=l._thumbsCarousel;void 0===e&&(e=!p),e!==p&&(t.toggleItemsScrollingLock(!0),e?u.velocity("stop").velocity({top:0,opacity:1},{duration:500,queue:!1,complete:function(){t.toggleItemsScrollingLock(!1)}}):u.velocity("stop").velocity({top:-u.innerHeight(),opacity:0},{duration:500,queue:!1,complete:function(){t.toggleItemsScrollingLock(!1)}}),p=e)}function s(e,t){var n,i;i=r(e).hasClass("_prev-button")?-1:1,n=m._getSideItem(void 0,i),r(m._getImageFromItem(n)).toggleClass("hover",t)}var l,c,u,d,g,f,h,p,m;return m=new n, p=!1,c=r.useTemplate(t.Overlay),u=r(".footer",c),d=r("._thumbs-toggle",c),g=r(".numbers-container",c),f=r(".index",g),h=r(".total-items",g),d.makeSimpleButton().buttonClick(function(){o()}),r(".navigation-button",c).on("mouseenter",function(){s(this,!0)}).on("mouseleave",function(){s(this,!1)}).on("click",function(){var e=r(this);s(this,!1),setTimeout(function(){e.trigger("mouseenter")},100)}),i.implementation={className:"popup-3",supportsMobile:!1,overlayTemplate:c,carouselImageItemTemplate:t.CarouselImageItemTemplate,carouselVideoItemTemplate:t.CarouselVideoItemTemplate,thumbsDimensions:{defaultSize:{width:110,height:73}},carouselRenderer:m,onShow:function(){r(".carousel-item",c).css("display","none")},onItemsChanged:function(e){var t=e.itemsCount>3;e.toggleContinuous(t),h.html(e.itemsCount)},onCurrentItemChange:function(e,t){f.html(t.index)},onClose:function(){o(!1)}},l=Fn.create(i),Fn.createSettingsBinding(this,l,e,a),l}})),na.registerPopupImplementation("Popup4",Do(function(){var e=.8,t=155,n={Overlay:{group:"popup-4-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"popup-4-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"popup-4-templates",name:"popup-carousel-video-item-template"}},i=to.getBaseRenderer().extend("Popup4Renderer",{_minImageWidth:640,_minImageHeight:360,_render:function(n,i){var a,o,s,l,c,u,d=this,g=this.options,f=g.element,h=g.carouselContainer,p=this._minImageWidth,m=this._minImageHeight,v=n.itemView.loadedFlag,y=this._getItemElementFromItem(n),b=this._getImageFromItem(n),C=r(b.parentNode);v.isTrue()?(a=f.width()*e-t,o=f.height()*e,s={width:a,height:o},l=this._calculateDimensions(n,s),h.css({width:l.width,height:l.height}),C.css({width:l.width,height:l.height,left:0,top:0,opacity:1,zIndex:2}),g.resizeThumbsCarousel()):(h.css({width:p,height:m}),v.onceTrue(function(){var i=f.width()*e-t,a=f.height()*e,r={width:i,height:a},o=d._calculateDimensions(n,r),s=(p-o.width)/2,l=(m-o.height)/2;C.css({left:s,top:l}),h.velocity({width:[o.width,p],height:[o.height,m]},{duration:200,queue:!1,complete:function(){g.resizeThumbsCarousel()}}),C.velocity({left:[0,s],top:[0,l]},{duration:200,queue:!1})})),i&&i.index!==n.index&&(c=this._getItemElementFromItem(i),u=r(this._getImageFromItem(i).parentNode),c.css("display","none"),u.css("zIndex",1)),y.css("display","list-item"),n.itemView.$description.ellipsis()},_transition:function(n,i){var a=this,o=this.options,s=o.element,l=o.carouselContainer,c=s.width()*e-t,u=s.height()*e,d={width:c,height:u},g=this._getItemElementFromItem(n),f=this._getImageFromItem(n),h=r(f.parentNode),p=this._getItemElementFromItem(i),m=this._getImageFromItem(i),v=r(m.parentNode),y=this._calculateDimensions(n,d),b=this._calculateDimensions(i,d),C=(b.width-y.width)/2,I=(b.height-y.height)/2;h.css({width:y.width,height:y.height,left:C,top:I,opacity:0,zIndex:2}),v.css("zIndex",1),g.css("display","list-item"),l.velocity({width:[y.width,b.width],height:[y.height,b.height]},{duration:200,queue:!1,complete:function(){o.resizeThumbsCarousel()}}),h.velocity({left:[0,C],top:[0,I],opacity:[1,0]},{duration:200,queue:!1}),v.velocity({left:[(y.width-b.width)/2,0],top:[(y.height-b.height)/2,0]},{duration:200,queue:!1,complete:function(){n.itemView.$description.ellipsis(),i.index!==a._currentItem.index&&p.hide()}})}}),a=r.rule(".popup-overlay.popup-4 .footer .thumbs-container .thumb.current:after {}");this.defaultSettings={openingAnimation:"FadeIn",closingAnimation:"FadeOut",animationSpeed:500,backgroundColor:"rgba(0,0,0,0.85)",foregroundColor:"#ffffff",textBackgroundColor:"rgba(0,0,0,0.45)",fontFamily:"PT Sans",textColor:"#ffffff",linkTextColor:"#222",linkBackgroundColor:"#babdbc",navigationArrowsColor:"#000",showTitle:!0,showDescription:!0,showThumbs:!0,showShareButtons:!0},this.updatePopupSettingField=function(e,t,n){var i,o,s,l=e.$element;switch(t){case"openingAnimation":e.setAnimationPropertyValue("opening",n);break;case"closingAnimation":e.setAnimationPropertyValue("closing",n);break;case"animationSpeed":e.setAnimationPropertyValue("duration",n);break;case"backgroundColor":n=r.Color(Ma.evaluateColorBinding(n)),i=gn.getBrightness(n),s=gn.getCompositeColorOpacity(n),e.setOverflowOpacity(s),e.$overflow.css({background:n.toHEX(),opacity:s});break;case"foregroundColor":n=r.Color(Ma.evaluateColorBinding(n)),i=gn.getBrightness(n),o=n.toHEX(),r("._popup-foreground-color",l).css("background",o),r("._close-button",l).css("color",.5>=i?"#fff":"#000"),r("._popup-image-background",l).css("background",gn.adjustBrightness(n,function(e){return.2>=e?e+.1:e-.1}).toHEX()),a.css("border-right-color",o);break;case"textBackgroundColor":n=r.Color(Ma.evaluateColorBinding(n)),r("._popup-text-background-color",l).css({background:n.toHEX(),opacity:gn.getCompositeColorOpacity(n)});break;case"fontFamily":r("._popup-font-family",l).css("font-family",Na.evaluateFontBinding(n)),r(".description",l).ellipsis();break;case"textColor":n=r.Color(Ma.evaluateColorBinding(n)),o=n.toHEX(),r("._popup-text-color",l).css("color",o);break;case"linkTextColor":n=r.Color(Ma.evaluateColorBinding(n)).toHEX(),r("._popup-link-text-color",l).css("color",n);break;case"linkBackgroundColor":n=r.Color(Ma.evaluateColorBinding(n)).toHEX(),r("._popup-link-text-color",l).css("background",n);break;case"navigationArrowsColor":n=r.Color(Ma.evaluateColorBinding(n)),r("._popup-control-element",l).css("color",n.toHEX());break;case"showTitle":l.toggleClass("no-title",!n);break;case"showDescription":l.toggleClass("no-description",!n),n&&r(".description",l).ellipsis();break;case"showThumbs":e.toggleThumbs(n);break;case"showShareButtons":l.toggleClass("show-share-buttons",n)}},this.create=function(e,t,a){function o(e){var t,n=e.image&&J.resolveImageUrl(e.image.imageUrl);n&&(t=encodeURIComponent(n),g.attr("href","https://www.facebook.com/sharer/sharer.php?u={0}".format(t)),f.attr("href","https://twitter.com/home?status={0}".format(t)),h.attr("href","https://pinterest.com/pin/create/button/?url=&media={0}".format(t))),d.toggleClass("has-share-link",n&&!0||!1)}function s(e,t){var n=t.link||{};n.url&&(p.attr("href",n.url),p.attr("target",n.newTab?"_blank":"_self")),p.toggleClass("no-link",!n.url)}var l,c,u,d,g,f,h,p;return c=r.useTemplate(n.Overlay),u=r(".carousel-container",c),d=r(".social-share-links",c),g=r(".facebook",d),f=r(".twitter",d),h=r(".pinterest",d),p=r(".item-link",c),t.implementation={className:"popup-4",supportsMobile:!1,overlayTemplate:c,verticalThumbs:!0,carouselImageItemTemplate:n.CarouselImageItemTemplate,carouselVideoItemTemplate:n.CarouselVideoItemTemplate,thumbsDimensions:{defaultSize:{width:120,height:76}},carouselRenderer:new i({element:c,carouselContainer:u,resizeThumbsCarousel:function(){l._thumbsCarousel.resize(!0)}}),onCurrentItemChange:function(e,t){o(t),s(e,t)}},l=Fn.create(t),Fn.createSettingsBinding(this,l,e,a),l}})),function(){var e=void 0,t=ri.ButtonsGroupView=si.extend("ButtonsGroupView",{fields:{index:{name:"index"},title:{name:"title"},icon:{name:"icon"}},isForSave:!0,manageItemsPanelName:"ButtonsGroupPanel",manageItemsPanelTitle:void 0,setDataItems:function(e){var t=this,n=t.instance;e=r.asArray(e);var i=n.getPropertyValue("dataInfo"),a=r.quickExtend({},i),o=r.quickExtend({},a.currentData),s=r.quickExtend({},o.items);r.eachItem(e,function(e,t){s[t.id]=r.quickExtend({},s[t.id],t)}),o.items=s,a.currentData=o,ie.beginAtomicBatch(),n.setPropertyValue("dataInfo",a),ie.endAtomicBatch()},getIndex:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo");return i.currentData.items[e].index},addDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=r.quickExtend({},i),o=r.quickExtend({},a.currentData),s=r.quickExtend({},o.items);s[e.id]=r.quickExtend({},s[e.id],e),o.items=s,a.currentData=o,ie.beginAtomicBatch(),n.setPropertyValue("dataInfo",a),ie.endAtomicBatch()},removeDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=r.quickExtend({},i),o=r.quickExtend({},a.currentData),s=r.quickExtend({},o.items);delete s[e],o.items=s,a.currentData=o,ie.beginAtomicBatch(),n.setPropertyValue("dataInfo",a),ie.endAtomicBatch()},getEmptyItem:e,duplicateItem:function(e){return r.quickExtend({},e,{id:fa.generateWebsiteId()})},clear:function(){this.itemsInformation.clear()},getItemFields:function(){var e=this,t=e.instance;return t.getPropertyValue("itemFields")},updateItemFields:function(e){var t=this,n=t.instance;n.setPropertyValue("itemFields",e)},setDataInfo:function(){var e=this,t=e.instance,n=t.getPropertyValue("dataInfo");if(e.getCollectionItems().postponeUpdates(),null!==n&&void 0!==n){for(var i=e.itemsInformation.getItemsValues(),a=[],o=i.length,s=0;o>s;s++)n.currentData.items[i[s].id]||a.push(i[s].id);e.itemsInformation.remove(a);var l=r.grep(r.getValues(n.currentData.items),function(e){return!n.itemsMap||n.itemsMap[e.id]!==!1});l.sort(e.sortingFunction);for(var s=0;ss;s++)n.currentData&&n.currentData[i[s].id]||a.push(i[s].id);e.itemsInformation.remove(a);var l=r.grep(r.getValues(n.currentData),function(e){return!n.itemsMap||n.itemsMap[e.id]!==!1});l.sort(e.sortingFunction);for(var c=[],s=0;s0&&e.fieldsInformation.put(p);r.getValues(t.items);s&&g.hasFeature(Qn.DataList)&&!g.reArrangingFinishedWasFired&&g.reArrangingFinished?g.reArrangingFinished.one(function(){i()}):s?ji.performOnInstancesInitialization([g.id],i):i(),f||o.collectionItems.unPostponeUpdates()}}Xn.registerMenuItemTypes({NavigableInstance:{name:"NavigableInstance"},MasterPages:{name:"MasterPages"},DummyType:{name:"DummyType"}}),ri.MenuElementView=si.extend("MenuElementView",{fields:{index:{name:"index"},title:{name:"title"}},isForSave:!0,manageItemsPanelName:"MenuItemsPanel",manageItemsPanelTitle:void 0,setDataItems:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=r.quickExtend({},i),o=r.quickExtend({},a.currentData),s=r.quickExtend({},t.getAllDataItems());e=r.asArray(e),r.eachItem(e,function(e,t){s[t.id]=r.quickExtend({},s[t.id],t)}),o.items=s,a.currentData=o,ie.beginAtomicBatch(),n.setPropertyValue("dataInfo",a),ie.endAtomicBatch()},removeDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=r.quickExtend({},i),o=r.quickExtend({},a.itemsMap);o[e]=!1,a.itemsMap=o,ie.beginAtomicBatch(),ie.addRememberSectionsLayoutOperation(n),n.setPropertyValue("dataInfo",a),ie.endAtomicBatch()},getAllDataItems:function(){var e=this,t=e.instance;if(!e.dataSourceInfo)return{};var n=(t.getPropertyValue("dataInfo"),r.objectGet(t.getPropertyValue("dataInfo"),["currentData","items"])),i=e.dataSourceInfo.currentData.observableCollection.getItems(),a={};return r.each(i,function(e,t){n[t.id]?a[e]=r.quickExtend({},n[t.id]):a[e]=r.quickExtend({},t)}),r.quickExtend({},a,e.collectionItems.getItems())},getItemFields:function(){var e=this,t=e.instance;return r.quickExtend({},e.fieldsInformation.getItems(),t.getPropertyValue("itemFields"))},connectToNavigatable:function(e){var t,n=this,i=n.instance,a={id:e.id,type:ti.NavigableInstance.name,index:1,title:i.getPropertyValue("name")};switch(a.type){case ti.NavigableInstance.name:t=e.getItemsInformation()}var o=t.getItems(),s={};r.each(o,function(e){s[e]=!0});var l=r.quickExtend({},o);r.each(l,function(e,t){l[e]=r.quickExtend({},t)}),a.items=l,a.connectedItems=r.count(l),i.setPropertyValue("dataInfo",{currentData:a,itemsMap:s})},updateItemFields:function(e){var t=this,n=t.instance;n.setPropertyValue("itemFields",e),t.fieldsInformation.syncrhonize(r.getValues(e))},clear:function(){var e=this;e.dataSourceInfo&&t(e)},setDataInfo:function(){function i(){a.dataSourceInfo&&null!==a.dataSourceInfo&&a.dataSourceInfo.currentData&&(l&&l.id===a.dataSourceInfo.currentData.id||t(a)),l?(a.dataSourceInfo&&null!==a.dataSourceInfo||(a.dataSourceInfo={}),n(a,l,c)):a.itemsInformation.clear()}var a=this,r=a.instance,o=r.getPropertyValue("dataInfo");if(!o)return void window.setTimeout(function(){ji.removeInstances([r])},0);var s=e(o),l=s.currentData,c=s.itemsMap;if(l&&l.type===ti.NavigableInstance.name)r.isDisplayed.setValue(!1,"NAvigatableNotInitialized"),ji.performOnInstancesInitialization([l.id],function(){r.isDisplayed.setValue(!0,"NAvigatableNotInitialized"),i()});else{if(l&&l.type===ti.MasterPages.name||!l||!l.type)return void window.setTimeout(function(){ji.removeInstances([r])},0);i()}}})}(),function(){var e=void 0,t=ri.FormElementView=si.extend("FormElementView",{isForSave:!0,manageItemsPanelName:"FormItemsPanel",manageItemsPanelTitle:void 0,setDataItems:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=r.quickExtend({},i),o=r.quickExtend({},a.currentData);e=r.asArray(e),r.each(e,function(e,t){o[t.id]=r.quickExtend({},o[t.id],t)}),a.currentData=o,ie.beginAtomicBatch(),n.setPropertyValueWithOrWithOutBinding(a,ei.dataInfo.name),ie.endAtomicBatch()},getIndex:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo");return i.currentData[e].index},addDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=r.quickExtend({},i),o=r.quickExtend({},a.currentData);o[e.id]=r.quickExtend({},e),a.currentData=o,ie.beginAtomicBatch(),ie.addRememberSectionsLayoutOperation(n),n.setPropertyValueWithOrWithOutBinding(a,ei.dataInfo.name),ie.endAtomicBatch()},removeDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=r.quickExtend({},i),o=r.quickExtend({},a.currentData);delete o[e],a.currentData=o,ie.beginAtomicBatch(),ie.addRememberSectionsLayoutOperation(n),n.setPropertyValueWithOrWithOutBinding(a,ei.dataInfo.name),ie.endAtomicBatch()},getEmptyItem:e,duplicateItem:function(e){var t=fa.generateWebsiteId();return r.extend({},e,{id:t,fieldName:t})},clear:function(){this.itemsInformation.clear()},getItemFields:function(){var e=this,t=e.instance;return t.getPropertyValue("itemFields")},updateItemFields:function(e){var t=this,n=t.instance;n.setPropertyValue("itemFields",e)},setDataInfo:function(){var e=this,t=e.instance,n=t.getPropertyValue("dataInfo");if(e.getCollectionItems().postponeUpdates(),null!==n&&void 0!==n){for(var i=e.itemsInformation.getItemsValues(),a=[],o=i.length,s=0;o>s;s++)n.currentData[i[s].id]||a.push(i[s].id);e.itemsInformation.remove(a);var l=r.grep(r.getValues(n.currentData),function(e){return!n.itemsMap||n.itemsMap[e.id]!==!1});l.sort(e.sortingFunction);for(var s=0;s");i&&a.addClass(i),this.id=r.uniqueID(),this.$element=a,this.pendingClasses={},this.initializeFlag=k.create(!1),this.createdFlag=k.create(!1),this.copiedConnections=t.connections,this.copiedProperties={}},lazyInitializationProperties:{initializedEvent:b.create,createdEvent:b.create,removedEvent:b.create},instance:void 0,getInstance:function(){return this.initialize(),this.instance},_initialize:function(){var e=this;ie.disableOperationsRecording("initializeInstanceConroller"),ur.startRenderingBatch();var t=this.copiedConnections;t&&qi.applyConnections(t);var n=this.copiedProperties,i=r.quickExtend({isForTemplateUse:this._isForTemplateUse,structureProcessor:this._structureProcessor},this._options.templateOptions);i.initialProperties=r.quickExtend({},i.initialProperties),i.initialProperties[this._templateItem.structures[0].id]=r.quickExtend({},i.initialProperties[this._templateItem.structures[0].id],n);var a=bo.addTemplateInstance({elementForCreation:this._templateItem,fieldName:this._options.fieldName,dataItemID:this._dataSourceOptions.dataItemID,dataSourceName:this._dataSourceOptions.dataSourceName,styleBindingId:this._dataSourceOptions.styleBindingId},null,i,{includeChildren:!1}),o=a.instances[0],s=a.apply;!r.isEmptyObject(this._dataSourceOptions)&&o.hasFeature(Qn.SkinElement)&&o.extendDataSourceOptionsWith(this._dataSourceOptions),o.hasFeature(Qn.SkinElement)&&this._structureProcessor&&o.setStructureProcessor(this._structureProcessor);var l=o.getPropertyValue("sizeAndPosition");this._currentSize||(this._currentSize=l),o.data.instanceContainer=this.$element,o.$element.appendTo(this.$element),o.$element.toggleLayerEventsCatching(!0),this.instance=o,o.data.instanceController=this,this.initializeFlag.setTrue(),b.fireLazyEvent(this,"initializedEvent"),yo.CreationRequests.requestOperation(function(){s(),e.createdFlag.setTrue(),b.fireLazyEvent(e,"createdEvent")},e.id+"createController"),ur.finishRenderingBatch(),this.pendingClasses&&this.toggleClass(this.pendingClasses),this.pendingClasses={},ie.enableOperationsRecording("initializeInstanceConroller")},extendDataSourceOptionsWith:function(e,t){this._dataSourceOptions=r.quickExtend({},this._dataSourceOptions,e),this.isInitialized()&&t&&(this.resetInstance(),this.initialize())},setStructureProcessor:function(e,t){this._structureProcessor=e,this.isInitialized()&&t&&(this.resetInstance(),this.initialize())},initialize:function(){this.isInitialized()||(this._initialize(),this.instance.data.isForTemplateUse=this._isForTemplateUse)},toggleClass:function(e){this.isInitialized()?this.getInstance().classesManager.set(e):r.extend(this.pendingClasses,e)},setIndex:function(e){this.index=e},getIndex:function(){return this.index},setTemplateStructure:function(e,t){ie.disableOperationsRecording("setTemplateStructure"),t||(this.resetInstance(),this._templateItem=e),ie.enableOperationsRecording("setTemplateStructure")},resetInstance:function(){ie.disableOperationsRecording("resetInstance"),this.isInitialized()&&(this.copiedConnections=this.instance.getTargetConnections(),this.copiedProperties={},this.instance&&(ji.removeInstances([this.instance]),this.$element.empty()),this.instance=void 0,this.createdFlag.setFalse(),this.initializeFlag.setFalse()),ie.enableOperationsRecording("resetInstance")},getTemplateStructure:function(){return this._templateItem},getDataItemId:function(){return this._dataSourceOptions.dataItemID},isInitialized:function(){return this.initializeFlag.isTrue()},removeController:function(){e.removeControllers([this])},updatePropertiesValues:function(e){e&&!this.isInitialized()&&r.extend(this.copiedProperties,e)},getSize:function(){return this.getInstance().getPropertyValue("sizeAndPosition")},setSize:function(e){var t=this;this._currentSize=e,wn.requestWriteOperation(function(){t.$element.css({width:e.width,height:e.height})},t.id+"sizeSize-instancecontroller"),this.isInitialized()?(this.getInstance().setPropertyFieldsValues("sizeAndPosition",e),this.refreshLayout()):this.copiedProperties.sizeAndPosition=r.extend({},e)},setMargin:function(e){var t={marginBottom:"",marginLeft:"",marginTop:"",marginRight:""};this.$element.css(r.quickExtend(t,{marginBottom:e.marginBottom,marginLeft:e.marginLeft,marginTop:e.marginTop,marginRight:e.marginRight})),this.refreshLayout()},resetStyle:function(){this.$element.css({top:"",left:"","margin-left":"","margin-top":"","margin-right":"","padding-left":""})},refreshLayout:function(){this.isInitialized()&&Gi.refreshElementsLayout(this.getInstance())},updatePosition:function(){this.isInitialized()&&ia.invalidateAreas(this.getInstance())},detach:function(){this.isInitialized()&&this.getInstance().detach(),this.$element.detach(),this.resetStyle(),this.hideElement()},isParent:function(e){return this.$element.parent()===e},appendTo:function(e,t,n){t&&(this._parentInstance=t);var i=this.getInstance();return this._parentInstance&&i.parentInstance!==this._parentInstance&&(ji.addElementToContainerElement(this._parentInstance,i),i.$element.appendTo(this.$element)),n||this.$element.appendTo(e),this.refreshLayout(),this},hideElement:function(){this.isInitialized()&&(this.getInstance().isDisplayed.setFalse("instanceController"),this.getInstance().setToCurrentMode())},showElement:function(){this.isInitialized()&&(this.getInstance().isDisplayed.setTrue("instanceController"),this.getInstance().setToCurrentMode())}});return e.create=function(t,n){return new e(t,n)},e.removeControllers=function(e){ie.disableOperationsRecording("removeControllers");var t=[];r.eachItem(e,function(e,n){n.isInitialized()&&t.push(n.getInstance())}),ji.removeInstances(t),r.eachItem(e,function(e,t){t.$element.remove(),t.isInitialized()&&t.instance.$element.remove(),b.fireLazyEvent(t,"removedEvent")}),ie.enableOperationsRecording("removeControllers")},e}(),yo=Do(function(){var e,t=k.create(!0),n=Sn.create(function(i){!n.isActivated()||t.isFalse()?(ne.profile("instanceControllers"),Di.Flags.SavingRecordEnabled.setFalse("initializeInstanceConroller"),ie.disableOperationsRecording("initializeInstanceConroller"),ur.startRenderingBatch(),i(),ur.finishRenderingBatch(),ie.enableOperationsRecording("initializeInstanceConroller"),Di.Flags.SavingRecordEnabled.setTrue("initializeInstanceConroller"),ne.profileEnd("instanceControllers")):(e&&clearTimeout(e),e=setTimeout(function(){ne.profile("instanceControllers"),Di.Flags.SavingRecordEnabled.setFalse("initializeInstanceConroller"),ie.disableOperationsRecording("initializeInstanceConroller"),ur.startRenderingBatch(),i(),ur.finishRenderingBatch(),ie.enableOperationsRecording("initializeInstanceConroller"),Di.Flags.SavingRecordEnabled.setTrue("initializeInstanceConroller"),ne.profileEnd("instanceControllers")},0))});this.enable=function(){t.setTrue()},this.disable=function(){t.setFalse()},this.CreationRequests=n});!function(){function e(e,t,n,i){i=r.extend({keepItemSize:!0},i);var a=t.totalCount;if(a>0){var o=e.getLastArrangementOptionsByCurrentDevice(),s=e.getInstance(),l=n.getFixedSize(i.size,a,i),c=n.getFixedSize(s.getMaxSize(),a,i),u=zi.calculateItemSize(l,i,o);i.calculatedFixedSize=l,i.calculatedMaxSize=c,i.fixedSize=u,i.length=a;var d=t.instanceControllers;if(i.keepRatio){var g=r.maxValue([u.width,u.height]);u={height:g,width:g}}var f=n.getLayoutOptions(d.length,i);n.orderItemsLayout(e,d,r.extend({$container:e.$contentContainer},f));var h=n.arrange(d,i,o);return h=r.extend({},i,h),h.controllersToArrange=d,h}}function t(e,t){for(var n=r([]),i=0;i"),e.$contentContainer=t),e.getDataItemsController().detach(),e.setParentContent(t)}function i(e){e.getDataItemsController().detach();var t=e.$contentContainer;t&&t.remove()}zi.registerDataLayoutTypes({SquareGrid:{name:"SquareGrid",isReArrangeable:!0,category:Ri.Grid,arrange:function(t,n,i){return e(t,n,Ri.Grid,i)},fields:{rows:!0,colsSpacing:!0,rowsSpacing:!0,cols:!0},startLayout:n,removeLayout:i},Vertical:{name:"Vertical",isReArrangeable:!0,category:Ri.Vertical,arrange:function(t,n,i){return e(t,n,Ri.Vertical,i)},fields:{columnSpacing:!0},startLayout:n,removeLayout:i},Horizontal:{name:"Horizontal",isReArrangeable:!0,category:Ri.Horizontal,arrange:function(t,n,i){return e(t,n,Ri.Horizontal,i)},fields:{lineSpacing:!0},startLayout:n,removeLayout:i,reAllocateTemplates:t},OneColumn:{name:"OneColumn",isReArrangeable:!0,category:Ri.OneColumn,arrange:function(t,n,i){return e(t,n,Ri.OneColumn,i)},shouldRearrangeWhenItemSizeChanged:!0,canItemResize:{vertically:!0,horizontally:!1},fields:{rowsSpacing:!0},canResize:{vertically:!1,horizontally:!0},startLayout:n,removeLayout:i},Columns:{name:"Columns",isReArrangeable:!0,category:Ri.Columns,arrange:function(t,n,i){return e(t,n,Ri.Columns,i)},shouldRearrangeWhenItemSizeChanged:!0,canItemResize:{vertically:!0,horizontally:!1},canResize:{vertically:!1,horizontally:!0},fields:{rowsSpacing:!0,colsSpacing:!0,cols:!0},startLayout:n,removeLayout:i}},Ni.Normal)}(),function(){function e(e,n,i,a){a=r.quickExtend({keepItemSize:!0,usePagesLayout:!0,maintainHeightInView:!1},a);var o=a.usePagesLayout;a.controllersCount=n.totalCount,a.pageIndexToArrange=o?e.getDataItemsController().getInstance().getCurrentPageIndex():0;var s=n.instanceControllers,l=e.getLastArrangementOptionsByCurrentDevice();if(t(e,n.instanceControllers,i,a),s&&s.length>0){r.eachItem(s,function(e,t){t.toggleClass({"fit-to-size":!0})}),a.length=!a.maintainHeightInPreview&&a.pageIndexToArrange>0?a.elementsPerPage:s.length;var c=e.getInstance(),u=i.getFixedSize(a.size,a.length,a),d=i.getFixedSize(c.getMaxSize(),a.length,a),g=zi.calculateItemSize(u,a,l);a.calculatedFixedSize=u,a.calculatedMaxSize=d,a.fixedSize=g;var f=i.arrange(s,a);return f.controllersToArrange=s,f}}function t(e,t,i,a){var o=a.controllersCount,s=1;a.usePagesLayout&&0!==o&&(s=Math.ceil(o/a.elementsPerPage));var l=e.pagesInstance;if(n(e,s,a),0!==s){var c=l.getNavigatableInstances(),u=c[Math.min(a.pageIndexToArrange,s-1)],d=i.getLayoutOptions(t.length,a),g=i.orderItemsLayout(e,t,r.extend({parentInstance:u,currentControllersMap:u.currentControllersMap,$container:u.getElementContent()},d));u.currentControllersMap=g}}function n(e,t,n){var i=e.pagesInstance,a=i.getNavigatableInstances(),o=a.length;t=t?t:1;var s=i.getItemsCollection().postponeUpdates();if(o>t){for(var l=o-t,c=[],u=o-1;u>o-1-l;u--){var d=ji.getInstanceByID(e.getDataItemsController().getId()+f+u);d&&(c.push(d),d.currentControllersMap&&(r.eachEntry(d.currentControllersMap,function(e,t){t.detach()}),d.currentControllersMap={}))}ji.removeInstances(c)}else if(t>o)for(var g=o,l=t-o,u=0;l>u;u++){var h=i.addItem({tabName:"page"+(g+u+1),rootsIds:[e.getDataItemsController().getId()+f+(g+u)],isContent:!0,initialProperties:{all:{backgroundColor:"transparent"}}});h.getElementContent().addClass("wrap"),h.$element.toggleLayerEventsForwarding(!0),h.hasOrder.setValue(!1)}(0===o&&t||!n.usePagesLayout)&&i.showItem(n.pageIndexToArrange,!1),s||i.getItemsCollection().unPostponeUpdates()}function i(e){var t=e.getDataItemsController().getInstance();t&&(t.getItemsInformation().disconnectObservableCollection(),t.getFieldsInformation().disconnectObservableCollection()),e.getDataItemsController().detach(),ji.removeInstances(e.pagesInstance),e.pagesInstance=void 0}function a(e){if(ie.disableOperationsRecording("startLayout"),!e.pagesInstance){var t=e.getDataItemsController().getInstance(),n={elementForCreation:{structures:[{type:Yn.TabsPanel.name,elementProperties:{}}]}},i=bo.addTemplateInstance(n,t.$element,{rootsIds:[t.id+f],isContent:!0,isVisible:!0,initialProperties:{all:{fillLayout:{fillVertical:!0,fillHorizontal:!0},backgroundColor:"transparent",borderWidth:{top:0,left:0,bottom:0,right:0}}}}),a=i.instances[0];a.$element.toggleLayerEventsForwarding(!0),r.eachItem(a.getDescendingInstances(!0),function(e,t){t.hasFeature(Qn.Selectable)&&t.hasOrder.setValue(!1)}),ur.startRenderingBatch(),e.pagesInstance=a,a.$element.addClass("relative-arrangement");for(var o in Qn.Navigatable.properties)Qn.Navigatable.properties[o]&&a.setPropertyValue(o,t.getPropertyValue(o));var s=t.propertyChangedEventSimple.bind(function(e){ie.disableOperationsRecording("dataListInstance.propertyChangedEventSimple"),Qn.Navigatable.properties[e]&&a.setPropertyValue(e,t.getPropertyValue(e)),ie.enableOperationsRecording("dataListInstance.propertyChangedEventSimple")});ur.finishRenderingBatch(),s=a.currentItemFinishChanging.bind(function(){l(t)}),a.bindings.push(s),s=a.currentItemChangedEvent.bind(function(e){t.currentItemChangedEvent.fireNew({prevItem:e.prevItem,currentItem:e.currentItem})}),a.bindings.push(s),t.getItemsInformation().connectObservableCollection(a.getItemsCollection()),t.getFieldsInformation().clear(),t.getFieldsInformation().connectObservableCollection(a.getFieldsCollection())}ie.enableOperationsRecording("startLayout")}function o(){var e={};return r.eachEntry(g,function(t,n){e[t]=r.quickExtend({removeLayout:i,startLayout:a,getNavigatableInstances:d,navigateTo:u,getCurrentItem:c,showItem:s,fetchItemsInformationToArrange:function(e,t,n,i){t=r.quickExtend({maxItemsCount:1/0,usePagesLayout:!0},t);var a=t.usePagesLayout,o=t.maxItemsCount,s=t.elementsPerPage,l=r.isNumeric(o),c=e.getDataItemsController(),u=l||!a?0:c.getInstance().getCurrentPageIndex()*s,d=l?o:a?u+s:1/0;c.fetchControllersByIndex(u,d,function(e){if(l){var t=Math.min(e.totalCount,o),i=a?c.getInstance().getCurrentPageIndex()*s:0;i>=t&&0!==i&&(i=r.divideNoReminder(t-1,s)*s);var u=a?e.instanceControllers.slice(i,i+s):e.instanceControllers;n({instanceControllers:u,totalCount:t})}else n(e)},i)}},n)}),e}function s(e,t,n,i,a){e.pagesInstance&&e.pagesInstance.showItem(t,n,i,a)}function l(e){e.requestArrangement({shouldPush:!0})}function c(e){if(e.pagesInstance){var t=e.pagesInstance.getCurrentItem();if(t)return t}}function u(e,t,n,i,a){e.pagesInstance&&e.pagesInstance.navigateTo(t,n,i,a)}function d(e){return e.pagesInstance?e.pagesInstance.getNavigatableInstances():[]}var g={PagesRow:{name:"PagesRow",isPages:!0,isReArrangeable:!0,category:Ri.Horizontal,fields:{lineSpacing:!0},arrange:function(t,n,i){return e(t,n,Ri.Horizontal,i)}},PagesColumn:{name:"PagesColumn",isPages:!0,isReArrangeable:!0,category:Ri.Vertical,fields:{columnSpacing:!0},arrange:function(t,n,i){return e(t,n,Ri.Vertical,i)}},PagesGrid:{name:"PagesGrid",isPages:!0,isReArrangeable:!0,category:Ri.Grid,fields:{rows:!0,colsSpacing:!0,rowsSpacing:!0,cols:!0},arrange:function(t,n,i){return e(t,n,Ri.Grid,i)}}};zi.registerDataLayoutTypes(o(),Ni.Pages);var f="p"}(),function(){zi.registerDataLayoutTypes({NormalForm:{name:"NormalForm",removeLayout:To,startLayout:To,orderElements:function(e,t,n){t=r.quickExtend({colsSpacing:0,columnSpacing:30,fieldSpacing:0,numberOfRows:5},t);var i=e.getFieldsInstances(),a=0;if(n)o=n.top,s=n.left;else var o=r.min(i,function(e){var t=e.getPropertyValue("sizeAndPosition");return t.top}).value,s=r.min(i,function(e){var t=e.getPropertyValue("sizeAndPosition");return t.left}).value;for(var l=s-t.columnSpacing,c=0;c*t.numberOfRows0){var s=e.getInstance();a.controllersCount=o;var l=e.getLastArrangementOptionsByCurrentDevice(),c=i.getFixedSize(a.size,o,a),u=i.getFixedSize(s.getMaxSize(),o,a),d=zi.calculateItemSize(c,a,l);a.calculatedFixedSize=c,a.calculatedMaxSize=u;var g=n.instanceControllers;t(e,g,i,a),r.each(g,function(e,t){t.toggleClass({"fit-to-size":!0})}),a.fixedSize=d,a.length=g.length,a.$columns=e.$columns;var f=i.arrange(g,a);return f.controllersToArrange=g,f}}function t(e,t,a,r){var o=r.controllersCount,s=Math.ceil(o/r.rows);n(e,s),i(e,t,r)}function n(e,t){var n=e.$columns,i=n.length;if(i>t){var a=i-t;e.getDataItemsController().detach();for(var o=i-1;o>i-1-a;o--)n[o].remove(),e.$columns.pop()}else if(t>i)for(var a=t-i,o=0;a>o;o++){var s=r("");e.$columns.push(s),s.appendTo(e.$contentContainer)}}function i(e,t,n){for(var i=t,a=e.$columns.length,r=0;a>r;r++)for(var o=0;o"),e.$contentContainer=t),e.getDataItemsController().detach(),e.setParentContent(t),e.$columns=[]}function o(e){e.getDataItemsController().detach();var t=e.$contentContainer;e.$columns&&r.each(e.$columns,function(e,t){t.remove()}),t&&t.remove()}function s(){var e={};return r.each(l,function(t,n){e[t]=r.extend({removeLayout:o,startLayout:a},n)}),e}var l={Rows:{name:"Rows",category:Ri.Rows,arrange:function(t,n,i){return e(t,n,Ri.Rows,i)},shouldRearrangeWhenItemSizeChanged:!0,canItemResize:{vertically:!0,horizontally:!1},canResize:{vertically:!1,horizontally:!0},fields:{rowsSpacing:!0,colsSpacing:!0,rows:!0}}};zi.registerDataLayoutTypes(s(),Ni.FormLayouts)}(),function(){function e(e,t,n,a){a=r.quickExtend({isVertical:!1,keepItemSize:!0,maxItems:4},a);var o=c(e,t,a),s=e.getLastArrangementOptionsByCurrentDevice(),l=e.getInstance(),u=i(e,t,a),d=void 0;if(u.length>0){var g=n.getFixedSize(a.size,o,a),f=n.getFixedSize(l.getMaxSize(),o,a),h=zi.calculateItemSize(g,a,s);a.calculatedFixedSize=g,a.calculatedMaxSize=f,a.fixedSize=h,a.length=u.length;var p=n.getLayoutOptions(u.length,a);n.orderItemsLayout(e,u,r.quickExtend({$container:e.$contentContainer},p)),d=n.arrange(u,a,s)}return d=r.extend({},a,d,{controllersToArrange:u})}function t(e,t,i,a,o){if(i){var l=e.getDataItemsController().getDataSource().getCollectionItems();r.each(t,function(t,r){if(!a||e.moreItemsController===r){var c=r.getDataItemId(),u=s(c,i,l);u&&n(e,r,u,o)}})}}function n(e,t,n,i){var a={},o=i.dropDownItemClick,s=i.currentSelectedItem,l=i.dropDownNavigationSettings,c=l.navigation,g=l.navigationProperties,f=i.createItemsController();g=r.quickExtend({createInstanceController:f.createInstanceController},g);var h,p,m=t.$element,v=i.isVertical?it.Right:it.Bottom,y=i.createSubHierarchyElement({controller:t,arrowSide:v}),C=!1,I=!1;h=m,h.bind("mousedown.menu-drop-down",function(e){a.isOpened()||(e.stopPropagation(),e.preventDefault(),C=!0,a.open())}),Ta.Flags.IsInMobileContext.isFalse()&&(I=!0,m.bind("mouseenter.menu-drop-down",function(){setTimeout(function(){a.open()},0)})),p=d.getValue();var S=lr.createNavigationController(c),P=b.createEventListener(ta.Events.PageChanging,function(){S.close()}),w=!0,E={$element:m,navigationProperties:g,isVertical:i.isVertical,pages:n.controllersData,pagesHierarchy:n.hierarchyCollection,selectedPageId:s,instanceId:r.uniqueID(),customClickCallback:o,isTargetFixed:e.getInstance().getPropertyValue("isFixed")===!0,closeAnimationCompleteCallback:function(){w=!0}};I&&r.quickExtend(E,{mouseEnteredCallback:function(){T.setTrue("mouseEntered")},mouseLeaveCallback:function(){T.setFalse("mouseEntered")},openCallback:function(e){if(!C){var t=r.unionAreas([e.getOuterArea(),m.getOuterArea()]);u=a,p.setTrackedAreas([t]),p.setCurrentMouseTarget(t),p.activate()}}});var T=k.createConditionalNegative({valueChangeCallback:function(e){if(e){S.open(E),w=!1;var n=t.getInstance().getSkinInstance();ia.stopMouseOverTracking(n),Ta.Flags.IsInMobileContext.isFalse()&&n.activateTrigger(Pi.MouseEnter),S.isOpened.once(!1,function(){I&&(p.deactivate(),u=void 0),P.deactivate(),T.resetConditions(),ia.trackMouseOver(n),Ta.Flags.IsInMobileContext.isFalse()&&n.activateTrigger(Pi.MouseLeave)}),P.activate()}else S.close()}});r.quickExtend(a,{open:function(){w&&T.setTrue("controller")},close:function(){T.setFalse("controller")},isOpened:function(){return T.isTrue()}}),r.quickExtend(a,{dropDownData:n,remove:function(){S&&S.remove(),y&&y.remove(),h&&h.unbind(".menu-drop-down"),f.remove()}}),t.dropDownController=a,e.dropDownControllers.push(t)}function i(e,n,i){e.getDataItemsController().detach();var a=e.moreItemsController;a&&a.detach(),l(e),e.dropDownControllers=[];var o,s=i.maxItems,c=r.mapToDictionary(n.instanceControllers,r.identity,function(e){return e.getDataItemId()}),u=e.getDataItemsController().getControllersHierarchy();u?o=u.getRootIds():(o=r.getKeys(c),u=Ft.create({ids:o}));var d,g;Ta.Flags.IsInMobileContext.isFalse()?(d=u,g=r.mapItem(o,function(e){return c[e]})):g=r.getValues(c),g.orderBy(r.defaultIndexFunction);var f=!1;if(g.length>s){a||(a=e.moreItemsController=i.createMoreItemsController());var h=a.getDataItemId(),p=g.slice(s-1);g=g.slice(0,s-1),g.push(a),d=u.clone(),Ta.Flags.IsInMobileContext.isFalse()?(d.addIds(h),r.eachItem(p,function(e,t){d.setParent(t.getDataItemId(),h)})):(f=!0,d.addIds(h),r.eachItem(o,function(e,t){d.setParent(t,h)}))}else a&&(a.removeController(),delete e.moreItemsController);return t(e,g,d,f,{createSubHierarchyElement:i.createSubHierarchyElement,dropDownNavigationSettings:i.dropDownNavigationSettings,createItemsController:i.createItemsController,dropDownItemClick:i.dropDownItemClick,currentSelectedItem:i.currentSelectedItem,fixedSize:i.fixedSize,isVertical:i.isVertical}),g}function a(e){var t=e.$contentContainer;t||(t=r(""),e.$contentContainer=t),e.getDataItemsController().detach(),e.setParentContent(t)}function o(e){e.getDataItemsController().detach(),l(e),delete e.dropDownControllers;var t=e.moreItemsController;t&&(t.removeController(),delete e.moreItemsController);var n=e.$contentContainer;n&&n.remove()}function s(e,t,n){if(t.hasChildren(e)){var i=t.createSubHierarchy(e),a=r.mapEntry(i.getIds(),function(e,t){return n.getItem(t)});return{controllersData:a,hierarchyCollection:i}}}function l(e){e.dropDownControllers&&r.each(e.dropDownControllers,function(e,t){var n=t.dropDownController;n.remove(),delete t.dropDownController})}function c(e,t,n){var i=t.instanceControllers.length;if(Ta.Flags.IsInMobileContext.isFalse()){var a=e.getDataItemsController().getControllersHierarchy();a&&(i=a.getRootCount())}return Math.min(n.maxItems,i)}zi.registerDataLayoutTypes({HorizontalMenu:{category:Ri.Horizontal,arrange:function(t,n,i){return e(t,n,Ri.Horizontal,r.extend(i,{isVertical:!1}))},isMenuLayout:!0,startLayout:a,removeLayout:o},VerticalMenu:{category:Ri.Vertical,arrange:function(t,n,i){return e(t,n,Ri.Vertical,r.extend(i,{isVertical:!0}))},isMenuLayout:!0,startLayout:a,removeLayout:o},SquareGridMenu:{category:Ri.Grid,arrange:function(t,n,i){return e(t,n,Ri.Grid,r.extend(i,{isVertical:!1}))},isMenuLayout:!0,startLayout:a,removeLayout:o}},Ni.Normal);var u,d=m.create(function(){return vn.create(Hi.getBodyElement(),{onStoppedBeingTarget:function(){u.close()}})})}(),zi.registerDataLayoutTypes({NavigationButton:{arrange:To,startLayout:To,removeLayout:To}},Ni.Normal);var bo=Do(function(){function e(e,t){e.dataSourceName&&t&&r.eachEntry(t,function(t,n){e.initialProperties[t]||(e.initialProperties[t]={}),e.initialProperties[t].binding={dataFields:r.quickExtend({},n),dataSourceName:e.dataSourceName,dataItemID:e.dataItemID}})}function t(e){r(e).each(function(e,t){t.elementProperties||(t.elementProperties={});var n=t.elementProperties.order;void 0!==n&&null!==n||(n=0),t.elementProperties.order=Ui.getMaxOrder()+1+n,Ui.increaseMaxOrder()})}function n(e,t,n){t?r(e).each(function(e,n){n.elementProperties&&n.elementProperties.sizeAndPosition&&(n.elementProperties.sizeAndPosition.left=t.left-n.elementProperties.sizeAndPosition.width/2,n.elementProperties.sizeAndPosition.top=t.top-n.elementProperties.sizeAndPosition.height/2)}):n&&r(e).each(function(e,t){t.elementProperties&&t.elementProperties.sizeAndPosition&&(t.elementProperties.sizeAndPosition.left+=n.left,t.elementProperties.sizeAndPosition.top+=n.top)})}function i(e){r.eachItem(e.structures,function(e,t){void 0===t.offset&&(t.offset={left:0,top:0})});var t=r.min(e.structures,function(e){return e.offset.left}).value,n=r.min(e.structures,function(e){return e.offset.top}).value;r.eachItem(e.structures,function(e,i){void 0===i.offset&&(i.offset=r.translateOffset(i.offset,{left:0-t,top:0-n}))})}function a(e,t){r.eachItem(e.structures,function(e,n){void 0===n.offset&&(n.elementProperties.sizeAndPosition=r.translateOffset(n.elementProperties.sizeAndPosition,t))})}this.addTemplateInstance=function(o,s,l,c){l=r.quickExtend({isContent:!1,isLoading:!1,initialProperties:{all:{}},isForTemplateUse:!1,newRootElementTypeName:!1,removeMobileStates:!1,shouldDuplicateHierarchy:!0},l),c=r.quickExtend({includeChildren:!0,isTemplate:!0},c),ur.startRenderingBatch();var u=o.elementForCreation,d=l.shouldDuplicateHierarchy;fa.loadHierarchy({templateStructure:u,StructureVersion:void 0!==u.version?u.version:0},c.isTemplate);var g=u;d&&(g=vr.duplicateHierarchyInfo(u,l)),l.newRootElementTypeName&&(g.structures[0].type=l.newRootElementTypeName),l.targetOffset&&(i(g),a(g,l.targetOffset)),n(g.structures,l.centerPosition,l.basePosition),t(g.structures),l.initialProperties.all=r.quickExtend(l.initialProperties.all,{templateName:u.name,templateID:"template"+fa.generateWebsiteId()});var f=g.oldToNewIDMapping?r.replaceKeys(l.initialProperties,g.oldToNewIDMapping):l.initialProperties,h={dataItemID:o.dataItemID,styleBindingId:o.styleBindingId,initialProperties:f,parent:s,dataSourceName:o.dataSourceName,isContent:l.isContent,isVisible:l.isVisible,isLoading:l.isLoading,isForTemplateUse:l.isForTemplateUse,thumbsResolver:l.thumbsResolver};if(h.dataSourceName){var p=g.structures[0],m=p.elementProperties;if(m){var v=m.fieldsMap;e(h,v)}}h.styleBindingId&&(h.initialProperties.all.styleBindingId=h.styleBindingId);var y,b=xa.create(g);return y=c.includeChildren?b.addHierarchyAndApply(h):b.addHierarchyFromNode(g.structures[0].id,r.quickExtend({includeNode:!0,includeChildren:!1},h)),ur.finishRenderingBatch(),{instances:y,apply:c.includeChildren?void 0:function(){b.addHierarchyFromNode(g.structures[0].id,r.extend({},h,{includeNode:!1,includeChildren:!0,parent:y[0]})),b.applyHierarchy()}}}}),Co=function(){function e(e,t){var n=a(e,t),i=t.addedItems&&t.addedItems.length>0||t.removedItems&&t.removedItems.length>0; e._duringFetch||!n&&!i||e._dataListInstance.requestArrangement({shouldPush:i})}function t(e,t){return function(n){e._duringFetch=!1,t(n)}}function n(e,t){return function(n){i(e,t,n)}}function i(e,t,n){var i=n.fetchedItems,a=[];r.eachItem(i,function(t,n){a[t]=l(e,n)}),e._duringFetch=!1,t({instanceControllers:a,totalCount:n.totalCount})}function a(e,t){var n=e._dataListInstance;if(!n.isDeleted)return n.reArrangementDisabled.setValue(!0,"itemsChanged"),ie.disableOperationsRecording("updateDataControllers"),ur.startRenderingBatch(),t.removedItems&&o(e,t.removedItems),t.addedItems&&s(e,t.addedItems),ur.finishRenderingBatch(),ie.enableOperationsRecording("updateDataControllers"),n.reArrangementDisabled.setValue(!1,"itemsChanged"),t.addedItems&&t.addedItems.length>0||t.removedItems&&t.removedItems.length>0||t.updatedItems&&t.updatedItems.length>0?c(e):!1}function o(e,t){if(0!==t.length){for(var n=[],i=e._dataControllers,a=0;a0&&!i.fixedSize){var r=t(a);r&&(i.fixedSize=r,i.shouldPush=!0)}var o=e._arrangementScope;o.start();var s=e._currentArrangement.arrange(e,n,i);e._setLastArrangementOptionsByDevice(s),e._lastArrangementInformation=s,a.totalCountObservable.setValue(n.totalCount),o.finish()}function t(e){var t,n=e.getStructureMetaData();return Ta.Flags.IsInMobileContext.isTrue()&&!e.data.wasFirstArrangedInMobile?(e.data.wasFirstArrangedInMobile=!1,t=n&&n.dataItemSizeMobile?n.dataItemSizeMobile:void 0):Ta.Flags.IsInMobileContext.isFalse()&&!e.data.wasFirstArrangedInPc&&(e.data.wasFirstArrangedInPc=!1,t=n&&n.dataItemSizePc?n.dataItemSizePc:void 0),t?r.cloneObject(t):void 0}var n=g.extend("DataLayoutController",{init:function(e,t){t=r.quickExtend({onArrangementStarted:To,onArrangementFinished:To,startInitializingLayoutCallback:To,finishInitializingLayoutCallback:To,startArrangingCallback:To,finishArrangingCallback:To,getContainerSize:To,setParentContent:To},t);var n=e.getInstance(),i=t.startInitializingLayoutCallback,a=t.finishInitializingLayoutCallback,o=t.startArrangingCallback,s=t.finishArrangingCallback,l=t.getContainerSize,c=t.setParentContent,u=t.onArrangementStarted,d=t.onArrangementFinished,g=k.create(!1),f=k.create(!1),h=me.create({startCallback:o,finishCallback:s}),p=me.create({startCallback:i,finishCallback:a}),m=this,v=N.createCancelableQueue({startOperationCallback:function(){u(),p.start(),m.refreshLayout(),p.finish()},finishOperationCallback:function(){d()}});n.instanceRemoved.one(function(){v.dispose()}),this._dataItemsController=e,this._getContainerSize=l,this._setParentContent=c,this._startInitializingLayoutCallback=i,this._finishInitializingLayoutCallback=a,this.isInitialized=g,this.instance=n,this._arrangingOperationQueue=v,this._arrangementScope=h,this._shouldRefreshLayout=f,this._lastArrangementInformation={},this._lastArrangementInformationDevice={pc:{},mobile:{}}},getInstance:function(){return this.instance},refreshEmptyState:function(){this.getArrangement().refreshEmptyState(this)},isInEmptyState:function(){return this.instance.inEmptyStateFlag.isTrue()},getDataItemsController:function(){return this._dataItemsController},setParentContent:function(e){this._setParentContent(e)},setArrangement:function(e){var t=this._currentArrangement;_i[e]!==t&&(this._prevArrangement=t,this._currentArrangement=_i[e],this._shouldRefreshLayout.setTrue())},getArrangement:function(){return this._currentArrangement},hasItemSpecificSize:function(){var e=this._currentArrangement.canItemResize;return e.vertically||e.horizontally},shouldRearrangeWhenItemSizeChanged:function(){return this._currentArrangement&&this._currentArrangement.shouldRearrangeWhenItemSizeChanged},resetLayout:function(){this._dataItemsController.detach(),this._shouldRefreshLayout.setTrue()},refreshLayout:function(){var e=this._currentArrangement;if(e){var t=this._shouldRefreshLayout,n=this.isInitialized;(n.isFalse()||t.isTrue())&&(t.isTrue()&&this.remove(),this._startInitializingLayoutCallback(),e.startLayout(this),this._finishInitializingLayoutCallback(),n.setTrue(),t.setFalse())}},getLastArrangementOptions:function(){return this._lastArrangementInformation},getLastArrangementOptionsDevice:function(){return this._lastArrangementInformationDevice},getLastArrangementOptionsByCurrentDevice:function(){return this._lastArrangementInformationDevice[Ta.Flags.IsActivated.isTrue()?"mobile":"pc"]},getLastArrangementInstanceSizeByDevice:function(){var e=this.getLastArrangementOptionsByCurrentDevice();return e&&e.contentSize?e.contentSize:null},remove:function(){var e=this.isInitialized;e.isTrue()&&(this._prevArrangement?(this._prevArrangement.removeLayout(this),this._prevArrangement=void 0):this._currentArrangement.removeLayout(this),e.setFalse())},reArrangeTheLayout:function(t){if(t=r.quickExtend({size:this._getContainerSize()},t),this._currentArrangement){var n=this;this._arrangingOperationQueue.executeOperation(function(e,i){var a=n.lastFetchedData;void 0===a||t.shouldFetch?n._currentArrangement.fetchItemsInformationToArrange(n,t,e,i):e(a)},function(i){e(n,i,t)},Ve.handleAjaxException)}},getSize:function(){var e=this._lastArrangementInformation;return e&&e.contentSize?e.contentSize:void 0},getMinSize:r.returnZeroSize,_setLastArrangementOptionsByDevice:function(e){e&&(Ta.Flags.IsActivated.isTrue()?this._lastArrangementInformationDevice.mobile=e:this._lastArrangementInformationDevice.pc=e)}});return n.create=function(e,t){return new n(e,t)},n}(),So=Do(function(){function e(){n.css("height",r.maxValue([.8*r.getWindowSize().height-250,60])),n.css("width",r.minValue([.8*r.getWindowSize().width,900]))}var t,n,i=0;this.getPrivacyPolicyHeight=function(){return ta.getCurrentPage().getFooterInstance()?0:So.getPrivacyPolicyActualHeight()},this.getPrivacyPolicyActualHeight=function(){return t?i?i:function(){return i=t.height()}():0},this.initialize=function(){var i=$i.getValue("privacyPolicyActive");if(i){var a=b.createEventListener([r.getWindowSizeEvent()],function(){e(),It.hasOpenedDialogs()&&(It.close(l),It.open(l,{showingAnimationFunction:function(){this.show(),a.activate()},hidingAnimation:function(){this.hide(),a.deactivate()}}))}),o=$i.getValue("privacyPolicy");t=r('
{0}
'.format("PrivacyPolicy"));var s=new v;s.append('
'),s.append('
{0}
'.format("PrivacyPolicy")),s.append('
'),s.append('
'),s.append("
"),s.append("
"),s.append('"),s.append("
");var l=r(""+s);r(".dialog-text",l).html(o);var c=r(".privacy-policy-dialog-button",l);n=r(".privacy-policy-dialog-content",l),c.makeSimpleButton().buttonClick(function(){var e=It.getDialogOverlay(l);It.close(l),e.removeClass("popup-overlay")}),t.makeSimpleButton().buttonClick(function(){e(),It.open(l,{showingAnimationFunction:function(){this.show(),a.activate()},hidingAnimation:function(){this.hide(),a.deactivate()}});var t=It.getDialogOverlay(l);t.css({backgroundColor:"black",opacity:.8})}),b.bind([ta.Events.AfterPageChanged],function(){ta.getCurrentPage().getFooterInstance()&&ta.getCurrentPage().getFooterInstance().isInstanceVisible()?ta.getCurrentPage().getFooterInstance().$element.append(t):r("body").append(t)})}}}),Po=Do(function(){var e={Panel:{group:"message-dialog-templates",name:"panel-template"}};this.open=function(t){t=r.quickExtend({title:"",message:"",buttonText:"Close"},t);var n=r.useTemplate(e.Panel);r(".message-dialog-title",n).text(t.title),r(".message-dialog-content",n).text(t.message),r(".message-dialog-close",n).text(t.buttonText),n.on("click",function(){n.remove()}),n.appendTo(document.body)}}),wo=Do(function(){function e(e,t){e=r.Color(e),t||(e[3]=1);for(var n=Br.calculateAdjustBrightnessSign(e,.08),i=[],a=[],o=0;3>=o;o++){var s=0===o?e:gn.adjustBrightness(e,function(e){return e+n*(.02*o)}),l=gn.adjustBrightness(e,function(e){return e+n*(.02*o+.02)});i.push(s.toCSS()),a.push(l.toCSS())}return{backgroundColors:i,backgroundHoverColors:a}}function t(e,t){e&&(t?e.setTrue("slide-navigation"):setTimeout(function(){e.setFalse("slide-navigation")},0))}var n={Panel:{group:"slide-navigation-panel-templates",name:"slide-navigation-panel-template",isSimple:!0},PageItem:{group:"slide-navigation-panel-templates",name:"page-item-template",isSimple:!0}};this.Default=Wt.createDeferredPanel(function(){return Wt.createPanel(wo)}),this.create=function(){function i(){h.css("top",g.height()+40)}function a(e){var t={};return t[s]=e,t}function o(e,t){var n=e.backgroundColors,i=e.backgroundHoverColors,r=t/2;I.rule(".page-item .title-container",{paddingTop:r,paddingBottom:r}),I.rule(".hierarchy-level-0 > .hierarchy-item-content > .hierarchy-item-container .page-item",a(n[0])),I.rule(".hierarchy-level-0 > .hierarchy-item-content > .hierarchy-item-container .page-item:hover",a(i[0]));for(var o=1;3>=o;o++)I.rule(".hierarchy-level-{0} > .hierarchy-item-content > .hierarchy-item-container .page-item".format(o),a(n[o])),I.rule(".hierarchy-level-{0} > .hierarchy-item-content > .hierarchy-item-container .page-item:hover".format(o),a(i[o]))}var s="rgbaBackground",l=Wt.createBaseController(),c=[],u=r.useTemplate(n.Panel),d=r(".close-icon-content",u),g=r(".pages-list",u),f=r(".header",u),h=r(".footer",u);u.on("mouseenter",function(){t(l.currentActivationArgs.mouseEnteredFlag,!0)}).on("mouseleave",function(){t(l.currentActivationArgs.mouseEnteredFlag,!1)}),d.click(function(){l.requestDeactivation()});var p=fn.create(g,{scrollbarClass:"slide-scrollbar"});p.setMoveScrolling({enableHorizontalScrolling:!1});var m=kt.create(),v=g.makeItemsList({idFunction:r.defaultIdFunction,itemCreationFunction:function(e,t){var a=r.useTemplate(n.PageItem,e),o=l.currentActivationArgs,s=o.customClickCallback,c=r(".open-icon",a);c.click(function(){var e=t.$wrapper.find(">.hierarchy-item-content >.hierarchy-children-container");e.slideDown({duration:200,progress:i,always:function(){e.css("display",""),t.$wrapper.addClass("open"),i()}})});var u=r(".close-icon",a);if(u.click(function(){var e=t.$wrapper.find(">.hierarchy-item-content >.hierarchy-children-container");e.slideUp({duration:200,progress:i,always:function(){e.css("display",""),t.$wrapper.removeClass("open"),i()}})}),t.data.$pageTitle=a.find(".page-title"),!o.disableLink){var d=r(".title-container",a);if(s)d.on("click",function(){setTimeout(function(){l.requestDeactivation()},0),s(e.id)});else{var g=r("");g.addClass("internal-link"),g.click(function(){setTimeout(function(){l.requestDeactivation(!0)},0)}),g.attr("href",Zi.getPageFullHtmlUrl(e.id)),d.wrap(g),t.data.$lingWrapper=d.parent()}}return a},itemUpdatedCallback:function(e,t){if(t){var n=e.item;e.data.$pageTitle.text(n.title),e.data.$lingWrapper&&e.data.$lingWrapper.attr("href",Zi.getPageFullHtmlUrl(n.id))}}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}}).addLayoutSupport(!0);v.layoutRecalculated.bind(i),l.associateScrollingView(p),l.associateItemsList(v);var y,b,C,I=Br.createCssRules("slide-navigation-panel"),S={};return r.quickExtend(l,{$element:u,visualizers:c,defaultActivationArgs:{maxSize:{width:2e3}},onActivated:function(t){var n=Na.evaluateFontBinding(t.font),a=Ta.Flags.IsInMobileContext.isTrue();if(y!==t.instanceId||a!==C||!r.defaultEqualityComparer(t.maxSize,S.maxSize)){var l=t.direction,c="up"===l||"down"===l,d=t.fontSize,g=t.spacing,p=e(Ma.evaluateColorBinding(t.backgroundColor),!t.pushContent);o(p,g);var I=p.backgroundColors[0];if(f.css(s,I),h.css(s,I),u.toggleClass("vertical",c),c?u.css({width:"",height:Math.min(t.height,t.maxSize.height)}):u.css({width:Math.min(t.width,t.maxSize.width),height:""}),u.css({color:Ma.evaluateColorBinding(t.fontColor,!0),fontSize:"{0}px".format(d),fontFamily:null!==n?n:""}),S.useHierarchy!==t.useHierarchy||S.pages!==t.pages||S.pagesHierarchy!==t.pagesHierarchy||S.disableLink||t.disableLink){if(v.releaseBoundCollection(),v.clear(),v.setLayout(void 0),b&&(b.release(),b=void 0),xe.isObservableCollection(t.pages)?(b=zt.create(t.pages),v.setItems(b)):v.setItems(t.pages),t.useHierarchy)m.setHierarchyCollection(t.pagesHierarchy);else{var P=new Ft({ids:r.getKeys(v.getDataItems())});m.setHierarchyCollection(P)}v.setLayout(m)}t.useHierarchy&&t.hierarchyOpened&&r.eachEntry(v.items,function(e,t){t.$wrapper.addClass("open")})}b&&b.unPostponeUpdates(),hn.onFontLoaded(n,{successCallback:function(){i()},timeout:15e3}),S=t,y=t.instanceId,C=a},onDeactivated:function(){b&&b.postponeUpdates(),r.eachEntry(v.items,function(e,t){t.$wrapper.removeClass("open")}),t(l.currentActivationArgs.mouseEnteredFlag,!1)}}),l}}),Eo=Do(function(){var e,t=this;this.isVisible=k.createConditionalPositive(),this.initialize=function(){var n=X.IsSitePreview,i=!ra.isPremium()&&!X.IsTemplate||n,a=!1;if(X.IsTemplate||X.DisableBanner||(a=Ha.getFreemiumBannerLimitation()),i=!!a,t.isVisible.setValue(i),i){var o=a.iframeUrl,s=parseInt(a.iframeHeight);e=r('').attr("src",r.combinePaths(o,""+ra.getSiteID())).css("height",s).css("z-index",1e5).appendTo("body")}t.isVisible.valueChangedEvent.bindAndExecute(function(){var e=t.isVisible.getValue();r("body").css("padding-bottom",e?s:"")})},this.getFooterHeight=function(){return t.isVisible.isTrue()?e.getOuterSize().height:0}});r.setTemplates({"text-input-field-element-template":'
',"text-area-element-template":'
',"paypal-button-template":'
'}),r.setTemplatesGroups({"loading-animations":{element:'
'},"element-overlay":{element:'
'},"slideshow-carousel-templates":{"slideshow-carousel-template":'',"slideshow-carousel-item-template":''},"thumbs-carousel-templates":{"thumbs-carousel-template":'
    ',"thumb-template":'
  • '},"rows-manager-templates":{"row-decorator-template":'
    ',"column-decorator-template":'
    '},"mobile-version-view-manager-templates":{"cell-resizing-handle-template":'
    '},"resume-built-by-section-element-templates":{"resume-built-by-section-element-template":'
    Built Using
    '},"rich-content-video":{"content-element":'
    ',"video-iframe":''},"slide-navigation-panel-2-templates":{"slide-navigation-panel-2-template":'
    Back
    ',"page-item-template":'
    ${title}
    '},"drop-down-navigation-desktop-panel-templates":{"drop-down-navigation-desktop-panel-template":'',"page-item-template":'
    ${title}
    ',"page-item-instance-template":'
    '},"drop-down-navigation-desktop-panel-2-templates":{"drop-down-navigation-desktop-panel-2-template":'',"page-item-template":'
    ${title}
    '},"drop-down-navigation-desktop-panel-4-templates":{"drop-down-navigation-desktop-panel-4-template":'',"page-item-template":'
    ${title}
    '},"slide-navigation-panel-3-templates":{"slide-navigation-panel-3-template":'
    ',"page-item-template":'
    ${title}
    '},"carousel-thumbs-templates":{"image-thumb-template":'
    '},"slideshow-carousel-items-templates":{"image-item-template":'

    /
    ',"video-item-template":'

    /
    ',"video-iframe-template":''},"iframe-content-templates":{"iframe-content-template":'
    '},"base-page-content-element-templates":{"base-page-content-element-template":'
    '},"side-bar-page-content-element-templates":{"side-bar-page-content-element-template":''},"page-element-templates":{"page-element-template":'
    '},"video-player-templates":{"video-player-template":'
    ',"video-iframe-element-template":''},"default-popup-templates":{"popup-overlay-template":'',"popup-carousel-image-item-template":'',"popup-carousel-video-item-template":''},"mobile-image-popup-templates":{"popup-overlay-template":'',"popup-carousel-image-item-template":'
    ',"popup-carousel-video-item-template":'
    ',"popup-thumb-template":'
    Show more
    Show less
    '},"popup-1-templates":{"popup-overlay-template":'', "popup-carousel-image-item-template":'
    ',"popup-carousel-video-item-template":'
    '},"popup-2-templates":{"popup-overlay-template":'',"popup-carousel-image-item-template":'
    ',"popup-carousel-video-item-template":'
    ',"popup-thumb-item-template":'
    '},"popup-3-templates":{"popup-overlay-template":'',"popup-carousel-image-item-template":'',"popup-carousel-video-item-template":''},"popup-4-templates":{"popup-overlay-template":'',"popup-carousel-image-item-template":'

    ',"popup-carousel-video-item-template":'

    '},"message-dialog-templates":{"panel-template":'
    '},"slide-navigation-panel-templates":{"slide-navigation-panel-template":'
    ',"page-item-template":'
    ${title}
    '}}),window._wz_=r.quickExtend(window._wz_||{},{$:r,jQuery:o,PollingUtils:s,DefaultTimeouts:l,ScriptLoadingUtils:c,PrototypeUtils:u,LazyPropertyPrototype:d,Class:g,Initializer:f,EnumMetadata:h,ByRef:p,DeferredObject:m,StringBuilder:v,SimpleEventBinding:y,SimpleEvent:b,Dictionary:C,ObservableDictionary:I,FlagsObserverStates:S,ConditionalFlagsTypes:P,AbstractObservableFlag:w,BasicObservableFlag:E,ConditionalObservableFlag:T,FlagsObserver:x,ObservableFlag:k,EqualityComparers:F,ObservableObject:D,Exceptions:A,Exception:V,raygunFactory:B,raygunJsUrlFactory:L,ErrorHandler:M,ErrorReportType:O,ErrorHandlerActivator:z,Modernizr:_,OperationsQueue:N,LoadingAnimationsOverlayLayer:R,LoadingAnimations:H,ElementOverlayLayers:q,ElementOverlay:U,Global:W,console:j,PageData:X,CompiledComponents:Y,AssetsStorageServers:Q,AssetsCategories:K,AssetsTypes:Z,AssetsManager:J,Logger:ee,JSONPController:te,AppProfiler:ne,OperationsManager:ie,Viewer:ae,CallbacksHandler:re,StateBindingFlag:oe,StateBindingsGroup:se,StateBinding:le,BindingManager:ce,RequestAnimationDom:ue,ScrollingMeasureDistanceType:de,ScrollingTracker:ge,ContextValue:fe,UserInteractionMode:he,UserInteraction:pe,Scope:me,swfobject:ve,YoutubeHelper:ye,VimeoPlayerStates:be,VimeoHelper:Ce,GoogleMapTypes:Ie,GoogleMapHelper:Se,OperationsBatch:Pe,OperationsHandler:we,Browser:Ee,BrowserVersion:Te,CollectionUtils:xe,ArrayUtils:ke,FilterUtils:Fe,ListUtils:De,MathUtils:Ae,ExceptionUtils:Ve,DictionaryUtils:Be,EffectAnimationDirections:Le,PrimitiveValues:Me,TextTransform:Oe,CollectionConstraint:ze,MobileViewPortWidth:_e,RelativePositions:Ne,RoutingDestination:Re,TemplateItemInstanceIdSeperator:He,CSSUnits:qe,ButtonTypes:Ue,VideoTypes:$e,HtmlTags:We,TextTypes:je,LinkTypes:Ge,TextDirection:Xe,VerticalAlignment:Ye,ElementDisplay:Qe,HorizontalAlignment:Ke,CssVerticalAlignment:Ze,CssHorizontalAlignment:Je,Orientation:et,HorizontalDocking:tt,VerticalDocking:nt,Side:it,ColorSpace:at,ColorSpaceComponent:rt,Speed:ot,FlagsStates:st,StatesTypes:lt,PresetAssetsCategories:ct,KeyCodes:ut,ScrollingMode:dt,ScrollingController:gt,OldEffects:ft,SlideEffect:ht,Animations:pt,StatesGroups:mt,QuickStates:vt,ToggleButtonStates:yt,LayoutHelper:bt,ImagesLoader:Ct,Dialog:It,ItemsListFilteringBehaviour:St,ItemsListItem:Pt,ItemsList:wt,OrderingType:Et,ItemsListLayout:Tt,ItemsListHierarchyLayoutHelpers:xt,ItemsListHierarchyLayout:kt,RemoteCollection:e,HierarchyCollection:Ft,SortingOrder:Dt,DateUtils:At,DateFormats:Vt,DateSeparators:Bt,DateRangeFormats:Lt,ObservableCollection:Mt,VersionController:Ot,CollectionObserver:zt,ColorCoordinate:_t,CanvasLayouts:Nt,Canvas:Rt,LogoHelper:Ht,SvgHelper:qt,SvgUtils:Ut,SvgController:$t,PanelsManager:Wt,DeferredPanel:jt,InnerPanelController:Gt,PanelController:Xt,DropPanelDefaultOptions:Yt,Base64:Qt,PoolingController:Kt,DynamicFonts:Zt,ImageBoxLayout:Jt,ImageBoxState:en,PendingImage:tn,ImageBoxUtil:nn,DraggingBehaviourAxis:an,DraggingTrigger:rn,InteractiveBehaviour:on,DraggingBehaviours:sn,TransitionOrder:ln,RemoteSettings:cn,StyleListener:un,IconLocation:dn,ColorsHelper:gn,ScrollingView:fn,FontDetect:hn,AjaxNavigationMode:pn,AjaxNavigation:mn,MouseTargetTracker:vn,LayoutRowItem:yn,RowItemObj:bn,LayoutCellItem:Cn,CellItemObj:In,BatchOperationsSet:Sn,OperationsBarrier:Pn,ReadWriteController:wn,SlideShow:En,SlideShowUtils:Tn,SlideShowCarousel:xn,ThumbsCarousel:kn,PopUpUtil:Fn,AnimatedObject:Dn,Effects:An,Effect:Vn,SequentialEffect:Bn,ScrollableEffect:Ln,DialogMode:zn,DocumentSizeUnits:_n,DocumentMargins:Mn,DocumentSize:On,Donut:Nn,MessageListener:Rn,ScriptLoader:Hn,ListsService:qn,ViewersService:Un,ExtensionUtils:$n,ElementInstance:Wn,ElementsRenderer:jn,ElementType:Gn,ElementsModel:Xn,ElementsTypes:Yn,Features:Qn,TypesArray:Kn,PropertiesArray:Zn,PropertiesCategories:Jn,PropertiesTypes:ei,MenuItemTypes:ti,ElementsModelCompiled:ni,DataSourcesManager:ii,DataSources:ai,DataSourcesDefinitions:ri,DataSourceItemsFields:oi,BaseDataSource:si,DynamicPageDataSource:li,DataSourceItemsData:ci,SocialIconsSetCollection:ui,HttpMethod:di,WebService:gi,WebServiceTest:fi,WebServiceTests:hi,WebServiceParameterType:pi,WebServiceParameter:mi,RemoteDataSource:vi,SimpleWebServiceTests:yi,TriggerType:bi,BehavioursManager:Ci,Behaviours:Ii,TriggersManager:Si,Triggers:Pi,ElementStatesManager:wi,ElementStates:Ei,SmartDataService:Ti,PropertiesHelper:xi,StructureProcessorHelper:ki,PostMessageHelper:Fi,EditorManager:Di,PayPalButtonManager:Ai,FontsManager:Vi,AccountsManager:Bi,InstancePoolingManager:Li,StatesGroupsManager:Mi,RowsLayoutController:Oi,DataLayoutsManager:zi,DataLayouts:_i,DataLayoutsCategories:Ni,caclulateFixedSize:t,DataArrangements:Ri,ViewManager:Hi,ElementActivationManager:qi,OrderManager:Ui,SiteSettingsManager:$i,BackgroundLayers:Wi,ElementsManager:ji,$instance:n,LayoutManager:Gi,ElementsLayoutHelper:Xi,ElementsStructureHelper:Yi,DevicesNames:Qi,PropertiesManager:Ki,UrlManager:Zi,ConnectionManager:Ji,LoadingRequirementsManager:ea,PageManager:ta,PopUpManager2:na,PositionManager:ia,ElementsUtil:aa,SiteManager:ra,EcommerceManager:oa,MasterPagesManager:sa,CompatibilityManager:la,ListsCompatibilityManager:ca,PropertiesValuesConverters:ua,oldToNewTypes:da,StructureLoadingManager:fa,StructurePropertyLoadingMap:ha,SiteViewportManager:pa,DataListHelper:ma,BaseSectionsComparer:va,SeperateToColumnsAlgo:ya,SeperateToEqualColumnsAlgo:ba,SeperateToSectionsByTopItemsAlgo:Ca,OrderableElement:Ia,ViewPortOrderingManager:Sa,RowOfColumns:Pa,ColumnCell:wa,RowsManager:Ea,MobileVersionViewManager:Ta,HierarchyController:xa,TextStyleProperties:ka,NamedTextStyles:Fa,InlineTextStylesContentTypes:Da,InlineTextStylesEnum:Aa,InlineTextStylesTypes:Va,TextStyleManager:Ba,PaletteVariation:La,ThemeColorsManager:Ma,ApiManager:Oa,AppsManager:za,IframeManager:_a,ThemeFontsManager:Na,RichContentProcessor:Ra,LimitationsManager:Ha,SkinsBindingsTypes:qa,SkinsBindingsTypesNames:Ua,SkinsBindingsDevices:$a,SkinsManager:Wa,DefaultSkinsTypes:ja,StylesManager:Ga,StyleController:Xa,SkinEditingManager:Ya,SkinFieldsVisualizers:Qa,SkinFieldsTypes:Ka,SkinDefaultCategories:Za,ContentPushingManager:Ja,ListsCacheManager:er,DefaultsListNames:tr,ListsDefinitions:nr,ListContentTypes:ir,ListsIcons:ar,ListsManager:rr,FontIconsManager:or,SocialLinksManager:sr,NavigationManager:lr,SectionsManager:cr,RenderingCoordinator:ur,PresetAssetsManager:gr,StructureLoadManager:fr,SvgVersionsManager:hr,PageContentLayouts:pr,PageContentLayoutManager:mr,ElementsDuplicationHelper:vr,HtmlElementsScripts:yr,HtmlElementsManager:br,StoreManager:Cr,HtmlElement:Ir,ListController:Sr,ListQueryBuilder:Pr,ListQueryExecutor:wr,CKObjectLayout:Er,CKObjectType:Tr,CKObject:xr,StoreDefinition:kr,DefaultUrlHandler:Fr,ListsUrlHandler:Dr,PageNotFoundUrlHandler:Ar,UrlHandlersInitializer:Vr,NavigationUtils:Br,CommonSlideNavigation:Lr,SlideNavigationPanel2:Mr,CommonDropDownNavigation:Or,DropDownNavigationDesktopPanel:zr,DropDownNavigationDesktopPanel2:_r,DropDownNavigationDesktopPanel4:Nr,SlideNavigationPanel3:Rr,PercentageWidget:Hr,CommonPercentageWidget:qr,PercentageManager:Ur,StructureConditionsHelper:$r,IteratorContext:Wr,StructureIterator:jr,StructureCondition:Gr,StructureTransform:Xr,StructureManagerContext:Yr,StructureManager:Qr,StructureIteratorHelper:Kr,StructureScriptManager:Zr,SlideshowThumbsFactory:Jr,SlideShowCarouselItemsFactory:eo,SlideShowCarouselRenderers:to,ObservablePropertyBinding:no,CommonAssets:io,PropertiesBindingTypes:ao,NavigationDuringTransitionBehaviour:ro,BackgroundType:oo,DefaultInlineTextStyles:so,PageLayoutPart:lo,PageContentLayout:co,JMMLElementTypes:uo,getJMMLElementType:i,TagCloudTypes:go,PostListTypesEnum:fo,ButtonsGroupTypes:ho,ExternalAppElementBuilder:po,ButtonActions:mo,InstanceController:vo,InstanceControllerManager:yo,TemplateCreator:bo,DataItemsController:Co,DataLayoutController:Io,PrivacyPolicyBar:So,MessageDialog:Po,SlideNavigationPanel:wo,FreemiumBanners:Eo}),window.Viewer=ae,r.noConflict(!0);function To(){}function xo(){return!0}function ko(){return!1}function Fo(){return null}function Do(e,t,n,i){var a={};return e.call(a,t,n,i),a}Y.ElementsModel={types:{66:{d:[1,2,43,4,18,19,20,9,11,10,7,12,24,17,6,14,16,21,25,29,66],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,85,86,87,88,89,61,55,56,57,58,59,60,43,93,81,82,83,84,42,64,65,66,68,69,70,71,72,73,74,75,76,77,78,79,80,94,95,96,97,102,132,133,134],c:"user-selectable-element clickable-element has-text label-element",cp:["horizontalDocking","verticalDocking","calculatedFontFamily","calculatedFontSize","calculatedTextColor","lineColor"]},67:{d:[1,67],p:[0,1,2,3,4,5,6,7,8,9,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156],c:"coordinator-element"},68:{d:[1,68],p:[0,1,2,3,4,5,6,7,8,9],c:""},69:{d:[1,2,43,4,9,11,10,7,12,24,17,25,6,29,14,18,35,21,19,20,55,16,69],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:69},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,{i:61,d:69},55,56,57,58,59,60,43,93,81,82,83,84,94,95,96,97,42,102,64,{i:65,d:69},66,85,86,87,88,89,68,{i:69,d:69},70,71,72,{i:73,d:69},74,75,76,77,78,79,80,157,158],c:"has-rich-content user-selectable-element clickable-element has-rich-content has-text",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"]},70:{d:[1,2,43,4,9,11,10,7,12,24,17,25,6,14,18,35,21,19,20,55,54,70],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,93,81,82,83,84,94,95,96,97,42,64,65,66,85,86,87,88,89,116,159],c:"has-rich-content user-selectable-element clickable-element has-rich-content rich-content-element",cp:["horizontalDocking","verticalDocking","lineColor"]},71:{d:[1,2,43,4,9,11,10,7,12,24,17,25,6,29,14,18,35,21,19,20,55,16,69,71],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:69},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,{i:61,d:69},55,56,57,58,59,60,43,93,81,82,83,84,94,95,96,97,42,102,64,{i:65,d:69},66,85,86,87,88,89,68,{i:69,d:69},70,71,72,{i:73,d:69},74,75,76,77,78,79,80,157,158,160,161,162],c:"has-rich-content user-selectable-element clickable-element has-rich-content has-text",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],i:[43,4,9,11,10,7,12,24,17,25,6,29,14,18,35,21,19,20,55,16,69]},72:{d:[1,2,43,4,9,11,10,7,12,24,17,25,6,29,14,18,35,21,19,20,55,16,69,72],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:69},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,{i:61,d:69},55,56,57,58,59,60,43,93,81,82,83,84,94,95,96,97,42,102,64,{i:65,d:69},66,85,86,87,88,89,68,{i:69,d:69},70,71,72,{i:73,d:69},74,75,76,77,78,79,80,157,158,163,164,165,166],c:"has-rich-content user-selectable-element clickable-element has-rich-content has-text",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],i:[43,4,9,11,10,7,12,24,17,25,6,29,14,18,35,21,19,20,55,16,69]},73:{d:[1,2,18,14,9,22,23,39,11,10,7,12,73],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:73},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,64,65,66,90,91,92,{i:105,d:73},{i:61,d:73},55,56,57,58,59,60,43,167,168,169],c:"",cp:["pageTitle"]},74:{d:[1,2,43,4,18,9,11,17,6,19,20,24,25,29,14,74],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,61,81,82,83,84,42,85,86,87,88,89,93,94,95,96,97,102,64,65,66,170,171,172],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},75:{d:[1,2,43,4,6,14,18,29,9,17,24,26,19,20,75],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,42,64,65,66,102,81,82,83,84,93,98,99,100,85,86,87,88,89,173],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking"]},76:{d:[1,2,43,4,9,17,24,26,11,19,20,14,18,35,36,76],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,81,82,83,84,93,98,99,100,61,85,86,87,88,89,64,65,66],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},77:{d:[1,2,43,4,29,9,17,24,26,11,19,20,14,18,35,36,77],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,102,81,82,83,84,93,98,99,100,61,85,86,87,88,89,64,65,66,174],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},78:{d:[1,2,43,4,18,9,11,10,7,12,17,19,20,24,25,29,78],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,85,86,87,88,89,93,94,95,96,97,102],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},79:{d:[1,2,43,4,29,9,17,24,26,11,19,20,14,18,35,36,79],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,102,81,82,83,84,93,98,99,100,61,85,86,87,88,89,64,65,66,175,176],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},80:{d:[1,2,43,4,29,9,17,24,26,11,19,20,14,18,35,36,80],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,102,81,82,83,84,93,98,99,100,61,85,86,87,88,89,64,65,66,177,178],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},81:{d:[1,2,43,4,29,9,17,24,26,11,19,20,14,18,35,36,81],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,102,81,82,83,84,93,98,99,100,61,85,86,87,88,89,64,65,66,179,180],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},82:{d:[1,2,43,4,29,9,17,24,26,11,19,20,14,18,35,36,82],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,102,81,82,83,84,93,98,99,100,61,85,86,87,88,89,64,65,66,181,182],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},83:{d:[1,2,43,4,29,9,17,24,26,11,19,20,14,18,35,36,83],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,102,81,82,83,84,93,98,99,100,61,85,86,87,88,89,64,65,66,183,184,185,186],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},84:{d:[1,2,43,4,29,9,17,24,26,11,19,20,14,18,35,36,84],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,102,81,82,83,84,93,98,99,100,61,85,86,87,88,89,64,65,66,187,188,189,190,191,192,193],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},85:{d:[1,2,18,9,29,11,19,20,24,4,17,14,21,37,85],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,102,61,85,86,87,88,89,93,{i:37,d:4},38,39,81,82,83,84,64,65,66,103,194,195],c:"user-selectable-element clickable-element svg-shape-element",cp:["horizontalDocking","verticalDocking","svgFontFamily","svgText","svgTextDirection"]},86:{d:[1,2,18,9,29,11,19,20,24,4,14,21,37,86],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,102,61,85,86,87,88,89,93,{i:37,d:4},38,39,64,65,66,103,196],c:"user-selectable-element clickable-element svg-shape-element",cp:["svgFontFamily","svgText","svgTextDirection"]},87:{d:[1,2,4,9,19,20,17,22,23,24,87],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,85,86,87,88,89,81,82,83,84,90,91,92,93],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking"]},88:{d:[1,2,22,23,43,4,18,9,11,10,7,12,17,33,24,25,63,19,20,60,61,88],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,110,111,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,130,131,85,86,87,88,89,124,{i:125,d:61},126,{i:127,d:88},128,129,197,198,199,200,201,202],c:"user-selectable-element clickable-element has-popup jmml-element",cp:["horizontalDocking","verticalDocking","lineColor"]},89:{d:[1,2,31,22,23,3,51,4,18,9,17,19,20,24,6,14,89],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,{i:115,d:89},{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element user-selectable-element clickable-element skin-input-element",cp:["horizontalDocking","verticalDocking"]},90:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,49,90],p:[{i:0,d:90},1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:90},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,{i:63,d:90},40,{i:41,d:90},90,91,92,42,64,65,66,67,101],c:"menu-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},91:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,49,58,91],p:[{i:0,d:91},1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:58},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,{i:62,d:58},{i:63,d:58},40,{i:41,d:58},90,91,92,42,64,65,66,67,101,121,122,123,203],c:"menu-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},92:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,49,58,92],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:92},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,{i:62,d:58},{i:63,d:58},40,{i:41,d:58},90,91,92,42,64,65,66,67,101,121,122,123,204,205],c:"sections-menu-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},93:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,49,93],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,{i:62,d:93},{i:63,d:93},{i:40,d:93},41,90,91,92,42,64,65,66,67,101,206],c:"tag-cloud-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},94:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,49,93,94],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,{i:62,d:93},{i:63,d:93},{i:40,d:93},41,90,91,92,42,64,65,66,67,101,206],c:"tag-cloud-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,49,93]},95:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,8,38,95],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,{i:63,d:38},{i:40,d:95},41,90,91,92,42,64,65,66,67,101,44,45,46,47,48,49,50,51,52,53,54,104,207],c:"posts-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},96:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,19,20,60,8,38,96],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,{i:63,d:38},40,{i:41,d:96},90,91,92,42,64,65,66,67,101,85,86,87,88,89,124,125,126,44,45,46,47,48,49,50,51,52,53,54,104],c:"user-selectable-element clickable-element has-popup data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},97:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,8,38,19,20,60,97],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,{i:63,d:38},40,{i:41,d:97},90,91,92,42,64,65,66,67,101,44,45,46,47,48,49,50,51,52,53,54,104,85,86,87,88,89,124,125,126],c:"user-selectable-element clickable-element has-popup gallery-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},98:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,98],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,63,{i:40,d:98},{i:41,d:98},90,91,92,42,64,65,66,67,101],c:"social-icons-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},99:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,99],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,63,{i:40,d:99},{i:41,d:99},90,91,92,42,64,65,66,67,101],c:"social-sharing-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},100:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,100],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,63,{i:40,d:100},{i:41,d:100},90,91,92,42,64,65,66,67,101],c:"social-links-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},101:{d:[1,2,43,18,9,11,6,10,7,12,14,19,20,16,24,17,25,30,31,32,33,101],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:101},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,61,{i:42,d:101},55,56,57,58,59,60,43,64,{i:65,d:101},66,85,86,87,88,89,68,{i:69,d:101},70,71,72,{i:73,d:101},74,75,76,77,78,79,80,93,81,82,83,84,94,95,96,97],c:"user-selectable-element clickable-element has-text TextInputField",cp:["calculatedFontFamily","calculatedFontSize","calculatedTextColor","horizontalDocking","verticalDocking","lineColor"]},102:{d:[1,2,43,6,14,18,9,19,20,11,10,7,12,16,24,17,25,30,31,32,33,102],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:102},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{ i:42,d:102},64,{i:65,d:102},66,85,86,87,88,89,61,55,56,57,58,59,60,43,68,{i:69,d:102},70,71,72,{i:73,d:102},74,75,76,77,78,79,80,93,81,82,83,84,94,95,96,97],c:"user-selectable-element clickable-element has-text",cp:["calculatedFontFamily","calculatedFontSize","calculatedTextColor","horizontalDocking","verticalDocking","lineColor"]},103:{d:[1,2,6,14,18,9,11,10,7,12,17,22,23,19,20,24,25,41,103],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,42,64,65,66,{i:61,d:103},55,56,57,58,59,60,43,81,82,83,84,90,91,92,85,86,87,88,89,93,94,95,96,97],c:"user-selectable-element clickable-element data-list-item template-box",cp:["horizontalDocking","verticalDocking","lineColor"]},104:{d:[1,2,4,6,14,18,24,19,20,9,17,21,25,104],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,42,64,65,66,93,85,86,87,88,89,81,82,83,84,94,95,96,97,208,209,210,211,212,213,214,215,216,217,218],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},105:{d:[1,2,43,4,6,18,9,11,10,7,12,17,22,23,39,19,20,24,25,29,105],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,42,61,55,56,57,58,59,60,43,81,82,83,84,90,91,92,105,85,86,87,88,89,93,94,95,96,97,102],c:"user-selectable-element clickable-element userBox",cp:["horizontalDocking","verticalDocking","lineColor"]},106:{d:[1,2,4,14,18,9,10,7,12,17,24,25,30,27,19,20,60,106],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:106},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,64,65,66,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,85,86,87,88,89,{i:124,d:106},125,126,219,220,221,222,223,224,225],c:"user-selectable-element clickable-element has-popup video-player",cp:["horizontalDocking","verticalDocking","lineColor"]},107:{d:[1,2,43,4,18,9,24,11,17,19,20,60,10,25,29,7,107],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:107},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,93,{i:61,d:107},81,82,83,84,85,86,87,88,89,{i:124,d:107},125,126,{i:55,d:107},56,57,58,59,60,{i:94,d:107},95,{i:96,d:107},97,102,43,226,227,228],c:"user-selectable-element clickable-element has-popup image-element",cp:["horizontalDocking","verticalDocking","lineColor"]},108:{d:[1,2,43,4,6,14,18,9,17,22,23,39,19,20,24,25,8,108],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,42,64,65,66,81,82,83,84,90,91,92,105,85,86,87,88,89,93,94,95,96,97,44,45,46,47,48,49,50,51,52,53,54],c:"user-selectable-element clickable-element switch-panel-element",cp:["horizontalDocking","verticalDocking","lineColor","backgroundColor","backgroundOverlay","imageUrl","imageLayout","imagePosition","padding","roundness","borderWidth","borderStyle","borderColor","shadow","innerShadow","glow","innerGlow","childrenAnchor"]},109:{d:[1,2,43,6,14,22,23,39,25,11,10,7,12,109],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,42,64,65,66,90,91,92,105,94,95,96,97,61,55,56,57,58,59,60,43],c:"tab-element",cp:["lineColor"]},110:{d:[1,2,43,6,14,18,9,11,19,20,10,7,12,17,24,25,4,22,23,39,110],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,42,64,65,66,61,85,86,87,88,89,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,{i:37,d:4},38,39,90,91,92,105,229],c:"user-selectable-element clickable-element button-element",cp:["horizontalDocking","verticalDocking","lineColor"]},111:{d:[1,2,4,18,9,11,10,7,12,17,19,20,24,25,29,6,14,30,111],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,85,86,87,88,89,93,94,95,96,97,102,42,64,65,66,230],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},112:{d:[1,2,18,9,11,10,7,12,17,19,20,24,25,29,6,14,30,4,112],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,61,55,56,57,58,59,60,43,81,82,83,84,85,86,87,88,89,93,94,95,96,97,102,42,64,65,66,{i:37,d:4},38,39,231,232],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},113:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,8,38,113],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,{i:63,d:38},40,{i:41,d:113},90,91,92,42,64,65,66,67,101,44,45,46,47,48,49,50,51,52,53,54,104],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},114:{d:[1,2,43,4,6,14,18,9,11,19,20,10,7,12,17,24,25,22,23,56,114],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,42,64,65,66,61,85,86,87,88,89,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,90,91,92,117,118],c:"user-selectable-element clickable-element paypalButton",cp:["horizontalDocking","verticalDocking","lineColor"]},115:{d:[1,2,43,6,14,18,9,11,19,20,10,7,12,4,17,24,25,22,23,39,57,115],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:115},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,42,64,65,66,{i:61,d:115},85,86,87,88,89,55,56,57,58,59,60,43,{i:37,d:4},38,39,81,82,83,84,93,94,95,96,97,90,91,92,105,119,120],c:"user-selectable-element clickable-element checkOutButton",cp:["horizontalDocking","verticalDocking","lineColor"]},116:{d:[1,2,43,4,18,9,11,10,7,12,17,33,24,25,63,13,5,22,23,6,14,3,15,27,28,64,116],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,130,131,62,63,40,41,90,91,92,42,64,65,66,67,101,233,234,235,236,237],c:"form-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize","isJoinMyMailingListEnabled"]},117:{d:[1,2,43,4,18,9,11,10,7,12,17,33,24,25,63,13,5,22,23,6,14,3,15,27,28,64,117],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,130,131,62,63,40,41,90,91,92,42,64,65,66,67,101],c:"password-form-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},118:{d:[1,2,18,9,11,10,7,12,17,24,4,25,13,5,22,23,6,14,3,15,27,28,118],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:118},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,61,55,56,57,58,59,60,43,81,82,83,84,93,{i:37,d:4},38,39,94,95,96,97,62,{i:63,d:118},40,{i:41,d:118},90,91,92,42,64,65,66,67,101,238,239],c:"buttons-group",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},119:{d:[1,2,43,6,18,9,11,10,7,12,17,22,23,39,42,25,119],p:[{i:0,d:119},1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:42},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,42,61,55,56,57,58,59,60,43,81,82,{i:83,d:42},84,90,91,92,{i:105,d:42},107,{i:108,d:119},109,94,95,96,97],c:"footer-element",cp:["horizontalDocking","verticalDocking","lineColor"]},120:{d:[1,2,43,6,18,9,11,10,7,12,17,22,23,39,42,25,120],p:[{i:0,d:120},1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:42},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,42,61,55,56,57,58,59,60,43,81,82,{i:83,d:42},84,90,91,92,{i:105,d:42},107,{i:108,d:120},109,94,95,96,97],c:"header-element",cp:["horizontalDocking","verticalDocking","lineColor"]},121:{d:[1,2,43,6,18,9,11,10,7,12,17,22,23,39,42,25,121],p:[{i:0,d:121},1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:121},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,42,{i:61,d:121},55,56,57,58,59,60,43,81,82,{i:83,d:42},84,90,91,92,{i:105,d:42},107,{i:108,d:121},109,94,95,96,97],c:"page-section-element",cp:["horizontalDocking","verticalDocking","lineColor"]},122:{d:[1,2,6,14,18,9,11,10,7,12,17,22,23,39,24,25,122],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:122},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,42,64,65,66,61,55,56,57,58,59,60,43,81,82,83,84,90,91,92,105,93,94,95,96,97,240,241],c:"page-content-element",cp:["horizontalDocking","verticalDocking","lineColor"]},123:{d:[1,2,43,40,33,4,18,9,11,10,7,12,22,23,19,20,14,6,24,25,123],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,106,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,90,91,92,85,86,87,88,89,64,65,66,42,93,94,95,96,97],c:"template-item user-selectable-element clickable-element skin-hierarchy-box",cp:["lineColor"]},124:{d:[1,2,22,23,3,51,41,4,18,9,17,19,20,24,6,14,52,31,124],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,{i:115,d:124},{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element data-list-item user-selectable-element clickable-element skin-input-element",cp:["horizontalDocking","verticalDocking"]},125:{d:[1,2,22,23,3,51,41,4,18,9,17,19,20,24,6,14,52,53,125],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,{i:115,d:125},{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element data-list-item user-selectable-element clickable-element skin-list-view-element",cp:["horizontalDocking","verticalDocking"]},126:{d:[1,2,5,22,23,3,51,4,18,9,17,19,20,24,14,126],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:40,d:126},{i:41,d:126},90,91,92,{i:115,d:126},{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,64,65,66,226,227,228,55,56,57,58,59,60],c:"skin-element user-selectable-element clickable-element skin-image-element",cp:["horizontalDocking","verticalDocking"],dd:[107,10],dp:[226,227,228,55,56,57,58,59,60]},127:{d:[1,2,43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,40,41,85,86,87,88,89,64,65,66,90,91,92,{i:115,d:127},{i:37,d:4},38,39,81,82,83,84,93,242,171,157],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element",cp:["horizontalDocking","verticalDocking"],dp:[171,157]},128:{d:[1,2,22,23,3,51,41,4,18,9,17,19,20,24,6,14,52,128],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,{i:115,d:128},{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element data-list-item user-selectable-element clickable-element skin-data-item-element",cp:["horizontalDocking","verticalDocking"]},129:{d:[1,2,22,23,3,51,41,4,18,9,17,19,20,24,6,14,52,129],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,{i:115,d:129},{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element data-list-item user-selectable-element clickable-element skin-gallery-element",cp:["horizontalDocking","verticalDocking"]},130:{d:[1,2,22,23,3,51,41,4,18,9,17,19,20,24,6,14,52,62,130],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,{i:115,d:130},{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element data-list-item user-selectable-element clickable-element skin-menu-button-element",cp:["horizontalDocking","verticalDocking"]},131:{d:[1,2,22,23,3,51,41,4,18,9,17,19,20,24,6,14,52,131],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,{i:115,d:131},{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element data-list-item user-selectable-element clickable-element skin-image-element",cp:["horizontalDocking","verticalDocking"]},132:{d:[1,2,22,23,3,51,41,4,18,9,17,19,20,24,6,14,52,132],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,{i:115,d:132},{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element data-list-item user-selectable-element clickable-element skin-social-icon-element",cp:["horizontalDocking","verticalDocking"]},133:{d:[1,2,22,23,3,51,41,4,18,9,17,19,20,24,6,14,52,53,62,133],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,115,{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element data-list-item user-selectable-element clickable-element skin-tag-button-element",cp:["horizontalDocking","verticalDocking"]},134:{d:[1,2,22,23,3,51,41,4,18,9,17,19,20,24,6,14,52,53,134],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,115,{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element data-list-item user-selectable-element clickable-element skin-item-tag-button-element",cp:["horizontalDocking","verticalDocking"]},135:{d:[1,2,22,23,3,51,41,4,18,9,17,19,20,24,6,14,52,53,62,135],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,{i:115,d:135},{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element data-list-item user-selectable-element clickable-element skin-list-category-button-element",cp:["horizontalDocking","verticalDocking"]},136:{d:[1,2,22,23,3,51,41,4,18,9,17,19,20,24,6,14,52,62,136],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,90,91,92,{i:115,d:136},{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,42,64,65,66],c:"skin-element data-list-item user-selectable-element clickable-element skin-section-button-element",cp:["horizontalDocking","verticalDocking"]},137:{d:[1,2,6,14,18,9,11,10,7,12,22,23,19,20,24,25,41,137],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,42,64,65,66,61,55,56,57,58,59,60,43,90,91,92,85,86,87,88,89,93,94,95,96,97],c:"user-selectable-element clickable-element data-list-item button-element",cp:["lineColor"]},138:{d:[1,2,6,14,18,9,11,10,7,12,22,23,19,20,24,25,41,138],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,42,64,65,66,61,55,56,57,58,59,60,43,90,91,92,85,86,87,88,89,93,94,95,96,97],c:"user-selectable-element clickable-element data-list-item image-item-element",cp:["lineColor"]},139:{d:[1,2,43,6,14,18,9,11,10,7,12,22,23,19,20,24,25,41,139],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,42,64,65,66,61,55,56,57,58,59,60,43,90,91,92,85,86,87,88,89,93,94,95,96,97],c:"user-selectable-element clickable-element data-list-item data-list-item-element",cp:["lineColor"]},140:{d:[1,2,6,14,18,9,11,10,7,12,22,23,19,20,24,25,41,140],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,42,64,65,66,61,55,56,57,58,59,60,43,90,91,92,85,86,87,88,89,93,94,95,96,97],c:"user-selectable-element clickable-element data-list-item list-view-item-element",cp:["lineColor"]},141:{d:[1,2,6,14,18,9,11,10,7,12,22,23,19,20,24,25,33,41,141],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,42,64,65,66,61,55,56,57,58,59,60,43,90,91,92,85,86,87,88,89,93,94,95,96,97],c:"user-selectable-element clickable-element data-list-item input-element",cp:["lineColor"]},142:{d:[1,2,6,14,18,9,11,10,7,12,22,23,19,20,24,25,33,142],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,42,64,65,66,61,55,56,57,58,59,60,43,90,91,92,85,86,87,88,89,93,94,95,96,97],c:"user-selectable-element clickable-element input-element",cp:["lineColor"]},143:{d:[1,2,5,22,23,3,51,4,18,9,17,19,20,24,14,50,143],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,40,41,90,91,92,115,{i:37,d:4},38,39,81,82,83,84,85,86,87,88,89,93,64,65,66,113,114,170,171,172],c:"skin-element user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking"],dd:[74],dp:[170,171,172]},144:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,144],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:144},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,243,244,245,246,247],c:"",cp:["horizontalDocking","verticalDocking"]},145:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,145],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:145},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,248,249,250,251,252,253],c:"",cp:["horizontalDocking","verticalDocking"]},146:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,146],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:146},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,254,255,256,257],c:"",cp:["horizontalDocking","verticalDocking"]},147:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,147],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:147},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,258,259,260,261,262,263],c:"",cp:["horizontalDocking","verticalDocking"]},148:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,148],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:148},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,264,265,266,267,268,269],c:"",cp:["horizontalDocking","verticalDocking"]},149:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,18,149],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:149},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,270,271,272,273],c:"",cp:["horizontalDocking","verticalDocking"]},150:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,18,150],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:150},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,274,275,276,277,278,279,280],c:"",cp:["horizontalDocking","verticalDocking"]},151:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,18,151],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:151},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,281,282,283,284,285,286],c:"",cp:["horizontalDocking","verticalDocking"]},152:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,18,152],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:152},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,287,288,289,290,291,292,293],c:"",cp:["horizontalDocking","verticalDocking"]},153:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,18,153],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:153},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,294,295,296,297,298],c:"",cp:["horizontalDocking","verticalDocking"]},154:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,154],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:154},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,299,300,301,302],c:"",cp:["horizontalDocking","verticalDocking"]},155:{d:[1,2,43,9,11,6,10,7,12,17,24,25,29,30,4,14,44,46,155],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:155},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,61,42,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,102,{i:37,d:4},38,39,64,65,66,112,303,304,305],c:"",cp:["horizontalDocking","verticalDocking","lineColor"]},156:{d:[1,2,43,9,11,6,10,7,12,17,24,25,29,30,4,14,44,46,18,156],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:156},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,61,42,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,102,{i:37,d:4},38,39,64,65,66,112,306,307,308,309,310],c:"",cp:["horizontalDocking","verticalDocking","lineColor"]},157:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,18,157],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:157},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,311,312,313,314,315,316],c:"",cp:["horizontalDocking","verticalDocking"]},158:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,158],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:158},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,317,318,319,320],c:"",cp:["horizontalDocking","verticalDocking"]},159:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,18,159],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:159},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,321,322,323,324,325,326],c:"",cp:["horizontalDocking","verticalDocking"]},160:{d:[1,2,43,9,11,6,10,7,12,17,24,25,29,30,4,14,44,46,18,160],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:160},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,61,42,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,102,{i:37,d:4},38,39,64,65,66,112,327,328,329,330,331,332,333],c:"",cp:["horizontalDocking","verticalDocking","lineColor"]},161:{d:[1,2,43,9,11,6,10,7,12,17,24,25,29,30,4,14,44,46,18,27,161],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:161},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,61,42,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,102,{i:37,d:4},38,39,64,65,66,112,334,335],c:"",cp:["horizontalDocking","verticalDocking","lineColor"]},162:{d:[1,2,43,4,18,9,11,17,6,24,25,29,30,14,44,27,162],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:162},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,61,81,82,83,84,42,93,94,95,96,97,102,64,65,66,336],c:"",cp:["horizontalDocking","verticalDocking","lineColor"]},163:{d:[1,2,43,9,10,7,12,17,24,29,30,4,14,44,46,18,163],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:163},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,55,56,57,58,59,60,43,81,82,83,84,93,102,{i:37,d:4},38,39,64,65,66,112,337,338,339,340],c:"",cp:["horizontalDocking","verticalDocking"]},164:{d:[1,2,43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127,56,164],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,40,41,85,86,87,88,89,64,65,66,90,91,92,{i:115,d:127},{i:37,d:4},38,39,81,82,83,84,93,242,117,118,171,157],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element paypalButton",cp:["horizontalDocking","verticalDocking"],dp:[171,157],i:[43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127]},165:{d:[1,2,43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127,57,165],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,40,41,85,86,87,88,89,64,65,66,90,91,92,{i:115,d:127},{i:37,d:4},38,39,81,82,83,84,93,242,119,120,171,157],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element checkOutButton",cp:["horizontalDocking","verticalDocking"],dp:[171,157],i:[43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127]},166:{d:[1,2,43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127,166],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,40,41,85,86,87,88,89,64,65,66,90,91,92,{i:115,d:127},{i:37,d:4},38,39,81,82,83,84,93,242,171,157],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element rss-button",cp:["horizontalDocking","verticalDocking"],dp:[171,157],i:[43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127]},167:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,63,40,41,90,91,92,42,64,65,66,67,101],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},168:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167,168],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,63,40,{i:41,d:168},90,91,92,42,64,65,66,67,101],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167]},169:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167,169],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,63,40,{i:41,d:169},90,91,92,42,64,65,66,67,101],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167]},170:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167,170],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,63,40,{i:41,d:170},90,91,92,42,64,65,66,67,101],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167]},171:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167,171],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,63,40,{i:41,d:171},90,91,92,42,64,65,66,67,101],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167]},172:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167,172],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,63,40,{i:41,d:172},90,91,92,42,64,65,66,67,101],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167]},173:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167,173],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,63,40,{i:41,d:173},90,91,92,42,64,65,66,67,101],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,167]},174:{d:[1,2,4,18,9,11,17,6,19,20,24,25,29,14,30,174],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,81,82,83,84,42,85,86,87,88,89,93,94,95,96,97,102,64,65,66,341,342],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},175:{d:[1,2,43,4,9,11,10,7,12,24,17,25,6,29,14,18,35,175],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,93,81,82,83,84,94,95,96,97,42,102,64,65,66,343],c:"has-rich-content",cp:["horizontalDocking","verticalDocking","lineColor"]},176:{d:[1,2,43,4,9,11,10,7,12,24,17,25,6,29,14,18,35,175,22,23,42,176],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:42},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,93,81,82,{i:83,d:42},84,94,95,96,97,42,102,64,65,66,343,90,91,92,107,108,109],c:"has-rich-content html-section-element",cp:["horizontalDocking","verticalDocking","lineColor"],i:[43,4,9,11,10,7,12,24,17,25,6,29,14,18,35,175]},177:{d:[1,2,43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127,62,177],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,40,41,85,86,87,88,89,64,65,66,90,91,92,{i:115,d:127},{i:37,d:4},38,39,81,82,83,84,93,242],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element skin-toggle-button-element",cp:["horizontalDocking","verticalDocking"],i:[43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127]},178:{d:[1,2,43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127,62,177,31,178],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,40,41,85,86,87,88,89,64,65,66,90,91,92,{i:115,d:127},{i:37,d:4},38,39,81,82,83,84,93,242,157],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element skin-toggle-button-element skin-checkbox-button-element",cp:["horizontalDocking","verticalDocking"],dp:[157],i:[43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127,62,177]},179:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,8,38,65,179],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,{i:63,d:38},40,41,90,91,92,42,64,65,66,67,101,44,45,46,47,48,49,50,51,52,53,54,104,344],c:"smart-data-list-element store-front-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},180:{d:[1,2,43,4,18,19,20,9,11,10,7,12,24,17,6,14,16,21,25,29,66,180],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,85,86,87,88,89,61,55,56,57,58,59,60,43,93,81,82,83,84,42,64,65,66,68,69,70,71,72,73,74,75,76,77,78,79,80,94,95,96,97,102,132,133,134],c:"user-selectable-element clickable-element has-text label-element",cp:["horizontalDocking","verticalDocking","calculatedFontFamily","calculatedFontSize","calculatedTextColor","lineColor"],i:[43,4,18,19,20,9,11,10,7,12,24,17,6,14,16,21,25,29,66]},181:{d:[1,2,43,4,18,19,20,9,11,10,7,12,24,17,6,14,16,21,25,29,66,180,181],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:181},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,85,86,87,88,89,61,55,56,57,58,59,60,43,93,81,82,83,84,42,64,{i:65,d:181},66,68,69,70,71,72,{i:73,d:181},74,75,76,77,78,79,80,94,95,96,97,102,132,133,134,{i:345,d:181}],c:"user-selectable-element clickable-element has-text label-element",cp:["horizontalDocking","verticalDocking","calculatedFontFamily","calculatedFontSize","calculatedTextColor","lineColor"],i:[43,4,18,19,20,9,11,10,7,12,24,17,6,14,16,21,25,29,66,180]},182:{d:[1,2,4,18,9,11,10,7,12,17,24,25,13,5,22,23,6,14,3,15,27,28,8,38,65,182],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,61,55,56,57,58,59,60,43,81,82,83,84,93,94,95,96,97,62,{i:63,d:38},40,41,90,91,92,42,64,65,66,67,101,44,45,46,47,48,49,50,51,52,53,54,104,346],c:"smart-data-list-element store-categories-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},183:{d:[1,2,43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127,16,183],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,40,41,85,86,87,88,89,64,65,66,90,91,92,{ i:115,d:127},{i:37,d:4},38,39,81,82,83,84,93,242,68,69,70,71,72,73,74,75,76,77,78,79,80,171],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element has-text store-show-cart-button-element",cp:["horizontalDocking","verticalDocking","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],dp:[171],i:[43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127]},184:{d:[1,2,43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127,16,184],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,40,41,85,86,87,88,89,64,65,66,90,91,92,{i:115,d:127},{i:37,d:4},38,39,81,82,83,84,93,242,68,69,70,71,72,73,74,75,76,77,78,79,80,171],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element has-text store-show-buy-button-element",cp:["horizontalDocking","verticalDocking","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],dp:[171],i:[43,5,19,20,21,14,18,35,59,22,23,3,51,4,9,17,24,127]},185:{d:[1,2,43,4,6,18,9,11,10,7,12,17,22,23,39,19,20,24,25,29,105,5,185],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,42,61,55,56,57,58,59,60,43,81,82,83,84,90,91,92,105,85,86,87,88,89,93,94,95,96,97,102,40,41,171],c:"user-selectable-element clickable-element userBox store-gallery-element",cp:["horizontalDocking","verticalDocking","lineColor"],dp:[171],i:[43,4,6,18,9,11,10,7,12,17,22,23,39,19,20,24,25,29,105]},186:{d:[1,2,43,4,6,18,9,11,10,7,12,17,22,23,39,19,20,24,25,29,105,186],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,110,111,{i:37,d:4},38,39,42,61,55,56,57,58,59,60,43,81,82,83,84,90,91,92,105,85,86,87,88,89,93,94,95,96,97,102,171],c:"user-selectable-element clickable-element userBox breadcrumb-element",cp:["horizontalDocking","verticalDocking","lineColor"],dp:[171],i:[43,4,6,18,9,11,10,7,12,17,22,23,39,19,20,24,25,29,105]}},lazy:["2","8","22","23","24","27","28","35","46","51"],methods:[{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:28,91:91,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:28,114:4,115:4,116:28,117:28,118:28,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:28,168:28,169:28,170:28,171:28,172:28,173:28,174:4,175:4,176:4,177:4,178:4,179:28,180:4,181:4,182:28,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,73:73,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:[4,46],145:[4,46],146:[4,46],147:[4,46],148:[4,46],149:[4,46],150:[4,46],151:[4,46],152:[4,46],153:[4,46],154:[4,46],155:[4,46],156:[4,46],157:[4,46],158:[4,46],159:[4,46],160:[4,46],161:[4,46],162:4,163:[4,46],164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:4,69:4,70:4,71:4,72:4,73:73,74:4,75:4,76:4,77:4,78:4,79:4,80:4,81:4,82:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,104:4,105:4,106:4,107:4,108:4,110:4,111:4,112:4,113:4,114:4,115:4,116:4,117:4,118:4,119:42,120:42,121:42,122:122,123:4,124:4,125:4,126:4,127:4,128:4,129:4,130:4,131:4,132:4,133:4,134:4,135:4,136:4,143:4,144:4,145:4,146:4,147:4,148:4,149:4,150:4,151:4,152:4,153:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:42,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4},{66:[0,4],69:[0,4],70:[0,4],71:[0,4],72:[0,4],73:73,74:[0,4],75:[0,4],76:[0,4],77:[0,4],78:[0,4],79:[0,4],80:[0,4],81:[0,4],82:[0,4],83:[0,4],84:[0,4],85:[0,4],86:[0,4],87:[0,4],88:[0,4],89:[0,4],90:[0,4],91:[0,4],92:[0,4],93:[0,4],94:[0,4],95:[0,4],96:[0,4],97:[0,4],98:[0,4],99:[0,4],100:[0,4],103:[0,41],104:[0,4],105:[0,4],106:[0,4],107:[0,4],108:[0,4],109:109,110:[0,4],111:[0,4],112:[0,4],113:[0,4],114:[0,4],115:[0,4],116:[0,4],117:[0,4],118:[0,4],119:42,120:42,121:42,122:[0,122],123:123,124:[0,41,4],125:[0,41,4],126:[0,4],127:[0,4],128:[0,41,4],129:[0,41,4],130:[0,41,4],131:[0,41,4],132:[0,41,4],133:[0,41,4],134:[0,41,4],135:[0,41,4],136:[0,41,4],137:[0,41],138:[0,41],139:[0,41],140:[0,41],141:[0,41],143:[0,4],144:[0,4],145:[0,4],146:[0,4],147:[0,4],148:[0,4],149:[0,4],150:[0,4],151:[0,4],152:[0,4],153:[0,4],154:[0,4],155:[0,4],156:[0,4],157:[0,4],158:[0,4],159:[0,4],160:[0,4],161:[0,4],162:[0,4],163:[0,4],164:[0,4],165:[0,4],166:[0,4],167:[0,4],168:[0,4],169:[0,4],170:[0,4],171:[0,4],172:[0,4],173:[0,4],174:[0,4],175:[0,4],176:42,177:[0,4],178:[0,4],179:[0,4],180:[0,4],181:[0,4],182:[0,4],183:[0,4],184:[0,4],185:[0,4],186:[0,4]},{66:19,69:19,70:19,71:19,72:19,74:19,75:19,76:19,77:19,78:19,79:19,80:19,81:19,82:19,83:19,84:19,85:19,86:19,87:19,88:19,89:19,96:19,97:19,101:19,102:19,103:19,104:19,105:19,106:19,107:19,108:19,110:19,111:19,112:19,114:19,115:19,123:19,124:19,125:19,126:19,127:19,128:19,129:19,130:19,131:19,132:19,133:19,134:19,135:19,136:19,137:19,138:19,139:19,140:19,141:19,142:19,143:19,164:19,165:19,166:19,174:19,177:19,178:19,180:19,181:19,183:19,184:19,185:19,186:19},{66:19,69:19,70:19,71:19,72:19,74:19,75:19,76:19,77:19,78:19,79:19,80:19,81:19,82:19,83:19,84:19,85:19,86:19,87:19,88:19,89:19,96:19,97:19,101:19,102:19,103:19,104:19,105:19,106:19,107:19,108:19,110:19,111:19,112:19,114:19,115:19,123:19,124:19,125:19,126:19,127:19,128:19,129:19,130:19,131:19,132:19,133:19,134:19,135:19,136:19,137:19,138:19,139:19,140:19,141:19,142:19,143:19,164:19,165:19,166:19,174:19,177:19,178:19,180:19,181:19,183:19,184:19,185:19,186:19},{66:19,69:19,70:19,71:19,72:19,74:19,75:19,76:19,77:19,78:19,79:19,80:19,81:19,82:19,83:19,84:19,85:19,86:19,87:19,88:19,89:19,96:19,97:19,101:19,102:19,103:19,104:19,105:19,106:19,107:19,108:19,110:19,111:19,112:19,114:19,115:19,123:19,124:19,125:19,126:19,127:19,128:19,129:19,130:[19,62],131:19,132:19,133:[19,62],134:19,135:[19,62],136:[19,62],137:19,138:19,139:19,140:19,141:19,142:19,143:19,164:19,165:19,166:19,174:19,177:[19,62],178:[19,62],180:19,181:19,183:19,184:19,185:19,186:19},{66:19,69:19,70:19,71:19,72:19,74:19,75:19,76:19,77:19,78:19,79:19,80:19,81:19,82:19,83:19,84:19,85:19,86:19,87:19,88:19,89:19,96:19,97:19,101:19,102:19,103:19,104:19,105:19,106:19,107:19,108:19,110:19,111:19,112:19,114:19,115:19,123:123,124:19,125:19,126:19,127:19,128:19,129:19,130:19,131:19,132:19,133:19,134:19,135:19,136:19,137:19,138:19,139:19,140:19,141:19,142:19,143:19,164:19,165:19,166:19,174:19,177:19,178:19,180:19,181:19,183:19,184:19,185:19,186:19},{66:20,69:20,70:20,71:20,72:20,74:20,75:20,76:20,77:20,78:20,79:20,80:20,81:20,82:20,83:20,84:20,85:20,86:20,87:20,88:20,89:20,96:20,97:20,101:20,102:20,103:20,104:20,105:20,106:20,107:20,108:20,110:20,111:20,112:20,114:20,115:20,123:20,124:20,125:20,126:20,127:20,128:20,129:20,130:20,131:20,132:20,133:20,134:20,135:20,136:20,137:20,138:20,139:20,140:20,141:20,142:20,143:20,164:20,165:20,166:20,174:20,177:20,178:20,180:20,181:20,183:20,184:20,185:20,186:20},{66:66,69:69,70:70,71:71,72:72,74:74,75:[0,20],76:[0,20],77:[0,20],78:[0,20],79:[0,20],80:[0,20],81:[0,20],82:[0,20],83:[0,20],84:[0,20],85:[0,20],86:[0,20],87:[0,20],88:[0,20],89:[0,20],90:5,91:5,92:5,93:5,94:5,95:5,96:[5,20],97:[5,20],98:5,99:5,100:5,101:[0,20],102:[0,20],103:[0,20],104:[0,20],105:[0,20],106:106,107:107,108:[0,20],110:[0,20],111:[0,20],112:[0,20],113:5,114:56,115:[0,20],116:5,117:5,118:5,123:[0,20],124:[0,20],125:[0,20],126:[5,20],127:[5,20],128:[0,20],129:[0,20],130:[0,20],131:[0,20],132:[0,20],133:[0,20],134:[0,20],135:[0,20],136:[0,20],137:[0,20],138:[0,20],139:[0,20],140:[0,20],141:[0,20],142:[0,20],143:[5,20],164:56,165:[5,20],166:[5,20],167:5,168:5,169:5,170:5,171:5,172:5,173:5,174:174,177:[5,20],178:[5,20],179:5,180:66,181:66,182:5,183:[5,20],184:[5,20],185:5,186:[0,20]},{66:20,69:20,70:20,71:20,72:20,74:20,75:20,76:20,77:20,78:20,79:20,80:20,81:20,82:20,83:20,84:20,85:20,86:20,87:20,88:[20,60],89:20,96:[20,60],97:[20,60],101:20,102:20,103:20,104:20,105:20,106:[20,60],107:[20,60],108:20,110:20,111:20,112:20,114:56,115:57,123:20,124:20,125:20,126:20,127:127,128:20,129:20,130:130,131:20,132:132,133:20,134:20,135:20,136:136,137:20,138:20,139:20,140:20,141:20,142:20,143:143,164:56,165:57,166:127,174:20,177:127,178:127,180:20,181:20,183:127,184:127,185:20,186:20},{66:20,69:20,70:20,71:20,72:20,74:20,75:20,76:20,77:20,78:20,79:20,80:20,81:20,82:20,83:20,84:20,85:20,86:20,87:20,88:20,89:20,96:20,97:20,101:20,102:20,103:20,104:20,105:20,106:20,107:20,108:20,110:20,111:20,112:20,114:20,115:20,123:20,124:20,125:20,126:20,127:20,128:20,129:20,130:20,131:20,132:20,133:20,134:20,135:20,136:20,137:20,138:20,139:20,140:20,141:20,142:20,143:20,164:20,165:20,166:20,174:20,177:20,178:20,180:20,181:20,183:20,184:20,185:20,186:20},{66:[0,20,66],69:[0,20,69],70:[0,20,70],71:[0,20,69,71],72:[0,20,69,72],74:[0,20,74],75:[0,20],76:[0,20],77:[0,20],78:[0,20],79:[0,20],80:[0,20],81:[0,20],82:[0,20],83:[0,20],84:[0,20],85:[0,20],86:[0,20],87:[0,20],88:[0,20],89:[0,20],90:[0,5],91:[0,5],92:[0,5],93:[0,5],94:[0,5],95:[0,5],96:[0,5,20],97:[0,5,20],98:[0,5],99:[0,5],100:[0,5],101:[0,20],102:[0,20],103:[0,20],104:[0,20],105:[0,20],106:[0,20,106],107:[0,20,107],108:[0,20],110:[0,20],111:[0,20],112:[0,20],113:[0,5],114:[0,20,56],115:[0,20],116:[0,5],117:[0,5],118:[0,5],123:[0,20],124:[0,20],125:[0,20],126:[0,5,20],127:[0,5,20],128:[0,20],129:[0,20],130:[0,20],131:[0,20],132:[0,20],133:[0,20],134:[0,20],135:[0,20],136:[0,20],137:[0,20],138:[0,20],139:[0,20],140:[0,20],141:[0,20],142:[0,20],143:[0,5,20],164:[0,5,20,56],165:[0,5,20],166:[0,5,20],167:[0,5],168:[0,5],169:[0,5],170:[0,5],171:[0,5],172:[0,5],173:[0,5],174:[0,20,174],177:[0,5,20],178:[0,5,20],179:[0,5],180:[0,20,66],181:[0,20,66],182:[0,5],183:[0,5,20],184:[0,5,20],185:[0,20,5],186:[0,20]},{66:20,69:20,70:20,71:20,72:20,74:20,75:20,76:20,77:20,78:20,79:20,80:20,81:20,82:20,83:20,84:20,85:20,86:20,87:20,88:20,89:20,96:20,97:20,101:20,102:20,103:20,104:20,105:20,106:20,107:20,108:20,110:20,111:20,112:20,114:20,115:20,123:20,124:20,125:20,126:20,127:20,128:20,129:20,130:20,131:20,132:20,133:20,134:20,135:20,136:20,137:20,138:20,139:20,140:20,141:20,142:20,143:20,164:20,165:20,166:20,174:20,177:20,178:20,180:20,181:20,183:20,184:20,185:20,186:20},{66:11,69:11,70:11,71:11,72:11,73:73,74:11,76:36,77:36,78:11,79:36,80:36,81:36,82:36,83:36,84:36,85:11,86:11,88:11,90:11,91:11,92:11,93:11,94:11,95:11,96:11,97:11,98:11,99:11,100:11,101:11,102:11,103:11,105:11,107:11,109:11,110:11,111:11,112:11,113:11,114:11,115:11,116:11,117:11,118:11,119:11,120:11,121:11,122:11,123:11,137:11,138:11,139:11,140:11,141:11,142:11,155:11,156:11,160:11,161:11,162:11,167:11,168:11,169:11,170:11,171:11,172:11,173:11,174:11,175:11,176:11,179:11,180:11,181:11,182:11,185:11,186:11},{66:10,69:10,70:10,71:10,72:10,73:10,78:10,88:10,90:10,91:10,92:10,93:10,94:10,95:10,96:10,97:10,98:10,99:10,100:10,101:10,102:10,103:10,105:10,106:10,107:10,109:10,110:10,111:10,112:10,113:10,114:10,115:10,116:10,117:10,118:10,119:10,120:10,121:10,122:10,123:10,137:10,138:10,139:10,140:10,141:10,142:10,144:10,145:10,146:10,147:10,148:10,149:10,150:10,151:10,152:10,153:10,154:10,155:10,156:10,157:10,158:10,159:10,160:10,161:10,163:10,167:10,168:10,169:10,170:10,171:10,172:10,173:10,175:10,176:10,179:10,180:10,181:10,182:10,185:10,186:10},{66:10,69:10,70:10,71:10,72:10,73:73,78:10,88:10,90:10,91:10,92:10,93:10,94:10,95:10,96:10,97:10,98:10,99:10,100:10,101:10,102:10,103:10,105:10,106:10,107:10,109:10,110:10,111:10,112:10,113:10,114:10,115:10,116:10,117:10,118:10,119:10,120:10,121:10,122:10,123:10,137:10,138:10,139:10,140:10,141:10,142:10,144:10,145:10,146:10,147:10,148:10,149:10,150:10,151:10,152:10,153:10,154:10,155:10,156:10,157:10,158:10,159:10,160:10,161:10,163:10,167:10,168:10,169:10,170:10,171:10,172:10,173:10,175:10,176:10,179:10,180:10,181:10,182:10,185:10,186:10},{66:10,69:10,70:10,71:10,72:10,73:73,78:10,88:10,90:10,91:10,92:10,93:10,94:10,95:10,96:10,97:10,98:10,99:10,100:10,101:10,102:10,103:10,105:10,106:10,107:10,109:10,110:10,111:10,112:10,113:10,114:10,115:10,116:10,117:10,118:10,119:10,120:10,121:10,122:10,123:10,137:10,138:10,139:10,140:10,141:10,142:10,144:10,145:10,146:10,147:10,148:10,149:10,150:10,151:10,152:10,153:10,154:10,155:10,156:10,157:10,158:10,159:10,160:10,161:10,163:10,167:10,168:10,169:10,170:10,171:10,172:10,173:10,175:10,176:10,179:10,180:10,181:10,182:10,185:10,186:10},{66:10,69:10,70:10,71:10,72:10,73:10,78:10,88:10,90:10,91:10,92:10,93:10,94:10,95:10,96:10,97:10,98:10,99:10,100:10,101:10,102:10,103:10,105:10,106:10,107:10,109:10,110:10,111:10,112:10,113:10,114:10,115:10,116:10,117:10,118:10,119:10,120:10,121:10,122:10,123:10,137:10,138:10,139:10,140:10,141:10,142:10,144:10,145:10,146:10,147:10,148:10,149:10,150:10,151:10,152:10,153:10,154:10,155:10,156:10,157:10,158:10,159:10,160:10,161:10,163:10,167:10,168:10,169:10,170:10,171:10,172:10,173:10,175:10,176:10,179:10,180:10,181:10,182:10,185:10,186:10},{66:10,69:10,70:10,71:10,72:10,73:73,78:10,88:10,90:10,91:10,92:10,93:10,94:10,95:10,96:10,97:10,98:10,99:10,100:10,101:10,102:10,103:10,105:10,106:10,107:10,109:10,110:10,111:10,112:10,113:10,114:10,115:10,116:10,117:10,118:10,119:10,120:10,121:10,122:10,123:10,137:10,138:10,139:10,140:10,141:10,142:10,144:10,145:10,146:10,147:10,148:10,149:10,150:10,151:10,152:10,153:10,154:10,155:10,156:10,157:10,158:10,159:10,160:10,161:10,163:10,167:10,168:10,169:10,170:10,171:10,172:10,173:10,175:10,176:10,179:10,180:10,181:10,182:10,185:10,186:10},{66:10,69:10,70:10,71:10,72:10,73:10,78:10,88:10,90:10,91:10,92:10,93:10,94:10,95:10,96:10,97:10,98:10,99:10,100:10,101:10,102:10,103:10,105:10,106:10,107:10,109:10,110:10,111:10,112:10,113:10,114:10,115:10,116:10,117:10,118:10,119:10,120:10,121:10,122:10,123:10,137:10,138:10,139:10,140:10,141:10,142:10,144:10,145:10,146:10,147:10,148:10,149:10,150:10,151:10,152:10,153:10,154:10,155:10,156:10,157:10,158:10,159:10,160:10,161:10,163:10,167:10,168:10,169:10,170:10,171:10,172:10,173:10,175:10,176:10,179:10,180:10,181:10,182:10,185:10,186:10},{66:10,69:10,70:10,71:10,72:10,73:10,78:10,88:10,90:10,91:10,92:10,93:10,94:10,95:10,96:10,97:10,98:10,99:10,100:10,101:10,102:10,103:10,105:10,106:10,107:10,109:10,110:10,111:10,112:10,113:10,114:10,115:10,116:10,117:10,118:10,119:10,120:10,121:10,122:10,123:10,137:10,138:10,139:10,140:10,141:10,142:10,144:10,145:10,146:10,147:10,148:10,149:10,150:10,151:10,152:10,153:10,154:10,155:10,156:10,157:10,158:10,159:10,160:10,161:10,163:10,167:10,168:10,169:10,170:10,171:10,172:10,173:10,175:10,176:10,179:10,180:10,181:10,182:10,185:10,186:10},{66:12,69:12,70:12,71:12,72:12,73:73,78:12,88:12,90:12,91:12,92:12,93:12,94:12,95:12,96:12,97:12,98:12,99:12,100:12,101:12,102:12,103:12,105:12,106:12,109:12,110:12,111:12,112:12,113:12,114:12,115:12,116:12,117:12,118:12,119:12,120:12,121:12,122:12,123:12,137:12,138:12,139:12,140:12,141:12,142:12,144:12,145:12,146:12,147:12,148:12,149:12,150:12,151:12,152:12,153:12,154:12,155:12,156:12,157:12,158:12,159:12,160:12,161:12,163:12,167:12,168:12,169:12,170:12,171:12,172:12,173:12,175:12,176:12,179:12,180:12,181:12,182:12,185:12,186:12},{66:24,69:24,70:24,71:24,72:24,74:24,75:24,76:24,77:24,78:24,79:24,80:24,81:24,82:24,83:24,84:24,85:24,86:24,87:24,88:24,89:24,90:24,91:24,92:24,93:24,94:24,95:24,96:24,97:24,98:24,99:24,100:24,101:24,102:24,103:24,104:24,105:24,106:24,107:24,108:24,110:24,111:24,112:24,113:24,114:24,115:24,116:24,117:24,118:24,122:24,123:24,124:24,125:24,126:24,127:24,128:24,129:24,130:24,131:24,132:24,133:24,134:24,135:24,136:24,137:24,138:24,139:24,140:24,141:24,142:24,143:24,144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,155:24,156:24,157:24,158:24,159:24,160:24,161:24,162:24,163:24,164:24,165:24,166:24,167:24,168:24,169:24,170:24,171:24,172:24,173:24,174:24,175:24,176:24,177:24,178:24,179:24,180:24,181:24,182:24,183:24,184:24,185:24,186:24},{66:17,69:17,70:17,71:17,72:17,74:17,75:17,76:17,77:17,78:17,79:17,80:17,81:17,82:17,83:17,84:17,85:17,87:17,88:17,89:17,90:17,91:17,92:17,93:17,94:17,95:17,96:17,97:17,98:17,99:17,100:17,101:17,102:17,103:17,104:17,105:17,106:17,107:17,108:17,109:109,110:17,111:17,112:17,113:17,114:17,115:17,116:17,117:17,118:17,119:17,120:17,121:17,122:17,124:17,125:17,126:17,127:17,128:17,129:17,130:17,131:17,132:17,133:17,134:17,135:17,136:17,143:17,144:17,145:17,146:17,147:17,148:17,149:17,150:17,151:17,152:17,153:17,154:17,155:17,156:17,157:17,158:17,159:17,160:17,161:17,162:17,163:17,164:17,165:17,166:17,167:17,168:17,169:17,170:17,171:17,172:17,173:17,174:17,175:17,176:17,177:17,178:17,179:17,180:17,181:17,182:17,183:17,184:17,185:17,186:17},{66:17,69:17,70:17,71:17,72:17,74:17,75:17,76:17,77:17,78:17,79:17,80:17,81:17,82:17,83:17,84:17,85:17,87:17,88:17,89:17,90:17,91:17,92:17,93:17,94:17,95:17,96:17,97:17,98:17,99:17,100:17,101:17,102:17,103:17,104:17,105:17,106:17,107:17,108:17,109:109,110:17,111:17,112:17,113:17,114:17,115:17,116:17,117:17,118:17,119:17,120:17,121:17,122:17,124:17,125:17,126:17,127:17,128:17,129:17,130:17,131:17,132:17,133:17,134:17,135:17,136:17,143:17,144:17,145:17,146:17,147:17,148:17,149:17,150:17,151:17,152:17,153:17,154:17,155:17,156:17,157:17,158:17,159:17,160:17,161:17,162:17,163:17,164:17,165:17,166:17,167:17,168:17,169:17,170:17,171:17,172:17,173:17,174:17,175:17,176:17,177:17,178:17,179:17,180:17,181:17,182:17,183:17,184:17,185:17,186:17},{66:17,69:17,70:17,71:17,72:17,74:17,75:17,76:17,77:17,78:17,79:17,80:17,81:17,82:17,83:17,84:17,85:17,87:17,88:17,89:17,90:17,91:17,92:17,93:17,94:17,95:17,96:17,97:17,98:17,99:17,100:17,101:17,102:17,103:17,104:17,105:17,106:17,107:17,108:17,110:17,111:17,112:17,113:17,114:17,115:17,116:17,117:17,118:17,119:17,120:17,121:17,122:17,124:17,125:17,126:17,127:17,128:17,129:17,130:17,131:17,132:17,133:17,134:17,135:17,136:17,143:17,144:17,145:17,146:17,147:17,148:17,149:17,150:17,151:17,152:17,153:17,154:17,155:17,156:17,157:17,158:17,159:17,160:17,161:17,162:17,163:17,164:17,165:17,166:17,167:17,168:17,169:17,170:17,171:17,172:17,173:17,174:17,175:17,176:17,177:17,178:17,179:17,180:17,181:17,182:17,183:17,184:17,185:17,186:17},{66:17,69:17,70:17,71:17,72:17,74:17,75:17,76:17,77:17,78:17,79:17,80:17,81:17,82:17,83:17,84:17,85:17,87:17,88:17,89:17,90:17,91:17,92:17,93:17,94:17,95:17,96:17,97:17,98:17,99:17,100:17,101:17,102:17,103:17,104:17,105:17,106:17,107:17,108:17,110:17,111:17,112:17,113:17,114:17,115:17,116:17,117:17,118:17,119:17,120:17,121:17,122:17,124:17,125:17,126:17,127:17,128:17,129:17,130:17,131:17,132:17,133:17,134:17,135:17,136:17,143:17,144:17,145:17,146:17,147:17,148:17,149:17,150:17,151:17,152:17,153:17,154:17,155:17,156:17,157:17,158:17,159:17,160:17,161:17,162:17,163:17,164:17,165:17,166:17,167:17,168:17,169:17,170:17,171:17,172:17,173:17,174:17,175:17,176:17,177:17,178:17,179:17,180:17,181:17,182:17,183:17,184:17,185:17,186:17},{66:17,69:17,70:17,71:17,72:17,74:17,75:17,76:17,77:17,78:17,79:17,80:17,81:17,82:17,83:17,84:17,85:17,87:17,88:17,89:17,90:17,91:17,92:17,93:17,94:17,95:17,96:17,97:17,98:17,99:17,100:17,101:17,102:17,103:17,104:17,105:17,106:17,107:17,108:17,110:17,111:17,112:17,113:17,114:17,115:17,116:17,117:17,118:17,119:17,120:17,121:17,122:17,124:17,125:17,126:17,127:17,128:17,129:17,130:17,131:17,132:17,133:17,134:17,135:17,136:17,143:17,144:17,145:17,146:17,147:17,148:17,149:17,150:17,151:17,152:17,153:17,154:17,155:17,156:17,157:17,158:17,159:17,160:17,161:17,162:17,163:17,164:17,165:17,166:17,167:17,168:17,169:17,170:17,171:17,172:17,173:17,174:17,175:17,176:17,177:17,178:17,179:17,180:17,181:17,182:17,183:17,184:17,185:17,186:17},{66:17,69:17,70:17,71:17,72:17,74:17,75:17,76:17,77:17,78:17,79:17,80:17,81:17,82:17,83:17,84:17,85:17,87:17,88:17,89:17,90:17,91:17,92:17,93:17,94:17,95:17,96:17,97:17,98:17,99:17,100:17,101:17,102:17,103:17,104:17,105:17,106:17,107:17,108:17,110:17,111:17,112:17,113:17,114:17,115:17,116:17,117:17,118:17,119:17,120:17,121:17,122:17,124:17,125:17,126:17,127:17,128:17,129:17,130:17,131:17,132:17,133:17,134:17,135:17,136:17,143:17,144:17,145:17,146:17,147:17,148:17,149:17,150:17,151:17,152:17,153:17,154:17,155:17,156:17,157:17,158:17,159:17,160:17,161:17,162:17,163:17,164:17,165:17,166:17,167:17,168:17,169:17,170:17,171:17,172:17,173:17,174:17,175:17,176:17,177:17,178:17,179:17,180:17,181:17,182:17,183:17,184:17,185:17,186:17},{66:[0,17,16,25],69:[0,17,25,16],70:[0,17,25],71:[0,17,25,16],72:[0,17,25,16],73:[0,73],74:[0,17,25],75:[0,17],76:[0,17],77:[0,17],78:[0,17,25],79:[0,17],80:[0,17],81:[0,17],82:[0,17],83:[0,17],84:[0,17],85:[0,17,37],86:[0,37],87:[0,17],88:[0,17,25],89:[0,17],90:[0,17,25,13],91:[0,17,25,13],92:[0,17,25,13],93:[0,17,25,13],94:[0,17,25,13],95:[0,17,25,13],96:[0,17,25,13],97:[0,17,25,13],98:[0,17,25,13],99:[0,17,25,13],100:[0,17,25,13],101:[0,16,17,25],102:[0,16,17,25],103:[0,17,25],104:[0,17,25],105:[0,17,25],106:[0,17,25],107:[0,17,25],108:[0,17,25,108],109:[0,25],110:[0,17,25],111:[0,17,25],112:[0,17,25],113:[0,17,25,13],114:[0,17,25],115:[0,17,25],116:[0,17,25,13,116],117:[0,17,25,13],118:[0,17,25,13],119:[0,17,25],120:[0,17,25],121:[0,17,25],122:[0,17,25],123:[0,25],124:[0,17],125:[0,17],126:[0,17],127:[0,17],128:[0,17],129:[0,17],130:[0,17],131:[0,17],132:[0,17],133:[0,17],134:[0,17],135:[0,17],136:[0,17],137:[0,25],138:[0,25],139:[0,25],140:[0,25],141:[0,25],142:[0,25],143:[0,17],144:[0,17],145:[0,17],146:[0,17],147:[0,17],148:[0,17],149:[0,17],150:[0,17],151:[0,17],152:[0,17],153:[0,17],154:[0,17],155:[0,17,25],156:[0,17,25],157:[0,17],158:[0,17],159:[0,17],160:[0,17,25],161:[0,17,25],162:[0,17,25],163:[0,17],164:[0,17],165:[0,17],166:[0,17],167:[0,17,25,13],168:[0,17,25,13],169:[0,17,25,13],170:[0,17,25,13],171:[0,17,25,13],172:[0,17,25,13],173:[0,17,25,13],174:[0,17,25],175:[0,17,25],176:[0,17,25],177:[0,17],178:[0,17],179:[0,17,25,13],180:[0,17,16,25],181:[0,17,16,25],182:[0,17,25,13],183:[0,17,16],184:[0,17,16],185:[0,17,25],186:[0,17,25]},{66:[0,17,16,25],69:[0,17,25,16],70:[0,17,25],71:[0,17,25,16],72:[0,17,25,16],73:[0,73],74:[0,17,25],75:[0,17],76:[0,17],77:[0,17],78:[0,17,25],79:[0,17],80:[0,17],81:[0,17],82:[0,17],83:[0,17],84:[0,17],85:[0,17,37],86:[0,37],87:[0,17],88:[0,17,25],89:[0,17],90:[0,17,25,13],91:[0,17,25,13],92:[0,17,25,13],93:[0,17,25,13],94:[0,17,25,13],95:[0,17,25,13],96:[0,17,25,13],97:[0,17,25,13],98:[0,17,25,13],99:[0,17,25,13],100:[0,17,25,13],101:[0,16,17,25],102:[0,16,17,25],103:[0,17,25],104:[0,17,25],105:[0,17,25],106:[0,17,25],107:[0,17,25],108:[0,17,25,108],109:[0,25],110:[0,17,25],111:[0,17,25],112:[0,17,25],113:[0,17,25,13],114:[0,17,25],115:[0,17,25],116:[0,17,25,13],117:[0,17,25,13],118:[0,17,25,13],119:[0,17,25],120:[0,17,25],121:[0,17,25],122:[0,17,25],123:[0,25],124:[0,17],125:[0,17],126:[0,17],127:[0,17],128:[0,17],129:[0,17],130:[0,17],131:[0,17],132:[0,17],133:[0,17],134:[0,17],135:[0,17],136:[0,17],137:[0,25],138:[0,25],139:[0,25],140:[0,25],141:[0,25],142:[0,25],143:[0,17],144:[0,17],145:[0,17],146:[0,17],147:[0,17],148:[0,17],149:[0,17],150:[0,17],151:[0,17],152:[0,17],153:[0,17],154:[0,17],155:[0,17,25],156:[0,17,25],157:[0,17],158:[0,17],159:[0,17],160:[0,17,25],161:[0,17,25],162:[0,17,25],163:[0,17],164:[0,17],165:[0,17],166:[0,17],167:[0,17,25,13],168:[0,17,25,13],169:[0,17,25,13],170:[0,17,25,13],171:[0,17,25,13],172:[0,17,25,13],173:[0,17,25,13],174:[0,17,25],175:[0,17,25],176:[0,17,25],177:[0,17],178:[0,17],179:[0,17,25,13],180:[0,17,16,25],181:[0,17,16,25],182:[0,17,25,13],183:[0,17,16],184:[0,17,16],185:[0,17,25],186:[0,17,25]},{66:66,69:14,70:14,71:14,72:14,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:14,91:14,92:14,93:14,94:14,95:14,96:14,97:14,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:14,114:14,115:14,116:64,117:64,118:14,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:14,165:14,166:14,167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:14,176:14,177:14,178:14,179:14,180:66,181:66,182:14,183:14,184:14},{66:66,69:69,70:14,71:69,72:69,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,101:101,102:102,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:28,114:14,115:14,116:64,117:64,118:28,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:14,165:14,166:14,167:28,168:28,169:28,170:28,171:28,172:28,173:28,174:14,175:14,176:14,177:14,178:14,179:28,180:66,181:66,182:28,183:14,184:14},{66:16,69:16,70:14, 71:16,72:16,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,101:16,102:16,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:28,114:14,115:14,116:28,117:28,118:28,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:14,165:14,166:14,167:28,168:28,169:28,170:28,171:28,172:28,173:28,174:14,175:14,176:14,177:14,178:14,179:28,180:16,181:16,182:28,183:16,184:16},{66:66,69:14,70:14,71:14,72:14,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:14,91:14,92:14,93:14,94:14,95:14,96:14,97:14,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:14,114:14,115:14,116:14,117:14,118:14,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:14,165:14,166:14,167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:14,176:14,177:14,178:14,179:14,180:66,181:66,182:14,183:14,184:14},{66:14,69:14,70:14,71:14,72:14,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:14,91:14,92:14,93:14,94:14,95:14,96:14,97:14,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:14,114:14,115:14,116:64,117:64,118:14,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:14,165:14,166:14,167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:14,176:14,177:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14},{66:14,69:14,70:14,71:14,72:14,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:90,91:14,92:14,93:14,94:14,95:38,96:38,97:38,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:38,114:14,115:14,116:64,117:64,118:118,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:14,165:14,166:14,167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:14,176:14,177:14,178:14,179:38,180:14,181:14,182:38,183:14,184:14},{66:14,69:14,70:14,71:14,72:14,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:14,91:14,92:14,93:14,94:14,95:14,96:14,97:14,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:14,114:14,115:14,116:14,117:14,118:14,122:14,123:14,124:14,125:14,126:14,127:[14,59],128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:[14,59],165:[14,59],166:[14,59],167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:175,176:175,177:[14,59],178:[14,59],179:14,180:14,181:14,182:14,183:[14,59],184:[14,59]},{66:14,69:14,70:14,71:14,72:14,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:14,91:14,92:14,93:14,94:14,95:14,96:14,97:14,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:14,114:14,115:14,116:14,117:14,118:14,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:14,165:14,166:14,167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:14,176:14,177:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14},{66:14,69:14,70:14,71:14,72:14,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,88:63,89:14,90:14,91:14,92:14,93:14,94:14,95:14,96:14,97:14,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:14,114:14,115:14,116:14,117:14,118:14,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:14,165:14,166:14,167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:14,176:14,177:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14},{66:14,69:14,70:14,71:14,72:14,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:14,91:14,92:14,93:14,94:14,95:14,96:14,97:14,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:14,114:14,115:14,116:14,117:14,118:14,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:14,165:14,166:14,167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:14,176:14,177:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14},{66:14,69:14,70:14,71:14,72:14,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:14,91:14,92:14,93:14,94:14,95:14,96:14,97:14,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:14,114:14,115:14,116:14,117:14,118:14,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:14,165:14,166:14,167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:14,176:14,177:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14},{66:66,69:69,70:14,71:69,72:69,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:14,91:14,92:14,93:14,94:14,95:38,96:38,97:38,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:8,109:14,110:14,111:14,112:14,113:38,114:14,115:14,116:14,117:14,118:14,122:14,123:14,124:14,125:14,126:14,127:[14,59],128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:[14,59],165:[14,59],166:[14,59],167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:14,176:14,177:[14,59],178:[14,59],179:38,180:66,181:66,182:38,183:[14,59],184:[14,59]},{66:14,69:14,70:14,71:14,72:14,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:14,91:14,92:14,93:14,94:14,95:14,96:14,97:14,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:14,114:14,115:14,116:14,117:14,118:14,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:14,145:14,146:14,147:14,148:14,149:14,150:14,151:14,152:14,153:14,154:14,155:14,156:14,157:14,158:14,159:14,160:14,161:14,162:14,163:14,164:14,165:14,166:14,167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:14,176:14,177:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14},{66:14,69:14,70:14,71:14,72:14,73:14,74:14,75:14,76:14,77:14,79:14,80:14,81:14,82:14,83:14,84:14,85:14,86:14,89:14,90:14,91:14,92:14,93:14,94:14,95:14,96:14,97:14,98:14,99:14,100:14,101:14,102:14,103:14,104:14,106:14,108:14,109:14,110:14,111:14,112:14,113:14,114:14,115:14,116:14,117:14,118:14,122:14,123:14,124:14,125:14,126:14,127:14,128:14,129:14,130:14,131:14,132:14,133:14,134:14,135:14,136:14,137:14,138:14,139:14,140:14,141:14,142:14,143:14,144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,162:14,163:46,164:14,165:14,166:14,167:14,168:14,169:14,170:14,171:14,172:14,173:14,174:14,175:14,176:14,177:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14},{66:66,69:69,71:69,72:69,101:16,102:16,180:66,181:66,183:16,184:16},{66:66,69:69,71:69,72:69,101:101,102:102,180:66,181:66,183:16,184:16},{66:16,69:16,71:16,72:16,101:16,102:16,180:16,181:16,183:16,184:16},{66:16,69:16,71:16,72:16,101:16,102:16,180:16,181:16,183:16,184:16},{66:29,69:29,71:29,72:29,74:29,75:29,77:29,78:29,79:29,80:29,81:29,82:29,83:29,84:29,85:29,86:29,105:29,107:29,111:29,112:29,144:29,145:29,146:29,147:29,148:29,149:29,150:29,151:29,152:29,153:29,154:29,155:29,156:29,157:29,158:29,159:29,160:29,161:29,162:29,163:29,174:29,175:29,176:29,180:29,181:29,185:29,186:29},{66:29,69:29,71:29,72:29,74:29,75:29,77:29,78:29,79:29,80:29,81:29,82:29,83:29,84:29,85:29,86:29,105:29,107:29,111:29,112:29,144:29,145:29,146:29,147:29,148:29,149:29,150:29,151:29,152:29,153:29,154:29,155:29,156:29,157:29,158:29,159:29,160:29,161:29,162:29,163:29,174:29,175:29,176:29,180:29,181:29,185:29,186:29},{66:66,69:69,70:70,71:69,72:69,73:73,74:74,75:75,76:76,77:36,78:78,79:36,80:36,81:36,82:36,83:36,84:36,85:85,86:86,89:51,90:13,91:13,92:13,93:13,94:13,95:13,96:13,97:13,98:13,99:13,100:13,101:101,102:102,103:103,104:104,105:105,106:106,108:108,109:109,110:110,111:111,112:112,113:13,114:56,115:57,116:64,117:64,118:13,119:42,120:42,121:42,122:122,123:123,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,137:137,138:138,139:139,140:140,141:141,142:142,143:51,144:44,145:44,146:44,147:44,148:44,149:44,150:44,151:44,152:44,153:44,154:44,155:44,156:44,157:44,158:44,159:44,160:44,161:44,162:44,163:44,164:56,165:57,166:51,167:13,168:13,169:13,170:13,171:13,172:13,173:13,174:174,176:42,177:51,178:51,179:13,180:66,181:66,182:13,183:183,184:51,185:105,186:105},{67:67},{67:67},{69:69,70:70,71:69,72:69,76:35,77:35,79:35,80:35,81:35,82:35,83:35,84:35,127:35,164:35,165:35,166:35,175:35,176:35,177:35,178:35,183:35,184:35},{69:35,70:35,71:35,72:35,76:35,77:35,79:35,80:35,81:35,82:35,83:35,84:35,127:35,164:35,165:35,166:35,175:35,176:35,177:35,178:35,183:35,184:35},{69:35,70:35,71:35,72:35,76:35,77:35,79:35,80:35,81:35,82:35,83:35,84:35,127:35,164:35,165:35,166:35,175:35,176:35,177:35,178:35,183:35,184:35},{69:35,70:35,71:35,72:35,76:35,77:35,79:35,80:35,81:35,82:35,83:35,84:35,127:[35,59],164:[35,59],165:[35,59],166:[35,59],175:35,176:35,177:[35,59],178:[35,59],183:[35,59],184:[35,59]},{69:55,70:55,71:55,72:55},{69:55,70:55,71:55,72:55},{69:69,70:70,71:71,72:72,174:174},{69:69,71:69,72:69},{73:22,87:22,88:22,89:[22,51],90:22,91:22,92:22,93:22,94:22,95:22,96:22,97:22,98:22,99:22,100:22,103:22,105:22,108:22,109:22,110:22,113:22,114:22,115:22,116:22,117:22,118:22,119:22,120:22,121:22,122:22,123:[22,123],124:52,125:52,126:[22,51],127:[22,51],128:52,129:52,130:52,131:52,132:52,133:52,134:52,135:52,136:52,137:22,138:22,139:22,140:22,141:22,142:22,143:[22,51],164:[22,51],165:[22,51],166:[22,51],167:22,168:22,169:22,170:22,171:22,172:22,173:22,176:22,177:[22,51],178:[22,51],179:22,182:22,183:[22,51],184:[22,51],185:22,186:22},{73:23,87:23,88:23,89:23,90:23,91:23,92:23,93:23,94:23,95:23,96:23,97:23,98:23,99:23,100:23,103:23,105:23,108:23,109:23,110:23,113:23,114:23,115:23,116:23,117:23,118:23,119:23,120:23,121:23,122:23,123:23,124:23,125:23,126:23,127:23,128:23,129:23,130:23,131:23,132:23,133:23,134:23,135:23,136:23,137:23,138:23,139:23,140:23,141:23,142:23,143:23,164:23,165:23,166:23,167:23,168:23,169:23,170:23,171:23,172:23,173:23,176:23,177:23,178:23,179:23,182:23,183:23,184:23,185:23,186:23},{73:23,87:23,88:23,89:23,90:23,91:23,92:23,93:23,94:23,95:23,96:23,97:23,98:23,99:23,100:23,103:23,105:23,108:23,109:23,110:23,113:23,114:23,115:23,116:23,117:23,118:23,119:23,120:23,121:23,122:23,123:23,124:23,125:23,126:23,127:23,128:23,129:23,130:23,131:23,132:23,133:23,134:23,135:23,136:23,137:23,138:23,139:23,140:23,141:23,142:23,143:23,164:23,165:23,166:23,167:23,168:23,169:23,170:23,171:23,172:23,173:23,176:23,177:23,178:23,179:23,182:23,183:23,184:23,185:23,186:23},{73:23,87:23,88:23,89:23,90:23,91:23,92:23,93:23,94:23,95:23,96:23,97:23,98:23,99:23,100:23,103:23,105:23,108:23,109:23,110:23,113:23,114:23,115:23,116:23,117:23,118:23,119:23,120:23,121:23,122:23,123:23,124:23,125:23,126:23,127:23,128:23,129:23,130:23,131:23,132:23,133:23,134:23,135:23,136:23,137:23,138:23,139:23,140:23,141:23,142:23,143:23,164:23,165:23,166:23,167:23,168:23,169:23,170:23,171:23,172:23,173:23,176:23,177:23,178:23,179:23,182:23,183:23,184:23,185:23,186:23},{73:23,87:23,88:23,89:23,90:23,91:23,92:23,93:23,94:23,95:23,96:23,97:23,98:23,99:23,100:23,103:23,105:23,108:23,109:23,110:23,113:23,114:23,115:23,116:23,117:23,118:23,119:23,120:23,121:23,122:23,123:23,124:23,125:23,126:23,127:23,128:23,129:23,130:23,131:23,132:23,133:23,134:23,135:23,136:23,137:23,138:23,139:23,140:23,141:23,142:23,143:23,164:23,165:23,166:23,167:23,168:23,169:23,170:23,171:23,172:23,173:23,176:23,177:23,178:23,179:23,182:23,183:23,184:23,185:23,186:23},{73:23,87:23,88:23,89:23,90:23,91:23,92:23,93:23,94:23,95:23,96:23,97:23,98:23,99:23,100:23,103:23,105:23,108:23,109:23,110:23,113:23,114:23,115:23,116:23,117:23,118:23,119:23,120:23,121:23,122:23,123:23,124:23,125:23,126:23,127:23,128:23,129:23,130:23,131:23,132:23,133:23,134:23,135:23,136:23,137:23,138:23,139:23,140:23,141:23,142:23,143:23,164:23,165:23,166:23,167:23,168:23,169:23,170:23,171:23,172:23,173:23,176:23,177:23,178:23,179:23,182:23,183:23,184:23,185:23,186:23},{73:[23,73],87:23,88:23,89:51,90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,103:23,105:23,108:23,109:23,110:23,113:28,114:23,115:23,116:64,117:64,118:28,119:23,120:23,121:23,122:23,123:23,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,137:23,138:23,139:23,140:23,141:23,142:23,143:51,164:51,165:51,166:51,167:28,168:28,169:28,170:28,171:28,172:28,173:28,176:23,177:51,178:51,179:28,182:28,183:51,184:51,185:23,186:23},{73:73,87:23,88:23,89:23,90:23,91:23,92:23,93:23,94:23,95:23,96:23,97:23,98:23,99:23,100:23,103:23,105:23,108:23,109:23,110:23,113:23,114:23,115:23,116:64,117:64,118:23,119:23,120:23,121:23,122:23,123:23,124:23,125:23,126:23,127:23,128:23,129:23,130:23,131:23,132:23,133:23,134:23,135:23,136:23,137:23,138:23,139:23,140:23,141:23,142:23,143:23,164:23,165:23,166:23,167:23,168:23,169:23,170:23,171:23,172:23,173:23,176:23,177:23,178:23,179:23,182:23,183:23,184:23,185:23,186:23},{73:23,87:23,88:23,89:23,90:23,91:23,92:23,93:23,94:23,95:23,96:23,97:23,98:23,99:23,100:23,103:23,105:23,108:23,109:23,110:23,113:23,114:23,115:23,116:64,117:64,118:23,119:23,120:23,121:23,122:23,123:23,124:23,125:23,126:23,127:23,128:23,129:23,130:23,131:23,132:23,133:23,134:23,135:23,136:23,137:23,138:23,139:23,140:23,141:23,142:23,143:23,164:23,165:23,166:23,167:23,168:23,169:23,170:23,171:23,172:23,173:23,176:23,177:23,178:23,179:23,182:23,183:23,184:23,185:23,186:23},{73:23,87:23,88:23,89:23,90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,103:23,105:23,108:23,109:23,110:23,113:28,114:23,115:23,116:28,117:28,118:28,119:23,120:23,121:23,122:23,123:23,124:23,125:23,126:23,127:23,128:23,129:23,130:23,131:23,132:23,133:23,134:23,135:23,136:23,137:23,138:23,139:23,140:23,141:23,142:23,143:23,164:23,165:23,166:23,167:28,168:28,169:28,170:28,171:28,172:28,173:28,176:23,177:23,178:23,179:28,182:28,183:23,184:23,185:23,186:23},{73:39,105:39,108:39,109:39,110:39,115:39,119:39,120:39,121:39,122:39,185:39,186:39},{73:73,90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,113:28,116:28,117:28,118:28,121:121,122:122,144:[0,46],145:[0,46],146:[0,46],147:[0,46],148:[0,46],149:[0,46],150:[0,46],151:[0,46],152:[0,46],153:[0,46],154:[0,46],155:[0,46],156:[0,46],157:[0,46],158:[0,46],159:[0,46],160:[0,46],161:[0,46],163:[0,46],167:28,168:28,169:28,170:28,171:28,172:28,173:28,179:28,182:28},{73:73,87:87,105:105,109:109,116:64,117:64,119:42,120:42,121:42,122:122,176:176,185:105,186:105},{73:73,88:63,116:63,117:63,119:42,120:42,121:42,176:42},{73:[0,73]},{73:73},{73:73},{73:73},{73:73},{73:73},{73:73},{73:73},{73:73},{73:73},{73:73,121:121,176:176},{73:73},{73:73},{73:73,87:87,122:122},{75:26,76:76,77:26,79:26,80:26,81:26,82:26,83:26,84:26},{75:75,87:87},{75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,111:111},{76:36,77:36,79:36,80:36,81:36,82:36,83:36,84:36},{76:36,77:36,79:36,80:36,81:36,82:36,83:36,84:36},{76:36,77:36,79:36,80:36,81:36,82:36,83:36,84:36},{76:76,77:77,79:79,80:80,81:81,82:82,83:83,84:84},{85:85,86:86},{85:37,86:37},{85:85,86:86},{87:87},{87:87},{87:87},{87:87},{87:87,105:105,109:109,122:122,185:105,186:105},{87:87},{87:87},{88:63,90:13,91:13,92:13,93:13,94:13,95:13,96:13,97:13,98:13,99:13,100:13,113:13,116:13,117:13,118:13,167:13,168:13,169:13,170:13,171:13,172:13,173:13,179:13,182:13},{88:60,96:96,97:97,106:60,107:60},{88:60,96:60,97:60,106:60,107:60},{88:61,96:96,97:97,106:60,107:60},{88:60,96:60,97:60,106:106,107:107},{88:60,96:60,97:60,106:60,107:60},{88:61},{88:88},{88:88},{88:88},{88:88,116:116},{88:88,116:116},{88:88,116:116},{88:88},{88:88},{89:89,101:101,102:102,124:124,141:141,142:142,177:177,178:178},{89:89,101:101,102:102,124:124,178:178},{89:89,101:101,102:102,124:124,141:141,142:142,178:178},{89:51,90:15,91:91,92:15,93:15,94:15,95:15,96:15,97:15,98:15,99:15,100:15,113:15,116:15,117:15,118:15,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,167:15,168:15,169:15,170:15,171:15,172:15,173:15,177:51,178:51,179:15,182:15,183:51,184:51},{89:51,90:3,91:3,92:3,93:3,94:3,95:3,96:3,97:3,98:3,99:3,100:3,113:3,116:3,117:3,118:3,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,167:3,168:3,169:3,170:3,171:3,172:3,173:3,177:51,178:51,179:3,182:3,183:51,184:51},{89:3,90:3,91:3,92:3,93:3,94:3,95:3,96:3,97:3,98:3,99:3,100:3,113:3,116:3,117:3,118:3,124:3,125:3,126:3,127:3,128:3,129:3,130:3,131:3,132:3,133:3,134:3,135:3,136:3,143:3,164:3,165:3,166:3,167:3,168:3,169:3,170:3,171:3,172:3,173:3,177:3,178:3,179:3,182:3,183:3,184:3},{89:3,90:3,91:3,92:3,93:3,94:3,95:3,96:3,97:3,98:3,99:3,100:3,103:41,113:3,116:3,117:3,118:3,124:41,125:41,126:3,127:3,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41,143:3,164:3,165:3,166:3,167:3,168:3,169:3,170:3,171:3,172:3,173:3,177:3,178:3,179:3,182:3,183:3,184:3},{89:3,90:15,91:15,92:15,93:15,94:15,95:15,96:15,97:15,98:15,99:15,100:15,103:41,113:15,116:15,117:15,118:15,124:41,125:41,126:3,127:3,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41,143:3,164:3,165:3,166:3,167:15,168:15,169:15,170:15,171:15,172:15,173:15,177:3,178:3,179:15,182:15,183:3,184:3},{89:51,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,177:51,178:51,183:51,184:51},{89:51,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,177:51,178:51,183:51,184:51},{89:[0,51],124:[0,51],125:[0,51],126:[0,51],127:[0,51],128:[0,51],129:[0,51],130:[0,51],131:[0,51],132:[0,51],133:[0,51],134:[0,51],135:[0,51],136:[0,51],143:[0,51],164:[0,51],165:[0,51],166:[0,51],177:[0,51],178:[0,51],183:[0,51],184:[0,51]},{89:51,123:123,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,177:51,178:51,183:51,184:51},{89:51,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,177:51,178:51,183:51,184:51},{89:51,123:123,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,177:51,178:51,183:51,184:51},{89:51,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,177:51,178:51,183:51,184:51},{89:89,124:124,125:51,126:51,127:127,128:51,129:51,130:130,131:51,132:132,133:133,134:134,135:135,136:136,143:51,164:127,165:127,166:127,177:62,178:62,183:127,184:127},{89:51,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,177:51,178:51,183:51,184:51},{89:51,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,177:51,178:51,183:51,184:51},{89:51,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,177:51,178:51,183:51,184:51},{89:51,124:51,125:51,126:51,127:51,128:51,129:51,130:51,131:51,132:51,133:51,134:51,135:51,136:51,143:51,164:51,165:51,166:51,177:51,178:51,183:51,184:51},{89:89,124:124,141:141,142:142},{89:89},{89:89,124:124},{90:13,91:13,92:13,93:13,94:13,95:13,96:13,97:13,98:13,99:13,100:13,113:13,116:13,117:13,118:13,167:13,168:13,169:13,170:13,171:13,172:13,173:13,179:13,182:13},{90:13,91:13,92:13,93:13,94:13,95:13,96:13,97:13,98:13,99:13,100:13,113:13,116:13,117:13,118:13,167:13,168:13,169:13,170:13,171:13,172:13,173:13,179:13,182:13},{90:90,91:13,92:13,93:13,94:13,95:13,96:13,97:13,98:13,99:13,100:13,113:13,116:13,117:13,118:13,167:13,168:13,169:13,170:13,171:13,172:13,173:13,179:13,182:13},{90:13,91:13,92:13,93:13,94:13,95:13,96:13,97:13,98:13,99:13,100:13,113:13,116:13,117:13,118:13,167:13,168:13,169:13,170:13,171:13,172:13,173:13,179:13,182:13},{90:13,91:[13,58],92:[13,58,92],93:13,94:13,95:[13,38],96:[13,38],97:[13,38],98:13,99:13,100:13,113:[13,38],116:13,117:13,118:13,167:13,168:13,169:13,170:13,171:13,172:13,173:13,179:[13,38],182:[13,38]},{90:5,91:5,92:5,93:5,94:5,95:5,96:5,97:5,98:5,99:5,100:5,103:41,113:5,116:5,117:5,118:5,124:41,125:41,126:5,127:5,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41,143:5,164:5,165:5,166:5,167:5,168:5,169:5,170:5,171:5,172:5,173:5,177:5,178:5,179:5,182:5,183:5,184:5,185:5},{90:5,91:5,92:5,93:5,94:5,95:5,96:5,97:5,98:5,99:5,100:5,113:5,116:5,117:5,118:5,126:5,127:5,143:5,164:5,165:5,166:5,167:5,168:5,169:5,170:5,171:5,172:5,173:5,177:5,178:5,179:5,182:5,183:5,184:5,185:5},{90:90,91:91,92:92,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,113:113,116:64,117:64,118:118,126:5,127:5,143:5,164:5,165:5,166:5,167:167,168:167,169:167,170:167,171:167,172:167,173:167,177:5,178:5,179:179,182:182,183:5,184:5,185:185},{90:15,91:15,92:15,93:15,94:15,95:15,96:15,97:15,98:15,99:15,100:15,103:41,113:15,116:15,117:15,118:15,124:41,125:41,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41,167:15,168:15,169:15,170:15,171:15,172:15,173:15,179:15,182:15},{90:15,91:91,92:15,93:15,94:15,95:15,96:15,97:15,98:15,99:15,100:15,113:15,116:15,117:15,118:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,179:15,182:15},{90:15,91:15,92:15,93:15,94:15,95:15,96:15,97:15,98:15,99:15,100:15,113:15,116:15,117:15,118:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,179:15,182:15},{90:15,91:15,92:15,93:15,94:15,95:15,96:15,97:15,98:15,99:15,100:15,113:15,116:15,117:15,118:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,179:15,182:15},{90:15,91:15,92:15,93:15,94:15,95:15,96:15,97:15,98:15,99:15,100:15,113:15,116:64,117:64,118:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,179:15,182:15},{90:15,91:15,92:15,93:15,94:15,95:15,96:15,97:15,98:15,99:15,100:15,113:15,116:15,117:15,118:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,179:15,182:15},{90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,113:28,116:28,117:28,118:28,167:28,168:28,169:28,170:28,171:28,172:28,173:28,179:28,182:28},{90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,103:41,113:28,116:28,117:28,118:28,124:41,125:41,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41,167:28,168:28,169:28,170:28,171:28,172:28,173:28,179:28,182:28},{90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,113:28,116:28,117:28,118:28,167:28,168:28,169:28,170:28,171:28,172:28,173:28,179:28,182:28},{90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,113:28,116:28,117:28,118:28,167:28,168:28,169:28,170:28,171:28,172:28,173:28,179:28,182:28},{90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,113:28,116:64,117:64,118:28,167:28,168:28,169:28,170:28,171:28,172:28,173:28,179:28,182:28},{90:28,91:28,92:28,93:28,94:28,95:95,96:38,97:38,98:28,99:28,100:28,113:113,116:28,117:28,118:28,167:167,168:167,169:167,170:167,171:167,172:167,173:167,179:38,182:38},{90:90,91:[28,91],92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,113:28,116:28,117:28,118:28,167:28,168:28,169:28,170:28,171:28,172:28,173:28,179:28,182:28},{90:90,91:91,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,113:28,116:28,117:28,118:28,167:28,168:28,169:28,170:28,171:28,172:28,173:28,179:28,182:28},{90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,113:28,116:28,117:28,118:28,167:28,168:28,169:28,170:28,171:28,172:28,173:28,179:28,182:28},{90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,113:28,116:64,117:64,118:28,167:28,168:28,169:28,170:28,171:28,172:28,173:28,179:28,182:28},{90:[0,28],91:[0,28],92:[0,28],93:[0,28],94:[0,28],95:[0,28],96:[0,28],97:[0,28],98:[0,28],99:[0,28],100:[0,28],113:[0,28],116:[0,28],117:[0,28],118:[0,28],167:[0,28],168:[0,28],169:[0,28],170:[0,28],171:[0,28],172:[0,28],173:[0,28],179:[0,28],182:[0,28]},{90:49,91:49,92:49,93:49,94:49,118:118},{90:90,118:118},{90:90,91:91,92:92,93:93,94:93},{90:90,91:91,92:92,93:93,94:93},{90:90},{90:90},{91:91},{91:91},{91:91},{92:92},{92:92,119:42,120:42,121:42,176:42},{93:93,94:94,95:95},{95:38,96:38,97:38,108:108,113:38,179:38,182:38},{95:[8,95],96:8,97:8,108:8,113:8,179:8,182:8},{95:8,96:8,97:8,108:8,113:8,179:8,182:8},{95:38,96:38,97:38,108:108,113:38,179:38,182:38},{95:95,96:8,97:8,108:8,113:8,179:8,182:8},{95:38,96:38,97:38,108:8,113:38,179:38,182:38},{95:8,96:8,97:8,108:108,113:8,179:8,182:8},{95:8,96:8,97:8,108:8,113:8,179:8,182:8},{95:8,96:8,97:8,108:8,113:8,179:8,182:8},{95:8,96:8,97:8,108:8,113:8,179:8,182:8},{95:8,96:8,97:8,108:8,113:8,179:8,182:8},{95:8,96:8,97:8,108:8,113:8,179:8,182:8},{95:8,96:8,97:8,108:8,113:8,179:8,182:8},{95:[8,95],96:8,97:8,108:8,113:8,179:8,182:8},{95:95,96:38,97:38,113:38,179:38,182:38},{95:38,96:38,97:38,108:108,113:38,179:38,182:38},{95:38,96:38,97:38,113:38,179:38,182:38},{95:95},{103:41,124:41,125:41,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41},{103:41,124:41,125:41,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41},{103:41,124:41,125:41,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41},{103:41,124:41,125:41,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41},{103:41,124:41,125:41,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41},{103:41,124:41,125:41,128:41,129:41,130:130,131:41,132:41,133:41,134:41,135:41,136:136,137:41,138:41,139:41,140:41,141:41,143:143},{103:41,124:41,125:41,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41},{103:41,124:41,125:41,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41},{103:41,122:122,124:41,125:41,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41},{103:41,124:41,125:41,128:41,129:41,130:41,131:41,132:41,133:41,134:41,135:41,136:41,137:41,138:41,139:41,140:41,141:41},{104:104},{104:104},{104:104},{105:105,185:105,186:105},{106:106},{106:106},{106:106},{106:106},{106:106},{107:107},{107:107},{107:107},{108:108},{108:108},{108:108},{116:116},{116:116},{119:42,120:42,121:42,122:122,176:42},{119:42,120:42,121:42,122:122,176:42},{119:42,120:42,121:42,176:42},{119:42,120:42,121:42,176:42},{119:119,120:120,121:[0,121],178:178},{119:119,120:120,121:121,122:122,176:176},{121:121,175:175,176:175},{122:122},{122:122},{122:122},{122:122},{122:122},{122:122},{123:40},{123:123},{127:127,164:127,165:127,166:127,177:127,178:127,183:127,184:127},{127:[0,127],164:[0,127],165:[0,127],166:[0,127],177:[0,127],178:[0,127],183:[0,127],184:[0,127]},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,162:162,163:46},{144:44,145:44,146:44,147:44,148:44,149:44,150:44,151:44,152:44,153:44,154:44,155:44,156:44,157:44,158:44,159:44,160:44,161:44,162:162,163:44},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,162:44,163:46},{144:44,145:44,146:44,147:44,148:44,149:44,150:44,151:44,152:44,153:44,154:44,155:44,156:44,157:44,158:44,159:44,160:44,161:44,162:44,163:44},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{144:46,145:46,146:46,147:46,148:46,149:46,150:46,151:46,152:46,153:46,154:46,155:46,156:46,157:46,158:46,159:46,160:46,161:46,163:46},{179:65,182:65},{179:179},{185:185},{185:185},{185:185},{185:185}],methodNames:["shouldBeBlockElementInMobile","isBlock","addToCellItem","removeElementFromCellItem","reAttachElementToContainer","getCellItem","setCellItem","refreshCellHorizontalAlignment","updateCellItemData","getCellItemData","removeCellItem","shouldBeWithLayoutOnMobile","getMaxSize","isRelativePositioned","getAutoLayoutProperties","setNeverSelectedInClick","isUserSelected","userSelect","shouldTrackUserSelection","isLinkEnabled","hasBinding","hasButtonBehaviour","refreshCursor","createBindingFieldsToProperties","removeUrl","handleBackgroundUpdate","useImageLayer","getImageLayerTemplate","forceImageBoxCreation","getImageBox","handleImageBoxBorderWidthChange","setImageBoxVirtualViewport","setImageBoxViewport","autoCalculateBackgroundViewPort","toggleVisibility","isFillHorizontal","isFillVertical","hasHorizontalLayout","hasVerticalLayout","isVerticallyDocked","getParentContentSize","getCalculatedPropertyValue","setCalculatedPropertyValue","hasVerticalAlign","hasHorizontalAlign","alignHorizontal","alignVertical","alignContentHorizontal","hasContentHorizontalAlign","getElementDataContentSize","calculateSizeContent","getNewContentSize","calculateNewContentSize","adjustSizeToContent","getElementDataContent","whenInstanceContentHeightChanged","calculateNormalizedHeight","refreshTextLayout","getTextElements","calculateFontSize","calculateDecimalLineHeight","canRotate","setRotation","creationFunction","getSkin","updateSkin","findUsedFonts","pollNotLoadedFontsCallback","pollForNotLoadedFonts","refreshContentSize","setRichContent","refreshRichContentState","getBindingType","findUsedTextStyles","setOverFlow","addRowToContainer","removeRowFromContainer","getRowsFromContainer","hasRowsFromContainer","append","reorderChildElements","addChildElement","renderElementChildren","canContainerRows","getAnchorLatyout","getMinSize","hasHeight","calculateActualSize","getContentLayer","refreshPageMetaData","getPaddingBox","attachPage","getFooterInstanceHeight","getHeaderInstanceHeight","getFooterInstance","getHeaderInstance","setFooterInstance","setHeaderInstance","getPageContentInstance","setPageContentInstance","removePageContentInstance","renderElement","isLineAffectsSize","getShadowTarget","shouldBeHiddenInMode","getCanvas","getShape","createContent","createShape","getShapeReference","getSvgController","createSvgShapeController","getMainBox","disableGroup","enableGroup","startGroupUpdating","hasWidth","finishGroupUpdating","isGroupDisabled","calculateDiffHeight","isPopupDisabled","showPopup","getPopupItemsCollectionForInitialization","getPopupItems","isPopupEnabled","showElementInPopup","shouldDisplayOnMobile","getJMMLType","getCloseButton","getSubmitSuccessTarget","getSubmitSuccessText","getSubmitErrorText","fixElementInBottom","isFixed","getValue","setValue","clear","getSkinBinding","getSkinId","getStyleObject","isSupportsMobile","isMobileOnlyStyle","initiailizeDelegatedContentBinding","getNoneContentSize","getLayoutAffectedInstances","getInstancesBindingsByField","setSkinInstanceControllerFromBinding","getMainSkinInstance","getSkinInstance","getSkinSupportedStates","getSkinFieldsValues","getSkinStatesAnimations","extendDataSourceOptionsWith","setStructureProcessor","getInputField","getLabelText","refreshFormInput","reArrangeTheTemplates","requestArrangement","addArrangementRequest","getArrangementRequestName","getArrangementOptions","getDataSource","getDataSourceName","getDataSourceDefinition","updateSkinBindingFromEditingTemplate","refreshTemplates","refreshTemplatesSize","resetItemTemplateSize","getDefaultTemplate","getFieldsTemplates","getDataItemInstanceId","getInstanceController","getItemsControllers","getPcTemplateSize","adjustDataListToMobile","calculateItemSizeOnMobile","updateDataListToMobile","removeDataListFromMobile","shouldRequestArrangementFromSizeChange","setContentSizeChangeBinding","shouldReferToStateValue","refreshSelectedItem","unSelectAll","onItemSet","getPotentialSelectedMenuItemId","isConnectedToNavigatable","getNavigableInstance","isNavigationButton","disableStyleProperties","getNavigationButtonTemplate","refreshCustomZIndex","refreshFixedState","getLoadingRequirements","navigateTo","navigateToTabIndex","navigate","showItem","getUrlAddressForPage","getNavigatableInstances","getAutoNavigationDuration","getItemsCollection","getFieldsCollection","getItemsInformation","getFieldsInformation","startAutoNavigation","stopAutoNavigation","getCurrentPageIndex","shouldMaintainHeightInPreview","getCurrentItem","changeCurrentItem","isPrimary","toggleMobileSupport","isVisibleInMode","isDataListItem","getDataItemId","getDataItem","getFieldName","setDataItemId","getItemMainParent","changeElementSize","setTemplateStructure","getMapController","refreshMapPosition","getMarkersCollection","checkResizeVerticallyAllowed","play","stop","pause","isAutoPlay","getImageLoadingOptions","getImageSizeInLayout","hideImageLoadingOverlay","showImageLoadingOverlay","addItem","removeCurrentItem","removeItem","getJMMLButton","getJoinMyMailingListValue","isPageChildInstance","isReattchable","isMainSection","calculateActualOffset","getCalculatedOrder","addElementToPage","getDisplayName","refreshContentLayout","getPageContentLayout","addSectionElement","removeSectionElement","getSectionsByPage","getVisibleSectionsByPage","getInstancesByField","getStyleStateAffectedInstances","getDelegatedContentInstance","getInitializedTargetConnections","getIFrameUrl","isScrollableIFrame","shouldRenderIFrame","reloadIFrame","isGrowingEnabled","setDocumentSize","setAppSize","setAppContentSize","createCallInfo","getAppDefinition","getAppSettingPrefix","getAppSettings","getAppSettingValue","setAppSettingValue","isQueryParamSetting","getApiManager","reloadApp","bindAppSettingProperty","ToSeoUrl","setCategoryId","getClickedItem","initClickHandler","initDataChangeHandler","findGalleryChildren"], aggregated:[{66:[2,10,12,16,25,66],67:null,68:null,69:[2,10,12,25,16,69],70:[2,10,12,25],71:[2,10,12,25,16,69],72:[2,10,12,25,16,69],73:[2,22,10,12,73],74:[2,25],75:2,76:[2,76],77:2,78:[2,10,12,25],79:2,80:2,81:2,82:2,83:2,84:2,85:2,86:2,87:[2,22],88:[2,22,10,12,25,63],89:[2,22,3],90:[2,10,12,25,13,22,3,28,49,90],91:[2,10,12,25,13,22,3,28,49,58,91],92:[2,10,12,25,13,22,3,28,49,58,92],93:[2,10,12,25,13,22,3,28,49],94:[2,10,12,25,13,22,3,28,49],95:[2,10,12,25,13,22,3,28,38,95],96:[2,10,12,25,13,22,3,28,38],97:[2,10,12,25,13,22,3,28,38],98:[2,10,12,25,13,22,3,28],99:[2,10,12,25,13,22,3,28],100:[2,10,12,25,13,22,3,28],101:[2,10,12,16,25,101],102:[2,10,12,16,25,102],103:[2,10,12,22,25],104:[2,25,104],105:[2,10,12,22,25],106:[2,10,12,25,106],107:[2,10,25],108:[2,22,25,108],109:[2,22,25,10,12,109],110:[2,10,12,25,22],111:[2,10,12,25],112:[2,10,12,25],113:[2,10,12,25,13,22,3,28,38],114:[2,10,12,25,22],115:[2,10,12,25,22],116:[2,10,12,25,63,13,22,3,28],117:[2,10,12,25,63,13,22,3,28],118:[2,10,12,25,13,22,3,28],119:[2,10,12,22,42,25,119],120:[2,10,12,22,42,25,120],121:[2,10,12,22,42,25,121],122:[2,10,12,22,25,122],123:[2,40,10,12,22,25,123],124:[2,22,3],125:[2,22,3],126:[2,22,3],127:[2,22,3],128:[2,22,3],129:[2,22,3],130:[2,22,3],131:[2,22,3],132:[2,22,3],133:[2,22,3],134:[2,22,3],135:[2,22,3],136:[2,22,3],137:[2,10,12,22,25],138:[2,10,12,22,25],139:[2,10,12,22,25],140:[2,10,12,22,25],141:[2,10,12,22,25],142:[2,10,12,22,25],143:[2,22,3,50],144:[2,10,12,46],145:[2,10,12,46],146:[2,10,12,46],147:[2,10,12,46],148:[2,10,12,46],149:[2,10,12,46],150:[2,10,12,46],151:[2,10,12,46],152:[2,10,12,46],153:[2,10,12,46],154:[2,10,12,46],155:[2,10,12,25,46],156:[2,10,12,25,46],157:[2,10,12,46],158:[2,10,12,46],159:[2,10,12,46],160:[2,10,12,25,46],161:[2,10,12,25,46,161],162:[2,25,162],163:[2,10,12,46],164:[2,22,3],165:[2,22,3],166:[2,22,3],167:[2,10,12,25,13,22,3,28],168:[2,10,12,25,13,22,3,28],169:[2,10,12,25,13,22,3,28],170:[2,10,12,25,13,22,3,28],171:[2,10,12,25,13,22,3,28],172:[2,10,12,25,13,22,3,28],173:[2,10,12,25,13,22,3,28],174:[2,25,174],175:[2,10,12,25],176:[2,10,12,25,22,42],177:[2,22,3],178:[2,22,3],179:[2,10,12,25,13,22,3,28,38],180:[2,10,12,16,25,66],181:[2,10,12,16,25,66],182:[2,10,12,25,13,22,3,28,38],183:[2,22,3,16],184:[2,22,3,16],185:[2,10,12,22,25],186:[2,10,12,22,25]},{66:[2,20,24,17],67:null,68:null,69:[2,24,17,35,20,69],70:[2,24,17,35,20,70],71:[2,24,17,35,20,69],72:[2,24,17,35,20,69],73:[2,73],74:[2,17,20,24,74],75:[2,17,24,20],76:[2,17,24,20,35,36],77:[2,17,24,20,35,36],78:[2,17,20,24],79:[2,17,24,20,35,36],80:[2,17,24,20,35,36],81:[2,17,24,20,35,36],82:[2,17,24,20,35,36],83:[2,17,24,20,35,36],84:[2,17,24,20,35,36],85:[2,20,24,17,37,85],86:[2,20,24,37],87:[2,20,17,24,87],88:[2,17,33,24,20,88],89:[2,17,20,24],90:[2,17,24,5,27,90],91:[2,17,24,5,27],92:[2,17,24,5,27,92],93:[2,17,24,5,27],94:[2,17,24,5,27],95:[2,17,24,5,27,8],96:[2,17,24,5,27,20,8],97:[2,17,24,5,27,8,20],98:[2,17,24,5,27],99:[2,17,24,5,27],100:[2,17,24,5,27],101:[2,20,24,17,33],102:[2,20,24,17,33],103:[2,17,20,24,41],104:[2,24,20,17,104],105:[2,17,20,24,105],106:[2,17,24,27,20,106],107:[2,24,17,20,107],108:[2,17,20,24,8],109:2,110:[2,20,17,24],111:[2,17,20,24],112:[2,17,20,24],113:[2,17,24,5,27,8],114:[2,20,17,24],115:[2,20,17,24],116:[2,17,33,24,5,27,64,116],117:[2,17,33,24,5,27,64],118:[2,17,24,5,27],119:[2,17,42],120:[2,17,42],121:[2,17,42],122:[2,17,24],123:[2,33,20,24],124:[2,41,17,20,24,52,124],125:[2,41,17,20,24,52],126:[2,5,17,20,24],127:[2,5,20,35,59,17,24,127],128:[2,41,17,20,24,52],129:[2,41,17,20,24,52],130:[2,41,17,20,24,52],131:[2,41,17,20,24,52],132:[2,41,17,20,24,52],133:[2,41,17,20,24,52],134:[2,41,17,20,24,52],135:[2,41,17,20,24,52],136:[2,41,17,20,24,52],137:[2,20,24,41],138:[2,20,24,41],139:[2,20,24,41],140:[2,20,24,41],141:[2,20,24,33,41,141],142:[2,20,24,33,142],143:[2,5,17,20,24],144:[2,17,24],145:[2,17,24],146:[2,17,24],147:[2,17,24],148:[2,17,24],149:[2,17,24],150:[2,17,24],151:[2,17,24],152:[2,17,24],153:[2,17,24],154:[2,17,24],155:[2,17,24],156:[2,17,24],157:[2,17,24],158:[2,17,24],159:[2,17,24],160:[2,17,24],161:[2,17,24,27],162:[2,17,24,27],163:[2,17,24],164:[2,5,20,35,59,17,24,127],165:[2,5,20,35,59,17,24,127],166:[2,5,20,35,59,17,24,127],167:[2,17,24,5,27],168:[2,17,24,5,27],169:[2,17,24,5,27],170:[2,17,24,5,27],171:[2,17,24,5,27],172:[2,17,24,5,27],173:[2,17,24,5,27],174:[2,17,20,24,174],175:[2,24,17,35,175],176:[2,24,17,35,175,42],177:[2,5,20,35,59,17,24,127],178:[2,5,20,35,59,17,24,127],179:[2,17,24,5,27,8,65,179],180:[2,20,24,17],181:[2,20,24,17],182:[2,17,24,5,27,8,65,182],183:[2,5,20,35,59,17,24,127],184:[2,5,20,35,59,17,24,127],185:[2,17,20,24,105,5],186:[2,17,20,24,105,186]},{66:[2,10],67:null,68:null,69:[2,10],70:[2,10,54],71:[2,10,71],72:[2,10,72],73:[2,10,73],74:2,75:2,76:2,77:2,78:[2,10],79:2,80:2,81:2,82:2,83:2,84:2,85:2,86:2,87:[2,87],88:[2,10],89:2,90:[2,10,13,5,28],91:[2,10,13,5,28],92:[2,10,13,5,28],93:[2,10,13,5,28],94:[2,10,13,5,28],95:[2,10,13,5,28,8],96:[2,10,13,5,28,8],97:[2,10,13,5,28,8],98:[2,10,13,5,28],99:[2,10,13,5,28],100:[2,10,13,5,28],101:[2,10],102:[2,10],103:[2,10],104:[2,104],105:[2,10],106:[2,10,106],107:[2,10],108:[2,8],109:[2,10],110:[2,10],111:[2,10],112:[2,10],113:[2,10,13,5,28,8],114:[2,10],115:[2,10],116:[2,10,13,5,28],117:[2,10,13,5,28],118:[2,10,13,5,28],119:[2,10],120:[2,10],121:[2,10],122:[2,10,122],123:[2,10],124:2,125:2,126:[2,5],127:[2,5],128:2,129:2,130:2,131:2,132:2,133:2,134:2,135:2,136:2,137:[2,10],138:[2,10],139:[2,10],140:[2,10],141:[2,10],142:[2,10],143:[2,5],144:[2,10],145:[2,10],146:[2,10],147:[2,10],148:[2,10],149:[2,10],150:[2,10],151:[2,10],152:[2,10],153:[2,10],154:[2,10],155:[2,10],156:[2,10],157:[2,10],158:[2,10],159:[2,10],160:[2,10],161:[2,10],162:2,163:[2,10],164:[2,5],165:[2,5],166:[2,5],167:[2,10,13,5,28],168:[2,10,13,5,28],169:[2,10,13,5,28],170:[2,10,13,5,28],171:[2,10,13,5,28],172:[2,10,13,5,28],173:[2,10,13,5,28],174:2,175:[2,10,175],176:[2,10,175],177:[2,5],178:[2,5],179:[2,10,13,5,28,8],180:[2,10],181:[2,10],182:[2,10,13,5,28,8],183:[2,5],184:[2,5],185:[2,10,5],186:[2,10]},{66:null,67:null,68:null,69:null,70:null,71:null,72:null,73:null,74:null,75:null,76:null,77:null,78:null,79:null,80:null,81:null,82:null,83:null,84:null,85:null,86:null,87:null,88:null,89:null,90:null,91:null,92:null,93:null,94:null,95:null,96:null,97:null,98:null,99:null,100:null,101:null,102:null,103:null,104:null,105:null,106:null,107:null,108:null,109:null,110:null,111:null,112:null,113:null,114:null,115:null,116:null,117:null,118:null,119:42,120:42,121:42,122:122,123:null,124:null,125:null,126:null,127:null,128:null,129:null,130:null,131:null,132:null,133:null,134:null,135:null,136:null,137:null,138:null,139:null,140:null,141:null,142:null,143:null,144:null,145:null,146:null,147:null,148:null,149:null,150:null,151:null,152:null,153:null,154:null,155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:null,165:null,166:null,167:null,168:null,169:null,170:null,171:null,172:null,173:null,174:null,175:null,176:42,177:null,178:null,179:null,180:null,181:null,182:null,183:null,184:null,185:null,186:null},{66:null,67:null,68:null,69:null,70:null,71:null,72:null,73:null,74:null,75:null,76:null,77:null,78:null,79:null,80:null,81:null,82:null,83:null,84:null,85:null,86:null,87:null,88:null,89:null,90:null,91:null,92:null,93:null,94:null,95:null,96:null,97:null,98:null,99:null,100:null,101:null,102:null,103:null,104:null,105:null,106:null,107:null,108:null,109:null,110:null,111:null,112:null,113:null,114:null,115:null,116:null,117:null,118:null,119:null,120:null,121:null,122:null,123:null,124:null,125:null,126:null,127:null,128:null,129:null,130:null,131:null,132:null,133:null,134:null,135:null,136:null,137:null,138:null,139:null,140:null,141:null,142:null,143:null,144:null,145:null,146:null,147:null,148:null,149:null,150:null,151:null,152:null,153:null,154:null,155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:null,165:null,166:null,167:null,168:null,169:null,170:null,171:null,172:null,173:null,174:null,175:null,176:null,177:null,178:null,179:null,180:null,181:null,182:null,183:183,184:null,185:null,186:null},{66:[19,24],67:null,68:null,69:[24,19],70:[24,19],71:[24,19],72:[24,19],73:null,74:[19,24],75:[24,19],76:[24,19],77:[24,19],78:[19,24],79:[24,19],80:[24,19],81:[24,19],82:[24,19],83:[24,19],84:[24,19],85:[19,24],86:[19,24],87:[19,24],88:[24,19],89:[19,24],90:24,91:24,92:24,93:24,94:24,95:24,96:[24,19],97:[24,19],98:24,99:24,100:24,101:[19,24],102:[19,24],103:[19,24],104:[24,19],105:[19,24],106:[24,19],107:[24,19],108:[19,24],109:null,110:[19,24],111:[19,24],112:[19,24],113:24,114:[19,24],115:[19,24],116:24,117:24,118:24,119:null,120:null,121:null,122:24,123:[19,24],124:[19,24],125:[19,24],126:[19,24],127:[19,24],128:[19,24],129:[19,24],130:[19,24],131:[19,24],132:[19,24],133:[19,24],134:[19,24],135:[19,24],136:[19,24],137:[19,24],138:[19,24],139:[19,24],140:[19,24],141:[19,24],142:[19,24],143:[19,24],144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,155:24,156:24,157:24,158:24,159:24,160:24,161:24,162:24,163:24,164:[19,24],165:[19,24],166:[19,24],167:24,168:24,169:24,170:24,171:24,172:24,173:24,174:[19,24],175:24,176:24,177:[19,24],178:[19,24],179:24,180:[19,24],181:[19,24],182:24,183:[19,24],184:[19,24],185:[19,24],186:[19,24]},{66:[2,17],67:null,68:null,69:[2,17,69],70:[2,17],71:[2,17,69],72:[2,17,69],73:2,74:[2,17],75:[2,17],76:[2,17],77:[2,17],78:[2,17],79:[2,17],80:[2,17],81:[2,17],82:[2,17],83:[2,17],84:[2,17],85:[2,17,85],86:2,87:[2,17,87],88:[2,17],89:[2,51,17],90:[2,17,28],91:[2,17,28,91],92:[2,17,28],93:[2,17,28],94:[2,17,28],95:[2,17,28],96:[2,17,28],97:[2,17,28],98:[2,17,28],99:[2,17,28],100:[2,17,28],101:[2,17],102:[2,17],103:[2,17],104:[2,17,104],105:[2,17,105],106:[2,17],107:[2,17],108:[2,17],109:2,110:[2,17],111:[2,17],112:[2,17],113:[2,17,28],114:[2,17],115:[2,17],116:[2,17,28],117:[2,17,28],118:[2,17,28],119:[2,17],120:[2,17],121:[2,17],122:[2,17],123:2,124:[2,51,17],125:[2,51,17],126:[2,51,17],127:[2,51,17,127],128:[2,51,17],129:[2,51,17],130:[2,51,17],131:[2,51,17],132:[2,51,17],133:[2,51,17],134:[2,51,17],135:[2,51,17],136:[2,51,17],137:2,138:2,139:2,140:2,141:2,142:2,143:[2,51,17],144:[2,17,46],145:[2,17,46],146:[2,17,46],147:[2,17,46],148:[2,17,46],149:[2,17,46],150:[2,17,46],151:[2,17,46],152:[2,17,46],153:[2,17,46],154:[2,17,46],155:[2,17,46],156:[2,17,46],157:[2,17,46],158:[2,17,46],159:[2,17,46],160:[2,17,46],161:[2,17,46],162:[2,17],163:[2,17,46],164:[2,51,17,127],165:[2,51,17,127],166:[2,51,17,127],167:[2,17,28],168:[2,17,28],169:[2,17,28],170:[2,17,28],171:[2,17,28],172:[2,17,28],173:[2,17,28],174:[2,17],175:[2,17],176:[2,17],177:[2,51,17,127],178:[2,51,17,127],179:[2,17,28],180:[2,17],181:[2,17],182:[2,17,28],183:[2,51,17,127],184:[2,51,17,127],185:[2,17,105],186:[2,17,105]},{66:2,67:null,68:null,69:[2,69],70:2,71:[2,69],72:[2,69],73:2,74:2,75:2,76:2,77:2,78:2,79:2,80:2,81:2,82:2,83:2,84:2,85:2,86:2,87:[2,87],88:2,89:[2,51],90:[2,28],91:[2,28,91],92:[2,28],93:[2,28],94:[2,28],95:[2,28],96:[2,28],97:[2,28],98:[2,28],99:[2,28],100:[2,28],101:2,102:2,103:2,104:[2,104],105:[2,105],106:2,107:2,108:2,109:2,110:2,111:2,112:2,113:[2,28],114:2,115:2,116:[2,28],117:[2,28],118:[2,28],119:2,120:2,121:2,122:2,123:2,124:[2,51],125:[2,51],126:[2,51],127:[2,51,127],128:[2,51],129:[2,51],130:[2,51],131:[2,51],132:[2,51],133:[2,51],134:[2,51],135:[2,51],136:[2,51],137:2,138:2,139:2,140:2,141:2,142:2,143:[2,51],144:[2,46],145:[2,46],146:[2,46],147:[2,46],148:[2,46],149:[2,46],150:[2,46],151:[2,46],152:[2,46],153:[2,46],154:[2,46],155:[2,46],156:[2,46],157:[2,46],158:[2,46],159:[2,46],160:[2,46],161:[2,46],162:2,163:[2,46],164:[2,51,127],165:[2,51,127],166:[2,51,127],167:[2,28],168:[2,28],169:[2,28],170:[2,28],171:[2,28],172:[2,28],173:[2,28],174:2,175:2,176:2,177:[2,51,127],178:[2,51,127],179:[2,28],180:2,181:2,182:[2,28],183:[2,51,127],184:[2,51,127],185:[2,105],186:[2,105]},{66:[2,17],67:null,68:null,69:[2,17],70:[2,17],71:[2,17],72:[2,17],73:2,74:[2,17,74],75:[2,17],76:[2,17],77:[2,17],78:[2,17],79:[2,17],80:[2,17],81:[2,17],82:[2,17],83:[2,17],84:[2,17],85:[2,17],86:2,87:[2,17],88:[2,17],89:[2,17],90:[2,17,28,90],91:[2,17,28,91],92:[2,17,28],93:[2,17,28],94:[2,17,28],95:[2,17,28,38],96:[2,17,28,38],97:[2,17,28,38],98:[2,17,28],99:[2,17,28],100:[2,17,28],101:[2,17],102:[2,17],103:[2,17],104:[2,17],105:[2,17],106:[2,17],107:[2,17,107],108:[2,17],109:2,110:[2,17],111:[2,17],112:[2,17],113:[2,17,28,38],114:[2,17],115:[2,17],116:[2,17,28],117:[2,17,28],118:[2,17,28,118],119:[2,17],120:[2,17],121:[2,17],122:[2,17,122],123:2,124:[2,17],125:[2,17],126:[2,17],127:[2,17],128:[2,17],129:[2,17],130:[2,17],131:[2,17],132:[2,17],133:[2,17],134:[2,17],135:[2,17],136:[2,17],137:2,138:2,139:2,140:2,141:2,142:2,143:[2,17],144:[2,17],145:[2,17],146:[2,17],147:[2,17],148:[2,17],149:[2,17],150:[2,17],151:[2,17],152:[2,17],153:[2,17],154:[2,17],155:[2,17],156:[2,17],157:[2,17],158:[2,17],159:[2,17],160:[2,17],161:[2,17],162:[2,17],163:[2,17],164:[2,17],165:[2,17],166:[2,17],167:[2,17,28],168:[2,17,28],169:[2,17,28],170:[2,17,28],171:[2,17,28],172:[2,17,28],173:[2,17,28],174:[2,17],175:[2,17],176:[2,17],177:[2,17],178:[2,17],179:[2,17,28,38],180:[2,17],181:[2,17],182:[2,17,28,38],183:[2,17],184:[2,17],185:[2,17],186:[2,17]},{66:[1,2,19,20],67:1,68:1,69:[1,2,19,20],70:[1,2,19,20],71:[1,2,19,20],72:[1,2,19,20],73:[1,2,73],74:[1,2,19,20],75:[1,2,19,20],76:[1,2,19,20],77:[1,2,19,20],78:[1,2,19,20],79:[1,2,19,20],80:[1,2,19,20],81:[1,2,19,20],82:[1,2,19,20],83:[1,2,19,20],84:[1,2,19,20],85:[1,2,19,20],86:[1,2,19,20],87:[1,2,19,20,87],88:[1,2,19,20],89:[1,2,19,20],90:[1,2],91:[1,2,58],92:[1,2,58],93:[1,2],94:[1,2],95:[1,2,8],96:[1,2,19,20,8],97:[1,2,8,19,20],98:[1,2],99:[1,2,99],100:[1,2],101:[1,2,19,20],102:[1,2,19,20],103:[1,2,19,20],104:[1,2,19,20,104],105:[1,2,19,20],106:[1,2,19,20],107:[1,2,19,20],108:[1,2,19,20,8,108],109:[1,2],110:[1,2,19,20],111:[1,2,19,20],112:[1,2,19,20],113:[1,2,8],114:[1,2,19,20,56],115:[1,2,19,20,57],116:[1,2],117:[1,2],118:[1,2,118],119:[1,2],120:[1,2],121:[1,2,121],122:[1,2,122],123:[1,2,19,20],124:[1,2,19,20],125:[1,2,19,20],126:[1,2,19,20],127:[1,2,19,20,127],128:[1,2,19,20],129:[1,2,19,20],130:[1,2,19,20],131:[1,2,19,20],132:[1,2,19,20],133:[1,2,19,20],134:[1,2,19,20],135:[1,2,19,20],136:[1,2,19,20,136],137:[1,2,19,20],138:[1,2,19,20],139:[1,2,19,20],140:[1,2,19,20],141:[1,2,19,20],142:[1,2,19,20],143:[1,2,19,20,50],144:[1,2,46],145:[1,2,46],146:[1,2,46],147:[1,2,46],148:[1,2,46],149:[1,2,46],150:[1,2,46],151:[1,2,46],152:[1,2,46],153:[1,2,46],154:[1,2,46],155:[1,2,46],156:[1,2,46],157:[1,2,46],158:[1,2,46],159:[1,2,46],160:[1,2,46],161:[1,2,46],162:[1,2],163:[1,2,46],164:[1,2,19,20,127,56],165:[1,2,19,20,127,57],166:[1,2,19,20,127],167:[1,2],168:[1,2],169:[1,2],170:[1,2],171:[1,2],172:[1,2],173:[1,2],174:[1,2,19,20],175:[1,2],176:[1,2],177:[1,2,19,20,127],178:[1,2,19,20,127],179:[1,2,8],180:[1,2,19,20],181:[1,2,19,20],182:[1,2,8],183:[1,2,19,20,127],184:[1,2,19,20,127],185:[1,2,19,20],186:[1,2,19,20]},{66:2,67:null,68:null,69:2,70:2,71:2,72:2,73:2,74:2,75:2,76:2,77:2,78:2,79:2,80:2,81:2,82:2,83:2,84:2,85:2,86:2,87:[2,87],88:[2,60],89:2,90:[2,90],91:2,92:2,93:2,94:2,95:2,96:[2,60],97:[2,60],98:2,99:2,100:2,101:2,102:2,103:2,104:2,105:2,106:[2,60],107:[2,60],108:[2,108],109:2,110:2,111:2,112:2,113:2,114:2,115:2,116:2,117:2,118:2,119:[2,42,119],120:[2,42,120],121:[2,42,121],122:[2,122],123:2,124:2,125:2,126:2,127:2,128:2,129:2,130:2,131:2,132:2,133:2,134:2,135:2,136:2,137:2,138:2,139:2,140:2,141:2,142:2,143:[2,50],144:[2,46],145:[2,46],146:[2,46],147:[2,46],148:[2,46],149:[2,46],150:[2,46],151:[2,46],152:[2,46],153:[2,46],154:[2,46],155:[2,46],156:[2,46],157:[2,46],158:[2,46],159:[2,46],160:[2,46],161:[2,46],162:2,163:[2,46],164:2,165:2,166:2,167:2,168:2,169:2,170:2,171:2,172:2,173:2,174:2,175:2,176:[2,42,176],177:2,178:2,179:2,180:2,181:2,182:2,183:2,184:2,185:2,186:2},{66:null,67:null,68:null,69:null,70:null,71:null,72:null,73:null,74:null,75:75,76:[36,76],77:36,78:null,79:36,80:36,81:36,82:36,83:36,84:36,85:null,86:null,87:null,88:null,89:null,90:null,91:null,92:null,93:null,94:null,95:null,96:null,97:null,98:null,99:null,100:null,101:null,102:null,103:null,104:null,105:null,106:null,107:null,108:null,109:null,110:null,111:null,112:null,113:null,114:null,115:null,116:null,117:null,118:null,119:null,120:null,121:null,122:null,123:null,124:null,125:null,126:null,127:null,128:null,129:null,130:null,131:null,132:null,133:null,134:null,135:null,136:null,137:null,138:null,139:null,140:null,141:null,142:null,143:null,144:null,145:null,146:null,147:null,148:null,149:null,150:null,151:null,152:null,153:null,154:null,155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:null,165:null,166:null,167:null,168:null,169:null,170:null,171:null,172:null,173:null,174:null,175:null,176:null,177:null,178:null,179:null,180:null,181:null,182:null,183:null,184:null,185:null,186:null},{66:[2,10,66],67:null,68:null,69:[2,10,69],70:[2,10],71:[2,10,69],72:[2,10,69],73:[2,10],74:2,75:2,76:2,77:2,78:[2,10],79:2,80:2,81:2,82:2,83:2,84:2,85:2,86:2,87:2,88:[2,10],89:2,90:[2,10,13,28,90],91:[2,10,13,28],92:[2,10,13,28],93:[2,10,13,28],94:[2,10,13,28],95:[2,10,13,28,38],96:[2,10,13,28,38],97:[2,10,13,28,38],98:[2,10,13,28],99:[2,10,13,28],100:[2,10,13,28],101:[2,10],102:[2,10],103:[2,10],104:2,105:[2,10],106:[2,10,106],107:[2,10],108:2,109:[2,10],110:[2,10],111:[2,10],112:[2,10],113:[2,10,13,28,38],114:[2,10],115:[2,10],116:[2,10,13,28],117:[2,10,13,28],118:[2,10,13,28],119:[2,10],120:[2,10],121:[2,10],122:[2,10],123:[2,10],124:2,125:2,126:2,127:2,128:2,129:2,130:2,131:2,132:2,133:2,134:2,135:2,136:2,137:[2,10],138:[2,10],139:[2,10],140:[2,10],141:[2,10],142:[2,10],143:2,144:[2,10],145:[2,10],146:[2,10],147:[2,10],148:[2,10],149:[2,10],150:[2,10],151:[2,10],152:[2,10],153:[2,10],154:[2,10],155:[2,10],156:[2,10],157:[2,10],158:[2,10],159:[2,10],160:[2,10],161:[2,10],162:2,163:[2,10],164:2,165:2,166:2,167:[2,10,13,28],168:[2,10,13,28],169:[2,10,13,28,169],170:[2,10,13,28],171:[2,10,13,28],172:[2,10,13,28],173:[2,10,13,28],174:2,175:[2,10],176:[2,10],177:2,178:2,179:[2,10,13,28,38],180:[2,10,66],181:[2,10,66],182:[2,10,13,28,38],183:2,184:2,185:[2,10],186:[2,10]},{66:[2,12],69:[2,12],70:[2,12],71:[2,12],72:[2,12],73:[2,12],74:2,75:2,76:2,77:2,78:[2,12],79:2,80:2,81:2,82:2,83:2,84:2,85:2,86:2,87:2,88:[2,12],89:[2,3],90:[2,12,3],91:[2,12,3],92:[2,12,3],93:[2,12,3],94:[2,12,3],95:[2,12,3],96:[2,12,3],97:[2,12,3],98:[2,12,3],99:[2,12,3],100:[2,12,3],101:[2,12],102:[2,12],103:[2,12],104:2,105:[2,12],106:[2,12],107:2,108:2,109:[2,12],110:[2,12],111:[2,12],112:[2,12],113:[2,12,3],114:[2,12],115:[2,12],116:[2,12,3],117:[2,12,3],118:[2,12,3],119:[2,12],120:[2,12],121:[2,12],122:[2,12],123:[2,12],124:[2,3],125:[2,3],126:[2,3],127:[2,3],128:[2,3],129:[2,3],130:[2,3],131:[2,3],132:[2,3],133:[2,3],134:[2,3],135:[2,3],136:[2,3],137:[2,12],138:[2,12],139:[2,12],140:[2,12],141:[2,12],142:[2,12],143:[2,3],144:[2,12],145:[2,12],146:[2,12],147:[2,12],148:[2,12],149:[2,12],150:[2,12],151:[2,12],152:[2,12],153:[2,12],154:[2,12],155:[2,12],156:[2,12],157:[2,12],158:[2,12],159:[2,12],160:[2,12],161:[2,12],162:2,163:[2,12],164:[2,3],165:[2,3],166:[2,3],167:[2,12,3],168:[2,12,3],169:[2,12,3],170:[2,12,3],171:[2,12,3],172:[2,12,3],173:[2,12,3],174:2,175:[2,12],176:[2,12],177:[2,3],178:[2,3],179:[2,12,3],180:[2,12],181:[2,12],182:[2,12,3],183:[2,3],184:[2,3],185:[2,12],186:[2,12]},{66:null,69:null,70:null,71:null,72:null,73:null,74:null,75:null,76:null,77:null,78:null,79:null,80:null,81:null,82:null,83:null,84:null,85:null,86:null,87:null,88:null,89:null,90:null,91:null,92:null,93:null,94:null,95:null,96:null,97:null,98:null,99:null,100:null,101:101,102:null,103:null,104:null,105:null,106:null,107:null,108:null,109:null,110:null,111:null,112:null,113:null,114:null,115:null,116:null,117:null,118:null,119:null,120:null,121:null,122:null,123:null,124:null,125:null,126:null,127:null,128:null,129:null,130:null,131:null,132:null,133:null,134:null,135:null,136:null,137:null,138:null,139:null,140:null,141:null,142:null,143:null,144:null,145:null,146:null,147:null,148:null,149:null,150:null,151:null,152:null,153:null,154:null,155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:null,165:null,166:null,167:null,168:null,169:null,170:null,171:null,172:null,173:null,174:174,175:null,176:null,177:null,178:null,179:null,180:null,181:null,182:null,183:null,184:null,185:null,186:null},{66:null,69:null,70:null,71:null,72:null,73:null,74:null,75:null,76:null,77:null,78:null,79:null,80:null,81:null,82:null,83:null,84:null,85:null,86:null,87:null,88:null,89:null,90:null,91:null,92:null,93:null,94:null,95:null,96:null,97:null,98:null,99:null,100:null,101:null,102:null,103:null,104:null,105:null,106:null,107:null,108:null,109:null,110:null,111:null,112:null,113:null,114:null,115:null,116:null,117:null,118:null,119:null,120:null,121:null,122:122,123:null,124:null,125:null,126:null,127:null,128:null,129:null,130:null,131:null,132:null,133:null,134:null,135:null,136:null,137:null,138:null,139:null,140:null,141:null,142:null,143:null,144:null,145:null,146:null,147:null,148:null,149:null,150:null,151:null,152:null,153:null,154:null,155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:null,165:null,166:null,167:null,168:null,169:null,170:null,171:null,172:null,173:null,174:null,175:null,176:null,177:null,178:null,179:null,180:null,181:null,182:null,183:null,184:null,185:null,186:null},{66:2,69:2,70:2,71:2,72:2,73:2,74:2,75:2,76:2,77:2,78:2,79:2,80:2,81:2,82:2,83:2,84:2,85:2,86:2,87:2,88:2,89:2,90:2,91:2,92:2,93:2,94:2,95:2,96:2,97:2,98:2,99:2,100:2,101:2,102:2,103:2,104:2,105:2,106:2,107:2,108:2,109:2,110:2,111:2,112:2,113:2,114:2,115:2,116:2,117:2,118:2,119:[2,119],120:[2,120],121:2,122:2,123:2,124:2,125:2,126:2,127:2,128:2,129:2,130:2,131:2,132:2,133:2,134:2,135:2,136:2,137:2,138:2,139:2,140:2,141:2,142:2,143:2,144:2,145:2,146:2,147:2,148:2,149:2,150:2,151:2,152:2,153:2,154:2,155:2,156:2,157:2,158:2,159:2,160:2,161:2,162:2,163:2,164:2,165:2,166:2,167:2,168:2,169:2,170:2,171:2,172:2,173:2,174:2,175:2,176:2,177:2,178:2,179:2,180:2,181:2,182:2,183:2,184:2,185:2,186:2},{66:2,69:2,70:2,71:2,72:2,73:2,74:2,75:2,76:2,77:2,78:2,79:2,80:2,81:2,82:2,83:2,84:2,85:2,86:2,87:2,88:2,89:2,90:2,91:2,92:2,93:2,94:2,95:2,96:2,97:2,98:2,99:2,100:2,101:2,102:2,103:2,104:2,105:2,106:2,107:2,108:2,109:2,110:2,111:2,112:2,113:2,114:2,115:2,116:2,117:2,118:2,119:[2,119],120:[2,120],121:2,122:2,123:2,124:2,125:2,126:2,127:2,128:2,129:2,130:2,131:2,132:2,133:2,134:2,135:2,136:2,137:2,138:2,139:2,140:2,141:2,142:2,143:2,144:2,145:2,146:2,147:2,148:2,149:2,150:2,151:2,152:2,153:2,154:2,155:2,156:2,157:2,158:2,159:2,160:2,161:2,162:2,163:2,164:2,165:2,166:2,167:2,168:2,169:2,170:2,171:2,172:2,173:2,174:2,175:2,176:2,177:2,178:2,179:2,180:2,181:2,182:2,183:2,184:2,185:2,186:2},{66:[20,66],69:[20,69],70:[20,70],71:[20,69,71],72:[20,69,72],73:null,74:[20,74],75:20,76:20,77:20,78:20,79:20,80:20,81:20,82:20,83:20,84:20,85:20,86:20,87:20,88:20,89:20,90:5,91:5,92:5,93:5,94:5,95:5,96:[5,20],97:[5,20],98:5,99:5,100:5,101:20,102:20,103:20,104:20,105:20,106:[20,106],107:[20,107],108:20,109:null,110:20,111:20,112:20,113:5,114:[20,56],115:20,116:5,117:5,118:5,119:null,120:null,121:null,122:null,123:20,124:20,125:20,126:[5,20],127:[5,20],128:20,129:20,130:20,131:20,132:20,133:20,134:20,135:20,136:20,137:20,138:20,139:20,140:20,141:20,142:20,143:[5,20],144:null,145:null,146:null,147:null,148:null,149:null,150:null,151:null,152:null,153:null,154:null,155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:[5,20,56],165:[5,20],166:[5,20],167:5,168:5,169:5,170:5,171:5,172:5,173:5,174:[20,174],175:null,176:null,177:[5,20],178:[5,20],179:5,180:[20,66,180],181:[20,66,180],182:5,183:[5,20],184:[5,20],185:[20,5,185],186:20},{66:10,69:10,70:10,71:10,72:10,73:10,78:10,88:10,90:10,91:10,92:10,93:10,94:10,95:10,96:10,97:10,98:10,99:10,100:10,101:10,102:10,103:10,105:10,106:10,107:[10,107],109:10,110:10,111:10,112:10,113:10,114:10,115:10,116:10,117:10,118:10,119:10,120:10,121:10,122:10,123:10,137:10,138:10,139:10,140:10,141:10,142:10,144:10,145:10,146:10,147:10,148:10,149:10,150:10,151:10,152:10,153:10,154:10,155:10,156:10,157:10,158:10,159:10,160:10,161:10,163:10,167:10,168:10,169:10,170:10,171:10,172:10,173:10,175:10,176:10,179:10,180:10,181:10,182:10,185:10,186:10},{73:[23,73],87:[23,87],88:23,89:23,90:23,91:23,92:23,93:23,94:23,95:23,96:23,97:23,98:23,99:23,100:23,103:23,105:23,108:[23,108],109:23,110:23,113:23,114:23,115:23,116:[23,64],117:[23,64],118:23,119:[23,42],120:[23,42],121:[23,42],122:23,123:23,124:23,125:23,126:23,127:23,128:23,129:23,130:23,131:23,132:23,133:23,134:23,135:23,136:23,137:23,138:23,139:23,140:23,141:23,142:23,143:23,164:23,165:23,166:23,167:23,168:23,169:23,170:23,171:23,172:23,173:23,176:[23,42],177:23,178:23,179:23,182:23,183:23,184:23,185:23,186:23},{73:[23,73],87:[23,87],88:23,89:23,90:23,91:23,92:23,93:23,94:23,95:23,96:23,97:23,98:23,99:23,100:23,103:23,105:23,108:[23,108],109:23,110:23,113:23,114:23,115:23,116:[23,64],117:[23,64],118:23,119:[23,42],120:[23,42],121:[23,42],122:23,123:23,124:23,125:23,126:23,127:23,128:23,129:23,130:23,131:23,132:23,133:23,134:23,135:23,136:23,137:23,138:23,139:23,140:23,141:23,142:23,143:23,164:23,165:23,166:23,167:23,168:23,169:23,170:23,171:23,172:23,173:23,176:[23,42],177:23,178:23,179:23,182:23,183:23,184:23,185:23,186:23},{90:28,91:28,92:28,93:28,94:28,95:28,96:28,97:28,98:28,99:28,100:28,113:28,116:28,117:28,118:28,126:null,127:null,143:null,164:null,165:null,166:null,167:28,168:28,169:28,170:28,171:28,172:28,173:28,177:null,178:null,179:28,182:28,183:null,184:null,185:null},{90:49,91:49,92:49,93:49,94:49,95:null,96:null,97:null,98:null,99:null,100:null,113:null,116:null,117:null,118:118,167:null,168:null,169:null,170:null,171:null,172:null,173:null,179:null,182:null}],aggregatedNames:["onInitializing","onInitialized","onCreation","onDetached","onAttached","onBeforePageOpen","updateInstanceToViewPort","removeInstanceFromViewPort","adjustInstanceToViewPort","switchToPreview","onRemove","onPropertyChange","onPropertiesChanged","changeMobileSupportState","onContentSizeChange","onElementAddedToContainer","addFixedState","removeFixedState","onBoundValueReady","onImageBoxCreated","onChildElementRemoved","onChildElementAdded","onDataSourceRefresh","setItem"]}});