/*! 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;or“ for more information.”;throw new s.ArgumentError(“Invalid arguments for ’”e“‘: ”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;ne’“‘);return G(e)}function G(e){if(!e)return null;var t=e.match(z);if(!t)return null;var n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],c=parseInt(n,10),u=parseInt(r,10),l=parseInt(i,10),d=parseInt(o,10),p=parseInt(a,10),f=parseInt(s,10);return new Date(Date.UTC(c,u-1,l,d,p,f))}function K(e){return”“+(”“+e.getUTCFullYear()+Q(e.getUTCMonth()+1))+(”“+Q(e.getUTCDate())+Q(e.getUTCHours()))+(”“+Q(e.getUTCMinutes())+Q(e.getUTCSeconds()))}function J(e){return”string“==typeof e&&!!e.match(/^d{14}$/)}function Q(e){return e<10?"0"+e:e}function Z(e){var t=parseInt(e.toString(),10);return 0===t?0:q(t)?t:null}function X(e){return ee(1e3*e)}function ee(e){return new ie((function(t){setTimeout(t,e)}))}function te(e,t){return ne(e)&&ne(t)?e.equals(t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&Object(r.every)(Object(r.zip)(e,t),(function(e){return te(e[0],e[1])})):e&&t?e.valueOf()===t.valueOf():e===t}function ne(e){return!!e&&"function"==typeof e.equals}function re(e,t){return e.then((function(e){return t(),e}),(function(e){throw t(),e}))}var ie,oe=n(149);ie="undefined"!=typeof Promise?Promise:oe.a;var ae=function(){function e(e,t){var n=(void 0===t?{}:t).batchSize;this.mget=e,this.batchSize=n||100,this.itemsToBatch=[]}return e.prototype.retrieve=function(e){var t=this;0===this.itemsToBatch.length&&d((function(){return t.performRetrieval()}));var n=new _;return this.itemsToBatch.push({key:e,deferred:n}),n.promise},e.prototype.reset=function(){this.itemsToBatch=[]},e.prototype.performRetrieval=function(){var e=this,t=this.itemsToBatch.splice(0,this.batchSize);if(0!==t.length){var n=t.map((function(e){return e.key}));this.mget(n).then((function(n){t.forEach((function(t,r){var i=t.key,o=t.deferred;if(r=0&&t<=D};v.each=v.forEach=function(e,t,n){var r,i;if(t=y(t,n),E(e))for(r=0,i=e.length;r0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s=3;return t(e,y(n,i,4),r,o)}};v.reduce=v.foldl=v.inject=S(1),v.reduceRight=v.foldr=S(-1),v.find=v.detect=function(e,t,n){var r=(E(e)?v.findIndex:v.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},v.filter=v.select=function(e,t,n){var r=[];return t=b(t,n),v.each(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r},v.reject=function(e,t,n){return v.filter(e,v.negate(b(t)),n)},v.every=v.all=function(e,t,n){t=b(t,n);for(var r=!E(e)&&v.keys(e),i=(r||e).length,o=0;o=0},v.invoke=w((function(e,t,n){var r,i;return v.isFunction(t)?i=t:v.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),v.map(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=M(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))})),v.pluck=function(e,t){return v.map(e,v.property(t))},v.where=function(e,t){return v.filter(e,v.matcher(t))},v.findWhere=function(e,t){return v.find(e,v.matcher(t))},v.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||”number“==typeof t&&”object“!=typeof e[0]&&null!=e)for(var s=0,c=(e=E(e)?e:v.values(e)).length;so&&(o=r);else t=b(t,n),v.each(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o},v.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||”number“==typeof t&&”object“!=typeof e[0]&&null!=e)for(var s=0,c=(e=E(e)?e:v.values(e)).length;sr||void 0===n)return 1;if(n0?0:i-1;o>=0&&o0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(l.call(r,a,s),v.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&ot?(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;i1&&(r=y(r,t[1])),t=v.allKeys(e)):(r=B,t=L(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i1&&(n=t[1])):(t=v.map(L(t,!1,!1),String),r=function(e,n){return!v.contains(t,n)}),v.pick(e,r,n)})),v.defaults=F(v.allKeys,!0),v.create=function(e,t){var n=k(e);return t&&v.extendOwn(n,t),n},v.clone=function(e){return v.isObject(e)?v.isArray(e)?e.slice():v.extend({},e):e},v.tap=function(e,t){return t(e),e},v.isMatch=function(e,t){var n=v.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;oe”]“}})),v.isArguments(arguments)||(v.isArguments=function(e){return C(e,”callee“)});var z=i.document&&i.document.childNodes;”object“!=typeof Int8Array&&”function“!=typeof z&&(v.isFunction=function(e){return”function“==typeof e||!1}),v.isFinite=function(e){return!v.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},v.isNaN=function(e){return v.isNumber(e)&&isNaN(e)},v.isBoolean=function(e){return!0===e||!1===e||”[object Boolean]“===d.call(e)},v.isNull=function(e){return null===e},v.isUndefined=function(e){return void 0===e},v.has=function(e,t){if(!v.isArray(t))return C(e,t);for(var n=t.length,r=0;r”:“>”,’“‘:”“”,“’”:“'”,“`”:“`”},q=v.invert(U),V=function(e){var t=function(t){return e[t]},n=“(?:”+v.keys(e).join(“|”)+“)”,r=RegExp(n),i=RegExp(n,“g”);return function(e){return e=null==e?“”:“”+e,r.test(e)?e.replace(i,t):e}};v.escape=V(U),v.unescape=V(q),v.result=function(e,t,n){v.isArray(t)||(t=[t]);var r=t.length;if(!r)return v.isFunction(n)?n.call(e):n;for(var i=0;i/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var G=/(.)^/,K={“‘”:“’”,“\”:“\”,“r”:“r”,“n”:“n”,“u2028”:“u2028”,“u2029”:“u2029”},J=/\|‘|r|n|u2028|u2029/g,Q=function(e){return“\”+K[e]};v.template=function(e,t,n){!t&&n&&(t=n),t=v.defaults({},t,v.templateSettings);var r,i=RegExp([(t.escape||G).source,(t.interpolate||G).source,(t.evaluate||G).source].join(“|”)+“|$”,“g”),o=0,a=“__p+=’”;e.replace(i,(function(t,n,r,i,s){return a+=e.slice(o,s).replace(J,Q),o=s+t.length,n?a+=“‘+n((__t=(”n“))==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?“t“ objId=”+e.id()+“ widgetId=”+this.container.id()+“>”},e.prototype.id=function(){var e=this.obj();return this.container===e?this.attributeName+“|”+e.id():this.attributeName+“|”+e.id()+“|”+this.container.id()},e}(),c=n(0),u=n(12);function l(e){return u.parseQuery(e)}function d(e){return new u(e).query(!0)}var p=n(2),f=n.n(p),h=n(107);var m=function(){function e(e){var t=e.name,n=e.count,r=e.includedObjIds;this._name=t,this._count=n,this._includedObjIds=r}return e.prototype.name=function(){return this._name},e.prototype.count=function(){return this._count},e.prototype.includedObjs=function(){return Object(p.compact)(this._includedObjIds.map((function(e){return ke.get(e)})))},e}(),_=[“contains”,“containsPrefix”,“equals”,“startsWith”,“isGreaterThan”,“isLessThan”,“linksTo”,“refersTo”],v=[“equals”,“startsWith”,“isGreaterThan”,“isLessThan”],g=[“contains”,“containsPrefix”],y={query:[]},b=function(){function e(e){void 0===e&&(e=y);this._query=[].concat(e.query),this._batchSize=e.batchSize,this._offset=e.offset,this._sortBy=e.sortBy,this._sortDirection=e.sortDirection,this._includeDeleted=e.includeDeleted}return e.prototype.and=function(t,n,r,i){if(t instanceof e)this._query=this._query.concat(t._query);else{if(void 0===n)throw new c.a(“Missing operator to search with”);if(void 0===r)throw new c.a(’Missing value to search (specify “null” for missing)‘);var o=w(t,n,r);i&&(!function(e){if(!Object(p.contains)(g,e))throw new c.a(’Boosting operator “‘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 invalid.‘);return Object(c.R)(e)}(t),value:function(e){if(Object(p.isArray)(e))return Object(p.map)(e,k);return k(e)}(n)}}function k(e){return Object(p.isDate)(e)?Object(c.w)(e):e instanceof ke?e.id():e}function O(e){if(!Object(c.y)(e))throw new c.a(’Attribute name ”‘e’“ 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;ne’” is not in camel case.‘)}(e);var t=this.getData();if(t){var n=Object(c.R)(e);return t.hasOwnProperty(n)?t[n]:null}return null},e.prototype.keys=function(){var e=this.getData();return e?Object(p.map)(Object(p.keys)(e),c.o):[]},e.prototype.contentLength=function(){var e=this.get(“contentLength”);return“number”!=typeof e?0:e},e.prototype.contentType=function(){var e=this.get(“contentType”);return“string”!=typeof e?“”:e},e.prototype.getData=function(){if(this.loadableData){var e=this.loadableData.get();if(e)return U(e)}},e}();function U(e){for(var t=e.meta_data,n={},r=0,i=Object.keys(t);ro’“‘);var l=void 0;if(s===R.Date){if(”string“!=typeof u)throw new c.g(’Invalid non-string backend value for a date metadata ”‘o’“‘);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;rthis.accessType” in binary data“);return t.get.url}},e.prototype.filename=function(){var e=this.url();return!e||e.match(/^data:/)?”“:u(e).path().split(”/“).pop()||”“},e.prototype.metadata=function(){return this.assertNotTransformed(”Metadata“),new z(this._id)},e.prototype.contentType=function(){return this.assertNotTransformed(”Content type“),this.metadata().contentType()},e.prototype.contentLength=function(){return this.assertNotTransformed(”Content length“),this.metadata().contentLength()},e.prototype.extname=function(){if(this.raw().filename().indexOf(”.“)>-1){var e=/[^.\]*$/.exec(this.raw().filename());if(e)return e[0].toLowerCase()}return”“},e.prototype.equals=function(t){return t instanceof e&&t.id()===this.id()&&t.isPrivate()===this.isPrivate()&&Object(p.isEqual)(t.definition(),this.definition())},e.prototype.isImage=function(){var e=this.raw().contentType();return!!e&&”image“===e.split(”/“)[0]},e.prototype.definition=function(){return this._transformation||null},e.prototype.accessType=function(){return this.isPrivate()?”private_access“:”public_access“},e.prototype.assertNotTransformed=function(e){if(this.isTransformed())throw new c.i(’”‘e’“ 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;ne” not found“);return t})(t).get(n).set®}function z(e){return e.map(U)}function U(e){var t=function(e){return e.affiliation}(e);if(!t)throw new i.g(”Tried to record a LoadableData without affiliation“);return[t.collectionName,t.key,e.get()]}function q(e,t){var n=new d,r=Object(p.k)((function(){return s((function(){return Object(i.M)(e)}))}),(function(e){e.subscribeLoading(n);var r=e.result;if(r.errorThrown){if(!e.isAllDataUpToDate())return;throw r.error}t({result:r.result,allDataLoaded:e.isAllDataLoaded(),allDataUpToDate:e.isAllDataUpToDate()})}));return{forceRefresh:function(){return r.forceRefresh()},unsubscribe:function(){r.unsubscribe(),n.unsubscribe()}}}},function(e,t,n){(function(e){e.exports=function(){”use strict“;var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||”[object Array]“===Object.prototype.toString.call(e)}function a(e){return null!=e&&”[object Object]“===Object.prototype.toString.call(e)}function s(e){return void 0===e}function c(e){return”number“==typeof e||”[object Number]“===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||”[object Date]“===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;na”] “,arguments[0])r+=s+”: “arguments[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;t=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var $=/d/,G=/dd/,K=/d{3}/,J=/d{4}/,Q=/[+-]?d{6}/,Z=/dd?/,X=/dddd?/,ee=/dddddd?/,te=/d{1,3}/,ne=/d{1,4}/,re=/[+-]?d{1,6}/,ie=/d+/,oe=/[+-]?d+/,ae=/Z|[+-]dd:?dd/gi,se=/Z|[+-]dd(?::?dd)?/gi,ce=/[0-9]{0,256}[‘a-zu00A0-u05FFu0700-uD7FFuF900-uFDCFuFDF0-uFF07uFF10-uFFEF]{1,256}|[u0600-u06FF/]{1,256}(s*?[u0600-u06FF]{1,256}){1,2}/i,ue={};function le(e,t,n){ue=j(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ue,e)?ue(t._strict,t._locale):new RegExp(pe(e.replace(”\“,”“).replace(/\()|[([^][]*)]|\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function pe(e){return e.replace(/[-/\^$*+?.()|{}]/g,”\$&“)}var fe={};function he(e,t){var n,r=t;for(”string“==typeof e&&(e=),c(t)&&(r=function(e,n){n=O(e)}),n=0;n]=r}function me(e,t){he(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function _e(e,t,n){null!=t&&d(fe,e)&&fe(t,n._a,n,e)}function ve(e){return ge(e)?366:365}function ge(e){return e%4==0&&e%100!=0||e%400==0}U(”Y“,0,0,(function(){var e=this.year();return e<=9999?”“e:"”+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;t===e)return t;return-1},U(“M”,,“Mo”,(function(){return this.month()+1})),U(“MMM”,0,0,(function(e){return this.localeData().monthsShort(this,e)})),U(“MMMM”,0,0,(function(e){return this.localeData().months(this,e)})),A(“month”,“M”),R(“month”,8),le(“M”,Z),le(“MM”,Z,G),le(“MMM”,(function(e,t){return t.monthsShortRegex(e)})),le(“MMMM”,(function(e,t){return t.monthsRegex(e)})),he(,(function(e,t){t=O(e)-1})),he(,(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t=i:h(n).invalidMonth=e}));var Me=/D?([[^[]]*]|s)+MMMM?/,De=“January_February_March_April_May_June_July_August_September_October_November_December”.split(“_”),xe=“Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec”.split(“_”);function Ee(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=,this._shortMonthsParse=[],r=0;r<12;++r)o=f(),this._shortMonthsParse=this.monthsShort(o,“”).toLocaleLowerCase(),this._longMonthsParse=this.months(o,“”).toLocaleLowerCase();return n?“MMM”===t?-1!==(i=ye.call(this._shortMonthsParse,a))?i:null:-1!==(i=ye.call(this._longMonthsParse,a))?i:null:“MMM”===t?-1!==(i=ye.call(this._shortMonthsParse,a))||-1!==(i=ye.call(this._longMonthsParse,a))?i:null:-1!==(i=ye.call(this._longMonthsParse,a))||-1!==(i=ye.call(this._shortMonthsParse,a))?i:null}function Se(e,t){var n;if(!e.isValid())return e;if(“string”==typeof t)if(/^d+$/.test(t))t=O(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ce(e.year(),t)),e._d(t,n),e}function je(e){return null!=e?(Se(this,e),i.updateOffset(this,!0),this):ke(this,“Month”)}var Te=ce,Le=ce;function Pe(){function e(e,t){return t.length-e.length}var t,n,r=[],i=,o=[];for(t=0;t<12;t++)n=f(),r.push(this.monthsShort(n,“”)),i.push(this.months(n,“”)),o.push(this.months(n,“”)),o.push(this.monthsShort(n,“”));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r=pe(r),i=pe(i);for(t=0;t<24;t++)o=pe(o);this._monthsRegex=new RegExp(“^(”+o.join(“|”)+“)”,“i”),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(“^(”+i.join(“|”)+“)”,“i”),this._monthsShortStrictRegex=new RegExp(“^(”+r.join(“|”)+“)”,“i”)}function Ae(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function Ne(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ie(e,t,n){var r=7+t-n;return-(7+Ne(e,0,r).getUTCDay()-t)%7+r-1}function Ye(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Ie(e,r,i);return s<=0?a=ve(o=e-1)+s:s>ve(e)?(o=e+1,a=s-ve(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Re(e,t,n){var r,i,o=Ie(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Fe(i=e.year()-1,t,n):a>Fe(e.year(),t,n)?(r=a-Fe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Fe(e,t,n){var r=Ie(e,t,n),i=Ie(e+1,t,n);return(ve(e)-r+i)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}U(“w”,,“wo”,“week”),U(“W”,,“Wo”,“isoWeek”),A(“week”,“w”),A(“isoWeek”,“W”),R(“week”,5),R(“isoWeek”,5),le(“w”,Z),le(“ww”,Z,G),le(“W”,Z),le(“WW”,Z,G),me(,(function(e,t,n,r){t=O(e)})),U(“d”,0,“do”,“day”),U(“dd”,0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U(“ddd”,0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U(“dddd”,0,0,(function(e){return this.localeData().weekdays(this,e)})),U(“e”,0,0,“weekday”),U(“E”,0,0,“isoWeekday”),A(“day”,“d”),A(“weekday”,“e”),A(“isoWeekday”,“E”),R(“day”,11),R(“weekday”,11),R(“isoWeekday”,11),le(“d”,Z),le(“e”,Z),le(“E”,Z),le(“dd”,(function(e,t){return t.weekdaysMinRegex(e)})),le(“ddd”,(function(e,t){return t.weekdaysShortRegex(e)})),le(“dddd”,(function(e,t){return t.weekdaysRegex(e)})),me(,(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e})),me(,(function(e,t,n,r){t=O(e)}));var We=“Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday”.split(“_”),Be=“Sun_Mon_Tue_Wed_Thu_Fri_Sat”.split(“_”),ze=“Su_Mo_Tu_We_Th_Fr_Sa”.split(“_”);function Ue(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=,this._minWeekdaysParse=[],r=0;r<7;++r)o=f().day®,this._minWeekdaysParse=this.weekdaysMin(o,“”).toLocaleLowerCase(),this._shortWeekdaysParse=this.weekdaysShort(o,“”).toLocaleLowerCase(),this._weekdaysParse=this.weekdays(o,“”).toLocaleLowerCase();return n?“dddd”===t?-1!==(i=ye.call(this._weekdaysParse,a))?i:null:“ddd”===t?-1!==(i=ye.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,a))?i:null:“dddd”===t?-1!==(i=ye.call(this._weekdaysParse,a))||-1!==(i=ye.call(this._shortWeekdaysParse,a))||-1!==(i=ye.call(this._minWeekdaysParse,a))?i:null:“ddd”===t?-1!==(i=ye.call(this._shortWeekdaysParse,a))||-1!==(i=ye.call(this._weekdaysParse,a))||-1!==(i=ye.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,a))||-1!==(i=ye.call(this._weekdaysParse,a))||-1!==(i=ye.call(this._shortWeekdaysParse,a))?i:null}var qe=ce,Ve=ce,$e=ce;function Ge(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=,c=[],u=;for(t=0;t<7;t++)n=f().day(t),r=this.weekdaysMin(n,“”),i=this.weekdaysShort(n,“”),o=this.weekdays(n,“”),a.push®,s.push(i),c.push(o),u.push®,u.push(i),u.push(o);for(a.sort(e),s.sort(e),c.sort(e),u.sort(e),t=0;t<7;t++)s=pe(s),c=pe(c),u=pe(u);this._weekdaysRegex=new RegExp(“^(”+u.join(“|”)+“)”,“i”),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(“^(”+c.join(“|”)+“)”,“i”),this._weekdaysShortStrictRegex=new RegExp(“^(”+s.join(“|”)+“)”,“i”),this._weekdaysMinStrictRegex=new RegExp(“^(”+a.join(“|”)+“)”,“i”)}function Ke(){return this.hours()%12||12}function Je(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}U(“H”,,0,“hour”),U(“h”,,0,Ke),U(“k”,,0,(function(){return this.hours()||24})),U(“hmm”,0,0,(function(){return“”+Ke.apply(this)+F(this.minutes(),2)})),U(“hmmss”,0,0,(function(){return“”+Ke.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),U(“Hmm”,0,0,(function(){return“”+this.hours()+F(this.minutes(),2)})),U(“Hmmss”,0,0,(function(){return“”+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),Je(“a”,!0),Je(“A”,!1),A(“hour”,“h”),R(“hour”,13),le(“a”,Qe),le(“A”,Qe),le(“H”,Z),le(“h”,Z),le(“k”,Z),le(“HH”,Z,G),le(“hh”,Z,G),le(“kk”,Z,G),le(“hmm”,X),le(“hmmss”,ee),le(“Hmm”,X),le(“Hmmss”,ee),he(,3),he(,(function(e,t,n){var r=O(e);t=24===r?0:r})),he(,(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),he(,(function(e,t,n){t=O(e),h(n).bigHour=!0})),he(“hmm”,(function(e,t,n){var r=e.length-2;t=O(e.substr(0,r)),t=O(e.substr®),h(n).bigHour=!0})),he(“hmmss”,(function(e,t,n){var r=e.length-4,i=e.length-2;t=O(e.substr(0,r)),t=O(e.substr(r,2)),t=O(e.substr(i)),h(n).bigHour=!0})),he(“Hmm”,(function(e,t,n){var r=e.length-2;t=O(e.substr(0,r)),t=O(e.substr®)})),he(“Hmmss”,(function(e,t,n){var r=e.length-4,i=e.length-2;t=O(e.substr(0,r)),t=O(e.substr(r,2)),t=O(e.substr(i))}));var Ze,Xe=we(“Hours”,!0),et={calendar:{sameDay:“[Today at] LT”,nextDay:“[Tomorrow at] LT”,nextWeek:“dddd [at] LT”,lastDay:“[Yesterday at] LT”,lastWeek:“ dddd [at] LT”,sameElse:“L”},longDateFormat:{LTS:“h:mm:ss A”,LT:“h:mm A”,L:“MM/DD/YYYY”,LL:“MMMM D, YYYY”,LLL:“MMMM D, YYYY h:mm A”,LLLL:“dddd, MMMM D, YYYY h:mm A”},invalidDate:“Invalid date”,ordinal:“%d”,dayOfMonthOrdinalParse:/d{1,2}/,relativeTime:{future:“in %s”,past:“%s ago”,s:“a few seconds”,ss:“%d seconds”,m:“a minute”,mm:“%d minutes”,h:“an hour”,hh:“%d hours”,d:“a day”,dd:“%d days”,M:“a month”,MM:“%d months”,y:“a year”,yy:“%d years”},months:De,monthsShort:xe,week:{dow:0,doy:6},weekdays:We,weekdaysMin:ze,weekdaysShort:Be,meridiemParse:/.?m?.?/i},tt={},nt={};function rt(e){return e?e.toLowerCase().replace(“_”,“-”):e}function it(t){var r=null;if(!tt&&void 0!==e&&e&&e.exports)try{r=Ze._abbr,n(459)(“./”+t),ot®}catch(e){}return tt}function ot(e,t){var n;return e&&((n=s(t)?st(e):at(e,t))?Ze=n:“undefined”!=typeof console&&console.warn&&console.warn(“Locale ”e“ 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;t[1].exec(c)){i=ht[0],r=!1!==ht[2];break}if(null==i)return void(e._isValid=!1);if(c){for(t=0,n=mt.length;t[1].exec(c)){o=(c||“ ”)+mt[0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(c){if(!ft.exec(c))return void(e._isValid=!1);a=“Z”}e._f=i+(o||“”)+(a||“”),kt(e)}else e._isValid=!1}var gt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?s)?(d{1,2})s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)s(d{2,4})s(dd):(dd)(?::(dd))?s(?:(UT|GMT|[ECMP][SD]T)|()|([+-]d{4}))$/;function yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var bt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wt(e){var t,n,r,i,o,a,s,c=gt.exec(e._i.replace(/(*)|[nt]/g,“ ”).replace(/(ss+)/g,“ ”).replace(/^ss*/,“”).replace(/ss*$/,“”));if©{var u=(t=c,n=c,r=c,i=c,o=c,a=c,s=,a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){return!e||Be.indexOf(e)===new Date(t,t,t).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c,u,e))return;e._a=u,e._tzm=function(e,t,n){if(e)return bt;if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(c,c,c),e._d=Ne.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function kt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,o,a,s=“”+e._i,c=s.length,u=0;for(r=V(e._f,e._locale).match(H)||[],t=0;t,(n=(s.match(de(o,e))||[]))&&((a=s.substr(0,s.indexOf(n))).length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),z?(n?h(e).empty=!1:h(e).unusedTokens.push(o),_e(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=c-u,s.length>0&&h(e).unusedInput.push(s),e._a<=12&&!0===h(e).bigHour&&e._a>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a,e._meridiem),lt(e),ct(e)}else wt(e);else vt(e)}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&“”===t?_({nullInput:!0}):(“string”==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(ct(t)):(u(t)?e._d=t:o(n)?function(e){var t,n,r,i,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f,kt(t),m(t)&&(o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,(null==r||o<r)&&(r=o,n=t));p(e,n||t)}(e):n?kt(e):function(e){var t=e._i;s(t)?e._d=new Date(i.now()):u(t)?e._d=new Date(t.valueOf()):“string”==typeof t?function(e){var t=_t.exec(e._i);null===t?(vt(e),!1===e._isValid&&(delete e._isValid,wt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t)}(e):o(t)?(e._a=l(t.slice(0),(function(e){return parseInt(e,10)})),lt(e)):a(t)?function(e){if(!e._d){var t=I(e._i);e._a=l(,(function(e){return e&&parseInt(e,10)})),lt(e)}}(e):c(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Ct(e,t,n,r,i){var s,c={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=i,c._l=n,c._i=e,c._f=t,c._strict=r,(s=new b(ct(Ot©)))._nextDay&&(s.add(1,“d”),s._nextDay=void 0),s}function Mt(e,t,n,r){return Ct(e,t,n,r,!1)}i.createFromInputFallback=D(“value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to momentjs.com/guides/#/warnings/js-date/ for more info.”,(function(e){e._d=new Date(e._i+(e._useUTC?“ UTC”:“”))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Dt=D(“moment().min is deprecated, use moment.max instead. momentjs.com/guides/#/warnings/min-max/”,(function(){var e=Mt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()})),xt=D(“moment().max is deprecated, use moment.min instead. momentjs.com/guides/#/warnings/min-max/”,(function(){var e=Mt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()}));function Et(e,t){var n,r;if(1===t.length&&o(t)&&(t=t),!t.length)return Mt();for(n=t,r=1;r.isValid()&&!t[e](n)||(n=t);return n}var St=;function jt(e){var t=I(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,c=t.minute||0,u=t.second||0,l=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===ye.call(St,t)||null!=e&&isNaN(e))return!1;for(var n=!1,r=0;r]){if(n)return!1;parseFloat(e[St])!==O(e[St])&&(n=!0)}return!0}(t),this._milliseconds=+l+1e3*u+6e4*c+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=st(),this._bubble()}function Tt(e){return e instanceof jt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){U(e,0,0,(function(){var e=this.utcOffset(),n=“+”;return e<0&&(e=-e,n=“-”),n+F(~~(e/60),2)+t+F(~~e%60,2)}))}Pt(“Z”,“:”),Pt(“ZZ”,“”),le(“Z”,se),le(“ZZ”,se),he(,(function(e,t,n){n._useUTC=!0,n._tzm=Nt(se,e)}));var At=/(|dd)/gi;function Nt(e,t){var n=(t||“”).match(e);if(null===n)return null;var r=((n||[])+“”).match(At)||,i=60*r+O(r);return 0===i?0:“+”===r?i:-i}function It(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||u(e)?e.valueOf():Mt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Mt(e).local()}function Yt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Rt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ft=/^(-|+)?(?:(d*)[. ])?(d+):(d+)(?::(d+)(.d*)?)?$/,Ht=/^(-|+)?P(?:([-+]?[0-9,.]*)Y)?(?:(?[0-9,.]*)M)?(?:(?[0-9,.]*)W)?(?:(?[0-9,.]*)D)?(?:T(?:(?[0-9,.]*)H)?(?:(?[0-9,.]*)M)?(?:(?[0-9,.]*)S)?)?$/;function Wt(e,t){var n,r,i,o,a,s,u=e,l=null;return Tt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:c(e)?(u={},t?u=e:u.milliseconds=e):(l=Ft.exec(e))?(n=“-”===l?-1:1,u={y:0,d:O(l)*n,h:O(l)*n,m:O(l)*n,s:O(l)*n,ms:O(Lt(1e3*l))*n}):(l=Ht.exec(e))?(n=“-”===l?-1:1,u={y:Bt(l,n),M:Bt(l,n),w:Bt(l,n),d:Bt(l,n),h:Bt(l,n),m:Bt(l,n),s:Bt(l,n)}):null==u?u={}:“object”==typeof u&&(“from”in u||“to”in u)&&(o=Mt(u.from),a=Mt(u.to),i=o.isValid()&&a.isValid()?(a=It(a,o),o.isBefore(a)?s=zt(o,a):((s=zt(a,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(u={}).ms=i.milliseconds,u.M=i.months),r=new jt(u),Tt(e)&&d(e,“_locale”)&&(r._locale=e._locale),r}function Bt(e,t){var n=e&&parseFloat(e.replace(“,”,“.”));return(isNaN(n)?0:n)*t}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,“M”).isAfter(t)&&–n.months,n.milliseconds=+t-+e.clone().add(n.months,“M”),n}function Ut(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(S(t,“moment().”t“(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;r.unit](e[n.unit]);else if(j(this))return this(t);return this},dn.startOf=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(),0,1);break;case“quarter”:t=n(this.year(),this.month()-this.month()%3,1);break;case“month”:t=n(this.year(),this.month(),1);break;case“week”:t=n(this.year(),this.month(),this.date()-this.weekday());break;case“isoWeek”:t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case“day”:case“date”:t=n(this.year(),this.month(),this.date());break;case“hour”:t=this._d.valueOf(),t-=Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case“minute”:t=this._d.valueOf(),t-=Zt(t,6e4);break;case“second”:t=this._d.valueOf(),t-=Zt(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},dn.subtract=$t,dn.toArray=function(){var e=this;return},dn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?q(n,t?“YYYYYY-MM-DD[T]HH:mm:ss.SSS”:“YYYYYY-MM-DDHH:mm:ss.SSSZ”):j(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace(“Z”,q(n,“Z”)):q(n,t?“YYYY-MM-DD[T]HH:mm:ss.SSS”:“YYYY-MM-DDHH:mm:ss.SSSZ”)},dn.inspect=function(){if(!this.isValid())return“moment.invalid(/* ”this._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&&||i||o<=1&&||o||a<=1&&||a||s<=1&&||s||c<=1&&||c||u<=1&&||[“yy”,u];return l=t,l=+e>0,l=n,Bn.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Vn.toISOString=qn,Vn.toString=qn,Vn.toJSON=qn,Vn.locale=Kt,Vn.localeData=Qt,Vn.toIsoString=D(“toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)”,qn),Vn.lang=Jt,U(“X”,0,0,“unix”),U(“x”,0,0,“valueOf”),le(“x”,oe),le(“X”,/?d+(.d{1,3})?/),he(“X”,(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),he(“x”,(function(e,t,n){n._d=new Date(O(e))})),i.version=“2.24.0”,t=Mt,i.fn=dn,i.min=function(){var e=[].slice.call(arguments,0);return Et(“isBefore”,e)},i.max=function(){var e=[].slice.call(arguments,0);return Et(“isAfter”,e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return Mt(1e3*e)},i.months=function(e,t){return mn(e,t,“months”)},i.isDate=u,i.locale=ot,i.invalid=_,i.duration=Wt,i.isMoment=w,i.weekdays=function(e,t,n){return _n(e,t,n,“weekdays”)},i.parseZone=function(){return Mt.apply(null,arguments).parseZone()},i.localeData=st,i.isDuration=Tt,i.monthsShort=function(e,t){return mn(e,t,“monthsShort”)},i.weekdaysMin=function(e,t,n){return _n(e,t,n,“weekdaysMin”)},i.defineLocale=at,i.updateLocale=function(e,t){if(null!=t){var n,r,i=et;null!=(r=it(e))&&(i=r._config),t=T(i,t),(n=new L(t)).parentLocale=tt,tt=n,ot(e)}else null!=tt&&(null!=tt.parentLocale?tt=tt.parentLocale:null!=tt&&delete tt);return tt},i.locales=function(){return x(tt)},i.weekdaysShort=function(e,t,n){return _n(e,t,n,“weekdaysShort”)},i.normalizeUnits=N,i.relativeTimeRounding=function(e){return void 0===e?Hn:“function”==typeof e&&(Hn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Wn&&(void 0===t?Wn:(Wn=t,“s”===e&&(Wn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,“days”,!0);return n<-6?“sameElse”:n<-1?“lastWeek”:n<0?“lastDay”:n<1?“sameDay”:n<2?“nextDay”:n<7?“nextWeek”:“sameElse”},i.prototype=dn,i.HTML5_FMT={DATETIME_LOCAL:“YYYY-MM-DDTHH:mm”,DATETIME_LOCAL_SECONDS:“YYYY-MM-DDTHH:mm:ss”,DATETIME_LOCAL_MS:“YYYY-MM-DDTHH:mm:ss.SSS”,DATE:“YYYY-MM-DD”,TIME:“HH:mm”,TIME_SECONDS:“HH:mm:ss”,TIME_MS:“HH:mm:ss.SSS”,WEEK:“GGGG-WW”,MONTH:“YYYY-MM”},i}()}).call(this,n(79)(e))},function(e,t,n){“use strict”;n.d(t,“d”,(function(){return S})),n.d(t,“c”,(function(){return v})),n.d(t,“m”,(function(){return y})),n.d(t,“o”,(function(){return L})),n.d(t,“r”,(function(){return j})),n.d(t,“s”,(function(){return P})),n.d(t,“g”,(function(){return A})),n.d(t,“h”,(function(){return N})),n.d(t,“i”,(function(){return T})),n.d(t,“p”,(function(){return g})),n.d(t,“b”,(function(){return _})),n.d(t,“j”,(function(){return D})),n.d(t,“n”,(function(){return F})),n.d(t,“e”,(function(){return I})),n.d(t,“f”,(function(){return Y})),n.d(t,“a”,(function(){return B})),n.d(t,“k”,(function(){return z})),n.d(t,“l”,(function(){return U})),n.d(t,“q”,(function(){return q}));var r=n(0),i=n(2),o=function(){function e(e,t){this.value=e,this.copy=t,this.valueForReading=new r.d}return e.prototype.read=function(e){var t=this.value;return this.valueForReading.runWith(t,(function(){return e(t)}))},e.prototype.write=function(e){this.valueForReading.current()===this.value&&(this.value=this.copy(this.value)),e(this.value)},e}(),a=function(){function e(e){this.notifySubscribers=e,this.subscribersStore=new o([],(function(e){return e.slice()}))}return e.prototype.create=function(e,t){return void 0===t&&(t=0),new s(this.subscribersStore,e,t)},e.prototype.count=function(){return this.subscribersStore.read((function(e){return e.length}))},e.prototype.reset=function(){this.subscribersStore.write((function(e){e.length=0}))},e.prototype.notify=function(){var e=this;this.subscribersStore.read((function(t){return e.notifySubscribers(t)}))},e}(),s=function(){function e(e,t,n){void 0===n&&(n=0),this.subscriberStore=e,this.listener=t,this.rank=n,this.active=!1}return e.prototype.subscribeChanges=function(e){var t=this;this.stateReference=e,this.active||(this.subscriberStore.write((function(e){var n=Object(i.sortedIndex)(e,t,“rank”);e.splice(n,0,t)})),this.active=!0),this.hasChanges()&&this.listener()},e.prototype.unsubscribe=function(){var e=this;this.active&&(this.subscriberStore.write((function(t){var n=t.indexOf(e);n>=0&&t.splice(n,1)})),this.active=!1)},e.prototype.notify=function(){this.active&&this.listener()},e.prototype.hasChanges=function(){return!!this.stateReference&&this.stateReference.hasChanges()},e}(),c=new a((function(e){e.forEach((function(e){e.hasChanges()&&e.notify()}))})),u=new a((function(e){e.forEach((function(e){Object(r.G)((function(){e.hasChanges()&&e.notify()}))}))})),l=function(){function e(){this.listenersStore=new o([],(function(e){return e.slice()}))}return e.prototype.subscribe=function(e){var t=this,n=!0,r=function(){n&&e()};return this.listenersStore.write((function(e){return e.push®})),function(){n=!1,t.listenersStore.write((function(e){var t=e.indexOf®;e.splice(t,1)}))}},e.prototype.count=function(){return this.listenersStore.read((function(e){return e.length}))},e.prototype.clear=function(){this.listenersStore.write((function(e){e.length=0}))},e.prototype.notify=function(){this.listenersStore.read((function(e){return e.forEach((function(e){return e()}))}))},e}();function d(e){return null!==e&&“object”==typeof e&&!Array.isArray(e)&&!function(e){var t=Object.getPrototypeOf(e);if(null===t)return!1;return null!==Object.getPrototypeOf(t)}(e)}function p(e,t){return e===t?t:d(t)?function(e,t){var n={},r=!1;void 0===e&&(r=!0);var i=Object.keys(t),o=new Set;e&&Object.keys(e).forEach((function(e){return o.add(e)}));o.size!==i.length&&(r=!0);return i.forEach((function(i){o.has(i)||(r=!0);var a=e?e:void 0,s=p(a,t);s!==a&&(r=!0),n=s})),r?Object.freeze(n):e}(d(e)?e:void 0,t):Array.isArray(t)?function(e,t){var n=!1;void 0!==e&&e.length===t.length||(n=!0);var r=t.map((function(t,r){var i=e?e:void 0,o=p(i,t);return o!==i&&(n=!0),o}));return n?Object.freeze®:e}(Array.isArray(e)?e:void 0,t):t}var f,h,m,_,v,g,y,b=(f=function(e,t){return(f=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}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(){function e(){}return e.prototype.get=function(){var e=this,t=this.untrackedGet();return this.recordDetector((function(){return t!==e.untrackedGet()})),t},e.prototype.recordDetector=function(e){this.getTree().recordDetector(e)},e.prototype.set=function(e){var t=this.untrackedGet(),n=p(t,e);n!==t&&this.uncheckedSet(n)},e.prototype.clear=function(){this.set(void 0)},e.prototype.subState=function(e){return new M(this,e)},e.prototype.reader=function(){return this},e.prototype.setSubState=function(e,t){var n,i=this.untrackedGet();if(void 0!==i){if(void 0===t){var o=Object.keys(i);if(1===o.length&&o===e)return void this.uncheckedSet(void 0)}if(null===i)throw new r.g;var a=Object(r.n)({},i),s=a;void 0===t?delete s:s=t,this.uncheckedSet(Object.freeze(a))}else{var c=Object.freeze(((n={})[e]=t,n));this.uncheckedSet©}},e.prototype.getSubState=function(e){var t=this.untrackedGet();if(null!=t)return t},e}(),k=function(){function e(e){this.detector=e}return e.prototype.hasChanges=function(){return this.detector()},e}(),O=function(e){function t(){var t=e.call(this)||this;return t.listeners=new l,t.detectorRecording=new r.d,t.batchUpdates=new r.d,t.version=0,t.frozenContextContainer=new r.d,t}return b(t,e),t.prototype.untrackedGet=function(){return this.state},t.prototype.withFrozenState=function(e,t){return this.frozenContextContainer.runWith(e,t)},t.prototype.failIfTracking=function(e){if(this.detectorRecording.current())throw new r.g(e)},t.prototype.failIfFrozen=function(e){var t=this.frozenContextContainer.current();if(t){var n=e+“ is not permitted inside '”t.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;a=arguments;var s=o.b.subState(“adapters”).subState(n.toString()),u=c,l=s.subState(u).subState(Object(r.s)(e)),d=new i.LoadableData({state:l,stream:t.stream.apply(t,.concat(e))});return d.get()}),l===s&&(u=function(){for(var e=[],n=0;n=arguments;return t.send.apply(t,.concat(e))})})),u}function l(e){return{stream:function(t){for(var n=[],o=1;o=arguments;return new r.k((function®{return Object(i.observeAndLoad)((function(){var r=e();if®{var i=r;return{valueFromClient:i.call.apply(i,.concat(n))}}}),(function(e){e.allDataLoaded&&void 0!==e.result&&r.next(e.result.valueFromClient)})).unsubscribe}))},send:function(t){for(var n=[],i=1;i=arguments;var a=new r.j((function®{Object(o.q)(e).then((function(e){var i=e;r(i.call.apply(i,.concat(n)))}))}));return a}}}function d(e,t){return{stream:function(e){for(var n=[],o=1;o=arguments;var a=t;return new r.k((function(e){return Object(i.observeAndLoad)((function(){return a.call.apply(a,.concat(n))}),(function(t){t.allDataLoaded&&e.next(t.result)})).unsubscribe}))},send:function(e){for(var n=[],i=1;i=arguments;var o=t,a=new r.j((function(e){Object(r.G)((function(){return e(o.call.apply(o,.concat(n)))}))}));return a}}}function p(e){return{incomingMessages:new r.k((function(t){function n(e){t.next({data:e.data})}return e.addEventListener(“message”,n),e.start(),function(){e.removeEventListener(“message”,n)}})),sendMessage:function(t){e.postMessage(t.data,t.transfer)}}}var f=function(){function e(e){this.muxedStream=e,this.openStreams={}}return e.prototype.streamWithId=function(e){var t=this;return new r.k((function(n){t.ensureSubscribed();var r=t.subjectForStreamId(e).subscribe(n);return function(){r.unsubscribe(),t.removeSubjectIfAbandoned(e)}}))},e.prototype.removeSubjectIfAbandoned=function(e){0===this.subjectForStreamId(e).subscriberCount()&&(delete this.openStreams,this.unsubscribeIfAbandoned())},e.prototype.subjectForStreamId=function(e){var t=this.openStreams;if(t)return t;var n=new r.l;return this.openStreams=n,n},e.prototype.ensureSubscribed=function(){var e=this;this.subscription||(this.subscription=this.muxedStream.subscribe({next:function(t){var n=t.streamId,r=e.openStreams;r&&r.next(t.data)},complete:function(){return Object.keys(e.openStreams).forEach((function(t){var n=e.openStreams;n&&(n.complete(),delete e.openStreams)}))}}))},e.prototype.unsubscribeIfAbandoned=function(){0===Object.keys(this.openStreams).length&&this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},e}();function h(e){return e&&“number”==typeof e.channel&&“string”==typeof e.verb}function m(e){return“string”==typeof e.method&&Array.isArray(e.params)}function _(e){return“CLOSE”===e.verb}function v(e){return“RESPOND”===e.verb}function g(e){return“ERROR”===e.verb}var y,b=(y=function(e,t){return(y=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}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function w(e){return new k(e)}var k=function(){function e(e){this.portLink=e,this.channelCounter=1,this.incomingChannels=new f(this.portLink.incomingMessages.map((function(e){return e.data})).filter(h).map((function(e){return{streamId:e.channel,data:e}})))}return e.prototype.stream=function(e){for(var t=this,n=[],i=1;i=arguments;return new r.k((function®{var i=t.getNextChannelId();t.postMessage({channel:i,verb:“OPEN”,method:e,params:n});var o=t.incomingChannels.streamWithId(i).subscribe((function(e){v(e)&&r.next(e.data)}));return function(){t.postMessage({channel:i,verb:“CLOSE”}),o.unsubscribe()}}))},e.prototype.send=function(e){for(var t=[],n=1;n=arguments;var r=this.getNextChannelId();this.postMessage({channel:r,verb:“SEND”,method:e,params:t});var i=this.incomingChannels.streamWithId®.filter(x).takeOne().toPromise().then((function(e){if(!e)throw new C;if(g(e))throw new O;return e.data}));return i},e.prototype.postMessage=function(e){this.portLink.sendMessage({data:e,transfer:M(e)})},e.prototype.getNextChannelId=function(){return this.channelCounter++},e}(),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b(t,e),t}(r.i),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b(t,e),t}(r.i);function M(e){if(“SEND”===e.verb)return e.params.filter(D)}function D(e){return e instanceof MessagePort}function x(e){return v(e)||g(e)}function E(e,t,n){return e===t}function S(e,t,n){new j(e,t,n).start()}var j=function(){function e(e,t,n){this.portLink=e,this.adapterConnection=t,this.description=n,this.incomingMessages=e.incomingMessages.map((function(e){return e.data})).filter(h),this.incomingChannels=new f(this.incomingMessages.map((function(e){return{streamId:e.channel,data:e}})))}return e.prototype.start=function(){var e=this;this.incomingMessages.subscribe((function(t){!function(e){return“OPEN”===e.verb&&m(e)}(t)?function(e){return“SEND”===e.verb&&m(e)}(t)&&e.handleSendMessage(t):e.handleOpenStreamMessage(t)}))},e.prototype.handleOpenStreamMessage=function(e){var t,n=this,r=T(e);if(E(this.description,a,r)){var i=(t=this.adapterConnection).stream.apply(t,.concat(r.params)),o=e.channel,s=i.subscribe((function(e){n.postMessage({verb:“RESPOND”,data:e,channel:o})}));this.incomingChannels.streamWithId(o).filter(_).takeOne().toPromise().then((function(){s.unsubscribe()}))}},e.prototype.handleSendMessage=function(e){var t,n=this,i=T(e);E(this.description,s,i)&&(t=this.adapterConnection).send.apply(t,.concat(i.params)).then((function(t){return n.postMessage({verb:“RESPOND”,data:t,channel:e.channel})}),(function(t){n.postMessage({verb:“ERROR”,channel:e.channel}),Object(r.Q)(t)}))},e.prototype.postMessage=function(e){this.portLink.sendMessage({data:e})},e}();function T(e){return{methodName:e.method,params:e.params}}},function(e,t,n){“use strict”;n.d(t,“a”,(function(){return c})),n.d(t,“d”,(function(){return W})),n.d(t,“e”,(function(){return G})),n.d(t,“j”,(function(){return K})),n.d(t,“b”,(function(){return m})),n.d(t,“c”,(function(){return v})),n.d(t,“g”,(function(){return k})),n.d(t,“f”,(function(){return J})),n.d(t,“h”,(function(){return Q})),n.d(t,“i”,(function(){return $}));var r={};n.r®,n.d(r,“ERROR_CODE_CLIENT_VERIFICATION_REQUIRED”,(function(){return x})),n.d(r,“perform”,(function(){return E})),n.d(r,“reset”,(function(){return S})),n.d(r,“currentState”,(function(){return T}));var i;function o(){i=0}var a,s,c={init:function(e){o();var t=e.location,n=t.hash,r=n.indexOf(“&scrivito.authFailedCount=”);if(!(r<0)){var a=n.substr(r+“&scrivito.authFailedCount=”.length,3),s=n.substring(0,r);“#”===s&&(s=“”);var c=t.href.toString().replace(n,s);i=parseInt(a,10)||0,e.history.replaceState({},“”,c)}},augmentedRedirectUrl:function(e){var t=e.toString();return e.hash||(t+=“#”),t+“&scrivito.authFailedCount=”+(i+1)},reset:o,currentFailureCount:function(){return i}},u=n(0),l=n(2),d=n(12),p=(a=function(e,t){return(a=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}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.httpCode=n,i.backendCode=r,i}return p(t,e),t.for=function(e,n,r){return“binary.unprocessable.image.transform.source.too_large”===r?new g(e,n,r):r&&-1!==r.indexOf(“binary.unprocessable.image.transform.source.”)?new y(e,n,r):new t(e,n,r)},t}(u.i),h=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return p(t,e),t}(f),m=function(e){function t(t){var n=e.call(this,“Insufficient authorization - please visit ”+t)||this;return n.target=t,n}return p(t,e),t}(u.i),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(u.i),v=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o.details=i||{},o}return p(t,e),t}(f),g=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return p(t,e),t}(f),y=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return p(t,e),t}(f),b=!1,w=0;function k(){return w>0}function O(e,t,n){var r=n.params,i=n.authorization,o=n.forceVerification;return b?u.j.resolve(new XMLHttpRequest):(w+=1,new u.j((function(n,a){var s=function(e,t,n,r){var i=new XMLHttpRequest;function o(e){!function(e,t){w-=1,t(e)}(new _(e),r)}return i.open(“POST”===e?“POST”:“PUT”,t),i.timeout=15e3,i.withCredentials=!0,i.onload=function(){return function(e,t,n){w-=1;var r=e.status;if(!r||!Object(l.isNumber)®){var i=“Unexpected response status: ”r“; 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);i)<0&&(n[r]=e[r])}return n},s=function(){function e(e,t){var n={};t._scrivitoPrivateSchema&&r.extend(n,t._scrivitoPrivateSchema.attributes),e.attributes&&r.each(e.attributes,(function(e,t){n=function(e){if(“string”==typeof e)return;return[e,u(e)]}(e)}));var i=e.onlyInside;this.definition=o({},e,i?{attributes:n,onlyInside:r.isArray(i)?i:}:{attributes:n})}return e.forInstance=function(e){return this.forClass(e.constructor)},e.forClass=function(e){return e._scrivitoPrivateSchema},e.basicFieldFor=function(t,n){var r=e.forInstance(t);if®{var o=r.attributes;if(o)return new i.BasicField(t._scrivitoPrivateContent,n,o)}},Object.defineProperty(e.prototype,“attributes”,{get:function(){return this.definition.attributes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,“name”,{get:function(){return this.definition.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,“onlyInside”,{get:function(){return this.definition.onlyInside},enumerable:!0,configurable:!0}),e.prototype.isBinary=function(){var e=this.definition.attributes.blob;return!!e&&“binary”===e},e}();function c(e){return!(!e||!e._scrivitoPrivateSchema)}function u(e){if(!(“only”in e))return e;var t=e.only,n=a(e,);return o({},n,{validClasses:“string”==typeof t?:t})}var l=n(0);function d(e,t){if(Object(r.isArray)(t))return Object(r.map)(t,(function(t){return d(e,t)}));if(t instanceof i.BasicObj)return p(t,e.objClassFor(t.objClass()));if(t instanceof i.BasicWidget){var n=t.objClass();return p(t,e.widgetClassFor(n))}if(t instanceof i.BasicLink){var o=Object.create(e.defaultClassForLinks.prototype);return o._scrivitoPrivateContent=t,o}return t}function p(e,t){var n=Object.create(t.prototype);return n._scrivitoPrivateContent=e,n}function f(e){return Object(r.isArray)(e)?Object(r.map)(e,f):e&&e._scrivitoPrivateContent?e._scrivitoPrivateContent:e}function h(e,t,n){return Object(r.mapObject)(e,(function(e,r){if(Object(l.z)®)return;var i=t.attributes;if(!i)throw new l.a('Attribute “'r'” 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;r=arguments;return z.apply(void 0,.concat(n)),P(this._registry,e,t)},e.prototype.provideWidgetClass=function(e,t){for(var n=[],r=2;r=arguments;return q.apply(void 0,.concat(n)),A(this._registry,e,t)},e.prototype.createObjClass=function(e){for(var t=[],n=1;n=arguments;return H.apply(void 0,.concat(t)),T(this._registry,e)},e.prototype.createWidgetClass=function(e){for(var t=[],n=1;n=arguments;return W.apply(void 0,.concat(t)),L(this._registry,e)},e.prototype.getClass=function(e){return this._registry.getClass(e)},e.prototype.allObjClasses=function(){return this._registry.allObjClasses()},e.prototype.allWidgetClasses=function(){return this._registry.allWidgetClasses()},e.prototype.setInitialContentFor=function(e){this._registry.setInitialContentFor(e)},e}();t.c=V},function(e,t,n){“use strict”;var r;function i(e){return r?r.getContentStateId(e):“”}function o(e){r=e}n.d(t,“g”,(function(){return i})),n.d(t,“o”,(function(){return o})),n.d(t,“a”,(function(){return w})),n.d(t,“f”,(function(){return O})),n.d(t,“b”,(function(){return f})),n.d(t,“q”,(function(){return _})),n.d(t,“c”,(function(){return v})),n.d(t,“l”,(function(){return m})),n.d(t,“i”,(function(){return W})),n.d(t,“d”,(function(){return F})),n.d(t,“e”,(function(){return D})),n.d(t,“j”,(function(){return X})),n.d(t,“p”,(function(){return Z})),n.d(t,“m”,(function(){return A})),n.d(t,“n”,(function(){return N})),n.d(t,“h”,(function(){return ne})),n.d(t,“k”,(function(){return oe}));var a,s=n(2),c=n.n(s),u=n(5),l=n(7),d=n(0),p=(a=function(e,t){return(a=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}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=“inMemory”,h=!1;function m(){return h}function _(){h=!0}function v(e){if(h)throw new g(e)}var g=function(e){function t(t){return e.call(this,t+“ is not supported when using the in-memory tenant”)||this}return p(t,e),t}(d.i),y=n(9),b=new u.LoadableCollection({name:“facetquery”,state:function(){return l.c.subState(“facetQuery”)},loader:function(e){var t=e,n=e;return y.e.retrieveFacetQuery(t,n)},invalidation:function(e){var t=e;e;return Object(u.loadableWithDefault)(void 0,(function(){return i(t)}))||“”}}),w=function(){function e(e,t,n,r){this._requestParams=k(t,n,r),this._loadableData=b.get()}return e.store=function(e,t,n,r,i){var o=k(t,n,r);b.get().set(i)},e.prototype.result=function(){v(“Search API”);var e=this._loadableData.get();return e?e.facets.map((function(e){return{name:e.value,count:e.total,includedObjIds:e.results.map((function(e){return e.id}))}})):[]},e}();function k(e,t,n){var r={facets:,size:0};return Object(s.isEmpty)(n)||(r.query=n),r}function O(e,t){var n=C(e,t);return n||(s.find(e._widget_pool,(function(e,r){if(e&&(n=C(e,t)))return n.parentWidgetId=r,!0})),n)}function C(e,t){var n;return s.find(e,(function(e,r){if(e&&!Object(d.z)®){var i=e;if(Object(y.h)(i)){var o=i;if(o){var a=o.indexOf(t);return-1!==a?(n={attributeName:r,index:a},!0):void 0}}}})),n}function M(e,t){if(!e)return t;if(!t)return null;var n={};return x(e,t,(function(r,i,o){“_widget_pool”===r?n._widget_pool=function(e,t){if(!t||c.a.isEmpty(t))return e;var n={};return x(e,t,(function(e,r,i){Object.prototype.hasOwnProperty.call(t,e)?i&&!r?n=i:i&&(n=M(r,i)):n=r})),n}(i||{},o):Object.prototype.hasOwnProperty.call(t,r)?o&&(n=o):n=e})),n}function D(e,t){if(!e)return t;if(!t)return null;var n={};return x(e,t,(function(e,t,r){if(“_widget_pool”===e){var i=function(e,t){if(e===t)return;if(!e)return t;var n={};return x(e,t||{},(function(e,t,r){var i=S(t,r,(function(){var e=D(t,r);if(!c.a.isEmpty(e))return e}));void 0!==i&&(n=i)})),n}(t,r);c.a.isEmpty(i)||(n._widget_pool=i)}else{var o=S(t,r,(function(){if(!c.a.isEqual(t,r))return r}));void 0!==o&&(n=o)}})),n}function x(e,t,n){c.a.union(c.a.keys(e),c.a.keys(t)).forEach((function®{return n(r,E(e),E(t))}))}function E(e){if(c.a.isArray(e)){var t=e,n=e;return“binary”===t&&n?:e}return e}function S(e,t,n){return!e&&t?t:e&&!t?null:e&&t?n():void 0}var j=function(){function e(e,t){var n=this;this._workspaceId=e,this._objId=t,this._replicationActive=!1,this._scheduledReplication=!1,this._currentRequestDeferred=null,this._nextRequestDeferred=null,this._performThrottledReplication=Object(d.P)((function(){return n._performReplication()}),1e3)}return e.prototype.start=function(){var e=this;y.e.retrieveObj(this._workspaceId,this._objId).then((function(t){Object(l.a)((function(){e.notifyBackendState(t)}))}))},e.prototype.notifyLocalState=function(e){if(!A.isDisabled()){if(void 0===this._backendState)throw new d.g(“Can not set local state before backend state.”);if(this._backendState&&this._backendState._deleted)throw new d.g(“Can not update a fully deleted obj.”);this._localState=e,this._startReplication()}},e.prototype.notifyBackendState=function(e){if(void 0===this._backendState)return this._backendState=e,void this._updateLocalState(e);if(P(e,this._bufferedBackendState||this._backendState)>0)if(this._replicationActive)this._bufferedBackendState=e;else{if(e._deleted)this._updateLocalState(null);else{var t=T(this._backendState,e);this._updateLocalState(L(this.localState,t))}this._backendState=e}},e.prototype.finishSaving=function(){var e;if(this._nextRequestDeferred)e=this._nextRequestDeferred.promise;else{if(!this._currentRequestDeferred)return d.j.resolve();e=this._currentRequestDeferred.promise}return e.catch((function(){return d.j.reject()}))},e.prototype._startReplication=function(){var e=this;c.a.isEmpty(T(this._backendState,this._localState))?this._nextRequestDeferred&&(this._nextRequestDeferred.resolve(),this._nextRequestDeferred=null):this._replicationActive?this._nextRequestDeferred||(this._nextRequestDeferred=new d.e):this._scheduledReplication||(this._scheduledReplication=!0,this._initDeferredForRequest(),A.writeStarted(this._currentRequestDeferred.promise),Object(d.G)((function(){return e._performThrottledReplication()})))},e.prototype._performReplication=function(){var e=this,t=this._localState,n=T(this._backendState,this._localState);this._scheduledReplication=!1,this._replicationActive=!0,this._replicatePatchToBackend(n).then((function(n){e._handleBackendUpdate(t,n),e._currentRequestDeferred.resolve(e._objId),e._currentRequestDeferred=null,e._replicationActive=!1,e._startReplication()}),(function(t){e._currentRequestDeferred.reject(t),e._currentRequestDeferred=null,e._replicationActive=!1}))},e.prototype._replicatePatchToBackend=function(e){if(c.a.isEmpty(e))return d.j.resolve(this._backendState);var t=“workspaces/”this._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;t===e)return t;return-1},N=“checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped”,I=“”,Y=“(?:\\.||[^\x00-\xa0])+”,R=Y.replace(“w”,“w#”),F=“\[”I“*(”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=“”;t.value;return r}function he(e,t,n){var r=t.dir,i=n&&“parentNode”===r,o=O++;return t.first?function(t,n,o){for(;t=t;)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,c,u=;if(a){for(;t=t;)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t;)if(1===t.nodeType||i){if((s=(c=t||(t={}))[r])&&s===k&&s===o)return u=s;if(c=u,u=e(t,n,a))return!0}}}function me(e){return e.length>1?function(t,n,r){for(var i=e.length;i–;)if(!e(t,n,r))return!1;return!0}:e}function _e(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,u=null!=t;s)&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function ve(e,t,n,r,i,o){return r&&!r&&(r=ve®),i&&!i&&(i=ve(i,o)),ie((function(o,a,s,c){var u,l,d,p=[],f=,h=a.length,m=o||function(e,t,n){for(var r=0,i=t.length;r,n);return n}(t||“*”,s.nodeType?:s,[]),_=!e||!o&&t?m:_e(m,p,e,s,c),v=n?i||(o?e:h||r)?:a:_;if(n&&n(_,v,s,c),r)for(u=_e(v,f),r(u,[],s,c),l=u.length;l–;)(d=u)&&(v[f]=!(_[f]=d));if(o){if(i||e){if(i){for(u=[],l=v.length;l–;)(d=v)&&u.push(_=d);i(null,v=[],u,c)}for(l=v.length;l–;)(d=v)&&(u=i?A.call(o,d):p)>-1&&(o=!(a=d))}}else v=_e(v===a?v.splice(h,v.length):v),i?i(null,a,v,c):L.apply(a,v)}))}function ge(e){for(var t,n,i,o=e.length,a=r.relative[e.type],s=a||r.relative[“ ”],c=a?1:0,l=he((function(e){return e===t}),s,!0),d=he((function(e){return A.call(t,e)>-1}),s,!0),p=;c.type])p=;else{if((n=r.filter[e.type].apply(null,e.matches))){for(i=++c;i.type];i++);return ve(c>1&&me(p),c>1&&fe(e.slice(0,c-1).concat({value:“ ”===e.type?“*”:“”})).replace(W,“$1”),n,c<i&&ge(e.slice(c,i)),i<o&&ge(e=e.slice(i)),i<o&&fe(e))}p.push(n)}return me(p)}return pe.prototype=r.filters=r.pseudos,r.setFilters=new pe,a=ne.tokenize=function(e,t){var n,i,o,a,s,c,u,l=M[e+“ ”];if(l)return t?0:l.slice(0);for(s=e,c=[],u=r.preFilter;s;){for(a in n&&!(i=B.exec(s))||(i&&(s=s.slice(i.length)||s),c.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i.replace(W,“ ”)}),s=s.slice(n.length)),r.filter)!(i=$.exec(s))||u&&!(i=u(i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ne.error(e):M(e,c).slice(0)},s=ne.compile=function(e,t){var n,i=[],o=,s=D[e+“ ”];if(!s){for(t||(t=a(e)),n=t.length;n–;)(s=ge(t))[b]?i.push(s):o.push(s);(s=D(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,c,l){var d,p,h,m=0,_=“0”,v=o&&[],g=,y=u,b=o||i&&r.find.TAG(“*”,l),w=k+=null==y?1:Math.random()||.1,O=b.length;for(l&&(u=a!==f&&a);_!==O&&null!=(d=b);_++){if(i&&d){for(p=0;h=e;)if(h(d,a,s)){c.push(d);break}l&&(k=w)}n&&((d=!h&&d)&&m–,o&&v.push(d))}if(m+=_,n&&_!==m){for(p=0;h=t;)h(v,g,a,s);if(o){if(m>0)for(;_–;)v||g||(g=j.call©);g=_e(g)}L.apply(c,g),l&&!o&&g.length>0&&m+t.length>1&&ne.uniqueSort©}return l&&(k=w,u=y),v};return n?ie(o):o}(o,i))).selector=e}return s},c=ne.select=function(e,t,i,o){var c,u,l,d,p,f=“function”==typeof e&&e,h=!o&&a(e=f.selector||e);if(i=i||[],1===h.length){if((u=h=h.slice(0)).length>2&&“ID”===(l=u).type&&n.getById&&9===t.nodeType&&m&&r.relative[u.type]){if(!(t=(r.find.ID(l.matches.replace(ee,te),t)||[])))return i;f&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(c=$.needsContext.test(e)?0:u.length;c–&&(l=u,!r.relative);)if((p=r.find)&&(o=p(l.matches.replace(ee,te),Z.test(u.type)&&de(t.parentNode)||t))){if(u.splice(c,1),!(e=o.length&&fe(u)))return L.apply(i,o),i;break}}return(f||s(e,h))(o,t,!m,i,Z.test(e)&&de(t.parentNode)||t),i},n.sortStable=b.split(“”).sort(x).join(“”)===b,n.detectDuplicates=!!d,p(),n.sortDetached=oe((function(e){return 1&e.compareDocumentPosition(f.createElement(“div”))})),oe((function(e){return e.innerHTML=“<a href='#'></a>”,“#”===e.firstChild.getAttribute(“href”)}))||ae(“type|href|height|width”,(function(e,t,n){if(!n)return e.getAttribute(t,“type”===t.toLowerCase()?1:2)})),n.attributes&&oe((function(e){return e.innerHTML=“<input/>”,e.firstChild.setAttribute(“value”,“”),“”===e.firstChild.getAttribute(“value”)}))||ae(“value”,(function(e,t,n){if(!n&&“input”===e.nodeName.toLowerCase())return e.defaultValue})),oe((function(e){return null==e.getAttribute(“disabled”)}))||ae(N,(function(e,t,n){var r;if(!n)return!0===e?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ne}(n);h.find=b,h.expr=b.selectors,h.expr=h.expr.pseudos,h.unique=b.uniqueSort,h.text=b.getText,h.isXMLDoc=b.isXML,h.contains=b.contains;var w=h.expr.match.needsContext,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,O=/^.[^:#*$/;function C(e,t,n){if(h.isFunction(t))return h.grep(e,(function(e,r){return!!t.call(e,r,e)!==n}));if(t.nodeType)return h.grep(e,(function(e){return e===t!==n}));if(“string”==typeof t){if(O.test(t))return h.filter(t,e,n);t=h.filter(t,e)}return h.grep(e,(function(e){return h.inArray(e,t)>=0!==n}))}h.filter=function(e,t,n){var r=t;return n&&(e=“:not(”e“)”),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))return!0}))},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=w.test(e)||“string”!=typeof e?h(e,t||this.context):0;r;n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&h.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?h.unique(o):o)},index:function(e){return e?“string”==typeof e?h.inArray(this,h(e)):h.inArray(e.jquery?e:e,this):this&&this.parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(h.unique(h.merge(this.get(),h(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),h.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h.dir(e,“parentNode”)},parentsUntil:function(e,t,n){return h.dir(e,“parentNode”,n)},next:function(e){return j(e,“nextSibling”)},prev:function(e){return j(e,“previousSibling”)},nextAll:function(e){return h.dir(e,“nextSibling”)},prevAll:function(e){return h.dir(e,“previousSibling”)},nextUntil:function(e,t,n){return h.dir(e,“nextSibling”,n)},prevUntil:function(e,t,n){return h.dir(e,“previousSibling”,n)},siblings:function(e){return h.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return h.sibling(e.firstChild)},contents:function(e){return h.nodeName(e,“iframe”)?e.contentDocument||e.contentWindow.document:h.merge([],e.childNodes)}},(function(e,t){h.fn=function(n,r){var i=h.map(this,t,n);return“Until”!==e.slice(-5)&&(r=n),r&&“string”==typeof r&&(i=h.filter(r,i)),this.length>1&&(S||(i=h.unique(i)),E.test(e)&&(i=i.reverse())),this.pushStack(i)}}));var T,L,P=/S+/g,A={};function N(){D.addEventListener?(D.removeEventListener(“DOMContentLoaded”,I,!1),n.removeEventListener(“load”,I,!1)):(D.detachEvent(“onreadystatechange”,I),n.detachEvent(“onload”,I))}function I(){(D.addEventListener||“load”===event.type||“complete”===D.readyState)&&(N(),h.ready())}for(L in h.Callbacks=function(e){e=“string”==typeof e?A||function(e){var t=A={};return h.each(e.match(P)||[],(function(e,n){t=!0})),t}(e):h.extend({},e);var t,n,r,i,o,a,s=[],c=!e.once&&,u=function(d){for(n=e.memory&&d,r=!0,o=a||0,a=0,i=s.length,t=!0;s&&o.apply(d,d)&&e.stopOnFalse){n=!1;break}t=!1,s&&(c?c.length&&u(c.shift()):n?s=[]:l.disable())},l={add:function(){if(s){var r=s.length;!function t(n){h.each(n,(function(n,r){var i=h.type®;“function”===i?e.unique&&l.has®||s.push®:r&&r.length&&“string”!==i&&t®}))}(arguments),t?i=s.length:n&&(a=r,u(n))}return this},remove:function(){return s&&h.each(arguments,(function(e,n){for(var r;(r=h.inArray(n,s,r))>-1;)s.splice(r,1),t&&(r<=i&&i–,r<=o&&o–)})),this},has:function(e){return e?h.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],i=0,this},disable:function(){return s=c=n=void 0,this},disabled:function(){return!s},lock:function(){return c=void 0,n||l.disable(),this},locked:function(){return!c},fireWith:function(e,n){return!s||r&&!c||(n=[e,(n=n||).slice?n.slice():n],t?c.push(n):u(n)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},h.extend({Deferred:function(e){var t=[[“resolve”,“done”,h.Callbacks(“once memory”),“resolved”],[“reject”,“fail”,h.Callbacks(“once memory”),“rejected”],],n=“pending”,r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return h.Deferred((function(n){h.each(t,(function(t,o){var a=h.isFunction(e)&&e;i[o]((function(){var e=a&&a.apply(this,arguments);e&&h.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o+“With”](this===r?n.promise():this,a?:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?h.extend(e,r):r}},i={};return r.pipe=r.then,h.each(t,(function(e,o){var a=o,s=o;r[o]=a.add,s&&a.add((function(){n=s}),t[2].disable,t[2].lock),i[o]=function(){return i[o+“With”](this===i?r:this,arguments),this},i[o+“With”]=a.fireWith})),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=a.call(arguments),s=o.length,c=1!==s||e&&h.isFunction(e.promise)?s:0,u=1===c?e:h.Deferred(),l=function(e,n,r){return function(i){n=this,r=arguments.length>1?a.call(arguments):i,r===t?u.notifyWith(n,r):–c||u.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);i&&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.length,e):void 0===t?this:this.each((function(){var n=h.queue(this,e,t);h._queueHooks(this,e),“fx”===e&&“inprogress”!==n&&h.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){h.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||“fx”,[])},promise:function(e,t){var n,r=1,i=h.Deferred(),o=this,a=this.length,s=function(){–r||i.resolveWith(o,)};for(“string”!=typeof e&&(t=e,e=void 0),e=e||“fx”;a–;)(n=h._data(o,e+“queueHooks”))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var z=/?(?:d*.|)d+(?:[+-]?d+|)/.source,U=,q=function(e,t){return e=t||e,“none”===h.css(e,“display”)||!h.contains(e.ownerDocument,e)},V=h.access=function(e,t,n,r,i,o,a){var s=0,c=e.length,u=null==n;if(“object”===h.type(n))for(s in i=!0,n)h.access(e,t,s,n,!0,o,a);else if(void 0!==r&&(i=!0,h.isFunction®||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(h(e),n)})),t))for(;s,n,a?r:r.call(e,s,t(e,n)));return i?e:u?t.call(e):c?t(e,n):o},$=/^(?:checkbox|radio)$/i;!function(){var e=D.createElement(“input”),t=D.createElement(“div”),n=D.createDocumentFragment();if(t.innerHTML=“ <link/><table></table><a href='/a'>a</a><input type='checkbox'/>”,f.leadingWhitespace=3===t.firstChild.nodeType,f.tbody=!t.getElementsByTagName(“tbody”).length,f.htmlSerialize=!!t.getElementsByTagName(“link”).length,f.html5Clone=“<:nav></:nav>”!==D.createElement(“nav”).cloneNode(!0).outerHTML,e.type=“checkbox”,e.checked=!0,n.appendChild(e),f.appendChecked=e.checked,t.innerHTML=“<textarea>x</textarea>”,f.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML=“<input type='radio' checked='checked' name='t'/>”,f.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,f.noCloneEvent=!0,t.attachEvent&&(t.attachEvent(“onclick”,(function(){f.noCloneEvent=!1})),t.cloneNode(!0).click()),null==f.deleteExpando){f.deleteExpando=!0;try{delete t.test}catch(e){f.deleteExpando=!1}}}(),function(){var e,t,r=D.createElement(“div”);for(e in{submit:!0,change:!0,focusin:!0})t=“on”+e,(f=t in n)||(r.setAttribute(t,“t”),f=!1===r.attributes.expando);r=null}();var G=/^(?:input|select|textarea)$/i,K=/^key/,J=/^(?:mouse|pointer|contextmenu)|click/,Q=/^(?:focusinfocus|focusoutblur)$/,Z=/^(*)(?:.(.+)|)$/;function X(){return!0}function ee(){return!1}function te(){try{return D.activeElement}catch(e){}}function ne(e){var t=re.split(“|”),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}h.event={global:{},add:function(e,t,n,r,i){var o,a,s,c,u,l,d,p,f,m,_,v=h._data(e);if(v){for(n.handler&&(n=(c=n).handler,i=c.selector),n.guid||(n.guid=h.guid++),(a=v.events)||(a=v.events={}),(l=v.handle)||((l=v.handle=function(e){return void 0===h||e&&h.event.triggered===e.type?void 0:h.event.dispatch.apply(l.elem,arguments)}).elem=e),s=(t=(t||“”).match(P)||).length;s–;)f=_=(o=Z.exec(t)||[])[1],m=(o||“”).split(“.”).sort(),f&&(u=h.event.special||{},f=(i?u.delegateType:u.bindType)||f,u=h.event.special||{},d=h.extend({type:f,origType:_,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&h.expr.match.needsContext.test(i),namespace:m.join(“.”)},c),(p=a)||((p=a=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,m,l)||(e.addEventListener?e.addEventListener(f,l,!1):e.attachEvent&&e.attachEvent(“on”+f,l))),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,d):p.push(d),h.event.global=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,c,u,l,d,p,f,m,_,v=h.hasData(e)&&h._data(e);if(v&&(l=v.events)){for(u=(t=(t||“”).match(P)||).length;u–;)if(f=_=(s=Z.exec(t)||[])[1],m=(s||“”).split(“.”).sort(),f){for(d=h.event.special||{},p=l||[],s=s&&new RegExp(“(^|\.)”+m.join(“\.(?:.*\.|)”)+“(\.|$)”),c=o=p.length;o–;)a=p,!i&&_!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&(“**”!==r||!a.selector)||(p.splice(o,1),a.selector&&p.delegateCount–,d.remove&&d.remove.call(e,a));c&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,m,v.handle)||h.removeEvent(e,f,v.handle),delete l)}else for(f in l)h.event.remove(e,f+t,n,r,!0);h.isEmptyObject(l)&&(delete v.handle,h._removeData(e,“events”))}},trigger:function(e,t,r,i){var o,a,s,c,u,l,d,f=,m=p.call(e,“type”)?e.type:e,_=p.call(e,“namespace”)?e.namespace.split(“.”):[];if(s=l=r=r||D,3!==r.nodeType&&8!==r.nodeType&&!Q.test(m+h.event.triggered)&&(m.indexOf(“.”)>=0&&(_=m.split(“.”),m=_.shift(),_.sort()),a=m.indexOf(“:”)<0&&"on"+m,(e=e?e:new h.Event(m,“object”==typeof e&&e)).isTrigger=i?2:3,e.namespace=_.join(“.”),e.namespace_re=e.namespace?new RegExp(“(^|\.)”+_.join(“\.(?:.*\.|)”)+“(\.|$)”):null,e.result=void 0,e.target||(e.target=r),t=null==t?:h.makeArray(t,),u=h.event.special||{},i||!u.trigger||!1!==u.trigger.apply(r,t))){if(!i&&!u.noBubble&&!h.isWindow®){for(c=u.delegateType||m,Q.test(c+m)||(s=s.parentNode);s;s=s.parentNode)f.push(s),l=s;l===(r.ownerDocument||D)&&f.push(l.defaultView||l.parentWindow||n)}for(d=0;(s=f)&&!e.isPropagationStopped();)e.type=d>1?c:u.bindType||m,(o=(h._data(s,“events”)||{})[e.type]&&h._data(s,“handle”))&&o.apply(s,t),(o=a&&s)&&o.apply&&h.acceptData(s)&&(e.result=o.apply(s,t),!1===e.result&&e.preventDefault());if(e.type=m,!i&&!e.isDefaultPrevented()&&(!u._default||!1===u._default.apply(f.pop(),t))&&h.acceptData®&&a&&r&&!h.isWindow®){(l=r)&&(r=null),h.event.triggered=m;try{r()}catch(e){}h.event.triggered=void 0,l&&(r=l)}return e.result}},dispatch:function(e){e=h.event.fix(e);var t,n,r,i,o,s=[],c=a.call(arguments),u=(h._data(this,“events”)||{})||[],l=h.event.special||{};if(c=e,e.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(s=h.event.handlers.call(this,e,u),t=0;(i=s)&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,o=0;(r=i.handlers)&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0!==(n=((h.event.special||{}).handle||r.handler).apply(i.elem,c))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,c=e.target;if(s&&c.nodeType&&(!e.button||“click”!==e.type))for(;c!=this;c=c.parentNode||this)if(1===c.nodeType&&(!0!==c.disabled||“click”!==e.type)){for(i=,o=0;o<s;o++)void 0===i[n=(r=t).selector+“ ”]&&(i=r.needsContext?h(n,this).index©>=0:h.find(n,this,null,).length),i&&i.push®;i.length&&a.push({elem:c,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e)return e;var t,n,r,i=e.type,o=e,a=this.fixHooks;for(a||(this.fixHooks=a=J.test(i)?this.mouseHooks:K.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new h.Event(o),t=r.length;t–;)e[n=r]=o;return e.target||(e.target=o.srcElement||D),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:“altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which”.split(“ ”),fixHooks:{},keyHooks:{props:“char charCode key keyCode”.split(“ ”),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:“button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement”.split(“ ”),filter:function(e,t){var n,r,i,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(r=e.target.ownerDocument||D).documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==te()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:“focusin”},blur:{trigger:function(){if(this===te()&&this.blur)return this.blur(),!1},delegateType:“focusout”},click:{trigger:function(){if(h.nodeName(this,“input”)&&“checkbox”===this.type&&this.click)return this.click(),!1},_default:function(e){return h.nodeName(e.target,“a”)}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=h.extend(new h.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?h.event.trigger(i,null,t):h.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},h.removeEvent=D.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r=“on”+t;e.detachEvent&&(void 0===e&&(e=null),e.detachEvent(r,n))},h.Event=function(e,t){if(!(this instanceof h.Event))return new h.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?X:ee):this.type=e,t&&h.extend(this,t),this.timeStamp=e&&e.timeStamp||h.now(),this=!0},h.Event.prototype={isDefaultPrevented:ee,isPropagationStopped:ee,isImmediatePropagationStopped:ee,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=X,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=X,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=X,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:“mouseover”,mouseleave:“mouseout”,pointerenter:“pointerover”,pointerleave:“pointerout”},(function(e,t){h.event.special={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||h.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),f.submitBubbles||(h.event.special.submit={setup:function(){if(h.nodeName(this,“form”))return!1;h.event.add(this,“click._submit keypress._submit”,(function(e){var t=e.target,n=h.nodeName(t,“input”)||h.nodeName(t,“button”)?t.form:void 0;n&&!h._data(n,“submitBubbles”)&&(h.event.add(n,“submit._submit”,(function(e){e._submit_bubble=!0})),h._data(n,“submitBubbles”,!0))}))},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&h.event.simulate(“submit”,this.parentNode,e,!0))},teardown:function(){if(h.nodeName(this,“form”))return!1;h.event.remove(this,“._submit”)}}),f.changeBubbles||(h.event.special.change={setup:function(){if(G.test(this.nodeName))return“checkbox”!==this.type&&“radio”!==this.type||(h.event.add(this,“propertychange._change”,(function(e){“checked”===e.originalEvent.propertyName&&(this._just_changed=!0)})),h.event.add(this,“click._change”,(function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),h.event.simulate(“change”,this,e,!0)}))),!1;h.event.add(this,“beforeactivate._change”,(function(e){var t=e.target;G.test(t.nodeName)&&!h._data(t,“changeBubbles”)&&(h.event.add(t,“change._change”,(function(e){!this.parentNode||e.isSimulated||e.isTrigger||h.event.simulate(“change”,this.parentNode,e,!0)})),h._data(t,“changeBubbles”,!0))}))},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||“radio”!==t.type&&“checkbox”!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return h.event.remove(this,“._change”),!G.test(this.nodeName)}}),f.focusinBubbles||h.each({focus:“focusin”,blur:“focusout”},(function(e,t){var n=function(e){h.event.simulate(t,e.target,h.event.fix(e),!0)};h.event.special={setup:function(){var r=this.ownerDocument||this,i=h._data(r,t);i||r.addEventListener(e,n,!0),h._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=h._data(r,t)-1;i?h._data(r,t,i):(r.removeEventListener(e,n,!0),h._removeData(r,t))}}})),h.fn.extend({on:function(e,t,n,r,i){var o,a;if(“object”==typeof e){for(o in“string”!=typeof t&&(n=n||t,t=void 0),e)this.on(o,t,n,e,i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&(“string”==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=ee;else if(!r)return this;return 1===i&&(a=r,(r=function(e){return h().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=h.guid++)),this.each((function(){h.event.add(this,e,r,n,t)}))},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,h(e.delegateTarget).off(r.namespace?r.origType+“.”+r.namespace:r.origType,r.selector,r.handler),this;if(“object”==typeof e){for(i in e)this.off(i,t,e);return this}return!1!==t&&“function”!=typeof t||(n=t,t=void 0),!1===n&&(n=ee),this.each((function(){h.event.remove(this,e,n,t)}))},trigger:function(e,t){return this.each((function(){h.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this;if(n)return h.event.trigger(e,t,n,!0)}});var re=“abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video”,ie=/ jQueryd+=“(?:null|d+)”/g,oe=new RegExp(“<(?:"rei”),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:,”,“”“>col:,”,“”“>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;_)||0===o)if(“object”===h.type(o))h.merge(m,o.nodeType?:o);else if(le.test(o)){for(s=s||p.appendChild(t.createElement(“div”)),c=(ce.exec(o)||)[1].toLowerCase(),l=_e||_e._default,s.innerHTML=l+o.replace(se,“<$1>”)+l,i=l;i–;)s=s.lastChild;if(!f.leadingWhitespace&&ae.test(o)&&m.push(t.createTextNode(ae.exec(o))),!f.tbody)for(i=(o=“table”!==c||ue.test(o)?“

”!==l||ue.test(o)?0:s:s.firstChild)&&o.childNodes.length;i–;)h.nodeName(u=o.childNodes,“tbody”)&&!u.childNodes.length&&o.removeChild(u);for(h.merge(m,s.childNodes),s.textContent=“”;s.firstChild;)s.removeChild(s.firstChild);s=p.lastChild}else m.push(t.createTextNode(o));for(s&&p.removeChild(s),f.appendChecked||h.grep(ge(m,“input”),ye),_=0;o=m;)if((!r||-1===h.inArray(o,r))&&(a=h.contains(o.ownerDocument,o),s=ge(p.appendChild(o),“script”),a&&Oe(s),n))for(i=0;o=s;)fe.test(o.type||“”)&&n.push(o);return s=null,p},cleanData:function(e,t){for(var n,r,i,a,s=0,c=h.expando,u=h.cache,l=f.deleteExpando,d=h.event.special;null!=(n=e);s++)if((t||h.acceptData(n))&&(a=(i=n)&&u)){if(a.events)for(r in a.events)d?h.event.remove(n,r):h.removeEvent(n,r,a.handle);u&&(delete u,l?delete n:void 0!==n.removeAttribute?n.removeAttribute©:n=null,o.push(i))}}}),h.fn.extend({text:function(e){return V(this,(function(e){return void 0===e?h.text(this):this.empty().append((this&&this.ownerDocument||D).createTextNode(e))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||be(this,e).appendChild(e)}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=be(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var n,r=e?h.filter(e,this):this,i=0;null!=(n=r);i++)t||1!==n.nodeType||h.cleanData(ge(n)),n.parentNode&&(t&&h.contains(n.ownerDocument,n)&&Oe(ge(n,“script”)),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this);t++){for(1===e.nodeType&&h.cleanData(ge(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&h.nodeName(e,“select”)&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return h.clone(this,e,t)}))},html:function(e){return V(this,(function(e){var t=this||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ie,“”):void 0;if(“string”==typeof e&&!de.test(e)&&(f.htmlSerialize||!oe.test(e))&&(f.leadingWhitespace||!ae.test(e))&&!_e[(ce.exec(e)||)[1].toLowerCase()]){e=e.replace(se,“<$1></$2>”);try{for(;n||{}).nodeType&&(h.cleanData(ge(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=arguments;return this.domManip(arguments,(function(t){e=this.parentNode,h.cleanData(ge(this)),e&&e.replaceChild(t,this)})),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=s.apply([],e);var n,r,i,o,a,c,u=0,l=this.length,d=this,p=l-1,m=e,_=h.isFunction(m);if(_||l>1&&“string”==typeof m&&!f.checkClone&&pe.test(m))return this.each((function(n){var r=d.eq(n);_&&(e=m.call(this,n,r.html())),r.domManip(e,t)}));if(l&&(n=(c=h.buildFragment(e,this.ownerDocument,!1,this)).firstChild,1===c.childNodes.length&&(c=n),n)){for(i=(o=h.map(ge(c,“script”),we)).length;u,r,u);if(i)for(a=o.ownerDocument,h.map(o,ke),u=0;u,fe.test(r.type||“”)&&!h._data(r,“globalEval”)&&h.contains(a,r)&&(r.src?h._evalUrl&&h._evalUrl(r.src):h.globalEval((r.text||r.textContent||r.innerHTML||“”).replace(me,“”)));c=n=null}return this}}),h.each({appendTo:“append”,prependTo:“prepend”,insertBefore:“before”,insertAfter:“after”,replaceAll:“replaceWith”},(function(e,t){h.fn=function(e){for(var n,r=0,i=[],o=h(e),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),h(o)[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var De,xe,Ee={};function Se(e,t){var r,i=h(t.createElement(e)).appendTo(t.body),o=n.getDefaultComputedStyle&&(r=n.getDefaultComputedStyle(i))?r.display:h.css(i,“display”);return i.detach(),o}function je(e){var t=D,n=Ee;return n||(“none”!==(n=Se(e,t))&&n||((t=((De=(De||h(“<iframe frameborder='0' width='0' height=‘0’/>”)).appendTo(t.documentElement)).contentWindow||De.contentDocument).document).write(),t.close(),n=Se(e,t),De.detach()),Ee=n),n}f.shrinkWrapBlocks=function(){return null!=xe?xe:(xe=!1,(t=D.getElementsByTagName(“body”))&&t.style?(e=D.createElement(“div”),(n=D.createElement(“div”)).style.cssText=“position:absolute;border:0;width:0;height:0;top:0;left:-9999px”,t.appendChild(n).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText=“-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1”,e.appendChild(D.createElement(“div”)).style.width=“5px”,xe=3!==e.offsetWidth),t.removeChild(n),xe):void 0);var e,t,n};var Te,Le,Pe=/^margin/,Ae=new RegExp(“^(”z“)(?!px)+$”,“i”),Ne=/^(top|right|bottom|left)$/;function Ie(e,t){return{get:function(){var n=e();if(null!=n){if(!n)return(this.get=t).apply(this,arguments);delete this.get}}}}n.getComputedStyle?(Te=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},Le=function(e,t,n){var r,i,o,a,s=e.style;return a=(n=n||Te(e))?n.getPropertyValue(t)||n:void 0,n&&(“”!==a||h.contains(e.ownerDocument,e)||(a=h.style(e,t)),Ae.test(a)&&Pe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+“”}):D.documentElement.currentStyle&&(Te=function(e){return e.currentStyle},Le=function(e,t,n){var r,i,o,a,s=e.style;return null==(a=(n=n||Te(e))?n:void 0)&&s&&s&&(a=s),Ae.test(a)&&!Ne.test(t)&&(r=s.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),s.left=“fontSize”===t?“1em”:a,a=s.pixelLeft+“px”,s.left=r,o&&(i.left=o)),void 0===a?a:a+“”||“auto”}),function(){var e,t,r,i,o,a,s;function c(){var e,t,r,c;(t=D.getElementsByTagName(“body”))&&t.style&&(e=D.createElement(“div”),(r=D.createElement(“div”)).style.cssText=“position:absolute;border:0;width:0;height:0;top:0;left:-9999px”,t.appendChild®.appendChild(e),e.style.cssText=“-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute”,i=o=!1,s=!0,n.getComputedStyle&&(i=“1%”!==(n.getComputedStyle(e,null)||{}).top,o=“4px”===(n.getComputedStyle(e,null)||{width:“4px”}).width,(c=e.appendChild(D.createElement(“div”))).style.cssText=e.style.cssText=“-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0”,c.style.marginRight=c.style.width=“0”,e.style.width=“1px”,s=!parseFloat((n.getComputedStyle(c,null)||{}).marginRight)),e.innerHTML=“
t
”,(c=e.getElementsByTagName(“td”)).style.cssText=“margin:0;border:0;padding:0;display:none”,(a=0===c.offsetHeight)&&(c.style.display=“”,c.style.display=“none”,a=0===c.offsetHeight),t.removeChild®)}(e=D.createElement(“div”)).innerHTML=“ <link/><table></table><a href='/a'>a</a><input type=‘checkbox’/>”,(t=(r=e.getElementsByTagName(“a”))&&r.style)&&(t.cssText=“float:left;opacity:.5”,f.opacity=“0.5”===t.opacity,f.cssFloat=!!t.cssFloat,e.style.backgroundClip=“content-box”,e.cloneNode(!0).style.backgroundClip=“”,f.clearCloneStyle=“content-box”===e.style.backgroundClip,f.boxSizing=“”===t.boxSizing||“”===t.MozBoxSizing||“”===t.WebkitBoxSizing,h.extend(f,{reliableHiddenOffsets:function(){return null==a&&c(),a},boxSizingReliable:function(){return null==o&&c(),o},pixelPosition:function(){return null==i&&c(),i},reliableMarginRight:function(){return null==s&&c(),s}}))}(),h.swap=function(e,t,n,r){var i,o,a={};for(o in t)a=e.style,e.style=t;for(o in i=n.apply(e,r||[]),t)e.style=a;return i};var Ye=/alpha(*)/i,Re=/opacitys*=s*(*)/,Fe=/^(none|table(?!-c).+)/,He=new RegExp(“^(”z“)(.*)$”,“i”),We=new RegExp(“^()=(”z“)”,“i”),Be={position:“absolute”,visibility:“hidden”,display:“block”},ze={letterSpacing:“0”,fontWeight:“400”},Ue=;function qe(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Ue.length;i–;)if((t=Ue+n)in e)return t;return r}function Ve(e,t){for(var n,r,i,o=[],a=0,s=e.length;a).style&&(o=h._data(r,“olddisplay”),n=r.style.display,t?(o||“none”!==n||(r.style.display=“”),“”===r.style.display&&q®&&(o=h._data(r,“olddisplay”,je(r.nodeName)))):(i=q®,(n&&“none”!==n||!i)&&h._data(r,“olddisplay”,i?n:h.css(r,“display”))));for(a=0;a).style&&(t&&“none”!==r.style.display&&“”!==r.style.display||(r.style.display=t?o||“”:“none”));return e}function $e(e,t,n){var r=He.exec(t);return r?Math.max(0,r-(n||0))+(r||“px”):t}function Ge(e,t,n,r,i){for(var o=n===(r?“border”:“content”)?4:“width”===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=h.css(e,n+U,!0,i)),r?(“content”===n&&(a-=h.css(e,“padding”+U,!0,i)),“margin”!==n&&(a-=h.css(e,“border”U[o]Width”,!0,i))):(a+=h.css(e,“padding”+U,!0,i),“padding”!==n&&(a+=h.css(e,“border”U[o]“Width”,!0,i)));return a}function Ke(e,t,n){var r=!0,i=“width”===t?e.offsetWidth:e.offsetHeight,o=Te(e),a=f.boxSizing&&“border-box”===h.css(e,“boxSizing”,!1,o);if(i<=0||null==i){if(((i=Le(e,t,o))<0||null==i)&&(i=e.style),Ae.test(i))return i;r=a&&(f.boxSizingReliable()||i===e.style),i=parseFloat(i)||0}return i+Ge(e,t,n||(a?“border”:“content”),r,o)+“px”}function Je(e,t,n,r,i){return new Je.prototype.init(e,t,n,r,i)}h.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Le(e,“opacity”);return“”===n?“1”:n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:f.cssFloat?“cssFloat”:“styleFloat”},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=h.camelCase(t),c=e.style;if(t=h.cssProps||(h.cssProps=qe(c,s)),a=h.cssHooks||h.cssHooks,void 0===n)return a&&“get”in a&&void 0!==(i=a.get(e,!1,r))?i:c;if(“string”==(o=typeof n)&&(i=We.exec(n))&&(n=(i+1)*i+parseFloat(h.css(e,t)),o=“number”),null!=n&&n==n&&(“number”!==o||h.cssNumber||(n+=“px”),f.clearCloneStyle||“”!==n||0!==t.indexOf(“background”)||(c=“inherit”),!a||!(“set”in a)||void 0!==(n=a.set(e,n,r))))try{c=n}catch(e){}}},css:function(e,t,n,r){var i,o,a,s=h.camelCase(t);return t=h.cssProps||(h.cssProps=qe(e.style,s)),(a=h.cssHooks||h.cssHooks)&&“get”in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Le(e,t,r)),“normal”===o&&t in ze&&(o=ze),“”===n||n?(i=parseFloat(o),!0===n||h.isNumeric(i)?i||0:o):o}}),h.each(,(function(e,t){h.cssHooks={get:function(e,n,r){if(n)return Fe.test(h.css(e,“display”))&&0===e.offsetWidth?h.swap(e,Be,(function(){return Ke(e,t,r)})):Ke(e,t,r)},set:function(e,n,r){var i=r&&Te(e);return $e(0,n,r?Ge(e,t,r,f.boxSizing&&“border-box”===h.css(e,“boxSizing”,!1,i),i):0)}}})),f.opacity||(h.cssHooks.opacity={get:function(e,t){return Re.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||“”)?.01*parseFloat(RegExp.$1)+“”:t?“1”:“”},set:function(e,t){var n=e.style,r=e.currentStyle,i=h.isNumeric(t)?“alpha(opacity=”+100*t+“)”:“”,o=r&&r.filter||n.filter||“”;n.zoom=1,(t>=1||“”===t)&&“”===h.trim(o.replace(Ye,“”))&&n.removeAttribute&&(n.removeAttribute(“filter”),“”===t||r&&!r.filter)||(n.filter=Ye.test(o)?o.replace(Ye,i):o+“ ”+i)}}),h.cssHooks.marginRight=Ie(f.reliableMarginRight,(function(e,t){if(t)return h.swap(e,{display:“inline-block”},Le,)})),h.each({margin:“”,padding:“”,border:“Width”},(function(e,t){h.cssHooks={expand:function(n){for(var r=0,i={},o=“string”==typeof n?n.split(“ ”):[n];r<4;r++)i[e+U+t]=o||o||o;return i}},Pe.test(e)||(h.cssHooks.set=$e)})),h.fn.extend({css:function(e,t){return V(this,(function(e,t,n){var r,i,o={},a=0;if(h.isArray(t)){for(r=Te(e),i=t.length;a]=h.css(e,t,!1,r);return o}return void 0!==n?h.style(e,t,n):h.css(e,t)}),e,t,arguments.length>1)},show:function(){return Ve(this,!0)},hide:function(){return Ve(this)},toggle:function(e){return“boolean”==typeof e?e?this.show():this.hide():this.each((function(){q(this)?h(this).show():h(this).hide()}))}}),h.Tween=Je,Je.prototype={constructor:Je,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||“swing”,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(h.cssNumber?“”:“px”)},cur:function(){var e=Je.propHooks;return e&&e.get?e.get(this):Je.propHooks._default.get(this)},run:function(e){var t,n=Je.propHooks;return this.options.duration?this.pos=t=h.easing(e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Je.propHooks._default.set(this),this}},Je.prototype.init.prototype=Je.prototype,Je.propHooks={_default:{get:function(e){var t;return null==e.elem||e.elem.style&&null!=e.elem.style?(t=h.css(e.elem,e.prop,“”))&&“auto”!==t?t:0:e.elem},set:function(e){h.fx.step?h.fx.step(e):e.elem.style&&(null!=e.elem.style[h.cssProps]||h.cssHooks)?h.style(e.elem,e.prop,e.now+e.unit):e.elem=e.now}}},Je.propHooks.scrollTop=Je.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem=e.now)}},h.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},h.fx=Je.prototype.init,h.fx.step={};var Qe,Ze,Xe,et,tt,nt,rt,it=/^(?:toggle|show|hide)$/,ot=new RegExp(“^(?:()=|)(”z“)(*)$”,“i”),at=/queueHooks$/,st=[function(e,t,n){var r,i,o,a,s,c,u,l=this,d={},p=e.style,m=e.nodeType&&q(e),_=h._data(e,“fxshow”);for(r in n.queue||(null==(s=h._queueHooks(e,“fx”)).unqueued&&(s.unqueued=0,c=s.empty.fire,s.empty.fire=function(){s.unqueued||c()}),s.unqueued++,l.always((function(){l.always((function(){s.unqueued–,h.queue(e,“fx”).length||s.empty.fire()}))}))),1===e.nodeType&&(“height”in t||“width”in t)&&(n.overflow=,“inline”===(“none”===(u=h.css(e,“display”))?h._data(e,“olddisplay”)||je(e.nodeName):u)&&“none”===h.css(e,“float”)&&(f.inlineBlockNeedsLayout&&“inline”!==je(e.nodeName)?p.zoom=1:p.display=“inline-block”)),n.overflow&&(p.overflow=“hidden”,f.shrinkWrapBlocks()||l.always((function(){p.overflow=n.overflow,p.overflowX=n.overflow,p.overflowY=n.overflow}))),t)if(i=t,it.exec(i)){if(delete t,o=o||“toggle”===i,i===(m?“hide”:“show”)){if(“show”!==i||!_||void 0===_)continue;m=!0}d=_&&_||h.style(e,r)}else u=void 0;if(h.isEmptyObject(d))“inline”===(“none”===u?je(e.nodeName):u)&&(p.display=u);else for(r in _?“hidden”in _&&(m=_.hidden):_=h._data(e,“fxshow”,{}),o&&(_.hidden=!m),m?h(e).show():l.done((function(){h(e).hide()})),l.done((function(){var t;for(t in h._removeData(e,“fxshow”),d)h.style(e,t,d)})),d)a=dt(m?_:0,r,l),r in _||(_=a.start,m&&(a.end=a.start,a.start=“width”===r||“height”===r?1:0))}],ct={“*”:[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=ot.exec(t),o=i&&i||(h.cssNumber?“”:“px”),a=(h.cssNumber||“px”!==o&&+r)&&ot.exec(h.css(n.elem,e)),s=1,c=20;if(a&&a!==o){o=o||a,i=i||[],a=+r||1;do{a/=s=s||“.5”,h.style(n.elem,e,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&–c)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i?a+(i+1)*i:+i),n}]};function ut(){return setTimeout((function(){Qe=void 0})),Qe=h.now()}function lt(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=U)]=r=e;return t&&(r.opacity=r.width=e),r}function dt(e,t,n){for(var r,i=(ct||[]).concat(ct),o=0,a=i.length;o.call(n,t,e))return r}function pt(e,t,n){var r,i,o=0,a=st.length,s=h.Deferred().always((function(){delete c.elem})),c=function(){if(i)return!1;for(var t=Qe||ut(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o.run®;return s.notifyWith(e,),r<1&&a?n:(s.resolveWith(e,),!1)},u=s.promise({elem:e,props:h.extend({},t),opts:h.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Qe||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=h.Tween(e,u.opts,t,n,u.opts.specialEasing||u.opts.easing);return u.tweens.push®,r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n.run(1);return t?s.resolveWith(e,):s.rejectWith(e,),this}}),l=u.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t,o=e,h.isArray(o)&&(i=o,o=e=o),n!==r&&(e=o,delete e),(a=h.cssHooks)&&“expand”in a)for(n in o=a.expand(o),delete e,o)n in e||(e=o,t=i);else t=i}(l,u.opts.specialEasing);o.call(u,e,l,u.opts))return r;return h.map(l,dt,u),h.isFunction(u.opts.start)&&u.opts.start.call(e,u),h.fx.timer(h.extend(c,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}h.Animation=h.extend(pt,{tweener:function(e,t){h.isFunction(e)?(t=e,e=):e=e.split(“ ”);for(var n,r=0,i=e.length;r,ct=ct||[],ct.unshift(t)},prefilter:function(e,t){t?st.unshift(e):st.push(e)}}),h.speed=function(e,t,n){var r=e&&“object”==typeof e?h.extend({},e):{complete:n||!n&&t||h.isFunction(e)&&e,duration:e,easing:n&&t||t&&!h.isFunction(t)&&t};return r.duration=h.fx.off?0:“number”==typeof r.duration?r.duration:r.duration in h.fx.speeds?h.fx.speeds:h.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue=“fx”),r.old=r.complete,r.complete=function(){h.isFunction(r.old)&&r.old.call(this),r.queue&&h.dequeue(this,r.queue)},r},h.fn.extend({fadeTo:function(e,t,n,r){return this.filter(q).css(“opacity”,0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=h.isEmptyObject(e),o=h.speed(t,n,r),a=function(){var t=pt(this,h.extend({},e),o);(i||h._data(this,“finish”))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return“string”!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||“fx”,[]),this.each((function(){var t=!0,i=null!=e&&e+“queueHooks”,o=h.timers,a=h._data(this);if(i)a&&a.stop&&r(a);else for(i in a)a&&a.stop&&at.test(i)&&r(a);for(i=o.length;i–;)o.elem!==this||null!=e&&o.queue!==e||(o.anim.stop(n),t=!1,o.splice(i,1));!t&&n||h.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||“fx”),this.each((function(){var t,n=h._data(this),r=n,i=n,o=h.timers,a=r?r.length:0;for(n.finish=!0,h.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t–;)o.elem===this&&o.queue===e&&(o.anim.stop(!0),o.splice(t,1));for(t=0;t&&r.finish&&r.finish.call(this);delete n.finish}))}}),h.each(,(function(e,t){var n=h.fn;h.fn=function(e,r,i){return null==e||“boolean”==typeof e?n.apply(this,arguments):this.animate(lt(t,!0),e,r,i)}})),h.each({slideDown:lt(“show”),slideUp:lt(“hide”),slideToggle:lt(“toggle”),fadeIn:{opacity:“show”},fadeOut:{opacity:“hide”},fadeToggle:{opacity:“toggle”}},(function(e,t){h.fn=function(e,n,r){return this.animate(t,e,n,r)}})),h.timers=[],h.fx.tick=function(){var e,t=h.timers,n=0;for(Qe=h.now();n)()||t!==e||t.splice(n–,1);t.length||h.fx.stop(),Qe=void 0},h.fx.timer=function(e){h.timers.push(e),e()?h.fx.start():h.timers.pop()},h.fx.interval=13,h.fx.start=function(){Ze||(Ze=setInterval(h.fx.tick,h.fx.interval))},h.fx.stop=function(){clearInterval(Ze),Ze=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(e,t){return e=h.fx&&h.fx.speeds||e,t=t||“fx”,this.queue(t,(function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout®}}))},(et=D.createElement(“div”)).setAttribute(“className”,“t”),et.innerHTML=“ <link/><table></table><a href='/a'>a</a><input type=‘checkbox’/>”,nt=et.getElementsByTagName(“a”),rt=(tt=D.createElement(“select”)).appendChild(D.createElement(“option”)),Xe=et.getElementsByTagName(“input”),nt.style.cssText=“top:1px”,f.getSetAttribute=“t”!==et.className,f.style=/top/.test(nt.getAttribute(“style”)),f.hrefNormalized=“/a”===nt.getAttribute(“href”),f.checkOn=!!Xe.value,f.optSelected=rt.selected,f.enctype=!!D.createElement(“form”).enctype,tt.disabled=!0,f.optDisabled=!rt.disabled,(Xe=D.createElement(“input”)).setAttribute(“value”,“”),f.input=“”===Xe.getAttribute(“value”),Xe.value=“t”,Xe.setAttribute(“type”,“radio”),f.radioValue=“t”===Xe.value;var ft=/r/g;h.fn.extend({val:function(e){var t,n,r,i=this;return arguments.length?(r=h.isFunction(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,h(this).val()):e)?i=“”:“number”==typeof i?i+=“”:h.isArray(i)&&(i=h.map(i,(function(e){return null==e?“”:e+“”}))),(t=h.valHooks||h.valHooks)&&“set”in t&&void 0!==t.set(this,i,“value”)||(this.value=i))}))):i?(t=h.valHooks||h.valHooks)&&“get”in t&&void 0!==(n=t.get(i,“value”))?n:“string”==typeof(n=i.value)?n.replace(ft,“”):null==n?“”:n:void 0}}),h.extend({valHooks:{option:{get:function(e){var t=h.find.attr(e,“value”);return null!=t?t:h.trim(h.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o=“select-one”===e.type||i<0,a=o?null:[],s=o?i+1:r.length,c=i<0?s:o?i:0;c).selected||c===i)&&(f.optDisabled?!n.disabled:null===n.getAttribute(“disabled”))&&(!n.parentNode.disabled||!h.nodeName(n.parentNode,“optgroup”))){if(t=h(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=h.makeArray(t),a=i.length;a–;)if(r=i,h.inArray(h.valHooks.option.get®,o)>=0)try{r.selected=n=!0}catch(e){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),h.each(,(function(){h.valHooks={set:function(e,t){if(h.isArray(t))return e.checked=h.inArray(h(e).val(),t)>=0}},f.checkOn||(h.valHooks.get=function(e){return null===e.getAttribute(“value”)?“on”:e.value})}));var ht,mt,_t=h.expr.attrHandle,vt=/^(?:checked|selected)$/i,gt=f.getSetAttribute,yt=f.input;h.fn.extend({attr:function(e,t){return V(this,h.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){h.removeAttr(this,e)}))}}),h.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?h.prop(e,t,n):(1===o&&h.isXMLDoc(e)||(t=t.toLowerCase(),r=h.attrHooks||(h.expr.match.bool.test(t)?mt:ht)),void 0===n?r&&“get”in r&&null!==(i=r.get(e,t))?i:null==(i=h.find.attr(e,t))?void 0:i:null!==n?r&&“set”in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+“”),n):void h.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(P);if(o&&1===e.nodeType)for(;n=o;)r=h.propFix||n,h.expr.match.bool.test(n)?yt&>||!vt.test(n)?e=!1:e=e=!1:h.attr(e,n,“”),e.removeAttribute(gt?n:r)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&“radio”===t&&h.nodeName(e,“input”)){var n=e.value;return e.setAttribute(“type”,t),n&&(e.value=n),t}}}}}),mt={set:function(e,t,n){return!1===t?h.removeAttr(e,n):yt&>||!vt.test(n)?e.setAttribute(!gt&&h.propFix||n,n):e=e=!0,n}},h.each(h.expr.match.bool.source.match(/w+/g),(function(e,t){var n=_t||h.find.attr;_t=yt&&gt||!vt.test(t)?function(e,t,r){var i,o;return r||(o=_t,_t=i,i=null!=n(e,t,r)?t.toLowerCase():null,_t=o),i}:function(e,t,n){if(!n)return e?t.toLowerCase():null}})),yt&&gt||(h.attrHooks.value={set:function(e,t,n){if(!h.nodeName(e,“input”))return ht&&ht.set(e,t,n);e.defaultValue=t}}),gt||(ht={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+=“”,“value”===n||t===e.getAttribute(n))return t}},_t.id=_t.name=_t.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&“”!==r.value?r.value:null},h.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:ht.set},h.attrHooks.contenteditable={set:function(e,t,n){ht.set(e,“”!==t&&t,n)}},h.each(,(function(e,t){h.attrHooks={set:function(e,n){if(“”===n)return e.setAttribute(t,“auto”),n}}}))),f.style||(h.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+“”}});var bt=/^(?:input|select|textarea|button|object)$/i,wt=/^(?:a|area)$/i;h.fn.extend({prop:function(e,t){return V(this,h.prop,e,t,arguments.length>1)},removeProp:function(e){return e=h.propFix||e,this.each((function(){try{this=void 0,delete this}catch(e){}}))}}),h.extend({propFix:{for:“htmlFor”,class:“className”},prop:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!h.isXMLDoc(e))&&(t=h.propFix||t,i=h.propHooks),void 0!==n?i&&“set”in i&&void 0!==(r=i.set(e,n,t))?r:e=n:i&&“get”in i&&null!==(r=i.get(e,t))?r:e},propHooks:{tabIndex:{get:function(e){var t=h.find.attr(e,“tabindex”);return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}}}),f.hrefNormalized||h.each(,(function(e,t){h.propHooks={get:function(e){return e.getAttribute(t,4)}}})),f.optSelected||(h.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),h.each(,(function(){h.propFix=this})),f.enctype||(h.propFix.enctype=“encoding”);var kt=//g;h.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0,c=this.length,u=“string”==typeof e&&e;if(h.isFunction(e))return this.each((function(t){h(this).addClass(e.call(this,t,this.className))}));if(u)for(t=(e||“”).match(P)||[];s).nodeType&&(n.className?(“ ”n.className“ ”).replace(kt,“ ”):“ ”)){for(o=0;i=t;)r.indexOf(“ ”i“ ”)<0&&(r+=i+“ ”);a=h.trim®,n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0,c=this.length,u=0===arguments.length||“string”==typeof e&&e;if(h.isFunction(e))return this.each((function(t){h(this).removeClass(e.call(this,t,this.className))}));if(u)for(t=(e||“”).match(P)||[];s).nodeType&&(n.className?(“ ”n.className“ ”).replace(kt,“ ”):“”)){for(o=0;i=t;)for(;r.indexOf(“ ”i“ ”)>=0;)r=r.replace(“ ”i“ ”,“ ”);a=e?h.trim®:“”,n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return“boolean”==typeof t&&“string”===n?t?this.addClass(e):this.removeClass(e):h.isFunction(e)?this.each((function(n){h(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if(“string”===n)for(var t,r=0,i=h(this),o=e.match(P)||[];t=o;)i.hasClass(t)?i.removeClass(t):i.addClass(t);else“undefined”!==n&&“boolean”!==n||(this.className&&h._data(this,“__className__”,this.className),this.className=this.className||!1===e?“”:h._data(this,“__className__”)||“”)}))},hasClass:function(e){for(var t=“ ”e“ ”,n=0,r=this.length;n.nodeType&&(“ ”this[n].className“ ”).replace(kt,“ ”).indexOf(t)>=0)return!0;return!1}}),h.each(“blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu”.split(“ ”),(function(e,t){h.fn=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),h.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,“**”):this.off(t,e||“**”,n)}});var Ot=h.now(),Ct=/?/,Mt=/(,)|()|“(?:[^”\rn]|\|\u{4})*”s*:?|true|false|null|-?(?!0d)d+(?:.d+|)(?:[+-]?d+|)/g;h.parseJSON=function(e){if(n.JSON&&n.JSON.parse)return n.JSON.parse(e+“”);var t,r=null,i=h.trim(e+“”);return i&&!h.trim(i.replace(Mt,(function(e,n,i,o){return t&&n&&(r=0),0===r?e:(t=i||n,r+=!o-!i,“”)})))?Function(“return ”+i)():h.error(“Invalid JSON: ”+e)},h.parseXML=function(e){var t;if(!e||“string”!=typeof e)return null;try{n.DOMParser?t=(new DOMParser).parseFromString(e,“text/xml”):((t=new ActiveXObject(“Microsoft.XMLDOM”)).async=“false”,t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName(“parsererror”).length||h.error(“Invalid XML: ”+e),t};var Dt,xt,Et=/#.*$/,St=/()_=*/,jt=/^(.*?):[ t]*([^rn]*)r?$/gm,Tt=/^(?:GET|HEAD)$/,Lt=/^///,Pt=/^([w.-]:)(?://(?:[^/?#]*@|)([^/?#:]*)(?::(d+)|)|)/,At={},Nt={},It=“*/”.concat(“*”);try{xt=location.href}catch(e){(xt=D.createElement(“a”)).href=“”,xt=xt.href}function Yt(e){return function(t,n){“string”!=typeof t&&(n=t,t=“*”);var r,i=0,o=t.toLowerCase().match(P)||[];if(h.isFunction(n))for(;r=o;)“+”===r.charAt(0)?(r=r.slice(1)||“*”,(e=e||[]).unshift(n)):(e=e||[]).push(n)}}function Rt(e,t,n,r){var i={},o=e===Nt;function a(s){var c;return i=!0,h.each(e||[],(function(e,s){var u=s(t,n,r);return“string”!=typeof u||o||i?o?!(c=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),c}return a(t.dataTypes)||!i&&a(“*”)}function Ft(e,t){var n,r,i=h.ajaxSettings.flatOptions||{};for(r in t)void 0!==t&&((i?e:n||(n={}))[r]=t);return n&&h.extend(!0,e,n),e}Dt=Pt.exec(xt.toLowerCase())||[],h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt,type:“GET”,isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Dt),global:!0,processData:!0,async:!0,contentType:“application/x-www-form-urlencoded; charset=UTF-8”,accepts:{“*”:It,text:“text/plain”,html:“text/html”,xml:“application/xml, text/xml”,json:“application/json, text/javascript”},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:“responseXML”,text:“responseText”,json:“responseJSON”},converters:{“* text”:String,“text html”:!0,“text json”:h.parseJSON,“text xml”:h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,h.ajaxSettings),t):Ft(h.ajaxSettings,e)},ajaxPrefilter:Yt(At),ajaxTransport:Yt(Nt),ajax:function(e,t){“object”==typeof e&&(t=e,e=void 0),t=t||{};var n,r,i,o,a,s,c,u,l=h.ajaxSetup({},t),d=l.context||l,p=l.context&&(d.nodeType||d.jquery)?h(d):h.event,f=h.Deferred(),m=h.Callbacks(“once memory”),_=l.statusCode||{},v={},g={},y=0,b=“canceled”,w={readyState:0,getResponseHeader:function(e){var t;if(2===y){if(!u)for(u={};t=jt.exec(o);)u[t.toLowerCase()]=t;t=u}return null==t?null:t},getAllResponseHeaders:function(){return 2===y?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return y||(e=g=g||e,v=t),this},overrideMimeType:function(e){return y||(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(y<2)for(t in e)_=[_,e];else w.always(e);return this},abort:function(e){var t=e||b;return c&&c.abort(t),k(0,t),this}};if(f.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,l.url=((e||l.url||xt)+“”).replace(Et,“”).replace(Lt,Dt+“//”),l.type=t.method||t.type||l.method||l.type,l.dataTypes=h.trim(l.dataType||“*”).toLowerCase().match(P)||,null==l.crossDomain&&(n=Pt.exec(l.url.toLowerCase()),l.crossDomain=!(!n||n===Dt&&n===Dt&&(n||(“”===n[1]?“80”:“443”))===(Dt[3]||(“http:”===Dt[1]?“80”:“443”)))),l.data&&l.processData&&“string”!=typeof l.data&&(l.data=h.param(l.data,l.traditional)),Rt(At,l,t,w),2===y)return w;for(r in(s=l.global)&&0==h.active++&&h.event.trigger(“ajaxStart”),l.type=l.type.toUpperCase(),l.hasContent=!Tt.test(l.type),i=l.url,l.hasContent||(l.data&&(i=l.url+=(Ct.test(i)?“&”:“?”)+l.data,delete l.data),!1===l.cache&&(l.url=St.test(i)?i.replace(St,“$1_=”Ot+):i+(Ct.test(i)?“&”:“?”)+“_=”Ot+)),l.ifModified&&(h.lastModified&&w.setRequestHeader(“If-Modified-Since”,h.lastModified),h.etag&&w.setRequestHeader(“If-None-Match”,h.etag)),(l.data&&l.hasContent&&!1!==l.contentType||t.contentType)&&w.setRequestHeader(“Content-Type”,l.contentType),w.setRequestHeader(“Accept”,l.dataTypes&&l.accepts[l.dataTypes]?l.accepts[l.dataTypes]+(“*”!==l.dataTypes?“, ”It“; q=0.01”:“”):l.accepts),l.headers)w.setRequestHeader(r,l.headers);if(l.beforeSend&&(!1===l.beforeSend.call(d,w,l)||2===y))return w.abort();for(r in b=“abort”,{success:1,error:1,complete:1})w(l);if(c=Rt(Nt,l,t,w)){w.readyState=1,s&&p.trigger(“ajaxSend”,),l.async&&l.timeout>0&&(a=setTimeout((function(){w.abort(“timeout”)}),l.timeout));try{y=1,c.send(v,k)}catch(e){if(!(y<2))throw e;k(-1,e)}}else k(-1,“No Transport”);function k(e,t,n,r){var u,v,g,b,k,O=t;2!==y&&(y=2,a&&clearTimeout(a),c=void 0,o=r||“”,w.readyState=e>0?4:0,u=e>=200&&e<300||304===e,n&&(b=function(e,t,n){for(var r,i,o,a,s=e.contents,c=e.dataTypes;“*”===c;)c.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader(“Content-Type”));if(i)for(a in s)if(s&&s.test(i)){c.unshift(a);break}if(cin n)o=c;else{for(a in n){if(!c||e.converters[a+“ ”+c]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==c&&c.unshift(o),n}(l,w,n)),b=function(e,t,n,r){var i,o,a,s,c,u={},l=e.dataTypes.slice();if(l)for(a in e.converters)u=e.converters;for(o=l.shift();o;)if(e.responseFields&&(n[e.responseFields]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=l.shift())if(“*”===o)o=c;else if(“*”!==c&&c!==o){if(!(a=u[c+“ ”+o]||u[“* ”+o]))for(i in u)if((s=i.split(“ ”))[1]===o&&(a=u[c+“ ”+s]||u[“* ”+s])){!0===a?a=u:!0!==u&&(o=s,l.unshift(s));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:“parsererror”,error:a?e:“No conversion from ”c“ to ”+o}}}return{state:“success”,data:t}}(l,b,w,u),u?(l.ifModified&&((k=w.getResponseHeader(“Last-Modified”))&&(h.lastModified=k),(k=w.getResponseHeader(“etag”))&&(h.etag=k)),204===e||“HEAD”===l.type?O=“nocontent”:304===e?O=“notmodified”:(O=b.state,v=b.data,u=!(g=b.error))):(g=O,!e&&O||(O=“error”,e<0&&(e=0))),w.status=e,w.statusText=(t||O)+"",u?f.resolveWith(d,):f.rejectWith(d,),w.statusCode(_),_=void 0,s&&p.trigger(u?“ajaxSuccess”:“ajaxError”,),m.fireWith(d,),s&&(p.trigger(“ajaxComplete”,),–h.active||h.event.trigger(“ajaxStop”)))}return w},getJSON:function(e,t,n){return h.get(e,t,n,“json”)},getScript:function(e,t){return h.get(e,void 0,t,“script”)}}),h.each(,(function(e,t){h=function(e,n,r,i){return h.isFunction(n)&&(i=i||r,r=n,n=void 0),h.ajax({url:e,type:t,dataType:i,data:n,success:r})}})),h.each(,(function(e,t){h.fn=function(e){return this.on(t,e)}})),h._evalUrl=function(e){return h.ajax({url:e,type:“GET”,dataType:“script”,async:!1,global:!1,throws:!0})},h.fn.extend({wrapAll:function(e){if(h.isFunction(e))return this.each((function(t){h(this).wrapAll(e.call(this,t))}));if(this){var t=h(e,this.ownerDocument).eq(0).clone(!0);this.parentNode&&t.insertBefore(this),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return h.isFunction(e)?this.each((function(t){h(this).wrapInner(e.call(this,t))})):this.each((function(){var t=h(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=h.isFunction(e);return this.each((function(n){h(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){h.nodeName(this,“body”)||h(this).replaceWith(this.childNodes)})).end()}}),h.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!f.reliableHiddenOffsets()&&“none”===(e.style&&e.style.display||h.css(e,“display”))},h.expr.filters.visible=function(e){return!h.expr.filters.hidden(e)};var Ht=/%20/g,Wt=/$/,Bt=/r?n/g,zt=/^(?:submit|button|image|reset|file)$/i,Ut=/^(?:input|select|textarea|keygen)/i;function qt(e,t,n,r){var i;if(h.isArray(t))h.each(t,(function(t,i){n||Wt.test(e)?r(e,i):qt(e+“[”+(“object”==typeof i?t:“”)+“]”,i,n,r)}));else if(n||“object”!==h.type(t))r(e,t);else for(i in t)qt(e+“[”i“]”,t,n,r)}h.param=function(e,t){var n,r=[],i=function(e,t){t=h.isFunction(t)?t():null==t?“”:t,r=encodeURIComponent(e)+“=”+encodeURIComponent(t)};if(void 0===t&&(t=h.ajaxSettings&&h.ajaxSettings.traditional),h.isArray(e)||e.jquery&&!h.isPlainObject(e))h.each(e,(function(){i(this.name,this.value)}));else for(n in e)qt(n,e,t,i);return r.join(“&”).replace(Ht,“+”)},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=h.prop(this,“elements”);return e?h.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!h(this).is(“:disabled”)&&Ut.test(this.nodeName)&&!zt.test(e)&&(this.checked||!$.test(e))})).map((function(e,t){var n=h(this).val();return null==n?null:h.isArray(n)?h.map(n,(function(e){return{name:t.name,value:e.replace(Bt,“rn”)}})):{name:t.name,value:n.replace(Bt,“rn”)}})).get()}}),h.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Kt()||function(){try{return new n.ActiveXObject(“Microsoft.XMLHTTP”)}catch(e){}}()}:Kt;var Vt=0,$t={},Gt=h.ajaxSettings.xhr();function Kt(){try{return new n.XMLHttpRequest}catch(e){}}n.ActiveXObject&&h(n).on(“unload”,(function(){for(var e in $t)$t(void 0,!0)})),f.cors=!!Gt&&“withCredentials”in Gt,(Gt=f.ajax=!!Gt)&&h.ajaxTransport((function(e){var t;if(!e.crossDomain||f.cors)return{send:function(n,r){var i,o=e.xhr(),a=++Vt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o=e.xhrFields;for(i in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n||(n=“XMLHttpRequest”),n)void 0!==n&&o.setRequestHeader(i,n+“”);o.send(e.hasContent&&e.data||null),t=function(n,i){var s,c,u;if(t&&(i||4===o.readyState))if(delete $t,t=void 0,o.onreadystatechange=h.noop,i)4!==o.readyState&&o.abort();else{u={},s=o.status,“string”==typeof o.responseText&&(u.text=o.responseText);try{c=o.statusText}catch(e){c=“”}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=u.text?200:404}u&&r(s,c,u,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=$t=t:t()},abort:function(){t&&t(void 0,!0)}}})),h.ajaxSetup({accepts:{script:“text/javascript, application/javascript, application/ecmascript, application/x-ecmascript”},contents:{script:/(?:java|ecma)script/},converters:{“text script”:function(e){return h.globalEval(e),e}}}),h.ajaxPrefilter(“script”,(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type=“GET”,e.global=!1)})),h.ajaxTransport(“script”,(function(e){if(e.crossDomain){var t,n=D.head||h(“head”)||D.documentElement;return{send:function(r,i){(t=D.createElement(“script”)).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,“success”))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}));var Jt=[],Qt=/(=)?(?=&|$)|??/;h.ajaxSetup({jsonp:“callback”,jsonpCallback:function(){var e=Jt.pop()||h.expando+“_”Ot+;return this=!0,e}}),h.ajaxPrefilter(“json jsonp”,(function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Qt.test(e.url)?“url”:“string”==typeof e.data&&!(e.contentType||“”).indexOf(“application/x-www-form-urlencoded”)&&Qt.test(e.data)&&“data”);if(s||“jsonp”===e.dataTypes)return i=e.jsonpCallback=h.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e=e.replace(Qt,“$1”+i):!1!==e.jsonp&&(e.url+=(Ct.test(e.url)?“&”:“?”)e.jsonp“=”+i),e.converters[“script json”]=function(){return a||h.error(i+“ was not called”),a},e.dataTypes=“json”,o=n,n=function(){a=arguments},r.always((function(){n=o,e&&(e.jsonpCallback=t.jsonpCallback,Jt.push(i)),a&&h.isFunction(o)&&o(a),a=o=void 0})),“script”})),h.parseHTML=function(e,t,n){if(!e||“string”!=typeof e)return null;“boolean”==typeof t&&(n=t,t=!1),t=t||D;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r)]:(r=h.buildFragment(,t,i),i&&i.length&&h(i).remove(),h.merge([],r.childNodes))};var Zt=h.fn.load;h.fn.load=function(e,t,n){if(“string”!=typeof e&&Zt)return Zt.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(“ ”);return s>=0&&(r=h.trim(e.slice(s,e.length)),e=e.slice(0,s)),h.isFunction(t)?(n=t,t=void 0):t&&“object”==typeof t&&(o=“POST”),a.length>0&&h.ajax({url:e,type:o,dataType:“html”,data:t}).done((function(e){i=arguments,a.html(r?h(“<div>”).append(h.parseHTML(e)).find®:e)})).complete(n&&function(e,t){a.each(n,i||)}),this},h.expr.filters.animated=function(e){return h.grep(h.timers,(function(t){return e===t.elem})).length};var Xt=n.document.documentElement;function en(e){return h.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}h.offset={setOffset:function(e,t,n){var r,i,o,a,s,c,u=h.css(e,“position”),l=h(e),d={};“static”===u&&(e.style.position=“relative”),s=l.offset(),o=h.css(e,“top”),c=h.css(e,“left”),(“absolute”===u||“fixed”===u)&&h.inArray(“auto”,)>-1?(a=(r=l.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat©||0),h.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),“using”in t?t.using.call(e,d):l.css(d)}},h.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){h.offset.setOffset(this,e,t)}));var t,n,r={top:0,left:0},i=this,o=i&&i.ownerDocument;return o?(t=o.documentElement,h.contains(t,i)?(void 0!==i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=en(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r):void 0},position:function(){if(this){var e,t,n={top:0,left:0},r=this;return“fixed”===h.css(r,“position”)?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),h.nodeName(e,“html”)||(n=e.offset()),n.top+=h.css(e,“borderTopWidth”,!0),n.left+=h.css(e,“borderLeftWidth”,!0)),{top:t.top-n.top-h.css(r,“marginTop”,!0),left:t.left-n.left-h.css(r,“marginLeft”,!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||Xt;e&&!h.nodeName(e,“html”)&&“static”===h.css(e,“position”);)e=e.offsetParent;return e||Xt}))}}),h.each({scrollLeft:“pageXOffset”,scrollTop:“pageYOffset”},(function(e,t){var n=/Y/.test(t);h.fn=function®{return V(this,(function(e,r,i){var o=en(e);if(void 0===i)return o?t in o?o:o.document.documentElement:e;o?o.scrollTo(n?h(o).scrollLeft():i,n?i:h(o).scrollTop()):e=i}),e,r,arguments.length,null)}})),h.each(,(function(e,t){h.cssHooks=Ie(f.pixelPosition,(function(e,n){if(n)return n=Le(e,t),Ae.test(n)?h(e).position()+“px”:n}))})),h.each({Height:“height”,Width:“width”},(function(e,t){h.each({padding:“inner”+e,content:t,“”:“outer”+e},(function(n,r){h.fn=function(r,i){var o=arguments.length&&(n||“boolean”!=typeof r),a=n||(!0===r||!0===i?“margin”:“border”);return V(this,(function(t,n,r){var i;return h.isWindow(t)?t.document.documentElement:9===t.nodeType?(i=t.documentElement,Math.max(t.body,i,t.body,i,i)):void 0===r?h.css(t,n,a):h.style(t,n,r,a)}),t,o?r:void 0,o,null)}}))})),h.fn.size=function(){return this.length},h.fn.andSelf=h.fn.addBack,void 0===(r=function(){return h}.apply(t,[]))||(e.exports=r);var tn=n.jQuery,nn=n.$;return h.noConflict=function(e){return n.$===h&&(n.$=nn),e&&n.jQuery===h&&(n.jQuery=tn),h},void 0===i&&(n.jQuery=n.$=h),h},“object”==typeof e.exports?e.exports=i.document?o(i,!0):function(e){if(!e.document)throw new Error(“jQuery requires a window with a document”);return o(e)}:o(i)},function(e,t){},,function(e,t,n){“use strict”;n.r(t),n.d(t,“INITIALLY_SELECT”,(function(){return r})),n.d(t,“TOGGLE_SELECT”,(function(){return i})),n.d(t,“DESELECT_OBJS”,(function(){return o})),n.d(t,“CHANGE_SELECTION_MODE”,(function(){return a})),n.d(t,“SINGLE_SELECTION_MODE”,(function(){return s})),n.d(t,“MULTI_SELECTION_MODE”,(function(){return c})),n.d(t,“setInitiallySelectedObjIds”,(function(){return u})),n.d(t,“toggleSelect”,(function(){return l})),n.d(t,“changeSelectionMode”,(function(){return d})),n.d(t,“deselectObjs”,(function(){return p}));var r=“INITIALLY_SELECT”,i=“TOGGLE_SELECT”,o=“DESELECT_OBJS”,a=“CHANGE_SELECTION_MODE”,s=“single”,c=“multi”;function u(e){return{type:r,objIds:e}}function l(e){return{type:i,objId:e}}function d(e){return{type:a,mode:e}}function p(){return{type:o}}},function(e,t){},function(e,t,n){“use strict”;var r=n(185),i=r.stringify,o={},a=r.struct({message:r.Any,actual:r.Any,expected:r.Any,path:r.list(r.union())},“ValidationError”);function s(e,t,n,o){return r.Function.is(t.getValidationErrorMessage)?t.getValidationErrorMessage(e,n,o):function(e,t,n){var o=r.getTypeName(t),a=n.length?“/”+n.join(“/”)+“: ”+o:o;return“Invalid value ”+i(e)+“ supplied to ”+a}(e,t,n)}a.of=function(e,t,n,r){return new a({message:s(e,t,n,r),actual:e,expected:t,path:n})};var c=r.struct({errors:r.list(a),value:r.Any},“ValidationResult”);function u(e,t,n){n=n||{};var i=r.Array.is(n)?n:n.path||[];return new c(l(e,t,i,n))}function l(e,t,n,i){return r.isType(t)?d(e,t,n,i):d.es6classes(e,t,n,i)}c.prototype.isValid=function(){return!this.errors.length},c.prototype.firstError=function(){return this.isValid()?null:this.errors},c.prototype.toString=function(){return this.isValid()?“[ValidationResult, true, ”+i(this.value)+“]”:“[ValidationResult, false, (”+this.errors.map((function(e){return i(e.message)})).join(“, ”)+“)]”};var d=u.validators={};d.es6classes=function(e,t,n,r){return{value:e,errors:e instanceof t?[]:}},d.irreducible=d.enums=function(e,t,n,r){return{value:e,errors:t.is(e)?[]:}},d.list=function(e,t,n,i){if(!r.Array.is(e))return{value:e,errors:};for(var o={value:[],errors:},s=0,c=e.length;s<c;s++){var u=l(e,t.meta.type,n.concat(s),i);o.value=u.value,o.errors=o.errors.concat(u.errors)}return o},d.subtype=function(e,t,n,r){var i=l(e,t.meta.type,n,r);return i.errors.length||t.meta.predicate(i.value)||(i.errors=),i},d.maybe=function(e,t,n,i){return r.Nil.is(e)?{value:e,errors:[]}:l(e,t.meta.type,n,i)},d.struct=function(e,t,n,i){if(!r.Object.is(e))return{value:e,errors:};if(t.is(e))return{value:e,errors:[]};var s={value:{},errors:[]},c=t.meta.props,u=t.meta.defaultProps||o;for(var d in c)if(c.hasOwnProperty(d)){var p=e;void 0===p&&(p=u);var f=l(p,c,n.concat(d),i);s.value=f.value,s.errors=s.errors.concat(f.errors)}if(i.hasOwnProperty(“strict”)?i.strict:t.meta.strict)for(var h in e)e.hasOwnProperty(h)&&!c.hasOwnProperty(h)&&s.errors.push(a.of(e,r.Nil,n.concat(h),i.context));return s.errors.length||(s.value=new t(s.value)),s},d.tuple=function(e,t,n,i){var o=t.meta.types,s=o.length;if(!r.Array.is(e)||e.length>s)return{value:e,errors:};for(var c={value:[],errors:},u=0;u<s;u++){var d=l(e,o,n.concat(u),i);c.value=d.value,c.errors=c.errors.concat(d.errors)}return c},d.dict=function(e,t,n,i){if(!r.Object.is(e))return{value:e,errors:};var o={value:{},errors:[]};for(var s in e)if(e.hasOwnProperty(s)){var c=n.concat(s),u=l(s,t.meta.domain,c,i),d=l(e,t.meta.codomain,c,i);o.value=d.value,o.errors=o.errors.concat(u.errors,d.errors)}return o},d.union=function(e,t,n,i){var o=t.dispatch(e);return r.Function.is(o)?l(e,o,n.concat(t.meta.types.indexOf(o)),i):{value:e,errors:}},d.intersection=function(e,t,n,r){for(var i=t.meta.types,o=i.length,s={value:e,errors:[]},c=0,u=0;u.meta.kind&&c++;var d=l(e,i,n,r);s.errors=s.errors.concat(d.errors)}return c>1&&s.errors.push(a.of(e,t,n,r.context)),s},d.interface=function(e,t,n,i){if(!r.Object.is(e))return{value:e,errors:};var o={value:{},errors:[]},s=t.meta.props;for(var c in s){var u=l(e,s,n.concat©,i);o.value=u.value,o.errors=o.errors.concat(u.errors)}if(i.hasOwnProperty(“strict”)?i.strict:t.meta.strict)for(var d in e)s.hasOwnProperty(d)||r.Nil.is(e)||o.errors.push(a.of(e,r.Nil,n.concat(d),i.context));return o},r.mixin(r,{ValidationError:a,ValidationResult:c,validate:u}),e.exports=r},function(e,t,n){“use strict”;n.d(t,“b”,(function(){return c})),n.d(t,“a”,(function(){return u}));var r=n(0),i=n(3),o=n(51),a=n(25),s=function(){return(s=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 c(e,t){return void 0===t&&(t={}),p(e),l(e,{origin:t.origin||Object(a.a)(),query:t.query,hash:t.hash})}function u(e,t){return p(e),l(e,t)}function l(e,t){return e instanceof i.BasicLink?function(e,t){void 0===t&&(t={});if(e.isExternal())return e.url();var n=e.obj();if(!n)throw new r.a(“Missing link target.”);var i=s({},t);t.queryParameters||“string”==typeof t.query||(i.query=e.query()||void 0);“string”!=typeof t.hash&&(i.hash=e.hash()||void 0);return d(n,i)}(e,t):e instanceof i.Binary?f(e):d(e,t)}function d(e,t){return Object(o.a)(e)?function(e,t){var n=e.get(“blob”,);if(n)return f(n);return h(e,t)}(e,t):h(e,t)}function p(e){if(!e)throw new r.a(“Missing target.”);if(!(e instanceof i.BasicLink||e instanceof i.BasicObj||e instanceof i.Binary))throw new r.a(“Target is invalid. Valid targets are instances of Obj or Link.”)}function f(e){return e.url()}function h(e,t){void 0===t&&(t={});var n=t.origin,r=t.query,o=t.queryParameters,s=t.hash,c=o||r&&Object(i.parseQuery)®||void 0;return Object(a.c)({obj:e,origin:n,queryParameters:c,hash:s})}},function(e,t,n){“use strict”;n.r(t),n.d(t,“CREATE_OBJ_START”,(function(){return u})),n.d(t,“CREATE_OBJ_FINISH”,(function(){return l})),n.d(t,“CREATE_OBJ_FAILED”,(function(){return d})),n.d(t,“DELETE_OBJ_FINISH”,(function(){return p})),n.d(t,“createObjStart”,(function(){return f})),n.d(t,“createObjFinish”,(function(){return h})),n.d(t,“createObjFailed”,(function(){return m})),n.d(t,“objDeleted”,(function(){return _})),n.d(t,“createObj”,(function(){return v}));var r=n(0),i=n(2),o=n(88),a=n(125),s=n(19),c=n(83),u=“CREATE_OBJ_START”,l=“CREATE_OBJ_FINISH”,d=“CREATE_OBJ_FAILED”,p=“DELETE_OBJ_FINISH”;function f(e,t){return{type:u,additionId:e,filename:t,progress:10}}function h(e,t,n){return{type:l,additionId:e,objId:t,isLastAddedVisible:n}}function m(e,t){return{type:d,additionId:e,message:t}}function _(e){return scrivito.delete_obj(e),{type:p,objId:e}}function v(e){var t=e.restrictedPreset,n=e.basePreset,u=e.preset,l=e.activeTags,d=e.upload;return function(e,p){var _,v;_=t?new r.j((function(e){return e(d?Object(a.a)(d):s.a.get(u._obj_class).createObjWithDefaults({}))})):function(e){var t=e.basePreset,n=e.preset,r=e.activeTags,a=e.upload,s={};if(a){var c=scrivito.default_obj_class_for_content_type(a.type);s={blob:a,_obj_class:c}}var u=function(e,t){if(t&&t.length>0&&scrivito.hasTagsAttribute(e))return{tags:t}}(Object(i.find)(Object(i.pluck)(,“_obj_class”)),r)||{},l=Object(i.extend)({},t,u,n,s);return Object(o.a)(l)}({basePreset:n,preset:u,activeTags:l,upload:d}),d&&(v=d.name);var g=Object(i.uniqueId)(“addition”);return e(f(g,v)),_.then((function(t){var n=p().objSource.activeSource===c.LAST_ADDED;e(h(g,t.id(),n))})).catch((function(t){scrivito.displayError(t),e(m(g,t.message))}))}}},function(e,t,n){“use strict”;var r;function i(e){r=e}function o(){return r?r():null}n.d(t,“b”,(function(){return i})),n.d(t,“a”,(function(){return o}))},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),t.arrayMove=t.sortableHandle=t.sortableElement=t.sortableContainer=t.SortableHandle=t.SortableElement=t.SortableContainer=void 0;var r=n(158);Object.defineProperty(t,“arrayMove”,{enumerable:!0,get:function(){return r.arrayMove}});var i=s(n(556)),o=s(n(644)),a=s(n(645));function s(e){return e&&e.__esModule?e:{default:e}}t.SortableContainer=i.default,t.SortableElement=o.default,t.SortableHandle=a.default,t.sortableContainer=i.default,t.sortableElement=o.default,t.sortableHandle=a.default},function(e,t){e.exports=function(e){return e.displayName||e.name||“<function”e.length“>”}},function(e,t,n){var r=n(21),i=n(29);e.exports=function(e,t){r(!(e instanceof t),(function(){return“Cannot use the new operator to instantiate the type ”+i(t)}))}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){“use strict”;n.d(t,“a”,(function(){return u})),n.d(t,“b”,(function(){return l}));var r=n(109),i=n(32),o=n(24),a=n(0),s=n(10),c=n(3);function u(e,t){return l(Object(c.currentWorkspaceId)(),e,t)}function l(e,t,n){var u=c.BasicObj.getIncludingDeletedInWorkspace(e,t);if(null!==u){var l,d=u.widget(n);if(null!==d)return function(e){var t=Object(s.f)(Object(o.a)(),e),n=e.objClass();return Object(r.a)(n,“titleForContent”,t)}(d)||(l=d.objClass(),Object(i.a)(l,“title”)||Object(a.N)(l))}}},function(e,t,n){“use strict”;n.d(t,“a”,(function(){return c}));var r=n(12),i=n(3),o=n(59),a=n(25),s=/bobjid:{16}b*/g;function c(e){return e.replace(s,(function(e){return function(e){var t,n,s=e.slice(6,22),c=i.BasicObj.get(s);c?(t=r(Object(o.a)©),n=a.e(t)):(t=a.b({path:s}),n=!0);if(n){var u=r(e);t.query(u.query()).hash(u.hash())}return t}(e).toString()}))}},function(e,t,n){var r; /*!

Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames

*/!function(){“use strict”;var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments;if®{var o=typeof r;if(“string”===o||“number”===o)e.push®;else if(Array.isArray®&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if(“object”===o)for(var s in r)n.call(r,s)&&r&&e.push(s)}}return e.join(“ ”)}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){“use strict”;n.d(t,“a”,(function(){return p})),n.d(t,“b”,(function(){return f}));var r=n(2),i=n(3),o=n(0),a=n(77),s=n(24),c=n(61),u=n(10),l=n(5),d=n(35);function p(e){if(!(e instanceof i.BasicObj))throw new o.a(“Parameter obj needs to be a BasicObj.”);if(function(e){var t=Object(l.loadableWithDefault)(null,c.a);if(!t)return!1;return t.id()===e.id()}(e))return“/”;var t=e.permalink();if(t){if(!Object(d.f)())return h(e,t);if(Object(d.a)(“routing-related API (e.g. Scrivito.navigateTo)”),function(e){var t=Object(d.c)(e),n=Object(d.b)();return!t||t===n}(e))return h(e,t)}var n=function(e){var t=Object(s.a)(),n=Object(u.f)(t,e);if(function(e){var t=e;return t.slug&&“function”==typeof t.slug}(n)){var r=n.slug();if(“string”==typeof r)return r}}(e);return n?“/”n“-”+e.id():“/”+e.id()}function f(e){var t=e.replace(new RegExp(“^/+|/+$”,“g”),“”);if(“”===t)return Object(c.a)();var n=function(e){if(e.length<16)return null;if(e.length>16&&“-”!==e.slice(-17,-16))return null;var t=e.slice(-16);if(t.match(//))return null;return t}(t);return n?i.BasicObj.get(n):function(e){var t=a.a(e);if(t)return i.BasicObj.get(t);if(Object(d.f)())return function(e){Object(d.a)(“routing-related API (e.g. Scrivito.currentPage, Scrivito.urlFor)”);var t=Object(d.b)(),n=i.BasicObj.getAllByPermalink(e);return Object(r.find)(n,(function(e){var n=Object(d.c)(e);return!n||n===t}))||null}(e);return i.BasicObj.getByPermalink(e)}(t)}function h(e,t){return a.b(e.id(),t),“/”+t}},function(e,t){e.exports=function(e){return“string”==typeof e}},function(e,t){e.exports=function(e){return!0===e||!1===e}},function(e,t,n){var r=n(36),i=n(33);e.exports=r(“Function”,i)},,function(e,t,n){“use strict”;t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var n=0,r=e.length;n===t)return n;return-1},t.escapeExpression=function(e){if(“string”!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return“”;if(!e)return e+“”;e=“”+e}if(!o.test(e))return e;return e.replace(i,a)},t.isEmpty=function(e){return!e&&0!==e||!(!l(e)||0!==e.length)},t.createFrame=function(e){var t=s({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+“.”:“”)+t};var r={“&”:“&amp;”,“<”:“&lt;”,“>”:“&gt;”,'“':”&quot;“,”'“:”&#x27;“,”`“:”&#x60;“,”=“:”&#x3D;“},”’`=“>g,o=//;function a(e){return r}function s(e){for(var t=1;t<arguments.length;t++)for(var n in arguments)Object.prototype.hasOwnProperty.call(arguments,n)&&(e=arguments[n]);return e}var c=Object.prototype.toString;t.toString=c;var u=function(e){return”function“==typeof e};u(/x/)&&(t.isFunction=u=function(e){return”function“==typeof e&&”[object Function]“===c.call(e)}),t.isFunction=u;var l=Array.isArray||function(e){return!(!e||”object“!=typeof e)&&”[object Array]“===c.call(e)};t.isArray=l},function(e,t,n){var r=n(405),i=”object“==typeof self&&self&&self.Object===Object&&self,o=r||i||Function(”return this“)();e.exports=o},function(e,t,n){”use strict“;n.d(t,”a“,(function(){return h}));var r=n(2),i=n(7),o=n(5),a=n(3),s=n(10),c=n(42),u=n(31),l=n(25),d=n(0),p=n(51),f=0;function h(e,t){for(var n=[],a=2;a=arguments;var s=g();if(Object(i.g)(”navigateTo“),null!==e){var c,u;if(M.apply(void 0,.concat(n)),t){var l=Object(r.omit)(t,”hash“,”params“);D(e,l),c=Object(r.extend)(l,t.params||{}),u=t.hash}var p=function(){return Object(r.isFunction)(e)?e():e};Object(o.load)(p).then((function(e){var t=m(e,c,u);if(t)return t.then((function(e){f===s&&v(e)}))})).catch((function(e){f===s&&Object(d.Q)(e)}))}else Object(d.G)((function(){return M.apply(void 0,.concat(n))}))}function m(e,t,n){x(e);var i=Object(s.e)(e);return i instanceof a.BasicObj?Object(o.load)((function(){return y(i,t,n||null)})):i instanceof a.BasicLink?Object(o.load)((function(){return function(e,t,n){if(e.isExternal())return{url:e.url()};var i,o=n||e.hash();i=t&&!Object(r.isEmpty)(t)?t:e.queryParameters();var a=e.obj();if(!a){var s=e.objId();return s?{objId:s,queryParameters:i,hash:o}:{}}return y(a,i,o)}(i,t,n||null)})).then(_):void 0}function _(e){if(b(e)||w(e)||function(e){return!!e.objId}(e))return e;throw new d.a(”The link provided to navigateTo has no destination.“)}function v(e){var t,n,r;b(e)?(t=e,n=Object(l.c)(t),r=u.a(),n===r?u.e(n):u.d(n)):w(e)?Object(c.a)(e.url):function(e){var t=e.objId;if(e.isBinary){var n=new d.a(”The target provided to navigateTo leads to the binary obj “t” which has no binary data.“);Object(d.Q)(n)}else{var r=Object(l.b)({path:t});e.queryParameters&&r.query(e.queryParameters),e.hash&&r.hash(e.hash),u.d(r.resource())}}(e)}function g(){return++f}function y(e,t,n){if(Object(p.a)(e)){var r=e.get(”blob“,);return r?{url:r.url()}:{isBinary:!0,objId:e.id(),queryParameters:t,hash:n}}return{obj:e,queryParameters:t,hash:n}}function b(e){return!!e.obj}function w(e){return!!e.url}var k=d.O.union(),O=d.O.union(),C=d.O.dict(d.O.String,d.O.maybe(d.O.union())),M=Object(d.p)(”navigateTo“,[,[”options“,d.O.maybe(d.O.struct({hash:d.O.maybe(d.O.String),params:d.O.maybe(C)},{strict:!1}))]],{docPerma”js-sdk/navigateTo“}),D=Object(d.p)(”navigateTo“,[[”target“,O],[”options“,d.O.maybe(C)]],{docPermalink:”js-sdk/navigateTo“}),x=Object(d.p)(”navigateTo“,[[”target“,k]],{docPermalink:”js-sdk/navigateTo“})},function(e,t,n){”use strict“;n.d(t,”b“,(function(){return l})),n.d(t,”a“,(function(){return d})),n.d(t,”c“,(function(){return p}));var r,i=n(0),o=n(11),a=n(5),s=n(3),c={},u=new i.d;function l(e,t){u.current()||(f(),c=e)}function d(e){if(!u.current())return f(),c}function p(e){return u.runWith(!0,e)}function f(){var e=Object(a.loadableWithDefault)(void 0,(function(){return Object(o.g)(Object(s.currentWorkspaceId)())}))||”“;e!==r&&(c={},r=e)}},function(e,t,n){”use strict“;n.d(t,”b“,(function(){return s})),n.d(t,”c“,(function(){return c})),n.d(t,”a“,(function(){return u}));var r=n(5),i=n(0),o=n(7),a={};function s(e,t){a=t}function c(e){delete a}function u(e){return a?function(e){return new r.LoadableData({state:l(e),stream:new i.k((function(t){var n=function(){var n=a;t.next(n?function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top,i=t.width,o=t.height;return{x:n+window.pageXOffset,y:r+window.pageYOffset,width:i,height:o}}(n):null)};n();var r=window.setInterval(n,1e3);return function(){return window.clearInterval®}}))})}(e).get():null}function l(e){return o.b.subState(”elementBoundaries“).subState(e.toString())}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=),Object.defineProperty(e,”loaded“,{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,”id“,{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){”use strict“; /* object-assign © Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError(”Object.assign cannot be called with null or undefined“);return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String(”abc“);if(e=”de“,”5“===Object.getOwnPropertyNames(e))return!1;for(var t={},n=0;n<10;n++)t=n;if(”0123456789“!==Object.getOwnPropertyNames(t).map((function(e){return t})).join(”“))return!1;var r={};return”abcdefghijklmnopqrst“.split(”“).forEach((function(e){r=e})),”abcdefghijklmnopqrst“===Object.keys(Object.assign({},r)).join(”“)}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=a(e),u=1;u<arguments.length;u++){for(var l in n=Object(arguments))i.call(n,l)&&(c=n);if®{s=r(n);for(var d=0;d)&&(c[s]=n[s])}}return c}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&(”object“==t||”function“==t)}},function(e,t){e.exports=function(e){return null!=e&&”object“==typeof e}},function(e,t,n){”use strict“;n.r(t),n.d(t,”SET_OBJ_SOURCE“,(function(){return r})),n.d(t,”FILTER“,(function(){return i})),n.d(t,”LAST_ADDED“,(function(){return o})),n.d(t,”setObjSource“,(function(){return a}));var r=”SET_OBJ_SOURCE“,i=”FILTER“,o=”LAST_ADDED“;function a(e){return{type:r,activeSource:e}}},function(e,t,n){”use strict“;function r(e,t){”interactive“===e.readyState||”complete“===e.readyState?t():e.addEventListener(”DOMContentLoaded“,t)}n.d(t,”a“,(function(){return r}))},function(e,t,n){”use strict“;function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.r(t),n.d(t,”Provider“,(function(){return l})),n.d(t,”createProvider“,(function(){return u})),n.d(t,”connectAdvanced“,(function(){return C})),n.d(t,”connect“,(function(){return X}));var i=n(1),o=n(4),a=n.n(o),s=a.a.shape({trySubscribe:a.a.func.isRequired,tryUnsubscribe:a.a.func.isRequired,notifyNestedSubs:a.a.func.isRequired,isSubscribed:a.a.func.isRequired}),c=a.a.shape({subscribe:a.a.func.isRequired,dispatch:a.a.func.isRequired,getState:a.a.func.isRequired});function u(e){var t;void 0===e&&(e=”store“);var n=e+”Subscription“,o=function(t){r(a,t);var o=a.prototype;function a(n,r){var i;return(i=t.call(this,n,r)||this)=n.store,i}return o.getChildContext=function(){var t;return(t={})[e]=this,t=null,t},o.render=function(){return i.Children.only(this.props.children)},a}(i.Component);return o.propTypes={store:c.isRequired,children:a.a.element.isRequired},o.childContextTypes=((t={})[e]=c.isRequired,t=s,t),o}var l=u();function d(e){if(void 0===e)throw new ReferenceError(”this hasn't been initialised - super() hasn't been called“);return e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e=n)}return e}).apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r,t.indexOf(n)>=0||(i=e);return i}var h=n(443),m=n.n(h),_=n(30),v=n.n(_),g=n(256),y={notify:function(){}};var b=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=y}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=,{clear:function(){t=null,e=null},notify:function(){for(var n=e=t,r=0;r()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&null!==e&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=y)},e}(),w=0,k={};function O(){}function C(e,t){var n,o;void 0===t&&(t={});var a=t,u=a.getDisplayName,l=void 0===u?function(e){return”ConnectAdvanced(“e”)“}:u,h=a.methodName,_=void 0===h?”connectAdvanced“:h,y=a.renderCountProp,C=void 0===y?void 0:y,M=a.shouldHandleStateChanges,D=void 0===M||M,x=a.storeKey,E=void 0===x?”store“:x,S=a.withRef,j=void 0!==S&&S,T=f(a,),L=E+”Subscription“,P=w++,A=((n={})[E]=c,n=s,n),N=((o={})[L]=s,o);return function(t){v()(Object(g.isValidElementType)(t),”You must pass a component to the function returned by “_”. Instead received “+JSON.stringify(t));var n=t.displayName||t.name||”Component“,o=l(n),a=p({},T,{getDisplayName:l,methodName:_,renderCountProp:C,shouldHandleStateChanges:D,storeKey:E,withRef:j,displayName:o,wrappedComponentName:n,WrappedComponent:t}),s=function(n){function s(e,t){var r;return(r=n.call(this,e,t)||this).version=P,r.state={},r.renderCount=0,r.store=e||t,r.propsMode=Boolean(e),r.setWrappedInstance=r.setWrappedInstance.bind(d(d®)),v()(r.store,'Could not find ”'E'“ in either the context or props of ”'o'“. Either wrap the root component in a <Provider>, or explicitly pass ”'E'“ as a prop to ”'o'“.'),r.initSelector(),r.initSubscription(),r}r(s,n);var c=s.prototype;return c.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[L]=t||this.context,e},c.componentDidMount=function(){D&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.componentWillReceiveProps=function(e){this.selector.run(e)},c.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=O,this.store=null,this.selector.run=O,this.selector.shouldComponentUpdate=!1},c.getWrappedInstance=function(){return v()(j,”To access the wrapped instance, you need to specify { withRef: true } in the options argument of the “_”() call.“),this.wrappedInstance},c.setWrappedInstance=function(e){this.wrappedInstance=e},c.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var n={run:function®{try{var i=e(t.getState(),r);(i!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=i,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},c.initSubscription=function(){if(D){var e=(this.propsMode?this.props:this.context);this.subscription=new b(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(k)):this.notifyNestedSubs()},c.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.addExtraProps=function(e){if(!(j||C||this.propsMode&&this.subscription))return e;var t=p({},e);return j&&(t.ref=this.setWrappedInstance),C&&(t=this.renderCount++),this.propsMode&&this.subscription&&(t=this.subscription),t},c.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(i.createElement)(t,this.addExtraProps(e.props))},s}(i.Component);return s.WrappedComponent=t,s.displayName=o,s.childContextTypes=N,s.contextTypes=A,s.propTypes=A,m()(s,t)}}var M=Object.prototype.hasOwnProperty;function D(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function x(e,t){if(D(e,t))return!0;if(”object“!=typeof e||null===e||”object“!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i)||!D(e[n],t[n]))return!1;return!0}var E=n(123);function S(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function j(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function T(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=j(e);var i=r(t,n);return”function“==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=j(i),i=r(t,n)),i},r}}var L=[function(e){return”function“==typeof e?T(e):void 0},function(e){return e?void 0:S((function(e){return{dispatch:e}}))},function(e){return e&&”object“==typeof e?S((function(t){return Object(E.bindActionCreators)(e,t)})):void 0}];var P=[function(e){return”function“==typeof e?T(e):void 0},function(e){return e?void 0:S((function(){return{}}))}];function A(e,t,n){return p({},n,e,t)}var N=[function(e){return”function“==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var c=e(t,n,s);return a?i&&o(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return A}}];function I(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function Y(e,t,n,r,i){var o,a,s,c,u,l=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,f=!1;function h(i,f){var h,m,_=!d(f,a),v=!l(i,o);return o=i,a=f,_&&v?(s=e(o,a),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):_?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):v?(h=e(o,a),m=!p(h,s),s=h,m&&(u=n(s,c,a)),u):u}return function(i,l){return f?h(i,l):(s=e(o=i,a=l),c=t(r,a),u=n(s,c,a),f=!0,u)}}function R(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=f(t,),a=n(e,o),s=r(e,o),c=i(e,o);return(o.pure?Y:I)(a,s,c,e,o)}function F(e,t,n){for(var r=t.length-1;r>=0;r–){var i=t(e);if(i)return i}return function(t,r){throw new Error(”Invalid value of type “+typeof e+” for “n” argument when connecting component “r.wrappedComponentName”.“)}}function H(e,t){return e===t}var W,B,z,U,q,V,$,G,K,J,Q,Z,X=(z=(B=void 0===W?{}:W).connectHOC,U=void 0===z?C:z,q=B.mapStateToPropsFactories,V=void 0===q?P:q,$=B.mapDispatchToPropsFactories,G=void 0===$?L:$,K=B.mergePropsFactories,J=void 0===K?N:K,Q=B.selectorFactory,Z=void 0===Q?R:Q,function(e,t,n,r){void 0===r&&(r={});var i=r,o=i.pure,a=void 0===o||o,s=i.areStatesEqual,c=void 0===s?H:s,u=i.areOwnPropsEqual,l=void 0===u?x:u,d=i.areStatePropsEqual,h=void 0===d?x:d,m=i.areMergedPropsEqual,_=void 0===m?x:m,v=f(i,),g=F(e,V,”mapStateToProps“),y=F(t,G,”mapDispatchToProps“),b=F(n,J,”mergeProps“);return U(Z,p({methodName:”connect“,getDisplayName:function(e){return”Connect(“e”)“},shouldHandleStateChanges:Boolean(e),initMapStateToProps:g,initMapDispatchToProps:y,initMergeProps:b,pure:a,areStatesEqual:c,areOwnPropsEqual:l,areStatePropsEqual:h,areMergedPropsEqual:_},v))})},function(e,t,n){”use strict“;n.d(t,”a“,(function(){return u})),n.d(t,”b“,(function(){return d})),n.d(t,”c“,(function(){return p}));var r=n(2),i=n(3),o=n(32),a=n(39),s=n(10),c=n(24);function u(e,t){var n,i=Object(o.a)(e,”initialContent“);if(i){var a=i;if(Object(r.isFunction)(a))return a();if(n=a,Object(r.isArray)(n)&&Object(r.every)(n,l)){var u=Object(c.a)();return a.map((function(e){var t=e._scrivitoPrivateContent.copy();return Object(s.f)(u,t)}))}return a}}function l(e){return e._scrivitoPrivateContent&&e._scrivitoPrivateContent instanceof i.BasicWidget}function d(e){f(i.BasicObj.get(e))}function p(e,t){f(i.BasicObj.get(e).widget(t))}function f(e){var t=e.objClass(),n=Object(a.a)().getClass(t)._scrivitoPrivateSchema,i={};Object(r.each)(n.attributes,(function(n,o){var a=e.get(o,n);if(Object(r.isEmpty)(a)){var s=u(t,o);s&&(i=s)}}));var o=Object(s.d)(i,n,t);e.update(o)}},function(e,t,n){”use strict“;n.d(t,”a“,(function(){return i}));var r=n(8),i={descriptionForObj:r.a,getClasses:r.a,getContentBrowserConfiguration:r.a,getHomepageId:r.a,getSiteIdForObj:r.a,replaceInternalLinks:r.a,titleForObj:r.a,titleForWidget:r.a,getElementBoundaries:r.a,getContentZoneData:r.a,getCustomComponentDimensions:r.a,getScrollPosition:r.a,getApplicationUrl:r.a,getCurrentPageId:r.a,executeCustomCommand:r.b,initializeContentForObj:r.b,initializeContentForWidget:r.b,navigateTo:r.b,resolveUrl:r.b,showCustomComponent:r.b,urlFor:r.b}},function(e,t,n){”use strict“;n.d(t,”a“,(function(){return l})),n.d(t,”b“,(function(){return d}));var r=n(156),i=n(2),o=n.n(i),a=n(0),s=n(3),c=n(19),u=n(27);function l(e){var t=e._obj_class,n=c.a.find(t),i=s.BasicObj.generateId();if(!n)return a.j.reject(new a.a('Please provide a valid CMS object class as the ”_obj_class“ property.'));var u=function(e){var t={},n={};return o.a.each(e,(function(e,i){!function(e){return a.f.is(e)||e instanceof s.FutureBinary||e instanceof r.a}(e)?t=e:n=e})),[t,n]}(e),l=u,d=u,f=n.fetchDefaults(l),h=function(e,t){var n=o.a.map(t,(function(t,n){return a.f.is(t)?function(e,t,n){return p(e,t,s.Binary.upload(n))}(e,n,t):t instanceof r.a?function(e,t,n){return p(e,t,n.copy())}(e,n,t):t instanceof s.FutureBinary?p(e,n,t):void 0}));return a.j.all(n).then(o.a.object)}(i,d);return a.j.all().then((function(e){var t=e,n=e;return s.BasicObj.createWithSerializedAttributes(Object(s.currentWorkspaceId)(),o.a.extend(t,n,{_id:i}))})).then((function(e){return e.finishSaving().then((function(){return e}))}))}function d(e){return u.a.find(e).fetchDefaults().then((function(e){return s.BasicWidget.newWithSerializedAttributes(e)}))}function p(e,t,n){return n.intoId(e).then((function(e){return[t,]}))}},function(e,t,n){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.Scrollbars=void 0;var r,i=n(726),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default,t.Scrollbars=o.default},function(e,t,n){”use strict“;var r=n(2),i=n.n®,o={},a={register:function(e,t){o=t},allForType:function(e){return o},findByType:function(e,t){return i.a.findWhere(this.allForType(e),{name:t})}};t.a=a},function(e,t,n){var r=n(36);e.exports=r(”Any“,(function(){return!0}))},function(e,t){e.exports=function(e){return”number“==typeof e&&isFinite(e)&&!isNaN(e)}},function(e,t,n){var r=n(21),i=(n(38),n(33),n(64),n(48)),o=n(49),a=n(50),s=n(29),c=n(63);function u(e,t){return”{“+s(e)+” | “+c(t)+”}“}function l(e,t,n){var s=n||u(e,t),c=i(e);function l(t,n){return o(e,t,n)}return l.meta={kind:”subtype“,type:e,predicate:t,name:n,identity:c},l.displayName=s,l.is=function(n){return a(n,e)&&t(n)},l.update=function(e,t){return l(r.update(e,t))},l}l.getDefaultName=u,e.exports=l},function(e,t,n){var r=n(36),i=n(70);e.exports=r(”String“,i)},function(e,t,n){var r=n(21),i=(n(38),n(33),n(29)),o=n(48),a=n(46),s=n(49),c=n(50);function u(e,t){return”{[key: “+i(e)+”]: “+i(t)+”}“}function l(e,t,n){var l=n||u(e,t),d=(i(e),i(t),o(e)&&o(t));function p(n,r){if(d)return n;var i=!0,o={};for(var a in n)if(n.hasOwnProperty(a)){var c=n,u=s(t,c,null);i=i&&c===u,o=u}return i&&(o=n),o}return p.meta={kind:”dict“,domain:e,codomain:t,name:n,identity:d},p.displayName=l,p.is=function(n){if(!a(n))return!1;for(var r in n)if(n.hasOwnProperty®&&(!c(r,e)||!c(n,t)))return!1;return!0},p.update=function(e,t){return p(r.update(e,t))},p}l.getDefaultName=u,e.exports=l},function(e,t,n){var r=n(45);n(21);e.exports=function(e,t,n){if(r(t))return e;for(var i in t)t.hasOwnProperty(i)&&(e=t);return e}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error(”setTimeout has not been defined“)}function a(){throw new Error(”clearTimeout has not been defined“)}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n=”function“==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r=”function“==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,d=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d.run();d=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n=arguments;u.push(new h(e,t)),1!==u.length||l||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title=”browser“,i.browser=!0,i.env={},i.argv=[],i.version=”“,i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return},i.binding=function(e){throw new Error(”process.binding is not supported“)},i.cwd=function(){return”/“},i.chdir=function(e){throw new Error(”process.chdir is not supported“)},i.umask=function(){return 0}},,,,,,function(e,t,n){”use strict“;t.__esModule=!0;var r=;function i(e,t){var n=t&&t.loc,o=void 0,a=void 0,s=void 0,c=void 0;n&&(o=n.start.line,a=n.end.line,s=n.start.column,c=n.end.column,e+=” - “o”:“+s);for(var u=Error.prototype.constructor.call(this,e),l=0;l]=u[r];Error.captureStackTrace&&Error.captureStackTrace(this,i);try{n&&(this.lineNumber=o,this.endLineNumber=a,Object.defineProperty?(Object.defineProperty(this,”column“,{value:s,enumerable:!0}),Object.defineProperty(this,”endColumn“,{value:c,enumerable:!0})):(this.column=s,this.endColumn=c))}catch(e){}}i.prototype=new Error,t.default=i,e.exports=t.default},function(e,t,n){var r=n(572),i=n(577);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(236),i=n(242);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){”use strict“;n.d(t,”a“,(function(){return a})),n.d(t,”b“,(function(){return s}));var r,i=n(0),o=0;function a(){return r||(r=new i.e,Object(i.G)©),r.promise}function s(){return o+=1,e=!1,function(){if(e)throw new i.g(”Unregister must not be called twice“);e=!0,0==(o-=1)&&Object(i.G)©};var e}function c(){r&&0===o&&(r.resolve(void 0),r=void 0)}},function(e,t,n){e.exports=n(210)},function(e,t,n){”use strict“;n.d(t,”a“,(function(){return c})),n.d(t,”b“,(function(){return s}));var r=n(2),i=n(7),o=0,a={};function s(e){var t=++o;a=e;var n=u(),r=n.get()||[];n.set(r.concat())}function c(e){var t=e.type,n=e.tag,i=u().get();if(i){var o=Object(r.find)(i,(function(e){return a&&a.canEdit({type:t,tag:n})}));if(o)return{id:o,editorClass:a}}}function u(){return i.b.subState(”editors“)}},function(e,t,n){”use strict“;n.d(t,”a“,(function(){return o}));var r=n(32),i=n(0);function o(e,t,n){var o=Object(r.a)(e,t);if(”function“==typeof o)try{return o(n)}catch(e){Object(i.Q)(e)}}},function(e,t,n){”use strict“;t.a=function(e){e.dataTransfer.effectAllowed=”move“;try{e.dataTransfer.setData(”text/plain“,e.target.id)}catch(e){}}},function(e,t,n){”use strict“;n.d(t,”b“,(function(){return a})),n.d(t,”a“,(function(){return s}));var r=n(7),i=n(0),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)};function a(e,t,n){return Object(i.G)((function(){return c((function®{r={content:t,parentElementId:n}}))})),function(){return Object(i.G)((function(){return c((function(t){delete t}))}))}}function s(){var e=u();return Object.keys(e).map((function(t){var n=parseInt(t,10);return o({elementId:n},e)}))}function c(e){var t=o({},u());e(t),l().set(t)}function u(){return l().get()||{}}function l(){return r.b.subState(”contentZoneRegistry“)}},function(e,t,n){”use strict“;n.d(t,”b“,(function(){return a})),n.d(t,”a“,(function(){return s}));var r=n(17),i=new(n(0).d),o=128;function a(e){return i.runWith(!0,e)}function s(e){if(e.isRaw()||e.isExplicitlyTransformed())return{initialUrl:e.url()};var t=function(e){return e.optimizeFor({width:o})}(e).url();if(i.current())return{initialUrl:t};var n=function(e){return e.optimizeFor({width:Object(r.j)().width*Object(r.a)()})}(e).urlWithoutPlaceholder();return n&&t!==n?{initialUrl:t,highResUrlToDecode:n}:{initialUrl:t}}},function(e,t,n){”use strict“;(function(t){ /**

* filesize
*
* @copyright 2018 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 3.6.1
*/

!function(t){var n=/^(b|B)$/,r={iec:{bits:,bytes:},jedec:{bits:,bytes:}},i={iec:,jedec:};function o(e){var t=arguments.length>1&&void 0!==arguments?arguments:{},o=[],a=0,s=void 0,c=void 0,u=void 0,l=void 0,d=void 0,p=void 0,f=void 0,h=void 0,m=void 0,_=void 0,v=void 0,g=void 0,y=void 0,b=void 0,w=void 0;if(isNaN(e))throw new Error(“Invalid arguments”);return u=!0===t.bits,v=!0===t.unix,c=t.base||2,_=void 0!==t.round?t.round:v?1:2,g=void 0!==t.separator&&t.separator||“”,y=void 0!==t.spacer?t.spacer:v?“”:“ ”,w=t.symbols||t.suffixes||{},b=2===c&&t.standard||“jedec”,m=t.output||“string”,d=!0===t.fullform,p=t.fullforms instanceof Array?t.fullforms:[],s=void 0!==t.exponent?t.exponent:-1,l=c>2?1e3:1024,(f=(h=Number(e))<0)&&(h=-h),(-1===s||isNaN(s))&&(s=Math.floor(Math.log(h)/Math.log(l)))<0&&(s=0),s>8&&(s=8),0===h?(o=0,o=v?“”:r[u?“bits”:“bytes”]):(a=h/(2===c?Math.pow(2,10*s):Math.pow(1e3,s)),u&&(a*=8)>=l&&s<8&&(a/=l,s++),o=Number(a.toFixed(s>0?_:0)),o=10===c&&1===s?u?“kb”:“kB”:r[u?“bits”:“bytes”],v&&(o=“jedec”===b?o.charAt(0):s>0?o.replace(/B$/,“”):o,n.test(o)&&(o=Math.floor(o),o=“”))),f&&(o=-o),o=w[o]||o,“array”===m?o:“exponent”===m?s:“object”===m?{value:o,suffix:o,symbol:o}:(d&&(o=p?p:i[s]+(u?“bit”:“byte”)+(1===o?“”:“s”)),g.length>0&&(o=o.toString().replace(“.”,g)),o.join(y))}o.partial=function(e){return function(t){return o(t,e)}},e.exports=o}(“undefined”!=typeof window&&window)}).call(this,n(41))},function(e,t,n){“use strict”;n.r(t);var r=n(2),i=n.n®,o=function(e){return void 0===e.value?e.name:e.value},a=function(e,t,n){var r=t;if(“checkbox”!==i.a.last(n).type&&r)return r;var o=i.a.find(n,(function(t){return t}));return o&&o},s=function(){function e(e,t){this.parents=e,this.nodes=t}return e.prototype.activeNodes=function(){return this.nodes},e.prototype.values=function(){return i.a.flatten(i.a.map(this.activeNodes(),o))},e.prototype.query=function(){return“checkbox”!==i.a.last(this.parents).type&&this.activeNodes().query},e.prototype.hasQuery=function(){return!!this.query()},e.prototype.field=function(){return a(“field”,this.activeNodes(),this.parents)},e.prototype.hasField=function(){return!!this.field()},e.prototype.preventsCreation=function(){return this.nodesPreventingCreation().length>0},e.prototype.nodesPreventingCreation=function(){return i.a.select(this.activeNodes(),(function(e){return!1===e.enable_create}))},e.prototype.enablesCreation=function(){return i.a.some(this.activeNodes(),(function(e){return!0===e.enable_create}))},e.prototype.operator=function(){return a(“operator”,this.activeNodes(),this.parents)||“equals”},e}(),c=function(){function e(e){this.filter=e}return e.prototype.findActiveFilterItems=function(){var e=this.findActiveAdditionalFilters(),t=this.findActiveTreeFilterItem();return t&&e.unshift(t),e},e.prototype.findActiveTreeFilterItem=function(){var e=this,t=null;return Object(r.each)(this.filter.getTreeFilters(),(function(n){Object(r.each)(n.subFilters,(function®{var i=e.findActiveSubFilterItem®;i&&(i.parents.push(n.config),t=new s(i.parents,))}))})),t},e.prototype.findActiveAdditionalFilters=function(){var e=[];return Object(r.each)(this.filter.additionalFilters,(function(t){var n=Object(r.filter)(t.children,(function(e){return e.isActive()}));n.length>0&&e.push(new s(,n))})),e},e.prototype.findActiveSubFilterItem=function(e){var t,n=this;return e.isActive()?{node:e,parents:[]}:(Object(r.some)(e.children,(function®{if(t=n.findActiveSubFilterItem®)return t.parents.push(e),t})),t)},e}();t.default=c},function(e,t,n){“use strict”;n.d(t,“b”,(function(){return o})),n.d(t,“a”,(function(){return a}));var r,i=n(0);function o(){return r||(r=“assets.scrivito.com/sjs/”+Object(i.x)()),r}function a(e){if®throw new Error(“Refusing attempt to reconfigure asset url base (again or after first access).”);r=e}},function(e,t,n){“use strict”;var r,i=n(2),o=n(0),a=(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=t)})(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)}),s={};function c(e,t,n){if(!n)throw new l('No translations found for locale “'e'”');if(Object(i.isEmpty)(n))throw new l('Translations for locale “'e'” are empty');var r=n;if(!r)throw new l('No translation found for key “'t'” in locale “'e'”');return r}function u(e,t,n,r){var o=n.match(/$+/g);if(o){if(r.length!==o.length)throw new d('Translation for key “'t'” in locale “'e'” received invalid number of interpolation params: expected - 'o.length“, received - ”+r.length);var a=n;return Object(i.each)(r,(function(e,t){var n=o;a=a.replace(n,e)})),a}if(r.length)throw new d('Translation for key “'t'” in locale “'e'” received invalid number of interpolation params: expected - 0, received - '+r.length);return n}t.a={load:function(e,t){this.store()||(this.store()={}),Object(i.extend)(this.store(),t)},translate:function(e,t){for(var n,r=[],i=2;i=arguments;if(!e)throw new o.a(“Missing locale”);if(!t)throw new o.a(“Missing key”);try{var a=this.store();return u(e,t,n=c(e,t,a),r)}catch(e){if(e instanceof l){if(this.shouldThrowErrors)throw e;return Object(o.F)(e.message),e instanceof d?n:t}throw e}},store:function(){return s},shouldThrowErrors:!1};var l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t}(o.g),d=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t}(l)},function(e,t,n){“use strict”;n.r(t),n.d(t,“default”,(function(){return i}));var r=n(5);function i(e,t,n){void 0===n&&(n=[]);var o=Object(r.runAndCatchErrorsWhileLoading)((function(){return e.next()}));if(!o.allDataLoaded)return{done:!1,objs:n};var a=o.result;return a.done||0===t?{done:a.done,objs:n}:i(e,t-1,n.concat())}},function(e,t,n){var r,i,o;i=,void 0===(o=“function”==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version=“1.12.1”})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r=n(144),i=n(573),o=n(574),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?“[object Undefined]”:“[object Null]”:a&&a in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(169),i=n(424),o=n(425);e.exports=function(e,t){return o(i(e,t,r),e+“”)}},function(e,t,n){var r=n(119),i=n(673),o=n(82),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!o(e)||“[object Object]”!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,“constructor”)&&t.constructor;return“function”==typeof n&&n instanceof n&&c.call(n)==l}},function(e,t,n){“use strict”;n.r(t),n.d(t,“THUMBNAIL_VIEW”,(function(){return r})),n.d(t,“TABLE_VIEW”,(function(){return i})),n.d(t,“SET_VIEW_MODE”,(function(){return o})),n.d(t,“setViewMode”,(function(){return a}));var r=“THUMBNAIL_VIEW”,i=“TABLE_VIEW”,o=“SET_VIEW_MODE”;function a(e){return{type:o,viewMode:e}}},function(e,t,n){“use strict”;n.r(t),n.d(t,“createStore”,(function(){return M})),n.d(t,“combineReducers”,(function(){return x})),n.d(t,“bindActionCreators”,(function(){return S})),n.d(t,“applyMiddleware”,(function(){return L})),n.d(t,“compose”,(function(){return j}));var r=n(445),i=“object”==typeof self&&self&&self.Object===Object&&self,o=(r.a||i||Function(“return this”)()).Symbol,a=Object.prototype,s=a.hasOwnProperty,c=a.toString,u=o?o.toStringTag:void 0;var l=function(e){var t=s.call(e,u),n=e;try{e=void 0;var r=!0}catch(e){}var i=c.call(e);return r&&(t?e=n:delete e),i},d=Object.prototype.toString;var p=function(e){return d.call(e)},f=o?o.toStringTag:void 0;var h=function(e){return null==e?void 0===e?“[object Undefined]”:“[object Null]”:f&&f in Object(e)?l(e):p(e)};var m=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var _=function(e){return null!=e&&“object”==typeof e},v=Function.prototype,g=Object.prototype,y=v.toString,b=g.hasOwnProperty,w=y.call(Object);var k=function(e){if(!_(e)||“[object Object]”!=h(e))return!1;var t=m(e);if(null===t)return!0;var n=b.call(t,“constructor”)&&t.constructor;return“function”==typeof n&&n instanceof n&&y.call(n)==w},O=n(124),C=“@@redux/INIT”;function M(e,t,n){var r;if(“function”==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if(“function”!=typeof n)throw new Error(“Expected the enhancer to be a function.”);return n(M)(e,t)}if(“function”!=typeof e)throw new Error(“Expected the reducer to be a function.”);var i=e,o=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){return o}function d(e){if(“function”!=typeof e)throw new Error(“Expected listener to be a function.”);var t=!0;return u(),s.push(e),function(){if(t){t=!1,u();var n=s.indexOf(e);s.splice(n,1)}}}function p(e){if(!k(e))throw new Error(“Actions must be plain objects. Use custom middleware for async actions.”);if(void 0===e.type)throw new Error('Actions may not have an undefined “type” property. Have you misspelled a constant?');if©throw new Error(“Reducers may not dispatch actions.”);try{c=!0,o=i(o,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t)()}return e}return p({type:C}),(r={dispatch:p,subscribe:d,getState:l,replaceReducer:function(e){if(“function”!=typeof e)throw new Error(“Expected the nextReducer to be a function.”);i=e,p({type:C})}})[O.a]=function(){var e,t=d;return(e={subscribe:function(e){if(“object”!=typeof e)throw new TypeError(“Expected the observer to be an object.”);function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[O.a]=function(){return this},e},r}function D(e,t){var n=t&&t.type;return“Given action ”+(n&&'“'+n.toString()+'”'||“an action”)+', reducer “'e'” returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function x(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t;0,“function”==typeof e&&(n=e)}var o=Object.keys(n);var a=void 0;try{!function(e){Object.keys(e).forEach((function(t){var n=e;if(void 0===n(void 0,{type:C}))throw new Error('Reducer “'t”" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.“);if(void 0===n(void 0,{type:”@@redux/PROBE_UNKNOWN_ACTION_“+Math.random().toString(36).substring(7).split(”“).join(”.“)}))throw new Error('Reducer ”'t“" returned undefined when probed with a random type. Don't try to handle ”C' or other actions in “redux/*” namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(){var e=arguments.length>0&&void 0!==arguments?arguments:{},t=arguments;if(a)throw a;for(var r=!1,i={},s=0;s<o.length;s++){var c=o,u=n,l=e,d=u(l,t);if(void 0===d){var p=D(c,t);throw new Error(p)}i=d,r=r||d!==l}return r?i:e}}function E(e,t){return function(){return t(e.apply(void 0,arguments))}}function S(e,t){if(“function”==typeof e)return E(e,t);if(“object”!=typeof e||null===e)throw new Error(“bindActionCreators expected an object or a function, instead received ”+(null===e?“null”:typeof e)+'. Did you write “import ActionCreators from” instead of “import * as ActionCreators from”?');for(var n=Object.keys(e),r={},i=0;i<n.length;i++){var o=n,a=e;“function”==typeof a&&(r=E(a,t))}return r}function j(){for(var e=arguments.length,t=Array(e),n=0;n=arguments;return 0===t.length?function(e){return e}:1===t.length?t:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e=n)}return e};function L(){for(var e=arguments.length,t=Array(e),n=0;n=arguments;return function(e){return function(n,r,i){var o,a=e(n,r,i),s=a.dispatch,c={getState:a.getState,dispatch:function(e){return s(e)}};return o=t.map((function(e){return e©})),s=j.apply(void 0,o)(a.dispatch),T({},a,{dispatch:s})}}}},function(e,t,n){“use strict”;(function(e,r){var i,o=n(444);i=“undefined”!=typeof self?self:“undefined”!=typeof window?window:void 0!==e?e:r;var a=Object(o.a)(i);t.a=a}).call(this,n(41),n(509)(e))},function(e,t,n){“use strict”;n.d(t,“a”,(function(){return o}));var r=n(19),i=n(157);function o(e){var t=Object(i.a)(e.type);return r.a.get(t).createBinaryWithDefaults(e)}},function(e,t,n){var r=n(63);function i(e,t){return“function”==typeof t?r(t):t}e.exports=function(e){try{return JSON.stringify(e,i,2)}catch(t){return String(e)}}},function(e,t,n){var r=n(36),i=n(71);e.exports=r(“Boolean”,i)},function(e,t,n){var r=n(36),i=n(45);e.exports=r(“Nil”,i)},function(e,t,n){var r=n(36),i=n(92);e.exports=r(“Number”,i)},function(e,t,n){var r=n(34);e.exports=function(e){return r(e)&&“union”===e.meta.kind}},function(e,t,n){var r=n(21),i=(n(38),n(33),n(29)),o=n(48),a=n(49),s=n(50),c=n(47);function u(e){return“Array<”+i(e)+“>”}function l(e,t){var n=t||u(e),l=(i(e),o(e));function d(t,n){if(l)return t;for(var r=!0,i=[],o=0,s=t.length;o<s;o++){var c=t,u=a(e,c,null);r=r&&c===u,i.push(u)}return r&&(i=t),i}return d.meta={kind:“list”,type:e,name:t,identity:l},d.displayName=n,d.is=function(t){return c(t)&&t.every((function(t){return s(t,e)}))},d.update=function(e,t){return d(r.update(e,t))},d}l.getDefaultName=u,e.exports=l},function(e,t,n){var r=n(29);e.exports=function(e){return“{”+Object.keys(e).map((function(t){return t+“: ”+r(e)})).join(“, ”)+“}”}},function(e,t,n){n(21),n(33),n(47);var r=n(96),i=(n(199),n(200),n(46)),o=n(93),a=n(201);e.exports=function(e,t,n){var s={},c={},u=[],l={};t.forEach((function(e,t){var n,o,d,p=a(e),f=p.unrefinedType;n=u,o=p.predicates,Array.prototype.push.apply(n,o),r(s,i(d=f)?d:d.meta.props),r(c,f.prototype),r(l,function(e){return i(e)?null:e.meta.defaultProps}(f),!0)})),(n=e.getOptions(n)).defaultProps=r(l,n.defaultProps,!0);var d=function(e,t,n){var r=e.reduce((function(e,t){return o(e,t)}),t);return n&&(r.displayName=n,r.meta.name=n),r}(u,e(s,{strict:n.strict,defaultProps:n.defaultProps}),n.name);return r(d.prototype,c),d}},function(e,t,n){var r=n(21),i=(n(38),n(33),n(29)),o=n(48),a=n(47),s=n(49),c=n(50);function u(e){return“[”+e.map(i).join(“, ”)+“]”}function l(e,t){var n=t||u(e),i=e.every(o);function l(t,n){if(i)return t;for(var r=!0,o=[],a=0,c=e.length;a<c;a++){var u=e,l=t,d=s(u,l,null);r=r&&l===d,o.push(d)}return r&&(o=t),o}return l.meta={kind:“tuple”,types:e,name:t,identity:i},l.displayName=n,l.is=function(t){return a(t)&&t.length===e.length&&e.every((function(e,n){return c(t,e)}))},l.update=function(e,t){return l(r.update(e,t))},l}l.getDefaultName=u,e.exports=l},function(e,t){e.exports=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e=t);return e}},function(e,t){},function(e,t,n){(function(e,r){var i;/*! mths.be/punycode v1.4.0 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a=“object”==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,c=2147483647,u=/^xn–/,l=//,d=//g,p={overflow:“Overflow: input needs wider integers to process”,“not-basic”:“Illegal input >= 0x80 (not a basic code point)”,“invalid-input”:“Invalid input”},f=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(p)}function _(e,t){for(var n=e.length,r=[];n–;)r=t(e);return r}function v(e,t){var n=e.split(“@”),r=“”;return n.length>1&&(r=n+“@”,e=n),r+_((e=e.replace(d,“.”)).split(“.”),t).join(“.”)}function g(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i–):r.push(t);return r}function y(e){return _(e,(function(e){var t=“”;return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join(“”)}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?f(e/700):e>>1,e+=f(e/t);e>455;r+=36)e=f(e/35);return f(r+36*e/(e+38))}function k(e){var t,n,r,i,o,a,s,u,l,d,p,h=[],_=e.length,v=0,g=128,b=72;for((n=e.lastIndexOf(“-”))<0&&(n=0),r=0;r<n;++r)e.charCodeAt®>=128&&m(“not-basic”),h.push(e.charCodeAt®);for(i=n>0?n+1:0;i<_;){for(o=v,a=1,s=36;i>=_&&m(“invalid-input”),((u=(p=e.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||u>f((c-v)/a))&&m(“overflow”),v+=u*a,!(u<(l=s<=b?1:s>=b+26?26:s-b));s+=36)a>f(c/(d=36-l))&&m(“overflow”),a*=d;b=w(v-o,t=h.length+1,0==o),f(v/t)>c-g&&m(“overflow”),g+=f(v/t),v%=t,h.splice(v++,0,g)}return y(h)}function O(e){var t,n,r,i,o,a,s,u,l,d,p,_,v,y,k,O=[];for(_=(e=g(e)).length,t=128,n=0,o=72,a=0;a<_;++a)(p=e)<128&&O.push(h(p));for(r=i=O.length,i&&O.push(“-”);r<_;){for(s=c,a=0;a<_;++a)(p=e)>=t&&pf((c-n)/(v=r+1))&&m(“overflow”),n+=(s-t)*v,t=s,a=0;a<_;++a)if((p=e)<t&&++n>c&&m(“overflow”),p==t){for(u=n,l=36;!(u<(d=l<=o?1:l>=o+26?26:l-o));l+=36)k=u-d,y=36-d,O.push(h(b(d+k%y,0))),u=f(k/y);O.push(h(b(u,0))),o=w(n,v,r==i),n=0,++r}++n,++t}return O.join(“”)}s={version:“1.3.2”,ucs2:{decode:g,encode:y},decode:k,encode:O,toASCII:function(e){return v(e,(function(e){return l.test(e)?“xn–”+O(e):e}))},toUnicode:function(e){return v(e,(function(e){return u.test(e)?k(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(79)(e),n(41))},function(e,t,n){var r,i; /*!

* URI.js - Mutating URLs
* IPv6 Support
*
* 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(o,a){"use strict";e.exports?e.exports=a():void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i)}(0,(function(e){"use strict";var t=e&&e.IPv6;return{best:function(e){var t,n,r=e.toLowerCase().split(":"),i=r.length,o=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[i-1]&&""===r[i-2]&&r.pop(),-1!==r[(i=r.length)-1].indexOf(".")&&(o=7),t=0;t<i&&""!==r[t];t++);if(t<o)for(r.splice(t,1,"0000");r.length<o;)r.splice(t,0,"0000");for(var a=0;a<o;a++){n=r[a].split("");for(var s=0;s<3&&("0"===n[0]&&n.length>1);s++)n.splice(0,1);r[a]=n.join("")}var c=-1,u=0,l=0,d=-1,p=!1;for(a=0;a<o;a++)p?"0"===r[a]?l+=1:(p=!1,l>u&&(c=d,u=l)):"0"===r[a]&&(p=!0,d=a,l=1);l>u&&(c=d,u=l),u>1&&r.splice(c,u,""),i=r.length;var f="";for(""===r[0]&&(f=":"),a=0;a<i&&(f+=r[a],a!==i-1);a++)f+=":";return""===r[i-1]&&(f+=":"),f},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}))},function(e,t,n){var r,i;

/*!

* URI.js - Mutating URLs
* Second Level Domain (SLD) Support
*
* 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(o,a){"use strict";e.exports?e.exports=a():void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i)}(0,(function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return!1;var i=n.list[e.slice(t+1)];return!!i&&i.indexOf(" "+e.slice(r+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return!!r&&r.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return null;var i=n.list[e.slice(t+1)];return i?i.indexOf(" "+e.slice(r+1,t)+" ")<0?null:e.slice(r+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n}))},function(e,t){},,,function(e,t,n){var r=n(229),i=n(58);function o(e,t){i.Object.is(e)&&(e=i.struct(e));var n="subtype"===e.meta.kind;var r={},o=n?e.meta.type:e;if("struct"===o.meta.kind||"interface"===o.meta.kind){var a=o.meta.props;Object.keys(a).forEach((function(e){var t,n=a[e];(t=function(){}).tcomb=n,r[e]=t}))}else 0;return n&&(r.__subtype__=function(){},r.__subtype__.predicate=e.meta.predicate),r}var a=i.irreducible("ReactElement",r.isValidElement),s=i.irreducible("ReactNode",(function(e){return i.Str.is(e)||i.Num.is(e)||a.is(e)||i.list(s).is(e)})),c=i.irreducible("ReactChild",(function(e){return s.is(e)||i.Bool.is(e)||i.Nil.is(e)})),u=i.irreducible("ReactChildren",(function(e){return c.is(e)||i.list(u).is(e)}));i.ReactElement=a,i.ReactNode=s,i.ReactChild=c,i.ReactChildren=u,e.exports={t:i,propTypes:o,props:function(e,t){return function(t){t.propTypes=o(e)}},ReactElement:a,ReactNode:s,ReactChild:c,ReactChildren:u,ReactElementT:a,ReactNodeT:s,ReactChildT:c,ReactChildrenT:u}},function(e,t,n){var r=n(75).Symbol;e.exports=r},function(e,t,n){var r=n(119),i=n(82);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var u=o[c];if(!s(u))return!1;var l=e[u],d=t[u];if(!1===(i=n?n.call(r,l,d,u):void 0)||void 0===i&&l!==d)return!1}return!0}},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,l=u&&u(Object);e.exports=function e(t,n,d){if("string"!=typeof n){if(l){var p=u(n);p&&p!==l&&e(t,p,d)}var f=a(n);s&&(f=f.concat(s(n)));for(var h=0;h<f.length;++h){var m=f[h];if(!(r[m]||i[m]||d&&d[m])){var _=c(n,m);try{o(t,m,_)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";(function(e){var r=n(150),i=setTimeout;function o(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}c(t.promise,r)}else(1===e._state?c:u)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void p((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){u(e,t)}var r,i}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function d(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function p(e,t){var n=!1;try{e((function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(e){if(n)return;n=!0,u(t,e)}}a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(o);return s(this,new d(e,t,n)),n},a.prototype.finally=r.a,a.all=function(e){return new a((function(t,n){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var i=r.length;function o(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(t){o(e,t)}),n)}r[e]=a,0==--i&&t(r)}catch(e){n(e)}}for(var a=0;a<r.length;a++)o(a,r[a])}))},a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},a._immediateFn="function"==typeof e&&function(t){e(t)}||function(e){i(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},t.a=a}).call(this,n(208).setImmediate)},function(e,t,n){"use strict";t.a=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(8),i={currentWorkspaceId:r.a,getContentStateId:r.a,isInPlaceEditingActive:r.a,isComparisonActive:r.a,translate:r.a,startLinkResolutionFor:r.b,finishLinkResolutionFor:r.b,retrieveObj:r.b,retrieveObjQuery:r.b,retrieveFacetQuery:r.b,retrieveBinaryMetadata:r.b,retrieveBinaryUrls:r.b,retrieveObjFieldDiffs:r.b,copyBinary:r.b,uploadBinary:r.b,insertWidget:r.b,navigateToExternalUrl:r.b,openInNewUiWindow:r.b,configureContentBrowser:r.b,openContentBrowser:r.b,updateMenu:r.b,openCustomDialog:r.b,setAppAdapter:r.b,configureTenant:r.b,showWidgetMenu:r.b,showWidgetlistMenu:r.b,showChildListMenu:r.b,registerEmptyWidgetlistDropZoneInDom:r.b,registerWidgetDropZoneInDom:r.b,startDrag:r.b,endDrag:r.b,dragTo:r.b,drop:r.b}},,,,,function(e,t,n){"use strict";var r=n(0),i=n(3),o=n(9),a=function(){function e(e,t,n){this._id=e,this.url=t,this.filename=n}return e.prototype.noCacheUrl=function(){if("published"===Object(i.currentWorkspaceId)())return r.j.resolve(null);var e="blobs/"+encodeURIComponent(this._id)+"/no_cache";return o.d.get(e).then((function(e){return e.private_access.get.url})).catch((function(e){return scrivito.displayError(e),r.j.reject(e)}))},e.prototype.copy=function(e){return void 0===e&&(e={}),new i.FutureBinary({idToCopy:this._id},{filename:e.filename,contentType:e.content_type})},e}();t.a=a},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r,i=n(2),o=n.n(i);function a(e){o.a.extend(r,e)}function s(e){return r[e]||r[e.split("/")[0]+"/*"]||r["*/*"]}r={},a({"image/*":"Image","*/*":"Download"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayMove=function(e,t,n){var r=e.slice(0);if(n>=r.length)for(var i=n-r.length;1+i--;)r.push(void 0);return r.splice(n,0,r.splice(t,1)[0]),r},t.omit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.keys(e).reduce((function(t,r){return-1===n.indexOf(r)&&(t[r]=e[r]),t}),{})},t.closest=function(e,t){for(;e;){if(t(e))return e;e=e.parentNode}},t.limit=function(e,t,n){if(n<e)return e;if(n>t)return t;return n},t.getElementMargin=function(e){var t=window.getComputedStyle(e);return{top:r(t.marginTop),right:r(t.marginRight),bottom:r(t.marginBottom),left:r(t.marginLeft)}},t.provideDisplayName=function(e,t){var n=t.displayName||t.name;return n?e+"("+n+")":e};t.events={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","touchcancel","mouseup"]},t.vendorPrefix=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function r(e){return"px"===e.substr(-2)?parseFloat(e):0}},function(e,t,n){var r=n(562),i=n(563),o=n(564),a=n(565),s=n(566);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(161);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(104)(Object,"create");e.exports=r},function(e,t,n){var r=n(586);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(237),i=n(591),o=n(592);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(410),i=n(607),o=n(105);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(145);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(408),i=n(628);e.exports=function e(t,n,o,a,s){var c=-1,u=t.length;for(o||(o=i),s||(s=[]);++c<u;){var l=t[c];n>0&&o(l)?n>1?e(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(e,t,n){"use strict";var r=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var i=n(429),o=n(30),a=n(81);t.BEGIN_DRAG="dnd-core/BEGIN_DRAG",t.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",t.HOVER="dnd-core/HOVER",t.DROP="dnd-core/DROP",t.END_DRAG="dnd-core/END_DRAG",t.default=function(e){return{beginDrag:function(n,r){void 0===n&&(n=[]);var i=void 0===r?{publishSource:!0}:r,s=i.publishSource,c=i.clientOffset,u=i.getSourceClientOffset,l=e.getMonitor(),d=e.getRegistry();o(!l.isDragging(),"Cannot call beginDrag while dragging.");for(var p=0,f=n;p<f.length;p++){var h=f[p];o(d.getSource(h),"Expected sourceIds to be registered.")}for(var m=null,_=n.length-1;_>=0;_--)if(l.canDragSource(n[_])){m=n[_];break}if(null!==m){var v=null;c&&(o("function"==typeof u,"When clientOffset is provided, getSourceClientOffset must be a function."),v=u(m));var g=d.getSource(m).beginDrag(l,m);o(a(g),"Item must be an object."),d.pinSource(m);var y=d.getSourceType(m);return{type:t.BEGIN_DRAG,payload:{itemType:y,item:g,sourceId:m,clientOffset:c||null,sourceClientOffset:v||null,isSourcePublic:!!s}}}},publishDragSource:function(){if(e.getMonitor().isDragging())return{type:t.PUBLISH_DRAG_SOURCE}},hover:function(n,r){var a=(void 0===r?{}:r).clientOffset;o(Array.isArray(n),"Expected targetIds to be an array.");var s=n.slice(0),c=e.getMonitor(),u=e.getRegistry();o(c.isDragging(),"Cannot call hover while not dragging."),o(!c.didDrop(),"Cannot call hover after drop.");for(var l=0;l<s.length;l++){var d=s[l];o(s.lastIndexOf(d)===l,"Expected targetIds to be unique in the passed array.");var p=u.getTarget(d);o(p,"Expected targetIds to be registered.")}var f=c.getItemType();for(l=s.length-1;l>=0;l--){d=s[l];var h=u.getTargetType(d);i.default(h,f)||s.splice(l,1)}for(var m=0,_=s;m<_.length;m++){d=_[m];(p=u.getTarget(d)).hover(c,d)}return{type:t.HOVER,payload:{targetIds:s,clientOffset:a||null}}},drop:function(n){void 0===n&&(n={});var i=e.getMonitor(),s=e.getRegistry();o(i.isDragging(),"Cannot call drop while not dragging."),o(!i.didDrop(),"Cannot call drop twice during one drag operation.");var c=i.getTargetIds().filter(i.canDropOnTarget,i);c.reverse(),c.forEach((function(c,u){var l=s.getTarget(c).drop(i,c);o(void 0===l||a(l),"Drop result must either be an object or undefined."),void 0===l&&(l=0===u?{}:i.getDropResult());var d={type:t.DROP,payload:{dropResult:r({},n,l)}};e.dispatch(d)}))},endDrag:function(){var n=e.getMonitor(),r=e.getRegistry();o(n.isDragging(),"Cannot call endDrag while not dragging.");var i=n.getSourceId();return r.getSource(i,!0).endDrag(n,i),r.unpinSource(),{type:t.END_DRAG}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ADD_SOURCE="dnd-core/ADD_SOURCE",t.ADD_TARGET="dnd-core/ADD_TARGET",t.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",t.REMOVE_TARGET="dnd-core/REMOVE_TARGET",t.addSource=function(e){return{type:t.ADD_SOURCE,payload:{sourceId:e}}},t.addTarget=function(e){return{type:t.ADD_TARGET,payload:{targetId:e}}},t.removeSource=function(e){return{type:t.REMOVE_SOURCE,payload:{sourceId:e}}},t.removeTarget=function(e){return{type:t.REMOVE_TARGET,payload:{targetId:e}}}},function(e,t,n){var r=n(105),i=n(82);e.exports=function(e){return i(e)&&r(e)}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r]}},function(e,t,n){"use strict";n.r(t),n.d(t,"CHANGE_SORT_ORDER",(function(){return r})),n.d(t,"ASC_SORT_ORDER",(function(){return i})),n.d(t,"DESC_SORT_ORDER",(function(){return o})),n.d(t,"sortInAscOrder",(function(){return s})),n.d(t,"sortInDescOrder",(function(){return c}));var r="CHANGE_SORT_ORDER",i="asc",o="desc";function a(e,t){return{type:r,criteriaType:e,sortDirection:t}}function s(e){return a(e,i)}function c(e){return a(e,o)}},function(e,t,n){var r;r=n(526),e.exports={showAlert:function(e){var t;return t=document.createElement("DIV"),document.body.appendChild(t),e.promise=$.Deferred(),e.container=t,ReactDOM.render(React.createElement(r,{mode:e.mode,promise:e.promise,container:e.container,title:e.title,subtitle:e.subtitle,body:e.body}),t),e.promise}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),i=n.n(r),o=n(27),a={};function s(e){var t=a[e.id()];return t||i.a.pluck(o.a.all(),"name")}s.init=function(){scrivito.editingContext.isViewMode()||scrivito.on("content",(function(e){var t=scrivito.WidgetlistFieldElement.all($(e));i.a.each(t,(function(e){var t=e.basicField();a[t.id()]=JSON.parse(e.dom_element().attr("data-scrivito-private-field-widget-allowed-classes"))}))}))},s.clearCache=function(){a={}}},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(27),a=n(0),s=function(){function e(e){this.name=e.name,this.type=e.type,this.attributeData=e,"enum"!==this.type&&"multienum"!==this.type||(this.values=function(e,t){if(!e)return[];if(!t)return e;return Object(r.sortBy)(e,(function(n){var i=Object(r.findIndex)(t,{value:n});return-1===i?e.length:i}))}(this.attributeData.values,this.attributeData.valuesLocalization))}return e.prototype.title=function(){return this.attributeData.title},e.prototype.description=function(){return this.attributeData.description},e.prototype.typeInfo=function(){switch(this.type){case"enum":return["enum",{values:this.attributeData.values}];case"multienum":return["multienum",{values:this.attributeData.values}];default:return[this.type]}},e.prototype.orderedValues=function(){return this.assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have valid values"),this.values||[]},e.prototype.titleForValue=function(e){var t=this.attributeData.valuesLocalization;if(t){var n=Object(r.findWhere)(t,{value:e});if(n&&n.title)return n.title}return e},e.prototype.validClasses=function(){this.assertValidTypes(["reference","referencelist"],"Only reference and referencelist attributes can have valid classes");var e=this.attributeData.validClasses;return e&&i.a.existingClassesForNames(e)},e.prototype.only=function(){this.assertValidTypes(["widgetlist"],"Only widgetlist attributes have only()");var e=this.attributeData.validClasses;if(e)return Object(r.compact)(e.map((function(e){return o.a.find(e)})))},e.prototype.assertValidTypes=function(e,t){if(!Object(r.include)(e,this.type))throw new a.g(t)},e}();t.a=s},function(e,t,n){"use strict";var r=n(2),i=n(3),o=n(0),a=n(181),s=n(114),c=function(){function e(e){this.filter=e,this.collector=new s.default(this.filter)}return e.prototype.searchRequest=function(){var e=[];return Object(r.each)(this.collector.findActiveFilterItems(),(function(t){var n=function(e){if(e.hasQuery())return Object(a.a)(e.query());return function(e){if(e.hasField())return i.BasicObj.where(Object(o.o)(e.field()),Object(o.o)(e.operator()),e.values())}(e)}(t);n&&e.push(n)})),e},e}();t.a=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(182);function i(e){return e.toBasicObjSearch?e.toBasicObjSearch():Object(r.a)(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=n(3);function o(e){return new i.BasicObjSearch(Object(r.omit)(e,"sortBy","sortDirection"))}},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(2),a=n(179),s=n(90),c=n(0),u=n(5),l=n(7);function d(){var e=l.p.subState("railsThumbnails");return new u.LoadableData({state:e,loader:p,throwNotLoaded:!0})}function p(){return scrivito.ajax("GET","obj_class/thumbnails")}var f=function(){function e(e){var t=this;this.name=e.name,this._classData=e,this.attributes=Object(o.map)(e.attributes,(function(e){return t._buildAttribute(e)}))}return e.init=function(e){var t=this,n=e.map((function(e){return new t(e)}));s.a.register(this.type(),n)},e.find=function(e){return s.a.findByType(this.type(),e)},e.get=function(e){var t=this.find(e);if(t)return t;throw new c.g('Model class "'+e+'" does not exist.')},e.all=function(){return s.a.allForType(this.type())},e.prototype.title=function(){var e=this._classData.title;return e||(this.name?Object(c.N)(this.name):"")},e.prototype.description=function(){return this._classData.description},e.prototype.generalProperties=function(){return this._classData.properties||[]},e.prototype.propertiesGroups=function(){return this._classData.propertiesGroups||[]},e.prototype.thumbnail=function(){return this._classData.thumbnail},e.prototype.hasDetailsView=function(){return this.useRailsDetailsTemplate()&&!!this._classData.hasServerDetailsTemplate},e.prototype.attribute=function(e){return function(e){if(!Object(o.isString)(e))throw new c.a("Expected a string for attribute name, but got "+Object(c.I)(e));if(!e)throw new c.a("An empty string is not a valid attribute name")}(e),Object(o.findWhere)(this.attributes,{name:e})},e.prototype.useRailsDetailsTemplate=function(){return this.usesServerCallbacks()},e.prototype.useRailsThumbnailHtml=function(){return!this._classData.description&&!this._classData.thumbnail&&!!this._classData.usesServerCallbacks},e.prototype.railsThumbnailHtml=function(){return e=this.name,d().get()[e]||null;var e},e.prototype.usesServerCallbacks=function(){return!!this._classData.usesServerCallbacks},e.prototype.isHiddenInSelectionDialogs=function(){return!!this._classData.hideInSelectionDialogs},e.prototype.fetchDefaults=function(e){var t="obj_class/"+this.name+"/defaults",n="",r={};return e&&(r.attributes=function(e){return Object(o.mapObject)(e,(function(e){return Object(o.isDate)(e)?i.a.utc(e).toISOString():e}))}(e)),scrivito.applicationDocument().hasCurrentPage()&&(r.context={current_page_id:scrivito.applicationDocument().pageId()}),Object(o.isEmpty)(r)||(n="?"+$.param(r)),c.j.resolve(scrivito.ajax("GET",""+t+n))},e.prototype._buildAttribute=function(e){var t=e.title||this._fallbackAttributeTitle(e);return new a.a(Object(o.extend)({},e,{title:t}))},e.prototype._fallbackAttributeTitle=function(e){var t=e.name,n=e.type;return"blob"===t&&"binary"===n?this.title():Object(c.N)(t)},e}();t.a=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=t.Popper=t.Target=t.Manager=void 0;var r=s(n(552)),i=s(n(553)),o=s(n(554)),a=s(n(555));function s(e){return e&&e.__esModule?e:{default:e}}t.Manager=r.default,t.Target=i.default,t.Popper=o.default,t.Arrow=a.default},function(e,t,n){

/*! @preserve

*
* tcomb.js - Type checking and DDD for JavaScript
*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016 Giulio Canti
*
*/

var r=n(21);r.Any=n(91),r.Array=n(187),r.Boolean=n(127),r.Date=n(188),r.Error=n(189),r.Function=n(72),r.Nil=n(128),r.Number=n(129),r.Integer=n(190),r.IntegerT=r.Integer,r.Object=n(191),r.RegExp=n(192),r.String=n(94),r.Type=n(193),r.TypeT=r.Type,r.Arr=r.Array,r.Bool=r.Boolean,r.Dat=r.Date,r.Err=r.Error,r.Func=r.Function,r.Num=r.Number,r.Obj=r.Object,r.Re=r.RegExp,r.Str=r.String,r.dict=n(95),r.declare=n(194),r.enums=n(195),r.irreducible=n(36),r.list=n(131),r.maybe=n(196),r.refinement=n(93),r.struct=n(198),r.tuple=n(134),r.union=n(202),r.func=n(203),r.intersection=n(204),r.subtype=r.refinement,r.inter=n(205),r.interface=r.inter,r.assert=r,r.update=n(206),r.mixin=n(96),r.isType=n(34),r.is=n(50),r.getTypeName=n(29),r.match=n(207),e.exports=r},function(e,t){e.exports=function(e){throw new TypeError(“ ”+e)}},function(e,t,n){var r=n(36),i=n(47);e.exports=r(“Array”,i)},function(e,t,n){var r=n(36);e.exports=r(“Date”,(function(e){return e instanceof Date}))},function(e,t,n){var r=n(36);e.exports=r(“Error”,(function(e){return e instanceof Error}))},function(e,t,n){var r=n(93),i=n(129);e.exports=r(i,(function(e){return e%1==0}),“Integer”)},function(e,t,n){var r=n(36),i=n(46);e.exports=r(“Object”,i)},function(e,t,n){var r=n(36);e.exports=r(“RegExp”,(function(e){return e instanceof RegExp}))},function(e,t,n){var r=n(36),i=n(34);e.exports=r(“Type”,i)},function(e,t,n){n(21),n(38),n(34),n(45);var r=n(96),i=n(29),o=n(130),a=1;e.exports=function(e){var t;function n(e,n){return t(e,n)}return n.define=function(i){return o(i)&&n.hasOwnProperty(“dispatch”)&&(i.dispatch=n.dispatch),r(n,t=i,!0),e&&(t.displayName=n.displayName=e,n.meta.name=e),n.meta.identity=t.meta.identity,n.prototype=t.prototype,n},n.displayName=e||i(n)+“$”a+,n.meta={identity:!1},n.prototype=null,n}},function(e,t,n){var r=n(21),i=(n(38),n(64),n(92)),o=n(70);n(46);function a(e){return Object.keys(e).map((function(e){return r.stringify(e)})).join(“ | ”)}function s(e,t){var n=t||a(e);function r(e,t){return e}return r.meta={kind:“enums”,map:e,name:t,identity:!0},r.displayName=n,r.is=function(t){return(o(t)||i(t))&&e.hasOwnProperty(t)},r}s.of=function(e,t){e=o(e)?e.split(“ ”):e;var n={};return e.forEach((function(e){n=e})),s(n,t)},s.getDefaultName=a,e.exports=s},function(e,t,n){n(21),n(38),n(33);var r=n(197),i=n(48),o=n(91),a=n(49),s=n(128),c=(n(64),n(50)),u=n(29);function l(e){return“?”+u(e)}function d(e,t){if(r(e)||e===o||e===s)return e;var n=t||l(e),u=i(e);function d(t,n){return s.is(t)?t:a(e,t,n)}return d.meta={kind:“maybe”,type:e,name:t,identity:u},d.displayName=n,d.is=function(t){return s.is(t)||c(t,e)},d}d.getDefaultName=l,e.exports=d},function(e,t,n){var r=n(34);e.exports=function(e){return r(e)&&“maybe”===e.meta.kind}},function(e,t,n){var r=n(21),i=(n(38),n(94),n(72),n(71),n(46)),o=n(45),a=n(49),s=(n(29),n(95),n(132)),c=n(133);function u(e){return“Struct”+s(e)}function l(e,t){return c(p,e,t)}function d(e){return i(e)||(e=o(e)?{}:{name:e}),e.hasOwnProperty(“strict”)||(e.strict=p.strict),e.hasOwnProperty(“defaultProps”)||(e.defaultProps={}),e}function p(e,t){var n=(t=d(t)).name,i=t.strict,o=t.defaultProps;var s=n||u(e);function c(t,n){if(c.is(t))return t;if(!(this instanceof c))return new c(t,n);for(var r in e)if(e.hasOwnProperty®){var i=e,s=t;void 0===s&&(s=o),this=a(i,s,null)}}return c.meta={kind:“struct”,props:e,name:n,identity:!1,strict:i,defaultProps:o},c.displayName=s,c.is=function(e){return e instanceof c},c.update=function(e,t){return new c(r.update(e,t))},c.extend=function(e,t){return l(.concat(e),t)},c}p.strict=!1,p.getOptions=d,p.getDefaultName=u,p.extend=l,e.exports=p},function(e,t,n){var r=n(34);e.exports=function(e){return r(e)&&“struct”===e.meta.kind}},function(e,t,n){var r=n(34);e.exports=function(e){return r(e)&&“interface”===e.meta.kind}},function(e,t,n){var r=n(34);function i(e){return r(e)&&“subtype”===e.meta.kind}function o(e){return i(e)?.concat(o(e.meta.type)):[]}function a(e){return i(e)?a(e.meta.type):e}e.exports=function(e){return{predicates:o(e),unrefinedType:a(e)}}},function(e,t,n){var r=n(21),i=(n(38),n(33),n(29)),o=n(48),a=(n(47),n(49)),s=n(50),c=(n(64),n(130)),u=n(45);function l(e){return e.map(i).join(“ | ”)}function d(e,t){var n=t||l(e),i=e.every(o);function d(e,t){if(i)return e;var n=d.dispatch(e);return!n&&d.is(e)?e:a(n,e,t)}return d.meta={kind:“union”,types:e,name:t,identity:i},d.displayName=n,d.is=function(t){return e.some((function(e){return s(t,e)}))},d.dispatch=function(t){for(var n=0,r=e.length;n<r;n++){var i=e;if(c(i)){var o=i.dispatch(t);if(!u(o))return o}else if(s(t,i))return i}},d.update=function(e,t){return d(r.update(e,t))},d}d.getDefaultName=l,e.exports=d},function(e,t,n){n(21),n(38);var r=n(72),i=n(47),o=(n(131),n(46)),a=n(49),s=(n(45),n(71),n(134),n(63)),c=n(29),u=n(34);function l(e,t){return“(”+e.map©.join(“, ”)+“) => ”+c(t)}function d(e){return r.is(e)&&o(e.instrumentation)}function p(e){for(var t=e.length,n=!1,r=t-1;r>=0;r–){var i=e;if(!u(i)||“maybe”!==i.meta.kind)return r+1;n=!0}return n?0:t}function f(e,t,n){e=i(e)?e:;var r=n||l(e,t),o=e.length;p(e);function c(e,t){return d(e)?e:c.of(e)}return c.meta={kind:“func”,domain:e,codomain:t,name:n,identity:!0},c.displayName=r,c.is=function(n){return d(n)&&n.instrumentation.domain.length===o&&n.instrumentation.domain.every((function(t,n){return t===e}))&&n.instrumentation.codomain===t},c.of=function(n,r){if(c.is(n))return n;function i(){var i=Array.prototype.slice.call(arguments),s=i.length;if(r&&s<o){0;var c=Function.prototype.bind.apply(n,.concat(i)),u=f(e.slice(s),t);return u.of(c,!0)}return a(t,n.apply(this,i))}return i.instrumentation={domain:e,codomain:t,f:n},i.displayName=s(n),i},c}f.getDefaultName=l,f.getOptionalArgumentsIndex=p,e.exports=f},function(e,t,n){var r=n(21),i=(n(38),n(33),n(47),n(48),n(50)),o=n(29),a=n(48);function s(e){return e.map(o).join(“ & ”)}function c(e,t){var n=t||s(e),o=e.every(a);function c(e,t){return e}return c.meta={kind:“intersection”,types:e,name:t,identity:o},c.displayName=n,c.is=function(t){return e.every((function(e){return i(t,e)}))},c.update=function(e,t){return c(r.update(e,t))},c}c.getDefaultName=s,e.exports=c},function(e,t,n){var r=n(21),i=(n(38),n(94),n(72),n(71),n(46)),o=n(45),a=n(49),s=(n(29),n(95),n(132)),c=n(48),u=n(50),l=n(133),d=n(135);function p(e,t){return l(h,e,t)}function f(e){return i(e)||(e=o(e)?{}:{name:e}),e.hasOwnProperty(“strict”)||(e.strict=h.strict),e}function h(e,t){var n=(t=f(t)).name,i=t.strict;var l=n||s(e),h=Object.keys(e).map((function(t){return e})).every©;function m(t,n){if(h)return t;var r=!0,i=h?{}:d({},t);for(var o in e){var s=e,c=t,u=a(s,c,null);r=r&&c===u,i=u}return r&&(i=t),i}return m.meta={kind:“interface”,props:e,name:n,identity:h,strict:i},m.displayName=l,m.is=function(t){if(o(t))return!1;if(i)for(var n in t)if(!e.hasOwnProperty(n))return!1;for(var r in e)if(!u(t,e))return!1;return!0},m.update=function(e,t){return m(r.update(e,t))},m.extend=function(e,t){return p(.concat(e),t)},m}h.strict=!1,h.getOptions=f,h.getDefaultName=s,h.extend=p,e.exports=h},function(e,t,n){n(21);var r=n(46),i=(n(33),n(47)),o=(n(92),n(135));function a(e){return r(e)?e instanceof Date||e instanceof RegExp?e:o({},e):i(e)?e.concat():e}function s(e){return u.commands.hasOwnProperty(e)}function c(e){return u.commands}function u(e,t){var n,r=e,i=!1;for(var o in t)t.hasOwnProperty(o)&&(s(o)?(n=c(o)(t,r))!==e?(i=!0,r=n):r=e:(r===e&&(r=a(e)),n=u(r,t),i=i||n!==r,r=n));return i?r:e}u.commands={$apply:function(e,t){return e(t)},$push:function(e,t){return e.length>0?t.concat(e):t},$remove:function(e,t){if(e.length>0){t=a(t);for(var n=0,r=e.length;n<r;n++)delete t[e]}return t},$set:function(e){return e},$splice:function(e,t){return e.length>0?(t=a(t),e.reduce((function(e,t){return e.splice.apply(e,t),e}),t)):t},$swap:function(e,t){if(e.from!==e.to){var n=(t=a(t));t=t,t=n}return t},$unshift:function(e,t){return e.length>0?e.concat(t):t},$merge:function(e,t){var n=!1,r=a(t);for(var i in e)e.hasOwnProperty(i)&&(r=e,n=n||r!==t);return n?r:t}},e.exports=u},function(e,t,n){var r=n(21),i=n(33),o=n(34),a=n(91);e.exports=function(e){for(var t,n,s,c=1,u=arguments.length;c,n=arguments,i(s=arguments)&&!o(s)?c+=3:(s=n,n=a.is,c+=2),t.is(e)&&n(e))return s(e);r.fail(“Match error”)}},function(e,t,n){(function(e){var r=void 0!==e&&e||“undefined”!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(209),t.setImmediate=“undefined”!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate=“undefined”!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(41))},function(e,t,n){(function(e,t){!function(e,n){“use strict”;if(!e.setImmediate){var r,i,o,a,s,c=1,u={},l=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,“[object process]”==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(“”,“*”),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){o.port2.postMessage(e)}):d&&“onreadystatechange”in d.createElement(“script”)?(i=d.documentElement,r=function(e){var t=d.createElement(“script”);t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a=“setImmediate$”+Math.random()+“$”,s=function(t){t.source===e&&“string”==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener(“message”,s,!1):e.attachEvent(“onmessage”,s),r=function(t){e.postMessage(a+t,“*”)}),p.setImmediate=function(e){“function”!=typeof e&&(e=new Function(“”+e));for(var t=new Array(arguments.length-1),n=0;n=arguments;var i={callback:e,args:t};return u=i,r©,c++},p.clearImmediate=f}function f(e){delete u}function h(e){if(l)setTimeout(h,0,e);else{var t=u;if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n);break;case 2:t(n,n);break;case 3:t(n,n,n);break;default:t.apply(void 0,n)}}(t)}finally{f(e),l=!1}}}}}(“undefined”==typeof self?void 0===e?this:e:self)}).call(this,n(41),n(97))},function(e,t,n){var r;!function(n){“use strict”;var i={“À”:“A”,“Á”:“A”,“”:“A”,“Ô:“A”,“Ä”:“Ae”,“Å”:“A”,“Æ”:“AE”,“Ç”:“C”,“È”:“E”,“É”:“E”,“Ê”:“E”,“Ë”:“E”,“Ì”:“I”,“Í”:“I”,“Δ:“I”,“Ï”:“I”,“Д:“D”,“Ñ”:“N”,“Ò”:“O”,“Ó”:“O”,“Ô”:“O”,“Õ”:“O”,“Ö”:“Oe”,“Ő”:“O”,“Ø”:“O”,“Ù”:“U”,“Ú”:“U”,“Û”:“U”,“Ü”:“Ue”,“Ű”:“U”,“Ý”:“Y”,“Þ”:“TH”,“ß”:“ss”,“à”:“a”,“á”:“a”,“â”:“a”,“ã”:“a”,“ä”:“ae”,“å”:“a”,“æ”:“ae”,“ç”:“c”,“è”:“e”,“é”:“e”,“ê”:“e”,“ë”:“e”,“ì”:“i”,“í”:“i”,“î”:“i”,“ï”:“i”,“ð”:“d”,“ñ”:“n”,“ò”:“o”,“ó”:“o”,“ô”:“o”,“õ”:“o”,“ö”:“oe”,“ő”:“o”,“ø”:“o”,“ù”:“u”,“ú”:“u”,“û”:“u”,“ü”:“ue”,“ű”:“u”,“ý”:“y”,“þ”:“th”,“ÿ”:“y”,“ẞ”:“SS”,“ا”:“a”,“أ”:“a”,“إ”:“i”,“آ”:“aa”,“ؤ”:“u”,“ئ”:“e”,“ء”:“a”,“ب”:“b”,“ت”:“t”,“ث”:“th”,“ج”:“j”,“ح”:“h”,“خ”:“kh”,“د”:“d”,“ذ”:“th”,“ر”:“r”,“ز”:“z”,“س”:“s”,“ش”:“sh”,“ص”:“s”,“ض”:“dh”,“ط”:“t”,“ظ”:“z”,“ع”:“a”,“غ”:“gh”,“ف”:“f”,“ق”:“q”,“ك”:“k”,“ل”:“l”,“م”:“m”,“ن”:“n”,“ه”:“h”,“و”:“w”,“ي”:“y”,“ى”:“a”,“ة”:“h”,“ﻻ”:“la”,“ﻷ”:“laa”,“ﻹ”:“lai”,“ﻵ”:“laa”,“گ”:“g”,“چ”:“ch”,“پ”:“p”,“ژ”:“zh”,“ک”:“k”,“ی”:“y”,“َ”:“a”,“ً”:“an”,“ِ”:“e”,“ٍ”:“en”,“ُ”:“u”,“ٌ”:“on”,“ْ”:“”,“٠”:“0”,“١”:“1”,“٢”:“2”,“٣”:“3”,“٤”:“4”,“٥”:“5”,“٦”:“6”,“٧”:“7”,“٨”:“8”,“٩”:“9”,“۰”:“0”,“۱”:“1”,“۲”:“2”,“۳”:“3”,“۴”:“4”,“۵”:“5”,“۶”:“6”,“۷”:“7”,“۸”:“8”,“۹”:“9”,“က”:“k”,“ခ”:“kh”,“ဂ”:“g”,“ဃ”:“ga”,“င”:“ng”,“စ”:“s”,“ဆ”:“sa”,“ဇ”:“z”,“စျ”:“za”,“ည”:“ny”,“ဋ”:“t”,“ဌ”:“ta”,“ဍ”:“d”,“ဎ”:“da”,“ဏ”:“na”,“တ”:“t”,“ထ”:“ta”,“ဒ”:“d”,“ဓ”:“da”,“န”:“n”,“ပ”:“p”,“ဖ”:“pa”,“ဗ”:“b”,“ဘ”:“ba”,“မ”:“m”,“ယ”:“y”,“ရ”:“ya”,“လ”:“l”,“ဝ”:“w”,“သ”:“th”,“ဟ”:“h”,“ဠ”:“la”,“အ”:“a”,“ြ”:“y”,“ျ”:“ya”,“ွ”:“w”,“ြွ”:“yw”,“ျွ”:“ywa”,“ှ”:“h”,“ဧ”:“e”,“၏”:“-e”,“ဣ”:“i”,“ဤ”:“-i”,“ဉ”:“u”,“ဦ”:“-u”,“ဩ”:“aw”,“သြော”:“aw”,“ဪ”:“aw”,“၀”:“0”,“၁”:“1”,“၂”:“2”,“၃”:“3”,“၄”:“4”,“၅”:“5”,“၆”:“6”,“၇”:“7”,“၈”:“8”,“၉”:“9”,“္”:“”,“့”:“”,“း”:“”,“č”:“c”,“ď”:“d”,“ě”:“e”,“ň”:“n”,“ř”:“r”,“š”:“s”,“ť”:“t”,“ů”:“u”,“ž”:“z”,“Č”:“C”,“Ď”:“D”,“Ě”:“E”,“Ň”:“N”,“Ř”:“R”,“Š”:“S”,“Ť”:“T”,“Ů”:“U”,“Ž”:“Z”,“ހ”:“h”,“ށ”:“sh”,“ނ”:“n”,“ރ”:“r”,“ބ”:“b”,“ޅ”:“lh”,“ކ”:“k”,“އ”:“a”,“ވ”:“v”,“މ”:“m”,“ފ”:“f”,“ދ”:“dh”,“ތ”:“th”,“ލ”:“l”,“ގ”:“g”,“ޏ”:“gn”,“ސ”:“s”,“ޑ”:“d”,“ޒ”:“z”,“ޓ”:“t”,“ޔ”:“y”,“ޕ”:“p”,“ޖ”:“j”,“ޗ”:“ch”,“ޘ”:“tt”,“ޙ”:“hh”,“ޚ”:“kh”,“ޛ”:“th”,“ޜ”:“z”,“ޝ”:“sh”,“ޞ”:“s”,“ޟ”:“d”,“ޠ”:“t”,“ޡ”:“z”,“ޢ”:“a”,“ޣ”:“gh”,“ޤ”:“q”,“ޥ”:“w”,“ަ”:“a”,“ާ”:“aa”,“ި”:“i”,“ީ”:“ee”,“ު”:“u”,“ޫ”:“oo”,“ެ”:“e”,“ޭ”:“ey”,“ޮ”:“o”,“ޯ”:“oa”,“ް”:“”,“ა”:“a”,“ბ”:“b”,“გ”:“g”,“დ”:“d”,“ე”:“e”,“ვ”:“v”,“ზ”:“z”,“თ”:“t”,“ი”:“i”,“კ”:“k”,“ლ”:“l”,“მ”:“m”,“ნ”:“n”,“ო”:“o”,“პ”:“p”,“ჟ”:“zh”,“რ”:“r”,“ს”:“s”,“ტ”:“t”,“უ”:“u”,“ფ”:“p”,“ქ”:“k”,“ღ”:“gh”,“ყ”:“q”,“შ”:“sh”,“ჩ”:“ch”,“ც”:“ts”,“ძ”:“dz”,“წ”:“ts”,“ჭ”:“ch”,“ხ”:“kh”,“ჯ”:“j”,“ჰ”:“h”,“α”:“a”,“β”:“v”,“γ”:“g”,“δ”:“d”,“ε”:“e”,“ζ”:“z”,“η”:“i”,“θ”:“th”,“ι”:“i”,“κ”:“k”,“λ”:“l”,“μ”:“m”,“ν”:“n”,“ξ”:“ks”,“ο”:“o”,“π”:“p”,“ρ”:“r”,“σ”:“s”,“τ”:“t”,“υ”:“y”,“φ”:“f”,“χ”:“x”,“ψ”:“ps”,“ω”:“o”,“ά”:“a”,“έ”:“e”,“ί”:“i”,“ό”:“o”,“ύ”:“y”,“ή”:“i”,“ώ”:“o”,“ς”:“s”,“ϊ”:“i”,“ΰ”:“y”,“ϋ”:“y”,“ΐ”:“i”,“Α”:“A”,“Β”:“B”,“Γ”:“G”,“Δ”:“D”,“Ε”:“E”,“Ζ”:“Z”,“Η”:“I”,“Θ”:“TH”,“Ι”:“I”,“Κ”:“K”,“Λ”:“L”,“Μ”:“M”,“Ν”:“N”,“Ξ”:“KS”,“Ο”:“O”,“Π”:“P”,“Ρ”:“R”,“Σ”:“S”,“Τ”:“T”,“Υ”:“Y”,“Φ”:“F”,“Χ”:“X”,“Ψ”:“PS”,“Ω”:“O”,“Ά”:“A”,“Έ”:“E”,“Ί”:“I”,“Ό”:“O”,“Ύ”:“Y”,“Ή”:“I”,“Ώ”:“O”,“Ϊ”:“I”,“Ϋ”:“Y”,“ā”:“a”,“ē”:“e”,“ģ”:“g”,“ī”:“i”,“ķ”:“k”,“ļ”:“l”,“ņ”:“n”,“ū”:“u”,“Ā”:“A”,“Ē”:“E”,“Ģ”:“G”,“Ī”:“I”,“Ķ”:“k”,“Ļ”:“L”,“Ņ”:“N”,“Ū”:“U”,“Ќ”:“Kj”,“ќ”:“kj”,“Љ”:“Lj”,“љ”:“lj”,“Њ”:“Nj”,“њ”:“nj”,“Тс”:“Ts”,“тс”:“ts”,“ą”:“a”,“ć”:“c”,“ę”:“e”,“ł”:“l”,“ń”:“n”,“ś”:“s”,“ź”:“z”,“ż”:“z”,“Ą”:“A”,“Ć”:“C”,“Ę”:“E”,“Ł”:“L”,“Ń”:“N”,“Ś”:“S”,“Ź”:“Z”,“Ż”:“Z”,“Є”:“Ye”,“І”:“I”,“Ї”:“Yi”,“Ґ”:“G”,“є”:“ye”,“і”:“i”,“ї”:“yi”,“ґ”:“g”,“ă”:“a”,“Ă”:“A”,“ș”:“s”,“Ș”:“S”,“ț”:“t”,“Ț”:“T”,“ţ”:“t”,“Ţ”:“T”,“а”:“a”,“б”:“b”,“в”:“v”,“г”:“g”,“д”:“d”,“е”:“e”,“ё”:“yo”,“ж”:“zh”,“з”:“z”,“и”:“i”,“й”:“i”,“к”:“k”,“л”:“l”,“м”:“m”,“н”:“n”,“о”:“o”,“п”:“p”,“р”:“r”,“с”:“s”,“т”:“t”,“у”:“u”,“ф”:“f”,“х”:“kh”,“ц”:“c”,“ч”:“ch”,“ш”:“sh”,“щ”:“sh”,“ъ”:“”,“ы”:“y”,“ь”:“”,“э”:“e”,“ю”:“yu”,“я”:“ya”,“А”:“A”,“Б”:“B”,“В”:“V”,“Г”:“G”,“Д”:“D”,“Е”:“E”,“Ё”:“Yo”,“Ж”:“Zh”,“З”:“Z”,“И”:“I”,“Й”:“I”,“К”:“K”,“Л”:“L”,“М”:“M”,“Н”:“N”,“О”:“O”,“П”:“P”,“Р”:“R”,“С”:“S”,“Т”:“T”,“У”:“U”,“Ф”:“F”,“Х”:“Kh”,“Ц”:“C”,“Ч”:“Ch”,“Ш”:“Sh”,“Щ”:“Sh”,“Ъ”:“”,“Ы”:“Y”,“Ь”:“”,“Э”:“E”,“Ю”:“Yu”,“Я”:“Ya”,“ђ”:“dj”,“ј”:“j”,“ћ”:“c”,“џ”:“dz”,“Ђ”:“Dj”,“Ј”:“j”,“Ћ”:“C”,“Џ”:“Dz”,“ľ”:“l”,“ĺ”:“l”,“ŕ”:“r”,“Ľ”:“L”,“Ĺ”:“L”,“Ŕ”:“R”,“ş”:“s”,“Ş”:“S”,“ı”:“i”,“İ”:“I”,“ğ”:“g”,“Ğ”:“G”,“ả”:“a”,“Ả”:“A”,“ẳ”:“a”,“Ẳ”:“A”,“ẩ”:“a”,“Ẩ”:“A”,“đ”:“d”,“Đ”:“D”,“ẹ”:“e”,“Ẹ”:“E”,“ẽ”:“e”,“Ẽ”:“E”,“ẻ”:“e”,“Ẻ”:“E”,“ế”:“e”,“Ế”:“E”,“ề”:“e”,“Ề”:“E”,“ệ”:“e”,“Ệ”:“E”,“ễ”:“e”,“Ễ”:“E”,“ể”:“e”,“Ể”:“E”,“ỏ”:“o”,“ọ”:“o”,“Ọ”:“o”,“ố”:“o”,“Ố”:“O”,“ồ”:“o”,“Ồ”:“O”,“ổ”:“o”,“Ổ”:“O”,“ộ”:“o”,“Ộ”:“O”,“ỗ”:“o”,“Ỗ”:“O”,“ơ”:“o”,“Ơ”:“O”,“ớ”:“o”,“Ớ”:“O”,“ờ”:“o”,“Ờ”:“O”,“ợ”:“o”,“Ợ”:“O”,“ỡ”:“o”,“Ỡ”:“O”,“Ở”:“o”,“ở”:“o”,“ị”:“i”,“Ị”:“I”,“ĩ”:“i”,“Ĩ”:“I”,“ỉ”:“i”,“Ỉ”:“i”,“ủ”:“u”,“Ủ”:“U”,“ụ”:“u”,“Ụ”:“U”,“ũ”:“u”,“Ũ”:“U”,“ư”:“u”,“Ư”:“U”,“ứ”:“u”,“Ứ”:“U”,“ừ”:“u”,“Ừ”:“U”,“ự”:“u”,“Ự”:“U”,“ữ”:“u”,“Ữ”:“U”,“ử”:“u”,“Ử”:“ư”,“ỷ”:“y”,“Ỷ”:“y”,“ỳ”:“y”,“Ỳ”:“Y”,“ỵ”:“y”,“Ỵ”:“Y”,“ỹ”:“y”,“Ỹ”:“Y”,“ạ”:“a”,“Ạ”:“A”,“ấ”:“a”,“Ấ”:“A”,“ầ”:“a”,“Ầ”:“A”,“ậ”:“a”,“Ậ”:“A”,“ẫ”:“a”,“Ẫ”:“A”,“ắ”:“a”,“Ắ”:“A”,“ằ”:“a”,“Ằ”:“A”,“ặ”:“a”,“Ặ”:“A”,“ẵ”:“a”,“Ẵ”:“A”,“⓪”:“0”,“①”:“1”,“②”:“2”,“③”:“3”,“④”:“4”,“⑤”:“5”,“⑥”:“6”,“⑦”:“7”,“⑧”:“8”,“⑨”:“9”,“⑩”:“10”,“⑪”:“11”,“⑫”:“12”,“⑬”:“13”,“⑭”:“14”,“⑮”:“15”,“⑯”:“16”,“⑰”:“17”,“⑱”:“18”,“⑲”:“18”,“⑳”:“18”,“⓵”:“1”,“⓶”:“2”,“⓷”:“3”,“⓸”:“4”,“⓹”:“5”,“⓺”:“6”,“⓻”:“7”,“⓼”:“8”,“⓽”:“9”,“⓾”:“10”,“⓿”:“0”,“⓫”:“11”,“⓬”:“12”,“⓭”:“13”,“⓮”:“14”,“⓯”:“15”,“⓰”:“16”,“⓱”:“17”,“⓲”:“18”,“⓳”:“19”,“⓴”:“20”,“Ⓐ”:“A”,“Ⓑ”:“B”,“Ⓒ”:“C”,“Ⓓ”:“D”,“Ⓔ”:“E”,“Ⓕ”:“F”,“Ⓖ”:“G”,“Ⓗ”:“H”,“Ⓘ”:“I”,“Ⓙ”:“J”,“Ⓚ”:“K”,“Ⓛ”:“L”,“Ⓜ”:“M”,“Ⓝ”:“N”,“Ⓞ”:“O”,“Ⓟ”:“P”,“Ⓠ”:“Q”,“Ⓡ”:“R”,“Ⓢ”:“S”,“Ⓣ”:“T”,“Ⓤ”:“U”,“Ⓥ”:“V”,“Ⓦ”:“W”,“Ⓧ”:“X”,“Ⓨ”:“Y”,“Ⓩ”:“Z”,“ⓐ”:“a”,“ⓑ”:“b”,“ⓒ”:“c”,“ⓓ”:“d”,“ⓔ”:“e”,“ⓕ”:“f”,“ⓖ”:“g”,“ⓗ”:“h”,“ⓘ”:“i”,“ⓙ”:“j”,“ⓚ”:“k”,“ⓛ”:“l”,“ⓜ”:“m”,“ⓝ”:“n”,“ⓞ”:“o”,“ⓟ”:“p”,“ⓠ”:“q”,“ⓡ”:“r”,“ⓢ”:“s”,“ⓣ”:“t”,“ⓤ”:“u”,“ⓦ”:“v”,“ⓥ”:“w”,“ⓧ”:“x”,“ⓨ”:“y”,“ⓩ”:“z”,““”:'“',””“:'”',“‘”:“'”,“’”:“'”,“∂”:“d”,“ƒ”:“f”,“™”:“(TM)”,“©”:“(C)”,“œ”:“oe”,“Œ”:“OE”,“®”:“(R)”,“†”:“+”,“℠”:“(SM)”,“…”:“…”,“˚”:“o”,“º”:“o”,“ª”:“a”,“•”:“*”,“၊”:“,”,“။”:“.”,$:“USD”,“€”:“EUR”,“₢”:“BRN”,“₣”:“FRF”,“£”:“GBP”,“₤”:“ITL”,“₦”:“NGN”,“₧”:“ESP”,“₩”:“KRW”,“₪”:“ILS”,“₫”:“VND”,“₭”:“LAK”,“₮”:“MNT”,“₯”:“GRD”,“₱”:“ARS”,“₲”:“PYG”,“₳”:“ARA”,“₴”:“UAH”,“₵”:“GHS”,“¢”:“cent”,“¥”:“CNY”,“元”:“CNY”,“円”:“YEN”,“﷼”:“IRR”,“₠”:“EWE”,“฿”:“THB”,“₨”:“INR”,“₹”:“INR”,“₰”:“PF”,“₺”:“TRY”,“؋”:“AFN”,“₼”:“AZN”,“лв”:“BGN”,“៛”:“KHR”,“₡”:“CRC”,“₸”:“KZT”,“ден”:“MKD”,“zł”:“PLN”,“₽”:“RUB”,“₾”:“GEL”},o=,a={“ာ”:“a”,“ါ”:“a”,“ေ”:“e”,“ဲ”:“e”,“ိ”:“i”,“ီ”:“i”,“ို”:“o”,“ု”:“u”,“ူ”:“u”,“ေါင်”:“aung”,“ော”:“aw”,“ော်”:“aw”,“ေါ”:“aw”,“ေါ်”:“aw”,“်”:“်”,“က်”:“et”,“ိုက်”:“aik”,“ောက်”:“auk”,“င်”:“in”,“ိုင်”:“aing”,“ောင်”:“aung”,“စ်”:“it”,“ည်”:“i”,“တ်”:“at”,“ိတ်”:“eik”,“ုတ်”:“ok”,“ွတ်”:“ut”,“ေတ်”:“it”,“ဒ်”:“d”,“ိုဒ်”:“ok”,“ုဒ်”:“ait”,“န်”:“an”,“ာန်”:“an”,“ိန်”:“ein”,“ုန်”:“on”,“ွန်”:“un”,“ပ်”:“at”,“ိပ်”:“eik”,“ုပ်”:“ok”,“ွပ်”:“ut”,“န်ုပ်”:“nub”,“မ်”:“an”,“ိမ်”:“ein”,“ုမ်”:“on”,“ွမ်”:“un”,“ယ်”:“e”,“ိုလ်”:“ol”,“ဉ်”:“in”,“ံ”:“an”,“ိံ”:“ein”,“ုံ”:“on”,“ައް”:“ah”,“ަށް”:“ah”},s={en:{},az:{“ç”:“c”,“ə”:“e”,“ğ”:“g”,“ı”:“i”,“ö”:“o”,“ş”:“s”,“ü”:“u”,“Ç”:“C”,“Ə”:“E”,“Ğ”:“G”,“İ”:“I”,“Ö”:“O”,“Ş”:“S”,“Ü”:“U”},cs:{“č”:“c”,“ď”:“d”,“ě”:“e”,“ň”:“n”,“ř”:“r”,“š”:“s”,“ť”:“t”,“ů”:“u”,“ž”:“z”,“Č”:“C”,“Ď”:“D”,“Ě”:“E”,“Ň”:“N”,“Ř”:“R”,“Š”:“S”,“Ť”:“T”,“Ů”:“U”,“Ž”:“Z”},fi:{“ä”:“a”,“Ä”:“A”,“ö”:“o”,“Ö”:“O”},hu:{“ä”:“a”,“Ä”:“A”,“ö”:“o”,“Ö”:“O”,“ü”:“u”,“Ü”:“U”,“ű”:“u”,“Ű”:“U”},lt:{“ą”:“a”,“č”:“c”,“ę”:“e”,“ė”:“e”,“į”:“i”,“š”:“s”,“ų”:“u”,“ū”:“u”,“ž”:“z”,“Ą”:“A”,“Č”:“C”,“Ę”:“E”,“Ė”:“E”,“Į”:“I”,“Š”:“S”,“Ų”:“U”,“Ū”:“U”},lv:{“ā”:“a”,“č”:“c”,“ē”:“e”,“ģ”:“g”,“ī”:“i”,“ķ”:“k”,“ļ”:“l”,“ņ”:“n”,“š”:“s”,“ū”:“u”,“ž”:“z”,“Ā”:“A”,“Č”:“C”,“Ē”:“E”,“Ģ”:“G”,“Ī”:“i”,“Ķ”:“k”,“Ļ”:“L”,“Ņ”:“N”,“Š”:“S”,“Ū”:“u”,“Ž”:“Z”},pl:{“ą”:“a”,“ć”:“c”,“ę”:“e”,“ł”:“l”,“ń”:“n”,“ó”:“o”,“ś”:“s”,“ź”:“z”,“ż”:“z”,“Ą”:“A”,“Ć”:“C”,“Ę”:“e”,“Ł”:“L”,“Ń”:“N”,“Ó”:“O”,“Ś”:“S”,“Ź”:“Z”,“Ż”:“Z”},sv:{“ä”:“a”,“Ä”:“A”,“ö”:“o”,“Ö”:“O”},sk:{“ä”:“a”,“Ä”:“A”},sr:{“љ”:“lj”,“њ”:“nj”,“Љ”:“Lj”,“Њ”:“Nj”,“đ”:“dj”,“Đ”:“Dj”},tr:{“Ü”:“U”,“Ö”:“O”,“ü”:“u”,“ö”:“o”}},c={ar:{“∆”:“delta”,“∞”:“la-nihaya”,“♥”:“hob”,“&”:“wa”,“|”:“aw”,“<”:“aqal-men”,“>”:“akbar-men”,“∑”:“majmou”,“¤”:“omla”},az:{},ca:{“∆”:“delta”,“∞”:“infinit”,“♥”:“amor”,“&”:“i”,“|”:“o”,“<”:“menys que”,“>”:“mes que”,“∑”:“suma dels”,“¤”:“moneda”},cs:{“∆”:“delta”,“∞”:“nekonecno”,“♥”:“laska”,“&”:“a”,“|”:“nebo”,“<”:“mensi nez”,“>”:“vetsi nez”,“∑”:“soucet”,“¤”:“mena”},de:{“∆”:“delta”,“∞”:“unendlich”,“♥”:“Liebe”,“&”:“und”,“|”:“oder”,“<”:“kleiner als”,“>”:“groesser als”,“∑”:“Summe von”,“¤”:“Waehrung”},dv:{“∆”:“delta”,“∞”:“kolunulaa”,“♥”:“loabi”,“&”:“aai”,“|”:“noonee”,“<”:“ah vure kuda”,“>”:“ah vure bodu”,“∑”:“jumula”,“¤”:“faisaa”},en:{“∆”:“delta”,“∞”:“infinity”,“♥”:“love”,“&”:“and”,“|”:“or”,“<”:“less than”,“>”:“greater than”,“∑”:“sum”,“¤”:“currency”},es:{“∆”:“delta”,“∞”:“infinito”,“♥”:“amor”,“&”:“y”,“|”:“u”,“<”:“menos que”,“>”:“mas que”,“∑”:“suma de los”,“¤”:“moneda”},fa:{“∆”:“delta”,“∞”:“bi-nahayat”,“♥”:“eshgh”,“&”:“va”,“|”:“ya”,“<”:“kamtar-az”,“>”:“bishtar-az”,“∑”:“majmooe”,“¤”:“vahed”},fi:{“∆”:“delta”,“∞”:“aarettomyys”,“♥”:“rakkaus”,“&”:“ja”,“|”:“tai”,“<”:“pienempi kuin”,“>”:“suurempi kuin”,“∑”:“summa”,“¤”:“valuutta”},fr:{“∆”:“delta”,“∞”:“infiniment”,“♥”:“Amour”,“&”:“et”,“|”:“ou”,“<”:“moins que”,“>”:“superieure a”,“∑”:“somme des”,“¤”:“monnaie”},ge:{“∆”:“delta”,“∞”:“usasruloba”,“♥”:“siqvaruli”,“&”:“da”,“|”:“an”,“<”:“naklebi”,“>”:“meti”,“∑”:“jami”,“¤”:“valuta”},gr:{},hu:{“∆”:“delta”,“∞”:“vegtelen”,“♥”:“szerelem”,“&”:“es”,“|”:“vagy”,“<”:“kisebb mint”,“>”:“nagyobb mint”,“∑”:“szumma”,“¤”:“penznem”},it:{“∆”:“delta”,“∞”:“infinito”,“♥”:“amore”,“&”:“e”,“|”:“o”,“<”:“minore di”,“>”:“maggiore di”,“∑”:“somma”,“¤”:“moneta”},lt:{“∆”:“delta”,“∞”:“begalybe”,“♥”:“meile”,“&”:“ir”,“|”:“ar”,“<”:“maziau nei”,“>”:“daugiau nei”,“∑”:“suma”,“¤”:“valiuta”},lv:{“∆”:“delta”,“∞”:“bezgaliba”,“♥”:“milestiba”,“&”:“un”,“|”:“vai”,“<”:“mazak neka”,“>”:“lielaks neka”,“∑”:“summa”,“¤”:“valuta”},my:{“∆”:“kwahkhyaet”,“∞”:“asaonasme”,“♥”:“akhyait”,“&”:“nhin”,“|”:“tho”,“<”:“ngethaw”,“>”:“kyithaw”,“∑”:“paungld”,“¤”:“ngwekye”},mk:{},nl:{“∆”:“delta”,“∞”:“oneindig”,“♥”:“liefde”,“&”:“en”,“|”:“of”,“<”:“kleiner dan”,“>”:“groter dan”,“∑”:“som”,“¤”:“valuta”},pl:{“∆”:“delta”,“∞”:“nieskonczonosc”,“♥”:“milosc”,“&”:“i”,“|”:“lub”,“<”:“mniejsze niz”,“>”:“wieksze niz”,“∑”:“suma”,“¤”:“waluta”},pt:{“∆”:“delta”,“∞”:“infinito”,“♥”:“amor”,“&”:“e”,“|”:“ou”,“<”:“menor que”,“>”:“maior que”,“∑”:“soma”,“¤”:“moeda”},ro:{“∆”:“delta”,“∞”:“infinit”,“♥”:“dragoste”,“&”:“si”,“|”:“sau”,“<”:“mai mic ca”,“>”:“mai mare ca”,“∑”:“suma”,“¤”:“valuta”},ru:{“∆”:“delta”,“∞”:“beskonechno”,“♥”:“lubov”,“&”:“i”,“|”:“ili”,“<”:“menshe”,“>”:“bolshe”,“∑”:“summa”,“¤”:“valjuta”},sk:{“∆”:“delta”,“∞”:“nekonecno”,“♥”:“laska”,“&”:“a”,“|”:“alebo”,“<”:“menej ako”,“>”:“viac ako”,“∑”:“sucet”,“¤”:“mena”},sr:{},tr:{“∆”:“delta”,“∞”:“sonsuzluk”,“♥”:“ask”,“&”:“ve”,“|”:“veya”,“<”:“kucuktur”,“>”:“buyuktur”,“∑”:“toplam”,“¤”:“para birimi”},uk:{“∆”:“delta”,“∞”:“bezkinechnist”,“♥”:“lubov”,“&”:“i”,“|”:“abo”,“<”:“menshe”,“>”:“bilshe”,“∑”:“suma”,“¤”:“valjuta”},vn:{“∆”:“delta”,“∞”:“vo cuc”,“♥”:“yeu”,“&”:“va”,“|”:“hoac”,“<”:“nho hon”,“>”:“lon hon”,“∑”:“tong”,“¤”:“tien te”}},u=.join(“”),l=.join(“”),d=.join(“”),p=function(e,t){var n,r,p,m,_,v,g,y,b,w,k,O,C,M,D=“-”,x=“”,E=“”,S=!0,j={},T=“”;if(“string”!=typeof e)return“”;if(“string”==typeof t&&(D=t),g=c.en,y=s.en,“object”==typeof t)for(k in n=t.maintainCase||!1,j=t.custom&&“object”==typeof t.custom?t.custom:j,p=+t.truncate>1&&t.truncate||!1,m=t.uric||!1,_=t.uricNoSlash||!1,v=t.mark||!1,S=!1!==t.symbols&&!1!==t.lang,D=t.separator||D,m&&(T+=u),_&&(T+=l),v&&(T+=d),g=t.lang&&c&&S?c:S?c.en:{},y=t.lang&&s?s:!1===t.lang||!0===t.lang?{}:s.en,t.titleCase&&“number”==typeof t.titleCase.length&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach((function(e){j=e+“”})),r=!0):r=!!t.titleCase,t.custom&&“number”==typeof t.custom.length&&Array.prototype.toString.call(t.custom)&&t.custom.forEach((function(e){j=e+“”})),Object.keys(j).forEach((function(t){var n;n=t.length>1?new RegExp(“\b”+f(t)+“\b”,“gi”):new RegExp(f(t),“gi”),e=e.replace(n,j)})),j)T+=k;for(T=f(T+=D),C=!1,M=!1,w=0,O=(e=e.replace(/(^s+|s+$)/g,“”)).length;w,h(k,j)?C=!1:y?(k=C&&y.match(//)?“ ”+y:y,C=!1):k in i?(w+1)>=0?(E+=k,k=“”):!0===M?(k=a+i,E=“”):k=C&&i.match(//)?“ ”+i:i,C=!1,M=!1):k in a?(E+=k,k=“”,w===O-1&&(k=a),M=!0):!g||m&&-1!==u.indexOf(k)||_&&-1!==l.indexOf(k)?(!0===M?(k=a+k,E=“”,M=!1):C&&(//.test(k)||x.substr(-1).match(/A-Za-z0-9]/))&&(k=“ ”+k),C=!1):(k=C||x.substr(-1).match(//)?D+g:g,k+=void 0!==e&&e.match(//)?D:“”,C=!0),x+=k.replace(new RegExp(“[^\w\s”T“_-]”,“g”),D);return r&&(x=x.replace(/(w)(S*)/g,(function(e,t,n){var r=t.toUpperCase()+(null!==n?n:“”);return Object.keys(j).indexOf(r.toLowerCase())<0?r:r.toLowerCase()}))),x=x.replace(/s+/g,D).replace(new RegExp(“\”D“+”,“g”),D).replace(new RegExp(“(^\”D“+|\”D“+$)”,“g”),“”),p&&x.length>p&&(b=x.charAt(p)===D,x=x.slice(0,p),b||(x=x.slice(0,x.lastIndexOf(D)))),n||r||(x=x.toLowerCase()),x},f=function(e){return e.replace(/[-\^$*+?.()|{}/]/g,“\$&”)},h=function(e,t){for(var n in t)if(t===e)return!0};e.exports?(e.exports=p,e.exports.createSlug=function(e){return function(t){return p(t,e)}}):void 0===(r=function(){return p}.apply(t,[]))||(e.exports=r)}()},,,,,,,,,,,,,,,function(e,t,n){“use strict”; /** @license React v16.6.1

* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(80),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.concurrent_mode"):60111,f=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,m=i?Symbol.for("react.memo"):60115,_=i?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function g(e,t,n,r,i,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(e=Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function y(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);g(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function k(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}function O(){}function C(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=k.prototype;var M=C.prototype=new O;M.constructor=C,r(M,k.prototype),M.isPureReactComponent=!0;var D={current:null,currentDispatcher:null},x=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r=void 0,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!E.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:D.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g,L=[];function P(e,t,n,r){if(L.length){var i=L.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>L.length&&L.push(e)}function N(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case o:case a:c=!0}}if(c)return r(i,t,""===n?"."+I(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var l=n+I(s=t[u],u);c+=e(s,l,r,i)}else if(null===t||"object"!=typeof t?l=null:l="function"==typeof(l=v&&t[v]||t["@@iterator"])?l:null,"function"==typeof l)for(t=l.call(t),u=0;!(s=t.next()).done;)c+=e(s=s.value,l=n+I(s,u++),r,i);else"object"===s&&y("31","[object Object]"===(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return c}(e,"",t,n)}function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function Y(e,t){e.func.call(e.context,t,e.count++)}function R(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,(function(e){return e})):null!=e&&(j(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(T,"$&/")+"/")+n)),r.push(e))}function F(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(T,"$&/")+"/"),N(e,R,t=P(t,o,r,i)),A(t)}var H={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;N(e,Y,t=P(null,null,t,n)),A(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return F(e,t,null,(function(e){return e})),t},only:function(e){return j(e)||y("143"),e}},createRef:function(){return{current:null}},Component:k,PureComponent:C,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:f,render:e}},lazy:function(e){return{$$typeof:_,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},Fragment:s,StrictMode:c,Suspense:h,createElement:S,cloneElement:function(e,t,n){null==e&&y("267",e);var i=void 0,a=r({},e.props),s=e.key,c=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,u=D.current),void 0!==t.key&&(s=""+t.key);var l=void 0;for(i in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)x.call(t,i)&&!E.hasOwnProperty(i)&&(a[i]=void 0===t[i]&&void 0!==l?l[i]:t[i])}if(1===(i=arguments.length-2))a.children=n;else if(1<i){l=Array(i);for(var d=0;d<i;d++)l[d]=arguments[d+2];a.children=l}return{$$typeof:o,type:e.type,key:s,ref:c,props:a,_owner:u}},createFactory:function(e){var t=S.bind(null,e);return t.type=e,t},isValidElement:j,version:"16.6.3",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:D,assign:r}};H.unstable_ConcurrentMode=p,H.unstable_Profiler=u;var W={default:H},B=W&&H||W;e.exports=B.default||B},function(e,t,n){"use strict";

/** @license React v16.6.1

* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(1),i=n(80),o=n(227);function a(e,t,n,r,i,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(e=Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function s(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);a(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function c(e,t,n,r,i,o,a,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}r||s("227");var u=!1,l=null,d=!1,p=null,f={onError:function(e){u=!0,l=e}};function h(e,t,n,r,i,o,a,s,d){u=!1,l=null,c.apply(f,arguments)}var m=null,_={};function v(){if(m)for(var e in _){var t=_[e],n=m.indexOf(e);if(-1<n||s("96",e),!y[n])for(var r in t.extractEvents||s("97",e),y[n]=t,n=t.eventTypes){var i=void 0,o=n[r],a=t,c=r;b.hasOwnProperty(c)&&s("99",c),b[c]=o;var u=o.phasedRegistrationNames;if(u){for(i in u)u.hasOwnProperty(i)&&g(u[i],a,c);i=!0}else o.registrationName?(g(o.registrationName,a,c),i=!0):i=!1;i||s("98",r,e)}}}function g(e,t,n){w[e]&&s("100",e),w[e]=t,k[e]=t.eventTypes[n].dependencies}var y=[],b={},w={},k={},O=null,C=null,M=null;function D(e,t,n){var r=e.type||"unknown-event";e.currentTarget=M(n),function(e,t,n,r,i,o,a,c,f){if(h.apply(this,arguments),u){if(u){var m=l;u=!1,l=null}else s("198"),m=void 0;d||(d=!0,p=m)}}(r,t,void 0,e),e.currentTarget=null}function x(e,t){return null==t&&s("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function E(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var S=null;function j(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)D(e,t[r],n[r]);else t&&D(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var T={injectEventPluginOrder:function(e){m&&s("101"),m=Array.prototype.slice.call(e),v()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];_.hasOwnProperty(t)&&_[t]===r||(_[t]&&s("102",t),_[t]=r,n=!0)}n&&v()}};function L(e,t){var n=e.stateNode;if(!n)return null;var r=O(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&s("231",t,typeof n),n)}function P(e){if(null!==e&&(S=x(S,e)),e=S,S=null,e&&(E(e,j),S&&s("95"),d))throw e=p,d=!1,p=null,e}var A=Math.random().toString(36).slice(2),N="__reactInternalInstance$"+A,I="__reactEventHandlers$"+A;function Y(e){if(e[N])return e[N];for(;!e[N];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[N]).tag||6===e.tag?e:null}function R(e){return!(e=e[N])||5!==e.tag&&6!==e.tag?null:e}function F(e){if(5===e.tag||6===e.tag)return e.stateNode;s("33")}function H(e){return e[I]||null}function W(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function B(e,t,n){(t=L(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=x(n._dispatchListeners,t),n._dispatchInstances=x(n._dispatchInstances,e))}function z(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=W(t);for(t=n.length;0<t--;)B(n[t],"captured",e);for(t=0;t<n.length;t++)B(n[t],"bubbled",e)}}function U(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=L(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=x(n._dispatchListeners,t),n._dispatchInstances=x(n._dispatchInstances,e))}function q(e){e&&e.dispatchConfig.registrationName&&U(e._targetInst,null,e)}function V(e){E(e,z)}var $=!("undefined"==typeof window||!window.document||!window.document.createElement);function G(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var K={animationend:G("Animation","AnimationEnd"),animationiteration:G("Animation","AnimationIteration"),animationstart:G("Animation","AnimationStart"),transitionend:G("Transition","TransitionEnd")},J={},Q={};function Z(e){if(J[e])return J[e];if(!K[e])return e;var t,n=K[e];for(t in n)if(n.hasOwnProperty(t)&&t in Q)return J[e]=n[t];return e}$&&(Q=document.createElement("div").style,"AnimationEvent"in window||(delete K.animationend.animation,delete K.animationiteration.animation,delete K.animationstart.animation),"TransitionEvent"in window||delete K.transitionend.transition);var X=Z("animationend"),ee=Z("animationiteration"),te=Z("animationstart"),ne=Z("transitionend"),re="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ie=null,oe=null,ae=null;function se(){if(ae)return ae;var e,t,n=oe,r=n.length,i="value"in ie?ie.value:ie.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return ae=i.slice(e,1<t?1-t:void 0)}function ce(){return!0}function ue(){return!1}function le(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ce:ue,this.isPropagationStopped=ue,this}function de(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function pe(e){e instanceof this||s("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=de,e.release=pe}i(le.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ce)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ce)},persist:function(){this.isPersistent=ce},isPersistent:ue,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ue,this._dispatchInstances=this._dispatchListeners=null}}),le.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},le.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(le);var he=le.extend({data:null}),me=le.extend({data:null}),_e=[9,13,27,32],ve=$&&"CompositionEvent"in window,ge=null;$&&"documentMode"in document&&(ge=document.documentMode);var ye=$&&"TextEvent"in window&&!ge,be=$&&(!ve||ge&&8<ge&&11>=ge),we=String.fromCharCode(32),ke={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Oe=!1;function Ce(e,t){switch(e){case"keyup":return-1!==_e.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Me(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var De=!1;var xe={eventTypes:ke,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(ve)e:{switch(e){case"compositionstart":i=ke.compositionStart;break e;case"compositionend":i=ke.compositionEnd;break e;case"compositionupdate":i=ke.compositionUpdate;break e}i=void 0}else De?Ce(e,n)&&(i=ke.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=ke.compositionStart);return i?(be&&"ko"!==n.locale&&(De||i!==ke.compositionStart?i===ke.compositionEnd&&De&&(o=se()):(oe="value"in(ie=r)?ie.value:ie.textContent,De=!0)),i=he.getPooled(i,t,n,r),o?i.data=o:null!==(o=Me(n))&&(i.data=o),V(i),o=i):o=null,(e=ye?function(e,t){switch(e){case"compositionend":return Me(t);case"keypress":return 32!==t.which?null:(Oe=!0,we);case"textInput":return(e=t.data)===we&&Oe?null:e;default:return null}}(e,n):function(e,t){if(De)return"compositionend"===e||!ve&&Ce(e,t)?(e=se(),ae=oe=ie=null,De=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return be&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=me.getPooled(ke.beforeInput,t,n,r)).data=e,V(t)):t=null,null===o?t:null===t?o:[o,t]}},Ee=null,Se=null,je=null;function Te(e){if(e=C(e)){"function"!=typeof Ee&&s("280");var t=O(e.stateNode);Ee(e.stateNode,e.type,t)}}function Le(e){Se?je?je.push(e):je=[e]:Se=e}function Pe(){if(Se){var e=Se,t=je;if(je=Se=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ae(e,t){return e(t)}function Ne(e,t,n){return e(t,n)}function Ie(){}var Ye=!1;function Re(e,t){if(Ye)return e(t);Ye=!0;try{return Ae(e,t)}finally{Ye=!1,(null!==Se||null!==je)&&(Ie(),Pe())}}var Fe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function He(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fe[e.type]:"textarea"===t}function We(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Be(e){if(!$)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function ze(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ue(e){e._valueTracker||(e._valueTracker=function(e){var t=ze(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function qe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ze(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ve=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$e=/^(.*)[\\\/]/,Ge="function"==typeof Symbol&&Symbol.for,Ke=Ge?Symbol.for("react.element"):60103,Je=Ge?Symbol.for("react.portal"):60106,Qe=Ge?Symbol.for("react.fragment"):60107,Ze=Ge?Symbol.for("react.strict_mode"):60108,Xe=Ge?Symbol.for("react.profiler"):60114,et=Ge?Symbol.for("react.provider"):60109,tt=Ge?Symbol.for("react.context"):60110,nt=Ge?Symbol.for("react.concurrent_mode"):60111,rt=Ge?Symbol.for("react.forward_ref"):60112,it=Ge?Symbol.for("react.suspense"):60113,ot=Ge?Symbol.for("react.memo"):60115,at=Ge?Symbol.for("react.lazy"):60116,st="function"==typeof Symbol&&Symbol.iterator;function ct(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=st&&e[st]||e["@@iterator"])?e:null}function ut(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case nt:return"ConcurrentMode";case Qe:return"Fragment";case Je:return"Portal";case Xe:return"Profiler";case Ze:return"StrictMode";case it:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case rt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ot:return ut(e.type);case at:if(e=1===e._status?e._result:null)return ut(e)}return null}function lt(e){var t="";do{e:switch(e.tag){case 2:case 16:case 0:case 1:case 5:case 8:case 13:var n=e._debugOwner,r=e._debugSource,i=ut(e.type),o=null;n&&(o=ut(n.type)),n=i,i="",r?i=" (at "+r.fileName.replace($e,"")+":"+r.lineNumber+")":o&&(i=" (created by "+o+")"),o="\n    in "+(n||"Unknown")+i;break e;default:o=""}t+=o,e=e.return}while(e);return t}var dt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pt=Object.prototype.hasOwnProperty,ft={},ht={};function mt(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}var _t={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){_t[e]=new mt(e,0,!1,e,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];_t[t]=new mt(t,1,!1,e[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){_t[e]=new mt(e,2,!1,e.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){_t[e]=new mt(e,2,!1,e,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){_t[e]=new mt(e,3,!1,e.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(e){_t[e]=new mt(e,3,!0,e,null)})),["capture","download"].forEach((function(e){_t[e]=new mt(e,4,!1,e,null)})),["cols","rows","size","span"].forEach((function(e){_t[e]=new mt(e,6,!1,e,null)})),["rowSpan","start"].forEach((function(e){_t[e]=new mt(e,5,!1,e.toLowerCase(),null)}));var vt=/[\-:]([a-z])/g;function gt(e){return e[1].toUpperCase()}function yt(e,t,n,r){var i=_t.hasOwnProperty(t)?_t[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!pt.call(ht,e)||!pt.call(ft,e)&&(dt.test(e)?ht[e]=!0:(ft[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function bt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function wt(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function kt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=bt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ot(e,t){null!=(t=t.checked)&&yt(e,"checked",t,!1)}function Ct(e,t){Ot(e,t);var n=bt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Dt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dt(e,t.type,bt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Mt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Dt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(vt,gt);_t[t]=new mt(t,1,!1,e,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(vt,gt);_t[t]=new mt(t,1,!1,e,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(vt,gt);_t[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")})),_t.tabIndex=new mt("tabIndex",1,!1,"tabindex",null);var xt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Et(e,t,n){return(e=le.getPooled(xt.change,e,t,n)).type="change",Le(n),V(e),e}var St=null,jt=null;function Tt(e){P(e)}function Lt(e){if(qe(F(e)))return e}function Pt(e,t){if("change"===e)return t}var At=!1;function Nt(){St&&(St.detachEvent("onpropertychange",It),jt=St=null)}function It(e){"value"===e.propertyName&&Lt(jt)&&Re(Tt,e=Et(jt,e,We(e)))}function Yt(e,t,n){"focus"===e?(Nt(),jt=n,(St=t).attachEvent("onpropertychange",It)):"blur"===e&&Nt()}function Rt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Lt(jt)}function Ft(e,t){if("click"===e)return Lt(t)}function Ht(e,t){if("input"===e||"change"===e)return Lt(t)}$&&(At=Be("input")&&(!document.documentMode||9<document.documentMode));var Wt={eventTypes:xt,_isInputEventSupported:At,extractEvents:function(e,t,n,r){var i=t?F(t):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=Pt:He(i)?At?o=Ht:(o=Rt,a=Yt):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Ft),o&&(o=o(e,t)))return Et(o,n,r);a&&a(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Dt(i,"number",i.value)}},Bt=le.extend({view:null,detail:null}),zt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ut(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=zt[e])&&!!t[e]}function qt(){return Ut}var Vt=0,$t=0,Gt=!1,Kt=!1,Jt=Bt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:qt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Vt;return Vt=e.screenX,Gt?"mousemove"===e.type?e.screenX-t:0:(Gt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=$t;return $t=e.screenY,Kt?"mousemove"===e.type?e.screenY-t:0:(Kt=!0,0)}}),Qt=Jt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Zt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Xt={eventTypes:Zt,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?Y(t):null):o=null,o===t)return null;var a=void 0,s=void 0,c=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=Jt,s=Zt.mouseLeave,c=Zt.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Qt,s=Zt.pointerLeave,c=Zt.pointerEnter,u="pointer");var l=null==o?i:F(o);if(i=null==t?i:F(t),(e=a.getPooled(s,o,n,r)).type=u+"leave",e.target=l,e.relatedTarget=i,(n=a.getPooled(c,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=l,r=t,o&&r)e:{for(i=r,u=0,a=t=o;a;a=W(a))u++;for(a=0,c=i;c;c=W(c))a++;for(;0<u-a;)t=W(t),u--;for(;0<a-u;)i=W(i),a--;for(;u--;){if(t===i||t===i.alternate)break e;t=W(t),i=W(i)}t=null}else t=null;for(i=t,t=[];o&&o!==i&&(null===(u=o.alternate)||u!==i);)t.push(o),o=W(o);for(o=[];r&&r!==i&&(null===(u=r.alternate)||u!==i);)o.push(r),r=W(r);for(r=0;r<t.length;r++)U(t[r],"bubbled",e);for(r=o.length;0<r--;)U(o[r],"captured",n);return[e,n]}},en=Object.prototype.hasOwnProperty;function tn(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function nn(e,t){if(tn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!en.call(t,n[r])||!tn(e[n[r]],t[n[r]]))return!1;return!0}function rn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function on(e){2!==rn(e)&&s("188")}function an(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=rn(e))&&s("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var a=i.child;a;){if(a===n)return on(i),e;if(a===r)return on(i),t;a=a.sibling}s("188")}if(n.return!==r.return)n=i,r=o;else{a=!1;for(var c=i.child;c;){if(c===n){a=!0,n=i,r=o;break}if(c===r){a=!0,r=i,n=o;break}c=c.sibling}if(!a){for(c=o.child;c;){if(c===n){a=!0,n=o,r=i;break}if(c===r){a=!0,r=o,n=i;break}c=c.sibling}a||s("189")}}n.alternate!==r&&s("190")}return 3!==n.tag&&s("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var sn=le.extend({animationName:null,elapsedTime:null,pseudoElement:null}),cn=le.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),un=Bt.extend({relatedTarget:null});function ln(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var dn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn=Bt.extend({key:function(e){if(e.key){var t=dn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ln(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:qt,charCode:function(e){return"keypress"===e.type?ln(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ln(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),hn=Jt.extend({dataTransfer:null}),mn=Bt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:qt}),_n=le.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),vn=Jt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),gn=[["abort","abort"],[X,"animationEnd"],[ee,"animationIteration"],[te,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ne,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],yn={},bn={};function wn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},yn[e]=t,bn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(e){wn(e,!0)})),gn.forEach((function(e){wn(e,!1)}));var kn={eventTypes:yn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=bn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=bn[e];if(!i)return null;switch(e){case"keypress":if(0===ln(n))return null;case"keydown":case"keyup":e=fn;break;case"blur":case"focus":e=un;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Jt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=mn;break;case X:case ee:case te:e=sn;break;case ne:e=_n;break;case"scroll":e=Bt;break;case"wheel":e=vn;break;case"copy":case"cut":case"paste":e=cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Qt;break;default:e=le}return V(t=e.getPooled(i,t,n,r)),t}},On=kn.isInteractiveTopLevelEventType,Cn=[];function Mn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=Y(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=We(e.nativeEvent);r=e.topLevelType;for(var o=e.nativeEvent,a=null,s=0;s<y.length;s++){var c=y[s];c&&(c=c.extractEvents(r,t,o,i))&&(a=x(a,c))}P(a)}}var Dn=!0;function xn(e,t){if(!t)return null;var n=(On(e)?Sn:jn).bind(null,e);t.addEventListener(e,n,!1)}function En(e,t){if(!t)return null;var n=(On(e)?Sn:jn).bind(null,e);t.addEventListener(e,n,!0)}function Sn(e,t){Ne(jn,e,t)}function jn(e,t){if(Dn){var n=We(t);if(null===(n=Y(n))||"number"!=typeof n.tag||2===rn(n)||(n=null),Cn.length){var r=Cn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Re(Mn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Cn.length&&Cn.push(e)}}}var Tn={},Ln=0,Pn="_reactListenersID"+(""+Math.random()).slice(2);function An(e){return Object.prototype.hasOwnProperty.call(e,Pn)||(e[Pn]=Ln++,Tn[e[Pn]]={}),Tn[e[Pn]]}function Nn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function In(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yn(e,t){var n,r=In(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=In(r)}}function Rn(){for(var e=window,t=Nn();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Nn(e.document)}return t}function Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Hn=$&&"documentMode"in document&&11>=document.documentMode,Wn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Bn=null,zn=null,Un=null,qn=!1;function Vn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return qn||null==Bn||Bn!==Nn(n)?null:("selectionStart"in(n=Bn)&&Fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Un&&nn(Un,n)?null:(Un=n,(e=le.getPooled(Wn.select,zn,e,t)).type="select",e.target=Bn,V(e),e))}var $n={eventTypes:Wn,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=An(o),i=k.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?F(t):window,e){case"focus":(He(o)||"true"===o.contentEditable)&&(Bn=o,zn=t,Un=null);break;case"blur":Un=zn=Bn=null;break;case"mousedown":qn=!0;break;case"contextmenu":case"mouseup":case"dragend":return qn=!1,Vn(n,r);case"selectionchange":if(Hn)break;case"keydown":case"keyup":return Vn(n,r)}return null}};function Gn(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Kn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+bt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Jn(e,t){return null!=t.dangerouslySetInnerHTML&&s("91"),i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Qn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&s("92"),Array.isArray(t)&&(1>=t.length||s("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:bt(n)}}function Zn(e,t){var n=bt(t.value),r=bt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Xn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}T.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),O=H,C=R,M=F,T.injectEventPluginsByName({SimpleEventPlugin:kn,EnterLeaveEventPlugin:Xt,ChangeEventPlugin:Wt,SelectEventPlugin:$n,BeforeInputEventPlugin:xe});var er="http://www.w3.org/1999/xhtml",tr="http://www.w3.org/2000/svg";function nr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function rr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?nr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ir=void 0,or=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==tr||"innerHTML"in e)e.innerHTML=t;else{for((ir=ir||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ar(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var sr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cr=["Webkit","ms","Moz","O"];function ur(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||sr.hasOwnProperty(e)&&sr[e]?(""+t).trim():t+"px"}function lr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ur(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(sr).forEach((function(e){cr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),sr[t]=sr[e]}))}));var dr=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pr(e,t){t&&(dr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&s("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&s("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||s("61")),null!=t.style&&"object"!=typeof t.style&&s("62",""))}function fr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function hr(e,t){var n=An(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=k[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":En("scroll",e);break;case"focus":case"blur":En("focus",e),En("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Be(i)&&En(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===re.indexOf(i)&&xn(i,e)}n[i]=!0}}}function mr(){}var _r=null,vr=null;function gr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var br="function"==typeof setTimeout?setTimeout:void 0,wr="function"==typeof clearTimeout?clearTimeout:void 0;function kr(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function Or(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var Cr=[],Mr=-1;function Dr(e){0>Mr||(e.current=Cr[Mr],Cr[Mr]=null,Mr--)}function xr(e,t){Mr++,Cr[Mr]=e.current,e.current=t}var Er={},Sr={current:Er},jr={current:!1},Tr=Er;function Lr(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pr(e){return null!=(e=e.childContextTypes)}function Ar(e){Dr(jr),Dr(Sr)}function Nr(e){Dr(jr),Dr(Sr)}function Ir(e,t,n){Sr.current!==Er&&s("168"),xr(Sr,t),xr(jr,n)}function Yr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())o in e||s("108",ut(t)||"Unknown",o);return i({},n,r)}function Rr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Er,Tr=Sr.current,xr(Sr,t),xr(jr,jr.current),!0}function Fr(e,t,n){var r=e.stateNode;r||s("169"),n?(t=Yr(e,t,Tr),r.__reactInternalMemoizedMergedChildContext=t,Dr(jr),Dr(Sr),xr(Sr,t)):Dr(jr),xr(jr,n)}var Hr=null,Wr=null;function Br(e){return function(t){try{return e(t)}catch(e){}}}function zr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ur(e,t,n,r){return new zr(e,t,n,r)}function qr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vr(e,t){var n=e.alternate;return null===n?((n=Ur(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.firstContextDependency=e.firstContextDependency,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $r(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)qr(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Qe:return Gr(n.children,i,o,t);case nt:return Kr(n,3|i,o,t);case Ze:return Kr(n,2|i,o,t);case Xe:return(e=Ur(12,n,t,4|i)).elementType=Xe,e.type=Xe,e.expirationTime=o,e;case it:return(e=Ur(13,n,t,i)).elementType=it,e.type=it,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case et:a=10;break e;case tt:a=9;break e;case rt:a=11;break e;case ot:a=14;break e;case at:a=16,r=null;break e}s("130",null==e?e:typeof e,"")}return(t=Ur(a,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Gr(e,t,n,r){return(e=Ur(7,e,r,t)).expirationTime=n,e}function Kr(e,t,n,r){return e=Ur(8,e,r,t),t=0==(1&t)?Ze:nt,e.elementType=t,e.type=t,e.expirationTime=n,e}function Jr(e,t,n){return(e=Ur(6,e,null,t)).expirationTime=n,e}function Qr(e,t,n){return(t=Ur(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zr(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),ti(t,e)}function Xr(e,t){e.didError=!1;var n=e.latestPingedTime;0!==n&&n>=t&&(e.latestPingedTime=0),n=e.earliestPendingTime;var r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),ti(t,e)}function ei(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function ti(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,o=t.latestPingedTime;0===(i=0!==i?i:o)&&(0===e||r<e)&&(i=r),0!==(e=i)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}var ni=!1;function ri(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function ii(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function oi(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function ai(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function si(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=ri(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=ri(e.memoizedState),i=n.updateQueue=ri(n.memoizedState)):r=e.updateQueue=ii(i):null===i&&(i=n.updateQueue=ii(r));null===i||r===i?ai(r,t):null===r.lastUpdate||null===i.lastUpdate?(ai(r,t),ai(i,t)):(ai(r,t),i.lastUpdate=t)}function ci(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=ri(e.memoizedState):ui(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function ui(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=ii(t)),t}function li(e,t,n,r,o,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=n.payload)?e.call(a,r,o):e))break;return i({},r,o);case 2:ni=!0}return r}function di(e,t,n,r,i){ni=!1;for(var o=(t=ui(e,t)).baseState,a=null,s=0,c=t.firstUpdate,u=o;null!==c;){var l=c.expirationTime;l<i?(null===a&&(a=c,o=u),s<l&&(s=l)):(u=li(e,0,c,u,n,r),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=c:(t.lastEffect.nextEffect=c,t.lastEffect=c))),c=c.next}for(l=null,c=t.firstCapturedUpdate;null!==c;){var d=c.expirationTime;d<i?(null===l&&(l=c,null===a&&(o=u)),s<d&&(s=d)):(u=li(e,0,c,u,n,r),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=c:(t.lastCapturedEffect.nextEffect=c,t.lastCapturedEffect=c))),c=c.next}null===a&&(t.lastUpdate=null),null===l?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===l&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=l,e.expirationTime=s,e.memoizedState=u}function pi(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),fi(t.firstEffect,n),t.firstEffect=t.lastEffect=null,fi(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function fi(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&s("191",n),n.call(r)}e=e.nextEffect}}function hi(e,t){return{value:e,source:t,stack:lt(t)}}var mi={current:null},_i=null,vi=null,gi=null;function yi(e,t){var n=e.type._context;xr(mi,n._currentValue),n._currentValue=t}function bi(e){var t=mi.current;Dr(mi),e.type._context._currentValue=t}function wi(e){_i=e,gi=vi=null,e.firstContextDependency=null}function ki(e,t){return gi!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(gi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===vi?(null===_i&&s("293"),_i.firstContextDependency=vi=t):vi=vi.next=t),e._currentValue}var Oi={},Ci={current:Oi},Mi={current:Oi},Di={current:Oi};function xi(e){return e===Oi&&s("174"),e}function Ei(e,t){xr(Di,t),xr(Mi,e),xr(Ci,Oi);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rr(null,"");break;default:t=rr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Dr(Ci),xr(Ci,t)}function Si(e){Dr(Ci),Dr(Mi),Dr(Di)}function ji(e){xi(Di.current);var t=xi(Ci.current),n=rr(t,e.type);t!==n&&(xr(Mi,e),xr(Ci,n))}function Ti(e){Mi.current===e&&(Dr(Ci),Dr(Mi))}function Li(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Pi=Ve.ReactCurrentOwner,Ai=(new r.Component).refs;function Ni(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var Ii={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===rn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ca(),i=oi(r=Ko(r,e));i.payload=t,null!=n&&(i.callback=n),Uo(),si(e,i),Zo(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ca(),i=oi(r=Ko(r,e));i.tag=1,i.payload=t,null!=n&&(i.callback=n),Uo(),si(e,i),Zo(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ca(),r=oi(n=Ko(n,e));r.tag=2,null!=t&&(r.callback=t),Uo(),si(e,r),Zo(e,n)}};function Yi(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!nn(n,r)||!nn(i,o))}function Ri(e,t,n){var r=!1,i=Er,o=t.contextType;return"object"==typeof o&&null!==o?o=Pi.currentDispatcher.readContext(o):(i=Pr(t)?Tr:Sr.current,o=(r=null!=(r=t.contextTypes))?Lr(e,i):Er),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ii,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Fi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ii.enqueueReplaceState(t,t.state,null)}function Hi(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Ai;var o=t.contextType;"object"==typeof o&&null!==o?i.context=Pi.currentDispatcher.readContext(o):(o=Pr(t)?Tr:Sr.current,i.context=Lr(e,o)),null!==(o=e.updateQueue)&&(di(e,o,n,i,r),i.state=e.memoizedState),"function"==typeof(o=t.getDerivedStateFromProps)&&(Ni(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Ii.enqueueReplaceState(i,i.state,null),null!==(o=e.updateQueue)&&(di(e,o,n,i,r),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var Wi=Array.isArray;function Bi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&s("289"),r=n.stateNode),r||s("147",e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===Ai&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}"string"!=typeof e&&s("284"),n._owner||s("290",e)}return e}function zi(e,t){"textarea"!==e.type&&s("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Ui(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return(e=Vr(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Jr(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Bi(e,t,n),r.return=e,r):((r=$r(n.type,n.key,n.props,null,e.mode,r)).ref=Bi(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Qr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Gr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Jr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ke:return(n=$r(t.type,t.key,t.props,null,e.mode,n)).ref=Bi(e,null,t),n.return=e,n;case Je:return(t=Qr(t,e.mode,n)).return=e,t}if(Wi(t)||ct(t))return(t=Gr(t,e.mode,n,null)).return=e,t;zi(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ke:return n.key===i?n.type===Qe?d(e,t,n.props.children,r,i):u(e,t,n,r):null;case Je:return n.key===i?l(e,t,n,r):null}if(Wi(n)||ct(n))return null!==i?null:d(e,t,n,r,null);zi(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ke:return e=e.get(null===r.key?n:r.key)||null,r.type===Qe?d(t,e,r.props.children,i,r.key):u(t,e,r,i);case Je:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Wi(r)||ct(r))return d(t,e=e.get(n)||null,r,i,null);zi(t,r)}return null}function m(i,a,s,c){for(var u=null,l=null,d=a,m=a=0,_=null;null!==d&&m<s.length;m++){d.index>m?(_=d,d=null):_=d.sibling;var v=f(i,d,s[m],c);if(null===v){null===d&&(d=_);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,m),null===l?u=v:l.sibling=v,l=v,d=_}if(m===s.length)return n(i,d),u;if(null===d){for(;m<s.length;m++)(d=p(i,s[m],c))&&(a=o(d,a,m),null===l?u=d:l.sibling=d,l=d);return u}for(d=r(i,d);m<s.length;m++)(_=h(d,i,m,s[m],c))&&(e&&null!==_.alternate&&d.delete(null===_.key?m:_.key),a=o(_,a,m),null===l?u=_:l.sibling=_,l=_);return e&&d.forEach((function(e){return t(i,e)})),u}function _(i,a,c,u){var l=ct(c);"function"!=typeof l&&s("150"),null==(c=l.call(c))&&s("151");for(var d=l=null,m=a,_=a=0,v=null,g=c.next();null!==m&&!g.done;_++,g=c.next()){m.index>_?(v=m,m=null):v=m.sibling;var y=f(i,m,g.value,u);if(null===y){m||(m=v);break}e&&m&&null===y.alternate&&t(i,m),a=o(y,a,_),null===d?l=y:d.sibling=y,d=y,m=v}if(g.done)return n(i,m),l;if(null===m){for(;!g.done;_++,g=c.next())null!==(g=p(i,g.value,u))&&(a=o(g,a,_),null===d?l=g:d.sibling=g,d=g);return l}for(m=r(i,m);!g.done;_++,g=c.next())null!==(g=h(m,i,_,g.value,u))&&(e&&null!==g.alternate&&m.delete(null===g.key?_:g.key),a=o(g,a,_),null===d?l=g:d.sibling=g,d=g);return e&&m.forEach((function(e){return t(i,e)})),l}return function(e,r,o,c){var u="object"==typeof o&&null!==o&&o.type===Qe&&null===o.key;u&&(o=o.props.children);var l="object"==typeof o&&null!==o;if(l)switch(o.$$typeof){case Ke:e:{for(l=o.key,u=r;null!==u;){if(u.key===l){if(7===u.tag?o.type===Qe:u.elementType===o.type){n(e,u.sibling),(r=i(u,o.type===Qe?o.props.children:o.props)).ref=Bi(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===Qe?((r=Gr(o.props.children,e.mode,c,o.key)).return=e,e=r):((c=$r(o.type,o.key,o.props,null,e.mode,c)).ref=Bi(e,r,o),c.return=e,e=c)}return a(e);case Je:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Qr(o,e.mode,c)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Jr(o,e.mode,c)).return=e,e=r),a(e);if(Wi(o))return m(e,r,o,c);if(ct(o))return _(e,r,o,c);if(l&&zi(e,o),void 0===o&&!u)switch(e.tag){case 1:case 0:s("152",(c=e.type).displayName||c.name||"Component")}return n(e,r)}}var qi=Ui(!0),Vi=Ui(!1),$i=null,Gi=null,Ki=!1;function Ji(e,t){var n=Ur(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Qi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Zi(e){if(Ki){var t=Gi;if(t){var n=t;if(!Qi(e,t)){if(!(t=kr(n))||!Qi(e,t))return e.effectTag|=2,Ki=!1,void($i=e);Ji($i,n)}$i=e,Gi=Or(t)}else e.effectTag|=2,Ki=!1,$i=e}}function Xi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;$i=e}function eo(e){if(e!==$i)return!1;if(!Ki)return Xi(e),Ki=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yr(t,e.memoizedProps))for(t=Gi;t;)Ji(e,t),t=kr(t);return Xi(e),Gi=$i?kr(e.stateNode):null,!0}function to(){Gi=$i=null,Ki=!1}var no=Ve.ReactCurrentOwner;function ro(e,t,n,r){t.child=null===e?Vi(t,null,n,r):qi(t,e.child,n,r)}function io(e,t,n,r,i){n=n.render;var o=t.ref;return wi(t),r=n(r,o),t.effectTag|=1,ro(e,t,r,i),t.child}function oo(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||qr(a)||void 0!==a.defaultProps||null!==n.compare?((e=$r(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ao(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:nn)(i,r)&&e.ref===t.ref)?ho(e,t,o):(t.effectTag|=1,(e=Vr(a,r)).ref=t.ref,e.return=t,t.child=e)}function ao(e,t,n,r,i,o){return null!==e&&i<o&&nn(e.memoizedProps,r)&&e.ref===t.ref?ho(e,t,o):co(e,t,n,r,o)}function so(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function co(e,t,n,r,i){var o=Pr(n)?Tr:Sr.current;return o=Lr(t,o),wi(t),n=n(r,o),t.effectTag|=1,ro(e,t,n,i),t.child}function uo(e,t,n,r,i){if(Pr(n)){var o=!0;Rr(t)}else o=!1;if(wi(t),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Ri(t,n,r),Hi(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Pi.currentDispatcher.readContext(u):u=Lr(t,u=Pr(n)?Tr:Sr.current);var l=n.getDerivedStateFromProps,d="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==u)&&Fi(t,a,r,u),ni=!1;var p=t.memoizedState;c=a.state=p;var f=t.updateQueue;null!==f&&(di(t,f,r,a,i),c=t.memoizedState),s!==r||p!==c||jr.current||ni?("function"==typeof l&&(Ni(t,n,l,r),c=t.memoizedState),(s=ni||Yi(t,n,s,r,p,c,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:Li(t.type,s),c=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=Pi.currentDispatcher.readContext(u):u=Lr(t,u=Pr(n)?Tr:Sr.current),(d="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==u)&&Fi(t,a,r,u),ni=!1,c=t.memoizedState,p=a.state=c,null!==(f=t.updateQueue)&&(di(t,f,r,a,i),p=t.memoizedState),s!==r||c!==p||jr.current||ni?("function"==typeof l&&(Ni(t,n,l,r),p=t.memoizedState),(l=ni||Yi(t,n,s,r,c,p,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return lo(e,t,n,r,o,i)}function lo(e,t,n,r,i,o){so(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&Fr(t,n,!1),ho(e,t,o);r=t.stateNode,no.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=qi(t,e.child,null,o),t.child=qi(t,null,s,o)):ro(e,t,s,o),t.memoizedState=r.state,i&&Fr(t,n,!0),t.child}function po(e){var t=e.stateNode;t.pendingContext?Ir(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ir(0,t.context,!1),Ei(e,t.containerInfo)}function fo(e,t,n){var r=t.mode,i=t.pendingProps,o=t.memoizedState;if(0==(64&t.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,t.effectTag&=-65;return null===e?a?(a=i.fallback,i=Gr(null,r,0,null),0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),r=Gr(a,r,n,null),i.sibling=r,(n=i).return=r.return=t):n=r=Vi(t,null,i.children,n):null!==e.memoizedState?(e=(r=e.child).sibling,a?(n=i.fallback,i=Vr(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(i.child=a)),r=i.sibling=Vr(e,n,e.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=t):n=r=qi(t,r.child,i.children,n)):(e=e.child,a?(a=i.fallback,(i=Gr(null,r,0,null)).child=e,0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),(r=i.sibling=Gr(a,r,n,null)).effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=t):r=n=qi(t,e,i.children,n)),t.memoizedState=o,t.child=n,r}function ho(e,t,n){if(null!==e&&(t.firstContextDependency=e.firstContextDependency),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&s("153"),null!==t.child){for(n=Vr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function mo(e,t,n){var r=t.expirationTime;if(null!==e&&e.memoizedProps===t.pendingProps&&!jr.current&&r<n){switch(t.tag){case 3:po(t),to();break;case 5:ji(t);break;case 1:Pr(t.type)&&Rr(t);break;case 4:Ei(t,t.stateNode.containerInfo);break;case 10:yi(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?fo(e,t,n):null!==(t=ho(e,t,n))?t.sibling:null}return ho(e,t,n)}switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var i=Lr(t,Sr.current);if(wi(t),i=r(e,i),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,Pr(r)){var o=!0;Rr(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var a=r.getDerivedStateFromProps;"function"==typeof a&&Ni(t,r,a,e),i.updater=Ii,t.stateNode=i,i._reactInternalFiber=t,Hi(t,r,e,n),t=lo(null,t,r,!0,o,n)}else t.tag=0,ro(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),o=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:throw e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._result=t,t}}(i),t.type=e,i=t.tag=function(e){if("function"==typeof e)return qr(e)?1:0;if(null!=e){if((e=e.$$typeof)===rt)return 11;if(e===ot)return 14}return 2}(e),o=Li(e,o),a=void 0,i){case 0:a=co(null,t,e,o,n);break;case 1:a=uo(null,t,e,o,n);break;case 11:a=io(null,t,e,o,n);break;case 14:a=oo(null,t,e,Li(e.type,o),r,n);break;default:s("283",e)}return a;case 0:return r=t.type,i=t.pendingProps,co(e,t,r,i=t.elementType===r?i:Li(r,i),n);case 1:return r=t.type,i=t.pendingProps,uo(e,t,r,i=t.elementType===r?i:Li(r,i),n);case 3:return po(t),null===(r=t.updateQueue)&&s("282"),i=null!==(i=t.memoizedState)?i.element:null,di(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===i?(to(),t=ho(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(Gi=Or(t.stateNode.containerInfo),$i=t,i=Ki=!0),i?(t.effectTag|=2,t.child=Vi(t,null,r,n)):(ro(e,t,r,n),to()),t=t.child),t;case 5:return ji(t),null===e&&Zi(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,yr(r,i)?a=null:null!==o&&yr(r,o)&&(t.effectTag|=16),so(e,t),1!==n&&1&t.mode&&i.hidden?(t.expirationTime=1,t=null):(ro(e,t,a,n),t=t.child),t;case 6:return null===e&&Zi(t),null;case 13:return fo(e,t,n);case 4:return Ei(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=qi(t,null,r,n):ro(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,io(e,t,r,i=t.elementType===r?i:Li(r,i),n);case 7:return ro(e,t,t.pendingProps,n),t.child;case 8:case 12:return ro(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,yi(t,o=i.value),null!==a){var c=a.value;if(0===(o=c===o&&(0!==c||1/c==1/o)||c!=c&&o!=o?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(a.children===i.children&&!jr.current){t=ho(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){if(null!==(c=a.firstContextDependency))do{if(c.context===r&&0!=(c.observedBits&o)){if(1===a.tag){var u=oi(n);u.tag=2,si(a,u)}a.expirationTime<n&&(a.expirationTime=n),null!==(u=a.alternate)&&u.expirationTime<n&&(u.expirationTime=n);for(var l=a.return;null!==l;){if(u=l.alternate,l.childExpirationTime<n)l.childExpirationTime=n,null!==u&&u.childExpirationTime<n&&(u.childExpirationTime=n);else{if(!(null!==u&&u.childExpirationTime<n))break;u.childExpirationTime=n}l=l.return}}u=a.child,c=c.next}while(null!==c);else u=10===a.tag&&a.type===t.type?null:a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===t){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}}ro(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,wi(t),r=r(i=ki(i,o.unstable_observedBits)),t.effectTag|=1,ro(e,t,r,n),t.child;case 14:return oo(e,t,i=t.type,o=Li(i.type,t.pendingProps),r,n);case 15:return ao(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Li(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Pr(r)?(e=!0,Rr(t)):e=!1,wi(t),Ri(t,r,i),Hi(t,r,i,n),lo(null,t,r,!0,e,n);default:s("156")}}function _o(e){e.effectTag|=4}var vo,go,yo;function bo(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=lt(n)),null!==n&&ut(n.type),t=t.value,null!==e&&1===e.tag&&ut(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function wo(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Go(e,t)}else t.current=null}function ko(e){switch("function"==typeof Wr&&Wr(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(null!==r){var i=e;try{r()}catch(e){Go(i,e)}}n=n.next}while(n!==t)}break;case 1:if(wo(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Go(e,t)}break;case 5:wo(e);break;case 4:Mo(e)}}function Oo(e){return 5===e.tag||3===e.tag||4===e.tag}function Co(e){e:{for(var t=e.return;null!==t;){if(Oo(t)){var n=t;break e}t=t.return}s("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:s("161")}16&n.effectTag&&(ar(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Oo(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)if(n)if(r){var o=t,a=i.stateNode,c=n;8===o.nodeType?o.parentNode.insertBefore(a,c):o.insertBefore(a,c)}else t.insertBefore(i.stateNode,n);else r?(a=t,c=i.stateNode,8===a.nodeType?(o=a.parentNode).insertBefore(c,a):(o=a).appendChild(c),null!=(a=a._reactRootContainer)||null!==o.onclick||(o.onclick=mr)):t.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function Mo(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&s("160"),n.tag){case 5:r=n.stateNode,i=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var o=t,a=o;;)if(ko(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===o)break;for(;null===a.sibling;){if(null===a.return||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}i?(o=r,a=t.stateNode,8===o.nodeType?o.parentNode.removeChild(a):o.removeChild(a)):r.removeChild(t.stateNode)}else if(4===t.tag?(r=t.stateNode.containerInfo,i=!0):ko(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Do(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[I]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ot(n,r),fr(e,i),t=fr(e,r),i=0;i<o.length;i+=2){var a=o[i],c=o[i+1];"style"===a?lr(n,c):"dangerouslySetInnerHTML"===a?or(n,c):"children"===a?ar(n,c):yt(n,a,c,t)}switch(e){case"input":Ct(n,r);break;case"textarea":Zn(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Kn(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Kn(n,!!r.multiple,r.defaultValue,!0):Kn(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:null===t.stateNode&&s("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(e=t,null===(n=t.memoizedState)?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=Ca())),null!==e)e:for(t=n=e;;){if(5===t.tag)e=t.stateNode,r?e.style.display="none":(e=t.stateNode,o=null!=(o=t.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,e.style.display=ur("display",o));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState){(e=t.child.sibling).return=t,t=e;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break e;for(;null===t.sibling;){if(null===t.return||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}break;case 17:break;default:s("163")}}function xo(e,t,n){(n=oi(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Aa(r),bo(e,t)},n}function Eo(e,t,n){(n=oi(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Bo?Bo=new Set([this]):Bo.add(this));var n=t.value,i=t.stack;bo(e,t),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function So(e){switch(e.tag){case 1:Pr(e.type)&&Ar();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return Si(),Nr(),0!=(64&(t=e.effectTag))&&s("285"),e.effectTag=-2049&t|64,e;case 5:return Ti(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 4:return Si(),null;case 10:return bi(e),null;default:return null}}vo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},go=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s=t.stateNode;switch(xi(Ci.current),e=null,n){case"input":a=wt(s,a),r=wt(s,r),e=[];break;case"option":a=Gn(s,a),r=Gn(s,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Jn(s,a),r=Jn(s,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=mr)}pr(n,r),s=n=void 0;var c=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var u=a[n];for(s in u)u.hasOwnProperty(s)&&(c||(c={}),c[s]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(w.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var l=r[n];if(u=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&l!==u&&(null!=l||null!=u))if("style"===n)if(u){for(s in u)!u.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(c||(c={}),c[s]="");for(s in l)l.hasOwnProperty(s)&&u[s]!==l[s]&&(c||(c={}),c[s]=l[s])}else c||(e||(e=[]),e.push(n,c)),c=l;else"dangerouslySetInnerHTML"===n?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(e=e||[]).push(n,""+l)):"children"===n?u===l||"string"!=typeof l&&"number"!=typeof l||(e=e||[]).push(n,""+l):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(w.hasOwnProperty(n)?(null!=l&&hr(o,n),e||u===l||(e=[])):(e=e||[]).push(n,l))}c&&(e=e||[]).push("style",c),o=e,(t.updateQueue=o)&&_o(t)}},yo=function(e,t,n,r){n!==r&&_o(t)};var jo={readContext:ki},To=Ve.ReactCurrentOwner,Lo=1073741822,Po=0,Ao=!1,No=null,Io=null,Yo=0,Ro=-1,Fo=!1,Ho=null,Wo=!1,Bo=null;function zo(){if(null!==No)for(var e=No.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Ar();break;case 3:Si(),Nr();break;case 5:Ti(t);break;case 4:Si();break;case 10:bi(t)}e=e.return}Io=null,Yo=0,Ro=-1,Fo=!1,No=null}function Uo(){}function qo(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){No=e;e:{var o=t,a=Yo,c=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Pr(t.type)&&Ar();break;case 3:Si(),Nr(),(c=t.stateNode).pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==o&&null!==o.child||(eo(t),t.effectTag&=-3);break;case 5:Ti(t);var u=xi(Di.current);if(a=t.type,null!==o&&null!=t.stateNode)go(o,t,a,c,u),o.ref!==t.ref&&(t.effectTag|=128);else if(c){var l=xi(Ci.current);if(eo(t)){o=(c=t).stateNode;var d=c.type,p=c.memoizedProps,f=u;switch(o[N]=c,o[I]=p,a=void 0,u=d){case"iframe":case"object":xn("load",o);break;case"video":case"audio":for(d=0;d<re.length;d++)xn(re[d],o);break;case"source":xn("error",o);break;case"img":case"image":case"link":xn("error",o),xn("load",o);break;case"form":xn("reset",o),xn("submit",o);break;case"details":xn("toggle",o);break;case"input":kt(o,p),xn("invalid",o),hr(f,"onChange");break;case"select":o._wrapperState={wasMultiple:!!p.multiple},xn("invalid",o),hr(f,"onChange");break;case"textarea":Qn(o,p),xn("invalid",o),hr(f,"onChange")}for(a in pr(u,p),d=null,p)p.hasOwnProperty(a)&&(l=p[a],"children"===a?"string"==typeof l?o.textContent!==l&&(d=["children",l]):"number"==typeof l&&o.textContent!==""+l&&(d=["children",""+l]):w.hasOwnProperty(a)&&null!=l&&hr(f,a));switch(u){case"input":Ue(o),Mt(o,p,!0);break;case"textarea":Ue(o),Xn(o);break;case"select":case"option":break;default:"function"==typeof p.onClick&&(o.onclick=mr)}a=d,c.updateQueue=a,(c=null!==a)&&_o(t)}else{p=t,o=a,f=c,d=9===u.nodeType?u:u.ownerDocument,l===er&&(l=nr(o)),l===er?"script"===o?((o=d.createElement("div")).innerHTML="<script><\/script>",d=o.removeChild(o.firstChild)):"string"==typeof f.is?d=d.createElement(o,{is:f.is}):(d=d.createElement(o),"select"===o&&f.multiple&&(d.multiple=!0)):d=d.createElementNS(l,o),(o=d)[N]=p,o[I]=c,vo(o,t),f=o;var h=u,m=fr(d=a,p=c);switch(d){case"iframe":case"object":xn("load",f),u=p;break;case"video":case"audio":for(u=0;u<re.length;u++)xn(re[u],f);u=p;break;case"source":xn("error",f),u=p;break;case"img":case"image":case"link":xn("error",f),xn("load",f),u=p;break;case"form":xn("reset",f),xn("submit",f),u=p;break;case"details":xn("toggle",f),u=p;break;case"input":kt(f,p),u=wt(f,p),xn("invalid",f),hr(h,"onChange");break;case"option":u=Gn(f,p);break;case"select":f._wrapperState={wasMultiple:!!p.multiple},u=i({},p,{value:void 0}),xn("invalid",f),hr(h,"onChange");break;case"textarea":Qn(f,p),u=Jn(f,p),xn("invalid",f),hr(h,"onChange");break;default:u=p}pr(d,u),l=void 0;var _=d,v=f,g=u;for(l in g)if(g.hasOwnProperty(l)){var y=g[l];"style"===l?lr(v,y):"dangerouslySetInnerHTML"===l?null!=(y=y?y.__html:void 0)&&or(v,y):"children"===l?"string"==typeof y?("textarea"!==_||""!==y)&&ar(v,y):"number"==typeof y&&ar(v,""+y):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(w.hasOwnProperty(l)?null!=y&&hr(h,l):null!=y&&yt(v,l,y,m))}switch(d){case"input":Ue(f),Mt(f,p,!1);break;case"textarea":Ue(f),Xn(f);break;case"option":null!=p.value&&f.setAttribute("value",""+bt(p.value));break;case"select":(u=f).multiple=!!p.multiple,null!=(f=p.value)?Kn(u,!!p.multiple,f,!1):null!=p.defaultValue&&Kn(u,!!p.multiple,p.defaultValue,!0);break;default:"function"==typeof u.onClick&&(f.onclick=mr)}(c=gr(a,c))&&_o(t),t.stateNode=o}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&s("166");break;case 6:o&&null!=t.stateNode?yo(0,t,o.memoizedProps,c):("string"!=typeof c&&(null===t.stateNode&&s("166")),o=xi(Di.current),xi(Ci.current),eo(t)?(a=(c=t).stateNode,o=c.memoizedProps,a[N]=c,(c=a.nodeValue!==o)&&_o(t)):(a=t,(c=(9===o.nodeType?o:o.ownerDocument).createTextNode(c))[N]=t,a.stateNode=c));break;case 11:break;case 13:if(c=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=a,No=t;break e}c=null!==c,a=null!==o&&null!==o.memoizedState,null!==o&&!c&&a&&(null!==(o=o.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=o,o.nextEffect=u):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),(c!==a||0==(1&t.effectTag)&&c)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Si();break;case 10:bi(t);break;case 9:case 14:break;case 17:Pr(t.type)&&Ar();break;default:s("156")}No=null}if(t=e,1===Yo||1!==t.childExpirationTime){for(c=0,a=t.child;null!==a;)(o=a.expirationTime)>c&&(c=o),(u=a.childExpirationTime)>c&&(c=u),a=a.sibling;t.childExpirationTime=c}if(null!==No)return No;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=So(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function Vo(e){var t=mo(e.alternate,e,Yo);return e.memoizedProps=e.pendingProps,null===t&&(t=qo(e)),To.current=null,t}function $o(e,t){Ao&&s("243"),Ao=!0,To.currentDispatcher=jo;var n=e.nextExpirationTimeToWorkOn;n===Yo&&e===Io&&null!==No||(zo(),Yo=n,No=Vr((Io=e).current,null),e.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(t)for(;null!==No&&!Ea();)No=Vo(No);else for(;null!==No;)No=Vo(No)}catch(t){if(gi=vi=_i=null,null===No)r=!0,Aa(t);else{null===No&&s("271");var i=No,o=i.return;if(null!==o){e:{var a=e,c=o,u=i,l=t;if(o=Yo,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var d=l;l=c;var p=-1,f=-1;do{if(13===l.tag){var h=l.alternate;if(null!==h&&null!==(h=h.memoizedState)){f=10*(1073741822-h.timedOutAt);break}"number"==typeof(h=l.pendingProps.maxDuration)&&(0>=h?p=0:(-1===p||h<p)&&(p=h))}l=l.return}while(null!==l);l=c;do{if((h=13===l.tag)&&(h=void 0!==l.memoizedProps.fallback&&null===l.memoizedState),h){if(c=Jo.bind(null,a,l,u,0==(1&l.mode)?1073741823:o),d.then(c,c),0==(1&l.mode)){l.effectTag|=64,u.effectTag&=-1957,1===u.tag&&null===u.alternate&&(u.tag=17),u.expirationTime=o;break e}-1===p?a=1073741823:(-1===f&&(f=10*(1073741822-ei(a,o))-5e3),a=f+p),0<=a&&Ro<a&&(Ro=a),l.effectTag|=2048,l.expirationTime=o;break e}l=l.return}while(null!==l);l=Error((ut(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+lt(u))}Fo=!0,l=hi(l,u),a=c;do{switch(a.tag){case 3:u=l,a.effectTag|=2048,a.expirationTime=o,ci(a,o=xo(a,u,o));break e;case 1:if(u=l,c=a.type,d=a.stateNode,0==(64&a.effectTag)&&("function"==typeof c.getDerivedStateFromError||null!==d&&"function"==typeof d.componentDidCatch&&(null===Bo||!Bo.has(d)))){a.effectTag|=2048,a.expirationTime=o,ci(a,o=Eo(a,u,o));break e}}a=a.return}while(null!==a)}No=qo(i);continue}r=!0,Aa(t)}}break}if(Ao=!1,gi=vi=_i=To.currentDispatcher=null,r)Io=null,e.finishedWork=null;else if(null!==No)e.finishedWork=null;else{if(null===(r=e.current.alternate)&&s("281"),Io=null,Fo){if(i=e.latestPendingTime,o=e.latestSuspendedTime,a=e.latestPingedTime,0!==i&&i<n||0!==o&&o<n||0!==a&&a<n)return Xr(e,n),void ka(e,r,n,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,n=e.nextExpirationTimeToWorkOn=n,t=e.expirationTime=1073741823,void ka(e,r,n,t,-1)}t&&-1!==Ro?(Xr(e,n),(t=10*(1073741822-ei(e,n)))<Ro&&(Ro=t),t=10*(1073741822-Ca()),t=Ro-t,ka(e,r,n,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=n,e.finishedWork=r)}}function Go(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Bo||!Bo.has(r)))return si(n,e=Eo(n,e=hi(t,e),1073741823)),void Zo(n,1073741823);break;case 3:return si(n,e=xo(n,e=hi(t,e),1073741823)),void Zo(n,1073741823)}n=n.return}3===e.tag&&(si(e,n=xo(e,n=hi(t,e),1073741823)),Zo(e,1073741823))}function Ko(e,t){return 0!==Po?e=Po:Ao?e=Wo?1073741823:Yo:1&t.mode?(e=pa?1073741822-10*(1+((1073741822-e+15)/10|0)):1073741822-25*(1+((1073741822-e+500)/25|0)),null!==Io&&e===Yo&&--e):e=1073741823,pa&&(0===sa||e<sa)&&(sa=e),e}function Jo(e,t,n,r){var i=e.earliestSuspendedTime,o=e.latestSuspendedTime;if(0!==i&&r<=i&&r>=o){o=i=r,e.didError=!1;var a=e.latestPingedTime;(0===a||a>o)&&(e.latestPingedTime=o),ti(o,e)}else Zr(e,i=Ko(i=Ca(),t));0!=(1&t.mode)&&e===Io&&Yo===r&&(Io=null),Qo(t,i),0==(1&t.mode)&&(Qo(n,i),1===n.tag&&null!==n.stateNode&&((t=oi(i)).tag=2,si(n,t))),0!==(n=e.expirationTime)&&Ma(e,n)}function Qo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return i}function Zo(e,t){null!==(e=Qo(e,t))&&(!Ao&&0!==Yo&&t>Yo&&zo(),Zr(e,t),Ao&&!Wo&&Io===e||Ma(e,e.expirationTime),ga>va&&(ga=0,s("185")))}function Xo(e,t,n,r,i){var o=Po;Po=1073741823;try{return e(t,n,r,i)}finally{Po=o}}var ea=null,ta=null,na=0,ra=void 0,ia=!1,oa=null,aa=0,sa=0,ca=!1,ua=null,la=!1,da=!1,pa=!1,fa=null,ha=o.unstable_now(),ma=1073741822-(ha/10|0),_a=ma,va=50,ga=0,ya=null;function ba(){ma=1073741822-((o.unstable_now()-ha)/10|0)}function wa(e,t){if(0!==na){if(t<na)return;null!==ra&&o.unstable_cancelCallback(ra)}na=t,e=o.unstable_now()-ha,ra=o.unstable_scheduleCallback(Sa,{timeout:10*(1073741822-t)-e})}function ka(e,t,n,r,i){e.expirationTime=r,0!==i||Ea()?0<i&&(e.timeoutHandle=br(Oa.bind(null,e,t,n),i)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function Oa(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,ba(),_a=ma,Ta(e,n)}function Ca(){return ia||(Da(),0!==aa&&1!==aa||(ba(),_a=ma)),_a}function Ma(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===ta?(ea=ta=e,e.nextScheduledRoot=e):(ta=ta.nextScheduledRoot=e).nextScheduledRoot=ea):t>e.expirationTime&&(e.expirationTime=t),ia||(la?da&&(oa=e,aa=1073741823,La(e,1073741823,!1)):1073741823===t?ja(1073741823,!1):wa(e,t))}function Da(){var e=0,t=null;if(null!==ta)for(var n=ta,r=ea;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===ta)&&s("244"),r===r.nextScheduledRoot){ea=ta=r.nextScheduledRoot=null;break}if(r===ea)ea=i=r.nextScheduledRoot,ta.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===ta){(ta=n).nextScheduledRoot=ea,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>e&&(e=i,t=r),r===ta)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}oa=t,aa=e}var xa=!1;function Ea(){return!!xa||!!o.unstable_shouldYield()&&(xa=!0)}function Sa(){try{if(!Ea()&&null!==ea){ba();var e=ea;do{var t=e.expirationTime;0!==t&&ma<=t&&(e.nextExpirationTimeToWorkOn=ma),e=e.nextScheduledRoot}while(e!==ea)}ja(0,!0)}finally{xa=!1}}function ja(e,t){if(Da(),t)for(ba(),_a=ma;null!==oa&&0!==aa&&e<=aa&&!(xa&&ma>aa);)La(oa,aa,ma>aa),Da(),ba(),_a=ma;else for(;null!==oa&&0!==aa&&e<=aa;)La(oa,aa,!1),Da();if(t&&(na=0,ra=null),0!==aa&&wa(oa,aa),ga=0,ya=null,null!==fa)for(e=fa,fa=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){ca||(ca=!0,ua=e)}}if(ca)throw e=ua,ua=null,ca=!1,e}function Ta(e,t){ia&&s("253"),oa=e,aa=t,La(e,t,!1),ja(1073741823,!1)}function La(e,t,n){if(ia&&s("245"),ia=!0,n){var r=e.finishedWork;null!==r?Pa(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,wr(r)),$o(e,n),null!==(r=e.finishedWork)&&(Ea()?e.finishedWork=r:Pa(e,r,t)))}else null!==(r=e.finishedWork)?Pa(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,wr(r)),$o(e,n),null!==(r=e.finishedWork)&&Pa(e,r,t));ia=!1}function Pa(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===fa?fa=[r]:fa.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===ya?ga++:(ya=e,ga=0),Wo=Ao=!0,e.current===t&&s("177"),0===(n=e.pendingCommitExpirationTime)&&s("261"),e.pendingCommitExpirationTime=0,r=t.expirationTime;var i=t.childExpirationTime;if(r=i>r?i:r,e.didError=!1,0===r?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(0!==(i=e.latestPendingTime)&&(i>r?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>r&&(e.earliestPendingTime=e.latestPendingTime)),0===(i=e.earliestSuspendedTime)?Zr(e,r):r<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Zr(e,r)):r>i&&Zr(e,r)),ti(0,e),To.current=null,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,_r=Dn,Fn(i=Rn())){if("selectionStart"in i)var o={start:i.selectionStart,end:i.selectionEnd};else e:{var a=(o=(o=i.ownerDocument)&&o.defaultView||window).getSelection&&o.getSelection();if(a&&0!==a.rangeCount){o=a.anchorNode;var c=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{o.nodeType,u.nodeType}catch(e){o=null;break e}var l=0,d=-1,p=-1,f=0,h=0,m=i,_=null;t:for(;;){for(var v;m!==o||0!==c&&3!==m.nodeType||(d=l+c),m!==u||0!==a&&3!==m.nodeType||(p=l+a),3===m.nodeType&&(l+=m.nodeValue.length),null!==(v=m.firstChild);)_=m,m=v;for(;;){if(m===i)break t;if(_===o&&++f===c&&(d=l),_===u&&++h===a&&(p=l),null!==(v=m.nextSibling))break;_=(m=_).parentNode}m=v}o=-1===d||-1===p?null:{start:d,end:p}}else o=null}o=o||{start:0,end:0}}else o=null;for(vr={focusedElem:i,selectionRange:o},Dn=!1,Ho=r;null!==Ho;){i=!1,o=void 0;try{for(;null!==Ho;){if(256&Ho.effectTag)e:{var g=Ho.alternate;switch((c=Ho).tag){case 0:case 11:case 15:break e;case 1:if(256&c.effectTag&&null!==g){var y=g.memoizedProps,b=g.memoizedState,w=c.stateNode,k=w.getSnapshotBeforeUpdate(c.elementType===c.type?y:Li(c.type,y),b);w.__reactInternalSnapshotBeforeUpdate=k}break e;case 3:case 5:case 6:case 4:case 17:break e;default:s("163")}}Ho=Ho.nextEffect}}catch(e){i=!0,o=e}i&&(null===Ho&&s("178"),Go(Ho,o),null!==Ho&&(Ho=Ho.nextEffect))}for(Ho=r;null!==Ho;){g=!1,y=void 0;try{for(;null!==Ho;){var O=Ho.effectTag;if(16&O&&ar(Ho.stateNode,""),128&O){var C=Ho.alternate;if(null!==C){var M=C.ref;null!==M&&("function"==typeof M?M(null):M.current=null)}}switch(14&O){case 2:Co(Ho),Ho.effectTag&=-3;break;case 6:Co(Ho),Ho.effectTag&=-3,Do(Ho.alternate,Ho);break;case 4:Do(Ho.alternate,Ho);break;case 8:Mo(b=Ho),b.return=null,b.child=null,b.alternate&&(b.alternate.child=null,b.alternate.return=null)}Ho=Ho.nextEffect}}catch(e){g=!0,y=e}g&&(null===Ho&&s("178"),Go(Ho,y),null!==Ho&&(Ho=Ho.nextEffect))}if(M=vr,C=Rn(),O=M.focusedElem,y=M.selectionRange,C!==O&&O&&O.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(O.ownerDocument.documentElement,O)){null!==y&&Fn(O)&&(C=y.start,void 0===(M=y.end)&&(M=C),"selectionStart"in O?(O.selectionStart=C,O.selectionEnd=Math.min(M,O.value.length)):(M=(C=O.ownerDocument||document)&&C.defaultView||window).getSelection&&(M=M.getSelection(),b=O.textContent.length,g=Math.min(y.start,b),y=void 0===y.end?g:Math.min(y.end,b),!M.extend&&g>y&&(b=y,y=g,g=b),b=Yn(O,g),w=Yn(O,y),b&&w&&(1!==M.rangeCount||M.anchorNode!==b.node||M.anchorOffset!==b.offset||M.focusNode!==w.node||M.focusOffset!==w.offset)&&((C=C.createRange()).setStart(b.node,b.offset),M.removeAllRanges(),g>y?(M.addRange(C),M.extend(w.node,w.offset)):(C.setEnd(w.node,w.offset),M.addRange(C))))),C=[];for(M=O;M=M.parentNode;)1===M.nodeType&&C.push({element:M,left:M.scrollLeft,top:M.scrollTop});for("function"==typeof O.focus&&O.focus(),O=0;O<C.length;O++)(M=C[O]).element.scrollLeft=M.left,M.element.scrollTop=M.top}for(vr=null,Dn=!!_r,_r=null,e.current=t,Ho=r;null!==Ho;){r=!1,O=void 0;try{for(C=n;null!==Ho;){var D=Ho.effectTag;if(36&D){var x=Ho.alternate;switch(g=C,(M=Ho).tag){case 0:case 11:case 15:break;case 1:var E=M.stateNode;if(4&M.effectTag)if(null===x)E.componentDidMount();else{var S=M.elementType===M.type?x.memoizedProps:Li(M.type,x.memoizedProps);E.componentDidUpdate(S,x.memoizedState,E.__reactInternalSnapshotBeforeUpdate)}var j=M.updateQueue;null!==j&&pi(0,j,E);break;case 3:var T=M.updateQueue;if(null!==T){if(y=null,null!==M.child)switch(M.child.tag){case 5:y=M.child.stateNode;break;case 1:y=M.child.stateNode}pi(0,T,y)}break;case 5:var L=M.stateNode;null===x&&4&M.effectTag&&gr(M.type,M.memoizedProps)&&L.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:s("163")}}if(128&D){var P=Ho.ref;if(null!==P){var A=Ho.stateNode;switch(Ho.tag){case 5:var N=A;break;default:N=A}"function"==typeof P?P(N):P.current=N}}Ho=Ho.nextEffect}}catch(e){r=!0,O=e}r&&(null===Ho&&s("178"),Go(Ho,O),null!==Ho&&(Ho=Ho.nextEffect))}Ao=Wo=!1,"function"==typeof Hr&&Hr(t.stateNode),D=t.expirationTime,0===(t=(t=t.childExpirationTime)>D?t:D)&&(Bo=null),e.expirationTime=t,e.finishedWork=null}function Aa(e){null===oa&&s("246"),oa.expirationTime=0,ca||(ca=!0,ua=e)}function Na(e,t){var n=la;la=!0;try{return e(t)}finally{(la=n)||ia||ja(1073741823,!1)}}function Ia(e,t){if(la&&!da){da=!0;try{return e(t)}finally{da=!1}}return e(t)}function Ya(e,t,n){if(pa)return e(t,n);la||ia||0===sa||(ja(sa,!1),sa=0);var r=pa,i=la;la=pa=!0;try{return e(t,n)}finally{pa=r,(la=i)||ia||ja(1073741823,!1)}}function Ra(e,t,n,r,i){var o=t.current;e:if(n){t:{2===rn(n=n._reactInternalFiber)&&1===n.tag||s("170");var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Pr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(null!==a);s("171"),a=void 0}if(1===n.tag){var c=n.type;if(Pr(c)){n=Yr(n,c,a);break e}}n=a}else n=Er;return null===t.context?t.context=n:t.pendingContext=n,t=i,(i=oi(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),si(o,i),Zo(o,r),r}function Fa(e,t,n,r){var i=t.current;return Ra(e,t,n,i=Ko(Ca(),i),r)}function Ha(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Wa(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Je,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ba(e){var t=1073741822-25*(1+((1073741822-Ca()+500)/25|0));t>=Lo&&(t=Lo-1),this._expirationTime=Lo=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function za(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Ua(e,t,n){e={current:t=Ur(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function qa(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Va(e,t,n,r,i){qa(n)||s("200");var o=n._reactRootContainer;if(o){if("function"==typeof i){var a=i;i=function(){var e=Ha(o._internalRoot);a.call(e)}}null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ua(e,!1,t)}(n,r),"function"==typeof i){var c=i;i=function(){var e=Ha(o._internalRoot);c.call(e)}}Ia((function(){null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}))}return Ha(o._internalRoot)}function $a(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return qa(t)||s("200"),Wa(e,t,null,n)}Ee=function(e,t,n){switch(t){case"input":if(Ct(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=H(r);i||s("90"),qe(r),Ct(r,i)}}}break;case"textarea":Zn(e,n);break;case"select":null!=(t=n.value)&&Kn(e,!!n.multiple,t,!1)}},Ba.prototype.render=function(e){this._defer||s("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new za;return Ra(e,t,null,n,r._onCommit),r},Ba.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ba.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||s("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,i=t;i!==this;)r=i,i=i._next;null===r&&s("251"),r._next=i._next,this._next=t,e.firstBatch=this}this._defer=!1,Ta(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Ba.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},za.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},za.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&s("191",n),n()}}},Ua.prototype.render=function(e,t){var n=this._internalRoot,r=new za;return null!==(t=void 0===t?null:t)&&r.then(t),Fa(e,n,null,r._onCommit),r},Ua.prototype.unmount=function(e){var t=this._internalRoot,n=new za;return null!==(e=void 0===e?null:e)&&n.then(e),Fa(null,t,null,n._onCommit),n},Ua.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new za;return null!==(n=void 0===n?null:n)&&i.then(n),Fa(t,r,e,i._onCommit),i},Ua.prototype.createBatch=function(){var e=new Ba(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Ae=Na,Ne=Ya,Ie=function(){ia||0===sa||(ja(sa,!1),sa=0)};var Ga,Ka,Ja={createPortal:$a,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?s("188"):s("268",Object.keys(e))),e=null===(e=an(t))?null:e.stateNode},hydrate:function(e,t,n){return Va(null,e,t,!0,n)},render:function(e,t,n){return Va(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&s("38"),Va(e,t,n,!1,r)},unmountComponentAtNode:function(e){return qa(e)||s("40"),!!e._reactRootContainer&&(Ia((function(){Va(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return $a.apply(void 0,arguments)},unstable_batchedUpdates:Na,unstable_interactiveUpdates:Ya,flushSync:function(e,t){ia&&s("187");var n=la;la=!0;try{return Xo(e,t)}finally{la=n,ja(1073741823,!1)}},unstable_flushControlled:function(e){var t=la;la=!0;try{Xo(e)}finally{(la=t)||ia||ja(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[R,F,H,T.injectEventPluginsByName,b,V,function(e){E(e,q)},Le,Pe,jn,P]},unstable_createRoot:function(e,t){return qa(e)||s("299","unstable_createRoot"),new Ua(e,!0,null!=t&&!0===t.hydrate)}};Ka=(Ga={findFiberByHostInstance:Y,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Hr=Br((function(e){return t.onCommitFiberRoot(n,e)})),Wr=Br((function(e){return t.onCommitFiberUnmount(n,e)}))}catch(e){}}(i({},Ga,{findHostInstanceByFiber:function(e){return null===(e=an(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Ka?Ka(e):null}}));var Qa={default:Ja},Za=Qa&&Ja||Qa;e.exports=Za.default||Za},function(e,t,n){"use strict";e.exports=n(228)},function(e,t,n){"use strict";(function(e){

/** @license React v0.11.3

* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

Object.defineProperty(t,“__esModule”,{value:!0});var n=null,r=!1,i=3,o=-1,a=-1,s=!1,c=!1;function u(){if(!s){var e=n.expirationTime;c?O():c=!0,k(p,e)}}function l(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var o=i,s=a;i=e,a=t;try{var c=r()}finally{i=o,a=s}if(“function”==typeof c)if(c={callback:c,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=c.next=c.previous=c;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=c,u()),(t=r.previous).next=r.previous=c,c.next=r,c.previous=t}}function d(){if(-1===o&&null!==n&&1===n.priorityLevel){s=!0;try{do{l()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?u():c=!1}}}function p(e){s=!0;var i=r;r=e;try{if(e)for(;null!==n;){var o=t.unstable_now();if(!(n.expirationTime<=o))break;do{l()}while(null!==n&&n.expirationTime<=o)}else if(null!==n)do{l()}while(null!==n&&!C())}finally{s=!1,r=i,null!==n?u():c=!1,d()}}var f,h,m=Date,_=“function”==typeof setTimeout?setTimeout:void 0,v=“function”==typeof clearTimeout?clearTimeout:void 0,g=“function”==typeof requestAnimationFrame?requestAnimationFrame:void 0,y=“function”==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function b(e){f=g((function(t){v(h),e(t)})),h=_((function(){y(f),e(t.unstable_now())}),100)}if(“object”==typeof performance&&“function”==typeof performance.now){var w=performance;t.unstable_now=function(){return w.now()}}else t.unstable_now=function(){return m.now()};var k,O,C,M=null;if(“undefined”!=typeof window?M=window:void 0!==e&&(M=e),M&&M._schedMock){var D=M._schedMock;k=D,O=D,C=D,t.unstable_now=D}else if(“undefined”==typeof window||“function”!=typeof MessageChannel){var x=null,E=function(e){if(null!==x)try{x(e)}finally{x=null}};k=function(e){null!==x?setTimeout(k,0,e):(x=e,setTimeout(E,0,!1))},O=function(){x=null},C=function(){return!1}}else{“undefined”!=typeof console&&(“function”!=typeof g&&console.error(“This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. fb.me/react-polyfills”),“function”!=typeof y&&console.error(“This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. fb.me/react-polyfills”));var S=null,j=!1,T=-1,L=!1,P=!1,A=0,N=33,I=33;C=function(){return A<=t.unstable_now()};var Y=new MessageChannel,R=Y.port2;Y.port1.onmessage=function(){j=!1;var e=S,n=T;S=null,T=-1;var r=t.unstable_now(),i=!1;if(0>=A-r){if(!(-1!==n&&n<=r))return L||(L=!0,b(F)),S=e,void(T=n);i=!0}if(null!==e){P=!0;try{e(i)}finally{P=!1}}};var F=function(e){if(null!==S){b(F);var t=e-A+I;t<I&&N<I?(8>t&&(t=8),I=t<N?N:t):N=t,A=e+I,j||(j=!0,R.postMessage(void 0))}else L=!1};k=function(e,t){S=e,T=t,P||0>t?R.postMessage(void 0):L||(L=!0,b(F))},O=function(){S=null,j=!1,T=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=i,a=o;i=e,o=t.unstable_now();try{return n()}finally{i=r,o=a,d()}},t.unstable_scheduleCallback=function(e,r){var a=-1!==o?o:t.unstable_now();if(“object”==typeof r&&null!==r&&“number”==typeof r.timeout)r=a+r.timeout;else switch(i){case 1:r=a+-1;break;case 2:r=a+250;break;case 5:r=a+1073741823;break;case 4:r=a+1e4;break;default:r=a+5e3}if(e={callback:e,priorityLevel:i,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,u();else{a=null;var s=n;do{if(s.expirationTime>r){a=s;break}s=s.next}while(s!==n);null===a?a=n:a===n&&(n=e,u()),(r=a.previous).next=a.previous=e,e.next=a,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=i;return function(){var r=i,a=o;i=n,o=t.unstable_now();try{return e.apply(this,arguments)}finally{i=r,o=a,d()}}},t.unstable_getCurrentPriorityLevel=function(){return i},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||C())}}).call(this,n(41))},function(e,t,n){“use strict”;e.exports=n(230)},function(e,t,n){“use strict”; /** @license React v16.13.1

* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(80),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.forward_ref"):60112,f=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,_="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||g}function w(){}function k(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||g}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=b.prototype;var O=k.prototype=new w;O.constructor=k,r(O,b.prototype),O.isPureReactComponent=!0;var C={current:null},M=Object.prototype.hasOwnProperty,D={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)M.call(t,r)&&!D.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:C.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var S=/\/+/g,j=[];function T(e,t,n,r){if(j.length){var i=j.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function L(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>j.length&&j.push(e)}function P(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case o:case a:c=!0}}if(c)return r(i,t,""===n?"."+A(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var l=n+A(s=t[u],u);c+=e(s,l,r,i)}else if(null===t||"object"!=typeof t?l=null:l="function"==typeof(l=_&&t[_]||t["@@iterator"])?l:null,"function"==typeof l)for(t=l.call(t),u=0;!(s=t.next()).done;)c+=e(s=s.value,l=n+A(s,u++),r,i);else if("object"===s)throw r=""+t,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return c}(e,"",t,n)}function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function N(e,t){e.func.call(e.context,t,e.count++)}function I(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Y(e,r,n,(function(e){return e})):null!=e&&(E(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(S,"$&/")+"/")+n)),r.push(e))}function Y(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(S,"$&/")+"/"),P(e,I,t=T(t,o,r,i)),L(t)}var R={current:null};function F(){var e=R.current;if(null===e)throw Error(v(321));return e}var H={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return Y(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;P(e,N,t=T(null,null,t,n)),L(t)},count:function(e){return P(e,(function(){return null}),null)},toArray:function(e){var t=[];return Y(e,t,null,(function(e){return e})),t},only:function(e){if(!E(e))throw Error(v(143));return e}},t.Component=b,t.Fragment=s,t.Profiler=u,t.PureComponent=k,t.StrictMode=c,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var i=r({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)M.call(t,l)&&!D.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){u=Array(l);for(var d=0;d<l;d++)u[d]=arguments[d+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.13.1"},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){var r,i,o;

/*!

* jQuery UI Widget 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/i=[n(53),n(118)],void 0===(o="function"==typeof(r=function(e){var t,n=0,r=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=e._data(i,"events"))&&r.remove&&e(i).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,r){var i,o,a,s={},c=t.split(".")[0],u=c+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr[":"][u.toLowerCase()]=function(t){return!!e.data(t,u)},e[c]=e[c]||{},i=e[c][t],o=e[c][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(a=new n).options=e.widget.extend({},a.options),e.each(r,(function(t,r){e.isFunction(r)?s[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function i(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=e,this._superApply=i,t=r.apply(this,arguments),this._super=n,this._superApply=o,t}}():s[t]=r})),o.prototype=e.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||t},s,{constructor:o,namespace:c,widgetName:t,widgetFullName:u}),i?(e.each(i._childConstructors,(function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,i,o=r.call(arguments,1),a=0,s=o.length;a<s;a++)for(n in o[a])i=o[a][n],o[a].hasOwnProperty(n)&&void 0!==i&&(e.isPlainObject(i)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],i):e.widget.extend({},i):t[n]=i);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=function(o){var a="string"==typeof o,s=r.call(arguments,1),c=this;return a?this.length||"instance"!==o?this.each((function(){var n,r=e.data(this,i);return"instance"===o?(c=r,!1):r?e.isFunction(r[o])&&"_"!==o.charAt(0)?(n=r[o].apply(r,s))!==r&&void 0!==n?(c=n&&n.jquery?c.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+o+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")})):c=void 0:(s.length&&(o=e.widget.extend.apply(null,[o].concat(s))),this.each((function(){var t=e.data(this,i);t?(t.option(o||{}),t._init&&t._init()):e.data(this,i,new n(o,this))}))),c}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,n){t._removeClass(n,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,i,o,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},r=t.split("."),t=r.shift(),r.length){for(i=a[t]=e.widget.extend({},this.options[t]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(t=r.pop(),1===arguments.length)return void 0===i[t]?null:i[t];i[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,r,i;for(n in t)i=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&i&&i.length&&(r=e(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],r=this;function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||e(),a=t.add?e(e.unique(a.get().concat(t.element.get()))):e(a.not(t.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&t.classes[i[s]]&&n.push(t.classes[i[s]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,(function(r,i){-1!==e.inArray(t.target,i)&&(n.classesElementLookup[r]=e(i.not(t.target).get()))}))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof e||null===e,o={extra:i?t:n,keys:i?e:t,element:i?this.element:e,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(t,n,r){var i,o=this;"boolean"!=typeof t&&(r=n,n=t,t=!1),r?(n=i=e(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),e.each(r,(function(r,a){function s(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||e.guid++);var c=r.match(/^([\w:-]*)\s*(.*)$/),u=c[1]+o.eventNamespace,l=c[2];l?i.on(u,l,s):n.on(u,s)}))},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout((function(){return("string"==typeof e?n[e]:e).apply(n,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,r){var i,o,a=this.options[t];if(r=r||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!(e.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,n){e.Widget.prototype["_"+t]=function(r,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:t;"number"==typeof(i=i||{})&&(i={duration:i}),a=!e.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&e.effects&&e.effects.effect[s]?r[t](i):s!==t&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){e(this)[t](),o&&o.call(r[0]),n()}))}})),e.widget})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.r(t),n.d(t,"status",(function(){return i})),n.d(t,"isActive",(function(){return o})),n.d(t,"isCompleted",(function(){return a})),n.d(t,"isFailed",(function(){return s})),n.d(t,"failed",(function(){return c}));var r=n(2),i=function(e){return 0===e.progress?"failed":100===e.progress?"completed":"active"},o=function(e){return"active"===i(e)},a=function(e){return"completed"===i(e)},s=function(e){return"failed"===i(e)},c=function(e){return Object(r.filter)(e,s)}},function(e,t,n){var r=n(560),i=n(613),o=n(169),a=n(65),s=n(620);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(104)(n(75),"Map");e.exports=r},function(e,t,n){var r=n(119),i=n(81);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(578),i=n(585),o=n(587),a=n(588),s=n(589);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(590),i=n(82);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(603),i=n(82),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(65),i=n(145),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(616);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){"use strict";var r,i,o=this&&this.__extends||(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])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),c=n(646),u=n(175),l=n(30),d=n(148),p=n(249).default;function f(e,t){return{dragDropManager:c.createDragDropManager(e,t)}}t.Consumer=(i=s.createContext({dragDropManager:void 0})).Consumer,t.Provider=i.Provider,t.createChildContext=f,t.DragDropContextProvider=function(e){var n=e.backend,r=e.context,i=e.children,o=f(n,r);return s.createElement(t.Provider,{value:o},i)},t.DragDropContext=function(e,n){u.default("DragDropContext","backend",e);var r=f(e,n);return function(e){var n=e,i=n.displayName||n.name||"Component",c=function(c){function u(){var e=null!==c&&c.apply(this,arguments)||this;return e.ref=s.createRef(),e}return o(u,c),u.prototype.getDecoratedComponentInstance=function(){return l(this.ref.current,"In order to access an instance of the decorated component it can not be a stateless component."),this.ref.current},u.prototype.getManager=function(){return r.dragDropManager},u.prototype.render=function(){return s.createElement(t.Provider,{value:r},s.createElement(n,a({},this.props,{ref:p(n)?this.ref:void 0})))},u.DecoratedComponent=e,u.displayName="DragDropContext("+i+")",u}(s.Component);return d(c,e)}}},function(e,t,n){var r=n(653);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(164),i=n(246),o=n(247),a=n(165),s=n(663),c=n(239);e.exports=function(e,t,n){var u=-1,l=i,d=e.length,p=!0,f=[],h=f;if(n)p=!1,l=o;else if(d>=200){var m=t?null:s(e);if(m)return c(m);p=!1,l=a,h=new r}else h=t?[]:f;e:for(;++u<d;){var _=e[u],v=t?t(_):_;if(_=n||0!==_?_:0,p&&v==v){for(var g=h.length;g--;)if(h[g]===v)continue e;t&&h.push(v),f.push(_)}else l(h,v,n)||(h!==f&&h.push(v),f.push(_))}return f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){return Boolean(e&&e.prototype&&"function"==typeof e.prototype.render)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FILE="__NATIVE_FILE__",t.URL="__NATIVE_URL__",t.TEXT="__NATIVE_TEXT__"},function(e,t,n){var r=n(439),i=n(252);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(439),i=n(252);function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRegExpFromDelimiters=function(e){var t=e.map((function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)})).join(""),n=(0,o.default)(t);return new RegExp("["+n+"]+")},t.canDrag=function(e){var t=e.moveTag,n=e.readOnly,r=e.allowDragDrop;return void 0!==t&&!n&&r},t.canDrop=function(e){var t=e.readOnly,n=e.allowDragDrop;return!t&&n};var r,i=n(719),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var o=i(n(391)),a=r(n(474)),s=r(n(103)),c=i(n(74)),u=i(n(475)),l=r(n(476));function d(){var e=new o.HandlebarsEnvironment;return c.extend(e,o),e.SafeString=a.default,e.Exception=s.default,e.Utils=c,e.escapeExpression=c.escapeExpression,e.VM=u,e.template=function(t){return u.template(t,e)},e}var p=d();p.create=d,l.default(p),p.default=p,t.default=p,e.exports=t.default},function(e,t,n){"use strict";e.exports=n(508)},function(e,t,n){var r,i,o,a,s,c,u,l,d,p,f,h;a=n(4),f=n(2),r=n(3).BasicObj,d=n(524).default,o=n(525),p=n(397),s=n(56).SINGLE_SELECTION_MODE,h=n(52),u=h.TransformationSourceInvalidError,l=h.TransformationSourceTooLargeError,i=n(15).default,c=scrivito.legacyCreateConnectedComponent({displayName:"ThumbnailItem",propTypes:{objId:a.string.isRequired,handleSelectClick:a.func.isRequired,itemClasses:a.string.isRequired,selectClasses:a.string.isRequired,selectionMode:a.string.isRequired,selectedObjs:a.arrayOf(a.string)},_obj:function(){return r.get(this.props.objId)},_title:function(){return scrivito.titleForObj(this._obj())},_subtitle:function(){return scrivito.descriptionForObj(this._obj())},_itemToolTip:function(){var e;return e=this._title(),null!=this._subtitle()&&(e+="\n"+this._subtitle()),e},_mimeTypeIconClassName:function(e){var t;return t="scrivito_icon ",t+=d(e)},_isTransformable:function(e){var t;return t=["image/jpeg","image/png"],f.contains(t,e)},_handleImageTransformation:function(e){var t,n;try{return n=e.optimizeFor({width:260,height:140}),React.createElement("img",{src:n.url()})}catch(e){if((t=e)instanceof l)return React.createElement("div",{className:"scrivito-content-browser-preview image-too-large"});if(t instanceof u)return React.createElement("div",{className:"scrivito-content-browser-preview image-invalid"});throw t}},_previewImage:function(){var e,t,n;return n=null!=(e=this._obj().get("blob",["binary"]))?e.raw().contentType():void 0,t=null!=e?e.raw().contentLength():void 0,this._isTransformable(n)?this._handleImageTransformation(e):n&&0===n.indexOf("image/")&&t<15e4?React.createElement("img",{src:e.url()}):React.createElement("span",{className:this._mimeTypeIconClassName(n)})},_modificationIconClassName:function(){return"scrivito_icon scrivito_"+this._obj().modification()},_modificationIconTooltip:function(){return i.translate("content_browser.item.tooltip.is_"+this._obj().modification())},render:function(){return React.createElement("li",{className:this.props.itemClasses},React.createElement("div",{className:"scrivito-content-browser-item-wrapper",onClick:this.props.handleSelectClick},React.createElement("div",{className:"scrivito-content-browser-preview"},this._obj().modification()&&React.createElement("i",{className:this._modificationIconClassName(),title:this._modificationIconTooltip()}),this._obj().isRestricted()&&React.createElement("i",{className:"scrivito_icon scrivito_icon_lock",title:i.translate("content_browser.item.tooltip.is_restricted")}),React.createElement(o,{get:(e=this,function(){return e._previewImage()})})),React.createElement("div",{className:this.props.selectClasses},React.createElement(o,{className:"scrivito-content-browser-thumbnails-name",getTitle:function(e){return function(){return e._itemToolTip()}}(this),get:function(e){return function(){return e._title()}}(this)}),React.createElement(o,{className:"scrivito-content-browser-thumbnails-size",get:function(e){return function(){return e._subtitle()}}(this)}),this.props.selectionMode!==s?React.createElement("span",{className:"scrivito-content-browser-thumbnails-select select-item"}):void 0)));var e}}),e.exports=p(c)},function(e,t,n){var r,i,o,a;a=n(22),o=n(4),i=n(529),r=a({displayName:"InfiniteScrollLoader",propTypes:{isLoading:o.bool.isRequired,hasMore:o.bool.isRequired,fetch:o.func.isRequired,tag:o.string.isRequired,className:o.string.isRequired,style:o.object},componentDidUpdate:function(){return this._fullyFillContainer(),this._ensureFullPageIsPreloaded()},componentDidMount:function(){return this._fullyFillContainer()},render:function(){var e,t;return e={className:this.props.className,ref:(t=this,function(e){return t.container=e}),style:this.props.style,onScroll:function(e){return function(){return e._ensureFullPageIsPreloaded()}}(this)},React.createElement(this.props.tag,e,this._childrenAndLoader())},_ensureFullPageIsPreloaded:function(){if(this._isViewportAtBottom()&&this.props.hasMore&&!this.props.isLoading)return this.props.fetch()},_fullyFillContainer:function(){if(this.props.hasMore&&!this.props.isLoading&&!this._isFullViewPort())return this.props.fetch()},_isFullViewPort:function(){return this.container.scrollHeight>this.container.offsetHeight},_isViewportAtBottom:function(){return this.container.scrollTop>=this.container.scrollHeight-2*this.container.offsetHeight},_childrenAndLoader:function(){var e;return e=[this.props.children],this.props.isLoading&&e.push(React.createElement(i,{key:"spinner"})),e}}),e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"MAXIMIZE_TOGGLE",(function(){return r})),n.d(t,"toggleInspectorMaximized",(function(){return i}));var r="MAXIMAZED_INSPECTOR_TOGGLE";function i(){return{type:r}}},function(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){

/*!

* Photo Editor SDK - photoeditorsdk.com
* Copyright (c) 2013-2015 9elements GmbH
*
* Released under Attribution-NonCommercial 3.0 Unported
* http://creativecommons.org/licenses/by-nc/3.0/
*
* For commercial use, please contact us at contact@9elements.com
*/

“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(1)),a=i(n(2)),s=i(n(3)),c=n(4),u=i(n(5)),l=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),void 0===t)throw new Error(“No options given.”);if((t=u.default.defaults(t,{assetsUrl:“assets”,container:null,renderOnWindowResize:!1,versionCheck:!0})).ui=t.ui||{},t.ui=u.default.defaults(t.ui,{enabled:!0}),void 0===t.image&&!t.ui.enabled)throw new Error(“`options.image` needs to be set when UI is disabled.”);this._options=t,this.operationsStack=[],this._registeredUIs={},this._registerUIs(),this._registeredOperations={},this._registerOperations(),“undefined”!=typeof window&&this._options.versionCheck&&(this._versionChecker=new s.default(“2.0.0-2”)),this._options.ui.enabled&&(this._initUI(),this._options.renderOnWindowResize&&this._handleWindowResize())}return r(e,[{key:“render”,value:function(e,t,n,r){var i=this,s=a.default.validateSettings(e,t);e=s.renderType,t=s.imageFormat;for(var c=new o.default(this._options.image,this.operationsStack,n,this._options.renderer),u=0;u<this.operationsStack.length;u++){var l=this.operationsStack;l&&(l.dirty=!0)}return c.render().then((function(){var n=c.getRenderer().getCanvas();return a.default.export(i._options.image,n,e,t,r)}))}},{key:“reset”,value:function(){}},{key:“getAssetPath”,value:function(e){return“undefined”!=typeof window?this._options.assetsUrl+“/”+e:n(51).resolve(this._options.assetsUrl,e)}},{key:“_handleWindowResize”,value:function(){var e=this,t=null;window.addEventListener(“resize”,(function(){null!==t&&clearTimeout(t),t=setTimeout((function(){t=null,e.ui.render()}),300)}))}},{key:“_registerUIs”,value:function(){this.registerUI(e.NightUI)}},{key:“_registerOperations”,value:function(){for(var t in e.Operations)this.registerOperation(e.Operations)}},{key:“registerOperation”,value:function(e){this._registeredOperations=e,this.ui&&this.ui.addOperation(e)}},{key:“registerUI”,value:function(e){this._registeredUIs=e}},{key:“_initUI”,value:function(){var e;!0===this._options.ui.enabled&&(e=u.default.values(this._registeredUIs)),e&&(this.ui=new e(this,this._options))}},{key:“getOperationFromStack”,value:function(e){return this.operationsStack.filter((function(t){return t.identifier===e}))[0]}},{key:“run”,value:function(){void 0!==this.ui&&this.ui.run()}},{key:“registeredOperations”,get:function(){return this._registeredOperations}}]),e}();l.version=“2.0.0-2”,l.RenderImage=o.default,l.Color=n(6),l.Filter=n(7),l.Operation=n(8),l.Operations={},l.Operations.Filters=n(9),l.Operations.Crop=n(10),l.Operations.Rotation=n(11),l.Operations.Saturation=n(12),l.Operations.Contrast=n(13),l.Operations.Brightness=n(14),l.Operations.Flip=n(15),l.Operations.TiltShift=n(16),l.Operations.RadialBlur=n(17),l.Operations.Text=n(18),l.Operations.Stickers=n(19),l.Operations.Frames=n(20),l.Filters={},l.Filters.A15=n(21),l.Filters.Breeze=n(22),l.Filters.BW=n(23),l.Filters.BWHard=n(24),l.Filters.Celsius=n(25),l.Filters.Chest=n(26),l.Filters.Fixie=n(27),l.Filters.Food=n(28),l.Filters.Fridge=n(29),l.Filters.Front=n(30),l.Filters.Glam=n(31),l.Filters.Gobblin=n(32),l.Filters.K1=n(33),l.Filters.K2=n(34),l.Filters.K6=n(35),l.Filters.KDynamic=n(36),l.Filters.Lenin=n(37),l.Filters.Lomo=n(38),l.Filters.Mellow=n(39),l.Filters.Morning=n(40),l.Filters.Orchid=n(41),l.Filters.Pola=n(42),l.Filters.Pola669=n(43),l.Filters.Quozi=n(44),l.Filters.Semired=n(45),l.Filters.Sunny=n(46),l.Filters.Texas=n(47),l.Filters.X400=n(48),l.RenderType=c.RenderType,l.ImageFormat=c.ImageFormat,l.Vector2=n(49),l.NightUI=n(50),t.default=l,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(53)),a=i(n(49)),s=i(n(54)),c=i(n(55)),u=function(){function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this._options={preferredRenderer:i},this._webglEnabled=!1,this._renderer=null,this._image=t,this._stack=n,this._dimensions=new o.default®,this._initialDimensions=new a.default(this._image.width,this._image.height),this._initRenderer()}return r(e,[{key:“_initRenderer”,value:function(){if(c.default.isSupported()&&“canvas”!==this._options.preferredRenderer?(this._renderer=new c.default(this._initialDimensions),this._webglEnabled=!0):s.default.isSupported()&&(this._renderer=new s.default(this._initialDimensions),this._webglEnabled=!1),null===this._renderer)throw new Error(“Neither Canvas nor WebGL renderer are supported.”);this._renderer.drawImage(this._image)}},{key:“render”,value:function(){for(var e=this,t=this.sanitizedStack,n=[],r=0;r<t.length;r++){var i=t;n.push(i.validateSettings())}return Promise.all(n).then((function(){for(var n=[],r=0;r<t.length;r++){var i=t;n.push(i.render(e._renderer))}return Promise.all(n)})).then((function(){return e._renderer.renderFinal()})).then((function(){var t=e._renderer.getSize(),n=e._dimensions.calculateFinalDimensions(t);if(!n.equals(t))return e._renderer.resizeTo(n)}))}},{key:“getRenderer”,value:function(){return this._renderer}},{key:“sanitizedStack”,get:function(){for(var e=[],t=0;t<this._stack.length;t++){var n=this._stack;n&&e.push(n)}return e}}]),e}();t.default=u,e.exports=t.default},function(e,t,n){(function®{“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=n(4),s=o(n(56)),c=o(n(5)),u=o(n(57)),l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e)}return i(e,null,[{key:“validateSettings”,value:function(e,t){var n={renderType:e,imageFormat:t};if(void 0!==n.renderType&&null!==n.renderType&&-1===c.default.values(a.RenderType).indexOf(n.renderType))throw new Error(“Invalid render type: ”+n.renderType);if(void 0===e&&(n.renderType=a.RenderType.DATAURL),void 0!==n.imageFormat&&null!==n.imageFormat&&-1===c.default.values(a.ImageFormat).indexOf(n.imageFormat))throw new Error(“Invalid image format: ”+n.imageFormat);if(void 0===t&&(n.imageFormat=a.ImageFormat.PNG),n.renderType===a.RenderType.BUFFER&&void 0===r)throw new Error(“Render type 'buffer' is only available when using node.js”);return n}},{key:“export”,value:function(e,t,r,i){var o=void 0===arguments?.8:arguments;return new u.default((function(c,u){var l=void 0;if(r===a.RenderType.IMAGE||r===a.RenderType.DATAURL){l=“undefined”==typeof window?t.toDataURL(i):t.toDataURL(i,o);var d=/^data:image/jpeg/i;e.src.match(d)&&l.match(d)&&(l=s.default.restore(e.src,l))}if(r===a.RenderType.IMAGE){var p=void 0;(p=“undefined”==typeof window?new(0,n(52).Image):new Image).src=l,c(p)}else r===a.RenderType.DATAURL?c(l):r===a.RenderType.BUFFER?c(t.toBuffer()):r===a.RenderType.MSBLOB?c(t.msToBlob()):r===a.RenderType.BLOB&&t.toBlob((function(e){c(e)}),i,o)}))}}]),e}();t.default=l,e.exports=t.default}).call(t,n(74))},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this._version=t,this._check()}return r(e,[{key:“_check”,value:function(){var e=this;window.imglySDKVersionCallback=function(t){t.outdated&&(console.warn(“imgly-sdk-html5: Your version ”e._version“ is outdated.”),console.warn(“imgly-sdk-html5: Current version is ”t.version“.”))};var t=document.createElement(“script”);t.src=“http://sdk.img.ly/version.json?sdk=html5&jsoncallback=imglySDKVersionCallback&version=”+this._version,t.async=!0,document.getElementsByTagName(“head”)[0].appendChild(t)}}]),e}();t.default=i,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),t.RenderType={IMAGE:“image”,DATAURL:“data-url”,BUFFER:“buffer”,BLOB:“blob”,MSBLOB:“ms-blob”},t.ImageFormat={PNG:“image/png”,JPEG:“image/jpeg”}},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(49),a=(r=o)&&r.__esModule?r:{default:r},s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e)}return i(e,null,[{key:“isArray”,value:function(e){return“[object Array]”===Object.prototype.toString.call(e)}},{key:“select”,value:function(t){var n=void 0===arguments?null:arguments;if(null===n)return t;if(“string”==typeof n&&(n=n.split(“,”).map((function(e){return e.trim()}))),e.isArray(n)&&(n={only:n}),void 0!==n.only)return“string”==typeof n.only&&(n.only=n.only.split(“,”).map((function(e){return e.trim()}))),t.filter((function(e){return-1!==n.only.indexOf(e)}));if(void 0!==n.except)return“string”==typeof n.except&&(n.except=n.except.split(“,”).map((function(e){return e.trim()}))),t.filter((function(e){return-1===n.except.indexOf(e)}));throw new Error(“Utils#select failed to filter items.”)}},{key:“values”,value:function(e){var t=[];for(var n in e)t.push(e);return t}},{key:“isDOMElement”,value:function(e){return“object”==typeof HTMLElement?e instanceof HTMLElement:e&&“object”==typeof e&&null!==e&&1===e.nodeType&&“string”==typeof e.nodeName}},{key:“getEventPosition”,value:function(e){var t=e.pageX,n=e.pageY;return-1!==e.type.indexOf(“touch”)&&(t=e.touches.pageX,n=e.touches.pageY),new a.default(t,n)}},{key:“resizeVectorToFit”,value:function(e,t){var n=Math.min(t.x/e.x,t.y/e.y);return e.clone().multiply(n)}},{key:“defaults”,value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=arguments;var i={};for(var o in e)i=e;for(var a=0;a<n.length;a++){var s=n;for(var o in s)void 0===i&&(i=s)}return i}},{key:“extend”,value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=arguments;var i={};for(var o in e)i=e;for(var a=0;a<n.length;a++){var s=n;for(var o in s)i=s}return i}},{key:“fetch”,value:function(e,t,n){for(var r=(t=(t=t.replace(//g,“.$1”)).replace(/^./,“”)).split(“.”),i=0;i]);i++);return void 0===e&&(e=n),e}}]),e}();t.default=s,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),void 0===i&&(i=1),this.r=t,this.g=n,this.b=r,this.a=i}return r(e,[{key:“toRGBA”,value:function(){return“rgba(”+.join(“,”)+“)”}},{key:“toHex”,value:function(){return“#”+.join(“”)}},{key:“toGLColor”,value:function(){return}},{key:“toRGBGLColor”,value:function(){return}},{key:“toHSV”,value:function(){var e,t=Math.max(this.r,this.g,this.b),n=Math.min(this.r,this.g,this.b),r=void 0,i=t,o=t-n;if(e=0===t?0:o/t,t===n)r=0;else{switch(t){case this.r:r=(this.g-this.b)/o+(this.g<this.b?6:0);break;case this.g:r=(this.b-this.r)/o+2;break;case this.b:r=(this.r-this.g)/o+4}r/=6}return}},{key:“fromHSV”,value:function(e,t,n){var r=this.r,i=this.g,o=this.b,a=Math.floor(6*e),s=6*e-a,c=n*(1-t),u=n*(1-s*t),l=n*(1-(1-s)*t);switch(a%6){case 0:r=n,i=l,o=c;break;case 1:r=u,i=n,o=c;break;case 2:r=c,i=n,o=l;break;case 3:r=c,i=u,o=n;break;case 4:r=l,i=c,o=n;break;case 5:r=n,i=c,o=u}this.r=r,this.g=i,this.b=o}},{key:“clone”,value:function(){return new e(this.r,this.g,this.b,this.a)}},{key:“_componentToHex”,value:function(e){var t=e.toString(16);return 1===t.length?“0”+t:t}},{key:“toString”,value:function(){return“Color(”this.r“, ”this.g“, ”this.b“, ”this.a“)”}}]),e}();t.default=i,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e)}return r(e,[{key:“render”,value:function(e){throw new Error(“Filter#render is abstract and not implemented in inherited class.”)}}],[{key:“identifier”,get:function(){return null}}]),e}();i.extend=n(58),i.PrimitivesStack=n(59),i.Primitives={},i.Primitives.Saturation=n(60),i.Primitives.LookupTable=n(61),i.Primitives.ToneCurve=n(62),i.Primitives.SoftColorOverlay=n(63),i.Primitives.Desaturation=n(64),i.Primitives.X400=n(65),i.Primitives.Grayscale=n(66),i.Primitives.Contrast=n(67),i.Primitives.Glow=n(68),i.Primitives.Gobblin=n(69),i.Primitives.Brightness=n(70),t.default=i,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(49)),a=i(n(6)),s=i(n(5)),c=i(n(72)),u=i(n(57)),l=i(n(58)),d=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,t),function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),“constructor”,this).call(this),this._kit=e,this.availableOptions=s.default.extend(this.availableOptions||{},{numberFormat:{type:“string”,default:“relative”,available:}}),this._dirty=!0,this._glslPrograms={},this._uuid=“xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx”.replace(//g,(function(e){var t=16*Math.random()|0;return(“x”===e?t:3&t|8).toString(16)})),this._initOptions(n||{})}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“validateSettings”,value:function(){var e=this,t=this.identifier;return new u.default((function(n,r){for(var i in e.availableOptions)if(e.availableOptions.required&&void 0===e._options)return r(new Error(“Operation `”t“`: Option `”i“` is required.”));n()}))}},{key:“render”,value:function(e){var t=void 0;t=“webgl”===e.identifier?this._renderWebGL.bind(this):this._renderCanvas.bind(this),this._dirty?(t(e),e.cache(this._uuid),this._dirty=!1):e.drawCached(this._uuid)}},{key:“_renderWebGL”,value:function(){throw new Error(“Operation#_renderWebGL is abstract and not implemented in inherited class.”)}},{key:“_renderCanvas”,value:function(){throw new Error(“Operation#_renderCanvas is abstract and not implemented in inherited class.”)}},{key:“_initOptions”,value:function(e){var t,n,r;this._options={};var i=this;for(t in this.availableOptions)r=t.charAt(0).toUpperCase()+t.slice(1),n=this.availableOptions,function(e,t){i=function(t){i._setOption(e,t)},i=function(){return i._getOption(e)}}(t),void 0!==n.default&&this(n.default);for(t in e){if(void 0===this.availableOptions)throw new Error(“Invalid option: ”+t);this(e)}}},{key:“set”,value:function(e){for(var t in e)this._setOption(t,e,!1);this.emit(“update”)}},{key:“_getOption”,value:function(e){return this._options}},{key:“_setOption”,value:function(e,t){var n=void 0===arguments||arguments,r=this.availableOptions,i=this.identifier;switch(void 0!==r.setter&&(t=r.setter.call(this,t)),void 0!==r.validation&&r.validation(t),r.type){case“string”:if(“string”!=typeof t)throw new Error(“Operation `”i“`: Option `”e“` has to be a string.”);var s=r.available;if(void 0!==s&&-1===s.indexOf(t))throw new Error(“Operation `”i“`: Invalid value for `”e“` (valid values are: ”+r.available.join(“, ”)+“)”);this._options=t;break;case“number”:if(“number”!=typeof t)throw new Error(“Operation `”i“`: Option `”e“` has to be a number.”);this._options=t;break;case“boolean”:if(“boolean”!=typeof t)throw new Error(“Operation `”i“`: Option `”e“` has to be a boolean.”);this._options=t;break;case“vector2”:if(!(t instanceof o.default))throw new Error(“Operation `”i“`: Option `”e“` has to be an instance of ImglyKit.Vector2.”);this._options=t.clone();break;case“color”:if(!(t instanceof a.default))throw new Error(“Operation `”i“`: Option `”e“` has to be an instance of ImglyKit.Color.”);this._options=t;break;case“object”:this._options=t}this._dirty=!0,n&&this.emit(“update”)}},{key:“getNewDimensions”,value:function(e,t){var n=e.getCanvas();return t=t||new o.default(n.width,n.height)}},{key:“dirty”,set:function(e){this._dirty=e},get:function(){return this._dirty}}]),t}(c.default);d.prototype.identifier=null,d.extend=l.default,t.default=d,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var a=i(n(8)),s=i(n(71)),c=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,),t}(a.default);c.prototype.identifier=“filters”,c.prototype.availableOptions={filter:{type:“object”,default:s.default,setter:function(e){return this._selectedFilter=new e,e}}},t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(8)),c=o(n(49)),u=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this.fragmentShader=“n precision mediump float;n uniform sampler2D u_image;n varying vec2 v_texCoord;n uniform vec2 u_cropStart;n uniform vec2 u_cropEnd;nn void main() {n vec2 size = u_cropEnd - u_cropStart;n gl_FragColor = texture2D(u_image, v_texCoord * size + u_cropStart);n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_renderWebGL”,value:function(e){var t=e.getCanvas(),n=new c.default(t.width,t.height),r=this._options.start.clone(),i=this._options.end.clone();“absolute”===this._options.numberFormat&&(r.divide(n),i.divide(n));var o=r.y;r.y=1-i.y,i.y=1-o;var a=this.getNewDimensions(e);t.width=a.x,t.height=a.y,e.runShader(null,this.fragmentShader,{uniforms:{u_cropStart:{type:“2f”,value:},u_cropEnd:{type:“2f”,value:}}})}},{key:“_renderCanvas”,value:function(e){var t=e.getCanvas(),n=new c.default(t.width,t.height),r=this.getNewDimensions(e),i=e.createCanvas();i.width=r.x,i.height=r.y;var o=i.getContext(“2d”),a=this._options.start.clone();“relative”===this._options.numberFormat&&a.multiply(n),o.drawImage(t,a.x,a.y,r.x,r.y,0,0,r.x,r.y),e.setCanvas(i)}},{key:“getNewDimensions”,value:function(e,t){var n=e.getCanvas();t=t||new c.default(n.width,n.height);var r=this._options.end.clone().subtract(this._options.start);return“relative”===this._options.numberFormat&&r.multiply(t),r}}]),t}(s.default);u.prototype.identifier=“crop”,u.prototype.availableOptions={start:{type:“vector2”,required:!0,default:new c.default(0,0)},end:{type:“vector2”,required:!0,default:new c.default(1,1)}},t.default=u,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(8)),c=o(n(49)),u=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this.vertexShader=“n attribute vec2 a_position;n attribute vec2 a_texCoord;n varying vec2 v_texCoord;n uniform mat3 u_matrix;nn void main() {n gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);n v_texCoord = a_texCoord;n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_renderWebGL”,value:function(e){var t=e.getCanvas(),n=this._options.degrees%360;if(n%180!=0){var r=this.getNewDimensions(e);t.width=r.x,t.height=r.y}var i=n*(Math.PI/180),o=Math.cos(i),a=Math.sin(i),s=;e.runShader(this.vertexShader,null,{uniforms:{u_matrix:{type:“mat3fv”,value:s}}})}},{key:“_renderCanvas”,value:function(e){var t=e.getCanvas(),n=this._options.degrees%360,r=this.getNewDimensions(e),i=e.createCanvas();i.width=r.x,i.height=r.y;var o=i.getContext(“2d”);o.save(),o.translate(i.width/2,i.height/2),o.rotate(n*(Math.PI/180));var a=e.cloneCanvas();o.drawImage(a,-t.width/2,-t.height/2),o.restore(),e.setCanvas(i)}},{key:“getNewDimensions”,value:function(e,t){var n=e.getCanvas();if(t=t||new c.default(n.width,n.height),this._options.degrees%360%180!=0){var r=t.x;t.x=t.y,t.y=r}return t}}]),t}(s.default);u.prototype.identifier=“rotation”,u.prototype.availableOptions={degrees:{type:“number”,default:0,validation:function(e){if(e%90!=0)throw new Error(“RotationOperation: `rotation` has to be a multiple of 90.”)}}},t.default=u,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var a=i(n(8)),s=i(n(59)),c=i(n(60)),u=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_renderWebGL”,value:function(e){this._render(e)}},{key:“_renderCanvas”,value:function(e){this._render(e)}},{key:“_render”,value:function(e){this._stack||(this._stack=new s.default,this._primitive=new c.default({saturation:this._options.saturation}),this._stack.add(this._primitive)),this._primitive.options.saturation=this._options.saturation,this._stack.render(e)}}]),t}(a.default);u.prototype.identifier=“saturation”,u.prototype.availableOptions={saturation:{type:“number”,default:1}},t.default=u,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var a=i(n(8)),s=i(n(59)),c=i(n(67)),u=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_renderWebGL”,value:function(e){this._render(e)}},{key:“_renderCanvas”,value:function(e){this._render(e)}},{key:“_render”,value:function(e){this._stack||(this._stack=new s.default,this._primitive=new c.default({contrast:this._options.contrast}),this._stack.add(this._primitive)),this._primitive.options.contrast=this._options.contrast,this._stack.render(e)}}]),t}(a.default);u.prototype.identifier=“contrast”,u.prototype.availableOptions={contrast:{type:“number”,default:1}},t.default=u,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var a=i(n(8)),s=i(n(59)),c=i(n(70)),u=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_renderWebGL”,value:function(e){this._render(e)}},{key:“_renderCanvas”,value:function(e){this._render(e)}},{key:“_render”,value:function(e){this._stack||(this._stack=new s.default,this._primitive=new c.default({brightness:this._options.brightness}),this._stack.add(this._primitive)),this._primitive.options.brightness=this._options.brightness,this._stack.render(e)}}]),t}(a.default);u.prototype.identifier=“brightness”,u.prototype.availableOptions={brightness:{type:“number”,default:0}},t.default=u,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var a,s=n(8),c=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;o(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this.fragmentShader=“n precision mediump float;n uniform sampler2D u_image;n varying vec2 v_texCoord;n uniform bool u_flipVertical;n uniform bool u_flipHorizontal;nn void main() {n vec2 texCoord = vec2(v_texCoord);n if (u_flipVertical) {n texCoord.y = 1.0 - texCoord.y;n }n if (u_flipHorizontal) {n texCoord.x = 1.0 - texCoord.x;n }n gl_FragColor = texture2D(u_image, texCoord);n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_renderWebGL”,value:function(e){e.runShader(null,this.fragmentShader,{uniforms:{u_flipVertical:{type:“f”,value:this._options.vertical},u_flipHorizontal:{type:“f”,value:this._options.horizontal}}})}},{key:“_renderCanvas”,value:function(e){var t=e.getCanvas(),n=e.getContext(),r=1,i=1,o=0,a=0;this._options.horizontal&&(r=-1,o=t.width),this._options.vertical&&(i=-1,a=t.height),n.save(),n.translate(o,a),n.scale(r,i);var s=e.cloneCanvas();n.drawImage(s,0,0),n.restore()}}]),t}(((a=s)&&a.__esModule?a:{default:a}).default);c.prototype.identifier=“flip”,c.prototype.availableOptions={horizontal:{type:“boolean”,default:!1},vertical:{type:“boolean”,default:!1}},t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(8)),c=o(n(49)),u=o(n(73)),l=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._fragmentShader=“n precision mediump float;n uniform sampler2D u_image;n uniform float blurRadius;n uniform float gradientRadius;n uniform vec2 start;n uniform vec2 end;n uniform vec2 delta;n uniform vec2 texSize;n varying vec2 v_texCoord;nn float random(vec3 scale, float seed) {n return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed);n }nn void main() {n vec4 color = vec4(0.0);n float total = 0.0;nn float offset = random(vec3(12.9898, 78.233, 151.7182), 0.0);nn vec2 normal = normalize(vec2(start.y - end.y, end.x - start.x));n float radius = smoothstep(0.0, 1.0, abs(dot(v_texCoord * texSize - start, normal)) / gradientRadius) * blurRadius;n for (float t = -30.0; t <= 30.0; t++) {n float percent = (t + offset - 0.5) / 30.0;n float weight = 1.0 - abs(percent);n vec4 sample = texture2D(u_image, v_texCoord + delta * percent * radius / texSize);nn sample.rgb *= sample.a;nn color += sample * weight;n total += weight;n }nn gl_FragColor = color / total;n gl_FragColor.rgb /= gl_FragColor.a + 0.00001;n }n ”,this._cachedBlurredCanvas=null,this._lastBlurRadius=this._options.blurRadius,this._lastGradientRadius=this._options.gradientRadius}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_renderWebGL”,value:function(e){var t=e.getCanvas(),n=new c.default(t.width,t.height),r=this._options.start.clone(),i=this._options.end.clone();“relative”===this._options.numberFormat&&(r.multiply(n),i.multiply(n)),r.y=n.y-r.y,i.y=n.y-i.y;var o=i.clone().subtract®,a=Math.sqrt(o.x*o.x+o.y*o.y),s={blurRadius:{type:“f”,value:this._options.blurRadius},gradientRadius:{type:“f”,value:this._options.gradientRadius},start:{type:“2f”,value:},end:{type:“2f”,value:},delta:{type:“2f”,value:},texSize:{type:“2f”,value:}};this._glslPrograms||(this._glslPrograms=e.setupGLSLProgram(null,this._fragmentShader)),e.runProgram(this._glslPrograms,{uniforms:s}),s.delta.value=,e.runProgram(this._glslPrograms,{uniforms:s})}},{key:“_renderCanvas”,value:function(e){var t=e.getCanvas(),n=void 0;this._options.blurRadius!==this._lastBlurRadius||this._options.gradientRadius!==this._lastGradientRadius||null===this._cachedBlurredCanvas?(n=this._blurCanvas(e),this._cachedBlurredCanvas=n,this._lastBlurRadius=this._options.blurRadius,this._lastGradientRadius=this._options.gradientRadius):n=this._cachedBlurredCanvas;var r=this._createMask(e);this._applyMask(t,n,r)}},{key:“_blurCanvas”,value:function(e){var t=e.cloneCanvas(),n=t.getContext(“2d”),r=n.getImageData(0,0,t.width,t.height);return u.default.stackBlurCanvasRGBA(r,0,0,t.width,t.height,this._options.blurRadius),n.putImageData(r,0,0),t}},{key:“_createMask”,value:function(e){var t=e.getCanvas(),n=new c.default(t.width,t.height),r=this._options.gradientRadius,i=e.createCanvas(t.width,t.height),o=i.getContext(“2d”),a=this._options.start.clone(),s=this._options.end.clone();“relative”===this._options.numberFormat&&(a.multiply(n),s.multiply(n));var u=s.clone().subtract(a),l=a.clone().add(u.clone().divide(2)),d=Math.sqrt(Math.pow(u.x,2)+Math.pow(u.y,2)),p=u.clone().divide(d),f=l.clone().add(r*p.y,-r*p.x),h=l.clone().add(-r*p.y,r*p.x),m=o.createLinearGradient(f.x,f.y,h.x,h.y);return m.addColorStop(0,“#000000”),m.addColorStop(.5,“#FFFFFF”),m.addColorStop(1,“#000000”),o.fillStyle=m,o.fillRect(0,0,t.width,t.height),i}},{key:“_applyMask”,value:function(e,t,n){for(var r=e.getContext(“2d”),i=t.getContext(“2d”),o=n.getContext(“2d”),a=r.getImageData(0,0,e.width,e.height),s=a.data,c=i.getImageData(0,0,e.width,e.height).data,u=o.getImageData(0,0,e.width,e.height).data,l=0;l<u.length;l++){var d=u/255;s=d*s+(1-d)*c}r.putImageData(a,0,0)}},{key:“dirty”,set:function(e){!function e(t,n,r,i){var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);null!==a&&e(a,n,r,i)}else if(“value”in o&&o.writable)o.value=r;else{var s=o.set;void 0!==s&&s.call(i,r)}return r}(Object.getPrototypeOf(t.prototype),“dirty”,e,this),this._cachedBlurredCanvas=null},get:function(){return i(Object.getPrototypeOf(t.prototype),“dirty”,this)}}]),t}(s.default);l.prototype.identifier=“tilt-shift”,l.prototype.availableOptions={start:{type:“vector2”,default:new c.default(0,.5)},end:{type:“vector2”,default:new c.default(1,.5)},blurRadius:{type:“number”,default:30},gradientRadius:{type:“number”,default:50}},t.default=l,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(8)),c=o(n(49)),u=o(n(73)),l=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._fragmentShader=“n precision mediump float;n uniform sampler2D u_image;n uniform float blurRadius;n uniform float gradientRadius;n uniform vec2 position;n uniform vec2 delta;n uniform vec2 texSize;n varying vec2 v_texCoord;nn float random(vec3 scale, float seed) {n return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed);n }nn void main() {n vec4 color = vec4(0.0);n float total = 0.0;nn float offset = random(vec3(12.9898, 78.233, 151.7182), 0.0);n float radius = smoothstep(0.0, 1.0, abs(distance(v_texCoord * texSize, position)) / (gradientRadius * 2.0)) * blurRadius;n for (float t = -30.0; t <= 30.0; t++) {n float percent = (t + offset - 0.5) / 30.0;n float weight = 1.0 - abs(percent);n vec4 sample = texture2D(u_image, v_texCoord + delta * percent * radius / texSize);nn sample.rgb *= sample.a;nn color += sample * weight;n total += weight;n }nn gl_FragColor = color / total;n gl_FragColor.rgb /= gl_FragColor.a + 0.00001;n }n ”,this._cachedBlurredCanvas=null,this._lastBlurRadius=this._options.blurRadius,this._lastGradientRadius=this._options.gradientRadius}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_renderWebGL”,value:function(e){var t=e.getCanvas(),n=new c.default(t.width,t.height),r=this._options.position.clone();r.y=1-r.y,“relative”===this._options.numberFormat&&r.multiply(n);var i={blurRadius:{type:“f”,value:this._options.blurRadius},gradientRadius:{type:“f”,value:this._options.gradientRadius},position:{type:“2f”,value:},texSize:{type:“2f”,value:},delta:{type:“2f”,value:}};this._glslPrograms||(this._glslPrograms=e.setupGLSLProgram(null,this._fragmentShader)),e.runProgram(this._glslPrograms,{uniforms:i}),i.delta.value=,e.runProgram(this._glslPrograms,{uniforms:i})}},{key:“_renderCanvas”,value:function(e){var t=e.getCanvas(),n=void 0;this._options.blurRadius!==this._lastBlurRadius||null===this._cachedBlurredCanvas?(n=this._blurCanvas(e),this._cachedBlurredCanvas=n,this._lastBlurRadius=this._options.blurRadius,this._lastGradientRadius=this._options.gradientRadius):n=this._cachedBlurredCanvas;var r=this._createMask(e);this._applyMask(t,n,r)}},{key:“_blurCanvas”,value:function(e){var t=e.cloneCanvas(),n=t.getContext(“2d”),r=n.getImageData(0,0,t.width,t.height);return u.default.stackBlurCanvasRGBA(r,0,0,t.width,t.height,this._options.blurRadius),n.putImageData(r,0,0),t}},{key:“_createMask”,value:function(e){var t=e.getCanvas(),n=new c.default(t.width,t.height),r=this._options.gradientRadius,i=e.createCanvas(t.width,t.height),o=i.getContext(“2d”),a=this._options.position.clone();“relative”===this._options.numberFormat&&a.multiply(n);var s=o.createRadialGradient(a.x,a.y,0,a.x,a.y,r);return s.addColorStop(0,“#FFFFFF”),s.addColorStop(1,“#000000”),o.fillStyle=s,o.fillRect(0,0,t.width,t.height),i}},{key:“_applyMask”,value:function(e,t,n){for(var r,i,o=e.getContext(“2d”),a=t.getContext(“2d”),s=n.getContext(“2d”),c=o.getImageData(0,0,e.width,e.height),u=c.data,l=a.getImageData(0,0,e.width,e.height).data,d=s.getImageData(0,0,e.width,e.height).data,p=0;p<e.height;p++)for(var f=0;f/255,u=i*u+(1-i)*l,u=i*u+(1-i)*l,u=i*u+(1-i)*l;o.putImageData(c,0,0)}},{key:“dirty”,set:function(e){!function e(t,n,r,i){var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);null!==a&&e(a,n,r,i)}else if(“value”in o&&o.writable)o.value=r;else{var s=o.set;void 0!==s&&s.call(i,r)}return r}(Object.getPrototypeOf(t.prototype),“dirty”,e,this),this._cachedBlurredCanvas=null},get:function(){return i(Object.getPrototypeOf(t.prototype),“dirty”,this)}}]),t}(s.default);l.prototype.identifier=“radial-blur”,l.prototype.availableOptions={position:{type:“vector2”,default:new c.default(.5,.5)},gradientRadius:{type:“number”,default:50},blurRadius:{type:“number”,default:20}},t.default=l,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(8)),c=o(n(49)),u=o(n(6)),l=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._textureIndex=1,this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;n uniform sampler2D u_textImage;n uniform vec2 u_position;n uniform vec2 u_size;nn void main() {n vec4 color0 = texture2D(u_image, v_texCoord);n vec2 relative = (v_texCoord - u_position) / u_size;nn if (relative.x >= 0.0 && relative.x <= 1.0 &&n relative.y >= 0.0 && relative.y <= 1.0) {nn vec4 color1 = texture2D(u_textImage, relative);nn // GL_SOURCE_ALPHA, GL_ONE_MINUS_SOURCE_ALPHAn gl_FragColor = color1 + color0 * (1.0 - color1.a);nn } else {nn gl_FragColor = color0;nn }n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_renderWebGL”,value:function(e){var t=this._renderTextCanvas(e),n=e.getCanvas(),r=e.getContext(),i=this._options.position.clone(),o=new c.default(n.width,n.height),a=new c.default(t.width,t.height).divide(o);“absolute”===this._options.numberFormat&&i.divide(o),i.y=1-i.y,i.y-=a.y,“center”===this._options.verticalAlignment?i.y+=a.y/2:“bottom”===this._options.verticalAlignment&&(i.y+=a.y),“center”===this._options.alignment?i.x-=a.x/2:“right”===this._options.alignment&&(i.x-=a.x),r.activeTexture(r.TEXTURE0+this._textureIndex),this._texture=r.createTexture(),r.bindTexture(r.TEXTURE_2D,this._texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),r.activeTexture(r.TEXTURE0),e.runShader(null,this._fragmentShader,{uniforms:{u_textImage:{type:“i”,value:this._textureIndex},u_position:{type:“2f”,value:},u_size:{type:“2f”,value:}}})}},{key:“_renderCanvas”,value:function(e){var t=this._renderTextCanvas(e),n=e.getCanvas(),r=e.getContext(),i=new c.default(n.width,n.height),o=this._options.position.clone();“relative”===this._options.numberFormat&&o.multiply(i),“center”===this._options.verticalAlignment?o.y-=t.height/2:“bottom”===this._options.verticalAlignment&&(o.y-=t.height),“center”===this._options.alignment?o.x-=t.width/2:“right”===this._options.alignment&&(o.x-=t.width),r.drawImage(t,o.x,o.y)}},{key:“_renderTextCanvas”,value:function(e){var t=void 0,n=void 0,r=e.createCanvas(),i=r.getContext(“2d”),o=e.getCanvas(),a=new c.default(o.width,o.height),s=this._options.maxWidth,u=this._options.fontSize*a.y,l=this._options.lineHeight*u;“relative”===this._options.numberFormat&&(s*=e.getCanvas().width),this._applyTextOptions(e,i);var d=new c.default,p=this._options.text.split(“n”);if(void 0!==s)d.x=s,p=this._buildOutputLines(i,s);else for(n=0;n,d.x=Math.max(d.x,i.measureText(t).width);for(d.y=l*p.length,r.width=d.x,r.height=d.y,(i=r.getContext(“2d”)).fillStyle=this._options.backgroundColor.toRGBA(),i.fillRect(0,0,r.width,r.height),this._applyTextOptions(e,i),n=0;n,this._drawText(i,t,l*n);return r}},{key:“_applyTextOptions”,value:function(e,t){var n=e.getCanvas(),r=new c.default(n.width,n.height),i=this._options.fontSize*r.y;t.font=this._options.fontWeight+“ ”i“px ”+this._options.fontFamily,t.textBaseline=“top”,t.textAlign=this._options.alignment,t.fillStyle=this._options.color.toRGBA()}},{key:“_buildOutputLines”,value:function(e,t){for(var n=this._options.text.split(“n”),r=[],i=,o=0;o<n.length;o++){var a=n.split(“”);0===a.length&&r.push(“”);for(var s=0;s<a.length;s++){var c=a;i.push©;var u=i.join(“”),l=e.measureText(u).width;if(l>t&&1===i.length)r.push(i),i=[];else if(l>t){var d=i.pop();r.push(i.join(“”)),i=[],i=}else s===a.length-1&&(r.push(i.join(“”)),i=[])}i.length&&(r.push(i.join(“”)),i=)}return r}},{key:“_drawText”,value:function(e,t,n){var r=e.canvas;“center”===this._options.alignment?e.fillText(t,r.width/2,n):“left”===this._options.alignment?e.fillText(t,0,n):“right”===this._options.alignment&&e.fillText(t,r.width,n)}}]),t}(s.default);l.prototype.identifier=“text”,l.prototype.availableOptions={fontSize:{type:“number”,default:.1},lineHeight:{type:“number”,default:1.1},fontFamily:{type:“string”,default:“Times New Roman”},fontWeight:{type:“string”,default:“normal”},alignment:{type:“string”,default:“left”,available:},verticalAlignment:{type:“string”,default:“top”,available:},color:{type:“color”,default:new u.default(1,1,1,1)},backgroundColor:{type:“color”,default:new u.default(0,0,0,0)},position:{type:“vector2”,default:new c.default(0,0)},text:{type:“string”,required:!0},maxWidth:{type:“number”,default:1}},t.default=l,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(8)),c=o(n(49)),u=o(n(57)),l=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._textureIndex=1,this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;n uniform sampler2D u_stickerImage;n uniform vec2 u_position;n uniform vec2 u_size;nn void main() {n vec4 color0 = texture2D(u_image, v_texCoord);n vec2 relative = (v_texCoord - u_position) / u_size;nn if (relative.x >= 0.0 && relative.x <= 1.0 &&n relative.y >= 0.0 && relative.y <= 1.0) {nn vec4 color1 = texture2D(u_stickerImage, relative);nn // GL_SOURCE_ALPHA, GL_ONE_MINUS_SOURCE_ALPHAn gl_FragColor = color1 + color0 * (1.0 - color1.a);nn } else {nn gl_FragColor = color0;nn }n }n ”,this._loadedStickers={}}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=this;return this._loadSticker().then((function(n){return“webgl”===e.identifier?t._renderWebGL(e,n):t._renderCanvas(e,n)}))}},{key:“_renderWebGL”,value:function(e,t){var n=e.getCanvas(),r=e.getContext(),i=this._options.position.clone(),o=new c.default(n.width,n.height);“absolute”===this._options.numberFormat&&i.divide(o);var a=new c.default(t.width,t.height);if(void 0!==this._options.size){a.copy(this._options.size),“relative”===this._options.numberFormat&&a.multiply(o);var s=t.height/t.width;a.y=a.x*s}a.divide(o),i.y=1-i.y,i.y-=a.y,r.activeTexture(r.TEXTURE0+this._textureIndex),this._texture=r.createTexture(),r.bindTexture(r.TEXTURE_2D,this._texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),r.activeTexture(r.TEXTURE0),e.runShader(null,this._fragmentShader,{uniforms:{u_stickerImage:{type:“i”,value:this._textureIndex},u_position:{type:“2f”,value:},u_size:{type:“2f”,value:}}})}},{key:“_renderCanvas”,value:function(e,t){var n=e.getCanvas(),r=e.getContext(),i=new c.default(n.width,n.height),o=this._options.position.clone();“relative”===this._options.numberFormat&&o.multiply(i);var a=new c.default(t.width,t.height);void 0!==this._options.size&&(a.copy(this._options.size),“relative”===this._options.numberFormat&&a.multiply(i)),r.drawImage(t,0,0,t.width,t.height,o.x,o.y,a.x,a.y)}},{key:“_loadSticker”,value:function(){return“undefined”!=typeof window?this._loadImageBrowser(this._options.sticker):this._loadImageNode(this._options.sticker)}},{key:“_loadImageBrowser”,value:function(e){var t=this;return new u.default((function(n,r){if(t._loadedStickers)return n(t._loadedStickers);var i=new Image;i.addEventListener(“load”,(function(){t._loadedStickers=i,n(i)})),i.addEventListener(“error”,(function(){r(new Error(“Could not load sticker: ”+e))})),i.src=t._kit.getAssetPath(e)}))}},{key:“_loadImageNode”,value:function(e){var t=n(52),r=n(51),i=new t.Image,o=this._kit.getAssetPath(e);return new u.default((function(e,t){r.readFile(o,(function(n,r){if(n)return t(n);i.src=r,e(i)}))}))}},{key:“stickers”,get:function(){return this._stickers}}]),t}(s.default);l.prototype.identifier=“stickers”,l.prototype.availableOptions={sticker:{type:“string”},position:{type:“vector2”,default:new c.default(0,0)},size:{type:“vector2”,default:new c.default(0,0)}},t.default=l,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(8)),c=o(n(6)),u=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._textureIndex=1,this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;n uniform sampler2D u_frameImage;n uniform vec4 u_color;n uniform vec2 u_thickness;nn void main() {n vec4 fragColor = texture2D(u_image, v_texCoord);n if (v_texCoord.x < u_thickness.x || v_texCoord.x > 1.0 - u_thickness.x ||n v_texCoord.y < u_thickness.y || v_texCoord.y > 1.0 - u_thickness.y) {n fragColor = mix(fragColor, u_color, u_color.a);n }nn gl_FragColor = fragColor;n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_renderWebGL”,value:function(e){var t=e.getCanvas(),n=this._options.color,r=this._options.thickness*t.height,i=,o={u_color:{type:“4f”,value:n.toGLColor()},u_thickness:{type:“2f”,value:i}};this._glslPrograms||(this._glslPrograms=e.setupGLSLProgram(null,this._fragmentShader)),e.runProgram(this._glslPrograms,{uniforms:o})}},{key:“_renderCanvas”,value:function(e){var t=e.getCanvas(),n=e.getContext(),r=this._options.color,i=this._options.thickness*t.height;n.save(),n.beginPath(),n.lineWidth=2*i,n.strokeStyle=r.toRGBA(),n.rect(0,0,t.width,t.height),n.stroke(),n.restore()}}]),t}(s.default);u.prototype.identifier=“frames”,u.prototype.availableOptions={color:{type:“color”,default:new c.default(0,0,0,1)},thickness:{type:“number”,default:.02}},t.default=u,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.Contrast({contrast:.63})),t.add(new s.default.Primitives.Brightness({brightness:.12})),t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[94,94],,[175,187],],green:[,[77,53],,[255,255]],blue:[,[48,85],,[255,255]]}})),t.render(e)}},{key:“name”,get:function(){return“15”}}],[{key:“identifier”,get:function(){return“a15”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.Desaturation({desaturation:.5})),t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[170,170],,[234,242],],green:[,[170,168],,[255,255]],blue:[,[170,170],,[255,255]]}})),t.render(e)}},{key:“name”,get:function(){return“Breeze”}}],[{key:“identifier”,get:function(){return“breeze”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.Grayscale),t.render(e)}},{key:“name”,get:function(){return“B&W”}}],[{key:“identifier”,get:function(){return“bw”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.Grayscale),t.add(new s.default.Primitives.Contrast({contrast:1.5})),t.render(e)}},{key:“name”,get:function(){return“1920”}}],[{key:“identifier”,get:function(){return“bwhard”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[55,110],,[255,255]],green:[,[89,93],,[255,189]],blue:[,[39,82],,[255,171]]}})),t.render(e)}},{key:“name”,get:function(){return“Celsius”}}],[{key:“identifier”,get:function(){return“celsius”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[44,44],,[221,204],],green:[,[130,127],,[255,255]],blue:[,[51,52],,[255,255]]}})),t.render(e)}},{key:“name”,get:function(){return“Chest”}}],[{key:“identifier”,get:function(){return“chest”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[44,28],,[128,132],,[255,255]],green:[,[20,10],,[190,209],,[255,255]],blue:[,[41,62],,[234,212],]}})),t.render(e)}},{key:“name”,get:function(){return“Fixie”}}],[{key:“identifier”,get:function(){return“fixie”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.Saturation({saturation:1.35})),t.add(new s.default.Primitives.Contrast({contrast:1.1})),t.render(e)}},{key:“name”,get:function(){return“Food”}}],[{key:“identifier”,get:function(){return“food”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[21,11],,[255,220]],green:[,[21,21],,[150,150],,[255,210]],blue:[,[43,72],,[255,220]]}})),t.render(e)}},{key:“name”,get:function(){return“Fridge”}}],[{key:“identifier”,get:function(){return“fridge”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[28,67],,[125,183],,[255,229]],green:[,[42,59],,[169,209],],blue:[,[65,68],,[150,153],]}})),t.render(e)}},{key:“name”,get:function(){return“Front”}}],[{key:“identifier”,get:function(){return“front”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.Contrast({contrast:1.1})),t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[94,74],,[255,255]],green:[,[127,127],],blue:[,[102,73],,[255,255]]}})),t.render(e)}},{key:“name”,get:function(){return“Glam”}}],[{key:“identifier”,get:function(){return“glam”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.Gobblin),t.render(e)}},{key:“name”,get:function(){return“Gobblin”}}],[{key:“identifier”,get:function(){return“gobblin”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({controlPoints:[,[53,32],,[176,205],]})),t.add(new s.default.Primitives.Saturation({saturation:.9})),t.render(e)}},{key:“name”,get:function(){return“K1”}}],[{key:“identifier”,get:function(){return“k1”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var a=i(n(7)),s=i(n(6)),c=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new a.default.PrimitivesStack;t.add(new a.default.Primitives.ToneCurve({controlPoints:[,[54,33],,[94,103],,[177,193],,[255,255]]})),t.add(new a.default.Primitives.SoftColorOverlay({color:new s.default(40/255,40/255,40/255)})),t.render(e)}},{key:“name”,get:function(){return“K2”}}],[{key:“identifier”,get:function(){return“k2”}}]),t}(a.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.Saturation({saturation:.5})),t.render(e)}},{key:“name”,get:function(){return“K6”}}],[{key:“identifier”,get:function(){return“k6”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({controlPoints:[,[17,27],,[90,112],,[203,243],]})),t.add(new s.default.Primitives.Saturation({saturation:.7})),t.render(e)}},{key:“name”,get:function(){return“KDynamic”}}],[{key:“identifier”,get:function(){return“kdynamic”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.Desaturation({desaturation:.4})),t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[40,20],,[129,153],,[255,255]],green:[,[40,20],,[106,108],,[203,237],],blue:[,[40,40],,[133,160],,[203,237],,[255,255]]}})),t.render(e)}},{key:“name”,get:function(){return“Lenin”}}],[{key:“identifier”,get:function(){return“lenin”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({controlPoints:[,[87,20],,[183,205],]})),t.render(e)}},{key:“name”,get:function(){return“Lomo”}}],[{key:“identifier”,get:function(){return“lomo”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[41,84],,[255,255]],green:[,[255,216]],blue:[,[255,131]]}})),t.render(e)}},{key:“name”,get:function(){return“Mellow”}}],[{key:“identifier”,get:function(){return“mellow”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[255,230]],green:[,[255,225]],blue:[,[255,181]]}})),t.add(new s.default.Primitives.Glow),t.render(e)}},{key:“name”,get:function(){return“Morning”}}],[{key:“identifier”,get:function(){return“morning”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[115,130],,[255,255]],green:[,[148,153],,[255,255]],blue:[,[58,75],,[255,255]]}})),t.add(new s.default.Primitives.ToneCurve({controlPoints:[,[117,151],,[255,255]]})),t.add(new s.default.Primitives.Desaturation({desaturation:.65})),t.render(e)}},{key:“name”,get:function(){return“Orchid”}}],[{key:“identifier”,get:function(){return“orchid”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[94,74],,[255,255]],green:[,[34,34],,[176,190],],blue:[,[102,73],,[255,255]]}})),t.add(new s.default.Primitives.Saturation({saturation:.8})),t.add(new s.default.Primitives.Contrast({contrast:1.5})),t.render(e)}},{key:“name”,get:function(){return“Pola SX”}}],[{key:“identifier”,get:function(){return“pola”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[56,18],,[255,255]],green:[,[71,84],],blue:[,[131,133],,[255,255]]}})),t.add(new s.default.Primitives.Saturation({saturation:.8})),t.add(new s.default.Primitives.Contrast({contrast:1.5})),t.render(e)}},{key:“name”,get:function(){return“Pola 669”}}],[{key:“identifier”,get:function(){return“pola669”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.Desaturation({desaturation:.65})),t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[40,78],,[181,211],],green:[,[28,45],,[157,195],,[206,212],],blue:[,[12,55],,[103,162],,[241,201],]}})),t.render(e)}},{key:“name”,get:function(){return“Quozi”}}],[{key:“identifier”,get:function(){return“quozi”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[75,153],,[255,255]],green:[,[111,85],,[255,226]],blue:[,[75,22],,[255,229]]}})),t.add(new s.default.Primitives.Glow),t.render(e)}},{key:“name”,get:function(){return“Semi Red”}}],[{key:“identifier”,get:function(){return“semired”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[62,82],,[255,255]],green:[,[56,96],,[255,255]],blue:[,[174,99],]}})),t.add(new s.default.Primitives.ToneCurve({controlPoints:[,[55,20],,[255,255]]})),t.render(e)}},{key:“name”,get:function(){return“Sunny”}}],[{key:“identifier”,get:function(){return“sunny”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.ToneCurve({rgbControlPoints:{red:[,[89,99],,[255,237]],green:[,[255,192]],blue:[,[255,151]]}})),t.render(e)}},{key:“name”,get:function(){return“Texas”}}],[{key:“identifier”,get:function(){return“texas”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=(o=a)&&o.__esModule?o:{default:o},c=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“render”,value:function(e){var t=new s.default.PrimitivesStack;t.add(new s.default.Primitives.X400),t.render(e)}},{key:“name”,get:function(){return“X400”}}],[{key:“identifier”,get:function(){return“x400”}}]),t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this.x=t,this.y=n,void 0===this.x&&(this.x=0),void 0===this.y&&(this.y=0)}return r(e,[{key:“set”,value:function(e,t){return this.x=e,this.y=t,this}},{key:“clone”,value:function(){return new e(this.x,this.y)}},{key:“copy”,value:function(e){return this.x=e.x,this.y=e.y,this}},{key:“clamp”,value:function(t,n){var r=null!=t,i=null!=n;return t instanceof e||!r||(t=new e(t,t)),n instanceof e||!i||(n=new e(n,n)),r&&(this.x=Math.max(t.x,this.x),this.y=Math.max(t.y,this.y)),i&&(this.x=Math.min(n.x,this.x),this.y=Math.min(n.y,this.y)),this}},{key:“divide”,value:function(t,n){return t instanceof e?(this.x/=t.x,this.y/=t.y):(this.x/=t,this.y/=void 0===n?t:n),this}},{key:“subtract”,value:function(t,n){return t instanceof e?(this.x-=t.x,this.y-=t.y):(this.x-=t,this.y-=void 0===n?t:n),this}},{key:“multiply”,value:function(t,n){return t instanceof e?(this.x*=t.x,this.y*=t.y):(this.x*=t,this.y*=void 0===n?t:n),this}},{key:“add”,value:function(t,n){return t instanceof e?(this.x+=t.x,this.y+=t.y):(this.x+=t,this.y+=void 0===n?t:n),this}},{key:“equals”,value:function(t,n){return t instanceof e?t.x===this.x&&t.y===this.y:t===this.x&&n===this.y}},{key:“flip”,value:function(){var e=this.x;return this.x=this.y,this.y=e,this}},{key:“toString”,value:function(){return“Vector2({ x: ”this.x“, y: ”this.y“ })”}}]),e}();t.default=i,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(5)),c=o(n(75)),u=o(n(76)),l=o(n(77)),d=o(n(78)),p=o(n(79)),f=o(n(80)),h=n(4),m=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._operationsMap={},this._template=function(e){var t='<div class=“imglykit”> <div class=“imglykit-loadingOverlay”> <div class=“imglykit-loadingOverlay-content”> <img src=“'+e.helpers.assetPath(”ui/night/loading.gif“)+'” /> <span>'+e.helpers.translate(“generic.loading”)+'…</span> </div> </div> <div class=“imglykit-container”> ';if(e.options.ui.hideHeader||(t+=' <div class=“imglykit-header-row”> <div class=“imglykit-header”> img.ly Photo Editor SDK ',e.options.ui.showCloseButton&&(t+=' <div class=“imglykit-close-button”> <img src=“'+e.helpers.assetPath(”ui/night/close.png“)+'” /> </div> '),t+=“ </div> </div> ”),t+=“ ”,e.renderControls&&(t+=' <div class=“imglykit-top-controls-row”> <div class=“imglykit-top-controls”> <div class=“imglykit-top-controls-left”> ',e.options.ui.showNewButton&&(t+=' <div class=“imglykit-new”> <img src=“'+e.helpers.assetPath(”ui/night/top/new.png“)+'” /> '+e.helpers.translate(“top-controls.new”)+“ </div> ”),t+=' <div class=“imglykit-undo”> <img src=“'+e.helpers.assetPath(”ui/night/top/undo.png“)+'” /> '+e.helpers.translate(“top-controls.undo”)+“ </div> ”,e.options.ui.showExportButton&&(t+=' <div class=“imglykit-export”> <img src=“'+e.helpers.assetPath(”ui/night/top/export.png“)+'” /> '+e.helpers.translate(“top-controls.export”)+“ </div> ”),t+=' </div> <div class=“imglykit-top-controls-right”> <div class=“imglykit-zoom-fit”></div> <div class=“imglykit-zoom-level”>'+e.helpers.translate(“top-controls.zoom”)+': <span class=“imglykit-zoom-level-num”>100</span>%</div> <div class=“imglykit-zoom-in”> <img src=“'+e.helpers.assetPath(”ui/night/top/zoom-in.png“)+'” /> </div> <div class=“imglykit-zoom-out”> <img src=“'+e.helpers.assetPath(”ui/night/top/zoom-out.png“)+'” /> </div> </div> </div> </div> '),t+=' <div class=“imglykit-canvas-container-row”> <div class=“imglykit-canvas-container”> ',e.renderWebcam&&(t+=' <div class=“imglykit-canvas-inner-container”> <video class=“imglykit-webcam-video” autoplay></video> </div> '),t+=“ ”,e.renderSplashScreen||e.renderWebcam||(t+=' <div class=“imglykit-canvas-inner-container”> <canvas class=“imglykit-canvas-draggable”></canvas> <div class=“imglykit-canvas-controls imglykit-canvas-controls-disabled”></div> </div> '),t+=“ ”,e.renderSplashScreen&&(t+=' <div class=“imglykit-splash-container”> ',e.options.ui.showUploadButton&&(t+=' <div class=“imglykit-splash-row imglykit-splash-row–upload”> <div class=“imglykit-splash-cell”> <input type=“file” class=“imglykit-upload-hidden-input” /> <img src=“'+e.helpers.assetPath(”ui/night/upload.png“)+'” /> <div class=“imglykit-splash-content”> <div class=“imglykit-splash-button”>'+e.helpers.translate(“splash.upload.headline”)+'</div> <div class=“imglykit-splash-text”>'+e.helpers.translate(“splash.upload.description”)+“</div> </div> </div> </div> ”),t+=“ ”,e.options.ui.showUploadButton&&e.options.ui.showWebcamButton&&(t+=' <div class=“imglykit-splash-row imglykit-splash-row–or”> <div class=“imglykit-splash-or”> <div class=“imglykit-splash-or-line”></div> <div class=“imglykit-splash-or-word”>'+e.helpers.translate(“splash.or”)+'</div> <div class=“imglykit-splash-or-line”></div> </div> </div> '),t+=“ ”,e.options.ui.showWebcamButton&&(t+=' <div class=“imglykit-splash-row imglykit-splash-row–camera”> <div class=“imglykit-splash-cell”> <img src=“'+e.helpers.assetPath(”ui/night/shutter.png“)+'” /> <div class=“imglykit-splash-content”> <div class=“imglykit-splash-button”>'+e.helpers.translate(“splash.webcam.headline”)+'</div> <div class=“imglykit-splash-text”>'+e.helpers.translate(“splash.webcam.description”)+“</div> </div> </div> </div> ”),t+=“ </div> ”),t+=“ </div> </div> ”,e.renderWebcam&&(t+=' <div class=“imglykit-controls-row”> <div class=“imglykit-controls-container”> <div class=“imglykit-controls”> <div class=“imglykit-webcam-button”> <img src=“'+e.helpers.assetPath(”ui/night/shutter-button.png“)+'” /> </div> </div> </div> </div> '),t+=“ ”,e.renderControls){for(var n in t+=' <div class=“imglykit-controls-row”> <div class=“imglykit-controls-container”> <div class=“imglykit-controls”> <div> <div class=“imglykit-controls-overview”> <ul class=“imglykit-controls-list”> ',e.controls){t+=“ ”;var r=e.controls;t+=' <li class=“imglykit-controls-item–with-label” data-identifier=“'r.identifier'”',e.controlsDisabled&&(t+=“ data-disabled”),t+='> <img src=“'+e.helpers.assetPath(”ui/night/operations/“r.identifier”.png“)+'” /> <div class=“imglykit-controls-label”>'+e.helpers.translate(“operations.”r.identifier)“</div> </li> ”}t+=“ </ul> </div> </div> </div> </div> </div> ”}return t+=“ </div></div>”},this._registeredControls={},this._history=[],this._preferredOperationOrder=,this._paused=!1,this._options.ui=s.default.defaults(this._options.ui,{showNewButton:!this._options.image,showUploadButton:!0,showWebcamButton:!0,showHeader:!0,showCloseButton:!1,showExportButton:!1,language:“en”,export:{}}),this._options.ui.export=s.default.defaults(this._options.ui.export,{type:h.ImageFormat.JPEG,quality:.8})}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“run”,value:function(){this._registerControls(),this._registerLanguages(),this._loadLanguage(),i(Object.getPrototypeOf(t.prototype),“run”,this).call(this);var e=this._options.container;this._controlsContainer=e.querySelector(“.imglykit-controls”),this._canvasControlsContainer=e.querySelector(“.imglykit-canvas-controls”),this._overviewControlsContainer=e.querySelector(“.imglykit-controls-overview”),this._loadingOverlay=e.querySelector(“.imglykit-loadingOverlay”),this._loadingSpan=e.querySelector(“.imglykit-loadingOverlay span”),this._handleOverview(),this._options.image&&this._initCanvas(),this.context.renderSplashScreen&&(this._initFileLoader(),this._options.ui.showWebcamButton&&this._handleWebcamButton()),this.context.renderWebcam&&this._initWebcam(),this._initTopControls(),this._initControls(),this._options.image&&this.showZoom(),this._options.ui.showCloseButton&&this._handleCloseButton(),this._topControls&&this._topControls.updateExportButton()}},{key:“_loadLanguage”,value:function(){if(this._language=this._languages,!this._language){var e=Object.keys(this._languages).join(“, ”);throw new Error(“Unknown language '”this._options.ui.language“'. Available languages are: ”+e)}}},{key:“_initWebcam”,value:function(){this._webcam=new d.default(this._kit,this),this._webcam.on(“image”,this._onWebcamImageTaken.bind(this))}},{key:“_onWebcamImageTaken”,value:function(e){this._options.ui.startWithWebcam=!1,this._setImage(e)}},{key:“_handleWebcamButton”,value:function(){var e=this;this._options.container.querySelector(“.imglykit-splash-row–camera”).addEventListener(“click”,(function(){e._options.ui.startWithWebcam=!0,e.run()}))}},{key:“_initFileLoader”,value:function(){this._fileLoader=new l.default(this._kit,this),this._fileLoader.on(“file”,this._onFileLoaded.bind(this))}},{key:“_onFileLoaded”,value:function(e){var t=this,n=new FileReader;n.onload=function(e){var n=e.target.result,r=new Image;r.addEventListener(“load”,(function(){t._setImage®})),r.src=n},n.readAsDataURL(e)}},{key:“_setImage”,value:function(e){this._options.image=e,this.run()}},{key:“_initTopControls”,value:function(){var e=this;this.context.renderControls&&(this._topControls=new p.default(this._kit,this),this._topControls.run(),this._topControls.on(“new”,(function(){e._options.image=null,e.run()})),this._topControls.on(“undo”,(function(){e.undo()})),this._topControls.on(“export”,(function(){e.export()})),this._topControls.on(“zoom-in”,(function(){e._canvas.zoomIn().then((function(){e._currentControl&&e._currentControl.onZoom()}))})),this._topControls.on(“zoom-out”,(function(){e._canvas.zoomOut().then((function(){e._currentControl&&e._currentControl.onZoom()}))})))}},{key:“_initCanvas”,value:function(){var e=this;this._canvas=new u.default(this._kit,this,this._options),this._canvas.run(),this._canvas.on(“zoom”,(function(){e._topControls.updateZoomLevel()}))}},{key:“selectOperations”,value:function(e){i(Object.getPrototypeOf(t.prototype),“selectOperations”,this).call(this,e)}},{key:“getOrCreateOperation”,value:function(e){var t=this._kit,n=t.operationsStack,r=t.registeredOperations;if(void 0===this._operationsMap){var i=new r(this._kit);this._operationsMap=i;var o=this._preferredOperationOrder.indexOf(e);return-1===o&&(o=this._preferredOperationOrder.length),n=i,i}return this._operationsMap}},{key:“removeOperation”,value:function(e){if(this._operationsMap){var t=this._operationsMap;delete this._operationsMap;var n=this._kit.operationsStack.indexOf(t);this._kit.operationsStack.splice(n,1)}}},{key:“_registerControls”,value:function(){this.registerControl(“filters”,“filters”,n(81)),this.registerControl(“rotation”,“rotation”,n(82)),this.registerControl(“flip”,“flip”,n(83)),this.registerControl(“brightness”,“brightness”,n(84)),this.registerControl(“contrast”,“contrast”,n(85)),this.registerControl(“saturation”,“saturation”,n(86)),this.registerControl(“crop”,“crop”,n(87)),this.registerControl(“radial-blur”,“radial-blur”,n(88)),this.registerControl(“tilt-shift”,“tilt-shift”,n(89)),this.registerControl(“frames”,“frames”,n(90)),this.registerControl(“stickers”,“stickers”,n(91)),this.registerControl(“text”,“text”,n(92))}},{key:“_registerLanguages”,value:function(){this.registerLanguage(“en”,n(94)),this.registerLanguage(“de”,n(95))}},{key:“_handleOverview”,value:function(){var e=this;if(this.context.renderControls){var t=this._overviewControlsContainer.querySelector(“ul”);if(!t.parentNode!==this._overviewControlsContainer)for(var n=[].filter.call(t.querySelectorAll(“li”),(function(e){return e.parentNode===t})),r=function(t){var r=n,i=r.dataset.identifier;r.addEventListener(“click”,(function(){e.switchToControl(i)}))},i=0;i<n.length;i++)r(i)}}},{key:“_enableControls”,value:function(){var e=this._overviewControlsContainer.querySelector(“ul”);if(!e.parentNode!==this._overviewControlsContainer)for(var t=[].filter.call(e.querySelectorAll(“li”),(function(t){return t.parentNode===e})),n=0;n.removeAttribute(“data-disabled”)}},{key:“switchToControl”,value:function(e){this.context.controlsDisabled||(this._overviewControlsContainer.style.display=“none”,this._scrollbar.remove(),this._currentControl&&this._currentControl.leave(),this._currentControl=this._registeredControls,this._currentControl.enter(),this._currentControl.once(“back”,this._switchToOverview.bind(this)))}},{key:“_switchToOverview”,value:function(){this._currentControl&&this._currentControl.leave(),this._currentControl=null,this._overviewControlsContainer.style.display=“”,this._initScrollbar()}},{key:“registerControl”,value:function(e,t,n){if(this.isOperationSelected(t)){var r=new n(this._kit,this);this._registeredControls=r}}},{key:“_initControls”,value:function(){for(var e in this._registeredControls){var t=this._registeredControls;t.setContainers(this._controlsContainer,this._canvasControlsContainer),t.init()}this._initScrollbar()}},{key:“_initScrollbar”,value:function(){if(this.context.renderControls){var e=this._controlsContainer.querySelector(“.imglykit-controls-list”).parentNode;this._scrollbar=new f.default(e)}}},{key:“_handleCloseButton”,value:function(){var e=this;this._options.container.querySelector(“.imglykit-close-button”).addEventListener(“click”,(function(t){t.preventDefault(),e.emit(“close”)}))}},{key:“render”,value:function(){this._canvas&&this._canvas.render()}},{key:“pause”,value:function(){this._paused=!0}},{key:“resume”,value:function(){var e=void 0===arguments||arguments;this._paused=!1,e&&this.render()}},{key:“addHistory”,value:function(e,t,n){this._history.push({operation:e,options:t,existent:n}),this._topControls.updateUndoButton()}},{key:“hideZoom”,value:function(){this._topControls.hideZoom()}},{key:“showZoom”,value:function(){this._topControls.showZoom()}},{key:“undo”,value:function(){var e=this._history.pop();if(e){var t=e.operation,n=e.existent,r=e.options;n?(t=this.getOrCreateOperation(t.identifier)).set®:this.removeOperation(t.identifier),this.canvas.zoomToFit(!0)}this._topControls.updateUndoButton()}},{key:“export”,value:function(){var e=this;this.displayLoadingMessage(this.translate(“generic.exporting”)+“…”);var t=h.RenderType.DATAURL;void 0!==document.createElement(“canvas”).msToBlob&&(t=h.RenderType.MSBLOB),setTimeout((function(){e._kit.render(t,e._options.ui.export.type,e._options.ui.export.dimensions,e._options.ui.export.quality).then((function(n){switch(t){case h.RenderType.DATAURL:var r=document.createElement(“a”),i=e._options.ui.export.type.split(“/”).pop();r.download=“imglykit-export.”+i,r.href=n,document.body.appendChild®,r.click(),document.body.removeChild®;break;case h.RenderType.MSBLOB:navigator.msSaveBlob(n,“imglykit-export.png”)}e.hideLoadingMessage()}))}),1e3)}},{key:“displayLoadingMessage”,value:function(e){this._loadingSpan.innerText=e,this._loadingOverlay.style.display=“block”}},{key:“hideLoadingMessage”,value:function(){this._loadingOverlay.style.display=“none”}},{key:“identifier”,get:function(){return“night”}},{key:“operations”,get:function(){return this._operationsMap}},{key:“controls”,get:function(){return this._registeredControls}},{key:“context”,get:function(){var e=i(Object.getPrototypeOf(t.prototype),“context”,this);return e.controls=this._registeredControls,e.renderSplashScreen=!this._options.image&&!this._options.ui.startWithWebcam,e.renderControls=!!this._options.image,e.renderWebcam=this._options.ui.startWithWebcam,e}},{key:“history”,get:function(){return this._history}},{key:“fileLoader”,get:function(){return this._fileLoader}}]),t}(c.default);m.Control=n(93),t.default=m,e.exports=t.default},function(e,t,n){},function(t,n,r){t.exports=e},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this._modifiers={FIXED:“!”},this._dimensionsString=t,this._rules=this._parse(),this._validateRules()}return r(e,[{key:“_parse”,value:function(){if(void 0===this._dimensionsString||null===this._dimensionsString)return null;var e=this._dimensionsString.match(/^(+)?x(+)?([!])?$/i);if(!e)throw new Error(“Invalid size option: ”+this._dimensionsString);return{x:isNaN(e)?null:parseInt(e,10),y:isNaN(e)?null:parseInt(e,10),modifier:e}}},{key:“_validateRules”,value:function(){if(null!==this._rules){var e=null!==this._rules.x,t=null!==this._rules.y;if(!(this._rules.modifier!==this._modifiers.FIXED||e&&t))throw new Error(“Both `x` and `y` have to be set when using the fixed (!) modifier.”);if(!e&&!t)throw new Error(“Neither `x` nor `y` are given.”)}}},{key:“calculateFinalDimensions”,value:function(e){var t,n=e.clone();return null===this._rules||(this._rules.modifier===this._modifiers.FIXED?n.set(this._rules.x,this._rules.y):null!==this._rules.x&&null!==this._rules.y?(t=Math.min(this._rules.x/n.x,this._rules.y/n.y),n.multiply(t)):null!==this._rules.x?(t=e.y/e.x,n.x=this._rules.x,n.y=n.x*t):null!==this._rules.y&&(t=e.x/e.y,n.y=this._rules.y,n.x=n.y*t)),n}}]),e}();t.default=i,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var a=i(n(96)),s=i(n(49)),c=i(n(57)),u=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“cache”,value:function(e){this._cache={data:this._context.getImageData(0,0,this._canvas.width,this._canvas.height),size:new s.default(this._canvas.width,this._canvas.height)}}},{key:“drawCached”,value:function(e){var t=this._cache,n=t.data,r=t.size;this._canvas.width=r.x,this._canvas.height=r.y,this._context.putImageData(n,0,0)}},{key:“_getContext”,value:function(){return this._canvas.getContext(“2d”)}},{key:“drawImage”,value:function(e){var t=this;return new c.default((function(n,r){t._context.drawImage(e,0,0,e.width,e.height,0,0,t._canvas.width,t._canvas.height),n()}))}},{key:“resizeTo”,value:function(e){var t=this.createCanvas();t.width=e.x,t.height=e.y,t.getContext(“2d”).drawImage(this._canvas,0,0,this._canvas.width,this._canvas.height,0,0,t.width,t.height),this.setCanvas(t)}},{key:“cloneCanvas”,value:function(){var e=this.createCanvas(),t=e.getContext(“2d”);return e.width=this._canvas.width,e.height=this._canvas.height,t.drawImage(this._canvas,0,0),e}},{key:“reset”,value:function(){var e=void 0!==arguments&&arguments;e&&(this._cache=,[{key:“isSupported”,value:function(){var e=this.prototype.createCanvas();return!(!e.getContext||!e.getContext(“2d”))}},{key:“identifier”,get:function(){return“canvas”}}]),t}(a.default);t.default=u,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(96)),c=o(n(49)),u=o(n(56)),l=o(n(57)),d=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._defaultProgram=this.setupGLSLProgram(),this.reset(),this.id=t.contextId,t.contextId++}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“cache”,value:function(e){var t,n,r=new c.default(this._canvas.width,this._canvas.height),i=void 0;t=(i=this._cache?this._cache:this._createFramebuffer()).fbo,n=i.texture;var o=this._context;o.useProgram(this._defaultProgram),o.bindTexture(o.TEXTURE_2D,n),o.texImage2D(o.TEXTURE_2D,0,o.RGBA,r.x,r.y,0,o.RGBA,o.UNSIGNED_BYTE,null),o.bindFramebuffer(o.FRAMEBUFFER,t),o.viewport(0,0,r.x,r.y),o.bindTexture(o.TEXTURE_2D,this._lastTexture),o.drawArrays(o.TRIANGLES,0,6),this._cache={fbo:t,texture:n,size:r}}},{key:“_drawCachedFinal”,value:function(e){var t=this._cache,n=t.texture,r=t.size,i=this._context;i.useProgram(this._defaultProgram),i.bindFramebuffer(i.FRAMEBUFFER,null),i.bindTexture(i.TEXTURE_2D,n),this._canvas.width=r.x,this._canvas.height=r.y,i.viewport(0,0,r.x,r.y),i.drawArrays(i.TRIANGLES,0,6)}},{key:“drawCached”,value:function(e){var t=this._cache,n=t.texture,r=t.size,i=this.getCurrentFramebuffer(),o=this.getCurrentTexture(),a=this._context;a.useProgram(this._defaultProgram),this._canvas.width=r.x,this._canvas.height=r.y;for(var s=0;s<this._textures.length;s++){var c=this._textures;a.bindTexture(a.TEXTURE_2D,c),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,r.x,r.y,0,a.RGBA,a.UNSIGNED_BYTE,null)}a.bindFramebuffer(a.FRAMEBUFFER,i),a.bindTexture(a.TEXTURE_2D,o),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,r.x,r.y,0,a.RGBA,a.UNSIGNED_BYTE,null),a.bindTexture(a.TEXTURE_2D,n),a.viewport(0,0,r.x,r.y),a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),a.drawArrays(a.TRIANGLES,0,6),this.setLastTexture(o),this.selectNextBuffer()}},{key:“_getContext”,value:function(){var e=this._canvas.getContext(“webgl”,this._contextOptions)||this._canvas.getContext(“experimental-webgl”,this._contextOptions);return e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),this._maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),e}},{key:“drawImage”,value:function(e){var t=this;return new l.default((function(n,r){var i=t._context;i.useProgram(t._defaultProgram);var o=t.createTexture();i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0),t._inputTexture=o,t.setLastTexture(o),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,e),t._clear(i),i.drawArrays(i.TRIANGLES,0,6),n()}))}},{key:“prepareImage”,value:function(e){if(e.width<=this._maxTextureSize&&e.height<=this._maxTextureSize)return l.default.resolve(e);var t=new c.default(this._maxTextureSize,this._maxTextureSize),n=new c.default(e.width,e.height),r=Math.min(t.x/n.x,t.y/n.y),i=n.clone().multiply®,o=this.createCanvas(i.x,i.y);o.getContext(“2d”).drawImage(e,0,0,n.x,n.y,0,0,i.x,i.y);var a=o.toDataURL(“image/jpeg”),s=/^data:image/jpeg/i;return e.src.match(s)&&a.match(s)&&(a=u.default.restore(e.src,a)),new l.default((function(e,t){var n=new Image;n.addEventListener(“load”,(function(){e(n)})),n.src=a}))}},{key:“_clear”,value:function(e){e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)}},{key:“runProgram”,value:function(e,t){var n=this._context;n.useProgram(e);var r=this.getCurrentFramebuffer(),i=this.getCurrentTexture();for(var o in n.bindFramebuffer(n.FRAMEBUFFER,r),n.viewport(0,0,this._canvas.width,this._canvas.height),n.bindTexture(n.TEXTURE_2D,i),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,this._canvas.width,this._canvas.height,0,n.RGBA,n.UNSIGNED_BYTE,null),n.bindTexture(n.TEXTURE_2D,this._lastTexture),t.uniforms){var a=n.getUniformLocation(e,o),s=t.uniforms;switch(s.type){case“i”:case“1i”:n.uniform1i(a,s.value);break;case“f”:case“1f”:n.uniform1f(a,s.value);break;case“2f”:n.uniform2f(a,s.value,s.value);break;case“3f”:n.uniform3f(a,s.value,s.value,s.value);break;case“4f”:n.uniform4f(a,s.value,s.value,s.value,s.value);break;case“2fv”:n.uniform2fv(a,s.value);break;case“mat3fv”:n.uniformMatrix3fv(a,!1,s.value);break;default:throw new Error(“Unknown uniform type: ”+s.type)}}n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),n.drawArrays(n.TRIANGLES,0,6),this.setLastTexture(i),this.selectNextBuffer()}},{key:“runShader”,value:function(e,t,n){void 0===n&&(n={}),void 0===n.uniforms&&(n.uniforms={});var r=this.setupGLSLProgram(e,t);this.runProgram(r,n)}},{key:“renderFinal”,value:function(){var e=this._context,t=this._defaultProgram;e.useProgram(t),e.bindFramebuffer(e.FRAMEBUFFER,null),e.viewport(0,0,this._canvas.width,this._canvas.height),e.bindTexture(e.TEXTURE_2D,this._lastTexture),this._clear(e),e.drawArrays(e.TRIANGLES,0,6)}},{key:“setupGLSLProgram”,value:function(e,n){var r=this._context,i=[];e=this._createShader(r.VERTEX_SHADER,e||t.prototype.defaultVertexShader),i.push(e),n=this._createShader(r.FRAGMENT_SHADER,n||t.prototype.defaultFragmentShader),i.push(n);for(var o=r.createProgram(),a=0;a);if(r.linkProgram(o),!r.getProgramParameter(o,r.LINK_STATUS)){var s=r.getProgramInfoLog(o);throw r.deleteProgram(o),new Error(“WebGL program linking error: ”+s)}var c=r.getAttribLocation(o,“a_position”),u=r.getAttribLocation(o,“a_texCoord”),l=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,l),r.bufferData(r.ARRAY_BUFFER,new Float32Array(),r.STATIC_DRAW),r.enableVertexAttribArray(u),r.vertexAttribPointer(u,2,r.FLOAT,!1,0,0);var d=r.createBuffer();return r.bindBuffer(r.ARRAY_BUFFER,d),r.enableVertexAttribArray©,r.vertexAttribPointer(c,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array(),r.STATIC_DRAW),o}},{key:“_createShader”,value:function(e,t){var n=this._context,r=n.createShader(e);if(n.shaderSource(r,t),n.compileShader®,!n.getShaderParameter(r,n.COMPILE_STATUS)){var i=n.getShaderInfoLog®;throw n.deleteShader®,new Error(“WebGL shader compilation error: ”+i)}return r}},{key:“createTexture”,value:function(){var e=this._context,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),t}},{key:“_createFramebuffers”,value:function(){for(var e=0;e<2;e++){var t=this._createFramebuffer(),n=t.fbo,r=t.texture;this._textures.push®,this._framebuffers.push(n)}}},{key:“_createFramebuffer”,value:function(){var e=this._context,t=this.createTexture();e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this._canvas.width,this._canvas.height,0,e.RGBA,e.UNSIGNED_BYTE,null);var n=e.createFramebuffer();return e.bindFramebuffer(e.FRAMEBUFFER,n),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),{fbo:n,texture:t}}},{key:“resizeTo”,value:function(e){var t=this._context;this._canvas.width=e.x,this._canvas.height=e.y,t.viewport(0,0,this._canvas.width,this._canvas.height),t.drawArrays(t.TRIANGLES,0,6)}},{key:“getCurrentFramebuffer”,value:function(){return this._framebuffers}},{key:“getCurrentTexture”,value:function(){return this._textures}},{key:“selectNextBuffer”,value:function(){this._bufferIndex++}},{key:“getDefaultProgram”,value:function(){return this._defaultProgram}},{key:“getLastTexture”,value:function(){return this._lastTexture}},{key:“getTextures”,value:function(){return this._textures}},{key:“setLastTexture”,value:function(e){this._lastTexture=e}},{key:“reset”,value:function(){var e=void 0!==arguments&&arguments;this._lastTexture=null,this._textures=[],this._framebuffers=,this._bufferIndex=0,e&&(this._cache=[]),this._createFramebuffers(),this.setLastTexture(this._inputTexture)}},{key:“_contextOptions”,get:function(){return{alpha:!0,premultipliedAlpha:!0}}},{key:“identifier”,get:function(){return“webgl”}},{key:“defaultVertexShader”,get:function(){return“n attribute vec2 a_position;n attribute vec2 a_texCoord;n varying vec2 v_texCoord;nn void main() {n gl_Position = vec4(a_position, 0, 1);n v_texCoord = a_texCoord;n }n ”}},{key:“defaultFragmentShader”,get:function(){return“n precision mediump float;n uniform sampler2D u_image;n varying vec2 v_texCoord;nn void main() {n gl_FragColor = texture2D(u_image, v_texCoord);n }n ”}},{key:“maxTextureSize”,get:function(){return this._maxTextureSize}}],[{key:“isSupported”,value:function(){if(“undefined”==typeof window)return!1;var e=document.createElement(“canvas”);return!(!e.getContext(“webgl”)&&!e.getContext(“experimental-webgl”))}}]),t}(s.default);d.contextId=0,t.default=d,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(97),a=(r=o)&&r.__esModule?r:{default:r},s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e)}return i(e,null,[{key:“restore”,value:function(e,t){if(!e.match(“data:image/jpeg;base64,”))return t;var n=a.default.decode(e.replace(“data:image/jpeg;base64,”,“”)),r=this._sliceIntoSegments(n),i=this._exifManipulation(t,r);return“data:image/jpeg;base64,”+a.default.encode(i)}},{key:“_exifManipulation”,value:function(e,t){var n=this._getExifArray(t),r=this._insertExif(e,n);return new Uint8Array®}},{key:“_getExifArray”,value:function(e){for(var t=void 0,n=0;n)[0]&&225===t)return t;return[]}},{key:“_insertExif”,value:function(e,t){var n=e.replace(“data:image/jpeg;base64,”,“”),r=a.default.decode(n),i=r.indexOf(255,3),o=r.slice(0,i),s=r.slice(i),c=o;return c=(c=c.concat(t)).concat(s)}},{key:“_sliceIntoSegments”,value:function(e){for(var t=0,n=[];255!==e||218!==e;){if(255===e&&216===e)t+=2;else{var r=t+(256*e+e)+2,i=e.slice(t,r);n.push(i),t=r}if(t>e.length)break}return n}}]),e}();t.default=s,e.exports=t.default},function(e,t,n){(function®{“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var i=(void 0!==r?r:“undefined”!=typeof window?window:null).Promise;i||(i=n(99)),t.default=i,e.exports=t.default}).call(t,function(){return this}())},function(e,t,n){“use strict”;e.exports=function(e,t){var n,r,i=this;for(r in n=e&&e.hasOwnProperty(“constructor”)?e.constructor:function(){return i.apply(this,arguments)},i)n=i;if(void 0!==t)for(r in t)n=t;var o=function(){this.constructor=n};if(o.prototype=i.prototype,n.prototype=new o,e)for(r in e)n.prototype=e;return n.__super__=i.prototype,n}},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o=function(){function e(){for(var t=arguments.length,n=Array(t),r=0;r=arguments;i(this,e),this._stack=[]}return r(e,[{key:“add”,value:function(e){this._stack.push(e)}},{key:“render”,value:function(e){for(var t=0;t.render(e)}}]),e}();t.default=o,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(5)),c=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._options=s.default.defaults(this._options,{saturation:0}),this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;n uniform float u_saturation;nn const vec3 luminanceWeighting = vec3(0.2125, 0.7154, 0.0721);nn void main() {n vec4 texColor = texture2D(u_image, v_texCoord);n float luminance = dot(texColor.rgb, luminanceWeighting);nn vec3 greyScaleColor = vec3(luminance);nn gl_FragColor = vec4(mix(greyScaleColor, texColor.rgb, u_saturation) * texColor.a, texColor.a);n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“renderWebGL”,value:function(e){this._glslPrograms||(this._glslPrograms=e.setupGLSLProgram(null,this._fragmentShader)),e.runProgram(this._glslPrograms,{uniforms:{u_saturation:{type:“f”,value:this._options.saturation}}})}},{key:“renderCanvas”,value:function(e){for(var t=e.getCanvas(),n=e.getContext().getImageData(0,0,t.width,t.height),r=this._options.saturation,i=0;i<t.width;i++)for(var o=0;o<t.height;o++){var a=4*(t.width*o+i),s=.2125*n.data+.7154*n.data+.0721*n.data;n.data=s*(1-r)+n.data*r,n.data=s*(1-r)+n.data*r,n.data=s*(1-r)+n.data*r}e.getContext().putImageData(n,0,0)}}]),t}(o(n(98)).default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var a,s=n(98),c=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;o(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._textureIndex=3,this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;n uniform sampler2D u_lookupTable;nn void main() {n vec4 texColor = texture2D(u_image, v_texCoord);n float r = texture2D(u_lookupTable, vec2(texColor.r, 0.0)).r;n float g = texture2D(u_lookupTable, vec2(texColor.g, 0.0)).g;n float b = texture2D(u_lookupTable, vec2(texColor.b, 0.0)).b;nn gl_FragColor = vec4(vec3(r, g, b) * texColor.a, texColor.a);n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“renderWebGL”,value:function(e){this._updateTexture(e),e.runShader(null,this._fragmentShader,{uniforms:{u_lookupTable:{type:“i”,value:3}}})}},{key:“renderCanvas”,value:function(e){for(var t=e.getCanvas(),n=e.getContext().getImageData(0,0,t.width,t.height),r=this._options.data,i=0;i<t.width;i++)for(var o=0;o<t.height;o++){var a=4*(t.width*o+i),s=n.data;n.data=r;var c=n.data;n.data=r;var u=n.data;n.data=r}e.getContext().putImageData(n,0,0)}},{key:“_updateTexture”,value:function(e){var t=e.getContext();if(void 0===this._options.data)throw new Error(“LookupTable: No data specified.”);var n=new Uint8Array(this._options.data);t.activeTexture(t.TEXTURE0+this._textureIndex),this._texture||(this._texture=t.createTexture()),t.bindTexture(t.TEXTURE_2D,this._texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,256,1,0,t.RGBA,t.UNSIGNED_BYTE,n),t.activeTexture(t.TEXTURE0)}}]),t}(((a=s)&&a.__esModule?a:{default:a}).default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(5)),c=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._options=s.default.defaults(this._options,{rgbControlPoints:{red:this._options.controlPoints,green:this._options.controlPoints,blue:this._options.controlPoints}}),void 0!==this._options.rgbControlPoints&&this._updateLookupTable()}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_updateLookupTable”,value:function(){var e=this._calculateSplineCurve(this._options.rgbControlPoints.red),t=this._calculateSplineCurve(this._options.rgbControlPoints.green),n=this._calculateSplineCurve(this._options.rgbControlPoints.blue);this._options.data=this._buildLookupTable(e,t,n)}},{key:“_buildLookupTable”,value:function(e,t,n){for(var r=[],i=0;i<256;i++)r.push(Math.min(Math.max(i+e,0),255)),r.push(Math.min(Math.max(i+t,0),255)),r.push(Math.min(Math.max(i+n,0),255)),r.push(255);return r}},{key:“_calculateSplineCurve”,value:function(e){e=e.sort((function(e,t){return e>t}));var t,n=this._getSplineCurve(e),r=n;if(r>0)for(t=0;t;t++)n.unshift();var i=[];for(t=0;t<n.length;t++){var o=n,a=[o,o],s=Math.sqrt(Math.pow(a-o,2)+Math.pow(a-o,2));a>o&&(s=-s),i.push(s)}return i}},{key:“_getSplineCurve”,value:function(e){var t,n=this._secondDerivative(e),r=n.length,i=[];for(t=0;t=n;var o=[];for(t=0;t<r-1;t++)for(var a=e,s=e,c=a;c;c++){var u=(c-a)/(s-a),l=1-u,d=u,p=s-a,f=l*a+d*s+p*p/6*((l*l*l-l)*i+(d*d*d-d)*i);f>255?f=255:f<0&&(f=0),o.push()}return 255===o.length&&o.push(e),o}},{key:“_secondDerivative”,value:function(e){var t=e.length;if(t<=0||1===t)return null;var n,r,i=[],o=;for(i=[0,1,0],n=1;n<t-1;n++){var a=e,s=e,c=e;i=i||[],i[0]=(s-a)/6,i[1]=(c-a)/3,i[2]=(c-s)/6,o=(c-s)/(c-s)-(s-a)/(s-a)}for(o=0,o=0,i=[0,1,0],n=1;n[0]/i[1],i[1]-=r*i[2],i[0]=0,o-=r*o;for(n=t-2;n>0;n–)r=i[2]/i[1],i[1]-=r*i[0],i[2]=0,o-=r*o;var u=[];for(n=0;n=o/i[1];return u}}]),t}(o(n(61)).default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(5)),c=o(n(98)),u=o(n(6)),l=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._options=s.default.defaults(this._options,{color:new u.default(1,1,1)}),this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;n uniform vec3 u_overlay;nn void main() {n vec4 texColor = texture2D(u_image, v_texCoord);n vec4 overlayVec4 = vec4(u_overlay, texColor.a);n gl_FragColor = max(overlayVec4 * texColor.a, texColor);n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“renderWebGL”,value:function(e){e.runShader(null,this._fragmentShader,{uniforms:{u_overlay:{type:“3f”,value:this._options.color.toRGBGLColor()}}})}},{key:“renderCanvas”,value:function(e){for(var t=e.getCanvas(),n=e.getContext().getImageData(0,0,t.width,t.height),r=0;r<t.width;r++)for(var i=0;i<t.height;i++){var o=4*(t.width*i+r);n.data=Math.max(this._options.color.r,n.data),n.data=Math.max(this._options.color.g,n.data),n.data=Math.max(this._options.color.b,n.data)}e.getContext().putImageData(n,0,0)}}]),t}(c.default);t.default=l,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(5)),c=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._options=s.default.defaults(this._options,{desaturation:1}),this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;n uniform float u_desaturation;nn const vec3 luminanceWeighting = vec3(0.2125, 0.7154, 0.0721);nn void main() {n vec4 texColor = texture2D(u_image, v_texCoord);n vec3 grayXfer = vec3(0.3, 0.59, 0.11);n vec3 gray = vec3(dot(grayXfer, texColor.xyz));n gl_FragColor = vec4(mix(texColor.xyz, gray, u_desaturation) * texColor.a, texColor.a);n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“renderWebGL”,value:function(e){e.runShader(null,this._fragmentShader,{uniforms:{u_desaturation:{type:“f”,value:this._options.desaturation}}})}},{key:“renderCanvas”,value:function(e){for(var t=e.getCanvas(),n=e.getContext().getImageData(0,0,t.width,t.height),r=this._options.desaturation,i=0;i<t.width;i++)for(var o=0;o<t.height;o++){var a=4*(t.width*o+i),s=.3*n.data+.59*n.data+.11*n.data;n.data=s*(1-r)+n.data*r,n.data=s*(1-r)+n.data*r,n.data=s*(1-r)+n.data*r}e.getContext().putImageData(n,0,0)}}]),t}(o(n(98)).default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var a,s=n(98),c=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;o(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;nn void main() {n vec4 texColor = texture2D(u_image, v_texCoord);n float gray = texColor.r * 0.3 + texColor.g * 0.3 + texColor.b * 0.3;n gray -= 0.2;n gray = clamp(gray, 0.0, 1.0);n gray += 0.15;n gray *= 1.4;n gl_FragColor = vec4(vec3(gray) * texColor.a, texColor.a);n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“renderWebGL”,value:function(e){e.runShader(null,this._fragmentShader)}},{key:“renderCanvas”,value:function(e){for(var t=e.getCanvas(),n=e.getContext().getImageData(0,0,t.width,t.height),r=0;r<t.width;r++)for(var i=0;i<t.height;i++){var o=4*(t.width*i+r),a=n.data/255*.3+n.data/255*.3+n.data/255*.3;a-=.2,a=Math.max(0,Math.min(1,a)),a+=.15,a*=1.4,a*=255,n.data=a,n.data=a,n.data=a}e.getContext().putImageData(n,0,0)}}]),t}(((a=s)&&a.__esModule?a:{default:a}).default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var a,s=n(98),c=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;o(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;n vec3 W = vec3(0.2125, 0.7154, 0.0721);nn void main() {n vec4 texColor = texture2D(u_image, v_texCoord);n float luminance = dot(texColor.rgb, W);n gl_FragColor = vec4(vec3(luminance) * texColor.a, texColor.a);n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“renderWebGL”,value:function(e){e.runShader(null,this._fragmentShader)}},{key:“renderCanvas”,value:function(e){for(var t=e.getCanvas(),n=e.getContext().getImageData(0,0,t.width,t.height),r=0;r<t.width;r++)for(var i=0;i<t.height;i++){var o=4*(t.width*i+r),a=.2125*n.data+.7154*n.data+.0721*n.data;n.data=a,n.data=a,n.data=a}e.getContext().putImageData(n,0,0)}}]),t}(((a=s)&&a.__esModule?a:{default:a}).default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(5)),c=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._options=s.default.defaults(this._options,{contrast:1}),this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;n uniform float u_contrast;nn void main() {n vec4 texColor = texture2D(u_image, v_texCoord);n gl_FragColor = vec4(((texColor.rgb - vec3(0.5)) * u_contrast + vec3(0.5) * texColor.a), texColor.a);n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“renderWebGL”,value:function(e){this._glslPrograms||(this._glslPrograms=e.setupGLSLProgram(null,this._fragmentShader)),e.runProgram(this._glslPrograms,{uniforms:{u_contrast:{type:“f”,value:this._options.contrast}}})}},{key:“renderCanvas”,value:function(e){for(var t=e.getCanvas(),n=e.getContext().getImageData(0,0,t.width,t.height),r=this._options.contrast,i=0;i<t.width;i++)for(var o=0;o<t.height;o++){var a=4*(t.width*o+i);n.data=(n.data-127)*r+127,n.data=(n.data-127)*r+127,n.data=(n.data-127)*r+127}e.getContext().putImageData(n,0,0)}}]),t}(o(n(98)).default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(5)),c=o(n(98)),u=o(n(6)),l=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._options=s.default.defaults(this._options,{color:new u.default(1,1,1)}),this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;nn uniform vec3 u_color;nn void main() {n vec4 texColor = texture2D(u_image, v_texCoord);nn vec2 textureCoord = v_texCoord - vec2(0.5, 0.5);n textureCoord /= 0.75;nn float d = 1.0 - dot(textureCoord, textureCoord);n d = clamp(d, 0.2, 1.0);n vec3 newColor = texColor.rgb * d * u_color.rgb;n gl_FragColor = vec4(vec3(newColor) * texColor.a, texColor.a);n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“renderWebGL”,value:function(e){e.runShader(null,this._fragmentShader,{uniforms:{u_color:{type:“3f”,value:this._options.color.toRGBGLColor()}}})}},{key:“renderCanvas”,value:function(e){for(var t,n=e.getCanvas(),r=e.getContext().getImageData(0,0,n.width,n.height),i=this._options.color,o=0;o<n.width;o++)for(var a=0;a<n.height;a++){var s=4*(n.width*a+o),c=(o/n.width-.5)/.75,u=(a/n.height-.5)/.75;t=1-(c*c+u*u),t=Math.min(Math.max(t,.1),1),r.data=r.data*(t*i.r),r.data=r.data*(t*i.g),r.data=r.data*(t*i.b),r.data=255}e.getContext().putImageData(r,0,0)}}]),t}(c.default);t.default=l,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var a,s=n(98),c=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;o(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;nn void main() {n vec4 texColor = texture2D(u_image, v_texCoord);n texColor.b = texColor.g * 0.33;n texColor.r = texColor.r * 0.6;n texColor.b += texColor.r * 0.33;n texColor.g = texColor.g * 0.7;n gl_FragColor = texColor;n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“renderWebGL”,value:function(e){e.runShader(null,this._fragmentShader)}},{key:“renderCanvas”,value:function(e){for(var t=e.getCanvas(),n=e.getContext().getImageData(0,0,t.width,t.height),r=0;r<t.width;r++)for(var i=0;i<t.height;i++){var o=4*(t.width*i+r);n.data=.33*n.data,n.data=.6*n.data,n.data+=.33*n.data,n.data=.7*n.data,n.data=255}e.getContext().putImageData(n,0,0)}}]),t}(((a=s)&&a.__esModule?a:{default:a}).default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var s=o(n(5)),c=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r=arguments;a(this,t),i(Object.getPrototypeOf(t.prototype),“constructor”,this).apply(this,n),this._options=s.default.defaults(this._options,{brightness:1}),this._fragmentShader=“n precision mediump float;n varying vec2 v_texCoord;n uniform sampler2D u_image;n uniform float u_brightness;nn void main() {n vec4 texColor = texture2D(u_image, v_texCoord);n gl_FragColor = vec4((texColor.rgb + vec3(u_brightness) * texColor.a), texColor.a);;n }n ”}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“renderWebGL”,value:function(e){this._glslPrograms||(this._glslPrograms=e.setupGLSLProgram(null,this._fragmentShader)),e.runProgram(this._glslPrograms,{uniforms:{u_brightness:{type:“f”,value:this._options.brightness}}})}},{key:“renderCanvas”,value:function(e){for(var t=e.getCanvas(),n=e.getContext().getImageData(0,0,t.width,t.height),r=this._options.brightness,i=0;i<t.width;i++)for(var o=0;o<t.height;o++){var a=4*(t.width*o+i);n.data=n.data+255*r,n.data=n.data+255*r,n.data=n.data+255*r}e.getContext().putImageData(n,0,0)}}]),t}(o(n(98)).default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(7),s=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,,[{key:“identifier”,get:function(){return“identity”}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);t.default=s,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this._maxListeners=12,this._events={}}return r(e,[{key:“on”,value:function(e,t){if(“function”!=typeof t)throw new TypeError;var n=this._events||(this._events=[]);return-1!==n.indexOf(t)||(n.push(t),n.length>this._maxListeners&&function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=arguments;console.error.apply(console,.concat(n)),console.trace()}(“possible memory leak, added %i %s listeners,n use EventEmitter#setMaxListeners(number) if youn want to increase the limit (%i now)”,n.length,e,this._maxListeners)),this}},{key:“once”,value:function(e,t){var n=this;return this.on(e,(function r(){n.off(e,r),t.apply(null,arguments)}))}},{key:“off”,value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=arguments;if(0===n.length)return this._events=null,this;var i=n;if(“function”!=typeof i)throw new TypeError;var o=this._events;if(!o||!o.length)return this;var a=o.indexOf(i);return-1===a||o.splice(a,1),this}},{key:“emit”,value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=arguments;var i=this._events;return!(!i||!i.length||(i.forEach((function(e){return e.apply(null,n)})),0))}},{key:“setMaxListeners”,value:function(e){if(parseInt(e,10)!==e)throw new TypeError;this._maxListeners=e}}]),e}();t.default=i,e.exports=t.default},function(e,t,n){“use strict”; /*!

StackBlur - a fast almost Gaussian Blur For Canvas

Version:  0.5
Author:   Mario Klingemann
Contact:  mario@quasimondo.com
Website:  http://www.quasimondo.com/StackBlurForCanvas
Twitter:  @quasimondo

In case you find this class useful - especially in commercial projects -
I am not totally unhappy for a small donation to my PayPal account
mario@quasimondo.de

Or support me on flattr:
https://flattr.com/thing/72791/StackBlur-a-fast-almost-Gaussian-Blur-Effect-for-CanvasJavascript

Copyright (c) 2010 Mario Klingemann

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/var r=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],i=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function o(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}e.exports={stackBlurCanvasRGBA:function(e,t,n,a,s,c){if(!(isNaN(c)||c<1)){c|=0;var u,l,d,p,f,h,m,_,v,g,y,b,w,k,O,C,M,D,x,E,S,j,T,L,P,A=e.data,N=c+c+1,I=a-1,Y=s-1,R=c+1,F=R*(R+1)/2,H=new o,W=H;for(d=1;d<N;d++)W=W.next=new o,d==R&&(P=W);W.next=H;var B=null,z=null;m=h=0;var U=r[c],q=i[c];for(l=0;l<s;l++){for(C=M=D=x=_=v=g=y=0,b=R*(E=A[h]),w=R*(S=A[h+1]),k=R*(j=A[h+2]),O=R*(T=A[h+3]),_+=F*E,v+=F*S,g+=F*j,y+=F*T,W=H,d=0;d<R;d++)W.r=E,W.g=S,W.b=j,W.a=T,W=W.next;for(d=1;d<R;d++)p=h+((I<d?I:d)<<2),_+=(W.r=E=A[p])*(L=R-d),v+=(W.g=S=A[p+1])*L,g+=(W.b=j=A[p+2])*L,y+=(W.a=T=A[p+3])*L,C+=E,M+=S,D+=j,x+=T,W=W.next;for(B=H,z=P,u=0;u<a;u++)A[h+3]=T=y*U>>q,0!==T?(T=255/T,A[h]=(_*U>>q)*T,A[h+1]=(v*U>>q)*T,A[h+2]=(g*U>>q)*T):A[h]=A[h+1]=A[h+2]=0,_-=b,v-=w,g-=k,y-=O,b-=B.r,w-=B.g,k-=B.b,O-=B.a,p=m+((p=u+c+1)<I?p:I)<<2,_+=C+=B.r=A[p],v+=M+=B.g=A[p+1],g+=D+=B.b=A[p+2],y+=x+=B.a=A[p+3],B=B.next,b+=E=z.r,w+=S=z.g,k+=j=z.b,O+=T=z.a,C-=E,M-=S,D-=j,x-=T,z=z.next,h+=4;m+=a}for(u=0;u<a;u++){for(M=D=x=C=v=g=y=_=0,b=R*(E=A[h=u<<2]),w=R*(S=A[h+1]),k=R*(j=A[h+2]),O=R*(T=A[h+3]),_+=F*E,v+=F*S,g+=F*j,y+=F*T,W=H,d=0;d<R;d++)W.r=E,W.g=S,W.b=j,W.a=T,W=W.next;for(f=a,d=1;d<=c;d++)h=f+u<<2,_+=(W.r=E=A[h])*(L=R-d),v+=(W.g=S=A[h+1])*L,g+=(W.b=j=A[h+2])*L,y+=(W.a=T=A[h+3])*L,C+=E,M+=S,D+=j,x+=T,W=W.next,d<Y&&(f+=a);for(h=u,B=H,z=P,l=0;l<s;l++)A[3+(p=h<<2)]=T=y*U>>q,T>0?(T=255/T,A[p]=(_*U>>q)*T,A[p+1]=(v*U>>q)*T,A[p+2]=(g*U>>q)*T):A[p]=A[p+1]=A[p+2]=0,_-=b,v-=w,g-=k,y-=O,b-=B.r,w-=B.g,k-=B.b,O-=B.a,p=u+((p=l+R)<Y?p:Y)*a<<2,_+=C+=B.r=A[p],v+=M+=B.g=A[p+1],g+=D+=B.b=A[p+2],y+=x+=B.a=A[p+3],B=B.next,b+=E=z.r,w+=S=z.g,k+=j=z.b,O+=T=z.a,C-=E,M-=S,D-=j,x-=T,z=z.next,h+=a}}}}},function(e,t,n){var r=e.exports={},i=[],o=!1;function a(){if(!o){var e;o=!0;for(var t=i.length;t;){e=i,i=[];for(var n=-1;++n<t;)e[n]();t=i.length}o=!1}}function s(){}r.nextTick=function(e){i.push(e),o||setTimeout(a,0)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=s,r.addListener=s,r.once=s,r.off=s,r.removeListener=s,r.removeAllListeners=s,r.emit=s,r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(5)),a=i(n(72)),s=i(n(100)),c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this._kit=e,this._options=n,this._options.ui=this._options.ui||{},this._operations=[],this._helpers=new s.default(this.kit,this,n),this._languages={},this.selectOperations(null)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"run",value:function(){this._attach()}},{key:"registerLanguage",value:function(e,t){this._languages[e]=t}},{key:"translate",value:function(e){return o.default.fetch(this._language,e,"translation-missing")}},{key:"_attach",value:function(){if(null===this._options.container)throw new Error("BaseUI#attach: No container set.");var e=this._render();this._options.container.innerHTML=e,this._options.container.style.position="relative"}},{key:"_render",value:function(){if(void 0===this._template)throw new Error("BaseUI#_render: No template set.");return this._template(this.context)}},{key:"selectOperations",value:function(e){var t=this._kit.registeredOperations,n=Object.keys(t),r=o.default.select(n,e);this._operations=r.map((function(e){return t[e]}))}},{key:"addOperation",value:function(e){this._operations.push(e)}},{key:"isOperationSelected",value:function(e){return-1!==this._operations.map((function(e){return e.prototype.identifier})).indexOf(e)}},{key:"identifier",get:function(){return null}},{key:"context",get:function(){return{operations:this._operations,helpers:this._helpers,options:this._options}}},{key:"container",get:function(){return this._options.container}},{key:"operations",get:function(){return this._operations}},{key:"options",get:function(){return this._options}},{key:"canvas",get:function(){return this._canvas}},{key:"helpers",get:function(){return this._helpers}},{key:"image",get:function(){return this._options.image}}]),t}(a.default);t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(55)),a=i(n(54)),s=i(n(49)),c=i(n(5)),u=i(n(72)),l=i(n(57)),d=function(e){function t(e,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this._kit=e,this._ui=n,this._options=r;var i=this._ui.container;this._canvasContainer=i.querySelector(".imglykit-canvas-container"),this._canvasInnerContainer=i.querySelector(".imglykit-canvas-inner-container"),this._canvas=this._canvasContainer.querySelector("canvas"),this._image=this._options.image,this._roundZoomBy=.1,this._isFirstRender=!0,this._dragOnMousedown=this._dragOnMousedown.bind(this),this._dragOnMousemove=this._dragOnMousemove.bind(this),this._dragOnMouseup=this._dragOnMouseup.bind(this)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"run",value:function(){this._initRenderer(),this._zoomLevel=this._getInitialZoomLevel(),this._initialZoomLevel=this._zoomLevel,this._isInitialZoom=!0,this._size=null,this.render(),this._centerCanvas(),this._handleDrag()}},{key:"render",value:function(){var e=this;this._initialZoomLevel=this._getInitialZoomLevel(),this._isInitialZoom&&this.setZoomLevel(this._initialZoomLevel,!1);var t=new s.default(this._image.width,this._image.height).multiply(this._zoomLevel);this._setCanvasSize(t),this._renderer.reset();var n=this.sanitizedStack;this._updateStackDirtyStates(n);for(var r=[],i=0;i<n.length;i++){var o=n[i];r.push(o.validateSettings())}return l.default.all(r).then((function(){if(e._isFirstRender&&"webgl"===e._renderer.identifier&&(e._image.width>e._renderer.maxTextureSize||e._image.height>e._renderer.maxTextureSize))return e._ui.displayLoadingMessage("Resizing..."),new l.default((function(t,n){setTimeout((function(){e._renderer.prepareImage(e._image).then((function(n){e._ui.hideLoadingMessage(),e._options.image=n,e._image=e._options.image,t()})).catch((function(e){n(e)}))}),100)}))})).then((function(){if(e._isFirstRender||"canvas"===e._renderer.constructor.identifier)return e._isFirstRender=!1,e._renderer.drawImage(e._image)})).then((function(){for(var t=[],r=0;r<n.length;r++){var i=n[r];t.push(i.render(e._renderer))}return l.default.all(t)})).then((function(){return e._renderer.renderFinal()})).then((function(){e._storeCanvasSize(),e._updateContainerSize(),e._updateCanvasMargins(),e._applyBoundaries()})).catch((function(e){console.log(e)}))}},{key:"setImage",value:function(e){this._image=e,this.reset(),this.render(),this._centerCanvas()}},{key:"zoomIn",value:function(){this._isInitialZoom=!1;var e=Math.round(100*this._zoomLevel),t=Math.round(100*this._roundZoomBy),n=Math.round(100*this._initialZoomLevel);return e%t!=0?e=Math.ceil(e/t)*t:e+=t,e=Math.min(2*n,e),this.setZoomLevel(e/100)}},{key:"zoomOut",value:function(){this._isInitialZoom=!1;var e=Math.round(100*this._zoomLevel),t=Math.round(100*this._roundZoomBy),n=Math.round(100*this._initialZoomLevel);return e%t!=0?e=Math.floor(e/t)*t:e-=t,e=Math.max(n,e),this.setZoomLevel(e/100)}},{key:"_setCanvasSize",value:function(e){e=e||new s.default(this._canvas.width,this._canvas.height),this._canvas.width=e.x,this._canvas.height=e.y,this._storeCanvasSize(),this._updateContainerSize()}},{key:"_updateContainerSize",value:function(){var e=this._size;this._canvasInnerContainer.style.width=e.x+"px",this._canvasInnerContainer.style.height=e.y+"px"}},{key:"_storeCanvasSize",value:function(){this._size=new s.default(this._canvas.width,this._canvas.height)}},{key:"_centerCanvas",value:function(){var e=this._maxSize.divide(2);this._canvasInnerContainer.style.left=e.x+"px",this._canvasInnerContainer.style.top=e.y+"px",this._updateCanvasMargins()}},{key:"_updateCanvasMargins",value:function(){var e=new s.default(this._canvas.width,this._canvas.height).divide(2).multiply(-1);this._canvasInnerContainer.style.marginLeft=e.x+"px",this._canvasInnerContainer.style.marginTop=e.y+"px"}},{key:"setZoomLevel",value:function(e){var t=this,n=void 0===arguments[1]||arguments[1];if(this._zoomLevel=e,n)return this.setAllOperationsToDirty(),this.render().then((function(){t._updateCanvasMargins(),t._applyBoundaries(),t.emit("zoom")}));this._updateCanvasMargins(),this._applyBoundaries(),this.emit("zoom")}},{key:"setAllOperationsToDirty",value:function(){for(var e=this._kit.operationsStack,t=0;t<e.length;t++){var n=e[t];n&&(n.dirty=!0)}}},{key:"_getInitialZoomLevel",value:function(){var e=new s.default(this._image.width,this._image.height),t=this._ui.operations.crop,n=this._ui.operations.rotation,r=void 0,i=void 0,o=void 0;if(r=t?t.getEnd().clone().subtract(t.getStart()):new s.default(1,1),i=e.clone().multiply(r),n&&n.getDegrees()%180!=0){var a=i.x;i.x=i.y,i.y=a}return o=c.default.resizeVectorToFit(i,this._maxSize),n&&n.getDegrees()%180!=0&&(a=o.x,o.x=o.y,o.y=a),o.clone().divide(r).x/e.x}},{key:"_initRenderer",value:function(){var e=this;if(o.default.isSupported()&&"canvas"!==this._options.renderer?(this._renderer=new o.default(null,this._canvas),this._webglEnabled=!0):a.default.isSupported()&&(this._renderer=new a.default(null,this._canvas),this._webglEnabled=!1),null===this._renderer)throw new Error("Neither Canvas nor WebGL renderer are supported.");this._renderer.on("new-canvas",(function(t){e._setCanvas(t)}))}},{key:"_setCanvas",value:function(e){var t=this._canvas.parentNode;t.removeChild(this._canvas),this._canvas=e,t.appendChild(this._canvas),this._updateCanvasMargins(),this._applyBoundaries(),this._updateContainerSize()}},{key:"_handleDrag",value:function(){this._canvas.addEventListener("mousedown",this._dragOnMousedown),this._canvas.addEventListener("touchstart",this._dragOnMousedown)}},{key:"_dragOnMousedown",value:function(e){if("mousedown"!==e.type||0===e.button){e.preventDefault();var t=e.pageX,n=e.pageY;"touchstart"===e.type&&(t=e.touches[0].pageX,n=e.touches[0].pageY);var r=parseInt(this._canvasInnerContainer.style.left,10),i=parseInt(this._canvasInnerContainer.style.top,10);document.addEventListener("mousemove",this._dragOnMousemove),document.addEventListener("touchmove",this._dragOnMousemove),document.addEventListener("mouseup",this._dragOnMouseup),document.addEventListener("touchend",this._dragOnMouseup),this._initialMousePosition=new s.default(t,n),this._initialCanvasPosition=new s.default(r,i)}}},{key:"_dragOnMousemove",value:function(e){e.preventDefault();var t=e.pageX,n=e.pageY;"touchmove"===e.type&&(t=e.touches[0].pageX,n=e.touches[0].pageY);var r=new s.default(t,n).clone().subtract(this._initialMousePosition),i=this._initialCanvasPosition.clone().add(r);this._canvasInnerContainer.style.left=i.x+"px",this._canvasInnerContainer.style.top=i.y+"px",this._applyBoundaries()}},{key:"_applyBoundaries",value:function(){var e=parseInt(this._canvasInnerContainer.style.left,10),t=parseInt(this._canvasInnerContainer.style.top,10),n=new s.default(e,t),r=this._boundaries;n.x=Math.min(r.max.x,Math.max(r.min.x,n.x)),n.y=Math.min(r.max.y,Math.max(r.min.y,n.y)),this._canvasInnerContainer.style.left=n.x+"px",this._canvasInnerContainer.style.top=n.y+"px"}},{key:"_dragOnMouseup",value:function(e){e.preventDefault(),document.removeEventListener("mousemove",this._dragOnMousemove),document.removeEventListener("touchmove",this._dragOnMousemove),document.removeEventListener("mouseup",this._dragOnMouseup),document.removeEventListener("touchend",this._dragOnMouseup)}},{key:"_updateStackDirtyStates",value:function(e){for(var t=!1,n=0;n<e.length;n++){var r=e[n];r&&(r.dirty&&(t=!0),t&&(r.dirty=!0))}}},{key:"zoomToFit",value:function(){var e=void 0===arguments[0]||arguments[0],t=this._getInitialZoomLevel();return this.setZoomLevel(t,e)}},{key:"reset",value:function(){this._renderer.reset(!0),this._kit.operationsStack=[],this._isFirstRender=!0}},{key:"_boundaries",get:function(){var e=new s.default(this._canvas.width,this._canvas.height),t=this._maxSize,n=e.clone().subtract(t).multiply(-1),r={min:new s.default(n.x,n.y),max:new s.default(0,0)};e.x<t.x&&(r.min.x=n.x/2,r.max.x=n.x/2),e.y<t.y&&(r.min.y=n.y/2,r.max.y=n.y/2);var i=e.clone().divide(2);return r.min.add(i),r.max.add(i),r}},{key:"_maxSize",get:function(){return new s.default(this._canvasContainer.offsetWidth,this._canvasContainer.offsetHeight)}},{key:"sanitizedStack",get:function(){for(var e=[],t=0;t<this._kit.operationsStack.length;t++){var n=this._kit.operationsStack[t];n&&e.push(n)}return e}},{key:"zoomLevel",get:function(){return this._zoomLevel}},{key:"size",get:function(){return this._size}}]),t}(u.default);t.default=d,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(72),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this._kit=e,this._ui=n,this._dragCounter=0,this._container=this._ui.container.querySelector(".imglykit-splash-container"),this._onDropAreaDragEnter=this._onDropAreaDragEnter.bind(this),this._onDropAreaDragOver=this._onDropAreaDragOver.bind(this),this._onDropAreaDragLeave=this._onDropAreaDragLeave.bind(this),this._onDropAreaDrop=this._onDropAreaDrop.bind(this),this._onDropAreaClick=this._onDropAreaClick.bind(this),this._onFileInputChange=this._onFileInputChange.bind(this),this._hiddenInputField=this._ui.container.querySelector(".imglykit-upload-hidden-input"),this._hiddenInputField.addEventListener("change",this._onFileInputChange),this._handleDropArea(),this._ui.options.image&&this.removeDOM()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),i(t,[{key:"openFileDialog",value:function(){this._hiddenInputField.click()}},{key:"_handleDropArea",value:function(){this._dropArea=this._container.querySelector(".imglykit-splash-row--upload"),this._dropArea.addEventListener("dragenter",this._onDropAreaDragEnter),this._dropArea.addEventListener("dragover",this._onDropAreaDragOver),this._dropArea.addEventListener("dragleave",this._onDropAreaDragLeave),this._dropArea.addEventListener("drop",this._onDropAreaDrop),this._dropArea.addEventListener("dragdrop",this._onDropAreaDrop),this._dropArea.addEventListener("click",this._onDropAreaClick)}},{key:"_onDropAreaClick",value:function(){this.openFileDialog()}},{key:"_onDropAreaDragEnter",value:function(e){e.preventDefault(),this._dragCounter++,this._dropArea.classList.add("imglykit-splash-active")}},{key:"_onDropAreaDragOver",value:function(e){e.preventDefault()}},{key:"_onDropAreaDragLeave",value:function(e){e.preventDefault(),this._dragCounter--,0===this._dragCounter&&this._dropArea.classList.remove("imglykit-splash-active")}},{key:"_onDropAreaDrop",value:function(e){e.stopPropagation(),e.preventDefault(),e.returnValue=!1,this._dropArea.classList.remove("imglykit-splash-active"),e.dataTransfer&&this._handleFile(e.dataTransfer.files[0])}},{key:"_onFileInputChange",value:function(){this._handleFile(this._hiddenInputField.files[0])}},{key:"_handleFile",value:function(e){this.emit("file",e)}},{key:"removeDOM",value:function(){this._dropArea.removeEventListener("dragenter",this._onDropAreaDragEnter),this._dropArea.removeEventListener("dragover",this._onDropAreaDragOver),this._dropArea.removeEventListener("dragleave",this._onDropAreaDragLeave),this._dropArea.removeEventListener("drop",this._onDropAreaDrop),this._dropArea.removeEventListener("dragdrop",this._onDropAreaDrop),this._dropArea.removeEventListener("click",this._onDropAreaClick),this._container&&(this._container.style.display="none")}}]),t}(((r=o)&&r.__esModule?r:{default:r}).default);t.default=a,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(72)),a=i(n(5)),s=i(n(49)),c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this._kit=e,this._ui=n;var r=this._ui.container;this._canvasContainer=r.querySelector(".imglykit-canvas-container"),this._video=r.querySelector(".imglykit-webcam-video"),this._webcamButton=r.querySelector(".imglykit-webcam-button"),this._webcamButton.addEventListener("click",this._onWebcamButtonClick.bind(this)),this._initVideoStream()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"_onWebcamButtonClick",value:function(e){var t=this;e.preventDefault();var n=document.createElement("canvas");n.width=this._video.videoWidth,n.height=this._video.videoHeight,n.getContext("2d").drawImage(this._video,0,0),this._stream.stop(),this._video.pause(),delete this._stream,delete this._video;var r=new Image;r.addEventListener("load",(function(){t.emit("image",r)})),r.src=n.toDataURL("image/png")}},{key:"_initVideoStream",value:function(){var e=this,t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;if(!t)throw new Error("Webcam feature not supported! :(");t.call(navigator,{video:!0},(function(t){e._stream=t,e._video.onloadedmetadata=e._onVideoReady.bind(e),e._video.src=window.URL.createObjectURL(t)}),(function(e){throw e}))}},{key:"_onVideoReady",value:function(){this._resizeVideo()}},{key:"_resizeVideo",value:function(){var e=this._video,t=e.videoWidth,n=e.videoHeight,r=new s.default(t,n),i=new s.default(this._canvasContainer.offsetWidth,this._canvasContainer.offsetHeight),o=a.default.resizeVectorToFit(r,i);this._video.style.width=o.x+"px",this._video.style.height=o.y+"px";var c=i.clone().subtract(o).divide(2);this._video.style.marginLeft=c.x+"px",this._video.style.marginTop=c.y+"px"}},{key:"getUserMedia",get:function(){}}]),t}(o.default);t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(72),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this._kit=e,this._ui=n,this.init()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),i(t,[{key:"init",value:function(){this._canvas=this._ui.canvas}},{key:"run",value:function(){var e=this._ui.container;this._rightControls=e.querySelector(".imglykit-top-controls-right"),this._leftControls=e.querySelector(".imglykit-top-controls-left"),this._undoButton=e.querySelector(".imglykit-undo"),this._zoomIn=e.querySelector(".imglykit-zoom-in"),this._zoomOut=e.querySelector(".imglykit-zoom-out"),this._zoomLevel=e.querySelector(".imglykit-zoom-level-num"),this._newButton=e.querySelector(".imglykit-new"),this._exportButton=e.querySelector(".imglykit-export"),this._handleZoom(),this._handleUndo(),this._handleNew(),this._handleExport()}},{key:"_handleZoom",value:function(){this._zoomIn.addEventListener("click",this._onZoomInClick.bind(this)),this._zoomOut.addEventListener("click",this._onZoomOutClick.bind(this))}},{key:"_handleUndo",value:function(){this._undoButton.addEventListener("click",this._undo.bind(this)),this._undo()}},{key:"_handleNew",value:function(){this._newButton&&this._newButton.addEventListener("click",this._onNewClick.bind(this))}},{key:"_handleExport",value:function(){this._exportButton&&this._exportButton.addEventListener("click",this._onExportClick.bind(this))}},{key:"_onNewClick",value:function(e){e.preventDefault(),this.emit("new")}},{key:"_onExportClick",value:function(e){e.preventDefault(),this.emit("export")}},{key:"_undo",value:function(){this.emit("undo")}},{key:"updateUndoButton",value:function(){0===this._ui.history.length?this._undoButton.style.display="none":this._undoButton.style.display="inline-block"}},{key:"updateExportButton",value:function(){if(this._exportButton){var e=this._ui.image;this._exportButton.style.display=e?"inline-block":"none"}}},{key:"_onZoomInClick",value:function(e){e.preventDefault(),this.emit("zoom-in"),this.updateZoomLevel()}},{key:"_onZoomOutClick",value:function(e){e.preventDefault(),this.emit("zoom-out"),this.updateZoomLevel()}},{key:"showZoom",value:function(){this._rightControls.style.display="inline-block"}},{key:"hideZoom",value:function(){this._rightControls.style.display="none"}},{key:"updateZoomLevel",value:function(){var e=this._canvas.zoomLevel;this._zoomLevel.innerHTML=Math.round(100*e)}}]),t}(((r=o)&&r.__esModule?r:{default:r}).default);t.default=a,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(5)),a=i(n(49)),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._container=t,this._isDragging=!1,this._isHovering=!1,this._appendDOM(),this._resizeButton(),this._updateValues(),this._onButtonDown=this._onButtonDown.bind(this),this._onButtonMove=this._onButtonMove.bind(this),this._onButtonUp=this._onButtonUp.bind(this),this._onContainerEnter=this._onContainerEnter.bind(this),this._onContainerLeave=this._onContainerLeave.bind(this),this._onBackgroundClick=this._onBackgroundClick.bind(this),this._container.addEventListener("mouseenter",this._onContainerEnter),this._container.addEventListener("mouseleave",this._onContainerLeave),this._container.addEventListener("mousemove",this._onContainerEnter),this._dom.button.addEventListener("mousedown",this._onButtonDown),this._dom.button.addEventListener("touchstart",this._onButtonDown),this._dom.background.addEventListener("click",this._onBackgroundClick),this._list.addEventListener("scroll",this._onListScroll.bind(this)),this._onListScroll()}return r(e,[{key:"_onBackgroundClick",value:function(e){if(e.preventDefault(),e.target===this._dom.background){var t=o.default.getEventPosition(e),n=this._dom.background.getBoundingClientRect();n=new a.default(n.left,n.top);var r=t.clone().subtract(n);r.x-=.5*this._values.button.width,this._setButtonPosition(r.x)}}},{key:"_onContainerEnter",value:function(){this._isHovering=!0,this.show()}},{key:"_onContainerLeave",value:function(){this._isHovering=!1,this.hide()}},{key:"show",value:function(){this._isScrollingNecessary&&this._dom.background.classList.add("visible")}},{key:"hide",value:function(){this._isDragging||this._dom.background.classList.remove("visible")}},{key:"_updateValues",value:function(){this._values={list:{totalWidth:this._list.scrollWidth,visibleWidth:this._list.offsetWidth,scrollableWidth:this._list.scrollWidth-this._list.offsetWidth},button:{width:this._dom.button.offsetWidth,scrollableWidth:this._dom.background.offsetWidth-this._dom.button.offsetWidth}}}},{key:"_onButtonDown",value:function(e){e.preventDefault(),this._isDragging=!0,this._initialMousePosition=o.default.getEventPosition(e),this._initialButtonPosition=this._buttonPosition||0,document.addEventListener("mousemove",this._onButtonMove),document.addEventListener("touchmove",this._onButtonMove),document.addEventListener("mouseup",this._onButtonUp),document.addEventListener("touchend",this._onButtonUp)}},{key:"_onButtonMove",value:function(e){e.preventDefault();var t=o.default.getEventPosition(e).clone().subtract(this._initialMousePosition),n=this._initialButtonPosition+t.x;this._setButtonPosition(n)}},{key:"_setButtonPosition",value:function(e){e=Math.max(0,e),e=Math.min(e,this._values.button.scrollableWidth),this._buttonPosition=e,this._dom.button.style.left=this._buttonPosition+"px";var t=e/this._values.button.scrollableWidth,n=this._values.list.scrollableWidth*t;this._list.scrollLeft=n}},{key:"_onButtonUp",value:function(){this._isDragging=!1,document.removeEventListener("mousemove",this._onButtonMove),document.removeEventListener("touchmove",this._onButtonMove),document.removeEventListener("mouseup",this._onButtonUp),document.removeEventListener("touchend",this._onButtonUp)}},{key:"_onListScroll",value:function(){if(!this._isDragging){var e=this._list.scrollWidth-this._list.offsetWidth,t=this._list.scrollLeft,n=this._dom.background.offsetWidth-this._dom.button.offsetWidth,r=t/e;this._buttonPosition=n*r,this._dom.button.style.left=this._buttonPosition+"px"}}},{key:"_resizeButton",value:function(){var e=this._list.scrollWidth,t=this._list.offsetWidth;this._buttonWidth=t/e*t,this._dom.button.style.width=this._buttonWidth+"px"}},{key:"_appendDOM",value:function(){var e=document.createElement("div");e.classList.add("imglykit-scrollbar-background"),e.style.bottom="18px";var t=document.createElement("div");t.classList.add("imglykit-scrollbar-button"),e.appendChild(t),this._container.appendChild(e),this._container.style.position="relative",this._list=this._container.querySelector(".imglykit-controls-list"),this._dom={background:e,button:t},this._list.style.height="";var n=this._list.offsetHeight;n+=18,this._container.style.height=n+"px",this._list.style.height=n+"px"}},{key:"remove",value:function(){this._dom.button.removeEventListener("mousedown",this._onButtonDown),this._dom.button.removeEventListener("touchstart",this._onButtonDown),this._dom.background.parentNode.removeChild(this._dom.background)}},{key:"_isScrollingNecessary",get:function(){return this._list.scrollWidth>this._list.offsetWidth}}]),e}();t.default=s,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(n(93)),c=o(n(5)),u=function(e){function t(){a(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._controlsTemplate=function(e){var t='<div class="imglykit-controls-list-container"> <ul class="imglykit-controls-list imgly-controls-list-with-buttons"> ';for(var n in e.filters){t+=" ",t+=" ";var r=e.filters[n].prototype.name;t+=" ",t+=' <li data-identifier="'+n+'" class="imglykit-controls-item-with-label',e.activeFilter.identifier===n&&(t+=" imglykit-controls-item-active"),t+='"> <img src="'+e.helpers.assetPath("ui/night/filters/"+n+".png")+'" /> <div class="imglykit-controls-item-label">'+r+"</div> </li> "}return t+=" </ul></div>"},this._availableFilters={},this._filters={},this._addDefaultFilters(),this.selectFilters(null)}},{key:"_renderAllControls",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];this._operationExistedBefore=!!this._ui.operations.filters,this._operation=this._ui.getOrCreateOperation("filters"),i(Object.getPrototypeOf(t.prototype),"_renderAllControls",this).apply(this,n)}},{key:"_onEnter",value:function(){var e=this;this._initialFilter=this._operation.getFilter(),this._defaultFilter=this._operation.availableOptions.filter.default;var t=this._controls.querySelectorAll("li");this._listItems=Array.prototype.slice.call(t);for(var n=function(t){var n=e._listItems[t];n.addEventListener("click",(function(){e._onListItemClick(n)}))},r=0;r<this._listItems.length;r++)n(r)}},{key:"_onBack",value:function(){var e=this._operation.getFilter();e!==this._initialFilter&&this._ui.addHistory(this._operation,{filter:this._initialFilter},this._operationExistedBefore),e===this._defaultFilter&&this._ui.removeOperation("filters"),this._ui.canvas.render()}},{key:"_onListItemClick",value:function(e){this._deactivateAllItems();var t=e.dataset.identifier;this._operation.setFilter(this._filters[t]),this._ui.canvas.render(),e.classList.add("imglykit-controls-item-active")}},{key:"_deactivateAllItems",value:function(){for(var e=0;e<this._listItems.length;e++)this._listItems[e].classList.remove("imglykit-controls-item-active")}},{key:"_addDefaultFilters",value:function(){this.addFilter(n(71)),this.addFilter(n(33)),this.addFilter(n(34)),this.addFilter(n(35)),this.addFilter(n(36)),this.addFilter(n(29)),this.addFilter(n(22)),this.addFilter(n(41)),this.addFilter(n(26)),this.addFilter(n(30)),this.addFilter(n(27)),this.addFilter(n(48)),this.addFilter(n(23)),this.addFilter(n(24)),this.addFilter(n(37)),this.addFilter(n(44)),this.addFilter(n(43)),this.addFilter(n(42)),this.addFilter(n(28)),this.addFilter(n(31)),this.addFilter(n(25)),this.addFilter(n(47)),this.addFilter(n(40)),this.addFilter(n(38)),this.addFilter(n(32)),this.addFilter(n(39)),this.addFilter(n(46)),this.addFilter(n(21)),this.addFilter(n(45))}},{key:"addFilter",value:function(e){this._availableFilters[e.identifier]=e}},{key:"selectFilters",value:function(e){this._filters={};for(var t=Object.keys(this._availableFilters),n=c.default.select(t,e),r=0;r<n.length;r++){var i=n[r];this._filters[i]=this._availableFilters[i]}this._active&&this._renderControls()}},{key:"context",get:function(){return{filters:this._filters,activeFilter:this._operation.getFilter()}}}]),t}(s.default);u.prototype.identifier="filters",t.default=u,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(n(93)),s=i(n(49)),c=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._controlsTemplate=function(e){return'<div> <ul class="imglykit-controls-list imgly-controls-list-with-buttons"> <li data-degrees="-90"> <img src="'+e.helpers.assetPath("ui/night/rotation/left.png")+'" /> </li> <li data-degrees="90"> <img src="'+e.helpers.assetPath("ui/night/rotation/right.png")+'" /> </li> </ul></div>'},this._canvasControlsTemplate=function(e){return'<div class="imglykit-canvas-crop-container imglykit-canvas-crop-container-hidden"> <div class="imglykit-canvas-crop-top"> <div class="imglykit-canvas-crop-top-left"></div> <div class="imglykit-canvas-crop-top-center"></div> <div class="imglykit-canvas-crop-top-right"></div> </div> <div class="imglykit-canvas-crop-center"> <div class="imglykit-canvas-crop-center-left"></div> <div class="imglykit-canvas-crop-center-center imglykit-canvas-crop-center-center-nomove"> </div> <div class="imglykit-canvas-crop-center-right"></div> </div> <div class="imglykit-canvas-crop-bottom"> <div class="imglykit-canvas-crop-bottom-left"></div> <div class="imglykit-canvas-crop-bottom-center"></div> <div class="imglykit-canvas-crop-bottom-right"></div> </div></div>'}}},{key:"_onEnter",value:function(){var e=this;this._operationExistedBefore=!!this._ui.operations.rotation,this._operation=this._ui.getOrCreateOperation("rotation"),this._cropOperation=this._ui.operations.crop,this._initialZoomLevel=this._ui.canvas.zoomLevel,this._ui.canvas.zoomToFit(!1),this._cropOperation&&(this._initialStart=this._cropOperation.getStart().clone(),this._initialEnd=this._cropOperation.getEnd().clone(),this._cropOperation.set({start:new s.default(0,0),end:new s.default(1,1)})),this._initialDegrees=this._operation.getDegrees();var t=this._controls.querySelectorAll("li");this._listItems=Array.prototype.slice.call(t);for(var n=function(t){var n=e._listItems[t];n.addEventListener("click",(function(){e._onListItemClick(n)}))},r=0;r<this._listItems.length;r++)n(r);var i=".imglykit-canvas-crop";this._cropAreas={topLeft:this._canvasControls.querySelector(i+"-top-left"),topCenter:this._canvasControls.querySelector(i+"-top-center"),centerLeft:this._canvasControls.querySelector(i+"-center-left"),centerCenter:this._canvasControls.querySelector(i+"-center-center")},this._ui.canvas.render().then((function(){e._showCropContainer(),e._updateCropDOM()}))}},{key:"_showCropContainer",value:function(){this._canvasControls.querySelector(".imglykit-canvas-crop-container").classList.remove("imglykit-canvas-crop-container-hidden")}},{key:"_onListItemClick",value:function(e){var t=this,n=e.dataset.degrees;n=parseInt(n,10);var r=this._operation.getDegrees();this._operation.setDegrees(r+n),this._ui.canvas.zoomToFit().then((function(){t._updateCropDOM()}))}},{key:"onZoom",value:function(){this._updateCropDOM()}},{key:"_updateCropDOM",value:function(){var e=void 0,t=void 0;this._cropOperation?(e=this._initialStart.clone(),t=this._initialEnd.clone()):(e=new s.default(0,0),t=new s.default(1,1));var n=this._ui.canvas.size,r=e.multiply(n),i=t.multiply(n).clone().subtract(r),o=Math.max(1,r.y),a=Math.max(1,r.x),c=Math.max(1,i.x),u=Math.max(1,i.y);this._cropAreas.topLeft.style.width=a+"px",this._cropAreas.topCenter.style.width=c+"px",this._cropAreas.topLeft.style.height=o+"px",this._cropAreas.centerLeft.style.height=u+"px"}},{key:"_onBack",value:function(){var e=this._operation.getDegrees();this._initialDegrees!==e&&this._ui.addHistory(this._operation,{degrees:this._initialDegrees},this._operationExistedBefore),0===e&&this._ui.removeOperation("rotation"),this._cropOperation&&this._cropOperation.set({start:this._initialStart,end:this._initialEnd}),this._ui.canvas.render()}}]),t}(a.default);c.prototype.identifier="rotation",t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o,a=n(93),s=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._controlsTemplate=function(e){return'<div> <ul class="imglykit-controls-list imgly-controls-list-with-buttons"> <li data-direction="horizontal"> <img src="'+e.helpers.assetPath("ui/night/flip/horizontal.png")+'" /> </li> <li data-direction="vertical"> <img src="'+e.helpers.assetPath("ui/night/flip/vertical.png")+'" /> </li> </ul></div>'}}},{key:"_onEnter",value:function(){var e=this;this._operationExistedBefore=!!this._ui.operations.flip,this._operation=this._ui.getOrCreateOperation("flip"),this._initialHorizontal=this._operation.getHorizontal(),this._initialVertical=this._operation.getVertical();var t=this._controls.querySelectorAll("li");this._listItems=Array.prototype.slice.call(t);for(var n=function(t){var n=e._listItems[t];n.addEventListener("click",(function(){e._onListItemClick(n)}));var r=n.dataset.direction;("horizontal"===r&&e._operation.getHorizontal()||"vertical"===r&&e._operation.getVertical())&&e._toggleItem(n,!0)},r=0;r<this._listItems.length;r++)n(r)}},{key:"_onListItemClick",value:function(e){var t=e.dataset.direction,n=!1;if("horizontal"===t){var r=this._operation.getHorizontal();this._operation.setHorizontal(!r),this._ui.canvas.render(),n=!r}else if("vertical"===t){var i=this._operation.getVertical();this._operation.setVertical(!i),this._ui.canvas.render(),n=!i}this._toggleItem(e,n)}},{key:"_toggleItem",value:function(e,t){t?e.classList.add("imglykit-controls-item-active"):e.classList.remove("imglykit-controls-item-active")}},{key:"_onBack",value:function(){var e=this._operation.getVertical(),t=this._operation.getHorizontal();this._initialVertical===e&&this._initialHorizontal===t||this._ui.addHistory(this._operation,{vertical:this._initialVertical,horizontal:this._initialHorizontal},this._operationExistedBefore),e||t||this._ui.removeOperation("flip"),this._ui.canvas.render()}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);s.prototype.identifier="flip",t.default=s,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(n(93)),s=i(n(101)),c=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._controlsTemplate=function(e){return"<div> "+e.partials.slider+"</div>"},this._partialTemplates.slider=s.default.template}},{key:"_onEnter",value:function(){this._operationExistedBefore=!!this._ui.operations.brightness,this._operation=this._ui.getOrCreateOperation("brightness");var e=this._operation.getBrightness();this._initialBrightness=e;var t=this._controls.querySelector(".imglykit-slider");this._slider=new s.default(t,{minValue:-1,maxValue:1,defaultValue:e}),this._slider.on("update",this._onUpdate.bind(this)),this._slider.setValue(this._initialBrightness)}},{key:"_onBack",value:function(){var e=this._operation.getBrightness();this._initialBrightness!==e&&this._ui.addHistory(this._operation,{brightness:this._initialBrightness},this._operationExistedBefore),1===e&&this._ui.removeOperation("brightness"),this._ui.canvas.render()}},{key:"_onUpdate",value:function(e){this._operation.setBrightness(e),this._ui.canvas.render()}}]),t}(a.default);c.prototype.identifier="brightness",t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(n(93)),s=i(n(101)),c=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._controlsTemplate=function(e){return"<div> "+e.partials.slider+"</div>"},this._partialTemplates.slider=s.default.template}},{key:"_onEnter",value:function(){this._operationExistedBefore=!!this._ui.operations.contrast,this._operation=this._ui.getOrCreateOperation("contrast");var e=this._operation.getContrast();this._initialContrast=e;var t=this._controls.querySelector(".imglykit-slider");this._slider=new s.default(t,{minValue:0,maxValue:2,defaultValue:e}),this._slider.on("update",this._onUpdate.bind(this)),this._slider.setValue(this._initialContrast)}},{key:"_onBack",value:function(){var e=this._operation.getContrast();this._initialContrast!==e&&this._ui.addHistory(this._operation,{contrast:this._initialContrast},this._operationExistedBefore),1===e&&this._ui.removeOperation("contrast"),this._ui.canvas.render()}},{key:"_onUpdate",value:function(e){this._operation.setContrast(e),this._ui.canvas.render()}}]),t}(a.default);c.prototype.identifier="contrast",t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(n(101)),s=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._controlsTemplate=function(e){return"<div> "+e.partials.slider+"</div>"},this._partialTemplates.slider=a.default.template}},{key:"_onEnter",value:function(){(function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}})(Object.getPrototypeOf(t.prototype),"_onEnter",this).call(this),this._operationExistedBefore=!!this._ui.operations.saturation,this._operation=this._ui.getOrCreateOperation("saturation");var e=this._operation.getSaturation();this._initialSaturation=e;var n=this._controls.querySelector(".imglykit-slider");this._slider=new a.default(n,{minValue:0,maxValue:2,defaultValue:e}),this._slider.on("update",this._onUpdate.bind(this)),this._slider.setValue(this._initialSaturation)}},{key:"_onBack",value:function(){var e=this._operation.getSaturation();this._initialSaturation!==e&&this._ui.addHistory(this._operation,{saturation:this._initialSaturation},this._operationExistedBefore),1===e&&this._ui.removeOperation("saturation"),this._ui.canvas.render()}},{key:"_onUpdate",value:function(e){this._operation.setSaturation(e),this._ui.canvas.render()}}]),t}(i(n(93)).default);s.prototype.identifier="saturation",t.default=s,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(n(93)),c=o(n(49)),u=o(n(5)),l=function(e){function t(){a(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._availableRatios={},this._ratios={},this._controlsTemplate=function(e){var t='<div> <ul class="imglykit-controls-list imgly-controls-list-with-buttons"> ';for(var n in e.ratios){t+=" ";var r=e.ratios[n];t+=" ";var i=r.selected;t+=' <li data-identifier="'+n+'" data-ratio="'+r.ratio+'"',i&&(t+=" data-selected"),t+='> <img src="'+e.helpers.assetPath("ui/night/crop/"+n+".png")+'" /> </li> '}return t+=" </ul></div>"+e.partials.doneButton},this._canvasControlsTemplate=function(e){return'<div class="imglykit-canvas-crop-container"> <div class="imglykit-canvas-crop-top"> <div class="imglykit-canvas-crop-top-left"></div> <div class="imglykit-canvas-crop-top-center"></div> <div class="imglykit-canvas-crop-top-right"></div> </div> <div class="imglykit-canvas-crop-center"> <div class="imglykit-canvas-crop-center-left"></div> <div class="imglykit-canvas-crop-center-center"> <div class="imglykit-canvas-crop-knobs"> <div data-corner="top-left"></div> <div data-corner="top-right"></div> <div data-corner="bottom-left"></div> <div data-corner="bottom-right"></div> </div> </div> <div class="imglykit-canvas-crop-center-right"></div> </div> <div class="imglykit-canvas-crop-bottom"> <div class="imglykit-canvas-crop-bottom-left"></div> <div class="imglykit-canvas-crop-bottom-center"></div> <div class="imglykit-canvas-crop-bottom-right"></div> </div></div>'},this._onKnobDown=this._onKnobDown.bind(this),this._onKnobDrag=this._onKnobDrag.bind(this),this._onKnobUp=this._onKnobUp.bind(this),this._onCenterDown=this._onCenterDown.bind(this),this._onCenterDrag=this._onCenterDrag.bind(this),this._onCenterUp=this._onCenterUp.bind(this),this._addDefaultRatios(),this.selectRatios(null)}},{key:"selectRatios",value:function(e){this._ratios={};for(var t=Object.keys(this._availableRatios),n=u.default.select(t,e),r=0;r<n.length;r++){var i=n[r];this._ratios[i]=this._availableRatios[i]}this._active&&this._renderControls()}},{key:"_addDefaultRatios",value:function(){this.addRatio("custom","*",!0),this.addRatio("square","1"),this.addRatio("4-3","1.33"),this.addRatio("16-9","1.77")}},{key:"addRatio",value:function(e,t,n){this._availableRatios[e]={ratio:t,selected:n}}},{key:"_onEnter",value:function(){var e=this;i(Object.getPrototypeOf(t.prototype),"_onEnter",this).call(this),this._operationExistedBefore=!!this._ui.operations.crop,this._operation=this._ui.getOrCreateOperation("crop"),this._defaultStart=new c.default(.1,.1),this._defaultEnd=new c.default(.9,.9),this._initialOptions={start:this._operation.getStart(),end:this._operation.getEnd()},this._start=this._initialOptions.start||this._defaultStart,this._end=this._initialOptions.end||this._defaultEnd,this._minimumSize=new c.default(50,50),this._initialZoomLevel=this._ui.canvas.zoomLevel,this._ui.canvas.zoomToFit(!1);var n=".imglykit-canvas-crop",r=this._canvasControls.querySelector(n+"-knobs");this._initialStart=this._operation.getStart().clone(),this._initialEnd=this._operation.getEnd().clone(),this._operation.set({start:new c.default(0,0),end:new c.default(1,1)}),this._knobs={topLeft:r.querySelector("[data-corner=top-left]"),topRight:r.querySelector("[data-corner=top-right]"),bottomLeft:r.querySelector("[data-corner=bottom-left]"),bottomRight:r.querySelector("[data-corner=bottom-right]")},this._areas={topLeft:this._canvasControls.querySelector(n+"-top-left"),topCenter:this._canvasControls.querySelector(n+"-top-center"),centerLeft:this._canvasControls.querySelector(n+"-center-left"),centerCenter:this._canvasControls.querySelector(n+"-center-center")},this._handleControls(),this._handleKnobs(),this._handleCenter(),this._ui.canvas.render().then((function(){e._updateDOM()}))}},{key:"_handleControls",value:function(){var e=this,t=this._controls.querySelectorAll("ul > li");this._ratioItems=Array.prototype.slice.call(t);for(var n=function(t){var n=e._ratioItems[t],r=n.dataset,i=r.selected,o=r.ratio,a=r.identifier;void 0===i||e._operationExistedBefore||(e._setRatio(a,o,!1),e._selectRatio(n)),n.addEventListener("click",(function(t){t.preventDefault(),e._onRatioClick(n)}))},r=0;r<this._ratioItems.length;r++)n(r)}},{key:"_onRatioClick",value:function(e){this._unselectAllRatios(),this._selectRatio(e)}},{key:"_unselectAllRatios",value:function(){for(var e=0;e<this._ratioItems.length;e++)this._ratioItems[e].classList.remove("imglykit-controls-item-active")}},{key:"_selectRatio",value:function(e){e.classList.add("imglykit-controls-item-active");var t=e.dataset,n=t.ratio,r=t.identifier;this._setRatio(r,n)}},{key:"_setRatio",value:function(e,t){var n=void 0===arguments[2]||arguments[2],r=this._ui.canvas.size;if(this._selectedRatio=e,"*"===t)this._ratio=null,this._start=new c.default(.1,.1),this._end=new c.default(.9,.9);else if("original"===t?this._ratio=r.x/r.y:(t=parseFloat(t),this._ratio=t),n)if(r.x/r.y<=this._ratio){this._start.x=.1,this._end.x=.9;var i=1/r.y*(r.x/this._ratio*.8);this._start.y=(1-i)/2,this._end.y=1-this._start.y}else{this._start.y=.1,this._end.y=.9;var o=1/r.x*(this._ratio*r.y*.8);this._start.x=(1-o)/2,this._end.x=1-this._start.x}this._updateDOM()}},{key:"_updateDOM",value:function(){var e=this._ui.canvas.size,t=this._start.clone().multiply(e),n=this._end.clone().multiply(e).clone().subtract(t),r=Math.max(1,t.y),i=Math.max(1,t.x),o=Math.max(1,n.x),a=Math.max(1,n.y);this._areas.topLeft.style.width=i+"px",this._areas.topCenter.style.width=o+"px",this._areas.topLeft.style.height=r+"px",this._areas.centerLeft.style.height=a+"px"}},{key:"_handleKnobs",value:function(){var e=this,t=function(t){var n=e._knobs[t];n.addEventListener("mousedown",(function(t){e._onKnobDown(t,n)})),n.addEventListener("touchstart",(function(t){e._onKnobDown(t,n)}))};for(var n in this._knobs)t(n)}},{key:"_onKnobDown",value:function(e,t){e.preventDefault(),e.stopPropagation(),this._currentKnob=t,this._initialMousePosition=u.default.getEventPosition(e),this._startBeforeDrag=this._start.clone(),this._endBeforeDrag=this._end.clone(),document.addEventListener("mousemove",this._onKnobDrag),document.addEventListener("touchmove",this._onKnobDrag),document.addEventListener("mouseup",this._onKnobUp),document.addEventListener("touchend",this._onKnobUp)}},{key:"_onKnobDrag",value:function(e){e.preventDefault();var t=u.default.getEventPosition(e).subtract(this._initialMousePosition),n=this._currentKnob.dataset.corner,r=this._ui.canvas.size,i=this._startBeforeDrag.clone().multiply(r),o=this._endBeforeDrag.clone().multiply(r),a=void 0,s=void 0,c=void 0,l=void 0;switch(n){case"top-left":i.add(t),c=o.clone().subtract(this._minimumSize),i.clamp(null,c);break;case"top-right":o.x+=t.x,i.y+=t.y,o.x=Math.max(i.x+this._minimumSize.x,o.x),i.y=Math.min(o.y-this._minimumSize.y,i.y);break;case"bottom-right":o.add(t),l=i.clone().add(this._minimumSize),o.clamp(l);break;case"bottom-left":i.x+=t.x,o.y+=t.y,i.x=Math.min(o.x-this._minimumSize.x,i.x),o.y=Math.max(i.y+this._minimumSize.y,o.y)}if(this._start.copy(i).divide(r),this._end.copy(o).divide(r),this._start.clamp(0,1),this._end.clamp(0,1),null!==this._ratio)switch(n){case"top-left":s=(a=(this._end.x-this._start.x)*r.x)/this._ratio,this._start.y=this._end.y-s/r.y,this._start.y<=0&&(this._start.y=0,a=(s=(this._end.y-this._start.y)*r.y)*this._ratio,this._start.x=this._end.x-a/r.x);break;case"top-right":s=(a=(this._end.x-this._start.x)*r.x)/this._ratio,this._start.y=this._end.y-s/r.y,this._start.y<=0&&(this._start.y=0,a=(s=(this._end.y-this._start.y)*r.y)*this._ratio,this._end.x=this._start.x+a/r.x);break;case"bottom-right":s=(a=(this._end.x-this._start.x)*r.x)/this._ratio,this._end.y=this._start.y+s/r.y,this._end.y>=1&&(this._end.y=1,a=(s=(this._end.y-this._start.y)*r.y)*this._ratio,this._end.x=this._start.x+a/r.x);break;case"bottom-left":s=(a=(this._end.x-this._start.x)*r.x)/this._ratio,this._end.y=this._start.y+s/r.y,this._end.y>=1&&(this._end.y=1,a=(s=(this._end.y-this._start.y)*r.y)*this._ratio,this._start.x=this._end.x-a/r.x)}this._updateDOM()}},{key:"_onKnobUp",value:function(){this._currentKnob=null,document.removeEventListener("mousemove",this._onKnobDrag),document.removeEventListener("touchmove",this._onKnobDrag),document.removeEventListener("mouseup",this._onKnobUp),document.removeEventListener("touchend",this._onKnobUp)}},{key:"_handleCenter",value:function(){this._areas.centerCenter.addEventListener("mousedown",this._onCenterDown),this._areas.centerCenter.addEventListener("touchstart",this._onCenterDown)}},{key:"_onCenterDown",value:function(e){this._initialMousePosition=u.default.getEventPosition(e),this._startBeforeDrag=this._start.clone(),this._endBeforeDrag=this._end.clone(),document.addEventListener("mousemove",this._onCenterDrag),document.addEventListener("touchmove",this._onCenterDrag),document.addEventListener("mouseup",this._onCenterUp),document.addEventListener("touchend",this._onCenterUp)}},{key:"_onCenterDrag",value:function(e){var t=u.default.getEventPosition(e).subtract(this._initialMousePosition),n=this._ui.canvas.size,r=this._endBeforeDrag.clone().subtract(this._startBeforeDrag).clone().multiply(n),i=this._startBeforeDrag.clone().multiply(n),o=this._endBeforeDrag.clone().multiply(n);i.add(t);var a=n.clone().subtract(r);i.clamp(new c.default(0,0),a),o.copy(i).add(r),this._start.copy(i).divide(n),this._end.copy(o).divide(n),this._updateDOM()}},{key:"_onCenterUp",value:function(){document.removeEventListener("mousemove",this._onCenterDrag),document.removeEventListener("touchmove",this._onCenterDrag),document.removeEventListener("mouseup",this._onCenterUp),document.removeEventListener("touchend",this._onCenterUp)}},{key:"_onBack",value:function(){this._ui.canvas.setZoomLevel(this._initialZoomLevel,!1),this._operationExistedBefore?this._operation.set({start:this._initialStart,end:this._initialEnd}):this._ui.removeOperation("crop"),this._ui.canvas.render()}},{key:"_onDone",value:function(){this._operation.set({start:this._start,end:this._end}),this._ui.canvas.zoomToFit(!0),this._ui.addHistory(this._operation,{start:this._initialStart.clone(),end:this._initialEnd.clone()},this._operationExistedBefore)}},{key:"context",get:function(){var e=i(Object.getPrototypeOf(t.prototype),"context",this);return e.ratios=this._ratios,e}},{key:"selectedRatio",get:function(){return this._selectedRatio}}]),t}(s.default);l.prototype.identifier="crop",t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(n(93)),s=i(n(49)),c=i(n(5)),u=i(n(102)),l=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._controlsTemplate=function(e){return'<div class="imglykit-controls-icon"> <img src="'+e.helpers.assetPath("ui/night/blur/blur.png")+'" /></div><div> '+e.partials.slider+"</div>"+e.partials.doneButton},this._canvasControlsTemplate=function(e){return'<div class="imglykit-canvas-radial-blur-container"> <div class="imglykit-canvas-radial-blur-dot" id="imglykit-radial-blur-position"></div> <div class="imglykit-canvas-radial-blur-dot" id="imglykit-radial-blur-gradient"></div> <div class="imglykit-canvas-radial-blur-circle-container"> <div class="imglykit-canvas-radial-blur-circle"></div> </div></div>'},this._partialTemplates.slider=u.default.template,this._partialTemplates.slider.additionalContext={id:"imglykit-blur-radius-slider"}}},{key:"_onEnter",value:function(){var e=this;this._operationExistedBefore=!!this._ui.operations["radial-blur"],this._operation=this._ui.getOrCreateOperation("radial-blur"),this._initialSettings={position:this._operation.getPosition().clone(),gradientRadius:this._operation.getGradientRadius(),blurRadius:this._operation.getBlurRadius()},this._onPositionKnobDown=this._onPositionKnobDown.bind(this),this._onPositionKnobDrag=this._onPositionKnobDrag.bind(this),this._onPositionKnobUp=this._onPositionKnobUp.bind(this),this._onGradientKnobDown=this._onGradientKnobDown.bind(this),this._onGradientKnobDrag=this._onGradientKnobDrag.bind(this),this._onGradientKnobUp=this._onGradientKnobUp.bind(this),this._positionKnob=this._canvasControls.querySelector("#imglykit-radial-blur-position"),this._gradientKnob=this._canvasControls.querySelector("#imglykit-radial-blur-gradient"),this._circle=this._canvasControls.querySelector(".imglykit-canvas-radial-blur-circle"),this._handleKnobs(),this._initSliders(),this._ui.canvas.render().then((function(){e._updateDOM()}))}},{key:"_initSliders",value:function(){var e=this._controls.querySelector("#imglykit-blur-radius-slider");this._blurRadiusSlider=new u.default(e,{minValue:0,maxValue:40}),this._blurRadiusSlider.on("update",this._onBlurRadiusUpdate.bind(this)),this._blurRadiusSlider.setValue(this._initialSettings.blurRadius)}},{key:"_onBlurRadiusUpdate",value:function(e){this._operation.setBlurRadius(e),this._ui.canvas.render(),this._highlightDoneButton()}},{key:"_handleKnobs",value:function(){var e=this._ui.canvas.size,t=this._operation.getPosition().clone().multiply(e);this._gradientKnobPosition=t.clone().add(this._initialSettings.gradientRadius,0),this._positionKnob.addEventListener("mousedown",this._onPositionKnobDown),this._positionKnob.addEventListener("touchstart",this._onPositionKnobDown),this._gradientKnob.addEventListener("mousedown",this._onGradientKnobDown),this._gradientKnob.addEventListener("touchstart",this._onGradientKnobDown)}},{key:"_onPositionKnobDown",value:function(e){e.preventDefault();var t=this._ui.canvas.size;this._initialMousePosition=c.default.getEventPosition(e),this._initialPosition=this._operation.getPosition().clone(),this._gradientKnobDistance=this._gradientKnobPosition.clone().subtract(this._initialPosition.clone().multiply(t)),document.addEventListener("mousemove",this._onPositionKnobDrag),document.addEventListener("touchmove",this._onPositionKnobDrag),document.addEventListener("mouseup",this._onPositionKnobUp),document.addEventListener("touchend",this._onPositionKnobUp)}},{key:"_onPositionKnobDrag",value:function(e){e.preventDefault();var t=this._ui.canvas.size,n=c.default.getEventPosition(e).subtract(this._initialMousePosition),r=this._initialPosition.clone().multiply(t).add(n),i=t.clone().subtract(this._gradientKnobDistance);r.clamp(new s.default(0,0),i),this._gradientKnobPosition.copy(r).add(this._gradientKnobDistance),r.divide(t),this._operation.setPosition(r),this._updateDOM(),this._ui.canvas.render()}},{key:"_onPositionKnobUp",value:function(e){e.preventDefault(),document.removeEventListener("mousemove",this._onPositionKnobDrag),document.removeEventListener("touchmove",this._onPositionKnobDrag),document.removeEventListener("mouseup",this._onPositionKnobUp),document.removeEventListener("touchend",this._onPositionKnobUp)}},{key:"_onGradientKnobDown",value:function(e){e.preventDefault(),this._initialMousePosition=c.default.getEventPosition(e),this._initialGradientKnobPosition=this._gradientKnobPosition.clone(),document.addEventListener("mousemove",this._onGradientKnobDrag),document.addEventListener("touchmove",this._onGradientKnobDrag),document.addEventListener("mouseup",this._onGradientKnobUp),document.addEventListener("touchend",this._onGradientKnobUp)}},{key:"_onGradientKnobDrag",value:function(e){e.preventDefault();var t=this._ui.canvas.size,n=c.default.getEventPosition(e).subtract(this._initialMousePosition);this._gradientKnobPosition=this._initialGradientKnobPosition.clone().add(n),this._gradientKnobPosition.clamp(new s.default(0,0),t);var r=this._operation.getPosition().clone().multiply(t),i=this._gradientKnobPosition.clone().subtract(r),o=Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2));this._operation.setGradientRadius(o),this._updateDOM(),this._ui.canvas.render()}},{key:"_onGradientKnobUp",value:function(e){e.preventDefault(),document.removeEventListener("mousemove",this._onGradientKnobDrag),document.removeEventListener("touchmove",this._onGradientKnobDrag),document.removeEventListener("mouseup",this._onGradientKnobUp),document.removeEventListener("touchend",this._onGradientKnobUp)}},{key:"_updateDOM",value:function(){var e=this._ui.canvas.size,t=this._operation.getPosition().clone().multiply(e);this._positionKnob.style.left=t.x+"px",this._positionKnob.style.top=t.y+"px",this._gradientKnob.style.left=this._gradientKnobPosition.x+"px",this._gradientKnob.style.top=this._gradientKnobPosition.y+"px";var n=2*this._operation.getGradientRadius();this._circle.style.left=t.x+"px",this._circle.style.top=t.y+"px",this._circle.style.width=n+"px",this._circle.style.height=n+"px",this._circle.style.marginLeft="-"+n/2+"px",this._circle.style.marginTop="-"+n/2+"px"}},{key:"_onBack",value:function(){this._operationExistedBefore?this._operation.set(this._initialSettings):this._ui.removeOperation("radial-blur"),this._ui.canvas.render()}},{key:"_onDone",value:function(){this._ui.addHistory(this._operation,{position:this._initialSettings.position.clone(),gradientRadius:this._initialSettings.gradientRadius,blurRadius:this._initialSettings.blurRadius},this._operationExistedBefore)}}]),t}(a.default);l.prototype.identifier="radial-blur",t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(n(93)),s=i(n(49)),c=i(n(5)),u=i(n(102)),l=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._controlsTemplate=function(e){var t='<div class="imglykit-controls-icon"> <img src="'+e.helpers.assetPath("ui/night/blur/blur.png")+'" /></div><div> ';return t+=" "+e.partials.slider+"</div>"+e.partials.doneButton},this._canvasControlsTemplate=function(e){return'<div class="imglykit-canvas-tilt-shift-container"> <div class="imglykit-canvas-tilt-shift-dot" data-option="position"></div> <div class="imglykit-canvas-tilt-shift-dot" data-option="gradient"></div> <div class="imglykit-canvas-tilt-shift-rect-container"> <div class="imglykit-canvas-tilt-shift-rect"></div> </div></div>'},this._partialTemplates.slider=u.default.template,this._partialTemplates.slider.additionalContext={id:"imglykit-blur-radius-slider"},this._currentKnob=null}},{key:"_onEnter",value:function(){var e=this;this._operationExistedBefore=!!this._ui.operations["tilt-shift"],this._operation=this._ui.getOrCreateOperation("tilt-shift"),this._initialSettings={start:this._operation.getStart().clone(),end:this._operation.getEnd().clone(),gradientRadius:this._operation.getGradientRadius(),blurRadius:this._operation.getBlurRadius()},this._onPositionKnobDown=this._onPositionKnobDown.bind(this),this._onPositionKnobDrag=this._onPositionKnobDrag.bind(this),this._onPositionKnobUp=this._onPositionKnobUp.bind(this),this._onGradientKnobDown=this._onGradientKnobDown.bind(this),this._onGradientKnobDrag=this._onGradientKnobDrag.bind(this),this._onGradientKnobUp=this._onGradientKnobUp.bind(this);var t=".imglykit-canvas-tilt-shift-dot";this._positionKnob=this._canvasControls.querySelector(t+"[data-option='position']"),this._gradientKnob=this._canvasControls.querySelector(t+"[data-option='gradient']"),this._rect=this._canvasControls.querySelector(".imglykit-canvas-tilt-shift-rect"),this._initSliders(),this._ui.canvas.render().then((function(){e._handleKnobs(),e._updateDOM()}))}},{key:"_initSliders",value:function(){var e=this._controls.querySelector("#imglykit-blur-radius-slider");this._blurRadiusSlider=new u.default(e,{minValue:0,maxValue:40}),this._blurRadiusSlider.on("update",this._onBlurRadiusUpdate.bind(this)),this._blurRadiusSlider.setValue(this._initialSettings.blurRadius)}},{key:"_onBlurRadiusUpdate",value:function(e){this._operation.setBlurRadius(e),this._ui.canvas.render(),this._highlightDoneButton()}},{key:"_handleKnobs",value:function(){this._positionKnob.addEventListener("mousedown",this._onPositionKnobDown),this._positionKnob.addEventListener("touchstart",this._onPositionKnobDown),this._gradientKnob.addEventListener("mousedown",this._onGradientKnobDown),this._gradientKnob.addEventListener("touchstart",this._onGradientKnobDown);var e=this._ui.canvas.size,t=this._initialSettings,n=t.start,r=t.end;n=n.clone().multiply(e);var i=(r=r.clone().multiply(e)).clone().subtract(n),o=n.clone().add(i.clone().divide(2)),a=Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2)),s=i.clone().divide(a).divide(2);this._knobPosition=o.clone();var c=this._initialSettings.gradientRadius;this._gradientKnobPosition=o.clone().add(-c*s.y,c*s.x),this._updateStartAndEnd(),this._updateDOM(),this._ui.canvas.render()}},{key:"_updateStartAndEnd",value:function(){var e=this._ui.canvas.size,t=this._gradientKnobPosition.clone().subtract(this._knobPosition),n=this._knobPosition.clone().add(-t.y,t.x).divide(e),r=this._knobPosition.clone().add(t.y,-t.x).divide(e);this._operation.set({start:n,end:r})}},{key:"_onPositionKnobDown",value:function(e){e.preventDefault(),this._initialMousePosition=c.default.getEventPosition(e),this._initialPosition=this._knobPosition.clone(),this._initialDistanceToGradientKnob=this._gradientKnobPosition.clone().subtract(this._initialPosition),document.addEventListener("mousemove",this._onPositionKnobDrag),document.addEventListener("touchmove",this._onPositionKnobDrag),document.addEventListener("mouseup",this._onPositionKnobUp),document.addEventListener("touchend",this._onPositionKnobUp)}},{key:"_onPositionKnobDrag",value:function(e){e.preventDefault();var t=this._ui.canvas.size,n=c.default.getEventPosition(e).subtract(this._initialMousePosition),r=this._initialPosition.clone().add(n);this._knobPosition.copy(r);var i=(new s.default).subtract(this._initialDistanceToGradientKnob);i.clamp(new s.default(0,0));var o=t.clone().subtract(this._initialDistanceToGradientKnob);o.clamp(null,t),this._knobPosition.clamp(i,o),this._gradientKnobPosition.copy(this._knobPosition).add(this._initialDistanceToGradientKnob),this._updateStartAndEnd(),this._updateDOM(),this._ui.canvas.render()}},{key:"_onPositionKnobUp",value:function(e){e.preventDefault(),document.removeEventListener("mousemove",this._onPositionKnobDrag),document.removeEventListener("touchmove",this._onPositionKnobDrag),document.removeEventListener("mouseup",this._onPositionKnobUp),document.removeEventListener("touchend",this._onPositionKnobUp)}},{key:"_onGradientKnobDown",value:function(e){e.preventDefault(),this._initialMousePosition=c.default.getEventPosition(e),this._initialGradientKnobPosition=this._gradientKnobPosition.clone(),document.addEventListener("mousemove",this._onGradientKnobDrag),document.addEventListener("touchmove",this._onGradientKnobDrag),document.addEventListener("mouseup",this._onGradientKnobUp),document.addEventListener("touchend",this._onGradientKnobUp)}},{key:"_onGradientKnobDrag",value:function(e){e.preventDefault();var t=this._ui.canvas.size,n=c.default.getEventPosition(e).subtract(this._initialMousePosition);this._gradientKnobPosition.copy(this._initialGradientKnobPosition).add(n),this._gradientKnobPosition.clamp(new s.default(0,0),t);var r=this._gradientKnobPosition.clone().subtract(this._knobPosition),i=2*Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2));this._operation.setGradientRadius(i),this._updateStartAndEnd(),this._updateDOM(),this._ui.canvas.render()}},{key:"_onGradientKnobUp",value:function(e){e.preventDefault(),document.removeEventListener("mousemove",this._onGradientKnobDrag),document.removeEventListener("touchmove",this._onGradientKnobDrag),document.removeEventListener("mouseup",this._onGradientKnobUp),document.removeEventListener("touchend",this._onGradientKnobUp)}},{key:"_updateDOM",value:function(){var e=this._knobPosition;this._positionKnob.style.left=e.x+"px",this._positionKnob.style.top=e.y+"px";var t=this._gradientKnobPosition;this._gradientKnob.style.left=t.x+"px",this._gradientKnob.style.top=t.y+"px";var n=this._ui.canvas.size,r=this._operation.getGradientRadius(),i=new s.default(2*Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2)),r);this._rect.style.width=i.x+"px",this._rect.style.height=i.y+"px",this._rect.style.marginLeft="-"+i.x/2+"px",this._rect.style.marginTop="-"+i.y/2+"px",this._rect.style.left=e.x+"px",this._rect.style.top=e.y+"px";var o=t.clone().subtract(e),a=Math.atan2(o.x,o.y)*(180/Math.PI);this._rect.style.transform="rotate("+(-a).toFixed(2)+"deg)"}},{key:"_onBack",value:function(){this._operationExistedBefore?this._operation.set(this._initialSettings):this._ui.removeOperation("tilt-shift"),this._ui.canvas.render()}},{key:"_onDone",value:function(){this._ui.addHistory(this._operation,{start:this._initialSettings.start.clone(),end:this._initialSettings.end.clone(),blurRadius:this._initialSettings.blurRadius,gradientRadius:this._initialSettings.gradientRadius},this._operationExistedBefore)}}]),t}(a.default);l.prototype.identifier="tilt-shift",t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(n(93)),s=i(n(102)),c=i(n(103)),u=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._controlsTemplate=function(e){return"<div> "+e.partials.slider+'</div><div class="imglykit-controls-button"> '+e.partials.colorPicker+"</div>"+e.partials.doneButton},this._partialTemplates.slider=s.default.template,this._partialTemplates.colorPicker=c.default.template}},{key:"_renderControls",value:function(){this._partialTemplates.colorPicker.additionalContext={label:this._ui.translate("controls.frames.color")},function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),"_renderControls",this).call(this)}},{key:"_onEnter",value:function(){this._operationExistedBefore=!!this._ui.operations.frames,this._operation=this._ui.getOrCreateOperation("frames"),this._initialOptions={thickness:this._operation.getThickness(),color:this._operation.getColor()},this._ui.canvas.render();var e=this._controls.querySelector(".imglykit-slider");this._slider=new s.default(e,{minValue:0,maxValue:.5}),this._slider.on("update",this._onThicknessUpdate.bind(this)),this._slider.setValue(this._initialOptions.thickness);var t=this._controls.querySelector(".imglykit-color-picker");this._colorPicker=new c.default(this._ui,t),this._colorPicker.on("update",this._onColorUpdate.bind(this)),this._colorPicker.setValue(this._initialOptions.color)}},{key:"_onBack",value:function(){this._operationExistedBefore?this._operation.set(this._initialOptions):this._ui.removeOperation("frames"),this._ui.canvas.render()}},{key:"_onThicknessUpdate",value:function(e){this._operation.setThickness(e),this._ui.canvas.render(),this._highlightDoneButton()}},{key:"_onColorUpdate",value:function(e){this._operation.setColor(e),this._ui.canvas.render(),this._highlightDoneButton()}},{key:"_onDone",value:function(){this._ui.addHistory(this._operation,{color:this._initialOptions.color,thickness:this._initialOptions.thickness},this._operationExistedBefore)}}]),t}(a.default);u.prototype.identifier="frames",t.default=u,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(n(93)),s=i(n(49)),c=i(n(5)),u=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._controlsTemplate=function(e){var t='<div> <ul class="imglykit-controls-list imgly-controls-list-with-buttons"> ';for(var n in e.stickers){t+=" ";var r=e.stickers[n];t+=" ",t+=' <li data-identifier="'+n+'"',e.activeSticker===n&&(t+=' class="imglykit-controls-item-active"'),t+='> <canvas class="imglykit-controls-item-canvas" data-image="'+e.helpers.assetPath(r)+'"></canvas> </li> '}return t+=" </ul></div>"+e.partials.doneButton},this._canvasControlsTemplate=function(e){return'<div class="imglykit-canvas-stickers-container"> <div class="imglykit-canvas-stickers"> <img class="imglykit-canvas-sticker-image" /> <div class="imglykit-knob"></div> </div></div>'},this._availableStickers={},this._stickers={},this._addDefaultStickers(),this.selectStickers(null)}},{key:"_addDefaultStickers",value:function(){this.addSticker("glasses-nerd","stickers/sticker-glasses-nerd.png"),this.addSticker("glasses-normal","stickers/sticker-glasses-normal.png"),this.addSticker("glasses-shutter-green","stickers/sticker-glasses-shutter-green.png"),this.addSticker("glasses-shutter-yellow","stickers/sticker-glasses-shutter-yellow.png"),this.addSticker("glasses-sun","stickers/sticker-glasses-sun.png"),this.addSticker("hat-cap","stickers/sticker-hat-cap.png"),this.addSticker("hat-cylinder","stickers/sticker-hat-cylinder.png"),this.addSticker("hat-party","stickers/sticker-hat-party.png"),this.addSticker("hat-sheriff","stickers/sticker-hat-sheriff.png"),this.addSticker("heart","stickers/sticker-heart.png"),this.addSticker("mustache-long","stickers/sticker-mustache-long.png"),this.addSticker("mustache1","stickers/sticker-mustache1.png"),this.addSticker("mustache2","stickers/sticker-mustache2.png"),this.addSticker("mustache3","stickers/sticker-mustache3.png"),this.addSticker("pipe","stickers/sticker-pipe.png"),this.addSticker("snowflake","stickers/sticker-snowflake.png"),this.addSticker("star","stickers/sticker-star.png")}},{key:"addSticker",value:function(e,t){this._availableStickers[e]=t,this._stickers[e]=this._availableStickers[e],this._active&&this._renderControls()}},{key:"selectStickers",value:function(e){this._stickers={};for(var t=Object.keys(this._availableStickers),n=c.default.select(t,e),r=0;r<n.length;r++){var i=n[r];this._stickers[i]=this._availableStickers[i]}this._active&&this._renderControls()}},{key:"_onEnter",value:function(){var e=this;this._operationExistedBefore=!!this._ui.operations.stickers,this._operation=this._ui.getOrCreateOperation("stickers"),this._ui.removeOperation("stickers"),this._initialSettings={sticker:this._operation.getSticker(),position:this._operation.getPosition().clone(),size:this._operation.getSize().clone()};var t=this._ui.canvas.size;this._size=this._initialSettings.size.clone(),this._position=this._initialSettings.position.clone().multiply(t),this._initialZoomLevel=this._ui.canvas.zoomLevel,this._ui.canvas.zoomToFit(),this._container=this._canvasControls.querySelector(".imglykit-canvas-stickers"),this._stickerImage=this._canvasControls.querySelector("img"),this._stickerImage.addEventListener("load",(function(){e._stickerSize=new s.default(e._stickerImage.width,e._stickerImage.height),e._onStickerLoad()})),this._knob=this._canvasControls.querySelector("div.imglykit-knob"),this._onImageDown=this._onImageDown.bind(this),this._onImageDrag=this._onImageDrag.bind(this),this._onImageUp=this._onImageUp.bind(this),this._onKnobDown=this._onKnobDown.bind(this),this._onKnobDrag=this._onKnobDrag.bind(this),this._onKnobUp=this._onKnobUp.bind(this),this._renderListItems(),this._handleListItems(),this._handleImage(),this._handleKnob()}},{key:"_renderListItems",value:function(){var e=this,t=this._controls.querySelectorAll("li canvas");this._canvasItems=Array.prototype.slice.call(t);for(var n=function(t){var n=e._canvasItems[t];n.width=n.offsetWidth,n.height=n.offsetHeight;var r=n.getContext("2d"),i=n.dataset.image,o=document.createElement("img"),a=new s.default(n.width,n.height);o.addEventListener("load",(function(){var e=new s.default(o.width,o.height),t=c.default.resizeVectorToFit(e,a),n=a.clone().divide(2).subtract(t.clone().divide(2));r.drawImage(o,0,0,e.x,e.y,n.x,n.y,t.x,t.y)})),o.src=i},r=0;r<this._canvasItems.length;r++)n(r)}},{key:"_handleListItems",value:function(){var e=this,t=this._controls.querySelectorAll("li");this._listItems=Array.prototype.slice.call(t);for(var n=function(t){var n=e._listItems[t],r=n.dataset.identifier;n.addEventListener("click",(function(){e._onListItemClick(n)})),(!e._operationExistedBefore&&0===t||e._operationExistedBefore&&e._stickers[r]===e._initialSettings.sticker)&&e._onListItemClick(n,!1)},r=0;r<this._listItems.length;r++)n(r)}},{key:"_applySettings",value:function(){var e=this._stickerSize.y/this._stickerSize.x;this._size.y=this._size.x*e,this._stickerImage.style.width=this._size.x+"px",this._stickerImage.style.height=this._size.y+"px",this._container.style.left=this._position.x+"px",this._container.style.top=this._position.y+"px"}},{key:"_onBack",value:function(){this._operationExistedBefore?(this._operation=this._ui.getOrCreateOperation("stickers"),this._operation.set(this._initialSettings)):this._ui.removeOperation("stickers"),this._ui.canvas.setZoomLevel(this._initialZoomLevel)}},{key:"_onDone",value:function(){var e=this._ui.canvas.size,t=this._position.clone().divide(e),n=this._size.clone().divide(e);this._ui.canvas.setZoomLevel(this._initialZoomLevel,!1),this._operation=this._ui.getOrCreateOperation("stickers"),this._operation.set({sticker:this._availableStickers[this._sticker],position:t,size:n}),this._ui.canvas.render(),this._ui.addHistory(this,{sticker:this._initialSettings.sticker,position:this._initialSettings.position.clone(),size:this._initialSettings.size.clone()},this._operationExistedBefore)}},{key:"_handleKnob",value:function(){this._knob.addEventListener("mousedown",this._onKnobDown),this._knob.addEventListener("touchstart",this._onKnobDown)}},{key:"_onKnobDown",value:function(e){e.preventDefault(),this._initialMousePosition=c.default.getEventPosition(e),this._initialSize=this._size.clone(),document.addEventListener("mousemove",this._onKnobDrag),document.addEventListener("touchmove",this._onKnobDrag),document.addEventListener("mouseup",this._onKnobUp),document.addEventListener("touchend",this._onKnobUp)}},{key:"_onKnobDrag",value:function(e){e.preventDefault();var t=c.default.getEventPosition(e).clone().subtract(this._initialMousePosition),n=this._initialSize.clone(),r=this._stickerImage.height/this._stickerImage.width;n.x+=t.x,n.y=n.x*r,this._size.copy(n),this._applySettings(),this._highlightDoneButton()}},{key:"_onKnobUp",value:function(){document.removeEventListener("mousemove",this._onKnobDrag),document.removeEventListener("touchmove",this._onKnobDrag),document.removeEventListener("mouseup",this._onKnobUp),document.removeEventListener("touchend",this._onKnobUp)}},{key:"_handleImage",value:function(){this._stickerImage.addEventListener("mousedown",this._onImageDown),this._stickerImage.addEventListener("touchstart",this._onImageDown)}},{key:"_onImageDown",value:function(e){e.preventDefault(),this._initialMousePosition=c.default.getEventPosition(e),this._initialPosition=this._position.clone(),document.addEventListener("mousemove",this._onImageDrag),document.addEventListener("touchmove",this._onImageDrag),document.addEventListener("mouseup",this._onImageUp),document.addEventListener("touchend",this._onImageUp)}},{key:"_onImageDrag",value:function(e){e.preventDefault();var t=c.default.getEventPosition(e).clone().subtract(this._initialMousePosition),n=this._initialPosition.clone();n.add(t),this._position.copy(n),this._applySettings(),this._highlightDoneButton()}},{key:"_onImageUp",value:function(){document.removeEventListener("mousemove",this._onImageDrag),document.removeEventListener("touchmove",this._onImageDrag),document.removeEventListener("mouseup",this._onImageUp),document.removeEventListener("touchend",this._onImageUp)}},{key:"_onStickerLoad",value:function(){this._size=new s.default(this._stickerImage.width,this._stickerImage.height),void 0===this._position&&(this._position=new s.default(0,0)),this._applySettings()}},{key:"_onListItemClick",value:function(e){var t=void 0===arguments[1]||arguments[1];this._deactivateAllItems();var n=e.dataset.identifier,r=this._availableStickers[n];r=this._kit.getAssetPath(r);try{this._stickerImage.attributes.removeNamedItem("style")}catch(e){}this._sticker=n,this._stickerImage.src=r,e.classList.add("imglykit-controls-item-active"),t&&this._highlightDoneButton()}},{key:"_deactivateAllItems",value:function(){for(var e=0;e<this._listItems.length;e++)this._listItems[e].classList.remove("imglykit-controls-item-active")}},{key:"context",get:function(){var e=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),"context",this);return e.stickers=this._stickers,e}}]),t}(a.default);u.prototype.identifier="stickers",t.default=u,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}};function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(n(93)),c=o(n(103)),u=o(n(49)),l=o(n(5)),d=function(e){function t(){a(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"init",value:function(){this._controlsTemplate=function(e){var t='<div> <ul class="imglykit-controls-list imgly-controls-list-with-buttons"> ',n=e.fonts;if(n)for(var r,i=-1,o=n.length-1;i<o;)t+=' <li data-name="'+(r=n[i+=1]).name+'" data-weight="'+r.weight+'"> <canvas class="imglykit-controls-item-canvas"></canvas> </li> ';return t+=' </ul></div><div class="imglykit-controls-button"> '+e.partials.fgColorPicker+'</div><div class="imglykit-controls-button"> '+e.partials.bgColorPicker+"</div>"+e.partials.doneButton},this._canvasControlsTemplate=function(e){return'<div class="imglykit-canvas-text-container"> <div class="imglykit-canvas-text"> <div class="imglykit-crosshair"> <img src="'+e.helpers.assetPath("ui/night/crosshair.png")+'" /> </div> <div class="imglykit-canvas-text-textarea"> <textarea></textarea> <div class="imglykit-knob"></div> </div> </div></div>'},this._partialTemplates.fgColorPicker=c.default.template,this._partialTemplates.fgColorPicker.additionalContext={id:"imglykit-text-foreground-color-picker"},this._partialTemplates.bgColorPicker=c.default.template,this._partialTemplates.bgColorPicker.additionalContext={id:"imglykit-text-background-color-picker"},this._fonts=[],this._addFonts()}},{key:"_renderControls",value:function(){this._partialTemplates.fgColorPicker.additionalContext.label=this._ui.translate("controls.text.foreground"),this._partialTemplates.bgColorPicker.additionalContext.label=this._ui.translate("controls.text.background"),i(Object.getPrototypeOf(t.prototype),"_renderControls",this).call(this)}},{key:"_onEnter",value:function(){var e=this;this._operationExistedBefore=!!this._ui.operations.text,this._operation=this._ui.getOrCreateOperation("text"),this._ui.removeOperation("text");var t=this._ui.canvas.size;this._initialSettings={lineHeight:this._operation.getLineHeight(),fontSize:this._operation.getFontSize(),fontFamily:this._operation.getFontFamily(),fontWeight:this._operation.getFontWeight(),color:this._operation.getColor(),position:this._operation.getPosition(),text:this._operation.getText()||"",maxWidth:this._operation.getMaxWidth(),backgroundColor:this._operation.getBackgroundColor()},this._settings={lineHeight:this._initialSettings.lineHeight,fontSize:this._initialSettings.fontSize,fontFamily:this._initialSettings.fontFamily,fontWeight:this._initialSettings.fontWeight,color:this._initialSettings.color.clone(),position:this._initialSettings.position.clone().multiply(t),text:this._initialSettings.text,maxWidth:this._initialSettings.maxWidth*t.x,backgroundColor:this._initialSettings.backgroundColor.clone()},this._initialZoomLevel=this._ui.canvas.zoomLevel,this._container=this._canvasControls.querySelector(".imglykit-canvas-text"),this._textarea=this._canvasControls.querySelector("textarea"),this._textarea.focus(),this._moveKnob=this._canvasControls.querySelector(".imglykit-crosshair"),this._resizeKnob=this._canvasControls.querySelector(".imglykit-knob"),this._operationExistedBefore&&(this._settings.position.x-=2,this._settings.position.y-=2),this._onTextareaKeyUp=this._onTextareaKeyUp.bind(this),this._onResizeKnobDown=this._onResizeKnobDown.bind(this),this._onResizeKnobDrag=this._onResizeKnobDrag.bind(this),this._onResizeKnobUp=this._onResizeKnobUp.bind(this),this._onMoveKnobDown=this._onMoveKnobDown.bind(this),this._onMoveKnobDrag=this._onMoveKnobDrag.bind(this),this._onMoveKnobUp=this._onMoveKnobUp.bind(this),this._onForegroundColorUpdate=this._onForegroundColorUpdate.bind(this),this._onBackgroundColorUpdate=this._onBackgroundColorUpdate.bind(this),this._initColorPickers(),this._renderListItems(),this._handleListItems(),this._handleTextarea(),this._handleResizeKnob(),this._handleMoveKnob(),setTimeout((function(){e._resizeTextarea()}),1),this._ui.canvas.zoomToFit().then((function(){e._applySettings()}))}},{key:"_initColorPickers",value:function(){var e=this,t=this._controls.querySelector("#imglykit-text-foreground-color-picker");this._foregroundColorPicker=new c.default(this._ui,t),this._foregroundColorPicker.setValue(this._operation.getColor()),this._foregroundColorPicker.on("update",this._onForegroundColorUpdate),this._foregroundColorPicker.on("show",(function(){e._backgroundColorPicker.hide()}));var n=this._controls.querySelector("#imglykit-text-background-color-picker");this._backgroundColorPicker=new c.default(this._ui,n),this._backgroundColorPicker.setValue(this._operation.getBackgroundColor()),this._backgroundColorPicker.on("update",this._onBackgroundColorUpdate),this._backgroundColorPicker.on("show",(function(){e._foregroundColorPicker.hide()}))}},{key:"_renderListItems",value:function(){var e=this._controls.querySelectorAll("li canvas");this._canvasItems=Array.prototype.slice.call(e);for(var t=0;t<this._canvasItems.length;t++){var n=this._canvasItems[t];n.width=n.offsetWidth,n.height=n.offsetHeight;var r=n.parentNode,i=n.getContext("2d"),o=r.dataset.name,a=r.dataset.weight;i.font=a+" 30px "+o,i.textBaseline="middle",i.textAlign="center",i.fillStyle="white",i.fillText(o.substr(0,2),n.width/2,n.height/2)}}},{key:"_handleListItems",value:function(){var e=this,t=this._controls.querySelectorAll("li");this._listItems=Array.prototype.slice.call(t);for(var n=function(t){var n=e._listItems[t],r=n.dataset.name;n.addEventListener("click",(function(){e._onListItemClick(n)})),(!e._operationExistedBefore&&0===t||e._operationExistedBefore&&r===e._initialSettings.fontFamily)&&e._onListItemClick(n,!1)},r=0;r<this._listItems.length;r++)n(r)}},{key:"_handleTextarea",value:function(){this._textarea.addEventListener("keyup",this._onTextareaKeyUp)}},{key:"_onTextareaKeyUp",value:function(){this._resizeTextarea(),this._settings.text=this._textarea.value,this._highlightDoneButton()}},{key:"_resizeTextarea",value:function(){if(!this._textarea.scrollTop){var e=void 0,t=void 0;do{e=this._textarea.scrollHeight,t=this._textarea.offsetHeight,this._textarea.style.height=t-5+"px"}while(e&&e!==this._textarea.scrollHeight)}var n=this._textarea.scrollHeight;this._textarea.style.height=n+20+"px"}},{key:"_handleMoveKnob",value:function(){this._moveKnob.addEventListener("mousedown",this._onMoveKnobDown),this._moveKnob.addEventListener("touchstart",this._onMoveKnobDown)}},{key:"_onMoveKnobDown",value:function(e){e.preventDefault(),this._initialMousePosition=l.default.getEventPosition(e),this._initialPosition=this._settings.position.clone(),document.addEventListener("mousemove",this._onMoveKnobDrag),document.addEventListener("touchmove",this._onMoveKnobDrag),document.addEventListener("mouseup",this._onMoveKnobUp),document.addEventListener("tochend",this._onMoveKnobUp)}},{key:"_onMoveKnobDrag",value:function(e){e.preventDefault();var t=this._ui.canvas.size,n=l.default.getEventPosition(e).clone().subtract(this._initialMousePosition),r=new u.default(0,0),i=new u.default(this._container.offsetWidth,this._container.offsetHeight),o=t.clone().subtract(i),a=this._initialPosition.clone().add(n).clamp(r,o);this._settings.position=a,this._container.style.left=a.x+"px",this._container.style.top=a.y+"px"}},{key:"_onMoveKnobUp",value:function(){document.removeEventListener("mousemove",this._onMoveKnobDrag),document.removeEventListener("touchmove",this._onMoveKnobDrag),document.removeEventListener("mouseup",this._onMoveKnobUp),document.removeEventListener("touchend",this._onMoveKnobUp)}},{key:"_handleResizeKnob",value:function(){this._resizeKnob.addEventListener("mousedown",this._onResizeKnobDown),this._resizeKnob.addEventListener("touchstart",this._onResizeKnobDown)}},{key:"_onResizeKnobDown",value:function(e){e.preventDefault(),this._initialMousePosition=l.default.getEventPosition(e),this._initialMaxWidth=this._settings.maxWidth,document.addEventListener("mousemove",this._onResizeKnobDrag),document.addEventListener("touchmove",this._onResizeKnobDrag),document.addEventListener("mouseup",this._onResizeKnobUp),document.addEventListener("touchend",this._onResizeKnobUp)}},{key:"_onResizeKnobDrag",value:function(e){e.preventDefault();var t=this._ui.canvas.size,n=l.default.getEventPosition(e).subtract(this._initialMousePosition),r=this._settings.position.clone(),i=t.x-r.x,o=this._initialMaxWidth+n.x;o=Math.max(100,Math.min(i,o)),this._settings.maxWidth=o,this._textarea.style.width=o+"px",this._resizeTextarea()}},{key:"_onResizeKnobUp",value:function(){document.removeEventListener("mousemove",this._onResizeKnobDrag),document.removeEventListener("touchmove",this._onResizeKnobDrag),document.removeEventListener("mouseup",this._onResizeKnobUp),document.removeEventListener("touchend",this._onResizeKnobUp)}},{key:"_onForegroundColorUpdate",value:function(e){this._settings.color=e,this._applySettings(),this._highlightDoneButton()}},{key:"_onBackgroundColorUpdate",value:function(e){this._settings.backgroundColor=e,this._applySettings(),this._highlightDoneButton()}},{key:"_applySettings",value:function(){var e=this._textarea,t=this._settings,n=this._ui.canvas.size,r=t.fontSize*n.y;this._container.style.left=t.position.x+"px",this._container.style.top=t.position.y+"px",e.value=t.text,e.style.fontFamily=t.fontFamily,e.style.fontSize=r+"px",e.style.fontWeight=t.fontWeight,e.style.lineHeight=t.lineHeight,e.style.color=t.color.toRGBA(),e.style.backgroundColor=t.backgroundColor.toRGBA(),e.style.width=t.maxWidth+"px"}},{key:"_onListItemClick",value:function(e){var t=void 0===arguments[1]||arguments[1];this._deactivateAllItems();var n=e.dataset,r=n.name,i=n.weight;this._settings.fontFamily=r,this._settings.fontWeight=i,this._applySettings(),e.classList.add("imglykit-controls-item-active"),t&&this._highlightDoneButton()}},{key:"_deactivateAllItems",value:function(){for(var e=0;e<this._listItems.length;e++)this._listItems[e].classList.remove("imglykit-controls-item-active")}},{key:"_addFonts",value:function(){this.addFont("Helvetica","normal"),this.addFont("Lucida Grande","normal"),this.addFont("Times New Roman","normal")}},{key:"addFont",value:function(e,t){this._fonts.push({name:e,weight:t})}},{key:"_onDone",value:function(){var e=this._ui.canvas.size,t=new u.default(2,2),n=this._settings.position.clone().add(t).divide(e);this._ui.canvas.setZoomLevel(this._initialZoomLevel,!1),this._operation=this._ui.getOrCreateOperation("text"),this._operation.set({fontSize:this._settings.fontSize,fontFamily:this._settings.fontFamily,fontWeight:this._settings.fontWeight,color:this._settings.color,backgroundColor:this._settings.backgroundColor,position:n,text:this._settings.text,maxWidth:this._settings.maxWidth/e.x}),this._ui.canvas.render(),this._ui.addHistory(this,{fontFamily:this._initialSettings.fontFamily,fontWeight:this._initialSettings.fontWeight,color:this._initialSettings.color.clone(),backgroundColor:this._initialSettings.backgroundColor.clone(),position:this._initialSettings.position.clone(),text:this._initialSettings.text,maxWidth:this._initialSettings.maxWidth},this._operationExistedBefore)}},{key:"_onBack",value:function(){this._operationExistedBefore?(this._operation=this._ui.getOrCreateOperation("text"),this._operation.set(this._initialSettings)):this._ui.removeOperation("text"),this._ui.canvas.setZoomLevel(this._initialZoomLevel)}},{key:"context",get:function(){var e=i(Object.getPrototypeOf(t.prototype),"context",this);return e.fonts=this._fonts,e}}]),t}(s.default);d.prototype.identifier="text",t.default=d,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(100)),a=i(n(72)),s=i(n(5)),c=i(n(80)),u=i(n(58)),l=function(e){function t(e,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this._kit=e,this._ui=n,this._operation=r,this._helpers=new o.default(this._kit,this._ui,this._ui.options),this._partialTemplates={doneButton:function(e){return'<div class="imglykit-controls-button imglykit-controls-done"> <img src="'+e.helpers.assetPath("ui/night/buttons/done.png")+'" /> <div class="imglykit-controls-done-highlighted"> <img src="'+e.helpers.assetPath("ui/night/buttons/done-highlighted.png")+'" /> </div></div>'}},this._template=function(e){return'<div class="imglykit-controls-'+e.identifier+'"> <div class="imglykit-controls-button imglykit-controls-back"> <img src="'+e.helpers.assetPath("ui/night/buttons/back.png")+'" /> </div> '+e.partials.control+"</div>"},this._active=!1,this.init()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"setContainers",value:function(e,t){this._controlsContainer=e,this._canvasControlsContainer=t}},{key:"init",value:function(){}},{key:"_renderAllControls",value:function(){this._renderControls(),this._renderCanvasControls(),this._initScrollbar()}},{key:"_renderControls",value:function(){if(void 0===this._controlsTemplate)throw new Error("Control#_renderOverviewControls: Control needs to define this._controlsTemplate.");var e=this._template(this._context);void 0!==this._controls&&null!==this._controls.parentNode&&this._controls.parentNode.removeChild(this._controls),this._controls=document.createElement("div"),this._controls.innerHTML=e,this._controlsContainer.appendChild(this._controls)}},{key:"_renderCanvasControls",value:function(){if(void 0!==this._canvasControlsTemplate){var e=this._canvasControlsTemplate(this._context);this._canvasControls=document.createElement("div"),this._canvasControls.innerHTML=e,this._canvasControlsContainer.appendChild(this._canvasControls)}}},{key:"_initScrollbar",value:function(){var e=this._controls.querySelector(".imglykit-controls-list");e&&(this._scrollbar=new c.default(e.parentNode))}},{key:"_removeControls",value:function(){this._controls.parentNode.removeChild(this._controls),this._canvasControls&&this._canvasControls.parentNode.removeChild(this._canvasControls),this._scrollbar&&this._scrollbar.remove()}},{key:"_handleBackAndDoneButtons",value:function(){this._backButton=this._controls.querySelector(".imglykit-controls-back"),this._backButton&&this._backButton.addEventListener("click",this._onBackButtonClick.bind(this)),this._doneButton=this._controls.querySelector(".imglykit-controls-done"),this._doneButton&&this._doneButton.addEventListener("click",this._onDoneButtonClick.bind(this))}},{key:"_onBackButtonClick",value:function(){this._onBack(),this.emit("back")}},{key:"_onDoneButtonClick",value:function(){this._onDone(),this.emit("back")}},{key:"_highlightDoneButton",value:function(){this._doneButton.classList.add("highlighted")}},{key:"enter",value:function(){this._active=!0,this._ui.hideZoom(),this._renderAllControls(),this._handleBackAndDoneButtons(),this._enableCanvasControls(),this._onEnter()}},{key:"leave",value:function(){this._active=!1,this._ui.showZoom(),this._removeControls(),this._disableCanvasControls(),this._onLeave()}},{key:"_enableCanvasControls",value:function(){this._canvasControlsContainer.classList.remove("imglykit-canvas-controls-disabled")}},{key:"_disableCanvasControls",value:function(){this._canvasControlsContainer.classList.add("imglykit-canvas-controls-disabled")}},{key:"_onEnter",value:function(){}},{key:"_onLeave",value:function(){}},{key:"_onBack",value:function(){}},{key:"_onDone",value:function(){}},{key:"onZoom",value:function(){}},{key:"_context",get:function(){var e=this.context;for(var t in(e=s.default.extend(e,{helpers:this._helpers,identifier:this.identifier})).partials={},this._partialTemplates){var n=this._partialTemplates[t],r=s.default.extend({},e,n.additionalContext||{});e.partials[t]=n(r)}return e.partials.control=this._controlsTemplate(e),e}},{key:"context",get:function(){return{}}}]),t}(a.default);l.prototype.identifier=null,l.extend=u.default,t.default=l,e.exports=t.default},function(e,t,n){e.exports={operations:{brightness:"Brightness",contrast:"Contrast",filters:"Filters",flip:"Flip",frames:"Frames","radial-blur":"Radial Blur",rotation:"Rotation",saturation:"Saturation",stickers:"Stickers",text:"Text","tilt-shift":"Tilt-Shift",crop:"Crop"},"top-controls":{new:"New",undo:"Undo",export:"Export",zoom:"Zoom"},splash:{upload:{headline:"Upload a picture",description:"Click here to upload a picture from your library or just drag and drop"},or:"or",webcam:{headline:"Take a picture",description:"Click here to take a picture with your webcam or phone"}},generic:{loading:"Loading",exporting:"Exporting",color:"Color"},controls:{frames:{color:"Color"},text:{foreground:"Foreground",background:"Background"}}}},function(e,t,n){e.exports={operations:{brightness:"Helligkeit",contrast:"Kontrast",filters:"Filter",flip:"Spiegeln",frames:"Rahmen","radial-blur":"Radial Blur",rotation:"Drehung",saturation:"Sättigung",stickers:"Sticker",text:"Text","tilt-shift":"Tilt-Shift",crop:"Zuschneiden"},"top-controls":{new:"Neu",undo:"Rückgängig",export:"Exportieren",zoom:"Zoom"},splash:{upload:{headline:"Bild hochladen",description:"Klicke hier, um ein Bild hochzuladen oder ziehe eine Bilddatei hier her"},or:"oder",webcam:{headline:"Foto machen",description:"Klicke hier, um ein Foto mit deiner Webcam oder deinem Smartphone zu machen"}},generic:{loading:"Laden",exporting:"Exportiere"},controls:{frames:{color:"Farbe"},text:{foreground:"Text",background:"Hintergrund"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(49)),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this._canvas=n||this.createCanvas(),n||this.setSize(e),this._context=this._getContext(),this._cache={}}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:"cache",value:function(e){}},{key:"drawCached",value:function(e){}},{key:"createCanvas",value:function(e,t){var r;return r="undefined"!=typeof window?document.createElement("canvas"):new(n(52)),void 0!==e&&(r.width=e),void 0!==t&&(r.height=t),r}},{key:"getSize",value:function(){return new o.default(this._canvas.width,this._canvas.height)}},{key:"setSize",value:function(e){this._canvas.width=e.x,this._canvas.height=e.y}},{key:"_getContext",value:function(){throw new Error("Renderer#_getContext is abstract and not implemented in inherited class.")}},{key:"resizeTo",value:function(e){throw new Error("Renderer#resizeTo is abstract and not implemented in inherited class.")}},{key:"drawImage",value:function(e){throw new Error("Renderer#drawImage is abstract and not implemented in inherited class.")}},{key:"renderFinal",value:function(){}},{key:"getCanvas",value:function(){return this._canvas}},{key:"getContext",value:function(){return this._context}},{key:"setCanvas",value:function(e){this._canvas=e,this._context=this._getContext(),this.emit("new-canvas",this._canvas)}},{key:"setContext",value:function(e){this._context=e}},{key:"reset",value:function(){}},{key:"identifier",get:function(){return null}}],[{key:"isSupported",value:function(){throw new Error("Renderer#isSupported is abstract and not implemented in inherited class.")}}]),t}(i(n(72)).default);t.default=a,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.default={encode:function(e){var t="",n=void 0,i=void 0,o="",a=void 0,s=void 0,c=void 0,u="",l=0;do{a=(n=e[l++])>>2,s=(3&n)<<4|(i=e[l++])>>4,c=(15&i)<<2|(o=e[l++])>>6,u=63&o,isNaN(i)?c=u=64:isNaN(o)&&(u=64),t=t+r.charAt(a)+r.charAt(s)+r.charAt(c)+r.charAt(u),n=i=o="",a=s=c=u=""}while(l<e.length);return t},decode:function(e){var t=void 0,n=void 0,i="",o=void 0,a=void 0,s="",c=0,u=[];if(/[^A-Za-z0-9\+\/\=]/g.exec(e))throw new Error("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding.");e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=r.indexOf(e.charAt(c++))<<2|(o=r.indexOf(e.charAt(c++)))>>4,n=(15&o)<<4|(a=r.indexOf(e.charAt(c++)))>>2,i=(3&a)<<6|(s=r.indexOf(e.charAt(c++))),u.push(t),64!==a&&u.push(n),64!==s&&u.push(i),t=n=i="",o=a=s=""}while(c<e.length);return u}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this._glslPrograms={},this._options=t}return r(e,[{key:"render",value:function(e){"webgl"===e.identifier?this.renderWebGL(e):this.renderCanvas(e)}},{key:"renderWebGL",value:function(e){throw new Error("Primitive#renderWebGL is abstract and not implemented in inherited class.")}},{key:"renderCanvas",value:function(e){throw new Error("Primitive#renderCanvas is abstract and not implemented in inherited class.")}},{key:"options",get:function(){return this._options}}]),e}();t.default=i,e.exports=t.default},function(e,t,n){var r;(function(i,o){

/*!

* Native Promise Only
* v0.8.0-a (c) Kyle Simpson
* MIT License: http://getify.mit-license.org
* @license
*/

“use strict”;var a,s,c;c=function(){var e,t,n,r=Object.prototype.toString,i=void 0!==o?function(e){return o(e)}:setTimeout;try{Object.defineProperty({},“x”,{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e=n,e}}function a(e,r){n.add(e,r),t||(t=i(n.drain))}function s(e){var t,n=typeof e;return null==e||“object”!=n&&“function”!=n||(t=e.then),“function”==typeof t&&t}function c(){for(var e=0;e.success:this.chain.failure,this.chain);this.chain.length=0}function u(e,t,n){var r,i;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError(“Promise-chain cycle”)):(i=s®)?i.call(r,n.resolve,n.reject):n.resolve®}catch(e){n.reject(e)}}function l(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=s(e))?a((function(){var r=new f(n);try{t.call(e,(function(){l.apply(r,arguments)}),(function(){d.apply(r,arguments)}))}catch(e){d.call(r,e)}})):(n.msg=e,n.state=1,n.chain.length>0&&a(c,n))}catch(e){d.call(new f(n),e)}}}function d(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&a(c,t))}function p(e,t,n,r){for(var i=0;i<t.length;i++)!function(i){e.resolve(t).then((function(e){n(i,e)}),r)}(i)}function f(e){this.def=e,this.triggered=!1}function h(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(e){if(“function”!=typeof e)throw TypeError(“Not a function”);if(0!==this.__NPO__)throw TypeError(“Not a promise”);this.__NPO__=1;var t=new h(this);this.then=function(e,n){var r={success:“function”!=typeof e||e,failure:“function”==typeof n&&n};return r.promise=new this.constructor((function(e,t){if(“function”!=typeof e||“function”!=typeof t)throw TypeError(“Not a function”);r.resolve=e,r.reject=t})),t.chain.push®,0!==t.state&&a(c,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){l.call(t,e)}),(function(e){d.call(t,e)}))}catch(e){d.call(t,e)}}n=function(){var e,n,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,o){r=new i(t,o),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var _=e({},“constructor”,m,!1);return m.prototype=_,e(_,“__NPO__”,0,!1),e(m,“resolve”,(function(e){return e&&“object”==typeof e&&1===e.__NPO__?e:new this((function(t,n){if(“function”!=typeof t||“function”!=typeof n)throw TypeError(“Not a function”);t(e)}))})),e(m,“reject”,(function(e){return new this((function(t,n){if(“function”!=typeof t||“function”!=typeof n)throw TypeError(“Not a function”);n(e)}))})),e(m,“all”,(function(e){var t=this;return“[object Array]”!=r.call(e)?t.reject(TypeError(“Not an array”)):0===e.length?t.resolve([]):new t((function(n,r){if(“function”!=typeof n||“function”!=typeof r)throw TypeError(“Not a function”);var i=e.length,o=Array(i),a=0;p(t,e,(function(e,t){o=t,++a===i&&n(o)}),r)}))})),e(m,“race”,(function(e){var t=this;return“[object Array]”!=r.call(e)?t.reject(TypeError(“Not an array”)):new t((function(n,r){if(“function”!=typeof n||“function”!=typeof r)throw TypeError(“Not a function”);p(t,e,(function(e,t){n(t)}),r)}))})),m},(s=void 0!==i?i:void 0)=s||c(),void 0!==e&&e.exports?e.exports=s:void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}).call(t,function(){return this}(),n(104).setImmediate)},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this._kit=t,this._ui=n,this._options=r}return r(e,[{key:“assetPath”,value:function(e){var t=this._options.assetsUrl+“/”+e,n=this._ui.options.ui.assetPathResolver;return void 0!==n&&(t=n(t)),t}},{key:“translate”,value:function(e){return this._ui.translate(e)}}]),e}();t.default=i,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(72)),a=i(n(5)),s=i(n(49)),c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,t),function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),“constructor”,this).call(this),this._element=e,this._options=a.default.defaults(n,{minValue:0,maxValue:1,defaultValue:0}),this._value=this._options.defaultValue,this._sliderElement=this._element.querySelector(“.imglykit-slider-slider”),this._dotElement=this._element.querySelector(“.imglykit-slider-dot”),this._centerDotElement=this._element.querySelector(“.imglykit-slider-center-dot”),this._fillElement=this._element.querySelector(“.imglykit-slider-fill”),this._backgroundElement=this._element.querySelector(“.imglykit-slider-background”),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onCenterDotClick=this._onCenterDotClick.bind(this),this._onBackgroundClick=this._onBackgroundClick.bind(this),this._backgroundElement.addEventListener(“click”,this._onBackgroundClick),this._fillElement.addEventListener(“click”,this._onBackgroundClick),this._handleDot()}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“setValue”,value:function(e){this._value=e;var t=this._options,n=t.maxValue,r=t.minValue,i=(e-r)/(n-r),o=this._sliderElement.offsetWidth;this._setX(o*i)}},{key:“_setX”,value:function(e){this._xPosition=e,this._dotElement.style.left=e+“px”;var t=this._sliderElement.offsetWidth/2,n=e-t;this._fillElement.style.width=Math.abs(n)+“px”,this._fillElement.style.left=n<0?t-Math.abs(n)+“px”:t+“px”}},{key:“_handleDot”,value:function(){this._dotElement.addEventListener(“mousedown”,this._onMouseDown),this._dotElement.addEventListener(“touchstart”,this._onMouseDown),this._centerDotElement&&this._centerDotElement.addEventListener(“click”,this._onCenterDotClick)}},{key:“_onCenterDotClick”,value:function(){this.setValue(this._options.defaultValue),this.emit(“update”,this._value)}},{key:“_onBackgroundClick”,value:function(e){var t=a.default.getEventPosition(e),n=this._sliderElement.getBoundingClientRect();n=new s.default(n.left,n.y);var r=t.clone().subtract(n);this._setX(r.x),this._updateValue()}},{key:“_onMouseDown”,value:function(e){if(“mousedown”!==e.type||0===e.button){e.preventDefault();var t=a.default.getEventPosition(e);document.addEventListener(“mousemove”,this._onMouseMove),document.addEventListener(“touchmove”,this._onMouseMove),document.addEventListener(“mouseup”,this._onMouseUp),document.addEventListener(“touchend”,this._onMouseUp);var n=this._dotElement.getBoundingClientRect(),r=this._sliderElement.getBoundingClientRect();this._initialSliderX=n.left-r.left,this._initialMousePosition=t}}},{key:“_onMouseMove”,value:function(e){e.preventDefault();var t=a.default.getEventPosition(e).subtract(this._initialMousePosition),n=.5*this._dotElement.offsetWidth,r=this._initialSliderX+t.x+n,i=this._sliderElement.offsetWidth;r=Math.max(0,Math.min(r,i)),this._setX®,this._updateValue()}},{key:“_updateValue”,value:function(){var e=this._sliderElement.offsetWidth,t=this._options,n=t.minValue,r=n+(t.maxValue-n)*(this._xPosition/e);this.emit(“update”,r)}},{key:“_onMouseUp”,value:function(){document.removeEventListener(“mousemove”,this._onMouseMove),document.removeEventListener(“touchmove”,this._onMouseMove),document.removeEventListener(“mouseup”,this._onMouseUp),document.removeEventListener(“touchend”,this._onMouseUp)}}],[{key:“template”,get:function(){return function(e){return'<div class=“imglykit-slider” id=“'+(void 0===e.id?”“:e.id)+'”> <div class=“imglykit-slider-minus”> <img src=“'+e.helpers.assetPath(”ui/night/slider/minus.png“)+'” /> </div> <div class=“imglykit-slider-slider”> <div class=“imglykit-slider-content”> <div class=“imglykit-slider-background”></div> <div class=“imglykit-slider-fill”></div> <div class=“imglykit-slider-center-dot”></div> <div class=“imglykit-slider-dot”></div> </div> </div> <div class=“imglykit-slider-plus”> <img src=“'+e.helpers.assetPath(”ui/night/slider/plus.png“)+'” /> </div></div>'}}}]),t}(o.default);t.default=c,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var o,a=n(101),s=function(e){function t(){i(this,t),null!=e&&e.apply(this,arguments)}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,,[{key:“template”,get:function(){return function(e){return'<div class=“imglykit-slider” id=“'+(void 0===e.id?”“:e.id)+'”> <div class=“imglykit-slider-minus”> <img src=“'+e.helpers.assetPath(”ui/night/slider/minus.png“)+'” /> </div> <div class=“imglykit-slider-slider”> <div class=“imglykit-slider-content”> <div class=“imglykit-slider-background”></div> <div class=“imglykit-slider-fill”></div> <div class=“imglykit-slider-dot”></div> </div> </div> <div class=“imglykit-slider-plus”> <img src=“'+e.helpers.assetPath(”ui/night/slider/plus.png“)+'” /> </div></div>'}}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);t.default=s,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(72)),a=i(n(5)),s=i(n(6)),c=i(n(49)),u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,t),function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;u=c=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if(“value”in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,n=a,r=!0}}(Object.getPrototypeOf(t.prototype),“constructor”,this).call(this),this._ui=e,this._element=n,this._visible=!1,this._loaded=!1,this._overlay=this._element.querySelector(“.imglykit-color-picker-overlay”),this._currentColorCanvas=this._element.querySelector(“.imglykit-color-picker-color”),this._alphaCanvas=this._element.querySelector(“canvas.imglykit-color-picker-alpha”),this._alphaKnob=this._element.querySelector(“.imglykit-color-picker-alpha-container .imglykit-transparent-knob”),this._hueCanvas=this._element.querySelector(“canvas.imglykit-color-picker-hue”),this._hueKnob=this._element.querySelector(“.imglykit-color-picker-hue-container .imglykit-transparent-knob”),this._saturationCanvas=this._element.querySelector(“canvas.imglykit-color-picker-saturation”),this._saturationKnob=this._element.querySelector(“.imglykit-color-picker-saturation-container .imglykit-transparent-knob”),this._transparencyImage=new Image,this._transparencyImage.src=e.helpers.assetPath(“ui/night/transparency.png”),this._transparencyImage.addEventListener(“load”,this._onTransparencyImageLoad.bind(this)),this._onAlphaCanvasDown=this._onAlphaCanvasDown.bind(this),this._onAlphaCanvasDrag=this._onAlphaCanvasDrag.bind(this),this._onAlphaCanvasUp=this._onAlphaCanvasUp.bind(this),this._onHueCanvasDown=this._onHueCanvasDown.bind(this),this._onHueCanvasDrag=this._onHueCanvasDrag.bind(this),this._onHueCanvasUp=this._onHueCanvasUp.bind(this),this._onSaturationCanvasDown=this._onSaturationCanvasDown.bind(this),this._onSaturationCanvasDrag=this._onSaturationCanvasDrag.bind(this),this._onSaturationCanvasUp=this._onSaturationCanvasUp.bind(this),this._onElementClick=this._onElementClick.bind(this),this._handleToggle(),this._handleAlphaKnob(),this._handleHueKnob(),this._handleSaturationKnob()}return function(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),r(t,[{key:“_onTransparencyImageLoad”,value:function(){this._loaded=!0,this._render()}},{key:“_handleToggle”,value:function(){this._element.addEventListener(“click”,this._onElementClick)}},{key:“_onElementClick”,value:function(e){e.target!==this._element&&e.target!==this._currentColorCanvas||(this._visible?(this.hide(),this.emit(“hide”)):(this.show(),this.emit(“show”)))}},{key:“hide”,value:function(){this._overlay.classList.remove(“imglykit-visible”),this._visible=!1}},{key:“show”,value:function(){this._overlay.classList.add(“imglykit-visible”),this._visible=!0}},{key:“setValue”,value:function(e){this._value=e.clone();var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}(this._value.toHSV(),3),n=t,r=t,i=t;this._hsvColor={h:n,s:r,v:i},this._positionKnobs(),this._render()}},{key:“_positionKnobs”,value:function(){this._positionAlphaKnob(),this._positionHueKnob(),this._positionSaturationKnob()}},{key:“_positionAlphaKnob”,value:function(){var e=this._alphaCanvas,t=new c.default(e.width,e.height),n=this._value.a*t.x;this._alphaKnob.style.left=n+“px”}},{key:“_positionHueKnob”,value:function(){var e=this._hueCanvas,t=new c.default(e.width,e.height),n=this._hsvColor.h*t.y;this._hueKnob.style.top=n+“px”}},{key:“_positionSaturationKnob”,value:function(){var e=this._saturationCanvas,t=new c.default(e.width,e.height),n=this._hsvColor.s*t.x;this._saturationKnob.style.left=n+“px”;var r=(1-this._hsvColor.v)*t.y;this._saturationKnob.style.top=r+“px”}},{key:“_render”,value:function(){this._loaded&&(this._renderCurrentColor(),this._renderAlpha(),this._renderHue(),this._renderSaturation())}},{key:“_renderCurrentColor”,value:function(){var e=this._currentColorCanvas,t=e.getContext(“2d”),n=t.createPattern(this._transparencyImage,“repeat”);t.rect(0,0,e.width,e.height),t.fillStyle=n,t.fill(),t.fillStyle=this._value.toRGBA(),t.fill()}},{key:“_renderAlpha”,value:function(){var e=this._alphaCanvas,t=e.getContext(“2d”),n=t.createPattern(this._transparencyImage,“repeat”);t.rect(0,0,e.width,e.height),t.fillStyle=n,t.fill();var r=t.createLinearGradient(0,0,e.width,e.height),i=this._value.clone();i.a=0,r.addColorStop(0,i.toRGBA()),r.addColorStop(1,this._value.toHex()),t.fillStyle=r,t.fill()}},{key:“_renderHue”,value:function(){for(var e=this._hueCanvas,t=e.getContext(“2d”),n=new s.default,r=0;r<e.height;r++){var i=r/e.height;n.fromHSV(i,1,1),t.strokeStyle=n.toRGBA(),t.beginPath(),t.moveTo(0,r),t.lineTo(e.width,r),t.stroke()}}},{key:“_renderSaturation”,value:function(){for(var e=this._saturationCanvas,t=e.getContext(“2d”),n=t.getImageData(0,0,e.width,e.height),r=new s.default(1,0,0,1),i=0;i<e.height;i++)for(var o=(e.height-i)/e.height,a=0;a<e.width;a++){var c=a/e.width;r.fromHSV(this._hsvColor.h,c,o);var u=r.r,l=r.g,d=r.b,p=r.a,f=4*(i*e.width+a);n.data=255*u,n.data=255*l,n.data=255*d,n.data=255*p}t.putImageData(n,0,0)}},{key:“_handleAlphaKnob”,value:function(){this._alphaCanvas.addEventListener(“mousedown”,this._onAlphaCanvasDown),this._alphaCanvas.addEventListener(“touchstart”,this._onAlphaCanvasDown)}},{key:“_onAlphaCanvasDown”,value:function(e){e.preventDefault(),this._onAlphaCanvasDrag(e),document.addEventListener(“mousemove”,this._onAlphaCanvasDrag),document.addEventListener(“touchmove”,this._onAlphaCanvasDrag),document.addEventListener(“mouseup”,this._onAlphaCanvasUp),document.addEventListener(“touchend”,this._onAlphaCanvasUp)}},{key:“_onAlphaCanvasDrag”,value:function(e){e.preventDefault();var t=this._alphaCanvas,n=new c.default(t.width,t.height),r=a.default.getEventPosition(e),i=t.getBoundingClientRect(),o=i.left,s=i.top,u=new c.default(o,s),l=r.subtract(u);l.clamp(new c.default(0,0),n),this._alphaKnob.style.left=l.x+“px”,this._value.a=l.x/n.x,this._updateColor()}},{key:“_onAlphaCanvasUp”,value:function(){document.removeEventListener(“mousemove”,this._onAlphaCanvasDrag),document.removeEventListener(“touchmove”,this._onAlphaCanvasDrag),document.removeEventListener(“mouseup”,this._onAlphaCanvasUp),document.removeEventListener(“touchend”,this._onAlphaCanvasUp)}},{key:“_handleHueKnob”,value:function(){this._hueCanvas.addEventListener(“mousedown”,this._onHueCanvasDown),this._hueCanvas.addEventListener(“touchstart”,this._onHueCanvasDown)}},{key:“_onHueCanvasDown”,value:function(e){e.preventDefault(),this._onHueCanvasDrag(e),document.addEventListener(“mousemove”,this._onHueCanvasDrag),document.addEventListener(“touchmove”,this._onHueCanvasDrag),document.addEventListener(“mouseup”,this._onHueCanvasUp),document.addEventListener(“touchend”,this._onHueCanvasUp)}},{key:“_onHueCanvasDrag”,value:function(e){e.preventDefault();var t=this._hueCanvas,n=new c.default(t.width,t.height),r=a.default.getEventPosition(e),i=t.getBoundingClientRect(),o=i.left,s=i.top,u=new c.default(o,s),l=r.subtract(u);l.clamp(new c.default(0,0),n),this._hueKnob.style.top=l.y+“px”,l.divide(n),this._hsvColor.h=l.y,this._updateColor()}},{key:“_onHueCanvasUp”,value:function(){document.removeEventListener(“mousemove”,this._onHueCanvasDrag),document.removeEventListener(“touchmove”,this._onHueCanvasDrag),document.removeEventListener(“mouseup”,this._onHueCanvasUp),document.removeEventListener(“touchend”,this._onHueCanvasUp)}},{key:“_handleSaturationKnob”,value:function(){this._saturationCanvas.addEventListener(“mousedown”,this._onSaturationCanvasDown),this._saturationCanvas.addEventListener(“touchstart”,this._onSaturationCanvasDown)}},{key:“_onSaturationCanvasDown”,value:function(e){e.preventDefault(),this._onSaturationCanvasDrag(e),document.addEventListener(“mousemove”,this._onSaturationCanvasDrag),document.addEventListener(“touchmove”,this._onSaturationCanvasDrag),document.addEventListener(“mouseup”,this._onSaturationCanvasUp),document.addEventListener(“touchend”,this._onSaturationCanvasUp)}},{key:“_onSaturationCanvasDrag”,value:function(e){e.preventDefault();var t=this._saturationCanvas,n=new c.default(t.width,t.height),r=a.default.getEventPosition(e),i=t.getBoundingClientRect(),o=i.left,s=i.top,u=new c.default(o,s),l=r.subtract(u);l.clamp(0,t.width),this._saturationKnob.style.left=l.x+“px”,this._saturationKnob.style.top=l.y+“px”,l.divide(n),this._hsvColor.s=l.x,this._hsvColor.v=1-l.y,this._updateColor()}},{key:“_onSaturationCanvasUp”,value:function(){document.removeEventListener(“mousemove”,this._onSaturationCanvasDrag),document.removeEventListener(“touchmove”,this._onSaturationCanvasDrag),document.removeEventListener(“mouseup”,this._onSaturationCanvasUp),document.removeEventListener(“touchend”,this._onSaturationCanvasUp)}},{key:“_updateColor”,value:function(){this._value.fromHSV(this._hsvColor.h,this._hsvColor.s,this._hsvColor.v),this.emit(“update”,this._value),this._render()}}],[{key:“template”,get:function(){return function(e){return'<div class=“imglykit-color-picker” id=“'+(void 0===e.id?”“:e.id)+'”> <canvas class=“imglykit-color-picker-color” width=“34” height=“34”></canvas> <div class=“imglykit-controls-item-label”>'+(void 0===e.label?“”:e.label)+'</div> <div class=“imglykit-color-picker-overlay”> <div class=“imglykit-color-picker-alpha-container”> <canvas class=“imglykit-color-picker-alpha” width=“200” height=“30”></canvas> <div class=“imglykit-transparent-knob”></div> </div> <div class=“imglykit-color-picker-saturation-container”> <canvas class=“imglykit-color-picker-saturation” width=“160” height=“160”></canvas> <div class=“imglykit-transparent-knob”></div> </div> <div class=“imglykit-color-picker-hue-container”> <canvas class=“imglykit-color-picker-hue” width=“30” height=“160”></canvas> <div class=“imglykit-transparent-knob”></div> </div> </div></div>'}}}]),t}(o.default);t.default=u,e.exports=t.default},function(e,t,n){(function(e,r){var i=n(105).nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},c=0;function u(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},t.setImmediate=“function”==typeof e?e:function(e){var n=c++,r=!(arguments.length<2)&&a.call(arguments,1);return s=!0,i((function(){s&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))})),n},t.clearImmediate=“function”==typeof r?r:function(e){delete s}}).call(t,n(104).setImmediate,n(104).clearImmediate)},function(e,t,n){var r,i=e.exports={},o=[],a=!1,s=-1;function c(){a=!1,r.length?o=r.concat(o):s=-1,o.length&&u()}function u(){if(!a){var e=setTimeout©;a=!0;for(var t=o.length;t;){for(r=o,o=[];++s.run();s=-1,t=o.length}r=null,a=!1,clearTimeout(e)}}function l(e,t){this.fun=e,this.array=t}function d(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n=arguments;o.push(new l(e,t)),1!==o.length||a||setTimeout(u,0)},l.prototype.run=function(){this.fun.apply(null,this.array)},i.title=“browser”,i.browser=!0,i.env={},i.argv=[],i.version=“”,i.versions={},i.on=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.binding=function(e){throw new Error(“process.binding is not supported”)},i.cwd=function(){return“/”},i.chdir=function(e){throw new Error(“process.chdir is not supported”)},i.umask=function(){return 0}}])},e.exports=r(n(260))},function(e,t,n){“use strict”;n.r(t),function(e){for( /**!

* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.14.7
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

var n=“undefined”!=typeof window&&“undefined”!=typeof document,r=,i=0,o=0;o)>=0){i=1;break}var a=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),i))}};function s(e){return e&&“[object Function]”==={}.toString.call(e)}function c(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n:n}function u(e){return“HTML”===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case“HTML”:case“BODY”:return e.ownerDocument.body;case“#document”:return e.body}var t=c(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:l(u(e))}var d=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?d:10===e?p:d||p}function h(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&“BODY”!==r&&“HTML”!==r?-1!==.indexOf(n.nodeName)&&“static”===c(n,“position”)?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function m(e){return null!==e.parentNode?m(e.parentNode):e}function _(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,c=o.commonAncestorContainer;if(e!==c&&t!==c||r.contains(i))return“BODY”===(s=(a=c).nodeName)||“HTML”!==s&&h(a.firstElementChild)!==a?h©:c;var u=m(e);return u.host?_(u.host,t):_(e,m(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments?arguments:“top”,n=“top”===t?“scrollTop”:“scrollLeft”,r=e.nodeName;if(“BODY”===r||“HTML”===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o}return e}function g(e,t){var n=arguments.length>2&&void 0!==arguments&&arguments,r=v(t,“top”),i=v(t,“left”),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function y(e,t){var n=“x”===t?“Left”:“Top”,r=“Left”===n?“Right”:“Bottom”;return parseFloat(e[“border”n“Width”],10)+parseFloat(e[“border”r“Width”],10)}function b(e,t,n,r){return Math.max(t,t,n,n,n,f(10)?parseInt(n)+parseInt(r)+parseInt(r):0)}function w(e){var t=e.body,n=e.documentElement,r=f(10)&&getComputedStyle(n);return{height:b(“Height”,t,n,r),width:b(“Width”,t,n,r)}}var k=function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)},O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t;r.enumerable=r.enumerable||!1,r.configurable=!0,“value”in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),C=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e=n,e},M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e=n)}return e};function D(e){return M({},e,{right:e.left+e.width,bottom:e.top+e.height})}function x(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=v(e,“top”),r=v(e,“left”);t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=“HTML”===e.nodeName?w(e.ownerDocument):{},a=o.width||e.clientWidth||i.right-i.left,s=o.height||e.clientHeight||i.bottom-i.top,u=e.offsetWidth-a,l=e.offsetHeight-s;if(u||l){var d=c(e);u-=y(d,“x”),l-=y(d,“y”),i.width-=u,i.height-=l}return D(i)}function E(e,t){var n=arguments.length>2&&void 0!==arguments&&arguments,r=f(10),i=“HTML”===t.nodeName,o=x(e),a=x(t),s=l(e),u=c(t),d=parseFloat(u.borderTopWidth,10),p=parseFloat(u.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=D({top:o.top-a.top-d,left:o.left-a.left-p,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(u.marginTop,10),_=parseFloat(u.marginLeft,10);h.top-=d-m,h.bottom-=d-m,h.left-=p-_,h.right-=p-_,h.marginTop=m,h.marginLeft=_}return(r&&!n?t.contains(s):t===s&&“BODY”!==s.nodeName)&&(h=g(h,t)),h}function S(e){var t=arguments.length>1&&void 0!==arguments&&arguments,n=e.ownerDocument.documentElement,r=E(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:v(n),s=t?0:v(n,“left”),c={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return D©}function j(e){var t=e.nodeName;if(“BODY”===t||“HTML”===t)return!1;if(“fixed”===c(e,“position”))return!0;var n=u(e);return!!n&&j(n)}function T(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&“none”===c(t,“transform”);)t=t.parentElement;return t||document.documentElement}function L(e,t,n,r){var i=arguments.length>4&&void 0!==arguments&&arguments,o={top:0,left:0},a=i?T(e):_(e,t);if(“viewport”===r)o=S(a,i);else{var s=void 0;“scrollParent”===r?“BODY”===(s=l(u(t))).nodeName&&(s=e.ownerDocument.documentElement):s=“window”===r?e.ownerDocument.documentElement:r;var c=E(s,a,i);if(“HTML”!==s.nodeName||j(a))o=c;else{var d=w(e.ownerDocument),p=d.height,f=d.width;o.top+=c.top-c.marginTop,o.bottom=p+c.top,o.left+=c.left-c.marginLeft,o.right=f+c.left}}var h=“number”==typeof(n=n||0);return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function P(e){return e.width*e.height}function A(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments?arguments:0;if(-1===e.indexOf(“auto”))return e;var a=L(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return M({key:e},s,{area:P(s)})})).sort((function(e,t){return t.area-e.area})),u=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=u.length>0?u.key:c.key,d=e.split(“-”);return l+(d?“-”+d:“”)}function N(e,t,n){var r=arguments.length>3&&void 0!==arguments?arguments:null,i=r?T(t):_(t,n);return E(n,i,r)}function I(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Y(e){var t={left:“right”,right:“left”,bottom:“top”,top:“bottom”};return e.replace(/left|right|bottom|top/g,(function(e){return t}))}function R(e,t,n){n=n.split(“-”);var r=I(e),i={width:r.width,height:r.height},o=-1!==.indexOf(n),a=o?“top”:“left”,s=o?“left”:“top”,c=o?“height”:“width”,u=o?“width”:“height”;return i=t+t/2-r/2,i=n===s?t-r:t,i}function F(e,t){return Array.prototype.find?e.find(t):e.filter(t)}function H(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e===n}));var r=F(e,(function(e){return e===n}));return e.indexOf®}(e,“name”,n))).forEach((function(e){e.function&&console.warn(“`modifier.function` is deprecated, use `modifier.fn`!”);var n=e.function||e.fn;e.enabled&&s(n)&&(t.offsets.popper=D(t.offsets.popper),t.offsets.reference=D(t.offsets.reference),t=n(t,e))})),t}function W(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=N(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=A(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=R(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?“fixed”:“absolute”,e=H(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function B(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function z(e){for(var t=,n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t,o=i?“”+i+n:e;if(void 0!==document.body.style)return o}return null}function U(){return this.state.isDestroyed=!0,B(this.modifiers,“applyStyle”)&&(this.popper.removeAttribute(“x-placement”),this.popper.style.position=“”,this.popper.style.top=“”,this.popper.style.left=“”,this.popper.style.right=“”,this.popper.style.bottom=“”,this.popper.style.willChange=“”,this.popper.style=“”),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function V(e,t,n,r){n.updateBound=r,q(e).addEventListener(“resize”,n.updateBound,{passive:!0});var i=l(e);return function e(t,n,r,i){var o=“BODY”===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),o||e(l(a.parentNode),n,r,i),i.push(a)}(i,“scroll”,n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function $(){this.state.eventsEnabled||(this.state=V(this.reference,this.options,this.state,this.scheduleUpdate))}function G(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,q(e).removeEventListener(“resize”,t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener(“scroll”,t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function K(e){return“”!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function J(e,t){Object.keys(t).forEach((function(n){var r=“”;-1!==.indexOf(n)&&K(t)&&(r=“px”),e.style=t+r}))}var Q=n&&/Firefox/i.test(navigator.userAgent);function Z(e,t,n){var r=F(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o=“`”t“`”,a=“`”n“`”;console.warn(a+“ modifier is required by ”o“ modifier in order to work, be sure to include it before ”o“!”)}return i}var X=,ee=X.slice(3);function te(e){var t=arguments.length>1&&void 0!==arguments&&arguments,n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}var ne=“flip”,re=“clockwise”,ie=“counterclockwise”;function oe(e,t,n,r){var i=,o=-1!==.indexOf®,a=e.split(/(+|-)/).map((function(e){return e.trim()})),s=a.indexOf(F(a,(function(e){return-1!==e.search(/,|s/)})));a&&-1===a.indexOf(“,”)&&console.warn(“Offsets separated by white space(s) are deprecated, use a comma (,) instead.”);var c=/s*,s*|s+/,u=-1!==s?[a.slice(0,s).concat([a.split©]),[a.split©].concat(a.slice(s+1))]:;return(u=u.map((function(e,r){var i=(1===r?!o:o)?“height”:“width”,a=!1;return e.reduce((function(e,t){return“”===e&&-1!==.indexOf(t)?(e=t,a=!0,e):a?(e+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:-|+)?d*.?d*)(.*)/),o=+i,a=i;if(!o)return e;if(0===a.indexOf(“%”)){var s=void 0;switch(a){case“%p”:s=n;break;case“%”:case“%r”:default:s=r}return D(s)/100*o}if(“vh”===a||“vw”===a){return(“vh”===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){K(n)&&(i+=n*(“-”===e?-1:1))}))})),i}var ae={placement:“bottom”,positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split(“-”),r=t.split(“-”);if®{var i=e.offsets,o=i.reference,a=i.popper,s=-1!==.indexOf(n),c=s?“left”:“top”,u=s?“width”:“height”,l={start:C({},c,o),end:C({},c,o+o-a)};e.offsets.popper=M({},a,l)}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split(“-”),c=void 0;return c=K(+n)?:oe(n,o,a,s),“left”===s?(o.top+=c,o.left-=c):“right”===s?(o.top+=c,o.left+=c):“top”===s?(o.left+=c,o.top-=c):“bottom”===s&&(o.left+=c,o.top+=c),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=z(“transform”),i=e.instance.popper.style,o=i.top,a=i.left,s=i;i.top=“”,i.left=“”,i=“”;var c=L(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i=s,t.boundaries=c;var u=t.priority,l=e.offsets.popper,d={primary:function(e){var n=l;return l<c&&!t.escapeWithReference&&(n=Math.max(l,c)),C({},e,n)},secondary:function(e){var n=“right”===e?“left”:“top”,r=l;return l>c&&!t.escapeWithReference&&(r=Math.min(l,c-(“right”===e?l.width:l.height))),C({},n,r)}};return u.forEach((function(e){var t=-1!==.indexOf(e)?“primary”:“secondary”;l=M({},l,d(e))})),e.offsets.popper=l,e},priority:,padding:5,boundariesElement:“scrollParent”},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split(“-”),o=Math.floor,a=-1!==.indexOf(i),s=a?“right”:“bottom”,c=a?“left”:“top”,u=a?“width”:“height”;return n<o(r)&&(e.offsets.popper=o(r)-n),n>o(r)&&(e.offsets.popper=o(r)),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Z(e.instance.modifiers,“arrow”,“keepTogether”))return e;var r=t.element;if(“string”==typeof r){if(!(r=e.instance.popper.querySelector®))return e}else if(!e.instance.popper.contains®)return console.warn(“WARNING: `arrow.element` must be child of its popper element!”),e;var i=e.placement.split(“-”),o=e.offsets,a=o.popper,s=o.reference,u=-1!==.indexOf(i),l=u?“height”:“width”,d=u?“Top”:“Left”,p=d.toLowerCase(),f=u?“left”:“top”,h=u?“bottom”:“right”,m=I®;s-m&&(e.offsets.popper-=a-(s-m)),s+m>a&&(e.offsets.popper+=s+m-a),e.offsets.popper=D(e.offsets.popper);var _=s+s/2-m/2,v=c(e.instance.popper),g=parseFloat(v,10),y=parseFloat(v[“border”d“Width”],10),b=_-e.offsets.popper-g-y;return b=Math.max(Math.min(a-m,b),0),e.arrowElement=r,e.offsets.arrow=(C(n={},p,Math.round(b)),C(n,f,“”),n),e},element:“”},flip:{order:600,enabled:!0,fn:function(e,t){if(B(e.instance.modifiers,“inner”))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=L(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split(“-”),i=Y®,o=e.placement.split(“-”)||“”,a=[];switch(t.behavior){case ne:a=;break;case re:a=te®;break;case ie:a=te(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split(“-”),i=Y®;var u=e.offsets.popper,l=e.offsets.reference,d=Math.floor,p=“left”===r&&d(u.right)>d(l.left)||“right”===r&&d(u.left)d(l.top)||“bottom”===r&&d(u.top)d(n.right),m=d(u.top)d(n.bottom),v=“left”===r&&f||“right”===r&&h||“top”===r&&m||“bottom”===r&&_,g=-1!==.indexOf®,y=!!t.flipVariations&&(g&&“start”===o&&f||g&&“end”===o&&h||!g&&“start”===o&&m||!g&&“end”===o&&_);(p||v||y)&&(e.flipped=!0,(p||v)&&(r=a),y&&(o=function(e){return“end”===e?“start”:“start”===e?“end”:e}(o)),e.placement=r+(o?“-”+o:“”),e.offsets.popper=M({},e.offsets.popper,R(e.instance.popper,e.offsets.reference,e.placement)),e=H(e.instance.modifiers,e,“flip”))})),e},behavior:“flip”,padding:5,boundariesElement:“viewport”},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split(“-”),r=e.offsets,i=r.popper,o=r.reference,a=-1!==.indexOf(n),s=-1===.indexOf(n);return i=o-(s?i:0),e.placement=Y(t),e.offsets.popper=D(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Z(e.instance.modifiers,“hide”,“preventOverflow”))return e;var t=e.offsets.reference,n=F(e.instance.modifiers,(function(e){return“preventOverflow”===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes=“”}else{if(!1===e.hide)return e;e.hide=!1,e.attributes=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=F(e.instance.modifiers,(function(e){return“applyStyle”===e.name})).gpuAcceleration;void 0!==o&&console.warn(“WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!”);var a=void 0!==o?o:t.gpuAcceleration,s=h(e.instance.popper),c=x(s),u={position:i.position},l=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},c=o(i.width),u=o(r.width),l=-1!==.indexOf(e.placement),d=-1!==e.placement.indexOf(“-”),p=t?l||d||c%2==u%2?o:a:s,f=t?o:s;return{left:p(c%2==1&&u%2==1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!Q),d=“bottom”===n?“top”:“bottom”,p=“right”===r?“left”:“right”,f=z(“transform”),m=void 0,_=void 0;if(_=“bottom”===d?“HTML”===s.nodeName?-s.clientHeight+l.bottom:-c.height+l.bottom:l.top,m=“right”===p?“HTML”===s.nodeName?-s.clientWidth+l.right:-c.width+l.right:l.left,a&&f)u=“translate3d(”m“px, ”_“px, 0)”,u=0,u=0,u.willChange=“transform”;else{var v=“bottom”===d?-1:1,g=“right”===p?-1:1;u=_*v,u=m*g,u.willChange=d+“, ”+p}var y={“x-placement”:e.placement};return e.attributes=M({},y,e.attributes),e.styles=M({},u,e.styles),e.arrowStyles=M({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:“bottom”,y:“right”},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return J(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n?t.setAttribute(e,n):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&J(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=N(i,t,e,n.positionFixed),a=A(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute(“x-placement”,a),J(t,{position:n.positionFixed?“fixed”:“absolute”}),n},gpuAcceleration:void 0}}},se=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments?arguments:{};k(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=a(this.update.bind(this)),this.options=M({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t:t,this.popper=n&&n.jquery?n:n,this.options.modifiers={},Object.keys(M({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers=M({},e.Defaults.modifiers||{},i.modifiers?i.modifiers:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return M({name:e},r.options.modifiers)})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&s(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return O(e,[{key:“update”,value:function(){return W.call(this)}},{key:“destroy”,value:function(){return U.call(this)}},{key:“enableEventListeners”,value:function(){return $.call(this)}},{key:“disableEventListeners”,value:function(){return G.call(this)}}]),e}();se.Utils=(“undefined”!=typeof window?window:e).PopperUtils,se.placements=X,se.Defaults=ae,t.default=se}.call(this,n(41))},function(e,t,n){var r,i; /*!

* JavaScript Cookie v2.2.0
* https://github.com/js-cookie/js-cookie
*
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
* Released under the MIT license
*/!function(o){if(void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),!0,e.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}return function t(n){function r(t,i,o){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(o=e({path:"/"},r.defaults,o)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var c="";for(var u in o)o[u]&&(c+="; "+u,!0!==o[u]&&(c+="="+o[u]));return document.cookie=t+"="+i+c}t||(a={});for(var l=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,p=0;p<l.length;p++){var f=l[p].split("="),h=f.slice(1).join("=");this.json||'"'!==h.charAt(0)||(h=h.slice(1,-1));try{var m=f[0].replace(d,decodeURIComponent);if(h=n.read?n.read(h,m):n(h,m)||h.replace(d,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(e){}if(t===m){a=h;break}t||(a[m]=h)}catch(e){}}return a}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}((function(){}))}))},function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,n,o,a){var s=r(t),c=i[e][r(t)];return 2===s&&(c=c[n?0:1]),c.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,o,a){var s=n(t),c=r[e][n(t)];return 2===s&&(c=c[i?0:1]),c.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(o(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(o(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(o(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(o(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(o(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(o(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],i=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,i,o){var a="";switch(i){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":a=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":a=o?"tunnin":"tuntia";break;case"d":return o?"päivän":"päivä";case"dd":a=o?"päivän":"päivää";break;case"M":return o?"kuukauden":"kuukausi";case"MM":a=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":a=o?"vuoden":"vuotta"}return a=function(e,r){return e<10?r?n[e]:t[e]:e}(e,o)+" "+a}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],monthsShort:["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],weekdaysShort:["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],weekdaysMin:["Do","Lu","Má","Ce","Dé","hA","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var o=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()<e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function o(e,t,o,a){var s=e+" ";return 1===e?s+n(0,t,o[0],a):t?s+(r(e)?i(o)[1]:i(o)[0]):a?s+i(o)[1]:s+(r(e)?i(o)[1]:i(o)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(r(e)?"godziny":"godzin");case"MM":return i+(r(e)?"miesiące":"miesięcy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?o+(r(e)?"sekundy":"sekúnd"):o+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?o+(r(e)?"minúty":"minút"):o+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?o+(r(e)?"hodiny":"hodín"):o+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?o+(r(e)?"dni":"dní"):o+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?o+(r(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?o+(r(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,i){var o=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,o="";return n>0&&(o+=t[n]+"vatlh"),r>0&&(o+=(""!==o?" ":"")+t[r]+"maH"),i>0&&(o+=(""!==o?" ":"")+t[i]),""===o?"pagh":o}(e);switch(r){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(6))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(6))},function(e,t,n){var r,i,o;

/*!

* jQuery UI Mouse 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/i=[n(53),n(390),n(118),n(232)],void 0===(o="function"==typeof(r=function(e){var t=!1;return e(document).on("mouseup",(function(){t=!1})),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,i=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&e(n.target).closest(this.options.cancel).length;return!(i&&!o&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){r.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===e.data(n.target,this.widgetName+".preventClickEvent")&&e.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return r._mouseMove(e)},this._mouseUpDelegate=function(e){return r._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),t=!0,0)))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&e.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,n.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[n(53),n(118)],void 0===(o="function"==typeof(r=function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=u;var i=n(74),o=r(n(103)),a=n(392),s=n(471),c=r(n(473));t.VERSION="4.5.3";t.COMPILER_REVISION=8;t.LAST_COMPATIBLE_COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function u(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},a.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:c.default,log:c.default.log,registerHelper:function(e,t){if("[object Object]"===i.toString.call(e)){if(t)throw new o.default("Arg not supported with multiple helpers");i.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===i.toString.call(e))i.extend(this.partials,e);else{if(void 0===t)throw new o.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===i.toString.call(e)){if(t)throw new o.default("Arg not supported with multiple decorators");i.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var l=c.default.log;t.log=l,t.createFrame=i.createFrame,t.logger=c.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){i.default(e),o.default(e),a.default(e),s.default(e),c.default(e),u.default(e),l.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var i=r(n(464)),o=r(n(465)),a=r(n(466)),s=r(n(467)),c=r(n(468)),u=r(n(469)),l=r(n(470))},function(e,t){var n;n={defaultExpansionState:function(){return{open:this.props.filter.isExpanded()}},arrowHandleClick:function(){return this.setState({open:!this.state.open})},renderArrowTag:function(){return React.createElement("div",{className:"scrivito-content-browser-hierarchy-arrow",onClick:this.arrowHandleClick})},openClassSetOptions:function(){return this.state.open?"open":"closed"}},e.exports=n},function(e,t){var n;n={renderHierarchyLabelTitle:function(e){return React.createElement("div",{className:"scrivito-content-browser-hierarchy-label"},React.createElement("span",null,e))}},e.exports=n},function(e,t,n){var r;r={mixins:[n(394)],optionLabelToggleClick:function(){return this.props.filter.toggleActive()},activeClassName:function(){return this.props.filter.isActive()?"active":""},renderOptionFilterTitle:function(){return this.renderHierarchyLabelTitle(this.props.filter.title)}},e.exports=r},function(e,t,n){var r,i;r=n(15).default,i=n(22)({render:function(){return React.createElement("div",{className:"scrivito-content-browser-list"},React.createElement("div",{className:"scrivito-content-browser-list-head"},React.createElement("table",null,React.createElement("tbody",null,React.createElement("tr",null,React.createElement("th",null),React.createElement("th",null,r.translate("content_browser.table_view.title")),React.createElement("th",null,r.translate("content_browser.table_view.type")),React.createElement("th",null,r.translate("content_browser.table_view.file_type")),React.createElement("th",null,r.translate("content_browser.table_view.file_size")),React.createElement("th",null,r.translate("content_browser.table_view.last_change")))))),this.props.children)}}),e.exports=i},function(e,t,n){var r,i,o;o=n(2),r=n(22),i=function(e){return r({displayName:"InspectedItem",isSelectedItem:function(e){return o.contains(this.props.selectedObjs,e)},getItemClasses:function(){var e;return e="content-browser-item ",this.isSelectedItem(this.props.objId)&&(e+="active"),e},selectClass:function(){var e;return e=this.props.baseSelectClass,this.isSelectedItem(this.props.objId)&&(e+=" active"),e},handleSelectClick:function(){return this.props.toggleObjSelection(this.props.objId)},render:function(){return React.createElement(e,{itemClasses:this.getItemClasses(),handleSelectClick:this.handleSelectClick,selectClasses:this.selectClass(),selectedObjs:this.props.selectedObjs,objId:this.props.objId,selectionMode:this.props.selectionMode})}})},e.exports=i},function(e,t,n){"use strict";n.r(t);var r=n(2),i=n(177),o=n.n(i),a=n(15),s={itemClassName:function(){var e="scrivito-content-browser-add";return this.props.objCreation.isActive()||(e+=" disabled"),e},iconClassName:function(){return this.props.objCreation.isActive()?"scrivito_icon scrivito_icon_plus":"scrivito_icon scrivito_icon_disabled"},creationNotPossibleBody:function(e){return React.createElement("ul",null,e.nodeTitles.map((function(e){return React.createElement("li",{key:e},e)})))},presetConflictBody:function(e){return React.createElement("div",null,a.default.translate("content_browser.add_item.preset_conflict"),Object(r.map)(e.fields,(function(e,t){return React.createElement("div",{key:t},React.createElement("h4",null,t),React.createElement("ul",null,e.map((function(e){return React.createElement("li",{key:e},e)}))))})))},showErrorAlert:function(e){var t;"creation_not_possible"===e.type&&(t={subtitle:a.default.translate("content_browser.add_item.disabled_filters"),body:this.creationNotPossibleBody(e)}),"obj_class_not_provided"===e.type&&(t={subtitle:a.default.translate("content_browser.add_item.error_no_obj_class")}),"preset_conflict"===e.type&&(t={body:this.presetConflictBody(e)}),t.title=a.default.translate("content_browser.add_item.create_impossible"),o.a.showAlert(t)},buildErrorMessage:function(e){if("creation_not_possible"===e.type){var t=e.nodeTitles.join(", ");return a.default.translate("content_browser.add_item.prevent_creation",t)}if("obj_class_not_provided"===e.type)return a.default.translate("content_browser.add_item.error_no_obj_class");if("preset_conflict"===e.type){var n=a.default.translate("content_browser.add_item.failed");return Object(r.each)(e.fields,(function(e,t){n+=t+": "+e.join(", ")+"\n"})),n}},iconTitle:function(){if(!this.props.objCreation.isActive())return this.buildErrorMessage(this.props.objCreation.error())},textMessage:function(){return this.props.objCreation.isActive()?a.default.translate("content_browser.add_item.create_item"):a.default.translate("content_browser.add_item.create_impossible")},createClick:function(){var e=this.props.objCreation;e.isActive()?(this.props.createObj(e.createOptions()),e.filter.deselectHierarchicalFilters()):this.showErrorAlert(e.error())}};t.default=s},function(e,t,n){var r,i,o,a;a=n(2),r=n(177),i=n(15).default,o={failureMessage:function(){var e;return e=i.translate("content_browser.last_added.failed_upload"),React.createElement("ul",null,a.map(this.props.failedAdditions,(function(t){return React.createElement("div",{className:"content-browser-alert"},React.createElement("h4",null,t.filename),React.createElement("li",null,t.failureMessage||e))})))},showAlert:function(){return r.showAlert({title:i.translate("content_browser.last_added.upload_error"),body:React.createElement("div",null,this.failureMessage())})},getErrorsCount:function(){return i.translate("content_browser.last_added.failed_upload_counts",this.props.failedAdditions.length)},_titleInfo:function(){return i.translate("content_browser.last_added.title_info")}},e.exports=o},function(e,t,n){var r,i;i=n(233).isActive,r={uploadInProgress:function(){return i(this.props.addedItem)},renderUploadStateProgress:function(){if(this.uploadInProgress())return React.createElement("div",{className:"upload_state",style:{width:this.props.addedItem.progress+"%"}})}},e.exports=r},function(e,t,n){var r,i,o,a,s,c,u,l;a=n(4),r=n(3).BasicObj,l=n(6),o=n(534),u=n(397),c=n(113),i=n(15).default,s=scrivito.legacyCreateConnectedComponent({displayName:"TableViewItem",propTypes:{objId:a.string.isRequired,handleSelectClick:a.func.isRequired,itemClasses:a.string.isRequired,selectClasses:a.string.isRequired,selectionMode:a.string.isRequired,selectedObjs:a.arrayOf(a.string)},_obj:function(){return r.get(this.props.objId)},_title:function(){return scrivito.titleForObj(this._obj())},_contentType:function(){var e;if(e=this._obj().get("blob",["binary"]))return e.raw().contentType()},_contentLength:function(){var e;if(e=this._obj().get("blob",["binary"]))return c(e.raw().contentLength())},_getLastChangedFormatedDate:function(){return l(this._obj().lastChanged()).utc().format("dddd, MMMM Do YYYY, h:mm A")},_getTime:function(){return React.createElement("span",null,React.createElement("time",{dateTime:this._obj().lastChanged(),title:this._getLastChangedFormatedDate()},l.utc(this._obj().lastChanged()).fromNow()))},_getFileTypeTitleTag:function(){var e;if(null!=(e=this._contentType()))return e.match(/\w+$/)[0]},_iconClassNames:function(){var e;if(this._obj().modification()||this._obj().isRestricted())return e="scrivito_icon",this._obj().modification()&&(e+=" scrivito_"+this._obj().modification()),this._obj().isRestricted()&&(e+=" scrivito_icon_lock"),e},_iconTooltips:function(){var e;if(this._obj().modification()||this._obj().isRestricted())return e="",this._obj().modification()&&(e+=i.translate("content_browser.item.tooltip.is_"+this._obj().modification())),this._obj().isRestricted()&&(e+=i.translate("content_browser.item.tooltip.is_restricted")),e},_renderIconsAndTitle:function(){return React.createElement(React.Fragment,null,this._iconClassNames()?React.createElement("i",{className:this._iconClassNames(),title:this._iconTooltips()}):void 0,this._title())},render:function(){return React.createElement("tr",{onClick:this.props.handleSelectClick,className:this.props.itemClasses},React.createElement("td",null,React.createElement("div",{className:this.props.selectClasses})),React.createElement(o,{getTitle:(e=this,function(){return e._title()}),get:function(e){return function(){return e._renderIconsAndTitle()}}(this)}),React.createElement(o,{get:function(e){return function(){return e._contentType()}}(this)}),React.createElement(o,{getTitle:function(e){return function(){return e._contentType()}}(this),get:function(e){return function(){return e._getFileTypeTitleTag()}}(this)}),React.createElement(o,{get:function(e){return function(){return e._contentLength()}}(this)}),React.createElement(o,{getTitle:function(e){return function(){return e._getLastChangedFormatedDate()}}(this),get:function(e){return function(){return e._getTime()}}(this)}));var e}}),e.exports=u(s)},function(e,t,n){"use strict";n.r(t),n.d(t,"EXPAND_TOGGLE",(function(){return r})),n.d(t,"TOGGLE_TAG",(function(){return i})),n.d(t,"toggleExpandTagBar",(function(){return o})),n.d(t,"toggleTag",(function(){return a}));var r="EXPAND_TOGGLE",i="TOGGLE_TAG";function o(){return{type:r}}function a(e){return{type:i,tag:e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"LOAD_MORE_OBJS",(function(){return r})),n.d(t,"DEFAULT_NUMBER_TO_LOAD",(function(){return i})),n.d(t,"loadMoreObjs",(function(){return o}));var r="LOAD_MORE_OBJS",i=24;function o(e){return{type:r,numToLoad:e}}},function(e,t,n){var r=n(159),i=n(567),o=n(568),a=n(569),s=n(570),c=n(571);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(41))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(164),i=n(593),o=n(165);e.exports=function(e,t,n,a,s,c){var u=1&n,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var f=-1,h=!0,m=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var _=e[f],v=t[f];if(a)var g=u?a(v,_,f,t,e,c):a(_,v,f,e,t,c);if(void 0!==g){if(g)continue;h=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(_===e||s(_,e,n,a,c)))return m.push(t)}))){h=!1;break}}else if(_!==v&&!s(_,v,n,a,c)){h=!1;break}}return c.delete(e),c.delete(t),h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t,n){var r=n(602),i=n(240),o=n(65),a=n(411),s=n(241),c=n(412),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),d=!n&&!l&&a(e),p=!n&&!l&&!d&&c(e),f=n||l||d||p,h=f?r(e.length,String):[],m=h.length;for(var _ in e)!t&&!u.call(e,_)||f&&("length"==_||d&&("offset"==_||"parent"==_)||p&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,m))||h.push(_);return h}},function(e,t,n){(function(e){var r=n(75),i=n(604),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c}).call(this,n(79)(e))},function(e,t,n){var r=n(605),i=n(167),o=n(606),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(104)(n(75),"Set");e.exports=r},function(e,t,n){var r=n(104)(n(75),"WeakMap");e.exports=r},function(e,t,n){var r=n(81);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(420);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(421),i=n(168);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(65),i=n(243),o=n(614),a=n(244);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(237);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){var r=n(639),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a<s;)c[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(c),r(e,this,u)}}},function(e,t,n){var r=n(640),i=n(643)(r);e.exports=i},function(e,t,n){var r=n(161),i=n(105),o=n(241),a=n(81);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(245);t.DragDropContext=r.DragDropContext,t.DragDropContextProvider=r.DragDropContextProvider;var i=n(672);t.DragLayer=i.default;var o=n(674);t.DragSource=o.default;var a=n(684);t.DropTarget=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(t.HandlerRole||(t.HandlerRole={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.strictEquality=function(e,t){return e===t},t.areCoordsEqual=function(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)},t.areArraysEqual=function(e,n,r){if(void 0===r&&(r=t.strictEquality),e.length!==n.length)return!1;for(var i=0;i<e.length;++i)if(!r(e[i],n[i]))return!1;return!0}},function(e,t,n){var r=n(432),i=n(120),o=n(173),a=i((function(e,t){return o(e)?r(e,t):[]}));e.exports=a},function(e,t,n){var r=n(164),i=n(246),o=n(247),a=n(146),s=n(167),c=n(165);e.exports=function(e,t,n,u){var l=-1,d=i,p=!0,f=e.length,h=[],m=t.length;if(!f)return h;n&&(t=a(t,s(n))),u?(d=o,p=!1):t.length>=200&&(d=c,p=!1,t=new r(t));e:for(;++l<f;){var _=e[l],v=null==n?_:n(_);if(_=u||0!==_?_:0,p&&v==v){for(var g=m;g--;)if(t[g]===v)continue e;h.push(_)}else d(t,v,u)||h.push(_)}return h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(658);t.NONE=[],t.ALL=[],t.areDirty=function(e,n){return e!==t.NONE&&(e===t.ALL||void 0===n||r(n,e).length>0)}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(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])},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=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(245),c=n(675),u=n(249).default,l=(n(121),n(30)),d=n(148),p=n(147);t.default=function(e){var t=e.DecoratedComponent,n=e.createHandler,r=e.createMonitor,f=e.createConnector,h=e.registerHandler,m=e.containerDisplayName,_=e.getType,v=e.collect,g=e.options.arePropsEqual,y=void 0===g?p:g,b=t,w=t.displayName||t.name||"Component",k=function(e){function d(t){var n=e.call(this,t)||this;return n.isCurrentlyMounted=!1,n.handleChange=n.handleChange.bind(n),n.disposable=new c.SerialDisposable,n.receiveProps(t),n.dispose(),n}return i(d,e),d.prototype.getHandlerId=function(){return this.handlerId},d.prototype.getDecoratedComponentInstance=function(){return this.handler?this.handler.ref.current:null},d.prototype.shouldComponentUpdate=function(e,t){return!y(e,this.props)||!p(t,this.state)},d.prototype.componentDidMount=function(){this.isCurrentlyMounted=!0,this.disposable=new c.SerialDisposable,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()},d.prototype.componentDidUpdate=function(e){y(this.props,e)||(this.receiveProps(this.props),this.handleChange())},d.prototype.componentWillUnmount=function(){this.dispose(),this.isCurrentlyMounted=!1},d.prototype.receiveProps=function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(_(e)))},d.prototype.receiveType=function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=h(e,this.handler,this.manager),n=t.handlerId,r=t.unregister;this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var i=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new c.CompositeDisposable(new c.Disposable(i),new c.Disposable(r)))}},d.prototype.handleChange=function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();p(e,this.state)||this.setState(e)}},d.prototype.dispose=function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)},d.prototype.getCurrentState=function(){return this.handlerConnector?v(this.handlerConnector.hooks,this.handlerMonitor):{}},d.prototype.render=function(){var e=this;return a.createElement(s.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?a.createElement(b,o({},e.props,e.state,{ref:e.handler&&u(b)?e.handler.ref:void 0})):null)}))},d.prototype.receiveDragDropManager=function(e){void 0===this.manager&&(this.manager=e,l("object"==typeof e,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",w,w),this.handlerMonitor=r(e),this.handlerConnector=f(e.getBackend()),this.handler=n(this.handlerMonitor))},d.DecoratedComponent=t,d.displayName=m+"("+w+")",d}(a.Component);return d(k,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(683);function o(e){return function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),r.isValidElement(t)){var o=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+t+" into a <div>, or turn it into a drag source or a drop target itself.")}}(o);var a=n?function(t){return e(t,n)}:e;return i.default(o,a)}e(t,n)}}t.default=function(e){var t={};return Object.keys(e).forEach((function(n){var r=o(e[n]);t[n]=function(){return r}})),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){return"string"==typeof t||"symbol"==typeof t||!!n&&Array.isArray(t)&&t.every((function(t){return e(t,!1)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(422);t.isFirefox=r((function(){return/firefox/i.test(navigator.userAgent)})),t.isSafari=r((function(){return Boolean(window.safari)}))},function(e,t,n){var r=n(238);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(81),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(712),i=n(174),o=r?function(e){return r.get(e)}:i;e.exports=o},function(e,t,n){var r=n(713),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],o=i.call(r,t)?n.length:0;o--;){var a=n[o],s=a.func;if(null==s||s==e)return a.name}return t}},function(e,t,n){var r=n(729),i=n(730),o={float:"cssFloat"},a=n(733);function s(e,t,n){var s=o[t];if(void 0===s&&(s=function(e){var t=i(e),n=r(t);return o[t]=o[e]=o[n]=n,n}(t)),s){if(void 0===n)return e.style[s];e.style[s]=a(s,n)}}function c(e,t){for(var n in t)t.hasOwnProperty(n)&&s(e,n,t[n])}function u(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:c(arguments[0],arguments[1]):s(arguments[0],arguments[1],arguments[2])}e.exports=u,e.exports.set=u,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=s(e,n||""),t}),{}):s(e,t||"")}},function(e,t,n){"use strict";var r=n(256),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=c(t),m=c(n),_=0;_<a.length;++_){var v=a[_];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var g=p(n,v);try{u(t,v,g)}catch(e){}}}}return t}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(41))},function(e,t,n){var r,i,o,a,s,c,u,l;u=n(22),s=n(510),o=n(512),r=n(514),i=n(515),c=n(85).connect,a=u({displayName:"TopBar",render:function(){return React.createElement("div",{className:"scrivito-content-browser-topbar"},React.createElement(r,{filter:this.props.filter}),this.props.standAlone?React.createElement(i,{selectionMode:this.props.selectionMode,dispatch:this.props.dispatch}):void 0,React.createElement(s,{viewMode:this.props.viewMode,dispatch:this.props.dispatch}),React.createElement(o,{dispatch:this.props.dispatch,sortCriteria:this.props.sortCriteria}))}}),l=function(e){return{selectionMode:e.selection.selectionMode,sortCriteria:e.sortCriteria,viewMode:e.objDisplay.viewMode}},e.exports=c(l)(a)},function(e,t,n){var r,i,o,a,s,c,u,l,d,p,f;p=n(2),d=n(22),s=n(15).default,a=n(516),r=n(517),l=n(521),f=n(83),c=f.LAST_ADDED,i=f.FILTER,u=n(522),o=d({displayName:"Filter",mixins:[a],renderAdditionalFilters:function(){var e;return e=p.map(this.props.filter.additionalFilters,(function(e){return React.createElement(r,{key:e.field,filter:e})})),this.renderSubFiltersList(e,"compact")},setFilterObjSource:function(){return this.props.setObjSource(i),this.props.deselectObjs()},getFilterClassName:function(){var e;return e="scrivito-content-browser-filter",this.props.additionCount>0&&(e+=" last_added"),this.props.standAlone&&(e+=" stand-alone"),e},componentDidMount:function(){return this.props.filter.onChange(this.setFilterObjSource)},activateInitialFilter:function(){return this.props.setObjSource(i)},activateLastAddedFilter:function(){return this.props.setObjSource(c),this.props.deselectObjs(),this.props.filter.deselectHierarchicalFilters()},renderFilterSeparator:function(){if(this.props.filter.hasAdditionalFilters()&&this.props.filter.hasHierarchicalFilters())return React.createElement("div",{className:"scrivito_separator"},s.translate("content_browser.filter.more_filters"))},render:function(){var e;return e=p.map(this.props.filter.getHierarchicalFilters(),(function(e){return React.createElement(l,{key:e.name,filter:e})})),React.createElement("div",{className:this.getFilterClassName()},React.createElement("div",{className:"scrivito-content-browser-filter-fixed"},this.props.additionCount>0?React.createElement(u,{addedCount:this.props.additionCount,active:this.props.activeSource===c,activateLastAddedFilter:this.activateLastAddedFilter}):void 0),React.createElement("div",{className:"scrivito-content-browser-filter-scroll"},this.renderSubFiltersList(e),this.renderFilterSeparator(),this.renderAdditionalFilters()))}}),e.exports=o},function(e,t,n){var r,i,o,a,s,c,u,l,d,p,f,h,m,_,v,g,y,b,w,k,O,C,M,D;O=n(2),r=n(3).BasicObj,f=n(396),_=n(523).default,l=n(530),h=n(538),m=n(540),p=n(541).default,b=n(122),C=n(83),u=C.LAST_ADDED,a=C.FILTER,M=n(402),w=M.toggleExpandTagBar,k=M.toggleTag,D=n(403),g=D.loadMoreObjs,i=D.DEFAULT_NUMBER_TO_LOAD,d=n(542).default,o=n(177),s=n(15).default,v=n(117).default,y=n(5).loadableWithDefault,c=scrivito.legacyCreateConnectedComponent({displayName:"Items",getInitialState:function(){return{dragInProgress:!1}},baseItemsClass:function(e){var t;return t="scrivito-content-browser-items",e.length>0&&(t+=" tags-row",this.props.tags.isExpanded&&(t+=" expanded")),this.props.isEditingAllowed&&(t+=" upload-row"),t},toggleExpandTagBar:function(){return this.props.dispatch(w())},toggleTagAction:function(e){return this.props.dispatch(k(e,this.props.filter))},dropZoneClass:function(e){var t;return t=this.baseItemsClass(e),this.state.dragInProgress&&(this.props.isEditingAllowed?t+=" uploader-drag-over":t+=" uploader-drag-over-forbiden"),t},_buildErrorList:function(e){return React.createElement("ul",null,O.map(e,(function(e){return React.createElement("li",null,e)})))},_showConflictingPresetsAlert:function(e){var t,n,r,i;return t=O.keys(e),n=O.first(t),r=React.createElement("div",null,React.createElement("p",null,"The selected properties could not be assigned to the uploaded files."),React.createElement("p",null,"Choose only one of these ",this._errorMessageForField(n),":"),this._buildErrorList(e[n]),O.map(O.rest(t),(i=this,function(t){return React.createElement("div",null,React.createElement("p",null,"Also, choose just one of these ",i._errorMessageForField(t),":"),i._buildErrorList(e[t]))})),"Please try again."),o.showAlert({title:"Upload cancelled",body:React.createElement("div",null,r)})},_errorMessageForField:function(e){return"_obj_class"===e?"types":'"'+e+'" options'},_handleFileDrop:function(e){var t,n;if(this._changeDragState(!1)(e),t=null!=(n=e.dataTransfer)?n.files:void 0,this.props.isEditingAllowed&&(null!=t?t.length:void 0))return this._uploadFiles(t)},_handleFileInput:function(e){if(this.props.isEditingAllowed)return this._uploadFiles(e.target.files)},_uploadFiles:function(e){var t,n,r;return t=this.props.objCreationFactory,(n=t.buildObjUploadControl({filter:this.props.filter,activeTags:this.props.tags.activeTags})).isValid()?(O.each(e,(r=this,function(e){return r.props.createObj(n.uploadOptions(e))})),this.props.filter.deselectHierarchicalFilters()):this._showConflictingPresetsAlert(n.errors())},_changeDragState:function(e){return t=this,function(n){return n.preventDefault(),n.stopPropagation(),t.setState({dragInProgress:e})};var t},_getTagsQueryRequest:function(){return new d({filter:this.props.filter,baseQuery:this.props.baseQuery,tags:this.props.tags.activeTags,sortCriteria:this.props.sortCriteria}).searchRequest()},_getItemsQueryRequest:function(){return new d({excludedObjIds:this.props.initialSelection,filter:this.props.filter,baseQuery:this.props.baseQuery,tags:this.props.tags.activeTags,sortCriteria:this.props.sortCriteria}).searchRequest()},_getTags:function(){var e,t;return t=[],(e=this._getTagsQueryRequest())&&this.props.activeSource===a&&(t=y(t,(function(){return e.facet("tags",{limit:100})}))),t},_loadNextObjs:function(){return this.props.dispatch(g(this.props.numToLoad+10))},_loadObjs:function(){var e;return void 0!==(e=this._getItemsQueryRequest())?v(e.iterator(),this.props.numToLoad):{objs:[],done:!0}},_initiallySelectedAndLoadedObjs:function(){var e,t,n,i;return t=[],this.props.initialSelection&&(t=O.compact(this.props.initialSelection.map((function(e){return r.get(e)})))),n=(i=this._loadObjs()).objs,e=i.done,{objs:t.concat(n),done:e}},render:function(){var e,t,n,r;return React.createElement("div",{className:this.dropZoneClass(this._getTags()),onDragOver:this._changeDragState(!0),onDrop:this._handleFileDrop,onDragLeave:this._changeDragState(!1)},React.createElement(m,{tags:this._getTags(),toggleTag:this.toggleTagAction,activeTags:this.props.tags.activeTags,toggleExpandTagBar:this.toggleExpandTagBar}),(n=(r=this._initiallySelectedAndLoadedObjs()).objs,(t=!(e=r.done)&&n.length<this.props.numToLoad)&&this.props.numToLoad===i?React.createElement(p,null):this.props.activeSource===u?React.createElement(l,{activeTags:this.props.tags.activeTags,selectionMode:this.props.selectionMode,toggleObjSelection:this.props.toggleObjSelection,selectedObjs:this.props.selectedObjs,viewMode:this.props.viewMode,dragInProgress:this.state.dragInProgress,additions:this.props.lastAdded.additions}):this.props.viewMode===b.TABLE_VIEW?React.createElement(f,null,React.createElement(h,{activeTags:this.props.tags.activeTags,filter:this.props.filter,toggleObjSelection:this.props.toggleObjSelection,isLoading:t,fetch:this._loadNextObjs,objs:n,hasMore:!e,createObj:this.props.createObj,selectedObjs:this.props.selectedObjs,isEditingAllowed:this.props.isEditingAllowed,selectionMode:this.props.selectionMode,objCreationFactory:this.props.objCreationFactory})):React.createElement(_,{objs:n,viewMode:this.props.viewMode,toggleObjSelection:this.props.toggleObjSelection,selectionMode:this.props.selectionMode,activeTags:this.props.tags.activeTags,filter:this.props.filter,isEditingAllowed:this.props.isEditingAllowed,createObj:this.props.createObj,selectedObjs:this.props.selectedObjs,isLoading:t,fetch:this._loadNextObjs,hasMore:!e,objCreationFactory:this.props.objCreationFactory})),this.props.isEditingAllowed?React.createElement("div",{className:"scrivito-content-browser-upload"},React.createElement("input",{className:"scrivito-content-browser-file-input",type:"file",multiple:"multiple",onChange:this._handleFileInput}),React.createElement("i",{className:"scrivito_icon scrivito_icon_upload"}),React.createElement("span",null,s.translate("content_browser.add_item.browse_file"))):void 0)}}),e.exports=c},function(e,t,n){var r;r=n(22)({displayName:"ThumbnailAddItem",mixins:[n(398).default],render:function(){return React.createElement("li",{className:"content-browser-item",onClick:this.createClick},React.createElement("div",{className:this.itemClassName()},React.createElement("div",{className:"scrivito-content-browser-text"},React.createElement("span",{className:this.iconClassName(),title:this.iconTitle()}),React.createElement("span",null,this.textMessage()))))}}),e.exports=r},function(e,t,n){var r;r=n(22)({displayName:"MaximizeInspectorToggle",_toggleMaximized:function(){return this.props.toggleInspectorMaximized()},render:function(){return React.createElement("span",{className:"scrivito_move_left",title:"Maximize details view",onClick:this._toggleMaximized},React.createElement("span",{className:"scrivito_icon scrivito_icon_chevron_left"}))}}),e.exports=r},function(e,t,n){"use strict";e.exports=function(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}}},function(e,t,n){var r,i,o,a,s,c,u,l,d,p;r=n(123),a=n(543),s=n(544),c=n(546).default,u=n(547),p=n(548),i=n(549),d=n(550).default,l=n(551),o=r.combineReducers({objDisplay:c,objLoad:u,inspector:a,lastAdded:s,sortCriteria:p,tags:i,selection:d,objSource:l}),e.exports=o},function(e,t,n){"use strict";var r=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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=g(o),s=n(427),c=g(n(689)),u=g(n(438)),l=g(n(174)),d=g(n(702)),p=g(n(703)),f=g(n(4)),h=g(n(68)),m=g(n(707)),_=n(254),v=n(721);function g(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));w.call(n),e.inline||console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.");var r=e.suggestions;return n.state={suggestions:r,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1},n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.moveTag=n.moveTag.bind(n),n.handlePaste=n.handlePaste.bind(n),n.resetAndFocusInput=n.resetAndFocusInput.bind(n),n.handleSuggestionHover=n.handleSuggestionHover.bind(n),n.handleSuggestionClick=n.handleSuggestionClick.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.readOnly;t&&!n&&this.resetAndFocusInput()}},{key:"componentDidUpdate",value:function(e){(0,u.default)(e.suggestions,this.props.suggestions)||this.updateSuggestions()}},{key:"filteredSuggestions",value:function(e,t){var n=this;if(this.props.handleFilterSuggestions)return this.props.handleFilterSuggestions(e,t);var r=t.filter((function(t){return 0===n.getQueryIndex(e,t)})),i=t.filter((function(t){return n.getQueryIndex(e,t)>0}));return r.concat(i)}},{key:"resetAndFocusInput",value:function(){this.setState({query:""}),this.textInput&&(this.textInput.value="",this.textInput.focus())}},{key:"handleDelete",value:function(e,t){this.props.handleDelete(e,t),this.props.resetInputOnDelete?this.resetAndFocusInput():this.textInput&&this.textInput.focus(),t.stopPropagation()}},{key:"handleTagClick",value:function(e,t){this.props.handleTagClick&&this.props.handleTagClick(e,t),this.props.resetInputOnDelete?this.resetAndFocusInput():this.textInput&&this.textInput.focus()}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value);var t=e.target.value.trim();this.setState({query:t},this.updateSuggestions)}},{key:"handleFocus",value:function(e){var t=e.target.value;this.props.handleInputFocus&&this.props.handleInputFocus(t),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){var t=e.target.value;this.props.handleInputBlur&&(this.props.handleInputBlur(t),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1})}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.query,r=t.selectedIndex,i=t.suggestions,o=t.selectionMode;if(e.keyCode===v.KEYS.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[]})),-1!==this.props.delimiters.indexOf(e.keyCode)&&!e.shiftKey){e.keyCode===v.KEYS.TAB&&""===n||e.preventDefault();var a=o&&-1!==r?i[r]:y({id:n},this.props.labelField,n);""!==a&&this.addTag(a)}e.keyCode===v.KEYS.BACKSPACE&&""===n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===v.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:r<=0?i.length-1:r-1,selectionMode:!0})),e.keyCode===v.KEYS.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:0===i.length?-1:(r+1)%i.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t=this;if(this.props.allowAdditionFromPaste){e.preventDefault();var n=e.clipboardData||window.clipboardData,r=n.getData("text"),i=this.props.maxLength,o=void 0===i?r.length:i,a=Math.min(o,r.length),s=n.getData("text").substr(0,a),c=(0,_.buildRegExpFromDelimiters)(this.props.delimiters),u=s.split(c);(0,d.default)(u).forEach((function(e){return t.addTag(y({id:e},t.props.labelField,e))}))}}},{key:"handleSuggestionClick",value:function(e){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){var n=this.props.tags[e];this.props.handleDrag(n,e,t)}},{key:"render",value:function(){var e=this,t=this.getTagItems(),n=r({},v.DEFAULT_CLASSNAMES,this.props.classNames),i=this.state.query.trim(),o=this.state.selectedIndex,s=this.state.suggestions,c=this.props,u=c.placeholder,l=c.name,d=c.id,f=c.maxLength,m=c.inline,_=c.inputFieldPosition,g=m?_:v.INPUT_FIELD_POSITIONS.BOTTOM,y=this.props.readOnly?null:a.default.createElement("div",{className:n.tagInput},a.default.createElement("input",{ref:function(t){e.textInput=t},className:n.tagInputField,type:"text",placeholder:u,"aria-label":u,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:l,id:d,maxLength:f,value:this.props.inputValue}),a.default.createElement(p.default,{query:i,suggestions:s,labelField:this.props.labelField,selectedIndex:o,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:n,renderSuggestion:this.props.renderSuggestion}));return a.default.createElement("div",{className:(0,h.default)(n.tags,"react-tags-wrapper")},g===v.INPUT_FIELD_POSITIONS.TOP&&y,a.default.createElement("div",{className:n.selected},t,g===v.INPUT_FIELD_POSITIONS.INLINE&&y),g===v.INPUT_FIELD_POSITIONS.BOTTOM&&y)}}]),t}(o.Component);b.propTypes={placeholder:f.default.string,labelField:f.default.string,suggestions:f.default.arrayOf(f.default.shape({id:f.default.string.isRequired})),delimiters:f.default.arrayOf(f.default.number),autofocus:f.default.bool,inline:f.default.bool,inputFieldPosition:f.default.oneOf([v.INPUT_FIELD_POSITIONS.INLINE,v.INPUT_FIELD_POSITIONS.TOP,v.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:f.default.func,handleAddition:f.default.func,handleDrag:f.default.func,handleFilterSuggestions:f.default.func,handleTagClick:f.default.func,allowDeleteFromEmptyInput:f.default.bool,allowAdditionFromPaste:f.default.bool,allowDragDrop:f.default.bool,resetInputOnDelete:f.default.bool,handleInputChange:f.default.func,handleInputFocus:f.default.func,handleInputBlur:f.default.func,minQueryLength:f.default.number,shouldRenderSuggestions:f.default.func,removeComponent:f.default.func,autocomplete:f.default.oneOfType([f.default.bool,f.default.number]),readOnly:f.default.bool,classNames:f.default.object,name:f.default.string,id:f.default.string,maxLength:f.default.number,inputValue:f.default.string,tags:f.default.arrayOf(f.default.shape({id:f.default.string.isRequired,className:f.default.string})),allowUnique:f.default.bool,renderSuggestion:f.default.func},b.defaultProps={placeholder:v.DEFAULT_PLACEHOLDER,labelField:v.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[v.KEYS.ENTER,v.KEYS.TAB],autofocus:!0,inline:!0,inputFieldPosition:v.INPUT_FIELD_POSITIONS.INLINE,handleDelete:l.default,handleAddition:l.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,resetInputOnDelete:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[]};var w=function(){var e=this;this.getQueryIndex=function(t,n){return n[e.props.labelField].toLowerCase().indexOf(t.toLowerCase())},this.updateSuggestions=function(){var t=e.state,n=t.query,r=t.selectedIndex,i=e.filteredSuggestions(n,e.props.suggestions);e.setState({suggestions:i,selectedIndex:r>=i.length?i.length-1:r})},this.addTag=function(t){var n=e.props,r=n.tags,i=n.labelField,o=n.allowUnique;if(t.id&&t[i]){var a=r.map((function(e){return e.id.toLowerCase()}));if(!(o&&a.indexOf(t.id.toLowerCase())>=0)){if(e.props.autocomplete){var s=e.filteredSuggestions(t[i],e.props.suggestions);(1===e.props.autocomplete&&1===s.length||!0===e.props.autocomplete&&s.length)&&(t=s[0])}e.props.handleAddition(t),e.setState({query:"",selectionMode:!1,selectedIndex:-1}),e.resetAndFocusInput()}}},this.getTagItems=function(){var t=e.props,n=t.classNames,i=t.tags,o=t.labelField,s=t.removeComponent,c=t.readOnly,u=t.allowDragDrop,l=u?e.moveTag:null;return i.map((function(t,i){return a.default.createElement(m.default,{key:t.key||t.id,index:i,tag:t,labelField:o,onDelete:e.handleDelete.bind(e,i),moveTag:l,removeComponent:s,onTagClicked:e.handleTagClick.bind(e,i),readOnly:c,classNames:r({},v.DEFAULT_CLASSNAMES,n),allowDragDrop:u})}))}};e.exports={WithContext:(0,s.DragDropContext)(c.default)(b),WithOutContext:b,KEYS:v.KEYS}},,,,function(e,t,n){"use strict";var r=n(458);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r={"./af":263,"./af.js":263,"./ar":264,"./ar-dz":265,"./ar-dz.js":265,"./ar-kw":266,"./ar-kw.js":266,"./ar-ly":267,"./ar-ly.js":267,"./ar-ma":268,"./ar-ma.js":268,"./ar-sa":269,"./ar-sa.js":269,"./ar-tn":270,"./ar-tn.js":270,"./ar.js":264,"./az":271,"./az.js":271,"./be":272,"./be.js":272,"./bg":273,"./bg.js":273,"./bm":274,"./bm.js":274,"./bn":275,"./bn.js":275,"./bo":276,"./bo.js":276,"./br":277,"./br.js":277,"./bs":278,"./bs.js":278,"./ca":279,"./ca.js":279,"./cs":280,"./cs.js":280,"./cv":281,"./cv.js":281,"./cy":282,"./cy.js":282,"./da":283,"./da.js":283,"./de":231,"./de-at":284,"./de-at.js":284,"./de-ch":285,"./de-ch.js":285,"./de.js":231,"./dv":286,"./dv.js":286,"./el":287,"./el.js":287,"./en-SG":288,"./en-SG.js":288,"./en-au":289,"./en-au.js":289,"./en-ca":290,"./en-ca.js":290,"./en-gb":291,"./en-gb.js":291,"./en-ie":292,"./en-ie.js":292,"./en-il":293,"./en-il.js":293,"./en-nz":294,"./en-nz.js":294,"./eo":295,"./eo.js":295,"./es":296,"./es-do":297,"./es-do.js":297,"./es-us":298,"./es-us.js":298,"./es.js":296,"./et":299,"./et.js":299,"./eu":300,"./eu.js":300,"./fa":301,"./fa.js":301,"./fi":302,"./fi.js":302,"./fo":303,"./fo.js":303,"./fr":304,"./fr-ca":305,"./fr-ca.js":305,"./fr-ch":306,"./fr-ch.js":306,"./fr.js":304,"./fy":307,"./fy.js":307,"./ga":308,"./ga.js":308,"./gd":309,"./gd.js":309,"./gl":310,"./gl.js":310,"./gom-latn":311,"./gom-latn.js":311,"./gu":312,"./gu.js":312,"./he":313,"./he.js":313,"./hi":314,"./hi.js":314,"./hr":315,"./hr.js":315,"./hu":316,"./hu.js":316,"./hy-am":317,"./hy-am.js":317,"./id":318,"./id.js":318,"./is":319,"./is.js":319,"./it":320,"./it-ch":321,"./it-ch.js":321,"./it.js":320,"./ja":322,"./ja.js":322,"./jv":323,"./jv.js":323,"./ka":324,"./ka.js":324,"./kk":325,"./kk.js":325,"./km":326,"./km.js":326,"./kn":327,"./kn.js":327,"./ko":328,"./ko.js":328,"./ku":329,"./ku.js":329,"./ky":330,"./ky.js":330,"./lb":331,"./lb.js":331,"./lo":332,"./lo.js":332,"./lt":333,"./lt.js":333,"./lv":334,"./lv.js":334,"./me":335,"./me.js":335,"./mi":336,"./mi.js":336,"./mk":337,"./mk.js":337,"./ml":338,"./ml.js":338,"./mn":339,"./mn.js":339,"./mr":340,"./mr.js":340,"./ms":341,"./ms-my":342,"./ms-my.js":342,"./ms.js":341,"./mt":343,"./mt.js":343,"./my":344,"./my.js":344,"./nb":345,"./nb.js":345,"./ne":346,"./ne.js":346,"./nl":347,"./nl-be":348,"./nl-be.js":348,"./nl.js":347,"./nn":349,"./nn.js":349,"./pa-in":350,"./pa-in.js":350,"./pl":351,"./pl.js":351,"./pt":352,"./pt-br":353,"./pt-br.js":353,"./pt.js":352,"./ro":354,"./ro.js":354,"./ru":355,"./ru.js":355,"./sd":356,"./sd.js":356,"./se":357,"./se.js":357,"./si":358,"./si.js":358,"./sk":359,"./sk.js":359,"./sl":360,"./sl.js":360,"./sq":361,"./sq.js":361,"./sr":362,"./sr-cyrl":363,"./sr-cyrl.js":363,"./sr.js":362,"./ss":364,"./ss.js":364,"./sv":365,"./sv.js":365,"./sw":366,"./sw.js":366,"./ta":367,"./ta.js":367,"./te":368,"./te.js":368,"./tet":369,"./tet.js":369,"./tg":370,"./tg.js":370,"./th":371,"./th.js":371,"./tl-ph":372,"./tl-ph.js":372,"./tlh":373,"./tlh.js":373,"./tr":374,"./tr.js":374,"./tzl":375,"./tzl.js":375,"./tzm":376,"./tzm-latn":377,"./tzm-latn.js":377,"./tzm.js":376,"./ug-cn":378,"./ug-cn.js":378,"./uk":379,"./uk.js":379,"./ur":380,"./ur.js":380,"./uz":381,"./uz-latn":382,"./uz-latn.js":382,"./uz.js":381,"./vi":383,"./vi.js":383,"./x-pseudo":384,"./x-pseudo.js":384,"./yo":385,"./yo.js":385,"./zh-cn":386,"./zh-cn.js":386,"./zh-hk":387,"./zh-hk.js":387,"./zh-tw":388,"./zh-tw.js":388};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=459},function(e,t,n){var r,i;void 0===(i="function"==typeof(r=["jquery","./data","./disable-selection","./focusable","./form","./ie","./keycode","./labels","./jquery-1-7","./plugin","./safe-active-element","./safe-blur","./scroll-parent","./tabbable","./unique-id","./version"])?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){var r,i,o;

/*!

* jQuery UI Sortable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/i=[n(53),n(389),n(462),n(390),n(463),n(118),n(232)],void 0===(o="function"==typeof(r=function(e){return e.widget("ui.sortable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,n){return e>=t&&e<t+n},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,(function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,n){var r=null,i=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),e(t.target).parents().each((function(){if(e.data(this,o.widgetName+"-item")===o)return r=e(this),!1})),e.data(t.target,o.widgetName+"-item")===o&&(r=e(t.target)),!r||this.options.handle&&!n&&(e(this.options.handle,r).find("*").addBack().each((function(){this===t.target&&(i=!0)})),!i)||(this.currentItem=r,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,n,r){var i,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=e("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!a.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var n,r,i,o,a=this.options,s=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+a.scrollSpeed:t.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+a.scrollSpeed:t.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(t.pageY-this.document.scrollTop()<a.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<a.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),t.pageX-this.document.scrollLeft()<a.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),!1!==s&&e.ui.ddmanager&&!a.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),n=this.items.length-1;n>=0;n--)if(i=(r=this.items[n]).item[0],(o=this._intersectsWithPointer(r))&&r.instance===this.currentContainer&&!(i===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===i||e.contains(this.placeholder[0],i)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],i))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(r))break;this._rearrange(t,r),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,n){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var r=this,i=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){r._clear(t)}))}else this._clear(t,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];return t=t||{},e(n).each((function(){var n=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);n&&r.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))})),!r.length&&t.key&&r.push(t.key+"="),r.join("&")},toArray:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];return t=t||{},n.each((function(){r.push(e(t.item||this).attr(t.attribute||"id")||"")})),r},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,r=this.positionAbs.top,i=r+this.helperProportions.height,o=e.left,a=o+e.width,s=e.top,c=s+e.height,u=this.offset.click.top,l=this.offset.click.left,d="x"===this.options.axis||r+u>s&&r+u<c,p="y"===this.options.axis||t+l>o&&t+l<a,f=d&&p;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?f:o<t+this.helperProportions.width/2&&n-this.helperProportions.width/2<a&&s<r+this.helperProportions.height/2&&i-this.helperProportions.height/2<c},_intersectsWithPointer:function(e){var t,n,r="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!r||!i)&&(t=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection(),this.floating?"right"===n||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),r=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return this.floating&&i?"right"===i&&n||"left"===i&&!n:r&&("down"===r&&t||"up"===r&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var n,r,i,o,a=[],s=[],c=this._connectWith();if(c&&t)for(n=c.length-1;n>=0;n--)for(r=(i=e(c[n],this.document[0])).length-1;r>=0;r--)(o=e.data(i[r],this.widgetFullName))&&o!==this&&!o.options.disabled&&s.push([e.isFunction(o.options.items)?o.options.items.call(o.element):e(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function u(){a.push(this)}for(s.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=s.length-1;n>=0;n--)s[n][0].each(u);return e(a)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var n=0;n<t.length;n++)if(t[n]===e.item[0])return!1;return!0}))},_refreshItems:function(t){this.items=[],this.containers=[this];var n,r,i,o,a,s,c,u,l=this.items,d=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(n=p.length-1;n>=0;n--)for(r=(i=e(p[n],this.document[0])).length-1;r>=0;r--)(o=e.data(i[r],this.widgetFullName))&&o!==this&&!o.options.disabled&&(d.push([e.isFunction(o.options.items)?o.options.items.call(o.element[0],t,{item:this.currentItem}):e(o.options.items,o.element),o]),this.containers.push(o));for(n=d.length-1;n>=0;n--)for(a=d[n][1],r=0,u=(s=d[n][0]).length;r<u;r++)(c=e(s[r])).data(this.widgetName+"-item",a),l.push({item:c,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var n,r,i,o;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),n=this.items.length-1;n>=0;n--)(r=this.items[n]).instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?e(this.options.toleranceElement,r.item):r.item,t||(r.width=i.outerWidth(),r.height=i.outerHeight()),o=i.offset(),r.left=o.left,r.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)o=this.containers[n].element.offset(),this.containers[n].containerCache.left=o.left,this.containers[n].containerCache.top=o.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(t){var n,r=(t=t||this).options;r.placeholder&&r.placeholder.constructor!==String||(n=r.placeholder,r.placeholder={element:function(){var r=t.currentItem[0].nodeName.toLowerCase(),i=e("<"+r+">",t.document[0]);return t._addClass(i,"ui-sortable-placeholder",n||t.currentItem[0].className)._removeClass(i,"ui-sortable-helper"),"tbody"===r?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(i)):"tr"===r?t._createTrPlaceholder(t.currentItem,i):"img"===r&&i.attr("src",t.currentItem.attr("src")),n||i.css("visibility","hidden"),i},update:function(e,i){n&&!r.forcePlaceholderSize||(i.height()||i.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),i.width()||i.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(r.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),r.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,n){var r=this;t.children().each((function(){e("<td>&#160;</td>",r.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(n)}))},_contactContainers:function(t){var n,r,i,o,a,s,c,u,l,d,p=null,f=null;for(n=this.containers.length-1;n>=0;n--)if(!e.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(p&&e.contains(this.containers[n].element[0],p.element[0]))continue;p=this.containers[n],f=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",t,this._uiHash(this)),this.containers[n].containerCache.over=0);if(p)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(i=1e4,o=null,a=(l=p.floating||this._isFloating(this.currentItem))?"left":"top",s=l?"width":"height",d=l?"pageX":"pageY",r=this.items.length-1;r>=0;r--)e.contains(this.containers[f].element[0],this.items[r].item[0])&&this.items[r].item[0]!==this.currentItem[0]&&(c=this.items[r].item.offset()[a],u=!1,t[d]-c>this.items[r][s]/2&&(u=!0),Math.abs(t[d]-c)<i&&(i=Math.abs(t[d]-c),o=this.items[r],this.direction=u?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f])return void(this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(t,o,null,!0):this._rearrange(t,null,this.containers[f].element,!0),this._trigger("change",t,this._uiHash()),this.containers[f]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(t){var n=this.options,r=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return r.parents("body").length||e("parent"!==n.appendTo?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(r[0]),r[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),r[0].style.width&&!n.forceHelperSize||r.width(this.currentItem.width()),r[0].style.height&&!n.forceHelperSize||r.height(this.currentItem.height()),r},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,r,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=e(i.containment)[0],n=e(i.containment).offset(),r="hidden"!==e(t).css("overflow"),this.containment=[n.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,n.left+(r?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(r?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,n){n||(n=this.position);var r="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(i[0].tagName);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:i.scrollTop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:i.scrollLeft())*r}},_generatePosition:function(t){var n,r,i=this.options,o=t.pageX,a=t.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,c=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),i.grid&&(n=this.originalPageY+Math.round((a-this.originalPageY)/i.grid[1])*i.grid[1],a=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-i.grid[1]:n+i.grid[1]:n,r=this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0],o=this.containment?r-this.offset.click.left>=this.containment[0]&&r-this.offset.click.left<=this.containment[2]?r:r-this.offset.click.left>=this.containment[0]?r-i.grid[0]:r+i.grid[0]:r)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():c?0:s.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():c?0:s.scrollLeft())}},_rearrange:function(e,t,n,r){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var i=this.counter;this._delay((function(){i===this.counter&&this.refreshPositions(!r)}))},_clear:function(e,t){this.reverting=!1;var n,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function i(e,t,n){return function(r){n._trigger(e,r,t._uiHash(t))}}for(this.fromOutside&&!t&&r.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||r.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(t||(r.push((function(e){this._trigger("remove",e,this._uiHash())})),r.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)t||r.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(r.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n<r.length;n++)r[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var n=t||this;return{helper:n.helper,placeholder:n.placeholder||e([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:t?t.element:null}}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;

/*!

* jQuery UI :data 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/i=[n(53),n(118)],void 0===(o="function"==typeof(r=function(e){return e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(n){return!!e.data(n,t)}})):function(t,n,r){return!!e.data(t,r[3])}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;

/*!

* jQuery UI Scroll Parent 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/i=[n(53),n(118)],void 0===(o="function"==typeof(r=function(e){return e.fn.scrollParent=function(t){var n=this.css("position"),r="absolute"===n,i=t?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var t=e(this);return(!r||"static"!==t.css("position"))&&i.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==n&&o.length?o:e(this[0].ownerDocument||document)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(74);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var i=n.inverse,o=n.fn;if(!0===t)return o(this);if(!1===t||null==t)return i(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return o(t,n)}))},e.exports=t.default},function(e,t,n){"use strict";(function(r){t.__esModule=!0;var i,o=n(74),a=n(103),s=(i=a)&&i.__esModule?i:{default:i};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new s.default("Must pass iterator to #each");var n,i=t.fn,a=t.inverse,c=0,u="",l=void 0,d=void 0;function p(t,n,r){l&&(l.key=t,l.index=n,l.first=0===n,l.last=!!r,d&&(l.contextPath=d+t)),u+=i(e[t],{data:l,blockParams:o.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=o.appendContextPath(t.data.contextPath,t.ids[0])+"."),o.isFunction(e)&&(e=e.call(this)),t.data&&(l=o.createFrame(t.data)),e&&"object"==typeof e)if(o.isArray(e))for(var f=e.length;c<f;c++)c in e&&p(c,c,c===e.length-1);else if(r.Symbol&&e[r.Symbol.iterator]){for(var h=[],m=e[r.Symbol.iterator](),_=m.next();!_.done;_=m.next())h.push(_.value);for(f=(e=h).length;c<f;c++)p(c,c,c===e.length-1)}else n=void 0,Object.keys(e).forEach((function(e){void 0!==n&&p(n,c-1),n=e,c++})),void 0!==n&&p(n,c-1,!0);return 0===c&&(u=a(this)),u}))},e.exports=t.default}).call(this,n(41))},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(103),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(74),o=n(103),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new a.default("#if requires exactly one argument");return i.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||i.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,n){if(2!=arguments.length)throw new a.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),t[0]=i,e.log.apply(e,t)}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=/^(constructor|__defineGetter__|__defineSetter__|__lookupGetter__|__proto__)$/;t.dangerousPropertyRegex=r,t.default=function(e){e.registerHelper("lookup",(function(e,t){return e?!r.test(String(t))||Object.prototype.propertyIsEnumerable.call(e,t)?e[t]:void 0:e}))}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(74),o=n(103),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new a.default("#with requires exactly one argument");i.isFunction(e)&&(e=e.call(this));var n=t.fn;if(i.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=i.createFrame(t.data)).contextPath=i.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:r,blockParams:i.blockParams([e],[r&&r.contextPath])})}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.registerDefaultDecorators=function(e){o.default(e)};var r,i=n(472),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(74);t.default=function(e){e.registerDecorator("inline",(function(e,t,n,i){var o=e;return t.partials||(t.partials={},o=function(i,o){var a=n.partials;n.partials=r.extend({},a,t.partials);var s=e(i,o);return n.partials=a,s}),t.partials[i.args[0]]=i.fn,o}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(74),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(i.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];console[t].apply(console,r)}}};t.default=i,e.exports=t.default},function(e,t,n){"use strict";function r(e){this.string=e}t.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,n=s.COMPILER_REVISION;if(t>=s.LAST_COMPATIBLE_COMPILER_REVISION&&t<=s.COMPILER_REVISION)return;if(t<s.LAST_COMPATIBLE_COMPILER_REVISION){var r=s.REVISION_CHANGES[n],i=s.REVISION_CHANGES[t];throw new a.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new a.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")},t.template=function(e,t){if(!t)throw new a.default("No environment passed to template");if(!e||!e.main)throw new a.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&7===e.compiler[0];var r={strict:function(e,t,n){if(!e||!(t in e))throw new a.default('"'+t+'" not defined in '+e,{loc:n});return e[t]},lookup:function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r]&&null!=e[r][t])return e[r][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:i.escapeExpression,invokePartial:function(n,r,o){o.hash&&(r=i.extend({},r,o.hash),o.ids&&(o.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,o);var s=i.extend({},o,{hooks:this.hooks}),c=t.VM.invokePartial.call(this,n,r,s);if(null==c&&t.compile&&(o.partials[o.name]=t.compile(n,e.compilerOptions,t),c=o.partials[o.name](r,s)),null!=c){if(o.indent){for(var u=c.split("\n"),l=0,d=u.length;l<d&&(u[l]||l+1!==d);l++)u[l]=o.indent+u[l];c=u.join("\n")}return c}throw new a.default("The partial "+o.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,i){var o=this.programs[e],a=this.fn(e);return t||i||r||n?o=u(this,e,a,t,n,r,i):o||(o=this.programs[e]=u(this,e,a)),o},data:function(e,t){for(;e&&t--;)e=e._parent;return e},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=n.data;o._setup(n),!n.partial&&e.useData&&(i=d(t,i));var a=void 0,s=e.useBlockParams?[]:void 0;function c(t){return""+e.main(r,t,r.helpers,r.partials,i,s,a)}return e.useDepths&&(a=n.depths?t!=n.depths[0]?[t].concat(n.depths):n.depths:[t]),(c=p(e.main,c,r,n.depths||[],i,s))(t,n)}return o.isTop=!0,o._setup=function(o){if(o.partial)r.helpers=o.helpers,r.partials=o.partials,r.decorators=o.decorators,r.hooks=o.hooks;else{r.helpers=i.extend({},t.helpers,o.helpers),e.usePartial&&(r.partials=i.extend({},t.partials,o.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=i.extend({},t.decorators,o.decorators)),r.hooks={};var a=o.allowCallsToHelperMissing||n;c.moveHelperToHooks(r,"helperMissing",a),c.moveHelperToHooks(r,"blockHelperMissing",a)}},o._child=function(t,n,i,o){if(e.useBlockParams&&!i)throw new a.default("must pass block params");if(e.useDepths&&!o)throw new a.default("must pass parent depths");return u(r,t,e[t],n,0,i,o)},o},t.wrapProgram=u,t.resolvePartial=function(e,t,n){e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name];return e},t.invokePartial=function(e,t,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;n.fn&&n.fn!==l&&function(){n.data=s.createFrame(n.data);var e=n.fn;o=n.data["partial-block"]=function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=s.createFrame(n.data),n.data["partial-block"]=r,e(t,n)},e.partials&&(n.partials=i.extend({},n.partials,e.partials))}();void 0===e&&o&&(e=o);if(void 0===e)throw new a.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},t.noop=l;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(74)),o=n(103),a=(r=o)&&r.__esModule?r:{default:r},s=n(391),c=n(392);function u(e,t,n,r,i,o,a){function s(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a;return!a||t==a[0]||t===e.nullContext&&null===a[0]||(s=[t].concat(a)),n(e,t,e.helpers,e.partials,i.data||r,o&&[i.blockParams].concat(o),s)}return(s=p(n,s,e,a,r,o)).program=t,s.depth=a?a.length:0,s.blockParams=i||0,s}function l(){return""}function d(e,t){return t&&"root"in t||((t=t?s.createFrame(t):{}).root=e),t}function p(e,t,n,r,o,a){if(e.decorator){var s={};t=e.decorator(t,s,n,r&&r[0],o,a,r),i.extend(t,s)}return t}},function(e,t,n){"use strict";(function(n){t.__esModule=!0,t.default=function(e){var t=void 0!==n?n:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}},e.exports=t.default}).call(this,n(41))},function(e,t){!function(e){void 0===e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var n=e([0]),r=-1,i=this.length;++r<i&&(n.context=n[0]=this[r])&&!1!==t.call(n[0],r,n););return this}})}(jQuery),function(e,t){"use strict";if(void 0===window.Select2){var n,r,i,o,a,s,c,u,l={x:0,y:0},d={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},p={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};s=e(document),u=1,o=function(){return u++},n=T(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(t){var n,r;this.opts=t=this.prepareOpts(t),this.id=t.id,void 0!==t.element.data("select2")&&null!==t.element.data("select2")&&t.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(t.element.attr("id")||"autogen"+o()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",t.element.attr("title")),this.body=e("body"),k(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",t.element.attr("style")),this.container.css(S(t.containerCss,this.opts.element)),this.container.addClass(S(t.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",w),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),k(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(S(t.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",w),this.results=n=this.container.find(".select2-results"),this.search=r=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",w),this.results.on("mousemove",(function(t){var n=l;void 0!==n&&n.x===t.pageX&&n.y===t.pageY||e(t.target).trigger("mousemove-filtered",t)})),this.dropdown.on("mousemove-filtered",".select2-results",this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",".select2-results",this.bind((function(e){this._touchEvent=!0,this.highlightUnderEvent(e)}))),this.dropdown.on("touchmove",".select2-results",this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",".select2-results",this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind((function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())}))),function(e,t){var n=b(e,(function(e){t.trigger("scroll-debounced",e)}));t.on("scroll",(function(e){m(e.target,t.get())>=0&&n(e)}))}(80,this.results),this.dropdown.on("scroll-debounced",".select2-results",this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",(function(e){e.stopPropagation()})),e(this.dropdown).on("change",".select2-input",(function(e){e.stopPropagation()})),e.fn.mousewheel&&n.mousewheel((function(e,t,r,i){var o=n.scrollTop();i>0&&o-i<=0?(n.scrollTop(0),w(e)):i<0&&n.get(0).scrollHeight-n.scrollTop()+i<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),w(e))})),y(r),r.on("keyup-change input paste",this.bind(this.updateResults)),r.on("focus",(function(){r.addClass("select2-focused")})),r.on("blur",(function(){r.removeClass("select2-focused")})),this.dropdown.on("mouseup",".select2-results",this.bind((function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))}))),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",(function(e){e.stopPropagation()})),this.nextSearchTerm=void 0,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==t.maximumInputLength&&this.search.attr("maxlength",t.maximumInputLength);var i=t.element.prop("disabled");void 0===i&&(i=!1),this.enable(!i);var a=t.element.prop("readonly");void 0===a&&(a=!1),this.readonly(a),c=c||function(){var t=e("<div class='select2-measure-scrollbar'></div>");t.appendTo("body");var n={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),n}(),this.autofocus=t.element.prop("autofocus"),t.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",t.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,t=e.data("select2");this.close(),e.length&&e[0].detachEvent&&e.each((function(){this.detachEvent("onpropertychange",this._sync)})),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,void 0!==t&&(t.container.remove(),t.liveRegion.remove(),t.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show()),j.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:_(e.attr("locked"),"locked")||_(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(t){var n,r,i,a,s=this;if("select"===(n=t.element).get(0).tagName.toLowerCase()&&(this.select=r=t.element),r&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],(function(){if(this in t)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")})),"function"!=typeof(t=e.extend({},{populateResults:function(n,r,i){var a,c=this.opts.id,u=this.liveRegion;(a=function(n,r,l){var d,p,f,h,m,_,v,g,y,b,w=[];for(d=0,p=(n=t.sortResults(n,r,i)).length;d<p;d+=1)h=!(m=!0===(f=n[d]).disabled)&&void 0!==c(f),_=f.children&&f.children.length>0,(v=e("<li></li>")).addClass("select2-results-dept-"+l),v.addClass("select2-result"),v.addClass(h?"select2-result-selectable":"select2-result-unselectable"),m&&v.addClass("select2-disabled"),_&&v.addClass("select2-result-with-children"),v.addClass(s.opts.formatResultCssClass(f)),v.attr("role","presentation"),(g=e(document.createElement("div"))).addClass("select2-result-label"),g.attr("id","select2-result-label-"+o()),g.attr("role","option"),void 0!==(b=t.formatResult(f,g,i,s.opts.escapeMarkup))&&(g.html(b),v.append(g)),_&&((y=e("<ul></ul>")).addClass("select2-result-sub"),a(f.children,y,l+1),v.append(y)),v.data("select2-data",f),w.push(v[0]);r.append(w),u.text(t.formatMatches(n.length))})(r,n,0)}},e.fn.select2.defaults,t)).id&&(i=t.id,t.id=function(e){return e[i]}),e.isArray(t.element.data("select2Tags"))){if("tags"in t)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+t.element.attr("id");t.tags=t.element.data("select2Tags")}if(r?(t.query=this.bind((function(e){var t,r,i,o={results:[],more:!1},a=e.term;i=function(t,n){var r;t.is("option")?e.matcher(a,t.text(),t)&&n.push(s.optionToData(t)):t.is("optgroup")&&(r=s.optionToData(t),t.children().each2((function(e,t){i(t,r.children)})),r.children.length>0&&n.push(r))},t=n.children(),void 0!==this.getPlaceholder()&&t.length>0&&(r=this.getPlaceholderOption())&&(t=t.not(r)),t.each2((function(e,t){i(t,o.results)})),e.callback(o)})),t.id=function(e){return e.id}):"query"in t||("ajax"in t?((a=t.element.data("ajax-url"))&&a.length>0&&(t.ajax.url=a),t.query=M.call(t.element,t.ajax)):"data"in t?t.query=D(t.data):"tags"in t&&(t.query=x(t.tags),void 0===t.createSearchChoice&&(t.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),void 0===t.initSelection&&(t.initSelection=function(n,r){var i=[];e(v(n.val(),t.separator)).each((function(){var n={id:this,text:this},r=t.tags;e.isFunction(r)&&(r=r()),e(r).each((function(){if(_(this.id,n.id))return n=this,!1})),i.push(n)})),r(i)}))),"function"!=typeof t.query)throw"query function not defined for Select2 "+t.element.attr("id");if("top"===t.createSearchChoicePosition)t.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===t.createSearchChoicePosition)t.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof t.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return t},monitorSource:function(){var t,n=this.opts.element,r=this;n.on("change.select2",this.bind((function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}))),this._sync=this.bind((function(){var e=n.prop("disabled");void 0===e&&(e=!1),this.enable(!e);var t=n.prop("readonly");void 0===t&&(t=!1),this.readonly(t),k(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(S(this.opts.containerCssClass,this.opts.element)),k(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(S(this.opts.dropdownCssClass,this.opts.element))})),n.length&&n[0].attachEvent&&n.each((function(){this.attachEvent("onpropertychange",r._sync)})),void 0!==(t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new t((function(t){e.each(t,r._sync)})),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var n=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(n),!n.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){void 0===e&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){void 0===e&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,n,r,i,o,a=this.dropdown,s=this.container.offset(),u=this.container.outerHeight(!1),l=this.container.outerWidth(!1),d=a.outerHeight(!1),p=e(window),f=p.width(),h=p.height(),m=p.scrollLeft()+f,_=p.scrollTop()+h,v=s.top+u,g=s.left,y=v+d<=_,b=s.top-d>=p.scrollTop(),w=a.outerWidth(!1),k=g+w<=m;a.hasClass("select2-drop-above")?(n=!0,!b&&y&&(r=!0,n=!1)):(n=!1,!y&&b&&(r=!0,n=!0)),r&&(a.hide(),s=this.container.offset(),u=this.container.outerHeight(!1),l=this.container.outerWidth(!1),d=a.outerHeight(!1),m=p.scrollLeft()+f,_=p.scrollTop()+h,v=s.top+u,k=(g=s.left)+(w=a.outerWidth(!1))<=m,a.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(o=e(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(w=a.outerWidth(!1)+(o.scrollHeight===o.clientHeight?0:c.width))>l?l=w:w=l,d=a.outerHeight(!1),k=g+w<=m):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(v-=(t=this.body.offset()).top,g-=t.left),k||(g=s.left+this.container.outerWidth(!1)-w),i={left:g,width:l},n?(i.top=s.top-d,i.bottom="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(i.top=v,i.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),i=e.extend(i,S(this.opts.dropdownCss,this.opts.element)),a.css(i)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),s.on("mousemove.select2Event",(function(e){l.x=e.pageX,l.y=e.pageY})),!0)},opening:function(){var t,n=this.containerEventName,r="scroll."+n,i="resize."+n,o="orientationchange."+n;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0==(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",(function(n){f(t);var r,i=e("#select2-drop");i.length>0&&((r=i.data("select2")).opts.selectOnBlur&&r.selectHighlighted({noFocus:!0}),r.close(),n.preventDefault(),n.stopPropagation())}))),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each((function(){e(this).on(i+" "+r+" "+o,(function(e){a.opened()&&a.positionDropdown()}))}))},close:function(){if(this.opened()){var t=this.containerEventName,n="scroll."+t,r="resize."+t,i="orientationchange."+t;this.container.parents().add(window).each((function(){e(this).off(n).off(r).off(i)})),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),s.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return S(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,n,r,i,o,a,s,c,u=this.results;(n=this.highlight())<0||(0!=n?(t=this.findHighlightableChoices().find(".select2-result-label"),i=(c=((r=e(t[n])).offset()||{}).top||0)+r.outerHeight(!0),n===t.length-1&&(s=u.find("li.select2-more-results")).length>0&&(i=s.offset().top+s.outerHeight(!0)),i>(o=u.offset().top+u.outerHeight(!0))&&u.scrollTop(u.scrollTop()+(i-o)),(a=c-u.offset().top)<0&&"none"!=r.css("display")&&u.scrollTop(u.scrollTop()+a)):u.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var n=this.findHighlightableChoices(),r=this.highlight();r>-1&&r<n.length;){var i=e(n[r+=t]);if(i.hasClass("select2-result-selectable")&&!i.hasClass("select2-disabled")&&!i.hasClass("select2-selected")){this.highlight(r);break}}},highlight:function(t){var n,r,i=this.findHighlightableChoices();if(0===arguments.length)return m(i.filter(".select2-highlighted")[0],i.get());t>=i.length&&(t=i.length-1),t<0&&(t=0),this.removeHighlight(),(n=e(i[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",n.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(n.text()),(r=n.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(r),choice:r})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var n=e(t.target).closest(".select2-result-selectable");if(n.length>0&&!n.is(".select2-highlighted")){var r=this.findHighlightableChoices();this.highlight(r.index(n))}else 0==n.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),n=this.resultsPage+1,r=this,i=this.search.val(),o=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:i,page:n,context:o,matcher:this.opts.matcher,callback:this.bind((function(a){r.opened()&&(r.opts.populateResults.call(this,e,a.results,{term:i,page:n,context:o}),r.postprocessResults(a,!1,!1),!0===a.more?(t.detach().appendTo(e).text(S(r.opts.formatLoadMore,r.opts.element,n+1)),window.setTimeout((function(){r.loadMoreIfNeeded()}),10)):t.remove(),r.positionDropdown(),r.resultsPage=n,r.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))}))}))},tokenize:function(){},updateResults:function(t){var n,r,i,o=this.search,a=this.results,s=this.opts,c=this,u=o.val(),l=e.data(this.container,"select2-last-term");if((!0===t||!l||!_(u,l))&&(e.data(this.container,"select2-last-term",u),!0===t||!1!==this.showSearchInput&&this.opened())){i=++this.queryCount;var d=this.getMaximumSelectionSize();if(!(d>=1&&(n=this.data(),e.isArray(n)&&n.length>=d&&E(s.formatSelectionTooBig,"formatSelectionTooBig"))))return o.val().length<s.minimumInputLength?(E(s.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+S(s.formatInputTooShort,s.element,o.val(),s.minimumInputLength)+"</li>"):f(""),void(t&&this.showSearch&&this.showSearch(!0))):void(s.maximumInputLength&&o.val().length>s.maximumInputLength?E(s.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+S(s.formatInputTooLong,s.element,o.val(),s.maximumInputLength)+"</li>"):f(""):(s.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+S(s.formatSearching,s.element)+"</li>"),o.addClass("select2-active"),this.removeHighlight(),null!=(r=this.tokenize())&&null!=r&&o.val(r),this.resultsPage=1,s.query({element:s.element,term:o.val(),page:this.resultsPage,context:null,matcher:s.matcher,callback:this.bind((function(n){var r;i==this.queryCount&&(this.opened()?(this.context=void 0===n.context?null:n.context,this.opts.createSearchChoice&&""!==o.val()&&null!=(r=this.opts.createSearchChoice.call(c,o.val(),n.results))&&void 0!==c.id(r)&&null!==c.id(r)&&0===e(n.results).filter((function(){return _(c.id(this),c.id(r))})).length&&this.opts.createSearchChoicePosition(n.results,r),0===n.results.length&&E(s.formatNoMatches,"formatNoMatches")?f("<li class='select2-no-results'>"+S(s.formatNoMatches,s.element,o.val())+"</li>"):(a.empty(),c.opts.populateResults.call(this,a,n.results,{term:o.val(),page:this.resultsPage,context:null}),!0===n.more&&E(s.formatLoadMore,"formatLoadMore")&&(a.append("<li class='select2-more-results'>"+s.escapeMarkup(S(s.formatLoadMore,s.element,this.resultsPage))+"</li>"),window.setTimeout((function(){c.loadMoreIfNeeded()}),10)),this.postprocessResults(n,t),p(),this.opts.element.trigger({type:"select2-loaded",items:n}))):this.search.removeClass("select2-active"))}))})));f("<li class='select2-selection-limit'>"+S(s.formatSelectionTooBig,s.element,d)+"</li>")}function p(){o.removeClass("select2-active"),c.positionDropdown(),a.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.liveRegion.text(a.text()):c.liveRegion.text(c.opts.formatMatches(a.find(".select2-result-selectable").length))}function f(e){a.html(e),p()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var e;(e=this.search)[0]!==document.activeElement&&window.setTimeout((function(){var t,n=e[0],r=e.val().length;e.focus(),(n.offsetWidth>0||n.offsetHeight>0)&&n===document.activeElement&&(n.setSelectionRange?n.setSelectionRange(r,r):n.createTextRange&&((t=n.createTextRange()).collapse(!1),t.select()))}),0)},selectHighlighted:function(e){if(this._touchMoved)this.clearTouchMoved();else{var t=this.highlight(),n=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");n?(this.highlight(t),this.onSelect(n,e)):e&&e.noFocus&&this.close()}},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||(void 0!==(e=this.getPlaceholderOption())?e.text():void 0)},getPlaceholderOption:function(){if(this.select){var t=this.select.children("option").first();if(void 0!==this.opts.placeholderOption)return"first"===this.opts.placeholderOption&&t||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(t.text())&&""===t.val())return t}},initContainerWidth:function(){var t=function(){var t,n,r,i,o;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(void 0!==(t=this.opts.element.attr("style")))for(i=0,o=(n=t.split(";")).length;i<o;i+=1)if(null!==(r=n[i].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&r.length>=1)return r[1];return"resolve"===this.opts.width?(t=this.opts.element.css("width")).indexOf("%")>0?t:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==t&&this.container.css("width",t)}}),r=T(n,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,n,r;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(t=this.search.get(0)).createTextRange?((n=t.createTextRange()).collapse(!1),n.select()):t.setSelectionRange&&(r=this.search.val().length,t.setSelectionRange(r,r))),""===this.search.val()&&null!=this.nextSearchTerm&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),j.call(this,"selection","focusser")},initContainer:function(){var t,n,r=this.container,i=this.dropdown,a=o();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=r.find(".select2-choice"),this.focusser=r.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),n=e("label[for='"+this.opts.element.attr("id")+"']"),this.focusser.prev().text(n.text()).attr("for",this.focusser.attr("id"));var s=this.opts.element.attr("title");this.opts.element.attr("title",s||n.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind((function(e){if(this.isInterfaceEnabled())if(e.which!==d.PAGE_UP&&e.which!==d.PAGE_DOWN)switch(e.which){case d.UP:case d.DOWN:return this.moveHighlight(e.which===d.UP?-1:1),void w(e);case d.ENTER:return this.selectHighlighted(),void w(e);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(e),void w(e)}else w(e)}))),this.search.on("blur",this.bind((function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind((function(){this.opened()&&this.search.focus()})),0)}))),this.focusser.on("keydown",this.bind((function(e){if(this.isInterfaceEnabled()&&e.which!==d.TAB&&!d.isControl(e)&&!d.isFunctionKey(e)&&e.which!==d.ESC){if(!1!==this.opts.openOnEnter||e.which!==d.ENTER){if(e.which==d.DOWN||e.which==d.UP||e.which==d.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void w(e)}return e.which==d.DELETE||e.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void w(e)):void 0}w(e)}}))),y(this.focusser),this.focusser.on("keyup-change input",this.bind((function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}}))),t.on("mousedown touchstart","abbr",this.bind((function(e){this.isInterfaceEnabled()&&(this.clear(),function(e){e.preventDefault(),e.stopImmediatePropagation()}(e),this.close(),this.selection.focus())}))),t.on("mousedown touchstart",this.bind((function(n){f(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),w(n)}))),i.on("mousedown touchstart",this.bind((function(){this.opts.shouldFocusInput(this)&&this.search.focus()}))),t.on("focus",this.bind((function(e){w(e)}))),this.focusser.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")}))).on("blur",this.bind((function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))}))),this.search.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(t){var n=this.selection.data("select2-data");if(n){var r=e.Event("select2-clearing");if(this.opts.element.trigger(r),r.isDefaultPrevented())return;var i=this.getPlaceholderOption();this.opts.element.val(i?i.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(n),choice:n}),this.triggerChange({removed:n}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,(function(t){null!=t&&(e.updateSelection(t),e.close(),e.setPlaceholder(),e.nextSearchTerm=e.opts.nextSearchTerm(t,e.search.val()))}))}},isPlaceholderOptionSelected:function(){var e;return void 0!==this.getPlaceholder()&&(void 0!==(e=this.getPlaceholderOption())&&e.prop("selected")||""===this.opts.element.val()||void 0===this.opts.element.val()||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var r=e.find("option").filter((function(){return this.selected&&!this.disabled}));t(n.optionToData(r))}:"data"in t&&(t.initSelection=t.initSelection||function(n,r){var i=n.val(),o=null;t.query({matcher:function(e,n,r){var a=_(i,t.id(r));return a&&(o=r),a},callback:e.isFunction(r)?function(){r(o)}:e.noop})}),t},getPlaceholder:function(){if(!this.select||void 0!==this.getPlaceholderOption())return this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&void 0!==e){if(this.select&&void 0===this.getPlaceholderOption())return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,n,r){var i=0,o=this;if(this.findHighlightableChoices().each2((function(e,t){if(_(o.id(t.data("select2-data")),o.opts.element.val()))return i=e,!1})),!1!==r&&(!0===n&&i>=0?this.highlight(i):this.highlight(0)),!0===n){var a=this.opts.minimumResultsForSearch;a>=0&&this.showSearch(function t(n){var r=0;return e.each(n,(function(e,n){n.children?r+=t(n.children):r++})),r}(t.results)>=a)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var n=this.opts.element.val(),r=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),_(n,this.id(e))||this.triggerChange({added:e,removed:r})}},updateSelection:function(e){var t,n,r=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),r.empty(),null!==e&&(t=this.opts.formatSelection(e,r,this.opts.escapeMarkup)),void 0!==t&&r.append(t),void 0!==(n=this.opts.formatSelectionCssClass(e,r))&&r.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&void 0!==this.getPlaceholder()&&this.container.addClass("select2-allowclear")},val:function(){var e,t=!1,n=null,r=this,i=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(t=arguments[1]),this.select)this.select.val(e).find("option").filter((function(){return this.selected})).each2((function(e,t){return n=r.optionToData(t),!1})),this.updateSelection(n),this.setPlaceholder(),t&&this.triggerChange({added:n,removed:i});else{if(!e&&0!==e)return void this.clear(t);if(void 0===this.opts.initSelection)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,(function(e){r.opts.element.val(e?r.id(e):""),r.updateSelection(e),r.setPlaceholder(),t&&r.triggerChange({added:e,removed:i})}))}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var t,n=!1;if(0===arguments.length)return null==(t=this.selection.data("select2-data"))&&(t=null),t;arguments.length>1&&(n=arguments[1]),e?(t=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:t})):this.clear(n)}}),i=T(n,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field'>","    <label for='' class='select2-offscreen'></label>","    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>","  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var r=[];e.find("option").filter((function(){return this.selected&&!this.disabled})).each2((function(e,t){r.push(n.optionToData(t))})),t(r)}:"data"in t&&(t.initSelection=t.initSelection||function(n,r){var i=v(n.val(),t.separator),o=[];t.query({matcher:function(n,r,a){var s=e.grep(i,(function(e){return _(e,t.id(a))})).length;return s&&o.push(a),s},callback:e.isFunction(r)?function(){for(var e=[],n=0;n<i.length;n++)for(var a=i[n],s=0;s<o.length;s++){var c=o[s];if(_(a,t.id(c))){e.push(c),o.splice(s,1);break}}r(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),j.call(this,"searchContainer","selection")},initContainer:function(){var t,n=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(n);var r=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",(function(t){r.search[0].focus(),r.selectChoice(e(this))})),this.search.attr("id","s2id_autogen"+o()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("input paste",this.bind((function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())}))),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind((function(n){if(this.isInterfaceEnabled()){++this.keydowns;var r=t.find(".select2-search-choice-focus"),i=r.prev(".select2-search-choice:not(.select2-locked)"),o=r.next(".select2-search-choice:not(.select2-locked)"),a=function(t){var n=0,r=0;if("selectionStart"in(t=e(t)[0]))n=t.selectionStart,r=t.selectionEnd-n;else if("selection"in document){t.focus();var i=document.selection.createRange();r=document.selection.createRange().text.length,i.moveStart("character",-t.value.length),n=i.text.length-r}return{offset:n,length:r}}(this.search);if(r.length&&(n.which==d.LEFT||n.which==d.RIGHT||n.which==d.BACKSPACE||n.which==d.DELETE||n.which==d.ENTER)){var s=r;return n.which==d.LEFT&&i.length?s=i:n.which==d.RIGHT?s=o.length?o:null:n.which===d.BACKSPACE?this.unselect(r.first())&&(this.search.width(10),s=i.length?i:o):n.which==d.DELETE?this.unselect(r.first())&&(this.search.width(10),s=o.length?o:null):n.which==d.ENTER&&(s=null),this.selectChoice(s),w(n),void(s&&s.length||this.open())}if((n.which===d.BACKSPACE&&1==this.keydowns||n.which==d.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void w(n);if(this.selectChoice(null),this.opened())switch(n.which){case d.UP:case d.DOWN:return this.moveHighlight(n.which===d.UP?-1:1),void w(n);case d.ENTER:return this.selectHighlighted(),void w(n);case d.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case d.ESC:return this.cancel(n),void w(n)}if(n.which!==d.TAB&&!d.isControl(n)&&!d.isFunctionKey(n)&&n.which!==d.BACKSPACE&&n.which!==d.ESC){if(n.which===d.ENTER){if(!1===this.opts.openOnEnter)return;if(n.altKey||n.ctrlKey||n.shiftKey||n.metaKey)return}this.open(),n.which!==d.PAGE_UP&&n.which!==d.PAGE_DOWN||w(n),n.which===d.ENTER&&w(n)}}}))),this.search.on("keyup",this.bind((function(e){this.keydowns=0,this.resizeSearch()}))),this.search.on("blur",this.bind((function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))}))),this.container.on("click",n,this.bind((function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))}))),this.container.on("focus",n,this.bind((function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,(function(t){null!=t&&(e.updateSelection(t),e.close(),e.clearSearch())}))}},clearSearch:function(){var e=this.getPlaceholder(),t=this.getMaxSearchWidth();void 0!==e&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(t>0?t:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&null!=this.nextSearchTerm&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var n=[],r=[],i=this;e(t).each((function(){m(i.id(this),n)<0&&(n.push(i.id(this)),r.push(this))})),t=r,this.selection.find(".select2-search-choice").remove(),e(t).each((function(){i.addSelectedChoice(this)})),i.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&null!=e&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):null!=this.nextSearchTerm&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(t){var n,r,i=!t.locked,o=e("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),a=e("<li class='select2-search-choice select2-locked'><div></div></li>"),s=i?o:a,c=this.id(t),u=this.getVal();null!=(n=this.opts.formatSelection(t,s.find("div"),this.opts.escapeMarkup))&&s.find("div").replaceWith("<div>"+n+"</div>"),null!=(r=this.opts.formatSelectionCssClass(t,s.find("div")))&&s.addClass(r),i&&s.find(".select2-search-choice-close").on("mousedown",w).on("click dblclick",this.bind((function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),w(t),this.close(),this.focusSearch())}))).on("focus",this.bind((function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}))),s.data("select2-data",t),s.insertBefore(this.searchContainer),u.push(c),this.setVal(u)},unselect:function(t){var n,r,i=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(n=t.data("select2-data")){var o=e.Event("select2-removing");if(o.val=this.id(n),o.choice=n,this.opts.element.trigger(o),o.isDefaultPrevented())return!1;for(;(r=m(this.id(n),i))>=0;)i.splice(r,1),this.setVal(i),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(n),choice:n}),this.triggerChange({removed:n}),!0}},postprocessResults:function(e,t,n){var r=this.getVal(),i=this.results.find(".select2-result"),o=this.results.find(".select2-result-with-children"),a=this;i.each2((function(e,t){m(a.id(t.data("select2-data")),r)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))})),o.each2((function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")})),-1==this.highlight()&&!1!==n&&a.highlight(0),!this.opts.createSearchChoice&&!i.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&E(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+S(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-g(this.search)},resizeSearch:function(){var t,n,r,i,o=g(this.search);t=function(t){if(!a){var n=t[0].currentStyle||window.getComputedStyle(t[0],null);(a=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:n.fontSize,fontFamily:n.fontFamily,fontStyle:n.fontStyle,fontWeight:n.fontWeight,letterSpacing:n.letterSpacing,textTransform:n.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),e("body").append(a)}return a.text(t.val()),a.width()}(this.search)+10,n=this.search.offset().left,(i=(r=this.selection.width())-(n-this.selection.offset().left)-o)<t&&(i=r-o),i<40&&(i=r-o),i<=0&&(i=t),this.search.width(Math.floor(i))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:v(e=this.opts.element.val(),this.opts.separator)},setVal:function(t){var n;this.select?this.select.val(t):(n=[],e(t).each((function(){m(this,n)<0&&n.push(this)})),this.opts.element.val(0===n.length?"":n.join(this.opts.separator)))},buildChangeDetails:function(e,t){t=t.slice(0),e=e.slice(0);for(var n=0;n<t.length;n++)for(var r=0;r<e.length;r++)_(this.opts.id(t[n]),this.opts.id(e[r]))&&(t.splice(n,1),n>0&&n--,e.splice(r,1),r--);return{added:t,removed:e}},val:function(t,n){var r,i=this;if(0===arguments.length)return this.getVal();if((r=this.data()).length||(r=[]),!t&&0!==t)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:r}));if(this.setVal(t),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(r,this.data()));else{if(void 0===this.opts.initSelection)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,(function(t){var o=e.map(t,i.id);i.setVal(o),i.updateSelection(t),i.clearSearch(),n&&i.triggerChange(i.buildChangeDetails(r,i.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],n=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each((function(){t.push(n.opts.id(e(this).data("select2-data")))})),this.setVal(t),this.triggerChange()},data:function(t,n){var r,i,o=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map((function(){return e(this).data("select2-data")})).get();i=this.data(),t||(t=[]),r=e.map(t,(function(e){return o.opts.id(e)})),this.setVal(r),this.updateSelection(t),this.clearSearch(),n&&this.triggerChange(this.buildChangeDetails(i,this.data()))}}),e.fn.select2=function(){var t,n,r,i,o,a=Array.prototype.slice.call(arguments,0),s=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],u=["val","data"],l={search:"externalSearch"};return this.each((function(){if(0===a.length||"object"==typeof a[0])(t=0===a.length?{}:e.extend({},a[0])).element=e(this),"select"===t.element.get(0).tagName.toLowerCase()?o=t.element.prop("multiple"):(o=t.multiple||!1,"tags"in t&&(t.multiple=o=!0)),(n=o?new window.Select2.class.multi:new window.Select2.class.single).init(t);else{if("string"!=typeof a[0])throw"Invalid arguments to select2 plugin: "+a;if(m(a[0],s)<0)throw"Unknown method: "+a[0];if(i=void 0,void 0===(n=e(this).data("select2")))return;if("container"===(r=a[0])?i=n.container:"dropdown"===r?i=n.dropdown:(l[r]&&(r=l[r]),i=n[r].apply(n,a.slice(1))),m(a[0],c)>=0||m(a[0],u)>=0&&1==a.length)return!1}})),void 0===i?this:i},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,n,r){var i=[];return O(e.text,n.term,i,r),i.join("")},formatSelection:function(e,t,n){return e?n(e.text):void 0},sortResults:function(e,t,n){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,t){},formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(e,t){var n=t-e.length;return"Please enter "+n+" or more character"+(1==n?"":"s")},formatInputTooLong:function(e,t){var n=e.length-t;return"Please delete "+n+" character"+(1==n?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return null==e?null:e.id},matcher:function(e,t){return h(""+t).toUpperCase().indexOf(h(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,t,n,r){var i,o,a,s,c,u=e,l=!1;if(r.createSearchChoice&&r.tokenSeparators&&!(r.tokenSeparators.length<1)){for(;;){for(o=-1,a=0,s=r.tokenSeparators.length;a<s&&(c=r.tokenSeparators[a],!((o=e.indexOf(c))>=0));a++);if(o<0)break;if(i=e.substring(0,o),e=e.substring(o+c.length),i.length>0&&null!=(i=r.createSearchChoice.call(this,i,t))&&void 0!==r.id(i)&&null!==r.id(i)){for(l=!1,a=0,s=t.length;a<s;a++)if(_(r.id(i),r.id(t[a]))){l=!0;break}l||n(i)}}return u!==e?e:void 0}},escapeMarkup:C,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,t){},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window||navigator.msMaxTouchPoints>0)||!(e.opts.minimumResultsForSearch<0)}},e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:M,local:D,tags:x},util:{debounce:b,markMatch:O,escapeMarkup:C,stripDiacritics:h},class:{abstract:n,single:r,multi:i}}}function f(t){var n=e(document.createTextNode(""));t.before(n),n.before(t),n.remove()}function h(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return p[e]||e}))}function m(e,t){for(var n=0,r=t.length;n<r;n+=1)if(_(e,t[n]))return n;return-1}function _(e,t){return e===t||void 0!==e&&void 0!==t&&(null!==e&&null!==t&&(e.constructor===String?e+""==t+"":t.constructor===String&&t+""==e+""))}function v(t,n){var r,i,o;if(null===t||t.length<1)return[];for(i=0,o=(r=t.split(n)).length;i<o;i+=1)r[i]=e.trim(r[i]);return r}function g(e){return e.outerWidth(!1)-e.width()}function y(t){var n="keyup-change-value";t.on("keydown",(function(){void 0===e.data(t,n)&&e.data(t,n,t.val())})),t.on("keyup",(function(){var r=e.data(t,n);void 0!==r&&t.val()!==r&&(e.removeData(t,n),t.trigger("keyup-change"))}))}function b(e,t,n){var r;return n=n||void 0,function(){var i=arguments;window.clearTimeout(r),r=window.setTimeout((function(){t.apply(n,i)}),e)}}function w(e){e.preventDefault(),e.stopPropagation()}function k(t,n,r){var i,o,a=[];(i=e.trim(t.attr("class")))&&e((i=""+i).split(/\s+/)).each2((function(){0===this.indexOf("select2-")&&a.push(this)})),(i=e.trim(n.attr("class")))&&e((i=""+i).split(/\s+/)).each2((function(){0!==this.indexOf("select2-")&&(o=r(this))&&a.push(o)})),t.attr("class",a.join(" "))}function O(e,t,n,r){var i=h(e.toUpperCase()).indexOf(h(t.toUpperCase())),o=t.length;i<0?n.push(r(e)):(n.push(r(e.substring(0,i))),n.push("<span class='select2-match'>"),n.push(r(e.substring(i,i+o))),n.push("</span>"),n.push(r(e.substring(i+o,e.length))))}function C(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))}function M(t){var n,r=null,i=t.quietMillis||100,o=t.url,a=this;return function(s){window.clearTimeout(n),n=window.setTimeout((function(){var n=t.data,i=o,c=t.transport||e.fn.select2.ajaxDefaults.transport,u={type:t.type||"GET",cache:t.cache||!1,jsonpCallback:t.jsonpCallback||void 0,dataType:t.dataType||"json"},l=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(a,s.term,s.page,s.context):null,i="function"==typeof i?i.call(a,s.term,s.page,s.context):i,r&&"function"==typeof r.abort&&r.abort(),t.params&&(e.isFunction(t.params)?e.extend(l,t.params.call(a)):e.extend(l,t.params)),e.extend(l,{url:i,dataType:t.dataType,data:n,success:function(e){var n=t.results(e,s.page,s);s.callback(n)}}),r=c.call(a,l)}),i)}}function D(t){var n,r,i=t,o=function(e){return""+e.text};e.isArray(i)&&(i={results:r=i}),!1===e.isFunction(i)&&(r=i,i=function(){return r});var a=i();return a.text&&(o=a.text,e.isFunction(o)||(n=a.text,o=function(e){return e[n]})),function(t){var n,r=t.term,a={results:[]};""!==r?(n=function(i,a){var s,c;if((i=i[0]).children){for(c in s={},i)i.hasOwnProperty(c)&&(s[c]=i[c]);s.children=[],e(i.children).each2((function(e,t){n(t,s.children)})),(s.children.length||t.matcher(r,o(s),i))&&a.push(s)}else t.matcher(r,o(i),i)&&a.push(i)},e(i().results).each2((function(e,t){n(t,a.results)})),t.callback(a)):t.callback(i())}}function x(t){var n=e.isFunction(t);return function(r){var i=r.term,o={results:[]},a=n?t(r):t;e.isArray(a)&&(e(a).each((function(){var e=void 0!==this.text,t=e?this.text:this;(""===i||r.matcher(i,t))&&o.results.push(e?this:{id:this,text:this})})),r.callback(o))}}function E(t,n){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(n+" must be a string, function, or falsy value")}function S(t,n){if(e.isFunction(t)){var r=Array.prototype.slice.call(arguments,2);return t.apply(n,r)}return t}function j(){var t=this;e.each(arguments,(function(e,n){t[n].remove(),t[n]=null}))}function T(t,n){var r=function(){};return(r.prototype=new t).constructor=r,r.prototype.parent=t.prototype,r.prototype=e.extend(r.prototype,n),r}}(jQuery)},function(e,t,n){"use strict";var r=n(479);window.ScrivitoHandlebarsTemplates={},r.keys().forEach((function(e){var t=e.replace(/^\.\//,"").replace(".hbs","");window.ScrivitoHandlebarsTemplates[t]=r(e)}))},function(e,t,n){var r={"./choose_obj_class_dialog.hbs":480,"./confirmation_dialog.hbs":481,"./current_page_link_dialog.hbs":482,"./details_dialog.hbs":483,"./editable_workspace_dialog.hbs":484,"./element_overlay.hbs":485,"./iframe_dialog.hbs":486,"./inplace_marker.hbs":487,"./menu.hbs":488,"./menu_item.hbs":489,"./menu_item/icon.hbs":490,"./menu_item/icon_hex.hbs":491,"./menu_item/icon_sci.hbs":492,"./menu_item/separator.hbs":493,"./menu_item/spinner.hbs":494,"./obj_menu.hbs":495,"./obj_sorting_dialog.hbs":496,"./option_marker.hbs":497,"./overlay.hbs":498,"./saving_indicator.hbs":499,"./saving_overlay.hbs":500,"./title.hbs":501,"./transfer_errors_dialog.hbs":502,"./widget_element_placeholder.hbs":503};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=479},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{},s=e.escapeExpression;return'<div class="scrivito_choose_obj_class_dialog scrivito_modal_large adjust_dialog">\n\n  <div class="scrivito_modal_header">\n    <h3><i class="scrivito_icon">&#61498;</i>'+s("function"==typeof(o=null!=(o=n.title||(null!=t?t.title:t))?o:e.hooks.helperMissing)?o.call(a,{name:"title",hash:{},data:i,loc:{start:{line:4,column:45},end:{line:4,column:54}}}):o)+'</h3>\n  </div>\n\n  <div class="scrivito_modal_body scrivito_auto_height">\n    <div id="scrivito_replace_with_real_obj_classes">\n      <i class="scrivito_icon scrivito_spinning" title="'+s(n.translate.call(a,"loading",{name:"translate",hash:{},data:i,loc:{start:{line:9,column:56},end:{line:9,column:79}}}))+'">&#61475;</i>\n      '+s(n.translate.call(a,"loading",{name:"translate",hash:{},data:i,loc:{start:{line:10,column:6},end:{line:10,column:29}}}))+'\n    </div>\n  </div>\n\n  <div class="scrivito_modal_footer">\n    <a href="#" class="scrivito_button scrivito_cancel">'+s(n.translate.call(a,"cancel",{name:"translate",hash:{},data:i,loc:{start:{line:15,column:56},end:{line:15,column:78}}}))+"</a>\n  </div>\n\n</div>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return"scrivito_"+e.escapeExpression("function"==typeof(o=null!=(o=n.color||(null!=t?t.color:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"color",hash:{},data:i,loc:{start:{line:2,column:26},end:{line:2,column:35}}}):o)},3:function(e,t,n,r,i){var o;return"      <p>"+e.escapeExpression("function"==typeof(o=null!=(o=n.description||(null!=t?t.description:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"description",hash:{},data:i,loc:{start:{line:8,column:9},end:{line:8,column:24}}}):o)+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u="function",l=e.escapeExpression;return'<div class="scrivito_confirmation_dialog scrivito_modal_prompt scrivito_center_dialog\n    '+(null!=(o=n.if.call(s,null!=t?t.color:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:2,column:4},end:{line:2,column:42}}}))?o:"")+'">\n  <div class="scrivito_modal_header">\n    <i class="scrivito_icon">'+(null!=(o=typeof(a=null!=(a=n.icon||(null!=t?t.icon:t))?a:c)===u?a.call(s,{name:"icon",hash:{},data:i,loc:{start:{line:4,column:29},end:{line:4,column:39}}}):a)?o:"")+'</i>\n    <h3 class="scrivito_title">'+l(typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:c)===u?a.call(s,{name:"title",hash:{},data:i,loc:{start:{line:5,column:31},end:{line:5,column:40}}}):a)+"</h3>\n\n"+(null!=(o=n.if.call(s,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:7,column:4},end:{line:9,column:11}}}))?o:"")+'  </div>\n\n  <div class="scrivito_modal_footer">\n    <a href="#" class="scrivito_button scrivito_'+l(typeof(a=null!=(a=n.cancel_button_color||(null!=t?t.cancel_button_color:t))?a:c)===u?a.call(s,{name:"cancel_button_color",hash:{},data:i,loc:{start:{line:13,column:48},end:{line:13,column:71}}}):a)+' scrivito_cancel">\n      '+l(typeof(a=null!=(a=n.cancel_button_text||(null!=t?t.cancel_button_text:t))?a:c)===u?a.call(s,{name:"cancel_button_text",hash:{},data:i,loc:{start:{line:14,column:6},end:{line:14,column:28}}}):a)+'\n    </a>\n    <a href="#" class="scrivito_button scrivito_'+l(typeof(a=null!=(a=n.confirm_button_color||(null!=t?t.confirm_button_color:t))?a:c)===u?a.call(s,{name:"confirm_button_color",hash:{},data:i,loc:{start:{line:16,column:48},end:{line:16,column:72}}}):a)+' scrivito_confirm">\n      '+l(typeof(a=null!=(a=n.confirm_button_text||(null!=t?t.confirm_button_text:t))?a:c)===u?a.call(s,{name:"confirm_button_text",hash:{},data:i,loc:{start:{line:17,column:6},end:{line:17,column:29}}}):a)+"\n    </a>\n  </div>\n</div>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{},s=e.escapeExpression;return'<div class="scrivito_current_page_link_dialog scrivito_modal_prompt scrivito_center_dialog scrivito_green">\n  <div class="scrivito_modal_header">\n    <i class="scrivito_icon scrivito_icon_link"></i>\n    <h3 class="scrivito_title">'+s(n.translate.call(a,"current_page_link_dialog.title",{name:"translate",hash:{},data:i,loc:{start:{line:4,column:31},end:{line:4,column:77}}}))+'</h3>\n  </div>\n  <div class="scrivito_modal_body">\n    <div>\n      <p>'+s(n.translate.call(a,"current_page_link_dialog.description",{name:"translate",hash:{},data:i,loc:{start:{line:8,column:9},end:{line:8,column:61}}}))+'</p>\n      <input class="scrivito_full_width" type="text" readonly="readonly" value="'+s("function"==typeof(o=null!=(o=n.current_page_link||(null!=t?t.current_page_link:t))?o:e.hooks.helperMissing)?o.call(a,{name:"current_page_link",hash:{},data:i,loc:{start:{line:9,column:80},end:{line:9,column:101}}}):o)+'">\n    </div>\n  </div>\n  <div class="scrivito_modal_footer">\n    <a class="scrivito_button scrivito_done scrivito_lightgrey" href="#">'+s(n.translate.call(a,"close",{name:"translate",hash:{},data:i,loc:{start:{line:13,column:73},end:{line:13,column:94}}}))+"</a>\n  </div>\n</div>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){return'      <div class="scrivito_button_bar scrivito_hamburger scrivito_obj_menu"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="scrivito_details_dialog scrivito_modal_medium adjust_dialog">\n  <div class="scrivito_modal_header">\n    <h3><i class="scrivito_icon">&#xf030;</i>'+u("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:c)?a.call(s,{name:"title",hash:{},data:i,loc:{start:{line:3,column:45},end:{line:3,column:54}}}):a)+'</h3>\n    <div class="scrivito_saving_indicator"></div>\n\n'+(null!=(o=n.if.call(s,null!=t?t.obj:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:6,column:4},end:{line:8,column:11}}}))?o:"")+'  </div>\n\n  <div class="scrivito_modal_body scrivito_auto_height">\n    <i class="scrivito_icon scrivito_spinning">&#xf023;</i>\n    <div class="scrivito_details_dialog_markup scrivito_auto_height">\n      <iframe src="'+(null!=(o="function"==typeof(a=null!=(a=n.src||(null!=t?t.src:t))?a:c)?a.call(s,{name:"src",hash:{},data:i,loc:{start:{line:14,column:19},end:{line:14,column:28}}}):a)?o:"")+'" name="scrivito_details_dialog" class="scrivito_auto_height"></iframe>\n    </div>\n  </div>\n\n  <div class="scrivito_modal_footer">\n    <a href="#" class="scrivito_button scrivito_cancel scrivito_green">'+u(n.translate.call(s,"done",{name:"translate",hash:{},data:i,loc:{start:{line:19,column:71},end:{line:19,column:91}}}))+"</a>\n  </div>\n</div>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){return"scrivito_green"},3:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{};return'    <div class="scrivito_input_list_of_ws">\n      <label for="scrivito_list_of_ws">'+e.escapeExpression(n.translate.call(a,"editable_ws_dialog.choose_existing",{name:"translate",hash:{},data:i,loc:{start:{line:18,column:39},end:{line:18,column:89}}}))+'</label>\n      <select id="scrivito_list_of_ws">\n'+(null!=(o=n.each.call(a,null!=t?t.workspaces:t,{name:"each",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:20,column:8},end:{line:24,column:17}}}))?o:"")+"      </select>\n    </div>\n"},4:function(e,t,n,r,i){var o=e.lambda,a=e.escapeExpression;return'        <option value="'+a(o(null!=t?t.id:t,t))+'">\n          '+a(o(null!=t?t.titleForEditor:t,t))+"\n        </option>\n"},6:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{};return'      <div class="scrivito_input_new_ws_name">\n        <label for="scrivito_new_ws_name">\n'+(null!=(o=n.if.call(a,null!=t?t.workspaces:t,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.program(9,i,0),data:i,loc:{start:{line:31,column:10},end:{line:35,column:17}}}))?o:"")+'        </label>\n        <input type="text" id="scrivito_new_ws_name" value=""\n            placeholder="'+e.escapeExpression(n.translate.call(a,"editable_ws_dialog.create_new_playholder",{name:"translate",hash:{},data:i,loc:{start:{line:38,column:25},end:{line:38,column:81}}}))+'">\n      </div>\n'},7:function(e,t,n,r,i){return"            "+e.escapeExpression(n.translate.call(null!=t?t:e.nullContext||{},"editable_ws_dialog.or_create_new",{name:"translate",hash:{},data:i,loc:{start:{line:32,column:12},end:{line:32,column:60}}}))+"\n"},9:function(e,t,n,r,i){return"            "+e.escapeExpression(n.translate.call(null!=t?t:e.nullContext||{},"editable_ws_dialog.create_new",{name:"translate",hash:{},data:i,loc:{start:{line:34,column:12},end:{line:34,column:57}}}))+"\n"},11:function(e,t,n,r,i){var o=null!=t?t:e.nullContext||{},a=e.escapeExpression;return'      <a href="#" class="scrivito_button scrivito_cancel">'+a(n.translate.call(o,"cancel",{name:"translate",hash:{},data:i,loc:{start:{line:44,column:58},end:{line:44,column:80}}}))+'</a>\n      <a href="#" class="scrivito_button scrivito_green scrivito_confirm">'+a(n.translate.call(o,"confirm",{name:"translate",hash:{},data:i,loc:{start:{line:45,column:74},end:{line:45,column:97}}}))+"</a>\n"},13:function(e,t,n,r,i){return'      <a href="#" class="scrivito_button scrivito_cancel">'+e.escapeExpression(n.translate.call(null!=t?t:e.nullContext||{},"close",{name:"translate",hash:{},data:i,loc:{start:{line:47,column:58},end:{line:47,column:79}}}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="scrivito_editable_workspace_dialog scrivito_modal_prompt scrivito_center_dialog\n    '+(null!=(o=n.if.call(s,null!=t?t.can_select_or_create:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:2,column:4},end:{line:2,column:53}}}))?o:"")+'">\n  <div class="scrivito_modal_header">\n    <i class="scrivito_icon">&#xf011;</i>\n    <h3 class="scrivito_title">\n      '+u("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:c)?a.call(s,{name:"title",hash:{},data:i,loc:{start:{line:6,column:6},end:{line:6,column:15}}}):a)+'\n    </h3>\n  </div>\n  <div class="scrivito_modal_body">\n    <div>\n      '+u("function"==typeof(a=null!=(a=n.description||(null!=t?t.description:t))?a:c)?a.call(s,{name:"description",hash:{},data:i,loc:{start:{line:11,column:6},end:{line:11,column:21}}}):a)+"\n    </div>\n    <div>\n      &nbsp;\n    </div>\n"+(null!=(o=n.if.call(s,null!=t?t.workspaces:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:16,column:4},end:{line:27,column:11}}}))?o:"")+(null!=(o=n.if.call(s,null!=t?t.can_create:t,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i,loc:{start:{line:28,column:4},end:{line:40,column:11}}}))?o:"")+'  </div>\n  <div class="scrivito_modal_footer">\n'+(null!=(o=n.if.call(s,null!=t?t.can_select_or_create:t,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.program(13,i,0),data:i,loc:{start:{line:43,column:4},end:{line:48,column:11}}}))?o:"")+"  </div>\n</div>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="scrivito_element_overlay"></div>\n'},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return"scrivito_"+e.escapeExpression("function"==typeof(o=null!=(o=n.color||(null!=t?t.color:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"color",hash:{},data:i,loc:{start:{line:2,column:83},end:{line:2,column:92}}}):o)},3:function(e,t,n,r,i){var o;return null!=(o=n.with.call(null!=t?t:e.nullContext||{},null!=t?t.cancel:t,{name:"with",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:6,column:6},end:{line:10,column:15}}}))?o:""},4:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{};return'        <a href="#" class="scrivito_button scrivito_cancel '+(null!=(o=n.if.call(a,null!=t?t.color:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:7,column:59},end:{line:7,column:97}}}))?o:"")+'">\n          '+(null!=(o=n.if.call(a,null!=t?t.title:t,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i,loc:{start:{line:8,column:10},end:{line:8,column:55}}}))?o:"")+"\n        </a>\n"},5:function(e,t,n,r,i){var o;return e.escapeExpression("function"==typeof(o=null!=(o=n.title||(null!=t?t.title:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:8,column:23},end:{line:8,column:32}}}):o)},7:function(e,t,n,r,i){return e.escapeExpression(e.lambda(t,t))},9:function(e,t,n,r,i){var o;return null!=(o=n.with.call(null!=t?t:e.nullContext||{},null!=t?t.confirm:t,{name:"with",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i,loc:{start:{line:13,column:6},end:{line:17,column:15}}}))?o:""},10:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{};return'        <a href="#" class="scrivito_button scrivito_confirm '+(null!=(o=n.if.call(a,null!=t?t.color:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:14,column:60},end:{line:14,column:98}}}))?o:"")+'">\n          '+(null!=(o=n.if.call(a,null!=t?t.title:t,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i,loc:{start:{line:15,column:10},end:{line:15,column:55}}}))?o:"")+"\n        </a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{};return'<div id="scrivito_iframe_dialog"\n    class="scrivito_modal_large adjust_dialog no_padding_top '+(null!=(o=n.if.call(a,null!=t?t.color:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:2,column:61},end:{line:2,column:99}}}))?o:"")+'">\n  <div class="scrivito_modal_body scrivito_auto_height"></div>\n  <div class="scrivito_modal_footer">\n'+(null!=(o=n.unless.call(a,null!=t?t.disable_cancel:t,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:5,column:4},end:{line:11,column:15}}}))?o:"")+(null!=(o=n.unless.call(a,null!=t?t.disable_confirm:t,{name:"unless",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i,loc:{start:{line:12,column:4},end:{line:18,column:15}}}))?o:"")+"  </div>\n</div>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return'    <span class="scrivito_editing_marker_title">'+e.escapeExpression("function"==typeof(o=null!=(o=n.description||(null!=t?t.description:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"description",hash:{},data:i,loc:{start:{line:4,column:48},end:{line:4,column:63}}}):o)+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<span class="scrivito_editing_marker '+u("function"==typeof(a=null!=(a=n.css_classes||(null!=t?t.css_classes:t))?a:c)?a.call(s,{name:"css_classes",hash:{},data:i,loc:{start:{line:1,column:37},end:{line:1,column:52}}}):a)+'" title="'+u("function"==typeof(a=null!=(a=n.tooltip||(null!=t?t.tooltip:t))?a:c)?a.call(s,{name:"tooltip",hash:{},data:i,loc:{start:{line:1,column:61},end:{line:1,column:72}}}):a)+'">\n  <i class="scrivito_icon '+u("function"==typeof(a=null!=(a=n.icon||(null!=t?t.icon:t))?a:c)?a.call(s,{name:"icon",hash:{},data:i,loc:{start:{line:2,column:26},end:{line:2,column:34}}}):a)+'"></i>\n'+(null!=(o=n.if.call(s,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:3,column:2},end:{line:5,column:9}}}))?o:"")+"</span>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return"      "+(null!=(o=e.lambda(null!=t?t.render:t,t))?o:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return'<div class="scrivito_editing_marker_menu">\n  <ul class="scrivito_menu_box">\n'+(null!=(o=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.menu_items:t,{name:"each",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))?o:"")+'    <li class="scrivito_menu_box_overlay"></li>\n  </ul>\n</div>\n'},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){return"scrivito_disabled"},3:function(e,t,n,r,i){var o;return e.escapeExpression("function"==typeof(o=null!=(o=n.tooltip||(null!=t?t.tooltip:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"tooltip",hash:{},data:i,loc:{start:{line:2,column:32},end:{line:2,column:43}}}):o)},5:function(e,t,n,r,i){var o;return e.escapeExpression("function"==typeof(o=null!=(o=n.reasonForBeingDisabled||(null!=t?t.reasonForBeingDisabled:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"reasonForBeingDisabled",hash:{},data:i,loc:{start:{line:2,column:51},end:{line:2,column:77}}}):o)},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<li class="scrivito_menu_item '+u("function"==typeof(a=null!=(a=n.domId||(null!=t?t.domId:t))?a:c)?a.call(s,{name:"domId",hash:{},data:i,loc:{start:{line:1,column:30},end:{line:1,column:39}}}):a)+" "+(null!=(o=n.if.call(s,null!=t?t.isDisabled:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:40},end:{line:1,column:82}}}))?o:"")+'">\n  <span title="'+(null!=(o=n.if.call(s,null!=t?t.isEnabled:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.program(5,i,0),data:i,loc:{start:{line:2,column:15},end:{line:2,column:84}}}))?o:"")+'">\n    '+(null!=(o="function"==typeof(a=null!=(a=n.icon||(null!=t?t.icon:t))?a:c)?a.call(s,{name:"icon",hash:{},data:i,loc:{start:{line:3,column:4},end:{line:3,column:14}}}):a)?o:"")+u("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:c)?a.call(s,{name:"title",hash:{},data:i,loc:{start:{line:3,column:14},end:{line:3,column:23}}}):a)+"\n  </span>\n</li>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return'<i class="scrivito_icon '+e.escapeExpression("function"==typeof(o=null!=(o=n.icon||(null!=t?t.icon:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:i,loc:{start:{line:1,column:24},end:{line:1,column:32}}}):o)+'"></i>\n'},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a;return'<i class="scrivito_icon">'+(null!=(o="function"==typeof(a=null!=(a=n.icon||(null!=t?t.icon:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:i,loc:{start:{line:1,column:25},end:{line:1,column:35}}}):a)?o:"")+"</i>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return'<i class="scrivito_customer_icon sci_'+e.escapeExpression("function"==typeof(o=null!=(o=n.icon||(null!=t?t.icon:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:i,loc:{start:{line:1,column:37},end:{line:1,column:45}}}):o)+'"></i>\n'},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return e.escapeExpression("function"==typeof(o=null!=(o=n.title||(null!=t?t.title:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:2,column:21},end:{line:2,column:30}}}):o)},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return'<li class="scrivito_menu_separator">\n  <span>'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.title:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:2,column:8},end:{line:2,column:37}}}))?o:"")+"</span>\n</li>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{},s=e.escapeExpression;return'<li id="'+s("function"==typeof(o=null!=(o=n.id||(null!=t?t.id:t))?o:e.hooks.helperMissing)?o.call(a,{name:"id",hash:{},data:i,loc:{start:{line:1,column:8},end:{line:1,column:14}}}):o)+'" class="scrivito_menu_item">\n  <span>\n    <i class="scrivito_icon scrivito_spinning">&#xf023;</i>\n    '+s(n.translate.call(a,"menu_item.spinner.loading",{name:"translate",hash:{},data:i,loc:{start:{line:4,column:4},end:{line:4,column:45}}}))+"\n  </span>\n</li>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return"scrivito_"+e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.modification:o,t))},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return'<span class="bar"></span>\n<span class="bar"></span>\n<span class="bar"></span>\n\n<i title="'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.tooltip:o,t))+'" class="scrivito_icon\n  '+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.obj:t)?o.modification:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:6,column:2},end:{line:6,column:62}}}))?o:"")+'\n"></i>\n'},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return"      <li data-scrivito-private-obj-id="+c("function"==typeof(o=null!=(o=n.id||(null!=t?t.id:t))?o:s)?o.call(a,{name:"id",hash:{},data:i,loc:{start:{line:10,column:39},end:{line:10,column:45}}}):o)+">"+c("function"==typeof(o=null!=(o=n.description||(null!=t?t.description:t))?o:s)?o.call(a,{name:"description",hash:{},data:i,loc:{start:{line:10,column:46},end:{line:10,column:61}}}):o)+"</li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{},c=e.escapeExpression;return'<div class="scrivito_obj_sorting_dialog scrivito_modal_large adjust_dialog">\n\n  <div class="scrivito_modal_header">\n    <h3><i class="scrivito_icon">'+(null!=(o="function"==typeof(a=null!=(a=n.icon||(null!=t?t.icon:t))?a:e.hooks.helperMissing)?a.call(s,{name:"icon",hash:{},data:i,loc:{start:{line:4,column:33},end:{line:4,column:43}}}):a)?o:"")+"</i>"+c(n.translate.call(s,"obj_sorting_dialog.title",{name:"translate",hash:{},data:i,loc:{start:{line:4,column:47},end:{line:4,column:87}}}))+'</h3>\n  </div>\n\n  <div class="scrivito_modal_body scrivito_auto_height">\n    <ul id="scrivito_obj_sorting_sortable">\n'+(null!=(o=n.each.call(s,null!=t?t.children:t,{name:"each",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:9,column:4},end:{line:11,column:13}}}))?o:"")+'    </ul>\n  </div>\n\n  <div class="scrivito_modal_footer">\n    <a href="#" class="scrivito_button scrivito_cancel">'+c(n.translate.call(s,"cancel",{name:"translate",hash:{},data:i,loc:{start:{line:16,column:56},end:{line:16,column:78}}}))+'</a>\n    <a href="#" class="scrivito_button scrivito_green scrivito_confirm">'+c(n.translate.call(s,"confirm",{name:"translate",hash:{},data:i,loc:{start:{line:17,column:72},end:{line:17,column:95}}}))+"</a>\n  </div>\n\n</div>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){return"scrivito_visible"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{};return'<span class="scrivito_option_marker scrivito_'+e.escapeExpression("function"==typeof(a=null!=(a=n.position||(null!=t?t.position:t))?a:e.hooks.helperMissing)?a.call(s,{name:"position",hash:{},data:i,loc:{start:{line:1,column:45},end:{line:1,column:57}}}):a)+"\n    "+(null!=(o=n.if.call(s,null!=t?t.always_visible:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:2,column:4},end:{line:2,column:49}}}))?o:"")+'">\n  <i class="scrivito_icon scrivito_icon_marker_plus"></i>\n</span>\n'},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="scrivito_overlay"></div>\n'},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o=null!=t?t:e.nullContext||{},a=e.escapeExpression;return'<span class="scrivito_saving_indicator scrivito_saving_state_bar">\n  <span class="scrivito_saving_in_progress scrivito_hidden">\n    <i class="scrivito_icon scrivito_spinning">&#xf023;</i>\n    <span class="scrivito_button_label"><span>'+a(n.translate.call(o,"saving_indicator_item.saving",{name:"translate",hash:{},data:i,loc:{start:{line:4,column:46},end:{line:4,column:90}}}))+'</span></span>\n  </span>\n\n  <span class="scrivito_saving_done scrivito_hidden">\n    <i class="scrivito_icon">&#xf03F;</i>\n    <span class="scrivito_button_label"><span>'+a(n.translate.call(o,"saving_indicator_item.saved",{name:"translate",hash:{},data:i,loc:{start:{line:9,column:46},end:{line:9,column:89}}}))+"</span></span>\n  </span>\n</div>\n"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="scrivito_saving_overlay scrivito_overlay">\n  <i class="scrivito_icon scrivito_processing">&#61475;</i>\n</div>\n'},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return"<h1>"+e.escapeExpression("function"==typeof(o=null!=(o=n.title||(null!=t?t.title:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:1,column:4},end:{line:1,column:13}}}):o)+"</h1>"},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{};return"  <p>"+e.escapeExpression(n.translate.call(a,"transfer_errors_dialog.modified",{name:"translate",hash:{},data:i,loc:{start:{line:2,column:5},end:{line:2,column:52}}}))+"</p>\n  <ul>\n    "+(null!=(o=n.each.call(a,null!=t?t.modified:t,{name:"each",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:4,column:4},end:{line:4,column:66}}}))?o:"")+"\n  </ul>\n"},2:function(e,t,n,r,i){var o;return"<li>"+e.escapeExpression("function"==typeof(o=null!=(o=n.description_for_editor||(null!=t?t.description_for_editor:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"description_for_editor",hash:{},data:i,loc:{start:{line:4,column:26},end:{line:4,column:52}}}):o)+"</li>"},4:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{};return"  <p>"+e.escapeExpression(n.translate.call(a,"transfer_errors_dialog.conflicting",{name:"translate",hash:{},data:i,loc:{start:{line:9,column:5},end:{line:9,column:55}}}))+"</p>\n  <ul>\n    "+(null!=(o=n.each.call(a,null!=t?t.conflicting:t,{name:"each",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:11,column:4},end:{line:11,column:69}}}))?o:"")+"\n  </ul>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{};return(null!=(o=n.if.call(a,null!=t?t.modified:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:6,column:7}}}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=t?t.conflicting:t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:8,column:0},end:{line:13,column:7}}}))?o:"")},useData:!0})},function(e,t,n){var r=n(40);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression,l=e.lambda;return"<"+u("function"==typeof(a=null!=(a=n.tag||(null!=t?t.tag:t))?a:c)?a.call(s,{name:"tag",hash:{},data:i,loc:{start:{line:1,column:1},end:{line:1,column:8}}}):a)+"\n  data-scrivito-private-widget-id='"+u(l(null!=(o=null!=t?t.widget:t)?o.id:o,t))+"'\n  data-scrivito-widget-obj-class='"+u(l(null!=(o=null!=t?t.widget:t)?o.objClass:o,t))+"'\n  data-scrivito-private-widget-description-for-editor='Loading...'>\n  &nbsp;\n</"+u("function"==typeof(a=null!=(a=n.tag||(null!=t?t.tag:t))?a:c)?a.call(s,{name:"tag",hash:{},data:i,loc:{start:{line:6,column:2},end:{line:6,column:9}}}):a)+">\n"},useData:!0})},function(e,t,n){"use strict";window.scrivito={}},function(e,t,n){"use strict";var r=n(80),i=n(506),o=n(507);e.exports=function(e,t,n){var a=[],s={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)d(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=f(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(o(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){var i=c.hasOwnProperty(n)?c[n]:null;return o("DEFINE_MANY_MERGED"===i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=f(e[n],r))}e[n]=r}}}(e,t)},autobind:function(){}};function l(e,t){var n=s.hasOwnProperty(t)?s[t]:null;g.hasOwnProperty(t)&&o("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&o("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function d(e,n){if(n){o("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),o(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;for(var a in n.hasOwnProperty("mixins")&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(a)&&"mixins"!==a){var c=n[a],d=r.hasOwnProperty(a);if(l(d,a),u.hasOwnProperty(a))u[a](e,c);else{var p=s.hasOwnProperty(a);if("function"==typeof c&&!p&&!d&&!1!==n.autobind)i.push(a,c),r[a]=c;else if(d){var m=s[a];o(p&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,a),"DEFINE_MANY_MERGED"===m?r[a]=f(r[a],c):"DEFINE_MANY"===m&&(r[a]=h(r[a],c))}else r[a]=c}}}else;}function p(e,t){for(var n in o(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(o(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function f(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return p(i,n),p(i,r),i}}function h(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function m(e,t){return t.bind(e)}var _={componentDidMount:function(){this.__isMounted=!0}},v={componentWillUnmount:function(){this.__isMounted=!1}},g={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},y=function(){};return r(y.prototype,e.prototype,g),function(e){var t=function(e,r,a){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=m(e,i)}}(this),this.props=e,this.context=r,this.refs=i,this.updater=a||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;o("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new y,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],a.forEach(d.bind(null,t)),d(t,_),d(t,e),d(t,v),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),o(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),s)t.prototype[r]||(t.prototype[r]=null);return t}}},function(e,t,n){"use strict";e.exports={}},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";

/** @license React v16.13.1

* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case a:case c:case s:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case v:case _:case u:return e;default:return t}}case o:return t}}}function O(e){return k(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=i,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=_,t.Portal=o,t.Profiler=c,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return O(e)||k(e)===d},t.isConcurrentMode=O,t.isContextConsumer=function(e){return k(e)===l},t.isContextProvider=function(e){return k(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return k(e)===f},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===v},t.isMemo=function(e){return k(e)===_},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===c},t.isStrictMode=function(e){return k(e)===s},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===_||e.$$typeof===u||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=k},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r,i,o,a,s,c,u;s=n(22),a=n(511),i=(u=n(122)).THUMBNAIL_VIEW,r=u.TABLE_VIEW,c=u.setViewMode,o=s({displayName:"ViewModeBar",viewModeButtonsData:[r,i],setViewMode:function(e){return this.props.dispatch(c(e))},render:function(){var e;return React.createElement("div",null,function(){var t,n,r,i;for(i=[],t=0,n=(r=this.viewModeButtonsData).length;t<n;t++)e=r[t],i.push(React.createElement(a,{setViewMode:this.setViewMode,viewMode:this.props.viewMode,key:e,mode:e}));return i}.call(this))}}),e.exports=o},function(e,t,n){var r;r=n(22)({displayName:"ViewModeBarItem",viewModeButtonsData:{THUMBNAIL_VIEW:{iconTitle:"Thumbnails",iconClassName:"scrivito_icon_th_small"},TABLE_VIEW:{iconTitle:"List",iconClassName:"scrivito_icon_list_medium"}},getIconClassName:function(){return"scrivito_icon "+this.viewModeButtonsData[this.props.mode].iconClassName},getIconTitle:function(){return this.viewModeButtonsData[this.props.mode].iconTitle},getLabelClasses:function(){var e;return e="",this.props.viewMode===this.props.mode&&(e+="active "),e+"editing-button-view"},changeViewMode:function(){return this.props.setViewMode(this.props.mode)},render:function(){return React.createElement("span",{"data-size":this.props.mode,className:this.getLabelClasses(),onClick:this.changeViewMode},React.createElement("i",{title:this.getIconTitle(),className:this.getIconClassName()}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,c,u,l,d;l=n(2),s=n(22),i=n(15).default,a=n(513),n(85),d=n(176),c=d.sortInAscOrder,u=d.sortInDescOrder,r=d.DESC_SORT_ORDER,d.ASC_SORT_ORDER,o=s({displayName:"SortMenu",sortItemsData:function(){return{relevance:{itemTitle:i.translate("content_browser.sort.relevance.title"),descCriteriaTitle:i.translate("content_browser.sort.relevance.desc_criteria_title"),sortItemType:"relevance"},filename:{itemTitle:i.translate("content_browser.sort.file_name.title"),descCriteriaTitle:i.translate("content_browser.sort.file_name.desc_criteria_title"),ascCriteriaTitle:i.translate("content_browser.sort.file_name.asc_criteria_title"),sortItemType:"blob:filename"},date:{itemTitle:i.translate("content_browser.sort.date.title"),descCriteriaTitle:i.translate("content_browser.sort.date.desc_criteria_title"),ascCriteriaTitle:i.translate("content_browser.sort.date.asc_criteria_title"),sortItemType:"_lastChanged"}}},toggleSortMenu:function(){return $(".scrivito-content-browser-sort-menu .scrivito_menu_box").fadeToggle()},getSortActiveCriteriaTitle:function(){var e;if(void 0!==(e=l.findWhere(l.values(this.sortItemsData()),{sortItemType:this.props.sortCriteria.sortField})))switch(this.props.sortCriteria.sortDirection){case r:return e.descCriteriaTitle;default:return e.ascCriteriaTitle}},getSortIconClassName:function(){var e;return e="scrivito_icon ",this.props.sortCriteria.sortDirection===r?e+="scrivito_icon_sort_up":e+="scrivito_icon_sort_down",e},setDescSortCriteria:function(e){return this.props.dispatch(u(e))},setAscSortCriteria:function(e){return this.props.dispatch(c(e))},render:function(){var e;return React.createElement("span",{className:"scrivito-content-browser-sort-menu scrivito_button scrivito_lightgrey scrivito_right",onClick:this.toggleSortMenu},React.createElement("i",{className:this.getSortIconClassName()}),React.createElement("span",{className:"scrivito-content-browser-sort-menu-title"},this.getSortActiveCriteriaTitle()),React.createElement("i",{className:"scrivito_icon scrivito-content-browser-menu-icon scrivito_icon_chevron_down"}),React.createElement("ul",{className:"scrivito_menu_box scrivito_left"},function(){var t,n,r,i;for(i=[],t=0,n=(r=Object.keys(this.sortItemsData())).length;t<n;t++)e=r[t],i.push(React.createElement(a,{sortCriteria:this.props.sortCriteria,key:e,sortItem:this.sortItemsData()[e],activeTitle:this.getSortActiveCriteriaTitle(),setAscSortCriteria:this.setAscSortCriteria,setDescSortCriteria:this.setDescSortCriteria}));return i}.call(this),React.createElement("li",{className:"scrivito_menu_box_overlay"})))}}),e.exports=o},function(e,t,n){var r;r=n(22)({displayName:"SortMenuItem",basicIcon:"scrivito_icon  ",_ascIconSortClass:function(){return this.basicIcon+"scrivito_icon_sort_down"},_descIconSortClass:function(){return this.basicIcon+"scrivito_icon_sort_up"},getSortLiClassName:function(e){var t;return t="scrivito_menu_item",this.props.activeTitle===e&&(t+=" active"),t},_getAscSortLiClassName:function(){return this.getSortLiClassName(this.currentSortItem().ascCriteriaTitle)},_getDescSortLiClassName:function(){return this.getSortLiClassName(this.currentSortItem().descCriteriaTitle)},currentSortItem:function(){return this.props.sortItem},_sortInAscOrder:function(){return this.props.setAscSortCriteria(this.currentSortItem().sortItemType)},_sortInDescOrder:function(){return this.props.setDescSortCriteria(this.currentSortItem().sortItemType)},render:function(){return React.createElement("div",null,React.createElement("li",{className:"scrivito_menu_separator"},React.createElement("span",null,this.currentSortItem().itemTitle)),this.currentSortItem().descCriteriaTitle?React.createElement("li",{className:this._getDescSortLiClassName(),onClick:this._sortInDescOrder},React.createElement("span",null,React.createElement("i",{className:this._descIconSortClass()}," "),this.currentSortItem().descCriteriaTitle)):void 0,this.currentSortItem().ascCriteriaTitle?React.createElement("li",{className:this._getAscSortLiClassName(),onClick:this._sortInAscOrder},React.createElement("span",null,React.createElement("i",{className:this._ascIconSortClass()}," "),this.currentSortItem().ascCriteriaTitle)):void 0)}}),e.exports=r},function(e,t,n){var r,i,o,a,s,c;c=n(2),s=n(22),o=n(4),i=n(15).default,r=n(114).default,a=s({displayName:"SearchBar",propTypes:{filter:o.object.isRequired},updateSearchFilter:function(e){return this.props.filter.setSearchTerm(e)},getInitialState:function(){return{searchTerm:this.props.filter.searchTerm||""}},triggerSearchWithEnter:function(e){if(13===e.keyCode)return this.updateSearchFilter(this.state.searchTerm)},clearButtonClassName:function(){var e;return e="scrivito_customer_icon sci_inv_cross ",this.state.searchTerm.length>0&&(e+="show-clear"),e},clearSearchTerm:function(){return"",this.setState({searchTerm:""}),this.updateSearchFilter("")},_getSearchPlaceholder:function(){var e,t,n,o,a;return o=new r(this.props.filter),a=i.translate("content_browser.search_bar.search_everywhere"),n=o.findActiveFilterItems(),(t=c.flatten(c.map(n,(function(e){return e.activeNodes()})))).length>1?a=i.translate("content_browser.search_bar.search_filtered"):1===t.length&&(e=t[0].title,a=i.translate("content_browser.search_bar.search_in",e)),a},_updateSearchTerm:function(e){return this.setState({searchTerm:e.target.value})},render:function(){return React.createElement("div",{className:"scrivito-content-browser-search"},React.createElement("span",{className:"text-input-wrapper"},React.createElement("input",{type:"text",placeholder:this._getSearchPlaceholder(),className:"search-field",value:this.state.searchTerm,onChange:this._updateSearchTerm,onKeyUp:this.triggerSearchWithEnter}),React.createElement("span",{onClick:this.clearSearchTerm,className:this.clearButtonClassName(),title:i.translate("content_browser.search_bar.clear_button")})),React.createElement("button",{className:"search-field-button",onClick:this.updateSearchFilter.bind(this,this.state.searchTerm),title:i.translate("content_browser.search_bar.search_button")},React.createElement("i",{className:"scrivito_icon scrivito_icon_search"})))}}),e.exports=a},function(e,t,n){var r,i,o,a,s,c,u,l;o=n(4),r=n(15).default,u=n(22),l=n(56),c=l.changeSelectionMode,i=l.MULTI_SELECTION_MODE,a=l.SINGLE_SELECTION_MODE,s=u({displayName:"SelectionModeToggle",propTypes:{dispatch:o.func.isRequired,selectionMode:o.string.isRequired},multiToggleModeChange:function(e){return e.target.checked?this.props.dispatch(c(i)):this.props.dispatch(c(a))},render:function(){return React.createElement("div",{className:"cb_toggle"},React.createElement("input",{type:"checkbox",checked:this.props.selectionMode===i,id:"toggly",onChange:this.multiToggleModeChange}),React.createElement("label",{htmlFor:"toggly"},React.createElement("i",null)),React.createElement("span",null,r.translate("content_browser.search_bar.multi_selection_toggle")))}}),e.exports=s},function(e,t){var n;n={renderSubFiltersList:function(e,t){var n;return n="scrivito-content-browser-hierarchy-filter",t&&t.length>0&&(n=n+" "+t),React.createElement("ul",{className:n},e)}},e.exports=n},function(e,t,n){var r,i,o,a,s,c;c=n(22),a=n(393),o=n(518),s=n(519),i=n(520),r=c({displayName:"AdditionalOptionFilter",mixins:[a],getInitialState:function(){return this.defaultExpansionState()},getAdditionalLableClasses:function(){return this.openClassSetOptions()},createDeselctAllRadioOption:function(){return React.createElement(o,{filter:this.props.filter})},renderSubRadioOptionFilters:function(){var e,t,n,r,o,a,c;for(c=[],n=r=0,o=(a=this.props.filter.children).length;r<o;n=++r)e=(t=a[n]).title+"-"+n,"radio"===this.props.filter.type?c.push(React.createElement(s,{key:e,filter:t})):"checkbox"===this.props.filter.type?c.push(React.createElement(i,{key:e,filter:t})):c.push(void 0);return c},render:function(){var e;return e=this.getAdditionalLableClasses(),React.createElement("li",{className:e},this.renderArrowTag(),React.createElement("div",{className:"scrivito-content-browser-hierarchy-label",onClick:this.arrowHandleClick},React.createElement("span",null,this.props.filter.title)),React.createElement("ul",null,"radio"===this.props.filter.type?this.createDeselctAllRadioOption():void 0,this.renderSubRadioOptionFilters()))}}),e.exports=r},function(e,t,n){var r;r=n(22)({displayName:"DeselectAllRadioOptionFilter",mixins:[n(394)],getActiveClass:function(){return this.props.filter.hasActiveChildren()?"":"active"},deselectAllRadioOption:function(){return this.props.filter.deactivateAll()},render:function(){return React.createElement("li",{className:this.getActiveClass(),onClick:this.deselectAllRadioOption},React.createElement("div",{className:"scrivito-content-browser-hierarchy-radio"}),this.renderHierarchyLabelTitle("All"))}}),e.exports=r},function(e,t,n){var r;r=n(22)({displayName:"RadioOptionFilter",mixins:[n(395)],labelToggleClick:function(){if(!this.props.filter.isActive())return this.props.filter.setActive()},render:function(){return React.createElement("li",{className:this.activeClassName(),onClick:this.labelToggleClick},React.createElement("div",{className:"scrivito-content-browser-hierarchy-radio"}),this.renderOptionFilterTitle())}}),e.exports=r},function(e,t,n){var r;r=n(22)({displayName:"CheckBoxOptionFilter",mixins:[n(395)],render:function(){return React.createElement("li",{className:this.activeClassName(),onClick:this.optionLabelToggleClick},React.createElement("div",{className:"scrivito-content-browser-hierarchy-checkbox"}),this.renderOptionFilterTitle())}}),e.exports=r},function(e,t,n){var r,i,o;o=n(22),r=n(393),i=o({displayName:"TreeFilter",mixins:[r],getInitialState:function(){return this.defaultExpansionState()},_convertLegacyIconName:function(e){return"generic"===e?"sheet":e},renderIconTag:function(){var e;if(null!=this.props.filter.icon)return e="scrivito_customer_icon sci_"+this._convertLegacyIconName(this.props.filter.icon),React.createElement("i",{className:e})},getLabelClasses:function(){var e;return e="",this.props.filter.isActive()&&(e="active "),e+this.openClassSetOptions()},renderSubTrees:function(){var e,t,n,r,o,a,s;for(s=[],n=r=0,o=(a=this.props.filter.children).length;r<o;n=++r)e=(t=a[n]).title+"-"+n,s.push(React.createElement(i,{key:e,filter:t}));return s},labelToggleClick:function(){return this.props.filter.toggleActive()},render:function(){var e;return e=this.getLabelClasses(),React.createElement("li",{className:e},this.props.filter.isLeaf()?void 0:this.renderArrowTag(),React.createElement("div",{className:"scrivito-content-browser-hierarchy-label",onClick:this.labelToggleClick},this.renderIconTag(),React.createElement("span",null,this.props.filter.title)),this.props.filter.isLeaf()?void 0:React.createElement("ul",null,this.renderSubTrees()))}}),e.exports=i},function(e,t,n){var r,i;r=n(15).default,i=n(22)({displayName:"LastAddedFilter",filterClass:function(){var e;return e="scrivito-content-browser-filter-item",this.props.active&&(e+=" active"),e},render:function(){return React.createElement("div",{className:this.filterClass(),onClick:this.props.activateLastAddedFilter},React.createElement("i",{className:"scrivito-content-browser-icon scrivito-content-browser-icon-ok-box"}),React.createElement("span",{className:"scrivito-content-browser-filter-label"},r.translate("content_browser.last_added.filter_name"),React.createElement("span",{className:"scrivito-content-browser-counter selected-total"},this.props.addedCount)))}}),e.exports=i},function(e,t,n){"use strict";n.r(t);var r=n(257),i=n.n(r),o=n(449),a=n.n(o),s=n(258),c=n.n(s),u=n(2),l=scrivito.legacyCreateConnectedComponent({render:function(){var e=this.props,t=e.isLoading,n=e.fetch,r=e.hasMore;return React.createElement(c.a,{tag:"ul",className:"items scrivito-content-browser-thumbnails small",isLoading:t,hasMore:r,fetch:n},this._renderCreationItem(),this._renderItems())},_renderCreationItem:function(){if(this.props.isEditingAllowed){var e=this.props,t=e.activeTags,n=e.createObj,r=e.filter,i=e.objCreationFactory.buildObjCreateControl({filter:r,activeTags:t});return i.showCreationItem()?React.createElement(a.a,{objCreation:i,createObj:n}):void 0}},_renderItems:function(){var e=this.props,t=e.objs,n=e.selectedObjs,r=e.selectionMode,o=e.toggleObjSelection,a=Object(u.reject)(t,(function(e){return e.isDeleted()}));return Object(u.map)(a,(function(e){return React.createElement(i.a,{key:e.id(),selectedObjs:n,objId:e.id(),baseSelectClass:"scrivito-content-browser-meta",toggleObjSelection:o,selectionMode:r})}))}});t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var r=n(2),i={video:"scrivito_icon_movie",audio:"scrivito_icon_music",msword:"scrivito_icon_doc",zip:"scrivito_icon_zip",pdf:"scrivito_icon_pdf","ms-excel":"scrivito_icon_xls","ms-powerpoint":"scrivito_icon_ppt","openxmlformats-officedocument.spreadsheetml":"scrivito_icon_xls",wordprocessingml:"scrivito_icon_doc",presentationml:"scrivito_icon_ppt",gif:"scrivito_icon_movie",svg:"scrivito_icon_image"};function o(e){var t;if(e){var n=function(e){return Object(r.find)(Object.keys(i),(function(t){return e.match(new RegExp("\\b"+t+"\\b"))}))}(e);t=i[n]}return t||(t="scrivito_icon_generic"),t}},function(e,t,n){var r,i;i=n(4),r=scrivito.legacyCreateConnectedComponent({displayName:"LoadableSpan",propTypes:{get:i.func.isRequired},_getTitle:function(){return void 0!==this.props.getTitle?this.props.getTitle():""},render:function(){return React.createElement("span",{title:this._getTitle(),className:this.props.className},this.props.get())},_scrivitoRenderWhileLoading:function(){return React.createElement("span",{className:"scrivito_loader"})}}),e.exports=r},function(e,t,n){var r,i,o,a;a=n(22),o=n(527),i=n(528).DialogBody,r=a({displayName:"DialogApp",dialogClassName:function(){return"scrivito_prompt_dialog scrivito_center_dialog scrivito_modal_prompt scrivito_show scrivito_red"},closeButtonText:function(){return"Close"},resolveAndClose:function(e){return this.props.promise.resolve(),this.closeDialog(e)},rejectAndClose:function(e){return this.props.promise.reject(),this.closeDialog(e)},closeDialog:function(e){return e.preventDefault(),ReactDOM.unmountComponentAtNode(ReactDOM.findDOMNode(this.props.container)),this.props.container.parentNode.removeChild(this.props.container)},render:function(){return React.createElement("div",null,React.createElement("div",{className:"scrivito_overlay two scrivito_show",style:{zIndex:4444444}}),React.createElement("div",{className:this.dialogClassName(),style:{zIndex:4444444}},React.createElement(o,{title:this.props.title,subtitle:this.props.subtitle}),React.createElement(i,{body:this.props.body}),React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this.rejectAndClose},this.closeButtonText()))))}}),e.exports=r},function(e,t,n){var r;r=n(22)({displayName:"DialogHeader",render:function(){return React.createElement("div",{className:"scrivito_modal_header"},React.createElement("i",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("h3",{className:"scrivito_title"},this.props.title),this.props.subtitle?React.createElement("p",{className:"scrivito_description"},this.props.subtitle):void 0)}}),e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"DialogBody",(function(){return a}));var r,i=n(1),o=(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)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return i.createElement("div",{className:"scrivito_modal_body"},this.props.body)},t.displayName="DialogBody",t}(i.Component)},function(e,t,n){var r;r=n(22)({displayName:"MoreItemsSpinner",render:function(){return React.createElement("div",{className:"scrivito-content-browser-endless-loader"},React.createElement("i",{className:"scrivito_icon scrivito_icon_refresh"}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,c;s=n(22),i=n(531),o=n(535),a=n(396),c=n(122),r=s({displayName:"LastAddedItems",render:function(){return this.props.viewMode===c.TABLE_VIEW?React.createElement(a,null,React.createElement(i,{selectionMode:this.props.selectionMode,selectedObjs:this.props.selectedObjs,toggleObjSelection:this.props.toggleObjSelection,additions:this.props.additions})):React.createElement(o,{selectionMode:this.props.selectionMode,selectedObjs:this.props.selectedObjs,toggleObjSelection:this.props.toggleObjSelection,additions:this.props.additions})}}),e.exports=r},function(e,t,n){var r,i,o,a,s,c,u,l,d;l=n(2),i=n(532),o=n(533),a=n(401),d=n(233),u=d.isCompleted,c=d.isActive,s=d.failed,r=scrivito.legacyCreateConnectedComponent({displayName:"LastAddedTableViewContent",renderedLastAddedErrorThumbComponent:function(){var e;if((e=s(this.props.additions)).length)return React.createElement(i,{failedAdditions:e})},getLastAddedTableViewItems:function(){var e;return l.map(this.props.additions,(e=this,function(t){return c(t)?React.createElement(o,{key:t.additionId,addedItem:t}):u(t)?React.createElement(a,{toggleObjSelection:e.props.toggleObjSelection,objId:t.objId,baseSelectClass:"scrivito-content-browser-list-select ",key:t.objId,selectionMode:e.props.selectionMode,selectedObjs:e.props.selectedObjs}):void 0}))},render:function(){return React.createElement("div",{className:"scrivito-content-browser-list-content"},React.createElement("table",null,React.createElement("tbody",null,this.renderedLastAddedErrorThumbComponent(),this.getLastAddedTableViewItems())))}}),e.exports=r},function(e,t,n){var r;r=n(22)({displayName:"LastAddedTableViewError",mixins:[n(399)],render:function(){return React.createElement("tr",null,React.createElement("td",{colSpan:"6"},React.createElement("div",{className:"scrivito-content-browser-add error",onClick:this.showAlert,title:this._titleInfo()},React.createElement("span",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,this.getErrorsCount(),React.createElement("span",null," during upload")))))}}),e.exports=r},function(e,t,n){var r;r=n(22)({displayName:"LastAddedTableViewItem",mixins:[n(400)],getUploadTitle:function(){return"uploading file "+this.props.addedItem.filename+" ..."},render:function(){return React.createElement("tr",null,React.createElement("td",{colSpan:"6"},this.renderUploadStateProgress(),React.createElement("div",{className:"scrivito-content-browser-add upload",title:this.getUploadTitle()},React.createElement("span",{className:"scrivito_icon scrivito_icon_generic"},this.getUploadTitle()))))}}),e.exports=r},function(e,t,n){var r,i;i=n(4),r=scrivito.legacyCreateConnectedComponent({displayName:"LoadableSpan",propTypes:{get:i.func.isRequired},_getTitle:function(){return this.props.getTitle?this.props.getTitle():""},render:function(){return React.createElement("td",{title:this._getTitle()},this.props.get())},_scrivitoRenderWhileLoading:function(){return React.createElement("td",null,React.createElement("span",{className:"scrivito_loader"}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,c,u,l,d,p;d=n(2),s=n(22),r=n(536),i=n(537),a=n(257),p=n(233),l=p.isCompleted,u=p.isActive,c=p.failed,o=s({displayName:"LastAddedThumbnailItems",renderedLastAddedErrorThumbComponent:function(){var e;if((e=c(this.props.additions)).length)return React.createElement(r,{failedAdditions:e})},getSizeClassName:function(){return"items scrivito-content-browser-thumbnails small"},baseSelectClass:function(){return"scrivito-content-browser-meta "},buildItems:function(){return d.map(this.props.additions,(e=this,function(t){return u(t)?React.createElement(i,{key:t.additionId,addedItem:t}):l(t)?React.createElement(a,{key:t.objId,selectedObjs:e.props.selectedObjs,baseSelectClass:e.baseSelectClass(),toggleObjSelection:e.props.toggleObjSelection,selectionMode:e.props.selectionMode,objId:t.objId}):void 0}));var e},render:function(){return React.createElement("ul",{className:this.getSizeClassName()},this.renderedLastAddedErrorThumbComponent(),this.buildItems())}}),e.exports=o},function(e,t,n){var r;r=n(22)({displayName:"LastAddedThumbnailErrorItem",mixins:[n(399)],render:function(){return React.createElement("li",{className:"content-browser-item",onClick:this.showAlert,title:this._titleInfo()},React.createElement("div",{className:"scrivito-content-browser-add error"},React.createElement("div",{className:"scrivito-content-browser-text"},React.createElement("span",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,this.getErrorsCount(),React.createElement("span",null,React.createElement("br",null),"during upload")))))}}),e.exports=r},function(e,t,n){var r;r=n(22)({displayName:"LastAddedThumbnailItem",mixins:[n(400)],addedItemClassName:function(){var e;return e="content-browser-item",this.uploadInProgress()&&(e+=" upload"),e},render:function(){return React.createElement("li",{className:this.addedItemClassName()},this.renderUploadStateProgress(),React.createElement("div",{className:"scrivito-content-browser-item-wrapper"},React.createElement("div",{className:"scrivito-content-browser-preview"}),React.createElement("span",{className:"scrivito-content-browser-thumbnails-name"},this.props.addedItem.filename)))}}),e.exports=r},function(e,t,n){var r,i,o,a,s;s=n(2),a=n(401),i=n(539),r=n(258),o=scrivito.legacyCreateConnectedComponent({baseSelectClass:function(){return"scrivito-content-browser-list-select "},getTableViewItems:function(e){var t,n;return t=s.reject(e,(function(e){return e.isDeleted()})),s.map(t,(n=this,function(e){return React.createElement(a,{key:e.id(),objId:e.id(),selectionMode:n.props.selectionMode,baseSelectClass:n.baseSelectClass(),selectedObjs:n.props.selectedObjs,toggleObjSelection:n.props.toggleObjSelection})}))},_renderObjCreationItem:function(){var e;if(this.props.isEditingAllowed&&(e=this.props.objCreationFactory.buildObjCreateControl({filter:this.props.filter,activeTags:this.props.activeTags})).showCreationItem())return React.createElement(i,{objCreation:e,createObj:this.props.createObj})},render:function(){return React.createElement(r,{isLoading:this.props.isLoading,hasMore:this.props.hasMore,fetch:this.props.fetch,tag:"div",className:"scrivito-content-browser-list-content"},React.createElement("table",null,React.createElement("tbody",null,this._renderObjCreationItem(),this.getTableViewItems(this.props.objs))))}}),e.exports=o},function(e,t,n){var r;r=n(22)({mixins:[n(398).default],render:function(){return React.createElement("tr",{onClick:this.createClick},React.createElement("td",{colSpan:"6"},React.createElement("div",{className:this.itemClassName()},React.createElement("div",{className:"scrivito-content-browser-text"},React.createElement("span",{className:this.iconClassName(),title:this.iconTitle()}),React.createElement("span",null,this.textMessage())))))}}),e.exports=r},function(e,t,n){var r,i;i=n(2),r=n(22)({displayName:"TagBar",_expandTagBar:function(){return this.props.toggleExpandTagBar()},_tagClasName:function(e){if(i.include(this.props.activeTags,e))return"active"},_renderTags:function(){return i.map(this.props.tags,(e=this,function(t){return React.createElement("li",{key:t.name(),onClick:function(){return e.props.toggleTag(t.name())},className:e._tagClasName(t.name())},t.name(),React.createElement("span",{className:"amount"},t.count()))}));var e},render:function(){return React.createElement("div",{className:"scrivito-content-browser-items-tag-wrapper"},React.createElement("ul",{className:"scrivito-content-browser-items-tag-list"},this._renderTags()),React.createElement("i",{onClick:this._expandTagBar,className:"scrivito_icon scrivito_icon_slidedown"}))}}),e.exports=r},function(e,t,n){"use strict";n.r(t),t.default=function(){return React.createElement("div",{className:"scrivito-content-browser-loading"},React.createElement("i",{className:"scrivito_icon scrivito_icon_refresh"}))}},function(e,t,n){"use strict";n.r(t);var r=n(2),i=n(3),o=n(180),a=n(181),s=n(182),c=n(176),u=function(){function e(e){var t=e.filter,n=e.baseQuery,r=e.excludedObjIds,i=e.tags,a=e.sortCriteria;if(!a)throw new Error("sortCriteria is not initialized. Please explicit initialize the sort criteria param");this.nodeQueryBuilder=new o.a(t),this.filter=t,this.baseQuery=n,this.excludedObjIds=r,this.tags=i,this.sortCriteria=a}return e.prototype.searchRequest=function(){var t=[];this.baseQuery&&t.push(Object(a.a)(this.baseQuery)),t=t.concat(this.nodeQueryBuilder.searchRequest());var n=this.filter.searchTerm&&this.filter.searchTerm.length>0;if(n&&t.push(i.BasicObj.where("*","containsPrefix",this.filter.searchTerm)),!(t.length<1)){var o=Object(s.a)(t.shift().params());return Object(r.each)(t,(function(e){o=o.and(e)})),o=this.tagsQuery(o),o=e.ignoreMigrationStore(o),o=this.excludeObjIds(o),o=this.sortQuery(o,n)}},e.prototype.tagsQuery=function(e){var t=e;return this.tags&&this.tags.length>0&&Object(r.each)(this.tags,(function(e){t=t.and("tags","equals",e)})),t},e.prototype.excludeObjIds=function(e){var t=e;return this.excludedObjIds&&this.excludedObjIds.length>0&&(t=t.andNot("id","equals",this.excludedObjIds)),t},e.prototype.sortQuery=function(e,t){var n=e;return"relevance"===this.sortCriteria.sortField?t||(n=n.order("_lastChanged",c.DESC_SORT_ORDER)):n=n.order(this.sortCriteria.sortField,this.sortCriteria.sortDirection),n},e.ignoreMigrationStore=function(e){return e.andNot("_objClass","equals","MigrationStore")},e}();t.default=u},function(e,t,n){var r,i,o,a;a=n(2),i=n(259).MAXIMIZE_TOGGLE,r=n(60).DELETE_OBJ_FINISH,o=function(e,t){switch(null==e&&(e={isMaximized:!1}),t.type){case i:return a.extend({},e,{isMaximized:!e.isMaximized});case r:return a.extend({},e,{isMaximized:!1});default:return e}},e.exports=o},function(e,t,n){var r,i,o,a,s,c,u,l,d,p;d=n(2),p=n(60),o=p.CREATE_OBJ_START,i=p.CREATE_OBJ_FINISH,r=p.CREATE_OBJ_FAILED,a=p.DELETE_OBJ_FINISH,u=n(545),c=function(e,t){var n;return(n=d.findIndex(e.additions,(function(e){return 100===e.progress&&e.objId===t})))>-1?u(e,{additions:{$splice:[[n,1]]}}):e},l=function(e,t,n){var r,i;return i=d.findIndex(e.additions,{additionId:t}),r=e.additions[i],r=u(r,{$merge:n}),u(e,{additions:{$splice:[[i,1,r]]}})},s=function(e,t){var n;switch(null==e&&(e={additions:[]}),t.type){case o:return n=d.omit(t,"type"),u(e,{additions:{$unshift:[n]}});case i:return l(e,t.additionId,{objId:t.objId,progress:100});case r:return l(e,t.additionId,{failureMessage:t.message,progress:0});case a:return c(e,t.objId);default:return e}},e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=Object.prototype.hasOwnProperty,o=Array.prototype.splice,a=Object.prototype.toString;function s(e){return a.call(e).slice(8,-1)}var c=Object.assign||function(e,t){return u(t).forEach((function(n){i.call(t,n)&&(e[n]=t[n])})),e},u="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function l(e){return Array.isArray(e)?c(e.constructor(e.length),e):"Map"===s(e)?new Map(e):"Set"===s(e)?new Set(e):e&&"object"==typeof e?c(Object.create(Object.getPrototypeOf(e)),e):e}var d=function(){function e(){this.commands=c({},p),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,o="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(o)||r(!Array.isArray(o),"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."),r("object"==typeof o&&null!==o,"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: %s.",Object.keys(this.commands).join(", "));var a=e;return u(o).forEach((function(t){if(i.call(n.commands,t)){var r=e===a;a=n.commands[t](o[t],a,o,e),r&&n.isEquals(a,e)&&(a=e)}else{var c="Map"===s(e)?n.update(e.get(t),o[t]):n.update(e[t],o[t]),u="Map"===s(a)?a.get(t):a[t];n.isEquals(c,u)&&(void 0!==c||i.call(e,t))||(a===e&&(a=l(e)),"Map"===s(a)?a.set(t,c):a[t]=c)}})),a},e}();t.Context=d;var p={$push:function(e,t,n){return h(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return h(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,i){return function(e,t){r(Array.isArray(e),"Expected $splice target to be an array; got %s",e),_(t.$splice)}(t,n),e.forEach((function(e){_(e),t===i&&e.length&&(t=l(i)),o.apply(t,e)})),t},$set:function(e,t,n){return function(e){r(1===Object.keys(e).length,"Cannot have more than one key in an object with $set")}(n),e},$toggle:function(e,t){m(e,"$toggle");var n=e.length?l(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return m(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=l(r)),delete t[e])})),t},$add:function(e,t,n,r){return v(t,"$add"),m(e,"$add"),"Map"===s(t)?e.forEach((function(e){var n=e[0],i=e[1];t===r&&t.get(n)!==i&&(t=l(r)),t.set(n,i)})):e.forEach((function(e){t!==r||t.has(e)||(t=l(r)),t.add(e)})),t},$remove:function(e,t,n,r){return v(t,"$remove"),m(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=l(r)),t.delete(e)})),t},$merge:function(e,t,n,i){var o,a;return o=t,r((a=e)&&"object"==typeof a,"update(): $merge expects a spec of type 'object'; got %s",a),r(o&&"object"==typeof o,"update(): $merge expects a target of type 'object'; got %s",o),u(e).forEach((function(n){e[n]!==t[n]&&(t===i&&(t=l(i)),t[n]=e[n])})),t},$apply:function(e,t){var n;return r("function"==typeof(n=e),"update(): expected spec of $apply to be a function; got %s.",n),e(t)}},f=new d;function h(e,t,n){r(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e),m(t[n],n)}function m(e,t){r(Array.isArray(e),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",t,e)}function _(e){r(Array.isArray(e),"update(): expected spec of $splice to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",e)}function v(e,t){var n=s(e);r("Map"===n||"Set"===n,"update(): %s expects a target of type Set or Map; got %s",t,n)}t.isEquals=f.update.isEquals,t.extend=f.extend,t.default=f.update,t.default.default=e.exports=c(t.default,t)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(122);function i(e,t){switch(t.type){case r.SET_VIEW_MODE:return{viewMode:t.viewMode};default:return e||{viewMode:r.THUMBNAIL_VIEW}}}},function(e,t,n){var r,i,o,a,s,c,u,l;c=n(2),u=n(403),o=u.LOAD_MORE_OBJS,r=u.DEFAULT_NUMBER_TO_LOAD,l=n(83),i=l.FILTER,a=l.SET_OBJ_SOURCE,s=function(e,t){switch(null==e&&(e={numToLoad:r}),t.type){case o:return c.extend({},e,{numToLoad:t.numToLoad});case a:return t.activeSource===i?c.extend({},e,{numToLoad:r}):e;default:return e}},e.exports=s},function(e,t,n){var r,i,o,a;a=n(176),r=a.CHANGE_SORT_ORDER,i=a.DESC_SORT_ORDER,o=function(e,t){switch(null==e&&(e={sortField:"relevance",sortDirection:i}),t.type){case r:return{sortField:t.criteriaType,sortDirection:t.sortDirection};default:return e}},e.exports=o},function(e,t,n){var r,i,o,a,s,c;s=n(2),c=n(402),r=c.EXPAND_TOGGLE,i=c.TOGGLE_TAG,a=function(e,t){return s.include(e,t)?s.without(e,t):e.concat([t])},o=function(e,t){switch(null==e&&(e={isExpanded:!1,activeTags:[]}),t.type){case i:return s.extend({},e,{activeTags:a(e.activeTags,t.tag)});case r:return s.extend({},e,{isExpanded:!e.isExpanded});default:return e}},e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var r=n(2),i=n(56),o=n(60),a={initiallySelectedObjIds:[],selectedObjs:[],selectionMode:i.MULTI_SELECTION_MODE};function s(e,t){switch(void 0===e&&(e=a),t.type){case i.CHANGE_SELECTION_MODE:return Object(r.extend)({},e,{selectedObjs:[],selectionMode:t.mode||e.selectionMode});case i.INITIALLY_SELECT:return Object(r.extend)({},e,{initiallySelectedObjIds:t.objIds});case i.TOGGLE_SELECT:return Object(r.extend)({},e,{selectedObjs:c(e.selectedObjs,t.objId,e.selectionMode)});case o.DELETE_OBJ_FINISH:return Object(r.extend)({},e,{selectedObjs:Object(r.without)(e.selectedObjs,t.objId)});case o.CREATE_OBJ_FINISH:return t.isLastAddedVisible?Object(r.extend)({},e,{selectedObjs:c(e.selectedObjs,t.objId,e.selectionMode)}):e;case i.DESELECT_OBJS:return Object(r.extend)({},e,{initiallySelectedObjIds:[],selectedObjs:[]});default:return e}}function c(e,t,n){return Object(r.contains)(e,t)?Object(r.without)(e,t):"multi"===n?e.concat([t]):[t]}},function(e,t,n){var r,i,o,a,s,c,u;c=n(2),u=n(83),a=u.SET_OBJ_SOURCE,i=u.FILTER,o=u.LAST_ADDED,r=n(60).CREATE_OBJ_START,s=function(e,t){switch(null==e&&(e={activeSource:i}),t.type){case r:return t.activeSource!==o?c.extend({},e,{activeSource:o}):e;case a:return{activeSource:t.activeSource};default:return e}},e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=n(4),s=(r=a)&&r.__esModule?r:{default:r};function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){var e,n,r;c(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._setTargetNode=function(e){r._targetNode=e},r._getTargetNode=function(){return r._targetNode},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this._setTargetNode,getTargetNode:this._getTargetNode}}}},{key:"render",value:function(){var e=this.props,t=e.tag,n=e.children,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["tag","children"]);return!1!==t?(0,o.createElement)(t,r,n):n}}]),t}(o.Component);l.childContextTypes={popperManager:s.default.object.isRequired},l.propTypes={tag:s.default.oneOfType([s.default.string,s.default.bool]),children:s.default.oneOfType([s.default.node,s.default.func])},l.defaultProps={tag:"div"},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=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},o=n(1),a=n(4),s=(r=a)&&r.__esModule?r:{default:r};var c=function(e,t){var n=e.component,r=void 0===n?"div":n,a=e.innerRef,s=e.children,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","innerRef","children"]),u=t.popperManager,l=function(e){u.setTargetNode(e),"function"==typeof a&&a(e)};if("function"==typeof s)return s({targetProps:{ref:l},restProps:c});var d=i({},c);return"string"==typeof r?d.ref=l:d.innerRef=l,(0,o.createElement)(r,d,s)};c.contextTypes={popperManager:s.default.object.isRequired},c.propTypes={component:s.default.oneOfType([s.default.node,s.default.func]),innerRef:s.default.func,children:s.default.oneOfType([s.default.node,s.default.func])},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=c(n(4)),s=c(n(261));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var e,n,i;u(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=i=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),i.state={},i._setArrowNode=function(e){i._arrowNode=e},i._getTargetNode=function(){return i.context.popperManager.getTargetNode()},i._getOffsets=function(e){return Object.keys(e.offsets).map((function(t){return e.offsets[t]}))},i._isDataDirty=function(e){return!i.state.data||JSON.stringify(i._getOffsets(i.state.data))!==JSON.stringify(i._getOffsets(e))},i._updateStateModifier={enabled:!0,order:900,fn:function(e){return i._isDataDirty(e)&&i.setState({data:e}),e}},i._getPopperStyle=function(){var e=i.state.data;return i._popper&&e?r({position:e.offsets.popper.position},e.styles):{position:"absolute",pointerEvents:"none",opacity:0}},i._getPopperPlacement=function(){return i.state.data?i.state.data.placement:void 0},i._getPopperHide=function(){return i.state.data&&i.state.data.hide?"":void 0},i._getArrowStyle=function(){if(i.state.data&&i.state.data.offsets.arrow){var e=i.state.data.offsets.arrow;return{top:e.top,left:e.left}}return{}},i._handlePopperRef=function(e){i._popperNode=e,e?i._createPopper():i._destroyPopper(),i.props.innerRef&&i.props.innerRef(e)},i._scheduleUpdate=function(){i._popper&&i._popper.scheduleUpdate()},l(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"getChildContext",value:function(){return{popper:{setArrowNode:this._setArrowNode,getArrowStyle:this._getArrowStyle}}}},{key:"componentDidUpdate",value:function(e){e.placement===this.props.placement&&e.eventsEnabled===this.props.eventsEnabled||(this._destroyPopper(),this._createPopper()),e.children!==this.props.children&&this._scheduleUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyPopper()}},{key:"_createPopper",value:function(){var e=this,t=this.props,n=t.placement,i=t.eventsEnabled,o=r({},this.props.modifiers,{applyStyle:{enabled:!1},updateState:this._updateStateModifier});this._arrowNode&&(o.arrow={element:this._arrowNode}),this._popper=new s.default(this._getTargetNode(),this._popperNode,{placement:n,eventsEnabled:i,modifiers:o}),setTimeout((function(){return e._scheduleUpdate()}))}},{key:"_destroyPopper",value:function(){this._popper&&this._popper.destroy()}},{key:"render",value:function(){var e=this.props,t=e.component,n=(e.innerRef,e.placement,e.eventsEnabled,e.modifiers,e.children),i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","innerRef","placement","eventsEnabled","modifiers","children"]),a=this._getPopperStyle(),s=this._getPopperPlacement(),c=this._getPopperHide();if("function"==typeof n)return n({popperProps:{ref:this._handlePopperRef,style:a,"data-placement":s,"data-x-out-of-boundaries":c},restProps:i,scheduleUpdate:this._scheduleUpdate});var u=r({},i,{style:r({},i.style,a),"data-placement":s,"data-x-out-of-boundaries":c});return"string"==typeof t?u.ref=this._handlePopperRef:u.innerRef=this._handlePopperRef,(0,o.createElement)(t,u,n)}}]),t}(o.Component);d.contextTypes={popperManager:a.default.object.isRequired},d.childContextTypes={popper:a.default.object.isRequired},d.propTypes={component:a.default.oneOfType([a.default.node,a.default.func]),innerRef:a.default.func,placement:a.default.oneOf(s.default.placements),eventsEnabled:a.default.bool,modifiers:a.default.object,children:a.default.oneOfType([a.default.node,a.default.func])},d.defaultProps={component:"div",placement:"bottom",eventsEnabled:!0,modifiers:{}},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=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},o=n(1),a=n(4),s=(r=a)&&r.__esModule?r:{default:r};var c=function(e,t){var n=e.component,r=void 0===n?"span":n,a=e.innerRef,s=e.children,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","innerRef","children"]),u=t.popper,l=function(e){u.setArrowNode(e),"function"==typeof a&&a(e)},d=u.getArrowStyle();if("function"==typeof s)return s({arrowProps:{ref:l,style:d},restProps:c});var p=i({},c,{style:i({},d,c.style)});return"string"==typeof r?p.ref=l:p.innerRef=l,(0,o.createElement)(r,p,s)};c.contextTypes={popper:s.default.object.isRequired},c.propTypes={component:s.default.oneOfType([s.default.node,s.default.func]),innerRef:s.default.func,children:s.default.oneOfType([s.default.node,s.default.func])},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){var t,n,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){m(this,n);var t=_(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.handleStart=function(e){var n=t.props,r=n.distance,i=n.shouldCancelStart;if(2===e.button||i(e))return!1;t._touched=!0,t._pos={x:e.pageX,y:e.pageY};var o=(0,p.closest)(e.target,(function(e){return null!=e.sortableInfo}));if(o&&o.sortableInfo&&t.nodeIsChild(o)&&!t.state.sorting){var a=t.props.useDragHandle,s=o.sortableInfo,c=s.index,u=s.collection;if(a&&!(0,p.closest)(e.target,(function(e){return null!=e.sortableHandle})))return;t.manager.active={index:c,collection:u},"a"===e.target.tagName.toLowerCase()&&e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}},t.nodeIsChild=function(e){return e.sortableInfo.manager===t.manager},t.handleMove=function(e){var n=t.props,r=n.distance,i=n.pressThreshold;if(!t.state.sorting&&t._touched){t._delta={x:t._pos.x-e.pageX,y:t._pos.y-e.pageY};var o=Math.abs(t._delta.x)+Math.abs(t._delta.y);r||i&&!(i&&o>=i)?r&&o>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}},t.handleEnd=function(){var e=t.props.distance;t._touched=!1,e||t.cancel()},t.cancel=function(){t.state.sorting||(clearTimeout(t.pressTimer),t.manager.active=null)},t.handlePress=function(e){var n=t.manager.getActive();if(n){var r=t.props,i=r.axis,o=r.getHelperDimensions,a=r.helperClass,s=r.hideSortableGhost,c=r.onSortStart,u=r.useWindowAsScrollContainer,l=n.node,d=n.collection,f=l.sortableInfo.index,m=(0,p.getElementMargin)(l),_=t.container.getBoundingClientRect(),v=o({index:f,node:l,collection:d});t.node=l,t.margin=m,t.width=v.width,t.height=v.height,t.marginOffset={x:t.margin.left+t.margin.right,y:Math.max(t.margin.top,t.margin.bottom)},t.boundingClientRect=l.getBoundingClientRect(),t.containerBoundingRect=_,t.index=f,t.newIndex=f,t.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},t.offsetEdge=t.getEdgeOffset(l),t.initialOffset=t.getOffset(e),t.initialScroll={top:t.scrollContainer.scrollTop,left:t.scrollContainer.scrollLeft},t.initialWindowScroll={top:window.pageYOffset,left:window.pageXOffset};var g,y=l.querySelectorAll("input, textarea, select"),b=l.cloneNode(!0);if([].concat(h(b.querySelectorAll("input, textarea, select"))).forEach((function(e,t){"file"!==e.type&&y[t]&&(e.value=y[t].value)})),t.helper=t.document.body.appendChild(b),t.helper.style.position="fixed",t.helper.style.top=t.boundingClientRect.top-m.top+"px",t.helper.style.left=t.boundingClientRect.left-m.left+"px",t.helper.style.width=t.width+"px",t.helper.style.height=t.height+"px",t.helper.style.boxSizing="border-box",t.helper.style.pointerEvents="none",s&&(t.sortableGhost=l,l.style.visibility="hidden",l.style.opacity=0),t.minTranslate={},t.maxTranslate={},t.axis.x&&(t.minTranslate.x=(u?0:_.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(u?t.contentWindow.innerWidth:_.left+_.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(u?0:_.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(u?t.contentWindow.innerHeight:_.top+_.height)-t.boundingClientRect.top-t.height/2),a)(g=t.helper.classList).add.apply(g,h(a.split(" ")));t.listenerNode=e.touches?l:t.contentWindow,p.events.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),p.events.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)})),t.setState({sorting:!0,sortingIndex:f}),c&&c({node:l,index:f,collection:d},e)}},t.handleSortMove=function(e){var n=t.props.onSortMove;e.preventDefault(),t.updatePosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)},t.handleSortEnd=function(e){var n=t.props,r=n.hideSortableGhost,i=n.onSortEnd,o=t.manager.active.collection;t.listenerNode&&(p.events.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),p.events.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&(t.sortableGhost.style.visibility="",t.sortableGhost.style.opacity="");for(var a=t.manager.refs[o],s=0,c=a.length;s<c;s++){var u=a[s],l=u.node;u.edgeOffset=null,l.style[p.vendorPrefix+"Transform"]="",l.style[p.vendorPrefix+"TransitionDuration"]=""}clearInterval(t.autoscrollInterval),t.autoscrollInterval=null,t.manager.active=null,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof i&&i({oldIndex:t.index,newIndex:t.newIndex,collection:o},e),t._touched=!1},t.autoscroll=function(){var e=t.translate,n={x:0,y:0},r={x:1,y:1},i=10,o=10;e.y>=t.maxTranslate.y-t.height/2?(n.y=1,r.y=o*Math.abs((t.maxTranslate.y-t.height/2-e.y)/t.height)):e.x>=t.maxTranslate.x-t.width/2?(n.x=1,r.x=i*Math.abs((t.maxTranslate.x-t.width/2-e.x)/t.width)):e.y<=t.minTranslate.y+t.height/2?(n.y=-1,r.y=o*Math.abs((e.y-t.height/2-t.minTranslate.y)/t.height)):e.x<=t.minTranslate.x+t.width/2&&(n.x=-1,r.x=i*Math.abs((e.x-t.width/2-t.minTranslate.x)/t.width)),t.autoscrollInterval&&(clearInterval(t.autoscrollInterval),t.autoscrollInterval=null,t.isAutoScrolling=!1),0===n.x&&0===n.y||(t.autoscrollInterval=setInterval((function(){t.isAutoScrolling=!0;var e=1*r.x*n.x,i=1*r.y*n.y;t.scrollContainer.scrollTop+=i,t.scrollContainer.scrollLeft+=e,t.translate.x+=e,t.translate.y+=i,t.animateNodes()}),5))},t.manager=new d.default,t.events={start:t.handleStart,move:t.handleMove,end:t.handleEnd},(0,l.default)(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time."),t.state={},t}return v(n,t),o(n,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.getContainer,r=t.useWindowAsScrollContainer,i=this.props.contentWindow||window;this.container="function"==typeof n?n(this.getWrappedInstance()):(0,u.findDOMNode)(this),this.document=this.container.ownerDocument||document,this.scrollContainer=r?this.document.body:this.container,this.contentWindow="function"==typeof i?i():i;var o=function(t){e.events.hasOwnProperty(t)&&p.events[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))};for(var a in this.events)o(a)}},{key:"componentWillUnmount",value:function(){var e=this,t=function(t){e.events.hasOwnProperty(t)&&p.events[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))};for(var n in this.events)t(n)}},{key:"getEdgeOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{top:0,left:0};if(e){var n={top:t.top+e.offsetTop,left:t.left+e.offsetLeft};return e.parentNode!==this.container?this.getEdgeOffset(e.parentNode,n):n}}},{key:"getOffset",value:function(e){return{x:e.touches?e.touches[0].pageX:e.pageX,y:e.touches?e.touches[0].pageY:e.pageY}}},{key:"getLockPixelOffsets",value:function(){var e=this.props.lockOffset;Array.isArray(e)||(e=[e,e]),(0,l.default)(2===e.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",e);var t=i(e,2),n=t[0],r=t[1];return[this.getLockPixelOffset(n),this.getLockPixelOffset(r)]}},{key:"getLockPixelOffset",value:function(e){var t=e,n=e,r="px";if("string"==typeof e){var i=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);(0,l.default)(null!==i,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),t=n=parseFloat(e),r=i[1]}return(0,l.default)(isFinite(t)&&isFinite(n),"lockOffset value should be a finite. Given %s",e),"%"===r&&(t=t*this.width/100,n=n*this.height/100),{x:t,y:n}}},{key:"updatePosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockToContainerEdges,o=this.getOffset(e),a={x:o.x-this.initialOffset.x,y:o.y-this.initialOffset.y};if(a.y-=window.pageYOffset-this.initialWindowScroll.top,a.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=a,r){var s=this.getLockPixelOffsets(),c=i(s,2),u=c[0],l=c[1],d={x:this.width/2-u.x,y:this.height/2-u.y},f={x:this.width/2-l.x,y:this.height/2-l.y};a.x=(0,p.limit)(this.minTranslate.x+d.x,this.maxTranslate.x-f.x,a.x),a.y=(0,p.limit)(this.minTranslate.y+d.y,this.maxTranslate.y-f.y,a.y)}"x"===n?a.y=0:"y"===n&&(a.x=0),this.helper.style[p.vendorPrefix+"Transform"]="translate3d("+a.x+"px,"+a.y+"px, 0)"}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=this.manager.getOrderedRefs(),i=this.scrollContainer.scrollLeft-this.initialScroll.left,o=this.scrollContainer.scrollTop-this.initialScroll.top,a=this.offsetEdge.left+this.translate.x+i,s=this.offsetEdge.top+this.translate.y+o,c=window.pageYOffset-this.initialWindowScroll.top,u=window.pageXOffset-this.initialWindowScroll.left;this.newIndex=null;for(var l=0,d=r.length;l<d;l++){var f=r[l].node,h=f.sortableInfo.index,m=f.offsetWidth,_=f.offsetHeight,v={width:this.width>m?m/2:this.width/2,height:this.height>_?_/2:this.height/2},g={x:0,y:0},y=r[l].edgeOffset;y||(r[l].edgeOffset=y=this.getEdgeOffset(f));var b=l<r.length-1&&r[l+1],w=l>0&&r[l-1];b&&!b.edgeOffset&&(b.edgeOffset=this.getEdgeOffset(b.node)),h!==this.index?(t&&(f.style[p.vendorPrefix+"TransitionDuration"]=t+"ms"),this.axis.x?this.axis.y?h<this.index&&(a+u-v.width<=y.left&&s+c<=y.top+v.height||s+c+v.height<=y.top)?(g.x=this.width+this.marginOffset.x,y.left+g.x>this.containerBoundingRect.width-v.width&&(g.x=b.edgeOffset.left-y.left,g.y=b.edgeOffset.top-y.top),null===this.newIndex&&(this.newIndex=h)):h>this.index&&(a+u+v.width>=y.left&&s+c+v.height>=y.top||s+c+v.height>=y.top+_)&&(g.x=-(this.width+this.marginOffset.x),y.left+g.x<this.containerBoundingRect.left+v.width&&(g.x=w.edgeOffset.left-y.left,g.y=w.edgeOffset.top-y.top),this.newIndex=h):h>this.index&&a+u+v.width>=y.left?(g.x=-(this.width+this.marginOffset.x),this.newIndex=h):h<this.index&&a+u<=y.left+v.width&&(g.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=h)):this.axis.y&&(h>this.index&&s+c+v.height>=y.top?(g.y=-(this.height+this.marginOffset.y),this.newIndex=h):h<this.index&&s+c<=y.top+v.height&&(g.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=h))),f.style[p.vendorPrefix+"Transform"]="translate3d("+g.x+"px,"+g.y+"px,0)"):n&&(this.sortableGhost=f,f.style.visibility="hidden",f.style.opacity=0)}null==this.newIndex&&(this.newIndex=this.index)}},{key:"getWrappedInstance",value:function(){return(0,l.default)(f.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=f.withRef?"wrappedInstance":null;return s.default.createElement(e,r({ref:t},(0,p.omit)(this.props,"contentWindow","useWindowAsScrollContainer","distance","helperClass","hideSortableGhost","transitionDuration","useDragHandle","pressDelay","pressThreshold","shouldCancelStart","onSortStart","onSortMove","onSortEnd","axis","lockAxis","lockOffset","lockToContainerEdges","getContainer","getHelperDimensions")))}}]),n}(a.Component),t.displayName=(0,p.provideDisplayName)("sortableList",e),t.defaultProps={axis:"y",transitionDuration:300,pressDelay:0,pressThreshold:5,distance:0,useWindowAsScrollContainer:!1,hideSortableGhost:!0,shouldCancelStart:function(e){if(-1!==["input","textarea","select","option","button"].indexOf(e.target.tagName.toLowerCase()))return!0},lockToContainerEdges:!1,lockOffset:"50%",getHelperDimensions:function(e){var t=e.node;return{width:t.offsetWidth,height:t.offsetHeight}}},t.propTypes={axis:c.default.oneOf(["x","y","xy"]),distance:c.default.number,lockAxis:c.default.string,helperClass:c.default.string,transitionDuration:c.default.number,contentWindow:c.default.any,onSortStart:c.default.func,onSortMove:c.default.func,onSortEnd:c.default.func,shouldCancelStart:c.default.func,pressDelay:c.default.number,useDragHandle:c.default.bool,useWindowAsScrollContainer:c.default.bool,hideSortableGhost:c.default.bool,lockToContainerEdges:c.default.bool,lockOffset:c.default.oneOfType([c.default.number,c.default.string,c.default.arrayOf(c.default.oneOfType([c.default.number,c.default.string]))]),getContainer:c.default.func,getHelperDimensions:c.default.func},t.childContextTypes={manager:c.default.object.isRequired},n};var a=n(1),s=f(a),c=f(n(4)),u=n(13),l=f(n(30)),d=f(n(557)),p=n(158);function f(e){return e&&e.__esModule?e:{default:e}}function h(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(558)),o=a(n(627));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.refs={}}return r(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return(0,i.default)(this.refs[this.active.collection],(function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return(0,o.default)(this.refs[e],(function(e){return e.node.sortableInfo.index}))}}]),e}();t.default=s},function(e,t,n){var r=n(559)(n(623));e.exports=r},function(e,t,n){var r=n(234),i=n(105),o=n(166);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var c=r(n,3);t=o(t),n=function(e){return c(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[c?t[u]:u]:void 0}}},function(e,t,n){var r=n(561),i=n(612),o=n(418);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(404),i=n(238);e.exports=function(e,t,n,o){var a=n.length,s=a,c=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var l=(u=n[a])[0],d=e[l],p=u[1];if(c&&u[2]){if(void 0===d&&!(l in e))return!1}else{var f=new r;if(o)var h=o(d,p,l,e,t,f);if(!(void 0===h?i(p,d,3,o,f):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(160),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(160);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(160);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(160);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(159);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(159),i=n(235),o=n(237);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(236),i=n(575),o=n(81),a=n(406),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,p=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},function(e,t,n){var r=n(144),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(576),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(75)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(579),i=n(159),o=n(235);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(580),i=n(581),o=n(582),a=n(583),s=n(584);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(162);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(162),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(162),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(162);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(163);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(163);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(163);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(163);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(404),i=n(407),o=n(594),a=n(597),s=n(609),c=n(65),u=n(411),l=n(412),d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,h,m){var _=c(e),v=c(t),g=_?"[object Array]":s(e),y=v?"[object Array]":s(t),b=(g="[object Arguments]"==g?d:g)==d,w=(y="[object Arguments]"==y?d:y)==d,k=g==y;if(k&&u(e)){if(!u(t))return!1;_=!0,b=!1}if(k&&!b)return m||(m=new r),_||l(e)?i(e,t,n,f,h,m):o(e,t,g,n,f,h,m);if(!(1&n)){var O=b&&p.call(e,"__wrapped__"),C=w&&p.call(t,"__wrapped__");if(O||C){var M=O?e.value():e,D=C?t.value():t;return m||(m=new r),h(M,D,n,f,m)}}return!!k&&(m||(m=new r),a(e,t,n,f,h,m))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(144),i=n(595),o=n(161),a=n(407),s=n(596),c=n(239),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=c),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var _=a(f(e),f(t),r,u,d,p);return p.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t,n){var r=n(75).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(598),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var d=l;d--;){var p=u[d];if(!(c?p in t:i.call(t,p)))return!1}var f=s.get(e);if(f&&s.get(t))return f==t;var h=!0;s.set(e,t),s.set(t,e);for(var m=c;++d<l;){var _=e[p=u[d]],v=t[p];if(o)var g=c?o(v,_,p,t,e,s):o(_,v,p,e,t,s);if(!(void 0===g?_===v||a(_,v,n,o,s):g)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return s.delete(e),s.delete(t),h}},function(e,t,n){var r=n(599),i=n(600),o=n(166);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(408),i=n(65);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t,n){var r=n(409),i=n(601),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},function(e,t){e.exports=function(){return[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(119),i=n(82);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(119),i=n(242),o=n(82),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){(function(e){var r=n(405),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(79)(e))},function(e,t,n){var r=n(413),i=n(608),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(414)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(610),i=n(235),o=n(611),a=n(415),s=n(416),c=n(119),u=n(406),l=u(r),d=u(i),p=u(o),f=u(a),h=u(s),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case f:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(104)(n(75),"DataView");e.exports=r},function(e,t,n){var r=n(104)(n(75),"Promise");e.exports=r},function(e,t,n){var r=n(417),i=n(166);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(238),i=n(419),o=n(617),a=n(243),s=n(417),c=n(418),u=n(168);e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},function(e,t,n){var r=n(615),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(422);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(144),i=n(146),o=n(65),a=n(145),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(618),i=n(619);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(421),i=n(240),o=n(65),a=n(241),s=n(242),c=n(168);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,d=!1;++u<l;){var p=c(t[u]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++u!=l?d:!!(l=null==e?0:e.length)&&s(l)&&a(p,l)&&(o(e)||i(e))}},function(e,t,n){var r=n(621),i=n(622),o=n(243),a=n(168);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(420);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(423),i=n(234),o=n(624),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:o(n);return c<0&&(c=a(s+c,0)),r(e,i(t,3),c)}},function(e,t,n){var r=n(625);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(626);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(81),i=n(145),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(170),i=n(629),o=n(120),a=n(426),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},function(e,t,n){var r=n(144),i=n(240),o=n(65),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(146),i=n(234),o=n(630),a=n(636),s=n(167),c=n(637),u=n(169);e.exports=function(e,t,n){var l=-1;t=r(t.length?t:[u],s(i));var d=o(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++l,value:e}}));return a(d,(function(e,t){return c(e,t,n)}))}},function(e,t,n){var r=n(631),i=n(105);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},function(e,t,n){var r=n(632),i=n(635)(r);e.exports=i},function(e,t,n){var r=n(633),i=n(166);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(634)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}},function(e,t,n){var r=n(105);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(638);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,c=n.length;++i<s;){var u=r(o[i],a[i]);if(u)return i>=c?u:u*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(145);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,c=null===t,u=t==t,l=r(t);if(!c&&!l&&!a&&e>t||a&&s&&u&&!c&&!l||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!l&&e<t||l&&n&&o&&!i&&!a||c&&n&&o||!s&&o||!u)return-1}return 0}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(641),i=n(642),o=n(169),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(104),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){var t,n,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return p(this,n),f(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return h(n,t),i(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index;n||this.setDraggable(t,r)}},{key:"componentWillReceiveProps",value:function(e){if(this.props.index!==e.index&&this.node&&(this.node.sortableInfo.index=e.index),this.props.disabled!==e.disabled){var t=e.collection,n=e.disabled,r=e.index;n?this.removeDraggable(t):this.setDraggable(t,r)}else this.props.collection!==e.collection&&(this.removeDraggable(this.props.collection),this.setDraggable(e.collection,e.index))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.collection;e.disabled||this.removeDraggable(t)}},{key:"setDraggable",value:function(e,t){var n=this.node=(0,c.findDOMNode)(this);n.sortableInfo={index:t,collection:e,manager:this.context.manager},this.ref={node:n},this.context.manager.add(e,this.ref)}},{key:"removeDraggable",value:function(e){this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return(0,u.default)(d.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=d.withRef?"wrappedInstance":null;return a.default.createElement(e,r({ref:t},(0,l.omit)(this.props,"collection","disabled","index")))}}]),n}(o.Component),t.displayName=(0,l.provideDisplayName)("sortableElement",e),t.contextTypes={manager:s.default.object.isRequired},t.propTypes={index:s.default.number.isRequired,collection:s.default.oneOfType([s.default.number,s.default.string]),disabled:s.default.bool},t.defaultProps={collection:0},n};var o=n(1),a=d(o),s=d(n(4)),c=n(13),u=d(n(30)),l=n(158);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){var t,n,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return d(this,n),p(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return f(n,t),i(n,[{key:"componentDidMount",value:function(){(0,s.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return(0,c.default)(l.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=l.withRef?"wrappedInstance":null;return a.default.createElement(e,r({ref:t},this.props))}}]),n}(o.Component),t.displayName=(0,u.provideDisplayName)("sortableHandle",e),n};var o=n(1),a=l(o),s=n(13),c=l(n(30)),u=n(158);function l(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(428)),r(n(647))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(648);t.createDragDropManager=function(e,t){return new r.default(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(649),i=n(650),o=n(171),a=n(665),s=n(667),c=function(){function e(e,t){void 0===t&&(t={}),this.context=t,this.isSetUp=!1;var n=r.createStore(i.default);this.store=n,this.monitor=new a.default(n,new s.default(n)),this.backend=e(this),n.subscribe(this.handleRefCountChange.bind(this))}return e.prototype.getContext=function(){return this.context},e.prototype.getMonitor=function(){return this.monitor},e.prototype.getBackend=function(){return this.backend},e.prototype.getRegistry=function(){return this.monitor.registry},e.prototype.getActions=function(){var e=this,t=this.store.dispatch;var n=o.default(this);return Object.keys(n).reduce((function(r,i){var o,a=n[i];return r[i]=(o=a,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=o.apply(e,n);void 0!==i&&t(i)}),r}),{})},e.prototype.dispatch=function(e){this.store.dispatch(e)},e.prototype.handleRefCountChange=function(){var e=this.store.getState().refCount>0;e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)},e}();t.default=c},function(e,t,n){"use strict";n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return o})),n.d(t,"applyMiddleware",(function(){return _})),n.d(t,"bindActionCreators",(function(){return d})),n.d(t,"combineReducers",(function(){return u})),n.d(t,"compose",(function(){return m})),n.d(t,"createStore",(function(){return s}));var r=n(124),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,u=t,l=[],d=l,p=!1;function f(){d===l&&(d=l.slice())}function h(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return f(),d.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,f();var n=d.indexOf(e);d.splice(n,1),l=null}}}function _(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,u=c(u,e)}finally{p=!1}for(var t=l=d,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,_({type:o.REPLACE})}function g(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e}return _({type:o.INIT}),(i={dispatch:_,subscribe:m,getState:h,replaceReducer:v})[r.a]=g,i}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function u(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var a,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:o.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},o=0;o<s.length;o++){var u=s[o],l=n[u],d=e[u],p=l(d,t);if(void 0===p){var f=c(u,t);throw new Error(f)}i[u]=p,r=r||p!==d}return(r=r||s.length!==Object.keys(e).length)?i:e}}function l(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return l(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=l(i,t))}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return h({},n,{dispatch:r=m.apply(void 0,o)(n.dispatch)})}}}},function(e,t,n){"use strict";var r=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var i=n(651),o=n(652),a=n(656),s=n(657),c=n(664),u=n(419);t.default=function(e,t){return void 0===e&&(e={}),{dirtyHandlerIds:s.default(e.dirtyHandlerIds,{type:t.type,payload:r({},t.payload,{prevTargetIds:u(e,"dragOperation.targetIds",[])})}),dragOffset:i.default(e.dragOffset,t),refCount:a.default(e.refCount,t),dragOperation:o.default(e.dragOperation,t),stateId:c.default(e.stateId)}}},function(e,t,n){"use strict";var r=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var i=n(171),o=n(430),a={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};t.default=function(e,t){void 0===e&&(e=a);var n=t.payload;switch(t.type){case i.BEGIN_DRAG:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case i.HOVER:return o.areCoordsEqual(e.clientOffset,n.clientOffset)?e:r({},e,{clientOffset:n.clientOffset});case i.END_DRAG:case i.DROP:return a;default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var i=n(171),o=n(172),a=n(431),s={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};t.default=function(e,t){void 0===e&&(e=s);var n=t.payload;switch(t.type){case i.BEGIN_DRAG:return r({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case i.PUBLISH_DRAG_SOURCE:return r({},e,{isSourcePublic:!0});case i.HOVER:return r({},e,{targetIds:n.targetIds});case o.REMOVE_TARGET:return-1===e.targetIds.indexOf(n.targetId)?e:r({},e,{targetIds:a(e.targetIds,n.targetId)});case i.DROP:return r({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case i.END_DRAG:return r({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}},function(e,t,n){var r=n(423),i=n(654),o=n(655);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(172);t.default=function(e,t){switch(void 0===e&&(e=0),t.type){case r.ADD_SOURCE:case r.ADD_TARGET:return e+1;case r.REMOVE_SOURCE:case r.REMOVE_TARGET:return e-1;default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(171),i=n(172),o=n(430),a=n(433),s=n(661);t.default=function(e,t){switch(void 0===e&&(e=a.NONE),t.type){case r.HOVER:break;case i.ADD_SOURCE:case i.ADD_TARGET:case i.REMOVE_TARGET:case i.REMOVE_SOURCE:return a.NONE;case r.BEGIN_DRAG:case r.PUBLISH_DRAG_SOURCE:case r.END_DRAG:case r.DROP:default:return a.ALL}var n=t.payload,c=n.targetIds,u=void 0===c?[]:c,l=n.prevTargetIds,d=void 0===l?[]:l,p=s(u,d);if(!(p.length>0||!o.areArraysEqual(u,d)))return a.NONE;var f=d[d.length-1],h=u[u.length-1];return f!==h&&(f&&p.push(f),h&&p.push(h)),p}},function(e,t,n){var r=n(146),i=n(659),o=n(120),a=n(660),s=o((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=s},function(e,t,n){var r=n(164),i=n(246),o=n(247),a=n(146),s=n(167),c=n(165),u=Math.min;e.exports=function(e,t,n){for(var l=n?o:i,d=e[0].length,p=e.length,f=p,h=Array(p),m=1/0,_=[];f--;){var v=e[f];f&&t&&(v=a(v,s(t))),m=u(v.length,m),h[f]=!n&&(t||d>=120&&v.length>=120)?new r(f&&v):void 0}v=e[0];var g=-1,y=h[0];e:for(;++g<d&&_.length<m;){var b=v[g],w=t?t(b):b;if(b=n||0!==b?b:0,!(y?c(y,w):l(_,w,n))){for(f=p;--f;){var k=h[f];if(!(k?c(k,w):l(e[f],w,n)))continue e}y&&y.push(w),_.push(b)}}return _}},function(e,t,n){var r=n(173);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(409),i=n(120),o=n(662),a=n(173),s=i((function(e){return o(r(e,a))}));e.exports=s},function(e,t,n){var r=n(432),i=n(170),o=n(248);e.exports=function(e,t,n){var a=e.length;if(a<2)return a?o(e[0]):[];for(var s=-1,c=Array(a);++s<a;)for(var u=e[s],l=-1;++l<a;)l!=s&&(c[s]=r(c[s]||u,e[l],t,n));return o(i(c,1),t,n)}},function(e,t,n){var r=n(415),i=n(174),o=n(239),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return void 0===e&&(e=0),e+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(429),i=n(666),o=n(433),a=n(30),s=function(){function e(e,t){this.store=e,this.registry=t}return e.prototype.subscribeToStateChange=function(e,t){var n=this;void 0===t&&(t={handlerIds:void 0});var r=t.handlerIds;a("function"==typeof e,"listener must be a function."),a(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId;return this.store.subscribe((function(){var t=n.store.getState(),a=t.stateId;try{a===i||a===i+1&&!o.areDirty(t.dirtyHandlerIds,r)||e()}finally{i=a}}))},e.prototype.subscribeToOffsetChange=function(e){var t=this;a("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))},e.prototype.canDragSource=function(e){var t=this.registry.getSource(e);return a(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)},e.prototype.canDropOnTarget=function(e){var t=this.registry.getTarget(e);if(a(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(e),i=this.getItemType();return r.default(n,i)&&t.canDrop(this,e)},e.prototype.isDragging=function(){return Boolean(this.getItemType())},e.prototype.isDraggingSource=function(e){var t=this.registry.getSource(e,!0);return a(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))},e.prototype.isOverTarget=function(e,t){void 0===t&&(t={shallow:!1});var n=t.shallow;if(!this.isDragging())return!1;var i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!r.default(i,o))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(e);return n?s===a.length-1:s>-1},e.prototype.getItemType=function(){return this.store.getState().dragOperation.itemType},e.prototype.getItem=function(){return this.store.getState().dragOperation.item},e.prototype.getSourceId=function(){return this.store.getState().dragOperation.sourceId},e.prototype.getTargetIds=function(){return this.store.getState().dragOperation.targetIds},e.prototype.getDropResult=function(){return this.store.getState().dragOperation.dropResult},e.prototype.didDrop=function(){return this.store.getState().dragOperation.didDrop},e.prototype.isSourcePublic=function(){return this.store.getState().dragOperation.isSourcePublic},e.prototype.getInitialClientOffset=function(){return this.store.getState().dragOffset.initialClientOffset},e.prototype.getInitialSourceClientOffset=function(){return this.store.getState().dragOffset.initialSourceClientOffset},e.prototype.getClientOffset=function(){return this.store.getState().dragOffset.clientOffset},e.prototype.getSourceClientOffset=function(){return i.getSourceClientOffset(this.store.getState().dragOffset)},e.prototype.getDifferenceFromInitialOffset=function(){return i.getDifferenceFromInitialOffset(this.store.getState().dragOffset)},e}();t.default=s},function(e,t,n){"use strict";function r(e,t){return{x:e.x+t.x,y:e.y+t.y}}function i(e,t){return{x:e.x-t.x,y:e.y-t.y}}Object.defineProperty(t,"__esModule",{value:!0}),t.add=r,t.subtract=i,t.getSourceClientOffset=function(e){var t=e.clientOffset,n=e.initialClientOffset,o=e.initialSourceClientOffset;return t&&n&&o?i(r(t,o),n):null},t.getDifferenceFromInitialOffset=function(e){var t=e.clientOffset,n=e.initialClientOffset;return t&&n?i(t,n):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(172),i=n(668),o=n(428),a=n(669),s=n(30),c=n(670);function u(e){switch(e[0]){case"S":return o.HandlerRole.SOURCE;case"T":return o.HandlerRole.TARGET;default:s(!1,"Cannot parse handler ID: "+e)}}function l(e,t){var n=e.entries(),r=!1;do{var i=n.next(),o=i.done;if(i.value[1]===t)return!0;r=o}while(!r);return!1}var d=function(){function e(e){this.store=e,this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null}return e.prototype.addSource=function(e,t){a.validateType(e),a.validateSourceContract(t);var n=this.addHandler(o.HandlerRole.SOURCE,e,t);return this.store.dispatch(r.addSource(n)),n},e.prototype.addTarget=function(e,t){a.validateType(e,!0),a.validateTargetContract(t);var n=this.addHandler(o.HandlerRole.TARGET,e,t);return this.store.dispatch(r.addTarget(n)),n},e.prototype.containsHandler=function(e){return l(this.dragSources,e)||l(this.dropTargets,e)},e.prototype.getSource=function(e,t){return void 0===t&&(t=!1),s(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)},e.prototype.getTarget=function(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)},e.prototype.getSourceType=function(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)},e.prototype.getTargetType=function(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)},e.prototype.isSourceId=function(e){return u(e)===o.HandlerRole.SOURCE},e.prototype.isTargetId=function(e){return u(e)===o.HandlerRole.TARGET},e.prototype.removeSource=function(e){var t=this;s(this.getSource(e),"Expected an existing source."),this.store.dispatch(r.removeSource(e)),c((function(){t.dragSources.delete(e),t.types.delete(e)}))},e.prototype.removeTarget=function(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(r.removeTarget(e)),this.dropTargets.delete(e),this.types.delete(e)},e.prototype.pinSource=function(e){var t=this.getSource(e);s(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t},e.prototype.unpinSource=function(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null},e.prototype.addHandler=function(e,t,n){var r=function(e){var t=i.default().toString();switch(e){case o.HandlerRole.SOURCE:return"S"+t;case o.HandlerRole.TARGET:return"T"+t;default:throw new Error("Unknown Handler Role: "+e)}}(e);return this.types.set(r,t),e===o.HandlerRole.SOURCE?this.dragSources.set(r,n):e===o.HandlerRole.TARGET&&this.dropTargets.set(r,n),r},e}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=0;t.default=function(){return r++}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30);t.validateSourceContract=function(e){r("function"==typeof e.canDrag,"Expected canDrag to be a function."),r("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),r("function"==typeof e.endDrag,"Expected endDrag to be a function.")},t.validateTargetContract=function(e){r("function"==typeof e.canDrop,"Expected canDrop to be a function."),r("function"==typeof e.hover,"Expected hover to be a function."),r("function"==typeof e.drop,"Expected beginDrag to be a function.")},t.validateType=function e(t,n){n&&Array.isArray(t)?t.forEach((function(t){return e(t,!1)})):r("string"==typeof t||"symbol"==typeof t,n?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}},function(e,t,n){"use strict";var r=n(671),i=[],o=[],a=r.makeRequestCallFromTimer((function(){if(o.length)throw o.shift()}));function s(e){var t;(t=i.length?i.pop():new c).task=e,r(t)}function c(){this.task=null}e.exports=s,c.prototype.call=function(){try{this.task.call()}catch(e){s.onerror?s.onerror(e):(o.push(e),a())}finally{this.task=null,i[i.length]=this}}},function(e,t,n){"use strict";(function(t){function n(e){i.length||(r(),!0),i[i.length]=e}e.exports=n;var r,i=[],o=0;function a(){for(;o<i.length;){var e=o;if(o+=1,i[e].call(),o>1024){for(var t=0,n=i.length-o;t<n;t++)i[t]=i[t+o];i.length-=o,o=0}}i.length=0,o=0,!1}var s,c,u,l=void 0!==t?t:self,d=l.MutationObserver||l.WebKitMutationObserver;function p(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof d?(s=1,c=new d(a),u=document.createTextNode(""),c.observe(u,{characterData:!0}),r=function(){s=-s,u.data=s}):r=p(a),n.requestFlush=r,n.makeRequestCallFromTimer=p}).call(this,n(41))},function(e,t,n){"use strict";var r,i=this&&this.__extends||(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])},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=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(175),c=n(245),u=n(148),l=n(121),d=n(30),p=n(147),f=n(249).default;t.default=function(e,t){return void 0===t&&(t={}),s.default("DragLayer","collect[, options]",e,t),d("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html",e),d(l(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html',t),function(n){var r=n,s=t.arePropsEqual,l=void 0===s?p:s,h=r.displayName||r.name||"Component",m=function(t){function s(e){var n=t.call(this,e)||this;return n.isCurrentlyMounted=!1,n.ref=a.createRef(),n.handleChange=n.handleChange.bind(n),n}return i(s,t),Object.defineProperty(s.prototype,"DecoratedComponent",{get:function(){return n},enumerable:!0,configurable:!0}),s.prototype.getDecoratedComponentInstance=function(){return d(this.ref.current,"In order to access an instance of the decorated component it can not be a stateless component."),this.ref.current},s.prototype.shouldComponentUpdate=function(e,t){return!l(e,this.props)||!p(t,this.state)},s.prototype.componentDidMount=function(){this.isCurrentlyMounted=!0,this.handleChange()},s.prototype.componentWillUnmount=function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)},s.prototype.render=function(){var e=this;return a.createElement(c.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?a.createElement(r,o({},e.props,e.state,{ref:f(r)?e.ref:void 0})):null)}))},s.prototype.receiveDragDropManager=function(e){if(void 0===this.manager){this.manager=e,d("object"==typeof e,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",h,h);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}},s.prototype.handleChange=function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();p(e,this.state)||this.setState(e)}},s.prototype.getCurrentState=function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)},s.displayName="DragLayer("+h+")",s}(a.Component);return u(m,n)}}},function(e,t,n){var r=n(414)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(175),i=n(434),o=n(679),a=n(680),s=n(681),c=n(682),u=n(436),l=n(30),d=n(121);t.default=function(e,t,n,p){void 0===p&&(p={}),r.default("DragSource","type, spec, collect[, options]",e,t,n,p);var f=e;"function"!=typeof e&&(l(u.default(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',e),f=function(){return e}),l(d(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',t);var h=a.default(t);return l("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),l(d(p),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),function(e){return i.default({containerDisplayName:"DragSource",createHandler:h,registerHandler:o.default,createMonitor:s.default,createConnector:c.default,DecoratedComponent:e,getType:f,collect:n,options:p})}}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(676)),r(n(677)),r(n(678))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(236),i=n(174),o=function(){function e(e){this.isDisposed=!1,this.action=r(e)?e:i}return e.isDisposable=function(e){return e&&r(e.dispose)},e._fixup=function(t){return e.isDisposable(t)?t:e.empty},e.create=function(t){return new e(t)},e.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)},e.empty={dispose:i},e}();t.Disposable=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.isDisposed=!1}return e.prototype.getDisposable=function(){return this.current},e.prototype.setDisposable=function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}},e}();t.SerialDisposable=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isDisposed=!1,this.disposables=e}return e.prototype.add=function(e){this.isDisposed?e.dispose():this.disposables.push(e)},e.prototype.remove=function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t},e.prototype.clear=function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(n=0;n<e;n++)t[n].dispose()}},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(n=0;n<e;n++)t[n].dispose()}},e}();t.CompositeDisposable=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=n.getRegistry(),i=r.addSource(e,t);return{handlerId:i,unregister:function(){r.removeSource(i)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(30),o=(n(121),["canDrag","beginDrag","isDragging","endDrag"]),a=["beginDrag"];t.default=function(e){Object.keys(e).forEach((function(t){i(o.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',o.join(", "),t),i("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])})),a.forEach((function(t){i("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])}));var t=function(){function t(e){this.monitor=e,this.props=null,this.ref=r.createRef(),this.beginDrag=this.beginDrag.bind(this)}return t.prototype.receiveProps=function(e){this.props=e},t.prototype.canDrag=function(){return!!this.props&&(!e.canDrag||e.canDrag(this.props,this.monitor))},t.prototype.isDragging=function(t,n){return!!this.props&&(e.isDragging?e.isDragging(this.props,this.monitor):n===t.getSourceId())},t.prototype.beginDrag=function(){if(this.props)return e.beginDrag(this.props,this.monitor,this.ref.current)},t.prototype.endDrag=function(){this.props&&e.endDrag&&e.endDrag(this.props,this.monitor,this.ref.current)},t}();return function(e){return new t(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=!1,o=!1,a=function(){function e(e){this.internalMonitor=e.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.sourceId=e},e.prototype.canDrag=function(){r(!i,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return i=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{i=!1}},e.prototype.isDragging=function(){r(!o,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return o=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{o=!1}},e.prototype.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},e.prototype.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},e.prototype.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},e.prototype.getTargetIds=function(){return this.internalMonitor.getTargetIds()},e.prototype.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},e.prototype.getSourceId=function(){return this.internalMonitor.getSourceId()},e.prototype.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},e.prototype.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},e.prototype.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();t.default=function(e){return new a(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(435),i=n(147);t.default=function(e){var t,n,o,a,s,c,u;function l(){a&&(a(),a=void 0),t&&n&&(a=e.connectDragSource(t,n,o))}function d(){u&&(u(),u=void 0),t&&s&&(u=e.connectDragPreview(t,s,c))}return{receiveHandlerId:function(e){e!==t&&(t=e,l(),d())},hooks:r.default({dragSource:function(e,t){e===n&&i(t,o)||(n=e,o=t,l())},dragPreview:function(e,t){e===s&&i(t,c)||(s=e,c=t,d())}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(30);t.default=function(e,t){var n=e.ref;return i("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?r.cloneElement(e,{ref:function(e){t(e),n&&n(e)}}):r.cloneElement(e,{ref:t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(175),i=n(434),o=n(685),a=n(686),s=n(687),c=n(688),u=n(436),l=n(30),d=n(121);t.default=function(e,t,n,p){void 0===p&&(p={}),r.default("DropTarget","type, spec, collect[, options]",e,t,n,p);var f=e;"function"!=typeof e&&(l(u.default(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',e),f=function(){return e}),l(d(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',t);var h=a.default(t);return l("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),l(d(p),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),function(e){return i.default({containerDisplayName:"DropTarget",createHandler:h,registerHandler:o.default,createMonitor:s.default,createConnector:c.default,DecoratedComponent:e,getType:f,collect:n,options:p})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=n.getRegistry(),i=r.addTarget(e,t);return{handlerId:i,unregister:function(){r.removeTarget(i)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(30),o=(n(121),["canDrop","hover","drop"]);t.default=function(e){Object.keys(e).forEach((function(t){i(o.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',o.join(", "),t),i("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",t,t,e[t])}));var t=function(){function t(e){this.monitor=e,this.props=null,this.ref=r.createRef()}return t.prototype.receiveProps=function(e){this.props=e},t.prototype.receiveMonitor=function(e){this.monitor=e},t.prototype.canDrop=function(){return!e.canDrop||e.canDrop(this.props,this.monitor)},t.prototype.hover=function(){e.hover&&e.hover(this.props,this.monitor,this.ref.current)},t.prototype.drop=function(){if(e.drop)return e.drop(this.props,this.monitor,this.ref.current)},t}();return function(e){return new t(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=!1,o=function(){function e(e){this.internalMonitor=e.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.targetId=e},e.prototype.canDrop=function(){r(!i,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return i=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{i=!1}},e.prototype.isOver=function(e){return this.internalMonitor.isOverTarget(this.targetId,e)},e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();t.TargetMonitor=o,t.default=function(e){return new o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(435),i=n(147);t.default=function(e){var t,n,o,a;function s(){a&&(a(),a=void 0),t&&n&&(a=e.connectDropTarget(t,n,o))}return{receiveHandlerId:function(e){e!==t&&(t=e,s())},hooks:r.default({dropTarget:function(e,t){e===n&&i(t,o)||(n=e,o=t,s())}})}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(690)),a=r(n(701));t.getEmptyImage=a.default;var s=i(n(250));t.NativeTypes=s,t.default=function(e){return new o.default(e)}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(691)),s=i(n(695)),c=n(437),u=n(697),l=n(699),d=o(n(250)),p=i(n(700)),f=n(147),h=function(){function e(e){this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},this.enterLeaveCounter=new s.default,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.context=e.getContext()}return Object.defineProperty(e.prototype,"window",{get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0},enumerable:!0,configurable:!0}),e.prototype.setup=function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}},e.prototype.teardown=function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))},e.prototype.connectDragPreview=function(e,t,n){var r=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete r.sourcePreviewNodes[e],delete r.sourcePreviewNodeOptions[e]}},e.prototype.connectDragSource=function(e,t,n){var r=this;this.sourceNodes[e]=t,this.sourceNodeOptions[e]=n;var i=function(t){return r.handleDragStart(t,e)},o=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable",!0),t.addEventListener("dragstart",i),t.addEventListener("selectstart",o),function(){delete r.sourceNodes[e],delete r.sourceNodeOptions[e],t.removeEventListener("dragstart",i),t.removeEventListener("selectstart",o),t.setAttribute("draggable",!1)}},e.prototype.connectDropTarget=function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},i=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",i),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",i),t.removeEventListener("drop",o)}},e.prototype.addEventListeners=function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))},e.prototype.removeEventListeners=function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))},e.prototype.getCurrentSourceNodeOptions=function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions[e];return a.default(t||{},{dropEffect:this.altKeyPressed?"copy":"move"})},e.prototype.getCurrentDropEffect=function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect},e.prototype.getCurrentSourcePreviewNodeOptions=function(){var e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions[e];return a.default(t||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})},e.prototype.getSourceClientOffset=function(e){return u.getNodeClientOffset(this.sourceNodes[e])},e.prototype.isDraggingNativeItem=function(){var e=this.monitor.getItemType();return Object.keys(d).some((function(t){return d[t]===e}))},e.prototype.beginDragNativeItem=function(e){this.clearCurrentDragSourceNode();var t=l.createNativeDragSource(e);this.currentNativeSource=new t,this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])},e.prototype.asyncEndDragNativeItem=function(){this.window&&(this.asyncEndDragFrameId=this.window.requestAnimationFrame(this.endDragNativeItem))},e.prototype.endDragNativeItem=function(){this.isDraggingNativeItem()&&(this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},e.prototype.isNodeInDocument=function(e){return!!document&&document.body.contains(e)||!!this.window&&this.window.document.body.contains(e)},e.prototype.endDragIfSourceWasRemovedFromDOM=function(){var e=this.currentDragSourceNode;this.isNodeInDocument(e)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()},e.prototype.setCurrentDragSourceNode=function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.currentDragSourceNodeOffset=u.getNodeClientOffset(e),this.currentDragSourceNodeOffsetChanged=!1;this.mouseMoveTimeoutTimer=setTimeout((function(){return t.mouseMoveTimeoutId=null,t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)},e.prototype.clearCurrentDragSourceNode=function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)},e.prototype.checkIfCurrentDragSourceRectChanged=function(){var e=this.currentDragSourceNode;return!!e&&(!!this.currentDragSourceNodeOffsetChanged||(this.currentDragSourceNodeOffsetChanged=!f(u.getNodeClientOffset(e),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged))},e.prototype.handleTopDragStartCapture=function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},e.prototype.handleDragStart=function(e,t){this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t)},e.prototype.handleTopDragStart=function(e){var t=this,n=this.dragStartSourceIds;this.dragStartSourceIds=null;var r=u.getEventClientOffset(e);this.monitor.isDragging()&&this.actions.endDrag(),this.actions.beginDrag(n||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});var i=e.dataTransfer,o=l.matchNativeItemType(i);if(this.monitor.isDragging()){if("function"==typeof i.setDragImage){var a=this.monitor.getSourceId(),s=this.sourceNodes[a],c=this.sourcePreviewNodes[a]||s,d=this.getCurrentSourcePreviewNodeOptions(),p={anchorX:d.anchorX,anchorY:d.anchorY},f={offsetX:d.offsetX,offsetY:d.offsetY},h=u.getDragPreviewOffset(s,c,r,p,f);i.setDragImage(c,h.x,h.y)}try{i.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target),this.getCurrentSourcePreviewNodeOptions().captureDraggingState?this.actions.publishDragSource():setTimeout((function(){return t.actions.publishDragSource()}),0)}else if(o)this.beginDragNativeItem(o);else{if(!(i.types||e.target.hasAttribute&&e.target.hasAttribute("draggable")))return;e.preventDefault()}},e.prototype.handleTopDragEndCapture=function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()},e.prototype.handleTopDragEnterCapture=function(e){if(this.dragEnterTargetIds=[],this.enterLeaveCounter.enter(e.target)&&!this.monitor.isDragging()){var t=e.dataTransfer,n=l.matchNativeItemType(t);n&&this.beginDragNativeItem(n)}},e.prototype.handleDragEnter=function(e,t){this.dragEnterTargetIds.unshift(t)},e.prototype.handleTopDragEnter=function(e){var t=this,n=this.dragEnterTargetIds;(this.dragEnterTargetIds=[],this.monitor.isDragging())&&(this.altKeyPressed=e.altKey,c.isFirefox()||this.actions.hover(n,{clientOffset:u.getEventClientOffset(e)}),n.some((function(e){return t.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},e.prototype.handleTopDragOverCapture=function(){this.dragOverTargetIds=[]},e.prototype.handleDragOver=function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)},e.prototype.handleTopDragOver=function(e){var t=this,n=this.dragOverTargetIds;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer.dropEffect="none");this.altKeyPressed=e.altKey,this.actions.hover(n||[],{clientOffset:u.getEventClientOffset(e)}),(n||[]).some((function(e){return t.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(e.preventDefault(),e.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(e.preventDefault(),e.dataTransfer.dropEffect="move")},e.prototype.handleTopDragLeaveCapture=function(e){this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&this.isDraggingNativeItem()&&this.endDragNativeItem()},e.prototype.handleTopDropCapture=function(e){this.dropTargetIds=[],e.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer),this.enterLeaveCounter.reset()},e.prototype.handleDrop=function(e,t){this.dropTargetIds.unshift(t)},e.prototype.handleTopDrop=function(e){var t=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:u.getEventClientOffset(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()},e.prototype.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},r([p.default],e.prototype,"getSourceClientOffset",null),r([p.default],e.prototype,"asyncEndDragNativeItem",null),r([p.default],e.prototype,"endDragNativeItem",null),r([p.default],e.prototype,"isNodeInDocument",null),r([p.default],e.prototype,"endDragIfSourceWasRemovedFromDOM",null),r([p.default],e.prototype,"handleTopDragStartCapture",null),r([p.default],e.prototype,"handleTopDragStart",null),r([p.default],e.prototype,"handleTopDragEndCapture",null),r([p.default],e.prototype,"handleTopDragEnterCapture",null),r([p.default],e.prototype,"handleTopDragEnter",null),r([p.default],e.prototype,"handleTopDragOverCapture",null),r([p.default],e.prototype,"handleTopDragOver",null),r([p.default],e.prototype,"handleTopDragLeaveCapture",null),r([p.default],e.prototype,"handleTopDropCapture",null),r([p.default],e.prototype,"handleTopDrop",null),r([p.default],e.prototype,"handleSelectStart",null),e}();t.default=h},function(e,t,n){var r=n(120),i=n(161),o=n(426),a=n(692),s=Object.prototype,c=s.hasOwnProperty,u=r((function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&o(t[0],t[1],u)&&(r=1);++n<r;)for(var l=t[n],d=a(l),p=-1,f=d.length;++p<f;){var h=d[p],m=e[h];(void 0===m||i(m,s[h])&&!c.call(e,h))&&(e[h]=l[h])}return e}));e.exports=u},function(e,t,n){var r=n(410),i=n(693),o=n(105);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(81),i=n(413),o=n(694),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(696)),o=r(n(431)),a=function(){function e(){this.entered=[]}return e.prototype.enter=function(e){var t=this.entered.length;return this.entered=i.default(this.entered.filter((function(t){return document.documentElement.contains(t)&&(!t.contains||t.contains(e))})),[e]),0===t&&this.entered.length>0},e.prototype.leave=function(e){var t=this.entered.length;return this.entered=o.default(this.entered.filter((function(e){return document.documentElement.contains(e)})),e),t>0&&0===this.entered.length},e.prototype.reset=function(){this.entered=[]},e}();t.default=a},function(e,t,n){var r=n(170),i=n(120),o=n(248),a=n(173),s=i((function(e){return o(r(e,1,a,!0))}));e.exports=s},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(437),o=r(n(698));function a(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}t.getNodeClientOffset=a,t.getEventClientOffset=function(e){return{x:e.clientX,y:e.clientY}},t.getDragPreviewOffset=function(e,t,n,r,s){var c,u,l="IMG"===(c=t).nodeName&&(i.isFirefox()||!document.documentElement.contains(c)),d=a(l?e:t),p={x:n.x-d.x,y:n.y-d.y},f=e.offsetWidth,h=e.offsetHeight,m=r.anchorX,_=r.anchorY,v=function(e,t,n,r){var o=e?t.width:n,a=e?t.height:r;return i.isSafari()&&e&&(a/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:a}}(l,t,f,h),g=v.dragPreviewWidth,y=v.dragPreviewHeight,b=s.offsetX,w=s.offsetY,k=0===w||w;return{x:0===b||b?b:new o.default([0,.5,1],[p.x,p.x/f*g,p.x+g-f]).interpolate(m),y:k?w:(u=new o.default([0,.5,1],[p.y,p.y/h*y,p.y+y-h]).interpolate(_),i.isSafari()&&l&&(u+=(window.devicePixelRatio-1)*y),u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=e.length,r=[],i=0;i<n;i++)r.push(i);r.sort((function(t,n){return e[t]<e[n]?-1:1}));var o,a,s=[],c=[],u=[];for(i=0;i<n-1;i++)o=e[i+1]-e[i],a=t[i+1]-t[i],c.push(o),s.push(a),u.push(a/o);var l=[u[0]];for(i=0;i<c.length-1;i++){var d=u[i],p=u[i+1];if(d*p<=0)l.push(0);else{o=c[i];var f=c[i+1],h=o+f;l.push(3*h/((h+f)/d+(h+o)/p))}}l.push(u[u.length-1]);var m,_=[],v=[];for(i=0;i<l.length-1;i++){m=u[i];var g=l[i],y=1/c[i];h=g+l[i+1]-m-m;_.push((m-g-h)*y),v.push(h*y*y)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=_,this.c3s=v}return e.prototype.interpolate=function(e){var t=this,n=t.xs,r=t.ys,i=t.c1s,o=t.c2s,a=t.c3s,s=n.length-1;if(e===n[s])return r[s];for(var c,u=0,l=a.length-1;u<=l;){var d=n[c=Math.floor(.5*(u+l))];if(d<e)u=c+1;else{if(!(d>e))return r[c];l=c-1}}var p=e-n[s=Math.max(0,l)],f=p*p;return r[s]+i[s]*p+o[s]*f+a[s]*p*f},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(250));function o(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),null);return null!=r?r:n}var a,s=((a={})[i.FILE]={exposeProperty:"files",matchesTypes:["Files"],getData:function(e){return Array.prototype.slice.call(e.files)}},a[i.URL]={exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(e,t){return o(e,t,"").split("\n")}},a[i.TEXT]={exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(e,t){return o(e,t,"")}},a);t.createNativeDragSource=function(e){var t=s[e],n=t.exposeProperty,r=t.matchesTypes,i=t.getData;return function(){function e(){var e;this.item=(e={},Object.defineProperty(e,n,{get:function(){return console.warn("Browser doesn't allow reading \""+n+'" until the drop event.'),null},enumerable:!0,configurable:!0}),e)}return e.prototype.mutateItemByReadingDataTransfer=function(e){delete this.item[n],this.item[n]=i(e,r)},e.prototype.canDrag=function(){return!0},e.prototype.beginDrag=function(){return this.item},e.prototype.isDragging=function(e,t){return t===e.getSourceId()},e.prototype.endDrag=function(){},e}()},t.matchNativeItemType=function(e){var t=Array.prototype.slice.call(e.types||[]);return Object.keys(s).filter((function(e){return s[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}},function(e,t,n){"use strict";function r(e){return(r="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})(e)}function i(e,t,n){var i=n.value;if("function"!=typeof i)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(r(i)));var o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof i)return i;var n=i.bind(this);return o=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return n},set:function(e){i=e,delete this[t]}}),o=!1,n},set:function(e){i=e}}}function o(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var n=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof n.value&&Object.defineProperty(e.prototype,t,i(e,t,n))}})),e}function a(){return 1===arguments.length?o.apply(void 0,arguments):i.apply(void 0,arguments)}n.r(t),n.d(t,"boundMethod",(function(){return i})),n.d(t,"boundClass",(function(){return o})),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return r||((r=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r}},function(e,t,n){var r=n(248);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=u(i),a=u(n(4)),s=u(n(438)),c=u(n(704));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var e,n,r;l(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.markIt=function(e,t){var n=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:e[r.props.labelField].replace(RegExp(n,"gi"),(function(e){return"<mark>"+(0,c.default)(e)+"</mark>"}))}},r.shouldRenderSuggestions=function(e){var t=r.props,n=t.minQueryLength,i=t.isFocused;return e.length>=n&&i},r.renderSuggestion=function(e,t){var n=r.props.renderSuggestion;return"function"==typeof n?n(e,t):o.default.createElement("span",{dangerouslySetInnerHTML:r.markIt(e,t)})},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,s.default)(t.suggestions,e.suggestions)||n(e.query)||n(e.query)!==n(t.query)}},{key:"componentDidUpdate",value:function(e){var t,n,r,i,o,a=this.props,s=a.selectedIndex,c=a.classNames;if(this.suggestionsContainer&&e.selectedIndex!==s){var u=this.suggestionsContainer.querySelector(c.activeSuggestion);u&&(t=u,n=this.suggestionsContainer,r=n.offsetHeight,i=t.offsetHeight,(o=t.offsetTop-n.scrollTop)+i>=r?n.scrollTop+=o-r+i:o<0&&(n.scrollTop+=o))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions.map(function(e,n){return o.default.createElement("li",{key:n,onMouseDown:t.handleClick.bind(null,n),onTouchStart:t.handleClick.bind(null,n),onMouseOver:t.handleHover.bind(null,n),className:n===t.selectedIndex?t.classNames.activeSuggestion:""},this.renderSuggestion(e,t.query))}.bind(this)),r=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return 0!==n.length&&r(t.query)?o.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},o.default.createElement("ul",null," ",n," ")):null}}]),t}(i.Component);p.propTypes={query:a.default.string.isRequired,selectedIndex:a.default.number.isRequired,suggestions:a.default.array.isRequired,handleClick:a.default.func.isRequired,handleHover:a.default.func.isRequired,minQueryLength:a.default.number,shouldRenderSuggestions:a.default.func,isFocused:a.default.bool.isRequired,classNames:a.default.object,labelField:a.default.string.isRequired,renderSuggestion:a.default.func},p.defaultProps={minQueryLength:2},t.default=p},function(e,t,n){var r=n(705),i=n(244),o=/[&<>"']/g,a=RegExp(o.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(o,r):e}},function(e,t,n){var r=n(706)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=f(i),a=n(427),s=f(n(4)),c=f(n(708)),u=f(n(68)),l=n(718),d=n(254),p=f(n(720));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var _="tag",v=function(e){function t(){return h(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.tag[e.labelField],n=e.connectDragSource,r=e.isDragging,i=e.connectDropTarget,a=e.readOnly,s=e.tag,c=e.classNames,l=s.className,f=void 0===l?"":l;return n(i(o.default.createElement("span",{className:(0,u.default)("tag-wrapper",c.tag,f),style:{opacity:r?0:1,cursor:(0,d.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onKeyDown:e.onTagClicked,onTouchStart:e.onTagClicked},t,o.default.createElement(p.default,{tag:e.tag,className:c.remove,removeComponent:e.removeComponent,onClick:e.onDelete,readOnly:a}))))}}]),t}(i.Component);v.propTypes={labelField:s.default.string,onDelete:s.default.func.isRequired,tag:s.default.shape({id:s.default.string.isRequired,className:s.default.string,key:s.default.string}),moveTag:s.default.func,removeComponent:s.default.func,onTagClicked:s.default.func,classNames:s.default.object,readOnly:s.default.bool,connectDragSource:s.default.func.isRequired,isDragging:s.default.bool.isRequired,connectDropTarget:s.default.func.isRequired},v.defaultProps={labelField:"text",readOnly:!1},t.default=(0,c.default)((0,a.DragSource)(_,l.tagSource,l.dragSource),(0,a.DropTarget)(_,l.tagTarget,l.dropCollect))(v)},function(e,t,n){var r=n(709)();e.exports=r},function(e,t,n){var r=n(251),i=n(710),o=n(440),a=n(441),s=n(65),c=n(714);e.exports=function(e){return i((function(t){var n=t.length,i=n,u=r.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new TypeError("Expected a function");if(u&&!d&&"wrapper"==a(l))var d=new r([],!0)}for(i=d?i:n;++i<n;){l=t[i];var p=a(l),f="wrapper"==p?o(l):void 0;d=f&&c(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?d[a(f[0])].apply(d,f[3]):1==l.length&&c(l)?d[p]():d.thru(l)}return function(){var e=arguments,r=e[0];if(d&&1==e.length&&s(r))return d.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}},function(e,t,n){var r=n(711),i=n(424),o=n(425);e.exports=function(e){return o(i(e,void 0,r),e+"")}},function(e,t,n){var r=n(170);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(416),i=r&&new r;e.exports=i},function(e,t){e.exports={}},function(e,t,n){var r=n(253),i=n(440),o=n(441),a=n(715);e.exports=function(e){var t=o(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=i(n);return!!s&&e===s[0]}},function(e,t,n){var r=n(253),i=n(251),o=n(252),a=n(65),s=n(82),c=n(716),u=Object.prototype.hasOwnProperty;function l(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof i)return e;if(u.call(e,"__wrapped__"))return c(e)}return new i(e)}l.prototype=o.prototype,l.prototype.constructor=l,e.exports=l},function(e,t,n){var r=n(253),i=n(251),o=n(717);e.exports=function(e){if(e instanceof r)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropCollect=t.dragSource=t.tagTarget=t.tagSource=void 0;var r=n(13),i=n(254),o={beginDrag:function(e){return{id:e.tag.index,index:e.index}},canDrag:function(e){return(0,i.canDrag)(e)}},a={hover:function(e,t,n){var i=t.getItem().index,o=e.index;if(i!==o){var a=(0,r.findDOMNode)(n).getBoundingClientRect(),s=(a.right-a.left)/2,c=t.getClientOffset().x-a.left;i<o&&c<s||i>o&&c>s||(e.moveTag(i,o),t.getItem().index=o)}},canDrop:function(e){return(0,i.canDrop)(e)}};t.tagSource=o,t.tagTarget=a,t.dragSource=function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}},t.dropCollect=function(e){return{connectDropTarget:e.dropTarget()}}},function(e,t,n){var r=n(244),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);e.exports=function(e){return(e=r(e))&&o.test(e)?e.replace(i,"\\$&"):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(1)),i=o(n(4));function o(e){return e&&e.__esModule?e:{default:e}}var a=String.fromCharCode(215),s=function(e){var t=e.readOnly,n=e.removeComponent,i=e.onClick,o=e.className;if(t)return r.default.createElement("span",null);if(n){var s=n;return r.default.createElement(s,e)}return r.default.createElement("a",{onClick:i,className:o,onKeyDown:i},a)};s.propTypes={className:i.default.string,onClick:i.default.func.isRequired,readOnly:i.default.bool,removeComponent:i.default.func},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.KEYS={ENTER:13,TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27},t.DEFAULT_PLACEHOLDER="Add new tag",t.DEFAULT_LABEL_FIELD="text",t.DEFAULT_CLASSNAMES={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion"},t.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"}},function(e,t,n){"use strict";!function(){function e(){scrivito.withSavingOverlay(scrivito.reload())}scrivito.editingMode={disable:function(t){var n=scrivito.editingMode.reasonForBeingDisabled;if(scrivito.storage.set("edit_mode_disabled.reason",t),scrivito.editingContext.isEditingMode())return scrivito.withSavingOverlay(scrivito.changeEditingContext({displayMode:"view"}));n!==t&&e()},enable:function(t){scrivito.editingMode.isEnabled()||(scrivito.storage.remove("edit_mode_disabled.reason"),t?t():e())},isEnabled:function(){return!scrivito.editingMode.reasonForBeingDisabled},get reasonForBeingDisabled(){return scrivito.storage.get("edit_mode_disabled.reason")}}}()},function(e,t,n){"use strict";scrivito.sidebarFsm=function(e){var t=e.openSidebar,n=e.closeSidebar,r=new scrivito.Fsm("sidebar",{events:["open","close","mouseOver","willOpenTimeout","openTransitionFinished","mouseLeave","willCloseTimeout","closeTransitionFinished","hide","unhideAndClose","unhideAndDisable"],initialState:"isClosed",states:{isClosed:{open:{transitionTo:"isOpening",execute:["openSidebar"]},mouseOver:{transitionTo:"willOpen",execute:["setWillOpenTimeout"]}},willOpen:{open:{transitionTo:"isOpening",execute:["clearWillOpenTimeout","openSidebar"]},willOpenTimeout:{transitionTo:"isOpening",execute:["openSidebar"]},mouseLeave:{transitionTo:"isClosed",execute:["clearWillOpenTimeout"]}},isOpening:{openTransitionFinished:{transitionTo:"isOpen"}},isOpen:{mouseLeave:{transitionTo:"willClose",execute:["setWillCloseTimeout"]},close:{transitionTo:"isDisabled",execute:["closeSidebar"]}},willClose:{willCloseTimeout:{transitionTo:"isClosing",execute:["closeSidebar"]},mouseOver:{transitionTo:"isOpen",execute:["clearWillCloseTimeout"]}},isClosing:{closeTransitionFinished:{transitionTo:"isClosed"}},isDisabled:{open:{transitionTo:"isOpening",execute:["openSidebar"]}},isHidden:{unhideAndClose:{transitionTo:"isClosed"},unhideAndDisable:{transitionTo:"isDisabled"}}},superStateEvents:{hide:{transitionTo:"isHidden",execute:["closeSidebar"]}},actions:{openSidebar:t,closeSidebar:n,setWillOpenTimeout:function(){r._willOpenTimeout=setTimeout((function(){return r.triggerEvent("willOpenTimeout")}),500)},setWillCloseTimeout:function(){r._willCloseTimeout=setTimeout((function(){return r.triggerEvent("willCloseTimeout")}),500)},clearWillOpenTimeout:function(){r._willOpenTimeout&&clearTimeout(r._willOpenTimeout)},clearWillCloseTimeout:function(){r._willCloseTimeout&&clearTimeout(r._willCloseTimeout)}}});return r},scrivito.sidebarFsm.OPEN_TIMEOUT=500,scrivito.sidebarFsm.CLOSE_TIMEOUT=500},function(e,t,n){"use strict";!function(){function e(e){return"scrivito.v1."+e}scrivito.storage={set:function(t,n){localStorage.setItem(e(t),JSON.stringify(n))},get:function(t){return JSON.parse(localStorage.getItem(e(t)))},hasKey:function(e){return!!this.get(e)},remove:function(t){localStorage.removeItem(e(t))}}}()},function(e,t,n){"use strict";scrivito.deleteWorkspace=function(e){(function(e){return scrivito.confirmation_dialog({title:scrivito.t("workflows.delete_workspace.dialog.title",e.titleForEditor),description:scrivito.t("workflows.delete_workspace.dialog.description"),icon:"&#xf018;",color:"red",confirm_button_text:scrivito.t("workflows.delete_workspace.dialog.confirm"),confirm_button_color:"red"})})(e).then((function(){return function(e){scrivito.withSavingOverlay(e.destroy().then((function(){if(e.id===scrivito.editingContext.selectedWorkspaceId)return scrivito.changeEditingContext({workspaceId:"published"})})))}(e)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(727),a=v(o),s=v(n(442)),c=n(1),u=v(n(4)),l=v(n(734)),d=v(n(735)),p=v(n(736)),f=v(n(737)),h=v(n(738)),m=n(739),_=n(740);function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var b=function(e){function t(e){var n;g(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=y(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(i)));return a.getScrollLeft=a.getScrollLeft.bind(a),a.getScrollTop=a.getScrollTop.bind(a),a.getScrollWidth=a.getScrollWidth.bind(a),a.getScrollHeight=a.getScrollHeight.bind(a),a.getClientWidth=a.getClientWidth.bind(a),a.getClientHeight=a.getClientHeight.bind(a),a.getValues=a.getValues.bind(a),a.getThumbHorizontalWidth=a.getThumbHorizontalWidth.bind(a),a.getThumbVerticalHeight=a.getThumbVerticalHeight.bind(a),a.getScrollLeftForOffset=a.getScrollLeftForOffset.bind(a),a.getScrollTopForOffset=a.getScrollTopForOffset.bind(a),a.scrollLeft=a.scrollLeft.bind(a),a.scrollTop=a.scrollTop.bind(a),a.scrollToLeft=a.scrollToLeft.bind(a),a.scrollToTop=a.scrollToTop.bind(a),a.scrollToRight=a.scrollToRight.bind(a),a.scrollToBottom=a.scrollToBottom.bind(a),a.handleTrackMouseEnter=a.handleTrackMouseEnter.bind(a),a.handleTrackMouseLeave=a.handleTrackMouseLeave.bind(a),a.handleHorizontalTrackMouseDown=a.handleHorizontalTrackMouseDown.bind(a),a.handleVerticalTrackMouseDown=a.handleVerticalTrackMouseDown.bind(a),a.handleHorizontalThumbMouseDown=a.handleHorizontalThumbMouseDown.bind(a),a.handleVerticalThumbMouseDown=a.handleVerticalThumbMouseDown.bind(a),a.handleWindowResize=a.handleWindowResize.bind(a),a.handleScroll=a.handleScroll.bind(a),a.handleDrag=a.handleDrag.bind(a),a.handleDragEnd=a.handleDragEnd.bind(a),a.state={didMountUniversal:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,o.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,i=void 0===r?0:r,o=e.scrollWidth,a=void 0===o?0:o,s=e.scrollHeight,c=void 0===s?0:s,u=e.clientWidth,l=void 0===u?0:u,d=e.clientHeight,p=void 0===d?0:d;return{left:n/(a-l)||0,top:i/(c-p)||0,scrollLeft:n,scrollTop:i,scrollWidth:a,scrollHeight:c,clientWidth:l,clientHeight:p}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollWidth,o=r.clientWidth,a=(0,f.default)(this.trackHorizontal),s=Math.ceil(o/i*a);return a===s?0:t||Math.max(s,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollHeight,o=r.clientHeight,a=(0,h.default)(this.trackVertical),s=Math.ceil(o/i*a);return a===s?0:t||Math.max(s,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,f.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,h.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,i=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,i&&i(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,i=this.getThumbHorizontalWidth(),o=Math.abs(r-n)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(o)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,i=this.getThumbVerticalHeight(),o=Math.abs(r-n)-i/2;this.view.scrollTop=this.getScrollTopForOffset(o)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,i=t.getBoundingClientRect().left;this.prevPageX=r-(n-i)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,i=t.getBoundingClientRect().top;this.prevPageY=r-(n-i)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,m.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=p.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,m.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY,i=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(i)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,s.default)(e.trackHorizontal,{opacity:0}),(0,s.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,i=this.getValues();if((0,d.default)()){var o=i.scrollLeft,a=i.clientWidth,c=i.scrollWidth,u=(0,f.default)(this.trackHorizontal),l=this.getThumbHorizontalWidth(),p={width:l,transform:"translateX("+o/(c-a)*(u-l)+"px)"},m=i.scrollTop,_=i.clientHeight,v=i.scrollHeight,g=(0,h.default)(this.trackVertical),y=this.getThumbVerticalHeight(),b={height:y,transform:"translateY("+m/(v-_)*(g-y)+"px)"};if(r){var w={visibility:c>a?"visible":"hidden"},k={visibility:v>_?"visible":"hidden"};(0,s.default)(this.trackHorizontal,w),(0,s.default)(this.trackVertical,k)}(0,s.default)(this.thumbHorizontal,p),(0,s.default)(this.thumbVertical,b)}n&&n(i),"function"==typeof e&&e(i)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),n=this.props,i=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),o=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,u=n.renderThumbVertical,p=n.tagName,f=(n.hideTracksWhenNotNeeded,n.autoHide),h=(n.autoHideTimeout,n.autoHideDuration),_=(n.thumbSize,n.thumbMinSize,n.universal),v=n.autoHeight,g=n.autoHeightMin,y=n.autoHeightMax,b=n.style,w=n.children,k=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),O=this.state.didMountUniversal,C=r({},m.containerStyleDefault,v&&r({},m.containerStyleAutoHeight,{minHeight:g,maxHeight:y}),b),M=r({},m.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},v&&r({},m.viewStyleAutoHeight,{minHeight:(0,l.default)(g)?"calc("+g+" + "+t+"px)":g+t,maxHeight:(0,l.default)(y)?"calc("+y+" + "+t+"px)":y+t}),v&&_&&!O&&{minHeight:g,maxHeight:y},_&&!O&&m.viewStyleUniversalInitial),D={transition:"opacity "+h+"ms",opacity:0},x=r({},m.trackHorizontalStyleDefault,f&&D,(!t||_&&!O)&&{display:"none"}),E=r({},m.trackVerticalStyleDefault,f&&D,(!t||_&&!O)&&{display:"none"});return(0,c.createElement)(p,r({},k,{style:C,ref:function(t){e.container=t}}),[(0,c.cloneElement)(i({style:M}),{key:"view",ref:function(t){e.view=t}},w),(0,c.cloneElement)(o({style:x}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,c.cloneElement)(s({style:m.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,c.cloneElement)(a({style:E}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,c.cloneElement)(u({style:m.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(c.Component);t.default=b,b.propTypes={onScroll:u.default.func,onScrollFrame:u.default.func,onScrollStart:u.default.func,onScrollStop:u.default.func,onUpdate:u.default.func,renderView:u.default.func,renderTrackHorizontal:u.default.func,renderTrackVertical:u.default.func,renderThumbHorizontal:u.default.func,renderThumbVertical:u.default.func,tagName:u.default.string,thumbSize:u.default.number,thumbMinSize:u.default.number,hideTracksWhenNotNeeded:u.default.bool,autoHide:u.default.bool,autoHideTimeout:u.default.number,autoHideDuration:u.default.number,autoHeight:u.default.bool,autoHeightMin:u.default.oneOfType([u.default.number,u.default.string]),autoHeightMax:u.default.oneOfType([u.default.number,u.default.string]),universal:u.default.bool,style:u.default.object,children:u.default.node},b.defaultProps={renderView:_.renderViewDefault,renderTrackHorizontal:_.renderTrackHorizontalDefault,renderTrackVertical:_.renderTrackVerticalDefault,renderThumbHorizontal:_.renderThumbHorizontalDefault,renderThumbVertical:_.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},function(e,t,n){(function(t){for(var r=n(728),i="undefined"==typeof window?t:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],c=i["cancel"+a]||i["cancelRequest"+a],u=0;!s&&u<o.length;u++)s=i[o[u]+"Request"+a],c=i[o[u]+"Cancel"+a]||i[o[u]+"CancelRequest"+a];if(!s||!c){var l=0,d=0,p=[];s=function(e){if(0===p.length){var t=r(),n=Math.max(0,1e3/60-(t-l));l=n+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return p.push({handle:++d,callback:e,cancelled:!1}),d},c=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){c.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=c}}).call(this,n(41))},function(e,t,n){(function(t){(function(){var n,r,i,o,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,n(97))},function(e,t){var n=null,r=["Webkit","Moz","O","ms"];e.exports=function(e){n||(n=document.createElement("div"));var t=n.style;if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),o=r.length;o>=0;o--){var a=r[o]+i;if(a in t)return a}return!1}},function(e,t,n){var r=n(731);e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},function(e,t,n){var r=n(732);e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}},function(e,t){e.exports=function(e){return n.test(e)?e.toLowerCase():r.test(e)?(function(e){return e.replace(o,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():i.test(e)?function(e){return e.replace(a,(function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var n=/\s/,r=/(_|-|\.|:)/,i=/([a-z][A-Z]|[A-Z][a-z])/;var o=/[\W_]+(.|$)/g;var a=/(.)([A-Z]+)/g},function(e,t){var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,t){return"number"!=typeof t||n[e]?t:t+"px"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!1!==a)return a;if("undefined"!=typeof document){var e=document.createElement("div");(0,o.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),a=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else a=0;return a||0};var r,i=n(442),o=(r=i)&&r.__esModule?r:{default:r};var a=!1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,i=n.paddingRight;return t-parseFloat(r)-parseFloat(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,i=n.paddingBottom;return t-parseFloat(r)-parseFloat(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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};t.renderViewDefault=function(e){return a.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:i},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:i},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:i},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:i},n))};var i,o=n(1),a=(i=o)&&i.__esModule?i:{default:i};function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"enable",(function(){return Me})),n.d(r,"perform",(function(){return De})),n.d(r,"disable",(function(){return Se})),n.d(r,"setSessionData",(function(){return je})),n.d(r,"sessionData",(function(){return Te}));var i={};n.r(i),n.d(i,"getContentStateId",(function(){return vo})),n.d(i,"setContentStateId",(function(){return go}));var o={};n.r(o),n.d(o,"uploadBinary",(function(){return Cd})),n.d(o,"copyBinary",(function(){return Md})),n.d(o,"getFormData",(function(){return Dd}));var a={};n.r(a),n.d(a,"startLinkResolutionFor",(function(){return Wd})),n.d(a,"finishLinkResolutionFor",(function(){return Bd})),n.d(a,"clearCache",(function(){return zd}));var s=n(4),c=n.n(s),u=n(1),l=n.n(u),d=n(13),p=n.n(d),f=(n(231),n(53)),h=n.n(f),m=(n(460),n(232),n(389),n(461),n(255)),_=n.n(m);window.PropTypes=c.a,window.React=l.a,window.React.PropTypes=c.a,window.ReactDOM=p.a,window.$=h.a,window.jQuery=h.a,window.Handlebars=_.a;n(477),n(478),n(504);var v=n(2),g=n.n(v),y=n(22),b=n.n(y),w=n(148),k=n.n(w),O=n(23);function C(){return u.createElement("span",{className:"scrivito_loader"})}function M(){return u.createElement("span",{className:"scrivito_loader_error",title:scrivito.t("loader_error.title")})}var D,x=(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)}),E=function(){return(E=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 S(e){var t=Object(O.m)(e),n=function(n){function r(e){var t=n.call(this,e)||this;return t.state={hasError:!1},t}return x(r,n),r.prototype.componentDidCatch=function(){this.setState({hasError:!0})},r.prototype.render=function(){return this.state.hasError?e.shouldRenderLoaderError?l.a.createElement(M,null):null:l.a.createElement(t,E({},this.props))},r}(l.a.Component),r=Object(O.n)(e);return n.displayName="ErrorBoundary("+r+")",k()(n,e),n}scrivito.legacyCreateConnectedComponent=function(e){var t=b()(Object(v.omit)(e,"shouldRenderLoaderError"));return t.shouldRenderLoaderError=e.shouldRenderLoaderError,S(t)};var j=n(87),T=n(8),L=function(){function e(e){this.domElement=e}return e.prototype.dom_element=function(){return this.domElement},e.prototype.equals=function(e){return e.dom_element().get(0)===this.dom_element().get(0)},e.prototype.menu=function(){var e=this.domElement.data("scrivito-menu");return e||(e=[],this.setMenu(e)),e},e.prototype.setMenu=function(e){this.domElement.data("scrivito-menu",e)},e}();function P(e){e&&0!==e.length||$.error("Expected a jquery instance with exactly one element, instead got "+e);var t=e[0],n=t.scrivito_cms_element;if(!n){var r=new L(e);v.find(A,(function(e){var t=e.createInstance(r);if(t)return n=t,!0})),n||$.error("This dom element is not a scrivito tag."),t.scrivito_cms_element=n}return n}var A=[];function N(e){A.push(e)}function I(e,t){return v.map(t.find(e).addBack(e),(function(e){return P($(e))}))}function Y(e,t){var n=e.attr(t);if(n)return JSON.parse(n)}function R(e,t,n){e.attr(t,JSON.stringify(n))}var F=n(3),H=n(5);function W(e,t){return function(e){var t=F.BasicObj.all();return Object(H.load)((function(){return t.facet(e,{limit:100})})).then((function(e){return g.a.invoke(e,"name")}))}(e).then((function(e){return g.a.filter(e,(function(e){return 0===e.toLowerCase().indexOf(t.toLowerCase())}))}))}var B,z=n(0),U=null;function q(e){if(null===U)throw new z.g("Dialog stack is not yet initialized");return U(e)}var V=[];function G(){if(B)throw new z.g("Tried to enable dialog hotkeys while they are already enabled");B=new z.e,scrivito.hotkeys.add(B.promise,{enter:function(){J("enter")},escape:function(){J("escape")}})}function K(){B&&(B.resolve(void 0),B=void 0)}function J(e){V.forEach((function(t){return t(e)}))}var 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)}}(),Z=function(e){function t(t){var n=e.call(this,t)||this;return n.hotkeysUnsubscriptionCallbacks={},n.dialogDone=n.dialogDone.bind(n),n.cancelDialog=n.cancelDialog.bind(n),n.subscribeHotkey=n.subscribeHotkey.bind(n),n}return Q(t,e),t.prototype.componentDidMount=function(){this.hotkeysUnsubscriptionCallbacks.hasOwnProperty("escape")||this.subscribeHotkey("escape",this.cancelDialog)},t.prototype.componentWillUnmount=function(){for(var e=0,t=Object.keys(this.hotkeysUnsubscriptionCallbacks);e<t.length;e++){var n=t[e],r=this.hotkeysUnsubscriptionCallbacks[n];r&&r()}},t.prototype.render=function(){return u.createElement(this.props.dialogComponent,{dialogDone:this.dialogDone,cancelDialog:this.cancelDialog,subscribeHotkey:this.subscribeHotkey})},t.prototype.dialogDone=function(e){this.props.onDialogDone({dialogCancelled:!1,value:e})},t.prototype.cancelDialog=function(){this.props.onDialogDone({dialogCancelled:!0,value:void 0})},t.prototype.subscribeHotkey=function(e,t){var n=this;this.hotkeysUnsubscriptionCallbacks[e]=function(e){return V.push(e),function(){V.splice(V.indexOf(e),1)}}((function(r){n.props.isTopmost&&r===e&&t()}))},t.displayName="DialogStack.DialogWrapper",t}(u.Component),X=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)}}(),ee=function(e){function t(t){var n=e.call(this,t)||this;return n.state={stack:[]},n.onOpenDialog=n.onOpenDialog.bind(n),n}return X(t,e),t.prototype.componentDidMount=function(){var e;e=this.onOpenDialog,U=e,this.state.stack.length>0&&G()},t.prototype.componentDidUpdate=function(e,t){var n=this.state.stack.length;n>0&&0===t.stack.length&&G(),0===n&&K()},t.prototype.componentWillUnmount=function(){K()},t.prototype.render=function(){var e,t=this.state.stack;return 0!==t.length&&(e=u.createElement("div",{className:"scrivito_overlay scrivito_show"})),u.createElement(u.Fragment,null,e,t.map((function(e,n){return u.createElement(e,{key:n,isTopmost:n===t.length-1})})))},t.prototype.onOpenDialog=function(e){var t=new z.e;return this.setState({stack:this.state.stack.concat([this.wrapInStackItem(e,t)])}),t.promise},t.prototype.wrapInStackItem=function(e,t){var n=this;return function(r){var i=r.isTopmost;return u.createElement(Z,{isTopmost:i,dialogComponent:e,onDialogDone:function(e){n.onDialogDone(i,t,e)}})}},t.prototype.onDialogDone=function(e,t,n){if(!e)throw new z.g("Tried to close a dialog out of order");t.resolve(n),this.popFromStack()},t.prototype.popFromStack=function(){var e=this.state.stack;e.pop(),this.setState({stack:e})},t.displayName="DialogStack",t}(u.Component);function te(){return scrivito.editingContext.isDiffMode()}function ne(e){return e.window().isForcedEditingMode()||scrivito.editingContext.isEditingMode()}var re=n(16),ie=!1,oe={};function ae(e){e&&function(e){if(scrivito.editingContext.isEditingMode())return scrivito.cms_field_element.preload($(e));return z.j.resolve()}(e).then((function(){ce("content",e);var t=Ar($(e)).notifyNewContent(e);t.length?z.j.all(t).then((function(){ce("editorSelection",e)})):ce("editorSelection",e)}))}function se(e,t){void 0===oe[e]&&(oe[e]=[]),oe[e].push(t)}function ce(e,t){var n=oe[e];n&&n.forEach((function(e){return e(t)}))}var ue=function(){function e(e){this._cmsDocument=e}return e.init=function(){var e=this;se("editorSelection",(function(t){if(scrivito.in_editable_view()){var n=$(t),r=Ar(n),i=n.find("[data-scrivito-field-type]").addBack("[data-scrivito-field-type]"),o=new e(r);g.a.each(i,(function(e){return o.activate(e)}))}}))},e.prototype.define=function(e,t){var n=this._cmsDocument.editors||{};n[e]=t,this._cmsDocument.editors=n},e.prototype.activate=function(e){var t,n,r=this,i=$(e).data("scrivito-private-editor");if(!1!==i){var o=this._cmsDocument.editors[i];if(i&&le(o,e))t=o;else{if(this._cmsDocument.selectEditor&&(this._cmsDocument.selectEditor(e,{use:function(n){o=r._cmsDocument.editors[n],!t&&le(o,e)&&(t=o)},disable:function(){t||(n=!0)}}),n))return;var a=this._cmsDocument.editors.default;!t&&le(a,e)&&(t=a)}t&&scrivito.run_new_event((function(){t.activate(e)}))}},e.prototype.reset=function(){delete this._cmsDocument.editors,delete this._cmsDocument.selected_editor},e}();function le(e,t){if(!e)return!1;if(!e.can_edit)return!0;try{return e.can_edit(t)}catch(e){return Object(z.F)(e),!1}}var de=n(9),pe=n(7),fe=function(){function e(e){this._id=e}return e.get=function(t){if(!_e(t))throw new Be('User with id "'+t+'" not found');return new e(t)},e.suggest=function(t){return Object(H.load)((function(){return g.a.take(function(e){var t=e.toLowerCase();return g.a.filter(me(),(function(e){if(e.active)return e.description.toLowerCase().indexOf(t)>=0}))}(t),20).map((function(t){return new e(t.id)}))}))},e.store=function(e,t){t.id=e;var n=Object(H.loadableWithDefault)([],me).concat([t]);he().set({results:n})},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return _e(this._id).description},enumerable:!0,configurable:!0}),e}();function he(){return new H.LoadableData({state:pe.p.subState("builtInUserData"),loader:function(){return de.d.get("users")},throwNotLoaded:!0})}function me(){return he().get().results}function _e(e){return g.a.findWhere(me(),{id:e})}var ve=new z.b((function(e){return scrivito.ajax("PUT","users/mget",{data:{ids:e},skip_write_monitor:!0})}));var ge,ye=function(){function e(e){this.id=e,this.loadableData=be(e)}return e.get=function(t){return be(t).get(),new e(t)},e.suggest=function(t){return scrivito.ajaxWithErrorDialog("GET","users/suggest?input="+t).then((function(t){return t.map((function(t){return e.store(t.id,t),e.get(t.id)}))}))},e.store=function(e,t){be(e).set(t)},Object.defineProperty(e.prototype,"description",{get:function(){return this.loadableData.get().description},enumerable:!0,configurable:!0}),e}();function be(e){return new H.LoadableData({state:pe.p.subState("custom_user_data").subState(e),loader:function(){return function(e){return ve.retrieve(e).then((function(t){if(t)return t;throw new Be('User with id "'+e+'" not found')}))}(e)},throwNotLoaded:!0})}var we,ke,Oe=function(){},Ce=new z.e;function Me(e){ke=Object(z.L)(),we=e,Ce.resolve(void 0),Ae()}function De(e){return Ae().then((function(){return e(Ee())})).catch((function(t){if(t instanceof de.c)return Pe().then((function(){return e(Ee())}));throw t}))}function xe(){return new H.LoadableData({state:pe.p.subState("sessionKeeper"),loader:Le})}function Ee(){return"Session "+Te().token}function Se(){Ce=new z.e,we=void 0,ge=void 0}function je(e){xe().set(e)}function Te(){return xe().get()}function Le(){return ge||(Oe(),ge=Ce.promise.then((function(){return we(ke)})).then((function(e){var t=e.id;return ke=t,{id:t,maxage:e.maxage,permissions:e.permissions,token:e.token,user_id:e.user_id}})).catch((function(e){if(e instanceof de.b)throw e;throw new de.c("Failed to renew session.")})),Object(z.J)(ge,(function(){ge=void 0})).then((function(e){var t,n;t=e.maxage,n=setTimeout((function(){Pe().catch((function(){}))}),1e3*(t-10)),Oe=function(){return clearTimeout(n)}}))),ge}function Pe(){return Le().then((function(e){xe().set(e)}))}function Ae(){return Object(H.load)((function(){return Te()}))}function Ne(){var e=Te();if(!e)throw new z.g("Access to user id before session loaded!");return e.user_id}var Ie=!1;function Ye(){return Ie||Object(re.b)()}var Re=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)}}(),Fe=function(){function e(e){this._userData=e}return e.get=function(t){if(!t)throw new z.a("Missing user id");return new e(We().get(t))},Object.defineProperty(e,"current",{get:function(){var t=Ne();return t?e.get(t):new Fe({id:null,description:null})},enumerable:!0,configurable:!0}),e.suggest=function(t){return We().suggest(t).then((function(t){return t.map((function(t){return new e(t)}))}))},e.store=function(e,t){We().store(e,t)},Object.defineProperty(e.prototype,"id",{get:function(){return this._userData.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this._userData.description},enumerable:!0,configurable:!0}),e}(),He=Fe;function We(){return Ye()?ye:fe}var Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Re(t,e),t}(z.h),ze=n(85),Ue=n(15),qe={"content_browser.footer.close":"Close","content_browser.footer.select":"Select","content_browser.footer.select_disabled_reason.single":"Please select an item whose type is one of: $1","content_browser.footer.select_disabled_reason.multi":"Please only select items whose respective type is one of: $1","content_browser.footer.select_disabled_reason.none_available":"No element is selectable.","content_browser.footer.delete":"Delete","content_browser.header.selected_items":"Selected: $1 items","content_browser.header.open_selected":"Open in a new tab","content_browser.table_view.title":"Title","content_browser.table_view.type":"Type","content_browser.table_view.file_type":"File type","content_browser.table_view.file_size":"File size","content_browser.table_view.last_change":"Last change","content_browser.sort.relevance.title":"Sort by relevance","content_browser.sort.relevance.desc_criteria_title":"Relevance","content_browser.sort.file_name.title":"Sort by filename","content_browser.sort.file_name.asc_criteria_title":"Filename: From A to Z","content_browser.sort.file_name.desc_criteria_title":"Filename: From Z to A","content_browser.sort.date.title":"Sort by date","content_browser.sort.date.asc_criteria_title":"Last change: oldest first","content_browser.sort.date.desc_criteria_title":"Last change: latest first","content_browser.search_bar.clear_button":"Clear","content_browser.search_bar.search_button":"Search","content_browser.search_bar.search_everywhere":"Search everywhere","content_browser.search_bar.search_filtered":"Search filtered content","content_browser.search_bar.search_in":'Search "$1"',"content_browser.search_bar.multi_selection_toggle":"multi-select","content_browser.item.tooltip.is_new":"This item is new. ","content_browser.item.tooltip.is_deleted":"This item has been deleted. ","content_browser.item.tooltip.is_edited":"This item has been modified. ","content_browser.item.tooltip.is_restricted":"The visibility of this item is restricted.","content_browser.last_added.filter_name":"Last added","content_browser.last_added.failed_upload":"Upload failed. Please check your network connection.","content_browser.last_added.failed_upload_counts":"$1 Error(s)","content_browser.last_added.title_info":"Display full upload error message","content_browser.last_added.upload_error":"The selected filter options cannot be applied to the file(s) you wanted to upload","content_browser.last_added.preset_error":"#values can not be called on an invalid Preset","content_browser.filter.more_filters":"more filters","content_browser.add_item.browse_file":"Browse file to upload","content_browser.add_item.failed":"The selected filter options cannot be applied to the file(s) you wanted to upload. Please select only one of the following options, then try again:","content_browser.add_item.preset_conflict":"The selected filter options cannot be applied to the file(s) you wanted to upload. Please select only one of the following options, then try again:","content_browser.add_item.create_item":"Create item","content_browser.add_item.create_impossible":"Item creation not possible","content_browser.add_item.disabled_filters":"Creation of items matching the selected filters has been disabled.","content_browser.add_item.error_no_obj_class":"Configuration error: No '_obj_class' provided.","content_browser.add_item.prevent_creation":"The selected filter options $1 prevent item creation"};Ue.default.load("en",qe);var Ve={"content_browser.footer.close":"Schließen","content_browser.footer.select":"Auswählen","content_browser.footer.select_disabled_reason.single":"Bitte wählen Sie ein Element der folgenden Typen aus: $1","content_browser.footer.select_disabled_reason.multi":"Bitte wählen Sie nur Elemente der folgenden Typen aus: $1","content_browser.footer.select_disabled_reason.none_available":"Es ist kein Element auswählbar.","content_browser.footer.delete":"Löschen","content_browser.header.selected_items":"Ausgewählt: $1 Elemente","content_browser.header.open_selected":"In neuem Tab öffnen","content_browser.table_view.title":"Titel","content_browser.table_view.type":"Typ","content_browser.table_view.file_type":"Dateityp","content_browser.table_view.file_size":"Dateigröße","content_browser.table_view.last_change":"Letzte Änderung","content_browser.sort.relevance.title":"Nach Relevanz sortieren","content_browser.sort.relevance.desc_criteria_title":"Relevanz","content_browser.sort.file_name.title":"Nach Dateiname sortieren","content_browser.sort.file_name.asc_criteria_title":"Dateiname: Von A bis Z","content_browser.sort.file_name.desc_criteria_title":"Dateiname: Von Z bis A","content_browser.sort.date.title":"Nach Datum sortieren","content_browser.sort.date.asc_criteria_title":"Letzte Änderung: Älteste zuerst","content_browser.sort.date.desc_criteria_title":"Letzte Änderung: Neueste zuerst","content_browser.search_bar.clear_button":"Löschen","content_browser.search_bar.search_button":"Suchen","content_browser.search_bar.search_everywhere":"Alles durchsuchen","content_browser.search_bar.search_filtered":"Gefilterte Inhalte durchsuchen","content_browser.search_bar.search_in":'"$1" durchsuchen',"content_browser.search_bar.multi_selection_toggle":"Mehrfachauswahl","content_browser.item.tooltip.is_new":"Dieses Element ist neu. ","content_browser.item.tooltip.is_deleted":"Dieses Element wurde gelöscht. ","content_browser.item.tooltip.is_edited":"Dieses Element wurde geändert. ","content_browser.item.tooltip.is_restricted":"Die Sichtbarkeit dieses Element ist eingeschränkt.","content_browser.last_added.filter_name":"Zuletzt hinzugefügt","content_browser.last_added.failed_upload":"Fehler beim Hochladen. Bitte prüfen Sie Ihre Netzwerkverbindung","content_browser.last_added.failed_upload_counts":"$1 Fehler","content_browser.last_added.title_info":"Vollständige Fehlermeldung anzeigen","content_browser.last_added.upload_error":"Die ausgewählten Filteroptionen können nicht auf die Datei(en) angewendet werden, die Sie hochladen wollten.","content_browser.last_added.preset_error":"#values kann nicht auf einer ungültigen Vorbelegung aufgerufen werden.","content_browser.filter.more_filters":"Weitere Filter","content_browser.add_item.browse_file":"Datei zum Hochladen auswählen","content_browser.add_item.failed":"Die ausgewählten Filteroptionen können nicht auf die Datei(en) angewendet werden, die Sie hochladen wollten. Bitte versuchen Sie es mit nur einer der folgenden Optionen erneut:","content_browser.add_item.preset_conflict":"Die ausgewählten Filteroptionen können nicht auf die Datei(en) angewendet werden, die Sie hochladen wollten. Bitte versuchen Sie es mit nur einer der folgenden Optionen erneut","content_browser.add_item.create_item":"Element anlegen","content_browser.add_item.create_impossible":"Es kann kein Element angelegt werden","content_browser.add_item.disabled_filters":"Es ist nicht möglich, zu den Filtern passende Elemente anzulegen.","content_browser.add_item.error_no_obj_class":"Konfigurationsfehler: '_obj_class' wurde nicht angegeben.","content_browser.add_item.prevent_creation":"Elemente können aufgrund der ausgewählten Filteroptionen $1 nicht angelegt werden."};Ue.default.load("de",Ve);var $e=function(){function e(){this.callbacks={}}return e.prototype.on=function(e,t){this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t)},e.prototype.trigger=function(e,t){var n=this,r=this.callbacks[e],i=[t];r&&Object(v.each)(r,(function(e){e.apply(n,i)}))},e.prototype.onChange=function(e){this.on("change",e)},e.prototype.changed=function(){this.trigger("change",this)},e}(),Ge=function(){function e(e,t,n){this.filter=e,this.name=t;var r=n.enableCreate;void 0===r&&(r=n.enable_create),this.enable_create=r,this.title=n.title,this.title||(this.title=this.fallbackTitle())}return e.prototype.fallbackTitle=function(){return(e=this.name.replace(/_/g," ").trim()).charAt(0).toUpperCase()+e.slice(1);var e},e}(),Ke=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)}}(),Je=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return delete i.enable_create,i.field=r.field,i.operator=r.operator,i.expanded=!1!==r.expanded,i.children=[],i}return Ke(t,e),t.prototype.deselect=function(){return Object(v.each)(this.children,(function(e){e.active=!1}))},t.prototype.isExpanded=function(){return!!this.expanded},t.prototype.hasActiveChildren=function(){return Object(v.some)(this.children,(function(e){return e.isActive()}))},t}(Ge),Qe=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)}}(),Ze=function(e){function t(t,n,r){var i=e.call(this,t.filter,n,r)||this;return i.value=r.value,i.query=r.query,i.preset=r.preset,i.group=t,i.active=r.selected,i}return Qe(t,e),t.prototype.setActive=function(){return this.group.activate(this)},t.prototype.isActive=function(){return!!this.active},t}(Ge),Xe=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)}}(),et=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="radio",i.children=Object(v.map)(r.options,(function(e,t){return new Ze(i,t,e)})),i}return Xe(t,e),t.prototype.activate=function(e){Object(v.each)(this.children,(function(t){t.active=t===e})),this.filter.changed()},t.prototype.deactivateAll=function(){this.deselect(),this.filter.changed()},t}(Je),tt=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)}}(),nt=function(e){function t(n,r,i){var o=e.call(this,n,r,i)||this;o.type="tree",o.icon=i.icon,o.query=i.query,o.expanded=i.expanded,o.value=i.value,o.field=i.field,o.operator=i.operator,o.preset=i.preset,o.active=i.selected;var a=i.options||[];return o.children=Object(v.map)(a,(function(e,r){return new t(n,r,e)})),o}return tt(t,e),t.prototype.isLeaf=function(){return 0===this.children.length},t.prototype.isExpanded=function(){return!!this.expanded},t.prototype.isActive=function(){return!!this.active},t.prototype.toggleActive=function(){this.isActive()?this.active=!1:(this.filter.deselectHierarchicalFilters(),this.active=!0),this.filter.changed()},t.prototype.hasActiveChildren=function(){return this.isActive()||Object(v.some)(this.children,(function(e){return e.isActive()}))},t.prototype.deselect=function(){this.active=!1,Object(v.each)(this.children,(function(e){return e.deselect()}))},t}(Ge),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)}}(),it=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.value=r.value,i.preset=r.preset,i.active=r.selected,i}return rt(t,e),t.prototype.toggleActive=function(){return this.active=!this.active,this.filter.changed()},t.prototype.isActive=function(){return!!this.active},t}(Ge),ot=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)}}(),at=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="checkbox",i.children=Object(v.map)(r.options,(function(e,n){return new it(t,n,e)})),i}return ot(t,e),t}(Je),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(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.initFilters(t),n}return st(t,e),t.prototype.deselectHierarchicalFilters=function(){return g.a.each(this.getHierarchicalFilters(),(function(e){return e.deselect()}))},t.prototype.setSearchTerm=function(e){this.searchTerm=e,this.changed()},t.prototype.getAllFilters=function(){return g.a.union(this.getHierarchicalFilters(),this.additionalFilters)},t.prototype.hasActiveChildren=function(){return g.a.some(this.getAllFilters(),(function(e){return e.hasActiveChildren()}))},t.prototype.getHierarchicalFilters=function(){return g.a.flatten(g.a.map(this.getTreeFilters(),(function(e){return e.subFilters})))},t.prototype.getTreeFilters=function(){return this.treeFilters},t.prototype.hasHierarchicalFilters=function(){return this.treeFilters.length>0},t.prototype.hasAdditionalFilters=function(){return this.additionalFilters.length>0},t.prototype.initFilters=function(e){var t=this,n=function(e,n){return new nt(t,n,e)};this.treeFilters=[],this.additionalFilters=[],g.a.each(Object.keys(e||{}),(function(r){var i=e[r];if(i)switch(i.type||"tree"){case"tree":t.treeFilters.push({config:i,subFilters:g.a.map(i.options,n)});break;case"radio_button":case"radioButton":t.additionalFilters.push(new et(t,r,i));break;case"check_box":case"checkbox":t.additionalFilters.push(new at(t,r,i))}}))},t}($e),ut=n(114),lt=function(){function e(){this.presetErrors={},this.presetValues={},this.titles={}}return e.prototype.isValid=function(){return 0===Object(v.keys)(this.errors()).length},e.prototype.values=function(){if(this.isValid())return this.presetValues;throw new Error(Ue.default.translate("content_browser.last_added.preset_error"))},e.prototype.errors=function(){return this.presetErrors},e.prototype.addValue=function(e,t,n){var r="_objClass"===e?"_obj_class":e;if(Object.prototype.hasOwnProperty.call(this.presetValues,r))return this.addError(r,this.titles[r],n);this.presetValues[r]=t,this.titles[r]=n},e.prototype.addError=function(e,t,n){if(this.presetErrors[e])return this.presetErrors[e].push(n);this.presetErrors[e]=[t,n]},e}(),dt=function(){function e(e){this.collector=new ut.default(e)}return e.prototype.generatePresetForCreate=function(){var e=new lt,t=this.collector.findActiveFilterItems();return Object(v.each)(t,(function(t){var n;Object(v.each)((n=t,Object(v.select)(n.activeNodes(),(function(e){return e.preset}))),(function(t){!function(e,t){Object(v.each)(e.preset,(function(n,r){void 0!==n&&t.addValue(r,n,e.title)}))}(t,e)}))})),e},e.prototype.generatePresetForUpload=function(){return this.generatePresetForCreate()},e}();var pt=function(){function e(e){var t=e.filter,n=e.createOptions;this.filter=t,this._createOptions=n;var r=new ut.default(t);if(this.activeConfigs=r.findActiveFilterItems(),this._showCreationItem=Object(v.some)(this.activeConfigs,(function(e){return e.enablesCreation()})),this._showCreationItem){var i=new dt(t);this.preset=i.generatePresetForCreate()}}return e.prototype.createOptions=function(){return Object(v.extend)({preset:this.preset.values()},this._createOptions)},e.prototype.showCreationItem=function(){return this._showCreationItem},e.prototype.isActive=function(){return!(this.preventCreation()||!this.presetIsValid())},e.prototype.error=function(){return this.preventCreation()?{type:"creation_not_possible",nodeTitles:this.nodeTitlesPreventingCreation()}:this.preset.isValid()?{type:"obj_class_not_provided"}:{type:"preset_conflict",fields:this.buildPresetConflictError()}},e.prototype.preventCreation=function(){return Object(v.some)(this.activeConfigs,(function(e){return e.preventsCreation()}))},e.prototype.presetIsValid=function(){return this.preset.isValid()&&this.preset.values()._obj_class},e.prototype.nodeTitlesPreventingCreation=function(){var e=Object(v.flatten)(Object(v.map)(this.activeConfigs,(function(e){return e.nodesPreventingCreation()})));return Object(v.map)(e,(function(e){return e.title}))},e.prototype.buildPresetConflictError=function(){var e={};return Object(v.each)(this.preset.errors(),(function(t,n){return e[n]=t,e[n]})),e},e}(),ft=n(19),ht=n(180),mt=function(){function e(e){this.queryBuilder=new ht.a(e)}return e.prototype.generatePresetForUpload=function(){return new lt},e.prototype.generatePresetForCreate=function(){var e=new lt,t=this.queryBuilder.searchRequest(),n=[],r=[];if(Object(v.each)(t,(function(e){Object(v.each)(e.params().query,(function(e){if("equals"===e.operator){var t=e.field;if("_obj_class"===t||t===["_obj_class"]){var i=e.value;if(e.negate)i&&(Object(v.isArray)(i)?r=r.concat(i):r.push(i));else{var o=void 0;o=Object(v.isArray)(i)?i:[i],n.push(Object(v.without)(o,null))}}}}))})),n.length>0){var i=v.intersection.apply(void 0,n),o=Object(v.difference)(i,r);1===o.length&&e.addValue("_obj_class",o[0])}return e},e}(),_t=function(){function e(e){var t=e.filter,n=e.createOptions;this.filter=t;var r=new mt(t);this.preset=r.generatePresetForCreate(),this._createOptions=n}return e.prototype.createOptions=function(){return Object(v.extend)({preset:this.preset.values()},this._createOptions)},e.prototype.showCreationItem=function(){return this.isActive()},e.prototype.isActive=function(){if(!this.preset.isValid())return!1;var e=this.preset.values()._obj_class;if(!e)return!1;var t=ft.a.find(e);return!!t&&!t.isBinary()},e.prototype.error=function(){return{type:"obj_class_not_provided"}},e}(),vt=function(){function e(e){var t=e.preset,n=e.uploadOptions;this._preset=t,this._uploadOptions=n}return e.prototype.isValid=function(){return this._preset.isValid()},e.prototype.uploadOptions=function(e){return Object(v.extend)({preset:this._preset.values(),upload:e},this._uploadOptions)},e.prototype.errors=function(){return this._preset.errors()},e}(),gt=function(){function e(e){var t=e.inferCreationPresets,n=e.basePreset;this.basePreset=n,this.inferCreationPresets=t}return e.prototype.buildObjUploadControl=function(e){var t=e.filter,n=e.activeTags,r=function(e,t){if(t)return new mt(e);return new dt(e)}(t,this.inferCreationPresets).generatePresetForUpload(),i={restrictedPreset:this.inferCreationPresets,basePreset:this.basePreset,activeTags:n};return new vt({preset:r,uploadOptions:i})},e.prototype.buildObjCreateControl=function(e){var t=e.filter,n=e.activeTags,r={restrictedPreset:this.inferCreationPresets,basePreset:this.basePreset,activeTags:n};return this.inferCreationPresets?new _t({filter:t,createOptions:r}):new pt({filter:t,createOptions:r})},e}();var yt=n(446),bt=n.n(yt),wt=n(447),kt=n.n(wt),Ot=n(448),Ct=n.n(Ot),Mt=n(450),Dt=n.n(Mt),xt=n(259),Et=n(56),St=n(12),jt=n.n(St),Tt=n(28),Lt=n(17);function Pt(){return Yt().subState("references").get()||[]}function At(){Yt().subState("isEnabled").set(!0)}function Nt(){Yt().subState("isHidden").set(!1)}function It(e){Yt().subState("currStep").set(e)}function Yt(){return pe.p.subState("tour")}var Rt="scrivito.tour.isEnabled";function Ft(e){localStorage.setItem("scrivito.tour.currStep",e.toString())}var Ht={},Wt=0;function Bt(e,t){Object(z.G)((function(){var n=Pt().slice(),r=n.indexOf(e);-1===r?t&&(Ht[e]=t,n.push(e)):t||(delete Ht[e],n.splice(r,1)),function(e){Yt().subState("references").set(e)}(n)}))}function zt(){At(),localStorage.setItem(Rt,"yes")}function Ut(){Yt().subState("isEnabled").set(!1),Yt().subState("currStep").set(0),It(0),Nt(),localStorage.removeItem(Rt),Ft(0)}function qt(){return Yt().subState("isEnabled").get()||!1}function Vt(){"yes"===localStorage.getItem(Rt)&&(Zt()>=Wt&&Qt(0),At())}function $t(){qt()&&Yt().subState("isHidden").set(!0)}function Gt(){return Yt().subState("isHidden").get()||!1}function Kt(){if(qt()){var e=Zt()+1;e<Wt&&Qt(e)}}function Jt(){if(qt()){var e=Zt()-1;e>=0&&Qt(e)}}function Qt(e){It(e),Ft(e)}function Zt(){return Yt().subState("currStep").get()||((e=localStorage.getItem("scrivito.tour.currStep"))?parseInt(e,10):0);var e}var Xt;function en(e){var t=new St(e);Xt&&t.origin(Xt);for(var n=t.segment(0);n&&"scrivito"===n.toLowerCase();)t.segment(0,""),n=t.segment(0);return t.removeQuery("scrivitoEnableTour").toString()}function tn(e){var t=e.objClass(),n=ft.a.find(t);return!!n&&n.isBinary()}function nn(e){var t=St(en(e));t.segment(["scrivito"].concat(t.segment())),an(t.toString())}function rn(e){tn(e)?function(e){Object(H.load)((function(){var t=e.get("blob",["binary"]);if(t)return t.url()})).then((function(e){e?an(e):on()}))}(e):Object(re.b)()?nn(scrivito.path_for_id(e.id())):Tt.a.urlFor(e.id()).then((function(e){e?nn(e):on()}))}function on(){an("")}function an(e){scrivito.open(e,"_blank")}var sn=scrivito.legacyCreateConnectedComponent({displayName:"Inspector",propTypes:{isEditingAllowed:React.PropTypes.bool.isRequired,disableDelete:React.PropTypes.bool.isRequired,selectedObjs:React.PropTypes.arrayOf(React.PropTypes.string).isRequired,dispatch:React.PropTypes.func.isRequired,deleteInspectedObjs:React.PropTypes.func.isRequired,selectionMode:React.PropTypes.string},_getMultiSelectedTitle:function(){return Ue.default.translate("content_browser.header.selected_items",this.props.selectedObjs.length)},_getDetailsClassName:function(){return this._canOpenSelected()?"scrivito_icon scrivito_icon_new_window":"scrivito_icon scrivito_icon_eye"},_getDetailsTitle:function(){if(this._canOpenSelected())return Ue.default.translate("content_browser.header.open_selected")},_canOpenSelected:function(){return this.props.selectionMode===Et.SINGLE_SELECTION_MODE},_title:function(){return 1!==this.props.selectedObjs.length?this._getMultiSelectedTitle():null!==this._getInspectedObj()?scrivito.titleForObj(this._getInspectedObj()):void 0},_getInspectedObj:function(){var e=this.props.selectedObjs[0];return F.BasicObj.get(e)},toggleInspectorMaximized:function(){return this.props.dispatch(Object(xt.toggleInspectorMaximized)())},_openSelected:function(){this._canOpenSelected()&&rn(this._getInspectedObj())},render:function(){return React.createElement("h3",{title:this._title()},React.createElement(Dt.a,{toggleInspectorMaximized:this.toggleInspectorMaximized}),React.createElement("span",{className:this._getDetailsClassName(),title:this._getDetailsTitle(),onClick:this._openSelected}),React.createElement("span",{className:"title"},this._title()),this.props.isEditingAllowed&&!this.props.disableDelete&&React.createElement("span",{className:"scrivito_icon scrivito_icon_trash scrivito_delete",onClick:this.props.deleteInspectedObjs}))}}),cn=n(60);function un(e){var t=e.find(".scrivito_auto_height:visible");e.hasClass("scrivito_auto_height")&&(t=t.add(e)),g.a.each(t.not(".scrivito_height_done"),(function(e){return(t=$(e)).css("height",dn(t)),void t.addClass("scrivito_height_done");var t}))}function ln(e){return e.siblings().filter(":not(.hover):visible")}function dn(e,t){void 0===t&&(t=!0);var n=e.parent(),r=n.innerHeight();t&&n.data("scrivito_last_inner_height",r);var i=g()(ln(e)).chain().map($).reduce((function(e,n){var r=n.outerHeight(!0);return t&&n.data("scrivito_last_outer_height",r),e+r}),0).value();return Math.max(0,r-i)}var pn=n(113),fn=n.n(pn),hn=new z.b((function(e){return scrivito.ajax("PUT","ui_configs/mget",{data:{ids:e},skip_write_monitor:!0})}));var mn=function(){function e(e,t){var n=pe.p.subState("uiConfig").subState(e);this._loadableData=new H.LoadableData({state:n,loader:function(){return function(e){return hn.retrieve(e).then((function(e){return e||{}}))}(e)},invalidation:function(){return Object(H.loadableWithDefault)("",(function(){return F.BasicObj.getIncludingDeleted(e).version()}))},throwNotLoaded:!0}),t&&this._loadableData.set(t)}return e.get=function(t){var n=new e(t);return n.ensureAvailable(),n},e.store=function(t,n){new e(t,n)},e.prototype.get=function(e){return this._loadableData.get()[e]},e.prototype.ensureAvailable=function(){this._loadableData.get()},e}(),_n=n(27);function vn(e){var t=e.objClass(),n=ft.a.find(t);return n?n.usesServerCallbacks()?mn.get(e.id()).get("description_for_editor"):function(e){var t=Tt.a.titleForObj(e.id());if(t)return t;if(tn(e)){var n=e.get("blob",["binary"]);if(n)return n.filename()}return e.get("title",["string"])||ft.a.get(e.objClass()).title()}(e):e.get("title",["string"])||Object(z.N)(t)}function gn(e){var t=_n.a.get(e.objClass()),n=ft.a.get(e.obj().objClass());return t.usesServerCallbacks()&&n.usesServerCallbacks()?mn.get(e.obj().id()).get("description_for_widgets")[e.id()]:Tt.a.titleForWidget(e.obj().id(),e.id())}function yn(e){return ft.a.get(e.objClass()).usesServerCallbacks()?mn.get(e.id()).get("info_for_content_browser"):function(e){var t=Tt.a.descriptionForObj(e.id());if(t)return t;if(tn(e)){var n=e.get("blob",["binary"]);if(n){var r=n.raw().extname(),i=fn()(n.raw().contentLength());return r&&(r=r.toUpperCase()),Object(v.compact)([r,i]).join(" ")}}return e.objClass()}(e)}function bn(e){var t=e.innerHeight(),n=e.innerWidth(),r={left:"50%"};t&&(r.marginTop=-t/2),n&&(r.marginLeft=-n/2),e.css(r)}var wn=n(451),kn=n.n(wn),On=n(123),Cn=n(452),Mn=n.n(Cn);function Dn(){return Object(On.applyMiddleware)(kn.a)(On.createStore)(Mn.a)}var xn=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)}}(),En=function(){return(En=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)};var Sn=function(e){function t(t){var n=e.call(this,t)||this;return n.deferred=n.buildDeferred(),n}return xn(t,e),t.prototype.componentDidMount=function(){var e;e=this.dialog,bn($(e))},t.prototype.render=function(){var e=this;return u.createElement("div",{className:"scrivito-content-browser show scrivito_center_dialog",ref:function(t){return e.dialog=t}},u.createElement(ze.Provider,{store:Dn()},u.createElement(pr,{initialFilter:new ct(this.props.options.filters),baseQuery:this.props.options.baseQuery,promise:this.deferred,options:this.props.options,objCreationFactory:new gt(Object(v.pick)(this.props.options,"basePreset","inferCreationPresets"))})))},t.prototype.buildDeferred=function(){var e=this,t=$.Deferred();return t.done((function(t){e.props.dialogDone(t)})).fail(this.props.cancelDialog),t},t}(u.Component),jn={title:"Changed",type:"checkbox",expanded:!0,field:"_modification",operator:"equals",options:{New:{value:["new"]},Edited:{value:["edited"]}}},Tn={_obj_class:{options:{Images:{icon:"image",selected:!0,field:"_obj_class",value:"Image",preset:{_obj_class:"Image"}}}},_modification:jn},Ln={_obj_class:{options:{All:{icon:"generic",selected:!0,field:"_last_changed",operator:"is_greater_than",value:new Date(0)},Images:{icon:"image",field:"_obj_class",operator:"equals",value:"Image",preset:{_obj_class:"Image"}},Downloads:{icon:"zip",field:"_obj_class",operator:"equals",value:"Download",preset:{_obj_class:"Download"}}}},_modification:jn},Pn=Object(v.mapObject)(Ln,(function e(t){var n={};return Object(v.each)(t,(function(t,r){switch(r){case"options":n[r]=Object(v.mapObject)(t,e);break;case"field":case"operator":n[r]=Object(z.o)(t);break;case"enableCreate":case"enable_create":case"preset":break;default:n[r]=t}})),n}));var An=function(){return(An=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)},Nn=null;function In(e){var t=e.validObjClasses,n=t&&ft.a.existingClassesForNames(t).map((function(e){return e.name}));return Object(H.load)((function(){return Tt.a.getContentBrowserConfiguration(n)||{}})).then((function(t){var r=function(e){if(e&&!Object(v.isEmpty)(e))return e;return Pn}(t.filters);return function(e){return q((function(t){return u.createElement(Sn,En({options:e},t))}))}(An({baseQuery:Nn},e,t,{filters:r,inferCreationPresets:!0,isEditingAllowed:scrivito.editingContext.isMutable(),validObjClasses:n}))})).then((function(e){return e.dialogCancelled?{isSelected:!1}:{isSelected:!0,selection:e.value}}))}var Yn,Rn,Fn=function(){return(Fn=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)},Hn=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 Wn(e){return Object(re.b)()?function(e){var t=e.validObjClasses,n=Hn(e,["validObjClasses"]);return r=gr.open(Fn({},n,{filterContext:t&&{_validObjClasses:t}})),(i=r,new z.j((function(e,t){i.then(e),i.fail(t)}))).then((function(e){return{isSelected:!0,selection:e}}),(function(){return{isSelected:!1}}));var r,i}(e):In(e)}var Bn=scrivito.legacyCreateConnectedComponent({statics:{open:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)throw new z.a("Missing id(s)");return Yn=$('<div id="confirm_delete_dialog"></div>').appendTo($("#scrivito_editing")),Rn=new z.e,scrivito.withDialogBehaviour(Yn,Rn.promise,{enter:$n,escape:Gn}),scrivito.renderReactComponent(React.createElement(Bn,{objIds:e}),Yn),Rn.promise},close:function(){Kn()}},propTypes:{objIds:c.a.arrayOf(c.a.string).isRequired},componentDidMount:function(){this._updateHeight()},componentDidUpdate:function(){this._updateHeight()},render:function(){var e=this.props.objIds,t=e.map((function(e){return F.BasicObj.get(e)})),n=this._subjectName(t),r=this._title(t,n),i=e.length<51?function(){return Qn(e)}:function(){return function(e){var t=e.map(Qn),n=Object(v.flatten)(t,!0);return Object(v.uniq)(n,!1,(function(e){return e.id()}))}(Object(v.chunk)(e,50))};return React.createElement("div",{className:"scrivito_modal_prompt scrivito_center_dialog scrivito_red scrivito_show"},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("i",{className:"scrivito_icon"},""),React.createElement("h3",{className:"scrivito_title"},r)),React.createElement("div",{className:"scrivito_modal_body"},React.createElement(zn,{objs:t,backlinks:i,subjectName:n,onUpdate:this._centerDialog})),React.createElement("div",{className:"scrivito_modal_footer"},React.createElement(Vn,null),React.createElement(qn,{backlinks:i})))},_updateHeight:function(){un(this._findDOMNode().find(".scrivito_modal_body"))},_centerDialog:function(){scrivito.center(this._findDOMNode())},_findDOMNode:function(){return $(Object(d.findDOMNode)(this))},_subjectName:function(e){if(e.length>1)return scrivito.t("models.obj.name.plural");var t=tn(e[0])?"resource":"page";return scrivito.t("models."+t+".name")},_title:function(e,t){return 1===e.length?Jn("title",t):e.length>1?Jn("title.many_subjects",t):void 0}}),zn=scrivito.legacyCreateConnectedComponent({propTypes:{objs:c.a.arrayOf(c.a.instanceOf(F.BasicObj)).isRequired,backlinks:c.a.func.isRequired,subjectName:c.a.string.isRequired,onUpdate:c.a.func.isRequired},componentDidMount:function(){this.props.onUpdate()},componentDidUpdate:function(){this.props.onUpdate()},shouldRenderLoaderError:!0,render:function(){var e=this;return React.createElement("div",null,React.createElement("p",null,this._modificationNotice()),React.createElement("p",null,this._backlinksNotice()),React.createElement("ul",null,this.props.backlinks().map((function(t){return React.createElement(Un,{key:t.id(),backlink:t,onClick:e._openBacklink})}))))},_scrivitoRenderWhileLoading:function(){return React.createElement(C,null)},_modificationNotice:function(){if(!(this.props.objs.length>1)){var e=this.props.objs[0];return e.isNew()?Jn("is_new",this.props.subjectName,this.props.subjectName):e.isEdited()?Jn("is_edited",this.props.subjectName):Jn("not_modified",this.props.subjectName)}},_backlinksNotice:function(){var e=this.props.backlinks().length,t=this.props.objs.length;return 1===t&&1===e?Jn("one_obj_to_delete.one_backlink",this.props.subjectName):1===t&&e>1?Jn("one_obj_to_delete.many_backlinks",e,this.props.subjectName):t>1&&1===e?Jn("many_objs_to_delete.one_backlink",this.props.subjectName):t>1&&e>1?Jn("many_objs_to_delete.many_backlinks",e,this.props.subjectName):void 0},_openBacklink:function(e){var t=this;Yn.hide(),Wn({selectionMode:"single",standAlone:!0,selection:[e.id()],disableDelete:!0}).then((function(){Yn.show(),t.forceUpdate()}))}}),Un=scrivito.legacyCreateConnectedComponent({propTypes:{backlink:c.a.instanceOf(F.BasicObj).isRequired,onClick:c.a.func.isRequired},shouldRenderLoaderError:!0,render:function(){return React.createElement("li",null,React.createElement("a",{href:"#",onClick:this._onClick},vn(this.props.backlink)))},_scrivitoRenderWhileLoading:function(){return React.createElement(C,null)},_onClick:function(e){this.props.onClick(this.props.backlink),e.stopPropagation()}}),qn=scrivito.legacyCreateConnectedComponent({propTypes:{backlinks:c.a.func.isRequired},render:function(){var e=this.props.backlinks().length?Jn("confirm.has_backlinks"):Jn("confirm");return React.createElement("a",{className:"scrivito_button scrivito_red scrivito_confirm",onClick:this._onClick},e)},_scrivitoRenderWhileLoading:function(){return null},_onClick:function(e){e.preventDefault(),$n()}}),Vn=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this._onClick},Jn("cancel"))},_onClick:function(e){e.preventDefault(),Gn()}});function $n(){Kn(),Rn.resolve(!0)}function Gn(){Kn(),Rn.resolve(!1)}function Kn(){Yn&&Yn.length&&(Object(d.unmountComponentAtNode)(Yn.get(0)),Yn.remove())}function Jn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return scrivito.t.apply(scrivito,["confirm_delete_dialog."+e].concat(t))}function Qn(e){return Object(z.m)(F.BasicObj.where("*","linksTo",e))}var Zn=scrivito.legacyCreateConnectedComponent({displayName:"Inspector",propTypes:{isEditingAllowed:c.a.bool.isRequired,disableDelete:c.a.bool.isRequired,selectedObjs:c.a.arrayOf(c.a.string).isRequired,dispatch:c.a.func.isRequired,selectionMode:c.a.string},render:function(){return React.createElement("div",{className:"scrivito-content-browser-inspector"},this._renderContent())},_renderContent:function(){var e=this.props,t=e.selectedObjs,n=e.isEditingAllowed,r=e.disableDelete,i=e.dispatch;if(!t.length)return null;if(1===t.length){var o=t[0],a=F.BasicObj.get(o),s=void 0;return a&&(s=React.createElement(scrivito.PropertiesComponent,{content:a})),React.createElement("div",null,React.createElement(sn,{isEditingAllowed:n,disableDelete:r,dispatch:i,selectedObjs:t,deleteInspectedObjs:this._deleteInspectedObjs,selectionMode:this.props.selectionMode}),React.createElement("div",{className:"inspector-content"},s))}return React.createElement(sn,{isEditingAllowed:n,disableDelete:r,dispatch:i,selectedObjs:t,deleteInspectedObjs:this._deleteInspectedObjs})},_deleteInspectedObjs:function(){var e=this.props,t=e.selectedObjs,n=e.dispatch;t.length&&Bn.open.apply(Bn,t).then((function(e){e&&t.forEach((function(e){return n(Object(cn.objDeleted)(e))}))}))}}),Xn=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)}}(),er=function(e){function t(t){var n=e.call(this,t)||this;return n.closeClick=n.closeClick.bind(n),n.deleteClick=n.deleteClick.bind(n),n.doneClick=n.doneClick.bind(n),n}return Xn(t,e),t.prototype.render=function(){var e=this.props.isEditingAllowed&&!this.props.disableDelete,t=!this.props.standAlone;return u.createElement("div",{className:"scrivito-content-browser-footer"},e&&this.renderDeleteButton(),t&&this.renderSubmitButton(),u.createElement("a",{className:this.getClassNameCloseButton(),onClick:this.closeClick},Ue.default.translate("content_browser.footer.close")))},t.prototype.currentSelectedCount=function(){return this.props.selectedObjs.length},t.prototype.deleteButtonClass=function(){var e="scrivito_button scrivito_lightgrey content-browser-delete scrivito_left";return 0===this.currentSelectedCount()?e+" scrivito_disabled":e},t.prototype.closeClick=function(){this.props.standAlone?this.props.promise.resolve(void 0):this.props.promise.reject()},t.prototype.doneClick=function(){this.props.promise.resolve(this.props.selectedObjs)},t.prototype.deleteClick=function(){var e=this;this.props.selectedObjs.length&&Bn.open.apply(Bn,this.props.selectedObjs).then((function(t){t&&e.props.selectedObjs.forEach((function(t){return e.props.dispatch(Object(cn.objDeleted)(t))}))}))},t.prototype.getClassNameCloseButton=function(){var e="scrivito_button content-browser-close";return this.props.standAlone?e+" scrivito_green":e},t.prototype.renderDeleteButton=function(){return u.createElement("a",{className:this.deleteButtonClass(),onClick:this.deleteClick},Ue.default.translate("content_browser.footer.delete"),u.createElement("span",{className:"scrivito-content-browser-counter selected-total"},this.currentSelectedCount()))},t.prototype.renderSubmitButton=function(){var e=function(e,t,n){if(!t)return{isValid:!0};if(e.some((function(e){return!function(e,t){var n=F.BasicObj.get(e);if(!n)return!1;return-1!==t.indexOf(n.objClass())}(e,t)}))){if(0===t.length)return{isValid:!1,explanation:Ue.default.translate("content_browser.footer.select_disabled_reason.none_available")};var r=t.map(tr).join(", ");return{isValid:!1,explanation:Ue.default.translate("content_browser.footer.select_disabled_reason."+n,r)}}return{isValid:!0}}(this.props.selectedObjs,this.props.validObjClasses,this.props.selectionMode),t=e.isValid,n=e.explanation;return t?u.createElement("a",{className:"scrivito_button scrivito_green content-browser-save",onClick:this.doneClick},Ue.default.translate("content_browser.footer.select"),u.createElement("span",{className:"scrivito-content-browser-counter selected-total"},this.currentSelectedCount())):u.createElement("a",{className:"scrivito_button scrivito_disabled content-browser-save",title:n},Ue.default.translate("content_browser.footer.select"),u.createElement("span",{className:"scrivito-content-browser-counter selected-total"},this.currentSelectedCount()))},t.displayName="Footer",t}(u.Component);function tr(e){var t=ft.a.find(e);return t?t.title():e}var nr=n(83),rr=b()({displayName:"App",updateFilter:function(e){this.setState({filter:e})},createObj:function(e){this.props.dispatch(Object(cn.createObj)(e))},destroyObj:function(e){this.props.dispatch(Object(cn.objDeleted)(e))},setInitiallySelectedObjIds:function(){var e=this.props.options.selection||[];this.props.dispatch(Object(Et.setInitiallySelectedObjIds)(e))},toggleObjSelection:function(e){this.props.dispatch(Object(Et.toggleSelect)(e))},deselectObjs:function(){this.props.dispatch(Object(Et.deselectObjs)())},setObjSource:function(e){this.props.dispatch(Object(nr.setObjSource)(e))},activateInitialFilter:function(){var e=this;this.refs.filterView.activateInitialFilter&&(this.props.options.selection&&v.each(this.props.options.selection,(function(t){e.toggleObjSelection(t)})),this.refs.filterView.activateInitialFilter())},componentDidMount:function(){this.props.dispatch(Object(Et.changeSelectionMode)(this.props.options.selectionMode)),this.state.filter.onChange(this.updateFilter),this.setInitiallySelectedObjIds(),this.activateInitialFilter()},getInitialState:function(){return{filter:this.props.initialFilter}},_getBodyClassName:function(){return this.props.inspector.isMaximized?"scrivito-content-browser-body scrivito-content-browser-inspector-max":"scrivito-content-browser-body"},render:function(){return React.createElement("div",{className:"scrivito-app-root"},React.createElement("div",{className:this._getBodyClassName()},React.createElement("div",{className:"scrivito-content-browser-wrapper"},React.createElement(bt.a,{filter:this.state.filter,standAlone:this.props.options.standAlone}),React.createElement(kt.a,{ref:"filterView",filter:this.state.filter,standAlone:this.props.options.standAlone,additionCount:this.props.lastAdded.additions.length,deselectObjs:this.deselectObjs,initialSelection:this.props.selection.initiallySelectedObjIds,selectedObjs:this.props.selection.selectedObjs,setObjSource:this.setObjSource,activeSource:this.props.objSource.activeSource}),React.createElement(Ct.a,{ref:"itemView",createObj:this.createObj,tags:this.props.tags,dispatch:this.props.dispatch,objCreationFactory:this.props.objCreationFactory,viewMode:this.props.objDisplay.viewMode,lastAdded:this.props.lastAdded,initialSelection:this.props.selection.initiallySelectedObjIds,toggleObjSelection:this.toggleObjSelection,selectedObjs:this.props.selection.selectedObjs,selectionMode:this.props.selection.selectionMode,setObjSource:this.setObjSource,activeSource:this.props.objSource.activeSource,baseQuery:this.props.baseQuery,numToLoad:this.props.objLoad.numToLoad,sortCriteria:this.props.sortCriteria,filter:this.state.filter,isEditingAllowed:this.props.options.isEditingAllowed})),React.createElement(Zn,{disableDelete:!!this.props.options.disableDelete,dispatch:this.props.dispatch,isEditingAllowed:this.props.options.isEditingAllowed,selectedObjs:this.props.selection.selectedObjs,selectionMode:this.props.selection.selectionMode})),React.createElement(er,{promise:this.props.promise,dispatch:this.props.dispatch,validObjClasses:this.props.options.validObjClasses,isEditingAllowed:this.props.options.isEditingAllowed,disableDelete:this.props.options.disableDelete,selectedObjs:this.props.selection.selectedObjs,selectionMode:this.props.selection.selectionMode,standAlone:this.props.options.standAlone}))}}),ir=!1;function or(e){void 0===e&&(e={filters:{},baseQuery:null,basePreset:{},inferCreationPresets:!1}),ir=!0,$("<div></div>").addClass("scrivito_overlay scrivito_show").appendTo($("#scrivito_editing")),$("<div></div>").addClass("scrivito-content-browser show").appendTo($("#scrivito_editing")),$(document).off("keyup.scrivito_content_browser"),$(document).on("keyup.scrivito_content_browser",cr),sr();var t=function(e,t){var n=$.Deferred(),r=new ct(e.filters),i=v.pick(e,"basePreset","inferCreationPresets"),o=new gt(i),a=Dn();return d.render(u.createElement(ze.Provider,{store:a},u.createElement(pr,{initialFilter:r,baseQuery:e.baseQuery,promise:n,options:e,objCreationFactory:o})),t),n}(e,lr());return t.always(ar),$(window).resize(sr),t}function ar(){ir&&(d.unmountComponentAtNode(lr()),dr(ur("scrivito_overlay scrivito_show")),dr(lr()),lr()||($(document).off("keyup.scrivito_content_browser"),ir=!1))}function sr(){var e=$(".scrivito-content-browser");v.each(e,(function(e){var t=$(e);t.css({marginLeft:-(t.innerWidth()||0)/2,marginTop:-(t.innerHeight()||0)/2,left:"50%"})}))}function cr(e){27===e.keyCode&&(e.preventDefault(),ar())}function ur(e){var t=document.getElementsByClassName(e);return v.last(t)}function lr(){return ur("scrivito-content-browser show")}function dr(e){e.parentNode.removeChild(e)}var pr=ze.connect((function(e){return e}))(rr);var fr=function(){return(fr=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)},hr=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},mr={base_query:"baseQuery",base_preset:"basePreset",filter_context:"filterContext",selection_mode:"selectionMode"};function _r(e,t,n,r){var i=function(e,t){var n={basePreset:t};return Object(v.each)(e,(function(t,r){var i=mr[r]||r;r!==i&&e.hasOwnProperty(i)?n[i]=e[i]:n[i]=t})),n}(e,r||{}),o=i.baseQuery,a=i.filters,s=i.filterContext,c=hr(i,["baseQuery","filters","filterContext"]);return fr({},c,{filters:vr(a||t,s||{}),baseQuery:o||n||null,isEditingAllowed:scrivito.editingContext.isMutable(),inferCreationPresets:!1})}function vr(e,t){var n=function(e){return"function"==typeof e}(e)?e(t):e;return n&&!Object(v.isEmpty)(n)?n:t&&t._image?Tn:Ln}var gr={open:function(e){return or(_r(e||{},this.filters,this.base_query,this.base_preset))}};function yr(e){return!!$.isWindow(e)&&(e.parent===e.self?e.self===top:!e.closed)}var br=function(){function e(e){this._browserWindow=e,this._isForcedEditingMode=!1,this.documentCallbacks=[],this.hasCachedIframe=!1}return e.prototype.document=function(){return this.cmsDocument},e.prototype.on=function(e,t){"document"!==e&&$.error("invalid event name: "+e),this.documentCallbacks.push(t)},e.prototype.setDocument=function(e){this.cmsDocument=e,v.each(this.documentCallbacks,(function(t){return t(e)}))},e.prototype.browserWindow=function(){return this._browserWindow},e.prototype.reload=function(){return this.withSavingOverlay(scrivito.reload(this._browserWindow))},e.prototype.redirectTo=function(e){return this.withSavingOverlay(scrivito.redirect_to(e,this._browserWindow))},e.prototype.clearDocumentCallbacks=function(){this.documentCallbacks=[]},e.prototype.useFragmentOf=function(e){if(this!==e){var t=e.browserWindow().location.hash;if(t){var n=this.iframe();if(!n)throw new z.g("useFragementOf called, but no iframe present");var r=new St(n.src);r.fragment(t),n.src=r.href()}}},e.prototype.iframe=function(){var e=this;if(this.hasCachedIframe)return this.cachedIframe;var t=this._browserWindow.parent.document,n=$(t).find("iframe"),r=v.find($.makeArray(n),(function(t){try{return t.contentWindow===e._browserWindow}catch(e){}}));return this.hasCachedIframe=!0,this.cachedIframe=r,r},e.prototype.forceEditingMode=function(){this._isForcedEditingMode=!0},e.prototype.isForcedEditingMode=function(){return this._isForcedEditingMode},e.prototype.navigateTo=function(e){if(Object(re.b)())return this.redirectTo(scrivito.path_for_id(e));var t=this.cmsDocument&&this.cmsDocument.appAdapter();t?t.navigateTo(e):Object(z.F)("\n          useRailsEngine is false but there is no AppAdapter,\n          this means that there should be a JS application, but it is missing or broken somehow.\n        ")},e.prototype.navigateToRoot=function(){var e=this;return Object(H.load)((function(){return F.BasicObj.root()})).then((function(t){if(!t)throw new z.g("tried to navigate to root, but root is missing");e.navigateTo(t.id())}))},e.prototype.withSavingOverlay=function(e){var t=this.iframe();return scrivito.withSavingOverlay(new z.j((function(n,r){t&&$(t).one("load",(function(){return n()})),e.then(n),e.catch(r)})))},e}();function wr(e){var t,n;if(e||$.error("no element given!"),function(e){return!!e.jquery}(n=e)&&"IFRAME"===n[0].tagName){var r=e[0].contentWindow;if(!r)throw new Error("contentWindow of iFrame not accessible!");t=r}else t=e;yr(t)||$.error("element is a closed browser window or not a window element at all");var i=function(e){return Cr(),v.detect(Or,(function(t){return t.browserWindow()===e}))}(t);return i||function(e){Or.push(e)}(i=new br(t)),i}function kr(){return Cr(),Or}var Or=[];function Cr(){Or=v.reject(Or,(function(e){var t=e.browserWindow(),n=!0;if(t)try{n=!yr(t)}catch(e){}return n}))}function Mr(e){return{x:e.left,y:e.top}}var Dr,xr=n(11),Er=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)}}(),Sr=function(){return(Sr=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 jr(e,t){return q((function(n){return u.createElement(Tr,Sr({title:e},t||{},n))}))}var Tr=S(((Dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Er(t,e),t.prototype.componentDidMount=function(){this.props.subscribeHotkey("enter",this.props.cancelDialog)},t.prototype.render=function(){return u.createElement("div",{className:"alert_dialog scrivito_modal_prompt scrivito_center_dialog scrivito_"+(this.props.color||"red")+" scrivito_show"},u.createElement("div",{className:"scrivito_modal_header"},u.createElement("i",{className:"scrivito_icon scrivito_icon_"+(this.props.icon||"attention")}),u.createElement("h3",{className:"scrivito_title"},this.props.title)),this.props.body&&u.createElement("div",{className:"scrivito_modal_body",dangerouslySetInnerHTML:{__html:this.props.body}}),u.createElement("div",{className:"scrivito_modal_footer"},u.createElement("a",{className:"scrivito_button scrivito_close",onClick:this.props.cancelDialog},scrivito.t("ok"))))},t}(u.Component)).displayName="AlertDialog",Dr)),Lr=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 Pr(e){return Ar(e).offset(e)}function Ar(e){var t,n=$(e);if(0===n.length)throw new z.g("empty jquery instance given");var r=n[0];if(r.ownerDocument)t=r.ownerDocument;else{if(!Nr(r))throw new z.g("cmsDocumentFrom must be called with a dom element");t=r}return P($(t))}function Nr(e){return e.nodeType===Node.DOCUMENT_NODE}N({createInstance:function(e){var t=e.dom_element()[0];if(Nr(t))return new Ir(t)}});var Ir=function(e){function t(t){var n=e.call(this,$(t))||this;return n.browserDocument=t,n.loadCallbacks=[],n.contentCallbacks=[],n.connected=!1,n.connectInitiated=!1,n._browserWindow=t.defaultView,n}return Lr(t,e),t.prototype.installRailsApi=function(){var e=this,t=this.appJquery();if(!t){var n="jQuery is missing! In order for Scrivito to work, jQuery is needed. Please add jQuery to your assets.";throw jr(n),new z.g(n)}t.fn.scrivito=scrivito.jQueryPlugin;var r,i,o=this._browserWindow.scrivito||{};this._browserWindow.scrivito=o,v.extend(o,{on:this.localOnFunction.bind(this),trigger:scrivito.trigger,create_obj:scrivito.create_obj,delete_obj:scrivito.delete_obj,obj_where:scrivito.obj_where,is_current_page_restricted:scrivito.is_current_page_restricted,in_editable_view:scrivito.in_editable_view,register_default_obj_class_for_content_type:scrivito.register_default_obj_class_for_content_type,default_obj_class_for_content_type:scrivito.default_obj_class_for_content_type,page_menu:function(){return scrivito.page_menu(e)},define_editor:function(t,n){new ue(e).define(t,n)},select_editor:function(t){e.selectEditor=t},upload_binary:function(e){var t=e.blob||e.file;if(!t)throw new Error("blob or file must be given");return F.Binary.upload(t,{filename:e.filename,contentType:e.content_type})},suggest_completion:W,description_for_editor:scrivito.description_for_editor,path_for_id:scrivito.path_for_id,id_from_path:scrivito.id_from_path,content_browser:gr,dialog:function(t,n){var r=e.window().iframe();return scrivito.custom_dialog(r,e.browserDocument,t,n)}}),r=o,i=["menu_order","popular_obj_classes"],v.each(i,(function(e){Object.defineProperty(r,e,{get:function(){return scrivito[e]},set:function(t){scrivito[e]=t}})}))},t.prototype.setAppAdapter=function(e){if(e){var t=Object(T.e)(Object(T.g)(e));this._appAdapter=Object(T.c)(j.a,t),this.window().setDocument(this)}else this._appAdapter=void 0},t.prototype.appAdapter=function(){return this._appAdapter},t.prototype.mockAppAdapter=function(e){this._appAdapter=e},t.prototype.assertUserLoggedIn=function(){var e=this;Object(re.b)()&&Object(H.load)((function(){e.userId()!==He.current.id&&scrivito.change_location(e.window().browserWindow().location,window)}))},t.prototype.connect=function(){var e=this;if(this.connectInitiated)throw new z.g("document connected twice!");yr(this._browserWindow)?(this.connectInitiated=!0,this.preloadObjs().then((function(){var t;e.loadCallbacks.forEach((function(e){return scrivito.run_new_event(e)})),e.connected=!0,Object(re.b)()&&(t=e,Object(re.b)()&&(t.window().setDocument(t),ce("railsDocument",t)),ae(e.dom_element()[0]))}))):scrivito.log_info("document inside closed window, refusing to connect")},t.prototype.preloadObjs=function(){return scrivito.editingContext.isViewMode()?z.j.resolve():(this.preloadedObjData().forEach((function(e){xr.m.get(Object(F.currentWorkspaceId)(),e._id).notifyBackendState(e)})),scrivito.cms_field_element.preload(this.dom_element()))},t.prototype.notifyNewContent=function(e){var t=this;return this.connected?v.map(this.contentCallbacks,(function(n){return new z.j((function(r){scrivito.run_new_event((function(){try{n.apply(t,[e])}finally{r()}}))}))})):[]},t.prototype.addAppExtensions=function(){if(scrivito.ui_config()){var e=scrivito.ui_config().app_extension_tags;this._browserWindow.document.write(e)}},t.prototype.window=function(){return wr(this._browserWindow)},t.prototype.appJquery=function(){if(!Object(re.b)())throw new z.g("Unexpected attempt to access application frame's jQuery");return this._browserWindow.jQuery},t.prototype.browserWindow=function(){return this._browserWindow},t.prototype.offset=function(e){return this.toUiPosition(Mr($(e).offset()))},t.prototype.toUiPosition=function(e){var t=function(e){var t=$(e.iframe()).offset();if(t)return Mr(t);return null}(this.window());if(t){if(Object(re.b)())return function(e,t,n){var r=$(n),i=t.x-r.scrollLeft()+e.x,o=t.y-r.scrollTop()+e.y;return{x:i,y:o}}(e,t,this._browserWindow.document);if(this._appAdapter)return function(e,t,n){var r=n.getScrollPosition();if(r)return{x:e.x+t.x-r.x,y:e.y+t.y-r.y};return e}(e,t,this._appAdapter)}return e},t.prototype.pageId=function(){if(Object(re.b)()){var e=this.currentPageConfig();if(e)return e.id}else if(this._appAdapter)return this._appAdapter.getCurrentPageId()||null;return null},t.prototype.hasCurrentPage=function(){return!!this.pageId()},t.prototype.isCurrentPageRestricted=function(){if(this.hasCurrentPage()){var e=this.pageConfig();if(e)return e.current_page.is_restricted}return!1},t.prototype.userId=function(){var e=this.pageConfig();if(e)return e.user_id},t.prototype.preloadedObjData=function(){var e=this.pageConfig();return e&&e.preloaded_obj_data||[]},t.prototype.pageConfig=function(){return Y(this.findPageConfig(),"data-scrivito-private-page-config")},t.prototype.setPageConfig=function(e){var t=this.findPageConfig();t.length||(t=this.dom_element().find("body")),e?R(t,"data-scrivito-private-page-config",e):t.removeAttr("data-scrivito-private-page-config")},t.prototype.findPageConfig=function(){return this.dom_element().find("[data-scrivito-private-page-config]")},t.prototype.setCurrentPageConfig=function(e){this.setPageConfig({current_page:e})},t.prototype.localOnFunction=function(e,t){var n=this;if("load"===e)this.connected?scrivito.run_new_event(t):this.loadCallbacks.push(t);else{if("content"!==e)throw new z.g("unknown event "+e);var r=t;this.contentCallbacks.push(r),this.connected&&scrivito.run_new_event((function(){r(n.browserDocument)}))}},t.prototype.currentPageConfig=function(){var e=this.pageConfig();if(e&&!v.isEmpty(e.current_page))return e.current_page},t}(L);function Yr(){if(scrivito.WriteMonitor.isWriting())return scrivito.t("warn_before_unloading")}var Rr=n(178);var Fr=n(88);function Hr(e){var t=e.dom_element();e.widgetElements().length?t.removeClass("scrivito_empty_widget_field"):t.addClass("scrivito_empty_widget_field")}var Wr=function(e){var t=e.disabled,n=e.icon,r=n[0];switch(n[1]){case"customerIcon":return u.createElement(Br,{iconName:r});case"entity":return u.createElement(zr,{entity:r});case"url":return u.createElement(Ur,{url:r,disabled:t})}};Wr.displayName="MenuItem.MenuIcon";var Br=function(e){var t=e.iconName;return u.createElement("i",{className:"scrivito_icon scrivito_customer_icon sci_"+t})};Br.displayName="MenuItem.CustomerIcon";var zr=function(e){var t=e.entity;return u.createElement("i",{className:"scrivito_icon",dangerouslySetInnerHTML:{__html:t}})};zr.displayName="MenuItem.EntityIcon";var Ur=function(e){var t=e.disabled,n=e.url;return u.createElement("i",{className:"scrivito_svg"},u.createElement("svg",{width:"100",height:"100",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},u.createElement("image",{xlinkHref:n,x:"0",y:"0",height:"100%",width:"100%",filter:t?"url(#scrivito_svg_icon_filter_disabled)":"url(#scrivito_svg_icon_filter)"})))};Ur.displayName="MenuItem.ImageIcon";var qr=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)}}(),Vr=S(function(e){function t(t){var n=e.call(this,t)||this;return n._onClick=n._onClick.bind(n),n}return qr(t,e),t.prototype.render=function(){if(!this.props.command.isPresent())return null;var e=this.props.command.icon(),t=this.props.command.isDisabled();return u.createElement("li",{className:this._className(),title:this._title()||void 0,onClick:this._onClick},u.createElement("span",null,e&&u.createElement(Wr,{icon:e,disabled:t}),this.props.command.title()))},t.prototype._className=function(){var e=["scrivito_menu_item"];return this.props.command.isDisabled()&&e.push(" scrivito_disabled"),e.push(this.props.command.domId()),e.join(" ")},t.prototype._title=function(){return this.props.command.isEnabled()?this.props.command.tooltip():this.props.command.reasonForBeingDisabled()||this.props.command.tooltip()},t.prototype._onClick=function(e){e.preventDefault(),e.stopPropagation(),this.props.command.isEnabled()&&(this.props.beforeExecute(),this.props.command.execute())},t.displayName="ContextMenu.MenuItem",t}(u.Component)),$r=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)}}(),Gr=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $r(t,e),t.prototype.render=function(){return u.createElement("li",{className:"scrivito_menu_separator"},u.createElement("span",null,this.props.separator.title()))},t.displayName="ContextMenu.MenuItemSeparator",t}(u.Component)),Kr=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)}}();var Jr,Qr,Zr=S(function(e){function t(t){return e.call(this,t)||this}return Kr(t,e),t.prototype.componentDidMount=function(){this._menuBox&&this.props.componentDidUpdate(this._menuBox)},t.prototype.componentDidUpdate=function(){this._menuBox&&this.props.componentDidUpdate(this._menuBox)},t.prototype.render=function(){var e=this,t="scrivito_menu_box jsx visible",n="scrivito_editing_marker_menu jsx",r=scrivito.pattern_sort(this.props.commands,scrivito.menu_order);return this.props.className&&(t+=" "+this.props.className),this.props.hasRelativePosition&&(n+=" scrivito_precise_offset"),u.createElement("div",{className:n,style:{left:this.props.offset.x,top:this.props.offset.y}},u.createElement("div",{className:"scrivito_menu_box_overlay",onClick:this.props.close}),u.createElement("ul",{className:t,ref:function(t){return e._menuBox=t}},r.map((function(t){return function(e){return"execute"in e}(t)?u.createElement(Vr,{key:t.id(),command:t,beforeExecute:e.props.close}):u.createElement(Gr,{key:t.id(),separator:t})}))))},t.displayName="ContextMenu.MenuDropdown",t}(u.Component)),Xr=function(){function e(e,t){this.elementId=e,this.cmsDocument=t}return e.prototype.width=function(){var e=this.getElementBoundaries();return e?e.width:null},e.prototype.height=function(){var e=this.getElementBoundaries();return e?e.height:null},e.prototype.offset=function(){var e=this.getElementBoundaries();if(null===e)return null;if(void 0!==e&&(0!==e.width||0!==e.height)){var t=e.x,n=e.y;return this.cmsDocument.toUiPosition({x:t,y:n})}},e.prototype.getElementBoundaries=function(){var e=this.cmsDocument.appAdapter();if(!e)throw new z.g("Missing the app adapter");return e.getElementBoundaries(this.elementId)},e}(),ei=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 ti(){Qr&&Qr.forceUpdate()}var ni=S(((Jr=function(e){function t(t){var n=e.call(this,t)||this;return n.state={orientationClassName:""},n.updateOrientationClassName=n.updateOrientationClassName.bind(n),n}return ei(t,e),t.prototype.componentDidMount=function(){var e=this;Qr=this,this.offsetObservation=Object(H.observeAndLoad)((function(){return e.props.elementArea.offset()}),(function(t){if(t.allDataLoaded){var n=t.result;n?e.setState({offset:n}):null===n&&e.props.close()}}))},t.prototype.componentWillUnmount=function(){this.props.whenClosed&&this.props.whenClosed(),Qr=void 0,this.offsetObservation&&this.offsetObservation.unsubscribe()},t.prototype.render=function(){var e=this.getOffset();return e?u.createElement(Zr,{offset:e,hasRelativePosition:void 0!==this.props.relativePosition,close:this.props.close,commands:this.props.commands,className:this.contextMenuClassName(),componentDidUpdate:this.updateOrientationClassName}):null},t.prototype.getOffset=function(){var e=this.props.elementArea instanceof Xr?this.state.offset:this.props.elementArea.offset();if(e)return this.props.relativePosition?{x:e.x+this.props.relativePosition.x,y:e.y+this.props.relativePosition.y}:e},t.prototype.contextMenuClassName=function(){var e=[];return this.props.customClassName&&e.push(this.props.customClassName),this.state.orientationClassName&&e.push(this.state.orientationClassName),e.join(" ")},t.prototype.updateOrientationClassName=function(e){var t=this.calculateOrientationClassName(e);t!==this.state.orientationClassName&&this.setState({orientationClassName:t})},t.prototype.calculateOrientationClassName=function(e){var t="";return this.shouldAlignLeft(e)&&(t+=" scrivito_left"),this.shouldAlignTop(e)&&(t+=" scrivito_top"),t},t.prototype.shouldAlignLeft=function(e){var t=this,n=$(".iframe_wrapper"),r=Object(H.loadableWithDefault)(void 0,(function(){return t.props.elementArea.offset()}));return!!r&&(n.width()||0)-r.x-(n.scrollLeft()||0)<e.clientWidth},t.prototype.shouldAlignTop=function(e){var t=this,n=Object(H.loadableWithDefault)(void 0,(function(){return t.props.elementArea.offset()}));if(!n)return!1;var r=$(".iframe_wrapper"),i=n.y-(r.offset()||{top:0,left:0}).top;this.props.relativePosition&&(i+=this.props.relativePosition.y);var o=(r.height()||0)-i,a=e.clientHeight+25;return a>o&&a<i},t}(u.Component)).displayName="ContextMenu",Jr)),ri=function(){function e(e){this.$domElement=$(e)}return e.prototype.width=function(){return this.$domElement.outerWidth()||0},e.prototype.height=function(){return this.$domElement.outerHeight()||0},e.prototype.offset=function(){return Pr(this.$domElement)},e}();function ii(){var e=Object(re.b)()?oi().get():Tt.a.getCurrentPageId();return e?F.BasicObj.getIncludingDeleted(e):null}function oi(){return pe.p.subState("currentPageId")}var ai=function(){return(ai=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 si(){se("railsDocument",(function(e){return["resize","scroll","load"].forEach((function(t){return e.browserWindow().addEventListener(t,ti)}))})),window.addEventListener("resize",ti),Object(H.observeAndLoad)(ii,(function(e){e.allDataLoaded&&null!==e.result&&Qr&&Qr.props.close()}))}function ci(e,t,n){void 0===n&&(n={});var r=function(e){return e&&1===e.nodeType}(e)?new ri(e):e;scrivito.renderReactComponent(u.createElement(ni,ai({elementArea:r,close:ui,commands:t},n)),$("#context_menu"))}function ui(){var e=document.getElementById("context_menu");e&&Object(d.unmountComponentAtNode)(e)}function li(e){var t=e.dom_element(),n=t.get(0);t.on("click.scrivito",(function(t){if(e.isEmpty())return ci(n,e.menu(),{relativePosition:Object(z.r)(t,n)}),!1}))}function di(e){var t=e.getContainer(),n=e.name();kr().forEach((function(e){var r=$(e.browserWindow().document.documentElement);scrivito.WidgetlistFieldElement.all(r).forEach((function(e){n===e.attr_name()&&t.equals(e.container())&&e.refresh()}))}))}var pi=n(110);function fi(e){window.requestAnimationFrame(e)}function hi(e,t,n){var r=function e(t,n,r){var i=function(e,t){if(t.length){var n,r;return t.forEach((function(t){var i=mi(t);if(i)if(n){var o=_i(e,i);(o<r||o===r&&1===Object(v.random)(1))&&(n=t,r=o)}else n=t,r=_i(e,i)})),n}}(t,n);if(!i)return[];var o=i.getWidgetDropZone();if(o&&o.isFromThisDropZone(r))return[i];return[i].concat(e(t,i.children(),r))}(e,t.children(),n);if(0!==r.length){var i=function(e){var t=e[e.length-1];return e.forEach((function(e){t=vi(t,e)})),function e(t,n){var r=n[0],i=n[1];if(!i)return n;var o=(t.x-r.x1)/n.length,a=(t.y-r.y1)/n.length,s=(r.x2-t.x)/n.length,c=(r.y2-t.y)/n.length,u={x1:r.x1+Math.min(20,o),y1:r.y1+Math.min(20,a),x2:r.x2-Math.min(20,s),y2:r.y2-Math.min(20,c)},l=[vi(i,u)].concat(n.slice(2));return[r].concat(e(t,l))}(function(e){return{x:(e.x1+e.x2)/2,y:(e.y1+e.y2)/2}}(t),e)}(function(e){var t=[],n=e[0];if(0===gi(n))return[n];return e.forEach((function(e){if(!(gi(n=vi(n,e))>0))return t;t.push(e)})),t}(Object(v.compact)(r.map(mi)))),o=[];r.forEach((function(e,t){var n=i[t];n&&(o=o.concat(function(e,t){var n=(i=t,{left:{x1:i.x1,y1:i.y1,x2:i.x1,y2:i.y2},right:{x1:i.x2,y1:i.y1,x2:i.x2,y2:i.y2},top:{x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y1},bottom:{x1:i.x1,y1:i.y2,x2:i.x2,y2:i.y2}}),r=e.getWidgetDropZone().edges().map((function(t){return{rectangle:n[t],contentZone:e,name:t}}));var i;return Object(v.sortBy)(r,(function(e){return["left","right","top","bottom"].indexOf(e.name)}))}(e,n)))}));var a=Object(v.min)(o,(function(t){return _i(e,t.rectangle)}));return{contentZone:a.contentZone,edgeName:a.name}}}function mi(e){var t=e.elementArea(),n=t.offset(),r=t.width(),i=t.height();if(n&&null!==r&&null!==i)return{x1:n.x,y1:n.y,x2:n.x+r,y2:n.y+i}}function _i(e,t){var n=Math.max(Math.min(e.x,t.x2),t.x1),r=Math.max(Math.min(e.y,t.y2),t.y1),i=e.x-n,o=e.y-r;return Math.sqrt(i*i+o*o)}function vi(e,t){return{x1:Math.min(t.x2,Math.max(t.x1,e.x1)),y1:Math.min(t.y2,Math.max(t.y1,e.y1)),x2:Math.min(t.x2,Math.max(t.x1,e.x2)),y2:Math.min(t.y2,Math.max(t.y1,e.y2))}}function gi(e){return(e.x2-e.x1)*(e.y2-e.y1)}var yi=function(){function e(e){this.element=e}return e.prototype.children=function(){return bi(this.element)},e.prototype.elementArea=function(){return new ri(this.element)},e.prototype.nextSibling=function(){var t=this.element.nextElementSibling;if(t)return new e(t)},e.prototype.previousSibling=function(){var t=this.element.previousElementSibling;if(t)return new e(t)},e.prototype.getWidgetDropZone=function(){if(!this.element.scrivitoPrivateDropzone)throw new Error("Element of DomBasedZone is not a HTMLElementWithDropzone");return this.element.scrivitoPrivateDropzone()},e}();function bi(e){return $(e).find("[data-scrivito-private-dropzone]").toArray().filter((function(t){var n=$(t).parent().closest("[data-scrivito-private-dropzone]").get(0);return!$.contains(e,n)})).map((function(e){return new yi(e)}))}var wi=function(){function e(e){this.body=e}return e.prototype.children=function(){return bi(this.body)},e}();var ki,Oi,Ci,Mi=function(){function e(e,t){this.widget=e,this.domElement=t}return e.prototype.canDropInto=function(e){return e.canDrop(this.widget.objClass())},e.prototype.isStructureWidget=function(){return e=this.widget.objClass(),!!(t=_n.a.find(e))&&Object(v.some)(t.attributes,(function(e){return"widgetlist"===e.type}));var e,t},e.prototype.dropInto=function(e,t){e.drop(this.widget,t,this.domElement)},e}(),Di=new H.LoadingSubscriber;function xi(){(Ci=$('<div class="scrivito_dnd_cursor"></div>')).hide(),$("body").append(Ci),se("railsDocument",(function(e){if(scrivito.in_editable_view()){var t=e.dom_element().find("body"),n=new wi(t.get(0));t.on("dragover",(function(t){return function(e,t,n){if(!Oi)return;var r=e.originalEvent;r.dataTransfer.dropEffect="move",e.preventDefault&&e.preventDefault();var i={x:r.pageX,y:r.pageY};Ii(i,t,n)}(t,n,e)})),t.on("drop",(function(){return ji()}))}}))}function Ei(e,t){Oi=new Mi(e,t)}function Si(){Yi()}function ji(){if(Oi){if(ki){var e=Li(ki);e&&Oi.canDropInto(e)&&Oi.dropInto(e,ki.edgeName)}return Yi(),!1}}function Ti(){if(!Oi)throw new Error("Unexpected call - no drag");if(!ki)throw new Error("onDragover: missing gesture");var e=Li(ki),t=ki.edgeName,n=ki.contentZone;if(n){var r=n.elementArea();Ci.height("0px");var i=r.width();i&&Ci.width(i);var o=function(e,t){var n=e.elementArea(),r=n.offset();if(!r)return;var i=r.y;if("top"===t){var o=e.previousSibling();if(o){var a=o.elementArea(),s=a.offset();if(!s)return;if(!(u=Ri(a,s,r)))return;i=u.y}}else{var c=e.nextSibling();if(c){var u,l=c.elementArea().offset();if(!l)return;if(!(u=Ri(n,r,l)))return;i=u.y}else{var d=n.height();if(!d)return;i+=d}}return{x:r.x,y:i}}(n,t);if(o){if(Ci.offset({left:o.x,top:o.y}),e&&Oi.canDropInto(e)?Ci.removeClass("scrivito_dnd_forbidden"):Ci.addClass("scrivito_dnd_forbidden"),Oi.isStructureWidget()?Ci.addClass("scrivito_dnd_structure"):Ci.removeClass("scrivito_dnd_structure"),e&&e.isEmptyWidgetList()){var a=r.height();a&&Ci.height(a)}Ci.show()}}}function Li(e){var t=e.contentZone;if(t)return t.getWidgetDropZone()}var Pi,Ai,Ni,Ii=(Pi=function(e,t,n){return function(e,t,n){Object(H.capture)((function(){if(Oi&&(ki=hi(n.toUiPosition(e),t,Oi.widget))){var r=ki.edgeName;"left"!==r&&"right"!==r&&Ti()}})).subscribeLoading(Di)}(e,t,n)},Ni=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Ai=e,Ni||(Ni=!0,fi((function(){Pi.apply(void 0,Ai),Ni=!1})))});function Yi(){Ci.hide(),Oi=void 0,Di.unsubscribe()}function Ri(e,t,n){var r=e.width(),i=e.height();if(r&&i)return{x:(t.x+r+n.x)/2,y:(t.y+i+n.y)/2}}function Fi(e){var t,n=e.dom_element().find("> .scrivito_editing_marker");n.attr("draggable","true"),n.on("dragstart",(function(n){Object(pi.a)(n.originalEvent);var r=e.dom_element();r.attr("data-scrivito-private-dropback","true"),r.get(0).style.opacity=.5,Ei(e.basicWidget(),r.get(0)),t=e.basicWidget().containingField()})),n.on("dragend",(function(){var n=e.dom_element();n.removeAttr("data-scrivito-private-dropback"),n.get(0).style.opacity=1,Si(),di(t)}))}var Hi=function(){function e(e,t){this._field=e,this._anchorWidget=t}return e.prototype.isEmptyWidgetList=function(){return!this._anchorWidget},e.prototype.edges=function(){return this._anchorWidget?["top","bottom"]:["top"]},e.prototype.isFromThisDropZone=function(e){return e.equals(this.anchorWidget)},e.prototype.canDrop=function(e){var t=_n.a.validClassNamesForField(this._field);return Object(v.contains)(t,e)},e.prototype.drop=function(e,t,n){if(this._isAllowedEdge(t)&&!this._isDropback(e)){var r=this._anchorWidget,i=this._isInnerObjMove(e);!function(e,t,n){var r=n.anchorWidget,i=n.edge,o=n.isInnerObjMove,a=e;o||(a=e.copy());e.remove(),r?"top"===i?a.insertBefore(r):a.insertAfter(r):t.update([a])}(e,this._field,{anchorWidget:r,edge:t,isInnerObjMove:i}),this._afterWidgetMove(e,t,i,n)}},Object.defineProperty(e.prototype,"field",{get:function(){return this._field},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"anchorWidget",{get:function(){return this._anchorWidget},enumerable:!0,configurable:!0}),e.prototype._isDropback=function(e){return!!this._anchorWidget&&this._anchorWidget.equals(e)},e.prototype._isAllowedEdge=function(e){return Object(v.contains)(this.edges(),e)},e.prototype._isInnerObjMove=function(e){var t=this._field.getContainer();return(t instanceof F.BasicObj?t.id():t.obj().id())===e.obj().id()},e.prototype._afterWidgetMove=function(e,t,n,r){},e}();var Wi=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)}}(),Bi=function(e){function t(t,n){var r=e.call(this,t.basicField(),n&&n.basicWidget())||this;return r._widgetlistElement=t,r._widgetElement=n,r}return Wi(t,e),Object.defineProperty(t.prototype,"widgetElement",{get:function(){return this._widgetElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgetlistElement",{get:function(){return this._widgetlistElement},enumerable:!0,configurable:!0}),t.prototype._afterWidgetMove=function(e,t,n,r){if(r&&n){var i=$(r);if(i.is(this._widgetlistElement.innerTag())){var o=this._widgetlistElement.dom_element();this._widgetElement&&(o=this._widgetElement.dom_element()),function(e,t,n){e.hide(),t.is("[data-scrivito-field-type=widgetlist]")?t.append(e):t["top"===n?"before":"after"](e);e.slideDown(100)}(i,o,t)}}di(this._field)},t}(Hi);function zi(e){e.isEmpty()?function(e){Vi(e),qi(e.dom_element(),e)}(e):(!function(e){var t=e.dom_element();e.dom_element().removeAttr("data-scrivito-private-dropzone"),delete t.get(0).scrivitoPrivateDropzone}(e),e.widgetElements().forEach((function(e){return Ui(e)})))}function Ui(e){qi(e.dom_element(),e.widgetField(),e),Vi(e)}function qi(e,t,n){e.get(0).scrivitoPrivateDropzone=function(){return new Bi(t,n)}}function Vi(e){e.dom_element().attr("data-scrivito-private-dropzone","true")}function $i(e){("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&(e||$("body")).addClass("touch_device")}var Gi=0,Ki={};function Ji(){Object(v.values)(Ki).forEach((function(e){return e()}))}$(window).on("focus",Ji);var Qi={subscribe:function(e,t){var n=""+e+Gi;return Ki[n]=t,Gi++,n},unsubscribe:function(e){delete Ki[e]},clearHandlers:function(){Gi=0,Ki={}},triggerFocus:Ji};function Zi(e){var t=scrivito.PreviewDevice.current,n=document.getElementById("scrivito_ui");"desktop"===t?n.classList.remove("scrivito_iframe_resize_bg"):n.classList.add("scrivito_iframe_resize_bg"),e.className="scrivito_iframe_"+t}function Xi(e){scrivito.Transition.wrap($(e),(function(){Zi(e),e.classList.add("scrivito_iframe_animate_resize")})).then((function(){return e.classList.remove("scrivito_iframe_animate_resize")}))}function eo(){xr.m.subscribeWrites((function(e){scrivito.WriteMonitor.startWrite(),scrivito.WriteMonitor.endWriteWhenDone(e)})),xr.m.subscribeWrites((function(e){return e.catch(scrivito.displayError)}))}var to=n(157);var no=function(){function e(e){this._id=e.id,this._title=e.title,this._icon=e.icon,this._tooltip=e.tooltip,this._present=e.present,this._disabled=e.disabled,this._update=e.update,this._execute=e.execute}return e.prototype.id=function(){return this._id},e.prototype.domId=function(){return this._id.replace(/\./g,"_")},e.prototype.title=function(){return"function"==typeof this._title?this._title():this._title},e.prototype.icon=function(){return this._icon},e.prototype.tooltip=function(){return"function"==typeof this._tooltip?Object(H.loadableWithDefault)("",this._tooltip):this._tooltip},e.prototype.isPresent=function(){var e=this._present;return void 0===e||("function"==typeof e?Object(H.loadableWithDefault)(!1,(function(){return!!e()})):e)},e.prototype.isEnabled=function(){return!this.isDisabled()},e.prototype.isDisabled=function(){var e=this._disabled;return"function"==typeof e?Object(H.loadableWithDefault)(!0,(function(){return!!e()})):!!e},e.prototype.reasonForBeingDisabled=function(){var e=this._disabled;return"function"==typeof e?Object(H.loadableWithDefault)(null,(function(){return e()||null})):null},e.prototype.update=function(){if("function"==typeof this._update)return this._update()},e.prototype.needsUpdate=function(){return"function"==typeof this._update},e.prototype.execute=function(){if(this.isPresent()&&this.isEnabled()){var e=this._execute();return e&&"function"==typeof e.catch&&e.catch(z.Q),!0}return!1},e.prototype.updateParams=function(e){e.title&&(this._title=e.title),e.icon&&(this._icon=e.icon),e.hasOwnProperty("present")&&(this._present=e.present),e.disabled&&(this._disabled=e.disabled),e.execute&&(this._execute=e.execute)},e}(),ro=scrivito.legacyCreateConnectedComponent({displayName:"ChooseObjClassDialog",statics:{open:function(e,t){var n=new z.e;return scrivito.renderReactComponent(React.createElement(ro,{getObjClasses:e,localePath:t,deferred:n}),$("#choose_obj_class_dialog")),n.promise}},propTypes:{getObjClasses:c.a.func.isRequired,localePath:c.a.string,deferred:c.a.object.isRequired},componentDidMount:function(){var e=this;scrivito.withDialogBehaviour($(Object(d.findDOMNode)(this).parentNode),this.props.deferred.promise,{escape:function(){return e._close()}}),this._updateHeight()},componentDidUpdate:function(){this._updateHeight()},render:function(){return React.createElement("div",{className:"choose_obj_class_dialog scrivito_modal_large scrivito_show"},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("h3",null,React.createElement("i",{className:"scrivito_icon scrivito_icon_clone"}),React.createElement("span",null,scrivito.t("choose_obj_class_dialog."+this.props.localePath+".title")))),React.createElement("div",{className:"scrivito_modal_body scrivito_auto_height"},React.createElement(io,{getObjClasses:this.props.getObjClasses,selectObjClass:this._selectObjClass})),React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("span",{className:"scrivito_button scrivito_cancel",onClick:this._onCloseClick},scrivito.t("cancel"))))},_onCloseClick:function(e){e.preventDefault(),e.stopPropagation(),this._close()},_close:function(){this._unmount(),this.props.deferred.resolve()},_selectObjClass:function(e){this._unmount(),this.props.deferred.resolve(e)},_unmount:function(){Object(d.unmountComponentAtNode)(Object(d.findDOMNode)(this).parentNode)},_updateHeight:function(){un($(Object(d.findDOMNode)(this)).find(".scrivito_modal_body"))}}),io=scrivito.legacyCreateConnectedComponent({displayName:"ChooseObjClassDialog.DialogBody",propTypes:{getObjClasses:c.a.func.isRequired,selectObjClass:c.a.func.isRequired},shouldRenderLoaderError:!0,render:function(){return React.createElement("div",null,React.createElement(oo,{name:"last_used",classes:this._getLastUsedObjClasses(),selectObjClass:this.props.selectObjClass}),React.createElement(oo,{name:"popular",classes:this._getPopularObjClasses(),selectObjClass:this.props.selectObjClass}),React.createElement(oo,{name:"all",classes:this._getAllObjClasses(),selectObjClass:this.props.selectObjClass}))},_scrivitoRenderWhileLoading:function(){return React.createElement(C,null)},_getLastUsedObjClasses:function(){var e=this,t=this._getClassNames();if(t.length>=15){var n=scrivito.ObjCreationHistory.recent(t).map((function(t){return g.a.findWhere(e.props.getObjClasses(),{name:t})}));return g.a.sortBy(n,(function(e){return e.title()}))}},_getPopularObjClasses:function(){var e=this,t=g.a.take(g.a.intersection(scrivito.popular_obj_classes,this._getClassNames()),5);if(t.length>0)return t.map((function(t){return g.a.findWhere(e.props.getObjClasses(),{name:t})}))},_getAllObjClasses:function(){return g.a.sortBy(this.props.getObjClasses(),(function(e){return e.title()}))},_getClassNames:function(){return g.a.pluck(this.props.getObjClasses(),"name")}}),oo=scrivito.legacyCreateConnectedComponent({displayName:"ChooseObjClassDialog.ObjClassList",propTypes:{name:c.a.string.isRequired,classes:c.a.array,selectObjClass:c.a.func.isRequired},render:function(){var e=this;return this.props.classes?React.createElement("div",{className:"section section_"+this.props.name},React.createElement("div",{className:"divider"},React.createElement("span",null,scrivito.t("choose_obj_class_dialog."+this.props.name))),this.props.classes.map((function(t){return React.createElement(ao,{key:t.name,objClass:t,selectObjClass:e.props.selectObjClass})}))):null}}),ao=scrivito.legacyCreateConnectedComponent({displayName:"ChooseObjClassDialog.ObjClassItem",propTypes:{objClass:c.a.object.isRequired,selectObjClass:c.a.func.isRequired},render:function(){var e;return e=this.props.objClass.useRailsThumbnailHtml()?React.createElement(so,{objClass:this.props.objClass}):React.createElement(co,{objClass:this.props.objClass}),React.createElement("div",{className:"obj_class_item",onClick:this._selectObjClass},e)},_selectObjClass:function(e){e.preventDefault(),e.stopPropagation(),this.props.selectObjClass(this.props.objClass)}}),so=scrivito.legacyCreateConnectedComponent({displayName:"ChooseObjClassDialog.ObjClassItemFromServer",shouldRenderLoaderError:!0,propTypes:{objClass:c.a.object.isRequired},render:function(){return React.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.objClass.railsThumbnailHtml()}})},_scrivitoRenderWhileLoading:function(){return React.createElement(C,null)}}),co=scrivito.legacyCreateConnectedComponent({displayName:"ChooseObjClassDialog.ObjClassItemFromClient",propTypes:{objClass:c.a.object.isRequired},render:function(){var e;e=this.props.objClass.thumbnail()?React.createElement("img",{src:this.props.objClass.thumbnail()}):React.createElement("i",{className:"scrivito_icon scrivito_icon_scrivito"});var t=this.props.objClass.title()||this.props.objClass.name;return React.createElement("div",null,React.createElement("div",{className:"thumbnail"},e),React.createElement("div",{className:"title"},t),React.createElement("div",{className:"description"},this.props.objClass.description()))}}),uo=ro;var lo=function(e){return new no({id:"scrivito.sdk.add_subpage",title:scrivito.t("commands.add_subpage.child_list.title"),icon:["&#xf022;","entity"],tooltip:scrivito.t("commands.add_subpage.child_list.tooltip",e.obj().description_for_editor()),execute:function(){return uo.open((function(){return ft.a.validPageClasses(e.path())}),"add_child_page").then((function(t){if(t){var n=t.createObjWithDefaults({_path:e.path()+"/"+Object(z.L)()});return scrivito.withSavingOverlay(n)}})).then((function(e){e&&scrivito.applicationWindow.navigateTo(e.id())}))}})};var po=function(e){return new no({id:"scrivito.sdk.copy_obj_from_clipboard",title:scrivito.t("commands.copy_obj_from_clipboard.child_list.title"),icon:["&#xf015;","entity"],disabled:function(){if(!scrivito.objClipboard.isPresent())return scrivito.t("commands.copy_obj_from_clipboard.child_list.obj_not_present");var t=scrivito.objClipboard.objClass;return e.isValidChildClass(t)?void 0:scrivito.t("commands.copy_obj_from_clipboard.child_list.paste_forbidden",e.allowedClasses().join(", "))},execute:function(){var t=Object(v.omit)(scrivito.objClipboard.serializedAttributes,"_permalink"),n=F.BasicObj.addChildWithSerializedAttributes(e.path(),t);return scrivito.withSavingOverlay(n.finishSaving().then((function(){return n.id()}))).then((function(e){return scrivito.applicationWindow.navigateTo(e)}))}})};var fo=function(e){return new no({id:"scrivito.sdk.move_obj_from_clipboard",title:scrivito.t("commands.move_obj_from_clipboard.child_list.title"),icon:["&#xf016;","entity"],disabled:function(){if(!scrivito.objClipboard.isPresent())return scrivito.t("commands.move_obj_from_clipboard.child_list.forbidden.obj_not_present");if(scrivito.objClipboard.workspaceId!==scrivito.editingContext.selectedWorkspaceId)return scrivito.t("commands.move_obj_from_clipboard.child_list.forbidden.invalid_workspace");var t=scrivito.objClipboard.objClass;return e.isValidChildClass(t)?void 0:scrivito.t("commands.move_obj_from_clipboard.child_list.forbidden.invalid_class",e.allowedClasses().join(", "))},execute:function(){var t;scrivito.withSavingOverlay((t=e.path(),Object(H.load)((function(){return F.BasicObj.get(scrivito.objClipboard.objId)})).then((function(e){return e.moveToAsync(t)}))).then((function(){return scrivito.objClipboard.clear(),scrivito.applicationWindow.reload()})))}})};var ho={open:function(e,t){return Object(H.load)((function(){return e.map((function(e){return{id:e.id(),description:t(e)}}))})).then((function(e){var t=$(scrivito.Template.render("obj_sorting_dialog",{children:e,icon:"&#xf03c;"}));$("#scrivito_editing").append(t),$("#scrivito_obj_sorting_sortable").sortable({placeholder:"scrivito_obj_sorting_placeholder"});var n=new z.e,r=function(){var e=g.a.map($("#scrivito_obj_sorting_sortable li"),(function(e){return $(e).attr("data-scrivito-private-obj-id")}));return n.resolve(e),scrivito.dialog.close_without_transition(t),!1},i=function(){return n.reject(),scrivito.dialog.close_without_transition(t),!1};return t.find(".scrivito_confirm").on("click",r),t.find(".scrivito_cancel").on("click",i),scrivito.dialog.open_and_adjust_without_transition(t),scrivito.withDialogBehaviour(t,n.promise,{enter:r,escape:i})}))}};var mo,_o=function(e){return new no({id:"scrivito.sdk.sort_items",title:scrivito.t("commands.sort_items.title"),icon:["&#xf03c;","entity"],tooltip:scrivito.t("commands.sort_items.tooltip",e.obj().description_for_editor()),disabled:function(){return e.hasChildOrder()?e.children().length<2?scrivito.t("commands.sort_items.too_less_children"):void 0:scrivito.t("commands.sort_items.auto_sort")},execute:function(){var t=e.children().map((function(e){return e.obj()}));return ho.open(t,(function(e){return e.description_for_editor()})).then((function(t){var n=e.dom_element();return t.forEach((function(t){var r=Object(v.find)(e.children(),(function(e){return e.obj().id()===t}));n.append(r.dom_element())})),e.saveOrder()}))}})};function vo(e){return yo(e).get()}function go(e,t){yo(e).set(t)}function yo(e){return pe.c.subState("contentStateId").subState(e)}function bo(){var e,t,n=(e=scrivito.editingContext.selectedWorkspaceId,t=mo,de.d.get("workspaces/"+e+"/changes",{from:t}).then((function(t){var n;(n=t)&&Object(v.isString)(n.current)&&function(e,t){mo=Object(v.isString)(t.to)?t.to:t.current,go(e,t.current),Object(v.isArray)(t.objs)&&t.objs.forEach((function(t){var n;n=Object(de.f)(t)?t._id:t._deleted,xr.m.get(e,n).notifyBackendState(t)}))}(e,t)}))).catch((function(){}));Object(z.J)(n,(function(){window.setTimeout(bo,2e3)}))}var wo=function(){function e(e){this.cmsElement=e}return e.prototype.list=function(){return this.cmsElement.menu()},e.prototype.add=function(e,t){var n=this.cmsElement.menu();n.push(new no(Object(v.extend)({},t,{id:e},ko(t)))),this.cmsElement.setMenu(n)},e.prototype.update=function(e,t){var n=this.cmsElement.menu();Object(v.find)(n,(function(n){if(n.id()===e){var r=Object(v.extend)({},t,t.icon?ko(t):{icon:void 0});return n.updateParams(r)}})),this.cmsElement.setMenu(n)},e.prototype.replace=function(e,t){var n=this.cmsElement.menu();Object(v.find)(n,(function(r,i){if(r.id()===e)return n[i]=new no(Object(v.extend)({},t,{id:e},ko(t))),n[i]})),this.cmsElement.setMenu(n)},e.prototype.remove=function(e){var t=this.cmsElement.menu(),n=Object(v.find)(t,(function(t){return t.id()===e}));n&&this.cmsElement.setMenu(Object(v.without)(t,n))},e}();function ko(e){return e.icon?{icon:[""+e.icon,"customerIcon"]}:{icon:["&#xf000;","entity"]}}function Oo(e,t){var n=Te();if(!n)return!1;var r=n.user_id,i=n.permissions||{};if(t&&t.isPublished())return"read"===e;if(function(e){return!e}(r))return!0;if("always"===i[e])return!0;if("never"===i[e])return!1;if("create"===e||"read_history"===e)return!0;if(!t)throw new z.g("Missing workspace");return t.isOwnedBy(r)}var Co=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)}}(),Mo=function(){function e(e,t){if(!e)throw new z.g("Missing workspace id");this._id=e,this._loadableData=new H.LoadableData({state:So(e),loader:g.a.partial(xo,e),throwNotLoaded:!0}),t&&this.assignAttributes(t)}return e.all=function(){var e=this,t=new H.LoadableData({state:Po(),loader:Do,throwNotLoaded:!0});return Lo(g.a.map(t.get(),(function(t){return e.get(t)})))},e.writableWorkspaces=function(){return e.all().filter((function(e){return e.isMutable()&&Oo("write",e)}))},e.createAsync=function(t,n){var r={workspace:{title:t,auto_update:!0,restore_revision:(void 0===n?{}:n).revisionId}};return de.d.post("workspaces",r).then((function(t){Po().set(null);var n=new e(t.id);return n.assignAttributes(t),n}))},e.get=function(t){var n=new e(t);return n.ensureAvailable(),n},Object.defineProperty(e,"published",{get:function(){return this.get("published")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"selected",{get:function(){try{return this.get(scrivito.editingContext.selectedWorkspaceId)}catch(e){if(e instanceof Ao)return this.published;throw e}},enumerable:!0,configurable:!0}),e.byModifiedObj=function(e){var t=this,n=e.id(),r=new H.LoadableData({state:jo("byModifiedObj").subState(n),loader:function(){return function(e){return de.d.get("workspaces/by_modified_obj",{id:e}).then((function(e){return e.results}))}(n)},throwNotLoaded:!0});return Lo(Object(H.mapAndLoadParallel)(r.get(),(function(e){return t.get(e)})))},e.storeWithAttributes=function(t,n){var r=new e(t);return r.assignAttributes(n),r},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),e.prototype.isPublished=function(){return"published"===this._id},e.prototype.isMutable=function(){return!this.isPublished()},Object.defineProperty(e.prototype,"title",{get:function(){return this.get("title")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleForEditor",{get:function(){return this.isPublished()?scrivito.t("workspace.title.published"):this.title||scrivito.t("workspace.title.blank")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"memberships",{get:function(){return g.a.omit(this.get("memberships"),"undefined")},enumerable:!0,configurable:!0}),e.prototype.isAutoUpdate=function(){return this.get("auto_update")},Object.defineProperty(e.prototype,"owners",{get:function(){return g.a.compact(Object(H.mapAndLoadParallel)(this.ownerIds,(function(e){try{return He.get(e)}catch(e){if(e instanceof Be)return;throw e}})))},enumerable:!0,configurable:!0}),e.prototype.isOwnedBy=function(e){return g.a.contains(this.ownerIds,e)},Object.defineProperty(e.prototype,"otherWritableWorkspaces",{get:function(){var t=this;return e.writableWorkspaces().filter((function(e){return e.id!==t._id}))},enumerable:!0,configurable:!0}),e.prototype.get=function(e){return this._workspaceData[e]},e.prototype.destroy=function(){var e=this;return de.d.delete("workspaces/"+this._id).then((function(){So(e._id).set(null),To().clear()}))},e.prototype.assignAttributes=function(e){this._loadableData.set(e)},e.prototype.update=function(e){var t=this;return de.d.put("workspaces/"+this._id,{workspace:e}).then((function(e){return t.assignAttributes(e)}))},e.prototype.rebase=function(){return de.d.put("workspaces/"+this._id+"/rebase")},Object.defineProperty(e.prototype,"ownerIds",{get:function(){var e=[];return g.a.each(this.memberships,(function(t,n){"owner"===t.role&&e.push(n)})),e},enumerable:!0,configurable:!0}),e.prototype.hasConflicts=function(){if(Object(F.currentWorkspaceId)()!==this.id)throw new z.g("#hasConflicts only works for current workspace.");return!F.BasicObj.where("_conflicts","equals",!0).iterator().next().done},e.prototype.ensureAvailable=function(){this._loadableData.get()},Object.defineProperty(e.prototype,"_workspaceData",{get:function(){return this._loadableData.get()},enumerable:!0,configurable:!0}),e}();function Do(e){return Eo(e.push).then((function(e){return g.a.pluck(e,"id")}))}function xo(e,t){return Eo(t.push).then((function(t){var n=g.a.findWhere(t,{id:e});if(!n)throw new Ao("workspace with id "+e+" not found.");return g.a.omit(n,"id")}))}function Eo(e){return de.d.get("workspaces").then((function(t){var n=t.results;return g.a.each(n,(function(t){var n=new H.LoadableData({state:So(t.id)});e((function(){return n.set(g.a.omit(t,"id"))}))})),n}))}function So(e){return pe.p.subState("workspace").subState(e)}function jo(e){return To().subState(e)}function To(){return pe.p.subState("workspaceQuery")}function Lo(e){return g.a.sortBy(e,(function(e){return e.isPublished()?"":e.titleForEditor.toLowerCase()}))}function Po(){return jo("workspaceList")}var Ao=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Co(t,e),t}(z.h);var No=function(){function e(e){var t=e.id,n=e.title;this._id=t,this._title=n}return e.prototype.id=function(){return this._id},e.prototype.title=function(){return this._title},e.prototype.updateParams=function(e){var t=e.title;t&&(this._title=t)},e}();function Io(e,t){var n=(void 0===t?{}:t).isCurrentPageCommand,r=function(){var t=F.BasicObj.getIncludingDeleted(e);if(!t)throw new z.g("Trying to add a subpage to an obj that doesn't exist.");return t},i="commands.add_subpage."+(n?"current_page":"child_list");return new no({id:"scrivito.sdk.add_subpage",title:scrivito.t(i+".title"),icon:["&#xf022;","entity"],tooltip:function(){return scrivito.t(i+".tooltip",yn(r()))},disabled:function(){return scrivito.editingContext.isMutable()?r().path()?void 0:scrivito.t(i+".no_path"):scrivito.t(i+".published_workspace")},execute:function(){var e=r().path();return uo.open((function(){return e?ft.a.validPageClasses(e):new z.g("Parent path does not exist")}),"add_child_page").then((function(t){if(t){var n=t.createObjWithDefaults({_path:e+"/"+Object(z.L)()});return scrivito.withSavingOverlay(n)}})).then((function(e){e&&scrivito.applicationWindow.navigateTo(e.id())}))}})}var Yo,Ro=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)}}(),Fo=function(){return(Fo=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 Ho(e){return q((function(t){return u.createElement(Wo,Fo({},e,t))}))}var Wo=S(((Yo=function(e){function t(t){var n=e.call(this,t)||this;return n.keepRestriction=n.keepRestriction.bind(n),n.changeRestriction=n.changeRestriction.bind(n),n}return Ro(t,e),t.prototype.render=function(){var e=this.props,t=e.target,n=e.source;return u.createElement("div",{className:"obj_restriction_dialog scrivito_modal_prompt scrivito_center_dialog scrivito_red scrivito_show"},u.createElement("div",{className:"scrivito_modal_header"},u.createElement("i",{className:"scrivito_icon"},""),u.createElement("h3",null,this.getTitle())),u.createElement("div",{className:"scrivito_modal_body"},u.createElement("p",null,this.getDescription())),u.createElement("div",{className:"scrivito_modal_footer"},u.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this.props.cancelDialog},scrivito.t("cancel")),u.createElement("a",{className:"scrivito_button scrivito_left scrivito_change_restriction",onClick:this.changeRestriction},Bo(t.isRestricted()),t.isRestricted()?scrivito.t("obj_restriction_dialog.restrict_page"):scrivito.t("obj_restriction_dialog.make_page_public")),u.createElement("a",{className:"scrivito_button scrivito_left scrivito_keep_restriction",onClick:this.keepRestriction},Bo(!!n.restriction()),scrivito.t("obj_restriction_dialog.keep_restriction_"+n.restriction()))))},t.prototype.getTitle=function(){return scrivito.t("obj_restriction_dialog.title",scrivito.t("obj_restriction_dialog.restriction."+this.props.source.restriction()),vn(this.props.target),scrivito.t("obj_restriction_dialog.restriction."+this.props.target.restriction()))},t.prototype.getDescription=function(){return this.props.target.isRestricted()?scrivito.t("obj_restriction_dialog.description_for_restricting"):scrivito.t("obj_restriction_dialog.description_for_unrestricting")},t.prototype.keepRestriction=function(){this.props.dialogDone({isRestricted:this.props.source.isRestricted()})},t.prototype.changeRestriction=function(){this.props.dialogDone({isRestricted:this.props.target.isRestricted()})},t}(u.Component)).displayName="ObjRestrictionDialog",Yo)),Bo=function(e){return e?u.createElement("i",{className:"scrivito_icon"},""):u.createElement("i",{className:"scrivito_icon"},"")};function zo(e,t){var n=(void 0===t?{}:t).isCurrentPageCommand,r=function(){return F.BasicObj.get(e)},i="commands.copy_obj_from_clipboard."+(n?"current_page":"child_list");return new no({id:"scrivito.sdk.copy_obj_from_clipboard",title:scrivito.t(i+".title"),tooltip:function(){var e=r();if(!e)return"";var t=yn(qo()),n=yn(e);return scrivito.t(i+".tooltip",t,n)},icon:["&#xf015;","entity"],disabled:function(){var e=r();if(!e)return scrivito.t(i+".obj_deleted");if(!scrivito.editingContext.isMutable())return scrivito.t(i+".published_workspace");if(!scrivito.objClipboard.isPresent())return scrivito.t(i+".obj_not_present");var t=e.path();if(!t)return scrivito.t(i+".no_path");var n=scrivito.objClipboard.objClass,o=Object(v.pluck)(ft.a.validPageClasses(t)||[],"name");return Object(v.contains)(o,n)?void 0:scrivito.t(i+".paste_forbidden",o.join(", "))},execute:function(){var e=r(),t=qo();if(e){var n=e.path();if(t&&n){if(Object(v.isEqual)(e.restriction(),t.restriction()))return scrivito.applicationWindow.navigateTo(Uo(n).id());Ho({source:t,target:e}).then((function(e){if(!e.dialogCancelled){var t=Uo(n);e.value.isRestricted?t.restrict():t.unrestrict(),scrivito.applicationWindow.navigateTo(t.id())}}))}}}})}function Uo(e){var t=Object(v.omit)(scrivito.objClipboard.serializedAttributes,"_permalink");return F.BasicObj.addChildWithSerializedAttributes(e,t)}function qo(){return F.BasicObj.getIncludingDeletedInWorkspace(scrivito.objClipboard.workspaceId,scrivito.objClipboard.objId)}var Vo=function(){return new no({id:"scrivito.sdk.create_page",title:scrivito.t("commands.create_page.title"),icon:["&#xf022;","entity"],disabled:function(){if(!scrivito.editingContext.isMutable())return scrivito.t("commands.create_page.published_workspace")},execute:function(){uo.open((function(){return ft.a.validPageClasses()}),"create_page").then((function(e){if(e)return scrivito.withSavingOverlay(e.createObjWithDefaults({})).then((function(e){return scrivito.applicationWindow.navigateTo(e.id())}))}))}})};function $o(e){return e?scrivito.applicationWindow.navigateTo(e.id()):scrivito.applicationWindow.navigateToRoot()}var Go=function(e,t){return void 0===t&&(t="page"),new no({id:"scrivito.sdk.delete_obj",title:scrivito.t("commands.delete_obj.title",scrivito.t("models."+t+".name")),icon:["&#xf018;","entity"],present:function(){return!F.BasicObj.getIncludingDeleted(e).isDeleted()},disabled:function(){return scrivito.editingContext.isMutable()?F.BasicObj.get(e).hasChildren()?scrivito.t("commands.delete_obj.has_children"):void 0:scrivito.t("commands.delete_obj.published_workspace")},execute:function(){Bn.open(e).then((function(t){t&&scrivito.withSavingOverlay(function(e){return Object(H.load)((function(){return F.BasicObj.get(e)})).then((function(e){return Object(H.load)((function(){return e.parent()})).then((function(t){return e.destroy(),e.finishSaving().then((function(){return t}))}))}))}(e).then($o))}))}})};var Ko=function(e){return new no({id:"scrivito.sdk.duplicate_obj",title:scrivito.t("commands.duplicate_obj.title"),icon:["&#xf015;","entity"],disabled:function(){return scrivito.editingContext.isMutable()?F.BasicObj.getIncludingDeleted(e).hasChildren()?scrivito.t("commands.duplicate_obj.has_children"):void 0:scrivito.t("commands.duplicate_obj.published_workspace")},execute:function(){scrivito.withSavingOverlay(Object(H.load)((function(){return F.BasicObj.getIncludingDeleted(e)})).then((function(e){return e.copyAsync()}))).then((function(e){return scrivito.applicationWindow.navigateTo(e.id())}))}})};var Jo=function(e,t){return void 0===t&&(t="commands.mark_resolved_obj"),new no({id:"scrivito.sdk.mark_resolved_obj",title:scrivito.t(t+".title"),icon:["&#xf124;","entity"],present:function(){return F.BasicObj.getIncludingDeleted(e).hasConflicts()},execute:function(){(function(e){return scrivito.confirmation_dialog({title:scrivito.t("commands.mark_resolved_obj.dialog.title"),description:scrivito.t(e+".dialog.description"),icon:"&#xf124;",color:"red",confirm_button_text:scrivito.t("commands.mark_resolved_obj.dialog.confirm"),confirm_button_color:"red"})})(t).then((function(){return scrivito.withSavingOverlay(function(e){return Object(H.load)((function(){return F.BasicObj.get(e)})).then((function(e){return e.markResolvedAsync()}))}(e).then(scrivito.applicationWindow.reload))}))}})};function Qo(e,t){var n=(void 0===t?{}:t).isCurrentPageCommand,r=function(){return F.BasicObj.getIncludingDeleted(e)},i="commands.move_obj_from_clipboard."+(n?"current_page":"child_list");return new no({id:"scrivito.sdk.move_obj_from_clipboard",title:scrivito.t(i+".title"),icon:["&#xf016;","entity"],tooltip:function(){var e=yn(Zo()),t=yn(r());return scrivito.t(i+".tooltip",e,t)},disabled:function(){if(!scrivito.editingContext.isMutable())return scrivito.t(i+".forbidden.invalid_workspace");if(!scrivito.objClipboard.isPresent())return scrivito.t(i+".forbidden.obj_not_present");if(scrivito.objClipboard.workspaceId!==scrivito.editingContext.selectedWorkspaceId)return scrivito.t(i+".forbidden.invalid_workspace");var t=r();if(!t)return scrivito.t(i+".forbidden.obj_deleted");var n=t.path();return n?e===scrivito.objClipboard.objId?scrivito.t(i+".forbidden.obj_identity"):function(e,t){var n=scrivito.objClipboard.objClass,r=ft.a.validPageClasses(e)||[],i=Object(v.pluck)(r,"name");if(!Object(v.contains)(i,n))return scrivito.t(t+".forbidden.invalid_class",i.join(", "))}(n,i):scrivito.t(i+".forbidden.no_path")},execute:function(){var e=r(),t=Zo();if(e){var n=e.path();if(t&&n){if(Object(v.isEqual)(e.restriction(),t.restriction()))return Xo(t,n);Ho({source:t,target:e}).then((function(e){e.dialogCancelled||(e.value.isRestricted?t.restrict():t.unrestrict(),Xo(t,n))}))}}}})}function Zo(){return F.BasicObj.getIncludingDeleted(scrivito.objClipboard.objId)}function Xo(e,t){e.moveTo(t),scrivito.objClipboard.clear()}function ea(e){var t=ft.a.find(e)||_n.a.find(e);return!!t&&t.hasDetailsView()}var ta=function(e){var t;if(e instanceof F.BasicObj)t=ft.a;else{if(!(e instanceof F.BasicWidget))throw new z.g("Expect an instance of BasicObj or BasicWidget");t=_n.a}return t.find(e.objClass())};function na(e){return e instanceof F.BasicObj?function(e){var t=[],n=ft.a.find(e.objClass());if(n){var r=tn(e);t.push.apply(t,[ra(n.generalProperties(),r)].concat(n.propertiesGroups().map(aa),[ia()])),r&&t.push({title:scrivito.t("default_inspector_description_for_obj.group_binary_metadata"),items:[{id:"system.binaryMetadata"}]})}else t.push(ra([],!1)),t.push(ia());return t.push(function(){return{title:scrivito.t("default_inspector_description_for_obj.group_system"),items:[{id:"system.id"},{id:"system.path"},{id:"system.objClass"}]}}()),{groups:t}}(e):oa(e)}function ra(e,t){var n=e.map(sa);return t&&-1===e.indexOf("blob")&&n.unshift(sa("blob")),-1===e.indexOf("tags")&&n.push(sa("tags")),{title:scrivito.t("default_inspector_description_for_obj.group_general"),items:n.concat([{id:"system.permalinkAndRestriction"},{id:"system.history"}])}}function ia(){return{title:scrivito.t("default_inspector_description_for_obj.group_backlinks"),items:[{id:"system.backlinks"}]}}function oa(e){var t=_n.a.find(e.objClass()),n=[];if(t){var r=function(e){var t=e.generalProperties();if(t.length>0){var n=t.map(sa);return{title:scrivito.t("default_inspector_description_for_obj.group_general"),items:n}}}(t);r&&n.push(r);var i=t.propertiesGroups();i.length>0&&n.push.apply(n,i.map(aa))}return{groups:n}}function aa(e){return function(e){return!!e.component}(e)?e:{title:e.title,items:e.properties.map(sa)}}function sa(e){return{id:"attribute."+e,attribute:e}}function ca(e){return oa(e).groups.length>0}function ua(e){return function(e){var t=ta(e);if(t)return t.useRailsDetailsTemplate();return Object(re.b)()}(e)?function(e){return{iframeSrc:e instanceof F.BasicObj?scrivito.detailsPathForId(e.id()):scrivito.detailsPathForWidget(e)}}(e):na(e)}var la=n(107),da=n.n(la);var pa=function(e){return e.replace(/[_|\/|\s]+/g,"-").replace(/[^a-z0-9\-]+/gi,"").replace(/[\-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()};function fa(e,t,n){var r=e.contentWindow;if(yr(r)){var i=wr(r),o=i.document();if(o){var a=o.appAdapter();if(a)return void a.showCustomComponent(t,n||{})}i.on("document",(function(e){var r=e.appAdapter();if(!r)throw new z.g("Tried to show a custom component before add adapter registered");r.showCustomComponent(t,n||{})}))}}function ha(e){if(!e)return null;var t=function(e){if(e&&e.contentWindow){var t=wr(e.contentWindow).document();if(t)return t.appAdapter()}}(e);return t?t.getCustomComponentDimensions():null}function ma(e,t){void 0===t&&(t=!1);var n=scrivito.editingContext,r=!!t&&n.isMutable(),i=n.selectedWorkspaceId,o=n.isEditingMode(),a=n.isDiffMode();return r&&(o=!0,a=!1),function(e,t){var n={_scrivito_workspace_id:t.workspaceId};t.inPlaceEditingActive&&(n._scrivito_editing="true");t.comparisonActive&&(n._scrivito_comparison="true");return new St(e).removeSearch(["_scrivito_workspace_id","_scrivito_editing","_scrivito_comparison"]).addSearch(n)}(e,{workspaceId:i,inPlaceEditingActive:o,comparisonActive:a}).removeSearch("_scrivito_display_mode").toString()}var _a,va=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)}}(),ga=S(((_a=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isIframeLoaded:!1},n.onIframeLoad=n.onIframeLoad.bind(n),n}return va(t,e),t.prototype.componentDidMount=function(){this.props.isActive&&this.mountCustomComponent()},t.prototype.componentDidUpdate=function(e){!e.isActive&&this.props.isActive&&this.mountCustomComponent(),this.isCustomComponentMounted&&!e.content.equals(this.props.content)&&this.showCustomComponent()},t.prototype.render=function(){var e=this;return u.createElement("div",{className:"group"},u.createElement("iframe",{name:this.props.name,src:this.iframeSrcUrl(),ref:function(t){return e.iframe=t},style:{height:this.getHeight()},onLoad:this.onIframeLoad}))},t.prototype.mountCustomComponent=function(){this.isCustomComponentMounted||(this.forceEditingMode(),this.showCustomComponent(),this.isCustomComponentMounted=!0)},t.prototype.forceEditingMode=function(){this.iframe&&"published"!==Object(F.currentWorkspaceId)()&&wr(this.iframe.contentWindow).forceEditingMode()},t.prototype.showCustomComponent=function(){this.iframe&&fa(this.iframe,this.props.componentId,function(e){if(e instanceof F.BasicObj)return{objId:e.id()};return{objId:e.obj().id(),widgetId:e.id()}}(this.props.content))},t.prototype.iframeSrcUrl=function(){return ma("/_scrivito_extensions.html",!0)},t.prototype.getHeight=function(){var e=ha(this.iframe);return e?e.height+"px":"100%"},t.prototype.onIframeLoad=function(){this.setState({isIframeLoaded:!0})},t}(u.Component)).displayName="PropertiesComponent.Inspector.CustomGroup",_a));var ya=n(260),ba=n.n(ya),wa=n(115),ka=!1;function Oa(){if(!ka){var e=$('meta[name="scrivito-asset-url-base"]').attr("content");Object(wa.a)(e||void 0),ka=!0}return Object(wa.b)()}var Ca,Ma={create:function(e,t){var n=new Image,r=new z.e;return n.crossOrigin="Anonymous",n.src=e,n.onload=function(){var e=new ba.a({image:n,container:t,renderer:"canvas",assetsUrl:Oa()+"/imgly_sdk",versionCheck:!1,ui:{enabled:!0}});e.ui.selectOperations({except:"stickers"}),e.run(),r.resolve(e)},r.promise}},Da=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)}}(),xa=function(){return(xa=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)},Ea=function(e){function t(t){var n=e.call(this,t)||this;return n._deferred=new z.e,n._handleOk=n._handleOk.bind(n),n._handleCancel=n._handleCancel.bind(n),n._handleOkClick=n._handleOkClick.bind(n),n._handleCancelClick=n._handleCancelClick.bind(n),n}return Da(t,e),t.open=function(e){return Ca=document.getElementById("image_editor_dialog"),Object(d.render)(l.a.createElement(t,xa({},e)),Ca).getPromise()},t.prototype.getPromise=function(){return this._deferred.promise},t.prototype.componentDidMount=function(){scrivito.withDialogBehaviour($(Ca),this.getPromise(),{enter:this._handleOk,escape:this._handleCancel}),this._setupImglyContainer()},t.prototype.render=function(){var e=this;return l.a.createElement("div",{className:"scrivito_modal_large scrivito_dark scrivito_show image_editor_dialog"},l.a.createElement("div",{className:"scrivito_modal_header"},l.a.createElement("h3",{className:"scrivito_title"},scrivito.t("image_editor_dialog.dialog_header.title"))),l.a.createElement("div",{className:"scrivito_modal_body",ref:function(t){return e.modalBody=t}},l.a.createElement(C,null)),l.a.createElement("div",{className:"scrivito_modal_footer"},l.a.createElement("a",{href:"#",className:"scrivito_button scrivito_cancel",onClick:this._handleCancelClick},scrivito.t("cancel")),l.a.createElement("a",{href:"#",className:"scrivito_button scrivito_green scrivito_ok",onClick:this._handleOkClick},scrivito.t("save"))))},t.prototype._handleOkClick=function(e){e.preventDefault(),e.stopPropagation(),this._handleOk()},t.prototype._handleOk=function(){var e=this;this._imgly&&this._imgly.render("blob","image/jpeg").then((function(t){e._deferred.resolve({blob:t,filename:e.props.binary.filename()})})),this._unmount()},t.prototype._handleCancelClick=function(e){e.preventDefault(),e.stopPropagation(),this._handleCancel()},t.prototype._handleCancel=function(){this._deferred.resolve(),this._unmount()},t.prototype._unmount=function(){Object(d.unmountComponentAtNode)(Ca)},t.prototype._setupImglyContainer=function(){var e=this;Ma.create(this.props.binary.url(),this.modalBody).then((function(t){e._imgly=t}))},t}(l.a.Component);Ea.displayName="ImageEditorDialog";var Sa,ja=S(Ea),Ta=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)}}(),La=function(){return(La=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)},Pa=function(e){function t(t){var n=e.call(this,t)||this;return n._deferred=new z.e,n._handleOk=n._handleOk.bind(n),n._handleCancel=n._handleCancel.bind(n),n._handleOkClick=n._handleOkClick.bind(n),n._handleCancelClick=n._handleCancelClick.bind(n),n}return Ta(t,e),t.open=function(e){return Sa=document.getElementById("prompt_dialog"),Object(d.render)(l.a.createElement(t,La({},e)),Sa).getPromise()},t.prototype.getPromise=function(){return this._deferred.promise},t.prototype.componentDidMount=function(){scrivito.withDialogBehaviour($(Sa),this.getPromise(),{enter:this._handleOk,escape:this._handleCancel})},t.prototype.render=function(){var e,t=this;this.props.description&&(e=l.a.createElement("p",null,this.props.description));return l.a.createElement("div",{className:"scrivito_prompt_dialog scrivito_center_dialog scrivito_modal_prompt scrivito_green scrivito_show"},l.a.createElement("div",{className:"scrivito_modal_header"},l.a.createElement("i",{className:"scrivito_icon",dangerouslySetInnerHTML:{__html:this.props.icon}}),l.a.createElement("h3",{className:"scrivito_title"},Object(v.result)(this.props,"title")),e),l.a.createElement("div",{className:"scrivito_modal_body"},l.a.createElement("input",{type:"text",autoFocus:!0,defaultValue:this.props.value,placeholder:this.props.placeholder,ref:function(e){return t._input=e}})),l.a.createElement("div",{className:"scrivito_modal_footer"},l.a.createElement("a",{href:"#",className:"scrivito_button scrivito_cancel",onClick:this._handleCancelClick},scrivito.t("cancel")),l.a.createElement("a",{href:"#",className:"scrivito_button scrivito_green scrivito_ok",onClick:this._handleOkClick},this.props.okButtonText)))},t.prototype._handleOkClick=function(e){e.preventDefault(),e.stopPropagation(),this._handleOk()},t.prototype._handleOk=function(){this._deferred.resolve(this._input.value),this._unmount()},t.prototype._handleCancelClick=function(e){e.preventDefault(),e.stopPropagation(),this._handleCancel()},t.prototype._handleCancel=function(){this._deferred.resolve(null),this._unmount()},t.prototype._unmount=function(){Object(d.unmountComponentAtNode)(Sa)},t}(l.a.Component);Pa.displayName="PromptDialog";var Aa=S(Pa),Na=n(179);function Ia(e,t,n){var r=n.shouldRenderTitle;return scrivito.legacyCreateConnectedComponent(Object(v.extend)(n,{displayName:"PropertiesComponent."+e,propTypes:t,statics:{shouldRenderTitle:function(){return!1!==r}}}))}function Ya(e,t){return Ia(Object(z.q)(e)+"ItemComponent",{content:c.a.oneOfType([c.a.instanceOf(F.BasicObj),c.a.instanceOf(F.BasicWidget)]).isRequired,readOnly:c.a.bool},t)}function Ra(e,t){return Ia(Object(z.q)(e)+"AttributeComponent",{field:c.a.instanceOf(F.BasicField).isRequired,attribute:c.a.instanceOf(Na.a),readOnly:c.a.bool},t)}var Fa=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)}}(),Ha=Ra("binary",{render:function(){var e,t,n,r=this.props.field.get();return r?(this.props.readOnly||(function(e){var t=e.raw().contentType();return"image/jpeg"===t||"image/png"===t}(r)&&(t=this.openImageEditorDialog),e=this.uploadFile,n=this.openRenameDialog),u.createElement(Wa,{binary:r,isUploading:this.isUploading(),onEdit:t,uploadFile:e,onRename:n})):u.createElement(Va,null)},openImageEditorDialog:function(){var e=this;ja.open({binary:this.props.field.get().raw()}).then((function(t){t&&t.blob&&e.uploadBinary(F.Binary.upload(t.blob,{filename:t.filename}))}))},openRenameDialog:function(e){var t=this,n=this.props.field.get(),r=n.filename();this.askForNewFilename(r,e).then((function(e){null!==e&&e!==r&&(null===e.match(/^[\w.-]+$/)?t.openRenameDialog(scrivito.t("binary_attribute_component.rename_dialog.invalid_filename",e)):t.uploadBinary(n.copy({filename:e})))}))},askForNewFilename:function(e,t){return Aa.open({title:scrivito.t("binary_attribute_component.rename_dialog.title",e),description:t||scrivito.t("binary_attribute_component.rename_dialog.description"),value:e,icon:"&#xf043;",okButtonText:scrivito.t("binary_attribute_component.rename_dialog.ok")})},uploadFile:function(e){var t=F.Binary.upload(e);this.uploadBinary(t)},uploadBinary:function(e){var t=this;this.setState({isUploading:!0}),e.intoId(this.props.field.obj().id()).then((function(e){t.props.field.update(e),t.setState({isUploading:!1})}))},isUploading:function(){return this.state&&this.state.isUploading}}),Wa=function(e){function t(t){var n=e.call(this,t)||this;return n.onDragLeave=n.onDragLeave.bind(n),n.onDragOver=n.onDragOver.bind(n),n.onDrop=n.onDrop.bind(n),n.state={isDraggedOver:!1},n}return Fa(t,e),t.prototype.render=function(){var e=u.createElement(Ba,{binary:this.props.binary,isUploading:this.props.isUploading,onEdit:this.props.onEdit,onRename:this.props.onRename,uploadFile:this.props.uploadFile});if(!this.props.uploadFile)return e;var t=["scrivito_content_preview_item"];return this.state.isDraggedOver&&t.push("scrivito_file_dragover"),u.createElement(u.Fragment,null,u.createElement("div",{className:t.join(" "),onDrop:this.onDrop,onDragOver:this.onDragOver,onDragEnter:this.onDragOver,onDragLeave:this.onDragLeave},e),u.createElement("div",{className:"scrivito_notice scrivito_transparent"},u.createElement("div",{className:"scrivito_notice_body"},scrivito.t("binary_attribute_component.drop_hint"))))},t.prototype.onDrop=function(e){this.declareEventHandled(e),this.setState({isDraggedOver:!1});var t=e.dataTransfer;if(t){var n=t.files;1===n.length&&this.props.uploadFile(n[0])}},t.prototype.onDragOver=function(e){this.declareEventHandled(e),this.setState({isDraggedOver:!0})},t.prototype.onDragLeave=function(e){this.declareEventHandled(e),this.setState({isDraggedOver:!1})},t.prototype.declareEventHandled=function(e){e.preventDefault(),e.stopPropagation()},t}(u.Component);function Ba(e){return u.createElement(u.Fragment,null,u.createElement("div",{className:"scrivito_content_preview"},u.createElement(za,{binary:e.binary,isUploading:e.isUploading,onEdit:e.onEdit,uploadFile:e.uploadFile})),u.createElement("div",{className:"scrivito_content_meta"},u.createElement(Ua,{binary:e.binary,isUploading:e.isUploading,onRename:e.onRename})))}function za(e){return e.isUploading?u.createElement(C,null):u.createElement(u.Fragment,null,u.createElement($a,{binary:e.binary}),u.createElement(Ga,{binary:e.binary,onEdit:e.onEdit,uploadFile:e.uploadFile}))}var Ua=S((function(e){return e.isUploading?u.createElement(C,null):u.createElement(u.Fragment,null,u.createElement(qa,{binary:e.binary,onRename:e.onRename}),u.createElement("span",{className:"scrivito_content_size"},e.binary&&pn(e.binary.raw().contentLength())))})),qa=S((function(e){var t,n,r,i="scrivito_content_name",o=e.onRename;return o&&(i+=" scrivito_content_name_editable",t=function(){return o()},n=scrivito.t("binary_attribute_component.rename"),r=u.createElement("i",{className:"scrivito_icon scrivito_icon_edit"})),u.createElement("span",{className:i,onClick:t,title:n},u.createElement("span",null,e.binary&&e.binary.filename()),r)}));function Va(){return u.createElement("div",{className:"scrivito_notice scrivito_blue"},u.createElement("div",{className:"scrivito_notice_body"},scrivito.t("binary_attribute_component.empty")))}var $a=S((function(e){return e.binary.isImage()?u.createElement("img",{src:e.binary.url()}):u.createElement("span",{className:"scrivito_icon scrivito_icon_generic"})})),Ga=S((function(e){return u.createElement("span",{className:"scrivito_content_preview_buttons"},u.createElement(Ka,{uploadFile:e.uploadFile}),u.createElement(Ja,{onEdit:e.onEdit}),u.createElement(Qa,{binary:e.binary}))})),Ka=S(function(e){function t(t){var n=e.call(this,t)||this;return n.handleInputChange=n.handleInputChange.bind(n),n}return Fa(t,e),t.prototype.render=function(){return this.props.uploadFile?u.createElement("label",{className:"upload_button",title:scrivito.t("binary_attribute_component.upload")},u.createElement("input",{type:"file",onChange:this.handleInputChange}),u.createElement("i",{className:"scrivito_icon scrivito_icon_upload"})):null},t.prototype.handleInputChange=function(e){var t=e.target.files;t&&1===t.length&&this.props.uploadFile(t[0])},t}(u.Component));function Ja(e){var t=e.onEdit;return t?u.createElement("span",{className:"edit_button",title:scrivito.t("binary_attribute_component.edit"),onClick:function(){return t()}},u.createElement("i",{className:"scrivito_icon scrivito_icon_edit_image"})):null}var Qa=S((function(e){return u.createElement("a",{href:e.binary.url(),target:"_blank",title:scrivito.t("binary_attribute_component.download")},u.createElement("i",{className:"scrivito_icon scrivito_icon_download"}))}));var Za=n(68),Xa=n.n(Za);function es(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var ts,ns,rs=(void 0===ts&&(ts=0),function(){return++ts}),is={},os={},as=["touchstart","touchmove"];function ss(e,t){var n=null;return-1!==as.indexOf(t)&&ns&&(n={passive:!e.props.preventDefault}),n}var cs=function(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(n){var r,o;function a(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(d.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!os[r._uid]){void 0===ns&&(ns=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),os[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),is[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(es(e,t,n))return!0;e=e.parentNode}return e}(e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,is[r._uid],ss(r,e))}))}},r.disableOnClickOutside=function(){delete os[r._uid];var e=is[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,ss(r,t))})),delete is[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=rs(),r}o=n,(r=a).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var s=a.prototype;return s.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},s.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(u.createElement)(e,n)},a}(u.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r},us=n(6),ls=n.n(us),ds=n(184),ps="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},fs=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},hs=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ms=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},_s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};function vs(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=n.year()<=a),r&&s&&(s=r.year()>=a),s&&i.push(a)}return i}var gs=function(e){function t(n){fs(this,t);var r=_s(this,e.call(this,n));r.renderOptions=function(){var e=r.props.year,t=r.state.yearsList.map((function(t){return l.a.createElement("div",{className:e===t?"react-datepicker__year-option --selected_year":"react-datepicker__year-option",key:t,ref:t,onClick:r.onChange.bind(r,t)},e===t?l.a.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)})),n=r.props.minDate?r.props.minDate.year():null,i=r.props.maxDate?r.props.maxDate.year():null;return i&&r.state.yearsList.find((function(e){return e===i}))||t.unshift(l.a.createElement("div",{className:"react-datepicker__year-option",ref:"upcoming",key:"upcoming",onClick:r.incrementYears},l.a.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find((function(e){return e===n}))||t.push(l.a.createElement("div",{className:"react-datepicker__year-option",ref:"previous",key:"previous",onClick:r.decrementYears},l.a.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},r.onChange=function(e){r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(e){var t=r.state.yearsList.map((function(t){return t+e}));r.setState({yearsList:t})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=n.yearDropdownItemNumber,o=n.scrollableYearDropdown,a=i||(o?10:5);return r.state={yearsList:vs(r.props.year,a,r.props.minDate,r.props.maxDate)},r}return ms(t,e),t.prototype.render=function(){var e=Xa()({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return l.a.createElement("div",{className:e},this.renderOptions())},t}(l.a.Component);gs.propTypes={minDate:c.a.object,maxDate:c.a.object,onCancel:c.a.func.isRequired,onChange:c.a.func.isRequired,scrollableYearDropdown:c.a.bool,year:c.a.number.isRequired,yearDropdownItemNumber:c.a.number};var ys={1:"mon",2:"tue",3:"wed",4:"thu",5:"fri",6:"sat",7:"sun"};function bs(e,t,n){return e.set(t,n)}function ws(e,t,n){return e.add(t,n)}function ks(e,t,n){return e.subtract(t,n)}function Os(e,t){return e.get(t)}function Cs(e,t){return e.startOf(t)}function Ms(e){return ls()(e)}function Ds(e){return null==e?Ms():(t=e,ls()().utc().utcOffset(t));var t}function xs(e){return e.clone()}function Es(e,t){var n=t.dateFormat,r=t.locale,i=ls()(e,n,r||ls.a.locale(),!0);return i.isValid()?i:null}function Ss(e){return ls.a.isMoment(e)}function js(e,t){return e.format(t)}function Ts(e,t){var n=t.hour,r=t.minute,i=t.second;return e.set({hour:n,minute:r,second:i}),e}function Ls(e,t){return bs(e,"month",t)}function Ps(e,t){return bs(e,"year",t)}function As(e){return Os(e,"second")}function Ns(e){return Os(e,"minute")}function Is(e){return Os(e,"hour")}function Ys(e){return Os(e,"day")}function Rs(e){return Os(e,"week")}function Fs(e){return Os(e,"month")}function Hs(e){return Os(e,"year")}function Ws(e){return Os(e,"date")}function Bs(e){return ys[e.isoWeekday()]}function zs(e){return Cs(e,"day")}function Us(e){return Cs(e,"week")}function qs(e){return Cs(e,"month")}function Vs(e,t){return ws(e,t,"minutes")}function $s(e,t){return ws(e,t,"days")}function Gs(e,t){return ws(e,t,"weeks")}function Ks(e,t){return ws(e,t,"months")}function Js(e,t){return ks(e,t,"months")}function Qs(e,t){return e.isBefore(t)}function Zs(e,t){return e.isAfter(t)}function Xs(e,t){return e&&t?e.isSame(t,"year"):!e&&!t}function ec(e,t){return e&&t?e.isSame(t,"month"):!e&&!t}function tc(e,t){return e&&t?e.isSame(t,"day"):!e&&!t}function nc(e,t,n){var r=t.clone().startOf("day").subtract(1,"seconds"),i=n.clone().startOf("day").add(1,"seconds");return e.clone().startOf("day").isBetween(r,i)}function rc(e,t){return e.clone().locale(t||ls.a.locale())}function ic(e){return e.localeData()}function oc(e,t){return e.weekdaysMin(t)}function ac(e,t){return e.weekdaysShort(t)}function sc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return n&&e.isBefore(n,"day")||r&&e.isAfter(r,"day")||i&&i.some((function(t){return tc(e,t)}))||o&&!o.some((function(t){return tc(e,t)}))||a&&!a(e.clone())||!1}function cc(e,t){for(var n=t.length,r=0;r<n;r++)if(t[r].get("hours")===e.get("hours")&&t[r].get("minutes")===e.get("minutes"))return!0;return!1}function uc(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=ls()().hours(0).minutes(0).seconds(0),o=i.clone().hours(e.get("hours")).minutes(e.get("minutes")),a=i.clone().hours(n.get("hours")).minutes(n.get("minutes")),s=i.clone().hours(r.get("hours")).minutes(r.get("minutes"));return!(o.isSameOrAfter(a)&&o.isSameOrBefore(s))}function lc(e){var t=e.minDate,n=e.includeDates;return n&&t?ls.a.min(n.filter((function(e){return t.isSameOrBefore(e,"day")}))):n?ls.a.min(n):t}function dc(e){var t=e.maxDate,n=e.includeDates;return n&&t?ls.a.max(n.filter((function(e){return t.isSameOrAfter(e,"day")}))):n?ls.a.max(n):t}function pc(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(Ss(o)){var a=o.format("MM.DD.YYYY"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if("object"===(void 0===o?"undefined":ps(o))){var c=Object.keys(o),u=c[0],l=o[c[0]];if("string"==typeof u&&l.constructor===Array)for(var d=0,p=l.length;d<p;d++){var f=l[d].format("MM.DD.YYYY"),h=n.get(f)||[];h.includes(u)||(h.push(u),n.set(f,h))}}}return n}var fc=cs(gs),hc=function(e){function t(){var n,r;fs(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=_s(this,e.call.apply(e,[this].concat(o))),r.state={dropdownVisible:!1},r.renderSelectOptions=function(){for(var e=r.props.minDate?Hs(r.props.minDate):1900,t=r.props.maxDate?Hs(r.props.maxDate):2100,n=[],i=e;i<=t;i++)n.push(l.a.createElement("option",{key:i,value:i},i));return n},r.onSelectChange=function(e){r.onChange(e.target.value)},r.renderSelectMode=function(){return l.a.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())},r.renderReadView=function(e){return l.a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(e){return r.toggleDropdown(e)}},l.a.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),l.a.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))},r.renderDropdown=function(){return l.a.createElement(fc,{key:"dropdown",ref:"options",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})},r.renderScrollMode=function(){var e=r.state.dropdownVisible,t=[r.renderReadView(!e)];return e&&t.unshift(r.renderDropdown()),t},r.onChange=function(e){r.toggleDropdown(),e!==r.props.year&&r.props.onChange(e)},r.toggleDropdown=function(e){r.setState({dropdownVisible:!r.state.dropdownVisible},(function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,e)}))},r.handleYearChange=function(e,t){r.onSelect(e,t),r.setOpen()},r.onSelect=function(e,t){r.props.onSelect&&r.props.onSelect(e,t)},r.setOpen=function(){r.props.setOpen&&r.props.setOpen(!0)},_s(r,n)}return ms(t,e),t.prototype.render=function(){var e=void 0;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return l.a.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--"+this.props.dropdownMode},e)},t}(l.a.Component);hc.propTypes={adjustDateOnChange:c.a.bool,dropdownMode:c.a.oneOf(["scroll","select"]).isRequired,maxDate:c.a.object,minDate:c.a.object,onChange:c.a.func.isRequired,scrollableYearDropdown:c.a.bool,year:c.a.number.isRequired,yearDropdownItemNumber:c.a.number,date:c.a.object,onSelect:c.a.func,setOpen:c.a.func};var mc=function(e){function t(){var n,r;fs(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=_s(this,e.call.apply(e,[this].concat(o))),r.renderOptions=function(){return r.props.monthNames.map((function(e,t){return l.a.createElement("div",{className:r.props.month===t?"react-datepicker__month-option --selected_month":"react-datepicker__month-option",key:e,ref:e,onClick:r.onChange.bind(r,t)},r.props.month===t?l.a.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",e)}))},r.onChange=function(e){return r.props.onChange(e)},r.handleClickOutside=function(){return r.props.onCancel()},_s(r,n)}return ms(t,e),t.prototype.render=function(){return l.a.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},t}(l.a.Component);mc.propTypes={onCancel:c.a.func.isRequired,onChange:c.a.func.isRequired,month:c.a.number.isRequired,monthNames:c.a.arrayOf(c.a.string.isRequired).isRequired};var _c=cs(mc),vc=function(e){function t(){var n,r;fs(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=_s(this,e.call.apply(e,[this].concat(o))),r.state={dropdownVisible:!1},r.renderSelectOptions=function(e){return e.map((function(e,t){return l.a.createElement("option",{key:t,value:t},e)}))},r.renderSelectMode=function(e){return l.a.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(e){return r.onChange(e.target.value)}},r.renderSelectOptions(e))},r.renderReadView=function(e,t){return l.a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},l.a.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),l.a.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},t[r.props.month]))},r.renderDropdown=function(e){return l.a.createElement(_c,{key:"dropdown",ref:"options",month:r.props.month,monthNames:e,onChange:r.onChange,onCancel:r.toggleDropdown})},r.renderScrollMode=function(e){var t=r.state.dropdownVisible,n=[r.renderReadView(!t,e)];return t&&n.unshift(r.renderDropdown(e)),n},r.onChange=function(e){r.toggleDropdown(),e!==r.props.month&&r.props.onChange(e)},r.toggleDropdown=function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})},_s(r,n)}return ms(t,e),t.prototype.render=function(){var e,t=this,n=(e=this.props.locale,ls.a.localeData(e)),r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return function(e,t){return e.monthsShort(t)}(n,Ms({M:e}))}:function(e){return function(e,t,n){return e.months(t,n)}(n,Ms({M:e}),t.props.dateFormat)}),i=void 0;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r)}return l.a.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--"+this.props.dropdownMode},i)},t}(l.a.Component);function gc(e,t){for(var n=[],r=qs(xs(e)),i=qs(xs(t));!Zs(r,i);)n.push(xs(r)),Ks(r,1);return n}vc.propTypes={dropdownMode:c.a.oneOf(["scroll","select"]).isRequired,locale:c.a.string,dateFormat:c.a.string.isRequired,month:c.a.number.isRequired,onChange:c.a.func.isRequired,useShortMonthInDropdown:c.a.bool};var yc=function(e){function t(n){fs(this,t);var r=_s(this,e.call(this,n));return r.renderOptions=function(){return r.state.monthYearsList.map((function(e){var t=e.valueOf(),n=Xs(r.props.date,e)&&ec(r.props.date,e);return l.a.createElement("div",{className:n?"react-datepicker__month-year-option --selected_month-year":"react-datepicker__month-year-option",key:t,ref:t,onClick:r.onChange.bind(r,t)},n?l.a.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",js(e,r.props.dateFormat))}))},r.onChange=function(e){return r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:gc(r.props.minDate,r.props.maxDate)},r}return ms(t,e),t.prototype.render=function(){var e=Xa()({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return l.a.createElement("div",{className:e},this.renderOptions())},t}(l.a.Component);yc.propTypes={minDate:c.a.object.isRequired,maxDate:c.a.object.isRequired,onCancel:c.a.func.isRequired,onChange:c.a.func.isRequired,scrollableMonthYearDropdown:c.a.bool,date:c.a.object.isRequired,dateFormat:c.a.string.isRequired};var bc=cs(yc),wc=function(e){function t(){var n,r;fs(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=_s(this,e.call.apply(e,[this].concat(o))),r.state={dropdownVisible:!1},r.renderSelectOptions=function(){for(var e=qs(rc(r.props.minDate,r.props.locale)),t=qs(rc(r.props.maxDate,r.props.locale)),n=[];!Zs(e,t);){var i=e.valueOf();n.push(l.a.createElement("option",{key:i,value:i},js(e,r.props.dateFormat))),Ks(e,1)}return n},r.onSelectChange=function(e){r.onChange(e.target.value)},r.renderSelectMode=function(){return l.a.createElement("select",{value:qs(r.props.date).valueOf(),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())},r.renderReadView=function(e){var t=js(rc(Ms(r.props.date),r.props.locale),r.props.dateFormat);return l.a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(e){return r.toggleDropdown(e)}},l.a.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),l.a.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},t))},r.renderDropdown=function(){return l.a.createElement(bc,{key:"dropdown",ref:"options",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:rc(r.props.minDate,r.props.locale),maxDate:rc(r.props.maxDate,r.props.locale),scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})},r.renderScrollMode=function(){var e=r.state.dropdownVisible,t=[r.renderReadView(!e)];return e&&t.unshift(r.renderDropdown()),t},r.onChange=function(e){r.toggleDropdown();var t=Ms(parseInt(e));Xs(r.props.date,t)&&ec(r.props.date,t)||r.props.onChange(t)},r.toggleDropdown=function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})},_s(r,n)}return ms(t,e),t.prototype.render=function(){var e=void 0;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return l.a.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--"+this.props.dropdownMode},e)},t}(l.a.Component);wc.propTypes={dropdownMode:c.a.oneOf(["scroll","select"]).isRequired,dateFormat:c.a.string.isRequired,locale:c.a.string,maxDate:c.a.object.isRequired,minDate:c.a.object.isRequired,date:c.a.object.isRequired,onChange:c.a.func.isRequired,scrollableMonthYearDropdown:c.a.bool};var kc=function(e){function t(){var n,r;fs(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=_s(this,e.call.apply(e,[this].concat(o))),r.handleClick=function(e){!r.isDisabled()&&r.props.onClick&&r.props.onClick(e)},r.handleMouseEnter=function(e){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(e)},r.isSameDay=function(e){return tc(r.props.day,e)},r.isKeyboardSelected=function(){return!r.props.inline&&!r.isSameDay(r.props.selected)&&r.isSameDay(r.props.preSelection)},r.isDisabled=function(){return sc(r.props.day,r.props)},r.getHighLightedClass=function(e){var t=r.props,n=t.day,i=t.highlightDates;if(!i)return!1;var o=n.format("MM.DD.YYYY");return i.get(o)},r.isInRange=function(){var e=r.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&nc(t,n,i)},r.isInSelectingRange=function(){var e=r.props,t=e.day,n=e.selectsStart,i=e.selectsEnd,o=e.selectingDate,a=e.startDate,s=e.endDate;return!(!n&&!i||!o||r.isDisabled())&&(n&&s&&o.isSameOrBefore(s)?nc(t,o,s):!!(i&&a&&o.isSameOrAfter(a))&&nc(t,a,o))},r.isSelectingRangeStart=function(){if(!r.isInSelectingRange())return!1;var e=r.props,t=e.day,n=e.selectingDate,i=e.startDate;return tc(t,e.selectsStart?n:i)},r.isSelectingRangeEnd=function(){if(!r.isInSelectingRange())return!1;var e=r.props,t=e.day,n=e.selectingDate,i=e.endDate;return tc(t,e.selectsEnd?n:i)},r.isRangeStart=function(){var e=r.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&tc(n,t)},r.isRangeEnd=function(){var e=r.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&tc(i,t)},r.isWeekend=function(){var e=Ys(r.props.day);return 0===e||6===e},r.isOutsideMonth=function(){return void 0!==r.props.month&&r.props.month!==Fs(r.props.day)},r.getClassNames=function(e){var t=r.props.dayClassName?r.props.dayClassName(e):void 0;return Xa()("react-datepicker__day",t,"react-datepicker__day--"+Bs(r.props.day),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--selected":r.isSameDay(r.props.selected),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isSameDay(Ds(r.props.utcOffset)),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isOutsideMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"))},_s(r,n)}return ms(t,e),t.prototype.render=function(){return l.a.createElement("div",{className:this.getClassNames(this.props.day),onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,"aria-label":"day-"+Ws(this.props.day),role:"option"},Ws(this.props.day))},t}(l.a.Component);kc.propTypes={day:c.a.object.isRequired,dayClassName:c.a.func,endDate:c.a.object,highlightDates:c.a.instanceOf(Map),inline:c.a.bool,month:c.a.number,onClick:c.a.func,onMouseEnter:c.a.func,preSelection:c.a.object,selected:c.a.object,selectingDate:c.a.object,selectsEnd:c.a.bool,selectsStart:c.a.bool,startDate:c.a.object,utcOffset:c.a.number};var Oc=function(e){function t(){var n,r;fs(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=_s(this,e.call.apply(e,[this].concat(o))),r.handleClick=function(e){r.props.onClick&&r.props.onClick(e)},_s(r,n)}return ms(t,e),t.prototype.render=function(){var e={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!this.props.onClick};return l.a.createElement("div",{className:Xa()(e),"aria-label":"week-"+this.props.weekNumber,onClick:this.handleClick},this.props.weekNumber)},t}(l.a.Component);Oc.propTypes={weekNumber:c.a.number.isRequired,onClick:c.a.func};var Cc=function(e){function t(){var n,r;fs(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=_s(this,e.call.apply(e,[this].concat(o))),r.handleDayClick=function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)},r.handleDayMouseEnter=function(e){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)},r.handleWeekClick=function(e,t,n){"function"==typeof r.props.onWeekSelect&&r.props.onWeekSelect(e,t,n)},r.formatWeekNumber=function(e){return r.props.formatWeekNumber?r.props.formatWeekNumber(e):Rs(e)},r.renderDays=function(){var e=Us(xs(r.props.day)),t=[],n=r.formatWeekNumber(e);if(r.props.showWeekNumber){var i=r.props.onWeekSelect?r.handleWeekClick.bind(r,e,n):void 0;t.push(l.a.createElement(Oc,{key:"W",weekNumber:n,onClick:i}))}return t.concat([0,1,2,3,4,5,6].map((function(t){var n=$s(xs(e),t);return l.a.createElement(kc,{key:t,day:n,month:r.props.month,onClick:r.handleDayClick.bind(r,n),onMouseEnter:r.handleDayMouseEnter.bind(r,n),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,inline:r.props.inline,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,utcOffset:r.props.utcOffset})})))},_s(r,n)}return ms(t,e),t.prototype.render=function(){return l.a.createElement("div",{className:"react-datepicker__week"},this.renderDays())},t}(l.a.Component);Cc.propTypes={day:c.a.object.isRequired,dayClassName:c.a.func,endDate:c.a.object,excludeDates:c.a.array,filterDate:c.a.func,formatWeekNumber:c.a.func,highlightDates:c.a.instanceOf(Map),includeDates:c.a.array,inline:c.a.bool,maxDate:c.a.object,minDate:c.a.object,month:c.a.number,onDayClick:c.a.func,onDayMouseEnter:c.a.func,onWeekSelect:c.a.func,preSelection:c.a.object,selected:c.a.object,selectingDate:c.a.object,selectsEnd:c.a.bool,selectsStart:c.a.bool,showWeekNumber:c.a.bool,startDate:c.a.object,utcOffset:c.a.number};var Mc=function(e){function t(){var n,r;fs(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=_s(this,e.call.apply(e,[this].concat(o))),r.handleDayClick=function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)},r.handleDayMouseEnter=function(e){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)},r.handleMouseLeave=function(){r.props.onMouseLeave&&r.props.onMouseLeave()},r.isWeekInMonth=function(e){var t=r.props.day,n=$s(xs(e),6);return ec(e,t)||ec(n,t)},r.renderWeeks=function(){for(var e=[],t=r.props.fixedHeight,n=Us(qs(xs(r.props.day))),i=0,o=!1;e.push(l.a.createElement(Cc,{key:i,day:n,month:Fs(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,inline:r.props.inline,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,showWeekNumber:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,utcOffset:r.props.utcOffset})),!o;){i++,n=Gs(xs(n),1);var a=t&&i>=6,s=!t&&!r.isWeekInMonth(n);if(a||s){if(!r.props.peekNextMonth)break;o=!0}}return e},r.getClassNames=function(){var e=r.props,t=e.selectingDate,n=e.selectsStart,i=e.selectsEnd;return Xa()("react-datepicker__month",{"react-datepicker__month--selecting-range":t&&(n||i)})},_s(r,n)}return ms(t,e),t.prototype.render=function(){return l.a.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,role:"listbox"},this.renderWeeks())},t}(l.a.Component);Mc.propTypes={day:c.a.object.isRequired,dayClassName:c.a.func,endDate:c.a.object,excludeDates:c.a.array,filterDate:c.a.func,fixedHeight:c.a.bool,formatWeekNumber:c.a.func,highlightDates:c.a.instanceOf(Map),includeDates:c.a.array,inline:c.a.bool,maxDate:c.a.object,minDate:c.a.object,onDayClick:c.a.func,onDayMouseEnter:c.a.func,onMouseLeave:c.a.func,onWeekSelect:c.a.func,peekNextMonth:c.a.bool,preSelection:c.a.object,selected:c.a.object,selectingDate:c.a.object,selectsEnd:c.a.bool,selectsStart:c.a.bool,showWeekNumbers:c.a.bool,startDate:c.a.object,utcOffset:c.a.number};var Dc=function(e){function t(){var n,r;fs(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=_s(this,e.call.apply(e,[this].concat(o))),r.handleClick=function(e){(r.props.minTime||r.props.maxTime)&&uc(e,r.props)||r.props.excludeTimes&&cc(e,r.props.excludeTimes)||r.props.includeTimes&&!cc(e,r.props.includeTimes)||r.props.onChange(e)},r.liClasses=function(e,t,n){var i=["react-datepicker__time-list-item"];return t===Is(e)&&n===Ns(e)&&i.push("react-datepicker__time-list-item--selected"),((r.props.minTime||r.props.maxTime)&&uc(e,r.props)||r.props.excludeTimes&&cc(e,r.props.excludeTimes)||r.props.includeTimes&&!cc(e,r.props.includeTimes))&&i.push("react-datepicker__time-list-item--disabled"),i.join(" ")},r.renderTimes=function(){for(var e=[],t=r.props.format?r.props.format:"hh:mm A",n=r.props.intervals,i=r.props.selected?r.props.selected:Ms(),o=Is(i),a=Ns(i),s=zs(Ms()),c=1440/n,u=0;u<c;u++)e.push(Vs(xs(s),u*n));return e.map((function(e,n){return l.a.createElement("li",{key:n,onClick:r.handleClick.bind(r,e),className:r.liClasses(e,o,a)},js(e,t))}))},_s(r,n)}return ms(t,e),t.prototype.componentDidMount=function(){var e=60/this.props.intervals,t=this.props.selected?Is(this.props.selected):Is(Ms());this.list.scrollTop=e*t*30},t.prototype.render=function(){var e=this,t=null;return this.props.monthRef&&(t=this.props.monthRef.clientHeight-39),l.a.createElement("div",{className:"react-datepicker__time-container "+(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},l.a.createElement("div",{className:"react-datepicker__header react-datepicker__header--time"},l.a.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),l.a.createElement("div",{className:"react-datepicker__time"},l.a.createElement("div",{className:"react-datepicker__time-box"},l.a.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{}},this.renderTimes.bind(this)()))))},hs(t,null,[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),t}(l.a.Component);Dc.propTypes={format:c.a.string,includeTimes:c.a.array,intervals:c.a.number,selected:c.a.object,onChange:c.a.func,todayButton:c.a.string,minTime:c.a.object,maxTime:c.a.object,excludeTimes:c.a.array,monthRef:c.a.object,timeCaption:c.a.string};var xc=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Ec=function(e){function t(n){fs(this,t);var r=_s(this,e.call(this,n));return r.handleClickOutside=function(e){r.props.onClickOutside(e)},r.handleDropdownFocus=function(e){(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.className||"").split(/\s+/);return xc.some((function(e){return t.indexOf(e)>=0}))})(e.target)&&r.props.onDropdownFocus()},r.getDateInView=function(){var e=r.props,t=e.preSelection,n=e.selected,i=e.openToDate,o=e.utcOffset,a=lc(r.props),s=dc(r.props),c=Ds(o),u=i||n||t;return u||(a&&Qs(c,a)?a:s&&Zs(c,s)?s:c)},r.localizeDate=function(e){return rc(e,r.props.locale)},r.increaseMonth=function(){r.setState({date:Ks(xs(r.state.date),1)},(function(){return r.handleMonthChange(r.state.date)}))},r.decreaseMonth=function(){r.setState({date:Js(xs(r.state.date),1)},(function(){return r.handleMonthChange(r.state.date)}))},r.handleDayClick=function(e,t){return r.props.onSelect(e,t)},r.handleDayMouseEnter=function(e){return r.setState({selectingDate:e})},r.handleMonthMouseLeave=function(){return r.setState({selectingDate:null})},r.handleYearChange=function(e){r.props.onYearChange&&r.props.onYearChange(e)},r.handleMonthChange=function(e){r.props.onMonthChange&&r.props.onMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0))},r.handleMonthYearChange=function(e){r.handleYearChange(e),r.handleMonthChange(e)},r.changeYear=function(e){r.setState({date:Ps(xs(r.state.date),e)},(function(){return r.handleYearChange(r.state.date)}))},r.changeMonth=function(e){r.setState({date:Ls(xs(r.state.date),e)},(function(){return r.handleMonthChange(r.state.date)}))},r.changeMonthYear=function(e){r.setState({date:Ps(Ls(xs(r.state.date),Fs(e)),Hs(e))},(function(){return r.handleMonthYearChange(r.state.date)}))},r.header=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=Us(xs(e)),n=[];return r.props.showWeekNumbers&&n.push(l.a.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),n.concat([0,1,2,3,4,5,6].map((function(e){var n=$s(xs(t),e),i=ic(n),o=r.props.useWeekdaysShort?ac(i,n):oc(i,n);return l.a.createElement("div",{key:e,className:"react-datepicker__day-name"},o)})))},r.renderPreviousMonthButton=function(){var e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.minDate,i=n.includeDates,o=e.clone().subtract(1,t);return r&&o.isBefore(r,t)||i&&i.every((function(e){return o.isBefore(e,t)}))||!1}(r.state.date,"month",r.props);if(r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;return e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null),l.a.createElement("button",{type:"button",className:t.join(" "),onClick:n})}},r.renderNextMonthButton=function(){var e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.maxDate,i=n.includeDates,o=e.clone().add(1,t);return r&&o.isAfter(r,t)||i&&i.every((function(e){return o.isAfter(e,t)}))||!1}(r.state.date,"month",r.props);if(r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;return e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null),l.a.createElement("button",{type:"button",className:t.join(" "),onClick:n})}},r.renderCurrentMonth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),l.a.createElement("div",{className:t.join(" ")},js(e,r.props.dateFormat))},r.renderYearDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return l.a.createElement(hc,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:Hs(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})},r.renderMonthDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return l.a.createElement(vc,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonth,month:Fs(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})},r.renderMonthYearDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return l.a.createElement(wc,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})},r.renderTodayButton=function(){if(r.props.todayButton)return l.a.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.props.onSelect(Cs(Ds(r.props.utcOffset),"date"),e)}},r.props.todayButton)},r.renderMonths=function(){for(var e=[],t=0;t<r.props.monthsShown;++t){var n=Ks(xs(r.state.date),t),i="month-"+t;e.push(l.a.createElement("div",{key:i,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},l.a.createElement("div",{className:"react-datepicker__header"},r.renderCurrentMonth(n),l.a.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--"+r.props.dropdownMode,onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==t),r.renderMonthYearDropdown(0!==t),r.renderYearDropdown(0!==t)),l.a.createElement("div",{className:"react-datepicker__day-names"},r.header(n))),l.a.createElement(Mc,{day:n,dayClassName:r.props.dayClassName,onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,inline:r.props.inline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,utcOffset:r.props.utcOffset})))}return e},r.renderTimeSection=function(){if(r.props.showTimeSelect)return l.a.createElement(Dc,{selected:r.props.selected,onChange:r.props.onTimeChange,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer})},r.state={date:r.localizeDate(r.getDateInView()),selectingDate:null,monthContainer:r.monthContainer},r}return ms(t,e),hs(t,null,[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time"}}}]),t.prototype.componentDidMount=function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))},t.prototype.componentWillReceiveProps=function(e){e.preSelection&&!tc(e.preSelection,this.props.preSelection)?this.setState({date:this.localizeDate(e.preSelection)}):e.openToDate&&!tc(e.openToDate,this.props.openToDate)&&this.setState({date:this.localizeDate(e.openToDate)})},t.prototype.render=function(){return l.a.createElement("div",{className:Xa()("react-datepicker",this.props.className)},l.a.createElement("div",{className:"react-datepicker__triangle"}),this.renderPreviousMonthButton(),this.renderNextMonthButton(),this.renderMonths(),this.renderTodayButton(),this.renderTimeSection(),this.props.children)},t}(l.a.Component);Ec.propTypes={adjustDateOnChange:c.a.bool,className:c.a.string,children:c.a.node,dateFormat:c.a.oneOfType([c.a.string,c.a.array]).isRequired,dayClassName:c.a.func,dropdownMode:c.a.oneOf(["scroll","select"]),endDate:c.a.object,excludeDates:c.a.array,filterDate:c.a.func,fixedHeight:c.a.bool,formatWeekNumber:c.a.func,highlightDates:c.a.instanceOf(Map),includeDates:c.a.array,includeTimes:c.a.array,inline:c.a.bool,locale:c.a.string,maxDate:c.a.object,minDate:c.a.object,monthsShown:c.a.number,onClickOutside:c.a.func.isRequired,onMonthChange:c.a.func,onYearChange:c.a.func,forceShowMonthNavigation:c.a.bool,onDropdownFocus:c.a.func,onSelect:c.a.func.isRequired,onWeekSelect:c.a.func,showTimeSelect:c.a.bool,timeFormat:c.a.string,timeIntervals:c.a.number,onTimeChange:c.a.func,minTime:c.a.object,maxTime:c.a.object,excludeTimes:c.a.array,timeCaption:c.a.string,openToDate:c.a.object,peekNextMonth:c.a.bool,scrollableYearDropdown:c.a.bool,scrollableMonthYearDropdown:c.a.bool,preSelection:c.a.object,selected:c.a.object,selectsEnd:c.a.bool,selectsStart:c.a.bool,showMonthDropdown:c.a.bool,showMonthYearDropdown:c.a.bool,showWeekNumbers:c.a.bool,showYearDropdown:c.a.bool,startDate:c.a.object,todayButton:c.a.string,useWeekdaysShort:c.a.bool,withPortal:c.a.bool,utcOffset:c.a.number,weekLabel:c.a.string,yearDropdownItemNumber:c.a.number,setOpen:c.a.func,useShortMonthInDropdown:c.a.bool,showDisabledMonthNavigation:c.a.bool};var Sc=["auto","auto-left","auto-right","bottom","bottom-end","bottom-start","left","left-end","left-start","right","right-end","right-start","top","top-end","top-start"],jc=function(e){function t(){return fs(this,t),_s(this,e.apply(this,arguments))}return ms(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.hidePopper,r=e.popperComponent,i=e.popperModifiers,o=e.popperPlacement,a=e.targetComponent,s=void 0;if(!n){var c=Xa()("react-datepicker-popper",t);s=l.a.createElement(ds.Popper,{className:c,modifiers:i,placement:o},r)}return this.props.popperContainer&&(s=l.a.createElement(this.props.popperContainer,{},s)),l.a.createElement(ds.Manager,null,l.a.createElement(ds.Target,{className:"react-datepicker-wrapper"},a),s)},hs(t,null,[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:{preventOverflow:{enabled:!0,escapeWithReference:!0,boundariesElement:"viewport"}},popperPlacement:"bottom-start"}}}]),t}(l.a.Component);jc.propTypes={className:c.a.string,hidePopper:c.a.bool,popperComponent:c.a.element,popperModifiers:c.a.object,popperPlacement:c.a.oneOf(Sc),popperContainer:c.a.func,targetComponent:c.a.element};var Tc=cs(Ec),Lc=function(e){function t(n){fs(this,t);var r=_s(this,e.call(this,n));return r.getPreSelection=function(){return r.props.openToDate?Ms(r.props.openToDate):r.props.selectsEnd&&r.props.startDate?Ms(r.props.startDate):r.props.selectsStart&&r.props.endDate?Ms(r.props.endDate):Ds(r.props.utcOffset)},r.calcInitialState=function(){var e=r.getPreSelection(),t=lc(r.props),n=dc(r.props),i=t&&Qs(e,t)?t:n&&Zs(e,n)?n:e;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:r.props.selected?Ms(r.props.selected):i,highlightDates:pc(r.props.highlightDates)}},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){r.input.focus&&r.input.focus()},r.setOpen=function(e){r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection})},r.handleFocus=function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.setOpen(!0))},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(e){r.state.open?r.deferFocusInput():r.props.onBlur(e)},r.handleCalendarClickOutside=function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()},r.handleChange=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(r,t),"function"==typeof i.isDefaultPrevented&&!i.isDefaultPrevented())){r.setState({inputValue:i.target.value});var o=Es(i.target.value,r.props);!o&&i.target.value||r.setSelected(o,i,!0)}},r.handleSelect=function(e,t){r.setState({preventFocus:!0},(function(){return r.preventFocusTimeout=setTimeout((function(){return r.setState({preventFocus:!1})}),50),r.preventFocusTimeout})),r.setSelected(e,t),!r.props.shouldCloseOnSelect||r.props.showTimeSelect?r.setPreSelection(e):r.props.inline||r.setOpen(!1)},r.setSelected=function(e,t,n){var i=e;if(null===i||!sc(i,r.props)){if(!tc(r.props.selected,i)||r.props.allowSameDay){if(null!==i){if(r.props.selected){var o=r.props.selected;n&&(o=Ms(i)),i=Ts(Ms(i),{hour:Is(o),minute:Ns(o),second:As(o)})}r.setState({preSelection:i})}r.props.onChange(i,t)}r.props.onSelect(i,t),n||r.setState({inputValue:null})}},r.setPreSelection=function(e){(!(void 0!==r.props.minDate&&void 0!==r.props.maxDate)||!e||nc(e,r.props.minDate,r.props.maxDate))&&r.setState({preSelection:e})},r.handleTimeChange=function(e){var t=Ts(xs(r.props.selected?r.props.selected:r.getPreSelection()),{hour:Is(e),minute:Ns(e)});r.setState({preSelection:t}),r.props.onChange(t),r.setOpen(!1),r.setState({inputValue:t.format(r.props.dateFormat)})},r.onInputClick=function(){r.props.disabled||r.setOpen(!0)},r.onInputKeyDown=function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){var n,i=Ms(r.state.preSelection);if("Enter"===t)e.preventDefault(),Ss(r.state.preSelection)||(n=r.state.preSelection,ls.a.isDate(n))?(r.handleSelect(i,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(i)):r.setOpen(!1);else if("Escape"===t)e.preventDefault(),r.setOpen(!1);else if("Tab"===t)r.setOpen(!1);else if(!r.props.disabledKeyboardNavigation){var o=void 0;switch(t){case"ArrowLeft":e.preventDefault(),o=function(e,t){return ks(e,t,"days")}(i,1);break;case"ArrowRight":e.preventDefault(),o=$s(i,1);break;case"ArrowUp":e.preventDefault(),o=function(e,t){return ks(e,t,"weeks")}(i,1);break;case"ArrowDown":e.preventDefault(),o=Gs(i,1);break;case"PageUp":e.preventDefault(),o=Js(i,1);break;case"PageDown":e.preventDefault(),o=Ks(i,1);break;case"Home":e.preventDefault(),o=function(e,t){return ks(e,t,"years")}(i,1);break;case"End":e.preventDefault(),o=function(e,t){return ws(e,t,"years")}(i,1)}r.props.adjustDateOnChange&&r.setSelected(o),r.setPreSelection(o)}}else"Enter"!==t&&"Escape"!==t&&"Tab"!==t&&r.onInputClick()},r.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),r.props.onChange(null,e),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.renderCalendar=function(){return r.props.inline||r.state.open&&!r.props.disabled?l.a.createElement(Tc,{ref:function(e){r.calendar=e},locale:r.props.locale,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeTimes:r.props.includeTimes,inline:r.props.inline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,utcOffset:r.props.utcOffset,outsideClickIgnoreClass:"react-datepicker-ignore-onclickoutside",fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,showTimeSelect:r.props.showTimeSelect,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,yearDropdownItemNumber:r.props.yearDropdownItemNumber},r.props.children):null},r.renderDateInput=function(){var e,t,n,i,o,a,s=Xa()(r.props.className,((e={})["react-datepicker-ignore-onclickoutside"]=r.state.open,e)),c=r.props.customInput||l.a.createElement("input",{type:"text"}),u=r.props.customInputRef||"ref",d="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:(n=r.props.selected,i=r.props,o=i.dateFormat,a=i.locale,n&&n.clone().locale(a||ls.a.locale()).format(Array.isArray(o)?o[0]:o)||"");return l.a.cloneElement(c,((t={})[u]=function(e){r.input=e},t.value=d,t.onBlur=r.handleBlur,t.onChange=r.handleChange,t.onClick=r.onInputClick,t.onFocus=r.handleFocus,t.onKeyDown=r.onInputKeyDown,t.id=r.props.id,t.name=r.props.name,t.autoFocus=r.props.autoFocus,t.placeholder=r.props.placeholderText,t.disabled=r.props.disabled,t.autoComplete=r.props.autoComplete,t.className=s,t.title=r.props.title,t.readOnly=r.props.readOnly,t.required=r.props.required,t.tabIndex=r.props.tabIndex,t))},r.renderClearButton=function(){return r.props.isClearable&&null!=r.props.selected?l.a.createElement("a",{className:"react-datepicker__close-icon",href:"javascript:void(0)",onClick:r.onClearClick}):null},r.state=r.calcInitialState(),r}return ms(t,e),hs(t,null,[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"L",dateFormatCalendar:"MMMM YYYY",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},preventOpenOnFocus:!1,onYearChange:function(){},monthsShown:1,withPortal:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,timeIntervals:30,timeCaption:"Time"}}}]),t.prototype.componentWillReceiveProps=function(e){var t=this.props.selected&&Fs(this.props.selected),n=e.selected&&Fs(e.selected);this.props.inline&&t!==n&&this.setPreSelection(e.selected),this.props.highlightDates!==e.highlightDates&&this.setState({highlightDates:pc(e.highlightDates)})},t.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout()},t.prototype.render=function(){var e=this.renderCalendar();return this.props.inline&&!this.props.withPortal?e:this.props.withPortal?l.a.createElement("div",null,this.props.inline?null:l.a.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),this.state.open||this.props.inline?l.a.createElement("div",{className:"react-datepicker__portal"},e):null):l.a.createElement(jc,{className:this.props.popperClassName,hidePopper:!this.state.open||this.props.disabled,popperModifiers:this.props.popperModifiers,targetComponent:l.a.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement})},t}(l.a.Component);Lc.propTypes={adjustDateOnChange:c.a.bool,allowSameDay:c.a.bool,autoComplete:c.a.string,autoFocus:c.a.bool,calendarClassName:c.a.string,children:c.a.node,className:c.a.string,customInput:c.a.element,customInputRef:c.a.string,dateFormat:c.a.oneOfType([c.a.string,c.a.array]),dateFormatCalendar:c.a.string,dayClassName:c.a.func,disabled:c.a.bool,disabledKeyboardNavigation:c.a.bool,dropdownMode:c.a.oneOf(["scroll","select"]).isRequired,endDate:c.a.object,excludeDates:c.a.array,filterDate:c.a.func,fixedHeight:c.a.bool,formatWeekNumber:c.a.func,highlightDates:c.a.array,id:c.a.string,includeDates:c.a.array,includeTimes:c.a.array,inline:c.a.bool,isClearable:c.a.bool,locale:c.a.string,maxDate:c.a.object,minDate:c.a.object,monthsShown:c.a.number,name:c.a.string,onBlur:c.a.func,onChange:c.a.func.isRequired,onSelect:c.a.func,onWeekSelect:c.a.func,onClickOutside:c.a.func,onChangeRaw:c.a.func,onFocus:c.a.func,onKeyDown:c.a.func,onMonthChange:c.a.func,onYearChange:c.a.func,openToDate:c.a.object,peekNextMonth:c.a.bool,placeholderText:c.a.string,popperContainer:c.a.func,popperClassName:c.a.string,popperModifiers:c.a.object,popperPlacement:c.a.oneOf(Sc),preventOpenOnFocus:c.a.bool,readOnly:c.a.bool,required:c.a.bool,scrollableYearDropdown:c.a.bool,scrollableMonthYearDropdown:c.a.bool,selected:c.a.object,selectsEnd:c.a.bool,selectsStart:c.a.bool,showMonthDropdown:c.a.bool,showMonthYearDropdown:c.a.bool,showWeekNumbers:c.a.bool,showYearDropdown:c.a.bool,forceShowMonthNavigation:c.a.bool,showDisabledMonthNavigation:c.a.bool,startDate:c.a.object,startOpen:c.a.bool,tabIndex:c.a.number,timeCaption:c.a.string,title:c.a.string,todayButton:c.a.string,useWeekdaysShort:c.a.bool,utcOffset:c.a.number,value:c.a.string,weekLabel:c.a.string,withPortal:c.a.bool,yearDropdownItemNumber:c.a.number,shouldCloseOnSelect:c.a.bool,showTimeSelect:c.a.bool,timeFormat:c.a.string,timeIntervals:c.a.number,minTime:c.a.object,maxTime:c.a.object,excludeTimes:c.a.array,useShortMonthInDropdown:c.a.bool};var Pc=Lc,Ac=Ra("date",{render:function(){var e=this.props.field.get();e&&(e=ls()(e));var t=React.createElement(Nc,{onClear:this._onClear,disabled:this.props.readOnly});return React.createElement(Pc,{customInput:t,dateFormat:"YYYY-MM-DD",disabled:this.props.readOnly,onChange:this._onChange,selected:e})},_onChange:function(e){if(!this.props.readOnly){var t=null;e&&(t=e.toDate()),this.props.field.update(t)}},_onClear:function(e){e.preventDefault(),this.props.field.update(null)}}),Nc=scrivito.legacyCreateConnectedComponent({displayName:Ac.displayName+".DateButton",render:function(){var e,t=this.props.value||null;return t&&!this.props.disabled&&(e=React.createElement("span",{className:"clear_btn",onClick:this.props.onClear},React.createElement("i",{className:"scrivito_icon scrivito_icon_cancel"}))),React.createElement("div",{className:"date_button"},React.createElement("span",{className:"value",onClick:this.props.onClick},t),e)}}),Ic=Ac,Yc=Ra("enum",{render:function(){var e=this,t=this.props.field.get(),n=this.props.attribute.orderedValues();return this.props.readOnly?React.createElement("span",{className:"read_only"},this.props.attribute.titleForValue(t)):React.createElement("ul",{className:"enum_attribute"},n.map((function(n){return React.createElement("li",{key:n,className:n===t?"enum_attribute_active":"",onClick:function(r){return e._onClick(r,n,t)}},e.props.attribute.titleForValue(n))})))},_onClick:function(e,t,n){e.preventDefault(),e.stopPropagation();var r=t===n?null:t;this.props.field.update(r)}}),Rc=S((function(e){var t=e.link,n=e.onChange,r=e.title,i=e.toggleLinkRelEditor,o=e.hasRelAttribute;return t?u.createElement(Fc,{onChange:n,title:r,toggleLinkRelEditor:i,hasRelAttribute:o}):u.createElement(Hc,{toggleLinkRelEditor:i,hasRelAttribute:o})})),Fc=function(e){return u.createElement("div",{className:"scrivito_link_content"},u.createElement("span",{className:"scrivito_link_icon scrivito_icon_title",title:scrivito.t("link_item_component.link.title_placeholder")}),u.createElement("input",{type:"text",placeholder:scrivito.t("link_item_component.link.title_placeholder"),onChange:e.onChange,value:e.title}),u.createElement("span",{onClick:e.toggleLinkRelEditor,className:Wc(e.hasRelAttribute),title:scrivito.t("link_item_component.link.seo_settings")}))},Hc=function(e){return u.createElement("div",{className:"scrivito_link_content"},u.createElement("span",{className:"scrivito_link_icon scrivito_icon_title",title:scrivito.t("link_item_component.link.title_placeholder")}),u.createElement("span",{className:"read_only"},e.title),u.createElement("span",{onClick:e.toggleLinkRelEditor,className:Wc(e.hasRelAttribute),title:scrivito.t("link_item_component.link.seo_settings")}))};function Wc(e){return"scrivito_link_icon scrivito_icon_gear scrivito_link_icon_hover "+(e?"active":"")}var Bc=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)}}(),zc=S(function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Bc(t,e),t.prototype.render=function(){return u.createElement("span",{className:"read_only scrivito_link_description",onClick:this.onClick},u.createElement("span",{className:"scrivito_badge"},scrivito.t("link_item_component.link.internal")),u.createElement("span",{className:"scrivito_margin"}),vn(this.props.link.obj()))},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),this.props.onClick()},t}(u.Component)),Uc=S((function(e){return u.createElement("input",{type:"text",placeholder:scrivito.t("link_item_component.link.url_placeholder"),onChange:e.onChange,value:e.link&&e.link.url()||""})})),qc=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)}}(),Vc=["noindex","nofollow","noarchive","nosnippet","noopener","noreferrer","notranslate"],$c=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qc(t,e),t.prototype.render=function(){var e=this,t=this.props.relAttribute,n=t?t.split(" "):[];return u.createElement("div",{className:"scrivito_link_collapse_body"},u.createElement("div",{className:"scrivito_detail_label"},scrivito.t("link_item_component.link_rel_editor.title")),u.createElement("div",{className:"scrivito_notice_body"},scrivito.t("link_item_component.link_rel_editor.description1"),u.createElement("code",null,"rel"),scrivito.t("link_item_component.link_rel_editor.description2")),u.createElement("ul",{className:this.relsListClassName()},Vc.map((function(t,r){return u.createElement("li",{key:r,className:Object(v.contains)(n,t)?"enum_attribute_active":"",onClick:function(r){return e.onClick(r,t,n)}},t)}))))},t.prototype.onClick=function(e,t,n){e.preventDefault(),e.stopPropagation();var r=this.props,i=r.onRelChange,o=r.readOnly;if(Object(v.contains)(n,t)){var a=n.indexOf(t);n.splice(a,1)}else n.push(t);i&&!o&&i(Object(v.isEmpty)(n)?null:n.join(" "))},t.prototype.relsListClassName=function(){return"enum_attribute scrivito_multi "+(this.props.readOnly?"scrivito_multi_read_only":"")},t}(u.Component)),Gc=S((function(e){return u.createElement("div",{className:"scrivito_link_item"},u.createElement("div",{className:"scrivito_link_content"},u.createElement("span",{className:"scrivito_link_icon scrivito_icon_link",title:scrivito.t("link_item_component.link.url_placeholder")}),u.createElement(Kc,{link:e.link,showObj:e.showObj}),u.createElement("span",{className:e.targetClass,title:scrivito.t("link_item_component.link.new_tab")})),u.createElement(Hc,{toggleLinkRelEditor:e.toggleLinkRelEditor,hasRelAttribute:e.hasRelAttribute,title:e.title}),e.link&&e.isOpenRelEditor&&u.createElement("div",{className:"scrivito_link_collapse show"},u.createElement($c,{relAttribute:e.relAttribute,readOnly:!0})))})),Kc=S((function(e){return e.link?e.link.isInternal()?u.createElement(zc,{link:e.link,onClick:e.showObj}):u.createElement("span",{className:"read_only"},e.link.url()):u.createElement("span",{className:"read_only"})})),Jc=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)}}(),Qc=S(function(e){function t(t){var n=e.call(this,t)||this;return n.selectObj=n.selectObj.bind(n),n.showObj=n.showObj.bind(n),n.onDelete=n.onDelete.bind(n),n.onTitleChange=n.onTitleChange.bind(n),n.onTargetToggle=n.onTargetToggle.bind(n),n.onToggleLinkRelEditor=n.onToggleLinkRelEditor.bind(n),n.onRelChange=n.onRelChange.bind(n),n.onUrlChange=n.onUrlChange.bind(n),n.state={isOpenRelEditor:!1},n}return Jc(t,e),t.prototype.render=function(){var e,t=(e=this.props.link)&&(e.rel()||""),n=function(e){return e&&e.title()||""}(this.props.link),r=function(e){return(e&&"_blank"===e.target()?"active":"")+" scrivito_link_icon scrivito_icon_new_window"}(this.props.link);return this.props.readOnly?u.createElement(Gc,{link:this.props.link,targetClass:r,title:n,hasRelAttribute:this.hasRelAttribute(),toggleLinkRelEditor:this.onToggleLinkRelEditor,isOpenRelEditor:this.state.isOpenRelEditor,relAttribute:t,showObj:this.showObj}):u.createElement("div",{className:"scrivito_link_item"},this.isLinklistItem()&&u.createElement("div",{className:"scrivito_link_drag"}),u.createElement("div",{className:"scrivito_link_content"},u.createElement("span",{className:"scrivito_link_icon scrivito_icon_content_browser scrivito_link_icon_hover",title:scrivito.t("link_item_component.link.content_browser"),onClick:this.selectObj}),this.renderDestinationInput(),this.props.link&&u.createElement(Zc,{clear:this.onDelete}),u.createElement("span",{className:r+" scrivito_link_icon_hover",onClick:this.props.link&&this.onTargetToggle,title:scrivito.t("link_item_component.link.new_tab")})),u.createElement(Rc,{link:this.props.link,onChange:this.onTitleChange,title:n,toggleLinkRelEditor:this.onToggleLinkRelEditor,hasRelAttribute:this.hasRelAttribute()}),this.props.link&&this.state.isOpenRelEditor&&u.createElement("div",{className:"scrivito_link_collapse show"},u.createElement($c,{relAttribute:t,onRelChange:this.onRelChange})),this.showItemDeleteButton()&&u.createElement(Xc,{onClick:this.props.onDelete}))},t.prototype.onToggleLinkRelEditor=function(){this.setState((function(e){return{isOpenRelEditor:!e.isOpenRelEditor}}))},t.prototype.onDelete=function(e){e.preventDefault(),e.stopPropagation(),this.props.onChange(null)},t.prototype.onTargetToggle=function(){var e="_blank"===this.props.link.target()?"":"_blank";this.signalUpdate({target:e})},t.prototype.onRelChange=function(e){this.signalUpdate({rel:e})},t.prototype.onTitleChange=function(e){this.signalUpdate({title:e.target.value})},t.prototype.onUrlChange=function(e){var t=e.target.value;this.signalUpdate({url:t,objId:null})},t.prototype.selectObj=function(){var e=this,t=this.isInternal()?this.props.link.objId():"";Wn({selection:t?[t]:[],selectionMode:"single",standAlone:!1}).then((function(t){if(t.isSelected){var n=t.selection[0],r=n?{url:null,objId:n}:{};e.signalUpdate(r)}}))},t.prototype.showObj=function(){var e=this.isInternal()?this.props.link.objId():"";Wn({selection:e?[e]:[],selectionMode:"single",standAlone:!0,disableDelete:!0})},t.prototype.signalUpdate=function(e){if(this.props.link)if(e.url||e.objId||void 0!==e.rel||void 0!==e.title||void 0!==e.target){var t=this.props.link;this.props.onChange(t.copy(e))}else this.props.onChange(null);else this.props.onChange(this.buildNewLink(e))},t.prototype.renderDestinationInput=function(){return this.isInternal()?u.createElement(zc,{link:this.props.link,onClick:this.selectObj}):u.createElement(Uc,{link:this.props.link,onChange:this.onUrlChange})},t.prototype.buildNewLink=function(e){var t=e.objId,n=t&&F.BasicObj.get(t)?{objId:t}:{url:e.url||""};return new F.BasicLink(n)},t.prototype.isInternal=function(){return this.props.link&&this.props.link.isInternal()},t.prototype.hasRelAttribute=function(){return this.props.link&&!!this.props.link.rel()},t.prototype.showItemDeleteButton=function(){return this.isLinklistItem()},t.prototype.isLinklistItem=function(){return!!this.props.onDelete},t}(u.Component)),Zc=function(e){return u.createElement("span",{className:"scrivito_icon scrivito_icon_cancel",onClick:e.clear})},Xc=function(e){return u.createElement("div",{className:"scrivito_link_action",onClick:e.onClick,title:scrivito.t("link_item_component.link.delete")},u.createElement("i",{className:"scrivito_icon scrivito_icon_trash"}))};var eu=Ra("link",{render:function(){return u.createElement(Qc,{link:this.props.field.get(),readOnly:this.props.readOnly,onChange:this.onChange})},onChange:function(e){this.props.field.update(e)}}),tu=n(62),nu=Ra("linklist",{getInitialState:function(){return{emptyLinkPositions:[]}},render:function(){var e=this.props.field.get();return this.props.readOnly&&0===e.length?React.createElement("div",{className:"scrivito_notice scrivito_blue"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("linklist_item_component.linklist.undefined"))):React.createElement("div",{className:"scrivito_linklist_item"},React.createElement(ru,{distance:10,helperClass:"scrivito_detail_content scrivito_detail_content_dragging",items:this._buildLinklist(),lockToContainerEdges:!0,onDelete:this._onDelete,onSortEnd:this._onSortEnd,readOnly:this.props.readOnly,onChange:this._onChange}),!this.props.readOnly&&React.createElement(ou,{onClick:this._onAddLinkClick}))},_update:function(e){this.props.field.update(Object(v.compact)(e))},_onDelete:function(e,t){e.preventDefault(),e.stopPropagation();var n=this._buildLinklist();null!==n[t]?(n.splice(t,1),this._update(n)):this._removeEmptyLinkAt(t)},_onChange:function(e,t){var n=this._buildLinklist();null===n[t]&&this._removeEmptyLinkAt(t),null===e&&this._addEmptyLinkAt(t);var r=n.slice(0,t).concat([e],n.slice(t+1,n.length));this._update(r)},_onSortEnd:function(e){var t=e.oldIndex,n=e.newIndex,r=this._buildLinklist(),i=Object(tu.arrayMove)(this._buildLinklist(),t,n);this._update(i),null===r[t]&&this._swapEmptyLink(t,n),null===r[n]&&this._swapEmptyLink(n,n-1)},_onAddLinkClick:function(e){e.preventDefault(),e.stopPropagation(),this._addEmptyLinkAt(this.props.field.get().length+this.state.emptyLinkPositions.length)},_buildLinklist:function(){for(var e=this.props.field.get(),t=0;t<this.state.emptyLinkPositions.length;t++)e.splice(this.state.emptyLinkPositions[t],0,null);return e},_addEmptyLinkAt:function(e){var t=this.state.emptyLinkPositions;t.push(e),this.setState({emptyLinkPositions:t.sort()})},_removeEmptyLinkAt:function(e){var t=this.state.emptyLinkPositions;t.splice(t.indexOf(e),1),this.setState({emptyLinkPositions:t})},_swapEmptyLink:function(e,t){this._removeEmptyLinkAt(e),this._addEmptyLinkAt(t)}}),ru=Object(tu.SortableContainer)((function(e){return React.createElement("div",null,e.items.map((function(t,n){return React.createElement(iu,{index:n,disabled:e.readOnly,key:n.toString(),onDelete:function(t){return e.onDelete(t,n)},readOnly:e.readOnly,onChange:function(t){return e.onChange(t,n)},link:t})})))}));ru.displayName="PropertiesComponent.SortableLinklist";var iu=Object(tu.SortableElement)((function(e){return React.createElement("div",null,React.createElement(Qc,{link:e.link,readOnly:e.readOnly,onChange:e.onChange,onDelete:e.onDelete}))}));function ou(e){var t=e.onClick;return React.createElement("div",{className:"add_list_items_button",onClick:t},React.createElement("i",{className:"scrivito_icon scrivito_icon_plus"}))}iu.displayName="PropertiesComponent.SortableLinklistItem";var au=nu,su=Ra("multienum",{render:function(){var e=this,t=this.props.field.get(),n=this.props.attribute.orderedValues();return this.props.readOnly?u.createElement("ul",null,t.map((function(t){return u.createElement("li",{key:t},e.props.attribute.titleForValue(t))}))):u.createElement("ul",{className:"enum_attribute scrivito_multi"},n.map((function(r){return u.createElement("li",{key:r,className:Object(v.contains)(t,r)?"enum_attribute_active":"",onClick:function(i){return e.onClick(i,r,t,n)}},e.props.attribute.titleForValue(r))})))},onClick:function(e,t,n,r){if(e.preventDefault(),e.stopPropagation(),Object(v.contains)(n,t)){var i=n.indexOf(t);n.splice(i,1)}else n.push(t);n.sort((function(e,t){return r.indexOf(e)-r.indexOf(t)})),this.props.field.update(n)}}),cu=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)}}(),uu=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cu(t,e),t._scrivitoRenderWhileLoading=function(){return u.createElement(C,null)},t.prototype.render=function(){return this.props.isBrowsable?u.createElement("span",null,u.createElement("i",{className:"scrivito_icon scrivito_icon_content_browser"}),this.props.obj&&vn(this.props.obj)):null},t}(u.Component)),lu=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)}}(),du=function(){return(du=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)},pu=S(function(e){function t(t){var n=e.call(this,t)||this;return n.selectObj=n.selectObj.bind(n),n.showObj=n.showObj.bind(n),n.onClick=n.onClick.bind(n),n.onClear=n.onClear.bind(n),n}return lu(t,e),t.shouldRenderTitle=function(){return!0},t.prototype.render=function(){return u.createElement("div",{className:this.className(),onClick:this.onClick},u.createElement(uu,{obj:this.props.field.get(),isBrowsable:this.isBrowsable()}),u.createElement(fu,{isPresent:this.canBeCleared(),onClick:this.onClear}))},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),this.isBrowsable()&&(this.props.readOnly?this.showObj(this.props.field.get()):this.selectObj())},t.prototype.onClear=function(e){e.preventDefault(),e.stopPropagation(),this.props.field.update(null)},t.prototype.className=function(){return this.isBrowsable()?"reference_attribute scrivito_browsable":"reference_attribute"},t.prototype.isBrowsable=function(){return!this.props.readOnly||null!==this.props.field.get()},t.prototype.canBeCleared=function(){return!this.props.readOnly&&null!==this.props.field.get()},t.prototype.showObj=function(e){this.openContentBrowser({standAlone:!0,selection:[e.id()],disableDelete:!0})},t.prototype.selectObj=function(){var e=this,t=this.props.field.get(),n=t?[t.id()]:[];this.openContentBrowser({selection:n,standAlone:!1}).then((function(t){if(t.isSelected){var n=t.selection;e.props.field.update(n[0]||null)}}))},t.prototype.openContentBrowser=function(e){var t=this.props.attribute.validClasses(),n=t&&t.map((function(e){return e.name}));return Wn(du({},e,{selectionMode:"single",validObjClasses:n}))},t.displayName="PropertiesComponent.ReferenceAttributeComponent",t}(u.Component)),fu=function(e){return e.isPresent?u.createElement("span",{className:"clear_button delete_list_item_button scrivito_pull_right",title:scrivito.t("reference_attribute_component.clear_button.title"),onClick:e.onClick},u.createElement("i",{className:"scrivito_icon scrivito_icon_cancel"})):null},hu=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)}}(),mu=function(){return(mu=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)},_u=function(e){function t(t){var n=e.call(this,t)||this;return n.selectObj=n.selectObj.bind(n),n.onItemDelete=n.onItemDelete.bind(n),n.onSortEnd=n.onSortEnd.bind(n),n.onAddObjsClick=n.onAddObjsClick.bind(n),n.openContentBrowser=n.openContentBrowser.bind(n),n}return hu(t,e),t.shouldRenderTitle=function(){return!0},t.prototype.render=function(){return this.props.readOnly?u.createElement(vu,{objs:this.props.field.get(),openContentBrowser:this.openContentBrowser}):u.createElement("div",{className:"referencelist_attribute"},u.createElement(gu,{distance:10,helperClass:"scrivito_detail_content scrivito_detail_content_dragging",items:this.props.field.get(),lockToContainerEdges:!0,onItemClick:this.selectObj,onItemDelete:this.onItemDelete,onSortEnd:this.onSortEnd}),u.createElement(ku,{onClick:this.onAddObjsClick}))},t.prototype.onItemDelete=function(e,t){e.preventDefault(),e.stopPropagation();var n=this.props.field.get();n.splice(t,1),this.props.field.update(n)},t.prototype.onSortEnd=function(e){var t=e.oldIndex,n=e.newIndex;this.props.field.update(Object(tu.arrayMove)(this.props.field.get(),t,n))},t.prototype.selectObj=function(e,t){var n=this;e.preventDefault(),e.stopPropagation();var r=this.props.field.get();this.openContentBrowser({selection:[r[t].id()],selectionMode:"single",standAlone:!1}).then((function(e){e.isSelected&&n.props.field.update(r.slice(0,t).concat(e.selection,r.slice(t+1,r.length)))}))},t.prototype.onAddObjsClick=function(e){var t=this;e.preventDefault(),e.stopPropagation(),this.openContentBrowser({standAlone:!1}).then((function(e){e.isSelected&&t.props.field.update(t.props.field.get().concat(e.selection))}))},t.prototype.openContentBrowser=function(e){var t=this.props.attribute.validClasses(),n=t&&t.map((function(e){return e.name}));return Wn(mu({selection:[],selectionMode:"multi"},e,{validObjClasses:n}))},t.displayName="PropertiesComponent.ReferencelistAttributeComponent",t}(u.Component),vu=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.ReadOnlyReferencelist",render:function(){var e=this;return u.createElement("div",{className:"referencelist_attribute"},this.props.objs.map((function(t,n){return u.createElement(bu,{key:t.id()+"-"+n,obj:t,onClick:function(n){return e.showObj(n,t)},disabled:!0})})))},showObj:function(e,t){e.preventDefault(),e.stopPropagation(),this.props.openContentBrowser({selectionMode:"single",standAlone:!0,disableDelete:!0,selection:[t.id()]})}}),gu=Object(tu.SortableContainer)((function(e){return u.createElement("div",null,e.items.map((function(t,n){return u.createElement(yu,{index:n,key:n.toString(),onClick:function(t){return e.onItemClick(t,n)},onDelete:function(t){return e.onItemDelete(t,n)},value:t})})))}));gu.displayName="PropertiesComponent.SortableReferencelist";var yu=Object(tu.SortableElement)((function(e){return u.createElement("div",null,u.createElement(bu,{obj:e.value,onClick:e.onClick,onDelete:e.onDelete}))}));yu.displayName="PropertiesComponent.SortableReferencelistItem";var bu=function(e){return u.createElement("div",{className:"referencelist_attribute_item",onClick:e.onClick},u.createElement(uu,{obj:e.obj,isBrowsable:!0}),e.onDelete&&u.createElement(wu,{onClick:e.onDelete}))},wu=function(e){return u.createElement("span",mu({className:"delete_list_item_button scrivito_pull_right"},e),u.createElement("i",{className:"scrivito_icon scrivito_icon_trash"}))},ku=function(e){return u.createElement("div",mu({className:"add_list_items_button"},e),u.createElement("i",{className:"scrivito_icon scrivito_icon_plus"}))},Ou=S(_u),Cu=Ra("string",{render:function(){return u.createElement("input",{type:"text",value:this.props.field.get(),disabled:this.props.readOnly,onChange:this.onChange})},onChange:function(e){this.props.readOnly||this.props.field.update(e.target.value)}}),Mu=n(453);function Du(e){return{id:e,text:e}}var xu=Ra("stringlist",{getInitialState:function(){return{suggestions:[]}},render:function(){return this.props.readOnly&&0===this.props.field.get().length?React.createElement("div",{className:"scrivito_notice scrivito_blue"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("stringlist_item_component.read_stringlist.placeholder"))):React.createElement(Mu.WithContext,{allowDeleteFromEmptyInput:!1,autocomplete:!1,autofocus:!1,classNames:this._getClassNames(),handleAddition:this._handleAddition,handleDelete:this._handleDelete,handleDrag:this._handleDrag,handleFilterSuggestions:this._handleFilterSuggestions,handleInputChange:this._handleInputChange,minQueryLength:1,placeholder:scrivito.t("stringlist_item_component.edit_stringlist.add_placeholder"),readOnly:this.props.readOnly,suggestions:this.state.suggestions,tags:this._getFormattedStrings()})},_getClassNames:function(){return{activeSuggestion:"active_suggestion",remove:"remove",selected:"selected",suggestions:"suggestions",tag:"string",tagInput:"string_input",tagInputField:"string_input_field",tags:"strings "+(this.props.readOnly?"read_stringlist":"edit_stringlist")}},_getFormattedStrings:function(){return this._getStrings().map(Du)},_getStrings:function(){return Object(v.uniq)(this.props.field.get())},_hasString:function(e){return Object(v.contains)(this._getStrings(),e)},_handleAddition:function(e){this._hasString(e.text)||this.props.field.update(this._getStrings().concat([e.text]))},_handleDelete:function(e){var t=this._getStrings();t.splice(e,1),this.props.field.update(t)},_handleDrag:function(e,t,n){var r=this._getStrings();r.splice(t,1),r.splice(n,0,e.text),this.props.field.update(r)},_handleFilterSuggestions:function(e,t){var n=this;return t.filter((function(e){return!n._hasString(e.text.toLowerCase())}))},_handleInputChange:function(e){var t=this;this._input=e,W(this.props.field.name(),e).then((function(n){if(t._input===e){var r=n.map(Du);t.setState({suggestions:r})}}))}});function Eu(e,t){return Ra(e,{getInitialState:function(){return{}},render:function(){var t=0===this.props.field.get()?0:this.props.field.get()||"",n="edit_"+e;return this.props.readOnly&&(n="display_"+e),u.createElement("div",{className:n},u.createElement("input",{type:"text",value:this.state.displayValue||t.toString(),disabled:this.props.readOnly,onChange:this.onChange}),u.createElement(Su,{isPresent:this.canBeCleared(),onClick:this.onClear}))},onClear:function(e){e.preventDefault(),e.stopPropagation(),this.props.field.update(null),this.setState({displayValue:void 0})},canBeCleared:function(){return!this.props.readOnly&&null!==this.props.field.get()},onChange:function(e){if(!this.props.readOnly){var n=t(e.target.value),r=n.value,i=n.displayValue;Object(v.isNaN)(r)&&(r=0,i="0"),this.props.field.update(r),this.setState({displayValue:i})}}})}var Su=function(e){return e.isPresent?u.createElement("span",{className:"clear_button delete_list_item_button scrivito_pull_right",title:scrivito.t("number_attribute_component.clear_button.title"),onClick:e.onClick},u.createElement("i",{className:"scrivito_icon scrivito_icon_cancel"})):null},ju=Eu("float",(function(e){var t=parseFloat(e),n=function(e,t){return e===t+"."}(e,t)?e:t.toString();return{value:t,displayValue:n}}));var Tu=Ra("string",{render:function(){return u.createElement("textarea",{disabled:this.props.readOnly,onChange:this.onChange,value:Tt.a.replaceInternalLinks(this.props.field.get())})},onChange:function(e){this.props.readOnly||this.props.field.update(e.target.value)}}),Lu=Eu("integer",(function(e){var t=parseInt(e,10);return{value:t,displayValue:t.toString()}}));function Pu(e){return new no({id:"scrivito.sdk.save_widget_to_clipboard",title:scrivito.t("commands.save_widget_to_clipboard.title"),icon:["&#xf017;","entity"],present:function(){return!scrivito.editingContext.isDiffMode()},execute:function(){scrivito.widgetClipboard.saveWidget(e)}})}function Au(e){return new no({id:"scrivito.sdk.duplicate_widget",title:scrivito.t("commands.duplicate_widget.title"),icon:["&#xf015;","entity"],present:function(){return!scrivito.editingContext.isDiffMode()},execute:function(){e.copy().insertAfter(e),di(e.containingField())}})}function Nu(e){return new no({id:"scrivito.sdk.delete_widget",title:scrivito.t("commands.delete_widget.title"),icon:["&#xf018;","entity"],execute:function(){(function(e){return Object(H.load)((function(){return e.modification()})).then((function(e){return scrivito.confirmation_dialog({title:scrivito.t("commands.delete_widget.dialog.title"),description:Iu(e),icon:"&#xf018;",color:"red",confirm_button_text:scrivito.t("commands.delete_widget.dialog.confirm"),confirm_button_color:"red"})}))})(e).then((function(){return e.remove()}))}})}function Iu(e){return"new"===e?scrivito.t("commands.delete_widget.dialog.description.irreversible"):"edited"===e?scrivito.t("commands.delete_widget.dialog.description.restorable_unchanged"):scrivito.t("commands.delete_widget.dialog.description.restorable")}function Yu(e){var t=ft.a.find(e)||_n.a.find(e);return t?t.title():e}function Ru(e,t){return new no({id:"scrivito.sdk.copy_widget_from_clipboard",title:function(){return scrivito.t("commands.copy_widget_from_clipboard.title")},icon:["&#xf015;","entity"],present:function(){return!scrivito.editingContext.isDiffMode()&&scrivito.widgetClipboard.isPresent()&&(t||g.a.isEmpty(e.get()))},disabled:function(){var t=scrivito.widgetClipboard.objClass(),n=_n.a.validClassNamesForField(e);if(!g.a.contains(n,t))return function(e){var t=g.a.map(e,Yu);return scrivito.t("commands.copy_widget_from_clipboard.paste_forbidden",t.join(", "))}(n)},execute:function(){var n=scrivito.widgetClipboard.widget();t?n.insertBefore(t):e.update([n]),di(e)}})}function Fu(e,t){var n=void 0===t?{}:t,r=n.widget,i=n.position,o=_n.a.validClassNamesForField(e),a=o[0],s=Yu(a);return new no({id:"scrivito.sdk.create_widget",title:scrivito.t("commands.create_widget.title",s),icon:["&#xf022;","entity"],present:function(){return!scrivito.editingContext.isDiffMode()&&(r||g.a.isEmpty(e.get()))&&1===o.length},execute:function(){var t=_n.a.get(a).newWidgetWithDefaults().then((function(t){return function(e,t,n,r){n?"bottom"===r?t.insertAfter(n):t.insertBefore(n):e.update([t]);di(e)}(e,t,r,i)}));return scrivito.withSavingOverlay(t)}})}function Hu(e,t){var n=void 0===t?{}:t,r=n.widget,i=n.position,o=_n.a.validClassesForField(e);return new no({id:"scrivito.sdk.choose_and_create_widget",title:scrivito.t("commands.choose_and_create_widget.title"),icon:["&#xf022;","entity"],present:function(){return!scrivito.editingContext.isDiffMode()&&(r||g.a.isEmpty(e.get()))&&1!==o.length},disabled:function(){if(!o.length)return scrivito.t("commands.choose_and_create_widget.disabled")},execute:function(){return function(e){return uo.open((function(){return e}),"create_widget")}(o).then((function(t){if(t){scrivito.ObjCreationHistory.store(t.name);var n=t.newWidgetWithDefaults().then((function(t){return function(e,t,n,r){n?"bottom"===r?t.insertAfter(n):t.insertBefore(n):e.update([t]);di(e)}(e,t,r,i)}));return scrivito.withSavingOverlay(n)}}))}})}var Wu=function(e,t){var n=e.containingField();(1===_n.a.validClassNamesForField(n).length?Fu:Hu)(n,{widget:e,position:t}).execute()};function Bu(e,t,n){ci(e,[Fu(t),Hu(t),Ru(t)],{relativePosition:n})}var zu,Uu=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)}}(),qu=S(((zu=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Uu(t,e),t.prototype.render=function(){var e=this;return u.createElement("div",{className:"scrivito_empty_widget_field",ref:function(t){return e.widgetlist=t},onClick:this.onClick})},t.prototype.onClick=function(e){if(e.preventDefault(),e.stopPropagation(),this.widgetlist){var t=this.widgetlist.getBoundingClientRect(),n=t.left,r=t.top;Bu(this.widgetlist,this.props.field,{x:e.pageX-n,y:e.pageY-r})}},t}(u.Component)).displayName="PropertiesComponent.EditableEmptyWidgetlist",zu)),Vu=Ra("widgetlist",{render:function(){var e=this.props.field.get();return this.props.readOnly?React.createElement($u,{widgets:e}):React.createElement(Gu,{field:this.props.field})}}),$u=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.ReadOnlyWidgetlist",propTypes:{widgets:c.a.arrayOf(c.a.instanceOf(F.BasicWidget)).isRequired},render:function(){var e=this.props.widgets;return 0===e.length?React.createElement("div",{className:"scrivito_notice scrivito_blue"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("widgetlist_attribute_component.is_empty"))):React.createElement("div",{className:"scrivito_widget_list read_only"},e.map((function(e){return React.createElement(Qu,{key:e.id(),widget:e})})))}}),Gu=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.EditableWidgetlist",propTypes:{field:c.a.instanceOf(F.BasicField).isRequired},render:function(){var e=this.props.field.get();return 0===e.length?React.createElement(qu,{field:this.props.field}):React.createElement(Ku,{widgets:e,onSortEnd:this._onSortEnd,helperClass:"scrivito_detail_content_dragging",distance:10,lockToContainerEdges:!0,transitionDuration:0,useDragHandle:!0})},_onSortEnd:function(e){var t=e.newIndex,n=e.oldIndex,r=this.props.field;r.update(Object(tu.arrayMove)(r.get(),n,t))}}),Ku=Object(tu.SortableContainer)(scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.SortableWidgetlistContainer",propTypes:{widgets:c.a.arrayOf(c.a.instanceOf(F.BasicWidget)).isRequired},render:function(){return React.createElement("ul",{className:"scrivito_widget_list"},this.props.widgets.map((function(e,t){return React.createElement(Xu,{key:e.id(),index:t,widget:e})})))}})),Ju=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.WidgetItem",propTypes:{showDetails:c.a.bool,toggleDetails:c.a.func,widget:c.a.instanceOf(F.BasicWidget).isRequired},render:function(){var e=this.props,t=e.showDetails,n=e.showMarker,r=e.widget,i=gn(r);return React.createElement("div",{className:"scrivito_widget_list_item"},n&&React.createElement(el,{widget:r}),React.createElement("div",{className:"list_item_content"},this._renderDetailsToggle(),React.createElement("span",{className:"item_content_body"},i),t&&React.createElement(Ll,{content:r})),n&&React.createElement("div",null,React.createElement(O.i,{widget:r,position:"top",insertWidget:Wu}),React.createElement(O.i,{widget:r,position:"bottom",insertWidget:Wu})))},_renderDetailsToggle:function(){var e=this.props,t=e.showDetails,n=e.toggleDetails;if(ca(e.widget)){var r="scrivito_icon scrivito_icon_chevron_down";return t&&(r="scrivito_icon scrivito_icon_chevron_up"),React.createElement("span",{className:"item_content_icon",onClick:n},React.createElement("i",{className:r}))}}}),Qu=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.ReadOnlyWidgetItem",propTypes:{widget:c.a.instanceOf(F.BasicWidget).isRequired},getInitialState:function(){return{showDetails:!1}},render:function(){var e=this.props.widget;return React.createElement("div",null,React.createElement(Ju,{showDetails:this.state.showDetails,showMarker:!1,toggleDetails:this._toggleDetails,widget:e}))},_toggleDetails:function(){this.setState({showDetails:!this.state.showDetails})}}),Zu=Object(tu.SortableHandle)(Ju),Xu=Object(tu.SortableElement)(scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.WidgetItem",propTypes:{widget:c.a.instanceOf(F.BasicWidget).isRequired},getInitialState:function(){return{showDetails:!1}},render:function(){var e=this.props.widget;return React.createElement("div",null,React.createElement(Zu,{showDetails:this.state.showDetails,showMarker:!0,toggleDetails:this._toggleDetails,widget:e}))},_toggleDetails:function(){this.setState({showDetails:!this.state.showDetails})}})),el=scrivito.legacyCreateConnectedComponent({displayName:"Scrivito.ContentTag.MenuMarker",propTypes:{widget:c.a.instanceOf(F.BasicWidget).isRequired},render:function(){return React.createElement("span",{className:"scrivito_editing_marker",onClick:this._onClick},React.createElement("i",{className:"scrivito_icon"}))},_onClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.props.widget,n=t.containingField();ci(Object(d.findDOMNode)(this),[Au(t),Pu(t),Ru(n,t),new No({id:"scrivito.sdk.widget_commands.separator1"}),Nu(t)])}}),tl=Vu;var nl,rl,il=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)}}(),ol=Ya("backlinks",{shouldRenderTitle:!1,shouldRenderLoaderError:!0,render:function(){var e=this.props.content.backlinks();return e.length?u.createElement("ul",null,e.map((function(e){return u.createElement("li",{key:e.id()},u.createElement(al,{backlink:e}))}))):u.createElement(sl,{obj:this.props.content})}}),al=S(((nl=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return il(t,e),t.prototype.render=function(){var e=this;return u.createElement("a",{href:"#",ref:function(t){return e.ref=t},onClick:this.onClick},vn(this.props.backlink))},t.prototype.onClick=function(e){var t,n;this.ref&&(e.preventDefault(),e.stopPropagation(),ci(this.ref,[(n=this.props.backlink.id(),new no({id:"scrivito.sdk.open_obj_in_content_browser",icon:["&#xf135;","entity"],title:scrivito.t("commands.open_obj_in_content_browser.title"),execute:function(){Wn({selectionMode:"single",standAlone:!0,selection:[n],disableDelete:!0})}})),(t=this.props.backlink,new no({id:"scrivito.sdk.open_obj_in_new_ui_window",title:scrivito.t("commands.open_obj_in_new_ui_window.title"),icon:["&#xf02c;","entity"],execute:function(){rn(t)}}))],{relativePosition:Object(z.r)(e,this.ref)}))},t}(u.Component)).displayName="BacklinksItemComponent.Backlink",nl.shouldRenderLoaderError=!0,nl)),sl=S(((rl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return il(t,e),t.prototype.render=function(){return u.createElement("div",{className:"scrivito_notice scrivito_blue"},u.createElement("div",{className:"scrivito_notice_icon"},u.createElement("i",{className:"scrivito_icon scrivito_icon_information"})),u.createElement("div",{className:"scrivito_notice_body"},scrivito.t("backlinks_item_component.no_backlinks_box.message",vn(this.props.obj))))},t}(u.Component)).displayName="BacklinksItemComponent.NoBacklinksBox",rl)),cl=["contentLength","contentType","filename","filesize","height","width"],ul=Ya("binaryMetadata",{shouldRenderTitle:!1,render:function(){var e,t=this.props.content.metadata();return t?(function(e){if(!tn(e))return!1;var t=e.get("blob",["binary"]);if(!t)return!1;return t.isImage()}(this.props.content)&&(e=u.createElement("div",{className:"row"},u.createElement(ll,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.height"),metadataValue:t.get("height")+" px"}),u.createElement(ll,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.width"),metadataValue:t.get("width")+" px"}))),u.createElement("div",null,u.createElement(ll,{metadataKey:scrivito.t("binary_metadata_item_component.filename"),metadataValue:t.get("filename")}),u.createElement("div",{className:"row"},u.createElement(ll,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.content_type"),metadataValue:t.get("contentType")}),u.createElement(ll,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.content_length"),metadataValue:pn(t.get("contentLength"))})),e,v.without.apply(void 0,[t.keys()].concat(cl)).sort().map((function(e){return u.createElement(ll,{key:e,metadataKey:Object(z.N)(e),metadataValue:t.get(e)})})))):null}}),ll=function(e){var t=e.metadataKey,n=e.metadataValue,r=e.className;return u.createElement("div",{className:"metadata-item "+r},u.createElement("div",{className:"scrivito_detail_label"},u.createElement("span",null,t)),u.createElement("input",{value:dl(n),type:"text",disabled:!0}))};function dl(e){return null===e?"":Object(v.isDate)(e)?us(e).format("lll"):Object(v.isArray)(e)?e.join(", "):e.toString()}ll.displayName="PropertiesComponent.BinaryMetadataItemComponent.MetadataItem";var pl=Ya("history",{shouldRenderTitle:!1,render:function(){return u.createElement("div",null,u.createElement("div",{className:"row"},u.createElement("div",{className:"col-sm-6"},u.createElement("div",{className:"scrivito_detail_label"},u.createElement("span",null,scrivito.t("item_description.system.history.created_at"))),u.createElement("div",{className:"input_group"},u.createElement("span",{className:"input_group_icon scrivito_icon_time"}),u.createElement("span",{className:"read_only"},this.formatDate(this.props.content.createdAt())))),u.createElement("div",{className:"col-sm-6"},u.createElement("div",{className:"scrivito_detail_label"},u.createElement("span",null,scrivito.t("item_description.system.history.last_changed"))),u.createElement("div",{className:"input_group"},u.createElement("span",{className:"input_group_icon scrivito_icon_time"}),u.createElement("span",{className:"read_only"},this.formatDate(this.props.content.lastChanged()))))),u.createElement("div",{className:"row"},u.createElement("div",{className:"col-sm-6"},u.createElement("div",{className:"scrivito_detail_label"},u.createElement("span",null,scrivito.t("item_description.system.history.created_by"))),u.createElement("div",{className:"input_group"},u.createElement("span",{className:"input_group_icon scrivito_icon_user"}),u.createElement("span",{className:"read_only"},this.getDescriptionForUser(this.props.content.createdBy())))),u.createElement("div",{className:"col-sm-6"},u.createElement("div",{className:"scrivito_detail_label"},u.createElement("span",null,scrivito.t("item_description.system.history.last_changed_by"))),u.createElement("div",{className:"input_group"},u.createElement("span",{className:"input_group_icon scrivito_icon_user"}),u.createElement("span",{className:"read_only"},this.getDescriptionForUser(this.props.content.lastChangedBy()))))))},getDescriptionForUser:function(e){if(e)try{return He.get(e).description||this.defaultDescriptionTextFor(e)}catch(t){if(t instanceof Be)return this.defaultDescriptionTextFor(e);throw t}return scrivito.t("item_description.system.history.not_available")},formatDate:function(e){return e?us(e).format("lll"):scrivito.t("item_description.system.history.not_available")},defaultDescriptionTextFor:function(e){return scrivito.t("item_description.system.history.user_description_not_available",e)}}),fl=Ya("id",{render:function(){return u.createElement("span",{className:"read_only"},this.props.content.id())}}),hl=Ya("objClass",{render:function(){return u.createElement("span",{className:"read_only"},this.props.content.objClass())}}),ml=Ya("path",{render:function(){return u.createElement("span",{className:"read_only"},this.props.content.path())}});function _l(e,t){var n=e.permalink();(function(e,t,n){return Aa.open({title:e,description:n,placeholder:scrivito.t("workflows.change_permalink.dialog.placeholder"),value:t,icon:"&#xf04e;",okButtonText:scrivito.t("workflows.change_permalink.dialog.change")}).then((function(e){return null===e?t:""===e?null:St(e).normalizePathname().toString().replace(/^\/|\/$/g,"")}))})((function(){return scrivito.t("workflows.change_permalink.dialog.title",vn(e))}),n,t).then((function(t){t!==n&&(t?function(e,t){var n=St(e).segment(0);if(n&&"scrivito"===n.toLowerCase())return z.j.resolve("is_scrivito");if(!e.match(/^([\w._-]+[\/\w._-]*)?$/))return z.j.resolve("is_invalid");var r=t.id();return Object(H.load)((function(){return Tt.a.getSiteIdForObj(r)})).then((function(t){return t?function(e,t){return scrivito.withSavingOverlay(Object(H.load)((function(){return F.BasicObj.getAllByPermalink(e).map((function(e){return Tt.a.getSiteIdForObj(e.id())}))}))).then((function(e){if(e.some((function(e){return!e||e===t})))return"is_taken"}))}(e,t):function(e){return scrivito.withSavingOverlay(Object(H.load)((function(){return F.BasicObj.getByPermalink(e)}))).then((function(e){if(e)return"is_taken"}))}(e)}))}(t,e).then((function(n){n?_l(e,scrivito.t("workflows.change_permalink.info."+n,t)):e.update({_permalink:[t]})})):e.update({_permalink:[null]}))}))}var vl=S((function(e){var t=e.content.permalink()||scrivito.t("permalink_item_component.permalink.is_empty");return e.readOnly?u.createElement("span",{className:"read_only"},t):u.createElement("div",{className:"input_group"},u.createElement("span",{className:"input_group_icon scrivito_icon_link_perm"}),u.createElement("span",{className:"read_only scrivito_permalink_clickable",onClick:function(){return _l(e.content)}},t))})),gl=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)}}(),yl=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gl(t,e),t.prototype.render=function(){var e=this.props,t=e.content;if(e.readOnly){var n=t.isRestricted()?"restricted":"public";return u.createElement("span",{className:"read_only"},scrivito.t("restriction_editor.restriction."+n))}return u.createElement("ul",{className:"enum_attribute"},u.createElement("li",{className:t.isRestricted()?"":"enum_attribute_active",onClick:function(){return t.unrestrict()}},scrivito.t("restriction_editor.restriction.public")),u.createElement("li",{className:t.isRestricted()?"enum_attribute_active":"",onClick:function(){return t.restrict()}},scrivito.t("restriction_editor.restriction.restricted")))},t}(u.Component)),bl=Ya("permalink_and_restriction",{shouldRenderTitle:!1,render:function(){return u.createElement("div",{className:"row"},u.createElement("div",{className:"col-sm-6"},u.createElement("div",{className:"scrivito_detail_label"},u.createElement("span",null,scrivito.t("item_description.system.permalink.title"))),u.createElement(vl,{content:this.props.content,readOnly:this.props.readOnly})),!Object(re.b)()&&u.createElement("div",{className:"col-sm-6"},u.createElement("div",{className:"scrivito_detail_label"},u.createElement("span",null,scrivito.t("item_description.system.restriction.title"))),u.createElement(yl,{content:this.props.content,readOnly:this.props.readOnly}),u.createElement("div",{className:"scrivito_notice_body"},u.createElement("span",null,scrivito.t("item_description.system.restriction.description")))))}});var wl=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)}}(),kl=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wl(t,e),t.prototype.render=function(){var e=this.getComponentClassForItemDescription();if(!e)return null;var t,n=this.props.item.id;e.shouldRenderTitle()&&(t=u.createElement("div",{className:"scrivito_detail_label"},u.createElement("span",null,this.title())));var r,i=this.description();i&&(r=u.createElement("div",{className:"scrivito_notice_body"},i));var o=Object(z.R)(n).replace(/\./g,"_")+"_item scrivito_detail_content";return u.createElement("div",{className:o},t,u.createElement("div",{className:"item_content"},this.renderContent(e)),r)},t.prototype.title=function(){if(this.isSystemAttribute())return scrivito.t("item_description."+Object(z.R)(this.props.item.id)+".title");var e=this.getCustomAttribute();return e?e.title():void 0},t.prototype.description=function(){if(!this.isSystemAttribute()){var e=this.getCustomAttribute();if(e)return e.description()}},t.prototype.renderContent=function(e){var t={readOnly:Mo.selected.isPublished()};if(this.isSystemAttribute())t.content=this.props.content;else{var n=this.getCustomAttribute();if(!n)return null;t.field=new F.BasicField(this.props.content,n.name,n.typeInfo()),t.attribute=n}return u.createElement(e,t)},t.prototype.getCustomAttribute=function(){var e=ta(this.props.content);if(e)return e.attribute(this.props.item.attribute)},t.prototype.isSystemAttribute=function(){return this.props.item.id.match(/^system\./)},t.prototype.getComponentClassForItemDescription=function(){return this.isSystemAttribute()?function(e){switch(e){case"system.backlinks":return ol;case"system.binaryMetadata":return ul;case"system.history":return pl;case"system.id":return fl;case"system.objClass":return hl;case"system.path":return ml;case"system.permalinkAndRestriction":return bl}}(this.props.item.id):function(e,t){var n=ta(t);if(n){var r=n.attribute(e);if(r)switch(r.type){case"binary":return Ha;case"date":return Ic;case"enum":return Yc;case"float":return ju;case"html":return Tu;case"integer":return Lu;case"link":return eu;case"linklist":return au;case"multienum":return su;case"reference":return pu;case"referencelist":return Ou;case"string":return Cu;case"stringlist":return xu;case"widgetlist":return tl}}return null}(this.props.item.attribute,this.props.content)},t.displayName="PropertiesComponent.Inspector.Item",t}(u.Component)),Ol=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)}}(),Cl=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activeTab:Ml(n.props.groups[0])},n}return Ol(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.groups,r=t.activeTab,i=Object(v.map)(n,Ml);return r&&!Object(v.contains)(i,r)?{activeTab:i[0]}:null},t.prototype.render=function(){var e=this;return l.a.createElement("div",{className:"inspector"},l.a.createElement("ul",{className:"scrivito_tab_nav"},this.props.groups.map((function(t){var n=Ml(t);return l.a.createElement(Dl,{key:n,isActive:e._isActiveTab(n),title:t.title,onClick:function(){return e._setActiveTab(n)}})}))),l.a.createElement("div",{className:"scrivito_tab_content"},this.props.groups.map((function(t){var n=Ml(t);return l.a.createElement(xl,{key:n,content:e.props.content,group:t,isActive:e._isActiveTab(n)})}))))},t.prototype._setActiveTab=function(e){this.setState({activeTab:e})},t.prototype._isActiveTab=function(e){return this.state.activeTab===e},t}(l.a.Component);function Ml(e){return pa(e.title)}function Dl(e){var t,n=e.title,r=e.isActive,i=e.onClick;return r&&(t="active"),l.a.createElement("li",{className:t,onClick:i},l.a.createElement("span",null,n))}Cl.displayName="PropertiesComponent.Inspector",Dl.displayName="PropertiesComponent.Inspector.TabTitle";var xl=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasError:!1},n}return Ol(t,e),t.prototype.componentDidCatch=function(){this.setState({hasError:!0})},t.prototype.render=function(){var e,t="scrivito_tab_pane";return this.props.isActive&&(t+=" active"),this.state.hasError?l.a.createElement("div",{className:t}):(e=this.props.group.items?l.a.createElement(El,{content:this.props.content,items:this.props.group.items}):l.a.createElement(ga,{name:da()(this.props.group.title),content:this.props.content,componentId:this.props.group.component,isActive:this.props.isActive}),l.a.createElement("div",{className:t},e))},t}(l.a.Component);function El(e){var t=e.content,n=e.items;return l.a.createElement("div",{className:"group"},n.map((function(e){return l.a.createElement(kl,{key:e.id,item:e,content:t})})))}xl.displayName="PropertiesComponent.Inspector.TabContent",El.displayName="PropertiesComponent.Inspector.ItemGroup";var Sl=S(Cl);var jl,Tl=b()({displayName:"PropertiesComponent.LegacyDetails",propTypes:{src:c.a.string.isRequired,updateSize:c.a.func},getInitialState:function(){return{isLoaded:!1}},render:function(){var e;return this.state.isLoaded||(e=React.createElement("i",{className:"scrivito_icon scrivito_spinning"},"")),React.createElement("div",{className:"scrivito_details_dialog_markup"},e,React.createElement("iframe",{name:"scrivito_details_dialog",src:this.props.src,ref:this._ref,onLoad:this._onLoad}))},_ref:function(e){e&&(this._$iframe=$(e))},_onLoad:function(){this.setState({isLoaded:!0});var e=this._$iframe.contents();if(function(e){e.find("body").hasClass("scrivito_dialog")&&!e.get(0).defaultView.scrivito&&jr('\n      Missing required Scrivito assets in the details dialog.\n      Are you sure your "scrivito_dialog.html.*" sources the Scrivito assets?\n    ')}(e),this.props.updateSize){var t=e.find("[data-scrivito-modal-size]").attr("data-scrivito-modal-size");this.props.updateSize(t)}}}),Ll=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent",propTypes:{content:c.a.oneOfType([c.a.instanceOf(F.BasicObj),c.a.instanceOf(F.BasicWidget)]).isRequired,updateSize:c.a.func},render:function(){var e=ua(this.props.content);if(e.groups)return React.createElement(Sl,{content:this.props.content,groups:e.groups});if(e.iframeSrc)return React.createElement(Tl,{key:Object(O.o)(this.props.content),src:e.iframeSrc,updateSize:this.props.updateSize});throw new z.g("Received invalid properties description")}}),Pl=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)}}(),Al=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pl(t,e),t.prototype.render=function(){return u.createElement(Ll,{content:this.props.getContent(),updateSize:this.props.updateSize})},t.displayName="DetailsDialog.DialogContent",t.shouldRenderLoaderError=!0,t}(u.Component)),Nl=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)}}(),Il=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nl(t,e),t.prototype.render=function(){var e=this.props.getContent();return u.createElement("span",{className:"dialog_title"},this.getTitle(e))},t.prototype.getTitle=function(e){return null===e?"":scrivito.t(this.getTranslationKey(),this.getContentTitle(e))},t.prototype.getTranslationKey=function(){var e="details_dialog.title";return scrivito.editingContext.isEditingMode()&&(e+=".editing_mode"),e},t.prototype.getContentTitle=function(e){return e instanceof F.BasicObj?vn(e):gn(e)},t.displayName="DetailsDialog.DialogTitle",t.shouldRenderLoaderError=!0,t}(u.Component)),Yl=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)}}(),Rl=function(){return(Rl=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)},Fl=["small","medium","large"];function Hl(e){return q((function(t){return u.createElement(Wl,Rl({},e,t))}))}var Wl=S(((jl=function(e){function t(t){var n=e.call(this,t)||this;return n.state={size:"medium"},n.updateSize=n.updateSize.bind(n),n.getContent=n.getContent.bind(n),n.onClose=n.onClose.bind(n),n}return Yl(t,e),t.prototype.componentDidMount=function(){this.updateHeight()},t.prototype.componentDidUpdate=function(){this.updateHeight()},t.prototype.render=function(){return u.createElement("div",{className:this.className()},u.createElement("div",{className:"scrivito_modal_header"},u.createElement("h3",null,u.createElement("i",{className:"scrivito_icon"},""),u.createElement(Il,{getContent:this.getContent}))),u.createElement("div",{className:"scrivito_modal_body scrivito_auto_height"},u.createElement(Al,{getContent:this.getContent,updateSize:this.updateSize})),u.createElement("div",{className:"scrivito_modal_footer"},u.createElement("a",{className:"scrivito_button scrivito_cancel scrivito_green",onClick:this.onClose},scrivito.t("details_dialog.close"))))},t.prototype.className=function(){return"scrivito_details_dialog scrivito_modal_"+this.state.size+" scrivito_show adjust_dialog"},t.prototype.onClose=function(e){e.preventDefault(),this.props.dialogDone(void 0)},t.prototype.updateHeight=function(){var e=d.findDOMNode(this);if(e){scrivito.dialog.adjust($(e));var t=e.querySelector(".scrivito_modal_body");t&&scrivito.dialog.adjust($(t))}},t.prototype.getContent=function(){var e=F.BasicObj.get(this.props.objId);return e&&this.props.widgetId?e.widget(this.props.widgetId):e},t.prototype.updateSize=function(e){-1!==Fl.indexOf(e)&&this.setState({size:e})},t}(u.Component)).displayName="DetailsDialog",jl));function Bl(){Object(re.b)()&&scrivito.applicationWindow.reload()}var zl=function(e){return new no({id:"scrivito.sdk.open_page_details",icon:["&#xf030;","entity"],title:function(){return scrivito.editingContext.isEditingMode()?scrivito.t("commands.open_page_details.title.editing_mode"):scrivito.t("commands.open_page_details.title")},disabled:function(){if(Object(re.b)()&&!ea(F.BasicObj.getIncludingDeleted(e).objClass()))return scrivito.t("commands.open_page_details.is_disabled")},execute:function(){return scrivito.WriteMonitor.trackChanges((function(){return Hl({objId:e})}),Bl)}})};var Ul=function(e){return new no({id:"scrivito.sdk.open_page_link_dialog",icon:["&#xf04e;","entity"],title:scrivito.t("commands.open_page_link_dialog.title"),disabled:function(){if(F.BasicObj.getIncludingDeleted(e).isDeleted())return scrivito.t("commands.open_page_link_dialog.is_deleted")},execute:function(){scrivito.current_page_link_dialog()}})};function ql(e){var t=e.objData;return Kl(e.id()).then((function(e){if(!e)throw new z.h("The Obj cannot be reverted because it has been removed from published contents meanwhile.");var n=Object(xr.e)(t.get(),e);return t.update(n),t.finishSaving()}))}function Vl(e){var t=e.objData;return t.update({_marked_deleted:null}),t.finishSaving()}function $l(e,t){var n=e.objData;return Kl(e.id()).then((function(e){var r;if(!e)throw new z.h("The Widget cannot be reverted because its Obj has been removed from published contents meanwhile.");var i=e._widget_pool[t];if(!i)throw new z.h("The Widget cannot be reverted because it has been removed from published contents meanwhile.");var o=n.get()._widget_pool[t];if(!o)throw new z.h("The Widget cannot be reverted, because it has been deleted meanwhile. Try restore instead.");var a=Object(xr.e)(Jl(o),Jl(i));return n.update({_widget_pool:(r={},r[t]=a,r)}),n.finishSaving()}))}function Gl(e,t){var n=e.objData;return Kl(e.id()).then((function(r){if(!r)throw new z.h("The Widget cannot be restored because its Obj has been removed from published contents meanwhile.");var i=r._widget_pool[t];if(!i)throw new z.h("The Widget cannot be restored because it has been removed from published contents meanwhile.");var o=Object(xr.f)(r,t),a=o.parentWidgetId,s=o.attributeName,c=a?e.widget(a):e;return function(e,t){var n=e.get().map((function(e){return e.id()}));if(!n.length)return z.j.resolve([t]);return Object(H.load)((function(){return e.getDiff()})).then((function(e){var r=function(e,t){if(Object(de.i)(e)){var n=[],r=0,i=!0;if(e.content.forEach((function(e){var o=e[0];e[1]===t?(n.push(o),i=!1):i&&"-"!==o&&r++})),1===n.length&&"-"===n[0])return r}throw new z.g("The Widget could not be restored: unexpected diff for widgetlist")}(e,t),i=n.slice();return i.splice(r,0,t),i}))}(new F.BasicField(c,s,["widgetlist"]),t).then((function(e){var r,o,c,u,l;return a?l={_widget_pool:(r={},r[t]=Jl(i),r[a]=(o={},o[s]=["widgetlist",e],o),r)}:((c={_widget_pool:(u={},u[t]=Jl(i),u)})[s]=["widgetlist",e],l=c),n.update(l),n.finishSaving()}))}))}function Kl(e){var t=Mo.selected.id,n=[e];return de.d.get("workspaces/"+t+"/base_objs/mget",{ids:n}).then((function(e){return e.results[0]}))}function Jl(e){return v.omit(e,de.h)}var Ql=function(e){return new no({id:"scrivito.sdk.revert_obj",title:scrivito.t("commands.revert_obj.title"),icon:["&#xf032;","entity"],present:function(){return scrivito.editingContext.isMutable()&&F.BasicObj.get(e)},disabled:function(){var t=F.BasicObj.get(e);return t.isModified()?t.isNew()?scrivito.t("commands.revert_obj.is_new"):void 0:scrivito.t("commands.revert_obj.unmodified")},execute:function(){scrivito.confirmation_dialog({title:scrivito.t("commands.revert_obj.dialog.title"),description:scrivito.t("commands.revert_obj.dialog.description"),icon:"&#xf032;",color:"red",confirm_button_text:scrivito.t("commands.revert_obj.dialog.confirm"),confirm_button_color:"red"}).then((function(){return function(e){scrivito.withSavingOverlay(ql(F.BasicObj.get(e)).then((function(){return scrivito.applicationWindow.reload()})))}(e)}))}})};var Zl=function(e){return new no({id:"scrivito.sdk.save_obj_to_clipboard",title:scrivito.t("commands.save_obj_to_clipboard.title"),icon:["&#xf017;","entity"],disabled:function(){var t=F.BasicObj.getIncludingDeleted(e);return t.isDeleted()?scrivito.t("commands.save_obj_to_clipboard.is_deleted"):t.hasChildren()?scrivito.t("commands.save_obj_to_clipboard.has_children"):void 0},execute:function(){Object(H.load)((function(){return F.BasicObj.get(e)})).then(scrivito.objClipboard.save)}})};function Xl(){return ed().get()||{}}function ed(){return pe.p.subState("menuPatch")}var td=function(){return(td=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 nd(){var e=Xl();if(!e.insertIds)return[];var t=e.items||{};return e.insertIds.map((function(e){return td({apiId:e},t[e])}))}function rd(e){var t=e.map((function(e){return{apiId:e.apiId,group:e.group}})).slice();return e.forEach((function(e){return function(e,t){var n,r=e.position?e.position.after:void 0,i=e.position?e.position.before:void 0;if(i)n=id(t,i);else{if(!r)return;n=function(e,t){var n=Object(v.findLastIndex)(e,(function(e){return e.apiId===t||e.group===t}));return-1===n?e.length:n+1}(t,r)}var o=id(t,e.apiId);t.splice(o,1),n>o&&(n-=1);t.splice(n,0,e)}(e,t)})),t}function id(e,t){return Math.max(Object(v.findIndex)(e,(function(e){return e.apiId===t||e.group===t})),0)}var od=function(){return(od=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 ad(e){var t=Xl().modifyItems,n=t&&t[e.apiId];return od({},e,Object(v.pick)(n,"group","position"))}var sd=function(){return(sd=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 cd(){return function(e){var t,n=function(){var e={"system.createPage":Vo(),"system.openUserGuide":new no({id:"scrivito.sdk.open_user_guide",title:scrivito.t("commands.open_user_guide.title"),icon:["&#xf01c;","entity"],execute:function(){var e=Object(re.b)()?"https://scrivito.com/rails/user-guide":"https://scrivito.com/user-guide";scrivito.open(e,"blank")}})};nd().forEach((function(t){var n,r;e[t.apiId]=(n=t.apiId,r=Object(v.pick)(t,"description","enabled","icon","title"),new no({id:"scrivito.extendMenu."+n,disabled:!1===r.enabled,title:r.title||n,tooltip:r.description,icon:r.icon?[r.icon,"url"]:["&#xf000;","entity"],execute:function(){Tt.a.executeCustomCommand(n)}}))}));var t=scrivito.applicationDocument();if(!t||!t.hasCurrentPage())return e;var n=t.pageId(),r={isCurrentPageCommand:!0};return sd({},e,{"system.addSubpage":Io(n,r),"system.duplicateObj":Ko(n),"system.openPageDetails":zl(n),"system.openPageLinkDialog":Ul(n),"system.saveObjToClipboard":Zl(n),"system.copyObjFromClipboard":zo(n,r),"system.moveObjFromClipboard":Qo(n,r),"system.markResolvedObj":Jo(n),"system.restoreObj":(i=n,void 0===o&&(o="commands.restore_obj"),new no({id:"scrivito.sdk.restore_obj",title:scrivito.t(o+".title"),icon:["&#xf032;","entity"],present:function(){return F.BasicObj.getIncludingDeleted(i).isDeleted()},execute:function(){scrivito.withSavingOverlay(Object(H.load)((function(){return F.BasicObj.getIncludingDeleted(i)})).then((function(e){return Vl(e)})).then((function(){return scrivito.reload()})))}})),"system.revertObj":Ql(n),"system.deleteObj":Go(n),"system.openDashboard":new no({id:"scrivito.sdk.open_dashboard",icon:["&#xf000;","entity"],title:scrivito.t("commands.open_dashboard.title"),present:function(){return!Object(re.b)()},execute:function(){var e="https://my.scrivito.com/tenants/"+de.d.tenant;scrivito.open(e,"blank")}}),"system.enableTour":new no({id:"scrivito.sdk.enable_tour",title:scrivito.t("commands.enable_tour.title"),icon:["&#xf144;","entity"],disabled:function(){if(qt())return scrivito.t("commands.enable_tour.is_disabled")},execute:function(){zt()}})});var i,o}(),r=1;return e.filter((function(e){return n[e.apiId]})).reduce((function(e,i){var o=t&&t.group!==i.group;t=i;var a,s,c=n[i.apiId];return function(e,t){var n=Xl().modifyItems,r=n&&n[e];if(!r)return;r.icon&&t.updateParams({icon:[r.icon,"url"]});r.title&&t.updateParams({title:r.title})}(i.apiId,c),e.concat(o?[(a=r++,s="scrivito.sdk.currentPageCommands.separator"+a,new No({id:s}))]:[],[c])}),[])}(function(e){var t=Xl().removeIds;return t?e.filter((function(e){return-1===t.indexOf(e.apiId)})):e}(rd([{group:"system.create",apiId:"system.createPage"},{group:"system.add",apiId:"system.addSubpage"},{group:"system.add",apiId:"system.duplicateObj"},{group:"system.details",apiId:"system.openPageDetails"},{group:"system.details",apiId:"system.openPageLinkDialog"},{group:"system.clipboard",apiId:"system.saveObjToClipboard"},{group:"system.clipboard",apiId:"system.copyObjFromClipboard"},{group:"system.clipboard",apiId:"system.moveObjFromClipboard"},{group:"system.modify",apiId:"system.markResolvedObj"},{group:"system.modify",apiId:"system.restoreObj"},{group:"system.modify",apiId:"system.revertObj"},{group:"system.modify",apiId:"system.deleteObj"},{group:"system.help",apiId:"system.openDashboard"},{group:"system.help",apiId:"system.openUserGuide"},{group:"system.help",apiId:"system.enableTour"}].concat(nd().map((function(e){return Object(v.pick)(e,"apiId","group","position")}))).map(ad))))}function ud(e,t){if(yr(e)){var n=St(t);n.origin(e.location.origin),n.segment(["scrivito"].concat(n.segment())),n.removeSearch(["_scrivito_workspace_id","_scrivito_editing","_scrivito_comparison","_scrivito_display_mode"]),e.history.replaceState({},"",n.toString())}}function ld(e){var t=$.Deferred();return e.then((function(e){return t.resolve(e)}),(function(e){t.reject(e)})),t}var dd,pd=function(){return(pd=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 fd(e){dd=e,Object(H.observeAndLoad)((function(){return Tt.a.getClasses()}),(function(e){!function(e){var t={},n={};function r(e){var r=e.type,i=e.name;if("Widget"!==e.type){if("Obj"!==r)throw new z.g('Invalid type "'+r+'" for class data "'+i+'".');t[i]=e}else n[i]=e}dd.forEach(r),e.forEach((function(e){r(function(e){if("Widget"===e.type)return function(e){var t=e.onlyInside,n=Object(v.omit)(e,"onlyInside");void 0!==t&&(n=pd({},n,{validContainerClasses:t}));return n}(e);return e}(e))})),ft.a.init(Object(v.values)(t)),_n.a.init(Object(v.values)(n))}(e.result||[])}))}var hd=n(116);function md(e){g.a.each(kr(),(function(t){var n=scrivito.widgetElement.all($(t.browserWindow().document));g.a.each(n,(function(t){e.equals(t.basicWidget())&&scrivito.WidgetReloading.reload(t)}))}))}function _d(e){var t=e.widget();return new no({id:"scrivito.sdk.revert_widget",title:scrivito.t("commands.revert_widget.title"),icon:["&#xf032;","entity"],present:function(){return scrivito.editingContext.isMutable()&&!t.is_deleted()},disabled:function(){return t.is_new()?scrivito.t("commands.revert_widget.is_new"):t.is_modified()?void 0:scrivito.t("commands.revert_widget.is_not_modified")},update:function(){return t.reload()},execute:function(){scrivito.confirmation_dialog({title:scrivito.t("commands.revert_widget.dialog.title"),description:scrivito.t("commands.revert_widget.dialog.description"),icon:"&#xf032;",color:"red",confirm_button_text:scrivito.t("commands.revert_widget.dialog.confirm"),confirm_button_color:"red"}).then((function(){var t=e.basicWidget();return scrivito.withSavingOverlay(function(e){return $l(e.obj(),e.id()).then((function(){return md(e)}))}(t))}))}})}function vd(e,t){return new no({id:"scrivito.sdk.restore_widget",title:scrivito.t("commands.restore_widget.title"),icon:["&#xf032;","entity"],present:function(){return!e.widget(t)&&!e.isDeleted()},execute:function(){scrivito.withSavingOverlay(function(e,t){return Gl(e,t)}(e,t)).then((function(){return scrivito.applicationWindow.reload()}))}})}function gd(e){return new no({id:"scrivito.sdk.delete_widget",title:scrivito.t("commands.delete_widget.title"),icon:["&#xf018;","entity"],present:function(){return!scrivito.editingContext.isDiffMode()},execute:function(){var t=e.containingField();(function(e){return Object(H.load)((function(){return e.modification()})).then((function(e){return scrivito.confirmation_dialog({title:scrivito.t("commands.delete_widget.dialog.title"),description:yd(e),icon:"&#xf018;",color:"red",confirm_button_text:scrivito.t("commands.delete_widget.dialog.confirm"),confirm_button_color:"red"})}))})(e).then((function(){return function(e,t){e.remove(),di(t)}(e,t)}))}})}function yd(e){return"new"===e?scrivito.t("commands.delete_widget.dialog.description.irreversible"):"edited"===e?scrivito.t("commands.delete_widget.dialog.description.restorable_unchanged"):scrivito.t("commands.delete_widget.dialog.description.restorable")}var bd=function(e,t){var n=t.renderMode;return new no({id:"scrivito.sdk.widget_details",title:scrivito.t("commands.widget_details.title"),icon:["&#xf030;","entity"],present:function(){return e&&"show"===n},disabled:function(){if(!function(e){if(Object(re.b)())return ea(e.objClass());return ca(e)}(e))return scrivito.t("commands.widget_details.has_no_properties")},execute:function(){return scrivito.WriteMonitor.trackChanges((function(){return Hl({objId:e.obj().id(),widgetId:e.id()})}),(function(){return md(e)}))}})};function wd(e){return new No({id:"scrivito.sdk.widget_commands.separator"+e})}var kd=["de","en"];function Od(e){return Object(v.contains)(kd,e)}function Cd(e,t,n,r){return de.d.get("blobs/upload_permission").then((function(e){var t=e.url;if(!t)throw new z.g("Missing the URL in the upload permission");var n=e.fields;if(!n)throw new z.g("Missing fields in the upload permission");var r=e.blob;if(!r)throw new z.g("Missing blob in the upload permission");return{url:t,fields:n,blob:r}})).then((function(i){scrivito.WriteMonitor.startWrite();var o=i.blob,a=function(e,t){for(var n=Dd(),r=0,i=Object.keys(t.fields);r<i.length;r++){var o=i[r];n.append(o,t.fields[o])}return n.append("file",e),z.j.resolve($.ajax({method:"POST",url:t.url,data:n,contentType:!1,processData:!1}))}(t,i).then((function(){return function(e,t,n,r){return de.d.put("blobs/activate_upload",{obj_id:e,upload:t,filename:n,content_type:r}).then((function(e){var t=e.id;if(!t)throw new z.g("Missing activated upload ID in the backend response");return{id:t}}))}(e,o,n,r)}));return scrivito.WriteMonitor.endWriteWhenDone(a),a}))}function Md(e,t,n,r){var i=encodeURIComponent(e),o={destination_obj_id:t};return n&&(o.filename=n),r&&(o.content_type=r),de.d.put("blobs/"+i+"/copy",o).then((function(e){if(e.id)return{id:e.id};throw new z.g("Missing copied upload ID in the backend response")}))}function Dd(){return new FormData}var xd={},Ed={};function Sd(e){return xd[e]}function jd(e){var t=function(e){var t=[],n=[];return e.forEach((function(e){var r=Ed[e];r?t.push(r.promise):n.push(e)})),[t,n]}(e),n=t[0],r=t[1];if(!r.length)return z.j.all(n).then((function(){}));var i,o=r.slice(0,20),a=r.slice(20),s=((i=o).forEach((function(e){return Ed[e]=new z.e})),(Object(re.b)()?Td:Ld)(i).then(Pd).then((function(){i.forEach((function(e){Ed[e].resolve(void 0),delete Ed[e]}))}),(function(e){throw i.forEach((function(t){Ed[t].reject(e),delete Ed[t]})),e})));return z.j.all(n.concat([s])).then((function(){return jd(a)}))}function Td(e){if(!Object(re.b)())return z.j.resolve(e);var t=scrivito.ajax("PUT","resolve_paths",{data:{paths:e}});return z.j.resolve(t).then((function(t){return Ad(e,t)}))}function Ld(e){var t=e.map((function(e){var t=Tt.a.resolveUrl(en(e));return t?t.catch((function(e){return Object(z.F)(e),null})):z.j.resolve(null)}));return z.j.all(t).then((function(t){return Ad(e,t)}))}function Pd(e){if(e.length)return de.d.get("blobs/resolve_urls",{urls:e}).then((function(t){var n=t.results;e.forEach((function(e,t){xd[e]=n[t]}))}))}function Ad(e,t){var n=[];return e.forEach((function(e,r){var i=t[r];null===i?n.push(e):xd[e]=i})),n}function Nd(e,t){return{result:e,unknownUrls:v.uniq(t)}}function Id(e){if(!e.url)return[e,void 0];var t=Sd(e.url);if(void 0===t)return[e,e.url];if(null===t)return[e,void 0];var n=v.clone(e);return n.url=null,n.obj_id=t.obj_id,n.fragment=t.fragment||null,n.query=t.query||null,[n,void 0]}function Yd(e,t,n){var r=[],i=new RegExp("<"+t+"\\s+(?:[^>]*?\\s+)?"+n+"=([\"'])(.*?)\\1","gi"),o=e.replace(i,(function(e,t,n){if(!n)return e;var i=n.charAt(0);if("#"===i||"?"===i)return e;if("objid:"===n.substr(0,6))return e;var o=function(e){var t=Object(v.unescape)(e),n=Sd(t);switch(n){case void 0:return{unknownUrl:t};case null:return{newUrl:null};default:var r=new St("objid:"+n.obj_id);return n.fragment&&r.fragment(n.fragment),n.query&&r.query(n.query),{newUrl:Object(v.escape)(r.href())}}}(n),a=o.unknownUrl,s=o.newUrl;return s?e.replace(n,s):(a&&r.push(a),e)}));return{unknownUrls:r,convertedHtml:o}}var Rd=function(){function e(e,t,n){var r,i,o;this.startCount=0,this.objData=e,this.attributeName=t,this.widgetId=n,this.deferred=new z.e,this.startCount=0;var a=this.currentAttributeData();if(!a)throw new z.g("LinkResolutionWorker is missing data for field "+t+".");var s=a[0];if(v.isEmpty(a[1]))throw new z.g("LinkResolutionWorker is missing a value for field "+t+" of type "+s+". This indicates a bypassed LinkResolution field collector.");if("html"===s)r=a,this.attributeType=r[0],this.attributeValue=r[1];else if("link"===s)i=a,this.attributeType=i[0],this.attributeValue=i[1];else{if("linklist"!==s)throw new z.g('LinkResolutionWorker was called with attribute of unexpected type "'+s+'".');o=a,this.attributeType=o[0],this.attributeValue=o[1]}}return e.prototype.finish=function(){return this.deferred.promise},e.prototype.isFinished=function(){return!this.deferred.isPending()},e.prototype.start=function(){var e=this;if(this.startCount++,!(this.startCount>2)&&this.deferred.isPending())if(this.isConcurrentUpdate())this.deferred.resolve(void 0);else{var t=this.convertValue();v.isEmpty(t.unknownUrls)?(this.updateAttributeValue(t.result),this.deferred.resolve(void 0)):(scrivito.WriteMonitor.startWrite(),jd(t.unknownUrls).then((function(){scrivito.WriteMonitor.endWrite(),e.start()})).catch((function(t){scrivito.WriteMonitor.endWrite(),e.deferred.reject(t)})))}},e.prototype.convertValue=function(){switch(this.attributeType){case"html":return e=this.attributeValue,t=Yd(e,"a","href"),n=t.unknownUrls,r=t.convertedHtml,i=Yd(r,"img","src"),n=n.concat(i.unknownUrls),Nd(r=i.convertedHtml,n);case"link":return function(e){var t=[],n=Id(e),r=n[0],i=n[1];return i&&t.push(i),Nd(r,t)}(this.attributeValue);case"linklist":return function(e){var t=[];return Nd(e.map((function(e){var n=Id(e),r=n[0],i=n[1];return i&&t.push(i),r})),t)}(this.attributeValue)}var e,t,n,r,i},e.prototype.currentAttributeData=function(){return(this.widgetId?this.objData.getWidgetAttribute(this.widgetId,this.attributeName):this.objData.getAttribute(this.attributeName))||void 0},e.prototype.isConcurrentUpdate=function(){var e=[this.attributeType,this.attributeValue];return!v.isEqual(this.currentAttributeData(),e)},e.prototype.updateAttributeValue=function(e){var t,n;if(e!==this.attributeValue){var r=((t={})[this.attributeName]=[this.attributeType,e],t);this.widgetId?this.objData.update({_widget_pool:(n={},n[this.widgetId]=r,n)}):this.objData.update(r)}},e}();function Fd(e){var t=Object(F.currentWorkspaceId)();if(e!==t)throw new z.g("Requested and the actual current workspace differ! Expected "+t+", but saw "+e+".")}var Hd={};function Wd(e,t){Fd(e);var n=Hd[t]||z.j.resolve();Hd[t]=z.j.all([n,Object(H.load)((function(){return F.BasicObj.get(t)})).then((function(e){if(e)return function(e){var t=e.get();if(!t||!Object(de.f)(t))return z.j.resolve();return z.j.all(function(e){return qd(e,(function(e,t){if(void 0!==t){if("_widget_pool"===e){if(void 0===t)return;return qd(t,(function(e,t){if(void 0!==t)return function(e,t){return qd(e,(function(e,n){return Ud(e,n,t)}))}(t,e)}))}return Ud(e,t)}}))}(t).map((function(t){var n=function(e,t,n){return new Rd(e,t,n)}(e,t.attrName,t.widgetId);return n.start(),n.finish()}))).then((function(){}))}(e.objData)}))]).then((function(){}))}function Bd(e,t){return Fd(e),Hd[t]||z.j.resolve()}function zd(){Hd={}}function Ud(e,t,n){if(!Object(z.z)(e)){var r=t,i=r[0],o=r[1];if(Object(v.contains)(["html","link","linklist"],i)&&!Object(v.isEmpty)(o))return[{attrName:e,widgetId:n}]}}function qd(e,t){return Object(v.flatten)(Object(v.compact)(Object.keys(e).map((function(n){return t(n,e[n])}))))}function Vd(e){return scrivito.ajax("PUT","sessions/"+e,{skip_write_monitor:!0})}function $d(e){var t="tour-popup-btn";return e.alignment&&(t+=" "+e.alignment),u.createElement("span",{className:t,onClick:e.onClick},e.title)}function Gd(){return u.createElement("span",{className:"tour-popup-end",onClick:Ut},u.createElement("i",{className:"scrivito_icon scrivito_icon_cancel",title:scrivito.t("tour.button.end")}))}var Kd=n(261);var Jd=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)}}(),Qd=S(function(e){function t(t){return e.call(this,t)||this}return Jd(t,e),t.prototype.componentDidMount=function(){this.trackPosition()},t.prototype.componentWillUnmount=function(){this.positionTracker&&(this.positionTracker.destroy(),this.updatePositionTimeoutId&&window.clearTimeout(this.updatePositionTimeoutId))},t.prototype.componentDidUpdate=function(){this.positionTracker?this.lookupTourReference()?this.updatePosition():(this.positionTracker.destroy(),delete this.positionTracker):this.trackPosition()},t.prototype.render=function(){var e,t,n=this;return this.lookupTourReference()?(this.props.reference&&(e=u.createElement("div",{className:"tour-popup-arrow",ref:function(e){return n.arrow=e}})),this.props.picture&&(t=u.createElement("img",{src:Oa()+"/tour/"+this.props.picture})),u.createElement("div",{className:"tour-popup","data-name":this.props.name,ref:function(e){return n.popup=e}},e,u.createElement("div",{className:"tour-popup-headline"},u.createElement("span",{className:"tour-popup-headline-content"},this.props.title),u.createElement(Gd,null)),u.createElement("div",{className:"tour-popup-content"},u.createElement("span",{className:"tour-popup-description"},this.props.description),t,u.createElement(Zd,null)))):null},t.prototype.trackPosition=function(){if(this.popup&&(!this.props.reference||this.arrow)){var e=this.lookupTourReference();if(e){var t={positionFixed:!0};if(this.props.placement&&(t.placement=this.props.placement),this.props.reference&&this.arrow)t.modifiers={arrow:{element:this.arrow}};else{t.modifiers={arrow:{enabled:!1},offset:{offset:"250px, 0px"}};var n=document.querySelector("iframe[name=scrivito_application]");n&&(t.modifiers.preventOverflow={boundariesElement:n})}this.positionTracker=function(e,t,n){return new Kd.default(e,t,n)}(e,this.popup,t)}}},t.prototype.updatePosition=function(){var e=this;this.positionTracker&&this.positionTracker.update(),this.updatePositionTimeoutId=window.setTimeout((function(){e.positionTracker&&e.positionTracker.update()}),3e3)},t.prototype.lookupTourReference=function(){return e=this.props.reference||"topbar",-1!==Pt().indexOf(e)?Ht[e]:null;var e},t}(u.Component)),Zd=function(){return u.createElement("div",{className:"tour-popup-steps"},u.createElement($d,{title:scrivito.t("tour.button.prev"),onClick:Jt}),u.createElement($d,{title:scrivito.t("tour.button.next"),alignment:"right",onClick:Kt}))},Xd=function(){return(Xd=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 ep(e){return u.createElement(Qd,Xd({picture:Object(z.R)(e.name)+".gif",title:scrivito.t("tour."+e.name+".title"),description:scrivito.t("tour."+e.name+".description")},e))}var tp=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)}}(),np=S(function(e){function t(t){return e.call(this,t)||this}return tp(t,e),t.prototype.render=function(){return[u.createElement("div",{key:"overlay",className:"tour-popup-overlay"}),u.createElement("div",{key:"popup",className:"tour-popup center-screen","data-name":this.props.name},u.createElement("div",{className:"tour-popup-headline"},u.createElement("span",{className:"tour-popup-headline-content"},this.props.title),u.createElement(Gd,null)),u.createElement("div",{className:"tour-popup-content"},this.props.children))]},t.displayName="Tour.SplashScreen",t}(u.Component)),rp=function(){return(rp=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 ip(e){return u.createElement(Qd,rp({reference:e.name,title:scrivito.t("tour."+e.name+".title"),description:scrivito.t("tour."+e.name+".description")},e))}var op=[function(){return u.createElement(np,{name:"intro",title:scrivito.t("tour.intro.title")},u.createElement("p",null,scrivito.t("tour.intro.description1")),u.createElement("p",null,scrivito.t("tour.intro.description2")),u.createElement("img",{src:Oa()+"/tour/start_tour.gif"}),u.createElement("div",{className:"tour-popup-steps"},u.createElement($d,{title:scrivito.t("tour.button.skip"),onClick:Ut}),u.createElement($d,{title:scrivito.t("tour.button.start"),alignment:"right",onClick:Kt})))},function(){return u.createElement(ip,{name:"editMode",placement:"bottom-end"})},function(){return u.createElement(ep,{name:"editText"})},function(){return u.createElement(ep,{name:"addWidget"})},function(){return u.createElement(ep,{name:"widgetMenu"})},function(){return u.createElement(ip,{name:"pageMenu",placement:"left-start"})},function(){return u.createElement(ip,{name:"contentBrowser",placement:"left"})},function(){return u.createElement(ip,{name:"workspaces",placement:"left"})},function(){return u.createElement(ip,{name:"publish",placement:"bottom"})},function(){return u.createElement(np,{name:"outro",title:scrivito.t("tour.outro.title")},u.createElement("p",null,scrivito.t("tour.outro.description1"),u.createElement("a",{href:"https://www.scrivito.com/support",target:"_blank"},scrivito.t("tour.outro.description1.link_title")),"."),u.createElement("p",null,scrivito.t("tour.outro.description2"),u.createElement("a",{href:"https://www.scrivito.com/documentation",target:"_blank"},scrivito.t("tour.outro.description2.link_title")),scrivito.t("tour.outro.description3"),u.createElement("a",{href:"https://www.scrivito.com/user-guide",target:"_blank"},scrivito.t("tour.outro.description3.link_title")),"."),u.createElement("p",null,scrivito.t("tour.outro.description4")),u.createElement("img",{src:Oa()+"/tour/start_tour.gif"}),u.createElement("div",{className:"tour-popup-steps"},u.createElement($d,{title:scrivito.t("tour.button.back"),onClick:Jt}),u.createElement($d,{title:scrivito.t("tour.button.close"),alignment:"right",onClick:Ut})))}],ap=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)}}(),sp=S(function(e){function t(t){var n=e.call(this,t)||this;return Wt=op.length,n}return ap(t,e),t.prototype.render=function(){if(!qt()||Gt())return null;var e=op[Zt()];return e?u.createElement(e):null},t.displayName="Tour",t}(u.Component));!function(){var e=!1,t=!1;function n(){return new z.j((function(e){scrivito.WriteMonitor.isWriting()?scrivito.WriteMonitor.on("end_write",(function(){return n().then(e)})):e()}))}function s(e,t,n){var r=t.attr(n);Object(z.J)(e,(function(){r?t.attr(n,r):t.get(0).removeAttribute(n)}))}function c(){if(Object(re.b)()){var e=scrivito.applicationDocument(),t=scrivito.applicationWindow.browserWindow(),n=!!e.pageConfig(),r=!!t.scrivito;n||r||(t.jQuery||(t.jQuery=jQuery),t.$||(t.$=$),e.installRailsApi(),e.connect())}}g.a.extend(scrivito,{suppress_alerts:!1,popular_obj_classes:[],alert:function(e){scrivito.suppress_alerts||window.alert(e)},disableConsole:function(){t=!0},warn:function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];scrivito.isDevelopmentMode&&scrivito.UiWarning.notify(),window.console&&!t&&(e=window.console).warn.apply(e,n)},log_info:function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];window.console&&!t&&(e=window.console).info.apply(e,n)},throw_error:function(e,t){void 0===t&&(t={});var n=t.params||[];n.unshift(e),z.F.apply(void 0,n),t.description&&jr(t.description),$.error(e)},redirect_to:function(e,t){return n().then((function(){scrivito.change_location(e,t)})),scrivito.neverResolve()},open:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];window.open.apply(window,e)},changeEditingContext:function(e){var t=scrivito.editingContext.uriWithEditingContextParams(e);return scrivito.redirect_to(t.href())},location:function(){return window.location},change_location:function(e,t){(t||window).location.assign(e)},run_new_event:function(e){Object(z.S)(0).then(e)},reload:function(e){return n().then((function(){scrivito.reload_location(e)})),new z.j((function(){}))},reload_location:function(e){(e||window).location.reload()},center:function(e){1===e.length&&bn(e)},ensure_fully_visible_within:function(e,t,n){var r,i=t.scrollTop(),o=e.offset().top,a=e.height();i>o?r=o-50:o+a>i+n&&(r=a+o+50-n),r&&t.animate({scrollTop:r})},ensure_fully_visible_within_window:function(e){var t=Ar(e);scrivito.ensure_fully_visible_within(e,t.dom_element().find("body"),$(t.browserWindow()).height())},describe_element:function(e){var t=e.get(0).nodeName;e.attr("id")&&(t+="#"+e.attr("id"));var n=e.attr("class");return n&&g()(n.split(" ")).each((function(e){t+="."+e})),"["+t+"]"},deprecation_warning:function(e,t){var n='DEPRECATION WARNING: "'+e+'" is deprecated.';t&&(n+=' Please use "'+t+'" instead.'),scrivito.warn(n)},on:function(e,t){switch(e){case"load":se("open",t),ie&&scrivito.run_new_event(t);break;case"content":se("content",(function(e){return t(e)}));break;default:$.error('Unknown event "'+e+'"')}},create_obj:function(e){return ld(Fr.a(e).then((function(e){return{id:e.id()}})).catch((function(e){return scrivito.displayError(e),z.j.reject(l(e))})))},delete_obj:function(e){if(e)return ld(Object(H.load)((function(){return F.BasicObj.get(e)})).then((function(e){return e.destroy(),e.finishSaving()})).catch((function(e){return scrivito.displayError(e),z.j.reject(l(e))})));$.error("Can't delete without ID")},is_current_page_restricted:function(){return scrivito.applicationDocument().isCurrentPageRestricted()},neverResolve:function(){return new z.j((function(){}))},trigger:function(e,t){"content"===e?g.a.each($(t),(function(e){ae(e)})):"new_content"===e?(scrivito.deprecation_warning('scrivito.trigger("new_content")','scrivito.trigger("content")'),scrivito.trigger("content",t)):$.error('Unknown event "'+e+'"')},in_editable_view:function(){return"editing"===scrivito.editingContext.displayMode},json_parse_base64:function(e){var t=decodeURIComponent(window.escape(atob(e)));return JSON.parse(t)},json_stringify_base64:function(e){var t=JSON.stringify(e);return btoa(window.unescape(encodeURIComponent(t)))},t:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ue.default.translate.apply(Ue.default,e)},is_inited:function(){return e},applicationDocument:function(){return scrivito.applicationWindow.document()},details_url_for_obj_id:function(e){return scrivito.legacy_obj.create_instance({id:e}).details_src()},register_default_obj_class_for_content_type:function(e){to.b(e)},default_obj_class_for_content_type:function(e){return to.a(e)},pattern_sort:function(e,t){var n=e;if(t&&t.length){var r=[];return g.a.each(t,(function(e,t){if(!e.match(/(.*)\.\*$/)){var i=g.a.find(n,(function(t){return t.id()===e}));i&&(r[t]=i,n=g.a.without(n,i))}})),g.a.each(t,(function(e,t){if(e.match(/(.*)\.\*$/)){var i=g.a.select(n,(function(t){return!t.id().indexOf(e.replace(".*",""))}));i.length&&(r[t]=i,n=g.a.difference(n,i))}})),g.a.flatten(g.a.compact(r.concat(n)))}return n},page_menu:function(e){return new wo(e)},custom_dialog:function(e,t,n,r){var i=scrivito.IframeDialog.open(e,r);return i.when_open.then((function(e){var r=function(e,t){var n=$(e).find("body"),r=$('<div class="scrivito_full_screen_panel"></div>');return n.append(r),Object(z.J)(t,(function(){r.detach()})),scrivito.restore_styles_afterwards(t,n),n.css("overflow","hidden"),r}(t,i.when_closed);r.css("background-color",e.css("background-color")),r.append(n)})),{when_closed:i.when_closed}},translate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ue.default.translate.apply(Ue.default,e)},ui_config:function(){return Y($('meta[name="scrivito-ui-config"]'),"content")},mock_ui_config:function(e){var t=$('meta[name="scrivito-ui-config"]');t.length||(t=$('<meta name="scrivito-ui-config" />').appendTo($("head"))),e?R(t,"content",e):t.removeAttr("content")},restore_styles_afterwards:function(e,t){s(e,t,"class"),s(e,t,"style")},description_for_editor:function(e){var t=g.a.chunk(e,100).map((function(e){return scrivito.obj_where("id","equals",e).batch_size(e.length).format("_default").load_batch()}));return z.j.all(t).then((function(e){return{hits:e.reduce((function(e,t){return e.concat(t.hits)}),[])}})).then((function(t){return e.map((function(e){var n=g.a.findWhere(t.hits,{id:e});return n&&n.description_for_editor||null}))}))},isDevelopmentMode:!1,titleForObj:vn,descriptionForObj:yn,UiConfig:mn,init:function(t){void 0===t&&(t={}),scrivito.config=t;var n,s,l,d,p,f,h,m=t.useRailsEngine&&t.i18n.locale;Ue.default.locale=(n=[m].concat(function(e){var t=e.languages||[];return e.language&&(t=t.concat([e.language])),t}(navigator)),s=Object(v.map)(n,(function(e){return e&&e.substr(0,2)})),Object(v.detect)(s,Od)||"en"),Object(re.a)(t.useRailsEngine),scrivito.editingContext.init(),l={backendEndpoint:t.backend_endpoint,tenant:t.tenant,useRailsEngine:t.useRailsEngine,currentWorkspaceId:scrivito.editingContext.selectedWorkspaceId},d=l.backendEndpoint,p=l.tenant,f=l.useRailsEngine,h=l.currentWorkspaceId,de.a.init(window),Object(F.setBinaryHandler)(o),Object(F.setLinkHandler)(a),Object(xr.o)(i),Object(F.setCurrentWorkspaceId)(h),de.d.init(d,p,r),f&&Me(Vd);var _,y,b,w,k,O,C,M,D=(b=ma(en(window.location.href)),document.body.id="scrivito_ui",_=document.body,y='\n      <div class="iframe_wrapper">\n        <iframe\n            name="scrivito_application"\n            allowfullscreen\n            src="'+b+'"\n        ></iframe>\n      </div>\n    ',void(_.innerHTML=y),$("iframe[name=scrivito_application]"));D.length&&function(e){scrivito.applicationWindow=wr(e),e.on("load",c)}(D),scrivito.applicationWindow.on("document",(function(e){Object(Tt.b)(e.appAdapter())})),scrivito.forgery_protection.init(),scrivito.resourceDialog.init(t.resource_dialog||{}),scrivito.hotkeys.init(),w=scrivito.editingContext.displayMode,"published"!==(k=scrivito.editingContext.selectedWorkspaceId)?Object(H.load)((function(){Oo("read",Mo.get(k))||scrivito.changeEditingContext({displayMode:"view",workspaceId:"published"})})).catch((function(e){e instanceof Ao?scrivito.changeEditingContext({displayMode:"view",workspaceId:"published"}):scrivito.displayError(e)})):"view"!==w&&scrivito.changeEditingContext({displayMode:"view"}),fd(t.class_datas||[]),eo(),Rr.a.init(),scrivito.isDevelopmentMode=t.is_development_mode,hd.a.shouldThrowErrors=t.is_development_mode,t.useRailsEngine&&scrivito.inplace_marker.init(),scrivito.optionMarker.init(),scrivito.Menubar.init(),t.useRailsEngine||(se("open",(function(){scrivito.renderReactComponent(u.createElement(sp,null),$("#tour")),Vt()})),(O=St(Lt.f())).hasQuery("scrivitoEnableTour")&&(Lt.d().replaceState({},"",O.removeQuery("scrivitoEnableTour").toString()),zt())),ue.init(),scrivito.editingContext.isEditingMode()&&scrivito.on("content",(function(e){scrivito.childListElement.all($(e)).forEach((function(e){e.setMenu([lo(e),po(e),fo(e),_o(e)].concat(e.menu()))}))})),t.useRailsEngine&&se("railsDocument",(function(e){e===scrivito.applicationDocument()&&e.setMenu(cd().concat(e.menu()))})),scrivito.editingContext.isViewMode()||scrivito.on("content",(function(e){Object(v.each)(scrivito.widgetElement.all($(e)),(function(e){var t=e.widget().id(),n=e.widgetField().basic_obj(),r=e.basicWidget(),i=e.widgetField().basicField(),o=e.widgetField().renderMode();e.setMenu([bd(r,{renderMode:o}),wd(1),Au(r),Pu(r),Ru(i,r),wd(2),vd(n,t),_d(e),gd(r)].concat(e.menu()))}))})),scrivito.widgetlistFieldCommands.init(),scrivito.child_list_marker.init(),scrivito.on("content",(function(e){scrivito.editingContext.isEditingMode()&&scrivito.WidgetlistFieldElement.all($(e)).forEach(li)})),scrivito.widget_marker.init(),scrivito.context_menu.init(),si(),scrivito.external_links.init(),scrivito.WidgetReloading.init(),se("railsDocument",(function(e){e.browserWindow().Turbolinks&&jr("\n        You have Turbolinks enabled.\n        Scrivito does not yet support Turbolinks.\n        Please remove it from your assets.\n      ")})),se("railsDocument",(function(e){e.dom_element().find("body").on("reload.scrivito",(function(){return e.window().reload()}))})),xi(),scrivito.dragScroll.init(),scrivito.on("content",(function(e){if(scrivito.in_editable_view()){var t=Ar($(e));g.a.each(scrivito.widgetElement.all(t.dom_element()),Fi)}})),scrivito.on("content",(function(e){if(scrivito.in_editable_view()){var t=$(e);scrivito.WidgetlistFieldElement.all(t).forEach((function(e){return zi(e)})),scrivito.widgetElement.isWidgetElement(t)&&Ui(P(t))}})),-1!==window.location.hash.indexOf("__scrivito_enable_sidebar_details")&&(scrivito.enableSidebarDetails=!0),-1!==window.location.hash.indexOf("__scrivito_enable_quill")?window.localStorage.setItem("__scrivito_enable_quill","yes"):-1!==window.location.hash.indexOf("__scrivito_disable_quill")&&window.localStorage.removeItem("__scrivito_enable_quill"),C=document.querySelector("iframe[name=scrivito_application]"),se("open",(function(){return Zi(C)})),scrivito.PreviewDevice.subscribeChange((function(){return Xi(C)})),Qi.subscribe("previewDeviceAdjuster",(function(){return Xi(C)})),$i(),scrivito.fileDrop.init(),scrivito.on("content",(function(e){g.a.each(scrivito.WidgetlistFieldElement.all($(e)),(function(e){Hr(e)}))})),se("railsDocument",(function(e){e===scrivito.applicationDocument()&&oi().set(e.pageId())})),bo(),window.onbeforeunload=Yr,M=window,Object(re.b)()?se("railsDocument",(function(e){e===scrivito.applicationDocument()&&ud(M,e.window().browserWindow().location.toString())})):Object(H.observeAndLoad)((function(){return Tt.a.getApplicationUrl()}),(function(e){e.allDataLoaded&&e.result&&ud(M,e.result)})),scrivito.applicationWindow.useFragmentOf(wr(window)),e=!0}});var l=function(e){return{message:e.message}}}();var cp=n(151);var up=function(e){return new no({id:"scrivito.sdk.sort_items",title:scrivito.t("commands.sort_items.title"),icon:["&#xf03c;","entity"],tooltip:function(){var t=F.BasicObj.get(e);return scrivito.t("commands.sort_items.tooltip",vn(t))},disabled:function(){var t=F.BasicObj.get(e);return t.hasChildren()?t.children().length<2?scrivito.t("commands.sort_items.too_less_children"):void 0:scrivito.t("commands.sort_items.auto_sort")},present:function(){var t=F.BasicObj.get(e);return ft.a.find(t.objClass()).hasChildOrder()},execute:function(){var t=F.BasicObj.get(e),n=t.orderedChildren();return ho.open(n,vn).then((function(e){var n=e.map((function(e){return F.BasicObj.get(e)}));t.update({childOrder:[n,["referencelist"]]}),t.finishSaving().then((function(){return e=t.path(),void(Object(re.b)()&&kr().forEach((function(t){var n=$(t.browserWindow().document);scrivito.childListElement.all(n).some((function(t){return t.path()===e}))&&t.reload()})));var e}))}))}})};function lp(e){return new no({id:"scrivito.sdk.revert_widget",title:scrivito.t("commands.revert_widget.title"),icon:["&#xf032;","entity"],present:function(){return"edited"===e.modification()},execute:function(){return(t="commands.revert_widget.dialog",scrivito.confirmation_dialog({title:scrivito.t(t+".title"),description:scrivito.t(t+".description"),icon:"&#xf032;",color:"red",confirm_button_text:scrivito.t(t+".confirm"),confirm_button_color:"red"})).then((function(){return scrivito.withSavingOverlay((t=e.obj(),n=e.id(),$l(t,n)));var t,n}));var t}})}function dp(e,t){return new no({id:"scrivito.sdk.restore_widget",title:scrivito.t("commands.restore_widget.title"),icon:["&#xf032;","entity"],present:function(){return!e.widget(t)&&!e.isDeleted()},execute:function(){scrivito.withSavingOverlay(function(e,t){return Gl(e,t)}(e,t))}})}function pp(e,t,n){var r=function(e,t){if(scrivito.editingContext.isEditingMode())return function(e,t){var n=e.widget(t);if(!n)return;var r=n.containingField();return[bd(n,{renderMode:"show"}),fp(1),Au(n),Pu(n),Ru(r,n),fp(2),lp(n),Nu(n)]}(e,t);if(scrivito.editingContext.isDiffMode())return function(e,t){var n=e.widget(t);return n?[lp(n),Nu(n)]:[dp(e,t)]}(e,t)}(t,n);r&&ci(e,r)}function fp(e){return new No({id:"scrivito.sdk.widget_commands.separator"+e})}var hp,mp=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)}}(),_p=function(){return(_p=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)};var vp=S(((hp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mp(t,e),t.prototype.componentDidMount=function(){this.forceEditingMode(),fa(this.iframe,this.props.name)},t.prototype.render=function(){var e=this,t=ma("/_scrivito_extensions.html",!0);return u.createElement("div",{className:"scrivito_custom_dialog scrivito_modal_large scrivito_show"},u.createElement("div",{className:"scrivito_modal_header"},u.createElement("h3",null,u.createElement("span",null,Object(z.N)(this.props.name)))),u.createElement("div",{className:"scrivito_modal_body scrivito_auto_height"},u.createElement("iframe",{name:this.props.name,src:t,ref:function(t){return e.iframe=t},style:{height:this.getHeight()}})),u.createElement("div",{className:"scrivito_modal_footer"},u.createElement("span",{className:"scrivito_button scrivito_cancel",onClick:function(){return e.props.dialogDone(void 0)}},scrivito.t("close"))))},t.prototype.forceEditingMode=function(){this.iframe&&"published"!==Object(F.currentWorkspaceId)()&&wr(this.iframe.contentWindow).forceEditingMode()},t.prototype.getHeight=function(){var e=ha(this.iframe);return e?e.height+"px":"100%"},t}(u.Component)).displayName="CustomDialog",hp)),gp=function(){function e(e,t,n){this.data=e,this.datas=t,this.cmsDocument=n}return e.prototype.children=function(){var t=this;return this.datas.filter((function(e){return e.parentElementId===t.data.elementId})).map((function(n){return new e(n,t.datas,t.cmsDocument)}))},e.prototype.elementArea=function(){return new Xr(this.data.elementId,this.cmsDocument)},e.prototype.nextSibling=function(){return this.sibling(1)},e.prototype.previousSibling=function(){return this.sibling(-1)},e.prototype.getWidgetDropZone=function(){var e=this.data.content;return function(e){return"widgetlist"===e.type}(e)?this.dropZoneFromWidgetlistReference(e):this.dropZoneFromWidgetReference()},e.prototype.sibling=function(t){if("widgetlist"!==this.data.content.type){var n=this.getObj(),r=this.getWidget(),i=n.siblingWidget(r,t);if(i){var o=Object(v.find)(this.siblingDatas(),(function(e){return e.content.widgetId===i.id()}));return o?new e(o,this.datas,this.cmsDocument):void 0}}},e.prototype.siblingDatas=function(){var e=this;return this.datas.filter((function(t){return t.parentElementId===e.data.parentElementId}))},e.prototype.dropZoneFromWidgetReference=function(){var e=this.getWidget();return new Hi(e.containingField(),e)},e.prototype.dropZoneFromWidgetlistReference=function(e){return new Hi(new F.BasicField(this.data.content.widgetId?this.getWidget():this.getObj(),e.attributeName,["widgetlist"]))},e.prototype.getObj=function(){var e=F.BasicObj.get(this.data.content.objId);if(!e)throw new z.g("Missing obj");return e},e.prototype.getWidget=function(){var e=this.getObj(),t=this.data.content.widgetId;if(!t)throw new z.g("Missing the widget ID");var n=e.widget(t);if(!n)throw new z.g("Missing the widget");return n},e}();var yp=function(){function e(e){this.cmsDocument=e}return e.prototype.children=function(){var e=this,t=this.cmsDocument.appAdapter();if(!t)throw new z.g("Missing the app adapter");var n=t.getContentZoneData();return n?n.filter((function(e){return!e.parentElementId})).map((function(t){return new gp(t,n,e.cmsDocument)})):[]},e}(),bp=function(){function e(e){this._cmsDocument=e}return e.prototype.currentWorkspaceId=function(){return scrivito.editingContext.selectedWorkspaceId},e.prototype.getContentStateId=function(e){return vo(e)},e.prototype.startLinkResolutionFor=function(e,t){Wd(e,t)},e.prototype.finishLinkResolutionFor=function(e,t){return Bd(e,t).then((function(){}))},e.prototype.isInPlaceEditingActive=function(){return ne(this._cmsDocument)},e.prototype.setAppAdapter=function(e,t){if(e!==Object(z.x)())throw new Error("Scrivito UI version "+Object(z.x)()+" is not equal to the Scrivito SDK version "+e+" your application is using");if("function"!=typeof this._cmsDocument.setAppAdapter)throw new z.g("UiAdapter#setAppAdapter is not available for remote CMS documents");this._cmsDocument.setAppAdapter(t)},e.prototype.showWidgetMenu=function(e,t,n){var r=this;Object(H.load)((function(){return F.BasicObj.get(t)})).then((function(t){t&&pp(new Xr(e,r._cmsDocument),t,n)}))},e.prototype.showWidgetlistMenu=function(e,t,n,r,i){var o=this;wp(n,i).then((function(n){var i=new F.BasicField(n,r,["widgetlist"]);Bu(new Xr(e,o._cmsDocument),i,t)}))},e.prototype.showChildListMenu=function(e,t){ci(new Xr(e,this._cmsDocument),[Io(t),zo(t),Qo(t),up(t)])},e.prototype.insertWidget=function(e,t,n){Object(H.load)((function(){return F.BasicObj.get(e)})).then((function(e){if(e){var r=e.widget(t);r&&Wu(r,n)}}))},e.prototype.startDrag=function(e,t){Object(H.load)((function(){return F.BasicObj.get(e)})).then((function(n){if(!n)throw new Error("No Obj found for startDrag("+e+", "+t+")");var r=n.widget(t);if(!r)throw new Error("No Widget found for startDrag("+e+", "+t+")");Ei(r)}))},e.prototype.endDrag=function(){Si()},e.prototype.registerWidgetDropZoneInDom=function(e,t,n){(function(e,t){return wp(e,t)})(t,n).then((function(t){var n=t.containingField();e.scrivitoPrivateDropzone=function(){return new Hi(n,t)}}))},e.prototype.registerEmptyWidgetlistDropZoneInDom=function(e){var t=e.domNode,n=e.objId,r=e.widgetId,i=e.attributeName;wp(n,r).then((function(e){var n=new F.BasicField(e,i,["widgetlist"]);t.scrivitoPrivateDropzone=function(){return new Hi(n)}}))},e.prototype.navigateToExternalUrl=function(e){scrivito.redirect_to(e)},e.prototype.openInNewUiWindow=function(e){nn(e)},e.prototype.configureContentBrowser=function(e){var t=e.baseQuery;t&&(Nn=t)},e.prototype.openContentBrowser=function(e){return In(e)},e.prototype.retrieveObj=function(e,t){return de.e.retrieveObj(e,t)},e.prototype.retrieveObjQuery=function(e,t){return de.e.retrieveObjQuery(e,t)},e.prototype.retrieveFacetQuery=function(e,t){return de.e.retrieveFacetQuery(e,t)},e.prototype.retrieveBinaryMetadata=function(e){return de.e.retrieveBinaryMetadata(e)},e.prototype.retrieveBinaryUrls=function(e,t){return de.e.retrieveBinaryUrls(e,t)},e.prototype.retrieveObjFieldDiffs=function(e,t){return de.e.retrieveObjFieldDiffs(e,t)},e.prototype.configureTenant=function(e){e.useRailsAuth&&(Ie=!0),Me(Ye()?Vd:de.d.requestBuiltInUserSession.bind(de.d)),de.d.init(e.endpoint,e.tenant)},e.prototype.uploadBinary=function(e,t,n,r){return Cd(e,t,n,r)},e.prototype.copyBinary=function(e,t,n,r){return Md(e,t,n,r)},e.prototype.updateMenu=function(e){!function(e){ed().set(e)}(e)},e.prototype.openCustomDialog=function(e){var t;t={name:e},q((function(e){return u.createElement(vp,_p({},t,e))}))},e.prototype.isComparisonActive=function(){return te()},e.prototype.translate=function(e){return Ue.default.translate("STABLE_SDK."+e)},e.prototype.dragTo=function(e){Ii(e,new yp(this._cmsDocument),this._cmsDocument)},e.prototype.drop=function(){ji()},e}();function wp(e,t){return Object(H.load)((function(){var n=F.BasicObj.get(e);return t?n.widget(t):n}))}var kp,Op=n(84),Cp=function(){function e(e){this.cmsDocument=e}return e.prototype.uiAdapter=function(){return Object(T.d)(cp.a,new bp(this.cmsDocument))},e.prototype.installRailsApi=function(){this.cmsDocument.installRailsApi()},e.prototype.sharedCmsState=function(){return pe.m},e.prototype.stateController=function(){return Object(pe.i)()},e.prototype.createAppState=function(){return Object(pe.d)()},e.prototype.getObjReplicationPool=function(){return xr.m},e}();window.connectAppDocument=function(e){var t=P($(e));return t.addAppExtensions(),Object(Op.a)(e,(function(){scrivito.on("load",(function(){t.assertUserLoggedIn(),t.connect()}))})),new Cp(t)},function(){var e=!1;function t(e){var t,n;g.a.isObject(e)?(t=scrivito.t("ajax_error",e.message),n=e.message_for_editor):t=g.a.contains(["abort","parsererror","timeout"],e)?scrivito.t("ajax_error.communication"):scrivito.t("ajax_error",e),scrivito.isDevelopmentMode?jr(t):(Object(z.F)(t),scrivito.ErrorDialog.open(n||scrivito.t("ajax_error.message_for_editor"),[e.timestamp,t]))}scrivito.ajax=function(t,n,r){void 0===r&&(r={});var i=g.a.contains(["PUT","POST","DELETE"],t),o=r&&r.skip_write_monitor;i&&(r.timeout=15e3,o||scrivito.WriteMonitor.startWrite());var a=function(t,n,r){void 0===r&&(r={});if(e)return z.j.reject(new Error("scrivito.ajax is disabled due to scrivito.disableAjax()!"));var i=window.location.protocol+"//"+window.location.host+"/__scrivito/";r.data&&(r.data=JSON.stringify(r.data));var o=$.ajax(i+n,g.a.extend({type:t,dataType:"json",contentType:"application/json; charset=utf-8",cache:!1},r));return new z.j((function(e,t){o.then(e),o.fail((function(e,n,r){try{return t(JSON.parse(e.responseText))}catch(e){return t(r)}}))}))}(t,n,r);return i&&!o&&scrivito.WriteMonitor.endWriteWhenDone(a),a},scrivito.ajaxWithErrorDialog=function(e,n,r){return scrivito.ajax(e,n,r).catch((function(e){throw t(e),e}))},scrivito.displayAjaxError=t,scrivito.disableAjax=function(){e=!0},scrivito.enableAjax=function(){e=!1}}(),g.a.extend(scrivito,{path_for_id:function(e){return"/__scrivito/"+e},id_from_path:function(e){var t=/__scrivito\/([a-z0-9]{16})/.exec(e);if(t)return t[1]},detailsPathForId:function(e){return"/__scrivito/page_details/"+e},detailsPathForWidget:function(e){return"/__scrivito/render_widget/"+e.obj().id()+"/widget_details/"+e.id()}}),function(){function e(){scrivito.applicationWindow.reload(),wr($("iframe[name=scrivito_details_dialog]")).reload()}scrivito.revert_resource_command=function(t){return new no({id:"scrivito.sdk.revert_resource",title:scrivito.t("commands.revert_resource.title"),icon:["&#xf032;","entity"],present:function(){return scrivito.editingContext.isMutable()&&!t.is_deleted()},disabled:function(){if(t.is_new())return scrivito.t("commands.revert_resource.is_new")},execute:function(){scrivito.confirmation_dialog({title:scrivito.t("commands.revert_resource.dialog.title"),description:scrivito.t("commands.revert_resource.dialog.description"),icon:"&#xf032;",color:"red",confirm_button_text:scrivito.t("commands.revert_resource.dialog.confirm"),confirm_button_color:"red"}).then((function(){return function(t){scrivito.withSavingOverlay(Object(H.load)((function(){return F.BasicObj.get(t.id())})).then((function(e){return ql(e)})).then(e))}(t)}))}})}}(),kp={init:function(){scrivito.editingContext.isEditingMode()&&scrivito.on("content",(function(e){var t=scrivito.WidgetlistFieldElement.all($(e));g.a.each(t,(function(e){var t=e.basicField();e.setMenu([Fu(t),Hu(t),Ru(t)].concat(e.menu()))}))}))}},scrivito.widgetlistFieldCommands=kp,g.a.extend(scrivito,{displayError:function(e){var t;t=e.message?scrivito.t("ajax_error",e.message):scrivito.t("ajax_error.communication"),scrivito.isDevelopmentMode?jr(t):scrivito.ErrorDialog.open(scrivito.t("ajax_error.message_for_editor"),[t]),Object(z.F)(e)}});var Mp=new z.b((function(e){return scrivito.ajax("PUT","publish_abilities/mget",{data:{obj_ids:e},skip_write_monitor:!0})}));var Dp=function(){function e(e){var t=this,n=pe.p.subState("publishAbility").subState(e);this._loadableData=new H.LoadableData({state:n,loader:function(){return function(e){return Mp.retrieve(e)}(e)},invalidation:function(){return t._objVersion(e)},throwNotLoaded:!0})}return e.get=function(t){var n=new e(t);return n.ensureAvailable(),n},e.store=function(t,n){new e(t).set(n)},e.prototype.set=function(e){this._loadableData.set(e)},Object.defineProperty(e.prototype,"restrictionMessages",{get:function(){return this._loadableData.get().restriction_messages},enumerable:!0,configurable:!0}),e.prototype.ensureAvailable=function(){this._loadableData.get()},e.prototype._objVersion=function(e){return Object(H.loadableWithDefault)("",(function(){return F.BasicObj.getIncludingDeleted(e).version()}))},e}(),xp=n(262);!function(){var e,t;function n(){return JSON.stringify({display_mode:e,workspace_id:t})}function r(){t="published",e="view"}scrivito.editingContext={init:function(){var n=this;!function(){try{var n=JSON.parse(Object(xp.get)("scrivito_editing_context"));e=n.display_mode,t=n.workspace_id}catch(e){if(!(e instanceof SyntaxError))throw e}}(),function(){var n=jt()(scrivito.location()).search(!0);n._scrivito_workspace_id&&(t=n._scrivito_workspace_id);n._scrivito_display_mode&&(e=n._scrivito_display_mode)}(),document.hasFocus()&&this.writeCookie(),$.ajaxPrefilter(this.ajaxPrefilter),se("railsDocument",(function(e){var t=e.appJquery();t&&t.ajaxPrefilter(n.ajaxPrefilter),$(e.browserWindow()).on("focus",(function(){return n.writeCookie()}))})),Qi.subscribe("editingContext",(function(){return n.writeCookie()}))},get displayMode(){return e},set displayMode(t){e=t},get selectedWorkspaceId(){return t},set selectedWorkspaceId(e){t=e},uriWithEditingContextParams:function(e){var t=new jt.a(scrivito.location().href);return e.workspaceId&&t.setQuery("_scrivito_workspace_id",e.workspaceId),e.displayMode&&t.setQuery("_scrivito_display_mode",e.displayMode),t},isViewMode:function(){return"view"===e},isEditingMode:function(){return"editing"===e},isDiffMode:function(){return"diff"===e},ajaxPrefilter:function(e,t,r){e.crossDomain||r.setRequestHeader("Scrivito-Editing-Context",n())},writeCookie:function(){var e={path:"/"};"https:"===location.protocol&&(e.secure=!0),Object(xp.set)("scrivito_editing_context",n(),e)},comparingMode:function(){var t="editing_context.comparing_mode";return this.isDiffMode()?(scrivito.storage.set(t,e),e):scrivito.storage.hasKey(t)?scrivito.storage.get(t):"diff"},isMutable:function(){return"published"!==t},reasonForDisplayModeBeingDisabled:function(e){if("editing"===e)return scrivito.editingMode.reasonForBeingDisabled},conflictingWorkspacesFor:function(e){if(Mo.selected.isPublished())return[];var n=Mo.byModifiedObj(e);return g.a.reject(n,(function(e){return e.id===t}))},restrictionMessagesFor:function(e){return Mo.selected.isMutable()&&Ye()?Dp.get(e.id()).restrictionMessages:[]},reset:function(){r()}},r()}();n(722);scrivito.forgery_protection={init:function(){$.ajaxPrefilter((function(e,t,n){if(!e.crossDomain){var r=$("meta[name=csrf-token]").attr("content");r?n.setRequestHeader("X-CSRF-Token",r):Object(z.F)("Missing CSRF Token in UI, AJAX may fail!")}}))}};var Ep,Sp,jp,Tp,Lp=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)}}();Ep=function(){function e(e,t){var n=t.events,r=t.initialState,i=t.states,o=t.superStateEvents,a=t.actions;this._name=e,this._events=n,this._states=i,this._superStateEvents=o,this._actions=a,this._currentState=r}return e.prototype.triggerEvent=function(e){if(!g.a.contains(this._events,e))throw new scrivito.FsmError('Unknown event "'+e+'"');if(!this._currentState)throw new scrivito.FsmError("Invalid state detected. Maybe initial state was not set?");if(this._superStateEvents){var t=this._superStateEvents[e];if(t)return void this._executeRule(t,e)}var n=this._states[this._currentState];if(!n)throw new scrivito.FsmError('Missing rules for state "'+this._currentState+'"');var r=n[e];r&&this._executeRule(r,e)},Object.defineProperty(e.prototype,"currentState",{get:function(){return this._currentState},enumerable:!0,configurable:!0}),e.prototype._executeRule=function(e,t){var n=this,r=e.transitionTo,i=e.execute;if(!r)throw new scrivito.FsmError('Missing target state for source state "'+this._currentState+'" and event "'+t+'"');this._currentState=r,i&&i.forEach((function(e){var t=n._actions[e];if(!t)throw new scrivito.FsmError('Unknown action "'+e+'"');t()}))},e}(),Sp=function(e){function t(t){return e.call(this,t)||this}return Lp(t,e),t}(z.g),scrivito.Fsm=Ep,scrivito.FsmError=Sp,scrivito.hasTagsAttribute=function(e){var t=ft.a.find(e);return!(!t||!t.attribute("tags"))&&"stringlist"===t.attribute("tags").type},jp=0,Tp=[],scrivito.hotkeys={add:function(e,t){var n="keyup.scrivito_hotkeys."+ ++jp;return Tp.push(n),$(document).on(n,(function(e){if(!scrivito.savingOverlay.isPresent()&&Tp[Tp.length-1]===n){var r={13:t.enter,27:t.escape}[e.keyCode];r&&r(e)}})),Object(z.J)(e,(function(){var e=Tp.indexOf(n);-1!==e&&($(document).off(n),Tp.splice(e,1))}))},init:function(){se("railsDocument",(function(e){e.dom_element().on("keyup",(function(e){return $(document).trigger(e)}))}))},reset:function(){(Tp=[]).forEach((function(e){return $(document).off(e)}))}},function(){function e(e){e.length<1&&$.error('Can not call "scrivito" method on an empty element'),e.length>1&&$.error('Can not call "scrivito" method on more than one tag')}function t(e){return P(e)}scrivito.jQueryPlugin=function(n,r){var i=$(this);switch(n){case"save":return function(e,n){if(e.length>0)if(1===e.length){if(void 0!==n){var r=t(e);return r.set_original_content(n),ld(r.save(n).then((function(){})).catch((function(e){throw{message:e.message}})))}$.error('Can not call "save" with no content')}else $.error('Can not call "scrivito" method on more than one tag')}(i,r);case"content":return function(n){return e(n),t(n).original_content()}(i);case"valid_values":return function(n){return e(n),t(n).valid_values()}(i);case"valid_classes":return function(n){return e(n),t(n).valid_classes()}(i);case"menu":return function(n){e(n);var r=t(n);return new wo(r)}(i);case"reload":!function(n){e(n),t(n),$(n).trigger("reload.scrivito")}(i);break;default:$.error('Unknown method "'+n+'"')}},$.fn.scrivito=scrivito.jQueryPlugin}();var Pp=function(){function e(e){this._preprocessor=e,this._valueOfWriteInProcess=null}return e.prototype.write=function(e,t){var n=this._storeNextWrite(e,t);return this._hasRunningWrite()||this._initiateWrite(),n.promise},e.prototype.pendingWrite=function(){return this._nextWrite?this._nextWrite.value:this._valueOfWriteInProcess},e.prototype._storeNextWrite=function(e,t){return this._nextWrite||(this._nextWrite={deferred:new z.e}),this._nextWrite.value=e,this._nextWrite.writeCallback=t,this._nextWrite.deferred},e.prototype._initiateWrite=function(){var e=this,t=this._nextWrite,n=t.value,r=t.writeCallback,i=t.deferred;return this._nextWrite=null,this._valueOfWriteInProcess=n,this._preprocess(n).then((function(e){return r&&r(e),e})).then((function(t){e._finishWrite(),i.resolve(t)})).catch((function(t){e._finishWrite(),i.reject(t)}))},e.prototype._hasRunningWrite=function(){return!!this._valueOfWriteInProcess},e.prototype._finishWrite=function(){this._nextWrite?this._initiateWrite():this._valueOfWriteInProcess=null},e.prototype._preprocess=function(e){var t=this;return new z.j((function(n){n(t._preprocessor(e))}))},e}();function Ap(e){return function(e,t){return function(e,t){var n=e;t&&(n+="?"+$.param(t));var r=pe.p.subState("getClassSelection").subState(n),i=new H.LoadableData({state:r,loader:function(){return z.j.resolve(scrivito.ajaxWithErrorDialog("GET",n))}});return Object(H.load)((function(){return i.get()}))}(e,t).then((function(e){var t,n=g.a.pluck(e,"name");n.length>=15&&(t=scrivito.ObjCreationHistory.recent(n));var r=g.a.take(g.a.intersection(scrivito.popular_obj_classes,n),5);return{all:e,recent:g.a.map(t,(function(t){return g.a.findWhere(e,{name:t})})),popular:g.a.map(r,(function(t){return g.a.findWhere(e,{name:t})}))}}))}("objs/page_class_selection",e)}scrivito.binaryFieldElement={createInstance:function(e){if("binary"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e),n=new Pp((function(e){return z.f.is(e)?F.Binary.upload(e).intoId(t.basic_obj().id()):e instanceof F.FutureBinary?e.intoId(t.basic_obj().id()):z.j.resolve(e)}));return g.a.extend(t,{preprocess:function(e){return n.write(e).catch((function(e){throw scrivito.displayError(e),e}))}}),t}}},N(scrivito.binaryFieldElement),scrivito.childListElement={createInstance:function(e){if(e.dom_element().attr("data-scrivito-private-child-list-path")){var t=e;return g.a.extend(t,{path:function(){return t.dom_element().attr("data-scrivito-private-child-list-path")},obj:function(){return scrivito.legacy_obj.create_instance({id:t.dom_element().attr("data-scrivito-private-child-list-order-obj-id"),description_for_editor:t.dom_element().attr("data-scrivito-private-obj-description-for-editor")})},fetchPageClassSelection:function(){return Ap({parent_path:t.path()})},allowedClasses:function(){return JSON.parse(t.dom_element().attr("data-scrivito-private-child-list-allowed-classes"))},children:function(){return g.a.map(t.dom_element().find(">[data-scrivito-private-obj-id]"),(function(e){return P($(e))}))},hasChildOrder:function(){return!!t.dom_element().attr("data-scrivito-private-child-list-order-obj-id")},fetchObj:function(){return Object(H.load)((function(){return F.BasicObj.get(t.obj().id())}))},saveOrder:function(){if(t.hasChildOrder()){var e=g.a.map(t.children(),(function(e){return e.obj().id()}));return t.fetchObj().then((function(t){return t.update({childOrder:[e,["referencelist"]]}),t.finishSaving()})).catch((function(e){throw scrivito.displayError(e),e}))}$.error("Can't save order, when child order is not allowed!")},isValidChildClass:function(e){var n=t.allowedClasses();return!n||g.a.contains(n,e)}}),t}},all:function(e){return I("[data-scrivito-private-child-list-path]",e)}},N(scrivito.childListElement);var Np,Ip,Yp,Rp,Fp,Hp,Wp,Bp=n(156);!function(){var e={createInstance:function(e){var n=e;function r(){n.workspace_id()!==scrivito.editingContext.selectedWorkspaceId&&$.error("Tried to edit cms data from wrong workspace!")}return g.a.extend(n,{field_name:function(){return n.dom_element().attr("data-scrivito-field-name")},attr_name:function(){return Object(z.o)(n.field_name())},field_type:function(){return n.dom_element().attr("data-scrivito-field-type")},type_info:function(){if(!Object(z.z)(n.attr_name())){var e=n.field_type();return"enum"===e||"multienum"===e?[e,{values:n.valid_values()}]:[e]}},obj:function(){return scrivito.legacy_obj.create_instance({id:n.dom_element().attr("data-scrivito-private-field-obj-id"),obj_class:n.dom_element().attr("data-scrivito-field-obj-class")})},workspace_id:function(){return n.dom_element().attr("data-scrivito-private-field-workspace-id")},widget:function(){var e=n.dom_element().attr("data-scrivito-private-field-widget-id");if(e)return scrivito.legacy_widget.create_instance(n.obj(),e,n.dom_element().attr("data-scrivito-widget-obj-class"))},save:function(e){return void 0===e&&(e=n.content()),r(),void 0===e&&$.error("Can't save without content"),n.preprocess(e).then((function(e){var t,r=((t={})[n.attr_name()]=[e,n.type_info()],t);return n.container().update(r),n.container().finishSaving().catch((function(){throw new Error(scrivito.t("ajax_error.communication"))}))}))},preprocess:function(e){return z.j.resolve(e)},preload_model:function(){var e=n.dom_element().attr("data-scrivito-private-field-obj-id");return Object(H.load)((function(){return F.BasicObj.getIncludingDeleted(e)}))},basic_obj:function(){var e=n.dom_element().attr("data-scrivito-private-field-obj-id");return F.BasicObj.getIncludingDeleted(e)},basic_widget:function(){var e=n.dom_element().attr("data-scrivito-private-field-widget-id"),t=n.basic_obj();if(e)return t.widget(e)},container:function(){return n.basic_widget()||n.basic_obj()},original_content:function(){if(r(),t(n.field_type()))return function(e,t){if(e&&"date"===t){return new(0,Ar(n.dom_element()).browserWindow().Date)(e)}if(e&&"binary"===t)return new Bp.a(e.id,e.url,e.filename);return e}(scrivito.json_parse_base64(n.dom_element().attr("data-scrivito-private-field-original-content")),n.field_type());$.error("Fields of type "+n.field_type()+" do not support original content")},set_original_content:function(e){t(n.field_type())&&n.dom_element().attr("data-scrivito-private-field-original-content",scrivito.json_stringify_base64(e))},valid_values:function(){return n.dom_element().data("scrivito-private-field-allowed-values")},valid_classes:function(){var e=(n.widget()||n.obj()).model_class().attribute(n.attr_name());return g.a.pluck(e.validClasses(),"name")}}),n},preload:function(e){var t=I("[data-scrivito-field-type]",e),n=[];g.a.each(t,(function(e){e.preload_model&&n.push(e.preload_model())}));var r=z.j.all(n);return r.catch((function(e){scrivito.ErrorDialog.open("An error occured while loading some of the page contents. Please reload.",[e.message])})),r}};function t(e){return g.a.contains(["binary","date","enum","float","html","integer","link","linklist","multienum","reference","referencelist","string","stringlist"],e)}scrivito.cms_field_element=e}(),N(Np={createInstance:function(e){if("date"===e.dom_element().attr("data-scrivito-field-type"))return scrivito.cms_field_element.createInstance(e)},all:function(){return g.a.map($('[data-scrivito-field-type="date"]'),(function(e){return P($(e))}))}}),scrivito.DateFieldElement=Np,Ip={createInstance:function(e){if("html"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e);return g.a.extend(t,{content:function(){var e=t.dom_element().html();return $.trim(e)}}),t}},all:function(){return g.a.map($('[data-scrivito-field-type="html"]'),(function(e){return P($(e))}))}},scrivito.HtmlFieldElement=Ip,N(Ip),Yp={},g.a.extend(scrivito,{legacy_obj:{create_instance:function(e){var t={id:function(){return e.id},obj_class:function(){return e.obj_class},model_class:function(){return ft.a.find(e.obj_class)},description_for_editor:function(){return e.description_for_editor},modification:function(){return e.modification},is_new:function(){return"new"===t.modification()},is_edited:function(){return"edited"===t.modification()},is_deleted:function(){return"deleted"===t.modification()},has_children:function(){return!!e.has_children},has_conflict:function(){return!!e.has_conflict},is_binary:function(){return!!e.is_binary},last_changed:function(){return e.last_changed},parent_path:function(){return e.parent_path},details_src:function(){return"/__scrivito/page_details/"+t.id()},reload_widget:function(e){return t.enqueue_ajax("GET","objs/"+t.id()+"/widget?widget_id="+e)},enqueue_ajax:function(){var e=arguments,n=function(){return scrivito.ajaxWithErrorDialog.apply(null,e)};if("GET"===e[0])return n();var r=$.Deferred();return(Yp[t.id()]||$.Deferred().resolve()).always((function(){n().then((function(){r.resolve.apply(r,arguments)}),(function(){r.reject.apply(r,arguments)}))})),Yp[t.id()]=r,r}};return t},clear_write_promises:function(){Yp={}}}}),g.a.extend(scrivito,{legacy_widget:{create_instance:function(e,t,n,r){r=r||{};var i={id:function(){return t},obj:function(){return e},widget_class_name:function(){return n},model_class:function(){return _n.a.find(i.widget_class_name())},modification:function(){return r.modification},placement_modification:function(){return r.placement_modification},description_for_editor:function(){return r.description_for_editor},is_modified:function(){return!!i.modification()},is_new:function(){return"new"===i.modification()},is_edited:function(){return"edited"===i.modification()},is_deleted:function(){return"deleted"===i.modification()},is_placement_modified:function(){return!!i.placement_modification()},fetch_markup:function(e,t){var n={render_mode:e,inner_tag:t};return scrivito.ajaxWithErrorDialog("GET",o("show_widget")+"?"+$.param(n),{dataType:"html"})},reload:function(){return i.obj().reload_widget(i.id()).then((function(e){r.modification=e.modification}))}},o=function(e){return"render_widget/"+i.obj().id()+"/"+e+"/"+i.id()};return i}}}),N(Rp={createInstance:function(e){if(e.dom_element().attr("data-scrivito-private-obj-id")){var t=e;return g.a.extend(t,{obj:function(){return scrivito.legacy_obj.create_instance({id:t.dom_element().attr("data-scrivito-private-obj-id"),description_for_editor:t.dom_element().attr("data-scrivito-private-obj-description-for-editor")})}}),t}},all:function(){return g.a.map($("[data-scrivito-private-obj-id]"),(function(e){return P($(e))}))}}),scrivito.ObjElement=Rp,function(){function e(e){var r=e;return g.a.isArray(e)||(r=[e]),g.a.map(r,(function(e){return[n(e),t(e)]}))}function t(e){return null===e?e:g.a.isDate(e)?ls.a.utc(e).toISOString():String(e)}function n(e){return g.a.isDate(e)?"date":"string"}scrivito.chainable_search={create_instance:function(t,n,r){var i=t||{predicates:[]},o=r||[];function a(t,n,r,o,a){var s={field:t,operator:n,value:e(r)};return a&&(s.negate=!0),o&&(s.boost=o),i.predicates.push(s),c}function s(e,t){var r={query:JSON.stringify(e),query_action:t};return n&&(r.continuation=n),scrivito.ajaxWithErrorDialog("GET","objs/search?"+$.param(r))}var c={query:function(){return i},and:function(e,t,n,r){if(g.a.isString(e))a(e,t,n,r);else{var o=e.query().predicates;i.predicates=i.predicates.concat(o)}return c},and_not:function(e,t,n){return a(e,t,n,void 0,!0),c},offset:function(e){return i.offset=e,c},order:function(e){return g.a.isString(e)?i.order=[e,"asc"]:i.order=g.a.first(g.a.pairs(e)),c},reverse_order:function(){if(i.order)return i.order[1]="asc"===i.order[1]?"desc":"asc",c;$.error("A search order has to be specified before reverse_order can be applied.")},batch_size:function(e){return i.batch_size=e,c},format:function(e){return i.format=e,c},include_deleted:function(){return i.include_deleted=!0,c},facet:function(e,t){var n=$.param({query:JSON.stringify(i),facet:JSON.stringify({attribute:e,options:t||{}})});return scrivito.ajaxWithErrorDialog("GET","objs/search?"+n)},load_batch:function(){var e;return s(i).then((function(t){var n=t.total,r=t.continuation,a=function(e,t){var n={hits:[],fetchedIds:g.a.clone(t||[])};return g.a.each(e.hits,(function(e){g.a.contains(n.fetchedIds,e.id)||(n.hits.push(e.serialized_obj),n.fetchedIds.push(e.id))})),n}(t,o);r?e=scrivito.chainable_search.create_instance(i,r,a.fetchedIds):(n=a.fetchedIds.length,e=void 0);var s={total:n,hits:a.hits};return $.Deferred().resolve(s,e)}))},size:function(){return s(i,"size").then((function(e){return $.Deferred().resolve(e.total)}))},clone:function(){var e=$.extend(!0,{},i);return scrivito.chainable_search.create_instance(e)},toBasicObjSearch:function(){var e=new F.BasicObjSearch;return g.a.each(i.predicates,(function(t){var n,r=t.field,i=t.operator,o=t.value,a=t.negate,s=t.boost,c=(n=o,g.a.map(n,(function(e){var t=e[0],n=e[1];return"date"===t?ls()(n).toDate():n}))),u=Object(z.o)(r),l=function(e){if(e){var t={};return g.a.each(e,(function(e,n){var r=Object(z.o)(n);t[r]=e})),t}}(s),d=Object(z.o)(i);a?e.andNot(u,d,c):e.and(u,d,c,l)})),e}};return c}}}(),scrivito.obj_where=function(e,t,n,r){return scrivito.chainable_search.create_instance().and(e,t,n,r)},Fp=["enum","float","integer","link","linklist","multienum","reference","referencelist","stringlist"],N(Hp={createInstance:function(e){if(g.a.include(Fp,e.dom_element().attr("data-scrivito-field-type")))return scrivito.cms_field_element.createInstance(e)}}),scrivito.StandardFieldElement=Hp,N(Wp={createInstance:function(e){if("string"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e);return g.a.extend(t,{content:function(){var e=t.dom_element().text();return $.trim(e)}}),t}},all:function(){return g.a.map($('[data-scrivito-field-type="string"]'),(function(e){return P($(e))}))}}),scrivito.StringFieldElement=Wp,function(){var e={notify:function(){t().set(!0)},isPresent:function(){return!!t().get()},clear:function(){t().clear()}};function t(){return pe.p.subState("uiWarning")}scrivito.UiWarning=e}(),scrivito.widgetElement={createPlaceholder:function(e,t){var n=scrivito.Template.render("widget_element_placeholder",{tag:e,widget:{id:t.id(),objClass:t.objClass()}});return P($(n))},isWidgetElement:function(e){return e.is("[data-scrivito-private-widget-id]")},createInstance:function(e){if(scrivito.widgetElement.isWidgetElement(e.dom_element())){var t=e;return g.a.extend(t,{widget:function(){var e=t.dom_element();return scrivito.legacy_widget.create_instance(t.widgetField().obj(),e.attr("data-scrivito-private-widget-id"),e.attr("data-scrivito-widget-obj-class"),{modification:e.attr("data-scrivito-private-widget-modification"),placement_modification:e.attr("data-scrivito-private-widget-placement-modification"),description_for_editor:e.attr("data-scrivito-private-widget-description-for-editor")})},widgetField:function(){return P(t.dom_element().parent())},fetchMarkup:function(){var e=t.widgetField().renderMode(),n=t.widgetField().innerTag();return t.widget().fetch_markup(e,n)},fieldName:function(){return t.widgetField().field_name()},hasWidgetlist:function(){return!!t.dom_element().find("[data-scrivito-field-type=widgetlist]").length},widgetId:function(){return t.dom_element().attr("data-scrivito-private-widget-id")},basicWidget:function(){return t.widgetField().basic_obj().widget(t.widgetId())},materialize:function(){scrivito.ElementOverlay.create(t.dom_element()),t.basicWidget().finishSaving().then((function(){return t.fetchMarkup()})).then((function(e){var n=$(e);t.dom_element().replaceWith(n),ae(n),scrivito.ensure_fully_visible_within_window(n)}))}}),t}},all:function(e){return I("[data-scrivito-private-widget-id]",e)}},N(scrivito.widgetElement);var zp,Up=g.a.difference;function qp(e,t){var n=Up(e,t),r=Up(t,e),i=function e(t,n){var r=function(e,t){if(0===e.length)return;var n=g.a.map(e,(function(n){return{item:n,distance:Math.abs(t.indexOf(n)-e.indexOf(n))}})),r=g.a.max(n,(function(e){return e.distance}));if(r.distance>0)return r.item}(t,n);if(!r)return[];var i=Up(t,[r]),o=Up(n,[r]);return[r].concat(e(i,o))}(Up(e,n),Up(t,r));return function(e,t,n,r){var i=g.a.map(t,(function(e){return function(e,t){return{item:t,operation:e}}("delete",e)})),o=n.concat(r);function a(){o.shift()}return g.a.each(n,(function(t){i.push(Vp("move",t,e,o)),a()})),g.a.each(r,(function(t){i.push(Vp("insert",t,e,o)),a()})),i}(t,n,i,r)}function Vp(e,t,n,r){var i=n.indexOf(t);return{item:t,operation:e,after:Up(n.slice(0,i),r),before:Up(n.slice(i+1),r)}}N(zp={all:function(e){return I('[data-scrivito-field-type="widgetlist"]',e)},createInstance:function(e){if("widgetlist"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e);return g.a.extend(t,{save:function(){scrivito.warn('save() on a "widgetlist" is not supported!')},content:function(){return g.a.map(t.widgetElements(),(function(e){return e.widget().id()}))},widgetElements:function(){return g.a.map(t.dom_element().children(),(function(e){var t=$(e);if(t.is("[data-scrivito-private-widget-id]"))return P(t);scrivito.throw_error("Scrivito found a widget with invalid markup",{params:[e],description:scrivito.t("widgetlist_field_element.markup_error")})}))},isEmpty:function(){return 0===t.widgetElements().length},basicField:function(){return new F.BasicField(t.container(),t.attr_name(),["widgetlist"])},renderMode:function(){return t.dom_element().attr("data-scrivito-private-field-widget-render-mode")},innerTag:function(){return t.dom_element().attr("data-scrivito-private-field-widget-inner-tag")},refresh:function(){var e=this,n=t.container().get(t.attr_name(),["widgetlist"]),r=qp(g.a.invoke(t.widgetElements(),"widgetId"),n.map((function(e){return e.id()})));g.a.each(r,(function(t){"insert"===t.operation?e._insertWidgetElement(t.item,t.before[0]):"delete"===t.operation&&e._removeWidgetElement(t.item)})),Hr(t),zi(t)},_removeWidgetElement:function(e){t._widgetElementWithId(e).dom_element().remove()},_insertWidgetElement:function(e,n){var r=t.basic_obj().widget(e),i=scrivito.widgetElement.createPlaceholder(t.innerTag(),r);t._insertIntoDom(i.dom_element(),n),i.materialize()},_insertIntoDom:function(e,n){n?t._widgetElementWithId(n).dom_element().before(e):t.dom_element().append(e)},_widgetElementWithId:function(e){var n="[data-scrivito-private-widget-id="+e+"]",r=t.dom_element().children(n);if(0!==r.length)return P(r)}}),t}}}),scrivito.WidgetlistFieldElement=zp;var $p,Gp,Kp=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)}}(),Jp=function(e){function t(t,n){var r=e.call(this)||this;return r.objId=t,r.reason=n,r}return Kp(t,e),t}(z.i);function Qp(e,t){return z.j.all(e.map((function(e){return function(e,t){return z.j.all([Zp(e),Xp(e,t),ef(e,t)]).then((function(){return function(e,t){switch(e.objData.getAttribute("_modification")){case"new":return function(e,t){var n=e.objData;return nf(e.id(),t,n.get()).then((function(){return n.update({_marked_deleted:!0}),n.finishSaving()}))}(e,t);case"deleted":return function(e,t){return nf(e.id(),t,{_marked_deleted:!0}).then((function(){return Vl(e)}))}(e,t);default:return function(e,t){var n=e.objData,r=e.id();return rf(r,t).then((function(i){var o=Object(xr.e)(i,n.get());return nf(r,t,o).then((function(){return ql(e)}))}))}(e,t)}}(e,t)}))}(e,t).catch((function(e){if(e instanceof Jp)return e;throw e}))}))).then((function(e){return v.filter(e,(function(e){return e instanceof Jp}))}))}function Zp(e){return e.objData.getAttribute("_conflicts")?z.j.reject(new Jp(e.id(),"conflict")):z.j.resolve()}function Xp(e,t){var n=e.id();return rf(n,t).then((function(e){if(e&&e._modification)throw new Jp(n,"modified")}))}function ef(e,t){var n=e.id(),r=Mo.selected.id;return z.j.all([of(n,r),of(n,t)]).then((function(e){var t,r,i,o=e[0],a=e[1];if(o&&a&&(t=o,r=a,i=Object(xr.e)(tf(t),tf(r)),!v.isEmpty(i)))throw new Jp(n,"conflict")}))}function tf(e){return v.pick(e,(function(e,t){return"_"!==t[0]||v.contains(["_path","_permalink","_obj_class"],t)}))}function nf(e,t,n){return de.d.put("workspaces/"+t+"/objs/"+e,{obj:n})}function rf(e,t,n){return void 0===n&&(n="objs"),de.d.get("workspaces/"+t+"/"+n+"/mget",{ids:[e]}).then((function(e){return e.results[0]}))}function of(e,t){return rf(e,t,"base_objs")}scrivito.objClipboard={save:function(e){var t=scrivito.editingContext.selectedWorkspaceId,n=e.serializeAttributes();scrivito.storage.set("obj_clipboard",{workspaceId:t,serializedAttributes:n})},isPresent:function(){return scrivito.storage.hasKey("obj_clipboard")},get serializedAttributes(){return this._clipboard.serializedAttributes},get objClass(){return this.serializedAttributes._obj_class},get objId(){return this.serializedAttributes._id},get workspaceId(){return this._clipboard.workspaceId},clear:function(){scrivito.storage.remove("obj_clipboard")},get _clipboard(){if(!this.isPresent())throw new z.g("Obj clipboard is empty");return scrivito.storage.get("obj_clipboard")}},function(){var e={get storageKey(){return"obj_class_selection.used_classes"},store:function(e){var n=t();n.unshift(e),n=g.a.uniq(n),n=g.a.take(n,200),scrivito.storage.set(this.storageKey,n)},recent:function(e){var n=g.a.intersection(t(),e);return g.a.take(n,5)}};function t(){return scrivito.storage.get(e.storageKey)||[]}scrivito.ObjCreationHistory=e}(),scrivito.openObj=function(e){scrivito.toLegacyObj(e).then((function(e){if(e.is_binary()&&(e.is_edited()||e.is_new()))return scrivito.resourceDialog.open(e);var t,n={};if(e.is_binary())t="/__scrivito/resource_details/"+e.id(),n.return_to=document.URL;else{var r=jt()(scrivito.path_for_id(e.id()));r.path("/scrivito/"+r),t=r.normalizePath().toString()}return e.is_deleted()&&(n._scrivito_display_mode="diff"),g.a.isEmpty(n)||(t+="?"+$.param(n)),scrivito.withSavingOverlay(scrivito.redirect_to(t))}))},$p={},Gp={get all(){return["mobile","tablet","laptop","desktop"]},get current(){return scrivito.storage.get("devices.current")||"desktop"},set current(e){if(!g.a.contains(this.all,e))throw new z.g('Unknown device "'+e+'"');scrivito.storage.set("devices.current",e),g.a.map($p,(function(t){return t(e)}))},subscribeChange:function(e){var t=g.a.uniqueId("scrivito.devices.token");return $p[t]=e,t},unsubscribeChange:function(e){delete $p[e]},reset:function(){$p={},scrivito.storage.remove("devices.current")}},scrivito.PreviewDevice=Gp,scrivito.PreviewDevice.STORAGE_KEY="devices.current",function(){var e=!1,t=[];function n(e){e&&Object(d.unmountComponentAtNode)(e)}scrivito.renderReactComponent=function(n,r){var i=r.get(0);return e&&t.push(i),Object(d.render)(n,i)},scrivito.trackRenderedComponents=function(){e=!0},scrivito.unmountAllComponents=function(){t.forEach(n),t=[]}}();var af,sf,cf;n(723),n(724);af={get loadTemplatesFromServer(){return!1},render:function(e,t){var n;return window.ScrivitoHandlebarsTemplates&&(n=ScrivitoHandlebarsTemplates[e]),window.__hbs__&&__hbs__[e]&&(n=Handlebars.compile(__hbs__[e])),n||$.error("Could not load template: "+e),n(t)}},Handlebars.registerHelper("translate",(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ue.default.translate(e[0])})),Handlebars.registerHelper("localizeDate",(function(e){return Ue.default.localizeDate(e())})),Handlebars.registerHelper("localizeDateRelative",(function(e){return Ue.default.localizeDateRelative(e())})),Handlebars.registerHelper("array_to_title",(function(e){var t=e().map((function(e){return Handlebars.Utils.escapeExpression(e)}));return new Handlebars.SafeString(t.join("&#13;"))})),Handlebars.registerHelper("render",(function(e,t){return new Handlebars.SafeString(af.render(e,t))})),scrivito.Template=af,function(){function e(e){return Object(H.load)((function(){return vn(e)})).then((function(t){return scrivito.legacy_obj.create_instance({id:e.id(),obj_class:e.objClass(),description_for_editor:t,modification:e.modification(),is_binary:tn(e),last_changed:e.lastChanged(),has_conflict:e.hasConflicts()})}))}scrivito.toLegacyObjs=function(t){return z.j.all(g.a.map(t,e))},scrivito.toLegacyObj=e}(),sf=!1,cf={get isImmediateMode(){return sf},set immediateMode(e){sf=!!e},wrap:function(e,t){var n=this;return new z.j((function(r){n.isImmediateMode?(t(),r()):(e.on("webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd",(function(){return r()})),Object(z.G)(t))}))}},scrivito.Transition=cf,g.a.extend(scrivito,{child_list_marker:{init:function(){scrivito.inplace_marker.define((function(e,t){scrivito.editingContext.isEditingMode()&&g.a.each(scrivito.childListElement.all(t),(function(t){var n=scrivito.t("child_list_menu.description",t.obj().description_for_editor());e.activate_for(t,{description:n})}))}))}}}),g.a.extend(scrivito,{confirmation_dialog:function(e){return scrivito.confirmation_dialog.open(e)}}),g.a.extend(scrivito.confirmation_dialog,{open:function(e){var t=$(scrivito.Template.render("confirmation_dialog",g.a.extend({icon:"&#xf01d;",cancel_button_text:scrivito.t("cancel"),confirm_button_text:scrivito.t("confirm")},e||{})));$("#scrivito_editing").append(t);var n=new z.e,r=function(){return scrivito.dialog.close_with_transition(t),n.resolve(),!1},i=function(){return scrivito.dialog.close_with_transition(t),n.reject(),!1};return t.find(".scrivito_confirm").on("click",r),t.find(".scrivito_cancel").on("click",i),scrivito.dialog.open_and_center_with_transition(t),scrivito.withDialogBehaviour(t,n.promise,{enter:r,escape:i})},remove_all:function(){$(".scrivito_confirmation_dialog").remove()}}),function(){var e,t={init:function(){se("railsDocument",(function(e){var t=$(e.browserWindow());g.a.each(["resize","scroll","load"],(function(e){t.on(e,(function(){return scrivito.context_menu.update_position()}))}))}))},toggle:function(t,r,i){e?n():function(t,r,i){var o,a=i.when_closed;i.mousePosition&&(s=t,c=i.mousePosition,u=c.x,l=c.y,d=s.offset(),p=u-d.left,f=l-d.top,o={x:p/s.width(),y:f/s.height()});var s,c,u,l,d,p,f;e=function(e){return $(scrivito.Template.render("menu",{menu_items:g.a.map(scrivito.pattern_sort(e,scrivito.menu_order),(function(e){return scrivito.menu_item.create_instance(e)}))}))}(r),function(t,r){g.a.each(t,(function(t){t.domId&&e.on("click","."+t.domId(),(function(){return t.isEnabled()&&n(r),t.execute(),!1}))}))}(r,a),function(t,n){e.update_position=function(){var r=Pr(t),i=r.x,o=r.y;n&&(i+=n.x*t.width(),o+=n.y*t.height()),e.offset({left:i,top:o})},n&&e.addClass("scrivito_precise_offset")}(t,o),function(t){e.find(".scrivito_menu_box_overlay").on("click",(function(){return n(t),!1}))}(a),function(t,n){var r=e.find(".scrivito_menu_box");n&&r.addClass("scrivito_"+n);e.appendTo($("#scrivito_editing")),e.update_position();var i=$(".iframe_wrapper"),o=t.offset().left-i.scrollLeft();i.width()-o<r.width()&&r.addClass("scrivito_left");var a=$(scrivito.applicationWindow.browserWindow()),s=r.height()+25,c=t.offset().top-a.scrollTop(),u=a.height()-c;s>u&&s<c&&r.addClass("scrivito_top");r.fadeIn(500)}(t,i.css_class)}(t,r,i||{})},update_position:function(){e&&e.update_position()},close:function(){e&&n()}};function n(t){return e.remove(),e=null,t&&t(),!1}scrivito.context_menu=t}(),g.a.extend(scrivito,{current_page_link_dialog:function(){var e=scrivito.editingContext.selectedWorkspaceId,t=scrivito.editingContext.uriWithEditingContextParams({workspaceId:e,displayMode:"view"}),n=$(scrivito.Template.render("current_page_link_dialog",{current_page_link:t})),r=new z.e;$("#scrivito_editing").append(n),n.find("input").focus().select();var i=function(){return scrivito.dialog.close_with_transition(n),r.resolve(),!1};n.find(".scrivito_done").on("click",i),scrivito.dialog.open_and_adjust_with_transition(n),scrivito.withDialogBehaviour(n,r.promise,{enter:i,escape:i})}});var uf,lf,df;g.a.extend(scrivito,{details_dialog:{open:function(e,t,n,r){var i=new z.e,o=$(scrivito.Template.render("details_dialog",{src:e,title:t,obj:n}));n&&function(e,t,n){e.append(scrivito.Template.render("obj_menu",{obj:t})),e.on("click",(function(){e.addClass("active");var t=g.a.isFunction(n)?n():n;return scrivito.context_menu.toggle(e,t,{css_class:"obj_menu",when_closed:function(){return e.removeClass("active")}}),!1}))}(o.find(".scrivito_obj_menu"),n,r),$("#legacy_details_dialog").append(o);var a=function(e){e.append(scrivito.Template.render("saving_indicator"));var t=scrivito.WriteMonitor.on("start_write",(function(){e.find(".scrivito_saving_indicator .scrivito_saving_in_progress").show(),e.find(".scrivito_saving_indicator .scrivito_saving_done").hide()})),n=scrivito.WriteMonitor.on("end_write",(function(t){if(!scrivito.WriteMonitor.isWriting()&&(e.find(".scrivito_saving_indicator .scrivito_saving_in_progress").hide(),!t)){var n=e.find(".scrivito_saving_indicator .scrivito_saving_done");n.show(),scrivito.Transition.isImmediateMode||setTimeout((function(){return n.fadeOut(1e3)}),3e3)}}));return{destroy:function(){scrivito.WriteMonitor.off(t),scrivito.WriteMonitor.off(n),e.find(".scrivito_saving_indicator").remove()},startWriteToken:t,endWriteToken:n}}(o.find(".scrivito_saving_indicator")),s=o.find(".scrivito_modal_body .scrivito_spinning"),c=o.find("iframe");c.on("load",(function(){c.contents().find("body").hasClass("scrivito_dialog")&&!c.contents().get(0).defaultView.scrivito&&jr('Missing required Scrivito assets in the details dialog. Are you sure your "scrivito_dialog.html.*" sources the Scrivito assets?'),s.hide();var e=c.contents().find("[data-scrivito-modal-size]").attr("data-scrivito-modal-size");g.a.contains(["small","medium","large"],e)&&(o.removeClass("scrivito_modal_medium"),o.addClass("scrivito_modal_"+e)),scrivito.dialog.adjust(o)}));var u=function(){return a.destroy(),scrivito.dialog.close_without_transition(o),i.resolve(),!1};return o.find(".scrivito_cancel").on("click",u),scrivito.dialog.open_and_adjust_without_transition(o),scrivito.withDialogBehaviour(o,i.promise,{escape:u})}}}),g.a.extend(scrivito,{dialog:{open_without_transition:function(e){e.addClass("scrivito_show")},open_and_adjust_without_transition:function(e){scrivito.dialog.open_without_transition(e),scrivito.dialog.adjust(e)},open_with_transition:function(e){return scrivito.Transition.wrap(e,(function(){scrivito.dialog.open_without_transition(e)}))},open_and_adjust_with_transition:function(e){return scrivito.dialog.open_with_transition(e).then((function(){scrivito.dialog.adjust(e)}))},open_and_center_with_transition:function(e){return scrivito.dialog.open_with_transition(e).then((function(){scrivito.center(e)}))},close_with_transition:function(e){scrivito.Transition.wrap(e,(function(){e.removeClass("scrivito_show")})).then((function(){e.remove()}))},close_without_transition:function(e){e.removeClass("scrivito_show"),e.remove()},adjust:function(e){e.find(".scrivito_height_done").removeClass("scrivito_height_done"),un(e)}}}),$(window).on("resize",(function(){g.a.each($(".adjust_dialog"),(function(e){scrivito.dialog.adjust($(e))})),g.a.each($(".scrivito_center_dialog"),(function(e){scrivito.center($(e))}))})),g.a.extend(scrivito,{withDialogBehaviour:function(e,t,n){return scrivito.withDialogOverlay(e,scrivito.hotkeys.add(t,n))}}),uf={create:function(e){var t=$(".scrivito_overlay").last();t.removeClass("scrivito_show");var n=$(scrivito.Template.render("overlay"));return e.before(n),scrivito.Transition.wrap(n,(function(){n.addClass("scrivito_show")})),{overlay:n,predecessor:t}},destroy:function(e){var t=e.overlay,n=e.predecessor;scrivito.Transition.wrap(t,(function(){t.removeClass("scrivito_show")})).then((function(){t.remove(),n.length&&n.addClass("scrivito_show")}))},removeAll:function(){$(".scrivito_overlay").remove()}},scrivito.withDialogOverlay=function(e,t){var n=scrivito.dialogOverlay.create(e);return Object(z.J)(t,(function(){scrivito.dialogOverlay.destroy(n)}))},scrivito.dialogOverlay=uf,scrivito.dragScroll={SENSIVITY:30,SPEED:25,init:function(){var e=this;lf=$("body").offset().top,se("railsDocument",(function(t){var n=t.dom_element();n.find("body").on("dragover",(function(t){return e.dragover(t,n)}))}))},dragover:function(e,t){var n=e.originalEvent.pageY,r=t.scrollTop();n-r<this.SENSIVITY?t.scrollTop(r-this.SPEED):$(window).height()-n+r-lf<this.SENSIVITY&&t.scrollTop(r+this.SPEED)}},df={create:function(e){var t=e.position(),n=$(scrivito.Template.render("element_overlay")).css({position:"absolute",top:0,left:t.left,width:e.width(),height:e.height()});return e.append(n),n}},scrivito.withElementOverlay=function(e,t){var n=df.create(e);return Object(z.J)(t,(function(){return n.remove()}))},scrivito.ElementOverlay=df,function(){function e(e,t){if(e.protocol===window.location.protocol&&e.host===window.location.host){if(!t)return"_self"}else if(""===t||"_self"===t||"_parent"===t||/^scrivito/.test(t))return"_top";return t}g.a.extend(scrivito,{external_links:{init:function(){se("railsDocument",(function(e){var t=e.dom_element(),n=t.find("head > base");n.length||(n=$("<base>"),t.find("head").prepend(n)),n.attr("target","_top")})),scrivito.on("content",(function(t){var n=$(t);g.a.each(n.find("a").not('[data-scrivito-editing] [data-scrivito-field-type="html"] a'),(function(t){var n=$(t),r=e(t,n.attr("target"));n.attr("target",r)})),g.a.each(n.find("form").not('[data-scrivito-editing] [data-scrivito-field-type="html"] form'),(function(t){var n=$(t),r=document.createElement("a");r.href=t.action;var i=e(r,n.attr("target"));n.attr("target",i)}))}))}}})}();var pf,ff,hf=n(125);function mf(e){var t=jt()(e);return t.path("/scrivito/"+t.path()),scrivito.redirect_to(t.normalizePath().toString())}!function(){function e(e){return new F.BasicLink({objId:e.id()})}scrivito.fileDrop={init:function(){var e=this;scrivito.on("content",(function(t){scrivito.in_editable_view()&&g.a.each($(t).find("\n          [data-scrivito-field-type=binary],\n          img[data-scrivito-field-type=link],\n          img[data-scrivito-field-type=linklist],\n          img[data-scrivito-field-type=reference]\n        "),(function(t){var n=$(t);n.on("dragenter",(function(){return e.onDragenter(n),!1})),n.on("dragleave",(function(){return e.onDragleave(n),!1})),n.on("drop",(function(t){return e.onDrop(n,t.originalEvent.dataTransfer),!1}))}))}))},onDragenter:function(e){e.addClass("scrivito_file_dragover");var t=e.data("scrivito-dragenter-counter")||0;t+=1,e.data("scrivito-dragenter-counter",t)},onDragleave:function(e){var t=e.data("scrivito-dragenter-counter");t-=1,e.data("scrivito-dragenter-counter",t),0===t&&e.removeClass("scrivito_file_dragover")},onDrop:function(e,t){if(t.files&&1===t.files.length){var n=P(e);e.addClass("scrivito_element_overlay");var r=Object(z.o)(n.field_name());this.save(n.field_type(),r,n.container(),t.files[0]).then((function(){return e.scrivito("reload")}))}e.removeClass("scrivito_file_dragover")},save:function(t,n,r,i){return function(t,n,r){return new z.j((function(i){switch(t){case"binary":return i(function(e,t){var n=e instanceof F.BasicObj?e:e.obj();return F.Binary.upload(t).intoId(n.id())}(n,r));case"link":return i(function(t){return Object(hf.a)(t).then(e)}(r));case"linklist":return i(function(t){return Object(hf.a)(t).then((function(t){return[e(t)]}))}(r));case"reference":return i(Object(hf.a)(r))}}))}(t,r,i).then((function(e){var i;return r.update(((i={})[n]=[e,[t]],i)),r.finishSaving()}))}}}(),pf={open:function(e,t){void 0===t&&(t={});var n,r=$(e);r.is("[name=scrivito_application]")||(n=r.closest("#scrivito_editing > div"));var i=$(scrivito.Template.render("iframe_dialog",{color:t.color,confirm:t.confirm||scrivito.t("confirm"),cancel:t.cancel||scrivito.t("cancel"),disable_confirm:!1===t.confirm,disable_cancel:!1===t.cancel}));$("#scrivito_editing").append(i);var o=i.find(".scrivito_modal_body"),a=new z.e,s=function(){return scrivito.dialog.close_without_transition(i),a.resolve(),!1},c=function(){return scrivito.dialog.close_without_transition(i),a.reject(),!1};i.find(".scrivito_confirm").on("click",s),i.find(".scrivito_cancel").on("click",c),scrivito.withDialogBehaviour(i,a.promise,{enter:s,escape:c}),scrivito.dialog.open_and_adjust_without_transition(i),scrivito.restore_styles_afterwards(a.promise,r),r.css("z-index",this.zIndex(i)+1),n?(scrivito.restore_styles_afterwards(a.promise,n),n.addClass("scrivito_dialog_mode")):r.attr("class","");var u=function(){a.isPending()&&(r.width(o.width()),r.height(o.height()),r.offset(o.offset()))};return $(window).on("resize",u),u(),{when_open:z.j.resolve(o),when_closed:a.promise}},zIndex:function(e){return parseInt(e.css("z-index"),10)}},scrivito.IframeDialog=pf,function(){var e=[];g.a.extend(scrivito,{inplace_marker:{init:function(){scrivito.on("content",(function(e){scrivito.inplace_marker.refresh(Ar($(e)).dom_element())}))},define:function(t){e.push(t)},refresh:function(t){scrivito.editingContext.isViewMode()||(t.find(".scrivito_editing_marker").remove(),g.a.each(e,(function(e){e(r,t)})),scrivito.context_menu.update_position())},are_overlapping:function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.left<=r.right&&r.left<=n.right&&n.top<=r.bottom&&r.top<=n.bottom},reset_callbacks:function(){e=[]}}});var t=function(e){e.addClass("scrivito_active scrivito_entered");var t=setTimeout((function(){e.removeClass("scrivito_entered")}),2e3);e.data("scrivito-entered-timer",t)},n=function(e){e.find(".scrivito_active").removeClass("scrivito_active"),e.find(".scrivito_entered").removeClass("scrivito_entered").each((function(){clearTimeout($(this).data("scrivito-entered-timer"))}))},r={activate_for:function(e,r){var i=$(scrivito.Template.render("inplace_marker",r||{}));i.on("click",(function(){var t,n,r;return scrivito.isDevelopmentMode&&(t=i.get(0),n=$($(t).closest("body")).find(".scrivito_editing_marker").not(t),(r=g.a.filter(n,(function(e){return scrivito.inplace_marker.are_overlapping(t,e)}))).length&&scrivito.warn.apply(null,[scrivito.t("inplace_marker.overlapping"),t].concat(r))),scrivito.context_menu.toggle(i,e.menu()),!1}));var o=e.dom_element();i.prependTo(o),function(e){if(!e.data("scrivito-highlightable")){e.data("scrivito-highlightable",!0);var r=Ar(e).dom_element();e.on("mouseenter",(function(i){$(i.target).closest(":data(scrivito-highlightable)").is(e)&&(n(r),t(e))})),e.on("mouseleave",(function(e){n(r);var i=$(e.relatedTarget).closest(":data(scrivito-highlightable)");i.length&&t(i)}))}}(o)}}}(),function(){g.a.extend(scrivito,{menu_item:{create_instance:function(n){return n.execute?e(n):n.render?n:t(n)}}});var e=function(e){var t=e.icon()||["&#xf000;","entity"],n=t[0],r=t[1],i="menu_item/icon";i+="entity"===r?"_hex":"_sci";var o=function(){return scrivito.Template.render("menu_item",{domId:e.domId(),title:e.title(),icon:scrivito.Template.render(i,{icon:n}),tooltip:e.tooltip(),isDisabled:e.isDisabled(),isEnabled:e.isEnabled(),reasonForBeingDisabled:e.reasonForBeingDisabled()})};return{render:function(){if(e.isPresent()){var t;if(e.needsUpdate()){var n=g.a.uniqueId(e.domId());t=scrivito.Template.render("menu_item/spinner",{id:n}),e.update().then((function(){$("#"+n).replaceWith(o())}))}else t=o();return t}}}},t=function(e){return{render:function(){return scrivito.Template.render("menu_item/separator",e)}}}}(),ff={init:function(){scrivito.on("content",(function(e){scrivito.editingContext.isEditingMode()&&g.a.each(scrivito.widgetElement.all($(e)),(function(e){scrivito.optionMarker.create(e,"top"),scrivito.optionMarker.create(e,"bottom")}))}))},create:function(e,t){var n=$(scrivito.Template.render("option_marker",{position:t,always_visible:scrivito.optionMarker.always_visible}));n.appendTo(e.dom_element()),n.on("click",(function(){var n=e.basicWidget();return Wu(n,t),!1}))}},scrivito.optionMarker=ff;var _f=function(e,t,n){return void 0===t&&(t="page"),new no({id:"scrivito.sdk.delete_obj",title:scrivito.t("commands.delete_obj.title",scrivito.t("models."+t+".name")),icon:["&#xf018;","entity"],disabled:function(){return scrivito.editingContext.isMutable()?e.has_children()?scrivito.t("commands.delete_obj.has_children"):void 0:scrivito.t("commands.delete_obj.published_workspace")},execute:function(){Bn.open(e.id()).then((function(t){t&&scrivito.withSavingOverlay(function(e,t){return Object(H.load)((function(){return F.BasicObj.get(e.id())})).then((function(e){return function(e,t){if(t)return z.j.resolve(t);return Object(H.load)((function(){return e.parent()})).then((function(e){return scrivito.path_for_id(e.id())})).catch((function(){return"/"}))}(e,t).then((function(t){return e.destroy(),e.finishSaving().then((function(){return t}))}))}))}(e,n).then(mf))}))}})};var vf=function(e,t){return void 0===t&&(t="commands.mark_resolved_obj"),new no({id:"scrivito.sdk.mark_resolved_obj",title:scrivito.t(t+".title"),icon:["&#xf124;","entity"],present:function(){return e.has_conflict()},execute:function(){(function(e){return scrivito.confirmation_dialog({title:scrivito.t("commands.mark_resolved_obj.dialog.title"),description:scrivito.t(e+".dialog.description"),icon:"&#xf124;",color:"red",confirm_button_text:scrivito.t("commands.mark_resolved_obj.dialog.confirm"),confirm_button_color:"red"})})(t).then((function(){return scrivito.withSavingOverlay((t=e.id(),Object(H.load)((function(){return F.BasicObj.get(t)})).then((function(e){return e.markResolvedAsync()}))).then(scrivito.applicationWindow.reload));var t}))}})};var gf,yf,bf=function(e,t){return void 0===t&&(t="commands.restore_obj"),new no({id:"scrivito.sdk.restore_obj",title:scrivito.t(t+".title"),icon:["&#xf032;","entity"],present:function(){return e&&e.is_deleted()},execute:function(){var t=Vl(F.BasicObj.getIncludingDeleted(e.id()));scrivito.withSavingOverlay(t.then((function(){return scrivito.reload()})))}})};scrivito.resourceDialog={init:function(e){if(e.obj){var t=scrivito.legacy_obj.create_instance(e.obj);se("open",(function(){scrivito.resourceDialog.open(t,e.return_to).then((function(){return scrivito.withSavingOverlay(scrivito.redirect_to(e.return_to))}))}))}},open:function(e,t){var n=scrivito.t("resource_dialog.title",e.description_for_editor());return scrivito.details_dialog.open(e.details_src(),n,e,[scrivito.revert_resource_command(e),bf(e,"resource_dialog.commands.restore_obj"),vf(e,"resource_dialog.commands.mark_resolved_obj"),_f(e,"resource",t||scrivito.path_for_id(scrivito.applicationDocument().pageId()))])}},g.a.extend(scrivito,{withSavingOverlay:function(e){return scrivito.savingOverlay.show(),g.a.isFunction(e.always)?e.always((function(){return scrivito.savingOverlay.hide()})):(Object(z.J)(e,scrivito.savingOverlay.hide),e)},savingOverlay:{show:function(){gf||(gf=$(scrivito.Template.render("saving_overlay")),$("#scrivito_editing").append(gf)),scrivito.Transition.wrap(gf,(function(){gf&&gf.addClass("scrivito_show")}))},hide:function(){gf&&(gf.remove(),gf=null)},removeAll:function(){$(".scrivito_saving_overlay").remove(),gf=null},isPresent:function(){return!!gf}}}),function(){g.a.extend(scrivito,{widget_marker:{init:function(){scrivito.inplace_marker.define((function(t,n){if(scrivito.editingContext.isMutable()){var r=scrivito.WidgetlistFieldElement.all(n);g.a.each(r,(function(n){g.a.each(n.widgetElements(),(function(n){var r=n.widget().is_modified()||n.widget().is_placement_modified();(scrivito.editingContext.isEditingMode()||scrivito.editingContext.isDiffMode()&&r)&&(n.hasWidgetlist()&&n.dom_element().attr("data-scrivito-private-structure-widget","true"),t.activate_for(n,e(n)))}))}))}}))}}});var e=function(e){var t={};if(e.hasWidgetlist()&&(t.icon="scrivito_icon_structure_widget"),scrivito.editingContext.isDiffMode()){var n,r=e.widget().modification(),i=e.widget().placement_modification();switch(r){case"new":n="widget_is_new",t.icon="scrivito_icon_inv_plus";break;case"deleted":n="widget_is_deleted",t.icon="scrivito_icon_trash";break;case"edited":switch(t.icon="scrivito_icon_edited",i){case"new":n="widget_is_edited_and_dragged_here",t.css_classes="scrivito_widget_moved_icon";break;case"deleted":n="widget_is_edited_and_dragged_away",t.css_classes="scrivito_widget_moved_icon";break;default:n="widget_is_edited"}break;default:switch(t.icon="scrivito_icon_moved",i){case"new":n="widget_is_dragged_here";break;case"deleted":n="widget_is_dragged_away"}}n&&(t.tooltip=scrivito.t("widget_marker."+n))}return t.description=e.widget().description_for_editor(),t}}(),function(){var e={init:function(){scrivito.on("content",(function(e){if(scrivito.in_editable_view()){var n=$(e);n.attr("data-scrivito-private-widget-id")&&t(n),g.a.each(n.find("[data-scrivito-private-widget-id]"),(function(e){t($(e))}))}}))},reload:function(e){scrivito.withElementOverlay(e.dom_element(),e.fetchMarkup().then((function(t){var n=$(t);e.dom_element().replaceWith(n),ae(n)})))}};function t(t){t.on("reload.scrivito",(function(){return function(){if(!t.is("[data-scrivito-private-reloading]")){t.attr("data-scrivito-private-reloading","true");var n=P(t);e.reload(n)}}(),!1}))}scrivito.WidgetReloading=e}(),yf="widget_clipboard",scrivito.widgetClipboard={saveWidget:function(e){scrivito.storage.set(yf,{widgetAttributes:e.serializeAttributes(),objClass:e.objClass()})},isPresent:function(){return!!scrivito.storage.hasKey(yf)},widget:function(){var e=scrivito.storage.get(yf);if(e&&e.widgetAttributes)return F.BasicWidget.newWithSerializedAttributes(e.widgetAttributes)},objClass:function(){var e=scrivito.storage.get(yf);return e&&e.objClass},clear:function(){scrivito.storage.remove(yf)}};n(725);function wf(e,t){var n=Object(H.load)((function(){return Oo("create")}));return scrivito.withSavingOverlay(n).then((function(n){var r=e.length,i="editable_ws_dialog."+t,o=$(scrivito.Template.render("editable_workspace_dialog",{workspaces:e,can_create:n,can_select_or_create:r||n,title:kf(i+".title",r,n),description:kf(i+".description",r,n)}));$("#scrivito_editing").append(o);var a=!1;o.on("focus click",".scrivito_input_list_of_ws",(function(){a=!1,o.find(".scrivito_confirm").html(scrivito.t("editable_ws_dialog.select")),o.find(".scrivito_disabled").removeClass("scrivito_disabled"),o.find(".scrivito_input_new_ws_name label, .scrivito_input_new_ws_name input").addClass("scrivito_disabled")})),o.on("focus click",".scrivito_input_new_ws_name",(function(){a=!0,o.find(".scrivito_confirm").html(scrivito.t("menu_bar.create")),o.find(".scrivito_disabled").removeClass("scrivito_disabled"),o.find(".scrivito_input_list_of_ws label, .scrivito_input_list_of_ws select").addClass("scrivito_disabled")}));var s=new z.e;function c(){var e,t;return a?(t=$("#scrivito_new_ws_name").val(),scrivito.dialog.close_with_transition(o),scrivito.withSavingOverlay(Mo.createAsync(t)).then((function(e){var t=e.id;return s.resolve(t)})).catch((function(e){scrivito.displayError(e),s.reject()}))):(e=$("select#scrivito_list_of_ws").val(),scrivito.dialog.close_with_transition(o),s.resolve(e)),!1}function u(){return scrivito.dialog.close_with_transition(o),s.resolve(),!1}return o.find(".scrivito_confirm").on("click",c),o.find(".scrivito_cancel").on("click",u),scrivito.dialog.open_and_center_with_transition(o),r?(o.find(".scrivito_input_list_of_ws").click(),o.find("#scrivito_list_of_ws").focus()):n&&(o.find(".scrivito_input_new_ws_name").click(),o.find("#scrivito_new_ws_name").focus()),scrivito.withDialogBehaviour(o,s.promise,{enter:c,escape:u})}))}function kf(e,t,n){return t&&n?scrivito.t(e+".select_or_create"):t?scrivito.t(e+".select"):n?scrivito.t(e+".create"):scrivito.t(e+".forbidden")}function Of(e){return function(e){return Object(H.load)(ii).then((function(t){if(!t)return!1;function n(t){return!!t.isNew()&&Object(v.some)(e,(function(e){return t.equals(e)}))}return!!n(t)&&Object(H.load)((function(){return t.parent()})).then((function(e){return e&&!n(e)?{pageId:e.id()}:{}}))}))}(e).then((function(e){!function(e){if(!e)return;var t=e.pageId;t?scrivito.applicationWindow.navigateTo(t):scrivito.applicationWindow.navigateToRoot()}(e)}))}function Cf(e,t){var n=scrivito.withSavingOverlay(function(e,t){return Of(e).then((function(){var n=Qp(e,t);return Object(re.b)()&&n.then((function(){return Object(H.load)(ii)})).then((function(e){e&&scrivito.applicationWindow.reload()})),n}))}(e,t));return n.then((function(t){return function(e,t){var n=v.map(e,(function(e){var n=e.reason,r=e.objId;return{reason:n,obj:v.find(t,(function(e){return e.id()===r}))}}));n.length&&function(e){var t=g.a.pluck(e,"obj");scrivito.toLegacyObjs(t).then((function(t){var n=g.a.map(e,(function(e){var n=e.reason,r=e.obj;return{reason:n,obj:g.a.find(t,(function(e){return e.id()===r.id()}))}}));jr(scrivito.t("transfer_errors_dialog.title"),{body:scrivito.Template.render("transfer_errors_dialog",{modified:g.a.pluck(g.a.where(n,{reason:"modified"}),"obj"),conflicting:g.a.pluck(g.a.where(n,{reason:"conflict"}),"obj")})})}))}(n)}(t,e)})),n}function Mf(e){return scrivito.withSavingOverlay(Object(H.load)((function(){return Mo.selected.otherWritableWorkspaces}))).then(Df).then((function(t){return t?Cf(e,t).then((function(e){return{errors:e}})):{isCancelled:!0}}))}function Df(e){return wf(e,"transfer_changes")}function xf(e,t){if(e)try{return He.get(e).description||t}catch(e){if(e instanceof Be)return t;throw e}return t}var Ef,Sf,jf=function(){function e(e){this._workspace=e}return Object.defineProperty(e.prototype,"workspace",{get:function(){return this._workspace},enumerable:!0,configurable:!0}),e.prototype.check=function(){var e=this;return this._check(0).then((function(t){return e._handleCheckResult(t,[])}))},e.prototype.fetchPublishApproval=function(e){return scrivito.ajax("PUT","workspaces/"+this._workspace.id+"/publish_approval",{data:{certificates:e}})},e.prototype.checkAndPublish=function(){return this._checkAndPublish(Date.now()+2e4)},e.prototype._checkAndPublish=function(e){var t=this;return this._checkAndFetchPublishApproval().then((function(e){return de.d.put("workspaces/"+t._workspace.id+"/publish",e)})).catch((function(n){return t._handleCheckAndPublishError(n,e)}))},e.prototype._checkAndFetchPublishApproval=function(){var e=this;return Ye()?this.check().then((function(t){return t?e.fetchPublishApproval(t):z.j.reject({type:"check_failed"})})):z.j.resolve()},e.prototype._check=function(e){return scrivito.ajax("GET","workspaces/"+this._workspace.id+"/check?from="+e)},e.prototype._handleCheckResult=function(e,t){var n=this;if("fail"===e.result)return z.j.resolve(!1);if(t.push(e.certificate),"END"===e.pass.until)return z.j.resolve(t);var r=parseInt(e.pass.until,10)+1;return this._check(r).then((function(e){return n._handleCheckResult(e,t)}))},e.prototype._handleOutdatedError=function(e){return this._workspace.isAutoUpdate()?this.checkAndPublish():(Object(z.F)(e.message),jr(e.message),z.j.reject(e))},e.prototype._handleCheckAndPublishError=function(e,t){var n=this,r=e.backendCode;return"check_failed"===e.type?z.j.reject(e):"precondition_not_verifiable.workspace.publish.content_state_id"===r?this._handleOutdatedError(e):"precondition_not_met.workspace.publish.content_state_id"===r?Date.now()>t?z.j.reject({type:"outdated_certificates"}):Object(z.S)(1).then((function(){return n._checkAndPublish(t)})):"precondition_not_met.workspace.publish.exceeds_obj_limit"===r?(Object(z.F)(e.message),scrivito.ErrorDialog.open(scrivito.t("workspace_publisher.exceeds_obj_limit"),[e.message]),z.j.reject(e)):(scrivito.displayAjaxError(e),z.j.reject(e))},e}(),Tf=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)}}(),Lf=scrivito.legacyCreateConnectedComponent({displayName:"scrivito.WorkspaceChangesDialog",statics:{open:function(){var e=$("#workspace_changes_dialog"),t=new z.e;function n(){Object(d.unmountComponentAtNode)(e.get(0)),t.resolve(void 0)}return scrivito.withDialogBehaviour(e,t.promise,{escape:function(){ui(),n()}}),scrivito.renderReactComponent(u.createElement(Lf,{closeDialog:n}),e),t.promise}},propTypes:{closeDialog:s.func.isRequired},getInitialState:function(){return{numberOfChanges:100,orderBy:{attribute:"last_changed",direction:"desc"},isTransferMode:!1,objsToTransfer:[]}},render:function(){var e,t,n=F.BasicObj.where("_modification","equals",["new","edited","deleted"]).order((e=this.state.orderBy.attribute,"_"+Object(z.o)(e)),this.state.orderBy.direction).includeDeleted().iterator(),r=Oo("publish",Mo.selected),i=Object(H.loadAllUntil)(n,this.state.numberOfChanges),o=i.done,a=i.objs;t=this.state.isTransferMode?u.createElement(Hf,{objsToTransferCount:this.state.objsToTransfer.length,transferChanges:this._transferChanges,disableTransferMode:this._disableTransferMode}):u.createElement(Wf,{anyChangePresent:a.length>0,enableTransferMode:this._enableTransferMode,closeDialog:this.props.closeDialog,userCanPublish:r});var s=!o&&a.length<this.state.numberOfChanges,c=!o;return u.createElement("div",{className:this._className()},u.createElement(Pf,{objsCount:a.length,hasMore:c,isTransferMode:this.state.isTransferMode,objsToTransferCount:this.state.objsToTransfer.length,orderBy:this.state.orderBy,setOrderBy:this._setOrderBy}),u.createElement("div",{className:"scrivito_modal_body"},u.createElement(Af,{objs:a,isLoading:s,hasMore:c,loadMore:this._loadMore,isTransferMode:this.state.isTransferMode,isMarkedForTransfer:this._isMarkedForTransfer,toggleMarkedForTransfer:this._toggleMarkedForTransfer,closeDialog:this.props.closeDialog})),u.createElement("div",{className:"scrivito_modal_footer"},t))},_enableTransferMode:function(){this.setState({isTransferMode:!0})},_disableTransferMode:function(){this.setState({isTransferMode:!1,objsToTransfer:[]})},_toggleMarkedForTransfer:function(e){var t=this.state.objsToTransfer;this._isMarkedForTransfer(e)?t=v.reject(t,(function(t){return t.id()===e.id()})):t.push(e),this.setState({objsToTransfer:t})},_isMarkedForTransfer:function(e){var t=this.state;return v.find(t.objsToTransfer,(function(t){return t.id()===e.id()}))},_transferChanges:function(){var e=this,t=this.state;Mf(t.objsToTransfer).then((function(n){if(!n.isCancelled){var r=n.errors;if(r){var i=v.pluck(r,"objId"),o=v.filter(t.objsToTransfer,(function(e){return v.contains(i,e.id())}));e.setState({objsToTransfer:o})}else e.setState({objsToTransfer:[]})}}))},_loadMore:function(){this.setState({numberOfChanges:this.state.numberOfChanges+100})},_setOrderBy:function(e){this.setState({orderBy:e})},_className:function(){var e="workspace_changes scrivito_modal_large scrivito_show";return this.state.isTransferMode&&(e+=" scrivito_blue"),e}}),Pf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tf(t,e),t.prototype.render=function(){return u.createElement("div",{className:"scrivito_modal_header flex_header"},u.createElement("i",{className:this.iconClassName()}),u.createElement("h3",{className:"flex_title text_ellipsis"},u.createElement("span",{className:"title"},this.title())," ",this.renderCount()),this.renderToggle())},t.prototype._scrivitoRenderWhileLoading=function(){return u.createElement(C,null)},t.prototype.renderCount=function(){var e;return e=this.props.isTransferMode?this.countTitleTransferMode():this.countTitle(),u.createElement("small",{className:"subtitle"},e)},t.prototype.renderToggle=function(){if(this.props.objsCount)return u.createElement(Nf,{orderBy:this.props.orderBy,setOrderBy:this.props.setOrderBy})},t.prototype.iconClassName=function(){var e="scrivito_icon";return this.props.isTransferMode?e+=" scrivito_icon_transfer":e+=" scrivito_icon_edited",e},t.prototype.title=function(){var e="workspace_changes_dialog.dialog_header.title";return this.props.isTransferMode&&(e+=".is_transfer_mode"),scrivito.t(e,Mo.selected.titleForEditor)},t.prototype.countTitle=function(){var e=this.props.objsCount;if(e){var t="workspace_changes_dialog.dialog_header.count_title";return 1===e?t+=".one":(t+=".many",this.props.hasMore&&(t+=".has_more")),scrivito.t(t,e)}},t.prototype.countTitleTransferMode=function(){var e=this.props.objsToTransferCount;if(e){var t="workspace_changes_dialog.dialog_header.count_title.is_transfer_mode";return t+=1===e?".one":".many",scrivito.t(t,e)}},t.displayName="scrivito.WorkspaceChangesDialog.DialogHeader",t.shouldRenderLoaderError=!0,t}(u.Component),Af=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tf(t,e),t.prototype.render=function(){return this.props.objs.length||this.props.hasMore?u.createElement(scrivito.InfiniteScrollbars,{isLoading:this.props.isLoading,hasMore:this.props.hasMore,loadMore:this.props.loadMore},u.createElement(If,{objs:this.props.objs,closeDialog:this.props.closeDialog,isTransferMode:this.props.isTransferMode,isMarkedForTransfer:this.props.isMarkedForTransfer,toggleMarkedForTransfer:this.props.toggleMarkedForTransfer})):u.createElement("div",{className:"scrivito_notice scrivito_blue"},u.createElement("div",{className:"scrivito_notice_icon"},u.createElement("i",{className:"scrivito_icon"})),u.createElement("div",{className:"scrivito_notice_body"},scrivito.t("workspace_changes_dialog.no_changes_notice")))},t.displayName="scrivito.WorkspaceChangesDialog.DialogBody",t}(u.Component),Nf=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Tf(t,e),t.prototype.render=function(){return u.createElement("div",{className:"order_toggle scrivito_list_sort"},u.createElement("span",{className:"scrivito_button scrivito_small scrivito_right",onClick:this.onClick},u.createElement("i",{className:this.iconClassName()}),u.createElement("span",{className:"toggle_title"},this.title()),u.createElement("i",{className:"scrivito_icon scrivito_icon_chevron_down"})))},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),ci($(e.currentTarget).find(".scrivito_icon_chevron_down").get(0),this.menuCommands(),{customClassName:"scrivito_left"})},t.prototype.iconClassName=function(){return"scrivito_icon scrivito_icon_sort_"+this.arrowType(this.props.orderBy.attribute,this.props.orderBy.direction)},t.prototype.title=function(){return scrivito.t("workspace_changes_dialog.order_toggle."+this.props.orderBy.attribute+"."+this.props.orderBy.direction)},t.prototype.menuCommands=function(){return[this.createCommandSeparator("last_changed"),this.createMenuCommand("last_changed","asc"),this.createMenuCommand("last_changed","desc"),this.createCommandSeparator("obj_class"),this.createMenuCommand("obj_class","desc"),this.createMenuCommand("obj_class","asc"),this.createCommandSeparator("modification"),this.createMenuCommand("modification","desc"),this.createMenuCommand("modification","asc")]},t.prototype.createCommandSeparator=function(e){var t="workspace_changes_dialog.order_toggle."+e;return new No({id:"scrivito.ui."+t,title:scrivito.t(t)})},t.prototype.createMenuCommand=function(e,t){var n=this,r="workspace_changes_dialog.order_toggle."+e+"."+t;return new no({id:"scrivito.ui."+r,title:scrivito.t(r),icon:["up"===this.arrowType(e,t)?"&#xf139;":"&#xf13a;","entity"],disabled:function(){if(e===n.props.orderBy.attribute&&t===n.props.orderBy.direction)return scrivito.t("workspace_changes_dialog.order_toggle.is_disabled")},execute:function(){n.props.setOrderBy({attribute:e,direction:t})}})},t.prototype.arrowType=function(e,t){return{last_changed:{asc:"up",desc:"down"},obj_class:{desc:"up",asc:"down"},modification:{desc:"up",asc:"down"}}[e][t]},t.displayName="scrivito.WorkspaceChangesDialog.OrderToggle",t}(u.Component),If=S(((Ef=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tf(t,e),t.prototype.render=function(){var e=this;return u.createElement("ul",{className:"scrivito_list_big"},this.props.objs.map((function(t){return u.createElement(Yf,{key:t.id(),obj:t,closeDialog:e.props.closeDialog,isTransferMode:e.props.isTransferMode,isMarkedForTransfer:e.props.isMarkedForTransfer,toggleMarkedForTransfer:e.props.toggleMarkedForTransfer})})))},t}(u.Component)).displayName="scrivito.WorkspaceChangesDialog.ChangesList",Ef)),Yf=S(((Sf=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Tf(t,e),t.prototype.render=function(){if(!this.props.obj.isModified())return null;var e;this.props.isTransferMode&&(e=u.createElement("span",{className:"scrivito_list_group"},u.createElement("span",{className:"scrivito_item_checkbox"})));var t=this.props.obj.lastChanged();return u.createElement("li",{className:this.className(),title:this.tooltip(),"data-obj-id":this.props.obj.id(),onClick:this.onClick},e,u.createElement("span",{className:"scrivito_list_group"},u.createElement("i",{className:this.iconClassName()},"")),u.createElement("span",{className:"scrivito_list_group"},u.createElement("span",{className:"scrivito_list_topic"},u.createElement(Ff,{obj:this.props.obj})),u.createElement("span",{className:"scrivito_list_meta"},u.createElement("span",null,u.createElement("i",{className:"scrivito_icon scrivito_icon_generic"}),this.props.obj.objClass()))),u.createElement("span",{className:"scrivito_list_group scrivito_pull_right"},u.createElement("span",{className:"scrivito_list_label"},scrivito.t("workspace_changes_dialog.change_item.last_changed_by")),u.createElement("span",{className:"scrivito_list_value"},this.userDescription(this.props.obj.lastChangedBy()))),u.createElement("span",{className:"scrivito_list_group scrivito_pull_right"},u.createElement("span",{className:"scrivito_list_label"},scrivito.t("workspace_changes_dialog.change_item.last_changed")),u.createElement("span",{className:"scrivito_list_value"},t&&us(t).format("lll"))),u.createElement("span",{className:"scrivito_list_group scrivito_pull_right"},u.createElement("span",{className:"scrivito_list_label"},scrivito.t("workspace_changes_dialog.change_item.publish_permission")),u.createElement(Rf,{obj:this.props.obj})))},t.prototype.userDescription=function(e){return xf(e,scrivito.t("workspace_changes_dialog.change_item.not_available"))},t.prototype.className=function(){var e=[];switch(this.props.obj.modification()){case"new":e.push("new_item","scrivito_green");break;case"edited":e.push("scrivito_blue");break;case"deleted":e.push("scrivito_red")}return this.props.isMarkedForTransfer(this.props.obj)&&e.push("active"),this.props.obj.hasConflicts()&&e.push("scrivito_disable"),e.join(" ")},t.prototype.tooltip=function(){var e="obj.tooltip.is_"+this.props.obj.modification();if(this.props.obj.hasConflicts()&&(e+=".has_conflicts",this.props.isTransferMode&&(e+=".transfer_changes")),this.props.obj.isRestricted()){return scrivito.t("obj.tooltip.is_restricted")+scrivito.t(e)}return scrivito.t(e)},t.prototype.iconClassName=function(){var e="scrivito_icon scrivito_"+this.props.obj.modification();return this.props.obj.isRestricted()&&(e+=" scrivito_icon_lock"),e},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),this.props.isTransferMode?this.toggleMarkedForTransfer(this.props.obj):(this.openObj(this.props.obj),this.props.closeDialog())},t.prototype.toggleMarkedForTransfer=function(e){e.hasConflicts()||this.props.toggleMarkedForTransfer(e)},t.prototype.openObj=function(e){Object(re.b)()?scrivito.openObj(e):scrivito.applicationWindow.navigateTo(e.id())},t}(u.Component)).displayName="scrivito.WorkspaceChangesDialog.ChangeItem",Sf)),Rf=scrivito.legacyCreateConnectedComponent({displayName:"scrivito.WorkspaceChangesDialog.PublishPermission",propTypes:{obj:s.instanceOf(F.BasicObj)},shouldRenderLoaderError:!0,render:function(){return u.createElement("span",{className:"scrivito_list_value"},this._permissionForEditor())},_scrivitoRenderWhileLoading:function(){return u.createElement(C,null)},_permissionForEditor:function(){return scrivito.editingContext.restrictionMessagesFor(this.props.obj).length?scrivito.t("workspace_changes_dialog.publish_permission.is_forbidden"):scrivito.t("workspace_changes_dialog.publish_permission.is_permitted")}}),Ff=scrivito.legacyCreateConnectedComponent({displayName:"scrivito.WorkspaceChangesDialog.ItemTitle",propTypes:{obj:s.instanceOf(F.BasicObj)},shouldRenderLoaderError:!0,render:function(){return u.createElement("span",null,vn(this.props.obj))},_scrivitoRenderWhileLoading:function(){return u.createElement(C,null)}}),Hf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tf(t,e),t.prototype.render=function(){return u.createElement(u.Fragment,null,u.createElement(Uf,{objsToTransferCount:this.props.objsToTransferCount,transferChanges:this.props.transferChanges}),u.createElement(Vf,{objsToTransferCount:this.props.objsToTransferCount,disableTransferMode:this.props.disableTransferMode}))},t.displayName="scrivito.WorkspaceChangesDialog.TransferChangesButtons",t}(u.Component),Wf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tf(t,e),t.prototype.render=function(){return u.createElement(u.Fragment,null,u.createElement(Bf,{anyChangePresent:this.props.anyChangePresent,closeDialog:this.props.closeDialog,userCanPublish:this.props.userCanPublish}),u.createElement(zf,{anyChangePresent:this.props.anyChangePresent,enableTransferMode:this.props.enableTransferMode}),u.createElement(qf,{closeDialog:this.props.closeDialog}))},t.displayName="scrivito.WorkspaceChangesDialog.ShowChangesButtons",t}(u.Component),Bf=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Tf(t,e),t.prototype.render=function(){return u.createElement("a",{className:this.className(),onClick:this.onClick,title:this.title()},u.createElement("i",{className:"scrivito_icon scrivito_icon_publish"}),scrivito.t("workspace_changes_dialog.publish_button.title"))},t.prototype.className=function(){var e="publish_changes_button scrivito_button scrivito_left";return this.props.userCanPublish?(this.props.anyChangePresent?e+=" scrivito_green":e+=" scrivito_disabled",e):e+=" scrivito_disabled"},t.prototype.title=function(){if(!this.props.userCanPublish)return scrivito.t("workspace_changes_dialog.publish_button.is_forbidden")},t.prototype.onClick=function(e){if(e.preventDefault(),e.stopPropagation(),this.props.userCanPublish&&this.props.anyChangePresent){this.props.closeDialog();var t=Mo.selected,n=new jf(t);scrivito.publishWorkspace(t,n)}},t.displayName="scrivito.WorkspaceChangesDialog.PublishButton",t}(u.Component),zf=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Tf(t,e),t.prototype.render=function(){return u.createElement("a",{className:this.className(),onClick:this.onClick},u.createElement("i",{className:"scrivito_icon scrivito_icon_transfer"}),scrivito.t("workspace_changes_dialog.enable_transfer_mode_button.title"))},t.prototype.className=function(){var e="enable_transfer_mode_button scrivito_button scrivito_left";return this.props.anyChangePresent?e+=" scrivito_blue":e+=" scrivito_disabled",e},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),this.props.anyChangePresent&&this.props.enableTransferMode()},t.displayName="scrivito.WorkspaceChangesDialog.EnableTransferModeButton",t}(u.Component),Uf=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Tf(t,e),t.prototype.render=function(){return u.createElement("a",{className:this.className(),onClick:this.onClick},scrivito.t("workspace_changes_dialog.transfer_changes_button.title"))},t.prototype.className=function(){var e="transfer_changes_button scrivito_button scrivito_left";return this.props.objsToTransferCount?e+=" scrivito_green":e+=" scrivito_disabled",e},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),this.props.objsToTransferCount&&this.props.transferChanges()},t.displayName="scrivito.WorkspaceChangesDialog.TransferChangesButton",t}(u.Component),qf=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Tf(t,e),t.prototype.render=function(){return u.createElement("a",{className:"close_dialog_button scrivito_button",onClick:this.onClick},scrivito.t("workspace_changes_dialog.close_dialog_button.title"))},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),this.props.closeDialog()},t.displayName="scrivito.WorkspaceChangesDialog.CloseDialogButton",t}(u.Component),Vf=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Tf(t,e),t.prototype.render=function(){return u.createElement("a",{className:"disable_transfer_mode_button scrivito_button",onClick:this.onClick},this.title())},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),this.props.disableTransferMode()},t.prototype.title=function(){return this.props.objsToTransferCount?scrivito.t("workspace_changes_dialog.disable_transfer_mode_button.title.cancel"):scrivito.t("workspace_changes_dialog.disable_transfer_mode_button.title.done")},t.displayName="scrivito.WorkspaceChangesDialog.DisableTransferModeButton",t}(u.Component);var $f,Gf,Kf,Jf,Qf,Zf=Lf;function Xf(){return Zf.open()}!function(){function e(){return scrivito.changeEditingContext({workspaceId:"published"})}scrivito.publishWorkspace=function(t,n){(function(e){return scrivito.confirmation_dialog({title:scrivito.t("workflows.publish_workspace.dialog.title",e.titleForEditor),description:scrivito.t("workflows.publish_workspace.dialog.description"),icon:"&#xf033;",color:"green",confirm_button_text:scrivito.t("workflows.publish_workspace.dialog.confirm"),confirm_button_color:"green"})})(t).then((function(){return function(t){return scrivito.withSavingOverlay(t.checkAndPublish().then(e)).catch((function(e){switch(e.type){case"check_failed":return void scrivito.confirmation_dialog({title:scrivito.t("workflows.publish_workspace.error_dialog.title"),description:scrivito.t("workflows.publish_workspace.error_dialog.description"),icon:"&#xf033;",confirm_button_text:scrivito.t("workflows.publish_workspace.error_dialog.confirm")}).then(Xf);case"outdated_certificates":return void jr(scrivito.t("workflows.publish_workspace.alert.invalid_certificates"))}}))}(n)})).catch((function(){}))}}(),$f={},Gf=0,Kf=0,Jf=!1,Qf={on:function(e,t){return void 0===$f[e]&&($f[e]={}),Gf+=1,$f[e][Gf]=t,Gf},off:function(e){g.a.each($f,(function(t){delete t[e]}))},isWriting:function(){return Kf>0},hasErrors:function(){return Jf},startWrite:function(){scrivito.WriteMonitor.isWriting()||g.a.invoke($f.start_write,"call"),Kf+=1,Jf=!1},endWrite:function(){Kf-=1,scrivito.WriteMonitor.isWriting()||scrivito.run_new_event((function(){scrivito.WriteMonitor.isWriting()||g.a.each($f.end_write,(function(e){return e(Jf)}))}))},endWriteWhenDone:function(e){Object(z.J)(e.catch((function(e){throw Jf=!0,e})),scrivito.WriteMonitor.endWrite)},trackChanges:function(e,t){var n=!1,r=!1,i=scrivito.WriteMonitor.on("start_write",(function(){n=!0,r=!1})),o=scrivito.WriteMonitor.on("end_write",(function(){r=!0}));return e().then((function(){scrivito.WriteMonitor.off(i),scrivito.WriteMonitor.off(o),n&&(r?t():scrivito.withSavingOverlay(new z.j((function(e){var n=scrivito.WriteMonitor.on("end_write",(function(){scrivito.WriteMonitor.off(n),e(),t()}))}))))}))},simulateChanges:function(){scrivito.WriteMonitor.startWrite(),scrivito.WriteMonitor.endWrite()},reset:function(){$f={},Gf=0,Kf=0,Jf=!1}},scrivito.WriteMonitor=Qf,function(){var e,t,n=b()({displayName:"scrivito.ErrorDialog",statics:{open:function(n,r){return e=$("#error_dialog"),t=new z.e,scrivito.withDialogBehaviour(e,t.promise,{enter:i,escape:o}),scrivito.renderReactComponent(React.createElement(scrivito.ErrorDialog,{message:n,details:r}),e),t.promise}},propTypes:{message:c.a.string.isRequired,details:c.a.arrayOf(c.a.string)},getInitialState:function(){return{showDetails:!1}},render:function(){var e,t;return this.props.details&&this.state.showDetails&&(e=React.createElement(r,{details:this.props.details})),g.a.isEmpty(this.props.details)||(t=React.createElement("a",{className:"scrivito_toggle_details",href:"#",onClick:this._onToggleClick},scrivito.t("error_dialog.toggle_details"))),React.createElement("div",{className:"error_dialog scrivito_modal_prompt scrivito_center_dialog scrivito_red scrivito_show"},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("i",{className:"scrivito_icon scrivito_icon_information"}),React.createElement("h3",{className:"scrivito_title"},this.props.message,t)),e,React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("a",{href:"#",onClick:this._onCloseClick,className:"scrivito_button scrivito_close"},scrivito.t("close"))))},_onToggleClick:function(e){e.preventDefault(),e.stopPropagation(),this.setState({showDetails:!this.state.showDetails})},_onCloseClick:function(e){e.preventDefault(),e.stopPropagation(),o()}});function r(e){var t=e.details;return React.createElement("div",{className:"scrivito_modal_body"},React.createElement("h4",null,scrivito.t("error_dialog.error_details"),":"),t.map((function(e,t){return React.createElement("div",{key:t},e)})))}function i(){a(),t.resolve(!0)}function o(){a(),t.resolve(!1)}function a(){e&&e.length&&Object(d.unmountComponentAtNode)(e.get(0))}r.displayName="scrivito.ErrorDialog.DialogBody",r.propTypes={details:c.a.arrayOf(c.a.string)},scrivito.ErrorDialog=n}();var eh,th=n(89),nh=n.n(th);eh=b()({displayName:"scrivito.InfiniteScrollbars",propTypes:{isLoading:c.a.bool.isRequired,hasMore:c.a.bool.isRequired,loadMore:c.a.func.isRequired,children:c.a.element.isRequired,scrollbars:c.a.any},getDefaultProps:function(){return{scrollbars:th.Scrollbars}},componentDidMount:function(){this._fillContainer()},componentDidUpdate:function(){this._fillContainer()},render:function(){var e=this,t=l.a.Children.toArray(this.props.children);return this.props.isLoading&&t.push(l.a.createElement(C,{key:"loader"})),l.a.createElement(this.props.scrollbars,{className:"infinite_scrollbars",ref:function(t){return e.container=t},onScrollFrame:this._onScrollFrame,children:t})},_fillContainer:function(){!this.props.hasMore||this.props.isLoading||this._isContainerFull()||this.props.loadMore()},_onScrollFrame:function(){this.props.hasMore&&!this.props.isLoading&&this._isViewportAtBottom()&&this.props.loadMore()},_isContainerFull:function(){var e=this.container.getValues();return e.scrollHeight>e.clientHeight},_isViewportAtBottom:function(){var e=this.container.getValues();return e.scrollTop>=e.scrollHeight-2*e.clientHeight}}),scrivito.InfiniteScrollbars=eh;var rh,ih=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)}}(),oh=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ih(t,e),t.prototype.render=function(){return u.createElement("div",{className:"scrivito_browse_content scrivito_button_bar",title:scrivito.t("sidebar.browse_content_button.hint"),onClick:this.onClick,ref:function(e){return Bt("contentBrowser",e)}},u.createElement("i",{className:"scrivito_icon scrivito_icon_content_browser"}))},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),Wn({selectionMode:"single",standAlone:!0})},t}(u.Component)),ah=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)}}(),sh=S(((rh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ah(t,e),t.prototype.render=function(){var e=this;return u.createElement("div",{className:this.buttonClassName(),title:this.buttonHint(),onClick:this.props.togglePanel,ref:function(t){return e.registerTourReference(t)}},u.createElement("i",{className:this.props.getIconClassName()}))},t.prototype._scrivitoRenderWhileLoading=function(){return u.createElement(C,null)},t.prototype.buttonClassName=function(){var e="scrivito_"+this.props.name+"_button scrivito_button_bar";return this.props.isActive&&(e+=" active"),e},t.prototype.buttonHint=function(){return this.props.isActive?scrivito.t("sidebar."+this.props.name+"_button.hint.active"):scrivito.t("sidebar."+this.props.name+"_button.hint")},t.prototype.registerTourReference=function(e){this.props.tourReference&&Bt(this.props.tourReference,e)},t}(u.Component)).shouldRenderLoaderError=!0,rh));function ch(e){var t=e.isActive,n=e.togglePanel;return u.createElement(sh,{name:"details",isActive:t,togglePanel:n,getIconClassName:uh})}function uh(){var e=ii(),t="scrivito_icon scrivito_icon_page";return e&&e.modification()&&(t+=" scrivito_"+e.modification()),t}var lh=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)}}(),dh=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lh(t,e),t.prototype.render=function(){if(!this.props.isActive)return null;var e=ii();return e?u.createElement(ph,{src:scrivito.detailsPathForId(e.id())}):u.createElement("div",{className:"scrivito_second_level_content scrivito_details_panel"})},t}(u.Component)),ph=S(function(e){function t(t){var n=e.call(this,t)||this;return n.state={isLoaded:!1},n._iframeClassName=n._iframeClassName.bind(n),n._onLoad=n._onLoad.bind(n),n}return lh(t,e),t.getDerivedStateFromProps=function(e,t){return t.src!==e.src?{isLoaded:!1,src:e.src}:null},t.prototype.render=function(){var e;return this.state.isLoaded||(e=u.createElement("i",{className:"scrivito_icon scrivito_spinning"},"")),u.createElement("div",{className:"scrivito_second_level_content scrivito_details_panel"},e,u.createElement("iframe",{className:this._iframeClassName(),src:this.props.src,onLoad:this._onLoad}))},t.prototype._iframeClassName=function(){var e="scrivito_second_level_content_iframe";return this.state.isLoaded&&(e+=" scrivito_show"),e},t.prototype._onLoad=function(){this.setState({isLoaded:!0})},t}(u.Component)),fh=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)}}(),hh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fh(t,e),t.prototype.componentDidMount=function(){var e=this;this.previewDeviceSubscriptionToken=scrivito.PreviewDevice.subscribeChange((function(){return e.forceUpdate()})),this.windowFocusSubscriptionToken=Qi.subscribe("sidebar.devicesButton",(function(){return e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){scrivito.PreviewDevice.unsubscribeChange(this.previewDeviceSubscriptionToken),Qi.unsubscribe(this.windowFocusSubscriptionToken)},t.prototype.render=function(){return u.createElement(sh,{name:"devices",getIconClassName:function(){return"scrivito_icon scrivito_icon_"+scrivito.PreviewDevice.current},isActive:this.props.isActive,togglePanel:this.props.togglePanel})},t}(u.Component),mh=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)}}(),_h=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mh(t,e),t.prototype.componentDidMount=function(){var e=this;this._previewDeviceSubscriptionToken=scrivito.PreviewDevice.subscribeChange((function(){return e.forceUpdate()})),this._windowFocusSubscriptionToken=Qi.subscribe("sidebar.devicesPanel",(function(){return e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){scrivito.PreviewDevice.unsubscribeChange(this._previewDeviceSubscriptionToken),Qi.unsubscribe(this._windowFocusSubscriptionToken)},t.prototype.render=function(){return u.createElement("div",{className:this._className()},u.createElement("div",{className:"scrivito_sidebar_separator"},u.createElement("span",null,scrivito.t("sidebar.devices_panel.title"))),u.createElement("div",{className:"scrivito_property_padding"},u.createElement("ul",{className:"scrivito_list_big"},scrivito.PreviewDevice.all.map((function(e){return u.createElement(vh,{key:e,device:e})})))))},t.prototype._className=function(){var e=["scrivito_second_level_content","scrivito_devices_panel","scrivito_dark"];return this.props.isActive&&e.push("scrivito_show"),e.join(" ")},t}(u.Component)),vh=S(function(e){function t(t){var n=e.call(this,t)||this;return n._className=n._className.bind(n),n._iconClassName=n._iconClassName.bind(n),n._isActive=n._isActive.bind(n),n._onClick=n._onClick.bind(n),n}return mh(t,e),t.prototype.render=function(){return u.createElement("li",{className:this._className(),onClick:this._onClick},u.createElement("span",{className:"scrivito_list_group"},u.createElement("i",{className:this._iconClassName()})),u.createElement("span",{className:"scrivito_list_group"},u.createElement("span",{className:"scrivito_list_topic"},scrivito.t("sidebar.devices_panel.device."+this.props.device))))},t.prototype._className=function(){if(this._isActive())return"active"},t.prototype._iconClassName=function(){return"scrivito_icon scrivito_icon_"+this.props.device},t.prototype._isActive=function(){return this.props.device===scrivito.PreviewDevice.current},t.prototype._onClick=function(e){this._isActive()||(scrivito.PreviewDevice.current=this.props.device),e.preventDefault()},t}(u.Component)),gh=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)}}(),yh=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return gh(t,e),t.prototype.render=function(){var e=scrivito.t("sidebar.hide_controls_button.hint");return u.createElement("div",{className:"scrivito_hide_controls scrivito_button_bar scrivito_bottom_fixed",title:e,onClick:this.onClick},u.createElement("i",{className:"scrivito_icon scrivito_icon_hide_ui"}))},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),this.props.hideMenubar()},t}(u.Component);function bh(e){var t=e.isActive,n=e.togglePanel;return u.createElement(sh,{name:"hierarchy",getIconClassName:function(){return"scrivito_icon scrivito_icon_tree"},isActive:t,togglePanel:n})}function wh(e){return e.until?u.createElement(u.Fragment,null,e.children):null}var kh=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)}}(),Oh=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kh(t,e),t.prototype.render=function(){var e=this;if(!this.props.openLevels.has(this.props.parent.id()))return null;var t=this.props.parent.orderedChildren().filter((function(e){return!tn(e)}));return u.createElement("ul",null,t.map((function(t){return u.createElement(jh,{hideVisibleButtons:e.props.hideVisibleButtons,item:t,key:t.id(),openLevels:e.props.openLevels,showDetails:e.props.showDetails,toggleButtons:e.props.toggleButtons,toggleLevel:e.props.toggleLevel,visibleButtons:e.props.visibleButtons})})))},t.prototype._scrivitoRenderWhileLoading=function(){return u.createElement("ul",null,u.createElement("li",null,u.createElement("span",{className:"scrivito_list_content"},u.createElement(C,null))))},t}(u.Component)),Ch=S((function(e){var t=e.item,n=e.onClick;return t.hasChildren()?u.createElement("span",{className:"scrivito_list_group toggle_hierarchy",onClick:n},u.createElement("i",{className:"scrivito_icon scrivito_icon_chevron_right"})):null}));function Mh(e){return u.createElement("span",{className:"scrivito_list_action",onClick:e.onClick},u.createElement("span",{className:"menu_icon"},u.createElement("span",{className:"menu_icon_dot"})))}var Dh=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)}}(),xh=S(function(e){function t(t){var n=e.call(this,t)||this;return n.className=n.className.bind(n),n.onClick=n.onClick.bind(n),n.title=n.title.bind(n),n}return Dh(t,e),t.prototype.render=function(){var e=this.props.command.icon(),t=this.props.command.isDisabled();return u.createElement("span",{className:this.className(),title:this.title(),onClick:this.onClick},e&&u.createElement(Wr,{icon:e,disabled:t}))},t.prototype.className=function(){var e=["scrivito_list_menu_item"];return this.props.command.isDisabled()&&e.push("scrivito_disabled"),e.join(" ")},t.prototype.onClick=function(e){e.stopPropagation(),this.props.command.isEnabled()&&this.props.command.execute(),this.props.hideVisibleButtons()},t.prototype.title=function(){return this.props.command.isDisabled()?this.props.command.reasonForBeingDisabled()||"":this.props.command.title()},t}(u.Component)),Eh=S((function(e){var t=e.item;return e.showDetails?u.createElement("span",{className:"scrivito_list_meta"},u.createElement("span",{className:"scrivito_list_meta_content scrivito_last_changed_by",title:scrivito.t("workspace_changes_dialog.change_item.last_changed_by")},xf(t.lastChangedBy(),"")),u.createElement("span",{className:"scrivito_list_meta_content scrivito_last_changed",title:scrivito.t("workspace_changes_dialog.change_item.last_changed")},function(e){if(!e)return"";return us(e).format("L")}(t.lastChanged()))):null}));var Sh=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)}}(),jh=S(function(e){function t(t){var n=e.call(this,t)||this;return n.onButtonsToggleClick=n.onButtonsToggleClick.bind(n),n.onChildrenToggleClick=n.onChildrenToggleClick.bind(n),n.onClick=n.onClick.bind(n),n}return Sh(t,e),t.prototype.render=function(){var e=this.props,t=e.hideVisibleButtons,n=e.item,r=e.openLevels,i=e.showDetails,o=e.toggleButtons,a=e.toggleLevel,s=e.visibleButtons;return u.createElement("li",{className:this.className()},u.createElement("span",{className:"scrivito_list_content",onClick:this.onClick},u.createElement(Ch,{item:n,onClick:this.onChildrenToggleClick}),u.createElement("span",{className:"scrivito_list_group"},u.createElement("i",{className:this.iconClassName()},"")),u.createElement("span",{className:"scrivito_list_group"},u.createElement("span",{className:"scrivito_list_topic"},vn(n)),u.createElement(Eh,{item:n,showDetails:i})),u.createElement(Mh,{onClick:this.onButtonsToggleClick}),u.createElement("span",{className:"scrivito_list_menu"},u.createElement(xh,{command:Io(n.id(),{isCurrentPageCommand:!0}),hideVisibleButtons:t}),u.createElement(xh,{command:zl(n.id()),hideVisibleButtons:t}),u.createElement(xh,{command:Go(n.id()),hideVisibleButtons:t}))),u.createElement(Oh,{hideVisibleButtons:t,openLevels:r,parent:n,showDetails:i,toggleButtons:o,toggleLevel:a,visibleButtons:s}))},t.prototype.onButtonsToggleClick=function(e){e.stopPropagation(),this.props.toggleButtons(this.props.item.id())},t.prototype.onChildrenToggleClick=function(e){e.stopPropagation(),this.props.toggleLevel(this.props.item.id()),this.props.hideVisibleButtons()},t.prototype.onClick=function(){scrivito.applicationWindow.navigateTo(this.props.item.id()),this.props.hideVisibleButtons()},t.prototype.className=function(){var e=this.props,t=e.item,n=e.visibleButtons,r=e.openLevels,i=ii(),o=[];return i&&i.id()===t.id()&&o.push("active"),r.has(t.id())&&o.push("open"),n===t.id()&&o.push("show_menu"),o.join(" ")},t.prototype.iconClassName=function(){var e=this.props.item,t=["scrivito_icon"];return e.isNew()?t.push("scrivito_new"):e.hasConflicts()?t.push("scrivito_conflict"):e.isModified()&&t.push("scrivito_edited"),e.isRestricted()&&t.push("scrivito_icon_lock"),t.join(" ")},t}(u.Component));function Th(e){var t=e.showDetails,n=e.onClick,r="sidebar.hierarchy_panel.show_details_icon.open",i=["scrivito_sidebar_switch"];return t&&(r="sidebar.hierarchy_panel.show_details_icon.hide",i.push("active")),u.createElement("div",{className:i.join(" "),onClick:n,title:scrivito.t(r)},u.createElement("i",{className:"scrivito_icon scrivito_icon_information"}))}var Lh=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)}}(),Ph=S(function(e){function t(t){var n=e.call(this,t)||this;return n.state={openLevels:new Set,openedAncestors:new Set,previousCurrentPageId:"",previousRootObjId:"",showDetails:scrivito.storage.get("hierarchy_panel.show_details")||!1,visibleButtons:""},n.hideVisibleButtons=n.hideVisibleButtons.bind(n),n.onShowDetailedViewToggleClick=n.onShowDetailedViewToggleClick.bind(n),n.toggleButtons=n.toggleButtons.bind(n),n.toggleLevel=n.toggleLevel.bind(n),n.toggleShowDetailedView=n.toggleShowDetailedView.bind(n),n}return Lh(t,e),t.getDerivedStateFromProps=function(e,t){if(!e.isOpen)return null;var n={},r=Ah(t.openLevels),i=Ah(t.openedAncestors),o=e.rootObjId;o&&t.previousRootObjId!==o&&(r.add(o),n.previousRootObjId=o);var a=e.currentPageId;return a&&t.previousCurrentPageId!==a&&(n.previousCurrentPageId=a,i.clear()),e.ancestorIds.forEach((function(e){i.has(e)||(r.add(e),i.add(e))})),i!==t.openedAncestors&&(n.openedAncestors=i),r!==t.openLevels&&(n.openLevels=r),Object(v.isEmpty)(n)?null:n},t.prototype.hideVisibleButtons=function(){this.setState({visibleButtons:""})},t.prototype.onShowDetailedViewToggleClick=function(){this.toggleShowDetailedView(),this.hideVisibleButtons()},t.prototype.toggleButtons=function(e){if(this.state.visibleButtons===e)return this.hideVisibleButtons();this.setState({visibleButtons:e})},t.prototype.toggleLevel=function(e){var t=this.state.openLevels;t.has(e)?t.delete(e):t.add(e),this.setState({openLevels:t})},t.prototype.toggleShowDetailedView=function(){var e=!this.state.showDetails;!function(e){scrivito.storage.set("hierarchy_panel.show_details",e)}(e),this.setState({showDetails:e})},t.prototype.render=function(){var e=this.props.rootObjId,t=e?F.BasicObj.get(e):null,n=u.createElement("li",null,u.createElement("span",{className:"scrivito_list_content"},u.createElement(C,null)));return t&&(n=u.createElement(jh,{item:t,hideVisibleButtons:this.hideVisibleButtons,visibleButtons:this.state.visibleButtons,openLevels:this.state.openLevels,showDetails:this.state.showDetails,toggleButtons:this.toggleButtons,toggleLevel:this.toggleLevel})),u.createElement(nh.a,{className:this._className()},u.createElement(wh,{until:this.props.openedAtLeastOnce},u.createElement("div",{className:"scrivito_sidebar_separator"},u.createElement("span",null,scrivito.t("sidebar.hierarchy_panel.hierarchy")),u.createElement(Th,{showDetails:this.state.showDetails,onClick:this.onShowDetailedViewToggleClick})),u.createElement("div",{className:"scrivito_property_padding"},u.createElement("ul",{className:"scrivito_list_hierarchy"},n))))},t.prototype._className=function(){var e=["scrivito_second_level_content","scrivito_hierarchy_panel","scrivito_dark"];return this.props.isActive&&e.push("scrivito_show"),e.join(" ")},t}(u.Component));function Ah(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}function Nh(){var e=0,t=ii();return t&&(t.hasConflicts()&&(e+=1),e+=scrivito.editingContext.restrictionMessagesFor(t).length,e+=scrivito.editingContext.conflictingWorkspacesFor(t).length),e}var Ih,Yh=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)}}(),Rh=S(((Ih=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yh(t,e),t.prototype.render=function(){return u.createElement("div",{className:this.buttonClassName(),title:this.buttonHint(),onClick:this.props.togglePanel},u.createElement(Fh,null),u.createElement(Hh,null))},t.prototype._scrivitoRenderWhileLoading=function(){return u.createElement(C,null)},t.prototype.buttonClassName=function(){var e="scrivito_notifications_button scrivito_button_bar";return this.props.isActive&&(e+=" active"),e},t.prototype.buttonHint=function(){return this.props.isActive?scrivito.t("sidebar.notifications_button.hint.active"):scrivito.t("sidebar.notifications_button.hint")},t}(u.Component)).shouldRenderLoaderError=!0,Ih)),Fh=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yh(t,e),t.prototype.render=function(){var e="scrivito_icon scrivito_icon_pot_error";return Nh()&&(e+=" scrivito_wobble scrivito_animated"),u.createElement("i",{className:e})},t.prototype._scrivitoRenderWhileLoading=function(){return u.createElement("i",{className:"scrivito_icon scrivito_icon_pot_error"})},t}(u.Component)),Hh=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yh(t,e),t.prototype.render=function(){var e=Nh();if(e){var t="amount scrivito_"+this.color();return u.createElement("span",{className:t},e)}return null},t.prototype.color=function(){var e=ii();return e&&e.hasConflicts()?"red":"orange"},t}(u.Component));var Wh=scrivito.legacyCreateConnectedComponent({propTypes:{workspace:c.a.instanceOf(Mo).isRequired},shouldRenderLoaderError:!0,render:function(){var e=this.props.workspace.owners;if(!e.length)return null;var t,n=e[0];return e.length>1&&(t=React.createElement("span",{className:"amount"},"+",e.length-1)),React.createElement("span",{className:"scrivito_list_meta"},React.createElement("span",{className:"first-owner"},React.createElement("i",{className:"scrivito_icon scrivito_icon_user"}),n.description),t)},_scrivitoRenderWhileLoader:function(){return React.createElement(C,null)}}),Bh=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)}}();var zh=S(function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Bh(t,e),t.prototype.render=function(){return u.createElement("li",{className:this.className(),title:this.hint(),onClick:this.onClick},u.createElement("span",{className:"scrivito_list_group"},u.createElement("i",{className:this.iconClassName()})),u.createElement("span",{className:"scrivito_list_group"},u.createElement("span",{className:"scrivito_list_topic"},this.props.workspace.titleForEditor),u.createElement(Wh,{workspace:this.props.workspace})),u.createElement(Uh,{workspace:this.props.workspace}))},t.prototype._scrivitoRenderWhileLoader=function(){return u.createElement(C,null)},t.prototype.className=function(){return this.isActive()?"active":this.isSelectable()?void 0:"scrivito_disable"},t.prototype.hint=function(){return this.canReadWorkspace()?this.isSelectable()?this.props.workspace.isMutable()?scrivito.t("sidebar.workspace_list.workspace_item.hint.is_selectable"):scrivito.t("sidebar.workspace_list.workspace_item.hint.is_published"):scrivito.t("sidebar.workspace_list.workspace_item.hint"):scrivito.t("sidebar.workspace_list.workspace_item.hint.is_disabled")},t.prototype.iconClassName=function(){var e="scrivito_icon scrivito_icon_ws";return this.props.workspace.isPublished()&&(e+="_published"),e},t.prototype.onClick=function(e){var t;this.isSelectable()&&(t=this.props.workspace,scrivito.withSavingOverlay(scrivito.changeEditingContext({workspaceId:t.id}))),e.stopPropagation()},t.prototype.isSelectable=function(){return this.canReadWorkspace()&&!this.isActive()},t.prototype.isActive=function(){return this.props.workspace.id===Mo.selected.id},t.prototype.canReadWorkspace=function(){return Oo("read",this.props.workspace)},t.shouldRenderLoaderError=!0,t}(u.Component)),Uh=S(function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Bh(t,e),t.prototype.render=function(){return this.isPresent()?u.createElement("span",{className:"scrivito_list_group_action scrivito_delete_button",title:scrivito.t("sidebar.workspace_list.workspace_item.delete"),onClick:this.onClick},u.createElement("i",{className:"scrivito_icon scrivito_icon_trash"})):null},t.prototype.isPresent=function(){return Oo("delete",this.props.workspace)},t.prototype.onClick=function(e){scrivito.deleteWorkspace(this.props.workspace),e.stopPropagation()},t}(u.Component)),qh=S((function(e){var t=e.workspaces,n=e.includeInaccessible?t:t.filter((function(e){return Oo("read",e)}));return 0===n.length?null:u.createElement("div",{className:"scrivito_property_padding"},u.createElement("ul",{className:"scrivito_list_big"},n.map((function(e){return u.createElement(zh,{key:e.id,workspace:e})}))))})),Vh=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)}}(),$h=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vh(t,e),t.prototype.render=function(){return React.createElement(th.Scrollbars,{className:this._scrollbarsClassName()},React.createElement(Gh,null),React.createElement(em,null))},t.prototype._scrollbarsClassName=function(){var e=["scrivito_notifications_panel","scrivito_second_level_content","scrivito_dark"];return this.props.isActive&&e.push("scrivito_show"),e.join(" ")},t}(React.Component)),Gh=S((function(){var e=ii();return e?React.createElement("div",null,React.createElement(Kh,{obj:e}),React.createElement(Xh,{obj:e}),React.createElement(Qh,{obj:e})):null})),Kh=S((function(e){return e.obj.hasConflicts()?React.createElement("div",{className:"scrivito_conflict_group"},React.createElement("div",{className:"scrivito_sidebar_separator scrivito_red"},React.createElement("i",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,scrivito.t("sidebar.notifications_panel.conflict_group.title"))),React.createElement("div",{className:"scrivito_description"},scrivito.t("sidebar.notifications_panel.conflict_group.description1"),React.createElement("a",{href:"https://scrivito.com/conflicts",target:"_blank"},scrivito.t("sidebar.notifications_panel.conflict_group.link")),scrivito.t("sidebar.notifications_panel.conflict_group.description2"))):null})),Jh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vh(t,e),t.prototype.render=function(){var e=scrivito.editingContext.conflictingWorkspacesFor(this.props.obj);return e.length?React.createElement("div",{className:"scrivito_potential_conflicts_group"},React.createElement("div",{className:"scrivito_sidebar_separator scrivito_orange"},React.createElement("i",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,scrivito.t("sidebar.notifications_panel.potential_conflicts_group.title"))),React.createElement("span",{className:"scrivito_description"},scrivito.t("sidebar.notifications_panel.potential_conflicts_group.description")),React.createElement(qh,{workspaces:e,includeInaccessible:!0})):null},t.prototype._scrivitoRenderWhileLoading=function(){return React.createElement(C,null)},t}(React.Component);Jh.shouldRenderLoaderError=!0;var Qh=S(Jh),Zh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vh(t,e),t.prototype.render=function(){var e=scrivito.editingContext.restrictionMessagesFor(this.props.obj);return e.length?React.createElement("div",{className:"scrivito_publish_restrictions_group"},React.createElement("div",{className:"scrivito_sidebar_separator scrivito_orange"},React.createElement("i",{className:"scrivito_icon scrivito_icon_no_publish"}),React.createElement("span",null,scrivito.t("sidebar.notifications_panel.publish_restrictions_group.title"))),e.map((function(e){return React.createElement("span",{key:e,className:"scrivito_description"},e)}))):null},t.prototype._scrivitoRenderWhileLoading=function(){return React.createElement(C,null)},t}(React.Component);Zh.shouldRenderLoaderError=!0;var Xh=S(Zh),em=S((function(){return 0===Nh()?React.createElement("div",{className:"scrivito_no_notifications_box scrivito_property_padding"},React.createElement("div",{className:"scrivito_list_big"},React.createElement("div",{className:"scrivito_notice scrivito_grey"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("sidebar.notifications_panel.no_notifications"))))):null}));function tm(e){var t=e.isActive,n=e.togglePanel;return u.createElement(sh,{name:"workspaces",tourReference:"workspaces",getIconClassName:function(){return"scrivito_icon scrivito_icon_ws"},isActive:t,togglePanel:n})}var nm,rm,im=function(){return(im=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)},om=scrivito.legacyCreateConnectedComponent({statics:{open:function(e){return nm=$("#workspace_settings_dialog"),rm=new z.e,scrivito.withDialogBehaviour(nm,rm.promise,{escape:sm}),scrivito.renderReactComponent(React.createElement(om,im({},e)),nm),rm.promise}},propTypes:{title:c.a.string,titleForEditor:c.a.string.isRequired,ownerIds:c.a.arrayOf(c.a.string).isRequired},getInitialState:function(){return{title:this.props.title}},componentDidMount:function(){this._updateHeight()},render:function(){return this._preloadOwners(),React.createElement("div",{className:"workspace_settings scrivito_modal_medium scrivito_show adjust_dialog"},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("h3",null,React.createElement("i",{className:"scrivito_icon scrivito_icon_settings"}),scrivito.t("workspace_settings_dialog.title",this.props.titleForEditor))),React.createElement("div",{className:"scrivito_modal_body scrivito_dialog scrivito_auto_height"},React.createElement("div",{className:"scrivito_content_group"},React.createElement("h4",null,scrivito.t("workspace_settings_dialog.input.title")),React.createElement("input",{name:"title",type:"text",onChange:this._onTitleChange,value:this.state.title,placeholder:this.props.titleForEditor})),React.createElement("div",{className:"scrivito_content_group"},React.createElement("h4",null,scrivito.t("workspace_settings_dialog.input.owners")),React.createElement(am,{ownerIds:this.props.ownerIds,onMount:this._updateHeight}))),React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this._onCancel},scrivito.t("workspace_settings_dialog.cancel")),React.createElement("a",{className:"scrivito_button scrivito_green scrivito_confirm",onClick:this._onConfirm},scrivito.t("workspace_settings_dialog.confirm"))))},_updateHeight:function(){un($(Object(d.findDOMNode)(this)).find(".scrivito_modal_body"))},_preloadOwners:function(){Object(H.mapAndLoadParallel)(this.props.ownerIds,cm)},_onTitleChange:function(e){this.setState({title:e.target.value})},_onConfirm:function(e){e.preventDefault();var t=this.state.title,n=g.a.pluck(nm.find("input[name=owners]").select2("data"),"id");Object(d.unmountComponentAtNode)(nm.get(0)),t===this.props.title&&g.a.isEqual(n,this.props.ownerIds)?rm.resolve(!1):rm.resolve({title:t,ownerIds:n})},_onCancel:function(e){e.preventDefault(),sm()}}),am=scrivito.legacyCreateConnectedComponent({propTypes:{ownerIds:c.a.arrayOf(c.a.string).isRequired,onMount:c.a.func.isRequired},componentDidMount:function(){this._setupSelect2(),this.props.onMount()},componentWillUnmount:function(){nm.find("input[name=owners]").select2("destroy")},render:function(){return React.createElement("input",{name:"owners",type:"hidden",value:this.props.ownerIds})},_setupSelect2:function(){nm.find("input[name=owners]").select2({multiple:!0,minimumInputLength:1,query:Object(z.P)((function(e){He.suggest(e.term).then((function(t){var n=g.a.map(t,(function(e){return{id:e.id,text:e.description}}));e.callback({results:n})}))}),500),initSelection:function(e,t){var n=$(e).val();n&&Object(H.load)((function(){return g.a.map(n.split(","),(function(e){var t=cm(e);return{id:e,text:t?t.description:e,locked:e===He.current.id}}))})).then(t)},formatNoMatches:scrivito.t("workspace_settings_dialog.nothing_found"),formatSearching:scrivito.t("workspace_settings_dialog.searching"),formatInputTooShort:scrivito.t("workspace_settings_dialog.too_short")})}});function sm(){Object(d.unmountComponentAtNode)(nm.get(0)),rm.resolve(!1)}function cm(e){try{return He.get(e)}catch(e){if(e instanceof Be)return;throw e}}var um=om;function lm(e){(function(e){var t=e.title,n=e.titleForEditor,r=e.ownerIds;return um.open({title:t,titleForEditor:n,ownerIds:r})})(e).then((function(t){t&&function(e,t){var n=t.title,r=t.ownerIds,i={};g.a.each(r,(function(e){return i[e]={role:"owner"}})),scrivito.withSavingOverlay(e.update({title:n,memberships:i}).then(scrivito.reload))}(e,t)}))}function dm(e){return new no({execute:function(){Object(z.J)(function(e){return scrivito.withSavingOverlay(e.rebase().catch(scrivito.displayError))}(e).then((function(){return function(e){return Object(H.load)((function(){return e.hasConflicts()})).then((function(e){if(e)return scrivito.confirmation_dialog({title:scrivito.t("commands.rebase_workspace.has_conflicts.title"),description:scrivito.t("commands.rebase_workspace.has_conflicts.description"),confirm_button_text:scrivito.t("commands.rebase_workspace.open_changes_dialog"),cancel_button_text:scrivito.t("close")}).then(Xf)}))}(e)})),(function(){scrivito.withSavingOverlay(z.j.resolve()),scrivito.reload()}))}})}function pm(){return new no({execute:function(){Aa.open({title:scrivito.t("commands.create_workspace.dialog.title"),description:scrivito.t("commands.create_workspace.dialog.description"),placeholder:scrivito.t("commands.create_workspace.dialog.placeholder"),icon:"&#xf022;",okButtonText:scrivito.t("commands.create_workspace.dialog.accept")}).then((function(e){null!==e&&scrivito.withSavingOverlay(Mo.createAsync(e)).then((function(e){var t={workspaceId:e.id};return scrivito.editingContext.isMutable()||(t.displayMode="editing"),scrivito.changeEditingContext(t)})).catch(fm)}))}})}function fm(e){"precondition_not_met.workspace.create.exceeds_limit"===e.backendCode?jr(scrivito.t("commands.create_workspace.dialog.workspace_limit_exceeded"),{color:"yellow",icon:"information"}):scrivito.displayError(e)}function hm(e){return new no({id:"scrivito.sdk.restore_workspace",execute:function(){(function(e){return scrivito.confirmation_dialog({title:scrivito.t("commands.restore_workspace.dialog.title",mm(e)),description:scrivito.t("commands.restore_workspace.dialog.description",e.title),icon:"&#xf032;",color:"green",confirm_button_text:scrivito.t("commands.restore_workspace.dialog.confirm"),confirm_button_color:"green"})})(e).then((function(){return function(e){var t=e.id;scrivito.withSavingOverlay(Mo.createAsync(mm(e),{revisionId:t}).then((function(e){return scrivito.changeEditingContext({workspaceId:e.id,displayMode:"editing"})})).catch(scrivito.displayError))}(e)}))}})}function mm(e){return scrivito.t("commands.restore_workspace.workspace_title",e.publishedAtForEditor)}var _m=function(){function e(e){this._attributes=e}return e.getRecent=function(){var e=this,t=new H.LoadableData({state:vm(),loader:function(){return de.d.get("workspaces/published/revisions")},throwNotLoaded:!0}),n=g.a.map(t.get().results,(function(t){return new e(t)}));return t.get().isLimited&&(n.isLimited=!0),n},e.clearCache=function(){vm().set(null)},Object.defineProperty(e.prototype,"id",{get:function(){return this._attributes.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._attributes.title||this.publishedAtForEditor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"publishedAt",{get:function(){return Object(z.H)(this._attributes.published_at)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"publishedBy",{get:function(){var e=this._attributes.published_by;if(e)try{return He.get(e).description}catch(t){if(t instanceof Be)return scrivito.t("revision.published_by",e);throw t}return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changesCount",{get:function(){return this._attributes.changes_count},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"publishedAtForEditor",{get:function(){return ls()(this.publishedAt).format("lll")},enumerable:!0,configurable:!0}),e}();function vm(){return pe.p.subState("revision")}var gm=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)}}(),ym=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gm(t,e),t.prototype.render=function(){return u.createElement("div",null,u.createElement("ul",{className:"scrivito_list_big"},_m.getRecent().map((function(e,t){return u.createElement(bm,{key:e.id,revision:e,isPublished:0===t,publishedBy:e.publishedBy})}))),u.createElement(km,{isLimited:_m.getRecent().isLimited}))},t.prototype._scrivitoRenderWhileLoading=function(){return u.createElement(C,null)},t.displayName="PublishHistoryDialog.RevisionList",t.shouldRenderLoaderError=!0,t}(u.Component),bm=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return gm(t,e),t.prototype.render=function(){var e;return this.props.isPublished&&(e="is_published"),u.createElement("li",{className:e,onClick:this.onClick},u.createElement("span",{className:"scrivito_list_group"},u.createElement("i",{className:"scrivito_icon scrivito_icon_ws"})),u.createElement("span",{className:"scrivito_list_group"},u.createElement("span",{className:"scrivito_list_topic"},this.props.revision.title),u.createElement("span",{className:"scrivito_list_meta"},u.createElement("div",null,this.subtitle()),u.createElement(wm,{publishedBy:this.props.publishedBy}))),u.createElement("span",{className:"scrivito_list_group scrivito_pull_right"},u.createElement("span",{className:"scrivito_list_label"},scrivito.t("publish_history_dialog.revision_list.changes_count")),u.createElement("span",{className:"scrivito_list_value"},this.changesCount())),u.createElement("span",{className:"scrivito_list_group scrivito_pull_right"},u.createElement("span",{className:"scrivito_list_label"},this.publishedAtLabel()),u.createElement("span",{className:"scrivito_list_value"},this.props.revision.publishedAtForEditor)))},t.prototype.subtitle=function(){if(this.props.isPublished)return scrivito.t("publish_history_dialog.revision_list.not_restorable")},t.prototype.publishedAtLabel=function(){return scrivito.t("publish_history_dialog.revision_list.published_at")+Ue.default.localizeDateRelative(this.props.revision.publishedAt)},t.prototype.changesCount=function(){var e=this.props.revision.changesCount;return null===e?scrivito.t("publish_history_dialog.revision_list.changes_count.not_available"):1===e?scrivito.t("publish_history_dialog.revision_list.changes_count.one"):scrivito.t("publish_history_dialog.revision_list.changes_count.many",e)},t.prototype.onClick=function(){this.props.isPublished||hm(this.props.revision).execute()},t.displayName="PublishHistoryDialog.RevisionList.RevisionListItem",t}(u.Component),wm=function(e){return e.publishedBy?u.createElement("span",null,u.createElement("i",{className:"scrivito_icon scrivito_icon_user"}),e.publishedBy):null};wm.displayName="PublishHistoryDialog.RevisionList.PublisheBy";var km=function(e){if(!e.isLimited)return null;var t=scrivito.t("publish_history_dialog.revision_list.is_limited",_m.getRecent().length);return u.createElement("div",{className:"scrivito_limited_notice"},u.createElement("div",{className:"scrivito_notice_icon"},u.createElement("i",{className:"scrivito_icon scrivito_icon_attention"})),u.createElement("div",{className:"scrivito_notice_body"},t))};km.displayName="PublishHistoryDialog.RevisionList.NoticeBox";var Om,Cm,Mm=S(ym),Dm=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)}}(),xm=function(e){function t(t){var n=e.call(this,t)||this;return n._onCloseClick=n._onCloseClick.bind(n),n}return Dm(t,e),t.open=function(){Om=$("#publish_history_dialog"),Cm=new z.e,scrivito.withDialogBehaviour(Om,Cm.promise,{escape:Sm}),scrivito.renderReactComponent(l.a.createElement(t,null),Om)},t.prototype.componentDidMount=function(){this._updateHeight()},t.prototype.componentDidUpdate=function(){this._updateHeight()},t.prototype.render=function(){return l.a.createElement("div",{className:"publish_history scrivito_modal_large scrivito_show adjust_dialog"},l.a.createElement("div",{className:"scrivito_modal_header"},l.a.createElement("h3",null,l.a.createElement("i",{className:"scrivito_icon scrivito_icon_history"}),scrivito.t("publish_history_dialog.title"))),l.a.createElement("div",{className:"scrivito_modal_body scrivito_dialog scrivito_auto_height"},l.a.createElement(Em,null),l.a.createElement(Mm,null)),l.a.createElement("div",{className:"scrivito_modal_footer"},l.a.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this._onCloseClick},scrivito.t("publish_history_dialog.close"))))},t.prototype._onCloseClick=function(e){e.preventDefault(),e.stopPropagation(),Sm()},t.prototype._updateHeight=function(){un($(Object(d.findDOMNode)(this)).find(".scrivito_modal_body"))},t}(l.a.Component);function Em(){return l.a.createElement("div",{className:"scrivito_notice scrivito_blue"},l.a.createElement("div",{className:"scrivito_notice_icon"},l.a.createElement("i",{className:"scrivito_icon scrivito_icon_question"})),l.a.createElement("div",{className:"scrivito_notice_body"},scrivito.t("publish_history_dialog.info"),l.a.createElement("a",{href:"https://scrivito.com/publishing-history",target:"_blank"},scrivito.t("publish_history_dialog.link")),"."))}function Sm(){Object(d.unmountComponentAtNode)(Om.get(0)),Cm.resolve()}var jm,Tm,Lm,Pm=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)}}(),Am=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pm(t,e),t.prototype.render=function(){return u.createElement(nh.a,{className:this.scrollbarsClassName()},u.createElement(wh,{until:this.props.openedAtLeastOnce},u.createElement(Nm,null),u.createElement(Im,null),u.createElement(Ym,null),u.createElement(Rm,null),u.createElement(Fm,null)))},t.prototype.scrollbarsClassName=function(){var e=["scrivito_second_level_content","scrivito_workspaces_panel","scrivito_dark"];return this.props.isActive&&e.push("scrivito_show"),e.join(" ")},t}(u.Component),Nm=S((function(){return u.createElement("div",{className:"scrivito_general_workspaces_group"},u.createElement("div",{className:"scrivito_sidebar_separator"},u.createElement("span",null,scrivito.t("sidebar.workspaces_panel.general_workspaces_group.title"))),u.createElement("ul",{className:"scrivito_sidebar_action"},u.createElement(Wm,null),u.createElement(Bm,null)))})),Im=S((function(){var e,t=Mo.selected;return t.isMutable()&&(e=u.createElement("ul",{className:"scrivito_sidebar_action"},u.createElement(Um,{workspace:t}),u.createElement(zm,{workspace:t}),u.createElement(qm,{workspace:t}),u.createElement(Vm,{workspace:t}))),u.createElement("div",{className:"scrivito_current_workspace_group"},u.createElement("div",{className:"scrivito_sidebar_separator"},u.createElement("span",null,scrivito.t("sidebar.workspaces_panel.current_workspace_group.title"))),u.createElement(qh,{workspaces:[t]}),e)})),Ym=S((function(){return Mo.selected.isPublished()?null:u.createElement(Hm,{title:scrivito.t("workspace.title.published"),workspaces:[Mo.published]})})),Rm=S(((jm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pm(t,e),t.prototype.render=function(){var e=Mo.published.otherWritableWorkspaces.filter((function(e){return e.isOwnedBy(Ne())}));return u.createElement(Hm,{title:scrivito.t("sidebar.workspaces_panel.my_workspaces_group.title"),workspaces:e})},t.prototype._scrivitoRenderWhileLoading=function(){return u.createElement(Hm,{title:scrivito.t("sidebar.workspaces_panel.my_workspaces_group.title"),isLoading:!0})},t}(u.Component)).shouldRenderLoaderError=!0,jm)),Fm=S((function(){var e=Mo.published.otherWritableWorkspaces.filter((function(e){return!e.isOwnedBy(Ne())}));return u.createElement(Hm,{title:scrivito.t("sidebar.workspaces_panel.other_workspaces_group.title"),workspaces:e})})),Hm=S((function(e){return e.workspaces&&0===e.workspaces.length?null:u.createElement("div",{className:"scrivito_workspaces_group"},u.createElement("div",{className:"scrivito_sidebar_separator"},u.createElement("span",null,e.title)),e.workspaces&&u.createElement(qh,{workspaces:e.workspaces}),e.isLoading&&u.createElement(C,null))})),Wm=S(((Tm=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Pm(t,e),t.prototype.render=function(){return u.createElement("li",{className:this.buttonClassName(),title:this.buttonHint(),onClick:this.onClick},u.createElement("i",{className:"scrivito_icon scrivito_icon_inv_plus scrivito_green"}),u.createElement("span",null,scrivito.t("sidebar.workspaces_panel.create_workspace_button.title")))},t.prototype.onClick=function(e){var t=this;Object(H.load)((function(){return t.isEnabled()})).then((function(e){e&&pm().execute()})),e.stopPropagation()},t.prototype.buttonClassName=function(){var e="scrivito_create_workspace_button scrivito_sidebar_action_item";return this.isEnabled()||(e+=" scrivito_disabled"),e},t.prototype.buttonHint=function(){return this.isEnabled()?scrivito.t("sidebar.workspaces_panel.create_workspace_button.hint"):scrivito.t("sidebar.workspaces_panel.create_workspace_button.is_disabled")},t.prototype.isEnabled=function(){return Oo("create")},t}(u.Component)).displayName="CreateWorkspaceButton",Tm)),Bm=S(((Lm=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Pm(t,e),t.prototype.render=function(){return u.createElement("li",{className:this.buttonClassName(),title:this.buttonHint(),onClick:this.onClick},u.createElement("i",{className:"scrivito_icon scrivito_icon_history"}),u.createElement("span",null,scrivito.t("sidebar.workspaces_panel.publish_history_button.title")))},t.prototype.onClick=function(e){this.isEnabled()&&xm.open(),e.stopPropagation()},t.prototype.buttonClassName=function(){var e="scrivito_publish_history_button scrivito_sidebar_action_item";return this.isEnabled()||(e+=" scrivito_disabled"),e},t.prototype.buttonHint=function(){return this.isEnabled()?scrivito.t("sidebar.workspaces_panel.publish_history_button.hint"):scrivito.t("sidebar.workspaces_panel.publish_history_button.is_disabled")},t.prototype.isEnabled=function(){return Oo("read_history")},t}(u.Component)).displayName="PublishHistoryButton",Lm)),zm=$m({name:"changes",icon:"edited",verb:"read",onClick:function(){Xf()}}),Um=$m({name:"publish",verb:"publish",color:"green",onClick:function(e){var t=new jf(e);scrivito.publishWorkspace(e,t)}}),qm=$m({name:"settings",verb:"invite_to",onClick:function(e){lm(e)}}),Vm=$m({name:"rebase",icon:"refresh",verb:"write",isButtonDisabled:function(e){return e.isAutoUpdate()},onClick:function(e){dm(e).execute()}});function $m(e){var t,n=e.name,r=e.icon,i=e.color,o=e.verb,a=e.isButtonDisabled,s=e.onClick;return S(((t=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return Pm(t,e),t.prototype.render=function(){return a&&a(this.props.workspace)?null:u.createElement("li",{className:this.buttonClassName(),title:this.title(),onClick:this.onClick},u.createElement("i",{className:this.iconClassName()}),u.createElement("span",null,scrivito.t("sidebar.workspaces_panel."+n+"_button.title")))},t.prototype.buttonClassName=function(){var e="scrivito_sidebar_action_item scrivito_"+n+"_button";return this.canAccessWorkspace()||(e+=" scrivito_disabled"),e},t.prototype.iconClassName=function(){var e="scrivito_icon scrivito_icon_"+(r||n);return i&&(e+=" scrivito_"+i),e},t.prototype.title=function(){var e="sidebar.workspaces_panel."+n+"_button";return this.canAccessWorkspace()?scrivito.t(e+".hint"):scrivito.t(e+".is_forbidden")},t.prototype.canAccessWorkspace=function(){return Oo(o,this.props.workspace)},t.prototype.onClick=function(e){var t=this;Object(H.load)((function(){return t.canAccessWorkspace()})).then((function(e){e&&s(t.props.workspace)})),e.stopPropagation()},t}(u.Component)).displayName="WorkspaceButton."+n,t))}var Gm=S(Am);var Km=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)}}(),Jm=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isAnimating:!1,isPanelOpen:!1,activePanel:Qm()},n.togglePanel=n.togglePanel.bind(n),n.unhide=n.unhide.bind(n),n._hide=n._hide.bind(n),n._onMouseLeave=n._onMouseLeave.bind(n),n._onMouseOver=n._onMouseOver.bind(n),n._onSidebarPanelsTransitionEnd=n._onSidebarPanelsTransitionEnd.bind(n),n._updateUIOffset=n._updateUIOffset.bind(n),n}return Km(t,e),t.prototype.componentDidMount=function(){var e=this;this._fsm=scrivito.sidebarFsm({openSidebar:function(){return e.setState({isAnimating:!0,isPanelOpen:!0})},closeSidebar:function(){return e.setState({isAnimating:!0,isPanelOpen:!1})}}),$("#scrivito_ui").addClass("scrivito_sidebar_show_first_level"),this._updateUIOffset()},t.prototype.componentDidUpdate=function(){this._updateUIOffset()},t.prototype.render=function(){return u.createElement("div",{className:"scrivito_sidebar",onMouseOver:this._onMouseOver,onMouseLeave:this._onMouseLeave},u.createElement(Zm,{activePanel:this.state.activePanel,togglePanel:this.togglePanel,hideMenubar:this._hide}),u.createElement(Xm,{activePanel:this.state.activePanel,isAnimating:this.state.isAnimating,isOpen:this.state.isPanelOpen,onTransitionEnd:this._onSidebarPanelsTransitionEnd}))},t.prototype.toggleWorkspacesPanel=function(){this.togglePanel("workspaces")},t.prototype.togglePanel=function(e){if(!e)throw new z.g("Missing panel name");var t;t=e,scrivito.storage.set("sidebar.activePanel",{activePanel:t}),this.state.isPanelOpen?e===this.state.activePanel&&"isOpen"===this._fsm.currentState?this._fsm.triggerEvent("close"):this.setState({activePanel:e}):(this.setState({activePanel:e}),this._fsm.triggerEvent("open"))},t.prototype.unhide=function(){this.state.activePanel?this._fsm.triggerEvent("unhideAndClose"):this._fsm.triggerEvent("unhideAndDisable")},t.prototype._onMouseOver=function(){this._fsm.triggerEvent("mouseOver")},t.prototype._onMouseLeave=function(){this._fsm.triggerEvent("mouseLeave")},t.prototype._updateUIOffset=function(){this.state.isPanelOpen?$("#scrivito_ui").addClass("scrivito_sidebar_show_second_level"):$("#scrivito_ui").removeClass("scrivito_sidebar_show_second_level")},t.prototype._hide=function(){this.props.hideMenubar(),this._fsm.triggerEvent("hide")},t.prototype._onSidebarPanelsTransitionEnd=function(){this.setState({isAnimating:!1}),this.state.isPanelOpen?this._fsm.triggerEvent("openTransitionFinished"):(this._fsm.triggerEvent("closeTransitionFinished"),"isDisabled"===this._fsm.currentState&&this.setState({activePanel:null}))},t.displayName="scrivito.Sidebar",t}(u.Component);function Qm(){var e=scrivito.storage.get("sidebar.activePanel");return e?e.activePanel:"workspaces"}var Zm=S((function(e){var t=e.activePanel,n=e.togglePanel,r=e.hideMenubar,i=[];return scrivito.enableSidebarDetails&&i.push(u.createElement(ch,{key:"detailsButton",isActive:"details"===t,togglePanel:function(){return n("details")}}),u.createElement("div",{key:"detailsButtonSeperator",className:"scrivito_separator_bar"})),Object(re.b)()||i.push(u.createElement(bh,{key:"hierarchyButton",isActive:"hierarchy"===t,togglePanel:function(){return n("hierarchy")}})),u.createElement("div",{className:"scrivito_first_level"},i,u.createElement(oh,null),u.createElement("div",{className:"scrivito_separator_bar"}),u.createElement(tm,{isActive:"workspaces"===t,togglePanel:function(){return n("workspaces")}}),u.createElement(Rh,{isActive:"notifications"===t,togglePanel:function(){return n("notifications")}}),u.createElement("div",{className:"scrivito_separator_bar"}),u.createElement(hh,{isActive:"devices"===t,togglePanel:function(){return n("devices")}}),u.createElement(yh,{hideMenubar:r}))})),Xm=S(function(e){function t(t){var n=e.call(this,t)||this;return n.state={openedAtLeastOnce:!1},n}return Km(t,e),t.getDerivedStateFromProps=function(e,t){return!t.openedAtLeastOnce&&e.isOpen?{openedAtLeastOnce:!0}:null},t.prototype.render=function(){var e,t=[];if(scrivito.enableSidebarDetails&&t.push(u.createElement(dh,{key:"detailsPanel",isActive:"details"===this.props.activePanel})),!Object(re.b)()){var n=ii(),r=n&&n.id();t.push(u.createElement(Ph,{key:"hierarchyPanel",isActive:"hierarchy"===this.props.activePanel,openedAtLeastOnce:this.state.openedAtLeastOnce,isOpen:this.props.isOpen,rootObjId:Tt.a.getHomepageId(),currentPageId:r,ancestorIds:(e=n,e?e.ancestors().map((function(e){return e&&e.id()})).filter((function(e){return null!==e})):[])}))}return u.createElement("div",{className:this._className(),onTransitionEnd:this.props.onTransitionEnd},t,u.createElement(Gm,{isActive:"workspaces"===this.props.activePanel,openedAtLeastOnce:this.state.openedAtLeastOnce}),u.createElement($h,{isActive:"notifications"===this.props.activePanel}),u.createElement(_h,{isActive:"devices"===this.props.activePanel}))},t.prototype._className=function(){var e=["scrivito_second_level"];return this.props.isAnimating&&e.push("animating"),this.props.isOpen&&e.push("open"),e.join(" ")},t}(u.Component)),e_=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_=S(function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n.onContextMenuClosed=n.onContextMenuClosed.bind(n),n.setRef=n.setRef.bind(n),n.state={isContextMenuOpen:!1},n}return e_(t,e),t.prototype.setRef=function(e){Bt("pageMenu",e),this.ref=e},t.prototype.render=function(){return u.createElement("div",{className:this.className(),title:this.title(),onClick:this.onClick,ref:this.setRef},u.createElement("span",{className:"bar"}),u.createElement("span",{className:"bar"}),u.createElement("span",{className:"bar"}),u.createElement("i",{className:this.iconClassName()}),this.state.isContextMenuOpen&&this.ref&&(e=new ri(this.ref),t=this.getCommands(),n=this.onContextMenuClosed,Object(d.createPortal)(u.createElement(ni,{elementArea:e,close:n,commands:t,customClassName:"scrivito_obj_menu"}),document.getElementById("context_menu"))));var e,t,n},t.prototype.className=function(){var e="scrivito_current_page scrivito_button_bar scrivito_hamburger scrivito_right";return this.state.isContextMenuOpen&&(e+=" active"),e},t.prototype.title=function(){var e="";return this.isCurrentPageRestricted()&&(e=scrivito.t("topbar.current_page_menu.title.is_restricted")),this.isCurrentPageModified()&&(e+=scrivito.t("topbar.current_page_menu.title.is_"+this.currentPageModification())),e},t.prototype.iconClassName=function(){var e="scrivito_icon";return this.isCurrentPageModified()&&(e+=" scrivito_"+this.currentPageModification()),this.isCurrentPageRestricted()&&(e+=" scrivito_icon_lock"),e},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),this.state.isContextMenuOpen||this.setState({isContextMenuOpen:!0})},t.prototype.getCommands=function(){if(Object(re.b)()){var e=scrivito.applicationDocument();return e?e.menu():[]}return cd()},t.prototype.isCurrentPageRestricted=function(){var e=this.getCurrentPage();return e&&e.isRestricted()},t.prototype.isCurrentPageModified=function(){var e=this.getCurrentPage();return e&&e.isModified()},t.prototype.currentPageModification=function(){var e=this.getCurrentPage();return e&&e.modification()},t.prototype.getCurrentPage=function(){try{return ii()}catch(e){if(e instanceof z.h)return null;throw e}},t.prototype.onContextMenuClosed=function(){this.setState({isContextMenuOpen:!1})},t.displayName="Topbar.CurrentPageMenu",t}(u.Component));function n_(e){Object(H.load)((function(){return Mo.selected})).then((function(t){t.isPublished()?function(e){return scrivito.withSavingOverlay(Object(H.load)((function(){return e.otherWritableWorkspaces})))}(t).then(r_).then((function(t){t&&i_(e,t)})):i_(e)}))}function r_(e){return 0===e.length?scrivito.withSavingOverlay(Object(H.load)((function(){return Oo("create")}))).then((function(t){return t?scrivito.withSavingOverlay(Object(H.load)((function(){return He.current})).then((function(e){return Mo.createAsync(function(e){return scrivito.t("workspace.default_title",e.description)}(e))})).then((function(e){return e.id}),(function(e){throw scrivito.displayError(e),e}))):wf(e,"view_mode")})):wf(e,"view_mode")}function i_(e,t){scrivito.withSavingOverlay(scrivito.changeEditingContext({displayMode:e,workspaceId:t}))}var o_=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 a_(e,t){return S(function(n){function r(e){var t=n.call(this,e)||this;return t.onClick=t.onClick.bind(t),t}return o_(r,n),r.prototype.render=function(){var t=this;return u.createElement("div",{className:this.className(),title:this.title(),onClick:this.onClick,ref:function(e){return t.registerTourReference(e)}},u.createElement("span",{className:"scrivito_viewmode_icon"}),u.createElement("span",{className:"scrivito_viewmode_label"},scrivito.t("topbar.display_mode_selector."+e+"_mode")))},r.prototype.className=function(){var t="scrivito_viewmode_"+e;return this.isSelected()&&(t+=" scrivito_selected"),this.reasonForBeingDisabled()&&(t+=" scrivito_disabled"),t},r.prototype.title=function(){return this.isSelected()?scrivito.t("topbar.display_mode_selector.is_selected"):this.reasonForBeingDisabled()},r.prototype.reasonForBeingDisabled=function(){return scrivito.editingContext.reasonForDisplayModeBeingDisabled(e)},r.prototype.isSelected=function(){return scrivito.editingContext.displayMode===e},r.prototype.isDisabled=function(){return!!this.reasonForBeingDisabled()},r.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),this.isSelected()||this.isDisabled()||n_(e)},r.prototype.registerTourReference=function(e){t&&e&&Bt(t,e)},r.displayName="Topbar.DisplayModeSelector."+Object(z.q)(e)+"ModeButton",r}(u.Component))}var s_=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)}}(),c_=a_("view"),u_=a_("editing","editMode"),l_=a_("diff"),d_=S(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s_(t,e),t.prototype.render=function(){return u.createElement("div",{className:"scrivito_viewmodes_wrapper"},u.createElement("div",{className:this.className()},u.createElement("span",{className:"scrivito_viewmode_pill"}),u.createElement(c_,null),u.createElement(u_,null),u.createElement(l_,null)))},t.prototype.className=function(){return"scrivito_viewmodes scrivito_viewmode_"+scrivito.editingContext.displayMode+"_active"},t.displayName="Topbar.DisplayModeSelector",t}(u.Component)),p_=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)}}(),f_=S(function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(n),n}return p_(t,e),t.prototype.render=function(){return u.createElement("div",{className:this.className(),title:this.reasonForBeingDisabled(),onClick:this.onClick,ref:function(e){return Bt("publish",e)}},u.createElement("i",{className:this.iconClassName()}),u.createElement("span",{className:"scrivito_button_label"},scrivito.t("topbar.publish_button.label")))},t.prototype.className=function(){var e="scrivito_button_bar";return this.isDisabled()&&(e+=" scrivito_disabled"),e},t.prototype.iconClassName=function(){var e="scrivito_icon scrivito_icon_publish";return this.isDisabled()||(e+=" scrivito_wobble scrivito_animated"),e},t.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation(),this.isDisabled()||Xf()},t.prototype.isDisabled=function(){return!!this.reasonForBeingDisabled()},t.prototype.reasonForBeingDisabled=function(){return Mo.selected.isPublished()?scrivito.t("topbar.publish_button.disabled.title.is_published"):this.hasChanges()?void 0:scrivito.t("topbar.publish_button.disabled.title.no_changes")},t.prototype.hasChanges=function(){return F.BasicObj.where("_modification","equals",["new","edited","deleted"]).includeDeleted().batchSize(0).count()>0},t.displayName="Topbar.PublishButton",t}(u.Component)),h_=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.SavingIndicator",getInitialState:function(){return{savingState:null}},componentDidMount:function(){this._startWriteToken=scrivito.WriteMonitor.on("start_write",this._onStartWrite),this._endWriteToken=scrivito.WriteMonitor.on("end_write",this._onEndWrite)},componentWillUnmount:function(){scrivito.WriteMonitor.off(this._startWriteToken),scrivito.WriteMonitor.off(this._endWriteToken)},render:function(){var e;switch(this.state.savingState){case"writeStarted":e=React.createElement("span",{className:"scrivito_saving_in_progress"},React.createElement("i",{className:"scrivito_icon scrivito_spinning"},""),React.createElement("span",{className:"scrivito_button_label"},React.createElement("span",null,scrivito.t("topbar.saving_indicator.write_started"))));break;case"writeEnded":e=React.createElement("span",{className:"scrivito_saving_done"},React.createElement("i",{className:"scrivito_icon"},""),React.createElement("span",{className:"scrivito_button_label"},React.createElement("span",null,scrivito.t("topbar.saving_indicator.write_ended"))))}return React.createElement("div",{id:"scrivito_menu_bar_saving_indicator"},React.createElement("span",{className:"scrivito_saving_state_bar"},e))},_onStartWrite:function(){this._hideTimeout&&(clearTimeout(this._hideTimeout),delete this._hideTimeout),this.setState({savingState:"writeStarted"})},_onEndWrite:function(e){var t=this;e?this.setState({savingState:null}):(this.setState({savingState:"writeEnded"}),this._hideTimeout=setTimeout((function(){return t.setState({savingState:null})}),3e3))}});h_.HIDE_TIMEOUT=3e3;var m_,__=h_,v_=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.SelectedWorkspace",propTypes:{toggleWorkspacesPanel:c.a.func.isRequired},render:function(){var e="scrivito_icon scrivito_icon_ws";return Mo.selected.isPublished()&&(e+="_published"),React.createElement("div",{className:"scrivito_button_bar selected_workspace",onClick:this._onClick},React.createElement("i",{className:e}),React.createElement(g_,null),React.createElement("span",{className:"scrivito_button_label_small"},React.createElement(Wh,{workspace:Mo.selected})))},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this.props.toggleWorkspacesPanel()}}),g_=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.SelectedWorkspaceTitle",render:function(){return React.createElement("span",{className:"scrivito_button_label"},Mo.selected.titleForEditor)}}),y_=v_,b_=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.Warning",render:function(){return scrivito.UiWarning.isPresent()?React.createElement("div",null,React.createElement("span",{className:"scrivito_menu_bar_warning",onClick:this._onClick},React.createElement("i",{className:"scrivito_icon"},""),React.createElement("span",{className:"scrivito_button_label"},React.createElement("span",null,scrivito.t("topbar.warning.message"))))):null},_onClick:function(e){e.preventDefault(),e.stopPropagation(),jr(scrivito.t("topbar.warning.alert_message")),scrivito.UiWarning.clear()}}),w_=scrivito.legacyCreateConnectedComponent({displayName:"Topbar",propTypes:{showMenubar:c.a.func.isRequired,toggleWorkspacesPanel:c.a.func.isRequired},render:function(){return React.createElement("div",{className:"scrivito_topbar",ref:function(e){return Bt("topbar",e)}},React.createElement(k_,{showMenubar:this.props.showMenubar}),React.createElement("div",{className:"scrivito_first_level"},React.createElement("div",{className:"scrivito_button_bar scrivito_app scrivito_no_hover"},React.createElement("span",{className:"scrivito_logo"})),React.createElement(d_,null),React.createElement(y_,{toggleWorkspacesPanel:this.props.toggleWorkspacesPanel}),React.createElement(f_,null),React.createElement(t_,null),React.createElement(b_,null),React.createElement(__,null)))}}),k_=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.ShowMenubar",propTypes:{showMenubar:c.a.func.isRequired},render:function(){var e=scrivito.t("topbar.show_menubar");return React.createElement("div",{className:"scrivito_toggle_ui scrivito_icon scrivito_icon_show_ui",title:e,onClick:this._onClick})},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this.props.showMenubar()}}),O_=w_;function C_(){var e;e=$('meta[name="scrivito-app-origin"]').attr("content"),Xt=e,window.__scrivitoIsFetchingActive=de.g,scrivito.init(scrivito.ui_config()),se("railsDocument",(function(e){var t=e.dom_element().find("body").get(0);t.classList.add("scrivito_editing_active"),ne(e)&&t.setAttribute("data-scrivito-editing",""),te()&&t.setAttribute("data-scrivito-comparison","");var n=function(e){return e.preventDefault()};t.addEventListener("dragenter",n),t.addEventListener("dragover",n),t.addEventListener("drop",n)})),$("body").append('\n      <div id="scrivito_editing">\n        <div id="menubar"></div>\n        <div id="publish_history_dialog"></div>\n        <div id="workspace_settings_dialog"></div>\n        <div id="workspace_changes_dialog"></div>\n        <div id="dialogStack"></div>\n        <div id="legacy_details_dialog"></div>\n        <div id="choose_obj_class_dialog"></div>\n        <div id="error_dialog"></div>\n        <div id="alert_dialog"></div>\n        <div id="context_menu"></div>\n        <div id="prompt_dialog"></div>\n        <div id="image_editor_dialog"></div>\n        <div id="tour"></div>\n        <svg height="0">\n          <filter id="scrivito_svg_icon_filter">\n            <feColorMatrix type="matrix" values="1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 0"/>\n          </filter>\n          <filter id="scrivito_svg_icon_filter_disabled">\n            <feColorMatrix type="matrix" values="1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 0"/>\n            <feColorMatrix type="matrix" values=".14 0 0 0 0 .14 0 0 0 0 .14 0 0 0 0 0 0 0 1 0"/>\n          </filter>\n        </svg>\n      </div>\n    '),scrivito.renderReactComponent(u.createElement(ee,null),$("#dialogStack")),ce("open",void 0),ce("content",window.document),ie=!0,function(e){Object.defineProperty(e,"Scrivito",{get:function(){throw new Error("Are you trying to access the Scrivito API? Switch your JavaScript console to the application frame first. See https://scrivito.com/using-browser-console")}})}(window)}m_=scrivito.legacyCreateConnectedComponent({displayName:"scrivito.Menubar",statics:{init:function(){se("open",(function(){scrivito.renderReactComponent(React.createElement(m_,null),$("#menubar"))}))}},render:function(){var e=this;return React.createElement("div",{id:"scrivito_menubar"},React.createElement(O_,{showMenubar:this._unhide,toggleWorkspacesPanel:this._toggleWorkspacesPanel}),React.createElement(Jm,{ref:function(t){return e.sidebar=t},hideMenubar:this._hide}))},_hide:function(){$("#scrivito_ui").one("transitionend",(function(){return $t()})),$("#scrivito_ui").addClass("scrivito_hide_ui")},_unhide:function(){$("#scrivito_ui").one("transitionend",(function(){qt()&&Nt()})),$("#scrivito_ui").removeClass("scrivito_hide_ui"),this.sidebar.unhide()},_toggleWorkspacesPanel:function(){this.sidebar.toggleWorkspacesPanel()}}),scrivito.Menubar=m_,Ue.default.load("en",{confirm:"Confirm",cancel:"Cancel",save:"Save",welcome:"Welcome",welcome_x:"Welcome $1",accept:"Accept",close:"Close",done:"Done",loading:"Loading...",current_page:"current page",ok:"Ok","models.page.name":"page","models.resource.name":"resource","models.obj.name.plural":"objects","obj.tooltip.is_new":"This item is new.","obj.tooltip.is_new.has_conflicts":"This item is new in this working copy.\nIt has been created and published with a different working copy in the meantime.","obj.tooltip.is_new.has_conflicts.transfer_changes":"This item is new in this working copy.\nIt cannot be moved because it has been created and published with a different working copy in the meantime.","obj.tooltip.is_restricted":"The visibility of this page is restricted.\n","obj.tooltip.is_edited":"This item has been modified.","obj.tooltip.is_edited.has_conflicts":"This item has been modified in this working copy.\nIt has been changed and published with a different working copy in the meantime.","obj.tooltip.is_edited.has_conflicts.transfer_changes":"This item has been modified in this working copy.\nIt cannot be moved because it has been changed and published with a different working copy in the meantime.","obj.tooltip.is_deleted":"This item has been deleted.","obj.tooltip.is_deleted.has_conflicts":"This item has been deleted in this working copy.\nIt has been changed and published with a different working copy in the meantime.","obj.tooltip.is_deleted.has_conflicts.transfer_changes":"This item has been deleted in this working copy.\nIt cannot be moved because it has been changed and published with a different working copy in the meantime.","workspace.title_published":"Published content","workspace.empty_title":"<empty title>","workspace.default_title":"$1's working copy","workspace.publish_error.exceeds_obj_limit":"This working copy cannot be published because the maximum number of CMS objects included in your plan has been exceeded.","revision.published_by":'User with ID "$1"',"workspace.title.published":"Published content","workspace.title.blank":"[Empty title]","default_inspector_description_for_obj.group_general":"General","default_inspector_description_for_obj.group_backlinks":"Linked by","default_inspector_description_for_obj.group_binary_metadata":"Metadata","default_inspector_description_for_obj.group_system":"System","item_description.system.id.title":"Object ID","item_description.system.path.title":"Path","item_description.system.obj_class.title":"Object type","item_description.system.permalink.title":"Permalink","item_description.system.restriction.title":"Visibility","item_description.system.restriction.description":"If restricted, only logged-in users can see this page","item_description.system.history.created_at":"Created","item_description.system.history.created_by":"Created by","item_description.system.history.last_changed":"Last changed","item_description.system.history.last_changed_by":"Last changed by","item_description.system.history.not_available":"Not available","item_description.system.history.user_description_not_available":'User with ID "$1"',"backlinks_item_component.no_backlinks_box.message":'No objects link to "$1".',"stringlist_item_component.read_stringlist.placeholder":"No items","stringlist_item_component.edit_stringlist.add_placeholder":"Add item","binary_attribute_component.download":"Download","binary_attribute_component.drop_hint":"Drop a file above to replace this content.","binary_attribute_component.edit":"Edit","binary_attribute_component.empty":"Empty","binary_attribute_component.rename":"Rename","binary_attribute_component.rename_dialog.title":'Rename "$1"',"binary_attribute_component.rename_dialog.description":"New filename:","binary_attribute_component.rename_dialog.ok":"Rename","binary_attribute_component.rename_dialog.invalid_filename":'The filename "$1" is not valid: A filename may only contain letters from A to Z, periods, hyphens and underscores.',"binary_attribute_component.upload":"Select file to replace this content","binary_metadata_item_component.content_type":"Content type","binary_metadata_item_component.content_length":"Size","binary_metadata_item_component.filename":"Filename","binary_metadata_item_component.width":"Width","binary_metadata_item_component.height":"Height","permalink_item_component.permalink.is_empty":"Not assigned","restriction_editor.restriction.restricted":"Restricted","restriction_editor.restriction.public":"Public","widgetlist_attribute_component.is_empty":"No widgets present.","link_item_component.link.title_placeholder":"Title","link_item_component.link.url_placeholder":"URL","link_item_component.link.content_browser":"Open Content Browser","link_item_component.link.internal":"INTERNAL","link_item_component.link.new_tab":"Open link in new tab","link_item_component.link.delete":"Delete link","link_item_component.link.seo_settings":"SEO settings","link_item_component.link_rel_editor.title":"Rel attribute value","link_item_component.link_rel_editor.description1":"Search engines use a link's ","link_item_component.link_rel_editor.description2":" attribute to determine how to handle the linked document or resource.","linklist_item_component.linklist.undefined":"No links specified","number_attribute_component.clear_button.title":"Clear","reference_attribute_component.clear_button.title":"Clear","obj_restriction_dialog.title":'The page you want to insert is $1. The target ("$2"), however, is $3',"obj_restriction_dialog.description_for_restricting":"Do you want to restrict the inserted page as well or keep it publicly available?","obj_restriction_dialog.description_for_unrestricting":"Do you want to make the inserted page public as well or keep it restricted?","obj_restriction_dialog.keep_restriction__auth":"Keep restricted","obj_restriction_dialog.keep_restriction_null":"Keep public","obj_restriction_dialog.restriction.null":"publicly available","obj_restriction_dialog.restriction._auth":"restricted","obj_restriction_dialog.restrict_page":"Restrict page","obj_restriction_dialog.make_page_public":"Make public","workflows.create_member.validation_error.email_taken":"A user with this email already exists","workflows.create_member.validation_error.email_wrong_format":"The email address has the wrong format","workflows.create_member.precondition_error.member_limit_reached":"The maximum number of users has been reached","workflows.update_member.precondition_error.member_not_found":"The user's role cannot be updated because the user doesn't exist anymore","workflows.update_member.precondition_error.read_only":"The user is read-only and cannot be updated","workflows.delete_member.confirmation_dialog.title":"Are you sure you want to delete this user?","workflows.delete_member.confirmation_dialog.description":"The user whose email is $1 will be deleted irrevocably","workflows.delete_member.confirmation_dialog.confirm":"Delete","workflows.delete_member.precondition_error.read_only":"The user is read-only and cannot be deleted","details_dialog.title":'View properties of "$1"',"details_dialog.title.editing_mode":'Edit properties of "$1"',"details_dialog.close":"Close","workspace_settings_dialog.title":'Settings for "$1"',"workspace_settings_dialog.input.title":"Title","workspace_settings_dialog.input.owners":"Owners","workspace_settings_dialog.nothing_found":"Nothing found","workspace_settings_dialog.searching":"Searching...","workspace_settings_dialog.too_short":"Find user...","workspace_settings_dialog.cancel":"Cancel","workspace_settings_dialog.confirm":"Confirm","workspace_changes_dialog.dialog_header.title":'Changes to "$1"',"workspace_changes_dialog.dialog_header.title.is_transfer_mode":'Moving changes of "$1"',"workspace_changes_dialog.dialog_header.count_title.one":"($1 object)","workspace_changes_dialog.dialog_header.count_title.many":"($1 objects)","workspace_changes_dialog.dialog_header.count_title.many.has_more":"($1+ objects)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.one":"(selected $1 object for moving)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.many":"(selected $1 objects for moving)","workspace_changes_dialog.order_toggle.last_changed":"Sort by last change date","workspace_changes_dialog.order_toggle.last_changed.asc":"Oldest change first","workspace_changes_dialog.order_toggle.last_changed.desc":"Most recent change first","workspace_changes_dialog.order_toggle.obj_class":"Sort by object type","workspace_changes_dialog.order_toggle.obj_class.asc":"A to Z (type)","workspace_changes_dialog.order_toggle.obj_class.desc":"Z to A (type)","workspace_changes_dialog.order_toggle.modification":"Sort by modification type","workspace_changes_dialog.order_toggle.modification.desc":"New, edited, deleted","workspace_changes_dialog.order_toggle.modification.asc":"Deleted, edited, new","workspace_changes_dialog.order_toggle.is_disabled":"Currently selected order","workspace_changes_dialog.no_changes_notice":"Nothing was changed in this working copy.","workspace_changes_dialog.change_item.last_changed":"Last change","workspace_changes_dialog.change_item.last_changed_by":"Last changed by","workspace_changes_dialog.change_item.not_available":"Not available","workspace_changes_dialog.change_item.publish_permission":"Publish","workspace_changes_dialog.publish_permission.is_permitted":"is permitted","workspace_changes_dialog.publish_permission.is_forbidden":"is not permitted","workspace_changes_dialog.enable_transfer_mode_button.title":"Move changes","workspace_changes_dialog.transfer_changes_button.title":"Select target working copy","workspace_changes_dialog.disable_transfer_mode_button.title.cancel":"Cancel","workspace_changes_dialog.disable_transfer_mode_button.title.done":"Done","workspace_changes_dialog.close_dialog_button.title":"Close","workspace_changes_dialog.publish_button.title":"Publish","workspace_changes_dialog.publish_button.is_forbidden":"The working copy can not be published due to missing user permissions.","workspace_publisher.exceeds_obj_limit":"This working copy cannot be published because the maximum number of CMS objects included in your plan has been exceeded.","menu_item.spinner.loading":"Loading...","choose_obj_class_dialog.add_child_page.title":"Select Page Type","choose_obj_class_dialog.create_page.title":"Select Page Type","choose_obj_class_dialog.create_widget.title":"Select Widget","choose_obj_class_dialog.last_used":"Last used","choose_obj_class_dialog.popular":"Often used","choose_obj_class_dialog.all":"All","editable_ws_dialog.view_mode.title.select_or_create":"Choose a working copy","editable_ws_dialog.view_mode.title.select":"Select a working copy","editable_ws_dialog.view_mode.title.create":"Create a working copy","editable_ws_dialog.view_mode.title.forbidden":"No working copy available","editable_ws_dialog.view_mode.description.select_or_create":"To alter content, select or create a working copy first. When you finished editing, publish the working copy or have it published.","editable_ws_dialog.view_mode.description.select":"To alter content, select a working copy first. When you finished editing, publish the working copy or have it published.","editable_ws_dialog.view_mode.description.create":"To alter content, create a working copy first. When you finished editing, publish the working copy or have it published.","editable_ws_dialog.view_mode.description.forbidden":"There is no working copy you could use to alter content. Also, creating working copies has not been enabled for you.","editable_ws_dialog.transfer_changes.title.select_or_create":"Select target working copy","editable_ws_dialog.transfer_changes.title.select":"Select target working copy","editable_ws_dialog.transfer_changes.title.create":"Create target working copy","editable_ws_dialog.transfer_changes.title.forbidden":"No working copy available","editable_ws_dialog.transfer_changes.description.select_or_create":"The changes can be moved to an existing working copy or to a new one.","editable_ws_dialog.transfer_changes.description.select":"The changes will be moved to the selected working copy.","editable_ws_dialog.transfer_changes.description.create":"Please create the target working copy","editable_ws_dialog.transfer_changes.description.forbidden":"You are not permitted to move changes to one of the available working copies.","editable_ws_dialog.choose_existing":"Select an existing working copy:","editable_ws_dialog.create_new":"Create a new working copy:","editable_ws_dialog.or_create_new":"Or, create a new one:","editable_ws_dialog.create_new_playholder":"new working copy title","editable_ws_dialog.select":"Select","loader_error.title":"An error occurred while retrieving the data. Please try again later. If the problem persists, contact a technician familiar with this website.","publish_history_dialog.close":"Close","publish_history_dialog.info":"Pick a working copy from the list to view an archived state of your website. Learn more about the ","publish_history_dialog.link":"publishing history","publish_history_dialog.revision_list.changes_count":"Changed","publish_history_dialog.revision_list.changes_count.many":"$1 objects","publish_history_dialog.revision_list.changes_count.not_available":"Not available","publish_history_dialog.revision_list.changes_count.one":"1 object","publish_history_dialog.revision_list.is_limited":"The maximum number of history items displayed ($1) depends on your plan.","publish_history_dialog.revision_list.not_restorable":"This is the currently published content.","publish_history_dialog.revision_list.published_at":"Published ","publish_history_dialog.title":"Publishing history","sidebar.browse_content_button.hint":"Open the Content Browser","sidebar.browse_content_button.hint.is_disabled":"The Content Browser is not available while deleted content is being displayed.","sidebar.details_button.hint":"Show page details","sidebar.details_button.hint.active":"Page details","sidebar.hierarchy_button.hint":"Show hierarchy","sidebar.hierarchy_button.hint.active":"Hierarchy","sidebar.hierarchy_panel.show_details_icon.hide":"Hide details","sidebar.hierarchy_panel.show_details_icon.open":"Show details","sidebar.workspaces_button.hint":"Show working copy menu","sidebar.workspaces_button.hint.active":"Working copy menu","sidebar.devices_button.hint":"View page in various sizes","sidebar.devices_button.hint.active":"Page in various sizes","sidebar.hide_controls_button.hint":"Hide control panel","sidebar.notifications_button.hint":"Show notifications","sidebar.notifications_button.hint.active":"Notifications","sidebar.workspace_list.workspace_item.hint.is_disabled":"This working copy can not be selected due to missing user permissions.","sidebar.workspace_list.workspace_item.hint.is_selectable":"Select this working copy","sidebar.workspace_list.workspace_item.hint.is_published":"Select published content","sidebar.workspace_list.workspace_item.hint":"Currently selected working copy","sidebar.workspace_list.workspace_item.delete":"Delete this working copy","sidebar.workspaces_panel.general_workspaces_group.title":"Working copies","sidebar.workspaces_panel.current_workspace_group.title":"This working copy","sidebar.workspaces_panel.my_workspaces_group.title":"My working copies","sidebar.workspaces_panel.other_workspaces_group.title":"Other working copies","sidebar.hierarchy_panel.hierarchy":"Hierarchy","sidebar.workspaces_panel.create_workspace_button.title":"New","sidebar.workspaces_panel.create_workspace_button.hint":"Create a working copy","sidebar.workspaces_panel.create_workspace_button.is_disabled":"You cannot create a working copy due to missing user permissions.","sidebar.workspaces_panel.publish_history_button.title":"History","sidebar.workspaces_panel.publish_history_button.hint":"Open publishing history","sidebar.workspaces_panel.publish_history_button.is_disabled":"You cannot view the publishing history due to missing user permissions.","sidebar.workspaces_panel.changes_button.title":"Changes","sidebar.workspaces_panel.changes_button.hint":"View changes to this working copy","sidebar.workspaces_panel.changes_button.is_forbidden":"The cannot view the changes to the working copy due to missing user permissions.","sidebar.workspaces_panel.publish_button.title":"Publish","sidebar.workspaces_panel.publish_button.hint":"Publish this working copy","sidebar.workspaces_panel.publish_button.is_forbidden":"The working copy can not be published due to missing user permissions.","sidebar.workspaces_panel.settings_button.title":"Settings","sidebar.workspaces_panel.settings_button.hint":"Change settings of this working copy","sidebar.workspaces_panel.settings_button.is_forbidden":"You cannot change the settings of the working copy due to missing user permissions.","sidebar.workspaces_panel.rebase_button.title":"Update","sidebar.workspaces_panel.rebase_button.hint":"Update this working copy","sidebar.workspaces_panel.rebase_button.is_forbidden":"You cannot update the working copy due to missing user permissions.","sidebar.notifications_panel.publish_restrictions_group.title":"Publishing not possible","sidebar.notifications_panel.potential_conflicts_group.title":"Potential conflict","sidebar.notifications_panel.potential_conflicts_group.description":"Changes to this page will cause a conflict when publishing. The page has already been modified in these working copies:","sidebar.notifications_panel.conflict_group.title":"Conflict","sidebar.notifications_panel.conflict_group.description1":"A different version of this page has been published in the meantime. ","sidebar.notifications_panel.conflict_group.link":"Resolve the conflict","sidebar.notifications_panel.conflict_group.description2":" to be able to publish this working copy.","sidebar.notifications_panel.no_notifications":"No notifications at present.","sidebar.devices_panel.title":"Preview sizes","sidebar.devices_panel.device.desktop":"Desktop","sidebar.devices_panel.device.laptop":"Laptop","sidebar.devices_panel.device.mobile":"Mobile phone, portrait","sidebar.devices_panel.device.tablet":"Tablet, portrait","confirm_delete_dialog.cancel":"Cancel","confirm_delete_dialog.confirm":"Delete","confirm_delete_dialog.confirm.has_backlinks":"Delete anyway","confirm_delete_dialog.is_edited":"This $1 can be restored if required. However, the changes made to it in this working copy cannot be recovered.","confirm_delete_dialog.is_new":"You are in the process of deleting a $1 that has been created in this working copy. This cannot be undone. However, you can create the $2 once again and reapply the links and references pointing to it.","confirm_delete_dialog.many_objs_to_delete.many_backlinks":"$1 objects link to these $2:","confirm_delete_dialog.many_objs_to_delete.one_backlink":"One object links to these $1:","confirm_delete_dialog.not_modified":"This $1 can be restored if required.","confirm_delete_dialog.one_obj_to_delete.many_backlinks":"$1 objects link to this $2","confirm_delete_dialog.one_obj_to_delete.one_backlink":"One object links to this $1:","confirm_delete_dialog.title":"Are you sure you want to delete this $1?","confirm_delete_dialog.title.many_subjects":"Are you sure you want to delete these $1?","resource_dialog.commands.mark_resolved_obj.dialog.description":"This resource was altered in a different working copy that has been published. Please confirm that you want to keep your changes and discard the ones concurrently made by others.","resource_dialog.commands.mark_resolved_obj.title":"Override concurrent changes to resource","resource_dialog.commands.restore_obj.title":"Restore resource","resource_dialog.title":'Properties of resource "$1"',"menu_bar.create":"Create","saving_indicator_item.saving":"Saving...","saving_indicator_item.saved":"Changes saved","inplace_marker.overlapping":"Two or more menu handles are overlapping. Please adjust your CSS. The following menu handles are overlapping:","widget_marker.widget_is_new":"Widget is new","widget_marker.widget_is_edited":"Widget has been modified","widget_marker.widget_is_edited_and_dragged_here":"Widget has been modified and dragged here","widget_marker.widget_is_edited_and_dragged_away":"Widget has been modified and dragged away from here","widget_marker.widget_is_deleted":"Widget has been deleted","widget_marker.widget_is_dragged_here":"Widget has been dragged here","widget_marker.widget_is_dragged_away":"Widget has been dragged away from here","child_list_menu.description":"Items of $1","transfer_errors_dialog.title":"Errors while moving content changes","transfer_errors_dialog.modified":"Some of the changes could not be moved because the content concerned has also been modified in the target working copy.","transfer_errors_dialog.conflicting":"Some of the changes have not been moved because the respective content in the target working copy is outdated and applying changes to it would cause a conflict. Please make sure that both working copies have been updated and are free of conflicts.","current_page_link_dialog.title":"Share page","current_page_link_dialog.description":"Using the URL below, you can share the current page as part of this working copy. The recipients need to be logged in and have access to the working copy.","error_dialog.toggle_details":"Toggle details","error_dialog.error_details":"Error details","commands.open_obj_in_content_browser.title":"Open in Content Browser","commands.open_obj_in_new_ui_window.title":"Open in new window","commands.open_page_link_dialog.title":"Share page","commands.open_page_link_dialog.is_deleted":"A deleted page cannot be shared because it is inaccessible in preview mode","commands.create_workspace.dialog.title":"Create working copy","commands.create_workspace.dialog.description":"Please enter the title of the new working copy.","commands.create_workspace.dialog.placeholder":"new title","commands.create_workspace.dialog.accept":"Create","commands.create_workspace.dialog.workspace_limit_exceeded":"Scrivito cannot create a working copy for you right now because the number included in the plan for this CMS has been reached.","commands.open_dashboard.title":"Open dashboard","commands.open_user_guide.title":"Open help","commands.enable_tour.title":"Start tour","commands.enable_tour.is_disabled":"The tour is currently active","commands.rebase_workspace.has_conflicts.title":"Changed content has been published intermediately","commands.rebase_workspace.has_conflicts.description":"Your working copy could not be fully updated. Some of its content has also been altered in a different working copy that has been published in the meantime. Please refer to the changes list for details.","commands.rebase_workspace.open_changes_dialog":"Show changes","workflows.delete_workspace.dialog.title":'Are you sure you want to delete "$1"?',"workflows.delete_workspace.dialog.description":"A deleted working copy cannot be restored.","workflows.delete_workspace.dialog.confirm":"Delete","workflows.change_permalink.dialog.title":'Change permalink of "$1"',"workflows.change_permalink.dialog.placeholder":"Please enter a new permalink","workflows.change_permalink.dialog.change":"Change","workflows.change_permalink.info.is_taken":'The "$1" is already in use.',"workflows.change_permalink.info.is_invalid":'The permalink "$1" is not valid: A permalink may only contain letters from A to Z, periods, hyphens, slashes and underscores.',"workflows.change_permalink.info.is_scrivito":'The permalink "$1" is not valid: A permalink must not be "scrivito" or start with "scrivito/".',"commands.restore_workspace.dialog.confirm":"Create","commands.restore_workspace.dialog.description":'This creates a working copy that reflects the archived state of your website after "$1" was published.',"commands.restore_workspace.dialog.title":'Create "$1"?',"commands.restore_workspace.workspace_title":"Archived: $1","commands.open_page_details.title.editing_mode":"Edit page properties","commands.open_page_details.title":"View page properties","commands.open_page_details.dialog.title.editing_mode":'Edit properties of "$1"',"commands.open_page_details.dialog.title":'View properties of "$1"',"commands.open_page_details.is_disabled":"This page has no properties","commands.save_obj_to_clipboard.title":"Copy or move page","commands.save_obj_to_clipboard.has_children":"Pages with subpages cannot be copied or moved yet.","commands.save_obj_to_clipboard.is_deleted":"Deleted pages cannot be copied or moved yet.","commands.delete_obj.has_children":"Pages with subpages can not yet be deleted.","commands.delete_obj.published_workspace":"Since this is the published content, nothing can be modified.","commands.delete_obj.title":"Delete $1","commands.revert_obj.title":"Discard changes to page","commands.revert_obj.published_workspace":"Since this is the published content, nothing has been modified. Therefore, nothing can be discarded.","commands.revert_obj.is_new":"This is a new page. To discard the creation of this page, please delete it.","commands.revert_obj.unmodified":"This page has not been modified. Therefore, nothing can be discarded.","commands.revert_obj.dialog.title":"Are you sure you want to discard the changes to this page?","commands.revert_obj.dialog.description":"Discarded changes cannot be restored.","commands.revert_obj.dialog.confirm":"Discard","commands.revert_resource.title":"Discard changes to resource","commands.revert_resource.is_new":"This is a new resource. To discard the creation of this resource, please delete it.","commands.revert_resource.dialog.title":"Are you sure you want to discard the changes to this resource?","commands.revert_resource.dialog.description":"Discarded changes cannot be restored.","commands.revert_resource.dialog.confirm":"Discard","commands.revert_widget.title":"Discard changes to widget","commands.revert_widget.is_new":"This is a new widget. To discard the creation of this widget, please delete it.","commands.revert_widget.is_not_modified":"This widget has not been modified. Therefore, nothing can be discarded.","commands.revert_widget.dialog.title":"Are you sure you want to discard the changes to this widget?","commands.revert_widget.dialog.description":"Discarded changes cannot be restored.","commands.revert_widget.dialog.confirm":"Discard","commands.restore_widget.title":"Restore widget","commands.restore_obj.title":"Restore page","commands.mark_resolved_obj.title":"Override concurrent changes to page","commands.mark_resolved_obj.dialog.confirm":"Override changes","commands.mark_resolved_obj.dialog.title":"Are you sure you want to override the changes made by others in the meantime?","commands.mark_resolved_obj.dialog.description":"This page was altered in a different working copy that has been published. Please confirm that you want to keep your changes and discard the ones concurrently made by others.","commands.duplicate_obj.title":"Duplicate page","commands.duplicate_obj.published_workspace":"Since this is the published content, nothing can be modified.","commands.duplicate_obj.has_children":"Pages with subpages cannot be duplicated yet.","commands.duplicate_widget.title":"Duplicate widget","commands.create_page.title":"Create page","commands.create_page.published_workspace":"Use a working copy for creating pages or editing existing content.","commands.add_subpage.child_list.no_path":"Subpages can only be added to pages that have a path.","commands.add_subpage.child_list.title":"Add page","commands.add_subpage.child_list.tooltip":'Add a page to "$1"',"commands.add_subpage.child_list.published_workspace":"Use a working copy to add subpages.","commands.add_subpage.current_page.no_path":"Subpages can only be added to pages that have a path. The current page doesn't have a path.","commands.add_subpage.current_page.title":"Add subpage","commands.add_subpage.current_page.tooltip":'Add a subpage to "$1"',"commands.add_subpage.current_page.published_workspace":"Use a working copy to add subpages.","commands.copy_obj_from_clipboard.child_list.no_path":"Subpages can only be added to pages that have a path.","commands.copy_obj_from_clipboard.child_list.paste_forbidden":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.copy_obj_from_clipboard.child_list.title":"Paste page here","commands.copy_obj_from_clipboard.child_list.tooltip":'Paste "$1" to "$2".',"commands.copy_obj_from_clipboard.child_list.published_workspace":"Use a working copy to add subpages.","commands.copy_obj_from_clipboard.child_list.obj_deleted":"The page you are trying to paste has meanwhile been deleted","commands.copy_obj_from_clipboard.child_list.obj_not_present":"There is no page on the clipboard","commands.copy_obj_from_clipboard.current_page.no_path":"Subpages can only be added to pages that have a path. The current page doesn't have a path.","commands.copy_obj_from_clipboard.current_page.paste_forbidden":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.copy_obj_from_clipboard.current_page.title":"Paste as subpage","commands.copy_obj_from_clipboard.current_page.tooltip":'Create a copy of "$1" and use it as a subpage of "$2".',"commands.copy_obj_from_clipboard.current_page.published_workspace":"Use a working copy to add subpages.","commands.copy_obj_from_clipboard.current_page.obj_not_present":"There is no page on the clipboard","commands.move_obj_from_clipboard.child_list.forbidden.invalid_class":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.move_obj_from_clipboard.child_list.forbidden.invalid_workspace":"A page can only be moved within its working copy.","commands.move_obj_from_clipboard.child_list.forbidden.no_path":"Subpages can only be added to pages that have a path.","commands.move_obj_from_clipboard.child_list.forbidden.obj_identity":"A page cannot be moved beneath itself.","commands.move_obj_from_clipboard.child_list.source_not_found":"The page to move could not be found in the current working copy.","commands.move_obj_from_clipboard.child_list.forbidden.obj_deleted":"The location to which you are attempting to move the page no longer exists.","commands.move_obj_from_clipboard.child_list.forbidden.obj_not_present":"There is no page on the clipboard","commands.move_obj_from_clipboard.child_list.title":"Move page here","commands.move_obj_from_clipboard.child_list.tooltip":'Move "$1" to "$2".',"commands.move_obj_from_clipboard.current_page.forbidden.invalid_class":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.move_obj_from_clipboard.current_page.forbidden.invalid_workspace":"A page can only be moved within its working copy.","commands.move_obj_from_clipboard.current_page.forbidden.no_path":"Subpages can only be added to pages that have a path. The current page doesn't have a path.","commands.move_obj_from_clipboard.current_page.forbidden.obj_identity":"A page cannot be moved beneath itself. The current page is on the clipboard.","commands.move_obj_from_clipboard.current_page.forbidden.obj_not_present":"There is no page on the clipboard","commands.move_obj_from_clipboard.current_page.source_not_found":"The page to move could not be found in the current working copy.","commands.move_obj_from_clipboard.current_page.title":"Move here as subpage","commands.move_obj_from_clipboard.current_page.tooltip":'Insert "$1" as a subpage of "$2".',"obj_sorting_dialog.title":"Sort items","commands.sort_items.title":"Sort items","commands.sort_items.tooltip":"Edit order of items underneath $1","commands.sort_items.auto_sort":"This navigation is sorted automatically.","commands.sort_items.too_less_children":"This navigation cannot be sorted because it consists of less than two items.","commands.choose_and_create_widget.title":"Insert widget","commands.choose_and_create_widget.disabled":"You cannot insert any widgets here.","commands.create_widget.title":"Insert $1","commands.widget_details.title":"Widget properties","commands.widget_details.has_no_properties":"This widget has no properties","commands.widget_details.dialog.title":'Properties of "$1"',"commands.save_widget_to_clipboard.title":"Copy widget","commands.copy_widget_from_clipboard.title":"Paste widget","commands.copy_widget_from_clipboard.paste_forbidden":"Due to its type, the widget cannot be moved or copied here. Only widgets of the following types can be inserted here: $1.","commands.delete_widget.title":"Delete widget","commands.delete_widget.dialog.title":"Are you sure you want to delete this widget?","commands.delete_widget.dialog.description.restorable":"The widget will be removed, but it can still be restored from the published content.","commands.delete_widget.dialog.description.restorable_unchanged":"The widget and the changes made to it will be removed, but the widget can still be restored from the published content.","commands.delete_widget.dialog.description.irreversible":"The widget and the changes made to it will be removed irreversibly.","commands.delete_widget.dialog.confirm":"Delete","topbar.show_menubar":"Show control panel","topbar.display_mode_selector.view_mode":"Preview","topbar.display_mode_selector.editing_mode":"Edit","topbar.display_mode_selector.diff_mode":"Changes","topbar.display_mode_selector.is_selected":"Currently selected display mode","topbar.saving_indicator.write_started":"Saving...","topbar.saving_indicator.write_ended":"Changes saved","topbar.warning.message":"Check JS console","topbar.warning.alert_message":"There are warnings. Please open the JavaScript console for details.","topbar.current_page_menu.title.is_new":"This page is new.","topbar.current_page_menu.title.is_edited":"This page has been modified.","topbar.current_page_menu.title.is_deleted":"This page has been deleted.","topbar.current_page_menu.title.is_restricted":"Page visibility is restricted.\n","topbar.publish_button.disabled.title.is_published":"You are viewing the published content","topbar.publish_button.disabled.title.no_changes":"Nothing to publish","topbar.publish_button.label":"Publish","workflows.publish_workspace.dialog.confirm":"Publish","workflows.publish_workspace.dialog.title":'Publish "$1"?',"workflows.publish_workspace.dialog.description":"You can undo this publishing action using the publishing history.","workflows.publish_workspace.error_dialog.title":"Working copy could not be published","workflows.publish_workspace.error_dialog.description":"Please check the changes list for details.","workflows.publish_workspace.error_dialog.confirm":"Open changes list","workflows.publish_workspace.alert.invalid_certificates":"The working copy could not be published because at least one user is currently modifying content in it.",ajax_error:"Communication with the CMS failed with error: $1","ajax_error.communication":"Communication with the CMS failed. Please check your network connectivity.","ajax_error.message_for_editor":"During your last action, a technical error occurred. Please try again later. If the problem persists, please contact a technician familiar with this website and provide the error details.",warn_before_unloading:"There are unsaved changes! Are you sure you want to close the page?","widgetlist_field_element.markup_error":"Scrivito found a widget with invalid markup. Please reload the page and try again. If the problem persists, please contact a technician familiar with this website.","test.two_arguments":"$1, $2","test.four_arguments":"$1, $2, $3, $4","image_editor_dialog.dialog_header.title":"Edit image","tour.intro.title":"Welcome to Scrivito!","tour.intro.description1":"Are you new to Scrivito? With just a few clicks, we’ll walk you through the basics so you will be up and running in no time!","tour.intro.description2":'You can start the tour again anytime by clicking "Start tour" in the page menu in the top right corner.',"tour.editMode.title":"Edit Mode","tour.editMode.description":"Select the Edit mode to begin editing the content on any page. Widget frames and menu icons will become visible when hovering over editable page content so you always know what you are working on.","tour.editText.title":"Edit Text","tour.editText.description":"Text contained in widgets can be edited after clicking on it directly – go ahead, give it a try! Select text to format it.","tour.addWidget.title":"Add a Widget","tour.addWidget.description":"Click the + icon at the top or bottom middle of a widget to add a new widget above or below it. This opens the widget browser from which you can choose the type of widget to add. If you want to get fancy, you can create your own widgets.","tour.widgetMenu.title":"Widget Menu","tour.widgetMenu.description":"Using the menu in the top right corner, you can edit a widget's properties (if it has any) or copy, duplicate or delete the widget. After copying a widget, it can be pasted to any page - not just the page you are working on. You can grab a widget by its menu icon and drag it to where you want it to be positioned.","tour.pageMenu.title":"Page Menu","tour.pageMenu.description":"This button opens the page menu. Here you can add pages or subpages, duplicate or copy the current page (unless you are on the homepage) and access the page properties. This menu also lets you discard changes, delete the page, access your account and our editor documentation.","tour.contentBrowser.title":"The Content Browser","tour.contentBrowser.description":"Next up, click the single folder button in the sidebar and have a look at the Content Browser, the tool for managing all your pages, assets like images, etc. The Content Browser helps keep all your stuff in one handy place.","tour.workspaces.title":"Working Copies","tour.workspaces.description":"After activating the Edit mode, you are in a working copy, either one created by Scrivito or by yourself. Using the document file button in the sidebar, you can not only switch between working copies but also create new ones or delete obsolete ones, or access the publishing history.","tour.publish.title":"Publishing","tour.publish.description":"This button is for publishing the currently selected working copy, optionally after reviewing the changes made to it. Try it out!","tour.outro.title":"Thank you!","tour.outro.description1":"We hope you found this short Scrivito tour useful. If you have any questions, we are here to help. ","tour.outro.description1.link_title":"Just reach out","tour.outro.description2":"Want to learn more? See our extensive ","tour.outro.description2.link_title":" Documentation","tour.outro.description3":" and ","tour.outro.description3.link_title":"Editor’s Guide","tour.outro.description4":"You can always restart this tour by selecting the option from the page menu.","tour.button.close":"Close","tour.button.end":"End the tour","tour.button.next":"Next","tour.button.prev":"Previous","tour.button.skip":"Not now","tour.button.start":"Start tour","tour.button.back":"Back to tour","STABLE_SDK.widget_marker.widget_is_new":"Widget is new","STABLE_SDK.widget_marker.widget_is_edited":"Widget has been modified","STABLE_SDK.widget_marker.widget_is_edited_and_dragged_here":"Widget has been modified and dragged here","STABLE_SDK.widget_marker.widget_is_edited_and_dragged_away":"Widget has been modified and dragged away from here","STABLE_SDK.widget_marker.widget_is_deleted":"Widget has been deleted","STABLE_SDK.widget_marker.widget_is_dragged_here":"Widget has been dragged here","STABLE_SDK.widget_marker.widget_is_dragged_away":"Widget has been dragged away from here"}),Ue.default.load("de",{confirm:"Bestätigen",cancel:"Abbrechen",save:"Speichern",welcome:"Willkommen",welcome_x:"Willkommen $1",accept:"Übernehmen",close:"Schließen",done:"Fertig",loading:"Lade...",current_page:"Aktuelle Seite",ok:"Ok","models.page.name":"Seite","models.resource.name":"Ressource","models.obj.name.plural":"Objekte","obj.tooltip.is_new":"Dieses Element ist neu.","obj.tooltip.is_new.has_conflicts":"Dieses Element ist neu in dieser Arbeitskopie.\nEs wurde zwischenzeitlich mit einer anderen Arbeitskopie angelegt und veröffentlicht.","obj.tooltip.is_new.has_conflicts.transfer_changes":"Dieses Element ist neu in dieser Arbeitskopie.\nEs kann nicht verschoben werden, da es zwischenzeitlich mit einer anderen Arbeitskopie angelegt und veröffentlicht wurde.","obj.tooltip.is_edited":"Dieses Element wurde geändert.","obj.tooltip.is_restricted":"Die Sichtbarkeit dieses Seite ist eingeschränkt.\n","obj.tooltip.is_edited.has_conflicts":"Dieses Element wurde in dieser Arbeitskopie geändert.\nEs wurde zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht.","obj.tooltip.is_edited.has_conflicts.transfer_changes":"Dieses Element wurde in dieser Arbeitskopie geändert.\nEs kann nicht verschoben werden, da es zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht wurde.","obj.tooltip.is_deleted":"Dieses Element wurde gelöscht.","obj.tooltip.is_deleted.has_conflicts":"Dieses Element wurde in dieser Arbeitskopie gelöscht.\nEs wurde zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht.","obj.tooltip.is_deleted.has_conflicts.transfer_changes":"Dieses Element wurde in dieser Arbeitskopie gelöscht.\nEs kann nicht verschoben werden, da es zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht wurde.","workspace.title_published":"Veröffentlichte Inhalte","workspace.empty_title":"<leerer Titel>","workspace.default_title":"Arbeitskopie von $1","workspace.publish_error.exceeds_obj_limit":"Diese Arbeitskopie kann nicht veröffentlicht werden, weil die maximale Anzahl der in Ihrem Tarif enthaltenen CMS-Objekte überschritten wurde.","revision.published_by":'Benutzer mit der ID "$1"',"workspace.title.published":"Veröffentlichte Inhalte","workspace.title.blank":"[Leerer Titel]","default_inspector_description_for_obj.group_general":"Allgemein","default_inspector_description_for_obj.group_backlinks":"Verlinkt von","default_inspector_description_for_obj.group_binary_metadata":"Metadaten","default_inspector_description_for_obj.group_system":"System","item_description.system.id.title":"Objekt-ID","item_description.system.path.title":"Pfad","item_description.system.obj_class.title":"Objekttyp","item_description.system.permalink.title":"Permalink","item_description.system.restriction.title":"Sichtbarkeit","item_description.system.restriction.description":"Wenn eingeschränkt, können nur angemeldete Benutzer diese Seite sehen","item_description.system.history.created_at":"Erstellt","item_description.system.history.created_by":"Erstellt von","item_description.system.history.last_changed":"Zuletzt geändert","item_description.system.history.last_changed_by":"Zuletzt geändert von","item_description.system.history.not_available":"Nicht verfügbar","item_description.system.history.user_description_not_available":'Benutzer mit der ID "$1"',"backlinks_item_component.no_backlinks_box.message":'Keine Objekte verlinken "$1".',"stringlist_item_component.read_stringlist.placeholder":"Die Liste enthält keine Elemente","stringlist_item_component.edit_stringlist.add_placeholder":"Element hinzufügen","binary_attribute_component.download":"Herunterladen","binary_attribute_component.drop_hint":"Lassen Sie oben eine Datei fallen, um den Inhalt zu ersetzen.","binary_attribute_component.edit":"Bearbeiten","binary_attribute_component.empty":"Leer","binary_attribute_component.rename":"Umbenennen","binary_attribute_component.rename_dialog.title":'"$1" umbenennen',"binary_attribute_component.rename_dialog.description":"Neuer Dateiname:","binary_attribute_component.rename_dialog.ok":"Umbenennen","binary_attribute_component.rename_dialog.invalid_filename":'Der Dateiname "$1" ist nicht zulässig: Der Dateiname darf nur die Buchstaben von A bis Z, Punkte, Trenn- und Unterstriche enthalten.',"binary_attribute_component.upload":"Datei auswählen, um diesen Inhalt zu ersetzen","binary_metadata_item_component.content_type":"Content type","binary_metadata_item_component.content_length":"Dateigröße","binary_metadata_item_component.filename":"Dateiname","binary_metadata_item_component.width":"Breite","binary_metadata_item_component.height":"Höhe","permalink_item_component.permalink.is_empty":"Nicht zugewiesen","restriction_editor.restriction.restricted":"Eingeschränkt","restriction_editor.restriction.public":"Öffentlich","widgetlist_attribute_component.is_empty":"Keine Widgets vorhanden.","link_item_component.link.title_placeholder":"Titel","link_item_component.link.url_placeholder":"URL","link_item_component.link.content_browser":"Content Browser öffnen","link_item_component.link.internal":"INTERN","link_item_component.link.new_tab":"Link in neuem Tab öffnen","link_item_component.link.delete":"Link löschen","link_item_component.link.seo_settings":"SEO-Einstellungen","link_item_component.link_rel_editor.title":"Wert des rel-Attributs","link_item_component.link_rel_editor.description1":"Suchmaschinen verwenden das ","link_item_component.link_rel_editor.description2":"-Attribut eines Links, um zu bestimmen, wie das verlinkte Dokument oder die Ressource gehandhabt werden soll.","linklist_item_component.linklist.undefined":"Keine Links gesetzt","number_attribute_component.clear_button.title":"Löschen","reference_attribute_component.clear_button.title":"Löschen","obj_restriction_dialog.title":'Die einzufügende Seite ist $1, das Ziel ("$2") ist jedoch $3',"obj_restriction_dialog.description_for_restricting":"Soll die eingefügte Seite öffentlich sichtbar bleiben oder ebenfalls eingeschränkt sein?","obj_restriction_dialog.description_for_unrestricting":"Soll die eingefügte Seite eingeschränkt bleiben oder ebenfalls öffentlich sichtbar sein?","obj_restriction_dialog.keep_restriction__auth":"Eingeschränkt lassen","obj_restriction_dialog.keep_restriction_null":"Öffentlich lassen","obj_restriction_dialog.restriction.null":"öffentlich","obj_restriction_dialog.restriction._auth":"eingeschränkt","obj_restriction_dialog.restrict_page":"Seite einschränken","obj_restriction_dialog.make_page_public":"Seite öffentlich machen","workflows.create_member.validation_error.email_taken":"Es gibt bereits einen Benutzer mit dieser E-Mail-Adresse","workflows.create_member.validation_error.email_wrong_format":"Die E-Mail-Adresse hat das falsche Format","workflows.create_member.precondition_error.member_limit_reached":"Die maximale Anzahl Benutzer wurde erreicht","workflows.update_member.precondition_error.member_not_found":"Die Rolle des Benutzers kann nicht aktualisiert werden, weil der Benutzer nicht mehr existiert","workflows.update_member.precondition_error.read_only":"Auf den Benutzer kann nur lesend zugegriffen werden","workflows.delete_member.confirmation_dialog.title":"Sind Sie sicher, dass Sie diesen Benutzer löschen möchten?","workflows.delete_member.confirmation_dialog.description":"Der Benutzer mit der E-Mail-Adresse $1 wird unwiderruflich gelöscht","workflows.delete_member.confirmation_dialog.confirm":"Löschen","workflows.delete_member.precondition_error.read_only":"Der Benutzer kann nicht gelöscht werden, weil auf ihn nur lesend zugegriffen werden kann","details_dialog.title":'Eigenschaften von "$1" anzeigen',"details_dialog.title.editing_mode":'Eigenschaften von "$1" bearbeiten',"details_dialog.close":"Schließen","workspace_settings_dialog.title":'Einstellungen von "$1"',"workspace_settings_dialog.input.title":"Titel","workspace_settings_dialog.input.owners":"Besitzer","workspace_settings_dialog.nothing_found":"Nichts gefunden","workspace_settings_dialog.searching":"Suche...","workspace_settings_dialog.too_short":"Benutzer suchen...","workspace_settings_dialog.cancel":"Abbrechen","workspace_settings_dialog.confirm":"Bestätigen","workspace_changes_dialog.dialog_header.title":'Änderungen von "$1"',"workspace_changes_dialog.dialog_header.title.is_transfer_mode":'Änderungen verschieben von "$1"',"workspace_changes_dialog.dialog_header.count_title.one":"($1 Objekt)","workspace_changes_dialog.dialog_header.count_title.many":"($1 Objekte)","workspace_changes_dialog.dialog_header.count_title.many.has_more":"($1+ Objekte)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.one":"($1 Objekt zum verschieben)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.many":"($1 Objekte zum verschieben)","workspace_changes_dialog.order_toggle.last_changed":"Nach Änderungsdatum sortieren","workspace_changes_dialog.order_toggle.last_changed.asc":"Älteste Änderung zuerst","workspace_changes_dialog.order_toggle.last_changed.desc":"Jüngste Änderung zuerst","workspace_changes_dialog.order_toggle.obj_class":"Nach Objekttyp sortieren","workspace_changes_dialog.order_toggle.obj_class.asc":"A bis Z (Typ)","workspace_changes_dialog.order_toggle.obj_class.desc":"Z bis A (Typ)","workspace_changes_dialog.order_toggle.modification":"Nach Art der Änderung sortieren","workspace_changes_dialog.order_toggle.modification.desc":"Neu, bearbeitet, gelöscht","workspace_changes_dialog.order_toggle.modification.asc":"Gelöscht, bearbeitet, neu","workspace_changes_dialog.order_toggle.is_disabled":"Aktuell ausgewählte Sortierung","workspace_changes_dialog.no_changes_notice":"In dieser Arbeitskopie wurde nichts geändert.","workspace_changes_dialog.change_item.last_changed":"Letzte Änderung","workspace_changes_dialog.change_item.last_changed_by":"Zuletzt geändert von","workspace_changes_dialog.change_item.not_available":"Nicht verfügbar","workspace_changes_dialog.change_item.publish_permission":"Veröffentlichung","workspace_changes_dialog.publish_permission.is_permitted":"ist erlaubt","workspace_changes_dialog.publish_permission.is_forbidden":"ist nicht erlaubt","workspace_changes_dialog.enable_transfer_mode_button.title":"Änderungen verschieben","workspace_changes_dialog.transfer_changes_button.title":"Ziel-Arbeitskopie auswählen","workspace_changes_dialog.disable_transfer_mode_button.title.cancel":"Abbrechen","workspace_changes_dialog.disable_transfer_mode_button.title.done":"Fertig","workspace_changes_dialog.close_dialog_button.title":"Schließen","workspace_changes_dialog.publish_button.title":"Veröffentlichen","workspace_changes_dialog.publish_button.is_forbidden":"Die Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht veröffentlicht werden.","workspace_publisher.exceeds_obj_limit":"Diese Arbeitskopie kann nicht veröffentlicht werden, weil die maximale Anzahl der in Ihrem Tarif enthaltenen CMS-Objekte überschritten wurde.","menu_item.spinner.loading":"Laden...","choose_obj_class_dialog.add_child_page.title":"Seitenvorlage auswählen","choose_obj_class_dialog.create_page.title":"Seitenvorlage auswählen","choose_obj_class_dialog.create_widget.title":"Widget auswählen","choose_obj_class_dialog.last_used":"Zuletzt verwendet","choose_obj_class_dialog.popular":"Oft verwendet","choose_obj_class_dialog.all":"Alle","editable_ws_dialog.view_mode.title.select_or_create":"Arbeitskopie wählen","editable_ws_dialog.view_mode.title.select":"Arbeitskopie auswählen","editable_ws_dialog.view_mode.title.create":"Arbeitskopie anlegen","editable_ws_dialog.view_mode.title.forbidden":"Keine Arbeitskopie verfügbar","editable_ws_dialog.view_mode.description.select_or_create":"Wählen Sie eine Arbeitskopie aus oder legen Sie eine neue an, um Inhalte zu ändern. Veröffentlichen Sie die Arbeitskopie nach Abschluss der Bearbeitung, oder lassen Sie sie veröffentlichen.","editable_ws_dialog.view_mode.description.select":"Wählen Sie eine Arbeitskopie aus, um Inhalte zu ändern. Veröffentlichen Sie die Arbeitskopie nach Abschluss der Bearbeitung, oder lassen Sie sie veröffentlichen.","editable_ws_dialog.view_mode.description.create":"Legen Sie eine neue Arbeitskopie an, um Inhalte zu ändern. Veröffentlichen Sie die Arbeitskopie nach Abschluss der Bearbeitung, oder lassen Sie sie veröffentlichen.","editable_ws_dialog.view_mode.description.forbidden":"Es gibt keine Arbeitskopie, in der Sie Inhalte ändern könnten. Auch wurde es Ihnen nicht ermöglicht, Arbeitskopien anzulegen.","editable_ws_dialog.transfer_changes.title.select_or_create":"Ziel-Arbeitskopie auswählen","editable_ws_dialog.transfer_changes.title.select":"Ziel-Arbeitskopie auswählen","editable_ws_dialog.transfer_changes.title.create":"Ziel-Arbeitskopie anlegen","editable_ws_dialog.transfer_changes.title.forbidden":"Keine Arbeitskopie verfügbar","editable_ws_dialog.transfer_changes.description.select_or_create":"Die Änderungen können in eine bestehende oder in eine neue Arbeitskopie verschoben werden.","editable_ws_dialog.transfer_changes.description.select":"Die Änderungen werden in die ausgewählte Arbeitskopie verschoben.","editable_ws_dialog.transfer_changes.description.create":"Bitte erstellen Sie die Ziel-Arbeitskopie","editable_ws_dialog.transfer_changes.description.forbidden":"Sie sind nicht dazu berechtigt, Änderungen in eine bestehende Arbeitskopie zu verschieben.","editable_ws_dialog.choose_existing":"Wählen Sie eine bestehende Arbeitskopie aus:","editable_ws_dialog.create_new":"Legen Sie eine neue Arbeitskopie an:","editable_ws_dialog.or_create_new":"Oder legen Sie eine neue an:","editable_ws_dialog.create_new_playholder":"Titel der neuen Arbeitskopie","editable_ws_dialog.select":"Auswählen","loader_error.title":"Beim Laden der Daten ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut. Falls das Problem bestehen bleibt, wenden Sie sich bitte an Ihren technischen Ansprechpartner für diese Website.","publish_history_dialog.close":"Schließen","publish_history_dialog.info":"Wählen Sie aus der Liste eine Arbeitskopie, um einen archivierten Stand Ihrer Website zu sehen. Lernen Sie mehr über den ","publish_history_dialog.link":"Veröffentlichungsverlauf","publish_history_dialog.revision_list.changes_count":"Geändert","publish_history_dialog.revision_list.changes_count.many":"$1 Objekte","publish_history_dialog.revision_list.changes_count.not_available":"Nicht verfügbar","publish_history_dialog.revision_list.changes_count.one":"1 Objekt","publish_history_dialog.revision_list.is_limited":"Die Zahl der maximal angezeigten Verlaufseinträge ($1) hängt von Ihrem Tarif ab.","publish_history_dialog.revision_list.not_restorable":"Dies sind die aktuell veröffentlichten Inhalte.","publish_history_dialog.revision_list.published_at":"Veröffentlicht ","publish_history_dialog.title":"Veröffentlichungsverlauf","sidebar.browse_content_button.hint":"Content Browser öffnen","sidebar.browse_content_button.hint.is_disabled":"Der Content Browser ist nicht verfügbar, während gelöschte Inhalte angezeigt werden.","sidebar.details_button.hint":"Seiteneigenschaften anzeigen","sidebar.details_button.hint.active":"Seiteneigenschaften","sidebar.hierarchy_button.hint":"Hierarchie anzeigen","sidebar.hierarchy_button.hint.active":"Hierarchie","sidebar.hierarchy_panel.show_details_icon.hide":"Details verstecken","sidebar.hierarchy_panel.show_details_icon.open":"Details anzeigen","sidebar.workspaces_button.hint":"Arbeitskopien anzeigen","sidebar.workspaces_button.hint.active":"Arbeitskopien","sidebar.devices_button.hint":"Seite in verschiedenen Größen betrachten","sidebar.devices_button.hint.active":"Seite in verschiedenen Größen","sidebar.hide_controls_button.hint":"Bedienleiste verstecken","sidebar.notifications_button.hint":"Benachrichtigungen anzeigen","sidebar.notifications_button.hint.active":"Benachrichtigungen","sidebar.workspace_list.workspace_item.hint.is_disabled":"Diese Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht ausgewählt werden","sidebar.workspace_list.workspace_item.hint.is_selectable":"Diese Arbeitskopie auswählen","sidebar.workspace_list.workspace_item.hint.is_published":"Veröffentlichte Inhalte auswählen","sidebar.workspace_list.workspace_item.hint":"Ausgewählte Arbeitskopie","sidebar.workspace_list.workspace_item.delete":"Diese Arbeitskopie löschen","sidebar.hierarchy_panel.hierarchy":"Hierarchie","sidebar.workspaces_panel.general_workspaces_group.title":"Arbeitskopien","sidebar.workspaces_panel.current_workspace_group.title":"Diese Arbeitskopie","sidebar.workspaces_panel.my_workspaces_group.title":"Meine Arbeitskopien","sidebar.workspaces_panel.other_workspaces_group.title":"Andere Arbeitskopien","sidebar.workspaces_panel.create_workspace_button.title":"Neu","sidebar.workspaces_panel.create_workspace_button.hint":"Eine Arbeitskopie anlegen","sidebar.workspaces_panel.create_workspace_button.is_disabled":"Eine Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht angelegt werden.","sidebar.workspaces_panel.publish_history_button.title":"Verlauf","sidebar.workspaces_panel.publish_history_button.hint":"Veröffentlichungsverlauf anzeigen","sidebar.workspaces_panel.publish_history_button.is_disabled":"Der Veröffentlichungsverlauf kann aufgrund fehlender Benutzerrechte nicht angezeigt werden.","sidebar.workspaces_panel.changes_button.title":"Änderungen","sidebar.workspaces_panel.changes_button.hint":"Änderungen in dieser Arbeitskopie anzeigen","sidebar.workspaces_panel.changes_button.is_forbidden":"Die Änderungen in dieser Arbeitskopie können aufgrund fehlender Benutzerrechte nicht angezeigt werden.","sidebar.workspaces_panel.publish_button.title":"Veröffentlichen","sidebar.workspaces_panel.publish_button.hint":"Diese Arbeitskopie veröffentlichten","sidebar.workspaces_panel.publish_button.is_forbidden":"Die Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht veröffentlicht werden.","sidebar.workspaces_panel.rebase_button.title":"Aktualisieren","sidebar.workspaces_panel.rebase_button.hint":"Diese Arbeitskopie aktualisieren","sidebar.workspaces_panel.rebase_button.is_forbidden":"Die Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht aktualisiert werden.","sidebar.workspaces_panel.settings_button.title":"Einstellungen","sidebar.workspaces_panel.settings_button.hint":"Einstellungen dieser Arbeitskopie bearbeiten","sidebar.workspaces_panel.settings_button.is_forbidden":"Die Einstellungen der Arbeitskopie können aufgrund fehlender Benutzerrechte nicht bearbeitet werden.","sidebar.notifications_panel.publish_restrictions_group.title":"Veröffentlichung nicht möglich","sidebar.notifications_panel.potential_conflicts_group.title":"Potenzieller Konflikt","sidebar.notifications_panel.potential_conflicts_group.description":"Änderungen an dieser Seite führen beim Veröffentlichen zu einem Konflikt. Die Seite wurde bereits in folgenden Arbeitskopien geändert:","sidebar.notifications_panel.conflict_group.title":"Konflikt","sidebar.notifications_panel.conflict_group.description1":"Eine andere Version dieser Seite wurde zwischenzeitlich veröffentlicht. ","sidebar.notifications_panel.conflict_group.link":"Lösen Sie den Konflikt","sidebar.notifications_panel.conflict_group.description2":", um diese Arbeitskopie veröffentlichen zu können.","sidebar.notifications_panel.no_notifications":"Derzeit keine Benachrichtigungen.","sidebar.devices_panel.title":"Vorschaugrößen","sidebar.devices_panel.device.desktop":"Desktop","sidebar.devices_panel.device.laptop":"Laptop","sidebar.devices_panel.device.mobile":"Mobiltelefon im Hochformat","sidebar.devices_panel.device.tablet":"Tablet im Hochformat","resource_dialog.commands.mark_resolved_obj.dialog.description":"Diese Ressource wurde in einer anderen, inzwischen veröffentlichten Arbeitskopie geändert. Bitte bestätigen Sie, dass Ihre Änderungen erhalten und die parallel durchgeführten Änderungen verworfen werden.","resource_dialog.commands.mark_resolved_obj.title":"Parallele Änderungen an der Ressource überschreiben","resource_dialog.commands.restore_obj.title":"Ressource wiederherstellen","resource_dialog.title":'Eigenschaften der Ressource "$1"',"menu_bar.create":"Anlegen","saving_indicator_item.saving":"Wird gespeichert...","saving_indicator_item.saved":"Änderungen gespeichert","inplace_marker.overlapping":"Zwei oder mehrere Menü-Handles überschneiden sich. Bitte passen Sie Ihr CSS an. Die folgenden Menü-Handles überschneiden sich:","widget_marker.widget_is_new":"Widget ist neu","widget_marker.widget_is_edited":"Widget wurde geändert","widget_marker.widget_is_edited_and_dragged_here":"Widget wurde geändert und hierher gezogen","widget_marker.widget_is_edited_and_dragged_away":"Widget wurde geändert und von hier weggezogen","widget_marker.widget_is_deleted":"Widget wurde gelöscht","widget_marker.widget_is_dragged_here":"Widget wurde hierher gezogen","widget_marker.widget_is_dragged_away":"Widget wurde von hier weggezogen","child_list_menu.description":"Elemente von $1","transfer_errors_dialog.title":"Fehler beim Verschieben von Änderungen","transfer_errors_dialog.modified":"Einige der Änderungen konnten nicht verschoben werden, weil die betreffenden Inhalte auch in der Ziel-Arbeitskopie modifiziert wurden.","transfer_errors_dialog.conflicting":"Einige der Änderungen wurden nicht verschoben, weil die betreffenden Inhalte in der Ziel-Arbeitskopie nicht aktuell sind. Die Änderungen auf diese Inhalte anzuwenden, würde zu einem Konflikt führen. Bitte stellen Sie sicher, dass beide Arbeitskopien aktualisiert wurden und konfliktfrei sind.","current_page_link_dialog.title":"Seite teilen","current_page_link_dialog.description":"Mit dieser URL können Sie die aktuelle Seite als Teil dieser Arbeitskopie teilen. Die Empfänger müssen angemeldet sein und Zugriff auf die Arbeitskopie haben.","error_dialog.toggle_details":"Technische Details","error_dialog.error_details":"Technische Details","commands.open_obj_in_content_browser.title":"Im Content Browser öffnen","commands.open_obj_in_new_ui_window.title":"In einem neuen Fenster öffnen","commands.open_page_link_dialog.title":"Seite teilen","commands.open_page_link_dialog.is_deleted":"Eine gelöschte Seite kann nicht geteilt werden, weil sie in der Vorschau nicht zugänglich ist","commands.create_workspace.dialog.title":"Arbeitskopie anlegen","commands.create_workspace.dialog.description":"Bitte geben Sie den Titel der neuen Arbeitskopie ein.","commands.create_workspace.dialog.placeholder":"Neuer Titel","commands.create_workspace.dialog.accept":"Anlegen","commands.create_workspace.dialog.workspace_limit_exceeded":"Scrivito kann derzeit keine Arbeitskopie für Sie anlegen, weil die im Plan für dieses CMS enthaltene Anzahl erreicht wurde.","commands.open_dashboard.title":"Dashboard öffnen","commands.open_user_guide.title":"Hilfe öffnen","commands.enable_tour.title":"Tour beginnen","commands.enable_tour.is_disabled":"Die Tour ist gerade aktiv","commands.rebase_workspace.has_conflicts.title":"Geänderte Inhalte wurden zwischenzeitlich veröffentlicht","commands.rebase_workspace.has_conflicts.description":"Ihre Arbeitskopie konnte nicht vollständig aktualisiert werden. Einige Inhalte wurden auch in einer anderen Arbeitskopie geändert, die inzwischen veröffentlicht wurde. Bitte entnehmen Sie die Details der Liste der Änderungen.","commands.rebase_workspace.open_changes_dialog":"Änderungen anzeigen","workflows.delete_workspace.dialog.title":'Wirklich "$1" löschen?',"workflows.delete_workspace.dialog.description":"Eine gelöschte Arbeitskopie kann nicht wiederhergestellt werden.","workflows.delete_workspace.dialog.confirm":"Löschen","workflows.change_permalink.dialog.title":'Permalink von "$1" ändern',"workflows.change_permalink.dialog.placeholder":"Bitte geben Sie einen neuen Permalink ein.","workflows.change_permalink.dialog.change":"Ändern","workflows.change_permalink.info.is_taken":'Der Permalink "$1" wird bereits verwendet.',"workflows.change_permalink.info.is_invalid":'Der Permalink "$1" ist nicht zulässig: Ein Permalink darf nur die Buchstaben von A bis Z, Punkte, Schrägstriche, Trenn- und Unterstriche enthalten.',"workflows.change_permalink.info.is_scrivito":'Der Permalink "$1" ist nicht zulässig: Ein Permalink darf nicht "scrivito" lauten und darf nicht mit "scrivito/" anfangen.',"commands.restore_workspace.dialog.confirm":"Anlegen","commands.restore_workspace.dialog.description":'Dies legt eine Arbeitskopie an, die den archivierten Stand Ihrer Website enthält, nachdem "$1" veröffentlicht wurde.',"commands.restore_workspace.dialog.title":'"$1" anlegen?',"commands.restore_workspace.workspace_title":"Archiviert: $1","commands.open_page_details.title.editing_mode":"Seiteneigenschaften bearbeiten","commands.open_page_details.title":"Seiteneigenschaften anzeigen","commands.open_page_details.dialog.title.editing_mode":'Eigenschaften von "$1" bearbeiten',"commands.open_page_details.dialog.title":'Eigenschaften von "$1" anzeigen',"commands.open_page_details.is_disabled":"Diese Seite hat keine Eigenschaften","commands.save_obj_to_clipboard.title":"Seite kopieren oder verschieben","commands.save_obj_to_clipboard.has_children":"Seiten mit Unterseiten können noch nicht verschoben oder kopiert werden.","commands.save_obj_to_clipboard.is_deleted":"Gelöschte Seiten können nocht nicht verschoben oder kopiert werden.","confirm_delete_dialog.cancel":"Abbrechen","confirm_delete_dialog.confirm":"Löschen","confirm_delete_dialog.confirm.has_backlinks":"Trotzdem löschen","confirm_delete_dialog.is_edited":"Diese $1 kann bei Bedarf später wiederhergestellt werden, jedoch ohne die Änderungen, die in der aktuellen Arbeitskopie an ihr vorgenommen wurden.","confirm_delete_dialog.is_new":"Sie sind dabei, eine neue $1 dieser Arbeitskopie zu löschen. Dies kann nicht rückgängig gemacht werden. Bei Bedarf können Sie die $1 jedoch erneut erstellen und verlinken.","confirm_delete_dialog.one_obj_to_delete.many_backlinks":"$1 Objekte verlinken dieses $2:","confirm_delete_dialog.many_objs_to_delete.many_backlinks":"$1 Objekte verlinken diese $2:","confirm_delete_dialog.not_modified":"Diese $1 kann bei Bedarf später wiederhergestellt werden.","confirm_delete_dialog.one_obj_to_delete.one_backlink":"Ein Objekt verlinkt dieses $1:","confirm_delete_dialog.many_objs_to_delete.one_backlink":"Ein Objekt verlinkt diese $1:","confirm_delete_dialog.title":"Sind Sie sicher, dass Sie diese $1 löschen möchten?","confirm_delete_dialog.title.many_subjects":"Sind Sie sicher, dass Sie diese $1 löschen möchten?","commands.delete_obj.has_children":"Seiten mit Unterseiten können noch nicht gelöscht werden.","commands.delete_obj.published_workspace":"Die veröffentlichten Inhalte können nicht direkt geändert werden.","commands.delete_obj.title":"$1 löschen","commands.revert_obj.title":"Änderungen an Seite verwerfen","commands.revert_obj.published_workspace":"Die veröffentlichten Inhalte können nicht direkt geändert werden. Daher gibt es nichts zu verwerfen.","commands.revert_obj.is_new":"Dies ist eine neue Seite. Um die Erstellung dieser Seite rückgängig zu machen, löschen Sie sie bitte.","commands.revert_obj.unmodified":"Diese Seite wurde nicht geändert. Daher gibt es nichts zu verwerfen.","commands.revert_obj.dialog.title":"Wirklich Änderungen an dieser Seite verwerfen?","commands.revert_obj.dialog.description":"Verworfene Änderungen können nicht wiederhergestellt werden.","commands.revert_obj.dialog.confirm":"Verwerfen","commands.revert_resource.title":"Änderungen an Ressource verwerfen","commands.revert_resource.is_new":"Dies ist eine neue Ressource. Um die Erstellung dieser Ressource rückgängig zu machen, löschen Sie sie bitte.","commands.revert_resource.dialog.title":"Wirklich Änderungen an dieser Ressource verwerfen?","commands.revert_resource.dialog.description":"Verworfene Änderungen können nicht wiederhergestellt werden.","commands.revert_resource.dialog.confirm":"Verwerfen","commands.revert_widget.title":"Änderungen am Widget verwerfen","commands.revert_widget.is_new":"Dies ist ein neues Widget. Um die Erstellung dieses Widgets rückgängig zu machen, löschen Sie es bitte.","commands.revert_widget.is_not_modified":"Dieses Widget wurde nicht geändert. Daher gibt es nichts zu verwerfen.","commands.revert_widget.dialog.title":"Wirklich Änderungen an diesem Widget verwerfen?","commands.revert_widget.dialog.description":"Verworfene Änderungen können nicht wiederhergestellt werden.","commands.revert_widget.dialog.confirm":"Verwerfen","commands.restore_widget.title":"Widget wiederherstellen","commands.restore_obj.title":"Seite wiederherstellen","commands.mark_resolved_obj.title":"Parallele Änderungen an der Seite überschreiben","commands.mark_resolved_obj.dialog.title":"Wirklich parallele Änderungen an der Seite überschreiben?","commands.mark_resolved_obj.dialog.description":"Diese Seite wurde in einer anderen, inzwischen veröffentlichten Arbeitskopie geändert. Bitte bestätigen Sie, dass Ihre Änderungen erhalten und die parallel durchgeführten Änderungen verworfen werden.","commands.mark_resolved_obj.dialog.confirm":"Änderungen überschreiben","commands.duplicate_obj.title":"Seite duplizieren","commands.duplicate_obj.published_workspace":"Die veröffentlichten Inhalte können nicht direkt geändert werden.","commands.duplicate_obj.has_children":"Seiten mit Unterseiten können noch nicht dupliziert werden.","commands.duplicate_widget.title":"Widget duplizieren","commands.create_page.title":"Neue Seite","commands.create_page.published_workspace":"Verwenden Sie eine Arbeitskopie, um Seiten anzulegen oder bestehende Inhalte zu ändern.","commands.add_subpage.child_list.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben.","commands.add_subpage.child_list.title":"Seite hinzufügen","commands.add_subpage.child_list.tooltip":'Eine Seite zu "$1" hinzufügen',"commands.add_subpage.child_list.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.add_subpage.current_page.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben. Die aktuelle Seite hat keinen Pfad.","commands.add_subpage.current_page.title":"Unterseite hinzufügen","commands.add_subpage.current_page.tooltip":'Eine Unterseite zu "$1" hinzufügen',"commands.add_subpage.current_page.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.copy_obj_from_clipboard.child_list.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben.","commands.copy_obj_from_clipboard.child_list.paste_forbidden":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder kopiert werden: $1","commands.copy_obj_from_clipboard.child_list.title":"Seite hier einfügen","commands.copy_obj_from_clipboard.child_list.tooltip":'Seite "$1" unterhalb von "$2" einfügen.',"commands.copy_obj_from_clipboard.child_list.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.copy_obj_from_clipboard.child_list.obj_deleted":"Die Seite, die Sie einfügen möchten, wurde zwischenzeitlich gelöscht.","commands.copy_obj_from_clipboard.child_list.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.copy_obj_from_clipboard.current_page.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben. Die aktuelle Seite hat keinen Pfad.","commands.copy_obj_from_clipboard.current_page.paste_forbidden":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder eingefügt werden: $1","commands.copy_obj_from_clipboard.current_page.title":"Als Unterseite einfügen","commands.copy_obj_from_clipboard.current_page.tooltip":'Erstelle eine Kopie von "$1" und verwende sie als eine Unterseite von "$2".',"commands.copy_obj_from_clipboard.current_page.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.copy_obj_from_clipboard.current_page.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.move_obj_from_clipboard.child_list.forbidden.invalid_class":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder kopiert werden: $1","commands.move_obj_from_clipboard.child_list.forbidden.invalid_workspace":"Eine Seite kann nur innerhalb ihrer Arbeitskopie verschoben werden.","commands.move_obj_from_clipboard.child_list.forbidden.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben.","commands.move_obj_from_clipboard.child_list.forbidden.obj_identity":"Eine Seite kann nicht unter sich selbst verschoben werden.","commands.move_obj_from_clipboard.child_list.forbidden.obj_deleted":"Der Ort, an den Sie die Seite verschieben möchten, existiert nicht mehr.","commands.move_obj_from_clipboard.child_list.forbidden.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.move_obj_from_clipboard.child_list.source_not_found":"Die zu verschiebende Seite konnte in der aktuellen Arbeitskopie nicht gefunden werden.","commands.move_obj_from_clipboard.child_list.title":"Seite hierher verschieben","commands.move_obj_from_clipboard.child_list.tooltip":'Seite "$1" unterhalb von "$2" verschieben.',"commands.move_obj_from_clipboard.current_page.forbidden.invalid_class":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder hier eingefügt werden: $1","commands.move_obj_from_clipboard.current_page.forbidden.invalid_workspace":"Eine Seite kann nur innerhalb ihrer Arbeitskopie verschoben werden.","commands.move_obj_from_clipboard.current_page.forbidden.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben. Die aktuelle Seite hat keinen Pfad.","commands.move_obj_from_clipboard.current_page.forbidden.obj_identity":"Eine Seite kann nicht unter sich selbst verschoben werden. Die aktuelle Seite liegt in der Zwischenablage.","commands.move_obj_from_clipboard.current_page.forbidden.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.move_obj_from_clipboard.current_page.source_not_found":"Die zu verschiebende Seite konnte in der aktuellen Arbeitskopie nicht gefunden werden.","commands.move_obj_from_clipboard.current_page.title":"Als Unterseite hierher verschieben","commands.move_obj_from_clipboard.current_page.tooltip":'Füge "$1" als Unterseite von "$2" ein.',"obj_sorting_dialog.title":"Elemente sortieren","commands.sort_items.title":"Elemente sortieren","commands.sort_items.tooltip":"Reihenfolge der Elemente unterhalb $1 bearbeiten","commands.sort_items.auto_sort":"Diese Navigation wird automatisch sortiert.","commands.sort_items.too_less_children":"Die Navigation kann nicht sortiert werden, weil sie weniger als zwei Elemente enthält.","commands.choose_and_create_widget.title":"Widget hinzufügen","commands.choose_and_create_widget.disabled":"Sie können hier keine Widgets einfügen.","commands.create_widget.title":"$1 einfügen","commands.widget_details.title":"Widget-Eigenschaften","commands.widget_details.has_no_properties":"Dieses Widget hat keine Eigenschaften","commands.widget_details.dialog.title":'Eigenschaften von "$1"',"commands.save_widget_to_clipboard.title":"Widget kopieren","commands.copy_widget_from_clipboard.title":"Widget einfügen","commands.copy_widget_from_clipboard.paste_forbidden":"Aufgrund seines Typs kann das Widget hier nicht eingefügt werden. Nur Widgets der folgenden Typen können hierher verschoben oder kopiert werden: $1.","commands.delete_widget.title":"Widget löschen","commands.delete_widget.dialog.title":"Wirklich dieses Widget löschen?","commands.delete_widget.dialog.description.restorable":"Das Widget wird gelöscht, es kann jedoch aus den veröffentlichten Inhalten wiederherstellt werden.","commands.delete_widget.dialog.description.restorable_unchanged":"Das Widget wird mit seinen Änderungen gelöscht, es kann jedoch aus den veröffentlichten Inhalten wiederherstellt werden.","commands.delete_widget.dialog.description.irreversible":"Das Widget wird unwiederbringlich gelöscht.","commands.delete_widget.dialog.confirm":"Löschen","topbar.show_menubar":"Bedienleiste einblenden","topbar.display_mode_selector.view_mode":"Vorschau","topbar.display_mode_selector.editing_mode":"Bearbeiten","topbar.display_mode_selector.diff_mode":"Vergleichen","topbar.display_mode_selector.is_selected":"Aktuell ausgewählter Anzeigemodus","topbar.saving_indicator.write_started":"Wird gespeichert...","topbar.saving_indicator.write_ended":"Änderungen gespeichert","topbar.warning.message":"Bitte die JS-Konsole prüfen","topbar.warning.alert_message":"Es gab Warnungen. Für Details, schauen Sie bitte in die JavaScript-Konsole.","topbar.current_page_menu.title.is_new":"Diese Seite ist neu.","topbar.current_page_menu.title.is_edited":"Diese Seite wurde geändert.","topbar.current_page_menu.title.is_deleted":"Diese Seite wurde gelöscht.","topbar.current_page_menu.title.is_restricted":"Die Sichtbarkeit dieser Seite ist eingeschränkt.\n","topbar.publish_button.disabled.title.is_published":"Sie sehen die veröffentlichten Inhalte","topbar.publish_button.disabled.title.no_changes":"Keine Änderungen zu veröffentlichen","topbar.publish_button.label":"Veröffentlichen","workflows.publish_workspace.dialog.confirm":"Veröffentlichen","workflows.publish_workspace.dialog.title":'"$1" veröffentlichen?',"workflows.publish_workspace.dialog.description":"Sie können diese Veröffentlichung mit Hilfe des Veröffentlichungsverlaufs rückgängig machen.","workflows.publish_workspace.error_dialog.title":"Arbeitskopie konnte nicht veröffentlicht werden","workflows.publish_workspace.error_dialog.description":"Bitte entnehmen Sie die Details der Liste der Änderungen.","workflows.publish_workspace.error_dialog.confirm":"Liste der Änderungen","workflows.publish_workspace.alert.invalid_certificates":"Die Arbeitskopie konnte nicht veröffentlicht werden, weil mindestens ein Benutzer gerade Inhalte darin ändert.",ajax_error:"Die Kommunikation mit dem CMS ist aufgrund eines Fehlers fehlgeschlagen: $1","ajax_error.communication":"Die Kommunikation mit dem CMS ist fehlgeschlagen. Bitte überprüfen Sie Ihre Netzwerkverbindung.","ajax_error.message_for_editor":"Bei Ihrer letzten Aktion ist ein technischer Fehler aufgetreten. Bitte versuchen Sie es später noch einmal. Falls das Problem bestehen bleibt, wenden Sie sich bitte an Ihren technischen Ansprechpartner für diese Website und geben Sie bitte die technischen Details an.",warn_before_unloading:"Es gibt nicht gespeicherte Änderungen! Möchten Sie das Browserfenster trotzdem schließen?","widgetlist_field_element.markup_error":"Scrivito hat festgestellt, dass eines der Widgets invalides Markup aufweist. Bitte laden Sie die Seite neu und versuchen Sie es noch einmal. Falls das Problem bestehen bleibt, wenden Sie sich bitte an Ihren technischen Ansprechpartner für diese Website.","test.two_arguments":"$1, $2","test.four_arguments":"$1, $2, $3, $4","image_editor_dialog.dialog_header.title":"Bild bearbeiten","tour.intro.title":"Willkommen zu Scrivito!","tour.intro.description1":"Sind Sie ein neuer Scrivito-Nutzer? Dann nehmen Sie sich doch ein paar Augenblicke Zeit für unsere kurze Tour zu den Grundlagen, damit Sie schnell loslegen können!","tour.intro.description2":"Sie können die Tour jederzeit erneut starten, indem Sie “Tour beginnen” aus dem Seitenmenü rechts oben wählen.","tour.editMode.title":"Bearbeitungsmodus","tour.editMode.description":"Aktivieren Sie den Bearbeitungsmodus, um die Inhalte auf beliebigen Seiten ändern zu können. Die Widget-Rahmen und Menü-Icons werden sichtbar, wenn sich Ihr Mauszeiger darüber befindet. So erkennen Sie stets, woran Sie arbeiten.","tour.editText.title":"Text bearbeiten","tour.editText.description":"Klicken Sie in den Text in einem Widget, um ihn direkt bearbeiten zu können – probieren Sie es aus! Markieren Sie Text, um ihn zu formatieren.","tour.addWidget.title":"Widget hinzufügen","tour.addWidget.description":'Klicken Sie auf das "+"-Icon in der Mitte des oberen oder unteren Randes eines Widgets, um ein weiteres Widget darüber bzw. darunter einzufügen. Dadurch öffnet sich der Widget-Browser, mit dem Sie den Typ des einzufügenden Widgets auswählen können. Es gibt bereits viele Widget-Typen – zusätzlich können Sie selber welche entwickeln.',"tour.widgetMenu.title":"Widget-Menü","tour.widgetMenu.description":"Über das Menü rechts oben können Sie die Eigenschaften eines Widgets bearbeiten (sofern es welche hat) oder das Widget kopieren, duplizieren oder löschen. Nachdem Sie ein Widget kopiert haben, können Sie es auf jeder beliebigen Seite einfügen, nicht nur auf der Seite, an der Sie gerade arbeiten. Sie können ein Widget an seinem Menü-Icon greifen und zu der Stelle ziehen, an der es positioniert sein soll.","tour.pageMenu.title":"Seitenmenü","tour.pageMenu.description":"Der Button in der rechten oberen Ecke öffnet das Seitenmenü. Hier können Sie Seiten und Unterseiten anlegen, die aktuelle Seite kopieren oder duplizieren (außer auf der Homepage) und auf die Seiteneigenschaften zugreifen. Dieses Menü enthält auch Punkte, mit denen sich Änderungen verwerfen, die Seite löschen sowie Ihr Account und die Anleitung für Redakteure (in englischer Sprache) öffnen lassen.","tour.contentBrowser.title":"Der Content Browser","tour.contentBrowser.description":"Klicken Sie als Nächstes doch einmal auf den Seitenleisten-Button mit dem einzelnen Ordner und werfen Sie einen Blick auf den Content Browser! Mit diesem Tool lässt sich der gesamte Bestand an Seiten, Bildern usw. einer Site überblicken und verwalten.","tour.workspaces.title":"Arbeitskopien","tour.workspaces.description":"Sobald Sie den Bearbeitungsmodus aktivieren, sind Sie in einer von Scrivito oder von Ihnen selbst angelegten Arbeitskopie. Über den Aktenordner-Button in der Seitenleiste können Sie nicht nur zwischen Arbeitskopien wechseln, sondern auch neue anlegen, nicht benötigte löschen sowie den Veröffentlichungsverlauf nutzen.","tour.publish.title":"Veröffentlichen","tour.publish.description":"Mit diesem Button können Sie die aktuell ausgewählte Arbeitskopie veröffentlichen, optional nachdem Sie die vorgenommenen Änderungen geprüft haben. Probieren Sie es aus!","tour.outro.title":"Danke!","tour.outro.description1":"Wir hoffen, dass Sie diese kurze Scrivito-Einführung nützlich fanden. Wenn Sie Fragen haben, sind wir für Sie da – wenden Sie sich einfach an unseren ","tour.outro.description1.link_title":"Support","tour.outro.description2":"Und wenn Sie mehr wissen möchten, empfehlen wir unsere ausführliche ","tour.outro.description2.link_title":"Dokumentation","tour.outro.description3":" und die ","tour.outro.description3.link_title":"Anleitung für Redakteure","tour.outro.description4":"Diese Tour kann jederzeit erneut aufgerufen werden; wählen Sie dafür einfach den entsprechenden Punkt im Seitenmenü.","tour.button.close":"Schließen","tour.button.end":"Tour beenden","tour.button.next":"Weiter","tour.button.prev":"Zurück","tour.button.skip":"Nicht jetzt","tour.button.start":"Tour beginnen","tour.button.back":"Zurück zur Tour","STABLE_SDK.widget_marker.widget_is_new":"Widget ist neu","STABLE_SDK.widget_marker.widget_is_edited":"Widget wurde geändert","STABLE_SDK.widget_marker.widget_is_edited_and_dragged_here":"Widget wurde geändert und hierher gezogen","STABLE_SDK.widget_marker.widget_is_edited_and_dragged_away":"Widget wurde geändert und von hier weggezogen","STABLE_SDK.widget_marker.widget_is_deleted":"Widget wurde gelöscht","STABLE_SDK.widget_marker.widget_is_dragged_here":"Widget wurde hierher gezogen","STABLE_SDK.widget_marker.widget_is_dragged_away":"Widget wurde von hier weggezogen"}),scrivito.PropertiesComponent=Ll,Object(pe.j)(),$(C_)}]);