/*! Copyright © 2020 Infopark Group GmbH (scrivito.com) */!function(e){var t={};function n®{if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:“Module”}),Object.defineProperty(e,“__esModule”,{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&“object”==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r®,Object.defineProperty(r,“default”,{enumerable:!0,value:e}),2&t&&“string”!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,“a”,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=“”,n(n.s=743)}([function(e,t,n){“use strict”;n.d(t,“p”,(function(){return f})),n.d(t,“d”,(function(){return m})),n.d(t,“e”,(function(){return _})),n.d(t,“a”,(function(){return s.ArgumentError})),n.d(t,“g”,(function(){return s.InternalError})),n.d(t,“h”,(function(){return s.ResourceNotFoundError})),n.d(t,“i”,(function(){return s.ScrivitoError})),n.d(t,“Q”,(function(){return p})),n.d(t,“G”,(function(){return d})),n.d(t,“I”,(function(){return i})),n.d(t,“O”,(function(){return c})),n.d(t,“M”,(function(){return v})),n.d(t,“F”,(function(){return y})),n.d(t,“x”,(function(){return b})),n.d(t,“D”,(function(){return w})),n.d(t,“E”,(function(){return k})),n.d(t,“o”,(function(){return L})),n.d(t,“q”,(function(){return P})),n.d(t,“N”,(function(){return A})),n.d(t,“R”,(function(){return T})),n.d(t,“y”,(function(){return j})),n.d(t,“f”,(function(){return I})),n.d(t,“c”,(function(){return N})),n.d(t,“z”,(function(){return Y})),n.d(t,“m”,(function(){return R})),n.d(t,“L”,(function(){return H})),n.d(t,“K”,(function(){return F})),n.d(t,“P”,(function(){return B})),n.d(t,“H”,(function(){return G})),n.d(t,“t”,(function(){return $})),n.d(t,“u”,(function(){return U})),n.d(t,“B”,(function(){return V})),n.d(t,“w”,(function(){return K})),n.d(t,“A”,(function(){return J})),n.d(t,“C”,(function(){return q})),n.d(t,“S”,(function(){return X})),n.d(t,“T”,(function(){return ee})),n.d(t,“v”,(function(){return te})),n.d(t,“J”,(function(){return re})),n.d(t,“j”,(function(){return ie})),n.d(t,“b”,(function(){return ae})),n.d(t,“s”,(function(){return se})),n.d(t,“n”,(function(){return ue})),n.d(t,“r”,(function(){return le})),n.d(t,“k”,(function(){return pe})),n.d(t,“l”,(function(){return me}));var r=n(2);function i(e){try{return Object(r.isFunction)(e)?function(e){if(function(e){return!!e._scrivitoPrivateSchema}(e)){return“[class ”e._scrivitoPrivateSchema.name
“]”}if(function(e){var t=e.prototype;return t&&t.isReactComponent}(e)){return’[class React.Component “‘+(e.displayName||e.name)+’”]‘}return a(e.toString())}(e):Object(r.isObject)(e)?function(e){var t=e._scrivitoPrivateContent;if(t&&Object(r.isFunction)(t.toPrettyPrint))return t.toPrettyPrint();if(Object(r.isElement)(e))return“[object HTMLElement ”+o(e.outerHTML)+“]”;return o(e)}(e):o(e)}catch(e){return“”}}function o(e){var t=JSON.stringify(e);return t?a(t):t}function a(e){return e.length>100?e.slice(0,100)+“…”:e}var s=n(52),c=n(58);c.struct.strict=!0,c.interface.strict=!0,c.fail=function(e){throw new TypeError(e)};var u,l=[];function d(e){u?l.push(e):setTimeout(e,0)}function p(e){d((function(){throw e}))}function f(e,t,n){var r=n.docPermalink;return function(){for(var n,i=[],o=0;oe
“‘: ”n
“ ”+a)}}}function h(e,t){var n=t.length,o=e.length;if(o>n)return“Expected ”n
“ arguments, got ”+o;var a=Object(r.flatten)(t.map((function(t,n){var r=t[0],o=t[1],a=e[n];return c.validate(a,o).errors.map((function(e){return function(e,t){var n=function(e,t){var n=“argument ’”e
“‘”;if(0===t.path.length)return n;return“key ’”+t.path.join(“/”)+“‘ in ”+n}(e,t);if(void 0===t.actual)return“Missing required ”n
“.”;if(t.expected===c.Nil)return“Unexpected ”n
“.”;var r=c.getTypeName(t.expected),o=“got ”+i(t.actual)+“, expected type ”r
“.”;return“Unexpected value for ”n
“: ”+o}(r,e)}))})));return a.length>0?a.join(“ ”):void 0}var m=function(){function e(){}return e.prototype.current=function(){return this.currentContext},e.prototype.runWith=function(e,t){var n=this.currentContext;try{return this.currentContext=e,t()}finally{this.currentContext=n}},e}(),_=function(){function e(){var e=this;this.promise=new ie((function(t,n){e.resolve=function(n){e.settled=!0,t(n)},e.reject=function(t){e.settled=!0,n(t)}}))}return e.prototype.isPending=function(){return!this.settled},e}();function v(e){try{return{errorThrown:!1,result:e()}}catch(e){return{errorThrown:!0,error:e}}}var g=!1;function y(){for(var e,t=[],n=0;nt?(r&&(clearTimeout®,r=null),s=u,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,l)),a};return u.cancel=function(){clearTimeout®,s=0,r=i=o=null},u},v.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=w((function(a){if(r&&clearTimeout®,n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=v.delay(o,t,this,a);return i}));return a.cancel=function(){clearTimeout®,r=null},a},v.wrap=function(e,t){return v.partial(t,e)},v.negate=function(e){return function(){return!e.apply(this,arguments)}},v.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n–;)r=e[n].call(this,r);return r}},v.after=function(e,t){return function(){if(–e<1)return t.apply(this,arguments)}},v.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},v.once=v.partial(v.before,2),v.restArguments=w;var I=!{toString:null}.propertyIsEnumerable("toString"),Y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var n=Y.length,r=e.constructor,i=v.isFunction(r)&&r.prototype||s,o="constructor";for(C(e,o)&&!v.contains(t,o)&&t.push(o);n--;)(o=Y[n])in e&&e[o]!==i[o]&&!v.contains(t,o)&&t.push(o)};v.keys=function(e){if(!v.isObject(e))return[];if(h)return h(e);var t=[];for(var n in e)C(e,n)&&t.push(n);return I&&R(e,t),t},v.allKeys=function(e){if(!v.isObject(e))return[];var t=[];for(var n in e)t.push(n);return I&&R(e,t),t},v.values=function(e){for(var t=v.keys(e),n=t.length,r=Array(n),i=0;in
“))==null?”:_.escape(__t))+n’”:r?a+=“‘+n((__t=(”r
“))==null?”:__t)+n’”:i&&(a+=“‘;n”i
“n__p+=’”),t})),a+=“‘;n”,t.variable||(a=“with(obj||{}){n”a
“}n”),a=“var __t,__p=”,__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,”);};n”a
“return __p;n”;try{r=new Function(t.variable||“obj”,“_”,a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,v)},c=t.variable||“obj”;return s.source=“function(”c
“){n”a
“}”,s},v.chain=function(e){var t=v(e);return t._chain=!0,t};var Z=function(e,t){return e._chain?v(t).chain():t};v.mixin=function(e){return v.each(v.functions(e),(function(t){var n=v[t]=e[t];v.prototype[t]=function(){var e=[this._wrapped];return u.apply(e,arguments),Z(this,n.apply(v,e))}})),v},v.mixin(v),v.each([“pop”,“push”,“reverse”,“shift”,“sort”,“splice”,“unshift”],(function(e){var t=a[e];v.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),“shift”!==e&&“splice”!==e||0!==n.length||delete n[0],Z(this,n)}})),v.each([“concat”,“join”,“slice”],(function(e){var t=a[e];v.prototype[e]=function(){return Z(this,t.apply(this._wrapped,arguments))}})),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return v}.apply(t,[]))||(n.exports=r)}()}).call(this,n(41),n(79)(e))},function(e,t,n){“use strict”;n.r(t),n.d(t,“AnyNormalizedSingleTypeInfo”,(function(){return i.AnyNormalizedSingleTypeInfo})),n.d(t,“AnyNormalizedTypeInfo”,(function(){return i.AnyNormalizedTypeInfo})),n.d(t,“AnyNormalizedTypeOptions”,(function(){return i.AnyNormalizedTypeOptions})),n.d(t,“AnyTypeInfo”,(function(){return i.AnyTypeInfo})),n.d(t,“AnyTypeOptions”,(function(){return i.AnyTypeOptions})),n.d(t,“NormalizedTypeInfo”,(function(){return i.NormalizedTypeInfo})),n.d(t,“AttributeType”,(function(){return o.AttributeType})),n.d(t,“BasicAttributeDict”,(function(){return o.BasicAttributeDict})),n.d(t,“BasicAttributeValue”,(function(){return o.BasicAttributeValue})),n.d(t,“BasicAttributeValueForUpdate”,(function(){return o.BasicAttributeValueForUpdate})),n.d(t,“SystemAttributeValue”,(function(){return o.SystemAttributeValue})),n.d(t,“BasicField”,(function(){return s})),n.d(t,“BasicLink”,(function(){return Se})),n.d(t,“BasicLinkAttributes”,(function(){})),n.d(t,“BasicObjFacetValue”,(function(){return m})),n.d(t,“ObjSearchParams”,(function(){})),n.d(t,“BasicObjSearch”,(function(){return b})),n.d(t,“OPERATORS”,(function(){return _})),n.d(t,“BasicSearchValue”,(function(){})),n.d(t,“SearchField”,(function(){})),n.d(t,“SearchOperator”,(function(){})),n.d(t,“Boost”,(function(){})),n.d(t,“BasicObj”,(function(){return ke})),n.d(t,“MaybeBasicObj”,(function(){})),n.d(t,“setLinkHandler”,(function(){return De})),n.d(t,“LinkHandler”,(function(){})),n.d(t,“BasicWidget”,(function(){return ce})),n.d(t,“TransformationDefinition”,(function(){})),n.d(t,“Binary”,(function(){return V})),n.d(t,“BlobMock”,(function(){})),n.d(t,“FutureBinary”,(function(){return F})),n.d(t,“FutureBinaryOptions”,(function(){})),n.d(t,“IdToCopySource”,(function(){})),n.d(t,“SourceSource”,(function(){})),n.d(t,“setBinaryHandler”,(function(){return N})),n.d(t,“BinaryHandler”,(function(){})),n.d(t,“MetadataCollection”,(function(){return z})),n.d(t,“BinaryMetadataValue”,(function(){})),n.d(t,“ObjSearchType”,(function(){return j})),n.d(t,“LinkType”,(function(){return S})),n.d(t,“ObjType”,(function(){return x})),n.d(t,“WidgetType”,(function(){return E})),n.d(t,“BinaryType”,(function(){return T})),n.d(t,“QueryParameters”,(function(){})),n.d(t,“parseQuery”,(function(){return l})),n.d(t,“queryParametersFromUrl”,(function(){return d})),n.d(t,“currentWorkspaceId”,(function(){return re})),n.d(t,“resetCurrentWorkspaceId”,(function(){return oe})),n.d(t,“setCurrentWorkspaceId”,(function(){return ie})),n.d(t,“getPlacementModificationInfos”,(function(){return je})),n.d(t,“PlacementModification”,(function(){}));var r={};n.r®,n.d(r,“deserialize”,(function(){return J}));var i=n(54),o=n(57),a=n(11),s=function(){function e(e,t,n){this.container=e,this.attributeName=t,this.typeInfo=n,this.typeOptions=this.typeInfo[1]||{}}return e.prototype.get=function(){return this.container.get(this.attributeName,this.typeInfo)},e.prototype.update=function(e){var t;this.container.update(((t={})[this.attributeName]=[e,this.typeInfo],t))},e.prototype.getContainer=function(){return this.container},e.prototype.obj=function(){return this.container.obj()},e.prototype.name=function(){return this.attributeName},e.prototype.type=function(){return this.typeInfo[0]},e.prototype.workspaceId=function(){return this.obj().workspaceId()},e.prototype.equals=function(t){return t instanceof e&&(this.container.equals(t.getContainer())&&this.attributeName===t.name())},e.prototype.validClasses=function(){return this.typeOptions.validClasses},e.prototype.getDiff=function(){var e=this.obj();return Object(a.h)(this.workspaceId(),this.attributeName,e.id(),this.container===e?void 0:this.container.id())},e.prototype.toString=function(){var e=this.obj(),t=this.attributeName;return this.container===e?“e
’” is invalid.‘)}(n),o.boost=function(e){var t={};return Object(p.each)(e,(function(e,n){var r=O(n);t[r]=e})),t}(i)),this._query.push(o)}return this},e.prototype.andNot=function(e,t,n){var r=w(e,t,n);return function(e){if(!Object(p.contains)(v,e))throw new c.a(’Negating operator “‘e
’” is invalid.‘)}(t),r.negate=!0,this._query.push®,this},e.prototype.offset=function(e){return this._offset=e,this},e.prototype.order=function(e,t){return void 0===t&&(t=“asc”),this._sortBy=O(e),this._sortDirection=t,this},e.prototype.batchSize=function(e){return this._batchSize=e,this},e.prototype.includeDeleted=function(){return this._includeDeleted=!0,this},e.prototype.count=function(){return this.getObjDataQuery().count()},e.prototype.first=function(){return this.take(1)[0]||null},e.prototype.take=function(e){for(var t=[],n=1;ne
’“ is not camel case.‘);return Object(c.R)(e)}var C=[”limit“,”includeObjs“];var M=c.O.refinement(c.O.Number,(function(e){return e>=0}),”Number (positive)“),D=Object(c.p)(”objSearch.take“,[[”count“,c.O.maybe(M)]],{docPermalink:”js-sdk/ObjSearch-take“}),x=c.O.irreducible(”Obj“,(function(e){return L(e,ke)})),E=c.O.irreducible(”Widget“,(function(e){return L(e,ce)})),S=c.O.irreducible(”Link“,(function(e){return L(e,Se)})),j=c.O.irreducible(”ObjSearch“,(function(e){return L(e,b)})),T=c.O.irreducible(”Binary“,(function(e){return e instanceof V}));function L(e,t){return!!e&&e._scrivitoPrivateContent instanceof t}var P,A=n(7);function N(e){P=e}var I=function(){function e(e,t){void 0===t&&(t={});var n=t.filename;if(this.contentType=t.contentType,e.idToCopy)this.idToCopy=e.idToCopy;else{var r=e.source;this.source=r,this.contentType||(this.contentType=r.type),n||(n=r.name)}n&&(this.filename=n.replace(/[^w-_.$]/g,”-“))}return e.prototype.into=function(e){for(var t=[],n=1;no
’“‘);l=Object(c.t)(u)}else l=u;n[o]=l}return n}var q=new H.LoadableCollection({name:”binary“,state:function(){return A.c.subState(”binary“)},loader:function(e){var t=e[0],n=e[1];return W.e.retrieveBinaryUrls(t,n)}}),V=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n={}),this._id=e,this._isPublic=!!t,this._transformation=n||void 0,this._loadableData=q.get([e,this._transformation])}return e.upload=function(e,t){for(var n=[],r=2;re
’“ is not available for transformed images. Use ”Scrivito.Binary#raw“ to access the untransformed version of the image.‘)},e.prototype.isTransformed=function(){return!!this._transformation},e}(),$=c.O.struct({contentType:c.O.maybe(c.O.String),filename:c.O.maybe(c.O.String)}),G=c.O.refinement(c.O.Object,(function(e){return c.c.is(e)||c.f.is(e)}),”Blob or File“),K=Object(c.p)(”Binary.upload“,[[”source“,G],[”options“,c.O.maybe($)]],{docPermalink:”js-sdk/Binary-static-upload“});function J(e,t,n,r){var i=t[0],o=t[1];switch(n){case”binary“:return function(e,t){if(”binary“===e&&t){var n=t.id,r=”published“===re();return new V(n,r)}return null}(i,o);case”date“:return function(e,t){if(”date“!==e)return null;return Object(c.t)(t)}(i,o);case”float“:return function(e,t){switch(e){case”string“:return t.match(/^-?d+(.d+)?$/)?Q(t):null;case”number“:return Q(t);default:return null}}(i,o);case”enum“:return function(e,t,n){var r=n.values;if(”string“===e&&f.a.contains(r,t))return t;return null}(i,o,r);case”html“:return function(e,t){if(f.a.contains([”html“,”string“],e)&&f.a.isString(t))return t;return”“}(i,o);case”integer“:return function(e,t){switch(e){case”string“:case”number“:return Object(c.u)(t);default:return null}}(i,o);case”link“:return function(e,t){if(”link“!==e||!f.a.isObject(t))return null;return Z(t)}(i,o);case”linklist“:return function(e,t){if(!f.a.isArray(t))return[];return f.a.compact(t.map(Z))}(0,o);case”multienum“:return function(e,t,n){var r=n.values;if(”stringlist“!==e||!Array.isArray(t))return[];return f.a.intersection(t,r)}(i,o,r);case”reference“:return function(e,t,n){if(”reference“===e&&t)return X(t,n);return null}(i,o,e);case”referencelist“:return function(e,t,n){if(”referencelist“!==e)return[];if(!t)return[];var r=t.map((function(e){return X(e,n)}));return f.a.compact®}(i,o,e);case”string“:return function(e,t){if(f.a.contains([”html“,”string“],e)&&f.a.isString(t))return t;return”“}(i,o);case”stringlist“:return function(e,t){if(”stringlist“!==e||!Array.isArray(t))return[];return t}(i,o);case”widgetlist“:return function(e,t,n){if(”widgetlist“!==e)return[];return f.a.map(t,(function(e){return n.widget(e)}))}(i,o,e);default:return null}}function Q(e){var t=parseFloat(e);return Object(c.B)(t)?t:null}function Z(e){var t=f.a.pick(e,”query“,”rel“,”target“,”title“,”url“);”fragment“in e&&(t.hash=e.fragment),”obj_id“in e&&(t.objId=e.obj_id);var n=new Se(t);return n.isBroken()?null:n}function X(e,t){var n=ke.getInWorkspace(t.workspaceId(),e);return n||null}var ee=function(){function e(){}return e.prototype.get=function(e,t){var n=Object(c.R)(e),i=this.getAttributeData(n);return i&&p.isArray(i)||(i=[]),”string“==typeof t?J(this,i,t):J.apply(r,[this,i].concat(t))},e.prototype.serializeAttributes=function(e){var t=this;return p.mapObject(e,(function(e,n){if(function(e){return p.isArray(e)&&”widgetlist“===e[0]}(e)){var r=Object(c.o)(n);return[”widgetlist“,p.invoke(t.get(r,[”widgetlist“]),”serializeAttributes“)]}return e}))},e.prototype.persistWidgets=function(e,t){p.each(t,(function(t){if(function(e){if(!e)return!1;if(!p.isArray(e))return!1;if(e.length<2)return!1;var t=e[1];return p.isArray(t)&&t.length>0&&”widgetlist“===t[0]}(t)){var n=t[0];if(n){var r=p.isArray(n)?n:[n];p.each(r,(function(t){t.isPersisted()||t.persistInObj(e)}))}}}))},e}();function te(e){return p.mapObject(e,(function(e,t){if(Object(c.z)(t))return p.isArray(e)?e:[e];if(!p.isArray(e))throw new c.g(”Value for “t
” should be a tuple: [value, typeInfo]“);var n=e[0],r=e[1];return”string“==typeof r?[n,[r]]:[n,r]}))}var ne;function re(){return ne||”published“}function ie(e){ne=e}function oe(){ne=void 0}var ae,se=(ae=function(e,t){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ae(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ce=function(e){function t(t){var n=e.call(this)||this;return n._attributesToBeSaved=te(t),function(e){if(!e)throw new c.a(’Please provide a widget class as the ”_objClass“ property.‘)}(t._objClass),n}return se(t,e),t.build=function(e,n){var r=Object.create(t.prototype);return r._obj=n,r._id=e,r},t.newWithSerializedAttributes=function(e){var n={},r={};f.a.each(e,(function(e,i){if(”_obj_class“!==i)if(f.a.isArray(e)&&”widgetlist“===f.a.first(e)){var o=f.a.map(f.a.last(e),(function(e){return t.newWithSerializedAttributes(e)})),a=Object(c.o)(i);n[a]=[o,[”widgetlist“]]}else r[i]=e;else n._objClass=[e]}));var i=new t(n);return i.preserializedAttributes=r,i},t.prototype.id=function(){return this._failIfNotPersisted(),this._id},t.prototype.objClass=function(){return this.isPersisted()?this.getAttributeData(”_obj_class“):this._attributesToBeSaved._objClass[0]},t.prototype.obj=function(){return this._failIfNotPersisted(),this._obj},t.prototype.widget=function(e){return this.obj().widget(e)},t.prototype.workspaceId=function(){return this.obj().workspaceId()},t.prototype.modification=function(){return Object(a.k)(re(),this.obj().id(),this.id())},t.prototype.update=function(e){var t=this,n=te(e);Object(A.r)((function(){t.persistWidgets(t.obj(),n);var e=de(n);t._updateSelf(e)}))},t.prototype.insertBefore=function(e){e.obj().insertWidget(this,{before:e})},t.prototype.insertAfter=function(e){e.obj().insertWidget(this,{after:e})},t.prototype.remove=function(){this.obj().removeWidget(this)},t.prototype.copy=function(){return this.isPersisted()?this._copyPersisted():this._copyUnpersisted()},t.prototype.persistInObj=function(e){this.persistWidgets(e,this._attributesToBeSaved);var t=de(this._attributesToBeSaved);f.a.extend(t,this.preserializedAttributes||{}),this._obj=e,this._id=e.generateWidgetId(),this._updateSelf(t),this._executeDidPersistCallback()},t.prototype.isPersisted=function(){return!!this._obj},t.prototype.onDidPersist=function(e){if(this.isPersisted())throw new c.i(’Cannot call ”onDidPersist“ of an already persisted widget’);this._onDidPersistCallback=e},t.prototype.hasOnDidPersistCallback=function(){return!!this._onDidPersistCallback},Object.defineProperty(t.prototype,”attributesToBeSaved“,{get:function(){return this._attributesToBeSaved},enumerable:!0,configurable:!0}),t.prototype.finishSaving=function(){return this.obj().finishSaving()},t.prototype.equals=function(e){return e instanceof t&&(this.id()===e.id()&&this.obj().id()===e.obj().id())},t.prototype.containingField=function(){return this.obj().fieldContainingWidget(this)},t.prototype.toPrettyPrint=function(){return”[object “+this.objClass()+‘ id=”’+this.id()+‘“ objId=”’+this.obj().id()+‘“]’},t.prototype.getAttributeData=function(e){return this.obj().getWidgetAttribute(this.id(),e)},t.prototype.getData=function(){return this.obj().getWidgetData(this.id())},t.prototype.serializeAttributes=function(){return e.prototype.serializeAttributes.call(this,this.getData())},t.prototype._failIfNotPersisted=function(){if(!this.isPersisted())throw new c.i(”Can not access a new widget before it has been saved.“)},t.prototype._updateSelf=function(e){var t,n={_widgetPool:[(t={},t[this.id()]=e,t)]};this.obj().update(n)},t.prototype._executeDidPersistCallback=function(){this._onDidPersistCallback&&(this._onDidPersistCallback(this),delete this._onDidPersistCallback)},t.prototype._copyPersisted=function(){var e=this.serializeAttributes();return t.newWithSerializedAttributes(e)},t.prototype._copyUnpersisted=function(){var e=new t(f.a.mapObject(this._attributesToBeSaved,(function(e){var t=e[0],n=e[1];return n&&”widgetlist“===n[0]?[f.a.invoke(t,”copy“),n]:[t,n]})));return this._onDidPersistCallback&&e.onDidPersist(this._onDidPersistCallback),e},t}(ee);function ue(e){if(e instanceof Se)return!0;if(!p.isObject(e))return!1;var t=p.without(p.keys(e),”hash“,”obj_id“,”query“,”rel“,”target“,”title“,”url“);return p.isEmpty(t)}function le(e){var t,n=e instanceof Se?{rel:(t=e).rel()||void 0,query:t.query(),target:t.target(),title:t.title(),url:t.url(),obj_id:t.objId(),fragment:t.hash()}:function(e){return{obj_id:e.obj_id||null,query:e.query||null,rel:e.rel||void 0,target:e.target||null,title:e.title||null,url:e.url||null,fragment:e.hash||null}}(e);return n.rel||delete n.rel,n}function de(e){var t={};return f.a.each(e,(function(e,n){var r=e[0],i=e[1],o=function(e){if(!Object(c.y)(e))throw new c.a(”Attribute names have to be in camel case.“);return Object(c.R)(e)}(n);if(Object(c.z)(o))t[o]=r;else{var a=i[0],s=i[1];t[o]=[pe(a,n),he(fe(a,s,r,n))]}})),t}function pe(e,t){switch(e){case”enum“:return”string“;case”float“:case”integer“:return”number“;case”multienum“:return”stringlist“;case”binary“:case”date“:case”html“:case”link“:case”linklist“:case”reference“:case”referencelist“:case”string“:case”stringlist“:case”widgetlist“:return e;default:throw new c.a(‘Attribute ”’t
‘“ is of unsupported type ”’e
‘“.’)}}function fe(e,t,n,r){if(null===n)return n;switch(e){case”binary“:return function(e,t){if(e instanceof V)return{id:e.id()};me(e,t,”A Binary.“)}(n,r);case”date“:return function(e,t){if(f.a.isDate(e))return Object(c.w)(e);if(Object(c.A)(e))return e;me(e,t,”A Date.“)}(n,r);case”enum“:return function(e,t,n){var r=e.values;if(f.a.contains(r,t))return t;me(t,n,‘Valid attribute values are contained in its ”values“ array [’r
”].“)}(t,n,r);case”float“:return function(e,t){if(Object(c.B)(e))return e;var n=e;f.a.isNumber(e)&&(n=String(e));me(n,t,”A Number, that is #isFinite().“)}(n,r);case”html“:return function(e,t){if(f.a.isString(e))return e;me(e,t,”A String.“)}(n,r);case”integer“:return function(e,t){if(Object(c.C)(e))return e;me(e,t,”A Number, that is #isSafeInteger().“)}(n,r);case”link“:return function(e,t){if(ue(e))return le(e);me(e,t,”A Link instance.“)}(n,r);case”linklist“:return function(e,t){if(f.a.isArray(e)&&f.a.every(e,ue))return f.a.map(e,le);me(e,t,”An array of Link instances.“)}(n,r);case”multienum“:return function(e,t,n){var r=e.values,i=”An array with values from “+Object(c.I)®+”.“;f.a.isArray(t)&&f.a.every(t,f.a.isString)||me(t,n,i);var o=f.a.difference(t,r);if(o.length){var a=i+” Forbidden values: “+Object(c.I)(o)+”.“;me(t,n,a)}return t}(t,n,r);case”reference“:return function(e,t){if(ve(e))return _e(e);me(e,t,”A BasicObj or a String ID.“)}(n,r);case”referencelist“:return function(e,t){if(function(e){return f.a.isArray(e)&&f.a.every(e,(function(e){return ve(e)}))}(e))return f.a.map(e,_e);me(e,t,”An array with BasicObjs or String IDs.“)}(n,r);case”string“:return function(e,t){if(ge(e))return e.toString();me(e,t,”A String.“)}(n,r);case”stringlist“:return function(e,t){if(f.a.isArray(e)&&f.a.every(e,(function(e){return ge(e)})))return f.a.invoke(e,”toString“);me(e,t,”An array of strings.“)}(n,r);case”widgetlist“:return function e(t,n){if(t instanceof ce)return e([t],n);if(f.a.isArray(t)&&f.a.every(t,(function(e){return e instanceof ce})))return f.a.invoke(t,”id“);me(t,n,”An array of BasicWidget instances.“)}(n,r);default:throw new c.g(‘serializeAttributeValue is not implemented for ”’e
‘“.’)}}function he(e){return(f.a.isString(e)||f.a.isArray(e))&&f.a.isEmpty(e)?null:e}function me(e,t,n){throw new c.a(”Unexpected value “+Object(c.I)(e)+‘ for attribute ”’t
‘“. Expected: ’+n)}function _e(e){return e instanceof ke?e.id():e}function ve(e){return f.a.isString(e)||e instanceof ke}function ge(e){return f.a.isString(e)||f.a.isNumber(e)}var ye,be=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),we=function(e){function t(t){var n=e.call(this)||this;return n.objData=t,n}return be(t,e),t.get=function(e){var t=this.getIncludingDeleted(e);return!t||t.isDeleted()?null:t},t.getInWorkspace=function(e,t){var n=this.getIncludingDeletedInWorkspace(e,t);return!n||n.isDeleted()?null:n},t.getIncludingDeleted=function(e){return this.getIncludingDeletedInWorkspace(re(),e)},t.getIncludingDeletedInWorkspace=function(e,n){var r=Object(a.i)(e,n);if(!r)return null;var i=new t®;return i.isFinallyDeleted()?null:i},t.create=function(e){return this.createInWorkspace(re(),e)},t.createInWorkspace=function(e,t){var n=te(t);!function(e){if(!e)throw new c.a(‘Please provide an obj class as the ”_objClass“ property.’)}(n._objClass),n._id||(n._id=[this.generateId()]);var r={_id:n._id,_obj_class:n._objClass};return this.createWithSerializedAttributes(e,p.mapObject(r,(function(e){return e[0]})),p.omit(t,”_objClass“,”_id“))},t.createFromFile=function(e,t){var n=this.create(t);return V.upload(e).intoId(n.id()).then((function(e){return n.update({blob:[e,[”binary“]]}),n.finishSaving().then((function(){return n}))}))},t.addChildWithSerializedAttributes=function(e,n){var r=t.generateId();return this.createWithSerializedAttributes(re(),p.extend({},n,{_id:r,_path:e+”/“+r}))},t.createWithSerializedAttributes=function(e,n,r){if(!r){var i=function(e){var t={},n={};p.each(e,(function(e,r){if(a=e,p.isArray(a)&&”widgetlist“===p.first(a)){var i=p.map(e[1],Oe),o=Object(c.o)®;n[o]=[i,[”widgetlist“]]}else t[r]=e;var a})),t._id||(t._id=we.generateId());return[t,n]}(n),o=i[0],s=i[1];return this.createWithSerializedAttributes(e,o,s)}var u=Object(a.d)(e,n._id);u.update(n);var l=new t(u);return l.update®,l},t.generateId=function(){return Object(c.L)()},t.all=function(){return(new b).batchSize(1e3)},t.root=function(){return t.getByPath(”/“)},t.where=function(e,t,n,r){return(new b).and(e,t,n,r)},t.getByPath=function(e){var t=this.where(”_path“,”equals“,e).first();return t||null},t.getByPermalink=function(e){var t=this.where(”_permalink“,”equals“,e).first();return t||null},t.getAllByPermalink=function(e){return this.where(”_permalink“,”equals“,e).take()},t.generateWidgetId=function(){return Object(c.K)()},t.prototype.id=function(){return this.getAttributeData(”_id“)},t.prototype.objClass=function(){return this.getAttributeData(”_obj_class“)},t.prototype.obj=function(){return this},t.prototype.createdAt=function(){return Object(c.H)(this.getAttributeData(”_created_at“))},t.prototype.createdBy=function(){return this.getAttributeData(”_created_by“)||null},t.prototype.lastChanged=function(){var e=this.getAttributeData(”_last_changed“);return e?Object(c.H)(e):null},t.prototype.lastChangedBy=function(){return this.getAttributeData(”_last_changed_by“)||null},t.prototype.version=function(){return this.getAttributeData(”_version“)},t.prototype.workspaceId=function(){return this.objData.workspaceId()},t.prototype.path=function(){return this.getAttributeData(”_path“)||null},t.prototype.permalink=function(){return this.getAttributeData(”_permalink“)||null},t.prototype.parentPath=function(){var e=this.path();return e&&”/“!==e?function(e){var t=e.split(”/“);if(t.pop(),1===t.length)return”/“;return t.join(”/“)}(e):null},t.prototype.parent=function(){var e=this.parentPath();return e?t.getByPath(e):null},t.prototype.hasConflicts=function(){return!!this.getAttributeData(”_conflicts“)},t.prototype.modification=function(){return this.isFinallyDeleted()||this.getAttributeData(”_marked_deleted“)?”deleted“:this.getAttributeData(”_modification“)||null},t.prototype.isModified=function(){return!!this.modification()},t.prototype.isNew=function(){return”new“===this.modification()},t.prototype.isEdited=function(){return”edited“===this.modification()},t.prototype.isDeleted=function(){return”deleted“===this.modification()},t.prototype.isFinallyDeleted=function(){return this.objData.isNonExistent()},t.prototype.contentLength=function(){return this.metadata().contentLength()},t.prototype.contentType=function(){return this.metadata().contentType()},t.prototype.contentUrl=function(){var e=this.blob();return e?e.url():”“},t.prototype.metadata=function(){var e=this.blob();return e?new z(e.id()):new z},t.prototype.children=function(){var e=this.path();return e?Ce(e).take():[]},t.prototype.hasChildren=function(){var e=this.path();return!!e&&Ce(e).batchSize(0).count()>0},t.prototype.orderedChildren=function(){var e=this.children(),t=this.get(”childOrder“,”referencelist“);return p.isArray(t)?p.sortBy(e,(function(e){var n=p.invoke(t,”id“).indexOf(e.id());return-1===n?t.length:n})):e},t.prototype.backlinks=function(){return t.where(”*“,”linksTo“,this).take()},t.prototype.ancestors=function(){var e=this.parentPath();return e?function(e){var t=[”/“];if(”/“===e)return t;var n=e.split(”/“).slice(1),r=”“;return n.forEach((function(e){r=r+”/“+e,t.push®})),t}(e).map((function(e){return t.getByPath(e)})):[]},t.prototype.isRestricted=function(){var e=this.restriction();return!!e&&e.length>0},t.prototype.restriction=function(){return this.getAttributeData(”_restriction“)||null},t.prototype.restrict=function(){this.isRestricted()||this.update({_restriction:[[”_auth“]]})},t.prototype.unrestrict=function(){this.update({_restriction:null})},t.prototype.update=function(e){var t=this,n=te(e);Object(A.r)((function(){t.persistWidgets(t,n);var e=de(n);t.objData.update(e)})),this.startLinkResolution()},t.prototype.destroy=function(){this.update({_markedDeleted:[!0]})},t.prototype.insertWidget=function(e,t){var n,r=function(e){if(function(e){return!!e.before}(e))return e.before.id();return e.after.id()}(t),i=this._widgetPlacementFor®;if(i){var o=i.attributeValue,a=i.attributeName,s=i.container,c=i.index,u=t.before?c:c+1,l=o.slice(0,u).concat([e],o.slice(u));s.update(((n={})[a]=[l,[”widgetlist“]],n))}},t.prototype.removeWidget=function(e){var t=this.fieldContainingWidget(e);if(t){var n=t.get(),r=p.reject(n,(function(t){return t.equals(e)}));t.update®}},t.prototype.siblingWidget=function(e,t){var n=this._widgetPlacementFor(e.id());if(n)return n.attributeValue[n.index+t]},t.prototype.copyAsync=function(e){return void 0===e&&(e={}),function(e){if(p.difference(p.keys(e),[”_path“]).length)throw new c.a(‘Currently only ”_path“ copy option is supported.’)}(e),this._copyAttributes().then((function(n){var r=p.extend(n,e),i=t.createWithSerializedAttributes(re(),r);return i.objData.finishSaving().then((function(){return i}))}))},t.prototype.moveToAsync=function(e){return this.moveTo(e),this.finishSaving()},t.prototype.moveTo=function(e){this.update({_path:[e+”/“+this.id()]})},t.prototype.markResolvedAsync=function(){return this.update({_conflicts:[null]}),this.finishSaving()},t.prototype.finishSaving=function(){var e=this;return this.finishLinkResolution().then((function(){return e.objData.finishSaving()}))},t.prototype.equals=function(e){return e instanceof t&&this.id()===e.id()},t.prototype.widget=function(e){return this.getWidgetAttribute(e,”_obj_class“)?ce.build(e,this):null},t.prototype.getWidgetAttribute=function(e,t){return this.objData.getWidgetAttribute(e,t)},t.prototype.widgets=function(){var e=this.getData();if(!xe(e))return[];var t=e._widget_pool;if(!t)return[];var n=[];return this.collectWidgets(n,e,t,{}),n},t.prototype.fieldContainingWidget=function(e){var t=e.id(),n=this._widgetPlacementFor(t);if(n){var r=n.container,i=n.attributeName;return new s(r,i,[”widgetlist“])}},t.prototype.generateWidgetId=function(){for(var e=0;e<10;e++){var n=t.generateWidgetId();if(!this.widget(n))return n}throw new c.g("Could not generate a new unused widget id.")},t.prototype.serializeAttributes=function(){var t=e.prototype.serializeAttributes.call(this,this.getData());return delete t._conflicts,delete t._modification,delete t._created_at,delete t._created_by,delete t._last_changed,delete t._last_changed_by,t},t.prototype.slug=function(){var e,t=this.get("title","string");return"string"!=typeof(e=t)?"":h(e)},t.prototype.getWidgetData=function(e){return this.objData.getWidget(e)},t.prototype.startLinkResolution=function(){Object(a.l)()||Me().startLinkResolutionFor(re(),this.id())},t.prototype.finishLinkResolution=function(){return Me().finishLinkResolutionFor(re(),this.id())},t.prototype.toPrettyPrint=function(){return"[object "+this.objClass()+' id="'+this.id()+'"]'},t.prototype.getAttributeData=function(e){return this.objData.getAttribute(e)},t.prototype.getData=function(){return this.objData.get()},t.prototype.blob=function(){return this.get("blob",["binary"])},t.prototype._copyAttributes=function(){var e=t.generateId(),n=this.serializeAttributes(),r=[];return p.each(n,(function(t,i){if("_"!==i[0]){if(function(e){return"binary"===e[0]&&!!e[1]}(t)){var o=t[1],a=new F({idToCopy:o.id}).intoId(e).then((function(e){return{name:i,binary:e}}));r.push(a)}}else delete n[i]})),n._id=e,n._obj_class=this.objClass(),n._restriction=this.restriction(),this.path()&&(n._path=this.parentPath()+"/"+e),c.j.all(r).then((function(e){return p.each(e,(function(e){var t=e.name,r={id:e.binary.id()};n[t]=["binary",r]})),n}))},t.prototype.collectWidgets=function(e,t,n,r){var i=this;p.map(t,(function(e,t){if(e&&!Object(c.z)(t)){var n=e;return Object(W.h)(n)?n[1]:void 0}})).forEach((function(t){t&&t.forEach((function(t){if(!r[t]){r[t]=!0;var o=i.widget(t);if(o){e.push(o);var a=n[t];i.collectWidgets(e,a,n,r)}}}))}))},t.prototype._widgetPlacementFor=function(e){var t=this.getData();if(xe(t)){var n=Object(a.f)(t,e);if(n){var r,i=Object(c.o)(n.attributeName),o=n.parentWidgetId;if(o){if(!(r=this.widget(o)))return}else r=this;return{container:r,attributeName:i,attributeValue:r.get(i,["widgetlist"]),index:n.index,parentWidgetId:o}}}},t}(ee),ke=we;function Oe(e){return ce.newWithSerializedAttributes(e)}function Ce(e){return we.all().and("_parentPath","equals",e)}function Me(){if(!ye)throw new Error("No Link Handler");return ye}function De(e){ye=e}function xe(e){return!!e&&Object(W.f)(e)}var Ee=function(){return(Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;narguments[0][s]
”, “;r=r.slice(0,-2)}else r=arguments[a];o.push®}M(e+”nArguments: “+Array.prototype.slice.call(o).join(”“)+”n“+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,E={};function S(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),E[e]||(M(t),E[e]=!0)}function j(e){return e instanceof Function||”[object Function]“===Object.prototype.toString.call(e)}function T(e,t){var n,r=p({},e);for(n in t)d(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)d(e,n)&&!d(t,n)&&a(e[n])&&(r[n]=p({},r[n]));return r}function L(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var P={};function A(e,t){var n=e.toLowerCase();P[n]=P[n+”s“]=P[t]=e}function N(e){return”string“==typeof e?P[e]||P[e.toLowerCase()]:void 0}function I(e){var t,n,r={};for(n in e)d(e,n)&&(t=N(n))&&(r[t]=e[n]);return r}var Y={};function R(e,t){Y[e]=t}function F(e,t,n){var r=”“+Math.abs(e),i=t-r.length;return(e>=0?n?”+“:”“:”-“)+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var H=/([[^[]*])|(\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/([[^[]*])|(\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},z={};function U(e,t,n,r){var i=r;”string“==typeof r&&(i=function(){return this[r]()}),e&&(z[e]=i),t&&(z[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function q(e,t){return e.isValid()?(t=V(t,e.localeData()),B[t]=B[t]||function(e){var t,n,r,i=e.match(H);for(t=0,n=i.length;te:"
”+e})),U(0,,0,(function(){return this.year()%100})),U(0,,0,“year”),U(0,,0,“year”),U(0,,0,“year”),A(“year”,“y”),R(“year”,1),le(“Y”,oe),le(“YY”,Z,G),le(“YYYY”,ne,J),le(“YYYYY”,re,Q),le(“YYYYYY”,re,Q),he(,0),he(“YYYY”,(function(e,t){t=2===e.length?i.parseTwoDigitYear(e):O(e)})),he(“YY”,(function(e,t){t=i.parseTwoDigitYear(e)})),he(“Y”,(function(e,t){t=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return O(e)+(O(e)>68?1900:2e3)};var ye,be=we(“FullYear”,!0);function we(e,t){return function(n){return null!=n?(Oe(this,e,n),i.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){return e.isValid()?e._d():NaN}function Oe(e,t,n){e.isValid()&&!isNaN(n)&&(“FullYear”===t&&ge(e.year())&&1===e.month()&&29===e.date()?e._d(n,e.month(),Ce(n,e.month())):e._d(n))}function Ce(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?ge(e)?29:28:31-r%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;te
“ not found. Did you forget to load it?”)),Ze._abbr}function at(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt)S(“defineLocaleOverride”,“use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See momentjs.com/guides/#/warnings/define-locale/ for more info.”),r=tt._config;else if(null!=t.parentLocale)if(null!=tt)r=tt._config;else{if(null==(n=it(t.parentLocale)))return nt||(nt=[]),nt.push({name:e,config:t}),null;r=n._config}return tt=new L(T(r,t)),nt&&nt.forEach((function(e){at(e.name,e.config)})),ot(e),tt}return delete tt,null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!o(e)){if(t=it(e))return t;e=}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=rt(e).split(“-”)).length,n=(n=rt(e))?n.split(“-”):null;t>0;){if(r=it(i.slice(0,t).join(“-”)))return r;if(n&&n.length>=t&&C(i,n,!0)>=t-1)break;t–}o++}return Ze}(e)}function ct(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n<0||n>11?1:n<1||n>Ce(n,n)?2:n<0||n>24||24===n&&(0!==n||0!==n||0!==n)?3:n<0||n>59?4:n<0||n>59?5:n<0||n>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var t,n,r,o,a,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a&&null==e._a&&function(e){var t,n,r,i,o,a,s,c;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=ut(t.GG,e._a,Re(Mt(),1,4).year),r=ut(t.W,1),((i=ut(t.E,1))<1||i>7)&&(c=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var u=Re(Mt(),o,a);n=ut(t.gg,e._a,u.year),r=ut(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(c=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(c=!0)):i=o}r<1||r>Fe(n,o,a)?h(e)._overflowWeeks=!0:null!=c?h(e)._overflowWeekday=!0:(s=Ye(n,r,i,o,a),e._a=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ut(e._a,r),(e._dayOfYear>ve(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ne(a,0,e._dayOfYear),e._a=n.getUTCMonth(),e._a=n.getUTCDate()),t=0;t<3&&null==e._a;++t)e._a=s=r;for(;t<7;t++)e._a=s=null==e._a?2===t?1:0:e._a;24===e._a&&0===e._a&&0===e._a&&0===e._a&&(e._nextDay=!0,e._a=0),e._d=(e._useUTC?Ne:Ae).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}var dt=/^s*((?:d{6}|d{4})-(?:dd-dd|Wdd-d|Wdd|ddd|dd))(?:(T| )(dd(?::dd(?::dd(?:[.,]d+)?)?)?)(dd(?::?dd)?|s*Z)?)?$/,pt=/^s*((?:d{6}|d{4})(?:dddd|Wddd|Wdd|ddd|dd))(?:(T| )(dd(?:dd(?:dd(?:[.,]d+)?)?)?)(dd(?::?dd)?|s*Z)?)?$/,ft=/Z|dd(?::?dd)?/,ht=[[“YYYYYY-MM-DD”,/d{6}-dd-dd/],,[“GGGG-WW-E”,/d{4}-Wdd-d/],[“GGGG-WW”,/d{4}-Wdd/,!1],,[“YYYY-MM”,/d{4}-dd/,!1],[“YYYYYYMMDD”,/d{10}/],[“YYYYMMDD”,/d{8}/],[“GGGGWWE”,/d{4}Wd{3}/],[“GGGGWW”,/d{4}Wd{2}/,!1],],mt=[,[“mm:ss,SSSS”,/dd:dd:dd,d+/],,[“HH:mm”,/dd:dd/],,[“HHmmss,SSSS”,/dddddd,d+/],,[“HHmm”,/dddd/],],_t=/^/?Date((-?d+)/i;function vt(e){var t,n,r,i,o,a,s=e._i,c=dt.exec(s)||pt.exec(s);if©{for(h(e).iso=!0,t=0,n=ht.length;tt
“(period, number) is deprecated. Please use moment().”t
“(number, period). See momentjs.com/guides/#/warnings/add-inverted-param/ for more info.”),i=n,n=r,r=i),qt(this,Wt(n=“string”==typeof n?+n:n,r),e),this}}function qt(e,t,n,r){var o=t._milliseconds,a=Lt(t._days),s=Lt(t._months);e.isValid()&&(r=null==r||r,s&&Se(e,ke(e,“Month”)+s*n),a&&Oe(e,“Date”,ke(e,“Date”)+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Wt.fn=jt.prototype,Wt.invalid=function(){return Wt(NaN)};var Vt=Ut(1,“add”),$t=Ut(-1,“subtract”);function Gt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,“months”);return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,“months”)):(t-r)/(e.clone().add(n+1,“months”)-r)))||0}function Kt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=st(e))&&(this._locale=t),this)}i.defaultFormat=“YYYY-MM-DDTHH:mm:ssZ”,i.defaultFormatUtc=“YYYY-MM-DDTHH:mm:ss”;var Jt=D(“moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.”,(function(e){return void 0===e?this.localeData():this.locale(e)}));function Qt(){return this._locale}function Zt(e,t){return(e%t+t)%t}function Xt(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function en(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tn(e,t){U(0,,0,t)}function nn(e,t,n,r,i){var o;return null==e?Re(this,r,i).year:(t>(o=Fe(e,r,i))&&(t=o),rn.call(this,e,t,n,r,i))}function rn(e,t,n,r,i){var o=Ye(e,t,n,r,i),a=Ne(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}U(0,,0,(function(){return this.weekYear()%100})),U(0,,0,(function(){return this.isoWeekYear()%100})),tn(“gggg”,“weekYear”),tn(“ggggg”,“weekYear”),tn(“GGGG”,“isoWeekYear”),tn(“GGGGG”,“isoWeekYear”),A(“weekYear”,“gg”),A(“isoWeekYear”,“GG”),R(“weekYear”,1),R(“isoWeekYear”,1),le(“G”,oe),le(“g”,oe),le(“GG”,Z,G),le(“gg”,Z,G),le(“GGGG”,ne,J),le(“gggg”,ne,J),le(“GGGGG”,re,Q),le(“ggggg”,re,Q),me(,(function(e,t,n,r){t=O(e)})),me(,(function(e,t,n,r){t=i.parseTwoDigitYear(e)})),U(“Q”,0,“Qo”,“quarter”),A(“quarter”,“Q”),R(“quarter”,7),le(“Q”,$),he(“Q”,(function(e,t){t=3*(O(e)-1)})),U(“D”,,“Do”,“date”),A(“date”,“D”),R(“date”,9),le(“D”,Z),le(“DD”,Z,G),le(“Do”,(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),he(,2),he(“Do”,(function(e,t){t=O(e.match(Z))}));var on=we(“Date”,!0);U(“DDD”,,“DDDo”,“dayOfYear”),A(“dayOfYear”,“DDD”),R(“dayOfYear”,4),le(“DDD”,te),le(“DDDD”,K),he(,(function(e,t,n){n._dayOfYear=O(e)})),U(“m”,,0,“minute”),A(“minute”,“m”),R(“minute”,14),le(“m”,Z),le(“mm”,Z,G),he(,4);var an=we(“Minutes”,!1);U(“s”,,0,“second”),A(“second”,“s”),R(“second”,15),le(“s”,Z),le(“ss”,Z,G),he(,5);var sn,cn=we(“Seconds”,!1);for(U(“S”,0,0,(function(){return~~(this.millisecond()/100)})),U(0,,0,(function(){return~~(this.millisecond()/10)})),U(0,,0,“millisecond”),U(0,,0,(function(){return 10*this.millisecond()})),U(0,,0,(function(){return 100*this.millisecond()})),U(0,,0,(function(){return 1e3*this.millisecond()})),U(0,,0,(function(){return 1e4*this.millisecond()})),U(0,,0,(function(){return 1e5*this.millisecond()})),U(0,,0,(function(){return 1e6*this.millisecond()})),A(“millisecond”,“ms”),R(“millisecond”,16),le(“S”,te,$),le(“SS”,te,G),le(“SSS”,te,K),sn=“SSSS”;sn.length<=9;sn+=“S”)le(sn,ie);function un(e,t){t=O(1e3*(“0.”+e))}for(sn=“S”;sn.length<=9;sn+=“S”)he(sn,un);var ln=we(“Milliseconds”,!1);U(“z”,0,0,“zoneAbbr”),U(“zz”,0,0,“zoneName”);var dn=b.prototype;function pn(e){return e}dn.add=Vt,dn.calendar=function(e,t){var n=e||Mt(),r=It(n,this).startOf(“day”),o=i.calendarFormat(this,r)||“sameElse”,a=t&&(j(t)?t.call(this,n):t);return this.format(a||this.localeData().calendar(o,this,Mt(n)))},dn.clone=function(){return new b(this)},dn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=It(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=N(t)){case“year”:o=Gt(this,r)/12;break;case“month”:o=Gt(this,r);break;case“quarter”:o=Gt(this,r)/3;break;case“second”:o=(this-r)/1e3;break;case“minute”:o=(this-r)/6e4;break;case“hour”:o=(this-r)/36e5;break;case“day”:o=(this-r-i)/864e5;break;case“week”:o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:k(o)},dn.endOf=function(e){var t;if(void 0===(e=N(e))||“millisecond”===e||!this.isValid())return this;var n=this._isUTC?en:Xt;switch(e){case“year”:t=n(this.year()+1,0,1)-1;break;case“quarter”:t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case“month”:t=n(this.year(),this.month()+1,1)-1;break;case“week”:t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case“isoWeek”:t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case“day”:case“date”:t=n(this.year(),this.month(),this.date()+1)-1;break;case“hour”:t=this._d.valueOf(),t+=36e5-Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case“minute”:t=this._d.valueOf(),t+=6e4-Zt(t,6e4)-1;break;case“second”:t=this._d.valueOf(),t+=1e3-Zt(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},dn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=q(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Mt(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Mt(),e)},dn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Mt(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Mt(),e)},dn.get=function(e){return j(this)?this():this},dn.invalidAt=function(){return h(this).overflow},dn.isAfter=function(e,t){var n=w(e)?e:Mt(e);return!(!this.isValid()||!n.isValid())&&(“millisecond”===(t=N(t)||“millisecond”)?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=w(e)?e:Mt(e);return!(!this.isValid()||!n.isValid())&&(“millisecond”===(t=N(t)||“millisecond”)?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,r){var i=w(e)?e:Mt(e),o=w(t)?t:Mt(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(“(”===(r=r||“()”)?this.isAfter(i,n):!this.isBefore(i,n))&&(“)”===r?this.isBefore(o,n):!this.isAfter(o,n))},dn.isSame=function(e,t){var n,r=w(e)?e:Mt(e);return!(!this.isValid()||!r.isValid())&&(“millisecond”===(t=N(t)||“millisecond”)?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return m(this)},dn.lang=Jt,dn.locale=Kt,dn.localeData=Qt,dn.max=xt,dn.min=Dt,dn.parsingFlags=function(){return p({},h(this))},dn.set=function(e,t){if(“object”==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:Y});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=I(e)),r=0;rthis._i
“ */)”;var e=“moment”,t=“”;this.isLocal()||(e=0===this.utcOffset()?“moment.utc”:“moment.parseZone”,t=“Z”);var n=“[”e
’(“]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'';return this.format(n+r+”-MM-DDHH:mm:ss.SSS“+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale(”en“).format(”ddd MMM DD YYYY HH:mm:ss [GMT]ZZ“)},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=be,dn.isLeapYear=function(){return ge(this.year())},dn.weekYear=function(e){return nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=je,dn.daysInMonth=function(){return Ce(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),”d“)},dn.isoWeek=dn.isoWeeks=function(e){var t=Re(this,1,4).week;return null==e?t:this.add(7*(e-t),”d“)},dn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},dn.date=on,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return”string“!=typeof e?e:isNaN(e)?”number“==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,”d“)):t},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,”d“)},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return”string“==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf(”day“)-this.clone().startOf(”year“))/864e5)+1;return null==e?t:this.add(e-t,”d“)},dn.hour=dn.hours=Xe,dn.minute=dn.minutes=an,dn.second=dn.seconds=cn,dn.millisecond=dn.milliseconds=ln,dn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if(”string“==typeof e){if(null===(e=Nt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Yt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,”m“),o!==e&&(!t||this._changeInProgress?qt(this,Wt(e-o,”m“),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Yt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),”m“)),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if(”string“==typeof this._i){var e=Nt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Mt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Rt,dn.isUTC=Rt,dn.zoneAbbr=function(){return this._isUTC?”UTC“:”“},dn.zoneName=function(){return this._isUTC?”Coordinated Universal Time“:”“},dn.dates=D(”dates accessor is deprecated. Use date instead.“,on),dn.months=D(”months accessor is deprecated. Use month instead“,je),dn.years=D(”years accessor is deprecated. Use year instead“,be),dn.zone=D(”moment().zone is deprecated, use moment().utcOffset instead. momentjs.com/guides/#/warnings/zone/“,(function(e,t){return null!=e?(”string“!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),dn.isDSTShifted=D(”isDSTShifted is deprecated. See momentjs.com/guides/#/warnings/dst-shifted/ for more information“,(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=Ot(e))._a){var t=e._isUTC?f(e._a):Mt(e._a);this._isDSTShifted=this.isValid()&&C(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var fn=L.prototype;function hn(e,t,n,r){var i=st(),o=f().set(r,t);return i(o,e)}function mn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||”“,null!=t)return hn(e,t,n,”month“);var r,i=[];for(r=0;r<12;r++)i=hn(e,r,n,”month“);return i}function _n(e,t,n,r){”boolean“==typeof e?(c(t)&&(n=t,t=void 0),t=t||”“):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||”“);var i,o=st(),a=e?o._week.dow:0;if(null!=n)return hn(t,(n+a)%7,r,”day“);var s=[];for(i=0;i<7;i++)s=hn(t,(i+a)%7,r,”day“);return s}fn.calendar=function(e,t,n){var r=this._calendar||this._calendar.sameElse;return j®?r.call(t,n):r},fn.longDateFormat=function(e){var t=this._longDateFormat,n=this._longDateFormat;return t||!n?t:(this._longDateFormat=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat)},fn.invalidDate=function(){return this._invalidDate},fn.ordinal=function(e){return this._ordinal.replace(”%d“,e)},fn.preparse=pn,fn.postformat=pn,fn.relativeTime=function(e,t,n,r){var i=this._relativeTime;return j(i)?i(e,t,n,r):i.replace(/%d/i,e)},fn.pastFuture=function(e,t){var e)j(t=e)?this=t:this=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+“|”+/d{1,2}/.source)},fn.months=function(e,t){return e?o(this._months)?this._months:this._months[e.month()]:o(this._months)?this._months:this._months.standalone},fn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort:this._monthsShort[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},fn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Ee.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=,this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f(),n&&!this._longMonthsParse&&(this._longMonthsParse=new RegExp(“^”+this.months(i,“”).replace(“.”,“”)+“$”,“i”),this._shortMonthsParse=new RegExp(“^”+this.monthsShort(i,“”).replace(“.”,“”)+“$”,“i”)),n||this._monthsParse||(o=“^”+this.months(i,“”)+“|^”+this.monthsShort(i,“”),this._monthsParse=new RegExp(o.replace(“.”,“”),“i”)),n&&“MMMM”===t&&this._longMonthsParse.test(e))return r;if(n&&“MMM”===t&&this._shortMonthsParse.test(e))return r;if(!n&&this._monthsParse.test(e))return r}},fn.monthsRegex=function(e){return this._monthsParseExact?(d(this,“_monthsRegex”)||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,“_monthsRegex”)||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},fn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,“_monthsRegex”)||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,“_monthsShortRegex”)||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},fn.week=function(e){return Re(e,this._week.dow,this._week.doy).week},fn.firstDayOfYear=function(){return this._week.doy},fn.firstDayOfWeek=function(){return this._week.dow},fn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays;return!0===e?He(n,this._week.dow):e?n:n},fn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin:this._weekdaysMin},fn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort:this._weekdaysShort},fn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ue.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=,this._shortWeekdaysParse=[],this._fullWeekdaysParse=),r=0;r<7;r++){if(i=f().day®,n&&!this._fullWeekdaysParse&&(this._fullWeekdaysParse=new RegExp(“^”+this.weekdays(i,“”).replace(“.”,“\.?”)+“$”,“i”),this._shortWeekdaysParse=new RegExp(“^”+this.weekdaysShort(i,“”).replace(“.”,“\.?”)+“$”,“i”),this._minWeekdaysParse=new RegExp(“^”+this.weekdaysMin(i,“”).replace(“.”,“\.?”)+“$”,“i”)),this._weekdaysParse||(o=“^”+this.weekdays(i,“”)+“|^”+this.weekdaysShort(i,“”)+“|^”+this.weekdaysMin(i,“”),this._weekdaysParse=new RegExp(o.replace(“.”,“”),“i”)),n&&“dddd”===t&&this._fullWeekdaysParse.test(e))return r;if(n&&“ddd”===t&&this._shortWeekdaysParse.test(e))return r;if(n&&“dd”===t&&this._minWeekdaysParse.test(e))return r;if(!n&&this._weekdaysParse.test(e))return r}},fn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,“_weekdaysRegex”)||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,“_weekdaysRegex”)||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},fn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,“_weekdaysRegex”)||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,“_weekdaysShortRegex”)||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,“_weekdaysRegex”)||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,“_weekdaysMinRegex”)||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fn.isPM=function(e){return“p”===(e+“”).toLowerCase().charAt(0)},fn.meridiem=function(e,t,n){return e>11?n?“pm”:“PM”:n?“am”:“AM”},ot(“en”,{dayOfMonthOrdinalParse:/d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===O(e%100/10)?“th”:1===t?“st”:2===t?“nd”:3===t?“rd”:“th”)}}),i.lang=D(“moment.lang is deprecated. Use moment.locale instead.”,ot),i.langData=D(“moment.langData is deprecated. Use moment.localeData instead.”,st);var vn=Math.abs;function gn(e,t,n,r){var i=Wt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}var On=kn(“ms”),Cn=kn(“s”),Mn=kn(“m”),Dn=kn(“h”),xn=kn(“d”),En=kn(“w”),Sn=kn(“M”),jn=kn(“Q”),Tn=kn(“y”);function Ln(e){return function(){return this.isValid()?this._data:NaN}}var Pn=Ln(“milliseconds”),An=Ln(“seconds”),Nn=Ln(“minutes”),In=Ln(“hours”),Yn=Ln(“days”),Rn=Ln(“months”),Fn=Ln(“years”),Hn=Math.round,Wn={ss:44,s:45,m:45,h:22,d:26,M:11};function Bn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var zn=Math.abs;function Un(e){return(e>0)-(e<0)||+e}function qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=zn(this._milliseconds)/1e3,r=zn(this._days),i=zn(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var o=k(i/12),a=i%=12,s=r,c=t,u=e,l=n?n.toFixed(3).replace(/.?0+$/,“”):“”,d=this.asSeconds();if(!d)return“P0D”;var p=d<0?“-”:“”,f=Un(this._months)!==Un(d)?“-”:“”,h=Un(this._days)!==Un(d)?“-”:“”,m=Un(this._milliseconds)!==Un(d)?“-”:“”;return p+“P”+(o?f+o+“Y”:“”)+(a?f+a+“M”:“”)+(s?h+s+“D”:“”)+(c||u||l?“T”:“”)+(c?m+c+“H”:“”)+(u?m+u+“M”:“”)+(l?m+l+“S”:“”)}var Vn=jt.prototype;return Vn.isValid=function(){return this._isValid},Vn.abs=function(){var e=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),e.milliseconds=vn(e.milliseconds),e.seconds=vn(e.seconds),e.minutes=vn(e.minutes),e.hours=vn(e.hours),e.months=vn(e.months),e.years=vn(e.years),this},Vn.add=function(e,t){return gn(this,e,t,1)},Vn.subtract=function(e,t){return gn(this,e,t,-1)},Vn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(“month”===(e=N(e))||“quarter”===e||“year”===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case“month”:return n;case“quarter”:return n/3;case“year”:return n/12}else switch(t=this._days+Math.round(wn(this._months)),e){case“week”:return t/7+r/6048e5;case“day”:return t+r/864e5;case“hour”:return 24*t+r/36e5;case“minute”:return 1440*t+r/6e4;case“second”:return 86400*t+r/1e3;case“millisecond”:return Math.floor(864e5*t)+r;default:throw new Error(“Unknown unit ”+e)}},Vn.asMilliseconds=On,Vn.asSeconds=Cn,Vn.asMinutes=Mn,Vn.asHours=Dn,Vn.asDays=xn,Vn.asWeeks=En,Vn.asMonths=Sn,Vn.asQuarters=jn,Vn.asYears=Tn,Vn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*O(this._months/12):NaN},Vn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,c=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*yn(wn(s)+a),a=0,s=0),c.milliseconds=o%1e3,e=k(o/1e3),c.seconds=e%60,t=k(e/60),c.minutes=t%60,n=k(t/60),c.hours=n%24,a+=k(n/24),i=k(bn(a)),s+=i,a-=yn(wn(i)),r=k(s/12),s%=12,c.days=a,c.months=s,c.years=r,this},Vn.clone=function(){return Wt(this)},Vn.get=function(e){return e=N(e),this.isValid()?this():NaN},Vn.milliseconds=Pn,Vn.seconds=An,Vn.minutes=Nn,Vn.hours=In,Vn.days=Yn,Vn.weeks=function(){return k(this.days()/7)},Vn.months=Rn,Vn.years=Fn,Vn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Wt(e).abs(),i=Hn(r.as(“s”)),o=Hn(r.as(“m”)),a=Hn(r.as(“h”)),s=Hn(r.as(“d”)),c=Hn(r.as(“M”)),u=Hn(r.as(“y”)),l=i<=Wn.ss&&||it.contextName
“'. ”+(t.message||“”);throw new C(n)}},t.prototype.uncheckedSet=function(e){this.failIfFrozen(“Changing state”),this.state=e,this.version++,this.insideBatchUpdate()||this.notifyListeners()},t.prototype.trackStateAccess=function(e){var t=this.trackChanges(e),n=t.detector;return{result:t.result,accessedState:new k(n)}},t.prototype.recordDetector=function(e){var t=this.detectorRecording.current();void 0!==t&&t.push(e)},t.prototype.getTree=function(){return this},t.prototype.id=function(){return“”},t.prototype.subscribe=function(e){return this.listeners.subscribe(e)},t.prototype.withBatchedUpdates=function(e){var t=this.state;try{this.batchUpdates.runWith(!0,e)}finally{this.insideBatchUpdate()||t===this.state||this.notifyListeners()}},t.prototype.listenerCount=function(){return this.listeners.count()},t.prototype.clearListeners=function(){this.listeners.clear()},t.prototype.trackChanges=function(e){var t=this,n=this.version,r=this.recordDetectors(e),o=r.result,a=r.detectors;return{result:o,detector:function(){return t.version!==n&&!!Object(i.find)(a,(function(e){return e()}))}}},t.prototype.recordDetectors=function(e){var t=[],n=this.detectorRecording.runWith(t,e),r=this.detectorRecording.current();return void 0!==r&&r.push.apply(r,t),{result:n,detectors:t}},t.prototype.notifyListeners=function(){var e=this;this.withFrozenState({contextName:“state listeners”},(function(){e.listeners.notify()}))},t.prototype.insideBatchUpdate=function(){return!!this.batchUpdates.current()},t}(w),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b(t,e),t}(r.i),M=function(e){function t(t,n){var r=e.call(this)||this;return r.parentState=t,r.key=n,r.tree=t.getTree(),r}return b(t,e),t.prototype.getTree=function(){return this.tree},t.prototype.untrackedGet=function(){return this.parentState.getSubState(this.key)},t.prototype.uncheckedSet=function(e){this.parentState.setSubState(this.key,e)},t.prototype.id=function(){if(void 0===this.cachedId){var e=this.key.replace(/\/g,“\\”).replace(///g,“\/”);this.cachedId=this.parentState.id()+“/”+e}return this.cachedId},t}(w);function D(e){e?(h=void 0,m=e.stateController(),_=e.createAppState(),y=e.sharedCmsState(),v=_.subState(“localCms”)):(h=new O,m=h,_=S(),y=h.subState(“sharedCms”),v=h.subState(“localCms”),g=h.subState(“ui”)),R()}var x,E=0;function S(){if(!h)throw new r.g;var e=(E++).toString();return h.subState(“apps”).subState(e)}function j(e){return m.withBatchedUpdates(e)}function T(){return m}function L(e){return m.trackStateAccess(e)}function P(e,t){return m.withFrozenState(e,t)}function A(e){return m.failIfFrozen(e)}function N(e){return m.failIfTracking(e)}function I(e){return u.create(e)}function Y(e,t){return void 0===t&&(t=0),c.create(e,t)}function R(){x=m.subscribe((function(){c.notify(),u.notify()}))}function F(){x&&x(),_.clear()}var H=[],W=function(){return 0!==H.length};function B(e){W()||Object(r.G)((function(){return j((function(){return function e(t){H=[];try{t.forEach((function(e){return e()}))}finally{W()&&e(H)}}(H)}))})),H.push(e)}function z(e,t){var n,i=!0,o=!1,a=I(s);function s(){if(i){var s=L((function(){return P({contextName:“observe”,message:“Extract all side-effects into the listener function”},e)}));a.subscribeChanges(s.accessedState);var c=s.result;o&&Object(r.v)(c,n)||(t©,n=c,o=!0)}}return Object(r.G)(s),{unsubscribe:function(){i=!1,a.unsubscribe()},forceRefresh:function(){Object(r.G)(s)}}}function U(e,t){var n=L((function(){return P({contextName:“observeSync”,message:“Use non-sync observe or nextTick”},e)})),i=n.result,o=Y((function(){var n=L(e);o.subscribeChanges(n.accessedState);var a=n.result;Object(r.v)(a,i)||(t(a),i=a)}));return o.subscribeChanges(n.accessedState),{initialValue:i,unsubscribe:function(){o.unsubscribe()}}}function q(e){return new r.j((function(t){var n=z(e,(function(e){null!=e&&(n.unsubscribe(),t(e))}))}))}},function(e,t,n){“use strict”;n.d(t,“c”,(function(){return u})),n.d(t,“f”,(function(){return l})),n.d(t,“b”,(function(){return s})),n.d(t,“a”,(function(){return a})),n.d(t,“d”,(function(){return d})),n.d(t,“g”,(function(){return p})),n.d(t,“e”,(function(){return w})),n.d(t,“h”,(function(){return S}));var r=n(0),i=n(5),o=n(7),a=“GET”,s=“SEND”,c=1;function u(e,t){var n=c++,u={};return Object.keys(e).forEach((function©{var l=e;l===a&&(u=function(){for(var e=[],a=0;ar
“; body: ”+(0===r?e.statusText:e.responseText);n(new _(i))}t(e)}(i,n,r)},i.onerror=function(){return o(“XMLHttpRequest Error”)},i.ontimeout=function(){return o(“XMLHttpRequest Timeout”)},i.onabort=function(){return o(“XMLHttpRequest Aborted”)},i}(e,t,n,a);i&&s.setRequestHeader(“Authorization”,i),s.setRequestHeader(“Scrivito-Client”,“jssdk/”+Object(u.x)()),o&&s.setRequestHeader(“Scrivito-Force-Verification”,“true”),s.setRequestHeader(“Content-type”,“application/json; charset=utf-8”),s.send(JSON.stringify®)})))}s={},window._scrivitoRegisterVerificator=function(e,t){s.resolve(t)};var C,M,D=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e=t)})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=“client_verification_required”;!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}D(t,e)}(v);function E(e){return e(j()).catch((function t(n){if(!function(e){return e instanceof v&&e.backendCode===x}(n))throw n;return function(e){if(!C){var t=e.verificator,n=e.data,r=(i=t.id,o=t.url,a=s,a||(a=new u.e,s=a,Object(u.E)(o)),a.promise).then((function(e){return new u.j((function(t){e(n,(function(e){t((M=e).authorization)}))}))}));C={challenge:{verificator:t,data:n},promise:Object(u.J)(r,(function(){C=void 0}))}}var i,o,a;return C.promise}(n.details).then(e).catch(t)}))}function S(){C=void 0,M=void 0}function j(){if(M){if(!(M.expiresAfter<new Date))return M.authorization;M=void 0}}function T(){var e=j();if(e)return“Authorization: ”+e;if(C){var t=C.challenge;return“Pending computation: ”t.verificator.id
“ with ”+t.data}return null}var L,P,A=n(17),N=function(){return(N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments)Object.prototype.hasOwnProperty.call(t,i)&&(e=t);return e}).apply(this,arguments)},I=function(){function e(){this.initDeferred=new u.e,this.authHeaderValueProvider=r}return e.prototype.init=function(e,t,n){t&&(this.tenant=t,this.endpoint=e,this.url=d(e+“/tenants/”t
“/perform”).scheme(“https”).toString(),this.initDeferred.resolve(void 0)),n&&(this.authHeaderValueProvider=n)},e.prototype.get=function(e,t){return this.perform(“GET”,e,t)},e.prototype.put=function(e,t){return this.perform(“PUT”,e,t)},e.prototype.post=function(e,t){return this.perform(“POST”,e,t)},e.prototype.delete=function(e,t){return this.perform(“DELETE”,e,t)},e.prototype.requestBuiltInUserSession=function(e){var t=this;return this.ensureInitialized().then((function(){return t.ajax(“PUT”,“sessions/”+e)})).then((function(e){return c.reset(),e}))},e.prototype.requestVisitorSession=function(e,t){var n=this;return this.ensureInitialized().then((function(){return n.ajax(“PUT”,“sessions/”+e,void 0,“id_token ”+t)}))},e.prototype.enableForceVerification=function(){this.forceVerification=!0},e.prototype.currentPublicAuthorizationState=function(){return this.authHeaderValueProvider?this.authHeaderValueProvider.currentState?“ ”+this.authHeaderValueProvider.currentState():“: authorization provider without currentState()”:“: no authorization provider”},e.prototype.ensureInitialized=function(){return this.initDeferred.promise},e.prototype.perform=function(e,t,n){var r=this;return this.ensureInitialized().then((function(){return r.send(e,t,n).then((function(e){return function(e){return!!e&&!!e.task&&1===Object(l.size)(e)}(e)?r.handleTask(e.task):e}))}))},e.prototype.send=function(e,t,n){var r=this;return this.authHeaderValueProvider.perform((function(i){return r.ajax(e,t,n,i)}))},e.prototype.ajax=function(e,t,n,r){var i=this.url,o=this.forceVerification,a={params:{path:t,verb:e,params:n||{}},authorization:r,forceVerification:o};function s(){return function e(t,n){void 0===n&&(n=0);if(P)return new u.j((function(e){return e(t())}));return t().then((function®{if(429!==r.status)return r;if(L&&n>19)throw new Error(“Maximum number of rate limit retries reached”);var i=Number(r.getResponseHeader(“Retry-After”))||0,o=Math.max(1e3*i,Y(n));return Object(u.T)(o).then((function(){return e(t,n+1)}))}))}((function(){return O(e,i,a)})).then(R)}return“POST”===e?s():function e(t,n){void 0===n&&(n=0);if(P)return new u.j((function(e){return e(t())}));return t().catch((function®{if(r instanceof _){if(L&&n>5)throw r;var i=Y(n);return Object(u.T)(i).then((function(){return e(t,n+1)}))}throw r}))}(s)},e.prototype.handleTask=function(e){var t=this;switch(e.status){case“success”:return e.result;case“error”:throw f.for(e.message,412,e.code);case“exception”:throw new _(e.message);case“open”:return Object(u.S)(2).then((function(){return t.get(“tasks/”+e.id).then((function(e){return t.handleTask(e)}))}));default:throw new _(“Invalid task response (unknown status)”)}},e}();function Y(e){return 500*Math.pow(2,Math.min(e,16))}function R(e){var t,n=e.status;try{t=JSON.parse(e.responseText)}catch®{throw new _(e.responseText)}if(n>=200&&n<300)return t;var r=function(e,t,n){if(“4”!==e.toString())return 500===e&&F(t.error)?new _(t.error):new _(n);var r=function(e){var t=e.error,n=e.code,r=e.details;if(!F(t))throw H(“key error is not a string”);if(void 0!==n&&!F(n))throw H(“optional key code is not a string”);if(void 0!==r&&(i=r,“object”!=typeof i||Array.isArray(i)))throw H(“optional key details is not an object”);var i;return N({},e,{error:t,code:n,details:r})}(t);if(function(e){if(“auth_missing”!==e.code)return!1;var t=e.details;return!!t&&“string”==typeof t.visit}®){var i=(o=r.details.visit,a=c.augmentedRedirectUrl(Object(A.f)()),o.replace(“retry=RETRY”,“retry=”+c.currentFailureCount()).replace(/$RETURN_TO/,encodeURIComponent(a)));return new m(i)}var o,a;if(401===e)return new v(r.error,e,r.code,r.details);if(403===e){var s=r.code;return F(s)?new h(r.error,e,s):new _(“Authentication failure response no string value for code”)}return f.for(r.error,e,r.code)}(n,t,e.responseText);throw r instanceof m&&Object(A.i)(r.target),r}function F(e){return“string”==typeof e}function H(e){return new _(“Malformed error response: ”+e)}var W=new I;var B=new u.b((function(e){return W.get(“blobs/mget”,{blobs:e}).then((function(t){return t.results.map((function(t,n){return function(e,t){var n=t.public_access.get;if(!n.url)throw new u.g('Missing public access URL for binary “'e
'”');var r={public_access:{get:{url:n.url}}},i=t.private_access;if(i){var o=i.get;o.url&&(r.private_access={get:{url:o.url}})}return r}(e.id,t)}))}))}));var z={};function U(e,t){return function(e){var t=z;t||(t=function(e){return new u.b((function(t){return W.get(“workspaces/”e
“/objs/mget”,{ids:t,include_deleted:!0}).then((function(e){return e.results}))}),{batchSize:17})}(e),z=t);return t}(e).retrieve(t).then((function(e){return e||{_deleted:t}}))}var q=function(){return(q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments)Object.prototype.hasOwnProperty.call(t,i)&&(e=t);return e}).apply(this,arguments)};function V(e,t){var n=q({consistent:!0},t);return W.get(“workspaces/”e
“/objs/search”,n).then((function(e){var t=function(e){var t={results:e.results,total:e.total},n=e.continuation;void 0!==n&&(t.continuation=n);var r=e.objs;void 0!==r&&(t.objs=r);return t}(e);return{results:t.results.map((function(e){return e.id})),continuation:t.continuation,total:t.total,objs:t.objs}}))}function $(e){return!!e&&“widgetlist_diff”===e.format}var G={retrieveObj:function(e,t){return U(e,t)},retrieveObjQuery:function(e,t){return V(e,t)},retrieveFacetQuery:function(e,t){return function(e,t){return W.get(“workspaces/”e
“/objs/search”,t).then((function(e){return{facets:e.facets.map((function(e){return e.map((function(e){return{total:e.total,value:e.value,results:e.results}}))}))}}))}(e,t)},retrieveBinaryMetadata:function(e){return function(e){return W.get(“blobs/”+encodeURIComponent(e||“”)+“/meta_data”)}(e)},retrieveBinaryUrls:function(e,t){return function(e,t){var n={id:e};return t&&(n.transformation=t),B.retrieve(n)}(e,t)},retrieveObjFieldDiffs:function(e,t){return function(e,t){return W.get(“workspaces/”e
“/objs/”t
“/diff”).then((function(e){return e}))}(e,t)}};function K(e){G=e}function J(e){return!e._deleted}function Q(e){return“widgetlist”===e}},function(e,t,n){“use strict”;n.d(t,“f”,(function(){return d})),n.d(t,“e”,(function(){return f})),n.d(t,“d”,(function(){return h})),n.d(t,“a”,(function(){return k})),n.d(t,“b”,(function(){return s}));var r=n(2),i=n(3),o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments)Object.prototype.hasOwnProperty.call(t,i)&&(e=t);return e}).apply(this,arguments)},a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf®<0&&(n=e);if(null!=e&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ir
'” is not defined for CMS object class “'n
‘”.’);return}))}var m=function(){function e(e){this._registry=e}return e.prototype.getObj=function(e,t){var n=i.BasicObj.get(t);return this._checkObjClassAndWrapInAppClass(e,n)},e.prototype.getObjIncludingDeleted=function(e,t){var n=i.BasicObj.getIncludingDeleted(t);return this._checkObjClassAndWrapInAppClass(e,n)},e.prototype.read=function(e,t){var n=s.basicFieldFor(e,t);if(!n)return null;var r=n.get();return d(this._registry,r)},e.prototype.update=function(e,t){var n=this._registry.objClassNameFor(e.constructor);if(!n){var r=void 0;throw r=e.constructor===this._registry.defaultClassForObjs?“Obj”:“Widget”,new l.a('Updating is not supported on the base class “'r
'”.')}if(t.constructor!==Object)throw new l.a(“The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.”);var i=h(t,s.forInstance(e),n);e._scrivitoPrivateContent.update(i)},e.prototype.wrapInAppClass=function(e){return d(this._registry,e)},e.prototype._checkObjClassAndWrapInAppClass=function(e,t){if(!t)return null;var n=this._registry.objClassNameFor(e);if(n&&n!==t.objClass())throw new l.h('Obj with id “'+t.id()+'” is not of type “'n
'”.');return this.wrapInAppClass(t)},e}();function _(e){return function(){function t(){}return t.prototype.id=function(){return this._scrivitoPrivateContent.id()},t.prototype.objClass=function(){return this._scrivitoPrivateContent.objClass()},t.prototype.finishSaving=function(){return this._scrivitoPrivateContent.finishSaving()},t.prototype.get=function(t){if(!Object(l.y)(t))throw new l.a(“Attribute names have to be in camel case.”);if(Object(l.z)(t))throw new l.a('Attribute name “'t
'” is not a valid custom attribute name.');return e.read(this,t)},t.prototype.update=function(t){e.update(this,t)},t}()}function v(e,t,n,r){var i={};return Object.keys(n.definition.attributes).forEach((function(n){if(!Object.prototype.hasOwnProperty.call(e,n)){var o=t.initialContentFor(r,n);void 0!==o&&(i=o)}})),i}var g,y=(g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e=t)})(e,t)},function(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function b(e){var t=new m(e);function n(t,n){var r=new e.ObjSearch;return t&&r.and(“_objClass”,“equals”,t),n&&r._scrivitoPrivateContent.batchSize(n),r}function o(t){return d(e,t)}return function(a){function c(){return null!==a&&a.apply(this,arguments)||this}return y(c,a),c.get=function(e){return t.getObj(this,e)},c.getIncludingDeleted=function(e){return t.getObjIncludingDeleted(this,e)},c.getByPath=function(e){return o(i.BasicObj.getByPath(e))},c.getByPermalink=function(e){return o(i.BasicObj.getByPermalink(e))},c.all=function(){return n(e.objClassNameFor(this),1e3)},c.root=function(){return o(i.BasicObj.root())},c.where=function(t,r,i,o){return void 0===o&&(o=null),n(e.objClassNameFor(this)).and(t,r,i,o)},c.create=function(e){void 0===e&&(e={}),w(e,this._appClassName());var t=this._prepareAttributesForCreate(e);return o(i.BasicObj.create(t))},c.createFromFile=function(e,t){void 0===t&&(t={}),function(e){if(!l.f.is(e)){if(l.c.is(e))throw new l.a('Creating CMS objects from file is only available with instances of “File”, but an instance of “Blob” is given');throw new l.a('Creating CMS objects from file is only available with instances of “File”')}}(e),function(e,t,n){if(w(e,t),Object.prototype.hasOwnProperty.call(e,“blob”))throw new l.a('Setting attribute “blob” is not allowed when creating CMS objects from file, because the file will be assigned to that attribute');if(!n.isBinary())throw new l.a('Creating CMS objects from file is only available for classes with a binary attribute “blob”')}(t,this._appClassName(),this._schema());var n=this._prepareAttributesForCreate(t);return i.BasicObj.createFromFile(e,n).then((function(e){return o(e)}))},c.prototype.lastChanged=function(){return this._scrivitoPrivateContent.lastChanged()},c.prototype.path=function(){return this._scrivitoPrivateContent.path()},c.prototype.parent=function(){return o(this._scrivitoPrivateContent.parent())},c.prototype.ancestors=function(){return o(this._scrivitoPrivateContent.ancestors())},c.prototype.backlinks=function(){return o(this._scrivitoPrivateContent.backlinks())},c.prototype.children=function(){return o(this._scrivitoPrivateContent.children())},c.prototype.orderedChildren=function(){return o(this._scrivitoPrivateContent.orderedChildren())},c.prototype.permalink=function(){return this._scrivitoPrivateContent.permalink()},c.prototype.slug=function(){return this._scrivitoPrivateContent.slug()},c.prototype.isBinary=function(){var e=s.forInstance(this);return!!e&&e.isBinary()},c.prototype.isRestricted=function(){return this._scrivitoPrivateContent.isRestricted()},c.prototype.contentLength=function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0},c.prototype.contentType=function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():“”},c.prototype.contentUrl=function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():“”},c.prototype.metadata=function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new i.MetadataCollection},c.prototype.restrict=function(){this._scrivitoPrivateContent.restrict()},c.prototype.unrestrict=function(){this._scrivitoPrivateContent.unrestrict()},c.prototype.widget=function(e){return o(this._scrivitoPrivateContent.widget(e))},c.prototype.widgets=function(){return o(this._scrivitoPrivateContent.widgets())},c.prototype.destroy=function(){this._scrivitoPrivateContent.destroy()},c._prepareAttributesForCreate=function(t){var n=this._schema(),i=this._appClassName(),o=v(t,e,n,i),a={_objClass:i};return h(Object(r.extend)({},t,o,a),n,i)},c._appClassName=function(){return e.objClassNameFor(this)},c._schema=function(){return s.forClass(this)},c}(_(t))}function w(e,t){if(!t)throw new l.a(“Creating CMS objects is not supported for the class Obj or abstract classes.”);if(e.constructor!==Object)throw new l.a(“The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.”);if(e._objClass)throw new l.a('Invalid attribute “_objClass”. “'e._objClass
'.create” will automatically set the CMS object class correctly.')}var k=function(){function e(e,t){this._registry=e,this._basicObjFacetValue=t}return e.prototype.name=function(){return this._basicObjFacetValue.name()},e.prototype.count=function(){return this._basicObjFacetValue.count()},e.prototype.includedObjs=function(){var e=this._basicObjFacetValue.includedObjs();return d(this._registry,e)},e}();function O(e){return r.isArray(e)?e.map((function(e){return f(e)})):f(e)}var C=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e=t)})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function M(e){return function(t){function n(n){void 0===n&&(n={});var r=t.call(this)||this,o=s.forInstance®,a=e.objClassNameFor(r.constructor),c=r._prepareAttributesForConstructor(n,o,a),u=new i.BasicWidget©;return u.onDidPersist((function(t){var n=d(e,t),r=v(c,e,o,a);n.update®})),r._scrivitoPrivateContent=u,r}return C(n,t),n.prototype.obj=function(){var t=this._scrivitoPrivateContent.obj();return d(e,t)},n.prototype.copy=function(){var t=e.widgetClassFor(this.objClass());return p(this._scrivitoPrivateContent.copy(),t)},n.prototype.destroy=function(){this._scrivitoPrivateContent.remove()},n.prototype._prepareAttributesForConstructor=function(e,t,n){!function(e,t){if(!e)throw new l.a(“Creating widgets is not supported for the class Widget or abstract classes.”);if(t.constructor!==Object)throw new l.a(“The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.”);if(t._objClass)throw new l.a('Invalid attribute “_objClass”. “new 't._objClass
'” will automatically set the CMS object class correctly.')}(n,e);var i={_objClass:n};return h(Object(r.extend)({},e,i),t,n)},n}(_(new m(e)))}var D=;function x(e){return function(e){var t=r.without.apply(r,.concat(D));if(!r.isEmpty(t))throw new l.a(“Unexpected attributes ”+Object(l.I)(t)+“. Available attributes: ”+Object(l.I)(D))}(e),r.has(e,“obj”)?r.extend({},e,{objId:E(e.obj)}):e}function E(e){return e?f(e).id():null}n(140);var S=function(){function e(){var e;this.mapping={},this.defaultClassForObjs=b(this),this.defaultClassForWidgets=M(this),this.defaultClassForLinks=(e=this,function(){function t(e){var t=x(e);this._scrivitoPrivateContent=new i.BasicLink(t)}return t.prototype.title=function(){return this._scrivitoPrivateContent.title()},t.prototype.query=function(){return this._scrivitoPrivateContent.query()},t.prototype.hash=function(){return this._scrivitoPrivateContent.hash()},t.prototype.rel=function(){return this._scrivitoPrivateContent.rel()},t.prototype.target=function(){return this._scrivitoPrivateContent.target()},t.prototype.url=function(){return this._scrivitoPrivateContent.url()},t.prototype.obj=function(){var t=this._scrivitoPrivateContent.obj();return t?d(e,t):null},t.prototype.queryParameters=function(){return this._scrivitoPrivateContent.queryParameters()},t.prototype.copy=function(t){var n=this._scrivitoPrivateContent.copy(x(t)),r=Object.create(e.defaultClassForLinks.prototype);return r._scrivitoPrivateContent=n,r},t.prototype.isExternal=function(){return this._scrivitoPrivateContent.isExternal()},t.prototype.isInternal=function(){return this._scrivitoPrivateContent.isInternal()},t}()),this.ObjSearch=function(e){var t=function(){function t(){this._scrivitoPrivateContent=new i.BasicObjSearch}return t.prototype.and=function(e,n,r,i){if(e instanceof t){var o=e;this._scrivitoPrivateContent.and(o._scrivitoPrivateContent)}else{if(void 0===n)throw new l.a(“Missing operator to search with”);if(void 0===r)throw new l.a('Missing value to search (specify “null” for missing)');var a=O®,s=e;this._scrivitoPrivateContent.and(s,n,a,i)}return this},t.prototype.andNot=function(e,t,n){var r=O(n);return this._scrivitoPrivateContent.andNot(e,t,r),this},t.prototype.facet=function(t,n){return this._scrivitoPrivateContent.facet(t,n).map((function(t){return new k(e,t)}))},t.prototype.first=function(){var t=this._scrivitoPrivateContent.first();return t?d(e,t):null},t.prototype.take=function(t){return this._scrivitoPrivateContent.take(t).map((function(t){return d(e,t)}))},t.prototype.toArray=function(){return this._scrivitoPrivateContent.take().map((function(t){return d(e,t)}))},t.prototype.offset=function(e){return this._scrivitoPrivateContent.offset(e),this},t.prototype.order=function(e,t){return this._scrivitoPrivateContent.order(e,t),this},t.prototype.count=function(){return this._scrivitoPrivateContent.count()},t}();if(“function”==typeof Symbol){var n=Symbol.iterator;if(n)t.prototype=function(){var t=this._scrivitoPrivateContent.iterator();return{next:function(){var n=t.next();return n.done?{done:n.done}:{done:n.done,value:d(e,n.value)}}}}}return t}(this)}return e.prototype.register=function(e,t){this.mapping=t},e.prototype.getClass=function(e){return this.mapping||null},e.prototype.allObjClasses=function(){var e=this;return r.pick(this.mapping,(function(t){return e.defaultClassForObjs.isPrototypeOf(t)}))},e.prototype.allWidgetClasses=function(){var e=this;return r.pick(this.mapping,(function(t){return e.defaultClassForWidgets.isPrototypeOf(t)}))},e.prototype.objClassFor=function(e){return this.appClassFor(e,this.defaultClassForObjs)},e.prototype.widgetClassFor=function(e){return this.appClassFor(e,this.defaultClassForWidgets)},e.prototype.objClassNameFor=function(e){return r.findKey(this.mapping,(function(t){return t===e}))},e.prototype.setInitialContentFor=function(e){this.initialContentForFunction=e},e.prototype.initialContentFor=function(e,t){if(this.initialContentForFunction)return this.initialContentForFunction(e,t)},e.prototype.appClassFor=function(e,t){var n=this.getClass(e);return n&&t.isPrototypeOf(n)?n:t},e}(),j=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e=t)})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function T(e,t){if(t.extend&&!N(t.extend,e.defaultClassForObjs))throw new l.a('Invalid value for “extend”: not a Scrivito Obj class');var n=t.extend||e.defaultClassForObjs,r=new s(t,n);return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j(t,e),Object.defineProperty(t,“_scrivitoPrivateSchema”,{get:function(){return r},enumerable:!0,configurable:!0}),t}(n)}function L(e,t){if(t.extend&&!N(t.extend,e.defaultClassForWidgets))throw new l.a('Invalid value for “extend”: not a Scrivito Widget class');var n=t.extend||e.defaultClassForWidgets,r=new s(t,n);return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j(t,e),Object.defineProperty(t,“_scrivitoPrivateSchema”,{get:function(){return r},enumerable:!0,configurable:!0}),t}(n)}function P(e,t,n){var i=function(e,t,n){if(c(n))return n;var i=Object(r.extend)({},n,{name:t});return T(e,i)}(e,t,n);return e.register(t,i),i}function A(e,t,n){var i=function(e,t,n){if(c(n))return n;var i=Object(r.extend)({},n,{name:t});return L(e,i)}(e,t,n);return e.register(t,i),i}function N(e,t){return!!e&&(e===t||e.prototype instanceof t)}var I=l.O.refinement(l.O.Function,c,“ObjClass”),Y=l.O.interface({attributes:l.O.maybe(l.O.dict(l.O.refinement(l.O.String,(function(e){return/^(_+|[A-Za-z0-9])*$/.test(e)}),“String (alphanumeric, starting with a lower-case character)”),l.O.union([l.O.enums.of(),l.O.tuple([l.O.enums.of(),l.O.interface({values:l.O.list(l.O.String)})]),l.O.tuple([l.O.enums.of(),l.O.interface({only:l.O.union()})]),l.O.tuple([l.O.enums.of(),l.O.interface({only:l.O.union()})])]),“Attributes Specification”)),extend:l.O.maybe(I)}),R=l.O.refinement(l.O.Function,c,“WidgetClass”),F=l.O.interface({attributes:Y.meta.props.attributes,extend:l.O.maybe(R),onlyInside:l.O.maybe(l.O.union())}),H=Object(l.p)(“createObjClass”,[],{docPerma“js-sdk/createObjClass”}),W=Object(l.p)(“createWidgetClass”,[[“options”,F]],{docPermalink:“js-sdk/createWidgetClass”}),B=l.O.union([Y,I]),z=Object(l.p)(“provideObjClass”,[[“name”,l.O.String],[“objClassOrDefinition”,B]],{docPermalink:“js-sdk/provideObjClass”}),U=l.O.union([F,R]),q=Object(l.p)(“provideWidgetClass”,[[“name”,l.O.String],[“widgetClassOrDefinition”,U]],{docPermalink:“js-sdk/provideWidgetClass”});var V=function(){function e(){this._registry=new S,this.appModelAccessor=new m(this._registry)}return e.init=function(t){var n=new e;return t.Obj=n.Obj,t.Widget=n.Widget,t.Link=n.Link,t.ObjSearch=n.ObjSearch,t.appModelAccessor=n.appModelAccessor,t.provideObjClass=function(e,t){return n.provideObjClass(e,t)},t.provideWidgetClass=function(e,t){return n.provideWidgetClass(e,t)},t.createObjClass=function(e){return n.createObjClass(e)},t.createWidgetClass=function(e){return n.createWidgetClass(e)},t.getClass=function(e){return n.getClass(e)},t.allObjClasses=function(){return n.allObjClasses()},t.allWidgetClasses=function(){return n.allWidgetClasses()},t._privateRealm=n,n},Object.defineProperty(e.prototype,“Obj”,{get:function(){return this._registry.defaultClassForObjs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,“Widget”,{get:function(){return this._registry.defaultClassForWidgets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,“Link”,{get:function(){return this._registry.defaultClassForLinks},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,“ObjSearch”,{get:function(){return this._registry.ObjSearch},enumerable:!0,configurable:!0}),e.prototype.provideObjClass=function(e,t){for(var n=[],r=2;rthis._workspaceId
“/objs/”+this._objId;return y.d.put(t,{obj:e})},e.prototype._initDeferredForRequest=function(){if(this._nextRequestDeferred){var e=this._nextRequestDeferred;this._nextRequestDeferred=null,this._currentRequestDeferred=e}else this._currentRequestDeferred=new d.e},e.prototype._handleBackendUpdate=function(e,t){var n=T(e,this._localState);this._backendState=function(e,t){if(P(e,t)>0)return e;return t}(t,this._bufferedBackendState),this._bufferedBackendState=void 0,this._updateLocalState(L(this._backendState,n))},e.prototype._updateLocalState=function(e){this._localState=e,H(this._workspaceId,this._objId,this._localState)},Object.defineProperty(e.prototype,“backendState”,{get:function(){return this._backendState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,“localState”,{get:function(){return this._localState},enumerable:!0,configurable:!0}),e.prototype.isNotStoredInBackend=function(){return null===this._backendState},e.prototype.isRequestInFlight=function(){return this._replicationActive},e}();function T(e,t){return D(e,t)}function L(e,t){return M(e,t)}function P(e,t){return e?t?function(e,t){if(e>t)return 1;if(t>e)return-1;return 0}(e._version,t._version):1:-1}var A=new(function(){function e(){this.replicationCache={},this.disabled=!1,this.writeWriteCallbacks={},this.subscriptionToken=0}return e.prototype.get=function(e,t){return this.replicationCache||(this.replicationCache={}),this.replicationCache[t]||(this.replicationCache[t]=new j(e,t)),this.replicationCache[t]},e.prototype.subscribeWrites=function(e){return this.subscriptionToken+=1,this.writeWriteCallbacks=e,this.subscriptionToken},e.prototype.unsubscribeWrites=function(e){delete this.writeWriteCallbacks},e.prototype.isDisabled=function(){return this.disabled},e.prototype.writeStarted=function(e){Object(s.each)(this.writeWriteCallbacks,(function(t){t(e)}))},e.prototype.disableReplication=function(){this.disabled=!0},e.prototype.enableReplication=function(){this.disabled=!1},e.prototype.clearWriteCallbacks=function(){this.writeWriteCallbacks={}},e.prototype.clearCache=function(){this.replicationCache={}},e}());function N(e){A=e}function I(){return l.m.subState(“objData”)}var Y=new u.LoadableCollection({name:“objdata”,state:I,loader:function(e){var t=e,n=e;return A.get(t,n).start(),new d.j((function(){}))}});var R=function(){function e(e,t){this._workspaceId=e,this._id=t,this._loadableData=Y.get()}return e.prototype.get=function(){return Object(l.h)(“for performance reasons, avoid this method when rendering”),this._loadableData.get()},e.prototype.getWidget=function(e){return Object(l.h)(“for performance reasons, avoid this method when rendering”),this.getWidgetState(e).get()},e.prototype.getWidgetWithBadPerformance=function(e){return this.getWidgetState(e).get()},e.prototype.getAttribute=function(e){if(“_widget_pool”===e)throw new d.g(“_widget_pool is not an attribute, use getWidget or getWidgetAttribute”);return this.getSubReader(e).get()},e.prototype.getWidgetAttribute=function(e,t){return this.getWidgetState(e).subState(t).get()},e.prototype.isNonExistent=function(){return!!this.getSubReader(“_deleted”).get()||!this.getSubReader(“_id”).get()},e.prototype.set=function(e){Object(l.g)(“Changing CMS content”),this._loadableData.set(e)},e.prototype.setError=function(e){this._loadableData.setError(e)},e.prototype.ensureAvailable=function(){return this._loadableData.ensureAvailable()},e.prototype.isAvailable=function(){return this._loadableData.isAvailable()},e.prototype.update=function(e){var t=M(this.get(),e);this.set(t),this._replication().notifyLocalState(t)},e.prototype.finishSaving=function(){return this._replication().finishSaving()},e.prototype.workspaceId=function(){return this._workspaceId},e.prototype.equals=function(t){return t instanceof e&&(this.workspaceId()===t.workspaceId()&&this._id===t._id)},e.prototype._replication=function(){return A.get(this._workspaceId,this._id)},e.prototype.getWidgetState=function(e){return this.getSubReader(“_widget_pool”).subState(e)},e.prototype.getSubReader=function(e){return this._loadableData.reader().subState(e)},e}();function F(e,t){var n=B(e,t);return n.set(null),A.get(e,t).notifyBackendState(null),n}function H(e,t,n){B(e,t).set(n)}function W(e,t){var n=B(e,t);if(n.ensureAvailable())return n}function B(e,t){return new R(e,t)}var z=function(){return(z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments)Object.prototype.hasOwnProperty.call(t,i)&&(e=t);return e}).apply(this,arguments)},U={results:[],total:0},q=new u.LoadableCollection({name:“objquery”,state:function(){return ee()},loader:function(e,t,n){var r=e,i=e,o=e,a=t.push,s=t.isReload,c=t.wasCancelled;return function(e,t,n,r){if(r>0){var i=new V(e,t,n,r-1);return Object(u.load)((function(){return i.continuationForNextBatch()}))}return d.j.resolve()}(r,i,n,o).then((function(e){if(c())throw new Error;var t={size:n,continuation:e,include_objs:!s()},o=z({},i,t);return y.e.retrieveObjQuery(r,o).then((function(e){var t=e.objs;return t&&a((function(){return t.forEach((function(e){e._id&&A.get(r,e._id).notifyBackendState(e)}))})),function(e,t){t.forEach((function(t){return function(e,t){Object(u.load)((function(){return W(e,t)}))}(e,t)}))}(r,e.results),{results:e.results,total:e.total,continuation:e.continuation}}))}))},invalidation:function(e){var t=e;e,e;return Object(u.loadableWithDefault)(void 0,(function(){return i(t)}))||“”}}),V=function(){function e(e,t,n,r){void 0===r&&(r=0),this._workspaceId=e,this._params=t,this._batchSize=n,this._index=r}return e.store=function(e,t,n,r){void 0===r&&(r=n.length),q.get().set({results:n,total:r})},e.firstBatchFor=function(t,n,r){return new e(t,G(n),r)},e.countFor=function(e,t){return this.firstBatchFor(e,t,0).count()},e.prototype.objIds=function(){return this._response().results},e.prototype.count=function(){return this._response().total||0},e.prototype.nextBatch=function(){if(this.continuationForNextBatch())return new e(this._workspaceId,this._params,this._batchSize,this._index+1)},Object.defineProperty(e.prototype,“index”,{get:function(){return this._index},enumerable:!0,configurable:!0}),e.prototype.continuationForNextBatch=function(){return this._response().continuation},e.prototype._response=function(){return this._data().get()||U},e.prototype._data=function(){return q.get(,this._batchSize)},e}(),$=V;function G(e){var t=Object(s.omit)({query:e.query,offset:e.offset,sort_by:e.sortBy,sort_order:e.sortDirection},s.isUndefined);return e.includeDeleted&&(t.options={include_deleted:!0}),t}var K=function(){function e(e,t,n){this._workspaceId=e,this._params=t,this._batchSize=n}return e.store=function(e,t,n,r){$.store(e,t,n,r)},e.count=function(e,t){return $.countFor(e,t)},e.prototype.iterator=function(){var e={},t=$.firstBatchFor(this._workspaceId,this._params,this._batchSize),n=0;return{next:function r(){if(!t)return{done:!0};var i=t.objIds();if(n<i.length){var o=i;return n++,e?r():(e=!0,{value:o,done:!1})}return t=t.nextBatch(),n=0,r()}}},e}(),J=function(){function e(e,t,n){this._workspaceId=e,this._params=t,this._batchSize=n}return e.prototype.count=function(){return K.count(this._workspaceId,this._params)},e.prototype.iterator=function(){return new Q(this._workspaceId,this._params,this._batchSize)},e}(),Q=function(){function e(e,t,n){this._workspaceId=e,this._iterator=new K(e,t,n).iterator()}return e.prototype.next=function(){if(!this._iterator)return{done:!0};var e=this._iterator.next().value;if(!e)return{done:!0};var t=W(this._workspaceId,e);return void 0===t?(this._iterator=void 0,{done:!0}):t.isNonExistent()?this.next():{value:t,done:!1}},e}();function Z(e,t,n,r){K.store(e,t,n,r)}function X(e,t,n){return v(“Search API”),new J(e,t,n)}function ee(){return l.c.subState(“objQuery”)}var te=new u.LoadableCollection({name:“objFieldDiffs”,state:function(){return l.c.subState(“objFieldDiffs”)},loader:function(e){var t=e,n=e;return y.e.retrieveObjFieldDiffs(t,n)},invalidation:function(e){return function(e,t){var n=W(e,t);if(n)return n.getAttribute(“_version”)||“”;return“”}(e,e)}});function ne(e,t,n,r){if(“published”===e)return null;var i=function(e,t){return re(e,t).get()||{}}(e,n);return r?function(e,t,n){var r=n._widget_pool;if®{var i=r;if(i)return ie(e,i)}return null}(t,r,i):ie(t,i)}function re(e,t){return te.get()}function ie(e,t){var n=t;return n?n:null}function oe(e,t,n){var r=W(“published”,t),i=W(e,t);return r&&i?r.isNonExistent()&&i.isNonExistent()?null:r.isNonExistent()&&!i.isNonExistent()?“new”:!r.isNonExistent()&&i.isNonExistent()?“deleted”:function(e,t,n){var r=e.getWidgetWithBadPerformance(n),i=t.getWidgetWithBadPerformance(n);return r?i?function(e,t){var n=D(e,t);return Object(s.some)(Object.keys(n),(function(e){return!Object(d.z)(e)||“_obj_class”===e}))}(r,i)?“edited”:null:“deleted”:i?“new”:null}(r,i,n):null}},function(e,t,n){var r,i,o; /*!
* URI.js - Mutating URLs * * Version: 1.19.1 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */!function(a,s){"use strict";e.exports?e.exports=s(n(137),n(138),n(139)):(i=[n(137),n(138),n(139)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}(0,(function(e,t,n,r){"use strict";var i=r&&r.URI;function o(e,t){var n=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof o))return n?r?new o(e,t):new o(e):new o;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&n)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}o.version="1.19.1";var a=o.prototype,s=Object.prototype.hasOwnProperty;function c(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function u(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function l(e){return"Array"===u(e)}function d(e,t){var n,r,i={};if("RegExp"===u(t))i=null;else if(l(t))for(n=0,r=t.length;n<r;n++)i[t[n]]=!0;else i[t]=!0;for(n=0,r=e.length;n<r;n++){(i&&void 0!==i[e[n]]||!i&&t.test(e[n]))&&(e.splice(n,1),r--,n--)}return e}function p(e,t){var n,r;if(l(t)){for(n=0,r=t.length;n<r;n++)if(!p(e,t[n]))return!1;return!0}var i=u(t);for(n=0,r=e.length;n<r;n++)if("RegExp"===i){if("string"==typeof e[n]&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function f(e,t){if(!l(e)||!l(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function h(e){return e.replace(/^\/+|\/+$/g,"")}function m(e){return escape(e)}function _(e){return encodeURIComponent(e).replace(/[!'()*]/g,m).replace(/\*/g,"%2A")}o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return o.domAttributes[t]}},o.encode=_,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=_,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(e,t){var n=o.encode(e+"");return void 0===t&&(t=o.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},o.decodeQuery=function(e,t){e+="",void 0===t&&(t=o.escapeQuerySpace);try{return o.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var v,g={encode:"encode",decode:"decode"},y=function(e,t){return function(n){try{return o[t](n+"").replace(o.characters[e][t].expression,(function(n){return o.characters[e][t].map[n]}))}catch(e){return n}}};for(v in g)o[v+"PathSegment"]=y("pathname",g[v]),o[v+"UrnPathSegment"]=y("urnpath",g[v]);var b=function(e,t,n){return function(r){var i;i=n?function(e){return o[t](o[n](e))}:o[t];for(var a=(r+"").split(e),s=0,c=a.length;s<c;s++)a[s]=i(a[s]);return a.join(e)}};function w(e){return function(t,n){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!n),this)}}function k(e,t){return function(n,r){return void 0===n?this._parts[e]||"":(null!==n&&(n+="").charAt(0)===t&&(n=n.substring(1)),this._parts[e]=n,this.build(!r),this)}}o.decodePath=b("/","decodePathSegment"),o.decodeUrnPath=b(":","decodeUrnPathSegment"),o.recodePath=b("/","encodePathSegment","decode"),o.recodeUrnPath=b(":","encodeUrnPathSegment","decode"),o.encodeReserved=y("reserved","encode"),o.parse=function(e,t){var n;return t||(t={preventInvalidHostname:o.preventInvalidHostname}),(n=e.indexOf("#"))>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),(n=e.indexOf("?"))>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===e.substring(0,2)?(t.protocol=null,e=e.substring(2),e=o.parseAuthority(e,t)):(n=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(o.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3)?(e=e.substring(n+3),e=o.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},o.parseHost=function(e,t){e||(e="");var n,r,i=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,i)||null,"/"===t.port&&(t.port=null);else{var a=e.indexOf(":"),s=e.indexOf("/"),c=e.indexOf(":",a+1);-1!==c&&(-1===s||c<s)?(t.hostname=e.substring(0,i)||null,t.port=null):(r=e.substring(0,i).split(":"),t.hostname=r[0]||null,t.port=r[1]||null)}return t.hostname&&"/"!==e.substring(i).charAt(0)&&(i++,e="/"+e),t.preventInvalidHostname&&o.ensureValidHostname(t.hostname,t.protocol),t.port&&o.ensureValidPort(t.port),e.substring(i)||"/"},o.parseAuthority=function(e,t){return e=o.parseUserinfo(e,t),o.parseHost(e,t)},o.parseUserinfo=function(e,t){var n,r=e.indexOf("/"),i=e.lastIndexOf("@",r>-1?r:e.length-1);return i>-1&&(-1===r||i<r)?(n=e.substring(0,i).split(":"),t.username=n[0]?o.decode(n[0]):null,n.shift(),t.password=n[0]?o.decode(n.join(":")):null,e=e.substring(i+1)):(t.username=null,t.password=null),e},o.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,i,a={},c=e.split("&"),u=c.length,l=0;l<u;l++)n=c[l].split("="),r=o.decodeQuery(n.shift(),t),i=n.length?o.decodeQuery(n.join("="),t):null,s.call(a,r)?("string"!=typeof a[r]&&null!==a[r]||(a[r]=[a[r]]),a[r].push(i)):a[r]=i;return a},o.build=function(e){var t="";return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//"),t+=o.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&"string"==typeof e.hostname&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},o.buildHost=function(e){var t="";return e.hostname?(o.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},o.buildAuthority=function(e){return o.buildUserinfo(e)+o.buildHost(e)},o.buildUserinfo=function(e){var t="";return e.username&&(t+=o.encode(e.username)),e.password&&(t+=":"+o.encode(e.password)),t&&(t+="@"),t},o.buildQuery=function(e,t,n){var r,i,a,c,u="";for(i in e)if(s.call(e,i)&&i)if(l(e[i]))for(r={},a=0,c=e[i].length;a<c;a++)void 0!==e[i][a]&&void 0===r[e[i][a]+""]&&(u+="&"+o.buildQueryParameter(i,e[i][a],n),!0!==t&&(r[e[i][a]+""]=!0));else void 0!==e[i]&&(u+="&"+o.buildQueryParameter(i,e[i],n));return u.substring(1)},o.buildQueryParameter=function(e,t,n){return o.encodeQuery(e,n)+(null!==t?"="+o.encodeQuery(t,n):"")},o.addQuery=function(e,t,n){if("object"==typeof t)for(var r in t)s.call(t,r)&&o.addQuery(e,r,t[r]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=n);"string"==typeof e[t]&&(e[t]=[e[t]]),l(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}},o.setQuery=function(e,t,n){if("object"==typeof t)for(var r in t)s.call(t,r)&&o.setQuery(e,r,t[r]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===n?null:n}},o.removeQuery=function(e,t,n){var r,i,a;if(l(t))for(r=0,i=t.length;r<i;r++)e[t[r]]=void 0;else if("RegExp"===u(t))for(a in e)t.test(a)&&(e[a]=void 0);else if("object"==typeof t)for(a in t)s.call(t,a)&&o.removeQuery(e,a,t[a]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===u(n)?!l(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=d(e[t],n):e[t]!==String(n)||l(n)&&1!==n.length?l(e[t])&&(e[t]=d(e[t],n)):e[t]=void 0:e[t]=void 0}},o.hasQuery=function(e,t,n,r){switch(u(t)){case"String":break;case"RegExp":for(var i in e)if(s.call(e,i)&&t.test(i)&&(void 0===n||o.hasQuery(e,i,n)))return!0;return!1;case"Object":for(var a in t)if(s.call(t,a)&&!o.hasQuery(e,a,t[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(u(n)){case"Undefined":return t in e;case"Boolean":return n===Boolean(l(e[t])?e[t].length:e[t]);case"Function":return!!n(e[t],t,e);case"Array":return!!l(e[t])&&(r?p:f)(e[t],n);case"RegExp":return l(e[t])?!!r&&p(e[t],n):Boolean(e[t]&&e[t].match(n));case"Number":n=String(n);case"String":return l(e[t])?!!r&&p(e[t],n):e[t]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var e=[],t=[],n=0,r=0;r<arguments.length;r++){var i=new o(arguments[r]);e.push(i);for(var a=i.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&t.push(a[s]),a[s]&&n++}if(!t.length||!n)return new o("");var c=new o("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||c.path("/"+c.path()),c.normalize()},o.commonPath=function(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n)){n--;break}return n<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(n)&&"/"===t.charAt(n)||(n=e.substring(0,n).lastIndexOf("/")),e.substring(0,n+1))},o.withinString=function(e,t,n){n||(n={});var r=n.start||o.findUri.start,i=n.end||o.findUri.end,a=n.trim||o.findUri.trim,s=n.parens||o.findUri.parens,c=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var u=r.exec(e);if(!u)break;var l=u.index;if(n.ignoreHtml){var d=e.slice(Math.max(l-3,0),l);if(d&&c.test(d))continue}for(var p=l+e.slice(l).search(i),f=e.slice(l,p),h=-1;;){var m=s.exec(f);if(!m)break;var _=m.index+m[0].length;h=Math.max(h,_)}if(!((f=h>-1?f.slice(0,h)+f.slice(h).replace(a,""):f.replace(a,"")).length<=u[0].length||n.ignore&&n.ignore.test(f))){var v=t(f,l,p=l+f.length,e);void 0!==v?(v=String(v),e=e.slice(0,l)+v+e.slice(p),r.lastIndex=l+v.length):r.lastIndex=p}}return r.lastIndex=0,e},o.ensureValidHostname=function(t,n){var r=!!t,i=!1;if(!!n&&(i=p(o.hostProtocols,n)),i&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(t&&t.match(o.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},o.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}return r.URI===this&&(r.URI=i),this},a.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new o(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=w("protocol"),a.username=w("username"),a.password=w("password"),a.hostname=w("hostname"),a.port=w("port"),a.query=k("query","?"),a.fragment=k("fragment","#"),a.search=function(e,t){var n=this.query(e,t);return"string"==typeof n&&n.length?"?"+n:n},a.hash=function(e,t){var n=this.fragment(e,t);return"string"==typeof n&&n.length?"#"+n:n},a.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?o.decodeUrnPath:o.decodePath)(n):n}return this._parts.urn?this._parts.path=e?o.recodeUrnPath(e):"":this._parts.path=e?o.recodePath(e):"/",this.build(!t),this},a.path=a.pathname,a.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=o._parts();var r=e instanceof o,i="object"==typeof e&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[o.getDomAttribute(e)]||"",i=!1);if(!r&&i&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=o.parse(String(e),this._parts);else{if(!r&&!i)throw new TypeError("invalid input");var a=r?e._parts:e;for(n in a)"query"!==n&&s.call(this._parts,n)&&(this._parts[n]=a[n]);a.query&&this.query(a.query,!1)}return this.build(!t),this},a.is=function(e){var t=!1,r=!1,i=!1,a=!1,s=!1,c=!1,u=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,r=o.ip4_expression.test(this._parts.hostname),i=o.ip6_expression.test(this._parts.hostname),s=(a=!(t=r||i))&&n&&n.has(this._parts.hostname),c=a&&o.idn_expression.test(this._parts.hostname),u=a&&o.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return a;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return i;case"idn":return c;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return u}return null};var O=a.protocol,C=a.port,M=a.hostname;a.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return O.call(this,e,t)},a.scheme=a.protocol,a.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),o.ensureValidPort(e))),C.call(this,e,t))},a.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(e,this._parts.protocol)}return M.call(this,e,t)},a.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=o(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this},a.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=o.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==e[e.length-1]&&(e+="@"),o.parseUserinfo(e,this._parts),this.build(!t),this},a.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=o.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},a.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),a=new RegExp("^"+c(i));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&o.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,e),this.build(!t),this},a.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var i=new RegExp(c(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},a.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(r+1);return!0!==t&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}var o;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');o=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},a.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?o.decodePath(r):r}var i=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,i),s=new RegExp("^"+c(a));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=o.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this},a.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return e?o.decodePathSegment(r):r}var i=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var a=new RegExp(c(this.filename())+"$");return e=o.recodePath(e),this._parts.path=this._parts.path.replace(a,e),i?this.normalizePath(t):this.build(!t),this},a.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,i=this.filename(),a=i.lastIndexOf(".");return-1===a?"":(n=i.substring(a+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",e?o.decodePathSegment(r):r)}"."===e.charAt(0)&&(e=e.substring(1));var s,u=this.suffix();if(u)s=e?new RegExp(c(u)+"$"):new RegExp(c("."+u)+"$");else{if(!e)return this;this._parts.path+="."+o.recodePath(e)}return s&&(e=o.recodePath(e),this._parts.path=this._parts.path.replace(s,e)),this.build(!t),this},a.segment=function(e,t,n){var r=this._parts.urn?":":"/",i=this.path(),o="/"===i.substring(0,1),a=i.split(r);if(void 0!==e&&"number"!=typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(o&&a.shift(),e<0&&(e=Math.max(a.length+e,0)),void 0===t)return void 0===e?a:a[e];if(null===e||void 0===a[e])if(l(t)){a=[];for(var s=0,c=t.length;s<c;s++)(t[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(h(t[s])))}else(t||"string"==typeof t)&&(t=h(t),""===a[a.length-1]?a[a.length-1]=t:a.push(t));else t?a[e]=h(t):a.splice(e,1);return o&&a.unshift(""),this.path(a.join(r),n)},a.segmentCoded=function(e,t,n){var r,i,a;if("number"!=typeof e&&(n=t,t=e,e=void 0),void 0===t){if(l(r=this.segment(e,t,n)))for(i=0,a=r.length;i<a;i++)r[i]=o.decode(r[i]);else r=void 0!==r?o.decode(r):void 0;return r}if(l(t))for(i=0,a=t.length;i<a;i++)t[i]=o.encode(t[i]);else t="string"==typeof t||t instanceof String?o.encode(t):t;return this.segment(e,t,n)};var D=a.query;return a.query=function(e,t){if(!0===e)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=e.call(this,n);return this._parts.query=o.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=o.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):D.call(this,e,t)},a.setQuery=function(e,t,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)r[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var i in e)s.call(e,i)&&(r[i]=e[i])}return this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},a.addQuery=function(e,t,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(r,e,void 0===t?null:t),this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},a.removeQuery=function(e,t,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(r,e,t),this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},a.hasQuery=function(e,t,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(r,e,t,n)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},a.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},a.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},a.normalizePath=function(e){var t,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var r,i,a="";for("/"!==(n=o.recodePath(n)).charAt(0)&&(t=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(a=n.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(r=n.search(/\/\.\.(\/|$)/));)0!==r?(-1===(i=n.substring(0,r).lastIndexOf("/"))&&(i=r),n=n.substring(0,i)+n.substring(r+3)):n=n.substring(3);return t&&this.is("relative")&&(n=a+n.substring(1)),this._parts.path=n,this.build(!e),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},a.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var e=o.encode,t=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=e,o.decode=t}return this},a.unicode=function(){var e=o.encode,t=o.decode;o.encode=_,o.decode=unescape;try{this.normalize()}finally{o.encode=e,o.decode=t}return this},a.readable=function(){var t=this.clone();t.username("").password("").normalize();var n="";if(t._parts.protocol&&(n+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=":"+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(n+="/"),n+=t.path(!0),t._parts.query){for(var r="",i=0,a=t._parts.query.split("&"),s=a.length;i<s;i++){var c=(a[i]||"").split("=");r+="&"+o.decodeQuery(c[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==c[1]&&(r+="="+o.decodeQuery(c[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=o.decodeQuery(t.hash(),!0)},a.absoluteTo=function(e){var t,n,r,i=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof o||(e=new o(e)),i._parts.protocol)return i;if(i._parts.protocol=e._parts.protocol,this._parts.hostname)return i;for(n=0;r=a[n];n++)i._parts[r]=e._parts[r];return i._parts.path?(".."===i._parts.path.substring(-2)&&(i._parts.path+="/"),"/"!==i.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),i._parts.path=(t?t+"/":"")+i._parts.path,i.normalizePath())):(i._parts.path=e._parts.path,i._parts.query||(i._parts.query=e._parts.query)),i.build(),i},a.relativeTo=function(e){var t,n,r,i,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new o(e).normalize(),t=s._parts,n=e._parts,i=s.path(),a=e.path(),"/"!==i.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===n.protocol&&(t.protocol=null),t.username!==n.username||t.password!==n.password)return s.build();if(null!==t.protocol||null!==t.username||null!==t.password)return s.build();if(t.hostname!==n.hostname||t.port!==n.port)return s.build();if(t.hostname=null,t.port=null,i===a)return t.path="",s.build();if(!(r=o.commonPath(i,a)))return s.build();var c=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=c+t.path.substring(r.length)||"./",s.build()},a.equals=function(e){var t,n,r,i,a,c=this.clone(),u=new o(e),d={};if(c.normalize(),u.normalize(),c.toString()===u.toString())return!0;if(r=c.query(),i=u.query(),c.query(""),u.query(""),c.toString()!==u.toString())return!1;if(r.length!==i.length)return!1;for(a in t=o.parseQuery(r,this._parts.escapeQuerySpace),n=o.parseQuery(i,this._parts.escapeQuerySpace),t)if(s.call(t,a)){if(l(t[a])){if(!f(t[a],n[a]))return!1}else if(t[a]!==n[a])return!1;d[a]=!0}for(a in n)if(s.call(n,a)&&!d[a])return!1;return!0},a.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},a.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},a.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},o}))},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(226)},function(e,t,n){"use strict";var r;function i(e){r=e}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.r(t);var r,i=n(6),o=n(2),a=n(116),s=["en","de"];t.default={load:function(e,t){a.a.load(e,t)},set locale(e){r=Object(o.contains)(s,e)?e:"en",i.locale(r)},get locale(){return r},translate:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return a.a.translate.apply(a.a,[r,e].concat(t))},localizeDate:function(e){return e?i(e).format("LLLL"):""},localizeDateRelative:function(e){return e?i(e).fromNow():""}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=!1;function i(){return!!r}function o(e){r=e}},function(e,t,n){"use strict";function r(e){return void 0===e&&(e=window),e.devicePixelRatio||1}function i(){return window.location}function o(e){window.location.assign(e)}function a(){return window.history}function s(){return window.screen}function c(){return document}function u(){return window.innerHeight}function l(){return window.pageXOffset}function d(){return window.pageYOffset}function p(e,t){window.scrollTo(e,t)}function f(){return window.document.body.scrollHeight}n.d(t,"a",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"j",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"c",(function(){return f}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n(0),i=n(3),o=n(17),a=!1,s=!1;function c(){var e=o.f().href,t=Object(i.queryParametersFromUrl)(e),n=t._scrivito_workspace_id||"published";"string"==typeof n?(Object(i.setCurrentWorkspaceId)(n),"published"!==n&&(a=t.hasOwnProperty("_scrivito_editing"),s=!a&&t.hasOwnProperty("_scrivito_comparison"))):Object(r.Q)(new r.g("Expected value of _scrivito_workspace_id to be a string, but it is "+typeof n))}function u(){return a}function l(){return s}},function(e,t,n){"use strict";var r=n(28),i=n(3),o=n(88),a=n(0),s=n(183),c=n(5),u=n(7);function l(e){var t,n=u.p.subState("validRailsPageClasses");return t=e?n.subState("byPath").subState(e):n.subState("withoutPath"),new c.LoadableData({state:t,loader:d(e),throwNotLoaded:!0})}function d(e){var t="";return e&&(t="?"+$.param({parent_path:e})),function(){return scrivito.ajax("GET","objs/valid_page_classes"+t)}}var p,f=n(16),h=(p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.type=function(){return"Obj"},t.validPageClasses=function(e){if(Object(f.b)()){var n=function(e){return l(e).get()}(e);return n&&t.existingClassesForNames(n)}return t.all().filter(v)},t.existingClassesForNames=function(e){return e.map((function(e){return t.find(e)})).filter((function(e){return!!e}))},t.prototype.createObjWithDefaults=function(e){return this._classData.usesServerCallbacks?this.createObjWithServerDefaults(e):a.j.resolve(this.createObjWithInitialValues(e))},t.prototype.createBinaryWithDefaults=function(e){var t=this;if(this._classData.usesServerCallbacks)return this.createObjWithServerDefaults({blob:e});var n=i.BasicObj.generateId();return i.Binary.upload(e).intoId(n).then((function(e){return t.createObjWithInitialValues({blob:e},n)}))},t.prototype.isBinary=function(){var e=this.attribute("blob");return!(!e||"binary"!==e.type)},t.prototype.hasChildOrder=function(){var e=this.attribute("childOrder");return!(!e||"referencelist"!==e.type)},t.prototype.createObjWithInitialValues=function(e,t){var n=e._path,o=e._restriction,a=e.blob,s={_objClass:[this.name]};t&&(s._id=[t]),n&&(s._path=[n]),a&&(s.blob=[a,["binary"]]),o&&(s._restriction=[o]);var c=i.BasicObj.create(s);return r.a.initializeContentForObj(c.id()),c},t.prototype.createObjWithServerDefaults=function(e){var t=m({_obj_class:this.name},e);return o.a(t)},t}(s.a);t.a=_;function v(e){return!e.isHiddenInSelectionDialogs()&&!e.isBinary()}},,function(e,t,n){var r=n(33),i=n(45),o=n(186),a=n(126);function s(e,t){!0!==e&&(r(t)?t=t():i(t)&&(t='Assert failed (turn on "Pause on exceptions" in your Source panel)'),s.fail(t))}s.fail=o,s.stringify=a,e.exports=s},function(e,t,n){"use strict";var r=n(1),i=n(505);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},function(e,t,n){"use strict";n.d(t,"m",(function(){return h})),n.d(t,"n",(function(){return u})),n.d(t,"o",(function(){return b})),n.d(t,"p",(function(){return ge})),n.d(t,"q",(function(){return ye})),n.d(t,"r",(function(){return Oe})),n.d(t,"a",(function(){return Ge})),n.d(t,"b",(function(){return yt})),n.d(t,"c",(function(){return Vt})),n.d(t,"d",(function(){return Kt})),n.d(t,"e",(function(){return on})),n.d(t,"f",(function(){return an})),n.d(t,"j",(function(){return sn})),n.d(t,"g",(function(){return dt})),n.d(t,"h",(function(){return un})),n.d(t,"i",(function(){return Q})),n.d(t,"k",(function(){return he})),n.d(t,"l",(function(){return ce}));var r=n(1),i=n.n(r),o=n(5),a=n(0),s=n(7),c=n(106);var u=function(e){return e.displayName||e.name};function l(e){if(r.isValidElement(e))return e.props.__scrivitoForwardElementType||e.type}var d,p=(d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function h(e){if("function"!=typeof e)throw new a.a("Scrivito.connect expects either a plain function or a subclass of React.Component");return function(e){return!0===e._isScrivitoConnectedComponent}(e)?e:function(e){return"function"==typeof e&&e.prototype&&e.prototype.isReactComponent}(e)?m(e):m((t=e,(n=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return p(n,e),n.prototype.render=function(){return t(this.props)},n}(r.Component)).displayName=u(t),n));var t,n}function m(e){var t,n=((t=function(e){function t(t){var n=e.call(this,t)||this;return n._scrivitoPrivateConnector=new v(n),n}return p(t,e),t.prototype.componentDidMount=function(){this._scrivitoPrivateConnector.componentDidMount(),e.prototype.componentDidMount&&e.prototype.componentDidMount.call(this)},t.prototype.componentWillUnmount=function(){this._scrivitoPrivateConnector.componentWillUnmount(),e.prototype.componentWillUnmount&&e.prototype.componentWillUnmount.call(this)},t.prototype.render=function(){var t=this;return this._scrivitoPrivateConnector.render((function(){return e.prototype.render.call(t)}))},t}(e))._isScrivitoConnectedComponent=!0,t);return n.displayName=u(e),n}var _=r.createContext(0),v=function(){function e(e){this.component=e,this.isMounted=!1,this.loadingSubscriber=new o.LoadingSubscriber}return e.prototype.componentDidMount=function(){var e=this;if(void 0===this.hierachyLevel)throw new a.g;if(this.stateSubscriber=Object(s.f)((function(){return e.component.forceUpdate()}),this.hierachyLevel),this.isMounted=!0,this.onMount){var t=this.onMount.bind(this);delete this.onMount,t()}},e.prototype.componentWillUnmount=function(){this.stateSubscriber&&this.stateSubscriber.unsubscribe(),this.unregisterLoadingActivity(),this.isMounted=!1,this.loadingSubscriber.unsubscribe()},e.prototype.render=function(e){var t=this,n=this.renderLoadingAware(e);return r.createElement(_.Consumer,f({},{__scrivitoForwardElementType:l(n)}),(function(e){return t.grabHierarchyLevel(e,r.createElement(_.Provider,{value:e+1},n))}))},e.prototype.grabHierarchyLevel=function(e,t){return this.hierachyLevel=e,t},e.prototype.renderLoadingAware=function(e){var t=this;if(Object(o.isCurrentlyCapturing)())return g(e);var n=Object(o.capture)((function(){return Object(s.o)((function(){return g(e)}))})),r=n.result,i=r.accessedState,u=r.result;return this.whenMounted((function(){if(!t.stateSubscriber)throw new a.g;t.stateSubscriber.subscribeChanges(i),n.subscribeLoading(t.loadingSubscriber),n.isAllDataLoaded()?t.unregisterLoadingActivity():t.unregisterLoadingActivityCallback||(t.unregisterLoadingActivityCallback=Object(c.b)())})),n.isAllDataLoaded()?u:this.handleLoading(u)},e.prototype.whenMounted=function(e){this.isMounted?e():this.onMount=e},e.prototype.handleLoading=function(e){return this.component._scrivitoRenderWhileLoading?this.component._scrivitoRenderWhileLoading():e},e.prototype.unregisterLoadingActivity=function(){var e=this.unregisterLoadingActivityCallback;e&&(delete this.unregisterLoadingActivityCallback,e())},e}();function g(e){var t=Object(o.runAndCatchErrorsWhileLoading)((function(){return Object(s.s)({contextName:"React.Component#render",message:"Use one of the React lifecycle hooks."},e)}));return t.success?t.result:null}var y=n(3);function b(e){if(e instanceof y.BasicObj)return e.id();if(e instanceof y.BasicWidget)return e.obj().id()+"|"+e.id();var t=Object(a.I)(e).substr(0,100);throw new a.g('keyForBasicContent called with "'+t+'". Expected an instance of BasicObj or BasicWidget.')}var w={};function k(e,t){w[e]=t}function O(e){return w[e]||null}function C(e){return O(M(e))}function M(e){return"appClass-"+e}var D,x=n(2),E=0,S={};var j=n(110),T=n(66),L=n(78),P=n(111),A=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function N(e){var t;return(t=function(t){function n(e){var n=t.call(this,e)||this;return n.registeredElement=new F,n}return A(n,t),n.prototype.render=function(){return r.createElement(e,Object(a.n)({},this.props,{registeredElement:this.registeredElement}))},n}(r.Component)).displayName=u(e)+"WithRegisteredElement",t}function I(e,t){var n;return(n=function(n){function i(e){var t=n.call(this,e)||this;return t.registeredElement=new F,t}return A(i,n),i.prototype.componentDidMount=function(){this.unregisterContentZone=Object(P.b)(this.registeredElement.id(),e(this.props),this.context)},i.prototype.componentWillUnmount=function(){this.unregisterContentZone&&this.unregisterContentZone()},i.prototype.render=function(){return r.createElement(R.Provider,{value:this.registeredElement.id()},r.createElement(t,Object(a.n)({},this.props,{registeredElement:this.registeredElement})))},i}(r.Component)).displayName=u(t)+"WithContentZone",n.contextType=R,n}var Y,R=r.createContext(void 0),F=function(){function e(){this.elementId=e.generateId()}return e.generateId=function(){return this.currentId++,this.currentId},e.prototype.id=function(){return this.elementId},e.prototype.set=function(e){e?Object(L.b)(this.elementId,e):Object(L.c)(this.elementId)},e.currentId=0,e}(),H=n(37),W=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),B=N(h(((Y=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDragEnd=n.onDragEnd.bind(n),n}return W(t,e),t.prototype.render=function(){var e=this;return r.createElement("span",{ref:function(t){return e.props.registeredElement.set(t)},className:"scrivito_editing_marker",onClick:this.onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,draggable:!0,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd},r.createElement("i",{className:"scrivito_icon"}),r.createElement("span",{className:"scrivito_editing_marker_title"},this.title()))},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),Object(H.a)().showWidgetMenu(this.props.registeredElement.id(),this.props.widget.obj().id(),this.props.widget.id())},t.prototype.onDragStart=function(e){Object(j.a)(e),Object(H.a)().startDrag(this.props.widget.obj().id(),this.props.widget.id()),this.props.setDragState(!0)},t.prototype.onDragEnd=function(){Object(H.a)().endDrag(),this.props.setDragState(!1)},t.prototype.title=function(){return Object(T.a)(this.props.widget.obj().id(),this.props.widget.id())},t}(r.Component)).displayName="Scrivito.ContentTag.EditingMenuMarker",Y))),z=n(14);var U,q=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V=N(h(((U=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return q(t,e),t.prototype.render=function(){var e,t=this,n=function(e,t){var n={iconClassName:"scrivito_icon",markerClassName:"scrivito_editing_marker"};switch(e){case"new":n.iconClassName+=" scrivito_icon_inv_plus",n.tooltip=$("widget_is_new");break;case"edited":switch(n.iconClassName+=" scrivito_icon_edited",t){case"new":n.markerClassName+=" scrivito_widget_moved_icon",n.tooltip=$("widget_is_edited_and_dragged_here");break;case"deleted":n.markerClassName+=" scrivito_widget_moved_icon",n.tooltip=$("widget_is_edited_and_dragged_away"),n.disableMenu=!0;break;default:n.tooltip=$("widget_is_edited")}break;case"deleted":n.iconClassName+=" scrivito_icon_trash",n.tooltip=$("widget_is_deleted");break;default:switch(n.iconClassName+=" scrivito_icon_moved",t){case"new":n.tooltip=$("widget_is_dragged_here");break;case"deleted":n.tooltip=$("widget_is_dragged_away"),n.disableMenu=!0}}return n}(this.props.modification,this.props.placementModification),i=n.iconClassName,o=n.markerClassName,a=n.tooltip,s=n.disableMenu?void 0:this.onClick;return r.createElement("span",{ref:function(e){return t.props.registeredElement.set(e)},className:s?o:o+" scrivito_disabled",title:a,onClick:s,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},r.createElement("i",{className:i}),r.createElement("span",{className:"scrivito_editing_marker_title"},(e=this.props.widget,Object(T.b)(e.workspaceId(),e.obj().id(),e.id())||"")))},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),Object(H.a)().showWidgetMenu(this.props.registeredElement.id(),this.props.widget.obj().id(),this.props.widget.id())},t}(r.Component)).displayName="Scrivito.ContentTag.ComparisonMenuMarker",U)));function $(e){return function(e){if(z.b)return z.b.translate(e)}("widget_marker."+e)}var G=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=function(e){function t(t){var n=e.call(this,t)||this;return n._onClick=n._onClick.bind(n),n}return G(t,e),t.prototype.render=function(){var e="scrivito_option_marker scrivito_"+this.props.position;return this.props.isAlwaysShown&&(e+=" scrivito_visible"),i.a.createElement("span",{className:e,onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},i.a.createElement("i",{className:"scrivito_icon scrivito_icon_marker_plus"}))},t.prototype._onClick=function(e){e.preventDefault(),e.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)},t}(i.a.Component);K.displayName="Scrivito.OptionMarker";var J,Q=h(K),Z=n(10);var X,ee,te,ne,re=(te=!0,(J={Provider:(ne=r.createContext(te)).Provider,Consumer:(X=ne.Consumer,ee=h((function(e){return(0,e.callback)(e.value)})),function(e){var t=e.children;return r.createElement(X,null,(function(e){return r.createElement(ee,{callback:t,value:e})}))})}).Consumer),ie=J.Provider,oe=n(18),ae=n(24),se=!1;function ce(){se=!0}var ue,le=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),de=function(){return(de=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},pe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n},fe=r.createContext({}),he=h((function(e){var t=de({},e);return delete t.widget,delete t.placementModification,delete t.registeredElement,r.createElement(fe.Consumer,null,(function(e){return r.createElement(me,de({},e,t))}))})),me=I((function(e){var t=e.widget;if(!t)throw new a.g("Missing widget");return{type:"widget",objId:t.obj().id(),widgetId:t.id()}}),h(((ue=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasFocus:!1,isDragging:!1,isFocusFadedOut:!0},n.onMouseOver=n.onMouseOver.bind(n),n.onMouseOut=n.onMouseOut.bind(n),n.onWidgetFocus=n.onWidgetFocus.bind(n),n.onWidgetBlur=n.onWidgetBlur.bind(n),n.lockFocus=n.lockFocus.bind(n),n.unlockFocus=n.unlockFocus.bind(n),n.setDragState=n.setDragState.bind(n),n}return le(t,e),t.prototype.componentDidMount=function(){var e,t;this.focusToken=(e={onFocus:this.onWidgetFocus,onBlur:this.onWidgetBlur},S[t=E]=e,E+=1,t)},t.prototype.componentWillUnmount=function(){var e;e=this.focusToken,delete S[e]},t.prototype.render=function(){var e=this;if(Object(oe.c)())return r.createElement(re,null,(function(t){return t?e.renderWithEditingMarker():e.renderWithoutMarker()}));if(Object(oe.b)()){var t=this.getWidget().modification(),n=this.props.placementModification;if((t||n)&&!this.isChildOfDeletedWidget(t,n))return this.renderWithComparisonMarker(t,n)}return this.renderWithoutMarker()},t.prototype.isChildOfDeletedWidget=function(e,t){return"deleted"===e&&!t},t.prototype.renderWithEditingMarker=function(){var e=this;return r.createElement(this.props.tag,de({},this.forwardedPropsWithMarker(),{ref:function(t){return e.props.registeredElement.set(t)},className:this.className(),style:this.style(),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:[r.createElement(B,{key:"menuMarker",widget:this.getWidget(),setDragState:this.setDragState,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})].concat(r.Children.toArray(this.props.children),[this.renderOptionMarker("top"),this.renderOptionMarker("bottom")])},this.dataProps()))},t.prototype.renderWithComparisonMarker=function(e,t){return r.createElement(this.props.tag,de({},this.forwardedPropsWithMarker(),{className:this.className(),style:this.style(),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:[r.createElement(V,{key:"menuMarker",widget:this.getWidget(),modification:e,placementModification:t,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})].concat(r.Children.toArray(this.props.children))},this.dataProps(e||t)))},t.prototype.renderWithoutMarker=function(){return r.createElement(this.props.tag,this.forwardedProps())},t.prototype.getWidget=function(){var e=this.props.widget;if(!e)throw new a.i("Detected inappropriate placing of Scrivito.WidgetTag: It is intended to be used exclusively as top-level element inside a Widget component.");return e},t.prototype.forwardedProps=function(){var e=this.props;e.tag,e.widget,e.placementModification,e.registeredElement;return pe(e,["tag","widget","placementModification","registeredElement"])},t.prototype.forwardedPropsWithMarker=function(){var e=this.forwardedProps();e.className,e.style;return pe(e,["className","style"])},t.prototype.setDragState=function(e){this.setState({isDragging:e})},t.prototype.className=function(){var e=this.props.className||"";return Object(oe.c)()&&this.hasVisibleFocus()&&(e+=" scrivito_active scrivito_entered"),Object(oe.b)()&&this.isDeleted()&&(e+=" scrivito_modification_opacity"),e},t.prototype.hasVisibleFocus=function(){return this.state.hasFocus&&!this.state.isFocusFadedOut},t.prototype.isDeleted=function(){return"deleted"===this.props.placementModification||"deleted"===this.getWidget().modification()},t.prototype.dataProps=function(e){var t={"data-scrivito-private-widget":"true","data-scrivito-private-dropzone":"true"};return this.isStructureWidget()&&(t["data-scrivito-private-structure-widget"]="true"),e&&(t["data-scrivito-private-widget-modification"]=e),t},t.prototype.style=function(){return this.state.isDragging?this.props.style?de({},this.props.style,{opacity:.5}):{opacity:.5}:this.props.style},t.prototype.isStructureWidget=function(){var e=Object(ae.a)(),t=this.getWidget();if(t){var n=e.widgetClassFor(t.objClass()),r=Z.b.forClass(n);if(r)return Object(x.some)(r.attributes,(function(e,t){return"widgetlist"===e[0]}))}return!1},t.prototype.onMouseOver=function(e){var t,n;e.stopPropagation(),t=this.focusToken,(n=S[D=t])&&n.onFocus()},t.prototype.onMouseOut=function(e){e.stopPropagation(),function(e){if(e===D){var t=S[e];t&&t.onBlur()}}(this.focusToken)},t.prototype.onWidgetFocus=function(){var e=this;this.setState({hasFocus:!0,isFocusFadedOut:!1}),this.fadeOutFocusTimeout&&window.clearTimeout(this.fadeOutFocusTimeout),this.isStructureWidget()||(this.fadeOutFocusTimeout=window.setTimeout((function(){return e.fadeOutFocus()}),1e3))},t.prototype.fadeOutFocus=function(){this.state.isFocusFadedOut||this.isFocusLocked||this.setState({isFocusFadedOut:!0})},t.prototype.lockFocus=function(){this.isFocusLocked=!0},t.prototype.unlockFocus=function(){this.isFocusLocked=!1},t.prototype.onWidgetBlur=function(){this.setState({hasFocus:!1})},t.prototype.renderOptionMarker=function(e){return r.createElement(Q,{key:"optionMarker-"+e,position:e,widget:this.getWidget(),insertWidget:_e,isAlwaysShown:se,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})},t}(r.Component)).displayName="Scrivito.WidgetTag",ue.defaultProps={tag:"div"},ue)));function _e(e,t){z.b.insertWidget(e.obj().id(),e.id(),t)}var ve=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ge(e,t){!function(e){if("function"!=typeof e)throw new a.a("Scrivito.provideComponent expected a valid React component, but received "+Object(a.I)(e))}(t),function(e){return!(e.displayName||e.name&&"_class"!==e.name&&"class_"!==e.name.substring(0,6))}(t)&&(t.displayName=e),function(e,t){k(M(e),t)}(e,function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ve(t,e),t.prototype.render=function(){if(this.props.widget){var t=e.prototype.render.call(this);return l(t)!==he?i.a.createElement(he,{children:t}):t}return e.prototype.render.call(this)},t}(e);return t.displayName=u(e),t}(h(t)))}function ye(e,t){k(e,h(t))}var be,we=n(13),ke=n(17);function Oe(e,t){var n=O(e);!function(e,t){if(!e)throw new a.a('Component with ID "'+t+'" not found. Please make sure you registered it using "Scrivito.registerComponent".')}(n,e);var r=function(e){if(e.widgetId)return function(e){var t=y.BasicObj.get(e.objId).widget(e.widgetId);return{widget:Object(Z.f)(Object(ae.a)(),t)}}(e);if(e.objId)return function(e){var t=y.BasicObj.get(e.objId),n=Object(Z.f)(Object(ae.a)(),t);return{obj:n,page:n}}(e)}(t);be?Object(we.render)(i.a.createElement(n,r),be):be=function(e,t,n){var r=e.createElement("div");return e.body.innerHTML="",e.body.appendChild(r),Object(we.render)(i.a.createElement(t,n),r),r}(Object(ke.b)(),n,r)}var Ce=n(51),Me=n(112),De=n(39),xe=n(143);function Ee(e){var t=new Image;return Se(t)?function(e,t){if(!Se(e))throw new Error("Browser does not support decode!");return e.src=t,function(e){return e.decode&&e.decode.bind(e)}(e)().then((function(){return e}))}(t,e):function(e,t){return new a.j((function(n,r){e.onload=function(){return n(e)},e.onerror=function(e){return r(e)},e.src=t}))}(t,e)}function Se(e){return!!e.decode}function je(e,t,n,r){if(!Te())throw new Error("Browser does not support getCSSCanvasContext!");return Te()(e,t,n,r)}function Te(){return document.getCSSCanvasContext&&document.getCSSCanvasContext.bind(document)}function Le(){return!!Pe()}function Pe(){return document.mozSetImageElement&&document.mozSetImageElement.bind(document)}function Ae(e){var t=document.createElement("canvas");return t.height=e.height,t.width=e.width,Ne(e,t.getContext("2d")),t}function Ne(e,t){t.drawImage(e,0,0)}function Ie(e){return Ee(e).then((function(t){return Le()?function(e){var t=Ae(e),n="ScrivitoBackgroundImage"+Re();return function(e,t){if(!Le())throw new Error("Browser does not support mozSetImageElement!");Pe()(e,t)}(n,t),{decodedBackgroundUrl:"-moz-element(#"+n+")",clear:function(){return function(e){if(!Le())throw new Error("Browser does not support mozSetImageElement!");Pe()(e,null)}(n)}}}(t):Te()?function(e){var t="ScrivitoBackgroundImage"+Re(),n=je("2d",t,e.width,e.height);return Ne(e,n),{decodedBackgroundUrl:"-webkit-canvas("+t+")",clear:function(){je("2d",t,0,0)}}}(t):Se(t)?{decodedBackgroundUrl:"url("+e+")"}:function(e){return Ae(e),{decodedBackgroundUrl:"url("+e.src+")"}}(t)})).catch((function(){return{decodedBackgroundUrl:"url("+e+")"}}))}var Ye=0;function Re(){return Ye+=1}var Fe=function(){function e(e){this.onUpdateCallback=e,this.decodedUrls={},this.loadingRegistry={},this.clears=[]}return e.prototype.getBackgroundImage=function(e){var t=this.decodedUrls[e];return t||this.ensureLoading(e),t},e.prototype.clear=function(){this.clears.map((function(e){return e()}))},e.prototype.ensureLoading=function(e){var t=this;if(!this.decodedUrls[e]&&!this.loadingRegistry[e]){var n=Ie(e).then((function(n){var r=n.decodedBackgroundUrl,i=n.clear;i&&t.clears.push(i),t.decodedUrls[e]=r,t.onUpdateCallback()}));this.loadingRegistry[e]=Object(a.J)(n,(function(){return delete t.loadingRegistry[e]}))}},e}(),He=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),We=function(){return(We=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Be=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n},ze=a.O.struct({image:a.O.String,attachment:a.O.maybe(a.O.String),clip:a.O.maybe(a.O.String),color:a.O.maybe(a.O.String),origin:a.O.maybe(a.O.String),position:a.O.maybe(a.O.String),repeat:a.O.maybe(a.O.String),size:a.O.maybe(a.O.String)}),Ue=a.O.struct({image:a.O.union([y.BinaryType,y.ObjType,a.O.String,a.O.Nil]),attachment:a.O.maybe(a.O.enums.of(["fixed","scroll"])),clip:a.O.maybe(a.O.enums.of(["border-box"])),color:a.O.maybe(a.O.enums.of(["transparent"])),origin:a.O.maybe(a.O.enums.of(["padding-box"])),position:a.O.maybe(a.O.enums.of(["center","left","right","top","bottom"])),repeat:a.O.maybe(a.O.enums.of(["no-repeat"])),size:a.O.maybe(a.O.enums.of(["contain","cover"]))}),qe=a.O.union([ze,Ue]);qe.dispatch=function(e){return tt(e)?ze:Ue};var Ve=a.O.list(qe),$e=a.O.union([qe,Ve]);$e.dispatch=function(e){return Object(x.isArray)(e)?Ve:qe};var Ge=h(function(e){function t(t){var n=e.call(this,t)||this;return n.decoder=new Fe((function(){return n.forceUpdate()})),n.binaryToUrl=n.binaryToUrl.bind(n),n}return He(t,e),t.prototype.componentWillUnmount=function(){this.decoder.clear()},t.prototype.render=function(){var e=this.props,t=e.style,n=e.tag,i=Be(e,["style","tag"]),o=n;return function(e){if(Object(x.isObject)(e))for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];r.match(/^background.+/)&&Object(a.Q)(new a.a('Invalid background related CSS property "'+r+'". Expected property "background" alongside with any non-background propertiesFor further details, see https://www.scrivito.com/js-sdk/background-image-tag'))}}(t),r.createElement(o,We({},i,{style:Ke(t,this.binaryToUrl)}))},t.prototype.binaryToUrl=function(e){var t=Object(Me.a)(e),n=t.initialUrl,r=t.highResUrlToDecode;return r&&this.decoder.getBackgroundImage(r)||"url("+n+")"},t.displayName="Scrivito.BackgroundImageTag",t.propTypes=Object(xe.propTypes)({tag:a.O.maybe(a.O.String),style:a.O.maybe(a.O.interface({background:a.O.maybe($e)},{strict:!1}))},{strict:!1}),t.defaultProps={tag:"div",style:{}},t}(r.Component));function Ke(e,t){if(Object(x.isObject)(e)){var n=e,r=n.background,i=Be(n,["background"]);return We({},i,function(e,t){if(void 0===e)return{};if(Object(x.isArray)(e))return{backgroundImage:Je(n=e.map((function(e){return Ze(e,t)})),"backgroundImage"),backgroundAttachment:Je(n,"backgroundAttachment"),backgroundClip:Je(n,"backgroundClip"),backgroundOrigin:Je(n,"backgroundOrigin"),backgroundPosition:Je(n,"backgroundPosition"),backgroundRepeat:Je(n,"backgroundRepeat"),backgroundSize:Je(n,"backgroundSize"),backgroundColor:Qe(n)};var n;return Ze(e,t)}(r,t))}return{}}function Je(e,t){return e.map((function(e){return e[t]})).join(", ")}function Qe(e){var t=Object(x.last)(e);if(t)return t.backgroundColor}function Ze(e,t){return tt(e)?Xe(e):function(e,t){var n=e.image;if(n instanceof y.Binary)return et(n,e,t);if(n instanceof Object(De.a)().Obj){var r=Object(Z.e)(n);if(Object(Ce.a)(r)){var i=r.get("blob",["binary"]);if(i)return et(i,e,t)}}return Xe({image:"none"})}(e,t)}function Xe(e){return{backgroundImage:e.image,backgroundAttachment:e.attachment||"scroll",backgroundClip:e.clip||"border-box",backgroundColor:e.color||"transparent",backgroundOrigin:e.origin||"padding-box",backgroundPosition:e.position||"0% 0%",backgroundRepeat:e.repeat||"repeat",backgroundSize:e.size||"auto"}}function et(e,t,n){return{backgroundImage:n(e),backgroundAttachment:t.attachment||"scroll",backgroundClip:t.clip||"border-box",backgroundColor:t.color||"transparent",backgroundOrigin:t.origin||"padding-box",backgroundPosition:t.position||"center center",backgroundRepeat:t.repeat||"no-repeat",backgroundSize:t.size||"cover"}}function tt(e){return Object(x.isString)(e.image)}var nt=n(43),rt=n(76);function it(e){return e.ctrlKey||e.metaKey||e.shiftKey||2===e.which}var ot=n(59),at=n(42),st=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ct=function(){return(ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ut=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n};function lt(e){if(e){var t=Object(Z.e)(e);return t instanceof y.BasicLink?t:void 0}}var dt=h(function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return st(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.to,i=e.params,o=ut(e,["children","to","params"]),a=ct({},o,{href:n&&this.hrefFor(n,i)||"#",onClick:this.onClick,rel:this.rel(),target:this.target()});return r.createElement("a",ct({},a),t)},t.prototype.hrefFor=function(e,t){return"string"==typeof e?e:this.urlFor(e,t||void 0)},t.prototype.onClick=function(e){if(!this.props.onClick||(this.props.onClick(e),!e.defaultPrevented)){e.preventDefault();var t=this.props.to;if(t)if("string"!=typeof t){var n=this.props.params||void 0,r=this.urlFor(t,n);if(r){var i=this.target();"_blank"===i||it(e)?Object(at.b)(r):i?Object(at.c)(r,i):Object(rt.a)(t,{params:n})}}else Object(at.b)(t)}},t.prototype.target=function(){if(this.props.target)return this.props.target;var e=lt(this.props.to);return e&&e.target()||void 0},t.prototype.rel=function(){if("rel"in this.props)return this.props.rel;var e=lt(this.props.to);return e&&e.rel()||void 0},t.prototype.urlFor=function(e,t){var n=Object(Z.e)(e);if(n instanceof y.BasicObj||n instanceof y.BasicLink)return Object(ot.a)(n,{queryParameters:t||void 0})},t.displayName="Scrivito.LinkTag",t.propTypes=Object(xe.propTypes)({to:a.O.maybe(a.O.union([y.ObjType,y.LinkType,a.O.String])),params:a.O.union([a.O.dict(a.O.String,a.O.union([a.O.Nil,a.O.String,a.O.list(a.O.String)])),a.O.maybe(a.O.irreducible("false",(function(e){return!1===e})))]),onClick:a.O.maybe(a.O.Function)},{strict:!1}),t}(r.Component));function pt(e){var t=e.child,n=e.renderChild,r=Object(De.a)().appModelAccessor.wrapInAppClass(t);return n?n(r):i.a.createElement("li",null,i.a.createElement(dt,{to:r},t.get("title","string")))}pt.displayName="Scrivito.ChildListTag.ChildItem";var ft,ht=h(pt),mt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=N(h(((ft=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return mt(t,e),t.prototype.render=function(){var e=this;return r.createElement("span",{ref:function(t){return e.props.registeredElement.set(t)},className:"scrivito_editing_marker",onClick:this.onClick},r.createElement("i",{className:"scrivito_icon"}),r.createElement("span",{className:"scrivito_editing_marker_title"},this.props.parent.objClass()))},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),Object(H.a)().showChildListMenu(this.props.registeredElement.id(),this.props.parent.id())},t}(r.Component)).displayName="Scrivito.ChildListTag.MenuMarker",ft))),vt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasFocus:!1},n._onMouseOver=n._onMouseOver.bind(n),n._onMouseOut=n._onMouseOut.bind(n),n}return vt(t,e),t.prototype.render=function(){var e=this,t=this.props.parent||Object(nt.a)();if(!t)return null;t=t._scrivitoPrivateContent;var n=Object(x.omit)(this.props,"parent","tag","renderChild"),r=t.orderedChildren();return i.a.createElement(re,null,(function(o){var a;return Object(oe.c)()&&o&&(n.onMouseOver=e._onMouseOver,n.onMouseOut=e._onMouseOut,n["data-scrivito-private-child-list-path"]=!0,e.state.hasFocus&&(n.className="scrivito_active scrivito_entered "+n.className),a=i.a.createElement(_t,{parent:t,key:"menuMarker"})),i.a.createElement(e.props.tag,n,[a].concat(r.map((function(t){return i.a.createElement(ht,{key:t.id(),child:t,renderChild:e.props.renderChild})}))))}))},t.prototype._onMouseOver=function(e){e.stopPropagation(),this.setState({hasFocus:!0})},t.prototype._onMouseOut=function(e){e.stopPropagation(),this.setState({hasFocus:!1})},t}(i.a.Component);gt.displayName="Scrivito.ChildListTag",gt.defaultProps={tag:"ul"};var yt=h(gt),bt=n(31),wt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kt=function(){return(kt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n},Ct=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasError:!1},n}return wt(t,e),t.prototype.componentDidCatch=function(e){Object(a.Q)(e),this.setState({hasError:!0})},t.prototype.shouldComponentUpdate=function(e){return this.props.widget.equals(e.widget)},t.prototype.render=function(){return this.state.hasError?Object(oe.c)()?Dt(this.props.widget,r.createElement(he,null,r.createElement("div",{className:"content_error"},"Widget could not be rendered due to application error.")),this.props.placementModification):Dt(this.props.widget,r.createElement(he,null),this.props.placementModification):r.createElement(Mt,{widget:this.props.widget,widgetProps:this.props.widgetProps,placementModification:this.props.placementModification})},t.displayName="Scrivito.ContentTag.WidgetContent",t}(r.Component),Mt=function(e){function t(t){return e.call(this,t)||this}return wt(t,e),t.prototype.render=function(){return Dt(this.props.widget,r.createElement(this.getAppWidgetComponent(),this.getAppWidgetProps()),this.props.placementModification)},t.prototype.getAppWidgetComponent=function(){var e=this.props.widget.objClass(),t=C(e);if(!t)throw new a.a('No component registered for widget class "'+e+'"');return t},t.prototype.getAppWidgetProps=function(){var e={widget:Object(Z.f)(Object(ae.a)(),this.props.widget)};if(this.props.widgetProps&&this.props.widgetProps.hasOwnProperty("widget")){Object(a.Q)(new a.a('The prop "widget" is not allowed inside "widgetProps"'));var t=this.props.widgetProps,n=(t.widget,Ot(t,["widget"]));return kt({},e,n)}return kt({},e,this.props.widgetProps)},t}(r.Component);function Dt(e,t,n){return r.createElement(fe.Provider,{value:{widget:e,placementModification:n},children:t})}var xt,Et=h(Ct),St=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jt=function(){return(jt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Tt=I((function(e){return jt({type:"widgetlist"},Lt(e.field))}),h(((xt=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return St(t,e),t.prototype.render=function(){var e=this;return r.createElement("div",{ref:function(t){e.widgetlistPlaceholder=t,e.props.registeredElement.set(t)},className:"scrivito_empty_widget_field","data-scrivito-private-dropzone":"true",onClick:this.onClick})},t.prototype.onClick=function(e){if(e.preventDefault(),e.stopPropagation(),this.widgetlistPlaceholder){var t=Lt(this.props.field),n=t.objId,r=t.widgetId,i=t.attributeName;Object(H.a)().showWidgetlistMenu(this.props.registeredElement.id(),Object(a.r)(e,this.widgetlistPlaceholder),n,i,r)}},t}(r.Component)).displayName="Scrivito.ContentTag.WidgetlistPlaceholder",xt)));function Lt(e){var t=e.getContainer();return t instanceof y.BasicObj?{objId:t.id(),attributeName:e.name()}:{objId:t.obj().id(),widgetId:t.id(),attributeName:e.name()}}var Pt=n(12),At=n(25);function Nt(e){return function e(t,n,r){if(t===n)return null;if(a=t,"A"===a.nodeName){var i=t.href,o=Pt(i);return Object(At.e)(o)?r||"_blank"===t.getAttribute("target")?{openInNewWindow:i}:{openInCurrentWindow:o.resource()}:null}var a;if(!t.parentNode)return null;return e(t.parentNode,n,r)}(e.target,e.currentTarget,it(e))}var It,Yt=n(67),Rt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ft=h(((It=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Rt(t,e),t.prototype.render=function(){switch(this.props.field.type()){case"html":return this.renderHtml();case"string":return this.renderString();case"float":case"integer":return this.renderNumber();case"widgetlist":return this.renderWidgetlist();default:return this.renderContent({children:this.props.children})}},t.prototype.renderHtml=function(){if(this.props.children)return this.renderContent({children:this.props.children});var e=this.attributeValue();return this.renderContent({props:{dangerouslySetInnerHTML:{__html:Object(Yt.a)(Object(oe.b)()&&this.getHtmlDiffContent()||e)},onClick:this.onClick}})},t.prototype.renderString=function(){if(this.props.children)return this.renderContent({children:this.props.children});if(Object(oe.b)()){var e=this.getHtmlDiffContent();if(e)return this.renderContent({props:{dangerouslySetInnerHTML:{__html:e}}})}return this.renderContent({children:this.attributeValue()})},t.prototype.renderNumber=function(){var e=this.props.children||this.attributeValue();return this.renderContent({children:e})},t.prototype.renderWidgetlist=function(){return this.renderContent({children:this.widgetlistChildren()})},t.prototype.widgetlistChildren=function(){var e=this;if(Object(oe.b)()&&"published"!==this.props.field.workspaceId())return this.widgetlistChildrenForComparison();var t=this.attributeValue();return t.length?t.map((function(t){return r.createElement(Et,{key:t.id(),widget:t,widgetProps:e.props.widgetProps})})):this.renderPlaceholderIfEditable()},t.prototype.widgetlistChildrenForComparison=function(){var e=this,t=Object(y.getPlacementModificationInfos)(this.props.field);if(t.length)return t.map((function(t){return r.createElement(Et,{key:t.widget.id()+"-"+t.modification,widget:t.widget,widgetProps:e.props.widgetProps,placementModification:t.modification})}))},t.prototype.renderPlaceholderIfEditable=function(){var e=this;if(Object(oe.c)())return r.createElement(re,null,(function(t){return t&&r.createElement(Tt,{field:e.props.field})}))},t.prototype.renderContent=function(e){var t=Object(x.extend)({},this.props.customProps,e.props,this.editingProps());return e.children&&(t.children=e.children),r.createElement(this.props.tag,t)},t.prototype.onClick=function(e){var t,n=Nt(e);n&&((t=n)&&t.openInNewWindow?this.openInNewWindow(e,n):this.openInCurrentWindow(e,n))},t.prototype.openInNewWindow=function(e,t){var n=t.openInNewWindow;z.b&&(e.preventDefault(),e.stopPropagation(),Object(at.b)(n))},t.prototype.openInCurrentWindow=function(e,t){var n=t.openInCurrentWindow;e.preventDefault(),e.stopPropagation(),bt.d(n)},t.prototype.editingProps=function(){return this.props.onClick?{onClick:this.props.onClick,"data-scrivito-is-clickable":!0}:{}},t.prototype.attributeValue=function(){return this.props.field.get()},t.prototype.getHtmlDiffContent=function(){var e=this.props.field.getDiff();if(e&&"html"===e.format)return e.content},t}(r.Component)).displayName="Scrivito.ContentTag.AttributeValue",It)),Ht=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wt=function(){return(Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Bt=h(function(e){function t(t){var n=e.call(this,t)||this;n._field=n.props.field,n.state={domMode:"None"},n._isPendingUpdate=!1;var r=n.props.editorClass;if(r){var i={getContent:n._getContent.bind(n),setContent:n._setContent.bind(n),setDomMode:n._setDomMode.bind(n),validObjClasses:n.validObjClasses.bind(n)};n._editor=new r({controller:i})}return n}return Ht(t,e),t.prototype.componentDidMount=function(){var e=this;this._editorWillBeActivated();var t=Object(s.l)((function(){return e._getContent()}),(function(t){if(e._isPendingUpdate&&e._pendingUpdateValue===t)return e._isPendingUpdate=!1,void(e._pendingUpdateValue=void 0);e._contentDidChange()}));this._unsubscribe=t.unsubscribe,"Replace"===this.state.domMode&&this._editorDomWasMounted()},t.prototype.componentDidUpdate=function(e,t){var n=t.domMode,r=this.state.domMode;n!==r&&("Replace"===r?this._editorDomWasMounted():this._editorDomWasUnmounted())},t.prototype.componentWillUnmount=function(){this._editorWillBeDeactivated(),this._unsubscribe&&this._unsubscribe()},t.prototype.render=function(){var e,t=this;if("Replace"===this.state.domMode)return r.createElement(this.props.tag,Wt({},Object(x.omit)(this.props.customProps,"children"),{ref:function(e){t._editorComponent=e}}));var n=this._editor;n&&n.onClick&&(e=function(e){var t={stopPropagation:e.stopPropagation.bind(e),preventDefault:e.preventDefault.bind(e)};n.onClick(t)});var i={ref:function(e){t._editorComponent=e},children:this.props.children,widgetProps:this.props.widgetProps,customProps:this.props.customProps,field:this.props.field,key:this.state.domMode,tag:this.props.tag,onClick:e};return r.createElement(Ft,i)},t.prototype._contentDidChange=function(){this._editor&&this._editor.contentDidChange()},t.prototype._editorWillBeActivated=function(){this._editor&&this._editor.editorWillBeActivated()},t.prototype._editorWillBeDeactivated=function(){this._editor&&this._editor.editorWillBeDeactivated()},t.prototype._editorDomWasMounted=function(){if(this._editor&&this._editorComponent){var e=Object(we.findDOMNode)(this._editorComponent);this._editor.editorDomWasMounted(e)}},t.prototype._editorDomWasUnmounted=function(){this._editor&&this._editor.editorDomWasUnmounted()},t.prototype._setDomMode=function(e){this.setState({domMode:e})},t.prototype._getContent=function(){var e=this;return Object(o.capture)((function(){var t=e._field.get();if("html"===e._field.type()){var n=t;t=Object(Yt.a)(n)}return t})).result},t.prototype._setContent=function(e){this._isPendingUpdate=!0,this._pendingUpdateValue=e,this._field.update(e)},t.prototype.validObjClasses=function(){return this._field.validClasses()},t.displayName="Scrivito.ContentTag.Editor",t}(r.Component)),zt=n(108),Ut=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n},Vt=h(function(e){function t(t){return e.call(this,t)||this}return Ut(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.content,i=t.attribute,o=t.tag,s=(t.widgetProps,qt(t,["content","attribute","tag","widgetProps"]));if(!n)return null;var c=Z.b.basicFieldFor(n,i);if(!c){var u=i;return Object(a.Q)(new a.a('Component "Scrivito.ContentTag" received prop "attribute" with invalid value: Attribute "'+u+'" is not defined for content specified in prop "content".')),null}var l=c.type();return r.createElement(re,null,(function(t){if(Object(oe.c)()&&t){var i=void 0,a=void 0,u=Object(zt.a)({type:l,tag:o});if(u)return i=u.id,a=u.editorClass,r.createElement(Bt,{key:e.editorKey(i),field:c,editorClass:a,tag:o,widgetProps:e.widgetProps(l),customProps:s,content:n},e.props.children)}return r.createElement(Ft,{field:c,tag:o,widgetProps:e.widgetProps(l),customProps:s},e.props.children)}))},t.prototype.widgetProps=function(e){if(this.props.widgetProps){if("widgetlist"===e)return this.props.widgetProps;Object(a.Q)(new a.a('The prop "widgetProps" is only allowed for widgetlist attributes'))}},t.prototype.editorKey=function(e){var t=Object(Z.e)(this.props.content);return[this.props.tag,b(t),this.props.attribute,e].join("|")},t.displayName="Scrivito.ContentTag",t.defaultProps={tag:"div"},t}(r.Component)),$t=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $t(t,e),t.prototype.render=function(){var e=Object(nt.a)(),t=Object(nt.c)();if(!e)return null;var n=e.objClass(),r=C(n);if(!r)throw new a.a('No component registered for obj class "'+n+'"');return i.a.createElement(r,{page:e,params:t})},t}(i.a.Component);Gt.displayName="Scrivito.CurrentPage";var Kt=h(Gt);var Jt=new a.d,Qt=1448;function Zt(e){return e.isRaw()||e.isExplicitlyTransformed()?e.url():Jt.current()?Xt(e).url():function(e){var t=(n=function(){return Xt(e).urlWithoutPlaceholder()},Object(o.capture)(n).result);var n;if(t&&function(e){var t=en[e];void 0===t&&(t=function(e){var t=new Image;return t.src=e,t.complete}(e),en[e]=t);return t}(t))return t}(e)||function(e){return e.optimizeFor({width:Object(ke.j)().width*Object(ke.a)()}).url()}(e)}function Xt(e){return e.optimizeFor({width:Qt})}var en={};var tn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nn=function(){return(nn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},rn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n};var on=h(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tn(t,e),t.prototype.render=function(){var e=this.props,t=e.content,n=e.attribute,i=rn(e,["content","attribute"]);if(!t)return null;if(t instanceof y.Binary)return r.createElement("img",nn({src:Zt(t)},i));var o,s=function(e,t){var n=Z.b.forInstance(e);if(!n)return;var r=Object(Z.e)(e),i=n.attributes[t];if(!i)return void Object(a.Q)(new a.a('Component "Scrivito.ImageTag" received prop "content" with an object missing attribute "'+t+'".'));var o=i[0];if("binary"===o)return r.get(t,"binary");if("reference"===o)return function(e){if(e){var t=e.get("blob","binary");if(t)return t}return null}(r.get(t,"reference"));Object(a.Q)(new a.a('Component "Scrivito.ImageTag" received prop "content" with an object, whose attribute "'+t+'" is of unexpected type "'+o+'". Valid attribute types are "binary" and "reference".'))}(t,n);return void 0===s?null:(null===s?(o="data:image/gif;base64,R0lGODlhyADIAIAAAP///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU0OTExLCAyMDEzLzEwLzI5LTExOjQ3OjE2ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDBEQjBEMDdFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDBEQjBEMDhFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMERCMEQwNUU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMERCMEQwNkU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAAALAAAAADIAMgAAAL/hI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8aNBhw7eixTAAA7",i["data-scrivito-image-placeholder"]=!0):o=Zt(s),r.createElement(Vt,nn({attribute:n,content:t,tag:"img",src:o},i)))},t.displayName="Scrivito.ImageTag",t.defaultProps={attribute:"blob"},t}(r.Component)),an=function(e){var t=e.children;return Object(oe.c)()?r.createElement(ie,{children:t,value:!1}):t},sn=function(e){var t=e.children;return Object(oe.c)()?r.createElement(ie,{children:t,value:!0}):t},cn=function(e){var t=e.children;return Object(nt.b)()?t?r.createElement("div",null,t):r.createElement("div",null,r.createElement("h1",null,"The page you were looking for doesn't exist."),r.createElement("p",null,"You may have mistyped the address or the page may have moved.")):null};cn.displayName="Scrivito.NotFoundErrorPage";var un=h(cn)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(39);function i(){return Object(r.a)()._privateRealm._registry}},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"f",(function(){return m})),n.d(t,"e",(function(){return _})),n.d(t,"a",(function(){return y}));var r=n(12),i=n(2),o=n(69),a=n(61),s=n(17),c=n(0),u=(n(3),""),l=!1;function d(e){var t=void 0===e?{}:e,n=t.routingBasePath,r=t.homepageCallback;l=!0,u=n||"",r&&Object(a.b)(r)}function p(e){var t=e.obj,n=e.queryParameters,r=e.hash,i=e.origin;v("generateUrl");var a=g({path:o.a(t),queryParameters:n,hash:r});return i&&a.origin(i),a.toString()}function f(e){var t=e.path;return v("generatePath"),g({path:t})}function h(e){v("recognize");var t="string"==typeof e?r(e):e,n=function(e){if(_(e))return function(e){var t=e.path();if(t.substring(0,u.length)!==u)return null;return t.substring(u.length)}(e);return null}(t),a=t.query(!0),s=function(e){var t=e.hash();if(""===t)return null;return t}(t);return Object(i.isString)(n)?{path:n,obj:o.b(n),queryParameters:a,hash:s}:{path:n,obj:null,queryParameters:a,hash:s}}function m(e){return _(r(e))}function _(e){return!e.is("absolute")||e.origin()===y()}function v(e){if(!l)throw Object(c.F)("Error from Scrivito SDK: No application configured, cannot initialize routing."),new c.g(e+" can't be called before init.")}function g(e){var t=e.path,n=e.queryParameters,i=e.hash,o=("/"+u+"/"+t).replace(/\/+/g,"/"),a=r("").pathname(o);return n&&a.query(n),i&&a.hash(i),a}function y(){return r(s.f()).origin()}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";var r,i=n(28),o=n(0),a=n(178),s=n(88),c=n(3),u=n(2),l=n.n(u),d=n(183),p=n(90),f=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n.embeds=t.embeds,n._embeddingAttribute=t.embeddingAttribute,n}return f(t,e),t.type=function(){return"Widget"},t.validClassNamesForField=function(e){return this.validClassesForField(e).map((function(e){return e.name}))},t.validClassesForField=function(e){var t,n,r=e.getContainer(),i=(n=(t=r)instanceof c.BasicWidget?"Widget":"Obj",p.a.findByType(n,t.objClass()));if(i&&i.usesServerCallbacks())return Object(a.a)(e).reduce((function(e,t){var n=p.a.findByType("Widget",t);return n&&e.push(n),e}),[]);var o,s=i&&i.attribute(e.name());return(s&&s.only()||p.a.allForType("Widget")).filter((o=r.objClass(),function(e){return!e.isHiddenInSelectionDialogs()&&e.isValidContainerClass(o)}))},t.prototype.newWidgetWithDefaults=function(){if(this._classData.usesServerCallbacks)return s.b(this.name);var e=new c.BasicWidget({_objClass:[this.name]});return e.onDidPersist((function(){var t=e.obj().id(),n=e.id();i.a.initializeContentForWidget(t,n)})),o.j.resolve(e)},t.prototype.embeddingAttribute=function(){if(this.embeds)return this.attribute(this._embeddingAttribute)},t.prototype.isValidContainerClass=function(e){return!this._classData.validContainerClasses||l.a.contains(this._classData.validContainerClasses,e)},t}(d.a);t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(87),i=n(7),o=n(8),a=Object(o.c)(r.a,Object(o.f)((function(){return c().get()})));function s(e){c().set(e)}function c(){return i.p.subState("appConfig")}},function(e,t,n){var r=n(34),i=n(63);e.exports=function(e){return r(e)?e.displayName:i(e)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";n.d(t,"f",(function(){return N})),n.d(t,"a",(function(){return I})),n.d(t,"c",(function(){return Y})),n.d(t,"b",(function(){return R})),n.d(t,"d",(function(){return F})),n.d(t,"e",(function(){return H}));var r=n(17),i=n(0),o=n(7),a=n(26),s=n.n(a),c=n(30),u=n.n(c);function l(e){return"/"===e.charAt(0)}function d(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&l(e),o=t&&l(t),a=i||o;if(e&&l(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var c=r[r.length-1];s="."===c||".."===c||""===c}else s=!1;for(var u=0,p=r.length;p>=0;p--){var f=r[p];"."===f?d(r,p):".."===f?(d(r,p),u++):u&&(d(r,p),u--)}if(!a)for(;u--;u)r.unshift("..");!a||""===r[0]||r[0]&&l(r[0])||r.unshift("");var h=r.join("/");return s&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var f,h,m=function(e){return"/"===e.charAt(0)?e:"/"+e},_=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},v=function(e,t){return _(e,t)?e.substr(t.length):e},g=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},y=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(e,t,n,r){var i=void 0;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=b({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=p(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},k=function(){var e=null,t=[];return{setPrompt:function(t){return s()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):(s()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}},O=!("undefined"==typeof window||!window.document||!window.document.createElement),C=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},M=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},D=function(e,t){return t(window.confirm(e))},x=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},E=function(){return-1===window.navigator.userAgent.indexOf("Trident")},S=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L=function(){try{return window.history.state||{}}catch(e){return{}}},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u()(O,"Browser history needs a DOM");var t=window.history,n=x(),r=!E(),i=e.forceRefresh,o=void 0!==i&&i,a=e.getUserConfirmation,c=void 0===a?D:a,l=e.keyLength,d=void 0===l?6:l,p=e.basename?g(m(e.basename)):"",f=function(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return s()(!p||_(o,p),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+o+'" to begin with "'+p+'".'),p&&(o=v(o,p)),w(o,r,n)},h=function(){return Math.random().toString(36).substr(2,d)},b=k(),P=function(e){T(Z,e),Z.length=t.length,b.notifyListeners(Z.location,Z.action)},A=function(e){S(e)||Y(f(e.state))},N=function(){Y(f(L()))},I=!1,Y=function(e){if(I)I=!1,P();else{b.confirmTransitionTo(e,"POP",c,(function(t){t?P({action:"POP",location:e}):R(e)}))}},R=function(e){var t=Z.location,n=H.indexOf(t.key);-1===n&&(n=0);var r=H.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(I=!0,U(i))},F=f(L()),H=[F.key],W=function(e){return p+y(e)},B=function(e,r){s()(!("object"===(void 0===e?"undefined":j(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=w(e,r,h(),Z.location);b.confirmTransitionTo(i,"PUSH",c,(function(e){if(e){var r=W(i),a=i.key,c=i.state;if(n)if(t.pushState({key:a,state:c},null,r),o)window.location.href=r;else{var u=H.indexOf(Z.location.key),l=H.slice(0,-1===u?0:u+1);l.push(i.key),H=l,P({action:"PUSH",location:i})}else s()(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}}))},z=function(e,r){s()(!("object"===(void 0===e?"undefined":j(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=w(e,r,h(),Z.location);b.confirmTransitionTo(i,"REPLACE",c,(function(e){if(e){var r=W(i),a=i.key,c=i.state;if(n)if(t.replaceState({key:a,state:c},null,r),o)window.location.replace(r);else{var u=H.indexOf(Z.location.key);-1!==u&&(H[u]=i.key),P({action:"REPLACE",location:i})}else s()(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}}))},U=function(e){t.go(e)},q=function(){return U(-1)},V=function(){return U(1)},$=0,G=function(e){1===($+=e)?(C(window,"popstate",A),r&&C(window,"hashchange",N)):0===$&&(M(window,"popstate",A),r&&M(window,"hashchange",N))},K=!1,J=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=b.setPrompt(e);return K||(G(1),K=!0),function(){return K&&(K=!1,G(-1)),t()}},Q=function(e){var t=b.appendListener(e);return G(1),function(){G(-1),t()}},Z={length:t.length,action:"POP",location:F,createHref:W,push:B,replace:z,go:U,goBack:q,goForward:V,block:J,listen:Q};return Z},A=(Object.assign,"function"==typeof Symbol&&Symbol.iterator,Object.assign,0);function N(e){if("/"!==e.createHref({pathname:"/"}))throw new i.a("Expected a history without a preconfigured basename. For further details, see: https://www.scrivito.com/js-sdk/useHistory");if(e!==f){var t=!f;!function(e){h&&h();h=e.listen(z)}(e),f=e,t||z()}}function I(){var e=B().location;return""+e.pathname+e.search+e.hash}function Y(){return""+r.f().origin+I()}function R(){return U().get()||0}function F(e){return B().push(e)}function H(e){return B().replace(e)}function W(){f||N(P())}function B(){return W(),f}function z(){A++,U().set(A)}function U(){return o.b.subState("historyChangesCount")}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(0),i=n(3),o=r.O.list(r.O.union([r.O.Function,r.O.list(r.O.union([r.O.String,r.O.Function,r.O.Object]))]));var a={};function s(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];h.apply(void 0,[e,t].concat(n)),a[e]=t}function c(e,t){var n=a[e];if(n)return n[t]}var u=r.O.struct({value:r.O.String,title:r.O.String}),l=r.O.dict(r.O.String,r.O.struct({title:r.O.maybe(r.O.String),description:r.O.maybe(r.O.String),values:r.O.maybe(r.O.list(u))})),d=r.O.list(r.O.struct({title:r.O.String,component:r.O.maybe(r.O.String),properties:r.O.maybe(r.O.list(r.O.String))})),p=r.O.dict(r.O.String,r.O.union([i.LinkType,r.O.Date,r.O.Function,r.O.Nil,r.O.Number,r.O.String,r.O.list(i.LinkType),r.O.list(i.WidgetType),r.O.list(r.O.String)])),f=r.O.struct({attributes:r.O.maybe(l),propertiesGroups:r.O.maybe(d),title:r.O.maybe(r.O.String),description:r.O.maybe(r.O.String),thumbnail:r.O.maybe(r.O.String),titleForContent:r.O.maybe(r.O.Function),descriptionForContent:r.O.maybe(r.O.Function),hideInSelectionDialogs:r.O.maybe(r.O.Boolean),properties:r.O.maybe(r.O.list(r.O.String)),initialContent:r.O.maybe(p),validations:r.O.maybe(o)}),h=Object(r.p)("provideEditingConfig",[["className",r.O.String],["editingConfig",f]],{docPermalink:"js-sdk/provideEditingConfig"})},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,n){var r=n(33),i=n(46);e.exports=function(e){return r(e)&&i(e.meta)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return _}));var r,i,o=n(10),a=n(24),s=n(0),c=n(7),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t}(s.i);function d(e){i=e}function p(){return!!i}function f(e){var t=i(Object(o.f)(Object(a.a)(),e));return"string"==typeof t&&t.length>0?t:null}function h(e){if(!i)throw new l("Scrivito.unstable_selectSiteId is only available in the multi-site mode");if(m())throw new l("Scrivito.unstable_selectSiteId can be called only once");if("string"!=typeof e||!e)throw new l("Scrivito.unstable_selectSiteId can only be called with a non-empty string");v().set(e)}function m(){if(!i)throw new s.g("Calling getSelectedSiteId is only available in multi-site mode");return v().get()||null}function _(e){if(!m())throw new l("Used "+e+" in the multi-site mode, but the site ID is not yet selected. Forgot to use Scrivito.unstable_selectSiteId?")}function v(){return c.b.subState("selectedSiteId")}},function(e,t,n){n(21),n(70),n(33),n(64);e.exports=function(e,t){function n(e,t){return e}return n.meta={kind:"irreducible",name:e,predicate:t,identity:!0},n.displayName=e,n.is=t,n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(14);function i(){if(!r.b)throw new Error("Not expected to be rendered without UI");return r.b}},function(e,t,n){var r=n(45),i=n(70);e.exports=function(e){return r(e)||i(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(10),i=n(86),o={};function a(){return o}r.c.init(o).setInitialContentFor(i.a)},function(e,t,n){e.exports=n(255).default},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(14),i=n(25);function o(e){r.b?r.b.navigateToExternalUrl(e):a(e)}function a(e){window.location.assign(e)}function s(e,t){window.open(e,t)}function c(e){r.b&&Object(i.f)(e)?r.b.openInNewUiWindow(e):s(e,"_blank")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return h}));var r=n(3),i=n(0),o=n(11),a=n(10),s=n(44),c=n(24),u=Object.freeze({}),l=new i.d;function d(){Object(o.c)("Scrivito.currentPage");var e=m();return e.page?Object(a.f)(Object(c.a)(),e.page):null}function p(){return Object(o.c)("Scrivito.currentPageParams"),m().queryParameters||u}function f(e,t){return l.runWith({page:e,queryParameters:u},t)}function h(){return null===m().page}function m(){return l.current()||function(){var e=Object(s.a)();if(void 0===e)return;if(!Object(s.c)(e))return{page:e.page};return{page:r.BasicObj.get(e.objId),queryParameters:e.queryParameters}}()||{}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return m}));var r=n(3),i=n(7),o=n(5),a=n(42),s=n(31),c=n(51),u=n(25),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n},d={type:"not found",page:null},p={type:"not responsible"};function f(){var e=Object(o.loadableWithDefault)(void 0,(function(){return new o.LoadableData({state:i.b.subState("currentPage"),invalidation:function(){return s.b()},loader:_}).get()}));if(e&&h(e)&&!r.BasicObj.get(e.objId))return d;return e}function h(e){return"page"===e.type}function m(e){return"not found"===e.type}function _(){return Object(o.load)((function(){return function(){var e=s.a();return{route:Object(u.g)(e),location:e}}()})).then(v)}function v(e){var t=e.route,n=e.location;if(null===t.path)return p;var r=t.obj;if(!r)return d;if(!Object(c.a)(r)){var i=t.queryParameters,a=(i._scrivito_workspace_id,i._scrivito_editing,i._scrivito_comparison,l(i,["_scrivito_workspace_id","_scrivito_editing","_scrivito_comparison"]));return{type:"page",objId:r.id(),queryParameters:a,location:n}}var s=Object(o.load)((function(){return function(e){var t=e.get("blob",["binary"]),n=t?t.url():null;if(!n)return d;return{type:"binary",objId:e.id(),url:n,page:!1}}(r)}));return s.then(g),s}function g(e){"binary"===e.type&&Object(a.a)(e.url)}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){var r=n(45),i=n(47);e.exports=function(e){return!r(e)&&"object"==typeof e&&!i(e)}},function(e,t){e.exports=function(e){return Array.isArray?Array.isArray(e):e instanceof Array}},function(e,t,n){n(21),n(127);var r=n(34);n(29);e.exports=function(e){return!r(e)||e.meta.identity}},function(e,t,n){var r=n(34);n(63),n(21),n(126);e.exports=function(e,t,n){return r(e)?e.meta.identity||"object"!=typeof t||null===t?e(t,n):new e(t,n):t}},function(e,t,n){var r=n(34);e.exports=function(e,t){return r(t)?t.is(e):e instanceof t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10),i=n(39);function o(e){var t=e.objClass();if(!t)return!1;var n=Object(i.a)().getClass(t);return!!n&&r.b.forClass(n).isBinary()}},function(e,t,n){"use strict";n.r(t),n.d(t,"ScrivitoError",(function(){return o})),n.d(t,"ArgumentError",(function(){return a})),n.d(t,"InternalError",(function(){return s})),n.d(t,"ResourceNotFoundError",(function(){return c}));var r,i=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(t,n){var r=this.constructor;void 0===n&&(n=!0);var i=e.call(this,t)||this,o=r.prototype;if(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o,i._captureStackTrace=n,n)if(Error.captureStackTrace)Error.captureStackTrace(i,i.constructor);else{var a=void 0;try{throw new Error}catch(e){a=e.stack}Object.defineProperty(i,"stack",{value:a})}return i}return i(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"captureStackTrace",{get:function(){return!!this._captureStackTrace},enumerable:!0,configurable:!0}),t}(Error),a=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(o),s=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(o),c=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(o)},function(e,t,n){var r,i,o;
/*!
* jQuery JavaScript Library v1.11.1 * 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-05-01T17:42Z */i="undefined"!=typeof window?window:this,o=function(n,i){var o=[],a=o.slice,s=o.concat,c=o.push,u=o.indexOf,l={},d=l.toString,p=l.hasOwnProperty,f={},h=function(e,t){return new h.fn.init(e,t)},m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,_=/^-ms-/,v=/-([\da-z])/gi,g=function(e,t){return t.toUpperCase()};function y(e){var t=e.length,n=h.type(e);return"function"!==n&&!h.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}h.fn=h.prototype={jquery:"1.11.1",constructor:h,selector:"",length:0,toArray:function(){return a.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:a.call(this)},pushStack:function(e){var t=h.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return h.each(this,e,t)},map:function(e){return this.pushStack(h.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:c,sort:o.sort,splice:o.splice},h.extend=h.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||h.isFunction(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],a!==(n=i[r])&&(u&&n&&(h.isPlainObject(n)||(t=h.isArray(n)))?(t?(t=!1,o=e&&h.isArray(e)?e:[]):o=e&&h.isPlainObject(e)?e:{},a[r]=h.extend(u,o,n)):void 0!==n&&(a[r]=n));return a},h.extend({expando:"jQuery"+("1.11.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===h.type(e)},isArray:Array.isArray||function(e){return"array"===h.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!h.isArray(e)&&e-parseFloat(e)>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==h.type(e)||e.nodeType||h.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(f.ownLast)for(t in e)return p.call(e,t);for(t in e);return void 0===t||p.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[d.call(e)]||"object":typeof e},globalEval:function(e){e&&h.trim(e)&&(n.execScript||function(e){n.eval.call(n,e)})(e)},camelCase:function(e){return e.replace(_,"ms-").replace(v,g)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,i=e.length,o=y(e);if(n){if(o)for(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(o)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(m,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(y(Object(e))?h.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(u)return u.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!=n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i=0,o=e.length,a=[];if(y(e))for(;i<o;i++)null!=(r=t(e[i],i,n))&&a.push(r);else for(i in e)null!=(r=t(e[i],i,n))&&a.push(r);return s.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(i=e[t],t=e,e=i),h.isFunction(e))return n=a.call(arguments,2),(r=function(){return e.apply(t||this,n.concat(a.call(arguments)))}).guid=e.guid=e.guid||h.guid++,r},now:function(){return+new Date},support:f}),h.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var b=
/*!
* Sizzle CSS Selector Engine v1.10.19 * http://sizzlejs.com/ * * Copyright 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-04-18 */
function(e){var t,n,r,i,o,a,s,c,u,l,d,p,f,h,m,_,v,g,y,b=“sizzle”+-new Date,w=e.document,k=0,O=0,C=re(),M=re(),D=re(),x=function(e,t){return e===t&&(d=!0),0},E={}.hasOwnProperty,S=[],j=S.pop,T=S.push,L=S.push,P=S.slice,A=S.indexOf||function(e){for(var t=0,n=this.length;tI
“*(”Y
“)(?:”I
“*(?=)”I
“*(?:‘((?:\\.|)*)'|"((?:\\.|[^\\"])*)"|(”R
“))|)”I
“*\]”,H=“:(”Y
“)(?:\(((’((?:\\.|)*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|”F
“)*)|.*)\)|)”,W=new RegExp(“^”I
“+|((?:^|)(?:\\.)*)”I
“+$”,“g”),B=new RegExp(“^”I
“*,”I
“*”),z=new RegExp(“^”I
”*('"]*?)“I
”*\]“,”g“),q=new RegExp(H),V=new RegExp(”^“R
”$“),$={ID:new RegExp(”^#(“Y
”)“),CLASS:new RegExp(”^\.(“Y
”)“),TAG:new RegExp(”^(“+Y.replace(”w“,”w*“)+”)“),ATTR:new RegExp(”^“+F),PSEUDO:new RegExp(”^“+H),CHILD:new RegExp(”^:(only|first|last|nth|nth-last)-(child|of-type)(?:\(“I
”*(even|odd|((|)(\d*)n|)“I
”*(?:(|)“I
”*(\d+)|))“I
”*\)|)“,”i“),bool:new RegExp(”^(?:“N
”)$“,”i“),needsContext:new RegExp(”^“I
“*\)|)(?=|$)”,“i”)},G=/^(?:input|select|textarea|button)$/i,K=/^hd$/i,J=/^+{s*[native w/,Q=/^(?:#([w-]+)|(w+)|.([w-]+))$/,Z=//,X=/'|\/g,ee=new RegExp(“\\({1,6}”I
“?|(”I
“)|.)”,“ig”),te=function(e,t,n){var r=“0x”+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{L.apply(S=P.call(w.childNodes),w.childNodes),S.nodeType}catch(e){L={apply:S.length?function(e,t){T.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e=t;);e.length=n-1}}}function ne(e,t,r,i){var o,s,u,l,d,h,v,g,k,O;if((t?t.ownerDocument||t:w)!==f&&p(t),r=r||[],!e||“string”!=typeof e)return r;if(1!==(l=(t=t||f).nodeType)&&9!==l)return[];if(m&&!i){if(o=Q.exec(e))if(u=o){if(9===l){if(!(s=t.getElementById(u))||!s.parentNode)return r;if(s.id===u)return r.push(s),r}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(u))&&y(t,s)&&s.id===u)return r.push(s),r}else{if(o)return L.apply(r,t.getElementsByTagName(e)),r;if((u=o)&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(u)),r}if(n.qsa&&(!_||!_.test(e))){if(g=v=b,k=t,O=9===l&&e,1===l&&“object”!==t.nodeName.toLowerCase()){for(h=a(e),(v=t.getAttribute(“id”))?g=v.replace(X,“\$&”):t.setAttribute(“id”,g),g=“[id=‘”g
“’] ”,d=h.length;d–;)h=g+fe(h);k=Z.test(e)&&de(t.parentNode)||t,O=h.join(“,”)}if(O)try{return L.apply(r,k.querySelectorAll(O)),r}catch(e){}finally{v||t.removeAttribute(“id”)}}}return c(e.replace(W,“$1”),t,r,i)}function re(){var e=[];return function t(n,i){return e.push(n+“ ”)>r.cacheLength&&delete t,t[n+“ ”]=i}}function ie(e){return e=!0,e}function oe(e){var t=f.createElement(“div”);try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ae(e,t){for(var n=e.split(“|”),i=e.length;i–;)r.attrHandle[n]=t}function se(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if®return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return“input”===t.nodeName.toLowerCase()&&t.type===e}}function ue(e){return function(t){var n=t.nodeName.toLowerCase();return(“input”===n||“button”===n)&&t.type===e}}function le(e){return ie((function(t){return t=+t,ie((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a–;)n[i=o]&&(n=!(r=n))}))}))}function de(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ne.support={},o=ne.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&“HTML”!==t.nodeName},p=ne.setDocument=function(e){var t,i=e?e.ownerDocument||e:w,a=i.defaultView;return i!==f&&9===i.nodeType&&i.documentElement?(f=i,h=i.documentElement,m=!o(i),a&&a!==a.top&&(a.addEventListener?a.addEventListener(“unload”,(function(){p()}),!1):a.attachEvent&&a.attachEvent(“onunload”,(function(){p()}))),n.attributes=oe((function(e){return e.className=“i”,!e.getAttribute(“className”)})),n.getElementsByTagName=oe((function(e){return e.appendChild(i.createComment(“”)),!e.getElementsByTagName(“*”).length})),n.getElementsByClassName=J.test(i.getElementsByClassName)&&oe((function(e){return e.innerHTML=“<div class='a'></div><div class='a i'></div>”,e.firstChild.className=“i”,2===e.getElementsByClassName(“i”).length})),n.getById=oe((function(e){return h.appendChild(e).id=b,!i.getElementsByName||!i.getElementsByName(b).length})),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n&&n.parentNode?:[]}},r.filter.ID=function(e){var t=e.replace(ee,te);return function(e){return e.getAttribute(“id”)===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(ee,te);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode(“id”);return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){if(void 0!==t.getElementsByTagName)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if(“*”===e){for(;n=o;)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],_=,(n.qsa=J.test(i.querySelectorAll))&&(oe((function(e){e.innerHTML=“<select msallowclip=''><option selected=”>”,e.querySelectorAll(“”).length&&_.push(“=”I
“*(?:”|"")”),e.querySelectorAll(“”).length||_.push(“\[”I
“*(?:value|”N
“)”),e.querySelectorAll(“:checked”).length||_.push(“:checked”)})),oe((function(e){var t=i.createElement(“input”);t.setAttribute(“type”,“hidden”),e.appendChild(t).setAttribute(“name”,“D”),e.querySelectorAll(“”).length&&_.push(“name”I
“[^$|!~]?=”),e.querySelectorAll(“:enabled”).length||_.push(“:enabled”,“:disabled”),e.querySelectorAll(“*,:x”),_.push(“,.*:”)}))),(n.matchesSelector=J.test(g=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&oe((function(e){n.disconnectedMatch=g.call(e,“div”),g.call(e,“:x”),v.push(“!=”,H)})),_=_.length&&new RegExp(_.join(“|”)),v=v.length&&new RegExp(v.join(“|”)),t=J.test(h.compareDocumentPosition),y=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains®:e.compareDocumentPosition&&16&e.compareDocumentPosition®))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},x=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===i||e.ownerDocument===w&&y(w,e)?-1:t===i||t.ownerDocument===w&&y(w,t)?1:l?A.call(l,e)-A.call(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,o=e.parentNode,a=t.parentNode,s=,c=;if(!o||!a)return e===i?-1:t===i?1:o?-1:a?1:l?A.call(l,e)-A.call(l,t):0;if(o===a)return se(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;s===c;)r++;return r?se(s,c):s===w?-1:c===w?1:0},i):f},ne.matches=function(e,t){return ne(e,null,null,t)},ne.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(U,“='$1']”),n.matchesSelector&&m&&(!v||!v.test(t))&&(!_||!_.test(t)))try{var r=g.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ne(t,f,null,).length>0},ne.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),y(e,t)},ne.attr=function(e,t){(e.ownerDocument||e)!==f&&p(e);var i=r.attrHandle,o=i&&E.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ne.error=function(e){throw new Error(“Syntax error, unrecognized expression: ”+e)},ne.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(x),d){for(;t=e;)t===e&&(i=r.push(o));for(;i–;)e.splice(r,1)}return l=null,e},i=ne.getText=function(e){var t,n=“”,r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if(“string”==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e;)n+=i(t);return n},(r=ne.selectors={cacheLength:50,createPseudo:ie,match:$,attrHandle:{},find:{},relative:{“>”:{dir:“parentNode”,first:!0},“ ”:{dir:“parentNode”},“+”:{dir:“previousSibling”,first:!0},“~”:{dir:“previousSibling”}},preFilter:{ATTR:function(e){return e=e.replace(ee,te),e=(e||e||e||“”).replace(ee,te),“~=”===e&&(e=“ ”e[3]
“ ”),e.slice(0,4)},CHILD:function(e){return e=e.toLowerCase(),“nth”===e.slice(0,3)?(e||ne.error(e),e=+(e?e+(e||1):2*(“even”===e||“odd”===e)),e=+(e+e||“odd”===e)):e&&ne.error(e),e},PSEUDO:function(e){var t,n=!e&&e;return $.CHILD.test(e)?null:(e?e=e||e||“”:n&&q.test(n)&&(t=a(n,!0))&&(t=n.indexOf(“)”,n.length-t)-n.length)&&(e=e.slice(0,t),e=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ee,te).toLowerCase();return“*”===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+“ ”];return t||(t=new RegExp(“(^|”I
“)”e
“(”I
“|$)”))&&C(e,(function(e){return t.test(“string”==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute(“class”)||“”)}))},ATTR:function(e,t,n){return function®{var i=ne.attr(r,e);return null==i?“!=”===t:!t||(i+=“”,“=”===t?i===n:“!=”===t?i!==n:“^=”===t?n&&0===i.indexOf(n):“*=”===t?n&&i.indexOf(n)>-1:“$=”===t?n&&i.slice(-n.length)===n:“~=”===t?(“ ”i
“ ”).indexOf(n)>-1:“|=”===t&&(i===n||i.slice(0,n.length+1)===n+“-”))}},CHILD:function(e,t,n,r,i){var o=“nth”!==e.slice(0,3),a=“last”!==e.slice(-4),s=“of-type”===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var u,l,d,p,f,h,m=o!==a?“nextSibling”:“previousSibling”,_=t.parentNode,v=s&&t.nodeName.toLowerCase(),g=!c&&!s;if(_){if(o){for(;m;){for(d=t;d=d;)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=m=“only”===e&&!h&&“nextSibling”}return!0}if(h=[a?.firstChild:.lastChild],a&&g){for(f=(u=(l=_||(_={}))[e]||[])===k&&u,p=u===k&&u,d=f&&_.childNodes;d=++f&&d&&d||(p=f=0)||h.pop();)if(1===d.nodeType&&++p&&d===t){l=[k,f,p];break}}else if(g&&(u=(t||(t={}))[e])&&u===k)p=u;else for(;(d=++f&&d&&d||(p=f=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++p||(g&&((d||(d={}))[e]=),d!==t)););return(p-=i)===r||p%r==0&&p/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos||r.setFilters||ne.error(“unsupported pseudo: ”+e);return i?i(t):i.length>1?(n=,r.setFilters.hasOwnProperty(e.toLowerCase())?ie((function(e,n){for(var r,o=i(e,t),a=o.length;a–;)e[r=A.call(e,o)]=!(n=o)})):function(e){return i(e,0,n)}):i}},pseudos:{not:ie((function(e){var t=[],n=,r=s(e.replace(W,“$1”));return r?ie((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s–;)(o=a)&&(e=!(t=o))})):function(e,i,o){return t=e,r(t,null,o,n),!n.pop()}})),has:ie((function(e){return function(t){return ne(e,t).length>0}})),contains:ie((function(e){return function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}})),lang:ie((function(e){return V.test(e||“”)||ne.error(“unsupported lang: ”+e),e=e.replace(ee,te).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute(“xml:lang”)||t.getAttribute(“lang”))return(n=n.toLowerCase())===e||0===n.indexOf(e+“-”)}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return“input”===t&&!!e.checked||“option”===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return“input”===t&&“button”===e.type||“button”===t},text:function(e){var t;return“input”===e.nodeName.toLowerCase()&&“text”===e.type&&(null==(t=e.getAttribute(“type”))||“text”===t.toLowerCase())},first:le((function(){return})),last:le((function(e,t){return})),eq:le((function(e,t,n){return})),even:le((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:le((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:le((function(e,t,n){for(var r=n<0?n+t:n;–r>=0;)e.push®;return e})),gt:le((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push®;return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos=ce(t);for(t in{submit:!0,reset:!0})r.pseudos=ue(t);function pe(){}function fe(e){for(var t=0,n=e.length,r=“”;te
“)”),1===t.length&&1===r.nodeType?h.find.matchesSelector(r,e)?:[]:h.find.matches(e,h.grep(t,(function(e){return 1===e.nodeType})))},h.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if(“string”!=typeof e)return this.pushStack(h(e).filter((function(){for(t=0;t,this))return!0})));for(t=0;t,n);return(n=this.pushStack(i>1?h.unique(n):n)).selector=this.selector?this.selector+“ ”+e:e,n},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,“string”==typeof e&&w.test(e)?h(e):e||[],!1).length}});var M,D=n.document,x=/^(?:s*(<+>)[^>]*|#([w-]*))$/;(h.fn.init=function(e,t){var n,r;if(!e)return this;if(“string”==typeof e){if(!(n=“<"===e.charAt(0)&&">”===e.charAt(e.length-1)&&e.length>=3?:x.exec(e))||!n&&t)return!t||t.jquery?(t||M).find(e):this.constructor(t).find(e);if(n){if(t=t instanceof h?t:t,h.merge(this,h.parseHTML(n,t&&t.nodeType?t.ownerDocument||t:D,!0)),k.test(n)&&h.isPlainObject(t))for(n in t)h.isFunction(this)?this(t):this.attr(n,t);return this}if((r=D.getElementById(n))&&r.parentNode){if(r.id!==n)return M.find(e);this.length=1,this=r}return this.context=D,this.selector=e,this}return e.nodeType?(this.context=this=e,this.length=1,this):h.isFunction(e)?void 0!==M.ready?M.ready(e):e(h):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),h.makeArray(e,this))}).prototype=h.fn,M=h(D);var E=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function j(e,t){do{e=e}while(e&&1!==e.nodeType);return e}h.extend({dir:function(e,t,n){for(var r=[],i=e;i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!h(i).is(n));)1===i.nodeType&&r.push(i),i=i;return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),h.fn.extend({has:function(e){var t,n=h(e,this),r=n.length;return this.filter((function(){for(t=0;t&&h.isFunction(o.promise)?o.promise().done(l(i,r,o)).fail(u.reject).progress(l(i,n,t)):–c;return c||u.resolveWith(r,o),u.promise()}}),h.fn.ready=function(e){return h.ready.promise().done(e),this},h.extend({isReady:!1,readyWait:1,holdReady:function(e){e?h.readyWait++:h.ready(!0)},ready:function(e){if(!(!0===e?–h.readyWait:h.isReady)){if(!D.body)return setTimeout(h.ready);h.isReady=!0,!0!==e&&–h.readyWait>0||(T.resolveWith(D,),h.fn.triggerHandler&&(h(D).triggerHandler(“ready”),h(D).off(“ready”)))}}}),h.ready.promise=function(e){if(!T)if(T=h.Deferred(),“complete”===D.readyState)setTimeout(h.ready);else if(D.addEventListener)D.addEventListener(“DOMContentLoaded”,I,!1),n.addEventListener(“load”,I,!1);else{D.attachEvent(“onreadystatechange”,I),n.attachEvent(“onload”,I);var t=!1;try{t=null==n.frameElement&&D.documentElement}catch(e){}t&&t.doScroll&&function e(){if(!h.isReady){try{t.doScroll(“left”)}catch(t){return setTimeout(e,50)}N(),h.ready()}}()}return T.promise(e)},h(f))break;f.ownLast=“0”!==L,f.inlineBlockNeedsLayout=!1,h((function(){var e,t,n,r;(n=D.getElementsByTagName(“body”))&&n.style&&(t=D.createElement(“div”),(r=D.createElement(“div”)).style.cssText=“position:absolute;border:0;width:0;height:0;top:0;left:-9999px”,n.appendChild®.appendChild(t),void 0!==t.style.zoom&&(t.style.cssText=“display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1”,f.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild®)})),function(){var e=D.createElement(“div”);if(null==f.deleteExpando){f.deleteExpando=!0;try{delete e.test}catch(e){f.deleteExpando=!1}}e=null}(),h.acceptData=function(e){var t=h.noData[(e.nodeName+“ ”).toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute(“classid”)===t)};var Y=/^(?:{[wW]*}|[[wW]*])$/,R=/()/g;function F(e,t,n){if(void 0===n&&1===e.nodeType){var r=“data-”+t.replace(R,“-$1”).toLowerCase();if(“string”==typeof(n=e.getAttribute®)){try{n=“true”===n||“false”!==n&&(“null”===n?null:n
“”===n?+n:Y.test(n)?h.parseJSON(n):n)}catch(e){}h.data(e,t,n)}else n=void 0}return n}function H(e){var t;for(t in e)if((“data”!==t||!h.isEmptyObject(e))&&“toJSON”!==t)return!1;return!0}function W(e,t,n,r){if(h.acceptData(e)){var i,a,s=h.expando,c=e.nodeType,u=c?h.cache:e,l=c?e:e&&s;if(l&&u&&(r||u.data)||void 0!==n||“string”!=typeof t)return l||(l=c?e=o.pop()||h.guid++:s),u||(u=c?{}:{toJSON:h.noop}),“object”!=typeof t&&“function”!=typeof t||(r?u=h.extend(u,t):u.data=h.extend(u.data,t)),a=u,r||(a.data||(a.data={}),a=a.data),void 0!==n&&(a=n),“string”==typeof t?null==(i=a)&&(i=a):i=a,i}}function B(e,t,n){if(h.acceptData(e)){var r,i,o=e.nodeType,a=o?h.cache:e,s=o?e:h.expando;if(a){if(t&&(r=n?a:a.data)){i=(t=h.isArray(t)?t.concat(h.map(t,h.camelCase)):t in r||(t=h.camelCase(t))in r?:t.split(“ ”)).length;for(;i–;)delete r[t];if(n?!H®:!h.isEmptyObject®)return}(n||(delete a.data,H(a)))&&(o?h.cleanData(,!0):f.deleteExpando||a!=a.window?delete a:a=null)}}}h.extend({cache:{},noData:{“applet ”:!0,“embed ”:!0,“object ”:“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”},hasData:function(e){return!!(e=e.nodeType?h.cache[e]:e)&&!H(e)},data:function(e,t,n){return W(e,t,n)},removeData:function(e,t){return B(e,t)},_data:function(e,t,n){return W(e,t,n,!0)},_removeData:function(e,t){return B(e,t,!0)}}),h.fn.extend({data:function(e,t){var n,r,i,o=this,a=o&&o.attributes;if(void 0===e){if(this.length&&(i=h.data(o),1===o.nodeType&&!h._data(o,“parsedAttrs”))){for(n=a.length;n–;)a&&0===(r=a.name).indexOf(“data-”)&&F(o,r=h.camelCase(r.slice(5)),i);h._data(o,“parsedAttrs”,!0)}return i}return“object”==typeof e?this.each((function(){h.data(this,e)})):arguments.length>1?this.each((function(){h.data(this,e,t)})):o?F(o,e,h.data(o,e)):void 0},removeData:function(e){return this.each((function(){h.removeData(this,e)}))}}),h.extend({queue:function(e,t,n){var r;if(e)return t=(t||“fx”)+“queue”,r=h._data(e,t),n&&(!r||h.isArray(n)?r=h._data(e,t,h.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||“fx”;var n=h.queue(e,t),r=n.length,i=n.shift(),o=h._queueHooks(e,t);“inprogress”===i&&(i=n.shift(),r–),i&&(“fx”===t&&n.unshift(“inprogress”),delete o.stop,i.call(e,(function(){h.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+“queueHooks”;return h._data(e,n)||h._data(e,n,{empty:h.Callbacks(“once memory”).add((function(){h._removeData(e,t+“queue”),h._removeData(e,n)}))})}}),h.fn.extend({queue:function(e,t){var n=2;return“string”!=typeof e&&(t=e,e=“fx”,n–),arguments.lengthre
i”),ae=/^s+/,se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)((+)[^>]*)/>/gi,ce=/<(+)/,ue=/|=s*.checked.)/i,fe=/^$|/(?:java|ecma)script/i,he=/^true/(.*)/,me=/^s*]|–)>s*$/g,_e={option:[1,”<select “,”“”>multiple=‘multiple’>“,”“],legend:,”,“”“>area:,”,“”“>param:,”,“”“>thead:,”,“”“>tr:,”,“ ”“>td:,_default:f.htmlSerialize?:[1,”X<div>“,”</div>“]},ve=ne(D).appendChild(D.createElement(”div“));function ge(e,t){var n,r,i=0,o=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||”*“):void 0!==e.querySelectorAll?e.querySelectorAll(t||”*“):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n);i++)!t||h.nodeName(r,t)?o.push®:h.merge(o,ge(r,t));return void 0===t||t&&h.nodeName(e,t)?h.merge(,o):o}function ye(e){$.test(e.type)&&(e.defaultChecked=e.checked)}function be(e,t){return h.nodeName(e,”table“)&&h.nodeName(11!==t.nodeType?t:t.firstChild,”tr“)?e.getElementsByTagName(”tbody“)||e.appendChild(e.ownerDocument.createElement(”tbody“)):e}function we(e){return e.type=(null!==h.find.attr(e,”type“))+”/“+e.type,e}function ke(e){var t=he.exec(e.type);return t?e.type=t:e.removeAttribute(”type“),e}function Oe(e,t){for(var n,r=0;null!=(n=e);r++)h._data(n,”globalEval“,!t||h._data(t,”globalEval“))}function Ce(e,t){if(1===t.nodeType&&h.hasData(e)){var n,r,i,o=h._data(e),a=h._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s.length;r[r]);a.data&&(a.data=h.extend({},a.data))}}function Me(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!f.noCloneEvent&&t){for(r in(i=h._data(t)).events)h.removeEvent(t,r,i.handle);t.removeAttribute(h.expando)}”script“===n&&t.text!==e.text?(we(t).text=e.text,ke(t)):”object“===n?(t.parentNode&&(t.outerHTML=e.outerHTML),f.html5Clone&&e.innerHTML&&!h.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):”input“===n&&$.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)}}_e.optgroup=_e.option,_e.tbody=_e.tfoot=_e.colgroup=_e.caption=_e.thead,_e.th=_e.td,h.extend({clone:function(e,t,n){var r,i,o,a,s,c=h.contains(e.ownerDocument,e);if(f.html5Clone||h.isXMLDoc(e)||!oe.test(”<"e.nodeName
“>”)?o=e.cloneNode(!0):(ve.innerHTML=e.outerHTML,ve.removeChild(o=ve.firstChild)),!(f.noCloneEvent&&f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||h.isXMLDoc(e)))for(r=ge(o),s=ge(e),a=0;null!=(i=s);++a)r&&Me(i,r);if(t)if(n)for(s=s||ge(e),r=r||ge(o),a=0;null!=(i=s);a++)Ce(i,r);else Ce(e,o);return(r=ge(o,“script”)).length>0&&Oe(r,!c&&ge(e,“script”)),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,c,u,l,d=e.length,p=ne(t),m=[],_=0;_